@automateinc/fleet-types 1.0.89-dev.828151b → 1.0.89
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 +2 -25
- package/dist/types/client-request-field-visibility-rule.d.ts +25 -0
- package/dist/types/index.d.ts +58 -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
|
@@ -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
|
@@ -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";
|
|
60
59
|
export * from "./client-checklist-definition";
|
|
61
60
|
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,15 +76,16 @@ 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";
|
|
79
80
|
export * from "./client-request-type";
|
|
80
81
|
export * from "./client-request-value";
|
|
81
82
|
export * from "./client-request-verification";
|
|
82
83
|
export * from "./client-site";
|
|
83
84
|
export * from "./client-status";
|
|
84
85
|
export * from "./client-status-check";
|
|
86
|
+
export * from "./client-status-check-requirement";
|
|
85
87
|
export * from "./client-status-check-requirement-condition";
|
|
86
88
|
export * from "./client-status-check-requirement-condition-group";
|
|
87
|
-
export * from "./client-status-check-requirement";
|
|
88
89
|
export * from "./cluster-patrol";
|
|
89
90
|
export * from "./cluster-patrol-point";
|
|
90
91
|
export * from "./company";
|
|
@@ -94,13 +95,13 @@ export * from "./contact";
|
|
|
94
95
|
export * from "./contract";
|
|
95
96
|
export * from "./contract-allowance";
|
|
96
97
|
export * from "./contract-benefit";
|
|
97
|
-
export * from "./contract-deduction";
|
|
98
98
|
export * from "./contract-cost";
|
|
99
|
+
export * from "./contract-deduction";
|
|
99
100
|
export * from "./contract-snapshot";
|
|
100
101
|
export * from "./contract-snapshot-allowance";
|
|
101
102
|
export * from "./contract-snapshot-benefit";
|
|
102
|
-
export * from "./contract-snapshot-deduction";
|
|
103
103
|
export * from "./contract-snapshot-cost";
|
|
104
|
+
export * from "./contract-snapshot-deduction";
|
|
104
105
|
export * from "./coords";
|
|
105
106
|
export * from "./day-of-week";
|
|
106
107
|
export * from "./dispatch";
|
|
@@ -144,7 +145,15 @@ export * from "./payment-cycle-document";
|
|
|
144
145
|
export * from "./payroll-config";
|
|
145
146
|
export * from "./permission";
|
|
146
147
|
export * from "./permission-group";
|
|
147
|
-
export * from "./phone-admin";
|
|
148
|
+
export * from "./phone-admin-agent";
|
|
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";
|
|
148
157
|
export * from "./phone-line";
|
|
149
158
|
export * from "./phone-line-commitment";
|
|
150
159
|
export * from "./phone-line-contract";
|
|
@@ -191,20 +200,41 @@ export * from "./shift-type";
|
|
|
191
200
|
export * from "./signing-mode";
|
|
192
201
|
export * from "./standard-operating-procedure";
|
|
193
202
|
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";
|
|
194
235
|
export * from "./tag";
|
|
195
236
|
export * from "./tag-color";
|
|
196
237
|
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
238
|
export * from "./todo";
|
|
209
239
|
export * from "./todo-activity";
|
|
210
240
|
export * from "./todo-assignee";
|
|
@@ -231,7 +261,7 @@ export * from "./todo-list-field-config";
|
|
|
231
261
|
export * from "./todo-list-field-entry";
|
|
232
262
|
export * from "./todo-list-item";
|
|
233
263
|
export * from "./todo-list-member";
|
|
234
|
-
export * from "./todo-
|
|
264
|
+
export * from "./todo-people-field-options";
|
|
235
265
|
export * from "./todo-recurrence-settings";
|
|
236
266
|
export * from "./todo-space";
|
|
237
267
|
export * from "./todo-space-member";
|
|
@@ -245,6 +275,17 @@ export * from "./todo-time-entry";
|
|
|
245
275
|
export * from "./todo-view";
|
|
246
276
|
export * from "./todo-view-type";
|
|
247
277
|
export * from "./todo-watcher";
|
|
278
|
+
export * from "./unit";
|
|
279
|
+
export * from "./unit-room";
|
|
280
|
+
export * from "./user";
|
|
281
|
+
export * from "./vehicle";
|
|
282
|
+
export * from "./vehicle-contract";
|
|
283
|
+
export * from "./vehicle-contract-payment";
|
|
284
|
+
export * from "./vehicle-insurance";
|
|
285
|
+
export * from "./vehicle-make";
|
|
286
|
+
export * from "./vehicle-model";
|
|
287
|
+
export * from "./vehicle-registration";
|
|
288
|
+
export * from "./vehicle-status";
|
|
248
289
|
export * from "./vendor";
|
|
249
290
|
export * from "./vendor-contact";
|
|
250
291
|
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
|
+
}
|
|
@@ -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 IStructuredContentTableTimeColumn extends IStructuredContentTableNamedColumnBase {
|
|
5
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
6
|
+
type: "TIME";
|
|
7
|
+
}
|
|
@@ -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
|
-
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ITodoCustomFieldOption } from "./todo-custom-field-option";
|
|
2
2
|
import type { TodoCustomFieldType } from "./todo-custom-field-type";
|
|
3
3
|
import type { TodoJsonValue } from "./todo-json-value";
|
|
4
|
+
import type { TodoPeopleFieldOptions } from "./todo-people-field-options";
|
|
4
5
|
|
|
5
6
|
export interface ITodoCustomField {
|
|
6
7
|
id: string;
|
|
@@ -10,9 +11,10 @@ export interface ITodoCustomField {
|
|
|
10
11
|
name: string;
|
|
11
12
|
type: TodoCustomFieldType;
|
|
12
13
|
spaceId: string;
|
|
13
|
-
options?: ITodoCustomFieldOption[];
|
|
14
|
+
options?: ITodoCustomFieldOption[] | TodoPeopleFieldOptions;
|
|
14
15
|
defaultValue?: TodoJsonValue;
|
|
15
16
|
sortOrder: number;
|
|
16
17
|
required: boolean;
|
|
18
|
+
version: number;
|
|
17
19
|
metadata?: Record<string, unknown>;
|
|
18
20
|
}
|
package/dist/types/todo-doc.d.ts
CHANGED
package/dist/types/todo-tag.d.ts
CHANGED
package/dist/types/todo.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { TodoPriority } from "./todo-priority";
|
|
2
1
|
import type { TodoRecurrenceSettings } from "./todo-recurrence-settings";
|
|
3
2
|
|
|
4
3
|
export interface ITodo {
|
|
@@ -10,7 +9,6 @@ export interface ITodo {
|
|
|
10
9
|
title: string;
|
|
11
10
|
description?: string;
|
|
12
11
|
statusId: string;
|
|
13
|
-
priority: TodoPriority;
|
|
14
12
|
listId: string;
|
|
15
13
|
spaceId: string;
|
|
16
14
|
createdById: string;
|
|
@@ -21,10 +19,6 @@ export interface ITodo {
|
|
|
21
19
|
closedAt?: string;
|
|
22
20
|
sortOrder: number;
|
|
23
21
|
parentId?: string;
|
|
24
|
-
estimatedHours?: number;
|
|
25
|
-
sprintPoints?: number;
|
|
26
|
-
timeEstimate?: number;
|
|
27
22
|
recurringSettings?: TodoRecurrenceSettings;
|
|
28
|
-
taskType?: string;
|
|
29
23
|
metadata?: Record<string, unknown>;
|
|
30
24
|
}
|
package/package.json
CHANGED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
export interface IPhoneAdminAssignedQueue {
|
|
2
|
-
id: string;
|
|
3
|
-
key: string;
|
|
4
|
-
name: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface IPhoneAdminQueueWorkingHoursDay {
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
startTime: string;
|
|
10
|
-
endTime: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface IPhoneAdminQueueWorkingHours {
|
|
14
|
-
monday: IPhoneAdminQueueWorkingHoursDay;
|
|
15
|
-
tuesday: IPhoneAdminQueueWorkingHoursDay;
|
|
16
|
-
wednesday: IPhoneAdminQueueWorkingHoursDay;
|
|
17
|
-
thursday: IPhoneAdminQueueWorkingHoursDay;
|
|
18
|
-
friday: IPhoneAdminQueueWorkingHoursDay;
|
|
19
|
-
saturday: IPhoneAdminQueueWorkingHoursDay;
|
|
20
|
-
sunday: IPhoneAdminQueueWorkingHoursDay;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IPhoneAdminPromptFields {
|
|
24
|
-
onGreetingBusinessHoursFile: string;
|
|
25
|
-
onGreetingAfterHoursFile: string;
|
|
26
|
-
onQueueEntryFile: string;
|
|
27
|
-
onHoldLoopFile: string;
|
|
28
|
-
onQueueMessagePeriodicFile: string;
|
|
29
|
-
onQueuePositionFile: string;
|
|
30
|
-
onConnectingFile: string;
|
|
31
|
-
onTransferFile: string;
|
|
32
|
-
onRingbackFile: string;
|
|
33
|
-
onBusyUnavailableFile: string;
|
|
34
|
-
onNoAnswerFile: string;
|
|
35
|
-
onAnnouncementFile: string;
|
|
36
|
-
onGoodbyeEndCallFile: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface IPhoneAdminAgent {
|
|
40
|
-
id: string;
|
|
41
|
-
orgId: string;
|
|
42
|
-
orgName?: string | null;
|
|
43
|
-
name: string;
|
|
44
|
-
role: "agent" | "user";
|
|
45
|
-
extension: string;
|
|
46
|
-
queueId: string | null;
|
|
47
|
-
queueKey?: string | null;
|
|
48
|
-
queueName?: string | null;
|
|
49
|
-
assignedQueueIds: string[];
|
|
50
|
-
assignedQueues: IPhoneAdminAssignedQueue[];
|
|
51
|
-
sipProfileId: string | null;
|
|
52
|
-
sipProfileName?: string | null;
|
|
53
|
-
metadata?: Record<string, string | undefined>;
|
|
54
|
-
localEntityId?: string;
|
|
55
|
-
syncStatus?: string | null;
|
|
56
|
-
syncError?: string | null;
|
|
57
|
-
syncedAt?: string | null;
|
|
58
|
-
createdAt: string;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface IPhoneAdminQueue extends IPhoneAdminPromptFields {
|
|
62
|
-
id: string;
|
|
63
|
-
orgId: string;
|
|
64
|
-
key: string;
|
|
65
|
-
name: string;
|
|
66
|
-
sipProfileId: string | null;
|
|
67
|
-
noAnswerTimeoutSeconds: number;
|
|
68
|
-
workingHoursEnabled: boolean;
|
|
69
|
-
workingHoursTimezone: string;
|
|
70
|
-
workingHours: IPhoneAdminQueueWorkingHours;
|
|
71
|
-
localQueueId?: string;
|
|
72
|
-
zoneId?: string;
|
|
73
|
-
employeeGroupId?: string;
|
|
74
|
-
syncStatus?: string | null;
|
|
75
|
-
syncError?: string | null;
|
|
76
|
-
syncedAt?: string | null;
|
|
77
|
-
createdAt: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface IPhoneAdminSystemConfig extends IPhoneAdminPromptFields {
|
|
81
|
-
id: string;
|
|
82
|
-
orgId: string;
|
|
83
|
-
updatedAt: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface IPhoneAdminSummary {
|
|
87
|
-
agentCount: number;
|
|
88
|
-
userCount: number;
|
|
89
|
-
queueCount: number;
|
|
90
|
-
defaultQueueId: string | null;
|
|
91
|
-
phoneConfigured: boolean;
|
|
92
|
-
resolveAgentUrlConfigured: boolean;
|
|
93
|
-
reconcileActionsEnabled?: boolean;
|
|
94
|
-
syncedAgentCount?: number;
|
|
95
|
-
syncedUserCount?: number;
|
|
96
|
-
syncedQueueCount?: number;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface IPhoneAdminSnapshot {
|
|
100
|
-
agents: IPhoneAdminAgent[];
|
|
101
|
-
users: IPhoneAdminAgent[];
|
|
102
|
-
queues: IPhoneAdminQueue[];
|
|
103
|
-
sipProfiles?: unknown[];
|
|
104
|
-
promptAudio?: unknown[];
|
|
105
|
-
systemConfig?: IPhoneAdminSystemConfig | null;
|
|
106
|
-
summary: IPhoneAdminSummary;
|
|
107
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type TodoPriority = "URGENT" | "HIGH" | "NORMAL" | "LOW";
|