@useparagon/connect
Advanced tools
Comparing version 1.0.22 to 1.0.23-experimental.1
@@ -8,3 +8,3 @@ import { IConnectCredential } from './entities/connectCredential.interface'; | ||
import { ConnectSdkEnvironments } from './server.types'; | ||
import { AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, DeleteConfigurationOptions, DisableWorkflowOptions, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallIntegrationOptions, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions } from './types'; | ||
import { AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, DeleteConfigurationOptions, DisableWorkflowOptions, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallIntegrationOptions, LoadCustomDropdownOptionsResult, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions } from './types'; | ||
export declare const PARAGON_OVERFLOW_EMPTY_VALUE = "PARAGON_OVERFLOW_EMPTY_VALUE"; | ||
@@ -130,3 +130,8 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK { | ||
_oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>; | ||
customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>; | ||
/** | ||
* Display the Paragon Connect modal | ||
*/ | ||
_loadCustomDropdownOptions(key: string, cursor?: string | undefined, search?: string | undefined): LoadCustomDropdownOptionsResult; | ||
/** | ||
* Send a Connect API request. Automatically handles authorization and errors. | ||
@@ -133,0 +138,0 @@ * |
@@ -60,2 +60,9 @@ import ConnectSDK from '../ConnectSDK'; | ||
}; | ||
export type LoadCustomDropdownOptionsResult = Promise<{ | ||
options: { | ||
label: string; | ||
value: string; | ||
}[]; | ||
nextPageCursor: string | null; | ||
}>; | ||
export interface IConnectSDK { | ||
@@ -80,2 +87,11 @@ authenticate(projectId: string, token: string, options?: AuthenticateOptions): Promise<void>; | ||
/** | ||
* TODO(UI/UX): Document this | ||
* TODO(UI/UX): Create type | ||
* Destroys an existing configuration using the provided instance ID. | ||
* | ||
* @param {string} cursor - An object containing the necessary parameters. | ||
* @returns {Promise<void>} - A promise that resolves when the configuration is successfully destroyed. | ||
*/ | ||
_loadCustomDropdownOptions(key: string, cursor?: string | undefined, search?: string | undefined): LoadCustomDropdownOptionsResult; | ||
/** | ||
* installs an integration without the need to click on enable button from portal | ||
@@ -82,0 +98,0 @@ * Install Options: |
{ | ||
"name": "@useparagon/connect", | ||
"version": "1.0.22", | ||
"version": "1.0.23-experimental.1", | ||
"description": "Embed integrations into your app with the Paragon SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
189953
2332
2
5