@dakkitor/api-contracts 1.1.143 → 1.1.144
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.
|
@@ -44,9 +44,8 @@ export declare const DashboardMetricsSchema: z.ZodObject<{
|
|
|
44
44
|
activesToday: z.ZodNumber;
|
|
45
45
|
activesTodayByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
totalBookings: number;
|
|
48
47
|
totalJobs: number;
|
|
49
|
-
|
|
48
|
+
totalBookings: number;
|
|
50
49
|
bookingsByStatus: Record<string, number>;
|
|
51
50
|
totalClients: number;
|
|
52
51
|
totalCollaborationCheckings: number;
|
|
@@ -57,14 +56,14 @@ export declare const DashboardMetricsSchema: z.ZodObject<{
|
|
|
57
56
|
tier: string;
|
|
58
57
|
conversionRate: number;
|
|
59
58
|
} | null;
|
|
59
|
+
totalCollaborations: number;
|
|
60
60
|
collaborationsByStatus: Record<string, number>;
|
|
61
61
|
totalClientContacts: number;
|
|
62
62
|
activesToday: number;
|
|
63
63
|
activesTodayByStatus: Record<string, number>;
|
|
64
64
|
}, {
|
|
65
|
-
totalBookings: number;
|
|
66
65
|
totalJobs: number;
|
|
67
|
-
|
|
66
|
+
totalBookings: number;
|
|
68
67
|
bookingsByStatus: Record<string, number>;
|
|
69
68
|
totalClients: number;
|
|
70
69
|
totalCollaborationCheckings: number;
|
|
@@ -75,6 +74,7 @@ export declare const DashboardMetricsSchema: z.ZodObject<{
|
|
|
75
74
|
tier: string;
|
|
76
75
|
conversionRate: number;
|
|
77
76
|
} | null;
|
|
77
|
+
totalCollaborations: number;
|
|
78
78
|
collaborationsByStatus: Record<string, number>;
|
|
79
79
|
totalClientContacts: number;
|
|
80
80
|
activesToday: number;
|
|
@@ -116,17 +116,17 @@ export declare const AgentCallPerformanceMetricsSchema: z.ZodObject<{
|
|
|
116
116
|
performanceTier: z.ZodEnum<["high", "medium", "low", "new"]>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
date: string;
|
|
119
|
+
conversionRate: number;
|
|
119
120
|
totalCalls: number;
|
|
120
121
|
averageRatingWeight: number;
|
|
121
|
-
conversionRate: number;
|
|
122
122
|
successVariance: number;
|
|
123
123
|
performanceScore: number;
|
|
124
124
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
125
125
|
}, {
|
|
126
126
|
date: string;
|
|
127
|
+
conversionRate: number;
|
|
127
128
|
totalCalls: number;
|
|
128
129
|
averageRatingWeight: number;
|
|
129
|
-
conversionRate: number;
|
|
130
130
|
successVariance: number;
|
|
131
131
|
performanceScore: number;
|
|
132
132
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
@@ -186,9 +186,8 @@ export declare const dashboardContract: {
|
|
|
186
186
|
activesToday: z.ZodNumber;
|
|
187
187
|
activesTodayByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
totalBookings: number;
|
|
190
189
|
totalJobs: number;
|
|
191
|
-
|
|
190
|
+
totalBookings: number;
|
|
192
191
|
bookingsByStatus: Record<string, number>;
|
|
193
192
|
totalClients: number;
|
|
194
193
|
totalCollaborationCheckings: number;
|
|
@@ -199,14 +198,14 @@ export declare const dashboardContract: {
|
|
|
199
198
|
tier: string;
|
|
200
199
|
conversionRate: number;
|
|
201
200
|
} | null;
|
|
201
|
+
totalCollaborations: number;
|
|
202
202
|
collaborationsByStatus: Record<string, number>;
|
|
203
203
|
totalClientContacts: number;
|
|
204
204
|
activesToday: number;
|
|
205
205
|
activesTodayByStatus: Record<string, number>;
|
|
206
206
|
}, {
|
|
207
|
-
totalBookings: number;
|
|
208
207
|
totalJobs: number;
|
|
209
|
-
|
|
208
|
+
totalBookings: number;
|
|
210
209
|
bookingsByStatus: Record<string, number>;
|
|
211
210
|
totalClients: number;
|
|
212
211
|
totalCollaborationCheckings: number;
|
|
@@ -217,6 +216,7 @@ export declare const dashboardContract: {
|
|
|
217
216
|
tier: string;
|
|
218
217
|
conversionRate: number;
|
|
219
218
|
} | null;
|
|
219
|
+
totalCollaborations: number;
|
|
220
220
|
collaborationsByStatus: Record<string, number>;
|
|
221
221
|
totalClientContacts: number;
|
|
222
222
|
activesToday: number;
|
|
@@ -279,17 +279,17 @@ export declare const dashboardContract: {
|
|
|
279
279
|
performanceTier: z.ZodEnum<["high", "medium", "low", "new"]>;
|
|
280
280
|
}, "strip", z.ZodTypeAny, {
|
|
281
281
|
date: string;
|
|
282
|
+
conversionRate: number;
|
|
282
283
|
totalCalls: number;
|
|
283
284
|
averageRatingWeight: number;
|
|
284
|
-
conversionRate: number;
|
|
285
285
|
successVariance: number;
|
|
286
286
|
performanceScore: number;
|
|
287
287
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
288
288
|
}, {
|
|
289
289
|
date: string;
|
|
290
|
+
conversionRate: number;
|
|
290
291
|
totalCalls: number;
|
|
291
292
|
averageRatingWeight: number;
|
|
292
|
-
conversionRate: number;
|
|
293
293
|
successVariance: number;
|
|
294
294
|
performanceScore: number;
|
|
295
295
|
performanceTier: "high" | "medium" | "low" | "new";
|
|
@@ -14,36 +14,36 @@ export declare const AgentLeadDistributionSchema: z.ZodObject<{
|
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
id: string;
|
|
16
16
|
name: string;
|
|
17
|
-
updatedAt: string;
|
|
18
17
|
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
19
|
}, {
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
22
|
-
updatedAt: string | Date;
|
|
23
22
|
createdAt: string | Date;
|
|
23
|
+
updatedAt: string | Date;
|
|
24
24
|
}>>>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
27
26
|
agentId: string;
|
|
27
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
28
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
28
29
|
companyId?: string | null | undefined;
|
|
29
30
|
company?: {
|
|
30
31
|
id: string;
|
|
31
32
|
name: string;
|
|
32
|
-
updatedAt: string;
|
|
33
33
|
createdAt: string;
|
|
34
|
+
updatedAt: string;
|
|
34
35
|
} | null | undefined;
|
|
35
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
36
36
|
}, {
|
|
37
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
38
37
|
agentId: string;
|
|
38
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
39
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
39
40
|
companyId?: string | null | undefined;
|
|
40
41
|
company?: {
|
|
41
42
|
id: string;
|
|
42
43
|
name: string;
|
|
43
|
-
updatedAt: string | Date;
|
|
44
44
|
createdAt: string | Date;
|
|
45
|
+
updatedAt: string | Date;
|
|
45
46
|
} | null | undefined;
|
|
46
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
47
47
|
}>;
|
|
48
48
|
export declare const AgentLeadDistributionConfigRefSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
49
49
|
id: z.ZodString;
|
|
@@ -75,13 +75,13 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
76
|
id: string;
|
|
77
77
|
name: string;
|
|
78
|
-
updatedAt: string;
|
|
79
78
|
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
80
|
}, {
|
|
81
81
|
id: string;
|
|
82
82
|
name: string;
|
|
83
|
-
updatedAt: string | Date;
|
|
84
83
|
createdAt: string | Date;
|
|
84
|
+
updatedAt: string | Date;
|
|
85
85
|
}>>>;
|
|
86
86
|
} & {
|
|
87
87
|
id: z.ZodString;
|
|
@@ -134,11 +134,11 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
134
134
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
136
|
id: string;
|
|
137
|
-
updatedAt: string;
|
|
138
137
|
createdAt: string;
|
|
139
|
-
|
|
138
|
+
updatedAt: string;
|
|
140
139
|
firstName: string;
|
|
141
140
|
lastName: string;
|
|
141
|
+
email: string;
|
|
142
142
|
phoneNumbers: {
|
|
143
143
|
id: string;
|
|
144
144
|
phoneNumber: string;
|
|
@@ -157,22 +157,22 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
157
157
|
}[] | undefined;
|
|
158
158
|
}, {
|
|
159
159
|
id: string;
|
|
160
|
-
updatedAt: string | Date;
|
|
161
160
|
createdAt: string | Date;
|
|
162
|
-
|
|
161
|
+
updatedAt: string | Date;
|
|
163
162
|
firstName: string;
|
|
164
163
|
lastName: string;
|
|
165
|
-
|
|
166
|
-
office?: {
|
|
167
|
-
id: string;
|
|
168
|
-
name: string;
|
|
169
|
-
} | null | undefined;
|
|
164
|
+
email: string;
|
|
170
165
|
phoneNumbers?: {
|
|
171
166
|
id: string;
|
|
172
167
|
phoneNumber: string;
|
|
173
168
|
description?: string | null | undefined;
|
|
174
169
|
isPrimary?: boolean | undefined;
|
|
175
170
|
}[] | undefined;
|
|
171
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
172
|
+
office?: {
|
|
173
|
+
id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
} | null | undefined;
|
|
176
176
|
canImpersonateUsers?: {
|
|
177
177
|
id: string;
|
|
178
178
|
firstName: string;
|
|
@@ -197,16 +197,16 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
197
197
|
name: string;
|
|
198
198
|
}>>>;
|
|
199
199
|
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
id: string;
|
|
201
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
202
200
|
agentId: string;
|
|
201
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
202
|
+
id: string;
|
|
203
203
|
agent: {
|
|
204
204
|
id: string;
|
|
205
|
-
updatedAt: string;
|
|
206
205
|
createdAt: string;
|
|
207
|
-
|
|
206
|
+
updatedAt: string;
|
|
208
207
|
firstName: string;
|
|
209
208
|
lastName: string;
|
|
209
|
+
email: string;
|
|
210
210
|
phoneNumbers: {
|
|
211
211
|
id: string;
|
|
212
212
|
phoneNumber: string;
|
|
@@ -224,54 +224,54 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
224
224
|
lastName: string;
|
|
225
225
|
}[] | undefined;
|
|
226
226
|
};
|
|
227
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
227
228
|
companyId?: string | null | undefined;
|
|
228
229
|
company?: {
|
|
229
230
|
id: string;
|
|
230
231
|
name: string;
|
|
231
|
-
updatedAt: string;
|
|
232
232
|
createdAt: string;
|
|
233
|
+
updatedAt: string;
|
|
233
234
|
} | null | undefined;
|
|
234
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
235
235
|
leadDistributionConfig?: {
|
|
236
236
|
id: string;
|
|
237
237
|
name: string;
|
|
238
238
|
} | null | undefined;
|
|
239
239
|
}, {
|
|
240
|
-
id: string;
|
|
241
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
242
240
|
agentId: string;
|
|
241
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
242
|
+
id: string;
|
|
243
243
|
agent: {
|
|
244
244
|
id: string;
|
|
245
|
-
updatedAt: string | Date;
|
|
246
245
|
createdAt: string | Date;
|
|
247
|
-
|
|
246
|
+
updatedAt: string | Date;
|
|
248
247
|
firstName: string;
|
|
249
248
|
lastName: string;
|
|
250
|
-
|
|
251
|
-
office?: {
|
|
252
|
-
id: string;
|
|
253
|
-
name: string;
|
|
254
|
-
} | null | undefined;
|
|
249
|
+
email: string;
|
|
255
250
|
phoneNumbers?: {
|
|
256
251
|
id: string;
|
|
257
252
|
phoneNumber: string;
|
|
258
253
|
description?: string | null | undefined;
|
|
259
254
|
isPrimary?: boolean | undefined;
|
|
260
255
|
}[] | undefined;
|
|
256
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
257
|
+
office?: {
|
|
258
|
+
id: string;
|
|
259
|
+
name: string;
|
|
260
|
+
} | null | undefined;
|
|
261
261
|
canImpersonateUsers?: {
|
|
262
262
|
id: string;
|
|
263
263
|
firstName: string;
|
|
264
264
|
lastName: string;
|
|
265
265
|
}[] | undefined;
|
|
266
266
|
};
|
|
267
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
267
268
|
companyId?: string | null | undefined;
|
|
268
269
|
company?: {
|
|
269
270
|
id: string;
|
|
270
271
|
name: string;
|
|
271
|
-
updatedAt: string | Date;
|
|
272
272
|
createdAt: string | Date;
|
|
273
|
+
updatedAt: string | Date;
|
|
273
274
|
} | null | undefined;
|
|
274
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
275
275
|
leadDistributionConfig?: {
|
|
276
276
|
id: string;
|
|
277
277
|
name: string;
|
|
@@ -283,15 +283,15 @@ export declare const CreateAgentLeadDistributionSchema: z.ZodObject<{
|
|
|
283
283
|
leadDistributionConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
284
284
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
285
|
}, "strip", z.ZodTypeAny, {
|
|
286
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
287
286
|
agentId: string;
|
|
288
|
-
|
|
287
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
289
288
|
leadDistributionConfigId?: string | null | undefined;
|
|
289
|
+
companyId?: string | null | undefined;
|
|
290
290
|
}, {
|
|
291
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
292
291
|
agentId: string;
|
|
293
|
-
|
|
292
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
294
293
|
leadDistributionConfigId?: string | null | undefined;
|
|
294
|
+
companyId?: string | null | undefined;
|
|
295
295
|
}>;
|
|
296
296
|
export declare const UpdateAgentLeadDistributionSchema: z.ZodObject<{
|
|
297
297
|
status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
|
|
@@ -299,12 +299,12 @@ export declare const UpdateAgentLeadDistributionSchema: z.ZodObject<{
|
|
|
299
299
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
|
301
301
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
302
|
-
companyId?: string | null | undefined;
|
|
303
302
|
leadDistributionConfigId?: string | null | undefined;
|
|
303
|
+
companyId?: string | null | undefined;
|
|
304
304
|
}, {
|
|
305
305
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
306
|
-
companyId?: string | null | undefined;
|
|
307
306
|
leadDistributionConfigId?: string | null | undefined;
|
|
307
|
+
companyId?: string | null | undefined;
|
|
308
308
|
}>;
|
|
309
309
|
export declare const FilterAgentLeadDistributionSchema: z.ZodObject<{
|
|
310
310
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -315,19 +315,19 @@ export declare const FilterAgentLeadDistributionSchema: z.ZodObject<{
|
|
|
315
315
|
leadDistributionConfigId: z.ZodOptional<z.ZodString>;
|
|
316
316
|
companyId: z.ZodOptional<z.ZodString>;
|
|
317
317
|
}, "strip", z.ZodTypeAny, {
|
|
318
|
-
page: number;
|
|
319
318
|
limit: number;
|
|
320
|
-
|
|
321
|
-
companyId?: string | undefined;
|
|
319
|
+
page: number;
|
|
322
320
|
agentId?: string | undefined;
|
|
321
|
+
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
323
322
|
leadDistributionConfigId?: string | undefined;
|
|
323
|
+
companyId?: string | undefined;
|
|
324
324
|
}, {
|
|
325
|
+
agentId?: string | undefined;
|
|
325
326
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
327
|
+
leadDistributionConfigId?: string | undefined;
|
|
326
328
|
companyId?: string | undefined;
|
|
327
|
-
page?: number | undefined;
|
|
328
329
|
limit?: number | undefined;
|
|
329
|
-
|
|
330
|
-
leadDistributionConfigId?: string | undefined;
|
|
330
|
+
page?: number | undefined;
|
|
331
331
|
}>;
|
|
332
332
|
export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
333
333
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -343,13 +343,13 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
343
343
|
}, "strip", z.ZodTypeAny, {
|
|
344
344
|
id: string;
|
|
345
345
|
name: string;
|
|
346
|
-
updatedAt: string;
|
|
347
346
|
createdAt: string;
|
|
347
|
+
updatedAt: string;
|
|
348
348
|
}, {
|
|
349
349
|
id: string;
|
|
350
350
|
name: string;
|
|
351
|
-
updatedAt: string | Date;
|
|
352
351
|
createdAt: string | Date;
|
|
352
|
+
updatedAt: string | Date;
|
|
353
353
|
}>>>;
|
|
354
354
|
} & {
|
|
355
355
|
id: z.ZodString;
|
|
@@ -402,11 +402,11 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
402
402
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
403
403
|
}, "strip", z.ZodTypeAny, {
|
|
404
404
|
id: string;
|
|
405
|
-
updatedAt: string;
|
|
406
405
|
createdAt: string;
|
|
407
|
-
|
|
406
|
+
updatedAt: string;
|
|
408
407
|
firstName: string;
|
|
409
408
|
lastName: string;
|
|
409
|
+
email: string;
|
|
410
410
|
phoneNumbers: {
|
|
411
411
|
id: string;
|
|
412
412
|
phoneNumber: string;
|
|
@@ -425,22 +425,22 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
425
425
|
}[] | undefined;
|
|
426
426
|
}, {
|
|
427
427
|
id: string;
|
|
428
|
-
updatedAt: string | Date;
|
|
429
428
|
createdAt: string | Date;
|
|
430
|
-
|
|
429
|
+
updatedAt: string | Date;
|
|
431
430
|
firstName: string;
|
|
432
431
|
lastName: string;
|
|
433
|
-
|
|
434
|
-
office?: {
|
|
435
|
-
id: string;
|
|
436
|
-
name: string;
|
|
437
|
-
} | null | undefined;
|
|
432
|
+
email: string;
|
|
438
433
|
phoneNumbers?: {
|
|
439
434
|
id: string;
|
|
440
435
|
phoneNumber: string;
|
|
441
436
|
description?: string | null | undefined;
|
|
442
437
|
isPrimary?: boolean | undefined;
|
|
443
438
|
}[] | undefined;
|
|
439
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
440
|
+
office?: {
|
|
441
|
+
id: string;
|
|
442
|
+
name: string;
|
|
443
|
+
} | null | undefined;
|
|
444
444
|
canImpersonateUsers?: {
|
|
445
445
|
id: string;
|
|
446
446
|
firstName: string;
|
|
@@ -465,16 +465,16 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
465
465
|
name: string;
|
|
466
466
|
}>>>;
|
|
467
467
|
}, "strip", z.ZodTypeAny, {
|
|
468
|
-
id: string;
|
|
469
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
470
468
|
agentId: string;
|
|
469
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
470
|
+
id: string;
|
|
471
471
|
agent: {
|
|
472
472
|
id: string;
|
|
473
|
-
updatedAt: string;
|
|
474
473
|
createdAt: string;
|
|
475
|
-
|
|
474
|
+
updatedAt: string;
|
|
476
475
|
firstName: string;
|
|
477
476
|
lastName: string;
|
|
477
|
+
email: string;
|
|
478
478
|
phoneNumbers: {
|
|
479
479
|
id: string;
|
|
480
480
|
phoneNumber: string;
|
|
@@ -492,54 +492,54 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
492
492
|
lastName: string;
|
|
493
493
|
}[] | undefined;
|
|
494
494
|
};
|
|
495
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
495
496
|
companyId?: string | null | undefined;
|
|
496
497
|
company?: {
|
|
497
498
|
id: string;
|
|
498
499
|
name: string;
|
|
499
|
-
updatedAt: string;
|
|
500
500
|
createdAt: string;
|
|
501
|
+
updatedAt: string;
|
|
501
502
|
} | null | undefined;
|
|
502
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
503
503
|
leadDistributionConfig?: {
|
|
504
504
|
id: string;
|
|
505
505
|
name: string;
|
|
506
506
|
} | null | undefined;
|
|
507
507
|
}, {
|
|
508
|
-
id: string;
|
|
509
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
510
508
|
agentId: string;
|
|
509
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
510
|
+
id: string;
|
|
511
511
|
agent: {
|
|
512
512
|
id: string;
|
|
513
|
-
updatedAt: string | Date;
|
|
514
513
|
createdAt: string | Date;
|
|
515
|
-
|
|
514
|
+
updatedAt: string | Date;
|
|
516
515
|
firstName: string;
|
|
517
516
|
lastName: string;
|
|
518
|
-
|
|
519
|
-
office?: {
|
|
520
|
-
id: string;
|
|
521
|
-
name: string;
|
|
522
|
-
} | null | undefined;
|
|
517
|
+
email: string;
|
|
523
518
|
phoneNumbers?: {
|
|
524
519
|
id: string;
|
|
525
520
|
phoneNumber: string;
|
|
526
521
|
description?: string | null | undefined;
|
|
527
522
|
isPrimary?: boolean | undefined;
|
|
528
523
|
}[] | undefined;
|
|
524
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
525
|
+
office?: {
|
|
526
|
+
id: string;
|
|
527
|
+
name: string;
|
|
528
|
+
} | null | undefined;
|
|
529
529
|
canImpersonateUsers?: {
|
|
530
530
|
id: string;
|
|
531
531
|
firstName: string;
|
|
532
532
|
lastName: string;
|
|
533
533
|
}[] | undefined;
|
|
534
534
|
};
|
|
535
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
535
536
|
companyId?: string | null | undefined;
|
|
536
537
|
company?: {
|
|
537
538
|
id: string;
|
|
538
539
|
name: string;
|
|
539
|
-
updatedAt: string | Date;
|
|
540
540
|
createdAt: string | Date;
|
|
541
|
+
updatedAt: string | Date;
|
|
541
542
|
} | null | undefined;
|
|
542
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
543
543
|
leadDistributionConfig?: {
|
|
544
544
|
id: string;
|
|
545
545
|
name: string;
|
|
@@ -553,16 +553,16 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
553
553
|
}, "strip", z.ZodTypeAny, {
|
|
554
554
|
limit: number;
|
|
555
555
|
items: {
|
|
556
|
-
id: string;
|
|
557
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
558
556
|
agentId: string;
|
|
557
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
558
|
+
id: string;
|
|
559
559
|
agent: {
|
|
560
560
|
id: string;
|
|
561
|
-
updatedAt: string;
|
|
562
561
|
createdAt: string;
|
|
563
|
-
|
|
562
|
+
updatedAt: string;
|
|
564
563
|
firstName: string;
|
|
565
564
|
lastName: string;
|
|
565
|
+
email: string;
|
|
566
566
|
phoneNumbers: {
|
|
567
567
|
id: string;
|
|
568
568
|
phoneNumber: string;
|
|
@@ -580,14 +580,14 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
580
580
|
lastName: string;
|
|
581
581
|
}[] | undefined;
|
|
582
582
|
};
|
|
583
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
583
584
|
companyId?: string | null | undefined;
|
|
584
585
|
company?: {
|
|
585
586
|
id: string;
|
|
586
587
|
name: string;
|
|
587
|
-
updatedAt: string;
|
|
588
588
|
createdAt: string;
|
|
589
|
+
updatedAt: string;
|
|
589
590
|
} | null | undefined;
|
|
590
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
591
591
|
leadDistributionConfig?: {
|
|
592
592
|
id: string;
|
|
593
593
|
name: string;
|
|
@@ -600,41 +600,41 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
600
600
|
}, {
|
|
601
601
|
limit: number;
|
|
602
602
|
items: {
|
|
603
|
-
id: string;
|
|
604
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
605
603
|
agentId: string;
|
|
604
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
605
|
+
id: string;
|
|
606
606
|
agent: {
|
|
607
607
|
id: string;
|
|
608
|
-
updatedAt: string | Date;
|
|
609
608
|
createdAt: string | Date;
|
|
610
|
-
|
|
609
|
+
updatedAt: string | Date;
|
|
611
610
|
firstName: string;
|
|
612
611
|
lastName: string;
|
|
613
|
-
|
|
614
|
-
office?: {
|
|
615
|
-
id: string;
|
|
616
|
-
name: string;
|
|
617
|
-
} | null | undefined;
|
|
612
|
+
email: string;
|
|
618
613
|
phoneNumbers?: {
|
|
619
614
|
id: string;
|
|
620
615
|
phoneNumber: string;
|
|
621
616
|
description?: string | null | undefined;
|
|
622
617
|
isPrimary?: boolean | undefined;
|
|
623
618
|
}[] | undefined;
|
|
619
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
620
|
+
office?: {
|
|
621
|
+
id: string;
|
|
622
|
+
name: string;
|
|
623
|
+
} | null | undefined;
|
|
624
624
|
canImpersonateUsers?: {
|
|
625
625
|
id: string;
|
|
626
626
|
firstName: string;
|
|
627
627
|
lastName: string;
|
|
628
628
|
}[] | undefined;
|
|
629
629
|
};
|
|
630
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
630
631
|
companyId?: string | null | undefined;
|
|
631
632
|
company?: {
|
|
632
633
|
id: string;
|
|
633
634
|
name: string;
|
|
634
|
-
updatedAt: string | Date;
|
|
635
635
|
createdAt: string | Date;
|
|
636
|
+
updatedAt: string | Date;
|
|
636
637
|
} | null | undefined;
|
|
637
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
638
638
|
leadDistributionConfig?: {
|
|
639
639
|
id: string;
|
|
640
640
|
name: string;
|
|
@@ -653,41 +653,41 @@ export declare const BatchUpdateAgentLeadDistributionSchema: z.ZodEffects<z.ZodO
|
|
|
653
653
|
companyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
654
654
|
}, "strip", z.ZodTypeAny, {
|
|
655
655
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
656
|
-
companyId?: string | null | undefined;
|
|
657
656
|
leadDistributionConfigId?: string | null | undefined;
|
|
657
|
+
companyId?: string | null | undefined;
|
|
658
658
|
}, {
|
|
659
659
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
660
|
-
companyId?: string | null | undefined;
|
|
661
660
|
leadDistributionConfigId?: string | null | undefined;
|
|
661
|
+
companyId?: string | null | undefined;
|
|
662
662
|
}>;
|
|
663
663
|
}, "strip", z.ZodTypeAny, {
|
|
664
|
+
agentIds: string[];
|
|
664
665
|
data: {
|
|
665
666
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
666
|
-
companyId?: string | null | undefined;
|
|
667
667
|
leadDistributionConfigId?: string | null | undefined;
|
|
668
|
+
companyId?: string | null | undefined;
|
|
668
669
|
};
|
|
669
|
-
agentIds: string[];
|
|
670
670
|
}, {
|
|
671
|
+
agentIds: string[];
|
|
671
672
|
data: {
|
|
672
673
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
673
|
-
companyId?: string | null | undefined;
|
|
674
674
|
leadDistributionConfigId?: string | null | undefined;
|
|
675
|
+
companyId?: string | null | undefined;
|
|
675
676
|
};
|
|
676
|
-
agentIds: string[];
|
|
677
677
|
}>, {
|
|
678
|
+
agentIds: string[];
|
|
678
679
|
data: {
|
|
679
680
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
680
|
-
companyId?: string | null | undefined;
|
|
681
681
|
leadDistributionConfigId?: string | null | undefined;
|
|
682
|
+
companyId?: string | null | undefined;
|
|
682
683
|
};
|
|
683
|
-
agentIds: string[];
|
|
684
684
|
}, {
|
|
685
|
+
agentIds: string[];
|
|
685
686
|
data: {
|
|
686
687
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
687
|
-
companyId?: string | null | undefined;
|
|
688
688
|
leadDistributionConfigId?: string | null | undefined;
|
|
689
|
+
companyId?: string | null | undefined;
|
|
689
690
|
};
|
|
690
|
-
agentIds: string[];
|
|
691
691
|
}>;
|
|
692
692
|
export declare const BatchDeleteAgentLeadDistributionSchema: z.ZodObject<{
|
|
693
693
|
agentIds: z.ZodArray<z.ZodString, "many">;
|
|
@@ -715,6 +715,9 @@ export type AgentLeadDistributionConfigRef = z.infer<typeof AgentLeadDistributio
|
|
|
715
715
|
export type BatchResult = z.infer<typeof BatchResultSchema>;
|
|
716
716
|
export declare const agentLeadDistributionContract: {
|
|
717
717
|
findAll: {
|
|
718
|
+
metadata: {
|
|
719
|
+
tags: string[];
|
|
720
|
+
};
|
|
718
721
|
query: z.ZodObject<{
|
|
719
722
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
720
723
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -724,23 +727,20 @@ export declare const agentLeadDistributionContract: {
|
|
|
724
727
|
leadDistributionConfigId: z.ZodOptional<z.ZodString>;
|
|
725
728
|
companyId: z.ZodOptional<z.ZodString>;
|
|
726
729
|
}, "strip", z.ZodTypeAny, {
|
|
727
|
-
page: number;
|
|
728
730
|
limit: number;
|
|
729
|
-
|
|
730
|
-
companyId?: string | undefined;
|
|
731
|
+
page: number;
|
|
731
732
|
agentId?: string | undefined;
|
|
733
|
+
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
732
734
|
leadDistributionConfigId?: string | undefined;
|
|
735
|
+
companyId?: string | undefined;
|
|
733
736
|
}, {
|
|
737
|
+
agentId?: string | undefined;
|
|
734
738
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
739
|
+
leadDistributionConfigId?: string | undefined;
|
|
735
740
|
companyId?: string | undefined;
|
|
736
|
-
page?: number | undefined;
|
|
737
741
|
limit?: number | undefined;
|
|
738
|
-
|
|
739
|
-
leadDistributionConfigId?: string | undefined;
|
|
742
|
+
page?: number | undefined;
|
|
740
743
|
}>;
|
|
741
|
-
metadata: {
|
|
742
|
-
tags: string[];
|
|
743
|
-
};
|
|
744
744
|
summary: "List all agent lead distribution records";
|
|
745
745
|
method: "GET";
|
|
746
746
|
path: "/v2/agent-lead-distribution";
|
|
@@ -834,13 +834,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
834
834
|
}, "strip", z.ZodTypeAny, {
|
|
835
835
|
id: string;
|
|
836
836
|
name: string;
|
|
837
|
-
updatedAt: string;
|
|
838
837
|
createdAt: string;
|
|
838
|
+
updatedAt: string;
|
|
839
839
|
}, {
|
|
840
840
|
id: string;
|
|
841
841
|
name: string;
|
|
842
|
-
updatedAt: string | Date;
|
|
843
842
|
createdAt: string | Date;
|
|
843
|
+
updatedAt: string | Date;
|
|
844
844
|
}>>>;
|
|
845
845
|
} & {
|
|
846
846
|
id: z.ZodString;
|
|
@@ -893,11 +893,11 @@ export declare const agentLeadDistributionContract: {
|
|
|
893
893
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
894
894
|
}, "strip", z.ZodTypeAny, {
|
|
895
895
|
id: string;
|
|
896
|
-
updatedAt: string;
|
|
897
896
|
createdAt: string;
|
|
898
|
-
|
|
897
|
+
updatedAt: string;
|
|
899
898
|
firstName: string;
|
|
900
899
|
lastName: string;
|
|
900
|
+
email: string;
|
|
901
901
|
phoneNumbers: {
|
|
902
902
|
id: string;
|
|
903
903
|
phoneNumber: string;
|
|
@@ -916,22 +916,22 @@ export declare const agentLeadDistributionContract: {
|
|
|
916
916
|
}[] | undefined;
|
|
917
917
|
}, {
|
|
918
918
|
id: string;
|
|
919
|
-
updatedAt: string | Date;
|
|
920
919
|
createdAt: string | Date;
|
|
921
|
-
|
|
920
|
+
updatedAt: string | Date;
|
|
922
921
|
firstName: string;
|
|
923
922
|
lastName: string;
|
|
924
|
-
|
|
925
|
-
office?: {
|
|
926
|
-
id: string;
|
|
927
|
-
name: string;
|
|
928
|
-
} | null | undefined;
|
|
923
|
+
email: string;
|
|
929
924
|
phoneNumbers?: {
|
|
930
925
|
id: string;
|
|
931
926
|
phoneNumber: string;
|
|
932
927
|
description?: string | null | undefined;
|
|
933
928
|
isPrimary?: boolean | undefined;
|
|
934
929
|
}[] | undefined;
|
|
930
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
931
|
+
office?: {
|
|
932
|
+
id: string;
|
|
933
|
+
name: string;
|
|
934
|
+
} | null | undefined;
|
|
935
935
|
canImpersonateUsers?: {
|
|
936
936
|
id: string;
|
|
937
937
|
firstName: string;
|
|
@@ -956,16 +956,16 @@ export declare const agentLeadDistributionContract: {
|
|
|
956
956
|
name: string;
|
|
957
957
|
}>>>;
|
|
958
958
|
}, "strip", z.ZodTypeAny, {
|
|
959
|
-
id: string;
|
|
960
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
961
959
|
agentId: string;
|
|
960
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
961
|
+
id: string;
|
|
962
962
|
agent: {
|
|
963
963
|
id: string;
|
|
964
|
-
updatedAt: string;
|
|
965
964
|
createdAt: string;
|
|
966
|
-
|
|
965
|
+
updatedAt: string;
|
|
967
966
|
firstName: string;
|
|
968
967
|
lastName: string;
|
|
968
|
+
email: string;
|
|
969
969
|
phoneNumbers: {
|
|
970
970
|
id: string;
|
|
971
971
|
phoneNumber: string;
|
|
@@ -983,54 +983,54 @@ export declare const agentLeadDistributionContract: {
|
|
|
983
983
|
lastName: string;
|
|
984
984
|
}[] | undefined;
|
|
985
985
|
};
|
|
986
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
986
987
|
companyId?: string | null | undefined;
|
|
987
988
|
company?: {
|
|
988
989
|
id: string;
|
|
989
990
|
name: string;
|
|
990
|
-
updatedAt: string;
|
|
991
991
|
createdAt: string;
|
|
992
|
+
updatedAt: string;
|
|
992
993
|
} | null | undefined;
|
|
993
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
994
994
|
leadDistributionConfig?: {
|
|
995
995
|
id: string;
|
|
996
996
|
name: string;
|
|
997
997
|
} | null | undefined;
|
|
998
998
|
}, {
|
|
999
|
-
id: string;
|
|
1000
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1001
999
|
agentId: string;
|
|
1000
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1001
|
+
id: string;
|
|
1002
1002
|
agent: {
|
|
1003
1003
|
id: string;
|
|
1004
|
-
updatedAt: string | Date;
|
|
1005
1004
|
createdAt: string | Date;
|
|
1006
|
-
|
|
1005
|
+
updatedAt: string | Date;
|
|
1007
1006
|
firstName: string;
|
|
1008
1007
|
lastName: string;
|
|
1009
|
-
|
|
1010
|
-
office?: {
|
|
1011
|
-
id: string;
|
|
1012
|
-
name: string;
|
|
1013
|
-
} | null | undefined;
|
|
1008
|
+
email: string;
|
|
1014
1009
|
phoneNumbers?: {
|
|
1015
1010
|
id: string;
|
|
1016
1011
|
phoneNumber: string;
|
|
1017
1012
|
description?: string | null | undefined;
|
|
1018
1013
|
isPrimary?: boolean | undefined;
|
|
1019
1014
|
}[] | undefined;
|
|
1015
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1016
|
+
office?: {
|
|
1017
|
+
id: string;
|
|
1018
|
+
name: string;
|
|
1019
|
+
} | null | undefined;
|
|
1020
1020
|
canImpersonateUsers?: {
|
|
1021
1021
|
id: string;
|
|
1022
1022
|
firstName: string;
|
|
1023
1023
|
lastName: string;
|
|
1024
1024
|
}[] | undefined;
|
|
1025
1025
|
};
|
|
1026
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1026
1027
|
companyId?: string | null | undefined;
|
|
1027
1028
|
company?: {
|
|
1028
1029
|
id: string;
|
|
1029
1030
|
name: string;
|
|
1030
|
-
updatedAt: string | Date;
|
|
1031
1031
|
createdAt: string | Date;
|
|
1032
|
+
updatedAt: string | Date;
|
|
1032
1033
|
} | null | undefined;
|
|
1033
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1034
1034
|
leadDistributionConfig?: {
|
|
1035
1035
|
id: string;
|
|
1036
1036
|
name: string;
|
|
@@ -1044,16 +1044,16 @@ export declare const agentLeadDistributionContract: {
|
|
|
1044
1044
|
}, "strip", z.ZodTypeAny, {
|
|
1045
1045
|
limit: number;
|
|
1046
1046
|
items: {
|
|
1047
|
-
id: string;
|
|
1048
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1049
1047
|
agentId: string;
|
|
1048
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1049
|
+
id: string;
|
|
1050
1050
|
agent: {
|
|
1051
1051
|
id: string;
|
|
1052
|
-
updatedAt: string;
|
|
1053
1052
|
createdAt: string;
|
|
1054
|
-
|
|
1053
|
+
updatedAt: string;
|
|
1055
1054
|
firstName: string;
|
|
1056
1055
|
lastName: string;
|
|
1056
|
+
email: string;
|
|
1057
1057
|
phoneNumbers: {
|
|
1058
1058
|
id: string;
|
|
1059
1059
|
phoneNumber: string;
|
|
@@ -1071,14 +1071,14 @@ export declare const agentLeadDistributionContract: {
|
|
|
1071
1071
|
lastName: string;
|
|
1072
1072
|
}[] | undefined;
|
|
1073
1073
|
};
|
|
1074
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1074
1075
|
companyId?: string | null | undefined;
|
|
1075
1076
|
company?: {
|
|
1076
1077
|
id: string;
|
|
1077
1078
|
name: string;
|
|
1078
|
-
updatedAt: string;
|
|
1079
1079
|
createdAt: string;
|
|
1080
|
+
updatedAt: string;
|
|
1080
1081
|
} | null | undefined;
|
|
1081
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1082
1082
|
leadDistributionConfig?: {
|
|
1083
1083
|
id: string;
|
|
1084
1084
|
name: string;
|
|
@@ -1091,41 +1091,41 @@ export declare const agentLeadDistributionContract: {
|
|
|
1091
1091
|
}, {
|
|
1092
1092
|
limit: number;
|
|
1093
1093
|
items: {
|
|
1094
|
-
id: string;
|
|
1095
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1096
1094
|
agentId: string;
|
|
1095
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1096
|
+
id: string;
|
|
1097
1097
|
agent: {
|
|
1098
1098
|
id: string;
|
|
1099
|
-
updatedAt: string | Date;
|
|
1100
1099
|
createdAt: string | Date;
|
|
1101
|
-
|
|
1100
|
+
updatedAt: string | Date;
|
|
1102
1101
|
firstName: string;
|
|
1103
1102
|
lastName: string;
|
|
1104
|
-
|
|
1105
|
-
office?: {
|
|
1106
|
-
id: string;
|
|
1107
|
-
name: string;
|
|
1108
|
-
} | null | undefined;
|
|
1103
|
+
email: string;
|
|
1109
1104
|
phoneNumbers?: {
|
|
1110
1105
|
id: string;
|
|
1111
1106
|
phoneNumber: string;
|
|
1112
1107
|
description?: string | null | undefined;
|
|
1113
1108
|
isPrimary?: boolean | undefined;
|
|
1114
1109
|
}[] | undefined;
|
|
1110
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1111
|
+
office?: {
|
|
1112
|
+
id: string;
|
|
1113
|
+
name: string;
|
|
1114
|
+
} | null | undefined;
|
|
1115
1115
|
canImpersonateUsers?: {
|
|
1116
1116
|
id: string;
|
|
1117
1117
|
firstName: string;
|
|
1118
1118
|
lastName: string;
|
|
1119
1119
|
}[] | undefined;
|
|
1120
1120
|
};
|
|
1121
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1121
1122
|
companyId?: string | null | undefined;
|
|
1122
1123
|
company?: {
|
|
1123
1124
|
id: string;
|
|
1124
1125
|
name: string;
|
|
1125
|
-
updatedAt: string | Date;
|
|
1126
1126
|
createdAt: string | Date;
|
|
1127
|
+
updatedAt: string | Date;
|
|
1127
1128
|
} | null | undefined;
|
|
1128
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1129
1129
|
leadDistributionConfig?: {
|
|
1130
1130
|
id: string;
|
|
1131
1131
|
name: string;
|
|
@@ -1266,13 +1266,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
1266
1266
|
}, "strip", z.ZodTypeAny, {
|
|
1267
1267
|
id: string;
|
|
1268
1268
|
name: string;
|
|
1269
|
-
updatedAt: string;
|
|
1270
1269
|
createdAt: string;
|
|
1270
|
+
updatedAt: string;
|
|
1271
1271
|
}, {
|
|
1272
1272
|
id: string;
|
|
1273
1273
|
name: string;
|
|
1274
|
-
updatedAt: string | Date;
|
|
1275
1274
|
createdAt: string | Date;
|
|
1275
|
+
updatedAt: string | Date;
|
|
1276
1276
|
}>>>;
|
|
1277
1277
|
} & {
|
|
1278
1278
|
id: z.ZodString;
|
|
@@ -1325,11 +1325,11 @@ export declare const agentLeadDistributionContract: {
|
|
|
1325
1325
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1326
1326
|
}, "strip", z.ZodTypeAny, {
|
|
1327
1327
|
id: string;
|
|
1328
|
-
updatedAt: string;
|
|
1329
1328
|
createdAt: string;
|
|
1330
|
-
|
|
1329
|
+
updatedAt: string;
|
|
1331
1330
|
firstName: string;
|
|
1332
1331
|
lastName: string;
|
|
1332
|
+
email: string;
|
|
1333
1333
|
phoneNumbers: {
|
|
1334
1334
|
id: string;
|
|
1335
1335
|
phoneNumber: string;
|
|
@@ -1348,22 +1348,22 @@ export declare const agentLeadDistributionContract: {
|
|
|
1348
1348
|
}[] | undefined;
|
|
1349
1349
|
}, {
|
|
1350
1350
|
id: string;
|
|
1351
|
-
updatedAt: string | Date;
|
|
1352
1351
|
createdAt: string | Date;
|
|
1353
|
-
|
|
1352
|
+
updatedAt: string | Date;
|
|
1354
1353
|
firstName: string;
|
|
1355
1354
|
lastName: string;
|
|
1356
|
-
|
|
1357
|
-
office?: {
|
|
1358
|
-
id: string;
|
|
1359
|
-
name: string;
|
|
1360
|
-
} | null | undefined;
|
|
1355
|
+
email: string;
|
|
1361
1356
|
phoneNumbers?: {
|
|
1362
1357
|
id: string;
|
|
1363
1358
|
phoneNumber: string;
|
|
1364
1359
|
description?: string | null | undefined;
|
|
1365
1360
|
isPrimary?: boolean | undefined;
|
|
1366
1361
|
}[] | undefined;
|
|
1362
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1363
|
+
office?: {
|
|
1364
|
+
id: string;
|
|
1365
|
+
name: string;
|
|
1366
|
+
} | null | undefined;
|
|
1367
1367
|
canImpersonateUsers?: {
|
|
1368
1368
|
id: string;
|
|
1369
1369
|
firstName: string;
|
|
@@ -1388,16 +1388,16 @@ export declare const agentLeadDistributionContract: {
|
|
|
1388
1388
|
name: string;
|
|
1389
1389
|
}>>>;
|
|
1390
1390
|
}, "strip", z.ZodTypeAny, {
|
|
1391
|
-
id: string;
|
|
1392
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1393
1391
|
agentId: string;
|
|
1392
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1393
|
+
id: string;
|
|
1394
1394
|
agent: {
|
|
1395
1395
|
id: string;
|
|
1396
|
-
updatedAt: string;
|
|
1397
1396
|
createdAt: string;
|
|
1398
|
-
|
|
1397
|
+
updatedAt: string;
|
|
1399
1398
|
firstName: string;
|
|
1400
1399
|
lastName: string;
|
|
1400
|
+
email: string;
|
|
1401
1401
|
phoneNumbers: {
|
|
1402
1402
|
id: string;
|
|
1403
1403
|
phoneNumber: string;
|
|
@@ -1415,54 +1415,54 @@ export declare const agentLeadDistributionContract: {
|
|
|
1415
1415
|
lastName: string;
|
|
1416
1416
|
}[] | undefined;
|
|
1417
1417
|
};
|
|
1418
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1418
1419
|
companyId?: string | null | undefined;
|
|
1419
1420
|
company?: {
|
|
1420
1421
|
id: string;
|
|
1421
1422
|
name: string;
|
|
1422
|
-
updatedAt: string;
|
|
1423
1423
|
createdAt: string;
|
|
1424
|
+
updatedAt: string;
|
|
1424
1425
|
} | null | undefined;
|
|
1425
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1426
1426
|
leadDistributionConfig?: {
|
|
1427
1427
|
id: string;
|
|
1428
1428
|
name: string;
|
|
1429
1429
|
} | null | undefined;
|
|
1430
1430
|
}, {
|
|
1431
|
-
id: string;
|
|
1432
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1433
1431
|
agentId: string;
|
|
1432
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1433
|
+
id: string;
|
|
1434
1434
|
agent: {
|
|
1435
1435
|
id: string;
|
|
1436
|
-
updatedAt: string | Date;
|
|
1437
1436
|
createdAt: string | Date;
|
|
1438
|
-
|
|
1437
|
+
updatedAt: string | Date;
|
|
1439
1438
|
firstName: string;
|
|
1440
1439
|
lastName: string;
|
|
1441
|
-
|
|
1442
|
-
office?: {
|
|
1443
|
-
id: string;
|
|
1444
|
-
name: string;
|
|
1445
|
-
} | null | undefined;
|
|
1440
|
+
email: string;
|
|
1446
1441
|
phoneNumbers?: {
|
|
1447
1442
|
id: string;
|
|
1448
1443
|
phoneNumber: string;
|
|
1449
1444
|
description?: string | null | undefined;
|
|
1450
1445
|
isPrimary?: boolean | undefined;
|
|
1451
1446
|
}[] | undefined;
|
|
1447
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1448
|
+
office?: {
|
|
1449
|
+
id: string;
|
|
1450
|
+
name: string;
|
|
1451
|
+
} | null | undefined;
|
|
1452
1452
|
canImpersonateUsers?: {
|
|
1453
1453
|
id: string;
|
|
1454
1454
|
firstName: string;
|
|
1455
1455
|
lastName: string;
|
|
1456
1456
|
}[] | undefined;
|
|
1457
1457
|
};
|
|
1458
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1458
1459
|
companyId?: string | null | undefined;
|
|
1459
1460
|
company?: {
|
|
1460
1461
|
id: string;
|
|
1461
1462
|
name: string;
|
|
1462
|
-
updatedAt: string | Date;
|
|
1463
1463
|
createdAt: string | Date;
|
|
1464
|
+
updatedAt: string | Date;
|
|
1464
1465
|
} | null | undefined;
|
|
1465
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1466
1466
|
leadDistributionConfig?: {
|
|
1467
1467
|
id: string;
|
|
1468
1468
|
name: string;
|
|
@@ -1532,15 +1532,15 @@ export declare const agentLeadDistributionContract: {
|
|
|
1532
1532
|
leadDistributionConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1533
1533
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1534
1534
|
}, "strip", z.ZodTypeAny, {
|
|
1535
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1536
1535
|
agentId: string;
|
|
1537
|
-
|
|
1536
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1538
1537
|
leadDistributionConfigId?: string | null | undefined;
|
|
1538
|
+
companyId?: string | null | undefined;
|
|
1539
1539
|
}, {
|
|
1540
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1541
1540
|
agentId: string;
|
|
1542
|
-
|
|
1541
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1543
1542
|
leadDistributionConfigId?: string | null | undefined;
|
|
1543
|
+
companyId?: string | null | undefined;
|
|
1544
1544
|
}>;
|
|
1545
1545
|
path: "/v2/agent-lead-distribution";
|
|
1546
1546
|
responses: {
|
|
@@ -1632,36 +1632,36 @@ export declare const agentLeadDistributionContract: {
|
|
|
1632
1632
|
}, "strip", z.ZodTypeAny, {
|
|
1633
1633
|
id: string;
|
|
1634
1634
|
name: string;
|
|
1635
|
-
updatedAt: string;
|
|
1636
1635
|
createdAt: string;
|
|
1636
|
+
updatedAt: string;
|
|
1637
1637
|
}, {
|
|
1638
1638
|
id: string;
|
|
1639
1639
|
name: string;
|
|
1640
|
-
updatedAt: string | Date;
|
|
1641
1640
|
createdAt: string | Date;
|
|
1641
|
+
updatedAt: string | Date;
|
|
1642
1642
|
}>>>;
|
|
1643
1643
|
}, "strip", z.ZodTypeAny, {
|
|
1644
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1645
1644
|
agentId: string;
|
|
1645
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1646
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1646
1647
|
companyId?: string | null | undefined;
|
|
1647
1648
|
company?: {
|
|
1648
1649
|
id: string;
|
|
1649
1650
|
name: string;
|
|
1650
|
-
updatedAt: string;
|
|
1651
1651
|
createdAt: string;
|
|
1652
|
+
updatedAt: string;
|
|
1652
1653
|
} | null | undefined;
|
|
1653
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1654
1654
|
}, {
|
|
1655
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1656
1655
|
agentId: string;
|
|
1656
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1657
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1657
1658
|
companyId?: string | null | undefined;
|
|
1658
1659
|
company?: {
|
|
1659
1660
|
id: string;
|
|
1660
1661
|
name: string;
|
|
1661
|
-
updatedAt: string | Date;
|
|
1662
1662
|
createdAt: string | Date;
|
|
1663
|
+
updatedAt: string | Date;
|
|
1663
1664
|
} | null | undefined;
|
|
1664
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1665
1665
|
}>;
|
|
1666
1666
|
403: z.ZodObject<{
|
|
1667
1667
|
statusCode: z.ZodNumber;
|
|
@@ -1709,12 +1709,12 @@ export declare const agentLeadDistributionContract: {
|
|
|
1709
1709
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1710
1710
|
}, "strip", z.ZodTypeAny, {
|
|
1711
1711
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1712
|
-
companyId?: string | null | undefined;
|
|
1713
1712
|
leadDistributionConfigId?: string | null | undefined;
|
|
1713
|
+
companyId?: string | null | undefined;
|
|
1714
1714
|
}, {
|
|
1715
1715
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1716
|
-
companyId?: string | null | undefined;
|
|
1717
1716
|
leadDistributionConfigId?: string | null | undefined;
|
|
1717
|
+
companyId?: string | null | undefined;
|
|
1718
1718
|
}>;
|
|
1719
1719
|
path: "/v2/agent-lead-distribution/:agentId";
|
|
1720
1720
|
responses: {
|
|
@@ -1806,36 +1806,36 @@ export declare const agentLeadDistributionContract: {
|
|
|
1806
1806
|
}, "strip", z.ZodTypeAny, {
|
|
1807
1807
|
id: string;
|
|
1808
1808
|
name: string;
|
|
1809
|
-
updatedAt: string;
|
|
1810
1809
|
createdAt: string;
|
|
1810
|
+
updatedAt: string;
|
|
1811
1811
|
}, {
|
|
1812
1812
|
id: string;
|
|
1813
1813
|
name: string;
|
|
1814
|
-
updatedAt: string | Date;
|
|
1815
1814
|
createdAt: string | Date;
|
|
1815
|
+
updatedAt: string | Date;
|
|
1816
1816
|
}>>>;
|
|
1817
1817
|
}, "strip", z.ZodTypeAny, {
|
|
1818
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1819
1818
|
agentId: string;
|
|
1819
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1820
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1820
1821
|
companyId?: string | null | undefined;
|
|
1821
1822
|
company?: {
|
|
1822
1823
|
id: string;
|
|
1823
1824
|
name: string;
|
|
1824
|
-
updatedAt: string;
|
|
1825
1825
|
createdAt: string;
|
|
1826
|
+
updatedAt: string;
|
|
1826
1827
|
} | null | undefined;
|
|
1827
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1828
1828
|
}, {
|
|
1829
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1830
1829
|
agentId: string;
|
|
1830
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1831
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1831
1832
|
companyId?: string | null | undefined;
|
|
1832
1833
|
company?: {
|
|
1833
1834
|
id: string;
|
|
1834
1835
|
name: string;
|
|
1835
|
-
updatedAt: string | Date;
|
|
1836
1836
|
createdAt: string | Date;
|
|
1837
|
+
updatedAt: string | Date;
|
|
1837
1838
|
} | null | undefined;
|
|
1838
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1839
1839
|
}>;
|
|
1840
1840
|
404: z.ZodObject<{
|
|
1841
1841
|
statusCode: z.ZodNumber;
|
|
@@ -2047,41 +2047,41 @@ export declare const agentLeadDistributionContract: {
|
|
|
2047
2047
|
companyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2048
2048
|
}, "strip", z.ZodTypeAny, {
|
|
2049
2049
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
2050
|
-
companyId?: string | null | undefined;
|
|
2051
2050
|
leadDistributionConfigId?: string | null | undefined;
|
|
2051
|
+
companyId?: string | null | undefined;
|
|
2052
2052
|
}, {
|
|
2053
2053
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
2054
|
-
companyId?: string | null | undefined;
|
|
2055
2054
|
leadDistributionConfigId?: string | null | undefined;
|
|
2055
|
+
companyId?: string | null | undefined;
|
|
2056
2056
|
}>;
|
|
2057
2057
|
}, "strip", z.ZodTypeAny, {
|
|
2058
|
+
agentIds: string[];
|
|
2058
2059
|
data: {
|
|
2059
2060
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
2060
|
-
companyId?: string | null | undefined;
|
|
2061
2061
|
leadDistributionConfigId?: string | null | undefined;
|
|
2062
|
+
companyId?: string | null | undefined;
|
|
2062
2063
|
};
|
|
2063
|
-
agentIds: string[];
|
|
2064
2064
|
}, {
|
|
2065
|
+
agentIds: string[];
|
|
2065
2066
|
data: {
|
|
2066
2067
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
2067
|
-
companyId?: string | null | undefined;
|
|
2068
2068
|
leadDistributionConfigId?: string | null | undefined;
|
|
2069
|
+
companyId?: string | null | undefined;
|
|
2069
2070
|
};
|
|
2070
|
-
agentIds: string[];
|
|
2071
2071
|
}>, {
|
|
2072
|
+
agentIds: string[];
|
|
2072
2073
|
data: {
|
|
2073
2074
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
2074
|
-
companyId?: string | null | undefined;
|
|
2075
2075
|
leadDistributionConfigId?: string | null | undefined;
|
|
2076
|
+
companyId?: string | null | undefined;
|
|
2076
2077
|
};
|
|
2077
|
-
agentIds: string[];
|
|
2078
2078
|
}, {
|
|
2079
|
+
agentIds: string[];
|
|
2079
2080
|
data: {
|
|
2080
2081
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
2081
|
-
companyId?: string | null | undefined;
|
|
2082
2082
|
leadDistributionConfigId?: string | null | undefined;
|
|
2083
|
+
companyId?: string | null | undefined;
|
|
2083
2084
|
};
|
|
2084
|
-
agentIds: string[];
|
|
2085
2085
|
}>;
|
|
2086
2086
|
path: "/v2/agent-lead-distribution/batch";
|
|
2087
2087
|
responses: {
|
|
@@ -19,7 +19,7 @@ exports.AgentLeadDistributionStatusSchema = zod_1.z
|
|
|
19
19
|
// Schemas
|
|
20
20
|
exports.AgentLeadDistributionSchema = zod_1.z
|
|
21
21
|
.object({
|
|
22
|
-
agentId: zod_1.z.string().uuid().describe('Agent
|
|
22
|
+
agentId: zod_1.z.string().uuid().describe('Search First Agent'),
|
|
23
23
|
status: exports.AgentLeadDistributionStatusSchema,
|
|
24
24
|
leadDistributionConfigId: zod_1.z
|
|
25
25
|
.string()
|
|
@@ -49,7 +49,7 @@ exports.AgentLeadDistributionWithAgentSchema = exports.AgentLeadDistributionSche
|
|
|
49
49
|
}).openapi({ title: 'AgentLeadDistributionWithAgent' });
|
|
50
50
|
exports.CreateAgentLeadDistributionSchema = zod_1.z
|
|
51
51
|
.object({
|
|
52
|
-
agentId: zod_1.z.string().uuid().describe('Agent
|
|
52
|
+
agentId: zod_1.z.string().uuid().describe('Search First Agent'),
|
|
53
53
|
status: exports.AgentLeadDistributionStatusSchema,
|
|
54
54
|
leadDistributionConfigId: zod_1.z
|
|
55
55
|
.string()
|