@automateinc/fleet-types 1.0.88-dev.c7298c7 → 1.0.89-dev.2c2e88a

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.
@@ -21,7 +21,7 @@ jobs:
21
21
 
22
22
  - uses: actions/setup-node@v4
23
23
  with:
24
- node-version: "20.x"
24
+ node-version: "24.x"
25
25
  registry-url: "https://registry.npmjs.org"
26
26
 
27
27
  - run: npm install -g semver
@@ -50,8 +50,7 @@ jobs:
50
50
  - run: npm ci
51
51
 
52
52
  - name: Publish to npm
53
- run: npm install -g npm@latest
54
- - run: npm publish --provenance --access public --tag $( [[ "${{ github.ref_name }}" == "main" ]] && echo "latest" || echo "dev" )
53
+ run: npm publish --provenance --access public --tag $( [[ "${{ github.ref_name }}" == "main" ]] && echo "latest" || echo "dev" )
55
54
 
56
55
  - name: Output Published Version
57
56
  run: 'echo "📦 Published version: ${{ steps.bump.outputs.version }}"'
@@ -212,6 +212,7 @@ export * from "./todo-custom-field";
212
212
  export * from "./todo-document";
213
213
  export * from "./todo-folder";
214
214
  export * from "./todo-list";
215
+ export * from "./todo-list-field-config";
215
216
  export * from "./todo-space";
216
217
  export * from "./todo-status";
217
218
  export * from "./todo-tag";
@@ -26,6 +26,7 @@ export interface ITodoCustomFieldOption {
26
26
 
27
27
  export type TodoCustomFieldType =
28
28
  | "TEXT"
29
+ | "LONG_TEXT"
29
30
  | "NUMBER"
30
31
  | "DATE"
31
32
  | "DROPDOWN"
@@ -36,4 +37,15 @@ export type TodoCustomFieldType =
36
37
  | "URL"
37
38
  | "CURRENCY"
38
39
  | "RATING"
39
- | "PROGRESS";
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,50 @@
1
+ export interface ITodoListFieldConfig {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+
6
+ listId: string;
7
+
8
+ fields: ITodoListFieldEntry[];
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
+ ];
@@ -9,8 +9,13 @@ export interface ITodoList {
9
9
  color?: string;
10
10
 
11
11
  spaceId: string;
12
+ folderId?: string;
12
13
 
13
14
  sortOrder: number;
14
15
 
16
+ fieldConfig?: ITodoListFieldConfig;
17
+
15
18
  metadata?: any;
16
19
  }
20
+
21
+ import { ITodoListFieldConfig } from "./todo-list-field-config";
@@ -28,4 +28,17 @@ export interface ITodoSpaceMember {
28
28
  metadata?: any;
29
29
  }
30
30
 
31
- export type TodoSpaceMemberRole = "OWNER" | "ADMIN" | "MEMBER" | "VIEWER";
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;
44
+ }
@@ -12,6 +12,7 @@ export interface ITodoStatus {
12
12
 
13
13
  sortOrder: number;
14
14
  isDefault: boolean;
15
+ isCompletedStatus: boolean;
15
16
 
16
17
  metadata?: any;
17
18
  }
@@ -14,16 +14,22 @@ export interface ITodo {
14
14
  spaceId: string;
15
15
 
16
16
  createdById: string;
17
+ closedById?: string;
17
18
 
18
19
  startDate?: string;
19
20
  dueDate?: string;
20
21
  completedAt?: string;
22
+ closedAt?: string;
21
23
 
22
24
  sortOrder: number;
23
25
 
24
26
  parentId?: string;
25
27
 
26
28
  estimatedHours?: number;
29
+ sprintPoints?: number;
30
+ timeEstimate?: number; // seconds
31
+ recurringSettings?: any; // { frequency, interval, days, endDate }
32
+ taskType?: string;
27
33
 
28
34
  metadata?: any;
29
35
  }
package/package.json CHANGED
@@ -44,7 +44,7 @@
44
44
  "private": false,
45
45
  "repository": {
46
46
  "type": "git",
47
- "url": "git+https://github.com/automateinc/fleet-types.git"
47
+ "url": "https://github.com/automateinc/fleet-types"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsc && cp -R src/types dist/",
@@ -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.88-dev.c7298c7"
55
+ "version": "1.0.89-dev.2c2e88a"
56
56
  }