twenty-sdk 2.31.0 → 2.35.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 (50) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/billing/index.cjs +1 -1
  3. package/dist/billing/index.cjs.map +1 -1
  4. package/dist/billing/index.mjs +2 -2
  5. package/dist/billing/index.mjs.map +1 -1
  6. package/dist/{catalog-sync-Ch6nB5uf.mjs → catalog-sync-C0Td21sN.mjs} +1 -1
  7. package/dist/{catalog-sync-yH3B_al1.js → catalog-sync-Cn-gDxAz.js} +1 -1
  8. package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +4 -2
  9. package/dist/cli/utilities/build/manifest/utils/manifest-validation-helpers.d.ts +10 -0
  10. package/dist/cli/utilities/build/manifest/utils/validate-timeline-activity-types.d.ts +2 -0
  11. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +2 -0
  12. package/dist/cli/utilities/entity/entity-timeline-activity-type-template.d.ts +3 -0
  13. package/dist/cli/utilities/translations/collect-translatable-strings.d.ts +2 -1
  14. package/dist/cli/utilities/translations/compile-application-translations.d.ts +1 -1
  15. package/dist/cli/utilities/translations/compile-catalog-to-message-ids.d.ts +8 -0
  16. package/dist/cli/utilities/translations/locale-catalog-format.d.ts +7 -0
  17. package/dist/cli.cjs +48 -41
  18. package/dist/cli.mjs +3160 -3136
  19. package/dist/define/index.cjs +14 -14
  20. package/dist/define/index.cjs.map +1 -1
  21. package/dist/define/index.d.ts +65 -5
  22. package/dist/define/index.mjs +2769 -2734
  23. package/dist/define/index.mjs.map +1 -1
  24. package/dist/front-component/index.cjs +22 -3
  25. package/dist/front-component/index.cjs.map +1 -1
  26. package/dist/front-component/index.d.ts +53 -5
  27. package/dist/front-component/index.mjs +2026 -655
  28. package/dist/front-component/index.mjs.map +1 -1
  29. package/dist/front-component-renderer/build.cjs +1 -1
  30. package/dist/front-component-renderer/build.mjs +1 -1
  31. package/dist/{get-front-component-build-plugins-DA62IZes.mjs → get-front-component-build-plugins-BZ1HBS5Y.mjs} +70 -68
  32. package/dist/{get-front-component-build-plugins-C-Webbfn.js → get-front-component-build-plugins-CcV3Cown.js} +8 -8
  33. package/dist/{get-function-input-schema-GNk3NRLJ-C5HXalke.mjs → get-function-input-schema-GNk3NRLJ-BimwLfRN.mjs} +1 -1
  34. package/dist/{get-function-input-schema-GNk3NRLJ-DwfXUGPz.js → get-function-input-schema-GNk3NRLJ-Byssjp8I.js} +1 -1
  35. package/dist/logic-function/index.cjs +9 -9
  36. package/dist/logic-function/index.cjs.map +1 -1
  37. package/dist/logic-function/index.d.ts +67 -4
  38. package/dist/logic-function/index.mjs +595 -551
  39. package/dist/logic-function/index.mjs.map +1 -1
  40. package/dist/{login-BzHQgxeV.js → login-Cl-mw1L0.js} +68 -49
  41. package/dist/{login-BHgUJK94.mjs → login-CuJiHYwZ.mjs} +5963 -4476
  42. package/dist/operations.cjs +1 -1
  43. package/dist/operations.mjs +3 -3
  44. package/dist/utils/index.cjs +1 -1
  45. package/dist/utils/index.cjs.map +1 -1
  46. package/dist/utils/index.mjs +2 -2
  47. package/dist/utils/index.mjs.map +1 -1
  48. package/package.json +2 -2
  49. package/dist/cli/utilities/client/twenty-client-template.d.ts +0 -42
  50. 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-CuJiHYwZ.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-CcV3Cown.js"),t=require("./login-Cl-mw1L0.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;
@@ -20,7 +20,8 @@ export declare enum TargetFunction {
20
20
  DefineNavigationMenuItem = "defineNavigationMenuItem",
21
21
  DefinePageLayout = "definePageLayout",
22
22
  DefinePageLayoutTab = "definePageLayoutTab",
23
- DefineCommandMenuItem = "defineCommandMenuItem"
23
+ DefineCommandMenuItem = "defineCommandMenuItem",
24
+ DefineTimelineActivityType = "defineTimelineActivityType"
24
25
  }
25
26
  export declare enum ManifestEntityKey {
26
27
  Application = "application",
@@ -40,7 +41,8 @@ export declare enum ManifestEntityKey {
40
41
  NavigationMenuItems = "navigationMenuItems",
41
42
  PageLayouts = "pageLayouts",
42
43
  PageLayoutTabs = "pageLayoutTabs",
43
- CommandMenuItems = "commandMenuItems"
44
+ CommandMenuItems = "commandMenuItems",
45
+ TimelineActivityTypes = "timelineActivityTypes"
44
46
  }
45
47
  export type EntityFilePaths = Record<ManifestEntityKey, string[]>;
46
48
  export declare const TARGET_FUNCTION_TO_ENTITY_KEY_MAPPING: Record<TargetFunction, ManifestEntityKey>;
@@ -0,0 +1,10 @@
1
+ import { type Manifest } from 'twenty-shared/application';
2
+ import { type RelationAndMorphRelationFieldMetadataType } from 'twenty-shared/types';
3
+ export declare const MINIMUM_UNIVERSAL_IDENTIFIER_UUID_VERSION = 4;
4
+ export type ManifestField = Manifest['fields'][number] | Manifest['objects'][number]['fields'][number];
5
+ type RelationManifestField = Extract<ManifestField, {
6
+ type: RelationAndMorphRelationFieldMetadataType;
7
+ }>;
8
+ export declare const isRelationFieldManifest: (field: ManifestField) => field is RelationManifestField;
9
+ export declare const getDuplicateValues: (values: string[]) => string[];
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from 'twenty-shared/application';
2
+ export declare const validateTimelineActivityTypes: (manifest: Pick<Manifest, "fields" | "frontComponents" | "objects" | "timelineActivityTypes">) => string[];
@@ -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;
@@ -0,0 +1,3 @@
1
+ export declare const getTimelineActivityTypeBaseFile: ({ name, }: {
2
+ name: string;
3
+ }) => string;
@@ -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>>;