@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.
- package/dist/src/ConnectSDK.d.ts +5 -13
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/constants.d.ts +1 -0
- package/dist/src/index.js +1 -1
- package/dist/src/types/action.d.ts +23 -2
- package/dist/src/types/connect.d.ts +4 -0
- package/dist/src/types/sdk.d.ts +4 -13
- package/dist/src/utils/connect.d.ts +5 -1
- 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 { AccountType, AuthenticateOptions, AuthenticatedConnectUser,
|
|
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
|
-
|
|
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<
|
|
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[];
|