@emilgroup/task-sdk 1.0.1-beta.3 → 1.0.1-beta.5
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 +30 -30
- package/api/statuses-api.ts +30 -30
- package/api/tasks-api.ts +30 -30
- package/dist/api/categories-api.d.ts +22 -22
- package/dist/api/categories-api.js +20 -20
- package/dist/api/statuses-api.d.ts +22 -22
- package/dist/api/statuses-api.js +20 -20
- package/dist/api/tasks-api.d.ts +22 -22
- package/dist/api/tasks-api.js +20 -20
- 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.5 --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.5
|
|
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
|
|
@@ -249,19 +249,19 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
249
249
|
};
|
|
250
250
|
},
|
|
251
251
|
/**
|
|
252
|
-
* This will update category.
|
|
252
|
+
* This will partially update a category by code with the provided fields.
|
|
253
253
|
* @summary Update the category
|
|
254
254
|
* @param {string} code
|
|
255
|
-
* @param {
|
|
255
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
256
256
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
257
|
* @param {*} [options] Override http request option.
|
|
258
258
|
* @throws {RequiredError}
|
|
259
259
|
*/
|
|
260
|
-
|
|
260
|
+
patchCategory: async (code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
261
261
|
// verify required parameter 'code' is not null or undefined
|
|
262
|
-
assertParamExists('
|
|
263
|
-
// verify required parameter '
|
|
264
|
-
assertParamExists('
|
|
262
|
+
assertParamExists('patchCategory', 'code', code)
|
|
263
|
+
// verify required parameter 'patchCategoryRequestDto' is not null or undefined
|
|
264
|
+
assertParamExists('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto)
|
|
265
265
|
const localVarPath = `/taskservice/v1/categories/{code}`
|
|
266
266
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
267
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -273,7 +273,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
273
273
|
baseAccessToken = configuration.accessToken;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
const localVarRequestOptions = { method: '
|
|
276
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
277
277
|
const localVarHeaderParameter = {} as any;
|
|
278
278
|
const localVarQueryParameter = {} as any;
|
|
279
279
|
|
|
@@ -292,7 +292,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
292
292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
293
293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
294
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
295
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
295
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchCategoryRequestDto, localVarRequestOptions, configuration)
|
|
296
296
|
|
|
297
297
|
return {
|
|
298
298
|
url: toPathString(localVarUrlObj),
|
|
@@ -363,16 +363,16 @@ export const CategoriesApiFp = function(configuration?: Configuration) {
|
|
|
363
363
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
364
|
},
|
|
365
365
|
/**
|
|
366
|
-
* This will update category.
|
|
366
|
+
* This will partially update a category by code with the provided fields.
|
|
367
367
|
* @summary Update the category
|
|
368
368
|
* @param {string} code
|
|
369
|
-
* @param {
|
|
369
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
370
370
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
371
371
|
* @param {*} [options] Override http request option.
|
|
372
372
|
* @throws {RequiredError}
|
|
373
373
|
*/
|
|
374
|
-
async
|
|
375
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
374
|
+
async patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCategoryResponseClass>> {
|
|
375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options);
|
|
376
376
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
377
377
|
},
|
|
378
378
|
}
|
|
@@ -435,16 +435,16 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas
|
|
|
435
435
|
return localVarFp.listCategories(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
436
436
|
},
|
|
437
437
|
/**
|
|
438
|
-
* This will update category.
|
|
438
|
+
* This will partially update a category by code with the provided fields.
|
|
439
439
|
* @summary Update the category
|
|
440
440
|
* @param {string} code
|
|
441
|
-
* @param {
|
|
441
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
442
442
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
443
443
|
* @param {*} [options] Override http request option.
|
|
444
444
|
* @throws {RequiredError}
|
|
445
445
|
*/
|
|
446
|
-
|
|
447
|
-
return localVarFp.
|
|
446
|
+
patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCategoryResponseClass> {
|
|
447
|
+
return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
448
448
|
},
|
|
449
449
|
};
|
|
450
450
|
};
|
|
@@ -569,29 +569,29 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
/**
|
|
572
|
-
* Request parameters for
|
|
572
|
+
* Request parameters for patchCategory operation in CategoriesApi.
|
|
573
573
|
* @export
|
|
574
|
-
* @interface
|
|
574
|
+
* @interface CategoriesApiPatchCategoryRequest
|
|
575
575
|
*/
|
|
576
|
-
export interface
|
|
576
|
+
export interface CategoriesApiPatchCategoryRequest {
|
|
577
577
|
/**
|
|
578
578
|
*
|
|
579
579
|
* @type {string}
|
|
580
|
-
* @memberof
|
|
580
|
+
* @memberof CategoriesApiPatchCategory
|
|
581
581
|
*/
|
|
582
582
|
readonly code: string
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
*
|
|
586
|
-
* @type {
|
|
587
|
-
* @memberof
|
|
586
|
+
* @type {PatchCategoryRequestDto}
|
|
587
|
+
* @memberof CategoriesApiPatchCategory
|
|
588
588
|
*/
|
|
589
|
-
readonly
|
|
589
|
+
readonly patchCategoryRequestDto: PatchCategoryRequestDto
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
592
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
593
593
|
* @type {string}
|
|
594
|
-
* @memberof
|
|
594
|
+
* @memberof CategoriesApiPatchCategory
|
|
595
595
|
*/
|
|
596
596
|
readonly authorization?: string
|
|
597
597
|
}
|
|
@@ -652,14 +652,14 @@ export class CategoriesApi extends BaseAPI {
|
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
|
-
* This will update category.
|
|
655
|
+
* This will partially update a category by code with the provided fields.
|
|
656
656
|
* @summary Update the category
|
|
657
|
-
* @param {
|
|
657
|
+
* @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
|
|
658
658
|
* @param {*} [options] Override http request option.
|
|
659
659
|
* @throws {RequiredError}
|
|
660
660
|
* @memberof CategoriesApi
|
|
661
661
|
*/
|
|
662
|
-
public
|
|
663
|
-
return CategoriesApiFp(this.configuration).
|
|
662
|
+
public patchCategory(requestParameters: CategoriesApiPatchCategoryRequest, options?: AxiosRequestConfig) {
|
|
663
|
+
return CategoriesApiFp(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
664
664
|
}
|
|
665
665
|
}
|
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
|
|
@@ -249,19 +249,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
249
249
|
};
|
|
250
250
|
},
|
|
251
251
|
/**
|
|
252
|
-
* This will update status.
|
|
252
|
+
* This will partially update a status by code with the provided fields.
|
|
253
253
|
* @summary Update the status
|
|
254
254
|
* @param {string} code
|
|
255
|
-
* @param {
|
|
255
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
256
256
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
257
|
* @param {*} [options] Override http request option.
|
|
258
258
|
* @throws {RequiredError}
|
|
259
259
|
*/
|
|
260
|
-
|
|
260
|
+
patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
261
261
|
// verify required parameter 'code' is not null or undefined
|
|
262
|
-
assertParamExists('
|
|
263
|
-
// verify required parameter '
|
|
264
|
-
assertParamExists('
|
|
262
|
+
assertParamExists('patchStatus', 'code', code)
|
|
263
|
+
// verify required parameter 'patchStatusRequestDto' is not null or undefined
|
|
264
|
+
assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
|
|
265
265
|
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
266
266
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
267
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -273,7 +273,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
273
273
|
baseAccessToken = configuration.accessToken;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
const localVarRequestOptions = { method: '
|
|
276
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
277
277
|
const localVarHeaderParameter = {} as any;
|
|
278
278
|
const localVarQueryParameter = {} as any;
|
|
279
279
|
|
|
@@ -292,7 +292,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
292
292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
293
293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
294
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
295
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
295
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration)
|
|
296
296
|
|
|
297
297
|
return {
|
|
298
298
|
url: toPathString(localVarUrlObj),
|
|
@@ -363,16 +363,16 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
363
363
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
364
|
},
|
|
365
365
|
/**
|
|
366
|
-
* This will update status.
|
|
366
|
+
* This will partially update a status by code with the provided fields.
|
|
367
367
|
* @summary Update the status
|
|
368
368
|
* @param {string} code
|
|
369
|
-
* @param {
|
|
369
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
370
370
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
371
371
|
* @param {*} [options] Override http request option.
|
|
372
372
|
* @throws {RequiredError}
|
|
373
373
|
*/
|
|
374
|
-
async
|
|
375
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
374
|
+
async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> {
|
|
375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options);
|
|
376
376
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
377
377
|
},
|
|
378
378
|
}
|
|
@@ -435,16 +435,16 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
435
435
|
return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
436
436
|
},
|
|
437
437
|
/**
|
|
438
|
-
* This will update status.
|
|
438
|
+
* This will partially update a status by code with the provided fields.
|
|
439
439
|
* @summary Update the status
|
|
440
440
|
* @param {string} code
|
|
441
|
-
* @param {
|
|
441
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
442
442
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
443
443
|
* @param {*} [options] Override http request option.
|
|
444
444
|
* @throws {RequiredError}
|
|
445
445
|
*/
|
|
446
|
-
|
|
447
|
-
return localVarFp.
|
|
446
|
+
patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
|
|
447
|
+
return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
448
448
|
},
|
|
449
449
|
};
|
|
450
450
|
};
|
|
@@ -569,29 +569,29 @@ export interface StatusesApiListStatusesRequest {
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
/**
|
|
572
|
-
* Request parameters for
|
|
572
|
+
* Request parameters for patchStatus operation in StatusesApi.
|
|
573
573
|
* @export
|
|
574
|
-
* @interface
|
|
574
|
+
* @interface StatusesApiPatchStatusRequest
|
|
575
575
|
*/
|
|
576
|
-
export interface
|
|
576
|
+
export interface StatusesApiPatchStatusRequest {
|
|
577
577
|
/**
|
|
578
578
|
*
|
|
579
579
|
* @type {string}
|
|
580
|
-
* @memberof
|
|
580
|
+
* @memberof StatusesApiPatchStatus
|
|
581
581
|
*/
|
|
582
582
|
readonly code: string
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
*
|
|
586
|
-
* @type {
|
|
587
|
-
* @memberof
|
|
586
|
+
* @type {PatchStatusRequestDto}
|
|
587
|
+
* @memberof StatusesApiPatchStatus
|
|
588
588
|
*/
|
|
589
|
-
readonly
|
|
589
|
+
readonly patchStatusRequestDto: PatchStatusRequestDto
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
592
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
593
593
|
* @type {string}
|
|
594
|
-
* @memberof
|
|
594
|
+
* @memberof StatusesApiPatchStatus
|
|
595
595
|
*/
|
|
596
596
|
readonly authorization?: string
|
|
597
597
|
}
|
|
@@ -652,14 +652,14 @@ export class StatusesApi extends BaseAPI {
|
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
|
-
* This will update status.
|
|
655
|
+
* This will partially update a status by code with the provided fields.
|
|
656
656
|
* @summary Update the status
|
|
657
|
-
* @param {
|
|
657
|
+
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
658
658
|
* @param {*} [options] Override http request option.
|
|
659
659
|
* @throws {RequiredError}
|
|
660
660
|
* @memberof StatusesApi
|
|
661
661
|
*/
|
|
662
|
-
public
|
|
663
|
-
return StatusesApiFp(this.configuration).
|
|
662
|
+
public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) {
|
|
663
|
+
return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
664
664
|
}
|
|
665
665
|
}
|
package/api/tasks-api.ts
CHANGED
|
@@ -29,9 +29,9 @@ import { GetTaskResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListTasksResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { PatchTaskRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
-
import {
|
|
34
|
+
import { PatchTaskResponseClass } from '../models';
|
|
35
35
|
/**
|
|
36
36
|
* TasksApi - axios parameter creator
|
|
37
37
|
* @export
|
|
@@ -249,19 +249,19 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
249
249
|
};
|
|
250
250
|
},
|
|
251
251
|
/**
|
|
252
|
-
* This will update a task by code.
|
|
252
|
+
* This will partially update a task by code with the provided fields.
|
|
253
253
|
* @summary Update the task
|
|
254
254
|
* @param {string} code
|
|
255
|
-
* @param {
|
|
255
|
+
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
256
256
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
257
|
* @param {*} [options] Override http request option.
|
|
258
258
|
* @throws {RequiredError}
|
|
259
259
|
*/
|
|
260
|
-
|
|
260
|
+
patchTask: async (code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
261
261
|
// verify required parameter 'code' is not null or undefined
|
|
262
|
-
assertParamExists('
|
|
263
|
-
// verify required parameter '
|
|
264
|
-
assertParamExists('
|
|
262
|
+
assertParamExists('patchTask', 'code', code)
|
|
263
|
+
// verify required parameter 'patchTaskRequestDto' is not null or undefined
|
|
264
|
+
assertParamExists('patchTask', 'patchTaskRequestDto', patchTaskRequestDto)
|
|
265
265
|
const localVarPath = `/taskservice/v1/tasks/{code}`
|
|
266
266
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
267
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -273,7 +273,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
273
273
|
baseAccessToken = configuration.accessToken;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
const localVarRequestOptions = { method: '
|
|
276
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
277
277
|
const localVarHeaderParameter = {} as any;
|
|
278
278
|
const localVarQueryParameter = {} as any;
|
|
279
279
|
|
|
@@ -292,7 +292,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
292
292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
293
293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
294
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
295
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
295
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchTaskRequestDto, localVarRequestOptions, configuration)
|
|
296
296
|
|
|
297
297
|
return {
|
|
298
298
|
url: toPathString(localVarUrlObj),
|
|
@@ -363,16 +363,16 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
363
363
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
364
|
},
|
|
365
365
|
/**
|
|
366
|
-
* This will update a task by code.
|
|
366
|
+
* This will partially update a task by code with the provided fields.
|
|
367
367
|
* @summary Update the task
|
|
368
368
|
* @param {string} code
|
|
369
|
-
* @param {
|
|
369
|
+
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
370
370
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
371
371
|
* @param {*} [options] Override http request option.
|
|
372
372
|
* @throws {RequiredError}
|
|
373
373
|
*/
|
|
374
|
-
async
|
|
375
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
374
|
+
async patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchTaskResponseClass>> {
|
|
375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options);
|
|
376
376
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
377
377
|
},
|
|
378
378
|
}
|
|
@@ -435,16 +435,16 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
435
435
|
return localVarFp.listTasks(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
436
436
|
},
|
|
437
437
|
/**
|
|
438
|
-
* This will update a task by code.
|
|
438
|
+
* This will partially update a task by code with the provided fields.
|
|
439
439
|
* @summary Update the task
|
|
440
440
|
* @param {string} code
|
|
441
|
-
* @param {
|
|
441
|
+
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
442
442
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
443
443
|
* @param {*} [options] Override http request option.
|
|
444
444
|
* @throws {RequiredError}
|
|
445
445
|
*/
|
|
446
|
-
|
|
447
|
-
return localVarFp.
|
|
446
|
+
patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: any): AxiosPromise<PatchTaskResponseClass> {
|
|
447
|
+
return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
448
448
|
},
|
|
449
449
|
};
|
|
450
450
|
};
|
|
@@ -569,29 +569,29 @@ export interface TasksApiListTasksRequest {
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
/**
|
|
572
|
-
* Request parameters for
|
|
572
|
+
* Request parameters for patchTask operation in TasksApi.
|
|
573
573
|
* @export
|
|
574
|
-
* @interface
|
|
574
|
+
* @interface TasksApiPatchTaskRequest
|
|
575
575
|
*/
|
|
576
|
-
export interface
|
|
576
|
+
export interface TasksApiPatchTaskRequest {
|
|
577
577
|
/**
|
|
578
578
|
*
|
|
579
579
|
* @type {string}
|
|
580
|
-
* @memberof
|
|
580
|
+
* @memberof TasksApiPatchTask
|
|
581
581
|
*/
|
|
582
582
|
readonly code: string
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
*
|
|
586
|
-
* @type {
|
|
587
|
-
* @memberof
|
|
586
|
+
* @type {PatchTaskRequestDto}
|
|
587
|
+
* @memberof TasksApiPatchTask
|
|
588
588
|
*/
|
|
589
|
-
readonly
|
|
589
|
+
readonly patchTaskRequestDto: PatchTaskRequestDto
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
592
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
593
593
|
* @type {string}
|
|
594
|
-
* @memberof
|
|
594
|
+
* @memberof TasksApiPatchTask
|
|
595
595
|
*/
|
|
596
596
|
readonly authorization?: string
|
|
597
597
|
}
|
|
@@ -652,14 +652,14 @@ export class TasksApi extends BaseAPI {
|
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
|
-
* This will update a task by code.
|
|
655
|
+
* This will partially update a task by code with the provided fields.
|
|
656
656
|
* @summary Update the task
|
|
657
|
-
* @param {
|
|
657
|
+
* @param {TasksApiPatchTaskRequest} requestParameters Request parameters.
|
|
658
658
|
* @param {*} [options] Override http request option.
|
|
659
659
|
* @throws {RequiredError}
|
|
660
660
|
* @memberof TasksApi
|
|
661
661
|
*/
|
|
662
|
-
public
|
|
663
|
-
return TasksApiFp(this.configuration).
|
|
662
|
+
public patchTask(requestParameters: TasksApiPatchTaskRequest, options?: AxiosRequestConfig) {
|
|
663
|
+
return TasksApiFp(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
664
664
|
}
|
|
665
665
|
}
|
|
@@ -16,8 +16,8 @@ import { CreateCategoryRequestDto } from '../models';
|
|
|
16
16
|
import { CreateCategoryResponseClass } from '../models';
|
|
17
17
|
import { GetCategoryResponseClass } from '../models';
|
|
18
18
|
import { ListCategoriesResponseClass } from '../models';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
19
|
+
import { PatchCategoryRequestDto } from '../models';
|
|
20
|
+
import { PatchCategoryResponseClass } from '../models';
|
|
21
21
|
/**
|
|
22
22
|
* CategoriesApi - axios parameter creator
|
|
23
23
|
* @export
|
|
@@ -65,15 +65,15 @@ export declare const CategoriesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
65
65
|
*/
|
|
66
66
|
listCategories: (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
67
|
/**
|
|
68
|
-
* This will update category.
|
|
68
|
+
* This will partially update a category by code with the provided fields.
|
|
69
69
|
* @summary Update the category
|
|
70
70
|
* @param {string} code
|
|
71
|
-
* @param {
|
|
71
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
72
72
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
73
73
|
* @param {*} [options] Override http request option.
|
|
74
74
|
* @throws {RequiredError}
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
patchCategory: (code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
79
|
* CategoriesApi - functional programming interface
|
|
@@ -122,15 +122,15 @@ export declare const CategoriesApiFp: (configuration?: Configuration) => {
|
|
|
122
122
|
*/
|
|
123
123
|
listCategories(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>>;
|
|
124
124
|
/**
|
|
125
|
-
* This will update category.
|
|
125
|
+
* This will partially update a category by code with the provided fields.
|
|
126
126
|
* @summary Update the category
|
|
127
127
|
* @param {string} code
|
|
128
|
-
* @param {
|
|
128
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
129
129
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
130
130
|
* @param {*} [options] Override http request option.
|
|
131
131
|
* @throws {RequiredError}
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCategoryResponseClass>>;
|
|
134
134
|
};
|
|
135
135
|
/**
|
|
136
136
|
* CategoriesApi - factory interface
|
|
@@ -179,15 +179,15 @@ export declare const CategoriesApiFactory: (configuration?: Configuration, baseP
|
|
|
179
179
|
*/
|
|
180
180
|
listCategories(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCategoriesResponseClass>;
|
|
181
181
|
/**
|
|
182
|
-
* This will update category.
|
|
182
|
+
* This will partially update a category by code with the provided fields.
|
|
183
183
|
* @summary Update the category
|
|
184
184
|
* @param {string} code
|
|
185
|
-
* @param {
|
|
185
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
186
186
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
|
190
|
-
|
|
190
|
+
patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCategoryResponseClass>;
|
|
191
191
|
};
|
|
192
192
|
/**
|
|
193
193
|
* Request parameters for createCategory operation in CategoriesApi.
|
|
@@ -296,27 +296,27 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
296
296
|
readonly expand?: string;
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
299
|
-
* Request parameters for
|
|
299
|
+
* Request parameters for patchCategory operation in CategoriesApi.
|
|
300
300
|
* @export
|
|
301
|
-
* @interface
|
|
301
|
+
* @interface CategoriesApiPatchCategoryRequest
|
|
302
302
|
*/
|
|
303
|
-
export interface
|
|
303
|
+
export interface CategoriesApiPatchCategoryRequest {
|
|
304
304
|
/**
|
|
305
305
|
*
|
|
306
306
|
* @type {string}
|
|
307
|
-
* @memberof
|
|
307
|
+
* @memberof CategoriesApiPatchCategory
|
|
308
308
|
*/
|
|
309
309
|
readonly code: string;
|
|
310
310
|
/**
|
|
311
311
|
*
|
|
312
|
-
* @type {
|
|
313
|
-
* @memberof
|
|
312
|
+
* @type {PatchCategoryRequestDto}
|
|
313
|
+
* @memberof CategoriesApiPatchCategory
|
|
314
314
|
*/
|
|
315
|
-
readonly
|
|
315
|
+
readonly patchCategoryRequestDto: PatchCategoryRequestDto;
|
|
316
316
|
/**
|
|
317
317
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
318
318
|
* @type {string}
|
|
319
|
-
* @memberof
|
|
319
|
+
* @memberof CategoriesApiPatchCategory
|
|
320
320
|
*/
|
|
321
321
|
readonly authorization?: string;
|
|
322
322
|
}
|
|
@@ -364,12 +364,12 @@ export declare class CategoriesApi extends BaseAPI {
|
|
|
364
364
|
*/
|
|
365
365
|
listCategories(requestParameters?: CategoriesApiListCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCategoriesResponseClass, any, {}>>;
|
|
366
366
|
/**
|
|
367
|
-
* This will update category.
|
|
367
|
+
* This will partially update a category by code with the provided fields.
|
|
368
368
|
* @summary Update the category
|
|
369
|
-
* @param {
|
|
369
|
+
* @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
|
|
370
370
|
* @param {*} [options] Override http request option.
|
|
371
371
|
* @throws {RequiredError}
|
|
372
372
|
* @memberof CategoriesApi
|
|
373
373
|
*/
|
|
374
|
-
|
|
374
|
+
patchCategory(requestParameters: CategoriesApiPatchCategoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchCategoryResponseClass, any, {}>>;
|
|
375
375
|
}
|