@autifyhq/autify-sdk 0.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +18 -0
- package/dist/debug.d.ts +1 -0
- package/dist/debug.js +11 -0
- package/dist/generated/mobile/client.d.ts +32 -0
- package/dist/generated/mobile/client.js +62 -0
- package/dist/generated/mobile/openapi/api.d.ts +316 -0
- package/dist/generated/mobile/openapi/api.js +277 -0
- package/dist/generated/mobile/openapi/base.d.ts +55 -0
- package/dist/generated/mobile/openapi/base.js +61 -0
- package/dist/generated/mobile/openapi/common.d.ts +66 -0
- package/dist/generated/mobile/openapi/common.js +144 -0
- package/dist/generated/mobile/openapi/configuration.d.ts +83 -0
- package/dist/generated/mobile/openapi/configuration.js +44 -0
- package/dist/generated/mobile/openapi/index.d.ts +13 -0
- package/dist/generated/mobile/openapi/index.js +18 -0
- package/dist/generated/web/client.d.ts +117 -0
- package/dist/generated/web/client.js +165 -0
- package/dist/generated/web/openapi/api.d.ts +1402 -0
- package/dist/generated/web/openapi/api.js +1135 -0
- package/dist/generated/web/openapi/base.d.ts +55 -0
- package/dist/generated/web/openapi/base.js +61 -0
- package/dist/generated/web/openapi/common.d.ts +66 -0
- package/dist/generated/web/openapi/common.js +144 -0
- package/dist/generated/web/openapi/configuration.d.ts +83 -0
- package/dist/generated/web/openapi/configuration.js +44 -0
- package/dist/generated/web/openapi/index.d.ts +13 -0
- package/dist/generated/web/openapi/index.js +18 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +10 -0
- package/package.json +60 -0
|
@@ -0,0 +1,1135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Autify API
|
|
6
|
+
* ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). Example of using a personal access token in the header: ``` curl -H \"Authorization: Bearer YOUR_PERSONAL_ACCESS_TOKEN\" https://app.autify.com/api/v1/ ``` If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { \"errors\":[{ \"message\": \"Bad credentials\" }] } ```
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UrlReplacementApi = exports.UrlReplacementApiFactory = exports.UrlReplacementApiFp = exports.UrlReplacementApiAxiosParamCreator = exports.ScheduleApi = exports.ScheduleApiFactory = exports.ScheduleApiFp = exports.ScheduleApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.ResultApi = exports.ResultApiFactory = exports.ResultApiFp = exports.ResultApiAxiosParamCreator = exports.CapabilityApi = exports.CapabilityApiFactory = exports.CapabilityApiFp = exports.CapabilityApiAxiosParamCreator = exports.TestPlanResultStatusEnum = exports.TestPlanCapabilityResultStatusEnum = exports.TestCaseResultStatusEnum = exports.ExecuteScenariosRequestExecutionTypeEnum = exports.DescribeResult200ResponseStatusEnum = void 0;
|
|
17
|
+
const tslib_1 = require("tslib");
|
|
18
|
+
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
19
|
+
// URLSearchParams not necessarily used
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
const url_1 = require("url");
|
|
22
|
+
// Some imports not used depending on template conditions
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
const common_1 = require("./common");
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
const base_1 = require("./base");
|
|
27
|
+
exports.DescribeResult200ResponseStatusEnum = {
|
|
28
|
+
Queuing: "queuing",
|
|
29
|
+
Waiting: "waiting",
|
|
30
|
+
Running: "running",
|
|
31
|
+
Passed: "passed",
|
|
32
|
+
Failed: "failed",
|
|
33
|
+
Skipped: "skipped",
|
|
34
|
+
};
|
|
35
|
+
exports.ExecuteScenariosRequestExecutionTypeEnum = {
|
|
36
|
+
Parallel: "parallel",
|
|
37
|
+
Sequential: "sequential",
|
|
38
|
+
};
|
|
39
|
+
exports.TestCaseResultStatusEnum = {
|
|
40
|
+
Waiting: "waiting",
|
|
41
|
+
Running: "running",
|
|
42
|
+
Passed: "passed",
|
|
43
|
+
Failed: "failed",
|
|
44
|
+
Skipped: "skipped",
|
|
45
|
+
};
|
|
46
|
+
exports.TestPlanCapabilityResultStatusEnum = {
|
|
47
|
+
Waiting: "waiting",
|
|
48
|
+
Running: "running",
|
|
49
|
+
Passed: "passed",
|
|
50
|
+
Failed: "failed",
|
|
51
|
+
Skipped: "skipped",
|
|
52
|
+
};
|
|
53
|
+
exports.TestPlanResultStatusEnum = {
|
|
54
|
+
Waiting: "waiting",
|
|
55
|
+
Running: "running",
|
|
56
|
+
Passed: "passed",
|
|
57
|
+
Failed: "failed",
|
|
58
|
+
Skipped: "skipped",
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* CapabilityApi - axios parameter creator
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
const CapabilityApiAxiosParamCreator = function (configuration) {
|
|
65
|
+
return {
|
|
66
|
+
/**
|
|
67
|
+
* List available Capabilities.
|
|
68
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
|
|
69
|
+
* @param {string} [os] os name to filter
|
|
70
|
+
* @param {string} [browser] browser name to filter
|
|
71
|
+
* @param {string} [deviceType] device_type name to filter
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
*/
|
|
75
|
+
listCapabilities: async (projectId, os, browser, deviceType, options = {}) => {
|
|
76
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
77
|
+
(0, common_1.assertParamExists)("listCapabilities", "projectId", projectId);
|
|
78
|
+
const localVarPath = `/projects/{project_id}/capabilities`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
|
|
79
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
81
|
+
let baseOptions;
|
|
82
|
+
if (configuration) {
|
|
83
|
+
baseOptions = configuration.baseOptions;
|
|
84
|
+
}
|
|
85
|
+
const localVarRequestOptions = {
|
|
86
|
+
method: "GET",
|
|
87
|
+
...baseOptions,
|
|
88
|
+
...options,
|
|
89
|
+
};
|
|
90
|
+
const localVarHeaderParameter = {};
|
|
91
|
+
const localVarQueryParameter = {};
|
|
92
|
+
// authentication bearerAuth required
|
|
93
|
+
// http bearer authentication required
|
|
94
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
95
|
+
if (os !== undefined) {
|
|
96
|
+
localVarQueryParameter["os"] = os;
|
|
97
|
+
}
|
|
98
|
+
if (browser !== undefined) {
|
|
99
|
+
localVarQueryParameter["browser"] = browser;
|
|
100
|
+
}
|
|
101
|
+
if (deviceType !== undefined) {
|
|
102
|
+
localVarQueryParameter["device_type"] = deviceType;
|
|
103
|
+
}
|
|
104
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
106
|
+
localVarRequestOptions.headers = {
|
|
107
|
+
...localVarHeaderParameter,
|
|
108
|
+
...headersFromBaseOptions,
|
|
109
|
+
...options.headers,
|
|
110
|
+
};
|
|
111
|
+
return {
|
|
112
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
113
|
+
options: localVarRequestOptions,
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
exports.CapabilityApiAxiosParamCreator = CapabilityApiAxiosParamCreator;
|
|
119
|
+
/**
|
|
120
|
+
* CapabilityApi - functional programming interface
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
const CapabilityApiFp = function (configuration) {
|
|
124
|
+
const localVarAxiosParamCreator = (0, exports.CapabilityApiAxiosParamCreator)(configuration);
|
|
125
|
+
return {
|
|
126
|
+
/**
|
|
127
|
+
* List available Capabilities.
|
|
128
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
|
|
129
|
+
* @param {string} [os] os name to filter
|
|
130
|
+
* @param {string} [browser] browser name to filter
|
|
131
|
+
* @param {string} [deviceType] device_type name to filter
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
async listCapabilities(projectId, os, browser, deviceType, options) {
|
|
136
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCapabilities(projectId, os, browser, deviceType, options);
|
|
137
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
exports.CapabilityApiFp = CapabilityApiFp;
|
|
142
|
+
/**
|
|
143
|
+
* CapabilityApi - factory interface
|
|
144
|
+
* @export
|
|
145
|
+
*/
|
|
146
|
+
const CapabilityApiFactory = function (configuration, basePath, axios) {
|
|
147
|
+
const localVarFp = (0, exports.CapabilityApiFp)(configuration);
|
|
148
|
+
return {
|
|
149
|
+
/**
|
|
150
|
+
* List available Capabilities.
|
|
151
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
|
|
152
|
+
* @param {string} [os] os name to filter
|
|
153
|
+
* @param {string} [browser] browser name to filter
|
|
154
|
+
* @param {string} [deviceType] device_type name to filter
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
listCapabilities(projectId, os, browser, deviceType, options) {
|
|
159
|
+
return localVarFp
|
|
160
|
+
.listCapabilities(projectId, os, browser, deviceType, options)
|
|
161
|
+
.then((request) => request(axios, basePath));
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
exports.CapabilityApiFactory = CapabilityApiFactory;
|
|
166
|
+
/**
|
|
167
|
+
* CapabilityApi - object-oriented interface
|
|
168
|
+
* @export
|
|
169
|
+
* @class CapabilityApi
|
|
170
|
+
* @extends {BaseAPI}
|
|
171
|
+
*/
|
|
172
|
+
class CapabilityApi extends base_1.BaseAPI {
|
|
173
|
+
/**
|
|
174
|
+
* List available Capabilities.
|
|
175
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
|
|
176
|
+
* @param {string} [os] os name to filter
|
|
177
|
+
* @param {string} [browser] browser name to filter
|
|
178
|
+
* @param {string} [deviceType] device_type name to filter
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
* @memberof CapabilityApi
|
|
182
|
+
*/
|
|
183
|
+
listCapabilities(projectId, os, browser, deviceType, options) {
|
|
184
|
+
return (0, exports.CapabilityApiFp)(this.configuration)
|
|
185
|
+
.listCapabilities(projectId, os, browser, deviceType, options)
|
|
186
|
+
.then((request) => request(this.axios, this.basePath));
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
exports.CapabilityApi = CapabilityApi;
|
|
190
|
+
/**
|
|
191
|
+
* ResultApi - axios parameter creator
|
|
192
|
+
* @export
|
|
193
|
+
*/
|
|
194
|
+
const ResultApiAxiosParamCreator = function (configuration) {
|
|
195
|
+
return {
|
|
196
|
+
/**
|
|
197
|
+
* Get a result.
|
|
198
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
199
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
describeResult: async (projectId, resultId, options = {}) => {
|
|
204
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
205
|
+
(0, common_1.assertParamExists)("describeResult", "projectId", projectId);
|
|
206
|
+
// verify required parameter 'resultId' is not null or undefined
|
|
207
|
+
(0, common_1.assertParamExists)("describeResult", "resultId", resultId);
|
|
208
|
+
const localVarPath = `/projects/{project_id}/results/{result_id}`
|
|
209
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
210
|
+
.replace(`{${"result_id"}}`, encodeURIComponent(String(resultId)));
|
|
211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
213
|
+
let baseOptions;
|
|
214
|
+
if (configuration) {
|
|
215
|
+
baseOptions = configuration.baseOptions;
|
|
216
|
+
}
|
|
217
|
+
const localVarRequestOptions = {
|
|
218
|
+
method: "GET",
|
|
219
|
+
...baseOptions,
|
|
220
|
+
...options,
|
|
221
|
+
};
|
|
222
|
+
const localVarHeaderParameter = {};
|
|
223
|
+
const localVarQueryParameter = {};
|
|
224
|
+
// authentication bearerAuth required
|
|
225
|
+
// http bearer authentication required
|
|
226
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
227
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = {
|
|
230
|
+
...localVarHeaderParameter,
|
|
231
|
+
...headersFromBaseOptions,
|
|
232
|
+
...options.headers,
|
|
233
|
+
};
|
|
234
|
+
return {
|
|
235
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
236
|
+
options: localVarRequestOptions,
|
|
237
|
+
};
|
|
238
|
+
},
|
|
239
|
+
/**
|
|
240
|
+
* List results.
|
|
241
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results
|
|
242
|
+
* @param {number} [page] The number of page returns.
|
|
243
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
244
|
+
* @param {number} [testPlanId] Test plan ID used to filter results.
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
listResults: async (projectId, page, perPage, testPlanId, options = {}) => {
|
|
249
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
250
|
+
(0, common_1.assertParamExists)("listResults", "projectId", projectId);
|
|
251
|
+
const localVarPath = `/projects/{project_id}/results`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
|
|
252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
253
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
254
|
+
let baseOptions;
|
|
255
|
+
if (configuration) {
|
|
256
|
+
baseOptions = configuration.baseOptions;
|
|
257
|
+
}
|
|
258
|
+
const localVarRequestOptions = {
|
|
259
|
+
method: "GET",
|
|
260
|
+
...baseOptions,
|
|
261
|
+
...options,
|
|
262
|
+
};
|
|
263
|
+
const localVarHeaderParameter = {};
|
|
264
|
+
const localVarQueryParameter = {};
|
|
265
|
+
// authentication bearerAuth required
|
|
266
|
+
// http bearer authentication required
|
|
267
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
268
|
+
if (page !== undefined) {
|
|
269
|
+
localVarQueryParameter["page"] = page;
|
|
270
|
+
}
|
|
271
|
+
if (perPage !== undefined) {
|
|
272
|
+
localVarQueryParameter["per_page"] = perPage;
|
|
273
|
+
}
|
|
274
|
+
if (testPlanId !== undefined) {
|
|
275
|
+
localVarQueryParameter["test_plan_id"] = testPlanId;
|
|
276
|
+
}
|
|
277
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
+
localVarRequestOptions.headers = {
|
|
280
|
+
...localVarHeaderParameter,
|
|
281
|
+
...headersFromBaseOptions,
|
|
282
|
+
...options.headers,
|
|
283
|
+
};
|
|
284
|
+
return {
|
|
285
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
286
|
+
options: localVarRequestOptions,
|
|
287
|
+
};
|
|
288
|
+
},
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
exports.ResultApiAxiosParamCreator = ResultApiAxiosParamCreator;
|
|
292
|
+
/**
|
|
293
|
+
* ResultApi - functional programming interface
|
|
294
|
+
* @export
|
|
295
|
+
*/
|
|
296
|
+
const ResultApiFp = function (configuration) {
|
|
297
|
+
const localVarAxiosParamCreator = (0, exports.ResultApiAxiosParamCreator)(configuration);
|
|
298
|
+
return {
|
|
299
|
+
/**
|
|
300
|
+
* Get a result.
|
|
301
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
302
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
*/
|
|
306
|
+
async describeResult(projectId, resultId, options) {
|
|
307
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.describeResult(projectId, resultId, options);
|
|
308
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
309
|
+
},
|
|
310
|
+
/**
|
|
311
|
+
* List results.
|
|
312
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results
|
|
313
|
+
* @param {number} [page] The number of page returns.
|
|
314
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
315
|
+
* @param {number} [testPlanId] Test plan ID used to filter results.
|
|
316
|
+
* @param {*} [options] Override http request option.
|
|
317
|
+
* @throws {RequiredError}
|
|
318
|
+
*/
|
|
319
|
+
async listResults(projectId, page, perPage, testPlanId, options) {
|
|
320
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listResults(projectId, page, perPage, testPlanId, options);
|
|
321
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
322
|
+
},
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
exports.ResultApiFp = ResultApiFp;
|
|
326
|
+
/**
|
|
327
|
+
* ResultApi - factory interface
|
|
328
|
+
* @export
|
|
329
|
+
*/
|
|
330
|
+
const ResultApiFactory = function (configuration, basePath, axios) {
|
|
331
|
+
const localVarFp = (0, exports.ResultApiFp)(configuration);
|
|
332
|
+
return {
|
|
333
|
+
/**
|
|
334
|
+
* Get a result.
|
|
335
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
336
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
describeResult(projectId, resultId, options) {
|
|
341
|
+
return localVarFp
|
|
342
|
+
.describeResult(projectId, resultId, options)
|
|
343
|
+
.then((request) => request(axios, basePath));
|
|
344
|
+
},
|
|
345
|
+
/**
|
|
346
|
+
* List results.
|
|
347
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results
|
|
348
|
+
* @param {number} [page] The number of page returns.
|
|
349
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
350
|
+
* @param {number} [testPlanId] Test plan ID used to filter results.
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
listResults(projectId, page, perPage, testPlanId, options) {
|
|
355
|
+
return localVarFp
|
|
356
|
+
.listResults(projectId, page, perPage, testPlanId, options)
|
|
357
|
+
.then((request) => request(axios, basePath));
|
|
358
|
+
},
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
exports.ResultApiFactory = ResultApiFactory;
|
|
362
|
+
/**
|
|
363
|
+
* ResultApi - object-oriented interface
|
|
364
|
+
* @export
|
|
365
|
+
* @class ResultApi
|
|
366
|
+
* @extends {BaseAPI}
|
|
367
|
+
*/
|
|
368
|
+
class ResultApi extends base_1.BaseAPI {
|
|
369
|
+
/**
|
|
370
|
+
* Get a result.
|
|
371
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
372
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
* @memberof ResultApi
|
|
376
|
+
*/
|
|
377
|
+
describeResult(projectId, resultId, options) {
|
|
378
|
+
return (0, exports.ResultApiFp)(this.configuration)
|
|
379
|
+
.describeResult(projectId, resultId, options)
|
|
380
|
+
.then((request) => request(this.axios, this.basePath));
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* List results.
|
|
384
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results
|
|
385
|
+
* @param {number} [page] The number of page returns.
|
|
386
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
387
|
+
* @param {number} [testPlanId] Test plan ID used to filter results.
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
* @memberof ResultApi
|
|
391
|
+
*/
|
|
392
|
+
listResults(projectId, page, perPage, testPlanId, options) {
|
|
393
|
+
return (0, exports.ResultApiFp)(this.configuration)
|
|
394
|
+
.listResults(projectId, page, perPage, testPlanId, options)
|
|
395
|
+
.then((request) => request(this.axios, this.basePath));
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
exports.ResultApi = ResultApi;
|
|
399
|
+
/**
|
|
400
|
+
* ScenarioApi - axios parameter creator
|
|
401
|
+
* @export
|
|
402
|
+
*/
|
|
403
|
+
const ScenarioApiAxiosParamCreator = function (configuration) {
|
|
404
|
+
return {
|
|
405
|
+
/**
|
|
406
|
+
* Get a scenario.
|
|
407
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
408
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
409
|
+
* @param {*} [options] Override http request option.
|
|
410
|
+
* @throws {RequiredError}
|
|
411
|
+
*/
|
|
412
|
+
describeScenario: async (projectId, scenarioId, options = {}) => {
|
|
413
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
414
|
+
(0, common_1.assertParamExists)("describeScenario", "projectId", projectId);
|
|
415
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
416
|
+
(0, common_1.assertParamExists)("describeScenario", "scenarioId", scenarioId);
|
|
417
|
+
const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}`
|
|
418
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
419
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
421
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
422
|
+
let baseOptions;
|
|
423
|
+
if (configuration) {
|
|
424
|
+
baseOptions = configuration.baseOptions;
|
|
425
|
+
}
|
|
426
|
+
const localVarRequestOptions = {
|
|
427
|
+
method: "GET",
|
|
428
|
+
...baseOptions,
|
|
429
|
+
...options,
|
|
430
|
+
};
|
|
431
|
+
const localVarHeaderParameter = {};
|
|
432
|
+
const localVarQueryParameter = {};
|
|
433
|
+
// authentication bearerAuth required
|
|
434
|
+
// http bearer authentication required
|
|
435
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
436
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
437
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
438
|
+
localVarRequestOptions.headers = {
|
|
439
|
+
...localVarHeaderParameter,
|
|
440
|
+
...headersFromBaseOptions,
|
|
441
|
+
...options.headers,
|
|
442
|
+
};
|
|
443
|
+
return {
|
|
444
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
445
|
+
options: localVarRequestOptions,
|
|
446
|
+
};
|
|
447
|
+
},
|
|
448
|
+
/**
|
|
449
|
+
* You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
|
|
450
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
451
|
+
* @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
|
|
452
|
+
* @param {*} [options] Override http request option.
|
|
453
|
+
* @throws {RequiredError}
|
|
454
|
+
*/
|
|
455
|
+
executeScenarios: async (projectId, executeScenariosRequest, options = {}) => {
|
|
456
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
457
|
+
(0, common_1.assertParamExists)("executeScenarios", "projectId", projectId);
|
|
458
|
+
// verify required parameter 'executeScenariosRequest' is not null or undefined
|
|
459
|
+
(0, common_1.assertParamExists)("executeScenarios", "executeScenariosRequest", executeScenariosRequest);
|
|
460
|
+
const localVarPath = `/projects/{project_id}/execute_scenarios`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
|
|
461
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
462
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
463
|
+
let baseOptions;
|
|
464
|
+
if (configuration) {
|
|
465
|
+
baseOptions = configuration.baseOptions;
|
|
466
|
+
}
|
|
467
|
+
const localVarRequestOptions = {
|
|
468
|
+
method: "POST",
|
|
469
|
+
...baseOptions,
|
|
470
|
+
...options,
|
|
471
|
+
};
|
|
472
|
+
const localVarHeaderParameter = {};
|
|
473
|
+
const localVarQueryParameter = {};
|
|
474
|
+
// authentication bearerAuth required
|
|
475
|
+
// http bearer authentication required
|
|
476
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
477
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
478
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
479
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
480
|
+
localVarRequestOptions.headers = {
|
|
481
|
+
...localVarHeaderParameter,
|
|
482
|
+
...headersFromBaseOptions,
|
|
483
|
+
...options.headers,
|
|
484
|
+
};
|
|
485
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(executeScenariosRequest, localVarRequestOptions, configuration);
|
|
486
|
+
return {
|
|
487
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
488
|
+
options: localVarRequestOptions,
|
|
489
|
+
};
|
|
490
|
+
},
|
|
491
|
+
/**
|
|
492
|
+
* List scenarios.
|
|
493
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
494
|
+
* @param {number} [page] The number of page returns.
|
|
495
|
+
* @param {*} [options] Override http request option.
|
|
496
|
+
* @throws {RequiredError}
|
|
497
|
+
*/
|
|
498
|
+
listScenarios: async (projectId, page, options = {}) => {
|
|
499
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
500
|
+
(0, common_1.assertParamExists)("listScenarios", "projectId", projectId);
|
|
501
|
+
const localVarPath = `/projects/{project_id}/scenarios`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
|
|
502
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
503
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
504
|
+
let baseOptions;
|
|
505
|
+
if (configuration) {
|
|
506
|
+
baseOptions = configuration.baseOptions;
|
|
507
|
+
}
|
|
508
|
+
const localVarRequestOptions = {
|
|
509
|
+
method: "GET",
|
|
510
|
+
...baseOptions,
|
|
511
|
+
...options,
|
|
512
|
+
};
|
|
513
|
+
const localVarHeaderParameter = {};
|
|
514
|
+
const localVarQueryParameter = {};
|
|
515
|
+
// authentication bearerAuth required
|
|
516
|
+
// http bearer authentication required
|
|
517
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
518
|
+
if (page !== undefined) {
|
|
519
|
+
localVarQueryParameter["page"] = page;
|
|
520
|
+
}
|
|
521
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
522
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
523
|
+
localVarRequestOptions.headers = {
|
|
524
|
+
...localVarHeaderParameter,
|
|
525
|
+
...headersFromBaseOptions,
|
|
526
|
+
...options.headers,
|
|
527
|
+
};
|
|
528
|
+
return {
|
|
529
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
530
|
+
options: localVarRequestOptions,
|
|
531
|
+
};
|
|
532
|
+
},
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
exports.ScenarioApiAxiosParamCreator = ScenarioApiAxiosParamCreator;
|
|
536
|
+
/**
|
|
537
|
+
* ScenarioApi - functional programming interface
|
|
538
|
+
* @export
|
|
539
|
+
*/
|
|
540
|
+
const ScenarioApiFp = function (configuration) {
|
|
541
|
+
const localVarAxiosParamCreator = (0, exports.ScenarioApiAxiosParamCreator)(configuration);
|
|
542
|
+
return {
|
|
543
|
+
/**
|
|
544
|
+
* Get a scenario.
|
|
545
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
546
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
547
|
+
* @param {*} [options] Override http request option.
|
|
548
|
+
* @throws {RequiredError}
|
|
549
|
+
*/
|
|
550
|
+
async describeScenario(projectId, scenarioId, options) {
|
|
551
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.describeScenario(projectId, scenarioId, options);
|
|
552
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
553
|
+
},
|
|
554
|
+
/**
|
|
555
|
+
* You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
|
|
556
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
557
|
+
* @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
async executeScenarios(projectId, executeScenariosRequest, options) {
|
|
562
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeScenarios(projectId, executeScenariosRequest, options);
|
|
563
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
564
|
+
},
|
|
565
|
+
/**
|
|
566
|
+
* List scenarios.
|
|
567
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
568
|
+
* @param {number} [page] The number of page returns.
|
|
569
|
+
* @param {*} [options] Override http request option.
|
|
570
|
+
* @throws {RequiredError}
|
|
571
|
+
*/
|
|
572
|
+
async listScenarios(projectId, page, options) {
|
|
573
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listScenarios(projectId, page, options);
|
|
574
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
575
|
+
},
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
exports.ScenarioApiFp = ScenarioApiFp;
|
|
579
|
+
/**
|
|
580
|
+
* ScenarioApi - factory interface
|
|
581
|
+
* @export
|
|
582
|
+
*/
|
|
583
|
+
const ScenarioApiFactory = function (configuration, basePath, axios) {
|
|
584
|
+
const localVarFp = (0, exports.ScenarioApiFp)(configuration);
|
|
585
|
+
return {
|
|
586
|
+
/**
|
|
587
|
+
* Get a scenario.
|
|
588
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
589
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
590
|
+
* @param {*} [options] Override http request option.
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
*/
|
|
593
|
+
describeScenario(projectId, scenarioId, options) {
|
|
594
|
+
return localVarFp
|
|
595
|
+
.describeScenario(projectId, scenarioId, options)
|
|
596
|
+
.then((request) => request(axios, basePath));
|
|
597
|
+
},
|
|
598
|
+
/**
|
|
599
|
+
* You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
|
|
600
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
601
|
+
* @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
|
|
602
|
+
* @param {*} [options] Override http request option.
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
*/
|
|
605
|
+
executeScenarios(projectId, executeScenariosRequest, options) {
|
|
606
|
+
return localVarFp
|
|
607
|
+
.executeScenarios(projectId, executeScenariosRequest, options)
|
|
608
|
+
.then((request) => request(axios, basePath));
|
|
609
|
+
},
|
|
610
|
+
/**
|
|
611
|
+
* List scenarios.
|
|
612
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
613
|
+
* @param {number} [page] The number of page returns.
|
|
614
|
+
* @param {*} [options] Override http request option.
|
|
615
|
+
* @throws {RequiredError}
|
|
616
|
+
*/
|
|
617
|
+
listScenarios(projectId, page, options) {
|
|
618
|
+
return localVarFp
|
|
619
|
+
.listScenarios(projectId, page, options)
|
|
620
|
+
.then((request) => request(axios, basePath));
|
|
621
|
+
},
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
exports.ScenarioApiFactory = ScenarioApiFactory;
|
|
625
|
+
/**
|
|
626
|
+
* ScenarioApi - object-oriented interface
|
|
627
|
+
* @export
|
|
628
|
+
* @class ScenarioApi
|
|
629
|
+
* @extends {BaseAPI}
|
|
630
|
+
*/
|
|
631
|
+
class ScenarioApi extends base_1.BaseAPI {
|
|
632
|
+
/**
|
|
633
|
+
* Get a scenario.
|
|
634
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
635
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
* @memberof ScenarioApi
|
|
639
|
+
*/
|
|
640
|
+
describeScenario(projectId, scenarioId, options) {
|
|
641
|
+
return (0, exports.ScenarioApiFp)(this.configuration)
|
|
642
|
+
.describeScenario(projectId, scenarioId, options)
|
|
643
|
+
.then((request) => request(this.axios, this.basePath));
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
|
|
647
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
648
|
+
* @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
|
|
649
|
+
* @param {*} [options] Override http request option.
|
|
650
|
+
* @throws {RequiredError}
|
|
651
|
+
* @memberof ScenarioApi
|
|
652
|
+
*/
|
|
653
|
+
executeScenarios(projectId, executeScenariosRequest, options) {
|
|
654
|
+
return (0, exports.ScenarioApiFp)(this.configuration)
|
|
655
|
+
.executeScenarios(projectId, executeScenariosRequest, options)
|
|
656
|
+
.then((request) => request(this.axios, this.basePath));
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* List scenarios.
|
|
660
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
661
|
+
* @param {number} [page] The number of page returns.
|
|
662
|
+
* @param {*} [options] Override http request option.
|
|
663
|
+
* @throws {RequiredError}
|
|
664
|
+
* @memberof ScenarioApi
|
|
665
|
+
*/
|
|
666
|
+
listScenarios(projectId, page, options) {
|
|
667
|
+
return (0, exports.ScenarioApiFp)(this.configuration)
|
|
668
|
+
.listScenarios(projectId, page, options)
|
|
669
|
+
.then((request) => request(this.axios, this.basePath));
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
exports.ScenarioApi = ScenarioApi;
|
|
673
|
+
/**
|
|
674
|
+
* ScheduleApi - axios parameter creator
|
|
675
|
+
* @export
|
|
676
|
+
*/
|
|
677
|
+
const ScheduleApiAxiosParamCreator = function (configuration) {
|
|
678
|
+
return {
|
|
679
|
+
/**
|
|
680
|
+
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
681
|
+
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
*/
|
|
685
|
+
executeSchedule: async (scheduleId, options = {}) => {
|
|
686
|
+
// verify required parameter 'scheduleId' is not null or undefined
|
|
687
|
+
(0, common_1.assertParamExists)("executeSchedule", "scheduleId", scheduleId);
|
|
688
|
+
const localVarPath = `/schedules/{schedule_id}`.replace(`{${"schedule_id"}}`, encodeURIComponent(String(scheduleId)));
|
|
689
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
690
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
691
|
+
let baseOptions;
|
|
692
|
+
if (configuration) {
|
|
693
|
+
baseOptions = configuration.baseOptions;
|
|
694
|
+
}
|
|
695
|
+
const localVarRequestOptions = {
|
|
696
|
+
method: "POST",
|
|
697
|
+
...baseOptions,
|
|
698
|
+
...options,
|
|
699
|
+
};
|
|
700
|
+
const localVarHeaderParameter = {};
|
|
701
|
+
const localVarQueryParameter = {};
|
|
702
|
+
// authentication bearerAuth required
|
|
703
|
+
// http bearer authentication required
|
|
704
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
705
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
706
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
707
|
+
localVarRequestOptions.headers = {
|
|
708
|
+
...localVarHeaderParameter,
|
|
709
|
+
...headersFromBaseOptions,
|
|
710
|
+
...options.headers,
|
|
711
|
+
};
|
|
712
|
+
return {
|
|
713
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
714
|
+
options: localVarRequestOptions,
|
|
715
|
+
};
|
|
716
|
+
},
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
exports.ScheduleApiAxiosParamCreator = ScheduleApiAxiosParamCreator;
|
|
720
|
+
/**
|
|
721
|
+
* ScheduleApi - functional programming interface
|
|
722
|
+
* @export
|
|
723
|
+
*/
|
|
724
|
+
const ScheduleApiFp = function (configuration) {
|
|
725
|
+
const localVarAxiosParamCreator = (0, exports.ScheduleApiAxiosParamCreator)(configuration);
|
|
726
|
+
return {
|
|
727
|
+
/**
|
|
728
|
+
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
729
|
+
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
730
|
+
* @param {*} [options] Override http request option.
|
|
731
|
+
* @throws {RequiredError}
|
|
732
|
+
*/
|
|
733
|
+
async executeSchedule(scheduleId, options) {
|
|
734
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeSchedule(scheduleId, options);
|
|
735
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
736
|
+
},
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
exports.ScheduleApiFp = ScheduleApiFp;
|
|
740
|
+
/**
|
|
741
|
+
* ScheduleApi - factory interface
|
|
742
|
+
* @export
|
|
743
|
+
*/
|
|
744
|
+
const ScheduleApiFactory = function (configuration, basePath, axios) {
|
|
745
|
+
const localVarFp = (0, exports.ScheduleApiFp)(configuration);
|
|
746
|
+
return {
|
|
747
|
+
/**
|
|
748
|
+
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
749
|
+
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
750
|
+
* @param {*} [options] Override http request option.
|
|
751
|
+
* @throws {RequiredError}
|
|
752
|
+
*/
|
|
753
|
+
executeSchedule(scheduleId, options) {
|
|
754
|
+
return localVarFp
|
|
755
|
+
.executeSchedule(scheduleId, options)
|
|
756
|
+
.then((request) => request(axios, basePath));
|
|
757
|
+
},
|
|
758
|
+
};
|
|
759
|
+
};
|
|
760
|
+
exports.ScheduleApiFactory = ScheduleApiFactory;
|
|
761
|
+
/**
|
|
762
|
+
* ScheduleApi - object-oriented interface
|
|
763
|
+
* @export
|
|
764
|
+
* @class ScheduleApi
|
|
765
|
+
* @extends {BaseAPI}
|
|
766
|
+
*/
|
|
767
|
+
class ScheduleApi extends base_1.BaseAPI {
|
|
768
|
+
/**
|
|
769
|
+
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
770
|
+
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
771
|
+
* @param {*} [options] Override http request option.
|
|
772
|
+
* @throws {RequiredError}
|
|
773
|
+
* @memberof ScheduleApi
|
|
774
|
+
*/
|
|
775
|
+
executeSchedule(scheduleId, options) {
|
|
776
|
+
return (0, exports.ScheduleApiFp)(this.configuration)
|
|
777
|
+
.executeSchedule(scheduleId, options)
|
|
778
|
+
.then((request) => request(this.axios, this.basePath));
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
exports.ScheduleApi = ScheduleApi;
|
|
782
|
+
/**
|
|
783
|
+
* UrlReplacementApi - axios parameter creator
|
|
784
|
+
* @export
|
|
785
|
+
*/
|
|
786
|
+
const UrlReplacementApiAxiosParamCreator = function (configuration) {
|
|
787
|
+
return {
|
|
788
|
+
/**
|
|
789
|
+
* Create a new url replacement for the test plan
|
|
790
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
791
|
+
* @param {CreateUrlReplacementRequest} createUrlReplacementRequest The url to replace
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
*/
|
|
795
|
+
createUrlReplacement: async (testPlanId, createUrlReplacementRequest, options = {}) => {
|
|
796
|
+
// verify required parameter 'testPlanId' is not null or undefined
|
|
797
|
+
(0, common_1.assertParamExists)("createUrlReplacement", "testPlanId", testPlanId);
|
|
798
|
+
// verify required parameter 'createUrlReplacementRequest' is not null or undefined
|
|
799
|
+
(0, common_1.assertParamExists)("createUrlReplacement", "createUrlReplacementRequest", createUrlReplacementRequest);
|
|
800
|
+
const localVarPath = `/test_plans/{test_plan_id}/url_replacements`.replace(`{${"test_plan_id"}}`, encodeURIComponent(String(testPlanId)));
|
|
801
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
802
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
803
|
+
let baseOptions;
|
|
804
|
+
if (configuration) {
|
|
805
|
+
baseOptions = configuration.baseOptions;
|
|
806
|
+
}
|
|
807
|
+
const localVarRequestOptions = {
|
|
808
|
+
method: "POST",
|
|
809
|
+
...baseOptions,
|
|
810
|
+
...options,
|
|
811
|
+
};
|
|
812
|
+
const localVarHeaderParameter = {};
|
|
813
|
+
const localVarQueryParameter = {};
|
|
814
|
+
// authentication bearerAuth required
|
|
815
|
+
// http bearer authentication required
|
|
816
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
817
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
818
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
819
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
820
|
+
localVarRequestOptions.headers = {
|
|
821
|
+
...localVarHeaderParameter,
|
|
822
|
+
...headersFromBaseOptions,
|
|
823
|
+
...options.headers,
|
|
824
|
+
};
|
|
825
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUrlReplacementRequest, localVarRequestOptions, configuration);
|
|
826
|
+
return {
|
|
827
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
828
|
+
options: localVarRequestOptions,
|
|
829
|
+
};
|
|
830
|
+
},
|
|
831
|
+
/**
|
|
832
|
+
* Delete a url replacement for the test plan
|
|
833
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
834
|
+
* @param {number} urlReplacementId url_replacement id
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
*/
|
|
838
|
+
deleteUrlReplacement: async (testPlanId, urlReplacementId, options = {}) => {
|
|
839
|
+
// verify required parameter 'testPlanId' is not null or undefined
|
|
840
|
+
(0, common_1.assertParamExists)("deleteUrlReplacement", "testPlanId", testPlanId);
|
|
841
|
+
// verify required parameter 'urlReplacementId' is not null or undefined
|
|
842
|
+
(0, common_1.assertParamExists)("deleteUrlReplacement", "urlReplacementId", urlReplacementId);
|
|
843
|
+
const localVarPath = `/test_plans/{test_plan_id}/url_replacements/{url_replacement_id}`
|
|
844
|
+
.replace(`{${"test_plan_id"}}`, encodeURIComponent(String(testPlanId)))
|
|
845
|
+
.replace(`{${"url_replacement_id"}}`, encodeURIComponent(String(urlReplacementId)));
|
|
846
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
847
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
848
|
+
let baseOptions;
|
|
849
|
+
if (configuration) {
|
|
850
|
+
baseOptions = configuration.baseOptions;
|
|
851
|
+
}
|
|
852
|
+
const localVarRequestOptions = {
|
|
853
|
+
method: "DELETE",
|
|
854
|
+
...baseOptions,
|
|
855
|
+
...options,
|
|
856
|
+
};
|
|
857
|
+
const localVarHeaderParameter = {};
|
|
858
|
+
const localVarQueryParameter = {};
|
|
859
|
+
// authentication bearerAuth required
|
|
860
|
+
// http bearer authentication required
|
|
861
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
862
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
863
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
864
|
+
localVarRequestOptions.headers = {
|
|
865
|
+
...localVarHeaderParameter,
|
|
866
|
+
...headersFromBaseOptions,
|
|
867
|
+
...options.headers,
|
|
868
|
+
};
|
|
869
|
+
return {
|
|
870
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
871
|
+
options: localVarRequestOptions,
|
|
872
|
+
};
|
|
873
|
+
},
|
|
874
|
+
/**
|
|
875
|
+
* List url replacements for the test plan
|
|
876
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
877
|
+
* @param {*} [options] Override http request option.
|
|
878
|
+
* @throws {RequiredError}
|
|
879
|
+
*/
|
|
880
|
+
listUrlReplacements: async (testPlanId, options = {}) => {
|
|
881
|
+
// verify required parameter 'testPlanId' is not null or undefined
|
|
882
|
+
(0, common_1.assertParamExists)("listUrlReplacements", "testPlanId", testPlanId);
|
|
883
|
+
const localVarPath = `/test_plans/{test_plan_id}/url_replacements`.replace(`{${"test_plan_id"}}`, encodeURIComponent(String(testPlanId)));
|
|
884
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
885
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
886
|
+
let baseOptions;
|
|
887
|
+
if (configuration) {
|
|
888
|
+
baseOptions = configuration.baseOptions;
|
|
889
|
+
}
|
|
890
|
+
const localVarRequestOptions = {
|
|
891
|
+
method: "GET",
|
|
892
|
+
...baseOptions,
|
|
893
|
+
...options,
|
|
894
|
+
};
|
|
895
|
+
const localVarHeaderParameter = {};
|
|
896
|
+
const localVarQueryParameter = {};
|
|
897
|
+
// authentication bearerAuth required
|
|
898
|
+
// http bearer authentication required
|
|
899
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
900
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
901
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
902
|
+
localVarRequestOptions.headers = {
|
|
903
|
+
...localVarHeaderParameter,
|
|
904
|
+
...headersFromBaseOptions,
|
|
905
|
+
...options.headers,
|
|
906
|
+
};
|
|
907
|
+
return {
|
|
908
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
909
|
+
options: localVarRequestOptions,
|
|
910
|
+
};
|
|
911
|
+
},
|
|
912
|
+
/**
|
|
913
|
+
* Update a url replacement for the test plan
|
|
914
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
915
|
+
* @param {number} urlReplacementId url_replacement id
|
|
916
|
+
* @param {UpdateUrlReplacementRequest} updateUrlReplacementRequest The url to replace. Either pattern_url or replacement_url is required.
|
|
917
|
+
* @param {*} [options] Override http request option.
|
|
918
|
+
* @throws {RequiredError}
|
|
919
|
+
*/
|
|
920
|
+
updateUrlReplacement: async (testPlanId, urlReplacementId, updateUrlReplacementRequest, options = {}) => {
|
|
921
|
+
// verify required parameter 'testPlanId' is not null or undefined
|
|
922
|
+
(0, common_1.assertParamExists)("updateUrlReplacement", "testPlanId", testPlanId);
|
|
923
|
+
// verify required parameter 'urlReplacementId' is not null or undefined
|
|
924
|
+
(0, common_1.assertParamExists)("updateUrlReplacement", "urlReplacementId", urlReplacementId);
|
|
925
|
+
// verify required parameter 'updateUrlReplacementRequest' is not null or undefined
|
|
926
|
+
(0, common_1.assertParamExists)("updateUrlReplacement", "updateUrlReplacementRequest", updateUrlReplacementRequest);
|
|
927
|
+
const localVarPath = `/test_plans/{test_plan_id}/url_replacements/{url_replacement_id}`
|
|
928
|
+
.replace(`{${"test_plan_id"}}`, encodeURIComponent(String(testPlanId)))
|
|
929
|
+
.replace(`{${"url_replacement_id"}}`, encodeURIComponent(String(urlReplacementId)));
|
|
930
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
931
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
932
|
+
let baseOptions;
|
|
933
|
+
if (configuration) {
|
|
934
|
+
baseOptions = configuration.baseOptions;
|
|
935
|
+
}
|
|
936
|
+
const localVarRequestOptions = {
|
|
937
|
+
method: "PUT",
|
|
938
|
+
...baseOptions,
|
|
939
|
+
...options,
|
|
940
|
+
};
|
|
941
|
+
const localVarHeaderParameter = {};
|
|
942
|
+
const localVarQueryParameter = {};
|
|
943
|
+
// authentication bearerAuth required
|
|
944
|
+
// http bearer authentication required
|
|
945
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
946
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
947
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
948
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
949
|
+
localVarRequestOptions.headers = {
|
|
950
|
+
...localVarHeaderParameter,
|
|
951
|
+
...headersFromBaseOptions,
|
|
952
|
+
...options.headers,
|
|
953
|
+
};
|
|
954
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUrlReplacementRequest, localVarRequestOptions, configuration);
|
|
955
|
+
return {
|
|
956
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
957
|
+
options: localVarRequestOptions,
|
|
958
|
+
};
|
|
959
|
+
},
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
exports.UrlReplacementApiAxiosParamCreator = UrlReplacementApiAxiosParamCreator;
|
|
963
|
+
/**
|
|
964
|
+
* UrlReplacementApi - functional programming interface
|
|
965
|
+
* @export
|
|
966
|
+
*/
|
|
967
|
+
const UrlReplacementApiFp = function (configuration) {
|
|
968
|
+
const localVarAxiosParamCreator = (0, exports.UrlReplacementApiAxiosParamCreator)(configuration);
|
|
969
|
+
return {
|
|
970
|
+
/**
|
|
971
|
+
* Create a new url replacement for the test plan
|
|
972
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
973
|
+
* @param {CreateUrlReplacementRequest} createUrlReplacementRequest The url to replace
|
|
974
|
+
* @param {*} [options] Override http request option.
|
|
975
|
+
* @throws {RequiredError}
|
|
976
|
+
*/
|
|
977
|
+
async createUrlReplacement(testPlanId, createUrlReplacementRequest, options) {
|
|
978
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createUrlReplacement(testPlanId, createUrlReplacementRequest, options);
|
|
979
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
980
|
+
},
|
|
981
|
+
/**
|
|
982
|
+
* Delete a url replacement for the test plan
|
|
983
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
984
|
+
* @param {number} urlReplacementId url_replacement id
|
|
985
|
+
* @param {*} [options] Override http request option.
|
|
986
|
+
* @throws {RequiredError}
|
|
987
|
+
*/
|
|
988
|
+
async deleteUrlReplacement(testPlanId, urlReplacementId, options) {
|
|
989
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUrlReplacement(testPlanId, urlReplacementId, options);
|
|
990
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
991
|
+
},
|
|
992
|
+
/**
|
|
993
|
+
* List url replacements for the test plan
|
|
994
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
995
|
+
* @param {*} [options] Override http request option.
|
|
996
|
+
* @throws {RequiredError}
|
|
997
|
+
*/
|
|
998
|
+
async listUrlReplacements(testPlanId, options) {
|
|
999
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUrlReplacements(testPlanId, options);
|
|
1000
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1001
|
+
},
|
|
1002
|
+
/**
|
|
1003
|
+
* Update a url replacement for the test plan
|
|
1004
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
1005
|
+
* @param {number} urlReplacementId url_replacement id
|
|
1006
|
+
* @param {UpdateUrlReplacementRequest} updateUrlReplacementRequest The url to replace. Either pattern_url or replacement_url is required.
|
|
1007
|
+
* @param {*} [options] Override http request option.
|
|
1008
|
+
* @throws {RequiredError}
|
|
1009
|
+
*/
|
|
1010
|
+
async updateUrlReplacement(testPlanId, urlReplacementId, updateUrlReplacementRequest, options) {
|
|
1011
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUrlReplacement(testPlanId, urlReplacementId, updateUrlReplacementRequest, options);
|
|
1012
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1013
|
+
},
|
|
1014
|
+
};
|
|
1015
|
+
};
|
|
1016
|
+
exports.UrlReplacementApiFp = UrlReplacementApiFp;
|
|
1017
|
+
/**
|
|
1018
|
+
* UrlReplacementApi - factory interface
|
|
1019
|
+
* @export
|
|
1020
|
+
*/
|
|
1021
|
+
const UrlReplacementApiFactory = function (configuration, basePath, axios) {
|
|
1022
|
+
const localVarFp = (0, exports.UrlReplacementApiFp)(configuration);
|
|
1023
|
+
return {
|
|
1024
|
+
/**
|
|
1025
|
+
* Create a new url replacement for the test plan
|
|
1026
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
1027
|
+
* @param {CreateUrlReplacementRequest} createUrlReplacementRequest The url to replace
|
|
1028
|
+
* @param {*} [options] Override http request option.
|
|
1029
|
+
* @throws {RequiredError}
|
|
1030
|
+
*/
|
|
1031
|
+
createUrlReplacement(testPlanId, createUrlReplacementRequest, options) {
|
|
1032
|
+
return localVarFp
|
|
1033
|
+
.createUrlReplacement(testPlanId, createUrlReplacementRequest, options)
|
|
1034
|
+
.then((request) => request(axios, basePath));
|
|
1035
|
+
},
|
|
1036
|
+
/**
|
|
1037
|
+
* Delete a url replacement for the test plan
|
|
1038
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
1039
|
+
* @param {number} urlReplacementId url_replacement id
|
|
1040
|
+
* @param {*} [options] Override http request option.
|
|
1041
|
+
* @throws {RequiredError}
|
|
1042
|
+
*/
|
|
1043
|
+
deleteUrlReplacement(testPlanId, urlReplacementId, options) {
|
|
1044
|
+
return localVarFp
|
|
1045
|
+
.deleteUrlReplacement(testPlanId, urlReplacementId, options)
|
|
1046
|
+
.then((request) => request(axios, basePath));
|
|
1047
|
+
},
|
|
1048
|
+
/**
|
|
1049
|
+
* List url replacements for the test plan
|
|
1050
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
1051
|
+
* @param {*} [options] Override http request option.
|
|
1052
|
+
* @throws {RequiredError}
|
|
1053
|
+
*/
|
|
1054
|
+
listUrlReplacements(testPlanId, options) {
|
|
1055
|
+
return localVarFp
|
|
1056
|
+
.listUrlReplacements(testPlanId, options)
|
|
1057
|
+
.then((request) => request(axios, basePath));
|
|
1058
|
+
},
|
|
1059
|
+
/**
|
|
1060
|
+
* Update a url replacement for the test plan
|
|
1061
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
1062
|
+
* @param {number} urlReplacementId url_replacement id
|
|
1063
|
+
* @param {UpdateUrlReplacementRequest} updateUrlReplacementRequest The url to replace. Either pattern_url or replacement_url is required.
|
|
1064
|
+
* @param {*} [options] Override http request option.
|
|
1065
|
+
* @throws {RequiredError}
|
|
1066
|
+
*/
|
|
1067
|
+
updateUrlReplacement(testPlanId, urlReplacementId, updateUrlReplacementRequest, options) {
|
|
1068
|
+
return localVarFp
|
|
1069
|
+
.updateUrlReplacement(testPlanId, urlReplacementId, updateUrlReplacementRequest, options)
|
|
1070
|
+
.then((request) => request(axios, basePath));
|
|
1071
|
+
},
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
exports.UrlReplacementApiFactory = UrlReplacementApiFactory;
|
|
1075
|
+
/**
|
|
1076
|
+
* UrlReplacementApi - object-oriented interface
|
|
1077
|
+
* @export
|
|
1078
|
+
* @class UrlReplacementApi
|
|
1079
|
+
* @extends {BaseAPI}
|
|
1080
|
+
*/
|
|
1081
|
+
class UrlReplacementApi extends base_1.BaseAPI {
|
|
1082
|
+
/**
|
|
1083
|
+
* Create a new url replacement for the test plan
|
|
1084
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
1085
|
+
* @param {CreateUrlReplacementRequest} createUrlReplacementRequest The url to replace
|
|
1086
|
+
* @param {*} [options] Override http request option.
|
|
1087
|
+
* @throws {RequiredError}
|
|
1088
|
+
* @memberof UrlReplacementApi
|
|
1089
|
+
*/
|
|
1090
|
+
createUrlReplacement(testPlanId, createUrlReplacementRequest, options) {
|
|
1091
|
+
return (0, exports.UrlReplacementApiFp)(this.configuration)
|
|
1092
|
+
.createUrlReplacement(testPlanId, createUrlReplacementRequest, options)
|
|
1093
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Delete a url replacement for the test plan
|
|
1097
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
1098
|
+
* @param {number} urlReplacementId url_replacement id
|
|
1099
|
+
* @param {*} [options] Override http request option.
|
|
1100
|
+
* @throws {RequiredError}
|
|
1101
|
+
* @memberof UrlReplacementApi
|
|
1102
|
+
*/
|
|
1103
|
+
deleteUrlReplacement(testPlanId, urlReplacementId, options) {
|
|
1104
|
+
return (0, exports.UrlReplacementApiFp)(this.configuration)
|
|
1105
|
+
.deleteUrlReplacement(testPlanId, urlReplacementId, options)
|
|
1106
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
* List url replacements for the test plan
|
|
1110
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
1111
|
+
* @param {*} [options] Override http request option.
|
|
1112
|
+
* @throws {RequiredError}
|
|
1113
|
+
* @memberof UrlReplacementApi
|
|
1114
|
+
*/
|
|
1115
|
+
listUrlReplacements(testPlanId, options) {
|
|
1116
|
+
return (0, exports.UrlReplacementApiFp)(this.configuration)
|
|
1117
|
+
.listUrlReplacements(testPlanId, options)
|
|
1118
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Update a url replacement for the test plan
|
|
1122
|
+
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
1123
|
+
* @param {number} urlReplacementId url_replacement id
|
|
1124
|
+
* @param {UpdateUrlReplacementRequest} updateUrlReplacementRequest The url to replace. Either pattern_url or replacement_url is required.
|
|
1125
|
+
* @param {*} [options] Override http request option.
|
|
1126
|
+
* @throws {RequiredError}
|
|
1127
|
+
* @memberof UrlReplacementApi
|
|
1128
|
+
*/
|
|
1129
|
+
updateUrlReplacement(testPlanId, urlReplacementId, updateUrlReplacementRequest, options) {
|
|
1130
|
+
return (0, exports.UrlReplacementApiFp)(this.configuration)
|
|
1131
|
+
.updateUrlReplacement(testPlanId, urlReplacementId, updateUrlReplacementRequest, options)
|
|
1132
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
exports.UrlReplacementApi = UrlReplacementApi;
|