twenty-sdk 2.37.0 → 2.38.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.
- package/dist/billing/index.cjs +3 -3
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.d.ts +25 -4
- package/dist/billing/index.mjs +495 -464
- package/dist/billing/index.mjs.map +1 -1
- package/dist/catalog-sync-DB_oIbry.js +1 -0
- package/dist/{catalog-sync-mAO3vmdp.mjs → catalog-sync-TFrxc_Y6.mjs} +4 -4
- package/dist/cli/commands/dev/dev-once.d.ts +1 -0
- package/dist/cli/commands/dev/dev.d.ts +1 -0
- package/dist/cli/operations/dev-once.d.ts +1 -0
- package/dist/cli/utilities/api/api-service.d.ts +1 -0
- package/dist/cli/utilities/api/application-api.d.ts +1 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
- package/dist/cli/utilities/dev/orchestrator/steps/format-sync-actions-plan.d.ts +8 -1
- package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +3 -1
- package/dist/cli/utilities/entity/entity-view-template.d.ts +1 -1
- package/dist/cli/utilities/error/parse-server-error.d.ts +1 -0
- package/dist/cli.cjs +30 -30
- package/dist/cli.mjs +5447 -5427
- package/dist/define/index.cjs +14 -14
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +82 -14
- package/dist/define/index.mjs +5717 -5690
- 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 +23 -6
- package/dist/front-component/index.mjs +2 -2
- 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-WU9ATS3e.mjs → get-front-component-build-plugins-Bed7hCGi.mjs} +46 -38
- package/dist/{get-front-component-build-plugins-DZIleilT.js → get-front-component-build-plugins-o8cM1FFZ.js} +8 -8
- package/dist/{get-function-input-schema-GNk3NRLJ-DKoJBhuO.js → get-function-input-schema-GNk3NRLJ-A3CmF1qq.js} +1 -1
- package/dist/{get-function-input-schema-GNk3NRLJ-H7iWzfXn.mjs → get-function-input-schema-GNk3NRLJ-BPeB4a-_.mjs} +1 -1
- package/dist/logic-function/index.cjs +4 -4
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +23 -3
- package/dist/logic-function/index.mjs +26 -12
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/{login-4PI5lTOa.js → login-2yrPIORt.js} +59 -66
- package/dist/{login-CNByz3vi.mjs → login-QYv7vAbh.mjs} +5348 -5303
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +4 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/catalog-sync-Szx_4267.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./get-front-component-build-plugins-o8cM1FFZ.js"),t=require("./login-2yrPIORt.js");let n=require("chalk");n=e.Mt(n);var r=class{async execute(e){e.remote&&t.K.setActiveRemote(e.remote);let r=t.K.getActiveRemote();console.log(n.default.blue(`Syncing marketplace catalog on ${r}...`));let i=await new t.H().syncMarketplaceCatalog();i.success||(console.error(n.default.red(`Catalog sync failed: ${i.error instanceof Error?i.error.message:String(i.error)}`)),process.exit(1)),console.log(n.default.green(`✓ Marketplace catalog synced successfully`))}};exports.CatalogSyncCommand=r;
|
|
@@ -2,15 +2,15 @@ import { createRequire as e } from "node:module";
|
|
|
2
2
|
import { fileURLToPath as t } from "node:url";
|
|
3
3
|
import { dirname as n } from "node:path";
|
|
4
4
|
e(import.meta.url), n(t(import.meta.url));
|
|
5
|
-
import {
|
|
5
|
+
import { H as r, K as i } from "./login-QYv7vAbh.mjs";
|
|
6
6
|
import a from "chalk";
|
|
7
7
|
//#region src/cli/commands/dev/catalog-sync.ts
|
|
8
8
|
var o = class {
|
|
9
9
|
async execute(e) {
|
|
10
|
-
e.remote &&
|
|
11
|
-
let t =
|
|
10
|
+
e.remote && i.setActiveRemote(e.remote);
|
|
11
|
+
let t = i.getActiveRemote();
|
|
12
12
|
console.log(a.blue(`Syncing marketplace catalog on ${t}...`));
|
|
13
|
-
let n = await new
|
|
13
|
+
let n = await new r().syncMarketplaceCatalog();
|
|
14
14
|
n.success || (console.error(a.red(`Catalog sync failed: ${n.error instanceof Error ? n.error.message : String(n.error)}`)), process.exit(1)), console.log(a.green("✓ Marketplace catalog synced successfully"));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
@@ -4,6 +4,7 @@ export type AppDevOnceOptions = {
|
|
|
4
4
|
verbose?: boolean;
|
|
5
5
|
apply?: boolean;
|
|
6
6
|
force?: boolean;
|
|
7
|
+
inferDeletionFromMissingEntities?: boolean;
|
|
7
8
|
onProgress?: (message: string) => void;
|
|
8
9
|
onPlan?: (text: string) => void;
|
|
9
10
|
confirmApply?: (deleteCount: number) => Promise<boolean>;
|
|
@@ -45,6 +45,7 @@ export declare class ApplicationApi {
|
|
|
45
45
|
}>>;
|
|
46
46
|
syncApplication(manifest: Manifest, options?: {
|
|
47
47
|
dryRun?: boolean;
|
|
48
|
+
inferDeletionFromMissingEntities?: boolean;
|
|
48
49
|
}): Promise<ApiResponse<{
|
|
49
50
|
applicationUniversalIdentifier: string;
|
|
50
51
|
actions: SyncAction[];
|
|
@@ -8,4 +8,11 @@ export declare const selectEntityAttributes: (flatEntity: {
|
|
|
8
8
|
nameSingular?: string | null | undefined;
|
|
9
9
|
universalIdentifier?: string | null | undefined;
|
|
10
10
|
} | undefined) => [string, unknown][];
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const NO_DELETE_HINT = "Entities missing from your source are destroyed by default. Re-run with --no-delete to keep them.";
|
|
12
|
+
export declare const shouldShowNoDeleteHint: ({ actions, inferDeletionFromMissingEntities, }: {
|
|
13
|
+
actions: SyncAction[] | undefined;
|
|
14
|
+
inferDeletionFromMissingEntities: boolean;
|
|
15
|
+
}) => boolean;
|
|
16
|
+
export declare const formatSyncActionsPlan: (actions: SyncAction[] | undefined, options?: {
|
|
17
|
+
showNoDeleteHint?: boolean | undefined;
|
|
18
|
+
} | undefined) => string;
|
|
@@ -11,14 +11,16 @@ export declare class SyncApplicationOrchestratorStep {
|
|
|
11
11
|
private notify;
|
|
12
12
|
private verbose;
|
|
13
13
|
private force;
|
|
14
|
+
private inferDeletionFromMissingEntities;
|
|
14
15
|
private interactive;
|
|
15
16
|
private onExit?;
|
|
16
|
-
constructor({ apiService, state, notify, verbose, force, interactive, onExit }: {
|
|
17
|
+
constructor({ apiService, state, notify, verbose, force, inferDeletionFromMissingEntities, interactive, onExit }: {
|
|
17
18
|
apiService: ApiService;
|
|
18
19
|
state: OrchestratorState;
|
|
19
20
|
notify: () => void;
|
|
20
21
|
verbose?: boolean;
|
|
21
22
|
force?: boolean;
|
|
23
|
+
inferDeletionFromMissingEntities?: boolean;
|
|
22
24
|
interactive?: boolean;
|
|
23
25
|
onExit?: (params: {
|
|
24
26
|
code: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const getGraphQLErrorCode: (error: unknown) => string | undefined;
|
|
2
2
|
export declare const getGraphQLErrorSubCode: (error: unknown) => string | undefined;
|
|
3
|
+
export declare const getGraphQLErrorMessage: (error: unknown) => string | undefined;
|
|
3
4
|
export declare const hasGraphQLErrorSubCode: (error: unknown, subCode: string) => boolean;
|
|
4
5
|
export declare const isGraphQLNotFoundError: (error: unknown) => boolean;
|
|
5
6
|
export declare const getOAuthError: (body: unknown) => string | undefined;
|