@integry/sdk 4.1.30 → 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.
- package/.vscode/launch.json +1 -1
- package/dist/esm/index.csm.d.ts +13 -1
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +13 -1
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/umd/index.umd.d.ts
CHANGED
|
@@ -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" | "did-app-load";
|
|
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" | "did-enable-integration" | "did-disable-integration";
|
|
3
3
|
type IntegrySDKEventPayloads = {
|
|
4
4
|
ready: {
|
|
5
5
|
isReady: boolean;
|
|
@@ -89,6 +89,16 @@ type IntegrySDKEventPayloads = {
|
|
|
89
89
|
appLogoUrl: string;
|
|
90
90
|
authorizationId: number | null;
|
|
91
91
|
};
|
|
92
|
+
"did-enable-integration": {
|
|
93
|
+
integrationId: number;
|
|
94
|
+
name: string;
|
|
95
|
+
status: string;
|
|
96
|
+
};
|
|
97
|
+
"did-disable-integration": {
|
|
98
|
+
integrationId: number;
|
|
99
|
+
name: string;
|
|
100
|
+
status: string;
|
|
101
|
+
};
|
|
92
102
|
};
|
|
93
103
|
type EventCallback<P extends IntegrySDKEventType> = (
|
|
94
104
|
// @ts-expect-error P can index IntegrySDKEventPayloads
|
|
@@ -112,6 +122,8 @@ type IntegrySDKEvents = {
|
|
|
112
122
|
"should-load-flow": EventCallback<"should-load-flow">;
|
|
113
123
|
"did-click-close-button": EventCallback<"did-click-close-button">;
|
|
114
124
|
"did-app-load": EventCallback<"did-app-load">;
|
|
125
|
+
"did-enable-integration": EventCallback<"did-enable-integration">;
|
|
126
|
+
"did-disable-integration": EventCallback<"did-disable-integration">;
|
|
115
127
|
};
|
|
116
128
|
declare enum ViewStyles {
|
|
117
129
|
COMPACT = "COMPACT",
|