🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@useparagon/connect

Package Overview
Dependencies
Maintainers
23
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@useparagon/connect - npm Package Compare versions

Comparing version
2.4.2
to
2.4.3-experimental.1
+3
-2
dist/src/ConnectSDK.d.ts

@@ -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[];

+4
-0

@@ -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();

{
"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