@emilgroup/task-sdk 1.0.1-beta.10 → 1.0.1-beta.3

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@1.0.1-beta.10 --save
20
+ npm install @emilgroup/task-sdk@1.0.1-beta.3 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/task-sdk@1.0.1-beta.10
24
+ yarn add @emilgroup/task-sdk@1.0.1-beta.3
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
  /**
36
36
  * CategoriesApi - axios parameter creator
37
37
  * @export
@@ -249,19 +249,19 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
249
249
  };
250
250
  },
251
251
  /**
252
- * This will partially update a category by code with the provided fields.
252
+ * This will update category.
253
253
  * @summary Update the category
254
254
  * @param {string} code
255
- * @param {PatchCategoryRequestDto} patchCategoryRequestDto
255
+ * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
256
256
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
257
257
  * @param {*} [options] Override http request option.
258
258
  * @throws {RequiredError}
259
259
  */
260
- patchCategory: async (code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
260
+ updateCategory: async (code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
261
261
  // verify required parameter 'code' is not null or undefined
262
- assertParamExists('patchCategory', 'code', code)
263
- // verify required parameter 'patchCategoryRequestDto' is not null or undefined
264
- assertParamExists('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto)
262
+ assertParamExists('updateCategory', 'code', code)
263
+ // verify required parameter 'updateCategoryRequestDto' is not null or undefined
264
+ assertParamExists('updateCategory', 'updateCategoryRequestDto', updateCategoryRequestDto)
265
265
  const localVarPath = `/taskservice/v1/categories/{code}`
266
266
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
267
267
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -273,7 +273,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
273
273
  baseAccessToken = configuration.accessToken;
274
274
  }
275
275
 
276
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
276
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
277
277
  const localVarHeaderParameter = {} as any;
278
278
  const localVarQueryParameter = {} as any;
279
279
 
@@ -292,7 +292,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
292
292
  setSearchParams(localVarUrlObj, localVarQueryParameter);
293
293
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
294
294
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
295
- localVarRequestOptions.data = serializeDataIfNeeded(patchCategoryRequestDto, localVarRequestOptions, configuration)
295
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCategoryRequestDto, localVarRequestOptions, configuration)
296
296
 
297
297
  return {
298
298
  url: toPathString(localVarUrlObj),
@@ -363,16 +363,16 @@ export const CategoriesApiFp = function(configuration?: Configuration) {
363
363
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
364
  },
365
365
  /**
366
- * This will partially update a category by code with the provided fields.
366
+ * This will update category.
367
367
  * @summary Update the category
368
368
  * @param {string} code
369
- * @param {PatchCategoryRequestDto} patchCategoryRequestDto
369
+ * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
370
370
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
371
371
  * @param {*} [options] Override http request option.
372
372
  * @throws {RequiredError}
373
373
  */
374
- async patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCategoryResponseClass>> {
375
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options);
374
+ async updateCategory(code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCategoryResponseClass>> {
375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCategory(code, updateCategoryRequestDto, authorization, options);
376
376
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
377
377
  },
378
378
  }
@@ -435,16 +435,16 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas
435
435
  return localVarFp.listCategories(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
436
436
  },
437
437
  /**
438
- * This will partially update a category by code with the provided fields.
438
+ * This will update category.
439
439
  * @summary Update the category
440
440
  * @param {string} code
441
- * @param {PatchCategoryRequestDto} patchCategoryRequestDto
441
+ * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
442
442
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
443
443
  * @param {*} [options] Override http request option.
444
444
  * @throws {RequiredError}
445
445
  */
446
- patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCategoryResponseClass> {
447
- return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
446
+ updateCategory(code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCategoryResponseClass> {
447
+ return localVarFp.updateCategory(code, updateCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
448
448
  },
449
449
  };
450
450
  };
@@ -569,29 +569,29 @@ export interface CategoriesApiListCategoriesRequest {
569
569
  }
570
570
 
571
571
  /**
572
- * Request parameters for patchCategory operation in CategoriesApi.
572
+ * Request parameters for updateCategory operation in CategoriesApi.
573
573
  * @export
574
- * @interface CategoriesApiPatchCategoryRequest
574
+ * @interface CategoriesApiUpdateCategoryRequest
575
575
  */
576
- export interface CategoriesApiPatchCategoryRequest {
576
+ export interface CategoriesApiUpdateCategoryRequest {
577
577
  /**
578
578
  *
579
579
  * @type {string}
580
- * @memberof CategoriesApiPatchCategory
580
+ * @memberof CategoriesApiUpdateCategory
581
581
  */
582
582
  readonly code: string
583
583
 
584
584
  /**
585
585
  *
586
- * @type {PatchCategoryRequestDto}
587
- * @memberof CategoriesApiPatchCategory
586
+ * @type {UpdateCategoryRequestDto}
587
+ * @memberof CategoriesApiUpdateCategory
588
588
  */
589
- readonly patchCategoryRequestDto: PatchCategoryRequestDto
589
+ readonly updateCategoryRequestDto: UpdateCategoryRequestDto
590
590
 
591
591
  /**
592
592
  * Bearer Token: provided by the login endpoint under the name accessToken.
593
593
  * @type {string}
594
- * @memberof CategoriesApiPatchCategory
594
+ * @memberof CategoriesApiUpdateCategory
595
595
  */
596
596
  readonly authorization?: string
597
597
  }
@@ -652,14 +652,14 @@ export class CategoriesApi extends BaseAPI {
652
652
  }
653
653
 
654
654
  /**
655
- * This will partially update a category by code with the provided fields.
655
+ * This will update category.
656
656
  * @summary Update the category
657
- * @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
657
+ * @param {CategoriesApiUpdateCategoryRequest} requestParameters Request parameters.
658
658
  * @param {*} [options] Override http request option.
659
659
  * @throws {RequiredError}
660
660
  * @memberof CategoriesApi
661
661
  */
662
- public patchCategory(requestParameters: CategoriesApiPatchCategoryRequest, options?: AxiosRequestConfig) {
663
- return CategoriesApiFp(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
662
+ public updateCategory(requestParameters: CategoriesApiUpdateCategoryRequest, options?: AxiosRequestConfig) {
663
+ return CategoriesApiFp(this.configuration).updateCategory(requestParameters.code, requestParameters.updateCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
664
664
  }
665
665
  }
@@ -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
  /**
36
36
  * StatusesApi - axios parameter creator
37
37
  * @export
@@ -249,19 +249,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
249
249
  };
250
250
  },
251
251
  /**
252
- * This will partially update a status by code with the provided fields.
252
+ * This will update status.
253
253
  * @summary Update the status
254
254
  * @param {string} code
255
- * @param {PatchStatusRequestDto} patchStatusRequestDto
255
+ * @param {UpdateStatusRequestDto} updateStatusRequestDto
256
256
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
257
257
  * @param {*} [options] Override http request option.
258
258
  * @throws {RequiredError}
259
259
  */
260
- patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
260
+ updateStatus: async (code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
261
261
  // verify required parameter 'code' is not null or undefined
262
- assertParamExists('patchStatus', 'code', code)
263
- // verify required parameter 'patchStatusRequestDto' is not null or undefined
264
- assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
262
+ assertParamExists('updateStatus', 'code', code)
263
+ // verify required parameter 'updateStatusRequestDto' is not null or undefined
264
+ assertParamExists('updateStatus', 'updateStatusRequestDto', updateStatusRequestDto)
265
265
  const localVarPath = `/taskservice/v1/statuses/{code}`
266
266
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
267
267
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -273,7 +273,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
273
273
  baseAccessToken = configuration.accessToken;
274
274
  }
275
275
 
276
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
276
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
277
277
  const localVarHeaderParameter = {} as any;
278
278
  const localVarQueryParameter = {} as any;
279
279
 
@@ -292,7 +292,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
292
292
  setSearchParams(localVarUrlObj, localVarQueryParameter);
293
293
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
294
294
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
295
- localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration)
295
+ localVarRequestOptions.data = serializeDataIfNeeded(updateStatusRequestDto, localVarRequestOptions, configuration)
296
296
 
297
297
  return {
298
298
  url: toPathString(localVarUrlObj),
@@ -363,16 +363,16 @@ export const StatusesApiFp = function(configuration?: Configuration) {
363
363
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
364
  },
365
365
  /**
366
- * This will partially update a status by code with the provided fields.
366
+ * This will update status.
367
367
  * @summary Update the status
368
368
  * @param {string} code
369
- * @param {PatchStatusRequestDto} patchStatusRequestDto
369
+ * @param {UpdateStatusRequestDto} updateStatusRequestDto
370
370
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
371
371
  * @param {*} [options] Override http request option.
372
372
  * @throws {RequiredError}
373
373
  */
374
- async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> {
375
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options);
374
+ async updateStatus(code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateStatusResponseClass>> {
375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateStatus(code, updateStatusRequestDto, authorization, options);
376
376
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
377
377
  },
378
378
  }
@@ -435,16 +435,16 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
435
435
  return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
436
436
  },
437
437
  /**
438
- * This will partially update a status by code with the provided fields.
438
+ * This will update status.
439
439
  * @summary Update the status
440
440
  * @param {string} code
441
- * @param {PatchStatusRequestDto} patchStatusRequestDto
441
+ * @param {UpdateStatusRequestDto} updateStatusRequestDto
442
442
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
443
443
  * @param {*} [options] Override http request option.
444
444
  * @throws {RequiredError}
445
445
  */
446
- patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
447
- return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
446
+ updateStatus(code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateStatusResponseClass> {
447
+ return localVarFp.updateStatus(code, updateStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
448
448
  },
449
449
  };
450
450
  };
@@ -569,29 +569,29 @@ export interface StatusesApiListStatusesRequest {
569
569
  }
570
570
 
571
571
  /**
572
- * Request parameters for patchStatus operation in StatusesApi.
572
+ * Request parameters for updateStatus operation in StatusesApi.
573
573
  * @export
574
- * @interface StatusesApiPatchStatusRequest
574
+ * @interface StatusesApiUpdateStatusRequest
575
575
  */
576
- export interface StatusesApiPatchStatusRequest {
576
+ export interface StatusesApiUpdateStatusRequest {
577
577
  /**
578
578
  *
579
579
  * @type {string}
580
- * @memberof StatusesApiPatchStatus
580
+ * @memberof StatusesApiUpdateStatus
581
581
  */
582
582
  readonly code: string
583
583
 
584
584
  /**
585
585
  *
586
- * @type {PatchStatusRequestDto}
587
- * @memberof StatusesApiPatchStatus
586
+ * @type {UpdateStatusRequestDto}
587
+ * @memberof StatusesApiUpdateStatus
588
588
  */
589
- readonly patchStatusRequestDto: PatchStatusRequestDto
589
+ readonly updateStatusRequestDto: UpdateStatusRequestDto
590
590
 
591
591
  /**
592
592
  * Bearer Token: provided by the login endpoint under the name accessToken.
593
593
  * @type {string}
594
- * @memberof StatusesApiPatchStatus
594
+ * @memberof StatusesApiUpdateStatus
595
595
  */
596
596
  readonly authorization?: string
597
597
  }
@@ -652,14 +652,14 @@ export class StatusesApi extends BaseAPI {
652
652
  }
653
653
 
654
654
  /**
655
- * This will partially update a status by code with the provided fields.
655
+ * This will update status.
656
656
  * @summary Update the status
657
- * @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
657
+ * @param {StatusesApiUpdateStatusRequest} requestParameters Request parameters.
658
658
  * @param {*} [options] Override http request option.
659
659
  * @throws {RequiredError}
660
660
  * @memberof StatusesApi
661
661
  */
662
- public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) {
663
- return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
662
+ public updateStatus(requestParameters: StatusesApiUpdateStatusRequest, options?: AxiosRequestConfig) {
663
+ return StatusesApiFp(this.configuration).updateStatus(requestParameters.code, requestParameters.updateStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
664
664
  }
665
665
  }