@integry/sdk 3.1.0-alpha.1 → 3.1.0

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.
@@ -23,6 +23,11 @@ type IntegrySDKEvents = {
23
23
  templateId: number;
24
24
  status: string;
25
25
  callbackUrl: string | null;
26
+ authorizations: {
27
+ authorizationId: number;
28
+ userIdentity: string;
29
+ isBrandingAppAuth: boolean;
30
+ }[];
26
31
  }) => void;
27
32
  "did-load-preview": (data: {
28
33
  templateId: number;
@@ -33,6 +38,22 @@ type IntegrySDKEvents = {
33
38
  stepId: number;
34
39
  stepType: "AUTH" | "CONFIGURATION" | "SECTION" | "CONFIRMATION";
35
40
  }) => void;
41
+ "did-add-authorization": (data: {
42
+ identity: string;
43
+ authorizationId: number;
44
+ flowId: number;
45
+ appId: number;
46
+ alreadyExists: boolean;
47
+ }) => void;
48
+ "did-select-authorization": (data: {
49
+ authorizationId: number;
50
+ }) => void;
51
+ "did-remove-authorization": (data: {
52
+ authorizationId: number;
53
+ }) => void;
54
+ "did-begin-remove-authorization": (data: {
55
+ authorizationId: number;
56
+ }) => void;
36
57
  };
37
58
  declare enum TemplateFormRenderModes {
38
59
  MODAL = "MODAL",
@@ -64,6 +85,7 @@ type FlowCardProps = {
64
85
  interface UserConfig {
65
86
  availableFlowsLabel?: string;
66
87
  myFlowsLabel?: string;
88
+ hideWebhookUrlScreen?: boolean;
67
89
  customComponents?: {
68
90
  flowCard?: (props: FlowCardProps) => VNode;
69
91
  };
@@ -139,6 +161,7 @@ interface TemplateField {
139
161
  weight: number;
140
162
  is_required: boolean;
141
163
  child_fields: string | null;
164
+ placeholder: string | null;
142
165
  is_dynamic: boolean;
143
166
  data_src: string | null;
144
167
  data_src_endpoint: number | null;
@@ -164,6 +187,13 @@ interface TemplateField {
164
187
  regex: string | null;
165
188
  regex_msg: string | null;
166
189
  is_visible: boolean;
190
+ app_user_data?: {
191
+ app_user: number;
192
+ id: number;
193
+ value: string | number;
194
+ }[];
195
+ added_in_mapping?: boolean;
196
+ field_mapping_source?: string;
167
197
  }
168
198
  interface TemplateStep {
169
199
  id: number;
@@ -173,7 +203,7 @@ interface TemplateStep {
173
203
  activity: Activity;
174
204
  authorization_type: AuthorizationType;
175
205
  template_fields: TemplateField[];
176
- // step_instance: unknown | null;
206
+ step_instance?: number | null;
177
207
  allow_multiple_authorizations: boolean;
178
208
  step_authorization: number | null;
179
209
  button_text: string | null;