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