@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
@@ -146,7 +146,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
146
146
  });
147
147
  },
148
148
  /**
149
- * This will delete task.
149
+ * This will delete a task by code.
150
150
  * @summary Delete the task
151
151
  * @param {string} code Unique identifier for the object.
152
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -194,7 +194,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
194
194
  });
195
195
  },
196
196
  /**
197
- * This will get task.
197
+ * This will get a task by code.
198
198
  * @summary Retrieve the task
199
199
  * @param {string} code
200
200
  * @param {string} expand
@@ -251,14 +251,17 @@ var TasksApiAxiosParamCreator = function (configuration) {
251
251
  * Retrieves a list of tasks.
252
252
  * @summary List tasks
253
253
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
254
- * @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>
255
- * @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>
256
- * @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>
257
- * @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>
254
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
255
+ * @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.
256
+ * @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>
257
+ * @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>
258
+ * @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>
259
+ * @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>
260
+ * @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>
258
261
  * @param {*} [options] Override http request option.
259
262
  * @throws {RequiredError}
260
263
  */
261
- listTasks: function (authorization, filter, filters, order, expand, options) {
264
+ listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
262
265
  if (options === void 0) { options = {}; }
263
266
  return __awaiter(_this, void 0, void 0, function () {
264
267
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -281,11 +284,17 @@ var TasksApiAxiosParamCreator = function (configuration) {
281
284
  // authentication bearer required
282
285
  // http bearer authentication required
283
286
  _a.sent();
287
+ if (pageSize !== undefined) {
288
+ localVarQueryParameter['pageSize'] = pageSize;
289
+ }
290
+ if (pageToken !== undefined) {
291
+ localVarQueryParameter['pageToken'] = pageToken;
292
+ }
284
293
  if (filter !== undefined) {
285
294
  localVarQueryParameter['filter'] = filter;
286
295
  }
287
- if (filters !== undefined) {
288
- localVarQueryParameter['filters'] = filters;
296
+ if (search !== undefined) {
297
+ localVarQueryParameter['search'] = search;
289
298
  }
290
299
  if (order !== undefined) {
291
300
  localVarQueryParameter['order'] = order;
@@ -293,6 +302,9 @@ var TasksApiAxiosParamCreator = function (configuration) {
293
302
  if (expand !== undefined) {
294
303
  localVarQueryParameter['expand'] = expand;
295
304
  }
305
+ if (filters !== undefined) {
306
+ localVarQueryParameter['filters'] = filters;
307
+ }
296
308
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
297
309
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
298
310
  }
@@ -308,15 +320,15 @@ var TasksApiAxiosParamCreator = function (configuration) {
308
320
  });
309
321
  },
310
322
  /**
311
- * This will update task.
323
+ * This will partially update a task by code with the provided fields.
312
324
  * @summary Update the task
313
325
  * @param {string} code
314
- * @param {UpdateTaskRequestDto} updateTaskRequestDto
326
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
315
327
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
316
328
  * @param {*} [options] Override http request option.
317
329
  * @throws {RequiredError}
318
330
  */
319
- updateTask: function (code, updateTaskRequestDto, authorization, options) {
331
+ patchTask: function (code, patchTaskRequestDto, authorization, options) {
320
332
  if (options === void 0) { options = {}; }
321
333
  return __awaiter(_this, void 0, void 0, function () {
322
334
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -324,9 +336,9 @@ var TasksApiAxiosParamCreator = function (configuration) {
324
336
  switch (_a.label) {
325
337
  case 0:
326
338
  // verify required parameter 'code' is not null or undefined
327
- (0, common_1.assertParamExists)('updateTask', 'code', code);
328
- // verify required parameter 'updateTaskRequestDto' is not null or undefined
329
- (0, common_1.assertParamExists)('updateTask', 'updateTaskRequestDto', updateTaskRequestDto);
339
+ (0, common_1.assertParamExists)('patchTask', 'code', code);
340
+ // verify required parameter 'patchTaskRequestDto' is not null or undefined
341
+ (0, common_1.assertParamExists)('patchTask', 'patchTaskRequestDto', patchTaskRequestDto);
330
342
  localVarPath = "/taskservice/v1/tasks/{code}"
331
343
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
332
344
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -334,7 +346,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
334
346
  baseOptions = configuration.baseOptions;
335
347
  baseAccessToken = configuration.accessToken;
336
348
  }
337
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
349
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
338
350
  localVarHeaderParameter = {};
339
351
  localVarQueryParameter = {};
340
352
  // authentication bearer required
@@ -351,7 +363,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
351
363
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
352
364
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
353
365
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
354
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTaskRequestDto, localVarRequestOptions, configuration);
366
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchTaskRequestDto, localVarRequestOptions, configuration);
355
367
  return [2 /*return*/, {
356
368
  url: (0, common_1.toPathString)(localVarUrlObj),
357
369
  options: localVarRequestOptions,
@@ -392,7 +404,7 @@ var TasksApiFp = function (configuration) {
392
404
  });
393
405
  },
394
406
  /**
395
- * This will delete task.
407
+ * This will delete a task by code.
396
408
  * @summary Delete the task
397
409
  * @param {string} code Unique identifier for the object.
398
410
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -413,7 +425,7 @@ var TasksApiFp = function (configuration) {
413
425
  });
414
426
  },
415
427
  /**
416
- * This will get task.
428
+ * This will get a task by code.
417
429
  * @summary Retrieve the task
418
430
  * @param {string} code
419
431
  * @param {string} expand
@@ -438,19 +450,22 @@ var TasksApiFp = function (configuration) {
438
450
  * Retrieves a list of tasks.
439
451
  * @summary List tasks
440
452
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
441
- * @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>
442
- * @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>
443
- * @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>
444
- * @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>
453
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
454
+ * @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.
455
+ * @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>
456
+ * @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>
457
+ * @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>
458
+ * @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>
459
+ * @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>
445
460
  * @param {*} [options] Override http request option.
446
461
  * @throws {RequiredError}
447
462
  */
448
- listTasks: function (authorization, filter, filters, order, expand, options) {
463
+ listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
449
464
  return __awaiter(this, void 0, void 0, function () {
450
465
  var localVarAxiosArgs;
451
466
  return __generator(this, function (_a) {
452
467
  switch (_a.label) {
453
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTasks(authorization, filter, filters, order, expand, options)];
468
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
454
469
  case 1:
455
470
  localVarAxiosArgs = _a.sent();
456
471
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -459,20 +474,20 @@ var TasksApiFp = function (configuration) {
459
474
  });
460
475
  },
461
476
  /**
462
- * This will update task.
477
+ * This will partially update a task by code with the provided fields.
463
478
  * @summary Update the task
464
479
  * @param {string} code
465
- * @param {UpdateTaskRequestDto} updateTaskRequestDto
480
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
466
481
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
467
482
  * @param {*} [options] Override http request option.
468
483
  * @throws {RequiredError}
469
484
  */
470
- updateTask: function (code, updateTaskRequestDto, authorization, options) {
485
+ patchTask: function (code, patchTaskRequestDto, authorization, options) {
471
486
  return __awaiter(this, void 0, void 0, function () {
472
487
  var localVarAxiosArgs;
473
488
  return __generator(this, function (_a) {
474
489
  switch (_a.label) {
475
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTask(code, updateTaskRequestDto, authorization, options)];
490
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options)];
476
491
  case 1:
477
492
  localVarAxiosArgs = _a.sent();
478
493
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -502,7 +517,7 @@ var TasksApiFactory = function (configuration, basePath, axios) {
502
517
  return localVarFp.createTask(createTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
503
518
  },
504
519
  /**
505
- * This will delete task.
520
+ * This will delete a task by code.
506
521
  * @summary Delete the task
507
522
  * @param {string} code Unique identifier for the object.
508
523
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -513,7 +528,7 @@ var TasksApiFactory = function (configuration, basePath, axios) {
513
528
  return localVarFp.deleteTask(code, authorization, options).then(function (request) { return request(axios, basePath); });
514
529
  },
515
530
  /**
516
- * This will get task.
531
+ * This will get a task by code.
517
532
  * @summary Retrieve the task
518
533
  * @param {string} code
519
534
  * @param {string} expand
@@ -528,27 +543,30 @@ var TasksApiFactory = function (configuration, basePath, axios) {
528
543
  * Retrieves a list of tasks.
529
544
  * @summary List tasks
530
545
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
531
- * @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>
532
- * @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>
533
- * @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>
534
- * @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>
546
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
547
+ * @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.
548
+ * @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>
549
+ * @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>
550
+ * @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>
551
+ * @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>
552
+ * @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>
535
553
  * @param {*} [options] Override http request option.
536
554
  * @throws {RequiredError}
537
555
  */
538
- listTasks: function (authorization, filter, filters, order, expand, options) {
539
- return localVarFp.listTasks(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
556
+ listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
557
+ return localVarFp.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
540
558
  },
541
559
  /**
542
- * This will update task.
560
+ * This will partially update a task by code with the provided fields.
543
561
  * @summary Update the task
544
562
  * @param {string} code
545
- * @param {UpdateTaskRequestDto} updateTaskRequestDto
563
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
546
564
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
547
565
  * @param {*} [options] Override http request option.
548
566
  * @throws {RequiredError}
549
567
  */
550
- updateTask: function (code, updateTaskRequestDto, authorization, options) {
551
- return localVarFp.updateTask(code, updateTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
568
+ patchTask: function (code, patchTaskRequestDto, authorization, options) {
569
+ return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
552
570
  },
553
571
  };
554
572
  };
@@ -577,7 +595,7 @@ var TasksApi = /** @class */ (function (_super) {
577
595
  return (0, exports.TasksApiFp)(this.configuration).createTask(requestParameters.createTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
578
596
  };
579
597
  /**
580
- * This will delete task.
598
+ * This will delete a task by code.
581
599
  * @summary Delete the task
582
600
  * @param {TasksApiDeleteTaskRequest} requestParameters Request parameters.
583
601
  * @param {*} [options] Override http request option.
@@ -589,7 +607,7 @@ var TasksApi = /** @class */ (function (_super) {
589
607
  return (0, exports.TasksApiFp)(this.configuration).deleteTask(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
590
608
  };
591
609
  /**
592
- * This will get task.
610
+ * This will get a task by code.
593
611
  * @summary Retrieve the task
594
612
  * @param {TasksApiGetTaskRequest} requestParameters Request parameters.
595
613
  * @param {*} [options] Override http request option.
@@ -611,19 +629,19 @@ var TasksApi = /** @class */ (function (_super) {
611
629
  TasksApi.prototype.listTasks = function (requestParameters, options) {
612
630
  var _this = this;
613
631
  if (requestParameters === void 0) { requestParameters = {}; }
614
- 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); });
632
+ 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); });
615
633
  };
616
634
  /**
617
- * This will update task.
635
+ * This will partially update a task by code with the provided fields.
618
636
  * @summary Update the task
619
- * @param {TasksApiUpdateTaskRequest} requestParameters Request parameters.
637
+ * @param {TasksApiPatchTaskRequest} requestParameters Request parameters.
620
638
  * @param {*} [options] Override http request option.
621
639
  * @throws {RequiredError}
622
640
  * @memberof TasksApi
623
641
  */
624
- TasksApi.prototype.updateTask = function (requestParameters, options) {
642
+ TasksApi.prototype.patchTask = function (requestParameters, options) {
625
643
  var _this = this;
626
- return (0, exports.TasksApiFp)(this.configuration).updateTask(requestParameters.code, requestParameters.updateTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
644
+ return (0, exports.TasksApiFp)(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
627
645
  };
628
646
  return TasksApi;
629
647
  }(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
  }