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

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 +36 -50
  4. package/api/statuses-api.ts +36 -50
  5. package/api/tasks-api.ts +79 -51
  6. package/dist/api/categories-api.d.ts +25 -34
  7. package/dist/api/categories-api.js +26 -32
  8. package/dist/api/statuses-api.d.ts +25 -34
  9. package/dist/api/statuses-api.js +26 -32
  10. package/dist/api/tasks-api.d.ts +54 -36
  11. package/dist/api/tasks-api.js +47 -35
  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.6 --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.6
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';
@@ -192,13 +192,12 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
192
192
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
193
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
194
194
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
195
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, name, slug</i>
196
195
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
197
196
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
198
197
  * @param {*} [options] Override http request option.
199
198
  * @throws {RequiredError}
200
199
  */
201
- listCategories: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
200
+ listCategories: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
201
  const localVarPath = `/taskservice/v1/categories`;
203
202
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
203
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -225,10 +224,6 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
225
224
  localVarQueryParameter['filters'] = filters;
226
225
  }
227
226
 
228
- if (search !== undefined) {
229
- localVarQueryParameter['search'] = search;
230
- }
231
-
232
227
  if (order !== undefined) {
233
228
  localVarQueryParameter['order'] = order;
234
229
  }
@@ -253,19 +248,19 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
253
248
  };
254
249
  },
255
250
  /**
256
- * This will update category.
251
+ * This will partially update a category by code with the provided fields.
257
252
  * @summary Update the category
258
253
  * @param {string} code
259
- * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
254
+ * @param {PatchCategoryRequestDto} patchCategoryRequestDto
260
255
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
261
256
  * @param {*} [options] Override http request option.
262
257
  * @throws {RequiredError}
263
258
  */
264
- updateCategory: async (code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
259
+ patchCategory: async (code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
265
260
  // 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)
261
+ assertParamExists('patchCategory', 'code', code)
262
+ // verify required parameter 'patchCategoryRequestDto' is not null or undefined
263
+ assertParamExists('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto)
269
264
  const localVarPath = `/taskservice/v1/categories/{code}`
270
265
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
271
266
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -277,7 +272,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
277
272
  baseAccessToken = configuration.accessToken;
278
273
  }
279
274
 
280
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
275
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
281
276
  const localVarHeaderParameter = {} as any;
282
277
  const localVarQueryParameter = {} as any;
283
278
 
@@ -296,7 +291,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
296
291
  setSearchParams(localVarUrlObj, localVarQueryParameter);
297
292
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
293
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
299
- localVarRequestOptions.data = serializeDataIfNeeded(updateCategoryRequestDto, localVarRequestOptions, configuration)
294
+ localVarRequestOptions.data = serializeDataIfNeeded(patchCategoryRequestDto, localVarRequestOptions, configuration)
300
295
 
301
296
  return {
302
297
  url: toPathString(localVarUrlObj),
@@ -356,27 +351,26 @@ export const CategoriesApiFp = function(configuration?: Configuration) {
356
351
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
357
352
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
358
353
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
359
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
360
354
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
361
355
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
362
356
  * @param {*} [options] Override http request option.
363
357
  * @throws {RequiredError}
364
358
  */
365
- async listCategories(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>> {
366
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization, filter, filters, search, order, expand, options);
359
+ async listCategories(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>> {
360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization, filter, filters, order, expand, options);
367
361
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
362
  },
369
363
  /**
370
- * This will update category.
364
+ * This will partially update a category by code with the provided fields.
371
365
  * @summary Update the category
372
366
  * @param {string} code
373
- * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
367
+ * @param {PatchCategoryRequestDto} patchCategoryRequestDto
374
368
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
375
369
  * @param {*} [options] Override http request option.
376
370
  * @throws {RequiredError}
377
371
  */
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);
372
+ async patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCategoryResponseClass>> {
373
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options);
380
374
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
381
375
  },
382
376
  }
@@ -429,26 +423,25 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas
429
423
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
424
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
431
425
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
432
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
433
426
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
434
427
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
435
428
  * @param {*} [options] Override http request option.
436
429
  * @throws {RequiredError}
437
430
  */
438
- listCategories(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCategoriesResponseClass> {
439
- return localVarFp.listCategories(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
431
+ listCategories(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCategoriesResponseClass> {
432
+ return localVarFp.listCategories(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
440
433
  },
441
434
  /**
442
- * This will update category.
435
+ * This will partially update a category by code with the provided fields.
443
436
  * @summary Update the category
444
437
  * @param {string} code
445
- * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
438
+ * @param {PatchCategoryRequestDto} patchCategoryRequestDto
446
439
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
447
440
  * @param {*} [options] Override http request option.
448
441
  * @throws {RequiredError}
449
442
  */
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));
443
+ patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCategoryResponseClass> {
444
+ return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
452
445
  },
453
446
  };
454
447
  };
@@ -550,13 +543,6 @@ export interface CategoriesApiListCategoriesRequest {
550
543
  */
551
544
  readonly filters?: string
552
545
 
553
- /**
554
- * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
555
- * @type {string}
556
- * @memberof CategoriesApiListCategories
557
- */
558
- readonly search?: string
559
-
560
546
  /**
561
547
  * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
562
548
  * @type {string}
@@ -573,29 +559,29 @@ export interface CategoriesApiListCategoriesRequest {
573
559
  }
574
560
 
575
561
  /**
576
- * Request parameters for updateCategory operation in CategoriesApi.
562
+ * Request parameters for patchCategory operation in CategoriesApi.
577
563
  * @export
578
- * @interface CategoriesApiUpdateCategoryRequest
564
+ * @interface CategoriesApiPatchCategoryRequest
579
565
  */
580
- export interface CategoriesApiUpdateCategoryRequest {
566
+ export interface CategoriesApiPatchCategoryRequest {
581
567
  /**
582
568
  *
583
569
  * @type {string}
584
- * @memberof CategoriesApiUpdateCategory
570
+ * @memberof CategoriesApiPatchCategory
585
571
  */
586
572
  readonly code: string
587
573
 
588
574
  /**
589
575
  *
590
- * @type {UpdateCategoryRequestDto}
591
- * @memberof CategoriesApiUpdateCategory
576
+ * @type {PatchCategoryRequestDto}
577
+ * @memberof CategoriesApiPatchCategory
592
578
  */
593
- readonly updateCategoryRequestDto: UpdateCategoryRequestDto
579
+ readonly patchCategoryRequestDto: PatchCategoryRequestDto
594
580
 
595
581
  /**
596
582
  * Bearer Token: provided by the login endpoint under the name accessToken.
597
583
  * @type {string}
598
- * @memberof CategoriesApiUpdateCategory
584
+ * @memberof CategoriesApiPatchCategory
599
585
  */
600
586
  readonly authorization?: string
601
587
  }
@@ -652,18 +638,18 @@ export class CategoriesApi extends BaseAPI {
652
638
  * @memberof CategoriesApi
653
639
  */
654
640
  public listCategories(requestParameters: CategoriesApiListCategoriesRequest = {}, options?: AxiosRequestConfig) {
655
- return CategoriesApiFp(this.configuration).listCategories(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
641
+ return CategoriesApiFp(this.configuration).listCategories(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
656
642
  }
657
643
 
658
644
  /**
659
- * This will update category.
645
+ * This will partially update a category by code with the provided fields.
660
646
  * @summary Update the category
661
- * @param {CategoriesApiUpdateCategoryRequest} requestParameters Request parameters.
647
+ * @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
662
648
  * @param {*} [options] Override http request option.
663
649
  * @throws {RequiredError}
664
650
  * @memberof CategoriesApi
665
651
  */
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));
652
+ public patchCategory(requestParameters: CategoriesApiPatchCategoryRequest, options?: AxiosRequestConfig) {
653
+ return CategoriesApiFp(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
668
654
  }
669
655
  }
@@ -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';
@@ -192,13 +192,12 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
192
192
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
193
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
194
194
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
195
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
196
195
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
197
196
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
198
197
  * @param {*} [options] Override http request option.
199
198
  * @throws {RequiredError}
200
199
  */
201
- listStatuses: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
200
+ listStatuses: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
201
  const localVarPath = `/taskservice/v1/statuses`;
203
202
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
203
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -225,10 +224,6 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
225
224
  localVarQueryParameter['filters'] = filters;
226
225
  }
227
226
 
228
- if (search !== undefined) {
229
- localVarQueryParameter['search'] = search;
230
- }
231
-
232
227
  if (order !== undefined) {
233
228
  localVarQueryParameter['order'] = order;
234
229
  }
@@ -253,19 +248,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
253
248
  };
254
249
  },
255
250
  /**
256
- * This will update status.
251
+ * This will partially update a status by code with the provided fields.
257
252
  * @summary Update the status
258
253
  * @param {string} code
259
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
254
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
260
255
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
261
256
  * @param {*} [options] Override http request option.
262
257
  * @throws {RequiredError}
263
258
  */
264
- updateStatus: async (code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
259
+ patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
265
260
  // 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)
261
+ assertParamExists('patchStatus', 'code', code)
262
+ // verify required parameter 'patchStatusRequestDto' is not null or undefined
263
+ assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
269
264
  const localVarPath = `/taskservice/v1/statuses/{code}`
270
265
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
271
266
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -277,7 +272,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
277
272
  baseAccessToken = configuration.accessToken;
278
273
  }
279
274
 
280
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
275
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
281
276
  const localVarHeaderParameter = {} as any;
282
277
  const localVarQueryParameter = {} as any;
283
278
 
@@ -296,7 +291,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
296
291
  setSearchParams(localVarUrlObj, localVarQueryParameter);
297
292
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
293
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
299
- localVarRequestOptions.data = serializeDataIfNeeded(updateStatusRequestDto, localVarRequestOptions, configuration)
294
+ localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration)
300
295
 
301
296
  return {
302
297
  url: toPathString(localVarUrlObj),
@@ -356,27 +351,26 @@ export const StatusesApiFp = function(configuration?: Configuration) {
356
351
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
357
352
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
358
353
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
359
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
360
354
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
361
355
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
362
356
  * @param {*} [options] Override http request option.
363
357
  * @throws {RequiredError}
364
358
  */
365
- async listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusesResponseClass>> {
366
- const localVarAxiosArgs = await localVarAxiosParamCreator.listStatuses(authorization, filter, filters, search, order, expand, options);
359
+ async listStatuses(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusesResponseClass>> {
360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listStatuses(authorization, filter, filters, order, expand, options);
367
361
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
362
  },
369
363
  /**
370
- * This will update status.
364
+ * This will partially update a status by code with the provided fields.
371
365
  * @summary Update the status
372
366
  * @param {string} code
373
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
367
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
374
368
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
375
369
  * @param {*} [options] Override http request option.
376
370
  * @throws {RequiredError}
377
371
  */
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);
372
+ async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> {
373
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options);
380
374
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
381
375
  },
382
376
  }
@@ -429,26 +423,25 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
429
423
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
424
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
431
425
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
432
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
433
426
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
434
427
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
435
428
  * @param {*} [options] Override http request option.
436
429
  * @throws {RequiredError}
437
430
  */
438
- listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListStatusesResponseClass> {
439
- return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
431
+ listStatuses(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListStatusesResponseClass> {
432
+ return localVarFp.listStatuses(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
440
433
  },
441
434
  /**
442
- * This will update status.
435
+ * This will partially update a status by code with the provided fields.
443
436
  * @summary Update the status
444
437
  * @param {string} code
445
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
438
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
446
439
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
447
440
  * @param {*} [options] Override http request option.
448
441
  * @throws {RequiredError}
449
442
  */
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));
443
+ patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
444
+ return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
452
445
  },
453
446
  };
454
447
  };
@@ -550,13 +543,6 @@ export interface StatusesApiListStatusesRequest {
550
543
  */
551
544
  readonly filters?: string
552
545
 
553
- /**
554
- * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
555
- * @type {string}
556
- * @memberof StatusesApiListStatuses
557
- */
558
- readonly search?: string
559
-
560
546
  /**
561
547
  * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
562
548
  * @type {string}
@@ -573,29 +559,29 @@ export interface StatusesApiListStatusesRequest {
573
559
  }
574
560
 
575
561
  /**
576
- * Request parameters for updateStatus operation in StatusesApi.
562
+ * Request parameters for patchStatus operation in StatusesApi.
577
563
  * @export
578
- * @interface StatusesApiUpdateStatusRequest
564
+ * @interface StatusesApiPatchStatusRequest
579
565
  */
580
- export interface StatusesApiUpdateStatusRequest {
566
+ export interface StatusesApiPatchStatusRequest {
581
567
  /**
582
568
  *
583
569
  * @type {string}
584
- * @memberof StatusesApiUpdateStatus
570
+ * @memberof StatusesApiPatchStatus
585
571
  */
586
572
  readonly code: string
587
573
 
588
574
  /**
589
575
  *
590
- * @type {UpdateStatusRequestDto}
591
- * @memberof StatusesApiUpdateStatus
576
+ * @type {PatchStatusRequestDto}
577
+ * @memberof StatusesApiPatchStatus
592
578
  */
593
- readonly updateStatusRequestDto: UpdateStatusRequestDto
579
+ readonly patchStatusRequestDto: PatchStatusRequestDto
594
580
 
595
581
  /**
596
582
  * Bearer Token: provided by the login endpoint under the name accessToken.
597
583
  * @type {string}
598
- * @memberof StatusesApiUpdateStatus
584
+ * @memberof StatusesApiPatchStatus
599
585
  */
600
586
  readonly authorization?: string
601
587
  }
@@ -652,18 +638,18 @@ export class StatusesApi extends BaseAPI {
652
638
  * @memberof StatusesApi
653
639
  */
654
640
  public listStatuses(requestParameters: StatusesApiListStatusesRequest = {}, options?: AxiosRequestConfig) {
655
- return StatusesApiFp(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
641
+ return StatusesApiFp(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
656
642
  }
657
643
 
658
644
  /**
659
- * This will update status.
645
+ * This will partially update a status by code with the provided fields.
660
646
  * @summary Update the status
661
- * @param {StatusesApiUpdateStatusRequest} requestParameters Request parameters.
647
+ * @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
662
648
  * @param {*} [options] Override http request option.
663
649
  * @throws {RequiredError}
664
650
  * @memberof StatusesApi
665
651
  */
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));
652
+ public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) {
653
+ return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
668
654
  }
669
655
  }