@useparagon/connect 2.2.7 → 2.2.8-experimental-18633.1

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, InputSources, InstallFlowStage, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, KeyedSource, LoadCustomDropdownOptionsResult, ProxyRequestOptions, SerializedConnectInput, StartOptions, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions, UpdateWorkflowStateResponse, UserProvidedIntegrationConfig } 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 {
@@ -175,6 +175,9 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
175
175
  }): Promise<IntegrationInstallEvent | undefined>;
176
176
  _oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>;
177
177
  customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>;
178
+ /**
179
+ * Display the Paragon Connect modal
180
+ */
178
181
  _loadCustomDropdownOptions(key: string, cursor?: string | undefined, search?: string | undefined): LoadCustomDropdownOptionsResult;
179
182
  /**
180
183
  * Send a Connect API request. Automatically handles authorization and errors.
@@ -341,7 +344,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
341
344
  * @param userSettingsUpdate - A partial map of input IDs <> values to update the workflow's settings
342
345
  * @param settings - Optional object with selectedCredentialId or selectedConfigurationId
343
346
  * @returns Promise with the new user state and an array of errors, if any were found
344
- * @throws Error if the workflow ID is not found in the configuration
347
+ * @throws Error if the workflow is not enabled or if the integration is not found
345
348
  */
346
349
  updateWorkflowUserSettings(integration: string, workflowId: string, userSettingsUpdate: Record<string, any>, settings?: CredentialConfigOptions): Promise<{
347
350
  userState: AuthenticatedConnectUser;
@@ -381,6 +384,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
381
384
  nextPageCursor: string | null;
382
385
  }>;
383
386
  getDataSourceOptions(integrationName: string, action: string): Promise<import("./types").DataSource | undefined>;
387
+ getSourcesForInput(integrationName: string, action: string, input: SerializedConnectInput): InputSources | null;
384
388
  getAccountTypeOptions(integrationName: string): import("./types").AccountType[];
385
389
  getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
386
390
  getPostOptions(integrationName: string): IntegrationConnectInput[];