@emilgroup/task-sdk-node 1.0.1-beta.4 → 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-node@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/task-sdk-node@1.0.1-beta.5 --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.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
|
// URLSearchParams not necessarily used
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -253,19 +253,19 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
253
253
|
};
|
|
254
254
|
},
|
|
255
255
|
/**
|
|
256
|
-
* This will update category.
|
|
256
|
+
* This will partially update a category by code with the provided fields.
|
|
257
257
|
* @summary Update the category
|
|
258
258
|
* @param {string} code
|
|
259
|
-
* @param {
|
|
259
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
260
260
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
261
261
|
* @param {*} [options] Override http request option.
|
|
262
262
|
* @throws {RequiredError}
|
|
263
263
|
*/
|
|
264
|
-
|
|
264
|
+
patchCategory: async (code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
265
265
|
// verify required parameter 'code' is not null or undefined
|
|
266
|
-
assertParamExists('
|
|
267
|
-
// verify required parameter '
|
|
268
|
-
assertParamExists('
|
|
266
|
+
assertParamExists('patchCategory', 'code', code)
|
|
267
|
+
// verify required parameter 'patchCategoryRequestDto' is not null or undefined
|
|
268
|
+
assertParamExists('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto)
|
|
269
269
|
const localVarPath = `/taskservice/v1/categories/{code}`
|
|
270
270
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
271
271
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -277,7 +277,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
277
277
|
baseAccessToken = configuration.accessToken;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
const localVarRequestOptions = { method: '
|
|
280
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
281
281
|
const localVarHeaderParameter = {} as any;
|
|
282
282
|
const localVarQueryParameter = {} as any;
|
|
283
283
|
|
|
@@ -296,7 +296,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
296
296
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
297
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
298
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
299
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchCategoryRequestDto, localVarRequestOptions, configuration)
|
|
300
300
|
|
|
301
301
|
return {
|
|
302
302
|
url: toPathString(localVarUrlObj),
|
|
@@ -367,16 +367,16 @@ export const CategoriesApiFp = function(configuration?: Configuration) {
|
|
|
367
367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
368
|
},
|
|
369
369
|
/**
|
|
370
|
-
* This will update category.
|
|
370
|
+
* This will partially update a category by code with the provided fields.
|
|
371
371
|
* @summary Update the category
|
|
372
372
|
* @param {string} code
|
|
373
|
-
* @param {
|
|
373
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
374
374
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
375
375
|
* @param {*} [options] Override http request option.
|
|
376
376
|
* @throws {RequiredError}
|
|
377
377
|
*/
|
|
378
|
-
async
|
|
379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
378
|
+
async patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCategoryResponseClass>> {
|
|
379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options);
|
|
380
380
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
381
|
},
|
|
382
382
|
}
|
|
@@ -439,16 +439,16 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas
|
|
|
439
439
|
return localVarFp.listCategories(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
440
440
|
},
|
|
441
441
|
/**
|
|
442
|
-
* This will update category.
|
|
442
|
+
* This will partially update a category by code with the provided fields.
|
|
443
443
|
* @summary Update the category
|
|
444
444
|
* @param {string} code
|
|
445
|
-
* @param {
|
|
445
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
446
446
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
447
|
* @param {*} [options] Override http request option.
|
|
448
448
|
* @throws {RequiredError}
|
|
449
449
|
*/
|
|
450
|
-
|
|
451
|
-
return localVarFp.
|
|
450
|
+
patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCategoryResponseClass> {
|
|
451
|
+
return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
452
452
|
},
|
|
453
453
|
};
|
|
454
454
|
};
|
|
@@ -573,29 +573,29 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
|
-
* Request parameters for
|
|
576
|
+
* Request parameters for patchCategory operation in CategoriesApi.
|
|
577
577
|
* @export
|
|
578
|
-
* @interface
|
|
578
|
+
* @interface CategoriesApiPatchCategoryRequest
|
|
579
579
|
*/
|
|
580
|
-
export interface
|
|
580
|
+
export interface CategoriesApiPatchCategoryRequest {
|
|
581
581
|
/**
|
|
582
582
|
*
|
|
583
583
|
* @type {string}
|
|
584
|
-
* @memberof
|
|
584
|
+
* @memberof CategoriesApiPatchCategory
|
|
585
585
|
*/
|
|
586
586
|
readonly code: string
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
589
|
*
|
|
590
|
-
* @type {
|
|
591
|
-
* @memberof
|
|
590
|
+
* @type {PatchCategoryRequestDto}
|
|
591
|
+
* @memberof CategoriesApiPatchCategory
|
|
592
592
|
*/
|
|
593
|
-
readonly
|
|
593
|
+
readonly patchCategoryRequestDto: PatchCategoryRequestDto
|
|
594
594
|
|
|
595
595
|
/**
|
|
596
596
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
597
597
|
* @type {string}
|
|
598
|
-
* @memberof
|
|
598
|
+
* @memberof CategoriesApiPatchCategory
|
|
599
599
|
*/
|
|
600
600
|
readonly authorization?: string
|
|
601
601
|
}
|
|
@@ -656,14 +656,14 @@ export class CategoriesApi extends BaseAPI {
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
/**
|
|
659
|
-
* This will update category.
|
|
659
|
+
* This will partially update a category by code with the provided fields.
|
|
660
660
|
* @summary Update the category
|
|
661
|
-
* @param {
|
|
661
|
+
* @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
|
|
662
662
|
* @param {*} [options] Override http request option.
|
|
663
663
|
* @throws {RequiredError}
|
|
664
664
|
* @memberof CategoriesApi
|
|
665
665
|
*/
|
|
666
|
-
public
|
|
667
|
-
return CategoriesApiFp(this.configuration).
|
|
666
|
+
public patchCategory(requestParameters: CategoriesApiPatchCategoryRequest, options?: AxiosRequestConfig) {
|
|
667
|
+
return CategoriesApiFp(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
668
|
}
|
|
669
669
|
}
|
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';
|
|
@@ -253,19 +253,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
253
253
|
};
|
|
254
254
|
},
|
|
255
255
|
/**
|
|
256
|
-
* This will update status.
|
|
256
|
+
* This will partially update a status by code with the provided fields.
|
|
257
257
|
* @summary Update the status
|
|
258
258
|
* @param {string} code
|
|
259
|
-
* @param {
|
|
259
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
260
260
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
261
261
|
* @param {*} [options] Override http request option.
|
|
262
262
|
* @throws {RequiredError}
|
|
263
263
|
*/
|
|
264
|
-
|
|
264
|
+
patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
265
265
|
// verify required parameter 'code' is not null or undefined
|
|
266
|
-
assertParamExists('
|
|
267
|
-
// verify required parameter '
|
|
268
|
-
assertParamExists('
|
|
266
|
+
assertParamExists('patchStatus', 'code', code)
|
|
267
|
+
// verify required parameter 'patchStatusRequestDto' is not null or undefined
|
|
268
|
+
assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
|
|
269
269
|
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
270
270
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
271
271
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -277,7 +277,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
277
277
|
baseAccessToken = configuration.accessToken;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
const localVarRequestOptions = { method: '
|
|
280
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
281
281
|
const localVarHeaderParameter = {} as any;
|
|
282
282
|
const localVarQueryParameter = {} as any;
|
|
283
283
|
|
|
@@ -296,7 +296,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
296
296
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
297
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
298
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
299
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration)
|
|
300
300
|
|
|
301
301
|
return {
|
|
302
302
|
url: toPathString(localVarUrlObj),
|
|
@@ -367,16 +367,16 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
367
367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
368
|
},
|
|
369
369
|
/**
|
|
370
|
-
* This will update status.
|
|
370
|
+
* This will partially update a status by code with the provided fields.
|
|
371
371
|
* @summary Update the status
|
|
372
372
|
* @param {string} code
|
|
373
|
-
* @param {
|
|
373
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
374
374
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
375
375
|
* @param {*} [options] Override http request option.
|
|
376
376
|
* @throws {RequiredError}
|
|
377
377
|
*/
|
|
378
|
-
async
|
|
379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
378
|
+
async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> {
|
|
379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options);
|
|
380
380
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
381
|
},
|
|
382
382
|
}
|
|
@@ -439,16 +439,16 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
439
439
|
return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
440
440
|
},
|
|
441
441
|
/**
|
|
442
|
-
* This will update status.
|
|
442
|
+
* This will partially update a status by code with the provided fields.
|
|
443
443
|
* @summary Update the status
|
|
444
444
|
* @param {string} code
|
|
445
|
-
* @param {
|
|
445
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
446
446
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
447
|
* @param {*} [options] Override http request option.
|
|
448
448
|
* @throws {RequiredError}
|
|
449
449
|
*/
|
|
450
|
-
|
|
451
|
-
return localVarFp.
|
|
450
|
+
patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
|
|
451
|
+
return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
452
452
|
},
|
|
453
453
|
};
|
|
454
454
|
};
|
|
@@ -573,29 +573,29 @@ export interface StatusesApiListStatusesRequest {
|
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
|
-
* Request parameters for
|
|
576
|
+
* Request parameters for patchStatus operation in StatusesApi.
|
|
577
577
|
* @export
|
|
578
|
-
* @interface
|
|
578
|
+
* @interface StatusesApiPatchStatusRequest
|
|
579
579
|
*/
|
|
580
|
-
export interface
|
|
580
|
+
export interface StatusesApiPatchStatusRequest {
|
|
581
581
|
/**
|
|
582
582
|
*
|
|
583
583
|
* @type {string}
|
|
584
|
-
* @memberof
|
|
584
|
+
* @memberof StatusesApiPatchStatus
|
|
585
585
|
*/
|
|
586
586
|
readonly code: string
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
589
|
*
|
|
590
|
-
* @type {
|
|
591
|
-
* @memberof
|
|
590
|
+
* @type {PatchStatusRequestDto}
|
|
591
|
+
* @memberof StatusesApiPatchStatus
|
|
592
592
|
*/
|
|
593
|
-
readonly
|
|
593
|
+
readonly patchStatusRequestDto: PatchStatusRequestDto
|
|
594
594
|
|
|
595
595
|
/**
|
|
596
596
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
597
597
|
* @type {string}
|
|
598
|
-
* @memberof
|
|
598
|
+
* @memberof StatusesApiPatchStatus
|
|
599
599
|
*/
|
|
600
600
|
readonly authorization?: string
|
|
601
601
|
}
|
|
@@ -656,14 +656,14 @@ export class StatusesApi extends BaseAPI {
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
/**
|
|
659
|
-
* This will update status.
|
|
659
|
+
* This will partially update a status by code with the provided fields.
|
|
660
660
|
* @summary Update the status
|
|
661
|
-
* @param {
|
|
661
|
+
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
662
662
|
* @param {*} [options] Override http request option.
|
|
663
663
|
* @throws {RequiredError}
|
|
664
664
|
* @memberof StatusesApi
|
|
665
665
|
*/
|
|
666
|
-
public
|
|
667
|
-
return StatusesApiFp(this.configuration).
|
|
666
|
+
public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) {
|
|
667
|
+
return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
668
|
}
|
|
669
669
|
}
|
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
|
// URLSearchParams not necessarily used
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -253,19 +253,19 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
253
253
|
};
|
|
254
254
|
},
|
|
255
255
|
/**
|
|
256
|
-
* This will update a task by code.
|
|
256
|
+
* This will partially update a task by code with the provided fields.
|
|
257
257
|
* @summary Update the task
|
|
258
258
|
* @param {string} code
|
|
259
|
-
* @param {
|
|
259
|
+
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
260
260
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
261
261
|
* @param {*} [options] Override http request option.
|
|
262
262
|
* @throws {RequiredError}
|
|
263
263
|
*/
|
|
264
|
-
|
|
264
|
+
patchTask: async (code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
265
265
|
// verify required parameter 'code' is not null or undefined
|
|
266
|
-
assertParamExists('
|
|
267
|
-
// verify required parameter '
|
|
268
|
-
assertParamExists('
|
|
266
|
+
assertParamExists('patchTask', 'code', code)
|
|
267
|
+
// verify required parameter 'patchTaskRequestDto' is not null or undefined
|
|
268
|
+
assertParamExists('patchTask', 'patchTaskRequestDto', patchTaskRequestDto)
|
|
269
269
|
const localVarPath = `/taskservice/v1/tasks/{code}`
|
|
270
270
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
271
271
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -277,7 +277,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
277
277
|
baseAccessToken = configuration.accessToken;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
const localVarRequestOptions = { method: '
|
|
280
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
281
281
|
const localVarHeaderParameter = {} as any;
|
|
282
282
|
const localVarQueryParameter = {} as any;
|
|
283
283
|
|
|
@@ -296,7 +296,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
296
296
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
297
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
298
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
299
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchTaskRequestDto, localVarRequestOptions, configuration)
|
|
300
300
|
|
|
301
301
|
return {
|
|
302
302
|
url: toPathString(localVarUrlObj),
|
|
@@ -367,16 +367,16 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
367
367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
368
|
},
|
|
369
369
|
/**
|
|
370
|
-
* This will update a task by code.
|
|
370
|
+
* This will partially update a task by code with the provided fields.
|
|
371
371
|
* @summary Update the task
|
|
372
372
|
* @param {string} code
|
|
373
|
-
* @param {
|
|
373
|
+
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
374
374
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
375
375
|
* @param {*} [options] Override http request option.
|
|
376
376
|
* @throws {RequiredError}
|
|
377
377
|
*/
|
|
378
|
-
async
|
|
379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
378
|
+
async patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchTaskResponseClass>> {
|
|
379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options);
|
|
380
380
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
381
|
},
|
|
382
382
|
}
|
|
@@ -439,16 +439,16 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
439
439
|
return localVarFp.listTasks(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
440
440
|
},
|
|
441
441
|
/**
|
|
442
|
-
* This will update a task by code.
|
|
442
|
+
* This will partially update a task by code with the provided fields.
|
|
443
443
|
* @summary Update the task
|
|
444
444
|
* @param {string} code
|
|
445
|
-
* @param {
|
|
445
|
+
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
446
446
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
447
|
* @param {*} [options] Override http request option.
|
|
448
448
|
* @throws {RequiredError}
|
|
449
449
|
*/
|
|
450
|
-
|
|
451
|
-
return localVarFp.
|
|
450
|
+
patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: any): AxiosPromise<PatchTaskResponseClass> {
|
|
451
|
+
return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
452
452
|
},
|
|
453
453
|
};
|
|
454
454
|
};
|
|
@@ -573,29 +573,29 @@ export interface TasksApiListTasksRequest {
|
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
|
-
* Request parameters for
|
|
576
|
+
* Request parameters for patchTask operation in TasksApi.
|
|
577
577
|
* @export
|
|
578
|
-
* @interface
|
|
578
|
+
* @interface TasksApiPatchTaskRequest
|
|
579
579
|
*/
|
|
580
|
-
export interface
|
|
580
|
+
export interface TasksApiPatchTaskRequest {
|
|
581
581
|
/**
|
|
582
582
|
*
|
|
583
583
|
* @type {string}
|
|
584
|
-
* @memberof
|
|
584
|
+
* @memberof TasksApiPatchTask
|
|
585
585
|
*/
|
|
586
586
|
readonly code: string
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
589
|
*
|
|
590
|
-
* @type {
|
|
591
|
-
* @memberof
|
|
590
|
+
* @type {PatchTaskRequestDto}
|
|
591
|
+
* @memberof TasksApiPatchTask
|
|
592
592
|
*/
|
|
593
|
-
readonly
|
|
593
|
+
readonly patchTaskRequestDto: PatchTaskRequestDto
|
|
594
594
|
|
|
595
595
|
/**
|
|
596
596
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
597
597
|
* @type {string}
|
|
598
|
-
* @memberof
|
|
598
|
+
* @memberof TasksApiPatchTask
|
|
599
599
|
*/
|
|
600
600
|
readonly authorization?: string
|
|
601
601
|
}
|
|
@@ -656,14 +656,14 @@ export class TasksApi extends BaseAPI {
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
/**
|
|
659
|
-
* This will update a task by code.
|
|
659
|
+
* This will partially update a task by code with the provided fields.
|
|
660
660
|
* @summary Update the task
|
|
661
|
-
* @param {
|
|
661
|
+
* @param {TasksApiPatchTaskRequest} requestParameters Request parameters.
|
|
662
662
|
* @param {*} [options] Override http request option.
|
|
663
663
|
* @throws {RequiredError}
|
|
664
664
|
* @memberof TasksApi
|
|
665
665
|
*/
|
|
666
|
-
public
|
|
667
|
-
return TasksApiFp(this.configuration).
|
|
666
|
+
public patchTask(requestParameters: TasksApiPatchTaskRequest, options?: AxiosRequestConfig) {
|
|
667
|
+
return TasksApiFp(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
668
|
}
|
|
669
669
|
}
|
|
@@ -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
|
}
|