@integry/sdk 3.3.1-beta.7 → 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.
@@ -130,12 +130,24 @@ type Authorization = {
130
130
  user_identity: string;
131
131
  };
132
132
  type FlowCardProps = {
133
+ id: number | string;
133
134
  imgUrl: string;
134
135
  name: string;
135
136
  description: string;
136
137
  tags: string;
137
138
  layout: TemplateListingRenderModes;
138
139
  handleClick: () => void;
140
+ apiHandler?: any;
141
+ app?: {
142
+ id: number;
143
+ };
144
+ onEdit?: (instance: Instance) => void;
145
+ onDelete?: (instance: Instance) => void;
146
+ onEditName?: ({ instance, newName }: {
147
+ instance: Instance;
148
+ newName: string;
149
+ }) => void;
150
+ dFlag?: string;
139
151
  };
140
152
  interface UserConfig {
141
153
  availableFlowsLabel?: string;
@@ -175,6 +187,7 @@ interface ConfigWithObject extends SDKConfig {
175
187
  marketplaceId?: string;
176
188
  appId?: number;
177
189
  showApps?: boolean;
190
+ showTemplates?: boolean;
178
191
  }
179
192
  interface ConfigWithUrlParams extends SDKConfig {
180
193
  useUrlParams?: boolean;
@@ -300,6 +313,7 @@ interface InitConfig {
300
313
  renderMode: TemplateFormRenderModes;
301
314
  appId?: number;
302
315
  showApps?: boolean;
316
+ showTemplates?: boolean;
303
317
  }
304
318
  interface MarketplaceConfig {
305
319
  containerId: string;
@@ -327,6 +341,18 @@ interface PreviewPayload {
327
341
  metadata: PreviewMetadata;
328
342
  previewContainerId: string;
329
343
  }
344
+ // interface for app flows
345
+ interface Instance {
346
+ status: string;
347
+ last_run_status: string;
348
+ id: number;
349
+ last_run_start_time: string;
350
+ name: string;
351
+ error_app_name: string;
352
+ error_code: number;
353
+ first_error_received_at: string;
354
+ usage_limit_reached_at: string;
355
+ }
330
356
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
331
357
  type EventSet = Record<string, (...args: any[]) => void>;
332
358
  interface EventEmitterType<ESet extends EventSet> {