@automateinc/fleet-types 1.0.89-dev.32620b3 → 1.0.89-dev.74b6ebd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/types/client-request-category-field.d.ts +2 -25
  2. package/dist/types/client-request-field-visibility-rule.d.ts +25 -0
  3. package/dist/types/index.d.ts +85 -17
  4. package/dist/types/notification.d.ts +1 -0
  5. package/dist/types/phone-admin-agent.d.ts +23 -0
  6. package/dist/types/phone-admin-assigned-queue.d.ts +5 -0
  7. package/dist/types/phone-admin-prompt-fields.d.ts +15 -0
  8. package/dist/types/phone-admin-queue-working-hours-day.d.ts +5 -0
  9. package/dist/types/phone-admin-queue-working-hours.d.ts +11 -0
  10. package/dist/types/phone-admin-queue.d.ts +21 -0
  11. package/dist/types/phone-admin-snapshot.d.ts +14 -0
  12. package/dist/types/phone-admin-summary.d.ts +12 -0
  13. package/dist/types/phone-admin-system-config.d.ts +7 -0
  14. package/dist/types/structured-content-collapse-node.d.ts +10 -0
  15. package/dist/types/structured-content-date-range-filter-constraints.d.ts +8 -0
  16. package/dist/types/structured-content-date-range-filter-initial-value.d.ts +4 -0
  17. package/dist/types/structured-content-default-avatar-node.d.ts +8 -0
  18. package/dist/types/structured-content-default-avatar-value.d.ts +5 -0
  19. package/dist/types/structured-content-link-node.d.ts +9 -0
  20. package/dist/types/structured-content-link-value.d.ts +5 -0
  21. package/dist/types/structured-content-node-base.d.ts +7 -0
  22. package/dist/types/structured-content-node-layout.d.ts +14 -0
  23. package/dist/types/structured-content-root.d.ts +15 -0
  24. package/dist/types/structured-content-space-node.d.ts +7 -0
  25. package/dist/types/structured-content-table-boolean-column.d.ts +7 -0
  26. package/dist/types/structured-content-table-column-base.d.ts +6 -0
  27. package/dist/types/structured-content-table-column-sort-config.d.ts +8 -0
  28. package/dist/types/structured-content-table-date-column.d.ts +7 -0
  29. package/dist/types/structured-content-table-date-range-filter.d.ts +11 -0
  30. package/dist/types/structured-content-table-date-time-column.d.ts +7 -0
  31. package/dist/types/structured-content-table-default-avatar-column.d.ts +8 -0
  32. package/dist/types/structured-content-table-link-column.d.ts +7 -0
  33. package/dist/types/structured-content-table-named-column-base.d.ts +5 -0
  34. package/dist/types/structured-content-table-node.d.ts +13 -0
  35. package/dist/types/structured-content-table-number-column.d.ts +7 -0
  36. package/dist/types/structured-content-table-pagination.d.ts +3 -0
  37. package/dist/types/structured-content-table-select-filter.d.ts +8 -0
  38. package/dist/types/structured-content-table-tag-column.d.ts +7 -0
  39. package/dist/types/structured-content-table-text-column.d.ts +7 -0
  40. package/dist/types/structured-content-table-time-column.d.ts +7 -0
  41. package/dist/types/structured-content-table-toolbar-filter-base.d.ts +3 -0
  42. package/dist/types/structured-content-table-toolbar.d.ts +8 -0
  43. package/dist/types/structured-content-tag-node.d.ts +9 -0
  44. package/dist/types/structured-content-tag-value.d.ts +7 -0
  45. package/dist/types/structured-content-text-node.d.ts +9 -0
  46. package/dist/types/structured-content.d.ts +21 -205
  47. package/dist/types/todo-activity.d.ts +1 -1
  48. package/dist/types/todo-assignee.d.ts +8 -0
  49. package/dist/types/todo-checklist-item.d.ts +11 -0
  50. package/dist/types/todo-checklist.d.ts +10 -0
  51. package/dist/types/todo-comment-reaction.d.ts +7 -0
  52. package/dist/types/todo-comment.d.ts +1 -14
  53. package/dist/types/todo-custom-field-option.d.ts +5 -0
  54. package/dist/types/todo-custom-field-type.d.ts +26 -0
  55. package/dist/types/todo-custom-field-value.d.ts +11 -0
  56. package/dist/types/todo-custom-field.d.ts +7 -40
  57. package/dist/types/todo-dashboard-widget-type.d.ts +12 -0
  58. package/dist/types/todo-dashboard-widget.d.ts +17 -0
  59. package/dist/types/todo-dashboard.d.ts +12 -0
  60. package/dist/types/todo-dependency-type.d.ts +1 -0
  61. package/dist/types/todo-dependency.d.ts +10 -0
  62. package/dist/types/todo-doc.d.ts +17 -0
  63. package/dist/types/todo-folder.d.ts +1 -54
  64. package/dist/types/todo-json-object.d.ts +5 -0
  65. package/dist/types/{todo-json.d.ts → todo-json-value.d.ts} +2 -3
  66. package/dist/types/todo-list-field-config.d.ts +3 -44
  67. package/dist/types/todo-list-field-entry.d.ts +13 -0
  68. package/dist/types/todo-list-item.d.ts +8 -0
  69. package/dist/types/todo-list-member.d.ts +11 -0
  70. package/dist/types/todo-list.d.ts +1 -0
  71. package/dist/types/todo-people-field-options.d.ts +4 -0
  72. package/dist/types/todo-recurrence-settings.d.ts +7 -0
  73. package/dist/types/todo-space-member-role.d.ts +1 -0
  74. package/dist/types/todo-space-member.d.ts +11 -0
  75. package/dist/types/todo-space-visibility.d.ts +1 -0
  76. package/dist/types/todo-space.d.ts +3 -33
  77. package/dist/types/todo-status.d.ts +1 -0
  78. package/dist/types/todo-system-field.d.ts +7 -0
  79. package/dist/types/todo-tag-assignment.d.ts +6 -0
  80. package/dist/types/todo-tag.d.ts +1 -0
  81. package/dist/types/todo-time-entry.d.ts +12 -0
  82. package/dist/types/todo-view-type.d.ts +1 -0
  83. package/dist/types/todo-view.d.ts +4 -66
  84. package/dist/types/todo-watcher.d.ts +6 -0
  85. package/dist/types/todo.d.ts +1 -91
  86. package/package.json +1 -1
  87. package/dist/types/phone-admin.d.ts +0 -107
@@ -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
+ }
@@ -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,34 +200,93 @@ 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";
240
+ export * from "./todo-assignee";
241
+ export * from "./todo-checklist";
242
+ export * from "./todo-checklist-item";
210
243
  export * from "./todo-comment";
244
+ export * from "./todo-comment-reaction";
211
245
  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";
212
255
  export * from "./todo-document";
213
256
  export * from "./todo-folder";
257
+ export * from "./todo-json-object";
258
+ export * from "./todo-json-value";
214
259
  export * from "./todo-list";
215
260
  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-recurrence-settings";
216
266
  export * from "./todo-space";
267
+ export * from "./todo-space-member";
268
+ export * from "./todo-space-member-role";
269
+ export * from "./todo-space-visibility";
217
270
  export * from "./todo-status";
271
+ export * from "./todo-system-field";
218
272
  export * from "./todo-tag";
273
+ export * from "./todo-tag-assignment";
274
+ export * from "./todo-time-entry";
219
275
  export * from "./todo-view";
276
+ export * from "./todo-view-type";
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";
220
289
  export * from "./vendor";
221
290
  export * from "./vendor-contact";
222
291
  export * from "./zone";
223
292
  export * from "./zone-supervisor";
224
- export * from "./todo-json";
@@ -16,5 +16,6 @@ export interface INotification {
16
16
  attendancePresenceCheckId?: string;
17
17
  recruitmentId?: string;
18
18
  dispatchId?: string;
19
+ todoId?: string;
19
20
  metadata?: any;
20
21
  }
@@ -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,5 @@
1
+ export interface IPhoneAdminAssignedQueue {
2
+ id: string;
3
+ key: string;
4
+ name: string;
5
+ }
@@ -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,5 @@
1
+ export interface IPhoneAdminQueueWorkingHoursDay {
2
+ enabled: boolean;
3
+ startTime: string;
4
+ endTime: string;
5
+ }
@@ -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,7 @@
1
+ import type { IPhoneAdminPromptFields } from "./phone-admin-prompt-fields";
2
+
3
+ export interface IPhoneAdminSystemConfig extends IPhoneAdminPromptFields {
4
+ id: string;
5
+ orgId: string;
6
+ updatedAt: string;
7
+ }
@@ -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,8 @@
1
+ export interface IStructuredContentDateRangeFilterConstraints {
2
+ disableFuture?: boolean;
3
+ disablePast?: boolean;
4
+ disabledDates?: string[];
5
+ disabledWeekdays?: number[];
6
+ maxDate?: string;
7
+ minDate?: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ export interface IStructuredContentDateRangeFilterInitialValue {
2
+ endDate?: string;
3
+ startDate?: string;
4
+ }
@@ -0,0 +1,8 @@
1
+ import type { IStructuredContentNodeBase } from "./structured-content-node-base";
2
+
3
+ export interface IStructuredContentDefaultAvatarNode extends IStructuredContentNodeBase {
4
+ config?: {
5
+ size?: number;
6
+ };
7
+ type: "DEFAULT_AVATAR";
8
+ }
@@ -0,0 +1,5 @@
1
+ export interface IStructuredContentDefaultAvatarValue {
2
+ inactive?: boolean;
3
+ onLeave?: boolean;
4
+ src: string;
5
+ }
@@ -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,5 @@
1
+ export interface IStructuredContentLinkValue {
2
+ href: string;
3
+ target?: string;
4
+ title: string;
5
+ }
@@ -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,6 @@
1
+ import type { StructuredContentTableColumnType } from "./structured-content";
2
+
3
+ export interface IStructuredContentTableColumnBase {
4
+ id: string;
5
+ type: StructuredContentTableColumnType;
6
+ }
@@ -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,5 @@
1
+ import type { IStructuredContentTableColumnBase } from "./structured-content-table-column-base";
2
+
3
+ export interface IStructuredContentTableNamedColumnBase extends IStructuredContentTableColumnBase {
4
+ name: string;
5
+ }
@@ -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,3 @@
1
+ export interface IStructuredContentTablePagination {
2
+ pageSize?: number;
3
+ }
@@ -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,3 @@
1
+ export interface IStructuredContentTableToolbarFilterBase {
2
+ columnKey: string;
3
+ }
@@ -0,0 +1,8 @@
1
+ import type { IStructuredContentTableToolbarFilter } from "./structured-content";
2
+
3
+ export interface IStructuredContentTableToolbar {
4
+ advancedFilters?: boolean;
5
+ exportCsv?: boolean;
6
+ filters?: IStructuredContentTableToolbarFilter[];
7
+ search?: boolean;
8
+ }
@@ -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
+ }