diff --git a/package-lock.json b/package-lock.json index c97daa24..b2389764 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "2.0.0", "license": "Apache-2.0", "workspaces": [ - "qaseio", "qase-api-client", "qase-api-v2-client", "qase-javascript-commons", @@ -22957,10 +22956,6 @@ "resolved": "qase-javascript-commons", "link": true }, - "node_modules/qaseio": { - "resolved": "qaseio", - "link": true - }, "node_modules/qrcode-terminal": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/qrcode-terminal/-/qrcode-terminal-0.10.0.tgz", @@ -29017,7 +29012,7 @@ } }, "qase-api-client": { - "version": "1.1.15", + "version": "1.1.16", "license": "Apache-2.0", "dependencies": { "axios": "^1.18.1", @@ -29036,7 +29031,7 @@ } }, "qase-api-v2-client": { - "version": "1.0.11", + "version": "1.0.12", "license": "Apache-2.0", "dependencies": { "axios": "^1.18.1", @@ -29328,33 +29323,6 @@ "engines": { "node": ">=18" } - }, - "qaseio": { - "version": "2.4.4", - "license": "Apache-2.0", - "dependencies": { - "axios": "^1.18.1", - "axios-retry": "^4.5.0" - }, - "devDependencies": { - "@jest/globals": "^29.7.0", - "@types/jest": "^29.5.0", - "@types/node": "^12.20.55", - "axios-mock-adapter": "^1.22.0", - "jest": "^29.7.0", - "ts-jest": "^29.4.5", - "typescript": "^5.9.3" - }, - "engines": { - "node": ">=14" - } - }, - "qaseio/node_modules/@types/node": { - "version": "12.20.55", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", - "dev": true, - "license": "MIT" } } } diff --git a/package.json b/package.json index c83c0a62..8b99af5e 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ }, "homepage": "https://github.com/qase-tms/qase-javascript#readme", "workspaces": [ - "qaseio", "qase-api-client", "qase-api-v2-client", "qase-javascript-commons", diff --git a/qase-javascript-commons/README.md b/qase-javascript-commons/README.md index 86a533fb..ef285569 100644 --- a/qase-javascript-commons/README.md +++ b/qase-javascript-commons/README.md @@ -1,7 +1,7 @@ # Qase JavaScript Commons This module is an SDK for developing test reporters for Qase TMS. -It's using `qaseio` as an API client, and all Qase reporters are, in turn, +It's using `qase-api-client` and `qase-api-v2-client` as API clients, and all Qase reporters are, in turn, using this package. You should use it if you're developing your own test reporter for a special-purpose framework. diff --git a/qaseio/.eslintignore b/qaseio/.eslintignore deleted file mode 100644 index 4429bff2..00000000 --- a/qaseio/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -dist -src/generated diff --git a/qaseio/.gitignore b/qaseio/.gitignore deleted file mode 100644 index 1521c8b7..00000000 --- a/qaseio/.gitignore +++ /dev/null @@ -1 +0,0 @@ -dist diff --git a/qaseio/.npmignore b/qaseio/.npmignore deleted file mode 100644 index 0b94fa32..00000000 --- a/qaseio/.npmignore +++ /dev/null @@ -1,6 +0,0 @@ -.* -**/tsconfig.json -**/jest.config.js -test -coverage -src diff --git a/qaseio/.prettierignore b/qaseio/.prettierignore deleted file mode 100644 index 8a928f6b..00000000 --- a/qaseio/.prettierignore +++ /dev/null @@ -1,3 +0,0 @@ -/dist -/coverage -/src/generated diff --git a/qaseio/LICENSE b/qaseio/LICENSE deleted file mode 100644 index ff163611..00000000 --- a/qaseio/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Qase TMS - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/qaseio/README.md b/qaseio/README.md deleted file mode 100644 index e6689fbd..00000000 --- a/qaseio/README.md +++ /dev/null @@ -1,753 +0,0 @@ -# [Qase TMS](https://qase.io) API JavaScript Client - -> **DEPRECATED**: This package is deprecated and will no longer receive updates. -> Please use the new API clients instead: -> -> - [`qase-api-client`](https://github.com/qase-tms/qase-javascript/tree/main/qase-api-client#readme) — Qase API v1 client -> - [`qase-api-v2-client`](https://github.com/qase-tms/qase-javascript/tree/main/qase-api-v2-client#readme) — Qase API v2 client - -[![License](https://lxgaming.github.io/badges/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) - -The `qaseio` package implements a JavaScript client for Qase API. -It should be used for building integrations with [Qase API](https://developers.qase.io/reference/introduction-to-the-qase-api) -or writing test reporters for special-purpose frameworks. - -To report results from tests using a popular framework or test runner, -use the corresponding package instead: - -* [CucumberJS](https://github.com/qase-tms/qase-javascript/tree/main/qase-cucumberjs#readme) -* [Cypress](https://github.com/qase-tms/qase-javascript/tree/main/qase-cypress#readme) -* [Jest](https://github.com/qase-tms/qase-javascript/tree/main/qase-jest#readme) -* [Newman](https://github.com/qase-tms/qase-javascript/tree/main/qase-newman#readme) -* [Playwright](https://github.com/qase-tms/qase-javascript/tree/main/qase-playwright#readme) -* [TestCafe](https://github.com/qase-tms/qase-javascript/tree/main/qase-testcafe#readme) - - - - -# Contents - -- [Installation](#installation) -- [Usage](#usage) - - [Projects](#projects) - - [Test cases](#test-cases) - - [Test Suites](#test-suites) - - [Milestones](#milestones) - - [Shared steps](#shared-steps) - - [Test plans](#test-plans) - - [Test runs](#test-runs) - - [Test run results](#test-run-results) - - [Defects](#defects) - - [Custom fields](#custom-fields) - - [Attachments](#attachments) - - [Team](#team) -- [Requirements](#requirements) - - - - -## Installation - -``` -npm install qaseio -``` - -## Usage - -Qase.io uses API tokens to authenticate requests. -API keys can be issued on the [personal API tokens page](https://app.qase.io/user/api/token) -or on the [app integrations page](https://app.qase.io/apps). - -Pure JavaScript: - -```javascript -var qaseio = require('qaseio'); - -const qase = new QaseApi({ - token: 'api_token', -}); -``` - -ES5: - -```typescript -import { QaseApi } from 'qaseio'; - -const qase = new QaseApi({ - token: 'api_token', -}); -``` - -### Projects - -#### Get All Projects - -This method allows to retrieve all projects available for your account. You can you limit and offset params to paginate. - -```typescript -qase.projects.getAll().then((res) => { - console.log(res.data); // ProjectList{...} -}); -``` - -#### Get a specific project - -This method allows to retrieve a specific project. - -```typescript -qase.projects.get('PRJCODE').then((res) => { - console.log(res.data); // ProjectInfo{...} -}); -``` - -#### Check project exists - -```typescript -qase.projects.get('PRJCODE').then((exists) => { - console.log(exists); // boolean -}); -``` - -#### Create a new project - -This method is used to create a new project through API. - -```typescript -import { ProjectCreate } from 'qaseio.models'; - -const prj = new ProjectCreate('Project title', 'CODE'); -qase.projects.create(prj).then((res) => { - console.log(res.data); // ProjectCreated{...} -}); -``` - -### Test cases - -#### Get all test cases - -This method allows to retrieve all test cases stored in selected project. You can you limit and offset params to paginate. - -```typescript -qase.cases.getAll('PRJCODE', { limit: 10, offset: 20 }).then((res) => { - console.log(res.data); // TestCaseList{...} -}); -``` - -#### Get a specific test case - -This method allows to retrieve a specific test case. - -```typescript -qase.cases.get('PRJCODE', 4).then((res) => { - console.log(res.data); // TestCaseInfo{...} -}); -``` - -#### Check test case exists - -```typescript -qase.cases.exists('PRJCODE', 4).then((exists) => { - console.log(exists); // boolean -}); -``` - -#### Delete test case - -This method completely deletes a test case from repository. - -```typescript -qase.cases.delete('PRJCODE', 4).then((res) => { - console.log(res); // AxiosResponse -}); -``` - -### Test Suites - -#### Get all test suites - -This method allows to retrieve all test suites stored in selected project. You can you limit and offset params to paginate. - -```typescript -import { SuiteFilters } from 'qaseio.models'; - -qase.suites - .getAll('PRJCODE', { filters: new SuiteFilters({ search: 'query' }) }) - .then((res) => { - console.log(res.data); // SuiteList{...} - }); -``` - -#### Get a specific test suite - -This method allows to retrieve a specific test suite. - -```typescript -qase.suites.get('PRJCODE', 123).then((res) => { - console.log(res.data); // SuiteInfo{...} -}); -``` - -#### Check test suite exists - -```typescript -qase.suites.exists('PRJCODE', 123).then((exists) => { - console.log(exists); // boolean -}); -``` - -#### Create a new test suite - -This method is used to create a new test plan through API. - -```typescript -import { SuiteCreate } from 'qaseio.models'; - -qase.suites.create('PRJCODE', SuiteCreate('New test suite')).then((res) => { - console.log(res.data); // SuiteCreated{...} -}); -``` - -#### Update test suite - -This method is used to update existing test suite through API. - -```typescript -import { SuiteUpdate } from 'qaseio.models'; - -qase.suites.update('PRJCODE', 123, SuiteUpdate('Updated suite')).then((res) => { - console.log(res.data); // SuiteCreated{...} -}); -``` - -#### Delete test suite - -This method completely deletes a test suite from repository. - -```typescript -qase.suites.delete('PRJCODE', 123).then((res) => { - console.log(res); // AxiosResponse -}); -``` - -### Milestones - -#### Get all milestones - -This method allows to retrieve all milestones stored in selected project. You can you limit and offset params to paginate. - -```typescript -import { MilestoneFilters } from 'qaseio.models'; - -qase.milestones - .getAll('PRJCODE', { filters: new MilestoneFilters({ search: 'query' }) }) - .then((res) => { - console.log(res.data); // MilestoneList{...} - }); -``` - -#### Get a specific milestone - -This method allows to retrieve a specific milestone. - -```typescript -qase.milestones.get('PRJCODE', 123).then((res) => { - console.log(res.data); // MilestoneInfo{...} -}); -``` - -#### Check milestone exists - -```typescript -qase.milestones.exists('PRJCODE', 123).then((exists) => { - console.log(exists); // boolean -}); -``` - -#### Create a new milestone - -This method is used to create a new test plan through API. - -```typescript -import { MilestoneCreate } from 'qaseio.models'; - -qase.milestones - .create('PRJCODE', new MilestoneCreate('New milestone')) - .then((res) => { - console.log(res.data); // MilestoneCreated{...} - }); -``` - -#### Update milestone - -This method is used to update existing milestone through API. - -```typescript -import { MilestoneUpdate } from 'qaseio.models'; - -test_suite = qase.milestones - .update('PRJCODE', 123, new MilestoneUpdate('Updated suite')) - .then((res) => { - console.log(res.data); // MilestoneCreated{...} - }); -``` - -#### Delete milestone - -This method completely deletes a milestone from repository. - -```typescript -qase.milestones.delete('PRJCODE', 123).then((res) => { - console.log(res); // AxiosResponse -}); -``` - -### Shared steps - -#### Get all shared steps - -This method allows to retrieve all shared steps stored in selected project. You can you limit and offset params to paginate. - -```typescript -import { SharedStepFilters } from 'qaseio.models'; - -qase.sharedSteps - .getAll('PRJCODE', { filters: new SharedStepFilters({ search: 'query' }) }) - .then((res) => { - console.log(res.data); // SharedStepList{...} - }); -``` - -#### Get a specific shared step - -This method allows to retrieve a specific shared step. - -```typescript -qase.sharedSteps.get('PRJCODE', 'hash').then((res) => { - console.log(res.data); // SharedStepInfo{...} -}); -``` - -#### Check shared step exists - -```typescript -qase.sharedSteps.exists('PRJCODE', 'hash').then((exists) => { - console.log(exists); // boolean -}); -``` - -#### Create a new shared step - -This method is used to create a new shared step through API. - -```typescript -import { SharedStepCreate } from 'qaseio.models'; - -qase.sharedSteps - .create('PRJCODE', new SharedStepCreate('New step', 'action')) - .then((res) => { - console.log(res.data); // SharedCreated{...} - }); -``` - -#### Update shared step - -This method is used to update existing shared step through API. - -```typescript -import { SharedStepUpdate } from 'qaseio.models'; - -qase.sharedSteps - .update('PRJCODE', 'hash', new SharedStepUpdate('Updated step')) - .then((res) => { - console.log(res.data); // SharedCreated{...} - }); -``` - -#### Delete shared step - -This method completely deletes a shared step from repository. - -```typescript -qase.sharedSteps.delete('PRJCODE', 'hash').then((res) => { - console.log(res); // AxiosResponse -}); -``` - -### Test plans - -#### Get all test plans - -This method allows to retrieve all test plans stored in selected project. You can you limit and offset params to paginate. - -```typescript -qase.plans.getAll('PRJCODE').then((res) => { - console.log(res.data); // PlanList{...} -}); -``` - -#### Get a specific test plan - -This method allows to retrieve a specific test plan. - -```typescript -qase.plans.get('PRJCODE', 123).then((res) => { - console.log(res.data); // PlanInfo{...} -}); -``` - -#### Check test plan exists - -```typescript -qase.plans.exists('PRJCODE', 123).then((exists) => { - console.log(exists); // boolean -}); -``` - -#### Create a new test plan - -This method is used to create a new test plan through API. - -```typescript -import { PlanCreate } from 'qaseio.models'; - -qase.plans - .create('PRJCODE', new PlanCreate('New test plan', [1, 2, 3])) - .then((res) => { - console.log(res.data); // PlanCreated{...} - }); -``` - -#### Update test plan - -This method is used to update existing test plan through API. - -```typescript -import { PlanUpdate } from 'qaseio.models'; - -qase.plans - .update('PRJCODE', 123, new PlanUpdate('New test plan', [1, 2, 3])) - .then((res) => { - console.log(res.data); // PlanCreated{...} - }); -``` - -#### Delete test plan - -This method completely deletes a test plan from repository. - -```typescript -qase.plans.delete('PRJCODE', 123).then((res) => { - console.log(res); // AxiosResponse -}); -``` - -### Test runs - -#### Get all test runs - -This method allows to retrieve all test runs stored in selected project. You can you limit and offset params to paginate. - -```typescript -qase.runs.getAll('PRJCODE', { include: 'cases' }).then((res) => { - console.log(res.data); // RunList{...} -}); -``` - -#### Get a specific test run - -This method allows to retrieve a specific test run. - -```typescript -qase.runs.get('PRJCODE', 4).then((res) => { - console.log(res.data); // RunInfo{...} -}); -``` - -#### Check test run exists - -```typescript -qase.runs.exists('PRJCODE', 4).then((exists) => { - console.log(exists); // boolean -}); -``` - -#### Create a new test run - -This method is used to create a new test run through API. - -```typescript -import { RunCreate } from 'qaseio.models'; - -const run = new RunCreate('Test run', [1, 2, 3], { description: 'some desc' }); -qase.runs.create(run).then((res) => { - console.log(res.data); // RunCreated{...} -}); -``` - -#### Delete test run - -This method completely deletes a test run from repository. - -```typescript -qase.runs.delete('PRJCODE', 4).then((res) => { - console.log(res); // AxiosResponse -}); -``` - -### Test run results - -#### Get all test run results - -This method allows to retrieve all test run results stored in selected project. You can you limit and offset params to paginate. - -```typescript -qase.results.getAll('PRJCODE').then((res) => { - console.log(res.data); // ResultList{...} -}); -``` - -#### Get a specific test run result - -This method allows to retrieve a specific test run result. - -```typescript -qase.results - .get('PRJCODE', '2898ba7f3b4d857cec8bee4a852cdc85f8b33132') - .then((res) => { - console.log(res.data); // ResultInfo{...} - }); -``` - -#### Create a new test run result - -This method is used to create a new test run result through API. - -```typescript -import { ResultCreate, ResultStatus, ResultStepCreate } from 'qaseio.models'; - -const result = new ResultCreate(123, ResultStatus.PASSED, { - comment: 'some comment', - steps: [new ResultStepCreate(1, ResultStatus.PASSED)], -}); -qase.results.create('PRJCODE', 4, result).then((res) => { - console.log(res.data); // ResultCreated{...} -}); -``` - -#### Update test run result - -This method is used to update existing test run result through API. - -```typescript -import { ResultUpdate, ResultStatus, ResultStepCreate } from 'qaseio.models'; - -const result = new ResultUpdate(ResultStatus.PASSED, { - comment: 'some comment', - steps: [new ResultStepCreate(2, ResultStatus.PASSED)], -}); -qase.results - .update('PRJCODE', 4, '2898ba7f3b4d857cec8bee4a852cdc85f8b33132', result) - .then((res) => { - console.log(res.data); // ResultCreated{...} - }); -``` - -#### Delete test run result - -This method completely deletes a test run result from repository. - -```typescript -qase.results - .delete('PRJCODE', 4, '2898ba7f3b4d857cec8bee4a852cdc85f8b33132') - .then((res) => { - console.log(res); // AxiosResponse - }); -``` - -### Defects - -#### Get all defects - -This method allows to retrieve all defects stored in selected project. You can you limit and offset params to paginate. - -```typescript -import { DefectStatus, DefectFilters } from 'qaseio.models'; - -qase.defects - .getAll('PRJCODE', { - filter: new DefectFilters({ status: DefectStatus.OPEN }), - }) - .then((res) => { - console.log(res.data); // DefectList{...} - }); -``` - -#### Get a specific defect - -This method allows to retrieve a specific defect. - -```typescript -qase.defects.get('PRJCODE', 4).then((res) => { - console.log(res.data); // DefectInfo{...} -}); -``` - -#### Check defect exists - -```typescript -qase.defects.exists('PRJCODE', 4).then((exists) => { - console.log(exists); // boolean -}); -``` - -#### Resolve defect - -This method is used to resolve defect through API. - -```typescript -qase.defects.resolve('PRJCODE', 4).then((res) => { - console.log(res.data); // DefectUpdated{...} -}); -``` - -#### Delete defect - -This method completely deletes a defect from repository. - -```typescript -qase.defects.delete('PRJCODE', 4).then((res) => { - console.log(res); // AxiosResponse -}); -``` - -### Custom fields - -#### Get all custom fields - -This method allows to retrieve all custom fields stored in selected project. You can you limit and offset params to paginate. - -```typescript -qase.customFields.getAll('PRJCODE').then((res) => { - console.log(res.data); // CustomFieldList{...} -}); -``` - -#### Get a specific custom field - -This method allows to retrieve a specific custom field. - -```typescript -qase.customFields.get('PRJCODE', 123).then((res) => { - console.log(res.data); // CustomFieldInfo{...} -}); -``` - -#### Check custom field exists - -```typescript -qase.customFields.exists('PRJCODE', 123).then((exists) => { - console.log(exists); // boolean -}); -``` - -### Attachments - -#### Get all attachments - -This method allows to retrieve all attachments stored in team. You can you limit and offset params to paginate. - -```typescript -qase.attachments.getAll().then((res) => { - console.log(res.data); // AttachmentList{...} -}); -``` - -#### Get a specific attachment - -This method allows to retrieve a specific attachment. - -```typescript -qase.attachments.get('').then((res) => { - console.log(res.data); // AttachmentInfo{...} -}); -``` - -#### Check attachment exists - -```typescript -qase.attachments.exists('').then((exists) => { - console.log(exists); // boolean -}); -``` - -#### Upload new attachments - -This method is used to upload new attachments through API. It supports different -input formats - -```typescript -qase.attachments - .create('PRJCODE', { value: '{"test": true}', filename: 'data.json' }) - .then((res) => { - console.log(res.data); // AttachmentCreated{...} - }); -``` - -To upload binary attachment you should use `fs`: - -```typescript -var fs = require('fs'); -const data = fs.createReadStream('/path/to/file.png'); -qase.attachments - .create('PRJCODE', { value: data, filename: 'data.png' }) - .then((res) => { - console.log(res.data); // AttachmentCreated{...} - }); -``` - -You can specify as much files to upload as you need, according to API -[limits](https://developers.qase.io/#upload-attachmeent). - -#### Delete attachment - -This method completely deletes a attachment from repository. - -```typescript -qase.attachments.delete('').then((res) => { - console.log(res); // AxiosResponse -}); -``` - -### Team - -#### Get all team members - -This method allows to retrieve all users in your team. You can you limit and offset params to paginate. - -```typescript -qase.users.getAll().then((res) => { - console.log(res.data); // UserList{...} -}); -``` - -#### Get a specific team member - -This method allows to retrieve a specific user in your team. - -```typescript -qase.users.get(123).then((res) => { - console.log(res.data); // UserInfo{...} -}); -``` - -#### Check user exists - -```typescript -qase.users.exists(123).then((exists) => { - console.log(exists); // boolean -}); -``` - -## Requirements - -The reporter is maintained on the [LTS versions of Node.js](https://nodejs.org/en/about/releases/). diff --git a/qaseio/babel.config.js b/qaseio/babel.config.js deleted file mode 100644 index 2760272b..00000000 --- a/qaseio/babel.config.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - presets: ['@babel/preset-env'] -}; diff --git a/qaseio/changelog.md b/qaseio/changelog.md deleted file mode 100644 index e2165d06..00000000 --- a/qaseio/changelog.md +++ /dev/null @@ -1,97 +0,0 @@ -# qaseio@2.4.3 - -## What's new - -- New field in the search endpoint of the public API contract. -- Extended API client functionality to accommodate the updated contract. - -# qaseio@2.4.2 - -## What's new - -Updated axios dependency to address identified security vulnerabilities. - -# 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 - -Added a new `author_id` and `entity_id` fields to the `Author` model. - -# qaseio@2.3.0 - -## What's new - -Added a new `param_groups` field to the `ResultCreate` model. -This field allows you to group parameters in the test results. - -# qaseio@2.2.0 - -## What's new - -Added search for environments and creation of test runs with the addition of an environment slug. - -# qaseio@2.1.5 - -## What's new - -Enable using 'http://api.qase.lo' as API host for Qase development. - -# qaseio@2.1.4 - -## What's new - -Fix an issue with base url for enterprise customers. - -# qaseio@2.1.3 - -## What's new - -Configure custom Qase API URLs, such as for Enterprise on-premises installations -or for using proxies. - -# qaseio@2.1.2 - -## What's new - -Update `axios` dependency to `^0.28.0` for fixes vulnerabilities [CVE-2023-45857](https://github.com/advisories/GHSA-wf5p-g6vw-rhxx) - -# qaseio@2.1.1 - -## What's new - -Add environment API support. Now you can create, update, delete and list environments for your projects. - -# qaseio@2.1.0 - -## What's new - -The new release of Qase API client brings a number of new features: - -* Full support of the latest state of the [Qase API](https://developers.qase.io/reference); -* Full support of the experimental v2 API for working with test results. -* Uploading test attachments from strings and buffers. -* New API endpoints: `v1/system-fields/` and `v1/configurations/`. - -# qaseio@2.1.0-beta.1 - -## What's new - -* Added support for uploading attachments from strings and buffers. - -# qaseio@2.1.0-beta.0 - -## Overview - -This is a beta channel release, supporting the v2 series of the Qase JavaScript reporters. - -## What's new - -* Supporting the latest version of the [Qase API](https://developers.qase.io/reference). -* Significant updates to the `v2/results` endpoint. -* New endpoints: `v1/system-fields/` and `v1/configurations/`. diff --git a/qaseio/jest.config.js b/qaseio/jest.config.js deleted file mode 100644 index 26e3cd6e..00000000 --- a/qaseio/jest.config.js +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-disable */ -module.exports = { - preset: 'ts-jest', - roots: ['/test'], - transform: { - '^.+\\.ts$': ['ts-jest', { - tsconfig: { - skipLibCheck: true, - }, - }], - '^.+\\.js$': 'babel-jest', - }, - transformIgnorePatterns: [ - '/node_modules/(?!(axios)/)' - ], - testMatch: ['**/*.test.ts'], - moduleFileExtensions: ['js', 'ts'], - collectCoverage: true, - coveragePathIgnorePatterns: ['/src/generated/'], - testEnvironment: 'node', -}; diff --git a/qaseio/package.json b/qaseio/package.json deleted file mode 100644 index 3439d1e4..00000000 --- a/qaseio/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "qaseio", - "version": "2.4.4", - "description": "Qase TMS Javascript API Client", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "homepage": "https://github.com/qase-tms/qase-javascript", - "bugs": { - "url": "https://github.com/qase-tms/qase-javascript/issues" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/qase-tms/qase-javascript.git" - }, - "engines": { - "node": ">=14" - }, - "scripts": { - "build": "npm run clean && tsc --project tsconfig.build.json", - "lint": "eslint .", - "test": "jest", - "clean": "rm -rf dist" - }, - "author": "Qase Team ", - "license": "Apache-2.0", - "dependencies": { - "axios": "^1.18.1", - "axios-retry": "^4.5.0" - }, - "devDependencies": { - "@jest/globals": "^29.7.0", - "@types/jest": "^29.5.0", - "@types/node": "^12.20.55", - "axios-mock-adapter": "^1.22.0", - "jest": "^29.7.0", - "ts-jest": "^29.4.5", - "typescript": "^5.9.3" - } -} diff --git a/qaseio/src/generated/api.ts b/qaseio/src/generated/api.ts deleted file mode 100644 index 65502a41..00000000 --- a/qaseio/src/generated/api.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 * from './api/attachments-api'; -export * from './api/authors-api'; -export * from './api/cases-api'; -export * from './api/configurations-api'; -export * from './api/custom-fields-api'; -export * from './api/defects-api'; -export * from './api/environments-api'; -export * from './api/milestones-api'; -export * from './api/plans-api'; -export * from './api/projects-api'; -export * from './api/result-api'; -export * from './api/results-api'; -export * from './api/runs-api'; -export * from './api/search-api'; -export * from './api/shared-steps-api'; -export * from './api/suites-api'; -export * from './api/system-fields-api'; - diff --git a/qaseio/src/generated/api/attachments-api.ts b/qaseio/src/generated/api/attachments-api.ts deleted file mode 100644 index d8221e79..00000000 --- a/qaseio/src/generated/api/attachments-api.ts +++ /dev/null @@ -1,371 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { AttachmentListResponse } from '../model'; -// @ts-ignore -import { AttachmentResponse } from '../model'; -// @ts-ignore -import { AttachmentUploadsResponse } from '../model'; -// @ts-ignore -import { HashResponse } from '../model'; -/** - * AttachmentsApi - axios parameter creator - * @export - */ -export const AttachmentsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to remove attachment by Hash. - * @summary Remove attachment by Hash - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteAttachment: async (hash: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'hash' is not null or undefined - assertParamExists('deleteAttachment', 'hash', hash) - const localVarPath = `/v1/attachment/{hash}` - .replace(`{${"hash"}}`, encodeURIComponent(String(hash))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve attachment by Hash. - * @summary Get attachment by Hash - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAttachment: async (hash: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'hash' is not null or undefined - assertParamExists('getAttachment', 'hash', hash) - const localVarPath = `/v1/attachment/{hash}` - .replace(`{${"hash"}}`, encodeURIComponent(String(hash))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve attachments. - * @summary Get all attachments - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAttachments: async (limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/v1/attachment`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. - * @summary Upload attachment - * @param {string} code Code of project, where to search entities. - * @param {Array} [file] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - uploadAttachment: async (code: string, file?: Array, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('uploadAttachment', 'code', code) - const localVarPath = `/v1/attachment/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (file) { - file.forEach((element) => { - if (element?.name !== undefined && element?.value !== undefined) { - localVarFormParams.append('file', element.value, element.name); - } else { - localVarFormParams.append('file', element as any); - } - }); - } - - localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary(); - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * AttachmentsApi - functional programming interface - * @export - */ -export const AttachmentsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = AttachmentsApiAxiosParamCreator(configuration) - return { - /** - * This method allows to remove attachment by Hash. - * @summary Remove attachment by Hash - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteAttachment(hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAttachment(hash, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve attachment by Hash. - * @summary Get attachment by Hash - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getAttachment(hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAttachment(hash, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve attachments. - * @summary Get all attachments - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getAttachments(limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAttachments(limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. - * @summary Upload attachment - * @param {string} code Code of project, where to search entities. - * @param {Array} [file] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async uploadAttachment(code: string, file?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(code, file, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * AttachmentsApi - factory interface - * @export - */ -export const AttachmentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = AttachmentsApiFp(configuration) - return { - /** - * This method allows to remove attachment by Hash. - * @summary Remove attachment by Hash - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteAttachment(hash: string, options?: any): AxiosPromise { - return localVarFp.deleteAttachment(hash, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve attachment by Hash. - * @summary Get attachment by Hash - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAttachment(hash: string, options?: any): AxiosPromise { - return localVarFp.getAttachment(hash, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve attachments. - * @summary Get all attachments - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAttachments(limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getAttachments(limit, offset, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. - * @summary Upload attachment - * @param {string} code Code of project, where to search entities. - * @param {Array} [file] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - uploadAttachment(code: string, file?: Array, options?: any): AxiosPromise { - return localVarFp.uploadAttachment(code, file, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * AttachmentsApi - object-oriented interface - * @export - * @class AttachmentsApi - * @extends {BaseAPI} - */ -export class AttachmentsApi extends BaseAPI { - /** - * This method allows to remove attachment by Hash. - * @summary Remove attachment by Hash - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AttachmentsApi - */ - public deleteAttachment(hash: string, options?: AxiosRequestConfig) { - return AttachmentsApiFp(this.configuration).deleteAttachment(hash, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve attachment by Hash. - * @summary Get attachment by Hash - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AttachmentsApi - */ - public getAttachment(hash: string, options?: AxiosRequestConfig) { - return AttachmentsApiFp(this.configuration).getAttachment(hash, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve attachments. - * @summary Get all attachments - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AttachmentsApi - */ - public getAttachments(limit?: number, offset?: number, options?: AxiosRequestConfig) { - return AttachmentsApiFp(this.configuration).getAttachments(limit, offset, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. - * @summary Upload attachment - * @param {string} code Code of project, where to search entities. - * @param {Array} [file] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AttachmentsApi - */ - public uploadAttachment(code: string, file?: Array, options?: AxiosRequestConfig) { - return AttachmentsApiFp(this.configuration).uploadAttachment(code, file, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/authors-api.ts b/qaseio/src/generated/api/authors-api.ts deleted file mode 100644 index cf8fc1ed..00000000 --- a/qaseio/src/generated/api/authors-api.ts +++ /dev/null @@ -1,227 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { AuthorListResponse } from '../model'; -// @ts-ignore -import { AuthorResponse } from '../model'; -/** - * AuthorsApi - axios parameter creator - * @export - */ -export const AuthorsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to retrieve a specific author. - * @summary Get a specific author - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAuthor: async (id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getAuthor', 'id', id) - const localVarPath = `/v1/author/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all authors in selected project. - * @summary Get all authors - * @param {string} [search] Provide a string that will be used to search by name. - * @param {'app' | 'user'} [type] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAuthors: async (search?: string, type?: 'app' | 'user', limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/v1/author`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * AuthorsApi - functional programming interface - * @export - */ -export const AuthorsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = AuthorsApiAxiosParamCreator(configuration) - return { - /** - * This method allows to retrieve a specific author. - * @summary Get a specific author - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getAuthor(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthor(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all authors in selected project. - * @summary Get all authors - * @param {string} [search] Provide a string that will be used to search by name. - * @param {'app' | 'user'} [type] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getAuthors(search?: string, type?: 'app' | 'user', limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthors(search, type, limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * AuthorsApi - factory interface - * @export - */ -export const AuthorsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = AuthorsApiFp(configuration) - return { - /** - * This method allows to retrieve a specific author. - * @summary Get a specific author - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAuthor(id: number, options?: any): AxiosPromise { - return localVarFp.getAuthor(id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all authors in selected project. - * @summary Get all authors - * @param {string} [search] Provide a string that will be used to search by name. - * @param {'app' | 'user'} [type] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAuthors(search?: string, type?: 'app' | 'user', limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getAuthors(search, type, limit, offset, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * AuthorsApi - object-oriented interface - * @export - * @class AuthorsApi - * @extends {BaseAPI} - */ -export class AuthorsApi extends BaseAPI { - /** - * This method allows to retrieve a specific author. - * @summary Get a specific author - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthorsApi - */ - public getAuthor(id: number, options?: AxiosRequestConfig) { - return AuthorsApiFp(this.configuration).getAuthor(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all authors in selected project. - * @summary Get all authors - * @param {string} [search] Provide a string that will be used to search by name. - * @param {'app' | 'user'} [type] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthorsApi - */ - public getAuthors(search?: string, type?: 'app' | 'user', limit?: number, offset?: number, options?: AxiosRequestConfig) { - return AuthorsApiFp(this.configuration).getAuthors(search, type, limit, offset, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/cases-api.ts b/qaseio/src/generated/api/cases-api.ts deleted file mode 100644 index e1e3eebb..00000000 --- a/qaseio/src/generated/api/cases-api.ts +++ /dev/null @@ -1,814 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { BaseResponse } from '../model'; -// @ts-ignore -import { Bulk200Response } from '../model'; -// @ts-ignore -import { IdResponse } from '../model'; -// @ts-ignore -import { TestCaseCreate } from '../model'; -// @ts-ignore -import { TestCaseListResponse } from '../model'; -// @ts-ignore -import { TestCaseResponse } from '../model'; -// @ts-ignore -import { TestCaseUpdate } from '../model'; -// @ts-ignore -import { TestCasebulk } from '../model'; -// @ts-ignore -import { TestCaseexternalIssues } from '../model'; -/** - * CasesApi - axios parameter creator - * @export - */ -export const CasesApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to bulk create new test cases in a project. - * @summary Create test cases in bulk - * @param {string} code Code of project, where to search entities. - * @param {TestCasebulk} testCasebulk - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - bulk: async (code: string, testCasebulk: TestCasebulk, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('bulk', 'code', code) - // verify required parameter 'testCasebulk' is not null or undefined - assertParamExists('bulk', 'testCasebulk', testCasebulk) - const localVarPath = `/v1/case/{code}/bulk` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(testCasebulk, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Attach the external issues to the test cases - * @param {string} code Code of project, where to search entities. - * @param {TestCaseexternalIssues} testCaseexternalIssues - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - caseAttachExternalIssue: async (code: string, testCaseexternalIssues: TestCaseexternalIssues, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('caseAttachExternalIssue', 'code', code) - // verify required parameter 'testCaseexternalIssues' is not null or undefined - assertParamExists('caseAttachExternalIssue', 'testCaseexternalIssues', testCaseexternalIssues) - const localVarPath = `/v1/case/{code}/external-issue/attach` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(testCaseexternalIssues, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Detach the external issues from the test cases - * @param {string} code Code of project, where to search entities. - * @param {TestCaseexternalIssues} testCaseexternalIssues - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - caseDetachExternalIssue: async (code: string, testCaseexternalIssues: TestCaseexternalIssues, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('caseDetachExternalIssue', 'code', code) - // verify required parameter 'testCaseexternalIssues' is not null or undefined - assertParamExists('caseDetachExternalIssue', 'testCaseexternalIssues', testCaseexternalIssues) - const localVarPath = `/v1/case/{code}/external-issue/detach` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(testCaseexternalIssues, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to create a new test case in selected project. - * @summary Create a new test case - * @param {string} code Code of project, where to search entities. - * @param {TestCaseCreate} testCaseCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createCase: async (code: string, testCaseCreate: TestCaseCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createCase', 'code', code) - // verify required parameter 'testCaseCreate' is not null or undefined - assertParamExists('createCase', 'testCaseCreate', testCaseCreate) - const localVarPath = `/v1/case/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(testCaseCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method completely deletes a test case from repository. - * @summary Delete test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteCase: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('deleteCase', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteCase', 'id', id) - const localVarPath = `/v1/case/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve a specific test case. - * @summary Get a specific test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getCase: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getCase', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('getCase', 'id', id) - const localVarPath = `/v1/case/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all test cases stored in selected project. - * @summary Get all test cases - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [milestoneId] ID of milestone. - * @param {number} [suiteId] ID of test suite. - * @param {string} [severity] A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial - * @param {string} [priority] A list of priority values separated by comma. Possible values: undefined, high, medium, low - * @param {string} [type] A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance - * @param {string} [behavior] A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive - * @param {string} [automation] A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated - * @param {string} [status] A list of values separated by comma. Possible values: actual, draft deprecated - * @param {'asana' | 'azure-devops' | 'clickup-app' | 'github-app' | 'gitlab-app' | 'jira-cloud' | 'jira-server' | 'linear' | 'monday' | 'redmine-app' | 'trello-app' | 'youtrack-app'} [externalIssuesType] An integration type. - * @param {Array} [externalIssuesIds] A list of issue IDs. - * @param {string} [include] A list of entities to include in response separated by comma. Possible values: external_issues. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getCases: async (code: string, search?: string, milestoneId?: number, suiteId?: number, severity?: string, priority?: string, type?: string, behavior?: string, automation?: string, status?: string, externalIssuesType?: 'asana' | 'azure-devops' | 'clickup-app' | 'github-app' | 'gitlab-app' | 'jira-cloud' | 'jira-server' | 'linear' | 'monday' | 'redmine-app' | 'trello-app' | 'youtrack-app', externalIssuesIds?: Array, include?: string, limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getCases', 'code', code) - const localVarPath = `/v1/case/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - if (milestoneId !== undefined) { - localVarQueryParameter['milestone_id'] = milestoneId; - } - - if (suiteId !== undefined) { - localVarQueryParameter['suite_id'] = suiteId; - } - - if (severity !== undefined) { - localVarQueryParameter['severity'] = severity; - } - - if (priority !== undefined) { - localVarQueryParameter['priority'] = priority; - } - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - if (behavior !== undefined) { - localVarQueryParameter['behavior'] = behavior; - } - - if (automation !== undefined) { - localVarQueryParameter['automation'] = automation; - } - - if (status !== undefined) { - localVarQueryParameter['status'] = status; - } - - if (externalIssuesType !== undefined) { - localVarQueryParameter['external_issues[type]'] = externalIssuesType; - } - - if (externalIssuesIds) { - localVarQueryParameter['external_issues[ids][]'] = externalIssuesIds.join(COLLECTION_FORMATS.csv); - } - - if (include !== undefined) { - localVarQueryParameter['include'] = include; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method updates a test case. - * @summary Update test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {TestCaseUpdate} testCaseUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateCase: async (code: string, id: number, testCaseUpdate: TestCaseUpdate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('updateCase', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('updateCase', 'id', id) - // verify required parameter 'testCaseUpdate' is not null or undefined - assertParamExists('updateCase', 'testCaseUpdate', testCaseUpdate) - const localVarPath = `/v1/case/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(testCaseUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * CasesApi - functional programming interface - * @export - */ -export const CasesApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = CasesApiAxiosParamCreator(configuration) - return { - /** - * This method allows to bulk create new test cases in a project. - * @summary Create test cases in bulk - * @param {string} code Code of project, where to search entities. - * @param {TestCasebulk} testCasebulk - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async bulk(code: string, testCasebulk: TestCasebulk, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.bulk(code, testCasebulk, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @summary Attach the external issues to the test cases - * @param {string} code Code of project, where to search entities. - * @param {TestCaseexternalIssues} testCaseexternalIssues - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async caseAttachExternalIssue(code: string, testCaseexternalIssues: TestCaseexternalIssues, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.caseAttachExternalIssue(code, testCaseexternalIssues, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @summary Detach the external issues from the test cases - * @param {string} code Code of project, where to search entities. - * @param {TestCaseexternalIssues} testCaseexternalIssues - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async caseDetachExternalIssue(code: string, testCaseexternalIssues: TestCaseexternalIssues, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.caseDetachExternalIssue(code, testCaseexternalIssues, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to create a new test case in selected project. - * @summary Create a new test case - * @param {string} code Code of project, where to search entities. - * @param {TestCaseCreate} testCaseCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createCase(code: string, testCaseCreate: TestCaseCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createCase(code, testCaseCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method completely deletes a test case from repository. - * @summary Delete test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteCase(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCase(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve a specific test case. - * @summary Get a specific test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getCase(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getCase(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all test cases stored in selected project. - * @summary Get all test cases - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [milestoneId] ID of milestone. - * @param {number} [suiteId] ID of test suite. - * @param {string} [severity] A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial - * @param {string} [priority] A list of priority values separated by comma. Possible values: undefined, high, medium, low - * @param {string} [type] A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance - * @param {string} [behavior] A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive - * @param {string} [automation] A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated - * @param {string} [status] A list of values separated by comma. Possible values: actual, draft deprecated - * @param {'asana' | 'azure-devops' | 'clickup-app' | 'github-app' | 'gitlab-app' | 'jira-cloud' | 'jira-server' | 'linear' | 'monday' | 'redmine-app' | 'trello-app' | 'youtrack-app'} [externalIssuesType] An integration type. - * @param {Array} [externalIssuesIds] A list of issue IDs. - * @param {string} [include] A list of entities to include in response separated by comma. Possible values: external_issues. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getCases(code: string, search?: string, milestoneId?: number, suiteId?: number, severity?: string, priority?: string, type?: string, behavior?: string, automation?: string, status?: string, externalIssuesType?: 'asana' | 'azure-devops' | 'clickup-app' | 'github-app' | 'gitlab-app' | 'jira-cloud' | 'jira-server' | 'linear' | 'monday' | 'redmine-app' | 'trello-app' | 'youtrack-app', externalIssuesIds?: Array, include?: string, limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getCases(code, search, milestoneId, suiteId, severity, priority, type, behavior, automation, status, externalIssuesType, externalIssuesIds, include, limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method updates a test case. - * @summary Update test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {TestCaseUpdate} testCaseUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateCase(code: string, id: number, testCaseUpdate: TestCaseUpdate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateCase(code, id, testCaseUpdate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * CasesApi - factory interface - * @export - */ -export const CasesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = CasesApiFp(configuration) - return { - /** - * This method allows to bulk create new test cases in a project. - * @summary Create test cases in bulk - * @param {string} code Code of project, where to search entities. - * @param {TestCasebulk} testCasebulk - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - bulk(code: string, testCasebulk: TestCasebulk, options?: any): AxiosPromise { - return localVarFp.bulk(code, testCasebulk, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Attach the external issues to the test cases - * @param {string} code Code of project, where to search entities. - * @param {TestCaseexternalIssues} testCaseexternalIssues - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - caseAttachExternalIssue(code: string, testCaseexternalIssues: TestCaseexternalIssues, options?: any): AxiosPromise { - return localVarFp.caseAttachExternalIssue(code, testCaseexternalIssues, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Detach the external issues from the test cases - * @param {string} code Code of project, where to search entities. - * @param {TestCaseexternalIssues} testCaseexternalIssues - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - caseDetachExternalIssue(code: string, testCaseexternalIssues: TestCaseexternalIssues, options?: any): AxiosPromise { - return localVarFp.caseDetachExternalIssue(code, testCaseexternalIssues, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to create a new test case in selected project. - * @summary Create a new test case - * @param {string} code Code of project, where to search entities. - * @param {TestCaseCreate} testCaseCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createCase(code: string, testCaseCreate: TestCaseCreate, options?: any): AxiosPromise { - return localVarFp.createCase(code, testCaseCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method completely deletes a test case from repository. - * @summary Delete test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteCase(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.deleteCase(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve a specific test case. - * @summary Get a specific test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getCase(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.getCase(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all test cases stored in selected project. - * @summary Get all test cases - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [milestoneId] ID of milestone. - * @param {number} [suiteId] ID of test suite. - * @param {string} [severity] A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial - * @param {string} [priority] A list of priority values separated by comma. Possible values: undefined, high, medium, low - * @param {string} [type] A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance - * @param {string} [behavior] A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive - * @param {string} [automation] A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated - * @param {string} [status] A list of values separated by comma. Possible values: actual, draft deprecated - * @param {'asana' | 'azure-devops' | 'clickup-app' | 'github-app' | 'gitlab-app' | 'jira-cloud' | 'jira-server' | 'linear' | 'monday' | 'redmine-app' | 'trello-app' | 'youtrack-app'} [externalIssuesType] An integration type. - * @param {Array} [externalIssuesIds] A list of issue IDs. - * @param {string} [include] A list of entities to include in response separated by comma. Possible values: external_issues. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getCases(code: string, search?: string, milestoneId?: number, suiteId?: number, severity?: string, priority?: string, type?: string, behavior?: string, automation?: string, status?: string, externalIssuesType?: 'asana' | 'azure-devops' | 'clickup-app' | 'github-app' | 'gitlab-app' | 'jira-cloud' | 'jira-server' | 'linear' | 'monday' | 'redmine-app' | 'trello-app' | 'youtrack-app', externalIssuesIds?: Array, include?: string, limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getCases(code, search, milestoneId, suiteId, severity, priority, type, behavior, automation, status, externalIssuesType, externalIssuesIds, include, limit, offset, options).then((request) => request(axios, basePath)); - }, - /** - * This method updates a test case. - * @summary Update test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {TestCaseUpdate} testCaseUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateCase(code: string, id: number, testCaseUpdate: TestCaseUpdate, options?: any): AxiosPromise { - return localVarFp.updateCase(code, id, testCaseUpdate, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * CasesApi - object-oriented interface - * @export - * @class CasesApi - * @extends {BaseAPI} - */ -export class CasesApi extends BaseAPI { - /** - * This method allows to bulk create new test cases in a project. - * @summary Create test cases in bulk - * @param {string} code Code of project, where to search entities. - * @param {TestCasebulk} testCasebulk - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CasesApi - */ - public bulk(code: string, testCasebulk: TestCasebulk, options?: AxiosRequestConfig) { - return CasesApiFp(this.configuration).bulk(code, testCasebulk, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Attach the external issues to the test cases - * @param {string} code Code of project, where to search entities. - * @param {TestCaseexternalIssues} testCaseexternalIssues - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CasesApi - */ - public caseAttachExternalIssue(code: string, testCaseexternalIssues: TestCaseexternalIssues, options?: AxiosRequestConfig) { - return CasesApiFp(this.configuration).caseAttachExternalIssue(code, testCaseexternalIssues, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Detach the external issues from the test cases - * @param {string} code Code of project, where to search entities. - * @param {TestCaseexternalIssues} testCaseexternalIssues - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CasesApi - */ - public caseDetachExternalIssue(code: string, testCaseexternalIssues: TestCaseexternalIssues, options?: AxiosRequestConfig) { - return CasesApiFp(this.configuration).caseDetachExternalIssue(code, testCaseexternalIssues, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to create a new test case in selected project. - * @summary Create a new test case - * @param {string} code Code of project, where to search entities. - * @param {TestCaseCreate} testCaseCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CasesApi - */ - public createCase(code: string, testCaseCreate: TestCaseCreate, options?: AxiosRequestConfig) { - return CasesApiFp(this.configuration).createCase(code, testCaseCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method completely deletes a test case from repository. - * @summary Delete test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CasesApi - */ - public deleteCase(code: string, id: number, options?: AxiosRequestConfig) { - return CasesApiFp(this.configuration).deleteCase(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve a specific test case. - * @summary Get a specific test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CasesApi - */ - public getCase(code: string, id: number, options?: AxiosRequestConfig) { - return CasesApiFp(this.configuration).getCase(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all test cases stored in selected project. - * @summary Get all test cases - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [milestoneId] ID of milestone. - * @param {number} [suiteId] ID of test suite. - * @param {string} [severity] A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial - * @param {string} [priority] A list of priority values separated by comma. Possible values: undefined, high, medium, low - * @param {string} [type] A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance - * @param {string} [behavior] A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive - * @param {string} [automation] A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated - * @param {string} [status] A list of values separated by comma. Possible values: actual, draft deprecated - * @param {'asana' | 'azure-devops' | 'clickup-app' | 'github-app' | 'gitlab-app' | 'jira-cloud' | 'jira-server' | 'linear' | 'monday' | 'redmine-app' | 'trello-app' | 'youtrack-app'} [externalIssuesType] An integration type. - * @param {Array} [externalIssuesIds] A list of issue IDs. - * @param {string} [include] A list of entities to include in response separated by comma. Possible values: external_issues. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CasesApi - */ - public getCases(code: string, search?: string, milestoneId?: number, suiteId?: number, severity?: string, priority?: string, type?: string, behavior?: string, automation?: string, status?: string, externalIssuesType?: 'asana' | 'azure-devops' | 'clickup-app' | 'github-app' | 'gitlab-app' | 'jira-cloud' | 'jira-server' | 'linear' | 'monday' | 'redmine-app' | 'trello-app' | 'youtrack-app', externalIssuesIds?: Array, include?: string, limit?: number, offset?: number, options?: AxiosRequestConfig) { - return CasesApiFp(this.configuration).getCases(code, search, milestoneId, suiteId, severity, priority, type, behavior, automation, status, externalIssuesType, externalIssuesIds, include, limit, offset, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method updates a test case. - * @summary Update test case - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {TestCaseUpdate} testCaseUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CasesApi - */ - public updateCase(code: string, id: number, testCaseUpdate: TestCaseUpdate, options?: AxiosRequestConfig) { - return CasesApiFp(this.configuration).updateCase(code, id, testCaseUpdate, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/configurations-api.ts b/qaseio/src/generated/api/configurations-api.ts deleted file mode 100644 index 3c54ff99..00000000 --- a/qaseio/src/generated/api/configurations-api.ts +++ /dev/null @@ -1,294 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { ConfigurationCreate } from '../model'; -// @ts-ignore -import { ConfigurationGroupCreate } from '../model'; -// @ts-ignore -import { ConfigurationListResponse } from '../model'; -// @ts-ignore -import { IdResponse } from '../model'; -/** - * ConfigurationsApi - axios parameter creator - * @export - */ -export const ConfigurationsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to create a configuration in selected project. - * @summary Create a new configuration in a particular group. - * @param {string} code Code of project, where to search entities. - * @param {ConfigurationCreate} configurationCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createConfiguration: async (code: string, configurationCreate: ConfigurationCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createConfiguration', 'code', code) - // verify required parameter 'configurationCreate' is not null or undefined - assertParamExists('createConfiguration', 'configurationCreate', configurationCreate) - const localVarPath = `/v1/configuration/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(configurationCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to create a configuration group in selected project. - * @summary Create a new configuration group. - * @param {string} code Code of project, where to search entities. - * @param {ConfigurationGroupCreate} configurationGroupCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createConfigurationGroup: async (code: string, configurationGroupCreate: ConfigurationGroupCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createConfigurationGroup', 'code', code) - // verify required parameter 'configurationGroupCreate' is not null or undefined - assertParamExists('createConfigurationGroup', 'configurationGroupCreate', configurationGroupCreate) - const localVarPath = `/v1/configuration/{code}/group` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(configurationGroupCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all configurations groups with configurations - * @summary Get all configuration groups with configurations. - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getConfigurations: async (code: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getConfigurations', 'code', code) - const localVarPath = `/v1/configuration/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ConfigurationsApi - functional programming interface - * @export - */ -export const ConfigurationsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ConfigurationsApiAxiosParamCreator(configuration) - return { - /** - * This method allows to create a configuration in selected project. - * @summary Create a new configuration in a particular group. - * @param {string} code Code of project, where to search entities. - * @param {ConfigurationCreate} configurationCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createConfiguration(code: string, configurationCreate: ConfigurationCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createConfiguration(code, configurationCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to create a configuration group in selected project. - * @summary Create a new configuration group. - * @param {string} code Code of project, where to search entities. - * @param {ConfigurationGroupCreate} configurationGroupCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createConfigurationGroup(code: string, configurationGroupCreate: ConfigurationGroupCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createConfigurationGroup(code, configurationGroupCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all configurations groups with configurations - * @summary Get all configuration groups with configurations. - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getConfigurations(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getConfigurations(code, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * ConfigurationsApi - factory interface - * @export - */ -export const ConfigurationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ConfigurationsApiFp(configuration) - return { - /** - * This method allows to create a configuration in selected project. - * @summary Create a new configuration in a particular group. - * @param {string} code Code of project, where to search entities. - * @param {ConfigurationCreate} configurationCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createConfiguration(code: string, configurationCreate: ConfigurationCreate, options?: any): AxiosPromise { - return localVarFp.createConfiguration(code, configurationCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to create a configuration group in selected project. - * @summary Create a new configuration group. - * @param {string} code Code of project, where to search entities. - * @param {ConfigurationGroupCreate} configurationGroupCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createConfigurationGroup(code: string, configurationGroupCreate: ConfigurationGroupCreate, options?: any): AxiosPromise { - return localVarFp.createConfigurationGroup(code, configurationGroupCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all configurations groups with configurations - * @summary Get all configuration groups with configurations. - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getConfigurations(code: string, options?: any): AxiosPromise { - return localVarFp.getConfigurations(code, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ConfigurationsApi - object-oriented interface - * @export - * @class ConfigurationsApi - * @extends {BaseAPI} - */ -export class ConfigurationsApi extends BaseAPI { - /** - * This method allows to create a configuration in selected project. - * @summary Create a new configuration in a particular group. - * @param {string} code Code of project, where to search entities. - * @param {ConfigurationCreate} configurationCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ConfigurationsApi - */ - public createConfiguration(code: string, configurationCreate: ConfigurationCreate, options?: AxiosRequestConfig) { - return ConfigurationsApiFp(this.configuration).createConfiguration(code, configurationCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to create a configuration group in selected project. - * @summary Create a new configuration group. - * @param {string} code Code of project, where to search entities. - * @param {ConfigurationGroupCreate} configurationGroupCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ConfigurationsApi - */ - public createConfigurationGroup(code: string, configurationGroupCreate: ConfigurationGroupCreate, options?: AxiosRequestConfig) { - return ConfigurationsApiFp(this.configuration).createConfigurationGroup(code, configurationGroupCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all configurations groups with configurations - * @summary Get all configuration groups with configurations. - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ConfigurationsApi - */ - public getConfigurations(code: string, options?: AxiosRequestConfig) { - return ConfigurationsApiFp(this.configuration).getConfigurations(code, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/custom-fields-api.ts b/qaseio/src/generated/api/custom-fields-api.ts deleted file mode 100644 index e40d8841..00000000 --- a/qaseio/src/generated/api/custom-fields-api.ts +++ /dev/null @@ -1,456 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { BaseResponse } from '../model'; -// @ts-ignore -import { CustomFieldCreate } from '../model'; -// @ts-ignore -import { CustomFieldListResponse } from '../model'; -// @ts-ignore -import { CustomFieldResponse } from '../model'; -// @ts-ignore -import { CustomFieldUpdate } from '../model'; -// @ts-ignore -import { IdResponse } from '../model'; -/** - * CustomFieldsApi - axios parameter creator - * @export - */ -export const CustomFieldsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to create custom field. - * @summary Create new Custom Field - * @param {CustomFieldCreate} customFieldCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createCustomField: async (customFieldCreate: CustomFieldCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'customFieldCreate' is not null or undefined - assertParamExists('createCustomField', 'customFieldCreate', customFieldCreate) - const localVarPath = `/v1/custom_field`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(customFieldCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to delete custom field. - * @summary Delete Custom Field by id - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteCustomField: async (id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteCustomField', 'id', id) - const localVarPath = `/v1/custom_field/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve custom field. - * @summary Get Custom Field by id - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getCustomField: async (id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getCustomField', 'id', id) - const localVarPath = `/v1/custom_field/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve and filter custom fields. - * @summary Get all Custom Fields - * @param {'case' | 'run' | 'defect'} [entity] - * @param {'string' | 'text' | 'number' | 'checkbox' | 'selectbox' | 'radio' | 'multiselect' | 'url' | 'user' | 'datetime'} [type] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getCustomFields: async (entity?: 'case' | 'run' | 'defect', type?: 'string' | 'text' | 'number' | 'checkbox' | 'selectbox' | 'radio' | 'multiselect' | 'url' | 'user' | 'datetime', limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/v1/custom_field`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (entity !== undefined) { - localVarQueryParameter['entity'] = entity; - } - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to update custom field. - * @summary Update Custom Field by id - * @param {number} id Identifier. - * @param {CustomFieldUpdate} customFieldUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateCustomField: async (id: number, customFieldUpdate: CustomFieldUpdate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateCustomField', 'id', id) - // verify required parameter 'customFieldUpdate' is not null or undefined - assertParamExists('updateCustomField', 'customFieldUpdate', customFieldUpdate) - const localVarPath = `/v1/custom_field/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(customFieldUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * CustomFieldsApi - functional programming interface - * @export - */ -export const CustomFieldsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = CustomFieldsApiAxiosParamCreator(configuration) - return { - /** - * This method allows to create custom field. - * @summary Create new Custom Field - * @param {CustomFieldCreate} customFieldCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createCustomField(customFieldCreate: CustomFieldCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomField(customFieldCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to delete custom field. - * @summary Delete Custom Field by id - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteCustomField(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCustomField(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve custom field. - * @summary Get Custom Field by id - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getCustomField(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomField(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve and filter custom fields. - * @summary Get all Custom Fields - * @param {'case' | 'run' | 'defect'} [entity] - * @param {'string' | 'text' | 'number' | 'checkbox' | 'selectbox' | 'radio' | 'multiselect' | 'url' | 'user' | 'datetime'} [type] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getCustomFields(entity?: 'case' | 'run' | 'defect', type?: 'string' | 'text' | 'number' | 'checkbox' | 'selectbox' | 'radio' | 'multiselect' | 'url' | 'user' | 'datetime', limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomFields(entity, type, limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to update custom field. - * @summary Update Custom Field by id - * @param {number} id Identifier. - * @param {CustomFieldUpdate} customFieldUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateCustomField(id: number, customFieldUpdate: CustomFieldUpdate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomField(id, customFieldUpdate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * CustomFieldsApi - factory interface - * @export - */ -export const CustomFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = CustomFieldsApiFp(configuration) - return { - /** - * This method allows to create custom field. - * @summary Create new Custom Field - * @param {CustomFieldCreate} customFieldCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createCustomField(customFieldCreate: CustomFieldCreate, options?: any): AxiosPromise { - return localVarFp.createCustomField(customFieldCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to delete custom field. - * @summary Delete Custom Field by id - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteCustomField(id: number, options?: any): AxiosPromise { - return localVarFp.deleteCustomField(id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve custom field. - * @summary Get Custom Field by id - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getCustomField(id: number, options?: any): AxiosPromise { - return localVarFp.getCustomField(id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve and filter custom fields. - * @summary Get all Custom Fields - * @param {'case' | 'run' | 'defect'} [entity] - * @param {'string' | 'text' | 'number' | 'checkbox' | 'selectbox' | 'radio' | 'multiselect' | 'url' | 'user' | 'datetime'} [type] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getCustomFields(entity?: 'case' | 'run' | 'defect', type?: 'string' | 'text' | 'number' | 'checkbox' | 'selectbox' | 'radio' | 'multiselect' | 'url' | 'user' | 'datetime', limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getCustomFields(entity, type, limit, offset, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to update custom field. - * @summary Update Custom Field by id - * @param {number} id Identifier. - * @param {CustomFieldUpdate} customFieldUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateCustomField(id: number, customFieldUpdate: CustomFieldUpdate, options?: any): AxiosPromise { - return localVarFp.updateCustomField(id, customFieldUpdate, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * CustomFieldsApi - object-oriented interface - * @export - * @class CustomFieldsApi - * @extends {BaseAPI} - */ -export class CustomFieldsApi extends BaseAPI { - /** - * This method allows to create custom field. - * @summary Create new Custom Field - * @param {CustomFieldCreate} customFieldCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CustomFieldsApi - */ - public createCustomField(customFieldCreate: CustomFieldCreate, options?: AxiosRequestConfig) { - return CustomFieldsApiFp(this.configuration).createCustomField(customFieldCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to delete custom field. - * @summary Delete Custom Field by id - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CustomFieldsApi - */ - public deleteCustomField(id: number, options?: AxiosRequestConfig) { - return CustomFieldsApiFp(this.configuration).deleteCustomField(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve custom field. - * @summary Get Custom Field by id - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CustomFieldsApi - */ - public getCustomField(id: number, options?: AxiosRequestConfig) { - return CustomFieldsApiFp(this.configuration).getCustomField(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve and filter custom fields. - * @summary Get all Custom Fields - * @param {'case' | 'run' | 'defect'} [entity] - * @param {'string' | 'text' | 'number' | 'checkbox' | 'selectbox' | 'radio' | 'multiselect' | 'url' | 'user' | 'datetime'} [type] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CustomFieldsApi - */ - public getCustomFields(entity?: 'case' | 'run' | 'defect', type?: 'string' | 'text' | 'number' | 'checkbox' | 'selectbox' | 'radio' | 'multiselect' | 'url' | 'user' | 'datetime', limit?: number, offset?: number, options?: AxiosRequestConfig) { - return CustomFieldsApiFp(this.configuration).getCustomFields(entity, type, limit, offset, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to update custom field. - * @summary Update Custom Field by id - * @param {number} id Identifier. - * @param {CustomFieldUpdate} customFieldUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CustomFieldsApi - */ - public updateCustomField(id: number, customFieldUpdate: CustomFieldUpdate, options?: AxiosRequestConfig) { - return CustomFieldsApiFp(this.configuration).updateCustomField(id, customFieldUpdate, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/defects-api.ts b/qaseio/src/generated/api/defects-api.ts deleted file mode 100644 index 55547be3..00000000 --- a/qaseio/src/generated/api/defects-api.ts +++ /dev/null @@ -1,648 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { BaseResponse } from '../model'; -// @ts-ignore -import { DefectCreate } from '../model'; -// @ts-ignore -import { DefectListResponse } from '../model'; -// @ts-ignore -import { DefectResponse } from '../model'; -// @ts-ignore -import { DefectStatus } from '../model'; -// @ts-ignore -import { DefectUpdate } from '../model'; -// @ts-ignore -import { IdResponse } from '../model'; -/** - * DefectsApi - axios parameter creator - * @export - */ -export const DefectsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to create a defect in selected project. - * @summary Create a new defect - * @param {string} code Code of project, where to search entities. - * @param {DefectCreate} defectCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createDefect: async (code: string, defectCreate: DefectCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createDefect', 'code', code) - // verify required parameter 'defectCreate' is not null or undefined - assertParamExists('createDefect', 'defectCreate', defectCreate) - const localVarPath = `/v1/defect/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(defectCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method completely deletes a defect from repository. - * @summary Delete defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteDefect: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('deleteDefect', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteDefect', 'id', id) - const localVarPath = `/v1/defect/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve a specific defect. - * @summary Get a specific defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getDefect: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getDefect', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('getDefect', 'id', id) - const localVarPath = `/v1/defect/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all defects stored in selected project. - * @summary Get all defects - * @param {string} code Code of project, where to search entities. - * @param {'open' | 'resolved' | 'in_progress' | 'invalid'} [status] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getDefects: async (code: string, status?: 'open' | 'resolved' | 'in_progress' | 'invalid', limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getDefects', 'code', code) - const localVarPath = `/v1/defect/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (status !== undefined) { - localVarQueryParameter['status'] = status; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to resolve a specific defect. - * @summary Resolve a specific defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - resolveDefect: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('resolveDefect', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('resolveDefect', 'id', id) - const localVarPath = `/v1/defect/{code}/resolve/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method updates a defect. - * @summary Update defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {DefectUpdate} defectUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateDefect: async (code: string, id: number, defectUpdate: DefectUpdate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('updateDefect', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('updateDefect', 'id', id) - // verify required parameter 'defectUpdate' is not null or undefined - assertParamExists('updateDefect', 'defectUpdate', defectUpdate) - const localVarPath = `/v1/defect/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(defectUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to update a specific defect status. - * @summary Update a specific defect status - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {DefectStatus} defectStatus - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateDefectStatus: async (code: string, id: number, defectStatus: DefectStatus, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('updateDefectStatus', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('updateDefectStatus', 'id', id) - // verify required parameter 'defectStatus' is not null or undefined - assertParamExists('updateDefectStatus', 'defectStatus', defectStatus) - const localVarPath = `/v1/defect/{code}/status/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(defectStatus, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * DefectsApi - functional programming interface - * @export - */ -export const DefectsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = DefectsApiAxiosParamCreator(configuration) - return { - /** - * This method allows to create a defect in selected project. - * @summary Create a new defect - * @param {string} code Code of project, where to search entities. - * @param {DefectCreate} defectCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createDefect(code: string, defectCreate: DefectCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createDefect(code, defectCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method completely deletes a defect from repository. - * @summary Delete defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteDefect(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDefect(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve a specific defect. - * @summary Get a specific defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getDefect(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDefect(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all defects stored in selected project. - * @summary Get all defects - * @param {string} code Code of project, where to search entities. - * @param {'open' | 'resolved' | 'in_progress' | 'invalid'} [status] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getDefects(code: string, status?: 'open' | 'resolved' | 'in_progress' | 'invalid', limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDefects(code, status, limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to resolve a specific defect. - * @summary Resolve a specific defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async resolveDefect(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.resolveDefect(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method updates a defect. - * @summary Update defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {DefectUpdate} defectUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateDefect(code: string, id: number, defectUpdate: DefectUpdate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateDefect(code, id, defectUpdate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to update a specific defect status. - * @summary Update a specific defect status - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {DefectStatus} defectStatus - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateDefectStatus(code: string, id: number, defectStatus: DefectStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateDefectStatus(code, id, defectStatus, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * DefectsApi - factory interface - * @export - */ -export const DefectsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = DefectsApiFp(configuration) - return { - /** - * This method allows to create a defect in selected project. - * @summary Create a new defect - * @param {string} code Code of project, where to search entities. - * @param {DefectCreate} defectCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createDefect(code: string, defectCreate: DefectCreate, options?: any): AxiosPromise { - return localVarFp.createDefect(code, defectCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method completely deletes a defect from repository. - * @summary Delete defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteDefect(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.deleteDefect(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve a specific defect. - * @summary Get a specific defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getDefect(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.getDefect(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all defects stored in selected project. - * @summary Get all defects - * @param {string} code Code of project, where to search entities. - * @param {'open' | 'resolved' | 'in_progress' | 'invalid'} [status] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getDefects(code: string, status?: 'open' | 'resolved' | 'in_progress' | 'invalid', limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getDefects(code, status, limit, offset, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to resolve a specific defect. - * @summary Resolve a specific defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - resolveDefect(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.resolveDefect(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method updates a defect. - * @summary Update defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {DefectUpdate} defectUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateDefect(code: string, id: number, defectUpdate: DefectUpdate, options?: any): AxiosPromise { - return localVarFp.updateDefect(code, id, defectUpdate, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to update a specific defect status. - * @summary Update a specific defect status - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {DefectStatus} defectStatus - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateDefectStatus(code: string, id: number, defectStatus: DefectStatus, options?: any): AxiosPromise { - return localVarFp.updateDefectStatus(code, id, defectStatus, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * DefectsApi - object-oriented interface - * @export - * @class DefectsApi - * @extends {BaseAPI} - */ -export class DefectsApi extends BaseAPI { - /** - * This method allows to create a defect in selected project. - * @summary Create a new defect - * @param {string} code Code of project, where to search entities. - * @param {DefectCreate} defectCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefectsApi - */ - public createDefect(code: string, defectCreate: DefectCreate, options?: AxiosRequestConfig) { - return DefectsApiFp(this.configuration).createDefect(code, defectCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method completely deletes a defect from repository. - * @summary Delete defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefectsApi - */ - public deleteDefect(code: string, id: number, options?: AxiosRequestConfig) { - return DefectsApiFp(this.configuration).deleteDefect(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve a specific defect. - * @summary Get a specific defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefectsApi - */ - public getDefect(code: string, id: number, options?: AxiosRequestConfig) { - return DefectsApiFp(this.configuration).getDefect(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all defects stored in selected project. - * @summary Get all defects - * @param {string} code Code of project, where to search entities. - * @param {'open' | 'resolved' | 'in_progress' | 'invalid'} [status] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefectsApi - */ - public getDefects(code: string, status?: 'open' | 'resolved' | 'in_progress' | 'invalid', limit?: number, offset?: number, options?: AxiosRequestConfig) { - return DefectsApiFp(this.configuration).getDefects(code, status, limit, offset, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to resolve a specific defect. - * @summary Resolve a specific defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefectsApi - */ - public resolveDefect(code: string, id: number, options?: AxiosRequestConfig) { - return DefectsApiFp(this.configuration).resolveDefect(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method updates a defect. - * @summary Update defect - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {DefectUpdate} defectUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefectsApi - */ - public updateDefect(code: string, id: number, defectUpdate: DefectUpdate, options?: AxiosRequestConfig) { - return DefectsApiFp(this.configuration).updateDefect(code, id, defectUpdate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to update a specific defect status. - * @summary Update a specific defect status - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {DefectStatus} defectStatus - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefectsApi - */ - public updateDefectStatus(code: string, id: number, defectStatus: DefectStatus, options?: AxiosRequestConfig) { - return DefectsApiFp(this.configuration).updateDefectStatus(code, id, defectStatus, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/environments-api.ts b/qaseio/src/generated/api/environments-api.ts deleted file mode 100644 index 6907d933..00000000 --- a/qaseio/src/generated/api/environments-api.ts +++ /dev/null @@ -1,489 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { EnvironmentCreate } from '../model'; -// @ts-ignore -import { EnvironmentListResponse } from '../model'; -// @ts-ignore -import { EnvironmentResponse } from '../model'; -// @ts-ignore -import { EnvironmentUpdate } from '../model'; -// @ts-ignore -import { IdResponse } from '../model'; -/** - * EnvironmentsApi - axios parameter creator - * @export - */ -export const EnvironmentsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to create an environment in selected project. - * @summary Create a new environment - * @param {string} code Code of project, where to search entities. - * @param {EnvironmentCreate} environmentCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createEnvironment: async (code: string, environmentCreate: EnvironmentCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createEnvironment', 'code', code) - // verify required parameter 'environmentCreate' is not null or undefined - assertParamExists('createEnvironment', 'environmentCreate', environmentCreate) - const localVarPath = `/v1/environment/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(environmentCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method completely deletes an environment from repository. - * @summary Delete environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteEnvironment: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('deleteEnvironment', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteEnvironment', 'id', id) - const localVarPath = `/v1/environment/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve a specific environment. - * @summary Get a specific environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getEnvironment: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getEnvironment', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('getEnvironment', 'id', id) - const localVarPath = `/v1/environment/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all environments stored in selected project. - * @summary Get all environments - * @param {string} code Code of project, where to search entities. - * @param {string} [search] A search string. Will return all environments with titles containing provided string. - * @param {string} [slug] A search string. Will return all environments with slugs equal to provided string. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getEnvironments: async (code: string, search?: string, slug?: string, limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getEnvironments', 'code', code) - const localVarPath = `/v1/environment/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - if (slug !== undefined) { - localVarQueryParameter['slug'] = slug; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method updates an environment. - * @summary Update environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {EnvironmentUpdate} environmentUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateEnvironment: async (code: string, id: number, environmentUpdate: EnvironmentUpdate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('updateEnvironment', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('updateEnvironment', 'id', id) - // verify required parameter 'environmentUpdate' is not null or undefined - assertParamExists('updateEnvironment', 'environmentUpdate', environmentUpdate) - const localVarPath = `/v1/environment/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(environmentUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * EnvironmentsApi - functional programming interface - * @export - */ -export const EnvironmentsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = EnvironmentsApiAxiosParamCreator(configuration) - return { - /** - * This method allows to create an environment in selected project. - * @summary Create a new environment - * @param {string} code Code of project, where to search entities. - * @param {EnvironmentCreate} environmentCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createEnvironment(code: string, environmentCreate: EnvironmentCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createEnvironment(code, environmentCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method completely deletes an environment from repository. - * @summary Delete environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteEnvironment(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnvironment(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve a specific environment. - * @summary Get a specific environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getEnvironment(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironment(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all environments stored in selected project. - * @summary Get all environments - * @param {string} code Code of project, where to search entities. - * @param {string} [search] A search string. Will return all environments with titles containing provided string. - * @param {string} [slug] A search string. Will return all environments with slugs equal to provided string. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getEnvironments(code: string, search?: string, slug?: string, limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironments(code, search, slug, limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method updates an environment. - * @summary Update environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {EnvironmentUpdate} environmentUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateEnvironment(code: string, id: number, environmentUpdate: EnvironmentUpdate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateEnvironment(code, id, environmentUpdate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * EnvironmentsApi - factory interface - * @export - */ -export const EnvironmentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = EnvironmentsApiFp(configuration) - return { - /** - * This method allows to create an environment in selected project. - * @summary Create a new environment - * @param {string} code Code of project, where to search entities. - * @param {EnvironmentCreate} environmentCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createEnvironment(code: string, environmentCreate: EnvironmentCreate, options?: any): AxiosPromise { - return localVarFp.createEnvironment(code, environmentCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method completely deletes an environment from repository. - * @summary Delete environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteEnvironment(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.deleteEnvironment(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve a specific environment. - * @summary Get a specific environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getEnvironment(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.getEnvironment(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all environments stored in selected project. - * @summary Get all environments - * @param {string} code Code of project, where to search entities. - * @param {string} [search] A search string. Will return all environments with titles containing provided string. - * @param {string} [slug] A search string. Will return all environments with slugs equal to provided string. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getEnvironments(code: string, search?: string, slug?: string, limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getEnvironments(code, search, slug, limit, offset, options).then((request) => request(axios, basePath)); - }, - /** - * This method updates an environment. - * @summary Update environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {EnvironmentUpdate} environmentUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateEnvironment(code: string, id: number, environmentUpdate: EnvironmentUpdate, options?: any): AxiosPromise { - return localVarFp.updateEnvironment(code, id, environmentUpdate, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * EnvironmentsApi - object-oriented interface - * @export - * @class EnvironmentsApi - * @extends {BaseAPI} - */ -export class EnvironmentsApi extends BaseAPI { - /** - * This method allows to create an environment in selected project. - * @summary Create a new environment - * @param {string} code Code of project, where to search entities. - * @param {EnvironmentCreate} environmentCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof EnvironmentsApi - */ - public createEnvironment(code: string, environmentCreate: EnvironmentCreate, options?: AxiosRequestConfig) { - return EnvironmentsApiFp(this.configuration).createEnvironment(code, environmentCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method completely deletes an environment from repository. - * @summary Delete environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof EnvironmentsApi - */ - public deleteEnvironment(code: string, id: number, options?: AxiosRequestConfig) { - return EnvironmentsApiFp(this.configuration).deleteEnvironment(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve a specific environment. - * @summary Get a specific environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof EnvironmentsApi - */ - public getEnvironment(code: string, id: number, options?: AxiosRequestConfig) { - return EnvironmentsApiFp(this.configuration).getEnvironment(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all environments stored in selected project. - * @summary Get all environments - * @param {string} code Code of project, where to search entities. - * @param {string} [search] A search string. Will return all environments with titles containing provided string. - * @param {string} [slug] A search string. Will return all environments with slugs equal to provided string. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof EnvironmentsApi - */ - public getEnvironments(code: string, search?: string, slug?: string, limit?: number, offset?: number, options?: AxiosRequestConfig) { - return EnvironmentsApiFp(this.configuration).getEnvironments(code, search, slug, limit, offset, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method updates an environment. - * @summary Update environment - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {EnvironmentUpdate} environmentUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof EnvironmentsApi - */ - public updateEnvironment(code: string, id: number, environmentUpdate: EnvironmentUpdate, options?: AxiosRequestConfig) { - return EnvironmentsApiFp(this.configuration).updateEnvironment(code, id, environmentUpdate, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/milestones-api.ts b/qaseio/src/generated/api/milestones-api.ts deleted file mode 100644 index 603d661b..00000000 --- a/qaseio/src/generated/api/milestones-api.ts +++ /dev/null @@ -1,481 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { IdResponse } from '../model'; -// @ts-ignore -import { MilestoneCreate } from '../model'; -// @ts-ignore -import { MilestoneListResponse } from '../model'; -// @ts-ignore -import { MilestoneResponse } from '../model'; -// @ts-ignore -import { MilestoneUpdate } from '../model'; -/** - * MilestonesApi - axios parameter creator - * @export - */ -export const MilestonesApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to create a milestone in selected project. - * @summary Create a new milestone - * @param {string} code Code of project, where to search entities. - * @param {MilestoneCreate} milestoneCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMilestone: async (code: string, milestoneCreate: MilestoneCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createMilestone', 'code', code) - // verify required parameter 'milestoneCreate' is not null or undefined - assertParamExists('createMilestone', 'milestoneCreate', milestoneCreate) - const localVarPath = `/v1/milestone/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(milestoneCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method completely deletes a milestone from repository. - * @summary Delete milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteMilestone: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('deleteMilestone', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteMilestone', 'id', id) - const localVarPath = `/v1/milestone/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve a specific milestone. - * @summary Get a specific milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getMilestone: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getMilestone', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('getMilestone', 'id', id) - const localVarPath = `/v1/milestone/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all milestones stored in selected project. - * @summary Get all milestones - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getMilestones: async (code: string, search?: string, limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getMilestones', 'code', code) - const localVarPath = `/v1/milestone/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method updates a milestone. - * @summary Update milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {MilestoneUpdate} milestoneUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateMilestone: async (code: string, id: number, milestoneUpdate: MilestoneUpdate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('updateMilestone', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('updateMilestone', 'id', id) - // verify required parameter 'milestoneUpdate' is not null or undefined - assertParamExists('updateMilestone', 'milestoneUpdate', milestoneUpdate) - const localVarPath = `/v1/milestone/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(milestoneUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * MilestonesApi - functional programming interface - * @export - */ -export const MilestonesApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = MilestonesApiAxiosParamCreator(configuration) - return { - /** - * This method allows to create a milestone in selected project. - * @summary Create a new milestone - * @param {string} code Code of project, where to search entities. - * @param {MilestoneCreate} milestoneCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createMilestone(code: string, milestoneCreate: MilestoneCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createMilestone(code, milestoneCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method completely deletes a milestone from repository. - * @summary Delete milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteMilestone(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMilestone(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve a specific milestone. - * @summary Get a specific milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getMilestone(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getMilestone(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all milestones stored in selected project. - * @summary Get all milestones - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getMilestones(code: string, search?: string, limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getMilestones(code, search, limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method updates a milestone. - * @summary Update milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {MilestoneUpdate} milestoneUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateMilestone(code: string, id: number, milestoneUpdate: MilestoneUpdate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateMilestone(code, id, milestoneUpdate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * MilestonesApi - factory interface - * @export - */ -export const MilestonesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = MilestonesApiFp(configuration) - return { - /** - * This method allows to create a milestone in selected project. - * @summary Create a new milestone - * @param {string} code Code of project, where to search entities. - * @param {MilestoneCreate} milestoneCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMilestone(code: string, milestoneCreate: MilestoneCreate, options?: any): AxiosPromise { - return localVarFp.createMilestone(code, milestoneCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method completely deletes a milestone from repository. - * @summary Delete milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteMilestone(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.deleteMilestone(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve a specific milestone. - * @summary Get a specific milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getMilestone(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.getMilestone(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all milestones stored in selected project. - * @summary Get all milestones - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getMilestones(code: string, search?: string, limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getMilestones(code, search, limit, offset, options).then((request) => request(axios, basePath)); - }, - /** - * This method updates a milestone. - * @summary Update milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {MilestoneUpdate} milestoneUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateMilestone(code: string, id: number, milestoneUpdate: MilestoneUpdate, options?: any): AxiosPromise { - return localVarFp.updateMilestone(code, id, milestoneUpdate, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * MilestonesApi - object-oriented interface - * @export - * @class MilestonesApi - * @extends {BaseAPI} - */ -export class MilestonesApi extends BaseAPI { - /** - * This method allows to create a milestone in selected project. - * @summary Create a new milestone - * @param {string} code Code of project, where to search entities. - * @param {MilestoneCreate} milestoneCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MilestonesApi - */ - public createMilestone(code: string, milestoneCreate: MilestoneCreate, options?: AxiosRequestConfig) { - return MilestonesApiFp(this.configuration).createMilestone(code, milestoneCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method completely deletes a milestone from repository. - * @summary Delete milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MilestonesApi - */ - public deleteMilestone(code: string, id: number, options?: AxiosRequestConfig) { - return MilestonesApiFp(this.configuration).deleteMilestone(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve a specific milestone. - * @summary Get a specific milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MilestonesApi - */ - public getMilestone(code: string, id: number, options?: AxiosRequestConfig) { - return MilestonesApiFp(this.configuration).getMilestone(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all milestones stored in selected project. - * @summary Get all milestones - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MilestonesApi - */ - public getMilestones(code: string, search?: string, limit?: number, offset?: number, options?: AxiosRequestConfig) { - return MilestonesApiFp(this.configuration).getMilestones(code, search, limit, offset, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method updates a milestone. - * @summary Update milestone - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {MilestoneUpdate} milestoneUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof MilestonesApi - */ - public updateMilestone(code: string, id: number, milestoneUpdate: MilestoneUpdate, options?: AxiosRequestConfig) { - return MilestonesApiFp(this.configuration).updateMilestone(code, id, milestoneUpdate, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/plans-api.ts b/qaseio/src/generated/api/plans-api.ts deleted file mode 100644 index c4051812..00000000 --- a/qaseio/src/generated/api/plans-api.ts +++ /dev/null @@ -1,473 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { IdResponse } from '../model'; -// @ts-ignore -import { PlanCreate } from '../model'; -// @ts-ignore -import { PlanListResponse } from '../model'; -// @ts-ignore -import { PlanResponse } from '../model'; -// @ts-ignore -import { PlanUpdate } from '../model'; -/** - * PlansApi - axios parameter creator - * @export - */ -export const PlansApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to create a plan in selected project. - * @summary Create a new plan - * @param {string} code Code of project, where to search entities. - * @param {PlanCreate} planCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createPlan: async (code: string, planCreate: PlanCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createPlan', 'code', code) - // verify required parameter 'planCreate' is not null or undefined - assertParamExists('createPlan', 'planCreate', planCreate) - const localVarPath = `/v1/plan/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(planCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method completely deletes a plan from repository. - * @summary Delete plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletePlan: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('deletePlan', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('deletePlan', 'id', id) - const localVarPath = `/v1/plan/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve a specific plan. - * @summary Get a specific plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getPlan: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getPlan', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('getPlan', 'id', id) - const localVarPath = `/v1/plan/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all plans stored in selected project. - * @summary Get all plans - * @param {string} code Code of project, where to search entities. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getPlans: async (code: string, limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getPlans', 'code', code) - const localVarPath = `/v1/plan/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method updates a plan. - * @summary Update plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {PlanUpdate} planUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatePlan: async (code: string, id: number, planUpdate: PlanUpdate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('updatePlan', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('updatePlan', 'id', id) - // verify required parameter 'planUpdate' is not null or undefined - assertParamExists('updatePlan', 'planUpdate', planUpdate) - const localVarPath = `/v1/plan/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(planUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * PlansApi - functional programming interface - * @export - */ -export const PlansApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration) - return { - /** - * This method allows to create a plan in selected project. - * @summary Create a new plan - * @param {string} code Code of project, where to search entities. - * @param {PlanCreate} planCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createPlan(code: string, planCreate: PlanCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createPlan(code, planCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method completely deletes a plan from repository. - * @summary Delete plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deletePlan(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deletePlan(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve a specific plan. - * @summary Get a specific plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getPlan(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPlan(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all plans stored in selected project. - * @summary Get all plans - * @param {string} code Code of project, where to search entities. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getPlans(code: string, limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPlans(code, limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method updates a plan. - * @summary Update plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {PlanUpdate} planUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updatePlan(code: string, id: number, planUpdate: PlanUpdate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlan(code, id, planUpdate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * PlansApi - factory interface - * @export - */ -export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = PlansApiFp(configuration) - return { - /** - * This method allows to create a plan in selected project. - * @summary Create a new plan - * @param {string} code Code of project, where to search entities. - * @param {PlanCreate} planCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createPlan(code: string, planCreate: PlanCreate, options?: any): AxiosPromise { - return localVarFp.createPlan(code, planCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method completely deletes a plan from repository. - * @summary Delete plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deletePlan(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.deletePlan(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve a specific plan. - * @summary Get a specific plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getPlan(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.getPlan(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all plans stored in selected project. - * @summary Get all plans - * @param {string} code Code of project, where to search entities. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getPlans(code: string, limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getPlans(code, limit, offset, options).then((request) => request(axios, basePath)); - }, - /** - * This method updates a plan. - * @summary Update plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {PlanUpdate} planUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatePlan(code: string, id: number, planUpdate: PlanUpdate, options?: any): AxiosPromise { - return localVarFp.updatePlan(code, id, planUpdate, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * PlansApi - object-oriented interface - * @export - * @class PlansApi - * @extends {BaseAPI} - */ -export class PlansApi extends BaseAPI { - /** - * This method allows to create a plan in selected project. - * @summary Create a new plan - * @param {string} code Code of project, where to search entities. - * @param {PlanCreate} planCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PlansApi - */ - public createPlan(code: string, planCreate: PlanCreate, options?: AxiosRequestConfig) { - return PlansApiFp(this.configuration).createPlan(code, planCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method completely deletes a plan from repository. - * @summary Delete plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PlansApi - */ - public deletePlan(code: string, id: number, options?: AxiosRequestConfig) { - return PlansApiFp(this.configuration).deletePlan(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve a specific plan. - * @summary Get a specific plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PlansApi - */ - public getPlan(code: string, id: number, options?: AxiosRequestConfig) { - return PlansApiFp(this.configuration).getPlan(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all plans stored in selected project. - * @summary Get all plans - * @param {string} code Code of project, where to search entities. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PlansApi - */ - public getPlans(code: string, limit?: number, offset?: number, options?: AxiosRequestConfig) { - return PlansApiFp(this.configuration).getPlans(code, limit, offset, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method updates a plan. - * @summary Update plan - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {PlanUpdate} planUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PlansApi - */ - public updatePlan(code: string, id: number, planUpdate: PlanUpdate, options?: AxiosRequestConfig) { - return PlansApiFp(this.configuration).updatePlan(code, id, planUpdate, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/projects-api.ts b/qaseio/src/generated/api/projects-api.ts deleted file mode 100644 index 2c4f3970..00000000 --- a/qaseio/src/generated/api/projects-api.ts +++ /dev/null @@ -1,519 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { BaseResponse } from '../model'; -// @ts-ignore -import { ProjectAccess } from '../model'; -// @ts-ignore -import { ProjectCodeResponse } from '../model'; -// @ts-ignore -import { ProjectCreate } from '../model'; -// @ts-ignore -import { ProjectListResponse } from '../model'; -// @ts-ignore -import { ProjectResponse } from '../model'; -/** - * ProjectsApi - axios parameter creator - * @export - */ -export const ProjectsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method is used to create a new project through API. - * @summary Create new project - * @param {ProjectCreate} projectCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createProject: async (projectCreate: ProjectCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'projectCreate' is not null or undefined - assertParamExists('createProject', 'projectCreate', projectCreate) - const localVarPath = `/v1/project`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(projectCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to delete a specific project. - * @summary Delete Project by code - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteProject: async (code: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('deleteProject', 'code', code) - const localVarPath = `/v1/project/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve a specific project. - * @summary Get Project by code - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getProject: async (code: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getProject', 'code', code) - const localVarPath = `/v1/project/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all projects available for your account. You can limit and offset params to paginate. - * @summary Get All Projects - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getProjects: async (limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/v1/project`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to grant access to a specific project. - * @summary Grant access to project by code - * @param {string} code Code of project, where to search entities. - * @param {ProjectAccess} projectAccess - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - grantAccessToProject: async (code: string, projectAccess: ProjectAccess, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('grantAccessToProject', 'code', code) - // verify required parameter 'projectAccess' is not null or undefined - assertParamExists('grantAccessToProject', 'projectAccess', projectAccess) - const localVarPath = `/v1/project/{code}/access` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(projectAccess, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to revoke access to a specific project. - * @summary Revoke access to project by code - * @param {string} code Code of project, where to search entities. - * @param {ProjectAccess} projectAccess - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - revokeAccessToProject: async (code: string, projectAccess: ProjectAccess, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('revokeAccessToProject', 'code', code) - // verify required parameter 'projectAccess' is not null or undefined - assertParamExists('revokeAccessToProject', 'projectAccess', projectAccess) - const localVarPath = `/v1/project/{code}/access` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(projectAccess, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ProjectsApi - functional programming interface - * @export - */ -export const ProjectsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration) - return { - /** - * This method is used to create a new project through API. - * @summary Create new project - * @param {ProjectCreate} projectCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createProject(projectCreate: ProjectCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createProject(projectCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to delete a specific project. - * @summary Delete Project by code - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteProject(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProject(code, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve a specific project. - * @summary Get Project by code - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getProject(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getProject(code, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all projects available for your account. You can limit and offset params to paginate. - * @summary Get All Projects - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getProjects(limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getProjects(limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to grant access to a specific project. - * @summary Grant access to project by code - * @param {string} code Code of project, where to search entities. - * @param {ProjectAccess} projectAccess - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async grantAccessToProject(code: string, projectAccess: ProjectAccess, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.grantAccessToProject(code, projectAccess, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to revoke access to a specific project. - * @summary Revoke access to project by code - * @param {string} code Code of project, where to search entities. - * @param {ProjectAccess} projectAccess - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async revokeAccessToProject(code: string, projectAccess: ProjectAccess, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.revokeAccessToProject(code, projectAccess, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * ProjectsApi - factory interface - * @export - */ -export const ProjectsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ProjectsApiFp(configuration) - return { - /** - * This method is used to create a new project through API. - * @summary Create new project - * @param {ProjectCreate} projectCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createProject(projectCreate: ProjectCreate, options?: any): AxiosPromise { - return localVarFp.createProject(projectCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to delete a specific project. - * @summary Delete Project by code - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteProject(code: string, options?: any): AxiosPromise { - return localVarFp.deleteProject(code, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve a specific project. - * @summary Get Project by code - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getProject(code: string, options?: any): AxiosPromise { - return localVarFp.getProject(code, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all projects available for your account. You can limit and offset params to paginate. - * @summary Get All Projects - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getProjects(limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getProjects(limit, offset, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to grant access to a specific project. - * @summary Grant access to project by code - * @param {string} code Code of project, where to search entities. - * @param {ProjectAccess} projectAccess - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - grantAccessToProject(code: string, projectAccess: ProjectAccess, options?: any): AxiosPromise { - return localVarFp.grantAccessToProject(code, projectAccess, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to revoke access to a specific project. - * @summary Revoke access to project by code - * @param {string} code Code of project, where to search entities. - * @param {ProjectAccess} projectAccess - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - revokeAccessToProject(code: string, projectAccess: ProjectAccess, options?: any): AxiosPromise { - return localVarFp.revokeAccessToProject(code, projectAccess, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ProjectsApi - object-oriented interface - * @export - * @class ProjectsApi - * @extends {BaseAPI} - */ -export class ProjectsApi extends BaseAPI { - /** - * This method is used to create a new project through API. - * @summary Create new project - * @param {ProjectCreate} projectCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProjectsApi - */ - public createProject(projectCreate: ProjectCreate, options?: AxiosRequestConfig) { - return ProjectsApiFp(this.configuration).createProject(projectCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to delete a specific project. - * @summary Delete Project by code - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProjectsApi - */ - public deleteProject(code: string, options?: AxiosRequestConfig) { - return ProjectsApiFp(this.configuration).deleteProject(code, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve a specific project. - * @summary Get Project by code - * @param {string} code Code of project, where to search entities. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProjectsApi - */ - public getProject(code: string, options?: AxiosRequestConfig) { - return ProjectsApiFp(this.configuration).getProject(code, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all projects available for your account. You can limit and offset params to paginate. - * @summary Get All Projects - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProjectsApi - */ - public getProjects(limit?: number, offset?: number, options?: AxiosRequestConfig) { - return ProjectsApiFp(this.configuration).getProjects(limit, offset, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to grant access to a specific project. - * @summary Grant access to project by code - * @param {string} code Code of project, where to search entities. - * @param {ProjectAccess} projectAccess - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProjectsApi - */ - public grantAccessToProject(code: string, projectAccess: ProjectAccess, options?: AxiosRequestConfig) { - return ProjectsApiFp(this.configuration).grantAccessToProject(code, projectAccess, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to revoke access to a specific project. - * @summary Revoke access to project by code - * @param {string} code Code of project, where to search entities. - * @param {ProjectAccess} projectAccess - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProjectsApi - */ - public revokeAccessToProject(code: string, projectAccess: ProjectAccess, options?: AxiosRequestConfig) { - return ProjectsApiFp(this.configuration).revokeAccessToProject(code, projectAccess, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/result-api.ts b/qaseio/src/generated/api/result-api.ts deleted file mode 100644 index 47f281f9..00000000 --- a/qaseio/src/generated/api/result-api.ts +++ /dev/null @@ -1,234 +0,0 @@ -/* 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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { CreateResultsRequestV2 } from '../model'; -// @ts-ignore -import { ResultCreateV2 } from '../model'; -/** - * ResultApi - axios parameter creator - * @export - */ -export const ResultApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to create single test run result. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Create test run result - * @param {string} projectCode - * @param {number} runId - * @param {ResultCreateV2} resultCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createResultV2: async (projectCode: string, runId: number, resultCreate: ResultCreateV2, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'projectCode' is not null or undefined - assertParamExists('createResultV2', 'projectCode', projectCode) - // verify required parameter 'runId' is not null or undefined - assertParamExists('createResultV2', 'runId', runId) - // verify required parameter 'resultCreate' is not null or undefined - assertParamExists('createResultV2', 'resultCreate', resultCreate) - const localVarPath = `/v2/{project_code}/run/{run_id}/result` - .replace(`{${"project_code"}}`, encodeURIComponent(String(projectCode))) - .replace(`{${"run_id"}}`, encodeURIComponent(String(runId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(resultCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to create several test run results at once. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Bulk create test run result - * @param {string} projectCode - * @param {number} runId - * @param {CreateResultsRequestV2} createResultsRequestV2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createResultsV2: async (projectCode: string, runId: number, createResultsRequestV2: CreateResultsRequestV2, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'projectCode' is not null or undefined - assertParamExists('createResultsV2', 'projectCode', projectCode) - // verify required parameter 'runId' is not null or undefined - assertParamExists('createResultsV2', 'runId', runId) - // verify required parameter 'createResultsRequestV2' is not null or undefined - assertParamExists('createResultsV2', 'createResultsRequestV2', createResultsRequestV2) - const localVarPath = `/v2/{project_code}/run/{run_id}/results` - .replace(`{${"project_code"}}`, encodeURIComponent(String(projectCode))) - .replace(`{${"run_id"}}`, encodeURIComponent(String(runId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(createResultsRequestV2, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ResultApi - functional programming interface - * @export - */ -export const ResultApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ResultApiAxiosParamCreator(configuration) - return { - /** - * This method allows to create single test run result. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Create test run result - * @param {string} projectCode - * @param {number} runId - * @param {ResultCreateV2} resultCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createResultV2(projectCode: string, runId: number, resultCreate: ResultCreateV2, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createResultV2(projectCode, runId, resultCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to create several test run results at once. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Bulk create test run result - * @param {string} projectCode - * @param {number} runId - * @param {CreateResultsRequestV2} createResultsRequestV2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createResultsV2(projectCode: string, runId: number, createResultsRequestV2: CreateResultsRequestV2, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createResultsV2(projectCode, runId, createResultsRequestV2, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * ResultApi - factory interface - * @export - */ -export const ResultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ResultApiFp(configuration) - return { - /** - * This method allows to create single test run result. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Create test run result - * @param {string} projectCode - * @param {number} runId - * @param {ResultCreateV2} resultCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createResultV2(projectCode: string, runId: number, resultCreate: ResultCreateV2, options?: any): AxiosPromise { - return localVarFp.createResultV2(projectCode, runId, resultCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to create several test run results at once. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Bulk create test run result - * @param {string} projectCode - * @param {number} runId - * @param {CreateResultsRequestV2} createResultsRequestV2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createResultsV2(projectCode: string, runId: number, createResultsRequestV2: CreateResultsRequestV2, options?: any): AxiosPromise { - return localVarFp.createResultsV2(projectCode, runId, createResultsRequestV2, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ResultApi - object-oriented interface - * @export - * @class ResultApi - * @extends {BaseAPI} - */ -export class ResultApi extends BaseAPI { - /** - * This method allows to create single test run result. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Create test run result - * @param {string} projectCode - * @param {number} runId - * @param {ResultCreateV2} resultCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ResultApi - */ - public createResultV2(projectCode: string, runId: number, resultCreate: ResultCreateV2, options?: AxiosRequestConfig) { - return ResultApiFp(this.configuration).createResultV2(projectCode, runId, resultCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to create several test run results at once. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Bulk create test run result - * @param {string} projectCode - * @param {number} runId - * @param {CreateResultsRequestV2} createResultsRequestV2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ResultApi - */ - public createResultsV2(projectCode: string, runId: number, createResultsRequestV2: CreateResultsRequestV2, options?: AxiosRequestConfig) { - return ResultApiFp(this.configuration).createResultsV2(projectCode, runId, createResultsRequestV2, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/results-api.ts b/qaseio/src/generated/api/results-api.ts deleted file mode 100644 index 17f911fe..00000000 --- a/qaseio/src/generated/api/results-api.ts +++ /dev/null @@ -1,642 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { BaseResponse } from '../model'; -// @ts-ignore -import { HashResponse } from '../model'; -// @ts-ignore -import { ResultCreate } from '../model'; -// @ts-ignore -import { ResultCreateResponse } from '../model'; -// @ts-ignore -import { ResultListResponse } from '../model'; -// @ts-ignore -import { ResultResponse } from '../model'; -// @ts-ignore -import { ResultUpdate } from '../model'; -// @ts-ignore -import { ResultcreateBulk } from '../model'; -/** - * ResultsApi - axios parameter creator - * @export - */ -export const ResultsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to create test run result by Run Id. - * @summary Create test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {ResultCreate} resultCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createResult: async (code: string, id: number, resultCreate: ResultCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createResult', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('createResult', 'id', id) - // verify required parameter 'resultCreate' is not null or undefined - assertParamExists('createResult', 'resultCreate', resultCreate) - const localVarPath = `/v1/result/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(resultCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Bulk create test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {ResultcreateBulk} resultcreateBulk - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createResultBulk: async (code: string, id: number, resultcreateBulk: ResultcreateBulk, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createResultBulk', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('createResultBulk', 'id', id) - // verify required parameter 'resultcreateBulk' is not null or undefined - assertParamExists('createResultBulk', 'resultcreateBulk', resultcreateBulk) - const localVarPath = `/v1/result/{code}/{id}/bulk` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(resultcreateBulk, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to delete test run result. - * @summary Delete test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteResult: async (code: string, id: number, hash: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('deleteResult', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteResult', 'id', id) - // verify required parameter 'hash' is not null or undefined - assertParamExists('deleteResult', 'hash', hash) - const localVarPath = `/v1/result/{code}/{id}/{hash}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"hash"}}`, encodeURIComponent(String(hash))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve a specific test run result by Hash. - * @summary Get test run result by code - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getResult: async (code: string, hash: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getResult', 'code', code) - // verify required parameter 'hash' is not null or undefined - assertParamExists('getResult', 'hash', hash) - const localVarPath = `/v1/result/{code}/{hash}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"hash"}}`, encodeURIComponent(String(hash))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all test run results stored in selected project. - * @summary Get all test run results - * @param {string} code Code of project, where to search entities. - * @param {string} [status] A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. - * @param {string} [run] A list of run IDs separated by comma. - * @param {string} [caseId] A list of case IDs separated by comma. - * @param {string} [member] A list of member IDs separated by comma. - * @param {boolean} [api] - * @param {string} [fromEndTime] Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. - * @param {string} [toEndTime] Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getResults: async (code: string, status?: string, run?: string, caseId?: string, member?: string, api?: boolean, fromEndTime?: string, toEndTime?: string, limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getResults', 'code', code) - const localVarPath = `/v1/result/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (status !== undefined) { - localVarQueryParameter['status'] = status; - } - - if (run !== undefined) { - localVarQueryParameter['run'] = run; - } - - if (caseId !== undefined) { - localVarQueryParameter['case_id'] = caseId; - } - - if (member !== undefined) { - localVarQueryParameter['member'] = member; - } - - if (api !== undefined) { - localVarQueryParameter['api'] = api; - } - - if (fromEndTime !== undefined) { - localVarQueryParameter['from_end_time'] = fromEndTime; - } - - if (toEndTime !== undefined) { - localVarQueryParameter['to_end_time'] = toEndTime; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to update test run result. - * @summary Update test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} hash Hash. - * @param {ResultUpdate} resultUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateResult: async (code: string, id: number, hash: string, resultUpdate: ResultUpdate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('updateResult', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('updateResult', 'id', id) - // verify required parameter 'hash' is not null or undefined - assertParamExists('updateResult', 'hash', hash) - // verify required parameter 'resultUpdate' is not null or undefined - assertParamExists('updateResult', 'resultUpdate', resultUpdate) - const localVarPath = `/v1/result/{code}/{id}/{hash}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"hash"}}`, encodeURIComponent(String(hash))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(resultUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ResultsApi - functional programming interface - * @export - */ -export const ResultsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ResultsApiAxiosParamCreator(configuration) - return { - /** - * This method allows to create test run result by Run Id. - * @summary Create test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {ResultCreate} resultCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createResult(code: string, id: number, resultCreate: ResultCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createResult(code, id, resultCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Bulk create test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {ResultcreateBulk} resultcreateBulk - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createResultBulk(code: string, id: number, resultcreateBulk: ResultcreateBulk, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createResultBulk(code, id, resultcreateBulk, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to delete test run result. - * @summary Delete test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteResult(code: string, id: number, hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteResult(code, id, hash, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve a specific test run result by Hash. - * @summary Get test run result by code - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getResult(code: string, hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getResult(code, hash, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all test run results stored in selected project. - * @summary Get all test run results - * @param {string} code Code of project, where to search entities. - * @param {string} [status] A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. - * @param {string} [run] A list of run IDs separated by comma. - * @param {string} [caseId] A list of case IDs separated by comma. - * @param {string} [member] A list of member IDs separated by comma. - * @param {boolean} [api] - * @param {string} [fromEndTime] Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. - * @param {string} [toEndTime] Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getResults(code: string, status?: string, run?: string, caseId?: string, member?: string, api?: boolean, fromEndTime?: string, toEndTime?: string, limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getResults(code, status, run, caseId, member, api, fromEndTime, toEndTime, limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to update test run result. - * @summary Update test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} hash Hash. - * @param {ResultUpdate} resultUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateResult(code: string, id: number, hash: string, resultUpdate: ResultUpdate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateResult(code, id, hash, resultUpdate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * ResultsApi - factory interface - * @export - */ -export const ResultsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ResultsApiFp(configuration) - return { - /** - * This method allows to create test run result by Run Id. - * @summary Create test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {ResultCreate} resultCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createResult(code: string, id: number, resultCreate: ResultCreate, options?: any): AxiosPromise { - return localVarFp.createResult(code, id, resultCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Bulk create test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {ResultcreateBulk} resultcreateBulk - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createResultBulk(code: string, id: number, resultcreateBulk: ResultcreateBulk, options?: any): AxiosPromise { - return localVarFp.createResultBulk(code, id, resultcreateBulk, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to delete test run result. - * @summary Delete test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteResult(code: string, id: number, hash: string, options?: any): AxiosPromise { - return localVarFp.deleteResult(code, id, hash, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve a specific test run result by Hash. - * @summary Get test run result by code - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getResult(code: string, hash: string, options?: any): AxiosPromise { - return localVarFp.getResult(code, hash, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all test run results stored in selected project. - * @summary Get all test run results - * @param {string} code Code of project, where to search entities. - * @param {string} [status] A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. - * @param {string} [run] A list of run IDs separated by comma. - * @param {string} [caseId] A list of case IDs separated by comma. - * @param {string} [member] A list of member IDs separated by comma. - * @param {boolean} [api] - * @param {string} [fromEndTime] Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. - * @param {string} [toEndTime] Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getResults(code: string, status?: string, run?: string, caseId?: string, member?: string, api?: boolean, fromEndTime?: string, toEndTime?: string, limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getResults(code, status, run, caseId, member, api, fromEndTime, toEndTime, limit, offset, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to update test run result. - * @summary Update test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} hash Hash. - * @param {ResultUpdate} resultUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateResult(code: string, id: number, hash: string, resultUpdate: ResultUpdate, options?: any): AxiosPromise { - return localVarFp.updateResult(code, id, hash, resultUpdate, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ResultsApi - object-oriented interface - * @export - * @class ResultsApi - * @extends {BaseAPI} - */ -export class ResultsApi extends BaseAPI { - /** - * This method allows to create test run result by Run Id. - * @summary Create test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {ResultCreate} resultCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ResultsApi - */ - public createResult(code: string, id: number, resultCreate: ResultCreate, options?: AxiosRequestConfig) { - return ResultsApiFp(this.configuration).createResult(code, id, resultCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - * @summary Bulk create test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {ResultcreateBulk} resultcreateBulk - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ResultsApi - */ - public createResultBulk(code: string, id: number, resultcreateBulk: ResultcreateBulk, options?: AxiosRequestConfig) { - return ResultsApiFp(this.configuration).createResultBulk(code, id, resultcreateBulk, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to delete test run result. - * @summary Delete test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ResultsApi - */ - public deleteResult(code: string, id: number, hash: string, options?: AxiosRequestConfig) { - return ResultsApiFp(this.configuration).deleteResult(code, id, hash, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve a specific test run result by Hash. - * @summary Get test run result by code - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ResultsApi - */ - public getResult(code: string, hash: string, options?: AxiosRequestConfig) { - return ResultsApiFp(this.configuration).getResult(code, hash, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all test run results stored in selected project. - * @summary Get all test run results - * @param {string} code Code of project, where to search entities. - * @param {string} [status] A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. - * @param {string} [run] A list of run IDs separated by comma. - * @param {string} [caseId] A list of case IDs separated by comma. - * @param {string} [member] A list of member IDs separated by comma. - * @param {boolean} [api] - * @param {string} [fromEndTime] Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. - * @param {string} [toEndTime] Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ResultsApi - */ - public getResults(code: string, status?: string, run?: string, caseId?: string, member?: string, api?: boolean, fromEndTime?: string, toEndTime?: string, limit?: number, offset?: number, options?: AxiosRequestConfig) { - return ResultsApiFp(this.configuration).getResults(code, status, run, caseId, member, api, fromEndTime, toEndTime, limit, offset, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to update test run result. - * @summary Update test run result - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} hash Hash. - * @param {ResultUpdate} resultUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ResultsApi - */ - public updateResult(code: string, id: number, hash: string, resultUpdate: ResultUpdate, options?: AxiosRequestConfig) { - return ResultsApiFp(this.configuration).updateResult(code, id, hash, resultUpdate, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/runs-api.ts b/qaseio/src/generated/api/runs-api.ts deleted file mode 100644 index 322e9941..00000000 --- a/qaseio/src/generated/api/runs-api.ts +++ /dev/null @@ -1,618 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { BaseResponse } from '../model'; -// @ts-ignore -import { IdResponse } from '../model'; -// @ts-ignore -import { RunCreate } from '../model'; -// @ts-ignore -import { RunListResponse } from '../model'; -// @ts-ignore -import { RunPublic } from '../model'; -// @ts-ignore -import { RunPublicResponse } from '../model'; -// @ts-ignore -import { RunResponse } from '../model'; -/** - * RunsApi - axios parameter creator - * @export - */ -export const RunsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to complete a specific run. - * @summary Complete a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - completeRun: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('completeRun', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('completeRun', 'id', id) - const localVarPath = `/v1/run/{code}/{id}/complete` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to create a run in selected project. - * @summary Create a new run - * @param {string} code Code of project, where to search entities. - * @param {RunCreate} runCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createRun: async (code: string, runCreate: RunCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createRun', 'code', code) - // verify required parameter 'runCreate' is not null or undefined - assertParamExists('createRun', 'runCreate', runCreate) - const localVarPath = `/v1/run/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(runCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method completely deletes a run from repository. - * @summary Delete run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteRun: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('deleteRun', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteRun', 'id', id) - const localVarPath = `/v1/run/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve a specific run. - * @summary Get a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} [include] Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getRun: async (code: string, id: number, include?: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getRun', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('getRun', 'id', id) - const localVarPath = `/v1/run/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (include !== undefined) { - localVarQueryParameter['include'] = include; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all runs stored in selected project. - * @summary Get all runs - * @param {string} code Code of project, where to search entities. - * @param {string} [search] - * @param {string} [status] A list of status values separated by comma. Possible values: in_progress, passed, failed, aborted, active (deprecated), complete (deprecated), abort (deprecated). - * @param {number} [milestone] - * @param {number} [environment] - * @param {number} [fromStartTime] - * @param {number} [toStartTime] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {string} [include] Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getRuns: async (code: string, search?: string, status?: string, milestone?: number, environment?: number, fromStartTime?: number, toStartTime?: number, limit?: number, offset?: number, include?: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getRuns', 'code', code) - const localVarPath = `/v1/run/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - if (status !== undefined) { - localVarQueryParameter['status'] = status; - } - - if (milestone !== undefined) { - localVarQueryParameter['milestone'] = milestone; - } - - if (environment !== undefined) { - localVarQueryParameter['environment'] = environment; - } - - if (fromStartTime !== undefined) { - localVarQueryParameter['from_start_time'] = fromStartTime; - } - - if (toStartTime !== undefined) { - localVarQueryParameter['to_start_time'] = toStartTime; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - if (include !== undefined) { - localVarQueryParameter['include'] = include; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to update a publicity of specific run. - * @summary Update publicity of a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {RunPublic} runPublic - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateRunPublicity: async (code: string, id: number, runPublic: RunPublic, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('updateRunPublicity', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('updateRunPublicity', 'id', id) - // verify required parameter 'runPublic' is not null or undefined - assertParamExists('updateRunPublicity', 'runPublic', runPublic) - const localVarPath = `/v1/run/{code}/{id}/public` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(runPublic, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * RunsApi - functional programming interface - * @export - */ -export const RunsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = RunsApiAxiosParamCreator(configuration) - return { - /** - * This method allows to complete a specific run. - * @summary Complete a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async completeRun(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.completeRun(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to create a run in selected project. - * @summary Create a new run - * @param {string} code Code of project, where to search entities. - * @param {RunCreate} runCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createRun(code: string, runCreate: RunCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createRun(code, runCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method completely deletes a run from repository. - * @summary Delete run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteRun(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRun(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve a specific run. - * @summary Get a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} [include] Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getRun(code: string, id: number, include?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getRun(code, id, include, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all runs stored in selected project. - * @summary Get all runs - * @param {string} code Code of project, where to search entities. - * @param {string} [search] - * @param {string} [status] A list of status values separated by comma. Possible values: in_progress, passed, failed, aborted, active (deprecated), complete (deprecated), abort (deprecated). - * @param {number} [milestone] - * @param {number} [environment] - * @param {number} [fromStartTime] - * @param {number} [toStartTime] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {string} [include] Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getRuns(code: string, search?: string, status?: string, milestone?: number, environment?: number, fromStartTime?: number, toStartTime?: number, limit?: number, offset?: number, include?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getRuns(code, search, status, milestone, environment, fromStartTime, toStartTime, limit, offset, include, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to update a publicity of specific run. - * @summary Update publicity of a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {RunPublic} runPublic - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateRunPublicity(code: string, id: number, runPublic: RunPublic, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateRunPublicity(code, id, runPublic, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * RunsApi - factory interface - * @export - */ -export const RunsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = RunsApiFp(configuration) - return { - /** - * This method allows to complete a specific run. - * @summary Complete a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - completeRun(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.completeRun(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to create a run in selected project. - * @summary Create a new run - * @param {string} code Code of project, where to search entities. - * @param {RunCreate} runCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createRun(code: string, runCreate: RunCreate, options?: any): AxiosPromise { - return localVarFp.createRun(code, runCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method completely deletes a run from repository. - * @summary Delete run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteRun(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.deleteRun(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve a specific run. - * @summary Get a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} [include] Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getRun(code: string, id: number, include?: string, options?: any): AxiosPromise { - return localVarFp.getRun(code, id, include, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all runs stored in selected project. - * @summary Get all runs - * @param {string} code Code of project, where to search entities. - * @param {string} [search] - * @param {string} [status] A list of status values separated by comma. Possible values: in_progress, passed, failed, aborted, active (deprecated), complete (deprecated), abort (deprecated). - * @param {number} [milestone] - * @param {number} [environment] - * @param {number} [fromStartTime] - * @param {number} [toStartTime] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {string} [include] Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getRuns(code: string, search?: string, status?: string, milestone?: number, environment?: number, fromStartTime?: number, toStartTime?: number, limit?: number, offset?: number, include?: string, options?: any): AxiosPromise { - return localVarFp.getRuns(code, search, status, milestone, environment, fromStartTime, toStartTime, limit, offset, include, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to update a publicity of specific run. - * @summary Update publicity of a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {RunPublic} runPublic - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateRunPublicity(code: string, id: number, runPublic: RunPublic, options?: any): AxiosPromise { - return localVarFp.updateRunPublicity(code, id, runPublic, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * RunsApi - object-oriented interface - * @export - * @class RunsApi - * @extends {BaseAPI} - */ -export class RunsApi extends BaseAPI { - /** - * This method allows to complete a specific run. - * @summary Complete a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RunsApi - */ - public completeRun(code: string, id: number, options?: AxiosRequestConfig) { - return RunsApiFp(this.configuration).completeRun(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to create a run in selected project. - * @summary Create a new run - * @param {string} code Code of project, where to search entities. - * @param {RunCreate} runCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RunsApi - */ - public createRun(code: string, runCreate: RunCreate, options?: AxiosRequestConfig) { - return RunsApiFp(this.configuration).createRun(code, runCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method completely deletes a run from repository. - * @summary Delete run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RunsApi - */ - public deleteRun(code: string, id: number, options?: AxiosRequestConfig) { - return RunsApiFp(this.configuration).deleteRun(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve a specific run. - * @summary Get a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {string} [include] Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RunsApi - */ - public getRun(code: string, id: number, include?: string, options?: AxiosRequestConfig) { - return RunsApiFp(this.configuration).getRun(code, id, include, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all runs stored in selected project. - * @summary Get all runs - * @param {string} code Code of project, where to search entities. - * @param {string} [search] - * @param {string} [status] A list of status values separated by comma. Possible values: in_progress, passed, failed, aborted, active (deprecated), complete (deprecated), abort (deprecated). - * @param {number} [milestone] - * @param {number} [environment] - * @param {number} [fromStartTime] - * @param {number} [toStartTime] - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {string} [include] Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RunsApi - */ - public getRuns(code: string, search?: string, status?: string, milestone?: number, environment?: number, fromStartTime?: number, toStartTime?: number, limit?: number, offset?: number, include?: string, options?: AxiosRequestConfig) { - return RunsApiFp(this.configuration).getRuns(code, search, status, milestone, environment, fromStartTime, toStartTime, limit, offset, include, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to update a publicity of specific run. - * @summary Update publicity of a specific run - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {RunPublic} runPublic - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RunsApi - */ - public updateRunPublicity(code: string, id: number, runPublic: RunPublic, options?: AxiosRequestConfig) { - return RunsApiFp(this.configuration).updateRunPublicity(code, id, runPublic, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/search-api.ts b/qaseio/src/generated/api/search-api.ts deleted file mode 100644 index c0cf0a36..00000000 --- a/qaseio/src/generated/api/search-api.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { SearchResponse } from '../model'; -/** - * SearchApi - axios parameter creator - * @export - */ -export const SearchApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to retrieve data sets for various entities using expressions with conditions. - * @summary Search entities by Qase Query Language (QQL) - * @param {string} query Expression in Qase Query Language. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - search: async (query: string, limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'query' is not null or undefined - assertParamExists('search', 'query', query) - const localVarPath = `/v1/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * SearchApi - functional programming interface - * @export - */ -export const SearchApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration) - return { - /** - * This method allows to retrieve data sets for various entities using expressions with conditions. - * @summary Search entities by Qase Query Language (QQL) - * @param {string} query Expression in Qase Query Language. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async search(query: string, limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.search(query, limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * SearchApi - factory interface - * @export - */ -export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = SearchApiFp(configuration) - return { - /** - * This method allows to retrieve data sets for various entities using expressions with conditions. - * @summary Search entities by Qase Query Language (QQL) - * @param {string} query Expression in Qase Query Language. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - search(query: string, limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.search(query, limit, offset, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * SearchApi - object-oriented interface - * @export - * @class SearchApi - * @extends {BaseAPI} - */ -export class SearchApi extends BaseAPI { - /** - * This method allows to retrieve data sets for various entities using expressions with conditions. - * @summary Search entities by Qase Query Language (QQL) - * @param {string} query Expression in Qase Query Language. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SearchApi - */ - public search(query: string, limit?: number, offset?: number, options?: AxiosRequestConfig) { - return SearchApiFp(this.configuration).search(query, limit, offset, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/shared-steps-api.ts b/qaseio/src/generated/api/shared-steps-api.ts deleted file mode 100644 index ddfb62da..00000000 --- a/qaseio/src/generated/api/shared-steps-api.ts +++ /dev/null @@ -1,481 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { HashResponse } from '../model'; -// @ts-ignore -import { SharedStepCreate } from '../model'; -// @ts-ignore -import { SharedStepListResponse } from '../model'; -// @ts-ignore -import { SharedStepResponse } from '../model'; -// @ts-ignore -import { SharedStepUpdate } from '../model'; -/** - * SharedStepsApi - axios parameter creator - * @export - */ -export const SharedStepsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to create a shared step in selected project. - * @summary Create a new shared step - * @param {string} code Code of project, where to search entities. - * @param {SharedStepCreate} sharedStepCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSharedStep: async (code: string, sharedStepCreate: SharedStepCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createSharedStep', 'code', code) - // verify required parameter 'sharedStepCreate' is not null or undefined - assertParamExists('createSharedStep', 'sharedStepCreate', sharedStepCreate) - const localVarPath = `/v1/shared_step/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(sharedStepCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method completely deletes a shared step from repository. - * @summary Delete shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteSharedStep: async (code: string, hash: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('deleteSharedStep', 'code', code) - // verify required parameter 'hash' is not null or undefined - assertParamExists('deleteSharedStep', 'hash', hash) - const localVarPath = `/v1/shared_step/{code}/{hash}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"hash"}}`, encodeURIComponent(String(hash))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve a specific shared step. - * @summary Get a specific shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSharedStep: async (code: string, hash: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getSharedStep', 'code', code) - // verify required parameter 'hash' is not null or undefined - assertParamExists('getSharedStep', 'hash', hash) - const localVarPath = `/v1/shared_step/{code}/{hash}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"hash"}}`, encodeURIComponent(String(hash))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all shared steps stored in selected project. - * @summary Get all shared steps - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSharedSteps: async (code: string, search?: string, limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getSharedSteps', 'code', code) - const localVarPath = `/v1/shared_step/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method updates a shared step. - * @summary Update shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {SharedStepUpdate} sharedStepUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateSharedStep: async (code: string, hash: string, sharedStepUpdate: SharedStepUpdate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('updateSharedStep', 'code', code) - // verify required parameter 'hash' is not null or undefined - assertParamExists('updateSharedStep', 'hash', hash) - // verify required parameter 'sharedStepUpdate' is not null or undefined - assertParamExists('updateSharedStep', 'sharedStepUpdate', sharedStepUpdate) - const localVarPath = `/v1/shared_step/{code}/{hash}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"hash"}}`, encodeURIComponent(String(hash))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(sharedStepUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * SharedStepsApi - functional programming interface - * @export - */ -export const SharedStepsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = SharedStepsApiAxiosParamCreator(configuration) - return { - /** - * This method allows to create a shared step in selected project. - * @summary Create a new shared step - * @param {string} code Code of project, where to search entities. - * @param {SharedStepCreate} sharedStepCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createSharedStep(code: string, sharedStepCreate: SharedStepCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedStep(code, sharedStepCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method completely deletes a shared step from repository. - * @summary Delete shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteSharedStep(code: string, hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSharedStep(code, hash, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve a specific shared step. - * @summary Get a specific shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getSharedStep(code: string, hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedStep(code, hash, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all shared steps stored in selected project. - * @summary Get all shared steps - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getSharedSteps(code: string, search?: string, limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedSteps(code, search, limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method updates a shared step. - * @summary Update shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {SharedStepUpdate} sharedStepUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateSharedStep(code: string, hash: string, sharedStepUpdate: SharedStepUpdate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedStep(code, hash, sharedStepUpdate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * SharedStepsApi - factory interface - * @export - */ -export const SharedStepsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = SharedStepsApiFp(configuration) - return { - /** - * This method allows to create a shared step in selected project. - * @summary Create a new shared step - * @param {string} code Code of project, where to search entities. - * @param {SharedStepCreate} sharedStepCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSharedStep(code: string, sharedStepCreate: SharedStepCreate, options?: any): AxiosPromise { - return localVarFp.createSharedStep(code, sharedStepCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method completely deletes a shared step from repository. - * @summary Delete shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteSharedStep(code: string, hash: string, options?: any): AxiosPromise { - return localVarFp.deleteSharedStep(code, hash, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve a specific shared step. - * @summary Get a specific shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSharedStep(code: string, hash: string, options?: any): AxiosPromise { - return localVarFp.getSharedStep(code, hash, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all shared steps stored in selected project. - * @summary Get all shared steps - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSharedSteps(code: string, search?: string, limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getSharedSteps(code, search, limit, offset, options).then((request) => request(axios, basePath)); - }, - /** - * This method updates a shared step. - * @summary Update shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {SharedStepUpdate} sharedStepUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateSharedStep(code: string, hash: string, sharedStepUpdate: SharedStepUpdate, options?: any): AxiosPromise { - return localVarFp.updateSharedStep(code, hash, sharedStepUpdate, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * SharedStepsApi - object-oriented interface - * @export - * @class SharedStepsApi - * @extends {BaseAPI} - */ -export class SharedStepsApi extends BaseAPI { - /** - * This method allows to create a shared step in selected project. - * @summary Create a new shared step - * @param {string} code Code of project, where to search entities. - * @param {SharedStepCreate} sharedStepCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SharedStepsApi - */ - public createSharedStep(code: string, sharedStepCreate: SharedStepCreate, options?: AxiosRequestConfig) { - return SharedStepsApiFp(this.configuration).createSharedStep(code, sharedStepCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method completely deletes a shared step from repository. - * @summary Delete shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SharedStepsApi - */ - public deleteSharedStep(code: string, hash: string, options?: AxiosRequestConfig) { - return SharedStepsApiFp(this.configuration).deleteSharedStep(code, hash, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve a specific shared step. - * @summary Get a specific shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SharedStepsApi - */ - public getSharedStep(code: string, hash: string, options?: AxiosRequestConfig) { - return SharedStepsApiFp(this.configuration).getSharedStep(code, hash, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all shared steps stored in selected project. - * @summary Get all shared steps - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SharedStepsApi - */ - public getSharedSteps(code: string, search?: string, limit?: number, offset?: number, options?: AxiosRequestConfig) { - return SharedStepsApiFp(this.configuration).getSharedSteps(code, search, limit, offset, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method updates a shared step. - * @summary Update shared step - * @param {string} code Code of project, where to search entities. - * @param {string} hash Hash. - * @param {SharedStepUpdate} sharedStepUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SharedStepsApi - */ - public updateSharedStep(code: string, hash: string, sharedStepUpdate: SharedStepUpdate, options?: AxiosRequestConfig) { - return SharedStepsApiFp(this.configuration).updateSharedStep(code, hash, sharedStepUpdate, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/suites-api.ts b/qaseio/src/generated/api/suites-api.ts deleted file mode 100644 index 20c0d1a1..00000000 --- a/qaseio/src/generated/api/suites-api.ts +++ /dev/null @@ -1,490 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { IdResponse } from '../model'; -// @ts-ignore -import { SuiteCreate } from '../model'; -// @ts-ignore -import { SuiteDelete } from '../model'; -// @ts-ignore -import { SuiteListResponse } from '../model'; -// @ts-ignore -import { SuiteResponse } from '../model'; -// @ts-ignore -import { SuiteUpdate } from '../model'; -/** - * SuitesApi - axios parameter creator - * @export - */ -export const SuitesApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method is used to create a new test suite through API. - * @summary Create a new test suite - * @param {string} code Code of project, where to search entities. - * @param {SuiteCreate} suiteCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSuite: async (code: string, suiteCreate: SuiteCreate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('createSuite', 'code', code) - // verify required parameter 'suiteCreate' is not null or undefined - assertParamExists('createSuite', 'suiteCreate', suiteCreate) - const localVarPath = `/v1/suite/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(suiteCreate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method completely deletes a test suite with test cases from repository. - * @summary Delete test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {SuiteDelete} [suiteDelete] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteSuite: async (code: string, id: number, suiteDelete?: SuiteDelete, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('deleteSuite', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('deleteSuite', 'id', id) - const localVarPath = `/v1/suite/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(suiteDelete, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve a specific test suite. - * @summary Get a specific test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSuite: async (code: string, id: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getSuite', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('getSuite', 'id', id) - const localVarPath = `/v1/suite/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method allows to retrieve all test suites stored in selected project. - * @summary Get all test suites - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSuites: async (code: string, search?: string, limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('getSuites', 'code', code) - const localVarPath = `/v1/suite/{code}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * This method is used to update a test suite through API. - * @summary Update test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {SuiteUpdate} suiteUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateSuite: async (code: string, id: number, suiteUpdate: SuiteUpdate, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'code' is not null or undefined - assertParamExists('updateSuite', 'code', code) - // verify required parameter 'id' is not null or undefined - assertParamExists('updateSuite', 'id', id) - // verify required parameter 'suiteUpdate' is not null or undefined - assertParamExists('updateSuite', 'suiteUpdate', suiteUpdate) - const localVarPath = `/v1/suite/{code}/{id}` - .replace(`{${"code"}}`, encodeURIComponent(String(code))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(suiteUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * SuitesApi - functional programming interface - * @export - */ -export const SuitesApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = SuitesApiAxiosParamCreator(configuration) - return { - /** - * This method is used to create a new test suite through API. - * @summary Create a new test suite - * @param {string} code Code of project, where to search entities. - * @param {SuiteCreate} suiteCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createSuite(code: string, suiteCreate: SuiteCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createSuite(code, suiteCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method completely deletes a test suite with test cases from repository. - * @summary Delete test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {SuiteDelete} [suiteDelete] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteSuite(code: string, id: number, suiteDelete?: SuiteDelete, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSuite(code, id, suiteDelete, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve a specific test suite. - * @summary Get a specific test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getSuite(code: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSuite(code, id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method allows to retrieve all test suites stored in selected project. - * @summary Get all test suites - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getSuites(code: string, search?: string, limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSuites(code, search, limit, offset, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This method is used to update a test suite through API. - * @summary Update test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {SuiteUpdate} suiteUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateSuite(code: string, id: number, suiteUpdate: SuiteUpdate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateSuite(code, id, suiteUpdate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * SuitesApi - factory interface - * @export - */ -export const SuitesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = SuitesApiFp(configuration) - return { - /** - * This method is used to create a new test suite through API. - * @summary Create a new test suite - * @param {string} code Code of project, where to search entities. - * @param {SuiteCreate} suiteCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSuite(code: string, suiteCreate: SuiteCreate, options?: any): AxiosPromise { - return localVarFp.createSuite(code, suiteCreate, options).then((request) => request(axios, basePath)); - }, - /** - * This method completely deletes a test suite with test cases from repository. - * @summary Delete test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {SuiteDelete} [suiteDelete] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteSuite(code: string, id: number, suiteDelete?: SuiteDelete, options?: any): AxiosPromise { - return localVarFp.deleteSuite(code, id, suiteDelete, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve a specific test suite. - * @summary Get a specific test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSuite(code: string, id: number, options?: any): AxiosPromise { - return localVarFp.getSuite(code, id, options).then((request) => request(axios, basePath)); - }, - /** - * This method allows to retrieve all test suites stored in selected project. - * @summary Get all test suites - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSuites(code: string, search?: string, limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getSuites(code, search, limit, offset, options).then((request) => request(axios, basePath)); - }, - /** - * This method is used to update a test suite through API. - * @summary Update test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {SuiteUpdate} suiteUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateSuite(code: string, id: number, suiteUpdate: SuiteUpdate, options?: any): AxiosPromise { - return localVarFp.updateSuite(code, id, suiteUpdate, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * SuitesApi - object-oriented interface - * @export - * @class SuitesApi - * @extends {BaseAPI} - */ -export class SuitesApi extends BaseAPI { - /** - * This method is used to create a new test suite through API. - * @summary Create a new test suite - * @param {string} code Code of project, where to search entities. - * @param {SuiteCreate} suiteCreate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SuitesApi - */ - public createSuite(code: string, suiteCreate: SuiteCreate, options?: AxiosRequestConfig) { - return SuitesApiFp(this.configuration).createSuite(code, suiteCreate, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method completely deletes a test suite with test cases from repository. - * @summary Delete test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {SuiteDelete} [suiteDelete] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SuitesApi - */ - public deleteSuite(code: string, id: number, suiteDelete?: SuiteDelete, options?: AxiosRequestConfig) { - return SuitesApiFp(this.configuration).deleteSuite(code, id, suiteDelete, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve a specific test suite. - * @summary Get a specific test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SuitesApi - */ - public getSuite(code: string, id: number, options?: AxiosRequestConfig) { - return SuitesApiFp(this.configuration).getSuite(code, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method allows to retrieve all test suites stored in selected project. - * @summary Get all test suites - * @param {string} code Code of project, where to search entities. - * @param {string} [search] Provide a string that will be used to search by name. - * @param {number} [limit] A number of entities in result set. - * @param {number} [offset] How many entities should be skipped. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SuitesApi - */ - public getSuites(code: string, search?: string, limit?: number, offset?: number, options?: AxiosRequestConfig) { - return SuitesApiFp(this.configuration).getSuites(code, search, limit, offset, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * This method is used to update a test suite through API. - * @summary Update test suite - * @param {string} code Code of project, where to search entities. - * @param {number} id Identifier. - * @param {SuiteUpdate} suiteUpdate - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SuitesApi - */ - public updateSuite(code: string, id: number, suiteUpdate: SuiteUpdate, options?: AxiosRequestConfig) { - return SuitesApiFp(this.configuration).updateSuite(code, id, suiteUpdate, options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/api/system-fields-api.ts b/qaseio/src/generated/api/system-fields-api.ts deleted file mode 100644 index 08881bb6..00000000 --- a/qaseio/src/generated/api/system-fields-api.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; -// @ts-ignore -import { SystemFieldListResponse } from '../model'; -/** - * SystemFieldsApi - axios parameter creator - * @export - */ -export const SystemFieldsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This method allows to retrieve all system fields. - * @summary Get all System Fields - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSystemFields: async (options: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/v1/system_field`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication TokenAuth required - await setApiKeyToObject(localVarHeaderParameter, "Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * SystemFieldsApi - functional programming interface - * @export - */ -export const SystemFieldsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = SystemFieldsApiAxiosParamCreator(configuration) - return { - /** - * This method allows to retrieve all system fields. - * @summary Get all System Fields - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getSystemFields(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSystemFields(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * SystemFieldsApi - factory interface - * @export - */ -export const SystemFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = SystemFieldsApiFp(configuration) - return { - /** - * This method allows to retrieve all system fields. - * @summary Get all System Fields - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getSystemFields(options?: any): AxiosPromise { - return localVarFp.getSystemFields(options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * SystemFieldsApi - object-oriented interface - * @export - * @class SystemFieldsApi - * @extends {BaseAPI} - */ -export class SystemFieldsApi extends BaseAPI { - /** - * This method allows to retrieve all system fields. - * @summary Get all System Fields - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SystemFieldsApi - */ - public getSystemFields(options?: AxiosRequestConfig) { - return SystemFieldsApiFp(this.configuration).getSystemFields(options).then((request) => request(this.axios, this.basePath)); - } -} diff --git a/qaseio/src/generated/base.ts b/qaseio/src/generated/base.ts deleted file mode 100644 index ad664112..00000000 --- a/qaseio/src/generated/base.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Configuration } from "./configuration"; -// Some imports not used depending on template conditions -// @ts-ignore -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; - -export const BASE_PATH = "https://api.qase.io".replace(/\/+$/, ""); - -/** - * - * @export - */ -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; - -/** - * - * @export - * @interface RequestArgs - */ -export interface RequestArgs { - url: string; - options: AxiosRequestConfig; -} - -/** - * - * @export - * @class BaseAPI - */ -export class BaseAPI { - protected configuration: Configuration | undefined; - - constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { - if (configuration) { - this.configuration = configuration; - this.basePath = configuration.basePath || this.basePath; - } - } -}; - -/** - * - * @export - * @class RequiredError - * @extends {Error} - */ -export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { - super(msg); - } -} diff --git a/qaseio/src/generated/common.ts b/qaseio/src/generated/common.ts deleted file mode 100644 index aaa8b661..00000000 --- a/qaseio/src/generated/common.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Configuration } from "./configuration"; -import { RequiredError, RequestArgs } from "./base"; -import { AxiosInstance, AxiosResponse } from 'axios'; - -/** - * - * @export - */ -export const DUMMY_BASE_URL = 'https://example.com' - -/** - * - * @throws {RequiredError} - * @export - */ -export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { - if (paramValue === null || paramValue === undefined) { - throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); - } -} - -/** - * - * @export - */ -export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? await configuration.apiKey(keyParamName) - : await configuration.apiKey; - object[keyParamName] = localVarApiKeyValue; - } -} - -/** - * - * @export - */ -export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { - if (configuration && (configuration.username || configuration.password)) { - object["auth"] = { username: configuration.username, password: configuration.password }; - } -} - -/** - * - * @export - */ -export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? await configuration.accessToken() - : await configuration.accessToken; - object["Authorization"] = "Bearer " + accessToken; - } -} - -/** - * - * @export - */ -export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { - if (configuration && configuration.accessToken) { - const localVarAccessTokenValue = typeof configuration.accessToken === 'function' - ? await configuration.accessToken(name, scopes) - : await configuration.accessToken; - object["Authorization"] = "Bearer " + localVarAccessTokenValue; - } -} - -/** - * - * @export - */ -export const setSearchParams = function (url: URL, ...objects: any[]) { - const searchParams = new URLSearchParams(url.search); - for (const object of objects) { - for (const key in object) { - if (Array.isArray(object[key])) { - searchParams.delete(key); - for (const item of object[key]) { - searchParams.append(key, item); - } - } else { - searchParams.set(key, object[key]); - } - } - } - url.search = searchParams.toString(); -} - -/** - * - * @export - */ -export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { - const nonString = typeof value !== 'string'; - const needsSerialization = nonString && configuration && configuration.isJsonMime - ? !configuration.isJsonMime(requestOptions.headers['Content-Type']) - : nonString; - return needsSerialization - ? JSON.stringify(value !== undefined ? value : {}) - : (value || ""); -} - -/** - * - * @export - */ -export const toPathString = function (url: URL) { - return url.pathname + url.search + url.hash -} - -/** - * - * @export - */ -export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { - return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url}; - return axios.request(axiosRequestArgs); - }; -} diff --git a/qaseio/src/generated/configuration.ts b/qaseio/src/generated/configuration.ts deleted file mode 100644 index 97654869..00000000 --- a/qaseio/src/generated/configuration.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 ConfigurationParameters { - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - username?: string; - password?: string; - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); - basePath?: string; - baseOptions?: any; - formDataCtor?: new () => any; -} - -export class Configuration { - /** - * parameter for apiKey security - * @param name security name - * @memberof Configuration - */ - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - /** - * parameter for basic security - * - * @type {string} - * @memberof Configuration - */ - username?: string; - /** - * parameter for basic security - * - * @type {string} - * @memberof Configuration - */ - password?: string; - /** - * parameter for oauth2 security - * @param name security name - * @param scopes oauth2 scope - * @memberof Configuration - */ - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePath?: string; - /** - * base options for axios calls - * - * @type {any} - * @memberof Configuration - */ - baseOptions?: any; - /** - * The FormData constructor that will be used to create multipart form data - * requests. You can inject this here so that execution environments that - * do not support the FormData class can still run the generated client. - * - * @type {new () => FormData} - */ - formDataCtor?: new () => any; - - constructor(param: ConfigurationParameters = {}) { - this.apiKey = param.apiKey; - this.username = param.username; - this.password = param.password; - this.accessToken = param.accessToken; - this.basePath = param.basePath; - this.baseOptions = param.baseOptions; - this.formDataCtor = param.formDataCtor; - } - - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - public isJsonMime(mime: string): boolean { - const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); - return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); - } -} diff --git a/qaseio/src/generated/index.ts b/qaseio/src/generated/index.ts deleted file mode 100644 index 6604ddfe..00000000 --- a/qaseio/src/generated/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 * from "./api"; -export * from "./configuration"; -export * from "./model"; diff --git a/qaseio/src/generated/model/attachment-get.ts b/qaseio/src/generated/model/attachment-get.ts deleted file mode 100644 index 61e859cc..00000000 --- a/qaseio/src/generated/model/attachment-get.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 AttachmentGet - */ -export interface AttachmentGet { - /** - * - * @type {string} - * @memberof AttachmentGet - */ - 'hash'?: string; - /** - * - * @type {string} - * @memberof AttachmentGet - */ - 'file'?: string; - /** - * - * @type {string} - * @memberof AttachmentGet - */ - 'mime'?: string; - /** - * - * @type {number} - * @memberof AttachmentGet - */ - 'size'?: number; - /** - * - * @type {string} - * @memberof AttachmentGet - */ - 'extension'?: string; - /** - * - * @type {string} - * @memberof AttachmentGet - */ - 'full_path'?: string; - /** - * - * @type {string} - * @memberof AttachmentGet - */ - 'url'?: string; -} - diff --git a/qaseio/src/generated/model/attachment-hash.ts b/qaseio/src/generated/model/attachment-hash.ts deleted file mode 100644 index 22931e40..00000000 --- a/qaseio/src/generated/model/attachment-hash.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 AttachmentHash - */ -export interface AttachmentHash { - /** - * - * @type {number} - * @memberof AttachmentHash - */ - 'size'?: number; - /** - * - * @type {string} - * @memberof AttachmentHash - */ - 'mime'?: string; - /** - * - * @type {string} - * @memberof AttachmentHash - */ - 'filename'?: string; - /** - * - * @type {string} - * @memberof AttachmentHash - */ - 'url'?: string; - /** - * - * @type {string} - * @memberof AttachmentHash - */ - 'hash'?: string; -} - diff --git a/qaseio/src/generated/model/attachment-list-response-all-of-result.ts b/qaseio/src/generated/model/attachment-list-response-all-of-result.ts deleted file mode 100644 index ce62f7d5..00000000 --- a/qaseio/src/generated/model/attachment-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { AttachmentGet } from './attachment-get'; - -/** - * - * @export - * @interface AttachmentListResponseAllOfResult - */ -export interface AttachmentListResponseAllOfResult { - /** - * - * @type {number} - * @memberof AttachmentListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof AttachmentListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof AttachmentListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof AttachmentListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/attachment-list-response-all-of.ts b/qaseio/src/generated/model/attachment-list-response-all-of.ts deleted file mode 100644 index 3175d6c1..00000000 --- a/qaseio/src/generated/model/attachment-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { AttachmentListResponseAllOfResult } from './attachment-list-response-all-of-result'; - -/** - * - * @export - * @interface AttachmentListResponseAllOf - */ -export interface AttachmentListResponseAllOf { - /** - * - * @type {AttachmentListResponseAllOfResult} - * @memberof AttachmentListResponseAllOf - */ - 'result'?: AttachmentListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/attachment-list-response.ts b/qaseio/src/generated/model/attachment-list-response.ts deleted file mode 100644 index 7a1f15fb..00000000 --- a/qaseio/src/generated/model/attachment-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { AttachmentListResponseAllOf } from './attachment-list-response-all-of'; -import { AttachmentListResponseAllOfResult } from './attachment-list-response-all-of-result'; -import { BaseResponse } from './base-response'; - -/** - * @type AttachmentListResponse - * @export - */ -export type AttachmentListResponse = AttachmentListResponseAllOf & BaseResponse; - - diff --git a/qaseio/src/generated/model/attachment-response-all-of.ts b/qaseio/src/generated/model/attachment-response-all-of.ts deleted file mode 100644 index 4696d7ca..00000000 --- a/qaseio/src/generated/model/attachment-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { AttachmentGet } from './attachment-get'; - -/** - * - * @export - * @interface AttachmentResponseAllOf - */ -export interface AttachmentResponseAllOf { - /** - * - * @type {AttachmentGet} - * @memberof AttachmentResponseAllOf - */ - 'result'?: AttachmentGet; -} - diff --git a/qaseio/src/generated/model/attachment-response.ts b/qaseio/src/generated/model/attachment-response.ts deleted file mode 100644 index 782a0b69..00000000 --- a/qaseio/src/generated/model/attachment-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { AttachmentGet } from './attachment-get'; -import { AttachmentResponseAllOf } from './attachment-response-all-of'; -import { BaseResponse } from './base-response'; - -/** - * @type AttachmentResponse - * @export - */ -export type AttachmentResponse = AttachmentResponseAllOf & BaseResponse; - - diff --git a/qaseio/src/generated/model/attachment-uploads-response-all-of.ts b/qaseio/src/generated/model/attachment-uploads-response-all-of.ts deleted file mode 100644 index ef323415..00000000 --- a/qaseio/src/generated/model/attachment-uploads-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachmentupload } from './attachmentupload'; - -/** - * - * @export - * @interface AttachmentUploadsResponseAllOf - */ -export interface AttachmentUploadsResponseAllOf { - /** - * - * @type {Array} - * @memberof AttachmentUploadsResponseAllOf - */ - 'result'?: Array; -} - diff --git a/qaseio/src/generated/model/attachment-uploads-response.ts b/qaseio/src/generated/model/attachment-uploads-response.ts deleted file mode 100644 index 5e002d71..00000000 --- a/qaseio/src/generated/model/attachment-uploads-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { AttachmentUploadsResponseAllOf } from './attachment-uploads-response-all-of'; -import { Attachmentupload } from './attachmentupload'; -import { BaseResponse } from './base-response'; - -/** - * @type AttachmentUploadsResponse - * @export - */ -export type AttachmentUploadsResponse = AttachmentUploadsResponseAllOf & BaseResponse; - - diff --git a/qaseio/src/generated/model/attachment.ts b/qaseio/src/generated/model/attachment.ts deleted file mode 100644 index 634549e6..00000000 --- a/qaseio/src/generated/model/attachment.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 Attachment - */ -export interface Attachment { - /** - * - * @type {number} - * @memberof Attachment - */ - 'size'?: number; - /** - * - * @type {string} - * @memberof Attachment - */ - 'mime'?: string; - /** - * - * @type {string} - * @memberof Attachment - */ - 'filename'?: string; - /** - * - * @type {string} - * @memberof Attachment - */ - 'url'?: string; -} - diff --git a/qaseio/src/generated/model/attachmentupload.ts b/qaseio/src/generated/model/attachmentupload.ts deleted file mode 100644 index 09a3459a..00000000 --- a/qaseio/src/generated/model/attachmentupload.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 Attachmentupload - */ -export interface Attachmentupload { - /** - * - * @type {string} - * @memberof Attachmentupload - */ - 'hash'?: string; - /** - * - * @type {string} - * @memberof Attachmentupload - */ - 'filename'?: string; - /** - * - * @type {string} - * @memberof Attachmentupload - */ - 'mime'?: string; - /** - * - * @type {string} - * @memberof Attachmentupload - */ - 'extension'?: string; - /** - * - * @type {string} - * @memberof Attachmentupload - */ - 'url'?: string; - /** - * - * @type {string} - * @memberof Attachmentupload - */ - 'team'?: string; -} - diff --git a/qaseio/src/generated/model/author-list-response-all-of-result.ts b/qaseio/src/generated/model/author-list-response-all-of-result.ts deleted file mode 100644 index 2030fdbf..00000000 --- a/qaseio/src/generated/model/author-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Author } from './author'; - -/** - * - * @export - * @interface AuthorListResponseAllOfResult - */ -export interface AuthorListResponseAllOfResult { - /** - * - * @type {number} - * @memberof AuthorListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof AuthorListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof AuthorListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof AuthorListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/author-list-response-all-of.ts b/qaseio/src/generated/model/author-list-response-all-of.ts deleted file mode 100644 index 44d80ef4..00000000 --- a/qaseio/src/generated/model/author-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { AuthorListResponseAllOfResult } from './author-list-response-all-of-result'; - -/** - * - * @export - * @interface AuthorListResponseAllOf - */ -export interface AuthorListResponseAllOf { - /** - * - * @type {AuthorListResponseAllOfResult} - * @memberof AuthorListResponseAllOf - */ - 'result'?: AuthorListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/author-list-response.ts b/qaseio/src/generated/model/author-list-response.ts deleted file mode 100644 index 52ec580a..00000000 --- a/qaseio/src/generated/model/author-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { AuthorListResponseAllOf } from './author-list-response-all-of'; -import { AuthorListResponseAllOfResult } from './author-list-response-all-of-result'; -import { BaseResponse } from './base-response'; - -/** - * @type AuthorListResponse - * @export - */ -export type AuthorListResponse = AuthorListResponseAllOf & BaseResponse; - - diff --git a/qaseio/src/generated/model/author-response-all-of.ts b/qaseio/src/generated/model/author-response-all-of.ts deleted file mode 100644 index 8a6cf033..00000000 --- a/qaseio/src/generated/model/author-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Author } from './author'; - -/** - * - * @export - * @interface AuthorResponseAllOf - */ -export interface AuthorResponseAllOf { - /** - * - * @type {Author} - * @memberof AuthorResponseAllOf - */ - 'result'?: Author; -} - diff --git a/qaseio/src/generated/model/author-response.ts b/qaseio/src/generated/model/author-response.ts deleted file mode 100644 index 6aaab43c..00000000 --- a/qaseio/src/generated/model/author-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Author } from './author'; -import { AuthorResponseAllOf } from './author-response-all-of'; -import { BaseResponse } from './base-response'; - -/** - * @type AuthorResponse - * @export - */ -export type AuthorResponse = AuthorResponseAllOf & BaseResponse; - - diff --git a/qaseio/src/generated/model/author.ts b/qaseio/src/generated/model/author.ts deleted file mode 100644 index d1846998..00000000 --- a/qaseio/src/generated/model/author.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 Author - */ -export interface Author { - /** - * - * @type {number} - * @memberof Author - */ - 'id'?: number; - /** - * - * @type {number} - * @memberof Author - */ - 'author_id'?: number; - /** - * - * @type {string} - * @memberof Author - */ - 'entity_type'?: string; - /** - * - * @type {number} - * @memberof Author - */ - 'entity_id'?: number; - /** - * - * @type {string} - * @memberof Author - */ - 'email'?: string; - /** - * - * @type {string} - * @memberof Author - */ - 'name'?: string; - /** - * - * @type {boolean} - * @memberof Author - */ - 'is_active'?: boolean; -} - diff --git a/qaseio/src/generated/model/base-response.ts b/qaseio/src/generated/model/base-response.ts deleted file mode 100644 index 8d377564..00000000 --- a/qaseio/src/generated/model/base-response.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 BaseResponse - */ -export interface BaseResponse { - /** - * - * @type {boolean} - * @memberof BaseResponse - */ - 'status'?: boolean; -} - diff --git a/qaseio/src/generated/model/bulk200-response-all-of-result.ts b/qaseio/src/generated/model/bulk200-response-all-of-result.ts deleted file mode 100644 index 7d648d58..00000000 --- a/qaseio/src/generated/model/bulk200-response-all-of-result.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 Bulk200ResponseAllOfResult - */ -export interface Bulk200ResponseAllOfResult { - /** - * - * @type {Array} - * @memberof Bulk200ResponseAllOfResult - */ - 'ids'?: Array; -} - diff --git a/qaseio/src/generated/model/bulk200-response-all-of.ts b/qaseio/src/generated/model/bulk200-response-all-of.ts deleted file mode 100644 index e22de60c..00000000 --- a/qaseio/src/generated/model/bulk200-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Bulk200ResponseAllOfResult } from './bulk200-response-all-of-result'; - -/** - * - * @export - * @interface Bulk200ResponseAllOf - */ -export interface Bulk200ResponseAllOf { - /** - * - * @type {Bulk200ResponseAllOfResult} - * @memberof Bulk200ResponseAllOf - */ - 'result'?: Bulk200ResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/bulk200-response.ts b/qaseio/src/generated/model/bulk200-response.ts deleted file mode 100644 index cfb31969..00000000 --- a/qaseio/src/generated/model/bulk200-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { Bulk200ResponseAllOf } from './bulk200-response-all-of'; -import { Bulk200ResponseAllOfResult } from './bulk200-response-all-of-result'; - -/** - * @type Bulk200Response - * @export - */ -export type Bulk200Response = BaseResponse & Bulk200ResponseAllOf; - - diff --git a/qaseio/src/generated/model/configuration-create.ts b/qaseio/src/generated/model/configuration-create.ts deleted file mode 100644 index a67ab79c..00000000 --- a/qaseio/src/generated/model/configuration-create.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 ConfigurationCreate - */ -export interface ConfigurationCreate { - /** - * - * @type {string} - * @memberof ConfigurationCreate - */ - 'title': string; - /** - * - * @type {number} - * @memberof ConfigurationCreate - */ - 'group_id': number; -} - diff --git a/qaseio/src/generated/model/configuration-group-create.ts b/qaseio/src/generated/model/configuration-group-create.ts deleted file mode 100644 index 902419d2..00000000 --- a/qaseio/src/generated/model/configuration-group-create.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 ConfigurationGroupCreate - */ -export interface ConfigurationGroupCreate { - /** - * - * @type {string} - * @memberof ConfigurationGroupCreate - */ - 'title': string; -} - diff --git a/qaseio/src/generated/model/configuration-group.ts b/qaseio/src/generated/model/configuration-group.ts deleted file mode 100644 index feeb30e0..00000000 --- a/qaseio/src/generated/model/configuration-group.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ConfigurationItem } from './configuration'; - -/** - * - * @export - * @interface ConfigurationGroup - */ -export interface ConfigurationGroup { - /** - * - * @type {number} - * @memberof ConfigurationGroup - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof ConfigurationGroup - */ - 'title'?: string; - /** - * - * @type {Array} - * @memberof ConfigurationGroup - */ - 'configurations'?: Array; -} - diff --git a/qaseio/src/generated/model/configuration-list-response-all-of-result.ts b/qaseio/src/generated/model/configuration-list-response-all-of-result.ts deleted file mode 100644 index 55c5addc..00000000 --- a/qaseio/src/generated/model/configuration-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ConfigurationGroup } from './configuration-group'; - -/** - * - * @export - * @interface ConfigurationListResponseAllOfResult - */ -export interface ConfigurationListResponseAllOfResult { - /** - * - * @type {number} - * @memberof ConfigurationListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof ConfigurationListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof ConfigurationListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof ConfigurationListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/configuration-list-response-all-of.ts b/qaseio/src/generated/model/configuration-list-response-all-of.ts deleted file mode 100644 index 04e9f218..00000000 --- a/qaseio/src/generated/model/configuration-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ConfigurationListResponseAllOfResult } from './configuration-list-response-all-of-result'; - -/** - * - * @export - * @interface ConfigurationListResponseAllOf - */ -export interface ConfigurationListResponseAllOf { - /** - * - * @type {ConfigurationListResponseAllOfResult} - * @memberof ConfigurationListResponseAllOf - */ - 'result'?: ConfigurationListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/configuration-list-response.ts b/qaseio/src/generated/model/configuration-list-response.ts deleted file mode 100644 index e3930850..00000000 --- a/qaseio/src/generated/model/configuration-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { ConfigurationListResponseAllOf } from './configuration-list-response-all-of'; -import { ConfigurationListResponseAllOfResult } from './configuration-list-response-all-of-result'; - -/** - * @type ConfigurationListResponse - * @export - */ -export type ConfigurationListResponse = BaseResponse & ConfigurationListResponseAllOf; - - diff --git a/qaseio/src/generated/model/configuration.ts b/qaseio/src/generated/model/configuration.ts deleted file mode 100644 index 3f3bcf36..00000000 --- a/qaseio/src/generated/model/configuration.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 ConfigurationItem - */ -export interface ConfigurationItem { - /** - * - * @type {number} - * @memberof ConfigurationItem - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof ConfigurationItem - */ - 'title'?: string; -} - diff --git a/qaseio/src/generated/model/create-results-request-v2.ts b/qaseio/src/generated/model/create-results-request-v2.ts deleted file mode 100644 index f0176c50..00000000 --- a/qaseio/src/generated/model/create-results-request-v2.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* 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. - */ - - -import { ResultCreateV2 } from './result-create-v2'; - -/** - * - * @export - * @interface CreateResultsRequestV2 - */ -export interface CreateResultsRequestV2 { - /** - * - * @type {Array} - * @memberof CreateResultsRequestV2 - */ - 'results'?: Array; -} - diff --git a/qaseio/src/generated/model/custom-field-create-value-inner.ts b/qaseio/src/generated/model/custom-field-create-value-inner.ts deleted file mode 100644 index 6dc3fd94..00000000 --- a/qaseio/src/generated/model/custom-field-create-value-inner.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 CustomFieldCreateValueInner - */ -export interface CustomFieldCreateValueInner { - /** - * - * @type {number} - * @memberof CustomFieldCreateValueInner - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof CustomFieldCreateValueInner - */ - 'title'?: string; -} - diff --git a/qaseio/src/generated/model/custom-field-create.ts b/qaseio/src/generated/model/custom-field-create.ts deleted file mode 100644 index 6c83974f..00000000 --- a/qaseio/src/generated/model/custom-field-create.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { CustomFieldCreateValueInner } from './custom-field-create-value-inner'; - -/** - * - * @export - * @interface CustomFieldCreate - */ -export interface CustomFieldCreate { - /** - * - * @type {string} - * @memberof CustomFieldCreate - */ - 'title': string; - /** - * Possible values: 0 - case; 1 - run; 2 - defect; - * @type {number} - * @memberof CustomFieldCreate - */ - 'entity': number; - /** - * Possible values: 0 - number; 1 - string; 2 - text; 3 - selectbox; 4 - checkbox; 5 - radio; 6 - multiselect; 7 - url; 8 - user; 9 - datetime; - * @type {number} - * @memberof CustomFieldCreate - */ - 'type': number; - /** - * Required if type one of: 3 - selectbox; 5 - radio; 6 - multiselect; - * @type {Array} - * @memberof CustomFieldCreate - */ - 'value'?: Array | null; - /** - * - * @type {string} - * @memberof CustomFieldCreate - */ - 'placeholder'?: string | null; - /** - * - * @type {string} - * @memberof CustomFieldCreate - */ - 'default_value'?: string | null; - /** - * - * @type {boolean} - * @memberof CustomFieldCreate - */ - 'is_filterable'?: boolean; - /** - * - * @type {boolean} - * @memberof CustomFieldCreate - */ - 'is_visible'?: boolean; - /** - * - * @type {boolean} - * @memberof CustomFieldCreate - */ - 'is_required'?: boolean; - /** - * - * @type {boolean} - * @memberof CustomFieldCreate - */ - 'is_enabled_for_all_projects'?: boolean; - /** - * - * @type {Array} - * @memberof CustomFieldCreate - */ - 'projects_codes'?: Array; -} - diff --git a/qaseio/src/generated/model/custom-field-list-response.ts b/qaseio/src/generated/model/custom-field-list-response.ts deleted file mode 100644 index cc190a20..00000000 --- a/qaseio/src/generated/model/custom-field-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { CustomFieldsResponseAllOf } from './custom-fields-response-all-of'; -import { CustomFieldsResponseAllOfResult } from './custom-fields-response-all-of-result'; - -/** - * @type CustomFieldListResponse - * @export - */ -export type CustomFieldListResponse = BaseResponse & CustomFieldsResponseAllOf; - - diff --git a/qaseio/src/generated/model/custom-field-response-all-of.ts b/qaseio/src/generated/model/custom-field-response-all-of.ts deleted file mode 100644 index 5730c5ee..00000000 --- a/qaseio/src/generated/model/custom-field-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { CustomField } from './custom-field'; - -/** - * - * @export - * @interface CustomFieldResponseAllOf - */ -export interface CustomFieldResponseAllOf { - /** - * - * @type {CustomField} - * @memberof CustomFieldResponseAllOf - */ - 'result'?: CustomField; -} - diff --git a/qaseio/src/generated/model/custom-field-response.ts b/qaseio/src/generated/model/custom-field-response.ts deleted file mode 100644 index fc5e3704..00000000 --- a/qaseio/src/generated/model/custom-field-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { CustomField } from './custom-field'; -import { CustomFieldResponseAllOf } from './custom-field-response-all-of'; - -/** - * @type CustomFieldResponse - * @export - */ -export type CustomFieldResponse = BaseResponse & CustomFieldResponseAllOf; - - diff --git a/qaseio/src/generated/model/custom-field-update.ts b/qaseio/src/generated/model/custom-field-update.ts deleted file mode 100644 index b521bb89..00000000 --- a/qaseio/src/generated/model/custom-field-update.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { CustomFieldCreateValueInner } from './custom-field-create-value-inner'; - -/** - * - * @export - * @interface CustomFieldUpdate - */ -export interface CustomFieldUpdate { - /** - * - * @type {string} - * @memberof CustomFieldUpdate - */ - 'title': string; - /** - * - * @type {Array} - * @memberof CustomFieldUpdate - */ - 'value'?: Array | null; - /** - * Dictionary of old values and their replacemants - * @type {{ [key: string]: string; }} - * @memberof CustomFieldUpdate - */ - 'replace_values'?: { [key: string]: string; } | null; - /** - * - * @type {string} - * @memberof CustomFieldUpdate - */ - 'placeholder'?: string | null; - /** - * - * @type {string} - * @memberof CustomFieldUpdate - */ - 'default_value'?: string | null; - /** - * - * @type {boolean} - * @memberof CustomFieldUpdate - */ - 'is_filterable'?: boolean; - /** - * - * @type {boolean} - * @memberof CustomFieldUpdate - */ - 'is_visible'?: boolean; - /** - * - * @type {boolean} - * @memberof CustomFieldUpdate - */ - 'is_required'?: boolean; - /** - * - * @type {boolean} - * @memberof CustomFieldUpdate - */ - 'is_enabled_for_all_projects'?: boolean; - /** - * - * @type {Array} - * @memberof CustomFieldUpdate - */ - 'projects_codes'?: Array; -} - diff --git a/qaseio/src/generated/model/custom-field-value.ts b/qaseio/src/generated/model/custom-field-value.ts deleted file mode 100644 index c3c7191f..00000000 --- a/qaseio/src/generated/model/custom-field-value.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 CustomFieldValue - */ -export interface CustomFieldValue { - /** - * - * @type {number} - * @memberof CustomFieldValue - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof CustomFieldValue - */ - 'value'?: string; -} - diff --git a/qaseio/src/generated/model/custom-field.ts b/qaseio/src/generated/model/custom-field.ts deleted file mode 100644 index fc2e237b..00000000 --- a/qaseio/src/generated/model/custom-field.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 CustomField - */ -export interface CustomField { - /** - * - * @type {number} - * @memberof CustomField - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof CustomField - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof CustomField - */ - 'entity'?: string; - /** - * - * @type {string} - * @memberof CustomField - */ - 'type'?: string; - /** - * - * @type {string} - * @memberof CustomField - */ - 'placeholder'?: string | null; - /** - * - * @type {string} - * @memberof CustomField - */ - 'default_value'?: string | null; - /** - * - * @type {string} - * @memberof CustomField - */ - 'value'?: string | null; - /** - * - * @type {boolean} - * @memberof CustomField - */ - 'is_required'?: boolean; - /** - * - * @type {boolean} - * @memberof CustomField - */ - 'is_visible'?: boolean; - /** - * - * @type {boolean} - * @memberof CustomField - */ - 'is_filterable'?: boolean; - /** - * - * @type {boolean} - * @memberof CustomField - */ - 'is_enabled_for_all_projects'?: boolean; - /** - * Deprecated, use the `created_at` property instead. - * @type {string} - * @memberof CustomField - * @deprecated - */ - 'created'?: string; - /** - * Deprecated, use the `updated_at` property instead. - * @type {string} - * @memberof CustomField - * @deprecated - */ - 'updated'?: string | null; - /** - * - * @type {string} - * @memberof CustomField - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof CustomField - */ - 'updated_at'?: string; - /** - * - * @type {Array} - * @memberof CustomField - */ - 'projects_codes'?: Array; -} - diff --git a/qaseio/src/generated/model/custom-fields-response-all-of-result.ts b/qaseio/src/generated/model/custom-fields-response-all-of-result.ts deleted file mode 100644 index 55aa6a31..00000000 --- a/qaseio/src/generated/model/custom-fields-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { CustomField } from './custom-field'; - -/** - * - * @export - * @interface CustomFieldsResponseAllOfResult - */ -export interface CustomFieldsResponseAllOfResult { - /** - * - * @type {number} - * @memberof CustomFieldsResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof CustomFieldsResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof CustomFieldsResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof CustomFieldsResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/custom-fields-response-all-of.ts b/qaseio/src/generated/model/custom-fields-response-all-of.ts deleted file mode 100644 index 7e17f16a..00000000 --- a/qaseio/src/generated/model/custom-fields-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { CustomFieldsResponseAllOfResult } from './custom-fields-response-all-of-result'; - -/** - * - * @export - * @interface CustomFieldsResponseAllOf - */ -export interface CustomFieldsResponseAllOf { - /** - * - * @type {CustomFieldsResponseAllOfResult} - * @memberof CustomFieldsResponseAllOf - */ - 'result'?: CustomFieldsResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/custom-fields-response.ts b/qaseio/src/generated/model/custom-fields-response.ts deleted file mode 100644 index a8f94daf..00000000 --- a/qaseio/src/generated/model/custom-fields-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { CustomFieldsResponseAllOf } from './custom-fields-response-all-of'; -import { CustomFieldsResponseAllOfResult } from './custom-fields-response-all-of-result'; - -/** - * @type CustomFieldsResponse - * @export - */ -export type CustomFieldsResponse = BaseResponse & CustomFieldsResponseAllOf; - - diff --git a/qaseio/src/generated/model/defect-create.ts b/qaseio/src/generated/model/defect-create.ts deleted file mode 100644 index 8e0743dd..00000000 --- a/qaseio/src/generated/model/defect-create.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 DefectCreate - */ -export interface DefectCreate { - /** - * - * @type {string} - * @memberof DefectCreate - */ - 'title': string; - /** - * - * @type {string} - * @memberof DefectCreate - */ - 'actual_result': string; - /** - * - * @type {number} - * @memberof DefectCreate - */ - 'severity': number; - /** - * - * @type {number} - * @memberof DefectCreate - */ - 'milestone_id'?: number | null; - /** - * - * @type {Array} - * @memberof DefectCreate - */ - 'attachments'?: Array; - /** - * A map of custom fields values (id => value) - * @type {{ [key: string]: string; }} - * @memberof DefectCreate - */ - 'custom_field'?: { [key: string]: string; }; - /** - * - * @type {Array} - * @memberof DefectCreate - */ - 'tags'?: Array; -} - diff --git a/qaseio/src/generated/model/defect-list-response-all-of-result.ts b/qaseio/src/generated/model/defect-list-response-all-of-result.ts deleted file mode 100644 index 9d44071c..00000000 --- a/qaseio/src/generated/model/defect-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Defect } from './defect'; - -/** - * - * @export - * @interface DefectListResponseAllOfResult - */ -export interface DefectListResponseAllOfResult { - /** - * - * @type {number} - * @memberof DefectListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof DefectListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof DefectListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof DefectListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/defect-list-response-all-of.ts b/qaseio/src/generated/model/defect-list-response-all-of.ts deleted file mode 100644 index 4f9f5747..00000000 --- a/qaseio/src/generated/model/defect-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { DefectListResponseAllOfResult } from './defect-list-response-all-of-result'; - -/** - * - * @export - * @interface DefectListResponseAllOf - */ -export interface DefectListResponseAllOf { - /** - * - * @type {DefectListResponseAllOfResult} - * @memberof DefectListResponseAllOf - */ - 'result'?: DefectListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/defect-list-response.ts b/qaseio/src/generated/model/defect-list-response.ts deleted file mode 100644 index 1b802884..00000000 --- a/qaseio/src/generated/model/defect-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { DefectListResponseAllOf } from './defect-list-response-all-of'; -import { DefectListResponseAllOfResult } from './defect-list-response-all-of-result'; - -/** - * @type DefectListResponse - * @export - */ -export type DefectListResponse = BaseResponse & DefectListResponseAllOf; - - diff --git a/qaseio/src/generated/model/defect-query.ts b/qaseio/src/generated/model/defect-query.ts deleted file mode 100644 index 01779a7b..00000000 --- a/qaseio/src/generated/model/defect-query.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachment } from './attachment'; -import { CustomFieldValue } from './custom-field-value'; -import { TagValue } from './tag-value'; - -/** - * - * @export - * @interface DefectQuery - */ -export interface DefectQuery { - /** - * - * @type {number} - * @memberof DefectQuery - */ - 'defect_id': number; - /** - * - * @type {number} - * @memberof DefectQuery - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof DefectQuery - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof DefectQuery - */ - 'actual_result'?: string; - /** - * - * @type {string} - * @memberof DefectQuery - */ - 'severity'?: string; - /** - * - * @type {string} - * @memberof DefectQuery - */ - 'status'?: string; - /** - * - * @type {number} - * @memberof DefectQuery - */ - 'milestone_id'?: number | null; - /** - * - * @type {Array} - * @memberof DefectQuery - */ - 'custom_fields'?: Array; - /** - * - * @type {Array} - * @memberof DefectQuery - */ - 'attachments'?: Array; - /** - * - * @type {string} - * @memberof DefectQuery - */ - 'resolved'?: string | null; - /** - * Deprecated, use `author_id` instead. - * @type {number} - * @memberof DefectQuery - * @deprecated - */ - 'member_id'?: number; - /** - * - * @type {number} - * @memberof DefectQuery - */ - 'author_id'?: number; - /** - * - * @type {string} - * @memberof DefectQuery - */ - 'external_data'?: string; - /** - * - * @type {Array} - * @memberof DefectQuery - */ - 'tags'?: Array; - /** - * - * @type {string} - * @memberof DefectQuery - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof DefectQuery - */ - 'updated_at'?: string; -} - diff --git a/qaseio/src/generated/model/defect-response-all-of.ts b/qaseio/src/generated/model/defect-response-all-of.ts deleted file mode 100644 index 3cef8646..00000000 --- a/qaseio/src/generated/model/defect-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Defect } from './defect'; - -/** - * - * @export - * @interface DefectResponseAllOf - */ -export interface DefectResponseAllOf { - /** - * - * @type {Defect} - * @memberof DefectResponseAllOf - */ - 'result'?: Defect; -} - diff --git a/qaseio/src/generated/model/defect-response.ts b/qaseio/src/generated/model/defect-response.ts deleted file mode 100644 index f7f82641..00000000 --- a/qaseio/src/generated/model/defect-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { Defect } from './defect'; -import { DefectResponseAllOf } from './defect-response-all-of'; - -/** - * @type DefectResponse - * @export - */ -export type DefectResponse = BaseResponse & DefectResponseAllOf; - - diff --git a/qaseio/src/generated/model/defect-status.ts b/qaseio/src/generated/model/defect-status.ts deleted file mode 100644 index 5902a5af..00000000 --- a/qaseio/src/generated/model/defect-status.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 DefectStatus - */ -export interface DefectStatus { - /** - * - * @type {string} - * @memberof DefectStatus - */ - 'status': DefectStatusStatusEnum; -} - -/** - * @export - * @enum {string} - */ -export enum DefectStatusStatusEnum { - IN_PROGRESS = 'in_progress', - RESOLVED = 'resolved', - INVALID = 'invalid' -} - - diff --git a/qaseio/src/generated/model/defect-update.ts b/qaseio/src/generated/model/defect-update.ts deleted file mode 100644 index caabea72..00000000 --- a/qaseio/src/generated/model/defect-update.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 DefectUpdate - */ -export interface DefectUpdate { - /** - * - * @type {string} - * @memberof DefectUpdate - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof DefectUpdate - */ - 'actual_result'?: string; - /** - * - * @type {number} - * @memberof DefectUpdate - */ - 'severity'?: number; - /** - * - * @type {number} - * @memberof DefectUpdate - */ - 'milestone_id'?: number | null; - /** - * - * @type {Array} - * @memberof DefectUpdate - */ - 'attachments'?: Array; - /** - * A map of custom fields values (id => value) - * @type {{ [key: string]: string; }} - * @memberof DefectUpdate - */ - 'custom_field'?: { [key: string]: string; }; - /** - * - * @type {Array} - * @memberof DefectUpdate - */ - 'tags'?: Array; -} - diff --git a/qaseio/src/generated/model/defect.ts b/qaseio/src/generated/model/defect.ts deleted file mode 100644 index fc7151fe..00000000 --- a/qaseio/src/generated/model/defect.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachment } from './attachment'; -import { CustomFieldValue } from './custom-field-value'; -import { TagValue } from './tag-value'; - -/** - * - * @export - * @interface Defect - */ -export interface Defect { - /** - * - * @type {number} - * @memberof Defect - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof Defect - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof Defect - */ - 'actual_result'?: string; - /** - * - * @type {string} - * @memberof Defect - */ - 'severity'?: string; - /** - * - * @type {string} - * @memberof Defect - */ - 'status'?: string; - /** - * - * @type {number} - * @memberof Defect - */ - 'milestone_id'?: number | null; - /** - * - * @type {Array} - * @memberof Defect - */ - 'custom_fields'?: Array; - /** - * - * @type {Array} - * @memberof Defect - */ - 'attachments'?: Array; - /** - * - * @type {string} - * @memberof Defect - */ - 'resolved_at'?: string | null; - /** - * Deprecated, use `author_id` instead. - * @type {number} - * @memberof Defect - * @deprecated - */ - 'member_id'?: number; - /** - * - * @type {number} - * @memberof Defect - */ - 'author_id'?: number; - /** - * - * @type {string} - * @memberof Defect - */ - 'external_data'?: string; - /** - * - * @type {Array} - * @memberof Defect - */ - 'runs'?: Array; - /** - * - * @type {Array} - * @memberof Defect - */ - 'results'?: Array; - /** - * - * @type {Array} - * @memberof Defect - */ - 'tags'?: Array; - /** - * - * @type {string} - * @memberof Defect - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof Defect - */ - 'updated_at'?: string; - /** - * Deprecated, use the `created_at` property instead. - * @type {string} - * @memberof Defect - * @deprecated - */ - 'created'?: string; - /** - * Deprecated, use the `updated_at` property instead. - * @type {string} - * @memberof Defect - * @deprecated - */ - 'updated'?: string; -} - diff --git a/qaseio/src/generated/model/environment-create.ts b/qaseio/src/generated/model/environment-create.ts deleted file mode 100644 index a5612650..00000000 --- a/qaseio/src/generated/model/environment-create.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 EnvironmentCreate - */ -export interface EnvironmentCreate { - /** - * - * @type {string} - * @memberof EnvironmentCreate - */ - 'title': string; - /** - * - * @type {string} - * @memberof EnvironmentCreate - */ - 'slug': string; - /** - * - * @type {string} - * @memberof EnvironmentCreate - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof EnvironmentCreate - */ - 'host'?: string; -} - diff --git a/qaseio/src/generated/model/environment-list-response-all-of-result.ts b/qaseio/src/generated/model/environment-list-response-all-of-result.ts deleted file mode 100644 index 0a679177..00000000 --- a/qaseio/src/generated/model/environment-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Environment } from './environment'; - -/** - * - * @export - * @interface EnvironmentListResponseAllOfResult - */ -export interface EnvironmentListResponseAllOfResult { - /** - * - * @type {number} - * @memberof EnvironmentListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof EnvironmentListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof EnvironmentListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof EnvironmentListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/environment-list-response-all-of.ts b/qaseio/src/generated/model/environment-list-response-all-of.ts deleted file mode 100644 index da6a389d..00000000 --- a/qaseio/src/generated/model/environment-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { EnvironmentListResponseAllOfResult } from './environment-list-response-all-of-result'; - -/** - * - * @export - * @interface EnvironmentListResponseAllOf - */ -export interface EnvironmentListResponseAllOf { - /** - * - * @type {EnvironmentListResponseAllOfResult} - * @memberof EnvironmentListResponseAllOf - */ - 'result'?: EnvironmentListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/environment-list-response.ts b/qaseio/src/generated/model/environment-list-response.ts deleted file mode 100644 index 6344ab5d..00000000 --- a/qaseio/src/generated/model/environment-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { EnvironmentListResponseAllOf } from './environment-list-response-all-of'; -import { EnvironmentListResponseAllOfResult } from './environment-list-response-all-of-result'; - -/** - * @type EnvironmentListResponse - * @export - */ -export type EnvironmentListResponse = BaseResponse & EnvironmentListResponseAllOf; - - diff --git a/qaseio/src/generated/model/environment-response-all-of.ts b/qaseio/src/generated/model/environment-response-all-of.ts deleted file mode 100644 index 33be2d24..00000000 --- a/qaseio/src/generated/model/environment-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Environment } from './environment'; - -/** - * - * @export - * @interface EnvironmentResponseAllOf - */ -export interface EnvironmentResponseAllOf { - /** - * - * @type {Environment} - * @memberof EnvironmentResponseAllOf - */ - 'result'?: Environment; -} - diff --git a/qaseio/src/generated/model/environment-response.ts b/qaseio/src/generated/model/environment-response.ts deleted file mode 100644 index 805e3e22..00000000 --- a/qaseio/src/generated/model/environment-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { Environment } from './environment'; -import { EnvironmentResponseAllOf } from './environment-response-all-of'; - -/** - * @type EnvironmentResponse - * @export - */ -export type EnvironmentResponse = BaseResponse & EnvironmentResponseAllOf; - - diff --git a/qaseio/src/generated/model/environment-update.ts b/qaseio/src/generated/model/environment-update.ts deleted file mode 100644 index cde1d043..00000000 --- a/qaseio/src/generated/model/environment-update.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 EnvironmentUpdate - */ -export interface EnvironmentUpdate { - /** - * - * @type {string} - * @memberof EnvironmentUpdate - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof EnvironmentUpdate - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof EnvironmentUpdate - */ - 'slug'?: string; - /** - * - * @type {string} - * @memberof EnvironmentUpdate - */ - 'host'?: string; -} - diff --git a/qaseio/src/generated/model/environment.ts b/qaseio/src/generated/model/environment.ts deleted file mode 100644 index c6cefe39..00000000 --- a/qaseio/src/generated/model/environment.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 Environment - */ -export interface Environment { - /** - * - * @type {number} - * @memberof Environment - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof Environment - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof Environment - */ - 'description'?: string | null; - /** - * - * @type {string} - * @memberof Environment - */ - 'slug'?: string; - /** - * - * @type {string} - * @memberof Environment - */ - 'host'?: string | null; -} - diff --git a/qaseio/src/generated/model/external-issue-issues-inner.ts b/qaseio/src/generated/model/external-issue-issues-inner.ts deleted file mode 100644 index 58aa14b3..00000000 --- a/qaseio/src/generated/model/external-issue-issues-inner.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 ExternalIssueIssuesInner - */ -export interface ExternalIssueIssuesInner { - /** - * - * @type {string} - * @memberof ExternalIssueIssuesInner - */ - 'id'?: string; - /** - * - * @type {string} - * @memberof ExternalIssueIssuesInner - */ - 'link'?: string; -} - diff --git a/qaseio/src/generated/model/external-issue.ts b/qaseio/src/generated/model/external-issue.ts deleted file mode 100644 index 3e5269ae..00000000 --- a/qaseio/src/generated/model/external-issue.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ExternalIssueIssuesInner } from './external-issue-issues-inner'; - -/** - * - * @export - * @interface ExternalIssue - */ -export interface ExternalIssue { - /** - * - * @type {string} - * @memberof ExternalIssue - */ - 'type'?: string; - /** - * - * @type {Array} - * @memberof ExternalIssue - */ - 'issues'?: Array; -} - diff --git a/qaseio/src/generated/model/hash-response-all-of-result.ts b/qaseio/src/generated/model/hash-response-all-of-result.ts deleted file mode 100644 index 4f0a2573..00000000 --- a/qaseio/src/generated/model/hash-response-all-of-result.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 HashResponseAllOfResult - */ -export interface HashResponseAllOfResult { - /** - * - * @type {string} - * @memberof HashResponseAllOfResult - */ - 'hash'?: string; -} - diff --git a/qaseio/src/generated/model/hash-response-all-of.ts b/qaseio/src/generated/model/hash-response-all-of.ts deleted file mode 100644 index efcaaa7b..00000000 --- a/qaseio/src/generated/model/hash-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { HashResponseAllOfResult } from './hash-response-all-of-result'; - -/** - * - * @export - * @interface HashResponseAllOf - */ -export interface HashResponseAllOf { - /** - * - * @type {HashResponseAllOfResult} - * @memberof HashResponseAllOf - */ - 'result'?: HashResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/hash-response.ts b/qaseio/src/generated/model/hash-response.ts deleted file mode 100644 index b762365f..00000000 --- a/qaseio/src/generated/model/hash-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { HashResponseAllOf } from './hash-response-all-of'; -import { HashResponseAllOfResult } from './hash-response-all-of-result'; - -/** - * @type HashResponse - * @export - */ -export type HashResponse = BaseResponse & HashResponseAllOf; - - diff --git a/qaseio/src/generated/model/id-response-all-of-result.ts b/qaseio/src/generated/model/id-response-all-of-result.ts deleted file mode 100644 index b6f7c4df..00000000 --- a/qaseio/src/generated/model/id-response-all-of-result.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 IdResponseAllOfResult - */ -export interface IdResponseAllOfResult { - /** - * - * @type {number} - * @memberof IdResponseAllOfResult - */ - 'id'?: number; -} - diff --git a/qaseio/src/generated/model/id-response-all-of.ts b/qaseio/src/generated/model/id-response-all-of.ts deleted file mode 100644 index 7d462a5c..00000000 --- a/qaseio/src/generated/model/id-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { IdResponseAllOfResult } from './id-response-all-of-result'; - -/** - * - * @export - * @interface IdResponseAllOf - */ -export interface IdResponseAllOf { - /** - * - * @type {IdResponseAllOfResult} - * @memberof IdResponseAllOf - */ - 'result'?: IdResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/id-response.ts b/qaseio/src/generated/model/id-response.ts deleted file mode 100644 index 934ec7a2..00000000 --- a/qaseio/src/generated/model/id-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { IdResponseAllOf } from './id-response-all-of'; -import { IdResponseAllOfResult } from './id-response-all-of-result'; - -/** - * @type IdResponse - * @export - */ -export type IdResponse = BaseResponse & IdResponseAllOf; - - diff --git a/qaseio/src/generated/model/index.ts b/qaseio/src/generated/model/index.ts deleted file mode 100644 index ab6441f9..00000000 --- a/qaseio/src/generated/model/index.ts +++ /dev/null @@ -1,192 +0,0 @@ -export * from './attachment'; -export * from './attachment-get'; -export * from './attachment-hash'; -export * from './attachment-list-response'; -export * from './attachment-list-response-all-of'; -export * from './attachment-list-response-all-of-result'; -export * from './attachment-response'; -export * from './attachment-response-all-of'; -export * from './attachment-uploads-response'; -export * from './attachment-uploads-response-all-of'; -export * from './attachmentupload'; -export * from './author'; -export * from './author-list-response'; -export * from './author-list-response-all-of'; -export * from './author-list-response-all-of-result'; -export * from './author-response'; -export * from './author-response-all-of'; -export * from './base-response'; -export * from './bulk200-response'; -export * from './bulk200-response-all-of'; -export * from './bulk200-response-all-of-result'; -export * from './create-results-request-v2'; -export * from './configuration'; -export * from './configuration-create'; -export * from './configuration-group'; -export * from './configuration-group-create'; -export * from './configuration-list-response'; -export * from './configuration-list-response-all-of'; -export * from './configuration-list-response-all-of-result'; -export * from './custom-field'; -export * from './custom-field-create'; -export * from './custom-field-create-value-inner'; -export * from './custom-field-list-response'; -export * from './custom-field-response'; -export * from './custom-field-response-all-of'; -export * from './custom-field-update'; -export * from './custom-field-value'; -export * from './custom-fields-response'; -export * from './custom-fields-response-all-of'; -export * from './custom-fields-response-all-of-result'; -export * from './defect'; -export * from './defect-create'; -export * from './defect-list-response'; -export * from './defect-list-response-all-of'; -export * from './defect-list-response-all-of-result'; -export * from './defect-query'; -export * from './defect-response'; -export * from './defect-response-all-of'; -export * from './defect-status'; -export * from './defect-update'; -export * from './environment'; -export * from './environment-create'; -export * from './environment-list-response'; -export * from './environment-list-response-all-of'; -export * from './environment-list-response-all-of-result'; -export * from './environment-response'; -export * from './environment-response-all-of'; -export * from './environment-update'; -export * from './external-issue'; -export * from './external-issue-issues-inner'; -export * from './hash-response'; -export * from './hash-response-all-of'; -export * from './hash-response-all-of-result'; -export * from './id-response'; -export * from './id-response-all-of'; -export * from './id-response-all-of-result'; -export * from './milestone'; -export * from './milestone-create'; -export * from './milestone-list-response'; -export * from './milestone-list-response-all-of'; -export * from './milestone-list-response-all-of-result'; -export * from './milestone-response'; -export * from './milestone-response-all-of'; -export * from './milestone-update'; -export * from './plan'; -export * from './plan-create'; -export * from './plan-detailed'; -export * from './plan-detailed-all-of'; -export * from './plan-detailed-all-of-cases'; -export * from './plan-list-response'; -export * from './plan-list-response-all-of'; -export * from './plan-list-response-all-of-result'; -export * from './plan-query'; -export * from './plan-response'; -export * from './plan-response-all-of'; -export * from './plan-update'; -export * from './project'; -export * from './project-access'; -export * from './project-code-response'; -export * from './project-code-response-all-of'; -export * from './project-code-response-all-of-result'; -export * from './project-counts'; -export * from './project-counts-defects'; -export * from './project-counts-runs'; -export * from './project-create'; -export * from './project-list-response'; -export * from './project-list-response-all-of'; -export * from './project-list-response-all-of-result'; -export * from './project-response'; -export * from './project-response-all-of'; -export * from './qql-defect'; -export * from './qql-plan'; -export * from './qql-test-case'; -export * from './relation-suite'; -export * from './relation-suite-item'; -export * from './requirement'; -export * from './response'; -export * from './result'; -export * from './result-create'; -export * from './result-create-fields'; -export * from './result-create-v2'; -export * from './result-create-bulk'; -export * from './result-create-case'; -export * from './result-create-response'; -export * from './result-create-response-all-of'; -export * from './result-create-response-all-of-result'; -export * from './result-execution'; -export * from './result-list-response'; -export * from './result-list-response-all-of'; -export * from './result-list-response-all-of-result'; -export * from './result-relations'; -export * from './result-response'; -export * from './result-response-all-of'; -export * from './result-step'; -export * from './result-step-data'; -export * from './result-step-execution'; -export * from './result-step-status'; -export * from './result-steps-type'; -export * from './result-update'; -export * from './resultcreate-bulk'; -export * from './run'; -export * from './run-create'; -export * from './run-environment'; -export * from './run-list-response'; -export * from './run-list-response-all-of'; -export * from './run-list-response-all-of-result'; -export * from './run-milestone'; -export * from './run-public'; -export * from './run-public-response'; -export * from './run-public-response-all-of'; -export * from './run-public-response-all-of-result'; -export * from './run-response'; -export * from './run-response-all-of'; -export * from './run-stats'; -export * from './search-response'; -export * from './search-response-all-of'; -export * from './search-response-all-of-result'; -export * from './search-response-all-of-result-entities'; -export * from './shared-step'; -export * from './shared-step-content'; -export * from './shared-step-content-create'; -export * from './shared-step-create'; -export * from './shared-step-list-response'; -export * from './shared-step-list-response-all-of'; -export * from './shared-step-list-response-all-of-result'; -export * from './shared-step-response'; -export * from './shared-step-response-all-of'; -export * from './shared-step-update'; -export * from './suite'; -export * from './suite-create'; -export * from './suite-delete'; -export * from './suite-list-response'; -export * from './suite-list-response-all-of'; -export * from './suite-list-response-all-of-result'; -export * from './suite-response'; -export * from './suite-response-all-of'; -export * from './suite-update'; -export * from './system-field'; -export * from './system-field-list-response'; -export * from './system-field-list-response-all-of'; -export * from './system-field-option'; -export * from './tag-value'; -export * from './test-case'; -export * from './test-case-create'; -export * from './test-case-external-issues'; -export * from './test-case-external-issues-links-inner'; -export * from './test-case-list-response'; -export * from './test-case-list-response-all-of'; -export * from './test-case-list-response-all-of-result'; -export * from './test-case-params'; -export * from './test-case-query'; -export * from './test-case-response'; -export * from './test-case-response-all-of'; -export * from './test-case-update'; -export * from './test-casebulk'; -export * from './test-casebulk-cases-inner'; -export * from './test-casebulk-cases-inner-all-of'; -export * from './test-caseexternal-issues'; -export * from './test-step'; -export * from './test-step-create'; -export * from './test-step-result'; -export * from './test-step-result-create'; diff --git a/qaseio/src/generated/model/milestone-create.ts b/qaseio/src/generated/model/milestone-create.ts deleted file mode 100644 index cdf77b44..00000000 --- a/qaseio/src/generated/model/milestone-create.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 MilestoneCreate - */ -export interface MilestoneCreate { - /** - * - * @type {string} - * @memberof MilestoneCreate - */ - 'title': string; - /** - * - * @type {string} - * @memberof MilestoneCreate - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof MilestoneCreate - */ - 'status'?: MilestoneCreateStatusEnum; - /** - * unix timestamp - * @type {number} - * @memberof MilestoneCreate - */ - 'due_date'?: number; -} - -/** - * @export - * @enum {string} - */ -export enum MilestoneCreateStatusEnum { - COMPLETED = 'completed', - ACTIVE = 'active' -} - - diff --git a/qaseio/src/generated/model/milestone-list-response-all-of-result.ts b/qaseio/src/generated/model/milestone-list-response-all-of-result.ts deleted file mode 100644 index 88d41b5c..00000000 --- a/qaseio/src/generated/model/milestone-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Milestone } from './milestone'; - -/** - * - * @export - * @interface MilestoneListResponseAllOfResult - */ -export interface MilestoneListResponseAllOfResult { - /** - * - * @type {number} - * @memberof MilestoneListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof MilestoneListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof MilestoneListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof MilestoneListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/milestone-list-response-all-of.ts b/qaseio/src/generated/model/milestone-list-response-all-of.ts deleted file mode 100644 index 6a289b4d..00000000 --- a/qaseio/src/generated/model/milestone-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { MilestoneListResponseAllOfResult } from './milestone-list-response-all-of-result'; - -/** - * - * @export - * @interface MilestoneListResponseAllOf - */ -export interface MilestoneListResponseAllOf { - /** - * - * @type {MilestoneListResponseAllOfResult} - * @memberof MilestoneListResponseAllOf - */ - 'result'?: MilestoneListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/milestone-list-response.ts b/qaseio/src/generated/model/milestone-list-response.ts deleted file mode 100644 index 40707dfa..00000000 --- a/qaseio/src/generated/model/milestone-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { MilestoneListResponseAllOf } from './milestone-list-response-all-of'; -import { MilestoneListResponseAllOfResult } from './milestone-list-response-all-of-result'; - -/** - * @type MilestoneListResponse - * @export - */ -export type MilestoneListResponse = BaseResponse & MilestoneListResponseAllOf; - - diff --git a/qaseio/src/generated/model/milestone-response-all-of.ts b/qaseio/src/generated/model/milestone-response-all-of.ts deleted file mode 100644 index ede61361..00000000 --- a/qaseio/src/generated/model/milestone-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Milestone } from './milestone'; - -/** - * - * @export - * @interface MilestoneResponseAllOf - */ -export interface MilestoneResponseAllOf { - /** - * - * @type {Milestone} - * @memberof MilestoneResponseAllOf - */ - 'result'?: Milestone; -} - diff --git a/qaseio/src/generated/model/milestone-response.ts b/qaseio/src/generated/model/milestone-response.ts deleted file mode 100644 index e687778d..00000000 --- a/qaseio/src/generated/model/milestone-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { Milestone } from './milestone'; -import { MilestoneResponseAllOf } from './milestone-response-all-of'; - -/** - * @type MilestoneResponse - * @export - */ -export type MilestoneResponse = BaseResponse & MilestoneResponseAllOf; - - diff --git a/qaseio/src/generated/model/milestone-update.ts b/qaseio/src/generated/model/milestone-update.ts deleted file mode 100644 index af0b224a..00000000 --- a/qaseio/src/generated/model/milestone-update.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 MilestoneUpdate - */ -export interface MilestoneUpdate { - /** - * - * @type {string} - * @memberof MilestoneUpdate - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof MilestoneUpdate - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof MilestoneUpdate - */ - 'status'?: MilestoneUpdateStatusEnum; -} - -/** - * @export - * @enum {string} - */ -export enum MilestoneUpdateStatusEnum { - COMPLETED = 'completed', - ACTIVE = 'active' -} - - diff --git a/qaseio/src/generated/model/milestone.ts b/qaseio/src/generated/model/milestone.ts deleted file mode 100644 index ce10b082..00000000 --- a/qaseio/src/generated/model/milestone.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 Milestone - */ -export interface Milestone { - /** - * - * @type {number} - * @memberof Milestone - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof Milestone - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof Milestone - */ - 'description'?: string | null; - /** - * - * @type {string} - * @memberof Milestone - */ - 'status'?: MilestoneStatusEnum; - /** - * - * @type {string} - * @memberof Milestone - */ - 'due_date'?: string | null; - /** - * Deprecated, use the `created_at` property instead. - * @type {string} - * @memberof Milestone - * @deprecated - */ - 'created'?: string; - /** - * Deprecated, use the `updated_at` property instead. - * @type {string} - * @memberof Milestone - * @deprecated - */ - 'updated'?: string | null; - /** - * - * @type {string} - * @memberof Milestone - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof Milestone - */ - 'updated_at'?: string; -} - -/** - * @export - * @enum {string} - */ -export enum MilestoneStatusEnum { - COMPLETED = 'completed', - ACTIVE = 'active' -} - - diff --git a/qaseio/src/generated/model/plan-create.ts b/qaseio/src/generated/model/plan-create.ts deleted file mode 100644 index 35e64918..00000000 --- a/qaseio/src/generated/model/plan-create.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 PlanCreate - */ -export interface PlanCreate { - /** - * - * @type {string} - * @memberof PlanCreate - */ - 'title': string; - /** - * - * @type {Array} - * @memberof PlanCreate - */ - 'cases': Array; - /** - * - * @type {string} - * @memberof PlanCreate - */ - 'description'?: string | null; -} - diff --git a/qaseio/src/generated/model/plan-detailed-all-of-cases.ts b/qaseio/src/generated/model/plan-detailed-all-of-cases.ts deleted file mode 100644 index e4171664..00000000 --- a/qaseio/src/generated/model/plan-detailed-all-of-cases.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 PlanDetailedAllOfCases - */ -export interface PlanDetailedAllOfCases { - /** - * - * @type {number} - * @memberof PlanDetailedAllOfCases - */ - 'case_id'?: number; - /** - * - * @type {number} - * @memberof PlanDetailedAllOfCases - */ - 'assignee_id'?: number | null; -} - diff --git a/qaseio/src/generated/model/plan-detailed-all-of.ts b/qaseio/src/generated/model/plan-detailed-all-of.ts deleted file mode 100644 index 88803705..00000000 --- a/qaseio/src/generated/model/plan-detailed-all-of.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { PlanDetailedAllOfCases } from './plan-detailed-all-of-cases'; - -/** - * - * @export - * @interface PlanDetailedAllOf - */ -export interface PlanDetailedAllOf { - /** - * - * @type {number} - * @memberof PlanDetailedAllOf - */ - 'average_time'?: number; - /** - * - * @type {Array} - * @memberof PlanDetailedAllOf - */ - 'cases'?: Array; -} - diff --git a/qaseio/src/generated/model/plan-detailed.ts b/qaseio/src/generated/model/plan-detailed.ts deleted file mode 100644 index b034a036..00000000 --- a/qaseio/src/generated/model/plan-detailed.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Plan } from './plan'; -import { PlanDetailedAllOf } from './plan-detailed-all-of'; -import { PlanDetailedAllOfCases } from './plan-detailed-all-of-cases'; - -/** - * @type PlanDetailed - * @export - */ -export type PlanDetailed = Plan & PlanDetailedAllOf; - - diff --git a/qaseio/src/generated/model/plan-list-response-all-of-result.ts b/qaseio/src/generated/model/plan-list-response-all-of-result.ts deleted file mode 100644 index 663e4a05..00000000 --- a/qaseio/src/generated/model/plan-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Plan } from './plan'; - -/** - * - * @export - * @interface PlanListResponseAllOfResult - */ -export interface PlanListResponseAllOfResult { - /** - * - * @type {number} - * @memberof PlanListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof PlanListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof PlanListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof PlanListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/plan-list-response-all-of.ts b/qaseio/src/generated/model/plan-list-response-all-of.ts deleted file mode 100644 index 7fa56947..00000000 --- a/qaseio/src/generated/model/plan-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { PlanListResponseAllOfResult } from './plan-list-response-all-of-result'; - -/** - * - * @export - * @interface PlanListResponseAllOf - */ -export interface PlanListResponseAllOf { - /** - * - * @type {PlanListResponseAllOfResult} - * @memberof PlanListResponseAllOf - */ - 'result'?: PlanListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/plan-list-response.ts b/qaseio/src/generated/model/plan-list-response.ts deleted file mode 100644 index f1b6cc1e..00000000 --- a/qaseio/src/generated/model/plan-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { PlanListResponseAllOf } from './plan-list-response-all-of'; -import { PlanListResponseAllOfResult } from './plan-list-response-all-of-result'; - -/** - * @type PlanListResponse - * @export - */ -export type PlanListResponse = BaseResponse & PlanListResponseAllOf; - - diff --git a/qaseio/src/generated/model/plan-query.ts b/qaseio/src/generated/model/plan-query.ts deleted file mode 100644 index 5ad50c58..00000000 --- a/qaseio/src/generated/model/plan-query.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 PlanQuery - */ -export interface PlanQuery { - /** - * - * @type {number} - * @memberof PlanQuery - */ - 'plan_id': number; - /** - * - * @type {number} - * @memberof PlanQuery - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof PlanQuery - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof PlanQuery - */ - 'description'?: string | null; - /** - * - * @type {number} - * @memberof PlanQuery - */ - 'cases_count'?: number; - /** - * - * @type {string} - * @memberof PlanQuery - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof PlanQuery - */ - 'updated_at'?: string; -} - diff --git a/qaseio/src/generated/model/plan-response-all-of.ts b/qaseio/src/generated/model/plan-response-all-of.ts deleted file mode 100644 index e86bc6a9..00000000 --- a/qaseio/src/generated/model/plan-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { PlanDetailed } from './plan-detailed'; - -/** - * - * @export - * @interface PlanResponseAllOf - */ -export interface PlanResponseAllOf { - /** - * - * @type {PlanDetailed} - * @memberof PlanResponseAllOf - */ - 'result'?: PlanDetailed; -} - diff --git a/qaseio/src/generated/model/plan-response.ts b/qaseio/src/generated/model/plan-response.ts deleted file mode 100644 index 4ea1e468..00000000 --- a/qaseio/src/generated/model/plan-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { PlanDetailed } from './plan-detailed'; -import { PlanResponseAllOf } from './plan-response-all-of'; - -/** - * @type PlanResponse - * @export - */ -export type PlanResponse = BaseResponse & PlanResponseAllOf; - - diff --git a/qaseio/src/generated/model/plan-update.ts b/qaseio/src/generated/model/plan-update.ts deleted file mode 100644 index 0c69e1f1..00000000 --- a/qaseio/src/generated/model/plan-update.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 PlanUpdate - */ -export interface PlanUpdate { - /** - * - * @type {string} - * @memberof PlanUpdate - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof PlanUpdate - */ - 'description'?: string | null; - /** - * - * @type {Array} - * @memberof PlanUpdate - */ - 'cases'?: Array; -} - diff --git a/qaseio/src/generated/model/plan.ts b/qaseio/src/generated/model/plan.ts deleted file mode 100644 index 751e18ec..00000000 --- a/qaseio/src/generated/model/plan.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 Plan - */ -export interface Plan { - /** - * - * @type {number} - * @memberof Plan - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof Plan - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof Plan - */ - 'description'?: string | null; - /** - * - * @type {number} - * @memberof Plan - */ - 'cases_count'?: number; - /** - * - * @type {string} - * @memberof Plan - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof Plan - */ - 'updated_at'?: string; - /** - * Deprecated, use the `created_at` property instead. - * @type {string} - * @memberof Plan - * @deprecated - */ - 'created'?: string; - /** - * Deprecated, use the `updated_at` property instead. - * @type {string} - * @memberof Plan - * @deprecated - */ - 'updated'?: string; -} - diff --git a/qaseio/src/generated/model/project-access.ts b/qaseio/src/generated/model/project-access.ts deleted file mode 100644 index c27e9f65..00000000 --- a/qaseio/src/generated/model/project-access.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 ProjectAccess - */ -export interface ProjectAccess { - /** - * Team member id title. - * @type {number} - * @memberof ProjectAccess - */ - 'member_id'?: number; -} - diff --git a/qaseio/src/generated/model/project-code-response-all-of-result.ts b/qaseio/src/generated/model/project-code-response-all-of-result.ts deleted file mode 100644 index 2ff0a838..00000000 --- a/qaseio/src/generated/model/project-code-response-all-of-result.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 ProjectCodeResponseAllOfResult - */ -export interface ProjectCodeResponseAllOfResult { - /** - * - * @type {string} - * @memberof ProjectCodeResponseAllOfResult - */ - 'code'?: string; -} - diff --git a/qaseio/src/generated/model/project-code-response-all-of.ts b/qaseio/src/generated/model/project-code-response-all-of.ts deleted file mode 100644 index bd6ab09f..00000000 --- a/qaseio/src/generated/model/project-code-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ProjectCodeResponseAllOfResult } from './project-code-response-all-of-result'; - -/** - * - * @export - * @interface ProjectCodeResponseAllOf - */ -export interface ProjectCodeResponseAllOf { - /** - * - * @type {ProjectCodeResponseAllOfResult} - * @memberof ProjectCodeResponseAllOf - */ - 'result'?: ProjectCodeResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/project-code-response.ts b/qaseio/src/generated/model/project-code-response.ts deleted file mode 100644 index f5280d46..00000000 --- a/qaseio/src/generated/model/project-code-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { ProjectCodeResponseAllOf } from './project-code-response-all-of'; -import { ProjectCodeResponseAllOfResult } from './project-code-response-all-of-result'; - -/** - * @type ProjectCodeResponse - * @export - */ -export type ProjectCodeResponse = BaseResponse & ProjectCodeResponseAllOf; - - diff --git a/qaseio/src/generated/model/project-counts-defects.ts b/qaseio/src/generated/model/project-counts-defects.ts deleted file mode 100644 index 7bf2fff7..00000000 --- a/qaseio/src/generated/model/project-counts-defects.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 ProjectCountsDefects - */ -export interface ProjectCountsDefects { - /** - * - * @type {number} - * @memberof ProjectCountsDefects - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof ProjectCountsDefects - */ - 'open'?: number; -} - diff --git a/qaseio/src/generated/model/project-counts-runs.ts b/qaseio/src/generated/model/project-counts-runs.ts deleted file mode 100644 index ff553e26..00000000 --- a/qaseio/src/generated/model/project-counts-runs.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 ProjectCountsRuns - */ -export interface ProjectCountsRuns { - /** - * - * @type {number} - * @memberof ProjectCountsRuns - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof ProjectCountsRuns - */ - 'active'?: number; -} - diff --git a/qaseio/src/generated/model/project-counts.ts b/qaseio/src/generated/model/project-counts.ts deleted file mode 100644 index 0de5d214..00000000 --- a/qaseio/src/generated/model/project-counts.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ProjectCountsDefects } from './project-counts-defects'; -import { ProjectCountsRuns } from './project-counts-runs'; - -/** - * - * @export - * @interface ProjectCounts - */ -export interface ProjectCounts { - /** - * - * @type {number} - * @memberof ProjectCounts - */ - 'cases'?: number; - /** - * - * @type {number} - * @memberof ProjectCounts - */ - 'suites'?: number; - /** - * - * @type {number} - * @memberof ProjectCounts - */ - 'milestones'?: number; - /** - * - * @type {ProjectCountsRuns} - * @memberof ProjectCounts - */ - 'runs'?: ProjectCountsRuns; - /** - * - * @type {ProjectCountsDefects} - * @memberof ProjectCounts - */ - 'defects'?: ProjectCountsDefects; -} - diff --git a/qaseio/src/generated/model/project-create.ts b/qaseio/src/generated/model/project-create.ts deleted file mode 100644 index 65818010..00000000 --- a/qaseio/src/generated/model/project-create.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 ProjectCreate - */ -export interface ProjectCreate { - /** - * Project title. - * @type {string} - * @memberof ProjectCreate - */ - 'title': string; - /** - * Project code. Unique for team. Digits and special characters are not allowed. - * @type {string} - * @memberof ProjectCreate - */ - 'code': string; - /** - * Project description. - * @type {string} - * @memberof ProjectCreate - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof ProjectCreate - */ - 'access'?: ProjectCreateAccessEnum; - /** - * Team group hash. Required if access param is set to group. - * @type {string} - * @memberof ProjectCreate - */ - 'group'?: string; - /** - * Additional project settings. - * @type {{ [key: string]: any; }} - * @memberof ProjectCreate - */ - 'settings'?: { [key: string]: any; }; -} - -/** - * @export - * @enum {string} - */ -export enum ProjectCreateAccessEnum { - ALL = 'all', - GROUP = 'group', - NONE = 'none' -} - - diff --git a/qaseio/src/generated/model/project-list-response-all-of-result.ts b/qaseio/src/generated/model/project-list-response-all-of-result.ts deleted file mode 100644 index 4e3533a2..00000000 --- a/qaseio/src/generated/model/project-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Project } from './project'; - -/** - * - * @export - * @interface ProjectListResponseAllOfResult - */ -export interface ProjectListResponseAllOfResult { - /** - * - * @type {number} - * @memberof ProjectListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof ProjectListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof ProjectListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof ProjectListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/project-list-response-all-of.ts b/qaseio/src/generated/model/project-list-response-all-of.ts deleted file mode 100644 index b14a0c04..00000000 --- a/qaseio/src/generated/model/project-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ProjectListResponseAllOfResult } from './project-list-response-all-of-result'; - -/** - * - * @export - * @interface ProjectListResponseAllOf - */ -export interface ProjectListResponseAllOf { - /** - * - * @type {ProjectListResponseAllOfResult} - * @memberof ProjectListResponseAllOf - */ - 'result'?: ProjectListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/project-list-response.ts b/qaseio/src/generated/model/project-list-response.ts deleted file mode 100644 index 155cfa5d..00000000 --- a/qaseio/src/generated/model/project-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { ProjectListResponseAllOf } from './project-list-response-all-of'; -import { ProjectListResponseAllOfResult } from './project-list-response-all-of-result'; - -/** - * @type ProjectListResponse - * @export - */ -export type ProjectListResponse = BaseResponse & ProjectListResponseAllOf; - - diff --git a/qaseio/src/generated/model/project-response-all-of.ts b/qaseio/src/generated/model/project-response-all-of.ts deleted file mode 100644 index 5d60899d..00000000 --- a/qaseio/src/generated/model/project-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Project } from './project'; - -/** - * - * @export - * @interface ProjectResponseAllOf - */ -export interface ProjectResponseAllOf { - /** - * - * @type {Project} - * @memberof ProjectResponseAllOf - */ - 'result'?: Project; -} - diff --git a/qaseio/src/generated/model/project-response.ts b/qaseio/src/generated/model/project-response.ts deleted file mode 100644 index 0e3f1670..00000000 --- a/qaseio/src/generated/model/project-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { Project } from './project'; -import { ProjectResponseAllOf } from './project-response-all-of'; - -/** - * @type ProjectResponse - * @export - */ -export type ProjectResponse = BaseResponse & ProjectResponseAllOf; - - diff --git a/qaseio/src/generated/model/project.ts b/qaseio/src/generated/model/project.ts deleted file mode 100644 index a3baf475..00000000 --- a/qaseio/src/generated/model/project.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ProjectCounts } from './project-counts'; - -/** - * - * @export - * @interface Project - */ -export interface Project { - /** - * - * @type {string} - * @memberof Project - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof Project - */ - 'code'?: string; - /** - * - * @type {ProjectCounts} - * @memberof Project - */ - 'counts'?: ProjectCounts; -} - diff --git a/qaseio/src/generated/model/qql-defect.ts b/qaseio/src/generated/model/qql-defect.ts deleted file mode 100644 index c55734aa..00000000 --- a/qaseio/src/generated/model/qql-defect.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachment } from './attachment'; -import { CustomFieldValue } from './custom-field-value'; -import { TagValue } from './tag-value'; - -/** - * - * @export - * @interface QqlDefect - */ -export interface QqlDefect { - /** - * - * @type {number} - * @memberof QqlDefect - */ - 'defect_id': number; - /** - * - * @type {number} - * @memberof QqlDefect - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof QqlDefect - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof QqlDefect - */ - 'actual_result'?: string; - /** - * - * @type {string} - * @memberof QqlDefect - */ - 'severity'?: string; - /** - * - * @type {string} - * @memberof QqlDefect - */ - 'status'?: string; - /** - * - * @type {number} - * @memberof QqlDefect - */ - 'milestone_id'?: number | null; - /** - * - * @type {Array} - * @memberof QqlDefect - */ - 'custom_fields'?: Array; - /** - * - * @type {Array} - * @memberof QqlDefect - */ - 'attachments'?: Array; - /** - * - * @type {string} - * @memberof QqlDefect - */ - 'resolved'?: string | null; - /** - * Deprecated, use `author_id` instead. - * @type {number} - * @memberof QqlDefect - * @deprecated - */ - 'member_id'?: number; - /** - * - * @type {number} - * @memberof QqlDefect - */ - 'author_id'?: number; - /** - * - * @type {string} - * @memberof QqlDefect - */ - 'external_data'?: string; - /** - * - * @type {Array} - * @memberof QqlDefect - */ - 'tags'?: Array; - /** - * - * @type {string} - * @memberof QqlDefect - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof QqlDefect - */ - 'updated_at'?: string; -} - diff --git a/qaseio/src/generated/model/qql-plan.ts b/qaseio/src/generated/model/qql-plan.ts deleted file mode 100644 index 424b6386..00000000 --- a/qaseio/src/generated/model/qql-plan.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 QqlPlan - */ -export interface QqlPlan { - /** - * - * @type {number} - * @memberof QqlPlan - */ - 'plan_id': number; - /** - * - * @type {number} - * @memberof QqlPlan - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof QqlPlan - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof QqlPlan - */ - 'description'?: string | null; - /** - * - * @type {number} - * @memberof QqlPlan - */ - 'cases_count'?: number; - /** - * - * @type {string} - * @memberof QqlPlan - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof QqlPlan - */ - 'updated_at'?: string; -} - diff --git a/qaseio/src/generated/model/qql-test-case.ts b/qaseio/src/generated/model/qql-test-case.ts deleted file mode 100644 index f6519e5e..00000000 --- a/qaseio/src/generated/model/qql-test-case.ts +++ /dev/null @@ -1,192 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachment } from './attachment'; -import { CustomFieldValue } from './custom-field-value'; -import { TagValue } from './tag-value'; -import { TestCaseParams } from './test-case-params'; -import { TestStep } from './test-step'; - -/** - * - * @export - * @interface QqlTestCase - */ -export interface QqlTestCase { - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'test_case_id': number; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'id'?: number; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'position'?: number; - /** - * - * @type {string} - * @memberof QqlTestCase - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof QqlTestCase - */ - 'description'?: string | null; - /** - * - * @type {string} - * @memberof QqlTestCase - */ - 'preconditions'?: string | null; - /** - * - * @type {string} - * @memberof QqlTestCase - */ - 'postconditions'?: string | null; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'severity'?: number; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'priority'?: number; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'type'?: number; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'layer'?: number; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'is_flaky'?: number; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'behavior'?: number; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'automation'?: number; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'status'?: number; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'milestone_id'?: number | null; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'suite_id'?: number | null; - /** - * - * @type {Array} - * @memberof QqlTestCase - */ - 'custom_fields'?: Array; - /** - * - * @type {Array} - * @memberof QqlTestCase - */ - 'attachments'?: Array; - /** - * - * @type {string} - * @memberof QqlTestCase - */ - 'steps_type'?: string | null; - /** - * - * @type {Array} - * @memberof QqlTestCase - */ - 'steps'?: Array; - /** - * - * @type {TestCaseParams} - * @memberof QqlTestCase - */ - 'params'?: TestCaseParams; - /** - * - * @type {Array} - * @memberof QqlTestCase - */ - 'tags'?: Array; - /** - * Deprecated, use `author_id` instead. - * @type {number} - * @memberof QqlTestCase - * @deprecated - */ - 'member_id'?: number; - /** - * - * @type {number} - * @memberof QqlTestCase - */ - 'author_id'?: number; - /** - * - * @type {string} - * @memberof QqlTestCase - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof QqlTestCase - */ - 'updated_at'?: string; -} - diff --git a/qaseio/src/generated/model/relation-suite-item.ts b/qaseio/src/generated/model/relation-suite-item.ts deleted file mode 100644 index bbe56014..00000000 --- a/qaseio/src/generated/model/relation-suite-item.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* 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 RelationSuiteItem - */ -export interface RelationSuiteItem { - /** - * - * @type {string} - * @memberof RelationSuiteItem - */ - 'title': string; - /** - * - * @type {number} - * @memberof RelationSuiteItem - */ - 'public_id'?: number | null; -} - diff --git a/qaseio/src/generated/model/relation-suite.ts b/qaseio/src/generated/model/relation-suite.ts deleted file mode 100644 index a645ac56..00000000 --- a/qaseio/src/generated/model/relation-suite.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* 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. - */ - - -import { RelationSuiteItem } from './relation-suite-item'; - -/** - * - * @export - * @interface RelationSuite - */ -export interface RelationSuite { - /** - * - * @type {Array} - * @memberof RelationSuite - */ - 'data': Array; -} - diff --git a/qaseio/src/generated/model/requirement-query.ts b/qaseio/src/generated/model/requirement-query.ts deleted file mode 100644 index 4bde4dbc..00000000 --- a/qaseio/src/generated/model/requirement-query.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 RequirementQuery - */ -export interface RequirementQuery { - /** - * - * @type {number} - * @memberof RequirementQuery - */ - 'requirement_id': number; - /** - * - * @type {number} - * @memberof RequirementQuery - */ - 'id'?: number; - /** - * - * @type {number} - * @memberof RequirementQuery - */ - 'parent_id'?: number | null; - /** - * - * @type {number} - * @memberof RequirementQuery - */ - 'member_id'?: number; - /** - * - * @type {string} - * @memberof RequirementQuery - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof RequirementQuery - */ - 'description'?: string | null; - /** - * - * @type {string} - * @memberof RequirementQuery - */ - 'status'?: RequirementQueryStatusEnum; - /** - * - * @type {string} - * @memberof RequirementQuery - */ - 'type'?: RequirementQueryTypeEnum; - /** - * - * @type {string} - * @memberof RequirementQuery - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof RequirementQuery - */ - 'updated_at'?: string | null; -} - -/** - * @export - * @enum {string} - */ -export enum RequirementQueryStatusEnum { - VALID = 'valid', - DRAFT = 'draft', - REVIEW = 'review', - REWORK = 'rework', - FINISH = 'finish', - IMPLEMENTED = 'implemented', - NOT_TESTABLE = 'not-testable', - OBSOLETE = 'obsolete' -} -/** - * @export - * @enum {string} - */ -export enum RequirementQueryTypeEnum { - EPIC = 'epic', - USER_STORY = 'user-story', - FEATURE = 'feature' -} - - diff --git a/qaseio/src/generated/model/requirement.ts b/qaseio/src/generated/model/requirement.ts deleted file mode 100644 index c5ab2e31..00000000 --- a/qaseio/src/generated/model/requirement.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 Requirement - */ -export interface Requirement { - /** - * - * @type {number} - * @memberof Requirement - */ - 'id'?: number; - /** - * - * @type {number} - * @memberof Requirement - */ - 'requirement_id'?: number; - /** - * - * @type {number} - * @memberof Requirement - */ - 'parent_id'?: number | null; - /** - * - * @type {number} - * @memberof Requirement - */ - 'member_id'?: number; - /** - * - * @type {string} - * @memberof Requirement - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof Requirement - */ - 'description'?: string | null; - /** - * - * @type {string} - * @memberof Requirement - */ - 'status'?: RequirementStatusEnum; - /** - * - * @type {string} - * @memberof Requirement - */ - 'type'?: RequirementTypeEnum; - /** - * - * @type {string} - * @memberof Requirement - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof Requirement - */ - 'updated_at'?: string | null; -} - -/** - * @export - * @enum {string} - */ -export enum RequirementStatusEnum { - VALID = 'valid', - DRAFT = 'draft', - REVIEW = 'review', - REWORK = 'rework', - FINISH = 'finish', - IMPLEMENTED = 'implemented', - NOT_TESTABLE = 'not-testable', - OBSOLETE = 'obsolete' -} -/** - * @export - * @enum {string} - */ -export enum RequirementTypeEnum { - EPIC = 'epic', - USER_STORY = 'user-story', - FEATURE = 'feature' -} - - diff --git a/qaseio/src/generated/model/response.ts b/qaseio/src/generated/model/response.ts deleted file mode 100644 index d341eb85..00000000 --- a/qaseio/src/generated/model/response.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 Response - */ -export interface Response { - /** - * - * @type {boolean} - * @memberof Response - */ - 'status'?: boolean; -} - diff --git a/qaseio/src/generated/model/result-create-bulk.ts b/qaseio/src/generated/model/result-create-bulk.ts deleted file mode 100644 index bce6ee9e..00000000 --- a/qaseio/src/generated/model/result-create-bulk.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ResultCreate } from './result-create'; - -/** - * - * @export - * @interface ResultCreateBulk - */ -export interface ResultCreateBulk { - /** - * - * @type {Array} - * @memberof ResultCreateBulk - */ - 'results': Array; -} - diff --git a/qaseio/src/generated/model/result-create-case.ts b/qaseio/src/generated/model/result-create-case.ts deleted file mode 100644 index d7dda66d..00000000 --- a/qaseio/src/generated/model/result-create-case.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - - -/** - * Could be used instead of `case_id`. - * @export - * @interface ResultCreateCase - */ -export interface ResultCreateCase { - /** - * - * @type {string} - * @memberof ResultCreateCase - */ - 'title'?: string; - /** - * Nested suites should be separated with `TAB` symbol. - * @type {string} - * @memberof ResultCreateCase - */ - 'suite_title'?: string | null; - /** - * - * @type {string} - * @memberof ResultCreateCase - */ - 'description'?: string | null; - /** - * - * @type {string} - * @memberof ResultCreateCase - */ - 'preconditions'?: string | null; - /** - * - * @type {string} - * @memberof ResultCreateCase - */ - 'postconditions'?: string | null; - /** - * Slug of the layer. You can get it in the System Field settings. - * @type {string} - * @memberof ResultCreateCase - */ - 'layer'?: string; - /** - * Slug of the severity. You can get it in the System Field settings. - * @type {string} - * @memberof ResultCreateCase - */ - 'severity'?: string; - /** - * Slug of the priority. You can get it in the System Field settings. - * @type {string} - * @memberof ResultCreateCase - */ - 'priority'?: string; -} - diff --git a/qaseio/src/generated/model/result-create-fields.ts b/qaseio/src/generated/model/result-create-fields.ts deleted file mode 100644 index 50d5079d..00000000 --- a/qaseio/src/generated/model/result-create-fields.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* 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; - - /** - * Author of the related test case (member id, name or email). If set and test case auto-creation is enabled, the author will be used to create the test case - * @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; - /** - * User who executed the test (member id, name or email) - * @type {string} - * @memberof ResultCreateFields - */ - 'executed_by'?: string; -} - diff --git a/qaseio/src/generated/model/result-create-response-all-of-result.ts b/qaseio/src/generated/model/result-create-response-all-of-result.ts deleted file mode 100644 index fd186e89..00000000 --- a/qaseio/src/generated/model/result-create-response-all-of-result.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 ResultCreateResponseAllOfResult - */ -export interface ResultCreateResponseAllOfResult { - /** - * - * @type {number} - * @memberof ResultCreateResponseAllOfResult - */ - 'case_id'?: number; - /** - * - * @type {string} - * @memberof ResultCreateResponseAllOfResult - */ - 'hash'?: string; -} - diff --git a/qaseio/src/generated/model/result-create-response-all-of.ts b/qaseio/src/generated/model/result-create-response-all-of.ts deleted file mode 100644 index 5db07663..00000000 --- a/qaseio/src/generated/model/result-create-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ResultCreateResponseAllOfResult } from './result-create-response-all-of-result'; - -/** - * - * @export - * @interface ResultCreateResponseAllOf - */ -export interface ResultCreateResponseAllOf { - /** - * - * @type {ResultCreateResponseAllOfResult} - * @memberof ResultCreateResponseAllOf - */ - 'result'?: ResultCreateResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/result-create-response.ts b/qaseio/src/generated/model/result-create-response.ts deleted file mode 100644 index e24c3ee8..00000000 --- a/qaseio/src/generated/model/result-create-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { ResultCreateResponseAllOf } from './result-create-response-all-of'; -import { ResultCreateResponseAllOfResult } from './result-create-response-all-of-result'; - -/** - * @type ResultCreateResponse - * @export - */ -export type ResultCreateResponse = BaseResponse & ResultCreateResponseAllOf; - - diff --git a/qaseio/src/generated/model/result-create-v2.ts b/qaseio/src/generated/model/result-create-v2.ts deleted file mode 100644 index 43f97a8d..00000000 --- a/qaseio/src/generated/model/result-create-v2.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* 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. - */ - - -import { ResultCreateFields } from './result-create-fields'; -import { ResultExecution } from './result-execution'; -import { ResultRelations } from './result-relations'; -import { ResultStep } from './result-step'; -import { ResultStepsType } from './result-steps-type'; - -/** - * - * @export - * @interface ResultCreateV2 - */ -export interface ResultCreateV2 { - /** - * - * @type {string} - * @memberof ResultCreateV2 - */ - 'title': string; - /** - * - * @type {ResultExecution} - * @memberof ResultCreateV2 - */ - 'execution': ResultExecution; - /** - * If passed, used as an idempotency key - * @type {string} - * @memberof ResultCreateV2 - */ - 'id'?: string; - /** - * - * @type {string} - * @memberof ResultCreateV2 - */ - 'signature'?: string; - /** - * - * @type {number} - * @memberof ResultCreateV2 - */ - 'testops_id'?: number | null; - /** - * - * @type {ResultCreateFields} - * @memberof ResultCreateV2 - */ - 'fields'?: ResultCreateFields; - /** - * - * @type {Array} - * @memberof ResultCreateV2 - */ - 'attachments'?: Array; - /** - * - * @type {Array} - * @memberof ResultCreateV2 - */ - 'steps'?: Array; - /** - * - * @type {ResultStepsType} - * @memberof ResultCreateV2 - */ - 'steps_type'?: ResultStepsType | null; - /** - * - * @type {{ [key: string]: string; }} - * @memberof ResultCreateV2 - */ - 'params'?: { [key: string]: string; }; - /** - * List parameter groups by name only. Add their values in the \'params\' field - * @type {Array>} - * @memberof ResultCreateV2 - */ - 'param_groups'?: Array> | null; - /** - * - * @type {ResultRelations} - * @memberof ResultCreateV2 - */ - 'relations'?: ResultRelations | null; - /** - * - * @type {string} - * @memberof ResultCreateV2 - */ - 'message'?: string | null; - /** - * If true and the result is failed, the defect associated with the result will be created - * @type {boolean} - * @memberof ResultCreateV2 - */ - 'defect'?: boolean; -} - diff --git a/qaseio/src/generated/model/result-create.ts b/qaseio/src/generated/model/result-create.ts deleted file mode 100644 index 9c0bea51..00000000 --- a/qaseio/src/generated/model/result-create.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ResultCreateCase } from './result-create-case'; -import { TestStepResultCreate } from './test-step-result-create'; - -/** - * - * @export - * @interface ResultCreate - */ -export interface ResultCreate { - /** - * Can have the following values `passed`, `failed`, `blocked`, `skipped`, `invalid` + custom statuses - * @type {string} - * @memberof ResultCreate - */ - 'status': string; - /** - * - * @type {number} - * @memberof ResultCreate - */ - 'case_id'?: number; - /** - * - * @type {ResultCreateCase} - * @memberof ResultCreate - */ - 'case'?: ResultCreateCase; - /** - * - * @type {number} - * @memberof ResultCreate - */ - 'start_time'?: number | null; - /** - * - * @type {number} - * @memberof ResultCreate - */ - 'time'?: number | null; - /** - * - * @type {number} - * @memberof ResultCreate - */ - 'time_ms'?: number | null; - /** - * - * @type {boolean} - * @memberof ResultCreate - */ - 'defect'?: boolean | null; - /** - * - * @type {Array} - * @memberof ResultCreate - */ - 'attachments'?: Array | null; - /** - * - * @type {string} - * @memberof ResultCreate - */ - 'stacktrace'?: string | null; - /** - * - * @type {string} - * @memberof ResultCreate - */ - 'comment'?: string | null; - /** - * A map of parameters (name => value) - * @type {{ [key: string]: string; }} - * @memberof ResultCreate - */ - 'param'?: { [key: string]: string; } | null; - /** - * A list of parameter groups - * @type {Array>} - * @memberof ResultCreate - */ - 'param_groups'?: Array> | null; - /** - * - * @type {Array} - * @memberof ResultCreate - */ - 'steps'?: Array | null; - /** - * - * @type {number} - * @memberof ResultCreate - */ - 'author_id'?: number | null; -} - diff --git a/qaseio/src/generated/model/result-execution.ts b/qaseio/src/generated/model/result-execution.ts deleted file mode 100644 index 6f01de05..00000000 --- a/qaseio/src/generated/model/result-execution.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* 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 ResultExecution - */ -export interface ResultExecution { - /** - * Can have the following values passed, failed, blocked, skipped, invalid + custom statuses - * @type {string} - * @memberof 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 - */ - 'duration'?: number | null; - /** - * - * @type {string} - * @memberof ResultExecution - */ - 'stacktrace'?: string | null; - /** - * - * @type {string} - * @memberof ResultExecution - */ - 'thread'?: string | null; -} - diff --git a/qaseio/src/generated/model/result-list-response-all-of-result.ts b/qaseio/src/generated/model/result-list-response-all-of-result.ts deleted file mode 100644 index 86e6ef0e..00000000 --- a/qaseio/src/generated/model/result-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Result } from './result'; - -/** - * - * @export - * @interface ResultListResponseAllOfResult - */ -export interface ResultListResponseAllOfResult { - /** - * - * @type {number} - * @memberof ResultListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof ResultListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof ResultListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof ResultListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/result-list-response-all-of.ts b/qaseio/src/generated/model/result-list-response-all-of.ts deleted file mode 100644 index 9a93e66c..00000000 --- a/qaseio/src/generated/model/result-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ResultListResponseAllOfResult } from './result-list-response-all-of-result'; - -/** - * - * @export - * @interface ResultListResponseAllOf - */ -export interface ResultListResponseAllOf { - /** - * - * @type {ResultListResponseAllOfResult} - * @memberof ResultListResponseAllOf - */ - 'result'?: ResultListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/result-list-response.ts b/qaseio/src/generated/model/result-list-response.ts deleted file mode 100644 index 9ffcd694..00000000 --- a/qaseio/src/generated/model/result-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { ResultListResponseAllOf } from './result-list-response-all-of'; -import { ResultListResponseAllOfResult } from './result-list-response-all-of-result'; - -/** - * @type ResultListResponse - * @export - */ -export type ResultListResponse = BaseResponse & ResultListResponseAllOf; - - diff --git a/qaseio/src/generated/model/result-query.ts b/qaseio/src/generated/model/result-query.ts deleted file mode 100644 index 96e81e61..00000000 --- a/qaseio/src/generated/model/result-query.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachment } from './attachment'; -import { TestStepResult } from './test-step-result'; - -/** - * - * @export - * @interface ResultQuery - */ -export interface ResultQuery { - /** - * - * @type {string} - * @memberof ResultQuery - */ - 'result_hash': string; - /** - * - * @type {string} - * @memberof ResultQuery - */ - 'hash'?: string; - /** - * - * @type {string} - * @memberof ResultQuery - */ - 'comment'?: string | null; - /** - * - * @type {string} - * @memberof ResultQuery - */ - 'stacktrace'?: string | null; - /** - * - * @type {number} - * @memberof ResultQuery - */ - 'run_id'?: number; - /** - * - * @type {number} - * @memberof ResultQuery - */ - 'case_id'?: number; - /** - * - * @type {Array} - * @memberof ResultQuery - */ - 'steps'?: Array | null; - /** - * - * @type {string} - * @memberof ResultQuery - */ - 'status'?: string; - /** - * - * @type {boolean} - * @memberof ResultQuery - */ - 'is_api_result'?: boolean; - /** - * - * @type {number} - * @memberof ResultQuery - */ - 'time_spent_ms'?: number; - /** - * - * @type {string} - * @memberof ResultQuery - */ - 'end_time'?: string | null; - /** - * - * @type {Array} - * @memberof ResultQuery - */ - 'attachments'?: Array; -} - diff --git a/qaseio/src/generated/model/result-relations.ts b/qaseio/src/generated/model/result-relations.ts deleted file mode 100644 index cf573cb4..00000000 --- a/qaseio/src/generated/model/result-relations.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* 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. - */ - - -import { RelationSuite } from './relation-suite'; - -/** - * - * @export - * @interface ResultRelations - */ -export interface ResultRelations { - /** - * - * @type {RelationSuite} - * @memberof ResultRelations - */ - 'suite'?: RelationSuite | null; -} - diff --git a/qaseio/src/generated/model/result-response-all-of.ts b/qaseio/src/generated/model/result-response-all-of.ts deleted file mode 100644 index 5176cb58..00000000 --- a/qaseio/src/generated/model/result-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Result } from './result'; - -/** - * - * @export - * @interface ResultResponseAllOf - */ -export interface ResultResponseAllOf { - /** - * - * @type {Result} - * @memberof ResultResponseAllOf - */ - 'result'?: Result; -} - diff --git a/qaseio/src/generated/model/result-response.ts b/qaseio/src/generated/model/result-response.ts deleted file mode 100644 index 9e0a4204..00000000 --- a/qaseio/src/generated/model/result-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { Result } from './result'; -import { ResultResponseAllOf } from './result-response-all-of'; - -/** - * @type ResultResponse - * @export - */ -export type ResultResponse = BaseResponse & ResultResponseAllOf; - - diff --git a/qaseio/src/generated/model/result-step-data.ts b/qaseio/src/generated/model/result-step-data.ts deleted file mode 100644 index 02b6f47a..00000000 --- a/qaseio/src/generated/model/result-step-data.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* 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 ResultStepData - */ -export interface ResultStepData { - /** - * - * @type {string} - * @memberof ResultStepData - */ - 'action': string; - /** - * - * @type {string} - * @memberof ResultStepData - */ - 'expected_result'?: string; - /** - * - * @type {string} - * @memberof ResultStepData - */ - 'input_data'?: string; - /** - * - * @type {Array} - * @memberof ResultStepData - */ - 'attachments'?: Array; -} - diff --git a/qaseio/src/generated/model/result-step-execution.ts b/qaseio/src/generated/model/result-step-execution.ts deleted file mode 100644 index f9f9bbae..00000000 --- a/qaseio/src/generated/model/result-step-execution.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* 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. - */ - - -import { ResultStepStatus } from './result-step-status'; - -/** - * - * @export - * @interface ResultStepExecution - */ -export interface ResultStepExecution { - /** - * - * @type {ResultStepStatus} - * @memberof 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 - */ - 'duration'?: number | null; - /** - * - * @type {string} - * @memberof ResultStepExecution - */ - 'comment'?: string; - /** - * - * @type {Array} - * @memberof ResultStepExecution - */ - 'attachments'?: Array; -} - - - diff --git a/qaseio/src/generated/model/result-step-status.ts b/qaseio/src/generated/model/result-step-status.ts deleted file mode 100644 index f649ed40..00000000 --- a/qaseio/src/generated/model/result-step-status.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* 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 - * @enum {string} - */ - -export enum ResultStepStatus { - PASSED = 'passed', - FAILED = 'failed', - BLOCKED = 'blocked', - SKIPPED = 'skipped' -} - - diff --git a/qaseio/src/generated/model/result-step.ts b/qaseio/src/generated/model/result-step.ts deleted file mode 100644 index 64f8e54d..00000000 --- a/qaseio/src/generated/model/result-step.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* 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. - */ - - -import { ResultStepData } from './result-step-data'; -import { ResultStepExecution } from './result-step-execution'; - -/** - * - * @export - * @interface ResultStep - */ -export interface ResultStep { - /** - * - * @type {ResultStepData} - * @memberof ResultStep - */ - 'data'?: ResultStepData; - /** - * - * @type {ResultStepExecution} - * @memberof ResultStep - */ - 'execution'?: ResultStepExecution; - /** - * Nested steps will be here. The same structure is used for them. - * @type {Array} - * @memberof ResultStep - */ - 'steps'?: Array; -} - diff --git a/qaseio/src/generated/model/result-steps-type.ts b/qaseio/src/generated/model/result-steps-type.ts deleted file mode 100644 index da4ede02..00000000 --- a/qaseio/src/generated/model/result-steps-type.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* 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 - * @enum {string} - */ - -export enum ResultStepsType { - CLASSIC = 'classic', - GHERKIN = 'gherkin' -} - - diff --git a/qaseio/src/generated/model/result-update.ts b/qaseio/src/generated/model/result-update.ts deleted file mode 100644 index d133efc8..00000000 --- a/qaseio/src/generated/model/result-update.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { TestStepResultCreate } from './test-step-result-create'; - -/** - * - * @export - * @interface ResultUpdate - */ -export interface ResultUpdate { - /** - * - * @type {string} - * @memberof ResultUpdate - */ - 'status'?: ResultUpdateStatusEnum; - /** - * - * @type {number} - * @memberof ResultUpdate - */ - 'time_ms'?: number | null; - /** - * - * @type {boolean} - * @memberof ResultUpdate - */ - 'defect'?: boolean | null; - /** - * - * @type {Array} - * @memberof ResultUpdate - */ - 'attachments'?: Array | null; - /** - * - * @type {string} - * @memberof ResultUpdate - */ - 'stacktrace'?: string | null; - /** - * - * @type {string} - * @memberof ResultUpdate - */ - 'comment'?: string | null; - /** - * - * @type {Array} - * @memberof ResultUpdate - */ - 'steps'?: Array | null; -} - -/** - * @export - * @enum {string} - */ -export enum ResultUpdateStatusEnum { - IN_PROGRESS = 'in_progress', - PASSED = 'passed', - FAILED = 'failed', - BLOCKED = 'blocked', - SKIPPED = 'skipped' -} - - diff --git a/qaseio/src/generated/model/result.ts b/qaseio/src/generated/model/result.ts deleted file mode 100644 index afb067d9..00000000 --- a/qaseio/src/generated/model/result.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachment } from './attachment'; -import { TestStepResult } from './test-step-result'; - -/** - * - * @export - * @interface Result - */ -export interface Result { - /** - * - * @type {string} - * @memberof Result - */ - 'hash'?: string; - /** - * - * @type {string} - * @memberof Result - */ - 'result_hash'?: string; - /** - * - * @type {string} - * @memberof Result - */ - 'comment'?: string | null; - /** - * - * @type {string} - * @memberof Result - */ - 'stacktrace'?: string | null; - /** - * - * @type {number} - * @memberof Result - */ - 'run_id'?: number; - /** - * - * @type {number} - * @memberof Result - */ - 'case_id'?: number; - /** - * - * @type {Array} - * @memberof Result - */ - 'steps'?: Array | null; - /** - * - * @type {string} - * @memberof Result - */ - 'status'?: string; - /** - * - * @type {boolean} - * @memberof Result - */ - 'is_api_result'?: boolean; - /** - * - * @type {number} - * @memberof Result - */ - 'time_spent_ms'?: number; - /** - * - * @type {string} - * @memberof Result - */ - 'end_time'?: string | null; - /** - * - * @type {Array} - * @memberof Result - */ - 'attachments'?: Array; -} - diff --git a/qaseio/src/generated/model/resultcreate-bulk.ts b/qaseio/src/generated/model/resultcreate-bulk.ts deleted file mode 100644 index 9b77fbf9..00000000 --- a/qaseio/src/generated/model/resultcreate-bulk.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { ResultCreate } from './result-create'; - -/** - * - * @export - * @interface ResultcreateBulk - */ -export interface ResultcreateBulk { - /** - * - * @type {Array} - * @memberof ResultcreateBulk - */ - 'results': Array; -} - diff --git a/qaseio/src/generated/model/run-create.ts b/qaseio/src/generated/model/run-create.ts deleted file mode 100644 index 30ac57d8..00000000 --- a/qaseio/src/generated/model/run-create.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 RunCreate - */ -export interface RunCreate { - /** - * - * @type {string} - * @memberof RunCreate - */ - 'title': string; - /** - * - * @type {string} - * @memberof RunCreate - */ - 'description'?: string; - /** - * - * @type {boolean} - * @memberof RunCreate - */ - 'include_all_cases'?: boolean; - /** - * - * @type {Array} - * @memberof RunCreate - */ - 'cases'?: Array; - /** - * - * @type {boolean} - * @memberof RunCreate - */ - 'is_autotest'?: boolean; - /** - * - * @type {number} - * @memberof RunCreate - */ - 'environment_id'?: number; - /** - * - * @type {string} - * @memberof RunCreate - */ - 'environment_slug'?: string; - /** - * - * @type {number} - * @memberof RunCreate - */ - 'milestone_id'?: number; - /** - * - * @type {number} - * @memberof RunCreate - */ - 'plan_id'?: number; - /** - * - * @type {number} - * @memberof RunCreate - */ - 'author_id'?: number; - /** - * - * @type {Array} - * @memberof RunCreate - */ - 'tags'?: Array; - /** - * - * @type {Array} - * @memberof RunCreate - */ - 'configurations'?: Array; - /** - * A map of custom fields values (id => value) - * @type {{ [key: string]: string; }} - * @memberof RunCreate - */ - 'custom_field'?: { [key: string]: string; }; - /** - * - * @type {string} - * @memberof RunCreate - */ - 'start_time'?: string; - /** - * - * @type {string} - * @memberof RunCreate - */ - 'end_time'?: string; -} - diff --git a/qaseio/src/generated/model/run-environment.ts b/qaseio/src/generated/model/run-environment.ts deleted file mode 100644 index 44fd2f95..00000000 --- a/qaseio/src/generated/model/run-environment.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 RunEnvironment - */ -export interface RunEnvironment { - /** - * - * @type {string} - * @memberof RunEnvironment - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof RunEnvironment - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof RunEnvironment - */ - 'slug'?: string; - /** - * - * @type {string} - * @memberof RunEnvironment - */ - 'host'?: string; -} - diff --git a/qaseio/src/generated/model/run-list-response-all-of-result.ts b/qaseio/src/generated/model/run-list-response-all-of-result.ts deleted file mode 100644 index eebf01d5..00000000 --- a/qaseio/src/generated/model/run-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Run } from './run'; - -/** - * - * @export - * @interface RunListResponseAllOfResult - */ -export interface RunListResponseAllOfResult { - /** - * - * @type {number} - * @memberof RunListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof RunListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof RunListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof RunListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/run-list-response-all-of.ts b/qaseio/src/generated/model/run-list-response-all-of.ts deleted file mode 100644 index c203249a..00000000 --- a/qaseio/src/generated/model/run-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { RunListResponseAllOfResult } from './run-list-response-all-of-result'; - -/** - * - * @export - * @interface RunListResponseAllOf - */ -export interface RunListResponseAllOf { - /** - * - * @type {RunListResponseAllOfResult} - * @memberof RunListResponseAllOf - */ - 'result'?: RunListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/run-list-response.ts b/qaseio/src/generated/model/run-list-response.ts deleted file mode 100644 index e271370a..00000000 --- a/qaseio/src/generated/model/run-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { RunListResponseAllOf } from './run-list-response-all-of'; -import { RunListResponseAllOfResult } from './run-list-response-all-of-result'; - -/** - * @type RunListResponse - * @export - */ -export type RunListResponse = BaseResponse & RunListResponseAllOf; - - diff --git a/qaseio/src/generated/model/run-milestone.ts b/qaseio/src/generated/model/run-milestone.ts deleted file mode 100644 index e85a5335..00000000 --- a/qaseio/src/generated/model/run-milestone.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 RunMilestone - */ -export interface RunMilestone { - /** - * - * @type {string} - * @memberof RunMilestone - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof RunMilestone - */ - 'description'?: string; -} - diff --git a/qaseio/src/generated/model/run-public-response-all-of-result.ts b/qaseio/src/generated/model/run-public-response-all-of-result.ts deleted file mode 100644 index 7ec1d642..00000000 --- a/qaseio/src/generated/model/run-public-response-all-of-result.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 RunPublicResponseAllOfResult - */ -export interface RunPublicResponseAllOfResult { - /** - * - * @type {string} - * @memberof RunPublicResponseAllOfResult - */ - 'url'?: string; -} - diff --git a/qaseio/src/generated/model/run-public-response-all-of.ts b/qaseio/src/generated/model/run-public-response-all-of.ts deleted file mode 100644 index 815834a4..00000000 --- a/qaseio/src/generated/model/run-public-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { RunPublicResponseAllOfResult } from './run-public-response-all-of-result'; - -/** - * - * @export - * @interface RunPublicResponseAllOf - */ -export interface RunPublicResponseAllOf { - /** - * - * @type {RunPublicResponseAllOfResult} - * @memberof RunPublicResponseAllOf - */ - 'result'?: RunPublicResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/run-public-response.ts b/qaseio/src/generated/model/run-public-response.ts deleted file mode 100644 index 95709890..00000000 --- a/qaseio/src/generated/model/run-public-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { RunPublicResponseAllOf } from './run-public-response-all-of'; -import { RunPublicResponseAllOfResult } from './run-public-response-all-of-result'; - -/** - * @type RunPublicResponse - * @export - */ -export type RunPublicResponse = BaseResponse & RunPublicResponseAllOf; - - diff --git a/qaseio/src/generated/model/run-public.ts b/qaseio/src/generated/model/run-public.ts deleted file mode 100644 index 759f76c0..00000000 --- a/qaseio/src/generated/model/run-public.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 RunPublic - */ -export interface RunPublic { - /** - * - * @type {boolean} - * @memberof RunPublic - */ - 'status': boolean; -} - diff --git a/qaseio/src/generated/model/run-query.ts b/qaseio/src/generated/model/run-query.ts deleted file mode 100644 index 92be5643..00000000 --- a/qaseio/src/generated/model/run-query.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { CustomFieldValue } from './custom-field-value'; -import { RunEnvironment } from './run-environment'; -import { RunMilestone } from './run-milestone'; -import { RunStats } from './run-stats'; -import { TagValue } from './tag-value'; - -/** - * - * @export - * @interface RunQuery - */ -export interface RunQuery { - /** - * - * @type {number} - * @memberof RunQuery - */ - 'run_id': number; - /** - * - * @type {number} - * @memberof RunQuery - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof RunQuery - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof RunQuery - */ - 'description'?: string | null; - /** - * - * @type {number} - * @memberof RunQuery - */ - 'status'?: number; - /** - * - * @type {string} - * @memberof RunQuery - */ - 'status_text'?: string; - /** - * - * @type {string} - * @memberof RunQuery - */ - 'start_time'?: string | null; - /** - * - * @type {string} - * @memberof RunQuery - */ - 'end_time'?: string | null; - /** - * - * @type {boolean} - * @memberof RunQuery - */ - 'public'?: boolean; - /** - * - * @type {RunStats} - * @memberof RunQuery - */ - 'stats'?: RunStats; - /** - * Time in ms. - * @type {number} - * @memberof RunQuery - */ - 'time_spent'?: number; - /** - * - * @type {RunEnvironment} - * @memberof RunQuery - */ - 'environment'?: RunEnvironment | null; - /** - * - * @type {RunMilestone} - * @memberof RunQuery - */ - 'milestone'?: RunMilestone | null; - /** - * - * @type {Array} - * @memberof RunQuery - */ - 'custom_fields'?: Array; - /** - * - * @type {Array} - * @memberof RunQuery - */ - 'tags'?: Array; - /** - * - * @type {Array} - * @memberof RunQuery - */ - 'cases'?: Array; - /** - * - * @type {number} - * @memberof RunQuery - */ - 'plan_id'?: number | null; -} - diff --git a/qaseio/src/generated/model/run-response-all-of.ts b/qaseio/src/generated/model/run-response-all-of.ts deleted file mode 100644 index 195ed54f..00000000 --- a/qaseio/src/generated/model/run-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Run } from './run'; - -/** - * - * @export - * @interface RunResponseAllOf - */ -export interface RunResponseAllOf { - /** - * - * @type {Run} - * @memberof RunResponseAllOf - */ - 'result'?: Run; -} - diff --git a/qaseio/src/generated/model/run-response.ts b/qaseio/src/generated/model/run-response.ts deleted file mode 100644 index add92de5..00000000 --- a/qaseio/src/generated/model/run-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { Run } from './run'; -import { RunResponseAllOf } from './run-response-all-of'; - -/** - * @type RunResponse - * @export - */ -export type RunResponse = BaseResponse & RunResponseAllOf; - - diff --git a/qaseio/src/generated/model/run-stats.ts b/qaseio/src/generated/model/run-stats.ts deleted file mode 100644 index f7e73eac..00000000 --- a/qaseio/src/generated/model/run-stats.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 RunStats - */ -export interface RunStats { - /** - * - * @type {number} - * @memberof RunStats - */ - 'total'?: number; - /** - * - * @type {{ [key: string]: number; }} - * @memberof RunStats - */ - 'statuses'?: { [key: string]: number; }; - /** - * - * @type {number} - * @memberof RunStats - * @deprecated - */ - 'untested'?: number; - /** - * - * @type {number} - * @memberof RunStats - * @deprecated - */ - 'passed'?: number; - /** - * - * @type {number} - * @memberof RunStats - * @deprecated - */ - 'failed'?: number; - /** - * - * @type {number} - * @memberof RunStats - * @deprecated - */ - 'blocked'?: number; - /** - * - * @type {number} - * @memberof RunStats - * @deprecated - */ - 'skipped'?: number; - /** - * - * @type {number} - * @memberof RunStats - * @deprecated - */ - 'retest'?: number; - /** - * - * @type {number} - * @memberof RunStats - * @deprecated - */ - 'in_progress'?: number; - /** - * - * @type {number} - * @memberof RunStats - * @deprecated - */ - 'invalid'?: number; -} - diff --git a/qaseio/src/generated/model/run.ts b/qaseio/src/generated/model/run.ts deleted file mode 100644 index a533ffc3..00000000 --- a/qaseio/src/generated/model/run.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { CustomFieldValue } from './custom-field-value'; -import { RunEnvironment } from './run-environment'; -import { RunMilestone } from './run-milestone'; -import { RunStats } from './run-stats'; -import { TagValue } from './tag-value'; - -/** - * - * @export - * @interface Run - */ -export interface Run { - /** - * - * @type {number} - * @memberof Run - */ - 'id'?: number; - /** - * - * @type {number} - * @memberof Run - */ - 'run_id'?: number; - /** - * - * @type {string} - * @memberof Run - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof Run - */ - 'description'?: string | null; - /** - * - * @type {number} - * @memberof Run - */ - 'status'?: number; - /** - * - * @type {string} - * @memberof Run - */ - 'status_text'?: string; - /** - * - * @type {string} - * @memberof Run - */ - 'start_time'?: string | null; - /** - * - * @type {string} - * @memberof Run - */ - 'end_time'?: string | null; - /** - * - * @type {boolean} - * @memberof Run - */ - 'public'?: boolean; - /** - * - * @type {RunStats} - * @memberof Run - */ - 'stats'?: RunStats; - /** - * Time in ms. - * @type {number} - * @memberof Run - */ - 'time_spent'?: number; - /** - * - * @type {RunEnvironment} - * @memberof Run - */ - 'environment'?: RunEnvironment | null; - /** - * - * @type {RunMilestone} - * @memberof Run - */ - 'milestone'?: RunMilestone | null; - /** - * - * @type {Array} - * @memberof Run - */ - 'custom_fields'?: Array; - /** - * - * @type {Array} - * @memberof Run - */ - 'tags'?: Array; - /** - * - * @type {Array} - * @memberof Run - */ - 'cases'?: Array; - /** - * - * @type {number} - * @memberof Run - */ - 'plan_id'?: number | null; -} - diff --git a/qaseio/src/generated/model/search-response-all-of-result-entities.ts b/qaseio/src/generated/model/search-response-all-of-result-entities.ts deleted file mode 100644 index df858e08..00000000 --- a/qaseio/src/generated/model/search-response-all-of-result-entities.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachment } from './attachment'; -import { CustomFieldValue } from './custom-field-value'; -import { DefectQuery } from './defect-query'; -import { PlanQuery } from './plan-query'; -import { RequirementQuery } from './requirement-query'; -import { ResultQuery } from './result-query'; -import { RunEnvironment } from './run-environment'; -import { RunMilestone } from './run-milestone'; -import { RunQuery } from './run-query'; -import { RunStats } from './run-stats'; -import { TagValue } from './tag-value'; -import { TestCaseParams } from './test-case-params'; -import { TestCaseQuery } from './test-case-query'; -import { TestStep } from './test-step'; - -/** - * @type SearchResponseAllOfResultEntities - * @export - */ -export type SearchResponseAllOfResultEntities = DefectQuery | PlanQuery | RequirementQuery | ResultQuery | RunQuery | TestCaseQuery; - - diff --git a/qaseio/src/generated/model/search-response-all-of-result.ts b/qaseio/src/generated/model/search-response-all-of-result.ts deleted file mode 100644 index 15cbc7ef..00000000 --- a/qaseio/src/generated/model/search-response-all-of-result.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { SearchResponseAllOfResultEntities } from './search-response-all-of-result-entities'; - -/** - * - * @export - * @interface SearchResponseAllOfResult - */ -export interface SearchResponseAllOfResult { - /** - * - * @type {Array} - * @memberof SearchResponseAllOfResult - */ - 'entities': Array; - /** - * - * @type {number} - * @memberof SearchResponseAllOfResult - */ - 'total': number; -} - diff --git a/qaseio/src/generated/model/search-response-all-of.ts b/qaseio/src/generated/model/search-response-all-of.ts deleted file mode 100644 index 2b7f2975..00000000 --- a/qaseio/src/generated/model/search-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { SearchResponseAllOfResult } from './search-response-all-of-result'; - -/** - * - * @export - * @interface SearchResponseAllOf - */ -export interface SearchResponseAllOf { - /** - * - * @type {SearchResponseAllOfResult} - * @memberof SearchResponseAllOf - */ - 'result'?: SearchResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/search-response.ts b/qaseio/src/generated/model/search-response.ts deleted file mode 100644 index b3b0cb9d..00000000 --- a/qaseio/src/generated/model/search-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { SearchResponseAllOf } from './search-response-all-of'; -import { SearchResponseAllOfResult } from './search-response-all-of-result'; - -/** - * @type SearchResponse - * @export - */ -export type SearchResponse = BaseResponse & SearchResponseAllOf; - - diff --git a/qaseio/src/generated/model/shared-step-content-create.ts b/qaseio/src/generated/model/shared-step-content-create.ts deleted file mode 100644 index a58548f6..00000000 --- a/qaseio/src/generated/model/shared-step-content-create.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 SharedStepContentCreate - */ -export interface SharedStepContentCreate { - /** - * - * @type {string} - * @memberof SharedStepContentCreate - */ - 'action': string; - /** - * - * @type {string} - * @memberof SharedStepContentCreate - */ - 'hash'?: string; - /** - * - * @type {string} - * @memberof SharedStepContentCreate - */ - 'expected_result'?: string; - /** - * - * @type {string} - * @memberof SharedStepContentCreate - */ - 'data'?: string; - /** - * A list of Attachment hashes. - * @type {Array} - * @memberof SharedStepContentCreate - */ - 'attachments'?: Array; -} - diff --git a/qaseio/src/generated/model/shared-step-content.ts b/qaseio/src/generated/model/shared-step-content.ts deleted file mode 100644 index 4679dcba..00000000 --- a/qaseio/src/generated/model/shared-step-content.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { AttachmentHash } from './attachment-hash'; - -/** - * - * @export - * @interface SharedStepContent - */ -export interface SharedStepContent { - /** - * - * @type {string} - * @memberof SharedStepContent - */ - 'data'?: string; - /** - * - * @type {string} - * @memberof SharedStepContent - * @deprecated - */ - 'hash'?: string; - /** - * - * @type {string} - * @memberof SharedStepContent - */ - 'action'?: string; - /** - * - * @type {string} - * @memberof SharedStepContent - */ - 'expected_result'?: string; - /** - * - * @type {Array} - * @memberof SharedStepContent - */ - 'attachments'?: Array; -} - diff --git a/qaseio/src/generated/model/shared-step-create.ts b/qaseio/src/generated/model/shared-step-create.ts deleted file mode 100644 index fbb80e5e..00000000 --- a/qaseio/src/generated/model/shared-step-create.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { SharedStepContentCreate } from './shared-step-content-create'; - -/** - * - * @export - * @interface SharedStepCreate - */ -export interface SharedStepCreate { - /** - * - * @type {string} - * @memberof SharedStepCreate - */ - 'title': string; - /** - * Deprecated, use the `steps` property instead. - * @type {string} - * @memberof SharedStepCreate - * @deprecated - */ - 'action'?: string; - /** - * Deprecated, use the `steps` property instead. - * @type {string} - * @memberof SharedStepCreate - * @deprecated - */ - 'expected_result'?: string; - /** - * Deprecated, use the `steps` property instead. - * @type {string} - * @memberof SharedStepCreate - * @deprecated - */ - 'data'?: string; - /** - * - * @type {Array} - * @memberof SharedStepCreate - */ - 'steps'?: Array; -} - diff --git a/qaseio/src/generated/model/shared-step-list-response-all-of-result.ts b/qaseio/src/generated/model/shared-step-list-response-all-of-result.ts deleted file mode 100644 index 13cbaa13..00000000 --- a/qaseio/src/generated/model/shared-step-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { SharedStep } from './shared-step'; - -/** - * - * @export - * @interface SharedStepListResponseAllOfResult - */ -export interface SharedStepListResponseAllOfResult { - /** - * - * @type {number} - * @memberof SharedStepListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof SharedStepListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof SharedStepListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof SharedStepListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/shared-step-list-response-all-of.ts b/qaseio/src/generated/model/shared-step-list-response-all-of.ts deleted file mode 100644 index 68e00876..00000000 --- a/qaseio/src/generated/model/shared-step-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { SharedStepListResponseAllOfResult } from './shared-step-list-response-all-of-result'; - -/** - * - * @export - * @interface SharedStepListResponseAllOf - */ -export interface SharedStepListResponseAllOf { - /** - * - * @type {SharedStepListResponseAllOfResult} - * @memberof SharedStepListResponseAllOf - */ - 'result'?: SharedStepListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/shared-step-list-response.ts b/qaseio/src/generated/model/shared-step-list-response.ts deleted file mode 100644 index 2e4a8e56..00000000 --- a/qaseio/src/generated/model/shared-step-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { SharedStepListResponseAllOf } from './shared-step-list-response-all-of'; -import { SharedStepListResponseAllOfResult } from './shared-step-list-response-all-of-result'; - -/** - * @type SharedStepListResponse - * @export - */ -export type SharedStepListResponse = BaseResponse & SharedStepListResponseAllOf; - - diff --git a/qaseio/src/generated/model/shared-step-response-all-of.ts b/qaseio/src/generated/model/shared-step-response-all-of.ts deleted file mode 100644 index f15ba7f1..00000000 --- a/qaseio/src/generated/model/shared-step-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { SharedStep } from './shared-step'; - -/** - * - * @export - * @interface SharedStepResponseAllOf - */ -export interface SharedStepResponseAllOf { - /** - * - * @type {SharedStep} - * @memberof SharedStepResponseAllOf - */ - 'result'?: SharedStep; -} - diff --git a/qaseio/src/generated/model/shared-step-response.ts b/qaseio/src/generated/model/shared-step-response.ts deleted file mode 100644 index f21050a6..00000000 --- a/qaseio/src/generated/model/shared-step-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { SharedStep } from './shared-step'; -import { SharedStepResponseAllOf } from './shared-step-response-all-of'; - -/** - * @type SharedStepResponse - * @export - */ -export type SharedStepResponse = BaseResponse & SharedStepResponseAllOf; - - diff --git a/qaseio/src/generated/model/shared-step-update.ts b/qaseio/src/generated/model/shared-step-update.ts deleted file mode 100644 index cf9b5fc2..00000000 --- a/qaseio/src/generated/model/shared-step-update.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { SharedStepContentCreate } from './shared-step-content-create'; - -/** - * - * @export - * @interface SharedStepUpdate - */ -export interface SharedStepUpdate { - /** - * - * @type {string} - * @memberof SharedStepUpdate - */ - 'title': string; - /** - * Deprecated, use the `steps` property instead. - * @type {string} - * @memberof SharedStepUpdate - * @deprecated - */ - 'action'?: string; - /** - * Deprecated, use the `steps` property instead. - * @type {string} - * @memberof SharedStepUpdate - * @deprecated - */ - 'expected_result'?: string; - /** - * Deprecated, use the `steps` property instead. - * @type {string} - * @memberof SharedStepUpdate - * @deprecated - */ - 'data'?: string; - /** - * - * @type {Array} - * @memberof SharedStepUpdate - */ - 'steps'?: Array; -} - diff --git a/qaseio/src/generated/model/shared-step.ts b/qaseio/src/generated/model/shared-step.ts deleted file mode 100644 index e76d367b..00000000 --- a/qaseio/src/generated/model/shared-step.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { SharedStepContent } from './shared-step-content'; - -/** - * - * @export - * @interface SharedStep - */ -export interface SharedStep { - /** - * - * @type {string} - * @memberof SharedStep - */ - 'hash'?: string; - /** - * - * @type {string} - * @memberof SharedStep - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof SharedStep - */ - 'action'?: string; - /** - * - * @type {string} - * @memberof SharedStep - */ - 'expected_result'?: string; - /** - * - * @type {Array} - * @memberof SharedStep - */ - 'steps'?: Array; - /** - * - * @type {string} - * @memberof SharedStep - */ - 'data'?: string; - /** - * - * @type {Array} - * @memberof SharedStep - */ - 'cases'?: Array; - /** - * - * @type {number} - * @memberof SharedStep - */ - 'cases_count'?: number; - /** - * Deprecated, use the `created_at` property instead. - * @type {string} - * @memberof SharedStep - * @deprecated - */ - 'created'?: string; - /** - * Deprecated, use the `updated_at` property instead. - * @type {string} - * @memberof SharedStep - * @deprecated - */ - 'updated'?: string; - /** - * - * @type {string} - * @memberof SharedStep - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof SharedStep - */ - 'updated_at'?: string; -} - diff --git a/qaseio/src/generated/model/suite-create.ts b/qaseio/src/generated/model/suite-create.ts deleted file mode 100644 index c8438aaf..00000000 --- a/qaseio/src/generated/model/suite-create.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 SuiteCreate - */ -export interface SuiteCreate { - /** - * Test suite title. - * @type {string} - * @memberof SuiteCreate - */ - 'title': string; - /** - * Test suite description. - * @type {string} - * @memberof SuiteCreate - */ - 'description'?: string; - /** - * Test suite preconditions - * @type {string} - * @memberof SuiteCreate - */ - 'preconditions'?: string; - /** - * Parent suite ID - * @type {number} - * @memberof SuiteCreate - */ - 'parent_id'?: number | null; -} - diff --git a/qaseio/src/generated/model/suite-delete.ts b/qaseio/src/generated/model/suite-delete.ts deleted file mode 100644 index cb6b8708..00000000 --- a/qaseio/src/generated/model/suite-delete.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 SuiteDelete - */ -export interface SuiteDelete { - /** - * If provided, child test cases would be moved to suite with such ID. - * @type {number} - * @memberof SuiteDelete - */ - 'destination_id'?: number; -} - diff --git a/qaseio/src/generated/model/suite-list-response-all-of-result.ts b/qaseio/src/generated/model/suite-list-response-all-of-result.ts deleted file mode 100644 index 5b72a2ac..00000000 --- a/qaseio/src/generated/model/suite-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Suite } from './suite'; - -/** - * - * @export - * @interface SuiteListResponseAllOfResult - */ -export interface SuiteListResponseAllOfResult { - /** - * - * @type {number} - * @memberof SuiteListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof SuiteListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof SuiteListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof SuiteListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/suite-list-response-all-of.ts b/qaseio/src/generated/model/suite-list-response-all-of.ts deleted file mode 100644 index 6417bbfe..00000000 --- a/qaseio/src/generated/model/suite-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { SuiteListResponseAllOfResult } from './suite-list-response-all-of-result'; - -/** - * - * @export - * @interface SuiteListResponseAllOf - */ -export interface SuiteListResponseAllOf { - /** - * - * @type {SuiteListResponseAllOfResult} - * @memberof SuiteListResponseAllOf - */ - 'result'?: SuiteListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/suite-list-response.ts b/qaseio/src/generated/model/suite-list-response.ts deleted file mode 100644 index 2b9758b7..00000000 --- a/qaseio/src/generated/model/suite-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { SuiteListResponseAllOf } from './suite-list-response-all-of'; -import { SuiteListResponseAllOfResult } from './suite-list-response-all-of-result'; - -/** - * @type SuiteListResponse - * @export - */ -export type SuiteListResponse = BaseResponse & SuiteListResponseAllOf; - - diff --git a/qaseio/src/generated/model/suite-response-all-of.ts b/qaseio/src/generated/model/suite-response-all-of.ts deleted file mode 100644 index 772c000a..00000000 --- a/qaseio/src/generated/model/suite-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Suite } from './suite'; - -/** - * - * @export - * @interface SuiteResponseAllOf - */ -export interface SuiteResponseAllOf { - /** - * - * @type {Suite} - * @memberof SuiteResponseAllOf - */ - 'result'?: Suite; -} - diff --git a/qaseio/src/generated/model/suite-response.ts b/qaseio/src/generated/model/suite-response.ts deleted file mode 100644 index 3e187137..00000000 --- a/qaseio/src/generated/model/suite-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { Suite } from './suite'; -import { SuiteResponseAllOf } from './suite-response-all-of'; - -/** - * @type SuiteResponse - * @export - */ -export type SuiteResponse = BaseResponse & SuiteResponseAllOf; - - diff --git a/qaseio/src/generated/model/suite-update.ts b/qaseio/src/generated/model/suite-update.ts deleted file mode 100644 index 8fe5f9c3..00000000 --- a/qaseio/src/generated/model/suite-update.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 SuiteUpdate - */ -export interface SuiteUpdate { - /** - * Test suite title. - * @type {string} - * @memberof SuiteUpdate - */ - 'title'?: string; - /** - * Test suite description. - * @type {string} - * @memberof SuiteUpdate - */ - 'description'?: string; - /** - * Test suite preconditions - * @type {string} - * @memberof SuiteUpdate - */ - 'preconditions'?: string; - /** - * Parent suite ID - * @type {number} - * @memberof SuiteUpdate - */ - 'parent_id'?: number | null; -} - diff --git a/qaseio/src/generated/model/suite.ts b/qaseio/src/generated/model/suite.ts deleted file mode 100644 index 0e3f325e..00000000 --- a/qaseio/src/generated/model/suite.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 Suite - */ -export interface Suite { - /** - * - * @type {number} - * @memberof Suite - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof Suite - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof Suite - */ - 'description'?: string | null; - /** - * - * @type {string} - * @memberof Suite - */ - 'preconditions'?: string | null; - /** - * - * @type {number} - * @memberof Suite - */ - 'position'?: number; - /** - * - * @type {number} - * @memberof Suite - */ - 'cases_count'?: number; - /** - * - * @type {number} - * @memberof Suite - */ - 'parent_id'?: number | null; - /** - * Deprecated, use the `created_at` property instead. - * @type {string} - * @memberof Suite - * @deprecated - */ - 'created'?: string; - /** - * Deprecated, use the `updated_at` property instead. - * @type {string} - * @memberof Suite - * @deprecated - */ - 'updated'?: string | null; - /** - * - * @type {string} - * @memberof Suite - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof Suite - */ - 'updated_at'?: string; -} - diff --git a/qaseio/src/generated/model/system-field-list-response-all-of.ts b/qaseio/src/generated/model/system-field-list-response-all-of.ts deleted file mode 100644 index 9080558d..00000000 --- a/qaseio/src/generated/model/system-field-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { SystemField } from './system-field'; - -/** - * - * @export - * @interface SystemFieldListResponseAllOf - */ -export interface SystemFieldListResponseAllOf { - /** - * - * @type {Array} - * @memberof SystemFieldListResponseAllOf - */ - 'result'?: Array; -} - diff --git a/qaseio/src/generated/model/system-field-list-response.ts b/qaseio/src/generated/model/system-field-list-response.ts deleted file mode 100644 index a070d463..00000000 --- a/qaseio/src/generated/model/system-field-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { SystemField } from './system-field'; -import { SystemFieldListResponseAllOf } from './system-field-list-response-all-of'; - -/** - * @type SystemFieldListResponse - * @export - */ -export type SystemFieldListResponse = BaseResponse & SystemFieldListResponseAllOf; - - diff --git a/qaseio/src/generated/model/system-field-option.ts b/qaseio/src/generated/model/system-field-option.ts deleted file mode 100644 index cee3fe1a..00000000 --- a/qaseio/src/generated/model/system-field-option.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 SystemFieldOption - */ -export interface SystemFieldOption { - /** - * - * @type {number} - * @memberof SystemFieldOption - */ - 'id'?: number; - /** - * - * @type {string} - * @memberof SystemFieldOption - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof SystemFieldOption - */ - 'slug'?: string; - /** - * - * @type {string} - * @memberof SystemFieldOption - */ - 'color'?: string | null; - /** - * - * @type {string} - * @memberof SystemFieldOption - */ - 'icon'?: string | null; - /** - * - * @type {boolean} - * @memberof SystemFieldOption - */ - 'is_default'?: boolean; - /** - * - * @type {boolean} - * @memberof SystemFieldOption - */ - 'read_only'?: boolean; -} - diff --git a/qaseio/src/generated/model/system-field.ts b/qaseio/src/generated/model/system-field.ts deleted file mode 100644 index 60a7bcde..00000000 --- a/qaseio/src/generated/model/system-field.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { SystemFieldOption } from './system-field-option'; - -/** - * - * @export - * @interface SystemField - */ -export interface SystemField { - /** - * - * @type {string} - * @memberof SystemField - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof SystemField - */ - 'slug'?: string; - /** - * - * @type {string} - * @memberof SystemField - */ - 'default_value'?: string | null; - /** - * - * @type {boolean} - * @memberof SystemField - */ - 'is_required'?: boolean; - /** - * - * @type {number} - * @memberof SystemField - */ - 'entity'?: number; - /** - * - * @type {number} - * @memberof SystemField - */ - 'type'?: number; - /** - * - * @type {Array} - * @memberof SystemField - */ - 'options'?: Array | null; -} - diff --git a/qaseio/src/generated/model/tag-value.ts b/qaseio/src/generated/model/tag-value.ts deleted file mode 100644 index ed27cdab..00000000 --- a/qaseio/src/generated/model/tag-value.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 TagValue - */ -export interface TagValue { - /** - * - * @type {string} - * @memberof TagValue - */ - 'title'?: string; - /** - * - * @type {number} - * @memberof TagValue - */ - 'internal_id'?: number; -} - diff --git a/qaseio/src/generated/model/test-case-create.ts b/qaseio/src/generated/model/test-case-create.ts deleted file mode 100644 index 170426e5..00000000 --- a/qaseio/src/generated/model/test-case-create.ts +++ /dev/null @@ -1,157 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { TestStepCreate } from './test-step-create'; - -/** - * - * @export - * @interface TestCaseCreate - */ -export interface TestCaseCreate { - /** - * - * @type {string} - * @memberof TestCaseCreate - */ - 'title': string; - /** - * - * @type {string} - * @memberof TestCaseCreate - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof TestCaseCreate - */ - 'preconditions'?: string; - /** - * - * @type {string} - * @memberof TestCaseCreate - */ - 'postconditions'?: string; - /** - * - * @type {number} - * @memberof TestCaseCreate - */ - 'severity'?: number; - /** - * - * @type {number} - * @memberof TestCaseCreate - */ - 'priority'?: number; - /** - * - * @type {number} - * @memberof TestCaseCreate - */ - 'behavior'?: number; - /** - * - * @type {number} - * @memberof TestCaseCreate - */ - 'type'?: number; - /** - * - * @type {number} - * @memberof TestCaseCreate - */ - 'layer'?: number; - /** - * - * @type {number} - * @memberof TestCaseCreate - */ - 'is_flaky'?: number; - /** - * - * @type {number} - * @memberof TestCaseCreate - */ - 'author_id'?: number; - /** - * - * @type {number} - * @memberof TestCaseCreate - */ - 'suite_id'?: number; - /** - * - * @type {number} - * @memberof TestCaseCreate - */ - 'milestone_id'?: number; - /** - * - * @type {number} - * @memberof TestCaseCreate - */ - 'automation'?: number; - /** - * - * @type {number} - * @memberof TestCaseCreate - */ - 'status'?: number; - /** - * A list of Attachment hashes. - * @type {Array} - * @memberof TestCaseCreate - */ - 'attachments'?: Array; - /** - * - * @type {Array} - * @memberof TestCaseCreate - */ - 'steps'?: Array; - /** - * - * @type {Array} - * @memberof TestCaseCreate - */ - 'tags'?: Array; - /** - * - * @type {{ [key: string]: Array; }} - * @memberof TestCaseCreate - */ - 'params'?: { [key: string]: Array; } | null; - /** - * A map of custom fields values (id => value) - * @type {{ [key: string]: string; }} - * @memberof TestCaseCreate - */ - 'custom_field'?: { [key: string]: string; }; - /** - * - * @type {string} - * @memberof TestCaseCreate - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof TestCaseCreate - */ - 'updated_at'?: string; -} - diff --git a/qaseio/src/generated/model/test-case-external-issues-links-inner.ts b/qaseio/src/generated/model/test-case-external-issues-links-inner.ts deleted file mode 100644 index e918efa5..00000000 --- a/qaseio/src/generated/model/test-case-external-issues-links-inner.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 TestCaseExternalIssuesLinksInner - */ -export interface TestCaseExternalIssuesLinksInner { - /** - * - * @type {number} - * @memberof TestCaseExternalIssuesLinksInner - */ - 'case_id': number; - /** - * - * @type {Array} - * @memberof TestCaseExternalIssuesLinksInner - */ - 'external_issues': Array; -} - diff --git a/qaseio/src/generated/model/test-case-external-issues.ts b/qaseio/src/generated/model/test-case-external-issues.ts deleted file mode 100644 index 51766650..00000000 --- a/qaseio/src/generated/model/test-case-external-issues.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { TestCaseExternalIssuesLinksInner } from './test-case-external-issues-links-inner'; - -/** - * - * @export - * @interface TestCaseExternalIssues - */ -export interface TestCaseExternalIssues { - /** - * - * @type {string} - * @memberof TestCaseExternalIssues - */ - 'type': TestCaseExternalIssuesTypeEnum; - /** - * - * @type {Array} - * @memberof TestCaseExternalIssues - */ - 'links': Array; -} - -/** - * @export - * @enum {string} - */ -export enum TestCaseExternalIssuesTypeEnum { - CLOUD = 'jira-cloud', - SERVER = 'jira-server' -} - - diff --git a/qaseio/src/generated/model/test-case-list-response-all-of-result.ts b/qaseio/src/generated/model/test-case-list-response-all-of-result.ts deleted file mode 100644 index 3106599b..00000000 --- a/qaseio/src/generated/model/test-case-list-response-all-of-result.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { TestCase } from './test-case'; - -/** - * - * @export - * @interface TestCaseListResponseAllOfResult - */ -export interface TestCaseListResponseAllOfResult { - /** - * - * @type {number} - * @memberof TestCaseListResponseAllOfResult - */ - 'total'?: number; - /** - * - * @type {number} - * @memberof TestCaseListResponseAllOfResult - */ - 'filtered'?: number; - /** - * - * @type {number} - * @memberof TestCaseListResponseAllOfResult - */ - 'count'?: number; - /** - * - * @type {Array} - * @memberof TestCaseListResponseAllOfResult - */ - 'entities'?: Array; -} - diff --git a/qaseio/src/generated/model/test-case-list-response-all-of.ts b/qaseio/src/generated/model/test-case-list-response-all-of.ts deleted file mode 100644 index 8c441328..00000000 --- a/qaseio/src/generated/model/test-case-list-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { TestCaseListResponseAllOfResult } from './test-case-list-response-all-of-result'; - -/** - * - * @export - * @interface TestCaseListResponseAllOf - */ -export interface TestCaseListResponseAllOf { - /** - * - * @type {TestCaseListResponseAllOfResult} - * @memberof TestCaseListResponseAllOf - */ - 'result'?: TestCaseListResponseAllOfResult; -} - diff --git a/qaseio/src/generated/model/test-case-list-response.ts b/qaseio/src/generated/model/test-case-list-response.ts deleted file mode 100644 index 9ec0d02e..00000000 --- a/qaseio/src/generated/model/test-case-list-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { TestCaseListResponseAllOf } from './test-case-list-response-all-of'; -import { TestCaseListResponseAllOfResult } from './test-case-list-response-all-of-result'; - -/** - * @type TestCaseListResponse - * @export - */ -export type TestCaseListResponse = BaseResponse & TestCaseListResponseAllOf; - - diff --git a/qaseio/src/generated/model/test-case-params.ts b/qaseio/src/generated/model/test-case-params.ts deleted file mode 100644 index 3252b461..00000000 --- a/qaseio/src/generated/model/test-case-params.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 TestCaseParams - */ -export interface TestCaseParams { -} - diff --git a/qaseio/src/generated/model/test-case-query.ts b/qaseio/src/generated/model/test-case-query.ts deleted file mode 100644 index 9698de5b..00000000 --- a/qaseio/src/generated/model/test-case-query.ts +++ /dev/null @@ -1,192 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachment } from './attachment'; -import { CustomFieldValue } from './custom-field-value'; -import { TagValue } from './tag-value'; -import { TestCaseParams } from './test-case-params'; -import { TestStep } from './test-step'; - -/** - * - * @export - * @interface TestCaseQuery - */ -export interface TestCaseQuery { - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'test_case_id': number; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'id'?: number; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'position'?: number; - /** - * - * @type {string} - * @memberof TestCaseQuery - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof TestCaseQuery - */ - 'description'?: string | null; - /** - * - * @type {string} - * @memberof TestCaseQuery - */ - 'preconditions'?: string | null; - /** - * - * @type {string} - * @memberof TestCaseQuery - */ - 'postconditions'?: string | null; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'severity'?: number; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'priority'?: number; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'type'?: number; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'layer'?: number; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'is_flaky'?: number; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'behavior'?: number; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'automation'?: number; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'status'?: number; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'milestone_id'?: number | null; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'suite_id'?: number | null; - /** - * - * @type {Array} - * @memberof TestCaseQuery - */ - 'custom_fields'?: Array; - /** - * - * @type {Array} - * @memberof TestCaseQuery - */ - 'attachments'?: Array; - /** - * - * @type {string} - * @memberof TestCaseQuery - */ - 'steps_type'?: string | null; - /** - * - * @type {Array} - * @memberof TestCaseQuery - */ - 'steps'?: Array; - /** - * - * @type {TestCaseParams} - * @memberof TestCaseQuery - */ - 'params'?: TestCaseParams; - /** - * - * @type {Array} - * @memberof TestCaseQuery - */ - 'tags'?: Array; - /** - * Deprecated, use `author_id` instead. - * @type {number} - * @memberof TestCaseQuery - * @deprecated - */ - 'member_id'?: number; - /** - * - * @type {number} - * @memberof TestCaseQuery - */ - 'author_id'?: number; - /** - * - * @type {string} - * @memberof TestCaseQuery - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof TestCaseQuery - */ - 'updated_at'?: string; -} - diff --git a/qaseio/src/generated/model/test-case-response-all-of.ts b/qaseio/src/generated/model/test-case-response-all-of.ts deleted file mode 100644 index 67ffd334..00000000 --- a/qaseio/src/generated/model/test-case-response-all-of.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { TestCase } from './test-case'; - -/** - * - * @export - * @interface TestCaseResponseAllOf - */ -export interface TestCaseResponseAllOf { - /** - * - * @type {TestCase} - * @memberof TestCaseResponseAllOf - */ - 'result'?: TestCase; -} - diff --git a/qaseio/src/generated/model/test-case-response.ts b/qaseio/src/generated/model/test-case-response.ts deleted file mode 100644 index 4e9ca596..00000000 --- a/qaseio/src/generated/model/test-case-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { BaseResponse } from './base-response'; -import { TestCase } from './test-case'; -import { TestCaseResponseAllOf } from './test-case-response-all-of'; - -/** - * @type TestCaseResponse - * @export - */ -export type TestCaseResponse = BaseResponse & TestCaseResponseAllOf; - - diff --git a/qaseio/src/generated/model/test-case-update.ts b/qaseio/src/generated/model/test-case-update.ts deleted file mode 100644 index f70d5948..00000000 --- a/qaseio/src/generated/model/test-case-update.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { TestStepCreate } from './test-step-create'; - -/** - * - * @export - * @interface TestCaseUpdate - */ -export interface TestCaseUpdate { - /** - * - * @type {string} - * @memberof TestCaseUpdate - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof TestCaseUpdate - */ - 'preconditions'?: string; - /** - * - * @type {string} - * @memberof TestCaseUpdate - */ - 'postconditions'?: string; - /** - * - * @type {string} - * @memberof TestCaseUpdate - */ - 'title'?: string; - /** - * - * @type {number} - * @memberof TestCaseUpdate - */ - 'severity'?: number; - /** - * - * @type {number} - * @memberof TestCaseUpdate - */ - 'priority'?: number; - /** - * - * @type {number} - * @memberof TestCaseUpdate - */ - 'behavior'?: number; - /** - * - * @type {number} - * @memberof TestCaseUpdate - */ - 'type'?: number; - /** - * - * @type {number} - * @memberof TestCaseUpdate - */ - 'layer'?: number; - /** - * - * @type {number} - * @memberof TestCaseUpdate - */ - 'is_flaky'?: number; - /** - * - * @type {number} - * @memberof TestCaseUpdate - */ - 'suite_id'?: number; - /** - * - * @type {number} - * @memberof TestCaseUpdate - */ - 'milestone_id'?: number; - /** - * - * @type {number} - * @memberof TestCaseUpdate - */ - 'automation'?: number; - /** - * - * @type {number} - * @memberof TestCaseUpdate - */ - 'status'?: number; - /** - * A list of Attachment hashes. - * @type {Array} - * @memberof TestCaseUpdate - */ - 'attachments'?: Array; - /** - * - * @type {Array} - * @memberof TestCaseUpdate - */ - 'steps'?: Array; - /** - * - * @type {Array} - * @memberof TestCaseUpdate - */ - 'tags'?: Array; - /** - * - * @type {{ [key: string]: Array; }} - * @memberof TestCaseUpdate - */ - 'params'?: { [key: string]: Array; } | null; - /** - * A map of custom fields values (id => value) - * @type {{ [key: string]: string; }} - * @memberof TestCaseUpdate - */ - 'custom_field'?: { [key: string]: string; }; -} - diff --git a/qaseio/src/generated/model/test-case.ts b/qaseio/src/generated/model/test-case.ts deleted file mode 100644 index 564d328b..00000000 --- a/qaseio/src/generated/model/test-case.ts +++ /dev/null @@ -1,214 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachment } from './attachment'; -import { CustomFieldValue } from './custom-field-value'; -import { ExternalIssue } from './external-issue'; -import { TagValue } from './tag-value'; -import { TestCaseParams } from './test-case-params'; -import { TestStep } from './test-step'; - -/** - * - * @export - * @interface TestCase - */ -export interface TestCase { - /** - * - * @type {number} - * @memberof TestCase - */ - 'id'?: number; - /** - * - * @type {number} - * @memberof TestCase - */ - 'position'?: number; - /** - * - * @type {string} - * @memberof TestCase - */ - 'title'?: string; - /** - * - * @type {string} - * @memberof TestCase - */ - 'description'?: string | null; - /** - * - * @type {string} - * @memberof TestCase - */ - 'preconditions'?: string | null; - /** - * - * @type {string} - * @memberof TestCase - */ - 'postconditions'?: string | null; - /** - * - * @type {number} - * @memberof TestCase - */ - 'severity'?: number; - /** - * - * @type {number} - * @memberof TestCase - */ - 'priority'?: number; - /** - * - * @type {number} - * @memberof TestCase - */ - 'type'?: number; - /** - * - * @type {number} - * @memberof TestCase - */ - 'layer'?: number; - /** - * - * @type {number} - * @memberof TestCase - */ - 'is_flaky'?: number; - /** - * - * @type {number} - * @memberof TestCase - */ - 'behavior'?: number; - /** - * - * @type {number} - * @memberof TestCase - */ - 'automation'?: number; - /** - * - * @type {number} - * @memberof TestCase - */ - 'status'?: number; - /** - * - * @type {number} - * @memberof TestCase - */ - 'milestone_id'?: number | null; - /** - * - * @type {number} - * @memberof TestCase - */ - 'suite_id'?: number | null; - /** - * - * @type {Array} - * @memberof TestCase - */ - 'custom_fields'?: Array; - /** - * - * @type {Array} - * @memberof TestCase - */ - 'attachments'?: Array; - /** - * - * @type {string} - * @memberof TestCase - */ - 'steps_type'?: string | null; - /** - * - * @type {Array} - * @memberof TestCase - */ - 'steps'?: Array; - /** - * - * @type {TestCaseParams} - * @memberof TestCase - */ - 'params'?: TestCaseParams; - /** - * - * @type {Array} - * @memberof TestCase - */ - 'tags'?: Array; - /** - * Deprecated, use `author_id` instead. - * @type {number} - * @memberof TestCase - * @deprecated - */ - 'member_id'?: number; - /** - * - * @type {number} - * @memberof TestCase - */ - 'author_id'?: number; - /** - * - * @type {string} - * @memberof TestCase - */ - 'created_at'?: string; - /** - * - * @type {string} - * @memberof TestCase - */ - 'updated_at'?: string; - /** - * - * @type {string} - * @memberof TestCase - * @deprecated - */ - 'deleted'?: string | null; - /** - * Deprecated, use the `created_at` property instead. - * @type {string} - * @memberof TestCase - * @deprecated - */ - 'created'?: string; - /** - * Deprecated, use the `updated_at` property instead. - * @type {string} - * @memberof TestCase - * @deprecated - */ - 'updated'?: string; - /** - * - * @type {Array} - * @memberof TestCase - */ - 'external_issues'?: Array; -} - diff --git a/qaseio/src/generated/model/test-casebulk-cases-inner-all-of.ts b/qaseio/src/generated/model/test-casebulk-cases-inner-all-of.ts deleted file mode 100644 index 6232d6d4..00000000 --- a/qaseio/src/generated/model/test-casebulk-cases-inner-all-of.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 TestCasebulkCasesInnerAllOf - */ -export interface TestCasebulkCasesInnerAllOf { - /** - * - * @type {number} - * @memberof TestCasebulkCasesInnerAllOf - */ - 'id'?: number | null; -} - diff --git a/qaseio/src/generated/model/test-casebulk-cases-inner.ts b/qaseio/src/generated/model/test-casebulk-cases-inner.ts deleted file mode 100644 index 02e0ffee..00000000 --- a/qaseio/src/generated/model/test-casebulk-cases-inner.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { TestCaseCreate } from './test-case-create'; -import { TestCasebulkCasesInnerAllOf } from './test-casebulk-cases-inner-all-of'; -import { TestStepCreate } from './test-step-create'; - -/** - * @type TestCasebulkCasesInner - * @export - */ -export type TestCasebulkCasesInner = TestCaseCreate & TestCasebulkCasesInnerAllOf; - - diff --git a/qaseio/src/generated/model/test-casebulk.ts b/qaseio/src/generated/model/test-casebulk.ts deleted file mode 100644 index e2dc092e..00000000 --- a/qaseio/src/generated/model/test-casebulk.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { TestCasebulkCasesInner } from './test-casebulk-cases-inner'; - -/** - * - * @export - * @interface TestCasebulk - */ -export interface TestCasebulk { - /** - * - * @type {Array} - * @memberof TestCasebulk - */ - 'cases': Array; -} - diff --git a/qaseio/src/generated/model/test-caseexternal-issues.ts b/qaseio/src/generated/model/test-caseexternal-issues.ts deleted file mode 100644 index 92095ac6..00000000 --- a/qaseio/src/generated/model/test-caseexternal-issues.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { TestCaseExternalIssuesLinksInner } from './test-case-external-issues-links-inner'; - -/** - * - * @export - * @interface TestCaseexternalIssues - */ -export interface TestCaseexternalIssues { - /** - * - * @type {string} - * @memberof TestCaseexternalIssues - */ - 'type': TestCaseexternalIssuesTypeEnum; - /** - * - * @type {Array} - * @memberof TestCaseexternalIssues - */ - 'links': Array; -} - -/** - * @export - * @enum {string} - */ -export enum TestCaseexternalIssuesTypeEnum { - CLOUD = 'jira-cloud', - SERVER = 'jira-server' -} - - diff --git a/qaseio/src/generated/model/test-step-create.ts b/qaseio/src/generated/model/test-step-create.ts deleted file mode 100644 index 4faa5ea9..00000000 --- a/qaseio/src/generated/model/test-step-create.ts +++ /dev/null @@ -1,61 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 TestStepCreate - */ -export interface TestStepCreate { - /** - * - * @type {string} - * @memberof TestStepCreate - */ - 'action'?: string; - /** - * - * @type {string} - * @memberof TestStepCreate - */ - 'expected_result'?: string; - /** - * - * @type {string} - * @memberof TestStepCreate - */ - 'data'?: string; - /** - * - * @type {number} - * @memberof TestStepCreate - * @deprecated - */ - 'position'?: number; - /** - * A list of Attachment hashes. - * @type {Array} - * @memberof TestStepCreate - */ - 'attachments'?: Array; - /** - * Nested steps may be passed here. Use same structure for them. - * @type {Array} - * @memberof TestStepCreate - */ - 'steps'?: Array; -} - diff --git a/qaseio/src/generated/model/test-step-result-create.ts b/qaseio/src/generated/model/test-step-result-create.ts deleted file mode 100644 index efd8b085..00000000 --- a/qaseio/src/generated/model/test-step-result-create.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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 TestStepResultCreate - */ -export interface TestStepResultCreate { - /** - * - * @type {string} - * @memberof TestStepResultCreate - */ - 'status': TestStepResultCreateStatusEnum; - /** - * - * @type {number} - * @memberof TestStepResultCreate - * @deprecated - */ - 'position'?: number; - /** - * - * @type {string} - * @memberof TestStepResultCreate - */ - 'comment'?: string | null; - /** - * - * @type {Array} - * @memberof TestStepResultCreate - */ - 'attachments'?: Array | null; - /** - * - * @type {string} - * @memberof TestStepResultCreate - */ - 'action'?: string; - /** - * - * @type {string} - * @memberof TestStepResultCreate - */ - 'expected_result'?: string | null; - /** - * - * @type {string} - * @memberof TestStepResultCreate - */ - 'data'?: string | null; - /** - * Nested steps results may be passed here. Use same structure for them. - * @type {Array} - * @memberof TestStepResultCreate - */ - 'steps'?: Array; -} - -/** - * @export - * @enum {string} - */ -export enum TestStepResultCreateStatusEnum { - PASSED = 'passed', - FAILED = 'failed', - BLOCKED = 'blocked' -} - - diff --git a/qaseio/src/generated/model/test-step-result.ts b/qaseio/src/generated/model/test-step-result.ts deleted file mode 100644 index 1e8b8d80..00000000 --- a/qaseio/src/generated/model/test-step-result.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachment } from './attachment'; - -/** - * - * @export - * @interface TestStepResult - */ -export interface TestStepResult { - /** - * - * @type {number} - * @memberof TestStepResult - */ - 'status'?: number; - /** - * - * @type {number} - * @memberof TestStepResult - * @deprecated - */ - 'position'?: number; - /** - * - * @type {Array} - * @memberof TestStepResult - */ - 'attachments'?: Array; - /** - * Nested steps results will be here. The same structure is used for them for them. - * @type {Array} - * @memberof TestStepResult - */ - 'steps'?: Array; -} - diff --git a/qaseio/src/generated/model/test-step.ts b/qaseio/src/generated/model/test-step.ts deleted file mode 100644 index a8885338..00000000 --- a/qaseio/src/generated/model/test-step.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Qase.io TestOps API v1 - * Qase TestOps API v1 Specification. - * - * The version of the OpenAPI document: 1.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. - */ - - -import { Attachment } from './attachment'; - -/** - * - * @export - * @interface TestStep - */ -export interface TestStep { - /** - * - * @type {string} - * @memberof TestStep - * @deprecated - */ - 'hash'?: string; - /** - * - * @type {string} - * @memberof TestStep - */ - 'shared_step_hash'?: string | null; - /** - * - * @type {string} - * @memberof TestStep - */ - 'shared_step_nested_hash'?: string | null; - /** - * - * @type {number} - * @memberof TestStep - * @deprecated - */ - 'position'?: number; - /** - * - * @type {string} - * @memberof TestStep - */ - 'action'?: string; - /** - * - * @type {string} - * @memberof TestStep - */ - 'expected_result'?: string | null; - /** - * - * @type {string} - * @memberof TestStep - */ - 'data'?: string | null; - /** - * - * @type {Array} - * @memberof TestStep - */ - 'attachments'?: Array; - /** - * Nested steps will be here. The same structure is used for them. - * @type {Array} - * @memberof TestStep - */ - 'steps'?: Array; -} - diff --git a/qaseio/src/index.ts b/qaseio/src/index.ts deleted file mode 100644 index e69a3232..00000000 --- a/qaseio/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './generated'; - -export { QaseApi } from './qaseio'; -export type { QaseApiInterface } from './qaseio'; diff --git a/qaseio/src/qaseio.ts b/qaseio/src/qaseio.ts deleted file mode 100644 index 7b203e17..00000000 --- a/qaseio/src/qaseio.ts +++ /dev/null @@ -1,134 +0,0 @@ -import axios from 'axios'; -import axiosRetry from 'axios-retry'; - -import { - ProjectsApi, - CasesApi, - ResultApi, - ResultsApi, - RunsApi, - AttachmentsApi, - PlansApi, - SuitesApi, - MilestonesApi, - SharedStepsApi, - DefectsApi, - CustomFieldsApi, - AuthorsApi, - Configuration, - EnvironmentsApi, - SearchApi, -} from './generated'; - -export interface QaseApiOptionsType { - token: string; - host?: string | undefined; - headers?: Record | undefined; - retries?: number | undefined; - retryDelay?: number | undefined; -} - -export interface QaseApiInterface { - projects: ProjectsApi; - cases: CasesApi; - result: ResultApi; - results: ResultsApi; - runs: RunsApi; - attachments: AttachmentsApi; - plans: PlansApi; - suites: SuitesApi; - milestones: MilestonesApi; - sharedSteps: SharedStepsApi; - defects: DefectsApi; - customFields: CustomFieldsApi; - authors: AuthorsApi; - environment: EnvironmentsApi; - search: SearchApi; -} - -/** - * @class QaseApi - * @implements QaseApiInterface - */ -export class QaseApi implements QaseApiInterface { - public projects: ProjectsApi; - public cases: CasesApi; - public result: ResultApi; - public results: ResultsApi; - public runs: RunsApi; - public attachments: AttachmentsApi; - public plans: PlansApi; - public suites: SuitesApi; - public milestones: MilestonesApi; - public sharedSteps: SharedStepsApi; - public defects: DefectsApi; - public customFields: CustomFieldsApi; - public authors: AuthorsApi; - public environment: EnvironmentsApi; - public search: SearchApi; - - /** - * @param {QaseApiOptionsType} options - * @param {{new(): unknown}} formDataCtor - */ - public constructor( - options: QaseApiOptionsType, - formDataCtor?: new () => unknown, - ) { - const { - token, - host, - headers, - retries = 3, - retryDelay = 0, - } = options; - - const transport = axios.create({ - headers, - maxBodyLength: Infinity, - maxContentLength: Infinity, - }); - - axiosRetry(transport, { - retries, - retryDelay: () => retryDelay, - // eslint-disable-next-line @typescript-eslint/unbound-method - retryCondition: axiosRetry.isIdempotentRequestError, - }); - - const configuration = new Configuration({ - apiKey: token, - formDataCtor, - }); - - // default path is https://api.qase.io, defined in - // qaseio/src/generated/base.ts - if (host != undefined) { - if (host == 'qase.io' || host == 'api.qase.io' || host == 'https://api.qase.io') { - configuration.basePath = `https://api.qase.io`; - } else if (host == 'http://api.qase.lo') { - // Qase on local machine, development mode - configuration.basePath = host - } else { - // Custom Qase host - configuration.basePath = `https://${host}`; - } - } - - this.projects = new ProjectsApi(configuration, host, transport); - this.cases = new CasesApi(configuration, host, transport); - this.result = new ResultApi(configuration, host, transport); - this.results = new ResultsApi(configuration, host, transport); - this.runs = new RunsApi(configuration, host, transport); - this.attachments = new AttachmentsApi(configuration, host, transport); - this.plans = new PlansApi(configuration, host, transport); - this.suites = new SuitesApi(configuration, host, transport); - this.milestones = new MilestonesApi(configuration, host, transport); - this.sharedSteps = new SharedStepsApi(configuration, host, transport); - this.defects = new DefectsApi(configuration, host, transport); - this.customFields = new CustomFieldsApi(configuration, host, transport); - this.authors = new AuthorsApi(configuration, host, transport); - this.environment = new EnvironmentsApi(configuration, host, transport); - this.search = new SearchApi(configuration, host, transport); - } -} diff --git a/qaseio/test/qaseio.test.ts b/qaseio/test/qaseio.test.ts deleted file mode 100644 index 0b325bf7..00000000 --- a/qaseio/test/qaseio.test.ts +++ /dev/null @@ -1,178 +0,0 @@ -import { jest, describe, beforeEach, it, expect } from '@jest/globals'; - -import { - QaseApi, - ProjectsApi, - CasesApi, - ResultApi, - ResultsApi, - RunsApi, - AttachmentsApi, - PlansApi, - SuitesApi, - MilestonesApi, - SharedStepsApi, - DefectsApi, - CustomFieldsApi, - AuthorsApi, -} from '../src'; - -jest.mock('../src/generated/api'); - -describe('Client', () => { - const ProjectsApiMock = jest.mocked(ProjectsApi); - const CasesApiMock = jest.mocked(CasesApi); - const ResultApiMock = jest.mocked(ResultApi); - const ResultsApiMock = jest.mocked(ResultsApi); - const RunsApiMock = jest.mocked(RunsApi); - const AttachmentsApiMock = jest.mocked(AttachmentsApi); - const PlansApiMock = jest.mocked(PlansApi); - const SuitesApiMock = jest.mocked(SuitesApi); - const MilestonesApiMock = jest.mocked(MilestonesApi); - const SharedStepsApiMock = jest.mocked(SharedStepsApi); - const DefectsApiMock = jest.mocked(DefectsApi); - const CustomFieldsApiMock = jest.mocked(CustomFieldsApi); - const AuthorsApiMock = jest.mocked(AuthorsApi); - - beforeEach(() => { - jest.clearAllMocks(); - }); - - it('Init client', () => { - const apiToken = '123'; - - const headers = { - 'X-Foo': 'Foo', - 'X-Bar': 'Bar', - }; - - const FormData = jest.fn(); - - new QaseApi({ - token: apiToken, - headers, - }, FormData); - - const expectedConfiguration = { - apiKey: apiToken, - formDataCtor: FormData, - }; - - const expectedHeaders = expect.objectContaining(headers); - - expect(ProjectsApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(ProjectsApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(ProjectsApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(CasesApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(CasesApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(CasesApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(ResultApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(ResultApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(ResultApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(ResultsApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(ResultsApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(ResultsApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(RunsApiMock.mock.calls[0]?.[0]).toMatchObject(expectedConfiguration); - expect(RunsApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(RunsApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(AttachmentsApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(AttachmentsApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(AttachmentsApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(PlansApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(PlansApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(PlansApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(SuitesApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(SuitesApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(SuitesApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(MilestonesApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(MilestonesApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(MilestonesApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(SharedStepsApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(SharedStepsApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(SharedStepsApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(DefectsApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(DefectsApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(DefectsApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(CustomFieldsApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(CustomFieldsApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(CustomFieldsApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - - expect(AuthorsApiMock.mock.calls[0]?.[0]).toMatchObject( - expectedConfiguration, - ); - expect(AuthorsApiMock.mock.calls[0]?.[1]).toBeUndefined(); - expect(AuthorsApiMock.mock.calls[0]?.[2]).toHaveProperty( - 'defaults.headers', - expectedHeaders, - ); - }); -}); diff --git a/qaseio/tsconfig.build.json b/qaseio/tsconfig.build.json deleted file mode 100644 index 1286eee7..00000000 --- a/qaseio/tsconfig.build.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "./tsconfig.json", - - "compilerOptions": { - "noEmit": false, - "skipLibCheck": true, - "types": [] - }, - - "include": ["./src/**/*.ts"] -} diff --git a/qaseio/tsconfig.json b/qaseio/tsconfig.json deleted file mode 100644 index 05ae2e7d..00000000 --- a/qaseio/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "es6", - "module": "commonjs", - "outDir": "dist", - "declaration": true, - "skipLibCheck": true, - "noImplicitAny": true, - "noEmit": true, - "noEmitOnError": true, - "isolatedModules": true, - - "typeRoots": ["node_modules/@types"] - }, - - "exclude": ["dist", "node_modules"] -}