@dakkitor/api-contracts 1.1.148 → 1.1.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actives/actives.contract.d.ts +6074 -6074
- package/dist/bookings/bookings.contract.d.ts +8956 -8956
- package/dist/call-history/call-history.contract.d.ts +365 -365
- package/dist/dashboards/dashboard-widgets.contract.d.ts +120 -120
- package/dist/jobs/jobs.contract.d.ts +2984 -2934
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +10 -19
- package/dist/lead-assignments/lead-assignments.contract.d.ts +316 -454
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.js +1 -20
- package/dist/leads/leads.contract.d.ts +99 -99
- package/dist/own-research/own-research.contract.d.ts +335 -335
- package/package.json +1 -1
|
@@ -34,10 +34,10 @@ export declare const LeadSchema: z.ZodObject<{
|
|
|
34
34
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
35
35
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
|
|
37
|
+
name: string;
|
|
38
38
|
phoneNumber: string;
|
|
39
39
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
40
|
-
|
|
40
|
+
id: string;
|
|
41
41
|
createdAt: string;
|
|
42
42
|
updatedAt: string;
|
|
43
43
|
source: string;
|
|
@@ -45,15 +45,15 @@ export declare const LeadSchema: z.ZodObject<{
|
|
|
45
45
|
cooldownUntil?: string | null | undefined;
|
|
46
46
|
blacklistReason?: string | null | undefined;
|
|
47
47
|
lastCallNotes?: string | null | undefined;
|
|
48
|
-
qualityScore?: number | null | undefined;
|
|
49
|
-
conversionRate?: number | null | undefined;
|
|
50
48
|
totalCalls?: number | null | undefined;
|
|
49
|
+
qualityScore?: number | null | undefined;
|
|
51
50
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
51
|
+
conversionRate?: number | null | undefined;
|
|
52
52
|
}, {
|
|
53
|
-
|
|
53
|
+
name: string;
|
|
54
54
|
phoneNumber: string;
|
|
55
55
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
56
|
-
|
|
56
|
+
id: string;
|
|
57
57
|
createdAt: string | Date;
|
|
58
58
|
updatedAt: string | Date;
|
|
59
59
|
source: string;
|
|
@@ -61,10 +61,10 @@ export declare const LeadSchema: z.ZodObject<{
|
|
|
61
61
|
cooldownUntil?: string | Date | null | undefined;
|
|
62
62
|
blacklistReason?: string | null | undefined;
|
|
63
63
|
lastCallNotes?: string | null | undefined;
|
|
64
|
-
qualityScore?: number | null | undefined;
|
|
65
|
-
conversionRate?: number | null | undefined;
|
|
66
64
|
totalCalls?: number | null | undefined;
|
|
65
|
+
qualityScore?: number | null | undefined;
|
|
67
66
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
67
|
+
conversionRate?: number | null | undefined;
|
|
68
68
|
}>;
|
|
69
69
|
/**
|
|
70
70
|
* Create Lead Schema
|
|
@@ -77,29 +77,29 @@ export declare const CreateLeadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
77
77
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
78
78
|
source: z.ZodString;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
phoneNumber: string;
|
|
81
80
|
name: string;
|
|
81
|
+
phoneNumber: string;
|
|
82
82
|
source: string;
|
|
83
83
|
isBlacklisted: boolean;
|
|
84
84
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
85
85
|
blacklistReason?: string | null | undefined;
|
|
86
86
|
}, {
|
|
87
|
-
phoneNumber: string;
|
|
88
87
|
name: string;
|
|
88
|
+
phoneNumber: string;
|
|
89
89
|
source: string;
|
|
90
90
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
91
91
|
blacklistReason?: string | null | undefined;
|
|
92
92
|
isBlacklisted?: boolean | undefined;
|
|
93
93
|
}>, {
|
|
94
|
-
phoneNumber: string;
|
|
95
94
|
name: string;
|
|
95
|
+
phoneNumber: string;
|
|
96
96
|
source: string;
|
|
97
97
|
isBlacklisted: boolean;
|
|
98
98
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
99
99
|
blacklistReason?: string | null | undefined;
|
|
100
100
|
}, {
|
|
101
|
-
phoneNumber: string;
|
|
102
101
|
name: string;
|
|
102
|
+
phoneNumber: string;
|
|
103
103
|
source: string;
|
|
104
104
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
105
105
|
blacklistReason?: string | null | undefined;
|
|
@@ -115,27 +115,27 @@ export declare const UpdateLeadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
115
115
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
116
116
|
source: z.ZodOptional<z.ZodString>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
name?: string | undefined;
|
|
118
119
|
phoneNumber?: string | undefined;
|
|
119
120
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
120
|
-
name?: string | undefined;
|
|
121
121
|
blacklistReason?: string | null | undefined;
|
|
122
122
|
source?: string | undefined;
|
|
123
123
|
}, {
|
|
124
|
+
name?: string | undefined;
|
|
124
125
|
phoneNumber?: string | undefined;
|
|
125
126
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
126
|
-
name?: string | undefined;
|
|
127
127
|
blacklistReason?: string | null | undefined;
|
|
128
128
|
source?: string | undefined;
|
|
129
129
|
}>, {
|
|
130
|
+
name?: string | undefined;
|
|
130
131
|
phoneNumber?: string | undefined;
|
|
131
132
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
132
|
-
name?: string | undefined;
|
|
133
133
|
blacklistReason?: string | null | undefined;
|
|
134
134
|
source?: string | undefined;
|
|
135
135
|
}, {
|
|
136
|
+
name?: string | undefined;
|
|
136
137
|
phoneNumber?: string | undefined;
|
|
137
138
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
138
|
-
name?: string | undefined;
|
|
139
139
|
blacklistReason?: string | null | undefined;
|
|
140
140
|
source?: string | undefined;
|
|
141
141
|
}>;
|
|
@@ -170,15 +170,15 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
171
|
limit: number;
|
|
172
172
|
page: number;
|
|
173
|
+
name?: string | null | undefined;
|
|
173
174
|
phoneNumber?: string | null | undefined;
|
|
174
175
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
175
|
-
name?: string | null | undefined;
|
|
176
176
|
lastCalledAt?: {
|
|
177
177
|
from?: string | null | undefined;
|
|
178
178
|
to?: string | null | undefined;
|
|
179
179
|
} | null | undefined;
|
|
180
180
|
minTotalCalls?: number | null | undefined;
|
|
181
|
-
sortBy?: "
|
|
181
|
+
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "lastCalledAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
182
182
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
183
183
|
source?: string | null | undefined;
|
|
184
184
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
@@ -186,9 +186,9 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
186
186
|
maxQualityScore?: number | null | undefined;
|
|
187
187
|
minConversionRate?: number | null | undefined;
|
|
188
188
|
}, {
|
|
189
|
+
name?: string | null | undefined;
|
|
189
190
|
phoneNumber?: string | null | undefined;
|
|
190
191
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
191
|
-
name?: string | null | undefined;
|
|
192
192
|
lastCalledAt?: {
|
|
193
193
|
from?: string | null | undefined;
|
|
194
194
|
to?: string | null | undefined;
|
|
@@ -196,7 +196,7 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
196
196
|
limit?: number | undefined;
|
|
197
197
|
page?: number | undefined;
|
|
198
198
|
minTotalCalls?: number | null | undefined;
|
|
199
|
-
sortBy?: "
|
|
199
|
+
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "lastCalledAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
200
200
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
201
201
|
source?: string | null | undefined;
|
|
202
202
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
@@ -220,23 +220,23 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
220
220
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
221
221
|
}, "strip", z.ZodTypeAny, {
|
|
222
222
|
id: string;
|
|
223
|
+
leadId: string;
|
|
223
224
|
agentId: string;
|
|
224
225
|
createdAt: string;
|
|
225
226
|
updatedAt: string;
|
|
226
227
|
rating: import("../common/call-rating.schema").CallRating;
|
|
227
228
|
callType: import("../call-history/call-history.contract").CallType;
|
|
228
|
-
leadId: string;
|
|
229
229
|
assignmentId: string;
|
|
230
230
|
ratingWeight: number;
|
|
231
231
|
notes?: string | null | undefined;
|
|
232
232
|
}, {
|
|
233
233
|
id: string;
|
|
234
|
+
leadId: string;
|
|
234
235
|
agentId: string;
|
|
235
236
|
createdAt: string | Date;
|
|
236
237
|
updatedAt: string | Date;
|
|
237
238
|
rating: import("../common/call-rating.schema").CallRating;
|
|
238
239
|
callType: import("../call-history/call-history.contract").CallType;
|
|
239
|
-
leadId: string;
|
|
240
240
|
assignmentId: string;
|
|
241
241
|
ratingWeight: number;
|
|
242
242
|
notes?: string | null | undefined;
|
|
@@ -322,10 +322,10 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
322
322
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
323
323
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
324
324
|
}, "strip", z.ZodTypeAny, {
|
|
325
|
-
|
|
325
|
+
name: string;
|
|
326
326
|
phoneNumber: string;
|
|
327
327
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
328
|
-
|
|
328
|
+
id: string;
|
|
329
329
|
createdAt: string;
|
|
330
330
|
updatedAt: string;
|
|
331
331
|
source: string;
|
|
@@ -333,15 +333,15 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
333
333
|
cooldownUntil?: string | null | undefined;
|
|
334
334
|
blacklistReason?: string | null | undefined;
|
|
335
335
|
lastCallNotes?: string | null | undefined;
|
|
336
|
-
qualityScore?: number | null | undefined;
|
|
337
|
-
conversionRate?: number | null | undefined;
|
|
338
336
|
totalCalls?: number | null | undefined;
|
|
337
|
+
qualityScore?: number | null | undefined;
|
|
339
338
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
339
|
+
conversionRate?: number | null | undefined;
|
|
340
340
|
}, {
|
|
341
|
-
|
|
341
|
+
name: string;
|
|
342
342
|
phoneNumber: string;
|
|
343
343
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
344
|
-
|
|
344
|
+
id: string;
|
|
345
345
|
createdAt: string | Date;
|
|
346
346
|
updatedAt: string | Date;
|
|
347
347
|
source: string;
|
|
@@ -349,10 +349,10 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
349
349
|
cooldownUntil?: string | Date | null | undefined;
|
|
350
350
|
blacklistReason?: string | null | undefined;
|
|
351
351
|
lastCallNotes?: string | null | undefined;
|
|
352
|
-
qualityScore?: number | null | undefined;
|
|
353
|
-
conversionRate?: number | null | undefined;
|
|
354
352
|
totalCalls?: number | null | undefined;
|
|
353
|
+
qualityScore?: number | null | undefined;
|
|
355
354
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
355
|
+
conversionRate?: number | null | undefined;
|
|
356
356
|
}>, "many">;
|
|
357
357
|
totalCount: z.ZodNumber;
|
|
358
358
|
limit: z.ZodNumber;
|
|
@@ -362,10 +362,10 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
362
362
|
}, "strip", z.ZodTypeAny, {
|
|
363
363
|
limit: number;
|
|
364
364
|
items: {
|
|
365
|
-
|
|
365
|
+
name: string;
|
|
366
366
|
phoneNumber: string;
|
|
367
367
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
368
|
-
|
|
368
|
+
id: string;
|
|
369
369
|
createdAt: string;
|
|
370
370
|
updatedAt: string;
|
|
371
371
|
source: string;
|
|
@@ -373,10 +373,10 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
373
373
|
cooldownUntil?: string | null | undefined;
|
|
374
374
|
blacklistReason?: string | null | undefined;
|
|
375
375
|
lastCallNotes?: string | null | undefined;
|
|
376
|
-
qualityScore?: number | null | undefined;
|
|
377
|
-
conversionRate?: number | null | undefined;
|
|
378
376
|
totalCalls?: number | null | undefined;
|
|
377
|
+
qualityScore?: number | null | undefined;
|
|
379
378
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
379
|
+
conversionRate?: number | null | undefined;
|
|
380
380
|
}[];
|
|
381
381
|
totalCount: number;
|
|
382
382
|
skip: number;
|
|
@@ -385,10 +385,10 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
385
385
|
}, {
|
|
386
386
|
limit: number;
|
|
387
387
|
items: {
|
|
388
|
-
|
|
388
|
+
name: string;
|
|
389
389
|
phoneNumber: string;
|
|
390
390
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
391
|
-
|
|
391
|
+
id: string;
|
|
392
392
|
createdAt: string | Date;
|
|
393
393
|
updatedAt: string | Date;
|
|
394
394
|
source: string;
|
|
@@ -396,10 +396,10 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
396
396
|
cooldownUntil?: string | Date | null | undefined;
|
|
397
397
|
blacklistReason?: string | null | undefined;
|
|
398
398
|
lastCallNotes?: string | null | undefined;
|
|
399
|
-
qualityScore?: number | null | undefined;
|
|
400
|
-
conversionRate?: number | null | undefined;
|
|
401
399
|
totalCalls?: number | null | undefined;
|
|
400
|
+
qualityScore?: number | null | undefined;
|
|
402
401
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
402
|
+
conversionRate?: number | null | undefined;
|
|
403
403
|
}[];
|
|
404
404
|
totalCount: number;
|
|
405
405
|
skip: number;
|
|
@@ -432,29 +432,29 @@ export declare const leadsContractRouter: {
|
|
|
432
432
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
433
433
|
source: z.ZodString;
|
|
434
434
|
}, "strip", z.ZodTypeAny, {
|
|
435
|
-
phoneNumber: string;
|
|
436
435
|
name: string;
|
|
436
|
+
phoneNumber: string;
|
|
437
437
|
source: string;
|
|
438
438
|
isBlacklisted: boolean;
|
|
439
439
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
440
440
|
blacklistReason?: string | null | undefined;
|
|
441
441
|
}, {
|
|
442
|
-
phoneNumber: string;
|
|
443
442
|
name: string;
|
|
443
|
+
phoneNumber: string;
|
|
444
444
|
source: string;
|
|
445
445
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
446
446
|
blacklistReason?: string | null | undefined;
|
|
447
447
|
isBlacklisted?: boolean | undefined;
|
|
448
448
|
}>, {
|
|
449
|
-
phoneNumber: string;
|
|
450
449
|
name: string;
|
|
450
|
+
phoneNumber: string;
|
|
451
451
|
source: string;
|
|
452
452
|
isBlacklisted: boolean;
|
|
453
453
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
454
454
|
blacklistReason?: string | null | undefined;
|
|
455
455
|
}, {
|
|
456
|
-
phoneNumber: string;
|
|
457
456
|
name: string;
|
|
457
|
+
phoneNumber: string;
|
|
458
458
|
source: string;
|
|
459
459
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
460
460
|
blacklistReason?: string | null | undefined;
|
|
@@ -579,10 +579,10 @@ export declare const leadsContractRouter: {
|
|
|
579
579
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
580
580
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
581
581
|
}, "strip", z.ZodTypeAny, {
|
|
582
|
-
|
|
582
|
+
name: string;
|
|
583
583
|
phoneNumber: string;
|
|
584
584
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
585
|
-
|
|
585
|
+
id: string;
|
|
586
586
|
createdAt: string;
|
|
587
587
|
updatedAt: string;
|
|
588
588
|
source: string;
|
|
@@ -590,15 +590,15 @@ export declare const leadsContractRouter: {
|
|
|
590
590
|
cooldownUntil?: string | null | undefined;
|
|
591
591
|
blacklistReason?: string | null | undefined;
|
|
592
592
|
lastCallNotes?: string | null | undefined;
|
|
593
|
-
qualityScore?: number | null | undefined;
|
|
594
|
-
conversionRate?: number | null | undefined;
|
|
595
593
|
totalCalls?: number | null | undefined;
|
|
594
|
+
qualityScore?: number | null | undefined;
|
|
596
595
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
596
|
+
conversionRate?: number | null | undefined;
|
|
597
597
|
}, {
|
|
598
|
-
|
|
598
|
+
name: string;
|
|
599
599
|
phoneNumber: string;
|
|
600
600
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
601
|
-
|
|
601
|
+
id: string;
|
|
602
602
|
createdAt: string | Date;
|
|
603
603
|
updatedAt: string | Date;
|
|
604
604
|
source: string;
|
|
@@ -606,10 +606,10 @@ export declare const leadsContractRouter: {
|
|
|
606
606
|
cooldownUntil?: string | Date | null | undefined;
|
|
607
607
|
blacklistReason?: string | null | undefined;
|
|
608
608
|
lastCallNotes?: string | null | undefined;
|
|
609
|
-
qualityScore?: number | null | undefined;
|
|
610
|
-
conversionRate?: number | null | undefined;
|
|
611
609
|
totalCalls?: number | null | undefined;
|
|
610
|
+
qualityScore?: number | null | undefined;
|
|
612
611
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
612
|
+
conversionRate?: number | null | undefined;
|
|
613
613
|
}>;
|
|
614
614
|
409: z.ZodObject<{
|
|
615
615
|
statusCode: z.ZodNumber;
|
|
@@ -639,6 +639,12 @@ export declare const leadsContractRouter: {
|
|
|
639
639
|
};
|
|
640
640
|
};
|
|
641
641
|
findAll: {
|
|
642
|
+
metadata: {
|
|
643
|
+
tags: string[];
|
|
644
|
+
openApi: {
|
|
645
|
+
operationId: string;
|
|
646
|
+
};
|
|
647
|
+
};
|
|
642
648
|
query: z.ZodObject<{
|
|
643
649
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
644
650
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -667,15 +673,15 @@ export declare const leadsContractRouter: {
|
|
|
667
673
|
}, "strip", z.ZodTypeAny, {
|
|
668
674
|
limit: number;
|
|
669
675
|
page: number;
|
|
676
|
+
name?: string | null | undefined;
|
|
670
677
|
phoneNumber?: string | null | undefined;
|
|
671
678
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
672
|
-
name?: string | null | undefined;
|
|
673
679
|
lastCalledAt?: {
|
|
674
680
|
from?: string | null | undefined;
|
|
675
681
|
to?: string | null | undefined;
|
|
676
682
|
} | null | undefined;
|
|
677
683
|
minTotalCalls?: number | null | undefined;
|
|
678
|
-
sortBy?: "
|
|
684
|
+
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "lastCalledAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
679
685
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
680
686
|
source?: string | null | undefined;
|
|
681
687
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
@@ -683,9 +689,9 @@ export declare const leadsContractRouter: {
|
|
|
683
689
|
maxQualityScore?: number | null | undefined;
|
|
684
690
|
minConversionRate?: number | null | undefined;
|
|
685
691
|
}, {
|
|
692
|
+
name?: string | null | undefined;
|
|
686
693
|
phoneNumber?: string | null | undefined;
|
|
687
694
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
688
|
-
name?: string | null | undefined;
|
|
689
695
|
lastCalledAt?: {
|
|
690
696
|
from?: string | null | undefined;
|
|
691
697
|
to?: string | null | undefined;
|
|
@@ -693,7 +699,7 @@ export declare const leadsContractRouter: {
|
|
|
693
699
|
limit?: number | undefined;
|
|
694
700
|
page?: number | undefined;
|
|
695
701
|
minTotalCalls?: number | null | undefined;
|
|
696
|
-
sortBy?: "
|
|
702
|
+
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "lastCalledAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
697
703
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
698
704
|
source?: string | null | undefined;
|
|
699
705
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
@@ -701,12 +707,6 @@ export declare const leadsContractRouter: {
|
|
|
701
707
|
maxQualityScore?: number | null | undefined;
|
|
702
708
|
minConversionRate?: number | null | undefined;
|
|
703
709
|
}>;
|
|
704
|
-
metadata: {
|
|
705
|
-
tags: string[];
|
|
706
|
-
openApi: {
|
|
707
|
-
operationId: string;
|
|
708
|
-
};
|
|
709
|
-
};
|
|
710
710
|
summary: "Get all leads";
|
|
711
711
|
method: "GET";
|
|
712
712
|
path: "/v2/leads";
|
|
@@ -829,10 +829,10 @@ export declare const leadsContractRouter: {
|
|
|
829
829
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
830
830
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
831
831
|
}, "strip", z.ZodTypeAny, {
|
|
832
|
-
|
|
832
|
+
name: string;
|
|
833
833
|
phoneNumber: string;
|
|
834
834
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
835
|
-
|
|
835
|
+
id: string;
|
|
836
836
|
createdAt: string;
|
|
837
837
|
updatedAt: string;
|
|
838
838
|
source: string;
|
|
@@ -840,15 +840,15 @@ export declare const leadsContractRouter: {
|
|
|
840
840
|
cooldownUntil?: string | null | undefined;
|
|
841
841
|
blacklistReason?: string | null | undefined;
|
|
842
842
|
lastCallNotes?: string | null | undefined;
|
|
843
|
-
qualityScore?: number | null | undefined;
|
|
844
|
-
conversionRate?: number | null | undefined;
|
|
845
843
|
totalCalls?: number | null | undefined;
|
|
844
|
+
qualityScore?: number | null | undefined;
|
|
846
845
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
846
|
+
conversionRate?: number | null | undefined;
|
|
847
847
|
}, {
|
|
848
|
-
|
|
848
|
+
name: string;
|
|
849
849
|
phoneNumber: string;
|
|
850
850
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
851
|
-
|
|
851
|
+
id: string;
|
|
852
852
|
createdAt: string | Date;
|
|
853
853
|
updatedAt: string | Date;
|
|
854
854
|
source: string;
|
|
@@ -856,10 +856,10 @@ export declare const leadsContractRouter: {
|
|
|
856
856
|
cooldownUntil?: string | Date | null | undefined;
|
|
857
857
|
blacklistReason?: string | null | undefined;
|
|
858
858
|
lastCallNotes?: string | null | undefined;
|
|
859
|
-
qualityScore?: number | null | undefined;
|
|
860
|
-
conversionRate?: number | null | undefined;
|
|
861
859
|
totalCalls?: number | null | undefined;
|
|
860
|
+
qualityScore?: number | null | undefined;
|
|
862
861
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
862
|
+
conversionRate?: number | null | undefined;
|
|
863
863
|
}>, "many">;
|
|
864
864
|
totalCount: z.ZodNumber;
|
|
865
865
|
limit: z.ZodNumber;
|
|
@@ -869,10 +869,10 @@ export declare const leadsContractRouter: {
|
|
|
869
869
|
}, "strip", z.ZodTypeAny, {
|
|
870
870
|
limit: number;
|
|
871
871
|
items: {
|
|
872
|
-
|
|
872
|
+
name: string;
|
|
873
873
|
phoneNumber: string;
|
|
874
874
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
875
|
-
|
|
875
|
+
id: string;
|
|
876
876
|
createdAt: string;
|
|
877
877
|
updatedAt: string;
|
|
878
878
|
source: string;
|
|
@@ -880,10 +880,10 @@ export declare const leadsContractRouter: {
|
|
|
880
880
|
cooldownUntil?: string | null | undefined;
|
|
881
881
|
blacklistReason?: string | null | undefined;
|
|
882
882
|
lastCallNotes?: string | null | undefined;
|
|
883
|
-
qualityScore?: number | null | undefined;
|
|
884
|
-
conversionRate?: number | null | undefined;
|
|
885
883
|
totalCalls?: number | null | undefined;
|
|
884
|
+
qualityScore?: number | null | undefined;
|
|
886
885
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
886
|
+
conversionRate?: number | null | undefined;
|
|
887
887
|
}[];
|
|
888
888
|
totalCount: number;
|
|
889
889
|
skip: number;
|
|
@@ -892,10 +892,10 @@ export declare const leadsContractRouter: {
|
|
|
892
892
|
}, {
|
|
893
893
|
limit: number;
|
|
894
894
|
items: {
|
|
895
|
-
|
|
895
|
+
name: string;
|
|
896
896
|
phoneNumber: string;
|
|
897
897
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
898
|
-
|
|
898
|
+
id: string;
|
|
899
899
|
createdAt: string | Date;
|
|
900
900
|
updatedAt: string | Date;
|
|
901
901
|
source: string;
|
|
@@ -903,10 +903,10 @@ export declare const leadsContractRouter: {
|
|
|
903
903
|
cooldownUntil?: string | Date | null | undefined;
|
|
904
904
|
blacklistReason?: string | null | undefined;
|
|
905
905
|
lastCallNotes?: string | null | undefined;
|
|
906
|
-
qualityScore?: number | null | undefined;
|
|
907
|
-
conversionRate?: number | null | undefined;
|
|
908
906
|
totalCalls?: number | null | undefined;
|
|
907
|
+
qualityScore?: number | null | undefined;
|
|
909
908
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
909
|
+
conversionRate?: number | null | undefined;
|
|
910
910
|
}[];
|
|
911
911
|
totalCount: number;
|
|
912
912
|
skip: number;
|
|
@@ -1050,10 +1050,10 @@ export declare const leadsContractRouter: {
|
|
|
1050
1050
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1051
1051
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1052
1052
|
}, "strip", z.ZodTypeAny, {
|
|
1053
|
-
|
|
1053
|
+
name: string;
|
|
1054
1054
|
phoneNumber: string;
|
|
1055
1055
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1056
|
-
|
|
1056
|
+
id: string;
|
|
1057
1057
|
createdAt: string;
|
|
1058
1058
|
updatedAt: string;
|
|
1059
1059
|
source: string;
|
|
@@ -1061,15 +1061,15 @@ export declare const leadsContractRouter: {
|
|
|
1061
1061
|
cooldownUntil?: string | null | undefined;
|
|
1062
1062
|
blacklistReason?: string | null | undefined;
|
|
1063
1063
|
lastCallNotes?: string | null | undefined;
|
|
1064
|
-
qualityScore?: number | null | undefined;
|
|
1065
|
-
conversionRate?: number | null | undefined;
|
|
1066
1064
|
totalCalls?: number | null | undefined;
|
|
1065
|
+
qualityScore?: number | null | undefined;
|
|
1067
1066
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1067
|
+
conversionRate?: number | null | undefined;
|
|
1068
1068
|
}, {
|
|
1069
|
-
|
|
1069
|
+
name: string;
|
|
1070
1070
|
phoneNumber: string;
|
|
1071
1071
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1072
|
-
|
|
1072
|
+
id: string;
|
|
1073
1073
|
createdAt: string | Date;
|
|
1074
1074
|
updatedAt: string | Date;
|
|
1075
1075
|
source: string;
|
|
@@ -1077,10 +1077,10 @@ export declare const leadsContractRouter: {
|
|
|
1077
1077
|
cooldownUntil?: string | Date | null | undefined;
|
|
1078
1078
|
blacklistReason?: string | null | undefined;
|
|
1079
1079
|
lastCallNotes?: string | null | undefined;
|
|
1080
|
-
qualityScore?: number | null | undefined;
|
|
1081
|
-
conversionRate?: number | null | undefined;
|
|
1082
1080
|
totalCalls?: number | null | undefined;
|
|
1081
|
+
qualityScore?: number | null | undefined;
|
|
1083
1082
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1083
|
+
conversionRate?: number | null | undefined;
|
|
1084
1084
|
}>;
|
|
1085
1085
|
404: z.ZodObject<{
|
|
1086
1086
|
statusCode: z.ZodNumber;
|
|
@@ -1132,27 +1132,27 @@ export declare const leadsContractRouter: {
|
|
|
1132
1132
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1133
1133
|
source: z.ZodOptional<z.ZodString>;
|
|
1134
1134
|
}, "strip", z.ZodTypeAny, {
|
|
1135
|
+
name?: string | undefined;
|
|
1135
1136
|
phoneNumber?: string | undefined;
|
|
1136
1137
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1137
|
-
name?: string | undefined;
|
|
1138
1138
|
blacklistReason?: string | null | undefined;
|
|
1139
1139
|
source?: string | undefined;
|
|
1140
1140
|
}, {
|
|
1141
|
+
name?: string | undefined;
|
|
1141
1142
|
phoneNumber?: string | undefined;
|
|
1142
1143
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1143
|
-
name?: string | undefined;
|
|
1144
1144
|
blacklistReason?: string | null | undefined;
|
|
1145
1145
|
source?: string | undefined;
|
|
1146
1146
|
}>, {
|
|
1147
|
+
name?: string | undefined;
|
|
1147
1148
|
phoneNumber?: string | undefined;
|
|
1148
1149
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1149
|
-
name?: string | undefined;
|
|
1150
1150
|
blacklistReason?: string | null | undefined;
|
|
1151
1151
|
source?: string | undefined;
|
|
1152
1152
|
}, {
|
|
1153
|
+
name?: string | undefined;
|
|
1153
1154
|
phoneNumber?: string | undefined;
|
|
1154
1155
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1155
|
-
name?: string | undefined;
|
|
1156
1156
|
blacklistReason?: string | null | undefined;
|
|
1157
1157
|
source?: string | undefined;
|
|
1158
1158
|
}>;
|
|
@@ -1275,10 +1275,10 @@ export declare const leadsContractRouter: {
|
|
|
1275
1275
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1276
1276
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1277
1277
|
}, "strip", z.ZodTypeAny, {
|
|
1278
|
-
|
|
1278
|
+
name: string;
|
|
1279
1279
|
phoneNumber: string;
|
|
1280
1280
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1281
|
-
|
|
1281
|
+
id: string;
|
|
1282
1282
|
createdAt: string;
|
|
1283
1283
|
updatedAt: string;
|
|
1284
1284
|
source: string;
|
|
@@ -1286,15 +1286,15 @@ export declare const leadsContractRouter: {
|
|
|
1286
1286
|
cooldownUntil?: string | null | undefined;
|
|
1287
1287
|
blacklistReason?: string | null | undefined;
|
|
1288
1288
|
lastCallNotes?: string | null | undefined;
|
|
1289
|
-
qualityScore?: number | null | undefined;
|
|
1290
|
-
conversionRate?: number | null | undefined;
|
|
1291
1289
|
totalCalls?: number | null | undefined;
|
|
1290
|
+
qualityScore?: number | null | undefined;
|
|
1292
1291
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1292
|
+
conversionRate?: number | null | undefined;
|
|
1293
1293
|
}, {
|
|
1294
|
-
|
|
1294
|
+
name: string;
|
|
1295
1295
|
phoneNumber: string;
|
|
1296
1296
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1297
|
-
|
|
1297
|
+
id: string;
|
|
1298
1298
|
createdAt: string | Date;
|
|
1299
1299
|
updatedAt: string | Date;
|
|
1300
1300
|
source: string;
|
|
@@ -1302,10 +1302,10 @@ export declare const leadsContractRouter: {
|
|
|
1302
1302
|
cooldownUntil?: string | Date | null | undefined;
|
|
1303
1303
|
blacklistReason?: string | null | undefined;
|
|
1304
1304
|
lastCallNotes?: string | null | undefined;
|
|
1305
|
-
qualityScore?: number | null | undefined;
|
|
1306
|
-
conversionRate?: number | null | undefined;
|
|
1307
1305
|
totalCalls?: number | null | undefined;
|
|
1306
|
+
qualityScore?: number | null | undefined;
|
|
1308
1307
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1308
|
+
conversionRate?: number | null | undefined;
|
|
1309
1309
|
}>;
|
|
1310
1310
|
404: z.ZodObject<{
|
|
1311
1311
|
statusCode: z.ZodNumber;
|
|
@@ -1653,23 +1653,23 @@ export declare const leadsContractRouter: {
|
|
|
1653
1653
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1654
1654
|
}, "strip", z.ZodTypeAny, {
|
|
1655
1655
|
id: string;
|
|
1656
|
+
leadId: string;
|
|
1656
1657
|
agentId: string;
|
|
1657
1658
|
createdAt: string;
|
|
1658
1659
|
updatedAt: string;
|
|
1659
1660
|
rating: import("../common/call-rating.schema").CallRating;
|
|
1660
1661
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1661
|
-
leadId: string;
|
|
1662
1662
|
assignmentId: string;
|
|
1663
1663
|
ratingWeight: number;
|
|
1664
1664
|
notes?: string | null | undefined;
|
|
1665
1665
|
}, {
|
|
1666
1666
|
id: string;
|
|
1667
|
+
leadId: string;
|
|
1667
1668
|
agentId: string;
|
|
1668
1669
|
createdAt: string | Date;
|
|
1669
1670
|
updatedAt: string | Date;
|
|
1670
1671
|
rating: import("../common/call-rating.schema").CallRating;
|
|
1671
1672
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1672
|
-
leadId: string;
|
|
1673
1673
|
assignmentId: string;
|
|
1674
1674
|
ratingWeight: number;
|
|
1675
1675
|
notes?: string | null | undefined;
|
|
@@ -1677,13 +1677,13 @@ export declare const leadsContractRouter: {
|
|
|
1677
1677
|
};
|
|
1678
1678
|
};
|
|
1679
1679
|
getQualityDashboard: {
|
|
1680
|
-
query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1681
1680
|
metadata: {
|
|
1682
1681
|
tags: string[];
|
|
1683
1682
|
openApi: {
|
|
1684
1683
|
operationId: string;
|
|
1685
1684
|
};
|
|
1686
1685
|
};
|
|
1686
|
+
query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1687
1687
|
summary: "Get lead quality analytics dashboard";
|
|
1688
1688
|
method: "GET";
|
|
1689
1689
|
path: "/v2/leads/analytics/quality-dashboard";
|