@dakkitor/api-contracts 1.1.131 → 1.1.133
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 +19 -13
- package/dist/abilities/abilities.contract.js +33 -18
- package/dist/abilities/first-agent.abilities.json +68 -56
- package/dist/abilities/second-agent.abilities.json +3 -3
- package/dist/abilities/team-leads.json +3 -6
- package/dist/actives/actives.contract.d.ts +6313 -6313
- package/dist/actives/actives.contract.js +92 -92
- package/dist/agent-client-links/agent-client-links.contract.d.ts +511 -511
- package/dist/auth/auth.contract.d.ts +16 -16
- package/dist/bookings/bookings.contract.d.ts +23378 -23378
- package/dist/call-history/call-history.contract.d.ts +366 -366
- package/dist/call-history/call-history.contract.js +67 -67
- package/dist/client-contacts/client-contacts.contract.d.ts +159 -159
- package/dist/clients/clients.contract.d.ts +72 -72
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1330 -1330
- package/dist/collaborations/collaborations.contract.d.ts +1198 -1198
- package/dist/common/call-rating.schema.d.ts +12 -12
- package/dist/common/call-rating.schema.js +48 -40
- package/dist/common/common-schemas.d.ts +4 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +1 -2
- package/dist/common/error-schemas.d.ts +11 -5
- package/dist/common/error-schemas.js +11 -8
- package/dist/common/openapi-metadata.d.ts +54 -44
- package/dist/common/openapi-metadata.js +135 -129
- package/dist/common/pagination-query.schema.d.ts +11 -5
- package/dist/common/pagination-query.schema.js +11 -8
- package/dist/companies/companies.contract.d.ts +40 -40
- package/dist/cron-executions/cron-executions.contract.d.ts +14 -14
- package/dist/curated-workers/curated-workers.contract.d.ts +211 -211
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +798 -616
- package/dist/dashboards/agent-daily-metrics.contract.js +100 -89
- package/dist/dashboards/dashboard-widgets.contract.d.ts +75 -75
- package/dist/dashboards/dashboard-widgets.contract.js +89 -89
- package/dist/dashboards/dashboard.contract.d.ts +305 -215
- package/dist/files/files.contract.d.ts +1544 -1177
- package/dist/files/files.contract.js +177 -162
- package/dist/health/health.contract.d.ts +191 -144
- package/dist/health/health.contract.js +53 -40
- package/dist/index.d.ts +67 -67
- package/dist/jobs/jobs.contract.d.ts +2553 -2553
- package/dist/jobs/jobs.contract.js +150 -150
- package/dist/lead-assignments/lead-assignments.contract.d.ts +587 -587
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +239 -239
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +25 -25
- package/dist/leads/leads.contract.d.ts +108 -108
- package/dist/leads/leads.contract.js +119 -119
- package/dist/locations/locations.contract.d.ts +7 -7
- package/dist/monitoring/monitoring.contract.d.ts +13 -13
- package/dist/monitoring/monitoring.contract.js +37 -37
- package/dist/own-research/own-research.contract.d.ts +535 -134
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/own-research/own-research.contract.js +88 -56
- package/dist/postcodes/postcodes.contract.d.ts +24 -24
- package/dist/qualifications/qualifications.contract.d.ts +1898 -1387
- package/dist/qualifications/qualifications.contract.js +193 -171
- package/dist/trades/trades.contract.d.ts +991 -763
- package/dist/trades/trades.contract.js +111 -89
- package/dist/users/users.contract.d.ts +202 -202
- package/dist/users/users.contract.js +121 -121
- package/dist/workers/workers.contract.d.ts +710 -710
- package/dist/workers/workers.contract.js +150 -150
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Lead Status Enum
|
|
4
4
|
*/
|
|
@@ -32,32 +32,32 @@ export declare const LeadSchema: z.ZodObject<{
|
|
|
32
32
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
33
33
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
id: string;
|
|
36
35
|
name: string;
|
|
36
|
+
id: string;
|
|
37
37
|
phoneNumber: string;
|
|
38
38
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
39
|
+
source: string;
|
|
39
40
|
createdAt: string;
|
|
40
41
|
updatedAt: string;
|
|
41
|
-
source: string;
|
|
42
|
-
totalCalls?: number | null | undefined;
|
|
43
42
|
lastCalledAt?: string | null | undefined;
|
|
43
|
+
blacklistReason?: string | null | undefined;
|
|
44
44
|
qualityScore?: number | null | undefined;
|
|
45
45
|
conversionRate?: number | null | undefined;
|
|
46
|
-
|
|
46
|
+
totalCalls?: number | null | undefined;
|
|
47
47
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
id: string;
|
|
50
49
|
name: string;
|
|
50
|
+
id: string;
|
|
51
51
|
phoneNumber: string;
|
|
52
52
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
53
|
+
source: string;
|
|
53
54
|
createdAt: string | Date;
|
|
54
55
|
updatedAt: string | Date;
|
|
55
|
-
source: string;
|
|
56
|
-
totalCalls?: number | null | undefined;
|
|
57
56
|
lastCalledAt?: string | Date | null | undefined;
|
|
57
|
+
blacklistReason?: string | null | undefined;
|
|
58
58
|
qualityScore?: number | null | undefined;
|
|
59
59
|
conversionRate?: number | null | undefined;
|
|
60
|
-
|
|
60
|
+
totalCalls?: number | null | undefined;
|
|
61
61
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
62
62
|
}>;
|
|
63
63
|
/**
|
|
@@ -162,41 +162,41 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
162
162
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "phoneNumber", "status", "source", "lastCalledAt", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>>>;
|
|
163
163
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
limit: number;
|
|
166
165
|
page: number;
|
|
166
|
+
limit: number;
|
|
167
167
|
name?: string | null | undefined;
|
|
168
|
+
sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "createdAt" | "updatedAt" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
169
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
168
170
|
phoneNumber?: string | null | undefined;
|
|
169
171
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
170
|
-
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | null | undefined;
|
|
171
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
172
172
|
source?: string | null | undefined;
|
|
173
173
|
lastCalledAt?: {
|
|
174
174
|
from?: string | null | undefined;
|
|
175
175
|
to?: string | null | undefined;
|
|
176
176
|
} | null | undefined;
|
|
177
|
+
minTotalCalls?: number | null | undefined;
|
|
177
178
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
178
179
|
minQualityScore?: number | null | undefined;
|
|
179
180
|
maxQualityScore?: number | null | undefined;
|
|
180
181
|
minConversionRate?: number | null | undefined;
|
|
181
|
-
minTotalCalls?: number | null | undefined;
|
|
182
182
|
}, {
|
|
183
183
|
name?: string | null | undefined;
|
|
184
|
+
sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "createdAt" | "updatedAt" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
185
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
186
|
+
page?: number | undefined;
|
|
187
|
+
limit?: number | undefined;
|
|
184
188
|
phoneNumber?: string | null | undefined;
|
|
185
189
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
186
|
-
limit?: number | undefined;
|
|
187
|
-
page?: number | undefined;
|
|
188
|
-
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | null | undefined;
|
|
189
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
190
190
|
source?: string | null | undefined;
|
|
191
191
|
lastCalledAt?: {
|
|
192
192
|
from?: string | null | undefined;
|
|
193
193
|
to?: string | null | undefined;
|
|
194
194
|
} | null | undefined;
|
|
195
|
+
minTotalCalls?: number | null | undefined;
|
|
195
196
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
196
197
|
minQualityScore?: number | null | undefined;
|
|
197
198
|
maxQualityScore?: number | null | undefined;
|
|
198
199
|
minConversionRate?: number | null | undefined;
|
|
199
|
-
minTotalCalls?: number | null | undefined;
|
|
200
200
|
}>;
|
|
201
201
|
/**
|
|
202
202
|
* Call History Response Schema for leads
|
|
@@ -215,26 +215,26 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
215
215
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
216
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
217
|
id: string;
|
|
218
|
-
assignmentId: string;
|
|
219
|
-
leadId: string;
|
|
220
218
|
agentId: string;
|
|
221
219
|
createdAt: string;
|
|
222
220
|
updatedAt: string;
|
|
221
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
222
|
+
leadId: string;
|
|
223
|
+
assignmentId: string;
|
|
223
224
|
callDate: string;
|
|
224
225
|
callType: import("../call-history/call-history.contract").CallType;
|
|
225
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
226
226
|
ratingWeight: number;
|
|
227
227
|
notes?: string | null | undefined;
|
|
228
228
|
}, {
|
|
229
229
|
id: string;
|
|
230
|
-
assignmentId: string;
|
|
231
|
-
leadId: string;
|
|
232
230
|
agentId: string;
|
|
233
231
|
createdAt: string | Date;
|
|
234
232
|
updatedAt: string | Date;
|
|
233
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
234
|
+
leadId: string;
|
|
235
|
+
assignmentId: string;
|
|
235
236
|
callDate: string | Date;
|
|
236
237
|
callType: import("../call-history/call-history.contract").CallType;
|
|
237
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
238
238
|
ratingWeight: number;
|
|
239
239
|
notes?: string | null | undefined;
|
|
240
240
|
}>;
|
|
@@ -317,32 +317,32 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
317
317
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
318
318
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
319
319
|
}, "strip", z.ZodTypeAny, {
|
|
320
|
-
id: string;
|
|
321
320
|
name: string;
|
|
321
|
+
id: string;
|
|
322
322
|
phoneNumber: string;
|
|
323
323
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
324
|
+
source: string;
|
|
324
325
|
createdAt: string;
|
|
325
326
|
updatedAt: string;
|
|
326
|
-
source: string;
|
|
327
|
-
totalCalls?: number | null | undefined;
|
|
328
327
|
lastCalledAt?: string | null | undefined;
|
|
328
|
+
blacklistReason?: string | null | undefined;
|
|
329
329
|
qualityScore?: number | null | undefined;
|
|
330
330
|
conversionRate?: number | null | undefined;
|
|
331
|
-
|
|
331
|
+
totalCalls?: number | null | undefined;
|
|
332
332
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
333
333
|
}, {
|
|
334
|
-
id: string;
|
|
335
334
|
name: string;
|
|
335
|
+
id: string;
|
|
336
336
|
phoneNumber: string;
|
|
337
337
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
338
|
+
source: string;
|
|
338
339
|
createdAt: string | Date;
|
|
339
340
|
updatedAt: string | Date;
|
|
340
|
-
source: string;
|
|
341
|
-
totalCalls?: number | null | undefined;
|
|
342
341
|
lastCalledAt?: string | Date | null | undefined;
|
|
342
|
+
blacklistReason?: string | null | undefined;
|
|
343
343
|
qualityScore?: number | null | undefined;
|
|
344
344
|
conversionRate?: number | null | undefined;
|
|
345
|
-
|
|
345
|
+
totalCalls?: number | null | undefined;
|
|
346
346
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
347
347
|
}>, "many">;
|
|
348
348
|
totalCount: z.ZodNumber;
|
|
@@ -351,44 +351,44 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
351
351
|
currentPage: z.ZodNumber;
|
|
352
352
|
totalPages: z.ZodNumber;
|
|
353
353
|
}, "strip", z.ZodTypeAny, {
|
|
354
|
+
limit: number;
|
|
354
355
|
items: {
|
|
355
|
-
id: string;
|
|
356
356
|
name: string;
|
|
357
|
+
id: string;
|
|
357
358
|
phoneNumber: string;
|
|
358
359
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
360
|
+
source: string;
|
|
359
361
|
createdAt: string;
|
|
360
362
|
updatedAt: string;
|
|
361
|
-
source: string;
|
|
362
|
-
totalCalls?: number | null | undefined;
|
|
363
363
|
lastCalledAt?: string | null | undefined;
|
|
364
|
+
blacklistReason?: string | null | undefined;
|
|
364
365
|
qualityScore?: number | null | undefined;
|
|
365
366
|
conversionRate?: number | null | undefined;
|
|
366
|
-
|
|
367
|
+
totalCalls?: number | null | undefined;
|
|
367
368
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
368
369
|
}[];
|
|
369
370
|
totalCount: number;
|
|
370
|
-
limit: number;
|
|
371
371
|
skip: number;
|
|
372
372
|
currentPage: number;
|
|
373
373
|
totalPages: number;
|
|
374
374
|
}, {
|
|
375
|
+
limit: number;
|
|
375
376
|
items: {
|
|
376
|
-
id: string;
|
|
377
377
|
name: string;
|
|
378
|
+
id: string;
|
|
378
379
|
phoneNumber: string;
|
|
379
380
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
381
|
+
source: string;
|
|
380
382
|
createdAt: string | Date;
|
|
381
383
|
updatedAt: string | Date;
|
|
382
|
-
source: string;
|
|
383
|
-
totalCalls?: number | null | undefined;
|
|
384
384
|
lastCalledAt?: string | Date | null | undefined;
|
|
385
|
+
blacklistReason?: string | null | undefined;
|
|
385
386
|
qualityScore?: number | null | undefined;
|
|
386
387
|
conversionRate?: number | null | undefined;
|
|
387
|
-
|
|
388
|
+
totalCalls?: number | null | undefined;
|
|
388
389
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
389
390
|
}[];
|
|
390
391
|
totalCount: number;
|
|
391
|
-
limit: number;
|
|
392
392
|
skip: number;
|
|
393
393
|
currentPage: number;
|
|
394
394
|
totalPages: number;
|
|
@@ -564,32 +564,32 @@ export declare const leadsContractRouter: {
|
|
|
564
564
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
565
565
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
566
566
|
}, "strip", z.ZodTypeAny, {
|
|
567
|
-
id: string;
|
|
568
567
|
name: string;
|
|
568
|
+
id: string;
|
|
569
569
|
phoneNumber: string;
|
|
570
570
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
571
|
+
source: string;
|
|
571
572
|
createdAt: string;
|
|
572
573
|
updatedAt: string;
|
|
573
|
-
source: string;
|
|
574
|
-
totalCalls?: number | null | undefined;
|
|
575
574
|
lastCalledAt?: string | null | undefined;
|
|
575
|
+
blacklistReason?: string | null | undefined;
|
|
576
576
|
qualityScore?: number | null | undefined;
|
|
577
577
|
conversionRate?: number | null | undefined;
|
|
578
|
-
|
|
578
|
+
totalCalls?: number | null | undefined;
|
|
579
579
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
580
580
|
}, {
|
|
581
|
-
id: string;
|
|
582
581
|
name: string;
|
|
582
|
+
id: string;
|
|
583
583
|
phoneNumber: string;
|
|
584
584
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
585
|
+
source: string;
|
|
585
586
|
createdAt: string | Date;
|
|
586
587
|
updatedAt: string | Date;
|
|
587
|
-
source: string;
|
|
588
|
-
totalCalls?: number | null | undefined;
|
|
589
588
|
lastCalledAt?: string | Date | null | undefined;
|
|
589
|
+
blacklistReason?: string | null | undefined;
|
|
590
590
|
qualityScore?: number | null | undefined;
|
|
591
591
|
conversionRate?: number | null | undefined;
|
|
592
|
-
|
|
592
|
+
totalCalls?: number | null | undefined;
|
|
593
593
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
594
594
|
}>;
|
|
595
595
|
409: z.ZodObject<{
|
|
@@ -620,12 +620,6 @@ export declare const leadsContractRouter: {
|
|
|
620
620
|
};
|
|
621
621
|
};
|
|
622
622
|
findAll: {
|
|
623
|
-
metadata: {
|
|
624
|
-
tags: string[];
|
|
625
|
-
openApi: {
|
|
626
|
-
operationId: string;
|
|
627
|
-
};
|
|
628
|
-
};
|
|
629
623
|
query: z.ZodObject<{
|
|
630
624
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
631
625
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -652,42 +646,48 @@ export declare const leadsContractRouter: {
|
|
|
652
646
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "phoneNumber", "status", "source", "lastCalledAt", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>>>;
|
|
653
647
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
654
648
|
}, "strip", z.ZodTypeAny, {
|
|
655
|
-
limit: number;
|
|
656
649
|
page: number;
|
|
650
|
+
limit: number;
|
|
657
651
|
name?: string | null | undefined;
|
|
652
|
+
sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "createdAt" | "updatedAt" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
653
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
658
654
|
phoneNumber?: string | null | undefined;
|
|
659
655
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
660
|
-
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | null | undefined;
|
|
661
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
662
656
|
source?: string | null | undefined;
|
|
663
657
|
lastCalledAt?: {
|
|
664
658
|
from?: string | null | undefined;
|
|
665
659
|
to?: string | null | undefined;
|
|
666
660
|
} | null | undefined;
|
|
661
|
+
minTotalCalls?: number | null | undefined;
|
|
667
662
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
668
663
|
minQualityScore?: number | null | undefined;
|
|
669
664
|
maxQualityScore?: number | null | undefined;
|
|
670
665
|
minConversionRate?: number | null | undefined;
|
|
671
|
-
minTotalCalls?: number | null | undefined;
|
|
672
666
|
}, {
|
|
673
667
|
name?: string | null | undefined;
|
|
668
|
+
sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "createdAt" | "updatedAt" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
669
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
670
|
+
page?: number | undefined;
|
|
671
|
+
limit?: number | undefined;
|
|
674
672
|
phoneNumber?: string | null | undefined;
|
|
675
673
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
676
|
-
limit?: number | undefined;
|
|
677
|
-
page?: number | undefined;
|
|
678
|
-
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | null | undefined;
|
|
679
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
680
674
|
source?: string | null | undefined;
|
|
681
675
|
lastCalledAt?: {
|
|
682
676
|
from?: string | null | undefined;
|
|
683
677
|
to?: string | null | undefined;
|
|
684
678
|
} | null | undefined;
|
|
679
|
+
minTotalCalls?: number | null | undefined;
|
|
685
680
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
686
681
|
minQualityScore?: number | null | undefined;
|
|
687
682
|
maxQualityScore?: number | null | undefined;
|
|
688
683
|
minConversionRate?: number | null | undefined;
|
|
689
|
-
minTotalCalls?: number | null | undefined;
|
|
690
684
|
}>;
|
|
685
|
+
metadata: {
|
|
686
|
+
tags: string[];
|
|
687
|
+
openApi: {
|
|
688
|
+
operationId: string;
|
|
689
|
+
};
|
|
690
|
+
};
|
|
691
691
|
summary: "Get all leads";
|
|
692
692
|
method: "GET";
|
|
693
693
|
path: "/v2/leads";
|
|
@@ -808,32 +808,32 @@ export declare const leadsContractRouter: {
|
|
|
808
808
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
809
809
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
810
810
|
}, "strip", z.ZodTypeAny, {
|
|
811
|
-
id: string;
|
|
812
811
|
name: string;
|
|
812
|
+
id: string;
|
|
813
813
|
phoneNumber: string;
|
|
814
814
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
815
|
+
source: string;
|
|
815
816
|
createdAt: string;
|
|
816
817
|
updatedAt: string;
|
|
817
|
-
source: string;
|
|
818
|
-
totalCalls?: number | null | undefined;
|
|
819
818
|
lastCalledAt?: string | null | undefined;
|
|
819
|
+
blacklistReason?: string | null | undefined;
|
|
820
820
|
qualityScore?: number | null | undefined;
|
|
821
821
|
conversionRate?: number | null | undefined;
|
|
822
|
-
|
|
822
|
+
totalCalls?: number | null | undefined;
|
|
823
823
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
824
824
|
}, {
|
|
825
|
-
id: string;
|
|
826
825
|
name: string;
|
|
826
|
+
id: string;
|
|
827
827
|
phoneNumber: string;
|
|
828
828
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
829
|
+
source: string;
|
|
829
830
|
createdAt: string | Date;
|
|
830
831
|
updatedAt: string | Date;
|
|
831
|
-
source: string;
|
|
832
|
-
totalCalls?: number | null | undefined;
|
|
833
832
|
lastCalledAt?: string | Date | null | undefined;
|
|
833
|
+
blacklistReason?: string | null | undefined;
|
|
834
834
|
qualityScore?: number | null | undefined;
|
|
835
835
|
conversionRate?: number | null | undefined;
|
|
836
|
-
|
|
836
|
+
totalCalls?: number | null | undefined;
|
|
837
837
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
838
838
|
}>, "many">;
|
|
839
839
|
totalCount: z.ZodNumber;
|
|
@@ -842,44 +842,44 @@ export declare const leadsContractRouter: {
|
|
|
842
842
|
currentPage: z.ZodNumber;
|
|
843
843
|
totalPages: z.ZodNumber;
|
|
844
844
|
}, "strip", z.ZodTypeAny, {
|
|
845
|
+
limit: number;
|
|
845
846
|
items: {
|
|
846
|
-
id: string;
|
|
847
847
|
name: string;
|
|
848
|
+
id: string;
|
|
848
849
|
phoneNumber: string;
|
|
849
850
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
851
|
+
source: string;
|
|
850
852
|
createdAt: string;
|
|
851
853
|
updatedAt: string;
|
|
852
|
-
source: string;
|
|
853
|
-
totalCalls?: number | null | undefined;
|
|
854
854
|
lastCalledAt?: string | null | undefined;
|
|
855
|
+
blacklistReason?: string | null | undefined;
|
|
855
856
|
qualityScore?: number | null | undefined;
|
|
856
857
|
conversionRate?: number | null | undefined;
|
|
857
|
-
|
|
858
|
+
totalCalls?: number | null | undefined;
|
|
858
859
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
859
860
|
}[];
|
|
860
861
|
totalCount: number;
|
|
861
|
-
limit: number;
|
|
862
862
|
skip: number;
|
|
863
863
|
currentPage: number;
|
|
864
864
|
totalPages: number;
|
|
865
865
|
}, {
|
|
866
|
+
limit: number;
|
|
866
867
|
items: {
|
|
867
|
-
id: string;
|
|
868
868
|
name: string;
|
|
869
|
+
id: string;
|
|
869
870
|
phoneNumber: string;
|
|
870
871
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
872
|
+
source: string;
|
|
871
873
|
createdAt: string | Date;
|
|
872
874
|
updatedAt: string | Date;
|
|
873
|
-
source: string;
|
|
874
|
-
totalCalls?: number | null | undefined;
|
|
875
875
|
lastCalledAt?: string | Date | null | undefined;
|
|
876
|
+
blacklistReason?: string | null | undefined;
|
|
876
877
|
qualityScore?: number | null | undefined;
|
|
877
878
|
conversionRate?: number | null | undefined;
|
|
878
|
-
|
|
879
|
+
totalCalls?: number | null | undefined;
|
|
879
880
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
880
881
|
}[];
|
|
881
882
|
totalCount: number;
|
|
882
|
-
limit: number;
|
|
883
883
|
skip: number;
|
|
884
884
|
currentPage: number;
|
|
885
885
|
totalPages: number;
|
|
@@ -1019,32 +1019,32 @@ export declare const leadsContractRouter: {
|
|
|
1019
1019
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1020
1020
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1021
1021
|
}, "strip", z.ZodTypeAny, {
|
|
1022
|
-
id: string;
|
|
1023
1022
|
name: string;
|
|
1023
|
+
id: string;
|
|
1024
1024
|
phoneNumber: string;
|
|
1025
1025
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1026
|
+
source: string;
|
|
1026
1027
|
createdAt: string;
|
|
1027
1028
|
updatedAt: string;
|
|
1028
|
-
source: string;
|
|
1029
|
-
totalCalls?: number | null | undefined;
|
|
1030
1029
|
lastCalledAt?: string | null | undefined;
|
|
1030
|
+
blacklistReason?: string | null | undefined;
|
|
1031
1031
|
qualityScore?: number | null | undefined;
|
|
1032
1032
|
conversionRate?: number | null | undefined;
|
|
1033
|
-
|
|
1033
|
+
totalCalls?: number | null | undefined;
|
|
1034
1034
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1035
1035
|
}, {
|
|
1036
|
-
id: string;
|
|
1037
1036
|
name: string;
|
|
1037
|
+
id: string;
|
|
1038
1038
|
phoneNumber: string;
|
|
1039
1039
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1040
|
+
source: string;
|
|
1040
1041
|
createdAt: string | Date;
|
|
1041
1042
|
updatedAt: string | Date;
|
|
1042
|
-
source: string;
|
|
1043
|
-
totalCalls?: number | null | undefined;
|
|
1044
1043
|
lastCalledAt?: string | Date | null | undefined;
|
|
1044
|
+
blacklistReason?: string | null | undefined;
|
|
1045
1045
|
qualityScore?: number | null | undefined;
|
|
1046
1046
|
conversionRate?: number | null | undefined;
|
|
1047
|
-
|
|
1047
|
+
totalCalls?: number | null | undefined;
|
|
1048
1048
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1049
1049
|
}>;
|
|
1050
1050
|
404: z.ZodObject<{
|
|
@@ -1238,32 +1238,32 @@ export declare const leadsContractRouter: {
|
|
|
1238
1238
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1239
1239
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1240
1240
|
}, "strip", z.ZodTypeAny, {
|
|
1241
|
-
id: string;
|
|
1242
1241
|
name: string;
|
|
1242
|
+
id: string;
|
|
1243
1243
|
phoneNumber: string;
|
|
1244
1244
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1245
|
+
source: string;
|
|
1245
1246
|
createdAt: string;
|
|
1246
1247
|
updatedAt: string;
|
|
1247
|
-
source: string;
|
|
1248
|
-
totalCalls?: number | null | undefined;
|
|
1249
1248
|
lastCalledAt?: string | null | undefined;
|
|
1249
|
+
blacklistReason?: string | null | undefined;
|
|
1250
1250
|
qualityScore?: number | null | undefined;
|
|
1251
1251
|
conversionRate?: number | null | undefined;
|
|
1252
|
-
|
|
1252
|
+
totalCalls?: number | null | undefined;
|
|
1253
1253
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1254
1254
|
}, {
|
|
1255
|
-
id: string;
|
|
1256
1255
|
name: string;
|
|
1256
|
+
id: string;
|
|
1257
1257
|
phoneNumber: string;
|
|
1258
1258
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1259
|
+
source: string;
|
|
1259
1260
|
createdAt: string | Date;
|
|
1260
1261
|
updatedAt: string | Date;
|
|
1261
|
-
source: string;
|
|
1262
|
-
totalCalls?: number | null | undefined;
|
|
1263
1262
|
lastCalledAt?: string | Date | null | undefined;
|
|
1263
|
+
blacklistReason?: string | null | undefined;
|
|
1264
1264
|
qualityScore?: number | null | undefined;
|
|
1265
1265
|
conversionRate?: number | null | undefined;
|
|
1266
|
-
|
|
1266
|
+
totalCalls?: number | null | undefined;
|
|
1267
1267
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1268
1268
|
}>;
|
|
1269
1269
|
404: z.ZodObject<{
|
|
@@ -1487,14 +1487,14 @@ export declare const leadsContractRouter: {
|
|
|
1487
1487
|
notes: z.ZodOptional<z.ZodString>;
|
|
1488
1488
|
callType: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>;
|
|
1489
1489
|
}, "strip", z.ZodTypeAny, {
|
|
1490
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1490
1491
|
assignmentId: string;
|
|
1491
1492
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1492
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
1493
1493
|
notes?: string | undefined;
|
|
1494
1494
|
}, {
|
|
1495
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1495
1496
|
assignmentId: string;
|
|
1496
1497
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1497
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
1498
1498
|
notes?: string | undefined;
|
|
1499
1499
|
}>;
|
|
1500
1500
|
path: "/v2/leads/:id/call";
|
|
@@ -1613,39 +1613,39 @@ export declare const leadsContractRouter: {
|
|
|
1613
1613
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1614
1614
|
}, "strip", z.ZodTypeAny, {
|
|
1615
1615
|
id: string;
|
|
1616
|
-
assignmentId: string;
|
|
1617
|
-
leadId: string;
|
|
1618
1616
|
agentId: string;
|
|
1619
1617
|
createdAt: string;
|
|
1620
1618
|
updatedAt: string;
|
|
1619
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1620
|
+
leadId: string;
|
|
1621
|
+
assignmentId: string;
|
|
1621
1622
|
callDate: string;
|
|
1622
1623
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1623
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
1624
1624
|
ratingWeight: number;
|
|
1625
1625
|
notes?: string | null | undefined;
|
|
1626
1626
|
}, {
|
|
1627
1627
|
id: string;
|
|
1628
|
-
assignmentId: string;
|
|
1629
|
-
leadId: string;
|
|
1630
1628
|
agentId: string;
|
|
1631
1629
|
createdAt: string | Date;
|
|
1632
1630
|
updatedAt: string | Date;
|
|
1631
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1632
|
+
leadId: string;
|
|
1633
|
+
assignmentId: string;
|
|
1633
1634
|
callDate: string | Date;
|
|
1634
1635
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1635
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
1636
1636
|
ratingWeight: number;
|
|
1637
1637
|
notes?: string | null | undefined;
|
|
1638
1638
|
}>;
|
|
1639
1639
|
};
|
|
1640
1640
|
};
|
|
1641
1641
|
getQualityDashboard: {
|
|
1642
|
+
query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1642
1643
|
metadata: {
|
|
1643
1644
|
tags: string[];
|
|
1644
1645
|
openApi: {
|
|
1645
1646
|
operationId: string;
|
|
1646
1647
|
};
|
|
1647
1648
|
};
|
|
1648
|
-
query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1649
1649
|
summary: "Get lead quality analytics dashboard";
|
|
1650
1650
|
method: "GET";
|
|
1651
1651
|
path: "/v2/leads/analytics/quality-dashboard";
|