@useparagon/connect 2.1.2-experimental.4 → 2.1.2-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.
@@ -6,7 +6,7 @@ import { PersonaMeta } from './entities/persona.interface';
6
6
  import { ExternalFilePicker } from './file-picker/types';
7
7
  import SDKEventEmitter from './SDKEventEmitter';
8
8
  import { ConnectSdkEnvironments } from './server.types';
9
- import { AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, EnumInputValue, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallFlowStage, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, KeyedSource, LoadCustomDropdownOptionsResult, StartOptions, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions, UpdateWorkflowStateResponse } from './types';
9
+ import { AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, EnumInputValue, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallFlowStage, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, KeyedSource, LoadCustomDropdownOptionsResult, ProxyRequestOptions, StartOptions, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions, UpdateWorkflowStateResponse } from './types';
10
10
  export declare const PARAGON_OVERFLOW_EMPTY_VALUE = "PARAGON_OVERFLOW_EMPTY_VALUE";
11
11
  export { ExternalFilePicker };
12
12
  export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
@@ -186,12 +186,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
186
186
  * @param init
187
187
  * @returns api request response
188
188
  */
189
- request<TResponse>(action: string, path: string, init: {
190
- selectedCredentialId?: string;
191
- method: RequestInit['method'];
192
- body: RequestInit['body'] | object;
193
- headers: RequestInit['headers'];
194
- }): Promise<TResponse | undefined>;
189
+ request<TResponse>(action: string, path: string, init: ProxyRequestOptions): Promise<TResponse | undefined>;
195
190
  event(name: string, payload: Record<string, unknown>, options?: CredentialConfigOptions): Promise<void>;
196
191
  /**
197
192
  * @summary this will be called to close the modal
@@ -382,9 +377,9 @@ export declare class InstallFlow {
382
377
  private readonly paragon;
383
378
  private startOptions;
384
379
  private integrationName;
385
- private accountType;
386
- private preOptions;
387
- private postOptions;
380
+ private accountTypeValue;
381
+ private preOptionsValue;
382
+ private postOptionsValue;
388
383
  private credentialId;
389
384
  constructor(paragon: ConnectSDK);
390
385
  start(integrationName: string, startOptions?: StartOptions): void;
@@ -398,11 +393,13 @@ export declare class InstallFlow {
398
393
  private requiresAccountType;
399
394
  private requiresPreOptions;
400
395
  private requiresPostOptions;
396
+ /** Starts an OAuth authentication flow through a window Pop-up */
397
+ private handleOAuth;
401
398
  setAccountType(accountType: string): Promise<void>;
402
399
  setPreOptions(options: Record<string, ConnectInputValue>): Promise<void>;
403
400
  setPostOptions(options: Record<string, ConnectInputValue>): Promise<void>;
404
- getAccountType(): string | null;
405
- getPreOptions(): Record<string, ConnectInputValue> | null;
406
- getPostOptions(): Record<string, ConnectInputValue> | null;
401
+ getAccountTypeValue(): string | null;
402
+ getPreOptionsValue(): Record<string, ConnectInputValue> | null;
403
+ getPostOptionsValue(): Record<string, ConnectInputValue> | null;
407
404
  next(): InstallFlowStage;
408
405
  }