twenty-sdk 2.33.0 → 2.35.0

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 (39) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/billing/index.cjs.map +1 -1
  3. package/dist/billing/index.mjs.map +1 -1
  4. package/dist/{catalog-sync-DUp5hpKi.mjs → catalog-sync-C0Td21sN.mjs} +1 -1
  5. package/dist/{catalog-sync-DoEI8JO8.js → catalog-sync-Cn-gDxAz.js} +1 -1
  6. package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +4 -2
  7. package/dist/cli/utilities/build/manifest/utils/manifest-validation-helpers.d.ts +10 -0
  8. package/dist/cli/utilities/build/manifest/utils/validate-timeline-activity-types.d.ts +2 -0
  9. package/dist/cli/utilities/entity/entity-timeline-activity-type-template.d.ts +3 -0
  10. package/dist/cli.cjs +27 -20
  11. package/dist/cli.mjs +302 -285
  12. package/dist/define/index.cjs +2 -2
  13. package/dist/define/index.cjs.map +1 -1
  14. package/dist/define/index.d.ts +31 -2
  15. package/dist/define/index.mjs +152 -129
  16. package/dist/define/index.mjs.map +1 -1
  17. package/dist/front-component/index.cjs +1 -1
  18. package/dist/front-component/index.cjs.map +1 -1
  19. package/dist/front-component/index.d.ts +6 -1
  20. package/dist/front-component/index.mjs +7 -7
  21. package/dist/front-component/index.mjs.map +1 -1
  22. package/dist/front-component-renderer/build.cjs +1 -1
  23. package/dist/front-component-renderer/build.mjs +1 -1
  24. package/dist/{get-front-component-build-plugins-Cn-MWltl.mjs → get-front-component-build-plugins-BZ1HBS5Y.mjs} +2 -2
  25. package/dist/{get-front-component-build-plugins-DsfkhD6M.js → get-front-component-build-plugins-CcV3Cown.js} +1 -1
  26. package/dist/{get-function-input-schema-GNk3NRLJ-CwF3VRY5.mjs → get-function-input-schema-GNk3NRLJ-BimwLfRN.mjs} +1 -1
  27. package/dist/{get-function-input-schema-GNk3NRLJ-B8zXGirB.js → get-function-input-schema-GNk3NRLJ-Byssjp8I.js} +1 -1
  28. package/dist/logic-function/index.cjs +9 -9
  29. package/dist/logic-function/index.cjs.map +1 -1
  30. package/dist/logic-function/index.d.ts +52 -2
  31. package/dist/logic-function/index.mjs +622 -582
  32. package/dist/logic-function/index.mjs.map +1 -1
  33. package/dist/{login-Cl5xmujh.js → login-Cl-mw1L0.js} +44 -44
  34. package/dist/{login-153niBFr.mjs → login-CuJiHYwZ.mjs} +954 -890
  35. package/dist/operations.cjs +1 -1
  36. package/dist/operations.mjs +1 -1
  37. package/dist/utils/index.cjs.map +1 -1
  38. package/dist/utils/index.mjs.map +1 -1
  39. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -6,6 +6,23 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ### Added
10
+
11
+ - **`enqueueJobs` in `twenty-sdk/logic-function`.** Enqueues one run per payload of a single logic function in one call (up to 200 payloads per batch). `retryLimit` and `delayMs` apply to every run in the batch.
12
+
13
+ ```ts
14
+ import { enqueueJobs } from 'twenty-sdk/logic-function';
15
+
16
+ await enqueueJobs({
17
+ logicFunctionUniversalIdentifier: PROCESS_BATCH,
18
+ payloads: batches.map((batch, batchIndex) => ({ batchIndex })),
19
+ });
20
+ ```
21
+
22
+ ### Deprecated
23
+
24
+ - **`enqueueJob` in `twenty-sdk/logic-function`.** Use `enqueueJobs` with a one-element `payloads` list instead. `enqueueJob` keeps working for now and will be removed in a future major version.
25
+
9
26
  ### Changed
10
27
 
11
28
  - **`twenty-client-sdk` should now be a dev dependency too.** Although app code imports it (`CoreApiClient`, `MetadataApiClient`, `RestApiClient`), Twenty provides it at runtime — logic functions get it from a generated SDK layer and front components resolve it from server-served modules — so the installed copy is only needed for typechecking and the deploy-time build. Newly scaffolded apps now place it under `devDependencies`. Moving it is recommended (not required: the server already strips it from the deployed runtime), and keeps the installed app leaner: