twenty-sdk 2.33.0 → 2.35.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/billing/index.cjs.map +1 -1
  3. package/dist/billing/index.mjs.map +1 -1
  4. package/dist/{catalog-sync-DoEI8JO8.js → catalog-sync-Bs-X2ChV.js} +1 -1
  5. package/dist/{catalog-sync-DUp5hpKi.mjs → catalog-sync-C82Xfr2f.mjs} +1 -1
  6. package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +4 -2
  7. package/dist/cli/utilities/build/manifest/utils/manifest-validation-helpers.d.ts +10 -0
  8. package/dist/cli/utilities/build/manifest/utils/validate-timeline-activity-types.d.ts +2 -0
  9. package/dist/cli/utilities/entity/entity-timeline-activity-type-template.d.ts +3 -0
  10. package/dist/cli.cjs +27 -20
  11. package/dist/cli.mjs +302 -285
  12. package/dist/define/index.cjs +2 -2
  13. package/dist/define/index.cjs.map +1 -1
  14. package/dist/define/index.d.ts +30 -9
  15. package/dist/define/index.mjs +152 -130
  16. package/dist/define/index.mjs.map +1 -1
  17. package/dist/front-component/index.cjs +1 -1
  18. package/dist/front-component/index.cjs.map +1 -1
  19. package/dist/front-component/index.d.ts +7 -1
  20. package/dist/front-component/index.mjs +7 -7
  21. package/dist/front-component/index.mjs.map +1 -1
  22. package/dist/front-component-renderer/build.cjs +1 -1
  23. package/dist/front-component-renderer/build.mjs +1 -1
  24. package/dist/{get-front-component-build-plugins-DsfkhD6M.js → get-front-component-build-plugins-CcV3Cown.js} +1 -1
  25. package/dist/{get-front-component-build-plugins-Cn-MWltl.mjs → get-front-component-build-plugins-D9VJQHw7.mjs} +2 -2
  26. package/dist/{get-function-input-schema-GNk3NRLJ-B8zXGirB.js → get-function-input-schema-GNk3NRLJ-Byssjp8I.js} +1 -1
  27. package/dist/{get-function-input-schema-GNk3NRLJ-CwF3VRY5.mjs → get-function-input-schema-GNk3NRLJ-Dm0Ljlg4.mjs} +1 -1
  28. package/dist/logic-function/index.cjs +9 -9
  29. package/dist/logic-function/index.cjs.map +1 -1
  30. package/dist/logic-function/index.d.ts +52 -2
  31. package/dist/logic-function/index.mjs +622 -582
  32. package/dist/logic-function/index.mjs.map +1 -1
  33. package/dist/{login-153niBFr.mjs → login-BsiMC4oB.mjs} +954 -891
  34. package/dist/{login-Cl5xmujh.js → login-cG7hCrTK.js} +44 -44
  35. package/dist/operations.cjs +1 -1
  36. package/dist/operations.mjs +1 -1
  37. package/dist/utils/index.cjs.map +1 -1
  38. package/dist/utils/index.mjs.map +1 -1
  39. package/package.json +2 -2
@@ -1 +1 @@
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;
1
+ const e=require("./get-front-component-build-plugins-CcV3Cown.js"),t=require("./login-cG7hCrTK.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;
@@ -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-153niBFr.mjs";
5
+ import { U as r, z as i } from "./login-BsiMC4oB.mjs";
6
6
  import a from "chalk";
7
7
  //#region src/cli/commands/dev/catalog-sync.ts
8
8
  var o = class {
@@ -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[];
@@ -0,0 +1,3 @@
1
+ export declare const getTimelineActivityTypeBaseFile: ({ name, }: {
2
+ name: string;
3
+ }) => string;