@integry/sdk 3.1.6-beta.2 → 3.1.6-beta.3
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 +50 -51
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +50 -51
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/umd/index.umd.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { VNode } from "preact";
|
|
2
|
-
type
|
|
3
|
-
|
|
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-delete-integration" | "did-load-preview" | "did-remove-authorization" | "did-save-integration" | "did-select-authorization" | "ready" | "should-load-flow";
|
|
3
|
+
type IntegrySDKEventPayloads = {
|
|
4
|
+
ready: {
|
|
4
5
|
deploymentId: number;
|
|
5
|
-
}
|
|
6
|
-
"should-load-flow":
|
|
6
|
+
};
|
|
7
|
+
"should-load-flow": {
|
|
7
8
|
templateId: number;
|
|
8
9
|
flowId: number;
|
|
9
|
-
}
|
|
10
|
-
"did-load-flows":
|
|
10
|
+
};
|
|
11
|
+
"did-load-flows": {
|
|
11
12
|
flows: any[];
|
|
12
|
-
}
|
|
13
|
-
"did-load-integrations":
|
|
13
|
+
};
|
|
14
|
+
"did-load-integrations": {
|
|
14
15
|
integrations: any[];
|
|
15
|
-
}
|
|
16
|
-
"did-load-flow":
|
|
16
|
+
};
|
|
17
|
+
"did-load-flow": {
|
|
17
18
|
flowId: number;
|
|
18
19
|
flowTitle: string;
|
|
19
20
|
flowDescription: string;
|
|
@@ -21,79 +22,77 @@ type IntegrySDKEvents = {
|
|
|
21
22
|
templateTitle: string;
|
|
22
23
|
templateDescription: string;
|
|
23
24
|
mode: "EDIT" | "CREATE";
|
|
24
|
-
}
|
|
25
|
-
"did-load-integration":
|
|
25
|
+
};
|
|
26
|
+
"did-load-integration": {
|
|
26
27
|
flowId: number;
|
|
27
28
|
integrationId: number;
|
|
28
|
-
}
|
|
29
|
-
"did-delete-integration":
|
|
29
|
+
};
|
|
30
|
+
"did-delete-integration": {
|
|
30
31
|
flowId: number;
|
|
31
32
|
flowName: string;
|
|
32
33
|
flowDescription: string;
|
|
33
34
|
integrationId: number;
|
|
34
35
|
integrationName: string;
|
|
35
|
-
}
|
|
36
|
-
"did-save-integration":
|
|
36
|
+
};
|
|
37
|
+
"did-save-integration": {
|
|
37
38
|
integrationId: number;
|
|
38
39
|
name: string;
|
|
39
40
|
templateId: number;
|
|
40
41
|
flowId: number;
|
|
41
42
|
status: string;
|
|
42
43
|
callbackUrl: string | null;
|
|
43
|
-
event: "EDIT" | "CREATE";
|
|
44
44
|
authorizations: {
|
|
45
45
|
authorizationId: number;
|
|
46
46
|
userIdentity: string;
|
|
47
47
|
isBrandingAppAuth: boolean;
|
|
48
48
|
}[];
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
authorization: number | null;
|
|
52
|
-
template_step: number;
|
|
53
|
-
app_user_data: {
|
|
54
|
-
id: number;
|
|
55
|
-
value: string | null;
|
|
56
|
-
template_field: number;
|
|
57
|
-
}[];
|
|
58
|
-
}[];
|
|
59
|
-
}) => void;
|
|
60
|
-
"did-load-preview": (data: {
|
|
49
|
+
};
|
|
50
|
+
"did-load-preview": {
|
|
61
51
|
flowId: number;
|
|
62
52
|
flowTitle: string;
|
|
63
53
|
flowDescription: string;
|
|
64
|
-
}
|
|
65
|
-
"did-change-step":
|
|
54
|
+
};
|
|
55
|
+
"did-change-step": {
|
|
66
56
|
stepId: number;
|
|
67
57
|
stepType: "AUTH" | "CONFIGURATION" | "SECTION" | "CONFIRMATION";
|
|
68
|
-
}
|
|
69
|
-
"did-add-authorization":
|
|
58
|
+
};
|
|
59
|
+
"did-add-authorization": {
|
|
70
60
|
identity: string;
|
|
71
61
|
authorizationId: number;
|
|
72
62
|
flowId: number | null;
|
|
73
|
-
appId: number;
|
|
74
|
-
appName: string;
|
|
75
63
|
appIcon: string;
|
|
76
64
|
alreadyExists: boolean;
|
|
77
65
|
externalId?: string;
|
|
78
|
-
}
|
|
79
|
-
"did-
|
|
80
|
-
identity: string;
|
|
81
|
-
authorizationId: number;
|
|
82
|
-
flowId: number | null;
|
|
83
|
-
appId: number;
|
|
84
|
-
appName: string;
|
|
85
|
-
appIcon: string;
|
|
86
|
-
alreadyExists: boolean;
|
|
87
|
-
}) => void;
|
|
88
|
-
"did-select-authorization": (data: {
|
|
66
|
+
};
|
|
67
|
+
"did-select-authorization": {
|
|
89
68
|
authorizationId: number;
|
|
90
|
-
}
|
|
91
|
-
"did-remove-authorization":
|
|
69
|
+
};
|
|
70
|
+
"did-remove-authorization": {
|
|
92
71
|
authorizationId: number;
|
|
93
|
-
}
|
|
94
|
-
"did-begin-remove-authorization":
|
|
72
|
+
};
|
|
73
|
+
"did-begin-remove-authorization": {
|
|
95
74
|
authorizationId: number;
|
|
96
|
-
}
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
type EventCallback<P extends IntegrySDKEventType> = (
|
|
78
|
+
// @ts-expect-error P can index IntegrySDKEventPayloads
|
|
79
|
+
payload: IntegrySDKEventPayloads[P]) => void;
|
|
80
|
+
type IntegrySDKEvents = {
|
|
81
|
+
authorizations: EventCallback<"authorizations">;
|
|
82
|
+
"did-add-authorization": EventCallback<"did-add-authorization">;
|
|
83
|
+
"did-begin-remove-authorization": EventCallback<"did-begin-remove-authorization">;
|
|
84
|
+
"did-change-step": EventCallback<"did-change-step">;
|
|
85
|
+
"did-fail-authorization-verification": EventCallback<"did-fail-authorization-verification">;
|
|
86
|
+
"did-load-flow": EventCallback<"did-load-flow">;
|
|
87
|
+
"did-load-flows": EventCallback<"did-load-flows">;
|
|
88
|
+
"did-load-integration": EventCallback<"did-load-integration">;
|
|
89
|
+
"did-load-integrations": EventCallback<"did-load-integrations">;
|
|
90
|
+
"did-load-preview": EventCallback<"did-load-preview">;
|
|
91
|
+
"did-remove-authorization": EventCallback<"did-remove-authorization">;
|
|
92
|
+
"did-save-integration": EventCallback<"did-save-integration">;
|
|
93
|
+
"did-select-authorization": EventCallback<"did-select-authorization">;
|
|
94
|
+
ready: EventCallback<"ready">;
|
|
95
|
+
"should-load-flow": EventCallback<"should-load-flow">;
|
|
97
96
|
};
|
|
98
97
|
declare enum TemplateFormRenderModes {
|
|
99
98
|
MODAL = "MODAL",
|