@emilgroup/task-sdk 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@1.0.1-beta.4 --save
20
+ npm install @emilgroup/task-sdk@1.0.1-beta.6 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/task-sdk@1.0.1-beta.4
24
+ yarn add @emilgroup/task-sdk@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
  /**
36
36
  * CategoriesApi - axios parameter creator
37
37
  * @export
@@ -188,13 +188,12 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
188
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
189
  * @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>
190
190
  * @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>
191
- * @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>
192
191
  * @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>
193
192
  * @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/>
194
193
  * @param {*} [options] Override http request option.
195
194
  * @throws {RequiredError}
196
195
  */
197
- listCategories: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
196
+ listCategories: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
198
197
  const localVarPath = `/taskservice/v1/categories`;
199
198
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
200
199
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -221,10 +220,6 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
221
220
  localVarQueryParameter['filters'] = filters;
222
221
  }
223
222
 
224
- if (search !== undefined) {
225
- localVarQueryParameter['search'] = search;
226
- }
227
-
228
223
  if (order !== undefined) {
229
224
  localVarQueryParameter['order'] = order;
230
225
  }
@@ -249,19 +244,19 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
249
244
  };
250
245
  },
251
246
  /**
252
- * This will update category.
247
+ * This will partially update a category by code with the provided fields.
253
248
  * @summary Update the category
254
249
  * @param {string} code
255
- * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
250
+ * @param {PatchCategoryRequestDto} patchCategoryRequestDto
256
251
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
257
252
  * @param {*} [options] Override http request option.
258
253
  * @throws {RequiredError}
259
254
  */
260
- updateCategory: async (code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
255
+ patchCategory: async (code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
261
256
  // verify required parameter 'code' is not null or undefined
262
- assertParamExists('updateCategory', 'code', code)
263
- // verify required parameter 'updateCategoryRequestDto' is not null or undefined
264
- assertParamExists('updateCategory', 'updateCategoryRequestDto', updateCategoryRequestDto)
257
+ assertParamExists('patchCategory', 'code', code)
258
+ // verify required parameter 'patchCategoryRequestDto' is not null or undefined
259
+ assertParamExists('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto)
265
260
  const localVarPath = `/taskservice/v1/categories/{code}`
266
261
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
267
262
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -273,7 +268,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
273
268
  baseAccessToken = configuration.accessToken;
274
269
  }
275
270
 
276
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
271
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
277
272
  const localVarHeaderParameter = {} as any;
278
273
  const localVarQueryParameter = {} as any;
279
274
 
@@ -292,7 +287,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
292
287
  setSearchParams(localVarUrlObj, localVarQueryParameter);
293
288
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
294
289
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
295
- localVarRequestOptions.data = serializeDataIfNeeded(updateCategoryRequestDto, localVarRequestOptions, configuration)
290
+ localVarRequestOptions.data = serializeDataIfNeeded(patchCategoryRequestDto, localVarRequestOptions, configuration)
296
291
 
297
292
  return {
298
293
  url: toPathString(localVarUrlObj),
@@ -352,27 +347,26 @@ export const CategoriesApiFp = function(configuration?: Configuration) {
352
347
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
353
348
  * @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;
354
349
  * @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;
355
- * @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;
356
350
  * @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;
357
351
  * @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;
358
352
  * @param {*} [options] Override http request option.
359
353
  * @throws {RequiredError}
360
354
  */
361
- async listCategories(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>> {
362
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization, filter, filters, search, order, expand, options);
355
+ async listCategories(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>> {
356
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization, filter, filters, order, expand, options);
363
357
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
358
  },
365
359
  /**
366
- * This will update category.
360
+ * This will partially update a category by code with the provided fields.
367
361
  * @summary Update the category
368
362
  * @param {string} code
369
- * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
363
+ * @param {PatchCategoryRequestDto} patchCategoryRequestDto
370
364
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
371
365
  * @param {*} [options] Override http request option.
372
366
  * @throws {RequiredError}
373
367
  */
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);
368
+ async patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCategoryResponseClass>> {
369
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options);
376
370
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
377
371
  },
378
372
  }
@@ -425,26 +419,25 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas
425
419
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
426
420
  * @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;
427
421
  * @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;
428
- * @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;
429
422
  * @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;
430
423
  * @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;
431
424
  * @param {*} [options] Override http request option.
432
425
  * @throws {RequiredError}
433
426
  */
434
- listCategories(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCategoriesResponseClass> {
435
- return localVarFp.listCategories(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
427
+ listCategories(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCategoriesResponseClass> {
428
+ return localVarFp.listCategories(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
436
429
  },
437
430
  /**
438
- * This will update category.
431
+ * This will partially update a category by code with the provided fields.
439
432
  * @summary Update the category
440
433
  * @param {string} code
441
- * @param {UpdateCategoryRequestDto} updateCategoryRequestDto
434
+ * @param {PatchCategoryRequestDto} patchCategoryRequestDto
442
435
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
443
436
  * @param {*} [options] Override http request option.
444
437
  * @throws {RequiredError}
445
438
  */
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));
439
+ patchCategory(code: string, patchCategoryRequestDto: PatchCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCategoryResponseClass> {
440
+ return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
448
441
  },
449
442
  };
450
443
  };
@@ -546,13 +539,6 @@ export interface CategoriesApiListCategoriesRequest {
546
539
  */
547
540
  readonly filters?: string
548
541
 
549
- /**
550
- * 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;
551
- * @type {string}
552
- * @memberof CategoriesApiListCategories
553
- */
554
- readonly search?: string
555
-
556
542
  /**
557
543
  * 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;
558
544
  * @type {string}
@@ -569,29 +555,29 @@ export interface CategoriesApiListCategoriesRequest {
569
555
  }
570
556
 
571
557
  /**
572
- * Request parameters for updateCategory operation in CategoriesApi.
558
+ * Request parameters for patchCategory operation in CategoriesApi.
573
559
  * @export
574
- * @interface CategoriesApiUpdateCategoryRequest
560
+ * @interface CategoriesApiPatchCategoryRequest
575
561
  */
576
- export interface CategoriesApiUpdateCategoryRequest {
562
+ export interface CategoriesApiPatchCategoryRequest {
577
563
  /**
578
564
  *
579
565
  * @type {string}
580
- * @memberof CategoriesApiUpdateCategory
566
+ * @memberof CategoriesApiPatchCategory
581
567
  */
582
568
  readonly code: string
583
569
 
584
570
  /**
585
571
  *
586
- * @type {UpdateCategoryRequestDto}
587
- * @memberof CategoriesApiUpdateCategory
572
+ * @type {PatchCategoryRequestDto}
573
+ * @memberof CategoriesApiPatchCategory
588
574
  */
589
- readonly updateCategoryRequestDto: UpdateCategoryRequestDto
575
+ readonly patchCategoryRequestDto: PatchCategoryRequestDto
590
576
 
591
577
  /**
592
578
  * Bearer Token: provided by the login endpoint under the name accessToken.
593
579
  * @type {string}
594
- * @memberof CategoriesApiUpdateCategory
580
+ * @memberof CategoriesApiPatchCategory
595
581
  */
596
582
  readonly authorization?: string
597
583
  }
@@ -648,18 +634,18 @@ export class CategoriesApi extends BaseAPI {
648
634
  * @memberof CategoriesApi
649
635
  */
650
636
  public listCategories(requestParameters: CategoriesApiListCategoriesRequest = {}, options?: AxiosRequestConfig) {
651
- 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));
637
+ return CategoriesApiFp(this.configuration).listCategories(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
652
638
  }
653
639
 
654
640
  /**
655
- * This will update category.
641
+ * This will partially update a category by code with the provided fields.
656
642
  * @summary Update the category
657
- * @param {CategoriesApiUpdateCategoryRequest} requestParameters Request parameters.
643
+ * @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
658
644
  * @param {*} [options] Override http request option.
659
645
  * @throws {RequiredError}
660
646
  * @memberof CategoriesApi
661
647
  */
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));
648
+ public patchCategory(requestParameters: CategoriesApiPatchCategoryRequest, options?: AxiosRequestConfig) {
649
+ return CategoriesApiFp(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
664
650
  }
665
651
  }
@@ -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
  /**
36
36
  * StatusesApi - axios parameter creator
37
37
  * @export
@@ -188,13 +188,12 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
188
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
189
  * @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;
190
190
  * @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;
191
- * @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;
192
191
  * @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;
193
192
  * @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;
194
193
  * @param {*} [options] Override http request option.
195
194
  * @throws {RequiredError}
196
195
  */
197
- listStatuses: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
196
+ listStatuses: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
198
197
  const localVarPath = `/taskservice/v1/statuses`;
199
198
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
200
199
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -221,10 +220,6 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
221
220
  localVarQueryParameter['filters'] = filters;
222
221
  }
223
222
 
224
- if (search !== undefined) {
225
- localVarQueryParameter['search'] = search;
226
- }
227
-
228
223
  if (order !== undefined) {
229
224
  localVarQueryParameter['order'] = order;
230
225
  }
@@ -249,19 +244,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
249
244
  };
250
245
  },
251
246
  /**
252
- * This will update status.
247
+ * This will partially update a status by code with the provided fields.
253
248
  * @summary Update the status
254
249
  * @param {string} code
255
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
250
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
256
251
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
257
252
  * @param {*} [options] Override http request option.
258
253
  * @throws {RequiredError}
259
254
  */
260
- updateStatus: async (code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
255
+ patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
261
256
  // verify required parameter 'code' is not null or undefined
262
- assertParamExists('updateStatus', 'code', code)
263
- // verify required parameter 'updateStatusRequestDto' is not null or undefined
264
- assertParamExists('updateStatus', 'updateStatusRequestDto', updateStatusRequestDto)
257
+ assertParamExists('patchStatus', 'code', code)
258
+ // verify required parameter 'patchStatusRequestDto' is not null or undefined
259
+ assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
265
260
  const localVarPath = `/taskservice/v1/statuses/{code}`
266
261
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
267
262
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -273,7 +268,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
273
268
  baseAccessToken = configuration.accessToken;
274
269
  }
275
270
 
276
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
271
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
277
272
  const localVarHeaderParameter = {} as any;
278
273
  const localVarQueryParameter = {} as any;
279
274
 
@@ -292,7 +287,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
292
287
  setSearchParams(localVarUrlObj, localVarQueryParameter);
293
288
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
294
289
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
295
- localVarRequestOptions.data = serializeDataIfNeeded(updateStatusRequestDto, localVarRequestOptions, configuration)
290
+ localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration)
296
291
 
297
292
  return {
298
293
  url: toPathString(localVarUrlObj),
@@ -352,27 +347,26 @@ export const StatusesApiFp = function(configuration?: Configuration) {
352
347
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
353
348
  * @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;
354
349
  * @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;
355
- * @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;
356
350
  * @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;
357
351
  * @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;
358
352
  * @param {*} [options] Override http request option.
359
353
  * @throws {RequiredError}
360
354
  */
361
- async listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusesResponseClass>> {
362
- const localVarAxiosArgs = await localVarAxiosParamCreator.listStatuses(authorization, filter, filters, search, order, expand, options);
355
+ async listStatuses(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusesResponseClass>> {
356
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listStatuses(authorization, filter, filters, order, expand, options);
363
357
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
358
  },
365
359
  /**
366
- * This will update status.
360
+ * This will partially update a status by code with the provided fields.
367
361
  * @summary Update the status
368
362
  * @param {string} code
369
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
363
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
370
364
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
371
365
  * @param {*} [options] Override http request option.
372
366
  * @throws {RequiredError}
373
367
  */
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);
368
+ async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> {
369
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options);
376
370
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
377
371
  },
378
372
  }
@@ -425,26 +419,25 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
425
419
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
426
420
  * @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;
427
421
  * @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;
428
- * @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;
429
422
  * @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;
430
423
  * @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;
431
424
  * @param {*} [options] Override http request option.
432
425
  * @throws {RequiredError}
433
426
  */
434
- listStatuses(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListStatusesResponseClass> {
435
- return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
427
+ listStatuses(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListStatusesResponseClass> {
428
+ return localVarFp.listStatuses(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
436
429
  },
437
430
  /**
438
- * This will update status.
431
+ * This will partially update a status by code with the provided fields.
439
432
  * @summary Update the status
440
433
  * @param {string} code
441
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
434
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
442
435
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
443
436
  * @param {*} [options] Override http request option.
444
437
  * @throws {RequiredError}
445
438
  */
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));
439
+ patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
440
+ return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
448
441
  },
449
442
  };
450
443
  };
@@ -546,13 +539,6 @@ export interface StatusesApiListStatusesRequest {
546
539
  */
547
540
  readonly filters?: string
548
541
 
549
- /**
550
- * 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;
551
- * @type {string}
552
- * @memberof StatusesApiListStatuses
553
- */
554
- readonly search?: string
555
-
556
542
  /**
557
543
  * 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;
558
544
  * @type {string}
@@ -569,29 +555,29 @@ export interface StatusesApiListStatusesRequest {
569
555
  }
570
556
 
571
557
  /**
572
- * Request parameters for updateStatus operation in StatusesApi.
558
+ * Request parameters for patchStatus operation in StatusesApi.
573
559
  * @export
574
- * @interface StatusesApiUpdateStatusRequest
560
+ * @interface StatusesApiPatchStatusRequest
575
561
  */
576
- export interface StatusesApiUpdateStatusRequest {
562
+ export interface StatusesApiPatchStatusRequest {
577
563
  /**
578
564
  *
579
565
  * @type {string}
580
- * @memberof StatusesApiUpdateStatus
566
+ * @memberof StatusesApiPatchStatus
581
567
  */
582
568
  readonly code: string
583
569
 
584
570
  /**
585
571
  *
586
- * @type {UpdateStatusRequestDto}
587
- * @memberof StatusesApiUpdateStatus
572
+ * @type {PatchStatusRequestDto}
573
+ * @memberof StatusesApiPatchStatus
588
574
  */
589
- readonly updateStatusRequestDto: UpdateStatusRequestDto
575
+ readonly patchStatusRequestDto: PatchStatusRequestDto
590
576
 
591
577
  /**
592
578
  * Bearer Token: provided by the login endpoint under the name accessToken.
593
579
  * @type {string}
594
- * @memberof StatusesApiUpdateStatus
580
+ * @memberof StatusesApiPatchStatus
595
581
  */
596
582
  readonly authorization?: string
597
583
  }
@@ -648,18 +634,18 @@ export class StatusesApi extends BaseAPI {
648
634
  * @memberof StatusesApi
649
635
  */
650
636
  public listStatuses(requestParameters: StatusesApiListStatusesRequest = {}, options?: AxiosRequestConfig) {
651
- 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));
637
+ return StatusesApiFp(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
652
638
  }
653
639
 
654
640
  /**
655
- * This will update status.
641
+ * This will partially update a status by code with the provided fields.
656
642
  * @summary Update the status
657
- * @param {StatusesApiUpdateStatusRequest} requestParameters Request parameters.
643
+ * @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
658
644
  * @param {*} [options] Override http request option.
659
645
  * @throws {RequiredError}
660
646
  * @memberof StatusesApi
661
647
  */
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));
648
+ public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) {
649
+ return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
664
650
  }
665
651
  }