@integry/sdk 4.8.20 → 4.8.22
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/esm/index.csm.d.ts +28 -5
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +28 -5
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/esm/index.csm.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/// <reference types="index.ts" />
|
|
2
2
|
import { html } from 'htm/preact';
|
|
3
3
|
import { VNode } from "preact";
|
|
4
|
-
type IntegrySDKEventType = "authorizations" | "did-add-authorization" | "did-begin-remove-authorization" | "did-change-step" | "did-fail-authorization-verification" | "did-load-flow" | "did-load-flows" | "did-load-integration" | "did-load-integrations" | "did-load-preview" | "did-remove-authorization" | "did-save-integration" | "did-delete-integration" | "did-select-authorization" | "ready" | "should-load-flow" | "did-click-close-button" | "did-app-load" | "did-enable-integration" | "did-disable-integration" | "did-rename-integration" | "did-raise-sdk-embed-warning" | "app-connected" | "app-disconnected" | "modal-closed" | "integration-created";
|
|
4
|
+
type IntegrySDKEventType = "authorizations" | "did-add-authorization" | "did-begin-remove-authorization" | "did-change-step" | "did-fail-authorization-verification" | "did-load-flow" | "did-load-flows" | "did-load-integration" | "did-load-integrations" | "did-load-preview" | "did-remove-authorization" | "did-save-integration" | "did-delete-integration" | "did-select-authorization" | "ready" | "should-load-flow" | "did-click-close-button" | "did-app-load" | "did-enable-integration" | "did-disable-integration" | "did-rename-integration" | "did-raise-sdk-embed-warning" | "app-connected" | "app-disconnected" | "modal-closed" | "did-render-function" | "did-render-app-authorizations" | "did-render-flow-step" | "integration-created";
|
|
5
5
|
type ConnectedAccount = {
|
|
6
6
|
id: string;
|
|
7
7
|
display_name: string;
|
|
8
8
|
modified_at: string;
|
|
9
9
|
};
|
|
10
|
+
declare enum RenderModes {
|
|
11
|
+
MODAL = "MODAL",
|
|
12
|
+
INLINE = "INLINE"
|
|
13
|
+
}
|
|
10
14
|
type IntegrySDKEventPayloads = {
|
|
11
15
|
ready: {
|
|
12
16
|
isReady: boolean;
|
|
@@ -134,6 +138,25 @@ type IntegrySDKEventPayloads = {
|
|
|
134
138
|
type: string;
|
|
135
139
|
message: string;
|
|
136
140
|
};
|
|
141
|
+
"did-render-function": {
|
|
142
|
+
functionName: string;
|
|
143
|
+
renderMode: RenderModes;
|
|
144
|
+
containerId: string;
|
|
145
|
+
chatBotUI: boolean;
|
|
146
|
+
isReadOnly: boolean;
|
|
147
|
+
};
|
|
148
|
+
"did-render-app-authorizations": {
|
|
149
|
+
appName: string;
|
|
150
|
+
containerId: string;
|
|
151
|
+
authorizationCount: number;
|
|
152
|
+
isReadOnly: boolean;
|
|
153
|
+
showAppIcon: boolean;
|
|
154
|
+
};
|
|
155
|
+
"did-render-flow-step": {
|
|
156
|
+
containerId: string;
|
|
157
|
+
isReadOnly: boolean;
|
|
158
|
+
chatBotUI: boolean;
|
|
159
|
+
};
|
|
137
160
|
"app-connected": {
|
|
138
161
|
id: number;
|
|
139
162
|
name: string;
|
|
@@ -181,6 +204,9 @@ type IntegrySDKEvents = {
|
|
|
181
204
|
"app-connected": EventCallback<"app-connected">;
|
|
182
205
|
"app-disconnected": EventCallback<"app-disconnected">;
|
|
183
206
|
"modal-closed": EventCallback<"modal-closed">;
|
|
207
|
+
"did-render-function": EventCallback<"did-render-function">;
|
|
208
|
+
"did-render-app-authorizations": EventCallback<"did-render-app-authorizations">;
|
|
209
|
+
"did-render-flow-step": EventCallback<"did-render-flow-step">;
|
|
184
210
|
};
|
|
185
211
|
declare enum ViewStyles {
|
|
186
212
|
COMPACT = "COMPACT",
|
|
@@ -200,10 +226,6 @@ declare enum MarketplaceRenderModes {
|
|
|
200
226
|
MODAL = "MODAL",
|
|
201
227
|
INLINE = "INLINE"
|
|
202
228
|
}
|
|
203
|
-
declare enum RenderModes {
|
|
204
|
-
MODAL = "MODAL",
|
|
205
|
-
INLINE = "INLINE"
|
|
206
|
-
}
|
|
207
229
|
declare enum TemplateListingRenderModes {
|
|
208
230
|
GRID = "GRID",
|
|
209
231
|
LIST = "LIST"
|
|
@@ -663,6 +685,7 @@ declare class IntegryJS {
|
|
|
663
685
|
private apiHandler;
|
|
664
686
|
private initConfig;
|
|
665
687
|
eventEmitter: EventEmitter<IntegrySDKEvents>;
|
|
688
|
+
private emitAfterRender;
|
|
666
689
|
static html: (strings: TemplateStringsArray, ...values: any[]) => import("preact").VNode<{}>;
|
|
667
690
|
static RenderModes: typeof RenderModes;
|
|
668
691
|
static TemplateFormRenderModes: typeof TemplateFormRenderModes;
|