twenty-sdk 0.2.3 → 0.3.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +125 -39
- package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Bft-VMSh.mjs +3151 -0
- package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Duv5iOeZ.js +20 -0
- package/dist/application/define-app.d.ts +18 -0
- package/dist/application/functions/define-function.d.ts +28 -0
- package/dist/application/functions/function-config.d.ts +2 -0
- package/dist/application/functions/triggers/cron-payload-type.d.ts +1 -1
- package/dist/application/index.d.ts +5 -1
- package/dist/application/objects/define-object.d.ts +35 -0
- package/dist/application/roles/define-role.d.ts +26 -0
- package/dist/cli/commands/app-add.command.d.ts +2 -1
- package/dist/cli/utils/config-loader.d.ts +43 -0
- package/dist/cli/utils/display-entity-summary.d.ts +2 -0
- package/dist/cli/utils/display-errors.d.ts +2 -0
- package/dist/cli/utils/display-warnings.d.ts +2 -0
- package/dist/cli/utils/get-new-object-file-content.d.ts +9 -0
- package/dist/cli/utils/get-role-base-file.d.ts +4 -0
- package/dist/cli/utils/load-manifest.d.ts +37 -6
- package/dist/cli/utils/validate-manifest.d.ts +22 -0
- package/dist/cli.cjs +133 -79
- package/dist/cli.mjs +3318 -3163
- package/dist/index.cjs +2 -21
- package/dist/index.mjs +237 -3283
- package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-BwpmSE4s.js +1 -0
- package/dist/vendor/twenty-shared/{FieldMetadataDefaultValue-CJU0Y2Fi.mjs → ObjectRecordGroupByDateGranularity-CtpRADP1.mjs} +219 -217
- package/dist/vendor/twenty-shared/RatingValues-B_wgYyso.js +1 -0
- package/dist/vendor/twenty-shared/{RatingValues-4GPp8aN_.mjs → RatingValues-DNSj7xKA.mjs} +63 -5
- package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts +1 -0
- package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/index.d.ts +1 -1
- package/dist/vendor/twenty-shared/application/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/objectManifestType.d.ts +1 -1
- package/dist/vendor/twenty-shared/application/objectManifestType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/roleManifestType.d.ts +0 -1
- package/dist/vendor/twenty-shared/application/roleManifestType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/application/serverlessFunctionManifestType.d.ts +12 -1
- package/dist/vendor/twenty-shared/application/serverlessFunctionManifestType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/constants/GroupByDateGranularityThatRequireTimeZone.d.ts +4 -0
- package/dist/vendor/twenty-shared/constants/GroupByDateGranularityThatRequireTimeZone.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/ViewGroupVisibleOptionsMax.d.ts +2 -0
- package/dist/vendor/twenty-shared/constants/ViewGroupVisibleOptionsMax.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/constants/index.d.ts +2 -0
- package/dist/vendor/twenty-shared/constants/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/constants.cjs +1 -1
- package/dist/vendor/twenty-shared/constants.mjs +34 -33
- package/dist/vendor/twenty-shared/index.cjs +1 -1
- package/dist/vendor/twenty-shared/index.d.ts +0 -1
- package/dist/vendor/twenty-shared/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/index.mjs +2 -5
- package/dist/vendor/twenty-shared/isValidCountryCode-DKpNbkXA.mjs +8533 -0
- package/dist/vendor/twenty-shared/isValidCountryCode-DgPRUhSL.js +4 -0
- package/dist/vendor/twenty-shared/metadata/MetadataValidationError.d.ts +2 -2
- package/dist/vendor/twenty-shared/metadata/MetadataValidationError.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts +4 -0
- package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/metadata.cjs +1 -1
- package/dist/vendor/twenty-shared/metadata.mjs +12 -8
- package/dist/vendor/twenty-shared/types/ArraySortDirection.d.ts +2 -0
- package/dist/vendor/twenty-shared/types/ArraySortDirection.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/CrudOperationType.d.ts +8 -0
- package/dist/vendor/twenty-shared/types/CrudOperationType.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/ExtractPropertiesThatEndsWithIds.d.ts +4 -0
- package/dist/vendor/twenty-shared/types/ExtractPropertiesThatEndsWithIds.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/RecordFilterValueDependencies.d.ts +1 -0
- package/dist/vendor/twenty-shared/types/RecordFilterValueDependencies.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/SettingsPath.d.ts +3 -1
- package/dist/vendor/twenty-shared/types/SettingsPath.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/ViewFilterOperand.d.ts +1 -1
- package/dist/vendor/twenty-shared/types/ViewFilterOperand.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/index.d.ts +3 -0
- package/dist/vendor/twenty-shared/types/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types.cjs +1 -1
- package/dist/vendor/twenty-shared/types.mjs +60 -59
- package/dist/vendor/twenty-shared/utils/array/{upsertIntoArrayOfObjectComparingId.d.ts → upsertIntoArrayOfObjectsComparingId.d.ts} +1 -1
- package/dist/vendor/twenty-shared/utils/array/upsertIntoArrayOfObjectsComparingId.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/array/upsertPropertiesOfItemIntoArrayOfObjectsComparingId.d.ts +6 -0
- package/dist/vendor/twenty-shared/utils/array/upsertPropertiesOfItemIntoArrayOfObjectsComparingId.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/date/isPlainDateAfter.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/date/isPlainDateAfter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/date/isPlainDateBefore.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/date/isPlainDateBefore.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/date/isPlainDateBeforeOrEqual.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/date/isPlainDateBeforeOrEqual.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/date/isPlainDateInSameMonth.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/date/isPlainDateInSameMonth.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/date/isPlainDateInWeekend.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/date/isPlainDateInWeekend.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/date/isSamePlainDate.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/date/isSamePlainDate.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/date/parseToPlainDateOrThrow.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/date/parseToPlainDateOrThrow.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/date/sortPlainDate.d.ts +5 -0
- package/dist/vendor/twenty-shared/utils/date/sortPlainDate.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/date/turnJSDateToPlainDate.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/date/turnJSDateToPlainDate.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/date/turnPlainDateIntoUserTimeZoneInstantString.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/date/turnPlainDateIntoUserTimeZoneInstantString.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/date/turnPlainDateToShiftedDateInSystemTimeZone.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/date/turnPlainDateToShiftedDateInSystemTimeZone.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/fieldMetadata/index.d.ts +3 -0
- package/dist/vendor/twenty-shared/utils/fieldMetadata/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataNumericKind.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataNumericKind.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataSelectKind.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataSelectKind.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataTextKind.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataTextKind.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/types/DateTimePeriod.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/types/DateTimePeriod.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/addUnitToDateTime.d.ts +1 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/addUnitToDateTime.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/addUnitToZonedDateTime.d.ts +5 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/addUnitToZonedDateTime.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/convertCalendarStartDayNonIsoNumberToFirstDayOfTheWeek.d.ts +5 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/convertCalendarStartDayNonIsoNumberToFirstDayOfTheWeek.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/convertFirstDayOfTheWeekToCalendarStartDayNumber.d.ts +5 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/convertFirstDayOfTheWeekToCalendarStartDayNumber.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getFirstDayOfTheWeekAsISONumber.d.ts +4 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getFirstDayOfTheWeekAsISONumber.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getNextPeriodStart.d.ts +8 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getNextPeriodStart.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getPeriodStart.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getPeriodStart.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/relativeDateFilterStringifiedSchema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveDateTimeFilter.d.ts +1 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveDateTimeFilter.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateFilter.d.ts +2 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateFilter.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateFilterStringified.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateTimeFilter.d.ts +4 -3
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateTimeFilter.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateTimeFilterStringified.d.ts +5 -3
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateTimeFilterStringified.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/subUnitFromZonedDateTime.d.ts +5 -0
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/subUnitFromZonedDateTime.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/filter/turnRecordFilterIntoGqlOperationFilter.d.ts +1 -1
- package/dist/vendor/twenty-shared/utils/filter/turnRecordFilterIntoGqlOperationFilter.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/index.d.ts +24 -7
- package/dist/vendor/twenty-shared/utils/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/url/lowercaseUrlOriginAndRemoveTrailingSlash.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils.cjs +2 -3
- package/dist/vendor/twenty-shared/utils.mjs +774 -2484
- package/dist/vendor/twenty-shared/workflow/constants/IfElseBranchPositionOffsets.d.ts +11 -0
- package/dist/vendor/twenty-shared/workflow/constants/IfElseBranchPositionOffsets.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow/index.d.ts +6 -0
- package/dist/vendor/twenty-shared/workflow/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/filter-action-settings-schema.d.ts +2 -5
- package/dist/vendor/twenty-shared/workflow/schemas/filter-action-settings-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/http-request-action-schema.d.ts +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/http-request-action-settings-schema.d.ts +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/if-else-action-schema.d.ts +49 -0
- package/dist/vendor/twenty-shared/workflow/schemas/if-else-action-schema.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow/schemas/if-else-action-settings-schema.d.ts +43 -0
- package/dist/vendor/twenty-shared/workflow/schemas/if-else-action-settings-schema.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow/schemas/step-filter-group-schema.d.ts +10 -0
- package/dist/vendor/twenty-shared/workflow/schemas/step-filter-group-schema.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow/schemas/step-filter-schema.d.ts +16 -0
- package/dist/vendor/twenty-shared/workflow/schemas/step-filter-schema.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts +46 -1
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts +46 -1
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts +46 -1
- package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/workflow/types/StepIfElseBranch.d.ts +6 -0
- package/dist/vendor/twenty-shared/workflow/types/StepIfElseBranch.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/workflow.cjs +3 -3
- package/dist/vendor/twenty-shared/workflow.mjs +199 -174
- package/package.json +3 -1
- package/dist/_commonjsHelpers-DKOUU3wS.js +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.mjs +0 -8
- package/dist/cli/utils/get-object-decorated-class.d.ts +0 -4
- package/dist/vendor/twenty-shared/FieldMetadataDefaultValue-CmL_eyqR.js +0 -1
- package/dist/vendor/twenty-shared/LabelIdentifierFieldMetadataTypes-BaWEb4k0.js +0 -1
- package/dist/vendor/twenty-shared/LabelIdentifierFieldMetadataTypes-BzzhC1dx.mjs +0 -55
- package/dist/vendor/twenty-shared/RatingValues-CBa057Mi.js +0 -1
- package/dist/vendor/twenty-shared/isValidCountryCode-DNOavXY6.js +0 -4
- package/dist/vendor/twenty-shared/isValidCountryCode-QjE8dukS.mjs +0 -6850
- package/dist/vendor/twenty-shared/utils/array/upsertIntoArrayOfObjectComparingId.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getDateFromPlainDate.d.ts +0 -2
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getDateFromPlainDate.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getEndUnitOfDateTime.d.ts +0 -6
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getEndUnitOfDateTime.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getPlainDateFromDate.d.ts +0 -2
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getPlainDateFromDate.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getStartUnitOfDateTime.d.ts +0 -6
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/getStartUnitOfDateTime.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/shiftPointInTimeFromTimezoneDifferenceInMinutesWithSystemTimezone.d.ts +0 -2
- package/dist/vendor/twenty-shared/utils/filter/dates/utils/shiftPointInTimeFromTimezoneDifferenceInMinutesWithSystemTimezone.d.ts.map +0 -1
- package/dist/vendor/twenty-shared/utils/filter/utils/computeTimezoneDifferenceInMinutes.d.ts +0 -2
- package/dist/vendor/twenty-shared/utils/filter/utils/computeTimezoneDifferenceInMinutes.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IfElseBranchPositionOffsets.d.ts","sourceRoot":"","sources":["../../../src/workflow/constants/IfElseBranchPositionOffsets.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B;;;;;;;;;CAS3C,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { CAPTURE_ALL_VARIABLE_TAG_INNER_REGEX } from './constants/CaptureAllVariableTagInnerRegex';
|
|
2
2
|
export { CONTENT_TYPE_VALUES_HTTP_REQUEST } from './constants/ContentTypeValuesHttpRequest';
|
|
3
|
+
export { IF_ELSE_BRANCH_POSITION_OFFSETS } from './constants/IfElseBranchPositionOffsets';
|
|
3
4
|
export { TRIGGER_STEP_ID } from './constants/TriggerStepId';
|
|
4
5
|
export { workflowAiAgentActionSchema } from './schemas/ai-agent-action-schema';
|
|
5
6
|
export { workflowAiAgentActionSettingsSchema } from './schemas/ai-agent-action-settings-schema';
|
|
@@ -24,12 +25,16 @@ export { workflowFormActionSchema } from './schemas/form-action-schema';
|
|
|
24
25
|
export { workflowFormActionSettingsSchema } from './schemas/form-action-settings-schema';
|
|
25
26
|
export { workflowHttpRequestActionSchema } from './schemas/http-request-action-schema';
|
|
26
27
|
export { workflowHttpRequestActionSettingsSchema } from './schemas/http-request-action-settings-schema';
|
|
28
|
+
export { workflowIfElseActionSchema } from './schemas/if-else-action-schema';
|
|
29
|
+
export { stepIfElseBranchSchema, workflowIfElseActionSettingsSchema, } from './schemas/if-else-action-settings-schema';
|
|
27
30
|
export { workflowIteratorActionSchema } from './schemas/iterator-action-schema';
|
|
28
31
|
export { workflowIteratorActionSettingsSchema } from './schemas/iterator-action-settings-schema';
|
|
29
32
|
export { workflowManualTriggerSchema } from './schemas/manual-trigger-schema';
|
|
30
33
|
export { objectRecordSchema } from './schemas/object-record-schema';
|
|
31
34
|
export { workflowSendEmailActionSchema } from './schemas/send-email-action-schema';
|
|
32
35
|
export { workflowSendEmailActionSettingsSchema } from './schemas/send-email-action-settings-schema';
|
|
36
|
+
export { stepFilterGroupSchema } from './schemas/step-filter-group-schema';
|
|
37
|
+
export { stepFilterSchema } from './schemas/step-filter-schema';
|
|
33
38
|
export { workflowUpdateRecordActionSchema } from './schemas/update-record-action-schema';
|
|
34
39
|
export { workflowUpdateRecordActionSettingsSchema } from './schemas/update-record-action-settings-schema';
|
|
35
40
|
export { workflowUpsertRecordActionSchema } from './schemas/upsert-record-action-schema';
|
|
@@ -46,6 +51,7 @@ export { workflowRunStateStepInfosSchema } from './schemas/workflow-run-state-st
|
|
|
46
51
|
export { workflowRunStatusSchema } from './schemas/workflow-run-status-schema';
|
|
47
52
|
export { workflowRunStepStatusSchema } from './schemas/workflow-run-step-status-schema';
|
|
48
53
|
export { workflowTriggerSchema } from './schemas/workflow-trigger-schema';
|
|
54
|
+
export type { StepIfElseBranch } from './types/StepIfElseBranch';
|
|
49
55
|
export type { BodyType } from './types/workflowHttpRequestStep';
|
|
50
56
|
export type { WorkflowRunStepInfo, WorkflowRunStepInfos, } from './types/WorkflowRunStateStepInfos';
|
|
51
57
|
export { StepStatus } from './types/WorkflowRunStateStepInfos';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,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gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAChE,YAAY,EACV,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,YAAY,EACV,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,kBAAkB,GACnB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AACpG,YAAY,EACV,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,gDAAgD,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { ViewFilterOperand } from '../../types/ViewFilterOperand';
|
|
2
|
-
import { StepLogicalOperator } from '../../types/StepFilters';
|
|
3
1
|
import { z } from 'zod';
|
|
4
|
-
import { ViewFilterOperandDeprecated } from '../../types';
|
|
5
2
|
|
|
6
3
|
export declare const workflowFilterActionSettingsSchema: z.ZodObject<{
|
|
7
4
|
outputSchema: z.ZodObject<{}, z.core.$loose>;
|
|
@@ -16,7 +13,7 @@ export declare const workflowFilterActionSettingsSchema: z.ZodObject<{
|
|
|
16
13
|
input: z.ZodObject<{
|
|
17
14
|
stepFilterGroups: z.ZodArray<z.ZodObject<{
|
|
18
15
|
id: z.ZodString;
|
|
19
|
-
logicalOperator: z.ZodEnum<typeof StepLogicalOperator>;
|
|
16
|
+
logicalOperator: z.ZodEnum<typeof import('../../types').StepLogicalOperator>;
|
|
20
17
|
parentStepFilterGroupId: z.ZodOptional<z.ZodString>;
|
|
21
18
|
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
22
19
|
}, z.core.$strip>>;
|
|
@@ -24,7 +21,7 @@ export declare const workflowFilterActionSettingsSchema: z.ZodObject<{
|
|
|
24
21
|
id: z.ZodString;
|
|
25
22
|
type: z.ZodString;
|
|
26
23
|
stepOutputKey: z.ZodString;
|
|
27
|
-
operand: z.ZodUnion<[z.ZodEnum<typeof ViewFilterOperand>, z.ZodEnum<typeof ViewFilterOperandDeprecated>]>;
|
|
24
|
+
operand: z.ZodUnion<[z.ZodEnum<typeof import('../../types').ViewFilterOperand>, z.ZodEnum<typeof import('../../types').ViewFilterOperandDeprecated>]>;
|
|
28
25
|
value: z.ZodString;
|
|
29
26
|
stepFilterGroupId: z.ZodString;
|
|
30
27
|
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-action-settings-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/filter-action-settings-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"filter-action-settings-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/filter-action-settings-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM3C,CAAC"}
|
|
@@ -23,11 +23,11 @@ export declare const workflowHttpRequestActionSchema: z.ZodObject<{
|
|
|
23
23
|
input: z.ZodObject<{
|
|
24
24
|
url: z.ZodString;
|
|
25
25
|
method: z.ZodEnum<{
|
|
26
|
+
DELETE: "DELETE";
|
|
26
27
|
GET: "GET";
|
|
27
28
|
POST: "POST";
|
|
28
29
|
PUT: "PUT";
|
|
29
30
|
PATCH: "PATCH";
|
|
30
|
-
DELETE: "DELETE";
|
|
31
31
|
}>;
|
|
32
32
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
33
33
|
body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>, z.ZodString]>>;
|
|
@@ -13,11 +13,11 @@ export declare const workflowHttpRequestActionSettingsSchema: z.ZodObject<{
|
|
|
13
13
|
input: z.ZodObject<{
|
|
14
14
|
url: z.ZodString;
|
|
15
15
|
method: z.ZodEnum<{
|
|
16
|
+
DELETE: "DELETE";
|
|
16
17
|
GET: "GET";
|
|
17
18
|
POST: "POST";
|
|
18
19
|
PUT: "PUT";
|
|
19
20
|
PATCH: "PATCH";
|
|
20
|
-
DELETE: "DELETE";
|
|
21
21
|
}>;
|
|
22
22
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
23
23
|
body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>, z.ZodString]>>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare const workflowIfElseActionSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
valid: z.ZodBoolean;
|
|
7
|
+
nextStepIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
8
|
+
position: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9
|
+
x: z.ZodNumber;
|
|
10
|
+
y: z.ZodNumber;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
12
|
+
type: z.ZodLiteral<"IF_ELSE">;
|
|
13
|
+
settings: z.ZodObject<{
|
|
14
|
+
outputSchema: z.ZodObject<{}, z.core.$loose>;
|
|
15
|
+
errorHandlingOptions: z.ZodObject<{
|
|
16
|
+
retryOnFailure: z.ZodObject<{
|
|
17
|
+
value: z.ZodBoolean;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
continueOnFailure: z.ZodObject<{
|
|
20
|
+
value: z.ZodBoolean;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
input: z.ZodObject<{
|
|
24
|
+
stepFilterGroups: z.ZodArray<z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
logicalOperator: z.ZodEnum<typeof import('../../types').StepLogicalOperator>;
|
|
27
|
+
parentStepFilterGroupId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
stepFilters: z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
type: z.ZodString;
|
|
33
|
+
stepOutputKey: z.ZodString;
|
|
34
|
+
operand: z.ZodUnion<[z.ZodEnum<typeof import('../../types').ViewFilterOperand>, z.ZodEnum<typeof import('../../types').ViewFilterOperandDeprecated>]>;
|
|
35
|
+
value: z.ZodString;
|
|
36
|
+
stepFilterGroupId: z.ZodString;
|
|
37
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
fieldMetadataId: z.ZodOptional<z.ZodString>;
|
|
39
|
+
compositeFieldSubFieldName: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
branches: z.ZodArray<z.ZodObject<{
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
nextStepIds: z.ZodArray<z.ZodString>;
|
|
44
|
+
filterGroupId: z.ZodOptional<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
//# sourceMappingURL=if-else-action-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"if-else-action-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/if-else-action-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGrC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare const stepIfElseBranchSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
nextStepIds: z.ZodArray<z.ZodString>;
|
|
6
|
+
filterGroupId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const workflowIfElseActionSettingsSchema: z.ZodObject<{
|
|
9
|
+
outputSchema: z.ZodObject<{}, z.core.$loose>;
|
|
10
|
+
errorHandlingOptions: z.ZodObject<{
|
|
11
|
+
retryOnFailure: z.ZodObject<{
|
|
12
|
+
value: z.ZodBoolean;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
continueOnFailure: z.ZodObject<{
|
|
15
|
+
value: z.ZodBoolean;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
input: z.ZodObject<{
|
|
19
|
+
stepFilterGroups: z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
logicalOperator: z.ZodEnum<typeof import('../../types').StepLogicalOperator>;
|
|
22
|
+
parentStepFilterGroupId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
stepFilters: z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
type: z.ZodString;
|
|
28
|
+
stepOutputKey: z.ZodString;
|
|
29
|
+
operand: z.ZodUnion<[z.ZodEnum<typeof import('../../types').ViewFilterOperand>, z.ZodEnum<typeof import('../../types').ViewFilterOperandDeprecated>]>;
|
|
30
|
+
value: z.ZodString;
|
|
31
|
+
stepFilterGroupId: z.ZodString;
|
|
32
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
fieldMetadataId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
compositeFieldSubFieldName: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
branches: z.ZodArray<z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
nextStepIds: z.ZodArray<z.ZodString>;
|
|
39
|
+
filterGroupId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
//# sourceMappingURL=if-else-action-settings-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"if-else-action-settings-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/if-else-action-settings-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO3C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StepLogicalOperator } from '../../types/StepFilters';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
export declare const stepFilterGroupSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
logicalOperator: z.ZodEnum<typeof StepLogicalOperator>;
|
|
7
|
+
parentStepFilterGroupId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
//# sourceMappingURL=step-filter-group-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-filter-group-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/step-filter-group-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,eAAO,MAAM,qBAAqB;;;;;iBAKhC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ViewFilterOperand } from '../../types/ViewFilterOperand';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ViewFilterOperandDeprecated } from '../../types';
|
|
4
|
+
|
|
5
|
+
export declare const stepFilterSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
type: z.ZodString;
|
|
8
|
+
stepOutputKey: z.ZodString;
|
|
9
|
+
operand: z.ZodUnion<[z.ZodEnum<typeof ViewFilterOperand>, z.ZodEnum<typeof ViewFilterOperandDeprecated>]>;
|
|
10
|
+
value: z.ZodString;
|
|
11
|
+
stepFilterGroupId: z.ZodString;
|
|
12
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
fieldMetadataId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
compositeFieldSubFieldName: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
//# sourceMappingURL=step-filter-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-filter-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/step-filter-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAU3B,CAAC"}
|
|
@@ -249,11 +249,11 @@ export declare const workflowActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
249
249
|
input: z.ZodObject<{
|
|
250
250
|
url: z.ZodString;
|
|
251
251
|
method: z.ZodEnum<{
|
|
252
|
+
DELETE: "DELETE";
|
|
252
253
|
GET: "GET";
|
|
253
254
|
POST: "POST";
|
|
254
255
|
PUT: "PUT";
|
|
255
256
|
PATCH: "PATCH";
|
|
256
|
-
DELETE: "DELETE";
|
|
257
257
|
}>;
|
|
258
258
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
259
259
|
body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>, z.ZodString]>>;
|
|
@@ -324,6 +324,51 @@ export declare const workflowActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
324
324
|
}, z.core.$strip>>;
|
|
325
325
|
}, z.core.$strip>;
|
|
326
326
|
}, z.core.$strip>;
|
|
327
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
328
|
+
id: z.ZodString;
|
|
329
|
+
name: z.ZodString;
|
|
330
|
+
valid: z.ZodBoolean;
|
|
331
|
+
nextStepIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
332
|
+
position: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
333
|
+
x: z.ZodNumber;
|
|
334
|
+
y: z.ZodNumber;
|
|
335
|
+
}, z.core.$strip>>>;
|
|
336
|
+
type: z.ZodLiteral<"IF_ELSE">;
|
|
337
|
+
settings: z.ZodObject<{
|
|
338
|
+
outputSchema: z.ZodObject<{}, z.core.$loose>;
|
|
339
|
+
errorHandlingOptions: z.ZodObject<{
|
|
340
|
+
retryOnFailure: z.ZodObject<{
|
|
341
|
+
value: z.ZodBoolean;
|
|
342
|
+
}, z.core.$strip>;
|
|
343
|
+
continueOnFailure: z.ZodObject<{
|
|
344
|
+
value: z.ZodBoolean;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
input: z.ZodObject<{
|
|
348
|
+
stepFilterGroups: z.ZodArray<z.ZodObject<{
|
|
349
|
+
id: z.ZodString;
|
|
350
|
+
logicalOperator: z.ZodEnum<typeof import('../../types').StepLogicalOperator>;
|
|
351
|
+
parentStepFilterGroupId: z.ZodOptional<z.ZodString>;
|
|
352
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
}, z.core.$strip>>;
|
|
354
|
+
stepFilters: z.ZodArray<z.ZodObject<{
|
|
355
|
+
id: z.ZodString;
|
|
356
|
+
type: z.ZodString;
|
|
357
|
+
stepOutputKey: z.ZodString;
|
|
358
|
+
operand: z.ZodUnion<[z.ZodEnum<typeof import('../../types').ViewFilterOperand>, z.ZodEnum<typeof import('../../types').ViewFilterOperandDeprecated>]>;
|
|
359
|
+
value: z.ZodString;
|
|
360
|
+
stepFilterGroupId: z.ZodString;
|
|
361
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
362
|
+
fieldMetadataId: z.ZodOptional<z.ZodString>;
|
|
363
|
+
compositeFieldSubFieldName: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, z.core.$strip>>;
|
|
365
|
+
branches: z.ZodArray<z.ZodObject<{
|
|
366
|
+
id: z.ZodString;
|
|
367
|
+
nextStepIds: z.ZodArray<z.ZodString>;
|
|
368
|
+
filterGroupId: z.ZodOptional<z.ZodString>;
|
|
369
|
+
}, z.core.$strip>>;
|
|
370
|
+
}, z.core.$strip>;
|
|
371
|
+
}, z.core.$strip>;
|
|
327
372
|
}, z.core.$strip>, z.ZodObject<{
|
|
328
373
|
id: z.ZodString;
|
|
329
374
|
name: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-action-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/workflow-action-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow-action-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/workflow-action-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgB/B,CAAC"}
|
|
@@ -348,11 +348,11 @@ export declare const workflowRunSchema: z.ZodObject<{
|
|
|
348
348
|
input: z.ZodObject<{
|
|
349
349
|
url: z.ZodString;
|
|
350
350
|
method: z.ZodEnum<{
|
|
351
|
+
DELETE: "DELETE";
|
|
351
352
|
GET: "GET";
|
|
352
353
|
POST: "POST";
|
|
353
354
|
PUT: "PUT";
|
|
354
355
|
PATCH: "PATCH";
|
|
355
|
-
DELETE: "DELETE";
|
|
356
356
|
}>;
|
|
357
357
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
358
358
|
body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>, z.ZodString]>>;
|
|
@@ -423,6 +423,51 @@ export declare const workflowRunSchema: z.ZodObject<{
|
|
|
423
423
|
}, z.core.$strip>>;
|
|
424
424
|
}, z.core.$strip>;
|
|
425
425
|
}, z.core.$strip>;
|
|
426
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
427
|
+
id: z.ZodString;
|
|
428
|
+
name: z.ZodString;
|
|
429
|
+
valid: z.ZodBoolean;
|
|
430
|
+
nextStepIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
431
|
+
position: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
432
|
+
x: z.ZodNumber;
|
|
433
|
+
y: z.ZodNumber;
|
|
434
|
+
}, z.core.$strip>>>;
|
|
435
|
+
type: z.ZodLiteral<"IF_ELSE">;
|
|
436
|
+
settings: z.ZodObject<{
|
|
437
|
+
outputSchema: z.ZodObject<{}, z.core.$loose>;
|
|
438
|
+
errorHandlingOptions: z.ZodObject<{
|
|
439
|
+
retryOnFailure: z.ZodObject<{
|
|
440
|
+
value: z.ZodBoolean;
|
|
441
|
+
}, z.core.$strip>;
|
|
442
|
+
continueOnFailure: z.ZodObject<{
|
|
443
|
+
value: z.ZodBoolean;
|
|
444
|
+
}, z.core.$strip>;
|
|
445
|
+
}, z.core.$strip>;
|
|
446
|
+
input: z.ZodObject<{
|
|
447
|
+
stepFilterGroups: z.ZodArray<z.ZodObject<{
|
|
448
|
+
id: z.ZodString;
|
|
449
|
+
logicalOperator: z.ZodEnum<typeof import('../../types').StepLogicalOperator>;
|
|
450
|
+
parentStepFilterGroupId: z.ZodOptional<z.ZodString>;
|
|
451
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
stepFilters: z.ZodArray<z.ZodObject<{
|
|
454
|
+
id: z.ZodString;
|
|
455
|
+
type: z.ZodString;
|
|
456
|
+
stepOutputKey: z.ZodString;
|
|
457
|
+
operand: z.ZodUnion<[z.ZodEnum<typeof import('../../types').ViewFilterOperand>, z.ZodEnum<typeof import('../../types').ViewFilterOperandDeprecated>]>;
|
|
458
|
+
value: z.ZodString;
|
|
459
|
+
stepFilterGroupId: z.ZodString;
|
|
460
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
461
|
+
fieldMetadataId: z.ZodOptional<z.ZodString>;
|
|
462
|
+
compositeFieldSubFieldName: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strip>>;
|
|
464
|
+
branches: z.ZodArray<z.ZodObject<{
|
|
465
|
+
id: z.ZodString;
|
|
466
|
+
nextStepIds: z.ZodArray<z.ZodString>;
|
|
467
|
+
filterGroupId: z.ZodOptional<z.ZodString>;
|
|
468
|
+
}, z.core.$strip>>;
|
|
469
|
+
}, z.core.$strip>;
|
|
470
|
+
}, z.core.$strip>;
|
|
426
471
|
}, z.core.$strip>, z.ZodObject<{
|
|
427
472
|
id: z.ZodString;
|
|
428
473
|
name: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-run-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/workflow-run-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"workflow-run-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/workflow-run-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW5B,CAAC"}
|
|
@@ -343,11 +343,11 @@ export declare const workflowRunStateSchema: z.ZodObject<{
|
|
|
343
343
|
input: z.ZodObject<{
|
|
344
344
|
url: z.ZodString;
|
|
345
345
|
method: z.ZodEnum<{
|
|
346
|
+
DELETE: "DELETE";
|
|
346
347
|
GET: "GET";
|
|
347
348
|
POST: "POST";
|
|
348
349
|
PUT: "PUT";
|
|
349
350
|
PATCH: "PATCH";
|
|
350
|
-
DELETE: "DELETE";
|
|
351
351
|
}>;
|
|
352
352
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
353
353
|
body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>, z.ZodString]>>;
|
|
@@ -418,6 +418,51 @@ export declare const workflowRunStateSchema: z.ZodObject<{
|
|
|
418
418
|
}, z.core.$strip>>;
|
|
419
419
|
}, z.core.$strip>;
|
|
420
420
|
}, z.core.$strip>;
|
|
421
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
422
|
+
id: z.ZodString;
|
|
423
|
+
name: z.ZodString;
|
|
424
|
+
valid: z.ZodBoolean;
|
|
425
|
+
nextStepIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
426
|
+
position: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
427
|
+
x: z.ZodNumber;
|
|
428
|
+
y: z.ZodNumber;
|
|
429
|
+
}, z.core.$strip>>>;
|
|
430
|
+
type: z.ZodLiteral<"IF_ELSE">;
|
|
431
|
+
settings: z.ZodObject<{
|
|
432
|
+
outputSchema: z.ZodObject<{}, z.core.$loose>;
|
|
433
|
+
errorHandlingOptions: z.ZodObject<{
|
|
434
|
+
retryOnFailure: z.ZodObject<{
|
|
435
|
+
value: z.ZodBoolean;
|
|
436
|
+
}, z.core.$strip>;
|
|
437
|
+
continueOnFailure: z.ZodObject<{
|
|
438
|
+
value: z.ZodBoolean;
|
|
439
|
+
}, z.core.$strip>;
|
|
440
|
+
}, z.core.$strip>;
|
|
441
|
+
input: z.ZodObject<{
|
|
442
|
+
stepFilterGroups: z.ZodArray<z.ZodObject<{
|
|
443
|
+
id: z.ZodString;
|
|
444
|
+
logicalOperator: z.ZodEnum<typeof import('../../types').StepLogicalOperator>;
|
|
445
|
+
parentStepFilterGroupId: z.ZodOptional<z.ZodString>;
|
|
446
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
447
|
+
}, z.core.$strip>>;
|
|
448
|
+
stepFilters: z.ZodArray<z.ZodObject<{
|
|
449
|
+
id: z.ZodString;
|
|
450
|
+
type: z.ZodString;
|
|
451
|
+
stepOutputKey: z.ZodString;
|
|
452
|
+
operand: z.ZodUnion<[z.ZodEnum<typeof import('../../types').ViewFilterOperand>, z.ZodEnum<typeof import('../../types').ViewFilterOperandDeprecated>]>;
|
|
453
|
+
value: z.ZodString;
|
|
454
|
+
stepFilterGroupId: z.ZodString;
|
|
455
|
+
positionInStepFilterGroup: z.ZodOptional<z.ZodNumber>;
|
|
456
|
+
fieldMetadataId: z.ZodOptional<z.ZodString>;
|
|
457
|
+
compositeFieldSubFieldName: z.ZodOptional<z.ZodString>;
|
|
458
|
+
}, z.core.$strip>>;
|
|
459
|
+
branches: z.ZodArray<z.ZodObject<{
|
|
460
|
+
id: z.ZodString;
|
|
461
|
+
nextStepIds: z.ZodArray<z.ZodString>;
|
|
462
|
+
filterGroupId: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strip>>;
|
|
464
|
+
}, z.core.$strip>;
|
|
465
|
+
}, z.core.$strip>;
|
|
421
466
|
}, z.core.$strip>, z.ZodObject<{
|
|
422
467
|
id: z.ZodString;
|
|
423
468
|
name: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-run-state-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/workflow-run-state-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"workflow-run-state-schema.d.ts","sourceRoot":"","sources":["../../../src/workflow/schemas/workflow-run-state-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepIfElseBranch.d.ts","sourceRoot":"","sources":["../../../src/workflow/types/StepIfElseBranch.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("zod"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("zod"),de=require("./StepFilters-DGMx4w0Z.js"),d=require("./ObjectRecordGroupByDateGranularity-BwpmSE4s.js");require("class-validator");const S=require("./ViewFilterOperandDeprecated-6TjGsHvE.js"),s=require("./isValidCountryCode-DgPRUhSL.js"),ue=require("@sniptt/guards");require("handlebars");require("./RatingValues-B_wgYyso.js");require("qs");require("react-router-dom");const f=/{{([^{}]+)}}/g,pe={rawJson:"application/json",formData:"multipart/form-data",keyValue:"application/x-www-form-urlencoded",text:"text/plain",none:""},me={IF:{x:-200,y:120},ELSE:{x:200,y:120}},ze="trigger",i=e.z.object({input:e.z.looseObject({}).describe("Input data for the workflow action. Structure depends on the action type."),outputSchema:e.z.looseObject({}).describe("Schema defining the output data structure. This data can be referenced in subsequent steps using {{stepId.fieldName}}."),errorHandlingOptions:e.z.object({retryOnFailure:e.z.object({value:e.z.boolean().describe("Whether to retry the action if it fails.")}),continueOnFailure:e.z.object({value:e.z.boolean().describe("Whether to continue to the next step if this action fails.")})})}),h=i.extend({input:e.z.object({agentId:e.z.string().optional(),prompt:e.z.string().optional()})}),a=e.z.object({id:e.z.string().describe("Unique identifier for the workflow step. Must be unique within the workflow."),name:e.z.string().describe("Human-readable name for the workflow step. Should clearly describe what the step does."),valid:e.z.boolean().describe("Whether the step configuration is valid. Set to true when all required fields are properly configured."),nextStepIds:e.z.array(e.z.string()).optional().nullable().describe("Array of step IDs that this step connects to. Leave empty or null for the final step."),position:e.z.object({x:e.z.number(),y:e.z.number()}).optional().nullable().describe("Position coordinates for the step in the workflow diagram.")}),b=a.extend({type:e.z.literal("AI_AGENT"),settings:h}),l=e.z.object({name:e.z.string().optional().describe("Human-readable name for the trigger. Optional but recommended for clarity."),type:e.z.enum(["DATABASE_EVENT","MANUAL","CRON","WEBHOOK"]).describe("Type of trigger. DATABASE_EVENT for record changes, MANUAL for user-initiated, CRON for scheduled, WEBHOOK for external calls."),position:e.z.object({x:e.z.number(),y:e.z.number()}).optional().nullable().describe("Position coordinates for the trigger in the workflow diagram. Use (0, 0) for the trigger step."),nextStepIds:e.z.array(e.z.string()).optional().nullable().describe("Array of step IDs that the trigger connects to. These are the first steps in the workflow.")}),y=i.extend({input:e.z.object({serverlessFunctionId:e.z.string(),serverlessFunctionVersion:e.z.string(),serverlessFunctionInput:e.z.record(e.z.string(),e.z.any())})}),A=a.extend({type:e.z.literal("CODE"),settings:y}),u=e.z.record(e.z.string(),e.z.any()).describe(`Record data object. Use nested objects for relationships (e.g., "company": {"id": "{{reference}}"}). Common patterns:
|
|
2
2
|
- Person: {"name": {"firstName": "John", "lastName": "Doe"}, "emails": {"primaryEmail": "john@example.com"}, "company": {"id": "{{trigger.object.id}}"}}
|
|
3
3
|
- Company: {"name": "Acme Corp", "domainName": {"primaryLinkUrl": "https://acme.com"}}
|
|
4
|
-
- Task: {"title": "Follow up", "status": "TODO", "assignee": {"id": "{{user.id}}"}}`),
|
|
5
|
-
`),
|
|
4
|
+
- Task: {"title": "Follow up", "status": "TODO", "assignee": {"id": "{{user.id}}"}}`),E=i.extend({input:e.z.object({objectName:e.z.string().describe('The name of the object to create a record in. Must be lowercase (e.g., "person", "company", "task").'),objectRecord:u.describe("The record data to create.")})}),k=a.extend({type:e.z.literal("CREATE_RECORD"),settings:E}),j=l.extend({type:e.z.literal("CRON"),settings:e.z.discriminatedUnion("type",[e.z.object({type:e.z.literal("DAYS"),schedule:e.z.object({day:e.z.number().min(1),hour:e.z.number().min(0).max(23),minute:e.z.number().min(0).max(59)}),outputSchema:e.z.looseObject({})}),e.z.object({type:e.z.literal("HOURS"),schedule:e.z.object({hour:e.z.number().min(1),minute:e.z.number().min(0).max(59)}),outputSchema:e.z.looseObject({})}),e.z.object({type:e.z.literal("MINUTES"),schedule:e.z.object({minute:e.z.number().min(1).max(60)}),outputSchema:e.z.looseObject({})}),e.z.object({type:e.z.literal("CUSTOM"),pattern:e.z.string(),outputSchema:e.z.looseObject({})})])}),T=l.extend({type:e.z.literal("DATABASE_EVENT"),settings:e.z.object({eventName:e.z.string().regex(/^[a-z][a-zA-Z0-9_]*\.(created|updated|deleted|upserted)$/,'Event name must follow the pattern: objectName.action (e.g., "company.created", "person.updated", "company.upserted")').describe('Event name in format: objectName.action (e.g., "company.created", "person.updated", "task.deleted", "company.upserted"). Use lowercase object names.'),input:e.z.looseObject({}).optional(),outputSchema:e.z.looseObject({}).describe("Schema defining the output data structure. For database events, this includes the record that triggered the workflow accessible via {{trigger.object.fieldName}}."),objectType:e.z.string().optional(),fields:e.z.array(e.z.string()).optional().nullable()})}).describe("Database event trigger that fires when a record is created, updated, deleted, or upserted. The triggered record is accessible in workflow steps via {{trigger.object.fieldName}}."),R=i.extend({input:e.z.object({objectName:e.z.string(),objectRecordId:e.z.string()})}),O=a.extend({type:e.z.literal("DELETE_RECORD"),settings:R}),I=i.extend({input:e.z.object({})}),N=a.extend({type:e.z.literal("EMPTY"),settings:I}),m=e.z.object({id:e.z.string(),logicalOperator:e.z.enum(de.StepLogicalOperator),parentStepFilterGroupId:e.z.string().optional(),positionInStepFilterGroup:e.z.number().optional()}),z=e.z.object({id:e.z.string(),type:e.z.string(),stepOutputKey:e.z.string(),operand:e.z.enum(S.ViewFilterOperand).or(e.z.enum(S.ViewFilterOperandDeprecated)),value:e.z.string(),stepFilterGroupId:e.z.string(),positionInStepFilterGroup:e.z.number().optional(),fieldMetadataId:e.z.string().optional(),compositeFieldSubFieldName:e.z.string().optional()}),D=i.extend({input:e.z.object({stepFilterGroups:e.z.array(m),stepFilters:e.z.array(z)})}),F=a.extend({type:e.z.literal("FILTER"),settings:D}),x=i.extend({input:e.z.object({objectName:e.z.string(),limit:e.z.number().optional(),filter:e.z.object({recordFilterGroups:e.z.array(e.z.any()).optional(),recordFilters:e.z.array(e.z.any()).optional(),gqlOperationFilter:e.z.any().optional().nullable()}).optional(),orderBy:e.z.object({recordSorts:e.z.array(e.z.any()).optional(),gqlOperationOrderBy:e.z.array(e.z.record(e.z.string(),e.z.any())).optional()}).optional()})}),_=a.extend({type:e.z.literal("FIND_RECORDS"),settings:x}),U=i.extend({input:e.z.array(e.z.object({id:e.z.string(),name:e.z.string(),label:e.z.string(),type:e.z.union([e.z.literal(d.FieldMetadataType.TEXT),e.z.literal(d.FieldMetadataType.NUMBER),e.z.literal(d.FieldMetadataType.DATE),e.z.literal(d.FieldMetadataType.SELECT),e.z.literal("RECORD")]),placeholder:e.z.string().optional(),settings:e.z.record(e.z.string(),e.z.any()).optional(),value:e.z.any().optional()}))}),C=a.extend({type:e.z.literal("FORM"),settings:U}),P=i.extend({input:e.z.object({url:e.z.string(),method:e.z.enum(["GET","POST","PUT","PATCH","DELETE"]),headers:e.z.record(e.z.string(),e.z.string()).optional(),body:e.z.record(e.z.string(),e.z.union([e.z.string(),e.z.number(),e.z.boolean(),e.z.null(),e.z.array(e.z.union([e.z.string(),e.z.number(),e.z.boolean(),e.z.null()]))])).or(e.z.string()).optional()})}),L=a.extend({type:e.z.literal("HTTP_REQUEST"),settings:P}),G=e.z.object({id:e.z.string(),nextStepIds:e.z.array(e.z.string()),filterGroupId:e.z.string().optional()}),M=i.extend({input:e.z.object({stepFilterGroups:e.z.array(m),stepFilters:e.z.array(z),branches:e.z.array(G)})}),v=a.extend({type:e.z.literal("IF_ELSE"),settings:M}),B=i.extend({input:e.z.object({items:e.z.union([e.z.array(e.z.union([e.z.string(),e.z.number(),e.z.boolean(),e.z.null(),e.z.record(e.z.string(),e.z.any()),e.z.any()])),e.z.string()]).optional(),initialLoopStepIds:e.z.array(e.z.string()).optional()})}),V=a.extend({type:e.z.literal("ITERATOR"),settings:B}),q=l.extend({type:e.z.literal("MANUAL"),settings:e.z.object({objectType:e.z.string().optional(),outputSchema:e.z.looseObject({}).describe("Schema defining the output data structure. When a record is selected, it is accessible via {{trigger.record.fieldName}}. When no record is selected, no data is available."),icon:e.z.string().optional(),isPinned:e.z.boolean().optional(),availability:e.z.discriminatedUnion("type",[e.z.object({type:e.z.literal("GLOBAL"),locations:e.z.array(e.z.string()).optional()}),e.z.object({type:e.z.literal("SINGLE_RECORD"),objectNameSingular:e.z.string()}),e.z.object({type:e.z.literal("BULK_RECORDS"),objectNameSingular:e.z.string()})]).optional().nullable()})}).describe("Manual trigger that can be launched by the user. If a record is selected when launched, it is accessible via {{trigger.record.fieldName}}. If no record is selected, no data context is available."),W=e.z.object({id:e.z.string().refine(t=>s.isValidUuid(t)),name:e.z.string(),size:e.z.number(),type:e.z.string(),createdAt:e.z.string()}),H=i.extend({input:e.z.object({connectedAccountId:e.z.string(),email:e.z.string(),subject:e.z.string().optional(),body:e.z.string().optional(),files:e.z.array(W).optional().default([])})}),K=a.extend({type:e.z.literal("SEND_EMAIL"),settings:H}),J=i.extend({input:e.z.object({objectName:e.z.string(),objectRecord:u,objectRecordId:e.z.string(),fieldsToUpdate:e.z.array(e.z.string())})}),Y=a.extend({type:e.z.literal("UPDATE_RECORD"),settings:J}),Q=i.extend({input:e.z.object({objectName:e.z.string(),objectRecord:u})}),X=a.extend({type:e.z.literal("UPSERT_RECORD"),settings:Q}),$=l.extend({type:e.z.literal("WEBHOOK"),settings:e.z.discriminatedUnion("httpMethod",[e.z.object({outputSchema:e.z.looseObject({}),httpMethod:e.z.literal("GET"),authentication:e.z.literal("API_KEY").nullable()}),e.z.object({outputSchema:e.z.looseObject({}),httpMethod:e.z.literal("POST"),expectedBody:e.z.looseObject({}),authentication:e.z.literal("API_KEY").nullable()})])}),Z=i.extend({input:e.z.object({delayType:e.z.enum(["SCHEDULED_DATE","DURATION"]),scheduledDateTime:e.z.string().nullable().optional(),duration:e.z.object({days:e.z.union([e.z.number().min(0),e.z.string()]).optional(),hours:e.z.union([e.z.number().min(0),e.z.string()]).optional(),minutes:e.z.union([e.z.number().min(0),e.z.string()]).optional(),seconds:e.z.union([e.z.number().min(0),e.z.string()]).optional()}).optional()})}),ee=a.extend({type:e.z.literal("DELAY"),settings:Z}),te=e.z.discriminatedUnion("type",[A,K,k,Y,O,X,_,C,L,b,F,v,V,ee,N]);var g=(t=>(t.NOT_STARTED="NOT_STARTED",t.RUNNING="RUNNING",t.SUCCESS="SUCCESS",t.STOPPED="STOPPED",t.FAILED="FAILED",t.PENDING="PENDING",t.SKIPPED="SKIPPED",t))(g||{});const oe=e.z.enum(g),w=e.z.object({result:e.z.any().optional(),error:e.z.any().optional(),status:oe,get history(){return e.z.array(w.pick({result:!0,status:!0,error:!0})).optional()}}),re=e.z.record(e.z.string(),w),ne=e.z.discriminatedUnion("type",[T,q,j,$]),ie=e.z.object({flow:e.z.object({trigger:ne,steps:e.z.array(te)}),stepInfos:re,workflowRunError:e.z.any().optional()}),ae=e.z.enum(["NOT_STARTED","RUNNING","COMPLETED","FAILED","ENQUEUED","STOPPING","STOPPED"]),ge=e.z.looseObject({__typename:e.z.literal("WorkflowRun"),id:e.z.string(),workflowVersionId:e.z.string(),workflowId:e.z.string(),state:ie.nullable(),status:ae,createdAt:e.z.string(),deletedAt:e.z.string().nullable(),endedAt:e.z.string().nullable(),name:e.z.string()}),we=({nameSingular:t,isSystem:o})=>!["workflow","workflowVersion","workflowRun","dashboard"].includes(t)&&!o,Se=({rawVariableName:t,part:o})=>{const r=t.replace(f,(se,le)=>le).split("."),c=o==="stepId"?r[0]:o==="selectedField"?r[r.length-1]:null;if(!s.isDefined(c))throw new Error("Expected to find at least one splitted chunk.");return c},fe=t=>Object.fromEntries(Object.entries(t).filter(([,o])=>s.isDefined(o?.result)).map(([o,n])=>[o,n?.result])),he=t=>t==="true"?!0:t==="false"?!1:t,be=t=>{let o=t;if(typeof t=="string")try{o=JSON.parse(t)}catch{o=t}return new URLSearchParams(o).toString()},ye=t=>{const o=new FormData;if(typeof t=="string")try{const n=JSON.parse(t);Object.entries(n).forEach(([r,c])=>o.append(r,String(c)))}catch{throw new Error("String data for FormData must be valid JSON")}else Object.entries(t).forEach(([n,r])=>o.append(n,r));return o},p=t=>typeof t=="string"?t:JSON.stringify(t),Ae=t=>typeof t=="string"?t:Object.entries(t).map(([o,n])=>`${o}=${n}`).join(`
|
|
5
|
+
`),Ee=(t,o)=>{if(o===void 0)return p(t);switch(o){case"application/x-www-form-urlencoded":return be(t);case"multipart/form-data":return ye(t);case"application/json":return p(t);case"text/plain":return Ae(t);default:return p(t)}},ke=t=>!s.isDefined(t)||t===null?"unknown":typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":Array.isArray(t)?"array":"unknown",ce=t=>t?Object.entries(t).reduce((o,[n,r])=>(ue.isObject(r)&&!Array.isArray(r)?o[n]={isLeaf:!1,type:"object",label:n,value:ce(r)}:o[n]={isLeaf:!0,value:r,type:ke(r),label:n},o),{}):{},je=({schema:t,propertyPath:o})=>{if(o.length===0)return;let n=t,r;for(const c of o){if(r=n[c],!s.isDefined(r))return;if(r.isLeaf)return c===o[o.length-1]?r:void 0;n=r.value}return r};exports.CAPTURE_ALL_VARIABLE_TAG_INNER_REGEX=f;exports.CONTENT_TYPE_VALUES_HTTP_REQUEST=pe;exports.IF_ELSE_BRANCH_POSITION_OFFSETS=me;exports.StepStatus=g;exports.TRIGGER_STEP_ID=ze;exports.baseTriggerSchema=l;exports.baseWorkflowActionSchema=a;exports.baseWorkflowActionSettingsSchema=i;exports.buildOutputSchemaFromValue=ce;exports.canObjectBeManagedByWorkflow=we;exports.extractRawVariableNamePart=Se;exports.getWorkflowRunContext=fe;exports.navigateOutputSchemaProperty=je;exports.objectRecordSchema=u;exports.parseBooleanFromStringValue=he;exports.parseDataFromContentType=Ee;exports.stepFilterGroupSchema=m;exports.stepFilterSchema=z;exports.stepIfElseBranchSchema=G;exports.workflowActionSchema=te;exports.workflowAiAgentActionSchema=b;exports.workflowAiAgentActionSettingsSchema=h;exports.workflowCodeActionSchema=A;exports.workflowCodeActionSettingsSchema=y;exports.workflowCreateRecordActionSchema=k;exports.workflowCreateRecordActionSettingsSchema=E;exports.workflowCronTriggerSchema=j;exports.workflowDatabaseEventTriggerSchema=T;exports.workflowDelayActionSchema=ee;exports.workflowDelayActionSettingsSchema=Z;exports.workflowDeleteRecordActionSchema=O;exports.workflowDeleteRecordActionSettingsSchema=R;exports.workflowEmptyActionSchema=N;exports.workflowEmptyActionSettingsSchema=I;exports.workflowFileSchema=W;exports.workflowFilterActionSchema=F;exports.workflowFilterActionSettingsSchema=D;exports.workflowFindRecordsActionSchema=_;exports.workflowFindRecordsActionSettingsSchema=x;exports.workflowFormActionSchema=C;exports.workflowFormActionSettingsSchema=U;exports.workflowHttpRequestActionSchema=L;exports.workflowHttpRequestActionSettingsSchema=P;exports.workflowIfElseActionSchema=v;exports.workflowIfElseActionSettingsSchema=M;exports.workflowIteratorActionSchema=V;exports.workflowIteratorActionSettingsSchema=B;exports.workflowManualTriggerSchema=q;exports.workflowRunSchema=ge;exports.workflowRunStateSchema=ie;exports.workflowRunStateStepInfoSchema=w;exports.workflowRunStateStepInfosSchema=re;exports.workflowRunStatusSchema=ae;exports.workflowRunStepStatusSchema=oe;exports.workflowSendEmailActionSchema=K;exports.workflowSendEmailActionSettingsSchema=H;exports.workflowTriggerSchema=ne;exports.workflowUpdateRecordActionSchema=Y;exports.workflowUpdateRecordActionSettingsSchema=J;exports.workflowUpsertRecordActionSchema=X;exports.workflowUpsertRecordActionSettingsSchema=Q;exports.workflowWebhookTriggerSchema=$;
|