@integry/sdk 4.1.31 → 4.1.32

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,6 +1,6 @@
1
1
  import { html } from 'htm/preact';
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";
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";
4
4
  type IntegrySDKEventPayloads = {
5
5
  ready: {
6
6
  isReady: boolean;
@@ -90,6 +90,16 @@ type IntegrySDKEventPayloads = {
90
90
  appLogoUrl: string;
91
91
  authorizationId: number | null;
92
92
  };
93
+ "did-enable-integration": {
94
+ integrationId: number;
95
+ name: string;
96
+ status: string;
97
+ };
98
+ "did-disable-integration": {
99
+ integrationId: number;
100
+ name: string;
101
+ status: string;
102
+ };
93
103
  };
94
104
  type EventCallback<P extends IntegrySDKEventType> = (
95
105
  // @ts-expect-error P can index IntegrySDKEventPayloads
@@ -113,6 +123,8 @@ type IntegrySDKEvents = {
113
123
  "should-load-flow": EventCallback<"should-load-flow">;
114
124
  "did-click-close-button": EventCallback<"did-click-close-button">;
115
125
  "did-app-load": EventCallback<"did-app-load">;
126
+ "did-enable-integration": EventCallback<"did-enable-integration">;
127
+ "did-disable-integration": EventCallback<"did-disable-integration">;
116
128
  };
117
129
  declare enum ViewStyles {
118
130
  COMPACT = "COMPACT",