@useparagon/connect 2.2.4-experimental-15312.2 → 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 +19 -9
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/types/sdk.d.ts +17 -5
- package/package.json +1 -1
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,6 +51,7 @@ 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;
|
|
@@ -132,8 +133,6 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
132
133
|
*/
|
|
133
134
|
logout(): void;
|
|
134
135
|
private removeOptionDuplicates;
|
|
135
|
-
private applyCustomDropdownOptions;
|
|
136
|
-
private applyFieldMappingOptions;
|
|
137
136
|
startOAuthFlow(action: string, apiInstallationOptions: InstallOptions & CredentialConfigOptions & {
|
|
138
137
|
endUserSuppliedValues?: Record<string, ConnectInputValue>;
|
|
139
138
|
userProvidedIntegrationConfig?: UserProvidedIntegrationConfig;
|
|
@@ -173,8 +172,6 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
173
172
|
}): Promise<IntegrationInstallEvent | undefined>;
|
|
174
173
|
_oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>;
|
|
175
174
|
customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>;
|
|
176
|
-
customDropdownOptionsStatic: Record<string, CustomDropdownField[]>;
|
|
177
|
-
fieldMappingOptionsStatic: Record<string, Record<string, DynamicMappingField[] | DynamicMappingOptions>>;
|
|
178
175
|
/**
|
|
179
176
|
* Display the Paragon Connect modal
|
|
180
177
|
*/
|
|
@@ -382,10 +379,23 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
382
379
|
nextPageCursor: string | null;
|
|
383
380
|
}>;
|
|
384
381
|
getDataSourceOptions(integrationName: string, action: string): Promise<import("./types").DataSource | undefined>;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
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;
|
|
389
399
|
getAccountTypeOptions(integrationName: string): import("./types").AccountType[];
|
|
390
400
|
getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
|
|
391
401
|
getPostOptions(integrationName: string): IntegrationConnectInput[];
|