@integration-app/sdk
Advanced tools
Comparing version 0.1.15 to 0.1.16
{ | ||
"name": "@integration-app/sdk", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "JavaScript SDK for Integration.app", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
"build": "npm run build:compile && npm run build:bundle", | ||
"cleanup": "rm -r data-composer && rm -r data-filter && rm -r endpoints && rm -r errors && rm -r flow-engine && rm -r flows && rm *.js.map && rm *.d.ts && find . -type f -name \"*.js\" -depth 1 -not -name \"rollup.config.js\" -delete", | ||
"cleanup": "rm *.js.map && rm *.d.ts && find . -type f -name \"*.js\" -depth 1 -not -name \"rollup.config.js\" -not -name \".eslintrc.js\" -delete", | ||
"build:compile": "tsc", | ||
@@ -12,0 +12,0 @@ "build:bundle": "rollup -c rollup.config.js", |
@@ -101,4 +101,4 @@ import Pusher, { Channel } from 'pusher-js' | ||
if ( | ||
message.source == 'integration.app' && | ||
message.requestId == requestId | ||
message.source == 'integration.app' && | ||
message.requestId == requestId | ||
) { | ||
@@ -159,4 +159,4 @@ if (message.type == 'newConnectionCreated') { | ||
public async runFlow( | ||
flowId: string, | ||
options: RunFlowOptions = {}, | ||
flowId: string, | ||
options: RunFlowOptions = {}, | ||
): Promise<FlowRun> { | ||
@@ -181,5 +181,5 @@ const { id: flowRunId } = await this.post('flow-runs', { | ||
const fetchFlowNodeRuns = async () => | ||
this.get(`flow-node-runs?filter[flowRunId]=${flowRunId}`) | ||
this.get(`flow-node-runs?filter[flowRunId]=${flowRunId}`) | ||
const fetchFlowNodeRun = async (flowNodeRunId: string) => | ||
this.get(`flow-node-runs/${flowNodeRunId}`) | ||
this.get(`flow-node-runs/${flowNodeRunId}`) | ||
@@ -222,4 +222,4 @@ function updateFlowRun(nextFlowRun: FlowRun) { | ||
return nodeRun?.state === FlowNodeRunState.COMPLETED | ||
? nodeRun | ||
: fetchFlowNodeRun(nodeRun.id) | ||
? nodeRun | ||
: fetchFlowNodeRun(nodeRun.id) | ||
}) | ||
@@ -299,5 +299,5 @@ | ||
const latestNodeRunId = flowRun.nodeRuns | ||
.map((nodeRun: any) => nodeRun.id) | ||
.sort() | ||
.pop() | ||
.map((nodeRun: any) => nodeRun.id) | ||
.sort() | ||
.pop() | ||
if (latestNodeRunId) { | ||
@@ -359,4 +359,4 @@ return this.getFlowNodeRunOutputRecords(latestNodeRunId) | ||
private async makeApiRequest( | ||
method: HttpMethod, | ||
params: Partial<AxiosRequestConfig> = {}, | ||
method: HttpMethod, | ||
params: Partial<AxiosRequestConfig> = {}, | ||
) { | ||
@@ -363,0 +363,0 @@ params.method = method |
@@ -90,7 +90,7 @@ export enum DataLocatorStepType { | ||
export type DataComposerRecipe = | ||
| DataComposerRecipeLiteral | ||
| DataComposerRecipeRef | ||
| DataComposerRecipePlain | ||
| DataComposerRecipeObject | ||
| DataComposerRecipeArray | ||
| DataComposerRecipeLiteral | ||
| DataComposerRecipeRef | ||
| DataComposerRecipePlain | ||
| DataComposerRecipeObject | ||
| DataComposerRecipeArray | ||
@@ -97,0 +97,0 @@ export function isRecipe(value) { |
import { IntegrationEngineClient } from './client' | ||
// export * as dataComposerRecipeEntities from './data-composer/data-composer-recipe.entity' | ||
// export * as dataFilterConditionTypes from './data-filter/condition-types' | ||
// export * as dataFilterEntities from './data-filter/data-filter.entities' | ||
// export * as endpointsDataResponseEntities from './endpoints/data-response' | ||
// export * as endpointsEntities from './endpoints/endpoint' | ||
// export * as endpointRequestEntities from './endpoints/endpoint-request' | ||
// export * as errors from './errors/error.entity' | ||
// export * as flowNodeRunEntities from './flow-engine/flow-node-run' | ||
// export * as flowRunEntities from './flow-engine/flow-run' | ||
// export * as flowRecordEntities from './flow-engine/flow-record' | ||
// export * as flowNodeEntities from './flows/flow-node' | ||
// export * as dataComposerEntities from './data-composer' | ||
// export * as httpEntities from './http' | ||
// export * as jsonPatchEntities from './json-patch' | ||
// export * as jsonSchemaEntities from './json-schema' | ||
export { IntegrationEngineClient } from './client' | ||
@@ -19,0 +3,0 @@ |
@@ -16,2 +16,1 @@ export enum JSONPatchOp { | ||
} | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
885928
9362