twenty-sdk 2.3.0 → 2.3.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 (30) hide show
  1. package/dist/cli/utilities/build/manifest/manifest-build.d.ts +1 -0
  2. package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +1 -0
  3. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.d.ts +3 -0
  4. package/dist/cli/utilities/dev/ui/components/dev-ui-version-row.d.ts +5 -0
  5. package/dist/cli/utilities/version/check-server-version-compatibility.d.ts +1 -0
  6. package/dist/cli/utilities/version/compare-semver.d.ts +2 -0
  7. package/dist/cli/utilities/version/get-local-server-version.d.ts +1 -0
  8. package/dist/cli/utilities/version/get-published-server-versions.d.ts +2 -0
  9. package/dist/cli/utilities/version/get-version-info.d.ts +2 -0
  10. package/dist/cli/utilities/version/parse-semver.d.ts +2 -0
  11. package/dist/cli/utilities/version/published-server-version.d.ts +4 -0
  12. package/dist/cli/utilities/version/semver-tuple.d.ts +1 -0
  13. package/dist/cli/utilities/version/version-info.d.ts +7 -0
  14. package/dist/cli.cjs +68 -68
  15. package/dist/cli.mjs +1682 -1638
  16. package/dist/define/index.cjs +10 -10
  17. package/dist/define/index.cjs.map +1 -1
  18. package/dist/define/index.d.ts +15 -3
  19. package/dist/define/index.mjs +56 -50
  20. package/dist/define/index.mjs.map +1 -1
  21. package/dist/front-component/index.cjs.map +1 -1
  22. package/dist/front-component/index.mjs.map +1 -1
  23. package/dist/{get-function-input-schema-BZ7_XyUh-PnCntsct.mjs → get-function-input-schema-BZ7_XyUh-BLUL3vy8.mjs} +1 -1
  24. package/dist/{get-function-input-schema-BZ7_XyUh-BXB2AcBE.js → get-function-input-schema-BZ7_XyUh-BdGyao4P.js} +1 -1
  25. package/dist/logic-function/index.d.ts +2 -0
  26. package/dist/operations.cjs +1 -1
  27. package/dist/operations.mjs +2 -2
  28. package/dist/{uninstall-DAf2XiS3.mjs → uninstall-CWhPoI1i.mjs} +3142 -3007
  29. package/dist/{uninstall-BiLmSWhb.js → uninstall-x1qK0SyR.js} +53 -53
  30. package/package.json +2 -2
@@ -4,4 +4,5 @@ export declare const buildManifest: (appPath: string) => Promise<{
4
4
  manifest: Manifest | null;
5
5
  filePaths: EntityFilePaths;
6
6
  errors: string[];
7
+ warnings: string[];
7
8
  }>;
@@ -1,5 +1,6 @@
1
1
  export declare enum TargetFunction {
2
2
  DefineApplication = "defineApplication",
3
+ DefineApplicationRole = "defineApplicationRole",
3
4
  DefineField = "defineField",
4
5
  DefineLogicFunction = "defineLogicFunction",
5
6
  DefinePostInstallLogicFunction = "definePostInstallLogicFunction",
@@ -4,6 +4,7 @@ import { type CheckServerOrchestratorStepOutput } from '../../../../cli/utilitie
4
4
  import { type StartWatchersOrchestratorStepOutput } from '../../../../cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step';
5
5
  import { type SyncApplicationOrchestratorStepOutput } from '../../../../cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step';
6
6
  import { type UploadFilesOrchestratorStepOutput } from '../../../../cli/utilities/dev/orchestrator/steps/upload-files-orchestrator-step';
7
+ import { type VersionInfo } from '../../../../cli/utilities/version/version-info';
7
8
  import { type Manifest, SyncableEntity } from 'twenty-shared/application';
8
9
  import { type FileFolder } from 'twenty-shared/types';
9
10
  export type OrchestratorStateStepEvent = {
@@ -58,6 +59,7 @@ export declare class OrchestratorState {
58
59
  };
59
60
  previousObjectsFieldsFingerprint: string | null;
60
61
  pipeline: OrchestratorStatePipeline;
62
+ versionInfo: VersionInfo | null;
61
63
  entities: Map<string, OrchestratorStateEntityInfo>;
62
64
  events: OrchestratorStateEvent[];
63
65
  private eventIdCounter;
@@ -66,6 +68,7 @@ export declare class OrchestratorState {
66
68
  appPath: string;
67
69
  frontendUrl?: string;
68
70
  });
71
+ setVersionInfo(versionInfo: VersionInfo): void;
69
72
  notify(): void;
70
73
  updatePipeline(update: Partial<OrchestratorStatePipeline>): void;
71
74
  applyStepEvents(stepEvents: OrchestratorStateStepEvent[]): void;
@@ -0,0 +1,5 @@
1
+ import { type VersionInfo } from '../../../../../cli/utilities/version/version-info';
2
+ import React from 'react';
3
+ export declare const DevUiVersionRow: ({ versionInfo, }: {
4
+ versionInfo: VersionInfo | null;
5
+ }) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1 @@
1
+ export declare const checkServerVersionCompatibility: (containerName?: string) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { type SemverTuple } from '../../../cli/utilities/version/semver-tuple';
2
+ export declare const compareSemver: (a: SemverTuple, b: SemverTuple) => number;
@@ -0,0 +1 @@
1
+ export declare const getLocalServerVersion: (containerName?: string) => Promise<string | null>;
@@ -0,0 +1,2 @@
1
+ import { type PublishedServerVersion } from '../../../cli/utilities/version/published-server-version';
2
+ export declare const getPublishedServerVersions: () => Promise<PublishedServerVersion[]>;
@@ -0,0 +1,2 @@
1
+ import { type VersionInfo } from '../../../cli/utilities/version/version-info';
2
+ export declare const getVersionInfo: (containerName?: string) => Promise<VersionInfo>;
@@ -0,0 +1,2 @@
1
+ import { type SemverTuple } from '../../../cli/utilities/version/semver-tuple';
2
+ export declare const parseSemver: (raw: string) => SemverTuple | null;
@@ -0,0 +1,4 @@
1
+ export type PublishedServerVersion = {
2
+ name: string;
3
+ lastUpdatedAt: Date;
4
+ };
@@ -0,0 +1 @@
1
+ export type SemverTuple = [number, number, number];
@@ -0,0 +1,7 @@
1
+ export type VersionInfo = {
2
+ cliVersion: string;
3
+ localServerVersion: string | null;
4
+ latestServerVersion: string | null;
5
+ isMinorOrMajorBehind: boolean;
6
+ daysBehind: number | null;
7
+ };