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.
Files changed (191) hide show
  1. package/README.md +125 -39
  2. package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Bft-VMSh.mjs +3151 -0
  3. package/dist/ObjectRecordGroupByDateGranularity-CtpRADP1-Duv5iOeZ.js +20 -0
  4. package/dist/application/define-app.d.ts +18 -0
  5. package/dist/application/functions/define-function.d.ts +28 -0
  6. package/dist/application/functions/function-config.d.ts +2 -0
  7. package/dist/application/functions/triggers/cron-payload-type.d.ts +1 -1
  8. package/dist/application/index.d.ts +5 -1
  9. package/dist/application/objects/define-object.d.ts +35 -0
  10. package/dist/application/roles/define-role.d.ts +26 -0
  11. package/dist/cli/commands/app-add.command.d.ts +2 -1
  12. package/dist/cli/utils/config-loader.d.ts +43 -0
  13. package/dist/cli/utils/display-entity-summary.d.ts +2 -0
  14. package/dist/cli/utils/display-errors.d.ts +2 -0
  15. package/dist/cli/utils/display-warnings.d.ts +2 -0
  16. package/dist/cli/utils/get-new-object-file-content.d.ts +9 -0
  17. package/dist/cli/utils/get-role-base-file.d.ts +4 -0
  18. package/dist/cli/utils/load-manifest.d.ts +37 -6
  19. package/dist/cli/utils/validate-manifest.d.ts +22 -0
  20. package/dist/cli.cjs +133 -79
  21. package/dist/cli.mjs +3318 -3163
  22. package/dist/index.cjs +2 -21
  23. package/dist/index.mjs +237 -3283
  24. package/dist/vendor/twenty-shared/ObjectRecordGroupByDateGranularity-BwpmSE4s.js +1 -0
  25. package/dist/vendor/twenty-shared/{FieldMetadataDefaultValue-CJU0Y2Fi.mjs → ObjectRecordGroupByDateGranularity-CtpRADP1.mjs} +219 -217
  26. package/dist/vendor/twenty-shared/RatingValues-B_wgYyso.js +1 -0
  27. package/dist/vendor/twenty-shared/{RatingValues-4GPp8aN_.mjs → RatingValues-DNSj7xKA.mjs} +63 -5
  28. package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts +1 -0
  29. package/dist/vendor/twenty-shared/application/fieldManifestType.d.ts.map +1 -1
  30. package/dist/vendor/twenty-shared/application/index.d.ts +1 -1
  31. package/dist/vendor/twenty-shared/application/index.d.ts.map +1 -1
  32. package/dist/vendor/twenty-shared/application/objectManifestType.d.ts +1 -1
  33. package/dist/vendor/twenty-shared/application/objectManifestType.d.ts.map +1 -1
  34. package/dist/vendor/twenty-shared/application/roleManifestType.d.ts +0 -1
  35. package/dist/vendor/twenty-shared/application/roleManifestType.d.ts.map +1 -1
  36. package/dist/vendor/twenty-shared/application/serverlessFunctionManifestType.d.ts +12 -1
  37. package/dist/vendor/twenty-shared/application/serverlessFunctionManifestType.d.ts.map +1 -1
  38. package/dist/vendor/twenty-shared/constants/GroupByDateGranularityThatRequireTimeZone.d.ts +4 -0
  39. package/dist/vendor/twenty-shared/constants/GroupByDateGranularityThatRequireTimeZone.d.ts.map +1 -0
  40. package/dist/vendor/twenty-shared/constants/ViewGroupVisibleOptionsMax.d.ts +2 -0
  41. package/dist/vendor/twenty-shared/constants/ViewGroupVisibleOptionsMax.d.ts.map +1 -0
  42. package/dist/vendor/twenty-shared/constants/index.d.ts +2 -0
  43. package/dist/vendor/twenty-shared/constants/index.d.ts.map +1 -1
  44. package/dist/vendor/twenty-shared/constants.cjs +1 -1
  45. package/dist/vendor/twenty-shared/constants.mjs +34 -33
  46. package/dist/vendor/twenty-shared/index.cjs +1 -1
  47. package/dist/vendor/twenty-shared/index.d.ts +0 -1
  48. package/dist/vendor/twenty-shared/index.d.ts.map +1 -1
  49. package/dist/vendor/twenty-shared/index.mjs +2 -5
  50. package/dist/vendor/twenty-shared/isValidCountryCode-DKpNbkXA.mjs +8533 -0
  51. package/dist/vendor/twenty-shared/isValidCountryCode-DgPRUhSL.js +4 -0
  52. package/dist/vendor/twenty-shared/metadata/MetadataValidationError.d.ts +2 -2
  53. package/dist/vendor/twenty-shared/metadata/MetadataValidationError.d.ts.map +1 -1
  54. package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts +4 -0
  55. package/dist/vendor/twenty-shared/metadata/all-metadata-name.constant.d.ts.map +1 -1
  56. package/dist/vendor/twenty-shared/metadata.cjs +1 -1
  57. package/dist/vendor/twenty-shared/metadata.mjs +12 -8
  58. package/dist/vendor/twenty-shared/types/ArraySortDirection.d.ts +2 -0
  59. package/dist/vendor/twenty-shared/types/ArraySortDirection.d.ts.map +1 -0
  60. package/dist/vendor/twenty-shared/types/CrudOperationType.d.ts +8 -0
  61. package/dist/vendor/twenty-shared/types/CrudOperationType.d.ts.map +1 -0
  62. package/dist/vendor/twenty-shared/types/ExtractPropertiesThatEndsWithIds.d.ts +4 -0
  63. package/dist/vendor/twenty-shared/types/ExtractPropertiesThatEndsWithIds.d.ts.map +1 -0
  64. package/dist/vendor/twenty-shared/types/RecordFilterValueDependencies.d.ts +1 -0
  65. package/dist/vendor/twenty-shared/types/RecordFilterValueDependencies.d.ts.map +1 -1
  66. package/dist/vendor/twenty-shared/types/SettingsPath.d.ts +3 -1
  67. package/dist/vendor/twenty-shared/types/SettingsPath.d.ts.map +1 -1
  68. package/dist/vendor/twenty-shared/types/ViewFilterOperand.d.ts +1 -1
  69. package/dist/vendor/twenty-shared/types/ViewFilterOperand.d.ts.map +1 -1
  70. package/dist/vendor/twenty-shared/types/index.d.ts +3 -0
  71. package/dist/vendor/twenty-shared/types/index.d.ts.map +1 -1
  72. package/dist/vendor/twenty-shared/types.cjs +1 -1
  73. package/dist/vendor/twenty-shared/types.mjs +60 -59
  74. package/dist/vendor/twenty-shared/utils/array/{upsertIntoArrayOfObjectComparingId.d.ts → upsertIntoArrayOfObjectsComparingId.d.ts} +1 -1
  75. package/dist/vendor/twenty-shared/utils/array/upsertIntoArrayOfObjectsComparingId.d.ts.map +1 -0
  76. package/dist/vendor/twenty-shared/utils/array/upsertPropertiesOfItemIntoArrayOfObjectsComparingId.d.ts +6 -0
  77. package/dist/vendor/twenty-shared/utils/array/upsertPropertiesOfItemIntoArrayOfObjectsComparingId.d.ts.map +1 -0
  78. package/dist/vendor/twenty-shared/utils/date/isPlainDateAfter.d.ts +4 -0
  79. package/dist/vendor/twenty-shared/utils/date/isPlainDateAfter.d.ts.map +1 -0
  80. package/dist/vendor/twenty-shared/utils/date/isPlainDateBefore.d.ts +4 -0
  81. package/dist/vendor/twenty-shared/utils/date/isPlainDateBefore.d.ts.map +1 -0
  82. package/dist/vendor/twenty-shared/utils/date/isPlainDateBeforeOrEqual.d.ts +4 -0
  83. package/dist/vendor/twenty-shared/utils/date/isPlainDateBeforeOrEqual.d.ts.map +1 -0
  84. package/dist/vendor/twenty-shared/utils/date/isPlainDateInSameMonth.d.ts +4 -0
  85. package/dist/vendor/twenty-shared/utils/date/isPlainDateInSameMonth.d.ts.map +1 -0
  86. package/dist/vendor/twenty-shared/utils/date/isPlainDateInWeekend.d.ts +4 -0
  87. package/dist/vendor/twenty-shared/utils/date/isPlainDateInWeekend.d.ts.map +1 -0
  88. package/dist/vendor/twenty-shared/utils/date/isSamePlainDate.d.ts +4 -0
  89. package/dist/vendor/twenty-shared/utils/date/isSamePlainDate.d.ts.map +1 -0
  90. package/dist/vendor/twenty-shared/utils/date/parseToPlainDateOrThrow.d.ts +4 -0
  91. package/dist/vendor/twenty-shared/utils/date/parseToPlainDateOrThrow.d.ts.map +1 -0
  92. package/dist/vendor/twenty-shared/utils/date/sortPlainDate.d.ts +5 -0
  93. package/dist/vendor/twenty-shared/utils/date/sortPlainDate.d.ts.map +1 -0
  94. package/dist/vendor/twenty-shared/utils/date/turnJSDateToPlainDate.d.ts +4 -0
  95. package/dist/vendor/twenty-shared/utils/date/turnJSDateToPlainDate.d.ts.map +1 -0
  96. package/dist/vendor/twenty-shared/utils/date/turnPlainDateIntoUserTimeZoneInstantString.d.ts +4 -0
  97. package/dist/vendor/twenty-shared/utils/date/turnPlainDateIntoUserTimeZoneInstantString.d.ts.map +1 -0
  98. package/dist/vendor/twenty-shared/utils/date/turnPlainDateToShiftedDateInSystemTimeZone.d.ts +4 -0
  99. package/dist/vendor/twenty-shared/utils/date/turnPlainDateToShiftedDateInSystemTimeZone.d.ts.map +1 -0
  100. package/dist/vendor/twenty-shared/utils/fieldMetadata/index.d.ts +3 -0
  101. package/dist/vendor/twenty-shared/utils/fieldMetadata/index.d.ts.map +1 -1
  102. package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataNumericKind.d.ts +4 -0
  103. package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataNumericKind.d.ts.map +1 -0
  104. package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataSelectKind.d.ts +4 -0
  105. package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataSelectKind.d.ts.map +1 -0
  106. package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataTextKind.d.ts +4 -0
  107. package/dist/vendor/twenty-shared/utils/fieldMetadata/isFieldMetadataTextKind.d.ts.map +1 -0
  108. package/dist/vendor/twenty-shared/utils/filter/dates/types/DateTimePeriod.d.ts +4 -0
  109. package/dist/vendor/twenty-shared/utils/filter/dates/types/DateTimePeriod.d.ts.map +1 -0
  110. package/dist/vendor/twenty-shared/utils/filter/dates/utils/addUnitToDateTime.d.ts +1 -0
  111. package/dist/vendor/twenty-shared/utils/filter/dates/utils/addUnitToDateTime.d.ts.map +1 -1
  112. package/dist/vendor/twenty-shared/utils/filter/dates/utils/addUnitToZonedDateTime.d.ts +5 -0
  113. package/dist/vendor/twenty-shared/utils/filter/dates/utils/addUnitToZonedDateTime.d.ts.map +1 -0
  114. package/dist/vendor/twenty-shared/utils/filter/dates/utils/convertCalendarStartDayNonIsoNumberToFirstDayOfTheWeek.d.ts +5 -0
  115. package/dist/vendor/twenty-shared/utils/filter/dates/utils/convertCalendarStartDayNonIsoNumberToFirstDayOfTheWeek.d.ts.map +1 -0
  116. package/dist/vendor/twenty-shared/utils/filter/dates/utils/convertFirstDayOfTheWeekToCalendarStartDayNumber.d.ts +5 -0
  117. package/dist/vendor/twenty-shared/utils/filter/dates/utils/convertFirstDayOfTheWeekToCalendarStartDayNumber.d.ts.map +1 -0
  118. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getFirstDayOfTheWeekAsISONumber.d.ts +4 -0
  119. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getFirstDayOfTheWeekAsISONumber.d.ts.map +1 -0
  120. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getNextPeriodStart.d.ts +8 -0
  121. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getNextPeriodStart.d.ts.map +1 -0
  122. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getPeriodStart.d.ts +7 -0
  123. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getPeriodStart.d.ts.map +1 -0
  124. package/dist/vendor/twenty-shared/utils/filter/dates/utils/relativeDateFilterStringifiedSchema.d.ts.map +1 -1
  125. package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveDateTimeFilter.d.ts +1 -1
  126. package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveDateTimeFilter.d.ts.map +1 -1
  127. package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateFilter.d.ts +2 -1
  128. package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateFilter.d.ts.map +1 -1
  129. package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateFilterStringified.d.ts.map +1 -1
  130. package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateTimeFilter.d.ts +4 -3
  131. package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateTimeFilter.d.ts.map +1 -1
  132. package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateTimeFilterStringified.d.ts +5 -3
  133. package/dist/vendor/twenty-shared/utils/filter/dates/utils/resolveRelativeDateTimeFilterStringified.d.ts.map +1 -1
  134. package/dist/vendor/twenty-shared/utils/filter/dates/utils/subUnitFromZonedDateTime.d.ts +5 -0
  135. package/dist/vendor/twenty-shared/utils/filter/dates/utils/subUnitFromZonedDateTime.d.ts.map +1 -0
  136. package/dist/vendor/twenty-shared/utils/filter/turnRecordFilterIntoGqlOperationFilter.d.ts +1 -1
  137. package/dist/vendor/twenty-shared/utils/filter/turnRecordFilterIntoGqlOperationFilter.d.ts.map +1 -1
  138. package/dist/vendor/twenty-shared/utils/index.d.ts +24 -7
  139. package/dist/vendor/twenty-shared/utils/index.d.ts.map +1 -1
  140. package/dist/vendor/twenty-shared/utils/url/lowercaseUrlOriginAndRemoveTrailingSlash.d.ts.map +1 -1
  141. package/dist/vendor/twenty-shared/utils.cjs +2 -3
  142. package/dist/vendor/twenty-shared/utils.mjs +774 -2484
  143. package/dist/vendor/twenty-shared/workflow/constants/IfElseBranchPositionOffsets.d.ts +11 -0
  144. package/dist/vendor/twenty-shared/workflow/constants/IfElseBranchPositionOffsets.d.ts.map +1 -0
  145. package/dist/vendor/twenty-shared/workflow/index.d.ts +6 -0
  146. package/dist/vendor/twenty-shared/workflow/index.d.ts.map +1 -1
  147. package/dist/vendor/twenty-shared/workflow/schemas/filter-action-settings-schema.d.ts +2 -5
  148. package/dist/vendor/twenty-shared/workflow/schemas/filter-action-settings-schema.d.ts.map +1 -1
  149. package/dist/vendor/twenty-shared/workflow/schemas/http-request-action-schema.d.ts +1 -1
  150. package/dist/vendor/twenty-shared/workflow/schemas/http-request-action-settings-schema.d.ts +1 -1
  151. package/dist/vendor/twenty-shared/workflow/schemas/if-else-action-schema.d.ts +49 -0
  152. package/dist/vendor/twenty-shared/workflow/schemas/if-else-action-schema.d.ts.map +1 -0
  153. package/dist/vendor/twenty-shared/workflow/schemas/if-else-action-settings-schema.d.ts +43 -0
  154. package/dist/vendor/twenty-shared/workflow/schemas/if-else-action-settings-schema.d.ts.map +1 -0
  155. package/dist/vendor/twenty-shared/workflow/schemas/step-filter-group-schema.d.ts +10 -0
  156. package/dist/vendor/twenty-shared/workflow/schemas/step-filter-group-schema.d.ts.map +1 -0
  157. package/dist/vendor/twenty-shared/workflow/schemas/step-filter-schema.d.ts +16 -0
  158. package/dist/vendor/twenty-shared/workflow/schemas/step-filter-schema.d.ts.map +1 -0
  159. package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts +46 -1
  160. package/dist/vendor/twenty-shared/workflow/schemas/workflow-action-schema.d.ts.map +1 -1
  161. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts +46 -1
  162. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-schema.d.ts.map +1 -1
  163. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts +46 -1
  164. package/dist/vendor/twenty-shared/workflow/schemas/workflow-run-state-schema.d.ts.map +1 -1
  165. package/dist/vendor/twenty-shared/workflow/types/StepIfElseBranch.d.ts +6 -0
  166. package/dist/vendor/twenty-shared/workflow/types/StepIfElseBranch.d.ts.map +1 -0
  167. package/dist/vendor/twenty-shared/workflow.cjs +3 -3
  168. package/dist/vendor/twenty-shared/workflow.mjs +199 -174
  169. package/package.json +3 -1
  170. package/dist/_commonjsHelpers-DKOUU3wS.js +0 -1
  171. package/dist/_commonjsHelpers-DaMA6jEr.mjs +0 -8
  172. package/dist/cli/utils/get-object-decorated-class.d.ts +0 -4
  173. package/dist/vendor/twenty-shared/FieldMetadataDefaultValue-CmL_eyqR.js +0 -1
  174. package/dist/vendor/twenty-shared/LabelIdentifierFieldMetadataTypes-BaWEb4k0.js +0 -1
  175. package/dist/vendor/twenty-shared/LabelIdentifierFieldMetadataTypes-BzzhC1dx.mjs +0 -55
  176. package/dist/vendor/twenty-shared/RatingValues-CBa057Mi.js +0 -1
  177. package/dist/vendor/twenty-shared/isValidCountryCode-DNOavXY6.js +0 -4
  178. package/dist/vendor/twenty-shared/isValidCountryCode-QjE8dukS.mjs +0 -6850
  179. package/dist/vendor/twenty-shared/utils/array/upsertIntoArrayOfObjectComparingId.d.ts.map +0 -1
  180. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getDateFromPlainDate.d.ts +0 -2
  181. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getDateFromPlainDate.d.ts.map +0 -1
  182. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getEndUnitOfDateTime.d.ts +0 -6
  183. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getEndUnitOfDateTime.d.ts.map +0 -1
  184. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getPlainDateFromDate.d.ts +0 -2
  185. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getPlainDateFromDate.d.ts.map +0 -1
  186. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getStartUnitOfDateTime.d.ts +0 -6
  187. package/dist/vendor/twenty-shared/utils/filter/dates/utils/getStartUnitOfDateTime.d.ts.map +0 -1
  188. package/dist/vendor/twenty-shared/utils/filter/dates/utils/shiftPointInTimeFromTimezoneDifferenceInMinutesWithSystemTimezone.d.ts +0 -2
  189. package/dist/vendor/twenty-shared/utils/filter/dates/utils/shiftPointInTimeFromTimezoneDifferenceInMinutesWithSystemTimezone.d.ts.map +0 -1
  190. package/dist/vendor/twenty-shared/utils/filter/utils/computeTimezoneDifferenceInMinutes.d.ts +0 -2
  191. 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 { F as c } from "./FieldMetadataDefaultValue-CJU0Y2Fi.mjs";
3
- import { S as h } from "./StepFilters-Cml3Z3gd.mjs";
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 w, a as S } from "./ViewFilterOperandDeprecated-DHNmFtYo.mjs";
6
- import { i as y, a as l } from "./isValidCountryCode-QjE8dukS.mjs";
7
- import { isObject as E } from "@sniptt/guards";
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 "./LabelIdentifierFieldMetadataTypes-BzzhC1dx.mjs";
9
+ import "./RatingValues-DNSj7xKA.mjs";
10
10
  import "qs";
11
11
  import "react-router-dom";
12
- const j = /{{([^{}]+)}}/g, Te = {
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
- }, Oe = "trigger", i = e.object({
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
- }), A = i.extend({
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
- }), T = a.extend({
61
+ }), R = a.extend({
53
62
  type: e.literal("AI_AGENT"),
54
- settings: A
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
- }), O = i.extend({
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
- }), R = a.extend({
83
+ }), N = a.extend({
75
84
  type: e.literal("CODE"),
76
- settings: O
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
- ), k = i.extend({
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
- }), N = a.extend(
98
+ }), x = a.extend(
90
99
  {
91
100
  type: e.literal("CREATE_RECORD"),
92
- settings: k
101
+ settings: I
93
102
  }
94
- ), x = d.extend({
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
- }), D = d.extend({
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
- ), I = i.extend({
152
+ ), U = i.extend({
144
153
  input: e.object({
145
154
  objectName: e.string(),
146
155
  objectRecordId: e.string()
147
156
  })
148
- }), F = a.extend(
157
+ }), _ = a.extend(
149
158
  {
150
159
  type: e.literal("DELETE_RECORD"),
151
- settings: I
160
+ settings: U
152
161
  }
153
- ), U = i.extend({
162
+ ), C = i.extend({
154
163
  input: e.object({})
155
- }), C = a.extend({
164
+ }), L = a.extend({
156
165
  type: e.literal("EMPTY"),
157
- settings: U
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
- e.object({
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
- }), _ = a.extend({
187
+ }), G = a.extend({
183
188
  type: e.literal("FILTER"),
184
189
  settings: P
185
- }), L = i.extend({
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
- }), v = a.extend({
204
+ }), M = a.extend({
200
205
  type: e.literal("FIND_RECORDS"),
201
- settings: L
202
- }), M = i.extend({
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
- }), G = a.extend({
225
+ }), V = a.extend({
221
226
  type: e.literal("FORM"),
222
- settings: M
223
- }), B = i.extend({
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
- }), V = a.extend({
244
+ }), H = a.extend({
240
245
  type: e.literal("HTTP_REQUEST"),
241
- settings: B
242
- }), W = i.extend({
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
- }), H = a.extend({
277
+ }), z = a.extend({
260
278
  type: e.literal("ITERATOR"),
261
- settings: W
262
- }), K = d.extend({
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
- ), q = e.object({
289
- id: e.string().refine((t) => y(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
- }), J = i.extend({
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(q).optional().default([])
318
+ files: e.array($).optional().default([])
301
319
  })
302
- }), Y = a.extend({
320
+ }), Z = a.extend({
303
321
  type: e.literal("SEND_EMAIL"),
304
- settings: J
305
- }), z = i.extend({
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
- }), Q = a.extend(
330
+ }), te = a.extend(
313
331
  {
314
332
  type: e.literal("UPDATE_RECORD"),
315
- settings: z
333
+ settings: ee
316
334
  }
317
- ), $ = i.extend({
335
+ ), oe = i.extend({
318
336
  input: e.object({
319
337
  objectName: e.string(),
320
338
  objectRecord: u
321
339
  })
322
- }), X = a.extend(
340
+ }), re = a.extend(
323
341
  {
324
342
  type: e.literal("UPSERT_RECORD"),
325
- settings: $
343
+ settings: oe
326
344
  }
327
- ), Z = d.extend({
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
- }), ee = i.extend({
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
- }), te = a.extend({
371
+ }), ae = a.extend({
354
372
  type: e.literal("DELAY"),
355
- settings: ee
356
- }), oe = e.discriminatedUnion("type", [
357
- R,
358
- Y,
373
+ settings: ie
374
+ }), se = e.discriminatedUnion("type", [
359
375
  N,
360
- Q,
361
- F,
362
- X,
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
- te,
370
- C
384
+ R,
385
+ G,
386
+ J,
387
+ z,
388
+ ae,
389
+ L
371
390
  ]);
372
- var m = /* @__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))(m || {});
373
- const re = e.enum(m), g = e.object({
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: re,
395
+ status: ce,
377
396
  get history() {
378
397
  return e.array(
379
- g.pick({
398
+ f.pick({
380
399
  result: !0,
381
400
  status: !0,
382
401
  error: !0
383
402
  })
384
403
  ).optional();
385
404
  }
386
- }), ne = e.record(
405
+ }), le = e.record(
387
406
  e.string(),
388
- g
389
- ), ie = e.discriminatedUnion("type", [
407
+ f
408
+ ), de = e.discriminatedUnion("type", [
409
+ F,
410
+ Q,
390
411
  D,
391
- K,
392
- x,
393
- Z
394
- ]), ae = e.object({
412
+ ne
413
+ ]), pe = e.object({
395
414
  flow: e.object({
396
- trigger: ie,
397
- steps: e.array(oe)
415
+ trigger: de,
416
+ steps: e.array(se)
398
417
  }),
399
- stepInfos: ne,
418
+ stepInfos: le,
400
419
  workflowRunError: e.any().optional()
401
- }), se = e.enum([
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
- ]), Re = e.looseObject({
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: ae.nullable(),
415
- status: se,
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
- }), ke = ({
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, Ne = ({
447
+ ].includes(t) && !o, _e = ({
429
448
  rawVariableName: t,
430
449
  part: o
431
450
  }) => {
432
451
  const r = t.replace(
433
- j,
434
- (b, f) => f
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
- }, xe = (t) => Object.fromEntries(
458
+ }, Ce = (t) => Object.fromEntries(
440
459
  Object.entries(t).filter(([, o]) => l(o?.result)).map(([o, n]) => [o, n?.result])
441
- ), De = (t) => t === "true" ? !0 : t === "false" ? !1 : t, ce = (t) => {
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
- }, le = (t) => {
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), de = (t) => typeof t == "string" ? t : Object.entries(t).map(([o, n]) => `${o}=${n}`).join(`
465
- `), Ie = (t, o) => {
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 ce(t);
489
+ return me(t);
471
490
  case "multipart/form-data":
472
- return le(t);
491
+ return ge(t);
473
492
  case "application/json":
474
493
  return p(t);
475
494
  case "text/plain":
476
- return de(t);
495
+ return be(t);
477
496
  default:
478
497
  return p(t);
479
498
  }
480
- }, pe = (t) => !l(t) || t === null ? "unknown" : typeof t == "string" ? "string" : typeof t == "number" ? "number" : typeof t == "boolean" ? "boolean" : Array.isArray(t) ? "array" : "unknown", ue = (t) => t ? Object.entries(t).reduce(
481
- (o, [n, r]) => (E(r) && !Array.isArray(r) ? o[n] = {
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: ue(r)
504
+ value: he(r)
486
505
  } : o[n] = {
487
506
  isLeaf: !0,
488
507
  value: r,
489
- type: pe(r),
508
+ type: fe(r),
490
509
  label: n
491
510
  }, o),
492
511
  {}
493
- ) : {}, Fe = ({
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
- j as CAPTURE_ALL_VARIABLE_TAG_INNER_REGEX,
511
- Te as CONTENT_TYPE_VALUES_HTTP_REQUEST,
512
- m as StepStatus,
513
- Oe as TRIGGER_STEP_ID,
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
- ue as buildOutputSchemaFromValue,
518
- ke as canObjectBeManagedByWorkflow,
519
- Ne as extractRawVariableNamePart,
520
- xe as getWorkflowRunContext,
521
- Fe as navigateOutputSchemaProperty,
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
- De as parseBooleanFromStringValue,
524
- Ie as parseDataFromContentType,
525
- oe as workflowActionSchema,
526
- T as workflowAiAgentActionSchema,
527
- A as workflowAiAgentActionSettingsSchema,
528
- R as workflowCodeActionSchema,
529
- O as workflowCodeActionSettingsSchema,
530
- N as workflowCreateRecordActionSchema,
531
- k as workflowCreateRecordActionSettingsSchema,
532
- x as workflowCronTriggerSchema,
533
- D as workflowDatabaseEventTriggerSchema,
534
- te as workflowDelayActionSchema,
535
- ee as workflowDelayActionSettingsSchema,
536
- F as workflowDeleteRecordActionSchema,
537
- I as workflowDeleteRecordActionSettingsSchema,
538
- C as workflowEmptyActionSchema,
539
- U as workflowEmptyActionSettingsSchema,
540
- q as workflowFileSchema,
541
- _ as workflowFilterActionSchema,
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
- v as workflowFindRecordsActionSchema,
544
- L as workflowFindRecordsActionSettingsSchema,
545
- G as workflowFormActionSchema,
546
- M as workflowFormActionSettingsSchema,
547
- V as workflowHttpRequestActionSchema,
548
- B as workflowHttpRequestActionSettingsSchema,
549
- H as workflowIteratorActionSchema,
550
- W as workflowIteratorActionSettingsSchema,
551
- K as workflowManualTriggerSchema,
552
- Re as workflowRunSchema,
553
- ae as workflowRunStateSchema,
554
- g as workflowRunStateStepInfoSchema,
555
- ne as workflowRunStateStepInfosSchema,
556
- se as workflowRunStatusSchema,
557
- re as workflowRunStepStatusSchema,
558
- Y as workflowSendEmailActionSchema,
559
- J as workflowSendEmailActionSettingsSchema,
560
- ie as workflowTriggerSchema,
561
- Q as workflowUpdateRecordActionSchema,
562
- z as workflowUpdateRecordActionSettingsSchema,
563
- X as workflowUpsertRecordActionSchema,
564
- $ as workflowUpsertRecordActionSettingsSchema,
565
- Z as workflowWebhookTriggerSchema
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.2.3",
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
- };
@@ -1,4 +0,0 @@
1
- export declare const getObjectDecoratedClass: ({ data, name, }: {
2
- data: object;
3
- name: string;
4
- }) => string;