@integry/sdk 3.3.1-beta.9 → 3.3.2-beta

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.
@@ -131,12 +131,24 @@ type Authorization = {
131
131
  user_identity: string;
132
132
  };
133
133
  type FlowCardProps = {
134
+ id: number | string;
134
135
  imgUrl: string;
135
136
  name: string;
136
137
  description: string;
137
138
  tags: string;
138
139
  layout: TemplateListingRenderModes;
139
140
  handleClick: () => void;
141
+ apiHandler?: any;
142
+ app?: {
143
+ id: number;
144
+ };
145
+ onEdit?: (instance: Instance) => void;
146
+ onDelete?: (instance: Instance) => void;
147
+ onEditName?: ({ instance, newName }: {
148
+ instance: Instance;
149
+ newName: string;
150
+ }) => void;
151
+ dFlag?: string;
140
152
  };
141
153
  interface UserConfig {
142
154
  availableFlowsLabel?: string;
@@ -176,6 +188,7 @@ interface ConfigWithObject extends SDKConfig {
176
188
  marketplaceId?: string;
177
189
  appId?: number;
178
190
  showApps?: boolean;
191
+ showTemplates?: boolean;
179
192
  }
180
193
  interface ConfigWithUrlParams extends SDKConfig {
181
194
  useUrlParams?: boolean;
@@ -301,6 +314,7 @@ interface InitConfig {
301
314
  renderMode: TemplateFormRenderModes;
302
315
  appId?: number;
303
316
  showApps?: boolean;
317
+ showTemplates?: boolean;
304
318
  }
305
319
  interface MarketplaceConfig {
306
320
  containerId: string;
@@ -328,6 +342,18 @@ interface PreviewPayload {
328
342
  metadata: PreviewMetadata;
329
343
  previewContainerId: string;
330
344
  }
345
+ // interface for app flows
346
+ interface Instance {
347
+ status: string;
348
+ last_run_status: string;
349
+ id: number;
350
+ last_run_start_time: string;
351
+ name: string;
352
+ error_app_name: string;
353
+ error_code: number;
354
+ first_error_received_at: string;
355
+ usage_limit_reached_at: string;
356
+ }
331
357
  /**
332
358
  *
333
359
  * @param key Key to sign hash