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.
Files changed (48) hide show
  1. package/dist/billing/index.cjs +3 -3
  2. package/dist/billing/index.cjs.map +1 -1
  3. package/dist/billing/index.d.ts +25 -4
  4. package/dist/billing/index.mjs +495 -464
  5. package/dist/billing/index.mjs.map +1 -1
  6. package/dist/catalog-sync-DB_oIbry.js +1 -0
  7. package/dist/{catalog-sync-mAO3vmdp.mjs → catalog-sync-TFrxc_Y6.mjs} +4 -4
  8. package/dist/cli/commands/dev/dev-once.d.ts +1 -0
  9. package/dist/cli/commands/dev/dev.d.ts +1 -0
  10. package/dist/cli/operations/dev-once.d.ts +1 -0
  11. package/dist/cli/utilities/api/api-service.d.ts +1 -0
  12. package/dist/cli/utilities/api/application-api.d.ts +1 -0
  13. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
  14. package/dist/cli/utilities/dev/orchestrator/steps/format-sync-actions-plan.d.ts +8 -1
  15. package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +3 -1
  16. package/dist/cli/utilities/entity/entity-view-template.d.ts +1 -1
  17. package/dist/cli/utilities/error/parse-server-error.d.ts +1 -0
  18. package/dist/cli.cjs +30 -30
  19. package/dist/cli.mjs +5447 -5427
  20. package/dist/define/index.cjs +14 -14
  21. package/dist/define/index.cjs.map +1 -1
  22. package/dist/define/index.d.ts +82 -14
  23. package/dist/define/index.mjs +5717 -5690
  24. package/dist/define/index.mjs.map +1 -1
  25. package/dist/front-component/index.cjs +1 -1
  26. package/dist/front-component/index.cjs.map +1 -1
  27. package/dist/front-component/index.d.ts +23 -6
  28. package/dist/front-component/index.mjs +2 -2
  29. package/dist/front-component/index.mjs.map +1 -1
  30. package/dist/front-component-renderer/build.cjs +1 -1
  31. package/dist/front-component-renderer/build.mjs +1 -1
  32. package/dist/{get-front-component-build-plugins-WU9ATS3e.mjs → get-front-component-build-plugins-Bed7hCGi.mjs} +46 -38
  33. package/dist/{get-front-component-build-plugins-DZIleilT.js → get-front-component-build-plugins-o8cM1FFZ.js} +8 -8
  34. package/dist/{get-function-input-schema-GNk3NRLJ-DKoJBhuO.js → get-function-input-schema-GNk3NRLJ-A3CmF1qq.js} +1 -1
  35. package/dist/{get-function-input-schema-GNk3NRLJ-H7iWzfXn.mjs → get-function-input-schema-GNk3NRLJ-BPeB4a-_.mjs} +1 -1
  36. package/dist/logic-function/index.cjs +4 -4
  37. package/dist/logic-function/index.cjs.map +1 -1
  38. package/dist/logic-function/index.d.ts +23 -3
  39. package/dist/logic-function/index.mjs +26 -12
  40. package/dist/logic-function/index.mjs.map +1 -1
  41. package/dist/{login-4PI5lTOa.js → login-2yrPIORt.js} +59 -66
  42. package/dist/{login-CNByz3vi.mjs → login-QYv7vAbh.mjs} +5348 -5303
  43. package/dist/operations.cjs +1 -1
  44. package/dist/operations.mjs +4 -4
  45. package/dist/utils/index.cjs.map +1 -1
  46. package/dist/utils/index.mjs.map +1 -1
  47. package/package.json +2 -2
  48. 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 { U as r, z as i } from "./login-CNByz3vi.mjs";
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 && r.setActiveRemote(e.remote);
11
- let t = r.getActiveRemote();
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 i().syncMarketplaceCatalog();
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
  };
@@ -3,6 +3,7 @@ export type AppDevOnceCommandOptions = {
3
3
  verbose?: boolean;
4
4
  apply?: boolean;
5
5
  force?: boolean;
6
+ inferDeletionFromMissingEntities?: boolean;
6
7
  };
7
8
  export declare class AppDevOnceCommand {
8
9
  execute(options: AppDevOnceCommandOptions): Promise<void>;
@@ -5,6 +5,7 @@ export type AppDevOptions = {
5
5
  verbose?: boolean;
6
6
  debounceMs?: number;
7
7
  force?: boolean;
8
+ inferDeletionFromMissingEntities?: boolean;
8
9
  };
9
10
  export declare class AppDevCommand {
10
11
  private orchestrator;
@@ -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>;
@@ -56,6 +56,7 @@ export declare class ApiService {
56
56
  }>>;
57
57
  syncApplication(manifest: Manifest, options?: {
58
58
  dryRun?: boolean;
59
+ inferDeletionFromMissingEntities?: boolean;
59
60
  }): Promise<ApiResponse<{
60
61
  applicationUniversalIdentifier: string;
61
62
  actions: SyncAction[];
@@ -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[];
@@ -4,6 +4,7 @@ export type DevModeOrchestratorOptions = {
4
4
  debounceMs?: number;
5
5
  verbose?: boolean;
6
6
  force?: boolean;
7
+ inferDeletionFromMissingEntities?: boolean;
7
8
  interactive?: boolean;
8
9
  onExit?: (params: {
9
10
  code: number;
@@ -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 formatSyncActionsPlan: (actions: SyncAction[] | undefined) => string;
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,4 +1,4 @@
1
- import { type ViewType } from 'twenty-shared/types';
1
+ import { ViewType } from 'twenty-shared/types';
2
2
  type ViewFieldTemplateBase = {
3
3
  universalIdentifier?: string;
4
4
  position: 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;