@automateinc/fleet-types 1.0.89-dev.2c2e88a → 1.0.89-dev.32620b3
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 +1 -0
- package/dist/types/todo-activity.d.ts +4 -2
- package/dist/types/todo-comment.d.ts +1 -1
- package/dist/types/todo-custom-field.d.ts +4 -2
- package/dist/types/todo-document.d.ts +1 -1
- package/dist/types/todo-folder.d.ts +8 -7
- package/dist/types/todo-json.d.ts +5 -0
- package/dist/types/todo-list-field-config.d.ts +3 -1
- package/dist/types/todo-list.d.ts +1 -5
- package/dist/types/todo-space.d.ts +5 -3
- package/dist/types/todo-status.d.ts +2 -2
- package/dist/types/todo-tag.d.ts +1 -1
- package/dist/types/todo-view.d.ts +10 -10
- package/dist/types/todo.d.ts +16 -5
- package/package.json +1 -1
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24.13.0
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { TodoJsonObject } from "./todo-json";
|
|
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 =
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TodoJsonValue } from "./todo-json";
|
|
1
2
|
export interface ITodoCustomField {
|
|
2
3
|
id: string;
|
|
3
4
|
createdAt: string;
|
|
@@ -10,12 +11,12 @@ export interface ITodoCustomField {
|
|
|
10
11
|
spaceId: string;
|
|
11
12
|
|
|
12
13
|
options?: ITodoCustomFieldOption[];
|
|
13
|
-
defaultValue?:
|
|
14
|
+
defaultValue?: TodoJsonValue;
|
|
14
15
|
|
|
15
16
|
sortOrder: number;
|
|
16
17
|
required: boolean;
|
|
17
18
|
|
|
18
|
-
metadata?:
|
|
19
|
+
metadata?: Record<string, unknown>;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export interface ITodoCustomFieldOption {
|
|
@@ -41,6 +42,7 @@ export type TodoCustomFieldType =
|
|
|
41
42
|
| "MONEY"
|
|
42
43
|
| "LABELS"
|
|
43
44
|
| "PEOPLE"
|
|
45
|
+
| "USER"
|
|
44
46
|
| "FILES"
|
|
45
47
|
| "TASKS"
|
|
46
48
|
| "RELATIONSHIPS"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { TodoJsonValue } from "./todo-json";
|
|
2
|
+
|
|
1
3
|
export interface ITodoFolder {
|
|
2
4
|
id: string;
|
|
3
5
|
createdAt: string;
|
|
@@ -9,10 +11,11 @@ export interface ITodoFolder {
|
|
|
9
11
|
color?: string;
|
|
10
12
|
|
|
11
13
|
spaceId: string;
|
|
14
|
+
parentId?: string;
|
|
12
15
|
|
|
13
16
|
sortOrder: number;
|
|
14
17
|
|
|
15
|
-
metadata?:
|
|
18
|
+
metadata?: Record<string, unknown>;
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
export interface ITodoDoc {
|
|
@@ -22,7 +25,7 @@ export interface ITodoDoc {
|
|
|
22
25
|
deletedAt?: string;
|
|
23
26
|
|
|
24
27
|
title: string;
|
|
25
|
-
content?:
|
|
28
|
+
content?: TodoJsonValue;
|
|
26
29
|
|
|
27
30
|
spaceId: string;
|
|
28
31
|
folderId?: string;
|
|
@@ -31,7 +34,7 @@ export interface ITodoDoc {
|
|
|
31
34
|
|
|
32
35
|
sortOrder: number;
|
|
33
36
|
|
|
34
|
-
metadata?:
|
|
37
|
+
metadata?: Record<string, unknown>;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
export interface ITodoChecklist {
|
|
@@ -45,9 +48,7 @@ export interface ITodoChecklist {
|
|
|
45
48
|
|
|
46
49
|
sortOrder: number;
|
|
47
50
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
metadata?: any;
|
|
51
|
+
metadata?: Record<string, unknown>;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
export interface ITodoChecklistItem {
|
|
@@ -62,5 +63,5 @@ export interface ITodoChecklistItem {
|
|
|
62
63
|
|
|
63
64
|
sortOrder: number;
|
|
64
65
|
|
|
65
|
-
metadata?:
|
|
66
|
+
metadata?: Record<string, unknown>;
|
|
66
67
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { TodoJsonValue } from "./todo-json";
|
|
2
|
+
|
|
1
3
|
export interface ITodoListFieldConfig {
|
|
2
4
|
id: string;
|
|
3
5
|
createdAt: string;
|
|
@@ -17,7 +19,7 @@ export interface ITodoListFieldEntry {
|
|
|
17
19
|
order: number;
|
|
18
20
|
type: "system" | "custom";
|
|
19
21
|
fieldId?: string; // for custom fields
|
|
20
|
-
config?: Record<string,
|
|
22
|
+
config?: Record<string, TodoJsonValue>;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
/** Default system fields available for list configuration */
|
|
@@ -9,10 +9,11 @@ export interface ITodoSpace {
|
|
|
9
9
|
color?: string;
|
|
10
10
|
|
|
11
11
|
regionId: string;
|
|
12
|
+
visibility: TodoSpaceVisibility;
|
|
12
13
|
|
|
13
14
|
sortOrder: number;
|
|
14
15
|
|
|
15
|
-
metadata?:
|
|
16
|
+
metadata?: Record<string, unknown>;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export interface ITodoSpaceMember {
|
|
@@ -25,10 +26,11 @@ export interface ITodoSpaceMember {
|
|
|
25
26
|
|
|
26
27
|
role: TodoSpaceMemberRole;
|
|
27
28
|
|
|
28
|
-
metadata?:
|
|
29
|
+
metadata?: Record<string, unknown>;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
export type TodoSpaceMemberRole = "OWNER" | "ADMIN" | "EDITOR" | "VIEWER";
|
|
33
|
+
export type TodoSpaceVisibility = "PUBLIC" | "PRIVATE";
|
|
32
34
|
|
|
33
35
|
export interface ITodoListMember {
|
|
34
36
|
id: string;
|
|
@@ -40,5 +42,5 @@ export interface ITodoListMember {
|
|
|
40
42
|
|
|
41
43
|
role: TodoSpaceMemberRole;
|
|
42
44
|
|
|
43
|
-
metadata?:
|
|
45
|
+
metadata?: Record<string, unknown>;
|
|
44
46
|
}
|
|
@@ -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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { TodoJsonObject, TodoJsonValue } from "./todo-json";
|
|
2
|
+
|
|
1
3
|
export interface ITodoView {
|
|
2
4
|
id: string;
|
|
3
5
|
createdAt: string;
|
|
@@ -15,15 +17,15 @@ export interface ITodoView {
|
|
|
15
17
|
isShared: boolean;
|
|
16
18
|
isDefault: boolean;
|
|
17
19
|
|
|
18
|
-
filters?:
|
|
19
|
-
sortConfig?:
|
|
20
|
+
filters?: TodoJsonValue;
|
|
21
|
+
sortConfig?: TodoJsonValue;
|
|
20
22
|
groupBy?: string;
|
|
21
|
-
columnConfig?:
|
|
22
|
-
viewConfig?:
|
|
23
|
+
columnConfig?: TodoJsonValue;
|
|
24
|
+
viewConfig?: TodoJsonValue;
|
|
23
25
|
|
|
24
26
|
sortOrder: number;
|
|
25
27
|
|
|
26
|
-
metadata?:
|
|
28
|
+
metadata?: Record<string, unknown>;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
export type TodoViewType = "LIST" | "BOARD" | "GANTT" | "TIMELINE" | "TABLE" | "CALENDAR";
|
|
@@ -36,9 +38,7 @@ export interface ITodoDashboard {
|
|
|
36
38
|
spaceId: string;
|
|
37
39
|
listId?: string;
|
|
38
40
|
|
|
39
|
-
config:
|
|
40
|
-
|
|
41
|
-
widgets?: ITodoDashboardWidget[];
|
|
41
|
+
config: TodoJsonObject;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export interface ITodoDashboardWidget {
|
|
@@ -48,7 +48,7 @@ export interface ITodoDashboardWidget {
|
|
|
48
48
|
|
|
49
49
|
dashboardId: string;
|
|
50
50
|
type: TodoDashboardWidgetType;
|
|
51
|
-
config:
|
|
51
|
+
config: TodoJsonObject;
|
|
52
52
|
|
|
53
53
|
x: number;
|
|
54
54
|
y: number;
|
|
@@ -83,5 +83,5 @@ export interface ITodoTimeEntry {
|
|
|
83
83
|
|
|
84
84
|
description?: string;
|
|
85
85
|
|
|
86
|
-
metadata?:
|
|
86
|
+
metadata?: Record<string, unknown>;
|
|
87
87
|
}
|
package/dist/types/todo.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type { TodoJsonValue } from "./todo-json";
|
|
2
|
+
|
|
1
3
|
export interface ITodo {
|
|
2
4
|
id: string;
|
|
3
5
|
createdAt: string;
|
|
4
6
|
updatedAt?: string;
|
|
5
7
|
deletedAt?: string;
|
|
8
|
+
version: number;
|
|
6
9
|
|
|
7
10
|
title: string;
|
|
8
11
|
description?: string;
|
|
@@ -28,10 +31,10 @@ export interface ITodo {
|
|
|
28
31
|
estimatedHours?: number;
|
|
29
32
|
sprintPoints?: number;
|
|
30
33
|
timeEstimate?: number; // seconds
|
|
31
|
-
recurringSettings?:
|
|
34
|
+
recurringSettings?: TodoRecurrenceSettings;
|
|
32
35
|
taskType?: string;
|
|
33
36
|
|
|
34
|
-
metadata?:
|
|
37
|
+
metadata?: Record<string, unknown>;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
export interface ITodoAssignee {
|
|
@@ -42,7 +45,7 @@ export interface ITodoAssignee {
|
|
|
42
45
|
userId?: string;
|
|
43
46
|
employeeId?: string;
|
|
44
47
|
|
|
45
|
-
metadata?:
|
|
48
|
+
metadata?: Record<string, unknown>;
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
export interface ITodoWatcher {
|
|
@@ -73,9 +76,9 @@ export interface ITodoCustomFieldValue {
|
|
|
73
76
|
todoId: string;
|
|
74
77
|
fieldId: string;
|
|
75
78
|
|
|
76
|
-
value:
|
|
79
|
+
value: TodoJsonValue;
|
|
77
80
|
|
|
78
|
-
metadata?:
|
|
81
|
+
metadata?: Record<string, unknown>;
|
|
79
82
|
}
|
|
80
83
|
|
|
81
84
|
export interface ITodoListItem {
|
|
@@ -100,4 +103,12 @@ export interface ITodoTagAssignment {
|
|
|
100
103
|
|
|
101
104
|
export type TodoPriority = "URGENT" | "HIGH" | "NORMAL" | "LOW";
|
|
102
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
|
+
|
|
103
114
|
export type TodoDependencyType = "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
|
package/package.json
CHANGED