Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@useparagon/connect

Package Overview
Dependencies
Maintainers
20
Versions
77
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 1.0.16-experimental.1 to 1.0.16-experimental.2

32

dist/src/ConnectSDK.d.ts

@@ -6,3 +6,4 @@ import { IConnectCredential } from './entities/connectCredential.interface';

import SDKEventEmitter from './SDKEventEmitter';
import { AuthenticateOptions, AuthenticatedConnectUser, CallbackMap, Props as ConnectModalProps, ConnectParams, ConnectUser, DisableWorkflowOptions, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallOptions, TriggerWorkflowRequest, UninstallOptions } from './types';
import { ConnectSdkEnvironments } from './server.types';
import { AuthenticateOptions, AuthenticatedConnectUser, CompleteInstallOptions, Props as ConnectModalProps, ConnectParams, ConnectUser, DisableWorkflowOptions, EventInfo, GetIntegrationAccountOptions, IConnectSDK, InstallIntegrationOptions, TriggerWorkflowRequest, UninstallOptions } from './types';
export declare const PARAGON_OVERFLOW_EMPTY_VALUE = "PARAGON_OVERFLOW_EMPTY_VALUE";

@@ -12,2 +13,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {

private rootLoaded;
/**
* sometime DOMContentLoaded event firing twice
* so it was creating two iframes see PARA-8749
*/
private rootElementCreated;
private projectId;

@@ -41,3 +47,3 @@ private integrationToBeEnabled;

private originalBodyOverflow;
constructor();
constructor(environments?: ConnectSdkEnvironments);
/**

@@ -111,7 +117,6 @@ * post message handler

logout(): void;
connect(action: string, params?: ConnectParams): Promise<void>;
/**
* Display the Paragon Connect modal
*/
_connect(action: string, params?: ConnectParams & InstallOptions): Promise<void>;
connect(action: string, params?: ConnectParams): Promise<void>;
/**

@@ -135,2 +140,3 @@ * Retrieves an integration object from the loaded integrations based on the integration ID.

cacheResult?: boolean;
baseURLOverride?: string;
}, prefixWithProjectPath?: boolean): Promise<TResponse | undefined>;

@@ -170,7 +176,7 @@ private sendRequest;

* get single or all metadata info for integrations
* @param integrationKeyName
* @param integrationKey
* @returns
*/
getIntegrationMetadata(): IIntegrationMetadata[];
getIntegrationMetadata(integrationKeyName: string): IIntegrationMetadata;
getIntegrationMetadata(integrationKey: string): IIntegrationMetadata;
/**

@@ -185,3 +191,3 @@ * trigger connect endpoint trigger workflow

*/
installIntegration(action: string, params?: Partial<Omit<InstallOptions, 'isApiInstallation'> & Omit<CallbackMap, 'onOpen' | 'onClose'>>): Promise<void>;
installIntegration(action: string, params?: InstallIntegrationOptions): Promise<void>;
/**

@@ -220,8 +226,9 @@ * gates headless feature to pro and enterprise users

/**
* @param {host: string;} domain
* @param param
* sets the domain for making http service request
* example: `configureGlobal({host: 'myDomain.com'});` would set service urls as `https://service.myDomain.com`
* example: `configureGlobal({host: 'myDomain.com'});` would set service urls as `https://service.myDomain.com`
*/
configureGlobal(param: {
host: string;
envPrefix?: string;
}): void;

@@ -232,8 +239,3 @@ /**

*/
completeInstall(action: string, options: {
authorizationCode: string;
showPortalAfterInstall?: boolean;
redirectUrl?: string;
integrationOptions?: Record<string, unknown>;
}): Promise<void>;
completeInstall(action: string, options: CompleteInstallOptions): Promise<void>;
/**

@@ -240,0 +242,0 @@ * update credential data in integration

import { ConnectCredentialConfig } from '../types/connect';
import { IConnectIntegration } from './integration.interface';
import { IPersona } from './persona.interface';
import { IProject } from './project.interface';
export interface IConnectCredential {

@@ -30,9 +27,2 @@ id: string;

/**
* track refreshing status
*/
isRefreshing: boolean;
project?: IProject;
integration?: IConnectIntegration;
persona?: IPersona;
/**
* accountAuth contains the decrypted oauth access token. This property will only be available for some of integrations

@@ -39,0 +29,0 @@ */

import ConnectSDK from './ConnectSDK';
import { ExternalFilePickerConstruct, IConnectSDK } from './types';
export * from './types/index';
export declare const connectSingleton: ConnectSDK;
export declare const paragon: IConnectSDK & {
ExternalFilePicker: ExternalFilePickerConstruct;
};
declare const _default: {
ConnectSDK: typeof ConnectSDK;
};
export default _default;
export default ConnectSDK;

@@ -11,4 +11,5 @@ /**

PLATFORM_ENV: string;
WORKER_PROXY_PUBLIC_URL: string;
VERSION: string;
ZEUS_PUBLIC_URL: string;
};

@@ -45,20 +45,3 @@ import { ConnectCredentialProviderData, CredentialStatus, IConnectCredential } from '../entities/connectCredential.interface';

};
/**
* timestamp value for last Execution Date for workflow . Will be synced up by chronos service.
*/
lastExecutionDate?: Date;
/**
* last execution status for workflow . Will be synced up by chronos service.
*/
lastExecutionStatus?: ExecutionStatus;
};
declare enum ExecutionStatus {
NOT_STARTED = "NOT_STARTED",
DELAYED = "DELAYED",
PAUSED = "PAUSED",
EXECUTING = "EXECUTING",
FAILED = "FAILED",
SUCCEEDED = "SUCCEEDED",
WAITING = "WAITING"
}
export type ModalConfig = {

@@ -214,3 +197,3 @@ /**

*/
type SDKIntegrationState = Partial<Record<string, SDKIntegration>>;
export type SDKIntegrationState = Partial<Record<string, SDKIntegration>>;
export type UninstallOptions = {

@@ -217,0 +200,0 @@ selectedCredentialId?: string;

@@ -47,2 +47,13 @@ import ConnectSDK from '../ConnectSDK';

export type SDKReceivedMessage = SDKFunctionInvocationMessage;
export type InstallIntegrationOptions = Partial<Omit<InstallOptions, 'isApiInstallation'> & Omit<CallbackMap, 'onOpen' | 'onClose'>>;
export type CompleteInstallOptions = {
authorizationCode: string;
showPortalAfterInstall?: boolean;
redirectUrl?: string;
integrationOptions?: {
installOptions?: InstallOptions & {
[key in string]: unknown;
};
};
};
export interface IConnectSDK {

@@ -58,3 +69,3 @@ authenticate(projectId: string, token: string, options?: AuthenticateOptions): Promise<void>;

*/
_oauthCallback(credential: OauthCallbackResponse): Promise<void>;
_oauthCallback(credential: OauthCallbackResponse, credentialId?: string): Promise<void>;
/**

@@ -72,3 +83,3 @@ * **Do not call this function directly.**

*/
installIntegration(name: string, options: Partial<Omit<InstallOptions, 'isApiInstallation'> & Omit<CallbackMap, 'onOpen' | 'onClose'>>): Promise<void>;
installIntegration(name: string, options: InstallIntegrationOptions): Promise<void>;
/**

@@ -88,2 +99,3 @@ * uninstalls an integration for connected user.

host: string;
envPrefix?: string;
}): void;

@@ -94,4 +106,5 @@ /**

*/
getIntegrationMetadata(integrationName: string): IIntegrationMetadata;
getIntegrationMetadata(): IIntegrationMetadata[];
getIntegrationMetadata(integrationKey: string): IIntegrationMetadata;
getIntegrationMetadata(integrationKey?: string): IIntegrationMetadata | IIntegrationMetadata[];
/**

@@ -137,12 +150,3 @@ * triggers all workflows for event

*/
completeInstall(action: string, options: {
authorizationCode: string;
showPortalAfterInstall?: boolean;
redirectUrl?: string;
integrationOptions?: {
installOptions?: InstallOptions & {
[key in string]: unknown;
};
};
}): Promise<void>;
completeInstall(action: string, options: CompleteInstallOptions): Promise<void>;
/**

@@ -235,3 +239,3 @@ * Get account details by integration type. To get accountAuth, includeAccountAuth should be true in options.

};
export type ConnectParams = CallbackMap & UserProvidedIntegrationConfig;
export type ConnectParams = CallbackMap & UserProvidedIntegrationConfig & InstallOptions;
export type EventInfo = {

@@ -238,0 +242,0 @@ type: SDK_EVENT;

@@ -13,3 +13,3 @@ /**

export declare function sanitizeUrl(url: string): string;
export declare function getServiceUrl(service: string, domain: string): string;
export declare function getServiceUrl(service: string, domain: string, envPrefix?: string): string;
/**

@@ -16,0 +16,0 @@ * Validation error description.

{
"name": "@useparagon/connect",
"version": "1.0.16-experimental.1",
"version": "1.0.16-experimental.2",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc