@useparagon/connect 2.2.3-experimental.1 → 2.2.3-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 +32 -2
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/entities/integration.interface.d.ts +0 -4
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.js +1 -1
- package/dist/src/types/action.d.ts +1 -6
- package/dist/src/types/connect.d.ts +1 -27
- package/dist/src/types/sdk.d.ts +1 -2
- 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 } 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 {
|
|
@@ -387,3 +386,34 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
387
386
|
search?: string;
|
|
388
387
|
}): Promise<DynamicFieldMappingOptionsResult>;
|
|
389
388
|
}
|
|
389
|
+
export declare class InstallFlow {
|
|
390
|
+
private readonly paragon;
|
|
391
|
+
private startOptions;
|
|
392
|
+
private integrationName;
|
|
393
|
+
private accountTypeValue;
|
|
394
|
+
private preOptionsValue;
|
|
395
|
+
private postOptionsValue;
|
|
396
|
+
private credentialId;
|
|
397
|
+
constructor(paragon: ConnectSDK);
|
|
398
|
+
start(integrationName: string, startOptions?: StartOptions): void;
|
|
399
|
+
cancel(): Promise<void>;
|
|
400
|
+
private asyncStart;
|
|
401
|
+
private handleError;
|
|
402
|
+
private handleNext;
|
|
403
|
+
private handleComplete;
|
|
404
|
+
private getScheme;
|
|
405
|
+
private getIntegrationName;
|
|
406
|
+
private getSelectedAccountTypeOption;
|
|
407
|
+
private requiresAccountType;
|
|
408
|
+
private requiresPreOptions;
|
|
409
|
+
private requiresPostOptions;
|
|
410
|
+
/** Starts an OAuth authentication flow through a window Pop-up */
|
|
411
|
+
private handleOAuth;
|
|
412
|
+
setAccountType(accountType: string): Promise<void>;
|
|
413
|
+
setPreOptions(options: Record<string, ConnectInputValue>): Promise<void>;
|
|
414
|
+
setPostOptions(options: Record<string, ConnectInputValue>): Promise<void>;
|
|
415
|
+
getAccountTypeValue(): string | null;
|
|
416
|
+
getPreOptionsValue(): Record<string, ConnectInputValue> | null;
|
|
417
|
+
getPostOptionsValue(): Record<string, ConnectInputValue> | null;
|
|
418
|
+
next(): InstallFlowStage;
|
|
419
|
+
}
|