twenty-sdk 2.30.0 → 2.31.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 (56) hide show
  1. package/dist/billing/index.cjs +20 -1
  2. package/dist/billing/index.cjs.map +1 -1
  3. package/dist/billing/index.mjs +2380 -18
  4. package/dist/billing/index.mjs.map +1 -1
  5. package/dist/{catalog-sync-WmgvkRw7.mjs → catalog-sync-Ch6nB5uf.mjs} +1 -1
  6. package/dist/catalog-sync-yH3B_al1.js +1 -0
  7. package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +1 -1
  8. package/dist/cli/utilities/build/common/front-component-build/front-components-watcher.d.ts +40 -0
  9. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/build-shared-dependencies-bundle.d.ts +8 -0
  10. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/create-shared-dependencies-shim-plugin.d.ts +3 -0
  11. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/types/shared-dependencies-build-context.type.d.ts +4 -0
  12. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/types/shared-dependencies-export-names.type.d.ts +4 -0
  13. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/utils/enumerate-shared-dependencies-export-names.d.ts +5 -0
  14. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/utils/get-shared-dependencies-entry-source.d.ts +1 -0
  15. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/utils/get-shared-dependencies-namespace-collisions.d.ts +1 -0
  16. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/utils/get-shared-dependencies-shim-source.d.ts +5 -0
  17. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/utils/to-shared-dependencies-namespace-identifier.d.ts +1 -0
  18. package/dist/cli/utilities/build/common/front-component-build/utils/get-front-component-build-plugins.d.ts +2 -0
  19. package/dist/cli/utilities/build/manifest/utils/extract-front-component-shared-dependencies.d.ts +5 -0
  20. package/dist/cli/utilities/build/manifest/utils/normalize-front-component-shared-dependencies.d.ts +1 -0
  21. package/dist/cli.cjs +36 -36
  22. package/dist/cli.mjs +2147 -2051
  23. package/dist/define/index.cjs +24 -24
  24. package/dist/define/index.cjs.map +1 -1
  25. package/dist/define/index.d.ts +328 -844
  26. package/dist/define/index.mjs +6645 -6513
  27. package/dist/define/index.mjs.map +1 -1
  28. package/dist/front-component/index.cjs +3 -3
  29. package/dist/front-component/index.cjs.map +1 -1
  30. package/dist/front-component/index.mjs +460 -460
  31. package/dist/front-component/index.mjs.map +1 -1
  32. package/dist/front-component-renderer/build.cjs +1 -1
  33. package/dist/front-component-renderer/build.mjs +1 -1
  34. package/dist/get-front-component-build-plugins-C-Webbfn.js +196 -0
  35. package/dist/get-front-component-build-plugins-DA62IZes.mjs +9849 -0
  36. package/dist/{get-function-input-schema-GNk3NRLJ-DkTcUzrb.mjs → get-function-input-schema-GNk3NRLJ-C5HXalke.mjs} +1 -1
  37. package/dist/get-function-input-schema-GNk3NRLJ-DwfXUGPz.js +1 -0
  38. package/dist/logic-function/index.cjs +26 -7
  39. package/dist/logic-function/index.cjs.map +1 -1
  40. package/dist/logic-function/index.mjs +2420 -56
  41. package/dist/logic-function/index.mjs.map +1 -1
  42. package/dist/{login-BnGCnmge.mjs → login-BHgUJK94.mjs} +5750 -15164
  43. package/dist/login-BzHQgxeV.js +343 -0
  44. package/dist/operations.cjs +1 -1
  45. package/dist/operations.mjs +1 -1
  46. package/dist/utils/index.cjs +20 -1
  47. package/dist/utils/index.cjs.map +1 -1
  48. package/dist/utils/index.mjs +2375 -13
  49. package/dist/utils/index.mjs.map +1 -1
  50. package/package.json +2 -2
  51. package/dist/catalog-sync-61JsVcDP.js +0 -1
  52. package/dist/get-front-component-build-plugins-B5IvUvSS.mjs +0 -133
  53. package/dist/get-front-component-build-plugins-TJrFS3_p.js +0 -172
  54. package/dist/get-function-input-schema-GNk3NRLJ-D8x7FINz.js +0 -1
  55. package/dist/isDefined-Dtu5EYqP-Dp026Ry1.js +0 -1
  56. package/dist/login-CM2Aug-k.js +0 -365
@@ -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-BnGCnmge.mjs";
5
+ import { U as r, z as i } from "./login-BHgUJK94.mjs";
6
6
  import a from "chalk";
7
7
  //#region src/cli/commands/dev/catalog-sync.ts
8
8
  var o = class {
@@ -0,0 +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;
@@ -19,6 +19,7 @@ export declare class EsbuildWatcher implements RestartableWatcher {
19
19
  private sourcePaths;
20
20
  private esBuildContext;
21
21
  private isRestarting;
22
+ private pendingRestartSourcePaths;
22
23
  private watchMode;
23
24
  private lastChecksums;
24
25
  private onFileBuilt?;
@@ -37,4 +38,3 @@ export type EsbuildWatcherFactoryOptions = RestartableWatcherOptions & {
37
38
  shouldSkipTypecheck: () => boolean;
38
39
  };
39
40
  export declare const createLogicFunctionsWatcher: (options: EsbuildWatcherFactoryOptions) => EsbuildWatcher;
40
- export declare const createFrontComponentsWatcher: (options: EsbuildWatcherFactoryOptions) => EsbuildWatcher;
@@ -0,0 +1,40 @@
1
+ import { type OnBuildErrorCallback, type OnFileBuiltCallback } from '../../../../../cli/utilities/build/common/restartable-watcher-interface';
2
+ import { type SharedDependenciesBuildContext } from '../../../../../cli/utilities/build/common/front-component-build/shared-dependencies-build/types/shared-dependencies-build-context.type';
3
+ import { type FrontComponentSharedDependenciesManifest } from 'twenty-shared/application';
4
+ export type FrontComponentsWatcherOptions = {
5
+ appPath: string;
6
+ sourcePaths: string[];
7
+ sharedDependencies?: FrontComponentSharedDependenciesManifest;
8
+ watch?: boolean;
9
+ shouldSkipTypecheck: () => boolean;
10
+ handleFileBuilt: OnFileBuiltCallback;
11
+ handleBuildError: OnBuildErrorCallback;
12
+ };
13
+ export declare class FrontComponentsWatcher {
14
+ private appPath;
15
+ private sourcePaths;
16
+ private sharedDependencies;
17
+ private watchMode;
18
+ private shouldSkipTypecheck;
19
+ private handleFileBuilt;
20
+ private handleBuildError;
21
+ private componentsWatcher;
22
+ private sharedDependenciesBuildContext;
23
+ private lastSharedDependenciesChecksum;
24
+ private installedDependenciesWatcher;
25
+ private isClosed;
26
+ private isApplyingRestart;
27
+ private sharedDependenciesBuildGeneration;
28
+ private inFlightSharedDependenciesBuildPromise;
29
+ private hasSharedDependenciesBuildRequestedDuringInFlightBuild;
30
+ constructor(options: FrontComponentsWatcherOptions);
31
+ getSharedDependenciesBuildContext(): SharedDependenciesBuildContext | null;
32
+ shouldRestart(sourcePaths: string[], sharedDependencies: FrontComponentSharedDependenciesManifest | undefined): boolean;
33
+ start(): Promise<void>;
34
+ restart(sourcePaths: string[], sharedDependencies: FrontComponentSharedDependenciesManifest | undefined): Promise<void>;
35
+ close(): Promise<void>;
36
+ private hasSharedDependenciesManifestChanged;
37
+ private requestSharedDependenciesBuild;
38
+ private runSharedDependenciesBuild;
39
+ private startInstalledDependenciesWatcher;
40
+ }
@@ -0,0 +1,8 @@
1
+ import { type OnFileBuiltCallback } from '../../../../../../cli/utilities/build/common/restartable-watcher-interface';
2
+ import { type SharedDependenciesBuildContext } from '../../../../../../cli/utilities/build/common/front-component-build/shared-dependencies-build/types/shared-dependencies-build-context.type';
3
+ import { type FrontComponentSharedDependenciesManifest } from 'twenty-shared/application';
4
+ export declare const buildSharedDependenciesBundle: ({ appPath, sharedDependencies, onFileBuilt, }: {
5
+ appPath: string;
6
+ sharedDependencies: FrontComponentSharedDependenciesManifest;
7
+ onFileBuilt: OnFileBuiltCallback;
8
+ }) => Promise<SharedDependenciesBuildContext>;
@@ -0,0 +1,3 @@
1
+ import { type SharedDependenciesBuildContext } from '../../../../../../cli/utilities/build/common/front-component-build/shared-dependencies-build/types/shared-dependencies-build-context.type';
2
+ import type * as esbuild from 'esbuild';
3
+ export declare const createSharedDependenciesShimPlugin: (getSharedDependenciesBuildContext: () => SharedDependenciesBuildContext | null) => esbuild.Plugin;
@@ -0,0 +1,4 @@
1
+ import { type SharedDependenciesExportNames } from '../../../../../../../cli/utilities/build/common/front-component-build/shared-dependencies-build/types/shared-dependencies-export-names.type';
2
+ export type SharedDependenciesBuildContext = {
3
+ exportNamesBySpecifier: Map<string, SharedDependenciesExportNames>;
4
+ };
@@ -0,0 +1,4 @@
1
+ export type SharedDependenciesExportNames = {
2
+ namedExports: string[];
3
+ hasDefaultExport: boolean;
4
+ };
@@ -0,0 +1,5 @@
1
+ import { type SharedDependenciesExportNames } from '../../../../../../../cli/utilities/build/common/front-component-build/shared-dependencies-build/types/shared-dependencies-export-names.type';
2
+ export declare const enumerateSharedDependenciesExportNames: ({ appPath, specifier, }: {
3
+ appPath: string;
4
+ specifier: string;
5
+ }) => Promise<SharedDependenciesExportNames>;
@@ -0,0 +1 @@
1
+ export declare const getSharedDependenciesEntrySource: (dependencies: string[]) => string;
@@ -0,0 +1 @@
1
+ export declare const getSharedDependenciesNamespaceCollisions: (dependencies: string[]) => string[][];
@@ -0,0 +1,5 @@
1
+ import { type SharedDependenciesExportNames } from '../../../../../../../cli/utilities/build/common/front-component-build/shared-dependencies-build/types/shared-dependencies-export-names.type';
2
+ export declare const getSharedDependenciesShimSource: ({ specifier, exportNames, }: {
3
+ specifier: string;
4
+ exportNames: SharedDependenciesExportNames;
5
+ }) => string;
@@ -0,0 +1 @@
1
+ export declare const toSharedDependenciesNamespaceIdentifier: (specifier: string) => string;
@@ -1,6 +1,8 @@
1
1
  import type * as esbuild from 'esbuild';
2
+ import { type SharedDependenciesBuildContext } from '../../../../../../cli/utilities/build/common/front-component-build/shared-dependencies-build/types/shared-dependencies-build-context.type';
2
3
  type GetFrontComponentBuildPluginsOptions = {
3
4
  usePreact?: boolean;
5
+ getSharedDependenciesBuildContext?: () => SharedDependenciesBuildContext | null;
4
6
  };
5
7
  export declare const getFrontComponentBuildPlugins: (options?: GetFrontComponentBuildPluginsOptions | undefined) => esbuild.Plugin[];
6
8
  export {};
@@ -0,0 +1,5 @@
1
+ import { type FrontComponentSharedDependenciesManifest } from 'twenty-shared/application';
2
+ export declare const extractFrontComponentSharedDependencies: (appPath: string) => Promise<{
3
+ sharedDependencies?: FrontComponentSharedDependenciesManifest | undefined;
4
+ errors: string[];
5
+ }>;
@@ -0,0 +1 @@
1
+ export declare const normalizeFrontComponentSharedDependencies: (dependencies: string[]) => string[];