twenty-sdk 2.9.1 → 2.10.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/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{catalog-sync-BCebNxby.js → catalog-sync-BjFX6eQu.js} +1 -1
- package/dist/{catalog-sync-Zp1B_jdA.mjs → catalog-sync-hdRK4nlg.mjs} +1 -1
- package/dist/cli/commands/dev/dev-once.d.ts +1 -0
- package/dist/cli/operations/dev-once.d.ts +1 -0
- package/dist/cli/utilities/api/api-response-type.d.ts +5 -5
- package/dist/cli/utilities/api/api-service.d.ts +8 -2
- package/dist/cli/utilities/api/application-api.d.ts +7 -1
- package/dist/cli/utilities/api/file-api.d.ts +2 -1
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +2 -0
- package/dist/cli/utilities/dev/orchestrator/steps/format-sync-actions-summary.d.ts +3 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui-application-panel.d.ts +2 -1
- package/dist/cli/utilities/dev/ui/components/dev-ui-entity-section.d.ts +3 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui.d.ts +1 -1
- package/dist/cli/utilities/dev/ui/dev-ui-constants.d.ts +6 -0
- package/dist/cli/utilities/entity/entity-view-field-template.d.ts +3 -0
- package/dist/cli/utilities/error/format-manifest-validation-errors.d.ts +2 -1
- package/dist/cli/utilities/error/get-sync-error-recovery-hint.d.ts +1 -0
- package/dist/cli.cjs +117 -100
- package/dist/cli.mjs +2383 -2286
- package/dist/define/index.cjs +7 -7
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +181 -47
- package/dist/define/index.mjs +367 -247
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-DTlcRJz3-Dv2yR3dh.mjs → get-function-input-schema-DTlcRJz3-CYRpYtm8.mjs} +1 -1
- package/dist/{get-function-input-schema-DTlcRJz3-dBL33k9U.js → get-function-input-schema-DTlcRJz3-Cpo6yw4B.js} +1 -1
- package/dist/logic-function/index.cjs +37 -1
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +33 -2
- package/dist/logic-function/index.mjs +97 -28
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/{login-oauth-CR6NzLmb.js → login-oauth-CU95X9A-.js} +55 -52
- package/dist/{login-oauth-rznAUORX.mjs → login-oauth-wSHikxei.mjs} +3608 -3414
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +2 -2
- package/dist/ui/index.cjs +28 -28
- package/dist/ui/index.d.ts +12 -12
- package/dist/ui/index.mjs +7582 -7474
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +5 -8
package/dist/utils/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../twenty-shared/dist/application.mjs","../../src/sdk/utils/get-public-asset-url.ts"],"sourcesContent":["const _ = \"public\", A = \"TWENTY_API_KEY\", T = \"TWENTY_API_URL\", r = \"TWENTY_APP_ACCESS_TOKEN\",
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../twenty-shared/dist/application.mjs","../../src/sdk/utils/get-public-asset-url.ts"],"sourcesContent":["const _ = \"public\", A = \"TWENTY_API_KEY\", T = \"TWENTY_API_URL\", r = \"TWENTY_APP_ACCESS_TOKEN\", N = \"generated\", t = {\n js: `import { createRequire as __createRequire } from 'module';\nconst require = __createRequire(import.meta.url);`\n}, u = \".twenty/output\", I = \"Standard\", P = \"20202020-64aa-4b6f-b003-9c74b97cee20\";\nvar o = /* @__PURE__ */ ((e) => (e.Object = \"object\", e.Field = \"field\", e.LogicFunction = \"logicFunction\", e.FrontComponent = \"frontComponent\", e.Role = \"role\", e.Skill = \"skill\", e.Agent = \"agent\", e.ConnectionProvider = \"connectionProvider\", e.View = \"view\", e.ViewField = \"viewField\", e.NavigationMenuItem = \"navigationMenuItem\", e.PageLayout = \"pageLayout\", e.PageLayoutTab = \"pageLayoutTab\", e.CommandMenuItem = \"commandMenuItem\", e))(o || {});\nexport {\n _ as ASSETS_DIR,\n A as DEFAULT_API_KEY_NAME,\n T as DEFAULT_API_URL_NAME,\n r as DEFAULT_APP_ACCESS_TOKEN_NAME,\n N as GENERATED_DIR,\n t as NODE_ESM_CJS_BANNER,\n u as OUTPUT_DIR,\n o as SyncableEntity,\n I as TWENTY_STANDARD_APPLICATION_NAME,\n P as TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER\n};\n","import {\n DEFAULT_API_URL_NAME,\n DEFAULT_APP_ACCESS_TOKEN_NAME,\n} from 'twenty-shared/application';\n\nconst decodeTokenPayload = (\n token: string,\n): { workspaceId: string; applicationId: string } => {\n const payload = JSON.parse(atob(token.split('.')[1]));\n\n return {\n workspaceId: payload.workspaceId,\n applicationId: payload.applicationId,\n };\n};\n\n// Returns the public URL for a file in the app's public/ directory.\n// Works in both logic functions and front components.\n// The path is relative to the public/ folder (e.g. \"images/logo.png\").\nexport const getPublicAssetUrl = (path: string): string => {\n const apiUrl = process.env[DEFAULT_API_URL_NAME];\n const token = process.env[DEFAULT_APP_ACCESS_TOKEN_NAME];\n\n if (!apiUrl || !token) {\n throw new Error(\n 'getPublicAssetUrl can only be called from within a logic function or front component',\n );\n }\n\n const { workspaceId, applicationId } = decodeTokenPayload(token);\n const withoutLeadingSlash = path.startsWith('/') ? path.slice(1) : path;\n const withPublicPrefix = withoutLeadingSlash.startsWith('public/')\n ? withoutLeadingSlash\n : `public/${withoutLeadingSlash}`;\n\n const encodedPath = withPublicPrefix\n .split('/')\n .map(encodeURIComponent)\n .join('/');\n\n return `${apiUrl}/public-assets/${workspaceId}/${applicationId}/${encodedPath}`;\n};\n"],"names":["T","r","decodeTokenPayload","token","payload","getPublicAssetUrl","path","apiUrl","DEFAULT_API_URL_NAME","DEFAULT_APP_ACCESS_TOKEN_NAME","workspaceId","applicationId","withoutLeadingSlash","encodedPath"],"mappings":"gFAAK,MAAqCA,EAAI,iBAAkBC,EAAI,0BCK9DC,EACJC,GACmD,CACnD,MAAMC,EAAU,KAAK,MAAM,KAAKD,EAAM,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,EAEpD,MAAO,CACL,YAAaC,EAAQ,YACrB,cAAeA,EAAQ,aAAA,CAE3B,EAKaC,EAAqBC,GAAyB,CACzD,MAAMC,EAAS,QAAQ,IAAIC,CAAoB,EACzCL,EAAQ,QAAQ,IAAIM,CAA6B,EAEvD,GAAI,CAACF,GAAU,CAACJ,EACd,MAAM,IAAI,MACR,sFAAA,EAIJ,KAAM,CAAE,YAAAO,EAAa,cAAAC,GAAkBT,EAAmBC,CAAK,EACzDS,EAAsBN,EAAK,WAAW,GAAG,EAAIA,EAAK,MAAM,CAAC,EAAIA,EAK7DO,GAJmBD,EAAoB,WAAW,SAAS,EAC7DA,EACA,UAAUA,CAAmB,IAG9B,MAAM,GAAG,EACT,IAAI,kBAAkB,EACtB,KAAK,GAAG,EAEX,MAAO,GAAGL,CAAM,kBAAkBG,CAAW,IAAIC,CAAa,IAAIE,CAAW,EAC/E"}
|
package/dist/utils/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../twenty-shared/dist/application.mjs","../../src/sdk/utils/get-public-asset-url.ts"],"sourcesContent":["const _ = \"public\", A = \"TWENTY_API_KEY\", T = \"TWENTY_API_URL\", r = \"TWENTY_APP_ACCESS_TOKEN\",
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../twenty-shared/dist/application.mjs","../../src/sdk/utils/get-public-asset-url.ts"],"sourcesContent":["const _ = \"public\", A = \"TWENTY_API_KEY\", T = \"TWENTY_API_URL\", r = \"TWENTY_APP_ACCESS_TOKEN\", N = \"generated\", t = {\n js: `import { createRequire as __createRequire } from 'module';\nconst require = __createRequire(import.meta.url);`\n}, u = \".twenty/output\", I = \"Standard\", P = \"20202020-64aa-4b6f-b003-9c74b97cee20\";\nvar o = /* @__PURE__ */ ((e) => (e.Object = \"object\", e.Field = \"field\", e.LogicFunction = \"logicFunction\", e.FrontComponent = \"frontComponent\", e.Role = \"role\", e.Skill = \"skill\", e.Agent = \"agent\", e.ConnectionProvider = \"connectionProvider\", e.View = \"view\", e.ViewField = \"viewField\", e.NavigationMenuItem = \"navigationMenuItem\", e.PageLayout = \"pageLayout\", e.PageLayoutTab = \"pageLayoutTab\", e.CommandMenuItem = \"commandMenuItem\", e))(o || {});\nexport {\n _ as ASSETS_DIR,\n A as DEFAULT_API_KEY_NAME,\n T as DEFAULT_API_URL_NAME,\n r as DEFAULT_APP_ACCESS_TOKEN_NAME,\n N as GENERATED_DIR,\n t as NODE_ESM_CJS_BANNER,\n u as OUTPUT_DIR,\n o as SyncableEntity,\n I as TWENTY_STANDARD_APPLICATION_NAME,\n P as TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER\n};\n","import {\n DEFAULT_API_URL_NAME,\n DEFAULT_APP_ACCESS_TOKEN_NAME,\n} from 'twenty-shared/application';\n\nconst decodeTokenPayload = (\n token: string,\n): { workspaceId: string; applicationId: string } => {\n const payload = JSON.parse(atob(token.split('.')[1]));\n\n return {\n workspaceId: payload.workspaceId,\n applicationId: payload.applicationId,\n };\n};\n\n// Returns the public URL for a file in the app's public/ directory.\n// Works in both logic functions and front components.\n// The path is relative to the public/ folder (e.g. \"images/logo.png\").\nexport const getPublicAssetUrl = (path: string): string => {\n const apiUrl = process.env[DEFAULT_API_URL_NAME];\n const token = process.env[DEFAULT_APP_ACCESS_TOKEN_NAME];\n\n if (!apiUrl || !token) {\n throw new Error(\n 'getPublicAssetUrl can only be called from within a logic function or front component',\n );\n }\n\n const { workspaceId, applicationId } = decodeTokenPayload(token);\n const withoutLeadingSlash = path.startsWith('/') ? path.slice(1) : path;\n const withPublicPrefix = withoutLeadingSlash.startsWith('public/')\n ? withoutLeadingSlash\n : `public/${withoutLeadingSlash}`;\n\n const encodedPath = withPublicPrefix\n .split('/')\n .map(encodeURIComponent)\n .join('/');\n\n return `${apiUrl}/public-assets/${workspaceId}/${applicationId}/${encodedPath}`;\n};\n"],"names":["T","r","decodeTokenPayload","token","payload","getPublicAssetUrl","path","apiUrl","DEFAULT_API_URL_NAME","DEFAULT_APP_ACCESS_TOKEN_NAME","workspaceId","applicationId","withoutLeadingSlash","encodedPath"],"mappings":"AAAK,MAAqCA,IAAI,kBAAkBC,IAAI,2BCK9DC,IAAqB,CACzBC,MACmD;AACnD,QAAMC,IAAU,KAAK,MAAM,KAAKD,EAAM,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC;AAEpD,SAAO;AAAA,IACL,aAAaC,EAAQ;AAAA,IACrB,eAAeA,EAAQ;AAAA,EAAA;AAE3B,GAKaC,IAAoB,CAACC,MAAyB;AACzD,QAAMC,IAAS,QAAQ,IAAIC,CAAoB,GACzCL,IAAQ,QAAQ,IAAIM,CAA6B;AAEvD,MAAI,CAACF,KAAU,CAACJ;AACd,UAAM,IAAI;AAAA,MACR;AAAA,IAAA;AAIJ,QAAM,EAAE,aAAAO,GAAa,eAAAC,MAAkBT,EAAmBC,CAAK,GACzDS,IAAsBN,EAAK,WAAW,GAAG,IAAIA,EAAK,MAAM,CAAC,IAAIA,GAK7DO,KAJmBD,EAAoB,WAAW,SAAS,IAC7DA,IACA,UAAUA,CAAmB,IAG9B,MAAM,GAAG,EACT,IAAI,kBAAkB,EACtB,KAAK,GAAG;AAEX,SAAO,GAAGL,CAAM,kBAAkBG,CAAW,IAAIC,CAAa,IAAIE,CAAW;AAC/E;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twenty-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"bin": {
|
|
6
6
|
"twenty": "dist/cli.cjs"
|
|
@@ -71,9 +71,8 @@
|
|
|
71
71
|
},
|
|
72
72
|
"license": "AGPL-3.0",
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@genql/runtime": "^2.10.0",
|
|
75
74
|
"@sniptt/guards": "^0.2.0",
|
|
76
|
-
"axios": "^1.
|
|
75
|
+
"axios": "^1.16.0",
|
|
77
76
|
"chalk": "^5.3.0",
|
|
78
77
|
"chokidar": "^4.0.0",
|
|
79
78
|
"commander": "^12.0.0",
|
|
@@ -81,20 +80,18 @@
|
|
|
81
80
|
"graphql": "^16.8.1",
|
|
82
81
|
"graphql-sse": "^2.5.4",
|
|
83
82
|
"ink": "^6.8.0",
|
|
84
|
-
"inquirer": "^
|
|
83
|
+
"inquirer": "^14.0.0",
|
|
85
84
|
"jsonc-parser": "^3.2.0",
|
|
86
85
|
"preact": "^10.28.3",
|
|
87
86
|
"react": "^19.0.0",
|
|
88
87
|
"react-dom": "^19.0.0",
|
|
89
88
|
"tinyglobby": "^0.2.15",
|
|
90
|
-
"twenty-client-sdk": "2.
|
|
89
|
+
"twenty-client-sdk": "2.10.1",
|
|
91
90
|
"typescript": "^5.9.3",
|
|
92
91
|
"uuid": "^13.0.0"
|
|
93
92
|
},
|
|
94
93
|
"devDependencies": {
|
|
95
|
-
"@genql/cli": "^3.0.3",
|
|
96
94
|
"@prettier/sync": "^0.5.2",
|
|
97
|
-
"@types/inquirer": "^9.0.0",
|
|
98
95
|
"@types/node": "^24.0.0",
|
|
99
96
|
"@types/react": "^19.0.0",
|
|
100
97
|
"@types/react-dom": "^19.0.0",
|
|
@@ -106,7 +103,7 @@
|
|
|
106
103
|
"tsc-alias": "^1.8.16",
|
|
107
104
|
"tsx": "^4.7.0",
|
|
108
105
|
"twenty-shared": "0.0.0",
|
|
109
|
-
"twenty-ui": "0.0.0",
|
|
106
|
+
"twenty-ui-deprecated": "0.0.0",
|
|
110
107
|
"vite": "^7.0.0",
|
|
111
108
|
"vite-plugin-dts": "^4.5.4",
|
|
112
109
|
"vite-tsconfig-paths": "^4.2.1",
|