@automateinc/fleet-types 1.0.88-dev.c7298c7 → 1.0.89-dev.128f555

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 (90) hide show
  1. package/.github/workflows/publish.yml +2 -3
  2. package/.nvmrc +1 -0
  3. package/dist/types/client-request-category-field.d.ts +2 -25
  4. package/dist/types/client-request-field-visibility-rule.d.ts +25 -0
  5. package/dist/types/index.d.ts +87 -16
  6. package/dist/types/phone-admin-agent.d.ts +23 -0
  7. package/dist/types/phone-admin-assigned-queue.d.ts +5 -0
  8. package/dist/types/phone-admin-prompt-fields.d.ts +15 -0
  9. package/dist/types/phone-admin-queue-working-hours-day.d.ts +5 -0
  10. package/dist/types/phone-admin-queue-working-hours.d.ts +11 -0
  11. package/dist/types/phone-admin-queue.d.ts +21 -0
  12. package/dist/types/phone-admin-snapshot.d.ts +14 -0
  13. package/dist/types/phone-admin-summary.d.ts +12 -0
  14. package/dist/types/phone-admin-system-config.d.ts +7 -0
  15. package/dist/types/structured-content-collapse-node.d.ts +10 -0
  16. package/dist/types/structured-content-date-range-filter-constraints.d.ts +8 -0
  17. package/dist/types/structured-content-date-range-filter-initial-value.d.ts +4 -0
  18. package/dist/types/structured-content-default-avatar-node.d.ts +8 -0
  19. package/dist/types/structured-content-default-avatar-value.d.ts +5 -0
  20. package/dist/types/structured-content-link-node.d.ts +9 -0
  21. package/dist/types/structured-content-link-value.d.ts +5 -0
  22. package/dist/types/structured-content-node-base.d.ts +7 -0
  23. package/dist/types/structured-content-node-layout.d.ts +14 -0
  24. package/dist/types/structured-content-root.d.ts +15 -0
  25. package/dist/types/structured-content-space-node.d.ts +7 -0
  26. package/dist/types/structured-content-table-boolean-column.d.ts +7 -0
  27. package/dist/types/structured-content-table-column-base.d.ts +6 -0
  28. package/dist/types/structured-content-table-column-sort-config.d.ts +8 -0
  29. package/dist/types/structured-content-table-date-column.d.ts +7 -0
  30. package/dist/types/structured-content-table-date-range-filter.d.ts +11 -0
  31. package/dist/types/structured-content-table-date-time-column.d.ts +7 -0
  32. package/dist/types/structured-content-table-default-avatar-column.d.ts +8 -0
  33. package/dist/types/structured-content-table-link-column.d.ts +7 -0
  34. package/dist/types/structured-content-table-named-column-base.d.ts +5 -0
  35. package/dist/types/structured-content-table-node.d.ts +13 -0
  36. package/dist/types/structured-content-table-number-column.d.ts +7 -0
  37. package/dist/types/structured-content-table-pagination.d.ts +3 -0
  38. package/dist/types/structured-content-table-select-filter.d.ts +8 -0
  39. package/dist/types/structured-content-table-tag-column.d.ts +7 -0
  40. package/dist/types/structured-content-table-text-column.d.ts +7 -0
  41. package/dist/types/structured-content-table-time-column.d.ts +7 -0
  42. package/dist/types/structured-content-table-toolbar-filter-base.d.ts +3 -0
  43. package/dist/types/structured-content-table-toolbar.d.ts +8 -0
  44. package/dist/types/structured-content-tag-node.d.ts +9 -0
  45. package/dist/types/structured-content-tag-value.d.ts +7 -0
  46. package/dist/types/structured-content-text-node.d.ts +9 -0
  47. package/dist/types/structured-content.d.ts +21 -205
  48. package/dist/types/todo-activity.d.ts +4 -2
  49. package/dist/types/todo-assignee.d.ts +8 -0
  50. package/dist/types/todo-checklist-item.d.ts +11 -0
  51. package/dist/types/todo-checklist.d.ts +10 -0
  52. package/dist/types/todo-comment-reaction.d.ts +7 -0
  53. package/dist/types/todo-comment.d.ts +2 -15
  54. package/dist/types/todo-custom-field-option.d.ts +5 -0
  55. package/dist/types/todo-custom-field-type.d.ts +26 -0
  56. package/dist/types/todo-custom-field-value.d.ts +11 -0
  57. package/dist/types/todo-custom-field.d.ts +9 -28
  58. package/dist/types/todo-dashboard-widget-type.d.ts +12 -0
  59. package/dist/types/todo-dashboard-widget.d.ts +17 -0
  60. package/dist/types/todo-dashboard.d.ts +12 -0
  61. package/dist/types/todo-dependency-type.d.ts +1 -0
  62. package/dist/types/todo-dependency.d.ts +10 -0
  63. package/dist/types/todo-doc.d.ts +17 -0
  64. package/dist/types/todo-document.d.ts +1 -1
  65. package/dist/types/todo-folder.d.ts +3 -55
  66. package/dist/types/todo-json-object.d.ts +5 -0
  67. package/dist/types/todo-json-value.d.ts +4 -0
  68. package/dist/types/todo-list-field-config.d.ts +11 -0
  69. package/dist/types/todo-list-field-entry.d.ts +13 -0
  70. package/dist/types/todo-list-item.d.ts +8 -0
  71. package/dist/types/todo-list-member.d.ts +11 -0
  72. package/dist/types/todo-list.d.ts +3 -1
  73. package/dist/types/todo-people-field-options.d.ts +4 -0
  74. package/dist/types/todo-priority.d.ts +1 -0
  75. package/dist/types/todo-recurrence-settings.d.ts +7 -0
  76. package/dist/types/todo-space-member-role.d.ts +1 -0
  77. package/dist/types/todo-space-member.d.ts +11 -0
  78. package/dist/types/todo-space-visibility.d.ts +1 -0
  79. package/dist/types/todo-space.d.ts +5 -20
  80. package/dist/types/todo-status.d.ts +4 -2
  81. package/dist/types/todo-system-field.d.ts +7 -0
  82. package/dist/types/todo-tag-assignment.d.ts +6 -0
  83. package/dist/types/todo-tag.d.ts +2 -1
  84. package/dist/types/todo-time-entry.d.ts +12 -0
  85. package/dist/types/todo-view-type.d.ts +1 -0
  86. package/dist/types/todo-view.d.ts +10 -72
  87. package/dist/types/todo-watcher.d.ts +6 -0
  88. package/dist/types/todo.d.ts +11 -78
  89. package/package.json +2 -2
  90. package/dist/types/phone-admin.d.ts +0 -107
@@ -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
+ }
@@ -9,8 +9,10 @@ export interface ITodoList {
9
9
  color?: string;
10
10
 
11
11
  spaceId: string;
12
+ folderId?: string;
12
13
 
13
14
  sortOrder: number;
15
+ version: number;
14
16
 
15
- metadata?: any;
17
+ metadata?: Record<string, unknown>;
16
18
  }
@@ -0,0 +1,4 @@
1
+ export interface TodoPeopleFieldOptions {
2
+ inSpace: boolean;
3
+ multiple: boolean;
4
+ }
@@ -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,31 +1,16 @@
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;
14
+ version: number;
15
+ metadata?: Record<string, unknown>;
29
16
  }
30
-
31
- export type TodoSpaceMemberRole = "OWNER" | "ADMIN" | "MEMBER" | "VIEWER";
@@ -8,12 +8,14 @@ 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
+ isCompletedStatus: boolean;
16
+ version: number;
15
17
 
16
- metadata?: any;
18
+ metadata?: Record<string, unknown>;
17
19
  }
18
20
 
19
21
  export type TodoStatusType = "OPEN" | "IN_PROGRESS" | "DONE" | "CLOSED" | "CUSTOM";
@@ -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
+ }
@@ -8,6 +8,7 @@ export interface ITodoTag {
8
8
  color: string;
9
9
 
10
10
  spaceId: string;
11
+ version: number;
11
12
 
12
- metadata?: any;
13
+ metadata?: Record<string, unknown>;
13
14
  }
@@ -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,25 @@
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
- filters?: any;
19
- sortConfig?: any;
16
+ filters?: TodoJsonValue;
17
+ sortConfig?: TodoJsonValue;
20
18
  groupBy?: string;
21
- columnConfig?: any;
22
- viewConfig?: any;
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
+ version: number;
23
+ configVersion: number;
24
+ metadata?: Record<string, unknown>;
87
25
  }
@@ -0,0 +1,6 @@
1
+ export interface ITodoWatcher {
2
+ id: string;
3
+ createdAt: string;
4
+ todoId: string;
5
+ userId: string;
6
+ }
@@ -1,97 +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
18
  startDate?: string;
19
19
  dueDate?: string;
20
20
  completedAt?: string;
21
-
21
+ closedAt?: string;
22
22
  sortOrder: number;
23
-
24
23
  parentId?: string;
25
-
26
24
  estimatedHours?: number;
27
-
28
- metadata?: any;
25
+ sprintPoints?: number;
26
+ timeEstimate?: number;
27
+ recurringSettings?: TodoRecurrenceSettings;
28
+ taskType?: string;
29
+ metadata?: Record<string, unknown>;
29
30
  }
30
-
31
- export interface ITodoAssignee {
32
- id: string;
33
- createdAt: string;
34
-
35
- todoId: string;
36
- userId?: string;
37
- employeeId?: string;
38
-
39
- metadata?: any;
40
- }
41
-
42
- export interface ITodoWatcher {
43
- id: string;
44
- createdAt: string;
45
-
46
- todoId: string;
47
- userId: string;
48
- }
49
-
50
- export interface ITodoDependency {
51
- id: string;
52
- createdAt: string;
53
-
54
- todoId: string;
55
- dependsOnId: string;
56
-
57
- type: TodoDependencyType;
58
-
59
- createdById: string;
60
- }
61
-
62
- export interface ITodoCustomFieldValue {
63
- id: string;
64
- createdAt: string;
65
- updatedAt?: string;
66
-
67
- todoId: string;
68
- fieldId: string;
69
-
70
- value: any;
71
-
72
- metadata?: any;
73
- }
74
-
75
- export interface ITodoListItem {
76
- id: string;
77
- createdAt: string;
78
-
79
- todoId: string;
80
- listId: string;
81
-
82
- addedById: string;
83
-
84
- sortOrder: number;
85
- }
86
-
87
- export interface ITodoTagAssignment {
88
- id: string;
89
- createdAt: string;
90
-
91
- todoId: string;
92
- tagId: string;
93
- }
94
-
95
- export type TodoPriority = "URGENT" | "HIGH" | "NORMAL" | "LOW";
96
-
97
- export type TodoDependencyType = "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
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.128f555"
56
56
  }
@@ -1,107 +0,0 @@
1
- export interface IPhoneAdminAssignedQueue {
2
- id: string;
3
- key: string;
4
- name: string;
5
- }
6
-
7
- export interface IPhoneAdminQueueWorkingHoursDay {
8
- enabled: boolean;
9
- startTime: string;
10
- endTime: string;
11
- }
12
-
13
- export interface IPhoneAdminQueueWorkingHours {
14
- monday: IPhoneAdminQueueWorkingHoursDay;
15
- tuesday: IPhoneAdminQueueWorkingHoursDay;
16
- wednesday: IPhoneAdminQueueWorkingHoursDay;
17
- thursday: IPhoneAdminQueueWorkingHoursDay;
18
- friday: IPhoneAdminQueueWorkingHoursDay;
19
- saturday: IPhoneAdminQueueWorkingHoursDay;
20
- sunday: IPhoneAdminQueueWorkingHoursDay;
21
- }
22
-
23
- export interface IPhoneAdminPromptFields {
24
- onGreetingBusinessHoursFile: string;
25
- onGreetingAfterHoursFile: string;
26
- onQueueEntryFile: string;
27
- onHoldLoopFile: string;
28
- onQueueMessagePeriodicFile: string;
29
- onQueuePositionFile: string;
30
- onConnectingFile: string;
31
- onTransferFile: string;
32
- onRingbackFile: string;
33
- onBusyUnavailableFile: string;
34
- onNoAnswerFile: string;
35
- onAnnouncementFile: string;
36
- onGoodbyeEndCallFile: string;
37
- }
38
-
39
- export interface IPhoneAdminAgent {
40
- id: string;
41
- orgId: string;
42
- orgName?: string | null;
43
- name: string;
44
- role: "agent" | "user";
45
- extension: string;
46
- queueId: string | null;
47
- queueKey?: string | null;
48
- queueName?: string | null;
49
- assignedQueueIds: string[];
50
- assignedQueues: IPhoneAdminAssignedQueue[];
51
- sipProfileId: string | null;
52
- sipProfileName?: string | null;
53
- metadata?: Record<string, string | undefined>;
54
- localEntityId?: string;
55
- syncStatus?: string | null;
56
- syncError?: string | null;
57
- syncedAt?: string | null;
58
- createdAt: string;
59
- }
60
-
61
- export interface IPhoneAdminQueue extends IPhoneAdminPromptFields {
62
- id: string;
63
- orgId: string;
64
- key: string;
65
- name: string;
66
- sipProfileId: string | null;
67
- noAnswerTimeoutSeconds: number;
68
- workingHoursEnabled: boolean;
69
- workingHoursTimezone: string;
70
- workingHours: IPhoneAdminQueueWorkingHours;
71
- localQueueId?: string;
72
- zoneId?: string;
73
- employeeGroupId?: string;
74
- syncStatus?: string | null;
75
- syncError?: string | null;
76
- syncedAt?: string | null;
77
- createdAt: string;
78
- }
79
-
80
- export interface IPhoneAdminSystemConfig extends IPhoneAdminPromptFields {
81
- id: string;
82
- orgId: string;
83
- updatedAt: string;
84
- }
85
-
86
- export interface IPhoneAdminSummary {
87
- agentCount: number;
88
- userCount: number;
89
- queueCount: number;
90
- defaultQueueId: string | null;
91
- phoneConfigured: boolean;
92
- resolveAgentUrlConfigured: boolean;
93
- reconcileActionsEnabled?: boolean;
94
- syncedAgentCount?: number;
95
- syncedUserCount?: number;
96
- syncedQueueCount?: number;
97
- }
98
-
99
- export interface IPhoneAdminSnapshot {
100
- agents: IPhoneAdminAgent[];
101
- users: IPhoneAdminAgent[];
102
- queues: IPhoneAdminQueue[];
103
- sipProfiles?: unknown[];
104
- promptAudio?: unknown[];
105
- systemConfig?: IPhoneAdminSystemConfig | null;
106
- summary: IPhoneAdminSummary;
107
- }