index.ts
1.19 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.SAVE_EVENT);
export interface SaveEventDataType {
someConfiguration?: Recordable;
}
export const SaveEventConfig: NodeItemConfigType = {
...keys,
clazz: 'org.thingsboard.rule.engine.yunteng.event.TkMsgEventNode',
categoryType: RuleNodeTypeEnum.ACTION,
name: 'save event',
configurationDescriptor: {
nodeDefinition: {
details: "Saves entity event . Expects messages with 'POST_EVENT_REQUEST' message type",
description: 'Saves device event data',
inEnabled: true,
outEnabled: true,
relationTypes: ['Success', 'Failure'],
customRelations: false,
ruleChainNode: false,
defaultConfiguration: {
useServerTs: true,
},
uiResources: ['static/rulenode/rulenode-core-config.js'],
configDirective: 'tkMsgEventNodeConfiguration',
icon: 'material-symbols:file-upload',
iconUrl: '',
docUrl: '',
},
},
};