index.ts
1.11 KB
import { ExternalCategoryComponentEnum } from '../../../enum/category';
import { useCreateNodeKey } from '../../../hook/useCreateNodeKey';
import type { NodeItemConfigType } from '../../../types/node';
import { RuleNodeTypeEnum } from '../../index.type';
const keys = useCreateNodeKey(ExternalCategoryComponentEnum.ALARM_NOTICE);
export interface AlarmNoticeDataType {
someConfiguration?: Recordable;
}
export const AlarmNoticeConfig: NodeItemConfigType = {
...keys,
clazz: 'org.thingsboard.rule.engine.notice.AlarmNoticeNode',
categoryType: RuleNodeTypeEnum.EXTERNAL,
name: 'alarm notice',
configurationDescriptor: {
nodeDefinition: {
details: 'notice method include sms,email and so on.',
description: 'while device alarm, notice some people.',
inEnabled: true,
outEnabled: true,
relationTypes: ['Success', 'Failure'],
customRelations: false,
ruleChainNode: false,
defaultConfiguration: {
host: 'localhost',
},
uiResources: [],
configDirective: '',
icon: 'material-symbols:sms',
iconUrl: '',
docUrl: '',
},
},
};