@useparagon/connect 2.2.4-experimental-15311.1 → 2.2.4-experimental-15312.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.
package/dist/src/ConnectSDK.d.ts
CHANGED
|
@@ -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, CustomDropdownField, CustomDropdownOptionResult, CustomDropdownOptions, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, EnumInputValue, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallFlowStage, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, KeyedSource, LoadCustomDropdownOptionsResult, ModalConfig, ProxyRequestOptions, StartOptions, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions, UpdateWorkflowStateResponse, UserProvidedIntegrationConfig } from './types';
|
|
9
|
+
import { AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, CustomDropdownField, CustomDropdownOptionResult, CustomDropdownOptions, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, DynamicMappingField, DynamicMappingOptions, EnumInputValue, EventInfo, FieldMappingConfig, FieldMappingOptionResult, GetIntegrationAccountOptions, IConnectSDK, InstallFlowStage, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, KeyedSource, LoadCustomDropdownOptionsResult, ModalConfig, ProxyRequestOptions, 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 {
|
|
@@ -132,6 +132,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
132
132
|
logout(): void;
|
|
133
133
|
private removeOptionDuplicates;
|
|
134
134
|
private applyCustomDropdownOptions;
|
|
135
|
+
private applyFieldMappingOptions;
|
|
135
136
|
startOAuthFlow(action: string, apiInstallationOptions: InstallOptions & CredentialConfigOptions & {
|
|
136
137
|
endUserSuppliedValues?: Record<string, ConnectInputValue>;
|
|
137
138
|
userProvidedIntegrationConfig?: UserProvidedIntegrationConfig;
|
|
@@ -172,6 +173,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
172
173
|
_oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>;
|
|
173
174
|
customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>;
|
|
174
175
|
customDropdownOptionsStatic: Record<string, CustomDropdownField[]>;
|
|
176
|
+
fieldMappingOptionsStatic: Record<string, Record<string, DynamicMappingField[] | DynamicMappingOptions>>;
|
|
175
177
|
/**
|
|
176
178
|
* Display the Paragon Connect modal
|
|
177
179
|
*/
|
|
@@ -381,6 +383,8 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
381
383
|
getDataSourceOptions(integrationName: string, action: string): Promise<import("./types").DataSource | undefined>;
|
|
382
384
|
setCustomDropdownOptions(action: string, dropdowns: Record<string, CustomDropdownField[] | CustomDropdownOptions>): ModalConfig | undefined;
|
|
383
385
|
getCustomDropdownOptions(action: string, fieldKey?: string): CustomDropdownOptionResult[];
|
|
386
|
+
setFieldMappingOptions(action: string, fieldMappings: Record<string, FieldMappingConfig>): ModalConfig | undefined;
|
|
387
|
+
getFieldMappingOptions(action: string, mappingKey?: string): FieldMappingOptionResult[];
|
|
384
388
|
getAccountTypeOptions(integrationName: string): import("./types").AccountType[];
|
|
385
389
|
getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
|
|
386
390
|
getPostOptions(integrationName: string): IntegrationConnectInput[];
|