@dakkitor/api-contracts 1.1.28 → 1.1.29
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 +1856 -1914
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +419 -419
- package/dist/auth/auth.contract.d.ts +4 -4
- package/dist/bookings/bookings.contract.d.ts +1481 -1534
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +2 -14
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.js +8 -24
- package/dist/client-contacts/client-contacts.contract.d.ts +356 -319
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.js +4 -1
- package/dist/common/call-rating.schema.d.ts +31 -0
- package/dist/common/call-rating.schema.d.ts.map +1 -0
- package/dist/common/call-rating.schema.js +63 -0
- package/dist/common/common-schemas.js +2 -2
- package/dist/curated-workers/curated-workers.contract.d.ts +8 -8
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +2 -3
- 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 +629 -629
- package/dist/jobs/jobs.contract.js +1 -1
- package/dist/lead-assignments/lead-assignments.contract.d.ts +6 -6
- package/dist/lead-assignments/lead-assignments.contract.js +2 -2
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +63 -63
- package/dist/leads/leads.contract.d.ts +9 -9
- package/dist/users/users.contract.d.ts +108 -108
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +2 -3
- package/dist/workers/workers.contract.d.ts +130 -205
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +2 -8
- package/package.json +1 -1
|
@@ -214,7 +214,7 @@ exports.FilterJobSchema = pagination_query_schema_1.PaginationQuerySchema.extend
|
|
|
214
214
|
.nullable()
|
|
215
215
|
.describe('Filter by job status'),
|
|
216
216
|
postcode: zod_1.z.string().optional().nullable().describe('Filter by postcode'),
|
|
217
|
-
distance: zod_1.z
|
|
217
|
+
distance: zod_1.z.coerce
|
|
218
218
|
.number()
|
|
219
219
|
.min(0)
|
|
220
220
|
.optional()
|
|
@@ -110,13 +110,13 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
110
110
|
} | undefined;
|
|
111
111
|
}>;
|
|
112
112
|
export declare const CompleteAssignmentSchema: z.ZodObject<{
|
|
113
|
-
status: z.ZodNativeEnum<typeof import("../
|
|
113
|
+
status: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
114
114
|
notes: z.ZodOptional<z.ZodString>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
status: import("../
|
|
116
|
+
status: import("../common/call-rating.schema").CallRating;
|
|
117
117
|
notes?: string | undefined;
|
|
118
118
|
}, {
|
|
119
|
-
status: import("../
|
|
119
|
+
status: import("../common/call-rating.schema").CallRating;
|
|
120
120
|
notes?: string | undefined;
|
|
121
121
|
}>;
|
|
122
122
|
export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
@@ -463,13 +463,13 @@ export declare const leadAssignmentsContract: {
|
|
|
463
463
|
summary: "Complete an assignment and update lead status (Queue-based system)";
|
|
464
464
|
method: "POST";
|
|
465
465
|
body: z.ZodObject<{
|
|
466
|
-
status: z.ZodNativeEnum<typeof import("../
|
|
466
|
+
status: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
467
467
|
notes: z.ZodOptional<z.ZodString>;
|
|
468
468
|
}, "strip", z.ZodTypeAny, {
|
|
469
|
-
status: import("../
|
|
469
|
+
status: import("../common/call-rating.schema").CallRating;
|
|
470
470
|
notes?: string | undefined;
|
|
471
471
|
}, {
|
|
472
|
-
status: import("../
|
|
472
|
+
status: import("../common/call-rating.schema").CallRating;
|
|
473
473
|
notes?: string | undefined;
|
|
474
474
|
}>;
|
|
475
475
|
path: "/v2/lead-assignments/:id/complete";
|
|
@@ -4,7 +4,7 @@ exports.leadAssignmentsContract = exports.DistributeResponseSchema = exports.Que
|
|
|
4
4
|
const zod_openapi_1 = require("@anatine/zod-openapi");
|
|
5
5
|
const core_1 = require("@ts-rest/core");
|
|
6
6
|
const zod_1 = require("zod");
|
|
7
|
-
const
|
|
7
|
+
const call_rating_schema_1 = require("../common/call-rating.schema");
|
|
8
8
|
const error_schemas_1 = require("../common/error-schemas");
|
|
9
9
|
const users_contract_1 = require("../users/users.contract");
|
|
10
10
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
@@ -63,7 +63,7 @@ exports.LeadAssignmentSchema = zod_1.z.object({
|
|
|
63
63
|
});
|
|
64
64
|
exports.CompleteAssignmentSchema = zod_1.z
|
|
65
65
|
.object({
|
|
66
|
-
status:
|
|
66
|
+
status: call_rating_schema_1.CallRatingSchema,
|
|
67
67
|
notes: zod_1.z
|
|
68
68
|
.string()
|
|
69
69
|
.max(1000)
|
|
@@ -30,22 +30,22 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
30
30
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
31
31
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
id: string;
|
|
34
|
-
firstName: string;
|
|
35
33
|
lastName: string;
|
|
34
|
+
firstName: string;
|
|
36
35
|
email: string;
|
|
36
|
+
phone: string;
|
|
37
37
|
createdAt: string;
|
|
38
|
+
id: string;
|
|
38
39
|
updatedAt: string;
|
|
39
|
-
phone: string;
|
|
40
40
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
id: string;
|
|
43
|
-
firstName: string;
|
|
44
42
|
lastName: string;
|
|
43
|
+
firstName: string;
|
|
45
44
|
email: string;
|
|
45
|
+
phone: string;
|
|
46
46
|
createdAt: string | Date;
|
|
47
|
+
id: string;
|
|
47
48
|
updatedAt: string | Date;
|
|
48
|
-
phone: string;
|
|
49
49
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -53,13 +53,13 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
53
53
|
id: string;
|
|
54
54
|
agentId: string;
|
|
55
55
|
agent: {
|
|
56
|
-
id: string;
|
|
57
|
-
firstName: string;
|
|
58
56
|
lastName: string;
|
|
57
|
+
firstName: string;
|
|
59
58
|
email: string;
|
|
59
|
+
phone: string;
|
|
60
60
|
createdAt: string;
|
|
61
|
+
id: string;
|
|
61
62
|
updatedAt: string;
|
|
62
|
-
phone: string;
|
|
63
63
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
64
64
|
};
|
|
65
65
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -68,13 +68,13 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
68
68
|
id: string;
|
|
69
69
|
agentId: string;
|
|
70
70
|
agent: {
|
|
71
|
-
id: string;
|
|
72
|
-
firstName: string;
|
|
73
71
|
lastName: string;
|
|
72
|
+
firstName: string;
|
|
74
73
|
email: string;
|
|
74
|
+
phone: string;
|
|
75
75
|
createdAt: string | Date;
|
|
76
|
+
id: string;
|
|
76
77
|
updatedAt: string | Date;
|
|
77
|
-
phone: string;
|
|
78
78
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
79
79
|
};
|
|
80
80
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -139,22 +139,22 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
139
139
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
140
140
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
id: string;
|
|
143
|
-
firstName: string;
|
|
144
142
|
lastName: string;
|
|
143
|
+
firstName: string;
|
|
145
144
|
email: string;
|
|
145
|
+
phone: string;
|
|
146
146
|
createdAt: string;
|
|
147
|
+
id: string;
|
|
147
148
|
updatedAt: string;
|
|
148
|
-
phone: string;
|
|
149
149
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
150
150
|
}, {
|
|
151
|
-
id: string;
|
|
152
|
-
firstName: string;
|
|
153
151
|
lastName: string;
|
|
152
|
+
firstName: string;
|
|
154
153
|
email: string;
|
|
154
|
+
phone: string;
|
|
155
155
|
createdAt: string | Date;
|
|
156
|
+
id: string;
|
|
156
157
|
updatedAt: string | Date;
|
|
157
|
-
phone: string;
|
|
158
158
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
159
159
|
}>;
|
|
160
160
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -162,13 +162,13 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
162
162
|
id: string;
|
|
163
163
|
agentId: string;
|
|
164
164
|
agent: {
|
|
165
|
-
id: string;
|
|
166
|
-
firstName: string;
|
|
167
165
|
lastName: string;
|
|
166
|
+
firstName: string;
|
|
168
167
|
email: string;
|
|
168
|
+
phone: string;
|
|
169
169
|
createdAt: string;
|
|
170
|
+
id: string;
|
|
170
171
|
updatedAt: string;
|
|
171
|
-
phone: string;
|
|
172
172
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
173
173
|
};
|
|
174
174
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -177,13 +177,13 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
177
177
|
id: string;
|
|
178
178
|
agentId: string;
|
|
179
179
|
agent: {
|
|
180
|
-
id: string;
|
|
181
|
-
firstName: string;
|
|
182
180
|
lastName: string;
|
|
181
|
+
firstName: string;
|
|
183
182
|
email: string;
|
|
183
|
+
phone: string;
|
|
184
184
|
createdAt: string | Date;
|
|
185
|
+
id: string;
|
|
185
186
|
updatedAt: string | Date;
|
|
186
|
-
phone: string;
|
|
187
187
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
188
188
|
};
|
|
189
189
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -200,13 +200,13 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
200
200
|
id: string;
|
|
201
201
|
agentId: string;
|
|
202
202
|
agent: {
|
|
203
|
-
id: string;
|
|
204
|
-
firstName: string;
|
|
205
203
|
lastName: string;
|
|
204
|
+
firstName: string;
|
|
206
205
|
email: string;
|
|
206
|
+
phone: string;
|
|
207
207
|
createdAt: string;
|
|
208
|
+
id: string;
|
|
208
209
|
updatedAt: string;
|
|
209
|
-
phone: string;
|
|
210
210
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
211
211
|
};
|
|
212
212
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -222,13 +222,13 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
222
222
|
id: string;
|
|
223
223
|
agentId: string;
|
|
224
224
|
agent: {
|
|
225
|
-
id: string;
|
|
226
|
-
firstName: string;
|
|
227
225
|
lastName: string;
|
|
226
|
+
firstName: string;
|
|
228
227
|
email: string;
|
|
228
|
+
phone: string;
|
|
229
229
|
createdAt: string | Date;
|
|
230
|
+
id: string;
|
|
230
231
|
updatedAt: string | Date;
|
|
231
|
-
phone: string;
|
|
232
232
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
233
233
|
};
|
|
234
234
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -246,6 +246,9 @@ export type FilterAgentLeadDistribution = z.infer<typeof FilterAgentLeadDistribu
|
|
|
246
246
|
export type PaginatedAgentLeadDistributionResponse = z.infer<typeof PaginatedAgentLeadDistributionResponseSchema>;
|
|
247
247
|
export declare const agentLeadDistributionContract: {
|
|
248
248
|
findAll: {
|
|
249
|
+
metadata: {
|
|
250
|
+
tags: string[];
|
|
251
|
+
};
|
|
249
252
|
query: z.ZodObject<{
|
|
250
253
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
251
254
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -266,9 +269,6 @@ export declare const agentLeadDistributionContract: {
|
|
|
266
269
|
agentId?: string | undefined;
|
|
267
270
|
leadDistributionConfigId?: string | undefined;
|
|
268
271
|
}>;
|
|
269
|
-
metadata: {
|
|
270
|
-
tags: string[];
|
|
271
|
-
};
|
|
272
272
|
summary: "List all agent lead distribution records";
|
|
273
273
|
method: "GET";
|
|
274
274
|
path: "/v2/agent-lead-distribution";
|
|
@@ -365,22 +365,22 @@ export declare const agentLeadDistributionContract: {
|
|
|
365
365
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
366
366
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
367
367
|
}, "strip", z.ZodTypeAny, {
|
|
368
|
-
id: string;
|
|
369
|
-
firstName: string;
|
|
370
368
|
lastName: string;
|
|
369
|
+
firstName: string;
|
|
371
370
|
email: string;
|
|
371
|
+
phone: string;
|
|
372
372
|
createdAt: string;
|
|
373
|
+
id: string;
|
|
373
374
|
updatedAt: string;
|
|
374
|
-
phone: string;
|
|
375
375
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
376
376
|
}, {
|
|
377
|
-
id: string;
|
|
378
|
-
firstName: string;
|
|
379
377
|
lastName: string;
|
|
378
|
+
firstName: string;
|
|
380
379
|
email: string;
|
|
380
|
+
phone: string;
|
|
381
381
|
createdAt: string | Date;
|
|
382
|
+
id: string;
|
|
382
383
|
updatedAt: string | Date;
|
|
383
|
-
phone: string;
|
|
384
384
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
385
385
|
}>;
|
|
386
386
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -388,13 +388,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
388
388
|
id: string;
|
|
389
389
|
agentId: string;
|
|
390
390
|
agent: {
|
|
391
|
-
id: string;
|
|
392
|
-
firstName: string;
|
|
393
391
|
lastName: string;
|
|
392
|
+
firstName: string;
|
|
394
393
|
email: string;
|
|
394
|
+
phone: string;
|
|
395
395
|
createdAt: string;
|
|
396
|
+
id: string;
|
|
396
397
|
updatedAt: string;
|
|
397
|
-
phone: string;
|
|
398
398
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
399
399
|
};
|
|
400
400
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -403,13 +403,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
403
403
|
id: string;
|
|
404
404
|
agentId: string;
|
|
405
405
|
agent: {
|
|
406
|
-
id: string;
|
|
407
|
-
firstName: string;
|
|
408
406
|
lastName: string;
|
|
407
|
+
firstName: string;
|
|
409
408
|
email: string;
|
|
409
|
+
phone: string;
|
|
410
410
|
createdAt: string | Date;
|
|
411
|
+
id: string;
|
|
411
412
|
updatedAt: string | Date;
|
|
412
|
-
phone: string;
|
|
413
413
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
414
414
|
};
|
|
415
415
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -426,13 +426,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
426
426
|
id: string;
|
|
427
427
|
agentId: string;
|
|
428
428
|
agent: {
|
|
429
|
-
id: string;
|
|
430
|
-
firstName: string;
|
|
431
429
|
lastName: string;
|
|
430
|
+
firstName: string;
|
|
432
431
|
email: string;
|
|
432
|
+
phone: string;
|
|
433
433
|
createdAt: string;
|
|
434
|
+
id: string;
|
|
434
435
|
updatedAt: string;
|
|
435
|
-
phone: string;
|
|
436
436
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
437
437
|
};
|
|
438
438
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -448,13 +448,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
448
448
|
id: string;
|
|
449
449
|
agentId: string;
|
|
450
450
|
agent: {
|
|
451
|
-
id: string;
|
|
452
|
-
firstName: string;
|
|
453
451
|
lastName: string;
|
|
452
|
+
firstName: string;
|
|
454
453
|
email: string;
|
|
454
|
+
phone: string;
|
|
455
455
|
createdAt: string | Date;
|
|
456
|
+
id: string;
|
|
456
457
|
updatedAt: string | Date;
|
|
457
|
-
phone: string;
|
|
458
458
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
459
459
|
};
|
|
460
460
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -597,22 +597,22 @@ export declare const agentLeadDistributionContract: {
|
|
|
597
597
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
598
598
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
599
599
|
}, "strip", z.ZodTypeAny, {
|
|
600
|
-
id: string;
|
|
601
|
-
firstName: string;
|
|
602
600
|
lastName: string;
|
|
601
|
+
firstName: string;
|
|
603
602
|
email: string;
|
|
603
|
+
phone: string;
|
|
604
604
|
createdAt: string;
|
|
605
|
+
id: string;
|
|
605
606
|
updatedAt: string;
|
|
606
|
-
phone: string;
|
|
607
607
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
608
608
|
}, {
|
|
609
|
-
id: string;
|
|
610
|
-
firstName: string;
|
|
611
609
|
lastName: string;
|
|
610
|
+
firstName: string;
|
|
612
611
|
email: string;
|
|
612
|
+
phone: string;
|
|
613
613
|
createdAt: string | Date;
|
|
614
|
+
id: string;
|
|
614
615
|
updatedAt: string | Date;
|
|
615
|
-
phone: string;
|
|
616
616
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
617
617
|
}>;
|
|
618
618
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -620,13 +620,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
620
620
|
id: string;
|
|
621
621
|
agentId: string;
|
|
622
622
|
agent: {
|
|
623
|
-
id: string;
|
|
624
|
-
firstName: string;
|
|
625
623
|
lastName: string;
|
|
624
|
+
firstName: string;
|
|
626
625
|
email: string;
|
|
626
|
+
phone: string;
|
|
627
627
|
createdAt: string;
|
|
628
|
+
id: string;
|
|
628
629
|
updatedAt: string;
|
|
629
|
-
phone: string;
|
|
630
630
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
631
631
|
};
|
|
632
632
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -635,13 +635,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
635
635
|
id: string;
|
|
636
636
|
agentId: string;
|
|
637
637
|
agent: {
|
|
638
|
-
id: string;
|
|
639
|
-
firstName: string;
|
|
640
638
|
lastName: string;
|
|
639
|
+
firstName: string;
|
|
641
640
|
email: string;
|
|
641
|
+
phone: string;
|
|
642
642
|
createdAt: string | Date;
|
|
643
|
+
id: string;
|
|
643
644
|
updatedAt: string | Date;
|
|
644
|
-
phone: string;
|
|
645
645
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
646
646
|
};
|
|
647
647
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -161,7 +161,7 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
161
161
|
agentId: z.ZodString;
|
|
162
162
|
callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
163
163
|
callType: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>;
|
|
164
|
-
rating: z.ZodNativeEnum<typeof import("../
|
|
164
|
+
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
165
165
|
ratingWeight: z.ZodNumber;
|
|
166
166
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
167
167
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -175,7 +175,7 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
175
175
|
updatedAt: string;
|
|
176
176
|
callDate: string;
|
|
177
177
|
callType: import("../call-history/call-history.contract").CallType;
|
|
178
|
-
rating: import("../
|
|
178
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
179
179
|
ratingWeight: number;
|
|
180
180
|
notes?: string | null | undefined;
|
|
181
181
|
}, {
|
|
@@ -187,7 +187,7 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
187
187
|
updatedAt: string | Date;
|
|
188
188
|
callDate: string | Date;
|
|
189
189
|
callType: import("../call-history/call-history.contract").CallType;
|
|
190
|
-
rating: import("../
|
|
190
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
191
191
|
ratingWeight: number;
|
|
192
192
|
notes?: string | null | undefined;
|
|
193
193
|
}>;
|
|
@@ -1373,18 +1373,18 @@ export declare const leadsContractRouter: {
|
|
|
1373
1373
|
method: "POST";
|
|
1374
1374
|
body: z.ZodObject<{
|
|
1375
1375
|
assignmentId: z.ZodString;
|
|
1376
|
-
rating: z.ZodNativeEnum<typeof import("../
|
|
1376
|
+
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
1377
1377
|
notes: z.ZodOptional<z.ZodString>;
|
|
1378
1378
|
callType: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>;
|
|
1379
1379
|
}, "strip", z.ZodTypeAny, {
|
|
1380
1380
|
assignmentId: string;
|
|
1381
1381
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1382
|
-
rating: import("../
|
|
1382
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1383
1383
|
notes?: string | undefined;
|
|
1384
1384
|
}, {
|
|
1385
1385
|
assignmentId: string;
|
|
1386
1386
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1387
|
-
rating: import("../
|
|
1387
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1388
1388
|
notes?: string | undefined;
|
|
1389
1389
|
}>;
|
|
1390
1390
|
path: "/v2/leads/:id/call";
|
|
@@ -1496,7 +1496,7 @@ export declare const leadsContractRouter: {
|
|
|
1496
1496
|
agentId: z.ZodString;
|
|
1497
1497
|
callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1498
1498
|
callType: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>;
|
|
1499
|
-
rating: z.ZodNativeEnum<typeof import("../
|
|
1499
|
+
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
1500
1500
|
ratingWeight: z.ZodNumber;
|
|
1501
1501
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1502
1502
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1510,7 +1510,7 @@ export declare const leadsContractRouter: {
|
|
|
1510
1510
|
updatedAt: string;
|
|
1511
1511
|
callDate: string;
|
|
1512
1512
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1513
|
-
rating: import("../
|
|
1513
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1514
1514
|
ratingWeight: number;
|
|
1515
1515
|
notes?: string | null | undefined;
|
|
1516
1516
|
}, {
|
|
@@ -1522,7 +1522,7 @@ export declare const leadsContractRouter: {
|
|
|
1522
1522
|
updatedAt: string | Date;
|
|
1523
1523
|
callDate: string | Date;
|
|
1524
1524
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1525
|
-
rating: import("../
|
|
1525
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1526
1526
|
ratingWeight: number;
|
|
1527
1527
|
notes?: string | null | undefined;
|
|
1528
1528
|
}>;
|