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

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 (39) hide show
  1. package/.openapi-generator/FILES +6 -6
  2. package/README.md +2 -2
  3. package/api/categories-api.ts +30 -30
  4. package/api/statuses-api.ts +30 -30
  5. package/api/tasks-api.ts +58 -86
  6. package/dist/api/categories-api.d.ts +22 -22
  7. package/dist/api/categories-api.js +20 -20
  8. package/dist/api/statuses-api.d.ts +22 -22
  9. package/dist/api/statuses-api.js +20 -20
  10. package/dist/api/tasks-api.d.ts +43 -61
  11. package/dist/api/tasks-api.js +41 -53
  12. package/dist/models/create-task-request-dto.d.ts +3 -3
  13. package/dist/models/index.d.ts +6 -6
  14. package/dist/models/index.js +6 -6
  15. package/dist/models/task-class.d.ts +3 -3
  16. package/dist/models/{patch-category-request-dto.d.ts → update-category-request-dto.d.ts} +7 -7
  17. package/dist/models/{patch-category-response-class.d.ts → update-category-response-class.d.ts} +3 -3
  18. package/dist/models/{patch-status-request-dto.d.ts → update-status-request-dto.d.ts} +7 -7
  19. package/dist/models/{patch-status-response-class.d.ts → update-status-response-class.d.ts} +3 -3
  20. package/dist/models/update-task-request-dto.d.ts +72 -0
  21. package/dist/models/{patch-task-response-class.d.ts → update-task-response-class.d.ts} +3 -3
  22. package/models/create-task-request-dto.ts +3 -3
  23. package/models/index.ts +6 -6
  24. package/models/task-class.ts +3 -3
  25. package/models/{patch-category-request-dto.ts → update-category-request-dto.ts} +7 -7
  26. package/models/{patch-category-response-class.ts → update-category-response-class.ts} +3 -3
  27. package/models/{patch-status-request-dto.ts → update-status-request-dto.ts} +7 -7
  28. package/models/{patch-status-response-class.ts → update-status-response-class.ts} +3 -3
  29. package/models/update-task-request-dto.ts +78 -0
  30. package/models/{patch-task-response-class.ts → update-task-response-class.ts} +3 -3
  31. package/package.json +1 -1
  32. package/dist/models/patch-task-request-dto.d.ts +0 -108
  33. package/models/patch-task-request-dto.ts +0 -114
  34. /package/dist/models/{patch-category-request-dto.js → update-category-request-dto.js} +0 -0
  35. /package/dist/models/{patch-category-response-class.js → update-category-response-class.js} +0 -0
  36. /package/dist/models/{patch-status-request-dto.js → update-status-request-dto.js} +0 -0
  37. /package/dist/models/{patch-status-response-class.js → update-status-response-class.js} +0 -0
  38. /package/dist/models/{patch-task-request-dto.js → update-task-request-dto.js} +0 -0
  39. /package/dist/models/{patch-task-response-class.js → update-task-response-class.js} +0 -0
@@ -251,17 +251,15 @@ 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 {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>
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, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug</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, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug</i>
256
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, subject, description, assignee, reporter</i>
258
257
  * @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
+ * @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<i>
261
259
  * @param {*} [options] Override http request option.
262
260
  * @throws {RequiredError}
263
261
  */
264
- listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
262
+ listTasks: function (authorization, filter, filters, search, order, expand, options) {
265
263
  if (options === void 0) { options = {}; }
266
264
  return __awaiter(_this, void 0, void 0, function () {
267
265
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -284,15 +282,12 @@ var TasksApiAxiosParamCreator = function (configuration) {
284
282
  // authentication bearer required
285
283
  // http bearer authentication required
286
284
  _a.sent();
287
- if (pageSize !== undefined) {
288
- localVarQueryParameter['pageSize'] = pageSize;
289
- }
290
- if (pageToken !== undefined) {
291
- localVarQueryParameter['pageToken'] = pageToken;
292
- }
293
285
  if (filter !== undefined) {
294
286
  localVarQueryParameter['filter'] = filter;
295
287
  }
288
+ if (filters !== undefined) {
289
+ localVarQueryParameter['filters'] = filters;
290
+ }
296
291
  if (search !== undefined) {
297
292
  localVarQueryParameter['search'] = search;
298
293
  }
@@ -302,9 +297,6 @@ var TasksApiAxiosParamCreator = function (configuration) {
302
297
  if (expand !== undefined) {
303
298
  localVarQueryParameter['expand'] = expand;
304
299
  }
305
- if (filters !== undefined) {
306
- localVarQueryParameter['filters'] = filters;
307
- }
308
300
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
309
301
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
302
  }
@@ -320,15 +312,15 @@ var TasksApiAxiosParamCreator = function (configuration) {
320
312
  });
321
313
  },
322
314
  /**
323
- * This will partially update a task by code with the provided fields.
315
+ * This will update a task by code.
324
316
  * @summary Update the task
325
317
  * @param {string} code
326
- * @param {PatchTaskRequestDto} patchTaskRequestDto
318
+ * @param {UpdateTaskRequestDto} updateTaskRequestDto
327
319
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
328
320
  * @param {*} [options] Override http request option.
329
321
  * @throws {RequiredError}
330
322
  */
331
- patchTask: function (code, patchTaskRequestDto, authorization, options) {
323
+ updateTask: function (code, updateTaskRequestDto, authorization, options) {
332
324
  if (options === void 0) { options = {}; }
333
325
  return __awaiter(_this, void 0, void 0, function () {
334
326
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -336,9 +328,9 @@ var TasksApiAxiosParamCreator = function (configuration) {
336
328
  switch (_a.label) {
337
329
  case 0:
338
330
  // verify required parameter 'code' is not null or undefined
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);
331
+ (0, common_1.assertParamExists)('updateTask', 'code', code);
332
+ // verify required parameter 'updateTaskRequestDto' is not null or undefined
333
+ (0, common_1.assertParamExists)('updateTask', 'updateTaskRequestDto', updateTaskRequestDto);
342
334
  localVarPath = "/taskservice/v1/tasks/{code}"
343
335
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
344
336
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -346,7 +338,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
346
338
  baseOptions = configuration.baseOptions;
347
339
  baseAccessToken = configuration.accessToken;
348
340
  }
349
- localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
341
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
350
342
  localVarHeaderParameter = {};
351
343
  localVarQueryParameter = {};
352
344
  // authentication bearer required
@@ -363,7 +355,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
363
355
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
364
356
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
365
357
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
366
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchTaskRequestDto, localVarRequestOptions, configuration);
358
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTaskRequestDto, localVarRequestOptions, configuration);
367
359
  return [2 /*return*/, {
368
360
  url: (0, common_1.toPathString)(localVarUrlObj),
369
361
  options: localVarRequestOptions,
@@ -450,22 +442,20 @@ var TasksApiFp = function (configuration) {
450
442
  * Retrieves a list of tasks.
451
443
  * @summary List tasks
452
444
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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>
445
+ * @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, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug</i>
446
+ * @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, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug</i>
447
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, subject, description, assignee, reporter</i>
457
448
  * @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>
449
+ * @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<i>
460
450
  * @param {*} [options] Override http request option.
461
451
  * @throws {RequiredError}
462
452
  */
463
- listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
453
+ listTasks: function (authorization, filter, filters, search, order, expand, options) {
464
454
  return __awaiter(this, void 0, void 0, function () {
465
455
  var localVarAxiosArgs;
466
456
  return __generator(this, function (_a) {
467
457
  switch (_a.label) {
468
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
458
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTasks(authorization, filter, filters, search, order, expand, options)];
469
459
  case 1:
470
460
  localVarAxiosArgs = _a.sent();
471
461
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -474,20 +464,20 @@ var TasksApiFp = function (configuration) {
474
464
  });
475
465
  },
476
466
  /**
477
- * This will partially update a task by code with the provided fields.
467
+ * This will update a task by code.
478
468
  * @summary Update the task
479
469
  * @param {string} code
480
- * @param {PatchTaskRequestDto} patchTaskRequestDto
470
+ * @param {UpdateTaskRequestDto} updateTaskRequestDto
481
471
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
482
472
  * @param {*} [options] Override http request option.
483
473
  * @throws {RequiredError}
484
474
  */
485
- patchTask: function (code, patchTaskRequestDto, authorization, options) {
475
+ updateTask: function (code, updateTaskRequestDto, authorization, options) {
486
476
  return __awaiter(this, void 0, void 0, function () {
487
477
  var localVarAxiosArgs;
488
478
  return __generator(this, function (_a) {
489
479
  switch (_a.label) {
490
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options)];
480
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTask(code, updateTaskRequestDto, authorization, options)];
491
481
  case 1:
492
482
  localVarAxiosArgs = _a.sent();
493
483
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -543,30 +533,28 @@ var TasksApiFactory = function (configuration, basePath, axios) {
543
533
  * Retrieves a list of tasks.
544
534
  * @summary List tasks
545
535
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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>
536
+ * @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, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug</i>
537
+ * @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, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug</i>
538
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, subject, description, assignee, reporter</i>
550
539
  * @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>
540
+ * @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<i>
553
541
  * @param {*} [options] Override http request option.
554
542
  * @throws {RequiredError}
555
543
  */
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); });
544
+ listTasks: function (authorization, filter, filters, search, order, expand, options) {
545
+ return localVarFp.listTasks(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
558
546
  },
559
547
  /**
560
- * This will partially update a task by code with the provided fields.
548
+ * This will update a task by code.
561
549
  * @summary Update the task
562
550
  * @param {string} code
563
- * @param {PatchTaskRequestDto} patchTaskRequestDto
551
+ * @param {UpdateTaskRequestDto} updateTaskRequestDto
564
552
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
565
553
  * @param {*} [options] Override http request option.
566
554
  * @throws {RequiredError}
567
555
  */
568
- patchTask: function (code, patchTaskRequestDto, authorization, options) {
569
- return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
556
+ updateTask: function (code, updateTaskRequestDto, authorization, options) {
557
+ return localVarFp.updateTask(code, updateTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
570
558
  },
571
559
  };
572
560
  };
@@ -629,19 +617,19 @@ var TasksApi = /** @class */ (function (_super) {
629
617
  TasksApi.prototype.listTasks = function (requestParameters, options) {
630
618
  var _this = this;
631
619
  if (requestParameters === void 0) { requestParameters = {}; }
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); });
620
+ return (0, exports.TasksApiFp)(this.configuration).listTasks(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
633
621
  };
634
622
  /**
635
- * This will partially update a task by code with the provided fields.
623
+ * This will update a task by code.
636
624
  * @summary Update the task
637
- * @param {TasksApiPatchTaskRequest} requestParameters Request parameters.
625
+ * @param {TasksApiUpdateTaskRequest} requestParameters Request parameters.
638
626
  * @param {*} [options] Override http request option.
639
627
  * @throws {RequiredError}
640
628
  * @memberof TasksApi
641
629
  */
642
- TasksApi.prototype.patchTask = function (requestParameters, options) {
630
+ TasksApi.prototype.updateTask = function (requestParameters, options) {
643
631
  var _this = this;
644
- return (0, exports.TasksApiFp)(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
632
+ return (0, exports.TasksApiFp)(this.configuration).updateTask(requestParameters.code, requestParameters.updateTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
645
633
  };
646
634
  return TasksApi;
647
635
  }(base_1.BaseAPI));
@@ -34,11 +34,11 @@ export interface CreateTaskRequestDto {
34
34
  */
35
35
  'assignee'?: string;
36
36
  /**
37
- * Task category slugs (array of category slugs)
38
- * @type {Array<string>}
37
+ * Task category slug
38
+ * @type {string}
39
39
  * @memberof CreateTaskRequestDto
40
40
  */
41
- 'categorySlugs': Array<string>;
41
+ 'categorySlug'?: string;
42
42
  /**
43
43
  * Task status slug
44
44
  * @type {string}
@@ -18,11 +18,11 @@ export * from './inline-response503';
18
18
  export * from './list-categories-response-class';
19
19
  export * from './list-statuses-response-class';
20
20
  export * from './list-tasks-response-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';
27
21
  export * from './status-class';
28
22
  export * from './task-class';
23
+ export * from './update-category-request-dto';
24
+ export * from './update-category-response-class';
25
+ export * from './update-status-request-dto';
26
+ export * from './update-status-response-class';
27
+ export * from './update-task-request-dto';
28
+ export * from './update-task-response-class';
@@ -34,11 +34,11 @@ __exportStar(require("./inline-response503"), exports);
34
34
  __exportStar(require("./list-categories-response-class"), exports);
35
35
  __exportStar(require("./list-statuses-response-class"), exports);
36
36
  __exportStar(require("./list-tasks-response-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);
43
37
  __exportStar(require("./status-class"), exports);
44
38
  __exportStar(require("./task-class"), exports);
39
+ __exportStar(require("./update-category-request-dto"), exports);
40
+ __exportStar(require("./update-category-response-class"), exports);
41
+ __exportStar(require("./update-status-request-dto"), exports);
42
+ __exportStar(require("./update-status-response-class"), exports);
43
+ __exportStar(require("./update-task-request-dto"), exports);
44
+ __exportStar(require("./update-task-response-class"), exports);
@@ -48,11 +48,11 @@ export interface TaskClass {
48
48
  */
49
49
  'assignee'?: string;
50
50
  /**
51
- * categories
52
- * @type {Array<CategoryClass>}
51
+ * category
52
+ * @type {CategoryClass}
53
53
  * @memberof TaskClass
54
54
  */
55
- 'categories': Array<CategoryClass>;
55
+ 'category'?: CategoryClass;
56
56
  /**
57
57
  * status
58
58
  * @type {StatusClass}
@@ -12,25 +12,25 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface PatchCategoryRequestDto
15
+ * @interface UpdateCategoryRequestDto
16
16
  */
17
- export interface PatchCategoryRequestDto {
17
+ export interface UpdateCategoryRequestDto {
18
18
  /**
19
19
  * Category code: unique identifier of the category
20
20
  * @type {string}
21
- * @memberof PatchCategoryRequestDto
21
+ * @memberof UpdateCategoryRequestDto
22
22
  */
23
23
  'code': string;
24
24
  /**
25
25
  * Category name: display name of the category
26
26
  * @type {string}
27
- * @memberof PatchCategoryRequestDto
27
+ * @memberof UpdateCategoryRequestDto
28
28
  */
29
- 'name'?: string;
29
+ 'name': string;
30
30
  /**
31
31
  * Category slug: URL-friendly identifier
32
32
  * @type {string}
33
- * @memberof PatchCategoryRequestDto
33
+ * @memberof UpdateCategoryRequestDto
34
34
  */
35
- 'slug'?: string;
35
+ 'slug': string;
36
36
  }
@@ -13,13 +13,13 @@ import { CategoryClass } from './category-class';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface PatchCategoryResponseClass
16
+ * @interface UpdateCategoryResponseClass
17
17
  */
18
- export interface PatchCategoryResponseClass {
18
+ export interface UpdateCategoryResponseClass {
19
19
  /**
20
20
  * category
21
21
  * @type {CategoryClass}
22
- * @memberof PatchCategoryResponseClass
22
+ * @memberof UpdateCategoryResponseClass
23
23
  */
24
24
  'category'?: CategoryClass;
25
25
  }
@@ -12,25 +12,25 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface PatchStatusRequestDto
15
+ * @interface UpdateStatusRequestDto
16
16
  */
17
- export interface PatchStatusRequestDto {
17
+ export interface UpdateStatusRequestDto {
18
18
  /**
19
19
  * Status code: unique identifier of the status
20
20
  * @type {string}
21
- * @memberof PatchStatusRequestDto
21
+ * @memberof UpdateStatusRequestDto
22
22
  */
23
23
  'code': string;
24
24
  /**
25
25
  * Status name: display name of the status
26
26
  * @type {string}
27
- * @memberof PatchStatusRequestDto
27
+ * @memberof UpdateStatusRequestDto
28
28
  */
29
- 'name'?: string;
29
+ 'name': string;
30
30
  /**
31
31
  * Status slug: URL-friendly identifier
32
32
  * @type {string}
33
- * @memberof PatchStatusRequestDto
33
+ * @memberof UpdateStatusRequestDto
34
34
  */
35
- 'slug'?: string;
35
+ 'slug': string;
36
36
  }
@@ -13,13 +13,13 @@ import { StatusClass } from './status-class';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface PatchStatusResponseClass
16
+ * @interface UpdateStatusResponseClass
17
17
  */
18
- export interface PatchStatusResponseClass {
18
+ export interface UpdateStatusResponseClass {
19
19
  /**
20
20
  * status
21
21
  * @type {StatusClass}
22
- * @memberof PatchStatusResponseClass
22
+ * @memberof UpdateStatusResponseClass
23
23
  */
24
24
  'status'?: StatusClass;
25
25
  }
@@ -0,0 +1,72 @@
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 UpdateTaskRequestDto
16
+ */
17
+ export interface UpdateTaskRequestDto {
18
+ /**
19
+ * Task code: unique identifier of the task
20
+ * @type {string}
21
+ * @memberof UpdateTaskRequestDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * Task subject: title of the task
26
+ * @type {string}
27
+ * @memberof UpdateTaskRequestDto
28
+ */
29
+ 'subject': string;
30
+ /**
31
+ * Task description: detailed description of the task
32
+ * @type {string}
33
+ * @memberof UpdateTaskRequestDto
34
+ */
35
+ 'description': string;
36
+ /**
37
+ * Task assignee: person assigned to the task
38
+ * @type {string}
39
+ * @memberof UpdateTaskRequestDto
40
+ */
41
+ 'assignee': string;
42
+ /**
43
+ * Task category slug
44
+ * @type {string}
45
+ * @memberof UpdateTaskRequestDto
46
+ */
47
+ 'categorySlug'?: string;
48
+ /**
49
+ * Task status slug
50
+ * @type {string}
51
+ * @memberof UpdateTaskRequestDto
52
+ */
53
+ 'statusSlug'?: string;
54
+ /**
55
+ * Task priority
56
+ * @type {string}
57
+ * @memberof UpdateTaskRequestDto
58
+ */
59
+ 'priority'?: string | null;
60
+ /**
61
+ * Task reporter: person who reported the task
62
+ * @type {string}
63
+ * @memberof UpdateTaskRequestDto
64
+ */
65
+ 'reporter'?: string | null;
66
+ /**
67
+ * Task due date
68
+ * @type {string}
69
+ * @memberof UpdateTaskRequestDto
70
+ */
71
+ 'dueDate'?: string | null;
72
+ }
@@ -13,13 +13,13 @@ import { TaskClass } from './task-class';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface PatchTaskResponseClass
16
+ * @interface UpdateTaskResponseClass
17
17
  */
18
- export interface PatchTaskResponseClass {
18
+ export interface UpdateTaskResponseClass {
19
19
  /**
20
20
  * task
21
21
  * @type {TaskClass}
22
- * @memberof PatchTaskResponseClass
22
+ * @memberof UpdateTaskResponseClass
23
23
  */
24
24
  'task'?: TaskClass;
25
25
  }
@@ -39,11 +39,11 @@ export interface CreateTaskRequestDto {
39
39
  */
40
40
  'assignee'?: string;
41
41
  /**
42
- * Task category slugs (array of category slugs)
43
- * @type {Array<string>}
42
+ * Task category slug
43
+ * @type {string}
44
44
  * @memberof CreateTaskRequestDto
45
45
  */
46
- 'categorySlugs': Array<string>;
46
+ 'categorySlug'?: string;
47
47
  /**
48
48
  * Task status slug
49
49
  * @type {string}
package/models/index.ts CHANGED
@@ -18,11 +18,11 @@ export * from './inline-response503';
18
18
  export * from './list-categories-response-class';
19
19
  export * from './list-statuses-response-class';
20
20
  export * from './list-tasks-response-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';
27
21
  export * from './status-class';
28
22
  export * from './task-class';
23
+ export * from './update-category-request-dto';
24
+ export * from './update-category-response-class';
25
+ export * from './update-status-request-dto';
26
+ export * from './update-status-response-class';
27
+ export * from './update-task-request-dto';
28
+ export * from './update-task-response-class';
@@ -53,11 +53,11 @@ export interface TaskClass {
53
53
  */
54
54
  'assignee'?: string;
55
55
  /**
56
- * categories
57
- * @type {Array<CategoryClass>}
56
+ * category
57
+ * @type {CategoryClass}
58
58
  * @memberof TaskClass
59
59
  */
60
- 'categories': Array<CategoryClass>;
60
+ 'category'?: CategoryClass;
61
61
  /**
62
62
  * status
63
63
  * @type {StatusClass}
@@ -17,26 +17,26 @@
17
17
  /**
18
18
  *
19
19
  * @export
20
- * @interface PatchCategoryRequestDto
20
+ * @interface UpdateCategoryRequestDto
21
21
  */
22
- export interface PatchCategoryRequestDto {
22
+ export interface UpdateCategoryRequestDto {
23
23
  /**
24
24
  * Category code: unique identifier of the category
25
25
  * @type {string}
26
- * @memberof PatchCategoryRequestDto
26
+ * @memberof UpdateCategoryRequestDto
27
27
  */
28
28
  'code': string;
29
29
  /**
30
30
  * Category name: display name of the category
31
31
  * @type {string}
32
- * @memberof PatchCategoryRequestDto
32
+ * @memberof UpdateCategoryRequestDto
33
33
  */
34
- 'name'?: string;
34
+ 'name': string;
35
35
  /**
36
36
  * Category slug: URL-friendly identifier
37
37
  * @type {string}
38
- * @memberof PatchCategoryRequestDto
38
+ * @memberof UpdateCategoryRequestDto
39
39
  */
40
- 'slug'?: string;
40
+ 'slug': string;
41
41
  }
42
42
 
@@ -18,13 +18,13 @@ import { CategoryClass } from './category-class';
18
18
  /**
19
19
  *
20
20
  * @export
21
- * @interface PatchCategoryResponseClass
21
+ * @interface UpdateCategoryResponseClass
22
22
  */
23
- export interface PatchCategoryResponseClass {
23
+ export interface UpdateCategoryResponseClass {
24
24
  /**
25
25
  * category
26
26
  * @type {CategoryClass}
27
- * @memberof PatchCategoryResponseClass
27
+ * @memberof UpdateCategoryResponseClass
28
28
  */
29
29
  'category'?: CategoryClass;
30
30
  }