@emilgroup/task-sdk-node 1.0.1-beta.3 → 1.0.1-beta.35

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 (61) hide show
  1. package/.openapi-generator/FILES +9 -6
  2. package/README.md +2 -2
  3. package/api/assignees-api.ts +166 -0
  4. package/api/categories-api.ts +111 -85
  5. package/api/default-api.ts +1 -1
  6. package/api/hub-spot-api.ts +4 -4
  7. package/api/statuses-api.ts +71 -73
  8. package/api/tasks-api.ts +119 -93
  9. package/api.ts +2 -0
  10. package/dist/api/assignees-api.d.ts +96 -0
  11. package/dist/api/assignees-api.js +228 -0
  12. package/dist/api/categories-api.d.ts +83 -65
  13. package/dist/api/categories-api.js +75 -65
  14. package/dist/api/default-api.js +1 -1
  15. package/dist/api/hub-spot-api.d.ts +4 -4
  16. package/dist/api/hub-spot-api.js +4 -4
  17. package/dist/api/statuses-api.d.ts +60 -60
  18. package/dist/api/statuses-api.js +54 -56
  19. package/dist/api/tasks-api.d.ts +91 -73
  20. package/dist/api/tasks-api.js +81 -71
  21. package/dist/api.d.ts +1 -0
  22. package/dist/api.js +1 -0
  23. package/dist/models/assignee-class.d.ts +24 -0
  24. package/dist/models/create-status-request-dto.d.ts +6 -0
  25. package/dist/models/create-task-request-dto.d.ts +23 -4
  26. package/dist/models/create-task-request-dto.js +7 -1
  27. package/dist/models/index.d.ts +8 -6
  28. package/dist/models/index.js +8 -6
  29. package/dist/models/list-assignees-response-class.d.ts +43 -0
  30. package/dist/models/{update-category-request-dto.d.ts → patch-category-request-dto.d.ts} +7 -7
  31. package/dist/models/{update-category-response-class.d.ts → patch-category-response-class.d.ts} +3 -3
  32. package/dist/models/{update-status-request-dto.d.ts → patch-status-request-dto.d.ts} +13 -7
  33. package/dist/models/{update-status-response-class.d.ts → patch-status-response-class.d.ts} +3 -3
  34. package/dist/models/patch-task-request-dto.d.ts +139 -0
  35. package/dist/models/patch-task-request-dto.js +22 -0
  36. package/dist/models/{update-task-response-class.d.ts → patch-task-response-class.d.ts} +3 -3
  37. package/dist/models/patch-task-response-class.js +15 -0
  38. package/dist/models/status-class.d.ts +6 -0
  39. package/dist/models/task-class.d.ts +34 -4
  40. package/models/assignee-class.ts +30 -0
  41. package/models/create-status-request-dto.ts +6 -0
  42. package/models/create-task-request-dto.ts +24 -4
  43. package/models/index.ts +8 -6
  44. package/models/list-assignees-response-class.ts +49 -0
  45. package/models/{update-category-request-dto.ts → patch-category-request-dto.ts} +7 -7
  46. package/models/{update-category-response-class.ts → patch-category-response-class.ts} +3 -3
  47. package/models/{update-status-request-dto.ts → patch-status-request-dto.ts} +13 -7
  48. package/models/{update-status-response-class.ts → patch-status-response-class.ts} +3 -3
  49. package/models/patch-task-request-dto.ts +148 -0
  50. package/models/{update-task-response-class.ts → patch-task-response-class.ts} +3 -3
  51. package/models/status-class.ts +6 -0
  52. package/models/task-class.ts +34 -4
  53. package/package.json +2 -2
  54. package/dist/models/update-task-request-dto.d.ts +0 -72
  55. package/models/update-task-request-dto.ts +0 -78
  56. /package/dist/models/{update-category-request-dto.js → assignee-class.js} +0 -0
  57. /package/dist/models/{update-category-response-class.js → list-assignees-response-class.js} +0 -0
  58. /package/dist/models/{update-status-request-dto.js → patch-category-request-dto.js} +0 -0
  59. /package/dist/models/{update-status-response-class.js → patch-category-response-class.js} +0 -0
  60. /package/dist/models/{update-task-request-dto.js → patch-status-request-dto.js} +0 -0
  61. /package/dist/models/{update-task-response-class.js → patch-status-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 a status.
46
+ * This will create a status. **Required Permissions** \"task-management.tasks.create\"
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.
@@ -90,7 +90,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
90
90
  };
91
91
  },
92
92
  /**
93
- * This will delete status.
93
+ * This will delete status. **Required Permissions** \"task-management.tasks.delete\"
94
94
  * @summary Delete the status
95
95
  * @param {string} code Unique identifier for the object.
96
96
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -135,19 +135,17 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
135
135
  };
136
136
  },
137
137
  /**
138
- * Get status by code.
138
+ * Get status by code. **Required Permissions** \"task-management.tasks.view\"
139
139
  * @summary Retrieve the status
140
140
  * @param {string} code
141
- * @param {string} expand
142
141
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
142
+ * @param {string} [expand] Expand to fetch additional information about the status.
143
143
  * @param {*} [options] Override http request option.
144
144
  * @throws {RequiredError}
145
145
  */
146
- getStatus: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ getStatus: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
147
  // verify required parameter 'code' is not null or undefined
148
148
  assertParamExists('getStatus', 'code', code)
149
- // verify required parameter 'expand' is not null or undefined
150
- assertParamExists('getStatus', 'expand', expand)
151
149
  const localVarPath = `/taskservice/v1/statuses/{code}`
152
150
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
153
151
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -187,12 +185,12 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
187
185
  };
188
186
  },
189
187
  /**
190
- * Retrieves a list of statuses.
188
+ * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
191
189
  * @summary List statuses
192
190
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
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;
191
+ * @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;
192
+ * @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;
193
+ * @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: code, name, slug&lt;/i&gt;
196
194
  * @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
195
  * @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
196
  * @param {*} [options] Override http request option.
@@ -253,19 +251,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
253
251
  };
254
252
  },
255
253
  /**
256
- * This will update status.
254
+ * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
257
255
  * @summary Update the status
258
256
  * @param {string} code
259
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
257
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
260
258
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
261
259
  * @param {*} [options] Override http request option.
262
260
  * @throws {RequiredError}
263
261
  */
264
- updateStatus: async (code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
262
+ patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
265
263
  // 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)
264
+ assertParamExists('patchStatus', 'code', code)
265
+ // verify required parameter 'patchStatusRequestDto' is not null or undefined
266
+ assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
269
267
  const localVarPath = `/taskservice/v1/statuses/{code}`
270
268
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
271
269
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -277,7 +275,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
277
275
  baseAccessToken = configuration.accessToken;
278
276
  }
279
277
 
280
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
278
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
281
279
  const localVarHeaderParameter = {} as any;
282
280
  const localVarQueryParameter = {} as any;
283
281
 
@@ -296,7 +294,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
296
294
  setSearchParams(localVarUrlObj, localVarQueryParameter);
297
295
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
296
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
299
- localVarRequestOptions.data = serializeDataIfNeeded(updateStatusRequestDto, localVarRequestOptions, configuration)
297
+ localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration)
300
298
 
301
299
  return {
302
300
  url: toPathString(localVarUrlObj),
@@ -314,7 +312,7 @@ export const StatusesApiFp = function(configuration?: Configuration) {
314
312
  const localVarAxiosParamCreator = StatusesApiAxiosParamCreator(configuration)
315
313
  return {
316
314
  /**
317
- * This will create a status.
315
+ * This will create a status. **Required Permissions** \"task-management.tasks.create\"
318
316
  * @summary Create the status
319
317
  * @param {CreateStatusRequestDto} createStatusRequestDto
320
318
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -326,7 +324,7 @@ export const StatusesApiFp = function(configuration?: Configuration) {
326
324
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
327
325
  },
328
326
  /**
329
- * This will delete status.
327
+ * This will delete status. **Required Permissions** \"task-management.tasks.delete\"
330
328
  * @summary Delete the status
331
329
  * @param {string} code Unique identifier for the object.
332
330
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -338,25 +336,25 @@ export const StatusesApiFp = function(configuration?: Configuration) {
338
336
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
339
337
  },
340
338
  /**
341
- * Get status by code.
339
+ * Get status by code. **Required Permissions** \"task-management.tasks.view\"
342
340
  * @summary Retrieve the status
343
341
  * @param {string} code
344
- * @param {string} expand
345
342
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
343
+ * @param {string} [expand] Expand to fetch additional information about the status.
346
344
  * @param {*} [options] Override http request option.
347
345
  * @throws {RequiredError}
348
346
  */
349
- async getStatus(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStatusResponseClass>> {
350
- const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(code, expand, authorization, options);
347
+ async getStatus(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStatusResponseClass>> {
348
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(code, authorization, expand, options);
351
349
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
352
350
  },
353
351
  /**
354
- * Retrieves a list of statuses.
352
+ * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
355
353
  * @summary List statuses
356
354
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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;
355
+ * @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;
356
+ * @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;
357
+ * @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: code, name, slug&lt;/i&gt;
360
358
  * @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
359
  * @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
360
  * @param {*} [options] Override http request option.
@@ -367,16 +365,16 @@ export const StatusesApiFp = function(configuration?: Configuration) {
367
365
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
366
  },
369
367
  /**
370
- * This will update status.
368
+ * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
371
369
  * @summary Update the status
372
370
  * @param {string} code
373
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
371
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
374
372
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
375
373
  * @param {*} [options] Override http request option.
376
374
  * @throws {RequiredError}
377
375
  */
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);
376
+ async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> {
377
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options);
380
378
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
381
379
  },
382
380
  }
@@ -390,7 +388,7 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
390
388
  const localVarFp = StatusesApiFp(configuration)
391
389
  return {
392
390
  /**
393
- * This will create a status.
391
+ * This will create a status. **Required Permissions** \"task-management.tasks.create\"
394
392
  * @summary Create the status
395
393
  * @param {CreateStatusRequestDto} createStatusRequestDto
396
394
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -401,7 +399,7 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
401
399
  return localVarFp.createStatus(createStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
402
400
  },
403
401
  /**
404
- * This will delete status.
402
+ * This will delete status. **Required Permissions** \"task-management.tasks.delete\"
405
403
  * @summary Delete the status
406
404
  * @param {string} code Unique identifier for the object.
407
405
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -412,24 +410,24 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
412
410
  return localVarFp.deleteStatus(code, authorization, options).then((request) => request(axios, basePath));
413
411
  },
414
412
  /**
415
- * Get status by code.
413
+ * Get status by code. **Required Permissions** \"task-management.tasks.view\"
416
414
  * @summary Retrieve the status
417
415
  * @param {string} code
418
- * @param {string} expand
419
416
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
417
+ * @param {string} [expand] Expand to fetch additional information about the status.
420
418
  * @param {*} [options] Override http request option.
421
419
  * @throws {RequiredError}
422
420
  */
423
- getStatus(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetStatusResponseClass> {
424
- return localVarFp.getStatus(code, expand, authorization, options).then((request) => request(axios, basePath));
421
+ getStatus(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetStatusResponseClass> {
422
+ return localVarFp.getStatus(code, authorization, expand, options).then((request) => request(axios, basePath));
425
423
  },
426
424
  /**
427
- * Retrieves a list of statuses.
425
+ * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
428
426
  * @summary List statuses
429
427
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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;
428
+ * @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;
429
+ * @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;
430
+ * @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: code, name, slug&lt;/i&gt;
433
431
  * @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
432
  * @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
433
  * @param {*} [options] Override http request option.
@@ -439,16 +437,16 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
439
437
  return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
440
438
  },
441
439
  /**
442
- * This will update status.
440
+ * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
443
441
  * @summary Update the status
444
442
  * @param {string} code
445
- * @param {UpdateStatusRequestDto} updateStatusRequestDto
443
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
446
444
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
447
445
  * @param {*} [options] Override http request option.
448
446
  * @throws {RequiredError}
449
447
  */
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));
448
+ patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
449
+ return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
452
450
  },
453
451
  };
454
452
  };
@@ -509,18 +507,18 @@ export interface StatusesApiGetStatusRequest {
509
507
  readonly code: string
510
508
 
511
509
  /**
512
- *
510
+ * Bearer Token: provided by the login endpoint under the name accessToken.
513
511
  * @type {string}
514
512
  * @memberof StatusesApiGetStatus
515
513
  */
516
- readonly expand: string
514
+ readonly authorization?: string
517
515
 
518
516
  /**
519
- * Bearer Token: provided by the login endpoint under the name accessToken.
517
+ * Expand to fetch additional information about the status.
520
518
  * @type {string}
521
519
  * @memberof StatusesApiGetStatus
522
520
  */
523
- readonly authorization?: string
521
+ readonly expand?: string
524
522
  }
525
523
 
526
524
  /**
@@ -537,21 +535,21 @@ export interface StatusesApiListStatusesRequest {
537
535
  readonly authorization?: string
538
536
 
539
537
  /**
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;
538
+ * 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;
541
539
  * @type {string}
542
540
  * @memberof StatusesApiListStatuses
543
541
  */
544
542
  readonly filter?: string
545
543
 
546
544
  /**
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;
545
+ * 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;
548
546
  * @type {string}
549
547
  * @memberof StatusesApiListStatuses
550
548
  */
551
549
  readonly filters?: string
552
550
 
553
551
  /**
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;
552
+ * 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: code, name, slug&lt;/i&gt;
555
553
  * @type {string}
556
554
  * @memberof StatusesApiListStatuses
557
555
  */
@@ -573,29 +571,29 @@ export interface StatusesApiListStatusesRequest {
573
571
  }
574
572
 
575
573
  /**
576
- * Request parameters for updateStatus operation in StatusesApi.
574
+ * Request parameters for patchStatus operation in StatusesApi.
577
575
  * @export
578
- * @interface StatusesApiUpdateStatusRequest
576
+ * @interface StatusesApiPatchStatusRequest
579
577
  */
580
- export interface StatusesApiUpdateStatusRequest {
578
+ export interface StatusesApiPatchStatusRequest {
581
579
  /**
582
580
  *
583
581
  * @type {string}
584
- * @memberof StatusesApiUpdateStatus
582
+ * @memberof StatusesApiPatchStatus
585
583
  */
586
584
  readonly code: string
587
585
 
588
586
  /**
589
587
  *
590
- * @type {UpdateStatusRequestDto}
591
- * @memberof StatusesApiUpdateStatus
588
+ * @type {PatchStatusRequestDto}
589
+ * @memberof StatusesApiPatchStatus
592
590
  */
593
- readonly updateStatusRequestDto: UpdateStatusRequestDto
591
+ readonly patchStatusRequestDto: PatchStatusRequestDto
594
592
 
595
593
  /**
596
594
  * Bearer Token: provided by the login endpoint under the name accessToken.
597
595
  * @type {string}
598
- * @memberof StatusesApiUpdateStatus
596
+ * @memberof StatusesApiPatchStatus
599
597
  */
600
598
  readonly authorization?: string
601
599
  }
@@ -608,7 +606,7 @@ export interface StatusesApiUpdateStatusRequest {
608
606
  */
609
607
  export class StatusesApi extends BaseAPI {
610
608
  /**
611
- * This will create a status.
609
+ * This will create a status. **Required Permissions** \"task-management.tasks.create\"
612
610
  * @summary Create the status
613
611
  * @param {StatusesApiCreateStatusRequest} requestParameters Request parameters.
614
612
  * @param {*} [options] Override http request option.
@@ -620,7 +618,7 @@ export class StatusesApi extends BaseAPI {
620
618
  }
621
619
 
622
620
  /**
623
- * This will delete status.
621
+ * This will delete status. **Required Permissions** \"task-management.tasks.delete\"
624
622
  * @summary Delete the status
625
623
  * @param {StatusesApiDeleteStatusRequest} requestParameters Request parameters.
626
624
  * @param {*} [options] Override http request option.
@@ -632,7 +630,7 @@ export class StatusesApi extends BaseAPI {
632
630
  }
633
631
 
634
632
  /**
635
- * Get status by code.
633
+ * Get status by code. **Required Permissions** \"task-management.tasks.view\"
636
634
  * @summary Retrieve the status
637
635
  * @param {StatusesApiGetStatusRequest} requestParameters Request parameters.
638
636
  * @param {*} [options] Override http request option.
@@ -640,11 +638,11 @@ export class StatusesApi extends BaseAPI {
640
638
  * @memberof StatusesApi
641
639
  */
642
640
  public getStatus(requestParameters: StatusesApiGetStatusRequest, options?: AxiosRequestConfig) {
643
- return StatusesApiFp(this.configuration).getStatus(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
641
+ return StatusesApiFp(this.configuration).getStatus(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
644
642
  }
645
643
 
646
644
  /**
647
- * Retrieves a list of statuses.
645
+ * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
648
646
  * @summary List statuses
649
647
  * @param {StatusesApiListStatusesRequest} requestParameters Request parameters.
650
648
  * @param {*} [options] Override http request option.
@@ -656,14 +654,14 @@ export class StatusesApi extends BaseAPI {
656
654
  }
657
655
 
658
656
  /**
659
- * This will update status.
657
+ * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
660
658
  * @summary Update the status
661
- * @param {StatusesApiUpdateStatusRequest} requestParameters Request parameters.
659
+ * @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
662
660
  * @param {*} [options] Override http request option.
663
661
  * @throws {RequiredError}
664
662
  * @memberof StatusesApi
665
663
  */
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));
664
+ public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) {
665
+ return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
668
666
  }
669
667
  }