@dakkitor/api-contracts 1.1.79 → 1.1.81

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/first-agent.abilities.json +2 -0
  2. package/dist/actives/actives.contract.d.ts +2517 -2227
  3. package/dist/actives/actives.contract.d.ts.map +1 -1
  4. package/dist/agent-client-links/agent-client-links.contract.d.ts +34 -34
  5. package/dist/bookings/bookings.contract.d.ts +2216 -1951
  6. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  7. package/dist/call-history/call-history.contract.d.ts +74 -74
  8. package/dist/client-contacts/client-contacts.contract.d.ts +32 -32
  9. package/dist/clients/clients.contract.d.ts +18 -18
  10. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +600 -600
  11. package/dist/collaborations/collaborations.contract.d.ts +766 -491
  12. package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
  13. package/dist/collaborations/collaborations.contract.js +10 -5
  14. package/dist/common/common-schemas.d.ts +69 -2
  15. package/dist/common/common-schemas.d.ts.map +1 -1
  16. package/dist/common/common-schemas.js +72 -1
  17. package/dist/companies/companies.contract.d.ts +2 -2
  18. package/dist/cron-executions/cron-executions.contract.d.ts +26 -26
  19. package/dist/curated-workers/curated-workers.contract.d.ts +312 -285
  20. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  21. package/dist/curated-workers/curated-workers.contract.js +7 -20
  22. package/dist/dashboards/dashboard.contract.d.ts +306 -0
  23. package/dist/dashboards/dashboard.contract.d.ts.map +1 -0
  24. package/dist/dashboards/dashboard.contract.js +85 -0
  25. package/dist/index.d.ts +4 -1
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +4 -1
  28. package/dist/jobs/jobs.contract.d.ts +687 -687
  29. package/dist/lead-assignments/lead-assignments.contract.d.ts +74 -74
  30. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +16 -16
  31. package/dist/leads/leads.contract.d.ts +48 -48
  32. package/dist/locations/locations.contract.d.ts +12 -12
  33. package/dist/users/users.contract.d.ts +12 -18
  34. package/dist/users/users.contract.d.ts.map +1 -1
  35. package/dist/users/users.contract.js +3 -12
  36. package/dist/workers/workers.contract.d.ts +352 -181
  37. package/dist/workers/workers.contract.d.ts.map +1 -1
  38. package/dist/workers/workers.contract.js +27 -42
  39. package/package.json +1 -1
@@ -73,7 +73,7 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
73
73
  firstName: z.ZodString;
74
74
  lastName: z.ZodString;
75
75
  email: z.ZodString;
76
- phone: z.ZodEffects<z.ZodString, string, string>;
76
+ phone: z.ZodString;
77
77
  roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI"]>, "many">>;
78
78
  office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
79
79
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -100,8 +100,8 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
100
100
  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;
101
101
  }>;
102
102
  }, "strip", z.ZodTypeAny, {
103
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
104
103
  id: string;
104
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
105
105
  agentId: string;
106
106
  agent: {
107
107
  id: string;
@@ -123,8 +123,8 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
123
123
  companyId?: string | null | undefined;
124
124
  leadDistributionConfigId?: string | null | undefined;
125
125
  }, {
126
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
127
126
  id: string;
127
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
128
128
  agentId: string;
129
129
  agent: {
130
130
  id: string;
@@ -227,7 +227,7 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
227
227
  firstName: z.ZodString;
228
228
  lastName: z.ZodString;
229
229
  email: z.ZodString;
230
- phone: z.ZodEffects<z.ZodString, string, string>;
230
+ phone: z.ZodString;
231
231
  roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI"]>, "many">>;
232
232
  office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
233
233
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -254,8 +254,8 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
254
254
  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;
255
255
  }>;
256
256
  }, "strip", z.ZodTypeAny, {
257
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
258
257
  id: string;
258
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
259
259
  agentId: string;
260
260
  agent: {
261
261
  id: string;
@@ -277,8 +277,8 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
277
277
  companyId?: string | null | undefined;
278
278
  leadDistributionConfigId?: string | null | undefined;
279
279
  }, {
280
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
281
280
  id: string;
281
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
282
282
  agentId: string;
283
283
  agent: {
284
284
  id: string;
@@ -308,8 +308,8 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
308
308
  }, "strip", z.ZodTypeAny, {
309
309
  limit: number;
310
310
  items: {
311
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
312
311
  id: string;
312
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
313
313
  agentId: string;
314
314
  agent: {
315
315
  id: string;
@@ -338,8 +338,8 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
338
338
  }, {
339
339
  limit: number;
340
340
  items: {
341
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
342
341
  id: string;
342
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
343
343
  agentId: string;
344
344
  agent: {
345
345
  id: string;
@@ -508,7 +508,7 @@ export declare const agentLeadDistributionContract: {
508
508
  firstName: z.ZodString;
509
509
  lastName: z.ZodString;
510
510
  email: z.ZodString;
511
- phone: z.ZodEffects<z.ZodString, string, string>;
511
+ phone: z.ZodString;
512
512
  roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI"]>, "many">>;
513
513
  office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
514
514
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -535,8 +535,8 @@ export declare const agentLeadDistributionContract: {
535
535
  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;
536
536
  }>;
537
537
  }, "strip", z.ZodTypeAny, {
538
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
539
538
  id: string;
539
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
540
540
  agentId: string;
541
541
  agent: {
542
542
  id: string;
@@ -558,8 +558,8 @@ export declare const agentLeadDistributionContract: {
558
558
  companyId?: string | null | undefined;
559
559
  leadDistributionConfigId?: string | null | undefined;
560
560
  }, {
561
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
562
561
  id: string;
562
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
563
563
  agentId: string;
564
564
  agent: {
565
565
  id: string;
@@ -589,8 +589,8 @@ export declare const agentLeadDistributionContract: {
589
589
  }, "strip", z.ZodTypeAny, {
590
590
  limit: number;
591
591
  items: {
592
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
593
592
  id: string;
593
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
594
594
  agentId: string;
595
595
  agent: {
596
596
  id: string;
@@ -619,8 +619,8 @@ export declare const agentLeadDistributionContract: {
619
619
  }, {
620
620
  limit: number;
621
621
  items: {
622
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
623
622
  id: string;
623
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
624
624
  agentId: string;
625
625
  agent: {
626
626
  id: string;
@@ -792,7 +792,7 @@ export declare const agentLeadDistributionContract: {
792
792
  firstName: z.ZodString;
793
793
  lastName: z.ZodString;
794
794
  email: z.ZodString;
795
- phone: z.ZodEffects<z.ZodString, string, string>;
795
+ phone: z.ZodString;
796
796
  roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI"]>, "many">>;
797
797
  office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
798
798
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -819,8 +819,8 @@ export declare const agentLeadDistributionContract: {
819
819
  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;
820
820
  }>;
821
821
  }, "strip", z.ZodTypeAny, {
822
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
823
822
  id: string;
823
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
824
824
  agentId: string;
825
825
  agent: {
826
826
  id: string;
@@ -842,8 +842,8 @@ export declare const agentLeadDistributionContract: {
842
842
  companyId?: string | null | undefined;
843
843
  leadDistributionConfigId?: string | null | undefined;
844
844
  }, {
845
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
846
845
  id: string;
846
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
847
847
  agentId: string;
848
848
  agent: {
849
849
  id: string;
@@ -31,12 +31,12 @@ export declare const LeadSchema: z.ZodObject<{
31
31
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
32
32
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
35
34
  id: string;
35
+ phoneNumber: string;
36
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
36
37
  createdAt: string;
37
38
  updatedAt: string;
38
39
  name: string;
39
- phoneNumber: string;
40
40
  source: string;
41
41
  qualityScore?: number | null | undefined;
42
42
  conversionRate?: number | null | undefined;
@@ -44,12 +44,12 @@ export declare const LeadSchema: z.ZodObject<{
44
44
  blacklistReason?: string | null | undefined;
45
45
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
46
46
  }, {
47
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
48
47
  id: string;
48
+ phoneNumber: string;
49
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
49
50
  createdAt: string | Date;
50
51
  updatedAt: string | Date;
51
52
  name: string;
52
- phoneNumber: string;
53
53
  source: string;
54
54
  qualityScore?: number | null | undefined;
55
55
  conversionRate?: number | null | undefined;
@@ -68,15 +68,15 @@ export declare const CreateLeadSchema: z.ZodObject<{
68
68
  blacklistReason: z.ZodOptional<z.ZodString>;
69
69
  source: z.ZodString;
70
70
  }, "strip", z.ZodTypeAny, {
71
- name: string;
72
71
  phoneNumber: string;
72
+ name: string;
73
73
  source: string;
74
74
  isBlacklisted: boolean;
75
75
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
76
76
  blacklistReason?: string | undefined;
77
77
  }, {
78
- name: string;
79
78
  phoneNumber: string;
79
+ name: string;
80
80
  source: string;
81
81
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
82
82
  blacklistReason?: string | undefined;
@@ -92,15 +92,15 @@ export declare const UpdateLeadSchema: z.ZodObject<{
92
92
  blacklistReason: z.ZodOptional<z.ZodString>;
93
93
  source: z.ZodOptional<z.ZodString>;
94
94
  }, "strip", z.ZodTypeAny, {
95
+ phoneNumber?: string | undefined;
95
96
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
96
97
  name?: string | undefined;
97
- phoneNumber?: string | undefined;
98
98
  source?: string | undefined;
99
99
  blacklistReason?: string | undefined;
100
100
  }, {
101
+ phoneNumber?: string | undefined;
101
102
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
102
103
  name?: string | undefined;
103
- phoneNumber?: string | undefined;
104
104
  source?: string | undefined;
105
105
  blacklistReason?: string | undefined;
106
106
  }>;
@@ -125,30 +125,30 @@ export declare const FilterLeadSchema: z.ZodObject<{
125
125
  }, "strip", z.ZodTypeAny, {
126
126
  limit: number;
127
127
  page: number;
128
+ phoneNumber?: string | null | undefined;
128
129
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
129
130
  name?: string | null | undefined;
130
- phoneNumber?: string | null | undefined;
131
131
  source?: string | null | undefined;
132
132
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
133
133
  minQualityScore?: number | null | undefined;
134
134
  maxQualityScore?: number | null | undefined;
135
135
  minConversionRate?: number | null | undefined;
136
136
  minTotalCalls?: number | null | undefined;
137
- sortBy?: "status" | "createdAt" | "updatedAt" | "name" | "phoneNumber" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
137
+ sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
138
138
  sortOrder?: "ASC" | "DESC" | null | undefined;
139
139
  }, {
140
+ phoneNumber?: string | null | undefined;
140
141
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
141
142
  limit?: number | undefined;
142
143
  page?: number | undefined;
143
144
  name?: string | null | undefined;
144
- phoneNumber?: string | null | undefined;
145
145
  source?: string | null | undefined;
146
146
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
147
147
  minQualityScore?: number | null | undefined;
148
148
  maxQualityScore?: number | null | undefined;
149
149
  minConversionRate?: number | null | undefined;
150
150
  minTotalCalls?: number | null | undefined;
151
- sortBy?: "status" | "createdAt" | "updatedAt" | "name" | "phoneNumber" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
151
+ sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
152
152
  sortOrder?: "ASC" | "DESC" | null | undefined;
153
153
  }>;
154
154
  /**
@@ -269,12 +269,12 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
269
269
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
270
270
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
271
271
  }, "strip", z.ZodTypeAny, {
272
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
273
272
  id: string;
273
+ phoneNumber: string;
274
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
274
275
  createdAt: string;
275
276
  updatedAt: string;
276
277
  name: string;
277
- phoneNumber: string;
278
278
  source: string;
279
279
  qualityScore?: number | null | undefined;
280
280
  conversionRate?: number | null | undefined;
@@ -282,12 +282,12 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
282
282
  blacklistReason?: string | null | undefined;
283
283
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
284
284
  }, {
285
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
286
285
  id: string;
286
+ phoneNumber: string;
287
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
287
288
  createdAt: string | Date;
288
289
  updatedAt: string | Date;
289
290
  name: string;
290
- phoneNumber: string;
291
291
  source: string;
292
292
  qualityScore?: number | null | undefined;
293
293
  conversionRate?: number | null | undefined;
@@ -303,12 +303,12 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
303
303
  }, "strip", z.ZodTypeAny, {
304
304
  limit: number;
305
305
  items: {
306
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
307
306
  id: string;
307
+ phoneNumber: string;
308
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
308
309
  createdAt: string;
309
310
  updatedAt: string;
310
311
  name: string;
311
- phoneNumber: string;
312
312
  source: string;
313
313
  qualityScore?: number | null | undefined;
314
314
  conversionRate?: number | null | undefined;
@@ -323,12 +323,12 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
323
323
  }, {
324
324
  limit: number;
325
325
  items: {
326
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
327
326
  id: string;
327
+ phoneNumber: string;
328
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
328
329
  createdAt: string | Date;
329
330
  updatedAt: string | Date;
330
331
  name: string;
331
- phoneNumber: string;
332
332
  source: string;
333
333
  qualityScore?: number | null | undefined;
334
334
  conversionRate?: number | null | undefined;
@@ -367,15 +367,15 @@ export declare const leadsContractRouter: {
367
367
  blacklistReason: z.ZodOptional<z.ZodString>;
368
368
  source: z.ZodString;
369
369
  }, "strip", z.ZodTypeAny, {
370
- name: string;
371
370
  phoneNumber: string;
371
+ name: string;
372
372
  source: string;
373
373
  isBlacklisted: boolean;
374
374
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
375
375
  blacklistReason?: string | undefined;
376
376
  }, {
377
- name: string;
378
377
  phoneNumber: string;
378
+ name: string;
379
379
  source: string;
380
380
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
381
381
  blacklistReason?: string | undefined;
@@ -497,12 +497,12 @@ export declare const leadsContractRouter: {
497
497
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
498
498
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
499
499
  }, "strip", z.ZodTypeAny, {
500
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
501
500
  id: string;
501
+ phoneNumber: string;
502
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
502
503
  createdAt: string;
503
504
  updatedAt: string;
504
505
  name: string;
505
- phoneNumber: string;
506
506
  source: string;
507
507
  qualityScore?: number | null | undefined;
508
508
  conversionRate?: number | null | undefined;
@@ -510,12 +510,12 @@ export declare const leadsContractRouter: {
510
510
  blacklistReason?: string | null | undefined;
511
511
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
512
512
  }, {
513
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
514
513
  id: string;
514
+ phoneNumber: string;
515
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
515
516
  createdAt: string | Date;
516
517
  updatedAt: string | Date;
517
518
  name: string;
518
- phoneNumber: string;
519
519
  source: string;
520
520
  qualityScore?: number | null | undefined;
521
521
  conversionRate?: number | null | undefined;
@@ -569,30 +569,30 @@ export declare const leadsContractRouter: {
569
569
  }, "strip", z.ZodTypeAny, {
570
570
  limit: number;
571
571
  page: number;
572
+ phoneNumber?: string | null | undefined;
572
573
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
573
574
  name?: string | null | undefined;
574
- phoneNumber?: string | null | undefined;
575
575
  source?: string | null | undefined;
576
576
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
577
577
  minQualityScore?: number | null | undefined;
578
578
  maxQualityScore?: number | null | undefined;
579
579
  minConversionRate?: number | null | undefined;
580
580
  minTotalCalls?: number | null | undefined;
581
- sortBy?: "status" | "createdAt" | "updatedAt" | "name" | "phoneNumber" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
581
+ sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
582
582
  sortOrder?: "ASC" | "DESC" | null | undefined;
583
583
  }, {
584
+ phoneNumber?: string | null | undefined;
584
585
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
585
586
  limit?: number | undefined;
586
587
  page?: number | undefined;
587
588
  name?: string | null | undefined;
588
- phoneNumber?: string | null | undefined;
589
589
  source?: string | null | undefined;
590
590
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
591
591
  minQualityScore?: number | null | undefined;
592
592
  maxQualityScore?: number | null | undefined;
593
593
  minConversionRate?: number | null | undefined;
594
594
  minTotalCalls?: number | null | undefined;
595
- sortBy?: "status" | "createdAt" | "updatedAt" | "name" | "phoneNumber" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
595
+ sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
596
596
  sortOrder?: "ASC" | "DESC" | null | undefined;
597
597
  }>;
598
598
  metadata: {
@@ -720,12 +720,12 @@ export declare const leadsContractRouter: {
720
720
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
721
721
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
722
722
  }, "strip", z.ZodTypeAny, {
723
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
724
723
  id: string;
724
+ phoneNumber: string;
725
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
725
726
  createdAt: string;
726
727
  updatedAt: string;
727
728
  name: string;
728
- phoneNumber: string;
729
729
  source: string;
730
730
  qualityScore?: number | null | undefined;
731
731
  conversionRate?: number | null | undefined;
@@ -733,12 +733,12 @@ export declare const leadsContractRouter: {
733
733
  blacklistReason?: string | null | undefined;
734
734
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
735
735
  }, {
736
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
737
736
  id: string;
737
+ phoneNumber: string;
738
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
738
739
  createdAt: string | Date;
739
740
  updatedAt: string | Date;
740
741
  name: string;
741
- phoneNumber: string;
742
742
  source: string;
743
743
  qualityScore?: number | null | undefined;
744
744
  conversionRate?: number | null | undefined;
@@ -754,12 +754,12 @@ export declare const leadsContractRouter: {
754
754
  }, "strip", z.ZodTypeAny, {
755
755
  limit: number;
756
756
  items: {
757
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
758
757
  id: string;
758
+ phoneNumber: string;
759
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
759
760
  createdAt: string;
760
761
  updatedAt: string;
761
762
  name: string;
762
- phoneNumber: string;
763
763
  source: string;
764
764
  qualityScore?: number | null | undefined;
765
765
  conversionRate?: number | null | undefined;
@@ -774,12 +774,12 @@ export declare const leadsContractRouter: {
774
774
  }, {
775
775
  limit: number;
776
776
  items: {
777
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
778
777
  id: string;
778
+ phoneNumber: string;
779
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
779
780
  createdAt: string | Date;
780
781
  updatedAt: string | Date;
781
782
  name: string;
782
- phoneNumber: string;
783
783
  source: string;
784
784
  qualityScore?: number | null | undefined;
785
785
  conversionRate?: number | null | undefined;
@@ -926,12 +926,12 @@ export declare const leadsContractRouter: {
926
926
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
927
927
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
928
928
  }, "strip", z.ZodTypeAny, {
929
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
930
929
  id: string;
930
+ phoneNumber: string;
931
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
931
932
  createdAt: string;
932
933
  updatedAt: string;
933
934
  name: string;
934
- phoneNumber: string;
935
935
  source: string;
936
936
  qualityScore?: number | null | undefined;
937
937
  conversionRate?: number | null | undefined;
@@ -939,12 +939,12 @@ export declare const leadsContractRouter: {
939
939
  blacklistReason?: string | null | undefined;
940
940
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
941
941
  }, {
942
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
943
942
  id: string;
943
+ phoneNumber: string;
944
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
944
945
  createdAt: string | Date;
945
946
  updatedAt: string | Date;
946
947
  name: string;
947
- phoneNumber: string;
948
948
  source: string;
949
949
  qualityScore?: number | null | undefined;
950
950
  conversionRate?: number | null | undefined;
@@ -1002,15 +1002,15 @@ export declare const leadsContractRouter: {
1002
1002
  blacklistReason: z.ZodOptional<z.ZodString>;
1003
1003
  source: z.ZodOptional<z.ZodString>;
1004
1004
  }, "strip", z.ZodTypeAny, {
1005
+ phoneNumber?: string | undefined;
1005
1006
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1006
1007
  name?: string | undefined;
1007
- phoneNumber?: string | undefined;
1008
1008
  source?: string | undefined;
1009
1009
  blacklistReason?: string | undefined;
1010
1010
  }, {
1011
+ phoneNumber?: string | undefined;
1011
1012
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1012
1013
  name?: string | undefined;
1013
- phoneNumber?: string | undefined;
1014
1014
  source?: string | undefined;
1015
1015
  blacklistReason?: string | undefined;
1016
1016
  }>;
@@ -1130,12 +1130,12 @@ export declare const leadsContractRouter: {
1130
1130
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1131
1131
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1132
1132
  }, "strip", z.ZodTypeAny, {
1133
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1134
1133
  id: string;
1134
+ phoneNumber: string;
1135
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1135
1136
  createdAt: string;
1136
1137
  updatedAt: string;
1137
1138
  name: string;
1138
- phoneNumber: string;
1139
1139
  source: string;
1140
1140
  qualityScore?: number | null | undefined;
1141
1141
  conversionRate?: number | null | undefined;
@@ -1143,12 +1143,12 @@ export declare const leadsContractRouter: {
1143
1143
  blacklistReason?: string | null | undefined;
1144
1144
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1145
1145
  }, {
1146
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1147
1146
  id: string;
1147
+ phoneNumber: string;
1148
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1148
1149
  createdAt: string | Date;
1149
1150
  updatedAt: string | Date;
1150
1151
  name: string;
1151
- phoneNumber: string;
1152
1152
  source: string;
1153
1153
  qualityScore?: number | null | undefined;
1154
1154
  conversionRate?: number | null | undefined;
@@ -16,8 +16,8 @@ export declare const LocationSchema: z.ZodObject<{
16
16
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
17
17
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
20
19
  id: string;
20
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
21
21
  createdAt: string;
22
22
  updatedAt: string;
23
23
  address?: string | null | undefined;
@@ -30,8 +30,8 @@ export declare const LocationSchema: z.ZodObject<{
30
30
  country?: string | null | undefined;
31
31
  region?: string | null | undefined;
32
32
  }, {
33
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
34
33
  id: string;
34
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
35
35
  createdAt: string | Date;
36
36
  updatedAt: string | Date;
37
37
  address?: string | null | undefined;
@@ -204,8 +204,8 @@ export declare const locationsContract: {
204
204
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
205
205
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
206
206
  }, "strip", z.ZodTypeAny, {
207
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
208
207
  id: string;
208
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
209
209
  createdAt: string;
210
210
  updatedAt: string;
211
211
  address?: string | null | undefined;
@@ -218,8 +218,8 @@ export declare const locationsContract: {
218
218
  country?: string | null | undefined;
219
219
  region?: string | null | undefined;
220
220
  }, {
221
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
222
221
  id: string;
222
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
223
223
  createdAt: string | Date;
224
224
  updatedAt: string | Date;
225
225
  address?: string | null | undefined;
@@ -368,8 +368,8 @@ export declare const locationsContract: {
368
368
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
369
369
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
370
370
  }, "strip", z.ZodTypeAny, {
371
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
372
371
  id: string;
372
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
373
373
  createdAt: string;
374
374
  updatedAt: string;
375
375
  address?: string | null | undefined;
@@ -382,8 +382,8 @@ export declare const locationsContract: {
382
382
  country?: string | null | undefined;
383
383
  region?: string | null | undefined;
384
384
  }, {
385
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
386
385
  id: string;
386
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
387
387
  createdAt: string | Date;
388
388
  updatedAt: string | Date;
389
389
  address?: string | null | undefined;
@@ -404,8 +404,8 @@ export declare const locationsContract: {
404
404
  }, "strip", z.ZodTypeAny, {
405
405
  limit: number;
406
406
  items: {
407
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
408
407
  id: string;
408
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
409
409
  createdAt: string;
410
410
  updatedAt: string;
411
411
  address?: string | null | undefined;
@@ -425,8 +425,8 @@ export declare const locationsContract: {
425
425
  }, {
426
426
  limit: number;
427
427
  items: {
428
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
429
428
  id: string;
429
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
430
430
  createdAt: string | Date;
431
431
  updatedAt: string | Date;
432
432
  address?: string | null | undefined;
@@ -576,8 +576,8 @@ export declare const locationsContract: {
576
576
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
577
577
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
578
578
  }, "strip", z.ZodTypeAny, {
579
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
580
579
  id: string;
580
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
581
581
  createdAt: string;
582
582
  updatedAt: string;
583
583
  address?: string | null | undefined;
@@ -590,8 +590,8 @@ export declare const locationsContract: {
590
590
  country?: string | null | undefined;
591
591
  region?: string | null | undefined;
592
592
  }, {
593
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
594
593
  id: string;
594
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
595
595
  createdAt: string | Date;
596
596
  updatedAt: string | Date;
597
597
  address?: string | null | undefined;
@@ -771,8 +771,8 @@ export declare const locationsContract: {
771
771
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
772
772
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
773
773
  }, "strip", z.ZodTypeAny, {
774
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
775
774
  id: string;
775
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
776
776
  createdAt: string;
777
777
  updatedAt: string;
778
778
  address?: string | null | undefined;
@@ -785,8 +785,8 @@ export declare const locationsContract: {
785
785
  country?: string | null | undefined;
786
786
  region?: string | null | undefined;
787
787
  }, {
788
- type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
789
788
  id: string;
789
+ type: "POSTCODE" | "SECTOR" | "DISTRICT" | "AREA";
790
790
  createdAt: string | Date;
791
791
  updatedAt: string | Date;
792
792
  address?: string | null | undefined;