diff --git a/qaseio/changelog.md b/qaseio/changelog.md index 27fedd70..6e9ce670 100644 --- a/qaseio/changelog.md +++ b/qaseio/changelog.md @@ -1,3 +1,9 @@ +# qaseio@2.1.6 + +## 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 diff --git a/qaseio/package.json b/qaseio/package.json index af5dab7b..a39af058 100644 --- a/qaseio/package.json +++ b/qaseio/package.json @@ -1,6 +1,6 @@ { "name": "qaseio", - "version": "2.1.5", + "version": "2.1.6", "description": "Qase TMS Javascript API Client", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/qaseio/src/generated/api/environments-api.ts b/qaseio/src/generated/api/environments-api.ts index 23430aab..6907d933 100644 --- a/qaseio/src/generated/api/environments-api.ts +++ b/qaseio/src/generated/api/environments-api.ts @@ -165,12 +165,14 @@ export const EnvironmentsApiAxiosParamCreator = function (configuration?: Config * 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, limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { + 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}` @@ -189,6 +191,14 @@ export const EnvironmentsApiAxiosParamCreator = function (configuration?: Config // 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; } @@ -305,13 +315,15 @@ export const EnvironmentsApiFp = function(configuration?: 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, limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironments(code, limit, offset, options); + 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); }, /** @@ -374,13 +386,15 @@ export const EnvironmentsApiFactory = function (configuration?: Configuration, b * 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, limit?: number, offset?: number, options?: any): AxiosPromise { - return localVarFp.getEnvironments(code, limit, offset, options).then((request) => request(axios, basePath)); + 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. @@ -447,14 +461,16 @@ export class EnvironmentsApi extends BaseAPI { * 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, limit?: number, offset?: number, options?: AxiosRequestConfig) { - return EnvironmentsApiFp(this.configuration).getEnvironments(code, limit, offset, options).then((request) => request(this.axios, this.basePath)); + 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)); } /** diff --git a/qaseio/src/generated/model/run-create.ts b/qaseio/src/generated/model/run-create.ts index ef8dafea..30ac57d8 100644 --- a/qaseio/src/generated/model/run-create.ts +++ b/qaseio/src/generated/model/run-create.ts @@ -57,7 +57,13 @@ export interface RunCreate { */ 'environment_id'?: number; /** - * + * + * @type {string} + * @memberof RunCreate + */ + 'environment_slug'?: string; + /** + * * @type {number} * @memberof RunCreate */ diff --git a/qaseio/src/generated/model/run.ts b/qaseio/src/generated/model/run.ts index 3f74b459..5e7968fb 100644 --- a/qaseio/src/generated/model/run.ts +++ b/qaseio/src/generated/model/run.ts @@ -115,5 +115,11 @@ export interface Run { * @memberof Run */ 'cases'?: Array; + /** + * + * @type {number} + * @memberof Run + */ + 'plan_id'?: number | null; }