@useparagon/connect 2.2.8-experimental-18633.2 → 2.2.8-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.
- package/dist/src/ConnectSDK.d.ts +5 -22
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/types/action.d.ts +4 -4
- package/dist/src/types/connect.d.ts +1 -20
- package/dist/src/types/sdk.d.ts +2 -28
- package/dist/src/utils/generic.d.ts +0 -6
- 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,10 +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 globalDropdownOptions;
|
|
55
|
-
private globalMapObjectFields;
|
|
56
|
-
private integrationSpecificDropdownOptions;
|
|
57
|
-
private integrationSpecificMapObjectFields;
|
|
58
54
|
installFlow: InstallFlow;
|
|
59
55
|
constructor(environmentsOrHost?: ConnectSdkEnvironments | string, flags?: {
|
|
60
56
|
skipBootstrapWithLastKnownState?: boolean;
|
|
@@ -183,13 +179,6 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
183
179
|
* Display the Paragon Connect modal
|
|
184
180
|
*/
|
|
185
181
|
_loadCustomDropdownOptions(key: string, cursor?: string | undefined, search?: string | undefined): LoadCustomDropdownOptionsResult;
|
|
186
|
-
setDataSources(config: SetDataSourcesConfig): void;
|
|
187
|
-
private processDropdownSources;
|
|
188
|
-
private processMapObjectFieldSources;
|
|
189
|
-
resolveCustomDropdownSource(key: string | undefined, integrationName: string): CustomDropdownField[] | null;
|
|
190
|
-
private resolveMapObjectFieldSource;
|
|
191
|
-
private isDynamicFieldMappingConfig;
|
|
192
|
-
hasCustomDropdownLoader(key: string | undefined): boolean;
|
|
193
182
|
/**
|
|
194
183
|
* Send a Connect API request. Automatically handles authorization and errors.
|
|
195
184
|
*
|
|
@@ -265,12 +254,8 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
265
254
|
private getIntegrationForWorkflow;
|
|
266
255
|
private updateLocalState;
|
|
267
256
|
/**
|
|
268
|
-
*
|
|
269
|
-
|
|
270
|
-
private patchUserMetadata;
|
|
271
|
-
/**
|
|
272
|
-
* Gets the user data from api `/sdk/me`.
|
|
273
|
-
* User metadata is set via PATCH after this succeeds when provided in authenticate (see updateLocalState).
|
|
257
|
+
* gets the user data from api `/sdk/me`
|
|
258
|
+
* userMeta header is passed to support user metadata upsert based on authentication options
|
|
274
259
|
*/
|
|
275
260
|
private fetchUserData;
|
|
276
261
|
/**
|
|
@@ -386,10 +371,9 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
386
371
|
* @param parameters - Optional array of parameters to be used in the request.
|
|
387
372
|
* @returns A promise that resolves with the field options or logs an error if the request fails.
|
|
388
373
|
*/
|
|
389
|
-
getFieldOptions({ integration, action,
|
|
374
|
+
getFieldOptions({ integration, action, search, cursor, parameters, selectedCredentialId, }: {
|
|
390
375
|
integration: string;
|
|
391
|
-
action
|
|
392
|
-
source?: DynamicDataSource<any>;
|
|
376
|
+
action: string;
|
|
393
377
|
search?: string;
|
|
394
378
|
cursor?: string | number | false;
|
|
395
379
|
parameters?: KeyedSource<DataType.ANY>[];
|
|
@@ -400,7 +384,6 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
400
384
|
nextPageCursor: string | null;
|
|
401
385
|
}>;
|
|
402
386
|
getDataSourceOptions(integrationName: string, action: string): Promise<import("./types").DataSource | undefined>;
|
|
403
|
-
getSourcesForInput(integrationName: string, action: string, input: SerializedConnectInput): InputSources | null;
|
|
404
387
|
getAccountTypeOptions(integrationName: string): import("./types").AccountType[];
|
|
405
388
|
getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
|
|
406
389
|
getPostOptions(integrationName: string): IntegrationConnectInput[];
|