@emilgroup/task-sdk-node 1.0.1-beta.4 → 1.0.1-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -6
- package/README.md +2 -2
- package/api/categories-api.ts +36 -50
- package/api/statuses-api.ts +36 -50
- package/api/tasks-api.ts +79 -51
- package/dist/api/categories-api.d.ts +25 -34
- package/dist/api/categories-api.js +26 -32
- package/dist/api/statuses-api.d.ts +25 -34
- package/dist/api/statuses-api.js +26 -32
- package/dist/api/tasks-api.d.ts +54 -36
- package/dist/api/tasks-api.js +47 -35
- package/dist/models/index.d.ts +6 -6
- package/dist/models/index.js +6 -6
- package/dist/models/{update-category-request-dto.d.ts → patch-category-request-dto.d.ts} +7 -7
- package/dist/models/{update-category-response-class.d.ts → patch-category-response-class.d.ts} +3 -3
- package/dist/models/{update-status-request-dto.d.ts → patch-status-request-dto.d.ts} +7 -7
- package/dist/models/{update-status-response-class.d.ts → patch-status-response-class.d.ts} +3 -3
- package/dist/models/patch-task-request-dto.d.ts +108 -0
- package/dist/models/{update-task-response-class.d.ts → patch-task-response-class.d.ts} +3 -3
- package/models/index.ts +6 -6
- package/models/{update-category-request-dto.ts → patch-category-request-dto.ts} +7 -7
- package/models/{update-category-response-class.ts → patch-category-response-class.ts} +3 -3
- package/models/{update-status-request-dto.ts → patch-status-request-dto.ts} +7 -7
- package/models/{update-status-response-class.ts → patch-status-response-class.ts} +3 -3
- package/models/patch-task-request-dto.ts +114 -0
- package/models/{update-task-response-class.ts → patch-task-response-class.ts} +3 -3
- package/package.json +1 -1
- package/dist/models/update-task-request-dto.d.ts +0 -72
- package/models/update-task-request-dto.ts +0 -78
- /package/dist/models/{update-category-request-dto.js → patch-category-request-dto.js} +0 -0
- /package/dist/models/{update-category-response-class.js → patch-category-response-class.js} +0 -0
- /package/dist/models/{update-status-request-dto.js → patch-status-request-dto.js} +0 -0
- /package/dist/models/{update-status-response-class.js → patch-status-response-class.js} +0 -0
- /package/dist/models/{update-task-request-dto.js → patch-task-request-dto.js} +0 -0
- /package/dist/models/{update-task-response-class.js → patch-task-response-class.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -34,13 +34,13 @@ models/inline-response503.ts
|
|
|
34
34
|
models/list-categories-response-class.ts
|
|
35
35
|
models/list-statuses-response-class.ts
|
|
36
36
|
models/list-tasks-response-class.ts
|
|
37
|
+
models/patch-category-request-dto.ts
|
|
38
|
+
models/patch-category-response-class.ts
|
|
39
|
+
models/patch-status-request-dto.ts
|
|
40
|
+
models/patch-status-response-class.ts
|
|
41
|
+
models/patch-task-request-dto.ts
|
|
42
|
+
models/patch-task-response-class.ts
|
|
37
43
|
models/status-class.ts
|
|
38
44
|
models/task-class.ts
|
|
39
|
-
models/update-category-request-dto.ts
|
|
40
|
-
models/update-category-response-class.ts
|
|
41
|
-
models/update-status-request-dto.ts
|
|
42
|
-
models/update-status-response-class.ts
|
|
43
|
-
models/update-task-request-dto.ts
|
|
44
|
-
models/update-task-response-class.ts
|
|
45
45
|
package.json
|
|
46
46
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/task-sdk-node@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/task-sdk-node@1.0.1-beta.6 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/task-sdk-node@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/task-sdk-node@1.0.1-beta.6
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `TasksApi`.
|
package/api/categories-api.ts
CHANGED
|
@@ -29,9 +29,9 @@ import { GetCategoryResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListCategoriesResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { PatchCategoryRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
-
import {
|
|
34
|
+
import { PatchCategoryResponseClass } from '../models';
|
|
35
35
|
// URLSearchParams not necessarily used
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -192,13 +192,12 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
192
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
193
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
194
194
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
195
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, name, slug</i>
|
|
196
195
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
197
196
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
198
197
|
* @param {*} [options] Override http request option.
|
|
199
198
|
* @throws {RequiredError}
|
|
200
199
|
*/
|
|
201
|
-
listCategories: async (authorization?: string, filter?: string, filters?: string,
|
|
200
|
+
listCategories: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
202
201
|
const localVarPath = `/taskservice/v1/categories`;
|
|
203
202
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
204
203
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -225,10 +224,6 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
225
224
|
localVarQueryParameter['filters'] = filters;
|
|
226
225
|
}
|
|
227
226
|
|
|
228
|
-
if (search !== undefined) {
|
|
229
|
-
localVarQueryParameter['search'] = search;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
227
|
if (order !== undefined) {
|
|
233
228
|
localVarQueryParameter['order'] = order;
|
|
234
229
|
}
|
|
@@ -253,19 +248,19 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
253
248
|
};
|
|
254
249
|
},
|
|
255
250
|
/**
|
|
256
|
-
* This will update category.
|
|
251
|
+
* This will partially update a category by code with the provided fields.
|
|
257
252
|
* @summary Update the category
|
|
258
253
|
* @param {string} code
|
|
259
|
-
* @param {
|
|
254
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
260
255
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
261
256
|
* @param {*} [options] Override http request option.
|
|
262
257
|
* @throws {RequiredError}
|
|
263
258
|
*/
|
|
264
|
-
|
|
259
|
+
patchCategory: async (code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
265
260
|
// verify required parameter 'code' is not null or undefined
|
|
266
|
-
assertParamExists('
|
|
267
|
-
// verify required parameter '
|
|
268
|
-
assertParamExists('
|
|
261
|
+
assertParamExists('patchCategory', 'code', code)
|
|
262
|
+
// verify required parameter 'patchCategoryRequestDto' is not null or undefined
|
|
263
|
+
assertParamExists('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto)
|
|
269
264
|
const localVarPath = `/taskservice/v1/categories/{code}`
|
|
270
265
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
271
266
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -277,7 +272,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
277
272
|
baseAccessToken = configuration.accessToken;
|
|
278
273
|
}
|
|
279
274
|
|
|
280
|
-
const localVarRequestOptions = { method: '
|
|
275
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
281
276
|
const localVarHeaderParameter = {} as any;
|
|
282
277
|
const localVarQueryParameter = {} as any;
|
|
283
278
|
|
|
@@ -296,7 +291,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
296
291
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
292
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
293
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
294
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchCategoryRequestDto, localVarRequestOptions, configuration)
|
|
300
295
|
|
|
301
296
|
return {
|
|
302
297
|
url: toPathString(localVarUrlObj),
|
|
@@ -356,27 +351,26 @@ export const CategoriesApiFp = function(configuration?: Configuration) {
|
|
|
356
351
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
357
352
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
358
353
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
359
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, name, slug</i>
|
|
360
354
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
361
355
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
362
356
|
* @param {*} [options] Override http request option.
|
|
363
357
|
* @throws {RequiredError}
|
|
364
358
|
*/
|
|
365
|
-
async listCategories(authorization?: string, filter?: string, filters?: string,
|
|
366
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization, filter, filters,
|
|
359
|
+
async listCategories(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>> {
|
|
360
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization, filter, filters, order, expand, options);
|
|
367
361
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
362
|
},
|
|
369
363
|
/**
|
|
370
|
-
* This will update category.
|
|
364
|
+
* This will partially update a category by code with the provided fields.
|
|
371
365
|
* @summary Update the category
|
|
372
366
|
* @param {string} code
|
|
373
|
-
* @param {
|
|
367
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
374
368
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
375
369
|
* @param {*} [options] Override http request option.
|
|
376
370
|
* @throws {RequiredError}
|
|
377
371
|
*/
|
|
378
|
-
async
|
|
379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
372
|
+
async patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCategoryResponseClass>> {
|
|
373
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options);
|
|
380
374
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
375
|
},
|
|
382
376
|
}
|
|
@@ -429,26 +423,25 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas
|
|
|
429
423
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
430
424
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
431
425
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
432
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, name, slug</i>
|
|
433
426
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
434
427
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
435
428
|
* @param {*} [options] Override http request option.
|
|
436
429
|
* @throws {RequiredError}
|
|
437
430
|
*/
|
|
438
|
-
listCategories(authorization?: string, filter?: string, filters?: string,
|
|
439
|
-
return localVarFp.listCategories(authorization, filter, filters,
|
|
431
|
+
listCategories(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCategoriesResponseClass> {
|
|
432
|
+
return localVarFp.listCategories(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
440
433
|
},
|
|
441
434
|
/**
|
|
442
|
-
* This will update category.
|
|
435
|
+
* This will partially update a category by code with the provided fields.
|
|
443
436
|
* @summary Update the category
|
|
444
437
|
* @param {string} code
|
|
445
|
-
* @param {
|
|
438
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
446
439
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
440
|
* @param {*} [options] Override http request option.
|
|
448
441
|
* @throws {RequiredError}
|
|
449
442
|
*/
|
|
450
|
-
|
|
451
|
-
return localVarFp.
|
|
443
|
+
patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCategoryResponseClass> {
|
|
444
|
+
return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
452
445
|
},
|
|
453
446
|
};
|
|
454
447
|
};
|
|
@@ -550,13 +543,6 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
550
543
|
*/
|
|
551
544
|
readonly filters?: string
|
|
552
545
|
|
|
553
|
-
/**
|
|
554
|
-
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, name, slug</i>
|
|
555
|
-
* @type {string}
|
|
556
|
-
* @memberof CategoriesApiListCategories
|
|
557
|
-
*/
|
|
558
|
-
readonly search?: string
|
|
559
|
-
|
|
560
546
|
/**
|
|
561
547
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
562
548
|
* @type {string}
|
|
@@ -573,29 +559,29 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
573
559
|
}
|
|
574
560
|
|
|
575
561
|
/**
|
|
576
|
-
* Request parameters for
|
|
562
|
+
* Request parameters for patchCategory operation in CategoriesApi.
|
|
577
563
|
* @export
|
|
578
|
-
* @interface
|
|
564
|
+
* @interface CategoriesApiPatchCategoryRequest
|
|
579
565
|
*/
|
|
580
|
-
export interface
|
|
566
|
+
export interface CategoriesApiPatchCategoryRequest {
|
|
581
567
|
/**
|
|
582
568
|
*
|
|
583
569
|
* @type {string}
|
|
584
|
-
* @memberof
|
|
570
|
+
* @memberof CategoriesApiPatchCategory
|
|
585
571
|
*/
|
|
586
572
|
readonly code: string
|
|
587
573
|
|
|
588
574
|
/**
|
|
589
575
|
*
|
|
590
|
-
* @type {
|
|
591
|
-
* @memberof
|
|
576
|
+
* @type {PatchCategoryRequestDto}
|
|
577
|
+
* @memberof CategoriesApiPatchCategory
|
|
592
578
|
*/
|
|
593
|
-
readonly
|
|
579
|
+
readonly patchCategoryRequestDto: PatchCategoryRequestDto
|
|
594
580
|
|
|
595
581
|
/**
|
|
596
582
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
597
583
|
* @type {string}
|
|
598
|
-
* @memberof
|
|
584
|
+
* @memberof CategoriesApiPatchCategory
|
|
599
585
|
*/
|
|
600
586
|
readonly authorization?: string
|
|
601
587
|
}
|
|
@@ -652,18 +638,18 @@ export class CategoriesApi extends BaseAPI {
|
|
|
652
638
|
* @memberof CategoriesApi
|
|
653
639
|
*/
|
|
654
640
|
public listCategories(requestParameters: CategoriesApiListCategoriesRequest = {}, options?: AxiosRequestConfig) {
|
|
655
|
-
return CategoriesApiFp(this.configuration).listCategories(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.
|
|
641
|
+
return CategoriesApiFp(this.configuration).listCategories(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
656
642
|
}
|
|
657
643
|
|
|
658
644
|
/**
|
|
659
|
-
* This will update category.
|
|
645
|
+
* This will partially update a category by code with the provided fields.
|
|
660
646
|
* @summary Update the category
|
|
661
|
-
* @param {
|
|
647
|
+
* @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
|
|
662
648
|
* @param {*} [options] Override http request option.
|
|
663
649
|
* @throws {RequiredError}
|
|
664
650
|
* @memberof CategoriesApi
|
|
665
651
|
*/
|
|
666
|
-
public
|
|
667
|
-
return CategoriesApiFp(this.configuration).
|
|
652
|
+
public patchCategory(requestParameters: CategoriesApiPatchCategoryRequest, options?: AxiosRequestConfig) {
|
|
653
|
+
return CategoriesApiFp(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
654
|
}
|
|
669
655
|
}
|
package/api/statuses-api.ts
CHANGED
|
@@ -29,9 +29,9 @@ import { GetStatusResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListStatusesResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { PatchStatusRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
-
import {
|
|
34
|
+
import { PatchStatusResponseClass } from '../models';
|
|
35
35
|
// URLSearchParams not necessarily used
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -192,13 +192,12 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
192
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
193
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
194
194
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
195
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, name, slug</i>
|
|
196
195
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
197
196
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
198
197
|
* @param {*} [options] Override http request option.
|
|
199
198
|
* @throws {RequiredError}
|
|
200
199
|
*/
|
|
201
|
-
listStatuses: async (authorization?: string, filter?: string, filters?: string,
|
|
200
|
+
listStatuses: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
202
201
|
const localVarPath = `/taskservice/v1/statuses`;
|
|
203
202
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
204
203
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -225,10 +224,6 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
225
224
|
localVarQueryParameter['filters'] = filters;
|
|
226
225
|
}
|
|
227
226
|
|
|
228
|
-
if (search !== undefined) {
|
|
229
|
-
localVarQueryParameter['search'] = search;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
227
|
if (order !== undefined) {
|
|
233
228
|
localVarQueryParameter['order'] = order;
|
|
234
229
|
}
|
|
@@ -253,19 +248,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
253
248
|
};
|
|
254
249
|
},
|
|
255
250
|
/**
|
|
256
|
-
* This will update status.
|
|
251
|
+
* This will partially update a status by code with the provided fields.
|
|
257
252
|
* @summary Update the status
|
|
258
253
|
* @param {string} code
|
|
259
|
-
* @param {
|
|
254
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
260
255
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
261
256
|
* @param {*} [options] Override http request option.
|
|
262
257
|
* @throws {RequiredError}
|
|
263
258
|
*/
|
|
264
|
-
|
|
259
|
+
patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
265
260
|
// verify required parameter 'code' is not null or undefined
|
|
266
|
-
assertParamExists('
|
|
267
|
-
// verify required parameter '
|
|
268
|
-
assertParamExists('
|
|
261
|
+
assertParamExists('patchStatus', 'code', code)
|
|
262
|
+
// verify required parameter 'patchStatusRequestDto' is not null or undefined
|
|
263
|
+
assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
|
|
269
264
|
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
270
265
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
271
266
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -277,7 +272,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
277
272
|
baseAccessToken = configuration.accessToken;
|
|
278
273
|
}
|
|
279
274
|
|
|
280
|
-
const localVarRequestOptions = { method: '
|
|
275
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
281
276
|
const localVarHeaderParameter = {} as any;
|
|
282
277
|
const localVarQueryParameter = {} as any;
|
|
283
278
|
|
|
@@ -296,7 +291,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
296
291
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
292
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
293
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
294
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration)
|
|
300
295
|
|
|
301
296
|
return {
|
|
302
297
|
url: toPathString(localVarUrlObj),
|
|
@@ -356,27 +351,26 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
356
351
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
357
352
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
358
353
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
359
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, name, slug</i>
|
|
360
354
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
361
355
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
362
356
|
* @param {*} [options] Override http request option.
|
|
363
357
|
* @throws {RequiredError}
|
|
364
358
|
*/
|
|
365
|
-
async listStatuses(authorization?: string, filter?: string, filters?: string,
|
|
366
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listStatuses(authorization, filter, filters,
|
|
359
|
+
async listStatuses(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusesResponseClass>> {
|
|
360
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listStatuses(authorization, filter, filters, order, expand, options);
|
|
367
361
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
362
|
},
|
|
369
363
|
/**
|
|
370
|
-
* This will update status.
|
|
364
|
+
* This will partially update a status by code with the provided fields.
|
|
371
365
|
* @summary Update the status
|
|
372
366
|
* @param {string} code
|
|
373
|
-
* @param {
|
|
367
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
374
368
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
375
369
|
* @param {*} [options] Override http request option.
|
|
376
370
|
* @throws {RequiredError}
|
|
377
371
|
*/
|
|
378
|
-
async
|
|
379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
372
|
+
async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> {
|
|
373
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options);
|
|
380
374
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
375
|
},
|
|
382
376
|
}
|
|
@@ -429,26 +423,25 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
429
423
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
430
424
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
431
425
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
432
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, name, slug</i>
|
|
433
426
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
434
427
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
435
428
|
* @param {*} [options] Override http request option.
|
|
436
429
|
* @throws {RequiredError}
|
|
437
430
|
*/
|
|
438
|
-
listStatuses(authorization?: string, filter?: string, filters?: string,
|
|
439
|
-
return localVarFp.listStatuses(authorization, filter, filters,
|
|
431
|
+
listStatuses(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListStatusesResponseClass> {
|
|
432
|
+
return localVarFp.listStatuses(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
440
433
|
},
|
|
441
434
|
/**
|
|
442
|
-
* This will update status.
|
|
435
|
+
* This will partially update a status by code with the provided fields.
|
|
443
436
|
* @summary Update the status
|
|
444
437
|
* @param {string} code
|
|
445
|
-
* @param {
|
|
438
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
446
439
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
440
|
* @param {*} [options] Override http request option.
|
|
448
441
|
* @throws {RequiredError}
|
|
449
442
|
*/
|
|
450
|
-
|
|
451
|
-
return localVarFp.
|
|
443
|
+
patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
|
|
444
|
+
return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
452
445
|
},
|
|
453
446
|
};
|
|
454
447
|
};
|
|
@@ -550,13 +543,6 @@ export interface StatusesApiListStatusesRequest {
|
|
|
550
543
|
*/
|
|
551
544
|
readonly filters?: string
|
|
552
545
|
|
|
553
|
-
/**
|
|
554
|
-
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, name, slug</i>
|
|
555
|
-
* @type {string}
|
|
556
|
-
* @memberof StatusesApiListStatuses
|
|
557
|
-
*/
|
|
558
|
-
readonly search?: string
|
|
559
|
-
|
|
560
546
|
/**
|
|
561
547
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
562
548
|
* @type {string}
|
|
@@ -573,29 +559,29 @@ export interface StatusesApiListStatusesRequest {
|
|
|
573
559
|
}
|
|
574
560
|
|
|
575
561
|
/**
|
|
576
|
-
* Request parameters for
|
|
562
|
+
* Request parameters for patchStatus operation in StatusesApi.
|
|
577
563
|
* @export
|
|
578
|
-
* @interface
|
|
564
|
+
* @interface StatusesApiPatchStatusRequest
|
|
579
565
|
*/
|
|
580
|
-
export interface
|
|
566
|
+
export interface StatusesApiPatchStatusRequest {
|
|
581
567
|
/**
|
|
582
568
|
*
|
|
583
569
|
* @type {string}
|
|
584
|
-
* @memberof
|
|
570
|
+
* @memberof StatusesApiPatchStatus
|
|
585
571
|
*/
|
|
586
572
|
readonly code: string
|
|
587
573
|
|
|
588
574
|
/**
|
|
589
575
|
*
|
|
590
|
-
* @type {
|
|
591
|
-
* @memberof
|
|
576
|
+
* @type {PatchStatusRequestDto}
|
|
577
|
+
* @memberof StatusesApiPatchStatus
|
|
592
578
|
*/
|
|
593
|
-
readonly
|
|
579
|
+
readonly patchStatusRequestDto: PatchStatusRequestDto
|
|
594
580
|
|
|
595
581
|
/**
|
|
596
582
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
597
583
|
* @type {string}
|
|
598
|
-
* @memberof
|
|
584
|
+
* @memberof StatusesApiPatchStatus
|
|
599
585
|
*/
|
|
600
586
|
readonly authorization?: string
|
|
601
587
|
}
|
|
@@ -652,18 +638,18 @@ export class StatusesApi extends BaseAPI {
|
|
|
652
638
|
* @memberof StatusesApi
|
|
653
639
|
*/
|
|
654
640
|
public listStatuses(requestParameters: StatusesApiListStatusesRequest = {}, options?: AxiosRequestConfig) {
|
|
655
|
-
return StatusesApiFp(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.
|
|
641
|
+
return StatusesApiFp(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
656
642
|
}
|
|
657
643
|
|
|
658
644
|
/**
|
|
659
|
-
* This will update status.
|
|
645
|
+
* This will partially update a status by code with the provided fields.
|
|
660
646
|
* @summary Update the status
|
|
661
|
-
* @param {
|
|
647
|
+
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
662
648
|
* @param {*} [options] Override http request option.
|
|
663
649
|
* @throws {RequiredError}
|
|
664
650
|
* @memberof StatusesApi
|
|
665
651
|
*/
|
|
666
|
-
public
|
|
667
|
-
return StatusesApiFp(this.configuration).
|
|
652
|
+
public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) {
|
|
653
|
+
return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
654
|
}
|
|
669
655
|
}
|