@dakkitor/api-contracts 1.1.141 → 1.1.143
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 +17 -63
- package/dist/abilities/second-agent.abilities.json +10 -0
- package/dist/actives/actives.contract.d.ts +4419 -3731
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +22 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1285 -1285
- package/dist/auth/auth.contract.d.ts +40 -28
- package/dist/auth/auth.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.d.ts +6499 -5929
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +0 -6
- package/dist/call-history/call-history.contract.d.ts +717 -717
- package/dist/client-contacts/client-contacts.contract.d.ts +309 -309
- package/dist/client-contacts/client-contacts.contract.js +2 -2
- package/dist/clients/clients.contract.d.ts +173 -173
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2328 -2328
- package/dist/collaborations/collaborations.contract.d.ts +2052 -2052
- package/dist/common/call-rating.schema.d.ts +12 -12
- package/dist/common/call-rating.schema.js +40 -48
- package/dist/common/common-schemas.d.ts +10 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +2 -0
- package/dist/common/error-schemas.d.ts +5 -11
- package/dist/common/error-schemas.js +8 -11
- package/dist/common/openapi-metadata.d.ts +44 -54
- package/dist/common/openapi-metadata.js +129 -135
- package/dist/common/pagination-query.schema.d.ts +7 -13
- package/dist/common/pagination-query.schema.js +8 -11
- package/dist/companies/companies.contract.d.ts +26 -26
- package/dist/cron-executions/cron-executions.contract.d.ts +255 -7
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +28 -0
- package/dist/curated-workers/curated-workers.contract.d.ts +626 -558
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +2 -4
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +20 -11
- package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -1
- package/dist/dashboards/agent-daily-metrics.contract.js +1 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +92 -92
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +4 -1
- package/dist/dashboards/dashboard.contract.d.ts +12 -12
- package/dist/files/files.contract.d.ts +1189 -1556
- package/dist/files/files.contract.js +162 -177
- package/dist/health/health.contract.d.ts +144 -191
- package/dist/health/health.contract.js +40 -53
- package/dist/jobs/jobs.contract.d.ts +4427 -3769
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +106 -17
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +114 -114
- package/dist/lead-assignments/lead-assignments.contract.d.ts +606 -606
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +217 -217
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +16 -16
- package/dist/leads/leads.contract.d.ts +199 -199
- package/dist/locations/locations.contract.d.ts +28 -28
- package/dist/own-research/own-research.contract.d.ts +736 -736
- package/dist/postcodes/postcodes.contract.d.ts +6 -6
- package/dist/qualifications/qualifications.contract.d.ts +1387 -1898
- package/dist/qualifications/qualifications.contract.js +171 -193
- package/dist/trades/trades.contract.d.ts +763 -991
- package/dist/trades/trades.contract.js +89 -111
- package/dist/users/users.contract.d.ts +632 -285
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +38 -1
- package/dist/workers/workers.contract.d.ts +4869 -3000
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +285 -30
- package/package.json +1 -1
- package/dist/monitoring/monitoring.contract.d.ts +0 -615
- package/dist/monitoring/monitoring.contract.d.ts.map +0 -1
- package/dist/monitoring/monitoring.contract.js +0 -106
|
@@ -9,11 +9,11 @@ export declare const LeadAssignmentLeadSchema: z.ZodObject<{
|
|
|
9
9
|
name: z.ZodString;
|
|
10
10
|
phoneNumber: z.ZodString;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
phoneNumber: string;
|
|
13
12
|
name: string;
|
|
14
|
-
}, {
|
|
15
13
|
phoneNumber: string;
|
|
14
|
+
}, {
|
|
16
15
|
name: string;
|
|
16
|
+
phoneNumber: string;
|
|
17
17
|
}>;
|
|
18
18
|
export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
19
19
|
id: z.ZodString;
|
|
@@ -22,11 +22,11 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
22
22
|
name: z.ZodString;
|
|
23
23
|
phoneNumber: z.ZodString;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
phoneNumber: string;
|
|
26
25
|
name: string;
|
|
27
|
-
}, {
|
|
28
26
|
phoneNumber: string;
|
|
27
|
+
}, {
|
|
29
28
|
name: string;
|
|
29
|
+
phoneNumber: string;
|
|
30
30
|
}>>;
|
|
31
31
|
agentId: z.ZodNullable<z.ZodString>;
|
|
32
32
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -66,46 +66,47 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
66
66
|
firstName: z.ZodString;
|
|
67
67
|
lastName: z.ZodString;
|
|
68
68
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
lastName: string;
|
|
70
|
-
firstName: string;
|
|
71
69
|
id: string;
|
|
72
|
-
}, {
|
|
73
|
-
lastName: string;
|
|
74
70
|
firstName: string;
|
|
71
|
+
lastName: string;
|
|
72
|
+
}, {
|
|
75
73
|
id: string;
|
|
74
|
+
firstName: string;
|
|
75
|
+
lastName: string;
|
|
76
76
|
}>, "many">>;
|
|
77
77
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
78
78
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
lastName: string;
|
|
81
|
-
firstName: string;
|
|
82
|
-
email: string;
|
|
83
|
-
createdAt: string;
|
|
84
80
|
id: string;
|
|
81
|
+
updatedAt: string;
|
|
82
|
+
createdAt: string;
|
|
83
|
+
email: string;
|
|
84
|
+
firstName: string;
|
|
85
|
+
lastName: string;
|
|
85
86
|
phoneNumbers: {
|
|
86
87
|
id: string;
|
|
87
88
|
phoneNumber: string;
|
|
88
89
|
isPrimary: boolean;
|
|
89
90
|
description?: string | null | undefined;
|
|
90
91
|
}[];
|
|
91
|
-
|
|
92
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
92
93
|
office?: {
|
|
93
94
|
id: string;
|
|
94
95
|
name: string;
|
|
95
96
|
} | null | undefined;
|
|
96
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
97
97
|
canImpersonateUsers?: {
|
|
98
|
-
lastName: string;
|
|
99
|
-
firstName: string;
|
|
100
98
|
id: string;
|
|
99
|
+
firstName: string;
|
|
100
|
+
lastName: string;
|
|
101
101
|
}[] | undefined;
|
|
102
102
|
}, {
|
|
103
|
-
lastName: string;
|
|
104
|
-
firstName: string;
|
|
105
|
-
email: string;
|
|
106
|
-
createdAt: string | Date;
|
|
107
103
|
id: string;
|
|
108
104
|
updatedAt: string | Date;
|
|
105
|
+
createdAt: string | Date;
|
|
106
|
+
email: string;
|
|
107
|
+
firstName: string;
|
|
108
|
+
lastName: string;
|
|
109
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
109
110
|
office?: {
|
|
110
111
|
id: string;
|
|
111
112
|
name: string;
|
|
@@ -116,11 +117,10 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
116
117
|
description?: string | null | undefined;
|
|
117
118
|
isPrimary?: boolean | undefined;
|
|
118
119
|
}[] | undefined;
|
|
119
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
120
120
|
canImpersonateUsers?: {
|
|
121
|
-
lastName: string;
|
|
122
|
-
firstName: string;
|
|
123
121
|
id: string;
|
|
122
|
+
firstName: string;
|
|
123
|
+
lastName: string;
|
|
124
124
|
}[] | undefined;
|
|
125
125
|
}>>;
|
|
126
126
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -133,79 +133,86 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
133
133
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
134
134
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
createdAt: string;
|
|
137
136
|
id: string;
|
|
138
137
|
name: string;
|
|
139
138
|
updatedAt: string;
|
|
139
|
+
createdAt: string;
|
|
140
140
|
}, {
|
|
141
|
-
createdAt: string | Date;
|
|
142
141
|
id: string;
|
|
143
142
|
name: string;
|
|
144
143
|
updatedAt: string | Date;
|
|
144
|
+
createdAt: string | Date;
|
|
145
145
|
}>>>;
|
|
146
146
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
147
147
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
|
-
createdAt: string;
|
|
150
149
|
id: string;
|
|
151
|
-
status: LeadAssignmentStatus;
|
|
152
150
|
updatedAt: string;
|
|
151
|
+
createdAt: string;
|
|
152
|
+
status: LeadAssignmentStatus;
|
|
153
|
+
companyId: string | null;
|
|
153
154
|
agentId: string | null;
|
|
154
155
|
leadId: string;
|
|
155
156
|
assignedAt: string;
|
|
156
157
|
assignedBy: string | null;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
email: string;
|
|
158
|
+
company?: {
|
|
159
|
+
id: string;
|
|
160
|
+
name: string;
|
|
161
|
+
updatedAt: string;
|
|
162
162
|
createdAt: string;
|
|
163
|
+
} | null | undefined;
|
|
164
|
+
agent?: {
|
|
163
165
|
id: string;
|
|
166
|
+
updatedAt: string;
|
|
167
|
+
createdAt: string;
|
|
168
|
+
email: string;
|
|
169
|
+
firstName: string;
|
|
170
|
+
lastName: string;
|
|
164
171
|
phoneNumbers: {
|
|
165
172
|
id: string;
|
|
166
173
|
phoneNumber: string;
|
|
167
174
|
isPrimary: boolean;
|
|
168
175
|
description?: string | null | undefined;
|
|
169
176
|
}[];
|
|
170
|
-
|
|
177
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
171
178
|
office?: {
|
|
172
179
|
id: string;
|
|
173
180
|
name: string;
|
|
174
181
|
} | null | undefined;
|
|
175
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
176
182
|
canImpersonateUsers?: {
|
|
177
|
-
lastName: string;
|
|
178
|
-
firstName: string;
|
|
179
183
|
id: string;
|
|
184
|
+
firstName: string;
|
|
185
|
+
lastName: string;
|
|
180
186
|
}[] | undefined;
|
|
181
187
|
} | undefined;
|
|
182
188
|
lead?: {
|
|
183
|
-
phoneNumber: string;
|
|
184
189
|
name: string;
|
|
190
|
+
phoneNumber: string;
|
|
185
191
|
} | undefined;
|
|
186
|
-
company?: {
|
|
187
|
-
createdAt: string;
|
|
188
|
-
id: string;
|
|
189
|
-
name: string;
|
|
190
|
-
updatedAt: string;
|
|
191
|
-
} | null | undefined;
|
|
192
192
|
}, {
|
|
193
|
-
createdAt: string | Date;
|
|
194
193
|
id: string;
|
|
195
|
-
status: LeadAssignmentStatus;
|
|
196
194
|
updatedAt: string | Date;
|
|
195
|
+
createdAt: string | Date;
|
|
196
|
+
status: LeadAssignmentStatus;
|
|
197
|
+
companyId: string | null;
|
|
197
198
|
agentId: string | null;
|
|
198
199
|
leadId: string;
|
|
199
200
|
assignedAt: string | Date;
|
|
200
201
|
assignedBy: string | null;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
email: string;
|
|
202
|
+
company?: {
|
|
203
|
+
id: string;
|
|
204
|
+
name: string;
|
|
205
|
+
updatedAt: string | Date;
|
|
206
206
|
createdAt: string | Date;
|
|
207
|
+
} | null | undefined;
|
|
208
|
+
agent?: {
|
|
207
209
|
id: string;
|
|
208
210
|
updatedAt: string | Date;
|
|
211
|
+
createdAt: string | Date;
|
|
212
|
+
email: string;
|
|
213
|
+
firstName: string;
|
|
214
|
+
lastName: string;
|
|
215
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
209
216
|
office?: {
|
|
210
217
|
id: string;
|
|
211
218
|
name: string;
|
|
@@ -216,23 +223,16 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
216
223
|
description?: string | null | undefined;
|
|
217
224
|
isPrimary?: boolean | undefined;
|
|
218
225
|
}[] | undefined;
|
|
219
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
220
226
|
canImpersonateUsers?: {
|
|
221
|
-
lastName: string;
|
|
222
|
-
firstName: string;
|
|
223
227
|
id: string;
|
|
228
|
+
firstName: string;
|
|
229
|
+
lastName: string;
|
|
224
230
|
}[] | undefined;
|
|
225
231
|
} | undefined;
|
|
226
232
|
lead?: {
|
|
227
|
-
phoneNumber: string;
|
|
228
233
|
name: string;
|
|
234
|
+
phoneNumber: string;
|
|
229
235
|
} | undefined;
|
|
230
|
-
company?: {
|
|
231
|
-
createdAt: string | Date;
|
|
232
|
-
id: string;
|
|
233
|
-
name: string;
|
|
234
|
-
updatedAt: string | Date;
|
|
235
|
-
} | null | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
export declare const CompleteAssignmentSchema: z.ZodObject<{
|
|
238
238
|
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
@@ -252,11 +252,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
252
252
|
name: z.ZodString;
|
|
253
253
|
phoneNumber: z.ZodString;
|
|
254
254
|
}, "strip", z.ZodTypeAny, {
|
|
255
|
-
phoneNumber: string;
|
|
256
255
|
name: string;
|
|
257
|
-
}, {
|
|
258
256
|
phoneNumber: string;
|
|
257
|
+
}, {
|
|
259
258
|
name: string;
|
|
259
|
+
phoneNumber: string;
|
|
260
260
|
}>>;
|
|
261
261
|
agentId: z.ZodNullable<z.ZodString>;
|
|
262
262
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -296,46 +296,47 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
296
296
|
firstName: z.ZodString;
|
|
297
297
|
lastName: z.ZodString;
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
299
|
-
lastName: string;
|
|
300
|
-
firstName: string;
|
|
301
299
|
id: string;
|
|
302
|
-
}, {
|
|
303
|
-
lastName: string;
|
|
304
300
|
firstName: string;
|
|
301
|
+
lastName: string;
|
|
302
|
+
}, {
|
|
305
303
|
id: string;
|
|
304
|
+
firstName: string;
|
|
305
|
+
lastName: string;
|
|
306
306
|
}>, "many">>;
|
|
307
307
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
308
308
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
309
309
|
}, "strip", z.ZodTypeAny, {
|
|
310
|
-
lastName: string;
|
|
311
|
-
firstName: string;
|
|
312
|
-
email: string;
|
|
313
|
-
createdAt: string;
|
|
314
310
|
id: string;
|
|
311
|
+
updatedAt: string;
|
|
312
|
+
createdAt: string;
|
|
313
|
+
email: string;
|
|
314
|
+
firstName: string;
|
|
315
|
+
lastName: string;
|
|
315
316
|
phoneNumbers: {
|
|
316
317
|
id: string;
|
|
317
318
|
phoneNumber: string;
|
|
318
319
|
isPrimary: boolean;
|
|
319
320
|
description?: string | null | undefined;
|
|
320
321
|
}[];
|
|
321
|
-
|
|
322
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
322
323
|
office?: {
|
|
323
324
|
id: string;
|
|
324
325
|
name: string;
|
|
325
326
|
} | null | undefined;
|
|
326
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
327
327
|
canImpersonateUsers?: {
|
|
328
|
-
lastName: string;
|
|
329
|
-
firstName: string;
|
|
330
328
|
id: string;
|
|
329
|
+
firstName: string;
|
|
330
|
+
lastName: string;
|
|
331
331
|
}[] | undefined;
|
|
332
332
|
}, {
|
|
333
|
-
lastName: string;
|
|
334
|
-
firstName: string;
|
|
335
|
-
email: string;
|
|
336
|
-
createdAt: string | Date;
|
|
337
333
|
id: string;
|
|
338
334
|
updatedAt: string | Date;
|
|
335
|
+
createdAt: string | Date;
|
|
336
|
+
email: string;
|
|
337
|
+
firstName: string;
|
|
338
|
+
lastName: string;
|
|
339
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
339
340
|
office?: {
|
|
340
341
|
id: string;
|
|
341
342
|
name: string;
|
|
@@ -346,11 +347,10 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
346
347
|
description?: string | null | undefined;
|
|
347
348
|
isPrimary?: boolean | undefined;
|
|
348
349
|
}[] | undefined;
|
|
349
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
350
350
|
canImpersonateUsers?: {
|
|
351
|
-
lastName: string;
|
|
352
|
-
firstName: string;
|
|
353
351
|
id: string;
|
|
352
|
+
firstName: string;
|
|
353
|
+
lastName: string;
|
|
354
354
|
}[] | undefined;
|
|
355
355
|
}>>;
|
|
356
356
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -363,79 +363,86 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
363
363
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
364
364
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
365
365
|
}, "strip", z.ZodTypeAny, {
|
|
366
|
-
createdAt: string;
|
|
367
366
|
id: string;
|
|
368
367
|
name: string;
|
|
369
368
|
updatedAt: string;
|
|
369
|
+
createdAt: string;
|
|
370
370
|
}, {
|
|
371
|
-
createdAt: string | Date;
|
|
372
371
|
id: string;
|
|
373
372
|
name: string;
|
|
374
373
|
updatedAt: string | Date;
|
|
374
|
+
createdAt: string | Date;
|
|
375
375
|
}>>>;
|
|
376
376
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
377
377
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
378
378
|
}, "strip", z.ZodTypeAny, {
|
|
379
|
-
createdAt: string;
|
|
380
379
|
id: string;
|
|
381
|
-
status: LeadAssignmentStatus;
|
|
382
380
|
updatedAt: string;
|
|
381
|
+
createdAt: string;
|
|
382
|
+
status: LeadAssignmentStatus;
|
|
383
|
+
companyId: string | null;
|
|
383
384
|
agentId: string | null;
|
|
384
385
|
leadId: string;
|
|
385
386
|
assignedAt: string;
|
|
386
387
|
assignedBy: string | null;
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
email: string;
|
|
388
|
+
company?: {
|
|
389
|
+
id: string;
|
|
390
|
+
name: string;
|
|
391
|
+
updatedAt: string;
|
|
392
392
|
createdAt: string;
|
|
393
|
+
} | null | undefined;
|
|
394
|
+
agent?: {
|
|
393
395
|
id: string;
|
|
396
|
+
updatedAt: string;
|
|
397
|
+
createdAt: string;
|
|
398
|
+
email: string;
|
|
399
|
+
firstName: string;
|
|
400
|
+
lastName: string;
|
|
394
401
|
phoneNumbers: {
|
|
395
402
|
id: string;
|
|
396
403
|
phoneNumber: string;
|
|
397
404
|
isPrimary: boolean;
|
|
398
405
|
description?: string | null | undefined;
|
|
399
406
|
}[];
|
|
400
|
-
|
|
407
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
401
408
|
office?: {
|
|
402
409
|
id: string;
|
|
403
410
|
name: string;
|
|
404
411
|
} | null | undefined;
|
|
405
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
406
412
|
canImpersonateUsers?: {
|
|
407
|
-
lastName: string;
|
|
408
|
-
firstName: string;
|
|
409
413
|
id: string;
|
|
414
|
+
firstName: string;
|
|
415
|
+
lastName: string;
|
|
410
416
|
}[] | undefined;
|
|
411
417
|
} | undefined;
|
|
412
418
|
lead?: {
|
|
413
|
-
phoneNumber: string;
|
|
414
419
|
name: string;
|
|
420
|
+
phoneNumber: string;
|
|
415
421
|
} | undefined;
|
|
416
|
-
company?: {
|
|
417
|
-
createdAt: string;
|
|
418
|
-
id: string;
|
|
419
|
-
name: string;
|
|
420
|
-
updatedAt: string;
|
|
421
|
-
} | null | undefined;
|
|
422
422
|
}, {
|
|
423
|
-
createdAt: string | Date;
|
|
424
423
|
id: string;
|
|
425
|
-
status: LeadAssignmentStatus;
|
|
426
424
|
updatedAt: string | Date;
|
|
425
|
+
createdAt: string | Date;
|
|
426
|
+
status: LeadAssignmentStatus;
|
|
427
|
+
companyId: string | null;
|
|
427
428
|
agentId: string | null;
|
|
428
429
|
leadId: string;
|
|
429
430
|
assignedAt: string | Date;
|
|
430
431
|
assignedBy: string | null;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
email: string;
|
|
432
|
+
company?: {
|
|
433
|
+
id: string;
|
|
434
|
+
name: string;
|
|
435
|
+
updatedAt: string | Date;
|
|
436
436
|
createdAt: string | Date;
|
|
437
|
+
} | null | undefined;
|
|
438
|
+
agent?: {
|
|
437
439
|
id: string;
|
|
438
440
|
updatedAt: string | Date;
|
|
441
|
+
createdAt: string | Date;
|
|
442
|
+
email: string;
|
|
443
|
+
firstName: string;
|
|
444
|
+
lastName: string;
|
|
445
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
439
446
|
office?: {
|
|
440
447
|
id: string;
|
|
441
448
|
name: string;
|
|
@@ -446,23 +453,16 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
446
453
|
description?: string | null | undefined;
|
|
447
454
|
isPrimary?: boolean | undefined;
|
|
448
455
|
}[] | undefined;
|
|
449
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
450
456
|
canImpersonateUsers?: {
|
|
451
|
-
lastName: string;
|
|
452
|
-
firstName: string;
|
|
453
457
|
id: string;
|
|
458
|
+
firstName: string;
|
|
459
|
+
lastName: string;
|
|
454
460
|
}[] | undefined;
|
|
455
461
|
} | undefined;
|
|
456
462
|
lead?: {
|
|
457
|
-
phoneNumber: string;
|
|
458
463
|
name: string;
|
|
464
|
+
phoneNumber: string;
|
|
459
465
|
} | undefined;
|
|
460
|
-
company?: {
|
|
461
|
-
createdAt: string | Date;
|
|
462
|
-
id: string;
|
|
463
|
-
name: string;
|
|
464
|
-
updatedAt: string | Date;
|
|
465
|
-
} | null | undefined;
|
|
466
466
|
}>;
|
|
467
467
|
next: z.ZodNullable<z.ZodObject<{
|
|
468
468
|
id: z.ZodString;
|
|
@@ -471,11 +471,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
471
471
|
name: z.ZodString;
|
|
472
472
|
phoneNumber: z.ZodString;
|
|
473
473
|
}, "strip", z.ZodTypeAny, {
|
|
474
|
-
phoneNumber: string;
|
|
475
474
|
name: string;
|
|
476
|
-
}, {
|
|
477
475
|
phoneNumber: string;
|
|
476
|
+
}, {
|
|
478
477
|
name: string;
|
|
478
|
+
phoneNumber: string;
|
|
479
479
|
}>>;
|
|
480
480
|
agentId: z.ZodNullable<z.ZodString>;
|
|
481
481
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -515,46 +515,47 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
515
515
|
firstName: z.ZodString;
|
|
516
516
|
lastName: z.ZodString;
|
|
517
517
|
}, "strip", z.ZodTypeAny, {
|
|
518
|
-
lastName: string;
|
|
519
|
-
firstName: string;
|
|
520
518
|
id: string;
|
|
521
|
-
}, {
|
|
522
|
-
lastName: string;
|
|
523
519
|
firstName: string;
|
|
520
|
+
lastName: string;
|
|
521
|
+
}, {
|
|
524
522
|
id: string;
|
|
523
|
+
firstName: string;
|
|
524
|
+
lastName: string;
|
|
525
525
|
}>, "many">>;
|
|
526
526
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
527
527
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
528
528
|
}, "strip", z.ZodTypeAny, {
|
|
529
|
-
lastName: string;
|
|
530
|
-
firstName: string;
|
|
531
|
-
email: string;
|
|
532
|
-
createdAt: string;
|
|
533
529
|
id: string;
|
|
530
|
+
updatedAt: string;
|
|
531
|
+
createdAt: string;
|
|
532
|
+
email: string;
|
|
533
|
+
firstName: string;
|
|
534
|
+
lastName: string;
|
|
534
535
|
phoneNumbers: {
|
|
535
536
|
id: string;
|
|
536
537
|
phoneNumber: string;
|
|
537
538
|
isPrimary: boolean;
|
|
538
539
|
description?: string | null | undefined;
|
|
539
540
|
}[];
|
|
540
|
-
|
|
541
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
541
542
|
office?: {
|
|
542
543
|
id: string;
|
|
543
544
|
name: string;
|
|
544
545
|
} | null | undefined;
|
|
545
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
546
546
|
canImpersonateUsers?: {
|
|
547
|
-
lastName: string;
|
|
548
|
-
firstName: string;
|
|
549
547
|
id: string;
|
|
548
|
+
firstName: string;
|
|
549
|
+
lastName: string;
|
|
550
550
|
}[] | undefined;
|
|
551
551
|
}, {
|
|
552
|
-
lastName: string;
|
|
553
|
-
firstName: string;
|
|
554
|
-
email: string;
|
|
555
|
-
createdAt: string | Date;
|
|
556
552
|
id: string;
|
|
557
553
|
updatedAt: string | Date;
|
|
554
|
+
createdAt: string | Date;
|
|
555
|
+
email: string;
|
|
556
|
+
firstName: string;
|
|
557
|
+
lastName: string;
|
|
558
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
558
559
|
office?: {
|
|
559
560
|
id: string;
|
|
560
561
|
name: string;
|
|
@@ -565,11 +566,10 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
565
566
|
description?: string | null | undefined;
|
|
566
567
|
isPrimary?: boolean | undefined;
|
|
567
568
|
}[] | undefined;
|
|
568
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
569
569
|
canImpersonateUsers?: {
|
|
570
|
-
lastName: string;
|
|
571
|
-
firstName: string;
|
|
572
570
|
id: string;
|
|
571
|
+
firstName: string;
|
|
572
|
+
lastName: string;
|
|
573
573
|
}[] | undefined;
|
|
574
574
|
}>>;
|
|
575
575
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -582,79 +582,86 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
582
582
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
583
583
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
584
584
|
}, "strip", z.ZodTypeAny, {
|
|
585
|
-
createdAt: string;
|
|
586
585
|
id: string;
|
|
587
586
|
name: string;
|
|
588
587
|
updatedAt: string;
|
|
588
|
+
createdAt: string;
|
|
589
589
|
}, {
|
|
590
|
-
createdAt: string | Date;
|
|
591
590
|
id: string;
|
|
592
591
|
name: string;
|
|
593
592
|
updatedAt: string | Date;
|
|
593
|
+
createdAt: string | Date;
|
|
594
594
|
}>>>;
|
|
595
595
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
596
596
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
597
597
|
}, "strip", z.ZodTypeAny, {
|
|
598
|
-
createdAt: string;
|
|
599
598
|
id: string;
|
|
600
|
-
status: LeadAssignmentStatus;
|
|
601
599
|
updatedAt: string;
|
|
600
|
+
createdAt: string;
|
|
601
|
+
status: LeadAssignmentStatus;
|
|
602
|
+
companyId: string | null;
|
|
602
603
|
agentId: string | null;
|
|
603
604
|
leadId: string;
|
|
604
605
|
assignedAt: string;
|
|
605
606
|
assignedBy: string | null;
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
email: string;
|
|
607
|
+
company?: {
|
|
608
|
+
id: string;
|
|
609
|
+
name: string;
|
|
610
|
+
updatedAt: string;
|
|
611
611
|
createdAt: string;
|
|
612
|
+
} | null | undefined;
|
|
613
|
+
agent?: {
|
|
612
614
|
id: string;
|
|
615
|
+
updatedAt: string;
|
|
616
|
+
createdAt: string;
|
|
617
|
+
email: string;
|
|
618
|
+
firstName: string;
|
|
619
|
+
lastName: string;
|
|
613
620
|
phoneNumbers: {
|
|
614
621
|
id: string;
|
|
615
622
|
phoneNumber: string;
|
|
616
623
|
isPrimary: boolean;
|
|
617
624
|
description?: string | null | undefined;
|
|
618
625
|
}[];
|
|
619
|
-
|
|
626
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
620
627
|
office?: {
|
|
621
628
|
id: string;
|
|
622
629
|
name: string;
|
|
623
630
|
} | null | undefined;
|
|
624
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
625
631
|
canImpersonateUsers?: {
|
|
626
|
-
lastName: string;
|
|
627
|
-
firstName: string;
|
|
628
632
|
id: string;
|
|
633
|
+
firstName: string;
|
|
634
|
+
lastName: string;
|
|
629
635
|
}[] | undefined;
|
|
630
636
|
} | undefined;
|
|
631
637
|
lead?: {
|
|
632
|
-
phoneNumber: string;
|
|
633
638
|
name: string;
|
|
639
|
+
phoneNumber: string;
|
|
634
640
|
} | undefined;
|
|
635
|
-
company?: {
|
|
636
|
-
createdAt: string;
|
|
637
|
-
id: string;
|
|
638
|
-
name: string;
|
|
639
|
-
updatedAt: string;
|
|
640
|
-
} | null | undefined;
|
|
641
641
|
}, {
|
|
642
|
-
createdAt: string | Date;
|
|
643
642
|
id: string;
|
|
644
|
-
status: LeadAssignmentStatus;
|
|
645
643
|
updatedAt: string | Date;
|
|
644
|
+
createdAt: string | Date;
|
|
645
|
+
status: LeadAssignmentStatus;
|
|
646
|
+
companyId: string | null;
|
|
646
647
|
agentId: string | null;
|
|
647
648
|
leadId: string;
|
|
648
649
|
assignedAt: string | Date;
|
|
649
650
|
assignedBy: string | null;
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
email: string;
|
|
651
|
+
company?: {
|
|
652
|
+
id: string;
|
|
653
|
+
name: string;
|
|
654
|
+
updatedAt: string | Date;
|
|
655
655
|
createdAt: string | Date;
|
|
656
|
+
} | null | undefined;
|
|
657
|
+
agent?: {
|
|
656
658
|
id: string;
|
|
657
659
|
updatedAt: string | Date;
|
|
660
|
+
createdAt: string | Date;
|
|
661
|
+
email: string;
|
|
662
|
+
firstName: string;
|
|
663
|
+
lastName: string;
|
|
664
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
658
665
|
office?: {
|
|
659
666
|
id: string;
|
|
660
667
|
name: string;
|
|
@@ -665,133 +672,133 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
665
672
|
description?: string | null | undefined;
|
|
666
673
|
isPrimary?: boolean | undefined;
|
|
667
674
|
}[] | undefined;
|
|
668
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
669
675
|
canImpersonateUsers?: {
|
|
670
|
-
lastName: string;
|
|
671
|
-
firstName: string;
|
|
672
676
|
id: string;
|
|
677
|
+
firstName: string;
|
|
678
|
+
lastName: string;
|
|
673
679
|
}[] | undefined;
|
|
674
680
|
} | undefined;
|
|
675
681
|
lead?: {
|
|
676
|
-
phoneNumber: string;
|
|
677
682
|
name: string;
|
|
683
|
+
phoneNumber: string;
|
|
678
684
|
} | undefined;
|
|
679
|
-
company?: {
|
|
680
|
-
createdAt: string | Date;
|
|
681
|
-
id: string;
|
|
682
|
-
name: string;
|
|
683
|
-
updatedAt: string | Date;
|
|
684
|
-
} | null | undefined;
|
|
685
685
|
}>>;
|
|
686
686
|
}, "strip", z.ZodTypeAny, {
|
|
687
687
|
completed: {
|
|
688
|
-
createdAt: string;
|
|
689
688
|
id: string;
|
|
690
|
-
status: LeadAssignmentStatus;
|
|
691
689
|
updatedAt: string;
|
|
690
|
+
createdAt: string;
|
|
691
|
+
status: LeadAssignmentStatus;
|
|
692
|
+
companyId: string | null;
|
|
692
693
|
agentId: string | null;
|
|
693
694
|
leadId: string;
|
|
694
695
|
assignedAt: string;
|
|
695
696
|
assignedBy: string | null;
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
email: string;
|
|
697
|
+
company?: {
|
|
698
|
+
id: string;
|
|
699
|
+
name: string;
|
|
700
|
+
updatedAt: string;
|
|
701
701
|
createdAt: string;
|
|
702
|
+
} | null | undefined;
|
|
703
|
+
agent?: {
|
|
702
704
|
id: string;
|
|
705
|
+
updatedAt: string;
|
|
706
|
+
createdAt: string;
|
|
707
|
+
email: string;
|
|
708
|
+
firstName: string;
|
|
709
|
+
lastName: string;
|
|
703
710
|
phoneNumbers: {
|
|
704
711
|
id: string;
|
|
705
712
|
phoneNumber: string;
|
|
706
713
|
isPrimary: boolean;
|
|
707
714
|
description?: string | null | undefined;
|
|
708
715
|
}[];
|
|
709
|
-
|
|
716
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
710
717
|
office?: {
|
|
711
718
|
id: string;
|
|
712
719
|
name: string;
|
|
713
720
|
} | null | undefined;
|
|
714
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
715
721
|
canImpersonateUsers?: {
|
|
716
|
-
lastName: string;
|
|
717
|
-
firstName: string;
|
|
718
722
|
id: string;
|
|
723
|
+
firstName: string;
|
|
724
|
+
lastName: string;
|
|
719
725
|
}[] | undefined;
|
|
720
726
|
} | undefined;
|
|
721
727
|
lead?: {
|
|
722
|
-
phoneNumber: string;
|
|
723
728
|
name: string;
|
|
729
|
+
phoneNumber: string;
|
|
724
730
|
} | undefined;
|
|
725
|
-
company?: {
|
|
726
|
-
createdAt: string;
|
|
727
|
-
id: string;
|
|
728
|
-
name: string;
|
|
729
|
-
updatedAt: string;
|
|
730
|
-
} | null | undefined;
|
|
731
731
|
};
|
|
732
732
|
next: {
|
|
733
|
-
createdAt: string;
|
|
734
733
|
id: string;
|
|
735
|
-
status: LeadAssignmentStatus;
|
|
736
734
|
updatedAt: string;
|
|
735
|
+
createdAt: string;
|
|
736
|
+
status: LeadAssignmentStatus;
|
|
737
|
+
companyId: string | null;
|
|
737
738
|
agentId: string | null;
|
|
738
739
|
leadId: string;
|
|
739
740
|
assignedAt: string;
|
|
740
741
|
assignedBy: string | null;
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
email: string;
|
|
742
|
+
company?: {
|
|
743
|
+
id: string;
|
|
744
|
+
name: string;
|
|
745
|
+
updatedAt: string;
|
|
746
746
|
createdAt: string;
|
|
747
|
+
} | null | undefined;
|
|
748
|
+
agent?: {
|
|
747
749
|
id: string;
|
|
750
|
+
updatedAt: string;
|
|
751
|
+
createdAt: string;
|
|
752
|
+
email: string;
|
|
753
|
+
firstName: string;
|
|
754
|
+
lastName: string;
|
|
748
755
|
phoneNumbers: {
|
|
749
756
|
id: string;
|
|
750
757
|
phoneNumber: string;
|
|
751
758
|
isPrimary: boolean;
|
|
752
759
|
description?: string | null | undefined;
|
|
753
760
|
}[];
|
|
754
|
-
|
|
761
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
755
762
|
office?: {
|
|
756
763
|
id: string;
|
|
757
764
|
name: string;
|
|
758
765
|
} | null | undefined;
|
|
759
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
760
766
|
canImpersonateUsers?: {
|
|
761
|
-
lastName: string;
|
|
762
|
-
firstName: string;
|
|
763
767
|
id: string;
|
|
768
|
+
firstName: string;
|
|
769
|
+
lastName: string;
|
|
764
770
|
}[] | undefined;
|
|
765
771
|
} | undefined;
|
|
766
772
|
lead?: {
|
|
767
|
-
phoneNumber: string;
|
|
768
773
|
name: string;
|
|
774
|
+
phoneNumber: string;
|
|
769
775
|
} | undefined;
|
|
770
|
-
company?: {
|
|
771
|
-
createdAt: string;
|
|
772
|
-
id: string;
|
|
773
|
-
name: string;
|
|
774
|
-
updatedAt: string;
|
|
775
|
-
} | null | undefined;
|
|
776
776
|
} | null;
|
|
777
777
|
}, {
|
|
778
778
|
completed: {
|
|
779
|
-
createdAt: string | Date;
|
|
780
779
|
id: string;
|
|
781
|
-
status: LeadAssignmentStatus;
|
|
782
780
|
updatedAt: string | Date;
|
|
781
|
+
createdAt: string | Date;
|
|
782
|
+
status: LeadAssignmentStatus;
|
|
783
|
+
companyId: string | null;
|
|
783
784
|
agentId: string | null;
|
|
784
785
|
leadId: string;
|
|
785
786
|
assignedAt: string | Date;
|
|
786
787
|
assignedBy: string | null;
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
email: string;
|
|
788
|
+
company?: {
|
|
789
|
+
id: string;
|
|
790
|
+
name: string;
|
|
791
|
+
updatedAt: string | Date;
|
|
792
792
|
createdAt: string | Date;
|
|
793
|
+
} | null | undefined;
|
|
794
|
+
agent?: {
|
|
793
795
|
id: string;
|
|
794
796
|
updatedAt: string | Date;
|
|
797
|
+
createdAt: string | Date;
|
|
798
|
+
email: string;
|
|
799
|
+
firstName: string;
|
|
800
|
+
lastName: string;
|
|
801
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
795
802
|
office?: {
|
|
796
803
|
id: string;
|
|
797
804
|
name: string;
|
|
@@ -802,41 +809,41 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
802
809
|
description?: string | null | undefined;
|
|
803
810
|
isPrimary?: boolean | undefined;
|
|
804
811
|
}[] | undefined;
|
|
805
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
806
812
|
canImpersonateUsers?: {
|
|
807
|
-
lastName: string;
|
|
808
|
-
firstName: string;
|
|
809
813
|
id: string;
|
|
814
|
+
firstName: string;
|
|
815
|
+
lastName: string;
|
|
810
816
|
}[] | undefined;
|
|
811
817
|
} | undefined;
|
|
812
818
|
lead?: {
|
|
813
|
-
phoneNumber: string;
|
|
814
819
|
name: string;
|
|
820
|
+
phoneNumber: string;
|
|
815
821
|
} | undefined;
|
|
816
|
-
company?: {
|
|
817
|
-
createdAt: string | Date;
|
|
818
|
-
id: string;
|
|
819
|
-
name: string;
|
|
820
|
-
updatedAt: string | Date;
|
|
821
|
-
} | null | undefined;
|
|
822
822
|
};
|
|
823
823
|
next: {
|
|
824
|
-
createdAt: string | Date;
|
|
825
824
|
id: string;
|
|
826
|
-
status: LeadAssignmentStatus;
|
|
827
825
|
updatedAt: string | Date;
|
|
826
|
+
createdAt: string | Date;
|
|
827
|
+
status: LeadAssignmentStatus;
|
|
828
|
+
companyId: string | null;
|
|
828
829
|
agentId: string | null;
|
|
829
830
|
leadId: string;
|
|
830
831
|
assignedAt: string | Date;
|
|
831
832
|
assignedBy: string | null;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
email: string;
|
|
833
|
+
company?: {
|
|
834
|
+
id: string;
|
|
835
|
+
name: string;
|
|
836
|
+
updatedAt: string | Date;
|
|
837
837
|
createdAt: string | Date;
|
|
838
|
+
} | null | undefined;
|
|
839
|
+
agent?: {
|
|
838
840
|
id: string;
|
|
839
841
|
updatedAt: string | Date;
|
|
842
|
+
createdAt: string | Date;
|
|
843
|
+
email: string;
|
|
844
|
+
firstName: string;
|
|
845
|
+
lastName: string;
|
|
846
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
840
847
|
office?: {
|
|
841
848
|
id: string;
|
|
842
849
|
name: string;
|
|
@@ -847,23 +854,16 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
847
854
|
description?: string | null | undefined;
|
|
848
855
|
isPrimary?: boolean | undefined;
|
|
849
856
|
}[] | undefined;
|
|
850
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
851
857
|
canImpersonateUsers?: {
|
|
852
|
-
lastName: string;
|
|
853
|
-
firstName: string;
|
|
854
858
|
id: string;
|
|
859
|
+
firstName: string;
|
|
860
|
+
lastName: string;
|
|
855
861
|
}[] | undefined;
|
|
856
862
|
} | undefined;
|
|
857
863
|
lead?: {
|
|
858
|
-
phoneNumber: string;
|
|
859
864
|
name: string;
|
|
865
|
+
phoneNumber: string;
|
|
860
866
|
} | undefined;
|
|
861
|
-
company?: {
|
|
862
|
-
createdAt: string | Date;
|
|
863
|
-
id: string;
|
|
864
|
-
name: string;
|
|
865
|
-
updatedAt: string | Date;
|
|
866
|
-
} | null | undefined;
|
|
867
867
|
} | null;
|
|
868
868
|
}>;
|
|
869
869
|
export declare const QueueStatusSchema: z.ZodObject<{
|
|
@@ -1041,11 +1041,11 @@ export declare const leadAssignmentsContract: {
|
|
|
1041
1041
|
name: z.ZodString;
|
|
1042
1042
|
phoneNumber: z.ZodString;
|
|
1043
1043
|
}, "strip", z.ZodTypeAny, {
|
|
1044
|
-
phoneNumber: string;
|
|
1045
1044
|
name: string;
|
|
1046
|
-
}, {
|
|
1047
1045
|
phoneNumber: string;
|
|
1046
|
+
}, {
|
|
1048
1047
|
name: string;
|
|
1048
|
+
phoneNumber: string;
|
|
1049
1049
|
}>>;
|
|
1050
1050
|
agentId: z.ZodNullable<z.ZodString>;
|
|
1051
1051
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1085,46 +1085,47 @@ export declare const leadAssignmentsContract: {
|
|
|
1085
1085
|
firstName: z.ZodString;
|
|
1086
1086
|
lastName: z.ZodString;
|
|
1087
1087
|
}, "strip", z.ZodTypeAny, {
|
|
1088
|
-
lastName: string;
|
|
1089
|
-
firstName: string;
|
|
1090
1088
|
id: string;
|
|
1091
|
-
}, {
|
|
1092
|
-
lastName: string;
|
|
1093
1089
|
firstName: string;
|
|
1090
|
+
lastName: string;
|
|
1091
|
+
}, {
|
|
1094
1092
|
id: string;
|
|
1093
|
+
firstName: string;
|
|
1094
|
+
lastName: string;
|
|
1095
1095
|
}>, "many">>;
|
|
1096
1096
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1097
1097
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1098
1098
|
}, "strip", z.ZodTypeAny, {
|
|
1099
|
-
lastName: string;
|
|
1100
|
-
firstName: string;
|
|
1101
|
-
email: string;
|
|
1102
|
-
createdAt: string;
|
|
1103
1099
|
id: string;
|
|
1100
|
+
updatedAt: string;
|
|
1101
|
+
createdAt: string;
|
|
1102
|
+
email: string;
|
|
1103
|
+
firstName: string;
|
|
1104
|
+
lastName: string;
|
|
1104
1105
|
phoneNumbers: {
|
|
1105
1106
|
id: string;
|
|
1106
1107
|
phoneNumber: string;
|
|
1107
1108
|
isPrimary: boolean;
|
|
1108
1109
|
description?: string | null | undefined;
|
|
1109
1110
|
}[];
|
|
1110
|
-
|
|
1111
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1111
1112
|
office?: {
|
|
1112
1113
|
id: string;
|
|
1113
1114
|
name: string;
|
|
1114
1115
|
} | null | undefined;
|
|
1115
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1116
1116
|
canImpersonateUsers?: {
|
|
1117
|
-
lastName: string;
|
|
1118
|
-
firstName: string;
|
|
1119
1117
|
id: string;
|
|
1118
|
+
firstName: string;
|
|
1119
|
+
lastName: string;
|
|
1120
1120
|
}[] | undefined;
|
|
1121
1121
|
}, {
|
|
1122
|
-
lastName: string;
|
|
1123
|
-
firstName: string;
|
|
1124
|
-
email: string;
|
|
1125
|
-
createdAt: string | Date;
|
|
1126
1122
|
id: string;
|
|
1127
1123
|
updatedAt: string | Date;
|
|
1124
|
+
createdAt: string | Date;
|
|
1125
|
+
email: string;
|
|
1126
|
+
firstName: string;
|
|
1127
|
+
lastName: string;
|
|
1128
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1128
1129
|
office?: {
|
|
1129
1130
|
id: string;
|
|
1130
1131
|
name: string;
|
|
@@ -1135,11 +1136,10 @@ export declare const leadAssignmentsContract: {
|
|
|
1135
1136
|
description?: string | null | undefined;
|
|
1136
1137
|
isPrimary?: boolean | undefined;
|
|
1137
1138
|
}[] | undefined;
|
|
1138
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1139
1139
|
canImpersonateUsers?: {
|
|
1140
|
-
lastName: string;
|
|
1141
|
-
firstName: string;
|
|
1142
1140
|
id: string;
|
|
1141
|
+
firstName: string;
|
|
1142
|
+
lastName: string;
|
|
1143
1143
|
}[] | undefined;
|
|
1144
1144
|
}>>;
|
|
1145
1145
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1152,79 +1152,86 @@ export declare const leadAssignmentsContract: {
|
|
|
1152
1152
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1153
1153
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1154
1154
|
}, "strip", z.ZodTypeAny, {
|
|
1155
|
-
createdAt: string;
|
|
1156
1155
|
id: string;
|
|
1157
1156
|
name: string;
|
|
1158
1157
|
updatedAt: string;
|
|
1158
|
+
createdAt: string;
|
|
1159
1159
|
}, {
|
|
1160
|
-
createdAt: string | Date;
|
|
1161
1160
|
id: string;
|
|
1162
1161
|
name: string;
|
|
1163
1162
|
updatedAt: string | Date;
|
|
1163
|
+
createdAt: string | Date;
|
|
1164
1164
|
}>>>;
|
|
1165
1165
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1166
1166
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1167
1167
|
}, "strip", z.ZodTypeAny, {
|
|
1168
|
-
createdAt: string;
|
|
1169
1168
|
id: string;
|
|
1170
|
-
status: LeadAssignmentStatus;
|
|
1171
1169
|
updatedAt: string;
|
|
1170
|
+
createdAt: string;
|
|
1171
|
+
status: LeadAssignmentStatus;
|
|
1172
|
+
companyId: string | null;
|
|
1172
1173
|
agentId: string | null;
|
|
1173
1174
|
leadId: string;
|
|
1174
1175
|
assignedAt: string;
|
|
1175
1176
|
assignedBy: string | null;
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
email: string;
|
|
1177
|
+
company?: {
|
|
1178
|
+
id: string;
|
|
1179
|
+
name: string;
|
|
1180
|
+
updatedAt: string;
|
|
1181
1181
|
createdAt: string;
|
|
1182
|
+
} | null | undefined;
|
|
1183
|
+
agent?: {
|
|
1182
1184
|
id: string;
|
|
1185
|
+
updatedAt: string;
|
|
1186
|
+
createdAt: string;
|
|
1187
|
+
email: string;
|
|
1188
|
+
firstName: string;
|
|
1189
|
+
lastName: string;
|
|
1183
1190
|
phoneNumbers: {
|
|
1184
1191
|
id: string;
|
|
1185
1192
|
phoneNumber: string;
|
|
1186
1193
|
isPrimary: boolean;
|
|
1187
1194
|
description?: string | null | undefined;
|
|
1188
1195
|
}[];
|
|
1189
|
-
|
|
1196
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1190
1197
|
office?: {
|
|
1191
1198
|
id: string;
|
|
1192
1199
|
name: string;
|
|
1193
1200
|
} | null | undefined;
|
|
1194
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1195
1201
|
canImpersonateUsers?: {
|
|
1196
|
-
lastName: string;
|
|
1197
|
-
firstName: string;
|
|
1198
1202
|
id: string;
|
|
1203
|
+
firstName: string;
|
|
1204
|
+
lastName: string;
|
|
1199
1205
|
}[] | undefined;
|
|
1200
1206
|
} | undefined;
|
|
1201
1207
|
lead?: {
|
|
1202
|
-
phoneNumber: string;
|
|
1203
1208
|
name: string;
|
|
1209
|
+
phoneNumber: string;
|
|
1204
1210
|
} | undefined;
|
|
1205
|
-
company?: {
|
|
1206
|
-
createdAt: string;
|
|
1207
|
-
id: string;
|
|
1208
|
-
name: string;
|
|
1209
|
-
updatedAt: string;
|
|
1210
|
-
} | null | undefined;
|
|
1211
1211
|
}, {
|
|
1212
|
-
createdAt: string | Date;
|
|
1213
1212
|
id: string;
|
|
1214
|
-
status: LeadAssignmentStatus;
|
|
1215
1213
|
updatedAt: string | Date;
|
|
1214
|
+
createdAt: string | Date;
|
|
1215
|
+
status: LeadAssignmentStatus;
|
|
1216
|
+
companyId: string | null;
|
|
1216
1217
|
agentId: string | null;
|
|
1217
1218
|
leadId: string;
|
|
1218
1219
|
assignedAt: string | Date;
|
|
1219
1220
|
assignedBy: string | null;
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
email: string;
|
|
1221
|
+
company?: {
|
|
1222
|
+
id: string;
|
|
1223
|
+
name: string;
|
|
1224
|
+
updatedAt: string | Date;
|
|
1225
1225
|
createdAt: string | Date;
|
|
1226
|
+
} | null | undefined;
|
|
1227
|
+
agent?: {
|
|
1226
1228
|
id: string;
|
|
1227
1229
|
updatedAt: string | Date;
|
|
1230
|
+
createdAt: string | Date;
|
|
1231
|
+
email: string;
|
|
1232
|
+
firstName: string;
|
|
1233
|
+
lastName: string;
|
|
1234
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1228
1235
|
office?: {
|
|
1229
1236
|
id: string;
|
|
1230
1237
|
name: string;
|
|
@@ -1235,23 +1242,16 @@ export declare const leadAssignmentsContract: {
|
|
|
1235
1242
|
description?: string | null | undefined;
|
|
1236
1243
|
isPrimary?: boolean | undefined;
|
|
1237
1244
|
}[] | undefined;
|
|
1238
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1239
1245
|
canImpersonateUsers?: {
|
|
1240
|
-
lastName: string;
|
|
1241
|
-
firstName: string;
|
|
1242
1246
|
id: string;
|
|
1247
|
+
firstName: string;
|
|
1248
|
+
lastName: string;
|
|
1243
1249
|
}[] | undefined;
|
|
1244
1250
|
} | undefined;
|
|
1245
1251
|
lead?: {
|
|
1246
|
-
phoneNumber: string;
|
|
1247
1252
|
name: string;
|
|
1253
|
+
phoneNumber: string;
|
|
1248
1254
|
} | undefined;
|
|
1249
|
-
company?: {
|
|
1250
|
-
createdAt: string | Date;
|
|
1251
|
-
id: string;
|
|
1252
|
-
name: string;
|
|
1253
|
-
updatedAt: string | Date;
|
|
1254
|
-
} | null | undefined;
|
|
1255
1255
|
}>;
|
|
1256
1256
|
next: z.ZodNullable<z.ZodObject<{
|
|
1257
1257
|
id: z.ZodString;
|
|
@@ -1260,11 +1260,11 @@ export declare const leadAssignmentsContract: {
|
|
|
1260
1260
|
name: z.ZodString;
|
|
1261
1261
|
phoneNumber: z.ZodString;
|
|
1262
1262
|
}, "strip", z.ZodTypeAny, {
|
|
1263
|
-
phoneNumber: string;
|
|
1264
1263
|
name: string;
|
|
1265
|
-
}, {
|
|
1266
1264
|
phoneNumber: string;
|
|
1265
|
+
}, {
|
|
1267
1266
|
name: string;
|
|
1267
|
+
phoneNumber: string;
|
|
1268
1268
|
}>>;
|
|
1269
1269
|
agentId: z.ZodNullable<z.ZodString>;
|
|
1270
1270
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1304,46 +1304,47 @@ export declare const leadAssignmentsContract: {
|
|
|
1304
1304
|
firstName: z.ZodString;
|
|
1305
1305
|
lastName: z.ZodString;
|
|
1306
1306
|
}, "strip", z.ZodTypeAny, {
|
|
1307
|
-
lastName: string;
|
|
1308
|
-
firstName: string;
|
|
1309
1307
|
id: string;
|
|
1310
|
-
}, {
|
|
1311
|
-
lastName: string;
|
|
1312
1308
|
firstName: string;
|
|
1309
|
+
lastName: string;
|
|
1310
|
+
}, {
|
|
1313
1311
|
id: string;
|
|
1312
|
+
firstName: string;
|
|
1313
|
+
lastName: string;
|
|
1314
1314
|
}>, "many">>;
|
|
1315
1315
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1316
1316
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1317
1317
|
}, "strip", z.ZodTypeAny, {
|
|
1318
|
-
lastName: string;
|
|
1319
|
-
firstName: string;
|
|
1320
|
-
email: string;
|
|
1321
|
-
createdAt: string;
|
|
1322
1318
|
id: string;
|
|
1319
|
+
updatedAt: string;
|
|
1320
|
+
createdAt: string;
|
|
1321
|
+
email: string;
|
|
1322
|
+
firstName: string;
|
|
1323
|
+
lastName: string;
|
|
1323
1324
|
phoneNumbers: {
|
|
1324
1325
|
id: string;
|
|
1325
1326
|
phoneNumber: string;
|
|
1326
1327
|
isPrimary: boolean;
|
|
1327
1328
|
description?: string | null | undefined;
|
|
1328
1329
|
}[];
|
|
1329
|
-
|
|
1330
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1330
1331
|
office?: {
|
|
1331
1332
|
id: string;
|
|
1332
1333
|
name: string;
|
|
1333
1334
|
} | null | undefined;
|
|
1334
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1335
1335
|
canImpersonateUsers?: {
|
|
1336
|
-
lastName: string;
|
|
1337
|
-
firstName: string;
|
|
1338
1336
|
id: string;
|
|
1337
|
+
firstName: string;
|
|
1338
|
+
lastName: string;
|
|
1339
1339
|
}[] | undefined;
|
|
1340
1340
|
}, {
|
|
1341
|
-
lastName: string;
|
|
1342
|
-
firstName: string;
|
|
1343
|
-
email: string;
|
|
1344
|
-
createdAt: string | Date;
|
|
1345
1341
|
id: string;
|
|
1346
1342
|
updatedAt: string | Date;
|
|
1343
|
+
createdAt: string | Date;
|
|
1344
|
+
email: string;
|
|
1345
|
+
firstName: string;
|
|
1346
|
+
lastName: string;
|
|
1347
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1347
1348
|
office?: {
|
|
1348
1349
|
id: string;
|
|
1349
1350
|
name: string;
|
|
@@ -1354,11 +1355,10 @@ export declare const leadAssignmentsContract: {
|
|
|
1354
1355
|
description?: string | null | undefined;
|
|
1355
1356
|
isPrimary?: boolean | undefined;
|
|
1356
1357
|
}[] | undefined;
|
|
1357
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1358
1358
|
canImpersonateUsers?: {
|
|
1359
|
-
lastName: string;
|
|
1360
|
-
firstName: string;
|
|
1361
1359
|
id: string;
|
|
1360
|
+
firstName: string;
|
|
1361
|
+
lastName: string;
|
|
1362
1362
|
}[] | undefined;
|
|
1363
1363
|
}>>;
|
|
1364
1364
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1371,79 +1371,86 @@ export declare const leadAssignmentsContract: {
|
|
|
1371
1371
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1372
1372
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1373
1373
|
}, "strip", z.ZodTypeAny, {
|
|
1374
|
-
createdAt: string;
|
|
1375
1374
|
id: string;
|
|
1376
1375
|
name: string;
|
|
1377
1376
|
updatedAt: string;
|
|
1377
|
+
createdAt: string;
|
|
1378
1378
|
}, {
|
|
1379
|
-
createdAt: string | Date;
|
|
1380
1379
|
id: string;
|
|
1381
1380
|
name: string;
|
|
1382
1381
|
updatedAt: string | Date;
|
|
1382
|
+
createdAt: string | Date;
|
|
1383
1383
|
}>>>;
|
|
1384
1384
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1385
1385
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1386
1386
|
}, "strip", z.ZodTypeAny, {
|
|
1387
|
-
createdAt: string;
|
|
1388
1387
|
id: string;
|
|
1389
|
-
status: LeadAssignmentStatus;
|
|
1390
1388
|
updatedAt: string;
|
|
1389
|
+
createdAt: string;
|
|
1390
|
+
status: LeadAssignmentStatus;
|
|
1391
|
+
companyId: string | null;
|
|
1391
1392
|
agentId: string | null;
|
|
1392
1393
|
leadId: string;
|
|
1393
1394
|
assignedAt: string;
|
|
1394
1395
|
assignedBy: string | null;
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
email: string;
|
|
1396
|
+
company?: {
|
|
1397
|
+
id: string;
|
|
1398
|
+
name: string;
|
|
1399
|
+
updatedAt: string;
|
|
1400
1400
|
createdAt: string;
|
|
1401
|
+
} | null | undefined;
|
|
1402
|
+
agent?: {
|
|
1401
1403
|
id: string;
|
|
1404
|
+
updatedAt: string;
|
|
1405
|
+
createdAt: string;
|
|
1406
|
+
email: string;
|
|
1407
|
+
firstName: string;
|
|
1408
|
+
lastName: string;
|
|
1402
1409
|
phoneNumbers: {
|
|
1403
1410
|
id: string;
|
|
1404
1411
|
phoneNumber: string;
|
|
1405
1412
|
isPrimary: boolean;
|
|
1406
1413
|
description?: string | null | undefined;
|
|
1407
1414
|
}[];
|
|
1408
|
-
|
|
1415
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1409
1416
|
office?: {
|
|
1410
1417
|
id: string;
|
|
1411
1418
|
name: string;
|
|
1412
1419
|
} | null | undefined;
|
|
1413
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1414
1420
|
canImpersonateUsers?: {
|
|
1415
|
-
lastName: string;
|
|
1416
|
-
firstName: string;
|
|
1417
1421
|
id: string;
|
|
1422
|
+
firstName: string;
|
|
1423
|
+
lastName: string;
|
|
1418
1424
|
}[] | undefined;
|
|
1419
1425
|
} | undefined;
|
|
1420
1426
|
lead?: {
|
|
1421
|
-
phoneNumber: string;
|
|
1422
1427
|
name: string;
|
|
1428
|
+
phoneNumber: string;
|
|
1423
1429
|
} | undefined;
|
|
1424
|
-
company?: {
|
|
1425
|
-
createdAt: string;
|
|
1426
|
-
id: string;
|
|
1427
|
-
name: string;
|
|
1428
|
-
updatedAt: string;
|
|
1429
|
-
} | null | undefined;
|
|
1430
1430
|
}, {
|
|
1431
|
-
createdAt: string | Date;
|
|
1432
1431
|
id: string;
|
|
1433
|
-
status: LeadAssignmentStatus;
|
|
1434
1432
|
updatedAt: string | Date;
|
|
1433
|
+
createdAt: string | Date;
|
|
1434
|
+
status: LeadAssignmentStatus;
|
|
1435
|
+
companyId: string | null;
|
|
1435
1436
|
agentId: string | null;
|
|
1436
1437
|
leadId: string;
|
|
1437
1438
|
assignedAt: string | Date;
|
|
1438
1439
|
assignedBy: string | null;
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
email: string;
|
|
1440
|
+
company?: {
|
|
1441
|
+
id: string;
|
|
1442
|
+
name: string;
|
|
1443
|
+
updatedAt: string | Date;
|
|
1444
1444
|
createdAt: string | Date;
|
|
1445
|
+
} | null | undefined;
|
|
1446
|
+
agent?: {
|
|
1445
1447
|
id: string;
|
|
1446
1448
|
updatedAt: string | Date;
|
|
1449
|
+
createdAt: string | Date;
|
|
1450
|
+
email: string;
|
|
1451
|
+
firstName: string;
|
|
1452
|
+
lastName: string;
|
|
1453
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1447
1454
|
office?: {
|
|
1448
1455
|
id: string;
|
|
1449
1456
|
name: string;
|
|
@@ -1454,133 +1461,133 @@ export declare const leadAssignmentsContract: {
|
|
|
1454
1461
|
description?: string | null | undefined;
|
|
1455
1462
|
isPrimary?: boolean | undefined;
|
|
1456
1463
|
}[] | undefined;
|
|
1457
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1458
1464
|
canImpersonateUsers?: {
|
|
1459
|
-
lastName: string;
|
|
1460
|
-
firstName: string;
|
|
1461
1465
|
id: string;
|
|
1466
|
+
firstName: string;
|
|
1467
|
+
lastName: string;
|
|
1462
1468
|
}[] | undefined;
|
|
1463
1469
|
} | undefined;
|
|
1464
1470
|
lead?: {
|
|
1465
|
-
phoneNumber: string;
|
|
1466
1471
|
name: string;
|
|
1472
|
+
phoneNumber: string;
|
|
1467
1473
|
} | undefined;
|
|
1468
|
-
company?: {
|
|
1469
|
-
createdAt: string | Date;
|
|
1470
|
-
id: string;
|
|
1471
|
-
name: string;
|
|
1472
|
-
updatedAt: string | Date;
|
|
1473
|
-
} | null | undefined;
|
|
1474
1474
|
}>>;
|
|
1475
1475
|
}, "strip", z.ZodTypeAny, {
|
|
1476
1476
|
completed: {
|
|
1477
|
-
createdAt: string;
|
|
1478
1477
|
id: string;
|
|
1479
|
-
status: LeadAssignmentStatus;
|
|
1480
1478
|
updatedAt: string;
|
|
1479
|
+
createdAt: string;
|
|
1480
|
+
status: LeadAssignmentStatus;
|
|
1481
|
+
companyId: string | null;
|
|
1481
1482
|
agentId: string | null;
|
|
1482
1483
|
leadId: string;
|
|
1483
1484
|
assignedAt: string;
|
|
1484
1485
|
assignedBy: string | null;
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
email: string;
|
|
1486
|
+
company?: {
|
|
1487
|
+
id: string;
|
|
1488
|
+
name: string;
|
|
1489
|
+
updatedAt: string;
|
|
1490
1490
|
createdAt: string;
|
|
1491
|
+
} | null | undefined;
|
|
1492
|
+
agent?: {
|
|
1491
1493
|
id: string;
|
|
1494
|
+
updatedAt: string;
|
|
1495
|
+
createdAt: string;
|
|
1496
|
+
email: string;
|
|
1497
|
+
firstName: string;
|
|
1498
|
+
lastName: string;
|
|
1492
1499
|
phoneNumbers: {
|
|
1493
1500
|
id: string;
|
|
1494
1501
|
phoneNumber: string;
|
|
1495
1502
|
isPrimary: boolean;
|
|
1496
1503
|
description?: string | null | undefined;
|
|
1497
1504
|
}[];
|
|
1498
|
-
|
|
1505
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1499
1506
|
office?: {
|
|
1500
1507
|
id: string;
|
|
1501
1508
|
name: string;
|
|
1502
1509
|
} | null | undefined;
|
|
1503
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1504
1510
|
canImpersonateUsers?: {
|
|
1505
|
-
lastName: string;
|
|
1506
|
-
firstName: string;
|
|
1507
1511
|
id: string;
|
|
1512
|
+
firstName: string;
|
|
1513
|
+
lastName: string;
|
|
1508
1514
|
}[] | undefined;
|
|
1509
1515
|
} | undefined;
|
|
1510
1516
|
lead?: {
|
|
1511
|
-
phoneNumber: string;
|
|
1512
1517
|
name: string;
|
|
1518
|
+
phoneNumber: string;
|
|
1513
1519
|
} | undefined;
|
|
1514
|
-
company?: {
|
|
1515
|
-
createdAt: string;
|
|
1516
|
-
id: string;
|
|
1517
|
-
name: string;
|
|
1518
|
-
updatedAt: string;
|
|
1519
|
-
} | null | undefined;
|
|
1520
1520
|
};
|
|
1521
1521
|
next: {
|
|
1522
|
-
createdAt: string;
|
|
1523
1522
|
id: string;
|
|
1524
|
-
status: LeadAssignmentStatus;
|
|
1525
1523
|
updatedAt: string;
|
|
1524
|
+
createdAt: string;
|
|
1525
|
+
status: LeadAssignmentStatus;
|
|
1526
|
+
companyId: string | null;
|
|
1526
1527
|
agentId: string | null;
|
|
1527
1528
|
leadId: string;
|
|
1528
1529
|
assignedAt: string;
|
|
1529
1530
|
assignedBy: string | null;
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
email: string;
|
|
1531
|
+
company?: {
|
|
1532
|
+
id: string;
|
|
1533
|
+
name: string;
|
|
1534
|
+
updatedAt: string;
|
|
1535
1535
|
createdAt: string;
|
|
1536
|
+
} | null | undefined;
|
|
1537
|
+
agent?: {
|
|
1536
1538
|
id: string;
|
|
1539
|
+
updatedAt: string;
|
|
1540
|
+
createdAt: string;
|
|
1541
|
+
email: string;
|
|
1542
|
+
firstName: string;
|
|
1543
|
+
lastName: string;
|
|
1537
1544
|
phoneNumbers: {
|
|
1538
1545
|
id: string;
|
|
1539
1546
|
phoneNumber: string;
|
|
1540
1547
|
isPrimary: boolean;
|
|
1541
1548
|
description?: string | null | undefined;
|
|
1542
1549
|
}[];
|
|
1543
|
-
|
|
1550
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1544
1551
|
office?: {
|
|
1545
1552
|
id: string;
|
|
1546
1553
|
name: string;
|
|
1547
1554
|
} | null | undefined;
|
|
1548
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1549
1555
|
canImpersonateUsers?: {
|
|
1550
|
-
lastName: string;
|
|
1551
|
-
firstName: string;
|
|
1552
1556
|
id: string;
|
|
1557
|
+
firstName: string;
|
|
1558
|
+
lastName: string;
|
|
1553
1559
|
}[] | undefined;
|
|
1554
1560
|
} | undefined;
|
|
1555
1561
|
lead?: {
|
|
1556
|
-
phoneNumber: string;
|
|
1557
1562
|
name: string;
|
|
1563
|
+
phoneNumber: string;
|
|
1558
1564
|
} | undefined;
|
|
1559
|
-
company?: {
|
|
1560
|
-
createdAt: string;
|
|
1561
|
-
id: string;
|
|
1562
|
-
name: string;
|
|
1563
|
-
updatedAt: string;
|
|
1564
|
-
} | null | undefined;
|
|
1565
1565
|
} | null;
|
|
1566
1566
|
}, {
|
|
1567
1567
|
completed: {
|
|
1568
|
-
createdAt: string | Date;
|
|
1569
1568
|
id: string;
|
|
1570
|
-
status: LeadAssignmentStatus;
|
|
1571
1569
|
updatedAt: string | Date;
|
|
1570
|
+
createdAt: string | Date;
|
|
1571
|
+
status: LeadAssignmentStatus;
|
|
1572
|
+
companyId: string | null;
|
|
1572
1573
|
agentId: string | null;
|
|
1573
1574
|
leadId: string;
|
|
1574
1575
|
assignedAt: string | Date;
|
|
1575
1576
|
assignedBy: string | null;
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
email: string;
|
|
1577
|
+
company?: {
|
|
1578
|
+
id: string;
|
|
1579
|
+
name: string;
|
|
1580
|
+
updatedAt: string | Date;
|
|
1581
1581
|
createdAt: string | Date;
|
|
1582
|
+
} | null | undefined;
|
|
1583
|
+
agent?: {
|
|
1582
1584
|
id: string;
|
|
1583
1585
|
updatedAt: string | Date;
|
|
1586
|
+
createdAt: string | Date;
|
|
1587
|
+
email: string;
|
|
1588
|
+
firstName: string;
|
|
1589
|
+
lastName: string;
|
|
1590
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1584
1591
|
office?: {
|
|
1585
1592
|
id: string;
|
|
1586
1593
|
name: string;
|
|
@@ -1591,41 +1598,41 @@ export declare const leadAssignmentsContract: {
|
|
|
1591
1598
|
description?: string | null | undefined;
|
|
1592
1599
|
isPrimary?: boolean | undefined;
|
|
1593
1600
|
}[] | undefined;
|
|
1594
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1595
1601
|
canImpersonateUsers?: {
|
|
1596
|
-
lastName: string;
|
|
1597
|
-
firstName: string;
|
|
1598
1602
|
id: string;
|
|
1603
|
+
firstName: string;
|
|
1604
|
+
lastName: string;
|
|
1599
1605
|
}[] | undefined;
|
|
1600
1606
|
} | undefined;
|
|
1601
1607
|
lead?: {
|
|
1602
|
-
phoneNumber: string;
|
|
1603
1608
|
name: string;
|
|
1609
|
+
phoneNumber: string;
|
|
1604
1610
|
} | undefined;
|
|
1605
|
-
company?: {
|
|
1606
|
-
createdAt: string | Date;
|
|
1607
|
-
id: string;
|
|
1608
|
-
name: string;
|
|
1609
|
-
updatedAt: string | Date;
|
|
1610
|
-
} | null | undefined;
|
|
1611
1611
|
};
|
|
1612
1612
|
next: {
|
|
1613
|
-
createdAt: string | Date;
|
|
1614
1613
|
id: string;
|
|
1615
|
-
status: LeadAssignmentStatus;
|
|
1616
1614
|
updatedAt: string | Date;
|
|
1615
|
+
createdAt: string | Date;
|
|
1616
|
+
status: LeadAssignmentStatus;
|
|
1617
|
+
companyId: string | null;
|
|
1617
1618
|
agentId: string | null;
|
|
1618
1619
|
leadId: string;
|
|
1619
1620
|
assignedAt: string | Date;
|
|
1620
1621
|
assignedBy: string | null;
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
email: string;
|
|
1622
|
+
company?: {
|
|
1623
|
+
id: string;
|
|
1624
|
+
name: string;
|
|
1625
|
+
updatedAt: string | Date;
|
|
1626
1626
|
createdAt: string | Date;
|
|
1627
|
+
} | null | undefined;
|
|
1628
|
+
agent?: {
|
|
1627
1629
|
id: string;
|
|
1628
1630
|
updatedAt: string | Date;
|
|
1631
|
+
createdAt: string | Date;
|
|
1632
|
+
email: string;
|
|
1633
|
+
firstName: string;
|
|
1634
|
+
lastName: string;
|
|
1635
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1629
1636
|
office?: {
|
|
1630
1637
|
id: string;
|
|
1631
1638
|
name: string;
|
|
@@ -1636,23 +1643,16 @@ export declare const leadAssignmentsContract: {
|
|
|
1636
1643
|
description?: string | null | undefined;
|
|
1637
1644
|
isPrimary?: boolean | undefined;
|
|
1638
1645
|
}[] | undefined;
|
|
1639
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1640
1646
|
canImpersonateUsers?: {
|
|
1641
|
-
lastName: string;
|
|
1642
|
-
firstName: string;
|
|
1643
1647
|
id: string;
|
|
1648
|
+
firstName: string;
|
|
1649
|
+
lastName: string;
|
|
1644
1650
|
}[] | undefined;
|
|
1645
1651
|
} | undefined;
|
|
1646
1652
|
lead?: {
|
|
1647
|
-
phoneNumber: string;
|
|
1648
1653
|
name: string;
|
|
1654
|
+
phoneNumber: string;
|
|
1649
1655
|
} | undefined;
|
|
1650
|
-
company?: {
|
|
1651
|
-
createdAt: string | Date;
|
|
1652
|
-
id: string;
|
|
1653
|
-
name: string;
|
|
1654
|
-
updatedAt: string | Date;
|
|
1655
|
-
} | null | undefined;
|
|
1656
1656
|
} | null;
|
|
1657
1657
|
}>>;
|
|
1658
1658
|
404: z.ZodObject<{
|
|
@@ -1797,11 +1797,11 @@ export declare const leadAssignmentsContract: {
|
|
|
1797
1797
|
name: z.ZodString;
|
|
1798
1798
|
phoneNumber: z.ZodString;
|
|
1799
1799
|
}, "strip", z.ZodTypeAny, {
|
|
1800
|
-
phoneNumber: string;
|
|
1801
1800
|
name: string;
|
|
1802
|
-
}, {
|
|
1803
1801
|
phoneNumber: string;
|
|
1802
|
+
}, {
|
|
1804
1803
|
name: string;
|
|
1804
|
+
phoneNumber: string;
|
|
1805
1805
|
}>>;
|
|
1806
1806
|
agentId: z.ZodNullable<z.ZodString>;
|
|
1807
1807
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1841,46 +1841,47 @@ export declare const leadAssignmentsContract: {
|
|
|
1841
1841
|
firstName: z.ZodString;
|
|
1842
1842
|
lastName: z.ZodString;
|
|
1843
1843
|
}, "strip", z.ZodTypeAny, {
|
|
1844
|
-
lastName: string;
|
|
1845
|
-
firstName: string;
|
|
1846
1844
|
id: string;
|
|
1847
|
-
}, {
|
|
1848
|
-
lastName: string;
|
|
1849
1845
|
firstName: string;
|
|
1846
|
+
lastName: string;
|
|
1847
|
+
}, {
|
|
1850
1848
|
id: string;
|
|
1849
|
+
firstName: string;
|
|
1850
|
+
lastName: string;
|
|
1851
1851
|
}>, "many">>;
|
|
1852
1852
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1853
1853
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1854
1854
|
}, "strip", z.ZodTypeAny, {
|
|
1855
|
-
lastName: string;
|
|
1856
|
-
firstName: string;
|
|
1857
|
-
email: string;
|
|
1858
|
-
createdAt: string;
|
|
1859
1855
|
id: string;
|
|
1856
|
+
updatedAt: string;
|
|
1857
|
+
createdAt: string;
|
|
1858
|
+
email: string;
|
|
1859
|
+
firstName: string;
|
|
1860
|
+
lastName: string;
|
|
1860
1861
|
phoneNumbers: {
|
|
1861
1862
|
id: string;
|
|
1862
1863
|
phoneNumber: string;
|
|
1863
1864
|
isPrimary: boolean;
|
|
1864
1865
|
description?: string | null | undefined;
|
|
1865
1866
|
}[];
|
|
1866
|
-
|
|
1867
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1867
1868
|
office?: {
|
|
1868
1869
|
id: string;
|
|
1869
1870
|
name: string;
|
|
1870
1871
|
} | null | undefined;
|
|
1871
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1872
1872
|
canImpersonateUsers?: {
|
|
1873
|
-
lastName: string;
|
|
1874
|
-
firstName: string;
|
|
1875
1873
|
id: string;
|
|
1874
|
+
firstName: string;
|
|
1875
|
+
lastName: string;
|
|
1876
1876
|
}[] | undefined;
|
|
1877
1877
|
}, {
|
|
1878
|
-
lastName: string;
|
|
1879
|
-
firstName: string;
|
|
1880
|
-
email: string;
|
|
1881
|
-
createdAt: string | Date;
|
|
1882
1878
|
id: string;
|
|
1883
1879
|
updatedAt: string | Date;
|
|
1880
|
+
createdAt: string | Date;
|
|
1881
|
+
email: string;
|
|
1882
|
+
firstName: string;
|
|
1883
|
+
lastName: string;
|
|
1884
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1884
1885
|
office?: {
|
|
1885
1886
|
id: string;
|
|
1886
1887
|
name: string;
|
|
@@ -1891,11 +1892,10 @@ export declare const leadAssignmentsContract: {
|
|
|
1891
1892
|
description?: string | null | undefined;
|
|
1892
1893
|
isPrimary?: boolean | undefined;
|
|
1893
1894
|
}[] | undefined;
|
|
1894
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1895
1895
|
canImpersonateUsers?: {
|
|
1896
|
-
lastName: string;
|
|
1897
|
-
firstName: string;
|
|
1898
1896
|
id: string;
|
|
1897
|
+
firstName: string;
|
|
1898
|
+
lastName: string;
|
|
1899
1899
|
}[] | undefined;
|
|
1900
1900
|
}>>;
|
|
1901
1901
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1908,79 +1908,86 @@ export declare const leadAssignmentsContract: {
|
|
|
1908
1908
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1909
1909
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1910
1910
|
}, "strip", z.ZodTypeAny, {
|
|
1911
|
-
createdAt: string;
|
|
1912
1911
|
id: string;
|
|
1913
1912
|
name: string;
|
|
1914
1913
|
updatedAt: string;
|
|
1914
|
+
createdAt: string;
|
|
1915
1915
|
}, {
|
|
1916
|
-
createdAt: string | Date;
|
|
1917
1916
|
id: string;
|
|
1918
1917
|
name: string;
|
|
1919
1918
|
updatedAt: string | Date;
|
|
1919
|
+
createdAt: string | Date;
|
|
1920
1920
|
}>>>;
|
|
1921
1921
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1922
1922
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1923
1923
|
}, "strip", z.ZodTypeAny, {
|
|
1924
|
-
createdAt: string;
|
|
1925
1924
|
id: string;
|
|
1926
|
-
status: LeadAssignmentStatus;
|
|
1927
1925
|
updatedAt: string;
|
|
1926
|
+
createdAt: string;
|
|
1927
|
+
status: LeadAssignmentStatus;
|
|
1928
|
+
companyId: string | null;
|
|
1928
1929
|
agentId: string | null;
|
|
1929
1930
|
leadId: string;
|
|
1930
1931
|
assignedAt: string;
|
|
1931
1932
|
assignedBy: string | null;
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
email: string;
|
|
1933
|
+
company?: {
|
|
1934
|
+
id: string;
|
|
1935
|
+
name: string;
|
|
1936
|
+
updatedAt: string;
|
|
1937
1937
|
createdAt: string;
|
|
1938
|
+
} | null | undefined;
|
|
1939
|
+
agent?: {
|
|
1938
1940
|
id: string;
|
|
1941
|
+
updatedAt: string;
|
|
1942
|
+
createdAt: string;
|
|
1943
|
+
email: string;
|
|
1944
|
+
firstName: string;
|
|
1945
|
+
lastName: string;
|
|
1939
1946
|
phoneNumbers: {
|
|
1940
1947
|
id: string;
|
|
1941
1948
|
phoneNumber: string;
|
|
1942
1949
|
isPrimary: boolean;
|
|
1943
1950
|
description?: string | null | undefined;
|
|
1944
1951
|
}[];
|
|
1945
|
-
|
|
1952
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1946
1953
|
office?: {
|
|
1947
1954
|
id: string;
|
|
1948
1955
|
name: string;
|
|
1949
1956
|
} | null | undefined;
|
|
1950
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1951
1957
|
canImpersonateUsers?: {
|
|
1952
|
-
lastName: string;
|
|
1953
|
-
firstName: string;
|
|
1954
1958
|
id: string;
|
|
1959
|
+
firstName: string;
|
|
1960
|
+
lastName: string;
|
|
1955
1961
|
}[] | undefined;
|
|
1956
1962
|
} | undefined;
|
|
1957
1963
|
lead?: {
|
|
1958
|
-
phoneNumber: string;
|
|
1959
1964
|
name: string;
|
|
1965
|
+
phoneNumber: string;
|
|
1960
1966
|
} | undefined;
|
|
1961
|
-
company?: {
|
|
1962
|
-
createdAt: string;
|
|
1963
|
-
id: string;
|
|
1964
|
-
name: string;
|
|
1965
|
-
updatedAt: string;
|
|
1966
|
-
} | null | undefined;
|
|
1967
1967
|
}, {
|
|
1968
|
-
createdAt: string | Date;
|
|
1969
1968
|
id: string;
|
|
1970
|
-
status: LeadAssignmentStatus;
|
|
1971
1969
|
updatedAt: string | Date;
|
|
1970
|
+
createdAt: string | Date;
|
|
1971
|
+
status: LeadAssignmentStatus;
|
|
1972
|
+
companyId: string | null;
|
|
1972
1973
|
agentId: string | null;
|
|
1973
1974
|
leadId: string;
|
|
1974
1975
|
assignedAt: string | Date;
|
|
1975
1976
|
assignedBy: string | null;
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
email: string;
|
|
1977
|
+
company?: {
|
|
1978
|
+
id: string;
|
|
1979
|
+
name: string;
|
|
1980
|
+
updatedAt: string | Date;
|
|
1981
1981
|
createdAt: string | Date;
|
|
1982
|
+
} | null | undefined;
|
|
1983
|
+
agent?: {
|
|
1982
1984
|
id: string;
|
|
1983
1985
|
updatedAt: string | Date;
|
|
1986
|
+
createdAt: string | Date;
|
|
1987
|
+
email: string;
|
|
1988
|
+
firstName: string;
|
|
1989
|
+
lastName: string;
|
|
1990
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1984
1991
|
office?: {
|
|
1985
1992
|
id: string;
|
|
1986
1993
|
name: string;
|
|
@@ -1991,23 +1998,16 @@ export declare const leadAssignmentsContract: {
|
|
|
1991
1998
|
description?: string | null | undefined;
|
|
1992
1999
|
isPrimary?: boolean | undefined;
|
|
1993
2000
|
}[] | undefined;
|
|
1994
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1995
2001
|
canImpersonateUsers?: {
|
|
1996
|
-
lastName: string;
|
|
1997
|
-
firstName: string;
|
|
1998
2002
|
id: string;
|
|
2003
|
+
firstName: string;
|
|
2004
|
+
lastName: string;
|
|
1999
2005
|
}[] | undefined;
|
|
2000
2006
|
} | undefined;
|
|
2001
2007
|
lead?: {
|
|
2002
|
-
phoneNumber: string;
|
|
2003
2008
|
name: string;
|
|
2009
|
+
phoneNumber: string;
|
|
2004
2010
|
} | undefined;
|
|
2005
|
-
company?: {
|
|
2006
|
-
createdAt: string | Date;
|
|
2007
|
-
id: string;
|
|
2008
|
-
name: string;
|
|
2009
|
-
updatedAt: string | Date;
|
|
2010
|
-
} | null | undefined;
|
|
2011
2011
|
}>>;
|
|
2012
2012
|
};
|
|
2013
2013
|
};
|
|
@@ -2134,11 +2134,11 @@ export declare const leadAssignmentsContract: {
|
|
|
2134
2134
|
name: z.ZodString;
|
|
2135
2135
|
phoneNumber: z.ZodString;
|
|
2136
2136
|
}, "strip", z.ZodTypeAny, {
|
|
2137
|
-
phoneNumber: string;
|
|
2138
2137
|
name: string;
|
|
2139
|
-
}, {
|
|
2140
2138
|
phoneNumber: string;
|
|
2139
|
+
}, {
|
|
2141
2140
|
name: string;
|
|
2141
|
+
phoneNumber: string;
|
|
2142
2142
|
}>>;
|
|
2143
2143
|
agentId: z.ZodNullable<z.ZodString>;
|
|
2144
2144
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -2178,46 +2178,47 @@ export declare const leadAssignmentsContract: {
|
|
|
2178
2178
|
firstName: z.ZodString;
|
|
2179
2179
|
lastName: z.ZodString;
|
|
2180
2180
|
}, "strip", z.ZodTypeAny, {
|
|
2181
|
-
lastName: string;
|
|
2182
|
-
firstName: string;
|
|
2183
2181
|
id: string;
|
|
2184
|
-
}, {
|
|
2185
|
-
lastName: string;
|
|
2186
2182
|
firstName: string;
|
|
2183
|
+
lastName: string;
|
|
2184
|
+
}, {
|
|
2187
2185
|
id: string;
|
|
2186
|
+
firstName: string;
|
|
2187
|
+
lastName: string;
|
|
2188
2188
|
}>, "many">>;
|
|
2189
2189
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2190
2190
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2191
2191
|
}, "strip", z.ZodTypeAny, {
|
|
2192
|
-
lastName: string;
|
|
2193
|
-
firstName: string;
|
|
2194
|
-
email: string;
|
|
2195
|
-
createdAt: string;
|
|
2196
2192
|
id: string;
|
|
2193
|
+
updatedAt: string;
|
|
2194
|
+
createdAt: string;
|
|
2195
|
+
email: string;
|
|
2196
|
+
firstName: string;
|
|
2197
|
+
lastName: string;
|
|
2197
2198
|
phoneNumbers: {
|
|
2198
2199
|
id: string;
|
|
2199
2200
|
phoneNumber: string;
|
|
2200
2201
|
isPrimary: boolean;
|
|
2201
2202
|
description?: string | null | undefined;
|
|
2202
2203
|
}[];
|
|
2203
|
-
|
|
2204
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2204
2205
|
office?: {
|
|
2205
2206
|
id: string;
|
|
2206
2207
|
name: string;
|
|
2207
2208
|
} | null | undefined;
|
|
2208
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2209
2209
|
canImpersonateUsers?: {
|
|
2210
|
-
lastName: string;
|
|
2211
|
-
firstName: string;
|
|
2212
2210
|
id: string;
|
|
2211
|
+
firstName: string;
|
|
2212
|
+
lastName: string;
|
|
2213
2213
|
}[] | undefined;
|
|
2214
2214
|
}, {
|
|
2215
|
-
lastName: string;
|
|
2216
|
-
firstName: string;
|
|
2217
|
-
email: string;
|
|
2218
|
-
createdAt: string | Date;
|
|
2219
2215
|
id: string;
|
|
2220
2216
|
updatedAt: string | Date;
|
|
2217
|
+
createdAt: string | Date;
|
|
2218
|
+
email: string;
|
|
2219
|
+
firstName: string;
|
|
2220
|
+
lastName: string;
|
|
2221
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2221
2222
|
office?: {
|
|
2222
2223
|
id: string;
|
|
2223
2224
|
name: string;
|
|
@@ -2228,11 +2229,10 @@ export declare const leadAssignmentsContract: {
|
|
|
2228
2229
|
description?: string | null | undefined;
|
|
2229
2230
|
isPrimary?: boolean | undefined;
|
|
2230
2231
|
}[] | undefined;
|
|
2231
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2232
2232
|
canImpersonateUsers?: {
|
|
2233
|
-
lastName: string;
|
|
2234
|
-
firstName: string;
|
|
2235
2233
|
id: string;
|
|
2234
|
+
firstName: string;
|
|
2235
|
+
lastName: string;
|
|
2236
2236
|
}[] | undefined;
|
|
2237
2237
|
}>>;
|
|
2238
2238
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2245,79 +2245,86 @@ export declare const leadAssignmentsContract: {
|
|
|
2245
2245
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2246
2246
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2247
2247
|
}, "strip", z.ZodTypeAny, {
|
|
2248
|
-
createdAt: string;
|
|
2249
2248
|
id: string;
|
|
2250
2249
|
name: string;
|
|
2251
2250
|
updatedAt: string;
|
|
2251
|
+
createdAt: string;
|
|
2252
2252
|
}, {
|
|
2253
|
-
createdAt: string | Date;
|
|
2254
2253
|
id: string;
|
|
2255
2254
|
name: string;
|
|
2256
2255
|
updatedAt: string | Date;
|
|
2256
|
+
createdAt: string | Date;
|
|
2257
2257
|
}>>>;
|
|
2258
2258
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2259
2259
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2260
2260
|
}, "strip", z.ZodTypeAny, {
|
|
2261
|
-
createdAt: string;
|
|
2262
2261
|
id: string;
|
|
2263
|
-
status: LeadAssignmentStatus;
|
|
2264
2262
|
updatedAt: string;
|
|
2263
|
+
createdAt: string;
|
|
2264
|
+
status: LeadAssignmentStatus;
|
|
2265
|
+
companyId: string | null;
|
|
2265
2266
|
agentId: string | null;
|
|
2266
2267
|
leadId: string;
|
|
2267
2268
|
assignedAt: string;
|
|
2268
2269
|
assignedBy: string | null;
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
email: string;
|
|
2270
|
+
company?: {
|
|
2271
|
+
id: string;
|
|
2272
|
+
name: string;
|
|
2273
|
+
updatedAt: string;
|
|
2274
2274
|
createdAt: string;
|
|
2275
|
+
} | null | undefined;
|
|
2276
|
+
agent?: {
|
|
2275
2277
|
id: string;
|
|
2278
|
+
updatedAt: string;
|
|
2279
|
+
createdAt: string;
|
|
2280
|
+
email: string;
|
|
2281
|
+
firstName: string;
|
|
2282
|
+
lastName: string;
|
|
2276
2283
|
phoneNumbers: {
|
|
2277
2284
|
id: string;
|
|
2278
2285
|
phoneNumber: string;
|
|
2279
2286
|
isPrimary: boolean;
|
|
2280
2287
|
description?: string | null | undefined;
|
|
2281
2288
|
}[];
|
|
2282
|
-
|
|
2289
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2283
2290
|
office?: {
|
|
2284
2291
|
id: string;
|
|
2285
2292
|
name: string;
|
|
2286
2293
|
} | null | undefined;
|
|
2287
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2288
2294
|
canImpersonateUsers?: {
|
|
2289
|
-
lastName: string;
|
|
2290
|
-
firstName: string;
|
|
2291
2295
|
id: string;
|
|
2296
|
+
firstName: string;
|
|
2297
|
+
lastName: string;
|
|
2292
2298
|
}[] | undefined;
|
|
2293
2299
|
} | undefined;
|
|
2294
2300
|
lead?: {
|
|
2295
|
-
phoneNumber: string;
|
|
2296
2301
|
name: string;
|
|
2302
|
+
phoneNumber: string;
|
|
2297
2303
|
} | undefined;
|
|
2298
|
-
company?: {
|
|
2299
|
-
createdAt: string;
|
|
2300
|
-
id: string;
|
|
2301
|
-
name: string;
|
|
2302
|
-
updatedAt: string;
|
|
2303
|
-
} | null | undefined;
|
|
2304
2304
|
}, {
|
|
2305
|
-
createdAt: string | Date;
|
|
2306
2305
|
id: string;
|
|
2307
|
-
status: LeadAssignmentStatus;
|
|
2308
2306
|
updatedAt: string | Date;
|
|
2307
|
+
createdAt: string | Date;
|
|
2308
|
+
status: LeadAssignmentStatus;
|
|
2309
|
+
companyId: string | null;
|
|
2309
2310
|
agentId: string | null;
|
|
2310
2311
|
leadId: string;
|
|
2311
2312
|
assignedAt: string | Date;
|
|
2312
2313
|
assignedBy: string | null;
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
email: string;
|
|
2314
|
+
company?: {
|
|
2315
|
+
id: string;
|
|
2316
|
+
name: string;
|
|
2317
|
+
updatedAt: string | Date;
|
|
2318
2318
|
createdAt: string | Date;
|
|
2319
|
+
} | null | undefined;
|
|
2320
|
+
agent?: {
|
|
2319
2321
|
id: string;
|
|
2320
2322
|
updatedAt: string | Date;
|
|
2323
|
+
createdAt: string | Date;
|
|
2324
|
+
email: string;
|
|
2325
|
+
firstName: string;
|
|
2326
|
+
lastName: string;
|
|
2327
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2321
2328
|
office?: {
|
|
2322
2329
|
id: string;
|
|
2323
2330
|
name: string;
|
|
@@ -2328,23 +2335,16 @@ export declare const leadAssignmentsContract: {
|
|
|
2328
2335
|
description?: string | null | undefined;
|
|
2329
2336
|
isPrimary?: boolean | undefined;
|
|
2330
2337
|
}[] | undefined;
|
|
2331
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2332
2338
|
canImpersonateUsers?: {
|
|
2333
|
-
lastName: string;
|
|
2334
|
-
firstName: string;
|
|
2335
2339
|
id: string;
|
|
2340
|
+
firstName: string;
|
|
2341
|
+
lastName: string;
|
|
2336
2342
|
}[] | undefined;
|
|
2337
2343
|
} | undefined;
|
|
2338
2344
|
lead?: {
|
|
2339
|
-
phoneNumber: string;
|
|
2340
2345
|
name: string;
|
|
2346
|
+
phoneNumber: string;
|
|
2341
2347
|
} | undefined;
|
|
2342
|
-
company?: {
|
|
2343
|
-
createdAt: string | Date;
|
|
2344
|
-
id: string;
|
|
2345
|
-
name: string;
|
|
2346
|
-
updatedAt: string | Date;
|
|
2347
|
-
} | null | undefined;
|
|
2348
2348
|
}>;
|
|
2349
2349
|
404: z.ZodObject<{
|
|
2350
2350
|
statusCode: z.ZodNumber;
|
|
@@ -2495,11 +2495,11 @@ export declare const leadAssignmentsContract: {
|
|
|
2495
2495
|
name: z.ZodString;
|
|
2496
2496
|
phoneNumber: z.ZodString;
|
|
2497
2497
|
}, "strip", z.ZodTypeAny, {
|
|
2498
|
-
phoneNumber: string;
|
|
2499
2498
|
name: string;
|
|
2500
|
-
}, {
|
|
2501
2499
|
phoneNumber: string;
|
|
2500
|
+
}, {
|
|
2502
2501
|
name: string;
|
|
2502
|
+
phoneNumber: string;
|
|
2503
2503
|
}>>;
|
|
2504
2504
|
agentId: z.ZodNullable<z.ZodString>;
|
|
2505
2505
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -2539,46 +2539,47 @@ export declare const leadAssignmentsContract: {
|
|
|
2539
2539
|
firstName: z.ZodString;
|
|
2540
2540
|
lastName: z.ZodString;
|
|
2541
2541
|
}, "strip", z.ZodTypeAny, {
|
|
2542
|
-
lastName: string;
|
|
2543
|
-
firstName: string;
|
|
2544
2542
|
id: string;
|
|
2545
|
-
}, {
|
|
2546
|
-
lastName: string;
|
|
2547
2543
|
firstName: string;
|
|
2544
|
+
lastName: string;
|
|
2545
|
+
}, {
|
|
2548
2546
|
id: string;
|
|
2547
|
+
firstName: string;
|
|
2548
|
+
lastName: string;
|
|
2549
2549
|
}>, "many">>;
|
|
2550
2550
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2551
2551
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2552
2552
|
}, "strip", z.ZodTypeAny, {
|
|
2553
|
-
lastName: string;
|
|
2554
|
-
firstName: string;
|
|
2555
|
-
email: string;
|
|
2556
|
-
createdAt: string;
|
|
2557
2553
|
id: string;
|
|
2554
|
+
updatedAt: string;
|
|
2555
|
+
createdAt: string;
|
|
2556
|
+
email: string;
|
|
2557
|
+
firstName: string;
|
|
2558
|
+
lastName: string;
|
|
2558
2559
|
phoneNumbers: {
|
|
2559
2560
|
id: string;
|
|
2560
2561
|
phoneNumber: string;
|
|
2561
2562
|
isPrimary: boolean;
|
|
2562
2563
|
description?: string | null | undefined;
|
|
2563
2564
|
}[];
|
|
2564
|
-
|
|
2565
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2565
2566
|
office?: {
|
|
2566
2567
|
id: string;
|
|
2567
2568
|
name: string;
|
|
2568
2569
|
} | null | undefined;
|
|
2569
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2570
2570
|
canImpersonateUsers?: {
|
|
2571
|
-
lastName: string;
|
|
2572
|
-
firstName: string;
|
|
2573
2571
|
id: string;
|
|
2572
|
+
firstName: string;
|
|
2573
|
+
lastName: string;
|
|
2574
2574
|
}[] | undefined;
|
|
2575
2575
|
}, {
|
|
2576
|
-
lastName: string;
|
|
2577
|
-
firstName: string;
|
|
2578
|
-
email: string;
|
|
2579
|
-
createdAt: string | Date;
|
|
2580
2576
|
id: string;
|
|
2581
2577
|
updatedAt: string | Date;
|
|
2578
|
+
createdAt: string | Date;
|
|
2579
|
+
email: string;
|
|
2580
|
+
firstName: string;
|
|
2581
|
+
lastName: string;
|
|
2582
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2582
2583
|
office?: {
|
|
2583
2584
|
id: string;
|
|
2584
2585
|
name: string;
|
|
@@ -2589,11 +2590,10 @@ export declare const leadAssignmentsContract: {
|
|
|
2589
2590
|
description?: string | null | undefined;
|
|
2590
2591
|
isPrimary?: boolean | undefined;
|
|
2591
2592
|
}[] | undefined;
|
|
2592
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2593
2593
|
canImpersonateUsers?: {
|
|
2594
|
-
lastName: string;
|
|
2595
|
-
firstName: string;
|
|
2596
2594
|
id: string;
|
|
2595
|
+
firstName: string;
|
|
2596
|
+
lastName: string;
|
|
2597
2597
|
}[] | undefined;
|
|
2598
2598
|
}>>;
|
|
2599
2599
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2606,79 +2606,86 @@ export declare const leadAssignmentsContract: {
|
|
|
2606
2606
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2607
2607
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2608
2608
|
}, "strip", z.ZodTypeAny, {
|
|
2609
|
-
createdAt: string;
|
|
2610
2609
|
id: string;
|
|
2611
2610
|
name: string;
|
|
2612
2611
|
updatedAt: string;
|
|
2612
|
+
createdAt: string;
|
|
2613
2613
|
}, {
|
|
2614
|
-
createdAt: string | Date;
|
|
2615
2614
|
id: string;
|
|
2616
2615
|
name: string;
|
|
2617
2616
|
updatedAt: string | Date;
|
|
2617
|
+
createdAt: string | Date;
|
|
2618
2618
|
}>>>;
|
|
2619
2619
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2620
2620
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2621
2621
|
}, "strip", z.ZodTypeAny, {
|
|
2622
|
-
createdAt: string;
|
|
2623
2622
|
id: string;
|
|
2624
|
-
status: LeadAssignmentStatus;
|
|
2625
2623
|
updatedAt: string;
|
|
2624
|
+
createdAt: string;
|
|
2625
|
+
status: LeadAssignmentStatus;
|
|
2626
|
+
companyId: string | null;
|
|
2626
2627
|
agentId: string | null;
|
|
2627
2628
|
leadId: string;
|
|
2628
2629
|
assignedAt: string;
|
|
2629
2630
|
assignedBy: string | null;
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
email: string;
|
|
2631
|
+
company?: {
|
|
2632
|
+
id: string;
|
|
2633
|
+
name: string;
|
|
2634
|
+
updatedAt: string;
|
|
2635
2635
|
createdAt: string;
|
|
2636
|
+
} | null | undefined;
|
|
2637
|
+
agent?: {
|
|
2636
2638
|
id: string;
|
|
2639
|
+
updatedAt: string;
|
|
2640
|
+
createdAt: string;
|
|
2641
|
+
email: string;
|
|
2642
|
+
firstName: string;
|
|
2643
|
+
lastName: string;
|
|
2637
2644
|
phoneNumbers: {
|
|
2638
2645
|
id: string;
|
|
2639
2646
|
phoneNumber: string;
|
|
2640
2647
|
isPrimary: boolean;
|
|
2641
2648
|
description?: string | null | undefined;
|
|
2642
2649
|
}[];
|
|
2643
|
-
|
|
2650
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2644
2651
|
office?: {
|
|
2645
2652
|
id: string;
|
|
2646
2653
|
name: string;
|
|
2647
2654
|
} | null | undefined;
|
|
2648
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2649
2655
|
canImpersonateUsers?: {
|
|
2650
|
-
lastName: string;
|
|
2651
|
-
firstName: string;
|
|
2652
2656
|
id: string;
|
|
2657
|
+
firstName: string;
|
|
2658
|
+
lastName: string;
|
|
2653
2659
|
}[] | undefined;
|
|
2654
2660
|
} | undefined;
|
|
2655
2661
|
lead?: {
|
|
2656
|
-
phoneNumber: string;
|
|
2657
2662
|
name: string;
|
|
2663
|
+
phoneNumber: string;
|
|
2658
2664
|
} | undefined;
|
|
2659
|
-
company?: {
|
|
2660
|
-
createdAt: string;
|
|
2661
|
-
id: string;
|
|
2662
|
-
name: string;
|
|
2663
|
-
updatedAt: string;
|
|
2664
|
-
} | null | undefined;
|
|
2665
2665
|
}, {
|
|
2666
|
-
createdAt: string | Date;
|
|
2667
2666
|
id: string;
|
|
2668
|
-
status: LeadAssignmentStatus;
|
|
2669
2667
|
updatedAt: string | Date;
|
|
2668
|
+
createdAt: string | Date;
|
|
2669
|
+
status: LeadAssignmentStatus;
|
|
2670
|
+
companyId: string | null;
|
|
2670
2671
|
agentId: string | null;
|
|
2671
2672
|
leadId: string;
|
|
2672
2673
|
assignedAt: string | Date;
|
|
2673
2674
|
assignedBy: string | null;
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
email: string;
|
|
2675
|
+
company?: {
|
|
2676
|
+
id: string;
|
|
2677
|
+
name: string;
|
|
2678
|
+
updatedAt: string | Date;
|
|
2679
2679
|
createdAt: string | Date;
|
|
2680
|
+
} | null | undefined;
|
|
2681
|
+
agent?: {
|
|
2680
2682
|
id: string;
|
|
2681
2683
|
updatedAt: string | Date;
|
|
2684
|
+
createdAt: string | Date;
|
|
2685
|
+
email: string;
|
|
2686
|
+
firstName: string;
|
|
2687
|
+
lastName: string;
|
|
2688
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2682
2689
|
office?: {
|
|
2683
2690
|
id: string;
|
|
2684
2691
|
name: string;
|
|
@@ -2689,23 +2696,16 @@ export declare const leadAssignmentsContract: {
|
|
|
2689
2696
|
description?: string | null | undefined;
|
|
2690
2697
|
isPrimary?: boolean | undefined;
|
|
2691
2698
|
}[] | undefined;
|
|
2692
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2693
2699
|
canImpersonateUsers?: {
|
|
2694
|
-
lastName: string;
|
|
2695
|
-
firstName: string;
|
|
2696
2700
|
id: string;
|
|
2701
|
+
firstName: string;
|
|
2702
|
+
lastName: string;
|
|
2697
2703
|
}[] | undefined;
|
|
2698
2704
|
} | undefined;
|
|
2699
2705
|
lead?: {
|
|
2700
|
-
phoneNumber: string;
|
|
2701
2706
|
name: string;
|
|
2707
|
+
phoneNumber: string;
|
|
2702
2708
|
} | undefined;
|
|
2703
|
-
company?: {
|
|
2704
|
-
createdAt: string | Date;
|
|
2705
|
-
id: string;
|
|
2706
|
-
name: string;
|
|
2707
|
-
updatedAt: string | Date;
|
|
2708
|
-
} | null | undefined;
|
|
2709
2709
|
}>;
|
|
2710
2710
|
404: z.ZodObject<{
|
|
2711
2711
|
statusCode: z.ZodNumber;
|