@dakkitor/api-contracts 1.1.138 → 1.1.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/abilities.contract.d.ts +2 -0
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +4 -1
- package/dist/abilities/cron-scheduler.abilities.json +10 -0
- package/dist/abilities/first-agent.abilities.json +12 -1
- package/dist/abilities/second-agent.abilities.json +14 -1
- package/dist/actives/actives.contract.d.ts +14480 -8618
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +290 -2
- package/dist/bookings/bookings.contract.d.ts +25059 -58407
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +223 -8
- package/dist/cron-executions/cron-executions.contract.d.ts +157 -33
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +14 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +628 -104
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +140 -7
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -3
- package/dist/jobs/jobs.contract.d.ts +6264 -3810
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +77 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +434 -300
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.js +7 -1
- package/dist/workers/workers.contract.d.ts +2186 -1115
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +148 -2
- package/package.json +1 -1
|
@@ -12,39 +12,56 @@ export declare const AgentLeadDistributionSchema: z.ZodObject<{
|
|
|
12
12
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
13
13
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
createdAt: string;
|
|
16
15
|
id: string;
|
|
17
16
|
name: string;
|
|
17
|
+
createdAt: string;
|
|
18
18
|
updatedAt: string;
|
|
19
19
|
}, {
|
|
20
|
-
createdAt: string | Date;
|
|
21
20
|
id: string;
|
|
22
21
|
name: string;
|
|
22
|
+
createdAt: string | Date;
|
|
23
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
|
-
createdAt: string;
|
|
31
31
|
id: string;
|
|
32
32
|
name: string;
|
|
33
|
+
createdAt: string;
|
|
33
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
|
-
createdAt: string | Date;
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
|
+
createdAt: string | Date;
|
|
44
45
|
updatedAt: string | Date;
|
|
45
46
|
} | null | undefined;
|
|
46
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
47
47
|
}>;
|
|
48
|
+
export declare const AgentLeadDistributionConfigRefSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
lowShare: z.ZodNumber;
|
|
53
|
+
mediumShare: z.ZodNumber;
|
|
54
|
+
highShare: z.ZodNumber;
|
|
55
|
+
mediumMinWeight: z.ZodNumber;
|
|
56
|
+
highMinWeight: z.ZodNumber;
|
|
57
|
+
isActive: z.ZodBoolean;
|
|
58
|
+
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
}, {
|
|
62
|
+
id: string;
|
|
63
|
+
name: string;
|
|
64
|
+
}>>>;
|
|
48
65
|
export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
49
66
|
agentId: z.ZodString;
|
|
50
67
|
status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
|
|
@@ -56,14 +73,14 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
56
73
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
57
74
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
58
75
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
createdAt: string;
|
|
60
76
|
id: string;
|
|
61
77
|
name: string;
|
|
78
|
+
createdAt: string;
|
|
62
79
|
updatedAt: string;
|
|
63
80
|
}, {
|
|
64
|
-
createdAt: string | Date;
|
|
65
81
|
id: string;
|
|
66
82
|
name: string;
|
|
83
|
+
createdAt: string | Date;
|
|
67
84
|
updatedAt: string | Date;
|
|
68
85
|
}>>>;
|
|
69
86
|
} & {
|
|
@@ -105,50 +122,46 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
105
122
|
firstName: z.ZodString;
|
|
106
123
|
lastName: z.ZodString;
|
|
107
124
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
lastName: string;
|
|
109
|
-
firstName: string;
|
|
110
125
|
id: string;
|
|
111
|
-
}, {
|
|
112
|
-
lastName: string;
|
|
113
126
|
firstName: string;
|
|
127
|
+
lastName: string;
|
|
128
|
+
}, {
|
|
114
129
|
id: string;
|
|
130
|
+
firstName: string;
|
|
131
|
+
lastName: string;
|
|
115
132
|
}>, "many">>;
|
|
116
133
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
117
134
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
118
135
|
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
|
|
136
|
+
id: string;
|
|
137
|
+
createdAt: string;
|
|
138
|
+
updatedAt: string;
|
|
120
139
|
firstName: string;
|
|
140
|
+
lastName: string;
|
|
121
141
|
email: string;
|
|
122
|
-
createdAt: string;
|
|
123
|
-
id: string;
|
|
124
142
|
phoneNumbers: {
|
|
125
143
|
id: string;
|
|
126
144
|
phoneNumber: string;
|
|
127
145
|
isPrimary: boolean;
|
|
128
146
|
description?: string | null | undefined;
|
|
129
147
|
}[];
|
|
130
|
-
|
|
148
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
131
149
|
office?: {
|
|
132
150
|
id: string;
|
|
133
151
|
name: string;
|
|
134
152
|
} | null | undefined;
|
|
135
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
136
153
|
canImpersonateUsers?: {
|
|
137
|
-
lastName: string;
|
|
138
|
-
firstName: string;
|
|
139
154
|
id: string;
|
|
155
|
+
firstName: string;
|
|
156
|
+
lastName: string;
|
|
140
157
|
}[] | undefined;
|
|
141
158
|
}, {
|
|
142
|
-
lastName: string;
|
|
143
|
-
firstName: string;
|
|
144
|
-
email: string;
|
|
145
|
-
createdAt: string | Date;
|
|
146
159
|
id: string;
|
|
160
|
+
createdAt: string | Date;
|
|
147
161
|
updatedAt: string | Date;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
} | null | undefined;
|
|
162
|
+
firstName: string;
|
|
163
|
+
lastName: string;
|
|
164
|
+
email: string;
|
|
152
165
|
phoneNumbers?: {
|
|
153
166
|
id: string;
|
|
154
167
|
phoneNumber: string;
|
|
@@ -156,63 +169,84 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
156
169
|
isPrimary?: boolean | undefined;
|
|
157
170
|
}[] | undefined;
|
|
158
171
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
172
|
+
office?: {
|
|
173
|
+
id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
} | null | undefined;
|
|
159
176
|
canImpersonateUsers?: {
|
|
160
|
-
lastName: string;
|
|
161
|
-
firstName: string;
|
|
162
177
|
id: string;
|
|
178
|
+
firstName: string;
|
|
179
|
+
lastName: string;
|
|
163
180
|
}[] | undefined;
|
|
164
181
|
}>;
|
|
182
|
+
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
name: z.ZodString;
|
|
185
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
186
|
+
lowShare: z.ZodNumber;
|
|
187
|
+
mediumShare: z.ZodNumber;
|
|
188
|
+
highShare: z.ZodNumber;
|
|
189
|
+
mediumMinWeight: z.ZodNumber;
|
|
190
|
+
highMinWeight: z.ZodNumber;
|
|
191
|
+
isActive: z.ZodBoolean;
|
|
192
|
+
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
193
|
+
id: string;
|
|
194
|
+
name: string;
|
|
195
|
+
}, {
|
|
196
|
+
id: string;
|
|
197
|
+
name: string;
|
|
198
|
+
}>>>;
|
|
165
199
|
}, "strip", z.ZodTypeAny, {
|
|
166
|
-
id: string;
|
|
167
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
168
200
|
agentId: string;
|
|
201
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
202
|
+
id: string;
|
|
169
203
|
agent: {
|
|
170
|
-
|
|
204
|
+
id: string;
|
|
205
|
+
createdAt: string;
|
|
206
|
+
updatedAt: string;
|
|
171
207
|
firstName: string;
|
|
208
|
+
lastName: string;
|
|
172
209
|
email: string;
|
|
173
|
-
createdAt: string;
|
|
174
|
-
id: string;
|
|
175
210
|
phoneNumbers: {
|
|
176
211
|
id: string;
|
|
177
212
|
phoneNumber: string;
|
|
178
213
|
isPrimary: boolean;
|
|
179
214
|
description?: string | null | undefined;
|
|
180
215
|
}[];
|
|
181
|
-
|
|
216
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
182
217
|
office?: {
|
|
183
218
|
id: string;
|
|
184
219
|
name: string;
|
|
185
220
|
} | null | undefined;
|
|
186
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
187
221
|
canImpersonateUsers?: {
|
|
188
|
-
lastName: string;
|
|
189
|
-
firstName: string;
|
|
190
222
|
id: string;
|
|
223
|
+
firstName: string;
|
|
224
|
+
lastName: string;
|
|
191
225
|
}[] | undefined;
|
|
192
226
|
};
|
|
227
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
193
228
|
companyId?: string | null | undefined;
|
|
194
229
|
company?: {
|
|
195
|
-
createdAt: string;
|
|
196
230
|
id: string;
|
|
197
231
|
name: string;
|
|
232
|
+
createdAt: string;
|
|
198
233
|
updatedAt: string;
|
|
199
234
|
} | null | undefined;
|
|
200
|
-
|
|
235
|
+
leadDistributionConfig?: {
|
|
236
|
+
id: string;
|
|
237
|
+
name: string;
|
|
238
|
+
} | null | undefined;
|
|
201
239
|
}, {
|
|
202
|
-
id: string;
|
|
203
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
204
240
|
agentId: string;
|
|
241
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
242
|
+
id: string;
|
|
205
243
|
agent: {
|
|
206
|
-
lastName: string;
|
|
207
|
-
firstName: string;
|
|
208
|
-
email: string;
|
|
209
|
-
createdAt: string | Date;
|
|
210
244
|
id: string;
|
|
245
|
+
createdAt: string | Date;
|
|
211
246
|
updatedAt: string | Date;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
} | null | undefined;
|
|
247
|
+
firstName: string;
|
|
248
|
+
lastName: string;
|
|
249
|
+
email: string;
|
|
216
250
|
phoneNumbers?: {
|
|
217
251
|
id: string;
|
|
218
252
|
phoneNumber: string;
|
|
@@ -220,20 +254,28 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
220
254
|
isPrimary?: boolean | undefined;
|
|
221
255
|
}[] | undefined;
|
|
222
256
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
257
|
+
office?: {
|
|
258
|
+
id: string;
|
|
259
|
+
name: string;
|
|
260
|
+
} | null | undefined;
|
|
223
261
|
canImpersonateUsers?: {
|
|
224
|
-
lastName: string;
|
|
225
|
-
firstName: string;
|
|
226
262
|
id: string;
|
|
263
|
+
firstName: string;
|
|
264
|
+
lastName: string;
|
|
227
265
|
}[] | undefined;
|
|
228
266
|
};
|
|
267
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
229
268
|
companyId?: string | null | undefined;
|
|
230
269
|
company?: {
|
|
231
|
-
createdAt: string | Date;
|
|
232
270
|
id: string;
|
|
233
271
|
name: string;
|
|
272
|
+
createdAt: string | Date;
|
|
234
273
|
updatedAt: string | Date;
|
|
235
274
|
} | null | undefined;
|
|
236
|
-
|
|
275
|
+
leadDistributionConfig?: {
|
|
276
|
+
id: string;
|
|
277
|
+
name: string;
|
|
278
|
+
} | null | undefined;
|
|
237
279
|
}>;
|
|
238
280
|
export declare const CreateAgentLeadDistributionSchema: z.ZodObject<{
|
|
239
281
|
agentId: z.ZodString;
|
|
@@ -241,15 +283,15 @@ export declare const CreateAgentLeadDistributionSchema: z.ZodObject<{
|
|
|
241
283
|
leadDistributionConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
284
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
285
|
}, "strip", z.ZodTypeAny, {
|
|
244
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
245
286
|
agentId: string;
|
|
246
|
-
|
|
287
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
247
288
|
leadDistributionConfigId?: string | null | undefined;
|
|
289
|
+
companyId?: string | null | undefined;
|
|
248
290
|
}, {
|
|
249
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
250
291
|
agentId: string;
|
|
251
|
-
|
|
292
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
252
293
|
leadDistributionConfigId?: string | null | undefined;
|
|
294
|
+
companyId?: string | null | undefined;
|
|
253
295
|
}>;
|
|
254
296
|
export declare const UpdateAgentLeadDistributionSchema: z.ZodObject<{
|
|
255
297
|
status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
|
|
@@ -257,12 +299,12 @@ export declare const UpdateAgentLeadDistributionSchema: z.ZodObject<{
|
|
|
257
299
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
300
|
}, "strip", z.ZodTypeAny, {
|
|
259
301
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
260
|
-
companyId?: string | null | undefined;
|
|
261
302
|
leadDistributionConfigId?: string | null | undefined;
|
|
303
|
+
companyId?: string | null | undefined;
|
|
262
304
|
}, {
|
|
263
305
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
264
|
-
companyId?: string | null | undefined;
|
|
265
306
|
leadDistributionConfigId?: string | null | undefined;
|
|
307
|
+
companyId?: string | null | undefined;
|
|
266
308
|
}>;
|
|
267
309
|
export declare const FilterAgentLeadDistributionSchema: z.ZodObject<{
|
|
268
310
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -275,17 +317,17 @@ export declare const FilterAgentLeadDistributionSchema: z.ZodObject<{
|
|
|
275
317
|
}, "strip", z.ZodTypeAny, {
|
|
276
318
|
limit: number;
|
|
277
319
|
page: number;
|
|
278
|
-
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
279
320
|
agentId?: string | undefined;
|
|
280
|
-
|
|
321
|
+
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
281
322
|
leadDistributionConfigId?: string | undefined;
|
|
323
|
+
companyId?: string | undefined;
|
|
282
324
|
}, {
|
|
325
|
+
agentId?: string | undefined;
|
|
283
326
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
327
|
+
leadDistributionConfigId?: string | undefined;
|
|
328
|
+
companyId?: string | undefined;
|
|
284
329
|
limit?: number | undefined;
|
|
285
330
|
page?: number | undefined;
|
|
286
|
-
agentId?: string | undefined;
|
|
287
|
-
companyId?: string | undefined;
|
|
288
|
-
leadDistributionConfigId?: string | undefined;
|
|
289
331
|
}>;
|
|
290
332
|
export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
291
333
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -299,14 +341,14 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
299
341
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
300
342
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
301
343
|
}, "strip", z.ZodTypeAny, {
|
|
302
|
-
createdAt: string;
|
|
303
344
|
id: string;
|
|
304
345
|
name: string;
|
|
346
|
+
createdAt: string;
|
|
305
347
|
updatedAt: string;
|
|
306
348
|
}, {
|
|
307
|
-
createdAt: string | Date;
|
|
308
349
|
id: string;
|
|
309
350
|
name: string;
|
|
351
|
+
createdAt: string | Date;
|
|
310
352
|
updatedAt: string | Date;
|
|
311
353
|
}>>>;
|
|
312
354
|
} & {
|
|
@@ -348,50 +390,46 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
348
390
|
firstName: z.ZodString;
|
|
349
391
|
lastName: z.ZodString;
|
|
350
392
|
}, "strip", z.ZodTypeAny, {
|
|
351
|
-
lastName: string;
|
|
352
|
-
firstName: string;
|
|
353
393
|
id: string;
|
|
354
|
-
}, {
|
|
355
|
-
lastName: string;
|
|
356
394
|
firstName: string;
|
|
395
|
+
lastName: string;
|
|
396
|
+
}, {
|
|
357
397
|
id: string;
|
|
398
|
+
firstName: string;
|
|
399
|
+
lastName: string;
|
|
358
400
|
}>, "many">>;
|
|
359
401
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
360
402
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
361
403
|
}, "strip", z.ZodTypeAny, {
|
|
362
|
-
|
|
404
|
+
id: string;
|
|
405
|
+
createdAt: string;
|
|
406
|
+
updatedAt: string;
|
|
363
407
|
firstName: string;
|
|
408
|
+
lastName: string;
|
|
364
409
|
email: string;
|
|
365
|
-
createdAt: string;
|
|
366
|
-
id: string;
|
|
367
410
|
phoneNumbers: {
|
|
368
411
|
id: string;
|
|
369
412
|
phoneNumber: string;
|
|
370
413
|
isPrimary: boolean;
|
|
371
414
|
description?: string | null | undefined;
|
|
372
415
|
}[];
|
|
373
|
-
|
|
416
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
374
417
|
office?: {
|
|
375
418
|
id: string;
|
|
376
419
|
name: string;
|
|
377
420
|
} | null | undefined;
|
|
378
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
379
421
|
canImpersonateUsers?: {
|
|
380
|
-
lastName: string;
|
|
381
|
-
firstName: string;
|
|
382
422
|
id: string;
|
|
423
|
+
firstName: string;
|
|
424
|
+
lastName: string;
|
|
383
425
|
}[] | undefined;
|
|
384
426
|
}, {
|
|
385
|
-
lastName: string;
|
|
386
|
-
firstName: string;
|
|
387
|
-
email: string;
|
|
388
|
-
createdAt: string | Date;
|
|
389
427
|
id: string;
|
|
428
|
+
createdAt: string | Date;
|
|
390
429
|
updatedAt: string | Date;
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
} | null | undefined;
|
|
430
|
+
firstName: string;
|
|
431
|
+
lastName: string;
|
|
432
|
+
email: string;
|
|
395
433
|
phoneNumbers?: {
|
|
396
434
|
id: string;
|
|
397
435
|
phoneNumber: string;
|
|
@@ -399,63 +437,84 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
399
437
|
isPrimary?: boolean | undefined;
|
|
400
438
|
}[] | undefined;
|
|
401
439
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
440
|
+
office?: {
|
|
441
|
+
id: string;
|
|
442
|
+
name: string;
|
|
443
|
+
} | null | undefined;
|
|
402
444
|
canImpersonateUsers?: {
|
|
403
|
-
lastName: string;
|
|
404
|
-
firstName: string;
|
|
405
445
|
id: string;
|
|
446
|
+
firstName: string;
|
|
447
|
+
lastName: string;
|
|
406
448
|
}[] | undefined;
|
|
407
449
|
}>;
|
|
450
|
+
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
451
|
+
id: z.ZodString;
|
|
452
|
+
name: z.ZodString;
|
|
453
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
454
|
+
lowShare: z.ZodNumber;
|
|
455
|
+
mediumShare: z.ZodNumber;
|
|
456
|
+
highShare: z.ZodNumber;
|
|
457
|
+
mediumMinWeight: z.ZodNumber;
|
|
458
|
+
highMinWeight: z.ZodNumber;
|
|
459
|
+
isActive: z.ZodBoolean;
|
|
460
|
+
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
461
|
+
id: string;
|
|
462
|
+
name: string;
|
|
463
|
+
}, {
|
|
464
|
+
id: string;
|
|
465
|
+
name: string;
|
|
466
|
+
}>>>;
|
|
408
467
|
}, "strip", z.ZodTypeAny, {
|
|
409
|
-
id: string;
|
|
410
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
411
468
|
agentId: string;
|
|
469
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
470
|
+
id: string;
|
|
412
471
|
agent: {
|
|
413
|
-
|
|
472
|
+
id: string;
|
|
473
|
+
createdAt: string;
|
|
474
|
+
updatedAt: string;
|
|
414
475
|
firstName: string;
|
|
476
|
+
lastName: string;
|
|
415
477
|
email: string;
|
|
416
|
-
createdAt: string;
|
|
417
|
-
id: string;
|
|
418
478
|
phoneNumbers: {
|
|
419
479
|
id: string;
|
|
420
480
|
phoneNumber: string;
|
|
421
481
|
isPrimary: boolean;
|
|
422
482
|
description?: string | null | undefined;
|
|
423
483
|
}[];
|
|
424
|
-
|
|
484
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
425
485
|
office?: {
|
|
426
486
|
id: string;
|
|
427
487
|
name: string;
|
|
428
488
|
} | null | undefined;
|
|
429
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
430
489
|
canImpersonateUsers?: {
|
|
431
|
-
lastName: string;
|
|
432
|
-
firstName: string;
|
|
433
490
|
id: string;
|
|
491
|
+
firstName: string;
|
|
492
|
+
lastName: string;
|
|
434
493
|
}[] | undefined;
|
|
435
494
|
};
|
|
495
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
436
496
|
companyId?: string | null | undefined;
|
|
437
497
|
company?: {
|
|
438
|
-
createdAt: string;
|
|
439
498
|
id: string;
|
|
440
499
|
name: string;
|
|
500
|
+
createdAt: string;
|
|
441
501
|
updatedAt: string;
|
|
442
502
|
} | null | undefined;
|
|
443
|
-
|
|
503
|
+
leadDistributionConfig?: {
|
|
504
|
+
id: string;
|
|
505
|
+
name: string;
|
|
506
|
+
} | null | undefined;
|
|
444
507
|
}, {
|
|
445
|
-
id: string;
|
|
446
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
447
508
|
agentId: string;
|
|
509
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
510
|
+
id: string;
|
|
448
511
|
agent: {
|
|
449
|
-
lastName: string;
|
|
450
|
-
firstName: string;
|
|
451
|
-
email: string;
|
|
452
|
-
createdAt: string | Date;
|
|
453
512
|
id: string;
|
|
513
|
+
createdAt: string | Date;
|
|
454
514
|
updatedAt: string | Date;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
} | null | undefined;
|
|
515
|
+
firstName: string;
|
|
516
|
+
lastName: string;
|
|
517
|
+
email: string;
|
|
459
518
|
phoneNumbers?: {
|
|
460
519
|
id: string;
|
|
461
520
|
phoneNumber: string;
|
|
@@ -463,20 +522,28 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
463
522
|
isPrimary?: boolean | undefined;
|
|
464
523
|
}[] | undefined;
|
|
465
524
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
525
|
+
office?: {
|
|
526
|
+
id: string;
|
|
527
|
+
name: string;
|
|
528
|
+
} | null | undefined;
|
|
466
529
|
canImpersonateUsers?: {
|
|
467
|
-
lastName: string;
|
|
468
|
-
firstName: string;
|
|
469
530
|
id: string;
|
|
531
|
+
firstName: string;
|
|
532
|
+
lastName: string;
|
|
470
533
|
}[] | undefined;
|
|
471
534
|
};
|
|
535
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
472
536
|
companyId?: string | null | undefined;
|
|
473
537
|
company?: {
|
|
474
|
-
createdAt: string | Date;
|
|
475
538
|
id: string;
|
|
476
539
|
name: string;
|
|
540
|
+
createdAt: string | Date;
|
|
477
541
|
updatedAt: string | Date;
|
|
478
542
|
} | null | undefined;
|
|
479
|
-
|
|
543
|
+
leadDistributionConfig?: {
|
|
544
|
+
id: string;
|
|
545
|
+
name: string;
|
|
546
|
+
} | null | undefined;
|
|
480
547
|
}>, "many">;
|
|
481
548
|
totalCount: z.ZodNumber;
|
|
482
549
|
limit: z.ZodNumber;
|
|
@@ -486,41 +553,45 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
486
553
|
}, "strip", z.ZodTypeAny, {
|
|
487
554
|
limit: number;
|
|
488
555
|
items: {
|
|
489
|
-
id: string;
|
|
490
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
491
556
|
agentId: string;
|
|
557
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
558
|
+
id: string;
|
|
492
559
|
agent: {
|
|
493
|
-
|
|
560
|
+
id: string;
|
|
561
|
+
createdAt: string;
|
|
562
|
+
updatedAt: string;
|
|
494
563
|
firstName: string;
|
|
564
|
+
lastName: string;
|
|
495
565
|
email: string;
|
|
496
|
-
createdAt: string;
|
|
497
|
-
id: string;
|
|
498
566
|
phoneNumbers: {
|
|
499
567
|
id: string;
|
|
500
568
|
phoneNumber: string;
|
|
501
569
|
isPrimary: boolean;
|
|
502
570
|
description?: string | null | undefined;
|
|
503
571
|
}[];
|
|
504
|
-
|
|
572
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
505
573
|
office?: {
|
|
506
574
|
id: string;
|
|
507
575
|
name: string;
|
|
508
576
|
} | null | undefined;
|
|
509
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
510
577
|
canImpersonateUsers?: {
|
|
511
|
-
lastName: string;
|
|
512
|
-
firstName: string;
|
|
513
578
|
id: string;
|
|
579
|
+
firstName: string;
|
|
580
|
+
lastName: string;
|
|
514
581
|
}[] | undefined;
|
|
515
582
|
};
|
|
583
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
516
584
|
companyId?: string | null | undefined;
|
|
517
585
|
company?: {
|
|
518
|
-
createdAt: string;
|
|
519
586
|
id: string;
|
|
520
587
|
name: string;
|
|
588
|
+
createdAt: string;
|
|
521
589
|
updatedAt: string;
|
|
522
590
|
} | null | undefined;
|
|
523
|
-
|
|
591
|
+
leadDistributionConfig?: {
|
|
592
|
+
id: string;
|
|
593
|
+
name: string;
|
|
594
|
+
} | null | undefined;
|
|
524
595
|
}[];
|
|
525
596
|
totalCount: number;
|
|
526
597
|
skip: number;
|
|
@@ -529,20 +600,16 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
529
600
|
}, {
|
|
530
601
|
limit: number;
|
|
531
602
|
items: {
|
|
532
|
-
id: string;
|
|
533
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
534
603
|
agentId: string;
|
|
604
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
605
|
+
id: string;
|
|
535
606
|
agent: {
|
|
536
|
-
lastName: string;
|
|
537
|
-
firstName: string;
|
|
538
|
-
email: string;
|
|
539
|
-
createdAt: string | Date;
|
|
540
607
|
id: string;
|
|
608
|
+
createdAt: string | Date;
|
|
541
609
|
updatedAt: string | Date;
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
} | null | undefined;
|
|
610
|
+
firstName: string;
|
|
611
|
+
lastName: string;
|
|
612
|
+
email: string;
|
|
546
613
|
phoneNumbers?: {
|
|
547
614
|
id: string;
|
|
548
615
|
phoneNumber: string;
|
|
@@ -550,20 +617,28 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
550
617
|
isPrimary?: boolean | undefined;
|
|
551
618
|
}[] | undefined;
|
|
552
619
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
620
|
+
office?: {
|
|
621
|
+
id: string;
|
|
622
|
+
name: string;
|
|
623
|
+
} | null | undefined;
|
|
553
624
|
canImpersonateUsers?: {
|
|
554
|
-
lastName: string;
|
|
555
|
-
firstName: string;
|
|
556
625
|
id: string;
|
|
626
|
+
firstName: string;
|
|
627
|
+
lastName: string;
|
|
557
628
|
}[] | undefined;
|
|
558
629
|
};
|
|
630
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
559
631
|
companyId?: string | null | undefined;
|
|
560
632
|
company?: {
|
|
561
|
-
createdAt: string | Date;
|
|
562
633
|
id: string;
|
|
563
634
|
name: string;
|
|
635
|
+
createdAt: string | Date;
|
|
564
636
|
updatedAt: string | Date;
|
|
565
637
|
} | null | undefined;
|
|
566
|
-
|
|
638
|
+
leadDistributionConfig?: {
|
|
639
|
+
id: string;
|
|
640
|
+
name: string;
|
|
641
|
+
} | null | undefined;
|
|
567
642
|
}[];
|
|
568
643
|
totalCount: number;
|
|
569
644
|
skip: number;
|
|
@@ -578,40 +653,40 @@ export declare const BatchUpdateAgentLeadDistributionSchema: z.ZodEffects<z.ZodO
|
|
|
578
653
|
companyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
579
654
|
}, "strip", z.ZodTypeAny, {
|
|
580
655
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
581
|
-
companyId?: string | null | undefined;
|
|
582
656
|
leadDistributionConfigId?: string | null | undefined;
|
|
657
|
+
companyId?: string | null | undefined;
|
|
583
658
|
}, {
|
|
584
659
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
585
|
-
companyId?: string | null | undefined;
|
|
586
660
|
leadDistributionConfigId?: string | null | undefined;
|
|
661
|
+
companyId?: string | null | undefined;
|
|
587
662
|
}>;
|
|
588
663
|
}, "strip", z.ZodTypeAny, {
|
|
589
664
|
agentIds: string[];
|
|
590
665
|
data: {
|
|
591
666
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
592
|
-
companyId?: string | null | undefined;
|
|
593
667
|
leadDistributionConfigId?: string | null | undefined;
|
|
668
|
+
companyId?: string | null | undefined;
|
|
594
669
|
};
|
|
595
670
|
}, {
|
|
596
671
|
agentIds: string[];
|
|
597
672
|
data: {
|
|
598
673
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
599
|
-
companyId?: string | null | undefined;
|
|
600
674
|
leadDistributionConfigId?: string | null | undefined;
|
|
675
|
+
companyId?: string | null | undefined;
|
|
601
676
|
};
|
|
602
677
|
}>, {
|
|
603
678
|
agentIds: string[];
|
|
604
679
|
data: {
|
|
605
680
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
606
|
-
companyId?: string | null | undefined;
|
|
607
681
|
leadDistributionConfigId?: string | null | undefined;
|
|
682
|
+
companyId?: string | null | undefined;
|
|
608
683
|
};
|
|
609
684
|
}, {
|
|
610
685
|
agentIds: string[];
|
|
611
686
|
data: {
|
|
612
687
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
613
|
-
companyId?: string | null | undefined;
|
|
614
688
|
leadDistributionConfigId?: string | null | undefined;
|
|
689
|
+
companyId?: string | null | undefined;
|
|
615
690
|
};
|
|
616
691
|
}>;
|
|
617
692
|
export declare const BatchDeleteAgentLeadDistributionSchema: z.ZodObject<{
|
|
@@ -636,6 +711,7 @@ export type FilterAgentLeadDistribution = z.infer<typeof FilterAgentLeadDistribu
|
|
|
636
711
|
export type PaginatedAgentLeadDistributionResponse = z.infer<typeof PaginatedAgentLeadDistributionResponseSchema>;
|
|
637
712
|
export type BatchUpdateAgentLeadDistribution = z.infer<typeof BatchUpdateAgentLeadDistributionSchema>;
|
|
638
713
|
export type BatchDeleteAgentLeadDistribution = z.infer<typeof BatchDeleteAgentLeadDistributionSchema>;
|
|
714
|
+
export type AgentLeadDistributionConfigRef = z.infer<typeof AgentLeadDistributionConfigRefSchema>;
|
|
639
715
|
export type BatchResult = z.infer<typeof BatchResultSchema>;
|
|
640
716
|
export declare const agentLeadDistributionContract: {
|
|
641
717
|
findAll: {
|
|
@@ -653,17 +729,17 @@ export declare const agentLeadDistributionContract: {
|
|
|
653
729
|
}, "strip", z.ZodTypeAny, {
|
|
654
730
|
limit: number;
|
|
655
731
|
page: number;
|
|
656
|
-
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
657
732
|
agentId?: string | undefined;
|
|
658
|
-
|
|
733
|
+
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
659
734
|
leadDistributionConfigId?: string | undefined;
|
|
735
|
+
companyId?: string | undefined;
|
|
660
736
|
}, {
|
|
737
|
+
agentId?: string | undefined;
|
|
661
738
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
739
|
+
leadDistributionConfigId?: string | undefined;
|
|
740
|
+
companyId?: string | undefined;
|
|
662
741
|
limit?: number | undefined;
|
|
663
742
|
page?: number | undefined;
|
|
664
|
-
agentId?: string | undefined;
|
|
665
|
-
companyId?: string | undefined;
|
|
666
|
-
leadDistributionConfigId?: string | undefined;
|
|
667
743
|
}>;
|
|
668
744
|
summary: "List all agent lead distribution records";
|
|
669
745
|
method: "GET";
|
|
@@ -756,14 +832,14 @@ export declare const agentLeadDistributionContract: {
|
|
|
756
832
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
757
833
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
758
834
|
}, "strip", z.ZodTypeAny, {
|
|
759
|
-
createdAt: string;
|
|
760
835
|
id: string;
|
|
761
836
|
name: string;
|
|
837
|
+
createdAt: string;
|
|
762
838
|
updatedAt: string;
|
|
763
839
|
}, {
|
|
764
|
-
createdAt: string | Date;
|
|
765
840
|
id: string;
|
|
766
841
|
name: string;
|
|
842
|
+
createdAt: string | Date;
|
|
767
843
|
updatedAt: string | Date;
|
|
768
844
|
}>>>;
|
|
769
845
|
} & {
|
|
@@ -805,50 +881,46 @@ export declare const agentLeadDistributionContract: {
|
|
|
805
881
|
firstName: z.ZodString;
|
|
806
882
|
lastName: z.ZodString;
|
|
807
883
|
}, "strip", z.ZodTypeAny, {
|
|
808
|
-
lastName: string;
|
|
809
|
-
firstName: string;
|
|
810
884
|
id: string;
|
|
811
|
-
}, {
|
|
812
|
-
lastName: string;
|
|
813
885
|
firstName: string;
|
|
886
|
+
lastName: string;
|
|
887
|
+
}, {
|
|
814
888
|
id: string;
|
|
889
|
+
firstName: string;
|
|
890
|
+
lastName: string;
|
|
815
891
|
}>, "many">>;
|
|
816
892
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
817
893
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
818
894
|
}, "strip", z.ZodTypeAny, {
|
|
819
|
-
|
|
895
|
+
id: string;
|
|
896
|
+
createdAt: string;
|
|
897
|
+
updatedAt: string;
|
|
820
898
|
firstName: string;
|
|
899
|
+
lastName: string;
|
|
821
900
|
email: string;
|
|
822
|
-
createdAt: string;
|
|
823
|
-
id: string;
|
|
824
901
|
phoneNumbers: {
|
|
825
902
|
id: string;
|
|
826
903
|
phoneNumber: string;
|
|
827
904
|
isPrimary: boolean;
|
|
828
905
|
description?: string | null | undefined;
|
|
829
906
|
}[];
|
|
830
|
-
|
|
907
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
831
908
|
office?: {
|
|
832
909
|
id: string;
|
|
833
910
|
name: string;
|
|
834
911
|
} | null | undefined;
|
|
835
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
836
912
|
canImpersonateUsers?: {
|
|
837
|
-
lastName: string;
|
|
838
|
-
firstName: string;
|
|
839
913
|
id: string;
|
|
914
|
+
firstName: string;
|
|
915
|
+
lastName: string;
|
|
840
916
|
}[] | undefined;
|
|
841
917
|
}, {
|
|
842
|
-
lastName: string;
|
|
843
|
-
firstName: string;
|
|
844
|
-
email: string;
|
|
845
|
-
createdAt: string | Date;
|
|
846
918
|
id: string;
|
|
919
|
+
createdAt: string | Date;
|
|
847
920
|
updatedAt: string | Date;
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
} | null | undefined;
|
|
921
|
+
firstName: string;
|
|
922
|
+
lastName: string;
|
|
923
|
+
email: string;
|
|
852
924
|
phoneNumbers?: {
|
|
853
925
|
id: string;
|
|
854
926
|
phoneNumber: string;
|
|
@@ -856,63 +928,84 @@ export declare const agentLeadDistributionContract: {
|
|
|
856
928
|
isPrimary?: boolean | undefined;
|
|
857
929
|
}[] | undefined;
|
|
858
930
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
931
|
+
office?: {
|
|
932
|
+
id: string;
|
|
933
|
+
name: string;
|
|
934
|
+
} | null | undefined;
|
|
859
935
|
canImpersonateUsers?: {
|
|
860
|
-
lastName: string;
|
|
861
|
-
firstName: string;
|
|
862
936
|
id: string;
|
|
937
|
+
firstName: string;
|
|
938
|
+
lastName: string;
|
|
863
939
|
}[] | undefined;
|
|
864
940
|
}>;
|
|
941
|
+
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
942
|
+
id: z.ZodString;
|
|
943
|
+
name: z.ZodString;
|
|
944
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
945
|
+
lowShare: z.ZodNumber;
|
|
946
|
+
mediumShare: z.ZodNumber;
|
|
947
|
+
highShare: z.ZodNumber;
|
|
948
|
+
mediumMinWeight: z.ZodNumber;
|
|
949
|
+
highMinWeight: z.ZodNumber;
|
|
950
|
+
isActive: z.ZodBoolean;
|
|
951
|
+
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
952
|
+
id: string;
|
|
953
|
+
name: string;
|
|
954
|
+
}, {
|
|
955
|
+
id: string;
|
|
956
|
+
name: string;
|
|
957
|
+
}>>>;
|
|
865
958
|
}, "strip", z.ZodTypeAny, {
|
|
866
|
-
id: string;
|
|
867
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
868
959
|
agentId: string;
|
|
960
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
961
|
+
id: string;
|
|
869
962
|
agent: {
|
|
870
|
-
|
|
963
|
+
id: string;
|
|
964
|
+
createdAt: string;
|
|
965
|
+
updatedAt: string;
|
|
871
966
|
firstName: string;
|
|
967
|
+
lastName: string;
|
|
872
968
|
email: string;
|
|
873
|
-
createdAt: string;
|
|
874
|
-
id: string;
|
|
875
969
|
phoneNumbers: {
|
|
876
970
|
id: string;
|
|
877
971
|
phoneNumber: string;
|
|
878
972
|
isPrimary: boolean;
|
|
879
973
|
description?: string | null | undefined;
|
|
880
974
|
}[];
|
|
881
|
-
|
|
975
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
882
976
|
office?: {
|
|
883
977
|
id: string;
|
|
884
978
|
name: string;
|
|
885
979
|
} | null | undefined;
|
|
886
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
887
980
|
canImpersonateUsers?: {
|
|
888
|
-
lastName: string;
|
|
889
|
-
firstName: string;
|
|
890
981
|
id: string;
|
|
982
|
+
firstName: string;
|
|
983
|
+
lastName: string;
|
|
891
984
|
}[] | undefined;
|
|
892
985
|
};
|
|
986
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
893
987
|
companyId?: string | null | undefined;
|
|
894
988
|
company?: {
|
|
989
|
+
id: string;
|
|
990
|
+
name: string;
|
|
895
991
|
createdAt: string;
|
|
992
|
+
updatedAt: string;
|
|
993
|
+
} | null | undefined;
|
|
994
|
+
leadDistributionConfig?: {
|
|
896
995
|
id: string;
|
|
897
996
|
name: string;
|
|
898
|
-
updatedAt: string;
|
|
899
997
|
} | null | undefined;
|
|
900
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
901
998
|
}, {
|
|
902
|
-
id: string;
|
|
903
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
904
999
|
agentId: string;
|
|
1000
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1001
|
+
id: string;
|
|
905
1002
|
agent: {
|
|
906
|
-
lastName: string;
|
|
907
|
-
firstName: string;
|
|
908
|
-
email: string;
|
|
909
|
-
createdAt: string | Date;
|
|
910
1003
|
id: string;
|
|
1004
|
+
createdAt: string | Date;
|
|
911
1005
|
updatedAt: string | Date;
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
} | null | undefined;
|
|
1006
|
+
firstName: string;
|
|
1007
|
+
lastName: string;
|
|
1008
|
+
email: string;
|
|
916
1009
|
phoneNumbers?: {
|
|
917
1010
|
id: string;
|
|
918
1011
|
phoneNumber: string;
|
|
@@ -920,20 +1013,28 @@ export declare const agentLeadDistributionContract: {
|
|
|
920
1013
|
isPrimary?: boolean | undefined;
|
|
921
1014
|
}[] | undefined;
|
|
922
1015
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1016
|
+
office?: {
|
|
1017
|
+
id: string;
|
|
1018
|
+
name: string;
|
|
1019
|
+
} | null | undefined;
|
|
923
1020
|
canImpersonateUsers?: {
|
|
924
|
-
lastName: string;
|
|
925
|
-
firstName: string;
|
|
926
1021
|
id: string;
|
|
1022
|
+
firstName: string;
|
|
1023
|
+
lastName: string;
|
|
927
1024
|
}[] | undefined;
|
|
928
1025
|
};
|
|
1026
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
929
1027
|
companyId?: string | null | undefined;
|
|
930
1028
|
company?: {
|
|
931
|
-
createdAt: string | Date;
|
|
932
1029
|
id: string;
|
|
933
1030
|
name: string;
|
|
1031
|
+
createdAt: string | Date;
|
|
934
1032
|
updatedAt: string | Date;
|
|
935
1033
|
} | null | undefined;
|
|
936
|
-
|
|
1034
|
+
leadDistributionConfig?: {
|
|
1035
|
+
id: string;
|
|
1036
|
+
name: string;
|
|
1037
|
+
} | null | undefined;
|
|
937
1038
|
}>, "many">;
|
|
938
1039
|
totalCount: z.ZodNumber;
|
|
939
1040
|
limit: z.ZodNumber;
|
|
@@ -943,41 +1044,45 @@ export declare const agentLeadDistributionContract: {
|
|
|
943
1044
|
}, "strip", z.ZodTypeAny, {
|
|
944
1045
|
limit: number;
|
|
945
1046
|
items: {
|
|
946
|
-
id: string;
|
|
947
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
948
1047
|
agentId: string;
|
|
1048
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1049
|
+
id: string;
|
|
949
1050
|
agent: {
|
|
950
|
-
|
|
1051
|
+
id: string;
|
|
1052
|
+
createdAt: string;
|
|
1053
|
+
updatedAt: string;
|
|
951
1054
|
firstName: string;
|
|
1055
|
+
lastName: string;
|
|
952
1056
|
email: string;
|
|
953
|
-
createdAt: string;
|
|
954
|
-
id: string;
|
|
955
1057
|
phoneNumbers: {
|
|
956
1058
|
id: string;
|
|
957
1059
|
phoneNumber: string;
|
|
958
1060
|
isPrimary: boolean;
|
|
959
1061
|
description?: string | null | undefined;
|
|
960
1062
|
}[];
|
|
961
|
-
|
|
1063
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
962
1064
|
office?: {
|
|
963
1065
|
id: string;
|
|
964
1066
|
name: string;
|
|
965
1067
|
} | null | undefined;
|
|
966
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
967
1068
|
canImpersonateUsers?: {
|
|
968
|
-
lastName: string;
|
|
969
|
-
firstName: string;
|
|
970
1069
|
id: string;
|
|
1070
|
+
firstName: string;
|
|
1071
|
+
lastName: string;
|
|
971
1072
|
}[] | undefined;
|
|
972
1073
|
};
|
|
1074
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
973
1075
|
companyId?: string | null | undefined;
|
|
974
1076
|
company?: {
|
|
975
|
-
createdAt: string;
|
|
976
1077
|
id: string;
|
|
977
1078
|
name: string;
|
|
1079
|
+
createdAt: string;
|
|
978
1080
|
updatedAt: string;
|
|
979
1081
|
} | null | undefined;
|
|
980
|
-
|
|
1082
|
+
leadDistributionConfig?: {
|
|
1083
|
+
id: string;
|
|
1084
|
+
name: string;
|
|
1085
|
+
} | null | undefined;
|
|
981
1086
|
}[];
|
|
982
1087
|
totalCount: number;
|
|
983
1088
|
skip: number;
|
|
@@ -986,20 +1091,16 @@ export declare const agentLeadDistributionContract: {
|
|
|
986
1091
|
}, {
|
|
987
1092
|
limit: number;
|
|
988
1093
|
items: {
|
|
989
|
-
id: string;
|
|
990
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
991
1094
|
agentId: string;
|
|
1095
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1096
|
+
id: string;
|
|
992
1097
|
agent: {
|
|
993
|
-
lastName: string;
|
|
994
|
-
firstName: string;
|
|
995
|
-
email: string;
|
|
996
|
-
createdAt: string | Date;
|
|
997
1098
|
id: string;
|
|
1099
|
+
createdAt: string | Date;
|
|
998
1100
|
updatedAt: string | Date;
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
} | null | undefined;
|
|
1101
|
+
firstName: string;
|
|
1102
|
+
lastName: string;
|
|
1103
|
+
email: string;
|
|
1003
1104
|
phoneNumbers?: {
|
|
1004
1105
|
id: string;
|
|
1005
1106
|
phoneNumber: string;
|
|
@@ -1007,20 +1108,28 @@ export declare const agentLeadDistributionContract: {
|
|
|
1007
1108
|
isPrimary?: boolean | undefined;
|
|
1008
1109
|
}[] | undefined;
|
|
1009
1110
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1111
|
+
office?: {
|
|
1112
|
+
id: string;
|
|
1113
|
+
name: string;
|
|
1114
|
+
} | null | undefined;
|
|
1010
1115
|
canImpersonateUsers?: {
|
|
1011
|
-
lastName: string;
|
|
1012
|
-
firstName: string;
|
|
1013
1116
|
id: string;
|
|
1117
|
+
firstName: string;
|
|
1118
|
+
lastName: string;
|
|
1014
1119
|
}[] | undefined;
|
|
1015
1120
|
};
|
|
1121
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1016
1122
|
companyId?: string | null | undefined;
|
|
1017
1123
|
company?: {
|
|
1018
|
-
createdAt: string | Date;
|
|
1019
1124
|
id: string;
|
|
1020
1125
|
name: string;
|
|
1126
|
+
createdAt: string | Date;
|
|
1021
1127
|
updatedAt: string | Date;
|
|
1022
1128
|
} | null | undefined;
|
|
1023
|
-
|
|
1129
|
+
leadDistributionConfig?: {
|
|
1130
|
+
id: string;
|
|
1131
|
+
name: string;
|
|
1132
|
+
} | null | undefined;
|
|
1024
1133
|
}[];
|
|
1025
1134
|
totalCount: number;
|
|
1026
1135
|
skip: number;
|
|
@@ -1155,14 +1264,14 @@ export declare const agentLeadDistributionContract: {
|
|
|
1155
1264
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1156
1265
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1157
1266
|
}, "strip", z.ZodTypeAny, {
|
|
1158
|
-
createdAt: string;
|
|
1159
1267
|
id: string;
|
|
1160
1268
|
name: string;
|
|
1269
|
+
createdAt: string;
|
|
1161
1270
|
updatedAt: string;
|
|
1162
1271
|
}, {
|
|
1163
|
-
createdAt: string | Date;
|
|
1164
1272
|
id: string;
|
|
1165
1273
|
name: string;
|
|
1274
|
+
createdAt: string | Date;
|
|
1166
1275
|
updatedAt: string | Date;
|
|
1167
1276
|
}>>>;
|
|
1168
1277
|
} & {
|
|
@@ -1204,50 +1313,46 @@ export declare const agentLeadDistributionContract: {
|
|
|
1204
1313
|
firstName: z.ZodString;
|
|
1205
1314
|
lastName: z.ZodString;
|
|
1206
1315
|
}, "strip", z.ZodTypeAny, {
|
|
1207
|
-
lastName: string;
|
|
1208
|
-
firstName: string;
|
|
1209
1316
|
id: string;
|
|
1210
|
-
}, {
|
|
1211
|
-
lastName: string;
|
|
1212
1317
|
firstName: string;
|
|
1318
|
+
lastName: string;
|
|
1319
|
+
}, {
|
|
1213
1320
|
id: string;
|
|
1321
|
+
firstName: string;
|
|
1322
|
+
lastName: string;
|
|
1214
1323
|
}>, "many">>;
|
|
1215
1324
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1216
1325
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1217
1326
|
}, "strip", z.ZodTypeAny, {
|
|
1218
|
-
|
|
1327
|
+
id: string;
|
|
1328
|
+
createdAt: string;
|
|
1329
|
+
updatedAt: string;
|
|
1219
1330
|
firstName: string;
|
|
1331
|
+
lastName: string;
|
|
1220
1332
|
email: string;
|
|
1221
|
-
createdAt: string;
|
|
1222
|
-
id: string;
|
|
1223
1333
|
phoneNumbers: {
|
|
1224
1334
|
id: string;
|
|
1225
1335
|
phoneNumber: string;
|
|
1226
1336
|
isPrimary: boolean;
|
|
1227
1337
|
description?: string | null | undefined;
|
|
1228
1338
|
}[];
|
|
1229
|
-
|
|
1339
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1230
1340
|
office?: {
|
|
1231
1341
|
id: string;
|
|
1232
1342
|
name: string;
|
|
1233
1343
|
} | null | undefined;
|
|
1234
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1235
1344
|
canImpersonateUsers?: {
|
|
1236
|
-
lastName: string;
|
|
1237
|
-
firstName: string;
|
|
1238
1345
|
id: string;
|
|
1346
|
+
firstName: string;
|
|
1347
|
+
lastName: string;
|
|
1239
1348
|
}[] | undefined;
|
|
1240
1349
|
}, {
|
|
1241
|
-
lastName: string;
|
|
1242
|
-
firstName: string;
|
|
1243
|
-
email: string;
|
|
1244
|
-
createdAt: string | Date;
|
|
1245
1350
|
id: string;
|
|
1351
|
+
createdAt: string | Date;
|
|
1246
1352
|
updatedAt: string | Date;
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
} | null | undefined;
|
|
1353
|
+
firstName: string;
|
|
1354
|
+
lastName: string;
|
|
1355
|
+
email: string;
|
|
1251
1356
|
phoneNumbers?: {
|
|
1252
1357
|
id: string;
|
|
1253
1358
|
phoneNumber: string;
|
|
@@ -1255,63 +1360,84 @@ export declare const agentLeadDistributionContract: {
|
|
|
1255
1360
|
isPrimary?: boolean | undefined;
|
|
1256
1361
|
}[] | undefined;
|
|
1257
1362
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1363
|
+
office?: {
|
|
1364
|
+
id: string;
|
|
1365
|
+
name: string;
|
|
1366
|
+
} | null | undefined;
|
|
1258
1367
|
canImpersonateUsers?: {
|
|
1259
|
-
lastName: string;
|
|
1260
|
-
firstName: string;
|
|
1261
1368
|
id: string;
|
|
1369
|
+
firstName: string;
|
|
1370
|
+
lastName: string;
|
|
1262
1371
|
}[] | undefined;
|
|
1263
1372
|
}>;
|
|
1373
|
+
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
1374
|
+
id: z.ZodString;
|
|
1375
|
+
name: z.ZodString;
|
|
1376
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1377
|
+
lowShare: z.ZodNumber;
|
|
1378
|
+
mediumShare: z.ZodNumber;
|
|
1379
|
+
highShare: z.ZodNumber;
|
|
1380
|
+
mediumMinWeight: z.ZodNumber;
|
|
1381
|
+
highMinWeight: z.ZodNumber;
|
|
1382
|
+
isActive: z.ZodBoolean;
|
|
1383
|
+
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
1384
|
+
id: string;
|
|
1385
|
+
name: string;
|
|
1386
|
+
}, {
|
|
1387
|
+
id: string;
|
|
1388
|
+
name: string;
|
|
1389
|
+
}>>>;
|
|
1264
1390
|
}, "strip", z.ZodTypeAny, {
|
|
1265
|
-
id: string;
|
|
1266
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1267
1391
|
agentId: string;
|
|
1392
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1393
|
+
id: string;
|
|
1268
1394
|
agent: {
|
|
1269
|
-
|
|
1395
|
+
id: string;
|
|
1396
|
+
createdAt: string;
|
|
1397
|
+
updatedAt: string;
|
|
1270
1398
|
firstName: string;
|
|
1399
|
+
lastName: string;
|
|
1271
1400
|
email: string;
|
|
1272
|
-
createdAt: string;
|
|
1273
|
-
id: string;
|
|
1274
1401
|
phoneNumbers: {
|
|
1275
1402
|
id: string;
|
|
1276
1403
|
phoneNumber: string;
|
|
1277
1404
|
isPrimary: boolean;
|
|
1278
1405
|
description?: string | null | undefined;
|
|
1279
1406
|
}[];
|
|
1280
|
-
|
|
1407
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1281
1408
|
office?: {
|
|
1282
1409
|
id: string;
|
|
1283
1410
|
name: string;
|
|
1284
1411
|
} | null | undefined;
|
|
1285
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1286
1412
|
canImpersonateUsers?: {
|
|
1287
|
-
lastName: string;
|
|
1288
|
-
firstName: string;
|
|
1289
1413
|
id: string;
|
|
1414
|
+
firstName: string;
|
|
1415
|
+
lastName: string;
|
|
1290
1416
|
}[] | undefined;
|
|
1291
1417
|
};
|
|
1418
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1292
1419
|
companyId?: string | null | undefined;
|
|
1293
1420
|
company?: {
|
|
1294
|
-
createdAt: string;
|
|
1295
1421
|
id: string;
|
|
1296
1422
|
name: string;
|
|
1423
|
+
createdAt: string;
|
|
1297
1424
|
updatedAt: string;
|
|
1298
1425
|
} | null | undefined;
|
|
1299
|
-
|
|
1426
|
+
leadDistributionConfig?: {
|
|
1427
|
+
id: string;
|
|
1428
|
+
name: string;
|
|
1429
|
+
} | null | undefined;
|
|
1300
1430
|
}, {
|
|
1301
|
-
id: string;
|
|
1302
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1303
1431
|
agentId: string;
|
|
1432
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1433
|
+
id: string;
|
|
1304
1434
|
agent: {
|
|
1305
|
-
lastName: string;
|
|
1306
|
-
firstName: string;
|
|
1307
|
-
email: string;
|
|
1308
|
-
createdAt: string | Date;
|
|
1309
1435
|
id: string;
|
|
1436
|
+
createdAt: string | Date;
|
|
1310
1437
|
updatedAt: string | Date;
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
} | null | undefined;
|
|
1438
|
+
firstName: string;
|
|
1439
|
+
lastName: string;
|
|
1440
|
+
email: string;
|
|
1315
1441
|
phoneNumbers?: {
|
|
1316
1442
|
id: string;
|
|
1317
1443
|
phoneNumber: string;
|
|
@@ -1319,20 +1445,28 @@ export declare const agentLeadDistributionContract: {
|
|
|
1319
1445
|
isPrimary?: boolean | undefined;
|
|
1320
1446
|
}[] | undefined;
|
|
1321
1447
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1448
|
+
office?: {
|
|
1449
|
+
id: string;
|
|
1450
|
+
name: string;
|
|
1451
|
+
} | null | undefined;
|
|
1322
1452
|
canImpersonateUsers?: {
|
|
1323
|
-
lastName: string;
|
|
1324
|
-
firstName: string;
|
|
1325
1453
|
id: string;
|
|
1454
|
+
firstName: string;
|
|
1455
|
+
lastName: string;
|
|
1326
1456
|
}[] | undefined;
|
|
1327
1457
|
};
|
|
1458
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1328
1459
|
companyId?: string | null | undefined;
|
|
1329
1460
|
company?: {
|
|
1330
|
-
createdAt: string | Date;
|
|
1331
1461
|
id: string;
|
|
1332
1462
|
name: string;
|
|
1463
|
+
createdAt: string | Date;
|
|
1333
1464
|
updatedAt: string | Date;
|
|
1334
1465
|
} | null | undefined;
|
|
1335
|
-
|
|
1466
|
+
leadDistributionConfig?: {
|
|
1467
|
+
id: string;
|
|
1468
|
+
name: string;
|
|
1469
|
+
} | null | undefined;
|
|
1336
1470
|
}>;
|
|
1337
1471
|
404: z.ZodObject<{
|
|
1338
1472
|
statusCode: z.ZodNumber;
|
|
@@ -1398,15 +1532,15 @@ export declare const agentLeadDistributionContract: {
|
|
|
1398
1532
|
leadDistributionConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1399
1533
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1400
1534
|
}, "strip", z.ZodTypeAny, {
|
|
1401
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1402
1535
|
agentId: string;
|
|
1403
|
-
|
|
1536
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1404
1537
|
leadDistributionConfigId?: string | null | undefined;
|
|
1538
|
+
companyId?: string | null | undefined;
|
|
1405
1539
|
}, {
|
|
1406
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1407
1540
|
agentId: string;
|
|
1408
|
-
|
|
1541
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1409
1542
|
leadDistributionConfigId?: string | null | undefined;
|
|
1543
|
+
companyId?: string | null | undefined;
|
|
1410
1544
|
}>;
|
|
1411
1545
|
path: "/v2/agent-lead-distribution";
|
|
1412
1546
|
responses: {
|
|
@@ -1496,38 +1630,38 @@ export declare const agentLeadDistributionContract: {
|
|
|
1496
1630
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1497
1631
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1498
1632
|
}, "strip", z.ZodTypeAny, {
|
|
1499
|
-
createdAt: string;
|
|
1500
1633
|
id: string;
|
|
1501
1634
|
name: string;
|
|
1635
|
+
createdAt: string;
|
|
1502
1636
|
updatedAt: string;
|
|
1503
1637
|
}, {
|
|
1504
|
-
createdAt: string | Date;
|
|
1505
1638
|
id: string;
|
|
1506
1639
|
name: string;
|
|
1640
|
+
createdAt: string | Date;
|
|
1507
1641
|
updatedAt: string | Date;
|
|
1508
1642
|
}>>>;
|
|
1509
1643
|
}, "strip", z.ZodTypeAny, {
|
|
1510
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1511
1644
|
agentId: string;
|
|
1645
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1646
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1512
1647
|
companyId?: string | null | undefined;
|
|
1513
1648
|
company?: {
|
|
1514
|
-
createdAt: string;
|
|
1515
1649
|
id: string;
|
|
1516
1650
|
name: string;
|
|
1651
|
+
createdAt: string;
|
|
1517
1652
|
updatedAt: string;
|
|
1518
1653
|
} | null | undefined;
|
|
1519
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1520
1654
|
}, {
|
|
1521
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1522
1655
|
agentId: string;
|
|
1656
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1657
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1523
1658
|
companyId?: string | null | undefined;
|
|
1524
1659
|
company?: {
|
|
1525
|
-
createdAt: string | Date;
|
|
1526
1660
|
id: string;
|
|
1527
1661
|
name: string;
|
|
1662
|
+
createdAt: string | Date;
|
|
1528
1663
|
updatedAt: string | Date;
|
|
1529
1664
|
} | null | undefined;
|
|
1530
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1531
1665
|
}>;
|
|
1532
1666
|
403: z.ZodObject<{
|
|
1533
1667
|
statusCode: z.ZodNumber;
|
|
@@ -1575,12 +1709,12 @@ export declare const agentLeadDistributionContract: {
|
|
|
1575
1709
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1576
1710
|
}, "strip", z.ZodTypeAny, {
|
|
1577
1711
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1578
|
-
companyId?: string | null | undefined;
|
|
1579
1712
|
leadDistributionConfigId?: string | null | undefined;
|
|
1713
|
+
companyId?: string | null | undefined;
|
|
1580
1714
|
}, {
|
|
1581
1715
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1582
|
-
companyId?: string | null | undefined;
|
|
1583
1716
|
leadDistributionConfigId?: string | null | undefined;
|
|
1717
|
+
companyId?: string | null | undefined;
|
|
1584
1718
|
}>;
|
|
1585
1719
|
path: "/v2/agent-lead-distribution/:agentId";
|
|
1586
1720
|
responses: {
|
|
@@ -1670,38 +1804,38 @@ export declare const agentLeadDistributionContract: {
|
|
|
1670
1804
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1671
1805
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1672
1806
|
}, "strip", z.ZodTypeAny, {
|
|
1673
|
-
createdAt: string;
|
|
1674
1807
|
id: string;
|
|
1675
1808
|
name: string;
|
|
1809
|
+
createdAt: string;
|
|
1676
1810
|
updatedAt: string;
|
|
1677
1811
|
}, {
|
|
1678
|
-
createdAt: string | Date;
|
|
1679
1812
|
id: string;
|
|
1680
1813
|
name: string;
|
|
1814
|
+
createdAt: string | Date;
|
|
1681
1815
|
updatedAt: string | Date;
|
|
1682
1816
|
}>>>;
|
|
1683
1817
|
}, "strip", z.ZodTypeAny, {
|
|
1684
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1685
1818
|
agentId: string;
|
|
1819
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1820
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1686
1821
|
companyId?: string | null | undefined;
|
|
1687
1822
|
company?: {
|
|
1688
|
-
createdAt: string;
|
|
1689
1823
|
id: string;
|
|
1690
1824
|
name: string;
|
|
1825
|
+
createdAt: string;
|
|
1691
1826
|
updatedAt: string;
|
|
1692
1827
|
} | null | undefined;
|
|
1693
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1694
1828
|
}, {
|
|
1695
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1696
1829
|
agentId: string;
|
|
1830
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1831
|
+
leadDistributionConfigId?: string | null | undefined;
|
|
1697
1832
|
companyId?: string | null | undefined;
|
|
1698
1833
|
company?: {
|
|
1699
|
-
createdAt: string | Date;
|
|
1700
1834
|
id: string;
|
|
1701
1835
|
name: string;
|
|
1836
|
+
createdAt: string | Date;
|
|
1702
1837
|
updatedAt: string | Date;
|
|
1703
1838
|
} | null | undefined;
|
|
1704
|
-
leadDistributionConfigId?: string | null | undefined;
|
|
1705
1839
|
}>;
|
|
1706
1840
|
404: z.ZodObject<{
|
|
1707
1841
|
statusCode: z.ZodNumber;
|
|
@@ -1913,40 +2047,40 @@ export declare const agentLeadDistributionContract: {
|
|
|
1913
2047
|
companyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1914
2048
|
}, "strip", z.ZodTypeAny, {
|
|
1915
2049
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
1916
|
-
companyId?: string | null | undefined;
|
|
1917
2050
|
leadDistributionConfigId?: string | null | undefined;
|
|
2051
|
+
companyId?: string | null | undefined;
|
|
1918
2052
|
}, {
|
|
1919
2053
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
1920
|
-
companyId?: string | null | undefined;
|
|
1921
2054
|
leadDistributionConfigId?: string | null | undefined;
|
|
2055
|
+
companyId?: string | null | undefined;
|
|
1922
2056
|
}>;
|
|
1923
2057
|
}, "strip", z.ZodTypeAny, {
|
|
1924
2058
|
agentIds: string[];
|
|
1925
2059
|
data: {
|
|
1926
2060
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
1927
|
-
companyId?: string | null | undefined;
|
|
1928
2061
|
leadDistributionConfigId?: string | null | undefined;
|
|
2062
|
+
companyId?: string | null | undefined;
|
|
1929
2063
|
};
|
|
1930
2064
|
}, {
|
|
1931
2065
|
agentIds: string[];
|
|
1932
2066
|
data: {
|
|
1933
2067
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
1934
|
-
companyId?: string | null | undefined;
|
|
1935
2068
|
leadDistributionConfigId?: string | null | undefined;
|
|
2069
|
+
companyId?: string | null | undefined;
|
|
1936
2070
|
};
|
|
1937
2071
|
}>, {
|
|
1938
2072
|
agentIds: string[];
|
|
1939
2073
|
data: {
|
|
1940
2074
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
1941
|
-
companyId?: string | null | undefined;
|
|
1942
2075
|
leadDistributionConfigId?: string | null | undefined;
|
|
2076
|
+
companyId?: string | null | undefined;
|
|
1943
2077
|
};
|
|
1944
2078
|
}, {
|
|
1945
2079
|
agentIds: string[];
|
|
1946
2080
|
data: {
|
|
1947
2081
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
1948
|
-
companyId?: string | null | undefined;
|
|
1949
2082
|
leadDistributionConfigId?: string | null | undefined;
|
|
2083
|
+
companyId?: string | null | undefined;
|
|
1950
2084
|
};
|
|
1951
2085
|
}>;
|
|
1952
2086
|
path: "/v2/agent-lead-distribution/batch";
|