twenty-sdk 2.31.0 → 2.33.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 (45) hide show
  1. package/dist/billing/index.cjs +1 -1
  2. package/dist/billing/index.cjs.map +1 -1
  3. package/dist/billing/index.mjs +2 -2
  4. package/dist/billing/index.mjs.map +1 -1
  5. package/dist/{catalog-sync-Ch6nB5uf.mjs → catalog-sync-DUp5hpKi.mjs} +1 -1
  6. package/dist/{catalog-sync-yH3B_al1.js → catalog-sync-DoEI8JO8.js} +1 -1
  7. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +2 -0
  8. package/dist/cli/utilities/translations/collect-translatable-strings.d.ts +2 -1
  9. package/dist/cli/utilities/translations/compile-application-translations.d.ts +1 -1
  10. package/dist/cli/utilities/translations/compile-catalog-to-message-ids.d.ts +8 -0
  11. package/dist/cli/utilities/translations/locale-catalog-format.d.ts +7 -0
  12. package/dist/cli.cjs +37 -37
  13. package/dist/cli.mjs +3139 -3132
  14. package/dist/define/index.cjs +14 -14
  15. package/dist/define/index.cjs.map +1 -1
  16. package/dist/define/index.d.ts +35 -4
  17. package/dist/define/index.mjs +2745 -2733
  18. package/dist/define/index.mjs.map +1 -1
  19. package/dist/front-component/index.cjs +22 -3
  20. package/dist/front-component/index.cjs.map +1 -1
  21. package/dist/front-component/index.d.ts +48 -5
  22. package/dist/front-component/index.mjs +2026 -655
  23. package/dist/front-component/index.mjs.map +1 -1
  24. package/dist/front-component-renderer/build.cjs +1 -1
  25. package/dist/front-component-renderer/build.mjs +1 -1
  26. package/dist/{get-front-component-build-plugins-DA62IZes.mjs → get-front-component-build-plugins-Cn-MWltl.mjs} +69 -67
  27. package/dist/{get-front-component-build-plugins-C-Webbfn.js → get-front-component-build-plugins-DsfkhD6M.js} +8 -8
  28. package/dist/{get-function-input-schema-GNk3NRLJ-DwfXUGPz.js → get-function-input-schema-GNk3NRLJ-B8zXGirB.js} +1 -1
  29. package/dist/{get-function-input-schema-GNk3NRLJ-C5HXalke.mjs → get-function-input-schema-GNk3NRLJ-CwF3VRY5.mjs} +1 -1
  30. package/dist/logic-function/index.cjs +9 -9
  31. package/dist/logic-function/index.cjs.map +1 -1
  32. package/dist/logic-function/index.d.ts +17 -4
  33. package/dist/logic-function/index.mjs +439 -435
  34. package/dist/logic-function/index.mjs.map +1 -1
  35. package/dist/{login-BHgUJK94.mjs → login-153niBFr.mjs} +5897 -4474
  36. package/dist/{login-BzHQgxeV.js → login-Cl5xmujh.js} +66 -47
  37. package/dist/operations.cjs +1 -1
  38. package/dist/operations.mjs +3 -3
  39. package/dist/utils/index.cjs +1 -1
  40. package/dist/utils/index.cjs.map +1 -1
  41. package/dist/utils/index.mjs +2 -2
  42. package/dist/utils/index.mjs.map +1 -1
  43. package/package.json +2 -2
  44. package/dist/cli/utilities/client/twenty-client-template.d.ts +0 -42
  45. package/dist/cli/utilities/translations/generate-message-id.d.ts +0 -1
@@ -2,7 +2,7 @@ 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-BHgUJK94.mjs";
5
+ import { U as r, z as i } from "./login-153niBFr.mjs";
6
6
  import a from "chalk";
7
7
  //#region src/cli/commands/dev/catalog-sync.ts
8
8
  var o = class {
@@ -1 +1 @@
1
- const e=require("./get-front-component-build-plugins-C-Webbfn.js"),t=require("./login-BzHQgxeV.js");let n=require("chalk");n=e.xt(n);var r=class{async execute(e){e.remote&&t.U.setActiveRemote(e.remote);let r=t.U.getActiveRemote();console.log(n.default.blue(`Syncing marketplace catalog on ${r}...`));let i=await new t.z().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;
1
+ const e=require("./get-front-component-build-plugins-DsfkhD6M.js"),t=require("./login-Cl5xmujh.js");let n=require("chalk");n=e.St(n);var r=class{async execute(e){e.remote&&t.U.setActiveRemote(e.remote);let r=t.U.getActiveRemote();console.log(n.default.blue(`Syncing marketplace catalog on ${r}...`));let i=await new t.z().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;
@@ -15,6 +15,8 @@ export declare class DevModeOrchestrator {
15
15
  private debounceMs;
16
16
  private syncTimer;
17
17
  private serverCheckInterval;
18
+ private syncRequestedWhileRunning;
19
+ private isClosed;
18
20
  private apiService;
19
21
  private clientService;
20
22
  private verbose;
@@ -1,2 +1,3 @@
1
1
  import { type Manifest } from 'twenty-shared/application';
2
- export declare const collectTranslatableStrings: (manifest: Manifest) => string[];
2
+ import { type MessageDescriptor } from '../../../sdk/front-component/translations/message';
3
+ export declare const collectTranslatableStrings: (manifest: Manifest) => MessageDescriptor[];
@@ -1 +1 @@
1
- export declare const compileApplicationTranslations: (appPath: string) => Promise<Partial<Record<"af-ZA" | "ar-SA" | "ca-ES" | "cs-CZ" | "da-DK" | "de-DE" | "el-GR" | "en" | "es-ES" | "fi-FI" | "fr-FR" | "he-IL" | "hu-HU" | "it-IT" | "ja-JP" | "ko-KR" | "nl-NL" | "no-NO" | "pl-PL" | "pseudo-en" | "pt-BR" | "pt-PT" | "ro-RO" | "ru-RU" | "sr-Cyrl" | "sv-SE" | "tr-TR" | "uk-UA" | "vi-VN" | "zh-CN" | "zh-TW", Record<string, string>>> | undefined>;
1
+ export declare const compileApplicationTranslations: (appPath: string) => Promise<Partial<Record<"af-ZA" | "ar-SA" | "ca-ES" | "cs-CZ" | "da-DK" | "de-DE" | "el-GR" | "en" | "es-ES" | "fi-FI" | "fr-FR" | "he-IL" | "hu-HU" | "it-IT" | "ja-JP" | "ko-KR" | "nl-NL" | "no-NO" | "pl-PL" | "pseudo-en" | "pt-BR" | "pt-PT" | "ro-RO" | "ru-RU" | "sr-Cyrl" | "sv-SE" | "tr-TR" | "uk-UA" | "vi-VN" | "zh-CN" | "zh-TW", Record<string, string>>>>;
@@ -0,0 +1,8 @@
1
+ export declare const compileCatalogToMessageIds: ({ catalog, onCollision, }: {
2
+ catalog: Record<string, unknown>;
3
+ onCollision?: ((args: {
4
+ messageId: string;
5
+ keptKey: string;
6
+ droppedKey: string;
7
+ }) => void) | undefined;
8
+ }) => Record<string, string>;
@@ -0,0 +1,7 @@
1
+ export type LocaleCatalogEntry = {
2
+ message: string;
3
+ context?: string;
4
+ translation: string;
5
+ };
6
+ export declare const flattenLocaleCatalog: (raw: Record<string, unknown>) => LocaleCatalogEntry[];
7
+ export declare const buildLocaleCatalog: (entries: LocaleCatalogEntry[]) => Record<string, string | Record<string, string>>;