27f50c4f4e
## Description - this PR focuses on issue https://github.com/twentyhq/core-team-issues/issues/1476 - Added upsert action ## Visual Appearance <img width="1792" height="1041" alt="Screenshot 2025-10-03 at 12 57 58 PM" src="https://github.com/user-attachments/assets/57afb96c-d4b3-4a87-95f0-11ac4bd61dd8" /> <img width="1792" height="1031" alt="Screenshot 2025-10-03 at 12 57 48 PM" src="https://github.com/user-attachments/assets/9032d4c2-f0d2-46f1-8682-a7e5c280a303" /> --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com> Co-authored-by: Thomas Trompette <thomas.trompette@sfr.fr>
33 lines
1.6 KiB
TypeScript
33 lines
1.6 KiB
TypeScript
import { z } from 'zod';
|
|
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 { workflowEmptyActionSchema } from './empty-action-schema';
|
|
import { workflowFilterActionSchema } from './filter-action-schema';
|
|
import { workflowFindRecordsActionSchema } from './find-records-action-schema';
|
|
import { workflowFormActionSchema } from './form-action-schema';
|
|
import { workflowHttpRequestActionSchema } from './http-request-action-schema';
|
|
import { workflowIteratorActionSchema } from './iterator-action-schema';
|
|
import { workflowSendEmailActionSchema } from './send-email-action-schema';
|
|
import { workflowUpdateRecordActionSchema } from './update-record-action-schema';
|
|
import { workflowUpsertRecordActionSchema } from './upsert-record-action-schema';
|
|
import { workflowDelayActionSchema } from './workflow-delay-action-schema';
|
|
|
|
export const workflowActionSchema = z.discriminatedUnion('type', [
|
|
workflowCodeActionSchema,
|
|
workflowSendEmailActionSchema,
|
|
workflowCreateRecordActionSchema,
|
|
workflowUpdateRecordActionSchema,
|
|
workflowDeleteRecordActionSchema,
|
|
workflowUpsertRecordActionSchema,
|
|
workflowFindRecordsActionSchema,
|
|
workflowFormActionSchema,
|
|
workflowHttpRequestActionSchema,
|
|
workflowAiAgentActionSchema,
|
|
workflowFilterActionSchema,
|
|
workflowIteratorActionSchema,
|
|
workflowDelayActionSchema,
|
|
workflowEmptyActionSchema,
|
|
]);
|