@emilgroup/task-sdk-node 1.0.1-beta.3 → 1.0.1-beta.35

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 (61) hide show
  1. package/.openapi-generator/FILES +9 -6
  2. package/README.md +2 -2
  3. package/api/assignees-api.ts +166 -0
  4. package/api/categories-api.ts +111 -85
  5. package/api/default-api.ts +1 -1
  6. package/api/hub-spot-api.ts +4 -4
  7. package/api/statuses-api.ts +71 -73
  8. package/api/tasks-api.ts +119 -93
  9. package/api.ts +2 -0
  10. package/dist/api/assignees-api.d.ts +96 -0
  11. package/dist/api/assignees-api.js +228 -0
  12. package/dist/api/categories-api.d.ts +83 -65
  13. package/dist/api/categories-api.js +75 -65
  14. package/dist/api/default-api.js +1 -1
  15. package/dist/api/hub-spot-api.d.ts +4 -4
  16. package/dist/api/hub-spot-api.js +4 -4
  17. package/dist/api/statuses-api.d.ts +60 -60
  18. package/dist/api/statuses-api.js +54 -56
  19. package/dist/api/tasks-api.d.ts +91 -73
  20. package/dist/api/tasks-api.js +81 -71
  21. package/dist/api.d.ts +1 -0
  22. package/dist/api.js +1 -0
  23. package/dist/models/assignee-class.d.ts +24 -0
  24. package/dist/models/create-status-request-dto.d.ts +6 -0
  25. package/dist/models/create-task-request-dto.d.ts +23 -4
  26. package/dist/models/create-task-request-dto.js +7 -1
  27. package/dist/models/index.d.ts +8 -6
  28. package/dist/models/index.js +8 -6
  29. package/dist/models/list-assignees-response-class.d.ts +43 -0
  30. package/dist/models/{update-category-request-dto.d.ts → patch-category-request-dto.d.ts} +7 -7
  31. package/dist/models/{update-category-response-class.d.ts → patch-category-response-class.d.ts} +3 -3
  32. package/dist/models/{update-status-request-dto.d.ts → patch-status-request-dto.d.ts} +13 -7
  33. package/dist/models/{update-status-response-class.d.ts → patch-status-response-class.d.ts} +3 -3
  34. package/dist/models/patch-task-request-dto.d.ts +139 -0
  35. package/dist/models/patch-task-request-dto.js +22 -0
  36. package/dist/models/{update-task-response-class.d.ts → patch-task-response-class.d.ts} +3 -3
  37. package/dist/models/patch-task-response-class.js +15 -0
  38. package/dist/models/status-class.d.ts +6 -0
  39. package/dist/models/task-class.d.ts +34 -4
  40. package/models/assignee-class.ts +30 -0
  41. package/models/create-status-request-dto.ts +6 -0
  42. package/models/create-task-request-dto.ts +24 -4
  43. package/models/index.ts +8 -6
  44. package/models/list-assignees-response-class.ts +49 -0
  45. package/models/{update-category-request-dto.ts → patch-category-request-dto.ts} +7 -7
  46. package/models/{update-category-response-class.ts → patch-category-response-class.ts} +3 -3
  47. package/models/{update-status-request-dto.ts → patch-status-request-dto.ts} +13 -7
  48. package/models/{update-status-response-class.ts → patch-status-response-class.ts} +3 -3
  49. package/models/patch-task-request-dto.ts +148 -0
  50. package/models/{update-task-response-class.ts → patch-task-response-class.ts} +3 -3
  51. package/models/status-class.ts +6 -0
  52. package/models/task-class.ts +34 -4
  53. package/package.json +2 -2
  54. package/dist/models/update-task-request-dto.d.ts +0 -72
  55. package/models/update-task-request-dto.ts +0 -78
  56. /package/dist/models/{update-category-request-dto.js → assignee-class.js} +0 -0
  57. /package/dist/models/{update-category-response-class.js → list-assignees-response-class.js} +0 -0
  58. /package/dist/models/{update-status-request-dto.js → patch-category-request-dto.js} +0 -0
  59. /package/dist/models/{update-status-response-class.js → patch-category-response-class.js} +0 -0
  60. /package/dist/models/{update-task-request-dto.js → patch-status-request-dto.js} +0 -0
  61. /package/dist/models/{update-task-response-class.js → patch-status-response-class.js} +0 -0
@@ -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,148 @@
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
+ * Entity version for optimistic locking. If provided, update fails if version does not match current version.
31
+ * @type {number}
32
+ * @memberof PatchTaskRequestDto
33
+ */
34
+ 'version'?: number;
35
+ /**
36
+ * Task subject: title of the task
37
+ * @type {string}
38
+ * @memberof PatchTaskRequestDto
39
+ */
40
+ 'subject'?: string;
41
+ /**
42
+ * Task description: detailed description of the task
43
+ * @type {string}
44
+ * @memberof PatchTaskRequestDto
45
+ */
46
+ 'description'?: string;
47
+ /**
48
+ * Task assignee: person assigned to the task
49
+ * @type {string}
50
+ * @memberof PatchTaskRequestDto
51
+ */
52
+ 'assignee'?: string;
53
+ /**
54
+ * Task category slugs (array of category slugs)
55
+ * @type {Array<string>}
56
+ * @memberof PatchTaskRequestDto
57
+ */
58
+ 'categorySlugs'?: Array<string>;
59
+ /**
60
+ * Task status slug
61
+ * @type {string}
62
+ * @memberof PatchTaskRequestDto
63
+ */
64
+ 'statusSlug'?: string;
65
+ /**
66
+ * Task priority
67
+ * @type {string}
68
+ * @memberof PatchTaskRequestDto
69
+ */
70
+ 'priority'?: string;
71
+ /**
72
+ * Task reporter: person who reported the task
73
+ * @type {string}
74
+ * @memberof PatchTaskRequestDto
75
+ */
76
+ 'reporter'?: string;
77
+ /**
78
+ * Task due date
79
+ * @type {string}
80
+ * @memberof PatchTaskRequestDto
81
+ */
82
+ 'dueDate'?: string;
83
+ /**
84
+ * Set to true to clear/remove the due date.
85
+ * @type {boolean}
86
+ * @memberof PatchTaskRequestDto
87
+ */
88
+ 'clearDueDate'?: boolean;
89
+ /**
90
+ * Set to true to clear/remove the assignee.
91
+ * @type {boolean}
92
+ * @memberof PatchTaskRequestDto
93
+ */
94
+ 'clearAssignee'?: boolean;
95
+ /**
96
+ * Set to true to clear/remove the categories.
97
+ * @type {boolean}
98
+ * @memberof PatchTaskRequestDto
99
+ */
100
+ 'clearCategories'?: boolean;
101
+ /**
102
+ * Set to true to clear/remove the status.
103
+ * @type {boolean}
104
+ * @memberof PatchTaskRequestDto
105
+ */
106
+ 'clearStatus'?: boolean;
107
+ /**
108
+ * Set to true to clear/remove the priority.
109
+ * @type {boolean}
110
+ * @memberof PatchTaskRequestDto
111
+ */
112
+ 'clearPriority'?: boolean;
113
+ /**
114
+ * Set to true to clear/remove the reporter.
115
+ * @type {boolean}
116
+ * @memberof PatchTaskRequestDto
117
+ */
118
+ 'clearReporter'?: boolean;
119
+ /**
120
+ * Connected entity type. Must be one of: LEAD, POLICY, CLAIM, PARTNER (uppercase). If provided with entityCode, updates the linked entity.
121
+ * @type {string}
122
+ * @memberof PatchTaskRequestDto
123
+ */
124
+ 'entityType'?: PatchTaskRequestDtoEntityTypeEnum;
125
+ /**
126
+ * Connected entity code. If provided with entityType, updates the linked entity. Requires entityType when set.
127
+ * @type {string}
128
+ * @memberof PatchTaskRequestDto
129
+ */
130
+ 'entityCode'?: string;
131
+ /**
132
+ * Set to true to clear/remove the linked entity (entityType and entityCode).
133
+ * @type {boolean}
134
+ * @memberof PatchTaskRequestDto
135
+ */
136
+ 'clearLinkedEntity'?: boolean;
137
+ }
138
+
139
+ export const PatchTaskRequestDtoEntityTypeEnum = {
140
+ Lead: 'LEAD',
141
+ Policy: 'POLICY',
142
+ Claim: 'CLAIM',
143
+ Partner: 'PARTNER'
144
+ } as const;
145
+
146
+ export type PatchTaskRequestDtoEntityTypeEnum = typeof PatchTaskRequestDtoEntityTypeEnum[keyof typeof PatchTaskRequestDtoEntityTypeEnum];
147
+
148
+
@@ -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
  }
@@ -68,5 +68,11 @@ export interface StatusClass {
68
68
  * @memberof StatusClass
69
69
  */
70
70
  'slug': string;
71
+ /**
72
+ * Sort order for workflow display (unique per tenant)
73
+ * @type {number}
74
+ * @memberof StatusClass
75
+ */
76
+ 'sortOrder': number;
71
77
  }
72
78
 
@@ -53,13 +53,25 @@ export interface TaskClass {
53
53
  */
54
54
  'assignee'?: string;
55
55
  /**
56
- * category
57
- * @type {CategoryClass}
56
+ * Category slugs
57
+ * @type {Array<string>}
58
58
  * @memberof TaskClass
59
59
  */
60
- 'category'?: CategoryClass;
60
+ 'categorySlugs'?: Array<string>;
61
61
  /**
62
- * status
62
+ * Status slug (always returned)
63
+ * @type {string}
64
+ * @memberof TaskClass
65
+ */
66
+ 'statusSlug': string;
67
+ /**
68
+ * categories (only populated when expand=categories)
69
+ * @type {Array<CategoryClass>}
70
+ * @memberof TaskClass
71
+ */
72
+ 'categories'?: Array<CategoryClass>;
73
+ /**
74
+ * status (only populated when expand=status)
63
75
  * @type {StatusClass}
64
76
  * @memberof TaskClass
65
77
  */
@@ -82,6 +94,24 @@ export interface TaskClass {
82
94
  * @memberof TaskClass
83
95
  */
84
96
  'dueDate'?: string;
97
+ /**
98
+ * Connected entity type (e.g. LEAD, POLICY, CLAIM, PARTNER)
99
+ * @type {string}
100
+ * @memberof TaskClass
101
+ */
102
+ 'entityType'?: string;
103
+ /**
104
+ * Connected entity code
105
+ * @type {string}
106
+ * @memberof TaskClass
107
+ */
108
+ 'entityCode'?: string;
109
+ /**
110
+ * Display number of the linked entity (e.g. policy number, claim number)
111
+ * @type {string}
112
+ * @memberof TaskClass
113
+ */
114
+ 'entityNumber'?: string;
85
115
  /**
86
116
  * createdBy
87
117
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/task-sdk-node",
3
- "version": "1.0.1-beta.3",
3
+ "version": "1.0.1-beta.35",
4
4
  "description": "OpenAPI client for @emilgroup/task-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
26
+ "@types/node": "^12.11.5",
27
27
  "typescript": "^4.0"
28
28
  }
29
29
  }
@@ -1,72 +0,0 @@
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
- }
@@ -1,78 +0,0 @@
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 UpdateTaskRequestDto
21
- */
22
- export interface UpdateTaskRequestDto {
23
- /**
24
- * Task code: unique identifier of the task
25
- * @type {string}
26
- * @memberof UpdateTaskRequestDto
27
- */
28
- 'code': string;
29
- /**
30
- * Task subject: title of the task
31
- * @type {string}
32
- * @memberof UpdateTaskRequestDto
33
- */
34
- 'subject': string;
35
- /**
36
- * Task description: detailed description of the task
37
- * @type {string}
38
- * @memberof UpdateTaskRequestDto
39
- */
40
- 'description': string;
41
- /**
42
- * Task assignee: person assigned to the task
43
- * @type {string}
44
- * @memberof UpdateTaskRequestDto
45
- */
46
- 'assignee': string;
47
- /**
48
- * Task category slug
49
- * @type {string}
50
- * @memberof UpdateTaskRequestDto
51
- */
52
- 'categorySlug'?: string;
53
- /**
54
- * Task status slug
55
- * @type {string}
56
- * @memberof UpdateTaskRequestDto
57
- */
58
- 'statusSlug'?: string;
59
- /**
60
- * Task priority
61
- * @type {string}
62
- * @memberof UpdateTaskRequestDto
63
- */
64
- 'priority'?: string | null;
65
- /**
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}
74
- * @memberof UpdateTaskRequestDto
75
- */
76
- 'dueDate'?: string | null;
77
- }
78
-