@integry/sdk 4.0.0-beta.60 → 4.0.0-beta.62

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.
@@ -322,15 +322,7 @@ interface TemplateField {
322
322
  app_user_data?: {
323
323
  app_user: number;
324
324
  id: number;
325
- value: string
326
- /**
327
- * Render the template form we ship
328
- * @param data
329
- */
330
- | /**
331
- * Render the template form we ship
332
- * @param data
333
- */ number;
325
+ value: string | number;
334
326
  is_changed: boolean;
335
327
  changed_dynamic_fields: string;
336
328
  }[];
@@ -418,6 +410,34 @@ interface Instance {
418
410
  first_error_received_at: string;
419
411
  usage_limit_reached_at: string;
420
412
  }
413
+ interface MultipurposeFieldType {
414
+ activityOutputData: NestedObject;
415
+ title: string;
416
+ description: string;
417
+ placeholder: string;
418
+ value?: string;
419
+ regex?: string | null;
420
+ regexErrorMessage?: string | null;
421
+ isRequired?: boolean;
422
+ showStepValidation?: boolean;
423
+ onChange?: (val: string, passesRegexTest?: boolean) => void;
424
+ isReadOnly?: boolean;
425
+ isChanged?: boolean;
426
+ className?: string;
427
+ containerClass: string;
428
+ type: string;
429
+ key: string;
430
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
431
+ apiHandler?: any;
432
+ isSearchable: boolean;
433
+ endpointUrl: string;
434
+ isDynamic: boolean;
435
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
436
+ endpointData?: any;
437
+ skipOptionFetch: boolean;
438
+ isMappable?: boolean;
439
+ accountConnected?: boolean;
440
+ }
421
441
  /**
422
442
  *
423
443
  * @param key Key to sign hash
@@ -526,6 +546,10 @@ declare class IntegryJS {
526
546
  */
527
547
  renderMarketplace: (marketplaceConfig: MarketplaceConfig) => void;
528
548
  renderAppFlows: (appFlowConfig: InitConfig) => void;
549
+ renderMultipurposeField: ({ containerId, multipurposeFieldProps, }: {
550
+ containerId: string;
551
+ multipurposeFieldProps: MultipurposeFieldType;
552
+ }) => void;
529
553
  verifyAuthConfig: () => Promise<{
530
554
  config_verified: boolean;
531
555
  } | null>;