@dakkitor/api-contracts 1.9.1 → 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.
- package/dist/abilities/abilities.contract.d.ts +28 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +31 -1
- package/dist/abilities/abilities.contract.spec.js +52 -3
- package/dist/abilities/admin-dashboard.abilities.test.js +1 -0
- package/dist/abilities/automatic-caller.abilities.json +1 -0
- package/dist/abilities/first-agent.abilities.json +14 -0
- package/dist/abilities/interconnection.abilities.json +17 -1
- package/dist/abilities/office-manager.abilities.json +4 -0
- package/dist/abilities/second-agent.abilities.json +32 -1
- package/dist/abilities/worker-curator.abilities.json +17 -1
- package/dist/actives/actives.contract.d.ts +7200 -6919
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +137 -137
- package/dist/auth/auth.contract.d.ts +85 -85
- package/dist/bookings/backdate-guard.spec.js +24 -32
- package/dist/bookings/bookings.contract.d.ts +10542 -10116
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +2 -16
- package/dist/call-history/call-history.contract.d.ts +315 -140
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +39 -6
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +6847 -1872
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.js +304 -16
- package/dist/candidate-calling/candidate-calling.contract.spec.js +164 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts +10 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.js +33 -0
- package/dist/client-contacts/client-contacts.contract.d.ts +622 -622
- package/dist/clients/clients.contract.d.ts +289 -289
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +601 -601
- package/dist/collaborations/collaborations.contract.d.ts +538 -538
- package/dist/common/callback-slots.d.ts +4 -0
- package/dist/common/callback-slots.d.ts.map +1 -0
- package/dist/common/callback-slots.js +20 -0
- package/dist/common/common-schemas.d.ts +10 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +6 -0
- package/dist/companies/companies.contract.d.ts +120 -120
- package/dist/crews/crews.contract.d.ts +278 -278
- package/dist/cron-executions/cron-executions.contract.d.ts +238 -238
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2154 -1296
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +36 -3
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +300 -300
- package/dist/curated-worker-leads/contact-history.spec.js +86 -0
- package/dist/curated-worker-leads/job-candidate-cards.spec.js +19 -0
- package/dist/curated-worker-leads/job-candidates.spec.js +179 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +8598 -2519
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +126 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +110 -110
- package/dist/curated-workers/curated-workers.contract.d.ts +1213 -1131
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts +2 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts.map +1 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.js +160 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +1278 -535
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +46 -1
- package/dist/dashboards/dashboard.contract.d.ts +8 -8
- package/dist/document-intake/document-intake.contract.d.ts +1145 -1145
- package/dist/export-jobs/export-jobs.contract.d.ts +663 -663
- package/dist/exports-events/exports-events.schemas.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/jobs/jobs.contract.d.ts +5586 -3381
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +95 -2
- package/dist/jobs/jobs.contract.spec.js +231 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +123 -123
- package/dist/lead-assignments/lead-assignments.contract.d.ts +1897 -122
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.js +102 -2
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts +2 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts.map +1 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.js +51 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +103 -103
- package/dist/leads/leads.contract.d.ts +210 -210
- package/dist/locations/location-enrichment.contract.spec.d.ts +2 -0
- package/dist/locations/location-enrichment.contract.spec.d.ts.map +1 -0
- package/dist/locations/location-enrichment.contract.spec.js +50 -0
- package/dist/locations/locations.contract.d.ts +132 -98
- package/dist/locations/locations.contract.d.ts.map +1 -1
- package/dist/locations/locations.contract.js +10 -0
- package/dist/notifications/notifications.contract.d.ts +512 -40
- package/dist/notifications/notifications.contract.d.ts.map +1 -1
- package/dist/notifications/notifications.contract.js +36 -2
- package/dist/notifications/notifications.contract.spec.d.ts +2 -0
- package/dist/notifications/notifications.contract.spec.d.ts.map +1 -0
- package/dist/notifications/notifications.contract.spec.js +39 -0
- package/dist/own-research/own-research.contract.d.ts +196 -130
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/proofs/proofs.contract.d.ts +356 -356
- package/dist/proofs/proofs.dtos.d.ts +148 -148
- package/dist/realtime/job-call-priority-updated.d.ts +18 -0
- package/dist/realtime/job-call-priority-updated.d.ts.map +1 -0
- package/dist/realtime/job-call-priority-updated.js +17 -0
- package/dist/shared/summary-schemas.d.ts +36 -27
- package/dist/shared/summary-schemas.d.ts.map +1 -1
- package/dist/shared/summary-schemas.js +7 -0
- package/dist/sheets-sync/sheets-sync.contract.d.ts +683 -683
- package/dist/user-access-grants/user-access-grants.contract.d.ts +55 -55
- package/dist/users/users.contract.d.ts +236 -236
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +69 -69
- package/dist/workers/workers.contract.d.ts +2620 -2420
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { CALLBACK_TIME_SLOTS } from '../common/callback-slots';
|
|
2
3
|
export declare enum LeadAssignmentStatus {
|
|
3
4
|
ACTIVE = "ACTIVE",
|
|
4
5
|
COMPLETED = "COMPLETED",
|
|
@@ -128,13 +129,13 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
128
129
|
firstName: string;
|
|
129
130
|
}[] | undefined;
|
|
130
131
|
} | null | undefined;
|
|
132
|
+
deletedAt?: string | null | undefined;
|
|
131
133
|
canImpersonateUsers?: {
|
|
132
134
|
id: string;
|
|
133
135
|
lastName: string;
|
|
134
136
|
firstName: string;
|
|
135
137
|
}[] | undefined;
|
|
136
138
|
dialpadUserId?: string | null | undefined;
|
|
137
|
-
deletedAt?: string | null | undefined;
|
|
138
139
|
}, {
|
|
139
140
|
email: string;
|
|
140
141
|
createdAt: string | Date;
|
|
@@ -160,13 +161,13 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
160
161
|
description?: string | null | undefined;
|
|
161
162
|
isPrimary?: boolean | undefined;
|
|
162
163
|
}[] | undefined;
|
|
164
|
+
deletedAt?: string | Date | null | undefined;
|
|
163
165
|
canImpersonateUsers?: {
|
|
164
166
|
id: string;
|
|
165
167
|
lastName: string;
|
|
166
168
|
firstName: string;
|
|
167
169
|
}[] | undefined;
|
|
168
170
|
dialpadUserId?: string | null | undefined;
|
|
169
|
-
deletedAt?: string | Date | null | undefined;
|
|
170
171
|
}>>;
|
|
171
172
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
172
173
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -190,6 +191,19 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
190
191
|
}>>>;
|
|
191
192
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
192
193
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
194
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
dueAt: z.ZodString;
|
|
197
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
|
199
|
+
id: string;
|
|
200
|
+
dueAt: string;
|
|
201
|
+
originNotes: string | null;
|
|
202
|
+
}, {
|
|
203
|
+
id: string;
|
|
204
|
+
dueAt: string;
|
|
205
|
+
originNotes: string | null;
|
|
206
|
+
}>>>;
|
|
193
207
|
}, "strip", z.ZodTypeAny, {
|
|
194
208
|
createdAt: string;
|
|
195
209
|
updatedAt: string;
|
|
@@ -225,13 +239,13 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
225
239
|
firstName: string;
|
|
226
240
|
}[] | undefined;
|
|
227
241
|
} | null | undefined;
|
|
242
|
+
deletedAt?: string | null | undefined;
|
|
228
243
|
canImpersonateUsers?: {
|
|
229
244
|
id: string;
|
|
230
245
|
lastName: string;
|
|
231
246
|
firstName: string;
|
|
232
247
|
}[] | undefined;
|
|
233
248
|
dialpadUserId?: string | null | undefined;
|
|
234
|
-
deletedAt?: string | null | undefined;
|
|
235
249
|
} | undefined;
|
|
236
250
|
lead?: {
|
|
237
251
|
name: string;
|
|
@@ -243,6 +257,11 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
243
257
|
updatedAt: string;
|
|
244
258
|
id: string;
|
|
245
259
|
} | null | undefined;
|
|
260
|
+
callback?: {
|
|
261
|
+
id: string;
|
|
262
|
+
dueAt: string;
|
|
263
|
+
originNotes: string | null;
|
|
264
|
+
} | null | undefined;
|
|
246
265
|
}, {
|
|
247
266
|
createdAt: string | Date;
|
|
248
267
|
updatedAt: string | Date;
|
|
@@ -278,13 +297,13 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
278
297
|
description?: string | null | undefined;
|
|
279
298
|
isPrimary?: boolean | undefined;
|
|
280
299
|
}[] | undefined;
|
|
300
|
+
deletedAt?: string | Date | null | undefined;
|
|
281
301
|
canImpersonateUsers?: {
|
|
282
302
|
id: string;
|
|
283
303
|
lastName: string;
|
|
284
304
|
firstName: string;
|
|
285
305
|
}[] | undefined;
|
|
286
306
|
dialpadUserId?: string | null | undefined;
|
|
287
|
-
deletedAt?: string | Date | null | undefined;
|
|
288
307
|
} | undefined;
|
|
289
308
|
lead?: {
|
|
290
309
|
name: string;
|
|
@@ -296,16 +315,60 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
296
315
|
updatedAt: string | Date;
|
|
297
316
|
id: string;
|
|
298
317
|
} | null | undefined;
|
|
318
|
+
callback?: {
|
|
319
|
+
id: string;
|
|
320
|
+
dueAt: string;
|
|
321
|
+
originNotes: string | null;
|
|
322
|
+
} | null | undefined;
|
|
299
323
|
}>;
|
|
324
|
+
export declare const CallbackTimeSlotSchema: z.ZodEnum<[string, ...string[]]>;
|
|
325
|
+
/**
|
|
326
|
+
* Plain ZodObject — the web form generator reads `.shape` off this, so it must
|
|
327
|
+
* NOT be wrapped in `.superRefine` (that yields a ZodEffects with no `.shape`).
|
|
328
|
+
* The both-or-neither rule lives on CompleteAssignmentBodySchema below.
|
|
329
|
+
*/
|
|
300
330
|
export declare const CompleteAssignmentSchema: z.ZodObject<{
|
|
301
331
|
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
302
332
|
notes: z.ZodOptional<z.ZodString>;
|
|
333
|
+
callbackDate: z.ZodOptional<z.ZodString>;
|
|
334
|
+
callbackTime: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
335
|
+
}, "strip", z.ZodTypeAny, {
|
|
336
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
337
|
+
notes?: string | undefined;
|
|
338
|
+
callbackDate?: string | undefined;
|
|
339
|
+
callbackTime?: string | undefined;
|
|
340
|
+
}, {
|
|
341
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
342
|
+
notes?: string | undefined;
|
|
343
|
+
callbackDate?: string | undefined;
|
|
344
|
+
callbackTime?: string | undefined;
|
|
345
|
+
}>;
|
|
346
|
+
/** Wire schema: adds the both-or-neither rule. Use this as the contract body. */
|
|
347
|
+
export declare const CompleteAssignmentBodySchema: z.ZodEffects<z.ZodObject<{
|
|
348
|
+
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
349
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
350
|
+
callbackDate: z.ZodOptional<z.ZodString>;
|
|
351
|
+
callbackTime: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
303
352
|
}, "strip", z.ZodTypeAny, {
|
|
304
353
|
rating: import("../common/call-rating.schema").CallRating;
|
|
305
354
|
notes?: string | undefined;
|
|
355
|
+
callbackDate?: string | undefined;
|
|
356
|
+
callbackTime?: string | undefined;
|
|
357
|
+
}, {
|
|
358
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
359
|
+
notes?: string | undefined;
|
|
360
|
+
callbackDate?: string | undefined;
|
|
361
|
+
callbackTime?: string | undefined;
|
|
362
|
+
}>, {
|
|
363
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
364
|
+
notes?: string | undefined;
|
|
365
|
+
callbackDate?: string | undefined;
|
|
366
|
+
callbackTime?: string | undefined;
|
|
306
367
|
}, {
|
|
307
368
|
rating: import("../common/call-rating.schema").CallRating;
|
|
308
369
|
notes?: string | undefined;
|
|
370
|
+
callbackDate?: string | undefined;
|
|
371
|
+
callbackTime?: string | undefined;
|
|
309
372
|
}>;
|
|
310
373
|
export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
311
374
|
completed: z.ZodObject<{
|
|
@@ -421,13 +484,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
421
484
|
firstName: string;
|
|
422
485
|
}[] | undefined;
|
|
423
486
|
} | null | undefined;
|
|
487
|
+
deletedAt?: string | null | undefined;
|
|
424
488
|
canImpersonateUsers?: {
|
|
425
489
|
id: string;
|
|
426
490
|
lastName: string;
|
|
427
491
|
firstName: string;
|
|
428
492
|
}[] | undefined;
|
|
429
493
|
dialpadUserId?: string | null | undefined;
|
|
430
|
-
deletedAt?: string | null | undefined;
|
|
431
494
|
}, {
|
|
432
495
|
email: string;
|
|
433
496
|
createdAt: string | Date;
|
|
@@ -453,13 +516,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
453
516
|
description?: string | null | undefined;
|
|
454
517
|
isPrimary?: boolean | undefined;
|
|
455
518
|
}[] | undefined;
|
|
519
|
+
deletedAt?: string | Date | null | undefined;
|
|
456
520
|
canImpersonateUsers?: {
|
|
457
521
|
id: string;
|
|
458
522
|
lastName: string;
|
|
459
523
|
firstName: string;
|
|
460
524
|
}[] | undefined;
|
|
461
525
|
dialpadUserId?: string | null | undefined;
|
|
462
|
-
deletedAt?: string | Date | null | undefined;
|
|
463
526
|
}>>;
|
|
464
527
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
465
528
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -483,6 +546,19 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
483
546
|
}>>>;
|
|
484
547
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
485
548
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
549
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
550
|
+
id: z.ZodString;
|
|
551
|
+
dueAt: z.ZodString;
|
|
552
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
553
|
+
}, "strip", z.ZodTypeAny, {
|
|
554
|
+
id: string;
|
|
555
|
+
dueAt: string;
|
|
556
|
+
originNotes: string | null;
|
|
557
|
+
}, {
|
|
558
|
+
id: string;
|
|
559
|
+
dueAt: string;
|
|
560
|
+
originNotes: string | null;
|
|
561
|
+
}>>>;
|
|
486
562
|
}, "strip", z.ZodTypeAny, {
|
|
487
563
|
createdAt: string;
|
|
488
564
|
updatedAt: string;
|
|
@@ -518,13 +594,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
518
594
|
firstName: string;
|
|
519
595
|
}[] | undefined;
|
|
520
596
|
} | null | undefined;
|
|
597
|
+
deletedAt?: string | null | undefined;
|
|
521
598
|
canImpersonateUsers?: {
|
|
522
599
|
id: string;
|
|
523
600
|
lastName: string;
|
|
524
601
|
firstName: string;
|
|
525
602
|
}[] | undefined;
|
|
526
603
|
dialpadUserId?: string | null | undefined;
|
|
527
|
-
deletedAt?: string | null | undefined;
|
|
528
604
|
} | undefined;
|
|
529
605
|
lead?: {
|
|
530
606
|
name: string;
|
|
@@ -536,6 +612,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
536
612
|
updatedAt: string;
|
|
537
613
|
id: string;
|
|
538
614
|
} | null | undefined;
|
|
615
|
+
callback?: {
|
|
616
|
+
id: string;
|
|
617
|
+
dueAt: string;
|
|
618
|
+
originNotes: string | null;
|
|
619
|
+
} | null | undefined;
|
|
539
620
|
}, {
|
|
540
621
|
createdAt: string | Date;
|
|
541
622
|
updatedAt: string | Date;
|
|
@@ -571,13 +652,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
571
652
|
description?: string | null | undefined;
|
|
572
653
|
isPrimary?: boolean | undefined;
|
|
573
654
|
}[] | undefined;
|
|
655
|
+
deletedAt?: string | Date | null | undefined;
|
|
574
656
|
canImpersonateUsers?: {
|
|
575
657
|
id: string;
|
|
576
658
|
lastName: string;
|
|
577
659
|
firstName: string;
|
|
578
660
|
}[] | undefined;
|
|
579
661
|
dialpadUserId?: string | null | undefined;
|
|
580
|
-
deletedAt?: string | Date | null | undefined;
|
|
581
662
|
} | undefined;
|
|
582
663
|
lead?: {
|
|
583
664
|
name: string;
|
|
@@ -589,6 +670,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
589
670
|
updatedAt: string | Date;
|
|
590
671
|
id: string;
|
|
591
672
|
} | null | undefined;
|
|
673
|
+
callback?: {
|
|
674
|
+
id: string;
|
|
675
|
+
dueAt: string;
|
|
676
|
+
originNotes: string | null;
|
|
677
|
+
} | null | undefined;
|
|
592
678
|
}>;
|
|
593
679
|
next: z.ZodNullable<z.ZodObject<{
|
|
594
680
|
id: z.ZodString;
|
|
@@ -703,13 +789,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
703
789
|
firstName: string;
|
|
704
790
|
}[] | undefined;
|
|
705
791
|
} | null | undefined;
|
|
792
|
+
deletedAt?: string | null | undefined;
|
|
706
793
|
canImpersonateUsers?: {
|
|
707
794
|
id: string;
|
|
708
795
|
lastName: string;
|
|
709
796
|
firstName: string;
|
|
710
797
|
}[] | undefined;
|
|
711
798
|
dialpadUserId?: string | null | undefined;
|
|
712
|
-
deletedAt?: string | null | undefined;
|
|
713
799
|
}, {
|
|
714
800
|
email: string;
|
|
715
801
|
createdAt: string | Date;
|
|
@@ -735,13 +821,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
735
821
|
description?: string | null | undefined;
|
|
736
822
|
isPrimary?: boolean | undefined;
|
|
737
823
|
}[] | undefined;
|
|
824
|
+
deletedAt?: string | Date | null | undefined;
|
|
738
825
|
canImpersonateUsers?: {
|
|
739
826
|
id: string;
|
|
740
827
|
lastName: string;
|
|
741
828
|
firstName: string;
|
|
742
829
|
}[] | undefined;
|
|
743
830
|
dialpadUserId?: string | null | undefined;
|
|
744
|
-
deletedAt?: string | Date | null | undefined;
|
|
745
831
|
}>>;
|
|
746
832
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
747
833
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -765,6 +851,19 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
765
851
|
}>>>;
|
|
766
852
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
767
853
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
854
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
855
|
+
id: z.ZodString;
|
|
856
|
+
dueAt: z.ZodString;
|
|
857
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
858
|
+
}, "strip", z.ZodTypeAny, {
|
|
859
|
+
id: string;
|
|
860
|
+
dueAt: string;
|
|
861
|
+
originNotes: string | null;
|
|
862
|
+
}, {
|
|
863
|
+
id: string;
|
|
864
|
+
dueAt: string;
|
|
865
|
+
originNotes: string | null;
|
|
866
|
+
}>>>;
|
|
768
867
|
}, "strip", z.ZodTypeAny, {
|
|
769
868
|
createdAt: string;
|
|
770
869
|
updatedAt: string;
|
|
@@ -800,13 +899,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
800
899
|
firstName: string;
|
|
801
900
|
}[] | undefined;
|
|
802
901
|
} | null | undefined;
|
|
902
|
+
deletedAt?: string | null | undefined;
|
|
803
903
|
canImpersonateUsers?: {
|
|
804
904
|
id: string;
|
|
805
905
|
lastName: string;
|
|
806
906
|
firstName: string;
|
|
807
907
|
}[] | undefined;
|
|
808
908
|
dialpadUserId?: string | null | undefined;
|
|
809
|
-
deletedAt?: string | null | undefined;
|
|
810
909
|
} | undefined;
|
|
811
910
|
lead?: {
|
|
812
911
|
name: string;
|
|
@@ -818,6 +917,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
818
917
|
updatedAt: string;
|
|
819
918
|
id: string;
|
|
820
919
|
} | null | undefined;
|
|
920
|
+
callback?: {
|
|
921
|
+
id: string;
|
|
922
|
+
dueAt: string;
|
|
923
|
+
originNotes: string | null;
|
|
924
|
+
} | null | undefined;
|
|
821
925
|
}, {
|
|
822
926
|
createdAt: string | Date;
|
|
823
927
|
updatedAt: string | Date;
|
|
@@ -853,13 +957,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
853
957
|
description?: string | null | undefined;
|
|
854
958
|
isPrimary?: boolean | undefined;
|
|
855
959
|
}[] | undefined;
|
|
960
|
+
deletedAt?: string | Date | null | undefined;
|
|
856
961
|
canImpersonateUsers?: {
|
|
857
962
|
id: string;
|
|
858
963
|
lastName: string;
|
|
859
964
|
firstName: string;
|
|
860
965
|
}[] | undefined;
|
|
861
966
|
dialpadUserId?: string | null | undefined;
|
|
862
|
-
deletedAt?: string | Date | null | undefined;
|
|
863
967
|
} | undefined;
|
|
864
968
|
lead?: {
|
|
865
969
|
name: string;
|
|
@@ -871,6 +975,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
871
975
|
updatedAt: string | Date;
|
|
872
976
|
id: string;
|
|
873
977
|
} | null | undefined;
|
|
978
|
+
callback?: {
|
|
979
|
+
id: string;
|
|
980
|
+
dueAt: string;
|
|
981
|
+
originNotes: string | null;
|
|
982
|
+
} | null | undefined;
|
|
874
983
|
}>>;
|
|
875
984
|
}, "strip", z.ZodTypeAny, {
|
|
876
985
|
completed: {
|
|
@@ -908,13 +1017,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
908
1017
|
firstName: string;
|
|
909
1018
|
}[] | undefined;
|
|
910
1019
|
} | null | undefined;
|
|
1020
|
+
deletedAt?: string | null | undefined;
|
|
911
1021
|
canImpersonateUsers?: {
|
|
912
1022
|
id: string;
|
|
913
1023
|
lastName: string;
|
|
914
1024
|
firstName: string;
|
|
915
1025
|
}[] | undefined;
|
|
916
1026
|
dialpadUserId?: string | null | undefined;
|
|
917
|
-
deletedAt?: string | null | undefined;
|
|
918
1027
|
} | undefined;
|
|
919
1028
|
lead?: {
|
|
920
1029
|
name: string;
|
|
@@ -926,6 +1035,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
926
1035
|
updatedAt: string;
|
|
927
1036
|
id: string;
|
|
928
1037
|
} | null | undefined;
|
|
1038
|
+
callback?: {
|
|
1039
|
+
id: string;
|
|
1040
|
+
dueAt: string;
|
|
1041
|
+
originNotes: string | null;
|
|
1042
|
+
} | null | undefined;
|
|
929
1043
|
};
|
|
930
1044
|
next: {
|
|
931
1045
|
createdAt: string;
|
|
@@ -962,13 +1076,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
962
1076
|
firstName: string;
|
|
963
1077
|
}[] | undefined;
|
|
964
1078
|
} | null | undefined;
|
|
1079
|
+
deletedAt?: string | null | undefined;
|
|
965
1080
|
canImpersonateUsers?: {
|
|
966
1081
|
id: string;
|
|
967
1082
|
lastName: string;
|
|
968
1083
|
firstName: string;
|
|
969
1084
|
}[] | undefined;
|
|
970
1085
|
dialpadUserId?: string | null | undefined;
|
|
971
|
-
deletedAt?: string | null | undefined;
|
|
972
1086
|
} | undefined;
|
|
973
1087
|
lead?: {
|
|
974
1088
|
name: string;
|
|
@@ -980,6 +1094,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
980
1094
|
updatedAt: string;
|
|
981
1095
|
id: string;
|
|
982
1096
|
} | null | undefined;
|
|
1097
|
+
callback?: {
|
|
1098
|
+
id: string;
|
|
1099
|
+
dueAt: string;
|
|
1100
|
+
originNotes: string | null;
|
|
1101
|
+
} | null | undefined;
|
|
983
1102
|
} | null;
|
|
984
1103
|
}, {
|
|
985
1104
|
completed: {
|
|
@@ -1017,13 +1136,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
1017
1136
|
description?: string | null | undefined;
|
|
1018
1137
|
isPrimary?: boolean | undefined;
|
|
1019
1138
|
}[] | undefined;
|
|
1139
|
+
deletedAt?: string | Date | null | undefined;
|
|
1020
1140
|
canImpersonateUsers?: {
|
|
1021
1141
|
id: string;
|
|
1022
1142
|
lastName: string;
|
|
1023
1143
|
firstName: string;
|
|
1024
1144
|
}[] | undefined;
|
|
1025
1145
|
dialpadUserId?: string | null | undefined;
|
|
1026
|
-
deletedAt?: string | Date | null | undefined;
|
|
1027
1146
|
} | undefined;
|
|
1028
1147
|
lead?: {
|
|
1029
1148
|
name: string;
|
|
@@ -1035,6 +1154,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
1035
1154
|
updatedAt: string | Date;
|
|
1036
1155
|
id: string;
|
|
1037
1156
|
} | null | undefined;
|
|
1157
|
+
callback?: {
|
|
1158
|
+
id: string;
|
|
1159
|
+
dueAt: string;
|
|
1160
|
+
originNotes: string | null;
|
|
1161
|
+
} | null | undefined;
|
|
1038
1162
|
};
|
|
1039
1163
|
next: {
|
|
1040
1164
|
createdAt: string | Date;
|
|
@@ -1071,13 +1195,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
1071
1195
|
description?: string | null | undefined;
|
|
1072
1196
|
isPrimary?: boolean | undefined;
|
|
1073
1197
|
}[] | undefined;
|
|
1198
|
+
deletedAt?: string | Date | null | undefined;
|
|
1074
1199
|
canImpersonateUsers?: {
|
|
1075
1200
|
id: string;
|
|
1076
1201
|
lastName: string;
|
|
1077
1202
|
firstName: string;
|
|
1078
1203
|
}[] | undefined;
|
|
1079
1204
|
dialpadUserId?: string | null | undefined;
|
|
1080
|
-
deletedAt?: string | Date | null | undefined;
|
|
1081
1205
|
} | undefined;
|
|
1082
1206
|
lead?: {
|
|
1083
1207
|
name: string;
|
|
@@ -1089,6 +1213,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
1089
1213
|
updatedAt: string | Date;
|
|
1090
1214
|
id: string;
|
|
1091
1215
|
} | null | undefined;
|
|
1216
|
+
callback?: {
|
|
1217
|
+
id: string;
|
|
1218
|
+
dueAt: string;
|
|
1219
|
+
originNotes: string | null;
|
|
1220
|
+
} | null | undefined;
|
|
1092
1221
|
} | null;
|
|
1093
1222
|
}>;
|
|
1094
1223
|
export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
@@ -1205,13 +1334,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1205
1334
|
firstName: string;
|
|
1206
1335
|
}[] | undefined;
|
|
1207
1336
|
} | null | undefined;
|
|
1337
|
+
deletedAt?: string | null | undefined;
|
|
1208
1338
|
canImpersonateUsers?: {
|
|
1209
1339
|
id: string;
|
|
1210
1340
|
lastName: string;
|
|
1211
1341
|
firstName: string;
|
|
1212
1342
|
}[] | undefined;
|
|
1213
1343
|
dialpadUserId?: string | null | undefined;
|
|
1214
|
-
deletedAt?: string | null | undefined;
|
|
1215
1344
|
}, {
|
|
1216
1345
|
email: string;
|
|
1217
1346
|
createdAt: string | Date;
|
|
@@ -1237,13 +1366,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1237
1366
|
description?: string | null | undefined;
|
|
1238
1367
|
isPrimary?: boolean | undefined;
|
|
1239
1368
|
}[] | undefined;
|
|
1369
|
+
deletedAt?: string | Date | null | undefined;
|
|
1240
1370
|
canImpersonateUsers?: {
|
|
1241
1371
|
id: string;
|
|
1242
1372
|
lastName: string;
|
|
1243
1373
|
firstName: string;
|
|
1244
1374
|
}[] | undefined;
|
|
1245
1375
|
dialpadUserId?: string | null | undefined;
|
|
1246
|
-
deletedAt?: string | Date | null | undefined;
|
|
1247
1376
|
}>>;
|
|
1248
1377
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1249
1378
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -1267,6 +1396,19 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1267
1396
|
}>>>;
|
|
1268
1397
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1269
1398
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1399
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1400
|
+
id: z.ZodString;
|
|
1401
|
+
dueAt: z.ZodString;
|
|
1402
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
1403
|
+
}, "strip", z.ZodTypeAny, {
|
|
1404
|
+
id: string;
|
|
1405
|
+
dueAt: string;
|
|
1406
|
+
originNotes: string | null;
|
|
1407
|
+
}, {
|
|
1408
|
+
id: string;
|
|
1409
|
+
dueAt: string;
|
|
1410
|
+
originNotes: string | null;
|
|
1411
|
+
}>>>;
|
|
1270
1412
|
}, "strip", z.ZodTypeAny, {
|
|
1271
1413
|
createdAt: string;
|
|
1272
1414
|
updatedAt: string;
|
|
@@ -1302,13 +1444,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1302
1444
|
firstName: string;
|
|
1303
1445
|
}[] | undefined;
|
|
1304
1446
|
} | null | undefined;
|
|
1447
|
+
deletedAt?: string | null | undefined;
|
|
1305
1448
|
canImpersonateUsers?: {
|
|
1306
1449
|
id: string;
|
|
1307
1450
|
lastName: string;
|
|
1308
1451
|
firstName: string;
|
|
1309
1452
|
}[] | undefined;
|
|
1310
1453
|
dialpadUserId?: string | null | undefined;
|
|
1311
|
-
deletedAt?: string | null | undefined;
|
|
1312
1454
|
} | undefined;
|
|
1313
1455
|
lead?: {
|
|
1314
1456
|
name: string;
|
|
@@ -1320,6 +1462,11 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1320
1462
|
updatedAt: string;
|
|
1321
1463
|
id: string;
|
|
1322
1464
|
} | null | undefined;
|
|
1465
|
+
callback?: {
|
|
1466
|
+
id: string;
|
|
1467
|
+
dueAt: string;
|
|
1468
|
+
originNotes: string | null;
|
|
1469
|
+
} | null | undefined;
|
|
1323
1470
|
}, {
|
|
1324
1471
|
createdAt: string | Date;
|
|
1325
1472
|
updatedAt: string | Date;
|
|
@@ -1355,13 +1502,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1355
1502
|
description?: string | null | undefined;
|
|
1356
1503
|
isPrimary?: boolean | undefined;
|
|
1357
1504
|
}[] | undefined;
|
|
1505
|
+
deletedAt?: string | Date | null | undefined;
|
|
1358
1506
|
canImpersonateUsers?: {
|
|
1359
1507
|
id: string;
|
|
1360
1508
|
lastName: string;
|
|
1361
1509
|
firstName: string;
|
|
1362
1510
|
}[] | undefined;
|
|
1363
1511
|
dialpadUserId?: string | null | undefined;
|
|
1364
|
-
deletedAt?: string | Date | null | undefined;
|
|
1365
1512
|
} | undefined;
|
|
1366
1513
|
lead?: {
|
|
1367
1514
|
name: string;
|
|
@@ -1373,6 +1520,11 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1373
1520
|
updatedAt: string | Date;
|
|
1374
1521
|
id: string;
|
|
1375
1522
|
} | null | undefined;
|
|
1523
|
+
callback?: {
|
|
1524
|
+
id: string;
|
|
1525
|
+
dueAt: string;
|
|
1526
|
+
originNotes: string | null;
|
|
1527
|
+
} | null | undefined;
|
|
1376
1528
|
}>;
|
|
1377
1529
|
next: z.ZodNullable<z.ZodObject<{
|
|
1378
1530
|
id: z.ZodString;
|
|
@@ -1487,13 +1639,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1487
1639
|
firstName: string;
|
|
1488
1640
|
}[] | undefined;
|
|
1489
1641
|
} | null | undefined;
|
|
1642
|
+
deletedAt?: string | null | undefined;
|
|
1490
1643
|
canImpersonateUsers?: {
|
|
1491
1644
|
id: string;
|
|
1492
1645
|
lastName: string;
|
|
1493
1646
|
firstName: string;
|
|
1494
1647
|
}[] | undefined;
|
|
1495
1648
|
dialpadUserId?: string | null | undefined;
|
|
1496
|
-
deletedAt?: string | null | undefined;
|
|
1497
1649
|
}, {
|
|
1498
1650
|
email: string;
|
|
1499
1651
|
createdAt: string | Date;
|
|
@@ -1519,13 +1671,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1519
1671
|
description?: string | null | undefined;
|
|
1520
1672
|
isPrimary?: boolean | undefined;
|
|
1521
1673
|
}[] | undefined;
|
|
1674
|
+
deletedAt?: string | Date | null | undefined;
|
|
1522
1675
|
canImpersonateUsers?: {
|
|
1523
1676
|
id: string;
|
|
1524
1677
|
lastName: string;
|
|
1525
1678
|
firstName: string;
|
|
1526
1679
|
}[] | undefined;
|
|
1527
1680
|
dialpadUserId?: string | null | undefined;
|
|
1528
|
-
deletedAt?: string | Date | null | undefined;
|
|
1529
1681
|
}>>;
|
|
1530
1682
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1531
1683
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -1549,6 +1701,19 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1549
1701
|
}>>>;
|
|
1550
1702
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1551
1703
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1704
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1705
|
+
id: z.ZodString;
|
|
1706
|
+
dueAt: z.ZodString;
|
|
1707
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
1708
|
+
}, "strip", z.ZodTypeAny, {
|
|
1709
|
+
id: string;
|
|
1710
|
+
dueAt: string;
|
|
1711
|
+
originNotes: string | null;
|
|
1712
|
+
}, {
|
|
1713
|
+
id: string;
|
|
1714
|
+
dueAt: string;
|
|
1715
|
+
originNotes: string | null;
|
|
1716
|
+
}>>>;
|
|
1552
1717
|
}, "strip", z.ZodTypeAny, {
|
|
1553
1718
|
createdAt: string;
|
|
1554
1719
|
updatedAt: string;
|
|
@@ -1584,13 +1749,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1584
1749
|
firstName: string;
|
|
1585
1750
|
}[] | undefined;
|
|
1586
1751
|
} | null | undefined;
|
|
1752
|
+
deletedAt?: string | null | undefined;
|
|
1587
1753
|
canImpersonateUsers?: {
|
|
1588
1754
|
id: string;
|
|
1589
1755
|
lastName: string;
|
|
1590
1756
|
firstName: string;
|
|
1591
1757
|
}[] | undefined;
|
|
1592
1758
|
dialpadUserId?: string | null | undefined;
|
|
1593
|
-
deletedAt?: string | null | undefined;
|
|
1594
1759
|
} | undefined;
|
|
1595
1760
|
lead?: {
|
|
1596
1761
|
name: string;
|
|
@@ -1602,6 +1767,11 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1602
1767
|
updatedAt: string;
|
|
1603
1768
|
id: string;
|
|
1604
1769
|
} | null | undefined;
|
|
1770
|
+
callback?: {
|
|
1771
|
+
id: string;
|
|
1772
|
+
dueAt: string;
|
|
1773
|
+
originNotes: string | null;
|
|
1774
|
+
} | null | undefined;
|
|
1605
1775
|
}, {
|
|
1606
1776
|
createdAt: string | Date;
|
|
1607
1777
|
updatedAt: string | Date;
|
|
@@ -1637,13 +1807,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1637
1807
|
description?: string | null | undefined;
|
|
1638
1808
|
isPrimary?: boolean | undefined;
|
|
1639
1809
|
}[] | undefined;
|
|
1810
|
+
deletedAt?: string | Date | null | undefined;
|
|
1640
1811
|
canImpersonateUsers?: {
|
|
1641
1812
|
id: string;
|
|
1642
1813
|
lastName: string;
|
|
1643
1814
|
firstName: string;
|
|
1644
1815
|
}[] | undefined;
|
|
1645
1816
|
dialpadUserId?: string | null | undefined;
|
|
1646
|
-
deletedAt?: string | Date | null | undefined;
|
|
1647
1817
|
} | undefined;
|
|
1648
1818
|
lead?: {
|
|
1649
1819
|
name: string;
|
|
@@ -1655,6 +1825,11 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1655
1825
|
updatedAt: string | Date;
|
|
1656
1826
|
id: string;
|
|
1657
1827
|
} | null | undefined;
|
|
1828
|
+
callback?: {
|
|
1829
|
+
id: string;
|
|
1830
|
+
dueAt: string;
|
|
1831
|
+
originNotes: string | null;
|
|
1832
|
+
} | null | undefined;
|
|
1658
1833
|
}>>;
|
|
1659
1834
|
}, "strip", z.ZodTypeAny, {
|
|
1660
1835
|
cancelled: {
|
|
@@ -1692,13 +1867,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1692
1867
|
firstName: string;
|
|
1693
1868
|
}[] | undefined;
|
|
1694
1869
|
} | null | undefined;
|
|
1870
|
+
deletedAt?: string | null | undefined;
|
|
1695
1871
|
canImpersonateUsers?: {
|
|
1696
1872
|
id: string;
|
|
1697
1873
|
lastName: string;
|
|
1698
1874
|
firstName: string;
|
|
1699
1875
|
}[] | undefined;
|
|
1700
1876
|
dialpadUserId?: string | null | undefined;
|
|
1701
|
-
deletedAt?: string | null | undefined;
|
|
1702
1877
|
} | undefined;
|
|
1703
1878
|
lead?: {
|
|
1704
1879
|
name: string;
|
|
@@ -1710,6 +1885,11 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1710
1885
|
updatedAt: string;
|
|
1711
1886
|
id: string;
|
|
1712
1887
|
} | null | undefined;
|
|
1888
|
+
callback?: {
|
|
1889
|
+
id: string;
|
|
1890
|
+
dueAt: string;
|
|
1891
|
+
originNotes: string | null;
|
|
1892
|
+
} | null | undefined;
|
|
1713
1893
|
};
|
|
1714
1894
|
next: {
|
|
1715
1895
|
createdAt: string;
|
|
@@ -1746,13 +1926,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1746
1926
|
firstName: string;
|
|
1747
1927
|
}[] | undefined;
|
|
1748
1928
|
} | null | undefined;
|
|
1929
|
+
deletedAt?: string | null | undefined;
|
|
1749
1930
|
canImpersonateUsers?: {
|
|
1750
1931
|
id: string;
|
|
1751
1932
|
lastName: string;
|
|
1752
1933
|
firstName: string;
|
|
1753
1934
|
}[] | undefined;
|
|
1754
1935
|
dialpadUserId?: string | null | undefined;
|
|
1755
|
-
deletedAt?: string | null | undefined;
|
|
1756
1936
|
} | undefined;
|
|
1757
1937
|
lead?: {
|
|
1758
1938
|
name: string;
|
|
@@ -1764,6 +1944,11 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1764
1944
|
updatedAt: string;
|
|
1765
1945
|
id: string;
|
|
1766
1946
|
} | null | undefined;
|
|
1947
|
+
callback?: {
|
|
1948
|
+
id: string;
|
|
1949
|
+
dueAt: string;
|
|
1950
|
+
originNotes: string | null;
|
|
1951
|
+
} | null | undefined;
|
|
1767
1952
|
} | null;
|
|
1768
1953
|
}, {
|
|
1769
1954
|
cancelled: {
|
|
@@ -1801,13 +1986,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1801
1986
|
description?: string | null | undefined;
|
|
1802
1987
|
isPrimary?: boolean | undefined;
|
|
1803
1988
|
}[] | undefined;
|
|
1989
|
+
deletedAt?: string | Date | null | undefined;
|
|
1804
1990
|
canImpersonateUsers?: {
|
|
1805
1991
|
id: string;
|
|
1806
1992
|
lastName: string;
|
|
1807
1993
|
firstName: string;
|
|
1808
1994
|
}[] | undefined;
|
|
1809
1995
|
dialpadUserId?: string | null | undefined;
|
|
1810
|
-
deletedAt?: string | Date | null | undefined;
|
|
1811
1996
|
} | undefined;
|
|
1812
1997
|
lead?: {
|
|
1813
1998
|
name: string;
|
|
@@ -1819,6 +2004,11 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1819
2004
|
updatedAt: string | Date;
|
|
1820
2005
|
id: string;
|
|
1821
2006
|
} | null | undefined;
|
|
2007
|
+
callback?: {
|
|
2008
|
+
id: string;
|
|
2009
|
+
dueAt: string;
|
|
2010
|
+
originNotes: string | null;
|
|
2011
|
+
} | null | undefined;
|
|
1822
2012
|
};
|
|
1823
2013
|
next: {
|
|
1824
2014
|
createdAt: string | Date;
|
|
@@ -1855,13 +2045,13 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1855
2045
|
description?: string | null | undefined;
|
|
1856
2046
|
isPrimary?: boolean | undefined;
|
|
1857
2047
|
}[] | undefined;
|
|
2048
|
+
deletedAt?: string | Date | null | undefined;
|
|
1858
2049
|
canImpersonateUsers?: {
|
|
1859
2050
|
id: string;
|
|
1860
2051
|
lastName: string;
|
|
1861
2052
|
firstName: string;
|
|
1862
2053
|
}[] | undefined;
|
|
1863
2054
|
dialpadUserId?: string | null | undefined;
|
|
1864
|
-
deletedAt?: string | Date | null | undefined;
|
|
1865
2055
|
} | undefined;
|
|
1866
2056
|
lead?: {
|
|
1867
2057
|
name: string;
|
|
@@ -1873,8 +2063,33 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1873
2063
|
updatedAt: string | Date;
|
|
1874
2064
|
id: string;
|
|
1875
2065
|
} | null | undefined;
|
|
2066
|
+
callback?: {
|
|
2067
|
+
id: string;
|
|
2068
|
+
dueAt: string;
|
|
2069
|
+
originNotes: string | null;
|
|
2070
|
+
} | null | undefined;
|
|
1876
2071
|
} | null;
|
|
1877
2072
|
}>;
|
|
2073
|
+
export declare const CompleteCallbackSchema: z.ZodObject<{
|
|
2074
|
+
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
2075
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
2076
|
+
}, "strip", z.ZodTypeAny, {
|
|
2077
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
2078
|
+
notes?: string | undefined;
|
|
2079
|
+
}, {
|
|
2080
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
2081
|
+
notes?: string | undefined;
|
|
2082
|
+
}>;
|
|
2083
|
+
export declare const RescheduleCallbackSchema: z.ZodObject<{
|
|
2084
|
+
callbackDate: z.ZodString;
|
|
2085
|
+
callbackTime: z.ZodEnum<[string, ...string[]]>;
|
|
2086
|
+
}, "strip", z.ZodTypeAny, {
|
|
2087
|
+
callbackDate: string;
|
|
2088
|
+
callbackTime: string;
|
|
2089
|
+
}, {
|
|
2090
|
+
callbackDate: string;
|
|
2091
|
+
callbackTime: string;
|
|
2092
|
+
}>;
|
|
1878
2093
|
/**
|
|
1879
2094
|
* Why an agent's lead queue is in its current state.
|
|
1880
2095
|
*
|
|
@@ -1917,8 +2132,12 @@ export type LeadAssignment = z.infer<typeof LeadAssignmentSchema>;
|
|
|
1917
2132
|
export type CompleteAssignment = z.infer<typeof CompleteAssignmentSchema>;
|
|
1918
2133
|
export type CompleteAssignmentResponse = z.infer<typeof CompleteAssignmentResponseSchema>;
|
|
1919
2134
|
export type CancelAssignmentResponse = z.infer<typeof CancelAssignmentResponseSchema>;
|
|
2135
|
+
export type CompleteCallback = z.infer<typeof CompleteCallbackSchema>;
|
|
2136
|
+
export type RescheduleCallback = z.infer<typeof RescheduleCallbackSchema>;
|
|
1920
2137
|
export type QueueStatus = z.infer<typeof QueueStatusSchema>;
|
|
1921
2138
|
export type AgentEnrollmentStatus = z.infer<typeof AgentEnrollmentStatusSchema>;
|
|
2139
|
+
export { CALLBACK_TIME_SLOTS };
|
|
2140
|
+
export type CallbackTimeSlot = z.infer<typeof CallbackTimeSlotSchema>;
|
|
1922
2141
|
export declare const leadAssignmentsContract: {
|
|
1923
2142
|
completeAssignment: {
|
|
1924
2143
|
metadata: {
|
|
@@ -1933,19 +2152,35 @@ export declare const leadAssignmentsContract: {
|
|
|
1933
2152
|
}>;
|
|
1934
2153
|
summary: "Complete an assignment and update lead status (Queue-based system)";
|
|
1935
2154
|
method: "POST";
|
|
1936
|
-
body: z.ZodObject<{
|
|
2155
|
+
body: z.ZodEffects<z.ZodObject<{
|
|
1937
2156
|
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
1938
2157
|
notes: z.ZodOptional<z.ZodString>;
|
|
2158
|
+
callbackDate: z.ZodOptional<z.ZodString>;
|
|
2159
|
+
callbackTime: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
1939
2160
|
}, "strip", z.ZodTypeAny, {
|
|
1940
2161
|
rating: import("../common/call-rating.schema").CallRating;
|
|
1941
2162
|
notes?: string | undefined;
|
|
2163
|
+
callbackDate?: string | undefined;
|
|
2164
|
+
callbackTime?: string | undefined;
|
|
2165
|
+
}, {
|
|
2166
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
2167
|
+
notes?: string | undefined;
|
|
2168
|
+
callbackDate?: string | undefined;
|
|
2169
|
+
callbackTime?: string | undefined;
|
|
2170
|
+
}>, {
|
|
2171
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
2172
|
+
notes?: string | undefined;
|
|
2173
|
+
callbackDate?: string | undefined;
|
|
2174
|
+
callbackTime?: string | undefined;
|
|
1942
2175
|
}, {
|
|
1943
2176
|
rating: import("../common/call-rating.schema").CallRating;
|
|
1944
2177
|
notes?: string | undefined;
|
|
2178
|
+
callbackDate?: string | undefined;
|
|
2179
|
+
callbackTime?: string | undefined;
|
|
1945
2180
|
}>;
|
|
1946
2181
|
path: "/v2/lead-assignments/:id/complete";
|
|
1947
2182
|
responses: {
|
|
1948
|
-
|
|
2183
|
+
401: z.ZodObject<{
|
|
1949
2184
|
statusCode: z.ZodNumber;
|
|
1950
2185
|
message: z.ZodString;
|
|
1951
2186
|
code: z.ZodString;
|
|
@@ -1954,23 +2189,23 @@ export declare const leadAssignmentsContract: {
|
|
|
1954
2189
|
path: z.ZodString;
|
|
1955
2190
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1956
2191
|
}, "strip", z.ZodTypeAny, {
|
|
1957
|
-
message: string;
|
|
1958
2192
|
code: string;
|
|
1959
2193
|
path: string;
|
|
2194
|
+
message: string;
|
|
1960
2195
|
statusCode: number;
|
|
1961
2196
|
timestamp: string;
|
|
1962
2197
|
details?: unknown;
|
|
1963
2198
|
correlationId?: string | undefined;
|
|
1964
2199
|
}, {
|
|
1965
|
-
message: string;
|
|
1966
2200
|
code: string;
|
|
1967
2201
|
path: string;
|
|
2202
|
+
message: string;
|
|
1968
2203
|
statusCode: number;
|
|
1969
2204
|
timestamp: string;
|
|
1970
2205
|
details?: unknown;
|
|
1971
2206
|
correlationId?: string | undefined;
|
|
1972
2207
|
}>;
|
|
1973
|
-
|
|
2208
|
+
400: z.ZodObject<{
|
|
1974
2209
|
statusCode: z.ZodNumber;
|
|
1975
2210
|
message: z.ZodString;
|
|
1976
2211
|
code: z.ZodString;
|
|
@@ -1979,23 +2214,23 @@ export declare const leadAssignmentsContract: {
|
|
|
1979
2214
|
path: z.ZodString;
|
|
1980
2215
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1981
2216
|
}, "strip", z.ZodTypeAny, {
|
|
1982
|
-
message: string;
|
|
1983
2217
|
code: string;
|
|
1984
2218
|
path: string;
|
|
2219
|
+
message: string;
|
|
1985
2220
|
statusCode: number;
|
|
1986
2221
|
timestamp: string;
|
|
1987
2222
|
details?: unknown;
|
|
1988
2223
|
correlationId?: string | undefined;
|
|
1989
2224
|
}, {
|
|
1990
|
-
message: string;
|
|
1991
2225
|
code: string;
|
|
1992
2226
|
path: string;
|
|
2227
|
+
message: string;
|
|
1993
2228
|
statusCode: number;
|
|
1994
2229
|
timestamp: string;
|
|
1995
2230
|
details?: unknown;
|
|
1996
2231
|
correlationId?: string | undefined;
|
|
1997
2232
|
}>;
|
|
1998
|
-
|
|
2233
|
+
403: z.ZodObject<{
|
|
1999
2234
|
statusCode: z.ZodNumber;
|
|
2000
2235
|
message: z.ZodString;
|
|
2001
2236
|
code: z.ZodString;
|
|
@@ -2004,17 +2239,17 @@ export declare const leadAssignmentsContract: {
|
|
|
2004
2239
|
path: z.ZodString;
|
|
2005
2240
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2006
2241
|
}, "strip", z.ZodTypeAny, {
|
|
2007
|
-
message: string;
|
|
2008
2242
|
code: string;
|
|
2009
2243
|
path: string;
|
|
2244
|
+
message: string;
|
|
2010
2245
|
statusCode: number;
|
|
2011
2246
|
timestamp: string;
|
|
2012
2247
|
details?: unknown;
|
|
2013
2248
|
correlationId?: string | undefined;
|
|
2014
2249
|
}, {
|
|
2015
|
-
message: string;
|
|
2016
2250
|
code: string;
|
|
2017
2251
|
path: string;
|
|
2252
|
+
message: string;
|
|
2018
2253
|
statusCode: number;
|
|
2019
2254
|
timestamp: string;
|
|
2020
2255
|
details?: unknown;
|
|
@@ -2029,17 +2264,17 @@ export declare const leadAssignmentsContract: {
|
|
|
2029
2264
|
path: z.ZodString;
|
|
2030
2265
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2031
2266
|
}, "strip", z.ZodTypeAny, {
|
|
2032
|
-
message: string;
|
|
2033
2267
|
code: string;
|
|
2034
2268
|
path: string;
|
|
2269
|
+
message: string;
|
|
2035
2270
|
statusCode: number;
|
|
2036
2271
|
timestamp: string;
|
|
2037
2272
|
details?: unknown;
|
|
2038
2273
|
correlationId?: string | undefined;
|
|
2039
2274
|
}, {
|
|
2040
|
-
message: string;
|
|
2041
2275
|
code: string;
|
|
2042
2276
|
path: string;
|
|
2277
|
+
message: string;
|
|
2043
2278
|
statusCode: number;
|
|
2044
2279
|
timestamp: string;
|
|
2045
2280
|
details?: unknown;
|
|
@@ -2159,13 +2394,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2159
2394
|
firstName: string;
|
|
2160
2395
|
}[] | undefined;
|
|
2161
2396
|
} | null | undefined;
|
|
2397
|
+
deletedAt?: string | null | undefined;
|
|
2162
2398
|
canImpersonateUsers?: {
|
|
2163
2399
|
id: string;
|
|
2164
2400
|
lastName: string;
|
|
2165
2401
|
firstName: string;
|
|
2166
2402
|
}[] | undefined;
|
|
2167
2403
|
dialpadUserId?: string | null | undefined;
|
|
2168
|
-
deletedAt?: string | null | undefined;
|
|
2169
2404
|
}, {
|
|
2170
2405
|
email: string;
|
|
2171
2406
|
createdAt: string | Date;
|
|
@@ -2191,13 +2426,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2191
2426
|
description?: string | null | undefined;
|
|
2192
2427
|
isPrimary?: boolean | undefined;
|
|
2193
2428
|
}[] | undefined;
|
|
2429
|
+
deletedAt?: string | Date | null | undefined;
|
|
2194
2430
|
canImpersonateUsers?: {
|
|
2195
2431
|
id: string;
|
|
2196
2432
|
lastName: string;
|
|
2197
2433
|
firstName: string;
|
|
2198
2434
|
}[] | undefined;
|
|
2199
2435
|
dialpadUserId?: string | null | undefined;
|
|
2200
|
-
deletedAt?: string | Date | null | undefined;
|
|
2201
2436
|
}>>;
|
|
2202
2437
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2203
2438
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -2221,6 +2456,19 @@ export declare const leadAssignmentsContract: {
|
|
|
2221
2456
|
}>>>;
|
|
2222
2457
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2223
2458
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2459
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2460
|
+
id: z.ZodString;
|
|
2461
|
+
dueAt: z.ZodString;
|
|
2462
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
2463
|
+
}, "strip", z.ZodTypeAny, {
|
|
2464
|
+
id: string;
|
|
2465
|
+
dueAt: string;
|
|
2466
|
+
originNotes: string | null;
|
|
2467
|
+
}, {
|
|
2468
|
+
id: string;
|
|
2469
|
+
dueAt: string;
|
|
2470
|
+
originNotes: string | null;
|
|
2471
|
+
}>>>;
|
|
2224
2472
|
}, "strip", z.ZodTypeAny, {
|
|
2225
2473
|
createdAt: string;
|
|
2226
2474
|
updatedAt: string;
|
|
@@ -2256,13 +2504,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2256
2504
|
firstName: string;
|
|
2257
2505
|
}[] | undefined;
|
|
2258
2506
|
} | null | undefined;
|
|
2507
|
+
deletedAt?: string | null | undefined;
|
|
2259
2508
|
canImpersonateUsers?: {
|
|
2260
2509
|
id: string;
|
|
2261
2510
|
lastName: string;
|
|
2262
2511
|
firstName: string;
|
|
2263
2512
|
}[] | undefined;
|
|
2264
2513
|
dialpadUserId?: string | null | undefined;
|
|
2265
|
-
deletedAt?: string | null | undefined;
|
|
2266
2514
|
} | undefined;
|
|
2267
2515
|
lead?: {
|
|
2268
2516
|
name: string;
|
|
@@ -2274,6 +2522,11 @@ export declare const leadAssignmentsContract: {
|
|
|
2274
2522
|
updatedAt: string;
|
|
2275
2523
|
id: string;
|
|
2276
2524
|
} | null | undefined;
|
|
2525
|
+
callback?: {
|
|
2526
|
+
id: string;
|
|
2527
|
+
dueAt: string;
|
|
2528
|
+
originNotes: string | null;
|
|
2529
|
+
} | null | undefined;
|
|
2277
2530
|
}, {
|
|
2278
2531
|
createdAt: string | Date;
|
|
2279
2532
|
updatedAt: string | Date;
|
|
@@ -2309,13 +2562,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2309
2562
|
description?: string | null | undefined;
|
|
2310
2563
|
isPrimary?: boolean | undefined;
|
|
2311
2564
|
}[] | undefined;
|
|
2565
|
+
deletedAt?: string | Date | null | undefined;
|
|
2312
2566
|
canImpersonateUsers?: {
|
|
2313
2567
|
id: string;
|
|
2314
2568
|
lastName: string;
|
|
2315
2569
|
firstName: string;
|
|
2316
2570
|
}[] | undefined;
|
|
2317
2571
|
dialpadUserId?: string | null | undefined;
|
|
2318
|
-
deletedAt?: string | Date | null | undefined;
|
|
2319
2572
|
} | undefined;
|
|
2320
2573
|
lead?: {
|
|
2321
2574
|
name: string;
|
|
@@ -2327,6 +2580,11 @@ export declare const leadAssignmentsContract: {
|
|
|
2327
2580
|
updatedAt: string | Date;
|
|
2328
2581
|
id: string;
|
|
2329
2582
|
} | null | undefined;
|
|
2583
|
+
callback?: {
|
|
2584
|
+
id: string;
|
|
2585
|
+
dueAt: string;
|
|
2586
|
+
originNotes: string | null;
|
|
2587
|
+
} | null | undefined;
|
|
2330
2588
|
}>;
|
|
2331
2589
|
next: z.ZodNullable<z.ZodObject<{
|
|
2332
2590
|
id: z.ZodString;
|
|
@@ -2441,13 +2699,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2441
2699
|
firstName: string;
|
|
2442
2700
|
}[] | undefined;
|
|
2443
2701
|
} | null | undefined;
|
|
2702
|
+
deletedAt?: string | null | undefined;
|
|
2444
2703
|
canImpersonateUsers?: {
|
|
2445
2704
|
id: string;
|
|
2446
2705
|
lastName: string;
|
|
2447
2706
|
firstName: string;
|
|
2448
2707
|
}[] | undefined;
|
|
2449
2708
|
dialpadUserId?: string | null | undefined;
|
|
2450
|
-
deletedAt?: string | null | undefined;
|
|
2451
2709
|
}, {
|
|
2452
2710
|
email: string;
|
|
2453
2711
|
createdAt: string | Date;
|
|
@@ -2473,13 +2731,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2473
2731
|
description?: string | null | undefined;
|
|
2474
2732
|
isPrimary?: boolean | undefined;
|
|
2475
2733
|
}[] | undefined;
|
|
2734
|
+
deletedAt?: string | Date | null | undefined;
|
|
2476
2735
|
canImpersonateUsers?: {
|
|
2477
2736
|
id: string;
|
|
2478
2737
|
lastName: string;
|
|
2479
2738
|
firstName: string;
|
|
2480
2739
|
}[] | undefined;
|
|
2481
2740
|
dialpadUserId?: string | null | undefined;
|
|
2482
|
-
deletedAt?: string | Date | null | undefined;
|
|
2483
2741
|
}>>;
|
|
2484
2742
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2485
2743
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -2503,6 +2761,19 @@ export declare const leadAssignmentsContract: {
|
|
|
2503
2761
|
}>>>;
|
|
2504
2762
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2505
2763
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2764
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2765
|
+
id: z.ZodString;
|
|
2766
|
+
dueAt: z.ZodString;
|
|
2767
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
2768
|
+
}, "strip", z.ZodTypeAny, {
|
|
2769
|
+
id: string;
|
|
2770
|
+
dueAt: string;
|
|
2771
|
+
originNotes: string | null;
|
|
2772
|
+
}, {
|
|
2773
|
+
id: string;
|
|
2774
|
+
dueAt: string;
|
|
2775
|
+
originNotes: string | null;
|
|
2776
|
+
}>>>;
|
|
2506
2777
|
}, "strip", z.ZodTypeAny, {
|
|
2507
2778
|
createdAt: string;
|
|
2508
2779
|
updatedAt: string;
|
|
@@ -2538,13 +2809,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2538
2809
|
firstName: string;
|
|
2539
2810
|
}[] | undefined;
|
|
2540
2811
|
} | null | undefined;
|
|
2812
|
+
deletedAt?: string | null | undefined;
|
|
2541
2813
|
canImpersonateUsers?: {
|
|
2542
2814
|
id: string;
|
|
2543
2815
|
lastName: string;
|
|
2544
2816
|
firstName: string;
|
|
2545
2817
|
}[] | undefined;
|
|
2546
2818
|
dialpadUserId?: string | null | undefined;
|
|
2547
|
-
deletedAt?: string | null | undefined;
|
|
2548
2819
|
} | undefined;
|
|
2549
2820
|
lead?: {
|
|
2550
2821
|
name: string;
|
|
@@ -2556,6 +2827,11 @@ export declare const leadAssignmentsContract: {
|
|
|
2556
2827
|
updatedAt: string;
|
|
2557
2828
|
id: string;
|
|
2558
2829
|
} | null | undefined;
|
|
2830
|
+
callback?: {
|
|
2831
|
+
id: string;
|
|
2832
|
+
dueAt: string;
|
|
2833
|
+
originNotes: string | null;
|
|
2834
|
+
} | null | undefined;
|
|
2559
2835
|
}, {
|
|
2560
2836
|
createdAt: string | Date;
|
|
2561
2837
|
updatedAt: string | Date;
|
|
@@ -2591,13 +2867,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2591
2867
|
description?: string | null | undefined;
|
|
2592
2868
|
isPrimary?: boolean | undefined;
|
|
2593
2869
|
}[] | undefined;
|
|
2870
|
+
deletedAt?: string | Date | null | undefined;
|
|
2594
2871
|
canImpersonateUsers?: {
|
|
2595
2872
|
id: string;
|
|
2596
2873
|
lastName: string;
|
|
2597
2874
|
firstName: string;
|
|
2598
2875
|
}[] | undefined;
|
|
2599
2876
|
dialpadUserId?: string | null | undefined;
|
|
2600
|
-
deletedAt?: string | Date | null | undefined;
|
|
2601
2877
|
} | undefined;
|
|
2602
2878
|
lead?: {
|
|
2603
2879
|
name: string;
|
|
@@ -2609,6 +2885,11 @@ export declare const leadAssignmentsContract: {
|
|
|
2609
2885
|
updatedAt: string | Date;
|
|
2610
2886
|
id: string;
|
|
2611
2887
|
} | null | undefined;
|
|
2888
|
+
callback?: {
|
|
2889
|
+
id: string;
|
|
2890
|
+
dueAt: string;
|
|
2891
|
+
originNotes: string | null;
|
|
2892
|
+
} | null | undefined;
|
|
2612
2893
|
}>>;
|
|
2613
2894
|
}, "strip", z.ZodTypeAny, {
|
|
2614
2895
|
completed: {
|
|
@@ -2646,13 +2927,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2646
2927
|
firstName: string;
|
|
2647
2928
|
}[] | undefined;
|
|
2648
2929
|
} | null | undefined;
|
|
2930
|
+
deletedAt?: string | null | undefined;
|
|
2649
2931
|
canImpersonateUsers?: {
|
|
2650
2932
|
id: string;
|
|
2651
2933
|
lastName: string;
|
|
2652
2934
|
firstName: string;
|
|
2653
2935
|
}[] | undefined;
|
|
2654
2936
|
dialpadUserId?: string | null | undefined;
|
|
2655
|
-
deletedAt?: string | null | undefined;
|
|
2656
2937
|
} | undefined;
|
|
2657
2938
|
lead?: {
|
|
2658
2939
|
name: string;
|
|
@@ -2664,6 +2945,11 @@ export declare const leadAssignmentsContract: {
|
|
|
2664
2945
|
updatedAt: string;
|
|
2665
2946
|
id: string;
|
|
2666
2947
|
} | null | undefined;
|
|
2948
|
+
callback?: {
|
|
2949
|
+
id: string;
|
|
2950
|
+
dueAt: string;
|
|
2951
|
+
originNotes: string | null;
|
|
2952
|
+
} | null | undefined;
|
|
2667
2953
|
};
|
|
2668
2954
|
next: {
|
|
2669
2955
|
createdAt: string;
|
|
@@ -2700,13 +2986,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2700
2986
|
firstName: string;
|
|
2701
2987
|
}[] | undefined;
|
|
2702
2988
|
} | null | undefined;
|
|
2989
|
+
deletedAt?: string | null | undefined;
|
|
2703
2990
|
canImpersonateUsers?: {
|
|
2704
2991
|
id: string;
|
|
2705
2992
|
lastName: string;
|
|
2706
2993
|
firstName: string;
|
|
2707
2994
|
}[] | undefined;
|
|
2708
2995
|
dialpadUserId?: string | null | undefined;
|
|
2709
|
-
deletedAt?: string | null | undefined;
|
|
2710
2996
|
} | undefined;
|
|
2711
2997
|
lead?: {
|
|
2712
2998
|
name: string;
|
|
@@ -2718,6 +3004,11 @@ export declare const leadAssignmentsContract: {
|
|
|
2718
3004
|
updatedAt: string;
|
|
2719
3005
|
id: string;
|
|
2720
3006
|
} | null | undefined;
|
|
3007
|
+
callback?: {
|
|
3008
|
+
id: string;
|
|
3009
|
+
dueAt: string;
|
|
3010
|
+
originNotes: string | null;
|
|
3011
|
+
} | null | undefined;
|
|
2721
3012
|
} | null;
|
|
2722
3013
|
}, {
|
|
2723
3014
|
completed: {
|
|
@@ -2755,13 +3046,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2755
3046
|
description?: string | null | undefined;
|
|
2756
3047
|
isPrimary?: boolean | undefined;
|
|
2757
3048
|
}[] | undefined;
|
|
3049
|
+
deletedAt?: string | Date | null | undefined;
|
|
2758
3050
|
canImpersonateUsers?: {
|
|
2759
3051
|
id: string;
|
|
2760
3052
|
lastName: string;
|
|
2761
3053
|
firstName: string;
|
|
2762
3054
|
}[] | undefined;
|
|
2763
3055
|
dialpadUserId?: string | null | undefined;
|
|
2764
|
-
deletedAt?: string | Date | null | undefined;
|
|
2765
3056
|
} | undefined;
|
|
2766
3057
|
lead?: {
|
|
2767
3058
|
name: string;
|
|
@@ -2773,6 +3064,11 @@ export declare const leadAssignmentsContract: {
|
|
|
2773
3064
|
updatedAt: string | Date;
|
|
2774
3065
|
id: string;
|
|
2775
3066
|
} | null | undefined;
|
|
3067
|
+
callback?: {
|
|
3068
|
+
id: string;
|
|
3069
|
+
dueAt: string;
|
|
3070
|
+
originNotes: string | null;
|
|
3071
|
+
} | null | undefined;
|
|
2776
3072
|
};
|
|
2777
3073
|
next: {
|
|
2778
3074
|
createdAt: string | Date;
|
|
@@ -2809,13 +3105,13 @@ export declare const leadAssignmentsContract: {
|
|
|
2809
3105
|
description?: string | null | undefined;
|
|
2810
3106
|
isPrimary?: boolean | undefined;
|
|
2811
3107
|
}[] | undefined;
|
|
3108
|
+
deletedAt?: string | Date | null | undefined;
|
|
2812
3109
|
canImpersonateUsers?: {
|
|
2813
3110
|
id: string;
|
|
2814
3111
|
lastName: string;
|
|
2815
3112
|
firstName: string;
|
|
2816
3113
|
}[] | undefined;
|
|
2817
3114
|
dialpadUserId?: string | null | undefined;
|
|
2818
|
-
deletedAt?: string | Date | null | undefined;
|
|
2819
3115
|
} | undefined;
|
|
2820
3116
|
lead?: {
|
|
2821
3117
|
name: string;
|
|
@@ -2827,6 +3123,11 @@ export declare const leadAssignmentsContract: {
|
|
|
2827
3123
|
updatedAt: string | Date;
|
|
2828
3124
|
id: string;
|
|
2829
3125
|
} | null | undefined;
|
|
3126
|
+
callback?: {
|
|
3127
|
+
id: string;
|
|
3128
|
+
dueAt: string;
|
|
3129
|
+
originNotes: string | null;
|
|
3130
|
+
} | null | undefined;
|
|
2830
3131
|
} | null;
|
|
2831
3132
|
}>>;
|
|
2832
3133
|
404: z.ZodObject<{
|
|
@@ -2838,17 +3139,17 @@ export declare const leadAssignmentsContract: {
|
|
|
2838
3139
|
path: z.ZodString;
|
|
2839
3140
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2840
3141
|
}, "strip", z.ZodTypeAny, {
|
|
2841
|
-
message: string;
|
|
2842
3142
|
code: string;
|
|
2843
3143
|
path: string;
|
|
3144
|
+
message: string;
|
|
2844
3145
|
statusCode: number;
|
|
2845
3146
|
timestamp: string;
|
|
2846
3147
|
details?: unknown;
|
|
2847
3148
|
correlationId?: string | undefined;
|
|
2848
3149
|
}, {
|
|
2849
|
-
message: string;
|
|
2850
3150
|
code: string;
|
|
2851
3151
|
path: string;
|
|
3152
|
+
message: string;
|
|
2852
3153
|
statusCode: number;
|
|
2853
3154
|
timestamp: string;
|
|
2854
3155
|
details?: unknown;
|
|
@@ -2864,7 +3165,7 @@ export declare const leadAssignmentsContract: {
|
|
|
2864
3165
|
method: "GET";
|
|
2865
3166
|
path: "/v2/lead-assignments/next";
|
|
2866
3167
|
responses: {
|
|
2867
|
-
|
|
3168
|
+
401: z.ZodObject<{
|
|
2868
3169
|
statusCode: z.ZodNumber;
|
|
2869
3170
|
message: z.ZodString;
|
|
2870
3171
|
code: z.ZodString;
|
|
@@ -2873,23 +3174,23 @@ export declare const leadAssignmentsContract: {
|
|
|
2873
3174
|
path: z.ZodString;
|
|
2874
3175
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2875
3176
|
}, "strip", z.ZodTypeAny, {
|
|
2876
|
-
message: string;
|
|
2877
3177
|
code: string;
|
|
2878
3178
|
path: string;
|
|
3179
|
+
message: string;
|
|
2879
3180
|
statusCode: number;
|
|
2880
3181
|
timestamp: string;
|
|
2881
3182
|
details?: unknown;
|
|
2882
3183
|
correlationId?: string | undefined;
|
|
2883
3184
|
}, {
|
|
2884
|
-
message: string;
|
|
2885
3185
|
code: string;
|
|
2886
3186
|
path: string;
|
|
3187
|
+
message: string;
|
|
2887
3188
|
statusCode: number;
|
|
2888
3189
|
timestamp: string;
|
|
2889
3190
|
details?: unknown;
|
|
2890
3191
|
correlationId?: string | undefined;
|
|
2891
3192
|
}>;
|
|
2892
|
-
|
|
3193
|
+
400: z.ZodObject<{
|
|
2893
3194
|
statusCode: z.ZodNumber;
|
|
2894
3195
|
message: z.ZodString;
|
|
2895
3196
|
code: z.ZodString;
|
|
@@ -2898,23 +3199,23 @@ export declare const leadAssignmentsContract: {
|
|
|
2898
3199
|
path: z.ZodString;
|
|
2899
3200
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2900
3201
|
}, "strip", z.ZodTypeAny, {
|
|
2901
|
-
message: string;
|
|
2902
3202
|
code: string;
|
|
2903
3203
|
path: string;
|
|
3204
|
+
message: string;
|
|
2904
3205
|
statusCode: number;
|
|
2905
3206
|
timestamp: string;
|
|
2906
3207
|
details?: unknown;
|
|
2907
3208
|
correlationId?: string | undefined;
|
|
2908
3209
|
}, {
|
|
2909
|
-
message: string;
|
|
2910
3210
|
code: string;
|
|
2911
3211
|
path: string;
|
|
3212
|
+
message: string;
|
|
2912
3213
|
statusCode: number;
|
|
2913
3214
|
timestamp: string;
|
|
2914
3215
|
details?: unknown;
|
|
2915
3216
|
correlationId?: string | undefined;
|
|
2916
3217
|
}>;
|
|
2917
|
-
|
|
3218
|
+
403: z.ZodObject<{
|
|
2918
3219
|
statusCode: z.ZodNumber;
|
|
2919
3220
|
message: z.ZodString;
|
|
2920
3221
|
code: z.ZodString;
|
|
@@ -2923,17 +3224,17 @@ export declare const leadAssignmentsContract: {
|
|
|
2923
3224
|
path: z.ZodString;
|
|
2924
3225
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2925
3226
|
}, "strip", z.ZodTypeAny, {
|
|
2926
|
-
message: string;
|
|
2927
3227
|
code: string;
|
|
2928
3228
|
path: string;
|
|
3229
|
+
message: string;
|
|
2929
3230
|
statusCode: number;
|
|
2930
3231
|
timestamp: string;
|
|
2931
3232
|
details?: unknown;
|
|
2932
3233
|
correlationId?: string | undefined;
|
|
2933
3234
|
}, {
|
|
2934
|
-
message: string;
|
|
2935
3235
|
code: string;
|
|
2936
3236
|
path: string;
|
|
3237
|
+
message: string;
|
|
2937
3238
|
statusCode: number;
|
|
2938
3239
|
timestamp: string;
|
|
2939
3240
|
details?: unknown;
|
|
@@ -2948,17 +3249,17 @@ export declare const leadAssignmentsContract: {
|
|
|
2948
3249
|
path: z.ZodString;
|
|
2949
3250
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2950
3251
|
}, "strip", z.ZodTypeAny, {
|
|
2951
|
-
message: string;
|
|
2952
3252
|
code: string;
|
|
2953
3253
|
path: string;
|
|
3254
|
+
message: string;
|
|
2954
3255
|
statusCode: number;
|
|
2955
3256
|
timestamp: string;
|
|
2956
3257
|
details?: unknown;
|
|
2957
3258
|
correlationId?: string | undefined;
|
|
2958
3259
|
}, {
|
|
2959
|
-
message: string;
|
|
2960
3260
|
code: string;
|
|
2961
3261
|
path: string;
|
|
3262
|
+
message: string;
|
|
2962
3263
|
statusCode: number;
|
|
2963
3264
|
timestamp: string;
|
|
2964
3265
|
details?: unknown;
|
|
@@ -3077,13 +3378,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3077
3378
|
firstName: string;
|
|
3078
3379
|
}[] | undefined;
|
|
3079
3380
|
} | null | undefined;
|
|
3381
|
+
deletedAt?: string | null | undefined;
|
|
3080
3382
|
canImpersonateUsers?: {
|
|
3081
3383
|
id: string;
|
|
3082
3384
|
lastName: string;
|
|
3083
3385
|
firstName: string;
|
|
3084
3386
|
}[] | undefined;
|
|
3085
3387
|
dialpadUserId?: string | null | undefined;
|
|
3086
|
-
deletedAt?: string | null | undefined;
|
|
3087
3388
|
}, {
|
|
3088
3389
|
email: string;
|
|
3089
3390
|
createdAt: string | Date;
|
|
@@ -3109,13 +3410,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3109
3410
|
description?: string | null | undefined;
|
|
3110
3411
|
isPrimary?: boolean | undefined;
|
|
3111
3412
|
}[] | undefined;
|
|
3413
|
+
deletedAt?: string | Date | null | undefined;
|
|
3112
3414
|
canImpersonateUsers?: {
|
|
3113
3415
|
id: string;
|
|
3114
3416
|
lastName: string;
|
|
3115
3417
|
firstName: string;
|
|
3116
3418
|
}[] | undefined;
|
|
3117
3419
|
dialpadUserId?: string | null | undefined;
|
|
3118
|
-
deletedAt?: string | Date | null | undefined;
|
|
3119
3420
|
}>>;
|
|
3120
3421
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3121
3422
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -3139,6 +3440,19 @@ export declare const leadAssignmentsContract: {
|
|
|
3139
3440
|
}>>>;
|
|
3140
3441
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3141
3442
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3443
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3444
|
+
id: z.ZodString;
|
|
3445
|
+
dueAt: z.ZodString;
|
|
3446
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
3447
|
+
}, "strip", z.ZodTypeAny, {
|
|
3448
|
+
id: string;
|
|
3449
|
+
dueAt: string;
|
|
3450
|
+
originNotes: string | null;
|
|
3451
|
+
}, {
|
|
3452
|
+
id: string;
|
|
3453
|
+
dueAt: string;
|
|
3454
|
+
originNotes: string | null;
|
|
3455
|
+
}>>>;
|
|
3142
3456
|
}, "strip", z.ZodTypeAny, {
|
|
3143
3457
|
createdAt: string;
|
|
3144
3458
|
updatedAt: string;
|
|
@@ -3174,13 +3488,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3174
3488
|
firstName: string;
|
|
3175
3489
|
}[] | undefined;
|
|
3176
3490
|
} | null | undefined;
|
|
3491
|
+
deletedAt?: string | null | undefined;
|
|
3177
3492
|
canImpersonateUsers?: {
|
|
3178
3493
|
id: string;
|
|
3179
3494
|
lastName: string;
|
|
3180
3495
|
firstName: string;
|
|
3181
3496
|
}[] | undefined;
|
|
3182
3497
|
dialpadUserId?: string | null | undefined;
|
|
3183
|
-
deletedAt?: string | null | undefined;
|
|
3184
3498
|
} | undefined;
|
|
3185
3499
|
lead?: {
|
|
3186
3500
|
name: string;
|
|
@@ -3192,6 +3506,11 @@ export declare const leadAssignmentsContract: {
|
|
|
3192
3506
|
updatedAt: string;
|
|
3193
3507
|
id: string;
|
|
3194
3508
|
} | null | undefined;
|
|
3509
|
+
callback?: {
|
|
3510
|
+
id: string;
|
|
3511
|
+
dueAt: string;
|
|
3512
|
+
originNotes: string | null;
|
|
3513
|
+
} | null | undefined;
|
|
3195
3514
|
}, {
|
|
3196
3515
|
createdAt: string | Date;
|
|
3197
3516
|
updatedAt: string | Date;
|
|
@@ -3227,13 +3546,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3227
3546
|
description?: string | null | undefined;
|
|
3228
3547
|
isPrimary?: boolean | undefined;
|
|
3229
3548
|
}[] | undefined;
|
|
3549
|
+
deletedAt?: string | Date | null | undefined;
|
|
3230
3550
|
canImpersonateUsers?: {
|
|
3231
3551
|
id: string;
|
|
3232
3552
|
lastName: string;
|
|
3233
3553
|
firstName: string;
|
|
3234
3554
|
}[] | undefined;
|
|
3235
3555
|
dialpadUserId?: string | null | undefined;
|
|
3236
|
-
deletedAt?: string | Date | null | undefined;
|
|
3237
3556
|
} | undefined;
|
|
3238
3557
|
lead?: {
|
|
3239
3558
|
name: string;
|
|
@@ -3245,6 +3564,11 @@ export declare const leadAssignmentsContract: {
|
|
|
3245
3564
|
updatedAt: string | Date;
|
|
3246
3565
|
id: string;
|
|
3247
3566
|
} | null | undefined;
|
|
3567
|
+
callback?: {
|
|
3568
|
+
id: string;
|
|
3569
|
+
dueAt: string;
|
|
3570
|
+
originNotes: string | null;
|
|
3571
|
+
} | null | undefined;
|
|
3248
3572
|
}>>;
|
|
3249
3573
|
};
|
|
3250
3574
|
};
|
|
@@ -3264,7 +3588,7 @@ export declare const leadAssignmentsContract: {
|
|
|
3264
3588
|
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
3265
3589
|
path: "/v2/lead-assignments/:id/cancel";
|
|
3266
3590
|
responses: {
|
|
3267
|
-
|
|
3591
|
+
401: z.ZodObject<{
|
|
3268
3592
|
statusCode: z.ZodNumber;
|
|
3269
3593
|
message: z.ZodString;
|
|
3270
3594
|
code: z.ZodString;
|
|
@@ -3273,23 +3597,23 @@ export declare const leadAssignmentsContract: {
|
|
|
3273
3597
|
path: z.ZodString;
|
|
3274
3598
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3275
3599
|
}, "strip", z.ZodTypeAny, {
|
|
3276
|
-
message: string;
|
|
3277
3600
|
code: string;
|
|
3278
3601
|
path: string;
|
|
3602
|
+
message: string;
|
|
3279
3603
|
statusCode: number;
|
|
3280
3604
|
timestamp: string;
|
|
3281
3605
|
details?: unknown;
|
|
3282
3606
|
correlationId?: string | undefined;
|
|
3283
3607
|
}, {
|
|
3284
|
-
message: string;
|
|
3285
3608
|
code: string;
|
|
3286
3609
|
path: string;
|
|
3610
|
+
message: string;
|
|
3287
3611
|
statusCode: number;
|
|
3288
3612
|
timestamp: string;
|
|
3289
3613
|
details?: unknown;
|
|
3290
3614
|
correlationId?: string | undefined;
|
|
3291
3615
|
}>;
|
|
3292
|
-
|
|
3616
|
+
400: z.ZodObject<{
|
|
3293
3617
|
statusCode: z.ZodNumber;
|
|
3294
3618
|
message: z.ZodString;
|
|
3295
3619
|
code: z.ZodString;
|
|
@@ -3298,23 +3622,23 @@ export declare const leadAssignmentsContract: {
|
|
|
3298
3622
|
path: z.ZodString;
|
|
3299
3623
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3300
3624
|
}, "strip", z.ZodTypeAny, {
|
|
3301
|
-
message: string;
|
|
3302
3625
|
code: string;
|
|
3303
3626
|
path: string;
|
|
3627
|
+
message: string;
|
|
3304
3628
|
statusCode: number;
|
|
3305
3629
|
timestamp: string;
|
|
3306
3630
|
details?: unknown;
|
|
3307
3631
|
correlationId?: string | undefined;
|
|
3308
3632
|
}, {
|
|
3309
|
-
message: string;
|
|
3310
3633
|
code: string;
|
|
3311
3634
|
path: string;
|
|
3635
|
+
message: string;
|
|
3312
3636
|
statusCode: number;
|
|
3313
3637
|
timestamp: string;
|
|
3314
3638
|
details?: unknown;
|
|
3315
3639
|
correlationId?: string | undefined;
|
|
3316
3640
|
}>;
|
|
3317
|
-
|
|
3641
|
+
403: z.ZodObject<{
|
|
3318
3642
|
statusCode: z.ZodNumber;
|
|
3319
3643
|
message: z.ZodString;
|
|
3320
3644
|
code: z.ZodString;
|
|
@@ -3323,17 +3647,17 @@ export declare const leadAssignmentsContract: {
|
|
|
3323
3647
|
path: z.ZodString;
|
|
3324
3648
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3325
3649
|
}, "strip", z.ZodTypeAny, {
|
|
3326
|
-
message: string;
|
|
3327
3650
|
code: string;
|
|
3328
3651
|
path: string;
|
|
3652
|
+
message: string;
|
|
3329
3653
|
statusCode: number;
|
|
3330
3654
|
timestamp: string;
|
|
3331
3655
|
details?: unknown;
|
|
3332
3656
|
correlationId?: string | undefined;
|
|
3333
3657
|
}, {
|
|
3334
|
-
message: string;
|
|
3335
3658
|
code: string;
|
|
3336
3659
|
path: string;
|
|
3660
|
+
message: string;
|
|
3337
3661
|
statusCode: number;
|
|
3338
3662
|
timestamp: string;
|
|
3339
3663
|
details?: unknown;
|
|
@@ -3348,17 +3672,17 @@ export declare const leadAssignmentsContract: {
|
|
|
3348
3672
|
path: z.ZodString;
|
|
3349
3673
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3350
3674
|
}, "strip", z.ZodTypeAny, {
|
|
3351
|
-
message: string;
|
|
3352
3675
|
code: string;
|
|
3353
3676
|
path: string;
|
|
3677
|
+
message: string;
|
|
3354
3678
|
statusCode: number;
|
|
3355
3679
|
timestamp: string;
|
|
3356
3680
|
details?: unknown;
|
|
3357
3681
|
correlationId?: string | undefined;
|
|
3358
3682
|
}, {
|
|
3359
|
-
message: string;
|
|
3360
3683
|
code: string;
|
|
3361
3684
|
path: string;
|
|
3685
|
+
message: string;
|
|
3362
3686
|
statusCode: number;
|
|
3363
3687
|
timestamp: string;
|
|
3364
3688
|
details?: unknown;
|
|
@@ -3478,13 +3802,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3478
3802
|
firstName: string;
|
|
3479
3803
|
}[] | undefined;
|
|
3480
3804
|
} | null | undefined;
|
|
3805
|
+
deletedAt?: string | null | undefined;
|
|
3481
3806
|
canImpersonateUsers?: {
|
|
3482
3807
|
id: string;
|
|
3483
3808
|
lastName: string;
|
|
3484
3809
|
firstName: string;
|
|
3485
3810
|
}[] | undefined;
|
|
3486
3811
|
dialpadUserId?: string | null | undefined;
|
|
3487
|
-
deletedAt?: string | null | undefined;
|
|
3488
3812
|
}, {
|
|
3489
3813
|
email: string;
|
|
3490
3814
|
createdAt: string | Date;
|
|
@@ -3510,13 +3834,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3510
3834
|
description?: string | null | undefined;
|
|
3511
3835
|
isPrimary?: boolean | undefined;
|
|
3512
3836
|
}[] | undefined;
|
|
3837
|
+
deletedAt?: string | Date | null | undefined;
|
|
3513
3838
|
canImpersonateUsers?: {
|
|
3514
3839
|
id: string;
|
|
3515
3840
|
lastName: string;
|
|
3516
3841
|
firstName: string;
|
|
3517
3842
|
}[] | undefined;
|
|
3518
3843
|
dialpadUserId?: string | null | undefined;
|
|
3519
|
-
deletedAt?: string | Date | null | undefined;
|
|
3520
3844
|
}>>;
|
|
3521
3845
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3522
3846
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -3540,6 +3864,19 @@ export declare const leadAssignmentsContract: {
|
|
|
3540
3864
|
}>>>;
|
|
3541
3865
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3542
3866
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3867
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3868
|
+
id: z.ZodString;
|
|
3869
|
+
dueAt: z.ZodString;
|
|
3870
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
3871
|
+
}, "strip", z.ZodTypeAny, {
|
|
3872
|
+
id: string;
|
|
3873
|
+
dueAt: string;
|
|
3874
|
+
originNotes: string | null;
|
|
3875
|
+
}, {
|
|
3876
|
+
id: string;
|
|
3877
|
+
dueAt: string;
|
|
3878
|
+
originNotes: string | null;
|
|
3879
|
+
}>>>;
|
|
3543
3880
|
}, "strip", z.ZodTypeAny, {
|
|
3544
3881
|
createdAt: string;
|
|
3545
3882
|
updatedAt: string;
|
|
@@ -3575,13 +3912,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3575
3912
|
firstName: string;
|
|
3576
3913
|
}[] | undefined;
|
|
3577
3914
|
} | null | undefined;
|
|
3915
|
+
deletedAt?: string | null | undefined;
|
|
3578
3916
|
canImpersonateUsers?: {
|
|
3579
3917
|
id: string;
|
|
3580
3918
|
lastName: string;
|
|
3581
3919
|
firstName: string;
|
|
3582
3920
|
}[] | undefined;
|
|
3583
3921
|
dialpadUserId?: string | null | undefined;
|
|
3584
|
-
deletedAt?: string | null | undefined;
|
|
3585
3922
|
} | undefined;
|
|
3586
3923
|
lead?: {
|
|
3587
3924
|
name: string;
|
|
@@ -3593,6 +3930,11 @@ export declare const leadAssignmentsContract: {
|
|
|
3593
3930
|
updatedAt: string;
|
|
3594
3931
|
id: string;
|
|
3595
3932
|
} | null | undefined;
|
|
3933
|
+
callback?: {
|
|
3934
|
+
id: string;
|
|
3935
|
+
dueAt: string;
|
|
3936
|
+
originNotes: string | null;
|
|
3937
|
+
} | null | undefined;
|
|
3596
3938
|
}, {
|
|
3597
3939
|
createdAt: string | Date;
|
|
3598
3940
|
updatedAt: string | Date;
|
|
@@ -3628,13 +3970,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3628
3970
|
description?: string | null | undefined;
|
|
3629
3971
|
isPrimary?: boolean | undefined;
|
|
3630
3972
|
}[] | undefined;
|
|
3973
|
+
deletedAt?: string | Date | null | undefined;
|
|
3631
3974
|
canImpersonateUsers?: {
|
|
3632
3975
|
id: string;
|
|
3633
3976
|
lastName: string;
|
|
3634
3977
|
firstName: string;
|
|
3635
3978
|
}[] | undefined;
|
|
3636
3979
|
dialpadUserId?: string | null | undefined;
|
|
3637
|
-
deletedAt?: string | Date | null | undefined;
|
|
3638
3980
|
} | undefined;
|
|
3639
3981
|
lead?: {
|
|
3640
3982
|
name: string;
|
|
@@ -3646,6 +3988,11 @@ export declare const leadAssignmentsContract: {
|
|
|
3646
3988
|
updatedAt: string | Date;
|
|
3647
3989
|
id: string;
|
|
3648
3990
|
} | null | undefined;
|
|
3991
|
+
callback?: {
|
|
3992
|
+
id: string;
|
|
3993
|
+
dueAt: string;
|
|
3994
|
+
originNotes: string | null;
|
|
3995
|
+
} | null | undefined;
|
|
3649
3996
|
}>;
|
|
3650
3997
|
next: z.ZodNullable<z.ZodObject<{
|
|
3651
3998
|
id: z.ZodString;
|
|
@@ -3760,13 +4107,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3760
4107
|
firstName: string;
|
|
3761
4108
|
}[] | undefined;
|
|
3762
4109
|
} | null | undefined;
|
|
4110
|
+
deletedAt?: string | null | undefined;
|
|
3763
4111
|
canImpersonateUsers?: {
|
|
3764
4112
|
id: string;
|
|
3765
4113
|
lastName: string;
|
|
3766
4114
|
firstName: string;
|
|
3767
4115
|
}[] | undefined;
|
|
3768
4116
|
dialpadUserId?: string | null | undefined;
|
|
3769
|
-
deletedAt?: string | null | undefined;
|
|
3770
4117
|
}, {
|
|
3771
4118
|
email: string;
|
|
3772
4119
|
createdAt: string | Date;
|
|
@@ -3792,13 +4139,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3792
4139
|
description?: string | null | undefined;
|
|
3793
4140
|
isPrimary?: boolean | undefined;
|
|
3794
4141
|
}[] | undefined;
|
|
4142
|
+
deletedAt?: string | Date | null | undefined;
|
|
3795
4143
|
canImpersonateUsers?: {
|
|
3796
4144
|
id: string;
|
|
3797
4145
|
lastName: string;
|
|
3798
4146
|
firstName: string;
|
|
3799
4147
|
}[] | undefined;
|
|
3800
4148
|
dialpadUserId?: string | null | undefined;
|
|
3801
|
-
deletedAt?: string | Date | null | undefined;
|
|
3802
4149
|
}>>;
|
|
3803
4150
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3804
4151
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -3822,6 +4169,19 @@ export declare const leadAssignmentsContract: {
|
|
|
3822
4169
|
}>>>;
|
|
3823
4170
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3824
4171
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4172
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4173
|
+
id: z.ZodString;
|
|
4174
|
+
dueAt: z.ZodString;
|
|
4175
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
4176
|
+
}, "strip", z.ZodTypeAny, {
|
|
4177
|
+
id: string;
|
|
4178
|
+
dueAt: string;
|
|
4179
|
+
originNotes: string | null;
|
|
4180
|
+
}, {
|
|
4181
|
+
id: string;
|
|
4182
|
+
dueAt: string;
|
|
4183
|
+
originNotes: string | null;
|
|
4184
|
+
}>>>;
|
|
3825
4185
|
}, "strip", z.ZodTypeAny, {
|
|
3826
4186
|
createdAt: string;
|
|
3827
4187
|
updatedAt: string;
|
|
@@ -3857,13 +4217,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3857
4217
|
firstName: string;
|
|
3858
4218
|
}[] | undefined;
|
|
3859
4219
|
} | null | undefined;
|
|
4220
|
+
deletedAt?: string | null | undefined;
|
|
3860
4221
|
canImpersonateUsers?: {
|
|
3861
4222
|
id: string;
|
|
3862
4223
|
lastName: string;
|
|
3863
4224
|
firstName: string;
|
|
3864
4225
|
}[] | undefined;
|
|
3865
4226
|
dialpadUserId?: string | null | undefined;
|
|
3866
|
-
deletedAt?: string | null | undefined;
|
|
3867
4227
|
} | undefined;
|
|
3868
4228
|
lead?: {
|
|
3869
4229
|
name: string;
|
|
@@ -3875,6 +4235,11 @@ export declare const leadAssignmentsContract: {
|
|
|
3875
4235
|
updatedAt: string;
|
|
3876
4236
|
id: string;
|
|
3877
4237
|
} | null | undefined;
|
|
4238
|
+
callback?: {
|
|
4239
|
+
id: string;
|
|
4240
|
+
dueAt: string;
|
|
4241
|
+
originNotes: string | null;
|
|
4242
|
+
} | null | undefined;
|
|
3878
4243
|
}, {
|
|
3879
4244
|
createdAt: string | Date;
|
|
3880
4245
|
updatedAt: string | Date;
|
|
@@ -3910,13 +4275,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3910
4275
|
description?: string | null | undefined;
|
|
3911
4276
|
isPrimary?: boolean | undefined;
|
|
3912
4277
|
}[] | undefined;
|
|
4278
|
+
deletedAt?: string | Date | null | undefined;
|
|
3913
4279
|
canImpersonateUsers?: {
|
|
3914
4280
|
id: string;
|
|
3915
4281
|
lastName: string;
|
|
3916
4282
|
firstName: string;
|
|
3917
4283
|
}[] | undefined;
|
|
3918
4284
|
dialpadUserId?: string | null | undefined;
|
|
3919
|
-
deletedAt?: string | Date | null | undefined;
|
|
3920
4285
|
} | undefined;
|
|
3921
4286
|
lead?: {
|
|
3922
4287
|
name: string;
|
|
@@ -3928,6 +4293,11 @@ export declare const leadAssignmentsContract: {
|
|
|
3928
4293
|
updatedAt: string | Date;
|
|
3929
4294
|
id: string;
|
|
3930
4295
|
} | null | undefined;
|
|
4296
|
+
callback?: {
|
|
4297
|
+
id: string;
|
|
4298
|
+
dueAt: string;
|
|
4299
|
+
originNotes: string | null;
|
|
4300
|
+
} | null | undefined;
|
|
3931
4301
|
}>>;
|
|
3932
4302
|
}, "strip", z.ZodTypeAny, {
|
|
3933
4303
|
cancelled: {
|
|
@@ -3965,13 +4335,13 @@ export declare const leadAssignmentsContract: {
|
|
|
3965
4335
|
firstName: string;
|
|
3966
4336
|
}[] | undefined;
|
|
3967
4337
|
} | null | undefined;
|
|
4338
|
+
deletedAt?: string | null | undefined;
|
|
3968
4339
|
canImpersonateUsers?: {
|
|
3969
4340
|
id: string;
|
|
3970
4341
|
lastName: string;
|
|
3971
4342
|
firstName: string;
|
|
3972
4343
|
}[] | undefined;
|
|
3973
4344
|
dialpadUserId?: string | null | undefined;
|
|
3974
|
-
deletedAt?: string | null | undefined;
|
|
3975
4345
|
} | undefined;
|
|
3976
4346
|
lead?: {
|
|
3977
4347
|
name: string;
|
|
@@ -3983,6 +4353,11 @@ export declare const leadAssignmentsContract: {
|
|
|
3983
4353
|
updatedAt: string;
|
|
3984
4354
|
id: string;
|
|
3985
4355
|
} | null | undefined;
|
|
4356
|
+
callback?: {
|
|
4357
|
+
id: string;
|
|
4358
|
+
dueAt: string;
|
|
4359
|
+
originNotes: string | null;
|
|
4360
|
+
} | null | undefined;
|
|
3986
4361
|
};
|
|
3987
4362
|
next: {
|
|
3988
4363
|
createdAt: string;
|
|
@@ -4019,13 +4394,13 @@ export declare const leadAssignmentsContract: {
|
|
|
4019
4394
|
firstName: string;
|
|
4020
4395
|
}[] | undefined;
|
|
4021
4396
|
} | null | undefined;
|
|
4397
|
+
deletedAt?: string | null | undefined;
|
|
4022
4398
|
canImpersonateUsers?: {
|
|
4023
4399
|
id: string;
|
|
4024
4400
|
lastName: string;
|
|
4025
4401
|
firstName: string;
|
|
4026
4402
|
}[] | undefined;
|
|
4027
4403
|
dialpadUserId?: string | null | undefined;
|
|
4028
|
-
deletedAt?: string | null | undefined;
|
|
4029
4404
|
} | undefined;
|
|
4030
4405
|
lead?: {
|
|
4031
4406
|
name: string;
|
|
@@ -4037,6 +4412,11 @@ export declare const leadAssignmentsContract: {
|
|
|
4037
4412
|
updatedAt: string;
|
|
4038
4413
|
id: string;
|
|
4039
4414
|
} | null | undefined;
|
|
4415
|
+
callback?: {
|
|
4416
|
+
id: string;
|
|
4417
|
+
dueAt: string;
|
|
4418
|
+
originNotes: string | null;
|
|
4419
|
+
} | null | undefined;
|
|
4040
4420
|
} | null;
|
|
4041
4421
|
}, {
|
|
4042
4422
|
cancelled: {
|
|
@@ -4074,13 +4454,13 @@ export declare const leadAssignmentsContract: {
|
|
|
4074
4454
|
description?: string | null | undefined;
|
|
4075
4455
|
isPrimary?: boolean | undefined;
|
|
4076
4456
|
}[] | undefined;
|
|
4457
|
+
deletedAt?: string | Date | null | undefined;
|
|
4077
4458
|
canImpersonateUsers?: {
|
|
4078
4459
|
id: string;
|
|
4079
4460
|
lastName: string;
|
|
4080
4461
|
firstName: string;
|
|
4081
4462
|
}[] | undefined;
|
|
4082
4463
|
dialpadUserId?: string | null | undefined;
|
|
4083
|
-
deletedAt?: string | Date | null | undefined;
|
|
4084
4464
|
} | undefined;
|
|
4085
4465
|
lead?: {
|
|
4086
4466
|
name: string;
|
|
@@ -4092,6 +4472,11 @@ export declare const leadAssignmentsContract: {
|
|
|
4092
4472
|
updatedAt: string | Date;
|
|
4093
4473
|
id: string;
|
|
4094
4474
|
} | null | undefined;
|
|
4475
|
+
callback?: {
|
|
4476
|
+
id: string;
|
|
4477
|
+
dueAt: string;
|
|
4478
|
+
originNotes: string | null;
|
|
4479
|
+
} | null | undefined;
|
|
4095
4480
|
};
|
|
4096
4481
|
next: {
|
|
4097
4482
|
createdAt: string | Date;
|
|
@@ -4128,13 +4513,13 @@ export declare const leadAssignmentsContract: {
|
|
|
4128
4513
|
description?: string | null | undefined;
|
|
4129
4514
|
isPrimary?: boolean | undefined;
|
|
4130
4515
|
}[] | undefined;
|
|
4516
|
+
deletedAt?: string | Date | null | undefined;
|
|
4131
4517
|
canImpersonateUsers?: {
|
|
4132
4518
|
id: string;
|
|
4133
4519
|
lastName: string;
|
|
4134
4520
|
firstName: string;
|
|
4135
4521
|
}[] | undefined;
|
|
4136
4522
|
dialpadUserId?: string | null | undefined;
|
|
4137
|
-
deletedAt?: string | Date | null | undefined;
|
|
4138
4523
|
} | undefined;
|
|
4139
4524
|
lead?: {
|
|
4140
4525
|
name: string;
|
|
@@ -4146,6 +4531,11 @@ export declare const leadAssignmentsContract: {
|
|
|
4146
4531
|
updatedAt: string | Date;
|
|
4147
4532
|
id: string;
|
|
4148
4533
|
} | null | undefined;
|
|
4534
|
+
callback?: {
|
|
4535
|
+
id: string;
|
|
4536
|
+
dueAt: string;
|
|
4537
|
+
originNotes: string | null;
|
|
4538
|
+
} | null | undefined;
|
|
4149
4539
|
} | null;
|
|
4150
4540
|
}>;
|
|
4151
4541
|
404: z.ZodObject<{
|
|
@@ -4157,17 +4547,17 @@ export declare const leadAssignmentsContract: {
|
|
|
4157
4547
|
path: z.ZodString;
|
|
4158
4548
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
4159
4549
|
}, "strip", z.ZodTypeAny, {
|
|
4160
|
-
message: string;
|
|
4161
4550
|
code: string;
|
|
4162
4551
|
path: string;
|
|
4552
|
+
message: string;
|
|
4163
4553
|
statusCode: number;
|
|
4164
4554
|
timestamp: string;
|
|
4165
4555
|
details?: unknown;
|
|
4166
4556
|
correlationId?: string | undefined;
|
|
4167
4557
|
}, {
|
|
4168
|
-
message: string;
|
|
4169
4558
|
code: string;
|
|
4170
4559
|
path: string;
|
|
4560
|
+
message: string;
|
|
4171
4561
|
statusCode: number;
|
|
4172
4562
|
timestamp: string;
|
|
4173
4563
|
details?: unknown;
|
|
@@ -4190,7 +4580,7 @@ export declare const leadAssignmentsContract: {
|
|
|
4190
4580
|
method: "GET";
|
|
4191
4581
|
path: "/v2/lead-assignments/:id";
|
|
4192
4582
|
responses: {
|
|
4193
|
-
|
|
4583
|
+
401: z.ZodObject<{
|
|
4194
4584
|
statusCode: z.ZodNumber;
|
|
4195
4585
|
message: z.ZodString;
|
|
4196
4586
|
code: z.ZodString;
|
|
@@ -4199,23 +4589,23 @@ export declare const leadAssignmentsContract: {
|
|
|
4199
4589
|
path: z.ZodString;
|
|
4200
4590
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
4201
4591
|
}, "strip", z.ZodTypeAny, {
|
|
4202
|
-
message: string;
|
|
4203
4592
|
code: string;
|
|
4204
4593
|
path: string;
|
|
4594
|
+
message: string;
|
|
4205
4595
|
statusCode: number;
|
|
4206
4596
|
timestamp: string;
|
|
4207
4597
|
details?: unknown;
|
|
4208
4598
|
correlationId?: string | undefined;
|
|
4209
4599
|
}, {
|
|
4210
|
-
message: string;
|
|
4211
4600
|
code: string;
|
|
4212
4601
|
path: string;
|
|
4602
|
+
message: string;
|
|
4213
4603
|
statusCode: number;
|
|
4214
4604
|
timestamp: string;
|
|
4215
4605
|
details?: unknown;
|
|
4216
4606
|
correlationId?: string | undefined;
|
|
4217
4607
|
}>;
|
|
4218
|
-
|
|
4608
|
+
400: z.ZodObject<{
|
|
4219
4609
|
statusCode: z.ZodNumber;
|
|
4220
4610
|
message: z.ZodString;
|
|
4221
4611
|
code: z.ZodString;
|
|
@@ -4224,23 +4614,23 @@ export declare const leadAssignmentsContract: {
|
|
|
4224
4614
|
path: z.ZodString;
|
|
4225
4615
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
4226
4616
|
}, "strip", z.ZodTypeAny, {
|
|
4227
|
-
message: string;
|
|
4228
4617
|
code: string;
|
|
4229
4618
|
path: string;
|
|
4619
|
+
message: string;
|
|
4230
4620
|
statusCode: number;
|
|
4231
4621
|
timestamp: string;
|
|
4232
4622
|
details?: unknown;
|
|
4233
4623
|
correlationId?: string | undefined;
|
|
4234
4624
|
}, {
|
|
4235
|
-
message: string;
|
|
4236
4625
|
code: string;
|
|
4237
4626
|
path: string;
|
|
4627
|
+
message: string;
|
|
4238
4628
|
statusCode: number;
|
|
4239
4629
|
timestamp: string;
|
|
4240
4630
|
details?: unknown;
|
|
4241
4631
|
correlationId?: string | undefined;
|
|
4242
4632
|
}>;
|
|
4243
|
-
|
|
4633
|
+
403: z.ZodObject<{
|
|
4244
4634
|
statusCode: z.ZodNumber;
|
|
4245
4635
|
message: z.ZodString;
|
|
4246
4636
|
code: z.ZodString;
|
|
@@ -4249,17 +4639,17 @@ export declare const leadAssignmentsContract: {
|
|
|
4249
4639
|
path: z.ZodString;
|
|
4250
4640
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
4251
4641
|
}, "strip", z.ZodTypeAny, {
|
|
4252
|
-
message: string;
|
|
4253
4642
|
code: string;
|
|
4254
4643
|
path: string;
|
|
4644
|
+
message: string;
|
|
4255
4645
|
statusCode: number;
|
|
4256
4646
|
timestamp: string;
|
|
4257
4647
|
details?: unknown;
|
|
4258
4648
|
correlationId?: string | undefined;
|
|
4259
4649
|
}, {
|
|
4260
|
-
message: string;
|
|
4261
4650
|
code: string;
|
|
4262
4651
|
path: string;
|
|
4652
|
+
message: string;
|
|
4263
4653
|
statusCode: number;
|
|
4264
4654
|
timestamp: string;
|
|
4265
4655
|
details?: unknown;
|
|
@@ -4274,17 +4664,17 @@ export declare const leadAssignmentsContract: {
|
|
|
4274
4664
|
path: z.ZodString;
|
|
4275
4665
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
4276
4666
|
}, "strip", z.ZodTypeAny, {
|
|
4277
|
-
message: string;
|
|
4278
4667
|
code: string;
|
|
4279
4668
|
path: string;
|
|
4669
|
+
message: string;
|
|
4280
4670
|
statusCode: number;
|
|
4281
4671
|
timestamp: string;
|
|
4282
4672
|
details?: unknown;
|
|
4283
4673
|
correlationId?: string | undefined;
|
|
4284
4674
|
}, {
|
|
4285
|
-
message: string;
|
|
4286
4675
|
code: string;
|
|
4287
4676
|
path: string;
|
|
4677
|
+
message: string;
|
|
4288
4678
|
statusCode: number;
|
|
4289
4679
|
timestamp: string;
|
|
4290
4680
|
details?: unknown;
|
|
@@ -4403,13 +4793,13 @@ export declare const leadAssignmentsContract: {
|
|
|
4403
4793
|
firstName: string;
|
|
4404
4794
|
}[] | undefined;
|
|
4405
4795
|
} | null | undefined;
|
|
4796
|
+
deletedAt?: string | null | undefined;
|
|
4406
4797
|
canImpersonateUsers?: {
|
|
4407
4798
|
id: string;
|
|
4408
4799
|
lastName: string;
|
|
4409
4800
|
firstName: string;
|
|
4410
4801
|
}[] | undefined;
|
|
4411
4802
|
dialpadUserId?: string | null | undefined;
|
|
4412
|
-
deletedAt?: string | null | undefined;
|
|
4413
4803
|
}, {
|
|
4414
4804
|
email: string;
|
|
4415
4805
|
createdAt: string | Date;
|
|
@@ -4435,13 +4825,13 @@ export declare const leadAssignmentsContract: {
|
|
|
4435
4825
|
description?: string | null | undefined;
|
|
4436
4826
|
isPrimary?: boolean | undefined;
|
|
4437
4827
|
}[] | undefined;
|
|
4828
|
+
deletedAt?: string | Date | null | undefined;
|
|
4438
4829
|
canImpersonateUsers?: {
|
|
4439
4830
|
id: string;
|
|
4440
4831
|
lastName: string;
|
|
4441
4832
|
firstName: string;
|
|
4442
4833
|
}[] | undefined;
|
|
4443
4834
|
dialpadUserId?: string | null | undefined;
|
|
4444
|
-
deletedAt?: string | Date | null | undefined;
|
|
4445
4835
|
}>>;
|
|
4446
4836
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4447
4837
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -4465,6 +4855,19 @@ export declare const leadAssignmentsContract: {
|
|
|
4465
4855
|
}>>>;
|
|
4466
4856
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4467
4857
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4858
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4859
|
+
id: z.ZodString;
|
|
4860
|
+
dueAt: z.ZodString;
|
|
4861
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
4862
|
+
}, "strip", z.ZodTypeAny, {
|
|
4863
|
+
id: string;
|
|
4864
|
+
dueAt: string;
|
|
4865
|
+
originNotes: string | null;
|
|
4866
|
+
}, {
|
|
4867
|
+
id: string;
|
|
4868
|
+
dueAt: string;
|
|
4869
|
+
originNotes: string | null;
|
|
4870
|
+
}>>>;
|
|
4468
4871
|
}, "strip", z.ZodTypeAny, {
|
|
4469
4872
|
createdAt: string;
|
|
4470
4873
|
updatedAt: string;
|
|
@@ -4500,13 +4903,13 @@ export declare const leadAssignmentsContract: {
|
|
|
4500
4903
|
firstName: string;
|
|
4501
4904
|
}[] | undefined;
|
|
4502
4905
|
} | null | undefined;
|
|
4906
|
+
deletedAt?: string | null | undefined;
|
|
4503
4907
|
canImpersonateUsers?: {
|
|
4504
4908
|
id: string;
|
|
4505
4909
|
lastName: string;
|
|
4506
4910
|
firstName: string;
|
|
4507
4911
|
}[] | undefined;
|
|
4508
4912
|
dialpadUserId?: string | null | undefined;
|
|
4509
|
-
deletedAt?: string | null | undefined;
|
|
4510
4913
|
} | undefined;
|
|
4511
4914
|
lead?: {
|
|
4512
4915
|
name: string;
|
|
@@ -4518,6 +4921,11 @@ export declare const leadAssignmentsContract: {
|
|
|
4518
4921
|
updatedAt: string;
|
|
4519
4922
|
id: string;
|
|
4520
4923
|
} | null | undefined;
|
|
4924
|
+
callback?: {
|
|
4925
|
+
id: string;
|
|
4926
|
+
dueAt: string;
|
|
4927
|
+
originNotes: string | null;
|
|
4928
|
+
} | null | undefined;
|
|
4521
4929
|
}, {
|
|
4522
4930
|
createdAt: string | Date;
|
|
4523
4931
|
updatedAt: string | Date;
|
|
@@ -4553,13 +4961,13 @@ export declare const leadAssignmentsContract: {
|
|
|
4553
4961
|
description?: string | null | undefined;
|
|
4554
4962
|
isPrimary?: boolean | undefined;
|
|
4555
4963
|
}[] | undefined;
|
|
4964
|
+
deletedAt?: string | Date | null | undefined;
|
|
4556
4965
|
canImpersonateUsers?: {
|
|
4557
4966
|
id: string;
|
|
4558
4967
|
lastName: string;
|
|
4559
4968
|
firstName: string;
|
|
4560
4969
|
}[] | undefined;
|
|
4561
4970
|
dialpadUserId?: string | null | undefined;
|
|
4562
|
-
deletedAt?: string | Date | null | undefined;
|
|
4563
4971
|
} | undefined;
|
|
4564
4972
|
lead?: {
|
|
4565
4973
|
name: string;
|
|
@@ -4571,6 +4979,11 @@ export declare const leadAssignmentsContract: {
|
|
|
4571
4979
|
updatedAt: string | Date;
|
|
4572
4980
|
id: string;
|
|
4573
4981
|
} | null | undefined;
|
|
4982
|
+
callback?: {
|
|
4983
|
+
id: string;
|
|
4984
|
+
dueAt: string;
|
|
4985
|
+
originNotes: string | null;
|
|
4986
|
+
} | null | undefined;
|
|
4574
4987
|
}>;
|
|
4575
4988
|
404: z.ZodObject<{
|
|
4576
4989
|
statusCode: z.ZodNumber;
|
|
@@ -4581,17 +4994,17 @@ export declare const leadAssignmentsContract: {
|
|
|
4581
4994
|
path: z.ZodString;
|
|
4582
4995
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
4583
4996
|
}, "strip", z.ZodTypeAny, {
|
|
4584
|
-
message: string;
|
|
4585
4997
|
code: string;
|
|
4586
4998
|
path: string;
|
|
4999
|
+
message: string;
|
|
4587
5000
|
statusCode: number;
|
|
4588
5001
|
timestamp: string;
|
|
4589
5002
|
details?: unknown;
|
|
4590
5003
|
correlationId?: string | undefined;
|
|
4591
5004
|
}, {
|
|
4592
|
-
message: string;
|
|
4593
5005
|
code: string;
|
|
4594
5006
|
path: string;
|
|
5007
|
+
message: string;
|
|
4595
5008
|
statusCode: number;
|
|
4596
5009
|
timestamp: string;
|
|
4597
5010
|
details?: unknown;
|
|
@@ -4607,7 +5020,7 @@ export declare const leadAssignmentsContract: {
|
|
|
4607
5020
|
method: "GET";
|
|
4608
5021
|
path: "/v2/lead-assignments/queue/status";
|
|
4609
5022
|
responses: {
|
|
4610
|
-
|
|
5023
|
+
401: z.ZodObject<{
|
|
4611
5024
|
statusCode: z.ZodNumber;
|
|
4612
5025
|
message: z.ZodString;
|
|
4613
5026
|
code: z.ZodString;
|
|
@@ -4616,23 +5029,23 @@ export declare const leadAssignmentsContract: {
|
|
|
4616
5029
|
path: z.ZodString;
|
|
4617
5030
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
4618
5031
|
}, "strip", z.ZodTypeAny, {
|
|
4619
|
-
message: string;
|
|
4620
5032
|
code: string;
|
|
4621
5033
|
path: string;
|
|
5034
|
+
message: string;
|
|
4622
5035
|
statusCode: number;
|
|
4623
5036
|
timestamp: string;
|
|
4624
5037
|
details?: unknown;
|
|
4625
5038
|
correlationId?: string | undefined;
|
|
4626
5039
|
}, {
|
|
4627
|
-
message: string;
|
|
4628
5040
|
code: string;
|
|
4629
5041
|
path: string;
|
|
5042
|
+
message: string;
|
|
4630
5043
|
statusCode: number;
|
|
4631
5044
|
timestamp: string;
|
|
4632
5045
|
details?: unknown;
|
|
4633
5046
|
correlationId?: string | undefined;
|
|
4634
5047
|
}>;
|
|
4635
|
-
|
|
5048
|
+
400: z.ZodObject<{
|
|
4636
5049
|
statusCode: z.ZodNumber;
|
|
4637
5050
|
message: z.ZodString;
|
|
4638
5051
|
code: z.ZodString;
|
|
@@ -4641,23 +5054,23 @@ export declare const leadAssignmentsContract: {
|
|
|
4641
5054
|
path: z.ZodString;
|
|
4642
5055
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
4643
5056
|
}, "strip", z.ZodTypeAny, {
|
|
4644
|
-
message: string;
|
|
4645
5057
|
code: string;
|
|
4646
5058
|
path: string;
|
|
5059
|
+
message: string;
|
|
4647
5060
|
statusCode: number;
|
|
4648
5061
|
timestamp: string;
|
|
4649
5062
|
details?: unknown;
|
|
4650
5063
|
correlationId?: string | undefined;
|
|
4651
5064
|
}, {
|
|
4652
|
-
message: string;
|
|
4653
5065
|
code: string;
|
|
4654
5066
|
path: string;
|
|
5067
|
+
message: string;
|
|
4655
5068
|
statusCode: number;
|
|
4656
5069
|
timestamp: string;
|
|
4657
5070
|
details?: unknown;
|
|
4658
5071
|
correlationId?: string | undefined;
|
|
4659
5072
|
}>;
|
|
4660
|
-
|
|
5073
|
+
403: z.ZodObject<{
|
|
4661
5074
|
statusCode: z.ZodNumber;
|
|
4662
5075
|
message: z.ZodString;
|
|
4663
5076
|
code: z.ZodString;
|
|
@@ -4666,17 +5079,17 @@ export declare const leadAssignmentsContract: {
|
|
|
4666
5079
|
path: z.ZodString;
|
|
4667
5080
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
4668
5081
|
}, "strip", z.ZodTypeAny, {
|
|
4669
|
-
message: string;
|
|
4670
5082
|
code: string;
|
|
4671
5083
|
path: string;
|
|
5084
|
+
message: string;
|
|
4672
5085
|
statusCode: number;
|
|
4673
5086
|
timestamp: string;
|
|
4674
5087
|
details?: unknown;
|
|
4675
5088
|
correlationId?: string | undefined;
|
|
4676
5089
|
}, {
|
|
4677
|
-
message: string;
|
|
4678
5090
|
code: string;
|
|
4679
5091
|
path: string;
|
|
5092
|
+
message: string;
|
|
4680
5093
|
statusCode: number;
|
|
4681
5094
|
timestamp: string;
|
|
4682
5095
|
details?: unknown;
|
|
@@ -4691,17 +5104,17 @@ export declare const leadAssignmentsContract: {
|
|
|
4691
5104
|
path: z.ZodString;
|
|
4692
5105
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
4693
5106
|
}, "strip", z.ZodTypeAny, {
|
|
4694
|
-
message: string;
|
|
4695
5107
|
code: string;
|
|
4696
5108
|
path: string;
|
|
5109
|
+
message: string;
|
|
4697
5110
|
statusCode: number;
|
|
4698
5111
|
timestamp: string;
|
|
4699
5112
|
details?: unknown;
|
|
4700
5113
|
correlationId?: string | undefined;
|
|
4701
5114
|
}, {
|
|
4702
|
-
message: string;
|
|
4703
5115
|
code: string;
|
|
4704
5116
|
path: string;
|
|
5117
|
+
message: string;
|
|
4705
5118
|
statusCode: number;
|
|
4706
5119
|
timestamp: string;
|
|
4707
5120
|
details?: unknown;
|
|
@@ -4734,5 +5147,1367 @@ export declare const leadAssignmentsContract: {
|
|
|
4734
5147
|
}>;
|
|
4735
5148
|
};
|
|
4736
5149
|
};
|
|
5150
|
+
completeCallback: {
|
|
5151
|
+
metadata: {
|
|
5152
|
+
tags: string[];
|
|
5153
|
+
};
|
|
5154
|
+
pathParams: z.ZodObject<{
|
|
5155
|
+
id: z.ZodString;
|
|
5156
|
+
}, "strip", z.ZodTypeAny, {
|
|
5157
|
+
id: string;
|
|
5158
|
+
}, {
|
|
5159
|
+
id: string;
|
|
5160
|
+
}>;
|
|
5161
|
+
summary: "Complete a scheduled callback and log the call";
|
|
5162
|
+
method: "POST";
|
|
5163
|
+
body: z.ZodObject<{
|
|
5164
|
+
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
5165
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
5166
|
+
}, "strip", z.ZodTypeAny, {
|
|
5167
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
5168
|
+
notes?: string | undefined;
|
|
5169
|
+
}, {
|
|
5170
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
5171
|
+
notes?: string | undefined;
|
|
5172
|
+
}>;
|
|
5173
|
+
path: "/v2/lead-callbacks/:id/complete";
|
|
5174
|
+
responses: {
|
|
5175
|
+
401: z.ZodObject<{
|
|
5176
|
+
statusCode: z.ZodNumber;
|
|
5177
|
+
message: z.ZodString;
|
|
5178
|
+
code: z.ZodString;
|
|
5179
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
5180
|
+
timestamp: z.ZodString;
|
|
5181
|
+
path: z.ZodString;
|
|
5182
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
5183
|
+
}, "strip", z.ZodTypeAny, {
|
|
5184
|
+
code: string;
|
|
5185
|
+
path: string;
|
|
5186
|
+
message: string;
|
|
5187
|
+
statusCode: number;
|
|
5188
|
+
timestamp: string;
|
|
5189
|
+
details?: unknown;
|
|
5190
|
+
correlationId?: string | undefined;
|
|
5191
|
+
}, {
|
|
5192
|
+
code: string;
|
|
5193
|
+
path: string;
|
|
5194
|
+
message: string;
|
|
5195
|
+
statusCode: number;
|
|
5196
|
+
timestamp: string;
|
|
5197
|
+
details?: unknown;
|
|
5198
|
+
correlationId?: string | undefined;
|
|
5199
|
+
}>;
|
|
5200
|
+
400: z.ZodObject<{
|
|
5201
|
+
statusCode: z.ZodNumber;
|
|
5202
|
+
message: z.ZodString;
|
|
5203
|
+
code: z.ZodString;
|
|
5204
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
5205
|
+
timestamp: z.ZodString;
|
|
5206
|
+
path: z.ZodString;
|
|
5207
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
5208
|
+
}, "strip", z.ZodTypeAny, {
|
|
5209
|
+
code: string;
|
|
5210
|
+
path: string;
|
|
5211
|
+
message: string;
|
|
5212
|
+
statusCode: number;
|
|
5213
|
+
timestamp: string;
|
|
5214
|
+
details?: unknown;
|
|
5215
|
+
correlationId?: string | undefined;
|
|
5216
|
+
}, {
|
|
5217
|
+
code: string;
|
|
5218
|
+
path: string;
|
|
5219
|
+
message: string;
|
|
5220
|
+
statusCode: number;
|
|
5221
|
+
timestamp: string;
|
|
5222
|
+
details?: unknown;
|
|
5223
|
+
correlationId?: string | undefined;
|
|
5224
|
+
}>;
|
|
5225
|
+
500: z.ZodObject<{
|
|
5226
|
+
statusCode: z.ZodNumber;
|
|
5227
|
+
message: z.ZodString;
|
|
5228
|
+
code: z.ZodString;
|
|
5229
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
5230
|
+
timestamp: z.ZodString;
|
|
5231
|
+
path: z.ZodString;
|
|
5232
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
5233
|
+
}, "strip", z.ZodTypeAny, {
|
|
5234
|
+
code: string;
|
|
5235
|
+
path: string;
|
|
5236
|
+
message: string;
|
|
5237
|
+
statusCode: number;
|
|
5238
|
+
timestamp: string;
|
|
5239
|
+
details?: unknown;
|
|
5240
|
+
correlationId?: string | undefined;
|
|
5241
|
+
}, {
|
|
5242
|
+
code: string;
|
|
5243
|
+
path: string;
|
|
5244
|
+
message: string;
|
|
5245
|
+
statusCode: number;
|
|
5246
|
+
timestamp: string;
|
|
5247
|
+
details?: unknown;
|
|
5248
|
+
correlationId?: string | undefined;
|
|
5249
|
+
}>;
|
|
5250
|
+
200: z.ZodNullable<z.ZodObject<{
|
|
5251
|
+
id: z.ZodString;
|
|
5252
|
+
leadId: z.ZodString;
|
|
5253
|
+
lead: z.ZodOptional<z.ZodObject<{
|
|
5254
|
+
name: z.ZodString;
|
|
5255
|
+
phoneNumber: z.ZodString;
|
|
5256
|
+
}, "strip", z.ZodTypeAny, {
|
|
5257
|
+
name: string;
|
|
5258
|
+
phoneNumber: string;
|
|
5259
|
+
}, {
|
|
5260
|
+
name: string;
|
|
5261
|
+
phoneNumber: string;
|
|
5262
|
+
}>>;
|
|
5263
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
5264
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
5265
|
+
id: z.ZodString;
|
|
5266
|
+
firstName: z.ZodString;
|
|
5267
|
+
lastName: z.ZodString;
|
|
5268
|
+
email: z.ZodString;
|
|
5269
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5270
|
+
id: z.ZodString;
|
|
5271
|
+
phoneNumber: z.ZodString;
|
|
5272
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5273
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
5274
|
+
}, "strip", z.ZodTypeAny, {
|
|
5275
|
+
id: string;
|
|
5276
|
+
phoneNumber: string;
|
|
5277
|
+
isPrimary: boolean;
|
|
5278
|
+
description?: string | null | undefined;
|
|
5279
|
+
}, {
|
|
5280
|
+
id: string;
|
|
5281
|
+
phoneNumber: string;
|
|
5282
|
+
description?: string | null | undefined;
|
|
5283
|
+
isPrimary?: boolean | undefined;
|
|
5284
|
+
}>, "many">>>;
|
|
5285
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
|
|
5286
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5287
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5288
|
+
id: z.ZodString;
|
|
5289
|
+
name: z.ZodString;
|
|
5290
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5291
|
+
id: z.ZodString;
|
|
5292
|
+
firstName: z.ZodString;
|
|
5293
|
+
lastName: z.ZodString;
|
|
5294
|
+
}, "strip", z.ZodTypeAny, {
|
|
5295
|
+
id: string;
|
|
5296
|
+
lastName: string;
|
|
5297
|
+
firstName: string;
|
|
5298
|
+
}, {
|
|
5299
|
+
id: string;
|
|
5300
|
+
lastName: string;
|
|
5301
|
+
firstName: string;
|
|
5302
|
+
}>, "many">>;
|
|
5303
|
+
}, "strip", z.ZodTypeAny, {
|
|
5304
|
+
name: string;
|
|
5305
|
+
id: string;
|
|
5306
|
+
managers?: {
|
|
5307
|
+
id: string;
|
|
5308
|
+
lastName: string;
|
|
5309
|
+
firstName: string;
|
|
5310
|
+
}[] | undefined;
|
|
5311
|
+
}, {
|
|
5312
|
+
name: string;
|
|
5313
|
+
id: string;
|
|
5314
|
+
managers?: {
|
|
5315
|
+
id: string;
|
|
5316
|
+
lastName: string;
|
|
5317
|
+
firstName: string;
|
|
5318
|
+
}[] | undefined;
|
|
5319
|
+
}>>>;
|
|
5320
|
+
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5321
|
+
id: z.ZodString;
|
|
5322
|
+
firstName: z.ZodString;
|
|
5323
|
+
lastName: z.ZodString;
|
|
5324
|
+
}, "strip", z.ZodTypeAny, {
|
|
5325
|
+
id: string;
|
|
5326
|
+
lastName: string;
|
|
5327
|
+
firstName: string;
|
|
5328
|
+
}, {
|
|
5329
|
+
id: string;
|
|
5330
|
+
lastName: string;
|
|
5331
|
+
firstName: string;
|
|
5332
|
+
}>, "many">>;
|
|
5333
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
5334
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
5335
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5336
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5337
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
5338
|
+
}, "strip", z.ZodTypeAny, {
|
|
5339
|
+
email: string;
|
|
5340
|
+
createdAt: string;
|
|
5341
|
+
updatedAt: string;
|
|
5342
|
+
id: string;
|
|
5343
|
+
status: "ACTIVE" | "INACTIVE";
|
|
5344
|
+
lastName: string;
|
|
5345
|
+
firstName: string;
|
|
5346
|
+
phoneNumbers: {
|
|
5347
|
+
id: string;
|
|
5348
|
+
phoneNumber: string;
|
|
5349
|
+
isPrimary: boolean;
|
|
5350
|
+
description?: string | null | undefined;
|
|
5351
|
+
}[];
|
|
5352
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
5353
|
+
officeId?: string | null | undefined;
|
|
5354
|
+
office?: {
|
|
5355
|
+
name: string;
|
|
5356
|
+
id: string;
|
|
5357
|
+
managers?: {
|
|
5358
|
+
id: string;
|
|
5359
|
+
lastName: string;
|
|
5360
|
+
firstName: string;
|
|
5361
|
+
}[] | undefined;
|
|
5362
|
+
} | null | undefined;
|
|
5363
|
+
deletedAt?: string | null | undefined;
|
|
5364
|
+
canImpersonateUsers?: {
|
|
5365
|
+
id: string;
|
|
5366
|
+
lastName: string;
|
|
5367
|
+
firstName: string;
|
|
5368
|
+
}[] | undefined;
|
|
5369
|
+
dialpadUserId?: string | null | undefined;
|
|
5370
|
+
}, {
|
|
5371
|
+
email: string;
|
|
5372
|
+
createdAt: string | Date;
|
|
5373
|
+
updatedAt: string | Date;
|
|
5374
|
+
id: string;
|
|
5375
|
+
status: "ACTIVE" | "INACTIVE";
|
|
5376
|
+
lastName: string;
|
|
5377
|
+
firstName: string;
|
|
5378
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
5379
|
+
officeId?: string | null | undefined;
|
|
5380
|
+
office?: {
|
|
5381
|
+
name: string;
|
|
5382
|
+
id: string;
|
|
5383
|
+
managers?: {
|
|
5384
|
+
id: string;
|
|
5385
|
+
lastName: string;
|
|
5386
|
+
firstName: string;
|
|
5387
|
+
}[] | undefined;
|
|
5388
|
+
} | null | undefined;
|
|
5389
|
+
phoneNumbers?: {
|
|
5390
|
+
id: string;
|
|
5391
|
+
phoneNumber: string;
|
|
5392
|
+
description?: string | null | undefined;
|
|
5393
|
+
isPrimary?: boolean | undefined;
|
|
5394
|
+
}[] | undefined;
|
|
5395
|
+
deletedAt?: string | Date | null | undefined;
|
|
5396
|
+
canImpersonateUsers?: {
|
|
5397
|
+
id: string;
|
|
5398
|
+
lastName: string;
|
|
5399
|
+
firstName: string;
|
|
5400
|
+
}[] | undefined;
|
|
5401
|
+
dialpadUserId?: string | null | undefined;
|
|
5402
|
+
}>>;
|
|
5403
|
+
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5404
|
+
assignedBy: z.ZodNullable<z.ZodString>;
|
|
5405
|
+
status: z.ZodNativeEnum<typeof LeadAssignmentStatus>;
|
|
5406
|
+
companyId: z.ZodNullable<z.ZodString>;
|
|
5407
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5408
|
+
id: z.ZodString;
|
|
5409
|
+
name: z.ZodString;
|
|
5410
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5411
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5412
|
+
}, "strip", z.ZodTypeAny, {
|
|
5413
|
+
name: string;
|
|
5414
|
+
createdAt: string;
|
|
5415
|
+
updatedAt: string;
|
|
5416
|
+
id: string;
|
|
5417
|
+
}, {
|
|
5418
|
+
name: string;
|
|
5419
|
+
createdAt: string | Date;
|
|
5420
|
+
updatedAt: string | Date;
|
|
5421
|
+
id: string;
|
|
5422
|
+
}>>>;
|
|
5423
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5424
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5425
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5426
|
+
id: z.ZodString;
|
|
5427
|
+
dueAt: z.ZodString;
|
|
5428
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
5429
|
+
}, "strip", z.ZodTypeAny, {
|
|
5430
|
+
id: string;
|
|
5431
|
+
dueAt: string;
|
|
5432
|
+
originNotes: string | null;
|
|
5433
|
+
}, {
|
|
5434
|
+
id: string;
|
|
5435
|
+
dueAt: string;
|
|
5436
|
+
originNotes: string | null;
|
|
5437
|
+
}>>>;
|
|
5438
|
+
}, "strip", z.ZodTypeAny, {
|
|
5439
|
+
createdAt: string;
|
|
5440
|
+
updatedAt: string;
|
|
5441
|
+
id: string;
|
|
5442
|
+
status: LeadAssignmentStatus;
|
|
5443
|
+
agentId: string | null;
|
|
5444
|
+
leadId: string;
|
|
5445
|
+
assignedAt: string;
|
|
5446
|
+
assignedBy: string | null;
|
|
5447
|
+
companyId: string | null;
|
|
5448
|
+
agent?: {
|
|
5449
|
+
email: string;
|
|
5450
|
+
createdAt: string;
|
|
5451
|
+
updatedAt: string;
|
|
5452
|
+
id: string;
|
|
5453
|
+
status: "ACTIVE" | "INACTIVE";
|
|
5454
|
+
lastName: string;
|
|
5455
|
+
firstName: string;
|
|
5456
|
+
phoneNumbers: {
|
|
5457
|
+
id: string;
|
|
5458
|
+
phoneNumber: string;
|
|
5459
|
+
isPrimary: boolean;
|
|
5460
|
+
description?: string | null | undefined;
|
|
5461
|
+
}[];
|
|
5462
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
5463
|
+
officeId?: string | null | undefined;
|
|
5464
|
+
office?: {
|
|
5465
|
+
name: string;
|
|
5466
|
+
id: string;
|
|
5467
|
+
managers?: {
|
|
5468
|
+
id: string;
|
|
5469
|
+
lastName: string;
|
|
5470
|
+
firstName: string;
|
|
5471
|
+
}[] | undefined;
|
|
5472
|
+
} | null | undefined;
|
|
5473
|
+
deletedAt?: string | null | undefined;
|
|
5474
|
+
canImpersonateUsers?: {
|
|
5475
|
+
id: string;
|
|
5476
|
+
lastName: string;
|
|
5477
|
+
firstName: string;
|
|
5478
|
+
}[] | undefined;
|
|
5479
|
+
dialpadUserId?: string | null | undefined;
|
|
5480
|
+
} | undefined;
|
|
5481
|
+
lead?: {
|
|
5482
|
+
name: string;
|
|
5483
|
+
phoneNumber: string;
|
|
5484
|
+
} | undefined;
|
|
5485
|
+
company?: {
|
|
5486
|
+
name: string;
|
|
5487
|
+
createdAt: string;
|
|
5488
|
+
updatedAt: string;
|
|
5489
|
+
id: string;
|
|
5490
|
+
} | null | undefined;
|
|
5491
|
+
callback?: {
|
|
5492
|
+
id: string;
|
|
5493
|
+
dueAt: string;
|
|
5494
|
+
originNotes: string | null;
|
|
5495
|
+
} | null | undefined;
|
|
5496
|
+
}, {
|
|
5497
|
+
createdAt: string | Date;
|
|
5498
|
+
updatedAt: string | Date;
|
|
5499
|
+
id: string;
|
|
5500
|
+
status: LeadAssignmentStatus;
|
|
5501
|
+
agentId: string | null;
|
|
5502
|
+
leadId: string;
|
|
5503
|
+
assignedAt: string | Date;
|
|
5504
|
+
assignedBy: string | null;
|
|
5505
|
+
companyId: string | null;
|
|
5506
|
+
agent?: {
|
|
5507
|
+
email: string;
|
|
5508
|
+
createdAt: string | Date;
|
|
5509
|
+
updatedAt: string | Date;
|
|
5510
|
+
id: string;
|
|
5511
|
+
status: "ACTIVE" | "INACTIVE";
|
|
5512
|
+
lastName: string;
|
|
5513
|
+
firstName: string;
|
|
5514
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
5515
|
+
officeId?: string | null | undefined;
|
|
5516
|
+
office?: {
|
|
5517
|
+
name: string;
|
|
5518
|
+
id: string;
|
|
5519
|
+
managers?: {
|
|
5520
|
+
id: string;
|
|
5521
|
+
lastName: string;
|
|
5522
|
+
firstName: string;
|
|
5523
|
+
}[] | undefined;
|
|
5524
|
+
} | null | undefined;
|
|
5525
|
+
phoneNumbers?: {
|
|
5526
|
+
id: string;
|
|
5527
|
+
phoneNumber: string;
|
|
5528
|
+
description?: string | null | undefined;
|
|
5529
|
+
isPrimary?: boolean | undefined;
|
|
5530
|
+
}[] | undefined;
|
|
5531
|
+
deletedAt?: string | Date | null | undefined;
|
|
5532
|
+
canImpersonateUsers?: {
|
|
5533
|
+
id: string;
|
|
5534
|
+
lastName: string;
|
|
5535
|
+
firstName: string;
|
|
5536
|
+
}[] | undefined;
|
|
5537
|
+
dialpadUserId?: string | null | undefined;
|
|
5538
|
+
} | undefined;
|
|
5539
|
+
lead?: {
|
|
5540
|
+
name: string;
|
|
5541
|
+
phoneNumber: string;
|
|
5542
|
+
} | undefined;
|
|
5543
|
+
company?: {
|
|
5544
|
+
name: string;
|
|
5545
|
+
createdAt: string | Date;
|
|
5546
|
+
updatedAt: string | Date;
|
|
5547
|
+
id: string;
|
|
5548
|
+
} | null | undefined;
|
|
5549
|
+
callback?: {
|
|
5550
|
+
id: string;
|
|
5551
|
+
dueAt: string;
|
|
5552
|
+
originNotes: string | null;
|
|
5553
|
+
} | null | undefined;
|
|
5554
|
+
}>>;
|
|
5555
|
+
403: z.ZodObject<{
|
|
5556
|
+
statusCode: z.ZodNumber;
|
|
5557
|
+
message: z.ZodString;
|
|
5558
|
+
code: z.ZodString;
|
|
5559
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
5560
|
+
timestamp: z.ZodString;
|
|
5561
|
+
path: z.ZodString;
|
|
5562
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
5563
|
+
}, "strip", z.ZodTypeAny, {
|
|
5564
|
+
code: string;
|
|
5565
|
+
path: string;
|
|
5566
|
+
message: string;
|
|
5567
|
+
statusCode: number;
|
|
5568
|
+
timestamp: string;
|
|
5569
|
+
details?: unknown;
|
|
5570
|
+
correlationId?: string | undefined;
|
|
5571
|
+
}, {
|
|
5572
|
+
code: string;
|
|
5573
|
+
path: string;
|
|
5574
|
+
message: string;
|
|
5575
|
+
statusCode: number;
|
|
5576
|
+
timestamp: string;
|
|
5577
|
+
details?: unknown;
|
|
5578
|
+
correlationId?: string | undefined;
|
|
5579
|
+
}>;
|
|
5580
|
+
404: z.ZodObject<{
|
|
5581
|
+
statusCode: z.ZodNumber;
|
|
5582
|
+
message: z.ZodString;
|
|
5583
|
+
code: z.ZodString;
|
|
5584
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
5585
|
+
timestamp: z.ZodString;
|
|
5586
|
+
path: z.ZodString;
|
|
5587
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
5588
|
+
}, "strip", z.ZodTypeAny, {
|
|
5589
|
+
code: string;
|
|
5590
|
+
path: string;
|
|
5591
|
+
message: string;
|
|
5592
|
+
statusCode: number;
|
|
5593
|
+
timestamp: string;
|
|
5594
|
+
details?: unknown;
|
|
5595
|
+
correlationId?: string | undefined;
|
|
5596
|
+
}, {
|
|
5597
|
+
code: string;
|
|
5598
|
+
path: string;
|
|
5599
|
+
message: string;
|
|
5600
|
+
statusCode: number;
|
|
5601
|
+
timestamp: string;
|
|
5602
|
+
details?: unknown;
|
|
5603
|
+
correlationId?: string | undefined;
|
|
5604
|
+
}>;
|
|
5605
|
+
};
|
|
5606
|
+
};
|
|
5607
|
+
rescheduleCallback: {
|
|
5608
|
+
metadata: {
|
|
5609
|
+
tags: string[];
|
|
5610
|
+
};
|
|
5611
|
+
pathParams: z.ZodObject<{
|
|
5612
|
+
id: z.ZodString;
|
|
5613
|
+
}, "strip", z.ZodTypeAny, {
|
|
5614
|
+
id: string;
|
|
5615
|
+
}, {
|
|
5616
|
+
id: string;
|
|
5617
|
+
}>;
|
|
5618
|
+
summary: "Reschedule a callback to a new date and time";
|
|
5619
|
+
method: "POST";
|
|
5620
|
+
body: z.ZodObject<{
|
|
5621
|
+
callbackDate: z.ZodString;
|
|
5622
|
+
callbackTime: z.ZodEnum<[string, ...string[]]>;
|
|
5623
|
+
}, "strip", z.ZodTypeAny, {
|
|
5624
|
+
callbackDate: string;
|
|
5625
|
+
callbackTime: string;
|
|
5626
|
+
}, {
|
|
5627
|
+
callbackDate: string;
|
|
5628
|
+
callbackTime: string;
|
|
5629
|
+
}>;
|
|
5630
|
+
path: "/v2/lead-callbacks/:id/reschedule";
|
|
5631
|
+
responses: {
|
|
5632
|
+
401: z.ZodObject<{
|
|
5633
|
+
statusCode: z.ZodNumber;
|
|
5634
|
+
message: z.ZodString;
|
|
5635
|
+
code: z.ZodString;
|
|
5636
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
5637
|
+
timestamp: z.ZodString;
|
|
5638
|
+
path: z.ZodString;
|
|
5639
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
5640
|
+
}, "strip", z.ZodTypeAny, {
|
|
5641
|
+
code: string;
|
|
5642
|
+
path: string;
|
|
5643
|
+
message: string;
|
|
5644
|
+
statusCode: number;
|
|
5645
|
+
timestamp: string;
|
|
5646
|
+
details?: unknown;
|
|
5647
|
+
correlationId?: string | undefined;
|
|
5648
|
+
}, {
|
|
5649
|
+
code: string;
|
|
5650
|
+
path: string;
|
|
5651
|
+
message: string;
|
|
5652
|
+
statusCode: number;
|
|
5653
|
+
timestamp: string;
|
|
5654
|
+
details?: unknown;
|
|
5655
|
+
correlationId?: string | undefined;
|
|
5656
|
+
}>;
|
|
5657
|
+
400: z.ZodObject<{
|
|
5658
|
+
statusCode: z.ZodNumber;
|
|
5659
|
+
message: z.ZodString;
|
|
5660
|
+
code: z.ZodString;
|
|
5661
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
5662
|
+
timestamp: z.ZodString;
|
|
5663
|
+
path: z.ZodString;
|
|
5664
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
5665
|
+
}, "strip", z.ZodTypeAny, {
|
|
5666
|
+
code: string;
|
|
5667
|
+
path: string;
|
|
5668
|
+
message: string;
|
|
5669
|
+
statusCode: number;
|
|
5670
|
+
timestamp: string;
|
|
5671
|
+
details?: unknown;
|
|
5672
|
+
correlationId?: string | undefined;
|
|
5673
|
+
}, {
|
|
5674
|
+
code: string;
|
|
5675
|
+
path: string;
|
|
5676
|
+
message: string;
|
|
5677
|
+
statusCode: number;
|
|
5678
|
+
timestamp: string;
|
|
5679
|
+
details?: unknown;
|
|
5680
|
+
correlationId?: string | undefined;
|
|
5681
|
+
}>;
|
|
5682
|
+
500: z.ZodObject<{
|
|
5683
|
+
statusCode: z.ZodNumber;
|
|
5684
|
+
message: z.ZodString;
|
|
5685
|
+
code: z.ZodString;
|
|
5686
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
5687
|
+
timestamp: z.ZodString;
|
|
5688
|
+
path: z.ZodString;
|
|
5689
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
5690
|
+
}, "strip", z.ZodTypeAny, {
|
|
5691
|
+
code: string;
|
|
5692
|
+
path: string;
|
|
5693
|
+
message: string;
|
|
5694
|
+
statusCode: number;
|
|
5695
|
+
timestamp: string;
|
|
5696
|
+
details?: unknown;
|
|
5697
|
+
correlationId?: string | undefined;
|
|
5698
|
+
}, {
|
|
5699
|
+
code: string;
|
|
5700
|
+
path: string;
|
|
5701
|
+
message: string;
|
|
5702
|
+
statusCode: number;
|
|
5703
|
+
timestamp: string;
|
|
5704
|
+
details?: unknown;
|
|
5705
|
+
correlationId?: string | undefined;
|
|
5706
|
+
}>;
|
|
5707
|
+
200: z.ZodNullable<z.ZodObject<{
|
|
5708
|
+
id: z.ZodString;
|
|
5709
|
+
leadId: z.ZodString;
|
|
5710
|
+
lead: z.ZodOptional<z.ZodObject<{
|
|
5711
|
+
name: z.ZodString;
|
|
5712
|
+
phoneNumber: z.ZodString;
|
|
5713
|
+
}, "strip", z.ZodTypeAny, {
|
|
5714
|
+
name: string;
|
|
5715
|
+
phoneNumber: string;
|
|
5716
|
+
}, {
|
|
5717
|
+
name: string;
|
|
5718
|
+
phoneNumber: string;
|
|
5719
|
+
}>>;
|
|
5720
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
5721
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
5722
|
+
id: z.ZodString;
|
|
5723
|
+
firstName: z.ZodString;
|
|
5724
|
+
lastName: z.ZodString;
|
|
5725
|
+
email: z.ZodString;
|
|
5726
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5727
|
+
id: z.ZodString;
|
|
5728
|
+
phoneNumber: z.ZodString;
|
|
5729
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5730
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
5731
|
+
}, "strip", z.ZodTypeAny, {
|
|
5732
|
+
id: string;
|
|
5733
|
+
phoneNumber: string;
|
|
5734
|
+
isPrimary: boolean;
|
|
5735
|
+
description?: string | null | undefined;
|
|
5736
|
+
}, {
|
|
5737
|
+
id: string;
|
|
5738
|
+
phoneNumber: string;
|
|
5739
|
+
description?: string | null | undefined;
|
|
5740
|
+
isPrimary?: boolean | undefined;
|
|
5741
|
+
}>, "many">>>;
|
|
5742
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
|
|
5743
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5744
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5745
|
+
id: z.ZodString;
|
|
5746
|
+
name: z.ZodString;
|
|
5747
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5748
|
+
id: z.ZodString;
|
|
5749
|
+
firstName: z.ZodString;
|
|
5750
|
+
lastName: z.ZodString;
|
|
5751
|
+
}, "strip", z.ZodTypeAny, {
|
|
5752
|
+
id: string;
|
|
5753
|
+
lastName: string;
|
|
5754
|
+
firstName: string;
|
|
5755
|
+
}, {
|
|
5756
|
+
id: string;
|
|
5757
|
+
lastName: string;
|
|
5758
|
+
firstName: string;
|
|
5759
|
+
}>, "many">>;
|
|
5760
|
+
}, "strip", z.ZodTypeAny, {
|
|
5761
|
+
name: string;
|
|
5762
|
+
id: string;
|
|
5763
|
+
managers?: {
|
|
5764
|
+
id: string;
|
|
5765
|
+
lastName: string;
|
|
5766
|
+
firstName: string;
|
|
5767
|
+
}[] | undefined;
|
|
5768
|
+
}, {
|
|
5769
|
+
name: string;
|
|
5770
|
+
id: string;
|
|
5771
|
+
managers?: {
|
|
5772
|
+
id: string;
|
|
5773
|
+
lastName: string;
|
|
5774
|
+
firstName: string;
|
|
5775
|
+
}[] | undefined;
|
|
5776
|
+
}>>>;
|
|
5777
|
+
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5778
|
+
id: z.ZodString;
|
|
5779
|
+
firstName: z.ZodString;
|
|
5780
|
+
lastName: z.ZodString;
|
|
5781
|
+
}, "strip", z.ZodTypeAny, {
|
|
5782
|
+
id: string;
|
|
5783
|
+
lastName: string;
|
|
5784
|
+
firstName: string;
|
|
5785
|
+
}, {
|
|
5786
|
+
id: string;
|
|
5787
|
+
lastName: string;
|
|
5788
|
+
firstName: string;
|
|
5789
|
+
}>, "many">>;
|
|
5790
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
5791
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
5792
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5793
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5794
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
5795
|
+
}, "strip", z.ZodTypeAny, {
|
|
5796
|
+
email: string;
|
|
5797
|
+
createdAt: string;
|
|
5798
|
+
updatedAt: string;
|
|
5799
|
+
id: string;
|
|
5800
|
+
status: "ACTIVE" | "INACTIVE";
|
|
5801
|
+
lastName: string;
|
|
5802
|
+
firstName: string;
|
|
5803
|
+
phoneNumbers: {
|
|
5804
|
+
id: string;
|
|
5805
|
+
phoneNumber: string;
|
|
5806
|
+
isPrimary: boolean;
|
|
5807
|
+
description?: string | null | undefined;
|
|
5808
|
+
}[];
|
|
5809
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
5810
|
+
officeId?: string | null | undefined;
|
|
5811
|
+
office?: {
|
|
5812
|
+
name: string;
|
|
5813
|
+
id: string;
|
|
5814
|
+
managers?: {
|
|
5815
|
+
id: string;
|
|
5816
|
+
lastName: string;
|
|
5817
|
+
firstName: string;
|
|
5818
|
+
}[] | undefined;
|
|
5819
|
+
} | null | undefined;
|
|
5820
|
+
deletedAt?: string | null | undefined;
|
|
5821
|
+
canImpersonateUsers?: {
|
|
5822
|
+
id: string;
|
|
5823
|
+
lastName: string;
|
|
5824
|
+
firstName: string;
|
|
5825
|
+
}[] | undefined;
|
|
5826
|
+
dialpadUserId?: string | null | undefined;
|
|
5827
|
+
}, {
|
|
5828
|
+
email: string;
|
|
5829
|
+
createdAt: string | Date;
|
|
5830
|
+
updatedAt: string | Date;
|
|
5831
|
+
id: string;
|
|
5832
|
+
status: "ACTIVE" | "INACTIVE";
|
|
5833
|
+
lastName: string;
|
|
5834
|
+
firstName: string;
|
|
5835
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
5836
|
+
officeId?: string | null | undefined;
|
|
5837
|
+
office?: {
|
|
5838
|
+
name: string;
|
|
5839
|
+
id: string;
|
|
5840
|
+
managers?: {
|
|
5841
|
+
id: string;
|
|
5842
|
+
lastName: string;
|
|
5843
|
+
firstName: string;
|
|
5844
|
+
}[] | undefined;
|
|
5845
|
+
} | null | undefined;
|
|
5846
|
+
phoneNumbers?: {
|
|
5847
|
+
id: string;
|
|
5848
|
+
phoneNumber: string;
|
|
5849
|
+
description?: string | null | undefined;
|
|
5850
|
+
isPrimary?: boolean | undefined;
|
|
5851
|
+
}[] | undefined;
|
|
5852
|
+
deletedAt?: string | Date | null | undefined;
|
|
5853
|
+
canImpersonateUsers?: {
|
|
5854
|
+
id: string;
|
|
5855
|
+
lastName: string;
|
|
5856
|
+
firstName: string;
|
|
5857
|
+
}[] | undefined;
|
|
5858
|
+
dialpadUserId?: string | null | undefined;
|
|
5859
|
+
}>>;
|
|
5860
|
+
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5861
|
+
assignedBy: z.ZodNullable<z.ZodString>;
|
|
5862
|
+
status: z.ZodNativeEnum<typeof LeadAssignmentStatus>;
|
|
5863
|
+
companyId: z.ZodNullable<z.ZodString>;
|
|
5864
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5865
|
+
id: z.ZodString;
|
|
5866
|
+
name: z.ZodString;
|
|
5867
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5868
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5869
|
+
}, "strip", z.ZodTypeAny, {
|
|
5870
|
+
name: string;
|
|
5871
|
+
createdAt: string;
|
|
5872
|
+
updatedAt: string;
|
|
5873
|
+
id: string;
|
|
5874
|
+
}, {
|
|
5875
|
+
name: string;
|
|
5876
|
+
createdAt: string | Date;
|
|
5877
|
+
updatedAt: string | Date;
|
|
5878
|
+
id: string;
|
|
5879
|
+
}>>>;
|
|
5880
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5881
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5882
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5883
|
+
id: z.ZodString;
|
|
5884
|
+
dueAt: z.ZodString;
|
|
5885
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
5886
|
+
}, "strip", z.ZodTypeAny, {
|
|
5887
|
+
id: string;
|
|
5888
|
+
dueAt: string;
|
|
5889
|
+
originNotes: string | null;
|
|
5890
|
+
}, {
|
|
5891
|
+
id: string;
|
|
5892
|
+
dueAt: string;
|
|
5893
|
+
originNotes: string | null;
|
|
5894
|
+
}>>>;
|
|
5895
|
+
}, "strip", z.ZodTypeAny, {
|
|
5896
|
+
createdAt: string;
|
|
5897
|
+
updatedAt: string;
|
|
5898
|
+
id: string;
|
|
5899
|
+
status: LeadAssignmentStatus;
|
|
5900
|
+
agentId: string | null;
|
|
5901
|
+
leadId: string;
|
|
5902
|
+
assignedAt: string;
|
|
5903
|
+
assignedBy: string | null;
|
|
5904
|
+
companyId: string | null;
|
|
5905
|
+
agent?: {
|
|
5906
|
+
email: string;
|
|
5907
|
+
createdAt: string;
|
|
5908
|
+
updatedAt: string;
|
|
5909
|
+
id: string;
|
|
5910
|
+
status: "ACTIVE" | "INACTIVE";
|
|
5911
|
+
lastName: string;
|
|
5912
|
+
firstName: string;
|
|
5913
|
+
phoneNumbers: {
|
|
5914
|
+
id: string;
|
|
5915
|
+
phoneNumber: string;
|
|
5916
|
+
isPrimary: boolean;
|
|
5917
|
+
description?: string | null | undefined;
|
|
5918
|
+
}[];
|
|
5919
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
5920
|
+
officeId?: string | null | undefined;
|
|
5921
|
+
office?: {
|
|
5922
|
+
name: string;
|
|
5923
|
+
id: string;
|
|
5924
|
+
managers?: {
|
|
5925
|
+
id: string;
|
|
5926
|
+
lastName: string;
|
|
5927
|
+
firstName: string;
|
|
5928
|
+
}[] | undefined;
|
|
5929
|
+
} | null | undefined;
|
|
5930
|
+
deletedAt?: string | null | undefined;
|
|
5931
|
+
canImpersonateUsers?: {
|
|
5932
|
+
id: string;
|
|
5933
|
+
lastName: string;
|
|
5934
|
+
firstName: string;
|
|
5935
|
+
}[] | undefined;
|
|
5936
|
+
dialpadUserId?: string | null | undefined;
|
|
5937
|
+
} | undefined;
|
|
5938
|
+
lead?: {
|
|
5939
|
+
name: string;
|
|
5940
|
+
phoneNumber: string;
|
|
5941
|
+
} | undefined;
|
|
5942
|
+
company?: {
|
|
5943
|
+
name: string;
|
|
5944
|
+
createdAt: string;
|
|
5945
|
+
updatedAt: string;
|
|
5946
|
+
id: string;
|
|
5947
|
+
} | null | undefined;
|
|
5948
|
+
callback?: {
|
|
5949
|
+
id: string;
|
|
5950
|
+
dueAt: string;
|
|
5951
|
+
originNotes: string | null;
|
|
5952
|
+
} | null | undefined;
|
|
5953
|
+
}, {
|
|
5954
|
+
createdAt: string | Date;
|
|
5955
|
+
updatedAt: string | Date;
|
|
5956
|
+
id: string;
|
|
5957
|
+
status: LeadAssignmentStatus;
|
|
5958
|
+
agentId: string | null;
|
|
5959
|
+
leadId: string;
|
|
5960
|
+
assignedAt: string | Date;
|
|
5961
|
+
assignedBy: string | null;
|
|
5962
|
+
companyId: string | null;
|
|
5963
|
+
agent?: {
|
|
5964
|
+
email: string;
|
|
5965
|
+
createdAt: string | Date;
|
|
5966
|
+
updatedAt: string | Date;
|
|
5967
|
+
id: string;
|
|
5968
|
+
status: "ACTIVE" | "INACTIVE";
|
|
5969
|
+
lastName: string;
|
|
5970
|
+
firstName: string;
|
|
5971
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
5972
|
+
officeId?: string | null | undefined;
|
|
5973
|
+
office?: {
|
|
5974
|
+
name: string;
|
|
5975
|
+
id: string;
|
|
5976
|
+
managers?: {
|
|
5977
|
+
id: string;
|
|
5978
|
+
lastName: string;
|
|
5979
|
+
firstName: string;
|
|
5980
|
+
}[] | undefined;
|
|
5981
|
+
} | null | undefined;
|
|
5982
|
+
phoneNumbers?: {
|
|
5983
|
+
id: string;
|
|
5984
|
+
phoneNumber: string;
|
|
5985
|
+
description?: string | null | undefined;
|
|
5986
|
+
isPrimary?: boolean | undefined;
|
|
5987
|
+
}[] | undefined;
|
|
5988
|
+
deletedAt?: string | Date | null | undefined;
|
|
5989
|
+
canImpersonateUsers?: {
|
|
5990
|
+
id: string;
|
|
5991
|
+
lastName: string;
|
|
5992
|
+
firstName: string;
|
|
5993
|
+
}[] | undefined;
|
|
5994
|
+
dialpadUserId?: string | null | undefined;
|
|
5995
|
+
} | undefined;
|
|
5996
|
+
lead?: {
|
|
5997
|
+
name: string;
|
|
5998
|
+
phoneNumber: string;
|
|
5999
|
+
} | undefined;
|
|
6000
|
+
company?: {
|
|
6001
|
+
name: string;
|
|
6002
|
+
createdAt: string | Date;
|
|
6003
|
+
updatedAt: string | Date;
|
|
6004
|
+
id: string;
|
|
6005
|
+
} | null | undefined;
|
|
6006
|
+
callback?: {
|
|
6007
|
+
id: string;
|
|
6008
|
+
dueAt: string;
|
|
6009
|
+
originNotes: string | null;
|
|
6010
|
+
} | null | undefined;
|
|
6011
|
+
}>>;
|
|
6012
|
+
403: z.ZodObject<{
|
|
6013
|
+
statusCode: z.ZodNumber;
|
|
6014
|
+
message: z.ZodString;
|
|
6015
|
+
code: z.ZodString;
|
|
6016
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
6017
|
+
timestamp: z.ZodString;
|
|
6018
|
+
path: z.ZodString;
|
|
6019
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
6020
|
+
}, "strip", z.ZodTypeAny, {
|
|
6021
|
+
code: string;
|
|
6022
|
+
path: string;
|
|
6023
|
+
message: string;
|
|
6024
|
+
statusCode: number;
|
|
6025
|
+
timestamp: string;
|
|
6026
|
+
details?: unknown;
|
|
6027
|
+
correlationId?: string | undefined;
|
|
6028
|
+
}, {
|
|
6029
|
+
code: string;
|
|
6030
|
+
path: string;
|
|
6031
|
+
message: string;
|
|
6032
|
+
statusCode: number;
|
|
6033
|
+
timestamp: string;
|
|
6034
|
+
details?: unknown;
|
|
6035
|
+
correlationId?: string | undefined;
|
|
6036
|
+
}>;
|
|
6037
|
+
404: z.ZodObject<{
|
|
6038
|
+
statusCode: z.ZodNumber;
|
|
6039
|
+
message: z.ZodString;
|
|
6040
|
+
code: z.ZodString;
|
|
6041
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
6042
|
+
timestamp: z.ZodString;
|
|
6043
|
+
path: z.ZodString;
|
|
6044
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
6045
|
+
}, "strip", z.ZodTypeAny, {
|
|
6046
|
+
code: string;
|
|
6047
|
+
path: string;
|
|
6048
|
+
message: string;
|
|
6049
|
+
statusCode: number;
|
|
6050
|
+
timestamp: string;
|
|
6051
|
+
details?: unknown;
|
|
6052
|
+
correlationId?: string | undefined;
|
|
6053
|
+
}, {
|
|
6054
|
+
code: string;
|
|
6055
|
+
path: string;
|
|
6056
|
+
message: string;
|
|
6057
|
+
statusCode: number;
|
|
6058
|
+
timestamp: string;
|
|
6059
|
+
details?: unknown;
|
|
6060
|
+
correlationId?: string | undefined;
|
|
6061
|
+
}>;
|
|
6062
|
+
};
|
|
6063
|
+
};
|
|
6064
|
+
cancelCallback: {
|
|
6065
|
+
metadata: {
|
|
6066
|
+
tags: string[];
|
|
6067
|
+
};
|
|
6068
|
+
pathParams: z.ZodObject<{
|
|
6069
|
+
id: z.ZodString;
|
|
6070
|
+
}, "strip", z.ZodTypeAny, {
|
|
6071
|
+
id: string;
|
|
6072
|
+
}, {
|
|
6073
|
+
id: string;
|
|
6074
|
+
}>;
|
|
6075
|
+
summary: "Cancel a scheduled callback and release the hold";
|
|
6076
|
+
method: "POST";
|
|
6077
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
6078
|
+
path: "/v2/lead-callbacks/:id/cancel";
|
|
6079
|
+
responses: {
|
|
6080
|
+
401: z.ZodObject<{
|
|
6081
|
+
statusCode: z.ZodNumber;
|
|
6082
|
+
message: z.ZodString;
|
|
6083
|
+
code: z.ZodString;
|
|
6084
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
6085
|
+
timestamp: z.ZodString;
|
|
6086
|
+
path: z.ZodString;
|
|
6087
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
6088
|
+
}, "strip", z.ZodTypeAny, {
|
|
6089
|
+
code: string;
|
|
6090
|
+
path: string;
|
|
6091
|
+
message: string;
|
|
6092
|
+
statusCode: number;
|
|
6093
|
+
timestamp: string;
|
|
6094
|
+
details?: unknown;
|
|
6095
|
+
correlationId?: string | undefined;
|
|
6096
|
+
}, {
|
|
6097
|
+
code: string;
|
|
6098
|
+
path: string;
|
|
6099
|
+
message: string;
|
|
6100
|
+
statusCode: number;
|
|
6101
|
+
timestamp: string;
|
|
6102
|
+
details?: unknown;
|
|
6103
|
+
correlationId?: string | undefined;
|
|
6104
|
+
}>;
|
|
6105
|
+
400: z.ZodObject<{
|
|
6106
|
+
statusCode: z.ZodNumber;
|
|
6107
|
+
message: z.ZodString;
|
|
6108
|
+
code: z.ZodString;
|
|
6109
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
6110
|
+
timestamp: z.ZodString;
|
|
6111
|
+
path: z.ZodString;
|
|
6112
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
6113
|
+
}, "strip", z.ZodTypeAny, {
|
|
6114
|
+
code: string;
|
|
6115
|
+
path: string;
|
|
6116
|
+
message: string;
|
|
6117
|
+
statusCode: number;
|
|
6118
|
+
timestamp: string;
|
|
6119
|
+
details?: unknown;
|
|
6120
|
+
correlationId?: string | undefined;
|
|
6121
|
+
}, {
|
|
6122
|
+
code: string;
|
|
6123
|
+
path: string;
|
|
6124
|
+
message: string;
|
|
6125
|
+
statusCode: number;
|
|
6126
|
+
timestamp: string;
|
|
6127
|
+
details?: unknown;
|
|
6128
|
+
correlationId?: string | undefined;
|
|
6129
|
+
}>;
|
|
6130
|
+
500: z.ZodObject<{
|
|
6131
|
+
statusCode: z.ZodNumber;
|
|
6132
|
+
message: z.ZodString;
|
|
6133
|
+
code: z.ZodString;
|
|
6134
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
6135
|
+
timestamp: z.ZodString;
|
|
6136
|
+
path: z.ZodString;
|
|
6137
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
6138
|
+
}, "strip", z.ZodTypeAny, {
|
|
6139
|
+
code: string;
|
|
6140
|
+
path: string;
|
|
6141
|
+
message: string;
|
|
6142
|
+
statusCode: number;
|
|
6143
|
+
timestamp: string;
|
|
6144
|
+
details?: unknown;
|
|
6145
|
+
correlationId?: string | undefined;
|
|
6146
|
+
}, {
|
|
6147
|
+
code: string;
|
|
6148
|
+
path: string;
|
|
6149
|
+
message: string;
|
|
6150
|
+
statusCode: number;
|
|
6151
|
+
timestamp: string;
|
|
6152
|
+
details?: unknown;
|
|
6153
|
+
correlationId?: string | undefined;
|
|
6154
|
+
}>;
|
|
6155
|
+
200: z.ZodNullable<z.ZodObject<{
|
|
6156
|
+
id: z.ZodString;
|
|
6157
|
+
leadId: z.ZodString;
|
|
6158
|
+
lead: z.ZodOptional<z.ZodObject<{
|
|
6159
|
+
name: z.ZodString;
|
|
6160
|
+
phoneNumber: z.ZodString;
|
|
6161
|
+
}, "strip", z.ZodTypeAny, {
|
|
6162
|
+
name: string;
|
|
6163
|
+
phoneNumber: string;
|
|
6164
|
+
}, {
|
|
6165
|
+
name: string;
|
|
6166
|
+
phoneNumber: string;
|
|
6167
|
+
}>>;
|
|
6168
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
6169
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
6170
|
+
id: z.ZodString;
|
|
6171
|
+
firstName: z.ZodString;
|
|
6172
|
+
lastName: z.ZodString;
|
|
6173
|
+
email: z.ZodString;
|
|
6174
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6175
|
+
id: z.ZodString;
|
|
6176
|
+
phoneNumber: z.ZodString;
|
|
6177
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6178
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
6179
|
+
}, "strip", z.ZodTypeAny, {
|
|
6180
|
+
id: string;
|
|
6181
|
+
phoneNumber: string;
|
|
6182
|
+
isPrimary: boolean;
|
|
6183
|
+
description?: string | null | undefined;
|
|
6184
|
+
}, {
|
|
6185
|
+
id: string;
|
|
6186
|
+
phoneNumber: string;
|
|
6187
|
+
description?: string | null | undefined;
|
|
6188
|
+
isPrimary?: boolean | undefined;
|
|
6189
|
+
}>, "many">>>;
|
|
6190
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
|
|
6191
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6192
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6193
|
+
id: z.ZodString;
|
|
6194
|
+
name: z.ZodString;
|
|
6195
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6196
|
+
id: z.ZodString;
|
|
6197
|
+
firstName: z.ZodString;
|
|
6198
|
+
lastName: z.ZodString;
|
|
6199
|
+
}, "strip", z.ZodTypeAny, {
|
|
6200
|
+
id: string;
|
|
6201
|
+
lastName: string;
|
|
6202
|
+
firstName: string;
|
|
6203
|
+
}, {
|
|
6204
|
+
id: string;
|
|
6205
|
+
lastName: string;
|
|
6206
|
+
firstName: string;
|
|
6207
|
+
}>, "many">>;
|
|
6208
|
+
}, "strip", z.ZodTypeAny, {
|
|
6209
|
+
name: string;
|
|
6210
|
+
id: string;
|
|
6211
|
+
managers?: {
|
|
6212
|
+
id: string;
|
|
6213
|
+
lastName: string;
|
|
6214
|
+
firstName: string;
|
|
6215
|
+
}[] | undefined;
|
|
6216
|
+
}, {
|
|
6217
|
+
name: string;
|
|
6218
|
+
id: string;
|
|
6219
|
+
managers?: {
|
|
6220
|
+
id: string;
|
|
6221
|
+
lastName: string;
|
|
6222
|
+
firstName: string;
|
|
6223
|
+
}[] | undefined;
|
|
6224
|
+
}>>>;
|
|
6225
|
+
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6226
|
+
id: z.ZodString;
|
|
6227
|
+
firstName: z.ZodString;
|
|
6228
|
+
lastName: z.ZodString;
|
|
6229
|
+
}, "strip", z.ZodTypeAny, {
|
|
6230
|
+
id: string;
|
|
6231
|
+
lastName: string;
|
|
6232
|
+
firstName: string;
|
|
6233
|
+
}, {
|
|
6234
|
+
id: string;
|
|
6235
|
+
lastName: string;
|
|
6236
|
+
firstName: string;
|
|
6237
|
+
}>, "many">>;
|
|
6238
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
6239
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
6240
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6241
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6242
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
6243
|
+
}, "strip", z.ZodTypeAny, {
|
|
6244
|
+
email: string;
|
|
6245
|
+
createdAt: string;
|
|
6246
|
+
updatedAt: string;
|
|
6247
|
+
id: string;
|
|
6248
|
+
status: "ACTIVE" | "INACTIVE";
|
|
6249
|
+
lastName: string;
|
|
6250
|
+
firstName: string;
|
|
6251
|
+
phoneNumbers: {
|
|
6252
|
+
id: string;
|
|
6253
|
+
phoneNumber: string;
|
|
6254
|
+
isPrimary: boolean;
|
|
6255
|
+
description?: string | null | undefined;
|
|
6256
|
+
}[];
|
|
6257
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
6258
|
+
officeId?: string | null | undefined;
|
|
6259
|
+
office?: {
|
|
6260
|
+
name: string;
|
|
6261
|
+
id: string;
|
|
6262
|
+
managers?: {
|
|
6263
|
+
id: string;
|
|
6264
|
+
lastName: string;
|
|
6265
|
+
firstName: string;
|
|
6266
|
+
}[] | undefined;
|
|
6267
|
+
} | null | undefined;
|
|
6268
|
+
deletedAt?: string | null | undefined;
|
|
6269
|
+
canImpersonateUsers?: {
|
|
6270
|
+
id: string;
|
|
6271
|
+
lastName: string;
|
|
6272
|
+
firstName: string;
|
|
6273
|
+
}[] | undefined;
|
|
6274
|
+
dialpadUserId?: string | null | undefined;
|
|
6275
|
+
}, {
|
|
6276
|
+
email: string;
|
|
6277
|
+
createdAt: string | Date;
|
|
6278
|
+
updatedAt: string | Date;
|
|
6279
|
+
id: string;
|
|
6280
|
+
status: "ACTIVE" | "INACTIVE";
|
|
6281
|
+
lastName: string;
|
|
6282
|
+
firstName: string;
|
|
6283
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
6284
|
+
officeId?: string | null | undefined;
|
|
6285
|
+
office?: {
|
|
6286
|
+
name: string;
|
|
6287
|
+
id: string;
|
|
6288
|
+
managers?: {
|
|
6289
|
+
id: string;
|
|
6290
|
+
lastName: string;
|
|
6291
|
+
firstName: string;
|
|
6292
|
+
}[] | undefined;
|
|
6293
|
+
} | null | undefined;
|
|
6294
|
+
phoneNumbers?: {
|
|
6295
|
+
id: string;
|
|
6296
|
+
phoneNumber: string;
|
|
6297
|
+
description?: string | null | undefined;
|
|
6298
|
+
isPrimary?: boolean | undefined;
|
|
6299
|
+
}[] | undefined;
|
|
6300
|
+
deletedAt?: string | Date | null | undefined;
|
|
6301
|
+
canImpersonateUsers?: {
|
|
6302
|
+
id: string;
|
|
6303
|
+
lastName: string;
|
|
6304
|
+
firstName: string;
|
|
6305
|
+
}[] | undefined;
|
|
6306
|
+
dialpadUserId?: string | null | undefined;
|
|
6307
|
+
}>>;
|
|
6308
|
+
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6309
|
+
assignedBy: z.ZodNullable<z.ZodString>;
|
|
6310
|
+
status: z.ZodNativeEnum<typeof LeadAssignmentStatus>;
|
|
6311
|
+
companyId: z.ZodNullable<z.ZodString>;
|
|
6312
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6313
|
+
id: z.ZodString;
|
|
6314
|
+
name: z.ZodString;
|
|
6315
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6316
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6317
|
+
}, "strip", z.ZodTypeAny, {
|
|
6318
|
+
name: string;
|
|
6319
|
+
createdAt: string;
|
|
6320
|
+
updatedAt: string;
|
|
6321
|
+
id: string;
|
|
6322
|
+
}, {
|
|
6323
|
+
name: string;
|
|
6324
|
+
createdAt: string | Date;
|
|
6325
|
+
updatedAt: string | Date;
|
|
6326
|
+
id: string;
|
|
6327
|
+
}>>>;
|
|
6328
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6329
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6330
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6331
|
+
id: z.ZodString;
|
|
6332
|
+
dueAt: z.ZodString;
|
|
6333
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
6334
|
+
}, "strip", z.ZodTypeAny, {
|
|
6335
|
+
id: string;
|
|
6336
|
+
dueAt: string;
|
|
6337
|
+
originNotes: string | null;
|
|
6338
|
+
}, {
|
|
6339
|
+
id: string;
|
|
6340
|
+
dueAt: string;
|
|
6341
|
+
originNotes: string | null;
|
|
6342
|
+
}>>>;
|
|
6343
|
+
}, "strip", z.ZodTypeAny, {
|
|
6344
|
+
createdAt: string;
|
|
6345
|
+
updatedAt: string;
|
|
6346
|
+
id: string;
|
|
6347
|
+
status: LeadAssignmentStatus;
|
|
6348
|
+
agentId: string | null;
|
|
6349
|
+
leadId: string;
|
|
6350
|
+
assignedAt: string;
|
|
6351
|
+
assignedBy: string | null;
|
|
6352
|
+
companyId: string | null;
|
|
6353
|
+
agent?: {
|
|
6354
|
+
email: string;
|
|
6355
|
+
createdAt: string;
|
|
6356
|
+
updatedAt: string;
|
|
6357
|
+
id: string;
|
|
6358
|
+
status: "ACTIVE" | "INACTIVE";
|
|
6359
|
+
lastName: string;
|
|
6360
|
+
firstName: string;
|
|
6361
|
+
phoneNumbers: {
|
|
6362
|
+
id: string;
|
|
6363
|
+
phoneNumber: string;
|
|
6364
|
+
isPrimary: boolean;
|
|
6365
|
+
description?: string | null | undefined;
|
|
6366
|
+
}[];
|
|
6367
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
6368
|
+
officeId?: string | null | undefined;
|
|
6369
|
+
office?: {
|
|
6370
|
+
name: string;
|
|
6371
|
+
id: string;
|
|
6372
|
+
managers?: {
|
|
6373
|
+
id: string;
|
|
6374
|
+
lastName: string;
|
|
6375
|
+
firstName: string;
|
|
6376
|
+
}[] | undefined;
|
|
6377
|
+
} | null | undefined;
|
|
6378
|
+
deletedAt?: string | null | undefined;
|
|
6379
|
+
canImpersonateUsers?: {
|
|
6380
|
+
id: string;
|
|
6381
|
+
lastName: string;
|
|
6382
|
+
firstName: string;
|
|
6383
|
+
}[] | undefined;
|
|
6384
|
+
dialpadUserId?: string | null | undefined;
|
|
6385
|
+
} | undefined;
|
|
6386
|
+
lead?: {
|
|
6387
|
+
name: string;
|
|
6388
|
+
phoneNumber: string;
|
|
6389
|
+
} | undefined;
|
|
6390
|
+
company?: {
|
|
6391
|
+
name: string;
|
|
6392
|
+
createdAt: string;
|
|
6393
|
+
updatedAt: string;
|
|
6394
|
+
id: string;
|
|
6395
|
+
} | null | undefined;
|
|
6396
|
+
callback?: {
|
|
6397
|
+
id: string;
|
|
6398
|
+
dueAt: string;
|
|
6399
|
+
originNotes: string | null;
|
|
6400
|
+
} | null | undefined;
|
|
6401
|
+
}, {
|
|
6402
|
+
createdAt: string | Date;
|
|
6403
|
+
updatedAt: string | Date;
|
|
6404
|
+
id: string;
|
|
6405
|
+
status: LeadAssignmentStatus;
|
|
6406
|
+
agentId: string | null;
|
|
6407
|
+
leadId: string;
|
|
6408
|
+
assignedAt: string | Date;
|
|
6409
|
+
assignedBy: string | null;
|
|
6410
|
+
companyId: string | null;
|
|
6411
|
+
agent?: {
|
|
6412
|
+
email: string;
|
|
6413
|
+
createdAt: string | Date;
|
|
6414
|
+
updatedAt: string | Date;
|
|
6415
|
+
id: string;
|
|
6416
|
+
status: "ACTIVE" | "INACTIVE";
|
|
6417
|
+
lastName: string;
|
|
6418
|
+
firstName: string;
|
|
6419
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
6420
|
+
officeId?: string | null | undefined;
|
|
6421
|
+
office?: {
|
|
6422
|
+
name: string;
|
|
6423
|
+
id: string;
|
|
6424
|
+
managers?: {
|
|
6425
|
+
id: string;
|
|
6426
|
+
lastName: string;
|
|
6427
|
+
firstName: string;
|
|
6428
|
+
}[] | undefined;
|
|
6429
|
+
} | null | undefined;
|
|
6430
|
+
phoneNumbers?: {
|
|
6431
|
+
id: string;
|
|
6432
|
+
phoneNumber: string;
|
|
6433
|
+
description?: string | null | undefined;
|
|
6434
|
+
isPrimary?: boolean | undefined;
|
|
6435
|
+
}[] | undefined;
|
|
6436
|
+
deletedAt?: string | Date | null | undefined;
|
|
6437
|
+
canImpersonateUsers?: {
|
|
6438
|
+
id: string;
|
|
6439
|
+
lastName: string;
|
|
6440
|
+
firstName: string;
|
|
6441
|
+
}[] | undefined;
|
|
6442
|
+
dialpadUserId?: string | null | undefined;
|
|
6443
|
+
} | undefined;
|
|
6444
|
+
lead?: {
|
|
6445
|
+
name: string;
|
|
6446
|
+
phoneNumber: string;
|
|
6447
|
+
} | undefined;
|
|
6448
|
+
company?: {
|
|
6449
|
+
name: string;
|
|
6450
|
+
createdAt: string | Date;
|
|
6451
|
+
updatedAt: string | Date;
|
|
6452
|
+
id: string;
|
|
6453
|
+
} | null | undefined;
|
|
6454
|
+
callback?: {
|
|
6455
|
+
id: string;
|
|
6456
|
+
dueAt: string;
|
|
6457
|
+
originNotes: string | null;
|
|
6458
|
+
} | null | undefined;
|
|
6459
|
+
}>>;
|
|
6460
|
+
403: z.ZodObject<{
|
|
6461
|
+
statusCode: z.ZodNumber;
|
|
6462
|
+
message: z.ZodString;
|
|
6463
|
+
code: z.ZodString;
|
|
6464
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
6465
|
+
timestamp: z.ZodString;
|
|
6466
|
+
path: z.ZodString;
|
|
6467
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
6468
|
+
}, "strip", z.ZodTypeAny, {
|
|
6469
|
+
code: string;
|
|
6470
|
+
path: string;
|
|
6471
|
+
message: string;
|
|
6472
|
+
statusCode: number;
|
|
6473
|
+
timestamp: string;
|
|
6474
|
+
details?: unknown;
|
|
6475
|
+
correlationId?: string | undefined;
|
|
6476
|
+
}, {
|
|
6477
|
+
code: string;
|
|
6478
|
+
path: string;
|
|
6479
|
+
message: string;
|
|
6480
|
+
statusCode: number;
|
|
6481
|
+
timestamp: string;
|
|
6482
|
+
details?: unknown;
|
|
6483
|
+
correlationId?: string | undefined;
|
|
6484
|
+
}>;
|
|
6485
|
+
404: z.ZodObject<{
|
|
6486
|
+
statusCode: z.ZodNumber;
|
|
6487
|
+
message: z.ZodString;
|
|
6488
|
+
code: z.ZodString;
|
|
6489
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
6490
|
+
timestamp: z.ZodString;
|
|
6491
|
+
path: z.ZodString;
|
|
6492
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
6493
|
+
}, "strip", z.ZodTypeAny, {
|
|
6494
|
+
code: string;
|
|
6495
|
+
path: string;
|
|
6496
|
+
message: string;
|
|
6497
|
+
statusCode: number;
|
|
6498
|
+
timestamp: string;
|
|
6499
|
+
details?: unknown;
|
|
6500
|
+
correlationId?: string | undefined;
|
|
6501
|
+
}, {
|
|
6502
|
+
code: string;
|
|
6503
|
+
path: string;
|
|
6504
|
+
message: string;
|
|
6505
|
+
statusCode: number;
|
|
6506
|
+
timestamp: string;
|
|
6507
|
+
details?: unknown;
|
|
6508
|
+
correlationId?: string | undefined;
|
|
6509
|
+
}>;
|
|
6510
|
+
};
|
|
6511
|
+
};
|
|
4737
6512
|
};
|
|
4738
6513
|
//# sourceMappingURL=lead-assignments.contract.d.ts.map
|