Migrate from Zod v3 to v4 (#14639)
Closes [#1526](https://github.com/twentyhq/core-team-issues/issues/1526) --------- Co-authored-by: Félix Malfait <felix@twenty.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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';
|
||||
|
||||
export const workflowActionSchema = z.discriminatedUnion('type', [
|
||||
workflowCodeActionSchema,
|
||||
workflowSendEmailActionSchema,
|
||||
workflowCreateRecordActionSchema,
|
||||
workflowUpdateRecordActionSchema,
|
||||
workflowDeleteRecordActionSchema,
|
||||
workflowFindRecordsActionSchema,
|
||||
workflowFormActionSchema,
|
||||
workflowHttpRequestActionSchema,
|
||||
workflowAiAgentActionSchema,
|
||||
workflowFilterActionSchema,
|
||||
workflowIteratorActionSchema,
|
||||
workflowEmptyActionSchema,
|
||||
]);
|
||||
Reference in New Issue
Block a user