@dakkitor/api-contracts 1.8.0 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/abilities/abilities.contract.d.ts +28 -1
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +32 -1
  4. package/dist/abilities/abilities.contract.spec.js +63 -3
  5. package/dist/abilities/admin-dashboard.abilities.test.js +1 -0
  6. package/dist/abilities/automatic-caller.abilities.json +1 -0
  7. package/dist/abilities/first-agent.abilities.json +14 -0
  8. package/dist/abilities/interconnection.abilities.json +17 -1
  9. package/dist/abilities/office-manager.abilities.json +4 -0
  10. package/dist/abilities/second-agent.abilities.json +48 -1
  11. package/dist/abilities/worker-curator.abilities.json +17 -1
  12. package/dist/actives/actives.contract.d.ts +6959 -6547
  13. package/dist/actives/actives.contract.d.ts.map +1 -1
  14. package/dist/agent-client-links/agent-client-links.contract.d.ts +1275 -1173
  15. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
  16. package/dist/auth/auth.contract.d.ts +102 -102
  17. package/dist/bookings/backdate-guard.spec.js +24 -32
  18. package/dist/bookings/bookings.contract.d.ts +9963 -9305
  19. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  20. package/dist/bookings/bookings.contract.js +2 -16
  21. package/dist/call-history/call-history.contract.d.ts +1040 -828
  22. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  23. package/dist/calls-feed/calls-feed.contract.d.ts +138 -98
  24. package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
  25. package/dist/candidate-calling/candidate-calling.contract.d.ts +18372 -0
  26. package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
  27. package/dist/candidate-calling/candidate-calling.contract.js +494 -0
  28. package/dist/candidate-calling/candidate-calling.contract.spec.d.ts +2 -0
  29. package/dist/candidate-calling/candidate-calling.contract.spec.d.ts.map +1 -0
  30. package/dist/candidate-calling/candidate-calling.contract.spec.js +357 -0
  31. package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts +10 -0
  32. package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts.map +1 -0
  33. package/dist/candidate-calling/candidate-dialpad-call.schemas.js +33 -0
  34. package/dist/client-contacts/client-contacts.contract.d.ts +622 -622
  35. package/dist/clients/clients.contract.d.ts +289 -289
  36. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3108 -3004
  37. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
  38. package/dist/collaborations/collaborations.contract.d.ts +2604 -2507
  39. package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
  40. package/dist/common/callback-slots.d.ts +4 -0
  41. package/dist/common/callback-slots.d.ts.map +1 -0
  42. package/dist/common/callback-slots.js +20 -0
  43. package/dist/common/common-schemas.d.ts +10 -4
  44. package/dist/common/common-schemas.d.ts.map +1 -1
  45. package/dist/common/common-schemas.js +6 -0
  46. package/dist/companies/companies.contract.d.ts +120 -120
  47. package/dist/crews/crews.contract.d.ts +278 -278
  48. package/dist/cron-executions/cron-executions.contract.d.ts +245 -245
  49. package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
  50. package/dist/cron-executions/cron-executions.contract.js +1 -0
  51. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +3830 -2354
  52. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
  53. package/dist/curated-worker-leads/candidate-coordination.contract.js +73 -7
  54. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +94 -94
  55. package/dist/curated-worker-leads/contact-history.spec.js +141 -0
  56. package/dist/curated-worker-leads/job-candidate-cards.spec.js +19 -0
  57. package/dist/curated-worker-leads/job-candidates.spec.js +179 -0
  58. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +8185 -2106
  59. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
  60. package/dist/curated-worker-leads/jobs-tab.contract.js +126 -1
  61. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +110 -110
  62. package/dist/curated-workers/curated-workers.contract.d.ts +2033 -1951
  63. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  64. package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts +2 -0
  65. package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts.map +1 -0
  66. package/dist/dashboards/dashboard-widgets.contact-history.spec.js +160 -0
  67. package/dist/dashboards/dashboard-widgets.contract.d.ts +1027 -284
  68. package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
  69. package/dist/dashboards/dashboard-widgets.contract.js +46 -1
  70. package/dist/dashboards/dashboard.contract.d.ts +8 -8
  71. package/dist/document-intake/document-intake.contract.d.ts +1145 -1145
  72. package/dist/export-jobs/export-jobs.contract.d.ts +755 -755
  73. package/dist/exports-events/exports-events.schemas.d.ts +6 -6
  74. package/dist/index.d.ts +5 -0
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/index.js +5 -0
  77. package/dist/jobs/jobs.contract.d.ts +8507 -6044
  78. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  79. package/dist/jobs/jobs.contract.js +95 -2
  80. package/dist/jobs/jobs.contract.spec.js +231 -1
  81. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +102 -102
  82. package/dist/lead-assignments/lead-assignments.contract.d.ts +2985 -1139
  83. package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
  84. package/dist/lead-assignments/lead-assignments.contract.js +102 -2
  85. package/dist/lead-assignments/lead-assignments.contract.spec.d.ts +2 -0
  86. package/dist/lead-assignments/lead-assignments.contract.spec.d.ts.map +1 -0
  87. package/dist/lead-assignments/lead-assignments.contract.spec.js +51 -0
  88. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +341 -317
  89. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
  90. package/dist/leads/leads.contract.d.ts +282 -282
  91. package/dist/locations/location-enrichment.contract.spec.d.ts +2 -0
  92. package/dist/locations/location-enrichment.contract.spec.d.ts.map +1 -0
  93. package/dist/locations/location-enrichment.contract.spec.js +50 -0
  94. package/dist/locations/locations.contract.d.ts +132 -98
  95. package/dist/locations/locations.contract.d.ts.map +1 -1
  96. package/dist/locations/locations.contract.js +10 -0
  97. package/dist/notifications/notifications.contract.d.ts +579 -107
  98. package/dist/notifications/notifications.contract.d.ts.map +1 -1
  99. package/dist/notifications/notifications.contract.js +36 -2
  100. package/dist/notifications/notifications.contract.spec.d.ts +2 -0
  101. package/dist/notifications/notifications.contract.spec.d.ts.map +1 -0
  102. package/dist/notifications/notifications.contract.spec.js +39 -0
  103. package/dist/outreach/__tests__/outreach-claim.test.js +33 -0
  104. package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
  105. package/dist/outreach/outreach.contract.d.ts +583 -162
  106. package/dist/outreach/outreach.contract.d.ts.map +1 -1
  107. package/dist/outreach/outreach.contract.js +50 -1
  108. package/dist/outreach/relay-hub-outreach.contract.d.ts +299 -121
  109. package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -1
  110. package/dist/outreach/relay-hub-outreach.contract.js +10 -0
  111. package/dist/outreach/relay-hub-outreach.contract.spec.js +26 -0
  112. package/dist/outreach/relay-hub-outreach.schemas.d.ts +94 -0
  113. package/dist/outreach/relay-hub-outreach.schemas.d.ts.map +1 -0
  114. package/dist/outreach/relay-hub-outreach.schemas.js +15 -0
  115. package/dist/own-research/check-phone-response.spec.d.ts +2 -0
  116. package/dist/own-research/check-phone-response.spec.d.ts.map +1 -0
  117. package/dist/own-research/check-phone-response.spec.js +54 -0
  118. package/dist/own-research/own-research.contract.d.ts +971 -820
  119. package/dist/own-research/own-research.contract.d.ts.map +1 -1
  120. package/dist/own-research/own-research.contract.js +6 -1
  121. package/dist/proofs/proofs.contract.d.ts +356 -356
  122. package/dist/proofs/proofs.dtos.d.ts +148 -148
  123. package/dist/realtime/job-call-priority-updated.d.ts +18 -0
  124. package/dist/realtime/job-call-priority-updated.d.ts.map +1 -0
  125. package/dist/realtime/job-call-priority-updated.js +17 -0
  126. package/dist/shared/summary-schemas.d.ts +36 -27
  127. package/dist/shared/summary-schemas.d.ts.map +1 -1
  128. package/dist/shared/summary-schemas.js +7 -0
  129. package/dist/sheets-sync/sheets-sync.contract.d.ts +683 -683
  130. package/dist/user-access-grants/user-access-grants.contract.d.ts +216 -216
  131. package/dist/users/users.contract.d.ts +365 -336
  132. package/dist/users/users.contract.d.ts.map +1 -1
  133. package/dist/users/users.contract.js +9 -1
  134. package/dist/users/users.contract.spec.js +39 -0
  135. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +150 -150
  136. package/dist/workers/workers.contract.d.ts +4505 -4261
  137. package/dist/workers/workers.contract.d.ts.map +1 -1
  138. package/dist/workers/workers.contract.js +12 -0
  139. package/package.json +1 -1
@@ -93,16 +93,16 @@ export declare const CallHistorySchema: z.ZodObject<{
93
93
  firstName: string;
94
94
  }>, "many">>;
95
95
  }, "strip", z.ZodTypeAny, {
96
- id: string;
97
96
  name: string;
97
+ id: string;
98
98
  managers?: {
99
99
  id: string;
100
100
  lastName: string;
101
101
  firstName: string;
102
102
  }[] | undefined;
103
103
  }, {
104
- id: string;
105
104
  name: string;
105
+ id: string;
106
106
  managers?: {
107
107
  id: string;
108
108
  lastName: string;
@@ -123,15 +123,16 @@ export declare const CallHistorySchema: z.ZodObject<{
123
123
  firstName: string;
124
124
  }>, "many">>;
125
125
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
126
+ dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
126
127
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
127
128
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
128
129
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
129
130
  }, "strip", z.ZodTypeAny, {
130
- status: "ACTIVE" | "INACTIVE";
131
- id: string;
132
- updatedAt: string;
133
- createdAt: string;
134
131
  email: string;
132
+ createdAt: string;
133
+ updatedAt: string;
134
+ id: string;
135
+ status: "ACTIVE" | "INACTIVE";
135
136
  lastName: string;
136
137
  firstName: string;
137
138
  phoneNumbers: {
@@ -143,33 +144,34 @@ export declare const CallHistorySchema: z.ZodObject<{
143
144
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
144
145
  officeId?: string | null | undefined;
145
146
  office?: {
146
- id: string;
147
147
  name: string;
148
+ id: string;
148
149
  managers?: {
149
150
  id: string;
150
151
  lastName: string;
151
152
  firstName: string;
152
153
  }[] | undefined;
153
154
  } | null | undefined;
155
+ deletedAt?: string | null | undefined;
154
156
  canImpersonateUsers?: {
155
157
  id: string;
156
158
  lastName: string;
157
159
  firstName: string;
158
160
  }[] | undefined;
159
- deletedAt?: string | null | undefined;
161
+ dialpadUserId?: string | null | undefined;
160
162
  }, {
161
- status: "ACTIVE" | "INACTIVE";
162
- id: string;
163
- updatedAt: string | Date;
164
- createdAt: string | Date;
165
163
  email: string;
164
+ createdAt: string | Date;
165
+ updatedAt: string | Date;
166
+ id: string;
167
+ status: "ACTIVE" | "INACTIVE";
166
168
  lastName: string;
167
169
  firstName: string;
168
170
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
169
171
  officeId?: string | null | undefined;
170
172
  office?: {
171
- id: string;
172
173
  name: string;
174
+ id: string;
173
175
  managers?: {
174
176
  id: string;
175
177
  lastName: string;
@@ -182,12 +184,13 @@ export declare const CallHistorySchema: z.ZodObject<{
182
184
  description?: string | null | undefined;
183
185
  isPrimary?: boolean | undefined;
184
186
  }[] | undefined;
187
+ deletedAt?: string | Date | null | undefined;
185
188
  canImpersonateUsers?: {
186
189
  id: string;
187
190
  lastName: string;
188
191
  firstName: string;
189
192
  }[] | undefined;
190
- deletedAt?: string | Date | null | undefined;
193
+ dialpadUserId?: string | null | undefined;
191
194
  }>>;
192
195
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
193
196
  assignedBy: z.ZodNullable<z.ZodString>;
@@ -199,44 +202,47 @@ export declare const CallHistorySchema: z.ZodObject<{
199
202
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
200
203
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
201
204
  }, "strip", z.ZodTypeAny, {
202
- id: string;
203
205
  name: string;
204
- updatedAt: string;
205
206
  createdAt: string;
206
- }, {
207
+ updatedAt: string;
207
208
  id: string;
209
+ }, {
208
210
  name: string;
209
- updatedAt: string | Date;
210
211
  createdAt: string | Date;
212
+ updatedAt: string | Date;
213
+ id: string;
211
214
  }>>>;
212
215
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
213
216
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
217
+ callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
218
+ id: z.ZodString;
219
+ dueAt: z.ZodString;
220
+ originNotes: z.ZodNullable<z.ZodString>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ id: string;
223
+ dueAt: string;
224
+ originNotes: string | null;
225
+ }, {
226
+ id: string;
227
+ dueAt: string;
228
+ originNotes: string | null;
229
+ }>>>;
214
230
  }, "strip", z.ZodTypeAny, {
215
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
216
- id: string;
217
- updatedAt: string;
218
231
  createdAt: string;
219
- companyId: string | null;
232
+ updatedAt: string;
233
+ id: string;
234
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
220
235
  agentId: string | null;
221
236
  leadId: string;
222
237
  assignedAt: string;
223
238
  assignedBy: string | null;
224
- company?: {
225
- id: string;
226
- name: string;
227
- updatedAt: string;
228
- createdAt: string;
229
- } | null | undefined;
230
- lead?: {
231
- name: string;
232
- phoneNumber: string;
233
- } | undefined;
239
+ companyId: string | null;
234
240
  agent?: {
235
- status: "ACTIVE" | "INACTIVE";
236
- id: string;
237
- updatedAt: string;
238
- createdAt: string;
239
241
  email: string;
242
+ createdAt: string;
243
+ updatedAt: string;
244
+ id: string;
245
+ status: "ACTIVE" | "INACTIVE";
240
246
  lastName: string;
241
247
  firstName: string;
242
248
  phoneNumbers: {
@@ -248,54 +254,60 @@ export declare const CallHistorySchema: z.ZodObject<{
248
254
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
249
255
  officeId?: string | null | undefined;
250
256
  office?: {
251
- id: string;
252
257
  name: string;
258
+ id: string;
253
259
  managers?: {
254
260
  id: string;
255
261
  lastName: string;
256
262
  firstName: string;
257
263
  }[] | undefined;
258
264
  } | null | undefined;
265
+ deletedAt?: string | null | undefined;
259
266
  canImpersonateUsers?: {
260
267
  id: string;
261
268
  lastName: string;
262
269
  firstName: string;
263
270
  }[] | undefined;
264
- deletedAt?: string | null | undefined;
271
+ dialpadUserId?: string | null | undefined;
265
272
  } | undefined;
273
+ lead?: {
274
+ name: string;
275
+ phoneNumber: string;
276
+ } | undefined;
277
+ company?: {
278
+ name: string;
279
+ createdAt: string;
280
+ updatedAt: string;
281
+ id: string;
282
+ } | null | undefined;
283
+ callback?: {
284
+ id: string;
285
+ dueAt: string;
286
+ originNotes: string | null;
287
+ } | null | undefined;
266
288
  }, {
267
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
268
- id: string;
269
- updatedAt: string | Date;
270
289
  createdAt: string | Date;
271
- companyId: string | null;
290
+ updatedAt: string | Date;
291
+ id: string;
292
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
272
293
  agentId: string | null;
273
294
  leadId: string;
274
295
  assignedAt: string | Date;
275
296
  assignedBy: string | null;
276
- company?: {
277
- id: string;
278
- name: string;
279
- updatedAt: string | Date;
280
- createdAt: string | Date;
281
- } | null | undefined;
282
- lead?: {
283
- name: string;
284
- phoneNumber: string;
285
- } | undefined;
297
+ companyId: string | null;
286
298
  agent?: {
287
- status: "ACTIVE" | "INACTIVE";
288
- id: string;
289
- updatedAt: string | Date;
290
- createdAt: string | Date;
291
299
  email: string;
300
+ createdAt: string | Date;
301
+ updatedAt: string | Date;
302
+ id: string;
303
+ status: "ACTIVE" | "INACTIVE";
292
304
  lastName: string;
293
305
  firstName: string;
294
306
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
295
307
  officeId?: string | null | undefined;
296
308
  office?: {
297
- id: string;
298
309
  name: string;
310
+ id: string;
299
311
  managers?: {
300
312
  id: string;
301
313
  lastName: string;
@@ -308,13 +320,29 @@ export declare const CallHistorySchema: z.ZodObject<{
308
320
  description?: string | null | undefined;
309
321
  isPrimary?: boolean | undefined;
310
322
  }[] | undefined;
323
+ deletedAt?: string | Date | null | undefined;
311
324
  canImpersonateUsers?: {
312
325
  id: string;
313
326
  lastName: string;
314
327
  firstName: string;
315
328
  }[] | undefined;
316
- deletedAt?: string | Date | null | undefined;
329
+ dialpadUserId?: string | null | undefined;
330
+ } | undefined;
331
+ lead?: {
332
+ name: string;
333
+ phoneNumber: string;
317
334
  } | undefined;
335
+ company?: {
336
+ name: string;
337
+ createdAt: string | Date;
338
+ updatedAt: string | Date;
339
+ id: string;
340
+ } | null | undefined;
341
+ callback?: {
342
+ id: string;
343
+ dueAt: string;
344
+ originNotes: string | null;
345
+ } | null | undefined;
318
346
  }>>>;
319
347
  callType: z.ZodNativeEnum<typeof CallType>;
320
348
  leadSource: z.ZodNativeEnum<typeof LeadSource>;
@@ -324,43 +352,33 @@ export declare const CallHistorySchema: z.ZodObject<{
324
352
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
325
353
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
326
354
  }, "strip", z.ZodTypeAny, {
327
- id: string;
328
- updatedAt: string;
329
355
  createdAt: string;
330
- assignmentId: string;
356
+ updatedAt: string;
357
+ id: string;
331
358
  rating: CallRating;
359
+ notes: string | null;
332
360
  callType: CallType;
333
- leadSource: LeadSource;
361
+ assignmentId: string;
334
362
  ratingWeight: number;
335
- notes: string | null;
363
+ leadSource: LeadSource;
336
364
  agentId?: string | undefined;
337
365
  leadId?: string | undefined;
338
366
  assignment?: {
339
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
340
- id: string;
341
- updatedAt: string;
342
367
  createdAt: string;
343
- companyId: string | null;
368
+ updatedAt: string;
369
+ id: string;
370
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
344
371
  agentId: string | null;
345
372
  leadId: string;
346
373
  assignedAt: string;
347
374
  assignedBy: string | null;
348
- company?: {
349
- id: string;
350
- name: string;
351
- updatedAt: string;
352
- createdAt: string;
353
- } | null | undefined;
354
- lead?: {
355
- name: string;
356
- phoneNumber: string;
357
- } | undefined;
375
+ companyId: string | null;
358
376
  agent?: {
359
- status: "ACTIVE" | "INACTIVE";
360
- id: string;
361
- updatedAt: string;
362
- createdAt: string;
363
377
  email: string;
378
+ createdAt: string;
379
+ updatedAt: string;
380
+ id: string;
381
+ status: "ACTIVE" | "INACTIVE";
364
382
  lastName: string;
365
383
  firstName: string;
366
384
  phoneNumbers: {
@@ -372,67 +390,73 @@ export declare const CallHistorySchema: z.ZodObject<{
372
390
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
373
391
  officeId?: string | null | undefined;
374
392
  office?: {
375
- id: string;
376
393
  name: string;
394
+ id: string;
377
395
  managers?: {
378
396
  id: string;
379
397
  lastName: string;
380
398
  firstName: string;
381
399
  }[] | undefined;
382
400
  } | null | undefined;
401
+ deletedAt?: string | null | undefined;
383
402
  canImpersonateUsers?: {
384
403
  id: string;
385
404
  lastName: string;
386
405
  firstName: string;
387
406
  }[] | undefined;
388
- deletedAt?: string | null | undefined;
407
+ dialpadUserId?: string | null | undefined;
408
+ } | undefined;
409
+ lead?: {
410
+ name: string;
411
+ phoneNumber: string;
389
412
  } | undefined;
413
+ company?: {
414
+ name: string;
415
+ createdAt: string;
416
+ updatedAt: string;
417
+ id: string;
418
+ } | null | undefined;
419
+ callback?: {
420
+ id: string;
421
+ dueAt: string;
422
+ originNotes: string | null;
423
+ } | null | undefined;
390
424
  } | null | undefined;
391
425
  }, {
392
- id: string;
393
- updatedAt: string | Date;
394
426
  createdAt: string | Date;
395
- assignmentId: string;
427
+ updatedAt: string | Date;
428
+ id: string;
396
429
  rating: CallRating;
430
+ notes: string | null;
397
431
  callType: CallType;
398
- leadSource: LeadSource;
432
+ assignmentId: string;
399
433
  ratingWeight: number;
400
- notes: string | null;
434
+ leadSource: LeadSource;
401
435
  agentId?: string | undefined;
402
436
  leadId?: string | undefined;
403
437
  assignment?: {
404
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
405
- id: string;
406
- updatedAt: string | Date;
407
438
  createdAt: string | Date;
408
- companyId: string | null;
439
+ updatedAt: string | Date;
440
+ id: string;
441
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
409
442
  agentId: string | null;
410
443
  leadId: string;
411
444
  assignedAt: string | Date;
412
445
  assignedBy: string | null;
413
- company?: {
414
- id: string;
415
- name: string;
416
- updatedAt: string | Date;
417
- createdAt: string | Date;
418
- } | null | undefined;
419
- lead?: {
420
- name: string;
421
- phoneNumber: string;
422
- } | undefined;
446
+ companyId: string | null;
423
447
  agent?: {
424
- status: "ACTIVE" | "INACTIVE";
425
- id: string;
426
- updatedAt: string | Date;
427
- createdAt: string | Date;
428
448
  email: string;
449
+ createdAt: string | Date;
450
+ updatedAt: string | Date;
451
+ id: string;
452
+ status: "ACTIVE" | "INACTIVE";
429
453
  lastName: string;
430
454
  firstName: string;
431
455
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
432
456
  officeId?: string | null | undefined;
433
457
  office?: {
434
- id: string;
435
458
  name: string;
459
+ id: string;
436
460
  managers?: {
437
461
  id: string;
438
462
  lastName: string;
@@ -445,13 +469,29 @@ export declare const CallHistorySchema: z.ZodObject<{
445
469
  description?: string | null | undefined;
446
470
  isPrimary?: boolean | undefined;
447
471
  }[] | undefined;
472
+ deletedAt?: string | Date | null | undefined;
448
473
  canImpersonateUsers?: {
449
474
  id: string;
450
475
  lastName: string;
451
476
  firstName: string;
452
477
  }[] | undefined;
453
- deletedAt?: string | Date | null | undefined;
478
+ dialpadUserId?: string | null | undefined;
479
+ } | undefined;
480
+ lead?: {
481
+ name: string;
482
+ phoneNumber: string;
454
483
  } | undefined;
484
+ company?: {
485
+ name: string;
486
+ createdAt: string | Date;
487
+ updatedAt: string | Date;
488
+ id: string;
489
+ } | null | undefined;
490
+ callback?: {
491
+ id: string;
492
+ dueAt: string;
493
+ originNotes: string | null;
494
+ } | null | undefined;
455
495
  } | null | undefined;
456
496
  }>;
457
497
  export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
@@ -514,16 +554,16 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
514
554
  firstName: string;
515
555
  }>, "many">>;
516
556
  }, "strip", z.ZodTypeAny, {
517
- id: string;
518
557
  name: string;
558
+ id: string;
519
559
  managers?: {
520
560
  id: string;
521
561
  lastName: string;
522
562
  firstName: string;
523
563
  }[] | undefined;
524
564
  }, {
525
- id: string;
526
565
  name: string;
566
+ id: string;
527
567
  managers?: {
528
568
  id: string;
529
569
  lastName: string;
@@ -544,15 +584,16 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
544
584
  firstName: string;
545
585
  }>, "many">>;
546
586
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
587
+ dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
547
588
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
548
589
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
549
590
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
550
591
  }, "strip", z.ZodTypeAny, {
551
- status: "ACTIVE" | "INACTIVE";
552
- id: string;
553
- updatedAt: string;
554
- createdAt: string;
555
592
  email: string;
593
+ createdAt: string;
594
+ updatedAt: string;
595
+ id: string;
596
+ status: "ACTIVE" | "INACTIVE";
556
597
  lastName: string;
557
598
  firstName: string;
558
599
  phoneNumbers: {
@@ -564,33 +605,34 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
564
605
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
565
606
  officeId?: string | null | undefined;
566
607
  office?: {
567
- id: string;
568
608
  name: string;
609
+ id: string;
569
610
  managers?: {
570
611
  id: string;
571
612
  lastName: string;
572
613
  firstName: string;
573
614
  }[] | undefined;
574
615
  } | null | undefined;
616
+ deletedAt?: string | null | undefined;
575
617
  canImpersonateUsers?: {
576
618
  id: string;
577
619
  lastName: string;
578
620
  firstName: string;
579
621
  }[] | undefined;
580
- deletedAt?: string | null | undefined;
622
+ dialpadUserId?: string | null | undefined;
581
623
  }, {
582
- status: "ACTIVE" | "INACTIVE";
583
- id: string;
584
- updatedAt: string | Date;
585
- createdAt: string | Date;
586
624
  email: string;
625
+ createdAt: string | Date;
626
+ updatedAt: string | Date;
627
+ id: string;
628
+ status: "ACTIVE" | "INACTIVE";
587
629
  lastName: string;
588
630
  firstName: string;
589
631
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
590
632
  officeId?: string | null | undefined;
591
633
  office?: {
592
- id: string;
593
634
  name: string;
635
+ id: string;
594
636
  managers?: {
595
637
  id: string;
596
638
  lastName: string;
@@ -603,12 +645,13 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
603
645
  description?: string | null | undefined;
604
646
  isPrimary?: boolean | undefined;
605
647
  }[] | undefined;
648
+ deletedAt?: string | Date | null | undefined;
606
649
  canImpersonateUsers?: {
607
650
  id: string;
608
651
  lastName: string;
609
652
  firstName: string;
610
653
  }[] | undefined;
611
- deletedAt?: string | Date | null | undefined;
654
+ dialpadUserId?: string | null | undefined;
612
655
  }>>;
613
656
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
614
657
  assignedBy: z.ZodNullable<z.ZodString>;
@@ -620,44 +663,47 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
620
663
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
621
664
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
622
665
  }, "strip", z.ZodTypeAny, {
623
- id: string;
624
666
  name: string;
625
- updatedAt: string;
626
667
  createdAt: string;
627
- }, {
668
+ updatedAt: string;
628
669
  id: string;
670
+ }, {
629
671
  name: string;
630
- updatedAt: string | Date;
631
672
  createdAt: string | Date;
673
+ updatedAt: string | Date;
674
+ id: string;
632
675
  }>>>;
633
676
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
634
677
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
678
+ callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
679
+ id: z.ZodString;
680
+ dueAt: z.ZodString;
681
+ originNotes: z.ZodNullable<z.ZodString>;
682
+ }, "strip", z.ZodTypeAny, {
683
+ id: string;
684
+ dueAt: string;
685
+ originNotes: string | null;
686
+ }, {
687
+ id: string;
688
+ dueAt: string;
689
+ originNotes: string | null;
690
+ }>>>;
635
691
  }, "strip", z.ZodTypeAny, {
636
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
637
- id: string;
638
- updatedAt: string;
639
692
  createdAt: string;
640
- companyId: string | null;
693
+ updatedAt: string;
694
+ id: string;
695
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
641
696
  agentId: string | null;
642
697
  leadId: string;
643
698
  assignedAt: string;
644
699
  assignedBy: string | null;
645
- company?: {
646
- id: string;
647
- name: string;
648
- updatedAt: string;
649
- createdAt: string;
650
- } | null | undefined;
651
- lead?: {
652
- name: string;
653
- phoneNumber: string;
654
- } | undefined;
700
+ companyId: string | null;
655
701
  agent?: {
656
- status: "ACTIVE" | "INACTIVE";
657
- id: string;
658
- updatedAt: string;
659
- createdAt: string;
660
702
  email: string;
703
+ createdAt: string;
704
+ updatedAt: string;
705
+ id: string;
706
+ status: "ACTIVE" | "INACTIVE";
661
707
  lastName: string;
662
708
  firstName: string;
663
709
  phoneNumbers: {
@@ -669,54 +715,60 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
669
715
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
670
716
  officeId?: string | null | undefined;
671
717
  office?: {
672
- id: string;
673
718
  name: string;
719
+ id: string;
674
720
  managers?: {
675
721
  id: string;
676
722
  lastName: string;
677
723
  firstName: string;
678
724
  }[] | undefined;
679
725
  } | null | undefined;
726
+ deletedAt?: string | null | undefined;
680
727
  canImpersonateUsers?: {
681
728
  id: string;
682
729
  lastName: string;
683
730
  firstName: string;
684
731
  }[] | undefined;
685
- deletedAt?: string | null | undefined;
732
+ dialpadUserId?: string | null | undefined;
733
+ } | undefined;
734
+ lead?: {
735
+ name: string;
736
+ phoneNumber: string;
686
737
  } | undefined;
738
+ company?: {
739
+ name: string;
740
+ createdAt: string;
741
+ updatedAt: string;
742
+ id: string;
743
+ } | null | undefined;
744
+ callback?: {
745
+ id: string;
746
+ dueAt: string;
747
+ originNotes: string | null;
748
+ } | null | undefined;
687
749
  }, {
688
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
689
- id: string;
690
- updatedAt: string | Date;
691
750
  createdAt: string | Date;
692
- companyId: string | null;
751
+ updatedAt: string | Date;
752
+ id: string;
753
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
693
754
  agentId: string | null;
694
755
  leadId: string;
695
756
  assignedAt: string | Date;
696
757
  assignedBy: string | null;
697
- company?: {
698
- id: string;
699
- name: string;
700
- updatedAt: string | Date;
701
- createdAt: string | Date;
702
- } | null | undefined;
703
- lead?: {
704
- name: string;
705
- phoneNumber: string;
706
- } | undefined;
758
+ companyId: string | null;
707
759
  agent?: {
708
- status: "ACTIVE" | "INACTIVE";
709
- id: string;
710
- updatedAt: string | Date;
711
- createdAt: string | Date;
712
760
  email: string;
761
+ createdAt: string | Date;
762
+ updatedAt: string | Date;
763
+ id: string;
764
+ status: "ACTIVE" | "INACTIVE";
713
765
  lastName: string;
714
766
  firstName: string;
715
767
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
716
768
  officeId?: string | null | undefined;
717
769
  office?: {
718
- id: string;
719
770
  name: string;
771
+ id: string;
720
772
  managers?: {
721
773
  id: string;
722
774
  lastName: string;
@@ -729,13 +781,29 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
729
781
  description?: string | null | undefined;
730
782
  isPrimary?: boolean | undefined;
731
783
  }[] | undefined;
784
+ deletedAt?: string | Date | null | undefined;
732
785
  canImpersonateUsers?: {
733
786
  id: string;
734
787
  lastName: string;
735
788
  firstName: string;
736
789
  }[] | undefined;
737
- deletedAt?: string | Date | null | undefined;
790
+ dialpadUserId?: string | null | undefined;
791
+ } | undefined;
792
+ lead?: {
793
+ name: string;
794
+ phoneNumber: string;
738
795
  } | undefined;
796
+ company?: {
797
+ name: string;
798
+ createdAt: string | Date;
799
+ updatedAt: string | Date;
800
+ id: string;
801
+ } | null | undefined;
802
+ callback?: {
803
+ id: string;
804
+ dueAt: string;
805
+ originNotes: string | null;
806
+ } | null | undefined;
739
807
  }>>>;
740
808
  callType: z.ZodNativeEnum<typeof CallType>;
741
809
  leadSource: z.ZodNativeEnum<typeof LeadSource>;
@@ -745,43 +813,33 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
745
813
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
746
814
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
747
815
  }, "strip", z.ZodTypeAny, {
748
- id: string;
749
- updatedAt: string;
750
816
  createdAt: string;
751
- assignmentId: string;
817
+ updatedAt: string;
818
+ id: string;
752
819
  rating: CallRating;
820
+ notes: string | null;
753
821
  callType: CallType;
754
- leadSource: LeadSource;
822
+ assignmentId: string;
755
823
  ratingWeight: number;
756
- notes: string | null;
824
+ leadSource: LeadSource;
757
825
  agentId?: string | undefined;
758
826
  leadId?: string | undefined;
759
827
  assignment?: {
760
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
761
- id: string;
762
- updatedAt: string;
763
828
  createdAt: string;
764
- companyId: string | null;
829
+ updatedAt: string;
830
+ id: string;
831
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
765
832
  agentId: string | null;
766
833
  leadId: string;
767
834
  assignedAt: string;
768
835
  assignedBy: string | null;
769
- company?: {
770
- id: string;
771
- name: string;
772
- updatedAt: string;
773
- createdAt: string;
774
- } | null | undefined;
775
- lead?: {
776
- name: string;
777
- phoneNumber: string;
778
- } | undefined;
836
+ companyId: string | null;
779
837
  agent?: {
780
- status: "ACTIVE" | "INACTIVE";
781
- id: string;
782
- updatedAt: string;
783
- createdAt: string;
784
838
  email: string;
839
+ createdAt: string;
840
+ updatedAt: string;
841
+ id: string;
842
+ status: "ACTIVE" | "INACTIVE";
785
843
  lastName: string;
786
844
  firstName: string;
787
845
  phoneNumbers: {
@@ -793,67 +851,73 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
793
851
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
794
852
  officeId?: string | null | undefined;
795
853
  office?: {
796
- id: string;
797
854
  name: string;
855
+ id: string;
798
856
  managers?: {
799
857
  id: string;
800
858
  lastName: string;
801
859
  firstName: string;
802
860
  }[] | undefined;
803
861
  } | null | undefined;
862
+ deletedAt?: string | null | undefined;
804
863
  canImpersonateUsers?: {
805
864
  id: string;
806
865
  lastName: string;
807
866
  firstName: string;
808
867
  }[] | undefined;
809
- deletedAt?: string | null | undefined;
868
+ dialpadUserId?: string | null | undefined;
869
+ } | undefined;
870
+ lead?: {
871
+ name: string;
872
+ phoneNumber: string;
810
873
  } | undefined;
874
+ company?: {
875
+ name: string;
876
+ createdAt: string;
877
+ updatedAt: string;
878
+ id: string;
879
+ } | null | undefined;
880
+ callback?: {
881
+ id: string;
882
+ dueAt: string;
883
+ originNotes: string | null;
884
+ } | null | undefined;
811
885
  } | null | undefined;
812
886
  }, {
813
- id: string;
814
- updatedAt: string | Date;
815
887
  createdAt: string | Date;
816
- assignmentId: string;
888
+ updatedAt: string | Date;
889
+ id: string;
817
890
  rating: CallRating;
891
+ notes: string | null;
818
892
  callType: CallType;
819
- leadSource: LeadSource;
893
+ assignmentId: string;
820
894
  ratingWeight: number;
821
- notes: string | null;
895
+ leadSource: LeadSource;
822
896
  agentId?: string | undefined;
823
897
  leadId?: string | undefined;
824
898
  assignment?: {
825
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
826
- id: string;
827
- updatedAt: string | Date;
828
899
  createdAt: string | Date;
829
- companyId: string | null;
900
+ updatedAt: string | Date;
901
+ id: string;
902
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
830
903
  agentId: string | null;
831
904
  leadId: string;
832
905
  assignedAt: string | Date;
833
906
  assignedBy: string | null;
834
- company?: {
835
- id: string;
836
- name: string;
837
- updatedAt: string | Date;
838
- createdAt: string | Date;
839
- } | null | undefined;
840
- lead?: {
841
- name: string;
842
- phoneNumber: string;
843
- } | undefined;
907
+ companyId: string | null;
844
908
  agent?: {
845
- status: "ACTIVE" | "INACTIVE";
846
- id: string;
847
- updatedAt: string | Date;
848
- createdAt: string | Date;
849
909
  email: string;
910
+ createdAt: string | Date;
911
+ updatedAt: string | Date;
912
+ id: string;
913
+ status: "ACTIVE" | "INACTIVE";
850
914
  lastName: string;
851
915
  firstName: string;
852
916
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
853
917
  officeId?: string | null | undefined;
854
918
  office?: {
855
- id: string;
856
919
  name: string;
920
+ id: string;
857
921
  managers?: {
858
922
  id: string;
859
923
  lastName: string;
@@ -866,13 +930,29 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
866
930
  description?: string | null | undefined;
867
931
  isPrimary?: boolean | undefined;
868
932
  }[] | undefined;
933
+ deletedAt?: string | Date | null | undefined;
869
934
  canImpersonateUsers?: {
870
935
  id: string;
871
936
  lastName: string;
872
937
  firstName: string;
873
938
  }[] | undefined;
874
- deletedAt?: string | Date | null | undefined;
939
+ dialpadUserId?: string | null | undefined;
875
940
  } | undefined;
941
+ lead?: {
942
+ name: string;
943
+ phoneNumber: string;
944
+ } | undefined;
945
+ company?: {
946
+ name: string;
947
+ createdAt: string | Date;
948
+ updatedAt: string | Date;
949
+ id: string;
950
+ } | null | undefined;
951
+ callback?: {
952
+ id: string;
953
+ dueAt: string;
954
+ originNotes: string | null;
955
+ } | null | undefined;
876
956
  } | null | undefined;
877
957
  }>, "many">;
878
958
  totalCount: z.ZodNumber;
@@ -883,43 +963,33 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
883
963
  }, "strip", z.ZodTypeAny, {
884
964
  limit: number;
885
965
  items: {
886
- id: string;
887
- updatedAt: string;
888
966
  createdAt: string;
889
- assignmentId: string;
967
+ updatedAt: string;
968
+ id: string;
890
969
  rating: CallRating;
970
+ notes: string | null;
891
971
  callType: CallType;
892
- leadSource: LeadSource;
972
+ assignmentId: string;
893
973
  ratingWeight: number;
894
- notes: string | null;
974
+ leadSource: LeadSource;
895
975
  agentId?: string | undefined;
896
976
  leadId?: string | undefined;
897
977
  assignment?: {
898
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
899
- id: string;
900
- updatedAt: string;
901
978
  createdAt: string;
902
- companyId: string | null;
979
+ updatedAt: string;
980
+ id: string;
981
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
903
982
  agentId: string | null;
904
983
  leadId: string;
905
984
  assignedAt: string;
906
985
  assignedBy: string | null;
907
- company?: {
908
- id: string;
909
- name: string;
910
- updatedAt: string;
911
- createdAt: string;
912
- } | null | undefined;
913
- lead?: {
914
- name: string;
915
- phoneNumber: string;
916
- } | undefined;
986
+ companyId: string | null;
917
987
  agent?: {
918
- status: "ACTIVE" | "INACTIVE";
919
- id: string;
920
- updatedAt: string;
921
- createdAt: string;
922
988
  email: string;
989
+ createdAt: string;
990
+ updatedAt: string;
991
+ id: string;
992
+ status: "ACTIVE" | "INACTIVE";
923
993
  lastName: string;
924
994
  firstName: string;
925
995
  phoneNumbers: {
@@ -931,21 +1001,37 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
931
1001
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
932
1002
  officeId?: string | null | undefined;
933
1003
  office?: {
934
- id: string;
935
1004
  name: string;
1005
+ id: string;
936
1006
  managers?: {
937
1007
  id: string;
938
1008
  lastName: string;
939
1009
  firstName: string;
940
1010
  }[] | undefined;
941
1011
  } | null | undefined;
1012
+ deletedAt?: string | null | undefined;
942
1013
  canImpersonateUsers?: {
943
1014
  id: string;
944
1015
  lastName: string;
945
1016
  firstName: string;
946
1017
  }[] | undefined;
947
- deletedAt?: string | null | undefined;
1018
+ dialpadUserId?: string | null | undefined;
1019
+ } | undefined;
1020
+ lead?: {
1021
+ name: string;
1022
+ phoneNumber: string;
948
1023
  } | undefined;
1024
+ company?: {
1025
+ name: string;
1026
+ createdAt: string;
1027
+ updatedAt: string;
1028
+ id: string;
1029
+ } | null | undefined;
1030
+ callback?: {
1031
+ id: string;
1032
+ dueAt: string;
1033
+ originNotes: string | null;
1034
+ } | null | undefined;
949
1035
  } | null | undefined;
950
1036
  }[];
951
1037
  totalCount: number;
@@ -955,50 +1041,40 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
955
1041
  }, {
956
1042
  limit: number;
957
1043
  items: {
958
- id: string;
959
- updatedAt: string | Date;
960
1044
  createdAt: string | Date;
961
- assignmentId: string;
1045
+ updatedAt: string | Date;
1046
+ id: string;
962
1047
  rating: CallRating;
1048
+ notes: string | null;
963
1049
  callType: CallType;
964
- leadSource: LeadSource;
1050
+ assignmentId: string;
965
1051
  ratingWeight: number;
966
- notes: string | null;
1052
+ leadSource: LeadSource;
967
1053
  agentId?: string | undefined;
968
1054
  leadId?: string | undefined;
969
1055
  assignment?: {
970
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
971
- id: string;
972
- updatedAt: string | Date;
973
1056
  createdAt: string | Date;
974
- companyId: string | null;
1057
+ updatedAt: string | Date;
1058
+ id: string;
1059
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
975
1060
  agentId: string | null;
976
1061
  leadId: string;
977
1062
  assignedAt: string | Date;
978
1063
  assignedBy: string | null;
979
- company?: {
980
- id: string;
981
- name: string;
982
- updatedAt: string | Date;
983
- createdAt: string | Date;
984
- } | null | undefined;
985
- lead?: {
986
- name: string;
987
- phoneNumber: string;
988
- } | undefined;
1064
+ companyId: string | null;
989
1065
  agent?: {
990
- status: "ACTIVE" | "INACTIVE";
991
- id: string;
992
- updatedAt: string | Date;
993
- createdAt: string | Date;
994
1066
  email: string;
1067
+ createdAt: string | Date;
1068
+ updatedAt: string | Date;
1069
+ id: string;
1070
+ status: "ACTIVE" | "INACTIVE";
995
1071
  lastName: string;
996
1072
  firstName: string;
997
1073
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
998
1074
  officeId?: string | null | undefined;
999
1075
  office?: {
1000
- id: string;
1001
1076
  name: string;
1077
+ id: string;
1002
1078
  managers?: {
1003
1079
  id: string;
1004
1080
  lastName: string;
@@ -1011,13 +1087,29 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
1011
1087
  description?: string | null | undefined;
1012
1088
  isPrimary?: boolean | undefined;
1013
1089
  }[] | undefined;
1090
+ deletedAt?: string | Date | null | undefined;
1014
1091
  canImpersonateUsers?: {
1015
1092
  id: string;
1016
1093
  lastName: string;
1017
1094
  firstName: string;
1018
1095
  }[] | undefined;
1019
- deletedAt?: string | Date | null | undefined;
1096
+ dialpadUserId?: string | null | undefined;
1020
1097
  } | undefined;
1098
+ lead?: {
1099
+ name: string;
1100
+ phoneNumber: string;
1101
+ } | undefined;
1102
+ company?: {
1103
+ name: string;
1104
+ createdAt: string | Date;
1105
+ updatedAt: string | Date;
1106
+ id: string;
1107
+ } | null | undefined;
1108
+ callback?: {
1109
+ id: string;
1110
+ dueAt: string;
1111
+ originNotes: string | null;
1112
+ } | null | undefined;
1021
1113
  } | null | undefined;
1022
1114
  }[];
1023
1115
  totalCount: number;
@@ -1101,34 +1193,23 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
1101
1193
  id: z.ZodString;
1102
1194
  name: z.ZodString;
1103
1195
  }, "strip", z.ZodTypeAny, {
1104
- id: string;
1105
1196
  name: string;
1106
- }, {
1107
1197
  id: string;
1198
+ }, {
1108
1199
  name: string;
1200
+ id: string;
1109
1201
  }>>>;
1110
1202
  }, "strip", z.ZodTypeAny, {
1111
- id: string;
1112
- updatedAt: string;
1113
1203
  createdAt: string;
1204
+ updatedAt: string;
1205
+ id: string;
1114
1206
  agentId: string;
1115
- assignmentId: string;
1116
1207
  rating: CallRating;
1208
+ notes: string | null;
1117
1209
  callType: CallType;
1118
- leadSource: LeadSource;
1210
+ assignmentId: string;
1119
1211
  ratingWeight: number;
1120
- notes: string | null;
1121
- company?: {
1122
- id: string;
1123
- name: string;
1124
- } | null | undefined;
1125
- assignment?: {
1126
- agentId: string | null;
1127
- } | null | undefined;
1128
- lead?: {
1129
- name: string;
1130
- phoneNumber: string;
1131
- } | null | undefined;
1212
+ leadSource: LeadSource;
1132
1213
  agent?: {
1133
1214
  id: string;
1134
1215
  lastName: string;
@@ -1141,28 +1222,28 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
1141
1222
  }[];
1142
1223
  deletedAt?: string | null | undefined;
1143
1224
  } | null | undefined;
1144
- }, {
1145
- id: string;
1146
- updatedAt: string | Date;
1147
- createdAt: string | Date;
1148
- agentId: string;
1149
- assignmentId: string;
1150
- rating: CallRating;
1151
- callType: CallType;
1152
- leadSource: LeadSource;
1153
- ratingWeight: number;
1154
- notes: string | null;
1225
+ lead?: {
1226
+ name: string;
1227
+ phoneNumber: string;
1228
+ } | null | undefined;
1155
1229
  company?: {
1156
- id: string;
1157
1230
  name: string;
1231
+ id: string;
1158
1232
  } | null | undefined;
1159
1233
  assignment?: {
1160
1234
  agentId: string | null;
1161
1235
  } | null | undefined;
1162
- lead?: {
1163
- name: string;
1164
- phoneNumber: string;
1165
- } | null | undefined;
1236
+ }, {
1237
+ createdAt: string | Date;
1238
+ updatedAt: string | Date;
1239
+ id: string;
1240
+ agentId: string;
1241
+ rating: CallRating;
1242
+ notes: string | null;
1243
+ callType: CallType;
1244
+ assignmentId: string;
1245
+ ratingWeight: number;
1246
+ leadSource: LeadSource;
1166
1247
  agent?: {
1167
1248
  id: string;
1168
1249
  lastName: string;
@@ -1175,6 +1256,17 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
1175
1256
  }[] | undefined;
1176
1257
  deletedAt?: string | Date | null | undefined;
1177
1258
  } | null | undefined;
1259
+ lead?: {
1260
+ name: string;
1261
+ phoneNumber: string;
1262
+ } | null | undefined;
1263
+ company?: {
1264
+ name: string;
1265
+ id: string;
1266
+ } | null | undefined;
1267
+ assignment?: {
1268
+ agentId: string | null;
1269
+ } | null | undefined;
1178
1270
  }>;
1179
1271
  export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
1180
1272
  items: z.ZodArray<z.ZodObject<{
@@ -1253,34 +1345,23 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
1253
1345
  id: z.ZodString;
1254
1346
  name: z.ZodString;
1255
1347
  }, "strip", z.ZodTypeAny, {
1256
- id: string;
1257
1348
  name: string;
1258
- }, {
1259
1349
  id: string;
1350
+ }, {
1260
1351
  name: string;
1352
+ id: string;
1261
1353
  }>>>;
1262
1354
  }, "strip", z.ZodTypeAny, {
1263
- id: string;
1264
- updatedAt: string;
1265
1355
  createdAt: string;
1356
+ updatedAt: string;
1357
+ id: string;
1266
1358
  agentId: string;
1267
- assignmentId: string;
1268
1359
  rating: CallRating;
1360
+ notes: string | null;
1269
1361
  callType: CallType;
1270
- leadSource: LeadSource;
1362
+ assignmentId: string;
1271
1363
  ratingWeight: number;
1272
- notes: string | null;
1273
- company?: {
1274
- id: string;
1275
- name: string;
1276
- } | null | undefined;
1277
- assignment?: {
1278
- agentId: string | null;
1279
- } | null | undefined;
1280
- lead?: {
1281
- name: string;
1282
- phoneNumber: string;
1283
- } | null | undefined;
1364
+ leadSource: LeadSource;
1284
1365
  agent?: {
1285
1366
  id: string;
1286
1367
  lastName: string;
@@ -1293,28 +1374,28 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
1293
1374
  }[];
1294
1375
  deletedAt?: string | null | undefined;
1295
1376
  } | null | undefined;
1296
- }, {
1297
- id: string;
1298
- updatedAt: string | Date;
1299
- createdAt: string | Date;
1300
- agentId: string;
1301
- assignmentId: string;
1302
- rating: CallRating;
1303
- callType: CallType;
1304
- leadSource: LeadSource;
1305
- ratingWeight: number;
1306
- notes: string | null;
1377
+ lead?: {
1378
+ name: string;
1379
+ phoneNumber: string;
1380
+ } | null | undefined;
1307
1381
  company?: {
1308
- id: string;
1309
1382
  name: string;
1383
+ id: string;
1310
1384
  } | null | undefined;
1311
1385
  assignment?: {
1312
1386
  agentId: string | null;
1313
1387
  } | null | undefined;
1314
- lead?: {
1315
- name: string;
1316
- phoneNumber: string;
1317
- } | null | undefined;
1388
+ }, {
1389
+ createdAt: string | Date;
1390
+ updatedAt: string | Date;
1391
+ id: string;
1392
+ agentId: string;
1393
+ rating: CallRating;
1394
+ notes: string | null;
1395
+ callType: CallType;
1396
+ assignmentId: string;
1397
+ ratingWeight: number;
1398
+ leadSource: LeadSource;
1318
1399
  agent?: {
1319
1400
  id: string;
1320
1401
  lastName: string;
@@ -1327,6 +1408,17 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
1327
1408
  }[] | undefined;
1328
1409
  deletedAt?: string | Date | null | undefined;
1329
1410
  } | null | undefined;
1411
+ lead?: {
1412
+ name: string;
1413
+ phoneNumber: string;
1414
+ } | null | undefined;
1415
+ company?: {
1416
+ name: string;
1417
+ id: string;
1418
+ } | null | undefined;
1419
+ assignment?: {
1420
+ agentId: string | null;
1421
+ } | null | undefined;
1330
1422
  }>, "many">;
1331
1423
  totalCount: z.ZodNumber;
1332
1424
  limit: z.ZodNumber;
@@ -1336,27 +1428,16 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
1336
1428
  }, "strip", z.ZodTypeAny, {
1337
1429
  limit: number;
1338
1430
  items: {
1339
- id: string;
1340
- updatedAt: string;
1341
1431
  createdAt: string;
1432
+ updatedAt: string;
1433
+ id: string;
1342
1434
  agentId: string;
1343
- assignmentId: string;
1344
1435
  rating: CallRating;
1436
+ notes: string | null;
1345
1437
  callType: CallType;
1346
- leadSource: LeadSource;
1438
+ assignmentId: string;
1347
1439
  ratingWeight: number;
1348
- notes: string | null;
1349
- company?: {
1350
- id: string;
1351
- name: string;
1352
- } | null | undefined;
1353
- assignment?: {
1354
- agentId: string | null;
1355
- } | null | undefined;
1356
- lead?: {
1357
- name: string;
1358
- phoneNumber: string;
1359
- } | null | undefined;
1440
+ leadSource: LeadSource;
1360
1441
  agent?: {
1361
1442
  id: string;
1362
1443
  lastName: string;
@@ -1369,6 +1450,17 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
1369
1450
  }[];
1370
1451
  deletedAt?: string | null | undefined;
1371
1452
  } | null | undefined;
1453
+ lead?: {
1454
+ name: string;
1455
+ phoneNumber: string;
1456
+ } | null | undefined;
1457
+ company?: {
1458
+ name: string;
1459
+ id: string;
1460
+ } | null | undefined;
1461
+ assignment?: {
1462
+ agentId: string | null;
1463
+ } | null | undefined;
1372
1464
  }[];
1373
1465
  totalCount: number;
1374
1466
  skip: number;
@@ -1377,27 +1469,16 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
1377
1469
  }, {
1378
1470
  limit: number;
1379
1471
  items: {
1380
- id: string;
1381
- updatedAt: string | Date;
1382
1472
  createdAt: string | Date;
1473
+ updatedAt: string | Date;
1474
+ id: string;
1383
1475
  agentId: string;
1384
- assignmentId: string;
1385
1476
  rating: CallRating;
1477
+ notes: string | null;
1386
1478
  callType: CallType;
1387
- leadSource: LeadSource;
1479
+ assignmentId: string;
1388
1480
  ratingWeight: number;
1389
- notes: string | null;
1390
- company?: {
1391
- id: string;
1392
- name: string;
1393
- } | null | undefined;
1394
- assignment?: {
1395
- agentId: string | null;
1396
- } | null | undefined;
1397
- lead?: {
1398
- name: string;
1399
- phoneNumber: string;
1400
- } | null | undefined;
1481
+ leadSource: LeadSource;
1401
1482
  agent?: {
1402
1483
  id: string;
1403
1484
  lastName: string;
@@ -1410,6 +1491,17 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
1410
1491
  }[] | undefined;
1411
1492
  deletedAt?: string | Date | null | undefined;
1412
1493
  } | null | undefined;
1494
+ lead?: {
1495
+ name: string;
1496
+ phoneNumber: string;
1497
+ } | null | undefined;
1498
+ company?: {
1499
+ name: string;
1500
+ id: string;
1501
+ } | null | undefined;
1502
+ assignment?: {
1503
+ agentId: string | null;
1504
+ } | null | undefined;
1413
1505
  }[];
1414
1506
  totalCount: number;
1415
1507
  skip: number;
@@ -1422,14 +1514,14 @@ export declare const CreateCallHistorySchema: z.ZodObject<{
1422
1514
  notes: z.ZodOptional<z.ZodString>;
1423
1515
  callType: z.ZodNativeEnum<typeof CallType>;
1424
1516
  }, "strip", z.ZodTypeAny, {
1425
- assignmentId: string;
1426
1517
  rating: CallRating;
1427
1518
  callType: CallType;
1519
+ assignmentId: string;
1428
1520
  notes?: string | undefined;
1429
1521
  }, {
1430
- assignmentId: string;
1431
1522
  rating: CallRating;
1432
1523
  callType: CallType;
1524
+ assignmentId: string;
1433
1525
  notes?: string | undefined;
1434
1526
  }>;
1435
1527
  export declare const UpdateCallHistorySchema: z.ZodObject<{
@@ -1493,37 +1585,37 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
1493
1585
  from?: string | null | undefined;
1494
1586
  to?: string | null | undefined;
1495
1587
  } | null | undefined;
1496
- companyId?: string | undefined;
1497
1588
  agentId?: string | undefined;
1589
+ phoneNumber?: string | undefined;
1498
1590
  rating?: {
1499
1591
  from?: CallRating | null | undefined;
1500
1592
  to?: CallRating | null | undefined;
1501
1593
  } | null | undefined;
1502
1594
  callType?: CallType | undefined;
1595
+ companyId?: string | undefined;
1503
1596
  leadSource?: LeadSource | undefined;
1504
1597
  leadName?: string | undefined;
1505
- phoneNumber?: string | undefined;
1506
1598
  }, {
1507
1599
  sort?: {
1508
1600
  field: CallHistorySortableFields;
1509
1601
  order: "ASC" | "DESC";
1510
1602
  }[] | null | undefined;
1511
- page?: number | undefined;
1512
- limit?: number | undefined;
1513
1603
  createdAt?: {
1514
1604
  from?: string | null | undefined;
1515
1605
  to?: string | null | undefined;
1516
1606
  } | null | undefined;
1517
- companyId?: string | undefined;
1607
+ page?: number | undefined;
1608
+ limit?: number | undefined;
1518
1609
  agentId?: string | undefined;
1610
+ phoneNumber?: string | undefined;
1519
1611
  rating?: {
1520
1612
  from?: unknown;
1521
1613
  to?: unknown;
1522
1614
  } | null | undefined;
1523
1615
  callType?: CallType | undefined;
1616
+ companyId?: string | undefined;
1524
1617
  leadSource?: LeadSource | undefined;
1525
1618
  leadName?: string | undefined;
1526
- phoneNumber?: string | undefined;
1527
1619
  }>;
1528
1620
  export declare const CallHistoryStatsSchema: z.ZodObject<{
1529
1621
  totalCalls: z.ZodNumber;
@@ -1559,19 +1651,19 @@ export declare const callHistoryContract: {
1559
1651
  notes: z.ZodOptional<z.ZodString>;
1560
1652
  callType: z.ZodNativeEnum<typeof CallType>;
1561
1653
  }, "strip", z.ZodTypeAny, {
1562
- assignmentId: string;
1563
1654
  rating: CallRating;
1564
1655
  callType: CallType;
1656
+ assignmentId: string;
1565
1657
  notes?: string | undefined;
1566
1658
  }, {
1567
- assignmentId: string;
1568
1659
  rating: CallRating;
1569
1660
  callType: CallType;
1661
+ assignmentId: string;
1570
1662
  notes?: string | undefined;
1571
1663
  }>;
1572
1664
  path: "/v2/call-history";
1573
1665
  responses: {
1574
- 400: z.ZodObject<{
1666
+ 401: z.ZodObject<{
1575
1667
  statusCode: z.ZodNumber;
1576
1668
  message: z.ZodString;
1577
1669
  code: z.ZodString;
@@ -1580,23 +1672,23 @@ export declare const callHistoryContract: {
1580
1672
  path: z.ZodString;
1581
1673
  correlationId: z.ZodOptional<z.ZodString>;
1582
1674
  }, "strip", z.ZodTypeAny, {
1583
- message: string;
1584
1675
  code: string;
1585
1676
  path: string;
1677
+ message: string;
1586
1678
  statusCode: number;
1587
1679
  timestamp: string;
1588
1680
  details?: unknown;
1589
1681
  correlationId?: string | undefined;
1590
1682
  }, {
1591
- message: string;
1592
1683
  code: string;
1593
1684
  path: string;
1685
+ message: string;
1594
1686
  statusCode: number;
1595
1687
  timestamp: string;
1596
1688
  details?: unknown;
1597
1689
  correlationId?: string | undefined;
1598
1690
  }>;
1599
- 401: z.ZodObject<{
1691
+ 400: z.ZodObject<{
1600
1692
  statusCode: z.ZodNumber;
1601
1693
  message: z.ZodString;
1602
1694
  code: z.ZodString;
@@ -1605,17 +1697,17 @@ export declare const callHistoryContract: {
1605
1697
  path: z.ZodString;
1606
1698
  correlationId: z.ZodOptional<z.ZodString>;
1607
1699
  }, "strip", z.ZodTypeAny, {
1608
- message: string;
1609
1700
  code: string;
1610
1701
  path: string;
1702
+ message: string;
1611
1703
  statusCode: number;
1612
1704
  timestamp: string;
1613
1705
  details?: unknown;
1614
1706
  correlationId?: string | undefined;
1615
1707
  }, {
1616
- message: string;
1617
1708
  code: string;
1618
1709
  path: string;
1710
+ message: string;
1619
1711
  statusCode: number;
1620
1712
  timestamp: string;
1621
1713
  details?: unknown;
@@ -1630,17 +1722,17 @@ export declare const callHistoryContract: {
1630
1722
  path: z.ZodString;
1631
1723
  correlationId: z.ZodOptional<z.ZodString>;
1632
1724
  }, "strip", z.ZodTypeAny, {
1633
- message: string;
1634
1725
  code: string;
1635
1726
  path: string;
1727
+ message: string;
1636
1728
  statusCode: number;
1637
1729
  timestamp: string;
1638
1730
  details?: unknown;
1639
1731
  correlationId?: string | undefined;
1640
1732
  }, {
1641
- message: string;
1642
1733
  code: string;
1643
1734
  path: string;
1735
+ message: string;
1644
1736
  statusCode: number;
1645
1737
  timestamp: string;
1646
1738
  details?: unknown;
@@ -1655,17 +1747,17 @@ export declare const callHistoryContract: {
1655
1747
  path: z.ZodString;
1656
1748
  correlationId: z.ZodOptional<z.ZodString>;
1657
1749
  }, "strip", z.ZodTypeAny, {
1658
- message: string;
1659
1750
  code: string;
1660
1751
  path: string;
1752
+ message: string;
1661
1753
  statusCode: number;
1662
1754
  timestamp: string;
1663
1755
  details?: unknown;
1664
1756
  correlationId?: string | undefined;
1665
1757
  }, {
1666
- message: string;
1667
1758
  code: string;
1668
1759
  path: string;
1760
+ message: string;
1669
1761
  statusCode: number;
1670
1762
  timestamp: string;
1671
1763
  details?: unknown;
@@ -1730,16 +1822,16 @@ export declare const callHistoryContract: {
1730
1822
  firstName: string;
1731
1823
  }>, "many">>;
1732
1824
  }, "strip", z.ZodTypeAny, {
1733
- id: string;
1734
1825
  name: string;
1826
+ id: string;
1735
1827
  managers?: {
1736
1828
  id: string;
1737
1829
  lastName: string;
1738
1830
  firstName: string;
1739
1831
  }[] | undefined;
1740
1832
  }, {
1741
- id: string;
1742
1833
  name: string;
1834
+ id: string;
1743
1835
  managers?: {
1744
1836
  id: string;
1745
1837
  lastName: string;
@@ -1760,15 +1852,16 @@ export declare const callHistoryContract: {
1760
1852
  firstName: string;
1761
1853
  }>, "many">>;
1762
1854
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
1855
+ dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
1763
1856
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1764
1857
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1765
1858
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1766
1859
  }, "strip", z.ZodTypeAny, {
1767
- status: "ACTIVE" | "INACTIVE";
1768
- id: string;
1769
- updatedAt: string;
1770
- createdAt: string;
1771
1860
  email: string;
1861
+ createdAt: string;
1862
+ updatedAt: string;
1863
+ id: string;
1864
+ status: "ACTIVE" | "INACTIVE";
1772
1865
  lastName: string;
1773
1866
  firstName: string;
1774
1867
  phoneNumbers: {
@@ -1780,33 +1873,34 @@ export declare const callHistoryContract: {
1780
1873
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1781
1874
  officeId?: string | null | undefined;
1782
1875
  office?: {
1783
- id: string;
1784
1876
  name: string;
1877
+ id: string;
1785
1878
  managers?: {
1786
1879
  id: string;
1787
1880
  lastName: string;
1788
1881
  firstName: string;
1789
1882
  }[] | undefined;
1790
1883
  } | null | undefined;
1884
+ deletedAt?: string | null | undefined;
1791
1885
  canImpersonateUsers?: {
1792
1886
  id: string;
1793
1887
  lastName: string;
1794
1888
  firstName: string;
1795
1889
  }[] | undefined;
1796
- deletedAt?: string | null | undefined;
1890
+ dialpadUserId?: string | null | undefined;
1797
1891
  }, {
1798
- status: "ACTIVE" | "INACTIVE";
1799
- id: string;
1800
- updatedAt: string | Date;
1801
- createdAt: string | Date;
1802
1892
  email: string;
1893
+ createdAt: string | Date;
1894
+ updatedAt: string | Date;
1895
+ id: string;
1896
+ status: "ACTIVE" | "INACTIVE";
1803
1897
  lastName: string;
1804
1898
  firstName: string;
1805
1899
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1806
1900
  officeId?: string | null | undefined;
1807
1901
  office?: {
1808
- id: string;
1809
1902
  name: string;
1903
+ id: string;
1810
1904
  managers?: {
1811
1905
  id: string;
1812
1906
  lastName: string;
@@ -1819,12 +1913,13 @@ export declare const callHistoryContract: {
1819
1913
  description?: string | null | undefined;
1820
1914
  isPrimary?: boolean | undefined;
1821
1915
  }[] | undefined;
1916
+ deletedAt?: string | Date | null | undefined;
1822
1917
  canImpersonateUsers?: {
1823
1918
  id: string;
1824
1919
  lastName: string;
1825
1920
  firstName: string;
1826
1921
  }[] | undefined;
1827
- deletedAt?: string | Date | null | undefined;
1922
+ dialpadUserId?: string | null | undefined;
1828
1923
  }>>;
1829
1924
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1830
1925
  assignedBy: z.ZodNullable<z.ZodString>;
@@ -1836,44 +1931,47 @@ export declare const callHistoryContract: {
1836
1931
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1837
1932
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1838
1933
  }, "strip", z.ZodTypeAny, {
1839
- id: string;
1840
1934
  name: string;
1841
- updatedAt: string;
1842
1935
  createdAt: string;
1843
- }, {
1936
+ updatedAt: string;
1844
1937
  id: string;
1938
+ }, {
1845
1939
  name: string;
1846
- updatedAt: string | Date;
1847
1940
  createdAt: string | Date;
1941
+ updatedAt: string | Date;
1942
+ id: string;
1848
1943
  }>>>;
1849
1944
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1850
1945
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1946
+ callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1947
+ id: z.ZodString;
1948
+ dueAt: z.ZodString;
1949
+ originNotes: z.ZodNullable<z.ZodString>;
1950
+ }, "strip", z.ZodTypeAny, {
1951
+ id: string;
1952
+ dueAt: string;
1953
+ originNotes: string | null;
1954
+ }, {
1955
+ id: string;
1956
+ dueAt: string;
1957
+ originNotes: string | null;
1958
+ }>>>;
1851
1959
  }, "strip", z.ZodTypeAny, {
1852
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1853
- id: string;
1854
- updatedAt: string;
1855
1960
  createdAt: string;
1856
- companyId: string | null;
1961
+ updatedAt: string;
1962
+ id: string;
1963
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1857
1964
  agentId: string | null;
1858
1965
  leadId: string;
1859
1966
  assignedAt: string;
1860
1967
  assignedBy: string | null;
1861
- company?: {
1862
- id: string;
1863
- name: string;
1864
- updatedAt: string;
1865
- createdAt: string;
1866
- } | null | undefined;
1867
- lead?: {
1868
- name: string;
1869
- phoneNumber: string;
1870
- } | undefined;
1968
+ companyId: string | null;
1871
1969
  agent?: {
1872
- status: "ACTIVE" | "INACTIVE";
1873
- id: string;
1874
- updatedAt: string;
1875
- createdAt: string;
1876
1970
  email: string;
1971
+ createdAt: string;
1972
+ updatedAt: string;
1973
+ id: string;
1974
+ status: "ACTIVE" | "INACTIVE";
1877
1975
  lastName: string;
1878
1976
  firstName: string;
1879
1977
  phoneNumbers: {
@@ -1885,54 +1983,60 @@ export declare const callHistoryContract: {
1885
1983
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1886
1984
  officeId?: string | null | undefined;
1887
1985
  office?: {
1888
- id: string;
1889
1986
  name: string;
1987
+ id: string;
1890
1988
  managers?: {
1891
1989
  id: string;
1892
1990
  lastName: string;
1893
1991
  firstName: string;
1894
1992
  }[] | undefined;
1895
1993
  } | null | undefined;
1994
+ deletedAt?: string | null | undefined;
1896
1995
  canImpersonateUsers?: {
1897
1996
  id: string;
1898
1997
  lastName: string;
1899
1998
  firstName: string;
1900
1999
  }[] | undefined;
1901
- deletedAt?: string | null | undefined;
2000
+ dialpadUserId?: string | null | undefined;
2001
+ } | undefined;
2002
+ lead?: {
2003
+ name: string;
2004
+ phoneNumber: string;
1902
2005
  } | undefined;
2006
+ company?: {
2007
+ name: string;
2008
+ createdAt: string;
2009
+ updatedAt: string;
2010
+ id: string;
2011
+ } | null | undefined;
2012
+ callback?: {
2013
+ id: string;
2014
+ dueAt: string;
2015
+ originNotes: string | null;
2016
+ } | null | undefined;
1903
2017
  }, {
1904
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1905
- id: string;
1906
- updatedAt: string | Date;
1907
2018
  createdAt: string | Date;
1908
- companyId: string | null;
2019
+ updatedAt: string | Date;
2020
+ id: string;
2021
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1909
2022
  agentId: string | null;
1910
2023
  leadId: string;
1911
2024
  assignedAt: string | Date;
1912
2025
  assignedBy: string | null;
1913
- company?: {
1914
- id: string;
1915
- name: string;
1916
- updatedAt: string | Date;
1917
- createdAt: string | Date;
1918
- } | null | undefined;
1919
- lead?: {
1920
- name: string;
1921
- phoneNumber: string;
1922
- } | undefined;
2026
+ companyId: string | null;
1923
2027
  agent?: {
1924
- status: "ACTIVE" | "INACTIVE";
1925
- id: string;
1926
- updatedAt: string | Date;
1927
- createdAt: string | Date;
1928
2028
  email: string;
2029
+ createdAt: string | Date;
2030
+ updatedAt: string | Date;
2031
+ id: string;
2032
+ status: "ACTIVE" | "INACTIVE";
1929
2033
  lastName: string;
1930
2034
  firstName: string;
1931
2035
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1932
2036
  officeId?: string | null | undefined;
1933
2037
  office?: {
1934
- id: string;
1935
2038
  name: string;
2039
+ id: string;
1936
2040
  managers?: {
1937
2041
  id: string;
1938
2042
  lastName: string;
@@ -1945,13 +2049,29 @@ export declare const callHistoryContract: {
1945
2049
  description?: string | null | undefined;
1946
2050
  isPrimary?: boolean | undefined;
1947
2051
  }[] | undefined;
2052
+ deletedAt?: string | Date | null | undefined;
1948
2053
  canImpersonateUsers?: {
1949
2054
  id: string;
1950
2055
  lastName: string;
1951
2056
  firstName: string;
1952
2057
  }[] | undefined;
1953
- deletedAt?: string | Date | null | undefined;
2058
+ dialpadUserId?: string | null | undefined;
2059
+ } | undefined;
2060
+ lead?: {
2061
+ name: string;
2062
+ phoneNumber: string;
1954
2063
  } | undefined;
2064
+ company?: {
2065
+ name: string;
2066
+ createdAt: string | Date;
2067
+ updatedAt: string | Date;
2068
+ id: string;
2069
+ } | null | undefined;
2070
+ callback?: {
2071
+ id: string;
2072
+ dueAt: string;
2073
+ originNotes: string | null;
2074
+ } | null | undefined;
1955
2075
  }>>>;
1956
2076
  callType: z.ZodNativeEnum<typeof CallType>;
1957
2077
  leadSource: z.ZodNativeEnum<typeof LeadSource>;
@@ -1961,43 +2081,33 @@ export declare const callHistoryContract: {
1961
2081
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1962
2082
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1963
2083
  }, "strip", z.ZodTypeAny, {
1964
- id: string;
1965
- updatedAt: string;
1966
2084
  createdAt: string;
1967
- assignmentId: string;
2085
+ updatedAt: string;
2086
+ id: string;
1968
2087
  rating: CallRating;
2088
+ notes: string | null;
1969
2089
  callType: CallType;
1970
- leadSource: LeadSource;
2090
+ assignmentId: string;
1971
2091
  ratingWeight: number;
1972
- notes: string | null;
2092
+ leadSource: LeadSource;
1973
2093
  agentId?: string | undefined;
1974
2094
  leadId?: string | undefined;
1975
2095
  assignment?: {
1976
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1977
- id: string;
1978
- updatedAt: string;
1979
2096
  createdAt: string;
1980
- companyId: string | null;
2097
+ updatedAt: string;
2098
+ id: string;
2099
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1981
2100
  agentId: string | null;
1982
2101
  leadId: string;
1983
2102
  assignedAt: string;
1984
2103
  assignedBy: string | null;
1985
- company?: {
1986
- id: string;
1987
- name: string;
1988
- updatedAt: string;
1989
- createdAt: string;
1990
- } | null | undefined;
1991
- lead?: {
1992
- name: string;
1993
- phoneNumber: string;
1994
- } | undefined;
2104
+ companyId: string | null;
1995
2105
  agent?: {
1996
- status: "ACTIVE" | "INACTIVE";
1997
- id: string;
1998
- updatedAt: string;
1999
- createdAt: string;
2000
2106
  email: string;
2107
+ createdAt: string;
2108
+ updatedAt: string;
2109
+ id: string;
2110
+ status: "ACTIVE" | "INACTIVE";
2001
2111
  lastName: string;
2002
2112
  firstName: string;
2003
2113
  phoneNumbers: {
@@ -2009,67 +2119,73 @@ export declare const callHistoryContract: {
2009
2119
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2010
2120
  officeId?: string | null | undefined;
2011
2121
  office?: {
2012
- id: string;
2013
2122
  name: string;
2123
+ id: string;
2014
2124
  managers?: {
2015
2125
  id: string;
2016
2126
  lastName: string;
2017
2127
  firstName: string;
2018
2128
  }[] | undefined;
2019
2129
  } | null | undefined;
2130
+ deletedAt?: string | null | undefined;
2020
2131
  canImpersonateUsers?: {
2021
2132
  id: string;
2022
2133
  lastName: string;
2023
2134
  firstName: string;
2024
2135
  }[] | undefined;
2025
- deletedAt?: string | null | undefined;
2136
+ dialpadUserId?: string | null | undefined;
2026
2137
  } | undefined;
2138
+ lead?: {
2139
+ name: string;
2140
+ phoneNumber: string;
2141
+ } | undefined;
2142
+ company?: {
2143
+ name: string;
2144
+ createdAt: string;
2145
+ updatedAt: string;
2146
+ id: string;
2147
+ } | null | undefined;
2148
+ callback?: {
2149
+ id: string;
2150
+ dueAt: string;
2151
+ originNotes: string | null;
2152
+ } | null | undefined;
2027
2153
  } | null | undefined;
2028
2154
  }, {
2029
- id: string;
2030
- updatedAt: string | Date;
2031
2155
  createdAt: string | Date;
2032
- assignmentId: string;
2156
+ updatedAt: string | Date;
2157
+ id: string;
2033
2158
  rating: CallRating;
2159
+ notes: string | null;
2034
2160
  callType: CallType;
2035
- leadSource: LeadSource;
2161
+ assignmentId: string;
2036
2162
  ratingWeight: number;
2037
- notes: string | null;
2163
+ leadSource: LeadSource;
2038
2164
  agentId?: string | undefined;
2039
2165
  leadId?: string | undefined;
2040
2166
  assignment?: {
2041
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2042
- id: string;
2043
- updatedAt: string | Date;
2044
2167
  createdAt: string | Date;
2045
- companyId: string | null;
2168
+ updatedAt: string | Date;
2169
+ id: string;
2170
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2046
2171
  agentId: string | null;
2047
2172
  leadId: string;
2048
2173
  assignedAt: string | Date;
2049
2174
  assignedBy: string | null;
2050
- company?: {
2051
- id: string;
2052
- name: string;
2053
- updatedAt: string | Date;
2054
- createdAt: string | Date;
2055
- } | null | undefined;
2056
- lead?: {
2057
- name: string;
2058
- phoneNumber: string;
2059
- } | undefined;
2175
+ companyId: string | null;
2060
2176
  agent?: {
2061
- status: "ACTIVE" | "INACTIVE";
2062
- id: string;
2063
- updatedAt: string | Date;
2064
- createdAt: string | Date;
2065
2177
  email: string;
2178
+ createdAt: string | Date;
2179
+ updatedAt: string | Date;
2180
+ id: string;
2181
+ status: "ACTIVE" | "INACTIVE";
2066
2182
  lastName: string;
2067
2183
  firstName: string;
2068
2184
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2069
2185
  officeId?: string | null | undefined;
2070
2186
  office?: {
2071
- id: string;
2072
2187
  name: string;
2188
+ id: string;
2073
2189
  managers?: {
2074
2190
  id: string;
2075
2191
  lastName: string;
@@ -2082,13 +2198,29 @@ export declare const callHistoryContract: {
2082
2198
  description?: string | null | undefined;
2083
2199
  isPrimary?: boolean | undefined;
2084
2200
  }[] | undefined;
2201
+ deletedAt?: string | Date | null | undefined;
2085
2202
  canImpersonateUsers?: {
2086
2203
  id: string;
2087
2204
  lastName: string;
2088
2205
  firstName: string;
2089
2206
  }[] | undefined;
2090
- deletedAt?: string | Date | null | undefined;
2207
+ dialpadUserId?: string | null | undefined;
2208
+ } | undefined;
2209
+ lead?: {
2210
+ name: string;
2211
+ phoneNumber: string;
2091
2212
  } | undefined;
2213
+ company?: {
2214
+ name: string;
2215
+ createdAt: string | Date;
2216
+ updatedAt: string | Date;
2217
+ id: string;
2218
+ } | null | undefined;
2219
+ callback?: {
2220
+ id: string;
2221
+ dueAt: string;
2222
+ originNotes: string | null;
2223
+ } | null | undefined;
2092
2224
  } | null | undefined;
2093
2225
  }>;
2094
2226
  409: z.ZodObject<{
@@ -2100,17 +2232,17 @@ export declare const callHistoryContract: {
2100
2232
  path: z.ZodString;
2101
2233
  correlationId: z.ZodOptional<z.ZodString>;
2102
2234
  }, "strip", z.ZodTypeAny, {
2103
- message: string;
2104
2235
  code: string;
2105
2236
  path: string;
2237
+ message: string;
2106
2238
  statusCode: number;
2107
2239
  timestamp: string;
2108
2240
  details?: unknown;
2109
2241
  correlationId?: string | undefined;
2110
2242
  }, {
2111
- message: string;
2112
2243
  code: string;
2113
2244
  path: string;
2245
+ message: string;
2114
2246
  statusCode: number;
2115
2247
  timestamp: string;
2116
2248
  details?: unknown;
@@ -2170,37 +2302,37 @@ export declare const callHistoryContract: {
2170
2302
  from?: string | null | undefined;
2171
2303
  to?: string | null | undefined;
2172
2304
  } | null | undefined;
2173
- companyId?: string | undefined;
2174
2305
  agentId?: string | undefined;
2306
+ phoneNumber?: string | undefined;
2175
2307
  rating?: {
2176
2308
  from?: CallRating | null | undefined;
2177
2309
  to?: CallRating | null | undefined;
2178
2310
  } | null | undefined;
2179
2311
  callType?: CallType | undefined;
2312
+ companyId?: string | undefined;
2180
2313
  leadSource?: LeadSource | undefined;
2181
2314
  leadName?: string | undefined;
2182
- phoneNumber?: string | undefined;
2183
2315
  }, {
2184
2316
  sort?: {
2185
2317
  field: CallHistorySortableFields;
2186
2318
  order: "ASC" | "DESC";
2187
2319
  }[] | null | undefined;
2188
- page?: number | undefined;
2189
- limit?: number | undefined;
2190
2320
  createdAt?: {
2191
2321
  from?: string | null | undefined;
2192
2322
  to?: string | null | undefined;
2193
2323
  } | null | undefined;
2194
- companyId?: string | undefined;
2324
+ page?: number | undefined;
2325
+ limit?: number | undefined;
2195
2326
  agentId?: string | undefined;
2327
+ phoneNumber?: string | undefined;
2196
2328
  rating?: {
2197
2329
  from?: unknown;
2198
2330
  to?: unknown;
2199
2331
  } | null | undefined;
2200
2332
  callType?: CallType | undefined;
2333
+ companyId?: string | undefined;
2201
2334
  leadSource?: LeadSource | undefined;
2202
2335
  leadName?: string | undefined;
2203
- phoneNumber?: string | undefined;
2204
2336
  }>;
2205
2337
  metadata: {
2206
2338
  tags: string[];
@@ -2209,7 +2341,7 @@ export declare const callHistoryContract: {
2209
2341
  method: "GET";
2210
2342
  path: "/v2/call-history";
2211
2343
  responses: {
2212
- 400: z.ZodObject<{
2344
+ 401: z.ZodObject<{
2213
2345
  statusCode: z.ZodNumber;
2214
2346
  message: z.ZodString;
2215
2347
  code: z.ZodString;
@@ -2218,23 +2350,23 @@ export declare const callHistoryContract: {
2218
2350
  path: z.ZodString;
2219
2351
  correlationId: z.ZodOptional<z.ZodString>;
2220
2352
  }, "strip", z.ZodTypeAny, {
2221
- message: string;
2222
2353
  code: string;
2223
2354
  path: string;
2355
+ message: string;
2224
2356
  statusCode: number;
2225
2357
  timestamp: string;
2226
2358
  details?: unknown;
2227
2359
  correlationId?: string | undefined;
2228
2360
  }, {
2229
- message: string;
2230
2361
  code: string;
2231
2362
  path: string;
2363
+ message: string;
2232
2364
  statusCode: number;
2233
2365
  timestamp: string;
2234
2366
  details?: unknown;
2235
2367
  correlationId?: string | undefined;
2236
2368
  }>;
2237
- 401: z.ZodObject<{
2369
+ 400: z.ZodObject<{
2238
2370
  statusCode: z.ZodNumber;
2239
2371
  message: z.ZodString;
2240
2372
  code: z.ZodString;
@@ -2243,17 +2375,17 @@ export declare const callHistoryContract: {
2243
2375
  path: z.ZodString;
2244
2376
  correlationId: z.ZodOptional<z.ZodString>;
2245
2377
  }, "strip", z.ZodTypeAny, {
2246
- message: string;
2247
2378
  code: string;
2248
2379
  path: string;
2380
+ message: string;
2249
2381
  statusCode: number;
2250
2382
  timestamp: string;
2251
2383
  details?: unknown;
2252
2384
  correlationId?: string | undefined;
2253
2385
  }, {
2254
- message: string;
2255
2386
  code: string;
2256
2387
  path: string;
2388
+ message: string;
2257
2389
  statusCode: number;
2258
2390
  timestamp: string;
2259
2391
  details?: unknown;
@@ -2268,17 +2400,17 @@ export declare const callHistoryContract: {
2268
2400
  path: z.ZodString;
2269
2401
  correlationId: z.ZodOptional<z.ZodString>;
2270
2402
  }, "strip", z.ZodTypeAny, {
2271
- message: string;
2272
2403
  code: string;
2273
2404
  path: string;
2405
+ message: string;
2274
2406
  statusCode: number;
2275
2407
  timestamp: string;
2276
2408
  details?: unknown;
2277
2409
  correlationId?: string | undefined;
2278
2410
  }, {
2279
- message: string;
2280
2411
  code: string;
2281
2412
  path: string;
2413
+ message: string;
2282
2414
  statusCode: number;
2283
2415
  timestamp: string;
2284
2416
  details?: unknown;
@@ -2293,17 +2425,17 @@ export declare const callHistoryContract: {
2293
2425
  path: z.ZodString;
2294
2426
  correlationId: z.ZodOptional<z.ZodString>;
2295
2427
  }, "strip", z.ZodTypeAny, {
2296
- message: string;
2297
2428
  code: string;
2298
2429
  path: string;
2430
+ message: string;
2299
2431
  statusCode: number;
2300
2432
  timestamp: string;
2301
2433
  details?: unknown;
2302
2434
  correlationId?: string | undefined;
2303
2435
  }, {
2304
- message: string;
2305
2436
  code: string;
2306
2437
  path: string;
2438
+ message: string;
2307
2439
  statusCode: number;
2308
2440
  timestamp: string;
2309
2441
  details?: unknown;
@@ -2386,34 +2518,23 @@ export declare const callHistoryContract: {
2386
2518
  id: z.ZodString;
2387
2519
  name: z.ZodString;
2388
2520
  }, "strip", z.ZodTypeAny, {
2389
- id: string;
2390
2521
  name: string;
2391
- }, {
2392
2522
  id: string;
2523
+ }, {
2393
2524
  name: string;
2525
+ id: string;
2394
2526
  }>>>;
2395
2527
  }, "strip", z.ZodTypeAny, {
2396
- id: string;
2397
- updatedAt: string;
2398
2528
  createdAt: string;
2529
+ updatedAt: string;
2530
+ id: string;
2399
2531
  agentId: string;
2400
- assignmentId: string;
2401
2532
  rating: CallRating;
2533
+ notes: string | null;
2402
2534
  callType: CallType;
2403
- leadSource: LeadSource;
2535
+ assignmentId: string;
2404
2536
  ratingWeight: number;
2405
- notes: string | null;
2406
- company?: {
2407
- id: string;
2408
- name: string;
2409
- } | null | undefined;
2410
- assignment?: {
2411
- agentId: string | null;
2412
- } | null | undefined;
2413
- lead?: {
2414
- name: string;
2415
- phoneNumber: string;
2416
- } | null | undefined;
2537
+ leadSource: LeadSource;
2417
2538
  agent?: {
2418
2539
  id: string;
2419
2540
  lastName: string;
@@ -2426,28 +2547,28 @@ export declare const callHistoryContract: {
2426
2547
  }[];
2427
2548
  deletedAt?: string | null | undefined;
2428
2549
  } | null | undefined;
2429
- }, {
2430
- id: string;
2431
- updatedAt: string | Date;
2432
- createdAt: string | Date;
2433
- agentId: string;
2434
- assignmentId: string;
2435
- rating: CallRating;
2436
- callType: CallType;
2437
- leadSource: LeadSource;
2438
- ratingWeight: number;
2439
- notes: string | null;
2550
+ lead?: {
2551
+ name: string;
2552
+ phoneNumber: string;
2553
+ } | null | undefined;
2440
2554
  company?: {
2441
- id: string;
2442
2555
  name: string;
2556
+ id: string;
2443
2557
  } | null | undefined;
2444
2558
  assignment?: {
2445
2559
  agentId: string | null;
2446
2560
  } | null | undefined;
2447
- lead?: {
2448
- name: string;
2449
- phoneNumber: string;
2450
- } | null | undefined;
2561
+ }, {
2562
+ createdAt: string | Date;
2563
+ updatedAt: string | Date;
2564
+ id: string;
2565
+ agentId: string;
2566
+ rating: CallRating;
2567
+ notes: string | null;
2568
+ callType: CallType;
2569
+ assignmentId: string;
2570
+ ratingWeight: number;
2571
+ leadSource: LeadSource;
2451
2572
  agent?: {
2452
2573
  id: string;
2453
2574
  lastName: string;
@@ -2460,6 +2581,17 @@ export declare const callHistoryContract: {
2460
2581
  }[] | undefined;
2461
2582
  deletedAt?: string | Date | null | undefined;
2462
2583
  } | null | undefined;
2584
+ lead?: {
2585
+ name: string;
2586
+ phoneNumber: string;
2587
+ } | null | undefined;
2588
+ company?: {
2589
+ name: string;
2590
+ id: string;
2591
+ } | null | undefined;
2592
+ assignment?: {
2593
+ agentId: string | null;
2594
+ } | null | undefined;
2463
2595
  }>, "many">;
2464
2596
  totalCount: z.ZodNumber;
2465
2597
  limit: z.ZodNumber;
@@ -2469,27 +2601,16 @@ export declare const callHistoryContract: {
2469
2601
  }, "strip", z.ZodTypeAny, {
2470
2602
  limit: number;
2471
2603
  items: {
2472
- id: string;
2473
- updatedAt: string;
2474
2604
  createdAt: string;
2605
+ updatedAt: string;
2606
+ id: string;
2475
2607
  agentId: string;
2476
- assignmentId: string;
2477
2608
  rating: CallRating;
2609
+ notes: string | null;
2478
2610
  callType: CallType;
2479
- leadSource: LeadSource;
2611
+ assignmentId: string;
2480
2612
  ratingWeight: number;
2481
- notes: string | null;
2482
- company?: {
2483
- id: string;
2484
- name: string;
2485
- } | null | undefined;
2486
- assignment?: {
2487
- agentId: string | null;
2488
- } | null | undefined;
2489
- lead?: {
2490
- name: string;
2491
- phoneNumber: string;
2492
- } | null | undefined;
2613
+ leadSource: LeadSource;
2493
2614
  agent?: {
2494
2615
  id: string;
2495
2616
  lastName: string;
@@ -2502,6 +2623,17 @@ export declare const callHistoryContract: {
2502
2623
  }[];
2503
2624
  deletedAt?: string | null | undefined;
2504
2625
  } | null | undefined;
2626
+ lead?: {
2627
+ name: string;
2628
+ phoneNumber: string;
2629
+ } | null | undefined;
2630
+ company?: {
2631
+ name: string;
2632
+ id: string;
2633
+ } | null | undefined;
2634
+ assignment?: {
2635
+ agentId: string | null;
2636
+ } | null | undefined;
2505
2637
  }[];
2506
2638
  totalCount: number;
2507
2639
  skip: number;
@@ -2510,27 +2642,16 @@ export declare const callHistoryContract: {
2510
2642
  }, {
2511
2643
  limit: number;
2512
2644
  items: {
2513
- id: string;
2514
- updatedAt: string | Date;
2515
2645
  createdAt: string | Date;
2646
+ updatedAt: string | Date;
2647
+ id: string;
2516
2648
  agentId: string;
2517
- assignmentId: string;
2518
2649
  rating: CallRating;
2650
+ notes: string | null;
2519
2651
  callType: CallType;
2520
- leadSource: LeadSource;
2652
+ assignmentId: string;
2521
2653
  ratingWeight: number;
2522
- notes: string | null;
2523
- company?: {
2524
- id: string;
2525
- name: string;
2526
- } | null | undefined;
2527
- assignment?: {
2528
- agentId: string | null;
2529
- } | null | undefined;
2530
- lead?: {
2531
- name: string;
2532
- phoneNumber: string;
2533
- } | null | undefined;
2654
+ leadSource: LeadSource;
2534
2655
  agent?: {
2535
2656
  id: string;
2536
2657
  lastName: string;
@@ -2543,6 +2664,17 @@ export declare const callHistoryContract: {
2543
2664
  }[] | undefined;
2544
2665
  deletedAt?: string | Date | null | undefined;
2545
2666
  } | null | undefined;
2667
+ lead?: {
2668
+ name: string;
2669
+ phoneNumber: string;
2670
+ } | null | undefined;
2671
+ company?: {
2672
+ name: string;
2673
+ id: string;
2674
+ } | null | undefined;
2675
+ assignment?: {
2676
+ agentId: string | null;
2677
+ } | null | undefined;
2546
2678
  }[];
2547
2679
  totalCount: number;
2548
2680
  skip: number;
@@ -2566,7 +2698,7 @@ export declare const callHistoryContract: {
2566
2698
  method: "GET";
2567
2699
  path: "/v2/call-history/:id";
2568
2700
  responses: {
2569
- 400: z.ZodObject<{
2701
+ 401: z.ZodObject<{
2570
2702
  statusCode: z.ZodNumber;
2571
2703
  message: z.ZodString;
2572
2704
  code: z.ZodString;
@@ -2575,23 +2707,23 @@ export declare const callHistoryContract: {
2575
2707
  path: z.ZodString;
2576
2708
  correlationId: z.ZodOptional<z.ZodString>;
2577
2709
  }, "strip", z.ZodTypeAny, {
2578
- message: string;
2579
2710
  code: string;
2580
2711
  path: string;
2712
+ message: string;
2581
2713
  statusCode: number;
2582
2714
  timestamp: string;
2583
2715
  details?: unknown;
2584
2716
  correlationId?: string | undefined;
2585
2717
  }, {
2586
- message: string;
2587
2718
  code: string;
2588
2719
  path: string;
2720
+ message: string;
2589
2721
  statusCode: number;
2590
2722
  timestamp: string;
2591
2723
  details?: unknown;
2592
2724
  correlationId?: string | undefined;
2593
2725
  }>;
2594
- 401: z.ZodObject<{
2726
+ 400: z.ZodObject<{
2595
2727
  statusCode: z.ZodNumber;
2596
2728
  message: z.ZodString;
2597
2729
  code: z.ZodString;
@@ -2600,17 +2732,17 @@ export declare const callHistoryContract: {
2600
2732
  path: z.ZodString;
2601
2733
  correlationId: z.ZodOptional<z.ZodString>;
2602
2734
  }, "strip", z.ZodTypeAny, {
2603
- message: string;
2604
2735
  code: string;
2605
2736
  path: string;
2737
+ message: string;
2606
2738
  statusCode: number;
2607
2739
  timestamp: string;
2608
2740
  details?: unknown;
2609
2741
  correlationId?: string | undefined;
2610
2742
  }, {
2611
- message: string;
2612
2743
  code: string;
2613
2744
  path: string;
2745
+ message: string;
2614
2746
  statusCode: number;
2615
2747
  timestamp: string;
2616
2748
  details?: unknown;
@@ -2625,17 +2757,17 @@ export declare const callHistoryContract: {
2625
2757
  path: z.ZodString;
2626
2758
  correlationId: z.ZodOptional<z.ZodString>;
2627
2759
  }, "strip", z.ZodTypeAny, {
2628
- message: string;
2629
2760
  code: string;
2630
2761
  path: string;
2762
+ message: string;
2631
2763
  statusCode: number;
2632
2764
  timestamp: string;
2633
2765
  details?: unknown;
2634
2766
  correlationId?: string | undefined;
2635
2767
  }, {
2636
- message: string;
2637
2768
  code: string;
2638
2769
  path: string;
2770
+ message: string;
2639
2771
  statusCode: number;
2640
2772
  timestamp: string;
2641
2773
  details?: unknown;
@@ -2650,17 +2782,17 @@ export declare const callHistoryContract: {
2650
2782
  path: z.ZodString;
2651
2783
  correlationId: z.ZodOptional<z.ZodString>;
2652
2784
  }, "strip", z.ZodTypeAny, {
2653
- message: string;
2654
2785
  code: string;
2655
2786
  path: string;
2787
+ message: string;
2656
2788
  statusCode: number;
2657
2789
  timestamp: string;
2658
2790
  details?: unknown;
2659
2791
  correlationId?: string | undefined;
2660
2792
  }, {
2661
- message: string;
2662
2793
  code: string;
2663
2794
  path: string;
2795
+ message: string;
2664
2796
  statusCode: number;
2665
2797
  timestamp: string;
2666
2798
  details?: unknown;
@@ -2725,16 +2857,16 @@ export declare const callHistoryContract: {
2725
2857
  firstName: string;
2726
2858
  }>, "many">>;
2727
2859
  }, "strip", z.ZodTypeAny, {
2728
- id: string;
2729
2860
  name: string;
2861
+ id: string;
2730
2862
  managers?: {
2731
2863
  id: string;
2732
2864
  lastName: string;
2733
2865
  firstName: string;
2734
2866
  }[] | undefined;
2735
2867
  }, {
2736
- id: string;
2737
2868
  name: string;
2869
+ id: string;
2738
2870
  managers?: {
2739
2871
  id: string;
2740
2872
  lastName: string;
@@ -2755,15 +2887,16 @@ export declare const callHistoryContract: {
2755
2887
  firstName: string;
2756
2888
  }>, "many">>;
2757
2889
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
2890
+ dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
2758
2891
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2759
2892
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2760
2893
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
2761
2894
  }, "strip", z.ZodTypeAny, {
2762
- status: "ACTIVE" | "INACTIVE";
2763
- id: string;
2764
- updatedAt: string;
2765
- createdAt: string;
2766
2895
  email: string;
2896
+ createdAt: string;
2897
+ updatedAt: string;
2898
+ id: string;
2899
+ status: "ACTIVE" | "INACTIVE";
2767
2900
  lastName: string;
2768
2901
  firstName: string;
2769
2902
  phoneNumbers: {
@@ -2775,33 +2908,34 @@ export declare const callHistoryContract: {
2775
2908
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2776
2909
  officeId?: string | null | undefined;
2777
2910
  office?: {
2778
- id: string;
2779
2911
  name: string;
2912
+ id: string;
2780
2913
  managers?: {
2781
2914
  id: string;
2782
2915
  lastName: string;
2783
2916
  firstName: string;
2784
2917
  }[] | undefined;
2785
2918
  } | null | undefined;
2919
+ deletedAt?: string | null | undefined;
2786
2920
  canImpersonateUsers?: {
2787
2921
  id: string;
2788
2922
  lastName: string;
2789
2923
  firstName: string;
2790
2924
  }[] | undefined;
2791
- deletedAt?: string | null | undefined;
2925
+ dialpadUserId?: string | null | undefined;
2792
2926
  }, {
2793
- status: "ACTIVE" | "INACTIVE";
2794
- id: string;
2795
- updatedAt: string | Date;
2796
- createdAt: string | Date;
2797
2927
  email: string;
2928
+ createdAt: string | Date;
2929
+ updatedAt: string | Date;
2930
+ id: string;
2931
+ status: "ACTIVE" | "INACTIVE";
2798
2932
  lastName: string;
2799
2933
  firstName: string;
2800
2934
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2801
2935
  officeId?: string | null | undefined;
2802
2936
  office?: {
2803
- id: string;
2804
2937
  name: string;
2938
+ id: string;
2805
2939
  managers?: {
2806
2940
  id: string;
2807
2941
  lastName: string;
@@ -2814,12 +2948,13 @@ export declare const callHistoryContract: {
2814
2948
  description?: string | null | undefined;
2815
2949
  isPrimary?: boolean | undefined;
2816
2950
  }[] | undefined;
2951
+ deletedAt?: string | Date | null | undefined;
2817
2952
  canImpersonateUsers?: {
2818
2953
  id: string;
2819
2954
  lastName: string;
2820
2955
  firstName: string;
2821
2956
  }[] | undefined;
2822
- deletedAt?: string | Date | null | undefined;
2957
+ dialpadUserId?: string | null | undefined;
2823
2958
  }>>;
2824
2959
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2825
2960
  assignedBy: z.ZodNullable<z.ZodString>;
@@ -2831,44 +2966,47 @@ export declare const callHistoryContract: {
2831
2966
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2832
2967
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2833
2968
  }, "strip", z.ZodTypeAny, {
2834
- id: string;
2835
2969
  name: string;
2836
- updatedAt: string;
2837
2970
  createdAt: string;
2838
- }, {
2971
+ updatedAt: string;
2839
2972
  id: string;
2973
+ }, {
2840
2974
  name: string;
2841
- updatedAt: string | Date;
2842
2975
  createdAt: string | Date;
2976
+ updatedAt: string | Date;
2977
+ id: string;
2843
2978
  }>>>;
2844
2979
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2845
2980
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2981
+ callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2982
+ id: z.ZodString;
2983
+ dueAt: z.ZodString;
2984
+ originNotes: z.ZodNullable<z.ZodString>;
2985
+ }, "strip", z.ZodTypeAny, {
2986
+ id: string;
2987
+ dueAt: string;
2988
+ originNotes: string | null;
2989
+ }, {
2990
+ id: string;
2991
+ dueAt: string;
2992
+ originNotes: string | null;
2993
+ }>>>;
2846
2994
  }, "strip", z.ZodTypeAny, {
2847
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2848
- id: string;
2849
- updatedAt: string;
2850
2995
  createdAt: string;
2851
- companyId: string | null;
2996
+ updatedAt: string;
2997
+ id: string;
2998
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2852
2999
  agentId: string | null;
2853
3000
  leadId: string;
2854
3001
  assignedAt: string;
2855
3002
  assignedBy: string | null;
2856
- company?: {
2857
- id: string;
2858
- name: string;
2859
- updatedAt: string;
2860
- createdAt: string;
2861
- } | null | undefined;
2862
- lead?: {
2863
- name: string;
2864
- phoneNumber: string;
2865
- } | undefined;
3003
+ companyId: string | null;
2866
3004
  agent?: {
2867
- status: "ACTIVE" | "INACTIVE";
2868
- id: string;
2869
- updatedAt: string;
2870
- createdAt: string;
2871
3005
  email: string;
3006
+ createdAt: string;
3007
+ updatedAt: string;
3008
+ id: string;
3009
+ status: "ACTIVE" | "INACTIVE";
2872
3010
  lastName: string;
2873
3011
  firstName: string;
2874
3012
  phoneNumbers: {
@@ -2880,54 +3018,60 @@ export declare const callHistoryContract: {
2880
3018
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2881
3019
  officeId?: string | null | undefined;
2882
3020
  office?: {
2883
- id: string;
2884
3021
  name: string;
3022
+ id: string;
2885
3023
  managers?: {
2886
3024
  id: string;
2887
3025
  lastName: string;
2888
3026
  firstName: string;
2889
3027
  }[] | undefined;
2890
3028
  } | null | undefined;
3029
+ deletedAt?: string | null | undefined;
2891
3030
  canImpersonateUsers?: {
2892
3031
  id: string;
2893
3032
  lastName: string;
2894
3033
  firstName: string;
2895
3034
  }[] | undefined;
2896
- deletedAt?: string | null | undefined;
3035
+ dialpadUserId?: string | null | undefined;
3036
+ } | undefined;
3037
+ lead?: {
3038
+ name: string;
3039
+ phoneNumber: string;
2897
3040
  } | undefined;
3041
+ company?: {
3042
+ name: string;
3043
+ createdAt: string;
3044
+ updatedAt: string;
3045
+ id: string;
3046
+ } | null | undefined;
3047
+ callback?: {
3048
+ id: string;
3049
+ dueAt: string;
3050
+ originNotes: string | null;
3051
+ } | null | undefined;
2898
3052
  }, {
2899
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2900
- id: string;
2901
- updatedAt: string | Date;
2902
3053
  createdAt: string | Date;
2903
- companyId: string | null;
3054
+ updatedAt: string | Date;
3055
+ id: string;
3056
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2904
3057
  agentId: string | null;
2905
3058
  leadId: string;
2906
3059
  assignedAt: string | Date;
2907
3060
  assignedBy: string | null;
2908
- company?: {
2909
- id: string;
2910
- name: string;
2911
- updatedAt: string | Date;
2912
- createdAt: string | Date;
2913
- } | null | undefined;
2914
- lead?: {
2915
- name: string;
2916
- phoneNumber: string;
2917
- } | undefined;
3061
+ companyId: string | null;
2918
3062
  agent?: {
2919
- status: "ACTIVE" | "INACTIVE";
2920
- id: string;
2921
- updatedAt: string | Date;
2922
- createdAt: string | Date;
2923
3063
  email: string;
3064
+ createdAt: string | Date;
3065
+ updatedAt: string | Date;
3066
+ id: string;
3067
+ status: "ACTIVE" | "INACTIVE";
2924
3068
  lastName: string;
2925
3069
  firstName: string;
2926
3070
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2927
3071
  officeId?: string | null | undefined;
2928
3072
  office?: {
2929
- id: string;
2930
3073
  name: string;
3074
+ id: string;
2931
3075
  managers?: {
2932
3076
  id: string;
2933
3077
  lastName: string;
@@ -2940,13 +3084,29 @@ export declare const callHistoryContract: {
2940
3084
  description?: string | null | undefined;
2941
3085
  isPrimary?: boolean | undefined;
2942
3086
  }[] | undefined;
3087
+ deletedAt?: string | Date | null | undefined;
2943
3088
  canImpersonateUsers?: {
2944
3089
  id: string;
2945
3090
  lastName: string;
2946
3091
  firstName: string;
2947
3092
  }[] | undefined;
2948
- deletedAt?: string | Date | null | undefined;
3093
+ dialpadUserId?: string | null | undefined;
3094
+ } | undefined;
3095
+ lead?: {
3096
+ name: string;
3097
+ phoneNumber: string;
2949
3098
  } | undefined;
3099
+ company?: {
3100
+ name: string;
3101
+ createdAt: string | Date;
3102
+ updatedAt: string | Date;
3103
+ id: string;
3104
+ } | null | undefined;
3105
+ callback?: {
3106
+ id: string;
3107
+ dueAt: string;
3108
+ originNotes: string | null;
3109
+ } | null | undefined;
2950
3110
  }>>>;
2951
3111
  callType: z.ZodNativeEnum<typeof CallType>;
2952
3112
  leadSource: z.ZodNativeEnum<typeof LeadSource>;
@@ -2956,43 +3116,33 @@ export declare const callHistoryContract: {
2956
3116
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2957
3117
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2958
3118
  }, "strip", z.ZodTypeAny, {
2959
- id: string;
2960
- updatedAt: string;
2961
3119
  createdAt: string;
2962
- assignmentId: string;
3120
+ updatedAt: string;
3121
+ id: string;
2963
3122
  rating: CallRating;
3123
+ notes: string | null;
2964
3124
  callType: CallType;
2965
- leadSource: LeadSource;
3125
+ assignmentId: string;
2966
3126
  ratingWeight: number;
2967
- notes: string | null;
3127
+ leadSource: LeadSource;
2968
3128
  agentId?: string | undefined;
2969
3129
  leadId?: string | undefined;
2970
3130
  assignment?: {
2971
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2972
- id: string;
2973
- updatedAt: string;
2974
3131
  createdAt: string;
2975
- companyId: string | null;
3132
+ updatedAt: string;
3133
+ id: string;
3134
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2976
3135
  agentId: string | null;
2977
3136
  leadId: string;
2978
3137
  assignedAt: string;
2979
3138
  assignedBy: string | null;
2980
- company?: {
2981
- id: string;
2982
- name: string;
2983
- updatedAt: string;
2984
- createdAt: string;
2985
- } | null | undefined;
2986
- lead?: {
2987
- name: string;
2988
- phoneNumber: string;
2989
- } | undefined;
3139
+ companyId: string | null;
2990
3140
  agent?: {
2991
- status: "ACTIVE" | "INACTIVE";
2992
- id: string;
2993
- updatedAt: string;
2994
- createdAt: string;
2995
3141
  email: string;
3142
+ createdAt: string;
3143
+ updatedAt: string;
3144
+ id: string;
3145
+ status: "ACTIVE" | "INACTIVE";
2996
3146
  lastName: string;
2997
3147
  firstName: string;
2998
3148
  phoneNumbers: {
@@ -3004,67 +3154,73 @@ export declare const callHistoryContract: {
3004
3154
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3005
3155
  officeId?: string | null | undefined;
3006
3156
  office?: {
3007
- id: string;
3008
3157
  name: string;
3158
+ id: string;
3009
3159
  managers?: {
3010
3160
  id: string;
3011
3161
  lastName: string;
3012
3162
  firstName: string;
3013
3163
  }[] | undefined;
3014
3164
  } | null | undefined;
3165
+ deletedAt?: string | null | undefined;
3015
3166
  canImpersonateUsers?: {
3016
3167
  id: string;
3017
3168
  lastName: string;
3018
3169
  firstName: string;
3019
3170
  }[] | undefined;
3020
- deletedAt?: string | null | undefined;
3171
+ dialpadUserId?: string | null | undefined;
3172
+ } | undefined;
3173
+ lead?: {
3174
+ name: string;
3175
+ phoneNumber: string;
3021
3176
  } | undefined;
3177
+ company?: {
3178
+ name: string;
3179
+ createdAt: string;
3180
+ updatedAt: string;
3181
+ id: string;
3182
+ } | null | undefined;
3183
+ callback?: {
3184
+ id: string;
3185
+ dueAt: string;
3186
+ originNotes: string | null;
3187
+ } | null | undefined;
3022
3188
  } | null | undefined;
3023
3189
  }, {
3024
- id: string;
3025
- updatedAt: string | Date;
3026
3190
  createdAt: string | Date;
3027
- assignmentId: string;
3191
+ updatedAt: string | Date;
3192
+ id: string;
3028
3193
  rating: CallRating;
3194
+ notes: string | null;
3029
3195
  callType: CallType;
3030
- leadSource: LeadSource;
3196
+ assignmentId: string;
3031
3197
  ratingWeight: number;
3032
- notes: string | null;
3198
+ leadSource: LeadSource;
3033
3199
  agentId?: string | undefined;
3034
3200
  leadId?: string | undefined;
3035
3201
  assignment?: {
3036
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3037
- id: string;
3038
- updatedAt: string | Date;
3039
3202
  createdAt: string | Date;
3040
- companyId: string | null;
3203
+ updatedAt: string | Date;
3204
+ id: string;
3205
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3041
3206
  agentId: string | null;
3042
3207
  leadId: string;
3043
3208
  assignedAt: string | Date;
3044
3209
  assignedBy: string | null;
3045
- company?: {
3046
- id: string;
3047
- name: string;
3048
- updatedAt: string | Date;
3049
- createdAt: string | Date;
3050
- } | null | undefined;
3051
- lead?: {
3052
- name: string;
3053
- phoneNumber: string;
3054
- } | undefined;
3210
+ companyId: string | null;
3055
3211
  agent?: {
3056
- status: "ACTIVE" | "INACTIVE";
3057
- id: string;
3058
- updatedAt: string | Date;
3059
- createdAt: string | Date;
3060
3212
  email: string;
3213
+ createdAt: string | Date;
3214
+ updatedAt: string | Date;
3215
+ id: string;
3216
+ status: "ACTIVE" | "INACTIVE";
3061
3217
  lastName: string;
3062
3218
  firstName: string;
3063
3219
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3064
3220
  officeId?: string | null | undefined;
3065
3221
  office?: {
3066
- id: string;
3067
3222
  name: string;
3223
+ id: string;
3068
3224
  managers?: {
3069
3225
  id: string;
3070
3226
  lastName: string;
@@ -3077,13 +3233,29 @@ export declare const callHistoryContract: {
3077
3233
  description?: string | null | undefined;
3078
3234
  isPrimary?: boolean | undefined;
3079
3235
  }[] | undefined;
3236
+ deletedAt?: string | Date | null | undefined;
3080
3237
  canImpersonateUsers?: {
3081
3238
  id: string;
3082
3239
  lastName: string;
3083
3240
  firstName: string;
3084
3241
  }[] | undefined;
3085
- deletedAt?: string | Date | null | undefined;
3242
+ dialpadUserId?: string | null | undefined;
3243
+ } | undefined;
3244
+ lead?: {
3245
+ name: string;
3246
+ phoneNumber: string;
3086
3247
  } | undefined;
3248
+ company?: {
3249
+ name: string;
3250
+ createdAt: string | Date;
3251
+ updatedAt: string | Date;
3252
+ id: string;
3253
+ } | null | undefined;
3254
+ callback?: {
3255
+ id: string;
3256
+ dueAt: string;
3257
+ originNotes: string | null;
3258
+ } | null | undefined;
3087
3259
  } | null | undefined;
3088
3260
  }>;
3089
3261
  404: z.ZodObject<{
@@ -3095,17 +3267,17 @@ export declare const callHistoryContract: {
3095
3267
  path: z.ZodString;
3096
3268
  correlationId: z.ZodOptional<z.ZodString>;
3097
3269
  }, "strip", z.ZodTypeAny, {
3098
- message: string;
3099
3270
  code: string;
3100
3271
  path: string;
3272
+ message: string;
3101
3273
  statusCode: number;
3102
3274
  timestamp: string;
3103
3275
  details?: unknown;
3104
3276
  correlationId?: string | undefined;
3105
3277
  }, {
3106
- message: string;
3107
3278
  code: string;
3108
3279
  path: string;
3280
+ message: string;
3109
3281
  statusCode: number;
3110
3282
  timestamp: string;
3111
3283
  details?: unknown;
@@ -3138,7 +3310,7 @@ export declare const callHistoryContract: {
3138
3310
  }>;
3139
3311
  path: "/v2/call-history/:id";
3140
3312
  responses: {
3141
- 400: z.ZodObject<{
3313
+ 401: z.ZodObject<{
3142
3314
  statusCode: z.ZodNumber;
3143
3315
  message: z.ZodString;
3144
3316
  code: z.ZodString;
@@ -3147,23 +3319,23 @@ export declare const callHistoryContract: {
3147
3319
  path: z.ZodString;
3148
3320
  correlationId: z.ZodOptional<z.ZodString>;
3149
3321
  }, "strip", z.ZodTypeAny, {
3150
- message: string;
3151
3322
  code: string;
3152
3323
  path: string;
3324
+ message: string;
3153
3325
  statusCode: number;
3154
3326
  timestamp: string;
3155
3327
  details?: unknown;
3156
3328
  correlationId?: string | undefined;
3157
3329
  }, {
3158
- message: string;
3159
3330
  code: string;
3160
3331
  path: string;
3332
+ message: string;
3161
3333
  statusCode: number;
3162
3334
  timestamp: string;
3163
3335
  details?: unknown;
3164
3336
  correlationId?: string | undefined;
3165
3337
  }>;
3166
- 401: z.ZodObject<{
3338
+ 400: z.ZodObject<{
3167
3339
  statusCode: z.ZodNumber;
3168
3340
  message: z.ZodString;
3169
3341
  code: z.ZodString;
@@ -3172,17 +3344,17 @@ export declare const callHistoryContract: {
3172
3344
  path: z.ZodString;
3173
3345
  correlationId: z.ZodOptional<z.ZodString>;
3174
3346
  }, "strip", z.ZodTypeAny, {
3175
- message: string;
3176
3347
  code: string;
3177
3348
  path: string;
3349
+ message: string;
3178
3350
  statusCode: number;
3179
3351
  timestamp: string;
3180
3352
  details?: unknown;
3181
3353
  correlationId?: string | undefined;
3182
3354
  }, {
3183
- message: string;
3184
3355
  code: string;
3185
3356
  path: string;
3357
+ message: string;
3186
3358
  statusCode: number;
3187
3359
  timestamp: string;
3188
3360
  details?: unknown;
@@ -3197,17 +3369,17 @@ export declare const callHistoryContract: {
3197
3369
  path: z.ZodString;
3198
3370
  correlationId: z.ZodOptional<z.ZodString>;
3199
3371
  }, "strip", z.ZodTypeAny, {
3200
- message: string;
3201
3372
  code: string;
3202
3373
  path: string;
3374
+ message: string;
3203
3375
  statusCode: number;
3204
3376
  timestamp: string;
3205
3377
  details?: unknown;
3206
3378
  correlationId?: string | undefined;
3207
3379
  }, {
3208
- message: string;
3209
3380
  code: string;
3210
3381
  path: string;
3382
+ message: string;
3211
3383
  statusCode: number;
3212
3384
  timestamp: string;
3213
3385
  details?: unknown;
@@ -3222,17 +3394,17 @@ export declare const callHistoryContract: {
3222
3394
  path: z.ZodString;
3223
3395
  correlationId: z.ZodOptional<z.ZodString>;
3224
3396
  }, "strip", z.ZodTypeAny, {
3225
- message: string;
3226
3397
  code: string;
3227
3398
  path: string;
3399
+ message: string;
3228
3400
  statusCode: number;
3229
3401
  timestamp: string;
3230
3402
  details?: unknown;
3231
3403
  correlationId?: string | undefined;
3232
3404
  }, {
3233
- message: string;
3234
3405
  code: string;
3235
3406
  path: string;
3407
+ message: string;
3236
3408
  statusCode: number;
3237
3409
  timestamp: string;
3238
3410
  details?: unknown;
@@ -3297,16 +3469,16 @@ export declare const callHistoryContract: {
3297
3469
  firstName: string;
3298
3470
  }>, "many">>;
3299
3471
  }, "strip", z.ZodTypeAny, {
3300
- id: string;
3301
3472
  name: string;
3473
+ id: string;
3302
3474
  managers?: {
3303
3475
  id: string;
3304
3476
  lastName: string;
3305
3477
  firstName: string;
3306
3478
  }[] | undefined;
3307
3479
  }, {
3308
- id: string;
3309
3480
  name: string;
3481
+ id: string;
3310
3482
  managers?: {
3311
3483
  id: string;
3312
3484
  lastName: string;
@@ -3327,15 +3499,16 @@ export declare const callHistoryContract: {
3327
3499
  firstName: string;
3328
3500
  }>, "many">>;
3329
3501
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
3502
+ dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
3330
3503
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3331
3504
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3332
3505
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
3333
3506
  }, "strip", z.ZodTypeAny, {
3334
- status: "ACTIVE" | "INACTIVE";
3335
- id: string;
3336
- updatedAt: string;
3337
- createdAt: string;
3338
3507
  email: string;
3508
+ createdAt: string;
3509
+ updatedAt: string;
3510
+ id: string;
3511
+ status: "ACTIVE" | "INACTIVE";
3339
3512
  lastName: string;
3340
3513
  firstName: string;
3341
3514
  phoneNumbers: {
@@ -3347,33 +3520,34 @@ export declare const callHistoryContract: {
3347
3520
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3348
3521
  officeId?: string | null | undefined;
3349
3522
  office?: {
3350
- id: string;
3351
3523
  name: string;
3524
+ id: string;
3352
3525
  managers?: {
3353
3526
  id: string;
3354
3527
  lastName: string;
3355
3528
  firstName: string;
3356
3529
  }[] | undefined;
3357
3530
  } | null | undefined;
3531
+ deletedAt?: string | null | undefined;
3358
3532
  canImpersonateUsers?: {
3359
3533
  id: string;
3360
3534
  lastName: string;
3361
3535
  firstName: string;
3362
3536
  }[] | undefined;
3363
- deletedAt?: string | null | undefined;
3537
+ dialpadUserId?: string | null | undefined;
3364
3538
  }, {
3365
- status: "ACTIVE" | "INACTIVE";
3366
- id: string;
3367
- updatedAt: string | Date;
3368
- createdAt: string | Date;
3369
3539
  email: string;
3540
+ createdAt: string | Date;
3541
+ updatedAt: string | Date;
3542
+ id: string;
3543
+ status: "ACTIVE" | "INACTIVE";
3370
3544
  lastName: string;
3371
3545
  firstName: string;
3372
3546
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3373
3547
  officeId?: string | null | undefined;
3374
3548
  office?: {
3375
- id: string;
3376
3549
  name: string;
3550
+ id: string;
3377
3551
  managers?: {
3378
3552
  id: string;
3379
3553
  lastName: string;
@@ -3386,12 +3560,13 @@ export declare const callHistoryContract: {
3386
3560
  description?: string | null | undefined;
3387
3561
  isPrimary?: boolean | undefined;
3388
3562
  }[] | undefined;
3563
+ deletedAt?: string | Date | null | undefined;
3389
3564
  canImpersonateUsers?: {
3390
3565
  id: string;
3391
3566
  lastName: string;
3392
3567
  firstName: string;
3393
3568
  }[] | undefined;
3394
- deletedAt?: string | Date | null | undefined;
3569
+ dialpadUserId?: string | null | undefined;
3395
3570
  }>>;
3396
3571
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3397
3572
  assignedBy: z.ZodNullable<z.ZodString>;
@@ -3403,44 +3578,47 @@ export declare const callHistoryContract: {
3403
3578
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3404
3579
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3405
3580
  }, "strip", z.ZodTypeAny, {
3406
- id: string;
3407
3581
  name: string;
3408
- updatedAt: string;
3409
3582
  createdAt: string;
3410
- }, {
3583
+ updatedAt: string;
3411
3584
  id: string;
3585
+ }, {
3412
3586
  name: string;
3413
- updatedAt: string | Date;
3414
3587
  createdAt: string | Date;
3588
+ updatedAt: string | Date;
3589
+ id: string;
3415
3590
  }>>>;
3416
3591
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3417
3592
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3593
+ callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3594
+ id: z.ZodString;
3595
+ dueAt: z.ZodString;
3596
+ originNotes: z.ZodNullable<z.ZodString>;
3597
+ }, "strip", z.ZodTypeAny, {
3598
+ id: string;
3599
+ dueAt: string;
3600
+ originNotes: string | null;
3601
+ }, {
3602
+ id: string;
3603
+ dueAt: string;
3604
+ originNotes: string | null;
3605
+ }>>>;
3418
3606
  }, "strip", z.ZodTypeAny, {
3419
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3420
- id: string;
3421
- updatedAt: string;
3422
3607
  createdAt: string;
3423
- companyId: string | null;
3608
+ updatedAt: string;
3609
+ id: string;
3610
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3424
3611
  agentId: string | null;
3425
3612
  leadId: string;
3426
3613
  assignedAt: string;
3427
3614
  assignedBy: string | null;
3428
- company?: {
3429
- id: string;
3430
- name: string;
3431
- updatedAt: string;
3432
- createdAt: string;
3433
- } | null | undefined;
3434
- lead?: {
3435
- name: string;
3436
- phoneNumber: string;
3437
- } | undefined;
3615
+ companyId: string | null;
3438
3616
  agent?: {
3439
- status: "ACTIVE" | "INACTIVE";
3440
- id: string;
3441
- updatedAt: string;
3442
- createdAt: string;
3443
3617
  email: string;
3618
+ createdAt: string;
3619
+ updatedAt: string;
3620
+ id: string;
3621
+ status: "ACTIVE" | "INACTIVE";
3444
3622
  lastName: string;
3445
3623
  firstName: string;
3446
3624
  phoneNumbers: {
@@ -3452,54 +3630,60 @@ export declare const callHistoryContract: {
3452
3630
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3453
3631
  officeId?: string | null | undefined;
3454
3632
  office?: {
3455
- id: string;
3456
3633
  name: string;
3634
+ id: string;
3457
3635
  managers?: {
3458
3636
  id: string;
3459
3637
  lastName: string;
3460
3638
  firstName: string;
3461
3639
  }[] | undefined;
3462
3640
  } | null | undefined;
3641
+ deletedAt?: string | null | undefined;
3463
3642
  canImpersonateUsers?: {
3464
3643
  id: string;
3465
3644
  lastName: string;
3466
3645
  firstName: string;
3467
3646
  }[] | undefined;
3468
- deletedAt?: string | null | undefined;
3647
+ dialpadUserId?: string | null | undefined;
3648
+ } | undefined;
3649
+ lead?: {
3650
+ name: string;
3651
+ phoneNumber: string;
3469
3652
  } | undefined;
3653
+ company?: {
3654
+ name: string;
3655
+ createdAt: string;
3656
+ updatedAt: string;
3657
+ id: string;
3658
+ } | null | undefined;
3659
+ callback?: {
3660
+ id: string;
3661
+ dueAt: string;
3662
+ originNotes: string | null;
3663
+ } | null | undefined;
3470
3664
  }, {
3471
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3472
- id: string;
3473
- updatedAt: string | Date;
3474
3665
  createdAt: string | Date;
3475
- companyId: string | null;
3666
+ updatedAt: string | Date;
3667
+ id: string;
3668
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3476
3669
  agentId: string | null;
3477
3670
  leadId: string;
3478
3671
  assignedAt: string | Date;
3479
3672
  assignedBy: string | null;
3480
- company?: {
3481
- id: string;
3482
- name: string;
3483
- updatedAt: string | Date;
3484
- createdAt: string | Date;
3485
- } | null | undefined;
3486
- lead?: {
3487
- name: string;
3488
- phoneNumber: string;
3489
- } | undefined;
3673
+ companyId: string | null;
3490
3674
  agent?: {
3491
- status: "ACTIVE" | "INACTIVE";
3492
- id: string;
3493
- updatedAt: string | Date;
3494
- createdAt: string | Date;
3495
3675
  email: string;
3676
+ createdAt: string | Date;
3677
+ updatedAt: string | Date;
3678
+ id: string;
3679
+ status: "ACTIVE" | "INACTIVE";
3496
3680
  lastName: string;
3497
3681
  firstName: string;
3498
3682
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3499
3683
  officeId?: string | null | undefined;
3500
3684
  office?: {
3501
- id: string;
3502
3685
  name: string;
3686
+ id: string;
3503
3687
  managers?: {
3504
3688
  id: string;
3505
3689
  lastName: string;
@@ -3512,13 +3696,29 @@ export declare const callHistoryContract: {
3512
3696
  description?: string | null | undefined;
3513
3697
  isPrimary?: boolean | undefined;
3514
3698
  }[] | undefined;
3699
+ deletedAt?: string | Date | null | undefined;
3515
3700
  canImpersonateUsers?: {
3516
3701
  id: string;
3517
3702
  lastName: string;
3518
3703
  firstName: string;
3519
3704
  }[] | undefined;
3520
- deletedAt?: string | Date | null | undefined;
3705
+ dialpadUserId?: string | null | undefined;
3706
+ } | undefined;
3707
+ lead?: {
3708
+ name: string;
3709
+ phoneNumber: string;
3521
3710
  } | undefined;
3711
+ company?: {
3712
+ name: string;
3713
+ createdAt: string | Date;
3714
+ updatedAt: string | Date;
3715
+ id: string;
3716
+ } | null | undefined;
3717
+ callback?: {
3718
+ id: string;
3719
+ dueAt: string;
3720
+ originNotes: string | null;
3721
+ } | null | undefined;
3522
3722
  }>>>;
3523
3723
  callType: z.ZodNativeEnum<typeof CallType>;
3524
3724
  leadSource: z.ZodNativeEnum<typeof LeadSource>;
@@ -3528,43 +3728,33 @@ export declare const callHistoryContract: {
3528
3728
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3529
3729
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3530
3730
  }, "strip", z.ZodTypeAny, {
3531
- id: string;
3532
- updatedAt: string;
3533
3731
  createdAt: string;
3534
- assignmentId: string;
3732
+ updatedAt: string;
3733
+ id: string;
3535
3734
  rating: CallRating;
3735
+ notes: string | null;
3536
3736
  callType: CallType;
3537
- leadSource: LeadSource;
3737
+ assignmentId: string;
3538
3738
  ratingWeight: number;
3539
- notes: string | null;
3739
+ leadSource: LeadSource;
3540
3740
  agentId?: string | undefined;
3541
3741
  leadId?: string | undefined;
3542
3742
  assignment?: {
3543
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3544
- id: string;
3545
- updatedAt: string;
3546
3743
  createdAt: string;
3547
- companyId: string | null;
3744
+ updatedAt: string;
3745
+ id: string;
3746
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3548
3747
  agentId: string | null;
3549
3748
  leadId: string;
3550
3749
  assignedAt: string;
3551
3750
  assignedBy: string | null;
3552
- company?: {
3553
- id: string;
3554
- name: string;
3555
- updatedAt: string;
3556
- createdAt: string;
3557
- } | null | undefined;
3558
- lead?: {
3559
- name: string;
3560
- phoneNumber: string;
3561
- } | undefined;
3751
+ companyId: string | null;
3562
3752
  agent?: {
3563
- status: "ACTIVE" | "INACTIVE";
3564
- id: string;
3565
- updatedAt: string;
3566
- createdAt: string;
3567
3753
  email: string;
3754
+ createdAt: string;
3755
+ updatedAt: string;
3756
+ id: string;
3757
+ status: "ACTIVE" | "INACTIVE";
3568
3758
  lastName: string;
3569
3759
  firstName: string;
3570
3760
  phoneNumbers: {
@@ -3576,67 +3766,73 @@ export declare const callHistoryContract: {
3576
3766
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3577
3767
  officeId?: string | null | undefined;
3578
3768
  office?: {
3579
- id: string;
3580
3769
  name: string;
3770
+ id: string;
3581
3771
  managers?: {
3582
3772
  id: string;
3583
3773
  lastName: string;
3584
3774
  firstName: string;
3585
3775
  }[] | undefined;
3586
3776
  } | null | undefined;
3777
+ deletedAt?: string | null | undefined;
3587
3778
  canImpersonateUsers?: {
3588
3779
  id: string;
3589
3780
  lastName: string;
3590
3781
  firstName: string;
3591
3782
  }[] | undefined;
3592
- deletedAt?: string | null | undefined;
3783
+ dialpadUserId?: string | null | undefined;
3593
3784
  } | undefined;
3785
+ lead?: {
3786
+ name: string;
3787
+ phoneNumber: string;
3788
+ } | undefined;
3789
+ company?: {
3790
+ name: string;
3791
+ createdAt: string;
3792
+ updatedAt: string;
3793
+ id: string;
3794
+ } | null | undefined;
3795
+ callback?: {
3796
+ id: string;
3797
+ dueAt: string;
3798
+ originNotes: string | null;
3799
+ } | null | undefined;
3594
3800
  } | null | undefined;
3595
3801
  }, {
3596
- id: string;
3597
- updatedAt: string | Date;
3598
3802
  createdAt: string | Date;
3599
- assignmentId: string;
3803
+ updatedAt: string | Date;
3804
+ id: string;
3600
3805
  rating: CallRating;
3806
+ notes: string | null;
3601
3807
  callType: CallType;
3602
- leadSource: LeadSource;
3808
+ assignmentId: string;
3603
3809
  ratingWeight: number;
3604
- notes: string | null;
3810
+ leadSource: LeadSource;
3605
3811
  agentId?: string | undefined;
3606
3812
  leadId?: string | undefined;
3607
3813
  assignment?: {
3608
- status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3609
- id: string;
3610
- updatedAt: string | Date;
3611
3814
  createdAt: string | Date;
3612
- companyId: string | null;
3815
+ updatedAt: string | Date;
3816
+ id: string;
3817
+ status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3613
3818
  agentId: string | null;
3614
3819
  leadId: string;
3615
3820
  assignedAt: string | Date;
3616
3821
  assignedBy: string | null;
3617
- company?: {
3618
- id: string;
3619
- name: string;
3620
- updatedAt: string | Date;
3621
- createdAt: string | Date;
3622
- } | null | undefined;
3623
- lead?: {
3624
- name: string;
3625
- phoneNumber: string;
3626
- } | undefined;
3822
+ companyId: string | null;
3627
3823
  agent?: {
3628
- status: "ACTIVE" | "INACTIVE";
3629
- id: string;
3630
- updatedAt: string | Date;
3631
- createdAt: string | Date;
3632
3824
  email: string;
3825
+ createdAt: string | Date;
3826
+ updatedAt: string | Date;
3827
+ id: string;
3828
+ status: "ACTIVE" | "INACTIVE";
3633
3829
  lastName: string;
3634
3830
  firstName: string;
3635
3831
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3636
3832
  officeId?: string | null | undefined;
3637
3833
  office?: {
3638
- id: string;
3639
3834
  name: string;
3835
+ id: string;
3640
3836
  managers?: {
3641
3837
  id: string;
3642
3838
  lastName: string;
@@ -3649,13 +3845,29 @@ export declare const callHistoryContract: {
3649
3845
  description?: string | null | undefined;
3650
3846
  isPrimary?: boolean | undefined;
3651
3847
  }[] | undefined;
3848
+ deletedAt?: string | Date | null | undefined;
3652
3849
  canImpersonateUsers?: {
3653
3850
  id: string;
3654
3851
  lastName: string;
3655
3852
  firstName: string;
3656
3853
  }[] | undefined;
3657
- deletedAt?: string | Date | null | undefined;
3854
+ dialpadUserId?: string | null | undefined;
3855
+ } | undefined;
3856
+ lead?: {
3857
+ name: string;
3858
+ phoneNumber: string;
3658
3859
  } | undefined;
3860
+ company?: {
3861
+ name: string;
3862
+ createdAt: string | Date;
3863
+ updatedAt: string | Date;
3864
+ id: string;
3865
+ } | null | undefined;
3866
+ callback?: {
3867
+ id: string;
3868
+ dueAt: string;
3869
+ originNotes: string | null;
3870
+ } | null | undefined;
3659
3871
  } | null | undefined;
3660
3872
  }>;
3661
3873
  404: z.ZodObject<{
@@ -3667,17 +3879,17 @@ export declare const callHistoryContract: {
3667
3879
  path: z.ZodString;
3668
3880
  correlationId: z.ZodOptional<z.ZodString>;
3669
3881
  }, "strip", z.ZodTypeAny, {
3670
- message: string;
3671
3882
  code: string;
3672
3883
  path: string;
3884
+ message: string;
3673
3885
  statusCode: number;
3674
3886
  timestamp: string;
3675
3887
  details?: unknown;
3676
3888
  correlationId?: string | undefined;
3677
3889
  }, {
3678
- message: string;
3679
3890
  code: string;
3680
3891
  path: string;
3892
+ message: string;
3681
3893
  statusCode: number;
3682
3894
  timestamp: string;
3683
3895
  details?: unknown;
@@ -3693,7 +3905,7 @@ export declare const callHistoryContract: {
3693
3905
  method: "GET";
3694
3906
  path: "/v2/call-history/stats/agent";
3695
3907
  responses: {
3696
- 400: z.ZodObject<{
3908
+ 401: z.ZodObject<{
3697
3909
  statusCode: z.ZodNumber;
3698
3910
  message: z.ZodString;
3699
3911
  code: z.ZodString;
@@ -3702,23 +3914,23 @@ export declare const callHistoryContract: {
3702
3914
  path: z.ZodString;
3703
3915
  correlationId: z.ZodOptional<z.ZodString>;
3704
3916
  }, "strip", z.ZodTypeAny, {
3705
- message: string;
3706
3917
  code: string;
3707
3918
  path: string;
3919
+ message: string;
3708
3920
  statusCode: number;
3709
3921
  timestamp: string;
3710
3922
  details?: unknown;
3711
3923
  correlationId?: string | undefined;
3712
3924
  }, {
3713
- message: string;
3714
3925
  code: string;
3715
3926
  path: string;
3927
+ message: string;
3716
3928
  statusCode: number;
3717
3929
  timestamp: string;
3718
3930
  details?: unknown;
3719
3931
  correlationId?: string | undefined;
3720
3932
  }>;
3721
- 401: z.ZodObject<{
3933
+ 400: z.ZodObject<{
3722
3934
  statusCode: z.ZodNumber;
3723
3935
  message: z.ZodString;
3724
3936
  code: z.ZodString;
@@ -3727,17 +3939,17 @@ export declare const callHistoryContract: {
3727
3939
  path: z.ZodString;
3728
3940
  correlationId: z.ZodOptional<z.ZodString>;
3729
3941
  }, "strip", z.ZodTypeAny, {
3730
- message: string;
3731
3942
  code: string;
3732
3943
  path: string;
3944
+ message: string;
3733
3945
  statusCode: number;
3734
3946
  timestamp: string;
3735
3947
  details?: unknown;
3736
3948
  correlationId?: string | undefined;
3737
3949
  }, {
3738
- message: string;
3739
3950
  code: string;
3740
3951
  path: string;
3952
+ message: string;
3741
3953
  statusCode: number;
3742
3954
  timestamp: string;
3743
3955
  details?: unknown;
@@ -3752,17 +3964,17 @@ export declare const callHistoryContract: {
3752
3964
  path: z.ZodString;
3753
3965
  correlationId: z.ZodOptional<z.ZodString>;
3754
3966
  }, "strip", z.ZodTypeAny, {
3755
- message: string;
3756
3967
  code: string;
3757
3968
  path: string;
3969
+ message: string;
3758
3970
  statusCode: number;
3759
3971
  timestamp: string;
3760
3972
  details?: unknown;
3761
3973
  correlationId?: string | undefined;
3762
3974
  }, {
3763
- message: string;
3764
3975
  code: string;
3765
3976
  path: string;
3977
+ message: string;
3766
3978
  statusCode: number;
3767
3979
  timestamp: string;
3768
3980
  details?: unknown;
@@ -3777,17 +3989,17 @@ export declare const callHistoryContract: {
3777
3989
  path: z.ZodString;
3778
3990
  correlationId: z.ZodOptional<z.ZodString>;
3779
3991
  }, "strip", z.ZodTypeAny, {
3780
- message: string;
3781
3992
  code: string;
3782
3993
  path: string;
3994
+ message: string;
3783
3995
  statusCode: number;
3784
3996
  timestamp: string;
3785
3997
  details?: unknown;
3786
3998
  correlationId?: string | undefined;
3787
3999
  }, {
3788
- message: string;
3789
4000
  code: string;
3790
4001
  path: string;
4002
+ message: string;
3791
4003
  statusCode: number;
3792
4004
  timestamp: string;
3793
4005
  details?: unknown;