🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@integration-app/sdk

Package Overview
Dependencies
Maintainers
3
Versions
476
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

to
0.1.46

10

client.d.ts

@@ -41,5 +41,5 @@ import { ConnectionsQuery } from './connections';

findFlows(options: FindFlowsOptions): Promise<any>;
deleteConnection(id: string): Promise<any>;
archiveConnection(id: string): Promise<any>;
createFlow(options: NewFlowOptions): Promise<any>;
deleteFlow(flowId: string): Promise<any>;
archiveFlow(flowId: string): Promise<any>;
openNewConnection(options: NewConnectionOptions): Promise<void>;

@@ -55,5 +55,5 @@ openFlow(flowId: string, options?: OpenFlowOptions): Promise<void>;

get(uri: string, queryParams?: Record<string, string>): Promise<any>;
post(uri: string, data: any): Promise<any>;
put(uri: string, data: any): Promise<any>;
patch(uri: string, data: any): Promise<any>;
post(uri: string, data?: any): Promise<any>;
put(uri: string, data?: any): Promise<any>;
patch(uri: string, data?: any): Promise<any>;
delete(uri: string): Promise<any>;

@@ -60,0 +60,0 @@ private makeApiRequest;

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

}
async deleteConnection(id) {
async archiveConnection(id) {
return this.delete(`connections/${id}`);

@@ -62,3 +62,3 @@ }

}
async deleteFlow(flowId) {
async archiveFlow(flowId) {
return this.delete(`flows/${flowId}`);

@@ -65,0 +65,0 @@ }

import { IntegratedApp } from './integrated-apps';
export declare class ConnectionsQuery {
integratedAppKey?: string;
includeArchived?: boolean;
}

@@ -9,2 +10,4 @@ export declare class Connection {

integratedApp: IntegratedApp;
createdAt: Date;
updatedAt: Date;
}

@@ -12,3 +12,2 @@ import { FlowNode } from './flow-nodes';

nodes?: Record<string, FlowNode>;
deletedTime?: Date;
}

@@ -15,0 +14,0 @@ export declare function getLinkedNodes(flow: Flow, node: FlowNode): FlowNode[];

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

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

@@ -85,3 +85,3 @@ import Pusher, { Channel } from 'pusher-js'

public async deleteConnection(id: string) {
public async archiveConnection(id: string) {
return this.delete(`connections/${id}`)

@@ -98,3 +98,3 @@ }

public async deleteFlow(flowId: string) {
public async archiveFlow(flowId: string) {
return this.delete(`flows/${flowId}`)

@@ -333,11 +333,11 @@ }

public async post(uri: string, data: any) {
public async post(uri: string, data?: any) {
return this.makeApiRequest('POST', { url: uri, data })
}
public async put(uri: string, data: any) {
public async put(uri: string, data?: any) {
return this.makeApiRequest('PUT', { url: uri, data })
}
public async patch(uri: string, data: any) {
public async patch(uri: string, data?: any) {
return this.makeApiRequest('PATCH', { url: uri, data })

@@ -344,0 +344,0 @@ }

@@ -5,2 +5,3 @@ import { IntegratedApp } from './integrated-apps'

integratedAppKey?: string
includeArchived?: boolean
}

@@ -23,2 +24,6 @@

integratedApp: IntegratedApp
createdAt: Date
updatedAt: Date
}

@@ -20,4 +20,2 @@ import { FlowNode } from './flow-nodes'

nodes?: Record<string, FlowNode>
deletedTime?: Date
}

@@ -24,0 +22,0 @@

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet