@dakkitor/api-contracts 1.1.32 → 1.1.34
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/first-agent.abilities.json +37 -14
- package/dist/abilities/second-agent.abilities.json +10 -1
- package/dist/actives/actives.contract.d.ts +4343 -4287
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +3 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts +24 -24
- package/dist/bookings/bookings.contract.d.ts +3382 -3382
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +7 -17
- package/dist/call-history/call-history.contract.d.ts +584 -286
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +394 -394
- package/dist/collaborations/collaborations.contract.d.ts +318 -318
- package/dist/companies/companies.contract.d.ts +36 -36
- package/dist/companies/companies.contract.d.ts.map +1 -1
- package/dist/companies/companies.contract.js +2 -4
- package/dist/jobs/jobs.contract.d.ts +727 -673
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +13 -0
- package/dist/lead-assignments/lead-assignments.contract.d.ts +504 -200
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.js +9 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +371 -108
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.js +23 -0
- package/dist/leads/leads.contract.d.ts +44 -44
- package/dist/users/users.contract.d.ts +266 -0
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +20 -0
- package/dist/workers/workers.contract.d.ts +143 -124
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +14 -10
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-lead-distribution.contract.d.ts","sourceRoot":"","sources":["../../contracts/lead-distribution/agent-lead-distribution.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-lead-distribution.contract.d.ts","sourceRoot":"","sources":["../../contracts/lead-distribution/agent-lead-distribution.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,iCAAiC,gDAEM,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBM,CAAC;AAE/C,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIQ,CAAC;AAE1D,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;EAiBM,CAAC;AAErD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAgBM,CAAC;AAErD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;EAU5C,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrD,CAAC;AAGL,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AACF,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,4CAA4C,CACpD,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFzC,CAAC"}
|
|
@@ -7,6 +7,7 @@ const zod_1 = require("zod");
|
|
|
7
7
|
const error_schemas_1 = require("../common/error-schemas");
|
|
8
8
|
const pagination_query_schema_1 = require("../common/pagination-query.schema");
|
|
9
9
|
const pagination_schema_1 = require("../common/pagination.schema");
|
|
10
|
+
const companies_contract_1 = require("../companies/companies.contract");
|
|
10
11
|
const users_contract_1 = require("../users/users.contract");
|
|
11
12
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
12
13
|
const c = (0, core_1.initContract)();
|
|
@@ -25,6 +26,15 @@ exports.AgentLeadDistributionSchema = zod_1.z
|
|
|
25
26
|
.nullable()
|
|
26
27
|
.optional()
|
|
27
28
|
.describe('Lead distribution config ID'),
|
|
29
|
+
companyId: zod_1.z
|
|
30
|
+
.string()
|
|
31
|
+
.uuid()
|
|
32
|
+
.nullable()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe('Company ID associated with this agent distribution'),
|
|
35
|
+
company: companies_contract_1.CompanySchema.nullable()
|
|
36
|
+
.optional()
|
|
37
|
+
.describe('Company associated with this agent distribution'),
|
|
28
38
|
})
|
|
29
39
|
.openapi({ title: 'AgentLeadDistribution' });
|
|
30
40
|
exports.AgentLeadDistributionWithAgentSchema = exports.AgentLeadDistributionSchema.extend({
|
|
@@ -41,6 +51,12 @@ exports.CreateAgentLeadDistributionSchema = zod_1.z
|
|
|
41
51
|
.nullable()
|
|
42
52
|
.optional()
|
|
43
53
|
.describe('Lead distribution config ID'),
|
|
54
|
+
companyId: zod_1.z
|
|
55
|
+
.string()
|
|
56
|
+
.uuid()
|
|
57
|
+
.nullable()
|
|
58
|
+
.optional()
|
|
59
|
+
.describe('Search Company'),
|
|
44
60
|
})
|
|
45
61
|
.openapi({ title: 'CreateAgentLeadDistribution' });
|
|
46
62
|
exports.UpdateAgentLeadDistributionSchema = zod_1.z
|
|
@@ -52,6 +68,12 @@ exports.UpdateAgentLeadDistributionSchema = zod_1.z
|
|
|
52
68
|
.nullable()
|
|
53
69
|
.optional()
|
|
54
70
|
.describe('Lead distribution config ID'),
|
|
71
|
+
companyId: zod_1.z
|
|
72
|
+
.string()
|
|
73
|
+
.uuid()
|
|
74
|
+
.nullable()
|
|
75
|
+
.optional()
|
|
76
|
+
.describe('Company ID to associate with this agent distribution'),
|
|
55
77
|
})
|
|
56
78
|
.openapi({ title: 'UpdateAgentLeadDistribution' });
|
|
57
79
|
exports.FilterAgentLeadDistributionSchema = pagination_query_schema_1.PaginationQuerySchema.extend({
|
|
@@ -62,6 +84,7 @@ exports.FilterAgentLeadDistributionSchema = pagination_query_schema_1.Pagination
|
|
|
62
84
|
.uuid()
|
|
63
85
|
.optional()
|
|
64
86
|
.describe('Filter by lead distribution config ID'),
|
|
87
|
+
companyId: zod_1.z.string().uuid().optional().describe('Filter by company ID'),
|
|
65
88
|
});
|
|
66
89
|
exports.PaginatedAgentLeadDistributionResponseSchema = (0, pagination_schema_1.createPaginatedResponseSchema)(exports.AgentLeadDistributionWithAgentSchema).openapi({
|
|
67
90
|
title: 'PaginatedAgentLeadDistributionResponse',
|
|
@@ -33,10 +33,10 @@ export declare const LeadSchema: z.ZodObject<{
|
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
id: string;
|
|
35
35
|
name: string;
|
|
36
|
-
phoneNumber: string;
|
|
37
36
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
38
37
|
createdAt: string;
|
|
39
38
|
updatedAt: string;
|
|
39
|
+
phoneNumber: string;
|
|
40
40
|
source: string;
|
|
41
41
|
totalCalls?: number | null | undefined;
|
|
42
42
|
qualityScore?: number | null | undefined;
|
|
@@ -46,10 +46,10 @@ export declare const LeadSchema: z.ZodObject<{
|
|
|
46
46
|
}, {
|
|
47
47
|
id: string;
|
|
48
48
|
name: string;
|
|
49
|
-
phoneNumber: string;
|
|
50
49
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
51
50
|
createdAt: string | Date;
|
|
52
51
|
updatedAt: string | Date;
|
|
52
|
+
phoneNumber: string;
|
|
53
53
|
source: string;
|
|
54
54
|
totalCalls?: number | null | undefined;
|
|
55
55
|
qualityScore?: number | null | undefined;
|
|
@@ -93,14 +93,14 @@ export declare const UpdateLeadSchema: z.ZodObject<{
|
|
|
93
93
|
source: z.ZodOptional<z.ZodString>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
95
|
name?: string | undefined;
|
|
96
|
-
phoneNumber?: string | undefined;
|
|
97
96
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
97
|
+
phoneNumber?: string | undefined;
|
|
98
98
|
source?: string | undefined;
|
|
99
99
|
blacklistReason?: string | undefined;
|
|
100
100
|
}, {
|
|
101
101
|
name?: string | undefined;
|
|
102
|
-
phoneNumber?: string | undefined;
|
|
103
102
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
103
|
+
phoneNumber?: string | undefined;
|
|
104
104
|
source?: string | undefined;
|
|
105
105
|
blacklistReason?: string | undefined;
|
|
106
106
|
}>;
|
|
@@ -126,10 +126,10 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
126
126
|
limit: number;
|
|
127
127
|
page: number;
|
|
128
128
|
name?: string | null | undefined;
|
|
129
|
-
phoneNumber?: string | null | undefined;
|
|
130
129
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
131
|
-
sortBy?: "name" | "
|
|
130
|
+
sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
132
131
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
132
|
+
phoneNumber?: string | null | undefined;
|
|
133
133
|
source?: string | null | undefined;
|
|
134
134
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
135
135
|
minQualityScore?: number | null | undefined;
|
|
@@ -138,12 +138,12 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
138
138
|
minTotalCalls?: number | null | undefined;
|
|
139
139
|
}, {
|
|
140
140
|
name?: string | null | undefined;
|
|
141
|
-
phoneNumber?: string | null | undefined;
|
|
142
141
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
143
142
|
limit?: number | undefined;
|
|
144
143
|
page?: number | undefined;
|
|
145
|
-
sortBy?: "name" | "
|
|
144
|
+
sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
146
145
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
146
|
+
phoneNumber?: string | null | undefined;
|
|
147
147
|
source?: string | null | undefined;
|
|
148
148
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
149
149
|
minQualityScore?: number | null | undefined;
|
|
@@ -168,11 +168,11 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
168
168
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
|
170
170
|
id: string;
|
|
171
|
-
assignmentId: string;
|
|
172
|
-
leadId: string;
|
|
173
|
-
agentId: string;
|
|
174
171
|
createdAt: string;
|
|
175
172
|
updatedAt: string;
|
|
173
|
+
agentId: string;
|
|
174
|
+
leadId: string;
|
|
175
|
+
assignmentId: string;
|
|
176
176
|
callDate: string;
|
|
177
177
|
callType: import("../call-history/call-history.contract").CallType;
|
|
178
178
|
rating: import("../common/call-rating.schema").CallRating;
|
|
@@ -180,11 +180,11 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
180
180
|
notes?: string | null | undefined;
|
|
181
181
|
}, {
|
|
182
182
|
id: string;
|
|
183
|
-
assignmentId: string;
|
|
184
|
-
leadId: string;
|
|
185
|
-
agentId: string;
|
|
186
183
|
createdAt: string | Date;
|
|
187
184
|
updatedAt: string | Date;
|
|
185
|
+
agentId: string;
|
|
186
|
+
leadId: string;
|
|
187
|
+
assignmentId: string;
|
|
188
188
|
callDate: string | Date;
|
|
189
189
|
callType: import("../call-history/call-history.contract").CallType;
|
|
190
190
|
rating: import("../common/call-rating.schema").CallRating;
|
|
@@ -271,10 +271,10 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
271
271
|
}, "strip", z.ZodTypeAny, {
|
|
272
272
|
id: string;
|
|
273
273
|
name: string;
|
|
274
|
-
phoneNumber: string;
|
|
275
274
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
276
275
|
createdAt: string;
|
|
277
276
|
updatedAt: string;
|
|
277
|
+
phoneNumber: string;
|
|
278
278
|
source: string;
|
|
279
279
|
totalCalls?: number | null | undefined;
|
|
280
280
|
qualityScore?: number | null | undefined;
|
|
@@ -284,10 +284,10 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
284
284
|
}, {
|
|
285
285
|
id: string;
|
|
286
286
|
name: string;
|
|
287
|
-
phoneNumber: string;
|
|
288
287
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
289
288
|
createdAt: string | Date;
|
|
290
289
|
updatedAt: string | Date;
|
|
290
|
+
phoneNumber: string;
|
|
291
291
|
source: string;
|
|
292
292
|
totalCalls?: number | null | undefined;
|
|
293
293
|
qualityScore?: number | null | undefined;
|
|
@@ -301,13 +301,14 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
301
301
|
currentPage: z.ZodNumber;
|
|
302
302
|
totalPages: z.ZodNumber;
|
|
303
303
|
}, "strip", z.ZodTypeAny, {
|
|
304
|
+
limit: number;
|
|
304
305
|
items: {
|
|
305
306
|
id: string;
|
|
306
307
|
name: string;
|
|
307
|
-
phoneNumber: string;
|
|
308
308
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
309
309
|
createdAt: string;
|
|
310
310
|
updatedAt: string;
|
|
311
|
+
phoneNumber: string;
|
|
311
312
|
source: string;
|
|
312
313
|
totalCalls?: number | null | undefined;
|
|
313
314
|
qualityScore?: number | null | undefined;
|
|
@@ -316,18 +317,18 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
316
317
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
317
318
|
}[];
|
|
318
319
|
totalCount: number;
|
|
319
|
-
limit: number;
|
|
320
320
|
skip: number;
|
|
321
321
|
currentPage: number;
|
|
322
322
|
totalPages: number;
|
|
323
323
|
}, {
|
|
324
|
+
limit: number;
|
|
324
325
|
items: {
|
|
325
326
|
id: string;
|
|
326
327
|
name: string;
|
|
327
|
-
phoneNumber: string;
|
|
328
328
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
329
329
|
createdAt: string | Date;
|
|
330
330
|
updatedAt: string | Date;
|
|
331
|
+
phoneNumber: string;
|
|
331
332
|
source: string;
|
|
332
333
|
totalCalls?: number | null | undefined;
|
|
333
334
|
qualityScore?: number | null | undefined;
|
|
@@ -336,7 +337,6 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
336
337
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
337
338
|
}[];
|
|
338
339
|
totalCount: number;
|
|
339
|
-
limit: number;
|
|
340
340
|
skip: number;
|
|
341
341
|
currentPage: number;
|
|
342
342
|
totalPages: number;
|
|
@@ -499,10 +499,10 @@ export declare const leadsContractRouter: {
|
|
|
499
499
|
}, "strip", z.ZodTypeAny, {
|
|
500
500
|
id: string;
|
|
501
501
|
name: string;
|
|
502
|
-
phoneNumber: string;
|
|
503
502
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
504
503
|
createdAt: string;
|
|
505
504
|
updatedAt: string;
|
|
505
|
+
phoneNumber: string;
|
|
506
506
|
source: string;
|
|
507
507
|
totalCalls?: number | null | undefined;
|
|
508
508
|
qualityScore?: number | null | undefined;
|
|
@@ -512,10 +512,10 @@ export declare const leadsContractRouter: {
|
|
|
512
512
|
}, {
|
|
513
513
|
id: string;
|
|
514
514
|
name: string;
|
|
515
|
-
phoneNumber: string;
|
|
516
515
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
517
516
|
createdAt: string | Date;
|
|
518
517
|
updatedAt: string | Date;
|
|
518
|
+
phoneNumber: string;
|
|
519
519
|
source: string;
|
|
520
520
|
totalCalls?: number | null | undefined;
|
|
521
521
|
qualityScore?: number | null | undefined;
|
|
@@ -576,10 +576,10 @@ export declare const leadsContractRouter: {
|
|
|
576
576
|
limit: number;
|
|
577
577
|
page: number;
|
|
578
578
|
name?: string | null | undefined;
|
|
579
|
-
phoneNumber?: string | null | undefined;
|
|
580
579
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
581
|
-
sortBy?: "name" | "
|
|
580
|
+
sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
582
581
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
582
|
+
phoneNumber?: string | null | undefined;
|
|
583
583
|
source?: string | null | undefined;
|
|
584
584
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
585
585
|
minQualityScore?: number | null | undefined;
|
|
@@ -588,12 +588,12 @@ export declare const leadsContractRouter: {
|
|
|
588
588
|
minTotalCalls?: number | null | undefined;
|
|
589
589
|
}, {
|
|
590
590
|
name?: string | null | undefined;
|
|
591
|
-
phoneNumber?: string | null | undefined;
|
|
592
591
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
593
592
|
limit?: number | undefined;
|
|
594
593
|
page?: number | undefined;
|
|
595
|
-
sortBy?: "name" | "
|
|
594
|
+
sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
596
595
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
596
|
+
phoneNumber?: string | null | undefined;
|
|
597
597
|
source?: string | null | undefined;
|
|
598
598
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
599
599
|
minQualityScore?: number | null | undefined;
|
|
@@ -722,10 +722,10 @@ export declare const leadsContractRouter: {
|
|
|
722
722
|
}, "strip", z.ZodTypeAny, {
|
|
723
723
|
id: string;
|
|
724
724
|
name: string;
|
|
725
|
-
phoneNumber: string;
|
|
726
725
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
727
726
|
createdAt: string;
|
|
728
727
|
updatedAt: string;
|
|
728
|
+
phoneNumber: string;
|
|
729
729
|
source: string;
|
|
730
730
|
totalCalls?: number | null | undefined;
|
|
731
731
|
qualityScore?: number | null | undefined;
|
|
@@ -735,10 +735,10 @@ export declare const leadsContractRouter: {
|
|
|
735
735
|
}, {
|
|
736
736
|
id: string;
|
|
737
737
|
name: string;
|
|
738
|
-
phoneNumber: string;
|
|
739
738
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
740
739
|
createdAt: string | Date;
|
|
741
740
|
updatedAt: string | Date;
|
|
741
|
+
phoneNumber: string;
|
|
742
742
|
source: string;
|
|
743
743
|
totalCalls?: number | null | undefined;
|
|
744
744
|
qualityScore?: number | null | undefined;
|
|
@@ -752,13 +752,14 @@ export declare const leadsContractRouter: {
|
|
|
752
752
|
currentPage: z.ZodNumber;
|
|
753
753
|
totalPages: z.ZodNumber;
|
|
754
754
|
}, "strip", z.ZodTypeAny, {
|
|
755
|
+
limit: number;
|
|
755
756
|
items: {
|
|
756
757
|
id: string;
|
|
757
758
|
name: string;
|
|
758
|
-
phoneNumber: string;
|
|
759
759
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
760
760
|
createdAt: string;
|
|
761
761
|
updatedAt: string;
|
|
762
|
+
phoneNumber: string;
|
|
762
763
|
source: string;
|
|
763
764
|
totalCalls?: number | null | undefined;
|
|
764
765
|
qualityScore?: number | null | undefined;
|
|
@@ -767,18 +768,18 @@ export declare const leadsContractRouter: {
|
|
|
767
768
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
768
769
|
}[];
|
|
769
770
|
totalCount: number;
|
|
770
|
-
limit: number;
|
|
771
771
|
skip: number;
|
|
772
772
|
currentPage: number;
|
|
773
773
|
totalPages: number;
|
|
774
774
|
}, {
|
|
775
|
+
limit: number;
|
|
775
776
|
items: {
|
|
776
777
|
id: string;
|
|
777
778
|
name: string;
|
|
778
|
-
phoneNumber: string;
|
|
779
779
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
780
780
|
createdAt: string | Date;
|
|
781
781
|
updatedAt: string | Date;
|
|
782
|
+
phoneNumber: string;
|
|
782
783
|
source: string;
|
|
783
784
|
totalCalls?: number | null | undefined;
|
|
784
785
|
qualityScore?: number | null | undefined;
|
|
@@ -787,7 +788,6 @@ export declare const leadsContractRouter: {
|
|
|
787
788
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
788
789
|
}[];
|
|
789
790
|
totalCount: number;
|
|
790
|
-
limit: number;
|
|
791
791
|
skip: number;
|
|
792
792
|
currentPage: number;
|
|
793
793
|
totalPages: number;
|
|
@@ -928,10 +928,10 @@ export declare const leadsContractRouter: {
|
|
|
928
928
|
}, "strip", z.ZodTypeAny, {
|
|
929
929
|
id: string;
|
|
930
930
|
name: string;
|
|
931
|
-
phoneNumber: string;
|
|
932
931
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
933
932
|
createdAt: string;
|
|
934
933
|
updatedAt: string;
|
|
934
|
+
phoneNumber: string;
|
|
935
935
|
source: string;
|
|
936
936
|
totalCalls?: number | null | undefined;
|
|
937
937
|
qualityScore?: number | null | undefined;
|
|
@@ -941,10 +941,10 @@ export declare const leadsContractRouter: {
|
|
|
941
941
|
}, {
|
|
942
942
|
id: string;
|
|
943
943
|
name: string;
|
|
944
|
-
phoneNumber: string;
|
|
945
944
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
946
945
|
createdAt: string | Date;
|
|
947
946
|
updatedAt: string | Date;
|
|
947
|
+
phoneNumber: string;
|
|
948
948
|
source: string;
|
|
949
949
|
totalCalls?: number | null | undefined;
|
|
950
950
|
qualityScore?: number | null | undefined;
|
|
@@ -1003,14 +1003,14 @@ export declare const leadsContractRouter: {
|
|
|
1003
1003
|
source: z.ZodOptional<z.ZodString>;
|
|
1004
1004
|
}, "strip", z.ZodTypeAny, {
|
|
1005
1005
|
name?: string | undefined;
|
|
1006
|
-
phoneNumber?: string | undefined;
|
|
1007
1006
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1007
|
+
phoneNumber?: string | undefined;
|
|
1008
1008
|
source?: string | undefined;
|
|
1009
1009
|
blacklistReason?: string | undefined;
|
|
1010
1010
|
}, {
|
|
1011
1011
|
name?: string | undefined;
|
|
1012
|
-
phoneNumber?: string | undefined;
|
|
1013
1012
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1013
|
+
phoneNumber?: string | undefined;
|
|
1014
1014
|
source?: string | undefined;
|
|
1015
1015
|
blacklistReason?: string | undefined;
|
|
1016
1016
|
}>;
|
|
@@ -1132,10 +1132,10 @@ export declare const leadsContractRouter: {
|
|
|
1132
1132
|
}, "strip", z.ZodTypeAny, {
|
|
1133
1133
|
id: string;
|
|
1134
1134
|
name: string;
|
|
1135
|
-
phoneNumber: string;
|
|
1136
1135
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1137
1136
|
createdAt: string;
|
|
1138
1137
|
updatedAt: string;
|
|
1138
|
+
phoneNumber: string;
|
|
1139
1139
|
source: string;
|
|
1140
1140
|
totalCalls?: number | null | undefined;
|
|
1141
1141
|
qualityScore?: number | null | undefined;
|
|
@@ -1145,10 +1145,10 @@ export declare const leadsContractRouter: {
|
|
|
1145
1145
|
}, {
|
|
1146
1146
|
id: string;
|
|
1147
1147
|
name: string;
|
|
1148
|
-
phoneNumber: string;
|
|
1149
1148
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1150
1149
|
createdAt: string | Date;
|
|
1151
1150
|
updatedAt: string | Date;
|
|
1151
|
+
phoneNumber: string;
|
|
1152
1152
|
source: string;
|
|
1153
1153
|
totalCalls?: number | null | undefined;
|
|
1154
1154
|
qualityScore?: number | null | undefined;
|
|
@@ -1503,11 +1503,11 @@ export declare const leadsContractRouter: {
|
|
|
1503
1503
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1504
1504
|
}, "strip", z.ZodTypeAny, {
|
|
1505
1505
|
id: string;
|
|
1506
|
-
assignmentId: string;
|
|
1507
|
-
leadId: string;
|
|
1508
|
-
agentId: string;
|
|
1509
1506
|
createdAt: string;
|
|
1510
1507
|
updatedAt: string;
|
|
1508
|
+
agentId: string;
|
|
1509
|
+
leadId: string;
|
|
1510
|
+
assignmentId: string;
|
|
1511
1511
|
callDate: string;
|
|
1512
1512
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1513
1513
|
rating: import("../common/call-rating.schema").CallRating;
|
|
@@ -1515,11 +1515,11 @@ export declare const leadsContractRouter: {
|
|
|
1515
1515
|
notes?: string | null | undefined;
|
|
1516
1516
|
}, {
|
|
1517
1517
|
id: string;
|
|
1518
|
-
assignmentId: string;
|
|
1519
|
-
leadId: string;
|
|
1520
|
-
agentId: string;
|
|
1521
1518
|
createdAt: string | Date;
|
|
1522
1519
|
updatedAt: string | Date;
|
|
1520
|
+
agentId: string;
|
|
1521
|
+
leadId: string;
|
|
1522
|
+
assignmentId: string;
|
|
1523
1523
|
callDate: string | Date;
|
|
1524
1524
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1525
1525
|
rating: import("../common/call-rating.schema").CallRating;
|