| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import { NodeConnectionTypes, type INodeDataBaseSchema, type INodeType } from '../../Interface'
- import Setter from './setter.vue'
- import i18n from '@/i18n'
- import { getNodeDescription, getNodeDisplayName } from '@/nodes/i18n'
- export type MailSenderData = INodeDataBaseSchema & {
- subject: string // '主题'
- body: string // '内容'
- toLists: string // '收件人,多个�分割'
- ccLists: string // '抄�人,多个以,分割'
- bccLists: string // '密抄人,多个�分割'
- attachmentLists: string // '附件id, 多个�分割'
- memo: string // '�述'
- in_queue: boolean // '是�入队�
- delaySeconds: number // '入队列å�Žå»¶æ—¶å‡ ç§’'
- }
- export const mailSenderNode: INodeType = {
- version: ['1'],
- displayName: getNodeDisplayName('mail-sender'),
- name: 'mail-sender',
- Setter,
- description: getNodeDescription('mail-sender'),
- group: 'tool',
- icon: 'lucide:mail',
- iconColor: '#00c375',
- inputs: [NodeConnectionTypes.main],
- outputs: [NodeConnectionTypes.main],
- // validate: (data: ModuleInvokeData) => {
- // return data?.interface_code?.trim()
- // ? false
- // : i18n.t('pages.moduleInvokeSetter.interfaceCodeRequired')
- // },
- // getSubtitle: (data: ModuleInvokeData) => {
- // return data?.interface_code ? `code: ${data.interface_code}` : ''
- // },
- schema: {
- appAgentId: '',
- parentId: '',
- position: {
- x: 20,
- y: 30
- },
- width: 96,
- height: 96,
- selected: false,
- nodeType: 'mail-sender',
- zIndex: 1,
- data: {}
- }
- }
|