@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
@@ -0,0 +1,108 @@
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 PatchTaskRequestDto
16
+ */
17
+ export interface PatchTaskRequestDto {
18
+ /**
19
+ * Task code: unique identifier of the task
20
+ * @type {string}
21
+ * @memberof PatchTaskRequestDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * Task subject: title of the task
26
+ * @type {string}
27
+ * @memberof PatchTaskRequestDto
28
+ */
29
+ 'subject'?: string;
30
+ /**
31
+ * Task description: detailed description of the task
32
+ * @type {string}
33
+ * @memberof PatchTaskRequestDto
34
+ */
35
+ 'description'?: string;
36
+ /**
37
+ * Task assignee: person assigned to the task
38
+ * @type {string}
39
+ * @memberof PatchTaskRequestDto
40
+ */
41
+ 'assignee'?: string;
42
+ /**
43
+ * Task category slugs (array of category slugs)
44
+ * @type {Array<string>}
45
+ * @memberof PatchTaskRequestDto
46
+ */
47
+ 'categorySlugs': Array<string>;
48
+ /**
49
+ * Task status slug
50
+ * @type {string}
51
+ * @memberof PatchTaskRequestDto
52
+ */
53
+ 'statusSlug'?: string;
54
+ /**
55
+ * Task priority
56
+ * @type {string}
57
+ * @memberof PatchTaskRequestDto
58
+ */
59
+ 'priority'?: string;
60
+ /**
61
+ * Task reporter: person who reported the task
62
+ * @type {string}
63
+ * @memberof PatchTaskRequestDto
64
+ */
65
+ 'reporter'?: string;
66
+ /**
67
+ * Task due date
68
+ * @type {string}
69
+ * @memberof PatchTaskRequestDto
70
+ */
71
+ 'dueDate'?: string;
72
+ /**
73
+ * Set to true to clear/remove the due date.
74
+ * @type {boolean}
75
+ * @memberof PatchTaskRequestDto
76
+ */
77
+ 'clearDueDate'?: boolean;
78
+ /**
79
+ * Set to true to clear/remove the assignee.
80
+ * @type {boolean}
81
+ * @memberof PatchTaskRequestDto
82
+ */
83
+ 'clearAssignee'?: boolean;
84
+ /**
85
+ * Set to true to clear/remove the categories.
86
+ * @type {boolean}
87
+ * @memberof PatchTaskRequestDto
88
+ */
89
+ 'clearCategories'?: boolean;
90
+ /**
91
+ * Set to true to clear/remove the status.
92
+ * @type {boolean}
93
+ * @memberof PatchTaskRequestDto
94
+ */
95
+ 'clearStatus'?: boolean;
96
+ /**
97
+ * Set to true to clear/remove the priority.
98
+ * @type {boolean}
99
+ * @memberof PatchTaskRequestDto
100
+ */
101
+ 'clearPriority'?: boolean;
102
+ /**
103
+ * Set to true to clear/remove the reporter.
104
+ * @type {boolean}
105
+ * @memberof PatchTaskRequestDto
106
+ */
107
+ 'clearReporter'?: boolean;
108
+ }
@@ -13,13 +13,13 @@ import { TaskClass } from './task-class';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface UpdateTaskResponseClass
16
+ * @interface PatchTaskResponseClass
17
17
  */
18
- export interface UpdateTaskResponseClass {
18
+ export interface PatchTaskResponseClass {
19
19
  /**
20
20
  * task
21
21
  * @type {TaskClass}
22
- * @memberof UpdateTaskResponseClass
22
+ * @memberof PatchTaskResponseClass
23
23
  */
24
24
  'task'?: TaskClass;
25
25
  }
@@ -57,4 +57,10 @@ export interface StatusClass {
57
57
  * @memberof StatusClass
58
58
  */
59
59
  'updatedAt'?: string;
60
+ /**
61
+ * slug
62
+ * @type {string}
63
+ * @memberof StatusClass
64
+ */
65
+ 'slug': string;
60
66
  }
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { CategoryClass } from './category-class';
13
- import { PriorityClass } from './priority-class';
14
13
  import { StatusClass } from './status-class';
15
14
  /**
16
15
  *
@@ -47,13 +46,13 @@ export interface TaskClass {
47
46
  * @type {string}
48
47
  * @memberof TaskClass
49
48
  */
50
- 'assignee': string;
49
+ 'assignee'?: string;
51
50
  /**
52
- * category
53
- * @type {CategoryClass}
51
+ * categories
52
+ * @type {Array<CategoryClass>}
54
53
  * @memberof TaskClass
55
54
  */
56
- 'category'?: CategoryClass;
55
+ 'categories': Array<CategoryClass>;
57
56
  /**
58
57
  * status
59
58
  * @type {StatusClass}
@@ -61,11 +60,23 @@ export interface TaskClass {
61
60
  */
62
61
  'status'?: StatusClass;
63
62
  /**
64
- * priority
65
- * @type {PriorityClass}
63
+ * Task priority
64
+ * @type {string}
65
+ * @memberof TaskClass
66
+ */
67
+ 'priority': TaskClassPriorityEnum;
68
+ /**
69
+ * Task reporter: person who reported the task
70
+ * @type {string}
71
+ * @memberof TaskClass
72
+ */
73
+ 'reporter'?: string;
74
+ /**
75
+ * Task due date
76
+ * @type {string}
66
77
  * @memberof TaskClass
67
78
  */
68
- 'priority'?: PriorityClass;
79
+ 'dueDate'?: string;
69
80
  /**
70
81
  * createdBy
71
82
  * @type {string}
@@ -97,3 +108,9 @@ export interface TaskClass {
97
108
  */
98
109
  'updatedAt'?: string;
99
110
  }
111
+ export declare const TaskClassPriorityEnum: {
112
+ readonly Low: "LOW";
113
+ readonly Medium: "MEDIUM";
114
+ readonly High: "HIGH";
115
+ };
116
+ export type TaskClassPriorityEnum = typeof TaskClassPriorityEnum[keyof typeof TaskClassPriorityEnum];
@@ -13,3 +13,9 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TaskClassPriorityEnum = void 0;
17
+ exports.TaskClassPriorityEnum = {
18
+ Low: 'LOW',
19
+ Medium: 'MEDIUM',
20
+ High: 'HIGH'
21
+ };
@@ -62,5 +62,11 @@ export interface CategoryClass {
62
62
  * @memberof CategoryClass
63
63
  */
64
64
  'updatedAt'?: string;
65
+ /**
66
+ * slug
67
+ * @type {string}
68
+ * @memberof CategoryClass
69
+ */
70
+ 'slug': string;
65
71
  }
66
72
 
@@ -21,10 +21,16 @@
21
21
  */
22
22
  export interface CreateCategoryRequestDto {
23
23
  /**
24
- * name
24
+ * Category name: display name of the category
25
25
  * @type {string}
26
26
  * @memberof CreateCategoryRequestDto
27
27
  */
28
28
  'name': string;
29
+ /**
30
+ * Category slug: URL-friendly identifier (auto-generated from name if not provided)
31
+ * @type {string}
32
+ * @memberof CreateCategoryRequestDto
33
+ */
34
+ 'slug'?: string;
29
35
  }
30
36
 
@@ -21,10 +21,16 @@
21
21
  */
22
22
  export interface CreateStatusRequestDto {
23
23
  /**
24
- * name
24
+ * Task status name: display name of the status
25
25
  * @type {string}
26
26
  * @memberof CreateStatusRequestDto
27
27
  */
28
28
  'name': string;
29
+ /**
30
+ * Task status slug - URL-friendly identifier (auto-generated from name if not provided)
31
+ * @type {string}
32
+ * @memberof CreateStatusRequestDto
33
+ */
34
+ 'slug'?: string;
29
35
  }
30
36
 
@@ -21,40 +21,61 @@
21
21
  */
22
22
  export interface CreateTaskRequestDto {
23
23
  /**
24
- * subject
24
+ * Task subject: title of the task
25
25
  * @type {string}
26
26
  * @memberof CreateTaskRequestDto
27
27
  */
28
28
  'subject': string;
29
29
  /**
30
- * description
30
+ * Task description: detailed description of the task
31
31
  * @type {string}
32
32
  * @memberof CreateTaskRequestDto
33
33
  */
34
34
  'description': string;
35
35
  /**
36
- * assignee
36
+ * Task assignee user code: person assigned to the task
37
37
  * @type {string}
38
38
  * @memberof CreateTaskRequestDto
39
39
  */
40
- 'assignee': string;
40
+ 'assignee'?: string;
41
41
  /**
42
- * categoryId
43
- * @type {number}
42
+ * Task category slugs (array of category slugs)
43
+ * @type {Array<string>}
44
44
  * @memberof CreateTaskRequestDto
45
45
  */
46
- 'categoryId'?: number | null;
46
+ 'categorySlugs': Array<string>;
47
47
  /**
48
- * statusId
49
- * @type {number}
48
+ * Task status slug
49
+ * @type {string}
50
50
  * @memberof CreateTaskRequestDto
51
51
  */
52
- 'statusId'?: number | null;
52
+ 'statusSlug'?: string;
53
53
  /**
54
- * priorityId
55
- * @type {number}
54
+ * Task priority
55
+ * @type {string}
56
56
  * @memberof CreateTaskRequestDto
57
57
  */
58
- 'priorityId'?: number | null;
58
+ 'priority'?: CreateTaskRequestDtoPriorityEnum;
59
+ /**
60
+ * Task reporter user code: person who reported the task
61
+ * @type {string}
62
+ * @memberof CreateTaskRequestDto
63
+ */
64
+ 'reporter'?: string;
65
+ /**
66
+ * Task due date.
67
+ * @type {string}
68
+ * @memberof CreateTaskRequestDto
69
+ */
70
+ 'dueDate'?: string;
59
71
  }
60
72
 
73
+ export const CreateTaskRequestDtoPriorityEnum = {
74
+ Low: 'LOW',
75
+ Medium: 'MEDIUM',
76
+ High: 'HIGH'
77
+ } as const;
78
+
79
+ export type CreateTaskRequestDtoPriorityEnum = typeof CreateTaskRequestDtoPriorityEnum[keyof typeof CreateTaskRequestDtoPriorityEnum];
80
+
81
+
package/models/index.ts CHANGED
@@ -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';
@@ -17,20 +17,26 @@
17
17
  /**
18
18
  *
19
19
  * @export
20
- * @interface UpdateCategoryRequestDto
20
+ * @interface PatchCategoryRequestDto
21
21
  */
22
- export interface UpdateCategoryRequestDto {
22
+ export interface PatchCategoryRequestDto {
23
23
  /**
24
- * code
24
+ * Category code: unique identifier of the category
25
25
  * @type {string}
26
- * @memberof UpdateCategoryRequestDto
26
+ * @memberof PatchCategoryRequestDto
27
27
  */
28
28
  'code': string;
29
29
  /**
30
- * name
30
+ * Category name: display name of the category
31
31
  * @type {string}
32
- * @memberof UpdateCategoryRequestDto
32
+ * @memberof PatchCategoryRequestDto
33
33
  */
34
- 'name': string;
34
+ 'name'?: string;
35
+ /**
36
+ * Category slug: URL-friendly identifier
37
+ * @type {string}
38
+ * @memberof PatchCategoryRequestDto
39
+ */
40
+ 'slug'?: string;
35
41
  }
36
42
 
@@ -18,13 +18,13 @@ import { CategoryClass } from './category-class';
18
18
  /**
19
19
  *
20
20
  * @export
21
- * @interface UpdateCategoryResponseClass
21
+ * @interface PatchCategoryResponseClass
22
22
  */
23
- export interface UpdateCategoryResponseClass {
23
+ export interface PatchCategoryResponseClass {
24
24
  /**
25
25
  * category
26
26
  * @type {CategoryClass}
27
- * @memberof UpdateCategoryResponseClass
27
+ * @memberof PatchCategoryResponseClass
28
28
  */
29
29
  'category'?: CategoryClass;
30
30
  }
@@ -17,20 +17,26 @@
17
17
  /**
18
18
  *
19
19
  * @export
20
- * @interface UpdateStatusRequestDto
20
+ * @interface PatchStatusRequestDto
21
21
  */
22
- export interface UpdateStatusRequestDto {
22
+ export interface PatchStatusRequestDto {
23
23
  /**
24
- * code
24
+ * Status code: unique identifier of the status
25
25
  * @type {string}
26
- * @memberof UpdateStatusRequestDto
26
+ * @memberof PatchStatusRequestDto
27
27
  */
28
28
  'code': string;
29
29
  /**
30
- * name
30
+ * Status name: display name of the status
31
31
  * @type {string}
32
- * @memberof UpdateStatusRequestDto
32
+ * @memberof PatchStatusRequestDto
33
33
  */
34
- 'name': string;
34
+ 'name'?: string;
35
+ /**
36
+ * Status slug: URL-friendly identifier
37
+ * @type {string}
38
+ * @memberof PatchStatusRequestDto
39
+ */
40
+ 'slug'?: string;
35
41
  }
36
42
 
@@ -18,13 +18,13 @@ import { StatusClass } from './status-class';
18
18
  /**
19
19
  *
20
20
  * @export
21
- * @interface UpdateStatusResponseClass
21
+ * @interface PatchStatusResponseClass
22
22
  */
23
- export interface UpdateStatusResponseClass {
23
+ export interface PatchStatusResponseClass {
24
24
  /**
25
25
  * status
26
26
  * @type {StatusClass}
27
- * @memberof UpdateStatusResponseClass
27
+ * @memberof PatchStatusResponseClass
28
28
  */
29
29
  'status'?: StatusClass;
30
30
  }
@@ -0,0 +1,114 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL TaskService
5
+ * The EMIL Task API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface PatchTaskRequestDto
21
+ */
22
+ export interface PatchTaskRequestDto {
23
+ /**
24
+ * Task code: unique identifier of the task
25
+ * @type {string}
26
+ * @memberof PatchTaskRequestDto
27
+ */
28
+ 'code': string;
29
+ /**
30
+ * Task subject: title of the task
31
+ * @type {string}
32
+ * @memberof PatchTaskRequestDto
33
+ */
34
+ 'subject'?: string;
35
+ /**
36
+ * Task description: detailed description of the task
37
+ * @type {string}
38
+ * @memberof PatchTaskRequestDto
39
+ */
40
+ 'description'?: string;
41
+ /**
42
+ * Task assignee: person assigned to the task
43
+ * @type {string}
44
+ * @memberof PatchTaskRequestDto
45
+ */
46
+ 'assignee'?: string;
47
+ /**
48
+ * Task category slugs (array of category slugs)
49
+ * @type {Array<string>}
50
+ * @memberof PatchTaskRequestDto
51
+ */
52
+ 'categorySlugs': Array<string>;
53
+ /**
54
+ * Task status slug
55
+ * @type {string}
56
+ * @memberof PatchTaskRequestDto
57
+ */
58
+ 'statusSlug'?: string;
59
+ /**
60
+ * Task priority
61
+ * @type {string}
62
+ * @memberof PatchTaskRequestDto
63
+ */
64
+ 'priority'?: string;
65
+ /**
66
+ * Task reporter: person who reported the task
67
+ * @type {string}
68
+ * @memberof PatchTaskRequestDto
69
+ */
70
+ 'reporter'?: string;
71
+ /**
72
+ * Task due date
73
+ * @type {string}
74
+ * @memberof PatchTaskRequestDto
75
+ */
76
+ 'dueDate'?: string;
77
+ /**
78
+ * Set to true to clear/remove the due date.
79
+ * @type {boolean}
80
+ * @memberof PatchTaskRequestDto
81
+ */
82
+ 'clearDueDate'?: boolean;
83
+ /**
84
+ * Set to true to clear/remove the assignee.
85
+ * @type {boolean}
86
+ * @memberof PatchTaskRequestDto
87
+ */
88
+ 'clearAssignee'?: boolean;
89
+ /**
90
+ * Set to true to clear/remove the categories.
91
+ * @type {boolean}
92
+ * @memberof PatchTaskRequestDto
93
+ */
94
+ 'clearCategories'?: boolean;
95
+ /**
96
+ * Set to true to clear/remove the status.
97
+ * @type {boolean}
98
+ * @memberof PatchTaskRequestDto
99
+ */
100
+ 'clearStatus'?: boolean;
101
+ /**
102
+ * Set to true to clear/remove the priority.
103
+ * @type {boolean}
104
+ * @memberof PatchTaskRequestDto
105
+ */
106
+ 'clearPriority'?: boolean;
107
+ /**
108
+ * Set to true to clear/remove the reporter.
109
+ * @type {boolean}
110
+ * @memberof PatchTaskRequestDto
111
+ */
112
+ 'clearReporter'?: boolean;
113
+ }
114
+
@@ -18,13 +18,13 @@ import { TaskClass } from './task-class';
18
18
  /**
19
19
  *
20
20
  * @export
21
- * @interface UpdateTaskResponseClass
21
+ * @interface PatchTaskResponseClass
22
22
  */
23
- export interface UpdateTaskResponseClass {
23
+ export interface PatchTaskResponseClass {
24
24
  /**
25
25
  * task
26
26
  * @type {TaskClass}
27
- * @memberof UpdateTaskResponseClass
27
+ * @memberof PatchTaskResponseClass
28
28
  */
29
29
  'task'?: TaskClass;
30
30
  }
@@ -62,5 +62,11 @@ export interface StatusClass {
62
62
  * @memberof StatusClass
63
63
  */
64
64
  'updatedAt'?: string;
65
+ /**
66
+ * slug
67
+ * @type {string}
68
+ * @memberof StatusClass
69
+ */
70
+ 'slug': string;
65
71
  }
66
72
 
@@ -14,7 +14,6 @@
14
14
 
15
15
 
16
16
  import { CategoryClass } from './category-class';
17
- import { PriorityClass } from './priority-class';
18
17
  import { StatusClass } from './status-class';
19
18
 
20
19
  /**
@@ -52,13 +51,13 @@ export interface TaskClass {
52
51
  * @type {string}
53
52
  * @memberof TaskClass
54
53
  */
55
- 'assignee': string;
54
+ 'assignee'?: string;
56
55
  /**
57
- * category
58
- * @type {CategoryClass}
56
+ * categories
57
+ * @type {Array<CategoryClass>}
59
58
  * @memberof TaskClass
60
59
  */
61
- 'category'?: CategoryClass;
60
+ 'categories': Array<CategoryClass>;
62
61
  /**
63
62
  * status
64
63
  * @type {StatusClass}
@@ -66,11 +65,23 @@ export interface TaskClass {
66
65
  */
67
66
  'status'?: StatusClass;
68
67
  /**
69
- * priority
70
- * @type {PriorityClass}
68
+ * Task priority
69
+ * @type {string}
70
+ * @memberof TaskClass
71
+ */
72
+ 'priority': TaskClassPriorityEnum;
73
+ /**
74
+ * Task reporter: person who reported the task
75
+ * @type {string}
76
+ * @memberof TaskClass
77
+ */
78
+ 'reporter'?: string;
79
+ /**
80
+ * Task due date
81
+ * @type {string}
71
82
  * @memberof TaskClass
72
83
  */
73
- 'priority'?: PriorityClass;
84
+ 'dueDate'?: string;
74
85
  /**
75
86
  * createdBy
76
87
  * @type {string}
@@ -103,3 +114,12 @@ export interface TaskClass {
103
114
  'updatedAt'?: string;
104
115
  }
105
116
 
117
+ export const TaskClassPriorityEnum = {
118
+ Low: 'LOW',
119
+ Medium: 'MEDIUM',
120
+ High: 'HIGH'
121
+ } as const;
122
+
123
+ export type TaskClassPriorityEnum = typeof TaskClassPriorityEnum[keyof typeof TaskClassPriorityEnum];
124
+
125
+