index.ts
1.14 KB
import { ActionCategoryComponentEnum } from '../../../enum/category';
import { useCreateNodeKey } from '../../../hook/useCreateNodeKey';
import type { NodeItemConfigType } from '../../../types/node';
import { RuleNodeTypeEnum } from '../../index.type';
const keys = useCreateNodeKey(ActionCategoryComponentEnum.SYNCHRONIZATION_END);
export interface SynchronizationEndDataType {
someConfiguration?: Recordable;
}
export const SynchronizationEndConfig: NodeItemConfigType = {
...keys,
clazz: 'org.thingsboard.rule.engine.transaction.TbSynchronizationEndNode',
categoryType: RuleNodeTypeEnum.ACTION,
name: 'synchronization end',
configurationDescriptor: {
nodeDefinition: {
details: '',
description: 'This Node is now deprecated. Use "Checkpoint" instead.',
inEnabled: true,
outEnabled: true,
relationTypes: ['Success', 'Failure'],
customRelations: false,
ruleChainNode: false,
defaultConfiguration: {
version: 0,
},
uiResources: ['static/rulenode/rulenode-core-config.js'],
configDirective: 'tbNodeEmptyConfig',
icon: '',
iconUrl: '',
docUrl: '',
},
},
};