@automateinc/fleet-types 1.0.89-dev.2c2e88a → 1.0.89-dev.74b6ebd

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 (89) hide show
  1. package/.nvmrc +1 -0
  2. package/dist/types/client-request-category-field.d.ts +2 -25
  3. package/dist/types/client-request-field-visibility-rule.d.ts +25 -0
  4. package/dist/types/index.d.ts +85 -16
  5. package/dist/types/notification.d.ts +1 -0
  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 -40
  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 +4 -43
  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 +2 -5
  73. package/dist/types/todo-people-field-options.d.ts +4 -0
  74. package/dist/types/todo-recurrence-settings.d.ts +7 -0
  75. package/dist/types/todo-space-member-role.d.ts +1 -0
  76. package/dist/types/todo-space-member.d.ts +11 -0
  77. package/dist/types/todo-space-visibility.d.ts +1 -0
  78. package/dist/types/todo-space.d.ts +5 -33
  79. package/dist/types/todo-status.d.ts +3 -2
  80. package/dist/types/todo-system-field.d.ts +7 -0
  81. package/dist/types/todo-tag-assignment.d.ts +6 -0
  82. package/dist/types/todo-tag.d.ts +2 -1
  83. package/dist/types/todo-time-entry.d.ts +12 -0
  84. package/dist/types/todo-view-type.d.ts +1 -0
  85. package/dist/types/todo-view.d.ts +10 -72
  86. package/dist/types/todo-watcher.d.ts +6 -0
  87. package/dist/types/todo.d.ts +5 -84
  88. package/package.json +1 -1
  89. package/dist/types/phone-admin.d.ts +0 -107
@@ -0,0 +1,9 @@
1
+ import type { IStructuredContentNodeBase } from "./structured-content-node-base";
2
+ import type { StructuredContentTagTone } from "./structured-content";
3
+
4
+ export interface IStructuredContentTagNode extends IStructuredContentNodeBase {
5
+ config?: {
6
+ tone?: StructuredContentTagTone;
7
+ };
8
+ type: "TAG";
9
+ }
@@ -0,0 +1,7 @@
1
+ import type { StructuredContentTagTone } from "./structured-content";
2
+
3
+ export interface IStructuredContentTagValue {
4
+ color?: string;
5
+ label: string;
6
+ tone?: StructuredContentTagTone;
7
+ }
@@ -0,0 +1,9 @@
1
+ import type { IStructuredContentNodeBase } from "./structured-content-node-base";
2
+ import type { StructuredContentTextVariant } from "./structured-content";
3
+
4
+ export interface IStructuredContentTextNode extends IStructuredContentNodeBase {
5
+ config?: {
6
+ variant?: StructuredContentTextVariant;
7
+ };
8
+ type: "TEXT";
9
+ }
@@ -1,4 +1,24 @@
1
- import { IModel } from "./models";
1
+ import type { IStructuredContentTagValue } from "./structured-content-tag-value";
2
+ import type { IStructuredContentDefaultAvatarValue } from "./structured-content-default-avatar-value";
3
+ import type { IStructuredContentTableSelectFilter } from "./structured-content-table-select-filter";
4
+ import type { IStructuredContentTableDateRangeFilter } from "./structured-content-table-date-range-filter";
5
+ import type { IStructuredContentTableDefaultAvatarColumn } from "./structured-content-table-default-avatar-column";
6
+ import type { IStructuredContentTableBooleanColumn } from "./structured-content-table-boolean-column";
7
+ import type { IStructuredContentTableDateColumn } from "./structured-content-table-date-column";
8
+ import type { IStructuredContentTableDateTimeColumn } from "./structured-content-table-date-time-column";
9
+ import type { IStructuredContentTableLinkColumn } from "./structured-content-table-link-column";
10
+ import type { IStructuredContentTableNumberColumn } from "./structured-content-table-number-column";
11
+ import type { IStructuredContentTableTagColumn } from "./structured-content-table-tag-column";
12
+ import type { IStructuredContentTableTextColumn } from "./structured-content-table-text-column";
13
+ import type { IStructuredContentTableTimeColumn } from "./structured-content-table-time-column";
14
+ import type { IStructuredContentCollapseNode } from "./structured-content-collapse-node";
15
+ import type { IStructuredContentDefaultAvatarNode } from "./structured-content-default-avatar-node";
16
+ import type { IStructuredContentSpaceNode } from "./structured-content-space-node";
17
+ import type { IStructuredContentTextNode } from "./structured-content-text-node";
18
+ import type { IStructuredContentTagNode } from "./structured-content-tag-node";
19
+ import type { IStructuredContentLinkNode } from "./structured-content-link-node";
20
+ import type { IStructuredContentTableNode } from "./structured-content-table-node";
21
+ import type { IStructuredContentLinkValue } from "./structured-content-link-value";
2
22
 
3
23
  export type StructuredContentTextVariant = "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "PARAGRAPH" | "TEXT";
4
24
  export type StructuredContentLinkVariant = "BUTTON" | "LINK";
@@ -37,141 +57,12 @@ export type StructuredContentTagTone =
37
57
  | "warning"
38
58
  | "yellow";
39
59
 
40
- export interface IStructuredContentTagValue {
41
- color?: string;
42
- label: string;
43
- tone?: StructuredContentTagTone;
44
- }
45
-
46
- export interface IStructuredContentDefaultAvatarValue {
47
- inactive?: boolean;
48
- onLeave?: boolean;
49
- src: string;
50
- }
51
-
52
- export interface IStructuredContentNodeLayout {
53
- align?: StructuredContentLayoutAlign;
54
- gap?: StructuredContentLayoutSpacing;
55
- hidden?: boolean;
56
- marginBottom?: StructuredContentLayoutSpacing;
57
- marginTop?: StructuredContentLayoutSpacing;
58
- paddingX?: StructuredContentLayoutSpacing;
59
- paddingY?: StructuredContentLayoutSpacing;
60
- width?: StructuredContentLayoutWidth;
61
- }
62
-
63
- export interface IStructuredContentTableToolbarFilterBase {
64
- columnKey: string;
65
- }
66
-
67
- export interface IStructuredContentTableSelectFilter extends IStructuredContentTableToolbarFilterBase {
68
- config?: {
69
- initialValue?: string;
70
- };
71
- type?: "SELECT";
72
- }
73
-
74
- export interface IStructuredContentDateRangeFilterConstraints {
75
- disableFuture?: boolean;
76
- disablePast?: boolean;
77
- disabledDates?: string[];
78
- disabledWeekdays?: number[];
79
- maxDate?: string;
80
- minDate?: string;
81
- }
82
-
83
- export interface IStructuredContentDateRangeFilterInitialValue {
84
- endDate?: string;
85
- startDate?: string;
86
- }
87
-
88
- export interface IStructuredContentTableDateRangeFilter extends IStructuredContentTableToolbarFilterBase {
89
- config?: {
90
- constraints?: IStructuredContentDateRangeFilterConstraints;
91
- initialValue?: IStructuredContentDateRangeFilterInitialValue;
92
- };
93
- type: "DATE_RANGE";
94
- }
95
-
96
60
  export type IStructuredContentTableToolbarFilter =
97
61
  | IStructuredContentTableDateRangeFilter
98
62
  | IStructuredContentTableSelectFilter;
99
63
 
100
- export interface IStructuredContentTableToolbar {
101
- advancedFilters?: boolean;
102
- exportCsv?: boolean;
103
- filters?: IStructuredContentTableToolbarFilter[];
104
- search?: boolean;
105
- }
106
-
107
64
  export type StructuredContentTableSortOrder = "asc" | "desc";
108
65
 
109
- export interface IStructuredContentTableColumnSortConfig {
110
- sortOrder?: StructuredContentTableSortOrder;
111
- sortType?: StructuredContentTableSortType;
112
- sortable?: boolean;
113
- }
114
-
115
- export interface IStructuredContentTablePagination {
116
- pageSize?: number;
117
- }
118
-
119
- export interface IStructuredContentTableColumnBase {
120
- id: string;
121
- type: StructuredContentTableColumnType;
122
- }
123
-
124
- export interface IStructuredContentTableNamedColumnBase extends IStructuredContentTableColumnBase {
125
- name: string;
126
- }
127
-
128
- export interface IStructuredContentTableDefaultAvatarColumn extends IStructuredContentTableColumnBase {
129
- config?: {
130
- size?: number;
131
- };
132
- type: "DEFAULT_AVATAR";
133
- }
134
-
135
- export interface IStructuredContentTableBooleanColumn extends IStructuredContentTableNamedColumnBase {
136
- config?: IStructuredContentTableColumnSortConfig;
137
- type: "BOOLEAN";
138
- }
139
-
140
- export interface IStructuredContentTableDateColumn extends IStructuredContentTableNamedColumnBase {
141
- config?: IStructuredContentTableColumnSortConfig;
142
- type: "DATE";
143
- }
144
-
145
- export interface IStructuredContentTableDateTimeColumn extends IStructuredContentTableNamedColumnBase {
146
- config?: IStructuredContentTableColumnSortConfig;
147
- type: "DATETIME";
148
- }
149
-
150
- export interface IStructuredContentTableLinkColumn extends IStructuredContentTableNamedColumnBase {
151
- config?: IStructuredContentTableColumnSortConfig;
152
- type: "LINK";
153
- }
154
-
155
- export interface IStructuredContentTableNumberColumn extends IStructuredContentTableNamedColumnBase {
156
- config?: IStructuredContentTableColumnSortConfig;
157
- type: "NUMBER";
158
- }
159
-
160
- export interface IStructuredContentTableTagColumn extends IStructuredContentTableNamedColumnBase {
161
- config?: IStructuredContentTableColumnSortConfig;
162
- type: "TAG";
163
- }
164
-
165
- export interface IStructuredContentTableTextColumn extends IStructuredContentTableNamedColumnBase {
166
- config?: IStructuredContentTableColumnSortConfig;
167
- type: "TEXT";
168
- }
169
-
170
- export interface IStructuredContentTableTimeColumn extends IStructuredContentTableNamedColumnBase {
171
- config?: IStructuredContentTableColumnSortConfig;
172
- type: "TIME";
173
- }
174
-
175
66
  export type IStructuredContentTableColumn =
176
67
  | IStructuredContentTableBooleanColumn
177
68
  | IStructuredContentTableDateColumn
@@ -183,62 +74,6 @@ export type IStructuredContentTableColumn =
183
74
  | IStructuredContentTableTextColumn
184
75
  | IStructuredContentTableTimeColumn;
185
76
 
186
- export interface IStructuredContentNodeBase {
187
- id: string;
188
- layout?: IStructuredContentNodeLayout;
189
- type: "COLLAPSE" | "DEFAULT_AVATAR" | "LINK" | "SPACE" | "TABLE" | "TAG" | "TEXT";
190
- }
191
-
192
- export interface IStructuredContentCollapseNode extends IStructuredContentNodeBase {
193
- children?: IStructuredContentNode[];
194
- config?: {
195
- title?: string;
196
- };
197
- type: "COLLAPSE";
198
- }
199
-
200
- export interface IStructuredContentDefaultAvatarNode extends IStructuredContentNodeBase {
201
- config?: {
202
- size?: number;
203
- };
204
- type: "DEFAULT_AVATAR";
205
- }
206
-
207
- export interface IStructuredContentSpaceNode extends IStructuredContentNodeBase {
208
- children?: IStructuredContentNode[];
209
- type: "SPACE";
210
- }
211
-
212
- export interface IStructuredContentTextNode extends IStructuredContentNodeBase {
213
- config?: {
214
- variant?: StructuredContentTextVariant;
215
- };
216
- type: "TEXT";
217
- }
218
-
219
- export interface IStructuredContentTagNode extends IStructuredContentNodeBase {
220
- config?: {
221
- tone?: StructuredContentTagTone;
222
- };
223
- type: "TAG";
224
- }
225
-
226
- export interface IStructuredContentLinkNode extends IStructuredContentNodeBase {
227
- config?: {
228
- variant?: StructuredContentLinkVariant;
229
- };
230
- type: "LINK";
231
- }
232
-
233
- export interface IStructuredContentTableNode extends IStructuredContentNodeBase {
234
- config?: {
235
- columns?: IStructuredContentTableColumn[];
236
- pagination?: IStructuredContentTablePagination;
237
- toolbar?: IStructuredContentTableToolbar;
238
- };
239
- type: "TABLE";
240
- }
241
-
242
77
  export type IStructuredContentNode =
243
78
  | IStructuredContentCollapseNode
244
79
  | IStructuredContentDefaultAvatarNode
@@ -248,12 +83,6 @@ export type IStructuredContentNode =
248
83
  | IStructuredContentTableNode
249
84
  | IStructuredContentTextNode;
250
85
 
251
- export interface IStructuredContentLinkValue {
252
- href: string;
253
- target?: string;
254
- title: string;
255
- }
256
-
257
86
  export type StructuredContentPrimitiveValue = boolean | number | string | null;
258
87
  export type StructuredContentAvatarValue = IStructuredContentDefaultAvatarValue;
259
88
  export type StructuredContentTaggableValue = IStructuredContentTagValue | StructuredContentPrimitiveValue;
@@ -268,16 +97,3 @@ export type StructuredContentDataValue =
268
97
  | IStructuredContentTableRow[]
269
98
  | StructuredContentPrimitiveValue;
270
99
  export type IStructuredContentData = Record<string, StructuredContentDataValue>;
271
-
272
- export interface IStructuredContent {
273
- createdAt: string;
274
- data: IStructuredContentData;
275
- id: string;
276
- key: string;
277
- metadata?: Record<string, any>;
278
- rawData: unknown;
279
- relation: IModel;
280
- relationId: string;
281
- structure: IStructuredContentNode[];
282
- updatedAt?: string;
283
- }
@@ -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?: any;
12
+ changes?: TodoJsonObject;
11
13
 
12
- metadata?: any;
14
+ metadata?: Record<string, unknown>;
13
15
  }
14
16
 
15
17
  export type TodoActivityAction =
@@ -0,0 +1,8 @@
1
+ export interface ITodoAssignee {
2
+ id: string;
3
+ createdAt: string;
4
+ todoId: string;
5
+ userId?: string;
6
+ employeeId?: string;
7
+ metadata?: Record<string, unknown>;
8
+ }
@@ -0,0 +1,11 @@
1
+ export interface ITodoChecklistItem {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+ text: string;
6
+ isChecked: boolean;
7
+ checklistId: string;
8
+ sortOrder: number;
9
+ version: number;
10
+ metadata?: Record<string, unknown>;
11
+ }
@@ -0,0 +1,10 @@
1
+ export interface ITodoChecklist {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+ name: string;
6
+ todoId: string;
7
+ sortOrder: number;
8
+ version: number;
9
+ metadata?: Record<string, unknown>;
10
+ }
@@ -0,0 +1,7 @@
1
+ export interface ITodoCommentReaction {
2
+ id: string;
3
+ createdAt: string;
4
+ commentId: string;
5
+ userId: string;
6
+ emoji: string;
7
+ }
@@ -3,23 +3,10 @@ export interface ITodoComment {
3
3
  createdAt: string;
4
4
  updatedAt?: string;
5
5
  deletedAt?: string;
6
-
6
+ version: number;
7
7
  body: string;
8
-
9
8
  todoId: string;
10
9
  userId: string;
11
-
12
10
  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;
11
+ metadata?: Record<string, unknown>;
25
12
  }
@@ -0,0 +1,5 @@
1
+ export interface ITodoCustomFieldOption {
2
+ label: string;
3
+ color?: string;
4
+ value: string;
5
+ }
@@ -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,20 @@
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
+ import type { TodoPeopleFieldOptions } from "./todo-people-field-options";
5
+
1
6
  export interface ITodoCustomField {
2
7
  id: string;
3
8
  createdAt: string;
4
9
  updatedAt?: string;
5
10
  deletedAt?: string;
6
-
7
11
  name: string;
8
12
  type: TodoCustomFieldType;
9
-
10
13
  spaceId: string;
11
-
12
- options?: ITodoCustomFieldOption[];
13
- defaultValue?: any;
14
-
14
+ options?: ITodoCustomFieldOption[] | TodoPeopleFieldOptions;
15
+ defaultValue?: TodoJsonValue;
15
16
  sortOrder: number;
16
17
  required: boolean;
17
-
18
- metadata?: any;
19
- }
20
-
21
- export interface ITodoCustomFieldOption {
22
- label: string;
23
- color?: string;
24
- value: string;
18
+ version: number;
19
+ metadata?: Record<string, unknown>;
25
20
  }
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,17 @@
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
+ version: number;
16
+ configVersion: number;
17
+ }
@@ -0,0 +1,12 @@
1
+ import type { TodoJsonObject } from "./todo-json-object";
2
+
3
+ export interface ITodoDashboard {
4
+ id: string;
5
+ createdAt: string;
6
+ updatedAt?: string;
7
+ spaceId: string;
8
+ listId?: string;
9
+ config: TodoJsonObject;
10
+ version: number;
11
+ configVersion: number;
12
+ }
@@ -0,0 +1 @@
1
+ export type TodoDependencyType = "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
@@ -0,0 +1,10 @@
1
+ import type { TodoDependencyType } from "./todo-dependency-type";
2
+
3
+ export interface ITodoDependency {
4
+ id: string;
5
+ createdAt: string;
6
+ todoId: string;
7
+ dependsOnId: string;
8
+ type: TodoDependencyType;
9
+ createdById: string;
10
+ }
@@ -0,0 +1,17 @@
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
+ version: number;
15
+ contentVersion: number;
16
+ metadata?: Record<string, unknown>;
17
+ }
@@ -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
  }
@@ -3,64 +3,12 @@ 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
+ version: number;
13
+ metadata?: Record<string, unknown>;
66
14
  }
@@ -0,0 +1,5 @@
1
+ import type { TodoJsonValue } from "./todo-json-value";
2
+
3
+ export interface TodoJsonObject {
4
+ [key: string]: TodoJsonValue;
5
+ }
@@ -0,0 +1,4 @@
1
+ import type { TodoJsonObject } from "./todo-json-object";
2
+
3
+ export type TodoJsonPrimitive = boolean | number | string | null;
4
+ export type TodoJsonValue = TodoJsonPrimitive | TodoJsonObject | TodoJsonValue[];