@dakkitor/api-contracts 1.1.130 → 1.1.132

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 (67) hide show
  1. package/dist/abilities/abilities.contract.d.ts +19 -13
  2. package/dist/abilities/abilities.contract.js +33 -18
  3. package/dist/abilities/first-agent.abilities.json +640 -628
  4. package/dist/abilities/second-agent.abilities.json +374 -374
  5. package/dist/abilities/team-leads.json +1 -4
  6. package/dist/actives/actives.contract.d.ts +6313 -6313
  7. package/dist/actives/actives.contract.js +92 -92
  8. package/dist/agent-client-links/agent-client-links.contract.d.ts +511 -511
  9. package/dist/auth/auth.contract.d.ts +16 -16
  10. package/dist/bookings/bookings.contract.d.ts +23378 -23378
  11. package/dist/call-history/call-history.contract.d.ts +707 -659
  12. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  13. package/dist/call-history/call-history.contract.js +28 -4
  14. package/dist/client-contacts/client-contacts.contract.d.ts +159 -159
  15. package/dist/clients/clients.contract.d.ts +72 -72
  16. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1330 -1330
  17. package/dist/collaborations/collaborations.contract.d.ts +1198 -1198
  18. package/dist/common/call-rating.schema.d.ts +12 -12
  19. package/dist/common/call-rating.schema.js +48 -40
  20. package/dist/common/common-schemas.d.ts +4 -4
  21. package/dist/common/common-schemas.d.ts.map +1 -1
  22. package/dist/common/common-schemas.js +1 -2
  23. package/dist/common/error-schemas.d.ts +11 -5
  24. package/dist/common/error-schemas.js +11 -8
  25. package/dist/common/openapi-metadata.d.ts +54 -44
  26. package/dist/common/openapi-metadata.js +135 -129
  27. package/dist/common/pagination-query.schema.d.ts +11 -5
  28. package/dist/common/pagination-query.schema.js +11 -8
  29. package/dist/companies/companies.contract.d.ts +40 -40
  30. package/dist/cron-executions/cron-executions.contract.d.ts +14 -14
  31. package/dist/curated-workers/curated-workers.contract.d.ts +211 -211
  32. package/dist/dashboards/agent-daily-metrics.contract.d.ts +798 -616
  33. package/dist/dashboards/agent-daily-metrics.contract.js +100 -89
  34. package/dist/dashboards/dashboard-widgets.contract.d.ts +75 -75
  35. package/dist/dashboards/dashboard-widgets.contract.js +89 -89
  36. package/dist/dashboards/dashboard.contract.d.ts +305 -215
  37. package/dist/files/files.contract.d.ts +1544 -1177
  38. package/dist/files/files.contract.js +177 -162
  39. package/dist/health/health.contract.d.ts +191 -144
  40. package/dist/health/health.contract.js +53 -40
  41. package/dist/index.d.ts +68 -65
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +3 -0
  44. package/dist/jobs/jobs.contract.d.ts +2553 -2553
  45. package/dist/jobs/jobs.contract.js +150 -150
  46. package/dist/lead-assignments/lead-assignments.contract.d.ts +587 -587
  47. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +239 -239
  48. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +25 -25
  49. package/dist/leads/leads.contract.d.ts +198 -140
  50. package/dist/leads/leads.contract.d.ts.map +1 -1
  51. package/dist/leads/leads.contract.js +10 -0
  52. package/dist/locations/locations.contract.d.ts +7 -7
  53. package/dist/monitoring/monitoring.contract.d.ts +13 -13
  54. package/dist/monitoring/monitoring.contract.js +37 -37
  55. package/dist/own-research/own-research.contract.d.ts +2137 -0
  56. package/dist/own-research/own-research.contract.d.ts.map +1 -0
  57. package/dist/own-research/own-research.contract.js +221 -0
  58. package/dist/postcodes/postcodes.contract.d.ts +24 -24
  59. package/dist/qualifications/qualifications.contract.d.ts +1898 -1387
  60. package/dist/qualifications/qualifications.contract.js +193 -171
  61. package/dist/trades/trades.contract.d.ts +991 -763
  62. package/dist/trades/trades.contract.js +111 -89
  63. package/dist/users/users.contract.d.ts +202 -202
  64. package/dist/users/users.contract.js +121 -121
  65. package/dist/workers/workers.contract.d.ts +710 -710
  66. package/dist/workers/workers.contract.js +150 -150
  67. package/package.json +1 -1
@@ -1,306 +1,396 @@
1
1
  import { z } from 'zod';
2
- export declare const PerformanceMetricsSchema: z.ZodObject<{
2
+ export declare const PerformanceMetricsSchema: z.ZodObject<
3
+ {
3
4
  score: z.ZodNumber;
4
5
  tier: z.ZodString;
5
6
  conversionRate: z.ZodNumber;
6
- status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
7
- }, "strip", z.ZodTypeAny, {
8
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
7
+ status: z.ZodEnum<['AVAILABLE', 'PAUSED', 'EXCLUDED']>;
8
+ },
9
+ 'strip',
10
+ z.ZodTypeAny,
11
+ {
12
+ status: 'AVAILABLE' | 'PAUSED' | 'EXCLUDED';
13
+ conversionRate: number;
9
14
  score: number;
10
15
  tier: string;
16
+ },
17
+ {
18
+ status: 'AVAILABLE' | 'PAUSED' | 'EXCLUDED';
11
19
  conversionRate: number;
12
- }, {
13
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
14
20
  score: number;
15
21
  tier: string;
16
- conversionRate: number;
17
- }>;
18
- export declare const DashboardMetricsSchema: z.ZodObject<{
22
+ }
23
+ >;
24
+ export declare const DashboardMetricsSchema: z.ZodObject<
25
+ {
19
26
  totalJobs: z.ZodNumber;
20
27
  totalBookings: z.ZodNumber;
21
28
  bookingsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
22
29
  totalClients: z.ZodNumber;
23
30
  totalCollaborationCheckings: z.ZodNumber;
24
31
  collaborationCheckingsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
25
- performance: z.ZodNullable<z.ZodObject<{
26
- score: z.ZodNumber;
27
- tier: z.ZodString;
28
- conversionRate: z.ZodNumber;
29
- status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
30
- }, "strip", z.ZodTypeAny, {
31
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
32
- score: number;
33
- tier: string;
34
- conversionRate: number;
35
- }, {
36
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
37
- score: number;
38
- tier: string;
39
- conversionRate: number;
40
- }>>;
32
+ performance: z.ZodNullable<
33
+ z.ZodObject<
34
+ {
35
+ score: z.ZodNumber;
36
+ tier: z.ZodString;
37
+ conversionRate: z.ZodNumber;
38
+ status: z.ZodEnum<['AVAILABLE', 'PAUSED', 'EXCLUDED']>;
39
+ },
40
+ 'strip',
41
+ z.ZodTypeAny,
42
+ {
43
+ status: 'AVAILABLE' | 'PAUSED' | 'EXCLUDED';
44
+ conversionRate: number;
45
+ score: number;
46
+ tier: string;
47
+ },
48
+ {
49
+ status: 'AVAILABLE' | 'PAUSED' | 'EXCLUDED';
50
+ conversionRate: number;
51
+ score: number;
52
+ tier: string;
53
+ }
54
+ >
55
+ >;
41
56
  totalCollaborations: z.ZodNumber;
42
57
  collaborationsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
43
58
  totalClientContacts: z.ZodNumber;
44
59
  activesToday: z.ZodNumber;
45
60
  activesTodayByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
46
- }, "strip", z.ZodTypeAny, {
47
- totalJobs: number;
61
+ },
62
+ 'strip',
63
+ z.ZodTypeAny,
64
+ {
48
65
  totalBookings: number;
66
+ totalJobs: number;
49
67
  bookingsByStatus: Record<string, number>;
50
68
  totalClients: number;
51
69
  totalCollaborationCheckings: number;
52
70
  collaborationCheckingsByStatus: Record<string, number>;
53
71
  performance: {
54
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
55
- score: number;
56
- tier: string;
57
- conversionRate: number;
72
+ status: 'AVAILABLE' | 'PAUSED' | 'EXCLUDED';
73
+ conversionRate: number;
74
+ score: number;
75
+ tier: string;
58
76
  } | null;
59
77
  totalCollaborations: number;
60
78
  collaborationsByStatus: Record<string, number>;
61
79
  totalClientContacts: number;
62
80
  activesToday: number;
63
81
  activesTodayByStatus: Record<string, number>;
64
- }, {
65
- totalJobs: number;
82
+ },
83
+ {
66
84
  totalBookings: number;
85
+ totalJobs: number;
67
86
  bookingsByStatus: Record<string, number>;
68
87
  totalClients: number;
69
88
  totalCollaborationCheckings: number;
70
89
  collaborationCheckingsByStatus: Record<string, number>;
71
90
  performance: {
72
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
73
- score: number;
74
- tier: string;
75
- conversionRate: number;
91
+ status: 'AVAILABLE' | 'PAUSED' | 'EXCLUDED';
92
+ conversionRate: number;
93
+ score: number;
94
+ tier: string;
76
95
  } | null;
77
96
  totalCollaborations: number;
78
97
  collaborationsByStatus: Record<string, number>;
79
98
  totalClientContacts: number;
80
99
  activesToday: number;
81
100
  activesTodayByStatus: Record<string, number>;
82
- }>;
83
- export declare const AgentActivesMetricsSchema: z.ZodObject<{
101
+ }
102
+ >;
103
+ export declare const AgentActivesMetricsSchema: z.ZodObject<
104
+ {
84
105
  date: z.ZodString;
85
106
  statusCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
86
107
  total: z.ZodNumber;
87
- }, "strip", z.ZodTypeAny, {
108
+ },
109
+ 'strip',
110
+ z.ZodTypeAny,
111
+ {
88
112
  date: string;
89
- statusCounts: Record<string, number>;
90
113
  total: number;
91
- }, {
92
- date: string;
93
114
  statusCounts: Record<string, number>;
115
+ },
116
+ {
117
+ date: string;
94
118
  total: number;
95
- }>;
96
- export declare const AgentBookingsMetricsSchema: z.ZodObject<{
119
+ statusCounts: Record<string, number>;
120
+ }
121
+ >;
122
+ export declare const AgentBookingsMetricsSchema: z.ZodObject<
123
+ {
97
124
  date: z.ZodString;
98
125
  statusCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
99
126
  total: z.ZodNumber;
100
- }, "strip", z.ZodTypeAny, {
127
+ },
128
+ 'strip',
129
+ z.ZodTypeAny,
130
+ {
101
131
  date: string;
102
- statusCounts: Record<string, number>;
103
132
  total: number;
104
- }, {
105
- date: string;
106
133
  statusCounts: Record<string, number>;
134
+ },
135
+ {
136
+ date: string;
107
137
  total: number;
108
- }>;
109
- export declare const AgentCallPerformanceMetricsSchema: z.ZodObject<{
138
+ statusCounts: Record<string, number>;
139
+ }
140
+ >;
141
+ export declare const AgentCallPerformanceMetricsSchema: z.ZodObject<
142
+ {
110
143
  date: z.ZodString;
111
144
  totalCalls: z.ZodNumber;
112
145
  averageRatingWeight: z.ZodNumber;
113
146
  conversionRate: z.ZodNumber;
114
147
  successVariance: z.ZodNumber;
115
148
  performanceScore: z.ZodNumber;
116
- performanceTier: z.ZodEnum<["high", "medium", "low", "new"]>;
117
- }, "strip", z.ZodTypeAny, {
149
+ performanceTier: z.ZodEnum<['high', 'medium', 'low', 'new']>;
150
+ },
151
+ 'strip',
152
+ z.ZodTypeAny,
153
+ {
118
154
  date: string;
119
155
  conversionRate: number;
120
156
  totalCalls: number;
121
157
  averageRatingWeight: number;
122
- successVariance: number;
123
158
  performanceScore: number;
124
- performanceTier: "high" | "medium" | "low" | "new";
125
- }, {
159
+ performanceTier: 'high' | 'medium' | 'low' | 'new';
160
+ successVariance: number;
161
+ },
162
+ {
126
163
  date: string;
127
164
  conversionRate: number;
128
165
  totalCalls: number;
129
166
  averageRatingWeight: number;
130
- successVariance: number;
131
167
  performanceScore: number;
132
- performanceTier: "high" | "medium" | "low" | "new";
133
- }>;
134
- export declare const DateRangeFilterSchema: z.ZodObject<{
168
+ performanceTier: 'high' | 'medium' | 'low' | 'new';
169
+ successVariance: number;
170
+ }
171
+ >;
172
+ export declare const DateRangeFilterSchema: z.ZodObject<
173
+ {
135
174
  startDate: z.ZodOptional<z.ZodString>;
136
175
  endDate: z.ZodOptional<z.ZodString>;
137
- }, "strip", z.ZodTypeAny, {
176
+ },
177
+ 'strip',
178
+ z.ZodTypeAny,
179
+ {
138
180
  startDate?: string | undefined;
139
181
  endDate?: string | undefined;
140
- }, {
182
+ },
183
+ {
141
184
  startDate?: string | undefined;
142
185
  endDate?: string | undefined;
143
- }>;
186
+ }
187
+ >;
144
188
  export declare const dashboardContract: {
145
- getDashboardMetrics: {
146
- query: z.ZodObject<{
147
- startDate: z.ZodOptional<z.ZodString>;
148
- endDate: z.ZodOptional<z.ZodString>;
149
- }, "strip", z.ZodTypeAny, {
150
- startDate?: string | undefined;
151
- endDate?: string | undefined;
152
- }, {
153
- startDate?: string | undefined;
154
- endDate?: string | undefined;
155
- }>;
156
- summary: "Get dashboard metrics for authenticated user";
157
- method: "GET";
158
- path: "/";
159
- responses: {
160
- 200: z.ZodObject<{
161
- totalJobs: z.ZodNumber;
162
- totalBookings: z.ZodNumber;
163
- bookingsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
164
- totalClients: z.ZodNumber;
165
- totalCollaborationCheckings: z.ZodNumber;
166
- collaborationCheckingsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
167
- performance: z.ZodNullable<z.ZodObject<{
168
- score: z.ZodNumber;
169
- tier: z.ZodString;
170
- conversionRate: z.ZodNumber;
171
- status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
172
- }, "strip", z.ZodTypeAny, {
173
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
174
- score: number;
175
- tier: string;
176
- conversionRate: number;
177
- }, {
178
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
179
- score: number;
180
- tier: string;
181
- conversionRate: number;
182
- }>>;
183
- totalCollaborations: z.ZodNumber;
184
- collaborationsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
185
- totalClientContacts: z.ZodNumber;
186
- activesToday: z.ZodNumber;
187
- activesTodayByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
188
- }, "strip", z.ZodTypeAny, {
189
- totalJobs: number;
190
- totalBookings: number;
191
- bookingsByStatus: Record<string, number>;
192
- totalClients: number;
193
- totalCollaborationCheckings: number;
194
- collaborationCheckingsByStatus: Record<string, number>;
195
- performance: {
196
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
197
- score: number;
198
- tier: string;
199
- conversionRate: number;
200
- } | null;
201
- totalCollaborations: number;
202
- collaborationsByStatus: Record<string, number>;
203
- totalClientContacts: number;
204
- activesToday: number;
205
- activesTodayByStatus: Record<string, number>;
206
- }, {
207
- totalJobs: number;
208
- totalBookings: number;
209
- bookingsByStatus: Record<string, number>;
210
- totalClients: number;
211
- totalCollaborationCheckings: number;
212
- collaborationCheckingsByStatus: Record<string, number>;
213
- performance: {
214
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
215
- score: number;
216
- tier: string;
217
- conversionRate: number;
218
- } | null;
219
- totalCollaborations: number;
220
- collaborationsByStatus: Record<string, number>;
221
- totalClientContacts: number;
222
- activesToday: number;
223
- activesTodayByStatus: Record<string, number>;
224
- }>;
225
- };
226
- };
227
- getActivesMetrics: {
228
- summary: "Get latest actives metrics for authenticated user";
229
- method: "GET";
230
- path: "/actives";
231
- responses: {
232
- 200: z.ZodNullable<z.ZodObject<{
233
- date: z.ZodString;
234
- statusCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
235
- total: z.ZodNumber;
236
- }, "strip", z.ZodTypeAny, {
237
- date: string;
238
- statusCounts: Record<string, number>;
239
- total: number;
240
- }, {
241
- date: string;
242
- statusCounts: Record<string, number>;
243
- total: number;
244
- }>>;
245
- };
246
- };
247
- getBookingsMetrics: {
248
- summary: "Get latest bookings metrics for authenticated user";
249
- method: "GET";
250
- path: "/bookings";
251
- responses: {
252
- 200: z.ZodNullable<z.ZodObject<{
253
- date: z.ZodString;
254
- statusCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
255
- total: z.ZodNumber;
256
- }, "strip", z.ZodTypeAny, {
257
- date: string;
258
- statusCounts: Record<string, number>;
259
- total: number;
260
- }, {
261
- date: string;
262
- statusCounts: Record<string, number>;
263
- total: number;
264
- }>>;
265
- };
266
- };
267
- getCallPerformanceMetrics: {
268
- summary: "Get latest call performance metrics for authenticated user";
269
- method: "GET";
270
- path: "/call-performance";
271
- responses: {
272
- 200: z.ZodNullable<z.ZodObject<{
273
- date: z.ZodString;
274
- totalCalls: z.ZodNumber;
275
- averageRatingWeight: z.ZodNumber;
189
+ getDashboardMetrics: {
190
+ query: z.ZodObject<
191
+ {
192
+ startDate: z.ZodOptional<z.ZodString>;
193
+ endDate: z.ZodOptional<z.ZodString>;
194
+ },
195
+ 'strip',
196
+ z.ZodTypeAny,
197
+ {
198
+ startDate?: string | undefined;
199
+ endDate?: string | undefined;
200
+ },
201
+ {
202
+ startDate?: string | undefined;
203
+ endDate?: string | undefined;
204
+ }
205
+ >;
206
+ summary: 'Get dashboard metrics for authenticated user';
207
+ method: 'GET';
208
+ path: '/';
209
+ responses: {
210
+ 200: z.ZodObject<
211
+ {
212
+ totalJobs: z.ZodNumber;
213
+ totalBookings: z.ZodNumber;
214
+ bookingsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
215
+ totalClients: z.ZodNumber;
216
+ totalCollaborationCheckings: z.ZodNumber;
217
+ collaborationCheckingsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
218
+ performance: z.ZodNullable<
219
+ z.ZodObject<
220
+ {
221
+ score: z.ZodNumber;
222
+ tier: z.ZodString;
276
223
  conversionRate: z.ZodNumber;
277
- successVariance: z.ZodNumber;
278
- performanceScore: z.ZodNumber;
279
- performanceTier: z.ZodEnum<["high", "medium", "low", "new"]>;
280
- }, "strip", z.ZodTypeAny, {
281
- date: string;
224
+ status: z.ZodEnum<['AVAILABLE', 'PAUSED', 'EXCLUDED']>;
225
+ },
226
+ 'strip',
227
+ z.ZodTypeAny,
228
+ {
229
+ status: 'AVAILABLE' | 'PAUSED' | 'EXCLUDED';
282
230
  conversionRate: number;
283
- totalCalls: number;
284
- averageRatingWeight: number;
285
- successVariance: number;
286
- performanceScore: number;
287
- performanceTier: "high" | "medium" | "low" | "new";
288
- }, {
289
- date: string;
231
+ score: number;
232
+ tier: string;
233
+ },
234
+ {
235
+ status: 'AVAILABLE' | 'PAUSED' | 'EXCLUDED';
290
236
  conversionRate: number;
291
- totalCalls: number;
292
- averageRatingWeight: number;
293
- successVariance: number;
294
- performanceScore: number;
295
- performanceTier: "high" | "medium" | "low" | "new";
296
- }>>;
297
- };
237
+ score: number;
238
+ tier: string;
239
+ }
240
+ >
241
+ >;
242
+ totalCollaborations: z.ZodNumber;
243
+ collaborationsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
244
+ totalClientContacts: z.ZodNumber;
245
+ activesToday: z.ZodNumber;
246
+ activesTodayByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
247
+ },
248
+ 'strip',
249
+ z.ZodTypeAny,
250
+ {
251
+ totalBookings: number;
252
+ totalJobs: number;
253
+ bookingsByStatus: Record<string, number>;
254
+ totalClients: number;
255
+ totalCollaborationCheckings: number;
256
+ collaborationCheckingsByStatus: Record<string, number>;
257
+ performance: {
258
+ status: 'AVAILABLE' | 'PAUSED' | 'EXCLUDED';
259
+ conversionRate: number;
260
+ score: number;
261
+ tier: string;
262
+ } | null;
263
+ totalCollaborations: number;
264
+ collaborationsByStatus: Record<string, number>;
265
+ totalClientContacts: number;
266
+ activesToday: number;
267
+ activesTodayByStatus: Record<string, number>;
268
+ },
269
+ {
270
+ totalBookings: number;
271
+ totalJobs: number;
272
+ bookingsByStatus: Record<string, number>;
273
+ totalClients: number;
274
+ totalCollaborationCheckings: number;
275
+ collaborationCheckingsByStatus: Record<string, number>;
276
+ performance: {
277
+ status: 'AVAILABLE' | 'PAUSED' | 'EXCLUDED';
278
+ conversionRate: number;
279
+ score: number;
280
+ tier: string;
281
+ } | null;
282
+ totalCollaborations: number;
283
+ collaborationsByStatus: Record<string, number>;
284
+ totalClientContacts: number;
285
+ activesToday: number;
286
+ activesTodayByStatus: Record<string, number>;
287
+ }
288
+ >;
289
+ };
290
+ };
291
+ getActivesMetrics: {
292
+ summary: 'Get latest actives metrics for authenticated user';
293
+ method: 'GET';
294
+ path: '/actives';
295
+ responses: {
296
+ 200: z.ZodNullable<
297
+ z.ZodObject<
298
+ {
299
+ date: z.ZodString;
300
+ statusCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
301
+ total: z.ZodNumber;
302
+ },
303
+ 'strip',
304
+ z.ZodTypeAny,
305
+ {
306
+ date: string;
307
+ total: number;
308
+ statusCounts: Record<string, number>;
309
+ },
310
+ {
311
+ date: string;
312
+ total: number;
313
+ statusCounts: Record<string, number>;
314
+ }
315
+ >
316
+ >;
317
+ };
318
+ };
319
+ getBookingsMetrics: {
320
+ summary: 'Get latest bookings metrics for authenticated user';
321
+ method: 'GET';
322
+ path: '/bookings';
323
+ responses: {
324
+ 200: z.ZodNullable<
325
+ z.ZodObject<
326
+ {
327
+ date: z.ZodString;
328
+ statusCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
329
+ total: z.ZodNumber;
330
+ },
331
+ 'strip',
332
+ z.ZodTypeAny,
333
+ {
334
+ date: string;
335
+ total: number;
336
+ statusCounts: Record<string, number>;
337
+ },
338
+ {
339
+ date: string;
340
+ total: number;
341
+ statusCounts: Record<string, number>;
342
+ }
343
+ >
344
+ >;
345
+ };
346
+ };
347
+ getCallPerformanceMetrics: {
348
+ summary: 'Get latest call performance metrics for authenticated user';
349
+ method: 'GET';
350
+ path: '/call-performance';
351
+ responses: {
352
+ 200: z.ZodNullable<
353
+ z.ZodObject<
354
+ {
355
+ date: z.ZodString;
356
+ totalCalls: z.ZodNumber;
357
+ averageRatingWeight: z.ZodNumber;
358
+ conversionRate: z.ZodNumber;
359
+ successVariance: z.ZodNumber;
360
+ performanceScore: z.ZodNumber;
361
+ performanceTier: z.ZodEnum<['high', 'medium', 'low', 'new']>;
362
+ },
363
+ 'strip',
364
+ z.ZodTypeAny,
365
+ {
366
+ date: string;
367
+ conversionRate: number;
368
+ totalCalls: number;
369
+ averageRatingWeight: number;
370
+ performanceScore: number;
371
+ performanceTier: 'high' | 'medium' | 'low' | 'new';
372
+ successVariance: number;
373
+ },
374
+ {
375
+ date: string;
376
+ conversionRate: number;
377
+ totalCalls: number;
378
+ averageRatingWeight: number;
379
+ performanceScore: number;
380
+ performanceTier: 'high' | 'medium' | 'low' | 'new';
381
+ successVariance: number;
382
+ }
383
+ >
384
+ >;
298
385
  };
386
+ };
299
387
  };
300
388
  export type DashboardMetrics = z.infer<typeof DashboardMetricsSchema>;
301
389
  export type AgentActivesMetrics = z.infer<typeof AgentActivesMetricsSchema>;
302
390
  export type AgentBookingsMetrics = z.infer<typeof AgentBookingsMetricsSchema>;
303
- export type AgentCallPerformanceMetrics = z.infer<typeof AgentCallPerformanceMetricsSchema>;
391
+ export type AgentCallPerformanceMetrics = z.infer<
392
+ typeof AgentCallPerformanceMetricsSchema
393
+ >;
304
394
  export type PerformanceMetrics = z.infer<typeof PerformanceMetricsSchema>;
305
395
  export type DateRangeFilter = z.infer<typeof DateRangeFilterSchema>;
306
- //# sourceMappingURL=dashboard.contract.d.ts.map
396
+ //# sourceMappingURL=dashboard.contract.d.ts.map