@emilgroup/task-sdk 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@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/task-sdk@1.0.1-beta.6 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/task-sdk@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/task-sdk@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
|
/**
|
|
36
36
|
* CategoriesApi - axios parameter creator
|
|
37
37
|
* @export
|
|
@@ -188,13 +188,12 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
188
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
189
|
* @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>
|
|
190
190
|
* @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>
|
|
191
|
-
* @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>
|
|
192
191
|
* @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>
|
|
193
192
|
* @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/>
|
|
194
193
|
* @param {*} [options] Override http request option.
|
|
195
194
|
* @throws {RequiredError}
|
|
196
195
|
*/
|
|
197
|
-
listCategories: async (authorization?: string, filter?: string, filters?: string,
|
|
196
|
+
listCategories: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
198
197
|
const localVarPath = `/taskservice/v1/categories`;
|
|
199
198
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
199
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -221,10 +220,6 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
221
220
|
localVarQueryParameter['filters'] = filters;
|
|
222
221
|
}
|
|
223
222
|
|
|
224
|
-
if (search !== undefined) {
|
|
225
|
-
localVarQueryParameter['search'] = search;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
223
|
if (order !== undefined) {
|
|
229
224
|
localVarQueryParameter['order'] = order;
|
|
230
225
|
}
|
|
@@ -249,19 +244,19 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
249
244
|
};
|
|
250
245
|
},
|
|
251
246
|
/**
|
|
252
|
-
* This will update category.
|
|
247
|
+
* This will partially update a category by code with the provided fields.
|
|
253
248
|
* @summary Update the category
|
|
254
249
|
* @param {string} code
|
|
255
|
-
* @param {
|
|
250
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
256
251
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
252
|
* @param {*} [options] Override http request option.
|
|
258
253
|
* @throws {RequiredError}
|
|
259
254
|
*/
|
|
260
|
-
|
|
255
|
+
patchCategory: async (code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
261
256
|
// verify required parameter 'code' is not null or undefined
|
|
262
|
-
assertParamExists('
|
|
263
|
-
// verify required parameter '
|
|
264
|
-
assertParamExists('
|
|
257
|
+
assertParamExists('patchCategory', 'code', code)
|
|
258
|
+
// verify required parameter 'patchCategoryRequestDto' is not null or undefined
|
|
259
|
+
assertParamExists('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto)
|
|
265
260
|
const localVarPath = `/taskservice/v1/categories/{code}`
|
|
266
261
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
262
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -273,7 +268,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
273
268
|
baseAccessToken = configuration.accessToken;
|
|
274
269
|
}
|
|
275
270
|
|
|
276
|
-
const localVarRequestOptions = { method: '
|
|
271
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
277
272
|
const localVarHeaderParameter = {} as any;
|
|
278
273
|
const localVarQueryParameter = {} as any;
|
|
279
274
|
|
|
@@ -292,7 +287,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
292
287
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
293
288
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
289
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
295
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
290
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchCategoryRequestDto, localVarRequestOptions, configuration)
|
|
296
291
|
|
|
297
292
|
return {
|
|
298
293
|
url: toPathString(localVarUrlObj),
|
|
@@ -352,27 +347,26 @@ export const CategoriesApiFp = function(configuration?: Configuration) {
|
|
|
352
347
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
353
348
|
* @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>
|
|
354
349
|
* @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>
|
|
355
|
-
* @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>
|
|
356
350
|
* @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>
|
|
357
351
|
* @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/>
|
|
358
352
|
* @param {*} [options] Override http request option.
|
|
359
353
|
* @throws {RequiredError}
|
|
360
354
|
*/
|
|
361
|
-
async listCategories(authorization?: string, filter?: string, filters?: string,
|
|
362
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization, filter, filters,
|
|
355
|
+
async listCategories(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>> {
|
|
356
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization, filter, filters, order, expand, options);
|
|
363
357
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
358
|
},
|
|
365
359
|
/**
|
|
366
|
-
* This will update category.
|
|
360
|
+
* This will partially update a category by code with the provided fields.
|
|
367
361
|
* @summary Update the category
|
|
368
362
|
* @param {string} code
|
|
369
|
-
* @param {
|
|
363
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
370
364
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
371
365
|
* @param {*} [options] Override http request option.
|
|
372
366
|
* @throws {RequiredError}
|
|
373
367
|
*/
|
|
374
|
-
async
|
|
375
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
368
|
+
async patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCategoryResponseClass>> {
|
|
369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options);
|
|
376
370
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
377
371
|
},
|
|
378
372
|
}
|
|
@@ -425,26 +419,25 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas
|
|
|
425
419
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
426
420
|
* @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>
|
|
427
421
|
* @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>
|
|
428
|
-
* @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>
|
|
429
422
|
* @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>
|
|
430
423
|
* @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/>
|
|
431
424
|
* @param {*} [options] Override http request option.
|
|
432
425
|
* @throws {RequiredError}
|
|
433
426
|
*/
|
|
434
|
-
listCategories(authorization?: string, filter?: string, filters?: string,
|
|
435
|
-
return localVarFp.listCategories(authorization, filter, filters,
|
|
427
|
+
listCategories(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCategoriesResponseClass> {
|
|
428
|
+
return localVarFp.listCategories(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
436
429
|
},
|
|
437
430
|
/**
|
|
438
|
-
* This will update category.
|
|
431
|
+
* This will partially update a category by code with the provided fields.
|
|
439
432
|
* @summary Update the category
|
|
440
433
|
* @param {string} code
|
|
441
|
-
* @param {
|
|
434
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
442
435
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
443
436
|
* @param {*} [options] Override http request option.
|
|
444
437
|
* @throws {RequiredError}
|
|
445
438
|
*/
|
|
446
|
-
|
|
447
|
-
return localVarFp.
|
|
439
|
+
patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCategoryResponseClass> {
|
|
440
|
+
return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
448
441
|
},
|
|
449
442
|
};
|
|
450
443
|
};
|
|
@@ -546,13 +539,6 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
546
539
|
*/
|
|
547
540
|
readonly filters?: string
|
|
548
541
|
|
|
549
|
-
/**
|
|
550
|
-
* 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>
|
|
551
|
-
* @type {string}
|
|
552
|
-
* @memberof CategoriesApiListCategories
|
|
553
|
-
*/
|
|
554
|
-
readonly search?: string
|
|
555
|
-
|
|
556
542
|
/**
|
|
557
543
|
* 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>
|
|
558
544
|
* @type {string}
|
|
@@ -569,29 +555,29 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
569
555
|
}
|
|
570
556
|
|
|
571
557
|
/**
|
|
572
|
-
* Request parameters for
|
|
558
|
+
* Request parameters for patchCategory operation in CategoriesApi.
|
|
573
559
|
* @export
|
|
574
|
-
* @interface
|
|
560
|
+
* @interface CategoriesApiPatchCategoryRequest
|
|
575
561
|
*/
|
|
576
|
-
export interface
|
|
562
|
+
export interface CategoriesApiPatchCategoryRequest {
|
|
577
563
|
/**
|
|
578
564
|
*
|
|
579
565
|
* @type {string}
|
|
580
|
-
* @memberof
|
|
566
|
+
* @memberof CategoriesApiPatchCategory
|
|
581
567
|
*/
|
|
582
568
|
readonly code: string
|
|
583
569
|
|
|
584
570
|
/**
|
|
585
571
|
*
|
|
586
|
-
* @type {
|
|
587
|
-
* @memberof
|
|
572
|
+
* @type {PatchCategoryRequestDto}
|
|
573
|
+
* @memberof CategoriesApiPatchCategory
|
|
588
574
|
*/
|
|
589
|
-
readonly
|
|
575
|
+
readonly patchCategoryRequestDto: PatchCategoryRequestDto
|
|
590
576
|
|
|
591
577
|
/**
|
|
592
578
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
593
579
|
* @type {string}
|
|
594
|
-
* @memberof
|
|
580
|
+
* @memberof CategoriesApiPatchCategory
|
|
595
581
|
*/
|
|
596
582
|
readonly authorization?: string
|
|
597
583
|
}
|
|
@@ -648,18 +634,18 @@ export class CategoriesApi extends BaseAPI {
|
|
|
648
634
|
* @memberof CategoriesApi
|
|
649
635
|
*/
|
|
650
636
|
public listCategories(requestParameters: CategoriesApiListCategoriesRequest = {}, options?: AxiosRequestConfig) {
|
|
651
|
-
return CategoriesApiFp(this.configuration).listCategories(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.
|
|
637
|
+
return CategoriesApiFp(this.configuration).listCategories(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
652
638
|
}
|
|
653
639
|
|
|
654
640
|
/**
|
|
655
|
-
* This will update category.
|
|
641
|
+
* This will partially update a category by code with the provided fields.
|
|
656
642
|
* @summary Update the category
|
|
657
|
-
* @param {
|
|
643
|
+
* @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
|
|
658
644
|
* @param {*} [options] Override http request option.
|
|
659
645
|
* @throws {RequiredError}
|
|
660
646
|
* @memberof CategoriesApi
|
|
661
647
|
*/
|
|
662
|
-
public
|
|
663
|
-
return CategoriesApiFp(this.configuration).
|
|
648
|
+
public patchCategory(requestParameters: CategoriesApiPatchCategoryRequest, options?: AxiosRequestConfig) {
|
|
649
|
+
return CategoriesApiFp(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
664
650
|
}
|
|
665
651
|
}
|
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
|
/**
|
|
36
36
|
* StatusesApi - axios parameter creator
|
|
37
37
|
* @export
|
|
@@ -188,13 +188,12 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
188
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
189
|
* @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>
|
|
190
190
|
* @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>
|
|
191
|
-
* @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>
|
|
192
191
|
* @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>
|
|
193
192
|
* @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/>
|
|
194
193
|
* @param {*} [options] Override http request option.
|
|
195
194
|
* @throws {RequiredError}
|
|
196
195
|
*/
|
|
197
|
-
listStatuses: async (authorization?: string, filter?: string, filters?: string,
|
|
196
|
+
listStatuses: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
198
197
|
const localVarPath = `/taskservice/v1/statuses`;
|
|
199
198
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
199
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -221,10 +220,6 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
221
220
|
localVarQueryParameter['filters'] = filters;
|
|
222
221
|
}
|
|
223
222
|
|
|
224
|
-
if (search !== undefined) {
|
|
225
|
-
localVarQueryParameter['search'] = search;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
223
|
if (order !== undefined) {
|
|
229
224
|
localVarQueryParameter['order'] = order;
|
|
230
225
|
}
|
|
@@ -249,19 +244,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
249
244
|
};
|
|
250
245
|
},
|
|
251
246
|
/**
|
|
252
|
-
* This will update status.
|
|
247
|
+
* This will partially update a status by code with the provided fields.
|
|
253
248
|
* @summary Update the status
|
|
254
249
|
* @param {string} code
|
|
255
|
-
* @param {
|
|
250
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
256
251
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
252
|
* @param {*} [options] Override http request option.
|
|
258
253
|
* @throws {RequiredError}
|
|
259
254
|
*/
|
|
260
|
-
|
|
255
|
+
patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
261
256
|
// verify required parameter 'code' is not null or undefined
|
|
262
|
-
assertParamExists('
|
|
263
|
-
// verify required parameter '
|
|
264
|
-
assertParamExists('
|
|
257
|
+
assertParamExists('patchStatus', 'code', code)
|
|
258
|
+
// verify required parameter 'patchStatusRequestDto' is not null or undefined
|
|
259
|
+
assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
|
|
265
260
|
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
266
261
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
262
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -273,7 +268,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
273
268
|
baseAccessToken = configuration.accessToken;
|
|
274
269
|
}
|
|
275
270
|
|
|
276
|
-
const localVarRequestOptions = { method: '
|
|
271
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
277
272
|
const localVarHeaderParameter = {} as any;
|
|
278
273
|
const localVarQueryParameter = {} as any;
|
|
279
274
|
|
|
@@ -292,7 +287,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
292
287
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
293
288
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
289
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
295
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
290
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration)
|
|
296
291
|
|
|
297
292
|
return {
|
|
298
293
|
url: toPathString(localVarUrlObj),
|
|
@@ -352,27 +347,26 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
352
347
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
353
348
|
* @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>
|
|
354
349
|
* @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>
|
|
355
|
-
* @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>
|
|
356
350
|
* @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>
|
|
357
351
|
* @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/>
|
|
358
352
|
* @param {*} [options] Override http request option.
|
|
359
353
|
* @throws {RequiredError}
|
|
360
354
|
*/
|
|
361
|
-
async listStatuses(authorization?: string, filter?: string, filters?: string,
|
|
362
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listStatuses(authorization, filter, filters,
|
|
355
|
+
async listStatuses(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusesResponseClass>> {
|
|
356
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listStatuses(authorization, filter, filters, order, expand, options);
|
|
363
357
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
358
|
},
|
|
365
359
|
/**
|
|
366
|
-
* This will update status.
|
|
360
|
+
* This will partially update a status by code with the provided fields.
|
|
367
361
|
* @summary Update the status
|
|
368
362
|
* @param {string} code
|
|
369
|
-
* @param {
|
|
363
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
370
364
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
371
365
|
* @param {*} [options] Override http request option.
|
|
372
366
|
* @throws {RequiredError}
|
|
373
367
|
*/
|
|
374
|
-
async
|
|
375
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
368
|
+
async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> {
|
|
369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options);
|
|
376
370
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
377
371
|
},
|
|
378
372
|
}
|
|
@@ -425,26 +419,25 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
425
419
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
426
420
|
* @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>
|
|
427
421
|
* @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>
|
|
428
|
-
* @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>
|
|
429
422
|
* @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>
|
|
430
423
|
* @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/>
|
|
431
424
|
* @param {*} [options] Override http request option.
|
|
432
425
|
* @throws {RequiredError}
|
|
433
426
|
*/
|
|
434
|
-
listStatuses(authorization?: string, filter?: string, filters?: string,
|
|
435
|
-
return localVarFp.listStatuses(authorization, filter, filters,
|
|
427
|
+
listStatuses(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListStatusesResponseClass> {
|
|
428
|
+
return localVarFp.listStatuses(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
436
429
|
},
|
|
437
430
|
/**
|
|
438
|
-
* This will update status.
|
|
431
|
+
* This will partially update a status by code with the provided fields.
|
|
439
432
|
* @summary Update the status
|
|
440
433
|
* @param {string} code
|
|
441
|
-
* @param {
|
|
434
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
442
435
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
443
436
|
* @param {*} [options] Override http request option.
|
|
444
437
|
* @throws {RequiredError}
|
|
445
438
|
*/
|
|
446
|
-
|
|
447
|
-
return localVarFp.
|
|
439
|
+
patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
|
|
440
|
+
return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
448
441
|
},
|
|
449
442
|
};
|
|
450
443
|
};
|
|
@@ -546,13 +539,6 @@ export interface StatusesApiListStatusesRequest {
|
|
|
546
539
|
*/
|
|
547
540
|
readonly filters?: string
|
|
548
541
|
|
|
549
|
-
/**
|
|
550
|
-
* 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>
|
|
551
|
-
* @type {string}
|
|
552
|
-
* @memberof StatusesApiListStatuses
|
|
553
|
-
*/
|
|
554
|
-
readonly search?: string
|
|
555
|
-
|
|
556
542
|
/**
|
|
557
543
|
* 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>
|
|
558
544
|
* @type {string}
|
|
@@ -569,29 +555,29 @@ export interface StatusesApiListStatusesRequest {
|
|
|
569
555
|
}
|
|
570
556
|
|
|
571
557
|
/**
|
|
572
|
-
* Request parameters for
|
|
558
|
+
* Request parameters for patchStatus operation in StatusesApi.
|
|
573
559
|
* @export
|
|
574
|
-
* @interface
|
|
560
|
+
* @interface StatusesApiPatchStatusRequest
|
|
575
561
|
*/
|
|
576
|
-
export interface
|
|
562
|
+
export interface StatusesApiPatchStatusRequest {
|
|
577
563
|
/**
|
|
578
564
|
*
|
|
579
565
|
* @type {string}
|
|
580
|
-
* @memberof
|
|
566
|
+
* @memberof StatusesApiPatchStatus
|
|
581
567
|
*/
|
|
582
568
|
readonly code: string
|
|
583
569
|
|
|
584
570
|
/**
|
|
585
571
|
*
|
|
586
|
-
* @type {
|
|
587
|
-
* @memberof
|
|
572
|
+
* @type {PatchStatusRequestDto}
|
|
573
|
+
* @memberof StatusesApiPatchStatus
|
|
588
574
|
*/
|
|
589
|
-
readonly
|
|
575
|
+
readonly patchStatusRequestDto: PatchStatusRequestDto
|
|
590
576
|
|
|
591
577
|
/**
|
|
592
578
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
593
579
|
* @type {string}
|
|
594
|
-
* @memberof
|
|
580
|
+
* @memberof StatusesApiPatchStatus
|
|
595
581
|
*/
|
|
596
582
|
readonly authorization?: string
|
|
597
583
|
}
|
|
@@ -648,18 +634,18 @@ export class StatusesApi extends BaseAPI {
|
|
|
648
634
|
* @memberof StatusesApi
|
|
649
635
|
*/
|
|
650
636
|
public listStatuses(requestParameters: StatusesApiListStatusesRequest = {}, options?: AxiosRequestConfig) {
|
|
651
|
-
return StatusesApiFp(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.
|
|
637
|
+
return StatusesApiFp(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
652
638
|
}
|
|
653
639
|
|
|
654
640
|
/**
|
|
655
|
-
* This will update status.
|
|
641
|
+
* This will partially update a status by code with the provided fields.
|
|
656
642
|
* @summary Update the status
|
|
657
|
-
* @param {
|
|
643
|
+
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
658
644
|
* @param {*} [options] Override http request option.
|
|
659
645
|
* @throws {RequiredError}
|
|
660
646
|
* @memberof StatusesApi
|
|
661
647
|
*/
|
|
662
|
-
public
|
|
663
|
-
return StatusesApiFp(this.configuration).
|
|
648
|
+
public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) {
|
|
649
|
+
return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
664
650
|
}
|
|
665
651
|
}
|