twenty-sdk 2.10.0 → 2.12.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.
- package/dist/{catalog-sync-BHD2q_KA.mjs → catalog-sync-DmIzcse2.mjs} +1 -1
- package/dist/{catalog-sync-Dp2RKu2c.js → catalog-sync-GJcaViDU.js} +1 -1
- package/dist/cli/commands/dev/dev-once.d.ts +1 -0
- package/dist/cli/commands/dev/generate-client.d.ts +6 -0
- package/dist/cli/operations/dev-once.d.ts +1 -0
- package/dist/cli/utilities/api/api-response-type.d.ts +5 -5
- package/dist/cli/utilities/api/api-service.d.ts +8 -2
- package/dist/cli/utilities/api/application-api.d.ts +7 -1
- package/dist/cli/utilities/api/file-api.d.ts +2 -1
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.d.ts +1 -0
- package/dist/cli/utilities/dev/orchestrator/steps/format-sync-actions-summary.d.ts +3 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui-application-panel.d.ts +2 -1
- package/dist/cli/utilities/dev/ui/components/dev-ui-entity-section.d.ts +3 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui.d.ts +1 -1
- package/dist/cli/utilities/dev/ui/dev-ui-constants.d.ts +6 -0
- package/dist/cli/utilities/entity/entity-field-template.d.ts +5 -1
- package/dist/cli/utilities/error/format-manifest-validation-errors.d.ts +2 -1
- package/dist/cli/utilities/error/get-sync-error-recovery-hint.d.ts +1 -0
- package/dist/cli.cjs +107 -87
- package/dist/cli.mjs +2712 -2546
- package/dist/define/index.cjs +10 -10
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +1 -0
- package/dist/define/index.mjs +568 -566
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +5 -5
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.mjs +126 -123
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-DTlcRJz3-BweFaTLz.mjs → get-function-input-schema-DTlcRJz3-B0eNO1qG.mjs} +1 -1
- package/dist/{get-function-input-schema-DTlcRJz3-DWdkAlue.js → get-function-input-schema-DTlcRJz3-DAkVg26G.js} +1 -1
- package/dist/{login-oauth-BPSmh2dn.mjs → login-oauth-C0VXFL7H.mjs} +2747 -2675
- package/dist/{login-oauth-DnF6U1Ak.js → login-oauth-DzHcV9F2.js} +61 -51
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +2 -2
- package/dist/ui/index.cjs +25 -25
- package/dist/ui/index.d.ts +12 -12
- package/dist/ui/index.mjs +5414 -5425
- package/package.json +7 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./login-oauth-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./login-oauth-DzHcV9F2.js"),l=require("chalk"),n=e=>e&&e.__esModule?e:{default:e},a=n(l);class s{async execute(c){c.remote&&o.ConfigService.setActiveRemote(c.remote);const r=o.ConfigService.getActiveRemote();console.log(a.default.blue(`Syncing marketplace catalog on ${r}...`));const t=await new o.ApiService().syncMarketplaceCatalog();t.success||(console.error(a.default.red(`Catalog sync failed: ${t.error instanceof Error?t.error.message:String(t.error)}`)),process.exit(1)),console.log(a.default.green("✓ Marketplace catalog synced successfully"))}}exports.CatalogSyncCommand=s;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
type SuccessfulApiResponse<
|
|
1
|
+
type SuccessfulApiResponse<TData = unknown> = {
|
|
2
2
|
success: true;
|
|
3
|
-
data:
|
|
3
|
+
data: TData;
|
|
4
4
|
message?: string;
|
|
5
5
|
};
|
|
6
|
-
type FailingApiResponse = {
|
|
6
|
+
type FailingApiResponse<TError = unknown> = {
|
|
7
7
|
success: false;
|
|
8
|
-
error?:
|
|
8
|
+
error?: TError;
|
|
9
9
|
message?: string;
|
|
10
10
|
};
|
|
11
|
-
export type ApiResponse<
|
|
11
|
+
export type ApiResponse<TData = unknown, TError = unknown> = SuccessfulApiResponse<TData> | FailingApiResponse<TError>;
|
|
12
12
|
export {};
|
|
@@ -3,6 +3,7 @@ import { ApplicationApi } from '../../../cli/utilities/api/application-api';
|
|
|
3
3
|
import { FileApi } from '../../../cli/utilities/api/file-api';
|
|
4
4
|
import { LogicFunctionApi } from '../../../cli/utilities/api/logic-function-api';
|
|
5
5
|
import { type Manifest } from 'twenty-shared/application';
|
|
6
|
+
import { type MetadataValidationErrorResponse, type SyncAction } from 'twenty-shared/metadata';
|
|
6
7
|
type ApiServiceOptions = {
|
|
7
8
|
disableInterceptors?: boolean;
|
|
8
9
|
serverUrl?: string;
|
|
@@ -43,7 +44,12 @@ export declare class ApiService {
|
|
|
43
44
|
id: string;
|
|
44
45
|
universalIdentifier: string;
|
|
45
46
|
}>>;
|
|
46
|
-
syncApplication(manifest: Manifest
|
|
47
|
+
syncApplication(manifest: Manifest, options?: {
|
|
48
|
+
dryRun?: boolean;
|
|
49
|
+
}): Promise<ApiResponse<{
|
|
50
|
+
applicationUniversalIdentifier: string;
|
|
51
|
+
actions: SyncAction[];
|
|
52
|
+
}, MetadataValidationErrorResponse>>;
|
|
47
53
|
uninstallApplication(universalIdentifier: string): Promise<ApiResponse>;
|
|
48
54
|
syncMarketplaceCatalog(): Promise<ApiResponse<boolean>>;
|
|
49
55
|
getSchema(options?: {
|
|
@@ -75,7 +81,7 @@ export declare class ApiService {
|
|
|
75
81
|
universalIdentifier: string;
|
|
76
82
|
name: string;
|
|
77
83
|
}>>;
|
|
78
|
-
installTarballApp(...args: Parameters<FileApi['installTarballApp']>): Promise<ApiResponse<boolean>>;
|
|
84
|
+
installTarballApp(...args: Parameters<FileApi['installTarballApp']>): Promise<ApiResponse<boolean, MetadataValidationErrorResponse>>;
|
|
79
85
|
uploadFile(...args: Parameters<FileApi['uploadFile']>): Promise<ApiResponse<boolean>>;
|
|
80
86
|
}
|
|
81
87
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ApiResponse } from '../../../cli/utilities/api/api-response-type';
|
|
2
2
|
import { type AxiosInstance } from 'axios';
|
|
3
3
|
import { type Manifest } from 'twenty-shared/application';
|
|
4
|
+
import { type MetadataValidationErrorResponse, type SyncAction } from 'twenty-shared/metadata';
|
|
4
5
|
export declare class ApplicationApi {
|
|
5
6
|
private readonly client;
|
|
6
7
|
constructor(client: AxiosInstance);
|
|
@@ -32,6 +33,11 @@ export declare class ApplicationApi {
|
|
|
32
33
|
id: string;
|
|
33
34
|
universalIdentifier: string;
|
|
34
35
|
}>>;
|
|
35
|
-
syncApplication(manifest: Manifest
|
|
36
|
+
syncApplication(manifest: Manifest, options?: {
|
|
37
|
+
dryRun?: boolean;
|
|
38
|
+
}): Promise<ApiResponse<{
|
|
39
|
+
applicationUniversalIdentifier: string;
|
|
40
|
+
actions: SyncAction[];
|
|
41
|
+
}, MetadataValidationErrorResponse>>;
|
|
36
42
|
uninstallApplication(universalIdentifier: string): Promise<ApiResponse>;
|
|
37
43
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ApiResponse } from '../../../cli/utilities/api/api-response-type';
|
|
2
2
|
import { type AxiosInstance } from 'axios';
|
|
3
|
+
import { type MetadataValidationErrorResponse } from 'twenty-shared/metadata';
|
|
3
4
|
import { type FileFolder } from 'twenty-shared/types';
|
|
4
5
|
export declare class FileApi {
|
|
5
6
|
private readonly client;
|
|
@@ -14,7 +15,7 @@ export declare class FileApi {
|
|
|
14
15
|
}>>;
|
|
15
16
|
installTarballApp({ universalIdentifier }: {
|
|
16
17
|
universalIdentifier: string;
|
|
17
|
-
}): Promise<ApiResponse<boolean>>;
|
|
18
|
+
}): Promise<ApiResponse<boolean, MetadataValidationErrorResponse>>;
|
|
18
19
|
uploadFile({ filePath, builtHandlerPath, fileFolder, applicationUniversalIdentifier }: {
|
|
19
20
|
filePath: string;
|
|
20
21
|
builtHandlerPath: string;
|
|
@@ -10,6 +10,7 @@ import { type FileFolder } from 'twenty-shared/types';
|
|
|
10
10
|
export type OrchestratorStateStepEvent = {
|
|
11
11
|
message: string;
|
|
12
12
|
status: 'info' | 'success' | 'error' | 'warning';
|
|
13
|
+
spacingBefore?: boolean;
|
|
13
14
|
};
|
|
14
15
|
export type OrchestratorStateEvent = OrchestratorStateStepEvent & {
|
|
15
16
|
id: number;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type OrchestratorStateStepEvent } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
|
|
2
|
+
import { type SyncAction } from 'twenty-shared/metadata';
|
|
3
|
+
export declare const formatSyncActionsSummary: (actions: SyncAction[] | undefined) => OrchestratorStateStepEvent[];
|
|
@@ -7,6 +7,7 @@ export declare const DevUiStepStatusLabel: ({ label, status, }: {
|
|
|
7
7
|
label: string;
|
|
8
8
|
status: OrchestratorStateStepStatus;
|
|
9
9
|
}) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
10
|
-
export declare const DevUiApplicationPanel: ({ state, }: {
|
|
10
|
+
export declare const DevUiApplicationPanel: ({ state, verbose, }: {
|
|
11
11
|
state: OrchestratorState;
|
|
12
|
+
verbose?: boolean | undefined;
|
|
12
13
|
}) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
@@ -12,5 +12,8 @@ export declare const DevUiEntitySection: ({ type, entities, }: {
|
|
|
12
12
|
type: SyncableEntity;
|
|
13
13
|
entities: OrchestratorStateEntityInfo[];
|
|
14
14
|
}) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
15
|
+
export declare const DevUiEntitySummary: ({ entities, }: {
|
|
16
|
+
entities: OrchestratorStateEntityInfo[];
|
|
17
|
+
}) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
15
18
|
export declare const DevUiEntityLegend: () => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
16
19
|
export { ENTITY_ORDER };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type DevUiStateManager } from '../../../../../cli/utilities/dev/ui/dev-ui-state-manager';
|
|
2
|
-
export declare const renderDevUI: (uiStateManager: DevUiStateManager) => Promise<{
|
|
2
|
+
export declare const renderDevUI: (uiStateManager: DevUiStateManager, verbose?: boolean) => Promise<{
|
|
3
3
|
unmount: () => void;
|
|
4
4
|
}>;
|
|
@@ -18,6 +18,12 @@ export declare const EVENT_COLORS: Record<OrchestratorStateEvent['status'], stri
|
|
|
18
18
|
export declare const formatTime: (date: Date) => string;
|
|
19
19
|
export declare const shortenPath: (path: string, maxLength?: number) => string;
|
|
20
20
|
export declare const groupEntitiesByType: (entities: Map<string, OrchestratorStateEntityInfo>) => Map<SyncableEntity, OrchestratorStateEntityInfo[]>;
|
|
21
|
+
export type DevUiEntityStatusSummaryPart = {
|
|
22
|
+
status: OrchestratorStateFileStatus;
|
|
23
|
+
count: number;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const summarizeEntityStatuses: (entities: OrchestratorStateEntityInfo[]) => DevUiEntityStatusSummaryPart[];
|
|
21
27
|
export declare const getApplicationUrl: (state: OrchestratorState) => string | null;
|
|
22
28
|
export declare const mergeStepStatuses: (statuses: OrchestratorStateStepStatus[]) => OrchestratorStateStepStatus;
|
|
23
29
|
export type DevUiPipelineRow = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { FieldMetadataType, type RelationOnDeleteAction, type RelationType } from 'twenty-shared/types';
|
|
2
2
|
export declare const getFieldBaseFile: ({ data, }: {
|
|
3
3
|
data: {
|
|
4
4
|
name: string;
|
|
@@ -6,6 +6,10 @@ export declare const getFieldBaseFile: ({ data, }: {
|
|
|
6
6
|
type: FieldMetadataType;
|
|
7
7
|
objectUniversalIdentifier: string;
|
|
8
8
|
description?: string | undefined;
|
|
9
|
+
relationTargetObjectMetadataUniversalIdentifier?: string | undefined;
|
|
10
|
+
relationTargetFieldMetadataUniversalIdentifier?: string | undefined;
|
|
11
|
+
relationType?: RelationType | undefined;
|
|
12
|
+
onDelete?: "None" | RelationOnDeleteAction | undefined;
|
|
9
13
|
};
|
|
10
14
|
name: string;
|
|
11
15
|
}) => string;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { type MetadataValidationErrorResponse } from 'twenty-shared/metadata';
|
|
1
2
|
import { type OrchestratorStateStepEvent } from '../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
|
|
2
|
-
export declare const formatManifestValidationErrors: (error:
|
|
3
|
+
export declare const formatManifestValidationErrors: (error: MetadataValidationErrorResponse | undefined) => OrchestratorStateStepEvent[] | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getSyncErrorRecoveryHint: (message: string | undefined) => string | undefined;
|