@automateinc/fleet-types 1.0.89-dev.2c2e88a → 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.
- package/.nvmrc +1 -0
- package/dist/types/client-request-category-field.d.ts +2 -25
- package/dist/types/client-request-field-visibility-rule.d.ts +25 -0
- package/dist/types/index.d.ts +85 -16
- 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/structured-content-collapse-node.d.ts +10 -0
- package/dist/types/structured-content-date-range-filter-constraints.d.ts +8 -0
- package/dist/types/structured-content-date-range-filter-initial-value.d.ts +4 -0
- package/dist/types/structured-content-default-avatar-node.d.ts +8 -0
- package/dist/types/structured-content-default-avatar-value.d.ts +5 -0
- package/dist/types/structured-content-link-node.d.ts +9 -0
- package/dist/types/structured-content-link-value.d.ts +5 -0
- package/dist/types/structured-content-node-base.d.ts +7 -0
- package/dist/types/structured-content-node-layout.d.ts +14 -0
- package/dist/types/structured-content-root.d.ts +15 -0
- package/dist/types/structured-content-space-node.d.ts +7 -0
- package/dist/types/structured-content-table-boolean-column.d.ts +7 -0
- package/dist/types/structured-content-table-column-base.d.ts +6 -0
- package/dist/types/structured-content-table-column-sort-config.d.ts +8 -0
- package/dist/types/structured-content-table-date-column.d.ts +7 -0
- package/dist/types/structured-content-table-date-range-filter.d.ts +11 -0
- package/dist/types/structured-content-table-date-time-column.d.ts +7 -0
- package/dist/types/structured-content-table-default-avatar-column.d.ts +8 -0
- package/dist/types/structured-content-table-link-column.d.ts +7 -0
- package/dist/types/structured-content-table-named-column-base.d.ts +5 -0
- package/dist/types/structured-content-table-node.d.ts +13 -0
- package/dist/types/structured-content-table-number-column.d.ts +7 -0
- package/dist/types/structured-content-table-pagination.d.ts +3 -0
- package/dist/types/structured-content-table-select-filter.d.ts +8 -0
- package/dist/types/structured-content-table-tag-column.d.ts +7 -0
- package/dist/types/structured-content-table-text-column.d.ts +7 -0
- package/dist/types/structured-content-table-time-column.d.ts +7 -0
- package/dist/types/structured-content-table-toolbar-filter-base.d.ts +3 -0
- package/dist/types/structured-content-table-toolbar.d.ts +8 -0
- package/dist/types/structured-content-tag-node.d.ts +9 -0
- package/dist/types/structured-content-tag-value.d.ts +7 -0
- package/dist/types/structured-content-text-node.d.ts +9 -0
- package/dist/types/structured-content.d.ts +21 -205
- package/dist/types/todo-activity.d.ts +4 -2
- package/dist/types/todo-assignee.d.ts +8 -0
- package/dist/types/todo-checklist-item.d.ts +11 -0
- package/dist/types/todo-checklist.d.ts +10 -0
- package/dist/types/todo-comment-reaction.d.ts +7 -0
- package/dist/types/todo-comment.d.ts +2 -15
- package/dist/types/todo-custom-field-option.d.ts +5 -0
- package/dist/types/todo-custom-field-type.d.ts +26 -0
- package/dist/types/todo-custom-field-value.d.ts +11 -0
- package/dist/types/todo-custom-field.d.ts +9 -40
- package/dist/types/todo-dashboard-widget-type.d.ts +12 -0
- package/dist/types/todo-dashboard-widget.d.ts +17 -0
- package/dist/types/todo-dashboard.d.ts +12 -0
- package/dist/types/todo-dependency-type.d.ts +1 -0
- package/dist/types/todo-dependency.d.ts +10 -0
- package/dist/types/todo-doc.d.ts +17 -0
- package/dist/types/todo-document.d.ts +1 -1
- package/dist/types/todo-folder.d.ts +3 -55
- package/dist/types/todo-json-object.d.ts +5 -0
- package/dist/types/todo-json-value.d.ts +4 -0
- package/dist/types/todo-list-field-config.d.ts +4 -43
- package/dist/types/todo-list-field-entry.d.ts +13 -0
- package/dist/types/todo-list-item.d.ts +8 -0
- package/dist/types/todo-list-member.d.ts +11 -0
- package/dist/types/todo-list.d.ts +2 -5
- package/dist/types/todo-people-field-options.d.ts +4 -0
- package/dist/types/todo-recurrence-settings.d.ts +7 -0
- package/dist/types/todo-space-member-role.d.ts +1 -0
- package/dist/types/todo-space-member.d.ts +11 -0
- package/dist/types/todo-space-visibility.d.ts +1 -0
- package/dist/types/todo-space.d.ts +5 -33
- package/dist/types/todo-status.d.ts +3 -2
- package/dist/types/todo-system-field.d.ts +7 -0
- package/dist/types/todo-tag-assignment.d.ts +6 -0
- package/dist/types/todo-tag.d.ts +2 -1
- package/dist/types/todo-time-entry.d.ts +12 -0
- package/dist/types/todo-view-type.d.ts +1 -0
- package/dist/types/todo-view.d.ts +10 -72
- package/dist/types/todo-watcher.d.ts +6 -0
- package/dist/types/todo.d.ts +5 -84
- package/package.json +1 -1
- package/dist/types/phone-admin.d.ts +0 -107
|
@@ -1,50 +1,11 @@
|
|
|
1
|
+
import type { ITodoListFieldEntry } from "./todo-list-field-entry";
|
|
2
|
+
|
|
1
3
|
export interface ITodoListFieldConfig {
|
|
2
4
|
id: string;
|
|
3
5
|
createdAt: string;
|
|
4
6
|
updatedAt?: string;
|
|
5
|
-
|
|
6
7
|
listId: string;
|
|
7
|
-
|
|
8
8
|
fields: ITodoListFieldEntry[];
|
|
9
|
+
version: number;
|
|
10
|
+
configVersion: number;
|
|
9
11
|
}
|
|
10
|
-
|
|
11
|
-
export interface ITodoListFieldEntry {
|
|
12
|
-
key: string;
|
|
13
|
-
label: string;
|
|
14
|
-
visible: boolean; // legacy, kept for backward compat
|
|
15
|
-
enabled: boolean; // whether the field is active on this list (shows in detail modal)
|
|
16
|
-
showInList: boolean; // whether the field shows as a column in list/table row views
|
|
17
|
-
order: number;
|
|
18
|
-
type: "system" | "custom";
|
|
19
|
-
fieldId?: string; // for custom fields
|
|
20
|
-
config?: Record<string, any>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/** Default system fields available for list configuration */
|
|
24
|
-
export const SYSTEM_FIELDS: Array<{ key: string; label: string; alwaysVisible?: boolean }> = [
|
|
25
|
-
{ alwaysVisible: true, key: "title", label: "Task Name" },
|
|
26
|
-
{ key: "description", label: "Description" },
|
|
27
|
-
{ key: "statusId", label: "Status" },
|
|
28
|
-
{ key: "priority", label: "Priority" },
|
|
29
|
-
{ key: "assignees", label: "Assignees" },
|
|
30
|
-
{ key: "dueDate", label: "Due Date" },
|
|
31
|
-
{ key: "startDate", label: "Start Date" },
|
|
32
|
-
{ key: "timeEstimate", label: "Time Estimate" },
|
|
33
|
-
{ key: "timeTracked", label: "Time Tracked" },
|
|
34
|
-
{ key: "createdAt", label: "Created Date" },
|
|
35
|
-
{ key: "updatedAt", label: "Updated Date" },
|
|
36
|
-
{ key: "closedAt", label: "Closed Date" },
|
|
37
|
-
{ key: "createdBy", label: "Created By" },
|
|
38
|
-
{ key: "closedBy", label: "Closed By" },
|
|
39
|
-
{ key: "id", label: "Task ID" },
|
|
40
|
-
{ key: "taskType", label: "Task Type" },
|
|
41
|
-
{ key: "parentId", label: "Parent Task" },
|
|
42
|
-
{ key: "children", label: "Subtasks" },
|
|
43
|
-
{ key: "checklists", label: "Checklist" },
|
|
44
|
-
{ key: "tags", label: "Tags" },
|
|
45
|
-
{ key: "watchers", label: "Watchers" },
|
|
46
|
-
{ key: "dependencies", label: "Dependencies" },
|
|
47
|
-
{ key: "sprintPoints", label: "Sprint Points" },
|
|
48
|
-
{ key: "recurringSettings", label: "Recurring Settings" },
|
|
49
|
-
{ key: "estimatedHours", label: "Estimated Hours" },
|
|
50
|
-
];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TodoJsonValue } from "./todo-json-value";
|
|
2
|
+
|
|
3
|
+
export interface ITodoListFieldEntry {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
showInList: boolean;
|
|
9
|
+
order: number;
|
|
10
|
+
type: "system" | "custom";
|
|
11
|
+
fieldId?: string;
|
|
12
|
+
config?: Record<string, TodoJsonValue>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TodoSpaceMemberRole } from "./todo-space-member-role";
|
|
2
|
+
|
|
3
|
+
export interface ITodoListMember {
|
|
4
|
+
id: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt?: string;
|
|
7
|
+
listId: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
role: TodoSpaceMemberRole;
|
|
10
|
+
metadata?: Record<string, unknown>;
|
|
11
|
+
}
|
|
@@ -12,10 +12,7 @@ export interface ITodoList {
|
|
|
12
12
|
folderId?: string;
|
|
13
13
|
|
|
14
14
|
sortOrder: number;
|
|
15
|
+
version: number;
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
metadata?: any;
|
|
17
|
+
metadata?: Record<string, unknown>;
|
|
19
18
|
}
|
|
20
|
-
|
|
21
|
-
import { ITodoListFieldConfig } from "./todo-list-field-config";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TodoSpaceMemberRole = "OWNER" | "ADMIN" | "EDITOR" | "VIEWER";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TodoSpaceMemberRole } from "./todo-space-member-role";
|
|
2
|
+
|
|
3
|
+
export interface ITodoSpaceMember {
|
|
4
|
+
id: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt?: string;
|
|
7
|
+
spaceId: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
role: TodoSpaceMemberRole;
|
|
10
|
+
metadata?: Record<string, unknown>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TodoSpaceVisibility = "PUBLIC" | "PRIVATE";
|
|
@@ -1,44 +1,16 @@
|
|
|
1
|
+
import type { TodoSpaceVisibility } from "./todo-space-visibility";
|
|
2
|
+
|
|
1
3
|
export interface ITodoSpace {
|
|
2
4
|
id: string;
|
|
3
5
|
createdAt: string;
|
|
4
6
|
updatedAt?: string;
|
|
5
7
|
deletedAt?: string;
|
|
6
|
-
|
|
7
8
|
name: string;
|
|
8
9
|
icon?: string;
|
|
9
10
|
color?: string;
|
|
10
|
-
|
|
11
11
|
regionId: string;
|
|
12
|
-
|
|
12
|
+
visibility: TodoSpaceVisibility;
|
|
13
13
|
sortOrder: number;
|
|
14
|
-
|
|
15
|
-
metadata?:
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface ITodoSpaceMember {
|
|
19
|
-
id: string;
|
|
20
|
-
createdAt: string;
|
|
21
|
-
updatedAt?: string;
|
|
22
|
-
|
|
23
|
-
spaceId: string;
|
|
24
|
-
userId: string;
|
|
25
|
-
|
|
26
|
-
role: TodoSpaceMemberRole;
|
|
27
|
-
|
|
28
|
-
metadata?: any;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type TodoSpaceMemberRole = "OWNER" | "ADMIN" | "EDITOR" | "VIEWER";
|
|
32
|
-
|
|
33
|
-
export interface ITodoListMember {
|
|
34
|
-
id: string;
|
|
35
|
-
createdAt: string;
|
|
36
|
-
updatedAt?: string;
|
|
37
|
-
|
|
38
|
-
listId: string;
|
|
39
|
-
userId: string;
|
|
40
|
-
|
|
41
|
-
role: TodoSpaceMemberRole;
|
|
42
|
-
|
|
43
|
-
metadata?: any;
|
|
14
|
+
version: number;
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
44
16
|
}
|
|
@@ -8,13 +8,14 @@ export interface ITodoStatus {
|
|
|
8
8
|
color: string;
|
|
9
9
|
type: TodoStatusType;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
listId: string;
|
|
12
12
|
|
|
13
13
|
sortOrder: number;
|
|
14
14
|
isDefault: boolean;
|
|
15
15
|
isCompletedStatus: boolean;
|
|
16
|
+
version: number;
|
|
16
17
|
|
|
17
|
-
metadata?:
|
|
18
|
+
metadata?: Record<string, unknown>;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export type TodoStatusType = "OPEN" | "IN_PROGRESS" | "DONE" | "CLOSED" | "CUSTOM";
|
package/dist/types/todo-tag.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ITodoTimeEntry {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
todoId: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
startedAt: string;
|
|
8
|
+
stoppedAt?: string;
|
|
9
|
+
duration?: number;
|
|
10
|
+
description?: string;
|
|
11
|
+
metadata?: Record<string, unknown>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TodoViewType = "LIST" | "BOARD" | "GANTT" | "TIMELINE" | "TABLE" | "CALENDAR";
|
|
@@ -1,87 +1,25 @@
|
|
|
1
|
+
import type { TodoJsonValue } from "./todo-json-value";
|
|
2
|
+
import type { TodoViewType } from "./todo-view-type";
|
|
3
|
+
|
|
1
4
|
export interface ITodoView {
|
|
2
5
|
id: string;
|
|
3
6
|
createdAt: string;
|
|
4
7
|
updatedAt?: string;
|
|
5
8
|
deletedAt?: string;
|
|
6
|
-
|
|
7
9
|
name: string;
|
|
8
10
|
type: TodoViewType;
|
|
9
|
-
|
|
10
11
|
spaceId: string;
|
|
11
12
|
listId?: string;
|
|
12
|
-
|
|
13
13
|
createdById: string;
|
|
14
|
-
|
|
15
14
|
isShared: boolean;
|
|
16
15
|
isDefault: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
sortConfig?: any;
|
|
16
|
+
filters?: TodoJsonValue;
|
|
17
|
+
sortConfig?: TodoJsonValue;
|
|
20
18
|
groupBy?: string;
|
|
21
|
-
columnConfig?:
|
|
22
|
-
viewConfig?:
|
|
23
|
-
|
|
19
|
+
columnConfig?: TodoJsonValue;
|
|
20
|
+
viewConfig?: TodoJsonValue;
|
|
24
21
|
sortOrder: number;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export type TodoViewType = "LIST" | "BOARD" | "GANTT" | "TIMELINE" | "TABLE" | "CALENDAR";
|
|
30
|
-
|
|
31
|
-
export interface ITodoDashboard {
|
|
32
|
-
id: string;
|
|
33
|
-
createdAt: string;
|
|
34
|
-
updatedAt?: string;
|
|
35
|
-
|
|
36
|
-
spaceId: string;
|
|
37
|
-
listId?: string;
|
|
38
|
-
|
|
39
|
-
config: any;
|
|
40
|
-
|
|
41
|
-
widgets?: ITodoDashboardWidget[];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface ITodoDashboardWidget {
|
|
45
|
-
id: string;
|
|
46
|
-
createdAt: string;
|
|
47
|
-
updatedAt?: string;
|
|
48
|
-
|
|
49
|
-
dashboardId: string;
|
|
50
|
-
type: TodoDashboardWidgetType;
|
|
51
|
-
config: any;
|
|
52
|
-
|
|
53
|
-
x: number;
|
|
54
|
-
y: number;
|
|
55
|
-
w: number;
|
|
56
|
-
h: number;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export type TodoDashboardWidgetType =
|
|
60
|
-
| "STATUS_BREAKDOWN"
|
|
61
|
-
| "PRIORITY_BREAKDOWN"
|
|
62
|
-
| "ASSIGNEE_WORKLOAD"
|
|
63
|
-
| "DUE_DATE_CALENDAR"
|
|
64
|
-
| "RECENT_ACTIVITY"
|
|
65
|
-
| "COMPLETION_TREND"
|
|
66
|
-
| "OVERDUE_TODOS"
|
|
67
|
-
| "BURNDOWN_CHART"
|
|
68
|
-
| "TAG_DISTRIBUTION"
|
|
69
|
-
| "VELOCITY"
|
|
70
|
-
| "STATS_CARD";
|
|
71
|
-
|
|
72
|
-
export interface ITodoTimeEntry {
|
|
73
|
-
id: string;
|
|
74
|
-
createdAt: string;
|
|
75
|
-
updatedAt?: string;
|
|
76
|
-
|
|
77
|
-
todoId: string;
|
|
78
|
-
userId: string;
|
|
79
|
-
|
|
80
|
-
startedAt: string;
|
|
81
|
-
stoppedAt?: string;
|
|
82
|
-
duration?: number;
|
|
83
|
-
|
|
84
|
-
description?: string;
|
|
85
|
-
|
|
86
|
-
metadata?: any;
|
|
22
|
+
version: number;
|
|
23
|
+
configVersion: number;
|
|
24
|
+
metadata?: Record<string, unknown>;
|
|
87
25
|
}
|
package/dist/types/todo.d.ts
CHANGED
|
@@ -1,103 +1,24 @@
|
|
|
1
|
+
import type { TodoRecurrenceSettings } from "./todo-recurrence-settings";
|
|
2
|
+
|
|
1
3
|
export interface ITodo {
|
|
2
4
|
id: string;
|
|
3
5
|
createdAt: string;
|
|
4
6
|
updatedAt?: string;
|
|
5
7
|
deletedAt?: string;
|
|
6
|
-
|
|
8
|
+
version: number;
|
|
7
9
|
title: string;
|
|
8
10
|
description?: string;
|
|
9
|
-
|
|
10
11
|
statusId: string;
|
|
11
|
-
priority: TodoPriority;
|
|
12
|
-
|
|
13
12
|
listId: string;
|
|
14
13
|
spaceId: string;
|
|
15
|
-
|
|
16
14
|
createdById: string;
|
|
17
15
|
closedById?: string;
|
|
18
|
-
|
|
19
16
|
startDate?: string;
|
|
20
17
|
dueDate?: string;
|
|
21
18
|
completedAt?: string;
|
|
22
19
|
closedAt?: string;
|
|
23
|
-
|
|
24
20
|
sortOrder: number;
|
|
25
|
-
|
|
26
21
|
parentId?: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
sprintPoints?: number;
|
|
30
|
-
timeEstimate?: number; // seconds
|
|
31
|
-
recurringSettings?: any; // { frequency, interval, days, endDate }
|
|
32
|
-
taskType?: string;
|
|
33
|
-
|
|
34
|
-
metadata?: any;
|
|
22
|
+
recurringSettings?: TodoRecurrenceSettings;
|
|
23
|
+
metadata?: Record<string, unknown>;
|
|
35
24
|
}
|
|
36
|
-
|
|
37
|
-
export interface ITodoAssignee {
|
|
38
|
-
id: string;
|
|
39
|
-
createdAt: string;
|
|
40
|
-
|
|
41
|
-
todoId: string;
|
|
42
|
-
userId?: string;
|
|
43
|
-
employeeId?: string;
|
|
44
|
-
|
|
45
|
-
metadata?: any;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface ITodoWatcher {
|
|
49
|
-
id: string;
|
|
50
|
-
createdAt: string;
|
|
51
|
-
|
|
52
|
-
todoId: string;
|
|
53
|
-
userId: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface ITodoDependency {
|
|
57
|
-
id: string;
|
|
58
|
-
createdAt: string;
|
|
59
|
-
|
|
60
|
-
todoId: string;
|
|
61
|
-
dependsOnId: string;
|
|
62
|
-
|
|
63
|
-
type: TodoDependencyType;
|
|
64
|
-
|
|
65
|
-
createdById: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface ITodoCustomFieldValue {
|
|
69
|
-
id: string;
|
|
70
|
-
createdAt: string;
|
|
71
|
-
updatedAt?: string;
|
|
72
|
-
|
|
73
|
-
todoId: string;
|
|
74
|
-
fieldId: string;
|
|
75
|
-
|
|
76
|
-
value: any;
|
|
77
|
-
|
|
78
|
-
metadata?: any;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface ITodoListItem {
|
|
82
|
-
id: string;
|
|
83
|
-
createdAt: string;
|
|
84
|
-
|
|
85
|
-
todoId: string;
|
|
86
|
-
listId: string;
|
|
87
|
-
|
|
88
|
-
addedById: string;
|
|
89
|
-
|
|
90
|
-
sortOrder: number;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export interface ITodoTagAssignment {
|
|
94
|
-
id: string;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
|
|
97
|
-
todoId: string;
|
|
98
|
-
tagId: string;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export type TodoPriority = "URGENT" | "HIGH" | "NORMAL" | "LOW";
|
|
102
|
-
|
|
103
|
-
export type TodoDependencyType = "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
|
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
|
-
}
|