@emilgroup/task-sdk-node 1.0.1-beta.10 → 1.0.1-beta.4

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 (39) 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 +58 -86
  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 +43 -61
  11. package/dist/api/tasks-api.js +41 -53
  12. package/dist/models/create-task-request-dto.d.ts +3 -3
  13. package/dist/models/index.d.ts +6 -6
  14. package/dist/models/index.js +6 -6
  15. package/dist/models/task-class.d.ts +3 -3
  16. package/dist/models/{patch-category-request-dto.d.ts → update-category-request-dto.d.ts} +7 -7
  17. package/dist/models/{patch-category-response-class.d.ts → update-category-response-class.d.ts} +3 -3
  18. package/dist/models/{patch-status-request-dto.d.ts → update-status-request-dto.d.ts} +7 -7
  19. package/dist/models/{patch-status-response-class.d.ts → update-status-response-class.d.ts} +3 -3
  20. package/dist/models/update-task-request-dto.d.ts +72 -0
  21. package/dist/models/{patch-task-response-class.d.ts → update-task-response-class.d.ts} +3 -3
  22. package/models/create-task-request-dto.ts +3 -3
  23. package/models/index.ts +6 -6
  24. package/models/task-class.ts +3 -3
  25. package/models/{patch-category-request-dto.ts → update-category-request-dto.ts} +7 -7
  26. package/models/{patch-category-response-class.ts → update-category-response-class.ts} +3 -3
  27. package/models/{patch-status-request-dto.ts → update-status-request-dto.ts} +7 -7
  28. package/models/{patch-status-response-class.ts → update-status-response-class.ts} +3 -3
  29. package/models/update-task-request-dto.ts +78 -0
  30. package/models/{patch-task-response-class.ts → update-task-response-class.ts} +3 -3
  31. package/package.json +1 -1
  32. package/dist/models/patch-task-request-dto.d.ts +0 -108
  33. package/models/patch-task-request-dto.ts +0 -114
  34. /package/dist/models/{patch-category-request-dto.js → update-category-request-dto.js} +0 -0
  35. /package/dist/models/{patch-category-response-class.js → update-category-response-class.js} +0 -0
  36. /package/dist/models/{patch-status-request-dto.js → update-status-request-dto.js} +0 -0
  37. /package/dist/models/{patch-status-response-class.js → update-status-response-class.js} +0 -0
  38. /package/dist/models/{patch-task-request-dto.js → update-task-request-dto.js} +0 -0
  39. /package/dist/models/{patch-task-response-class.js → update-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
43
37
  models/status-class.ts
44
38
  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.10 --save
20
+ npm install @emilgroup/task-sdk-node@1.0.1-beta.4 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/task-sdk-node@1.0.1-beta.10
24
+ yarn add @emilgroup/task-sdk-node@1.0.1-beta.4
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 { PatchCategoryRequestDto } from '../models';
32
+ import { UpdateCategoryRequestDto } from '../models';
33
33
  // @ts-ignore
34
- import { PatchCategoryResponseClass } from '../models';
34
+ import { UpdateCategoryResponseClass } 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 partially update a category by code with the provided fields.
256
+ * This will update category.
257
257
  * @summary Update the category
258
258
  * @param {string} code
259
- * @param {PatchCategoryRequestDto} patchCategoryRequestDto
259
+ * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
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
- patchCategory: async (code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
264
+ updateCategory: async (code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
265
265
  // verify required parameter 'code' is not null or undefined
266
- assertParamExists('patchCategory', 'code', code)
267
- // verify required parameter 'patchCategoryRequestDto' is not null or undefined
268
- assertParamExists('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto)
266
+ assertParamExists('updateCategory', 'code', code)
267
+ // verify required parameter 'updateCategoryRequestDto' is not null or undefined
268
+ assertParamExists('updateCategory', 'updateCategoryRequestDto', updateCategoryRequestDto)
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: 'PATCH', ...baseOptions, ...options};
280
+ const localVarRequestOptions = { method: 'PUT', ...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(patchCategoryRequestDto, localVarRequestOptions, configuration)
299
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCategoryRequestDto, 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 partially update a category by code with the provided fields.
370
+ * This will update category.
371
371
  * @summary Update the category
372
372
  * @param {string} code
373
- * @param {PatchCategoryRequestDto} patchCategoryRequestDto
373
+ * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
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 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);
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);
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 partially update a category by code with the provided fields.
442
+ * This will update category.
443
443
  * @summary Update the category
444
444
  * @param {string} code
445
- * @param {PatchCategoryRequestDto} patchCategoryRequestDto
445
+ * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
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
- patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCategoryResponseClass> {
451
- return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
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));
452
452
  },
453
453
  };
454
454
  };
@@ -573,29 +573,29 @@ export interface CategoriesApiListCategoriesRequest {
573
573
  }
574
574
 
575
575
  /**
576
- * Request parameters for patchCategory operation in CategoriesApi.
576
+ * Request parameters for updateCategory operation in CategoriesApi.
577
577
  * @export
578
- * @interface CategoriesApiPatchCategoryRequest
578
+ * @interface CategoriesApiUpdateCategoryRequest
579
579
  */
580
- export interface CategoriesApiPatchCategoryRequest {
580
+ export interface CategoriesApiUpdateCategoryRequest {
581
581
  /**
582
582
  *
583
583
  * @type {string}
584
- * @memberof CategoriesApiPatchCategory
584
+ * @memberof CategoriesApiUpdateCategory
585
585
  */
586
586
  readonly code: string
587
587
 
588
588
  /**
589
589
  *
590
- * @type {PatchCategoryRequestDto}
591
- * @memberof CategoriesApiPatchCategory
590
+ * @type {UpdateCategoryRequestDto}
591
+ * @memberof CategoriesApiUpdateCategory
592
592
  */
593
- readonly patchCategoryRequestDto: PatchCategoryRequestDto
593
+ readonly updateCategoryRequestDto: UpdateCategoryRequestDto
594
594
 
595
595
  /**
596
596
  * Bearer Token: provided by the login endpoint under the name accessToken.
597
597
  * @type {string}
598
- * @memberof CategoriesApiPatchCategory
598
+ * @memberof CategoriesApiUpdateCategory
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 partially update a category by code with the provided fields.
659
+ * This will update category.
660
660
  * @summary Update the category
661
- * @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
661
+ * @param {CategoriesApiUpdateCategoryRequest} requestParameters Request parameters.
662
662
  * @param {*} [options] Override http request option.
663
663
  * @throws {RequiredError}
664
664
  * @memberof CategoriesApi
665
665
  */
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));
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));
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 { PatchStatusRequestDto } from '../models';
32
+ import { UpdateStatusRequestDto } from '../models';
33
33
  // @ts-ignore
34
- import { PatchStatusResponseClass } from '../models';
34
+ import { UpdateStatusResponseClass } 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 partially update a status by code with the provided fields.
256
+ * This will update status.
257
257
  * @summary Update the status
258
258
  * @param {string} code
259
- * @param {PatchStatusRequestDto} patchStatusRequestDto
259
+ * @param {UpdateStatusRequestDto} updateStatusRequestDto
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
- patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
264
+ updateStatus: async (code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
265
265
  // verify required parameter 'code' is not null or undefined
266
- assertParamExists('patchStatus', 'code', code)
267
- // verify required parameter 'patchStatusRequestDto' is not null or undefined
268
- assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
266
+ assertParamExists('updateStatus', 'code', code)
267
+ // verify required parameter 'updateStatusRequestDto' is not null or undefined
268
+ assertParamExists('updateStatus', 'updateStatusRequestDto', updateStatusRequestDto)
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: 'PATCH', ...baseOptions, ...options};
280
+ const localVarRequestOptions = { method: 'PUT', ...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(patchStatusRequestDto, localVarRequestOptions, configuration)
299
+ localVarRequestOptions.data = serializeDataIfNeeded(updateStatusRequestDto, 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 partially update a status by code with the provided fields.
370
+ * This will update status.
371
371
  * @summary Update the status
372
372
  * @param {string} code
373
- * @param {PatchStatusRequestDto} patchStatusRequestDto
373
+ * @param {UpdateStatusRequestDto} updateStatusRequestDto
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 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);
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);
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 partially update a status by code with the provided fields.
442
+ * This will update status.
443
443
  * @summary Update the status
444
444
  * @param {string} code
445
- * @param {PatchStatusRequestDto} patchStatusRequestDto
445
+ * @param {UpdateStatusRequestDto} updateStatusRequestDto
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
- patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
451
- return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
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));
452
452
  },
453
453
  };
454
454
  };
@@ -573,29 +573,29 @@ export interface StatusesApiListStatusesRequest {
573
573
  }
574
574
 
575
575
  /**
576
- * Request parameters for patchStatus operation in StatusesApi.
576
+ * Request parameters for updateStatus operation in StatusesApi.
577
577
  * @export
578
- * @interface StatusesApiPatchStatusRequest
578
+ * @interface StatusesApiUpdateStatusRequest
579
579
  */
580
- export interface StatusesApiPatchStatusRequest {
580
+ export interface StatusesApiUpdateStatusRequest {
581
581
  /**
582
582
  *
583
583
  * @type {string}
584
- * @memberof StatusesApiPatchStatus
584
+ * @memberof StatusesApiUpdateStatus
585
585
  */
586
586
  readonly code: string
587
587
 
588
588
  /**
589
589
  *
590
- * @type {PatchStatusRequestDto}
591
- * @memberof StatusesApiPatchStatus
590
+ * @type {UpdateStatusRequestDto}
591
+ * @memberof StatusesApiUpdateStatus
592
592
  */
593
- readonly patchStatusRequestDto: PatchStatusRequestDto
593
+ readonly updateStatusRequestDto: UpdateStatusRequestDto
594
594
 
595
595
  /**
596
596
  * Bearer Token: provided by the login endpoint under the name accessToken.
597
597
  * @type {string}
598
- * @memberof StatusesApiPatchStatus
598
+ * @memberof StatusesApiUpdateStatus
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 partially update a status by code with the provided fields.
659
+ * This will update status.
660
660
  * @summary Update the status
661
- * @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
661
+ * @param {StatusesApiUpdateStatusRequest} requestParameters Request parameters.
662
662
  * @param {*} [options] Override http request option.
663
663
  * @throws {RequiredError}
664
664
  * @memberof StatusesApi
665
665
  */
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));
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));
668
668
  }
669
669
  }