mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 13:37:22 +00:00
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>
24 lines
634 B
TypeScript
24 lines
634 B
TypeScript
import { z } from 'zod';
|
|
import { baseWorkflowActionSettingsSchema } from './base-workflow-action-settings-schema';
|
|
|
|
export const workflowIteratorActionSettingsSchema =
|
|
baseWorkflowActionSettingsSchema.extend({
|
|
input: z.object({
|
|
items: z
|
|
.union([
|
|
z.array(
|
|
z.union([
|
|
z.string(),
|
|
z.number(),
|
|
z.boolean(),
|
|
z.null(),
|
|
z.record(z.string(), z.any()),
|
|
z.any(),
|
|
]),
|
|
),
|
|
z.string(),
|
|
])
|
|
.optional(),
|
|
initialLoopStepIds: z.array(z.string()).optional(),
|
|
}),
|
|
});
|