@integry/sdk 3.2.5-beta.3 → 3.2.5-beta.5
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/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";
|
|
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";
|
|
3
3
|
type IntegrySDKEventPayloads = {
|
|
4
4
|
ready: {
|
|
5
5
|
deploymentId: number;
|
|
@@ -74,6 +74,9 @@ type IntegrySDKEventPayloads = {
|
|
|
74
74
|
"did-begin-remove-authorization": {
|
|
75
75
|
authorizationId: number;
|
|
76
76
|
};
|
|
77
|
+
"did-click-close-button": {
|
|
78
|
+
isCloseClicked: boolean;
|
|
79
|
+
};
|
|
77
80
|
};
|
|
78
81
|
type EventCallback<P extends IntegrySDKEventType> = (
|
|
79
82
|
// @ts-expect-error P can index IntegrySDKEventPayloads
|
|
@@ -95,6 +98,7 @@ type IntegrySDKEvents = {
|
|
|
95
98
|
"did-select-authorization": EventCallback<"did-select-authorization">;
|
|
96
99
|
ready: EventCallback<"ready">;
|
|
97
100
|
"should-load-flow": EventCallback<"should-load-flow">;
|
|
101
|
+
"did-click-close-button": EventCallback<"did-click-close-button">;
|
|
98
102
|
};
|
|
99
103
|
declare enum TemplateFormRenderModes {
|
|
100
104
|
MODAL = "MODAL",
|
|
@@ -132,6 +136,7 @@ interface UserConfig {
|
|
|
132
136
|
flowCard?: (props: FlowCardProps) => VNode;
|
|
133
137
|
};
|
|
134
138
|
autoRedirectToMyFlows?: boolean;
|
|
139
|
+
isReadOnly?: boolean;
|
|
135
140
|
}
|
|
136
141
|
interface SDKConfig {
|
|
137
142
|
env?: "staging" | "production";
|