@integromat/sdk
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -0,6 +1,12 @@ | ||
## [0.1.1](https://github.com/integromat/mono/compare/make-sdk-v0.1.0...make-sdk-v0.1.1) (2024-05-07) | ||
### Bug Fixes | ||
* sync sdk to current state of oem playground ([#346](https://github.com/integromat/mono/issues/346)) ([035eef6](https://github.com/integromat/mono/commit/035eef692514a61c4b7d9bebeccb967f914f1253)) | ||
# [0.1.0](https://github.com/integromat/mono/compare/make-sdk-v0.0.0...make-sdk-v0.1.0) (2024-05-06) | ||
### Features | ||
* **make-sdk:** release initial version of make-sdk ([#343](https://github.com/integromat/mono/issues/343)) ([02d14d3](https://github.com/integromat/mono/commit/02d14d3e2cdb340919f8d8893444da2ee1eeefa1)) | ||
- **make-sdk:** release initial version of make-sdk ([#343](https://github.com/integromat/mono/issues/343)) ([02d14d3](https://github.com/integromat/mono/commit/02d14d3e2cdb340919f8d8893444da2ee1eeefa1)) |
{ | ||
"private": false, | ||
"name": "@integromat/sdk", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"type": "commonjs", | ||
@@ -6,0 +6,0 @@ "main": "./src/index.js", |
@@ -20,5 +20,5 @@ import type { Static } from '@sinclair/typebox'; | ||
result: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{ | ||
scenario: import("@sinclair/typebox").TObject<{ | ||
scenarios: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{ | ||
id: import("@sinclair/typebox").TInteger; | ||
}>; | ||
}>>; | ||
}>, import("@sinclair/typebox").TNull]>; | ||
@@ -42,5 +42,5 @@ }>; | ||
result: { | ||
scenario: { | ||
scenarios: { | ||
id: number; | ||
}; | ||
}[]; | ||
} | null; | ||
@@ -47,0 +47,0 @@ }>; |
@@ -15,5 +15,5 @@ "use strict"; | ||
typebox_1.Type.Object({ | ||
scenario: typebox_1.Type.Object({ | ||
scenarios: typebox_1.Type.Array(typebox_1.Type.Object({ | ||
id: typebox_1.Type.Integer(), | ||
}), | ||
})), | ||
}), | ||
@@ -20,0 +20,0 @@ typebox_1.Type.Null(), |
@@ -19,2 +19,3 @@ import type { Static } from '@sinclair/typebox'; | ||
allowReusingComponents?: boolean; | ||
allowCreatingComponents?: boolean; | ||
callbackUrl?: string; | ||
@@ -36,3 +37,3 @@ }; | ||
export declare class InitializeFlowFromTemplateHandler extends Endpoint<InitializeFlowFromTemplate> { | ||
handle({ teamId, templateId, prefill, autoActivate, autoFinalize, allowReusingComponents, callbackUrl, }: InitializeFlowFromTemplateOptions): Promise<{ | ||
handle({ teamId, templateId, prefill, autoActivate, autoFinalize, allowReusingComponents, allowCreatingComponents, callbackUrl, }: InitializeFlowFromTemplateOptions): Promise<{ | ||
flow: { | ||
@@ -39,0 +40,0 @@ id: string; |
@@ -13,3 +13,3 @@ "use strict"; | ||
class InitializeFlowFromTemplateHandler extends endpoint_1.Endpoint { | ||
async handle({ teamId, templateId, prefill, autoActivate, autoFinalize, allowReusingComponents, callbackUrl, }) { | ||
async handle({ teamId, templateId, prefill, autoActivate, autoFinalize, allowReusingComponents, allowCreatingComponents, callbackUrl, }) { | ||
const response = await this._request({ | ||
@@ -26,2 +26,3 @@ apiPath: `/instances/flow/init/template`, | ||
allowReusingComponents, | ||
allowCreatingComponents, | ||
callbackUrl, | ||
@@ -28,0 +29,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59716
1227