@useparagon/connect 2.0.6 → 2.0.7-experimental.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 { AccountType, AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDefaultInput, EnumInputValue, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, KeyedSource, LoadCustomDropdownOptionsResult, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions, UpdateWorkflowStateResponse } from './types';
|
|
9
|
+
import { AccountType, AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, EnumInputValue, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, KeyedSource, LoadCustomDropdownOptionsResult, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions, UpdateWorkflowStateResponse } 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 {
|
|
@@ -46,6 +46,10 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
46
46
|
* so that we will be able to know whether style is added in body or not
|
|
47
47
|
*/
|
|
48
48
|
private originalBodyOverflow;
|
|
49
|
+
/**
|
|
50
|
+
* Dynamic field mapping loaders for handling dynamic object types and integration fields
|
|
51
|
+
*/
|
|
52
|
+
private dynamicFieldMappingLoaders;
|
|
49
53
|
installFlow: InstallFlow;
|
|
50
54
|
constructor(environmentsOrHost?: ConnectSdkEnvironments | string, flags?: {
|
|
51
55
|
skipBootstrapWithLastKnownState?: boolean;
|
|
@@ -134,6 +138,12 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
134
138
|
* see PARA-1505
|
|
135
139
|
*/
|
|
136
140
|
private getAccountName;
|
|
141
|
+
/**
|
|
142
|
+
* Set dynamic field mapping loaders for the given action
|
|
143
|
+
* @param action - The action to set dynamic field mapping loaders for
|
|
144
|
+
* @param mapObjectFields
|
|
145
|
+
*/
|
|
146
|
+
private setDynamicFieldMappingLoaders;
|
|
137
147
|
/**
|
|
138
148
|
* Display the Paragon Connect modal
|
|
139
149
|
*/
|
|
@@ -357,6 +367,14 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
357
367
|
getAccountTypeOptions(integrationName: string): AccountType[];
|
|
358
368
|
getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
|
|
359
369
|
getPostOptions(integrationName: string): IntegrationConnectInput[];
|
|
370
|
+
/**
|
|
371
|
+
* fetch dynamic field mapping options (object types or integration fields)
|
|
372
|
+
*/
|
|
373
|
+
_fetchBYOFieldMappingOptions(action: string, mappingType: DynamicFieldMappingLoaderType, mappingKey: string, params?: {
|
|
374
|
+
objectType?: string;
|
|
375
|
+
cursor?: string;
|
|
376
|
+
search?: string;
|
|
377
|
+
}): Promise<DynamicFieldMappingOptionsResult>;
|
|
360
378
|
}
|
|
361
379
|
export declare class InstallFlow {
|
|
362
380
|
private readonly paragon;
|