feat: add draft email workflow action (#17793)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
neo773
2026-02-13 22:50:20 +05:30
committed by GitHub
parent ebfaff0a53
commit 84afbb4d2c
64 changed files with 1451 additions and 614 deletions
@@ -24,6 +24,7 @@ export { workflowCronTriggerSchema } from './schemas/cron-trigger-schema';
export { workflowDatabaseEventTriggerSchema } from './schemas/database-event-trigger-schema';
export { workflowDeleteRecordActionSchema } from './schemas/delete-record-action-schema';
export { workflowDeleteRecordActionSettingsSchema } from './schemas/delete-record-action-settings-schema';
export { workflowDraftEmailActionSchema } from './schemas/draft-email-action-schema';
export { workflowEmptyActionSchema } from './schemas/empty-action-schema';
export { workflowEmptyActionSettingsSchema } from './schemas/empty-action-settings-schema';
export { workflowFilterActionSchema } from './schemas/filter-action-schema';
@@ -0,0 +1,8 @@
import { z } from 'zod';
import { baseWorkflowActionSchema } from './base-workflow-action-schema';
import { workflowSendEmailActionSettingsSchema } from './send-email-action-settings-schema';
export const workflowDraftEmailActionSchema = baseWorkflowActionSchema.extend({
type: z.literal('DRAFT_EMAIL'),
settings: workflowSendEmailActionSettingsSchema,
});
@@ -3,6 +3,7 @@ import { workflowAiAgentActionSchema } from './ai-agent-action-schema';
import { workflowCodeActionSchema } from './code-action-schema';
import { workflowCreateRecordActionSchema } from './create-record-action-schema';
import { workflowDeleteRecordActionSchema } from './delete-record-action-schema';
import { workflowDraftEmailActionSchema } from './draft-email-action-schema';
import { workflowEmptyActionSchema } from './empty-action-schema';
import { workflowFilterActionSchema } from './filter-action-schema';
import { workflowFindRecordsActionSchema } from './find-records-action-schema';
@@ -20,6 +21,7 @@ export const workflowActionSchema = z.discriminatedUnion('type', [
workflowCodeActionSchema,
workflowLogicFunctionActionSchema,
workflowSendEmailActionSchema,
workflowDraftEmailActionSchema,
workflowCreateRecordActionSchema,
workflowUpdateRecordActionSchema,
workflowDeleteRecordActionSchema,