@useparagon/connect 2.1.2-experimental.3 → 2.1.2-experimental.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 +10 -13
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/file-picker/integrations/index.d.ts +0 -2
- package/dist/src/index.js +1 -1
- package/dist/src/types/action.d.ts +3 -0
- package/dist/src/types/connect.d.ts +3 -3
- package/dist/src/types/sdk.d.ts +8 -16
- package/package.json +1 -2
- package/dist/src/file-picker/integrations/dropbox.d.ts +0 -16
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, 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 } 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 {
|
|
@@ -186,12 +186,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
186
186
|
* @param init
|
|
187
187
|
* @returns api request response
|
|
188
188
|
*/
|
|
189
|
-
request<TResponse>(action: string, path: string, init:
|
|
190
|
-
selectedCredentialId?: string;
|
|
191
|
-
method: RequestInit['method'];
|
|
192
|
-
body: RequestInit['body'] | object;
|
|
193
|
-
headers: RequestInit['headers'];
|
|
194
|
-
}): Promise<TResponse | undefined>;
|
|
189
|
+
request<TResponse>(action: string, path: string, init: ProxyRequestOptions): Promise<TResponse | undefined>;
|
|
195
190
|
event(name: string, payload: Record<string, unknown>, options?: CredentialConfigOptions): Promise<void>;
|
|
196
191
|
/**
|
|
197
192
|
* @summary this will be called to close the modal
|
|
@@ -382,9 +377,9 @@ export declare class InstallFlow {
|
|
|
382
377
|
private readonly paragon;
|
|
383
378
|
private startOptions;
|
|
384
379
|
private integrationName;
|
|
385
|
-
private
|
|
386
|
-
private
|
|
387
|
-
private
|
|
380
|
+
private accountTypeValue;
|
|
381
|
+
private preOptionsValue;
|
|
382
|
+
private postOptionsValue;
|
|
388
383
|
private credentialId;
|
|
389
384
|
constructor(paragon: ConnectSDK);
|
|
390
385
|
start(integrationName: string, startOptions?: StartOptions): void;
|
|
@@ -398,11 +393,13 @@ export declare class InstallFlow {
|
|
|
398
393
|
private requiresAccountType;
|
|
399
394
|
private requiresPreOptions;
|
|
400
395
|
private requiresPostOptions;
|
|
396
|
+
/** Starts an OAuth authentication flow through a window Pop-up */
|
|
397
|
+
private handleOAuth;
|
|
401
398
|
setAccountType(accountType: string): Promise<void>;
|
|
402
399
|
setPreOptions(options: Record<string, ConnectInputValue>): Promise<void>;
|
|
403
400
|
setPostOptions(options: Record<string, ConnectInputValue>): Promise<void>;
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
401
|
+
getAccountTypeValue(): string | null;
|
|
402
|
+
getPreOptionsValue(): Record<string, ConnectInputValue> | null;
|
|
403
|
+
getPostOptionsValue(): Record<string, ConnectInputValue> | null;
|
|
407
404
|
next(): InstallFlowStage;
|
|
408
405
|
}
|