@integry/sdk 4.2.5 → 4.2.6
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
CHANGED
|
@@ -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" | "did-enable-integration" | "did-disable-integration";
|
|
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";
|
|
4
4
|
type IntegrySDKEventPayloads = {
|
|
5
5
|
ready: {
|
|
6
6
|
isReady: boolean;
|
|
@@ -100,6 +100,11 @@ type IntegrySDKEventPayloads = {
|
|
|
100
100
|
name: string;
|
|
101
101
|
status: string;
|
|
102
102
|
};
|
|
103
|
+
"did-rename-integration": {
|
|
104
|
+
integrationId: number;
|
|
105
|
+
name: string;
|
|
106
|
+
status: string;
|
|
107
|
+
};
|
|
103
108
|
};
|
|
104
109
|
type EventCallback<P extends IntegrySDKEventType> = (
|
|
105
110
|
// @ts-expect-error P can index IntegrySDKEventPayloads
|
|
@@ -125,6 +130,7 @@ type IntegrySDKEvents = {
|
|
|
125
130
|
"did-app-load": EventCallback<"did-app-load">;
|
|
126
131
|
"did-enable-integration": EventCallback<"did-enable-integration">;
|
|
127
132
|
"did-disable-integration": EventCallback<"did-disable-integration">;
|
|
133
|
+
"did-rename-integration": EventCallback<"did-rename-integration">;
|
|
128
134
|
};
|
|
129
135
|
declare enum ViewStyles {
|
|
130
136
|
COMPACT = "COMPACT",
|