@automateinc/fleet-types 1.0.89-dev.2c2e88a → 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.
- package/.nvmrc +1 -0
- package/dist/types/index.d.ts +28 -0
- package/dist/types/todo-activity.d.ts +4 -2
- package/dist/types/todo-assignee.d.ts +8 -0
- package/dist/types/todo-checklist-item.d.ts +10 -0
- package/dist/types/todo-checklist.d.ts +9 -0
- package/dist/types/todo-comment-reaction.d.ts +7 -0
- package/dist/types/todo-comment.d.ts +1 -15
- package/dist/types/todo-custom-field-option.d.ts +5 -0
- package/dist/types/todo-custom-field-type.d.ts +26 -0
- package/dist/types/todo-custom-field-value.d.ts +11 -0
- package/dist/types/todo-custom-field.d.ts +6 -39
- package/dist/types/todo-dashboard-widget-type.d.ts +12 -0
- package/dist/types/todo-dashboard-widget.d.ts +15 -0
- package/dist/types/todo-dashboard.d.ts +10 -0
- package/dist/types/todo-dependency-type.d.ts +1 -0
- package/dist/types/todo-dependency.d.ts +10 -0
- package/dist/types/todo-doc.d.ts +15 -0
- package/dist/types/todo-document.d.ts +1 -1
- package/dist/types/todo-folder.d.ts +2 -55
- package/dist/types/todo-json-object.d.ts +5 -0
- package/dist/types/todo-json-value.d.ts +4 -0
- package/dist/types/todo-list-field-config.d.ts +2 -43
- package/dist/types/todo-list-field-entry.d.ts +13 -0
- package/dist/types/todo-list-item.d.ts +8 -0
- package/dist/types/todo-list-member.d.ts +11 -0
- package/dist/types/todo-list.d.ts +1 -5
- package/dist/types/todo-priority.d.ts +1 -0
- package/dist/types/todo-recurrence-settings.d.ts +7 -0
- package/dist/types/todo-space-member-role.d.ts +1 -0
- package/dist/types/todo-space-member.d.ts +11 -0
- package/dist/types/todo-space-visibility.d.ts +1 -0
- package/dist/types/todo-space.d.ts +4 -33
- package/dist/types/todo-status.d.ts +2 -2
- package/dist/types/todo-system-field.d.ts +7 -0
- package/dist/types/todo-tag-assignment.d.ts +6 -0
- package/dist/types/todo-tag.d.ts +1 -1
- package/dist/types/todo-time-entry.d.ts +12 -0
- package/dist/types/todo-view-type.d.ts +1 -0
- package/dist/types/todo-view.d.ts +8 -72
- package/dist/types/todo-watcher.d.ts +6 -0
- package/dist/types/todo.d.ts +7 -80
- package/package.json +1 -1
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24.13.0
|
package/dist/types/index.d.ts
CHANGED
|
@@ -207,16 +207,44 @@ 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";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { TodoJsonObject } from "./todo-json-object";
|
|
2
|
+
|
|
1
3
|
export interface ITodoActivity {
|
|
2
4
|
id: string;
|
|
3
5
|
createdAt: string;
|
|
@@ -7,9 +9,9 @@ export interface ITodoActivity {
|
|
|
7
9
|
|
|
8
10
|
action: TodoActivityAction;
|
|
9
11
|
|
|
10
|
-
changes?:
|
|
12
|
+
changes?: TodoJsonObject;
|
|
11
13
|
|
|
12
|
-
metadata?:
|
|
14
|
+
metadata?: Record<string, unknown>;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
export type TodoActivityAction =
|
|
@@ -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
|
-
metadata?: any;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface ITodoCommentReaction {
|
|
18
|
-
id: string;
|
|
19
|
-
createdAt: string;
|
|
20
|
-
|
|
21
|
-
commentId: string;
|
|
22
|
-
userId: string;
|
|
23
|
-
|
|
24
|
-
emoji: string;
|
|
10
|
+
metadata?: Record<string, unknown>;
|
|
25
11
|
}
|
|
@@ -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,51 +1,18 @@
|
|
|
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
|
+
|
|
1
5
|
export interface ITodoCustomField {
|
|
2
6
|
id: string;
|
|
3
7
|
createdAt: string;
|
|
4
8
|
updatedAt?: string;
|
|
5
9
|
deletedAt?: string;
|
|
6
|
-
|
|
7
10
|
name: string;
|
|
8
11
|
type: TodoCustomFieldType;
|
|
9
|
-
|
|
10
12
|
spaceId: string;
|
|
11
|
-
|
|
12
13
|
options?: ITodoCustomFieldOption[];
|
|
13
|
-
defaultValue?:
|
|
14
|
-
|
|
14
|
+
defaultValue?: TodoJsonValue;
|
|
15
15
|
sortOrder: number;
|
|
16
16
|
required: boolean;
|
|
17
|
-
|
|
18
|
-
metadata?: any;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface ITodoCustomFieldOption {
|
|
22
|
-
label: string;
|
|
23
|
-
color?: string;
|
|
24
|
-
value: string;
|
|
17
|
+
metadata?: Record<string, unknown>;
|
|
25
18
|
}
|
|
26
|
-
|
|
27
|
-
export type TodoCustomFieldType =
|
|
28
|
-
| "TEXT"
|
|
29
|
-
| "LONG_TEXT"
|
|
30
|
-
| "NUMBER"
|
|
31
|
-
| "DATE"
|
|
32
|
-
| "DROPDOWN"
|
|
33
|
-
| "MULTI_DROPDOWN"
|
|
34
|
-
| "CHECKBOX"
|
|
35
|
-
| "EMAIL"
|
|
36
|
-
| "PHONE"
|
|
37
|
-
| "URL"
|
|
38
|
-
| "CURRENCY"
|
|
39
|
-
| "RATING"
|
|
40
|
-
| "PROGRESS"
|
|
41
|
-
| "MONEY"
|
|
42
|
-
| "LABELS"
|
|
43
|
-
| "PEOPLE"
|
|
44
|
-
| "FILES"
|
|
45
|
-
| "TASKS"
|
|
46
|
-
| "RELATIONSHIPS"
|
|
47
|
-
| "ROLLUP"
|
|
48
|
-
| "PROGRESS_MANUAL"
|
|
49
|
-
| "PROGRESS_AUTO"
|
|
50
|
-
| "VOTING"
|
|
51
|
-
| "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 @@
|
|
|
1
|
+
export type TodoDependencyType = "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
|
|
@@ -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
|
+
}
|
|
@@ -3,64 +3,11 @@ export interface ITodoFolder {
|
|
|
3
3
|
createdAt: string;
|
|
4
4
|
updatedAt?: string;
|
|
5
5
|
deletedAt?: string;
|
|
6
|
-
|
|
7
6
|
name: string;
|
|
8
7
|
icon?: string;
|
|
9
8
|
color?: string;
|
|
10
|
-
|
|
11
9
|
spaceId: string;
|
|
12
|
-
|
|
10
|
+
parentId?: string;
|
|
13
11
|
sortOrder: number;
|
|
14
|
-
|
|
15
|
-
metadata?: any;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface ITodoDoc {
|
|
19
|
-
id: string;
|
|
20
|
-
createdAt: string;
|
|
21
|
-
updatedAt?: string;
|
|
22
|
-
deletedAt?: string;
|
|
23
|
-
|
|
24
|
-
title: string;
|
|
25
|
-
content?: any;
|
|
26
|
-
|
|
27
|
-
spaceId: string;
|
|
28
|
-
folderId?: string;
|
|
29
|
-
|
|
30
|
-
createdById: string;
|
|
31
|
-
|
|
32
|
-
sortOrder: number;
|
|
33
|
-
|
|
34
|
-
metadata?: any;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface ITodoChecklist {
|
|
38
|
-
id: string;
|
|
39
|
-
createdAt: string;
|
|
40
|
-
updatedAt?: string;
|
|
41
|
-
|
|
42
|
-
name: string;
|
|
43
|
-
|
|
44
|
-
todoId: string;
|
|
45
|
-
|
|
46
|
-
sortOrder: number;
|
|
47
|
-
|
|
48
|
-
items?: ITodoChecklistItem[];
|
|
49
|
-
|
|
50
|
-
metadata?: any;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface ITodoChecklistItem {
|
|
54
|
-
id: string;
|
|
55
|
-
createdAt: string;
|
|
56
|
-
updatedAt?: string;
|
|
57
|
-
|
|
58
|
-
text: string;
|
|
59
|
-
isChecked: boolean;
|
|
60
|
-
|
|
61
|
-
checklistId: string;
|
|
62
|
-
|
|
63
|
-
sortOrder: number;
|
|
64
|
-
|
|
65
|
-
metadata?: any;
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
66
13
|
}
|
|
@@ -1,50 +1,9 @@
|
|
|
1
|
+
import type { ITodoListFieldEntry } from "./todo-list-field-entry";
|
|
2
|
+
|
|
1
3
|
export interface ITodoListFieldConfig {
|
|
2
4
|
id: string;
|
|
3
5
|
createdAt: string;
|
|
4
6
|
updatedAt?: string;
|
|
5
|
-
|
|
6
7
|
listId: string;
|
|
7
|
-
|
|
8
8
|
fields: ITodoListFieldEntry[];
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
export interface ITodoListFieldEntry {
|
|
12
|
-
key: string;
|
|
13
|
-
label: string;
|
|
14
|
-
visible: boolean; // legacy, kept for backward compat
|
|
15
|
-
enabled: boolean; // whether the field is active on this list (shows in detail modal)
|
|
16
|
-
showInList: boolean; // whether the field shows as a column in list/table row views
|
|
17
|
-
order: number;
|
|
18
|
-
type: "system" | "custom";
|
|
19
|
-
fieldId?: string; // for custom fields
|
|
20
|
-
config?: Record<string, any>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/** Default system fields available for list configuration */
|
|
24
|
-
export const SYSTEM_FIELDS: Array<{ key: string; label: string; alwaysVisible?: boolean }> = [
|
|
25
|
-
{ alwaysVisible: true, key: "title", label: "Task Name" },
|
|
26
|
-
{ key: "description", label: "Description" },
|
|
27
|
-
{ key: "statusId", label: "Status" },
|
|
28
|
-
{ key: "priority", label: "Priority" },
|
|
29
|
-
{ key: "assignees", label: "Assignees" },
|
|
30
|
-
{ key: "dueDate", label: "Due Date" },
|
|
31
|
-
{ key: "startDate", label: "Start Date" },
|
|
32
|
-
{ key: "timeEstimate", label: "Time Estimate" },
|
|
33
|
-
{ key: "timeTracked", label: "Time Tracked" },
|
|
34
|
-
{ key: "createdAt", label: "Created Date" },
|
|
35
|
-
{ key: "updatedAt", label: "Updated Date" },
|
|
36
|
-
{ key: "closedAt", label: "Closed Date" },
|
|
37
|
-
{ key: "createdBy", label: "Created By" },
|
|
38
|
-
{ key: "closedBy", label: "Closed By" },
|
|
39
|
-
{ key: "id", label: "Task ID" },
|
|
40
|
-
{ key: "taskType", label: "Task Type" },
|
|
41
|
-
{ key: "parentId", label: "Parent Task" },
|
|
42
|
-
{ key: "children", label: "Subtasks" },
|
|
43
|
-
{ key: "checklists", label: "Checklist" },
|
|
44
|
-
{ key: "tags", label: "Tags" },
|
|
45
|
-
{ key: "watchers", label: "Watchers" },
|
|
46
|
-
{ key: "dependencies", label: "Dependencies" },
|
|
47
|
-
{ key: "sprintPoints", label: "Sprint Points" },
|
|
48
|
-
{ key: "recurringSettings", label: "Recurring Settings" },
|
|
49
|
-
{ key: "estimatedHours", label: "Estimated Hours" },
|
|
50
|
-
];
|
|
@@ -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,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 @@
|
|
|
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,44 +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
13
|
sortOrder: number;
|
|
14
|
-
|
|
15
|
-
metadata?: any;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface ITodoSpaceMember {
|
|
19
|
-
id: string;
|
|
20
|
-
createdAt: string;
|
|
21
|
-
updatedAt?: string;
|
|
22
|
-
|
|
23
|
-
spaceId: string;
|
|
24
|
-
userId: string;
|
|
25
|
-
|
|
26
|
-
role: TodoSpaceMemberRole;
|
|
27
|
-
|
|
28
|
-
metadata?: any;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type TodoSpaceMemberRole = "OWNER" | "ADMIN" | "EDITOR" | "VIEWER";
|
|
32
|
-
|
|
33
|
-
export interface ITodoListMember {
|
|
34
|
-
id: string;
|
|
35
|
-
createdAt: string;
|
|
36
|
-
updatedAt?: string;
|
|
37
|
-
|
|
38
|
-
listId: string;
|
|
39
|
-
userId: string;
|
|
40
|
-
|
|
41
|
-
role: TodoSpaceMemberRole;
|
|
42
|
-
|
|
43
|
-
metadata?: any;
|
|
14
|
+
metadata?: Record<string, unknown>;
|
|
44
15
|
}
|
|
@@ -8,13 +8,13 @@ export interface ITodoStatus {
|
|
|
8
8
|
color: string;
|
|
9
9
|
type: TodoStatusType;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
listId: string;
|
|
12
12
|
|
|
13
13
|
sortOrder: number;
|
|
14
14
|
isDefault: boolean;
|
|
15
15
|
isCompletedStatus: boolean;
|
|
16
16
|
|
|
17
|
-
metadata?:
|
|
17
|
+
metadata?: Record<string, unknown>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type TodoStatusType = "OPEN" | "IN_PROGRESS" | "DONE" | "CLOSED" | "CUSTOM";
|
package/dist/types/todo-tag.d.ts
CHANGED
|
@@ -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 { TodoJsonValue } from "./todo-json-value";
|
|
2
|
+
import type { TodoViewType } from "./todo-view-type";
|
|
3
|
+
|
|
1
4
|
export interface ITodoView {
|
|
2
5
|
id: string;
|
|
3
6
|
createdAt: string;
|
|
4
7
|
updatedAt?: string;
|
|
5
8
|
deletedAt?: string;
|
|
6
|
-
|
|
7
9
|
name: string;
|
|
8
10
|
type: TodoViewType;
|
|
9
|
-
|
|
10
11
|
spaceId: string;
|
|
11
12
|
listId?: string;
|
|
12
|
-
|
|
13
13
|
createdById: string;
|
|
14
|
-
|
|
15
14
|
isShared: boolean;
|
|
16
15
|
isDefault: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
sortConfig?: any;
|
|
16
|
+
filters?: TodoJsonValue;
|
|
17
|
+
sortConfig?: TodoJsonValue;
|
|
20
18
|
groupBy?: string;
|
|
21
|
-
columnConfig?:
|
|
22
|
-
viewConfig?:
|
|
23
|
-
|
|
19
|
+
columnConfig?: TodoJsonValue;
|
|
20
|
+
viewConfig?: TodoJsonValue;
|
|
24
21
|
sortOrder: number;
|
|
25
|
-
|
|
26
|
-
metadata?: any;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type TodoViewType = "LIST" | "BOARD" | "GANTT" | "TIMELINE" | "TABLE" | "CALENDAR";
|
|
30
|
-
|
|
31
|
-
export interface ITodoDashboard {
|
|
32
|
-
id: string;
|
|
33
|
-
createdAt: string;
|
|
34
|
-
updatedAt?: string;
|
|
35
|
-
|
|
36
|
-
spaceId: string;
|
|
37
|
-
listId?: string;
|
|
38
|
-
|
|
39
|
-
config: any;
|
|
40
|
-
|
|
41
|
-
widgets?: ITodoDashboardWidget[];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface ITodoDashboardWidget {
|
|
45
|
-
id: string;
|
|
46
|
-
createdAt: string;
|
|
47
|
-
updatedAt?: string;
|
|
48
|
-
|
|
49
|
-
dashboardId: string;
|
|
50
|
-
type: TodoDashboardWidgetType;
|
|
51
|
-
config: any;
|
|
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
|
-
metadata?: any;
|
|
22
|
+
metadata?: Record<string, unknown>;
|
|
87
23
|
}
|
package/dist/types/todo.d.ts
CHANGED
|
@@ -1,103 +1,30 @@
|
|
|
1
|
+
import type { TodoPriority } from "./todo-priority";
|
|
2
|
+
import type { TodoRecurrenceSettings } from "./todo-recurrence-settings";
|
|
3
|
+
|
|
1
4
|
export interface ITodo {
|
|
2
5
|
id: string;
|
|
3
6
|
createdAt: string;
|
|
4
7
|
updatedAt?: string;
|
|
5
8
|
deletedAt?: string;
|
|
6
|
-
|
|
9
|
+
version: number;
|
|
7
10
|
title: string;
|
|
8
11
|
description?: string;
|
|
9
|
-
|
|
10
12
|
statusId: string;
|
|
11
13
|
priority: TodoPriority;
|
|
12
|
-
|
|
13
14
|
listId: string;
|
|
14
15
|
spaceId: string;
|
|
15
|
-
|
|
16
16
|
createdById: string;
|
|
17
17
|
closedById?: string;
|
|
18
|
-
|
|
19
18
|
startDate?: string;
|
|
20
19
|
dueDate?: string;
|
|
21
20
|
completedAt?: string;
|
|
22
21
|
closedAt?: string;
|
|
23
|
-
|
|
24
22
|
sortOrder: number;
|
|
25
|
-
|
|
26
23
|
parentId?: string;
|
|
27
|
-
|
|
28
24
|
estimatedHours?: number;
|
|
29
25
|
sprintPoints?: number;
|
|
30
|
-
timeEstimate?: number;
|
|
31
|
-
recurringSettings?:
|
|
26
|
+
timeEstimate?: number;
|
|
27
|
+
recurringSettings?: TodoRecurrenceSettings;
|
|
32
28
|
taskType?: string;
|
|
33
|
-
|
|
34
|
-
metadata?: any;
|
|
29
|
+
metadata?: Record<string, unknown>;
|
|
35
30
|
}
|
|
36
|
-
|
|
37
|
-
export interface ITodoAssignee {
|
|
38
|
-
id: string;
|
|
39
|
-
createdAt: string;
|
|
40
|
-
|
|
41
|
-
todoId: string;
|
|
42
|
-
userId?: string;
|
|
43
|
-
employeeId?: string;
|
|
44
|
-
|
|
45
|
-
metadata?: any;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface ITodoWatcher {
|
|
49
|
-
id: string;
|
|
50
|
-
createdAt: string;
|
|
51
|
-
|
|
52
|
-
todoId: string;
|
|
53
|
-
userId: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface ITodoDependency {
|
|
57
|
-
id: string;
|
|
58
|
-
createdAt: string;
|
|
59
|
-
|
|
60
|
-
todoId: string;
|
|
61
|
-
dependsOnId: string;
|
|
62
|
-
|
|
63
|
-
type: TodoDependencyType;
|
|
64
|
-
|
|
65
|
-
createdById: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface ITodoCustomFieldValue {
|
|
69
|
-
id: string;
|
|
70
|
-
createdAt: string;
|
|
71
|
-
updatedAt?: string;
|
|
72
|
-
|
|
73
|
-
todoId: string;
|
|
74
|
-
fieldId: string;
|
|
75
|
-
|
|
76
|
-
value: any;
|
|
77
|
-
|
|
78
|
-
metadata?: any;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface ITodoListItem {
|
|
82
|
-
id: string;
|
|
83
|
-
createdAt: string;
|
|
84
|
-
|
|
85
|
-
todoId: string;
|
|
86
|
-
listId: string;
|
|
87
|
-
|
|
88
|
-
addedById: string;
|
|
89
|
-
|
|
90
|
-
sortOrder: number;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export interface ITodoTagAssignment {
|
|
94
|
-
id: string;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
|
|
97
|
-
todoId: string;
|
|
98
|
-
tagId: string;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export type TodoPriority = "URGENT" | "HIGH" | "NORMAL" | "LOW";
|
|
102
|
-
|
|
103
|
-
export type TodoDependencyType = "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
|
package/package.json
CHANGED