@useparagon/connect 2.2.2-experimental.3 → 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 +3 -7
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/entities/integration.interface.d.ts +0 -4
- package/dist/src/file-picker/integrations/googledrive.d.ts +0 -4
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/types/connect.d.ts +2 -5
- package/dist/src/types/sdk.d.ts +2 -3
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { PersonaMeta } from '../entities/persona.interface';
|
|
|
5
5
|
import { AccountType, BooleanInput, ComboInput, CopyableButtonInput, CustomDropdownInput, DataSource, DynamicComboInput, DynamicEnumInput, EmailInput, FieldMapperInput, FileInput, IntegrationConnectInput, NumberInput, PasswordInput, PermissionInput, SidebarInputType, SwitchInput, URLInput, ValueTextInput } from './action';
|
|
6
6
|
import { InstallFlowError } from './errors';
|
|
7
7
|
import { OrConditions } from './resolvers';
|
|
8
|
-
import { CredentialConfigOptions
|
|
8
|
+
import { CredentialConfigOptions } from './sdk';
|
|
9
9
|
export { CredentialStatus } from '../entities/connectCredential.interface';
|
|
10
10
|
export type { IntegrationMetadata } from '../entities/integration.interface';
|
|
11
11
|
export * from './errors';
|
|
@@ -272,7 +272,7 @@ export type StartOptions = {
|
|
|
272
272
|
/**
|
|
273
273
|
* Callback to be called when the installation is complete
|
|
274
274
|
*/
|
|
275
|
-
onComplete?:
|
|
275
|
+
onComplete?: VoidFunction;
|
|
276
276
|
onNext?: (nextState: InstallFlowStage) => void;
|
|
277
277
|
/**
|
|
278
278
|
* Callback to be called when the installation fails.
|
|
@@ -294,7 +294,4 @@ export type StartOptions = {
|
|
|
294
294
|
* Closes the popup and raises an error if the flow is not completed within the given timeout.
|
|
295
295
|
*/
|
|
296
296
|
oauthTimeout?: number;
|
|
297
|
-
allowMultipleCredentials?: boolean;
|
|
298
|
-
overrideRedirectUrl?: string;
|
|
299
|
-
selectedCredentialId?: string;
|
|
300
297
|
};
|
package/dist/src/types/sdk.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ export interface IConnectSDK {
|
|
|
118
118
|
* Invoked by the OAuth popup after finishing the credential exchange.
|
|
119
119
|
* @private
|
|
120
120
|
*/
|
|
121
|
-
_oauthCallback(credential: OauthCallbackResponse, credentialId?: string): Promise<
|
|
121
|
+
_oauthCallback(credential: OauthCallbackResponse, credentialId?: string): Promise<void>;
|
|
122
122
|
/**
|
|
123
123
|
* **Do not call this function directly.**
|
|
124
124
|
*
|
|
@@ -262,7 +262,7 @@ export interface IConnectSDK {
|
|
|
262
262
|
getPreOptions(params: string): any;
|
|
263
263
|
getPostOptions(params: string): any;
|
|
264
264
|
startOAuthFlow(action: string, apiInstallationOptions: InstallOptions & CredentialConfigOptions, options?: {
|
|
265
|
-
onSuccess?: (
|
|
265
|
+
onSuccess?: (connectCredentialId: string) => void;
|
|
266
266
|
onError?: (error: unknown) => void;
|
|
267
267
|
}): void;
|
|
268
268
|
getFieldOptions(options: {
|
|
@@ -440,7 +440,6 @@ export type FilePickerOptions = {
|
|
|
440
440
|
googledrive?: {
|
|
441
441
|
viewMode?: google.picker.DocsViewMode;
|
|
442
442
|
includeFolders?: boolean;
|
|
443
|
-
enableSharedDrives?: boolean;
|
|
444
443
|
};
|
|
445
444
|
box?: {
|
|
446
445
|
container?: string;
|
package/package.json
CHANGED