New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@integration-app/sdk

Package Overview
Dependencies
Maintainers
1
Versions
445
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@integration-app/sdk - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

12

dist/index.d.ts

@@ -5,4 +5,6 @@ export declare function init(options: InitOptions): void;

export declare function findConnections(options?: InitOptions): Promise<any>;
export declare function deleteConnection(options: DeleteConnectionOptions): Promise<any>;
export declare function openNewConnection(options: NewConnectionOptions): void;
export declare function openNewFlow(options: NewFlowOptions): void;
export declare function openNewFlowInstance(options: NewFlowInstanceOptions): void;
export declare const openNewFlow: typeof openNewFlowInstance;
interface InitOptions {

@@ -19,4 +21,5 @@ apiUri?: string;

}
interface NewFlowOptions extends InitOptions {
blueprintKey: string;
interface NewFlowInstanceOptions extends InitOptions {
blueprintKey?: string;
flowKey: string;
parameters: any;

@@ -32,2 +35,5 @@ onFlowRunComplete?: (...args: any) => void;

}
interface DeleteConnectionOptions extends InitOptions {
id: string;
}
export {};

@@ -15,3 +15,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.openNewFlow = exports.openNewConnection = exports.findConnections = exports.findIntegratedApps = exports.startImport = exports.init = void 0;
exports.openNewFlow = exports.openNewFlowInstance = exports.openNewConnection = exports.deleteConnection = exports.findConnections = exports.findIntegratedApps = exports.startImport = exports.init = void 0;
const axios_1 = __importDefault(require("axios"));

@@ -53,2 +53,6 @@ const iframe_1 = require("./iframe");

exports.findConnections = findConnections;
function deleteConnection(options) {
return del(`connections/${options.id}`, options);
}
exports.deleteConnection = deleteConnection;
function openNewConnection(options) {

@@ -88,5 +92,5 @@ const requestId = (Math.random() + 1).toString(36).substring(12);

exports.openNewConnection = openNewConnection;
function openNewFlow(options) {
function openNewFlowInstance(options) {
const uri = getEmbedUri('flows/new', options, {
blueprintKey: options.blueprintKey,
blueprintKey: options.flowKey || options.blueprintKey,
parameters: JSON.stringify(options.parameters),

@@ -99,3 +103,5 @@ });

}
exports.openNewFlow = openNewFlow;
exports.openNewFlowInstance = openNewFlowInstance;
// Deprecated
exports.openNewFlow = openNewFlowInstance;
function getEmbedUri(page, options, params) {

@@ -102,0 +108,0 @@ const key = appKey || options.appKey;

{
"name": "@integration-app/sdk",
"version": "0.0.15",
"version": "0.0.16",
"description": "JavaScript SDK for Integration.app",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -41,2 +41,6 @@ import Axios, { AxiosRequestConfig } from 'axios'

export function deleteConnection(options: DeleteConnectionOptions) {
return del(`connections/${options.id}`, options)
}
export function openNewConnection(options: NewConnectionOptions) {

@@ -82,5 +86,5 @@ const requestId = (Math.random() + 1).toString(36).substring(12)

export function openNewFlow(options: NewFlowOptions) {
export function openNewFlowInstance(options: NewFlowInstanceOptions) {
const uri = getEmbedUri('flows/new', options, {
blueprintKey: options.blueprintKey,
blueprintKey: options.flowKey || options.blueprintKey,
parameters: JSON.stringify(options.parameters),

@@ -94,2 +98,5 @@ })

// Deprecated
export const openNewFlow = openNewFlowInstance
function getEmbedUri(page: string, options: InitOptions, params?: any) {

@@ -181,4 +188,5 @@ const key = appKey || options.appKey

interface NewFlowOptions extends InitOptions {
blueprintKey: string
interface NewFlowInstanceOptions extends InitOptions {
blueprintKey?: string
flowKey: string
parameters: any

@@ -195,1 +203,5 @@ onFlowRunComplete?: (...args: any) => void

}
interface DeleteConnectionOptions extends InitOptions {
id: string
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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