twenty-sdk 0.6.1 → 0.6.3-alpha
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 +5 -1
- package/dist/{HtmlTagToRemoteComponent-DvFlyCDv.js → HtmlTagToRemoteComponent-CgtwxDeH.js} +1 -1
- package/dist/{HtmlTagToRemoteComponent-CALlgbCB.mjs → HtmlTagToRemoteComponent-D_EW5OLu.mjs} +1498 -1447
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +2 -0
- package/dist/cli/utilities/client/client-service.d.ts +0 -1
- package/dist/cli/utilities/client/twenty-client-template.d.ts +42 -0
- package/dist/cli.cjs +138 -89
- package/dist/cli.mjs +2570 -2490
- package/dist/front-component-renderer/index.cjs +8 -8
- package/dist/front-component-renderer/index.mjs +588 -479
- package/dist/front-component-renderer/remote/generated/remote-components.d.ts +42 -2
- package/dist/front-component-renderer/remote/generated/remote-elements.d.ts +52 -2
- package/dist/front-component-renderer/types/FrontComponentExecutionContext.d.ts +1 -0
- package/dist/front-component-renderer/types/FrontComponentHostCommunicationApi.d.ts +2 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-CzwPUwwE.js → get-function-input-schema-BZ7_XyUh-CCSi0u_q.js} +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-C9RBS5oC.mjs → get-function-input-schema-BZ7_XyUh-DAPandzB.mjs} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +164 -124
- package/dist/sdk/application/application-config.d.ts +1 -1
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.d.ts +1 -0
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.js +57 -6
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.js.map +1 -1
- package/dist/sdk/front-component-api/constants/EventToReact.js +22 -3
- package/dist/sdk/front-component-api/constants/EventToReact.js.map +1 -1
- package/dist/sdk/front-component-api/constants/SerializedEventData.d.ts +7 -0
- package/dist/sdk/front-component-api/functions/openAskAIWithPrompt.d.ts +2 -0
- package/dist/sdk/front-component-api/functions/openAskAIWithPrompt.js +12 -0
- package/dist/sdk/front-component-api/functions/openAskAIWithPrompt.js.map +1 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.d.ts +4 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.js.map +1 -1
- package/dist/sdk/front-component-api/hooks/useRecordId.d.ts +1 -0
- package/dist/sdk/front-component-api/hooks/useRecordId.js +6 -0
- package/dist/sdk/front-component-api/hooks/useRecordId.js.map +1 -0
- package/dist/sdk/front-component-api/index.d.ts +2 -0
- package/dist/sdk/front-component-api/types/FrontComponentExecutionContext.d.ts +1 -0
- package/dist/sdk/index.d.ts +4 -1
- package/dist/sdk/index.js +75 -67
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/logic-functions/define-post-install-logic-function.d.ts +6 -0
- package/dist/sdk/logic-functions/define-post-install-logic-function.js +12 -0
- package/dist/sdk/logic-functions/define-post-install-logic-function.js.map +1 -0
- package/dist/sdk/logic-functions/define-pre-install-logic-function.d.ts +6 -0
- package/dist/sdk/logic-functions/define-pre-install-logic-function.js +12 -0
- package/dist/sdk/logic-functions/define-pre-install-logic-function.js.map +1 -0
- package/dist/sdk/logic-functions/install-logic-function-payload-type.d.ts +4 -0
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@ export declare enum TargetFunction {
|
|
|
2
2
|
DefineApplication = "defineApplication",
|
|
3
3
|
DefineField = "defineField",
|
|
4
4
|
DefineLogicFunction = "defineLogicFunction",
|
|
5
|
+
DefinePreInstallLogicFunction = "definePreInstallLogicFunction",
|
|
6
|
+
DefinePostInstallLogicFunction = "definePostInstallLogicFunction",
|
|
5
7
|
DefineObject = "defineObject",
|
|
6
8
|
DefineRole = "defineRole",
|
|
7
9
|
DefineSkill = "defineSkill",
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
type QueryGenqlSelection = Record<string, unknown>;
|
|
2
|
+
type MutationGenqlSelection = Record<string, unknown>;
|
|
3
|
+
type GraphqlOperation = Record<string, unknown>;
|
|
4
|
+
type ClientOptions = {
|
|
5
|
+
url?: string;
|
|
6
|
+
headers?: HeadersInit | (() => HeadersInit | Promise<HeadersInit>);
|
|
7
|
+
fetcher?: (operation: GraphqlOperation | GraphqlOperation[]) => Promise<unknown>;
|
|
8
|
+
fetch?: typeof globalThis.fetch;
|
|
9
|
+
batch?: unknown;
|
|
10
|
+
};
|
|
11
|
+
type TwentyGeneratedClientOptions = ClientOptions;
|
|
12
|
+
export declare class TwentyGeneratedClient {
|
|
13
|
+
private client;
|
|
14
|
+
private url;
|
|
15
|
+
private requestOptions;
|
|
16
|
+
private headers;
|
|
17
|
+
private fetchImplementation;
|
|
18
|
+
private authorizationToken;
|
|
19
|
+
private refreshAccessTokenPromise;
|
|
20
|
+
constructor(options?: TwentyGeneratedClientOptions);
|
|
21
|
+
query<R extends QueryGenqlSelection>(request: R & {
|
|
22
|
+
__name?: string;
|
|
23
|
+
}): Promise<unknown>;
|
|
24
|
+
mutation<R extends MutationGenqlSelection>(request: R & {
|
|
25
|
+
__name?: string;
|
|
26
|
+
}): Promise<unknown>;
|
|
27
|
+
uploadFile(fileBuffer: Buffer, filename: string, contentType: string | undefined, fieldMetadataUniversalIdentifier: string): Promise<{
|
|
28
|
+
id: string;
|
|
29
|
+
path: string;
|
|
30
|
+
size: number;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
url: string;
|
|
33
|
+
}>;
|
|
34
|
+
private executeGraphqlRequestWithOptionalRefresh;
|
|
35
|
+
private executeGraphqlRequest;
|
|
36
|
+
private resolveHeaders;
|
|
37
|
+
private shouldRefreshToken;
|
|
38
|
+
private assertResponseIsSuccessful;
|
|
39
|
+
private requestRefreshedAccessToken;
|
|
40
|
+
private setAuthorizationToken;
|
|
41
|
+
}
|
|
42
|
+
export {};
|