@emilgroup/task-sdk 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 -284
  46. package/dist/api/priorities-api.d.ts +0 -162
  47. package/dist/api/priorities-api.js +0 -324
  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
@@ -142,7 +142,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
142
142
  });
143
143
  },
144
144
  /**
145
- * This will delete task.
145
+ * This will delete a task by code.
146
146
  * @summary Delete the task
147
147
  * @param {string} code Unique identifier for the object.
148
148
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -190,7 +190,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
190
190
  });
191
191
  },
192
192
  /**
193
- * This will get task.
193
+ * This will get a task by code.
194
194
  * @summary Retrieve the task
195
195
  * @param {string} code
196
196
  * @param {string} expand
@@ -247,14 +247,17 @@ var TasksApiAxiosParamCreator = function (configuration) {
247
247
  * Retrieves a list of tasks.
248
248
  * @summary List tasks
249
249
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
- * @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>
251
- * @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>
252
- * @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>
253
- * @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>
250
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
+ * @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.
252
+ * @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>
253
+ * @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>
254
+ * @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>
255
+ * @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>
256
+ * @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>
254
257
  * @param {*} [options] Override http request option.
255
258
  * @throws {RequiredError}
256
259
  */
257
- listTasks: function (authorization, filter, filters, order, expand, options) {
260
+ listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
258
261
  if (options === void 0) { options = {}; }
259
262
  return __awaiter(_this, void 0, void 0, function () {
260
263
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -277,11 +280,17 @@ var TasksApiAxiosParamCreator = function (configuration) {
277
280
  // authentication bearer required
278
281
  // http bearer authentication required
279
282
  _a.sent();
283
+ if (pageSize !== undefined) {
284
+ localVarQueryParameter['pageSize'] = pageSize;
285
+ }
286
+ if (pageToken !== undefined) {
287
+ localVarQueryParameter['pageToken'] = pageToken;
288
+ }
280
289
  if (filter !== undefined) {
281
290
  localVarQueryParameter['filter'] = filter;
282
291
  }
283
- if (filters !== undefined) {
284
- localVarQueryParameter['filters'] = filters;
292
+ if (search !== undefined) {
293
+ localVarQueryParameter['search'] = search;
285
294
  }
286
295
  if (order !== undefined) {
287
296
  localVarQueryParameter['order'] = order;
@@ -289,6 +298,9 @@ var TasksApiAxiosParamCreator = function (configuration) {
289
298
  if (expand !== undefined) {
290
299
  localVarQueryParameter['expand'] = expand;
291
300
  }
301
+ if (filters !== undefined) {
302
+ localVarQueryParameter['filters'] = filters;
303
+ }
292
304
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
293
305
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
294
306
  }
@@ -304,15 +316,15 @@ var TasksApiAxiosParamCreator = function (configuration) {
304
316
  });
305
317
  },
306
318
  /**
307
- * This will update task.
319
+ * This will partially update a task by code with the provided fields.
308
320
  * @summary Update the task
309
321
  * @param {string} code
310
- * @param {UpdateTaskRequestDto} updateTaskRequestDto
322
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
311
323
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
312
324
  * @param {*} [options] Override http request option.
313
325
  * @throws {RequiredError}
314
326
  */
315
- updateTask: function (code, updateTaskRequestDto, authorization, options) {
327
+ patchTask: function (code, patchTaskRequestDto, authorization, options) {
316
328
  if (options === void 0) { options = {}; }
317
329
  return __awaiter(_this, void 0, void 0, function () {
318
330
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -320,9 +332,9 @@ var TasksApiAxiosParamCreator = function (configuration) {
320
332
  switch (_a.label) {
321
333
  case 0:
322
334
  // verify required parameter 'code' is not null or undefined
323
- (0, common_1.assertParamExists)('updateTask', 'code', code);
324
- // verify required parameter 'updateTaskRequestDto' is not null or undefined
325
- (0, common_1.assertParamExists)('updateTask', 'updateTaskRequestDto', updateTaskRequestDto);
335
+ (0, common_1.assertParamExists)('patchTask', 'code', code);
336
+ // verify required parameter 'patchTaskRequestDto' is not null or undefined
337
+ (0, common_1.assertParamExists)('patchTask', 'patchTaskRequestDto', patchTaskRequestDto);
326
338
  localVarPath = "/taskservice/v1/tasks/{code}"
327
339
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
328
340
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -330,7 +342,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
330
342
  baseOptions = configuration.baseOptions;
331
343
  baseAccessToken = configuration.accessToken;
332
344
  }
333
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
345
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
334
346
  localVarHeaderParameter = {};
335
347
  localVarQueryParameter = {};
336
348
  // authentication bearer required
@@ -347,7 +359,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
347
359
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
348
360
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
349
361
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
350
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTaskRequestDto, localVarRequestOptions, configuration);
362
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchTaskRequestDto, localVarRequestOptions, configuration);
351
363
  return [2 /*return*/, {
352
364
  url: (0, common_1.toPathString)(localVarUrlObj),
353
365
  options: localVarRequestOptions,
@@ -388,7 +400,7 @@ var TasksApiFp = function (configuration) {
388
400
  });
389
401
  },
390
402
  /**
391
- * This will delete task.
403
+ * This will delete a task by code.
392
404
  * @summary Delete the task
393
405
  * @param {string} code Unique identifier for the object.
394
406
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -409,7 +421,7 @@ var TasksApiFp = function (configuration) {
409
421
  });
410
422
  },
411
423
  /**
412
- * This will get task.
424
+ * This will get a task by code.
413
425
  * @summary Retrieve the task
414
426
  * @param {string} code
415
427
  * @param {string} expand
@@ -434,19 +446,22 @@ var TasksApiFp = function (configuration) {
434
446
  * Retrieves a list of tasks.
435
447
  * @summary List tasks
436
448
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
437
- * @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>
438
- * @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>
439
- * @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>
440
- * @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>
449
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
450
+ * @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.
451
+ * @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>
452
+ * @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>
453
+ * @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>
454
+ * @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>
455
+ * @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>
441
456
  * @param {*} [options] Override http request option.
442
457
  * @throws {RequiredError}
443
458
  */
444
- listTasks: function (authorization, filter, filters, order, expand, options) {
459
+ listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
445
460
  return __awaiter(this, void 0, void 0, function () {
446
461
  var localVarAxiosArgs;
447
462
  return __generator(this, function (_a) {
448
463
  switch (_a.label) {
449
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTasks(authorization, filter, filters, order, expand, options)];
464
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
450
465
  case 1:
451
466
  localVarAxiosArgs = _a.sent();
452
467
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -455,20 +470,20 @@ var TasksApiFp = function (configuration) {
455
470
  });
456
471
  },
457
472
  /**
458
- * This will update task.
473
+ * This will partially update a task by code with the provided fields.
459
474
  * @summary Update the task
460
475
  * @param {string} code
461
- * @param {UpdateTaskRequestDto} updateTaskRequestDto
476
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
462
477
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
463
478
  * @param {*} [options] Override http request option.
464
479
  * @throws {RequiredError}
465
480
  */
466
- updateTask: function (code, updateTaskRequestDto, authorization, options) {
481
+ patchTask: function (code, patchTaskRequestDto, authorization, options) {
467
482
  return __awaiter(this, void 0, void 0, function () {
468
483
  var localVarAxiosArgs;
469
484
  return __generator(this, function (_a) {
470
485
  switch (_a.label) {
471
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTask(code, updateTaskRequestDto, authorization, options)];
486
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options)];
472
487
  case 1:
473
488
  localVarAxiosArgs = _a.sent();
474
489
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -498,7 +513,7 @@ var TasksApiFactory = function (configuration, basePath, axios) {
498
513
  return localVarFp.createTask(createTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
499
514
  },
500
515
  /**
501
- * This will delete task.
516
+ * This will delete a task by code.
502
517
  * @summary Delete the task
503
518
  * @param {string} code Unique identifier for the object.
504
519
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -509,7 +524,7 @@ var TasksApiFactory = function (configuration, basePath, axios) {
509
524
  return localVarFp.deleteTask(code, authorization, options).then(function (request) { return request(axios, basePath); });
510
525
  },
511
526
  /**
512
- * This will get task.
527
+ * This will get a task by code.
513
528
  * @summary Retrieve the task
514
529
  * @param {string} code
515
530
  * @param {string} expand
@@ -524,27 +539,30 @@ var TasksApiFactory = function (configuration, basePath, axios) {
524
539
  * Retrieves a list of tasks.
525
540
  * @summary List tasks
526
541
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
527
- * @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>
528
- * @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>
529
- * @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>
530
- * @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>
542
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
543
+ * @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.
544
+ * @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>
545
+ * @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>
546
+ * @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>
547
+ * @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>
548
+ * @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>
531
549
  * @param {*} [options] Override http request option.
532
550
  * @throws {RequiredError}
533
551
  */
534
- listTasks: function (authorization, filter, filters, order, expand, options) {
535
- return localVarFp.listTasks(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
552
+ listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
553
+ return localVarFp.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
536
554
  },
537
555
  /**
538
- * This will update task.
556
+ * This will partially update a task by code with the provided fields.
539
557
  * @summary Update the task
540
558
  * @param {string} code
541
- * @param {UpdateTaskRequestDto} updateTaskRequestDto
559
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
542
560
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
543
561
  * @param {*} [options] Override http request option.
544
562
  * @throws {RequiredError}
545
563
  */
546
- updateTask: function (code, updateTaskRequestDto, authorization, options) {
547
- return localVarFp.updateTask(code, updateTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
564
+ patchTask: function (code, patchTaskRequestDto, authorization, options) {
565
+ return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
548
566
  },
549
567
  };
550
568
  };
@@ -573,7 +591,7 @@ var TasksApi = /** @class */ (function (_super) {
573
591
  return (0, exports.TasksApiFp)(this.configuration).createTask(requestParameters.createTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
574
592
  };
575
593
  /**
576
- * This will delete task.
594
+ * This will delete a task by code.
577
595
  * @summary Delete the task
578
596
  * @param {TasksApiDeleteTaskRequest} requestParameters Request parameters.
579
597
  * @param {*} [options] Override http request option.
@@ -585,7 +603,7 @@ var TasksApi = /** @class */ (function (_super) {
585
603
  return (0, exports.TasksApiFp)(this.configuration).deleteTask(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
586
604
  };
587
605
  /**
588
- * This will get task.
606
+ * This will get a task by code.
589
607
  * @summary Retrieve the task
590
608
  * @param {TasksApiGetTaskRequest} requestParameters Request parameters.
591
609
  * @param {*} [options] Override http request option.
@@ -607,19 +625,19 @@ var TasksApi = /** @class */ (function (_super) {
607
625
  TasksApi.prototype.listTasks = function (requestParameters, options) {
608
626
  var _this = this;
609
627
  if (requestParameters === void 0) { requestParameters = {}; }
610
- return (0, exports.TasksApiFp)(this.configuration).listTasks(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
628
+ return (0, exports.TasksApiFp)(this.configuration).listTasks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
611
629
  };
612
630
  /**
613
- * This will update task.
631
+ * This will partially update a task by code with the provided fields.
614
632
  * @summary Update the task
615
- * @param {TasksApiUpdateTaskRequest} requestParameters Request parameters.
633
+ * @param {TasksApiPatchTaskRequest} requestParameters Request parameters.
616
634
  * @param {*} [options] Override http request option.
617
635
  * @throws {RequiredError}
618
636
  * @memberof TasksApi
619
637
  */
620
- TasksApi.prototype.updateTask = function (requestParameters, options) {
638
+ TasksApi.prototype.patchTask = function (requestParameters, options) {
621
639
  var _this = this;
622
- return (0, exports.TasksApiFp)(this.configuration).updateTask(requestParameters.code, requestParameters.updateTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
640
+ return (0, exports.TasksApiFp)(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
623
641
  };
624
642
  return TasksApi;
625
643
  }(base_1.BaseAPI));
package/dist/api.d.ts CHANGED
@@ -12,6 +12,5 @@
12
12
  export * from './api/categories-api';
13
13
  export * from './api/default-api';
14
14
  export * from './api/hub-spot-api';
15
- export * from './api/priorities-api';
16
15
  export * from './api/statuses-api';
17
16
  export * from './api/tasks-api';
package/dist/api.js CHANGED
@@ -30,6 +30,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/categories-api"), exports);
31
31
  __exportStar(require("./api/default-api"), exports);
32
32
  __exportStar(require("./api/hub-spot-api"), exports);
33
- __exportStar(require("./api/priorities-api"), exports);
34
33
  __exportStar(require("./api/statuses-api"), exports);
35
34
  __exportStar(require("./api/tasks-api"), exports);
@@ -57,4 +57,10 @@ export interface CategoryClass {
57
57
  * @memberof CategoryClass
58
58
  */
59
59
  'updatedAt'?: string;
60
+ /**
61
+ * slug
62
+ * @type {string}
63
+ * @memberof CategoryClass
64
+ */
65
+ 'slug': string;
60
66
  }
@@ -16,9 +16,15 @@
16
16
  */
17
17
  export interface CreateCategoryRequestDto {
18
18
  /**
19
- * name
19
+ * Category name: display name of the category
20
20
  * @type {string}
21
21
  * @memberof CreateCategoryRequestDto
22
22
  */
23
23
  'name': string;
24
+ /**
25
+ * Category slug: URL-friendly identifier (auto-generated from name if not provided)
26
+ * @type {string}
27
+ * @memberof CreateCategoryRequestDto
28
+ */
29
+ 'slug'?: string;
24
30
  }
@@ -16,9 +16,15 @@
16
16
  */
17
17
  export interface CreateStatusRequestDto {
18
18
  /**
19
- * name
19
+ * Task status name: display name of the status
20
20
  * @type {string}
21
21
  * @memberof CreateStatusRequestDto
22
22
  */
23
23
  'name': string;
24
+ /**
25
+ * Task status slug - URL-friendly identifier (auto-generated from name if not provided)
26
+ * @type {string}
27
+ * @memberof CreateStatusRequestDto
28
+ */
29
+ 'slug'?: string;
24
30
  }
@@ -16,39 +16,57 @@
16
16
  */
17
17
  export interface CreateTaskRequestDto {
18
18
  /**
19
- * subject
19
+ * Task subject: title of the task
20
20
  * @type {string}
21
21
  * @memberof CreateTaskRequestDto
22
22
  */
23
23
  'subject': string;
24
24
  /**
25
- * description
25
+ * Task description: detailed description of the task
26
26
  * @type {string}
27
27
  * @memberof CreateTaskRequestDto
28
28
  */
29
29
  'description': string;
30
30
  /**
31
- * assignee
31
+ * Task assignee user code: person assigned to the task
32
32
  * @type {string}
33
33
  * @memberof CreateTaskRequestDto
34
34
  */
35
- 'assignee': string;
35
+ 'assignee'?: string;
36
36
  /**
37
- * categoryId
38
- * @type {number}
37
+ * Task category slugs (array of category slugs)
38
+ * @type {Array<string>}
39
39
  * @memberof CreateTaskRequestDto
40
40
  */
41
- 'categoryId'?: number | null;
41
+ 'categorySlugs': Array<string>;
42
42
  /**
43
- * statusId
44
- * @type {number}
43
+ * Task status slug
44
+ * @type {string}
45
+ * @memberof CreateTaskRequestDto
46
+ */
47
+ 'statusSlug'?: string;
48
+ /**
49
+ * Task priority
50
+ * @type {string}
45
51
  * @memberof CreateTaskRequestDto
46
52
  */
47
- 'statusId'?: number | null;
53
+ 'priority'?: CreateTaskRequestDtoPriorityEnum;
48
54
  /**
49
- * priorityId
50
- * @type {number}
55
+ * Task reporter user code: person who reported the task
56
+ * @type {string}
57
+ * @memberof CreateTaskRequestDto
58
+ */
59
+ 'reporter'?: string;
60
+ /**
61
+ * Task due date.
62
+ * @type {string}
51
63
  * @memberof CreateTaskRequestDto
52
64
  */
53
- 'priorityId'?: number | null;
65
+ 'dueDate'?: string;
54
66
  }
67
+ export declare const CreateTaskRequestDtoPriorityEnum: {
68
+ readonly Low: "LOW";
69
+ readonly Medium: "MEDIUM";
70
+ readonly High: "HIGH";
71
+ };
72
+ export type CreateTaskRequestDtoPriorityEnum = typeof CreateTaskRequestDtoPriorityEnum[keyof typeof CreateTaskRequestDtoPriorityEnum];
@@ -13,3 +13,9 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateTaskRequestDtoPriorityEnum = void 0;
17
+ exports.CreateTaskRequestDtoPriorityEnum = {
18
+ Low: 'LOW',
19
+ Medium: 'MEDIUM',
20
+ High: 'HIGH'
21
+ };
@@ -3,14 +3,11 @@ export * from './create-category-request-dto';
3
3
  export * from './create-category-response-class';
4
4
  export * from './create-hub-spot-ticket-request-dto';
5
5
  export * from './create-hub-spot-ticket-response-class';
6
- export * from './create-priority-request-dto';
7
- export * from './create-priority-response-class';
8
6
  export * from './create-status-request-dto';
9
7
  export * from './create-status-response-class';
10
8
  export * from './create-task-request-dto';
11
9
  export * from './create-task-response-class';
12
10
  export * from './get-category-response-class';
13
- export * from './get-priority-response-class';
14
11
  export * from './get-status-response-class';
15
12
  export * from './get-task-response-class';
16
13
  export * from './hub-spot-ticket-class';
@@ -21,12 +18,11 @@ export * from './inline-response503';
21
18
  export * from './list-categories-response-class';
22
19
  export * from './list-statuses-response-class';
23
20
  export * from './list-tasks-response-class';
24
- export * from './priority-class';
21
+ export * from './patch-category-request-dto';
22
+ export * from './patch-category-response-class';
23
+ export * from './patch-status-request-dto';
24
+ export * from './patch-status-response-class';
25
+ export * from './patch-task-request-dto';
26
+ export * from './patch-task-response-class';
25
27
  export * from './status-class';
26
28
  export * from './task-class';
27
- export * from './update-category-request-dto';
28
- export * from './update-category-response-class';
29
- export * from './update-status-request-dto';
30
- export * from './update-status-response-class';
31
- export * from './update-task-request-dto';
32
- export * from './update-task-response-class';
@@ -19,14 +19,11 @@ __exportStar(require("./create-category-request-dto"), exports);
19
19
  __exportStar(require("./create-category-response-class"), exports);
20
20
  __exportStar(require("./create-hub-spot-ticket-request-dto"), exports);
21
21
  __exportStar(require("./create-hub-spot-ticket-response-class"), exports);
22
- __exportStar(require("./create-priority-request-dto"), exports);
23
- __exportStar(require("./create-priority-response-class"), exports);
24
22
  __exportStar(require("./create-status-request-dto"), exports);
25
23
  __exportStar(require("./create-status-response-class"), exports);
26
24
  __exportStar(require("./create-task-request-dto"), exports);
27
25
  __exportStar(require("./create-task-response-class"), exports);
28
26
  __exportStar(require("./get-category-response-class"), exports);
29
- __exportStar(require("./get-priority-response-class"), exports);
30
27
  __exportStar(require("./get-status-response-class"), exports);
31
28
  __exportStar(require("./get-task-response-class"), exports);
32
29
  __exportStar(require("./hub-spot-ticket-class"), exports);
@@ -37,12 +34,11 @@ __exportStar(require("./inline-response503"), exports);
37
34
  __exportStar(require("./list-categories-response-class"), exports);
38
35
  __exportStar(require("./list-statuses-response-class"), exports);
39
36
  __exportStar(require("./list-tasks-response-class"), exports);
40
- __exportStar(require("./priority-class"), exports);
37
+ __exportStar(require("./patch-category-request-dto"), exports);
38
+ __exportStar(require("./patch-category-response-class"), exports);
39
+ __exportStar(require("./patch-status-request-dto"), exports);
40
+ __exportStar(require("./patch-status-response-class"), exports);
41
+ __exportStar(require("./patch-task-request-dto"), exports);
42
+ __exportStar(require("./patch-task-response-class"), exports);
41
43
  __exportStar(require("./status-class"), exports);
42
44
  __exportStar(require("./task-class"), exports);
43
- __exportStar(require("./update-category-request-dto"), exports);
44
- __exportStar(require("./update-category-response-class"), exports);
45
- __exportStar(require("./update-status-request-dto"), exports);
46
- __exportStar(require("./update-status-response-class"), exports);
47
- __exportStar(require("./update-task-request-dto"), exports);
48
- __exportStar(require("./update-task-response-class"), exports);
@@ -0,0 +1,36 @@
1
+ /**
2
+ * EMIL TaskService
3
+ * The EMIL Task API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PatchCategoryRequestDto
16
+ */
17
+ export interface PatchCategoryRequestDto {
18
+ /**
19
+ * Category code: unique identifier of the category
20
+ * @type {string}
21
+ * @memberof PatchCategoryRequestDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * Category name: display name of the category
26
+ * @type {string}
27
+ * @memberof PatchCategoryRequestDto
28
+ */
29
+ 'name'?: string;
30
+ /**
31
+ * Category slug: URL-friendly identifier
32
+ * @type {string}
33
+ * @memberof PatchCategoryRequestDto
34
+ */
35
+ 'slug'?: string;
36
+ }
@@ -13,13 +13,13 @@ import { CategoryClass } from './category-class';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface UpdateCategoryResponseClass
16
+ * @interface PatchCategoryResponseClass
17
17
  */
18
- export interface UpdateCategoryResponseClass {
18
+ export interface PatchCategoryResponseClass {
19
19
  /**
20
20
  * category
21
21
  * @type {CategoryClass}
22
- * @memberof UpdateCategoryResponseClass
22
+ * @memberof PatchCategoryResponseClass
23
23
  */
24
24
  'category'?: CategoryClass;
25
25
  }
@@ -12,19 +12,25 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface UpdateStatusRequestDto
15
+ * @interface PatchStatusRequestDto
16
16
  */
17
- export interface UpdateStatusRequestDto {
17
+ export interface PatchStatusRequestDto {
18
18
  /**
19
- * code
19
+ * Status code: unique identifier of the status
20
20
  * @type {string}
21
- * @memberof UpdateStatusRequestDto
21
+ * @memberof PatchStatusRequestDto
22
22
  */
23
23
  'code': string;
24
24
  /**
25
- * name
25
+ * Status name: display name of the status
26
26
  * @type {string}
27
- * @memberof UpdateStatusRequestDto
27
+ * @memberof PatchStatusRequestDto
28
28
  */
29
- 'name': string;
29
+ 'name'?: string;
30
+ /**
31
+ * Status slug: URL-friendly identifier
32
+ * @type {string}
33
+ * @memberof PatchStatusRequestDto
34
+ */
35
+ 'slug'?: string;
30
36
  }
@@ -13,13 +13,13 @@ import { StatusClass } from './status-class';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface UpdateStatusResponseClass
16
+ * @interface PatchStatusResponseClass
17
17
  */
18
- export interface UpdateStatusResponseClass {
18
+ export interface PatchStatusResponseClass {
19
19
  /**
20
20
  * status
21
21
  * @type {StatusClass}
22
- * @memberof UpdateStatusResponseClass
22
+ * @memberof PatchStatusResponseClass
23
23
  */
24
24
  'status'?: StatusClass;
25
25
  }