twenty-sdk 2.35.0 → 2.37.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/billing/index.cjs.map +1 -1
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{catalog-sync-Cn-gDxAz.js → catalog-sync-Szx_4267.js} +1 -1
- package/dist/{catalog-sync-C0Td21sN.mjs → catalog-sync-mAO3vmdp.mjs} +1 -1
- package/dist/cli/utilities/api/api-service.d.ts +2 -0
- package/dist/cli/utilities/api/file-api.d.ts +41 -0
- package/dist/cli/utilities/dev/orchestrator/steps/upload-files-orchestrator-step.d.ts +1 -0
- package/dist/cli/utilities/file/file-uploader.d.ts +13 -4
- package/dist/cli/utilities/file/put-file-to-upload-url.d.ts +5 -0
- package/dist/cli.cjs +15 -15
- package/dist/cli.mjs +249 -235
- package/dist/define/index.cjs +14 -14
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +259 -21
- package/dist/define/index.mjs +3142 -3021
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +1 -1
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +1 -0
- package/dist/front-component/index.mjs +2 -2
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/front-component-renderer/build.cjs +1 -1
- package/dist/front-component-renderer/build.mjs +1 -1
- package/dist/{get-front-component-build-plugins-CcV3Cown.js → get-front-component-build-plugins-DZIleilT.js} +8 -8
- package/dist/{get-front-component-build-plugins-BZ1HBS5Y.mjs → get-front-component-build-plugins-WU9ATS3e.mjs} +98 -92
- package/dist/{get-function-input-schema-GNk3NRLJ-Byssjp8I.js → get-function-input-schema-GNk3NRLJ-DKoJBhuO.js} +1 -1
- package/dist/{get-function-input-schema-GNk3NRLJ-BimwLfRN.mjs → get-function-input-schema-GNk3NRLJ-H7iWzfXn.mjs} +1 -1
- package/dist/logic-function/index.cjs +2 -0
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +1 -0
- package/dist/logic-function/index.mjs +2 -2
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/{login-Cl-mw1L0.js → login-4PI5lTOa.js} +61 -31
- package/dist/{login-CuJiHYwZ.mjs → login-CNByz3vi.mjs} +5411 -5151
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./get-front-component-build-plugins-
|
|
1
|
+
const e=require("./get-front-component-build-plugins-DZIleilT.js"),t=require("./login-4PI5lTOa.js");let n=require("chalk");n=e.Tt(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-
|
|
5
|
+
import { U as r, z as i } from "./login-CNByz3vi.mjs";
|
|
6
6
|
import a from "chalk";
|
|
7
7
|
//#region src/cli/commands/dev/catalog-sync.ts
|
|
8
8
|
var o = class {
|
|
@@ -93,5 +93,7 @@ export declare class ApiService {
|
|
|
93
93
|
}>>;
|
|
94
94
|
installTarballApp(...args: Parameters<FileApi['installTarballApp']>): Promise<ApiResponse<boolean, MetadataValidationErrorResponse>>;
|
|
95
95
|
uploadFile(...args: Parameters<FileApi['uploadFile']>): Promise<ApiResponse<boolean>>;
|
|
96
|
+
createApplicationFileUploads(...args: Parameters<FileApi['createApplicationFileUploads']>): Promise<ApiResponse<import("../../../cli/utilities/api/file-api").CreateApplicationFileUploadsResult>>;
|
|
97
|
+
completeApplicationFileUploads(...args: Parameters<FileApi['completeApplicationFileUploads']>): Promise<ApiResponse<import("../../../cli/utilities/api/file-api").CompleteApplicationFileUploadsResult>>;
|
|
96
98
|
}
|
|
97
99
|
export {};
|
|
@@ -2,6 +2,38 @@ import { type ApiResponse } from '../../../cli/utilities/api/api-response-type';
|
|
|
2
2
|
import { type AxiosInstance } from 'axios';
|
|
3
3
|
import { type MetadataValidationErrorResponse } from 'twenty-shared/metadata';
|
|
4
4
|
import { type FileFolder } from 'twenty-shared/types';
|
|
5
|
+
export type ApplicationFileUploadRequest = {
|
|
6
|
+
fileFolder: FileFolder;
|
|
7
|
+
filePath: string;
|
|
8
|
+
size: number;
|
|
9
|
+
};
|
|
10
|
+
export type ApplicationFileUploadTarget = {
|
|
11
|
+
fileId: string;
|
|
12
|
+
filePath: string;
|
|
13
|
+
uploadUrl: string;
|
|
14
|
+
contentType: string;
|
|
15
|
+
expiresAt: string;
|
|
16
|
+
};
|
|
17
|
+
export type ApplicationFileUploadError = {
|
|
18
|
+
fileFolder: string;
|
|
19
|
+
filePath: string;
|
|
20
|
+
message: string;
|
|
21
|
+
};
|
|
22
|
+
export type CreateApplicationFileUploadsResult = {
|
|
23
|
+
targets: ApplicationFileUploadTarget[];
|
|
24
|
+
errors: ApplicationFileUploadError[];
|
|
25
|
+
};
|
|
26
|
+
export type ApplicationFileCompletionError = {
|
|
27
|
+
fileId: string;
|
|
28
|
+
message: string;
|
|
29
|
+
};
|
|
30
|
+
export type CompleteApplicationFileUploadsResult = {
|
|
31
|
+
files: {
|
|
32
|
+
id: string;
|
|
33
|
+
path: string;
|
|
34
|
+
}[];
|
|
35
|
+
errors: ApplicationFileCompletionError[];
|
|
36
|
+
};
|
|
5
37
|
export declare class FileApi {
|
|
6
38
|
private readonly client;
|
|
7
39
|
constructor(client: AxiosInstance);
|
|
@@ -22,4 +54,13 @@ export declare class FileApi {
|
|
|
22
54
|
fileFolder: FileFolder;
|
|
23
55
|
applicationUniversalIdentifier: string;
|
|
24
56
|
}): Promise<ApiResponse<boolean>>;
|
|
57
|
+
createApplicationFileUploads({ applicationUniversalIdentifier, files }: {
|
|
58
|
+
applicationUniversalIdentifier: string;
|
|
59
|
+
files: ApplicationFileUploadRequest[];
|
|
60
|
+
}): Promise<ApiResponse<CreateApplicationFileUploadsResult>>;
|
|
61
|
+
completeApplicationFileUploads({ applicationUniversalIdentifier, fileIds }: {
|
|
62
|
+
applicationUniversalIdentifier: string;
|
|
63
|
+
fileIds: string[];
|
|
64
|
+
}): Promise<ApiResponse<CompleteApplicationFileUploadsResult>>;
|
|
65
|
+
private runMetadataMutation;
|
|
25
66
|
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { type FileFolder } from 'twenty-shared/types';
|
|
2
|
+
export type FileToUpload = {
|
|
3
|
+
builtPath: string;
|
|
4
|
+
fileFolder: FileFolder;
|
|
5
|
+
};
|
|
6
|
+
export type FileUploadFailure = {
|
|
7
|
+
builtPath: string;
|
|
8
|
+
error: string;
|
|
9
|
+
};
|
|
2
10
|
export declare class FileUploader {
|
|
3
11
|
private apiService;
|
|
4
12
|
private applicationUniversalIdentifier;
|
|
@@ -7,8 +15,9 @@ export declare class FileUploader {
|
|
|
7
15
|
applicationUniversalIdentifier: string;
|
|
8
16
|
appPath: string;
|
|
9
17
|
});
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
uploadFiles(files: FileToUpload[]): Promise<FileUploadFailure[]>;
|
|
19
|
+
private uploadBatch;
|
|
20
|
+
private uploadBatchWithMultipartMutation;
|
|
21
|
+
private failWholeBatch;
|
|
22
|
+
private runWithConcurrency;
|
|
14
23
|
}
|