@integry/sdk 4.3.48 → 4.3.50

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.
@@ -476,6 +476,11 @@ interface MultipurposeFieldType {
476
476
  fieldId?: string;
477
477
  enableTagify?: boolean;
478
478
  }
479
+ interface ConnectedAccount {
480
+ id: string;
481
+ display_name: string;
482
+ modified_at: string;
483
+ }
479
484
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
480
485
  type EventSet = Record<string, (...args: any[]) => void>;
481
486
  interface EventEmitterType<ESet extends EventSet> {
@@ -547,13 +552,17 @@ declare class IntegryJS {
547
552
  versionId?: number;
548
553
  viewStyle?: string;
549
554
  }) => void;
550
- renderFunctionUI: (functionName: string, functionArguments: any, connectedAccountId: string) => Promise<Record<any, any>>;
551
- invokeFunction: (functionDetails: any) => Promise<Record<any, any>>;
555
+ showFunctionUI: (functionName: string, functionArguments: {
556
+ [key: string]: any;
557
+ }, connectedAccountId: string) => Promise<Record<any, any>>;
558
+ invokeFunction: (functionName: string, params: {
559
+ [key: string]: any;
560
+ }, connectedAccountId: string) => Promise<Record<any, any>>;
552
561
  connectApp: (appName: string) => Promise<string>;
553
562
  disconnectApp: (appName: string, connectedAccountId?: string | undefined) => Promise<any>;
554
563
  isAppConnected: (appName: string) => Promise<any>;
555
- getFunctionSignature: (functionName: string) => Promise<any>;
556
- getConnectedAccounts: (appName: string) => Promise<string[] | null>;
564
+ getFunction: (functionName: string) => Promise<any>;
565
+ getConnectedAccounts: (appName: string) => Promise<ConnectedAccount[] | null>;
557
566
  /**
558
567
  * Render the template form we ship
559
568
  * @param data
@@ -602,5 +611,8 @@ declare class IntegryJS {
602
611
  * Destroy SDK instance and cleanup store
603
612
  */
604
613
  destroy: () => void;
614
+ private getMethod;
615
+ private getBaseAPIUrl;
616
+ private getHeaders;
605
617
  }
606
618
  export { IntegryJS as default };