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

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 (68) hide show
  1. package/.openapi-generator/FILES +6 -11
  2. package/README.md +2 -2
  3. package/api/categories-api.ts +74 -60
  4. package/api/statuses-api.ts +70 -56
  5. package/api/tasks-api.ts +105 -63
  6. package/api.ts +0 -2
  7. package/dist/api/categories-api.d.ts +58 -49
  8. package/dist/api/categories-api.js +53 -47
  9. package/dist/api/statuses-api.d.ts +54 -45
  10. package/dist/api/statuses-api.js +49 -43
  11. package/dist/api/tasks-api.d.ts +77 -50
  12. package/dist/api/tasks-api.js +66 -48
  13. package/dist/api.d.ts +0 -1
  14. package/dist/api.js +0 -1
  15. package/dist/models/category-class.d.ts +6 -0
  16. package/dist/models/create-category-request-dto.d.ts +7 -1
  17. package/dist/models/create-status-request-dto.d.ts +7 -1
  18. package/dist/models/create-task-request-dto.d.ts +31 -13
  19. package/dist/models/create-task-request-dto.js +6 -0
  20. package/dist/models/index.d.ts +6 -10
  21. package/dist/models/index.js +6 -10
  22. package/dist/models/patch-category-request-dto.d.ts +36 -0
  23. package/dist/models/{update-category-response-class.d.ts → patch-category-response-class.d.ts} +3 -3
  24. package/dist/models/{update-status-request-dto.d.ts → patch-status-request-dto.d.ts} +13 -7
  25. package/dist/models/{update-status-response-class.d.ts → patch-status-response-class.d.ts} +3 -3
  26. package/dist/models/patch-task-request-dto.d.ts +108 -0
  27. package/dist/models/{update-task-response-class.d.ts → patch-task-response-class.d.ts} +3 -3
  28. package/dist/models/status-class.d.ts +6 -0
  29. package/dist/models/task-class.d.ts +25 -8
  30. package/dist/models/task-class.js +6 -0
  31. package/models/category-class.ts +6 -0
  32. package/models/create-category-request-dto.ts +7 -1
  33. package/models/create-status-request-dto.ts +7 -1
  34. package/models/create-task-request-dto.ts +34 -13
  35. package/models/index.ts +6 -10
  36. package/models/{update-category-request-dto.ts → patch-category-request-dto.ts} +13 -7
  37. package/models/{update-category-response-class.ts → patch-category-response-class.ts} +3 -3
  38. package/models/{update-status-request-dto.ts → patch-status-request-dto.ts} +13 -7
  39. package/models/{update-status-response-class.ts → patch-status-response-class.ts} +3 -3
  40. package/models/patch-task-request-dto.ts +114 -0
  41. package/models/{update-task-response-class.ts → patch-task-response-class.ts} +3 -3
  42. package/models/status-class.ts +6 -0
  43. package/models/task-class.ts +28 -8
  44. package/package.json +1 -1
  45. package/api/priorities-api.ts +0 -288
  46. package/dist/api/priorities-api.d.ts +0 -162
  47. package/dist/api/priorities-api.js +0 -328
  48. package/dist/models/create-priority-request-dto.d.ts +0 -24
  49. package/dist/models/create-priority-response-class.d.ts +0 -25
  50. package/dist/models/get-priority-response-class.d.ts +0 -25
  51. package/dist/models/priority-class.d.ts +0 -60
  52. package/dist/models/update-category-request-dto.d.ts +0 -30
  53. package/dist/models/update-status-request-dto.js +0 -15
  54. package/dist/models/update-status-response-class.js +0 -15
  55. package/dist/models/update-task-request-dto.d.ts +0 -60
  56. package/dist/models/update-task-request-dto.js +0 -15
  57. package/dist/models/update-task-response-class.js +0 -15
  58. package/models/create-priority-request-dto.ts +0 -30
  59. package/models/create-priority-response-class.ts +0 -31
  60. package/models/get-priority-response-class.ts +0 -31
  61. package/models/priority-class.ts +0 -66
  62. package/models/update-task-request-dto.ts +0 -66
  63. /package/dist/models/{create-priority-request-dto.js → patch-category-request-dto.js} +0 -0
  64. /package/dist/models/{create-priority-response-class.js → patch-category-response-class.js} +0 -0
  65. /package/dist/models/{get-priority-response-class.js → patch-status-request-dto.js} +0 -0
  66. /package/dist/models/{priority-class.js → patch-status-response-class.js} +0 -0
  67. /package/dist/models/{update-category-request-dto.js → patch-task-request-dto.js} +0 -0
  68. /package/dist/models/{update-category-response-class.js → patch-task-response-class.js} +0 -0
package/api/tasks-api.ts CHANGED
@@ -29,9 +29,9 @@ import { GetTaskResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { ListTasksResponseClass } from '../models';
31
31
  // @ts-ignore
32
- import { UpdateTaskRequestDto } from '../models';
32
+ import { PatchTaskRequestDto } from '../models';
33
33
  // @ts-ignore
34
- import { UpdateTaskResponseClass } from '../models';
34
+ import { PatchTaskResponseClass } from '../models';
35
35
  // URLSearchParams not necessarily used
36
36
  // @ts-ignore
37
37
  import { URL, URLSearchParams } from 'url';
@@ -90,7 +90,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
90
90
  };
91
91
  },
92
92
  /**
93
- * This will delete task.
93
+ * This will delete a task by code.
94
94
  * @summary Delete the task
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,7 +135,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
135
135
  };
136
136
  },
137
137
  /**
138
- * This will get task.
138
+ * This will get a task by code.
139
139
  * @summary Retrieve the task
140
140
  * @param {string} code
141
141
  * @param {string} expand
@@ -190,14 +190,17 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
190
190
  * Retrieves a list of tasks.
191
191
  * @summary List tasks
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, categoryId, statusId, priorityId, 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, categoryId, statusId, priorityId, 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: id, createdAt</i>
196
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: category, status, priority<i>
193
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
195
+ * @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, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
196
+ * @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: subject, description</i>
197
+ * @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, assignee, reporter, dueDate</i>
198
+ * @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/> <i>Allowed values: categories, status<i>
199
+ * @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, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
197
200
  * @param {*} [options] Override http request option.
198
201
  * @throws {RequiredError}
199
202
  */
200
- listTasks: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
203
+ listTasks: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
204
  const localVarPath = `/taskservice/v1/tasks`;
202
205
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
206
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -216,12 +219,20 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
216
219
  // http bearer authentication required
217
220
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
218
221
 
222
+ if (pageSize !== undefined) {
223
+ localVarQueryParameter['pageSize'] = pageSize;
224
+ }
225
+
226
+ if (pageToken !== undefined) {
227
+ localVarQueryParameter['pageToken'] = pageToken;
228
+ }
229
+
219
230
  if (filter !== undefined) {
220
231
  localVarQueryParameter['filter'] = filter;
221
232
  }
222
233
 
223
- if (filters !== undefined) {
224
- localVarQueryParameter['filters'] = filters;
234
+ if (search !== undefined) {
235
+ localVarQueryParameter['search'] = search;
225
236
  }
226
237
 
227
238
  if (order !== undefined) {
@@ -232,6 +243,10 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
232
243
  localVarQueryParameter['expand'] = expand;
233
244
  }
234
245
 
246
+ if (filters !== undefined) {
247
+ localVarQueryParameter['filters'] = filters;
248
+ }
249
+
235
250
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
236
251
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
252
  }
@@ -248,19 +263,19 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
248
263
  };
249
264
  },
250
265
  /**
251
- * This will update task.
266
+ * This will partially update a task by code with the provided fields.
252
267
  * @summary Update the task
253
268
  * @param {string} code
254
- * @param {UpdateTaskRequestDto} updateTaskRequestDto
269
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
255
270
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
256
271
  * @param {*} [options] Override http request option.
257
272
  * @throws {RequiredError}
258
273
  */
259
- updateTask: async (code: string, updateTaskRequestDto: UpdateTaskRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
274
+ patchTask: async (code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
260
275
  // verify required parameter 'code' is not null or undefined
261
- assertParamExists('updateTask', 'code', code)
262
- // verify required parameter 'updateTaskRequestDto' is not null or undefined
263
- assertParamExists('updateTask', 'updateTaskRequestDto', updateTaskRequestDto)
276
+ assertParamExists('patchTask', 'code', code)
277
+ // verify required parameter 'patchTaskRequestDto' is not null or undefined
278
+ assertParamExists('patchTask', 'patchTaskRequestDto', patchTaskRequestDto)
264
279
  const localVarPath = `/taskservice/v1/tasks/{code}`
265
280
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
266
281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -272,7 +287,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
272
287
  baseAccessToken = configuration.accessToken;
273
288
  }
274
289
 
275
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
290
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
276
291
  const localVarHeaderParameter = {} as any;
277
292
  const localVarQueryParameter = {} as any;
278
293
 
@@ -291,7 +306,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
291
306
  setSearchParams(localVarUrlObj, localVarQueryParameter);
292
307
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
293
308
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
294
- localVarRequestOptions.data = serializeDataIfNeeded(updateTaskRequestDto, localVarRequestOptions, configuration)
309
+ localVarRequestOptions.data = serializeDataIfNeeded(patchTaskRequestDto, localVarRequestOptions, configuration)
295
310
 
296
311
  return {
297
312
  url: toPathString(localVarUrlObj),
@@ -321,7 +336,7 @@ export const TasksApiFp = function(configuration?: Configuration) {
321
336
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
322
337
  },
323
338
  /**
324
- * This will delete task.
339
+ * This will delete a task by code.
325
340
  * @summary Delete the task
326
341
  * @param {string} code Unique identifier for the object.
327
342
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -333,7 +348,7 @@ export const TasksApiFp = function(configuration?: Configuration) {
333
348
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
334
349
  },
335
350
  /**
336
- * This will get task.
351
+ * This will get a task by code.
337
352
  * @summary Retrieve the task
338
353
  * @param {string} code
339
354
  * @param {string} expand
@@ -349,28 +364,31 @@ export const TasksApiFp = function(configuration?: Configuration) {
349
364
  * Retrieves a list of tasks.
350
365
  * @summary List tasks
351
366
  * @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, categoryId, statusId, priorityId, 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, categoryId, statusId, priorityId, 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: id, createdAt&lt;/i&gt;
355
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: category, status, priority&lt;i&gt;
367
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
369
+ * @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, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
370
+ * @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: subject, description&lt;/i&gt;
371
+ * @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, assignee, reporter, dueDate&lt;/i&gt;
372
+ * @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; &lt;i&gt;Allowed values: categories, status&lt;i&gt;
373
+ * @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, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
356
374
  * @param {*} [options] Override http request option.
357
375
  * @throws {RequiredError}
358
376
  */
359
- async listTasks(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTasksResponseClass>> {
360
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTasks(authorization, filter, filters, order, expand, options);
377
+ async listTasks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTasksResponseClass>> {
378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
361
379
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
380
  },
363
381
  /**
364
- * This will update task.
382
+ * This will partially update a task by code with the provided fields.
365
383
  * @summary Update the task
366
384
  * @param {string} code
367
- * @param {UpdateTaskRequestDto} updateTaskRequestDto
385
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
368
386
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
369
387
  * @param {*} [options] Override http request option.
370
388
  * @throws {RequiredError}
371
389
  */
372
- async updateTask(code: string, updateTaskRequestDto: UpdateTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateTaskResponseClass>> {
373
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateTask(code, updateTaskRequestDto, authorization, options);
390
+ async patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchTaskResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options);
374
392
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
375
393
  },
376
394
  }
@@ -395,7 +413,7 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
395
413
  return localVarFp.createTask(createTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
396
414
  },
397
415
  /**
398
- * This will delete task.
416
+ * This will delete a task by code.
399
417
  * @summary Delete the task
400
418
  * @param {string} code Unique identifier for the object.
401
419
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -406,7 +424,7 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
406
424
  return localVarFp.deleteTask(code, authorization, options).then((request) => request(axios, basePath));
407
425
  },
408
426
  /**
409
- * This will get task.
427
+ * This will get a task by code.
410
428
  * @summary Retrieve the task
411
429
  * @param {string} code
412
430
  * @param {string} expand
@@ -421,27 +439,30 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
421
439
  * Retrieves a list of tasks.
422
440
  * @summary List tasks
423
441
  * @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, categoryId, statusId, priorityId, 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, categoryId, statusId, priorityId, 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: id, createdAt&lt;/i&gt;
427
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: category, status, priority&lt;i&gt;
442
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
443
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
444
+ * @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, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
445
+ * @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: subject, description&lt;/i&gt;
446
+ * @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, assignee, reporter, dueDate&lt;/i&gt;
447
+ * @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; &lt;i&gt;Allowed values: categories, status&lt;i&gt;
448
+ * @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, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
428
449
  * @param {*} [options] Override http request option.
429
450
  * @throws {RequiredError}
430
451
  */
431
- listTasks(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListTasksResponseClass> {
432
- return localVarFp.listTasks(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
452
+ listTasks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTasksResponseClass> {
453
+ return localVarFp.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
433
454
  },
434
455
  /**
435
- * This will update task.
456
+ * This will partially update a task by code with the provided fields.
436
457
  * @summary Update the task
437
458
  * @param {string} code
438
- * @param {UpdateTaskRequestDto} updateTaskRequestDto
459
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
439
460
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
440
461
  * @param {*} [options] Override http request option.
441
462
  * @throws {RequiredError}
442
463
  */
443
- updateTask(code: string, updateTaskRequestDto: UpdateTaskRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateTaskResponseClass> {
444
- return localVarFp.updateTask(code, updateTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
464
+ patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: any): AxiosPromise<PatchTaskResponseClass> {
465
+ return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
445
466
  },
446
467
  };
447
468
  };
@@ -530,58 +551,79 @@ export interface TasksApiListTasksRequest {
530
551
  readonly authorization?: string
531
552
 
532
553
  /**
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, categoryId, statusId, priorityId, createdAt&lt;/i&gt;
554
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
555
+ * @type {number}
556
+ * @memberof TasksApiListTasks
557
+ */
558
+ readonly pageSize?: number
559
+
560
+ /**
561
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
562
+ * @type {string}
563
+ * @memberof TasksApiListTasks
564
+ */
565
+ readonly pageToken?: string
566
+
567
+ /**
568
+ * 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, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
534
569
  * @type {string}
535
570
  * @memberof TasksApiListTasks
536
571
  */
537
572
  readonly filter?: string
538
573
 
539
574
  /**
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, categoryId, statusId, priorityId, createdAt&lt;/i&gt;
575
+ * 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: subject, description&lt;/i&gt;
541
576
  * @type {string}
542
577
  * @memberof TasksApiListTasks
543
578
  */
544
- readonly filters?: string
579
+ readonly search?: string
545
580
 
546
581
  /**
547
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
582
+ * 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, assignee, reporter, dueDate&lt;/i&gt;
548
583
  * @type {string}
549
584
  * @memberof TasksApiListTasks
550
585
  */
551
586
  readonly order?: string
552
587
 
553
588
  /**
554
- * 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; &lt;i&gt;Allowed values: category, status, priority&lt;i&gt;
589
+ * 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; &lt;i&gt;Allowed values: categories, status&lt;i&gt;
555
590
  * @type {string}
556
591
  * @memberof TasksApiListTasks
557
592
  */
558
593
  readonly expand?: string
594
+
595
+ /**
596
+ * 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, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
597
+ * @type {string}
598
+ * @memberof TasksApiListTasks
599
+ */
600
+ readonly filters?: string
559
601
  }
560
602
 
561
603
  /**
562
- * Request parameters for updateTask operation in TasksApi.
604
+ * Request parameters for patchTask operation in TasksApi.
563
605
  * @export
564
- * @interface TasksApiUpdateTaskRequest
606
+ * @interface TasksApiPatchTaskRequest
565
607
  */
566
- export interface TasksApiUpdateTaskRequest {
608
+ export interface TasksApiPatchTaskRequest {
567
609
  /**
568
610
  *
569
611
  * @type {string}
570
- * @memberof TasksApiUpdateTask
612
+ * @memberof TasksApiPatchTask
571
613
  */
572
614
  readonly code: string
573
615
 
574
616
  /**
575
617
  *
576
- * @type {UpdateTaskRequestDto}
577
- * @memberof TasksApiUpdateTask
618
+ * @type {PatchTaskRequestDto}
619
+ * @memberof TasksApiPatchTask
578
620
  */
579
- readonly updateTaskRequestDto: UpdateTaskRequestDto
621
+ readonly patchTaskRequestDto: PatchTaskRequestDto
580
622
 
581
623
  /**
582
624
  * Bearer Token: provided by the login endpoint under the name accessToken.
583
625
  * @type {string}
584
- * @memberof TasksApiUpdateTask
626
+ * @memberof TasksApiPatchTask
585
627
  */
586
628
  readonly authorization?: string
587
629
  }
@@ -606,7 +648,7 @@ export class TasksApi extends BaseAPI {
606
648
  }
607
649
 
608
650
  /**
609
- * This will delete task.
651
+ * This will delete a task by code.
610
652
  * @summary Delete the task
611
653
  * @param {TasksApiDeleteTaskRequest} requestParameters Request parameters.
612
654
  * @param {*} [options] Override http request option.
@@ -618,7 +660,7 @@ export class TasksApi extends BaseAPI {
618
660
  }
619
661
 
620
662
  /**
621
- * This will get task.
663
+ * This will get a task by code.
622
664
  * @summary Retrieve the task
623
665
  * @param {TasksApiGetTaskRequest} requestParameters Request parameters.
624
666
  * @param {*} [options] Override http request option.
@@ -638,18 +680,18 @@ export class TasksApi extends BaseAPI {
638
680
  * @memberof TasksApi
639
681
  */
640
682
  public listTasks(requestParameters: TasksApiListTasksRequest = {}, options?: AxiosRequestConfig) {
641
- return TasksApiFp(this.configuration).listTasks(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
683
+ return TasksApiFp(this.configuration).listTasks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
642
684
  }
643
685
 
644
686
  /**
645
- * This will update task.
687
+ * This will partially update a task by code with the provided fields.
646
688
  * @summary Update the task
647
- * @param {TasksApiUpdateTaskRequest} requestParameters Request parameters.
689
+ * @param {TasksApiPatchTaskRequest} requestParameters Request parameters.
648
690
  * @param {*} [options] Override http request option.
649
691
  * @throws {RequiredError}
650
692
  * @memberof TasksApi
651
693
  */
652
- public updateTask(requestParameters: TasksApiUpdateTaskRequest, options?: AxiosRequestConfig) {
653
- return TasksApiFp(this.configuration).updateTask(requestParameters.code, requestParameters.updateTaskRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
694
+ public patchTask(requestParameters: TasksApiPatchTaskRequest, options?: AxiosRequestConfig) {
695
+ return TasksApiFp(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
654
696
  }
655
697
  }
package/api.ts CHANGED
@@ -27,7 +27,6 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
27
27
  import { CategoriesApi } from './api';
28
28
  import { DefaultApi } from './api';
29
29
  import { HubSpotApi } from './api';
30
- import { PrioritiesApi } from './api';
31
30
  import { StatusesApi } from './api';
32
31
  import { TasksApi } from './api';
33
32
 
@@ -35,7 +34,6 @@ import { TasksApi } from './api';
35
34
  export * from './api/categories-api';
36
35
  export * from './api/default-api';
37
36
  export * from './api/hub-spot-api';
38
- export * from './api/priorities-api';
39
37
  export * from './api/statuses-api';
40
38
  export * from './api/tasks-api';
41
39