twenty-sdk 2.1.0-canary.1 → 2.2.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/cli/operations/index.d.ts +3 -0
- package/dist/cli/operations/server-upgrade.d.ts +12 -0
- package/dist/cli/types.d.ts +1 -0
- package/dist/cli/utilities/server/docker-container.d.ts +4 -0
- package/dist/cli.cjs +68 -68
- package/dist/cli.mjs +827 -808
- package/dist/define/index.cjs +16 -16
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +2 -16
- package/dist/define/index.mjs +3367 -6628
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +15 -15
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.mjs +3282 -6544
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-D38OurwZ.js → get-function-input-schema-BZ7_XyUh-DI4AlRRA.js} +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-CKgoFzji.mjs → get-function-input-schema-BZ7_XyUh-YHOkHl_i.mjs} +1 -1
- package/dist/logic-function/index.d.ts +1 -14
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +24 -18
- package/dist/ui/index.cjs +492 -472
- package/dist/ui/index.mjs +11389 -14607
- package/dist/{uninstall-CYiYoBPe.js → uninstall-D3my_KZK.js} +60 -60
- package/dist/{uninstall-Bw-TK4rL.mjs → uninstall-DXr3k3Da.mjs} +4805 -7964
- package/package.json +6 -2
|
@@ -20,7 +20,10 @@ export { functionExecute } from './execute';
|
|
|
20
20
|
export type { FunctionExecuteOptions } from './execute';
|
|
21
21
|
export { serverStart } from './server-start';
|
|
22
22
|
export type { ServerStartOptions, ServerStartResult } from './server-start';
|
|
23
|
+
export { serverUpgrade } from './server-upgrade';
|
|
24
|
+
export type { ServerUpgradeOptions, ServerUpgradeResult, } from './server-upgrade';
|
|
23
25
|
export { detectLocalServer } from '../../cli/utilities/server/detect-local-server';
|
|
26
|
+
export { checkDockerRunning, containerExists, getContainerDigest, getImageDigest, getImageForVersion, } from '../../cli/utilities/server/docker-container';
|
|
24
27
|
export { ConfigService } from '../../cli/utilities/config/config-service';
|
|
25
28
|
export { APP_ERROR_CODES, AUTH_ERROR_CODES, FUNCTION_ERROR_CODES, SERVER_ERROR_CODES, } from '../../cli/types';
|
|
26
29
|
export type { AuthListRemote, AuthStatusResult, CommandError, CommandResult, FunctionExecutionResult, TypecheckResult, } from '../../cli/types';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type CommandResult } from '../../cli/types';
|
|
2
|
+
export type ServerUpgradeOptions = {
|
|
3
|
+
version?: string;
|
|
4
|
+
test?: boolean;
|
|
5
|
+
onProgress?: (message: string) => void;
|
|
6
|
+
};
|
|
7
|
+
export type ServerUpgradeResult = {
|
|
8
|
+
image: string;
|
|
9
|
+
imageUpdated: boolean;
|
|
10
|
+
containerRecreated: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const serverUpgrade: (options?: ServerUpgradeOptions | undefined) => Promise<CommandResult<ServerUpgradeResult>>;
|
package/dist/cli/types.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare const SERVER_ERROR_CODES: {
|
|
|
31
31
|
readonly DOCKER_NOT_RUNNING: "DOCKER_NOT_RUNNING";
|
|
32
32
|
readonly CONTAINER_START_FAILED: "CONTAINER_START_FAILED";
|
|
33
33
|
readonly HEALTH_TIMEOUT: "HEALTH_TIMEOUT";
|
|
34
|
+
readonly IMAGE_UPGRADE_FAILED: "IMAGE_UPGRADE_FAILED";
|
|
34
35
|
};
|
|
35
36
|
export declare const FUNCTION_ERROR_CODES: {
|
|
36
37
|
readonly FETCH_FUNCTIONS_FAILED: "FETCH_FUNCTIONS_FAILED";
|
|
@@ -6,4 +6,8 @@ export declare const DEFAULT_TEST_PORT = 2021;
|
|
|
6
6
|
export declare const isContainerRunning: (containerName?: string) => boolean;
|
|
7
7
|
export declare const getContainerPort: (containerName?: string) => number;
|
|
8
8
|
export declare const containerExists: (containerName?: string) => boolean;
|
|
9
|
+
export declare const getImageForVersion: (version?: string) => string;
|
|
10
|
+
export declare const getContainerDigest: (containerName?: string) => string | null;
|
|
11
|
+
export declare const getImageDigest: (image: string) => string | null;
|
|
12
|
+
export declare const getContainerEnvVar: (envVar: string, containerName?: string) => string | null;
|
|
9
13
|
export declare const checkDockerRunning: () => boolean;
|