@integry/sdk 4.8.20 → 4.8.21

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.
@@ -1,11 +1,15 @@
1
1
  /// <reference types="index.ts" />
2
2
  import { VNode } from "preact";
3
- 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";
3
+ 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";
4
4
  type ConnectedAccount = {
5
5
  id: string;
6
6
  display_name: string;
7
7
  modified_at: string;
8
8
  };
9
+ declare enum RenderModes {
10
+ MODAL = "MODAL",
11
+ INLINE = "INLINE"
12
+ }
9
13
  type IntegrySDKEventPayloads = {
10
14
  ready: {
11
15
  isReady: boolean;
@@ -133,6 +137,25 @@ type IntegrySDKEventPayloads = {
133
137
  type: string;
134
138
  message: string;
135
139
  };
140
+ "did-render-function": {
141
+ functionName: string;
142
+ renderMode: RenderModes;
143
+ containerId: string;
144
+ chatBotUI: boolean;
145
+ isReadOnly: boolean;
146
+ };
147
+ "did-render-app-authorizations": {
148
+ appName: string;
149
+ containerId: string;
150
+ authorizationCount: number;
151
+ isReadOnly: boolean;
152
+ showAppIcon: boolean;
153
+ };
154
+ "did-render-flow-step": {
155
+ containerId: string;
156
+ isReadOnly: boolean;
157
+ chatBotUI: boolean;
158
+ };
136
159
  "app-connected": {
137
160
  id: number;
138
161
  name: string;
@@ -180,6 +203,9 @@ type IntegrySDKEvents = {
180
203
  "app-connected": EventCallback<"app-connected">;
181
204
  "app-disconnected": EventCallback<"app-disconnected">;
182
205
  "modal-closed": EventCallback<"modal-closed">;
206
+ "did-render-function": EventCallback<"did-render-function">;
207
+ "did-render-app-authorizations": EventCallback<"did-render-app-authorizations">;
208
+ "did-render-flow-step": EventCallback<"did-render-flow-step">;
183
209
  };
184
210
  declare enum ViewStyles {
185
211
  COMPACT = "COMPACT",
@@ -199,10 +225,6 @@ declare enum MarketplaceRenderModes {
199
225
  MODAL = "MODAL",
200
226
  INLINE = "INLINE"
201
227
  }
202
- declare enum RenderModes {
203
- MODAL = "MODAL",
204
- INLINE = "INLINE"
205
- }
206
228
  declare enum TemplateListingRenderModes {
207
229
  GRID = "GRID",
208
230
  LIST = "LIST"
@@ -652,6 +674,7 @@ declare class IntegryJS {
652
674
  private apiHandler;
653
675
  private initConfig;
654
676
  eventEmitter: EventEmitter<IntegrySDKEvents>;
677
+ private emitAfterRender;
655
678
  // allow customers to use template tagging
656
679
  static html: (strings: TemplateStringsArray, ...values: any[]) => import("preact").VNode<{}>;
657
680
  static RenderModes: typeof RenderModes;