@emilgroup/task-sdk 1.0.1-beta.10 → 1.0.1-beta.3

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
@@ -247,17 +247,15 @@ 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 {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>
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, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug</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, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug</i>
252
+ * @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>
254
253
  * @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
+ * @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>
257
255
  * @param {*} [options] Override http request option.
258
256
  * @throws {RequiredError}
259
257
  */
260
- listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
258
+ listTasks: function (authorization, filter, filters, search, order, expand, options) {
261
259
  if (options === void 0) { options = {}; }
262
260
  return __awaiter(_this, void 0, void 0, function () {
263
261
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -280,15 +278,12 @@ var TasksApiAxiosParamCreator = function (configuration) {
280
278
  // authentication bearer required
281
279
  // http bearer authentication required
282
280
  _a.sent();
283
- if (pageSize !== undefined) {
284
- localVarQueryParameter['pageSize'] = pageSize;
285
- }
286
- if (pageToken !== undefined) {
287
- localVarQueryParameter['pageToken'] = pageToken;
288
- }
289
281
  if (filter !== undefined) {
290
282
  localVarQueryParameter['filter'] = filter;
291
283
  }
284
+ if (filters !== undefined) {
285
+ localVarQueryParameter['filters'] = filters;
286
+ }
292
287
  if (search !== undefined) {
293
288
  localVarQueryParameter['search'] = search;
294
289
  }
@@ -298,9 +293,6 @@ var TasksApiAxiosParamCreator = function (configuration) {
298
293
  if (expand !== undefined) {
299
294
  localVarQueryParameter['expand'] = expand;
300
295
  }
301
- if (filters !== undefined) {
302
- localVarQueryParameter['filters'] = filters;
303
- }
304
296
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
297
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
306
298
  }
@@ -316,15 +308,15 @@ var TasksApiAxiosParamCreator = function (configuration) {
316
308
  });
317
309
  },
318
310
  /**
319
- * This will partially update a task by code with the provided fields.
311
+ * This will update a task by code.
320
312
  * @summary Update the task
321
313
  * @param {string} code
322
- * @param {PatchTaskRequestDto} patchTaskRequestDto
314
+ * @param {UpdateTaskRequestDto} updateTaskRequestDto
323
315
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
324
316
  * @param {*} [options] Override http request option.
325
317
  * @throws {RequiredError}
326
318
  */
327
- patchTask: function (code, patchTaskRequestDto, authorization, options) {
319
+ updateTask: function (code, updateTaskRequestDto, authorization, options) {
328
320
  if (options === void 0) { options = {}; }
329
321
  return __awaiter(_this, void 0, void 0, function () {
330
322
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -332,9 +324,9 @@ var TasksApiAxiosParamCreator = function (configuration) {
332
324
  switch (_a.label) {
333
325
  case 0:
334
326
  // verify required parameter 'code' is not null or undefined
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);
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);
338
330
  localVarPath = "/taskservice/v1/tasks/{code}"
339
331
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
340
332
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -342,7 +334,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
342
334
  baseOptions = configuration.baseOptions;
343
335
  baseAccessToken = configuration.accessToken;
344
336
  }
345
- localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
337
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
346
338
  localVarHeaderParameter = {};
347
339
  localVarQueryParameter = {};
348
340
  // authentication bearer required
@@ -359,7 +351,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
359
351
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
360
352
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
361
353
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
362
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchTaskRequestDto, localVarRequestOptions, configuration);
354
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTaskRequestDto, localVarRequestOptions, configuration);
363
355
  return [2 /*return*/, {
364
356
  url: (0, common_1.toPathString)(localVarUrlObj),
365
357
  options: localVarRequestOptions,
@@ -446,22 +438,20 @@ var TasksApiFp = function (configuration) {
446
438
  * Retrieves a list of tasks.
447
439
  * @summary List tasks
448
440
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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>
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, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug</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, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug</i>
443
+ * @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>
453
444
  * @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>
445
+ * @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>
456
446
  * @param {*} [options] Override http request option.
457
447
  * @throws {RequiredError}
458
448
  */
459
- listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
449
+ listTasks: function (authorization, filter, filters, search, order, expand, options) {
460
450
  return __awaiter(this, void 0, void 0, function () {
461
451
  var localVarAxiosArgs;
462
452
  return __generator(this, function (_a) {
463
453
  switch (_a.label) {
464
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
454
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTasks(authorization, filter, filters, search, order, expand, options)];
465
455
  case 1:
466
456
  localVarAxiosArgs = _a.sent();
467
457
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -470,20 +460,20 @@ var TasksApiFp = function (configuration) {
470
460
  });
471
461
  },
472
462
  /**
473
- * This will partially update a task by code with the provided fields.
463
+ * This will update a task by code.
474
464
  * @summary Update the task
475
465
  * @param {string} code
476
- * @param {PatchTaskRequestDto} patchTaskRequestDto
466
+ * @param {UpdateTaskRequestDto} updateTaskRequestDto
477
467
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
478
468
  * @param {*} [options] Override http request option.
479
469
  * @throws {RequiredError}
480
470
  */
481
- patchTask: function (code, patchTaskRequestDto, authorization, options) {
471
+ updateTask: function (code, updateTaskRequestDto, authorization, options) {
482
472
  return __awaiter(this, void 0, void 0, function () {
483
473
  var localVarAxiosArgs;
484
474
  return __generator(this, function (_a) {
485
475
  switch (_a.label) {
486
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options)];
476
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTask(code, updateTaskRequestDto, authorization, options)];
487
477
  case 1:
488
478
  localVarAxiosArgs = _a.sent();
489
479
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -539,30 +529,28 @@ var TasksApiFactory = function (configuration, basePath, axios) {
539
529
  * Retrieves a list of tasks.
540
530
  * @summary List tasks
541
531
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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>
532
+ * @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>
533
+ * @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>
534
+ * @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>
546
535
  * @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>
536
+ * @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>
549
537
  * @param {*} [options] Override http request option.
550
538
  * @throws {RequiredError}
551
539
  */
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); });
540
+ listTasks: function (authorization, filter, filters, search, order, expand, options) {
541
+ return localVarFp.listTasks(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
554
542
  },
555
543
  /**
556
- * This will partially update a task by code with the provided fields.
544
+ * This will update a task by code.
557
545
  * @summary Update the task
558
546
  * @param {string} code
559
- * @param {PatchTaskRequestDto} patchTaskRequestDto
547
+ * @param {UpdateTaskRequestDto} updateTaskRequestDto
560
548
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
561
549
  * @param {*} [options] Override http request option.
562
550
  * @throws {RequiredError}
563
551
  */
564
- patchTask: function (code, patchTaskRequestDto, authorization, options) {
565
- return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
552
+ updateTask: function (code, updateTaskRequestDto, authorization, options) {
553
+ return localVarFp.updateTask(code, updateTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
566
554
  },
567
555
  };
568
556
  };
@@ -625,19 +613,19 @@ var TasksApi = /** @class */ (function (_super) {
625
613
  TasksApi.prototype.listTasks = function (requestParameters, options) {
626
614
  var _this = this;
627
615
  if (requestParameters === void 0) { requestParameters = {}; }
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); });
616
+ 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); });
629
617
  };
630
618
  /**
631
- * This will partially update a task by code with the provided fields.
619
+ * This will update a task by code.
632
620
  * @summary Update the task
633
- * @param {TasksApiPatchTaskRequest} requestParameters Request parameters.
621
+ * @param {TasksApiUpdateTaskRequest} requestParameters Request parameters.
634
622
  * @param {*} [options] Override http request option.
635
623
  * @throws {RequiredError}
636
624
  * @memberof TasksApi
637
625
  */
638
- TasksApi.prototype.patchTask = function (requestParameters, options) {
626
+ TasksApi.prototype.updateTask = function (requestParameters, options) {
639
627
  var _this = this;
640
- return (0, exports.TasksApiFp)(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
628
+ return (0, exports.TasksApiFp)(this.configuration).updateTask(requestParameters.code, requestParameters.updateTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
641
629
  };
642
630
  return TasksApi;
643
631
  }(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
  }