@integry/sdk 3.1.1-beta.2 → 3.1.1-beta.5

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.
@@ -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
- templateId: number;
35
- templateTitle: string;
36
- templateDescription: string;
39
+ flowId: number;
40
+ flowTitle: string;
41
+ flowDescription: string;
37
42
  }) => void;
38
43
  "did-change-step": (data: {
39
44
  stepId: number;
@@ -317,9 +322,9 @@ declare class IntegryJS {
317
322
  * Render the template form we ship
318
323
  * @param data
319
324
  */
320
- renderAccountConnectionModal: (data: {
321
- deploymentId?: string;
322
- }) => void;
325
+ renderAccountConnectionModal: (data?: {
326
+ deploymentId?: string | undefined;
327
+ } | undefined) => void;
323
328
  /**
324
329
  * Render the template form we ship
325
330
  * @param templateId