@automateinc/fleet-types 1.0.89-dev.128f555 → 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/dist/types/client-request-category-field.d.ts +25 -2
- package/dist/types/index.d.ts +17 -86
- package/dist/types/phone-admin.d.ts +107 -0
- package/dist/types/structured-content.d.ts +205 -21
- package/dist/types/todo-activity.d.ts +1 -1
- package/dist/types/todo-comment.d.ts +14 -1
- package/dist/types/todo-custom-field.d.ts +40 -7
- package/dist/types/todo-folder.d.ts +54 -1
- package/dist/types/{todo-json-value.d.ts → todo-json.d.ts} +3 -2
- package/dist/types/todo-list-field-config.d.ts +44 -3
- package/dist/types/todo-list.d.ts +0 -1
- package/dist/types/todo-space.d.ts +33 -3
- package/dist/types/todo-status.d.ts +0 -1
- package/dist/types/todo-tag.d.ts +0 -1
- package/dist/types/todo-view.d.ts +66 -4
- package/dist/types/todo.d.ts +87 -3
- package/package.json +1 -1
- package/dist/types/client-request-field-visibility-rule.d.ts +0 -25
- package/dist/types/phone-admin-agent.d.ts +0 -23
- package/dist/types/phone-admin-assigned-queue.d.ts +0 -5
- package/dist/types/phone-admin-prompt-fields.d.ts +0 -15
- package/dist/types/phone-admin-queue-working-hours-day.d.ts +0 -5
- package/dist/types/phone-admin-queue-working-hours.d.ts +0 -11
- package/dist/types/phone-admin-queue.d.ts +0 -21
- package/dist/types/phone-admin-snapshot.d.ts +0 -14
- package/dist/types/phone-admin-summary.d.ts +0 -12
- package/dist/types/phone-admin-system-config.d.ts +0 -7
- package/dist/types/structured-content-collapse-node.d.ts +0 -10
- package/dist/types/structured-content-date-range-filter-constraints.d.ts +0 -8
- package/dist/types/structured-content-date-range-filter-initial-value.d.ts +0 -4
- package/dist/types/structured-content-default-avatar-node.d.ts +0 -8
- package/dist/types/structured-content-default-avatar-value.d.ts +0 -5
- package/dist/types/structured-content-link-node.d.ts +0 -9
- package/dist/types/structured-content-link-value.d.ts +0 -5
- package/dist/types/structured-content-node-base.d.ts +0 -7
- package/dist/types/structured-content-node-layout.d.ts +0 -14
- package/dist/types/structured-content-root.d.ts +0 -15
- package/dist/types/structured-content-space-node.d.ts +0 -7
- package/dist/types/structured-content-table-boolean-column.d.ts +0 -7
- package/dist/types/structured-content-table-column-base.d.ts +0 -6
- package/dist/types/structured-content-table-column-sort-config.d.ts +0 -8
- package/dist/types/structured-content-table-date-column.d.ts +0 -7
- package/dist/types/structured-content-table-date-range-filter.d.ts +0 -11
- package/dist/types/structured-content-table-date-time-column.d.ts +0 -7
- package/dist/types/structured-content-table-default-avatar-column.d.ts +0 -8
- package/dist/types/structured-content-table-link-column.d.ts +0 -7
- package/dist/types/structured-content-table-named-column-base.d.ts +0 -5
- package/dist/types/structured-content-table-node.d.ts +0 -13
- package/dist/types/structured-content-table-number-column.d.ts +0 -7
- package/dist/types/structured-content-table-pagination.d.ts +0 -3
- package/dist/types/structured-content-table-select-filter.d.ts +0 -8
- package/dist/types/structured-content-table-tag-column.d.ts +0 -7
- package/dist/types/structured-content-table-text-column.d.ts +0 -7
- package/dist/types/structured-content-table-time-column.d.ts +0 -7
- package/dist/types/structured-content-table-toolbar-filter-base.d.ts +0 -3
- package/dist/types/structured-content-table-toolbar.d.ts +0 -8
- package/dist/types/structured-content-tag-node.d.ts +0 -9
- package/dist/types/structured-content-tag-value.d.ts +0 -7
- package/dist/types/structured-content-text-node.d.ts +0 -9
- package/dist/types/todo-assignee.d.ts +0 -8
- package/dist/types/todo-checklist-item.d.ts +0 -11
- package/dist/types/todo-checklist.d.ts +0 -10
- package/dist/types/todo-comment-reaction.d.ts +0 -7
- package/dist/types/todo-custom-field-option.d.ts +0 -5
- package/dist/types/todo-custom-field-type.d.ts +0 -26
- package/dist/types/todo-custom-field-value.d.ts +0 -11
- package/dist/types/todo-dashboard-widget-type.d.ts +0 -12
- package/dist/types/todo-dashboard-widget.d.ts +0 -17
- package/dist/types/todo-dashboard.d.ts +0 -12
- package/dist/types/todo-dependency-type.d.ts +0 -1
- package/dist/types/todo-dependency.d.ts +0 -10
- package/dist/types/todo-doc.d.ts +0 -17
- package/dist/types/todo-json-object.d.ts +0 -5
- package/dist/types/todo-list-field-entry.d.ts +0 -13
- package/dist/types/todo-list-item.d.ts +0 -8
- package/dist/types/todo-list-member.d.ts +0 -11
- package/dist/types/todo-people-field-options.d.ts +0 -4
- package/dist/types/todo-priority.d.ts +0 -1
- package/dist/types/todo-recurrence-settings.d.ts +0 -7
- package/dist/types/todo-space-member-role.d.ts +0 -1
- package/dist/types/todo-space-member.d.ts +0 -11
- package/dist/types/todo-space-visibility.d.ts +0 -1
- package/dist/types/todo-system-field.d.ts +0 -7
- package/dist/types/todo-tag-assignment.d.ts +0 -6
- package/dist/types/todo-time-entry.d.ts +0 -12
- package/dist/types/todo-view-type.d.ts +0 -1
- package/dist/types/todo-watcher.d.ts +0 -6
|
@@ -1,5 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { IModel } from "./models";
|
|
2
|
+
|
|
3
|
+
export interface IClientRequestFieldVisibilityRule {
|
|
4
|
+
id: string;
|
|
5
|
+
action: "SHOW" | "HIDE";
|
|
6
|
+
operator: "EQUALS" | "NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "IS_EMPTY" | "IS_NOT_EMPTY";
|
|
7
|
+
sourceFieldId: string;
|
|
8
|
+
targetFieldId: string;
|
|
9
|
+
order: number;
|
|
10
|
+
compareValueString?: string;
|
|
11
|
+
compareValueNumber?: number;
|
|
12
|
+
compareValueBoolean?: boolean;
|
|
13
|
+
compareValueDate?: string;
|
|
14
|
+
metadata?: any;
|
|
15
|
+
sourceField?: {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
type?: IClientRequestCategoryField["type"];
|
|
19
|
+
};
|
|
20
|
+
targetField?: {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
type?: IClientRequestCategoryField["type"];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
3
26
|
|
|
4
27
|
export interface IClientRequestCategoryField {
|
|
5
28
|
id: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -56,9 +56,9 @@ export * from "./call-entity";
|
|
|
56
56
|
export * from "./call-log";
|
|
57
57
|
export * from "./ceiling";
|
|
58
58
|
export * from "./client";
|
|
59
|
+
export * from "./client-class";
|
|
59
60
|
export * from "./client-checklist-definition";
|
|
60
61
|
export * from "./client-checklist-item";
|
|
61
|
-
export * from "./client-class";
|
|
62
62
|
export * from "./client-comment";
|
|
63
63
|
export * from "./client-comment-reaction";
|
|
64
64
|
export * from "./client-contact";
|
|
@@ -76,16 +76,15 @@ export * from "./client-request-action";
|
|
|
76
76
|
export * from "./client-request-action-execution";
|
|
77
77
|
export * from "./client-request-category";
|
|
78
78
|
export * from "./client-request-category-field";
|
|
79
|
-
export * from "./client-request-field-visibility-rule";
|
|
80
79
|
export * from "./client-request-type";
|
|
81
80
|
export * from "./client-request-value";
|
|
82
81
|
export * from "./client-request-verification";
|
|
83
82
|
export * from "./client-site";
|
|
84
83
|
export * from "./client-status";
|
|
85
84
|
export * from "./client-status-check";
|
|
86
|
-
export * from "./client-status-check-requirement";
|
|
87
85
|
export * from "./client-status-check-requirement-condition";
|
|
88
86
|
export * from "./client-status-check-requirement-condition-group";
|
|
87
|
+
export * from "./client-status-check-requirement";
|
|
89
88
|
export * from "./cluster-patrol";
|
|
90
89
|
export * from "./cluster-patrol-point";
|
|
91
90
|
export * from "./company";
|
|
@@ -95,13 +94,13 @@ export * from "./contact";
|
|
|
95
94
|
export * from "./contract";
|
|
96
95
|
export * from "./contract-allowance";
|
|
97
96
|
export * from "./contract-benefit";
|
|
98
|
-
export * from "./contract-cost";
|
|
99
97
|
export * from "./contract-deduction";
|
|
98
|
+
export * from "./contract-cost";
|
|
100
99
|
export * from "./contract-snapshot";
|
|
101
100
|
export * from "./contract-snapshot-allowance";
|
|
102
101
|
export * from "./contract-snapshot-benefit";
|
|
103
|
-
export * from "./contract-snapshot-cost";
|
|
104
102
|
export * from "./contract-snapshot-deduction";
|
|
103
|
+
export * from "./contract-snapshot-cost";
|
|
105
104
|
export * from "./coords";
|
|
106
105
|
export * from "./day-of-week";
|
|
107
106
|
export * from "./dispatch";
|
|
@@ -145,15 +144,7 @@ export * from "./payment-cycle-document";
|
|
|
145
144
|
export * from "./payroll-config";
|
|
146
145
|
export * from "./permission";
|
|
147
146
|
export * from "./permission-group";
|
|
148
|
-
export * from "./phone-admin
|
|
149
|
-
export * from "./phone-admin-assigned-queue";
|
|
150
|
-
export * from "./phone-admin-prompt-fields";
|
|
151
|
-
export * from "./phone-admin-queue";
|
|
152
|
-
export * from "./phone-admin-queue-working-hours";
|
|
153
|
-
export * from "./phone-admin-queue-working-hours-day";
|
|
154
|
-
export * from "./phone-admin-snapshot";
|
|
155
|
-
export * from "./phone-admin-summary";
|
|
156
|
-
export * from "./phone-admin-system-config";
|
|
147
|
+
export * from "./phone-admin";
|
|
157
148
|
export * from "./phone-line";
|
|
158
149
|
export * from "./phone-line-commitment";
|
|
159
150
|
export * from "./phone-line-contract";
|
|
@@ -200,94 +191,34 @@ export * from "./shift-type";
|
|
|
200
191
|
export * from "./signing-mode";
|
|
201
192
|
export * from "./standard-operating-procedure";
|
|
202
193
|
export * from "./structured-content";
|
|
203
|
-
export * from "./structured-content-collapse-node";
|
|
204
|
-
export * from "./structured-content-date-range-filter-constraints";
|
|
205
|
-
export * from "./structured-content-date-range-filter-initial-value";
|
|
206
|
-
export * from "./structured-content-default-avatar-node";
|
|
207
|
-
export * from "./structured-content-default-avatar-value";
|
|
208
|
-
export * from "./structured-content-link-node";
|
|
209
|
-
export * from "./structured-content-link-value";
|
|
210
|
-
export * from "./structured-content-node-base";
|
|
211
|
-
export * from "./structured-content-node-layout";
|
|
212
|
-
export * from "./structured-content-root";
|
|
213
|
-
export * from "./structured-content-space-node";
|
|
214
|
-
export * from "./structured-content-table-boolean-column";
|
|
215
|
-
export * from "./structured-content-table-column-base";
|
|
216
|
-
export * from "./structured-content-table-column-sort-config";
|
|
217
|
-
export * from "./structured-content-table-date-column";
|
|
218
|
-
export * from "./structured-content-table-date-range-filter";
|
|
219
|
-
export * from "./structured-content-table-date-time-column";
|
|
220
|
-
export * from "./structured-content-table-default-avatar-column";
|
|
221
|
-
export * from "./structured-content-table-link-column";
|
|
222
|
-
export * from "./structured-content-table-named-column-base";
|
|
223
|
-
export * from "./structured-content-table-node";
|
|
224
|
-
export * from "./structured-content-table-number-column";
|
|
225
|
-
export * from "./structured-content-table-pagination";
|
|
226
|
-
export * from "./structured-content-table-select-filter";
|
|
227
|
-
export * from "./structured-content-table-tag-column";
|
|
228
|
-
export * from "./structured-content-table-text-column";
|
|
229
|
-
export * from "./structured-content-table-time-column";
|
|
230
|
-
export * from "./structured-content-table-toolbar";
|
|
231
|
-
export * from "./structured-content-table-toolbar-filter-base";
|
|
232
|
-
export * from "./structured-content-tag-node";
|
|
233
|
-
export * from "./structured-content-tag-value";
|
|
234
|
-
export * from "./structured-content-text-node";
|
|
235
194
|
export * from "./tag";
|
|
236
195
|
export * from "./tag-color";
|
|
237
196
|
export * from "./team";
|
|
197
|
+
export * from "./unit";
|
|
198
|
+
export * from "./unit-room";
|
|
199
|
+
export * from "./user";
|
|
200
|
+
export * from "./vehicle";
|
|
201
|
+
export * from "./vehicle-contract";
|
|
202
|
+
export * from "./vehicle-contract-payment";
|
|
203
|
+
export * from "./vehicle-insurance";
|
|
204
|
+
export * from "./vehicle-make";
|
|
205
|
+
export * from "./vehicle-model";
|
|
206
|
+
export * from "./vehicle-registration";
|
|
207
|
+
export * from "./vehicle-status";
|
|
238
208
|
export * from "./todo";
|
|
239
209
|
export * from "./todo-activity";
|
|
240
|
-
export * from "./todo-assignee";
|
|
241
|
-
export * from "./todo-checklist";
|
|
242
|
-
export * from "./todo-checklist-item";
|
|
243
210
|
export * from "./todo-comment";
|
|
244
|
-
export * from "./todo-comment-reaction";
|
|
245
211
|
export * from "./todo-custom-field";
|
|
246
|
-
export * from "./todo-custom-field-option";
|
|
247
|
-
export * from "./todo-custom-field-type";
|
|
248
|
-
export * from "./todo-custom-field-value";
|
|
249
|
-
export * from "./todo-dashboard";
|
|
250
|
-
export * from "./todo-dashboard-widget";
|
|
251
|
-
export * from "./todo-dashboard-widget-type";
|
|
252
|
-
export * from "./todo-dependency";
|
|
253
|
-
export * from "./todo-dependency-type";
|
|
254
|
-
export * from "./todo-doc";
|
|
255
212
|
export * from "./todo-document";
|
|
256
213
|
export * from "./todo-folder";
|
|
257
|
-
export * from "./todo-json-object";
|
|
258
|
-
export * from "./todo-json-value";
|
|
259
214
|
export * from "./todo-list";
|
|
260
215
|
export * from "./todo-list-field-config";
|
|
261
|
-
export * from "./todo-list-field-entry";
|
|
262
|
-
export * from "./todo-list-item";
|
|
263
|
-
export * from "./todo-list-member";
|
|
264
|
-
export * from "./todo-people-field-options";
|
|
265
|
-
export * from "./todo-priority";
|
|
266
|
-
export * from "./todo-recurrence-settings";
|
|
267
216
|
export * from "./todo-space";
|
|
268
|
-
export * from "./todo-space-member";
|
|
269
|
-
export * from "./todo-space-member-role";
|
|
270
|
-
export * from "./todo-space-visibility";
|
|
271
217
|
export * from "./todo-status";
|
|
272
|
-
export * from "./todo-system-field";
|
|
273
218
|
export * from "./todo-tag";
|
|
274
|
-
export * from "./todo-tag-assignment";
|
|
275
|
-
export * from "./todo-time-entry";
|
|
276
219
|
export * from "./todo-view";
|
|
277
|
-
export * from "./todo-view-type";
|
|
278
|
-
export * from "./todo-watcher";
|
|
279
|
-
export * from "./unit";
|
|
280
|
-
export * from "./unit-room";
|
|
281
|
-
export * from "./user";
|
|
282
|
-
export * from "./vehicle";
|
|
283
|
-
export * from "./vehicle-contract";
|
|
284
|
-
export * from "./vehicle-contract-payment";
|
|
285
|
-
export * from "./vehicle-insurance";
|
|
286
|
-
export * from "./vehicle-make";
|
|
287
|
-
export * from "./vehicle-model";
|
|
288
|
-
export * from "./vehicle-registration";
|
|
289
|
-
export * from "./vehicle-status";
|
|
290
220
|
export * from "./vendor";
|
|
291
221
|
export * from "./vendor-contact";
|
|
292
222
|
export * from "./zone";
|
|
293
223
|
export * from "./zone-supervisor";
|
|
224
|
+
export * from "./todo-json";
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
}
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import
|
|
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";
|
|
1
|
+
import { IModel } from "./models";
|
|
22
2
|
|
|
23
3
|
export type StructuredContentTextVariant = "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "PARAGRAPH" | "TEXT";
|
|
24
4
|
export type StructuredContentLinkVariant = "BUTTON" | "LINK";
|
|
@@ -57,12 +37,141 @@ export type StructuredContentTagTone =
|
|
|
57
37
|
| "warning"
|
|
58
38
|
| "yellow";
|
|
59
39
|
|
|
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
|
+
|
|
60
96
|
export type IStructuredContentTableToolbarFilter =
|
|
61
97
|
| IStructuredContentTableDateRangeFilter
|
|
62
98
|
| IStructuredContentTableSelectFilter;
|
|
63
99
|
|
|
100
|
+
export interface IStructuredContentTableToolbar {
|
|
101
|
+
advancedFilters?: boolean;
|
|
102
|
+
exportCsv?: boolean;
|
|
103
|
+
filters?: IStructuredContentTableToolbarFilter[];
|
|
104
|
+
search?: boolean;
|
|
105
|
+
}
|
|
106
|
+
|
|
64
107
|
export type StructuredContentTableSortOrder = "asc" | "desc";
|
|
65
108
|
|
|
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
|
+
|
|
66
175
|
export type IStructuredContentTableColumn =
|
|
67
176
|
| IStructuredContentTableBooleanColumn
|
|
68
177
|
| IStructuredContentTableDateColumn
|
|
@@ -74,6 +183,62 @@ export type IStructuredContentTableColumn =
|
|
|
74
183
|
| IStructuredContentTableTextColumn
|
|
75
184
|
| IStructuredContentTableTimeColumn;
|
|
76
185
|
|
|
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
|
+
|
|
77
242
|
export type IStructuredContentNode =
|
|
78
243
|
| IStructuredContentCollapseNode
|
|
79
244
|
| IStructuredContentDefaultAvatarNode
|
|
@@ -83,6 +248,12 @@ export type IStructuredContentNode =
|
|
|
83
248
|
| IStructuredContentTableNode
|
|
84
249
|
| IStructuredContentTextNode;
|
|
85
250
|
|
|
251
|
+
export interface IStructuredContentLinkValue {
|
|
252
|
+
href: string;
|
|
253
|
+
target?: string;
|
|
254
|
+
title: string;
|
|
255
|
+
}
|
|
256
|
+
|
|
86
257
|
export type StructuredContentPrimitiveValue = boolean | number | string | null;
|
|
87
258
|
export type StructuredContentAvatarValue = IStructuredContentDefaultAvatarValue;
|
|
88
259
|
export type StructuredContentTaggableValue = IStructuredContentTagValue | StructuredContentPrimitiveValue;
|
|
@@ -97,3 +268,16 @@ export type StructuredContentDataValue =
|
|
|
97
268
|
| IStructuredContentTableRow[]
|
|
98
269
|
| StructuredContentPrimitiveValue;
|
|
99
270
|
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
|
+
}
|
|
@@ -3,10 +3,23 @@ export interface ITodoComment {
|
|
|
3
3
|
createdAt: string;
|
|
4
4
|
updatedAt?: string;
|
|
5
5
|
deletedAt?: string;
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
body: string;
|
|
8
|
+
|
|
8
9
|
todoId: string;
|
|
9
10
|
userId: string;
|
|
11
|
+
|
|
10
12
|
parentId?: string;
|
|
13
|
+
|
|
11
14
|
metadata?: Record<string, unknown>;
|
|
12
15
|
}
|
|
16
|
+
|
|
17
|
+
export interface ITodoCommentReaction {
|
|
18
|
+
id: string;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
|
|
21
|
+
commentId: string;
|
|
22
|
+
userId: string;
|
|
23
|
+
|
|
24
|
+
emoji: string;
|
|
25
|
+
}
|
|
@@ -1,20 +1,53 @@
|
|
|
1
|
-
import type {
|
|
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
|
+
import type { TodoJsonValue } from "./todo-json";
|
|
6
2
|
export interface ITodoCustomField {
|
|
7
3
|
id: string;
|
|
8
4
|
createdAt: string;
|
|
9
5
|
updatedAt?: string;
|
|
10
6
|
deletedAt?: string;
|
|
7
|
+
|
|
11
8
|
name: string;
|
|
12
9
|
type: TodoCustomFieldType;
|
|
10
|
+
|
|
13
11
|
spaceId: string;
|
|
14
|
-
|
|
12
|
+
|
|
13
|
+
options?: ITodoCustomFieldOption[];
|
|
15
14
|
defaultValue?: TodoJsonValue;
|
|
15
|
+
|
|
16
16
|
sortOrder: number;
|
|
17
17
|
required: boolean;
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
metadata?: Record<string, unknown>;
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
export interface ITodoCustomFieldOption {
|
|
23
|
+
label: string;
|
|
24
|
+
color?: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type TodoCustomFieldType =
|
|
29
|
+
| "TEXT"
|
|
30
|
+
| "LONG_TEXT"
|
|
31
|
+
| "NUMBER"
|
|
32
|
+
| "DATE"
|
|
33
|
+
| "DROPDOWN"
|
|
34
|
+
| "MULTI_DROPDOWN"
|
|
35
|
+
| "CHECKBOX"
|
|
36
|
+
| "EMAIL"
|
|
37
|
+
| "PHONE"
|
|
38
|
+
| "URL"
|
|
39
|
+
| "CURRENCY"
|
|
40
|
+
| "RATING"
|
|
41
|
+
| "PROGRESS"
|
|
42
|
+
| "MONEY"
|
|
43
|
+
| "LABELS"
|
|
44
|
+
| "PEOPLE"
|
|
45
|
+
| "USER"
|
|
46
|
+
| "FILES"
|
|
47
|
+
| "TASKS"
|
|
48
|
+
| "RELATIONSHIPS"
|
|
49
|
+
| "ROLLUP"
|
|
50
|
+
| "PROGRESS_MANUAL"
|
|
51
|
+
| "PROGRESS_AUTO"
|
|
52
|
+
| "VOTING"
|
|
53
|
+
| "LOCATION";
|