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
4
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.1.50 to 0.1.51

10

client.d.ts

@@ -1,2 +0,3 @@

import { ConnectionsQuery } from './connections';
import { ConnectionsQuery, FindConnectionsResponse } from './connections';
import { FindFlowsResponse, Flow } from './flows';
declare enum FlowRunState {

@@ -39,6 +40,7 @@ RUNNING = "running",

findIntegratedApps(): Promise<any>;
findConnections(query?: ConnectionsQuery): Promise<any>;
findFlows(options: FindFlowsOptions): Promise<any>;
findConnections(query?: ConnectionsQuery): Promise<FindConnectionsResponse>;
getFlow(flowId: string): Promise<Flow>;
findFlows(options: FindFlowsOptions): Promise<FindFlowsResponse>;
archiveConnection(id: string): Promise<any>;
createFlow(options: NewFlowOptions): Promise<any>;
createFlow(options: NewFlowOptions): Promise<Flow>;
archiveFlow(flowId: string): Promise<any>;

@@ -45,0 +47,0 @@ openNewConnection(options: NewConnectionOptions): Promise<void>;

3

client.js

@@ -40,2 +40,5 @@ "use strict";

}
async getFlow(flowId) {
return this.get(`flows/${flowId}`);
}
async findFlows(options) {

@@ -42,0 +45,0 @@ const queryParams = {};

@@ -13,1 +13,4 @@ import { IntegratedApp } from './integrated-apps';

}
export declare class FindConnectionsResponse {
items: Connection[];
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Connection = exports.ConnectionsQuery = void 0;
exports.FindConnectionsResponse = exports.Connection = exports.ConnectionsQuery = void 0;
class ConnectionsQuery {

@@ -10,2 +10,5 @@ }

exports.Connection = Connection;
class FindConnectionsResponse {
}
exports.FindConnectionsResponse = FindConnectionsResponse;
//# sourceMappingURL=connections.js.map

@@ -39,5 +39,5 @@ import { JSONSchema } from './json-schema';

export declare class DataComposerRecipeRef extends DataComposerRecipeBase {
locator: DataLocator;
locator: DataLocator | string;
items?: any;
constructor(locator: DataLocator, items?: any);
constructor(locator: DataLocator | string, items?: any);
}

@@ -44,0 +44,0 @@ export declare class DataComposerRecipeTemplate extends DataComposerRecipeBase {

@@ -13,4 +13,7 @@ import { FlowNode } from './flow-nodes';

}
export interface FindFlowsResponse {
items: Flow[];
}
export declare function getLinkedNodes(flow: Flow, node: FlowNode): FlowNode[];
export declare function getDownstreamNodes(flow: Flow, node: FlowNode): FlowNode[];
export declare function getUpstreamNodes(flow: Flow, node: FlowNode): FlowNode[];
{
"name": "@integration-app/sdk",
"version": "0.1.50",
"version": "0.1.51",
"description": "JavaScript SDK for Integration.app",

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

import Pusher, { Channel } from 'pusher-js'
import Axios, { AxiosRequestConfig } from 'axios'
import { openIframe } from './iframe'
import { ConnectionsQuery } from './connections'
import { ConnectionsQuery, FindConnectionsResponse } from './connections'
import { FindFlowsResponse, Flow } from './flows'

@@ -69,7 +70,15 @@ const DEFAULT_API_URI = 'https://engine-api.integration.app'

public async findConnections(query?: ConnectionsQuery) {
public async findConnections(
query?: ConnectionsQuery,
): Promise<FindConnectionsResponse> {
return this.get('connections', query as Record<string, string>)
}
public async findFlows(options: FindFlowsOptions) {
public async getFlow(flowId: string): Promise<Flow> {
return this.get(`flows/${flowId}`)
}
public async findFlows(
options: FindFlowsOptions,
): Promise<FindFlowsResponse> {
const queryParams: Record<string, string> = {}

@@ -90,3 +99,3 @@ if (options.blueprintKey) {

public async createFlow(options: NewFlowOptions) {
public async createFlow(options: NewFlowOptions): Promise<Flow> {
return this.post('flows', {

@@ -93,0 +102,0 @@ blueprintKey: options.blueprintKey,

@@ -28,1 +28,5 @@ import { IntegratedApp } from './integrated-apps'

}
export class FindConnectionsResponse {
items: Connection[]
}

@@ -59,3 +59,3 @@ import _ from 'lodash'

export class DataComposerRecipeRef extends DataComposerRecipeBase {
constructor(public locator: DataLocator, public items?: any) {
constructor(public locator: DataLocator | string, public items?: any) {
super()

@@ -62,0 +62,0 @@ this.type = DataComposerRecipeType.REF

@@ -22,2 +22,6 @@ import { FlowNode } from './flow-nodes'

export interface FindFlowsResponse {
items: Flow[]
}
/**

@@ -24,0 +28,0 @@ * Returns nodes of a given flow linked from the given node via `node.links`

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

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