Skip to content

Commit

Permalink
feature: updated API v2 models
Browse files Browse the repository at this point in the history
Support the latest changes in the Qase API v2
  • Loading branch information
gibiw committed Oct 29, 2024
1 parent 8b4a10f commit 52511f8
Show file tree
Hide file tree
Showing 7 changed files with 132 additions and 30 deletions.
21 changes: 16 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions qaseio/changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion qaseio/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
92 changes: 92 additions & 0 deletions qaseio/src/generated/model/result-create-fields.ts
Original file line number Diff line number Diff line change
@@ -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;
}

29 changes: 11 additions & 18 deletions qaseio/src/generated/model/result-create-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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<string>}
Expand All @@ -85,36 +86,28 @@ export interface ResultCreateV2 {
*/
'params'?: { [key: string]: string; };
/**
*
* @type {string}
* List parameter groups by name only. Add their values in the \'params\' field
* @type {Array<Array<string>>}
* @memberof ResultCreateV2
*/
'author'?: string;
'param_groups'?: Array<Array<string>> | null;
/**
*
* @type {ResultRelations}
* @memberof 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;
}



6 changes: 3 additions & 3 deletions qaseio/src/generated/model/result-execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
6 changes: 3 additions & 3 deletions qaseio/src/generated/model/result-step-execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 52511f8

Please sign in to comment.