@useparagon/connect 2.0.1-experimental.1 → 2.0.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.
@@ -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,7 +234,6 @@ 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
238
237
  */
239
238
  private fetchUserData;
240
239
  /**
@@ -347,22 +346,13 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
347
346
  action: string;
348
347
  search?: string;
349
348
  cursor?: string | number | false;
350
- parameters: KeyedSource<DataType.ANY>[];
349
+ parameters?: KeyedSource<DataType.ANY>[];
351
350
  }): Promise<{
352
- data: {
353
- value: string;
354
- label: string;
355
- }[];
356
- nestedData: {
357
- title: string;
358
- items: {
359
- value: string;
360
- label: string;
361
- }[];
362
- }[];
351
+ data: EnumInputValue<any>[];
352
+ nestedData: DynamicDefaultInput[];
363
353
  nextPageCursor: string | null;
364
354
  }>;
365
- getDataSourceOptions(integrationName: string, action: string): Promise<ComboInputDataSource>;
355
+ getDataSourceOptions(integrationName: string, action: string): Promise<import("./types").DataSource | undefined>;
366
356
  getAccountTypeOptions(integrationName: string): AccountType[];
367
357
  getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
368
358
  getPostOptions(integrationName: string): IntegrationConnectInput[];