@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.
Files changed (35) hide show
  1. package/.openapi-generator/FILES +6 -6
  2. package/README.md +2 -2
  3. package/api/categories-api.ts +30 -30
  4. package/api/statuses-api.ts +30 -30
  5. package/api/tasks-api.ts +30 -30
  6. package/dist/api/categories-api.d.ts +22 -22
  7. package/dist/api/categories-api.js +20 -20
  8. package/dist/api/statuses-api.d.ts +22 -22
  9. package/dist/api/statuses-api.js +20 -20
  10. package/dist/api/tasks-api.d.ts +22 -22
  11. package/dist/api/tasks-api.js +20 -20
  12. package/dist/models/index.d.ts +6 -6
  13. package/dist/models/index.js +6 -6
  14. package/dist/models/{update-category-request-dto.d.ts → patch-category-request-dto.d.ts} +7 -7
  15. package/dist/models/{update-category-response-class.d.ts → patch-category-response-class.d.ts} +3 -3
  16. package/dist/models/{update-status-request-dto.d.ts → patch-status-request-dto.d.ts} +7 -7
  17. package/dist/models/{update-status-response-class.d.ts → patch-status-response-class.d.ts} +3 -3
  18. package/dist/models/patch-task-request-dto.d.ts +108 -0
  19. package/dist/models/{update-task-response-class.d.ts → patch-task-response-class.d.ts} +3 -3
  20. package/models/index.ts +6 -6
  21. package/models/{update-category-request-dto.ts → patch-category-request-dto.ts} +7 -7
  22. package/models/{update-category-response-class.ts → patch-category-response-class.ts} +3 -3
  23. package/models/{update-status-request-dto.ts → patch-status-request-dto.ts} +7 -7
  24. package/models/{update-status-response-class.ts → patch-status-response-class.ts} +3 -3
  25. package/models/patch-task-request-dto.ts +114 -0
  26. package/models/{update-task-response-class.ts → patch-task-response-class.ts} +3 -3
  27. package/package.json +1 -1
  28. package/dist/models/update-task-request-dto.d.ts +0 -72
  29. package/models/update-task-request-dto.ts +0 -78
  30. /package/dist/models/{update-category-request-dto.js → patch-category-request-dto.js} +0 -0
  31. /package/dist/models/{update-category-response-class.js → patch-category-response-class.js} +0 -0
  32. /package/dist/models/{update-status-request-dto.js → patch-status-request-dto.js} +0 -0
  33. /package/dist/models/{update-status-response-class.js → patch-status-response-class.js} +0 -0
  34. /package/dist/models/{update-task-request-dto.js → patch-task-request-dto.js} +0 -0
  35. /package/dist/models/{update-task-response-class.js → patch-task-response-class.js} +0 -0
@@ -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.4 --save
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.4
24
+ yarn add @emilgroup/task-sdk-node@1.0.1-beta.5
25
25
  ```
26
26
 
27
27
  And then you can import `TasksApi`.
@@ -29,9 +29,9 @@ import { GetCategoryResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { ListCategoriesResponseClass } from '../models';
31
31
  // @ts-ignore
32
- import { UpdateCategoryRequestDto } from '../models';
32
+ import { PatchCategoryRequestDto } from '../models';
33
33
  // @ts-ignore
34
- import { UpdateCategoryResponseClass } from '../models';
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 {UpdateCategoryRequestDto} updateCategoryRequestDto
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
- updateCategory: async (code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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('updateCategory', 'code', code)
267
- // verify required parameter 'updateCategoryRequestDto' is not null or undefined
268
- assertParamExists('updateCategory', 'updateCategoryRequestDto', updateCategoryRequestDto)
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: 'PUT', ...baseOptions, ...options};
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(updateCategoryRequestDto, localVarRequestOptions, configuration)
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 {UpdateCategoryRequestDto} updateCategoryRequestDto
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 updateCategory(code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCategoryResponseClass>> {
379
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCategory(code, updateCategoryRequestDto, authorization, options);
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 {UpdateCategoryRequestDto} updateCategoryRequestDto
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
- updateCategory(code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCategoryResponseClass> {
451
- return localVarFp.updateCategory(code, updateCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
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 updateCategory operation in CategoriesApi.
576
+ * Request parameters for patchCategory operation in CategoriesApi.
577
577
  * @export
578
- * @interface CategoriesApiUpdateCategoryRequest
578
+ * @interface CategoriesApiPatchCategoryRequest
579
579
  */
580
- export interface CategoriesApiUpdateCategoryRequest {
580
+ export interface CategoriesApiPatchCategoryRequest {
581
581
  /**
582
582
  *
583
583
  * @type {string}
584
- * @memberof CategoriesApiUpdateCategory
584
+ * @memberof CategoriesApiPatchCategory
585
585
  */
586
586
  readonly code: string
587
587
 
588
588
  /**
589
589
  *
590
- * @type {UpdateCategoryRequestDto}
591
- * @memberof CategoriesApiUpdateCategory
590
+ * @type {PatchCategoryRequestDto}
591
+ * @memberof CategoriesApiPatchCategory
592
592
  */
593
- readonly updateCategoryRequestDto: UpdateCategoryRequestDto
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 CategoriesApiUpdateCategory
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 {CategoriesApiUpdateCategoryRequest} requestParameters Request parameters.
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 updateCategory(requestParameters: CategoriesApiUpdateCategoryRequest, options?: AxiosRequestConfig) {
667
- return CategoriesApiFp(this.configuration).updateCategory(requestParameters.code, requestParameters.updateCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
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
  }
@@ -29,9 +29,9 @@ import { GetStatusResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { ListStatusesResponseClass } from '../models';
31
31
  // @ts-ignore
32
- import { UpdateStatusRequestDto } from '../models';
32
+ import { PatchStatusRequestDto } from '../models';
33
33
  // @ts-ignore
34
- import { UpdateStatusResponseClass } from '../models';
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 {UpdateStatusRequestDto} updateStatusRequestDto
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
- updateStatus: async (code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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('updateStatus', 'code', code)
267
- // verify required parameter 'updateStatusRequestDto' is not null or undefined
268
- assertParamExists('updateStatus', 'updateStatusRequestDto', updateStatusRequestDto)
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: 'PUT', ...baseOptions, ...options};
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(updateStatusRequestDto, localVarRequestOptions, configuration)
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 {UpdateStatusRequestDto} updateStatusRequestDto
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 updateStatus(code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateStatusResponseClass>> {
379
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateStatus(code, updateStatusRequestDto, authorization, options);
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 {UpdateStatusRequestDto} updateStatusRequestDto
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
- updateStatus(code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateStatusResponseClass> {
451
- return localVarFp.updateStatus(code, updateStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
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 updateStatus operation in StatusesApi.
576
+ * Request parameters for patchStatus operation in StatusesApi.
577
577
  * @export
578
- * @interface StatusesApiUpdateStatusRequest
578
+ * @interface StatusesApiPatchStatusRequest
579
579
  */
580
- export interface StatusesApiUpdateStatusRequest {
580
+ export interface StatusesApiPatchStatusRequest {
581
581
  /**
582
582
  *
583
583
  * @type {string}
584
- * @memberof StatusesApiUpdateStatus
584
+ * @memberof StatusesApiPatchStatus
585
585
  */
586
586
  readonly code: string
587
587
 
588
588
  /**
589
589
  *
590
- * @type {UpdateStatusRequestDto}
591
- * @memberof StatusesApiUpdateStatus
590
+ * @type {PatchStatusRequestDto}
591
+ * @memberof StatusesApiPatchStatus
592
592
  */
593
- readonly updateStatusRequestDto: UpdateStatusRequestDto
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 StatusesApiUpdateStatus
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 {StatusesApiUpdateStatusRequest} requestParameters Request parameters.
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 updateStatus(requestParameters: StatusesApiUpdateStatusRequest, options?: AxiosRequestConfig) {
667
- return StatusesApiFp(this.configuration).updateStatus(requestParameters.code, requestParameters.updateStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
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 { UpdateTaskRequestDto } from '../models';
32
+ import { PatchTaskRequestDto } from '../models';
33
33
  // @ts-ignore
34
- import { UpdateTaskResponseClass } from '../models';
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 {UpdateTaskRequestDto} updateTaskRequestDto
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
- updateTask: async (code: string, updateTaskRequestDto: UpdateTaskRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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('updateTask', 'code', code)
267
- // verify required parameter 'updateTaskRequestDto' is not null or undefined
268
- assertParamExists('updateTask', 'updateTaskRequestDto', updateTaskRequestDto)
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: 'PUT', ...baseOptions, ...options};
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(updateTaskRequestDto, localVarRequestOptions, configuration)
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 {UpdateTaskRequestDto} updateTaskRequestDto
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 updateTask(code: string, updateTaskRequestDto: UpdateTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateTaskResponseClass>> {
379
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateTask(code, updateTaskRequestDto, authorization, options);
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 {UpdateTaskRequestDto} updateTaskRequestDto
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
- updateTask(code: string, updateTaskRequestDto: UpdateTaskRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateTaskResponseClass> {
451
- return localVarFp.updateTask(code, updateTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
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 updateTask operation in TasksApi.
576
+ * Request parameters for patchTask operation in TasksApi.
577
577
  * @export
578
- * @interface TasksApiUpdateTaskRequest
578
+ * @interface TasksApiPatchTaskRequest
579
579
  */
580
- export interface TasksApiUpdateTaskRequest {
580
+ export interface TasksApiPatchTaskRequest {
581
581
  /**
582
582
  *
583
583
  * @type {string}
584
- * @memberof TasksApiUpdateTask
584
+ * @memberof TasksApiPatchTask
585
585
  */
586
586
  readonly code: string
587
587
 
588
588
  /**
589
589
  *
590
- * @type {UpdateTaskRequestDto}
591
- * @memberof TasksApiUpdateTask
590
+ * @type {PatchTaskRequestDto}
591
+ * @memberof TasksApiPatchTask
592
592
  */
593
- readonly updateTaskRequestDto: UpdateTaskRequestDto
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 TasksApiUpdateTask
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 {TasksApiUpdateTaskRequest} requestParameters Request parameters.
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 updateTask(requestParameters: TasksApiUpdateTaskRequest, options?: AxiosRequestConfig) {
667
- return TasksApiFp(this.configuration).updateTask(requestParameters.code, requestParameters.updateTaskRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
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 { UpdateCategoryRequestDto } from '../models';
20
- import { UpdateCategoryResponseClass } from '../models';
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 {UpdateCategoryRequestDto} updateCategoryRequestDto
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
- updateCategory: (code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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 {UpdateCategoryRequestDto} updateCategoryRequestDto
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
- updateCategory(code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCategoryResponseClass>>;
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 {UpdateCategoryRequestDto} updateCategoryRequestDto
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
- updateCategory(code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCategoryResponseClass>;
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 updateCategory operation in CategoriesApi.
299
+ * Request parameters for patchCategory operation in CategoriesApi.
300
300
  * @export
301
- * @interface CategoriesApiUpdateCategoryRequest
301
+ * @interface CategoriesApiPatchCategoryRequest
302
302
  */
303
- export interface CategoriesApiUpdateCategoryRequest {
303
+ export interface CategoriesApiPatchCategoryRequest {
304
304
  /**
305
305
  *
306
306
  * @type {string}
307
- * @memberof CategoriesApiUpdateCategory
307
+ * @memberof CategoriesApiPatchCategory
308
308
  */
309
309
  readonly code: string;
310
310
  /**
311
311
  *
312
- * @type {UpdateCategoryRequestDto}
313
- * @memberof CategoriesApiUpdateCategory
312
+ * @type {PatchCategoryRequestDto}
313
+ * @memberof CategoriesApiPatchCategory
314
314
  */
315
- readonly updateCategoryRequestDto: UpdateCategoryRequestDto;
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 CategoriesApiUpdateCategory
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 {CategoriesApiUpdateCategoryRequest} requestParameters Request parameters.
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
- updateCategory(requestParameters: CategoriesApiUpdateCategoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateCategoryResponseClass, any, {}>>;
374
+ patchCategory(requestParameters: CategoriesApiPatchCategoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchCategoryResponseClass, any, {}>>;
375
375
  }