@dakkitor/api-contracts 1.1.136 → 1.1.137

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.
Files changed (39) hide show
  1. package/dist/abilities/abilities.contract.d.ts +13 -19
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +18 -33
  4. package/dist/abilities/admin.abilities.json +10 -0
  5. package/dist/abilities/first-agent.abilities.json +17 -2
  6. package/dist/abilities/second-agent.abilities.json +9 -1
  7. package/dist/actives/actives.contract.d.ts +6938 -6248
  8. package/dist/actives/actives.contract.d.ts.map +1 -1
  9. package/dist/agent-client-links/agent-client-links.contract.d.ts +2151 -702
  10. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
  11. package/dist/agent-client-links/agent-client-links.contract.js +56 -2
  12. package/dist/bookings/bookings.contract.d.ts +26042 -22476
  13. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  14. package/dist/bookings/bookings.contract.js +161 -37
  15. package/dist/client-contacts/client-contacts.contract.d.ts +460 -460
  16. package/dist/clients/clients.contract.d.ts +263 -197
  17. package/dist/clients/clients.contract.d.ts.map +1 -1
  18. package/dist/clients/clients.contract.js +50 -6
  19. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1620 -1620
  20. package/dist/collaborations/collaborations.contract.d.ts +1456 -1456
  21. package/dist/collaborations/collaborations.contract.js +2 -2
  22. package/dist/dashboards/agent-daily-metrics.contract.d.ts +173 -803
  23. package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -1
  24. package/dist/dashboards/agent-daily-metrics.contract.js +45 -108
  25. package/dist/dashboards/dashboard-widgets.contract.d.ts +388 -282
  26. package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
  27. package/dist/dashboards/dashboard-widgets.contract.js +77 -32
  28. package/dist/dashboards/dashboard.contract.d.ts +215 -305
  29. package/dist/index.d.ts +3 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +3 -0
  32. package/dist/jobs/jobs.contract.d.ts +2885 -2885
  33. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +1340 -0
  34. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts.map +1 -0
  35. package/dist/kpi-impersonation/kpi-impersonation.contract.js +146 -0
  36. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +535 -139
  37. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
  38. package/dist/lead-distribution/agent-lead-distribution.contract.js +57 -1
  39. package/package.json +1 -1
@@ -12,38 +12,38 @@ 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
- name: string;
16
15
  id: string;
16
+ name: string;
17
17
  createdAt: string;
18
18
  updatedAt: string;
19
19
  }, {
20
- name: string;
21
20
  id: string;
21
+ name: string;
22
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
- name: string;
31
31
  id: string;
32
+ name: string;
32
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
- name: string;
42
42
  id: string;
43
+ name: string;
43
44
  createdAt: string | Date;
44
45
  updatedAt: string | Date;
45
46
  } | null | undefined;
46
- leadDistributionConfigId?: string | null | undefined;
47
47
  }>;
48
48
  export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
49
49
  agentId: z.ZodString;
@@ -56,13 +56,13 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
56
56
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
57
57
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
58
58
  }, "strip", z.ZodTypeAny, {
59
- name: string;
60
59
  id: string;
60
+ name: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
63
  }, {
64
- name: string;
65
64
  id: string;
65
+ name: string;
66
66
  createdAt: string | Date;
67
67
  updatedAt: string | Date;
68
68
  }>>>;
@@ -107,12 +107,12 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
107
107
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
108
108
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
109
109
  }, "strip", z.ZodTypeAny, {
110
- email: string;
111
110
  id: string;
112
111
  createdAt: string;
113
112
  updatedAt: string;
114
113
  firstName: string;
115
114
  lastName: string;
115
+ email: string;
116
116
  phoneNumbers: {
117
117
  id: string;
118
118
  phoneNumber: string;
@@ -127,19 +127,19 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
127
127
  lastName: string;
128
128
  }[] | undefined;
129
129
  }, {
130
- email: string;
131
130
  id: string;
132
131
  createdAt: string | Date;
133
132
  updatedAt: string | Date;
134
133
  firstName: string;
135
134
  lastName: string;
136
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
135
+ email: string;
137
136
  phoneNumbers?: {
138
137
  id: string;
139
138
  phoneNumber: string;
140
139
  description?: string | null | undefined;
141
140
  isPrimary?: boolean | undefined;
142
141
  }[] | undefined;
142
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
143
143
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
144
144
  canImpersonateUsers?: {
145
145
  id: string;
@@ -148,16 +148,16 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
148
148
  }[] | undefined;
149
149
  }>;
150
150
  }, "strip", z.ZodTypeAny, {
151
- id: string;
152
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
153
151
  agentId: string;
152
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
153
+ id: string;
154
154
  agent: {
155
- email: string;
156
155
  id: string;
157
156
  createdAt: string;
158
157
  updatedAt: string;
159
158
  firstName: string;
160
159
  lastName: string;
160
+ email: string;
161
161
  phoneNumbers: {
162
162
  id: string;
163
163
  phoneNumber: string;
@@ -172,32 +172,32 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
172
172
  lastName: string;
173
173
  }[] | undefined;
174
174
  };
175
+ leadDistributionConfigId?: string | null | undefined;
175
176
  companyId?: string | null | undefined;
176
177
  company?: {
177
- name: string;
178
178
  id: string;
179
+ name: string;
179
180
  createdAt: string;
180
181
  updatedAt: string;
181
182
  } | null | undefined;
182
- leadDistributionConfigId?: string | null | undefined;
183
183
  }, {
184
- id: string;
185
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
186
184
  agentId: string;
185
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
186
+ id: string;
187
187
  agent: {
188
- email: string;
189
188
  id: string;
190
189
  createdAt: string | Date;
191
190
  updatedAt: string | Date;
192
191
  firstName: string;
193
192
  lastName: string;
194
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
193
+ email: string;
195
194
  phoneNumbers?: {
196
195
  id: string;
197
196
  phoneNumber: string;
198
197
  description?: string | null | undefined;
199
198
  isPrimary?: boolean | undefined;
200
199
  }[] | undefined;
200
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
201
201
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
202
202
  canImpersonateUsers?: {
203
203
  id: string;
@@ -205,14 +205,14 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
205
205
  lastName: string;
206
206
  }[] | undefined;
207
207
  };
208
+ leadDistributionConfigId?: string | null | undefined;
208
209
  companyId?: string | null | undefined;
209
210
  company?: {
210
- name: string;
211
211
  id: string;
212
+ name: string;
212
213
  createdAt: string | Date;
213
214
  updatedAt: string | Date;
214
215
  } | null | undefined;
215
- leadDistributionConfigId?: string | null | undefined;
216
216
  }>;
217
217
  export declare const CreateAgentLeadDistributionSchema: z.ZodObject<{
218
218
  agentId: z.ZodString;
@@ -220,15 +220,15 @@ export declare const CreateAgentLeadDistributionSchema: z.ZodObject<{
220
220
  leadDistributionConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
221
  companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
222
  }, "strip", z.ZodTypeAny, {
223
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
224
223
  agentId: string;
225
- companyId?: string | null | undefined;
224
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
226
225
  leadDistributionConfigId?: string | null | undefined;
226
+ companyId?: string | null | undefined;
227
227
  }, {
228
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
229
228
  agentId: string;
230
- companyId?: string | null | undefined;
229
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
231
230
  leadDistributionConfigId?: string | null | undefined;
231
+ companyId?: string | null | undefined;
232
232
  }>;
233
233
  export declare const UpdateAgentLeadDistributionSchema: z.ZodObject<{
234
234
  status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
@@ -236,12 +236,12 @@ export declare const UpdateAgentLeadDistributionSchema: z.ZodObject<{
236
236
  companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
239
- companyId?: string | null | undefined;
240
239
  leadDistributionConfigId?: string | null | undefined;
240
+ companyId?: string | null | undefined;
241
241
  }, {
242
242
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
243
- companyId?: string | null | undefined;
244
243
  leadDistributionConfigId?: string | null | undefined;
244
+ companyId?: string | null | undefined;
245
245
  }>;
246
246
  export declare const FilterAgentLeadDistributionSchema: z.ZodObject<{
247
247
  limit: z.ZodDefault<z.ZodNumber>;
@@ -252,19 +252,19 @@ export declare const FilterAgentLeadDistributionSchema: z.ZodObject<{
252
252
  leadDistributionConfigId: z.ZodOptional<z.ZodString>;
253
253
  companyId: z.ZodOptional<z.ZodString>;
254
254
  }, "strip", z.ZodTypeAny, {
255
- page: number;
256
255
  limit: number;
257
- status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
256
+ page: number;
258
257
  agentId?: string | undefined;
259
- companyId?: string | undefined;
258
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
260
259
  leadDistributionConfigId?: string | undefined;
260
+ companyId?: string | undefined;
261
261
  }, {
262
- page?: number | undefined;
263
- limit?: number | undefined;
264
- status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
265
262
  agentId?: string | undefined;
266
- companyId?: string | undefined;
263
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
267
264
  leadDistributionConfigId?: string | undefined;
265
+ companyId?: string | undefined;
266
+ limit?: number | undefined;
267
+ page?: number | undefined;
268
268
  }>;
269
269
  export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
270
270
  items: z.ZodArray<z.ZodObject<{
@@ -278,13 +278,13 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
278
278
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
279
279
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
280
280
  }, "strip", z.ZodTypeAny, {
281
- name: string;
282
281
  id: string;
282
+ name: string;
283
283
  createdAt: string;
284
284
  updatedAt: string;
285
285
  }, {
286
- name: string;
287
286
  id: string;
287
+ name: string;
288
288
  createdAt: string | Date;
289
289
  updatedAt: string | Date;
290
290
  }>>>;
@@ -329,12 +329,12 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
329
329
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
330
330
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
331
331
  }, "strip", z.ZodTypeAny, {
332
- email: string;
333
332
  id: string;
334
333
  createdAt: string;
335
334
  updatedAt: string;
336
335
  firstName: string;
337
336
  lastName: string;
337
+ email: string;
338
338
  phoneNumbers: {
339
339
  id: string;
340
340
  phoneNumber: string;
@@ -349,19 +349,19 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
349
349
  lastName: string;
350
350
  }[] | undefined;
351
351
  }, {
352
- email: string;
353
352
  id: string;
354
353
  createdAt: string | Date;
355
354
  updatedAt: string | Date;
356
355
  firstName: string;
357
356
  lastName: string;
358
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
357
+ email: string;
359
358
  phoneNumbers?: {
360
359
  id: string;
361
360
  phoneNumber: string;
362
361
  description?: string | null | undefined;
363
362
  isPrimary?: boolean | undefined;
364
363
  }[] | undefined;
364
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
365
365
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
366
366
  canImpersonateUsers?: {
367
367
  id: string;
@@ -370,16 +370,16 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
370
370
  }[] | undefined;
371
371
  }>;
372
372
  }, "strip", z.ZodTypeAny, {
373
- id: string;
374
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
375
373
  agentId: string;
374
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
375
+ id: string;
376
376
  agent: {
377
- email: string;
378
377
  id: string;
379
378
  createdAt: string;
380
379
  updatedAt: string;
381
380
  firstName: string;
382
381
  lastName: string;
382
+ email: string;
383
383
  phoneNumbers: {
384
384
  id: string;
385
385
  phoneNumber: string;
@@ -394,32 +394,32 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
394
394
  lastName: string;
395
395
  }[] | undefined;
396
396
  };
397
+ leadDistributionConfigId?: string | null | undefined;
397
398
  companyId?: string | null | undefined;
398
399
  company?: {
399
- name: string;
400
400
  id: string;
401
+ name: string;
401
402
  createdAt: string;
402
403
  updatedAt: string;
403
404
  } | null | undefined;
404
- leadDistributionConfigId?: string | null | undefined;
405
405
  }, {
406
- id: string;
407
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
408
406
  agentId: string;
407
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
408
+ id: string;
409
409
  agent: {
410
- email: string;
411
410
  id: string;
412
411
  createdAt: string | Date;
413
412
  updatedAt: string | Date;
414
413
  firstName: string;
415
414
  lastName: string;
416
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
415
+ email: string;
417
416
  phoneNumbers?: {
418
417
  id: string;
419
418
  phoneNumber: string;
420
419
  description?: string | null | undefined;
421
420
  isPrimary?: boolean | undefined;
422
421
  }[] | undefined;
422
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
423
423
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
424
424
  canImpersonateUsers?: {
425
425
  id: string;
@@ -427,14 +427,14 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
427
427
  lastName: string;
428
428
  }[] | undefined;
429
429
  };
430
+ leadDistributionConfigId?: string | null | undefined;
430
431
  companyId?: string | null | undefined;
431
432
  company?: {
432
- name: string;
433
433
  id: string;
434
+ name: string;
434
435
  createdAt: string | Date;
435
436
  updatedAt: string | Date;
436
437
  } | null | undefined;
437
- leadDistributionConfigId?: string | null | undefined;
438
438
  }>, "many">;
439
439
  totalCount: z.ZodNumber;
440
440
  limit: z.ZodNumber;
@@ -444,16 +444,16 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
444
444
  }, "strip", z.ZodTypeAny, {
445
445
  limit: number;
446
446
  items: {
447
- id: string;
448
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
449
447
  agentId: string;
448
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
449
+ id: string;
450
450
  agent: {
451
- email: string;
452
451
  id: string;
453
452
  createdAt: string;
454
453
  updatedAt: string;
455
454
  firstName: string;
456
455
  lastName: string;
456
+ email: string;
457
457
  phoneNumbers: {
458
458
  id: string;
459
459
  phoneNumber: string;
@@ -468,14 +468,14 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
468
468
  lastName: string;
469
469
  }[] | undefined;
470
470
  };
471
+ leadDistributionConfigId?: string | null | undefined;
471
472
  companyId?: string | null | undefined;
472
473
  company?: {
473
- name: string;
474
474
  id: string;
475
+ name: string;
475
476
  createdAt: string;
476
477
  updatedAt: string;
477
478
  } | null | undefined;
478
- leadDistributionConfigId?: string | null | undefined;
479
479
  }[];
480
480
  totalCount: number;
481
481
  skip: number;
@@ -484,23 +484,23 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
484
484
  }, {
485
485
  limit: number;
486
486
  items: {
487
- id: string;
488
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
489
487
  agentId: string;
488
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
489
+ id: string;
490
490
  agent: {
491
- email: string;
492
491
  id: string;
493
492
  createdAt: string | Date;
494
493
  updatedAt: string | Date;
495
494
  firstName: string;
496
495
  lastName: string;
497
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
496
+ email: string;
498
497
  phoneNumbers?: {
499
498
  id: string;
500
499
  phoneNumber: string;
501
500
  description?: string | null | undefined;
502
501
  isPrimary?: boolean | undefined;
503
502
  }[] | undefined;
503
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
504
504
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
505
505
  canImpersonateUsers?: {
506
506
  id: string;
@@ -508,28 +508,92 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
508
508
  lastName: string;
509
509
  }[] | undefined;
510
510
  };
511
+ leadDistributionConfigId?: string | null | undefined;
511
512
  companyId?: string | null | undefined;
512
513
  company?: {
513
- name: string;
514
514
  id: string;
515
+ name: string;
515
516
  createdAt: string | Date;
516
517
  updatedAt: string | Date;
517
518
  } | null | undefined;
518
- leadDistributionConfigId?: string | null | undefined;
519
519
  }[];
520
520
  totalCount: number;
521
521
  skip: number;
522
522
  currentPage: number;
523
523
  totalPages: number;
524
524
  }>;
525
+ export declare const BatchUpdateAgentLeadDistributionSchema: z.ZodEffects<z.ZodObject<{
526
+ agentIds: z.ZodArray<z.ZodString, "many">;
527
+ data: z.ZodObject<{
528
+ status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>>;
529
+ leadDistributionConfigId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
530
+ companyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
531
+ }, "strip", z.ZodTypeAny, {
532
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
533
+ leadDistributionConfigId?: string | null | undefined;
534
+ companyId?: string | null | undefined;
535
+ }, {
536
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
537
+ leadDistributionConfigId?: string | null | undefined;
538
+ companyId?: string | null | undefined;
539
+ }>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ agentIds: string[];
542
+ data: {
543
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
544
+ leadDistributionConfigId?: string | null | undefined;
545
+ companyId?: string | null | undefined;
546
+ };
547
+ }, {
548
+ agentIds: string[];
549
+ data: {
550
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
551
+ leadDistributionConfigId?: string | null | undefined;
552
+ companyId?: string | null | undefined;
553
+ };
554
+ }>, {
555
+ agentIds: string[];
556
+ data: {
557
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
558
+ leadDistributionConfigId?: string | null | undefined;
559
+ companyId?: string | null | undefined;
560
+ };
561
+ }, {
562
+ agentIds: string[];
563
+ data: {
564
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
565
+ leadDistributionConfigId?: string | null | undefined;
566
+ companyId?: string | null | undefined;
567
+ };
568
+ }>;
569
+ export declare const BatchDeleteAgentLeadDistributionSchema: z.ZodObject<{
570
+ agentIds: z.ZodArray<z.ZodString, "many">;
571
+ }, "strip", z.ZodTypeAny, {
572
+ agentIds: string[];
573
+ }, {
574
+ agentIds: string[];
575
+ }>;
576
+ export declare const BatchResultSchema: z.ZodObject<{
577
+ affectedCount: z.ZodNumber;
578
+ }, "strip", z.ZodTypeAny, {
579
+ affectedCount: number;
580
+ }, {
581
+ affectedCount: number;
582
+ }>;
525
583
  export type AgentLeadDistribution = z.infer<typeof AgentLeadDistributionSchema>;
526
584
  export type AgentLeadDistributionWithAgent = z.infer<typeof AgentLeadDistributionWithAgentSchema>;
527
585
  export type CreateAgentLeadDistribution = z.infer<typeof CreateAgentLeadDistributionSchema>;
528
586
  export type UpdateAgentLeadDistribution = z.infer<typeof UpdateAgentLeadDistributionSchema>;
529
587
  export type FilterAgentLeadDistribution = z.infer<typeof FilterAgentLeadDistributionSchema>;
530
588
  export type PaginatedAgentLeadDistributionResponse = z.infer<typeof PaginatedAgentLeadDistributionResponseSchema>;
589
+ export type BatchUpdateAgentLeadDistribution = z.infer<typeof BatchUpdateAgentLeadDistributionSchema>;
590
+ export type BatchDeleteAgentLeadDistribution = z.infer<typeof BatchDeleteAgentLeadDistributionSchema>;
591
+ export type BatchResult = z.infer<typeof BatchResultSchema>;
531
592
  export declare const agentLeadDistributionContract: {
532
593
  findAll: {
594
+ metadata: {
595
+ tags: string[];
596
+ };
533
597
  query: z.ZodObject<{
534
598
  limit: z.ZodDefault<z.ZodNumber>;
535
599
  page: z.ZodDefault<z.ZodNumber>;
@@ -539,23 +603,20 @@ export declare const agentLeadDistributionContract: {
539
603
  leadDistributionConfigId: z.ZodOptional<z.ZodString>;
540
604
  companyId: z.ZodOptional<z.ZodString>;
541
605
  }, "strip", z.ZodTypeAny, {
542
- page: number;
543
606
  limit: number;
544
- status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
607
+ page: number;
545
608
  agentId?: string | undefined;
546
- companyId?: string | undefined;
609
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
547
610
  leadDistributionConfigId?: string | undefined;
611
+ companyId?: string | undefined;
548
612
  }, {
549
- page?: number | undefined;
550
- limit?: number | undefined;
551
- status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
552
613
  agentId?: string | undefined;
553
- companyId?: string | undefined;
614
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
554
615
  leadDistributionConfigId?: string | undefined;
616
+ companyId?: string | undefined;
617
+ limit?: number | undefined;
618
+ page?: number | undefined;
555
619
  }>;
556
- metadata: {
557
- tags: string[];
558
- };
559
620
  summary: "List all agent lead distribution records";
560
621
  method: "GET";
561
622
  path: "/v2/agent-lead-distribution";
@@ -647,13 +708,13 @@ export declare const agentLeadDistributionContract: {
647
708
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
648
709
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
649
710
  }, "strip", z.ZodTypeAny, {
650
- name: string;
651
711
  id: string;
712
+ name: string;
652
713
  createdAt: string;
653
714
  updatedAt: string;
654
715
  }, {
655
- name: string;
656
716
  id: string;
717
+ name: string;
657
718
  createdAt: string | Date;
658
719
  updatedAt: string | Date;
659
720
  }>>>;
@@ -698,12 +759,12 @@ export declare const agentLeadDistributionContract: {
698
759
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
699
760
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
700
761
  }, "strip", z.ZodTypeAny, {
701
- email: string;
702
762
  id: string;
703
763
  createdAt: string;
704
764
  updatedAt: string;
705
765
  firstName: string;
706
766
  lastName: string;
767
+ email: string;
707
768
  phoneNumbers: {
708
769
  id: string;
709
770
  phoneNumber: string;
@@ -718,19 +779,19 @@ export declare const agentLeadDistributionContract: {
718
779
  lastName: string;
719
780
  }[] | undefined;
720
781
  }, {
721
- email: string;
722
782
  id: string;
723
783
  createdAt: string | Date;
724
784
  updatedAt: string | Date;
725
785
  firstName: string;
726
786
  lastName: string;
727
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
787
+ email: string;
728
788
  phoneNumbers?: {
729
789
  id: string;
730
790
  phoneNumber: string;
731
791
  description?: string | null | undefined;
732
792
  isPrimary?: boolean | undefined;
733
793
  }[] | undefined;
794
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
734
795
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
735
796
  canImpersonateUsers?: {
736
797
  id: string;
@@ -739,16 +800,16 @@ export declare const agentLeadDistributionContract: {
739
800
  }[] | undefined;
740
801
  }>;
741
802
  }, "strip", z.ZodTypeAny, {
742
- id: string;
743
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
744
803
  agentId: string;
804
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
805
+ id: string;
745
806
  agent: {
746
- email: string;
747
807
  id: string;
748
808
  createdAt: string;
749
809
  updatedAt: string;
750
810
  firstName: string;
751
811
  lastName: string;
812
+ email: string;
752
813
  phoneNumbers: {
753
814
  id: string;
754
815
  phoneNumber: string;
@@ -763,32 +824,32 @@ export declare const agentLeadDistributionContract: {
763
824
  lastName: string;
764
825
  }[] | undefined;
765
826
  };
827
+ leadDistributionConfigId?: string | null | undefined;
766
828
  companyId?: string | null | undefined;
767
829
  company?: {
768
- name: string;
769
830
  id: string;
831
+ name: string;
770
832
  createdAt: string;
771
833
  updatedAt: string;
772
834
  } | null | undefined;
773
- leadDistributionConfigId?: string | null | undefined;
774
835
  }, {
775
- id: string;
776
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
777
836
  agentId: string;
837
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
838
+ id: string;
778
839
  agent: {
779
- email: string;
780
840
  id: string;
781
841
  createdAt: string | Date;
782
842
  updatedAt: string | Date;
783
843
  firstName: string;
784
844
  lastName: string;
785
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
845
+ email: string;
786
846
  phoneNumbers?: {
787
847
  id: string;
788
848
  phoneNumber: string;
789
849
  description?: string | null | undefined;
790
850
  isPrimary?: boolean | undefined;
791
851
  }[] | undefined;
852
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
792
853
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
793
854
  canImpersonateUsers?: {
794
855
  id: string;
@@ -796,14 +857,14 @@ export declare const agentLeadDistributionContract: {
796
857
  lastName: string;
797
858
  }[] | undefined;
798
859
  };
860
+ leadDistributionConfigId?: string | null | undefined;
799
861
  companyId?: string | null | undefined;
800
862
  company?: {
801
- name: string;
802
863
  id: string;
864
+ name: string;
803
865
  createdAt: string | Date;
804
866
  updatedAt: string | Date;
805
867
  } | null | undefined;
806
- leadDistributionConfigId?: string | null | undefined;
807
868
  }>, "many">;
808
869
  totalCount: z.ZodNumber;
809
870
  limit: z.ZodNumber;
@@ -813,16 +874,16 @@ export declare const agentLeadDistributionContract: {
813
874
  }, "strip", z.ZodTypeAny, {
814
875
  limit: number;
815
876
  items: {
816
- id: string;
817
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
818
877
  agentId: string;
878
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
879
+ id: string;
819
880
  agent: {
820
- email: string;
821
881
  id: string;
822
882
  createdAt: string;
823
883
  updatedAt: string;
824
884
  firstName: string;
825
885
  lastName: string;
886
+ email: string;
826
887
  phoneNumbers: {
827
888
  id: string;
828
889
  phoneNumber: string;
@@ -837,14 +898,14 @@ export declare const agentLeadDistributionContract: {
837
898
  lastName: string;
838
899
  }[] | undefined;
839
900
  };
901
+ leadDistributionConfigId?: string | null | undefined;
840
902
  companyId?: string | null | undefined;
841
903
  company?: {
842
- name: string;
843
904
  id: string;
905
+ name: string;
844
906
  createdAt: string;
845
907
  updatedAt: string;
846
908
  } | null | undefined;
847
- leadDistributionConfigId?: string | null | undefined;
848
909
  }[];
849
910
  totalCount: number;
850
911
  skip: number;
@@ -853,23 +914,23 @@ export declare const agentLeadDistributionContract: {
853
914
  }, {
854
915
  limit: number;
855
916
  items: {
856
- id: string;
857
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
858
917
  agentId: string;
918
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
919
+ id: string;
859
920
  agent: {
860
- email: string;
861
921
  id: string;
862
922
  createdAt: string | Date;
863
923
  updatedAt: string | Date;
864
924
  firstName: string;
865
925
  lastName: string;
866
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
926
+ email: string;
867
927
  phoneNumbers?: {
868
928
  id: string;
869
929
  phoneNumber: string;
870
930
  description?: string | null | undefined;
871
931
  isPrimary?: boolean | undefined;
872
932
  }[] | undefined;
933
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
873
934
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
874
935
  canImpersonateUsers?: {
875
936
  id: string;
@@ -877,14 +938,14 @@ export declare const agentLeadDistributionContract: {
877
938
  lastName: string;
878
939
  }[] | undefined;
879
940
  };
941
+ leadDistributionConfigId?: string | null | undefined;
880
942
  companyId?: string | null | undefined;
881
943
  company?: {
882
- name: string;
883
944
  id: string;
945
+ name: string;
884
946
  createdAt: string | Date;
885
947
  updatedAt: string | Date;
886
948
  } | null | undefined;
887
- leadDistributionConfigId?: string | null | undefined;
888
949
  }[];
889
950
  totalCount: number;
890
951
  skip: number;
@@ -1019,13 +1080,13 @@ export declare const agentLeadDistributionContract: {
1019
1080
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1020
1081
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1021
1082
  }, "strip", z.ZodTypeAny, {
1022
- name: string;
1023
1083
  id: string;
1084
+ name: string;
1024
1085
  createdAt: string;
1025
1086
  updatedAt: string;
1026
1087
  }, {
1027
- name: string;
1028
1088
  id: string;
1089
+ name: string;
1029
1090
  createdAt: string | Date;
1030
1091
  updatedAt: string | Date;
1031
1092
  }>>>;
@@ -1070,12 +1131,12 @@ export declare const agentLeadDistributionContract: {
1070
1131
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1071
1132
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1072
1133
  }, "strip", z.ZodTypeAny, {
1073
- email: string;
1074
1134
  id: string;
1075
1135
  createdAt: string;
1076
1136
  updatedAt: string;
1077
1137
  firstName: string;
1078
1138
  lastName: string;
1139
+ email: string;
1079
1140
  phoneNumbers: {
1080
1141
  id: string;
1081
1142
  phoneNumber: string;
@@ -1090,19 +1151,19 @@ export declare const agentLeadDistributionContract: {
1090
1151
  lastName: string;
1091
1152
  }[] | undefined;
1092
1153
  }, {
1093
- email: string;
1094
1154
  id: string;
1095
1155
  createdAt: string | Date;
1096
1156
  updatedAt: string | Date;
1097
1157
  firstName: string;
1098
1158
  lastName: string;
1099
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1159
+ email: string;
1100
1160
  phoneNumbers?: {
1101
1161
  id: string;
1102
1162
  phoneNumber: string;
1103
1163
  description?: string | null | undefined;
1104
1164
  isPrimary?: boolean | undefined;
1105
1165
  }[] | undefined;
1166
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1106
1167
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
1107
1168
  canImpersonateUsers?: {
1108
1169
  id: string;
@@ -1111,16 +1172,16 @@ export declare const agentLeadDistributionContract: {
1111
1172
  }[] | undefined;
1112
1173
  }>;
1113
1174
  }, "strip", z.ZodTypeAny, {
1114
- id: string;
1115
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1116
1175
  agentId: string;
1176
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1177
+ id: string;
1117
1178
  agent: {
1118
- email: string;
1119
1179
  id: string;
1120
1180
  createdAt: string;
1121
1181
  updatedAt: string;
1122
1182
  firstName: string;
1123
1183
  lastName: string;
1184
+ email: string;
1124
1185
  phoneNumbers: {
1125
1186
  id: string;
1126
1187
  phoneNumber: string;
@@ -1135,32 +1196,32 @@ export declare const agentLeadDistributionContract: {
1135
1196
  lastName: string;
1136
1197
  }[] | undefined;
1137
1198
  };
1199
+ leadDistributionConfigId?: string | null | undefined;
1138
1200
  companyId?: string | null | undefined;
1139
1201
  company?: {
1140
- name: string;
1141
1202
  id: string;
1203
+ name: string;
1142
1204
  createdAt: string;
1143
1205
  updatedAt: string;
1144
1206
  } | null | undefined;
1145
- leadDistributionConfigId?: string | null | undefined;
1146
1207
  }, {
1147
- id: string;
1148
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1149
1208
  agentId: string;
1209
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1210
+ id: string;
1150
1211
  agent: {
1151
- email: string;
1152
1212
  id: string;
1153
1213
  createdAt: string | Date;
1154
1214
  updatedAt: string | Date;
1155
1215
  firstName: string;
1156
1216
  lastName: string;
1157
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1217
+ email: string;
1158
1218
  phoneNumbers?: {
1159
1219
  id: string;
1160
1220
  phoneNumber: string;
1161
1221
  description?: string | null | undefined;
1162
1222
  isPrimary?: boolean | undefined;
1163
1223
  }[] | undefined;
1224
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1164
1225
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
1165
1226
  canImpersonateUsers?: {
1166
1227
  id: string;
@@ -1168,14 +1229,14 @@ export declare const agentLeadDistributionContract: {
1168
1229
  lastName: string;
1169
1230
  }[] | undefined;
1170
1231
  };
1232
+ leadDistributionConfigId?: string | null | undefined;
1171
1233
  companyId?: string | null | undefined;
1172
1234
  company?: {
1173
- name: string;
1174
1235
  id: string;
1236
+ name: string;
1175
1237
  createdAt: string | Date;
1176
1238
  updatedAt: string | Date;
1177
1239
  } | null | undefined;
1178
- leadDistributionConfigId?: string | null | undefined;
1179
1240
  }>;
1180
1241
  404: z.ZodObject<{
1181
1242
  statusCode: z.ZodNumber;
@@ -1241,15 +1302,15 @@ export declare const agentLeadDistributionContract: {
1241
1302
  leadDistributionConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1242
1303
  companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1243
1304
  }, "strip", z.ZodTypeAny, {
1244
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1245
1305
  agentId: string;
1246
- companyId?: string | null | undefined;
1306
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1247
1307
  leadDistributionConfigId?: string | null | undefined;
1308
+ companyId?: string | null | undefined;
1248
1309
  }, {
1249
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1250
1310
  agentId: string;
1251
- companyId?: string | null | undefined;
1311
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1252
1312
  leadDistributionConfigId?: string | null | undefined;
1313
+ companyId?: string | null | undefined;
1253
1314
  }>;
1254
1315
  path: "/v2/agent-lead-distribution";
1255
1316
  responses: {
@@ -1339,38 +1400,38 @@ export declare const agentLeadDistributionContract: {
1339
1400
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1340
1401
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1341
1402
  }, "strip", z.ZodTypeAny, {
1342
- name: string;
1343
1403
  id: string;
1404
+ name: string;
1344
1405
  createdAt: string;
1345
1406
  updatedAt: string;
1346
1407
  }, {
1347
- name: string;
1348
1408
  id: string;
1409
+ name: string;
1349
1410
  createdAt: string | Date;
1350
1411
  updatedAt: string | Date;
1351
1412
  }>>>;
1352
1413
  }, "strip", z.ZodTypeAny, {
1353
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1354
1414
  agentId: string;
1415
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1416
+ leadDistributionConfigId?: string | null | undefined;
1355
1417
  companyId?: string | null | undefined;
1356
1418
  company?: {
1357
- name: string;
1358
1419
  id: string;
1420
+ name: string;
1359
1421
  createdAt: string;
1360
1422
  updatedAt: string;
1361
1423
  } | null | undefined;
1362
- leadDistributionConfigId?: string | null | undefined;
1363
1424
  }, {
1364
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1365
1425
  agentId: string;
1426
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1427
+ leadDistributionConfigId?: string | null | undefined;
1366
1428
  companyId?: string | null | undefined;
1367
1429
  company?: {
1368
- name: string;
1369
1430
  id: string;
1431
+ name: string;
1370
1432
  createdAt: string | Date;
1371
1433
  updatedAt: string | Date;
1372
1434
  } | null | undefined;
1373
- leadDistributionConfigId?: string | null | undefined;
1374
1435
  }>;
1375
1436
  403: z.ZodObject<{
1376
1437
  statusCode: z.ZodNumber;
@@ -1418,12 +1479,12 @@ export declare const agentLeadDistributionContract: {
1418
1479
  companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1419
1480
  }, "strip", z.ZodTypeAny, {
1420
1481
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1421
- companyId?: string | null | undefined;
1422
1482
  leadDistributionConfigId?: string | null | undefined;
1483
+ companyId?: string | null | undefined;
1423
1484
  }, {
1424
1485
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1425
- companyId?: string | null | undefined;
1426
1486
  leadDistributionConfigId?: string | null | undefined;
1487
+ companyId?: string | null | undefined;
1427
1488
  }>;
1428
1489
  path: "/v2/agent-lead-distribution/:agentId";
1429
1490
  responses: {
@@ -1513,38 +1574,38 @@ export declare const agentLeadDistributionContract: {
1513
1574
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1514
1575
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1515
1576
  }, "strip", z.ZodTypeAny, {
1516
- name: string;
1517
1577
  id: string;
1578
+ name: string;
1518
1579
  createdAt: string;
1519
1580
  updatedAt: string;
1520
1581
  }, {
1521
- name: string;
1522
1582
  id: string;
1583
+ name: string;
1523
1584
  createdAt: string | Date;
1524
1585
  updatedAt: string | Date;
1525
1586
  }>>>;
1526
1587
  }, "strip", z.ZodTypeAny, {
1527
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1528
1588
  agentId: string;
1589
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1590
+ leadDistributionConfigId?: string | null | undefined;
1529
1591
  companyId?: string | null | undefined;
1530
1592
  company?: {
1531
- name: string;
1532
1593
  id: string;
1594
+ name: string;
1533
1595
  createdAt: string;
1534
1596
  updatedAt: string;
1535
1597
  } | null | undefined;
1536
- leadDistributionConfigId?: string | null | undefined;
1537
1598
  }, {
1538
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1539
1599
  agentId: string;
1600
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1601
+ leadDistributionConfigId?: string | null | undefined;
1540
1602
  companyId?: string | null | undefined;
1541
1603
  company?: {
1542
- name: string;
1543
1604
  id: string;
1605
+ name: string;
1544
1606
  createdAt: string | Date;
1545
1607
  updatedAt: string | Date;
1546
1608
  } | null | undefined;
1547
- leadDistributionConfigId?: string | null | undefined;
1548
1609
  }>;
1549
1610
  404: z.ZodObject<{
1550
1611
  statusCode: z.ZodNumber;
@@ -1742,5 +1803,340 @@ export declare const agentLeadDistributionContract: {
1742
1803
  }>;
1743
1804
  };
1744
1805
  };
1806
+ batchUpdate: {
1807
+ metadata: {
1808
+ tags: string[];
1809
+ };
1810
+ summary: "Batch update agent lead distribution records";
1811
+ method: "PATCH";
1812
+ body: z.ZodEffects<z.ZodObject<{
1813
+ agentIds: z.ZodArray<z.ZodString, "many">;
1814
+ data: z.ZodObject<{
1815
+ status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>>;
1816
+ leadDistributionConfigId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1817
+ companyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1818
+ }, "strip", z.ZodTypeAny, {
1819
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
1820
+ leadDistributionConfigId?: string | null | undefined;
1821
+ companyId?: string | null | undefined;
1822
+ }, {
1823
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
1824
+ leadDistributionConfigId?: string | null | undefined;
1825
+ companyId?: string | null | undefined;
1826
+ }>;
1827
+ }, "strip", z.ZodTypeAny, {
1828
+ agentIds: string[];
1829
+ data: {
1830
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
1831
+ leadDistributionConfigId?: string | null | undefined;
1832
+ companyId?: string | null | undefined;
1833
+ };
1834
+ }, {
1835
+ agentIds: string[];
1836
+ data: {
1837
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
1838
+ leadDistributionConfigId?: string | null | undefined;
1839
+ companyId?: string | null | undefined;
1840
+ };
1841
+ }>, {
1842
+ agentIds: string[];
1843
+ data: {
1844
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
1845
+ leadDistributionConfigId?: string | null | undefined;
1846
+ companyId?: string | null | undefined;
1847
+ };
1848
+ }, {
1849
+ agentIds: string[];
1850
+ data: {
1851
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
1852
+ leadDistributionConfigId?: string | null | undefined;
1853
+ companyId?: string | null | undefined;
1854
+ };
1855
+ }>;
1856
+ path: "/v2/agent-lead-distribution/batch";
1857
+ responses: {
1858
+ 400: z.ZodObject<{
1859
+ statusCode: z.ZodNumber;
1860
+ message: z.ZodString;
1861
+ code: z.ZodString;
1862
+ details: z.ZodOptional<z.ZodUnknown>;
1863
+ timestamp: z.ZodString;
1864
+ path: z.ZodString;
1865
+ correlationId: z.ZodOptional<z.ZodString>;
1866
+ }, "strip", z.ZodTypeAny, {
1867
+ code: string;
1868
+ path: string;
1869
+ message: string;
1870
+ statusCode: number;
1871
+ timestamp: string;
1872
+ details?: unknown;
1873
+ correlationId?: string | undefined;
1874
+ }, {
1875
+ code: string;
1876
+ path: string;
1877
+ message: string;
1878
+ statusCode: number;
1879
+ timestamp: string;
1880
+ details?: unknown;
1881
+ correlationId?: string | undefined;
1882
+ }>;
1883
+ 401: z.ZodObject<{
1884
+ statusCode: z.ZodNumber;
1885
+ message: z.ZodString;
1886
+ code: z.ZodString;
1887
+ details: z.ZodOptional<z.ZodUnknown>;
1888
+ timestamp: z.ZodString;
1889
+ path: z.ZodString;
1890
+ correlationId: z.ZodOptional<z.ZodString>;
1891
+ }, "strip", z.ZodTypeAny, {
1892
+ code: string;
1893
+ path: string;
1894
+ message: string;
1895
+ statusCode: number;
1896
+ timestamp: string;
1897
+ details?: unknown;
1898
+ correlationId?: string | undefined;
1899
+ }, {
1900
+ code: string;
1901
+ path: string;
1902
+ message: string;
1903
+ statusCode: number;
1904
+ timestamp: string;
1905
+ details?: unknown;
1906
+ correlationId?: string | undefined;
1907
+ }>;
1908
+ 500: z.ZodObject<{
1909
+ statusCode: z.ZodNumber;
1910
+ message: z.ZodString;
1911
+ code: z.ZodString;
1912
+ details: z.ZodOptional<z.ZodUnknown>;
1913
+ timestamp: z.ZodString;
1914
+ path: z.ZodString;
1915
+ correlationId: z.ZodOptional<z.ZodString>;
1916
+ }, "strip", z.ZodTypeAny, {
1917
+ code: string;
1918
+ path: string;
1919
+ message: string;
1920
+ statusCode: number;
1921
+ timestamp: string;
1922
+ details?: unknown;
1923
+ correlationId?: string | undefined;
1924
+ }, {
1925
+ code: string;
1926
+ path: string;
1927
+ message: string;
1928
+ statusCode: number;
1929
+ timestamp: string;
1930
+ details?: unknown;
1931
+ correlationId?: string | undefined;
1932
+ }>;
1933
+ 200: z.ZodObject<{
1934
+ affectedCount: z.ZodNumber;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ affectedCount: number;
1937
+ }, {
1938
+ affectedCount: number;
1939
+ }>;
1940
+ 403: z.ZodObject<{
1941
+ statusCode: z.ZodNumber;
1942
+ message: z.ZodString;
1943
+ code: z.ZodString;
1944
+ details: z.ZodOptional<z.ZodUnknown>;
1945
+ timestamp: z.ZodString;
1946
+ path: z.ZodString;
1947
+ correlationId: z.ZodOptional<z.ZodString>;
1948
+ }, "strip", z.ZodTypeAny, {
1949
+ code: string;
1950
+ path: string;
1951
+ message: string;
1952
+ statusCode: number;
1953
+ timestamp: string;
1954
+ details?: unknown;
1955
+ correlationId?: string | undefined;
1956
+ }, {
1957
+ code: string;
1958
+ path: string;
1959
+ message: string;
1960
+ statusCode: number;
1961
+ timestamp: string;
1962
+ details?: unknown;
1963
+ correlationId?: string | undefined;
1964
+ }>;
1965
+ 404: z.ZodObject<{
1966
+ statusCode: z.ZodNumber;
1967
+ message: z.ZodString;
1968
+ code: z.ZodString;
1969
+ details: z.ZodOptional<z.ZodUnknown>;
1970
+ timestamp: z.ZodString;
1971
+ path: z.ZodString;
1972
+ correlationId: z.ZodOptional<z.ZodString>;
1973
+ }, "strip", z.ZodTypeAny, {
1974
+ code: string;
1975
+ path: string;
1976
+ message: string;
1977
+ statusCode: number;
1978
+ timestamp: string;
1979
+ details?: unknown;
1980
+ correlationId?: string | undefined;
1981
+ }, {
1982
+ code: string;
1983
+ path: string;
1984
+ message: string;
1985
+ statusCode: number;
1986
+ timestamp: string;
1987
+ details?: unknown;
1988
+ correlationId?: string | undefined;
1989
+ }>;
1990
+ };
1991
+ };
1992
+ batchDelete: {
1993
+ metadata: {
1994
+ tags: string[];
1995
+ };
1996
+ summary: "Batch delete agent lead distribution records";
1997
+ method: "DELETE";
1998
+ body: z.ZodObject<{
1999
+ agentIds: z.ZodArray<z.ZodString, "many">;
2000
+ }, "strip", z.ZodTypeAny, {
2001
+ agentIds: string[];
2002
+ }, {
2003
+ agentIds: string[];
2004
+ }>;
2005
+ path: "/v2/agent-lead-distribution/batch";
2006
+ responses: {
2007
+ 400: z.ZodObject<{
2008
+ statusCode: z.ZodNumber;
2009
+ message: z.ZodString;
2010
+ code: z.ZodString;
2011
+ details: z.ZodOptional<z.ZodUnknown>;
2012
+ timestamp: z.ZodString;
2013
+ path: z.ZodString;
2014
+ correlationId: z.ZodOptional<z.ZodString>;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ code: string;
2017
+ path: string;
2018
+ message: string;
2019
+ statusCode: number;
2020
+ timestamp: string;
2021
+ details?: unknown;
2022
+ correlationId?: string | undefined;
2023
+ }, {
2024
+ code: string;
2025
+ path: string;
2026
+ message: string;
2027
+ statusCode: number;
2028
+ timestamp: string;
2029
+ details?: unknown;
2030
+ correlationId?: string | undefined;
2031
+ }>;
2032
+ 401: z.ZodObject<{
2033
+ statusCode: z.ZodNumber;
2034
+ message: z.ZodString;
2035
+ code: z.ZodString;
2036
+ details: z.ZodOptional<z.ZodUnknown>;
2037
+ timestamp: z.ZodString;
2038
+ path: z.ZodString;
2039
+ correlationId: z.ZodOptional<z.ZodString>;
2040
+ }, "strip", z.ZodTypeAny, {
2041
+ code: string;
2042
+ path: string;
2043
+ message: string;
2044
+ statusCode: number;
2045
+ timestamp: string;
2046
+ details?: unknown;
2047
+ correlationId?: string | undefined;
2048
+ }, {
2049
+ code: string;
2050
+ path: string;
2051
+ message: string;
2052
+ statusCode: number;
2053
+ timestamp: string;
2054
+ details?: unknown;
2055
+ correlationId?: string | undefined;
2056
+ }>;
2057
+ 500: z.ZodObject<{
2058
+ statusCode: z.ZodNumber;
2059
+ message: z.ZodString;
2060
+ code: z.ZodString;
2061
+ details: z.ZodOptional<z.ZodUnknown>;
2062
+ timestamp: z.ZodString;
2063
+ path: z.ZodString;
2064
+ correlationId: z.ZodOptional<z.ZodString>;
2065
+ }, "strip", z.ZodTypeAny, {
2066
+ code: string;
2067
+ path: string;
2068
+ message: string;
2069
+ statusCode: number;
2070
+ timestamp: string;
2071
+ details?: unknown;
2072
+ correlationId?: string | undefined;
2073
+ }, {
2074
+ code: string;
2075
+ path: string;
2076
+ message: string;
2077
+ statusCode: number;
2078
+ timestamp: string;
2079
+ details?: unknown;
2080
+ correlationId?: string | undefined;
2081
+ }>;
2082
+ 200: z.ZodObject<{
2083
+ affectedCount: z.ZodNumber;
2084
+ }, "strip", z.ZodTypeAny, {
2085
+ affectedCount: number;
2086
+ }, {
2087
+ affectedCount: number;
2088
+ }>;
2089
+ 403: z.ZodObject<{
2090
+ statusCode: z.ZodNumber;
2091
+ message: z.ZodString;
2092
+ code: z.ZodString;
2093
+ details: z.ZodOptional<z.ZodUnknown>;
2094
+ timestamp: z.ZodString;
2095
+ path: z.ZodString;
2096
+ correlationId: z.ZodOptional<z.ZodString>;
2097
+ }, "strip", z.ZodTypeAny, {
2098
+ code: string;
2099
+ path: string;
2100
+ message: string;
2101
+ statusCode: number;
2102
+ timestamp: string;
2103
+ details?: unknown;
2104
+ correlationId?: string | undefined;
2105
+ }, {
2106
+ code: string;
2107
+ path: string;
2108
+ message: string;
2109
+ statusCode: number;
2110
+ timestamp: string;
2111
+ details?: unknown;
2112
+ correlationId?: string | undefined;
2113
+ }>;
2114
+ 404: z.ZodObject<{
2115
+ statusCode: z.ZodNumber;
2116
+ message: z.ZodString;
2117
+ code: z.ZodString;
2118
+ details: z.ZodOptional<z.ZodUnknown>;
2119
+ timestamp: z.ZodString;
2120
+ path: z.ZodString;
2121
+ correlationId: z.ZodOptional<z.ZodString>;
2122
+ }, "strip", z.ZodTypeAny, {
2123
+ code: string;
2124
+ path: string;
2125
+ message: string;
2126
+ statusCode: number;
2127
+ timestamp: string;
2128
+ details?: unknown;
2129
+ correlationId?: string | undefined;
2130
+ }, {
2131
+ code: string;
2132
+ path: string;
2133
+ message: string;
2134
+ statusCode: number;
2135
+ timestamp: string;
2136
+ details?: unknown;
2137
+ correlationId?: string | undefined;
2138
+ }>;
2139
+ };
2140
+ };
1745
2141
  };
1746
2142
  //# sourceMappingURL=agent-lead-distribution.contract.d.ts.map