@emilgroup/task-sdk-node 1.0.1-beta.1 → 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 (53) hide show
  1. package/.openapi-generator/FILES +0 -5
  2. package/README.md +2 -2
  3. package/api/categories-api.ts +44 -30
  4. package/api/statuses-api.ts +40 -26
  5. package/api/tasks-api.ts +48 -34
  6. package/api.ts +0 -2
  7. package/dist/api/categories-api.d.ts +36 -27
  8. package/dist/api/categories-api.js +33 -27
  9. package/dist/api/statuses-api.d.ts +32 -23
  10. package/dist/api/statuses-api.js +29 -23
  11. package/dist/api/tasks-api.d.ts +40 -31
  12. package/dist/api/tasks-api.js +36 -30
  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 +0 -4
  21. package/dist/models/index.js +0 -4
  22. package/dist/models/status-class.d.ts +6 -0
  23. package/dist/models/task-class.d.ts +22 -5
  24. package/dist/models/task-class.js +6 -0
  25. package/dist/models/update-category-request-dto.d.ts +8 -2
  26. package/dist/models/update-status-request-dto.d.ts +8 -2
  27. package/dist/models/update-task-request-dto.d.ts +26 -14
  28. package/models/category-class.ts +6 -0
  29. package/models/create-category-request-dto.ts +7 -1
  30. package/models/create-status-request-dto.ts +7 -1
  31. package/models/create-task-request-dto.ts +34 -13
  32. package/models/index.ts +0 -4
  33. package/models/status-class.ts +6 -0
  34. package/models/task-class.ts +25 -5
  35. package/models/update-category-request-dto.ts +8 -2
  36. package/models/update-status-request-dto.ts +8 -2
  37. package/models/update-task-request-dto.ts +26 -14
  38. package/package.json +1 -1
  39. package/api/priorities-api.ts +0 -288
  40. package/dist/api/priorities-api.d.ts +0 -162
  41. package/dist/api/priorities-api.js +0 -328
  42. package/dist/models/create-priority-request-dto.d.ts +0 -24
  43. package/dist/models/create-priority-request-dto.js +0 -15
  44. package/dist/models/create-priority-response-class.d.ts +0 -25
  45. package/dist/models/create-priority-response-class.js +0 -15
  46. package/dist/models/get-priority-response-class.d.ts +0 -25
  47. package/dist/models/get-priority-response-class.js +0 -15
  48. package/dist/models/priority-class.d.ts +0 -60
  49. package/dist/models/priority-class.js +0 -15
  50. package/models/create-priority-request-dto.ts +0 -30
  51. package/models/create-priority-response-class.ts +0 -31
  52. package/models/get-priority-response-class.ts +0 -31
  53. package/models/priority-class.ts +0 -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,7 +46,7 @@ export interface TaskClass {
47
46
  * @type {string}
48
47
  * @memberof TaskClass
49
48
  */
50
- 'assignee': string;
49
+ 'assignee'?: string;
51
50
  /**
52
51
  * category
53
52
  * @type {CategoryClass}
@@ -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
+ };
@@ -16,15 +16,21 @@
16
16
  */
17
17
  export interface UpdateCategoryRequestDto {
18
18
  /**
19
- * code
19
+ * Category code: unique identifier of the category
20
20
  * @type {string}
21
21
  * @memberof UpdateCategoryRequestDto
22
22
  */
23
23
  'code': string;
24
24
  /**
25
- * name
25
+ * Category name: display name of the category
26
26
  * @type {string}
27
27
  * @memberof UpdateCategoryRequestDto
28
28
  */
29
29
  'name': string;
30
+ /**
31
+ * Category slug: URL-friendly identifier
32
+ * @type {string}
33
+ * @memberof UpdateCategoryRequestDto
34
+ */
35
+ 'slug': string;
30
36
  }
@@ -16,15 +16,21 @@
16
16
  */
17
17
  export interface UpdateStatusRequestDto {
18
18
  /**
19
- * code
19
+ * Status code: unique identifier of the status
20
20
  * @type {string}
21
21
  * @memberof UpdateStatusRequestDto
22
22
  */
23
23
  'code': string;
24
24
  /**
25
- * name
25
+ * Status name: display name of the status
26
26
  * @type {string}
27
27
  * @memberof UpdateStatusRequestDto
28
28
  */
29
29
  'name': string;
30
+ /**
31
+ * Status slug: URL-friendly identifier
32
+ * @type {string}
33
+ * @memberof UpdateStatusRequestDto
34
+ */
35
+ 'slug': string;
30
36
  }
@@ -16,45 +16,57 @@
16
16
  */
17
17
  export interface UpdateTaskRequestDto {
18
18
  /**
19
- * code
19
+ * Task code: unique identifier of the task
20
20
  * @type {string}
21
21
  * @memberof UpdateTaskRequestDto
22
22
  */
23
23
  'code': string;
24
24
  /**
25
- * subject
25
+ * Task subject: title of the task
26
26
  * @type {string}
27
27
  * @memberof UpdateTaskRequestDto
28
28
  */
29
29
  'subject': string;
30
30
  /**
31
- * description
31
+ * Task description: detailed description of the task
32
32
  * @type {string}
33
33
  * @memberof UpdateTaskRequestDto
34
34
  */
35
35
  'description': string;
36
36
  /**
37
- * assignee
37
+ * Task assignee: person assigned to the task
38
38
  * @type {string}
39
39
  * @memberof UpdateTaskRequestDto
40
40
  */
41
- 'assignee'?: string;
41
+ 'assignee': string;
42
42
  /**
43
- * categoryId
44
- * @type {number}
43
+ * Task category slug
44
+ * @type {string}
45
+ * @memberof UpdateTaskRequestDto
46
+ */
47
+ 'categorySlug'?: string;
48
+ /**
49
+ * Task status slug
50
+ * @type {string}
45
51
  * @memberof UpdateTaskRequestDto
46
52
  */
47
- 'categoryId'?: number | null;
53
+ 'statusSlug'?: string;
48
54
  /**
49
- * statusId
50
- * @type {number}
55
+ * Task priority
56
+ * @type {string}
51
57
  * @memberof UpdateTaskRequestDto
52
58
  */
53
- 'statusId'?: number | null;
59
+ 'priority'?: string | null;
54
60
  /**
55
- * priorityId
56
- * @type {number}
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}
57
69
  * @memberof UpdateTaskRequestDto
58
70
  */
59
- 'priorityId'?: number | null;
71
+ 'dueDate'?: string | null;
60
72
  }
@@ -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 slug
43
+ * @type {string}
44
+ * @memberof CreateTaskRequestDto
45
+ */
46
+ 'categorySlug'?: string;
47
+ /**
48
+ * Task status slug
49
+ * @type {string}
50
+ * @memberof CreateTaskRequestDto
51
+ */
52
+ 'statusSlug'?: string;
53
+ /**
54
+ * Task priority
55
+ * @type {string}
44
56
  * @memberof CreateTaskRequestDto
45
57
  */
46
- 'categoryId'?: number | null;
58
+ 'priority'?: CreateTaskRequestDtoPriorityEnum;
47
59
  /**
48
- * statusId
49
- * @type {number}
60
+ * Task reporter user code: person who reported the task
61
+ * @type {string}
50
62
  * @memberof CreateTaskRequestDto
51
63
  */
52
- 'statusId'?: number | null;
64
+ 'reporter'?: string;
53
65
  /**
54
- * priorityId
55
- * @type {number}
66
+ * Task due date.
67
+ * @type {string}
56
68
  * @memberof CreateTaskRequestDto
57
69
  */
58
- 'priorityId'?: number | null;
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,7 +18,6 @@ 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';
25
21
  export * from './status-class';
26
22
  export * from './task-class';
27
23
  export * from './update-category-request-dto';
@@ -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,7 +51,7 @@ export interface TaskClass {
52
51
  * @type {string}
53
52
  * @memberof TaskClass
54
53
  */
55
- 'assignee': string;
54
+ 'assignee'?: string;
56
55
  /**
57
56
  * category
58
57
  * @type {CategoryClass}
@@ -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
+
@@ -21,16 +21,22 @@
21
21
  */
22
22
  export interface UpdateCategoryRequestDto {
23
23
  /**
24
- * code
24
+ * Category code: unique identifier of the category
25
25
  * @type {string}
26
26
  * @memberof UpdateCategoryRequestDto
27
27
  */
28
28
  'code': string;
29
29
  /**
30
- * name
30
+ * Category name: display name of the category
31
31
  * @type {string}
32
32
  * @memberof UpdateCategoryRequestDto
33
33
  */
34
34
  'name': string;
35
+ /**
36
+ * Category slug: URL-friendly identifier
37
+ * @type {string}
38
+ * @memberof UpdateCategoryRequestDto
39
+ */
40
+ 'slug': string;
35
41
  }
36
42
 
@@ -21,16 +21,22 @@
21
21
  */
22
22
  export interface UpdateStatusRequestDto {
23
23
  /**
24
- * code
24
+ * Status code: unique identifier of the status
25
25
  * @type {string}
26
26
  * @memberof UpdateStatusRequestDto
27
27
  */
28
28
  'code': string;
29
29
  /**
30
- * name
30
+ * Status name: display name of the status
31
31
  * @type {string}
32
32
  * @memberof UpdateStatusRequestDto
33
33
  */
34
34
  'name': string;
35
+ /**
36
+ * Status slug: URL-friendly identifier
37
+ * @type {string}
38
+ * @memberof UpdateStatusRequestDto
39
+ */
40
+ 'slug': string;
35
41
  }
36
42
 
@@ -21,46 +21,58 @@
21
21
  */
22
22
  export interface UpdateTaskRequestDto {
23
23
  /**
24
- * code
24
+ * Task code: unique identifier of the task
25
25
  * @type {string}
26
26
  * @memberof UpdateTaskRequestDto
27
27
  */
28
28
  'code': string;
29
29
  /**
30
- * subject
30
+ * Task subject: title of the task
31
31
  * @type {string}
32
32
  * @memberof UpdateTaskRequestDto
33
33
  */
34
34
  'subject': string;
35
35
  /**
36
- * description
36
+ * Task description: detailed description of the task
37
37
  * @type {string}
38
38
  * @memberof UpdateTaskRequestDto
39
39
  */
40
40
  'description': string;
41
41
  /**
42
- * assignee
42
+ * Task assignee: person assigned to the task
43
43
  * @type {string}
44
44
  * @memberof UpdateTaskRequestDto
45
45
  */
46
- 'assignee'?: string;
46
+ 'assignee': string;
47
47
  /**
48
- * categoryId
49
- * @type {number}
48
+ * Task category slug
49
+ * @type {string}
50
+ * @memberof UpdateTaskRequestDto
51
+ */
52
+ 'categorySlug'?: string;
53
+ /**
54
+ * Task status slug
55
+ * @type {string}
50
56
  * @memberof UpdateTaskRequestDto
51
57
  */
52
- 'categoryId'?: number | null;
58
+ 'statusSlug'?: string;
53
59
  /**
54
- * statusId
55
- * @type {number}
60
+ * Task priority
61
+ * @type {string}
56
62
  * @memberof UpdateTaskRequestDto
57
63
  */
58
- 'statusId'?: number | null;
64
+ 'priority'?: string | null;
59
65
  /**
60
- * priorityId
61
- * @type {number}
66
+ * Task reporter: person who reported the task
67
+ * @type {string}
68
+ * @memberof UpdateTaskRequestDto
69
+ */
70
+ 'reporter'?: string | null;
71
+ /**
72
+ * Task due date
73
+ * @type {string}
62
74
  * @memberof UpdateTaskRequestDto
63
75
  */
64
- 'priorityId'?: number | null;
76
+ 'dueDate'?: string | null;
65
77
  }
66
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/task-sdk-node",
3
- "version": "1.0.1-beta.1",
3
+ "version": "1.0.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/task-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [