@automateinc/fleet-types 1.0.89-dev.32620b3 → 1.0.89-dev.828151b

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 (38) hide show
  1. package/dist/types/index.d.ts +28 -1
  2. package/dist/types/todo-activity.d.ts +1 -1
  3. package/dist/types/todo-assignee.d.ts +8 -0
  4. package/dist/types/todo-checklist-item.d.ts +10 -0
  5. package/dist/types/todo-checklist.d.ts +9 -0
  6. package/dist/types/todo-comment-reaction.d.ts +7 -0
  7. package/dist/types/todo-comment.d.ts +0 -14
  8. package/dist/types/todo-custom-field-option.d.ts +5 -0
  9. package/dist/types/todo-custom-field-type.d.ts +26 -0
  10. package/dist/types/todo-custom-field-value.d.ts +11 -0
  11. package/dist/types/todo-custom-field.d.ts +4 -39
  12. package/dist/types/todo-dashboard-widget-type.d.ts +12 -0
  13. package/dist/types/todo-dashboard-widget.d.ts +15 -0
  14. package/dist/types/todo-dashboard.d.ts +10 -0
  15. package/dist/types/todo-dependency-type.d.ts +1 -0
  16. package/dist/types/todo-dependency.d.ts +10 -0
  17. package/dist/types/todo-doc.d.ts +15 -0
  18. package/dist/types/todo-folder.d.ts +0 -54
  19. package/dist/types/todo-json-object.d.ts +5 -0
  20. package/dist/types/{todo-json.d.ts → todo-json-value.d.ts} +2 -3
  21. package/dist/types/todo-list-field-config.d.ts +1 -44
  22. package/dist/types/todo-list-field-entry.d.ts +13 -0
  23. package/dist/types/todo-list-item.d.ts +8 -0
  24. package/dist/types/todo-list-member.d.ts +11 -0
  25. package/dist/types/todo-priority.d.ts +1 -0
  26. package/dist/types/todo-recurrence-settings.d.ts +7 -0
  27. package/dist/types/todo-space-member-role.d.ts +1 -0
  28. package/dist/types/todo-space-member.d.ts +11 -0
  29. package/dist/types/todo-space-visibility.d.ts +1 -0
  30. package/dist/types/todo-space.d.ts +2 -33
  31. package/dist/types/todo-system-field.d.ts +7 -0
  32. package/dist/types/todo-tag-assignment.d.ts +6 -0
  33. package/dist/types/todo-time-entry.d.ts +12 -0
  34. package/dist/types/todo-view-type.d.ts +1 -0
  35. package/dist/types/todo-view.d.ts +2 -66
  36. package/dist/types/todo-watcher.d.ts +6 -0
  37. package/dist/types/todo.d.ts +3 -87
  38. package/package.json +1 -1
@@ -207,18 +207,45 @@ export * from "./vehicle-registration";
207
207
  export * from "./vehicle-status";
208
208
  export * from "./todo";
209
209
  export * from "./todo-activity";
210
+ export * from "./todo-assignee";
211
+ export * from "./todo-checklist";
212
+ export * from "./todo-checklist-item";
210
213
  export * from "./todo-comment";
214
+ export * from "./todo-comment-reaction";
211
215
  export * from "./todo-custom-field";
216
+ export * from "./todo-custom-field-option";
217
+ export * from "./todo-custom-field-type";
218
+ export * from "./todo-custom-field-value";
219
+ export * from "./todo-dashboard";
220
+ export * from "./todo-dashboard-widget";
221
+ export * from "./todo-dashboard-widget-type";
222
+ export * from "./todo-dependency";
223
+ export * from "./todo-dependency-type";
224
+ export * from "./todo-doc";
212
225
  export * from "./todo-document";
213
226
  export * from "./todo-folder";
227
+ export * from "./todo-json-object";
228
+ export * from "./todo-json-value";
214
229
  export * from "./todo-list";
215
230
  export * from "./todo-list-field-config";
231
+ export * from "./todo-list-field-entry";
232
+ export * from "./todo-list-item";
233
+ export * from "./todo-list-member";
234
+ export * from "./todo-priority";
235
+ export * from "./todo-recurrence-settings";
216
236
  export * from "./todo-space";
237
+ export * from "./todo-space-member";
238
+ export * from "./todo-space-member-role";
239
+ export * from "./todo-space-visibility";
217
240
  export * from "./todo-status";
241
+ export * from "./todo-system-field";
218
242
  export * from "./todo-tag";
243
+ export * from "./todo-tag-assignment";
244
+ export * from "./todo-time-entry";
219
245
  export * from "./todo-view";
246
+ export * from "./todo-view-type";
247
+ export * from "./todo-watcher";
220
248
  export * from "./vendor";
221
249
  export * from "./vendor-contact";
222
250
  export * from "./zone";
223
251
  export * from "./zone-supervisor";
224
- export * from "./todo-json";
@@ -1,4 +1,4 @@
1
- import type { TodoJsonObject } from "./todo-json";
1
+ import type { TodoJsonObject } from "./todo-json-object";
2
2
 
3
3
  export interface ITodoActivity {
4
4
  id: string;
@@ -0,0 +1,8 @@
1
+ export interface ITodoAssignee {
2
+ id: string;
3
+ createdAt: string;
4
+ todoId: string;
5
+ userId?: string;
6
+ employeeId?: string;
7
+ metadata?: Record<string, unknown>;
8
+ }
@@ -0,0 +1,10 @@
1
+ export interface ITodoChecklistItem {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+ text: string;
6
+ isChecked: boolean;
7
+ checklistId: string;
8
+ sortOrder: number;
9
+ metadata?: Record<string, unknown>;
10
+ }
@@ -0,0 +1,9 @@
1
+ export interface ITodoChecklist {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+ name: string;
6
+ todoId: string;
7
+ sortOrder: number;
8
+ metadata?: Record<string, unknown>;
9
+ }
@@ -0,0 +1,7 @@
1
+ export interface ITodoCommentReaction {
2
+ id: string;
3
+ createdAt: string;
4
+ commentId: string;
5
+ userId: string;
6
+ emoji: string;
7
+ }
@@ -3,23 +3,9 @@ export interface ITodoComment {
3
3
  createdAt: string;
4
4
  updatedAt?: string;
5
5
  deletedAt?: string;
6
-
7
6
  body: string;
8
-
9
7
  todoId: string;
10
8
  userId: string;
11
-
12
9
  parentId?: string;
13
-
14
10
  metadata?: Record<string, unknown>;
15
11
  }
16
-
17
- export interface ITodoCommentReaction {
18
- id: string;
19
- createdAt: string;
20
-
21
- commentId: string;
22
- userId: string;
23
-
24
- emoji: string;
25
- }
@@ -0,0 +1,5 @@
1
+ export interface ITodoCustomFieldOption {
2
+ label: string;
3
+ color?: string;
4
+ value: string;
5
+ }
@@ -0,0 +1,26 @@
1
+ export type TodoCustomFieldType =
2
+ | "TEXT"
3
+ | "LONG_TEXT"
4
+ | "NUMBER"
5
+ | "DATE"
6
+ | "DROPDOWN"
7
+ | "MULTI_DROPDOWN"
8
+ | "CHECKBOX"
9
+ | "EMAIL"
10
+ | "PHONE"
11
+ | "URL"
12
+ | "CURRENCY"
13
+ | "RATING"
14
+ | "PROGRESS"
15
+ | "MONEY"
16
+ | "LABELS"
17
+ | "PEOPLE"
18
+ | "USER"
19
+ | "FILES"
20
+ | "TASKS"
21
+ | "RELATIONSHIPS"
22
+ | "ROLLUP"
23
+ | "PROGRESS_MANUAL"
24
+ | "PROGRESS_AUTO"
25
+ | "VOTING"
26
+ | "LOCATION";
@@ -0,0 +1,11 @@
1
+ import type { TodoJsonValue } from "./todo-json-value";
2
+
3
+ export interface ITodoCustomFieldValue {
4
+ id: string;
5
+ createdAt: string;
6
+ updatedAt?: string;
7
+ todoId: string;
8
+ fieldId: string;
9
+ value: TodoJsonValue;
10
+ metadata?: Record<string, unknown>;
11
+ }
@@ -1,53 +1,18 @@
1
- import type { TodoJsonValue } from "./todo-json";
1
+ import type { ITodoCustomFieldOption } from "./todo-custom-field-option";
2
+ import type { TodoCustomFieldType } from "./todo-custom-field-type";
3
+ import type { TodoJsonValue } from "./todo-json-value";
4
+
2
5
  export interface ITodoCustomField {
3
6
  id: string;
4
7
  createdAt: string;
5
8
  updatedAt?: string;
6
9
  deletedAt?: string;
7
-
8
10
  name: string;
9
11
  type: TodoCustomFieldType;
10
-
11
12
  spaceId: string;
12
-
13
13
  options?: ITodoCustomFieldOption[];
14
14
  defaultValue?: TodoJsonValue;
15
-
16
15
  sortOrder: number;
17
16
  required: boolean;
18
-
19
17
  metadata?: Record<string, unknown>;
20
18
  }
21
-
22
- export interface ITodoCustomFieldOption {
23
- label: string;
24
- color?: string;
25
- value: string;
26
- }
27
-
28
- export type TodoCustomFieldType =
29
- | "TEXT"
30
- | "LONG_TEXT"
31
- | "NUMBER"
32
- | "DATE"
33
- | "DROPDOWN"
34
- | "MULTI_DROPDOWN"
35
- | "CHECKBOX"
36
- | "EMAIL"
37
- | "PHONE"
38
- | "URL"
39
- | "CURRENCY"
40
- | "RATING"
41
- | "PROGRESS"
42
- | "MONEY"
43
- | "LABELS"
44
- | "PEOPLE"
45
- | "USER"
46
- | "FILES"
47
- | "TASKS"
48
- | "RELATIONSHIPS"
49
- | "ROLLUP"
50
- | "PROGRESS_MANUAL"
51
- | "PROGRESS_AUTO"
52
- | "VOTING"
53
- | "LOCATION";
@@ -0,0 +1,12 @@
1
+ export type TodoDashboardWidgetType =
2
+ | "STATUS_BREAKDOWN"
3
+ | "PRIORITY_BREAKDOWN"
4
+ | "ASSIGNEE_WORKLOAD"
5
+ | "DUE_DATE_CALENDAR"
6
+ | "RECENT_ACTIVITY"
7
+ | "COMPLETION_TREND"
8
+ | "OVERDUE_TODOS"
9
+ | "BURNDOWN_CHART"
10
+ | "TAG_DISTRIBUTION"
11
+ | "VELOCITY"
12
+ | "STATS_CARD";
@@ -0,0 +1,15 @@
1
+ import type { TodoDashboardWidgetType } from "./todo-dashboard-widget-type";
2
+ import type { TodoJsonObject } from "./todo-json-object";
3
+
4
+ export interface ITodoDashboardWidget {
5
+ id: string;
6
+ createdAt: string;
7
+ updatedAt?: string;
8
+ dashboardId: string;
9
+ type: TodoDashboardWidgetType;
10
+ config: TodoJsonObject;
11
+ x: number;
12
+ y: number;
13
+ w: number;
14
+ h: number;
15
+ }
@@ -0,0 +1,10 @@
1
+ import type { TodoJsonObject } from "./todo-json-object";
2
+
3
+ export interface ITodoDashboard {
4
+ id: string;
5
+ createdAt: string;
6
+ updatedAt?: string;
7
+ spaceId: string;
8
+ listId?: string;
9
+ config: TodoJsonObject;
10
+ }
@@ -0,0 +1 @@
1
+ export type TodoDependencyType = "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
@@ -0,0 +1,10 @@
1
+ import type { TodoDependencyType } from "./todo-dependency-type";
2
+
3
+ export interface ITodoDependency {
4
+ id: string;
5
+ createdAt: string;
6
+ todoId: string;
7
+ dependsOnId: string;
8
+ type: TodoDependencyType;
9
+ createdById: string;
10
+ }
@@ -0,0 +1,15 @@
1
+ import type { TodoJsonValue } from "./todo-json-value";
2
+
3
+ export interface ITodoDoc {
4
+ id: string;
5
+ createdAt: string;
6
+ updatedAt?: string;
7
+ deletedAt?: string;
8
+ title: string;
9
+ content?: TodoJsonValue;
10
+ spaceId: string;
11
+ folderId?: string;
12
+ createdById: string;
13
+ sortOrder: number;
14
+ metadata?: Record<string, unknown>;
15
+ }
@@ -1,67 +1,13 @@
1
- import type { TodoJsonValue } from "./todo-json";
2
-
3
1
  export interface ITodoFolder {
4
2
  id: string;
5
3
  createdAt: string;
6
4
  updatedAt?: string;
7
5
  deletedAt?: string;
8
-
9
6
  name: string;
10
7
  icon?: string;
11
8
  color?: string;
12
-
13
9
  spaceId: string;
14
10
  parentId?: string;
15
-
16
11
  sortOrder: number;
17
-
18
- metadata?: Record<string, unknown>;
19
- }
20
-
21
- export interface ITodoDoc {
22
- id: string;
23
- createdAt: string;
24
- updatedAt?: string;
25
- deletedAt?: string;
26
-
27
- title: string;
28
- content?: TodoJsonValue;
29
-
30
- spaceId: string;
31
- folderId?: string;
32
-
33
- createdById: string;
34
-
35
- sortOrder: number;
36
-
37
- metadata?: Record<string, unknown>;
38
- }
39
-
40
- export interface ITodoChecklist {
41
- id: string;
42
- createdAt: string;
43
- updatedAt?: string;
44
-
45
- name: string;
46
-
47
- todoId: string;
48
-
49
- sortOrder: number;
50
-
51
- metadata?: Record<string, unknown>;
52
- }
53
-
54
- export interface ITodoChecklistItem {
55
- id: string;
56
- createdAt: string;
57
- updatedAt?: string;
58
-
59
- text: string;
60
- isChecked: boolean;
61
-
62
- checklistId: string;
63
-
64
- sortOrder: number;
65
-
66
12
  metadata?: Record<string, unknown>;
67
13
  }
@@ -0,0 +1,5 @@
1
+ import type { TodoJsonValue } from "./todo-json-value";
2
+
3
+ export interface TodoJsonObject {
4
+ [key: string]: TodoJsonValue;
5
+ }
@@ -1,5 +1,4 @@
1
+ import type { TodoJsonObject } from "./todo-json-object";
2
+
1
3
  export type TodoJsonPrimitive = boolean | number | string | null;
2
4
  export type TodoJsonValue = TodoJsonPrimitive | TodoJsonObject | TodoJsonValue[];
3
- export interface TodoJsonObject {
4
- [key: string]: TodoJsonValue;
5
- }
@@ -1,52 +1,9 @@
1
- import type { TodoJsonValue } from "./todo-json";
1
+ import type { ITodoListFieldEntry } from "./todo-list-field-entry";
2
2
 
3
3
  export interface ITodoListFieldConfig {
4
4
  id: string;
5
5
  createdAt: string;
6
6
  updatedAt?: string;
7
-
8
7
  listId: string;
9
-
10
8
  fields: ITodoListFieldEntry[];
11
9
  }
12
-
13
- export interface ITodoListFieldEntry {
14
- key: string;
15
- label: string;
16
- visible: boolean; // legacy, kept for backward compat
17
- enabled: boolean; // whether the field is active on this list (shows in detail modal)
18
- showInList: boolean; // whether the field shows as a column in list/table row views
19
- order: number;
20
- type: "system" | "custom";
21
- fieldId?: string; // for custom fields
22
- config?: Record<string, TodoJsonValue>;
23
- }
24
-
25
- /** Default system fields available for list configuration */
26
- export const SYSTEM_FIELDS: Array<{ key: string; label: string; alwaysVisible?: boolean }> = [
27
- { alwaysVisible: true, key: "title", label: "Task Name" },
28
- { key: "description", label: "Description" },
29
- { key: "statusId", label: "Status" },
30
- { key: "priority", label: "Priority" },
31
- { key: "assignees", label: "Assignees" },
32
- { key: "dueDate", label: "Due Date" },
33
- { key: "startDate", label: "Start Date" },
34
- { key: "timeEstimate", label: "Time Estimate" },
35
- { key: "timeTracked", label: "Time Tracked" },
36
- { key: "createdAt", label: "Created Date" },
37
- { key: "updatedAt", label: "Updated Date" },
38
- { key: "closedAt", label: "Closed Date" },
39
- { key: "createdBy", label: "Created By" },
40
- { key: "closedBy", label: "Closed By" },
41
- { key: "id", label: "Task ID" },
42
- { key: "taskType", label: "Task Type" },
43
- { key: "parentId", label: "Parent Task" },
44
- { key: "children", label: "Subtasks" },
45
- { key: "checklists", label: "Checklist" },
46
- { key: "tags", label: "Tags" },
47
- { key: "watchers", label: "Watchers" },
48
- { key: "dependencies", label: "Dependencies" },
49
- { key: "sprintPoints", label: "Sprint Points" },
50
- { key: "recurringSettings", label: "Recurring Settings" },
51
- { key: "estimatedHours", label: "Estimated Hours" },
52
- ];
@@ -0,0 +1,13 @@
1
+ import type { TodoJsonValue } from "./todo-json-value";
2
+
3
+ export interface ITodoListFieldEntry {
4
+ key: string;
5
+ label: string;
6
+ visible: boolean;
7
+ enabled: boolean;
8
+ showInList: boolean;
9
+ order: number;
10
+ type: "system" | "custom";
11
+ fieldId?: string;
12
+ config?: Record<string, TodoJsonValue>;
13
+ }
@@ -0,0 +1,8 @@
1
+ export interface ITodoListItem {
2
+ id: string;
3
+ createdAt: string;
4
+ todoId: string;
5
+ listId: string;
6
+ addedById: string;
7
+ sortOrder: number;
8
+ }
@@ -0,0 +1,11 @@
1
+ import type { TodoSpaceMemberRole } from "./todo-space-member-role";
2
+
3
+ export interface ITodoListMember {
4
+ id: string;
5
+ createdAt: string;
6
+ updatedAt?: string;
7
+ listId: string;
8
+ userId: string;
9
+ role: TodoSpaceMemberRole;
10
+ metadata?: Record<string, unknown>;
11
+ }
@@ -0,0 +1 @@
1
+ export type TodoPriority = "URGENT" | "HIGH" | "NORMAL" | "LOW";
@@ -0,0 +1,7 @@
1
+ export interface TodoRecurrenceSettings {
2
+ frequency: "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY";
3
+ interval: number;
4
+ days?: number[];
5
+ endDate?: string;
6
+ timezone?: string;
7
+ }
@@ -0,0 +1 @@
1
+ export type TodoSpaceMemberRole = "OWNER" | "ADMIN" | "EDITOR" | "VIEWER";
@@ -0,0 +1,11 @@
1
+ import type { TodoSpaceMemberRole } from "./todo-space-member-role";
2
+
3
+ export interface ITodoSpaceMember {
4
+ id: string;
5
+ createdAt: string;
6
+ updatedAt?: string;
7
+ spaceId: string;
8
+ userId: string;
9
+ role: TodoSpaceMemberRole;
10
+ metadata?: Record<string, unknown>;
11
+ }
@@ -0,0 +1 @@
1
+ export type TodoSpaceVisibility = "PUBLIC" | "PRIVATE";
@@ -1,46 +1,15 @@
1
+ import type { TodoSpaceVisibility } from "./todo-space-visibility";
2
+
1
3
  export interface ITodoSpace {
2
4
  id: string;
3
5
  createdAt: string;
4
6
  updatedAt?: string;
5
7
  deletedAt?: string;
6
-
7
8
  name: string;
8
9
  icon?: string;
9
10
  color?: string;
10
-
11
11
  regionId: string;
12
12
  visibility: TodoSpaceVisibility;
13
-
14
13
  sortOrder: number;
15
-
16
- metadata?: Record<string, unknown>;
17
- }
18
-
19
- export interface ITodoSpaceMember {
20
- id: string;
21
- createdAt: string;
22
- updatedAt?: string;
23
-
24
- spaceId: string;
25
- userId: string;
26
-
27
- role: TodoSpaceMemberRole;
28
-
29
- metadata?: Record<string, unknown>;
30
- }
31
-
32
- export type TodoSpaceMemberRole = "OWNER" | "ADMIN" | "EDITOR" | "VIEWER";
33
- export type TodoSpaceVisibility = "PUBLIC" | "PRIVATE";
34
-
35
- export interface ITodoListMember {
36
- id: string;
37
- createdAt: string;
38
- updatedAt?: string;
39
-
40
- listId: string;
41
- userId: string;
42
-
43
- role: TodoSpaceMemberRole;
44
-
45
14
  metadata?: Record<string, unknown>;
46
15
  }
@@ -0,0 +1,7 @@
1
+ export interface ITodoSystemField {
2
+ key: string;
3
+ label: string;
4
+ alwaysVisible?: boolean;
5
+ }
6
+
7
+ export declare const SYSTEM_FIELDS: ITodoSystemField[];
@@ -0,0 +1,6 @@
1
+ export interface ITodoTagAssignment {
2
+ id: string;
3
+ createdAt: string;
4
+ todoId: string;
5
+ tagId: string;
6
+ }
@@ -0,0 +1,12 @@
1
+ export interface ITodoTimeEntry {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+ todoId: string;
6
+ userId: string;
7
+ startedAt: string;
8
+ stoppedAt?: string;
9
+ duration?: number;
10
+ description?: string;
11
+ metadata?: Record<string, unknown>;
12
+ }
@@ -0,0 +1 @@
1
+ export type TodoViewType = "LIST" | "BOARD" | "GANTT" | "TIMELINE" | "TABLE" | "CALENDAR";
@@ -1,87 +1,23 @@
1
- import type { TodoJsonObject, TodoJsonValue } from "./todo-json";
1
+ import type { TodoJsonValue } from "./todo-json-value";
2
+ import type { TodoViewType } from "./todo-view-type";
2
3
 
3
4
  export interface ITodoView {
4
5
  id: string;
5
6
  createdAt: string;
6
7
  updatedAt?: string;
7
8
  deletedAt?: string;
8
-
9
9
  name: string;
10
10
  type: TodoViewType;
11
-
12
11
  spaceId: string;
13
12
  listId?: string;
14
-
15
13
  createdById: string;
16
-
17
14
  isShared: boolean;
18
15
  isDefault: boolean;
19
-
20
16
  filters?: TodoJsonValue;
21
17
  sortConfig?: TodoJsonValue;
22
18
  groupBy?: string;
23
19
  columnConfig?: TodoJsonValue;
24
20
  viewConfig?: TodoJsonValue;
25
-
26
21
  sortOrder: number;
27
-
28
- metadata?: Record<string, unknown>;
29
- }
30
-
31
- export type TodoViewType = "LIST" | "BOARD" | "GANTT" | "TIMELINE" | "TABLE" | "CALENDAR";
32
-
33
- export interface ITodoDashboard {
34
- id: string;
35
- createdAt: string;
36
- updatedAt?: string;
37
-
38
- spaceId: string;
39
- listId?: string;
40
-
41
- config: TodoJsonObject;
42
- }
43
-
44
- export interface ITodoDashboardWidget {
45
- id: string;
46
- createdAt: string;
47
- updatedAt?: string;
48
-
49
- dashboardId: string;
50
- type: TodoDashboardWidgetType;
51
- config: TodoJsonObject;
52
-
53
- x: number;
54
- y: number;
55
- w: number;
56
- h: number;
57
- }
58
-
59
- export type TodoDashboardWidgetType =
60
- | "STATUS_BREAKDOWN"
61
- | "PRIORITY_BREAKDOWN"
62
- | "ASSIGNEE_WORKLOAD"
63
- | "DUE_DATE_CALENDAR"
64
- | "RECENT_ACTIVITY"
65
- | "COMPLETION_TREND"
66
- | "OVERDUE_TODOS"
67
- | "BURNDOWN_CHART"
68
- | "TAG_DISTRIBUTION"
69
- | "VELOCITY"
70
- | "STATS_CARD";
71
-
72
- export interface ITodoTimeEntry {
73
- id: string;
74
- createdAt: string;
75
- updatedAt?: string;
76
-
77
- todoId: string;
78
- userId: string;
79
-
80
- startedAt: string;
81
- stoppedAt?: string;
82
- duration?: number;
83
-
84
- description?: string;
85
-
86
22
  metadata?: Record<string, unknown>;
87
23
  }
@@ -0,0 +1,6 @@
1
+ export interface ITodoWatcher {
2
+ id: string;
3
+ createdAt: string;
4
+ todoId: string;
5
+ userId: string;
6
+ }
@@ -1,4 +1,5 @@
1
- import type { TodoJsonValue } from "./todo-json";
1
+ import type { TodoPriority } from "./todo-priority";
2
+ import type { TodoRecurrenceSettings } from "./todo-recurrence-settings";
2
3
 
3
4
  export interface ITodo {
4
5
  id: string;
@@ -6,109 +7,24 @@ export interface ITodo {
6
7
  updatedAt?: string;
7
8
  deletedAt?: string;
8
9
  version: number;
9
-
10
10
  title: string;
11
11
  description?: string;
12
-
13
12
  statusId: string;
14
13
  priority: TodoPriority;
15
-
16
14
  listId: string;
17
15
  spaceId: string;
18
-
19
16
  createdById: string;
20
17
  closedById?: string;
21
-
22
18
  startDate?: string;
23
19
  dueDate?: string;
24
20
  completedAt?: string;
25
21
  closedAt?: string;
26
-
27
22
  sortOrder: number;
28
-
29
23
  parentId?: string;
30
-
31
24
  estimatedHours?: number;
32
25
  sprintPoints?: number;
33
- timeEstimate?: number; // seconds
26
+ timeEstimate?: number;
34
27
  recurringSettings?: TodoRecurrenceSettings;
35
28
  taskType?: string;
36
-
37
- metadata?: Record<string, unknown>;
38
- }
39
-
40
- export interface ITodoAssignee {
41
- id: string;
42
- createdAt: string;
43
-
44
- todoId: string;
45
- userId?: string;
46
- employeeId?: string;
47
-
48
- metadata?: Record<string, unknown>;
49
- }
50
-
51
- export interface ITodoWatcher {
52
- id: string;
53
- createdAt: string;
54
-
55
- todoId: string;
56
- userId: string;
57
- }
58
-
59
- export interface ITodoDependency {
60
- id: string;
61
- createdAt: string;
62
-
63
- todoId: string;
64
- dependsOnId: string;
65
-
66
- type: TodoDependencyType;
67
-
68
- createdById: string;
69
- }
70
-
71
- export interface ITodoCustomFieldValue {
72
- id: string;
73
- createdAt: string;
74
- updatedAt?: string;
75
-
76
- todoId: string;
77
- fieldId: string;
78
-
79
- value: TodoJsonValue;
80
-
81
29
  metadata?: Record<string, unknown>;
82
30
  }
83
-
84
- export interface ITodoListItem {
85
- id: string;
86
- createdAt: string;
87
-
88
- todoId: string;
89
- listId: string;
90
-
91
- addedById: string;
92
-
93
- sortOrder: number;
94
- }
95
-
96
- export interface ITodoTagAssignment {
97
- id: string;
98
- createdAt: string;
99
-
100
- todoId: string;
101
- tagId: string;
102
- }
103
-
104
- export type TodoPriority = "URGENT" | "HIGH" | "NORMAL" | "LOW";
105
-
106
- export interface TodoRecurrenceSettings {
107
- frequency: "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY";
108
- interval: number;
109
- days?: number[];
110
- endDate?: string;
111
- timezone?: string;
112
- }
113
-
114
- export type TodoDependencyType = "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
package/package.json CHANGED
@@ -52,5 +52,5 @@
52
52
  "test": "echo \"Error: no test specified\" && exit 1"
53
53
  },
54
54
  "types": "dist/types/index.d.ts",
55
- "version": "1.0.89-dev.32620b3"
55
+ "version": "1.0.89-dev.828151b"
56
56
  }