@useparagon/connect 2.2.1 → 2.2.2-experimental.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.
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, 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 {
|
|
@@ -133,8 +133,9 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
133
133
|
private removeOptionDuplicates;
|
|
134
134
|
startOAuthFlow(action: string, apiInstallationOptions: InstallOptions & CredentialConfigOptions & {
|
|
135
135
|
endUserSuppliedValues?: Record<string, ConnectInputValue>;
|
|
136
|
+
userProvidedIntegrationConfig?: UserProvidedIntegrationConfig;
|
|
136
137
|
}, options?: {
|
|
137
|
-
onSuccess?: (
|
|
138
|
+
onSuccess?: (installationEvent: IntegrationInstallEvent) => void;
|
|
138
139
|
onError?: (error: unknown) => void;
|
|
139
140
|
oauthTimeout?: number;
|
|
140
141
|
}): void;
|
|
@@ -164,7 +165,9 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
164
165
|
*/
|
|
165
166
|
_getIntegration(integrationId: string): IConnectIntegrationWithCredentialInfo | undefined;
|
|
166
167
|
getIntegrationBySlug(integrationName: string): IConnectIntegrationWithCredentialInfo;
|
|
167
|
-
_oauthCallback(oauthResponse: OauthCallbackResponse, credentialId?: string
|
|
168
|
+
_oauthCallback(oauthResponse: OauthCallbackResponse, credentialId?: string, options?: {
|
|
169
|
+
installOptions?: InstallOptions;
|
|
170
|
+
}): Promise<IntegrationInstallEvent | undefined>;
|
|
168
171
|
_oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>;
|
|
169
172
|
customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>;
|
|
170
173
|
/**
|
|
@@ -397,6 +400,7 @@ export declare class InstallFlow {
|
|
|
397
400
|
constructor(paragon: ConnectSDK);
|
|
398
401
|
start(integrationName: string, startOptions?: StartOptions): void;
|
|
399
402
|
cancel(): Promise<void>;
|
|
403
|
+
private getInstallOptions;
|
|
400
404
|
private asyncStart;
|
|
401
405
|
private handleError;
|
|
402
406
|
private handleNext;
|