@emilgroup/task-sdk 1.0.1-beta.9 → 1.1.1-beta.13

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 (46) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/assignees-api.ts +162 -0
  4. package/api/categories-api.ts +85 -59
  5. package/api/default-api.ts +1 -1
  6. package/api/hub-spot-api.ts +4 -4
  7. package/api/statuses-api.ts +45 -47
  8. package/api/tasks-api.ts +49 -51
  9. package/api.ts +2 -0
  10. package/dist/api/assignees-api.d.ts +96 -0
  11. package/dist/api/assignees-api.js +224 -0
  12. package/dist/api/categories-api.d.ts +65 -47
  13. package/dist/api/categories-api.js +59 -49
  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 +42 -42
  18. package/dist/api/statuses-api.js +38 -40
  19. package/dist/api/tasks-api.d.ts +46 -46
  20. package/dist/api/tasks-api.js +41 -43
  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/assignee-class.js +15 -0
  25. package/dist/models/create-status-request-dto.d.ts +6 -0
  26. package/dist/models/create-task-request-dto.d.ts +23 -4
  27. package/dist/models/create-task-request-dto.js +7 -1
  28. package/dist/models/index.d.ts +2 -0
  29. package/dist/models/index.js +2 -0
  30. package/dist/models/list-assignees-response-class.d.ts +43 -0
  31. package/dist/models/list-assignees-response-class.js +15 -0
  32. package/dist/models/patch-status-request-dto.d.ts +6 -0
  33. package/dist/models/patch-task-request-dto.d.ts +36 -5
  34. package/dist/models/patch-task-request-dto.js +7 -0
  35. package/dist/models/status-class.d.ts +6 -0
  36. package/dist/models/task-class.d.ts +34 -4
  37. package/models/assignee-class.ts +30 -0
  38. package/models/create-status-request-dto.ts +6 -0
  39. package/models/create-task-request-dto.ts +24 -4
  40. package/models/index.ts +2 -0
  41. package/models/list-assignees-response-class.ts +49 -0
  42. package/models/patch-status-request-dto.ts +6 -0
  43. package/models/patch-task-request-dto.ts +39 -5
  44. package/models/status-class.ts +6 -0
  45. package/models/task-class.ts +34 -4
  46. package/package.json +2 -1
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL TaskService
6
+ * The EMIL Task API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -27,4 +27,10 @@ export interface CreateStatusRequestDto {
27
27
  * @memberof CreateStatusRequestDto
28
28
  */
29
29
  'slug'?: string;
30
+ /**
31
+ * Sort order for workflow display (must be unique per tenant). Lower values appear first.
32
+ * @type {number}
33
+ * @memberof CreateStatusRequestDto
34
+ */
35
+ 'sortOrder': number;
30
36
  }
@@ -34,17 +34,17 @@ export interface CreateTaskRequestDto {
34
34
  */
35
35
  'assignee'?: string;
36
36
  /**
37
- * Task category slug
38
- * @type {string}
37
+ * Task category slugs (array of category slugs)
38
+ * @type {Array<string>}
39
39
  * @memberof CreateTaskRequestDto
40
40
  */
41
- 'categorySlug'?: string;
41
+ 'categorySlugs'?: Array<string>;
42
42
  /**
43
43
  * Task status slug
44
44
  * @type {string}
45
45
  * @memberof CreateTaskRequestDto
46
46
  */
47
- 'statusSlug'?: string;
47
+ 'statusSlug': string;
48
48
  /**
49
49
  * Task priority
50
50
  * @type {string}
@@ -63,6 +63,18 @@ export interface CreateTaskRequestDto {
63
63
  * @memberof CreateTaskRequestDto
64
64
  */
65
65
  'dueDate'?: string;
66
+ /**
67
+ * Connected entity type. Must be one of: LEAD, POLICY, CLAIM, PARTNER (uppercase). If provided, entityCode is required.
68
+ * @type {string}
69
+ * @memberof CreateTaskRequestDto
70
+ */
71
+ 'entityType'?: CreateTaskRequestDtoEntityTypeEnum;
72
+ /**
73
+ * Connected entity code. Unique code of the linked entity. If provided, entityType is required.
74
+ * @type {string}
75
+ * @memberof CreateTaskRequestDto
76
+ */
77
+ 'entityCode'?: string;
66
78
  }
67
79
  export declare const CreateTaskRequestDtoPriorityEnum: {
68
80
  readonly Low: "LOW";
@@ -70,3 +82,10 @@ export declare const CreateTaskRequestDtoPriorityEnum: {
70
82
  readonly High: "HIGH";
71
83
  };
72
84
  export type CreateTaskRequestDtoPriorityEnum = typeof CreateTaskRequestDtoPriorityEnum[keyof typeof CreateTaskRequestDtoPriorityEnum];
85
+ export declare const CreateTaskRequestDtoEntityTypeEnum: {
86
+ readonly Lead: "LEAD";
87
+ readonly Policy: "POLICY";
88
+ readonly Claim: "CLAIM";
89
+ readonly Partner: "PARTNER";
90
+ };
91
+ export type CreateTaskRequestDtoEntityTypeEnum = typeof CreateTaskRequestDtoEntityTypeEnum[keyof typeof CreateTaskRequestDtoEntityTypeEnum];
@@ -13,9 +13,15 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateTaskRequestDtoPriorityEnum = void 0;
16
+ exports.CreateTaskRequestDtoEntityTypeEnum = exports.CreateTaskRequestDtoPriorityEnum = void 0;
17
17
  exports.CreateTaskRequestDtoPriorityEnum = {
18
18
  Low: 'LOW',
19
19
  Medium: 'MEDIUM',
20
20
  High: 'HIGH'
21
21
  };
22
+ exports.CreateTaskRequestDtoEntityTypeEnum = {
23
+ Lead: 'LEAD',
24
+ Policy: 'POLICY',
25
+ Claim: 'CLAIM',
26
+ Partner: 'PARTNER'
27
+ };
@@ -1,3 +1,4 @@
1
+ export * from './assignee-class';
1
2
  export * from './category-class';
2
3
  export * from './create-category-request-dto';
3
4
  export * from './create-category-response-class';
@@ -15,6 +16,7 @@ export * from './hub-spot-ticket-error-class';
15
16
  export * from './hub-spot-ticket-name-value-dto';
16
17
  export * from './inline-response200';
17
18
  export * from './inline-response503';
19
+ export * from './list-assignees-response-class';
18
20
  export * from './list-categories-response-class';
19
21
  export * from './list-statuses-response-class';
20
22
  export * from './list-tasks-response-class';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./assignee-class"), exports);
17
18
  __exportStar(require("./category-class"), exports);
18
19
  __exportStar(require("./create-category-request-dto"), exports);
19
20
  __exportStar(require("./create-category-response-class"), exports);
@@ -31,6 +32,7 @@ __exportStar(require("./hub-spot-ticket-error-class"), exports);
31
32
  __exportStar(require("./hub-spot-ticket-name-value-dto"), exports);
32
33
  __exportStar(require("./inline-response200"), exports);
33
34
  __exportStar(require("./inline-response503"), exports);
35
+ __exportStar(require("./list-assignees-response-class"), exports);
34
36
  __exportStar(require("./list-categories-response-class"), exports);
35
37
  __exportStar(require("./list-statuses-response-class"), exports);
36
38
  __exportStar(require("./list-tasks-response-class"), exports);
@@ -0,0 +1,43 @@
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
+ import { AssigneeClass } from './assignee-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListAssigneesResponseClass
17
+ */
18
+ export interface ListAssigneesResponseClass {
19
+ /**
20
+ * List of assignees
21
+ * @type {Array<AssigneeClass>}
22
+ * @memberof ListAssigneesResponseClass
23
+ */
24
+ 'items': Array<AssigneeClass>;
25
+ /**
26
+ * Token for next page
27
+ * @type {string}
28
+ * @memberof ListAssigneesResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof ListAssigneesResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * Total number of items
39
+ * @type {number}
40
+ * @memberof ListAssigneesResponseClass
41
+ */
42
+ 'totalItems': number;
43
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL TaskService
6
+ * The EMIL Task API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -33,4 +33,10 @@ export interface PatchStatusRequestDto {
33
33
  * @memberof PatchStatusRequestDto
34
34
  */
35
35
  'slug'?: string;
36
+ /**
37
+ * Sort order for workflow display (must be unique per tenant). Lower values appear first.
38
+ * @type {number}
39
+ * @memberof PatchStatusRequestDto
40
+ */
41
+ 'sortOrder'?: number;
36
42
  }
@@ -21,6 +21,12 @@ export interface PatchTaskRequestDto {
21
21
  * @memberof PatchTaskRequestDto
22
22
  */
23
23
  'code': string;
24
+ /**
25
+ * Entity version for optimistic locking. If provided, update fails if version does not match current version.
26
+ * @type {number}
27
+ * @memberof PatchTaskRequestDto
28
+ */
29
+ 'version'?: number;
24
30
  /**
25
31
  * Task subject: title of the task
26
32
  * @type {string}
@@ -40,11 +46,11 @@ export interface PatchTaskRequestDto {
40
46
  */
41
47
  'assignee'?: string;
42
48
  /**
43
- * Task category slug
44
- * @type {string}
49
+ * Task category slugs (array of category slugs)
50
+ * @type {Array<string>}
45
51
  * @memberof PatchTaskRequestDto
46
52
  */
47
- 'categorySlug'?: string;
53
+ 'categorySlugs'?: Array<string>;
48
54
  /**
49
55
  * Task status slug
50
56
  * @type {string}
@@ -82,11 +88,11 @@ export interface PatchTaskRequestDto {
82
88
  */
83
89
  'clearAssignee'?: boolean;
84
90
  /**
85
- * Set to true to clear/remove the category.
91
+ * Set to true to clear/remove the categories.
86
92
  * @type {boolean}
87
93
  * @memberof PatchTaskRequestDto
88
94
  */
89
- 'clearCategory'?: boolean;
95
+ 'clearCategories'?: boolean;
90
96
  /**
91
97
  * Set to true to clear/remove the status.
92
98
  * @type {boolean}
@@ -105,4 +111,29 @@ export interface PatchTaskRequestDto {
105
111
  * @memberof PatchTaskRequestDto
106
112
  */
107
113
  'clearReporter'?: boolean;
114
+ /**
115
+ * Connected entity type. Must be one of: LEAD, POLICY, CLAIM, PARTNER (uppercase). If provided with entityCode, updates the linked entity.
116
+ * @type {string}
117
+ * @memberof PatchTaskRequestDto
118
+ */
119
+ 'entityType'?: PatchTaskRequestDtoEntityTypeEnum;
120
+ /**
121
+ * Connected entity code. If provided with entityType, updates the linked entity. Requires entityType when set.
122
+ * @type {string}
123
+ * @memberof PatchTaskRequestDto
124
+ */
125
+ 'entityCode'?: string;
126
+ /**
127
+ * Set to true to clear/remove the linked entity (entityType and entityCode).
128
+ * @type {boolean}
129
+ * @memberof PatchTaskRequestDto
130
+ */
131
+ 'clearLinkedEntity'?: boolean;
108
132
  }
133
+ export declare const PatchTaskRequestDtoEntityTypeEnum: {
134
+ readonly Lead: "LEAD";
135
+ readonly Policy: "POLICY";
136
+ readonly Claim: "CLAIM";
137
+ readonly Partner: "PARTNER";
138
+ };
139
+ export type PatchTaskRequestDtoEntityTypeEnum = typeof PatchTaskRequestDtoEntityTypeEnum[keyof typeof PatchTaskRequestDtoEntityTypeEnum];
@@ -13,3 +13,10 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PatchTaskRequestDtoEntityTypeEnum = void 0;
17
+ exports.PatchTaskRequestDtoEntityTypeEnum = {
18
+ Lead: 'LEAD',
19
+ Policy: 'POLICY',
20
+ Claim: 'CLAIM',
21
+ Partner: 'PARTNER'
22
+ };
@@ -63,4 +63,10 @@ export interface StatusClass {
63
63
  * @memberof StatusClass
64
64
  */
65
65
  'slug': string;
66
+ /**
67
+ * Sort order for workflow display (unique per tenant)
68
+ * @type {number}
69
+ * @memberof StatusClass
70
+ */
71
+ 'sortOrder': number;
66
72
  }
@@ -48,13 +48,25 @@ export interface TaskClass {
48
48
  */
49
49
  'assignee'?: string;
50
50
  /**
51
- * category
52
- * @type {CategoryClass}
51
+ * Category slugs
52
+ * @type {Array<string>}
53
53
  * @memberof TaskClass
54
54
  */
55
- 'category'?: CategoryClass;
55
+ 'categorySlugs'?: Array<string>;
56
56
  /**
57
- * status
57
+ * Status slug (always returned)
58
+ * @type {string}
59
+ * @memberof TaskClass
60
+ */
61
+ 'statusSlug': string;
62
+ /**
63
+ * categories (only populated when expand=categories)
64
+ * @type {Array<CategoryClass>}
65
+ * @memberof TaskClass
66
+ */
67
+ 'categories'?: Array<CategoryClass>;
68
+ /**
69
+ * status (only populated when expand=status)
58
70
  * @type {StatusClass}
59
71
  * @memberof TaskClass
60
72
  */
@@ -77,6 +89,24 @@ export interface TaskClass {
77
89
  * @memberof TaskClass
78
90
  */
79
91
  'dueDate'?: string;
92
+ /**
93
+ * Connected entity type (e.g. LEAD, POLICY, CLAIM, PARTNER)
94
+ * @type {string}
95
+ * @memberof TaskClass
96
+ */
97
+ 'entityType'?: string;
98
+ /**
99
+ * Connected entity code
100
+ * @type {string}
101
+ * @memberof TaskClass
102
+ */
103
+ 'entityCode'?: string;
104
+ /**
105
+ * Display number of the linked entity (e.g. policy number, claim number)
106
+ * @type {string}
107
+ * @memberof TaskClass
108
+ */
109
+ 'entityNumber'?: string;
80
110
  /**
81
111
  * createdBy
82
112
  * @type {string}
@@ -0,0 +1,30 @@
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 AssigneeClass
21
+ */
22
+ export interface AssigneeClass {
23
+ /**
24
+ * Assignee code/identifier
25
+ * @type {string}
26
+ * @memberof AssigneeClass
27
+ */
28
+ 'code': string;
29
+ }
30
+
@@ -32,5 +32,11 @@ export interface CreateStatusRequestDto {
32
32
  * @memberof CreateStatusRequestDto
33
33
  */
34
34
  'slug'?: string;
35
+ /**
36
+ * Sort order for workflow display (must be unique per tenant). Lower values appear first.
37
+ * @type {number}
38
+ * @memberof CreateStatusRequestDto
39
+ */
40
+ 'sortOrder': number;
35
41
  }
36
42
 
@@ -39,17 +39,17 @@ export interface CreateTaskRequestDto {
39
39
  */
40
40
  'assignee'?: string;
41
41
  /**
42
- * Task category slug
43
- * @type {string}
42
+ * Task category slugs (array of category slugs)
43
+ * @type {Array<string>}
44
44
  * @memberof CreateTaskRequestDto
45
45
  */
46
- 'categorySlug'?: string;
46
+ 'categorySlugs'?: Array<string>;
47
47
  /**
48
48
  * Task status slug
49
49
  * @type {string}
50
50
  * @memberof CreateTaskRequestDto
51
51
  */
52
- 'statusSlug'?: string;
52
+ 'statusSlug': string;
53
53
  /**
54
54
  * Task priority
55
55
  * @type {string}
@@ -68,6 +68,18 @@ export interface CreateTaskRequestDto {
68
68
  * @memberof CreateTaskRequestDto
69
69
  */
70
70
  'dueDate'?: string;
71
+ /**
72
+ * Connected entity type. Must be one of: LEAD, POLICY, CLAIM, PARTNER (uppercase). If provided, entityCode is required.
73
+ * @type {string}
74
+ * @memberof CreateTaskRequestDto
75
+ */
76
+ 'entityType'?: CreateTaskRequestDtoEntityTypeEnum;
77
+ /**
78
+ * Connected entity code. Unique code of the linked entity. If provided, entityType is required.
79
+ * @type {string}
80
+ * @memberof CreateTaskRequestDto
81
+ */
82
+ 'entityCode'?: string;
71
83
  }
72
84
 
73
85
  export const CreateTaskRequestDtoPriorityEnum = {
@@ -77,5 +89,13 @@ export const CreateTaskRequestDtoPriorityEnum = {
77
89
  } as const;
78
90
 
79
91
  export type CreateTaskRequestDtoPriorityEnum = typeof CreateTaskRequestDtoPriorityEnum[keyof typeof CreateTaskRequestDtoPriorityEnum];
92
+ export const CreateTaskRequestDtoEntityTypeEnum = {
93
+ Lead: 'LEAD',
94
+ Policy: 'POLICY',
95
+ Claim: 'CLAIM',
96
+ Partner: 'PARTNER'
97
+ } as const;
98
+
99
+ export type CreateTaskRequestDtoEntityTypeEnum = typeof CreateTaskRequestDtoEntityTypeEnum[keyof typeof CreateTaskRequestDtoEntityTypeEnum];
80
100
 
81
101
 
package/models/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './assignee-class';
1
2
  export * from './category-class';
2
3
  export * from './create-category-request-dto';
3
4
  export * from './create-category-response-class';
@@ -15,6 +16,7 @@ export * from './hub-spot-ticket-error-class';
15
16
  export * from './hub-spot-ticket-name-value-dto';
16
17
  export * from './inline-response200';
17
18
  export * from './inline-response503';
19
+ export * from './list-assignees-response-class';
18
20
  export * from './list-categories-response-class';
19
21
  export * from './list-statuses-response-class';
20
22
  export * from './list-tasks-response-class';
@@ -0,0 +1,49 @@
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
+ import { AssigneeClass } from './assignee-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListAssigneesResponseClass
22
+ */
23
+ export interface ListAssigneesResponseClass {
24
+ /**
25
+ * List of assignees
26
+ * @type {Array<AssigneeClass>}
27
+ * @memberof ListAssigneesResponseClass
28
+ */
29
+ 'items': Array<AssigneeClass>;
30
+ /**
31
+ * Token for next page
32
+ * @type {string}
33
+ * @memberof ListAssigneesResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Number of items per page
38
+ * @type {number}
39
+ * @memberof ListAssigneesResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total number of items
44
+ * @type {number}
45
+ * @memberof ListAssigneesResponseClass
46
+ */
47
+ 'totalItems': number;
48
+ }
49
+
@@ -38,5 +38,11 @@ export interface PatchStatusRequestDto {
38
38
  * @memberof PatchStatusRequestDto
39
39
  */
40
40
  'slug'?: string;
41
+ /**
42
+ * Sort order for workflow display (must be unique per tenant). Lower values appear first.
43
+ * @type {number}
44
+ * @memberof PatchStatusRequestDto
45
+ */
46
+ 'sortOrder'?: number;
41
47
  }
42
48
 
@@ -26,6 +26,12 @@ export interface PatchTaskRequestDto {
26
26
  * @memberof PatchTaskRequestDto
27
27
  */
28
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;
29
35
  /**
30
36
  * Task subject: title of the task
31
37
  * @type {string}
@@ -45,11 +51,11 @@ export interface PatchTaskRequestDto {
45
51
  */
46
52
  'assignee'?: string;
47
53
  /**
48
- * Task category slug
49
- * @type {string}
54
+ * Task category slugs (array of category slugs)
55
+ * @type {Array<string>}
50
56
  * @memberof PatchTaskRequestDto
51
57
  */
52
- 'categorySlug'?: string;
58
+ 'categorySlugs'?: Array<string>;
53
59
  /**
54
60
  * Task status slug
55
61
  * @type {string}
@@ -87,11 +93,11 @@ export interface PatchTaskRequestDto {
87
93
  */
88
94
  'clearAssignee'?: boolean;
89
95
  /**
90
- * Set to true to clear/remove the category.
96
+ * Set to true to clear/remove the categories.
91
97
  * @type {boolean}
92
98
  * @memberof PatchTaskRequestDto
93
99
  */
94
- 'clearCategory'?: boolean;
100
+ 'clearCategories'?: boolean;
95
101
  /**
96
102
  * Set to true to clear/remove the status.
97
103
  * @type {boolean}
@@ -110,5 +116,33 @@ export interface PatchTaskRequestDto {
110
116
  * @memberof PatchTaskRequestDto
111
117
  */
112
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;
113
137
  }
114
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
+
@@ -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}