@dakkitor/api-contracts 1.1.109 → 1.1.112
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 +3059 -3059
- package/dist/agent-client-links/agent-client-links.contract.d.ts +74 -74
- package/dist/bookings/bookings.contract.d.ts +11037 -11037
- package/dist/call-history/call-history.contract.d.ts +294 -294
- package/dist/client-contacts/client-contacts.contract.d.ts +186 -186
- package/dist/clients/clients.contract.d.ts +99 -99
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +5 -5
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +440 -440
- package/dist/collaborations/collaborations.contract.d.ts +328 -328
- package/dist/companies/companies.contract.d.ts +22 -22
- package/dist/curated-workers/curated-workers.contract.d.ts +76 -76
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +3 -3
- package/dist/dashboards/dashboard-widgets.contract.d.ts +224 -150
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +124 -101
- package/dist/dashboards/dashboard.contract.d.ts +14 -14
- package/dist/files/files.contract.d.ts +24 -24
- package/dist/jobs/jobs.contract.d.ts +907 -907
- package/dist/lead-assignments/lead-assignments.contract.d.ts +160 -160
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +34 -34
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +7 -7
- package/dist/leads/leads.contract.d.ts +136 -136
- package/dist/postcodes/postcodes.contract.d.ts +18 -18
- package/dist/qualifications/qualifications.contract.d.ts +22 -22
- package/dist/trades/trades.contract.d.ts +16 -16
- package/dist/users/users.contract.d.ts +6 -6
- package/dist/workers/workers.contract.d.ts +288 -288
- package/package.json +41 -41
- package/dist/abilities/interconnection.json +0 -370
- package/dist/abilities/second-agent.abilities copy.json +0 -370
|
@@ -5,7 +5,17 @@
|
|
|
5
5
|
* Description: Defines the API contracts for modular dashboard widget endpoints.
|
|
6
6
|
* Provides role-specific widgets for First Agent (FA) and Second Agent (SA).
|
|
7
7
|
*/
|
|
8
|
-
import { z } from
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
/**
|
|
10
|
+
* Common query parameters for dashboard widgets
|
|
11
|
+
*/
|
|
12
|
+
export declare const DashboardWidgetQuerySchema: z.ZodObject<{
|
|
13
|
+
date: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
date?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
date?: string | undefined;
|
|
18
|
+
}>;
|
|
9
19
|
/**
|
|
10
20
|
* Date range filter for historical queries
|
|
11
21
|
*/
|
|
@@ -38,15 +48,15 @@ export declare const TrendDataPointSchema: z.ZodObject<{
|
|
|
38
48
|
export declare const FaPipelineWidgetSchema: z.ZodObject<{
|
|
39
49
|
collaborations: z.ZodObject<{
|
|
40
50
|
total: z.ZodNumber;
|
|
41
|
-
byStatus: z.ZodRecord<z.
|
|
51
|
+
byStatus: z.ZodRecord<z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT", "CHANGED_COMPANY_AND_AGENT"]>, z.ZodNumber>;
|
|
42
52
|
recentCount: z.ZodNumber;
|
|
43
53
|
}, "strip", z.ZodTypeAny, {
|
|
44
54
|
total: number;
|
|
45
|
-
byStatus: Record<
|
|
55
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
46
56
|
recentCount: number;
|
|
47
57
|
}, {
|
|
48
58
|
total: number;
|
|
49
|
-
byStatus: Record<
|
|
59
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
50
60
|
recentCount: number;
|
|
51
61
|
}>;
|
|
52
62
|
summary: z.ZodObject<{
|
|
@@ -60,42 +70,42 @@ export declare const FaPipelineWidgetSchema: z.ZodObject<{
|
|
|
60
70
|
pendingApproval: number;
|
|
61
71
|
}>;
|
|
62
72
|
}, "strip", z.ZodTypeAny, {
|
|
63
|
-
collaborations: {
|
|
64
|
-
total: number;
|
|
65
|
-
byStatus: Record<string, number>;
|
|
66
|
-
recentCount: number;
|
|
67
|
-
};
|
|
68
73
|
summary: {
|
|
69
74
|
activeCollaborations: number;
|
|
70
75
|
pendingApproval: number;
|
|
71
76
|
};
|
|
72
|
-
}, {
|
|
73
77
|
collaborations: {
|
|
74
78
|
total: number;
|
|
75
|
-
byStatus: Record<
|
|
79
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
76
80
|
recentCount: number;
|
|
77
81
|
};
|
|
82
|
+
}, {
|
|
78
83
|
summary: {
|
|
79
84
|
activeCollaborations: number;
|
|
80
85
|
pendingApproval: number;
|
|
81
86
|
};
|
|
87
|
+
collaborations: {
|
|
88
|
+
total: number;
|
|
89
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
90
|
+
recentCount: number;
|
|
91
|
+
};
|
|
82
92
|
}>;
|
|
83
93
|
/**
|
|
84
94
|
* FA Clients Widget - Client portfolio summary
|
|
85
95
|
*/
|
|
86
96
|
export declare const FaClientsWidgetSchema: z.ZodObject<{
|
|
87
97
|
total: z.ZodNumber;
|
|
88
|
-
byStatus: z.ZodRecord<z.
|
|
98
|
+
byStatus: z.ZodRecord<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>, z.ZodNumber>;
|
|
89
99
|
recentlyAdded: z.ZodNumber;
|
|
90
100
|
pendingVerification: z.ZodNumber;
|
|
91
101
|
}, "strip", z.ZodTypeAny, {
|
|
92
102
|
total: number;
|
|
93
|
-
byStatus: Record<
|
|
103
|
+
byStatus: Partial<Record<"APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED", number>>;
|
|
94
104
|
recentlyAdded: number;
|
|
95
105
|
pendingVerification: number;
|
|
96
106
|
}, {
|
|
97
107
|
total: number;
|
|
98
|
-
byStatus: Record<
|
|
108
|
+
byStatus: Partial<Record<"APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED", number>>;
|
|
99
109
|
recentlyAdded: number;
|
|
100
110
|
pendingVerification: number;
|
|
101
111
|
}>;
|
|
@@ -133,23 +143,23 @@ export declare const FaCallHistoryWidgetSchema: z.ZodObject<{
|
|
|
133
143
|
ratingBreakdown: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
134
144
|
}, "strip", z.ZodTypeAny, {
|
|
135
145
|
totalCalls: number;
|
|
146
|
+
conversionRate: number;
|
|
147
|
+
performanceScore: number;
|
|
148
|
+
performanceTier: "high" | "medium" | "low" | "new";
|
|
136
149
|
callsToday: number;
|
|
137
150
|
callsThisWeek: number;
|
|
138
151
|
averageRatingToday: number;
|
|
139
152
|
efficientCallsToday: number;
|
|
140
|
-
conversionRate: number;
|
|
141
|
-
performanceScore: number;
|
|
142
|
-
performanceTier: "high" | "medium" | "low" | "new";
|
|
143
153
|
ratingBreakdown: Record<string, number>;
|
|
144
154
|
}, {
|
|
145
155
|
totalCalls: number;
|
|
156
|
+
conversionRate: number;
|
|
157
|
+
performanceScore: number;
|
|
158
|
+
performanceTier: "high" | "medium" | "low" | "new";
|
|
146
159
|
callsToday: number;
|
|
147
160
|
callsThisWeek: number;
|
|
148
161
|
averageRatingToday: number;
|
|
149
162
|
efficientCallsToday: number;
|
|
150
|
-
conversionRate: number;
|
|
151
|
-
performanceScore: number;
|
|
152
|
-
performanceTier: "high" | "medium" | "low" | "new";
|
|
153
163
|
ratingBreakdown: Record<string, number>;
|
|
154
164
|
}>;
|
|
155
165
|
/**
|
|
@@ -166,21 +176,21 @@ export declare const AgentCallHistoryItemSchema: z.ZodObject<{
|
|
|
166
176
|
performanceScore: z.ZodNumber;
|
|
167
177
|
performanceTier: z.ZodEnum<["high", "medium", "low", "new"]>;
|
|
168
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
agentId: string;
|
|
169
180
|
totalCalls: number;
|
|
170
181
|
conversionRate: number;
|
|
171
182
|
performanceScore: number;
|
|
172
183
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
173
|
-
agentId: string;
|
|
174
184
|
agentName: string;
|
|
175
185
|
agentEmail: string;
|
|
176
186
|
callsOnDate: number;
|
|
177
187
|
averageRating: number;
|
|
178
188
|
}, {
|
|
189
|
+
agentId: string;
|
|
179
190
|
totalCalls: number;
|
|
180
191
|
conversionRate: number;
|
|
181
192
|
performanceScore: number;
|
|
182
193
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
183
|
-
agentId: string;
|
|
184
194
|
agentName: string;
|
|
185
195
|
agentEmail: string;
|
|
186
196
|
callsOnDate: number;
|
|
@@ -218,21 +228,21 @@ export declare const AllAgentsCallHistoryResponseSchema: z.ZodObject<{
|
|
|
218
228
|
performanceScore: z.ZodNumber;
|
|
219
229
|
performanceTier: z.ZodEnum<["high", "medium", "low", "new"]>;
|
|
220
230
|
}, "strip", z.ZodTypeAny, {
|
|
231
|
+
agentId: string;
|
|
221
232
|
totalCalls: number;
|
|
222
233
|
conversionRate: number;
|
|
223
234
|
performanceScore: number;
|
|
224
235
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
225
|
-
agentId: string;
|
|
226
236
|
agentName: string;
|
|
227
237
|
agentEmail: string;
|
|
228
238
|
callsOnDate: number;
|
|
229
239
|
averageRating: number;
|
|
230
240
|
}, {
|
|
241
|
+
agentId: string;
|
|
231
242
|
totalCalls: number;
|
|
232
243
|
conversionRate: number;
|
|
233
244
|
performanceScore: number;
|
|
234
245
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
235
|
-
agentId: string;
|
|
236
246
|
agentName: string;
|
|
237
247
|
agentEmail: string;
|
|
238
248
|
callsOnDate: number;
|
|
@@ -246,11 +256,11 @@ export declare const AllAgentsCallHistoryResponseSchema: z.ZodObject<{
|
|
|
246
256
|
}, "strip", z.ZodTypeAny, {
|
|
247
257
|
limit: number;
|
|
248
258
|
items: {
|
|
259
|
+
agentId: string;
|
|
249
260
|
totalCalls: number;
|
|
250
261
|
conversionRate: number;
|
|
251
262
|
performanceScore: number;
|
|
252
263
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
253
|
-
agentId: string;
|
|
254
264
|
agentName: string;
|
|
255
265
|
agentEmail: string;
|
|
256
266
|
callsOnDate: number;
|
|
@@ -263,11 +273,11 @@ export declare const AllAgentsCallHistoryResponseSchema: z.ZodObject<{
|
|
|
263
273
|
}, {
|
|
264
274
|
limit: number;
|
|
265
275
|
items: {
|
|
276
|
+
agentId: string;
|
|
266
277
|
totalCalls: number;
|
|
267
278
|
conversionRate: number;
|
|
268
279
|
performanceScore: number;
|
|
269
280
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
270
|
-
agentId: string;
|
|
271
281
|
agentName: string;
|
|
272
282
|
agentEmail: string;
|
|
273
283
|
callsOnDate: number;
|
|
@@ -284,23 +294,23 @@ export declare const AllAgentsCallHistoryResponseSchema: z.ZodObject<{
|
|
|
284
294
|
export declare const FaActivesWidgetSchema: z.ZodObject<{
|
|
285
295
|
today: z.ZodObject<{
|
|
286
296
|
total: z.ZodNumber;
|
|
287
|
-
byStatusFa: z.ZodRecord<z.
|
|
297
|
+
byStatusFa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
288
298
|
}, "strip", z.ZodTypeAny, {
|
|
289
299
|
total: number;
|
|
290
|
-
byStatusFa: Record<
|
|
300
|
+
byStatusFa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
291
301
|
}, {
|
|
292
302
|
total: number;
|
|
293
|
-
byStatusFa: Record<
|
|
303
|
+
byStatusFa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
294
304
|
}>;
|
|
295
305
|
}, "strip", z.ZodTypeAny, {
|
|
296
306
|
today: {
|
|
297
307
|
total: number;
|
|
298
|
-
byStatusFa: Record<
|
|
308
|
+
byStatusFa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
299
309
|
};
|
|
300
310
|
}, {
|
|
301
311
|
today: {
|
|
302
312
|
total: number;
|
|
303
|
-
byStatusFa: Record<
|
|
313
|
+
byStatusFa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
304
314
|
};
|
|
305
315
|
}>;
|
|
306
316
|
/**
|
|
@@ -308,22 +318,22 @@ export declare const FaActivesWidgetSchema: z.ZodObject<{
|
|
|
308
318
|
*/
|
|
309
319
|
export declare const FaBookingsWidgetSchema: z.ZodObject<{
|
|
310
320
|
totalToday: z.ZodNumber;
|
|
311
|
-
byStatus: z.ZodRecord<z.
|
|
312
|
-
|
|
321
|
+
byStatus: z.ZodRecord<z.ZodEnum<["CANCELLED", "JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>, z.ZodNumber>;
|
|
322
|
+
ongoingBookings: z.ZodNumber;
|
|
313
323
|
startingToday: z.ZodNumber;
|
|
314
324
|
pendingConfirmation: z.ZodNumber;
|
|
315
325
|
upcomingStarts: z.ZodNumber;
|
|
316
326
|
}, "strip", z.ZodTypeAny, {
|
|
317
|
-
byStatus: Record<
|
|
327
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
318
328
|
totalToday: number;
|
|
319
|
-
|
|
329
|
+
ongoingBookings: number;
|
|
320
330
|
startingToday: number;
|
|
321
331
|
pendingConfirmation: number;
|
|
322
332
|
upcomingStarts: number;
|
|
323
333
|
}, {
|
|
324
|
-
byStatus: Record<
|
|
334
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
325
335
|
totalToday: number;
|
|
326
|
-
|
|
336
|
+
ongoingBookings: number;
|
|
327
337
|
startingToday: number;
|
|
328
338
|
pendingConfirmation: number;
|
|
329
339
|
upcomingStarts: number;
|
|
@@ -335,39 +345,39 @@ export declare const SaWorkersWidgetSchema: z.ZodObject<{
|
|
|
335
345
|
total: z.ZodNumber;
|
|
336
346
|
addedThisWeek: z.ZodNumber;
|
|
337
347
|
addedThisMonth: z.ZodNumber;
|
|
338
|
-
byAvailability: z.ZodOptional<z.ZodRecord<z.
|
|
348
|
+
byAvailability: z.ZodOptional<z.ZodRecord<z.ZodEnum<["AVAILABLE", "PARTIALLY_AVAILABLE", "UNAVAILABLE"]>, z.ZodNumber>>;
|
|
339
349
|
}, "strip", z.ZodTypeAny, {
|
|
340
350
|
total: number;
|
|
341
351
|
addedThisWeek: number;
|
|
342
352
|
addedThisMonth: number;
|
|
343
|
-
byAvailability?: Record<
|
|
353
|
+
byAvailability?: Partial<Record<"AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE", number>> | undefined;
|
|
344
354
|
}, {
|
|
345
355
|
total: number;
|
|
346
356
|
addedThisWeek: number;
|
|
347
357
|
addedThisMonth: number;
|
|
348
|
-
byAvailability?: Record<
|
|
358
|
+
byAvailability?: Partial<Record<"AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE", number>> | undefined;
|
|
349
359
|
}>;
|
|
350
360
|
/**
|
|
351
361
|
* SA Bookings Widget - Booking management (SA perspective)
|
|
352
362
|
*/
|
|
353
363
|
export declare const SaBookingsWidgetSchema: z.ZodObject<{
|
|
354
364
|
totalToday: z.ZodNumber;
|
|
355
|
-
byStatus: z.ZodRecord<z.
|
|
356
|
-
|
|
365
|
+
byStatus: z.ZodRecord<z.ZodEnum<["CANCELLED", "JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>, z.ZodNumber>;
|
|
366
|
+
ongoingBookings: z.ZodNumber;
|
|
357
367
|
startingToday: z.ZodNumber;
|
|
358
368
|
waitingForConfirmation: z.ZodNumber;
|
|
359
369
|
upcomingStarts: z.ZodNumber;
|
|
360
370
|
}, "strip", z.ZodTypeAny, {
|
|
361
|
-
byStatus: Record<
|
|
371
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
362
372
|
totalToday: number;
|
|
363
|
-
|
|
373
|
+
ongoingBookings: number;
|
|
364
374
|
startingToday: number;
|
|
365
375
|
upcomingStarts: number;
|
|
366
376
|
waitingForConfirmation: number;
|
|
367
377
|
}, {
|
|
368
|
-
byStatus: Record<
|
|
378
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
369
379
|
totalToday: number;
|
|
370
|
-
|
|
380
|
+
ongoingBookings: number;
|
|
371
381
|
startingToday: number;
|
|
372
382
|
upcomingStarts: number;
|
|
373
383
|
waitingForConfirmation: number;
|
|
@@ -378,23 +388,23 @@ export declare const SaBookingsWidgetSchema: z.ZodObject<{
|
|
|
378
388
|
export declare const SaActivesWidgetSchema: z.ZodObject<{
|
|
379
389
|
today: z.ZodObject<{
|
|
380
390
|
total: z.ZodNumber;
|
|
381
|
-
byStatusSa: z.ZodRecord<z.
|
|
391
|
+
byStatusSa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
382
392
|
}, "strip", z.ZodTypeAny, {
|
|
383
393
|
total: number;
|
|
384
|
-
byStatusSa: Record<
|
|
394
|
+
byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
385
395
|
}, {
|
|
386
396
|
total: number;
|
|
387
|
-
byStatusSa: Record<
|
|
397
|
+
byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
388
398
|
}>;
|
|
389
399
|
}, "strip", z.ZodTypeAny, {
|
|
390
400
|
today: {
|
|
391
401
|
total: number;
|
|
392
|
-
byStatusSa: Record<
|
|
402
|
+
byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
393
403
|
};
|
|
394
404
|
}, {
|
|
395
405
|
today: {
|
|
396
406
|
total: number;
|
|
397
|
-
byStatusSa: Record<
|
|
407
|
+
byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
398
408
|
};
|
|
399
409
|
}>;
|
|
400
410
|
/**
|
|
@@ -404,15 +414,15 @@ export declare const ActivesTrendSchema: z.ZodObject<{
|
|
|
404
414
|
data: z.ZodArray<z.ZodObject<{
|
|
405
415
|
date: z.ZodString;
|
|
406
416
|
total: z.ZodNumber;
|
|
407
|
-
byStatus: z.ZodRecord<z.
|
|
417
|
+
byStatus: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
408
418
|
}, "strip", z.ZodTypeAny, {
|
|
409
419
|
date: string;
|
|
410
420
|
total: number;
|
|
411
|
-
byStatus: Record<
|
|
421
|
+
byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
412
422
|
}, {
|
|
413
423
|
date: string;
|
|
414
424
|
total: number;
|
|
415
|
-
byStatus: Record<
|
|
425
|
+
byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
416
426
|
}>, "many">;
|
|
417
427
|
summary: z.ZodObject<{
|
|
418
428
|
averageDaily: z.ZodNumber;
|
|
@@ -436,7 +446,7 @@ export declare const ActivesTrendSchema: z.ZodObject<{
|
|
|
436
446
|
data: {
|
|
437
447
|
date: string;
|
|
438
448
|
total: number;
|
|
439
|
-
byStatus: Record<
|
|
449
|
+
byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
440
450
|
}[];
|
|
441
451
|
}, {
|
|
442
452
|
summary: {
|
|
@@ -447,7 +457,7 @@ export declare const ActivesTrendSchema: z.ZodObject<{
|
|
|
447
457
|
data: {
|
|
448
458
|
date: string;
|
|
449
459
|
total: number;
|
|
450
|
-
byStatus: Record<
|
|
460
|
+
byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
451
461
|
}[];
|
|
452
462
|
}>;
|
|
453
463
|
/**
|
|
@@ -457,15 +467,15 @@ export declare const BookingsTrendSchema: z.ZodObject<{
|
|
|
457
467
|
data: z.ZodArray<z.ZodObject<{
|
|
458
468
|
date: z.ZodString;
|
|
459
469
|
total: z.ZodNumber;
|
|
460
|
-
byStatus: z.ZodRecord<z.
|
|
470
|
+
byStatus: z.ZodRecord<z.ZodEnum<["CANCELLED", "JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>, z.ZodNumber>;
|
|
461
471
|
}, "strip", z.ZodTypeAny, {
|
|
462
472
|
date: string;
|
|
463
473
|
total: number;
|
|
464
|
-
byStatus: Record<
|
|
474
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
465
475
|
}, {
|
|
466
476
|
date: string;
|
|
467
477
|
total: number;
|
|
468
|
-
byStatus: Record<
|
|
478
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
469
479
|
}>, "many">;
|
|
470
480
|
summary: z.ZodObject<{
|
|
471
481
|
averageDaily: z.ZodNumber;
|
|
@@ -485,7 +495,7 @@ export declare const BookingsTrendSchema: z.ZodObject<{
|
|
|
485
495
|
data: {
|
|
486
496
|
date: string;
|
|
487
497
|
total: number;
|
|
488
|
-
byStatus: Record<
|
|
498
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
489
499
|
}[];
|
|
490
500
|
}, {
|
|
491
501
|
summary: {
|
|
@@ -495,7 +505,7 @@ export declare const BookingsTrendSchema: z.ZodObject<{
|
|
|
495
505
|
data: {
|
|
496
506
|
date: string;
|
|
497
507
|
total: number;
|
|
498
|
-
byStatus: Record<
|
|
508
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
499
509
|
}[];
|
|
500
510
|
}>;
|
|
501
511
|
/**
|
|
@@ -616,14 +626,14 @@ export declare const CollaborationsTrendSchema: z.ZodObject<{
|
|
|
616
626
|
data: z.ZodArray<z.ZodObject<{
|
|
617
627
|
date: z.ZodString;
|
|
618
628
|
created: z.ZodNumber;
|
|
619
|
-
byStatus: z.ZodRecord<z.
|
|
629
|
+
byStatus: z.ZodRecord<z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT", "CHANGED_COMPANY_AND_AGENT"]>, z.ZodNumber>;
|
|
620
630
|
}, "strip", z.ZodTypeAny, {
|
|
621
631
|
date: string;
|
|
622
|
-
byStatus: Record<
|
|
632
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
623
633
|
created: number;
|
|
624
634
|
}, {
|
|
625
635
|
date: string;
|
|
626
|
-
byStatus: Record<
|
|
636
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
627
637
|
created: number;
|
|
628
638
|
}>, "many">;
|
|
629
639
|
summary: z.ZodObject<{
|
|
@@ -643,7 +653,7 @@ export declare const CollaborationsTrendSchema: z.ZodObject<{
|
|
|
643
653
|
};
|
|
644
654
|
data: {
|
|
645
655
|
date: string;
|
|
646
|
-
byStatus: Record<
|
|
656
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
647
657
|
created: number;
|
|
648
658
|
}[];
|
|
649
659
|
}, {
|
|
@@ -653,29 +663,36 @@ export declare const CollaborationsTrendSchema: z.ZodObject<{
|
|
|
653
663
|
};
|
|
654
664
|
data: {
|
|
655
665
|
date: string;
|
|
656
|
-
byStatus: Record<
|
|
666
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
657
667
|
created: number;
|
|
658
668
|
}[];
|
|
659
669
|
}>;
|
|
660
670
|
export declare const dashboardWidgetsContract: {
|
|
661
671
|
getFaPipeline: {
|
|
662
|
-
summary: "Get FA collaboration pipeline widget data";
|
|
663
672
|
description: "Returns collaboration pipeline overview for First Agent dashboard";
|
|
673
|
+
query: z.ZodObject<{
|
|
674
|
+
date: z.ZodOptional<z.ZodString>;
|
|
675
|
+
}, "strip", z.ZodTypeAny, {
|
|
676
|
+
date?: string | undefined;
|
|
677
|
+
}, {
|
|
678
|
+
date?: string | undefined;
|
|
679
|
+
}>;
|
|
680
|
+
summary: "Get FA collaboration pipeline widget data";
|
|
664
681
|
method: "GET";
|
|
665
682
|
path: "/widgets/fa/pipeline";
|
|
666
683
|
responses: {
|
|
667
684
|
200: z.ZodObject<{
|
|
668
685
|
collaborations: z.ZodObject<{
|
|
669
686
|
total: z.ZodNumber;
|
|
670
|
-
byStatus: z.ZodRecord<z.
|
|
687
|
+
byStatus: z.ZodRecord<z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT", "CHANGED_COMPANY_AND_AGENT"]>, z.ZodNumber>;
|
|
671
688
|
recentCount: z.ZodNumber;
|
|
672
689
|
}, "strip", z.ZodTypeAny, {
|
|
673
690
|
total: number;
|
|
674
|
-
byStatus: Record<
|
|
691
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
675
692
|
recentCount: number;
|
|
676
693
|
}, {
|
|
677
694
|
total: number;
|
|
678
|
-
byStatus: Record<
|
|
695
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
679
696
|
recentCount: number;
|
|
680
697
|
}>;
|
|
681
698
|
summary: z.ZodObject<{
|
|
@@ -689,55 +706,69 @@ export declare const dashboardWidgetsContract: {
|
|
|
689
706
|
pendingApproval: number;
|
|
690
707
|
}>;
|
|
691
708
|
}, "strip", z.ZodTypeAny, {
|
|
692
|
-
collaborations: {
|
|
693
|
-
total: number;
|
|
694
|
-
byStatus: Record<string, number>;
|
|
695
|
-
recentCount: number;
|
|
696
|
-
};
|
|
697
709
|
summary: {
|
|
698
710
|
activeCollaborations: number;
|
|
699
711
|
pendingApproval: number;
|
|
700
712
|
};
|
|
701
|
-
}, {
|
|
702
713
|
collaborations: {
|
|
703
714
|
total: number;
|
|
704
|
-
byStatus: Record<
|
|
715
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
705
716
|
recentCount: number;
|
|
706
717
|
};
|
|
718
|
+
}, {
|
|
707
719
|
summary: {
|
|
708
720
|
activeCollaborations: number;
|
|
709
721
|
pendingApproval: number;
|
|
710
722
|
};
|
|
723
|
+
collaborations: {
|
|
724
|
+
total: number;
|
|
725
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
726
|
+
recentCount: number;
|
|
727
|
+
};
|
|
711
728
|
}>;
|
|
712
729
|
};
|
|
713
730
|
};
|
|
714
731
|
getFaClients: {
|
|
715
|
-
summary: "Get FA clients widget data";
|
|
716
732
|
description: "Returns client portfolio summary for First Agent dashboard";
|
|
733
|
+
query: z.ZodObject<{
|
|
734
|
+
date: z.ZodOptional<z.ZodString>;
|
|
735
|
+
}, "strip", z.ZodTypeAny, {
|
|
736
|
+
date?: string | undefined;
|
|
737
|
+
}, {
|
|
738
|
+
date?: string | undefined;
|
|
739
|
+
}>;
|
|
740
|
+
summary: "Get FA clients widget data";
|
|
717
741
|
method: "GET";
|
|
718
742
|
path: "/widgets/fa/clients";
|
|
719
743
|
responses: {
|
|
720
744
|
200: z.ZodObject<{
|
|
721
745
|
total: z.ZodNumber;
|
|
722
|
-
byStatus: z.ZodRecord<z.
|
|
746
|
+
byStatus: z.ZodRecord<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>, z.ZodNumber>;
|
|
723
747
|
recentlyAdded: z.ZodNumber;
|
|
724
748
|
pendingVerification: z.ZodNumber;
|
|
725
749
|
}, "strip", z.ZodTypeAny, {
|
|
726
750
|
total: number;
|
|
727
|
-
byStatus: Record<
|
|
751
|
+
byStatus: Partial<Record<"APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED", number>>;
|
|
728
752
|
recentlyAdded: number;
|
|
729
753
|
pendingVerification: number;
|
|
730
754
|
}, {
|
|
731
755
|
total: number;
|
|
732
|
-
byStatus: Record<
|
|
756
|
+
byStatus: Partial<Record<"APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED", number>>;
|
|
733
757
|
recentlyAdded: number;
|
|
734
758
|
pendingVerification: number;
|
|
735
759
|
}>;
|
|
736
760
|
};
|
|
737
761
|
};
|
|
738
762
|
getFaCheckings: {
|
|
739
|
-
summary: "Get FA collaboration checkings widget data";
|
|
740
763
|
description: "Returns collaboration checking status for First Agent dashboard";
|
|
764
|
+
query: z.ZodObject<{
|
|
765
|
+
date: z.ZodOptional<z.ZodString>;
|
|
766
|
+
}, "strip", z.ZodTypeAny, {
|
|
767
|
+
date?: string | undefined;
|
|
768
|
+
}, {
|
|
769
|
+
date?: string | undefined;
|
|
770
|
+
}>;
|
|
771
|
+
summary: "Get FA collaboration checkings widget data";
|
|
741
772
|
method: "GET";
|
|
742
773
|
path: "/widgets/fa/checkings";
|
|
743
774
|
responses: {
|
|
@@ -760,8 +791,15 @@ export declare const dashboardWidgetsContract: {
|
|
|
760
791
|
};
|
|
761
792
|
};
|
|
762
793
|
getFaCallHistory: {
|
|
763
|
-
summary: "Get FA call history widget data";
|
|
764
794
|
description: "Returns call performance metrics for First Agent dashboard";
|
|
795
|
+
query: z.ZodObject<{
|
|
796
|
+
date: z.ZodOptional<z.ZodString>;
|
|
797
|
+
}, "strip", z.ZodTypeAny, {
|
|
798
|
+
date?: string | undefined;
|
|
799
|
+
}, {
|
|
800
|
+
date?: string | undefined;
|
|
801
|
+
}>;
|
|
802
|
+
summary: "Get FA call history widget data";
|
|
765
803
|
method: "GET";
|
|
766
804
|
path: "/widgets/fa/call-history";
|
|
767
805
|
responses: {
|
|
@@ -777,29 +815,29 @@ export declare const dashboardWidgetsContract: {
|
|
|
777
815
|
ratingBreakdown: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
778
816
|
}, "strip", z.ZodTypeAny, {
|
|
779
817
|
totalCalls: number;
|
|
818
|
+
conversionRate: number;
|
|
819
|
+
performanceScore: number;
|
|
820
|
+
performanceTier: "high" | "medium" | "low" | "new";
|
|
780
821
|
callsToday: number;
|
|
781
822
|
callsThisWeek: number;
|
|
782
823
|
averageRatingToday: number;
|
|
783
824
|
efficientCallsToday: number;
|
|
784
|
-
conversionRate: number;
|
|
785
|
-
performanceScore: number;
|
|
786
|
-
performanceTier: "high" | "medium" | "low" | "new";
|
|
787
825
|
ratingBreakdown: Record<string, number>;
|
|
788
826
|
}, {
|
|
789
827
|
totalCalls: number;
|
|
828
|
+
conversionRate: number;
|
|
829
|
+
performanceScore: number;
|
|
830
|
+
performanceTier: "high" | "medium" | "low" | "new";
|
|
790
831
|
callsToday: number;
|
|
791
832
|
callsThisWeek: number;
|
|
792
833
|
averageRatingToday: number;
|
|
793
834
|
efficientCallsToday: number;
|
|
794
|
-
conversionRate: number;
|
|
795
|
-
performanceScore: number;
|
|
796
|
-
performanceTier: "high" | "medium" | "low" | "new";
|
|
797
835
|
ratingBreakdown: Record<string, number>;
|
|
798
836
|
}>;
|
|
799
837
|
};
|
|
800
838
|
};
|
|
801
839
|
getAllAvailableAgentsCallHistory: {
|
|
802
|
-
|
|
840
|
+
description: "Returns paginated call performance metrics for all agents marked as available in lead distribution";
|
|
803
841
|
query: z.ZodObject<{
|
|
804
842
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
805
843
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -814,7 +852,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
814
852
|
limit?: number | undefined;
|
|
815
853
|
page?: number | undefined;
|
|
816
854
|
}>;
|
|
817
|
-
|
|
855
|
+
summary: "Get call history for all available agents";
|
|
818
856
|
method: "GET";
|
|
819
857
|
path: "/widgets/agents/call-history";
|
|
820
858
|
responses: {
|
|
@@ -830,21 +868,21 @@ export declare const dashboardWidgetsContract: {
|
|
|
830
868
|
performanceScore: z.ZodNumber;
|
|
831
869
|
performanceTier: z.ZodEnum<["high", "medium", "low", "new"]>;
|
|
832
870
|
}, "strip", z.ZodTypeAny, {
|
|
871
|
+
agentId: string;
|
|
833
872
|
totalCalls: number;
|
|
834
873
|
conversionRate: number;
|
|
835
874
|
performanceScore: number;
|
|
836
875
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
837
|
-
agentId: string;
|
|
838
876
|
agentName: string;
|
|
839
877
|
agentEmail: string;
|
|
840
878
|
callsOnDate: number;
|
|
841
879
|
averageRating: number;
|
|
842
880
|
}, {
|
|
881
|
+
agentId: string;
|
|
843
882
|
totalCalls: number;
|
|
844
883
|
conversionRate: number;
|
|
845
884
|
performanceScore: number;
|
|
846
885
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
847
|
-
agentId: string;
|
|
848
886
|
agentName: string;
|
|
849
887
|
agentEmail: string;
|
|
850
888
|
callsOnDate: number;
|
|
@@ -858,11 +896,11 @@ export declare const dashboardWidgetsContract: {
|
|
|
858
896
|
}, "strip", z.ZodTypeAny, {
|
|
859
897
|
limit: number;
|
|
860
898
|
items: {
|
|
899
|
+
agentId: string;
|
|
861
900
|
totalCalls: number;
|
|
862
901
|
conversionRate: number;
|
|
863
902
|
performanceScore: number;
|
|
864
903
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
865
|
-
agentId: string;
|
|
866
904
|
agentName: string;
|
|
867
905
|
agentEmail: string;
|
|
868
906
|
callsOnDate: number;
|
|
@@ -875,11 +913,11 @@ export declare const dashboardWidgetsContract: {
|
|
|
875
913
|
}, {
|
|
876
914
|
limit: number;
|
|
877
915
|
items: {
|
|
916
|
+
agentId: string;
|
|
878
917
|
totalCalls: number;
|
|
879
918
|
conversionRate: number;
|
|
880
919
|
performanceScore: number;
|
|
881
920
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
882
|
-
agentId: string;
|
|
883
921
|
agentName: string;
|
|
884
922
|
agentEmail: string;
|
|
885
923
|
callsOnDate: number;
|
|
@@ -893,59 +931,73 @@ export declare const dashboardWidgetsContract: {
|
|
|
893
931
|
};
|
|
894
932
|
};
|
|
895
933
|
getFaActives: {
|
|
896
|
-
summary: "Get FA actives widget data";
|
|
897
934
|
description: "Returns today's active workers from FA perspective";
|
|
935
|
+
query: z.ZodObject<{
|
|
936
|
+
date: z.ZodOptional<z.ZodString>;
|
|
937
|
+
}, "strip", z.ZodTypeAny, {
|
|
938
|
+
date?: string | undefined;
|
|
939
|
+
}, {
|
|
940
|
+
date?: string | undefined;
|
|
941
|
+
}>;
|
|
942
|
+
summary: "Get FA actives widget data";
|
|
898
943
|
method: "GET";
|
|
899
944
|
path: "/widgets/fa/actives";
|
|
900
945
|
responses: {
|
|
901
946
|
200: z.ZodObject<{
|
|
902
947
|
today: z.ZodObject<{
|
|
903
948
|
total: z.ZodNumber;
|
|
904
|
-
byStatusFa: z.ZodRecord<z.
|
|
949
|
+
byStatusFa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
905
950
|
}, "strip", z.ZodTypeAny, {
|
|
906
951
|
total: number;
|
|
907
|
-
byStatusFa: Record<
|
|
952
|
+
byStatusFa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
908
953
|
}, {
|
|
909
954
|
total: number;
|
|
910
|
-
byStatusFa: Record<
|
|
955
|
+
byStatusFa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
911
956
|
}>;
|
|
912
957
|
}, "strip", z.ZodTypeAny, {
|
|
913
958
|
today: {
|
|
914
959
|
total: number;
|
|
915
|
-
byStatusFa: Record<
|
|
960
|
+
byStatusFa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
916
961
|
};
|
|
917
962
|
}, {
|
|
918
963
|
today: {
|
|
919
964
|
total: number;
|
|
920
|
-
byStatusFa: Record<
|
|
965
|
+
byStatusFa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
921
966
|
};
|
|
922
967
|
}>;
|
|
923
968
|
};
|
|
924
969
|
};
|
|
925
970
|
getFaBookings: {
|
|
926
|
-
summary: "Get FA bookings widget data";
|
|
927
971
|
description: "Returns booking management summary for First Agent dashboard";
|
|
972
|
+
query: z.ZodObject<{
|
|
973
|
+
date: z.ZodOptional<z.ZodString>;
|
|
974
|
+
}, "strip", z.ZodTypeAny, {
|
|
975
|
+
date?: string | undefined;
|
|
976
|
+
}, {
|
|
977
|
+
date?: string | undefined;
|
|
978
|
+
}>;
|
|
979
|
+
summary: "Get FA bookings widget data";
|
|
928
980
|
method: "GET";
|
|
929
981
|
path: "/widgets/fa/bookings";
|
|
930
982
|
responses: {
|
|
931
983
|
200: z.ZodObject<{
|
|
932
984
|
totalToday: z.ZodNumber;
|
|
933
|
-
byStatus: z.ZodRecord<z.
|
|
934
|
-
|
|
985
|
+
byStatus: z.ZodRecord<z.ZodEnum<["CANCELLED", "JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>, z.ZodNumber>;
|
|
986
|
+
ongoingBookings: z.ZodNumber;
|
|
935
987
|
startingToday: z.ZodNumber;
|
|
936
988
|
pendingConfirmation: z.ZodNumber;
|
|
937
989
|
upcomingStarts: z.ZodNumber;
|
|
938
990
|
}, "strip", z.ZodTypeAny, {
|
|
939
|
-
byStatus: Record<
|
|
991
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
940
992
|
totalToday: number;
|
|
941
|
-
|
|
993
|
+
ongoingBookings: number;
|
|
942
994
|
startingToday: number;
|
|
943
995
|
pendingConfirmation: number;
|
|
944
996
|
upcomingStarts: number;
|
|
945
997
|
}, {
|
|
946
|
-
byStatus: Record<
|
|
998
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
947
999
|
totalToday: number;
|
|
948
|
-
|
|
1000
|
+
ongoingBookings: number;
|
|
949
1001
|
startingToday: number;
|
|
950
1002
|
pendingConfirmation: number;
|
|
951
1003
|
upcomingStarts: number;
|
|
@@ -953,8 +1005,15 @@ export declare const dashboardWidgetsContract: {
|
|
|
953
1005
|
};
|
|
954
1006
|
};
|
|
955
1007
|
getSaWorkers: {
|
|
956
|
-
summary: "Get SA workers widget data";
|
|
957
1008
|
description: "Returns worker recruitment summary for Second Agent dashboard";
|
|
1009
|
+
query: z.ZodObject<{
|
|
1010
|
+
date: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
}, "strip", z.ZodTypeAny, {
|
|
1012
|
+
date?: string | undefined;
|
|
1013
|
+
}, {
|
|
1014
|
+
date?: string | undefined;
|
|
1015
|
+
}>;
|
|
1016
|
+
summary: "Get SA workers widget data";
|
|
958
1017
|
method: "GET";
|
|
959
1018
|
path: "/widgets/sa/workers";
|
|
960
1019
|
responses: {
|
|
@@ -962,44 +1021,51 @@ export declare const dashboardWidgetsContract: {
|
|
|
962
1021
|
total: z.ZodNumber;
|
|
963
1022
|
addedThisWeek: z.ZodNumber;
|
|
964
1023
|
addedThisMonth: z.ZodNumber;
|
|
965
|
-
byAvailability: z.ZodOptional<z.ZodRecord<z.
|
|
1024
|
+
byAvailability: z.ZodOptional<z.ZodRecord<z.ZodEnum<["AVAILABLE", "PARTIALLY_AVAILABLE", "UNAVAILABLE"]>, z.ZodNumber>>;
|
|
966
1025
|
}, "strip", z.ZodTypeAny, {
|
|
967
1026
|
total: number;
|
|
968
1027
|
addedThisWeek: number;
|
|
969
1028
|
addedThisMonth: number;
|
|
970
|
-
byAvailability?: Record<
|
|
1029
|
+
byAvailability?: Partial<Record<"AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE", number>> | undefined;
|
|
971
1030
|
}, {
|
|
972
1031
|
total: number;
|
|
973
1032
|
addedThisWeek: number;
|
|
974
1033
|
addedThisMonth: number;
|
|
975
|
-
byAvailability?: Record<
|
|
1034
|
+
byAvailability?: Partial<Record<"AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE", number>> | undefined;
|
|
976
1035
|
}>;
|
|
977
1036
|
};
|
|
978
1037
|
};
|
|
979
1038
|
getSaBookings: {
|
|
980
|
-
summary: "Get SA bookings widget data";
|
|
981
1039
|
description: "Returns booking management summary for Second Agent dashboard";
|
|
1040
|
+
query: z.ZodObject<{
|
|
1041
|
+
date: z.ZodOptional<z.ZodString>;
|
|
1042
|
+
}, "strip", z.ZodTypeAny, {
|
|
1043
|
+
date?: string | undefined;
|
|
1044
|
+
}, {
|
|
1045
|
+
date?: string | undefined;
|
|
1046
|
+
}>;
|
|
1047
|
+
summary: "Get SA bookings widget data";
|
|
982
1048
|
method: "GET";
|
|
983
1049
|
path: "/widgets/sa/bookings";
|
|
984
1050
|
responses: {
|
|
985
1051
|
200: z.ZodObject<{
|
|
986
1052
|
totalToday: z.ZodNumber;
|
|
987
|
-
byStatus: z.ZodRecord<z.
|
|
988
|
-
|
|
1053
|
+
byStatus: z.ZodRecord<z.ZodEnum<["CANCELLED", "JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>, z.ZodNumber>;
|
|
1054
|
+
ongoingBookings: z.ZodNumber;
|
|
989
1055
|
startingToday: z.ZodNumber;
|
|
990
1056
|
waitingForConfirmation: z.ZodNumber;
|
|
991
1057
|
upcomingStarts: z.ZodNumber;
|
|
992
1058
|
}, "strip", z.ZodTypeAny, {
|
|
993
|
-
byStatus: Record<
|
|
1059
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
994
1060
|
totalToday: number;
|
|
995
|
-
|
|
1061
|
+
ongoingBookings: number;
|
|
996
1062
|
startingToday: number;
|
|
997
1063
|
upcomingStarts: number;
|
|
998
1064
|
waitingForConfirmation: number;
|
|
999
1065
|
}, {
|
|
1000
|
-
byStatus: Record<
|
|
1066
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
1001
1067
|
totalToday: number;
|
|
1002
|
-
|
|
1068
|
+
ongoingBookings: number;
|
|
1003
1069
|
startingToday: number;
|
|
1004
1070
|
upcomingStarts: number;
|
|
1005
1071
|
waitingForConfirmation: number;
|
|
@@ -1007,37 +1073,44 @@ export declare const dashboardWidgetsContract: {
|
|
|
1007
1073
|
};
|
|
1008
1074
|
};
|
|
1009
1075
|
getSaActives: {
|
|
1010
|
-
summary: "Get SA actives widget data";
|
|
1011
1076
|
description: "Returns today's active workers from SA perspective";
|
|
1077
|
+
query: z.ZodObject<{
|
|
1078
|
+
date: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
}, "strip", z.ZodTypeAny, {
|
|
1080
|
+
date?: string | undefined;
|
|
1081
|
+
}, {
|
|
1082
|
+
date?: string | undefined;
|
|
1083
|
+
}>;
|
|
1084
|
+
summary: "Get SA actives widget data";
|
|
1012
1085
|
method: "GET";
|
|
1013
1086
|
path: "/widgets/sa/actives";
|
|
1014
1087
|
responses: {
|
|
1015
1088
|
200: z.ZodObject<{
|
|
1016
1089
|
today: z.ZodObject<{
|
|
1017
1090
|
total: z.ZodNumber;
|
|
1018
|
-
byStatusSa: z.ZodRecord<z.
|
|
1091
|
+
byStatusSa: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
1019
1092
|
}, "strip", z.ZodTypeAny, {
|
|
1020
1093
|
total: number;
|
|
1021
|
-
byStatusSa: Record<
|
|
1094
|
+
byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1022
1095
|
}, {
|
|
1023
1096
|
total: number;
|
|
1024
|
-
byStatusSa: Record<
|
|
1097
|
+
byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1025
1098
|
}>;
|
|
1026
1099
|
}, "strip", z.ZodTypeAny, {
|
|
1027
1100
|
today: {
|
|
1028
1101
|
total: number;
|
|
1029
|
-
byStatusSa: Record<
|
|
1102
|
+
byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1030
1103
|
};
|
|
1031
1104
|
}, {
|
|
1032
1105
|
today: {
|
|
1033
1106
|
total: number;
|
|
1034
|
-
byStatusSa: Record<
|
|
1107
|
+
byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1035
1108
|
};
|
|
1036
1109
|
}>;
|
|
1037
1110
|
};
|
|
1038
1111
|
};
|
|
1039
1112
|
getActivesTrend: {
|
|
1040
|
-
|
|
1113
|
+
description: "Returns time-series data for actives over a date range";
|
|
1041
1114
|
query: z.ZodObject<{
|
|
1042
1115
|
startDate: z.ZodString;
|
|
1043
1116
|
endDate: z.ZodString;
|
|
@@ -1048,7 +1121,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
1048
1121
|
startDate: string;
|
|
1049
1122
|
endDate: string;
|
|
1050
1123
|
}>;
|
|
1051
|
-
|
|
1124
|
+
summary: "Get actives historical trend";
|
|
1052
1125
|
method: "GET";
|
|
1053
1126
|
path: "/trends/actives";
|
|
1054
1127
|
responses: {
|
|
@@ -1056,15 +1129,15 @@ export declare const dashboardWidgetsContract: {
|
|
|
1056
1129
|
data: z.ZodArray<z.ZodObject<{
|
|
1057
1130
|
date: z.ZodString;
|
|
1058
1131
|
total: z.ZodNumber;
|
|
1059
|
-
byStatus: z.ZodRecord<z.
|
|
1132
|
+
byStatus: z.ZodRecord<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>, z.ZodNumber>;
|
|
1060
1133
|
}, "strip", z.ZodTypeAny, {
|
|
1061
1134
|
date: string;
|
|
1062
1135
|
total: number;
|
|
1063
|
-
byStatus: Record<
|
|
1136
|
+
byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1064
1137
|
}, {
|
|
1065
1138
|
date: string;
|
|
1066
1139
|
total: number;
|
|
1067
|
-
byStatus: Record<
|
|
1140
|
+
byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1068
1141
|
}>, "many">;
|
|
1069
1142
|
summary: z.ZodObject<{
|
|
1070
1143
|
averageDaily: z.ZodNumber;
|
|
@@ -1088,7 +1161,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
1088
1161
|
data: {
|
|
1089
1162
|
date: string;
|
|
1090
1163
|
total: number;
|
|
1091
|
-
byStatus: Record<
|
|
1164
|
+
byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1092
1165
|
}[];
|
|
1093
1166
|
}, {
|
|
1094
1167
|
summary: {
|
|
@@ -1099,13 +1172,13 @@ export declare const dashboardWidgetsContract: {
|
|
|
1099
1172
|
data: {
|
|
1100
1173
|
date: string;
|
|
1101
1174
|
total: number;
|
|
1102
|
-
byStatus: Record<
|
|
1175
|
+
byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY", number>>;
|
|
1103
1176
|
}[];
|
|
1104
1177
|
}>;
|
|
1105
1178
|
};
|
|
1106
1179
|
};
|
|
1107
1180
|
getBookingsTrend: {
|
|
1108
|
-
|
|
1181
|
+
description: "Returns time-series data for bookings over a date range";
|
|
1109
1182
|
query: z.ZodObject<{
|
|
1110
1183
|
startDate: z.ZodString;
|
|
1111
1184
|
endDate: z.ZodString;
|
|
@@ -1116,7 +1189,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
1116
1189
|
startDate: string;
|
|
1117
1190
|
endDate: string;
|
|
1118
1191
|
}>;
|
|
1119
|
-
|
|
1192
|
+
summary: "Get bookings historical trend";
|
|
1120
1193
|
method: "GET";
|
|
1121
1194
|
path: "/trends/bookings";
|
|
1122
1195
|
responses: {
|
|
@@ -1124,15 +1197,15 @@ export declare const dashboardWidgetsContract: {
|
|
|
1124
1197
|
data: z.ZodArray<z.ZodObject<{
|
|
1125
1198
|
date: z.ZodString;
|
|
1126
1199
|
total: z.ZodNumber;
|
|
1127
|
-
byStatus: z.ZodRecord<z.
|
|
1200
|
+
byStatus: z.ZodRecord<z.ZodEnum<["CANCELLED", "JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>, z.ZodNumber>;
|
|
1128
1201
|
}, "strip", z.ZodTypeAny, {
|
|
1129
1202
|
date: string;
|
|
1130
1203
|
total: number;
|
|
1131
|
-
byStatus: Record<
|
|
1204
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
1132
1205
|
}, {
|
|
1133
1206
|
date: string;
|
|
1134
1207
|
total: number;
|
|
1135
|
-
byStatus: Record<
|
|
1208
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
1136
1209
|
}>, "many">;
|
|
1137
1210
|
summary: z.ZodObject<{
|
|
1138
1211
|
averageDaily: z.ZodNumber;
|
|
@@ -1152,7 +1225,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
1152
1225
|
data: {
|
|
1153
1226
|
date: string;
|
|
1154
1227
|
total: number;
|
|
1155
|
-
byStatus: Record<
|
|
1228
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
1156
1229
|
}[];
|
|
1157
1230
|
}, {
|
|
1158
1231
|
summary: {
|
|
@@ -1162,13 +1235,13 @@ export declare const dashboardWidgetsContract: {
|
|
|
1162
1235
|
data: {
|
|
1163
1236
|
date: string;
|
|
1164
1237
|
total: number;
|
|
1165
|
-
byStatus: Record<
|
|
1238
|
+
byStatus: Partial<Record<"CANCELLED" | "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED", number>>;
|
|
1166
1239
|
}[];
|
|
1167
1240
|
}>;
|
|
1168
1241
|
};
|
|
1169
1242
|
};
|
|
1170
1243
|
getCallPerformanceTrend: {
|
|
1171
|
-
|
|
1244
|
+
description: "Returns time-series data for call performance over a date range";
|
|
1172
1245
|
query: z.ZodObject<{
|
|
1173
1246
|
startDate: z.ZodString;
|
|
1174
1247
|
endDate: z.ZodString;
|
|
@@ -1179,7 +1252,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
1179
1252
|
startDate: string;
|
|
1180
1253
|
endDate: string;
|
|
1181
1254
|
}>;
|
|
1182
|
-
|
|
1255
|
+
summary: "Get call performance historical trend";
|
|
1183
1256
|
method: "GET";
|
|
1184
1257
|
path: "/trends/call-performance";
|
|
1185
1258
|
responses: {
|
|
@@ -1246,7 +1319,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
1246
1319
|
};
|
|
1247
1320
|
};
|
|
1248
1321
|
getWorkersTrend: {
|
|
1249
|
-
|
|
1322
|
+
description: "Returns time-series data for worker additions over a date range";
|
|
1250
1323
|
query: z.ZodObject<{
|
|
1251
1324
|
startDate: z.ZodString;
|
|
1252
1325
|
endDate: z.ZodString;
|
|
@@ -1257,7 +1330,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
1257
1330
|
startDate: string;
|
|
1258
1331
|
endDate: string;
|
|
1259
1332
|
}>;
|
|
1260
|
-
|
|
1333
|
+
summary: "Get workers historical trend (SA only)";
|
|
1261
1334
|
method: "GET";
|
|
1262
1335
|
path: "/trends/workers";
|
|
1263
1336
|
responses: {
|
|
@@ -1309,7 +1382,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
1309
1382
|
};
|
|
1310
1383
|
};
|
|
1311
1384
|
getCollaborationsTrend: {
|
|
1312
|
-
|
|
1385
|
+
description: "Returns time-series data for collaborations over a date range";
|
|
1313
1386
|
query: z.ZodObject<{
|
|
1314
1387
|
startDate: z.ZodString;
|
|
1315
1388
|
endDate: z.ZodString;
|
|
@@ -1320,7 +1393,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
1320
1393
|
startDate: string;
|
|
1321
1394
|
endDate: string;
|
|
1322
1395
|
}>;
|
|
1323
|
-
|
|
1396
|
+
summary: "Get collaborations historical trend (FA only)";
|
|
1324
1397
|
method: "GET";
|
|
1325
1398
|
path: "/trends/collaborations";
|
|
1326
1399
|
responses: {
|
|
@@ -1328,14 +1401,14 @@ export declare const dashboardWidgetsContract: {
|
|
|
1328
1401
|
data: z.ZodArray<z.ZodObject<{
|
|
1329
1402
|
date: z.ZodString;
|
|
1330
1403
|
created: z.ZodNumber;
|
|
1331
|
-
byStatus: z.ZodRecord<z.
|
|
1404
|
+
byStatus: z.ZodRecord<z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT", "CHANGED_COMPANY_AND_AGENT"]>, z.ZodNumber>;
|
|
1332
1405
|
}, "strip", z.ZodTypeAny, {
|
|
1333
1406
|
date: string;
|
|
1334
|
-
byStatus: Record<
|
|
1407
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
1335
1408
|
created: number;
|
|
1336
1409
|
}, {
|
|
1337
1410
|
date: string;
|
|
1338
|
-
byStatus: Record<
|
|
1411
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
1339
1412
|
created: number;
|
|
1340
1413
|
}>, "many">;
|
|
1341
1414
|
summary: z.ZodObject<{
|
|
@@ -1355,7 +1428,7 @@ export declare const dashboardWidgetsContract: {
|
|
|
1355
1428
|
};
|
|
1356
1429
|
data: {
|
|
1357
1430
|
date: string;
|
|
1358
|
-
byStatus: Record<
|
|
1431
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
1359
1432
|
created: number;
|
|
1360
1433
|
}[];
|
|
1361
1434
|
}, {
|
|
@@ -1365,13 +1438,14 @@ export declare const dashboardWidgetsContract: {
|
|
|
1365
1438
|
};
|
|
1366
1439
|
data: {
|
|
1367
1440
|
date: string;
|
|
1368
|
-
byStatus: Record<
|
|
1441
|
+
byStatus: Partial<Record<"APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
|
|
1369
1442
|
created: number;
|
|
1370
1443
|
}[];
|
|
1371
1444
|
}>;
|
|
1372
1445
|
};
|
|
1373
1446
|
};
|
|
1374
1447
|
};
|
|
1448
|
+
export type DashboardWidgetQuery = z.infer<typeof DashboardWidgetQuerySchema>;
|
|
1375
1449
|
export type DateRangeQuery = z.infer<typeof DateRangeQuerySchema>;
|
|
1376
1450
|
export type TrendDataPoint = z.infer<typeof TrendDataPointSchema>;
|
|
1377
1451
|
export type FaPipelineWidget = z.infer<typeof FaPipelineWidgetSchema>;
|