@dakkitor/api-contracts 1.5.0 → 1.6.0

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 (129) hide show
  1. package/dist/abilities/abilities.contract.d.ts +6 -2
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +45 -1
  4. package/dist/abilities/abilities.contract.spec.js +98 -0
  5. package/dist/abilities/first-agent.abilities.json +8 -14
  6. package/dist/abilities/outreach.abilities.json +25 -0
  7. package/dist/abilities/second-agent.abilities.json +4 -13
  8. package/dist/actives/actives.contract.d.ts +3618 -3479
  9. package/dist/actives/actives.contract.d.ts.map +1 -1
  10. package/dist/actives/actives.contract.js +2 -0
  11. package/dist/actives/actives.contract.spec.d.ts +2 -0
  12. package/dist/actives/actives.contract.spec.d.ts.map +1 -0
  13. package/dist/actives/actives.contract.spec.js +35 -0
  14. package/dist/agent-client-links/agent-client-links.contract.d.ts +1087 -1087
  15. package/dist/auth/auth.contract.d.ts +108 -108
  16. package/dist/bookings/bookings.contract.d.ts +6644 -6452
  17. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  18. package/dist/call-history/call-history.contract.d.ts +718 -718
  19. package/dist/calls-feed/calls-feed.contract.d.ts +86 -86
  20. package/dist/client-contacts/client-contacts.contract.d.ts +469 -469
  21. package/dist/clients/clients.contract.d.ts +203 -203
  22. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2713 -2713
  23. package/dist/collaborations/collaborations.contract.d.ts +2270 -2270
  24. package/dist/common/common-schemas.d.ts +12 -12
  25. package/dist/companies/companies.contract.d.ts +74 -74
  26. package/dist/crews/crews.contract.d.ts +253 -253
  27. package/dist/cron-executions/cron-executions.contract.d.ts +182 -182
  28. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2723 -2723
  29. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +378 -378
  30. package/dist/curated-worker-leads/consent-queue.contract.d.ts +1137 -1107
  31. package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -1
  32. package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +16 -16
  33. package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +2 -2
  34. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +5818 -5372
  35. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
  36. package/dist/curated-worker-leads/jobs-tab.contract.js +34 -1
  37. package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +4 -4
  38. package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts +2 -0
  39. package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts.map +1 -0
  40. package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.js +39 -0
  41. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +148 -148
  42. package/dist/curated-workers/curated-workers.contract.d.ts +789 -789
  43. package/dist/dashboards/agent-daily-metrics.contract.d.ts +2 -2
  44. package/dist/dashboards/dashboard-widgets.contract.d.ts +180 -180
  45. package/dist/dashboards/dashboard.contract.d.ts +12 -12
  46. package/dist/document-intake/document-intake.contract.d.ts +601 -601
  47. package/dist/export-jobs/export-jobs.contract.d.ts +694 -694
  48. package/dist/exports-events/exports-events.schemas.d.ts +4 -4
  49. package/dist/files/files.contract.d.ts +74 -74
  50. package/dist/index.d.ts +6 -0
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +6 -0
  53. package/dist/interactions/interactions.contract.d.ts +6 -6
  54. package/dist/job-clusters/job-clusters.contract.d.ts +112 -112
  55. package/dist/jobs/job-moderation-fields.spec.d.ts +2 -0
  56. package/dist/jobs/job-moderation-fields.spec.d.ts.map +1 -0
  57. package/dist/jobs/job-moderation-fields.spec.js +72 -0
  58. package/dist/jobs/jobs.contract.d.ts +4773 -4525
  59. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  60. package/dist/jobs/jobs.contract.js +48 -0
  61. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +141 -141
  62. package/dist/lead-assignments/lead-assignments.contract.d.ts +911 -911
  63. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +209 -209
  64. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +77 -77
  65. package/dist/leads/leads.contract.d.ts +283 -283
  66. package/dist/locations/locations.contract.d.ts +49 -49
  67. package/dist/notifications/notifications.contract.d.ts +67 -67
  68. package/dist/offices/offices.contract.d.ts +34 -34
  69. package/dist/outreach/__tests__/outreach-contract-additions.spec.js +11 -0
  70. package/dist/outreach/__tests__/outreach-requests.contract.spec.js +13 -0
  71. package/dist/outreach/__tests__/outreach-routes.test.js +14 -3
  72. package/dist/outreach/outreach-requests.contract.d.ts +862 -217
  73. package/dist/outreach/outreach-requests.contract.d.ts.map +1 -1
  74. package/dist/outreach/outreach-requests.contract.js +23 -3
  75. package/dist/outreach/outreach-requests.schemas.d.ts +56 -10
  76. package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -1
  77. package/dist/outreach/outreach-requests.schemas.js +3 -0
  78. package/dist/outreach/outreach.contract.d.ts +300 -38
  79. package/dist/outreach/outreach.contract.d.ts.map +1 -1
  80. package/dist/outreach/outreach.contract.js +18 -0
  81. package/dist/outreach/outreach.contract.spec.d.ts +2 -0
  82. package/dist/outreach/outreach.contract.spec.d.ts.map +1 -0
  83. package/dist/outreach/outreach.contract.spec.js +54 -0
  84. package/dist/outreach/outreach.schemas.d.ts +2 -2
  85. package/dist/own-research/own-research.contract.d.ts +775 -775
  86. package/dist/postcodes/postcodes.contract.d.ts +24 -24
  87. package/dist/proofs/proof-type.enum.d.ts +4 -4
  88. package/dist/proofs/proofs.contract.d.ts +363 -363
  89. package/dist/proofs/proofs.dtos.d.ts +124 -124
  90. package/dist/qualifications/qualifications.contract.d.ts +38 -38
  91. package/dist/relay-pods/relay-pod-sessions.contract.d.ts +680 -0
  92. package/dist/relay-pods/relay-pod-sessions.contract.d.ts.map +1 -0
  93. package/dist/relay-pods/relay-pod-sessions.contract.js +67 -0
  94. package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts +2 -0
  95. package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts.map +1 -0
  96. package/dist/relay-pods/relay-pod-sessions.contract.spec.js +129 -0
  97. package/dist/relay-pods/relay-pods.contract.d.ts +1569 -0
  98. package/dist/relay-pods/relay-pods.contract.d.ts.map +1 -0
  99. package/dist/relay-pods/relay-pods.contract.js +188 -0
  100. package/dist/relay-pods/relay-pods.contract.spec.d.ts +2 -0
  101. package/dist/relay-pods/relay-pods.contract.spec.d.ts.map +1 -0
  102. package/dist/relay-pods/relay-pods.contract.spec.js +141 -0
  103. package/dist/relay-pods/relay-pods.schemas.d.ts +415 -0
  104. package/dist/relay-pods/relay-pods.schemas.d.ts.map +1 -0
  105. package/dist/relay-pods/relay-pods.schemas.js +112 -0
  106. package/dist/shared/live-booking.schema.d.ts +4 -4
  107. package/dist/shared/summary-schemas.d.ts +6 -6
  108. package/dist/sheets-sync/sheets-sync.contract.d.ts +939 -939
  109. package/dist/telegram/telegram.contract.d.ts +22 -22
  110. package/dist/trades/trades.contract.d.ts +90 -90
  111. package/dist/user-access-grants/user-access-grants.contract.d.ts +165 -165
  112. package/dist/users/__tests__/assignable-roles.spec.d.ts +2 -0
  113. package/dist/users/__tests__/assignable-roles.spec.d.ts.map +1 -0
  114. package/dist/users/__tests__/assignable-roles.spec.js +41 -0
  115. package/dist/users/users.contract.d.ts +399 -393
  116. package/dist/users/users.contract.d.ts.map +1 -1
  117. package/dist/users/users.contract.js +11 -0
  118. package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +585 -527
  119. package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
  120. package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +278 -236
  121. package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -1
  122. package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +1 -0
  123. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +153 -153
  124. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +59 -59
  125. package/dist/workers/workers.contract.d.ts +2919 -2919
  126. package/package.json +1 -1
  127. package/dist/bookings/bookings.contract.spec.d.ts +0 -2
  128. package/dist/bookings/bookings.contract.spec.d.ts.map +0 -1
  129. package/dist/bookings/bookings.contract.spec.js +0 -11
@@ -29,7 +29,7 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
29
29
  description?: string | null | undefined;
30
30
  isPrimary?: boolean | undefined;
31
31
  }>, "many">>>;
32
- roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
32
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
33
33
  officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35
35
  id: z.ZodString;
@@ -88,16 +88,13 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
88
88
  lastName: string;
89
89
  email: string;
90
90
  createdAt: string;
91
- updatedAt: string;
92
91
  phoneNumbers: {
93
92
  id: string;
94
93
  phoneNumber: string;
95
94
  isPrimary: boolean;
96
95
  description?: string | null | undefined;
97
96
  }[];
98
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
99
- deletedAt?: string | null | undefined;
100
- officeId?: string | null | undefined;
97
+ updatedAt: string;
101
98
  office?: {
102
99
  id: string;
103
100
  name: string;
@@ -107,11 +104,14 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
107
104
  lastName: string;
108
105
  }[] | undefined;
109
106
  } | null | undefined;
107
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
108
+ officeId?: string | null | undefined;
110
109
  canImpersonateUsers?: {
111
110
  id: string;
112
111
  firstName: string;
113
112
  lastName: string;
114
113
  }[] | undefined;
114
+ deletedAt?: string | null | undefined;
115
115
  }, {
116
116
  status: "ACTIVE" | "INACTIVE";
117
117
  id: string;
@@ -120,15 +120,6 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
120
120
  email: string;
121
121
  createdAt: string | Date;
122
122
  updatedAt: string | Date;
123
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
124
- phoneNumbers?: {
125
- id: string;
126
- phoneNumber: string;
127
- description?: string | null | undefined;
128
- isPrimary?: boolean | undefined;
129
- }[] | undefined;
130
- deletedAt?: string | Date | null | undefined;
131
- officeId?: string | null | undefined;
132
123
  office?: {
133
124
  id: string;
134
125
  name: string;
@@ -138,11 +129,20 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
138
129
  lastName: string;
139
130
  }[] | undefined;
140
131
  } | null | undefined;
132
+ phoneNumbers?: {
133
+ id: string;
134
+ phoneNumber: string;
135
+ description?: string | null | undefined;
136
+ isPrimary?: boolean | undefined;
137
+ }[] | undefined;
138
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
139
+ officeId?: string | null | undefined;
141
140
  canImpersonateUsers?: {
142
141
  id: string;
143
142
  firstName: string;
144
143
  lastName: string;
145
144
  }[] | undefined;
145
+ deletedAt?: string | Date | null | undefined;
146
146
  }>>;
147
147
  name: z.ZodString;
148
148
  phoneNumber: z.ZodString;
@@ -157,19 +157,19 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
157
157
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
158
158
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
159
159
  }, "strip", z.ZodTypeAny, {
160
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
160
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
161
161
  id: string;
162
+ phoneNumber: string;
162
163
  name: string;
163
164
  createdAt: string;
164
165
  updatedAt: string;
165
- phoneNumber: string;
166
+ blacklistReason: string | null;
166
167
  agentId: string;
167
- callCount: number;
168
168
  lastCalledAt: string | null;
169
- cooldownUntil: string | null;
170
- blacklistReason: string | null;
169
+ callCount: number;
171
170
  lastCallNotes: string | null;
172
171
  existsInLeadsTable: boolean;
172
+ cooldownUntil: string | null;
173
173
  originalLeadId: string | null;
174
174
  agent?: {
175
175
  status: "ACTIVE" | "INACTIVE";
@@ -178,16 +178,13 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
178
178
  lastName: string;
179
179
  email: string;
180
180
  createdAt: string;
181
- updatedAt: string;
182
181
  phoneNumbers: {
183
182
  id: string;
184
183
  phoneNumber: string;
185
184
  isPrimary: boolean;
186
185
  description?: string | null | undefined;
187
186
  }[];
188
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
189
- deletedAt?: string | null | undefined;
190
- officeId?: string | null | undefined;
187
+ updatedAt: string;
191
188
  office?: {
192
189
  id: string;
193
190
  name: string;
@@ -197,26 +194,29 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
197
194
  lastName: string;
198
195
  }[] | undefined;
199
196
  } | null | undefined;
197
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
198
+ officeId?: string | null | undefined;
200
199
  canImpersonateUsers?: {
201
200
  id: string;
202
201
  firstName: string;
203
202
  lastName: string;
204
203
  }[] | undefined;
204
+ deletedAt?: string | null | undefined;
205
205
  } | undefined;
206
206
  }, {
207
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
207
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
208
208
  id: string;
209
+ phoneNumber: string;
209
210
  name: string;
210
211
  createdAt: string | Date;
211
212
  updatedAt: string | Date;
212
- phoneNumber: string;
213
+ blacklistReason: string | null;
213
214
  agentId: string;
214
- callCount: number;
215
215
  lastCalledAt: string | Date | null;
216
- cooldownUntil: string | Date | null;
217
- blacklistReason: string | null;
216
+ callCount: number;
218
217
  lastCallNotes: string | null;
219
218
  existsInLeadsTable: boolean;
219
+ cooldownUntil: string | Date | null;
220
220
  originalLeadId: string | null;
221
221
  agent?: {
222
222
  status: "ACTIVE" | "INACTIVE";
@@ -226,15 +226,6 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
226
226
  email: string;
227
227
  createdAt: string | Date;
228
228
  updatedAt: string | Date;
229
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
230
- phoneNumbers?: {
231
- id: string;
232
- phoneNumber: string;
233
- description?: string | null | undefined;
234
- isPrimary?: boolean | undefined;
235
- }[] | undefined;
236
- deletedAt?: string | Date | null | undefined;
237
- officeId?: string | null | undefined;
238
229
  office?: {
239
230
  id: string;
240
231
  name: string;
@@ -244,11 +235,20 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
244
235
  lastName: string;
245
236
  }[] | undefined;
246
237
  } | null | undefined;
238
+ phoneNumbers?: {
239
+ id: string;
240
+ phoneNumber: string;
241
+ description?: string | null | undefined;
242
+ isPrimary?: boolean | undefined;
243
+ }[] | undefined;
244
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
245
+ officeId?: string | null | undefined;
247
246
  canImpersonateUsers?: {
248
247
  id: string;
249
248
  firstName: string;
250
249
  lastName: string;
251
250
  }[] | undefined;
251
+ deletedAt?: string | Date | null | undefined;
252
252
  } | undefined;
253
253
  }>;
254
254
  export declare const CheckPhoneResponseSchema: z.ZodObject<{
@@ -263,14 +263,14 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
263
263
  }, "strip", z.ZodTypeAny, {
264
264
  status: string;
265
265
  id: string;
266
- name: string;
267
266
  phoneNumber: string;
267
+ name: string;
268
268
  cooldownUntil: string | null;
269
269
  }, {
270
270
  status: string;
271
271
  id: string;
272
- name: string;
273
272
  phoneNumber: string;
273
+ name: string;
274
274
  cooldownUntil: string | Date | null;
275
275
  }>>>;
276
276
  ownResearchLead: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -297,7 +297,7 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
297
297
  description?: string | null | undefined;
298
298
  isPrimary?: boolean | undefined;
299
299
  }>, "many">>>;
300
- roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
300
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
301
301
  officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
302
  office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
303
303
  id: z.ZodString;
@@ -356,16 +356,13 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
356
356
  lastName: string;
357
357
  email: string;
358
358
  createdAt: string;
359
- updatedAt: string;
360
359
  phoneNumbers: {
361
360
  id: string;
362
361
  phoneNumber: string;
363
362
  isPrimary: boolean;
364
363
  description?: string | null | undefined;
365
364
  }[];
366
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
367
- deletedAt?: string | null | undefined;
368
- officeId?: string | null | undefined;
365
+ updatedAt: string;
369
366
  office?: {
370
367
  id: string;
371
368
  name: string;
@@ -375,11 +372,14 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
375
372
  lastName: string;
376
373
  }[] | undefined;
377
374
  } | null | undefined;
375
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
376
+ officeId?: string | null | undefined;
378
377
  canImpersonateUsers?: {
379
378
  id: string;
380
379
  firstName: string;
381
380
  lastName: string;
382
381
  }[] | undefined;
382
+ deletedAt?: string | null | undefined;
383
383
  }, {
384
384
  status: "ACTIVE" | "INACTIVE";
385
385
  id: string;
@@ -388,15 +388,6 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
388
388
  email: string;
389
389
  createdAt: string | Date;
390
390
  updatedAt: string | Date;
391
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
392
- phoneNumbers?: {
393
- id: string;
394
- phoneNumber: string;
395
- description?: string | null | undefined;
396
- isPrimary?: boolean | undefined;
397
- }[] | undefined;
398
- deletedAt?: string | Date | null | undefined;
399
- officeId?: string | null | undefined;
400
391
  office?: {
401
392
  id: string;
402
393
  name: string;
@@ -406,11 +397,20 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
406
397
  lastName: string;
407
398
  }[] | undefined;
408
399
  } | null | undefined;
400
+ phoneNumbers?: {
401
+ id: string;
402
+ phoneNumber: string;
403
+ description?: string | null | undefined;
404
+ isPrimary?: boolean | undefined;
405
+ }[] | undefined;
406
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
407
+ officeId?: string | null | undefined;
409
408
  canImpersonateUsers?: {
410
409
  id: string;
411
410
  firstName: string;
412
411
  lastName: string;
413
412
  }[] | undefined;
413
+ deletedAt?: string | Date | null | undefined;
414
414
  }>>;
415
415
  name: z.ZodString;
416
416
  phoneNumber: z.ZodString;
@@ -425,19 +425,19 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
425
425
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
426
426
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
427
427
  }, "strip", z.ZodTypeAny, {
428
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
428
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
429
429
  id: string;
430
+ phoneNumber: string;
430
431
  name: string;
431
432
  createdAt: string;
432
433
  updatedAt: string;
433
- phoneNumber: string;
434
+ blacklistReason: string | null;
434
435
  agentId: string;
435
- callCount: number;
436
436
  lastCalledAt: string | null;
437
- cooldownUntil: string | null;
438
- blacklistReason: string | null;
437
+ callCount: number;
439
438
  lastCallNotes: string | null;
440
439
  existsInLeadsTable: boolean;
440
+ cooldownUntil: string | null;
441
441
  originalLeadId: string | null;
442
442
  agent?: {
443
443
  status: "ACTIVE" | "INACTIVE";
@@ -446,16 +446,13 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
446
446
  lastName: string;
447
447
  email: string;
448
448
  createdAt: string;
449
- updatedAt: string;
450
449
  phoneNumbers: {
451
450
  id: string;
452
451
  phoneNumber: string;
453
452
  isPrimary: boolean;
454
453
  description?: string | null | undefined;
455
454
  }[];
456
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
457
- deletedAt?: string | null | undefined;
458
- officeId?: string | null | undefined;
455
+ updatedAt: string;
459
456
  office?: {
460
457
  id: string;
461
458
  name: string;
@@ -465,26 +462,29 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
465
462
  lastName: string;
466
463
  }[] | undefined;
467
464
  } | null | undefined;
465
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
466
+ officeId?: string | null | undefined;
468
467
  canImpersonateUsers?: {
469
468
  id: string;
470
469
  firstName: string;
471
470
  lastName: string;
472
471
  }[] | undefined;
472
+ deletedAt?: string | null | undefined;
473
473
  } | undefined;
474
474
  }, {
475
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
475
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
476
476
  id: string;
477
+ phoneNumber: string;
477
478
  name: string;
478
479
  createdAt: string | Date;
479
480
  updatedAt: string | Date;
480
- phoneNumber: string;
481
+ blacklistReason: string | null;
481
482
  agentId: string;
482
- callCount: number;
483
483
  lastCalledAt: string | Date | null;
484
- cooldownUntil: string | Date | null;
485
- blacklistReason: string | null;
484
+ callCount: number;
486
485
  lastCallNotes: string | null;
487
486
  existsInLeadsTable: boolean;
487
+ cooldownUntil: string | Date | null;
488
488
  originalLeadId: string | null;
489
489
  agent?: {
490
490
  status: "ACTIVE" | "INACTIVE";
@@ -494,15 +494,6 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
494
494
  email: string;
495
495
  createdAt: string | Date;
496
496
  updatedAt: string | Date;
497
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
498
- phoneNumbers?: {
499
- id: string;
500
- phoneNumber: string;
501
- description?: string | null | undefined;
502
- isPrimary?: boolean | undefined;
503
- }[] | undefined;
504
- deletedAt?: string | Date | null | undefined;
505
- officeId?: string | null | undefined;
506
497
  office?: {
507
498
  id: string;
508
499
  name: string;
@@ -512,11 +503,20 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
512
503
  lastName: string;
513
504
  }[] | undefined;
514
505
  } | null | undefined;
506
+ phoneNumbers?: {
507
+ id: string;
508
+ phoneNumber: string;
509
+ description?: string | null | undefined;
510
+ isPrimary?: boolean | undefined;
511
+ }[] | undefined;
512
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
513
+ officeId?: string | null | undefined;
515
514
  canImpersonateUsers?: {
516
515
  id: string;
517
516
  firstName: string;
518
517
  lastName: string;
519
518
  }[] | undefined;
519
+ deletedAt?: string | Date | null | undefined;
520
520
  } | undefined;
521
521
  }>>>;
522
522
  isOnCooldown: z.ZodBoolean;
@@ -529,24 +529,24 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
529
529
  lead?: {
530
530
  status: string;
531
531
  id: string;
532
- name: string;
533
532
  phoneNumber: string;
533
+ name: string;
534
534
  cooldownUntil: string | null;
535
535
  } | null | undefined;
536
536
  ownResearchLead?: {
537
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
537
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
538
538
  id: string;
539
+ phoneNumber: string;
539
540
  name: string;
540
541
  createdAt: string;
541
542
  updatedAt: string;
542
- phoneNumber: string;
543
+ blacklistReason: string | null;
543
544
  agentId: string;
544
- callCount: number;
545
545
  lastCalledAt: string | null;
546
- cooldownUntil: string | null;
547
- blacklistReason: string | null;
546
+ callCount: number;
548
547
  lastCallNotes: string | null;
549
548
  existsInLeadsTable: boolean;
549
+ cooldownUntil: string | null;
550
550
  originalLeadId: string | null;
551
551
  agent?: {
552
552
  status: "ACTIVE" | "INACTIVE";
@@ -555,16 +555,13 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
555
555
  lastName: string;
556
556
  email: string;
557
557
  createdAt: string;
558
- updatedAt: string;
559
558
  phoneNumbers: {
560
559
  id: string;
561
560
  phoneNumber: string;
562
561
  isPrimary: boolean;
563
562
  description?: string | null | undefined;
564
563
  }[];
565
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
566
- deletedAt?: string | null | undefined;
567
- officeId?: string | null | undefined;
564
+ updatedAt: string;
568
565
  office?: {
569
566
  id: string;
570
567
  name: string;
@@ -574,11 +571,14 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
574
571
  lastName: string;
575
572
  }[] | undefined;
576
573
  } | null | undefined;
574
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
575
+ officeId?: string | null | undefined;
577
576
  canImpersonateUsers?: {
578
577
  id: string;
579
578
  firstName: string;
580
579
  lastName: string;
581
580
  }[] | undefined;
581
+ deletedAt?: string | null | undefined;
582
582
  } | undefined;
583
583
  } | null | undefined;
584
584
  }, {
@@ -589,24 +589,24 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
589
589
  lead?: {
590
590
  status: string;
591
591
  id: string;
592
- name: string;
593
592
  phoneNumber: string;
593
+ name: string;
594
594
  cooldownUntil: string | Date | null;
595
595
  } | null | undefined;
596
596
  ownResearchLead?: {
597
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
597
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
598
598
  id: string;
599
+ phoneNumber: string;
599
600
  name: string;
600
601
  createdAt: string | Date;
601
602
  updatedAt: string | Date;
602
- phoneNumber: string;
603
+ blacklistReason: string | null;
603
604
  agentId: string;
604
- callCount: number;
605
605
  lastCalledAt: string | Date | null;
606
- cooldownUntil: string | Date | null;
607
- blacklistReason: string | null;
606
+ callCount: number;
608
607
  lastCallNotes: string | null;
609
608
  existsInLeadsTable: boolean;
609
+ cooldownUntil: string | Date | null;
610
610
  originalLeadId: string | null;
611
611
  agent?: {
612
612
  status: "ACTIVE" | "INACTIVE";
@@ -616,15 +616,6 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
616
616
  email: string;
617
617
  createdAt: string | Date;
618
618
  updatedAt: string | Date;
619
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
620
- phoneNumbers?: {
621
- id: string;
622
- phoneNumber: string;
623
- description?: string | null | undefined;
624
- isPrimary?: boolean | undefined;
625
- }[] | undefined;
626
- deletedAt?: string | Date | null | undefined;
627
- officeId?: string | null | undefined;
628
619
  office?: {
629
620
  id: string;
630
621
  name: string;
@@ -634,11 +625,20 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
634
625
  lastName: string;
635
626
  }[] | undefined;
636
627
  } | null | undefined;
628
+ phoneNumbers?: {
629
+ id: string;
630
+ phoneNumber: string;
631
+ description?: string | null | undefined;
632
+ isPrimary?: boolean | undefined;
633
+ }[] | undefined;
634
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
635
+ officeId?: string | null | undefined;
637
636
  canImpersonateUsers?: {
638
637
  id: string;
639
638
  firstName: string;
640
639
  lastName: string;
641
640
  }[] | undefined;
641
+ deletedAt?: string | Date | null | undefined;
642
642
  } | undefined;
643
643
  } | null | undefined;
644
644
  }>;
@@ -656,17 +656,17 @@ export declare const RecordOwnResearchCallSchema: z.ZodObject<{
656
656
  notes: z.ZodOptional<z.ZodString>;
657
657
  callType: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>>;
658
658
  }, "strip", z.ZodTypeAny, {
659
- name: string;
660
659
  phoneNumber: string;
660
+ name: string;
661
661
  rating: import("../common/call-rating.schema").CallRating;
662
- notes?: string | undefined;
663
662
  callType?: import("../call-history/call-history.contract").CallType | undefined;
663
+ notes?: string | undefined;
664
664
  }, {
665
- name: string;
666
665
  phoneNumber: string;
666
+ name: string;
667
667
  rating: import("../common/call-rating.schema").CallRating;
668
- notes?: string | undefined;
669
668
  callType?: import("../call-history/call-history.contract").CallType | undefined;
669
+ notes?: string | undefined;
670
670
  }>;
671
671
  export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
672
672
  assignment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -676,11 +676,11 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
676
676
  name: z.ZodString;
677
677
  phoneNumber: z.ZodString;
678
678
  }, "strip", z.ZodTypeAny, {
679
- name: string;
680
679
  phoneNumber: string;
681
- }, {
682
680
  name: string;
681
+ }, {
683
682
  phoneNumber: string;
683
+ name: string;
684
684
  }>>;
685
685
  agentId: z.ZodNullable<z.ZodString>;
686
686
  agent: z.ZodOptional<z.ZodObject<{
@@ -704,7 +704,7 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
704
704
  description?: string | null | undefined;
705
705
  isPrimary?: boolean | undefined;
706
706
  }>, "many">>>;
707
- roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
707
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
708
708
  officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
709
709
  office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
710
710
  id: z.ZodString;
@@ -763,16 +763,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
763
763
  lastName: string;
764
764
  email: string;
765
765
  createdAt: string;
766
- updatedAt: string;
767
766
  phoneNumbers: {
768
767
  id: string;
769
768
  phoneNumber: string;
770
769
  isPrimary: boolean;
771
770
  description?: string | null | undefined;
772
771
  }[];
773
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
774
- deletedAt?: string | null | undefined;
775
- officeId?: string | null | undefined;
772
+ updatedAt: string;
776
773
  office?: {
777
774
  id: string;
778
775
  name: string;
@@ -782,11 +779,14 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
782
779
  lastName: string;
783
780
  }[] | undefined;
784
781
  } | null | undefined;
782
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
783
+ officeId?: string | null | undefined;
785
784
  canImpersonateUsers?: {
786
785
  id: string;
787
786
  firstName: string;
788
787
  lastName: string;
789
788
  }[] | undefined;
789
+ deletedAt?: string | null | undefined;
790
790
  }, {
791
791
  status: "ACTIVE" | "INACTIVE";
792
792
  id: string;
@@ -795,15 +795,6 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
795
795
  email: string;
796
796
  createdAt: string | Date;
797
797
  updatedAt: string | Date;
798
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
799
- phoneNumbers?: {
800
- id: string;
801
- phoneNumber: string;
802
- description?: string | null | undefined;
803
- isPrimary?: boolean | undefined;
804
- }[] | undefined;
805
- deletedAt?: string | Date | null | undefined;
806
- officeId?: string | null | undefined;
807
798
  office?: {
808
799
  id: string;
809
800
  name: string;
@@ -813,11 +804,20 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
813
804
  lastName: string;
814
805
  }[] | undefined;
815
806
  } | null | undefined;
807
+ phoneNumbers?: {
808
+ id: string;
809
+ phoneNumber: string;
810
+ description?: string | null | undefined;
811
+ isPrimary?: boolean | undefined;
812
+ }[] | undefined;
813
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
814
+ officeId?: string | null | undefined;
816
815
  canImpersonateUsers?: {
817
816
  id: string;
818
817
  firstName: string;
819
818
  lastName: string;
820
819
  }[] | undefined;
820
+ deletedAt?: string | Date | null | undefined;
821
821
  }>>;
822
822
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
823
823
  assignedBy: z.ZodNullable<z.ZodString>;
@@ -846,11 +846,21 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
846
846
  id: string;
847
847
  createdAt: string;
848
848
  updatedAt: string;
849
+ companyId: string | null;
849
850
  agentId: string | null;
850
851
  leadId: string;
851
852
  assignedAt: string;
852
853
  assignedBy: string | null;
853
- companyId: string | null;
854
+ company?: {
855
+ id: string;
856
+ name: string;
857
+ createdAt: string;
858
+ updatedAt: string;
859
+ } | null | undefined;
860
+ lead?: {
861
+ phoneNumber: string;
862
+ name: string;
863
+ } | undefined;
854
864
  agent?: {
855
865
  status: "ACTIVE" | "INACTIVE";
856
866
  id: string;
@@ -858,16 +868,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
858
868
  lastName: string;
859
869
  email: string;
860
870
  createdAt: string;
861
- updatedAt: string;
862
871
  phoneNumbers: {
863
872
  id: string;
864
873
  phoneNumber: string;
865
874
  isPrimary: boolean;
866
875
  description?: string | null | undefined;
867
876
  }[];
868
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
869
- deletedAt?: string | null | undefined;
870
- officeId?: string | null | undefined;
877
+ updatedAt: string;
871
878
  office?: {
872
879
  id: string;
873
880
  name: string;
@@ -877,32 +884,35 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
877
884
  lastName: string;
878
885
  }[] | undefined;
879
886
  } | null | undefined;
887
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
888
+ officeId?: string | null | undefined;
880
889
  canImpersonateUsers?: {
881
890
  id: string;
882
891
  firstName: string;
883
892
  lastName: string;
884
893
  }[] | undefined;
894
+ deletedAt?: string | null | undefined;
885
895
  } | undefined;
886
- lead?: {
887
- name: string;
888
- phoneNumber: string;
889
- } | undefined;
890
- company?: {
891
- id: string;
892
- name: string;
893
- createdAt: string;
894
- updatedAt: string;
895
- } | null | undefined;
896
896
  }, {
897
897
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
898
898
  id: string;
899
899
  createdAt: string | Date;
900
900
  updatedAt: string | Date;
901
+ companyId: string | null;
901
902
  agentId: string | null;
902
903
  leadId: string;
903
904
  assignedAt: string | Date;
904
905
  assignedBy: string | null;
905
- companyId: string | null;
906
+ company?: {
907
+ id: string;
908
+ name: string;
909
+ createdAt: string | Date;
910
+ updatedAt: string | Date;
911
+ } | null | undefined;
912
+ lead?: {
913
+ phoneNumber: string;
914
+ name: string;
915
+ } | undefined;
906
916
  agent?: {
907
917
  status: "ACTIVE" | "INACTIVE";
908
918
  id: string;
@@ -911,15 +921,6 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
911
921
  email: string;
912
922
  createdAt: string | Date;
913
923
  updatedAt: string | Date;
914
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
915
- phoneNumbers?: {
916
- id: string;
917
- phoneNumber: string;
918
- description?: string | null | undefined;
919
- isPrimary?: boolean | undefined;
920
- }[] | undefined;
921
- deletedAt?: string | Date | null | undefined;
922
- officeId?: string | null | undefined;
923
924
  office?: {
924
925
  id: string;
925
926
  name: string;
@@ -929,22 +930,21 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
929
930
  lastName: string;
930
931
  }[] | undefined;
931
932
  } | null | undefined;
933
+ phoneNumbers?: {
934
+ id: string;
935
+ phoneNumber: string;
936
+ description?: string | null | undefined;
937
+ isPrimary?: boolean | undefined;
938
+ }[] | undefined;
939
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
940
+ officeId?: string | null | undefined;
932
941
  canImpersonateUsers?: {
933
942
  id: string;
934
943
  firstName: string;
935
944
  lastName: string;
936
945
  }[] | undefined;
946
+ deletedAt?: string | Date | null | undefined;
937
947
  } | undefined;
938
- lead?: {
939
- name: string;
940
- phoneNumber: string;
941
- } | undefined;
942
- company?: {
943
- id: string;
944
- name: string;
945
- createdAt: string | Date;
946
- updatedAt: string | Date;
947
- } | null | undefined;
948
948
  }>>>;
949
949
  ownResearchLead: z.ZodObject<{
950
950
  id: z.ZodString;
@@ -970,7 +970,7 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
970
970
  description?: string | null | undefined;
971
971
  isPrimary?: boolean | undefined;
972
972
  }>, "many">>>;
973
- roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
973
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
974
974
  officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
975
975
  office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
976
976
  id: z.ZodString;
@@ -1029,16 +1029,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1029
1029
  lastName: string;
1030
1030
  email: string;
1031
1031
  createdAt: string;
1032
- updatedAt: string;
1033
1032
  phoneNumbers: {
1034
1033
  id: string;
1035
1034
  phoneNumber: string;
1036
1035
  isPrimary: boolean;
1037
1036
  description?: string | null | undefined;
1038
1037
  }[];
1039
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1040
- deletedAt?: string | null | undefined;
1041
- officeId?: string | null | undefined;
1038
+ updatedAt: string;
1042
1039
  office?: {
1043
1040
  id: string;
1044
1041
  name: string;
@@ -1048,11 +1045,14 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1048
1045
  lastName: string;
1049
1046
  }[] | undefined;
1050
1047
  } | null | undefined;
1048
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1049
+ officeId?: string | null | undefined;
1051
1050
  canImpersonateUsers?: {
1052
1051
  id: string;
1053
1052
  firstName: string;
1054
1053
  lastName: string;
1055
1054
  }[] | undefined;
1055
+ deletedAt?: string | null | undefined;
1056
1056
  }, {
1057
1057
  status: "ACTIVE" | "INACTIVE";
1058
1058
  id: string;
@@ -1061,15 +1061,6 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1061
1061
  email: string;
1062
1062
  createdAt: string | Date;
1063
1063
  updatedAt: string | Date;
1064
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1065
- phoneNumbers?: {
1066
- id: string;
1067
- phoneNumber: string;
1068
- description?: string | null | undefined;
1069
- isPrimary?: boolean | undefined;
1070
- }[] | undefined;
1071
- deletedAt?: string | Date | null | undefined;
1072
- officeId?: string | null | undefined;
1073
1064
  office?: {
1074
1065
  id: string;
1075
1066
  name: string;
@@ -1079,11 +1070,20 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1079
1070
  lastName: string;
1080
1071
  }[] | undefined;
1081
1072
  } | null | undefined;
1073
+ phoneNumbers?: {
1074
+ id: string;
1075
+ phoneNumber: string;
1076
+ description?: string | null | undefined;
1077
+ isPrimary?: boolean | undefined;
1078
+ }[] | undefined;
1079
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1080
+ officeId?: string | null | undefined;
1082
1081
  canImpersonateUsers?: {
1083
1082
  id: string;
1084
1083
  firstName: string;
1085
1084
  lastName: string;
1086
1085
  }[] | undefined;
1086
+ deletedAt?: string | Date | null | undefined;
1087
1087
  }>>;
1088
1088
  name: z.ZodString;
1089
1089
  phoneNumber: z.ZodString;
@@ -1098,19 +1098,19 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1098
1098
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1099
1099
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1100
1100
  }, "strip", z.ZodTypeAny, {
1101
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
1101
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
1102
1102
  id: string;
1103
+ phoneNumber: string;
1103
1104
  name: string;
1104
1105
  createdAt: string;
1105
1106
  updatedAt: string;
1106
- phoneNumber: string;
1107
+ blacklistReason: string | null;
1107
1108
  agentId: string;
1108
- callCount: number;
1109
1109
  lastCalledAt: string | null;
1110
- cooldownUntil: string | null;
1111
- blacklistReason: string | null;
1110
+ callCount: number;
1112
1111
  lastCallNotes: string | null;
1113
1112
  existsInLeadsTable: boolean;
1113
+ cooldownUntil: string | null;
1114
1114
  originalLeadId: string | null;
1115
1115
  agent?: {
1116
1116
  status: "ACTIVE" | "INACTIVE";
@@ -1119,16 +1119,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1119
1119
  lastName: string;
1120
1120
  email: string;
1121
1121
  createdAt: string;
1122
- updatedAt: string;
1123
1122
  phoneNumbers: {
1124
1123
  id: string;
1125
1124
  phoneNumber: string;
1126
1125
  isPrimary: boolean;
1127
1126
  description?: string | null | undefined;
1128
1127
  }[];
1129
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1130
- deletedAt?: string | null | undefined;
1131
- officeId?: string | null | undefined;
1128
+ updatedAt: string;
1132
1129
  office?: {
1133
1130
  id: string;
1134
1131
  name: string;
@@ -1138,26 +1135,29 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1138
1135
  lastName: string;
1139
1136
  }[] | undefined;
1140
1137
  } | null | undefined;
1138
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1139
+ officeId?: string | null | undefined;
1141
1140
  canImpersonateUsers?: {
1142
1141
  id: string;
1143
1142
  firstName: string;
1144
1143
  lastName: string;
1145
1144
  }[] | undefined;
1145
+ deletedAt?: string | null | undefined;
1146
1146
  } | undefined;
1147
1147
  }, {
1148
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
1148
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
1149
1149
  id: string;
1150
+ phoneNumber: string;
1150
1151
  name: string;
1151
1152
  createdAt: string | Date;
1152
1153
  updatedAt: string | Date;
1153
- phoneNumber: string;
1154
+ blacklistReason: string | null;
1154
1155
  agentId: string;
1155
- callCount: number;
1156
1156
  lastCalledAt: string | Date | null;
1157
- cooldownUntil: string | Date | null;
1158
- blacklistReason: string | null;
1157
+ callCount: number;
1159
1158
  lastCallNotes: string | null;
1160
1159
  existsInLeadsTable: boolean;
1160
+ cooldownUntil: string | Date | null;
1161
1161
  originalLeadId: string | null;
1162
1162
  agent?: {
1163
1163
  status: "ACTIVE" | "INACTIVE";
@@ -1167,15 +1167,6 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1167
1167
  email: string;
1168
1168
  createdAt: string | Date;
1169
1169
  updatedAt: string | Date;
1170
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1171
- phoneNumbers?: {
1172
- id: string;
1173
- phoneNumber: string;
1174
- description?: string | null | undefined;
1175
- isPrimary?: boolean | undefined;
1176
- }[] | undefined;
1177
- deletedAt?: string | Date | null | undefined;
1178
- officeId?: string | null | undefined;
1179
1170
  office?: {
1180
1171
  id: string;
1181
1172
  name: string;
@@ -1185,28 +1176,37 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1185
1176
  lastName: string;
1186
1177
  }[] | undefined;
1187
1178
  } | null | undefined;
1179
+ phoneNumbers?: {
1180
+ id: string;
1181
+ phoneNumber: string;
1182
+ description?: string | null | undefined;
1183
+ isPrimary?: boolean | undefined;
1184
+ }[] | undefined;
1185
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1186
+ officeId?: string | null | undefined;
1188
1187
  canImpersonateUsers?: {
1189
1188
  id: string;
1190
1189
  firstName: string;
1191
1190
  lastName: string;
1192
1191
  }[] | undefined;
1192
+ deletedAt?: string | Date | null | undefined;
1193
1193
  } | undefined;
1194
1194
  }>;
1195
1195
  }, "strip", z.ZodTypeAny, {
1196
1196
  ownResearchLead: {
1197
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
1197
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
1198
1198
  id: string;
1199
+ phoneNumber: string;
1199
1200
  name: string;
1200
1201
  createdAt: string;
1201
1202
  updatedAt: string;
1202
- phoneNumber: string;
1203
+ blacklistReason: string | null;
1203
1204
  agentId: string;
1204
- callCount: number;
1205
1205
  lastCalledAt: string | null;
1206
- cooldownUntil: string | null;
1207
- blacklistReason: string | null;
1206
+ callCount: number;
1208
1207
  lastCallNotes: string | null;
1209
1208
  existsInLeadsTable: boolean;
1209
+ cooldownUntil: string | null;
1210
1210
  originalLeadId: string | null;
1211
1211
  agent?: {
1212
1212
  status: "ACTIVE" | "INACTIVE";
@@ -1215,16 +1215,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1215
1215
  lastName: string;
1216
1216
  email: string;
1217
1217
  createdAt: string;
1218
- updatedAt: string;
1219
1218
  phoneNumbers: {
1220
1219
  id: string;
1221
1220
  phoneNumber: string;
1222
1221
  isPrimary: boolean;
1223
1222
  description?: string | null | undefined;
1224
1223
  }[];
1225
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1226
- deletedAt?: string | null | undefined;
1227
- officeId?: string | null | undefined;
1224
+ updatedAt: string;
1228
1225
  office?: {
1229
1226
  id: string;
1230
1227
  name: string;
@@ -1234,11 +1231,14 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1234
1231
  lastName: string;
1235
1232
  }[] | undefined;
1236
1233
  } | null | undefined;
1234
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1235
+ officeId?: string | null | undefined;
1237
1236
  canImpersonateUsers?: {
1238
1237
  id: string;
1239
1238
  firstName: string;
1240
1239
  lastName: string;
1241
1240
  }[] | undefined;
1241
+ deletedAt?: string | null | undefined;
1242
1242
  } | undefined;
1243
1243
  };
1244
1244
  assignment?: {
@@ -1246,11 +1246,21 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1246
1246
  id: string;
1247
1247
  createdAt: string;
1248
1248
  updatedAt: string;
1249
+ companyId: string | null;
1249
1250
  agentId: string | null;
1250
1251
  leadId: string;
1251
1252
  assignedAt: string;
1252
1253
  assignedBy: string | null;
1253
- companyId: string | null;
1254
+ company?: {
1255
+ id: string;
1256
+ name: string;
1257
+ createdAt: string;
1258
+ updatedAt: string;
1259
+ } | null | undefined;
1260
+ lead?: {
1261
+ phoneNumber: string;
1262
+ name: string;
1263
+ } | undefined;
1254
1264
  agent?: {
1255
1265
  status: "ACTIVE" | "INACTIVE";
1256
1266
  id: string;
@@ -1258,16 +1268,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1258
1268
  lastName: string;
1259
1269
  email: string;
1260
1270
  createdAt: string;
1261
- updatedAt: string;
1262
1271
  phoneNumbers: {
1263
1272
  id: string;
1264
1273
  phoneNumber: string;
1265
1274
  isPrimary: boolean;
1266
1275
  description?: string | null | undefined;
1267
1276
  }[];
1268
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1269
- deletedAt?: string | null | undefined;
1270
- officeId?: string | null | undefined;
1277
+ updatedAt: string;
1271
1278
  office?: {
1272
1279
  id: string;
1273
1280
  name: string;
@@ -1277,38 +1284,31 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1277
1284
  lastName: string;
1278
1285
  }[] | undefined;
1279
1286
  } | null | undefined;
1287
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1288
+ officeId?: string | null | undefined;
1280
1289
  canImpersonateUsers?: {
1281
1290
  id: string;
1282
1291
  firstName: string;
1283
1292
  lastName: string;
1284
1293
  }[] | undefined;
1294
+ deletedAt?: string | null | undefined;
1285
1295
  } | undefined;
1286
- lead?: {
1287
- name: string;
1288
- phoneNumber: string;
1289
- } | undefined;
1290
- company?: {
1291
- id: string;
1292
- name: string;
1293
- createdAt: string;
1294
- updatedAt: string;
1295
- } | null | undefined;
1296
1296
  } | null | undefined;
1297
1297
  }, {
1298
1298
  ownResearchLead: {
1299
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
1299
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
1300
1300
  id: string;
1301
+ phoneNumber: string;
1301
1302
  name: string;
1302
1303
  createdAt: string | Date;
1303
1304
  updatedAt: string | Date;
1304
- phoneNumber: string;
1305
+ blacklistReason: string | null;
1305
1306
  agentId: string;
1306
- callCount: number;
1307
1307
  lastCalledAt: string | Date | null;
1308
- cooldownUntil: string | Date | null;
1309
- blacklistReason: string | null;
1308
+ callCount: number;
1310
1309
  lastCallNotes: string | null;
1311
1310
  existsInLeadsTable: boolean;
1311
+ cooldownUntil: string | Date | null;
1312
1312
  originalLeadId: string | null;
1313
1313
  agent?: {
1314
1314
  status: "ACTIVE" | "INACTIVE";
@@ -1318,15 +1318,6 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1318
1318
  email: string;
1319
1319
  createdAt: string | Date;
1320
1320
  updatedAt: string | Date;
1321
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1322
- phoneNumbers?: {
1323
- id: string;
1324
- phoneNumber: string;
1325
- description?: string | null | undefined;
1326
- isPrimary?: boolean | undefined;
1327
- }[] | undefined;
1328
- deletedAt?: string | Date | null | undefined;
1329
- officeId?: string | null | undefined;
1330
1321
  office?: {
1331
1322
  id: string;
1332
1323
  name: string;
@@ -1336,11 +1327,20 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1336
1327
  lastName: string;
1337
1328
  }[] | undefined;
1338
1329
  } | null | undefined;
1330
+ phoneNumbers?: {
1331
+ id: string;
1332
+ phoneNumber: string;
1333
+ description?: string | null | undefined;
1334
+ isPrimary?: boolean | undefined;
1335
+ }[] | undefined;
1336
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1337
+ officeId?: string | null | undefined;
1339
1338
  canImpersonateUsers?: {
1340
1339
  id: string;
1341
1340
  firstName: string;
1342
1341
  lastName: string;
1343
1342
  }[] | undefined;
1343
+ deletedAt?: string | Date | null | undefined;
1344
1344
  } | undefined;
1345
1345
  };
1346
1346
  assignment?: {
@@ -1348,11 +1348,21 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1348
1348
  id: string;
1349
1349
  createdAt: string | Date;
1350
1350
  updatedAt: string | Date;
1351
+ companyId: string | null;
1351
1352
  agentId: string | null;
1352
1353
  leadId: string;
1353
1354
  assignedAt: string | Date;
1354
1355
  assignedBy: string | null;
1355
- companyId: string | null;
1356
+ company?: {
1357
+ id: string;
1358
+ name: string;
1359
+ createdAt: string | Date;
1360
+ updatedAt: string | Date;
1361
+ } | null | undefined;
1362
+ lead?: {
1363
+ phoneNumber: string;
1364
+ name: string;
1365
+ } | undefined;
1356
1366
  agent?: {
1357
1367
  status: "ACTIVE" | "INACTIVE";
1358
1368
  id: string;
@@ -1361,15 +1371,6 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1361
1371
  email: string;
1362
1372
  createdAt: string | Date;
1363
1373
  updatedAt: string | Date;
1364
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1365
- phoneNumbers?: {
1366
- id: string;
1367
- phoneNumber: string;
1368
- description?: string | null | undefined;
1369
- isPrimary?: boolean | undefined;
1370
- }[] | undefined;
1371
- deletedAt?: string | Date | null | undefined;
1372
- officeId?: string | null | undefined;
1373
1374
  office?: {
1374
1375
  id: string;
1375
1376
  name: string;
@@ -1379,33 +1380,32 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
1379
1380
  lastName: string;
1380
1381
  }[] | undefined;
1381
1382
  } | null | undefined;
1383
+ phoneNumbers?: {
1384
+ id: string;
1385
+ phoneNumber: string;
1386
+ description?: string | null | undefined;
1387
+ isPrimary?: boolean | undefined;
1388
+ }[] | undefined;
1389
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1390
+ officeId?: string | null | undefined;
1382
1391
  canImpersonateUsers?: {
1383
1392
  id: string;
1384
1393
  firstName: string;
1385
1394
  lastName: string;
1386
1395
  }[] | undefined;
1396
+ deletedAt?: string | Date | null | undefined;
1387
1397
  } | undefined;
1388
- lead?: {
1389
- name: string;
1390
- phoneNumber: string;
1391
- } | undefined;
1392
- company?: {
1393
- id: string;
1394
- name: string;
1395
- createdAt: string | Date;
1396
- updatedAt: string | Date;
1397
- } | null | undefined;
1398
1398
  } | null | undefined;
1399
1399
  }>;
1400
1400
  export declare const AddOwnResearchLeadSchema: z.ZodObject<{
1401
1401
  phoneNumber: z.ZodEffects<z.ZodString, string, string>;
1402
1402
  name: z.ZodString;
1403
1403
  }, "strip", z.ZodTypeAny, {
1404
- name: string;
1405
1404
  phoneNumber: string;
1406
- }, {
1407
1405
  name: string;
1406
+ }, {
1408
1407
  phoneNumber: string;
1408
+ name: string;
1409
1409
  }>;
1410
1410
  export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1411
1411
  ownResearchLead: z.ZodObject<{
@@ -1432,7 +1432,7 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1432
1432
  description?: string | null | undefined;
1433
1433
  isPrimary?: boolean | undefined;
1434
1434
  }>, "many">>>;
1435
- roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
1435
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
1436
1436
  officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1437
1437
  office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1438
1438
  id: z.ZodString;
@@ -1491,16 +1491,13 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1491
1491
  lastName: string;
1492
1492
  email: string;
1493
1493
  createdAt: string;
1494
- updatedAt: string;
1495
1494
  phoneNumbers: {
1496
1495
  id: string;
1497
1496
  phoneNumber: string;
1498
1497
  isPrimary: boolean;
1499
1498
  description?: string | null | undefined;
1500
1499
  }[];
1501
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1502
- deletedAt?: string | null | undefined;
1503
- officeId?: string | null | undefined;
1500
+ updatedAt: string;
1504
1501
  office?: {
1505
1502
  id: string;
1506
1503
  name: string;
@@ -1510,11 +1507,14 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1510
1507
  lastName: string;
1511
1508
  }[] | undefined;
1512
1509
  } | null | undefined;
1510
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1511
+ officeId?: string | null | undefined;
1513
1512
  canImpersonateUsers?: {
1514
1513
  id: string;
1515
1514
  firstName: string;
1516
1515
  lastName: string;
1517
1516
  }[] | undefined;
1517
+ deletedAt?: string | null | undefined;
1518
1518
  }, {
1519
1519
  status: "ACTIVE" | "INACTIVE";
1520
1520
  id: string;
@@ -1523,15 +1523,6 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1523
1523
  email: string;
1524
1524
  createdAt: string | Date;
1525
1525
  updatedAt: string | Date;
1526
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1527
- phoneNumbers?: {
1528
- id: string;
1529
- phoneNumber: string;
1530
- description?: string | null | undefined;
1531
- isPrimary?: boolean | undefined;
1532
- }[] | undefined;
1533
- deletedAt?: string | Date | null | undefined;
1534
- officeId?: string | null | undefined;
1535
1526
  office?: {
1536
1527
  id: string;
1537
1528
  name: string;
@@ -1541,11 +1532,20 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1541
1532
  lastName: string;
1542
1533
  }[] | undefined;
1543
1534
  } | null | undefined;
1535
+ phoneNumbers?: {
1536
+ id: string;
1537
+ phoneNumber: string;
1538
+ description?: string | null | undefined;
1539
+ isPrimary?: boolean | undefined;
1540
+ }[] | undefined;
1541
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1542
+ officeId?: string | null | undefined;
1544
1543
  canImpersonateUsers?: {
1545
1544
  id: string;
1546
1545
  firstName: string;
1547
1546
  lastName: string;
1548
1547
  }[] | undefined;
1548
+ deletedAt?: string | Date | null | undefined;
1549
1549
  }>>;
1550
1550
  name: z.ZodString;
1551
1551
  phoneNumber: z.ZodString;
@@ -1560,19 +1560,19 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1560
1560
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1561
1561
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1562
1562
  }, "strip", z.ZodTypeAny, {
1563
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
1563
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
1564
1564
  id: string;
1565
+ phoneNumber: string;
1565
1566
  name: string;
1566
1567
  createdAt: string;
1567
1568
  updatedAt: string;
1568
- phoneNumber: string;
1569
+ blacklistReason: string | null;
1569
1570
  agentId: string;
1570
- callCount: number;
1571
1571
  lastCalledAt: string | null;
1572
- cooldownUntil: string | null;
1573
- blacklistReason: string | null;
1572
+ callCount: number;
1574
1573
  lastCallNotes: string | null;
1575
1574
  existsInLeadsTable: boolean;
1575
+ cooldownUntil: string | null;
1576
1576
  originalLeadId: string | null;
1577
1577
  agent?: {
1578
1578
  status: "ACTIVE" | "INACTIVE";
@@ -1581,16 +1581,13 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1581
1581
  lastName: string;
1582
1582
  email: string;
1583
1583
  createdAt: string;
1584
- updatedAt: string;
1585
1584
  phoneNumbers: {
1586
1585
  id: string;
1587
1586
  phoneNumber: string;
1588
1587
  isPrimary: boolean;
1589
1588
  description?: string | null | undefined;
1590
1589
  }[];
1591
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1592
- deletedAt?: string | null | undefined;
1593
- officeId?: string | null | undefined;
1590
+ updatedAt: string;
1594
1591
  office?: {
1595
1592
  id: string;
1596
1593
  name: string;
@@ -1600,26 +1597,29 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1600
1597
  lastName: string;
1601
1598
  }[] | undefined;
1602
1599
  } | null | undefined;
1600
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1601
+ officeId?: string | null | undefined;
1603
1602
  canImpersonateUsers?: {
1604
1603
  id: string;
1605
1604
  firstName: string;
1606
1605
  lastName: string;
1607
1606
  }[] | undefined;
1607
+ deletedAt?: string | null | undefined;
1608
1608
  } | undefined;
1609
1609
  }, {
1610
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
1610
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
1611
1611
  id: string;
1612
+ phoneNumber: string;
1612
1613
  name: string;
1613
1614
  createdAt: string | Date;
1614
1615
  updatedAt: string | Date;
1615
- phoneNumber: string;
1616
+ blacklistReason: string | null;
1616
1617
  agentId: string;
1617
- callCount: number;
1618
1618
  lastCalledAt: string | Date | null;
1619
- cooldownUntil: string | Date | null;
1620
- blacklistReason: string | null;
1619
+ callCount: number;
1621
1620
  lastCallNotes: string | null;
1622
1621
  existsInLeadsTable: boolean;
1622
+ cooldownUntil: string | Date | null;
1623
1623
  originalLeadId: string | null;
1624
1624
  agent?: {
1625
1625
  status: "ACTIVE" | "INACTIVE";
@@ -1629,15 +1629,6 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1629
1629
  email: string;
1630
1630
  createdAt: string | Date;
1631
1631
  updatedAt: string | Date;
1632
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1633
- phoneNumbers?: {
1634
- id: string;
1635
- phoneNumber: string;
1636
- description?: string | null | undefined;
1637
- isPrimary?: boolean | undefined;
1638
- }[] | undefined;
1639
- deletedAt?: string | Date | null | undefined;
1640
- officeId?: string | null | undefined;
1641
1632
  office?: {
1642
1633
  id: string;
1643
1634
  name: string;
@@ -1647,28 +1638,37 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1647
1638
  lastName: string;
1648
1639
  }[] | undefined;
1649
1640
  } | null | undefined;
1641
+ phoneNumbers?: {
1642
+ id: string;
1643
+ phoneNumber: string;
1644
+ description?: string | null | undefined;
1645
+ isPrimary?: boolean | undefined;
1646
+ }[] | undefined;
1647
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1648
+ officeId?: string | null | undefined;
1650
1649
  canImpersonateUsers?: {
1651
1650
  id: string;
1652
1651
  firstName: string;
1653
1652
  lastName: string;
1654
1653
  }[] | undefined;
1654
+ deletedAt?: string | Date | null | undefined;
1655
1655
  } | undefined;
1656
1656
  }>;
1657
1657
  }, "strip", z.ZodTypeAny, {
1658
1658
  ownResearchLead: {
1659
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
1659
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
1660
1660
  id: string;
1661
+ phoneNumber: string;
1661
1662
  name: string;
1662
1663
  createdAt: string;
1663
1664
  updatedAt: string;
1664
- phoneNumber: string;
1665
+ blacklistReason: string | null;
1665
1666
  agentId: string;
1666
- callCount: number;
1667
1667
  lastCalledAt: string | null;
1668
- cooldownUntil: string | null;
1669
- blacklistReason: string | null;
1668
+ callCount: number;
1670
1669
  lastCallNotes: string | null;
1671
1670
  existsInLeadsTable: boolean;
1671
+ cooldownUntil: string | null;
1672
1672
  originalLeadId: string | null;
1673
1673
  agent?: {
1674
1674
  status: "ACTIVE" | "INACTIVE";
@@ -1677,16 +1677,13 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1677
1677
  lastName: string;
1678
1678
  email: string;
1679
1679
  createdAt: string;
1680
- updatedAt: string;
1681
1680
  phoneNumbers: {
1682
1681
  id: string;
1683
1682
  phoneNumber: string;
1684
1683
  isPrimary: boolean;
1685
1684
  description?: string | null | undefined;
1686
1685
  }[];
1687
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1688
- deletedAt?: string | null | undefined;
1689
- officeId?: string | null | undefined;
1686
+ updatedAt: string;
1690
1687
  office?: {
1691
1688
  id: string;
1692
1689
  name: string;
@@ -1696,28 +1693,31 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1696
1693
  lastName: string;
1697
1694
  }[] | undefined;
1698
1695
  } | null | undefined;
1696
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1697
+ officeId?: string | null | undefined;
1699
1698
  canImpersonateUsers?: {
1700
1699
  id: string;
1701
1700
  firstName: string;
1702
1701
  lastName: string;
1703
1702
  }[] | undefined;
1703
+ deletedAt?: string | null | undefined;
1704
1704
  } | undefined;
1705
1705
  };
1706
1706
  }, {
1707
1707
  ownResearchLead: {
1708
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
1708
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
1709
1709
  id: string;
1710
+ phoneNumber: string;
1710
1711
  name: string;
1711
1712
  createdAt: string | Date;
1712
1713
  updatedAt: string | Date;
1713
- phoneNumber: string;
1714
+ blacklistReason: string | null;
1714
1715
  agentId: string;
1715
- callCount: number;
1716
1716
  lastCalledAt: string | Date | null;
1717
- cooldownUntil: string | Date | null;
1718
- blacklistReason: string | null;
1717
+ callCount: number;
1719
1718
  lastCallNotes: string | null;
1720
1719
  existsInLeadsTable: boolean;
1720
+ cooldownUntil: string | Date | null;
1721
1721
  originalLeadId: string | null;
1722
1722
  agent?: {
1723
1723
  status: "ACTIVE" | "INACTIVE";
@@ -1727,15 +1727,6 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1727
1727
  email: string;
1728
1728
  createdAt: string | Date;
1729
1729
  updatedAt: string | Date;
1730
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1731
- phoneNumbers?: {
1732
- id: string;
1733
- phoneNumber: string;
1734
- description?: string | null | undefined;
1735
- isPrimary?: boolean | undefined;
1736
- }[] | undefined;
1737
- deletedAt?: string | Date | null | undefined;
1738
- officeId?: string | null | undefined;
1739
1730
  office?: {
1740
1731
  id: string;
1741
1732
  name: string;
@@ -1745,11 +1736,20 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
1745
1736
  lastName: string;
1746
1737
  }[] | undefined;
1747
1738
  } | null | undefined;
1739
+ phoneNumbers?: {
1740
+ id: string;
1741
+ phoneNumber: string;
1742
+ description?: string | null | undefined;
1743
+ isPrimary?: boolean | undefined;
1744
+ }[] | undefined;
1745
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1746
+ officeId?: string | null | undefined;
1748
1747
  canImpersonateUsers?: {
1749
1748
  id: string;
1750
1749
  firstName: string;
1751
1750
  lastName: string;
1752
1751
  }[] | undefined;
1752
+ deletedAt?: string | Date | null | undefined;
1753
1753
  } | undefined;
1754
1754
  };
1755
1755
  }>;
@@ -1790,29 +1790,29 @@ export declare const FilterOwnResearchLeadSchema: z.ZodObject<{
1790
1790
  }, "strip", z.ZodTypeAny, {
1791
1791
  limit: number;
1792
1792
  page: number;
1793
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
1794
- name?: string | undefined;
1793
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED" | undefined;
1795
1794
  phoneNumber?: string | undefined;
1796
- sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
1797
- sortOrder?: "ASC" | "DESC" | undefined;
1795
+ name?: string | undefined;
1798
1796
  lastCalledAt?: {
1799
1797
  from?: string | null | undefined;
1800
1798
  to?: string | null | undefined;
1801
1799
  } | undefined;
1802
1800
  minTotalCalls?: number | undefined;
1801
+ sortBy?: "name" | "createdAt" | "updatedAt" | "lastCalledAt" | "callCount" | undefined;
1802
+ sortOrder?: "ASC" | "DESC" | undefined;
1803
1803
  }, {
1804
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED" | undefined;
1805
+ phoneNumber?: string | undefined;
1806
+ name?: string | undefined;
1804
1807
  limit?: number | undefined;
1805
1808
  page?: number | undefined;
1806
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
1807
- name?: string | undefined;
1808
- phoneNumber?: string | undefined;
1809
- sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
1810
- sortOrder?: "ASC" | "DESC" | undefined;
1811
1809
  lastCalledAt?: {
1812
1810
  from?: string | null | undefined;
1813
1811
  to?: string | null | undefined;
1814
1812
  } | undefined;
1815
1813
  minTotalCalls?: number | undefined;
1814
+ sortBy?: "name" | "createdAt" | "updatedAt" | "lastCalledAt" | "callCount" | undefined;
1815
+ sortOrder?: "ASC" | "DESC" | undefined;
1816
1816
  }>;
1817
1817
  export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
1818
1818
  items: z.ZodArray<z.ZodObject<{
@@ -1839,7 +1839,7 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
1839
1839
  description?: string | null | undefined;
1840
1840
  isPrimary?: boolean | undefined;
1841
1841
  }>, "many">>>;
1842
- roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
1842
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
1843
1843
  officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1844
1844
  office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1845
1845
  id: z.ZodString;
@@ -1898,16 +1898,13 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
1898
1898
  lastName: string;
1899
1899
  email: string;
1900
1900
  createdAt: string;
1901
- updatedAt: string;
1902
1901
  phoneNumbers: {
1903
1902
  id: string;
1904
1903
  phoneNumber: string;
1905
1904
  isPrimary: boolean;
1906
1905
  description?: string | null | undefined;
1907
1906
  }[];
1908
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1909
- deletedAt?: string | null | undefined;
1910
- officeId?: string | null | undefined;
1907
+ updatedAt: string;
1911
1908
  office?: {
1912
1909
  id: string;
1913
1910
  name: string;
@@ -1917,11 +1914,14 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
1917
1914
  lastName: string;
1918
1915
  }[] | undefined;
1919
1916
  } | null | undefined;
1917
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1918
+ officeId?: string | null | undefined;
1920
1919
  canImpersonateUsers?: {
1921
1920
  id: string;
1922
1921
  firstName: string;
1923
1922
  lastName: string;
1924
1923
  }[] | undefined;
1924
+ deletedAt?: string | null | undefined;
1925
1925
  }, {
1926
1926
  status: "ACTIVE" | "INACTIVE";
1927
1927
  id: string;
@@ -1930,15 +1930,6 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
1930
1930
  email: string;
1931
1931
  createdAt: string | Date;
1932
1932
  updatedAt: string | Date;
1933
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1934
- phoneNumbers?: {
1935
- id: string;
1936
- phoneNumber: string;
1937
- description?: string | null | undefined;
1938
- isPrimary?: boolean | undefined;
1939
- }[] | undefined;
1940
- deletedAt?: string | Date | null | undefined;
1941
- officeId?: string | null | undefined;
1942
1933
  office?: {
1943
1934
  id: string;
1944
1935
  name: string;
@@ -1948,11 +1939,20 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
1948
1939
  lastName: string;
1949
1940
  }[] | undefined;
1950
1941
  } | null | undefined;
1942
+ phoneNumbers?: {
1943
+ id: string;
1944
+ phoneNumber: string;
1945
+ description?: string | null | undefined;
1946
+ isPrimary?: boolean | undefined;
1947
+ }[] | undefined;
1948
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1949
+ officeId?: string | null | undefined;
1951
1950
  canImpersonateUsers?: {
1952
1951
  id: string;
1953
1952
  firstName: string;
1954
1953
  lastName: string;
1955
1954
  }[] | undefined;
1955
+ deletedAt?: string | Date | null | undefined;
1956
1956
  }>>;
1957
1957
  name: z.ZodString;
1958
1958
  phoneNumber: z.ZodString;
@@ -1967,19 +1967,19 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
1967
1967
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1968
1968
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1969
1969
  }, "strip", z.ZodTypeAny, {
1970
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
1970
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
1971
1971
  id: string;
1972
+ phoneNumber: string;
1972
1973
  name: string;
1973
1974
  createdAt: string;
1974
1975
  updatedAt: string;
1975
- phoneNumber: string;
1976
+ blacklistReason: string | null;
1976
1977
  agentId: string;
1977
- callCount: number;
1978
1978
  lastCalledAt: string | null;
1979
- cooldownUntil: string | null;
1980
- blacklistReason: string | null;
1979
+ callCount: number;
1981
1980
  lastCallNotes: string | null;
1982
1981
  existsInLeadsTable: boolean;
1982
+ cooldownUntil: string | null;
1983
1983
  originalLeadId: string | null;
1984
1984
  agent?: {
1985
1985
  status: "ACTIVE" | "INACTIVE";
@@ -1988,16 +1988,13 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
1988
1988
  lastName: string;
1989
1989
  email: string;
1990
1990
  createdAt: string;
1991
- updatedAt: string;
1992
1991
  phoneNumbers: {
1993
1992
  id: string;
1994
1993
  phoneNumber: string;
1995
1994
  isPrimary: boolean;
1996
1995
  description?: string | null | undefined;
1997
1996
  }[];
1998
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1999
- deletedAt?: string | null | undefined;
2000
- officeId?: string | null | undefined;
1997
+ updatedAt: string;
2001
1998
  office?: {
2002
1999
  id: string;
2003
2000
  name: string;
@@ -2007,26 +2004,29 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
2007
2004
  lastName: string;
2008
2005
  }[] | undefined;
2009
2006
  } | null | undefined;
2007
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2008
+ officeId?: string | null | undefined;
2010
2009
  canImpersonateUsers?: {
2011
2010
  id: string;
2012
2011
  firstName: string;
2013
2012
  lastName: string;
2014
2013
  }[] | undefined;
2014
+ deletedAt?: string | null | undefined;
2015
2015
  } | undefined;
2016
2016
  }, {
2017
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
2017
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
2018
2018
  id: string;
2019
+ phoneNumber: string;
2019
2020
  name: string;
2020
2021
  createdAt: string | Date;
2021
2022
  updatedAt: string | Date;
2022
- phoneNumber: string;
2023
+ blacklistReason: string | null;
2023
2024
  agentId: string;
2024
- callCount: number;
2025
2025
  lastCalledAt: string | Date | null;
2026
- cooldownUntil: string | Date | null;
2027
- blacklistReason: string | null;
2026
+ callCount: number;
2028
2027
  lastCallNotes: string | null;
2029
2028
  existsInLeadsTable: boolean;
2029
+ cooldownUntil: string | Date | null;
2030
2030
  originalLeadId: string | null;
2031
2031
  agent?: {
2032
2032
  status: "ACTIVE" | "INACTIVE";
@@ -2036,15 +2036,6 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
2036
2036
  email: string;
2037
2037
  createdAt: string | Date;
2038
2038
  updatedAt: string | Date;
2039
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2040
- phoneNumbers?: {
2041
- id: string;
2042
- phoneNumber: string;
2043
- description?: string | null | undefined;
2044
- isPrimary?: boolean | undefined;
2045
- }[] | undefined;
2046
- deletedAt?: string | Date | null | undefined;
2047
- officeId?: string | null | undefined;
2048
2039
  office?: {
2049
2040
  id: string;
2050
2041
  name: string;
@@ -2054,11 +2045,20 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
2054
2045
  lastName: string;
2055
2046
  }[] | undefined;
2056
2047
  } | null | undefined;
2048
+ phoneNumbers?: {
2049
+ id: string;
2050
+ phoneNumber: string;
2051
+ description?: string | null | undefined;
2052
+ isPrimary?: boolean | undefined;
2053
+ }[] | undefined;
2054
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2055
+ officeId?: string | null | undefined;
2057
2056
  canImpersonateUsers?: {
2058
2057
  id: string;
2059
2058
  firstName: string;
2060
2059
  lastName: string;
2061
2060
  }[] | undefined;
2061
+ deletedAt?: string | Date | null | undefined;
2062
2062
  } | undefined;
2063
2063
  }>, "many">;
2064
2064
  totalCount: z.ZodNumber;
@@ -2069,19 +2069,19 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
2069
2069
  }, "strip", z.ZodTypeAny, {
2070
2070
  limit: number;
2071
2071
  items: {
2072
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
2072
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
2073
2073
  id: string;
2074
+ phoneNumber: string;
2074
2075
  name: string;
2075
2076
  createdAt: string;
2076
2077
  updatedAt: string;
2077
- phoneNumber: string;
2078
+ blacklistReason: string | null;
2078
2079
  agentId: string;
2079
- callCount: number;
2080
2080
  lastCalledAt: string | null;
2081
- cooldownUntil: string | null;
2082
- blacklistReason: string | null;
2081
+ callCount: number;
2083
2082
  lastCallNotes: string | null;
2084
2083
  existsInLeadsTable: boolean;
2084
+ cooldownUntil: string | null;
2085
2085
  originalLeadId: string | null;
2086
2086
  agent?: {
2087
2087
  status: "ACTIVE" | "INACTIVE";
@@ -2090,16 +2090,13 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
2090
2090
  lastName: string;
2091
2091
  email: string;
2092
2092
  createdAt: string;
2093
- updatedAt: string;
2094
2093
  phoneNumbers: {
2095
2094
  id: string;
2096
2095
  phoneNumber: string;
2097
2096
  isPrimary: boolean;
2098
2097
  description?: string | null | undefined;
2099
2098
  }[];
2100
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2101
- deletedAt?: string | null | undefined;
2102
- officeId?: string | null | undefined;
2099
+ updatedAt: string;
2103
2100
  office?: {
2104
2101
  id: string;
2105
2102
  name: string;
@@ -2109,11 +2106,14 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
2109
2106
  lastName: string;
2110
2107
  }[] | undefined;
2111
2108
  } | null | undefined;
2109
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2110
+ officeId?: string | null | undefined;
2112
2111
  canImpersonateUsers?: {
2113
2112
  id: string;
2114
2113
  firstName: string;
2115
2114
  lastName: string;
2116
2115
  }[] | undefined;
2116
+ deletedAt?: string | null | undefined;
2117
2117
  } | undefined;
2118
2118
  }[];
2119
2119
  totalCount: number;
@@ -2123,19 +2123,19 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
2123
2123
  }, {
2124
2124
  limit: number;
2125
2125
  items: {
2126
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
2126
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
2127
2127
  id: string;
2128
+ phoneNumber: string;
2128
2129
  name: string;
2129
2130
  createdAt: string | Date;
2130
2131
  updatedAt: string | Date;
2131
- phoneNumber: string;
2132
+ blacklistReason: string | null;
2132
2133
  agentId: string;
2133
- callCount: number;
2134
2134
  lastCalledAt: string | Date | null;
2135
- cooldownUntil: string | Date | null;
2136
- blacklistReason: string | null;
2135
+ callCount: number;
2137
2136
  lastCallNotes: string | null;
2138
2137
  existsInLeadsTable: boolean;
2138
+ cooldownUntil: string | Date | null;
2139
2139
  originalLeadId: string | null;
2140
2140
  agent?: {
2141
2141
  status: "ACTIVE" | "INACTIVE";
@@ -2145,15 +2145,6 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
2145
2145
  email: string;
2146
2146
  createdAt: string | Date;
2147
2147
  updatedAt: string | Date;
2148
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2149
- phoneNumbers?: {
2150
- id: string;
2151
- phoneNumber: string;
2152
- description?: string | null | undefined;
2153
- isPrimary?: boolean | undefined;
2154
- }[] | undefined;
2155
- deletedAt?: string | Date | null | undefined;
2156
- officeId?: string | null | undefined;
2157
2148
  office?: {
2158
2149
  id: string;
2159
2150
  name: string;
@@ -2163,11 +2154,20 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
2163
2154
  lastName: string;
2164
2155
  }[] | undefined;
2165
2156
  } | null | undefined;
2157
+ phoneNumbers?: {
2158
+ id: string;
2159
+ phoneNumber: string;
2160
+ description?: string | null | undefined;
2161
+ isPrimary?: boolean | undefined;
2162
+ }[] | undefined;
2163
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2164
+ officeId?: string | null | undefined;
2166
2165
  canImpersonateUsers?: {
2167
2166
  id: string;
2168
2167
  firstName: string;
2169
2168
  lastName: string;
2170
2169
  }[] | undefined;
2170
+ deletedAt?: string | Date | null | undefined;
2171
2171
  } | undefined;
2172
2172
  }[];
2173
2173
  totalCount: number;
@@ -2203,17 +2203,17 @@ export declare const ownResearchContract: {
2203
2203
  path: z.ZodString;
2204
2204
  correlationId: z.ZodOptional<z.ZodString>;
2205
2205
  }, "strip", z.ZodTypeAny, {
2206
+ message: string;
2206
2207
  code: string;
2207
2208
  path: string;
2208
- message: string;
2209
2209
  statusCode: number;
2210
2210
  timestamp: string;
2211
2211
  details?: unknown;
2212
2212
  correlationId?: string | undefined;
2213
2213
  }, {
2214
+ message: string;
2214
2215
  code: string;
2215
2216
  path: string;
2216
- message: string;
2217
2217
  statusCode: number;
2218
2218
  timestamp: string;
2219
2219
  details?: unknown;
@@ -2228,17 +2228,17 @@ export declare const ownResearchContract: {
2228
2228
  path: z.ZodString;
2229
2229
  correlationId: z.ZodOptional<z.ZodString>;
2230
2230
  }, "strip", z.ZodTypeAny, {
2231
+ message: string;
2231
2232
  code: string;
2232
2233
  path: string;
2233
- message: string;
2234
2234
  statusCode: number;
2235
2235
  timestamp: string;
2236
2236
  details?: unknown;
2237
2237
  correlationId?: string | undefined;
2238
2238
  }, {
2239
+ message: string;
2239
2240
  code: string;
2240
2241
  path: string;
2241
- message: string;
2242
2242
  statusCode: number;
2243
2243
  timestamp: string;
2244
2244
  details?: unknown;
@@ -2253,17 +2253,17 @@ export declare const ownResearchContract: {
2253
2253
  path: z.ZodString;
2254
2254
  correlationId: z.ZodOptional<z.ZodString>;
2255
2255
  }, "strip", z.ZodTypeAny, {
2256
+ message: string;
2256
2257
  code: string;
2257
2258
  path: string;
2258
- message: string;
2259
2259
  statusCode: number;
2260
2260
  timestamp: string;
2261
2261
  details?: unknown;
2262
2262
  correlationId?: string | undefined;
2263
2263
  }, {
2264
+ message: string;
2264
2265
  code: string;
2265
2266
  path: string;
2266
- message: string;
2267
2267
  statusCode: number;
2268
2268
  timestamp: string;
2269
2269
  details?: unknown;
@@ -2278,17 +2278,17 @@ export declare const ownResearchContract: {
2278
2278
  path: z.ZodString;
2279
2279
  correlationId: z.ZodOptional<z.ZodString>;
2280
2280
  }, "strip", z.ZodTypeAny, {
2281
+ message: string;
2281
2282
  code: string;
2282
2283
  path: string;
2283
- message: string;
2284
2284
  statusCode: number;
2285
2285
  timestamp: string;
2286
2286
  details?: unknown;
2287
2287
  correlationId?: string | undefined;
2288
2288
  }, {
2289
+ message: string;
2289
2290
  code: string;
2290
2291
  path: string;
2291
- message: string;
2292
2292
  statusCode: number;
2293
2293
  timestamp: string;
2294
2294
  details?: unknown;
@@ -2310,9 +2310,6 @@ export declare const ownResearchContract: {
2310
2310
  };
2311
2311
  };
2312
2312
  findAll: {
2313
- metadata: {
2314
- tags: string[];
2315
- };
2316
2313
  query: z.ZodObject<{
2317
2314
  limit: z.ZodDefault<z.ZodNumber>;
2318
2315
  page: z.ZodDefault<z.ZodNumber>;
@@ -2336,30 +2333,33 @@ export declare const ownResearchContract: {
2336
2333
  }, "strip", z.ZodTypeAny, {
2337
2334
  limit: number;
2338
2335
  page: number;
2339
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
2340
- name?: string | undefined;
2336
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED" | undefined;
2341
2337
  phoneNumber?: string | undefined;
2342
- sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
2343
- sortOrder?: "ASC" | "DESC" | undefined;
2338
+ name?: string | undefined;
2344
2339
  lastCalledAt?: {
2345
2340
  from?: string | null | undefined;
2346
2341
  to?: string | null | undefined;
2347
2342
  } | undefined;
2348
2343
  minTotalCalls?: number | undefined;
2344
+ sortBy?: "name" | "createdAt" | "updatedAt" | "lastCalledAt" | "callCount" | undefined;
2345
+ sortOrder?: "ASC" | "DESC" | undefined;
2349
2346
  }, {
2347
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED" | undefined;
2348
+ phoneNumber?: string | undefined;
2349
+ name?: string | undefined;
2350
2350
  limit?: number | undefined;
2351
2351
  page?: number | undefined;
2352
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
2353
- name?: string | undefined;
2354
- phoneNumber?: string | undefined;
2355
- sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
2356
- sortOrder?: "ASC" | "DESC" | undefined;
2357
2352
  lastCalledAt?: {
2358
2353
  from?: string | null | undefined;
2359
2354
  to?: string | null | undefined;
2360
2355
  } | undefined;
2361
2356
  minTotalCalls?: number | undefined;
2357
+ sortBy?: "name" | "createdAt" | "updatedAt" | "lastCalledAt" | "callCount" | undefined;
2358
+ sortOrder?: "ASC" | "DESC" | undefined;
2362
2359
  }>;
2360
+ metadata: {
2361
+ tags: string[];
2362
+ };
2363
2363
  summary: "Get all own research leads for the current agent";
2364
2364
  method: "GET";
2365
2365
  path: "/v2/own-research/leads";
@@ -2373,17 +2373,17 @@ export declare const ownResearchContract: {
2373
2373
  path: z.ZodString;
2374
2374
  correlationId: z.ZodOptional<z.ZodString>;
2375
2375
  }, "strip", z.ZodTypeAny, {
2376
+ message: string;
2376
2377
  code: string;
2377
2378
  path: string;
2378
- message: string;
2379
2379
  statusCode: number;
2380
2380
  timestamp: string;
2381
2381
  details?: unknown;
2382
2382
  correlationId?: string | undefined;
2383
2383
  }, {
2384
+ message: string;
2384
2385
  code: string;
2385
2386
  path: string;
2386
- message: string;
2387
2387
  statusCode: number;
2388
2388
  timestamp: string;
2389
2389
  details?: unknown;
@@ -2398,17 +2398,17 @@ export declare const ownResearchContract: {
2398
2398
  path: z.ZodString;
2399
2399
  correlationId: z.ZodOptional<z.ZodString>;
2400
2400
  }, "strip", z.ZodTypeAny, {
2401
+ message: string;
2401
2402
  code: string;
2402
2403
  path: string;
2403
- message: string;
2404
2404
  statusCode: number;
2405
2405
  timestamp: string;
2406
2406
  details?: unknown;
2407
2407
  correlationId?: string | undefined;
2408
2408
  }, {
2409
+ message: string;
2409
2410
  code: string;
2410
2411
  path: string;
2411
- message: string;
2412
2412
  statusCode: number;
2413
2413
  timestamp: string;
2414
2414
  details?: unknown;
@@ -2423,17 +2423,17 @@ export declare const ownResearchContract: {
2423
2423
  path: z.ZodString;
2424
2424
  correlationId: z.ZodOptional<z.ZodString>;
2425
2425
  }, "strip", z.ZodTypeAny, {
2426
+ message: string;
2426
2427
  code: string;
2427
2428
  path: string;
2428
- message: string;
2429
2429
  statusCode: number;
2430
2430
  timestamp: string;
2431
2431
  details?: unknown;
2432
2432
  correlationId?: string | undefined;
2433
2433
  }, {
2434
+ message: string;
2434
2435
  code: string;
2435
2436
  path: string;
2436
- message: string;
2437
2437
  statusCode: number;
2438
2438
  timestamp: string;
2439
2439
  details?: unknown;
@@ -2448,17 +2448,17 @@ export declare const ownResearchContract: {
2448
2448
  path: z.ZodString;
2449
2449
  correlationId: z.ZodOptional<z.ZodString>;
2450
2450
  }, "strip", z.ZodTypeAny, {
2451
+ message: string;
2451
2452
  code: string;
2452
2453
  path: string;
2453
- message: string;
2454
2454
  statusCode: number;
2455
2455
  timestamp: string;
2456
2456
  details?: unknown;
2457
2457
  correlationId?: string | undefined;
2458
2458
  }, {
2459
+ message: string;
2459
2460
  code: string;
2460
2461
  path: string;
2461
- message: string;
2462
2462
  statusCode: number;
2463
2463
  timestamp: string;
2464
2464
  details?: unknown;
@@ -2489,7 +2489,7 @@ export declare const ownResearchContract: {
2489
2489
  description?: string | null | undefined;
2490
2490
  isPrimary?: boolean | undefined;
2491
2491
  }>, "many">>>;
2492
- roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
2492
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
2493
2493
  officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2494
2494
  office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2495
2495
  id: z.ZodString;
@@ -2548,16 +2548,13 @@ export declare const ownResearchContract: {
2548
2548
  lastName: string;
2549
2549
  email: string;
2550
2550
  createdAt: string;
2551
- updatedAt: string;
2552
2551
  phoneNumbers: {
2553
2552
  id: string;
2554
2553
  phoneNumber: string;
2555
2554
  isPrimary: boolean;
2556
2555
  description?: string | null | undefined;
2557
2556
  }[];
2558
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2559
- deletedAt?: string | null | undefined;
2560
- officeId?: string | null | undefined;
2557
+ updatedAt: string;
2561
2558
  office?: {
2562
2559
  id: string;
2563
2560
  name: string;
@@ -2567,11 +2564,14 @@ export declare const ownResearchContract: {
2567
2564
  lastName: string;
2568
2565
  }[] | undefined;
2569
2566
  } | null | undefined;
2567
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2568
+ officeId?: string | null | undefined;
2570
2569
  canImpersonateUsers?: {
2571
2570
  id: string;
2572
2571
  firstName: string;
2573
2572
  lastName: string;
2574
2573
  }[] | undefined;
2574
+ deletedAt?: string | null | undefined;
2575
2575
  }, {
2576
2576
  status: "ACTIVE" | "INACTIVE";
2577
2577
  id: string;
@@ -2580,15 +2580,6 @@ export declare const ownResearchContract: {
2580
2580
  email: string;
2581
2581
  createdAt: string | Date;
2582
2582
  updatedAt: string | Date;
2583
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2584
- phoneNumbers?: {
2585
- id: string;
2586
- phoneNumber: string;
2587
- description?: string | null | undefined;
2588
- isPrimary?: boolean | undefined;
2589
- }[] | undefined;
2590
- deletedAt?: string | Date | null | undefined;
2591
- officeId?: string | null | undefined;
2592
2583
  office?: {
2593
2584
  id: string;
2594
2585
  name: string;
@@ -2598,11 +2589,20 @@ export declare const ownResearchContract: {
2598
2589
  lastName: string;
2599
2590
  }[] | undefined;
2600
2591
  } | null | undefined;
2592
+ phoneNumbers?: {
2593
+ id: string;
2594
+ phoneNumber: string;
2595
+ description?: string | null | undefined;
2596
+ isPrimary?: boolean | undefined;
2597
+ }[] | undefined;
2598
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2599
+ officeId?: string | null | undefined;
2601
2600
  canImpersonateUsers?: {
2602
2601
  id: string;
2603
2602
  firstName: string;
2604
2603
  lastName: string;
2605
2604
  }[] | undefined;
2605
+ deletedAt?: string | Date | null | undefined;
2606
2606
  }>>;
2607
2607
  name: z.ZodString;
2608
2608
  phoneNumber: z.ZodString;
@@ -2617,19 +2617,19 @@ export declare const ownResearchContract: {
2617
2617
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2618
2618
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2619
2619
  }, "strip", z.ZodTypeAny, {
2620
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
2620
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
2621
2621
  id: string;
2622
+ phoneNumber: string;
2622
2623
  name: string;
2623
2624
  createdAt: string;
2624
2625
  updatedAt: string;
2625
- phoneNumber: string;
2626
+ blacklistReason: string | null;
2626
2627
  agentId: string;
2627
- callCount: number;
2628
2628
  lastCalledAt: string | null;
2629
- cooldownUntil: string | null;
2630
- blacklistReason: string | null;
2629
+ callCount: number;
2631
2630
  lastCallNotes: string | null;
2632
2631
  existsInLeadsTable: boolean;
2632
+ cooldownUntil: string | null;
2633
2633
  originalLeadId: string | null;
2634
2634
  agent?: {
2635
2635
  status: "ACTIVE" | "INACTIVE";
@@ -2638,16 +2638,13 @@ export declare const ownResearchContract: {
2638
2638
  lastName: string;
2639
2639
  email: string;
2640
2640
  createdAt: string;
2641
- updatedAt: string;
2642
2641
  phoneNumbers: {
2643
2642
  id: string;
2644
2643
  phoneNumber: string;
2645
2644
  isPrimary: boolean;
2646
2645
  description?: string | null | undefined;
2647
2646
  }[];
2648
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2649
- deletedAt?: string | null | undefined;
2650
- officeId?: string | null | undefined;
2647
+ updatedAt: string;
2651
2648
  office?: {
2652
2649
  id: string;
2653
2650
  name: string;
@@ -2657,26 +2654,29 @@ export declare const ownResearchContract: {
2657
2654
  lastName: string;
2658
2655
  }[] | undefined;
2659
2656
  } | null | undefined;
2657
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2658
+ officeId?: string | null | undefined;
2660
2659
  canImpersonateUsers?: {
2661
2660
  id: string;
2662
2661
  firstName: string;
2663
2662
  lastName: string;
2664
2663
  }[] | undefined;
2664
+ deletedAt?: string | null | undefined;
2665
2665
  } | undefined;
2666
2666
  }, {
2667
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
2667
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
2668
2668
  id: string;
2669
+ phoneNumber: string;
2669
2670
  name: string;
2670
2671
  createdAt: string | Date;
2671
2672
  updatedAt: string | Date;
2672
- phoneNumber: string;
2673
+ blacklistReason: string | null;
2673
2674
  agentId: string;
2674
- callCount: number;
2675
2675
  lastCalledAt: string | Date | null;
2676
- cooldownUntil: string | Date | null;
2677
- blacklistReason: string | null;
2676
+ callCount: number;
2678
2677
  lastCallNotes: string | null;
2679
2678
  existsInLeadsTable: boolean;
2679
+ cooldownUntil: string | Date | null;
2680
2680
  originalLeadId: string | null;
2681
2681
  agent?: {
2682
2682
  status: "ACTIVE" | "INACTIVE";
@@ -2686,15 +2686,6 @@ export declare const ownResearchContract: {
2686
2686
  email: string;
2687
2687
  createdAt: string | Date;
2688
2688
  updatedAt: string | Date;
2689
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2690
- phoneNumbers?: {
2691
- id: string;
2692
- phoneNumber: string;
2693
- description?: string | null | undefined;
2694
- isPrimary?: boolean | undefined;
2695
- }[] | undefined;
2696
- deletedAt?: string | Date | null | undefined;
2697
- officeId?: string | null | undefined;
2698
2689
  office?: {
2699
2690
  id: string;
2700
2691
  name: string;
@@ -2704,11 +2695,20 @@ export declare const ownResearchContract: {
2704
2695
  lastName: string;
2705
2696
  }[] | undefined;
2706
2697
  } | null | undefined;
2698
+ phoneNumbers?: {
2699
+ id: string;
2700
+ phoneNumber: string;
2701
+ description?: string | null | undefined;
2702
+ isPrimary?: boolean | undefined;
2703
+ }[] | undefined;
2704
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2705
+ officeId?: string | null | undefined;
2707
2706
  canImpersonateUsers?: {
2708
2707
  id: string;
2709
2708
  firstName: string;
2710
2709
  lastName: string;
2711
2710
  }[] | undefined;
2711
+ deletedAt?: string | Date | null | undefined;
2712
2712
  } | undefined;
2713
2713
  }>, "many">;
2714
2714
  totalCount: z.ZodNumber;
@@ -2719,19 +2719,19 @@ export declare const ownResearchContract: {
2719
2719
  }, "strip", z.ZodTypeAny, {
2720
2720
  limit: number;
2721
2721
  items: {
2722
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
2722
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
2723
2723
  id: string;
2724
+ phoneNumber: string;
2724
2725
  name: string;
2725
2726
  createdAt: string;
2726
2727
  updatedAt: string;
2727
- phoneNumber: string;
2728
+ blacklistReason: string | null;
2728
2729
  agentId: string;
2729
- callCount: number;
2730
2730
  lastCalledAt: string | null;
2731
- cooldownUntil: string | null;
2732
- blacklistReason: string | null;
2731
+ callCount: number;
2733
2732
  lastCallNotes: string | null;
2734
2733
  existsInLeadsTable: boolean;
2734
+ cooldownUntil: string | null;
2735
2735
  originalLeadId: string | null;
2736
2736
  agent?: {
2737
2737
  status: "ACTIVE" | "INACTIVE";
@@ -2740,16 +2740,13 @@ export declare const ownResearchContract: {
2740
2740
  lastName: string;
2741
2741
  email: string;
2742
2742
  createdAt: string;
2743
- updatedAt: string;
2744
2743
  phoneNumbers: {
2745
2744
  id: string;
2746
2745
  phoneNumber: string;
2747
2746
  isPrimary: boolean;
2748
2747
  description?: string | null | undefined;
2749
2748
  }[];
2750
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2751
- deletedAt?: string | null | undefined;
2752
- officeId?: string | null | undefined;
2749
+ updatedAt: string;
2753
2750
  office?: {
2754
2751
  id: string;
2755
2752
  name: string;
@@ -2759,11 +2756,14 @@ export declare const ownResearchContract: {
2759
2756
  lastName: string;
2760
2757
  }[] | undefined;
2761
2758
  } | null | undefined;
2759
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2760
+ officeId?: string | null | undefined;
2762
2761
  canImpersonateUsers?: {
2763
2762
  id: string;
2764
2763
  firstName: string;
2765
2764
  lastName: string;
2766
2765
  }[] | undefined;
2766
+ deletedAt?: string | null | undefined;
2767
2767
  } | undefined;
2768
2768
  }[];
2769
2769
  totalCount: number;
@@ -2773,19 +2773,19 @@ export declare const ownResearchContract: {
2773
2773
  }, {
2774
2774
  limit: number;
2775
2775
  items: {
2776
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
2776
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
2777
2777
  id: string;
2778
+ phoneNumber: string;
2778
2779
  name: string;
2779
2780
  createdAt: string | Date;
2780
2781
  updatedAt: string | Date;
2781
- phoneNumber: string;
2782
+ blacklistReason: string | null;
2782
2783
  agentId: string;
2783
- callCount: number;
2784
2784
  lastCalledAt: string | Date | null;
2785
- cooldownUntil: string | Date | null;
2786
- blacklistReason: string | null;
2785
+ callCount: number;
2787
2786
  lastCallNotes: string | null;
2788
2787
  existsInLeadsTable: boolean;
2788
+ cooldownUntil: string | Date | null;
2789
2789
  originalLeadId: string | null;
2790
2790
  agent?: {
2791
2791
  status: "ACTIVE" | "INACTIVE";
@@ -2795,15 +2795,6 @@ export declare const ownResearchContract: {
2795
2795
  email: string;
2796
2796
  createdAt: string | Date;
2797
2797
  updatedAt: string | Date;
2798
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2799
- phoneNumbers?: {
2800
- id: string;
2801
- phoneNumber: string;
2802
- description?: string | null | undefined;
2803
- isPrimary?: boolean | undefined;
2804
- }[] | undefined;
2805
- deletedAt?: string | Date | null | undefined;
2806
- officeId?: string | null | undefined;
2807
2798
  office?: {
2808
2799
  id: string;
2809
2800
  name: string;
@@ -2813,11 +2804,20 @@ export declare const ownResearchContract: {
2813
2804
  lastName: string;
2814
2805
  }[] | undefined;
2815
2806
  } | null | undefined;
2807
+ phoneNumbers?: {
2808
+ id: string;
2809
+ phoneNumber: string;
2810
+ description?: string | null | undefined;
2811
+ isPrimary?: boolean | undefined;
2812
+ }[] | undefined;
2813
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2814
+ officeId?: string | null | undefined;
2816
2815
  canImpersonateUsers?: {
2817
2816
  id: string;
2818
2817
  firstName: string;
2819
2818
  lastName: string;
2820
2819
  }[] | undefined;
2820
+ deletedAt?: string | Date | null | undefined;
2821
2821
  } | undefined;
2822
2822
  }[];
2823
2823
  totalCount: number;
@@ -2851,17 +2851,17 @@ export declare const ownResearchContract: {
2851
2851
  path: z.ZodString;
2852
2852
  correlationId: z.ZodOptional<z.ZodString>;
2853
2853
  }, "strip", z.ZodTypeAny, {
2854
+ message: string;
2854
2855
  code: string;
2855
2856
  path: string;
2856
- message: string;
2857
2857
  statusCode: number;
2858
2858
  timestamp: string;
2859
2859
  details?: unknown;
2860
2860
  correlationId?: string | undefined;
2861
2861
  }, {
2862
+ message: string;
2862
2863
  code: string;
2863
2864
  path: string;
2864
- message: string;
2865
2865
  statusCode: number;
2866
2866
  timestamp: string;
2867
2867
  details?: unknown;
@@ -2876,17 +2876,17 @@ export declare const ownResearchContract: {
2876
2876
  path: z.ZodString;
2877
2877
  correlationId: z.ZodOptional<z.ZodString>;
2878
2878
  }, "strip", z.ZodTypeAny, {
2879
+ message: string;
2879
2880
  code: string;
2880
2881
  path: string;
2881
- message: string;
2882
2882
  statusCode: number;
2883
2883
  timestamp: string;
2884
2884
  details?: unknown;
2885
2885
  correlationId?: string | undefined;
2886
2886
  }, {
2887
+ message: string;
2887
2888
  code: string;
2888
2889
  path: string;
2889
- message: string;
2890
2890
  statusCode: number;
2891
2891
  timestamp: string;
2892
2892
  details?: unknown;
@@ -2901,17 +2901,17 @@ export declare const ownResearchContract: {
2901
2901
  path: z.ZodString;
2902
2902
  correlationId: z.ZodOptional<z.ZodString>;
2903
2903
  }, "strip", z.ZodTypeAny, {
2904
+ message: string;
2904
2905
  code: string;
2905
2906
  path: string;
2906
- message: string;
2907
2907
  statusCode: number;
2908
2908
  timestamp: string;
2909
2909
  details?: unknown;
2910
2910
  correlationId?: string | undefined;
2911
2911
  }, {
2912
+ message: string;
2912
2913
  code: string;
2913
2914
  path: string;
2914
- message: string;
2915
2915
  statusCode: number;
2916
2916
  timestamp: string;
2917
2917
  details?: unknown;
@@ -2926,17 +2926,17 @@ export declare const ownResearchContract: {
2926
2926
  path: z.ZodString;
2927
2927
  correlationId: z.ZodOptional<z.ZodString>;
2928
2928
  }, "strip", z.ZodTypeAny, {
2929
+ message: string;
2929
2930
  code: string;
2930
2931
  path: string;
2931
- message: string;
2932
2932
  statusCode: number;
2933
2933
  timestamp: string;
2934
2934
  details?: unknown;
2935
2935
  correlationId?: string | undefined;
2936
2936
  }, {
2937
+ message: string;
2937
2938
  code: string;
2938
2939
  path: string;
2939
- message: string;
2940
2940
  statusCode: number;
2941
2941
  timestamp: string;
2942
2942
  details?: unknown;
@@ -2954,14 +2954,14 @@ export declare const ownResearchContract: {
2954
2954
  }, "strip", z.ZodTypeAny, {
2955
2955
  status: string;
2956
2956
  id: string;
2957
- name: string;
2958
2957
  phoneNumber: string;
2958
+ name: string;
2959
2959
  cooldownUntil: string | null;
2960
2960
  }, {
2961
2961
  status: string;
2962
2962
  id: string;
2963
- name: string;
2964
2963
  phoneNumber: string;
2964
+ name: string;
2965
2965
  cooldownUntil: string | Date | null;
2966
2966
  }>>>;
2967
2967
  ownResearchLead: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -2988,7 +2988,7 @@ export declare const ownResearchContract: {
2988
2988
  description?: string | null | undefined;
2989
2989
  isPrimary?: boolean | undefined;
2990
2990
  }>, "many">>>;
2991
- roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
2991
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
2992
2992
  officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2993
2993
  office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2994
2994
  id: z.ZodString;
@@ -3047,16 +3047,13 @@ export declare const ownResearchContract: {
3047
3047
  lastName: string;
3048
3048
  email: string;
3049
3049
  createdAt: string;
3050
- updatedAt: string;
3051
3050
  phoneNumbers: {
3052
3051
  id: string;
3053
3052
  phoneNumber: string;
3054
3053
  isPrimary: boolean;
3055
3054
  description?: string | null | undefined;
3056
3055
  }[];
3057
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3058
- deletedAt?: string | null | undefined;
3059
- officeId?: string | null | undefined;
3056
+ updatedAt: string;
3060
3057
  office?: {
3061
3058
  id: string;
3062
3059
  name: string;
@@ -3066,11 +3063,14 @@ export declare const ownResearchContract: {
3066
3063
  lastName: string;
3067
3064
  }[] | undefined;
3068
3065
  } | null | undefined;
3066
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3067
+ officeId?: string | null | undefined;
3069
3068
  canImpersonateUsers?: {
3070
3069
  id: string;
3071
3070
  firstName: string;
3072
3071
  lastName: string;
3073
3072
  }[] | undefined;
3073
+ deletedAt?: string | null | undefined;
3074
3074
  }, {
3075
3075
  status: "ACTIVE" | "INACTIVE";
3076
3076
  id: string;
@@ -3079,15 +3079,6 @@ export declare const ownResearchContract: {
3079
3079
  email: string;
3080
3080
  createdAt: string | Date;
3081
3081
  updatedAt: string | Date;
3082
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3083
- phoneNumbers?: {
3084
- id: string;
3085
- phoneNumber: string;
3086
- description?: string | null | undefined;
3087
- isPrimary?: boolean | undefined;
3088
- }[] | undefined;
3089
- deletedAt?: string | Date | null | undefined;
3090
- officeId?: string | null | undefined;
3091
3082
  office?: {
3092
3083
  id: string;
3093
3084
  name: string;
@@ -3097,11 +3088,20 @@ export declare const ownResearchContract: {
3097
3088
  lastName: string;
3098
3089
  }[] | undefined;
3099
3090
  } | null | undefined;
3091
+ phoneNumbers?: {
3092
+ id: string;
3093
+ phoneNumber: string;
3094
+ description?: string | null | undefined;
3095
+ isPrimary?: boolean | undefined;
3096
+ }[] | undefined;
3097
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3098
+ officeId?: string | null | undefined;
3100
3099
  canImpersonateUsers?: {
3101
3100
  id: string;
3102
3101
  firstName: string;
3103
3102
  lastName: string;
3104
3103
  }[] | undefined;
3104
+ deletedAt?: string | Date | null | undefined;
3105
3105
  }>>;
3106
3106
  name: z.ZodString;
3107
3107
  phoneNumber: z.ZodString;
@@ -3116,19 +3116,19 @@ export declare const ownResearchContract: {
3116
3116
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3117
3117
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3118
3118
  }, "strip", z.ZodTypeAny, {
3119
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
3119
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
3120
3120
  id: string;
3121
+ phoneNumber: string;
3121
3122
  name: string;
3122
3123
  createdAt: string;
3123
3124
  updatedAt: string;
3124
- phoneNumber: string;
3125
+ blacklistReason: string | null;
3125
3126
  agentId: string;
3126
- callCount: number;
3127
3127
  lastCalledAt: string | null;
3128
- cooldownUntil: string | null;
3129
- blacklistReason: string | null;
3128
+ callCount: number;
3130
3129
  lastCallNotes: string | null;
3131
3130
  existsInLeadsTable: boolean;
3131
+ cooldownUntil: string | null;
3132
3132
  originalLeadId: string | null;
3133
3133
  agent?: {
3134
3134
  status: "ACTIVE" | "INACTIVE";
@@ -3137,16 +3137,13 @@ export declare const ownResearchContract: {
3137
3137
  lastName: string;
3138
3138
  email: string;
3139
3139
  createdAt: string;
3140
- updatedAt: string;
3141
3140
  phoneNumbers: {
3142
3141
  id: string;
3143
3142
  phoneNumber: string;
3144
3143
  isPrimary: boolean;
3145
3144
  description?: string | null | undefined;
3146
3145
  }[];
3147
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3148
- deletedAt?: string | null | undefined;
3149
- officeId?: string | null | undefined;
3146
+ updatedAt: string;
3150
3147
  office?: {
3151
3148
  id: string;
3152
3149
  name: string;
@@ -3156,26 +3153,29 @@ export declare const ownResearchContract: {
3156
3153
  lastName: string;
3157
3154
  }[] | undefined;
3158
3155
  } | null | undefined;
3156
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3157
+ officeId?: string | null | undefined;
3159
3158
  canImpersonateUsers?: {
3160
3159
  id: string;
3161
3160
  firstName: string;
3162
3161
  lastName: string;
3163
3162
  }[] | undefined;
3163
+ deletedAt?: string | null | undefined;
3164
3164
  } | undefined;
3165
3165
  }, {
3166
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
3166
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
3167
3167
  id: string;
3168
+ phoneNumber: string;
3168
3169
  name: string;
3169
3170
  createdAt: string | Date;
3170
3171
  updatedAt: string | Date;
3171
- phoneNumber: string;
3172
+ blacklistReason: string | null;
3172
3173
  agentId: string;
3173
- callCount: number;
3174
3174
  lastCalledAt: string | Date | null;
3175
- cooldownUntil: string | Date | null;
3176
- blacklistReason: string | null;
3175
+ callCount: number;
3177
3176
  lastCallNotes: string | null;
3178
3177
  existsInLeadsTable: boolean;
3178
+ cooldownUntil: string | Date | null;
3179
3179
  originalLeadId: string | null;
3180
3180
  agent?: {
3181
3181
  status: "ACTIVE" | "INACTIVE";
@@ -3185,15 +3185,6 @@ export declare const ownResearchContract: {
3185
3185
  email: string;
3186
3186
  createdAt: string | Date;
3187
3187
  updatedAt: string | Date;
3188
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3189
- phoneNumbers?: {
3190
- id: string;
3191
- phoneNumber: string;
3192
- description?: string | null | undefined;
3193
- isPrimary?: boolean | undefined;
3194
- }[] | undefined;
3195
- deletedAt?: string | Date | null | undefined;
3196
- officeId?: string | null | undefined;
3197
3188
  office?: {
3198
3189
  id: string;
3199
3190
  name: string;
@@ -3203,11 +3194,20 @@ export declare const ownResearchContract: {
3203
3194
  lastName: string;
3204
3195
  }[] | undefined;
3205
3196
  } | null | undefined;
3197
+ phoneNumbers?: {
3198
+ id: string;
3199
+ phoneNumber: string;
3200
+ description?: string | null | undefined;
3201
+ isPrimary?: boolean | undefined;
3202
+ }[] | undefined;
3203
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3204
+ officeId?: string | null | undefined;
3206
3205
  canImpersonateUsers?: {
3207
3206
  id: string;
3208
3207
  firstName: string;
3209
3208
  lastName: string;
3210
3209
  }[] | undefined;
3210
+ deletedAt?: string | Date | null | undefined;
3211
3211
  } | undefined;
3212
3212
  }>>>;
3213
3213
  isOnCooldown: z.ZodBoolean;
@@ -3220,24 +3220,24 @@ export declare const ownResearchContract: {
3220
3220
  lead?: {
3221
3221
  status: string;
3222
3222
  id: string;
3223
- name: string;
3224
3223
  phoneNumber: string;
3224
+ name: string;
3225
3225
  cooldownUntil: string | null;
3226
3226
  } | null | undefined;
3227
3227
  ownResearchLead?: {
3228
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
3228
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
3229
3229
  id: string;
3230
+ phoneNumber: string;
3230
3231
  name: string;
3231
3232
  createdAt: string;
3232
3233
  updatedAt: string;
3233
- phoneNumber: string;
3234
+ blacklistReason: string | null;
3234
3235
  agentId: string;
3235
- callCount: number;
3236
3236
  lastCalledAt: string | null;
3237
- cooldownUntil: string | null;
3238
- blacklistReason: string | null;
3237
+ callCount: number;
3239
3238
  lastCallNotes: string | null;
3240
3239
  existsInLeadsTable: boolean;
3240
+ cooldownUntil: string | null;
3241
3241
  originalLeadId: string | null;
3242
3242
  agent?: {
3243
3243
  status: "ACTIVE" | "INACTIVE";
@@ -3246,16 +3246,13 @@ export declare const ownResearchContract: {
3246
3246
  lastName: string;
3247
3247
  email: string;
3248
3248
  createdAt: string;
3249
- updatedAt: string;
3250
3249
  phoneNumbers: {
3251
3250
  id: string;
3252
3251
  phoneNumber: string;
3253
3252
  isPrimary: boolean;
3254
3253
  description?: string | null | undefined;
3255
3254
  }[];
3256
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3257
- deletedAt?: string | null | undefined;
3258
- officeId?: string | null | undefined;
3255
+ updatedAt: string;
3259
3256
  office?: {
3260
3257
  id: string;
3261
3258
  name: string;
@@ -3265,11 +3262,14 @@ export declare const ownResearchContract: {
3265
3262
  lastName: string;
3266
3263
  }[] | undefined;
3267
3264
  } | null | undefined;
3265
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3266
+ officeId?: string | null | undefined;
3268
3267
  canImpersonateUsers?: {
3269
3268
  id: string;
3270
3269
  firstName: string;
3271
3270
  lastName: string;
3272
3271
  }[] | undefined;
3272
+ deletedAt?: string | null | undefined;
3273
3273
  } | undefined;
3274
3274
  } | null | undefined;
3275
3275
  }, {
@@ -3280,24 +3280,24 @@ export declare const ownResearchContract: {
3280
3280
  lead?: {
3281
3281
  status: string;
3282
3282
  id: string;
3283
- name: string;
3284
3283
  phoneNumber: string;
3284
+ name: string;
3285
3285
  cooldownUntil: string | Date | null;
3286
3286
  } | null | undefined;
3287
3287
  ownResearchLead?: {
3288
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
3288
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
3289
3289
  id: string;
3290
+ phoneNumber: string;
3290
3291
  name: string;
3291
3292
  createdAt: string | Date;
3292
3293
  updatedAt: string | Date;
3293
- phoneNumber: string;
3294
+ blacklistReason: string | null;
3294
3295
  agentId: string;
3295
- callCount: number;
3296
3296
  lastCalledAt: string | Date | null;
3297
- cooldownUntil: string | Date | null;
3298
- blacklistReason: string | null;
3297
+ callCount: number;
3299
3298
  lastCallNotes: string | null;
3300
3299
  existsInLeadsTable: boolean;
3300
+ cooldownUntil: string | Date | null;
3301
3301
  originalLeadId: string | null;
3302
3302
  agent?: {
3303
3303
  status: "ACTIVE" | "INACTIVE";
@@ -3307,15 +3307,6 @@ export declare const ownResearchContract: {
3307
3307
  email: string;
3308
3308
  createdAt: string | Date;
3309
3309
  updatedAt: string | Date;
3310
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3311
- phoneNumbers?: {
3312
- id: string;
3313
- phoneNumber: string;
3314
- description?: string | null | undefined;
3315
- isPrimary?: boolean | undefined;
3316
- }[] | undefined;
3317
- deletedAt?: string | Date | null | undefined;
3318
- officeId?: string | null | undefined;
3319
3310
  office?: {
3320
3311
  id: string;
3321
3312
  name: string;
@@ -3325,11 +3316,20 @@ export declare const ownResearchContract: {
3325
3316
  lastName: string;
3326
3317
  }[] | undefined;
3327
3318
  } | null | undefined;
3319
+ phoneNumbers?: {
3320
+ id: string;
3321
+ phoneNumber: string;
3322
+ description?: string | null | undefined;
3323
+ isPrimary?: boolean | undefined;
3324
+ }[] | undefined;
3325
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3326
+ officeId?: string | null | undefined;
3328
3327
  canImpersonateUsers?: {
3329
3328
  id: string;
3330
3329
  firstName: string;
3331
3330
  lastName: string;
3332
3331
  }[] | undefined;
3332
+ deletedAt?: string | Date | null | undefined;
3333
3333
  } | undefined;
3334
3334
  } | null | undefined;
3335
3335
  }>;
@@ -3345,11 +3345,11 @@ export declare const ownResearchContract: {
3345
3345
  phoneNumber: z.ZodEffects<z.ZodString, string, string>;
3346
3346
  name: z.ZodString;
3347
3347
  }, "strip", z.ZodTypeAny, {
3348
- name: string;
3349
3348
  phoneNumber: string;
3350
- }, {
3351
3349
  name: string;
3350
+ }, {
3352
3351
  phoneNumber: string;
3352
+ name: string;
3353
3353
  }>;
3354
3354
  path: "/v2/own-research/leads";
3355
3355
  responses: {
@@ -3362,17 +3362,17 @@ export declare const ownResearchContract: {
3362
3362
  path: z.ZodString;
3363
3363
  correlationId: z.ZodOptional<z.ZodString>;
3364
3364
  }, "strip", z.ZodTypeAny, {
3365
+ message: string;
3365
3366
  code: string;
3366
3367
  path: string;
3367
- message: string;
3368
3368
  statusCode: number;
3369
3369
  timestamp: string;
3370
3370
  details?: unknown;
3371
3371
  correlationId?: string | undefined;
3372
3372
  }, {
3373
+ message: string;
3373
3374
  code: string;
3374
3375
  path: string;
3375
- message: string;
3376
3376
  statusCode: number;
3377
3377
  timestamp: string;
3378
3378
  details?: unknown;
@@ -3387,17 +3387,17 @@ export declare const ownResearchContract: {
3387
3387
  path: z.ZodString;
3388
3388
  correlationId: z.ZodOptional<z.ZodString>;
3389
3389
  }, "strip", z.ZodTypeAny, {
3390
+ message: string;
3390
3391
  code: string;
3391
3392
  path: string;
3392
- message: string;
3393
3393
  statusCode: number;
3394
3394
  timestamp: string;
3395
3395
  details?: unknown;
3396
3396
  correlationId?: string | undefined;
3397
3397
  }, {
3398
+ message: string;
3398
3399
  code: string;
3399
3400
  path: string;
3400
- message: string;
3401
3401
  statusCode: number;
3402
3402
  timestamp: string;
3403
3403
  details?: unknown;
@@ -3412,17 +3412,17 @@ export declare const ownResearchContract: {
3412
3412
  path: z.ZodString;
3413
3413
  correlationId: z.ZodOptional<z.ZodString>;
3414
3414
  }, "strip", z.ZodTypeAny, {
3415
+ message: string;
3415
3416
  code: string;
3416
3417
  path: string;
3417
- message: string;
3418
3418
  statusCode: number;
3419
3419
  timestamp: string;
3420
3420
  details?: unknown;
3421
3421
  correlationId?: string | undefined;
3422
3422
  }, {
3423
+ message: string;
3423
3424
  code: string;
3424
3425
  path: string;
3425
- message: string;
3426
3426
  statusCode: number;
3427
3427
  timestamp: string;
3428
3428
  details?: unknown;
@@ -3437,17 +3437,17 @@ export declare const ownResearchContract: {
3437
3437
  path: z.ZodString;
3438
3438
  correlationId: z.ZodOptional<z.ZodString>;
3439
3439
  }, "strip", z.ZodTypeAny, {
3440
+ message: string;
3440
3441
  code: string;
3441
3442
  path: string;
3442
- message: string;
3443
3443
  statusCode: number;
3444
3444
  timestamp: string;
3445
3445
  details?: unknown;
3446
3446
  correlationId?: string | undefined;
3447
3447
  }, {
3448
+ message: string;
3448
3449
  code: string;
3449
3450
  path: string;
3450
- message: string;
3451
3451
  statusCode: number;
3452
3452
  timestamp: string;
3453
3453
  details?: unknown;
@@ -3478,7 +3478,7 @@ export declare const ownResearchContract: {
3478
3478
  description?: string | null | undefined;
3479
3479
  isPrimary?: boolean | undefined;
3480
3480
  }>, "many">>>;
3481
- roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
3481
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
3482
3482
  officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3483
3483
  office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3484
3484
  id: z.ZodString;
@@ -3537,16 +3537,13 @@ export declare const ownResearchContract: {
3537
3537
  lastName: string;
3538
3538
  email: string;
3539
3539
  createdAt: string;
3540
- updatedAt: string;
3541
3540
  phoneNumbers: {
3542
3541
  id: string;
3543
3542
  phoneNumber: string;
3544
3543
  isPrimary: boolean;
3545
3544
  description?: string | null | undefined;
3546
3545
  }[];
3547
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3548
- deletedAt?: string | null | undefined;
3549
- officeId?: string | null | undefined;
3546
+ updatedAt: string;
3550
3547
  office?: {
3551
3548
  id: string;
3552
3549
  name: string;
@@ -3556,11 +3553,14 @@ export declare const ownResearchContract: {
3556
3553
  lastName: string;
3557
3554
  }[] | undefined;
3558
3555
  } | null | undefined;
3556
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3557
+ officeId?: string | null | undefined;
3559
3558
  canImpersonateUsers?: {
3560
3559
  id: string;
3561
3560
  firstName: string;
3562
3561
  lastName: string;
3563
3562
  }[] | undefined;
3563
+ deletedAt?: string | null | undefined;
3564
3564
  }, {
3565
3565
  status: "ACTIVE" | "INACTIVE";
3566
3566
  id: string;
@@ -3569,15 +3569,6 @@ export declare const ownResearchContract: {
3569
3569
  email: string;
3570
3570
  createdAt: string | Date;
3571
3571
  updatedAt: string | Date;
3572
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3573
- phoneNumbers?: {
3574
- id: string;
3575
- phoneNumber: string;
3576
- description?: string | null | undefined;
3577
- isPrimary?: boolean | undefined;
3578
- }[] | undefined;
3579
- deletedAt?: string | Date | null | undefined;
3580
- officeId?: string | null | undefined;
3581
3572
  office?: {
3582
3573
  id: string;
3583
3574
  name: string;
@@ -3587,11 +3578,20 @@ export declare const ownResearchContract: {
3587
3578
  lastName: string;
3588
3579
  }[] | undefined;
3589
3580
  } | null | undefined;
3581
+ phoneNumbers?: {
3582
+ id: string;
3583
+ phoneNumber: string;
3584
+ description?: string | null | undefined;
3585
+ isPrimary?: boolean | undefined;
3586
+ }[] | undefined;
3587
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3588
+ officeId?: string | null | undefined;
3590
3589
  canImpersonateUsers?: {
3591
3590
  id: string;
3592
3591
  firstName: string;
3593
3592
  lastName: string;
3594
3593
  }[] | undefined;
3594
+ deletedAt?: string | Date | null | undefined;
3595
3595
  }>>;
3596
3596
  name: z.ZodString;
3597
3597
  phoneNumber: z.ZodString;
@@ -3606,19 +3606,19 @@ export declare const ownResearchContract: {
3606
3606
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3607
3607
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3608
3608
  }, "strip", z.ZodTypeAny, {
3609
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
3609
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
3610
3610
  id: string;
3611
+ phoneNumber: string;
3611
3612
  name: string;
3612
3613
  createdAt: string;
3613
3614
  updatedAt: string;
3614
- phoneNumber: string;
3615
+ blacklistReason: string | null;
3615
3616
  agentId: string;
3616
- callCount: number;
3617
3617
  lastCalledAt: string | null;
3618
- cooldownUntil: string | null;
3619
- blacklistReason: string | null;
3618
+ callCount: number;
3620
3619
  lastCallNotes: string | null;
3621
3620
  existsInLeadsTable: boolean;
3621
+ cooldownUntil: string | null;
3622
3622
  originalLeadId: string | null;
3623
3623
  agent?: {
3624
3624
  status: "ACTIVE" | "INACTIVE";
@@ -3627,16 +3627,13 @@ export declare const ownResearchContract: {
3627
3627
  lastName: string;
3628
3628
  email: string;
3629
3629
  createdAt: string;
3630
- updatedAt: string;
3631
3630
  phoneNumbers: {
3632
3631
  id: string;
3633
3632
  phoneNumber: string;
3634
3633
  isPrimary: boolean;
3635
3634
  description?: string | null | undefined;
3636
3635
  }[];
3637
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3638
- deletedAt?: string | null | undefined;
3639
- officeId?: string | null | undefined;
3636
+ updatedAt: string;
3640
3637
  office?: {
3641
3638
  id: string;
3642
3639
  name: string;
@@ -3646,26 +3643,29 @@ export declare const ownResearchContract: {
3646
3643
  lastName: string;
3647
3644
  }[] | undefined;
3648
3645
  } | null | undefined;
3646
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3647
+ officeId?: string | null | undefined;
3649
3648
  canImpersonateUsers?: {
3650
3649
  id: string;
3651
3650
  firstName: string;
3652
3651
  lastName: string;
3653
3652
  }[] | undefined;
3653
+ deletedAt?: string | null | undefined;
3654
3654
  } | undefined;
3655
3655
  }, {
3656
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
3656
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
3657
3657
  id: string;
3658
+ phoneNumber: string;
3658
3659
  name: string;
3659
3660
  createdAt: string | Date;
3660
3661
  updatedAt: string | Date;
3661
- phoneNumber: string;
3662
+ blacklistReason: string | null;
3662
3663
  agentId: string;
3663
- callCount: number;
3664
3664
  lastCalledAt: string | Date | null;
3665
- cooldownUntil: string | Date | null;
3666
- blacklistReason: string | null;
3665
+ callCount: number;
3667
3666
  lastCallNotes: string | null;
3668
3667
  existsInLeadsTable: boolean;
3668
+ cooldownUntil: string | Date | null;
3669
3669
  originalLeadId: string | null;
3670
3670
  agent?: {
3671
3671
  status: "ACTIVE" | "INACTIVE";
@@ -3675,15 +3675,6 @@ export declare const ownResearchContract: {
3675
3675
  email: string;
3676
3676
  createdAt: string | Date;
3677
3677
  updatedAt: string | Date;
3678
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3679
- phoneNumbers?: {
3680
- id: string;
3681
- phoneNumber: string;
3682
- description?: string | null | undefined;
3683
- isPrimary?: boolean | undefined;
3684
- }[] | undefined;
3685
- deletedAt?: string | Date | null | undefined;
3686
- officeId?: string | null | undefined;
3687
3678
  office?: {
3688
3679
  id: string;
3689
3680
  name: string;
@@ -3693,28 +3684,37 @@ export declare const ownResearchContract: {
3693
3684
  lastName: string;
3694
3685
  }[] | undefined;
3695
3686
  } | null | undefined;
3687
+ phoneNumbers?: {
3688
+ id: string;
3689
+ phoneNumber: string;
3690
+ description?: string | null | undefined;
3691
+ isPrimary?: boolean | undefined;
3692
+ }[] | undefined;
3693
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3694
+ officeId?: string | null | undefined;
3696
3695
  canImpersonateUsers?: {
3697
3696
  id: string;
3698
3697
  firstName: string;
3699
3698
  lastName: string;
3700
3699
  }[] | undefined;
3700
+ deletedAt?: string | Date | null | undefined;
3701
3701
  } | undefined;
3702
3702
  }>;
3703
3703
  }, "strip", z.ZodTypeAny, {
3704
3704
  ownResearchLead: {
3705
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
3705
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
3706
3706
  id: string;
3707
+ phoneNumber: string;
3707
3708
  name: string;
3708
3709
  createdAt: string;
3709
3710
  updatedAt: string;
3710
- phoneNumber: string;
3711
+ blacklistReason: string | null;
3711
3712
  agentId: string;
3712
- callCount: number;
3713
3713
  lastCalledAt: string | null;
3714
- cooldownUntil: string | null;
3715
- blacklistReason: string | null;
3714
+ callCount: number;
3716
3715
  lastCallNotes: string | null;
3717
3716
  existsInLeadsTable: boolean;
3717
+ cooldownUntil: string | null;
3718
3718
  originalLeadId: string | null;
3719
3719
  agent?: {
3720
3720
  status: "ACTIVE" | "INACTIVE";
@@ -3723,16 +3723,13 @@ export declare const ownResearchContract: {
3723
3723
  lastName: string;
3724
3724
  email: string;
3725
3725
  createdAt: string;
3726
- updatedAt: string;
3727
3726
  phoneNumbers: {
3728
3727
  id: string;
3729
3728
  phoneNumber: string;
3730
3729
  isPrimary: boolean;
3731
3730
  description?: string | null | undefined;
3732
3731
  }[];
3733
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3734
- deletedAt?: string | null | undefined;
3735
- officeId?: string | null | undefined;
3732
+ updatedAt: string;
3736
3733
  office?: {
3737
3734
  id: string;
3738
3735
  name: string;
@@ -3742,28 +3739,31 @@ export declare const ownResearchContract: {
3742
3739
  lastName: string;
3743
3740
  }[] | undefined;
3744
3741
  } | null | undefined;
3742
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3743
+ officeId?: string | null | undefined;
3745
3744
  canImpersonateUsers?: {
3746
3745
  id: string;
3747
3746
  firstName: string;
3748
3747
  lastName: string;
3749
3748
  }[] | undefined;
3749
+ deletedAt?: string | null | undefined;
3750
3750
  } | undefined;
3751
3751
  };
3752
3752
  }, {
3753
3753
  ownResearchLead: {
3754
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
3754
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
3755
3755
  id: string;
3756
+ phoneNumber: string;
3756
3757
  name: string;
3757
3758
  createdAt: string | Date;
3758
3759
  updatedAt: string | Date;
3759
- phoneNumber: string;
3760
+ blacklistReason: string | null;
3760
3761
  agentId: string;
3761
- callCount: number;
3762
3762
  lastCalledAt: string | Date | null;
3763
- cooldownUntil: string | Date | null;
3764
- blacklistReason: string | null;
3763
+ callCount: number;
3765
3764
  lastCallNotes: string | null;
3766
3765
  existsInLeadsTable: boolean;
3766
+ cooldownUntil: string | Date | null;
3767
3767
  originalLeadId: string | null;
3768
3768
  agent?: {
3769
3769
  status: "ACTIVE" | "INACTIVE";
@@ -3773,15 +3773,6 @@ export declare const ownResearchContract: {
3773
3773
  email: string;
3774
3774
  createdAt: string | Date;
3775
3775
  updatedAt: string | Date;
3776
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
3777
- phoneNumbers?: {
3778
- id: string;
3779
- phoneNumber: string;
3780
- description?: string | null | undefined;
3781
- isPrimary?: boolean | undefined;
3782
- }[] | undefined;
3783
- deletedAt?: string | Date | null | undefined;
3784
- officeId?: string | null | undefined;
3785
3776
  office?: {
3786
3777
  id: string;
3787
3778
  name: string;
@@ -3791,12 +3782,21 @@ export declare const ownResearchContract: {
3791
3782
  lastName: string;
3792
3783
  }[] | undefined;
3793
3784
  } | null | undefined;
3794
- canImpersonateUsers?: {
3785
+ phoneNumbers?: {
3795
3786
  id: string;
3796
- firstName: string;
3797
- lastName: string;
3798
- }[] | undefined;
3799
- } | undefined;
3787
+ phoneNumber: string;
3788
+ description?: string | null | undefined;
3789
+ isPrimary?: boolean | undefined;
3790
+ }[] | undefined;
3791
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
3792
+ officeId?: string | null | undefined;
3793
+ canImpersonateUsers?: {
3794
+ id: string;
3795
+ firstName: string;
3796
+ lastName: string;
3797
+ }[] | undefined;
3798
+ deletedAt?: string | Date | null | undefined;
3799
+ } | undefined;
3800
3800
  };
3801
3801
  }>;
3802
3802
  };
@@ -3814,17 +3814,17 @@ export declare const ownResearchContract: {
3814
3814
  notes: z.ZodOptional<z.ZodString>;
3815
3815
  callType: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>>;
3816
3816
  }, "strip", z.ZodTypeAny, {
3817
- name: string;
3818
3817
  phoneNumber: string;
3818
+ name: string;
3819
3819
  rating: import("../common/call-rating.schema").CallRating;
3820
- notes?: string | undefined;
3821
3820
  callType?: import("../call-history/call-history.contract").CallType | undefined;
3821
+ notes?: string | undefined;
3822
3822
  }, {
3823
- name: string;
3824
3823
  phoneNumber: string;
3824
+ name: string;
3825
3825
  rating: import("../common/call-rating.schema").CallRating;
3826
- notes?: string | undefined;
3827
3826
  callType?: import("../call-history/call-history.contract").CallType | undefined;
3827
+ notes?: string | undefined;
3828
3828
  }>;
3829
3829
  path: "/v2/own-research/call";
3830
3830
  responses: {
@@ -3837,17 +3837,17 @@ export declare const ownResearchContract: {
3837
3837
  path: z.ZodString;
3838
3838
  correlationId: z.ZodOptional<z.ZodString>;
3839
3839
  }, "strip", z.ZodTypeAny, {
3840
+ message: string;
3840
3841
  code: string;
3841
3842
  path: string;
3842
- message: string;
3843
3843
  statusCode: number;
3844
3844
  timestamp: string;
3845
3845
  details?: unknown;
3846
3846
  correlationId?: string | undefined;
3847
3847
  }, {
3848
+ message: string;
3848
3849
  code: string;
3849
3850
  path: string;
3850
- message: string;
3851
3851
  statusCode: number;
3852
3852
  timestamp: string;
3853
3853
  details?: unknown;
@@ -3862,17 +3862,17 @@ export declare const ownResearchContract: {
3862
3862
  path: z.ZodString;
3863
3863
  correlationId: z.ZodOptional<z.ZodString>;
3864
3864
  }, "strip", z.ZodTypeAny, {
3865
+ message: string;
3865
3866
  code: string;
3866
3867
  path: string;
3867
- message: string;
3868
3868
  statusCode: number;
3869
3869
  timestamp: string;
3870
3870
  details?: unknown;
3871
3871
  correlationId?: string | undefined;
3872
3872
  }, {
3873
+ message: string;
3873
3874
  code: string;
3874
3875
  path: string;
3875
- message: string;
3876
3876
  statusCode: number;
3877
3877
  timestamp: string;
3878
3878
  details?: unknown;
@@ -3887,17 +3887,17 @@ export declare const ownResearchContract: {
3887
3887
  path: z.ZodString;
3888
3888
  correlationId: z.ZodOptional<z.ZodString>;
3889
3889
  }, "strip", z.ZodTypeAny, {
3890
+ message: string;
3890
3891
  code: string;
3891
3892
  path: string;
3892
- message: string;
3893
3893
  statusCode: number;
3894
3894
  timestamp: string;
3895
3895
  details?: unknown;
3896
3896
  correlationId?: string | undefined;
3897
3897
  }, {
3898
+ message: string;
3898
3899
  code: string;
3899
3900
  path: string;
3900
- message: string;
3901
3901
  statusCode: number;
3902
3902
  timestamp: string;
3903
3903
  details?: unknown;
@@ -3912,17 +3912,17 @@ export declare const ownResearchContract: {
3912
3912
  path: z.ZodString;
3913
3913
  correlationId: z.ZodOptional<z.ZodString>;
3914
3914
  }, "strip", z.ZodTypeAny, {
3915
+ message: string;
3915
3916
  code: string;
3916
3917
  path: string;
3917
- message: string;
3918
3918
  statusCode: number;
3919
3919
  timestamp: string;
3920
3920
  details?: unknown;
3921
3921
  correlationId?: string | undefined;
3922
3922
  }, {
3923
+ message: string;
3923
3924
  code: string;
3924
3925
  path: string;
3925
- message: string;
3926
3926
  statusCode: number;
3927
3927
  timestamp: string;
3928
3928
  details?: unknown;
@@ -3936,11 +3936,11 @@ export declare const ownResearchContract: {
3936
3936
  name: z.ZodString;
3937
3937
  phoneNumber: z.ZodString;
3938
3938
  }, "strip", z.ZodTypeAny, {
3939
- name: string;
3940
3939
  phoneNumber: string;
3941
- }, {
3942
3940
  name: string;
3941
+ }, {
3943
3942
  phoneNumber: string;
3943
+ name: string;
3944
3944
  }>>;
3945
3945
  agentId: z.ZodNullable<z.ZodString>;
3946
3946
  agent: z.ZodOptional<z.ZodObject<{
@@ -3964,7 +3964,7 @@ export declare const ownResearchContract: {
3964
3964
  description?: string | null | undefined;
3965
3965
  isPrimary?: boolean | undefined;
3966
3966
  }>, "many">>>;
3967
- roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
3967
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
3968
3968
  officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3969
3969
  office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3970
3970
  id: z.ZodString;
@@ -4023,16 +4023,13 @@ export declare const ownResearchContract: {
4023
4023
  lastName: string;
4024
4024
  email: string;
4025
4025
  createdAt: string;
4026
- updatedAt: string;
4027
4026
  phoneNumbers: {
4028
4027
  id: string;
4029
4028
  phoneNumber: string;
4030
4029
  isPrimary: boolean;
4031
4030
  description?: string | null | undefined;
4032
4031
  }[];
4033
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4034
- deletedAt?: string | null | undefined;
4035
- officeId?: string | null | undefined;
4032
+ updatedAt: string;
4036
4033
  office?: {
4037
4034
  id: string;
4038
4035
  name: string;
@@ -4042,11 +4039,14 @@ export declare const ownResearchContract: {
4042
4039
  lastName: string;
4043
4040
  }[] | undefined;
4044
4041
  } | null | undefined;
4042
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4043
+ officeId?: string | null | undefined;
4045
4044
  canImpersonateUsers?: {
4046
4045
  id: string;
4047
4046
  firstName: string;
4048
4047
  lastName: string;
4049
4048
  }[] | undefined;
4049
+ deletedAt?: string | null | undefined;
4050
4050
  }, {
4051
4051
  status: "ACTIVE" | "INACTIVE";
4052
4052
  id: string;
@@ -4055,15 +4055,6 @@ export declare const ownResearchContract: {
4055
4055
  email: string;
4056
4056
  createdAt: string | Date;
4057
4057
  updatedAt: string | Date;
4058
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4059
- phoneNumbers?: {
4060
- id: string;
4061
- phoneNumber: string;
4062
- description?: string | null | undefined;
4063
- isPrimary?: boolean | undefined;
4064
- }[] | undefined;
4065
- deletedAt?: string | Date | null | undefined;
4066
- officeId?: string | null | undefined;
4067
4058
  office?: {
4068
4059
  id: string;
4069
4060
  name: string;
@@ -4073,11 +4064,20 @@ export declare const ownResearchContract: {
4073
4064
  lastName: string;
4074
4065
  }[] | undefined;
4075
4066
  } | null | undefined;
4067
+ phoneNumbers?: {
4068
+ id: string;
4069
+ phoneNumber: string;
4070
+ description?: string | null | undefined;
4071
+ isPrimary?: boolean | undefined;
4072
+ }[] | undefined;
4073
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4074
+ officeId?: string | null | undefined;
4076
4075
  canImpersonateUsers?: {
4077
4076
  id: string;
4078
4077
  firstName: string;
4079
4078
  lastName: string;
4080
4079
  }[] | undefined;
4080
+ deletedAt?: string | Date | null | undefined;
4081
4081
  }>>;
4082
4082
  assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4083
4083
  assignedBy: z.ZodNullable<z.ZodString>;
@@ -4106,11 +4106,21 @@ export declare const ownResearchContract: {
4106
4106
  id: string;
4107
4107
  createdAt: string;
4108
4108
  updatedAt: string;
4109
+ companyId: string | null;
4109
4110
  agentId: string | null;
4110
4111
  leadId: string;
4111
4112
  assignedAt: string;
4112
4113
  assignedBy: string | null;
4113
- companyId: string | null;
4114
+ company?: {
4115
+ id: string;
4116
+ name: string;
4117
+ createdAt: string;
4118
+ updatedAt: string;
4119
+ } | null | undefined;
4120
+ lead?: {
4121
+ phoneNumber: string;
4122
+ name: string;
4123
+ } | undefined;
4114
4124
  agent?: {
4115
4125
  status: "ACTIVE" | "INACTIVE";
4116
4126
  id: string;
@@ -4118,16 +4128,13 @@ export declare const ownResearchContract: {
4118
4128
  lastName: string;
4119
4129
  email: string;
4120
4130
  createdAt: string;
4121
- updatedAt: string;
4122
4131
  phoneNumbers: {
4123
4132
  id: string;
4124
4133
  phoneNumber: string;
4125
4134
  isPrimary: boolean;
4126
4135
  description?: string | null | undefined;
4127
4136
  }[];
4128
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4129
- deletedAt?: string | null | undefined;
4130
- officeId?: string | null | undefined;
4137
+ updatedAt: string;
4131
4138
  office?: {
4132
4139
  id: string;
4133
4140
  name: string;
@@ -4137,32 +4144,35 @@ export declare const ownResearchContract: {
4137
4144
  lastName: string;
4138
4145
  }[] | undefined;
4139
4146
  } | null | undefined;
4147
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4148
+ officeId?: string | null | undefined;
4140
4149
  canImpersonateUsers?: {
4141
4150
  id: string;
4142
4151
  firstName: string;
4143
4152
  lastName: string;
4144
4153
  }[] | undefined;
4154
+ deletedAt?: string | null | undefined;
4145
4155
  } | undefined;
4146
- lead?: {
4147
- name: string;
4148
- phoneNumber: string;
4149
- } | undefined;
4150
- company?: {
4151
- id: string;
4152
- name: string;
4153
- createdAt: string;
4154
- updatedAt: string;
4155
- } | null | undefined;
4156
4156
  }, {
4157
4157
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
4158
4158
  id: string;
4159
4159
  createdAt: string | Date;
4160
4160
  updatedAt: string | Date;
4161
+ companyId: string | null;
4161
4162
  agentId: string | null;
4162
4163
  leadId: string;
4163
4164
  assignedAt: string | Date;
4164
4165
  assignedBy: string | null;
4165
- companyId: string | null;
4166
+ company?: {
4167
+ id: string;
4168
+ name: string;
4169
+ createdAt: string | Date;
4170
+ updatedAt: string | Date;
4171
+ } | null | undefined;
4172
+ lead?: {
4173
+ phoneNumber: string;
4174
+ name: string;
4175
+ } | undefined;
4166
4176
  agent?: {
4167
4177
  status: "ACTIVE" | "INACTIVE";
4168
4178
  id: string;
@@ -4171,15 +4181,6 @@ export declare const ownResearchContract: {
4171
4181
  email: string;
4172
4182
  createdAt: string | Date;
4173
4183
  updatedAt: string | Date;
4174
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4175
- phoneNumbers?: {
4176
- id: string;
4177
- phoneNumber: string;
4178
- description?: string | null | undefined;
4179
- isPrimary?: boolean | undefined;
4180
- }[] | undefined;
4181
- deletedAt?: string | Date | null | undefined;
4182
- officeId?: string | null | undefined;
4183
4184
  office?: {
4184
4185
  id: string;
4185
4186
  name: string;
@@ -4189,22 +4190,21 @@ export declare const ownResearchContract: {
4189
4190
  lastName: string;
4190
4191
  }[] | undefined;
4191
4192
  } | null | undefined;
4193
+ phoneNumbers?: {
4194
+ id: string;
4195
+ phoneNumber: string;
4196
+ description?: string | null | undefined;
4197
+ isPrimary?: boolean | undefined;
4198
+ }[] | undefined;
4199
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4200
+ officeId?: string | null | undefined;
4192
4201
  canImpersonateUsers?: {
4193
4202
  id: string;
4194
4203
  firstName: string;
4195
4204
  lastName: string;
4196
4205
  }[] | undefined;
4206
+ deletedAt?: string | Date | null | undefined;
4197
4207
  } | undefined;
4198
- lead?: {
4199
- name: string;
4200
- phoneNumber: string;
4201
- } | undefined;
4202
- company?: {
4203
- id: string;
4204
- name: string;
4205
- createdAt: string | Date;
4206
- updatedAt: string | Date;
4207
- } | null | undefined;
4208
4208
  }>>>;
4209
4209
  ownResearchLead: z.ZodObject<{
4210
4210
  id: z.ZodString;
@@ -4230,7 +4230,7 @@ export declare const ownResearchContract: {
4230
4230
  description?: string | null | undefined;
4231
4231
  isPrimary?: boolean | undefined;
4232
4232
  }>, "many">>>;
4233
- roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
4233
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
4234
4234
  officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4235
4235
  office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4236
4236
  id: z.ZodString;
@@ -4289,16 +4289,13 @@ export declare const ownResearchContract: {
4289
4289
  lastName: string;
4290
4290
  email: string;
4291
4291
  createdAt: string;
4292
- updatedAt: string;
4293
4292
  phoneNumbers: {
4294
4293
  id: string;
4295
4294
  phoneNumber: string;
4296
4295
  isPrimary: boolean;
4297
4296
  description?: string | null | undefined;
4298
4297
  }[];
4299
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4300
- deletedAt?: string | null | undefined;
4301
- officeId?: string | null | undefined;
4298
+ updatedAt: string;
4302
4299
  office?: {
4303
4300
  id: string;
4304
4301
  name: string;
@@ -4308,11 +4305,14 @@ export declare const ownResearchContract: {
4308
4305
  lastName: string;
4309
4306
  }[] | undefined;
4310
4307
  } | null | undefined;
4308
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4309
+ officeId?: string | null | undefined;
4311
4310
  canImpersonateUsers?: {
4312
4311
  id: string;
4313
4312
  firstName: string;
4314
4313
  lastName: string;
4315
4314
  }[] | undefined;
4315
+ deletedAt?: string | null | undefined;
4316
4316
  }, {
4317
4317
  status: "ACTIVE" | "INACTIVE";
4318
4318
  id: string;
@@ -4321,15 +4321,6 @@ export declare const ownResearchContract: {
4321
4321
  email: string;
4322
4322
  createdAt: string | Date;
4323
4323
  updatedAt: string | Date;
4324
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4325
- phoneNumbers?: {
4326
- id: string;
4327
- phoneNumber: string;
4328
- description?: string | null | undefined;
4329
- isPrimary?: boolean | undefined;
4330
- }[] | undefined;
4331
- deletedAt?: string | Date | null | undefined;
4332
- officeId?: string | null | undefined;
4333
4324
  office?: {
4334
4325
  id: string;
4335
4326
  name: string;
@@ -4339,11 +4330,20 @@ export declare const ownResearchContract: {
4339
4330
  lastName: string;
4340
4331
  }[] | undefined;
4341
4332
  } | null | undefined;
4333
+ phoneNumbers?: {
4334
+ id: string;
4335
+ phoneNumber: string;
4336
+ description?: string | null | undefined;
4337
+ isPrimary?: boolean | undefined;
4338
+ }[] | undefined;
4339
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4340
+ officeId?: string | null | undefined;
4342
4341
  canImpersonateUsers?: {
4343
4342
  id: string;
4344
4343
  firstName: string;
4345
4344
  lastName: string;
4346
4345
  }[] | undefined;
4346
+ deletedAt?: string | Date | null | undefined;
4347
4347
  }>>;
4348
4348
  name: z.ZodString;
4349
4349
  phoneNumber: z.ZodString;
@@ -4358,19 +4358,19 @@ export declare const ownResearchContract: {
4358
4358
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4359
4359
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4360
4360
  }, "strip", z.ZodTypeAny, {
4361
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
4361
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
4362
4362
  id: string;
4363
+ phoneNumber: string;
4363
4364
  name: string;
4364
4365
  createdAt: string;
4365
4366
  updatedAt: string;
4366
- phoneNumber: string;
4367
+ blacklistReason: string | null;
4367
4368
  agentId: string;
4368
- callCount: number;
4369
4369
  lastCalledAt: string | null;
4370
- cooldownUntil: string | null;
4371
- blacklistReason: string | null;
4370
+ callCount: number;
4372
4371
  lastCallNotes: string | null;
4373
4372
  existsInLeadsTable: boolean;
4373
+ cooldownUntil: string | null;
4374
4374
  originalLeadId: string | null;
4375
4375
  agent?: {
4376
4376
  status: "ACTIVE" | "INACTIVE";
@@ -4379,16 +4379,13 @@ export declare const ownResearchContract: {
4379
4379
  lastName: string;
4380
4380
  email: string;
4381
4381
  createdAt: string;
4382
- updatedAt: string;
4383
4382
  phoneNumbers: {
4384
4383
  id: string;
4385
4384
  phoneNumber: string;
4386
4385
  isPrimary: boolean;
4387
4386
  description?: string | null | undefined;
4388
4387
  }[];
4389
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4390
- deletedAt?: string | null | undefined;
4391
- officeId?: string | null | undefined;
4388
+ updatedAt: string;
4392
4389
  office?: {
4393
4390
  id: string;
4394
4391
  name: string;
@@ -4398,26 +4395,29 @@ export declare const ownResearchContract: {
4398
4395
  lastName: string;
4399
4396
  }[] | undefined;
4400
4397
  } | null | undefined;
4398
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4399
+ officeId?: string | null | undefined;
4401
4400
  canImpersonateUsers?: {
4402
4401
  id: string;
4403
4402
  firstName: string;
4404
4403
  lastName: string;
4405
4404
  }[] | undefined;
4405
+ deletedAt?: string | null | undefined;
4406
4406
  } | undefined;
4407
4407
  }, {
4408
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
4408
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
4409
4409
  id: string;
4410
+ phoneNumber: string;
4410
4411
  name: string;
4411
4412
  createdAt: string | Date;
4412
4413
  updatedAt: string | Date;
4413
- phoneNumber: string;
4414
+ blacklistReason: string | null;
4414
4415
  agentId: string;
4415
- callCount: number;
4416
4416
  lastCalledAt: string | Date | null;
4417
- cooldownUntil: string | Date | null;
4418
- blacklistReason: string | null;
4417
+ callCount: number;
4419
4418
  lastCallNotes: string | null;
4420
4419
  existsInLeadsTable: boolean;
4420
+ cooldownUntil: string | Date | null;
4421
4421
  originalLeadId: string | null;
4422
4422
  agent?: {
4423
4423
  status: "ACTIVE" | "INACTIVE";
@@ -4427,15 +4427,6 @@ export declare const ownResearchContract: {
4427
4427
  email: string;
4428
4428
  createdAt: string | Date;
4429
4429
  updatedAt: string | Date;
4430
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4431
- phoneNumbers?: {
4432
- id: string;
4433
- phoneNumber: string;
4434
- description?: string | null | undefined;
4435
- isPrimary?: boolean | undefined;
4436
- }[] | undefined;
4437
- deletedAt?: string | Date | null | undefined;
4438
- officeId?: string | null | undefined;
4439
4430
  office?: {
4440
4431
  id: string;
4441
4432
  name: string;
@@ -4445,28 +4436,37 @@ export declare const ownResearchContract: {
4445
4436
  lastName: string;
4446
4437
  }[] | undefined;
4447
4438
  } | null | undefined;
4439
+ phoneNumbers?: {
4440
+ id: string;
4441
+ phoneNumber: string;
4442
+ description?: string | null | undefined;
4443
+ isPrimary?: boolean | undefined;
4444
+ }[] | undefined;
4445
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4446
+ officeId?: string | null | undefined;
4448
4447
  canImpersonateUsers?: {
4449
4448
  id: string;
4450
4449
  firstName: string;
4451
4450
  lastName: string;
4452
4451
  }[] | undefined;
4452
+ deletedAt?: string | Date | null | undefined;
4453
4453
  } | undefined;
4454
4454
  }>;
4455
4455
  }, "strip", z.ZodTypeAny, {
4456
4456
  ownResearchLead: {
4457
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
4457
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
4458
4458
  id: string;
4459
+ phoneNumber: string;
4459
4460
  name: string;
4460
4461
  createdAt: string;
4461
4462
  updatedAt: string;
4462
- phoneNumber: string;
4463
+ blacklistReason: string | null;
4463
4464
  agentId: string;
4464
- callCount: number;
4465
4465
  lastCalledAt: string | null;
4466
- cooldownUntil: string | null;
4467
- blacklistReason: string | null;
4466
+ callCount: number;
4468
4467
  lastCallNotes: string | null;
4469
4468
  existsInLeadsTable: boolean;
4469
+ cooldownUntil: string | null;
4470
4470
  originalLeadId: string | null;
4471
4471
  agent?: {
4472
4472
  status: "ACTIVE" | "INACTIVE";
@@ -4475,16 +4475,13 @@ export declare const ownResearchContract: {
4475
4475
  lastName: string;
4476
4476
  email: string;
4477
4477
  createdAt: string;
4478
- updatedAt: string;
4479
4478
  phoneNumbers: {
4480
4479
  id: string;
4481
4480
  phoneNumber: string;
4482
4481
  isPrimary: boolean;
4483
4482
  description?: string | null | undefined;
4484
4483
  }[];
4485
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4486
- deletedAt?: string | null | undefined;
4487
- officeId?: string | null | undefined;
4484
+ updatedAt: string;
4488
4485
  office?: {
4489
4486
  id: string;
4490
4487
  name: string;
@@ -4494,11 +4491,14 @@ export declare const ownResearchContract: {
4494
4491
  lastName: string;
4495
4492
  }[] | undefined;
4496
4493
  } | null | undefined;
4494
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4495
+ officeId?: string | null | undefined;
4497
4496
  canImpersonateUsers?: {
4498
4497
  id: string;
4499
4498
  firstName: string;
4500
4499
  lastName: string;
4501
4500
  }[] | undefined;
4501
+ deletedAt?: string | null | undefined;
4502
4502
  } | undefined;
4503
4503
  };
4504
4504
  assignment?: {
@@ -4506,11 +4506,21 @@ export declare const ownResearchContract: {
4506
4506
  id: string;
4507
4507
  createdAt: string;
4508
4508
  updatedAt: string;
4509
+ companyId: string | null;
4509
4510
  agentId: string | null;
4510
4511
  leadId: string;
4511
4512
  assignedAt: string;
4512
4513
  assignedBy: string | null;
4513
- companyId: string | null;
4514
+ company?: {
4515
+ id: string;
4516
+ name: string;
4517
+ createdAt: string;
4518
+ updatedAt: string;
4519
+ } | null | undefined;
4520
+ lead?: {
4521
+ phoneNumber: string;
4522
+ name: string;
4523
+ } | undefined;
4514
4524
  agent?: {
4515
4525
  status: "ACTIVE" | "INACTIVE";
4516
4526
  id: string;
@@ -4518,16 +4528,13 @@ export declare const ownResearchContract: {
4518
4528
  lastName: string;
4519
4529
  email: string;
4520
4530
  createdAt: string;
4521
- updatedAt: string;
4522
4531
  phoneNumbers: {
4523
4532
  id: string;
4524
4533
  phoneNumber: string;
4525
4534
  isPrimary: boolean;
4526
4535
  description?: string | null | undefined;
4527
4536
  }[];
4528
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4529
- deletedAt?: string | null | undefined;
4530
- officeId?: string | null | undefined;
4537
+ updatedAt: string;
4531
4538
  office?: {
4532
4539
  id: string;
4533
4540
  name: string;
@@ -4537,38 +4544,31 @@ export declare const ownResearchContract: {
4537
4544
  lastName: string;
4538
4545
  }[] | undefined;
4539
4546
  } | null | undefined;
4547
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4548
+ officeId?: string | null | undefined;
4540
4549
  canImpersonateUsers?: {
4541
4550
  id: string;
4542
4551
  firstName: string;
4543
4552
  lastName: string;
4544
4553
  }[] | undefined;
4554
+ deletedAt?: string | null | undefined;
4545
4555
  } | undefined;
4546
- lead?: {
4547
- name: string;
4548
- phoneNumber: string;
4549
- } | undefined;
4550
- company?: {
4551
- id: string;
4552
- name: string;
4553
- createdAt: string;
4554
- updatedAt: string;
4555
- } | null | undefined;
4556
4556
  } | null | undefined;
4557
4557
  }, {
4558
4558
  ownResearchLead: {
4559
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
4559
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
4560
4560
  id: string;
4561
+ phoneNumber: string;
4561
4562
  name: string;
4562
4563
  createdAt: string | Date;
4563
4564
  updatedAt: string | Date;
4564
- phoneNumber: string;
4565
+ blacklistReason: string | null;
4565
4566
  agentId: string;
4566
- callCount: number;
4567
4567
  lastCalledAt: string | Date | null;
4568
- cooldownUntil: string | Date | null;
4569
- blacklistReason: string | null;
4568
+ callCount: number;
4570
4569
  lastCallNotes: string | null;
4571
4570
  existsInLeadsTable: boolean;
4571
+ cooldownUntil: string | Date | null;
4572
4572
  originalLeadId: string | null;
4573
4573
  agent?: {
4574
4574
  status: "ACTIVE" | "INACTIVE";
@@ -4578,15 +4578,6 @@ export declare const ownResearchContract: {
4578
4578
  email: string;
4579
4579
  createdAt: string | Date;
4580
4580
  updatedAt: string | Date;
4581
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4582
- phoneNumbers?: {
4583
- id: string;
4584
- phoneNumber: string;
4585
- description?: string | null | undefined;
4586
- isPrimary?: boolean | undefined;
4587
- }[] | undefined;
4588
- deletedAt?: string | Date | null | undefined;
4589
- officeId?: string | null | undefined;
4590
4581
  office?: {
4591
4582
  id: string;
4592
4583
  name: string;
@@ -4596,11 +4587,20 @@ export declare const ownResearchContract: {
4596
4587
  lastName: string;
4597
4588
  }[] | undefined;
4598
4589
  } | null | undefined;
4590
+ phoneNumbers?: {
4591
+ id: string;
4592
+ phoneNumber: string;
4593
+ description?: string | null | undefined;
4594
+ isPrimary?: boolean | undefined;
4595
+ }[] | undefined;
4596
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4597
+ officeId?: string | null | undefined;
4599
4598
  canImpersonateUsers?: {
4600
4599
  id: string;
4601
4600
  firstName: string;
4602
4601
  lastName: string;
4603
4602
  }[] | undefined;
4603
+ deletedAt?: string | Date | null | undefined;
4604
4604
  } | undefined;
4605
4605
  };
4606
4606
  assignment?: {
@@ -4608,11 +4608,21 @@ export declare const ownResearchContract: {
4608
4608
  id: string;
4609
4609
  createdAt: string | Date;
4610
4610
  updatedAt: string | Date;
4611
+ companyId: string | null;
4611
4612
  agentId: string | null;
4612
4613
  leadId: string;
4613
4614
  assignedAt: string | Date;
4614
4615
  assignedBy: string | null;
4615
- companyId: string | null;
4616
+ company?: {
4617
+ id: string;
4618
+ name: string;
4619
+ createdAt: string | Date;
4620
+ updatedAt: string | Date;
4621
+ } | null | undefined;
4622
+ lead?: {
4623
+ phoneNumber: string;
4624
+ name: string;
4625
+ } | undefined;
4616
4626
  agent?: {
4617
4627
  status: "ACTIVE" | "INACTIVE";
4618
4628
  id: string;
@@ -4621,15 +4631,6 @@ export declare const ownResearchContract: {
4621
4631
  email: string;
4622
4632
  createdAt: string | Date;
4623
4633
  updatedAt: string | Date;
4624
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
4625
- phoneNumbers?: {
4626
- id: string;
4627
- phoneNumber: string;
4628
- description?: string | null | undefined;
4629
- isPrimary?: boolean | undefined;
4630
- }[] | undefined;
4631
- deletedAt?: string | Date | null | undefined;
4632
- officeId?: string | null | undefined;
4633
4634
  office?: {
4634
4635
  id: string;
4635
4636
  name: string;
@@ -4639,22 +4640,21 @@ export declare const ownResearchContract: {
4639
4640
  lastName: string;
4640
4641
  }[] | undefined;
4641
4642
  } | null | undefined;
4643
+ phoneNumbers?: {
4644
+ id: string;
4645
+ phoneNumber: string;
4646
+ description?: string | null | undefined;
4647
+ isPrimary?: boolean | undefined;
4648
+ }[] | undefined;
4649
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
4650
+ officeId?: string | null | undefined;
4642
4651
  canImpersonateUsers?: {
4643
4652
  id: string;
4644
4653
  firstName: string;
4645
4654
  lastName: string;
4646
4655
  }[] | undefined;
4656
+ deletedAt?: string | Date | null | undefined;
4647
4657
  } | undefined;
4648
- lead?: {
4649
- name: string;
4650
- phoneNumber: string;
4651
- } | undefined;
4652
- company?: {
4653
- id: string;
4654
- name: string;
4655
- createdAt: string | Date;
4656
- updatedAt: string | Date;
4657
- } | null | undefined;
4658
4658
  } | null | undefined;
4659
4659
  }>;
4660
4660
  };