@useparagon/connect 2.1.0-experimental.2.1 → 2.1.1-experimental-5

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,6 +130,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
130
130
  }, options?: {
131
131
  onSuccess?: (connectCredentialId: string) => void;
132
132
  onError?: (error: unknown) => void;
133
+ oauthTimeout?: number;
133
134
  }): void;
134
135
  private getIntegrationByName;
135
136
  private getSelectedMultipleAccountTypes;
@@ -191,9 +192,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
191
192
  body: RequestInit['body'] | object;
192
193
  headers: RequestInit['headers'];
193
194
  }): Promise<TResponse | undefined>;
194
- event(name: string, payload: Record<string, unknown>, options?: CredentialConfigOptions): Promise<{
195
- executionsTriggered: string[];
196
- } | void>;
195
+ event(name: string, payload: Record<string, unknown>, options?: CredentialConfigOptions): Promise<void>;
197
196
  /**
198
197
  * @summary this will be called to close the modal
199
198
  * @param forceClose is set when modal is closed by cross btn
@@ -383,9 +382,9 @@ export declare class InstallFlow {
383
382
  private readonly paragon;
384
383
  private startOptions;
385
384
  private integrationName;
386
- private accountType;
387
- private preOptions;
388
- private postOptions;
385
+ private accountTypeValue;
386
+ private preOptionsValue;
387
+ private postOptionsValue;
389
388
  private credentialId;
390
389
  constructor(paragon: ConnectSDK);
391
390
  start(integrationName: string, startOptions?: StartOptions): void;
@@ -399,11 +398,13 @@ export declare class InstallFlow {
399
398
  private requiresAccountType;
400
399
  private requiresPreOptions;
401
400
  private requiresPostOptions;
401
+ /** Starts an OAuth authentication flow through a window Pop-up */
402
+ private handleOAuth;
402
403
  setAccountType(accountType: string): Promise<void>;
403
404
  setPreOptions(options: Record<string, ConnectInputValue>): Promise<void>;
404
405
  setPostOptions(options: Record<string, ConnectInputValue>): Promise<void>;
405
- getAccountType(): string | null;
406
- getPreOptions(): Record<string, ConnectInputValue> | null;
407
- getPostOptions(): Record<string, ConnectInputValue> | null;
406
+ getAccountTypeValue(): string | null;
407
+ getPreOptionsValue(): Record<string, ConnectInputValue> | null;
408
+ getPostOptionsValue(): Record<string, ConnectInputValue> | null;
408
409
  next(): InstallFlowStage;
409
410
  }