@integry/sdk 3.1.1-beta.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.
@@ -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;
@@ -44,6 +49,8 @@ type IntegrySDKEvents = {
44
49
  authorizationId: number;
45
50
  flowId: number | null;
46
51
  appId: number;
52
+ appName: string;
53
+ appIcon: string;
47
54
  alreadyExists: boolean;
48
55
  }) => void;
49
56
  "did-select-authorization": (data: {
@@ -96,7 +103,8 @@ interface SDKConfig {
96
103
  debug?: boolean;
97
104
  integrationId?: number;
98
105
  xIntegryConfig?: {
99
- appAuth: {
106
+ isAnonymous?: boolean;
107
+ appAuth?: {
100
108
  apiKey: string;
101
109
  extras?: Record<string, string | number>;
102
110
  };
@@ -317,9 +325,9 @@ declare class IntegryJS {
317
325
  * Render the template form we ship
318
326
  * @param data
319
327
  */
320
- renderAccountConnectionModal: (data: {
321
- deploymentId?: string;
322
- }) => void;
328
+ renderAccountConnectionModal: (data?: {
329
+ deploymentId?: string | undefined;
330
+ } | undefined) => void;
323
331
  /**
324
332
  * Render the template form we ship
325
333
  * @param templateId