@integry/sdk 3.1.0-alpha.1 → 3.1.1-beta.2
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 +39 -1
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +39 -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 | null;
|
|
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;
|
|
@@ -255,6 +285,7 @@ declare class IntegryJS {
|
|
|
255
285
|
static Helpers: {
|
|
256
286
|
getAuthHash: (key: string, message: string) => Promise<string>;
|
|
257
287
|
};
|
|
288
|
+
private authModalId;
|
|
258
289
|
constructor(config: ConfigWithObject | ConfigWithUrlParams);
|
|
259
290
|
/**
|
|
260
291
|
*
|
|
@@ -282,6 +313,13 @@ declare class IntegryJS {
|
|
|
282
313
|
flowId?: string;
|
|
283
314
|
flowContainerId: string;
|
|
284
315
|
}) => void;
|
|
316
|
+
/**
|
|
317
|
+
* Render the template form we ship
|
|
318
|
+
* @param data
|
|
319
|
+
*/
|
|
320
|
+
renderAccountConnectionModal: (data: {
|
|
321
|
+
deploymentId?: string;
|
|
322
|
+
}) => void;
|
|
285
323
|
/**
|
|
286
324
|
* Render the template form we ship
|
|
287
325
|
* @param templateId
|