From 52511f8544aa7cb65318fec26e20b934370f39a8 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridnev Date: Tue, 29 Oct 2024 15:37:06 +0100 Subject: [PATCH] feature: updated API v2 models Support the latest changes in the Qase API v2 --- package-lock.json | 21 ++++- qaseio/changelog.md | 6 ++ qaseio/package.json | 2 +- .../generated/model/result-create-fields.ts | 92 +++++++++++++++++++ .../src/generated/model/result-create-v2.ts | 29 +++--- .../src/generated/model/result-execution.ts | 6 +- .../generated/model/result-step-execution.ts | 6 +- 7 files changed, 132 insertions(+), 30 deletions(-) create mode 100644 qaseio/src/generated/model/result-create-fields.ts diff --git a/package-lock.json b/package-lock.json index f9deb044..bf00fadf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15210,7 +15210,7 @@ }, "qase-cypress": { "name": "cypress-qase-reporter", - "version": "2.2.0-beta.1", + "version": "2.2.0", "license": "Apache-2.0", "dependencies": { "qase-javascript-commons": "~2.2.0", @@ -15283,11 +15283,22 @@ "follow-redirects": "^1.14.0" } }, + "qase-javascript-commons/node_modules/qaseio": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/qaseio/-/qaseio-2.3.1.tgz", + "integrity": "sha512-VZFLEVGrGGAAPRik5uZuc3mgUfuBfADebRP7O83Ly1Kb+UxiQlSZxrn839gw7fEx0hLXpLXVWD7DTbdMOSPULQ==", + "dependencies": { + "axios": "^0.28.0", + "axios-retry": "^3.5.0" + }, + "engines": { + "node": ">=14" + } + }, "qase-javascript-commons/node_modules/qaseio/node_modules/axios": { "version": "0.28.1", "resolved": "https://registry.npmjs.org/axios/-/axios-0.28.1.tgz", "integrity": "sha512-iUcGA5a7p0mVb4Gm/sy+FSECNkPFT4y7wt6OM/CDpO/OnNCvSs3PoMG8ibrC9jRoGYU0gUK5pXVC4NPXq6lHRQ==", - "extraneous": true, "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -15357,7 +15368,7 @@ }, "qase-newman": { "name": "newman-reporter-qase", - "version": "2.1.0", + "version": "2.0.3", "license": "Apache-2.0", "dependencies": { "qase-javascript-commons": "~2.2.0", @@ -15382,7 +15393,7 @@ }, "qase-playwright": { "name": "playwright-qase-reporter", - "version": "2.0.15", + "version": "2.0.16", "license": "Apache-2.0", "dependencies": { "chalk": "^4.1.2", @@ -15495,7 +15506,7 @@ } }, "qaseio": { - "version": "2.3.1", + "version": "2.4.0", "license": "Apache-2.0", "dependencies": { "axios": "^0.28.0", diff --git a/qaseio/changelog.md b/qaseio/changelog.md index bffe95cb..952a7cf6 100644 --- a/qaseio/changelog.md +++ b/qaseio/changelog.md @@ -1,3 +1,9 @@ +# qaseio@2.4.0 + +## What's new + +Updated API v2 models to support the latest changes in the Qase API. + # qaseio@2.3.1 ## What's new diff --git a/qaseio/package.json b/qaseio/package.json index d8ab7b03..7b66def2 100644 --- a/qaseio/package.json +++ b/qaseio/package.json @@ -1,6 +1,6 @@ { "name": "qaseio", - "version": "2.3.1", + "version": "2.4.0", "description": "Qase TMS Javascript API Client", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/qaseio/src/generated/model/result-create-fields.ts b/qaseio/src/generated/model/result-create-fields.ts new file mode 100644 index 00000000..fa34b609 --- /dev/null +++ b/qaseio/src/generated/model/result-create-fields.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ + +/** + * Qase.io TestOps API v2 + * Qase TestOps API v2 Specification. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@qase.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + * @interface ResultCreateFields + */ +export interface ResultCreateFields { + [key: string]: string | any; + + /** + * + * @type {string} + * @memberof ResultCreateFields + */ + 'author'?: string; + /** + * + * @type {string} + * @memberof ResultCreateFields + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof ResultCreateFields + */ + 'preconditions'?: string; + /** + * + * @type {string} + * @memberof ResultCreateFields + */ + 'postconditions'?: string; + /** + * + * @type {string} + * @memberof ResultCreateFields + */ + 'layer'?: string; + /** + * + * @type {string} + * @memberof ResultCreateFields + */ + 'severity'?: string; + /** + * + * @type {string} + * @memberof ResultCreateFields + */ + 'priority'?: string; + /** + * + * @type {string} + * @memberof ResultCreateFields + */ + 'behavior'?: string; + /** + * + * @type {string} + * @memberof ResultCreateFields + */ + 'type'?: string; + /** + * + * @type {string} + * @memberof ResultCreateFields + */ + 'muted'?: string; + /** + * + * @type {string} + * @memberof ResultCreateFields + */ + 'is_flaky'?: string; +} + diff --git a/qaseio/src/generated/model/result-create-v2.ts b/qaseio/src/generated/model/result-create-v2.ts index 99cbce52..43f97a8d 100644 --- a/qaseio/src/generated/model/result-create-v2.ts +++ b/qaseio/src/generated/model/result-create-v2.ts @@ -13,6 +13,7 @@ */ +import { ResultCreateFields } from './result-create-fields'; import { ResultExecution } from './result-execution'; import { ResultRelations } from './result-relations'; import { ResultStep } from './result-step'; @@ -55,11 +56,11 @@ export interface ResultCreateV2 { */ 'testops_id'?: number | null; /** - * - * @type {{ [key: string]: string; }} + * + * @type {ResultCreateFields} * @memberof ResultCreateV2 */ - 'fields'?: { [key: string]: string; }; + 'fields'?: ResultCreateFields; /** * * @type {Array} @@ -85,11 +86,11 @@ export interface ResultCreateV2 { */ 'params'?: { [key: string]: string; }; /** - * - * @type {string} + * List parameter groups by name only. Add their values in the \'params\' field + * @type {Array>} * @memberof ResultCreateV2 */ - 'author'?: string; + 'param_groups'?: Array> | null; /** * * @type {ResultRelations} @@ -97,24 +98,16 @@ export interface ResultCreateV2 { */ 'relations'?: ResultRelations | null; /** - * - * @type {boolean} - * @memberof ResultCreateV2 - */ - 'muted'?: boolean; - /** - * + * * @type {string} * @memberof ResultCreateV2 */ 'message'?: string | null; /** - * - * @type {number} + * If true and the result is failed, the defect associated with the result will be created + * @type {boolean} * @memberof ResultCreateV2 */ - 'created_at'?: number | null; + 'defect'?: boolean; } - - diff --git a/qaseio/src/generated/model/result-execution.ts b/qaseio/src/generated/model/result-execution.ts index 858f0491..6f01de05 100644 --- a/qaseio/src/generated/model/result-execution.ts +++ b/qaseio/src/generated/model/result-execution.ts @@ -27,19 +27,19 @@ export interface ResultExecution { */ 'status': string; /** - * + * Unix epoch time in seconds (whole part) and milliseconds (fractional part). * @type {number} * @memberof ResultExecution */ 'start_time'?: number | null; /** - * + * Unix epoch time in seconds (whole part) and milliseconds (fractional part). * @type {number} * @memberof ResultExecution */ 'end_time'?: number | null; /** - * + * Duration of the test execution in milliseconds. * @type {number} * @memberof ResultExecution */ diff --git a/qaseio/src/generated/model/result-step-execution.ts b/qaseio/src/generated/model/result-step-execution.ts index 769627c2..f9f9bbae 100644 --- a/qaseio/src/generated/model/result-step-execution.ts +++ b/qaseio/src/generated/model/result-step-execution.ts @@ -28,19 +28,19 @@ export interface ResultStepExecution { */ 'status': ResultStepStatus; /** - * + * Unix epoch time in seconds (whole part) and milliseconds (fractional part). * @type {number} * @memberof ResultStepExecution */ 'start_time'?: number | null; /** - * + * Unix epoch time in seconds (whole part) and milliseconds (fractional part). * @type {number} * @memberof ResultStepExecution */ 'end_time'?: number | null; /** - * + * Duration of the test step execution in milliseconds. * @type {number} * @memberof ResultStepExecution */