@integry/sdk 3.1.0-alpha.1 → 3.1.0
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 +31 -1
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +31 -1
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/esm/index.csm.d.ts
CHANGED
|
@@ -24,6 +24,11 @@ type IntegrySDKEvents = {
|
|
|
24
24
|
templateId: number;
|
|
25
25
|
status: string;
|
|
26
26
|
callbackUrl: string | null;
|
|
27
|
+
authorizations: {
|
|
28
|
+
authorizationId: number;
|
|
29
|
+
userIdentity: string;
|
|
30
|
+
isBrandingAppAuth: boolean;
|
|
31
|
+
}[];
|
|
27
32
|
}) => void;
|
|
28
33
|
"did-load-preview": (data: {
|
|
29
34
|
templateId: number;
|
|
@@ -34,6 +39,22 @@ type IntegrySDKEvents = {
|
|
|
34
39
|
stepId: number;
|
|
35
40
|
stepType: "AUTH" | "CONFIGURATION" | "SECTION" | "CONFIRMATION";
|
|
36
41
|
}) => void;
|
|
42
|
+
"did-add-authorization": (data: {
|
|
43
|
+
identity: string;
|
|
44
|
+
authorizationId: number;
|
|
45
|
+
flowId: number;
|
|
46
|
+
appId: number;
|
|
47
|
+
alreadyExists: boolean;
|
|
48
|
+
}) => void;
|
|
49
|
+
"did-select-authorization": (data: {
|
|
50
|
+
authorizationId: number;
|
|
51
|
+
}) => void;
|
|
52
|
+
"did-remove-authorization": (data: {
|
|
53
|
+
authorizationId: number;
|
|
54
|
+
}) => void;
|
|
55
|
+
"did-begin-remove-authorization": (data: {
|
|
56
|
+
authorizationId: number;
|
|
57
|
+
}) => void;
|
|
37
58
|
};
|
|
38
59
|
declare enum TemplateFormRenderModes {
|
|
39
60
|
MODAL = "MODAL",
|
|
@@ -65,6 +86,7 @@ type FlowCardProps = {
|
|
|
65
86
|
interface UserConfig {
|
|
66
87
|
availableFlowsLabel?: string;
|
|
67
88
|
myFlowsLabel?: string;
|
|
89
|
+
hideWebhookUrlScreen?: boolean;
|
|
68
90
|
customComponents?: {
|
|
69
91
|
flowCard?: (props: FlowCardProps) => VNode;
|
|
70
92
|
};
|
|
@@ -140,6 +162,7 @@ interface TemplateField {
|
|
|
140
162
|
weight: number;
|
|
141
163
|
is_required: boolean;
|
|
142
164
|
child_fields: string | null;
|
|
165
|
+
placeholder: string | null;
|
|
143
166
|
is_dynamic: boolean;
|
|
144
167
|
data_src: string | null;
|
|
145
168
|
data_src_endpoint: number | null;
|
|
@@ -165,6 +188,13 @@ interface TemplateField {
|
|
|
165
188
|
regex: string | null;
|
|
166
189
|
regex_msg: string | null;
|
|
167
190
|
is_visible: boolean;
|
|
191
|
+
app_user_data?: {
|
|
192
|
+
app_user: number;
|
|
193
|
+
id: number;
|
|
194
|
+
value: string | number;
|
|
195
|
+
}[];
|
|
196
|
+
added_in_mapping?: boolean;
|
|
197
|
+
field_mapping_source?: string;
|
|
168
198
|
}
|
|
169
199
|
interface TemplateStep {
|
|
170
200
|
id: number;
|
|
@@ -174,7 +204,7 @@ interface TemplateStep {
|
|
|
174
204
|
activity: Activity;
|
|
175
205
|
authorization_type: AuthorizationType;
|
|
176
206
|
template_fields: TemplateField[];
|
|
177
|
-
|
|
207
|
+
step_instance?: number | null;
|
|
178
208
|
allow_multiple_authorizations: boolean;
|
|
179
209
|
step_authorization: number | null;
|
|
180
210
|
button_text: string | null;
|