@automateinc/fleet-types 1.0.88 → 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.
- package/.github/workflows/publish.yml +2 -3
- package/.nvmrc +1 -0
- package/dist/types/client-request-category-field.d.ts +2 -25
- package/dist/types/client-request-field-visibility-rule.d.ts +25 -0
- package/dist/types/index.d.ts +87 -5
- package/dist/types/phone-admin-agent.d.ts +23 -0
- package/dist/types/phone-admin-assigned-queue.d.ts +5 -0
- package/dist/types/phone-admin-prompt-fields.d.ts +15 -0
- package/dist/types/phone-admin-queue-working-hours-day.d.ts +5 -0
- package/dist/types/phone-admin-queue-working-hours.d.ts +11 -0
- package/dist/types/phone-admin-queue.d.ts +21 -0
- package/dist/types/phone-admin-snapshot.d.ts +14 -0
- package/dist/types/phone-admin-summary.d.ts +12 -0
- package/dist/types/phone-admin-system-config.d.ts +7 -0
- package/dist/types/request-category.d.ts +0 -1
- package/dist/types/structured-content-collapse-node.d.ts +10 -0
- package/dist/types/structured-content-date-range-filter-constraints.d.ts +8 -0
- package/dist/types/structured-content-date-range-filter-initial-value.d.ts +4 -0
- package/dist/types/structured-content-default-avatar-node.d.ts +8 -0
- package/dist/types/structured-content-default-avatar-value.d.ts +5 -0
- package/dist/types/structured-content-link-node.d.ts +9 -0
- package/dist/types/structured-content-link-value.d.ts +5 -0
- package/dist/types/structured-content-node-base.d.ts +7 -0
- package/dist/types/structured-content-node-layout.d.ts +14 -0
- package/dist/types/structured-content-root.d.ts +15 -0
- package/dist/types/structured-content-space-node.d.ts +7 -0
- package/dist/types/structured-content-table-boolean-column.d.ts +7 -0
- package/dist/types/structured-content-table-column-base.d.ts +6 -0
- package/dist/types/structured-content-table-column-sort-config.d.ts +8 -0
- package/dist/types/structured-content-table-date-column.d.ts +7 -0
- package/dist/types/structured-content-table-date-range-filter.d.ts +11 -0
- package/dist/types/structured-content-table-date-time-column.d.ts +7 -0
- package/dist/types/structured-content-table-default-avatar-column.d.ts +8 -0
- package/dist/types/structured-content-table-link-column.d.ts +7 -0
- package/dist/types/structured-content-table-named-column-base.d.ts +5 -0
- package/dist/types/structured-content-table-node.d.ts +13 -0
- package/dist/types/structured-content-table-number-column.d.ts +7 -0
- package/dist/types/structured-content-table-pagination.d.ts +3 -0
- package/dist/types/structured-content-table-select-filter.d.ts +8 -0
- package/dist/types/structured-content-table-tag-column.d.ts +7 -0
- package/dist/types/structured-content-table-text-column.d.ts +7 -0
- package/dist/types/structured-content-table-time-column.d.ts +7 -0
- package/dist/types/structured-content-table-toolbar-filter-base.d.ts +3 -0
- package/dist/types/structured-content-table-toolbar.d.ts +8 -0
- package/dist/types/structured-content-tag-node.d.ts +9 -0
- package/dist/types/structured-content-tag-value.d.ts +7 -0
- package/dist/types/structured-content-text-node.d.ts +9 -0
- package/dist/types/structured-content.d.ts +21 -205
- package/dist/types/todo-activity.d.ts +35 -0
- package/dist/types/todo-assignee.d.ts +8 -0
- package/dist/types/todo-checklist-item.d.ts +11 -0
- package/dist/types/todo-checklist.d.ts +10 -0
- package/dist/types/todo-comment-reaction.d.ts +7 -0
- package/dist/types/todo-comment.d.ts +12 -0
- package/dist/types/todo-custom-field-option.d.ts +5 -0
- package/dist/types/todo-custom-field-type.d.ts +26 -0
- package/dist/types/todo-custom-field-value.d.ts +11 -0
- package/dist/types/todo-custom-field.d.ts +20 -0
- package/dist/types/todo-dashboard-widget-type.d.ts +12 -0
- package/dist/types/todo-dashboard-widget.d.ts +17 -0
- package/dist/types/todo-dashboard.d.ts +12 -0
- package/dist/types/todo-dependency-type.d.ts +1 -0
- package/dist/types/todo-dependency.d.ts +10 -0
- package/dist/types/todo-doc.d.ts +17 -0
- package/dist/types/todo-document.d.ts +11 -0
- package/dist/types/todo-folder.d.ts +14 -0
- package/dist/types/todo-json-object.d.ts +5 -0
- package/dist/types/todo-json-value.d.ts +4 -0
- package/dist/types/todo-list-field-config.d.ts +11 -0
- package/dist/types/todo-list-field-entry.d.ts +13 -0
- package/dist/types/todo-list-item.d.ts +8 -0
- package/dist/types/todo-list-member.d.ts +11 -0
- package/dist/types/todo-list.d.ts +18 -0
- package/dist/types/todo-people-field-options.d.ts +4 -0
- package/dist/types/todo-priority.d.ts +1 -0
- package/dist/types/todo-recurrence-settings.d.ts +7 -0
- package/dist/types/todo-space-member-role.d.ts +1 -0
- package/dist/types/todo-space-member.d.ts +11 -0
- package/dist/types/todo-space-visibility.d.ts +1 -0
- package/dist/types/todo-space.d.ts +16 -0
- package/dist/types/todo-status.d.ts +21 -0
- package/dist/types/todo-system-field.d.ts +7 -0
- package/dist/types/todo-tag-assignment.d.ts +6 -0
- package/dist/types/todo-tag.d.ts +14 -0
- package/dist/types/todo-time-entry.d.ts +12 -0
- package/dist/types/todo-view-type.d.ts +1 -0
- package/dist/types/todo-view.d.ts +25 -0
- package/dist/types/todo-watcher.d.ts +6 -0
- package/dist/types/todo.d.ts +30 -0
- package/package.json +2 -2
- 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,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 {
|
|
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
|
-
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { TodoJsonObject } from "./todo-json-object";
|
|
2
|
+
|
|
3
|
+
export interface ITodoActivity {
|
|
4
|
+
id: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
|
|
7
|
+
todoId: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
|
|
10
|
+
action: TodoActivityAction;
|
|
11
|
+
|
|
12
|
+
changes?: TodoJsonObject;
|
|
13
|
+
|
|
14
|
+
metadata?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type TodoActivityAction =
|
|
18
|
+
| "CREATED"
|
|
19
|
+
| "UPDATED"
|
|
20
|
+
| "STATUS_CHANGED"
|
|
21
|
+
| "PRIORITY_CHANGED"
|
|
22
|
+
| "ASSIGNED"
|
|
23
|
+
| "UNASSIGNED"
|
|
24
|
+
| "COMMENTED"
|
|
25
|
+
| "DOCUMENT_ADDED"
|
|
26
|
+
| "DOCUMENT_REMOVED"
|
|
27
|
+
| "DEPENDENCY_ADDED"
|
|
28
|
+
| "DEPENDENCY_REMOVED"
|
|
29
|
+
| "TAG_ADDED"
|
|
30
|
+
| "TAG_REMOVED"
|
|
31
|
+
| "WATCHING"
|
|
32
|
+
| "UNWATCHING"
|
|
33
|
+
| "MOVED"
|
|
34
|
+
| "ARCHIVED"
|
|
35
|
+
| "RESTORED";
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +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
|
+
|
|
6
|
+
export interface ITodoCustomField {
|
|
7
|
+
id: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
updatedAt?: string;
|
|
10
|
+
deletedAt?: string;
|
|
11
|
+
name: string;
|
|
12
|
+
type: TodoCustomFieldType;
|
|
13
|
+
spaceId: string;
|
|
14
|
+
options?: ITodoCustomFieldOption[] | TodoPeopleFieldOptions;
|
|
15
|
+
defaultValue?: TodoJsonValue;
|
|
16
|
+
sortOrder: number;
|
|
17
|
+
required: boolean;
|
|
18
|
+
version: number;
|
|
19
|
+
metadata?: Record<string, unknown>;
|
|
20
|
+
}
|
|
@@ -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,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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ITodoFolder {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
deletedAt?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
spaceId: string;
|
|
10
|
+
parentId?: string;
|
|
11
|
+
sortOrder: number;
|
|
12
|
+
version: number;
|
|
13
|
+
metadata?: Record<string, unknown>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ITodoListFieldEntry } from "./todo-list-field-entry";
|
|
2
|
+
|
|
3
|
+
export interface ITodoListFieldConfig {
|
|
4
|
+
id: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt?: string;
|
|
7
|
+
listId: string;
|
|
8
|
+
fields: ITodoListFieldEntry[];
|
|
9
|
+
version: number;
|
|
10
|
+
configVersion: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TodoJsonValue } from "./todo-json-value";
|
|
2
|
+
|
|
3
|
+
export interface ITodoListFieldEntry {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
showInList: boolean;
|
|
9
|
+
order: number;
|
|
10
|
+
type: "system" | "custom";
|
|
11
|
+
fieldId?: string;
|
|
12
|
+
config?: Record<string, TodoJsonValue>;
|
|
13
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ITodoList {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
deletedAt?: string;
|
|
6
|
+
|
|
7
|
+
name: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
|
|
11
|
+
spaceId: string;
|
|
12
|
+
folderId?: string;
|
|
13
|
+
|
|
14
|
+
sortOrder: number;
|
|
15
|
+
version: number;
|
|
16
|
+
|
|
17
|
+
metadata?: Record<string, unknown>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TodoPriority = "URGENT" | "HIGH" | "NORMAL" | "LOW";
|
|
@@ -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";
|