@testmo/testmo-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -157,4 +157,3 @@ "use strict"; | ||
* @param {Number} automationRunId ID of the automation run to complete. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/CompleteAutomationRun} opts.completeAutomationRun Request object with the properties to complete an automation run. | ||
* @param {module:model/CompleteAutomationRun} completeAutomationRun Request object with the properties to complete an automation run. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response | ||
@@ -165,8 +164,12 @@ */ | ||
key: "completeWithHttpInfo", | ||
value: function completeWithHttpInfo(automationRunId, opts) { | ||
opts = opts || {}; | ||
var postBody = opts['completeAutomationRun']; // verify the required parameter 'automationRunId' is set | ||
value: function completeWithHttpInfo(automationRunId, completeAutomationRun) { | ||
var postBody = completeAutomationRun; // verify the required parameter 'automationRunId' is set | ||
if (automationRunId === undefined || automationRunId === null) { | ||
throw new Error("Missing the required parameter 'automationRunId' when calling complete"); | ||
} // verify the required parameter 'completeAutomationRun' is set | ||
if (completeAutomationRun === undefined || completeAutomationRun === null) { | ||
throw new Error("Missing the required parameter 'completeAutomationRun' when calling complete"); | ||
} | ||
@@ -190,4 +193,3 @@ | ||
* @param {Number} automationRunId ID of the automation run to complete. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/CompleteAutomationRun} opts.completeAutomationRun Request object with the properties to complete an automation run. | ||
* @param {module:model/CompleteAutomationRun} completeAutomationRun Request object with the properties to complete an automation run. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise} | ||
@@ -198,4 +200,4 @@ */ | ||
key: "complete", | ||
value: function complete(automationRunId, opts) { | ||
return this.completeWithHttpInfo(automationRunId, opts).then(function (response_and_data) { | ||
value: function complete(automationRunId, completeAutomationRun) { | ||
return this.completeWithHttpInfo(automationRunId, completeAutomationRun).then(function (response_and_data) { | ||
return response_and_data.data; | ||
@@ -208,4 +210,3 @@ }); | ||
* @param {Number} automationRunThreadId ID of the automation run thread to complete. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/CompleteAutomationRunThread} opts.completeAutomationRunThread Request object with the properties to complete an automation run thread. | ||
* @param {module:model/CompleteAutomationRunThread} completeAutomationRunThread Request object with the properties to complete an automation run thread. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response | ||
@@ -216,8 +217,12 @@ */ | ||
key: "completeThreadWithHttpInfo", | ||
value: function completeThreadWithHttpInfo(automationRunThreadId, opts) { | ||
opts = opts || {}; | ||
var postBody = opts['completeAutomationRunThread']; // verify the required parameter 'automationRunThreadId' is set | ||
value: function completeThreadWithHttpInfo(automationRunThreadId, completeAutomationRunThread) { | ||
var postBody = completeAutomationRunThread; // verify the required parameter 'automationRunThreadId' is set | ||
if (automationRunThreadId === undefined || automationRunThreadId === null) { | ||
throw new Error("Missing the required parameter 'automationRunThreadId' when calling completeThread"); | ||
} // verify the required parameter 'completeAutomationRunThread' is set | ||
if (completeAutomationRunThread === undefined || completeAutomationRunThread === null) { | ||
throw new Error("Missing the required parameter 'completeAutomationRunThread' when calling completeThread"); | ||
} | ||
@@ -241,4 +246,3 @@ | ||
* @param {Number} automationRunThreadId ID of the automation run thread to complete. | ||
* @param {Object} opts Optional parameters | ||
* @param {module:model/CompleteAutomationRunThread} opts.completeAutomationRunThread Request object with the properties to complete an automation run thread. | ||
* @param {module:model/CompleteAutomationRunThread} completeAutomationRunThread Request object with the properties to complete an automation run thread. | ||
* @return {Promise} a {@link https://www.promisejs.org/|Promise} | ||
@@ -249,4 +253,4 @@ */ | ||
key: "completeThread", | ||
value: function completeThread(automationRunThreadId, opts) { | ||
return this.completeThreadWithHttpInfo(automationRunThreadId, opts).then(function (response_and_data) { | ||
value: function completeThread(automationRunThreadId, completeAutomationRunThread) { | ||
return this.completeThreadWithHttpInfo(automationRunThreadId, completeAutomationRunThread).then(function (response_and_data) { | ||
return response_and_data.data; | ||
@@ -253,0 +257,0 @@ }); |
{ | ||
"name": "@testmo/testmo-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Testmo REST API JavaScript binding", | ||
@@ -39,6 +39,3 @@ "author": "Testmo GmbH", | ||
"dist" | ||
], | ||
"publishConfig": { | ||
"access": "restricted" | ||
} | ||
] | ||
} |
111737