twenty-sdk 2.8.0 → 2.9.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 +25 -0
- package/dist/catalog-sync-BCebNxby.js +1 -0
- package/dist/catalog-sync-Zp1B_jdA.mjs +18 -0
- package/dist/cli/utilities/build/manifest/utils/validate-conditional-availability-usage.d.ts +1 -0
- package/dist/cli/utilities/build/manifest/utils/validate-package-json-dependencies.d.ts +1 -0
- package/dist/cli.cjs +61 -61
- package/dist/cli.mjs +1529 -1515
- package/dist/define/index.cjs +38 -16
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +691 -6
- package/dist/define/index.mjs +13487 -3478
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +37 -15
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +1 -135
- package/dist/front-component/index.mjs +12833 -3490
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/get-function-input-schema-DTlcRJz3-Dv2yR3dh.mjs +73 -0
- package/dist/get-function-input-schema-DTlcRJz3-dBL33k9U.js +1 -0
- package/dist/login-oauth-CR6NzLmb.js +340 -0
- package/dist/{login-oauth-DxrMUIpb.mjs → login-oauth-rznAUORX.mjs} +15029 -4882
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +2 -2
- package/dist/ui/index.cjs +48 -26
- package/dist/ui/index.mjs +20852 -11479
- package/package.json +11 -9
- package/dist/catalog-sync-C3eVfUoF.mjs +0 -16
- package/dist/catalog-sync-CPVoL1dR.js +0 -1
- package/dist/get-function-input-schema-BZ7_XyUh-CTltddyp.mjs +0 -62
- package/dist/get-function-input-schema-BZ7_XyUh-CsGwFW9C.js +0 -1
- package/dist/login-oauth-Bjd38X4F.js +0 -298
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the [Twenty SDK](https://www.npmjs.com/package/twenty-sdk) are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this package adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [2.8.0]
|
|
8
|
+
|
|
9
|
+
### Breaking Changes
|
|
10
|
+
|
|
11
|
+
- **`twenty-sdk` must now be a dev dependency.** It ships the `twenty` CLI and the build/scaffolding tooling, which only run at development and build time — it is never imported by a published app's runtime. Newly scaffolded apps already place it under `devDependencies`. Apps created before `2.8.0` must move it when upgrading:
|
|
12
|
+
|
|
13
|
+
```diff
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"twenty-client-sdk": "^2.8.0"
|
|
16
|
+
- "twenty-sdk": "^2.8.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
+ "twenty-sdk": "^2.8.0"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Then reinstall with `rm -rf node_modules && yarn install`. `twenty-client-sdk` stays under `dependencies` because app code imports it at runtime.
|
|
24
|
+
|
|
25
|
+
`twenty build` now emits a warning when `twenty-sdk` is still listed under `dependencies`, so existing apps are flagged automatically.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./login-oauth-CR6NzLmb.js"),l=require("chalk"),n=e=>e&&e.__esModule?e:{default:e},a=n(l);class s{async execute(c){c.remote&&o.ConfigService.setActiveRemote(c.remote);const r=o.ConfigService.getActiveRemote();console.log(a.default.blue(`Syncing marketplace catalog on ${r}...`));const t=await new o.ApiService().syncMarketplaceCatalog();t.success||(console.error(a.default.red(`Catalog sync failed: ${t.error instanceof Error?t.error.message:String(t.error)}`)),process.exit(1)),console.log(a.default.green("✓ Marketplace catalog synced successfully"))}}exports.CatalogSyncCommand=s;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { C as c, A as t } from "./login-oauth-rznAUORX.mjs";
|
|
2
|
+
import r from "chalk";
|
|
3
|
+
class m {
|
|
4
|
+
async execute(o) {
|
|
5
|
+
o.remote && c.setActiveRemote(o.remote);
|
|
6
|
+
const a = c.getActiveRemote();
|
|
7
|
+
console.log(r.blue(`Syncing marketplace catalog on ${a}...`));
|
|
8
|
+
const e = await new t().syncMarketplaceCatalog();
|
|
9
|
+
e.success || (console.error(
|
|
10
|
+
r.red(
|
|
11
|
+
`Catalog sync failed: ${e.error instanceof Error ? e.error.message : String(e.error)}`
|
|
12
|
+
)
|
|
13
|
+
), process.exit(1)), console.log(r.green("✓ Marketplace catalog synced successfully"));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
m as CatalogSyncCommand
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const validateConditionalAvailabilityUsage: (fileContent: string, relativePath: string) => string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const validatePackageJsonDependencies: (appPath: string) => Promise<string[]>;
|