@integry/sdk 3.1.1-beta.1 → 3.1.1-beta.12
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 +29 -9
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +29 -9
- 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,6 +26,7 @@ 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;
|
|
27
32
|
authorizations: {
|
|
@@ -31,9 +36,9 @@ type IntegrySDKEvents = {
|
|
|
31
36
|
}[];
|
|
32
37
|
}) => void;
|
|
33
38
|
"did-load-preview": (data: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
flowId: number;
|
|
40
|
+
flowTitle: string;
|
|
41
|
+
flowDescription: string;
|
|
37
42
|
}) => void;
|
|
38
43
|
"did-change-step": (data: {
|
|
39
44
|
stepId: number;
|
|
@@ -44,6 +49,17 @@ type IntegrySDKEvents = {
|
|
|
44
49
|
authorizationId: number;
|
|
45
50
|
flowId: number | null;
|
|
46
51
|
appId: number;
|
|
52
|
+
appName: string;
|
|
53
|
+
appIcon: string;
|
|
54
|
+
alreadyExists: boolean;
|
|
55
|
+
}) => void;
|
|
56
|
+
"did-fail-authorization-verification": (data: {
|
|
57
|
+
identity: string;
|
|
58
|
+
authorizationId: number;
|
|
59
|
+
flowId: number | null;
|
|
60
|
+
appId: number;
|
|
61
|
+
appName: string;
|
|
62
|
+
appIcon: string;
|
|
47
63
|
alreadyExists: boolean;
|
|
48
64
|
}) => void;
|
|
49
65
|
"did-select-authorization": (data: {
|
|
@@ -87,6 +103,7 @@ interface UserConfig {
|
|
|
87
103
|
availableFlowsLabel?: string;
|
|
88
104
|
myFlowsLabel?: string;
|
|
89
105
|
hideWebhookUrlScreen?: boolean;
|
|
106
|
+
hideAppConnectionModal?: boolean;
|
|
90
107
|
customComponents?: {
|
|
91
108
|
flowCard?: (props: FlowCardProps) => VNode;
|
|
92
109
|
};
|
|
@@ -96,8 +113,10 @@ interface SDKConfig {
|
|
|
96
113
|
debug?: boolean;
|
|
97
114
|
integrationId?: number;
|
|
98
115
|
xIntegryConfig?: {
|
|
99
|
-
|
|
100
|
-
|
|
116
|
+
isAnonymous?: boolean;
|
|
117
|
+
appAuth?: {
|
|
118
|
+
apiKey?: string;
|
|
119
|
+
authId?: string;
|
|
101
120
|
extras?: Record<string, string | number>;
|
|
102
121
|
};
|
|
103
122
|
};
|
|
@@ -317,9 +336,10 @@ declare class IntegryJS {
|
|
|
317
336
|
* Render the template form we ship
|
|
318
337
|
* @param data
|
|
319
338
|
*/
|
|
320
|
-
renderAccountConnectionModal: (data
|
|
321
|
-
deploymentId?: string;
|
|
322
|
-
|
|
339
|
+
renderAccountConnectionModal: (data?: {
|
|
340
|
+
deploymentId?: string | undefined;
|
|
341
|
+
appId?: number | undefined;
|
|
342
|
+
} | undefined) => void;
|
|
323
343
|
/**
|
|
324
344
|
* Render the template form we ship
|
|
325
345
|
* @param templateId
|