twenty-sdk 2.33.0 → 2.35.1
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/CHANGELOG.md +17 -0
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{catalog-sync-DoEI8JO8.js → catalog-sync-Bs-X2ChV.js} +1 -1
- package/dist/{catalog-sync-DUp5hpKi.mjs → catalog-sync-C82Xfr2f.mjs} +1 -1
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +4 -2
- package/dist/cli/utilities/build/manifest/utils/manifest-validation-helpers.d.ts +10 -0
- package/dist/cli/utilities/build/manifest/utils/validate-timeline-activity-types.d.ts +2 -0
- package/dist/cli/utilities/entity/entity-timeline-activity-type-template.d.ts +3 -0
- package/dist/cli.cjs +27 -20
- package/dist/cli.mjs +302 -285
- package/dist/define/index.cjs +2 -2
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +30 -9
- package/dist/define/index.mjs +152 -130
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +1 -1
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +7 -1
- package/dist/front-component/index.mjs +7 -7
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/front-component-renderer/build.cjs +1 -1
- package/dist/front-component-renderer/build.mjs +1 -1
- package/dist/{get-front-component-build-plugins-DsfkhD6M.js → get-front-component-build-plugins-CcV3Cown.js} +1 -1
- package/dist/{get-front-component-build-plugins-Cn-MWltl.mjs → get-front-component-build-plugins-D9VJQHw7.mjs} +2 -2
- package/dist/{get-function-input-schema-GNk3NRLJ-B8zXGirB.js → get-function-input-schema-GNk3NRLJ-Byssjp8I.js} +1 -1
- package/dist/{get-function-input-schema-GNk3NRLJ-CwF3VRY5.mjs → get-function-input-schema-GNk3NRLJ-Dm0Ljlg4.mjs} +1 -1
- package/dist/logic-function/index.cjs +9 -9
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +52 -2
- package/dist/logic-function/index.mjs +622 -582
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/{login-153niBFr.mjs → login-BsiMC4oB.mjs} +954 -891
- package/dist/{login-Cl5xmujh.js → login-cG7hCrTK.js} +44 -44
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs.map +1 -1
- 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:
|