@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 ADDED
@@ -0,0 +1 @@
1
+ 24.13.0
@@ -221,3 +221,4 @@ export * from "./vendor";
221
221
  export * from "./vendor-contact";
222
222
  export * from "./zone";
223
223
  export * from "./zone-supervisor";
224
+ export * from "./todo-json";
@@ -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?: any;
12
+ changes?: TodoJsonObject;
11
13
 
12
- metadata?: any;
14
+ metadata?: Record<string, unknown>;
13
15
  }
14
16
 
15
17
  export type TodoActivityAction =
@@ -11,7 +11,7 @@ export interface ITodoComment {
11
11
 
12
12
  parentId?: string;
13
13
 
14
- metadata?: any;
14
+ metadata?: Record<string, unknown>;
15
15
  }
16
16
 
17
17
  export interface ITodoCommentReaction {
@@ -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?: any;
14
+ defaultValue?: TodoJsonValue;
14
15
 
15
16
  sortOrder: number;
16
17
  required: boolean;
17
18
 
18
- metadata?: any;
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"
@@ -7,5 +7,5 @@ export interface ITodoDocument {
7
7
 
8
8
  addedById: string;
9
9
 
10
- metadata?: any;
10
+ metadata?: Record<string, unknown>;
11
11
  }
@@ -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?: any;
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?: any;
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?: any;
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
- items?: ITodoChecklistItem[];
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?: any;
66
+ metadata?: Record<string, unknown>;
66
67
  }
@@ -0,0 +1,5 @@
1
+ export type TodoJsonPrimitive = boolean | number | string | null;
2
+ export type TodoJsonValue = TodoJsonPrimitive | TodoJsonObject | TodoJsonValue[];
3
+ export interface TodoJsonObject {
4
+ [key: string]: TodoJsonValue;
5
+ }
@@ -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, any>;
22
+ config?: Record<string, TodoJsonValue>;
21
23
  }
22
24
 
23
25
  /** Default system fields available for list configuration */
@@ -13,9 +13,5 @@ export interface ITodoList {
13
13
 
14
14
  sortOrder: number;
15
15
 
16
- fieldConfig?: ITodoListFieldConfig;
17
-
18
- metadata?: any;
16
+ metadata?: Record<string, unknown>;
19
17
  }
20
-
21
- import { ITodoListFieldConfig } from "./todo-list-field-config";
@@ -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?: any;
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?: any;
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?: any;
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
- spaceId: string;
11
+ listId: string;
12
12
 
13
13
  sortOrder: number;
14
14
  isDefault: boolean;
15
15
  isCompletedStatus: boolean;
16
16
 
17
- metadata?: any;
17
+ metadata?: Record<string, unknown>;
18
18
  }
19
19
 
20
20
  export type TodoStatusType = "OPEN" | "IN_PROGRESS" | "DONE" | "CLOSED" | "CUSTOM";
@@ -9,5 +9,5 @@ export interface ITodoTag {
9
9
 
10
10
  spaceId: string;
11
11
 
12
- metadata?: any;
12
+ metadata?: Record<string, unknown>;
13
13
  }
@@ -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?: any;
19
- sortConfig?: any;
20
+ filters?: TodoJsonValue;
21
+ sortConfig?: TodoJsonValue;
20
22
  groupBy?: string;
21
- columnConfig?: any;
22
- viewConfig?: any;
23
+ columnConfig?: TodoJsonValue;
24
+ viewConfig?: TodoJsonValue;
23
25
 
24
26
  sortOrder: number;
25
27
 
26
- metadata?: any;
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: any;
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: any;
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?: any;
86
+ metadata?: Record<string, unknown>;
87
87
  }
@@ -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?: any; // { frequency, interval, days, endDate }
34
+ recurringSettings?: TodoRecurrenceSettings;
32
35
  taskType?: string;
33
36
 
34
- metadata?: any;
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?: any;
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: any;
79
+ value: TodoJsonValue;
77
80
 
78
- metadata?: any;
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
@@ -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.2c2e88a"
55
+ "version": "1.0.89-dev.32620b3"
56
56
  }