@useparagon/connect 2.2.4-experimental-15312.1 → 2.2.4-experimental-15312.3
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,
|
|
9
|
+
import { AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, CustomDropdownField, CustomDropdownOptions, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, EnumInputValue, EventInfo, FieldMappingConfig, GetIntegrationAccountOptions, IConnectSDK, InstallFlowStage, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, KeyedSource, LoadCustomDropdownOptionsResult, 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 {
|
|
@@ -51,11 +51,13 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
51
51
|
* Dynamic field mapping loaders for handling dynamic object types and integration fields
|
|
52
52
|
*/
|
|
53
53
|
private dynamicFieldMappingLoaders;
|
|
54
|
+
private loadedConfigsByCredential;
|
|
54
55
|
installFlow: InstallFlow;
|
|
55
56
|
constructor(environmentsOrHost?: ConnectSdkEnvironments | string, flags?: {
|
|
56
57
|
skipBootstrapWithLastKnownState?: boolean;
|
|
57
58
|
});
|
|
58
59
|
setHeadless(headless: boolean): void;
|
|
60
|
+
getAssetUrl(name: string): string;
|
|
59
61
|
/**
|
|
60
62
|
* post message handler
|
|
61
63
|
* @param event
|
|
@@ -131,8 +133,6 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
131
133
|
*/
|
|
132
134
|
logout(): void;
|
|
133
135
|
private removeOptionDuplicates;
|
|
134
|
-
private applyCustomDropdownOptions;
|
|
135
|
-
private applyFieldMappingOptions;
|
|
136
136
|
startOAuthFlow(action: string, apiInstallationOptions: InstallOptions & CredentialConfigOptions & {
|
|
137
137
|
endUserSuppliedValues?: Record<string, ConnectInputValue>;
|
|
138
138
|
userProvidedIntegrationConfig?: UserProvidedIntegrationConfig;
|
|
@@ -172,8 +172,6 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
172
172
|
}): Promise<IntegrationInstallEvent | undefined>;
|
|
173
173
|
_oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>;
|
|
174
174
|
customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>;
|
|
175
|
-
customDropdownOptionsStatic: Record<string, CustomDropdownField[]>;
|
|
176
|
-
fieldMappingOptionsStatic: Record<string, Record<string, DynamicMappingField[] | DynamicMappingOptions>>;
|
|
177
175
|
/**
|
|
178
176
|
* Display the Paragon Connect modal
|
|
179
177
|
*/
|
|
@@ -381,10 +379,23 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
381
379
|
nextPageCursor: string | null;
|
|
382
380
|
}>;
|
|
383
381
|
getDataSourceOptions(integrationName: string, action: string): Promise<import("./types").DataSource | undefined>;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
382
|
+
private getCredentialPair;
|
|
383
|
+
setCustomDropdownOptions(action: string, dropdowns: Record<string, CustomDropdownField[] | CustomDropdownOptions>, options?: {
|
|
384
|
+
selectedCredentialId: string;
|
|
385
|
+
selectedConfigurationId?: string;
|
|
386
|
+
}): void;
|
|
387
|
+
getCustomDropdownOptions(action: string, fieldKey?: string, options?: {
|
|
388
|
+
selectedCredentialId: string;
|
|
389
|
+
selectedConfigurationId?: string;
|
|
390
|
+
}): Record<string, CustomDropdownField[] | CustomDropdownOptions> | CustomDropdownField[] | CustomDropdownOptions;
|
|
391
|
+
setFieldMappingOptions(action: string, fieldMappings: Record<string, FieldMappingConfig>, options?: {
|
|
392
|
+
selectedCredentialId: string;
|
|
393
|
+
selectedConfigurationId?: string;
|
|
394
|
+
}): void;
|
|
395
|
+
getFieldMappingOptions(action: string, mappingKey?: string, options?: {
|
|
396
|
+
selectedCredentialId: string;
|
|
397
|
+
selectedConfigurationId?: string;
|
|
398
|
+
}): Record<string, FieldMappingConfig> | FieldMappingConfig;
|
|
388
399
|
getAccountTypeOptions(integrationName: string): import("./types").AccountType[];
|
|
389
400
|
getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
|
|
390
401
|
getPostOptions(integrationName: string): IntegrationConnectInput[];
|
|
@@ -405,6 +416,7 @@ export declare class InstallFlow {
|
|
|
405
416
|
private preOptionsValue;
|
|
406
417
|
private postOptionsValue;
|
|
407
418
|
private credentialId;
|
|
419
|
+
private hasFinishedInstruction;
|
|
408
420
|
constructor(paragon: ConnectSDK);
|
|
409
421
|
start(integrationName: string, startOptions?: StartOptions): void;
|
|
410
422
|
cancel(): Promise<void>;
|
|
@@ -417,13 +429,18 @@ export declare class InstallFlow {
|
|
|
417
429
|
private getIntegrationName;
|
|
418
430
|
private getSelectedAccountTypeOption;
|
|
419
431
|
private requiresAccountType;
|
|
432
|
+
private getIntegrationInstructionMetadata;
|
|
433
|
+
private getSalesforceInstructionMetadata;
|
|
434
|
+
private requiresInstruction;
|
|
420
435
|
private requiresPreOptions;
|
|
421
436
|
private requiresPostOptions;
|
|
437
|
+
private requiresOAuth;
|
|
422
438
|
/** Starts an OAuth authentication flow through a window Pop-up */
|
|
423
439
|
private handleOAuth;
|
|
424
440
|
setAccountType(accountType: string): Promise<void>;
|
|
425
441
|
setPreOptions(options: Record<string, ConnectInputValue>): Promise<void>;
|
|
426
442
|
setPostOptions(options: Record<string, ConnectInputValue>): Promise<void>;
|
|
443
|
+
private setHasFinishedInstruction;
|
|
427
444
|
getAccountTypeValue(): string | null;
|
|
428
445
|
getPreOptionsValue(): Record<string, ConnectInputValue> | null;
|
|
429
446
|
getPostOptionsValue(): Record<string, ConnectInputValue> | null;
|