twenty-sdk 0.6.0 → 0.6.2
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 +6 -2
- package/dist/{HtmlTagToRemoteComponent-DzQ2I9Lz.js → HtmlTagToRemoteComponent-CgtwxDeH.js} +11 -11
- package/dist/{HtmlTagToRemoteComponent-DBOkvIRB.mjs → HtmlTagToRemoteComponent-D_EW5OLu.mjs} +1743 -1640
- package/dist/cli/utilities/api/api-service.d.ts +4 -0
- package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +5 -2
- package/dist/cli/utilities/build/common/typecheck-plugin.d.ts +1 -1
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +2 -0
- package/dist/cli/utilities/client/client-service.d.ts +5 -1
- package/dist/cli/utilities/client/twenty-client-template.d.ts +42 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +2 -0
- package/dist/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.d.ts +2 -0
- package/dist/cli.cjs +430 -75
- package/dist/cli.mjs +3175 -2725
- package/dist/front-component-renderer/index.cjs +11 -11
- package/dist/front-component-renderer/index.d.ts +3 -3
- package/dist/front-component-renderer/index.mjs +2186 -1906
- package/dist/front-component-renderer/remote/generated/remote-components.d.ts +44 -0
- package/dist/front-component-renderer/remote/generated/remote-elements.d.ts +93 -0
- package/dist/front-component-renderer/types/FrontComponentHostCommunicationApi.d.ts +2 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-GxSybvDe.js → get-function-input-schema-BZ7_XyUh-CCSi0u_q.js} +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-By3UDh4s.mjs → get-function-input-schema-BZ7_XyUh-DAPandzB.mjs} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +122 -89
- package/dist/sdk/application/application-config.d.ts +1 -1
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.d.ts +1 -0
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.js +104 -1
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.js.map +1 -1
- package/dist/sdk/front-component-api/constants/EventToReact.js +22 -3
- package/dist/sdk/front-component-api/constants/EventToReact.js.map +1 -1
- package/dist/sdk/front-component-api/constants/SerializedEventData.d.ts +7 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.d.ts +2 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.js.map +1 -1
- package/dist/sdk/index.d.ts +3 -0
- package/dist/sdk/index.js +70 -66
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/logic-functions/define-post-install-logic-function.d.ts +6 -0
- package/dist/sdk/logic-functions/define-post-install-logic-function.js +12 -0
- package/dist/sdk/logic-functions/define-post-install-logic-function.js.map +1 -0
- package/dist/sdk/logic-functions/define-pre-install-logic-function.d.ts +6 -0
- package/dist/sdk/logic-functions/define-pre-install-logic-function.js +12 -0
- package/dist/sdk/logic-functions/define-pre-install-logic-function.js.map +1 -0
- package/dist/sdk/logic-functions/install-logic-function-payload-type.d.ts +4 -0
- package/generated/core/index.ts +406 -0
- package/generated/core/runtime/batcher.ts +265 -0
- package/generated/core/runtime/createClient.ts +68 -0
- package/generated/core/runtime/error.ts +29 -0
- package/generated/core/runtime/fetcher.ts +98 -0
- package/generated/core/runtime/generateGraphqlOperation.ts +225 -0
- package/generated/core/runtime/index.ts +13 -0
- package/generated/core/runtime/linkTypeMap.ts +139 -0
- package/generated/core/runtime/typeSelection.ts +98 -0
- package/generated/core/runtime/types.ts +69 -0
- package/generated/core/schema.graphql +36745 -0
- package/generated/core/schema.ts +39341 -0
- package/generated/core/types.ts +45860 -0
- package/generated/index.ts +2 -0
- package/generated/metadata/index.ts +469 -0
- package/generated/metadata/runtime/batcher.ts +265 -0
- package/generated/metadata/runtime/createClient.ts +68 -0
- package/generated/metadata/runtime/error.ts +29 -0
- package/generated/metadata/runtime/fetcher.ts +98 -0
- package/generated/metadata/runtime/generateGraphqlOperation.ts +225 -0
- package/generated/metadata/runtime/index.ts +13 -0
- package/generated/metadata/runtime/linkTypeMap.ts +139 -0
- package/generated/metadata/runtime/typeSelection.ts +98 -0
- package/generated/metadata/runtime/types.ts +69 -0
- package/generated/metadata/schema.graphql +3971 -0
- package/generated/metadata/schema.ts +8357 -0
- package/generated/metadata/types.ts +10044 -0
- package/package.json +17 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
A CLI and SDK to develop, build, and publish applications that extend [Twenty CRM](https://twenty.com).
|
|
16
16
|
|
|
17
|
-
-
|
|
17
|
+
- Two auto‑generated typed GraphQL clients: `CoreApiClient` (workspace data) and `MetadataApiClient` (workspace configuration & file uploads)
|
|
18
18
|
- Built‑in CLI for auth, dev mode (watch & sync), uninstall, and function management
|
|
19
19
|
- Works great with the scaffolder: [create-twenty-app](https://www.npmjs.com/package/create-twenty-app)
|
|
20
20
|
|
|
@@ -155,7 +155,8 @@ Application development commands.
|
|
|
155
155
|
|
|
156
156
|
- `twenty function:execute [appPath]` — Execute a logic function with a JSON payload.
|
|
157
157
|
- Options:
|
|
158
|
-
- `--
|
|
158
|
+
- `--preInstall`: Execute the pre-install logic function defined in the application manifest (required if `--postInstall`, `-n`, and `-u` not provided).
|
|
159
|
+
- `--postInstall`: Execute the post-install logic function defined in the application manifest (required if `--preInstall`, `-n`, and `-u` not provided).
|
|
159
160
|
- `-n, --functionName <name>`: Name of the function to execute (required if `--postInstall` and `-u` not provided).
|
|
160
161
|
- `-u, --functionUniversalIdentifier <id>`: Universal ID of the function to execute (required if `--postInstall` and `-n` not provided).
|
|
161
162
|
- `-p, --payload <payload>`: JSON payload to send to the function (default: `{}`).
|
|
@@ -208,6 +209,9 @@ twenty function:execute -n my-function -p '{"name": "test"}'
|
|
|
208
209
|
# Execute a function by universal identifier
|
|
209
210
|
twenty function:execute -u e56d363b-0bdc-4d8a-a393-6f0d1c75bdcf -p '{"key": "value"}'
|
|
210
211
|
|
|
212
|
+
# Execute the pre-install function
|
|
213
|
+
twenty function:execute --preInstall
|
|
214
|
+
|
|
211
215
|
# Execute the post-install function
|
|
212
216
|
twenty function:execute --postInstall
|
|
213
217
|
```
|