@integry/sdk 3.1.0 → 3.1.1-beta.11
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 +34 -7
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +34 -7
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/umd/index.umd.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ type IntegrySDKEvents = {
|
|
|
3
3
|
ready: ({ deploymentId }: {
|
|
4
4
|
deploymentId: number;
|
|
5
5
|
}) => void;
|
|
6
|
-
"should-load-flow": ({ templateId }: {
|
|
6
|
+
"should-load-flow": ({ templateId, flowId }: {
|
|
7
7
|
templateId: number;
|
|
8
|
+
flowId: number;
|
|
8
9
|
}) => void;
|
|
9
10
|
"did-load-flows": ({ flows }: {
|
|
10
11
|
flows: any[];
|
|
@@ -13,6 +14,9 @@ type IntegrySDKEvents = {
|
|
|
13
14
|
integrations: any[];
|
|
14
15
|
}) => void;
|
|
15
16
|
"did-load-flow": (data: {
|
|
17
|
+
flowId: number;
|
|
18
|
+
flowTitle: string;
|
|
19
|
+
flowDescription: string;
|
|
16
20
|
templateId: number;
|
|
17
21
|
templateTitle: string;
|
|
18
22
|
templateDescription: string;
|
|
@@ -21,6 +25,7 @@ type IntegrySDKEvents = {
|
|
|
21
25
|
integrationId: number;
|
|
22
26
|
name: string;
|
|
23
27
|
templateId: number;
|
|
28
|
+
flowId: number;
|
|
24
29
|
status: string;
|
|
25
30
|
callbackUrl: string | null;
|
|
26
31
|
authorizations: {
|
|
@@ -30,9 +35,9 @@ type IntegrySDKEvents = {
|
|
|
30
35
|
}[];
|
|
31
36
|
}) => void;
|
|
32
37
|
"did-load-preview": (data: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
flowId: number;
|
|
39
|
+
flowTitle: string;
|
|
40
|
+
flowDescription: string;
|
|
36
41
|
}) => void;
|
|
37
42
|
"did-change-step": (data: {
|
|
38
43
|
stepId: number;
|
|
@@ -41,8 +46,19 @@ type IntegrySDKEvents = {
|
|
|
41
46
|
"did-add-authorization": (data: {
|
|
42
47
|
identity: string;
|
|
43
48
|
authorizationId: number;
|
|
44
|
-
flowId: number;
|
|
49
|
+
flowId: number | null;
|
|
45
50
|
appId: number;
|
|
51
|
+
appName: string;
|
|
52
|
+
appIcon: string;
|
|
53
|
+
alreadyExists: boolean;
|
|
54
|
+
}) => void;
|
|
55
|
+
"did-fail-authorization-verification": (data: {
|
|
56
|
+
identity: string;
|
|
57
|
+
authorizationId: number;
|
|
58
|
+
flowId: number | null;
|
|
59
|
+
appId: number;
|
|
60
|
+
appName: string;
|
|
61
|
+
appIcon: string;
|
|
46
62
|
alreadyExists: boolean;
|
|
47
63
|
}) => void;
|
|
48
64
|
"did-select-authorization": (data: {
|
|
@@ -95,8 +111,10 @@ interface SDKConfig {
|
|
|
95
111
|
debug?: boolean;
|
|
96
112
|
integrationId?: number;
|
|
97
113
|
xIntegryConfig?: {
|
|
98
|
-
|
|
99
|
-
|
|
114
|
+
isAnonymous?: boolean;
|
|
115
|
+
appAuth?: {
|
|
116
|
+
apiKey?: string;
|
|
117
|
+
authId?: string;
|
|
100
118
|
extras?: Record<string, string | number>;
|
|
101
119
|
};
|
|
102
120
|
};
|
|
@@ -275,6 +293,7 @@ declare class IntegryJS {
|
|
|
275
293
|
static Helpers: {
|
|
276
294
|
getAuthHash: (key: string, message: string) => Promise<string>;
|
|
277
295
|
};
|
|
296
|
+
private authModalId;
|
|
278
297
|
constructor(config: ConfigWithObject | ConfigWithUrlParams);
|
|
279
298
|
/**
|
|
280
299
|
*
|
|
@@ -302,6 +321,14 @@ declare class IntegryJS {
|
|
|
302
321
|
flowId?: string;
|
|
303
322
|
flowContainerId: string;
|
|
304
323
|
}) => void;
|
|
324
|
+
/**
|
|
325
|
+
* Render the template form we ship
|
|
326
|
+
* @param data
|
|
327
|
+
*/
|
|
328
|
+
renderAccountConnectionModal: (data?: {
|
|
329
|
+
deploymentId?: string | undefined;
|
|
330
|
+
appId?: number | undefined;
|
|
331
|
+
} | undefined) => void;
|
|
305
332
|
/**
|
|
306
333
|
* Render the template form we ship
|
|
307
334
|
* @param templateId
|