@autifyhq/autify-sdk 0.19.0 → 0.20.0

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.
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from "axios";
2
- import { AccessPoint, CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, ExecuteScheduleRequest, ProjectInfo, Scenario, TestPlanResult, UpdateUrlReplacementRequest, UrlReplacement, UsedCredits } from "./openapi";
2
+ import { AccessPoint, CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateTestPlanVariableRequest, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, ExecuteScheduleRequest, ProjectInfo, Scenario, TestPlanResult, TestPlanVariable, UpdateTestPlanVariableRequest, UpdateUrlReplacementRequest, UrlReplacement, UsedCredits } from "./openapi";
3
3
  export { BASE_PATH as WEB_BASE_PATH } from "./openapi/base";
4
4
  type Options = Readonly<{
5
5
  basePath?: string;
@@ -77,11 +77,12 @@ export declare class WebClient {
77
77
  * @summary Get a test result.
78
78
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
79
79
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
80
+ * @param {boolean} [getDetails] The flag to get details of the test case result.
80
81
  * @param {*} [options] Override http request option.
81
82
  * @throws {RequiredError}
82
83
  * @memberof ResultApi
83
84
  */
84
- describeResult(projectId: number, resultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeResult200Response, any>>;
85
+ describeResult(projectId: number, resultId: number, getDetails?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeResult200Response, any>>;
85
86
  /**
86
87
  * List test results.
87
88
  * @summary List test results.
@@ -133,6 +134,43 @@ export declare class WebClient {
133
134
  * @memberof ScheduleApi
134
135
  */
135
136
  executeSchedule(scheduleId: number, executeScheduleRequest?: ExecuteScheduleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteSchedule200Response, any>>;
137
+ private readonly testPlanVariableApi;
138
+ /**
139
+ * Create a new variable for the test plan
140
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
141
+ * @param {CreateTestPlanVariableRequest} createTestPlanVariableRequest The new variable key and default value to use in the test plan
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ * @memberof TestPlanVariableApi
145
+ */
146
+ createTestPlanVariable(testPlanId: number, createTestPlanVariableRequest: CreateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any>>;
147
+ /**
148
+ * Delete an existing test plan variable for the test plan
149
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
150
+ * @param {number} testPlanVariableId test_plan_variable id
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ * @memberof TestPlanVariableApi
154
+ */
155
+ deleteTestPlanVariable(testPlanId: number, testPlanVariableId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
156
+ /**
157
+ * List the test plan\'s variables
158
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ * @memberof TestPlanVariableApi
162
+ */
163
+ listTestPlanVariable(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable[], any>>;
164
+ /**
165
+ * Update a url replacement for the test plan
166
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
167
+ * @param {number} testPlanVariableId test_plan_variable id
168
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ * @memberof TestPlanVariableApi
172
+ */
173
+ updateTestPlanVariable(testPlanId: number, testPlanVariableId: number, updateTestPlanVariableRequest: UpdateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any>>;
136
174
  private readonly urlReplacementApi;
137
175
  /**
138
176
  * Create a new url replacement for the test plan
@@ -43,6 +43,7 @@ class WebClient {
43
43
  this.resultApi = new openapi_1.ResultApi(configuration);
44
44
  this.scenarioApi = new openapi_1.ScenarioApi(configuration);
45
45
  this.scheduleApi = new openapi_1.ScheduleApi(configuration);
46
+ this.testPlanVariableApi = new openapi_1.TestPlanVariableApi(configuration);
46
47
  this.urlReplacementApi = new openapi_1.UrlReplacementApi(configuration);
47
48
  }
48
49
  /**
@@ -121,12 +122,13 @@ class WebClient {
121
122
  * @summary Get a test result.
122
123
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
123
124
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
125
+ * @param {boolean} [getDetails] The flag to get details of the test case result.
124
126
  * @param {*} [options] Override http request option.
125
127
  * @throws {RequiredError}
126
128
  * @memberof ResultApi
127
129
  */
128
- describeResult(projectId, resultId, options) {
129
- return this.resultApi.describeResult(projectId, resultId, options);
130
+ describeResult(projectId, resultId, getDetails, options) {
131
+ return this.resultApi.describeResult(projectId, resultId, getDetails, options);
130
132
  }
131
133
  /**
132
134
  * List test results.
@@ -187,6 +189,50 @@ class WebClient {
187
189
  executeSchedule(scheduleId, executeScheduleRequest, options) {
188
190
  return this.scheduleApi.executeSchedule(scheduleId, executeScheduleRequest, options);
189
191
  }
192
+ /**
193
+ * Create a new variable for the test plan
194
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
195
+ * @param {CreateTestPlanVariableRequest} createTestPlanVariableRequest The new variable key and default value to use in the test plan
196
+ * @param {*} [options] Override http request option.
197
+ * @throws {RequiredError}
198
+ * @memberof TestPlanVariableApi
199
+ */
200
+ createTestPlanVariable(testPlanId, createTestPlanVariableRequest, options) {
201
+ return this.testPlanVariableApi.createTestPlanVariable(testPlanId, createTestPlanVariableRequest, options);
202
+ }
203
+ /**
204
+ * Delete an existing test plan variable for the test plan
205
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
206
+ * @param {number} testPlanVariableId test_plan_variable id
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ * @memberof TestPlanVariableApi
210
+ */
211
+ deleteTestPlanVariable(testPlanId, testPlanVariableId, options) {
212
+ return this.testPlanVariableApi.deleteTestPlanVariable(testPlanId, testPlanVariableId, options);
213
+ }
214
+ /**
215
+ * List the test plan\'s variables
216
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ * @memberof TestPlanVariableApi
220
+ */
221
+ listTestPlanVariable(testPlanId, options) {
222
+ return this.testPlanVariableApi.listTestPlanVariable(testPlanId, options);
223
+ }
224
+ /**
225
+ * Update a url replacement for the test plan
226
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
227
+ * @param {number} testPlanVariableId test_plan_variable id
228
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ * @memberof TestPlanVariableApi
232
+ */
233
+ updateTestPlanVariable(testPlanId, testPlanVariableId, updateTestPlanVariableRequest, options) {
234
+ return this.testPlanVariableApi.updateTestPlanVariable(testPlanId, testPlanVariableId, updateTestPlanVariableRequest, options);
235
+ }
190
236
  /**
191
237
  * Create a new url replacement for the test plan
192
238
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
@@ -253,6 +253,51 @@ export interface CreateAccessPointResult {
253
253
  */
254
254
  updated_at?: string;
255
255
  }
256
+ /**
257
+ *
258
+ * @export
259
+ * @interface CreateTestPlanVariable400Response
260
+ */
261
+ export interface CreateTestPlanVariable400Response {
262
+ /**
263
+ *
264
+ * @type {Array<CreateTestPlanVariable400ResponseErrorsInner>}
265
+ * @memberof CreateTestPlanVariable400Response
266
+ */
267
+ errors?: Array<CreateTestPlanVariable400ResponseErrorsInner>;
268
+ }
269
+ /**
270
+ *
271
+ * @export
272
+ * @interface CreateTestPlanVariable400ResponseErrorsInner
273
+ */
274
+ export interface CreateTestPlanVariable400ResponseErrorsInner {
275
+ /**
276
+ *
277
+ * @type {string}
278
+ * @memberof CreateTestPlanVariable400ResponseErrorsInner
279
+ */
280
+ message?: string;
281
+ }
282
+ /**
283
+ *
284
+ * @export
285
+ * @interface CreateTestPlanVariableRequest
286
+ */
287
+ export interface CreateTestPlanVariableRequest {
288
+ /**
289
+ *
290
+ * @type {string}
291
+ * @memberof CreateTestPlanVariableRequest
292
+ */
293
+ key?: string;
294
+ /**
295
+ *
296
+ * @type {string}
297
+ * @memberof CreateTestPlanVariableRequest
298
+ */
299
+ default_value?: string;
300
+ }
256
301
  /**
257
302
  *
258
303
  * @export
@@ -1108,6 +1153,68 @@ export declare const TestPlanResultStatus: {
1108
1153
  readonly Canceled: "canceled";
1109
1154
  };
1110
1155
  export type TestPlanResultStatus = (typeof TestPlanResultStatus)[keyof typeof TestPlanResultStatus];
1156
+ /**
1157
+ *
1158
+ * @export
1159
+ * @interface TestPlanVariable
1160
+ */
1161
+ export interface TestPlanVariable {
1162
+ /**
1163
+ *
1164
+ * @type {number}
1165
+ * @memberof TestPlanVariable
1166
+ */
1167
+ id: number;
1168
+ /**
1169
+ *
1170
+ * @type {number}
1171
+ * @memberof TestPlanVariable
1172
+ */
1173
+ test_plan_id: number;
1174
+ /**
1175
+ *
1176
+ * @type {string}
1177
+ * @memberof TestPlanVariable
1178
+ */
1179
+ key: string;
1180
+ /**
1181
+ *
1182
+ * @type {string}
1183
+ * @memberof TestPlanVariable
1184
+ */
1185
+ default_value: string;
1186
+ /**
1187
+ *
1188
+ * @type {string}
1189
+ * @memberof TestPlanVariable
1190
+ */
1191
+ created_at: string;
1192
+ /**
1193
+ *
1194
+ * @type {string}
1195
+ * @memberof TestPlanVariable
1196
+ */
1197
+ updated_at: string;
1198
+ }
1199
+ /**
1200
+ *
1201
+ * @export
1202
+ * @interface UpdateTestPlanVariableRequest
1203
+ */
1204
+ export interface UpdateTestPlanVariableRequest {
1205
+ /**
1206
+ *
1207
+ * @type {string}
1208
+ * @memberof UpdateTestPlanVariableRequest
1209
+ */
1210
+ key?: string;
1211
+ /**
1212
+ *
1213
+ * @type {string}
1214
+ * @memberof UpdateTestPlanVariableRequest
1215
+ */
1216
+ default_value?: string;
1217
+ }
1111
1218
  /**
1112
1219
  *
1113
1220
  * @export
@@ -1533,10 +1640,11 @@ export declare const ResultApiAxiosParamCreator: (configuration?: Configuration)
1533
1640
  * @summary Get a test result.
1534
1641
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
1535
1642
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
1643
+ * @param {boolean} [getDetails] The flag to get details of the test case result.
1536
1644
  * @param {*} [options] Override http request option.
1537
1645
  * @throws {RequiredError}
1538
1646
  */
1539
- describeResult: (projectId: number, resultId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1647
+ describeResult: (projectId: number, resultId: number, getDetails?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1540
1648
  /**
1541
1649
  * List test results.
1542
1650
  * @summary List test results.
@@ -1559,10 +1667,11 @@ export declare const ResultApiFp: (configuration?: Configuration) => {
1559
1667
  * @summary Get a test result.
1560
1668
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
1561
1669
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
1670
+ * @param {boolean} [getDetails] The flag to get details of the test case result.
1562
1671
  * @param {*} [options] Override http request option.
1563
1672
  * @throws {RequiredError}
1564
1673
  */
1565
- describeResult(projectId: number, resultId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DescribeResult200Response>>;
1674
+ describeResult(projectId: number, resultId: number, getDetails?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DescribeResult200Response>>;
1566
1675
  /**
1567
1676
  * List test results.
1568
1677
  * @summary List test results.
@@ -1585,10 +1694,11 @@ export declare const ResultApiFactory: (configuration?: Configuration, basePath?
1585
1694
  * @summary Get a test result.
1586
1695
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
1587
1696
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
1697
+ * @param {boolean} [getDetails] The flag to get details of the test case result.
1588
1698
  * @param {*} [options] Override http request option.
1589
1699
  * @throws {RequiredError}
1590
1700
  */
1591
- describeResult(projectId: number, resultId: number, options?: any): AxiosPromise<DescribeResult200Response>;
1701
+ describeResult(projectId: number, resultId: number, getDetails?: boolean, options?: any): AxiosPromise<DescribeResult200Response>;
1592
1702
  /**
1593
1703
  * List test results.
1594
1704
  * @summary List test results.
@@ -1613,11 +1723,12 @@ export declare class ResultApi extends BaseAPI {
1613
1723
  * @summary Get a test result.
1614
1724
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
1615
1725
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
1726
+ * @param {boolean} [getDetails] The flag to get details of the test case result.
1616
1727
  * @param {*} [options] Override http request option.
1617
1728
  * @throws {RequiredError}
1618
1729
  * @memberof ResultApi
1619
1730
  */
1620
- describeResult(projectId: number, resultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeResult200Response, any>>;
1731
+ describeResult(projectId: number, resultId: number, getDetails?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeResult200Response, any>>;
1621
1732
  /**
1622
1733
  * List test results.
1623
1734
  * @summary List test results.
@@ -1819,6 +1930,164 @@ export declare class ScheduleApi extends BaseAPI {
1819
1930
  */
1820
1931
  executeSchedule(scheduleId: number, executeScheduleRequest?: ExecuteScheduleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteSchedule200Response, any>>;
1821
1932
  }
1933
+ /**
1934
+ * TestPlanVariableApi - axios parameter creator
1935
+ * @export
1936
+ */
1937
+ export declare const TestPlanVariableApiAxiosParamCreator: (configuration?: Configuration) => {
1938
+ /**
1939
+ * Create a new variable for the test plan
1940
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1941
+ * @param {CreateTestPlanVariableRequest} createTestPlanVariableRequest The new variable key and default value to use in the test plan
1942
+ * @param {*} [options] Override http request option.
1943
+ * @throws {RequiredError}
1944
+ */
1945
+ createTestPlanVariable: (testPlanId: number, createTestPlanVariableRequest: CreateTestPlanVariableRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1946
+ /**
1947
+ * Delete an existing test plan variable for the test plan
1948
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
1949
+ * @param {number} testPlanVariableId test_plan_variable id
1950
+ * @param {*} [options] Override http request option.
1951
+ * @throws {RequiredError}
1952
+ */
1953
+ deleteTestPlanVariable: (testPlanId: number, testPlanVariableId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1954
+ /**
1955
+ * List the test plan\'s variables
1956
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1957
+ * @param {*} [options] Override http request option.
1958
+ * @throws {RequiredError}
1959
+ */
1960
+ listTestPlanVariable: (testPlanId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1961
+ /**
1962
+ * Update a url replacement for the test plan
1963
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1964
+ * @param {number} testPlanVariableId test_plan_variable id
1965
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1966
+ * @param {*} [options] Override http request option.
1967
+ * @throws {RequiredError}
1968
+ */
1969
+ updateTestPlanVariable: (testPlanId: number, testPlanVariableId: number, updateTestPlanVariableRequest: UpdateTestPlanVariableRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1970
+ };
1971
+ /**
1972
+ * TestPlanVariableApi - functional programming interface
1973
+ * @export
1974
+ */
1975
+ export declare const TestPlanVariableApiFp: (configuration?: Configuration) => {
1976
+ /**
1977
+ * Create a new variable for the test plan
1978
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1979
+ * @param {CreateTestPlanVariableRequest} createTestPlanVariableRequest The new variable key and default value to use in the test plan
1980
+ * @param {*} [options] Override http request option.
1981
+ * @throws {RequiredError}
1982
+ */
1983
+ createTestPlanVariable(testPlanId: number, createTestPlanVariableRequest: CreateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TestPlanVariable>>;
1984
+ /**
1985
+ * Delete an existing test plan variable for the test plan
1986
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
1987
+ * @param {number} testPlanVariableId test_plan_variable id
1988
+ * @param {*} [options] Override http request option.
1989
+ * @throws {RequiredError}
1990
+ */
1991
+ deleteTestPlanVariable(testPlanId: number, testPlanVariableId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
1992
+ /**
1993
+ * List the test plan\'s variables
1994
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1995
+ * @param {*} [options] Override http request option.
1996
+ * @throws {RequiredError}
1997
+ */
1998
+ listTestPlanVariable(testPlanId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TestPlanVariable>>>;
1999
+ /**
2000
+ * Update a url replacement for the test plan
2001
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2002
+ * @param {number} testPlanVariableId test_plan_variable id
2003
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ */
2007
+ updateTestPlanVariable(testPlanId: number, testPlanVariableId: number, updateTestPlanVariableRequest: UpdateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TestPlanVariable>>;
2008
+ };
2009
+ /**
2010
+ * TestPlanVariableApi - factory interface
2011
+ * @export
2012
+ */
2013
+ export declare const TestPlanVariableApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2014
+ /**
2015
+ * Create a new variable for the test plan
2016
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2017
+ * @param {CreateTestPlanVariableRequest} createTestPlanVariableRequest The new variable key and default value to use in the test plan
2018
+ * @param {*} [options] Override http request option.
2019
+ * @throws {RequiredError}
2020
+ */
2021
+ createTestPlanVariable(testPlanId: number, createTestPlanVariableRequest: CreateTestPlanVariableRequest, options?: any): AxiosPromise<TestPlanVariable>;
2022
+ /**
2023
+ * Delete an existing test plan variable for the test plan
2024
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
2025
+ * @param {number} testPlanVariableId test_plan_variable id
2026
+ * @param {*} [options] Override http request option.
2027
+ * @throws {RequiredError}
2028
+ */
2029
+ deleteTestPlanVariable(testPlanId: number, testPlanVariableId: number, options?: any): AxiosPromise<string>;
2030
+ /**
2031
+ * List the test plan\'s variables
2032
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2033
+ * @param {*} [options] Override http request option.
2034
+ * @throws {RequiredError}
2035
+ */
2036
+ listTestPlanVariable(testPlanId: number, options?: any): AxiosPromise<Array<TestPlanVariable>>;
2037
+ /**
2038
+ * Update a url replacement for the test plan
2039
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2040
+ * @param {number} testPlanVariableId test_plan_variable id
2041
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
2042
+ * @param {*} [options] Override http request option.
2043
+ * @throws {RequiredError}
2044
+ */
2045
+ updateTestPlanVariable(testPlanId: number, testPlanVariableId: number, updateTestPlanVariableRequest: UpdateTestPlanVariableRequest, options?: any): AxiosPromise<TestPlanVariable>;
2046
+ };
2047
+ /**
2048
+ * TestPlanVariableApi - object-oriented interface
2049
+ * @export
2050
+ * @class TestPlanVariableApi
2051
+ * @extends {BaseAPI}
2052
+ */
2053
+ export declare class TestPlanVariableApi extends BaseAPI {
2054
+ /**
2055
+ * Create a new variable for the test plan
2056
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2057
+ * @param {CreateTestPlanVariableRequest} createTestPlanVariableRequest The new variable key and default value to use in the test plan
2058
+ * @param {*} [options] Override http request option.
2059
+ * @throws {RequiredError}
2060
+ * @memberof TestPlanVariableApi
2061
+ */
2062
+ createTestPlanVariable(testPlanId: number, createTestPlanVariableRequest: CreateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any>>;
2063
+ /**
2064
+ * Delete an existing test plan variable for the test plan
2065
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
2066
+ * @param {number} testPlanVariableId test_plan_variable id
2067
+ * @param {*} [options] Override http request option.
2068
+ * @throws {RequiredError}
2069
+ * @memberof TestPlanVariableApi
2070
+ */
2071
+ deleteTestPlanVariable(testPlanId: number, testPlanVariableId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
2072
+ /**
2073
+ * List the test plan\'s variables
2074
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2075
+ * @param {*} [options] Override http request option.
2076
+ * @throws {RequiredError}
2077
+ * @memberof TestPlanVariableApi
2078
+ */
2079
+ listTestPlanVariable(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable[], any>>;
2080
+ /**
2081
+ * Update a url replacement for the test plan
2082
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2083
+ * @param {number} testPlanVariableId test_plan_variable id
2084
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
2085
+ * @param {*} [options] Override http request option.
2086
+ * @throws {RequiredError}
2087
+ * @memberof TestPlanVariableApi
2088
+ */
2089
+ updateTestPlanVariable(testPlanId: number, testPlanVariableId: number, updateTestPlanVariableRequest: UpdateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any>>;
2090
+ }
1822
2091
  /**
1823
2092
  * UrlReplacementApi - axios parameter creator
1824
2093
  * @export
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
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.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.CapabilityApi = exports.CapabilityApiFactory = exports.CapabilityApiFp = exports.CapabilityApiAxiosParamCreator = exports.AutifyConnectApi = exports.AutifyConnectApiFactory = exports.AutifyConnectApiFp = exports.AutifyConnectApiAxiosParamCreator = exports.TestPlanResultStatus = exports.TestCaseResultStatus = exports.ExecuteScenariosRequestExecutionTypeEnum = void 0;
16
+ exports.UrlReplacementApi = exports.UrlReplacementApiFactory = exports.UrlReplacementApiFp = exports.UrlReplacementApiAxiosParamCreator = exports.TestPlanVariableApi = exports.TestPlanVariableApiFactory = exports.TestPlanVariableApiFp = exports.TestPlanVariableApiAxiosParamCreator = 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.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.CapabilityApi = exports.CapabilityApiFactory = exports.CapabilityApiFp = exports.CapabilityApiAxiosParamCreator = exports.AutifyConnectApi = exports.AutifyConnectApiFactory = exports.AutifyConnectApiFp = exports.AutifyConnectApiAxiosParamCreator = exports.TestPlanResultStatus = exports.TestCaseResultStatus = exports.ExecuteScenariosRequestExecutionTypeEnum = void 0;
17
17
  const tslib_1 = require("tslib");
18
18
  const axios_1 = tslib_1.__importDefault(require("axios"));
19
19
  // URLSearchParams not necessarily used
@@ -731,10 +731,11 @@ const ResultApiAxiosParamCreator = function (configuration) {
731
731
  * @summary Get a test result.
732
732
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
733
733
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
734
+ * @param {boolean} [getDetails] The flag to get details of the test case result.
734
735
  * @param {*} [options] Override http request option.
735
736
  * @throws {RequiredError}
736
737
  */
737
- describeResult: async (projectId, resultId, options = {}) => {
738
+ describeResult: async (projectId, resultId, getDetails, options = {}) => {
738
739
  // verify required parameter 'projectId' is not null or undefined
739
740
  (0, common_1.assertParamExists)("describeResult", "projectId", projectId);
740
741
  // verify required parameter 'resultId' is not null or undefined
@@ -758,6 +759,9 @@ const ResultApiAxiosParamCreator = function (configuration) {
758
759
  // authentication bearerAuth required
759
760
  // http bearer authentication required
760
761
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
762
+ if (getDetails !== undefined) {
763
+ localVarQueryParameter["get_details"] = getDetails;
764
+ }
761
765
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
762
766
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
763
767
  localVarRequestOptions.headers = {
@@ -836,11 +840,12 @@ const ResultApiFp = function (configuration) {
836
840
  * @summary Get a test result.
837
841
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
838
842
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
843
+ * @param {boolean} [getDetails] The flag to get details of the test case result.
839
844
  * @param {*} [options] Override http request option.
840
845
  * @throws {RequiredError}
841
846
  */
842
- async describeResult(projectId, resultId, options) {
843
- const localVarAxiosArgs = await localVarAxiosParamCreator.describeResult(projectId, resultId, options);
847
+ async describeResult(projectId, resultId, getDetails, options) {
848
+ const localVarAxiosArgs = await localVarAxiosParamCreator.describeResult(projectId, resultId, getDetails, options);
844
849
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
845
850
  },
846
851
  /**
@@ -872,12 +877,13 @@ const ResultApiFactory = function (configuration, basePath, axios) {
872
877
  * @summary Get a test result.
873
878
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
874
879
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
880
+ * @param {boolean} [getDetails] The flag to get details of the test case result.
875
881
  * @param {*} [options] Override http request option.
876
882
  * @throws {RequiredError}
877
883
  */
878
- describeResult(projectId, resultId, options) {
884
+ describeResult(projectId, resultId, getDetails, options) {
879
885
  return localVarFp
880
- .describeResult(projectId, resultId, options)
886
+ .describeResult(projectId, resultId, getDetails, options)
881
887
  .then((request) => request(axios, basePath));
882
888
  },
883
889
  /**
@@ -910,13 +916,14 @@ class ResultApi extends base_1.BaseAPI {
910
916
  * @summary Get a test result.
911
917
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
912
918
  * @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
919
+ * @param {boolean} [getDetails] The flag to get details of the test case result.
913
920
  * @param {*} [options] Override http request option.
914
921
  * @throws {RequiredError}
915
922
  * @memberof ResultApi
916
923
  */
917
- describeResult(projectId, resultId, options) {
924
+ describeResult(projectId, resultId, getDetails, options) {
918
925
  return (0, exports.ResultApiFp)(this.configuration)
919
- .describeResult(projectId, resultId, options)
926
+ .describeResult(projectId, resultId, getDetails, options)
920
927
  .then((request) => request(this.axios, this.basePath));
921
928
  }
922
929
  /**
@@ -1330,6 +1337,360 @@ class ScheduleApi extends base_1.BaseAPI {
1330
1337
  }
1331
1338
  }
1332
1339
  exports.ScheduleApi = ScheduleApi;
1340
+ /**
1341
+ * TestPlanVariableApi - axios parameter creator
1342
+ * @export
1343
+ */
1344
+ const TestPlanVariableApiAxiosParamCreator = function (configuration) {
1345
+ return {
1346
+ /**
1347
+ * Create a new variable for the test plan
1348
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1349
+ * @param {CreateTestPlanVariableRequest} createTestPlanVariableRequest The new variable key and default value to use in the test plan
1350
+ * @param {*} [options] Override http request option.
1351
+ * @throws {RequiredError}
1352
+ */
1353
+ createTestPlanVariable: async (testPlanId, createTestPlanVariableRequest, options = {}) => {
1354
+ // verify required parameter 'testPlanId' is not null or undefined
1355
+ (0, common_1.assertParamExists)("createTestPlanVariable", "testPlanId", testPlanId);
1356
+ // verify required parameter 'createTestPlanVariableRequest' is not null or undefined
1357
+ (0, common_1.assertParamExists)("createTestPlanVariable", "createTestPlanVariableRequest", createTestPlanVariableRequest);
1358
+ const localVarPath = `/test_plans/{test_plan_id}/test_plan_variables`.replace(`{${"test_plan_id"}}`, encodeURIComponent(String(testPlanId)));
1359
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1360
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1361
+ let baseOptions;
1362
+ if (configuration) {
1363
+ baseOptions = configuration.baseOptions;
1364
+ }
1365
+ const localVarRequestOptions = {
1366
+ method: "POST",
1367
+ ...baseOptions,
1368
+ ...options,
1369
+ };
1370
+ const localVarHeaderParameter = {};
1371
+ const localVarQueryParameter = {};
1372
+ // authentication bearerAuth required
1373
+ // http bearer authentication required
1374
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1375
+ localVarHeaderParameter["Content-Type"] = "application/json";
1376
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1377
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1378
+ localVarRequestOptions.headers = {
1379
+ ...localVarHeaderParameter,
1380
+ ...headersFromBaseOptions,
1381
+ ...options.headers,
1382
+ };
1383
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTestPlanVariableRequest, localVarRequestOptions, configuration);
1384
+ return {
1385
+ url: (0, common_1.toPathString)(localVarUrlObj),
1386
+ options: localVarRequestOptions,
1387
+ };
1388
+ },
1389
+ /**
1390
+ * Delete an existing test plan variable for the test plan
1391
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
1392
+ * @param {number} testPlanVariableId test_plan_variable id
1393
+ * @param {*} [options] Override http request option.
1394
+ * @throws {RequiredError}
1395
+ */
1396
+ deleteTestPlanVariable: async (testPlanId, testPlanVariableId, options = {}) => {
1397
+ // verify required parameter 'testPlanId' is not null or undefined
1398
+ (0, common_1.assertParamExists)("deleteTestPlanVariable", "testPlanId", testPlanId);
1399
+ // verify required parameter 'testPlanVariableId' is not null or undefined
1400
+ (0, common_1.assertParamExists)("deleteTestPlanVariable", "testPlanVariableId", testPlanVariableId);
1401
+ const localVarPath = `/test_plans/{test_plan_id}/test_plan_variables/{test_plan_variable_id}`
1402
+ .replace(`{${"test_plan_id"}}`, encodeURIComponent(String(testPlanId)))
1403
+ .replace(`{${"test_plan_variable_id"}}`, encodeURIComponent(String(testPlanVariableId)));
1404
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1405
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1406
+ let baseOptions;
1407
+ if (configuration) {
1408
+ baseOptions = configuration.baseOptions;
1409
+ }
1410
+ const localVarRequestOptions = {
1411
+ method: "DELETE",
1412
+ ...baseOptions,
1413
+ ...options,
1414
+ };
1415
+ const localVarHeaderParameter = {};
1416
+ const localVarQueryParameter = {};
1417
+ // authentication bearerAuth required
1418
+ // http bearer authentication required
1419
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1420
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1421
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1422
+ localVarRequestOptions.headers = {
1423
+ ...localVarHeaderParameter,
1424
+ ...headersFromBaseOptions,
1425
+ ...options.headers,
1426
+ };
1427
+ return {
1428
+ url: (0, common_1.toPathString)(localVarUrlObj),
1429
+ options: localVarRequestOptions,
1430
+ };
1431
+ },
1432
+ /**
1433
+ * List the test plan\'s variables
1434
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1435
+ * @param {*} [options] Override http request option.
1436
+ * @throws {RequiredError}
1437
+ */
1438
+ listTestPlanVariable: async (testPlanId, options = {}) => {
1439
+ // verify required parameter 'testPlanId' is not null or undefined
1440
+ (0, common_1.assertParamExists)("listTestPlanVariable", "testPlanId", testPlanId);
1441
+ const localVarPath = `/test_plans/{test_plan_id}/test_plan_variables`.replace(`{${"test_plan_id"}}`, encodeURIComponent(String(testPlanId)));
1442
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1443
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1444
+ let baseOptions;
1445
+ if (configuration) {
1446
+ baseOptions = configuration.baseOptions;
1447
+ }
1448
+ const localVarRequestOptions = {
1449
+ method: "GET",
1450
+ ...baseOptions,
1451
+ ...options,
1452
+ };
1453
+ const localVarHeaderParameter = {};
1454
+ const localVarQueryParameter = {};
1455
+ // authentication bearerAuth required
1456
+ // http bearer authentication required
1457
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1458
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1459
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1460
+ localVarRequestOptions.headers = {
1461
+ ...localVarHeaderParameter,
1462
+ ...headersFromBaseOptions,
1463
+ ...options.headers,
1464
+ };
1465
+ return {
1466
+ url: (0, common_1.toPathString)(localVarUrlObj),
1467
+ options: localVarRequestOptions,
1468
+ };
1469
+ },
1470
+ /**
1471
+ * Update a url replacement for the test plan
1472
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1473
+ * @param {number} testPlanVariableId test_plan_variable id
1474
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1475
+ * @param {*} [options] Override http request option.
1476
+ * @throws {RequiredError}
1477
+ */
1478
+ updateTestPlanVariable: async (testPlanId, testPlanVariableId, updateTestPlanVariableRequest, options = {}) => {
1479
+ // verify required parameter 'testPlanId' is not null or undefined
1480
+ (0, common_1.assertParamExists)("updateTestPlanVariable", "testPlanId", testPlanId);
1481
+ // verify required parameter 'testPlanVariableId' is not null or undefined
1482
+ (0, common_1.assertParamExists)("updateTestPlanVariable", "testPlanVariableId", testPlanVariableId);
1483
+ // verify required parameter 'updateTestPlanVariableRequest' is not null or undefined
1484
+ (0, common_1.assertParamExists)("updateTestPlanVariable", "updateTestPlanVariableRequest", updateTestPlanVariableRequest);
1485
+ const localVarPath = `/test_plans/{test_plan_id}/test_plan_variables/{test_plan_variable_id}`
1486
+ .replace(`{${"test_plan_id"}}`, encodeURIComponent(String(testPlanId)))
1487
+ .replace(`{${"test_plan_variable_id"}}`, encodeURIComponent(String(testPlanVariableId)));
1488
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1489
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1490
+ let baseOptions;
1491
+ if (configuration) {
1492
+ baseOptions = configuration.baseOptions;
1493
+ }
1494
+ const localVarRequestOptions = {
1495
+ method: "PUT",
1496
+ ...baseOptions,
1497
+ ...options,
1498
+ };
1499
+ const localVarHeaderParameter = {};
1500
+ const localVarQueryParameter = {};
1501
+ // authentication bearerAuth required
1502
+ // http bearer authentication required
1503
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1504
+ localVarHeaderParameter["Content-Type"] = "application/json";
1505
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1506
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1507
+ localVarRequestOptions.headers = {
1508
+ ...localVarHeaderParameter,
1509
+ ...headersFromBaseOptions,
1510
+ ...options.headers,
1511
+ };
1512
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTestPlanVariableRequest, localVarRequestOptions, configuration);
1513
+ return {
1514
+ url: (0, common_1.toPathString)(localVarUrlObj),
1515
+ options: localVarRequestOptions,
1516
+ };
1517
+ },
1518
+ };
1519
+ };
1520
+ exports.TestPlanVariableApiAxiosParamCreator = TestPlanVariableApiAxiosParamCreator;
1521
+ /**
1522
+ * TestPlanVariableApi - functional programming interface
1523
+ * @export
1524
+ */
1525
+ const TestPlanVariableApiFp = function (configuration) {
1526
+ const localVarAxiosParamCreator = (0, exports.TestPlanVariableApiAxiosParamCreator)(configuration);
1527
+ return {
1528
+ /**
1529
+ * Create a new variable for the test plan
1530
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1531
+ * @param {CreateTestPlanVariableRequest} createTestPlanVariableRequest The new variable key and default value to use in the test plan
1532
+ * @param {*} [options] Override http request option.
1533
+ * @throws {RequiredError}
1534
+ */
1535
+ async createTestPlanVariable(testPlanId, createTestPlanVariableRequest, options) {
1536
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createTestPlanVariable(testPlanId, createTestPlanVariableRequest, options);
1537
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1538
+ },
1539
+ /**
1540
+ * Delete an existing test plan variable for the test plan
1541
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
1542
+ * @param {number} testPlanVariableId test_plan_variable id
1543
+ * @param {*} [options] Override http request option.
1544
+ * @throws {RequiredError}
1545
+ */
1546
+ async deleteTestPlanVariable(testPlanId, testPlanVariableId, options) {
1547
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTestPlanVariable(testPlanId, testPlanVariableId, options);
1548
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1549
+ },
1550
+ /**
1551
+ * List the test plan\'s variables
1552
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1553
+ * @param {*} [options] Override http request option.
1554
+ * @throws {RequiredError}
1555
+ */
1556
+ async listTestPlanVariable(testPlanId, options) {
1557
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTestPlanVariable(testPlanId, options);
1558
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1559
+ },
1560
+ /**
1561
+ * Update a url replacement for the test plan
1562
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1563
+ * @param {number} testPlanVariableId test_plan_variable id
1564
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1565
+ * @param {*} [options] Override http request option.
1566
+ * @throws {RequiredError}
1567
+ */
1568
+ async updateTestPlanVariable(testPlanId, testPlanVariableId, updateTestPlanVariableRequest, options) {
1569
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateTestPlanVariable(testPlanId, testPlanVariableId, updateTestPlanVariableRequest, options);
1570
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1571
+ },
1572
+ };
1573
+ };
1574
+ exports.TestPlanVariableApiFp = TestPlanVariableApiFp;
1575
+ /**
1576
+ * TestPlanVariableApi - factory interface
1577
+ * @export
1578
+ */
1579
+ const TestPlanVariableApiFactory = function (configuration, basePath, axios) {
1580
+ const localVarFp = (0, exports.TestPlanVariableApiFp)(configuration);
1581
+ return {
1582
+ /**
1583
+ * Create a new variable for the test plan
1584
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1585
+ * @param {CreateTestPlanVariableRequest} createTestPlanVariableRequest The new variable key and default value to use in the test plan
1586
+ * @param {*} [options] Override http request option.
1587
+ * @throws {RequiredError}
1588
+ */
1589
+ createTestPlanVariable(testPlanId, createTestPlanVariableRequest, options) {
1590
+ return localVarFp
1591
+ .createTestPlanVariable(testPlanId, createTestPlanVariableRequest, options)
1592
+ .then((request) => request(axios, basePath));
1593
+ },
1594
+ /**
1595
+ * Delete an existing test plan variable for the test plan
1596
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
1597
+ * @param {number} testPlanVariableId test_plan_variable id
1598
+ * @param {*} [options] Override http request option.
1599
+ * @throws {RequiredError}
1600
+ */
1601
+ deleteTestPlanVariable(testPlanId, testPlanVariableId, options) {
1602
+ return localVarFp
1603
+ .deleteTestPlanVariable(testPlanId, testPlanVariableId, options)
1604
+ .then((request) => request(axios, basePath));
1605
+ },
1606
+ /**
1607
+ * List the test plan\'s variables
1608
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1609
+ * @param {*} [options] Override http request option.
1610
+ * @throws {RequiredError}
1611
+ */
1612
+ listTestPlanVariable(testPlanId, options) {
1613
+ return localVarFp
1614
+ .listTestPlanVariable(testPlanId, options)
1615
+ .then((request) => request(axios, basePath));
1616
+ },
1617
+ /**
1618
+ * Update a url replacement for the test plan
1619
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1620
+ * @param {number} testPlanVariableId test_plan_variable id
1621
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1622
+ * @param {*} [options] Override http request option.
1623
+ * @throws {RequiredError}
1624
+ */
1625
+ updateTestPlanVariable(testPlanId, testPlanVariableId, updateTestPlanVariableRequest, options) {
1626
+ return localVarFp
1627
+ .updateTestPlanVariable(testPlanId, testPlanVariableId, updateTestPlanVariableRequest, options)
1628
+ .then((request) => request(axios, basePath));
1629
+ },
1630
+ };
1631
+ };
1632
+ exports.TestPlanVariableApiFactory = TestPlanVariableApiFactory;
1633
+ /**
1634
+ * TestPlanVariableApi - object-oriented interface
1635
+ * @export
1636
+ * @class TestPlanVariableApi
1637
+ * @extends {BaseAPI}
1638
+ */
1639
+ class TestPlanVariableApi extends base_1.BaseAPI {
1640
+ /**
1641
+ * Create a new variable for the test plan
1642
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1643
+ * @param {CreateTestPlanVariableRequest} createTestPlanVariableRequest The new variable key and default value to use in the test plan
1644
+ * @param {*} [options] Override http request option.
1645
+ * @throws {RequiredError}
1646
+ * @memberof TestPlanVariableApi
1647
+ */
1648
+ createTestPlanVariable(testPlanId, createTestPlanVariableRequest, options) {
1649
+ return (0, exports.TestPlanVariableApiFp)(this.configuration)
1650
+ .createTestPlanVariable(testPlanId, createTestPlanVariableRequest, options)
1651
+ .then((request) => request(this.axios, this.basePath));
1652
+ }
1653
+ /**
1654
+ * Delete an existing test plan variable for the test plan
1655
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
1656
+ * @param {number} testPlanVariableId test_plan_variable id
1657
+ * @param {*} [options] Override http request option.
1658
+ * @throws {RequiredError}
1659
+ * @memberof TestPlanVariableApi
1660
+ */
1661
+ deleteTestPlanVariable(testPlanId, testPlanVariableId, options) {
1662
+ return (0, exports.TestPlanVariableApiFp)(this.configuration)
1663
+ .deleteTestPlanVariable(testPlanId, testPlanVariableId, options)
1664
+ .then((request) => request(this.axios, this.basePath));
1665
+ }
1666
+ /**
1667
+ * List the test plan\'s variables
1668
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1669
+ * @param {*} [options] Override http request option.
1670
+ * @throws {RequiredError}
1671
+ * @memberof TestPlanVariableApi
1672
+ */
1673
+ listTestPlanVariable(testPlanId, options) {
1674
+ return (0, exports.TestPlanVariableApiFp)(this.configuration)
1675
+ .listTestPlanVariable(testPlanId, options)
1676
+ .then((request) => request(this.axios, this.basePath));
1677
+ }
1678
+ /**
1679
+ * Update a url replacement for the test plan
1680
+ * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1681
+ * @param {number} testPlanVariableId test_plan_variable id
1682
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1683
+ * @param {*} [options] Override http request option.
1684
+ * @throws {RequiredError}
1685
+ * @memberof TestPlanVariableApi
1686
+ */
1687
+ updateTestPlanVariable(testPlanId, testPlanVariableId, updateTestPlanVariableRequest, options) {
1688
+ return (0, exports.TestPlanVariableApiFp)(this.configuration)
1689
+ .updateTestPlanVariable(testPlanId, testPlanVariableId, updateTestPlanVariableRequest, options)
1690
+ .then((request) => request(this.axios, this.basePath));
1691
+ }
1692
+ }
1693
+ exports.TestPlanVariableApi = TestPlanVariableApi;
1333
1694
  /**
1334
1695
  * UrlReplacementApi - axios parameter creator
1335
1696
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-sdk",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Autify SDK for JavaScript",
5
5
  "author": "Autify",
6
6
  "homepage": "https://github.com/autifyhq/autify-sdk-js",
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@openapitools/openapi-generator-cli": "^2.7.0",
27
- "@types/debug": "^4.1.10",
28
- "@types/jest": "^29.5.6",
29
- "@types/node": "^20.8.7",
30
- "@typescript-eslint/eslint-plugin": "^6.8.0",
31
- "@typescript-eslint/parser": "^6.8.0",
27
+ "@types/debug": "^4.1.11",
28
+ "@types/jest": "^29.5.7",
29
+ "@types/node": "^20.8.10",
30
+ "@typescript-eslint/eslint-plugin": "^6.10.0",
31
+ "@typescript-eslint/parser": "^6.10.0",
32
32
  "axios-mock-adapter": "^1.22.0",
33
- "eslint": "^8.52.0",
33
+ "eslint": "^8.53.0",
34
34
  "eslint-config-prettier": "^9.0.0",
35
35
  "eslint-plugin-unused-imports": "^3.0.0",
36
36
  "husky": "^8.0.3",