twenty-sdk 0.6.0 → 0.6.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.
- package/README.md +1 -1
- package/dist/{HtmlTagToRemoteComponent-DBOkvIRB.mjs → HtmlTagToRemoteComponent-CALlgbCB.mjs} +283 -231
- package/dist/{HtmlTagToRemoteComponent-DzQ2I9Lz.js → HtmlTagToRemoteComponent-DvFlyCDv.js} +11 -11
- package/dist/cli/utilities/api/api-service.d.ts +4 -0
- package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +5 -2
- package/dist/cli/utilities/build/common/typecheck-plugin.d.ts +1 -1
- package/dist/cli/utilities/client/client-service.d.ts +6 -1
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +2 -0
- package/dist/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.d.ts +2 -0
- package/dist/cli.cjs +376 -70
- package/dist/cli.mjs +2139 -1769
- package/dist/front-component-renderer/index.cjs +10 -10
- package/dist/front-component-renderer/index.d.ts +3 -3
- package/dist/front-component-renderer/index.mjs +2048 -1877
- package/dist/front-component-renderer/remote/generated/remote-components.d.ts +4 -0
- package/dist/front-component-renderer/remote/generated/remote-elements.d.ts +43 -0
- package/dist/front-component-renderer/types/FrontComponentHostCommunicationApi.d.ts +2 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-By3UDh4s.mjs → get-function-input-schema-BZ7_XyUh-C9RBS5oC.mjs} +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-GxSybvDe.js → get-function-input-schema-BZ7_XyUh-CzwPUwwE.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.js +53 -1
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.js.map +1 -1
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.d.ts +2 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.js.map +1 -1
- package/package.json +17 -1
|
@@ -44,6 +44,10 @@ export declare class ApiService {
|
|
|
44
44
|
getSchema(options?: {
|
|
45
45
|
authToken?: string;
|
|
46
46
|
}): Promise<ApiResponse<string>>;
|
|
47
|
+
getMetadataSchema(options?: {
|
|
48
|
+
authToken?: string;
|
|
49
|
+
}): Promise<ApiResponse<string>>;
|
|
50
|
+
private introspectEndpoint;
|
|
47
51
|
findLogicFunctions(): Promise<ApiResponse<Array<{
|
|
48
52
|
id: string;
|
|
49
53
|
name: string;
|
|
@@ -33,5 +33,8 @@ export declare class EsbuildWatcher implements RestartableWatcher {
|
|
|
33
33
|
restart(sourcePaths: string[]): Promise<void>;
|
|
34
34
|
private createContext;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
37
|
-
|
|
36
|
+
export type EsbuildWatcherFactoryOptions = RestartableWatcherOptions & {
|
|
37
|
+
shouldSkipTypecheck: () => boolean;
|
|
38
|
+
};
|
|
39
|
+
export declare const createLogicFunctionsWatcher: (options: EsbuildWatcherFactoryOptions) => EsbuildWatcher;
|
|
40
|
+
export declare const createFrontComponentsWatcher: (options: EsbuildWatcherFactoryOptions) => EsbuildWatcher;
|
|
@@ -7,4 +7,4 @@ export type TypecheckError = {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const parseTscOutputLine: (line: string) => TypecheckError | null;
|
|
9
9
|
export declare const runTypecheck: (appPath: string) => Promise<TypecheckError[]>;
|
|
10
|
-
export declare const createTypecheckPlugin: (appPath: string) => esbuild.Plugin;
|
|
10
|
+
export declare const createTypecheckPlugin: (appPath: string, shouldSkipTypecheck: () => boolean) => esbuild.Plugin;
|
|
@@ -5,6 +5,11 @@ export declare class ClientService {
|
|
|
5
5
|
appPath: string;
|
|
6
6
|
authToken?: string;
|
|
7
7
|
}): Promise<void>;
|
|
8
|
+
ensureGeneratedClientStub({ appPath }: {
|
|
9
|
+
appPath: string;
|
|
10
|
+
}): Promise<void>;
|
|
8
11
|
private resolveGeneratedPath;
|
|
9
|
-
private
|
|
12
|
+
private writeBarrelIndex;
|
|
13
|
+
private injectClientWrapper;
|
|
14
|
+
private buildClientWrapperTemplate;
|
|
10
15
|
}
|
|
@@ -15,6 +15,7 @@ export declare class StartWatchersOrchestratorStep {
|
|
|
15
15
|
private scheduleSync;
|
|
16
16
|
private notify;
|
|
17
17
|
private onFileBuilt;
|
|
18
|
+
private shouldSkipTypecheck;
|
|
18
19
|
private manifestWatcher;
|
|
19
20
|
private logicFunctionsWatcher;
|
|
20
21
|
private frontComponentsWatcher;
|
|
@@ -26,6 +27,7 @@ export declare class StartWatchersOrchestratorStep {
|
|
|
26
27
|
scheduleSync: () => void;
|
|
27
28
|
notify: () => void;
|
|
28
29
|
onFileBuilt: (event: FileBuiltEvent) => void;
|
|
30
|
+
shouldSkipTypecheck: () => boolean;
|
|
29
31
|
});
|
|
30
32
|
start(): Promise<void>;
|
|
31
33
|
handleWatcherRestarts(result: ManifestBuildResult): Promise<void>;
|