@emilgroup/task-sdk-node 1.0.1-beta.1 → 1.0.1-beta.11

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 (72) hide show
  1. package/.openapi-generator/FILES +9 -11
  2. package/README.md +2 -2
  3. package/api/assignees-api.ts +166 -0
  4. package/api/categories-api.ts +74 -60
  5. package/api/statuses-api.ts +70 -56
  6. package/api/tasks-api.ts +105 -63
  7. package/api.ts +2 -2
  8. package/dist/api/assignees-api.d.ts +96 -0
  9. package/dist/api/{priorities-api.js → assignees-api.js} +41 -141
  10. package/dist/api/categories-api.d.ts +58 -49
  11. package/dist/api/categories-api.js +53 -47
  12. package/dist/api/statuses-api.d.ts +54 -45
  13. package/dist/api/statuses-api.js +49 -43
  14. package/dist/api/tasks-api.d.ts +77 -50
  15. package/dist/api/tasks-api.js +66 -48
  16. package/dist/api.d.ts +1 -1
  17. package/dist/api.js +1 -1
  18. package/dist/models/{create-priority-request-dto.d.ts → assignee-class.d.ts} +5 -5
  19. package/dist/models/category-class.d.ts +6 -0
  20. package/dist/models/create-category-request-dto.d.ts +7 -1
  21. package/dist/models/create-status-request-dto.d.ts +7 -1
  22. package/dist/models/create-task-request-dto.d.ts +31 -13
  23. package/dist/models/create-task-request-dto.js +6 -0
  24. package/dist/models/index.d.ts +8 -10
  25. package/dist/models/index.js +8 -10
  26. package/dist/models/list-assignees-response-class.d.ts +43 -0
  27. package/dist/models/patch-category-request-dto.d.ts +36 -0
  28. package/dist/models/{update-category-response-class.d.ts → patch-category-response-class.d.ts} +3 -3
  29. package/dist/models/{update-status-request-dto.d.ts → patch-status-request-dto.d.ts} +13 -7
  30. package/dist/models/{update-status-response-class.d.ts → patch-status-response-class.d.ts} +3 -3
  31. package/dist/models/patch-task-request-dto.d.ts +108 -0
  32. package/dist/models/{update-task-response-class.d.ts → patch-task-response-class.d.ts} +3 -3
  33. package/dist/models/status-class.d.ts +6 -0
  34. package/dist/models/task-class.d.ts +25 -8
  35. package/dist/models/task-class.js +6 -0
  36. package/models/{create-priority-request-dto.ts → assignee-class.ts} +5 -5
  37. package/models/category-class.ts +6 -0
  38. package/models/create-category-request-dto.ts +7 -1
  39. package/models/create-status-request-dto.ts +7 -1
  40. package/models/create-task-request-dto.ts +34 -13
  41. package/models/index.ts +8 -10
  42. package/models/list-assignees-response-class.ts +49 -0
  43. package/models/{update-category-request-dto.ts → patch-category-request-dto.ts} +13 -7
  44. package/models/{update-category-response-class.ts → patch-category-response-class.ts} +3 -3
  45. package/models/{update-status-request-dto.ts → patch-status-request-dto.ts} +13 -7
  46. package/models/{update-status-response-class.ts → patch-status-response-class.ts} +3 -3
  47. package/models/patch-task-request-dto.ts +114 -0
  48. package/models/{update-task-response-class.ts → patch-task-response-class.ts} +3 -3
  49. package/models/status-class.ts +6 -0
  50. package/models/task-class.ts +28 -8
  51. package/package.json +1 -1
  52. package/api/priorities-api.ts +0 -288
  53. package/dist/api/priorities-api.d.ts +0 -162
  54. package/dist/models/create-priority-response-class.d.ts +0 -25
  55. package/dist/models/get-priority-response-class.d.ts +0 -25
  56. package/dist/models/priority-class.d.ts +0 -60
  57. package/dist/models/update-category-request-dto.d.ts +0 -30
  58. package/dist/models/update-task-request-dto.d.ts +0 -60
  59. package/dist/models/update-task-request-dto.js +0 -15
  60. package/dist/models/update-task-response-class.js +0 -15
  61. package/models/create-priority-response-class.ts +0 -31
  62. package/models/get-priority-response-class.ts +0 -31
  63. package/models/priority-class.ts +0 -66
  64. package/models/update-task-request-dto.ts +0 -66
  65. /package/dist/models/{create-priority-request-dto.js → assignee-class.js} +0 -0
  66. /package/dist/models/{create-priority-response-class.js → list-assignees-response-class.js} +0 -0
  67. /package/dist/models/{get-priority-response-class.js → patch-category-request-dto.js} +0 -0
  68. /package/dist/models/{priority-class.js → patch-category-response-class.js} +0 -0
  69. /package/dist/models/{update-category-request-dto.js → patch-status-request-dto.js} +0 -0
  70. /package/dist/models/{update-category-response-class.js → patch-status-response-class.js} +0 -0
  71. /package/dist/models/{update-status-request-dto.js → patch-task-request-dto.js} +0 -0
  72. /package/dist/models/{update-status-response-class.js → patch-task-response-class.js} +0 -0
@@ -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';
@@ -43,7 +43,7 @@ const FormData = require('form-data');
43
43
  export const StatusesApiAxiosParamCreator = function (configuration?: Configuration) {
44
44
  return {
45
45
  /**
46
- * This will create status.
46
+ * This will create a status.
47
47
  * @summary Create the status
48
48
  * @param {CreateStatusRequestDto} createStatusRequestDto
49
49
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -135,7 +135,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
135
135
  };
136
136
  },
137
137
  /**
138
- * This will get status.
138
+ * Get status by code.
139
139
  * @summary Retrieve the status
140
140
  * @param {string} code
141
141
  * @param {string} expand
@@ -190,14 +190,15 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
190
190
  * Retrieves a list of statuses.
191
191
  * @summary List statuses
192
192
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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, createdAt</i>
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, createdAt</i>
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: createdAt</i>
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
+ * @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
+ * @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>
196
197
  * @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/>
197
198
  * @param {*} [options] Override http request option.
198
199
  * @throws {RequiredError}
199
200
  */
200
- listStatuses: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
+ listStatuses: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
202
  const localVarPath = `/taskservice/v1/statuses`;
202
203
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
204
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -224,6 +225,10 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
224
225
  localVarQueryParameter['filters'] = filters;
225
226
  }
226
227
 
228
+ if (search !== undefined) {
229
+ localVarQueryParameter['search'] = search;
230
+ }
231
+
227
232
  if (order !== undefined) {
228
233
  localVarQueryParameter['order'] = order;
229
234
  }
@@ -248,19 +253,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
248
253
  };
249
254
  },
250
255
  /**
251
- * This will update status.
256
+ * This will partially update a status by code with the provided fields.
252
257
  * @summary Update the status
253
258
  * @param {string} code
254
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
259
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
255
260
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
256
261
  * @param {*} [options] Override http request option.
257
262
  * @throws {RequiredError}
258
263
  */
259
- updateStatus: async (code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
264
+ patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
260
265
  // verify required parameter 'code' is not null or undefined
261
- assertParamExists('updateStatus', 'code', code)
262
- // verify required parameter 'updateStatusRequestDto' is not null or undefined
263
- assertParamExists('updateStatus', 'updateStatusRequestDto', updateStatusRequestDto)
266
+ assertParamExists('patchStatus', 'code', code)
267
+ // verify required parameter 'patchStatusRequestDto' is not null or undefined
268
+ assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
264
269
  const localVarPath = `/taskservice/v1/statuses/{code}`
265
270
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
266
271
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -272,7 +277,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
272
277
  baseAccessToken = configuration.accessToken;
273
278
  }
274
279
 
275
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
280
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
276
281
  const localVarHeaderParameter = {} as any;
277
282
  const localVarQueryParameter = {} as any;
278
283
 
@@ -291,7 +296,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
291
296
  setSearchParams(localVarUrlObj, localVarQueryParameter);
292
297
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
293
298
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
294
- localVarRequestOptions.data = serializeDataIfNeeded(updateStatusRequestDto, localVarRequestOptions, configuration)
299
+ localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration)
295
300
 
296
301
  return {
297
302
  url: toPathString(localVarUrlObj),
@@ -309,7 +314,7 @@ export const StatusesApiFp = function(configuration?: Configuration) {
309
314
  const localVarAxiosParamCreator = StatusesApiAxiosParamCreator(configuration)
310
315
  return {
311
316
  /**
312
- * This will create status.
317
+ * This will create a status.
313
318
  * @summary Create the status
314
319
  * @param {CreateStatusRequestDto} createStatusRequestDto
315
320
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -333,7 +338,7 @@ export const StatusesApiFp = function(configuration?: Configuration) {
333
338
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
334
339
  },
335
340
  /**
336
- * This will get status.
341
+ * Get status by code.
337
342
  * @summary Retrieve the status
338
343
  * @param {string} code
339
344
  * @param {string} expand
@@ -349,28 +354,29 @@ export const StatusesApiFp = function(configuration?: Configuration) {
349
354
  * Retrieves a list of statuses.
350
355
  * @summary List statuses
351
356
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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, createdAt&lt;/i&gt;
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, createdAt&lt;/i&gt;
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: createdAt&lt;/i&gt;
357
+ * @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
+ * @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
+ * @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;
355
361
  * @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;
356
362
  * @param {*} [options] Override http request option.
357
363
  * @throws {RequiredError}
358
364
  */
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);
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);
361
367
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
368
  },
363
369
  /**
364
- * This will update status.
370
+ * This will partially update a status by code with the provided fields.
365
371
  * @summary Update the status
366
372
  * @param {string} code
367
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
373
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
368
374
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
369
375
  * @param {*} [options] Override http request option.
370
376
  * @throws {RequiredError}
371
377
  */
372
- async updateStatus(code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateStatusResponseClass>> {
373
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateStatus(code, updateStatusRequestDto, authorization, options);
378
+ async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> {
379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options);
374
380
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
375
381
  },
376
382
  }
@@ -384,7 +390,7 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
384
390
  const localVarFp = StatusesApiFp(configuration)
385
391
  return {
386
392
  /**
387
- * This will create status.
393
+ * This will create a status.
388
394
  * @summary Create the status
389
395
  * @param {CreateStatusRequestDto} createStatusRequestDto
390
396
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -406,7 +412,7 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
406
412
  return localVarFp.deleteStatus(code, authorization, options).then((request) => request(axios, basePath));
407
413
  },
408
414
  /**
409
- * This will get status.
415
+ * Get status by code.
410
416
  * @summary Retrieve the status
411
417
  * @param {string} code
412
418
  * @param {string} expand
@@ -421,27 +427,28 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
421
427
  * Retrieves a list of statuses.
422
428
  * @summary List statuses
423
429
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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, createdAt&lt;/i&gt;
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, createdAt&lt;/i&gt;
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: createdAt&lt;/i&gt;
430
+ * @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
+ * @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
+ * @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;
427
434
  * @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;
428
435
  * @param {*} [options] Override http request option.
429
436
  * @throws {RequiredError}
430
437
  */
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));
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));
433
440
  },
434
441
  /**
435
- * This will update status.
442
+ * This will partially update a status by code with the provided fields.
436
443
  * @summary Update the status
437
444
  * @param {string} code
438
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
445
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
439
446
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
440
447
  * @param {*} [options] Override http request option.
441
448
  * @throws {RequiredError}
442
449
  */
443
- updateStatus(code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateStatusResponseClass> {
444
- return localVarFp.updateStatus(code, updateStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
450
+ patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
451
+ return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
445
452
  },
446
453
  };
447
454
  };
@@ -530,21 +537,28 @@ export interface StatusesApiListStatusesRequest {
530
537
  readonly authorization?: string
531
538
 
532
539
  /**
533
- * 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, createdAt&lt;/i&gt;
540
+ * 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;
534
541
  * @type {string}
535
542
  * @memberof StatusesApiListStatuses
536
543
  */
537
544
  readonly filter?: string
538
545
 
539
546
  /**
540
- * 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, createdAt&lt;/i&gt;
547
+ * 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;
541
548
  * @type {string}
542
549
  * @memberof StatusesApiListStatuses
543
550
  */
544
551
  readonly filters?: string
545
552
 
546
553
  /**
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: createdAt&lt;/i&gt;
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
+ /**
561
+ * 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;
548
562
  * @type {string}
549
563
  * @memberof StatusesApiListStatuses
550
564
  */
@@ -559,29 +573,29 @@ export interface StatusesApiListStatusesRequest {
559
573
  }
560
574
 
561
575
  /**
562
- * Request parameters for updateStatus operation in StatusesApi.
576
+ * Request parameters for patchStatus operation in StatusesApi.
563
577
  * @export
564
- * @interface StatusesApiUpdateStatusRequest
578
+ * @interface StatusesApiPatchStatusRequest
565
579
  */
566
- export interface StatusesApiUpdateStatusRequest {
580
+ export interface StatusesApiPatchStatusRequest {
567
581
  /**
568
582
  *
569
583
  * @type {string}
570
- * @memberof StatusesApiUpdateStatus
584
+ * @memberof StatusesApiPatchStatus
571
585
  */
572
586
  readonly code: string
573
587
 
574
588
  /**
575
589
  *
576
- * @type {UpdateStatusRequestDto}
577
- * @memberof StatusesApiUpdateStatus
590
+ * @type {PatchStatusRequestDto}
591
+ * @memberof StatusesApiPatchStatus
578
592
  */
579
- readonly updateStatusRequestDto: UpdateStatusRequestDto
593
+ readonly patchStatusRequestDto: PatchStatusRequestDto
580
594
 
581
595
  /**
582
596
  * Bearer Token: provided by the login endpoint under the name accessToken.
583
597
  * @type {string}
584
- * @memberof StatusesApiUpdateStatus
598
+ * @memberof StatusesApiPatchStatus
585
599
  */
586
600
  readonly authorization?: string
587
601
  }
@@ -594,7 +608,7 @@ export interface StatusesApiUpdateStatusRequest {
594
608
  */
595
609
  export class StatusesApi extends BaseAPI {
596
610
  /**
597
- * This will create status.
611
+ * This will create a status.
598
612
  * @summary Create the status
599
613
  * @param {StatusesApiCreateStatusRequest} requestParameters Request parameters.
600
614
  * @param {*} [options] Override http request option.
@@ -618,7 +632,7 @@ export class StatusesApi extends BaseAPI {
618
632
  }
619
633
 
620
634
  /**
621
- * This will get status.
635
+ * Get status by code.
622
636
  * @summary Retrieve the status
623
637
  * @param {StatusesApiGetStatusRequest} requestParameters Request parameters.
624
638
  * @param {*} [options] Override http request option.
@@ -638,18 +652,18 @@ export class StatusesApi extends BaseAPI {
638
652
  * @memberof StatusesApi
639
653
  */
640
654
  public listStatuses(requestParameters: StatusesApiListStatusesRequest = {}, options?: AxiosRequestConfig) {
641
- return StatusesApiFp(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
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));
642
656
  }
643
657
 
644
658
  /**
645
- * This will update status.
659
+ * This will partially update a status by code with the provided fields.
646
660
  * @summary Update the status
647
- * @param {StatusesApiUpdateStatusRequest} requestParameters Request parameters.
661
+ * @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
648
662
  * @param {*} [options] Override http request option.
649
663
  * @throws {RequiredError}
650
664
  * @memberof StatusesApi
651
665
  */
652
- public updateStatus(requestParameters: StatusesApiUpdateStatusRequest, options?: AxiosRequestConfig) {
653
- return StatusesApiFp(this.configuration).updateStatus(requestParameters.code, requestParameters.updateStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
666
+ public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) {
667
+ return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
654
668
  }
655
669
  }