@integry/sdk 3.1.0-alpha.1 → 3.1.1-beta.10
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 +52 -6
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +52 -6
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/esm/index.csm.d.ts
CHANGED
|
@@ -4,8 +4,9 @@ type IntegrySDKEvents = {
|
|
|
4
4
|
ready: ({ deploymentId }: {
|
|
5
5
|
deploymentId: number;
|
|
6
6
|
}) => void;
|
|
7
|
-
"should-load-flow": ({ templateId }: {
|
|
7
|
+
"should-load-flow": ({ templateId, flowId }: {
|
|
8
8
|
templateId: number;
|
|
9
|
+
flowId: number;
|
|
9
10
|
}) => void;
|
|
10
11
|
"did-load-flows": ({ flows }: {
|
|
11
12
|
flows: any[];
|
|
@@ -14,6 +15,9 @@ type IntegrySDKEvents = {
|
|
|
14
15
|
integrations: any[];
|
|
15
16
|
}) => void;
|
|
16
17
|
"did-load-flow": (data: {
|
|
18
|
+
flowId: number;
|
|
19
|
+
flowTitle: string;
|
|
20
|
+
flowDescription: string;
|
|
17
21
|
templateId: number;
|
|
18
22
|
templateTitle: string;
|
|
19
23
|
templateDescription: string;
|
|
@@ -22,18 +26,42 @@ type IntegrySDKEvents = {
|
|
|
22
26
|
integrationId: number;
|
|
23
27
|
name: string;
|
|
24
28
|
templateId: number;
|
|
29
|
+
flowId: number;
|
|
25
30
|
status: string;
|
|
26
31
|
callbackUrl: string | null;
|
|
32
|
+
authorizations: {
|
|
33
|
+
authorizationId: number;
|
|
34
|
+
userIdentity: string;
|
|
35
|
+
isBrandingAppAuth: boolean;
|
|
36
|
+
}[];
|
|
27
37
|
}) => void;
|
|
28
38
|
"did-load-preview": (data: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
39
|
+
flowId: number;
|
|
40
|
+
flowTitle: string;
|
|
41
|
+
flowDescription: string;
|
|
32
42
|
}) => void;
|
|
33
43
|
"did-change-step": (data: {
|
|
34
44
|
stepId: number;
|
|
35
45
|
stepType: "AUTH" | "CONFIGURATION" | "SECTION" | "CONFIRMATION";
|
|
36
46
|
}) => void;
|
|
47
|
+
"did-add-authorization": (data: {
|
|
48
|
+
identity: string;
|
|
49
|
+
authorizationId: number;
|
|
50
|
+
flowId: number | null;
|
|
51
|
+
appId: number;
|
|
52
|
+
appName: string;
|
|
53
|
+
appIcon: string;
|
|
54
|
+
alreadyExists: boolean;
|
|
55
|
+
}) => void;
|
|
56
|
+
"did-select-authorization": (data: {
|
|
57
|
+
authorizationId: number;
|
|
58
|
+
}) => void;
|
|
59
|
+
"did-remove-authorization": (data: {
|
|
60
|
+
authorizationId: number;
|
|
61
|
+
}) => void;
|
|
62
|
+
"did-begin-remove-authorization": (data: {
|
|
63
|
+
authorizationId: number;
|
|
64
|
+
}) => void;
|
|
37
65
|
};
|
|
38
66
|
declare enum TemplateFormRenderModes {
|
|
39
67
|
MODAL = "MODAL",
|
|
@@ -65,6 +93,7 @@ type FlowCardProps = {
|
|
|
65
93
|
interface UserConfig {
|
|
66
94
|
availableFlowsLabel?: string;
|
|
67
95
|
myFlowsLabel?: string;
|
|
96
|
+
hideWebhookUrlScreen?: boolean;
|
|
68
97
|
customComponents?: {
|
|
69
98
|
flowCard?: (props: FlowCardProps) => VNode;
|
|
70
99
|
};
|
|
@@ -74,7 +103,8 @@ interface SDKConfig {
|
|
|
74
103
|
debug?: boolean;
|
|
75
104
|
integrationId?: number;
|
|
76
105
|
xIntegryConfig?: {
|
|
77
|
-
|
|
106
|
+
isAnonymous?: boolean;
|
|
107
|
+
appAuth?: {
|
|
78
108
|
apiKey: string;
|
|
79
109
|
extras?: Record<string, string | number>;
|
|
80
110
|
};
|
|
@@ -140,6 +170,7 @@ interface TemplateField {
|
|
|
140
170
|
weight: number;
|
|
141
171
|
is_required: boolean;
|
|
142
172
|
child_fields: string | null;
|
|
173
|
+
placeholder: string | null;
|
|
143
174
|
is_dynamic: boolean;
|
|
144
175
|
data_src: string | null;
|
|
145
176
|
data_src_endpoint: number | null;
|
|
@@ -165,6 +196,13 @@ interface TemplateField {
|
|
|
165
196
|
regex: string | null;
|
|
166
197
|
regex_msg: string | null;
|
|
167
198
|
is_visible: boolean;
|
|
199
|
+
app_user_data?: {
|
|
200
|
+
app_user: number;
|
|
201
|
+
id: number;
|
|
202
|
+
value: string | number;
|
|
203
|
+
}[];
|
|
204
|
+
added_in_mapping?: boolean;
|
|
205
|
+
field_mapping_source?: string;
|
|
168
206
|
}
|
|
169
207
|
interface TemplateStep {
|
|
170
208
|
id: number;
|
|
@@ -174,7 +212,7 @@ interface TemplateStep {
|
|
|
174
212
|
activity: Activity;
|
|
175
213
|
authorization_type: AuthorizationType;
|
|
176
214
|
template_fields: TemplateField[];
|
|
177
|
-
|
|
215
|
+
step_instance?: number | null;
|
|
178
216
|
allow_multiple_authorizations: boolean;
|
|
179
217
|
step_authorization: number | null;
|
|
180
218
|
button_text: string | null;
|
|
@@ -255,6 +293,7 @@ declare class IntegryJS {
|
|
|
255
293
|
static Helpers: {
|
|
256
294
|
getAuthHash: (key: string, message: string) => Promise<string>;
|
|
257
295
|
};
|
|
296
|
+
private authModalId;
|
|
258
297
|
constructor(config: ConfigWithObject | ConfigWithUrlParams);
|
|
259
298
|
/**
|
|
260
299
|
*
|
|
@@ -282,6 +321,13 @@ declare class IntegryJS {
|
|
|
282
321
|
flowId?: string;
|
|
283
322
|
flowContainerId: string;
|
|
284
323
|
}) => void;
|
|
324
|
+
/**
|
|
325
|
+
* Render the template form we ship
|
|
326
|
+
* @param data
|
|
327
|
+
*/
|
|
328
|
+
renderAccountConnectionModal: (data?: {
|
|
329
|
+
deploymentId?: string | undefined;
|
|
330
|
+
} | undefined) => void;
|
|
285
331
|
/**
|
|
286
332
|
* Render the template form we ship
|
|
287
333
|
* @param templateId
|