@integromat/sdk
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -0,1 +1,8 @@ | ||
# [0.2.0](https://github.com/integromat/mono/compare/make-sdk-v0.1.1...make-sdk-v0.2.0) (2024-05-13) | ||
### Features | ||
* **make-sdk:** remove manual init, add credentials request ([#356](https://github.com/integromat/mono/issues/356)) ([7d8921e](https://github.com/integromat/mono/commit/7d8921ef87ab809e4eb6b0e65d9cf4b23dd13ae1)) | ||
## [0.1.1](https://github.com/integromat/mono/compare/make-sdk-v0.1.0...make-sdk-v0.1.1) (2024-05-07) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"private": false, | ||
"name": "@integromat/sdk", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"type": "commonjs", | ||
@@ -6,0 +6,0 @@ "main": "./src/index.js", |
@@ -7,4 +7,4 @@ export { MakeApiKey } from './lib/credentials/make-api-key'; | ||
export type { GetFlowById, GetFlowByIdOptions, } from './lib/endpoints/instances/get-flow-by-id'; | ||
export type { InitializeCredentialsRequestFlow, InitializeCredentialsRequestFlowOptions, } from './lib/endpoints/instances/initialize-credentials-request-flow'; | ||
export type { InitializeFlowFromTemplate, InitializeFlowFromTemplateOptions, } from './lib/endpoints/instances/initialize-flow-from-template'; | ||
export type { InitializeFlowManually, InitializeFlowManuallyOptions, } from './lib/endpoints/instances/initialize-flow-manually'; | ||
export type { Scenarios } from './lib/endpoints/scenarios'; | ||
@@ -11,0 +11,0 @@ export type { DeleteScenario, DeleteScenarioOptions, } from './lib/endpoints/scenarios/delete-scenario'; |
import type { HttpRequester } from '../net/http-requester'; | ||
import { EndpointSlice } from './endpoint-slice'; | ||
import type { GetFlowById } from './instances/get-flow-by-id'; | ||
import type { InitializeCredentialsRequestFlow } from './instances/initialize-credentials-request-flow'; | ||
import type { InitializeFlowFromTemplate } from './instances/initialize-flow-from-template'; | ||
import type { InitializeFlowManually } from './instances/initialize-flow-manually'; | ||
/** | ||
@@ -13,4 +13,4 @@ * Instances endpoints | ||
export declare class Instances extends EndpointSlice { | ||
/** {@inheritDoc InitializeFlowManually} */ | ||
initializeFlowManually: InitializeFlowManually; | ||
/** {@inheritDoc InitializeCredentialsRequestFlow} */ | ||
initializeCredentialsRequestFlow: InitializeCredentialsRequestFlow; | ||
/** {@inheritDoc InitializeFlowFromTemplate} */ | ||
@@ -17,0 +17,0 @@ initializeFlowFromTemplate: InitializeFlowFromTemplate; |
@@ -6,4 +6,4 @@ "use strict"; | ||
const get_flow_by_id_1 = require("./instances/get-flow-by-id"); | ||
const initialize_credentials_request_flow_1 = require("./instances/initialize-credentials-request-flow"); | ||
const initialize_flow_from_template_1 = require("./instances/initialize-flow-from-template"); | ||
const initialize_flow_manually_1 = require("./instances/initialize-flow-manually"); | ||
/** | ||
@@ -16,4 +16,4 @@ * Instances endpoints | ||
class Instances extends endpoint_slice_1.EndpointSlice { | ||
/** {@inheritDoc InitializeFlowManually} */ | ||
initializeFlowManually; | ||
/** {@inheritDoc InitializeCredentialsRequestFlow} */ | ||
initializeCredentialsRequestFlow; | ||
/** {@inheritDoc InitializeFlowFromTemplate} */ | ||
@@ -26,3 +26,3 @@ initializeFlowFromTemplate; | ||
super(); | ||
this.initializeFlowManually = this._register(new initialize_flow_manually_1.InitializeFlowManuallyHandler(requester)); | ||
this.initializeCredentialsRequestFlow = this._register(new initialize_credentials_request_flow_1.InitializeCredentialsRequestFlowHandler(requester)); | ||
this.initializeFlowFromTemplate = this._register(new initialize_flow_from_template_1.InitializeFlowFromTemplateHandler(requester)); | ||
@@ -29,0 +29,0 @@ this.getFlowById = this._register(new get_flow_by_id_1.GetFlowByIdHandler(requester)); |
@@ -20,3 +20,3 @@ import type { Static } from '@sinclair/typebox'; | ||
allowCreatingComponents?: boolean; | ||
callbackUrl?: string; | ||
redirectUri?: string; | ||
}; | ||
@@ -37,3 +37,3 @@ declare const initializeFlowFromTemplateResponseSchema: import("@sinclair/typebox").TObject<{ | ||
export declare class InitializeFlowFromTemplateHandler extends Endpoint<InitializeFlowFromTemplate> { | ||
handle({ teamId, templateId, prefill, autoActivate, autoFinalize, allowReusingComponents, allowCreatingComponents, callbackUrl, }: InitializeFlowFromTemplateOptions): Promise<{ | ||
handle({ teamId, templateId, prefill, autoActivate, autoFinalize, allowReusingComponents, allowCreatingComponents, redirectUri, }: InitializeFlowFromTemplateOptions): Promise<{ | ||
flow: { | ||
@@ -40,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, allowCreatingComponents, callbackUrl, }) { | ||
async handle({ teamId, templateId, prefill, autoActivate, autoFinalize, allowReusingComponents, allowCreatingComponents, redirectUri, }) { | ||
const response = await this._request({ | ||
@@ -27,3 +27,3 @@ apiPath: `/instances/flow/init/template`, | ||
allowCreatingComponents, | ||
callbackUrl, | ||
redirectUri, | ||
}, | ||
@@ -30,0 +30,0 @@ }); |
Sorry, the diff of this file is not supported yet
60953
1245