@dakkitor/api-contracts 1.1.37 → 1.1.38

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.
@@ -50,21 +50,21 @@ export declare const CallHistorySchema: z.ZodObject<{
50
50
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
51
51
  }, "strip", z.ZodTypeAny, {
52
52
  id: string;
53
- createdAt: string;
54
- updatedAt: string;
55
53
  firstName: string;
56
54
  lastName: string;
57
55
  email: string;
58
56
  phone: string;
57
+ createdAt: string;
58
+ updatedAt: string;
59
59
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
60
60
  }, {
61
61
  id: string;
62
- createdAt: string | Date;
63
- updatedAt: string | Date;
64
62
  firstName: string;
65
63
  lastName: string;
66
64
  email: string;
67
65
  phone: string;
66
+ createdAt: string | Date;
67
+ updatedAt: string | Date;
68
68
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
69
69
  }>>;
70
70
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -91,64 +91,64 @@ export declare const CallHistorySchema: z.ZodObject<{
91
91
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
92
92
  }, "strip", z.ZodTypeAny, {
93
93
  id: string;
94
+ leadId: string;
95
+ agentId: string | null;
94
96
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
95
97
  createdAt: string;
96
98
  updatedAt: string;
97
- agentId: string | null;
98
- companyId: string | null;
99
- leadId: string;
100
99
  assignedAt: string;
101
100
  assignedBy: string | null;
102
- company?: {
103
- id: string;
101
+ companyId: string | null;
102
+ lead?: {
104
103
  name: string;
105
- createdAt: string;
106
- updatedAt: string;
107
- } | null | undefined;
104
+ phoneNumber: string;
105
+ } | undefined;
108
106
  agent?: {
109
107
  id: string;
110
- createdAt: string;
111
- updatedAt: string;
112
108
  firstName: string;
113
109
  lastName: string;
114
110
  email: string;
115
111
  phone: string;
112
+ createdAt: string;
113
+ updatedAt: string;
116
114
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
117
115
  } | undefined;
118
- lead?: {
116
+ company?: {
117
+ id: string;
119
118
  name: string;
120
- phoneNumber: string;
121
- } | undefined;
119
+ createdAt: string;
120
+ updatedAt: string;
121
+ } | null | undefined;
122
122
  }, {
123
123
  id: string;
124
+ leadId: string;
125
+ agentId: string | null;
124
126
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
125
127
  createdAt: string | Date;
126
128
  updatedAt: string | Date;
127
- agentId: string | null;
128
- companyId: string | null;
129
- leadId: string;
130
129
  assignedAt: string | Date;
131
130
  assignedBy: string | null;
132
- company?: {
133
- id: string;
131
+ companyId: string | null;
132
+ lead?: {
134
133
  name: string;
135
- createdAt: string | Date;
136
- updatedAt: string | Date;
137
- } | null | undefined;
134
+ phoneNumber: string;
135
+ } | undefined;
138
136
  agent?: {
139
137
  id: string;
140
- createdAt: string | Date;
141
- updatedAt: string | Date;
142
138
  firstName: string;
143
139
  lastName: string;
144
140
  email: string;
145
141
  phone: string;
142
+ createdAt: string | Date;
143
+ updatedAt: string | Date;
146
144
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
147
145
  } | undefined;
148
- lead?: {
146
+ company?: {
147
+ id: string;
149
148
  name: string;
150
- phoneNumber: string;
151
- } | undefined;
149
+ createdAt: string | Date;
150
+ updatedAt: string | Date;
151
+ } | null | undefined;
152
152
  }>>>;
153
153
  callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
154
154
  callType: z.ZodNativeEnum<typeof CallType>;
@@ -159,89 +159,89 @@ export declare const CallHistorySchema: z.ZodObject<{
159
159
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
160
160
  }, "strip", z.ZodTypeAny, {
161
161
  id: string;
162
+ assignmentId: string;
162
163
  createdAt: string;
163
164
  updatedAt: string;
164
- notes: string | null;
165
- assignmentId: string;
166
165
  callDate: string;
167
166
  callType: CallType;
168
167
  rating: CallRating;
169
168
  ratingWeight: number;
170
- agentId?: string | undefined;
169
+ notes: string | null;
171
170
  leadId?: string | undefined;
171
+ agentId?: string | undefined;
172
172
  assignment?: {
173
173
  id: string;
174
+ leadId: string;
175
+ agentId: string | null;
174
176
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
175
177
  createdAt: string;
176
178
  updatedAt: string;
177
- agentId: string | null;
178
- companyId: string | null;
179
- leadId: string;
180
179
  assignedAt: string;
181
180
  assignedBy: string | null;
182
- company?: {
183
- id: string;
181
+ companyId: string | null;
182
+ lead?: {
184
183
  name: string;
185
- createdAt: string;
186
- updatedAt: string;
187
- } | null | undefined;
184
+ phoneNumber: string;
185
+ } | undefined;
188
186
  agent?: {
189
187
  id: string;
190
- createdAt: string;
191
- updatedAt: string;
192
188
  firstName: string;
193
189
  lastName: string;
194
190
  email: string;
195
191
  phone: string;
192
+ createdAt: string;
193
+ updatedAt: string;
196
194
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
197
195
  } | undefined;
198
- lead?: {
196
+ company?: {
197
+ id: string;
199
198
  name: string;
200
- phoneNumber: string;
201
- } | undefined;
199
+ createdAt: string;
200
+ updatedAt: string;
201
+ } | null | undefined;
202
202
  } | null | undefined;
203
203
  }, {
204
204
  id: string;
205
+ assignmentId: string;
205
206
  createdAt: string | Date;
206
207
  updatedAt: string | Date;
207
- notes: string | null;
208
- assignmentId: string;
209
208
  callDate: string | Date;
210
209
  callType: CallType;
211
210
  rating: CallRating;
212
211
  ratingWeight: number;
213
- agentId?: string | undefined;
212
+ notes: string | null;
214
213
  leadId?: string | undefined;
214
+ agentId?: string | undefined;
215
215
  assignment?: {
216
216
  id: string;
217
+ leadId: string;
218
+ agentId: string | null;
217
219
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
218
220
  createdAt: string | Date;
219
221
  updatedAt: string | Date;
220
- agentId: string | null;
221
- companyId: string | null;
222
- leadId: string;
223
222
  assignedAt: string | Date;
224
223
  assignedBy: string | null;
225
- company?: {
226
- id: string;
224
+ companyId: string | null;
225
+ lead?: {
227
226
  name: string;
228
- createdAt: string | Date;
229
- updatedAt: string | Date;
230
- } | null | undefined;
227
+ phoneNumber: string;
228
+ } | undefined;
231
229
  agent?: {
232
230
  id: string;
233
- createdAt: string | Date;
234
- updatedAt: string | Date;
235
231
  firstName: string;
236
232
  lastName: string;
237
233
  email: string;
238
234
  phone: string;
235
+ createdAt: string | Date;
236
+ updatedAt: string | Date;
239
237
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
240
238
  } | undefined;
241
- lead?: {
239
+ company?: {
240
+ id: string;
242
241
  name: string;
243
- phoneNumber: string;
244
- } | undefined;
242
+ createdAt: string | Date;
243
+ updatedAt: string | Date;
244
+ } | null | undefined;
245
245
  } | null | undefined;
246
246
  }>;
247
247
  export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
@@ -275,21 +275,21 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
275
275
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
276
276
  }, "strip", z.ZodTypeAny, {
277
277
  id: string;
278
- createdAt: string;
279
- updatedAt: string;
280
278
  firstName: string;
281
279
  lastName: string;
282
280
  email: string;
283
281
  phone: string;
282
+ createdAt: string;
283
+ updatedAt: string;
284
284
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
285
285
  }, {
286
286
  id: string;
287
- createdAt: string | Date;
288
- updatedAt: string | Date;
289
287
  firstName: string;
290
288
  lastName: string;
291
289
  email: string;
292
290
  phone: string;
291
+ createdAt: string | Date;
292
+ updatedAt: string | Date;
293
293
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
294
294
  }>>;
295
295
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -316,64 +316,64 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
316
316
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
317
317
  }, "strip", z.ZodTypeAny, {
318
318
  id: string;
319
+ leadId: string;
320
+ agentId: string | null;
319
321
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
320
322
  createdAt: string;
321
323
  updatedAt: string;
322
- agentId: string | null;
323
- companyId: string | null;
324
- leadId: string;
325
324
  assignedAt: string;
326
325
  assignedBy: string | null;
327
- company?: {
328
- id: string;
326
+ companyId: string | null;
327
+ lead?: {
329
328
  name: string;
330
- createdAt: string;
331
- updatedAt: string;
332
- } | null | undefined;
329
+ phoneNumber: string;
330
+ } | undefined;
333
331
  agent?: {
334
332
  id: string;
335
- createdAt: string;
336
- updatedAt: string;
337
333
  firstName: string;
338
334
  lastName: string;
339
335
  email: string;
340
336
  phone: string;
337
+ createdAt: string;
338
+ updatedAt: string;
341
339
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
342
340
  } | undefined;
343
- lead?: {
341
+ company?: {
342
+ id: string;
344
343
  name: string;
345
- phoneNumber: string;
346
- } | undefined;
344
+ createdAt: string;
345
+ updatedAt: string;
346
+ } | null | undefined;
347
347
  }, {
348
348
  id: string;
349
+ leadId: string;
350
+ agentId: string | null;
349
351
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
350
352
  createdAt: string | Date;
351
353
  updatedAt: string | Date;
352
- agentId: string | null;
353
- companyId: string | null;
354
- leadId: string;
355
354
  assignedAt: string | Date;
356
355
  assignedBy: string | null;
357
- company?: {
358
- id: string;
356
+ companyId: string | null;
357
+ lead?: {
359
358
  name: string;
360
- createdAt: string | Date;
361
- updatedAt: string | Date;
362
- } | null | undefined;
359
+ phoneNumber: string;
360
+ } | undefined;
363
361
  agent?: {
364
362
  id: string;
365
- createdAt: string | Date;
366
- updatedAt: string | Date;
367
363
  firstName: string;
368
364
  lastName: string;
369
365
  email: string;
370
366
  phone: string;
367
+ createdAt: string | Date;
368
+ updatedAt: string | Date;
371
369
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
372
370
  } | undefined;
373
- lead?: {
371
+ company?: {
372
+ id: string;
374
373
  name: string;
375
- phoneNumber: string;
376
- } | undefined;
374
+ createdAt: string | Date;
375
+ updatedAt: string | Date;
376
+ } | null | undefined;
377
377
  }>>>;
378
378
  callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
379
379
  callType: z.ZodNativeEnum<typeof CallType>;
@@ -384,89 +384,89 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
384
384
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
385
385
  }, "strip", z.ZodTypeAny, {
386
386
  id: string;
387
+ assignmentId: string;
387
388
  createdAt: string;
388
389
  updatedAt: string;
389
- notes: string | null;
390
- assignmentId: string;
391
390
  callDate: string;
392
391
  callType: CallType;
393
392
  rating: CallRating;
394
393
  ratingWeight: number;
395
- agentId?: string | undefined;
394
+ notes: string | null;
396
395
  leadId?: string | undefined;
396
+ agentId?: string | undefined;
397
397
  assignment?: {
398
398
  id: string;
399
+ leadId: string;
400
+ agentId: string | null;
399
401
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
400
402
  createdAt: string;
401
403
  updatedAt: string;
402
- agentId: string | null;
403
- companyId: string | null;
404
- leadId: string;
405
404
  assignedAt: string;
406
405
  assignedBy: string | null;
407
- company?: {
408
- id: string;
406
+ companyId: string | null;
407
+ lead?: {
409
408
  name: string;
410
- createdAt: string;
411
- updatedAt: string;
412
- } | null | undefined;
409
+ phoneNumber: string;
410
+ } | undefined;
413
411
  agent?: {
414
412
  id: string;
415
- createdAt: string;
416
- updatedAt: string;
417
413
  firstName: string;
418
414
  lastName: string;
419
415
  email: string;
420
416
  phone: string;
417
+ createdAt: string;
418
+ updatedAt: string;
421
419
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
422
420
  } | undefined;
423
- lead?: {
421
+ company?: {
422
+ id: string;
424
423
  name: string;
425
- phoneNumber: string;
426
- } | undefined;
424
+ createdAt: string;
425
+ updatedAt: string;
426
+ } | null | undefined;
427
427
  } | null | undefined;
428
428
  }, {
429
429
  id: string;
430
+ assignmentId: string;
430
431
  createdAt: string | Date;
431
432
  updatedAt: string | Date;
432
- notes: string | null;
433
- assignmentId: string;
434
433
  callDate: string | Date;
435
434
  callType: CallType;
436
435
  rating: CallRating;
437
436
  ratingWeight: number;
438
- agentId?: string | undefined;
437
+ notes: string | null;
439
438
  leadId?: string | undefined;
439
+ agentId?: string | undefined;
440
440
  assignment?: {
441
441
  id: string;
442
+ leadId: string;
443
+ agentId: string | null;
442
444
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
443
445
  createdAt: string | Date;
444
446
  updatedAt: string | Date;
445
- agentId: string | null;
446
- companyId: string | null;
447
- leadId: string;
448
447
  assignedAt: string | Date;
449
448
  assignedBy: string | null;
450
- company?: {
451
- id: string;
449
+ companyId: string | null;
450
+ lead?: {
452
451
  name: string;
453
- createdAt: string | Date;
454
- updatedAt: string | Date;
455
- } | null | undefined;
452
+ phoneNumber: string;
453
+ } | undefined;
456
454
  agent?: {
457
455
  id: string;
458
- createdAt: string | Date;
459
- updatedAt: string | Date;
460
456
  firstName: string;
461
457
  lastName: string;
462
458
  email: string;
463
459
  phone: string;
460
+ createdAt: string | Date;
461
+ updatedAt: string | Date;
464
462
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
465
463
  } | undefined;
466
- lead?: {
464
+ company?: {
465
+ id: string;
467
466
  name: string;
468
- phoneNumber: string;
469
- } | undefined;
467
+ createdAt: string | Date;
468
+ updatedAt: string | Date;
469
+ } | null | undefined;
470
470
  } | null | undefined;
471
471
  }>, "many">;
472
472
  totalCount: z.ZodNumber;
@@ -475,102 +475,102 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
475
475
  currentPage: z.ZodNumber;
476
476
  totalPages: z.ZodNumber;
477
477
  }, "strip", z.ZodTypeAny, {
478
- limit: number;
479
478
  items: {
480
479
  id: string;
480
+ assignmentId: string;
481
481
  createdAt: string;
482
482
  updatedAt: string;
483
- notes: string | null;
484
- assignmentId: string;
485
483
  callDate: string;
486
484
  callType: CallType;
487
485
  rating: CallRating;
488
486
  ratingWeight: number;
489
- agentId?: string | undefined;
487
+ notes: string | null;
490
488
  leadId?: string | undefined;
489
+ agentId?: string | undefined;
491
490
  assignment?: {
492
491
  id: string;
492
+ leadId: string;
493
+ agentId: string | null;
493
494
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
494
495
  createdAt: string;
495
496
  updatedAt: string;
496
- agentId: string | null;
497
- companyId: string | null;
498
- leadId: string;
499
497
  assignedAt: string;
500
498
  assignedBy: string | null;
501
- company?: {
502
- id: string;
499
+ companyId: string | null;
500
+ lead?: {
503
501
  name: string;
504
- createdAt: string;
505
- updatedAt: string;
506
- } | null | undefined;
502
+ phoneNumber: string;
503
+ } | undefined;
507
504
  agent?: {
508
505
  id: string;
509
- createdAt: string;
510
- updatedAt: string;
511
506
  firstName: string;
512
507
  lastName: string;
513
508
  email: string;
514
509
  phone: string;
510
+ createdAt: string;
511
+ updatedAt: string;
515
512
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
516
513
  } | undefined;
517
- lead?: {
514
+ company?: {
515
+ id: string;
518
516
  name: string;
519
- phoneNumber: string;
520
- } | undefined;
517
+ createdAt: string;
518
+ updatedAt: string;
519
+ } | null | undefined;
521
520
  } | null | undefined;
522
521
  }[];
523
522
  totalCount: number;
523
+ limit: number;
524
524
  skip: number;
525
525
  currentPage: number;
526
526
  totalPages: number;
527
527
  }, {
528
- limit: number;
529
528
  items: {
530
529
  id: string;
530
+ assignmentId: string;
531
531
  createdAt: string | Date;
532
532
  updatedAt: string | Date;
533
- notes: string | null;
534
- assignmentId: string;
535
533
  callDate: string | Date;
536
534
  callType: CallType;
537
535
  rating: CallRating;
538
536
  ratingWeight: number;
539
- agentId?: string | undefined;
537
+ notes: string | null;
540
538
  leadId?: string | undefined;
539
+ agentId?: string | undefined;
541
540
  assignment?: {
542
541
  id: string;
542
+ leadId: string;
543
+ agentId: string | null;
543
544
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
544
545
  createdAt: string | Date;
545
546
  updatedAt: string | Date;
546
- agentId: string | null;
547
- companyId: string | null;
548
- leadId: string;
549
547
  assignedAt: string | Date;
550
548
  assignedBy: string | null;
551
- company?: {
552
- id: string;
549
+ companyId: string | null;
550
+ lead?: {
553
551
  name: string;
554
- createdAt: string | Date;
555
- updatedAt: string | Date;
556
- } | null | undefined;
552
+ phoneNumber: string;
553
+ } | undefined;
557
554
  agent?: {
558
555
  id: string;
559
- createdAt: string | Date;
560
- updatedAt: string | Date;
561
556
  firstName: string;
562
557
  lastName: string;
563
558
  email: string;
564
559
  phone: string;
560
+ createdAt: string | Date;
561
+ updatedAt: string | Date;
565
562
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
566
563
  } | undefined;
567
- lead?: {
564
+ company?: {
565
+ id: string;
568
566
  name: string;
569
- phoneNumber: string;
570
- } | undefined;
567
+ createdAt: string | Date;
568
+ updatedAt: string | Date;
569
+ } | null | undefined;
571
570
  } | null | undefined;
572
571
  }[];
573
572
  totalCount: number;
573
+ limit: number;
574
574
  skip: number;
575
575
  currentPage: number;
576
576
  totalPages: number;
@@ -596,13 +596,13 @@ export declare const UpdateCallHistorySchema: z.ZodObject<{
596
596
  rating: z.ZodOptional<z.ZodNativeEnum<typeof CallRating>>;
597
597
  notes: z.ZodOptional<z.ZodString>;
598
598
  }, "strip", z.ZodTypeAny, {
599
- notes?: string | undefined;
600
599
  callDate?: string | undefined;
601
600
  rating?: CallRating | undefined;
602
- }, {
603
601
  notes?: string | undefined;
602
+ }, {
604
603
  callDate?: string | undefined;
605
604
  rating?: CallRating | undefined;
605
+ notes?: string | undefined;
606
606
  }>;
607
607
  export declare const FilterCallHistorySchema: z.ZodObject<{
608
608
  limit: z.ZodDefault<z.ZodNumber>;
@@ -611,30 +611,42 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
611
611
  assignmentId: z.ZodOptional<z.ZodString>;
612
612
  rating: z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof CallRating>>, CallRating | undefined, unknown>;
613
613
  callType: z.ZodOptional<z.ZodNativeEnum<typeof CallType>>;
614
- callDateFrom: z.ZodOptional<z.ZodString>;
615
- callDateTo: z.ZodOptional<z.ZodString>;
614
+ callDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
615
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ from?: string | null | undefined;
619
+ to?: string | null | undefined;
620
+ }, {
621
+ from?: string | null | undefined;
622
+ to?: string | null | undefined;
623
+ }>>>;
616
624
  sortBy: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof CallHistorySortableFields>>>;
617
625
  sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>>;
618
626
  }, "strip", z.ZodTypeAny, {
619
627
  limit: number;
620
628
  page: number;
621
- sortBy?: CallHistorySortableFields | undefined;
622
- sortOrder?: "ASC" | "DESC" | undefined;
623
629
  assignmentId?: string | undefined;
630
+ callDate?: {
631
+ from?: string | null | undefined;
632
+ to?: string | null | undefined;
633
+ } | null | undefined;
624
634
  callType?: CallType | undefined;
625
635
  rating?: CallRating | undefined;
626
- callDateFrom?: string | undefined;
627
- callDateTo?: string | undefined;
628
- }, {
629
- limit?: number | undefined;
630
- page?: number | undefined;
631
636
  sortBy?: CallHistorySortableFields | undefined;
632
637
  sortOrder?: "ASC" | "DESC" | undefined;
638
+ }, {
633
639
  assignmentId?: string | undefined;
640
+ callDate?: {
641
+ from?: string | null | undefined;
642
+ to?: string | null | undefined;
643
+ } | null | undefined;
634
644
  callType?: CallType | undefined;
635
645
  rating?: unknown;
636
- callDateFrom?: string | undefined;
637
- callDateTo?: string | undefined;
646
+ limit?: number | undefined;
647
+ page?: number | undefined;
648
+ sortBy?: CallHistorySortableFields | undefined;
649
+ sortOrder?: "ASC" | "DESC" | undefined;
638
650
  }>;
639
651
  export declare const CallHistoryStatsSchema: z.ZodObject<{
640
652
  totalCalls: z.ZodNumber;
@@ -810,21 +822,21 @@ export declare const callHistoryContract: {
810
822
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
811
823
  }, "strip", z.ZodTypeAny, {
812
824
  id: string;
813
- createdAt: string;
814
- updatedAt: string;
815
825
  firstName: string;
816
826
  lastName: string;
817
827
  email: string;
818
828
  phone: string;
829
+ createdAt: string;
830
+ updatedAt: string;
819
831
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
820
832
  }, {
821
833
  id: string;
822
- createdAt: string | Date;
823
- updatedAt: string | Date;
824
834
  firstName: string;
825
835
  lastName: string;
826
836
  email: string;
827
837
  phone: string;
838
+ createdAt: string | Date;
839
+ updatedAt: string | Date;
828
840
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
829
841
  }>>;
830
842
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -851,64 +863,64 @@ export declare const callHistoryContract: {
851
863
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
852
864
  }, "strip", z.ZodTypeAny, {
853
865
  id: string;
866
+ leadId: string;
867
+ agentId: string | null;
854
868
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
855
869
  createdAt: string;
856
870
  updatedAt: string;
857
- agentId: string | null;
858
- companyId: string | null;
859
- leadId: string;
860
871
  assignedAt: string;
861
872
  assignedBy: string | null;
862
- company?: {
863
- id: string;
873
+ companyId: string | null;
874
+ lead?: {
864
875
  name: string;
865
- createdAt: string;
866
- updatedAt: string;
867
- } | null | undefined;
876
+ phoneNumber: string;
877
+ } | undefined;
868
878
  agent?: {
869
879
  id: string;
870
- createdAt: string;
871
- updatedAt: string;
872
880
  firstName: string;
873
881
  lastName: string;
874
882
  email: string;
875
883
  phone: string;
884
+ createdAt: string;
885
+ updatedAt: string;
876
886
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
877
887
  } | undefined;
878
- lead?: {
888
+ company?: {
889
+ id: string;
879
890
  name: string;
880
- phoneNumber: string;
881
- } | undefined;
891
+ createdAt: string;
892
+ updatedAt: string;
893
+ } | null | undefined;
882
894
  }, {
883
895
  id: string;
896
+ leadId: string;
897
+ agentId: string | null;
884
898
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
885
899
  createdAt: string | Date;
886
900
  updatedAt: string | Date;
887
- agentId: string | null;
888
- companyId: string | null;
889
- leadId: string;
890
901
  assignedAt: string | Date;
891
902
  assignedBy: string | null;
892
- company?: {
893
- id: string;
903
+ companyId: string | null;
904
+ lead?: {
894
905
  name: string;
895
- createdAt: string | Date;
896
- updatedAt: string | Date;
897
- } | null | undefined;
906
+ phoneNumber: string;
907
+ } | undefined;
898
908
  agent?: {
899
909
  id: string;
900
- createdAt: string | Date;
901
- updatedAt: string | Date;
902
910
  firstName: string;
903
911
  lastName: string;
904
912
  email: string;
905
913
  phone: string;
914
+ createdAt: string | Date;
915
+ updatedAt: string | Date;
906
916
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
907
917
  } | undefined;
908
- lead?: {
918
+ company?: {
919
+ id: string;
909
920
  name: string;
910
- phoneNumber: string;
911
- } | undefined;
921
+ createdAt: string | Date;
922
+ updatedAt: string | Date;
923
+ } | null | undefined;
912
924
  }>>>;
913
925
  callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
914
926
  callType: z.ZodNativeEnum<typeof CallType>;
@@ -919,89 +931,89 @@ export declare const callHistoryContract: {
919
931
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
920
932
  }, "strip", z.ZodTypeAny, {
921
933
  id: string;
934
+ assignmentId: string;
922
935
  createdAt: string;
923
936
  updatedAt: string;
924
- notes: string | null;
925
- assignmentId: string;
926
937
  callDate: string;
927
938
  callType: CallType;
928
939
  rating: CallRating;
929
940
  ratingWeight: number;
930
- agentId?: string | undefined;
941
+ notes: string | null;
931
942
  leadId?: string | undefined;
943
+ agentId?: string | undefined;
932
944
  assignment?: {
933
945
  id: string;
946
+ leadId: string;
947
+ agentId: string | null;
934
948
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
935
949
  createdAt: string;
936
950
  updatedAt: string;
937
- agentId: string | null;
938
- companyId: string | null;
939
- leadId: string;
940
951
  assignedAt: string;
941
952
  assignedBy: string | null;
942
- company?: {
943
- id: string;
953
+ companyId: string | null;
954
+ lead?: {
944
955
  name: string;
945
- createdAt: string;
946
- updatedAt: string;
947
- } | null | undefined;
956
+ phoneNumber: string;
957
+ } | undefined;
948
958
  agent?: {
949
959
  id: string;
950
- createdAt: string;
951
- updatedAt: string;
952
960
  firstName: string;
953
961
  lastName: string;
954
962
  email: string;
955
963
  phone: string;
964
+ createdAt: string;
965
+ updatedAt: string;
956
966
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
957
967
  } | undefined;
958
- lead?: {
968
+ company?: {
969
+ id: string;
959
970
  name: string;
960
- phoneNumber: string;
961
- } | undefined;
971
+ createdAt: string;
972
+ updatedAt: string;
973
+ } | null | undefined;
962
974
  } | null | undefined;
963
975
  }, {
964
976
  id: string;
977
+ assignmentId: string;
965
978
  createdAt: string | Date;
966
979
  updatedAt: string | Date;
967
- notes: string | null;
968
- assignmentId: string;
969
980
  callDate: string | Date;
970
981
  callType: CallType;
971
982
  rating: CallRating;
972
983
  ratingWeight: number;
973
- agentId?: string | undefined;
984
+ notes: string | null;
974
985
  leadId?: string | undefined;
986
+ agentId?: string | undefined;
975
987
  assignment?: {
976
988
  id: string;
989
+ leadId: string;
990
+ agentId: string | null;
977
991
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
978
992
  createdAt: string | Date;
979
993
  updatedAt: string | Date;
980
- agentId: string | null;
981
- companyId: string | null;
982
- leadId: string;
983
994
  assignedAt: string | Date;
984
995
  assignedBy: string | null;
985
- company?: {
986
- id: string;
996
+ companyId: string | null;
997
+ lead?: {
987
998
  name: string;
988
- createdAt: string | Date;
989
- updatedAt: string | Date;
990
- } | null | undefined;
999
+ phoneNumber: string;
1000
+ } | undefined;
991
1001
  agent?: {
992
1002
  id: string;
993
- createdAt: string | Date;
994
- updatedAt: string | Date;
995
1003
  firstName: string;
996
1004
  lastName: string;
997
1005
  email: string;
998
1006
  phone: string;
1007
+ createdAt: string | Date;
1008
+ updatedAt: string | Date;
999
1009
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1000
1010
  } | undefined;
1001
- lead?: {
1011
+ company?: {
1012
+ id: string;
1002
1013
  name: string;
1003
- phoneNumber: string;
1004
- } | undefined;
1014
+ createdAt: string | Date;
1015
+ updatedAt: string | Date;
1016
+ } | null | undefined;
1005
1017
  } | null | undefined;
1006
1018
  }>;
1007
1019
  409: z.ZodObject<{
@@ -1042,30 +1054,42 @@ export declare const callHistoryContract: {
1042
1054
  assignmentId: z.ZodOptional<z.ZodString>;
1043
1055
  rating: z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof CallRating>>, CallRating | undefined, unknown>;
1044
1056
  callType: z.ZodOptional<z.ZodNativeEnum<typeof CallType>>;
1045
- callDateFrom: z.ZodOptional<z.ZodString>;
1046
- callDateTo: z.ZodOptional<z.ZodString>;
1057
+ callDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1058
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1059
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ from?: string | null | undefined;
1062
+ to?: string | null | undefined;
1063
+ }, {
1064
+ from?: string | null | undefined;
1065
+ to?: string | null | undefined;
1066
+ }>>>;
1047
1067
  sortBy: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof CallHistorySortableFields>>>;
1048
1068
  sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>>;
1049
1069
  }, "strip", z.ZodTypeAny, {
1050
1070
  limit: number;
1051
1071
  page: number;
1052
- sortBy?: CallHistorySortableFields | undefined;
1053
- sortOrder?: "ASC" | "DESC" | undefined;
1054
1072
  assignmentId?: string | undefined;
1073
+ callDate?: {
1074
+ from?: string | null | undefined;
1075
+ to?: string | null | undefined;
1076
+ } | null | undefined;
1055
1077
  callType?: CallType | undefined;
1056
1078
  rating?: CallRating | undefined;
1057
- callDateFrom?: string | undefined;
1058
- callDateTo?: string | undefined;
1059
- }, {
1060
- limit?: number | undefined;
1061
- page?: number | undefined;
1062
1079
  sortBy?: CallHistorySortableFields | undefined;
1063
1080
  sortOrder?: "ASC" | "DESC" | undefined;
1081
+ }, {
1064
1082
  assignmentId?: string | undefined;
1083
+ callDate?: {
1084
+ from?: string | null | undefined;
1085
+ to?: string | null | undefined;
1086
+ } | null | undefined;
1065
1087
  callType?: CallType | undefined;
1066
1088
  rating?: unknown;
1067
- callDateFrom?: string | undefined;
1068
- callDateTo?: string | undefined;
1089
+ limit?: number | undefined;
1090
+ page?: number | undefined;
1091
+ sortBy?: CallHistorySortableFields | undefined;
1092
+ sortOrder?: "ASC" | "DESC" | undefined;
1069
1093
  }>;
1070
1094
  summary: "Get call history records";
1071
1095
  method: "GET";
@@ -1202,21 +1226,21 @@ export declare const callHistoryContract: {
1202
1226
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1203
1227
  }, "strip", z.ZodTypeAny, {
1204
1228
  id: string;
1205
- createdAt: string;
1206
- updatedAt: string;
1207
1229
  firstName: string;
1208
1230
  lastName: string;
1209
1231
  email: string;
1210
1232
  phone: string;
1233
+ createdAt: string;
1234
+ updatedAt: string;
1211
1235
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1212
1236
  }, {
1213
1237
  id: string;
1214
- createdAt: string | Date;
1215
- updatedAt: string | Date;
1216
1238
  firstName: string;
1217
1239
  lastName: string;
1218
1240
  email: string;
1219
1241
  phone: string;
1242
+ createdAt: string | Date;
1243
+ updatedAt: string | Date;
1220
1244
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1221
1245
  }>>;
1222
1246
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -1243,64 +1267,64 @@ export declare const callHistoryContract: {
1243
1267
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1244
1268
  }, "strip", z.ZodTypeAny, {
1245
1269
  id: string;
1270
+ leadId: string;
1271
+ agentId: string | null;
1246
1272
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1247
1273
  createdAt: string;
1248
1274
  updatedAt: string;
1249
- agentId: string | null;
1250
- companyId: string | null;
1251
- leadId: string;
1252
1275
  assignedAt: string;
1253
1276
  assignedBy: string | null;
1254
- company?: {
1255
- id: string;
1277
+ companyId: string | null;
1278
+ lead?: {
1256
1279
  name: string;
1257
- createdAt: string;
1258
- updatedAt: string;
1259
- } | null | undefined;
1280
+ phoneNumber: string;
1281
+ } | undefined;
1260
1282
  agent?: {
1261
1283
  id: string;
1262
- createdAt: string;
1263
- updatedAt: string;
1264
1284
  firstName: string;
1265
1285
  lastName: string;
1266
1286
  email: string;
1267
1287
  phone: string;
1288
+ createdAt: string;
1289
+ updatedAt: string;
1268
1290
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1269
1291
  } | undefined;
1270
- lead?: {
1292
+ company?: {
1293
+ id: string;
1271
1294
  name: string;
1272
- phoneNumber: string;
1273
- } | undefined;
1295
+ createdAt: string;
1296
+ updatedAt: string;
1297
+ } | null | undefined;
1274
1298
  }, {
1275
1299
  id: string;
1300
+ leadId: string;
1301
+ agentId: string | null;
1276
1302
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1277
1303
  createdAt: string | Date;
1278
1304
  updatedAt: string | Date;
1279
- agentId: string | null;
1280
- companyId: string | null;
1281
- leadId: string;
1282
1305
  assignedAt: string | Date;
1283
1306
  assignedBy: string | null;
1284
- company?: {
1285
- id: string;
1307
+ companyId: string | null;
1308
+ lead?: {
1286
1309
  name: string;
1287
- createdAt: string | Date;
1288
- updatedAt: string | Date;
1289
- } | null | undefined;
1310
+ phoneNumber: string;
1311
+ } | undefined;
1290
1312
  agent?: {
1291
1313
  id: string;
1292
- createdAt: string | Date;
1293
- updatedAt: string | Date;
1294
1314
  firstName: string;
1295
1315
  lastName: string;
1296
1316
  email: string;
1297
1317
  phone: string;
1318
+ createdAt: string | Date;
1319
+ updatedAt: string | Date;
1298
1320
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1299
1321
  } | undefined;
1300
- lead?: {
1322
+ company?: {
1323
+ id: string;
1301
1324
  name: string;
1302
- phoneNumber: string;
1303
- } | undefined;
1325
+ createdAt: string | Date;
1326
+ updatedAt: string | Date;
1327
+ } | null | undefined;
1304
1328
  }>>>;
1305
1329
  callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1306
1330
  callType: z.ZodNativeEnum<typeof CallType>;
@@ -1311,89 +1335,89 @@ export declare const callHistoryContract: {
1311
1335
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1312
1336
  }, "strip", z.ZodTypeAny, {
1313
1337
  id: string;
1338
+ assignmentId: string;
1314
1339
  createdAt: string;
1315
1340
  updatedAt: string;
1316
- notes: string | null;
1317
- assignmentId: string;
1318
1341
  callDate: string;
1319
1342
  callType: CallType;
1320
1343
  rating: CallRating;
1321
1344
  ratingWeight: number;
1322
- agentId?: string | undefined;
1345
+ notes: string | null;
1323
1346
  leadId?: string | undefined;
1347
+ agentId?: string | undefined;
1324
1348
  assignment?: {
1325
1349
  id: string;
1350
+ leadId: string;
1351
+ agentId: string | null;
1326
1352
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1327
1353
  createdAt: string;
1328
1354
  updatedAt: string;
1329
- agentId: string | null;
1330
- companyId: string | null;
1331
- leadId: string;
1332
1355
  assignedAt: string;
1333
1356
  assignedBy: string | null;
1334
- company?: {
1335
- id: string;
1357
+ companyId: string | null;
1358
+ lead?: {
1336
1359
  name: string;
1337
- createdAt: string;
1338
- updatedAt: string;
1339
- } | null | undefined;
1360
+ phoneNumber: string;
1361
+ } | undefined;
1340
1362
  agent?: {
1341
1363
  id: string;
1342
- createdAt: string;
1343
- updatedAt: string;
1344
1364
  firstName: string;
1345
1365
  lastName: string;
1346
1366
  email: string;
1347
1367
  phone: string;
1368
+ createdAt: string;
1369
+ updatedAt: string;
1348
1370
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1349
1371
  } | undefined;
1350
- lead?: {
1372
+ company?: {
1373
+ id: string;
1351
1374
  name: string;
1352
- phoneNumber: string;
1353
- } | undefined;
1375
+ createdAt: string;
1376
+ updatedAt: string;
1377
+ } | null | undefined;
1354
1378
  } | null | undefined;
1355
1379
  }, {
1356
1380
  id: string;
1381
+ assignmentId: string;
1357
1382
  createdAt: string | Date;
1358
1383
  updatedAt: string | Date;
1359
- notes: string | null;
1360
- assignmentId: string;
1361
1384
  callDate: string | Date;
1362
1385
  callType: CallType;
1363
1386
  rating: CallRating;
1364
1387
  ratingWeight: number;
1365
- agentId?: string | undefined;
1388
+ notes: string | null;
1366
1389
  leadId?: string | undefined;
1390
+ agentId?: string | undefined;
1367
1391
  assignment?: {
1368
1392
  id: string;
1393
+ leadId: string;
1394
+ agentId: string | null;
1369
1395
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1370
1396
  createdAt: string | Date;
1371
1397
  updatedAt: string | Date;
1372
- agentId: string | null;
1373
- companyId: string | null;
1374
- leadId: string;
1375
1398
  assignedAt: string | Date;
1376
1399
  assignedBy: string | null;
1377
- company?: {
1378
- id: string;
1400
+ companyId: string | null;
1401
+ lead?: {
1379
1402
  name: string;
1380
- createdAt: string | Date;
1381
- updatedAt: string | Date;
1382
- } | null | undefined;
1403
+ phoneNumber: string;
1404
+ } | undefined;
1383
1405
  agent?: {
1384
1406
  id: string;
1385
- createdAt: string | Date;
1386
- updatedAt: string | Date;
1387
1407
  firstName: string;
1388
1408
  lastName: string;
1389
1409
  email: string;
1390
1410
  phone: string;
1411
+ createdAt: string | Date;
1412
+ updatedAt: string | Date;
1391
1413
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1392
1414
  } | undefined;
1393
- lead?: {
1415
+ company?: {
1416
+ id: string;
1394
1417
  name: string;
1395
- phoneNumber: string;
1396
- } | undefined;
1418
+ createdAt: string | Date;
1419
+ updatedAt: string | Date;
1420
+ } | null | undefined;
1397
1421
  } | null | undefined;
1398
1422
  }>, "many">;
1399
1423
  totalCount: z.ZodNumber;
@@ -1402,102 +1426,102 @@ export declare const callHistoryContract: {
1402
1426
  currentPage: z.ZodNumber;
1403
1427
  totalPages: z.ZodNumber;
1404
1428
  }, "strip", z.ZodTypeAny, {
1405
- limit: number;
1406
1429
  items: {
1407
1430
  id: string;
1431
+ assignmentId: string;
1408
1432
  createdAt: string;
1409
1433
  updatedAt: string;
1410
- notes: string | null;
1411
- assignmentId: string;
1412
1434
  callDate: string;
1413
1435
  callType: CallType;
1414
1436
  rating: CallRating;
1415
1437
  ratingWeight: number;
1416
- agentId?: string | undefined;
1438
+ notes: string | null;
1417
1439
  leadId?: string | undefined;
1440
+ agentId?: string | undefined;
1418
1441
  assignment?: {
1419
1442
  id: string;
1443
+ leadId: string;
1444
+ agentId: string | null;
1420
1445
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1421
1446
  createdAt: string;
1422
1447
  updatedAt: string;
1423
- agentId: string | null;
1424
- companyId: string | null;
1425
- leadId: string;
1426
1448
  assignedAt: string;
1427
1449
  assignedBy: string | null;
1428
- company?: {
1429
- id: string;
1450
+ companyId: string | null;
1451
+ lead?: {
1430
1452
  name: string;
1431
- createdAt: string;
1432
- updatedAt: string;
1433
- } | null | undefined;
1453
+ phoneNumber: string;
1454
+ } | undefined;
1434
1455
  agent?: {
1435
1456
  id: string;
1436
- createdAt: string;
1437
- updatedAt: string;
1438
1457
  firstName: string;
1439
1458
  lastName: string;
1440
1459
  email: string;
1441
1460
  phone: string;
1461
+ createdAt: string;
1462
+ updatedAt: string;
1442
1463
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1443
1464
  } | undefined;
1444
- lead?: {
1465
+ company?: {
1466
+ id: string;
1445
1467
  name: string;
1446
- phoneNumber: string;
1447
- } | undefined;
1468
+ createdAt: string;
1469
+ updatedAt: string;
1470
+ } | null | undefined;
1448
1471
  } | null | undefined;
1449
1472
  }[];
1450
1473
  totalCount: number;
1474
+ limit: number;
1451
1475
  skip: number;
1452
1476
  currentPage: number;
1453
1477
  totalPages: number;
1454
1478
  }, {
1455
- limit: number;
1456
1479
  items: {
1457
1480
  id: string;
1481
+ assignmentId: string;
1458
1482
  createdAt: string | Date;
1459
1483
  updatedAt: string | Date;
1460
- notes: string | null;
1461
- assignmentId: string;
1462
1484
  callDate: string | Date;
1463
1485
  callType: CallType;
1464
1486
  rating: CallRating;
1465
1487
  ratingWeight: number;
1466
- agentId?: string | undefined;
1488
+ notes: string | null;
1467
1489
  leadId?: string | undefined;
1490
+ agentId?: string | undefined;
1468
1491
  assignment?: {
1469
1492
  id: string;
1493
+ leadId: string;
1494
+ agentId: string | null;
1470
1495
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1471
1496
  createdAt: string | Date;
1472
1497
  updatedAt: string | Date;
1473
- agentId: string | null;
1474
- companyId: string | null;
1475
- leadId: string;
1476
1498
  assignedAt: string | Date;
1477
1499
  assignedBy: string | null;
1478
- company?: {
1479
- id: string;
1500
+ companyId: string | null;
1501
+ lead?: {
1480
1502
  name: string;
1481
- createdAt: string | Date;
1482
- updatedAt: string | Date;
1483
- } | null | undefined;
1503
+ phoneNumber: string;
1504
+ } | undefined;
1484
1505
  agent?: {
1485
1506
  id: string;
1486
- createdAt: string | Date;
1487
- updatedAt: string | Date;
1488
1507
  firstName: string;
1489
1508
  lastName: string;
1490
1509
  email: string;
1491
1510
  phone: string;
1511
+ createdAt: string | Date;
1512
+ updatedAt: string | Date;
1492
1513
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1493
1514
  } | undefined;
1494
- lead?: {
1515
+ company?: {
1516
+ id: string;
1495
1517
  name: string;
1496
- phoneNumber: string;
1497
- } | undefined;
1518
+ createdAt: string | Date;
1519
+ updatedAt: string | Date;
1520
+ } | null | undefined;
1498
1521
  } | null | undefined;
1499
1522
  }[];
1500
1523
  totalCount: number;
1524
+ limit: number;
1501
1525
  skip: number;
1502
1526
  currentPage: number;
1503
1527
  totalPages: number;
@@ -1649,21 +1673,21 @@ export declare const callHistoryContract: {
1649
1673
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1650
1674
  }, "strip", z.ZodTypeAny, {
1651
1675
  id: string;
1652
- createdAt: string;
1653
- updatedAt: string;
1654
1676
  firstName: string;
1655
1677
  lastName: string;
1656
1678
  email: string;
1657
1679
  phone: string;
1680
+ createdAt: string;
1681
+ updatedAt: string;
1658
1682
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1659
1683
  }, {
1660
1684
  id: string;
1661
- createdAt: string | Date;
1662
- updatedAt: string | Date;
1663
1685
  firstName: string;
1664
1686
  lastName: string;
1665
1687
  email: string;
1666
1688
  phone: string;
1689
+ createdAt: string | Date;
1690
+ updatedAt: string | Date;
1667
1691
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1668
1692
  }>>;
1669
1693
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -1690,64 +1714,64 @@ export declare const callHistoryContract: {
1690
1714
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1691
1715
  }, "strip", z.ZodTypeAny, {
1692
1716
  id: string;
1717
+ leadId: string;
1718
+ agentId: string | null;
1693
1719
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1694
1720
  createdAt: string;
1695
1721
  updatedAt: string;
1696
- agentId: string | null;
1697
- companyId: string | null;
1698
- leadId: string;
1699
1722
  assignedAt: string;
1700
1723
  assignedBy: string | null;
1701
- company?: {
1702
- id: string;
1724
+ companyId: string | null;
1725
+ lead?: {
1703
1726
  name: string;
1704
- createdAt: string;
1705
- updatedAt: string;
1706
- } | null | undefined;
1727
+ phoneNumber: string;
1728
+ } | undefined;
1707
1729
  agent?: {
1708
1730
  id: string;
1709
- createdAt: string;
1710
- updatedAt: string;
1711
1731
  firstName: string;
1712
1732
  lastName: string;
1713
1733
  email: string;
1714
1734
  phone: string;
1735
+ createdAt: string;
1736
+ updatedAt: string;
1715
1737
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1716
1738
  } | undefined;
1717
- lead?: {
1739
+ company?: {
1740
+ id: string;
1718
1741
  name: string;
1719
- phoneNumber: string;
1720
- } | undefined;
1742
+ createdAt: string;
1743
+ updatedAt: string;
1744
+ } | null | undefined;
1721
1745
  }, {
1722
1746
  id: string;
1747
+ leadId: string;
1748
+ agentId: string | null;
1723
1749
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1724
1750
  createdAt: string | Date;
1725
1751
  updatedAt: string | Date;
1726
- agentId: string | null;
1727
- companyId: string | null;
1728
- leadId: string;
1729
1752
  assignedAt: string | Date;
1730
1753
  assignedBy: string | null;
1731
- company?: {
1732
- id: string;
1754
+ companyId: string | null;
1755
+ lead?: {
1733
1756
  name: string;
1734
- createdAt: string | Date;
1735
- updatedAt: string | Date;
1736
- } | null | undefined;
1757
+ phoneNumber: string;
1758
+ } | undefined;
1737
1759
  agent?: {
1738
1760
  id: string;
1739
- createdAt: string | Date;
1740
- updatedAt: string | Date;
1741
1761
  firstName: string;
1742
1762
  lastName: string;
1743
1763
  email: string;
1744
1764
  phone: string;
1765
+ createdAt: string | Date;
1766
+ updatedAt: string | Date;
1745
1767
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1746
1768
  } | undefined;
1747
- lead?: {
1769
+ company?: {
1770
+ id: string;
1748
1771
  name: string;
1749
- phoneNumber: string;
1750
- } | undefined;
1772
+ createdAt: string | Date;
1773
+ updatedAt: string | Date;
1774
+ } | null | undefined;
1751
1775
  }>>>;
1752
1776
  callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1753
1777
  callType: z.ZodNativeEnum<typeof CallType>;
@@ -1758,89 +1782,89 @@ export declare const callHistoryContract: {
1758
1782
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1759
1783
  }, "strip", z.ZodTypeAny, {
1760
1784
  id: string;
1785
+ assignmentId: string;
1761
1786
  createdAt: string;
1762
1787
  updatedAt: string;
1763
- notes: string | null;
1764
- assignmentId: string;
1765
1788
  callDate: string;
1766
1789
  callType: CallType;
1767
1790
  rating: CallRating;
1768
1791
  ratingWeight: number;
1769
- agentId?: string | undefined;
1792
+ notes: string | null;
1770
1793
  leadId?: string | undefined;
1794
+ agentId?: string | undefined;
1771
1795
  assignment?: {
1772
1796
  id: string;
1797
+ leadId: string;
1798
+ agentId: string | null;
1773
1799
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1774
1800
  createdAt: string;
1775
1801
  updatedAt: string;
1776
- agentId: string | null;
1777
- companyId: string | null;
1778
- leadId: string;
1779
1802
  assignedAt: string;
1780
1803
  assignedBy: string | null;
1781
- company?: {
1782
- id: string;
1804
+ companyId: string | null;
1805
+ lead?: {
1783
1806
  name: string;
1784
- createdAt: string;
1785
- updatedAt: string;
1786
- } | null | undefined;
1807
+ phoneNumber: string;
1808
+ } | undefined;
1787
1809
  agent?: {
1788
1810
  id: string;
1789
- createdAt: string;
1790
- updatedAt: string;
1791
1811
  firstName: string;
1792
1812
  lastName: string;
1793
1813
  email: string;
1794
1814
  phone: string;
1815
+ createdAt: string;
1816
+ updatedAt: string;
1795
1817
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1796
1818
  } | undefined;
1797
- lead?: {
1819
+ company?: {
1820
+ id: string;
1798
1821
  name: string;
1799
- phoneNumber: string;
1800
- } | undefined;
1822
+ createdAt: string;
1823
+ updatedAt: string;
1824
+ } | null | undefined;
1801
1825
  } | null | undefined;
1802
1826
  }, {
1803
1827
  id: string;
1828
+ assignmentId: string;
1804
1829
  createdAt: string | Date;
1805
1830
  updatedAt: string | Date;
1806
- notes: string | null;
1807
- assignmentId: string;
1808
1831
  callDate: string | Date;
1809
1832
  callType: CallType;
1810
1833
  rating: CallRating;
1811
1834
  ratingWeight: number;
1812
- agentId?: string | undefined;
1835
+ notes: string | null;
1813
1836
  leadId?: string | undefined;
1837
+ agentId?: string | undefined;
1814
1838
  assignment?: {
1815
1839
  id: string;
1840
+ leadId: string;
1841
+ agentId: string | null;
1816
1842
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1817
1843
  createdAt: string | Date;
1818
1844
  updatedAt: string | Date;
1819
- agentId: string | null;
1820
- companyId: string | null;
1821
- leadId: string;
1822
1845
  assignedAt: string | Date;
1823
1846
  assignedBy: string | null;
1824
- company?: {
1825
- id: string;
1847
+ companyId: string | null;
1848
+ lead?: {
1826
1849
  name: string;
1827
- createdAt: string | Date;
1828
- updatedAt: string | Date;
1829
- } | null | undefined;
1850
+ phoneNumber: string;
1851
+ } | undefined;
1830
1852
  agent?: {
1831
1853
  id: string;
1832
- createdAt: string | Date;
1833
- updatedAt: string | Date;
1834
1854
  firstName: string;
1835
1855
  lastName: string;
1836
1856
  email: string;
1837
1857
  phone: string;
1858
+ createdAt: string | Date;
1859
+ updatedAt: string | Date;
1838
1860
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1839
1861
  } | undefined;
1840
- lead?: {
1862
+ company?: {
1863
+ id: string;
1841
1864
  name: string;
1842
- phoneNumber: string;
1843
- } | undefined;
1865
+ createdAt: string | Date;
1866
+ updatedAt: string | Date;
1867
+ } | null | undefined;
1844
1868
  } | null | undefined;
1845
1869
  }>;
1846
1870
  404: z.ZodObject<{
@@ -1888,13 +1912,13 @@ export declare const callHistoryContract: {
1888
1912
  rating: z.ZodOptional<z.ZodNativeEnum<typeof CallRating>>;
1889
1913
  notes: z.ZodOptional<z.ZodString>;
1890
1914
  }, "strip", z.ZodTypeAny, {
1891
- notes?: string | undefined;
1892
1915
  callDate?: string | undefined;
1893
1916
  rating?: CallRating | undefined;
1894
- }, {
1895
1917
  notes?: string | undefined;
1918
+ }, {
1896
1919
  callDate?: string | undefined;
1897
1920
  rating?: CallRating | undefined;
1921
+ notes?: string | undefined;
1898
1922
  }>;
1899
1923
  path: "/v2/call-history/:id";
1900
1924
  responses: {
@@ -2028,21 +2052,21 @@ export declare const callHistoryContract: {
2028
2052
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2029
2053
  }, "strip", z.ZodTypeAny, {
2030
2054
  id: string;
2031
- createdAt: string;
2032
- updatedAt: string;
2033
2055
  firstName: string;
2034
2056
  lastName: string;
2035
2057
  email: string;
2036
2058
  phone: string;
2059
+ createdAt: string;
2060
+ updatedAt: string;
2037
2061
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
2038
2062
  }, {
2039
2063
  id: string;
2040
- createdAt: string | Date;
2041
- updatedAt: string | Date;
2042
2064
  firstName: string;
2043
2065
  lastName: string;
2044
2066
  email: string;
2045
2067
  phone: string;
2068
+ createdAt: string | Date;
2069
+ updatedAt: string | Date;
2046
2070
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
2047
2071
  }>>;
2048
2072
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -2069,64 +2093,64 @@ export declare const callHistoryContract: {
2069
2093
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2070
2094
  }, "strip", z.ZodTypeAny, {
2071
2095
  id: string;
2096
+ leadId: string;
2097
+ agentId: string | null;
2072
2098
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2073
2099
  createdAt: string;
2074
2100
  updatedAt: string;
2075
- agentId: string | null;
2076
- companyId: string | null;
2077
- leadId: string;
2078
2101
  assignedAt: string;
2079
2102
  assignedBy: string | null;
2080
- company?: {
2081
- id: string;
2103
+ companyId: string | null;
2104
+ lead?: {
2082
2105
  name: string;
2083
- createdAt: string;
2084
- updatedAt: string;
2085
- } | null | undefined;
2106
+ phoneNumber: string;
2107
+ } | undefined;
2086
2108
  agent?: {
2087
2109
  id: string;
2088
- createdAt: string;
2089
- updatedAt: string;
2090
2110
  firstName: string;
2091
2111
  lastName: string;
2092
2112
  email: string;
2093
2113
  phone: string;
2114
+ createdAt: string;
2115
+ updatedAt: string;
2094
2116
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
2095
2117
  } | undefined;
2096
- lead?: {
2118
+ company?: {
2119
+ id: string;
2097
2120
  name: string;
2098
- phoneNumber: string;
2099
- } | undefined;
2121
+ createdAt: string;
2122
+ updatedAt: string;
2123
+ } | null | undefined;
2100
2124
  }, {
2101
2125
  id: string;
2126
+ leadId: string;
2127
+ agentId: string | null;
2102
2128
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2103
2129
  createdAt: string | Date;
2104
2130
  updatedAt: string | Date;
2105
- agentId: string | null;
2106
- companyId: string | null;
2107
- leadId: string;
2108
2131
  assignedAt: string | Date;
2109
2132
  assignedBy: string | null;
2110
- company?: {
2111
- id: string;
2133
+ companyId: string | null;
2134
+ lead?: {
2112
2135
  name: string;
2113
- createdAt: string | Date;
2114
- updatedAt: string | Date;
2115
- } | null | undefined;
2136
+ phoneNumber: string;
2137
+ } | undefined;
2116
2138
  agent?: {
2117
2139
  id: string;
2118
- createdAt: string | Date;
2119
- updatedAt: string | Date;
2120
2140
  firstName: string;
2121
2141
  lastName: string;
2122
2142
  email: string;
2123
2143
  phone: string;
2144
+ createdAt: string | Date;
2145
+ updatedAt: string | Date;
2124
2146
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
2125
2147
  } | undefined;
2126
- lead?: {
2148
+ company?: {
2149
+ id: string;
2127
2150
  name: string;
2128
- phoneNumber: string;
2129
- } | undefined;
2151
+ createdAt: string | Date;
2152
+ updatedAt: string | Date;
2153
+ } | null | undefined;
2130
2154
  }>>>;
2131
2155
  callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2132
2156
  callType: z.ZodNativeEnum<typeof CallType>;
@@ -2137,89 +2161,89 @@ export declare const callHistoryContract: {
2137
2161
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2138
2162
  }, "strip", z.ZodTypeAny, {
2139
2163
  id: string;
2164
+ assignmentId: string;
2140
2165
  createdAt: string;
2141
2166
  updatedAt: string;
2142
- notes: string | null;
2143
- assignmentId: string;
2144
2167
  callDate: string;
2145
2168
  callType: CallType;
2146
2169
  rating: CallRating;
2147
2170
  ratingWeight: number;
2148
- agentId?: string | undefined;
2171
+ notes: string | null;
2149
2172
  leadId?: string | undefined;
2173
+ agentId?: string | undefined;
2150
2174
  assignment?: {
2151
2175
  id: string;
2176
+ leadId: string;
2177
+ agentId: string | null;
2152
2178
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2153
2179
  createdAt: string;
2154
2180
  updatedAt: string;
2155
- agentId: string | null;
2156
- companyId: string | null;
2157
- leadId: string;
2158
2181
  assignedAt: string;
2159
2182
  assignedBy: string | null;
2160
- company?: {
2161
- id: string;
2183
+ companyId: string | null;
2184
+ lead?: {
2162
2185
  name: string;
2163
- createdAt: string;
2164
- updatedAt: string;
2165
- } | null | undefined;
2186
+ phoneNumber: string;
2187
+ } | undefined;
2166
2188
  agent?: {
2167
2189
  id: string;
2168
- createdAt: string;
2169
- updatedAt: string;
2170
2190
  firstName: string;
2171
2191
  lastName: string;
2172
2192
  email: string;
2173
2193
  phone: string;
2194
+ createdAt: string;
2195
+ updatedAt: string;
2174
2196
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
2175
2197
  } | undefined;
2176
- lead?: {
2198
+ company?: {
2199
+ id: string;
2177
2200
  name: string;
2178
- phoneNumber: string;
2179
- } | undefined;
2201
+ createdAt: string;
2202
+ updatedAt: string;
2203
+ } | null | undefined;
2180
2204
  } | null | undefined;
2181
2205
  }, {
2182
2206
  id: string;
2207
+ assignmentId: string;
2183
2208
  createdAt: string | Date;
2184
2209
  updatedAt: string | Date;
2185
- notes: string | null;
2186
- assignmentId: string;
2187
2210
  callDate: string | Date;
2188
2211
  callType: CallType;
2189
2212
  rating: CallRating;
2190
2213
  ratingWeight: number;
2191
- agentId?: string | undefined;
2214
+ notes: string | null;
2192
2215
  leadId?: string | undefined;
2216
+ agentId?: string | undefined;
2193
2217
  assignment?: {
2194
2218
  id: string;
2219
+ leadId: string;
2220
+ agentId: string | null;
2195
2221
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2196
2222
  createdAt: string | Date;
2197
2223
  updatedAt: string | Date;
2198
- agentId: string | null;
2199
- companyId: string | null;
2200
- leadId: string;
2201
2224
  assignedAt: string | Date;
2202
2225
  assignedBy: string | null;
2203
- company?: {
2204
- id: string;
2226
+ companyId: string | null;
2227
+ lead?: {
2205
2228
  name: string;
2206
- createdAt: string | Date;
2207
- updatedAt: string | Date;
2208
- } | null | undefined;
2229
+ phoneNumber: string;
2230
+ } | undefined;
2209
2231
  agent?: {
2210
2232
  id: string;
2211
- createdAt: string | Date;
2212
- updatedAt: string | Date;
2213
2233
  firstName: string;
2214
2234
  lastName: string;
2215
2235
  email: string;
2216
2236
  phone: string;
2237
+ createdAt: string | Date;
2238
+ updatedAt: string | Date;
2217
2239
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
2218
2240
  } | undefined;
2219
- lead?: {
2241
+ company?: {
2242
+ id: string;
2220
2243
  name: string;
2221
- phoneNumber: string;
2222
- } | undefined;
2244
+ createdAt: string | Date;
2245
+ updatedAt: string | Date;
2246
+ } | null | undefined;
2223
2247
  } | null | undefined;
2224
2248
  }>;
2225
2249
  404: z.ZodObject<{