@useparagon/connect 2.2.3-experimental-16047.3 → 2.2.3-experimental-16047.5
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 +44 -4
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/file-picker/integrations/googledrive.d.ts +4 -0
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.js +1 -1
- package/dist/src/types/connect.d.ts +5 -2
- package/dist/src/types/sdk.d.ts +4 -4
- package/package.json +1 -1
- package/dist/src/InstallFlow.d.ts +0 -39
package/dist/src/ConnectSDK.d.ts
CHANGED
|
@@ -4,10 +4,9 @@ import { OauthCallbackResponse } from './entities/credential.interface';
|
|
|
4
4
|
import { IConnectIntegrationWithCredentialInfo, IntegrationMetadata } from './entities/integration.interface';
|
|
5
5
|
import { PersonaMeta } from './entities/persona.interface';
|
|
6
6
|
import { ExternalFilePicker } from './file-picker/types';
|
|
7
|
-
import { InstallFlow } from './InstallFlow';
|
|
8
7
|
import SDKEventEmitter from './SDKEventEmitter';
|
|
9
8
|
import { ConnectSdkEnvironments } from './server.types';
|
|
10
|
-
import { AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, EnumInputValue, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, KeyedSource, LoadCustomDropdownOptionsResult, ProxyRequestOptions, 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';
|
|
11
10
|
export declare const PARAGON_OVERFLOW_EMPTY_VALUE = "PARAGON_OVERFLOW_EMPTY_VALUE";
|
|
12
11
|
export { ExternalFilePicker };
|
|
13
12
|
export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
@@ -135,8 +134,9 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
135
134
|
private removeOptionDuplicates;
|
|
136
135
|
startOAuthFlow(action: string, apiInstallationOptions: InstallOptions & CredentialConfigOptions & {
|
|
137
136
|
endUserSuppliedValues?: Record<string, ConnectInputValue>;
|
|
137
|
+
userProvidedIntegrationConfig?: UserProvidedIntegrationConfig;
|
|
138
138
|
}, options?: {
|
|
139
|
-
onSuccess?: (
|
|
139
|
+
onSuccess?: (installationEvent: IntegrationInstallEvent) => void;
|
|
140
140
|
onError?: (error: unknown) => void;
|
|
141
141
|
oauthTimeout?: number;
|
|
142
142
|
}): void;
|
|
@@ -166,7 +166,9 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
166
166
|
*/
|
|
167
167
|
_getIntegration(integrationId: string): IConnectIntegrationWithCredentialInfo | undefined;
|
|
168
168
|
getIntegrationBySlug(integrationName: string): IConnectIntegrationWithCredentialInfo;
|
|
169
|
-
_oauthCallback(oauthResponse: OauthCallbackResponse, credentialId?: string
|
|
169
|
+
_oauthCallback(oauthResponse: OauthCallbackResponse, credentialId?: string, options?: {
|
|
170
|
+
installOptions?: InstallOptions;
|
|
171
|
+
}): Promise<IntegrationInstallEvent | undefined>;
|
|
170
172
|
_oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>;
|
|
171
173
|
customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>;
|
|
172
174
|
/**
|
|
@@ -388,3 +390,41 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
388
390
|
search?: string;
|
|
389
391
|
}): Promise<DynamicFieldMappingOptionsResult>;
|
|
390
392
|
}
|
|
393
|
+
export declare class InstallFlow {
|
|
394
|
+
private readonly paragon;
|
|
395
|
+
private startOptions;
|
|
396
|
+
private integrationName;
|
|
397
|
+
private accountTypeValue;
|
|
398
|
+
private preOptionsValue;
|
|
399
|
+
private postOptionsValue;
|
|
400
|
+
private credentialId;
|
|
401
|
+
private hasFinishedInstruction;
|
|
402
|
+
constructor(paragon: ConnectSDK);
|
|
403
|
+
start(integrationName: string, startOptions?: StartOptions): void;
|
|
404
|
+
cancel(): Promise<void>;
|
|
405
|
+
private getInstallOptions;
|
|
406
|
+
private asyncStart;
|
|
407
|
+
private handleError;
|
|
408
|
+
private handleNext;
|
|
409
|
+
private handleComplete;
|
|
410
|
+
private getScheme;
|
|
411
|
+
private getIntegrationName;
|
|
412
|
+
private getSelectedAccountTypeOption;
|
|
413
|
+
private requiresAccountType;
|
|
414
|
+
private getIntegrationInstructionMetadata;
|
|
415
|
+
private getSalesforceInstructionMetadata;
|
|
416
|
+
private requiresInstruction;
|
|
417
|
+
private requiresPreOptions;
|
|
418
|
+
private requiresPostOptions;
|
|
419
|
+
private requiresOAuth;
|
|
420
|
+
/** Starts an OAuth authentication flow through a window Pop-up */
|
|
421
|
+
private handleOAuth;
|
|
422
|
+
setAccountType(accountType: string): Promise<void>;
|
|
423
|
+
setPreOptions(options: Record<string, ConnectInputValue>): Promise<void>;
|
|
424
|
+
setPostOptions(options: Record<string, ConnectInputValue>): Promise<void>;
|
|
425
|
+
setHasFinishedInstruction(): Promise<void>;
|
|
426
|
+
getAccountTypeValue(): string | null;
|
|
427
|
+
getPreOptionsValue(): Record<string, ConnectInputValue> | null;
|
|
428
|
+
getPostOptionsValue(): Record<string, ConnectInputValue> | null;
|
|
429
|
+
next(): InstallFlowStage;
|
|
430
|
+
}
|