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