@automateinc/fleet-types 1.0.77-dev.dd20dc3 → 1.0.77

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.
@@ -4,7 +4,7 @@ export interface ICallLog {
4
4
  updatedAt: string;
5
5
  deletedAt?: string;
6
6
 
7
- type: "BUILDING" | "CLIENT" | "EMPLOYEE" | "OTHER" | null;
7
+ type: "BUILDING" | "CLIENT" | "EMPLOYEE" | "OTHER" | "USER" | null;
8
8
 
9
9
  direction: "INCOMING" | "OUTGOING";
10
10
 
@@ -0,0 +1,24 @@
1
+ export type IClientChecklistDefinitionScope = "REGION" | "CLIENT";
2
+
3
+ export interface IClientChecklistDefinition {
4
+ id: string;
5
+ createdAt: string;
6
+ updatedAt?: string | null;
7
+
8
+ title: string;
9
+ description?: string | null;
10
+ order: number;
11
+ requiresAttachment: boolean;
12
+
13
+ systemGenerated: boolean;
14
+ scope: IClientChecklistDefinitionScope;
15
+
16
+ regionId: string;
17
+ clientId?: string | null;
18
+ createdById?: string | null;
19
+
20
+ visibleWhenFieldId?: string | null;
21
+ visibleWhenValueString?: string | null;
22
+
23
+ metadata?: any;
24
+ }
@@ -0,0 +1,15 @@
1
+ export interface IClientChecklistItem {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string | null;
5
+
6
+ definitionId: string;
7
+ clientId: string;
8
+ companyId?: string | null;
9
+
10
+ done: boolean;
11
+ completedAt?: string | null;
12
+ completedById?: string | null;
13
+
14
+ metadata?: any;
15
+ }
@@ -56,6 +56,8 @@ export * from "./call-log";
56
56
  export * from "./ceiling";
57
57
  export * from "./client";
58
58
  export * from "./client-class";
59
+ export * from "./client-checklist-definition";
60
+ export * from "./client-checklist-item";
59
61
  export * from "./client-comment";
60
62
  export * from "./client-comment-reaction";
61
63
  export * from "./client-contact";
@@ -139,6 +141,7 @@ export * from "./payment-cycle-document";
139
141
  export * from "./payroll-config";
140
142
  export * from "./permission";
141
143
  export * from "./permission-group";
144
+ export * from "./phone-admin";
142
145
  export * from "./phone-line";
143
146
  export * from "./phone-line-commitment";
144
147
  export * from "./phone-line-contract";
@@ -42,6 +42,8 @@ export type IModel =
42
42
  | "ceiling"
43
43
  | "tag"
44
44
  | "client"
45
+ | "clientChecklistDefinition"
46
+ | "clientChecklistItem"
45
47
  | "clientStatus"
46
48
  | "clientStatusCheck"
47
49
  | "clientStatusCheckRequirement"
@@ -0,0 +1,107 @@
1
+ export interface IPhoneAdminAssignedQueue {
2
+ id: string;
3
+ key: string;
4
+ name: string;
5
+ }
6
+
7
+ export interface IPhoneAdminQueueWorkingHoursDay {
8
+ enabled: boolean;
9
+ startTime: string;
10
+ endTime: string;
11
+ }
12
+
13
+ export interface IPhoneAdminQueueWorkingHours {
14
+ monday: IPhoneAdminQueueWorkingHoursDay;
15
+ tuesday: IPhoneAdminQueueWorkingHoursDay;
16
+ wednesday: IPhoneAdminQueueWorkingHoursDay;
17
+ thursday: IPhoneAdminQueueWorkingHoursDay;
18
+ friday: IPhoneAdminQueueWorkingHoursDay;
19
+ saturday: IPhoneAdminQueueWorkingHoursDay;
20
+ sunday: IPhoneAdminQueueWorkingHoursDay;
21
+ }
22
+
23
+ export interface IPhoneAdminPromptFields {
24
+ onGreetingBusinessHoursFile: string;
25
+ onGreetingAfterHoursFile: string;
26
+ onQueueEntryFile: string;
27
+ onHoldLoopFile: string;
28
+ onQueueMessagePeriodicFile: string;
29
+ onQueuePositionFile: string;
30
+ onConnectingFile: string;
31
+ onTransferFile: string;
32
+ onRingbackFile: string;
33
+ onBusyUnavailableFile: string;
34
+ onNoAnswerFile: string;
35
+ onAnnouncementFile: string;
36
+ onGoodbyeEndCallFile: string;
37
+ }
38
+
39
+ export interface IPhoneAdminAgent {
40
+ id: string;
41
+ orgId: string;
42
+ orgName?: string | null;
43
+ name: string;
44
+ role: "agent" | "user";
45
+ extension: string;
46
+ queueId: string | null;
47
+ queueKey?: string | null;
48
+ queueName?: string | null;
49
+ assignedQueueIds: string[];
50
+ assignedQueues: IPhoneAdminAssignedQueue[];
51
+ sipProfileId: string | null;
52
+ sipProfileName?: string | null;
53
+ metadata?: Record<string, string | undefined>;
54
+ localEntityId?: string;
55
+ syncStatus?: string | null;
56
+ syncError?: string | null;
57
+ syncedAt?: string | null;
58
+ createdAt: string;
59
+ }
60
+
61
+ export interface IPhoneAdminQueue extends IPhoneAdminPromptFields {
62
+ id: string;
63
+ orgId: string;
64
+ key: string;
65
+ name: string;
66
+ sipProfileId: string | null;
67
+ noAnswerTimeoutSeconds: number;
68
+ workingHoursEnabled: boolean;
69
+ workingHoursTimezone: string;
70
+ workingHours: IPhoneAdminQueueWorkingHours;
71
+ localQueueId?: string;
72
+ zoneId?: string;
73
+ employeeGroupId?: string;
74
+ syncStatus?: string | null;
75
+ syncError?: string | null;
76
+ syncedAt?: string | null;
77
+ createdAt: string;
78
+ }
79
+
80
+ export interface IPhoneAdminSystemConfig extends IPhoneAdminPromptFields {
81
+ id: string;
82
+ orgId: string;
83
+ updatedAt: string;
84
+ }
85
+
86
+ export interface IPhoneAdminSummary {
87
+ agentCount: number;
88
+ userCount: number;
89
+ queueCount: number;
90
+ defaultQueueId: string | null;
91
+ phoneConfigured: boolean;
92
+ resolveAgentUrlConfigured: boolean;
93
+ reconcileActionsEnabled?: boolean;
94
+ syncedAgentCount?: number;
95
+ syncedUserCount?: number;
96
+ syncedQueueCount?: number;
97
+ }
98
+
99
+ export interface IPhoneAdminSnapshot {
100
+ agents: IPhoneAdminAgent[];
101
+ users: IPhoneAdminAgent[];
102
+ queues: IPhoneAdminQueue[];
103
+ sipProfiles?: unknown[];
104
+ promptAudio?: unknown[];
105
+ systemConfig?: IPhoneAdminSystemConfig | null;
106
+ summary: IPhoneAdminSummary;
107
+ }
package/package.json CHANGED
@@ -52,5 +52,5 @@
52
52
  "test": "echo \"Error: no test specified\" && exit 1"
53
53
  },
54
54
  "types": "dist/types/index.d.ts",
55
- "version": "1.0.77-dev.dd20dc3"
55
+ "version": "1.0.77"
56
56
  }