@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.
@@ -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
- templateId: number;
34
- templateTitle: string;
35
- templateDescription: string;
38
+ flowId: number;
39
+ flowTitle: string;
40
+ flowDescription: string;
36
41
  }) => void;
37
42
  "did-change-step": (data: {
38
43
  stepId: number;
@@ -43,6 +48,17 @@ type IntegrySDKEvents = {
43
48
  authorizationId: number;
44
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: {
@@ -86,6 +102,7 @@ interface UserConfig {
86
102
  availableFlowsLabel?: string;
87
103
  myFlowsLabel?: string;
88
104
  hideWebhookUrlScreen?: boolean;
105
+ hideAppConnectionModal?: boolean;
89
106
  customComponents?: {
90
107
  flowCard?: (props: FlowCardProps) => VNode;
91
108
  };
@@ -95,8 +112,10 @@ interface SDKConfig {
95
112
  debug?: boolean;
96
113
  integrationId?: number;
97
114
  xIntegryConfig?: {
98
- appAuth: {
99
- apiKey: string;
115
+ isAnonymous?: boolean;
116
+ appAuth?: {
117
+ apiKey?: string;
118
+ authId?: string;
100
119
  extras?: Record<string, string | number>;
101
120
  };
102
121
  };
@@ -307,9 +326,10 @@ declare class IntegryJS {
307
326
  * Render the template form we ship
308
327
  * @param data
309
328
  */
310
- renderAccountConnectionModal: (data: {
311
- deploymentId?: string;
312
- }) => void;
329
+ renderAccountConnectionModal: (data?: {
330
+ deploymentId?: string | undefined;
331
+ appId?: number | undefined;
332
+ } | undefined) => void;
313
333
  /**
314
334
  * Render the template form we ship
315
335
  * @param templateId