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
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
import { z as e } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { S } from "./StepFilters-Cml3Z3gd.mjs";
|
|
3
|
+
import { F as c } from "./ObjectRecordGroupByDateGranularity-CtpRADP1.mjs";
|
|
4
4
|
import "class-validator";
|
|
5
|
-
import { V as
|
|
6
|
-
import { i as
|
|
7
|
-
import { isObject as
|
|
5
|
+
import { V as y, a as E } from "./ViewFilterOperandDeprecated-DHNmFtYo.mjs";
|
|
6
|
+
import { i as j, a as l } from "./isValidCountryCode-DKpNbkXA.mjs";
|
|
7
|
+
import { isObject as A } from "@sniptt/guards";
|
|
8
8
|
import "handlebars";
|
|
9
|
-
import "./
|
|
9
|
+
import "./RatingValues-DNSj7xKA.mjs";
|
|
10
10
|
import "qs";
|
|
11
11
|
import "react-router-dom";
|
|
12
|
-
const
|
|
12
|
+
const O = /{{([^{}]+)}}/g, Ie = {
|
|
13
13
|
rawJson: "application/json",
|
|
14
14
|
formData: "multipart/form-data",
|
|
15
15
|
keyValue: "application/x-www-form-urlencoded",
|
|
16
16
|
text: "text/plain",
|
|
17
17
|
none: ""
|
|
18
|
-
},
|
|
18
|
+
}, xe = {
|
|
19
|
+
IF: {
|
|
20
|
+
x: -200,
|
|
21
|
+
y: 120
|
|
22
|
+
},
|
|
23
|
+
ELSE: {
|
|
24
|
+
x: 200,
|
|
25
|
+
y: 120
|
|
26
|
+
}
|
|
27
|
+
}, De = "trigger", i = e.object({
|
|
19
28
|
input: e.looseObject({}).describe(
|
|
20
29
|
"Input data for the workflow action. Structure depends on the action type."
|
|
21
30
|
),
|
|
@@ -30,7 +39,7 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
30
39
|
value: e.boolean().describe("Whether to continue to the next step if this action fails.")
|
|
31
40
|
})
|
|
32
41
|
})
|
|
33
|
-
}),
|
|
42
|
+
}), T = i.extend({
|
|
34
43
|
input: e.object({
|
|
35
44
|
agentId: e.string().optional(),
|
|
36
45
|
prompt: e.string().optional()
|
|
@@ -49,9 +58,9 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
49
58
|
"Array of step IDs that this step connects to. Leave empty or null for the final step."
|
|
50
59
|
),
|
|
51
60
|
position: e.object({ x: e.number(), y: e.number() }).optional().nullable().describe("Position coordinates for the step in the workflow diagram.")
|
|
52
|
-
}),
|
|
61
|
+
}), R = a.extend({
|
|
53
62
|
type: e.literal("AI_AGENT"),
|
|
54
|
-
settings:
|
|
63
|
+
settings: T
|
|
55
64
|
}), d = e.object({
|
|
56
65
|
name: e.string().optional().describe(
|
|
57
66
|
"Human-readable name for the trigger. Optional but recommended for clarity."
|
|
@@ -65,33 +74,33 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
65
74
|
nextStepIds: e.array(e.string()).optional().nullable().describe(
|
|
66
75
|
"Array of step IDs that the trigger connects to. These are the first steps in the workflow."
|
|
67
76
|
)
|
|
68
|
-
}),
|
|
77
|
+
}), k = i.extend({
|
|
69
78
|
input: e.object({
|
|
70
79
|
serverlessFunctionId: e.string(),
|
|
71
80
|
serverlessFunctionVersion: e.string(),
|
|
72
81
|
serverlessFunctionInput: e.record(e.string(), e.any())
|
|
73
82
|
})
|
|
74
|
-
}),
|
|
83
|
+
}), N = a.extend({
|
|
75
84
|
type: e.literal("CODE"),
|
|
76
|
-
settings:
|
|
85
|
+
settings: k
|
|
77
86
|
}), u = e.record(e.string(), e.any()).describe(
|
|
78
87
|
`Record data object. Use nested objects for relationships (e.g., "company": {"id": "{{reference}}"}). Common patterns:
|
|
79
88
|
- Person: {"name": {"firstName": "John", "lastName": "Doe"}, "emails": {"primaryEmail": "john@example.com"}, "company": {"id": "{{trigger.object.id}}"}}
|
|
80
89
|
- Company: {"name": "Acme Corp", "domainName": {"primaryLinkUrl": "https://acme.com"}}
|
|
81
90
|
- Task: {"title": "Follow up", "status": "TODO", "assignee": {"id": "{{user.id}}"}}`
|
|
82
|
-
),
|
|
91
|
+
), I = i.extend({
|
|
83
92
|
input: e.object({
|
|
84
93
|
objectName: e.string().describe(
|
|
85
94
|
'The name of the object to create a record in. Must be lowercase (e.g., "person", "company", "task").'
|
|
86
95
|
),
|
|
87
96
|
objectRecord: u.describe("The record data to create.")
|
|
88
97
|
})
|
|
89
|
-
}),
|
|
98
|
+
}), x = a.extend(
|
|
90
99
|
{
|
|
91
100
|
type: e.literal("CREATE_RECORD"),
|
|
92
|
-
settings:
|
|
101
|
+
settings: I
|
|
93
102
|
}
|
|
94
|
-
),
|
|
103
|
+
), D = d.extend({
|
|
95
104
|
type: e.literal("CRON"),
|
|
96
105
|
settings: e.discriminatedUnion("type", [
|
|
97
106
|
e.object({
|
|
@@ -122,7 +131,7 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
122
131
|
outputSchema: e.looseObject({})
|
|
123
132
|
})
|
|
124
133
|
])
|
|
125
|
-
}),
|
|
134
|
+
}), F = d.extend({
|
|
126
135
|
type: e.literal("DATABASE_EVENT"),
|
|
127
136
|
settings: e.object({
|
|
128
137
|
eventName: e.string().regex(
|
|
@@ -140,49 +149,45 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
140
149
|
})
|
|
141
150
|
}).describe(
|
|
142
151
|
"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}}."
|
|
143
|
-
),
|
|
152
|
+
), U = i.extend({
|
|
144
153
|
input: e.object({
|
|
145
154
|
objectName: e.string(),
|
|
146
155
|
objectRecordId: e.string()
|
|
147
156
|
})
|
|
148
|
-
}),
|
|
157
|
+
}), _ = a.extend(
|
|
149
158
|
{
|
|
150
159
|
type: e.literal("DELETE_RECORD"),
|
|
151
|
-
settings:
|
|
160
|
+
settings: U
|
|
152
161
|
}
|
|
153
|
-
),
|
|
162
|
+
), C = i.extend({
|
|
154
163
|
input: e.object({})
|
|
155
|
-
}),
|
|
164
|
+
}), L = a.extend({
|
|
156
165
|
type: e.literal("EMPTY"),
|
|
157
|
-
settings:
|
|
166
|
+
settings: C
|
|
167
|
+
}), m = e.object({
|
|
168
|
+
id: e.string(),
|
|
169
|
+
logicalOperator: e.enum(S),
|
|
170
|
+
parentStepFilterGroupId: e.string().optional(),
|
|
171
|
+
positionInStepFilterGroup: e.number().optional()
|
|
172
|
+
}), g = e.object({
|
|
173
|
+
id: e.string(),
|
|
174
|
+
type: e.string(),
|
|
175
|
+
stepOutputKey: e.string(),
|
|
176
|
+
operand: e.enum(y).or(e.enum(E)),
|
|
177
|
+
value: e.string(),
|
|
178
|
+
stepFilterGroupId: e.string(),
|
|
179
|
+
positionInStepFilterGroup: e.number().optional(),
|
|
180
|
+
fieldMetadataId: e.string().optional(),
|
|
181
|
+
compositeFieldSubFieldName: e.string().optional()
|
|
158
182
|
}), P = i.extend({
|
|
159
183
|
input: e.object({
|
|
160
|
-
stepFilterGroups: e.array(
|
|
161
|
-
|
|
162
|
-
id: e.string(),
|
|
163
|
-
logicalOperator: e.enum(h),
|
|
164
|
-
parentStepFilterGroupId: e.string().optional(),
|
|
165
|
-
positionInStepFilterGroup: e.number().optional()
|
|
166
|
-
})
|
|
167
|
-
),
|
|
168
|
-
stepFilters: e.array(
|
|
169
|
-
e.object({
|
|
170
|
-
id: e.string(),
|
|
171
|
-
type: e.string(),
|
|
172
|
-
stepOutputKey: e.string(),
|
|
173
|
-
operand: e.enum(w).or(e.enum(S)),
|
|
174
|
-
value: e.string(),
|
|
175
|
-
stepFilterGroupId: e.string(),
|
|
176
|
-
positionInStepFilterGroup: e.number().optional(),
|
|
177
|
-
fieldMetadataId: e.string().optional(),
|
|
178
|
-
compositeFieldSubFieldName: e.string().optional()
|
|
179
|
-
})
|
|
180
|
-
)
|
|
184
|
+
stepFilterGroups: e.array(m),
|
|
185
|
+
stepFilters: e.array(g)
|
|
181
186
|
})
|
|
182
|
-
}),
|
|
187
|
+
}), G = a.extend({
|
|
183
188
|
type: e.literal("FILTER"),
|
|
184
189
|
settings: P
|
|
185
|
-
}),
|
|
190
|
+
}), v = i.extend({
|
|
186
191
|
input: e.object({
|
|
187
192
|
objectName: e.string(),
|
|
188
193
|
limit: e.number().optional(),
|
|
@@ -196,10 +201,10 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
196
201
|
gqlOperationOrderBy: e.array(e.record(e.string(), e.any())).optional()
|
|
197
202
|
}).optional()
|
|
198
203
|
})
|
|
199
|
-
}),
|
|
204
|
+
}), M = a.extend({
|
|
200
205
|
type: e.literal("FIND_RECORDS"),
|
|
201
|
-
settings:
|
|
202
|
-
}),
|
|
206
|
+
settings: v
|
|
207
|
+
}), B = i.extend({
|
|
203
208
|
input: e.array(
|
|
204
209
|
e.object({
|
|
205
210
|
id: e.string(),
|
|
@@ -217,10 +222,10 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
217
222
|
value: e.any().optional()
|
|
218
223
|
})
|
|
219
224
|
)
|
|
220
|
-
}),
|
|
225
|
+
}), V = a.extend({
|
|
221
226
|
type: e.literal("FORM"),
|
|
222
|
-
settings:
|
|
223
|
-
}),
|
|
227
|
+
settings: B
|
|
228
|
+
}), W = i.extend({
|
|
224
229
|
input: e.object({
|
|
225
230
|
url: e.string(),
|
|
226
231
|
method: e.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]),
|
|
@@ -236,10 +241,23 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
236
241
|
])
|
|
237
242
|
).or(e.string()).optional()
|
|
238
243
|
})
|
|
239
|
-
}),
|
|
244
|
+
}), H = a.extend({
|
|
240
245
|
type: e.literal("HTTP_REQUEST"),
|
|
241
|
-
settings:
|
|
242
|
-
}),
|
|
246
|
+
settings: W
|
|
247
|
+
}), K = e.object({
|
|
248
|
+
id: e.string(),
|
|
249
|
+
nextStepIds: e.array(e.string()),
|
|
250
|
+
filterGroupId: e.string().optional()
|
|
251
|
+
}), q = i.extend({
|
|
252
|
+
input: e.object({
|
|
253
|
+
stepFilterGroups: e.array(m),
|
|
254
|
+
stepFilters: e.array(g),
|
|
255
|
+
branches: e.array(K)
|
|
256
|
+
})
|
|
257
|
+
}), J = a.extend({
|
|
258
|
+
type: e.literal("IF_ELSE"),
|
|
259
|
+
settings: q
|
|
260
|
+
}), Y = i.extend({
|
|
243
261
|
input: e.object({
|
|
244
262
|
items: e.union([
|
|
245
263
|
e.array(
|
|
@@ -256,10 +274,10 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
256
274
|
]).optional(),
|
|
257
275
|
initialLoopStepIds: e.array(e.string()).optional()
|
|
258
276
|
})
|
|
259
|
-
}),
|
|
277
|
+
}), z = a.extend({
|
|
260
278
|
type: e.literal("ITERATOR"),
|
|
261
|
-
settings:
|
|
262
|
-
}),
|
|
279
|
+
settings: Y
|
|
280
|
+
}), Q = d.extend({
|
|
263
281
|
type: e.literal("MANUAL"),
|
|
264
282
|
settings: e.object({
|
|
265
283
|
objectType: e.string().optional(),
|
|
@@ -285,46 +303,46 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
285
303
|
})
|
|
286
304
|
}).describe(
|
|
287
305
|
"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."
|
|
288
|
-
),
|
|
289
|
-
id: e.string().refine((t) =>
|
|
306
|
+
), $ = e.object({
|
|
307
|
+
id: e.string().refine((t) => j(t)),
|
|
290
308
|
name: e.string(),
|
|
291
309
|
size: e.number(),
|
|
292
310
|
type: e.string(),
|
|
293
311
|
createdAt: e.string()
|
|
294
|
-
}),
|
|
312
|
+
}), X = i.extend({
|
|
295
313
|
input: e.object({
|
|
296
314
|
connectedAccountId: e.string(),
|
|
297
315
|
email: e.string(),
|
|
298
316
|
subject: e.string().optional(),
|
|
299
317
|
body: e.string().optional(),
|
|
300
|
-
files: e.array(
|
|
318
|
+
files: e.array($).optional().default([])
|
|
301
319
|
})
|
|
302
|
-
}),
|
|
320
|
+
}), Z = a.extend({
|
|
303
321
|
type: e.literal("SEND_EMAIL"),
|
|
304
|
-
settings:
|
|
305
|
-
}),
|
|
322
|
+
settings: X
|
|
323
|
+
}), ee = i.extend({
|
|
306
324
|
input: e.object({
|
|
307
325
|
objectName: e.string(),
|
|
308
326
|
objectRecord: u,
|
|
309
327
|
objectRecordId: e.string(),
|
|
310
328
|
fieldsToUpdate: e.array(e.string())
|
|
311
329
|
})
|
|
312
|
-
}),
|
|
330
|
+
}), te = a.extend(
|
|
313
331
|
{
|
|
314
332
|
type: e.literal("UPDATE_RECORD"),
|
|
315
|
-
settings:
|
|
333
|
+
settings: ee
|
|
316
334
|
}
|
|
317
|
-
),
|
|
335
|
+
), oe = i.extend({
|
|
318
336
|
input: e.object({
|
|
319
337
|
objectName: e.string(),
|
|
320
338
|
objectRecord: u
|
|
321
339
|
})
|
|
322
|
-
}),
|
|
340
|
+
}), re = a.extend(
|
|
323
341
|
{
|
|
324
342
|
type: e.literal("UPSERT_RECORD"),
|
|
325
|
-
settings:
|
|
343
|
+
settings: oe
|
|
326
344
|
}
|
|
327
|
-
),
|
|
345
|
+
), ne = d.extend({
|
|
328
346
|
type: e.literal("WEBHOOK"),
|
|
329
347
|
settings: e.discriminatedUnion("httpMethod", [
|
|
330
348
|
e.object({
|
|
@@ -339,7 +357,7 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
339
357
|
authentication: e.literal("API_KEY").nullable()
|
|
340
358
|
})
|
|
341
359
|
])
|
|
342
|
-
}),
|
|
360
|
+
}), ie = i.extend({
|
|
343
361
|
input: e.object({
|
|
344
362
|
delayType: e.enum(["SCHEDULED_DATE", "DURATION"]),
|
|
345
363
|
scheduledDateTime: e.string().nullable().optional(),
|
|
@@ -350,55 +368,56 @@ const j = /{{([^{}]+)}}/g, Te = {
|
|
|
350
368
|
seconds: e.union([e.number().min(0), e.string()]).optional()
|
|
351
369
|
}).optional()
|
|
352
370
|
})
|
|
353
|
-
}),
|
|
371
|
+
}), ae = a.extend({
|
|
354
372
|
type: e.literal("DELAY"),
|
|
355
|
-
settings:
|
|
356
|
-
}),
|
|
357
|
-
R,
|
|
358
|
-
Y,
|
|
373
|
+
settings: ie
|
|
374
|
+
}), se = e.discriminatedUnion("type", [
|
|
359
375
|
N,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
v,
|
|
364
|
-
G,
|
|
365
|
-
V,
|
|
366
|
-
T,
|
|
376
|
+
Z,
|
|
377
|
+
x,
|
|
378
|
+
te,
|
|
367
379
|
_,
|
|
380
|
+
re,
|
|
381
|
+
M,
|
|
382
|
+
V,
|
|
368
383
|
H,
|
|
369
|
-
|
|
370
|
-
|
|
384
|
+
R,
|
|
385
|
+
G,
|
|
386
|
+
J,
|
|
387
|
+
z,
|
|
388
|
+
ae,
|
|
389
|
+
L
|
|
371
390
|
]);
|
|
372
|
-
var
|
|
373
|
-
const
|
|
391
|
+
var b = /* @__PURE__ */ ((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))(b || {});
|
|
392
|
+
const ce = e.enum(b), f = e.object({
|
|
374
393
|
result: e.any().optional(),
|
|
375
394
|
error: e.any().optional(),
|
|
376
|
-
status:
|
|
395
|
+
status: ce,
|
|
377
396
|
get history() {
|
|
378
397
|
return e.array(
|
|
379
|
-
|
|
398
|
+
f.pick({
|
|
380
399
|
result: !0,
|
|
381
400
|
status: !0,
|
|
382
401
|
error: !0
|
|
383
402
|
})
|
|
384
403
|
).optional();
|
|
385
404
|
}
|
|
386
|
-
}),
|
|
405
|
+
}), le = e.record(
|
|
387
406
|
e.string(),
|
|
388
|
-
|
|
389
|
-
),
|
|
407
|
+
f
|
|
408
|
+
), de = e.discriminatedUnion("type", [
|
|
409
|
+
F,
|
|
410
|
+
Q,
|
|
390
411
|
D,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
Z
|
|
394
|
-
]), ae = e.object({
|
|
412
|
+
ne
|
|
413
|
+
]), pe = e.object({
|
|
395
414
|
flow: e.object({
|
|
396
|
-
trigger:
|
|
397
|
-
steps: e.array(
|
|
415
|
+
trigger: de,
|
|
416
|
+
steps: e.array(se)
|
|
398
417
|
}),
|
|
399
|
-
stepInfos:
|
|
418
|
+
stepInfos: le,
|
|
400
419
|
workflowRunError: e.any().optional()
|
|
401
|
-
}),
|
|
420
|
+
}), ue = e.enum([
|
|
402
421
|
"NOT_STARTED",
|
|
403
422
|
"RUNNING",
|
|
404
423
|
"COMPLETED",
|
|
@@ -406,18 +425,18 @@ const re = e.enum(m), g = e.object({
|
|
|
406
425
|
"ENQUEUED",
|
|
407
426
|
"STOPPING",
|
|
408
427
|
"STOPPED"
|
|
409
|
-
]),
|
|
428
|
+
]), Fe = e.looseObject({
|
|
410
429
|
__typename: e.literal("WorkflowRun"),
|
|
411
430
|
id: e.string(),
|
|
412
431
|
workflowVersionId: e.string(),
|
|
413
432
|
workflowId: e.string(),
|
|
414
|
-
state:
|
|
415
|
-
status:
|
|
433
|
+
state: pe.nullable(),
|
|
434
|
+
status: ue,
|
|
416
435
|
createdAt: e.string(),
|
|
417
436
|
deletedAt: e.string().nullable(),
|
|
418
437
|
endedAt: e.string().nullable(),
|
|
419
438
|
name: e.string()
|
|
420
|
-
}),
|
|
439
|
+
}), Ue = ({
|
|
421
440
|
nameSingular: t,
|
|
422
441
|
isSystem: o
|
|
423
442
|
}) => ![
|
|
@@ -425,20 +444,20 @@ const re = e.enum(m), g = e.object({
|
|
|
425
444
|
"workflowVersion",
|
|
426
445
|
"workflowRun",
|
|
427
446
|
"dashboard"
|
|
428
|
-
].includes(t) && !o,
|
|
447
|
+
].includes(t) && !o, _e = ({
|
|
429
448
|
rawVariableName: t,
|
|
430
449
|
part: o
|
|
431
450
|
}) => {
|
|
432
451
|
const r = t.replace(
|
|
433
|
-
|
|
434
|
-
(
|
|
452
|
+
O,
|
|
453
|
+
(h, w) => w
|
|
435
454
|
).split("."), s = o === "stepId" ? r[0] : o === "selectedField" ? r[r.length - 1] : null;
|
|
436
455
|
if (!l(s))
|
|
437
456
|
throw new Error("Expected to find at least one splitted chunk.");
|
|
438
457
|
return s;
|
|
439
|
-
},
|
|
458
|
+
}, Ce = (t) => Object.fromEntries(
|
|
440
459
|
Object.entries(t).filter(([, o]) => l(o?.result)).map(([o, n]) => [o, n?.result])
|
|
441
|
-
),
|
|
460
|
+
), Le = (t) => t === "true" ? !0 : t === "false" ? !1 : t, me = (t) => {
|
|
442
461
|
let o = t;
|
|
443
462
|
if (typeof t == "string")
|
|
444
463
|
try {
|
|
@@ -447,7 +466,7 @@ const re = e.enum(m), g = e.object({
|
|
|
447
466
|
o = t;
|
|
448
467
|
}
|
|
449
468
|
return new URLSearchParams(o).toString();
|
|
450
|
-
},
|
|
469
|
+
}, ge = (t) => {
|
|
451
470
|
const o = new FormData();
|
|
452
471
|
if (typeof t == "string")
|
|
453
472
|
try {
|
|
@@ -461,36 +480,36 @@ const re = e.enum(m), g = e.object({
|
|
|
461
480
|
else
|
|
462
481
|
Object.entries(t).forEach(([n, r]) => o.append(n, r));
|
|
463
482
|
return o;
|
|
464
|
-
}, p = (t) => typeof t == "string" ? t : JSON.stringify(t),
|
|
465
|
-
`),
|
|
483
|
+
}, p = (t) => typeof t == "string" ? t : JSON.stringify(t), be = (t) => typeof t == "string" ? t : Object.entries(t).map(([o, n]) => `${o}=${n}`).join(`
|
|
484
|
+
`), Pe = (t, o) => {
|
|
466
485
|
if (o === void 0)
|
|
467
486
|
return p(t);
|
|
468
487
|
switch (o) {
|
|
469
488
|
case "application/x-www-form-urlencoded":
|
|
470
|
-
return
|
|
489
|
+
return me(t);
|
|
471
490
|
case "multipart/form-data":
|
|
472
|
-
return
|
|
491
|
+
return ge(t);
|
|
473
492
|
case "application/json":
|
|
474
493
|
return p(t);
|
|
475
494
|
case "text/plain":
|
|
476
|
-
return
|
|
495
|
+
return be(t);
|
|
477
496
|
default:
|
|
478
497
|
return p(t);
|
|
479
498
|
}
|
|
480
|
-
},
|
|
481
|
-
(o, [n, r]) => (
|
|
499
|
+
}, fe = (t) => !l(t) || t === null ? "unknown" : typeof t == "string" ? "string" : typeof t == "number" ? "number" : typeof t == "boolean" ? "boolean" : Array.isArray(t) ? "array" : "unknown", he = (t) => t ? Object.entries(t).reduce(
|
|
500
|
+
(o, [n, r]) => (A(r) && !Array.isArray(r) ? o[n] = {
|
|
482
501
|
isLeaf: !1,
|
|
483
502
|
type: "object",
|
|
484
503
|
label: n,
|
|
485
|
-
value:
|
|
504
|
+
value: he(r)
|
|
486
505
|
} : o[n] = {
|
|
487
506
|
isLeaf: !0,
|
|
488
507
|
value: r,
|
|
489
|
-
type:
|
|
508
|
+
type: fe(r),
|
|
490
509
|
label: n
|
|
491
510
|
}, o),
|
|
492
511
|
{}
|
|
493
|
-
) : {},
|
|
512
|
+
) : {}, Ge = ({
|
|
494
513
|
schema: t,
|
|
495
514
|
propertyPath: o
|
|
496
515
|
}) => {
|
|
@@ -507,60 +526,66 @@ const re = e.enum(m), g = e.object({
|
|
|
507
526
|
return r;
|
|
508
527
|
};
|
|
509
528
|
export {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
529
|
+
O as CAPTURE_ALL_VARIABLE_TAG_INNER_REGEX,
|
|
530
|
+
Ie as CONTENT_TYPE_VALUES_HTTP_REQUEST,
|
|
531
|
+
xe as IF_ELSE_BRANCH_POSITION_OFFSETS,
|
|
532
|
+
b as StepStatus,
|
|
533
|
+
De as TRIGGER_STEP_ID,
|
|
514
534
|
d as baseTriggerSchema,
|
|
515
535
|
a as baseWorkflowActionSchema,
|
|
516
536
|
i as baseWorkflowActionSettingsSchema,
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
537
|
+
he as buildOutputSchemaFromValue,
|
|
538
|
+
Ue as canObjectBeManagedByWorkflow,
|
|
539
|
+
_e as extractRawVariableNamePart,
|
|
540
|
+
Ce as getWorkflowRunContext,
|
|
541
|
+
Ge as navigateOutputSchemaProperty,
|
|
522
542
|
u as objectRecordSchema,
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
F as
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
543
|
+
Le as parseBooleanFromStringValue,
|
|
544
|
+
Pe as parseDataFromContentType,
|
|
545
|
+
m as stepFilterGroupSchema,
|
|
546
|
+
g as stepFilterSchema,
|
|
547
|
+
K as stepIfElseBranchSchema,
|
|
548
|
+
se as workflowActionSchema,
|
|
549
|
+
R as workflowAiAgentActionSchema,
|
|
550
|
+
T as workflowAiAgentActionSettingsSchema,
|
|
551
|
+
N as workflowCodeActionSchema,
|
|
552
|
+
k as workflowCodeActionSettingsSchema,
|
|
553
|
+
x as workflowCreateRecordActionSchema,
|
|
554
|
+
I as workflowCreateRecordActionSettingsSchema,
|
|
555
|
+
D as workflowCronTriggerSchema,
|
|
556
|
+
F as workflowDatabaseEventTriggerSchema,
|
|
557
|
+
ae as workflowDelayActionSchema,
|
|
558
|
+
ie as workflowDelayActionSettingsSchema,
|
|
559
|
+
_ as workflowDeleteRecordActionSchema,
|
|
560
|
+
U as workflowDeleteRecordActionSettingsSchema,
|
|
561
|
+
L as workflowEmptyActionSchema,
|
|
562
|
+
C as workflowEmptyActionSettingsSchema,
|
|
563
|
+
$ as workflowFileSchema,
|
|
564
|
+
G as workflowFilterActionSchema,
|
|
542
565
|
P as workflowFilterActionSettingsSchema,
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
+
M as workflowFindRecordsActionSchema,
|
|
567
|
+
v as workflowFindRecordsActionSettingsSchema,
|
|
568
|
+
V as workflowFormActionSchema,
|
|
569
|
+
B as workflowFormActionSettingsSchema,
|
|
570
|
+
H as workflowHttpRequestActionSchema,
|
|
571
|
+
W as workflowHttpRequestActionSettingsSchema,
|
|
572
|
+
J as workflowIfElseActionSchema,
|
|
573
|
+
q as workflowIfElseActionSettingsSchema,
|
|
574
|
+
z as workflowIteratorActionSchema,
|
|
575
|
+
Y as workflowIteratorActionSettingsSchema,
|
|
576
|
+
Q as workflowManualTriggerSchema,
|
|
577
|
+
Fe as workflowRunSchema,
|
|
578
|
+
pe as workflowRunStateSchema,
|
|
579
|
+
f as workflowRunStateStepInfoSchema,
|
|
580
|
+
le as workflowRunStateStepInfosSchema,
|
|
581
|
+
ue as workflowRunStatusSchema,
|
|
582
|
+
ce as workflowRunStepStatusSchema,
|
|
583
|
+
Z as workflowSendEmailActionSchema,
|
|
584
|
+
X as workflowSendEmailActionSettingsSchema,
|
|
585
|
+
de as workflowTriggerSchema,
|
|
586
|
+
te as workflowUpdateRecordActionSchema,
|
|
587
|
+
ee as workflowUpdateRecordActionSettingsSchema,
|
|
588
|
+
re as workflowUpsertRecordActionSchema,
|
|
589
|
+
oe as workflowUpsertRecordActionSettingsSchema,
|
|
590
|
+
ne as workflowWebhookTriggerSchema
|
|
566
591
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twenty-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-alpha",
|
|
4
4
|
"main": "dist/index.cjs",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,10 +36,12 @@
|
|
|
36
36
|
"chokidar": "^4.0.0",
|
|
37
37
|
"commander": "^12.0.0",
|
|
38
38
|
"dotenv": "^16.4.0",
|
|
39
|
+
"fast-glob": "^3.3.0",
|
|
39
40
|
"fs-extra": "^11.2.0",
|
|
40
41
|
"graphql": "^16.8.1",
|
|
41
42
|
"graphql-sse": "^2.5.4",
|
|
42
43
|
"inquirer": "^10.0.0",
|
|
44
|
+
"jiti": "^2.0.0",
|
|
43
45
|
"jsonc-parser": "^3.2.0",
|
|
44
46
|
"lodash.camelcase": "^4.3.0",
|
|
45
47
|
"lodash.capitalize": "^4.2.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=l;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function l(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
o as c,
|
|
7
|
-
l as g
|
|
8
|
-
};
|