@useparagon/connect 2.0.6 → 2.0.7-experimental.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.
@@ -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,11 @@ 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 mapObjectFields
144
+ */
145
+ private setDynamicFieldMappingLoaders;
137
146
  /**
138
147
  * Display the Paragon Connect modal
139
148
  */
@@ -357,6 +366,14 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
357
366
  getAccountTypeOptions(integrationName: string): AccountType[];
358
367
  getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
359
368
  getPostOptions(integrationName: string): IntegrationConnectInput[];
369
+ /**
370
+ * Load dynamic field mapping options (object types or integration fields)
371
+ */
372
+ _loadDynamicFieldMappingOptions(action: string, type: DynamicFieldMappingLoaderType, mappingKey: string, params?: {
373
+ objectType?: string;
374
+ cursor?: string;
375
+ search?: string;
376
+ }): Promise<DynamicFieldMappingOptionsResult>;
360
377
  }
361
378
  export declare class InstallFlow {
362
379
  private readonly paragon;