@useparagon/connect 2.2.4-experimental-15311.1 → 2.2.4-experimental-15312.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.
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 {
|
|
@@ -56,6 +56,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
56
56
|
skipBootstrapWithLastKnownState?: boolean;
|
|
57
57
|
});
|
|
58
58
|
setHeadless(headless: boolean): void;
|
|
59
|
+
getAssetUrl(name: string): string;
|
|
59
60
|
/**
|
|
60
61
|
* post message handler
|
|
61
62
|
* @param event
|
|
@@ -132,6 +133,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
132
133
|
logout(): void;
|
|
133
134
|
private removeOptionDuplicates;
|
|
134
135
|
private applyCustomDropdownOptions;
|
|
136
|
+
private applyFieldMappingOptions;
|
|
135
137
|
startOAuthFlow(action: string, apiInstallationOptions: InstallOptions & CredentialConfigOptions & {
|
|
136
138
|
endUserSuppliedValues?: Record<string, ConnectInputValue>;
|
|
137
139
|
userProvidedIntegrationConfig?: UserProvidedIntegrationConfig;
|
|
@@ -172,6 +174,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
172
174
|
_oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>;
|
|
173
175
|
customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>;
|
|
174
176
|
customDropdownOptionsStatic: Record<string, CustomDropdownField[]>;
|
|
177
|
+
fieldMappingOptionsStatic: Record<string, Record<string, DynamicMappingField[] | DynamicMappingOptions>>;
|
|
175
178
|
/**
|
|
176
179
|
* Display the Paragon Connect modal
|
|
177
180
|
*/
|
|
@@ -381,6 +384,8 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
381
384
|
getDataSourceOptions(integrationName: string, action: string): Promise<import("./types").DataSource | undefined>;
|
|
382
385
|
setCustomDropdownOptions(action: string, dropdowns: Record<string, CustomDropdownField[] | CustomDropdownOptions>): ModalConfig | undefined;
|
|
383
386
|
getCustomDropdownOptions(action: string, fieldKey?: string): CustomDropdownOptionResult[];
|
|
387
|
+
setFieldMappingOptions(action: string, fieldMappings: Record<string, FieldMappingConfig>): ModalConfig | undefined;
|
|
388
|
+
getFieldMappingOptions(action: string, mappingKey?: string): FieldMappingOptionResult[];
|
|
384
389
|
getAccountTypeOptions(integrationName: string): import("./types").AccountType[];
|
|
385
390
|
getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
|
|
386
391
|
getPostOptions(integrationName: string): IntegrationConnectInput[];
|
|
@@ -401,6 +406,7 @@ export declare class InstallFlow {
|
|
|
401
406
|
private preOptionsValue;
|
|
402
407
|
private postOptionsValue;
|
|
403
408
|
private credentialId;
|
|
409
|
+
private hasFinishedInstruction;
|
|
404
410
|
constructor(paragon: ConnectSDK);
|
|
405
411
|
start(integrationName: string, startOptions?: StartOptions): void;
|
|
406
412
|
cancel(): Promise<void>;
|
|
@@ -413,13 +419,18 @@ export declare class InstallFlow {
|
|
|
413
419
|
private getIntegrationName;
|
|
414
420
|
private getSelectedAccountTypeOption;
|
|
415
421
|
private requiresAccountType;
|
|
422
|
+
private getIntegrationInstructionMetadata;
|
|
423
|
+
private getSalesforceInstructionMetadata;
|
|
424
|
+
private requiresInstruction;
|
|
416
425
|
private requiresPreOptions;
|
|
417
426
|
private requiresPostOptions;
|
|
427
|
+
private requiresOAuth;
|
|
418
428
|
/** Starts an OAuth authentication flow through a window Pop-up */
|
|
419
429
|
private handleOAuth;
|
|
420
430
|
setAccountType(accountType: string): Promise<void>;
|
|
421
431
|
setPreOptions(options: Record<string, ConnectInputValue>): Promise<void>;
|
|
422
432
|
setPostOptions(options: Record<string, ConnectInputValue>): Promise<void>;
|
|
433
|
+
private setHasFinishedInstruction;
|
|
423
434
|
getAccountTypeValue(): string | null;
|
|
424
435
|
getPreOptionsValue(): Record<string, ConnectInputValue> | null;
|
|
425
436
|
getPostOptionsValue(): Record<string, ConnectInputValue> | null;
|