@useparagon/connect
Advanced tools
@@ -9,3 +9,3 @@ import { IConnectCredential } from './entities/connectCredential.interface'; | ||
| import { ConnectSdkEnvironments } from './server.types'; | ||
| import { AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, ConditionalSource, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, CustomDropdownField, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDataSource, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, EnumInputValue, EnumSection, EventInfo, GetIntegrationAccountOptions, GetTriggerTypesResponse, IConnectSDK, InputSources, InstallFlowStage, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, IntentInputKeyConfig, KeyedSource, LoadCustomDropdownOptionsResult, ProxyRequestOptions, SerializedConnectInput, SetDataSourcesConfig, SingleSource, StartOptions, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions, UpdateWorkflowStateResponse, UserProvidedIntegrationConfig } from './types'; | ||
| import { AccountType, AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, ConditionalSource, ConnectInputValue, Props as ConnectModalProps, ConnectParams, ConnectUser, CreateConfigurationOptions, CredentialConfigOptions, CustomDropdownField, DataType, DeleteConfigurationOptions, DisableWorkflowOptions, DynamicDataSource, DynamicDefaultInput, DynamicFieldMappingLoaderType, DynamicFieldMappingOptionsResult, EnumInputValue, EnumSection, EventInfo, GetIntegrationAccountOptions, GetTriggerTypesResponse, IConnectSDK, InputSources, InstallFlowStage, InstallIntegrationOptions, InstallOptions, IntegrationConfig, IntegrationConnectInput, IntegrationInstallEvent, IntentInputKeyConfig, KeyedSource, LoadCustomDropdownOptionsResult, ProxyRequestOptions, SerializedConnectInput, SetDataSourcesConfig, SingleSource, StartOptions, TriggerWorkflowRequest, UninstallOptions, UpdateConfigurationOptions, UpdateWorkflowStateResponse, UserProvidedIntegrationConfig } from './types'; | ||
| export declare const PARAGON_OVERFLOW_EMPTY_VALUE = "PARAGON_OVERFLOW_EMPTY_VALUE"; | ||
@@ -179,2 +179,3 @@ export { ExternalFilePicker }; | ||
| private getAccountName; | ||
| private validateAccountType; | ||
| /** | ||
@@ -433,3 +434,3 @@ * Set dynamic field mapping loaders for the given action | ||
| getSourcesForActionInput(input: IntentInputKeyConfig): SingleSource | ConditionalSource | null; | ||
| getAccountTypeOptions(integrationName: string): import("./types").AccountType[]; | ||
| getAccountTypeOptions(integrationName: string): AccountType[]; | ||
| getPreOptions(integrationName: string, accountTypeId?: string): IntegrationConnectInput[]; | ||
@@ -436,0 +437,0 @@ getPostOptions(integrationName: string): IntegrationConnectInput[]; |
@@ -345,2 +345,6 @@ import { IConnectSDKProject } from 'src/entities/project.interface'; | ||
| options: IntegrationConnectInput[]; | ||
| /** | ||
| * The ID of the credential created during auth stages. | ||
| */ | ||
| credentialId?: string; | ||
| done: false; | ||
@@ -347,0 +351,0 @@ }; |
@@ -24,2 +24,8 @@ export type ConnectSDKError = { | ||
| } | { | ||
| name: 'CredentialIdNotSetError'; | ||
| message: string; | ||
| } | { | ||
| name: 'CredentialNotReturnedFromInstallationError'; | ||
| message: string; | ||
| } | { | ||
| name: 'HeadlessModeNotEnabledError'; | ||
@@ -40,3 +46,3 @@ message: string; | ||
| }>; | ||
| export type InstallFlowError = ErrorByName<'OAuthBlockedError' | 'OAuthTimeoutError' | 'UserNotAuthenticatedError' | 'NoActiveInstallFlowError' | 'HeadlessModeNotEnabledError' | 'IntegrationNotFoundError' | 'UnknownError'>; | ||
| export type InstallFlowError = ErrorByName<'OAuthBlockedError' | 'OAuthTimeoutError' | 'UserNotAuthenticatedError' | 'NoActiveInstallFlowError' | 'HeadlessModeNotEnabledError' | 'CredentialIdNotSetError' | 'CredentialNotReturnedFromInstallationError' | 'IntegrationNotFoundError' | 'UnknownError'>; | ||
| export declare class BaseSDKError extends Error { | ||
@@ -49,2 +55,8 @@ readonly meta: Record<string, unknown> | null; | ||
| } | ||
| export declare class CredentialIdNotSetError extends BaseSDKError { | ||
| constructor(integrationName: string); | ||
| } | ||
| export declare class CredentialNotReturnedFromInstallationError extends BaseSDKError { | ||
| constructor(integrationName: string); | ||
| } | ||
| export declare class NoActiveInstallFlowError extends BaseSDKError { | ||
@@ -51,0 +63,0 @@ constructor(); |
+1
-1
| { | ||
| "name": "@useparagon/connect", | ||
| "version": "2.4.2", | ||
| "version": "2.4.3-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
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
541084
0.47%3622
0.5%4
33.33%