import { z } from 'zod'; export declare enum FlowActionType { CODE = "CODE", PIECE = "PIECE", LOOP_ON_ITEMS = "LOOP_ON_ITEMS", ROUTER = "ROUTER" } export declare enum RouterExecutionType { EXECUTE_ALL_MATCH = "EXECUTE_ALL_MATCH", EXECUTE_FIRST_MATCH = "EXECUTE_FIRST_MATCH" } export declare enum BranchExecutionType { FALLBACK = "FALLBACK", CONDITION = "CONDITION" } export declare const ActionErrorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; export type ActionErrorHandlingOptions = z.infer; export declare const SourceCode: z.ZodObject<{ packageJson: z.ZodString; code: z.ZodString; }, z.core.$strip>; export type SourceCode = z.infer; export declare const CodeActionSettings: z.ZodObject<{ sourceCode: z.ZodObject<{ packageJson: z.ZodString; code: z.ZodString; }, z.core.$strip>; input: z.ZodRecord; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; export type CodeActionSettings = z.infer; export declare const CodeActionSchema: z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodObject<{ sourceCode: z.ZodObject<{ packageJson: z.ZodString; code: z.ZodString; }, z.core.$strip>; input: z.ZodRecord; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; skip: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>; export declare const PieceActionSettings: z.ZodObject<{ propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; pieceName: z.ZodString; pieceVersion: z.ZodString; actionName: z.ZodOptional; input: z.ZodRecord; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; export type PieceActionSettings = z.infer; export declare const PieceActionSchema: z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodObject<{ propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; pieceName: z.ZodString; pieceVersion: z.ZodString; actionName: z.ZodOptional; input: z.ZodRecord; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; skip: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>; export declare const LoopOnItemsActionSettings: z.ZodObject<{ items: z.ZodString; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; export type LoopOnItemsActionSettings = z.infer; export declare const LoopOnItemsActionSchema: z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodObject<{ items: z.ZodString; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; skip: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>; export declare enum BranchOperator { TEXT_CONTAINS = "TEXT_CONTAINS", TEXT_DOES_NOT_CONTAIN = "TEXT_DOES_NOT_CONTAIN", TEXT_EXACTLY_MATCHES = "TEXT_EXACTLY_MATCHES", TEXT_DOES_NOT_EXACTLY_MATCH = "TEXT_DOES_NOT_EXACTLY_MATCH", TEXT_STARTS_WITH = "TEXT_START_WITH", TEXT_DOES_NOT_START_WITH = "TEXT_DOES_NOT_START_WITH", TEXT_ENDS_WITH = "TEXT_ENDS_WITH", TEXT_DOES_NOT_END_WITH = "TEXT_DOES_NOT_END_WITH", NUMBER_IS_GREATER_THAN = "NUMBER_IS_GREATER_THAN", NUMBER_IS_LESS_THAN = "NUMBER_IS_LESS_THAN", NUMBER_IS_EQUAL_TO = "NUMBER_IS_EQUAL_TO", BOOLEAN_IS_TRUE = "BOOLEAN_IS_TRUE", BOOLEAN_IS_FALSE = "BOOLEAN_IS_FALSE", DATE_IS_BEFORE = "DATE_IS_BEFORE", DATE_IS_EQUAL = "DATE_IS_EQUAL", DATE_IS_AFTER = "DATE_IS_AFTER", LIST_CONTAINS = "LIST_CONTAINS", LIST_DOES_NOT_CONTAIN = "LIST_DOES_NOT_CONTAIN", LIST_IS_EMPTY = "LIST_IS_EMPTY", LIST_IS_NOT_EMPTY = "LIST_IS_NOT_EMPTY", EXISTS = "EXISTS", DOES_NOT_EXIST = "DOES_NOT_EXIST" } export declare const singleValueConditions: BranchOperator[]; export declare const textConditions: BranchOperator[]; export declare const ValidBranchCondition: z.ZodUnion; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>; export type ValidBranchCondition = z.infer; export declare const BranchCondition: z.ZodUnion; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>; export type BranchCondition = z.infer; export declare const BranchTextCondition: z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; caseSensitive: z.ZodOptional; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>; export type BranchTextCondition = z.infer; export declare const BranchNumberCondition: z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>; export type BranchNumberCondition = z.infer; export declare const BranchDateCondition: z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>; export type BranchDateCondition = z.infer; export declare const BranchSingleValueCondition: z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>; export type BranchSingleValueCondition = z.infer; export declare const RouterBranchesSchema: (addMinLength: boolean) => z.ZodArray; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>>>; branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>]>>; export declare const RouterActionSettings: z.ZodObject<{ branches: z.ZodArray; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>>>; branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>]>>; executionType: z.ZodEnum; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; export declare const RouterActionSettingsWithValidation: z.ZodObject<{ branches: z.ZodArray; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>>>; branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>]>>; executionType: z.ZodEnum; }, z.core.$strip>; export type RouterActionSettings = z.infer; export declare const FlowAction: z.ZodType; export declare const RouterActionSchema: z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodObject<{ branches: z.ZodArray; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>>>; branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>]>>; executionType: z.ZodEnum; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; skip: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>; export declare const SingleActionSchema: z.ZodUnion; settings: z.ZodObject<{ sourceCode: z.ZodObject<{ packageJson: z.ZodString; code: z.ZodString; }, z.core.$strip>; input: z.ZodRecord; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; skip: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodObject<{ propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; pieceName: z.ZodString; pieceVersion: z.ZodString; actionName: z.ZodOptional; input: z.ZodRecord; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; skip: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodObject<{ items: z.ZodString; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; skip: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodObject<{ branches: z.ZodArray; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>>>; branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>]>>; executionType: z.ZodEnum; sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; skip: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>]>; type BaseActionProps = { name: string; valid: boolean; displayName: string; skip?: boolean; lastUpdatedDate: string; }; export type FlowAction = (BaseActionProps & { type: FlowActionType.CODE; settings: CodeActionSettings; nextAction?: FlowAction; }) | (BaseActionProps & { type: FlowActionType.PIECE; settings: PieceActionSettings; nextAction?: FlowAction; }) | (BaseActionProps & { type: FlowActionType.LOOP_ON_ITEMS; settings: LoopOnItemsActionSettings; nextAction?: FlowAction; firstLoopAction?: FlowAction; }) | (BaseActionProps & { type: FlowActionType.ROUTER; settings: RouterActionSettings; nextAction?: FlowAction; children: (FlowAction | null)[]; }); export type RouterAction = BaseActionProps & { type: FlowActionType.ROUTER; settings: RouterActionSettings; nextAction?: FlowAction; children: (FlowAction | null)[]; }; export type LoopOnItemsAction = BaseActionProps & { type: FlowActionType.LOOP_ON_ITEMS; settings: LoopOnItemsActionSettings; nextAction?: FlowAction; firstLoopAction?: FlowAction; }; export type PieceAction = BaseActionProps & { type: FlowActionType.PIECE; settings: PieceActionSettings; nextAction?: FlowAction; }; export type CodeAction = BaseActionProps & { type: FlowActionType.CODE; settings: CodeActionSettings; nextAction?: FlowAction; }; export declare const emptyCondition: ValidBranchCondition; export {}; //# sourceMappingURL=action.d.ts.map