@integration-app/sdk
Advanced tools
Comparing version 0.1.21 to 0.1.22
@@ -1,2 +0,1 @@ | ||
import { ConnectionsQuery } from './connections'; | ||
declare enum FlowRunState { | ||
@@ -39,3 +38,3 @@ RUNNING = "running", | ||
findIntegratedApps(): Promise<any>; | ||
findConnections(query?: ConnectionsQuery): Promise<any>; | ||
findConnections(): Promise<any>; | ||
findFlows(options: FindFlowsOptions): Promise<any>; | ||
@@ -54,3 +53,3 @@ deleteConnection(id: string): Promise<any>; | ||
private getPusherInstance; | ||
get(uri: string, queryParams?: Record<string, string>): Promise<any>; | ||
get(uri: string): Promise<any>; | ||
post(uri: string, data: any): Promise<any>; | ||
@@ -57,0 +56,0 @@ put(uri: string, data: any): Promise<any>; |
@@ -37,4 +37,4 @@ "use strict"; | ||
} | ||
async findConnections(query) { | ||
return this.get('connections', query); | ||
async findConnections() { | ||
return this.get('connections'); | ||
} | ||
@@ -256,6 +256,3 @@ async findFlows(options) { | ||
} | ||
async get(uri, queryParams) { | ||
if (queryParams) { | ||
uri += `?${new URLSearchParams(queryParams).toString()}`; | ||
} | ||
async get(uri) { | ||
return this.makeApiRequest('GET', { url: uri }); | ||
@@ -262,0 +259,0 @@ } |
@@ -38,5 +38,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); | ||
} | ||
@@ -43,0 +43,0 @@ export declare class DataComposerRecipePlain extends DataComposerRecipeBase { |
@@ -1,1 +0,4 @@ | ||
export * from './endpoints'; | ||
export declare enum EndpointConnectionMode { | ||
POPUP = "popup", | ||
IFRAME = "iframe" | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./endpoints"), exports); | ||
exports.EndpointConnectionMode = void 0; | ||
var EndpointConnectionMode; | ||
(function (EndpointConnectionMode) { | ||
EndpointConnectionMode["POPUP"] = "popup"; | ||
EndpointConnectionMode["IFRAME"] = "iframe"; | ||
})(EndpointConnectionMode = exports.EndpointConnectionMode || (exports.EndpointConnectionMode = {})); | ||
//# sourceMappingURL=endpoint.js.map |
{ | ||
"name": "@integration-app/sdk", | ||
"version": "0.1.21", | ||
"version": "0.1.22", | ||
"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' | ||
@@ -69,4 +68,4 @@ const DEFAULT_API_URI = 'https://engine-api.integration.app' | ||
public async findConnections(query?: ConnectionsQuery) { | ||
return this.get('connections', query as Record<string, string>) | ||
public async findConnections() { | ||
return this.get('connections') | ||
} | ||
@@ -340,6 +339,3 @@ | ||
public async get(uri: string, queryParams?: Record<string, string>) { | ||
if (queryParams) { | ||
uri += `?${new URLSearchParams(queryParams).toString()}` | ||
} | ||
public async get(uri: string) { | ||
return this.makeApiRequest('GET', { url: uri }) | ||
@@ -346,0 +342,0 @@ } |
@@ -57,3 +57,3 @@ import { JSONSchema, JSONSchemaType } from './json-schema' | ||
export class DataComposerRecipeRef extends DataComposerRecipeBase { | ||
constructor(public locator: DataLocator, public items?: any) { | ||
constructor(public locator: DataLocator | string, public items?: any) { | ||
super() | ||
@@ -60,0 +60,0 @@ this.type = DataComposerRecipeType.REF |
@@ -1,5 +0,4 @@ | ||
/** | ||
* DEPRECATED | ||
* ToDo: Remove | ||
*/ | ||
export * from './endpoints' | ||
export enum EndpointConnectionMode { | ||
POPUP = 'popup', | ||
IFRAME = 'iframe', | ||
} |
@@ -31,3 +31,3 @@ { | ||
"outDir": "./", | ||
"baseUrl": "./" | ||
"baseUrl": "./src" | ||
}, | ||
@@ -34,0 +34,0 @@ "exclude": [ |
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
930961
91
10268