@useparagon/connect 2.2.2-experimental.1 → 2.2.3-experimental.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.
@@ -0,0 +1,39 @@
1
+ import type ConnectSDK from './ConnectSDK';
2
+ import { ConnectInputValue, InstallFlowStage, StartOptions } from './types';
3
+ export declare class InstallFlow {
4
+ private readonly paragon;
5
+ private startOptions;
6
+ private integrationName;
7
+ private accountTypeValue;
8
+ private preOptionsValue;
9
+ private postOptionsValue;
10
+ private credentialId;
11
+ private hasFinishedInstruction;
12
+ constructor(paragon: ConnectSDK);
13
+ start(integrationName: string, startOptions?: StartOptions): void;
14
+ cancel(): Promise<void>;
15
+ private asyncStart;
16
+ private handleError;
17
+ private handleNext;
18
+ private handleComplete;
19
+ private getScheme;
20
+ private getIntegrationName;
21
+ private getSelectedAccountTypeOption;
22
+ private requiresAccountType;
23
+ private getIntegrationInstructionMetadata;
24
+ private requiresInstruction;
25
+ private requiresPreOptions;
26
+ private requiresPostOptions;
27
+ private requiresOAuth;
28
+ /** Starts an OAuth authentication flow through a window Pop-up */
29
+ private handleOAuth;
30
+ setAccountType(accountType: string): Promise<void>;
31
+ setPreOptions(options: Record<string, ConnectInputValue>): Promise<void>;
32
+ startOAuth(): Promise<void>;
33
+ setPostOptions(options: Record<string, ConnectInputValue>): Promise<void>;
34
+ setHasFinishedInstruction(): void;
35
+ getAccountTypeValue(): string | null;
36
+ getPreOptionsValue(): Record<string, ConnectInputValue> | null;
37
+ getPostOptionsValue(): Record<string, ConnectInputValue> | null;
38
+ next(): InstallFlowStage;
39
+ }
@@ -17,10 +17,6 @@ export declare class GoogleDriveFilePicker extends BaseFilePicker {
17
17
  * triggers when gapi.load('picker') loads picker successfully
18
18
  * */
19
19
  private onPickerLoaded;
20
- /**
21
- * Creates a DocsView with the common options applied
22
- */
23
- private createDocsView;
24
20
  /**
25
21
  * triggers when user interacts with google file picker modal
26
22
  * */
@@ -1,6 +1,8 @@
1
1
  import ConnectSDK from './ConnectSDK';
2
+ import { InstallFlow } from './InstallFlow';
2
3
  import { ExternalFilePickerConstruct, IConnectSDK } from './types';
3
4
  export * from './types/index';
5
+ export { InstallFlow };
4
6
  export declare const connectSingleton: ConnectSDK;
5
7
  export declare const paragon: IConnectSDK & {
6
8
  ExternalFilePicker: ExternalFilePickerConstruct;