twenty-sdk 2.14.0 → 2.15.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/README.md +4 -0
- package/dist/AllIcons-DEGfvqso-DwtvkCyL.js +1 -0
- package/dist/{AllIcons-BwIoyggb-BCMFgulw.mjs → AllIcons-DEGfvqso-PUvdkUZm.mjs} +491 -492
- package/dist/catalog-sync-C5Bb1KSh.js +1 -0
- package/dist/{catalog-sync-CXDxoJ8O.mjs → catalog-sync-DcpUieU5.mjs} +1 -1
- package/dist/cli/commands/dev/dev.d.ts +1 -0
- package/dist/cli/operations/index.d.ts +2 -0
- package/dist/cli/operations/server-start.d.ts +1 -0
- package/dist/cli/utilities/api/api-client.d.ts +3 -1
- package/dist/cli/utilities/api/api-response-type.d.ts +1 -0
- package/dist/cli/utilities/auth/reauth-helper.d.ts +2 -0
- package/dist/cli/utilities/server/docker-container.d.ts +1 -0
- package/dist/cli/utilities/version/get-engine-version-range.d.ts +1 -0
- package/dist/cli/utilities/version/resolve-highest-engine-version.d.ts +1 -0
- package/dist/cli.cjs +34 -34
- package/dist/cli.mjs +1705 -1700
- package/dist/define/index.cjs +11 -11
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +118 -4
- package/dist/define/index.mjs +32998 -32949
- 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 -2
- package/dist/front-component/index.mjs +3 -3
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/front-component-renderer.cjs +1 -1
- package/dist/get-function-input-schema-GNk3NRLJ-DMgchWCN.js +1 -0
- package/dist/{get-function-input-schema-NI9y_bIk-Cdh2RIb9.mjs → get-function-input-schema-GNk3NRLJ-oMYSgib9.mjs} +31 -21
- package/dist/icon-BSeT8K5G-Cuhg-Bz6.js +1 -0
- package/dist/icon-BSeT8K5G-WVhoiRKN.mjs +10144 -0
- package/dist/logic-function/get-function-input-schema-GNk3NRLJ-D8x7FINz.js +2 -0
- package/dist/logic-function/get-function-input-schema-GNk3NRLJ-D8x7FINz.js.map +1 -0
- package/dist/logic-function/get-function-input-schema-GNk3NRLJ-DSc3lI49.mjs +75 -0
- package/dist/logic-function/get-function-input-schema-GNk3NRLJ-DSc3lI49.mjs.map +1 -0
- package/dist/logic-function/index.cjs +4 -4
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +18 -3
- package/dist/logic-function/index.mjs +143 -28
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/logic-function/isDefined-Dtu5EYqP-CMNeFg4z.mjs +7 -0
- package/dist/logic-function/isDefined-Dtu5EYqP-CMNeFg4z.mjs.map +1 -0
- package/dist/logic-function/isDefined-Dtu5EYqP-Dp026Ry1.js +2 -0
- package/dist/logic-function/isDefined-Dtu5EYqP-Dp026Ry1.js.map +1 -0
- package/dist/{login-oauth-BRpqOH2x.mjs → login-Cm5IBGFm.mjs} +36367 -36164
- package/dist/login-LjERatsq.js +345 -0
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +4 -4
- package/dist/ui/index.cjs +33 -6
- package/dist/ui/index.d.ts +18 -12
- package/dist/ui/index.mjs +20408 -1123
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.mjs +9 -8
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +5 -3
- package/dist/AllIcons-BwIoyggb-Pq3paugc.js +0 -1
- package/dist/catalog-sync-sANH0f3Y.js +0 -1
- package/dist/display-Co0K-nTB-CGtaWbMi.js +0 -83
- package/dist/display-Co0K-nTB-DAirZFT6.mjs +0 -54635
- package/dist/get-function-input-schema-NI9y_bIk-CqUY25sG.js +0 -1
- package/dist/login-oauth-0T8eWvyh.js +0 -345
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./get-front-component-build-plugins-DBupR4cF.js"),t=require("./login-LjERatsq.js");let n=require("chalk");n=e.i(n);var r=class{async execute(e){e.remote&&t.V.setActiveRemote(e.remote);let r=t.V.getActiveRemote();console.log(n.default.blue(`Syncing marketplace catalog on ${r}...`));let i=await new t.L().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;
|
|
@@ -10,6 +10,7 @@ export declare class AppDevCommand {
|
|
|
10
10
|
private unmountUI;
|
|
11
11
|
close(): Promise<void>;
|
|
12
12
|
getOrchestrator(): DevModeOrchestrator | null;
|
|
13
|
+
private ensureAuthenticatedBeforeLaunch;
|
|
13
14
|
execute(options: AppDevOptions): Promise<void>;
|
|
14
15
|
private setupGracefulShutdown;
|
|
15
16
|
}
|
|
@@ -24,6 +24,8 @@ export { serverUpgrade } from './server-upgrade';
|
|
|
24
24
|
export type { ServerUpgradeOptions, ServerUpgradeResult, } from './server-upgrade';
|
|
25
25
|
export { detectLocalServer } from '../../cli/utilities/server/detect-local-server';
|
|
26
26
|
export { checkDockerRunning, containerExists, getContainerDigest, getImageDigest, getImageForVersion, } from '../../cli/utilities/server/docker-container';
|
|
27
|
+
export { getEngineVersionRange } from '../../cli/utilities/version/get-engine-version-range';
|
|
28
|
+
export { resolveHighestEngineVersion } from '../../cli/utilities/version/resolve-highest-engine-version';
|
|
27
29
|
export { ConfigService } from '../../cli/utilities/config/config-service';
|
|
28
30
|
export { DEV_API_KEY, DEV_API_URL } from '../../cli/constants/dev-api-key';
|
|
29
31
|
export { APP_ERROR_CODES, AUTH_ERROR_CODES, FUNCTION_ERROR_CODES, SERVER_ERROR_CODES, } from '../../cli/types';
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { ConfigService } from '../../../cli/utilities/config/config-service';
|
|
2
1
|
import { type AxiosInstance } from 'axios';
|
|
2
|
+
import { ConfigService } from '../../../cli/utilities/config/config-service';
|
|
3
3
|
export declare class ApiClient {
|
|
4
4
|
readonly client: AxiosInstance;
|
|
5
5
|
readonly configService: ConfigService;
|
|
6
6
|
private readonly tokenOverride?;
|
|
7
7
|
readonly serverUrlOverride?: string;
|
|
8
|
+
private reauthAttempted;
|
|
8
9
|
constructor(options?: {
|
|
9
10
|
disableInterceptors?: boolean;
|
|
10
11
|
serverUrl?: string;
|
|
11
12
|
token?: string;
|
|
12
13
|
skipAuth?: boolean;
|
|
13
14
|
});
|
|
15
|
+
private tryReauthenticateAndRetry;
|
|
14
16
|
getFrontendUrl(): Promise<string | null>;
|
|
15
17
|
getWorkspaceFrontendUrl(): Promise<string | null>;
|
|
16
18
|
private getCurrentWorkspaceFrontendUrl;
|
|
@@ -7,6 +7,7 @@ type FailingApiResponse<TError = unknown> = {
|
|
|
7
7
|
success: false;
|
|
8
8
|
error?: TError;
|
|
9
9
|
message?: string;
|
|
10
|
+
isAuthError?: boolean;
|
|
10
11
|
};
|
|
11
12
|
export type ApiResponse<TData = unknown, TError = unknown> = SuccessfulApiResponse<TData> | FailingApiResponse<TError>;
|
|
12
13
|
export {};
|
|
@@ -8,6 +8,7 @@ export declare const getContainerPort: (containerName?: string) => number;
|
|
|
8
8
|
export declare const containerExists: (containerName?: string) => boolean;
|
|
9
9
|
export declare const getImageForVersion: (version?: string) => string;
|
|
10
10
|
export declare const getContainerDigest: (containerName?: string) => string | null;
|
|
11
|
+
export declare const getContainerImageTag: (containerName?: string) => string | null;
|
|
11
12
|
export declare const getImageDigest: (image: string) => string | null;
|
|
12
13
|
export declare const getContainerEnvVar: (envVar: string, containerName?: string) => string | null;
|
|
13
14
|
export declare const checkDockerRunning: () => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getEngineVersionRange: (cwd?: string) => string | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const resolveHighestEngineVersion: (explicitVersion?: string | undefined) => Promise<string>;
|