@integration-app/sdk
Advanced tools
Comparing version 0.15.69 to 0.15.70
import { IntegrationAppClient } from '..'; | ||
import { SubscribeOptions } from '../client'; | ||
import { FlowRun } from '../flow-runs'; | ||
import { FlowInstance, RunFlowOptions, OpenFlowConfigurationOptions, Flow } from '.'; | ||
import { FlowInstance, RunFlowOptions, OpenFlowInstanceConfigurationOptions, Flow } from '.'; | ||
import { CreateFlowRequest, FindFlowInstancesQuery, FindFlowInstancesResponse, FindFlowsRequest, FindFlowsResponse, FlowInstanceSelector, UpdateFlowInstanceRequest, UpdateFlowRequest } from './api'; | ||
@@ -41,3 +41,3 @@ export declare class FlowsAccessor { | ||
reset(): Promise<FlowInstance>; | ||
openConfiguration(options?: OpenFlowConfigurationOptions): Promise<void>; | ||
openConfiguration(options?: OpenFlowInstanceConfigurationOptions): Promise<void>; | ||
run(options?: RunFlowOptions): Promise<FlowRun>; | ||
@@ -44,0 +44,0 @@ subscribe(options: SubscribeOptions): Promise<void>; |
@@ -102,3 +102,6 @@ "use strict"; | ||
const id = await this.getId(); | ||
const uri = this.client.getEmbedUri(`/flow-instances/${id}/configuration`); | ||
const queryParams = { | ||
nodeKey: options.nodeKey, | ||
}; | ||
const uri = this.client.getEmbedUri(`/flow-instances/${id}/configuration?${query_string_1.default.stringify(queryParams)}`); | ||
(0, iframe_1.openIframe)(uri, { | ||
@@ -105,0 +108,0 @@ onClose: options.onClose, |
@@ -74,3 +74,4 @@ import { JSONSchema } from '../json-schema'; | ||
export declare function getUpstreamNodeKeys(flow: Flow, nodeKey: string): string[]; | ||
export interface OpenFlowConfigurationOptions { | ||
export interface OpenFlowInstanceConfigurationOptions { | ||
nodeKey?: string; | ||
onClose?: (...args: any) => void; | ||
@@ -77,0 +78,0 @@ } |
{ | ||
"name": "@integration-app/sdk", | ||
"version": "0.15.69", | ||
"version": "0.15.70", | ||
"description": "JavaScript SDK for Integration.app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ import { Channel } from 'pusher-js' | ||
FLOW_INSTANCE_CHANNEL_PREFIX, | ||
OpenFlowConfigurationOptions, | ||
OpenFlowInstanceConfigurationOptions, | ||
Flow, | ||
@@ -136,5 +136,10 @@ } from '.' | ||
async openConfiguration(options: OpenFlowConfigurationOptions = {}) { | ||
async openConfiguration(options: OpenFlowInstanceConfigurationOptions = {}) { | ||
const id = await this.getId() | ||
const uri = this.client.getEmbedUri(`/flow-instances/${id}/configuration`) | ||
const queryParams = { | ||
nodeKey: options.nodeKey, | ||
} | ||
const uri = this.client.getEmbedUri( | ||
`/flow-instances/${id}/configuration?${qs.stringify(queryParams)}`, | ||
) | ||
openIframe(uri, { | ||
@@ -141,0 +146,0 @@ onClose: options.onClose, |
@@ -255,3 +255,4 @@ import { JSONSchema } from '../json-schema' | ||
export interface OpenFlowConfigurationOptions { | ||
export interface OpenFlowInstanceConfigurationOptions { | ||
nodeKey?: string | ||
onClose?: (...args: any) => void | ||
@@ -258,0 +259,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
3411577
44076