@useparagon/connect 2.2.2-experimental.3 → 2.2.3-experimental.2

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, ProxyRequestOptions, StartOptions, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions, UpdateWorkflowStateResponse, UserProvidedIntegrationConfig } 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 {
@@ -133,9 +133,8 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
133
133
  private removeOptionDuplicates;
134
134
  startOAuthFlow(action: string, apiInstallationOptions: InstallOptions & CredentialConfigOptions & {
135
135
  endUserSuppliedValues?: Record<string, ConnectInputValue>;
136
- userProvidedIntegrationConfig?: UserProvidedIntegrationConfig;
137
136
  }, options?: {
138
- onSuccess?: (installationEvent: IntegrationInstallEvent) => void;
137
+ onSuccess?: (connectCredentialId: string) => void;
139
138
  onError?: (error: unknown) => void;
140
139
  oauthTimeout?: number;
141
140
  }): void;
@@ -165,9 +164,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
165
164
  */
166
165
  _getIntegration(integrationId: string): IConnectIntegrationWithCredentialInfo | undefined;
167
166
  getIntegrationBySlug(integrationName: string): IConnectIntegrationWithCredentialInfo;
168
- _oauthCallback(oauthResponse: OauthCallbackResponse, credentialId?: string, options?: {
169
- installOptions?: InstallOptions;
170
- }): Promise<IntegrationInstallEvent | undefined>;
167
+ _oauthCallback(oauthResponse: OauthCallbackResponse, credentialId?: string): Promise<void>;
171
168
  _oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>;
172
169
  customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>;
173
170
  /**
@@ -400,7 +397,6 @@ export declare class InstallFlow {
400
397
  constructor(paragon: ConnectSDK);
401
398
  start(integrationName: string, startOptions?: StartOptions): void;
402
399
  cancel(): Promise<void>;
403
- private getInstallOptions;
404
400
  private asyncStart;
405
401
  private handleError;
406
402
  private handleNext;