@useparagon/connect 2.0.1 → 2.0.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.
@@ -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, ComboInputDataSource, CompleteInstallOptions, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, 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, 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 {
@@ -234,6 +234,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
234
234
  private updateLocalState;
235
235
  /**
236
236
  * gets the user data from api `/sdk/me`
237
+ * userMeta header is passed to support user metadata upsert based on authentication options
237
238
  */
238
239
  private fetchUserData;
239
240
  /**
@@ -348,20 +349,11 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
348
349
  cursor?: string | number | false;
349
350
  parameters?: KeyedSource<DataType.ANY>[];
350
351
  }): Promise<{
351
- data: {
352
- value: string;
353
- label: string;
354
- }[];
355
- nestedData: {
356
- title: string;
357
- items: {
358
- value: string;
359
- label: string;
360
- }[];
361
- }[];
352
+ data: EnumInputValue<any>[];
353
+ nestedData: DynamicDefaultInput[];
362
354
  nextPageCursor: string | null;
363
355
  }>;
364
- getDataSourceOptions(integrationName: string, action: string): Promise<ComboInputDataSource>;
356
+ getDataSourceOptions(integrationName: string, action: string): Promise<import("./types").DataSource | undefined>;
365
357
  getAccountTypeOptions(integrationName: string): AccountType[];
366
358
  getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
367
359
  getPostOptions(integrationName: string): IntegrationConnectInput[];