@automateinc/fleet-types 1.0.76 → 1.0.77-dev.95e7e3f

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" | "USER" | null;
7
+ type: "BUILDING" | "CLIENT" | "EMPLOYEE" | "OTHER" | null;
8
8
 
9
9
  direction: "INCOMING" | "OUTGOING";
10
10
 
@@ -5,6 +5,9 @@ export interface IClientQuotationLine {
5
5
 
6
6
  quotationId: string;
7
7
  employeeGroupId: string;
8
+ employeeContractId: string;
9
+ employeeContractSnapshotId: string;
10
+ employeeCompanyId: string;
8
11
  roleId: string;
9
12
 
10
13
  headcount: number;
@@ -0,0 +1,33 @@
1
+ import { IGender } from "./gender";
2
+
3
+ export interface IClientQuotationPositionVersion {
4
+ id: string;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+
8
+ siteDraftId: string;
9
+ positionId?: string | null;
10
+ positionVersionId?: string | null;
11
+
12
+ name: string;
13
+ status:
14
+ | "UNVERIFIED"
15
+ | "PENDING_VERIFICATION"
16
+ | "VERIFIED"
17
+ | "REJECTED"
18
+ | "CHANGES_NEEDED";
19
+ reason?: string | null;
20
+
21
+ coversSaturday: boolean;
22
+ coversSunday: boolean;
23
+ coversMonday: boolean;
24
+ coversTuesday: boolean;
25
+ coversWednesday: boolean;
26
+ coversThursday: boolean;
27
+ coversFriday: boolean;
28
+
29
+ dailyHours: number;
30
+ gender?: IGender | null;
31
+
32
+ metadata?: any;
33
+ }
@@ -0,0 +1,13 @@
1
+ export interface IClientQuotationSiteDraft {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+
6
+ quotationId: string;
7
+ clientSiteId?: string | null;
8
+ scheduleSiteId?: string | null;
9
+
10
+ name: string;
11
+
12
+ metadata?: any;
13
+ }
@@ -3,7 +3,7 @@ export interface IClientQuotation {
3
3
  createdAt: string;
4
4
  updatedAt: string;
5
5
 
6
- status: "DRAFT" | "PENDING_APPROVAL" | "APPROVED";
6
+ status: "DRAFT" | "PENDING_APPROVAL" | "APPROVED" | "REJECTED" | "CHANGES_NEEDED";
7
7
 
8
8
  clientId: string;
9
9
  createdById?: string;
@@ -13,6 +13,9 @@ export interface IClientQuotation {
13
13
  approvedAt?: string;
14
14
 
15
15
  previousVersionId?: string;
16
+ taxRate: number;
17
+
18
+ reason?: string;
16
19
 
17
20
  metadata?: any;
18
21
  }
@@ -0,0 +1,17 @@
1
+ export interface IContractCost {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+
6
+ name: string;
7
+ value: number;
8
+
9
+ recurrence: "ONE_TIME" | "RECURRING";
10
+
11
+ duration?: number;
12
+ durationType?: "DAY" | "WEEK" | "MONTH" | "YEAR";
13
+
14
+ contractId: string;
15
+
16
+ metadata?: any;
17
+ }
@@ -10,6 +10,7 @@ export interface IContract {
10
10
  updatedAt: Date;
11
11
  dailyHours: number;
12
12
  monthlyDaysOff: number;
13
+ workingDaysPerWeek: number;
13
14
  contractDuration: number;
14
15
  overtimeRate: number;
15
16
  commissionRate: number;
@@ -66,6 +66,8 @@ export * from "./client-field-category";
66
66
  export * from "./client-field-value";
67
67
  export * from "./client-quotation";
68
68
  export * from "./client-quotation-line";
69
+ export * from "./client-quotation-position-version";
70
+ export * from "./client-quotation-site-draft";
69
71
  export * from "./client-request";
70
72
  export * from "./client-request-action";
71
73
  export * from "./client-request-action-execution";
@@ -88,6 +90,7 @@ export * from "./contract";
88
90
  export * from "./contract-allowance";
89
91
  export * from "./contract-benefit";
90
92
  export * from "./contract-deduction";
93
+ export * from "./contract-cost";
91
94
  export * from "./coords";
92
95
  export * from "./day-of-week";
93
96
  export * from "./dispatch";
@@ -128,7 +131,6 @@ export * from "./payment-cycle-document";
128
131
  export * from "./payroll-config";
129
132
  export * from "./permission";
130
133
  export * from "./permission-group";
131
- export * from "./phone-admin";
132
134
  export * from "./phone-line";
133
135
  export * from "./phone-line-commitment";
134
136
  export * from "./phone-line-contract";
@@ -3,7 +3,7 @@ export interface IPositionVersion {
3
3
  updatedAt: Date;
4
4
  createdAt: Date;
5
5
 
6
- status: "UNVERIFIED" | "PENDING_VERIFICATION" | "VERIFIED" | "REJECTED";
6
+ status: "UNVERIFIED" | "PENDING_VERIFICATION" | "VERIFIED" | "REJECTED" | "CHANGES_NEEDED";
7
7
  version: number;
8
8
  coversSaturday: boolean;
9
9
  coversSunday: boolean;
@@ -16,6 +16,8 @@ export interface IPositionVersion {
16
16
  dailyCoverage: string;
17
17
  weeklyCoverage: string;
18
18
 
19
+ reason?: string;
20
+
19
21
  positionId: string;
20
22
  activePositionId: string;
21
23
  metadata?: any;
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.76"
55
+ "version": "1.0.77-dev.95e7e3f"
56
56
  }
@@ -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
- }