@integry/sdk 3.7.1 → 3.7.2

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,5 +1,5 @@
1
1
  import { VNode } from "preact";
2
- 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";
2
+ 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";
3
3
  type IntegrySDKEventPayloads = {
4
4
  ready: {
5
5
  deploymentId: number;
@@ -83,6 +83,12 @@ type IntegrySDKEventPayloads = {
83
83
  "did-click-close-button": {
84
84
  isCloseClicked: boolean;
85
85
  };
86
+ "did-app-load": {
87
+ appName: string;
88
+ appId: number;
89
+ appLogoUrl: string;
90
+ authorizationId: number | null;
91
+ };
86
92
  };
87
93
  type EventCallback<P extends IntegrySDKEventType> = (
88
94
  // @ts-expect-error P can index IntegrySDKEventPayloads
@@ -105,6 +111,7 @@ type IntegrySDKEvents = {
105
111
  ready: EventCallback<"ready">;
106
112
  "should-load-flow": EventCallback<"should-load-flow">;
107
113
  "did-click-close-button": EventCallback<"did-click-close-button">;
114
+ "did-app-load": EventCallback<"did-app-load">;
108
115
  };
109
116
  declare enum TemplateFormRenderModes {
110
117
  MODAL = "MODAL",
@@ -345,6 +352,7 @@ interface InitConfig {
345
352
  showApps?: boolean;
346
353
  showTemplates?: boolean;
347
354
  skipOnDemand?: boolean;
355
+ skipAccountConnectionOnLoad?: boolean;
348
356
  }
349
357
  interface MarketplaceConfig {
350
358
  containerId: string;
@@ -409,6 +417,7 @@ declare class IntegryJS {
409
417
  static SDK_VERSION: string;
410
418
  private config;
411
419
  private apiHandler;
420
+ private initConfig;
412
421
  eventEmitter: EventEmitter<IntegrySDKEvents>;
413
422
  // allow customers to use template tagging
414
423
  static html: (strings: TemplateStringsArray, ...values: any[]) => import("preact").VNode<{}>;