@useparagon/connect 2.2.4-experimental.1 → 2.2.4
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 +5 -21
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/types/connect.d.ts +1 -16
- package/dist/src/types/sdk.d.ts +9 -36
- 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,
|
|
9
|
+
import { AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, EnumInputValue, EventInfo, 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,7 +51,6 @@ 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;
|
|
55
54
|
installFlow: InstallFlow;
|
|
56
55
|
constructor(environmentsOrHost?: ConnectSdkEnvironments | string, flags?: {
|
|
57
56
|
skipBootstrapWithLastKnownState?: boolean;
|
|
@@ -319,7 +318,8 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
319
318
|
* @returns
|
|
320
319
|
*/
|
|
321
320
|
getIntegrationConfig(integration: string): IntegrationConfig;
|
|
322
|
-
private
|
|
321
|
+
private getCredentialPair;
|
|
322
|
+
private updateConfig;
|
|
323
323
|
/**
|
|
324
324
|
* Updates stored User Settings for an integration or workflow.
|
|
325
325
|
*
|
|
@@ -367,35 +367,19 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
367
367
|
* @param parameters - Optional array of parameters to be used in the request.
|
|
368
368
|
* @returns A promise that resolves with the field options or logs an error if the request fails.
|
|
369
369
|
*/
|
|
370
|
-
getFieldOptions({ integration, action, search, cursor, parameters, }: {
|
|
370
|
+
getFieldOptions({ integration, action, search, cursor, parameters, selectedCredentialId, }: {
|
|
371
371
|
integration: string;
|
|
372
372
|
action: string;
|
|
373
373
|
search?: string;
|
|
374
374
|
cursor?: string | number | false;
|
|
375
375
|
parameters?: KeyedSource<DataType.ANY>[];
|
|
376
|
+
selectedCredentialId?: string;
|
|
376
377
|
}): Promise<{
|
|
377
378
|
data: EnumInputValue<any>[];
|
|
378
379
|
nestedData: DynamicDefaultInput[];
|
|
379
380
|
nextPageCursor: string | null;
|
|
380
381
|
}>;
|
|
381
382
|
getDataSourceOptions(integrationName: string, action: string): Promise<import("./types").DataSource | undefined>;
|
|
382
|
-
private getCredentialPair;
|
|
383
|
-
private validateAndFilterCustomDropdownOptions;
|
|
384
|
-
private setCustomDropdownOptions;
|
|
385
|
-
getCustomDropdownOptions(action: string, fieldKey?: string, options?: {
|
|
386
|
-
selectedCredentialId: string;
|
|
387
|
-
selectedConfigurationId?: string;
|
|
388
|
-
}): Record<string, CustomDropdownField[] | CustomDropdownOptions> | CustomDropdownField[] | CustomDropdownOptions;
|
|
389
|
-
private validateAndFilterFieldMappingOptions;
|
|
390
|
-
private setFieldMappingOptions;
|
|
391
|
-
getFieldMappingOptions(action: string, mappingKey?: string, options?: {
|
|
392
|
-
selectedCredentialId: string;
|
|
393
|
-
selectedConfigurationId?: string;
|
|
394
|
-
}): Record<string, FieldMappingConfig> | FieldMappingConfig;
|
|
395
|
-
setDataSources(action: string, dropdowns?: Record<string, CustomDropdownField[] | CustomDropdownOptions>, fieldMappings?: Record<string, FieldMappingConfig>, options?: {
|
|
396
|
-
selectedCredentialId: string;
|
|
397
|
-
selectedConfigurationId?: string;
|
|
398
|
-
}): void;
|
|
399
383
|
getAccountTypeOptions(integrationName: string): import("./types").AccountType[];
|
|
400
384
|
getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
|
|
401
385
|
getPostOptions(integrationName: string): IntegrationConnectInput[];
|