Skip to content

Commit

Permalink
feat: update web client
Browse files Browse the repository at this point in the history
  • Loading branch information
henchiyb committed Nov 24, 2023
1 parent e86fdde commit 377e503
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/generated/web/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,16 +282,23 @@ export class WebClient {
* @summary Get a test result.
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
* @param {boolean} [getDetails] The flag to get details of the test case result.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ResultApi
*/
describeResult(
projectId: number,
resultId: number,
getDetails?: boolean,
options?: AxiosRequestConfig,
) {
return this.resultApi.describeResult(projectId, resultId, options);
return this.resultApi.describeResult(
projectId,
resultId,
getDetails,
options,
);
}

/**
Expand Down
17 changes: 15 additions & 2 deletions src/generated/web/openapi/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2349,12 +2349,14 @@ export const ResultApiAxiosParamCreator = function (
* @summary Get a test result.
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
* @param {boolean} [getDetails] The flag to get details of the test case result.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
describeResult: async (
projectId: number,
resultId: number,
getDetails?: boolean,
options: AxiosRequestConfig = {},
): Promise<RequestArgs> => {
// verify required parameter 'projectId' is not null or undefined
Expand Down Expand Up @@ -2383,6 +2385,10 @@ export const ResultApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);

if (getDetails !== undefined) {
localVarQueryParameter["get_details"] = getDetails;
}

setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
Expand Down Expand Up @@ -2480,12 +2486,14 @@ export const ResultApiFp = function (configuration?: Configuration) {
* @summary Get a test result.
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
* @param {boolean} [getDetails] The flag to get details of the test case result.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async describeResult(
projectId: number,
resultId: number,
getDetails?: boolean,
options?: AxiosRequestConfig,
): Promise<
(
Expand All @@ -2496,6 +2504,7 @@ export const ResultApiFp = function (configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.describeResult(
projectId,
resultId,
getDetails,
options,
);
return createRequestFunction(
Expand Down Expand Up @@ -2560,16 +2569,18 @@ export const ResultApiFactory = function (
* @summary Get a test result.
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
* @param {boolean} [getDetails] The flag to get details of the test case result.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
describeResult(
projectId: number,
resultId: number,
getDetails?: boolean,
options?: any,
): AxiosPromise<DescribeResult200Response> {
return localVarFp
.describeResult(projectId, resultId, options)
.describeResult(projectId, resultId, getDetails, options)
.then((request) => request(axios, basePath));
},
/**
Expand Down Expand Up @@ -2608,17 +2619,19 @@ export class ResultApi extends BaseAPI {
* @summary Get a test result.
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
* @param {boolean} [getDetails] The flag to get details of the test case result.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ResultApi
*/
public describeResult(
projectId: number,
resultId: number,
getDetails?: boolean,
options?: AxiosRequestConfig,
) {
return ResultApiFp(this.configuration)
.describeResult(projectId, resultId, options)
.describeResult(projectId, resultId, getDetails, options)
.then((request) => request(this.axios, this.basePath));
}

Expand Down
7 changes: 7 additions & 0 deletions swagger-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ paths:
For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
schema:
type: integer
- name: get_details
in: query
required: false
description: |
The flag to get details of the test case result.
schema:
type: boolean
responses:
"200":
description: ok
Expand Down

0 comments on commit 377e503

Please sign in to comment.