@useparagon/connect 2.2.3-experimental.2 → 2.2.4-experimental-15311.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 +11 -3
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/entities/integration.interface.d.ts +4 -0
- package/dist/src/file-picker/integrations/googledrive.d.ts +4 -0
- package/dist/src/index.js +1 -1
- package/dist/src/types/connect.d.ts +8 -2
- package/dist/src/types/sdk.d.ts +20 -3
- 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, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, EnumInputValue, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallFlowStage, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, KeyedSource, LoadCustomDropdownOptionsResult, ProxyRequestOptions, StartOptions, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions, UpdateWorkflowStateResponse } from './types';
|
|
9
|
+
import { AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, CustomDropdownField, CustomDropdownOptionResult, CustomDropdownOptions, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, EnumInputValue, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallFlowStage, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, KeyedSource, LoadCustomDropdownOptionsResult, ModalConfig, 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 {
|
|
@@ -131,10 +131,12 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
131
131
|
*/
|
|
132
132
|
logout(): void;
|
|
133
133
|
private removeOptionDuplicates;
|
|
134
|
+
private applyCustomDropdownOptions;
|
|
134
135
|
startOAuthFlow(action: string, apiInstallationOptions: InstallOptions & CredentialConfigOptions & {
|
|
135
136
|
endUserSuppliedValues?: Record<string, ConnectInputValue>;
|
|
137
|
+
userProvidedIntegrationConfig?: UserProvidedIntegrationConfig;
|
|
136
138
|
}, options?: {
|
|
137
|
-
onSuccess?: (
|
|
139
|
+
onSuccess?: (installationEvent: IntegrationInstallEvent) => void;
|
|
138
140
|
onError?: (error: unknown) => void;
|
|
139
141
|
oauthTimeout?: number;
|
|
140
142
|
}): void;
|
|
@@ -164,9 +166,12 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
164
166
|
*/
|
|
165
167
|
_getIntegration(integrationId: string): IConnectIntegrationWithCredentialInfo | undefined;
|
|
166
168
|
getIntegrationBySlug(integrationName: string): IConnectIntegrationWithCredentialInfo;
|
|
167
|
-
_oauthCallback(oauthResponse: OauthCallbackResponse, credentialId?: string
|
|
169
|
+
_oauthCallback(oauthResponse: OauthCallbackResponse, credentialId?: string, options?: {
|
|
170
|
+
installOptions?: InstallOptions;
|
|
171
|
+
}): Promise<IntegrationInstallEvent | undefined>;
|
|
168
172
|
_oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>;
|
|
169
173
|
customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>;
|
|
174
|
+
customDropdownOptionsStatic: Record<string, CustomDropdownField[]>;
|
|
170
175
|
/**
|
|
171
176
|
* Display the Paragon Connect modal
|
|
172
177
|
*/
|
|
@@ -374,6 +379,8 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
374
379
|
nextPageCursor: string | null;
|
|
375
380
|
}>;
|
|
376
381
|
getDataSourceOptions(integrationName: string, action: string): Promise<import("./types").DataSource | undefined>;
|
|
382
|
+
setCustomDropdownOptions(action: string, dropdowns: Record<string, CustomDropdownField[] | CustomDropdownOptions>): ModalConfig | undefined;
|
|
383
|
+
getCustomDropdownOptions(action: string, fieldKey?: string): CustomDropdownOptionResult[];
|
|
377
384
|
getAccountTypeOptions(integrationName: string): import("./types").AccountType[];
|
|
378
385
|
getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[];
|
|
379
386
|
getPostOptions(integrationName: string): IntegrationConnectInput[];
|
|
@@ -397,6 +404,7 @@ export declare class InstallFlow {
|
|
|
397
404
|
constructor(paragon: ConnectSDK);
|
|
398
405
|
start(integrationName: string, startOptions?: StartOptions): void;
|
|
399
406
|
cancel(): Promise<void>;
|
|
407
|
+
private getInstallOptions;
|
|
400
408
|
private asyncStart;
|
|
401
409
|
private handleError;
|
|
402
410
|
private handleNext;
|