@dakkitor/api-contracts 1.1.150 → 1.1.151
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/actives/actives.contract.d.ts +6739 -6739
- package/dist/bookings/bookings.contract.d.ts +8503 -8503
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +1 -2
- package/dist/dashboards/dashboard-widgets.contract.d.ts +166 -166
- package/dist/workers/workers.contract.d.ts +2634 -1717
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +47 -3
- package/package.json +1 -1
|
@@ -53,11 +53,11 @@ export declare const FaPipelineWidgetSchema: z.ZodObject<{
|
|
|
53
53
|
recentCount: z.ZodNumber;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
55
|
total: number;
|
|
56
|
-
byStatus: Partial<Record<"
|
|
56
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
57
57
|
recentCount: number;
|
|
58
58
|
}, {
|
|
59
59
|
total: number;
|
|
60
|
-
byStatus: Partial<Record<"
|
|
60
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
61
61
|
recentCount: number;
|
|
62
62
|
}>;
|
|
63
63
|
summary: z.ZodObject<{
|
|
@@ -77,7 +77,7 @@ export declare const FaPipelineWidgetSchema: z.ZodObject<{
|
|
|
77
77
|
};
|
|
78
78
|
collaborations: {
|
|
79
79
|
total: number;
|
|
80
|
-
byStatus: Partial<Record<"
|
|
80
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
81
81
|
recentCount: number;
|
|
82
82
|
};
|
|
83
83
|
}, {
|
|
@@ -87,7 +87,7 @@ export declare const FaPipelineWidgetSchema: z.ZodObject<{
|
|
|
87
87
|
};
|
|
88
88
|
collaborations: {
|
|
89
89
|
total: number;
|
|
90
|
-
byStatus: Partial<Record<"
|
|
90
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
91
91
|
recentCount: number;
|
|
92
92
|
};
|
|
93
93
|
}>;
|
|
@@ -101,12 +101,12 @@ export declare const FaClientsWidgetSchema: z.ZodObject<{
|
|
|
101
101
|
pendingVerification: z.ZodNumber;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
103
|
total: number;
|
|
104
|
-
byStatus: Partial<Record<"
|
|
104
|
+
byStatus: Partial<Record<"BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION", number>>;
|
|
105
105
|
recentlyAdded: number;
|
|
106
106
|
pendingVerification: number;
|
|
107
107
|
}, {
|
|
108
108
|
total: number;
|
|
109
|
-
byStatus: Partial<Record<"
|
|
109
|
+
byStatus: Partial<Record<"BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION", number>>;
|
|
110
110
|
recentlyAdded: number;
|
|
111
111
|
pendingVerification: number;
|
|
112
112
|
}>;
|
|
@@ -150,12 +150,12 @@ export declare const FaCallHistoryWidgetSchema: z.ZodObject<{
|
|
|
150
150
|
ownResearchLeadsNew: z.ZodNumber;
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
152
|
totalCalls: number;
|
|
153
|
-
conversionRate: number;
|
|
154
|
-
performanceScore: number;
|
|
155
|
-
performanceTier: "high" | "medium" | "low" | "new";
|
|
156
153
|
callsToday: number;
|
|
157
154
|
averageRatingToday: number;
|
|
158
155
|
efficientCallsToday: number;
|
|
156
|
+
conversionRate: number;
|
|
157
|
+
performanceScore: number;
|
|
158
|
+
performanceTier: "high" | "medium" | "low" | "new";
|
|
159
159
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
160
160
|
assignmentCalls: number;
|
|
161
161
|
followUpCalls: number;
|
|
@@ -166,12 +166,12 @@ export declare const FaCallHistoryWidgetSchema: z.ZodObject<{
|
|
|
166
166
|
ownResearchLeadsNew: number;
|
|
167
167
|
}, {
|
|
168
168
|
totalCalls: number;
|
|
169
|
-
conversionRate: number;
|
|
170
|
-
performanceScore: number;
|
|
171
|
-
performanceTier: "high" | "medium" | "low" | "new";
|
|
172
169
|
callsToday: number;
|
|
173
170
|
averageRatingToday: number;
|
|
174
171
|
efficientCallsToday: number;
|
|
172
|
+
conversionRate: number;
|
|
173
|
+
performanceScore: number;
|
|
174
|
+
performanceTier: "high" | "medium" | "low" | "new";
|
|
175
175
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
176
176
|
assignmentCalls: number;
|
|
177
177
|
followUpCalls: number;
|
|
@@ -191,14 +191,14 @@ export declare const AllAgentsCallHistoryQuerySchema: z.ZodObject<{
|
|
|
191
191
|
date: z.ZodOptional<z.ZodString>;
|
|
192
192
|
view: z.ZodOptional<z.ZodEnum<["FA", "SA"]>>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
limit: number;
|
|
195
194
|
page: number;
|
|
195
|
+
limit: number;
|
|
196
196
|
date?: string | undefined;
|
|
197
197
|
view?: "SA" | "FA" | undefined;
|
|
198
198
|
}, {
|
|
199
199
|
date?: string | undefined;
|
|
200
|
-
limit?: number | undefined;
|
|
201
200
|
page?: number | undefined;
|
|
201
|
+
limit?: number | undefined;
|
|
202
202
|
view?: "SA" | "FA" | undefined;
|
|
203
203
|
}>;
|
|
204
204
|
/**
|
|
@@ -210,20 +210,20 @@ export declare const FaActivesWidgetSchema: z.ZodObject<{
|
|
|
210
210
|
byStatusFa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
212
212
|
total: number;
|
|
213
|
-
byStatusFa: Partial<Record<"
|
|
213
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
214
214
|
}, {
|
|
215
215
|
total: number;
|
|
216
|
-
byStatusFa: Partial<Record<"
|
|
216
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
217
217
|
}>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
219
|
today: {
|
|
220
220
|
total: number;
|
|
221
|
-
byStatusFa: Partial<Record<"
|
|
221
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
222
222
|
};
|
|
223
223
|
}, {
|
|
224
224
|
today: {
|
|
225
225
|
total: number;
|
|
226
|
-
byStatusFa: Partial<Record<"
|
|
226
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
227
227
|
};
|
|
228
228
|
}>;
|
|
229
229
|
/**
|
|
@@ -304,20 +304,20 @@ export declare const SaActivesWidgetSchema: z.ZodObject<{
|
|
|
304
304
|
byStatusSa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
305
305
|
}, "strip", z.ZodTypeAny, {
|
|
306
306
|
total: number;
|
|
307
|
-
byStatusSa: Partial<Record<"
|
|
307
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
308
308
|
}, {
|
|
309
309
|
total: number;
|
|
310
|
-
byStatusSa: Partial<Record<"
|
|
310
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
311
311
|
}>;
|
|
312
312
|
}, "strip", z.ZodTypeAny, {
|
|
313
313
|
today: {
|
|
314
314
|
total: number;
|
|
315
|
-
byStatusSa: Partial<Record<"
|
|
315
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
316
316
|
};
|
|
317
317
|
}, {
|
|
318
318
|
today: {
|
|
319
319
|
total: number;
|
|
320
|
-
byStatusSa: Partial<Record<"
|
|
320
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
321
321
|
};
|
|
322
322
|
}>;
|
|
323
323
|
/**
|
|
@@ -330,10 +330,10 @@ export declare const AdminFaAggregateSchema: z.ZodObject<{
|
|
|
330
330
|
byStatusFa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
331
331
|
}, "strip", z.ZodTypeAny, {
|
|
332
332
|
total: number;
|
|
333
|
-
byStatusFa: Partial<Record<"
|
|
333
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
334
334
|
}, {
|
|
335
335
|
total: number;
|
|
336
|
-
byStatusFa: Partial<Record<"
|
|
336
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
337
337
|
}>;
|
|
338
338
|
bookings: z.ZodObject<{
|
|
339
339
|
totalToday: z.ZodNumber;
|
|
@@ -383,10 +383,10 @@ export declare const AdminFaAggregateSchema: z.ZodObject<{
|
|
|
383
383
|
ownResearchLeadsNew: z.ZodNumber;
|
|
384
384
|
}, "strip", z.ZodTypeAny, {
|
|
385
385
|
totalCalls: number;
|
|
386
|
-
conversionRate: number;
|
|
387
386
|
callsToday: number;
|
|
388
387
|
averageRatingToday: number;
|
|
389
388
|
efficientCallsToday: number;
|
|
389
|
+
conversionRate: number;
|
|
390
390
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
391
391
|
assignmentCalls: number;
|
|
392
392
|
followUpCalls: number;
|
|
@@ -398,10 +398,10 @@ export declare const AdminFaAggregateSchema: z.ZodObject<{
|
|
|
398
398
|
averagePerformanceScore: number;
|
|
399
399
|
}, {
|
|
400
400
|
totalCalls: number;
|
|
401
|
-
conversionRate: number;
|
|
402
401
|
callsToday: number;
|
|
403
402
|
averageRatingToday: number;
|
|
404
403
|
efficientCallsToday: number;
|
|
404
|
+
conversionRate: number;
|
|
405
405
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
406
406
|
assignmentCalls: number;
|
|
407
407
|
followUpCalls: number;
|
|
@@ -425,14 +425,14 @@ export declare const AdminFaAggregateSchema: z.ZodObject<{
|
|
|
425
425
|
};
|
|
426
426
|
actives: {
|
|
427
427
|
total: number;
|
|
428
|
-
byStatusFa: Partial<Record<"
|
|
428
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
429
429
|
};
|
|
430
430
|
callMetrics: {
|
|
431
431
|
totalCalls: number;
|
|
432
|
-
conversionRate: number;
|
|
433
432
|
callsToday: number;
|
|
434
433
|
averageRatingToday: number;
|
|
435
434
|
efficientCallsToday: number;
|
|
435
|
+
conversionRate: number;
|
|
436
436
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
437
437
|
assignmentCalls: number;
|
|
438
438
|
followUpCalls: number;
|
|
@@ -456,14 +456,14 @@ export declare const AdminFaAggregateSchema: z.ZodObject<{
|
|
|
456
456
|
};
|
|
457
457
|
actives: {
|
|
458
458
|
total: number;
|
|
459
|
-
byStatusFa: Partial<Record<"
|
|
459
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
460
460
|
};
|
|
461
461
|
callMetrics: {
|
|
462
462
|
totalCalls: number;
|
|
463
|
-
conversionRate: number;
|
|
464
463
|
callsToday: number;
|
|
465
464
|
averageRatingToday: number;
|
|
466
465
|
efficientCallsToday: number;
|
|
466
|
+
conversionRate: number;
|
|
467
467
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
468
468
|
assignmentCalls: number;
|
|
469
469
|
followUpCalls: number;
|
|
@@ -486,10 +486,10 @@ export declare const AdminSaAggregateSchema: z.ZodObject<{
|
|
|
486
486
|
byStatusSa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
487
487
|
}, "strip", z.ZodTypeAny, {
|
|
488
488
|
total: number;
|
|
489
|
-
byStatusSa: Partial<Record<"
|
|
489
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
490
490
|
}, {
|
|
491
491
|
total: number;
|
|
492
|
-
byStatusSa: Partial<Record<"
|
|
492
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
493
493
|
}>;
|
|
494
494
|
bookings: z.ZodObject<{
|
|
495
495
|
totalToday: z.ZodNumber;
|
|
@@ -528,6 +528,10 @@ export declare const AdminSaAggregateSchema: z.ZodObject<{
|
|
|
528
528
|
}>;
|
|
529
529
|
agentCount: z.ZodNumber;
|
|
530
530
|
}, "strip", z.ZodTypeAny, {
|
|
531
|
+
workers: {
|
|
532
|
+
total: number;
|
|
533
|
+
addedToday: number;
|
|
534
|
+
};
|
|
531
535
|
bookings: {
|
|
532
536
|
byStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
533
537
|
totalToday: number;
|
|
@@ -539,14 +543,14 @@ export declare const AdminSaAggregateSchema: z.ZodObject<{
|
|
|
539
543
|
};
|
|
540
544
|
actives: {
|
|
541
545
|
total: number;
|
|
542
|
-
byStatusSa: Partial<Record<"
|
|
546
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
543
547
|
};
|
|
548
|
+
agentCount: number;
|
|
549
|
+
}, {
|
|
544
550
|
workers: {
|
|
545
551
|
total: number;
|
|
546
552
|
addedToday: number;
|
|
547
553
|
};
|
|
548
|
-
agentCount: number;
|
|
549
|
-
}, {
|
|
550
554
|
bookings: {
|
|
551
555
|
byStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
552
556
|
totalToday: number;
|
|
@@ -558,11 +562,7 @@ export declare const AdminSaAggregateSchema: z.ZodObject<{
|
|
|
558
562
|
};
|
|
559
563
|
actives: {
|
|
560
564
|
total: number;
|
|
561
|
-
byStatusSa: Partial<Record<"
|
|
562
|
-
};
|
|
563
|
-
workers: {
|
|
564
|
-
total: number;
|
|
565
|
-
addedToday: number;
|
|
565
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
566
566
|
};
|
|
567
567
|
agentCount: number;
|
|
568
568
|
}>;
|
|
@@ -577,11 +577,11 @@ export declare const ActivesTrendSchema: z.ZodObject<{
|
|
|
577
577
|
}, "strip", z.ZodTypeAny, {
|
|
578
578
|
date: string;
|
|
579
579
|
total: number;
|
|
580
|
-
byStatus: Partial<Record<"
|
|
580
|
+
byStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
581
581
|
}, {
|
|
582
582
|
date: string;
|
|
583
583
|
total: number;
|
|
584
|
-
byStatus: Partial<Record<"
|
|
584
|
+
byStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
585
585
|
}>, "many">;
|
|
586
586
|
summary: z.ZodObject<{
|
|
587
587
|
averageDaily: z.ZodNumber;
|
|
@@ -597,27 +597,27 @@ export declare const ActivesTrendSchema: z.ZodObject<{
|
|
|
597
597
|
peakValue: number;
|
|
598
598
|
}>;
|
|
599
599
|
}, "strip", z.ZodTypeAny, {
|
|
600
|
-
data: {
|
|
601
|
-
date: string;
|
|
602
|
-
total: number;
|
|
603
|
-
byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
604
|
-
}[];
|
|
605
600
|
summary: {
|
|
606
601
|
averageDaily: number;
|
|
607
602
|
peakDay: string | null;
|
|
608
603
|
peakValue: number;
|
|
609
604
|
};
|
|
610
|
-
}, {
|
|
611
605
|
data: {
|
|
612
606
|
date: string;
|
|
613
607
|
total: number;
|
|
614
|
-
byStatus: Partial<Record<"
|
|
608
|
+
byStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
615
609
|
}[];
|
|
610
|
+
}, {
|
|
616
611
|
summary: {
|
|
617
612
|
averageDaily: number;
|
|
618
613
|
peakDay: string | null;
|
|
619
614
|
peakValue: number;
|
|
620
615
|
};
|
|
616
|
+
data: {
|
|
617
|
+
date: string;
|
|
618
|
+
total: number;
|
|
619
|
+
byStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
620
|
+
}[];
|
|
621
621
|
}>;
|
|
622
622
|
/**
|
|
623
623
|
* Bookings trend data for charts
|
|
@@ -647,25 +647,25 @@ export declare const BookingsTrendSchema: z.ZodObject<{
|
|
|
647
647
|
totalCreated: number;
|
|
648
648
|
}>;
|
|
649
649
|
}, "strip", z.ZodTypeAny, {
|
|
650
|
+
summary: {
|
|
651
|
+
averageDaily: number;
|
|
652
|
+
totalCreated: number;
|
|
653
|
+
};
|
|
650
654
|
data: {
|
|
651
655
|
date: string;
|
|
652
656
|
total: number;
|
|
653
657
|
byStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
654
658
|
}[];
|
|
659
|
+
}, {
|
|
655
660
|
summary: {
|
|
656
661
|
averageDaily: number;
|
|
657
662
|
totalCreated: number;
|
|
658
663
|
};
|
|
659
|
-
}, {
|
|
660
664
|
data: {
|
|
661
665
|
date: string;
|
|
662
666
|
total: number;
|
|
663
667
|
byStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
664
668
|
}[];
|
|
665
|
-
summary: {
|
|
666
|
-
averageDaily: number;
|
|
667
|
-
totalCreated: number;
|
|
668
|
-
};
|
|
669
669
|
}>;
|
|
670
670
|
/**
|
|
671
671
|
* Call performance trend data for charts
|
|
@@ -704,6 +704,11 @@ export declare const CallPerformanceTrendSchema: z.ZodObject<{
|
|
|
704
704
|
overallAverageRating: number;
|
|
705
705
|
}>;
|
|
706
706
|
}, "strip", z.ZodTypeAny, {
|
|
707
|
+
summary: {
|
|
708
|
+
averageDailyCalls: number;
|
|
709
|
+
overallConversionRate: number;
|
|
710
|
+
overallAverageRating: number;
|
|
711
|
+
};
|
|
707
712
|
data: {
|
|
708
713
|
date: string;
|
|
709
714
|
totalCalls: number;
|
|
@@ -711,12 +716,12 @@ export declare const CallPerformanceTrendSchema: z.ZodObject<{
|
|
|
711
716
|
performanceScore: number;
|
|
712
717
|
averageRating: number;
|
|
713
718
|
}[];
|
|
719
|
+
}, {
|
|
714
720
|
summary: {
|
|
715
721
|
averageDailyCalls: number;
|
|
716
722
|
overallConversionRate: number;
|
|
717
723
|
overallAverageRating: number;
|
|
718
724
|
};
|
|
719
|
-
}, {
|
|
720
725
|
data: {
|
|
721
726
|
date: string;
|
|
722
727
|
totalCalls: number;
|
|
@@ -724,11 +729,6 @@ export declare const CallPerformanceTrendSchema: z.ZodObject<{
|
|
|
724
729
|
performanceScore: number;
|
|
725
730
|
averageRating: number;
|
|
726
731
|
}[];
|
|
727
|
-
summary: {
|
|
728
|
-
averageDailyCalls: number;
|
|
729
|
-
overallConversionRate: number;
|
|
730
|
-
overallAverageRating: number;
|
|
731
|
-
};
|
|
732
732
|
}>;
|
|
733
733
|
/**
|
|
734
734
|
* Workers trend data for charts (SA only)
|
|
@@ -758,25 +758,25 @@ export declare const WorkersTrendSchema: z.ZodObject<{
|
|
|
758
758
|
averagePerDay: number;
|
|
759
759
|
}>;
|
|
760
760
|
}, "strip", z.ZodTypeAny, {
|
|
761
|
+
summary: {
|
|
762
|
+
totalAdded: number;
|
|
763
|
+
averagePerDay: number;
|
|
764
|
+
};
|
|
761
765
|
data: {
|
|
762
766
|
date: string;
|
|
763
767
|
added: number;
|
|
764
768
|
cumulativeTotal: number;
|
|
765
769
|
}[];
|
|
770
|
+
}, {
|
|
766
771
|
summary: {
|
|
767
772
|
totalAdded: number;
|
|
768
773
|
averagePerDay: number;
|
|
769
774
|
};
|
|
770
|
-
}, {
|
|
771
775
|
data: {
|
|
772
776
|
date: string;
|
|
773
777
|
added: number;
|
|
774
778
|
cumulativeTotal: number;
|
|
775
779
|
}[];
|
|
776
|
-
summary: {
|
|
777
|
-
totalAdded: number;
|
|
778
|
-
averagePerDay: number;
|
|
779
|
-
};
|
|
780
780
|
}>;
|
|
781
781
|
/**
|
|
782
782
|
* Collaborations trend data for charts (FA only)
|
|
@@ -788,11 +788,11 @@ export declare const CollaborationsTrendSchema: z.ZodObject<{
|
|
|
788
788
|
byStatus: z.ZodRecord<z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT", "CHANGED_COMPANY_AND_AGENT"]>, z.ZodNumber>;
|
|
789
789
|
}, "strip", z.ZodTypeAny, {
|
|
790
790
|
date: string;
|
|
791
|
-
byStatus: Partial<Record<"
|
|
791
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
792
792
|
created: number;
|
|
793
793
|
}, {
|
|
794
794
|
date: string;
|
|
795
|
-
byStatus: Partial<Record<"
|
|
795
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
796
796
|
created: number;
|
|
797
797
|
}>, "many">;
|
|
798
798
|
summary: z.ZodObject<{
|
|
@@ -806,25 +806,25 @@ export declare const CollaborationsTrendSchema: z.ZodObject<{
|
|
|
806
806
|
activeCount: number;
|
|
807
807
|
}>;
|
|
808
808
|
}, "strip", z.ZodTypeAny, {
|
|
809
|
-
data: {
|
|
810
|
-
date: string;
|
|
811
|
-
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
812
|
-
created: number;
|
|
813
|
-
}[];
|
|
814
809
|
summary: {
|
|
815
810
|
totalCreated: number;
|
|
816
811
|
activeCount: number;
|
|
817
812
|
};
|
|
818
|
-
}, {
|
|
819
813
|
data: {
|
|
820
814
|
date: string;
|
|
821
|
-
byStatus: Partial<Record<"
|
|
815
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
822
816
|
created: number;
|
|
823
817
|
}[];
|
|
818
|
+
}, {
|
|
824
819
|
summary: {
|
|
825
820
|
totalCreated: number;
|
|
826
821
|
activeCount: number;
|
|
827
822
|
};
|
|
823
|
+
data: {
|
|
824
|
+
date: string;
|
|
825
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
826
|
+
created: number;
|
|
827
|
+
}[];
|
|
828
828
|
}>;
|
|
829
829
|
export declare const dashboardWidgetsContract: {
|
|
830
830
|
getFaPipeline: {
|
|
@@ -847,11 +847,11 @@ export declare const dashboardWidgetsContract: {
|
|
|
847
847
|
recentCount: z.ZodNumber;
|
|
848
848
|
}, "strip", z.ZodTypeAny, {
|
|
849
849
|
total: number;
|
|
850
|
-
byStatus: Partial<Record<"
|
|
850
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
851
851
|
recentCount: number;
|
|
852
852
|
}, {
|
|
853
853
|
total: number;
|
|
854
|
-
byStatus: Partial<Record<"
|
|
854
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
855
855
|
recentCount: number;
|
|
856
856
|
}>;
|
|
857
857
|
summary: z.ZodObject<{
|
|
@@ -871,7 +871,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
871
871
|
};
|
|
872
872
|
collaborations: {
|
|
873
873
|
total: number;
|
|
874
|
-
byStatus: Partial<Record<"
|
|
874
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
875
875
|
recentCount: number;
|
|
876
876
|
};
|
|
877
877
|
}, {
|
|
@@ -881,7 +881,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
881
881
|
};
|
|
882
882
|
collaborations: {
|
|
883
883
|
total: number;
|
|
884
|
-
byStatus: Partial<Record<"
|
|
884
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
885
885
|
recentCount: number;
|
|
886
886
|
};
|
|
887
887
|
}>;
|
|
@@ -907,12 +907,12 @@ export declare const dashboardWidgetsContract: {
|
|
|
907
907
|
pendingVerification: z.ZodNumber;
|
|
908
908
|
}, "strip", z.ZodTypeAny, {
|
|
909
909
|
total: number;
|
|
910
|
-
byStatus: Partial<Record<"
|
|
910
|
+
byStatus: Partial<Record<"BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION", number>>;
|
|
911
911
|
recentlyAdded: number;
|
|
912
912
|
pendingVerification: number;
|
|
913
913
|
}, {
|
|
914
914
|
total: number;
|
|
915
|
-
byStatus: Partial<Record<"
|
|
915
|
+
byStatus: Partial<Record<"BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION", number>>;
|
|
916
916
|
recentlyAdded: number;
|
|
917
917
|
pendingVerification: number;
|
|
918
918
|
}>;
|
|
@@ -980,12 +980,12 @@ export declare const dashboardWidgetsContract: {
|
|
|
980
980
|
ownResearchLeadsNew: z.ZodNumber;
|
|
981
981
|
}, "strip", z.ZodTypeAny, {
|
|
982
982
|
totalCalls: number;
|
|
983
|
-
conversionRate: number;
|
|
984
|
-
performanceScore: number;
|
|
985
|
-
performanceTier: "high" | "medium" | "low" | "new";
|
|
986
983
|
callsToday: number;
|
|
987
984
|
averageRatingToday: number;
|
|
988
985
|
efficientCallsToday: number;
|
|
986
|
+
conversionRate: number;
|
|
987
|
+
performanceScore: number;
|
|
988
|
+
performanceTier: "high" | "medium" | "low" | "new";
|
|
989
989
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
990
990
|
assignmentCalls: number;
|
|
991
991
|
followUpCalls: number;
|
|
@@ -996,12 +996,12 @@ export declare const dashboardWidgetsContract: {
|
|
|
996
996
|
ownResearchLeadsNew: number;
|
|
997
997
|
}, {
|
|
998
998
|
totalCalls: number;
|
|
999
|
-
conversionRate: number;
|
|
1000
|
-
performanceScore: number;
|
|
1001
|
-
performanceTier: "high" | "medium" | "low" | "new";
|
|
1002
999
|
callsToday: number;
|
|
1003
1000
|
averageRatingToday: number;
|
|
1004
1001
|
efficientCallsToday: number;
|
|
1002
|
+
conversionRate: number;
|
|
1003
|
+
performanceScore: number;
|
|
1004
|
+
performanceTier: "high" | "medium" | "low" | "new";
|
|
1005
1005
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
1006
1006
|
assignmentCalls: number;
|
|
1007
1007
|
followUpCalls: number;
|
|
@@ -1032,20 +1032,20 @@ export declare const dashboardWidgetsContract: {
|
|
|
1032
1032
|
byStatusFa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
1033
1033
|
}, "strip", z.ZodTypeAny, {
|
|
1034
1034
|
total: number;
|
|
1035
|
-
byStatusFa: Partial<Record<"
|
|
1035
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1036
1036
|
}, {
|
|
1037
1037
|
total: number;
|
|
1038
|
-
byStatusFa: Partial<Record<"
|
|
1038
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1039
1039
|
}>;
|
|
1040
1040
|
}, "strip", z.ZodTypeAny, {
|
|
1041
1041
|
today: {
|
|
1042
1042
|
total: number;
|
|
1043
|
-
byStatusFa: Partial<Record<"
|
|
1043
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1044
1044
|
};
|
|
1045
1045
|
}, {
|
|
1046
1046
|
today: {
|
|
1047
1047
|
total: number;
|
|
1048
|
-
byStatusFa: Partial<Record<"
|
|
1048
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1049
1049
|
};
|
|
1050
1050
|
}>;
|
|
1051
1051
|
};
|
|
@@ -1174,20 +1174,20 @@ export declare const dashboardWidgetsContract: {
|
|
|
1174
1174
|
byStatusSa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
1175
1175
|
}, "strip", z.ZodTypeAny, {
|
|
1176
1176
|
total: number;
|
|
1177
|
-
byStatusSa: Partial<Record<"
|
|
1177
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1178
1178
|
}, {
|
|
1179
1179
|
total: number;
|
|
1180
|
-
byStatusSa: Partial<Record<"
|
|
1180
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1181
1181
|
}>;
|
|
1182
1182
|
}, "strip", z.ZodTypeAny, {
|
|
1183
1183
|
today: {
|
|
1184
1184
|
total: number;
|
|
1185
|
-
byStatusSa: Partial<Record<"
|
|
1185
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1186
1186
|
};
|
|
1187
1187
|
}, {
|
|
1188
1188
|
today: {
|
|
1189
1189
|
total: number;
|
|
1190
|
-
byStatusSa: Partial<Record<"
|
|
1190
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1191
1191
|
};
|
|
1192
1192
|
}>;
|
|
1193
1193
|
};
|
|
@@ -1201,14 +1201,14 @@ export declare const dashboardWidgetsContract: {
|
|
|
1201
1201
|
date: z.ZodOptional<z.ZodString>;
|
|
1202
1202
|
view: z.ZodOptional<z.ZodEnum<["FA", "SA"]>>;
|
|
1203
1203
|
}, "strip", z.ZodTypeAny, {
|
|
1204
|
-
limit: number;
|
|
1205
1204
|
page: number;
|
|
1205
|
+
limit: number;
|
|
1206
1206
|
date?: string | undefined;
|
|
1207
1207
|
view?: "SA" | "FA" | undefined;
|
|
1208
1208
|
}, {
|
|
1209
1209
|
date?: string | undefined;
|
|
1210
|
-
limit?: number | undefined;
|
|
1211
1210
|
page?: number | undefined;
|
|
1211
|
+
limit?: number | undefined;
|
|
1212
1212
|
view?: "SA" | "FA" | undefined;
|
|
1213
1213
|
}>;
|
|
1214
1214
|
summary: "Get daily stats for all agents (Admin)";
|
|
@@ -1267,18 +1267,18 @@ export declare const dashboardWidgetsContract: {
|
|
|
1267
1267
|
ownResearchLeadsAdded: number;
|
|
1268
1268
|
ownResearchLeadsExistingInSystem: number;
|
|
1269
1269
|
ownResearchLeadsNew: number;
|
|
1270
|
+
averageRating: number;
|
|
1270
1271
|
agentName: string;
|
|
1271
1272
|
activesFaTotal: number;
|
|
1272
|
-
activesFaByStatus: Partial<Record<"
|
|
1273
|
+
activesFaByStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1273
1274
|
activesSaTotal: number;
|
|
1274
|
-
activesSaByStatus: Partial<Record<"
|
|
1275
|
+
activesSaByStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1275
1276
|
bookingsFaTotal: number;
|
|
1276
1277
|
bookingsFaByStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1277
1278
|
bookingsFaByCategory: Partial<Record<import("../bookings/bookings.contract").BookingCategory, number>>;
|
|
1278
1279
|
bookingsSaTotal: number;
|
|
1279
1280
|
bookingsSaByStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1280
1281
|
bookingsSaByCategory: Partial<Record<import("../bookings/bookings.contract").BookingCategory, number>>;
|
|
1281
|
-
averageRating: number;
|
|
1282
1282
|
callsOnDate: number;
|
|
1283
1283
|
efficientCalls: number;
|
|
1284
1284
|
conversionsOnDate: number;
|
|
@@ -1305,18 +1305,18 @@ export declare const dashboardWidgetsContract: {
|
|
|
1305
1305
|
ownResearchLeadsAdded: number;
|
|
1306
1306
|
ownResearchLeadsExistingInSystem: number;
|
|
1307
1307
|
ownResearchLeadsNew: number;
|
|
1308
|
+
averageRating: number;
|
|
1308
1309
|
agentName: string;
|
|
1309
1310
|
activesFaTotal: number;
|
|
1310
|
-
activesFaByStatus: Partial<Record<"
|
|
1311
|
+
activesFaByStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1311
1312
|
activesSaTotal: number;
|
|
1312
|
-
activesSaByStatus: Partial<Record<"
|
|
1313
|
+
activesSaByStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1313
1314
|
bookingsFaTotal: number;
|
|
1314
1315
|
bookingsFaByStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1315
1316
|
bookingsFaByCategory: Partial<Record<import("../bookings/bookings.contract").BookingCategory, number>>;
|
|
1316
1317
|
bookingsSaTotal: number;
|
|
1317
1318
|
bookingsSaByStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1318
1319
|
bookingsSaByCategory: Partial<Record<import("../bookings/bookings.contract").BookingCategory, number>>;
|
|
1319
|
-
averageRating: number;
|
|
1320
1320
|
callsOnDate: number;
|
|
1321
1321
|
efficientCalls: number;
|
|
1322
1322
|
conversionsOnDate: number;
|
|
@@ -1337,6 +1337,9 @@ export declare const dashboardWidgetsContract: {
|
|
|
1337
1337
|
currentPage: z.ZodNumber;
|
|
1338
1338
|
totalPages: z.ZodNumber;
|
|
1339
1339
|
}, "strip", z.ZodTypeAny, {
|
|
1340
|
+
totalCount: number;
|
|
1341
|
+
totalPages: number;
|
|
1342
|
+
limit: number;
|
|
1340
1343
|
items: {
|
|
1341
1344
|
agentId: string;
|
|
1342
1345
|
totalCalls: number;
|
|
@@ -1350,18 +1353,18 @@ export declare const dashboardWidgetsContract: {
|
|
|
1350
1353
|
ownResearchLeadsAdded: number;
|
|
1351
1354
|
ownResearchLeadsExistingInSystem: number;
|
|
1352
1355
|
ownResearchLeadsNew: number;
|
|
1356
|
+
averageRating: number;
|
|
1353
1357
|
agentName: string;
|
|
1354
1358
|
activesFaTotal: number;
|
|
1355
|
-
activesFaByStatus: Partial<Record<"
|
|
1359
|
+
activesFaByStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1356
1360
|
activesSaTotal: number;
|
|
1357
|
-
activesSaByStatus: Partial<Record<"
|
|
1361
|
+
activesSaByStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1358
1362
|
bookingsFaTotal: number;
|
|
1359
1363
|
bookingsFaByStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1360
1364
|
bookingsFaByCategory: Partial<Record<import("../bookings/bookings.contract").BookingCategory, number>>;
|
|
1361
1365
|
bookingsSaTotal: number;
|
|
1362
1366
|
bookingsSaByStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1363
1367
|
bookingsSaByCategory: Partial<Record<import("../bookings/bookings.contract").BookingCategory, number>>;
|
|
1364
|
-
averageRating: number;
|
|
1365
1368
|
callsOnDate: number;
|
|
1366
1369
|
efficientCalls: number;
|
|
1367
1370
|
conversionsOnDate: number;
|
|
@@ -1376,12 +1379,12 @@ export declare const dashboardWidgetsContract: {
|
|
|
1376
1379
|
bookingsSaWaitingForConfirmation?: number | undefined;
|
|
1377
1380
|
bookingsSaUpcomingStarts?: number | undefined;
|
|
1378
1381
|
}[];
|
|
1379
|
-
totalCount: number;
|
|
1380
|
-
limit: number;
|
|
1381
1382
|
skip: number;
|
|
1382
1383
|
currentPage: number;
|
|
1383
|
-
totalPages: number;
|
|
1384
1384
|
}, {
|
|
1385
|
+
totalCount: number;
|
|
1386
|
+
totalPages: number;
|
|
1387
|
+
limit: number;
|
|
1385
1388
|
items: {
|
|
1386
1389
|
agentId: string;
|
|
1387
1390
|
totalCalls: number;
|
|
@@ -1395,18 +1398,18 @@ export declare const dashboardWidgetsContract: {
|
|
|
1395
1398
|
ownResearchLeadsAdded: number;
|
|
1396
1399
|
ownResearchLeadsExistingInSystem: number;
|
|
1397
1400
|
ownResearchLeadsNew: number;
|
|
1401
|
+
averageRating: number;
|
|
1398
1402
|
agentName: string;
|
|
1399
1403
|
activesFaTotal: number;
|
|
1400
|
-
activesFaByStatus: Partial<Record<"
|
|
1404
|
+
activesFaByStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1401
1405
|
activesSaTotal: number;
|
|
1402
|
-
activesSaByStatus: Partial<Record<"
|
|
1406
|
+
activesSaByStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1403
1407
|
bookingsFaTotal: number;
|
|
1404
1408
|
bookingsFaByStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1405
1409
|
bookingsFaByCategory: Partial<Record<import("../bookings/bookings.contract").BookingCategory, number>>;
|
|
1406
1410
|
bookingsSaTotal: number;
|
|
1407
1411
|
bookingsSaByStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1408
1412
|
bookingsSaByCategory: Partial<Record<import("../bookings/bookings.contract").BookingCategory, number>>;
|
|
1409
|
-
averageRating: number;
|
|
1410
1413
|
callsOnDate: number;
|
|
1411
1414
|
efficientCalls: number;
|
|
1412
1415
|
conversionsOnDate: number;
|
|
@@ -1421,11 +1424,8 @@ export declare const dashboardWidgetsContract: {
|
|
|
1421
1424
|
bookingsSaWaitingForConfirmation?: number | undefined;
|
|
1422
1425
|
bookingsSaUpcomingStarts?: number | undefined;
|
|
1423
1426
|
}[];
|
|
1424
|
-
totalCount: number;
|
|
1425
|
-
limit: number;
|
|
1426
1427
|
skip: number;
|
|
1427
1428
|
currentPage: number;
|
|
1428
|
-
totalPages: number;
|
|
1429
1429
|
}>;
|
|
1430
1430
|
};
|
|
1431
1431
|
};
|
|
@@ -1449,10 +1449,10 @@ export declare const dashboardWidgetsContract: {
|
|
|
1449
1449
|
byStatusFa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
1450
1450
|
}, "strip", z.ZodTypeAny, {
|
|
1451
1451
|
total: number;
|
|
1452
|
-
byStatusFa: Partial<Record<"
|
|
1452
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1453
1453
|
}, {
|
|
1454
1454
|
total: number;
|
|
1455
|
-
byStatusFa: Partial<Record<"
|
|
1455
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1456
1456
|
}>;
|
|
1457
1457
|
bookings: z.ZodObject<{
|
|
1458
1458
|
totalToday: z.ZodNumber;
|
|
@@ -1502,10 +1502,10 @@ export declare const dashboardWidgetsContract: {
|
|
|
1502
1502
|
ownResearchLeadsNew: z.ZodNumber;
|
|
1503
1503
|
}, "strip", z.ZodTypeAny, {
|
|
1504
1504
|
totalCalls: number;
|
|
1505
|
-
conversionRate: number;
|
|
1506
1505
|
callsToday: number;
|
|
1507
1506
|
averageRatingToday: number;
|
|
1508
1507
|
efficientCallsToday: number;
|
|
1508
|
+
conversionRate: number;
|
|
1509
1509
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
1510
1510
|
assignmentCalls: number;
|
|
1511
1511
|
followUpCalls: number;
|
|
@@ -1517,10 +1517,10 @@ export declare const dashboardWidgetsContract: {
|
|
|
1517
1517
|
averagePerformanceScore: number;
|
|
1518
1518
|
}, {
|
|
1519
1519
|
totalCalls: number;
|
|
1520
|
-
conversionRate: number;
|
|
1521
1520
|
callsToday: number;
|
|
1522
1521
|
averageRatingToday: number;
|
|
1523
1522
|
efficientCallsToday: number;
|
|
1523
|
+
conversionRate: number;
|
|
1524
1524
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
1525
1525
|
assignmentCalls: number;
|
|
1526
1526
|
followUpCalls: number;
|
|
@@ -1544,14 +1544,14 @@ export declare const dashboardWidgetsContract: {
|
|
|
1544
1544
|
};
|
|
1545
1545
|
actives: {
|
|
1546
1546
|
total: number;
|
|
1547
|
-
byStatusFa: Partial<Record<"
|
|
1547
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1548
1548
|
};
|
|
1549
1549
|
callMetrics: {
|
|
1550
1550
|
totalCalls: number;
|
|
1551
|
-
conversionRate: number;
|
|
1552
1551
|
callsToday: number;
|
|
1553
1552
|
averageRatingToday: number;
|
|
1554
1553
|
efficientCallsToday: number;
|
|
1554
|
+
conversionRate: number;
|
|
1555
1555
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
1556
1556
|
assignmentCalls: number;
|
|
1557
1557
|
followUpCalls: number;
|
|
@@ -1575,14 +1575,14 @@ export declare const dashboardWidgetsContract: {
|
|
|
1575
1575
|
};
|
|
1576
1576
|
actives: {
|
|
1577
1577
|
total: number;
|
|
1578
|
-
byStatusFa: Partial<Record<"
|
|
1578
|
+
byStatusFa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1579
1579
|
};
|
|
1580
1580
|
callMetrics: {
|
|
1581
1581
|
totalCalls: number;
|
|
1582
|
-
conversionRate: number;
|
|
1583
1582
|
callsToday: number;
|
|
1584
1583
|
averageRatingToday: number;
|
|
1585
1584
|
efficientCallsToday: number;
|
|
1585
|
+
conversionRate: number;
|
|
1586
1586
|
ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
|
|
1587
1587
|
assignmentCalls: number;
|
|
1588
1588
|
followUpCalls: number;
|
|
@@ -1617,10 +1617,10 @@ export declare const dashboardWidgetsContract: {
|
|
|
1617
1617
|
byStatusSa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
1618
1618
|
}, "strip", z.ZodTypeAny, {
|
|
1619
1619
|
total: number;
|
|
1620
|
-
byStatusSa: Partial<Record<"
|
|
1620
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1621
1621
|
}, {
|
|
1622
1622
|
total: number;
|
|
1623
|
-
byStatusSa: Partial<Record<"
|
|
1623
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1624
1624
|
}>;
|
|
1625
1625
|
bookings: z.ZodObject<{
|
|
1626
1626
|
totalToday: z.ZodNumber;
|
|
@@ -1659,6 +1659,10 @@ export declare const dashboardWidgetsContract: {
|
|
|
1659
1659
|
}>;
|
|
1660
1660
|
agentCount: z.ZodNumber;
|
|
1661
1661
|
}, "strip", z.ZodTypeAny, {
|
|
1662
|
+
workers: {
|
|
1663
|
+
total: number;
|
|
1664
|
+
addedToday: number;
|
|
1665
|
+
};
|
|
1662
1666
|
bookings: {
|
|
1663
1667
|
byStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1664
1668
|
totalToday: number;
|
|
@@ -1670,14 +1674,14 @@ export declare const dashboardWidgetsContract: {
|
|
|
1670
1674
|
};
|
|
1671
1675
|
actives: {
|
|
1672
1676
|
total: number;
|
|
1673
|
-
byStatusSa: Partial<Record<"
|
|
1677
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1674
1678
|
};
|
|
1679
|
+
agentCount: number;
|
|
1680
|
+
}, {
|
|
1675
1681
|
workers: {
|
|
1676
1682
|
total: number;
|
|
1677
1683
|
addedToday: number;
|
|
1678
1684
|
};
|
|
1679
|
-
agentCount: number;
|
|
1680
|
-
}, {
|
|
1681
1685
|
bookings: {
|
|
1682
1686
|
byStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1683
1687
|
totalToday: number;
|
|
@@ -1689,11 +1693,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
1689
1693
|
};
|
|
1690
1694
|
actives: {
|
|
1691
1695
|
total: number;
|
|
1692
|
-
byStatusSa: Partial<Record<"
|
|
1693
|
-
};
|
|
1694
|
-
workers: {
|
|
1695
|
-
total: number;
|
|
1696
|
-
addedToday: number;
|
|
1696
|
+
byStatusSa: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1697
1697
|
};
|
|
1698
1698
|
agentCount: number;
|
|
1699
1699
|
}>;
|
|
@@ -1723,11 +1723,11 @@ export declare const dashboardWidgetsContract: {
|
|
|
1723
1723
|
}, "strip", z.ZodTypeAny, {
|
|
1724
1724
|
date: string;
|
|
1725
1725
|
total: number;
|
|
1726
|
-
byStatus: Partial<Record<"
|
|
1726
|
+
byStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1727
1727
|
}, {
|
|
1728
1728
|
date: string;
|
|
1729
1729
|
total: number;
|
|
1730
|
-
byStatus: Partial<Record<"
|
|
1730
|
+
byStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1731
1731
|
}>, "many">;
|
|
1732
1732
|
summary: z.ZodObject<{
|
|
1733
1733
|
averageDaily: z.ZodNumber;
|
|
@@ -1743,27 +1743,27 @@ export declare const dashboardWidgetsContract: {
|
|
|
1743
1743
|
peakValue: number;
|
|
1744
1744
|
}>;
|
|
1745
1745
|
}, "strip", z.ZodTypeAny, {
|
|
1746
|
-
data: {
|
|
1747
|
-
date: string;
|
|
1748
|
-
total: number;
|
|
1749
|
-
byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1750
|
-
}[];
|
|
1751
1746
|
summary: {
|
|
1752
1747
|
averageDaily: number;
|
|
1753
1748
|
peakDay: string | null;
|
|
1754
1749
|
peakValue: number;
|
|
1755
1750
|
};
|
|
1756
|
-
}, {
|
|
1757
1751
|
data: {
|
|
1758
1752
|
date: string;
|
|
1759
1753
|
total: number;
|
|
1760
|
-
byStatus: Partial<Record<"
|
|
1754
|
+
byStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1761
1755
|
}[];
|
|
1756
|
+
}, {
|
|
1762
1757
|
summary: {
|
|
1763
1758
|
averageDaily: number;
|
|
1764
1759
|
peakDay: string | null;
|
|
1765
1760
|
peakValue: number;
|
|
1766
1761
|
};
|
|
1762
|
+
data: {
|
|
1763
|
+
date: string;
|
|
1764
|
+
total: number;
|
|
1765
|
+
byStatus: Partial<Record<"PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1766
|
+
}[];
|
|
1767
1767
|
}>;
|
|
1768
1768
|
};
|
|
1769
1769
|
};
|
|
@@ -1808,25 +1808,25 @@ export declare const dashboardWidgetsContract: {
|
|
|
1808
1808
|
totalCreated: number;
|
|
1809
1809
|
}>;
|
|
1810
1810
|
}, "strip", z.ZodTypeAny, {
|
|
1811
|
+
summary: {
|
|
1812
|
+
averageDaily: number;
|
|
1813
|
+
totalCreated: number;
|
|
1814
|
+
};
|
|
1811
1815
|
data: {
|
|
1812
1816
|
date: string;
|
|
1813
1817
|
total: number;
|
|
1814
1818
|
byStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1815
1819
|
}[];
|
|
1820
|
+
}, {
|
|
1816
1821
|
summary: {
|
|
1817
1822
|
averageDaily: number;
|
|
1818
1823
|
totalCreated: number;
|
|
1819
1824
|
};
|
|
1820
|
-
}, {
|
|
1821
1825
|
data: {
|
|
1822
1826
|
date: string;
|
|
1823
1827
|
total: number;
|
|
1824
1828
|
byStatus: Partial<Record<import("../bookings/bookings.contract").BookingType, number>>;
|
|
1825
1829
|
}[];
|
|
1826
|
-
summary: {
|
|
1827
|
-
averageDaily: number;
|
|
1828
|
-
totalCreated: number;
|
|
1829
|
-
};
|
|
1830
1830
|
}>;
|
|
1831
1831
|
};
|
|
1832
1832
|
};
|
|
@@ -1880,6 +1880,11 @@ export declare const dashboardWidgetsContract: {
|
|
|
1880
1880
|
overallAverageRating: number;
|
|
1881
1881
|
}>;
|
|
1882
1882
|
}, "strip", z.ZodTypeAny, {
|
|
1883
|
+
summary: {
|
|
1884
|
+
averageDailyCalls: number;
|
|
1885
|
+
overallConversionRate: number;
|
|
1886
|
+
overallAverageRating: number;
|
|
1887
|
+
};
|
|
1883
1888
|
data: {
|
|
1884
1889
|
date: string;
|
|
1885
1890
|
totalCalls: number;
|
|
@@ -1887,12 +1892,12 @@ export declare const dashboardWidgetsContract: {
|
|
|
1887
1892
|
performanceScore: number;
|
|
1888
1893
|
averageRating: number;
|
|
1889
1894
|
}[];
|
|
1895
|
+
}, {
|
|
1890
1896
|
summary: {
|
|
1891
1897
|
averageDailyCalls: number;
|
|
1892
1898
|
overallConversionRate: number;
|
|
1893
1899
|
overallAverageRating: number;
|
|
1894
1900
|
};
|
|
1895
|
-
}, {
|
|
1896
1901
|
data: {
|
|
1897
1902
|
date: string;
|
|
1898
1903
|
totalCalls: number;
|
|
@@ -1900,11 +1905,6 @@ export declare const dashboardWidgetsContract: {
|
|
|
1900
1905
|
performanceScore: number;
|
|
1901
1906
|
averageRating: number;
|
|
1902
1907
|
}[];
|
|
1903
|
-
summary: {
|
|
1904
|
-
averageDailyCalls: number;
|
|
1905
|
-
overallConversionRate: number;
|
|
1906
|
-
overallAverageRating: number;
|
|
1907
|
-
};
|
|
1908
1908
|
}>;
|
|
1909
1909
|
};
|
|
1910
1910
|
};
|
|
@@ -1949,25 +1949,25 @@ export declare const dashboardWidgetsContract: {
|
|
|
1949
1949
|
averagePerDay: number;
|
|
1950
1950
|
}>;
|
|
1951
1951
|
}, "strip", z.ZodTypeAny, {
|
|
1952
|
+
summary: {
|
|
1953
|
+
totalAdded: number;
|
|
1954
|
+
averagePerDay: number;
|
|
1955
|
+
};
|
|
1952
1956
|
data: {
|
|
1953
1957
|
date: string;
|
|
1954
1958
|
added: number;
|
|
1955
1959
|
cumulativeTotal: number;
|
|
1956
1960
|
}[];
|
|
1961
|
+
}, {
|
|
1957
1962
|
summary: {
|
|
1958
1963
|
totalAdded: number;
|
|
1959
1964
|
averagePerDay: number;
|
|
1960
1965
|
};
|
|
1961
|
-
}, {
|
|
1962
1966
|
data: {
|
|
1963
1967
|
date: string;
|
|
1964
1968
|
added: number;
|
|
1965
1969
|
cumulativeTotal: number;
|
|
1966
1970
|
}[];
|
|
1967
|
-
summary: {
|
|
1968
|
-
totalAdded: number;
|
|
1969
|
-
averagePerDay: number;
|
|
1970
|
-
};
|
|
1971
1971
|
}>;
|
|
1972
1972
|
};
|
|
1973
1973
|
};
|
|
@@ -1994,11 +1994,11 @@ export declare const dashboardWidgetsContract: {
|
|
|
1994
1994
|
byStatus: z.ZodRecord<z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT", "CHANGED_COMPANY_AND_AGENT"]>, z.ZodNumber>;
|
|
1995
1995
|
}, "strip", z.ZodTypeAny, {
|
|
1996
1996
|
date: string;
|
|
1997
|
-
byStatus: Partial<Record<"
|
|
1997
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
1998
1998
|
created: number;
|
|
1999
1999
|
}, {
|
|
2000
2000
|
date: string;
|
|
2001
|
-
byStatus: Partial<Record<"
|
|
2001
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
2002
2002
|
created: number;
|
|
2003
2003
|
}>, "many">;
|
|
2004
2004
|
summary: z.ZodObject<{
|
|
@@ -2012,25 +2012,25 @@ export declare const dashboardWidgetsContract: {
|
|
|
2012
2012
|
activeCount: number;
|
|
2013
2013
|
}>;
|
|
2014
2014
|
}, "strip", z.ZodTypeAny, {
|
|
2015
|
-
data: {
|
|
2016
|
-
date: string;
|
|
2017
|
-
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
2018
|
-
created: number;
|
|
2019
|
-
}[];
|
|
2020
2015
|
summary: {
|
|
2021
2016
|
totalCreated: number;
|
|
2022
2017
|
activeCount: number;
|
|
2023
2018
|
};
|
|
2024
|
-
}, {
|
|
2025
2019
|
data: {
|
|
2026
2020
|
date: string;
|
|
2027
|
-
byStatus: Partial<Record<"
|
|
2021
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
2028
2022
|
created: number;
|
|
2029
2023
|
}[];
|
|
2024
|
+
}, {
|
|
2030
2025
|
summary: {
|
|
2031
2026
|
totalCreated: number;
|
|
2032
2027
|
activeCount: number;
|
|
2033
2028
|
};
|
|
2029
|
+
data: {
|
|
2030
|
+
date: string;
|
|
2031
|
+
byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
2032
|
+
created: number;
|
|
2033
|
+
}[];
|
|
2034
2034
|
}>;
|
|
2035
2035
|
};
|
|
2036
2036
|
};
|