@automateinc/fleet-types 1.0.89-dev.828151b → 1.0.90
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/ai.d.ts +40 -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 +59 -17
- package/dist/types/notification.d.ts +1 -0
- 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 +1 -0
- 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-checklist-item.d.ts +1 -0
- package/dist/types/todo-checklist.d.ts +1 -0
- package/dist/types/todo-comment.d.ts +1 -0
- package/dist/types/todo-custom-field.d.ts +3 -1
- package/dist/types/todo-dashboard-widget.d.ts +2 -0
- package/dist/types/todo-dashboard.d.ts +2 -0
- package/dist/types/todo-doc.d.ts +2 -0
- package/dist/types/todo-folder.d.ts +1 -0
- package/dist/types/todo-list-field-config.d.ts +2 -0
- package/dist/types/todo-list.d.ts +1 -0
- package/dist/types/todo-people-field-options.d.ts +4 -0
- package/dist/types/todo-space.d.ts +1 -0
- package/dist/types/todo-status.d.ts +1 -0
- package/dist/types/todo-tag.d.ts +1 -0
- package/dist/types/todo-view.d.ts +2 -0
- package/dist/types/todo.d.ts +0 -6
- package/package.json +1 -1
- package/dist/types/phone-admin.d.ts +0 -107
- package/dist/types/todo-priority.d.ts +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type AiModule = "GENERIC" | "PAYROLL";
|
|
2
|
+
export type AiClientPlatform = "mobile-user" | "web";
|
|
3
|
+
|
|
4
|
+
export interface IAiConversation<TContext = unknown, TMessage = unknown> {
|
|
5
|
+
context: TContext;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
id: string;
|
|
8
|
+
isGenerating: boolean;
|
|
9
|
+
messages: TMessage[];
|
|
10
|
+
module: AiModule;
|
|
11
|
+
regionId: string;
|
|
12
|
+
title: string;
|
|
13
|
+
updatedAt?: Date | null;
|
|
14
|
+
userId: string;
|
|
15
|
+
version: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface IAiArtifact {
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
fileName: string;
|
|
21
|
+
id: string;
|
|
22
|
+
regionId: string;
|
|
23
|
+
updatedAt?: Date | null;
|
|
24
|
+
userId: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface IAiResolvedRoute {
|
|
28
|
+
description: string;
|
|
29
|
+
pathParams: string[];
|
|
30
|
+
platforms: AiClientPlatform[];
|
|
31
|
+
queryParams: string[];
|
|
32
|
+
route: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface IAiResolvedLink {
|
|
36
|
+
href: string | null;
|
|
37
|
+
matches: IAiResolvedRoute[];
|
|
38
|
+
platform: AiClientPlatform;
|
|
39
|
+
route: IAiResolvedRoute | null;
|
|
40
|
+
}
|
|
@@ -1,28 +1,5 @@
|
|
|
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
|
-
}
|
|
1
|
+
import type { IModel } from "./models";
|
|
2
|
+
import type { IClientRequestFieldVisibilityRule } from "./client-request-field-visibility-rule";
|
|
26
3
|
|
|
27
4
|
export interface IClientRequestCategoryField {
|
|
28
5
|
id: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IClientRequestCategoryField } from "./client-request-category-field";
|
|
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
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export type PaginatedResponse<T> = {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
export * from "./api-key";
|
|
37
|
+
export * from "./ai";
|
|
37
38
|
export * from "./asset";
|
|
38
39
|
export * from "./asset-category";
|
|
39
40
|
export * from "./asset-category-field";
|
|
@@ -56,9 +57,9 @@ export * from "./call-entity";
|
|
|
56
57
|
export * from "./call-log";
|
|
57
58
|
export * from "./ceiling";
|
|
58
59
|
export * from "./client";
|
|
59
|
-
export * from "./client-class";
|
|
60
60
|
export * from "./client-checklist-definition";
|
|
61
61
|
export * from "./client-checklist-item";
|
|
62
|
+
export * from "./client-class";
|
|
62
63
|
export * from "./client-comment";
|
|
63
64
|
export * from "./client-comment-reaction";
|
|
64
65
|
export * from "./client-contact";
|
|
@@ -76,15 +77,16 @@ export * from "./client-request-action";
|
|
|
76
77
|
export * from "./client-request-action-execution";
|
|
77
78
|
export * from "./client-request-category";
|
|
78
79
|
export * from "./client-request-category-field";
|
|
80
|
+
export * from "./client-request-field-visibility-rule";
|
|
79
81
|
export * from "./client-request-type";
|
|
80
82
|
export * from "./client-request-value";
|
|
81
83
|
export * from "./client-request-verification";
|
|
82
84
|
export * from "./client-site";
|
|
83
85
|
export * from "./client-status";
|
|
84
86
|
export * from "./client-status-check";
|
|
87
|
+
export * from "./client-status-check-requirement";
|
|
85
88
|
export * from "./client-status-check-requirement-condition";
|
|
86
89
|
export * from "./client-status-check-requirement-condition-group";
|
|
87
|
-
export * from "./client-status-check-requirement";
|
|
88
90
|
export * from "./cluster-patrol";
|
|
89
91
|
export * from "./cluster-patrol-point";
|
|
90
92
|
export * from "./company";
|
|
@@ -94,13 +96,13 @@ export * from "./contact";
|
|
|
94
96
|
export * from "./contract";
|
|
95
97
|
export * from "./contract-allowance";
|
|
96
98
|
export * from "./contract-benefit";
|
|
97
|
-
export * from "./contract-deduction";
|
|
98
99
|
export * from "./contract-cost";
|
|
100
|
+
export * from "./contract-deduction";
|
|
99
101
|
export * from "./contract-snapshot";
|
|
100
102
|
export * from "./contract-snapshot-allowance";
|
|
101
103
|
export * from "./contract-snapshot-benefit";
|
|
102
|
-
export * from "./contract-snapshot-deduction";
|
|
103
104
|
export * from "./contract-snapshot-cost";
|
|
105
|
+
export * from "./contract-snapshot-deduction";
|
|
104
106
|
export * from "./coords";
|
|
105
107
|
export * from "./day-of-week";
|
|
106
108
|
export * from "./dispatch";
|
|
@@ -144,7 +146,15 @@ export * from "./payment-cycle-document";
|
|
|
144
146
|
export * from "./payroll-config";
|
|
145
147
|
export * from "./permission";
|
|
146
148
|
export * from "./permission-group";
|
|
147
|
-
export * from "./phone-admin";
|
|
149
|
+
export * from "./phone-admin-agent";
|
|
150
|
+
export * from "./phone-admin-assigned-queue";
|
|
151
|
+
export * from "./phone-admin-prompt-fields";
|
|
152
|
+
export * from "./phone-admin-queue";
|
|
153
|
+
export * from "./phone-admin-queue-working-hours";
|
|
154
|
+
export * from "./phone-admin-queue-working-hours-day";
|
|
155
|
+
export * from "./phone-admin-snapshot";
|
|
156
|
+
export * from "./phone-admin-summary";
|
|
157
|
+
export * from "./phone-admin-system-config";
|
|
148
158
|
export * from "./phone-line";
|
|
149
159
|
export * from "./phone-line-commitment";
|
|
150
160
|
export * from "./phone-line-contract";
|
|
@@ -191,20 +201,41 @@ export * from "./shift-type";
|
|
|
191
201
|
export * from "./signing-mode";
|
|
192
202
|
export * from "./standard-operating-procedure";
|
|
193
203
|
export * from "./structured-content";
|
|
204
|
+
export * from "./structured-content-collapse-node";
|
|
205
|
+
export * from "./structured-content-date-range-filter-constraints";
|
|
206
|
+
export * from "./structured-content-date-range-filter-initial-value";
|
|
207
|
+
export * from "./structured-content-default-avatar-node";
|
|
208
|
+
export * from "./structured-content-default-avatar-value";
|
|
209
|
+
export * from "./structured-content-link-node";
|
|
210
|
+
export * from "./structured-content-link-value";
|
|
211
|
+
export * from "./structured-content-node-base";
|
|
212
|
+
export * from "./structured-content-node-layout";
|
|
213
|
+
export * from "./structured-content-root";
|
|
214
|
+
export * from "./structured-content-space-node";
|
|
215
|
+
export * from "./structured-content-table-boolean-column";
|
|
216
|
+
export * from "./structured-content-table-column-base";
|
|
217
|
+
export * from "./structured-content-table-column-sort-config";
|
|
218
|
+
export * from "./structured-content-table-date-column";
|
|
219
|
+
export * from "./structured-content-table-date-range-filter";
|
|
220
|
+
export * from "./structured-content-table-date-time-column";
|
|
221
|
+
export * from "./structured-content-table-default-avatar-column";
|
|
222
|
+
export * from "./structured-content-table-link-column";
|
|
223
|
+
export * from "./structured-content-table-named-column-base";
|
|
224
|
+
export * from "./structured-content-table-node";
|
|
225
|
+
export * from "./structured-content-table-number-column";
|
|
226
|
+
export * from "./structured-content-table-pagination";
|
|
227
|
+
export * from "./structured-content-table-select-filter";
|
|
228
|
+
export * from "./structured-content-table-tag-column";
|
|
229
|
+
export * from "./structured-content-table-text-column";
|
|
230
|
+
export * from "./structured-content-table-time-column";
|
|
231
|
+
export * from "./structured-content-table-toolbar";
|
|
232
|
+
export * from "./structured-content-table-toolbar-filter-base";
|
|
233
|
+
export * from "./structured-content-tag-node";
|
|
234
|
+
export * from "./structured-content-tag-value";
|
|
235
|
+
export * from "./structured-content-text-node";
|
|
194
236
|
export * from "./tag";
|
|
195
237
|
export * from "./tag-color";
|
|
196
238
|
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";
|
|
208
239
|
export * from "./todo";
|
|
209
240
|
export * from "./todo-activity";
|
|
210
241
|
export * from "./todo-assignee";
|
|
@@ -231,7 +262,7 @@ export * from "./todo-list-field-config";
|
|
|
231
262
|
export * from "./todo-list-field-entry";
|
|
232
263
|
export * from "./todo-list-item";
|
|
233
264
|
export * from "./todo-list-member";
|
|
234
|
-
export * from "./todo-
|
|
265
|
+
export * from "./todo-people-field-options";
|
|
235
266
|
export * from "./todo-recurrence-settings";
|
|
236
267
|
export * from "./todo-space";
|
|
237
268
|
export * from "./todo-space-member";
|
|
@@ -245,6 +276,17 @@ export * from "./todo-time-entry";
|
|
|
245
276
|
export * from "./todo-view";
|
|
246
277
|
export * from "./todo-view-type";
|
|
247
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";
|
|
248
290
|
export * from "./vendor";
|
|
249
291
|
export * from "./vendor-contact";
|
|
250
292
|
export * from "./zone";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IPhoneAdminAssignedQueue } from "./phone-admin-assigned-queue";
|
|
2
|
+
|
|
3
|
+
export interface IPhoneAdminAgent {
|
|
4
|
+
id: string;
|
|
5
|
+
orgId: string;
|
|
6
|
+
orgName?: string | null;
|
|
7
|
+
name: string;
|
|
8
|
+
role: "agent" | "user";
|
|
9
|
+
extension: string;
|
|
10
|
+
queueId: string | null;
|
|
11
|
+
queueKey?: string | null;
|
|
12
|
+
queueName?: string | null;
|
|
13
|
+
assignedQueueIds: string[];
|
|
14
|
+
assignedQueues: IPhoneAdminAssignedQueue[];
|
|
15
|
+
sipProfileId: string | null;
|
|
16
|
+
sipProfileName?: string | null;
|
|
17
|
+
metadata?: Record<string, string | undefined>;
|
|
18
|
+
localEntityId?: string;
|
|
19
|
+
syncStatus?: string | null;
|
|
20
|
+
syncError?: string | null;
|
|
21
|
+
syncedAt?: string | null;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IPhoneAdminPromptFields {
|
|
2
|
+
onGreetingBusinessHoursFile: string;
|
|
3
|
+
onGreetingAfterHoursFile: string;
|
|
4
|
+
onQueueEntryFile: string;
|
|
5
|
+
onHoldLoopFile: string;
|
|
6
|
+
onQueueMessagePeriodicFile: string;
|
|
7
|
+
onQueuePositionFile: string;
|
|
8
|
+
onConnectingFile: string;
|
|
9
|
+
onTransferFile: string;
|
|
10
|
+
onRingbackFile: string;
|
|
11
|
+
onBusyUnavailableFile: string;
|
|
12
|
+
onNoAnswerFile: string;
|
|
13
|
+
onAnnouncementFile: string;
|
|
14
|
+
onGoodbyeEndCallFile: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IPhoneAdminQueueWorkingHoursDay } from "./phone-admin-queue-working-hours-day";
|
|
2
|
+
|
|
3
|
+
export interface IPhoneAdminQueueWorkingHours {
|
|
4
|
+
monday: IPhoneAdminQueueWorkingHoursDay;
|
|
5
|
+
tuesday: IPhoneAdminQueueWorkingHoursDay;
|
|
6
|
+
wednesday: IPhoneAdminQueueWorkingHoursDay;
|
|
7
|
+
thursday: IPhoneAdminQueueWorkingHoursDay;
|
|
8
|
+
friday: IPhoneAdminQueueWorkingHoursDay;
|
|
9
|
+
saturday: IPhoneAdminQueueWorkingHoursDay;
|
|
10
|
+
sunday: IPhoneAdminQueueWorkingHoursDay;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IPhoneAdminPromptFields } from "./phone-admin-prompt-fields";
|
|
2
|
+
import type { IPhoneAdminQueueWorkingHours } from "./phone-admin-queue-working-hours";
|
|
3
|
+
|
|
4
|
+
export interface IPhoneAdminQueue extends IPhoneAdminPromptFields {
|
|
5
|
+
id: string;
|
|
6
|
+
orgId: string;
|
|
7
|
+
key: string;
|
|
8
|
+
name: string;
|
|
9
|
+
sipProfileId: string | null;
|
|
10
|
+
noAnswerTimeoutSeconds: number;
|
|
11
|
+
workingHoursEnabled: boolean;
|
|
12
|
+
workingHoursTimezone: string;
|
|
13
|
+
workingHours: IPhoneAdminQueueWorkingHours;
|
|
14
|
+
localQueueId?: string;
|
|
15
|
+
zoneId?: string;
|
|
16
|
+
employeeGroupId?: string;
|
|
17
|
+
syncStatus?: string | null;
|
|
18
|
+
syncError?: string | null;
|
|
19
|
+
syncedAt?: string | null;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IPhoneAdminAgent } from "./phone-admin-agent";
|
|
2
|
+
import type { IPhoneAdminQueue } from "./phone-admin-queue";
|
|
3
|
+
import type { IPhoneAdminSystemConfig } from "./phone-admin-system-config";
|
|
4
|
+
import type { IPhoneAdminSummary } from "./phone-admin-summary";
|
|
5
|
+
|
|
6
|
+
export interface IPhoneAdminSnapshot {
|
|
7
|
+
agents: IPhoneAdminAgent[];
|
|
8
|
+
users: IPhoneAdminAgent[];
|
|
9
|
+
queues: IPhoneAdminQueue[];
|
|
10
|
+
sipProfiles?: unknown[];
|
|
11
|
+
promptAudio?: unknown[];
|
|
12
|
+
systemConfig?: IPhoneAdminSystemConfig | null;
|
|
13
|
+
summary: IPhoneAdminSummary;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IPhoneAdminSummary {
|
|
2
|
+
agentCount: number;
|
|
3
|
+
userCount: number;
|
|
4
|
+
queueCount: number;
|
|
5
|
+
defaultQueueId: string | null;
|
|
6
|
+
phoneConfigured: boolean;
|
|
7
|
+
resolveAgentUrlConfigured: boolean;
|
|
8
|
+
reconcileActionsEnabled?: boolean;
|
|
9
|
+
syncedAgentCount?: number;
|
|
10
|
+
syncedUserCount?: number;
|
|
11
|
+
syncedQueueCount?: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IStructuredContentNodeBase } from "./structured-content-node-base";
|
|
2
|
+
import type { IStructuredContentNode } from "./structured-content";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContentCollapseNode extends IStructuredContentNodeBase {
|
|
5
|
+
children?: IStructuredContentNode[];
|
|
6
|
+
config?: {
|
|
7
|
+
title?: string;
|
|
8
|
+
};
|
|
9
|
+
type: "COLLAPSE";
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IStructuredContentNodeBase } from "./structured-content-node-base";
|
|
2
|
+
import type { StructuredContentLinkVariant } from "./structured-content";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContentLinkNode extends IStructuredContentNodeBase {
|
|
5
|
+
config?: {
|
|
6
|
+
variant?: StructuredContentLinkVariant;
|
|
7
|
+
};
|
|
8
|
+
type: "LINK";
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IStructuredContentNodeLayout } from "./structured-content-node-layout";
|
|
2
|
+
|
|
3
|
+
export interface IStructuredContentNodeBase {
|
|
4
|
+
id: string;
|
|
5
|
+
layout?: IStructuredContentNodeLayout;
|
|
6
|
+
type: "COLLAPSE" | "DEFAULT_AVATAR" | "LINK" | "SPACE" | "TABLE" | "TAG" | "TEXT";
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { StructuredContentLayoutAlign } from "./structured-content";
|
|
2
|
+
import type { StructuredContentLayoutSpacing } from "./structured-content";
|
|
3
|
+
import type { StructuredContentLayoutWidth } from "./structured-content";
|
|
4
|
+
|
|
5
|
+
export interface IStructuredContentNodeLayout {
|
|
6
|
+
align?: StructuredContentLayoutAlign;
|
|
7
|
+
gap?: StructuredContentLayoutSpacing;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
marginBottom?: StructuredContentLayoutSpacing;
|
|
10
|
+
marginTop?: StructuredContentLayoutSpacing;
|
|
11
|
+
paddingX?: StructuredContentLayoutSpacing;
|
|
12
|
+
paddingY?: StructuredContentLayoutSpacing;
|
|
13
|
+
width?: StructuredContentLayoutWidth;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IModel } from "./models";
|
|
2
|
+
import type { IStructuredContentData, IStructuredContentNode } from "./structured-content";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContent {
|
|
5
|
+
createdAt: string;
|
|
6
|
+
data: IStructuredContentData;
|
|
7
|
+
id: string;
|
|
8
|
+
key: string;
|
|
9
|
+
metadata?: Record<string, any>;
|
|
10
|
+
rawData: unknown;
|
|
11
|
+
relation: IModel;
|
|
12
|
+
relationId: string;
|
|
13
|
+
structure: IStructuredContentNode[];
|
|
14
|
+
updatedAt?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IStructuredContentNodeBase } from "./structured-content-node-base";
|
|
2
|
+
import type { IStructuredContentNode } from "./structured-content";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContentSpaceNode extends IStructuredContentNodeBase {
|
|
5
|
+
children?: IStructuredContentNode[];
|
|
6
|
+
type: "SPACE";
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IStructuredContentTableNamedColumnBase } from "./structured-content-table-named-column-base";
|
|
2
|
+
import type { IStructuredContentTableColumnSortConfig } from "./structured-content-table-column-sort-config";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContentTableBooleanColumn extends IStructuredContentTableNamedColumnBase {
|
|
5
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
6
|
+
type: "BOOLEAN";
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StructuredContentTableSortOrder } from "./structured-content";
|
|
2
|
+
import type { StructuredContentTableSortType } from "./structured-content";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContentTableColumnSortConfig {
|
|
5
|
+
sortOrder?: StructuredContentTableSortOrder;
|
|
6
|
+
sortType?: StructuredContentTableSortType;
|
|
7
|
+
sortable?: boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IStructuredContentTableNamedColumnBase } from "./structured-content-table-named-column-base";
|
|
2
|
+
import type { IStructuredContentTableColumnSortConfig } from "./structured-content-table-column-sort-config";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContentTableDateColumn extends IStructuredContentTableNamedColumnBase {
|
|
5
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
6
|
+
type: "DATE";
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IStructuredContentTableToolbarFilterBase } from "./structured-content-table-toolbar-filter-base";
|
|
2
|
+
import type { IStructuredContentDateRangeFilterConstraints } from "./structured-content-date-range-filter-constraints";
|
|
3
|
+
import type { IStructuredContentDateRangeFilterInitialValue } from "./structured-content-date-range-filter-initial-value";
|
|
4
|
+
|
|
5
|
+
export interface IStructuredContentTableDateRangeFilter extends IStructuredContentTableToolbarFilterBase {
|
|
6
|
+
config?: {
|
|
7
|
+
constraints?: IStructuredContentDateRangeFilterConstraints;
|
|
8
|
+
initialValue?: IStructuredContentDateRangeFilterInitialValue;
|
|
9
|
+
};
|
|
10
|
+
type: "DATE_RANGE";
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IStructuredContentTableNamedColumnBase } from "./structured-content-table-named-column-base";
|
|
2
|
+
import type { IStructuredContentTableColumnSortConfig } from "./structured-content-table-column-sort-config";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContentTableDateTimeColumn extends IStructuredContentTableNamedColumnBase {
|
|
5
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
6
|
+
type: "DATETIME";
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IStructuredContentTableColumnBase } from "./structured-content-table-column-base";
|
|
2
|
+
|
|
3
|
+
export interface IStructuredContentTableDefaultAvatarColumn extends IStructuredContentTableColumnBase {
|
|
4
|
+
config?: {
|
|
5
|
+
size?: number;
|
|
6
|
+
};
|
|
7
|
+
type: "DEFAULT_AVATAR";
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IStructuredContentTableNamedColumnBase } from "./structured-content-table-named-column-base";
|
|
2
|
+
import type { IStructuredContentTableColumnSortConfig } from "./structured-content-table-column-sort-config";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContentTableLinkColumn extends IStructuredContentTableNamedColumnBase {
|
|
5
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
6
|
+
type: "LINK";
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IStructuredContentNodeBase } from "./structured-content-node-base";
|
|
2
|
+
import type { IStructuredContentTableColumn } from "./structured-content";
|
|
3
|
+
import type { IStructuredContentTablePagination } from "./structured-content-table-pagination";
|
|
4
|
+
import type { IStructuredContentTableToolbar } from "./structured-content-table-toolbar";
|
|
5
|
+
|
|
6
|
+
export interface IStructuredContentTableNode extends IStructuredContentNodeBase {
|
|
7
|
+
config?: {
|
|
8
|
+
columns?: IStructuredContentTableColumn[];
|
|
9
|
+
pagination?: IStructuredContentTablePagination;
|
|
10
|
+
toolbar?: IStructuredContentTableToolbar;
|
|
11
|
+
};
|
|
12
|
+
type: "TABLE";
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IStructuredContentTableNamedColumnBase } from "./structured-content-table-named-column-base";
|
|
2
|
+
import type { IStructuredContentTableColumnSortConfig } from "./structured-content-table-column-sort-config";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContentTableNumberColumn extends IStructuredContentTableNamedColumnBase {
|
|
5
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
6
|
+
type: "NUMBER";
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IStructuredContentTableToolbarFilterBase } from "./structured-content-table-toolbar-filter-base";
|
|
2
|
+
|
|
3
|
+
export interface IStructuredContentTableSelectFilter extends IStructuredContentTableToolbarFilterBase {
|
|
4
|
+
config?: {
|
|
5
|
+
initialValue?: string;
|
|
6
|
+
};
|
|
7
|
+
type?: "SELECT";
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IStructuredContentTableNamedColumnBase } from "./structured-content-table-named-column-base";
|
|
2
|
+
import type { IStructuredContentTableColumnSortConfig } from "./structured-content-table-column-sort-config";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContentTableTagColumn extends IStructuredContentTableNamedColumnBase {
|
|
5
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
6
|
+
type: "TAG";
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IStructuredContentTableNamedColumnBase } from "./structured-content-table-named-column-base";
|
|
2
|
+
import type { IStructuredContentTableColumnSortConfig } from "./structured-content-table-column-sort-config";
|
|
3
|
+
|
|
4
|
+
export interface IStructuredContentTableTextColumn extends IStructuredContentTableNamedColumnBase {
|
|
5
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
6
|
+
type: "TEXT";
|
|
7
|
+
}
|