@dakkitor/api-contracts 1.8.0 → 1.9.2

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 (139) hide show
  1. package/dist/abilities/abilities.contract.d.ts +28 -1
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +32 -1
  4. package/dist/abilities/abilities.contract.spec.js +63 -3
  5. package/dist/abilities/admin-dashboard.abilities.test.js +1 -0
  6. package/dist/abilities/automatic-caller.abilities.json +1 -0
  7. package/dist/abilities/first-agent.abilities.json +14 -0
  8. package/dist/abilities/interconnection.abilities.json +17 -1
  9. package/dist/abilities/office-manager.abilities.json +4 -0
  10. package/dist/abilities/second-agent.abilities.json +48 -1
  11. package/dist/abilities/worker-curator.abilities.json +17 -1
  12. package/dist/actives/actives.contract.d.ts +6959 -6547
  13. package/dist/actives/actives.contract.d.ts.map +1 -1
  14. package/dist/agent-client-links/agent-client-links.contract.d.ts +1275 -1173
  15. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
  16. package/dist/auth/auth.contract.d.ts +102 -102
  17. package/dist/bookings/backdate-guard.spec.js +24 -32
  18. package/dist/bookings/bookings.contract.d.ts +9963 -9305
  19. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  20. package/dist/bookings/bookings.contract.js +2 -16
  21. package/dist/call-history/call-history.contract.d.ts +1040 -828
  22. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  23. package/dist/calls-feed/calls-feed.contract.d.ts +138 -98
  24. package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
  25. package/dist/candidate-calling/candidate-calling.contract.d.ts +18372 -0
  26. package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
  27. package/dist/candidate-calling/candidate-calling.contract.js +494 -0
  28. package/dist/candidate-calling/candidate-calling.contract.spec.d.ts +2 -0
  29. package/dist/candidate-calling/candidate-calling.contract.spec.d.ts.map +1 -0
  30. package/dist/candidate-calling/candidate-calling.contract.spec.js +357 -0
  31. package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts +10 -0
  32. package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts.map +1 -0
  33. package/dist/candidate-calling/candidate-dialpad-call.schemas.js +33 -0
  34. package/dist/client-contacts/client-contacts.contract.d.ts +622 -622
  35. package/dist/clients/clients.contract.d.ts +289 -289
  36. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3108 -3004
  37. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
  38. package/dist/collaborations/collaborations.contract.d.ts +2604 -2507
  39. package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
  40. package/dist/common/callback-slots.d.ts +4 -0
  41. package/dist/common/callback-slots.d.ts.map +1 -0
  42. package/dist/common/callback-slots.js +20 -0
  43. package/dist/common/common-schemas.d.ts +10 -4
  44. package/dist/common/common-schemas.d.ts.map +1 -1
  45. package/dist/common/common-schemas.js +6 -0
  46. package/dist/companies/companies.contract.d.ts +120 -120
  47. package/dist/crews/crews.contract.d.ts +278 -278
  48. package/dist/cron-executions/cron-executions.contract.d.ts +245 -245
  49. package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
  50. package/dist/cron-executions/cron-executions.contract.js +1 -0
  51. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +3830 -2354
  52. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
  53. package/dist/curated-worker-leads/candidate-coordination.contract.js +73 -7
  54. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +94 -94
  55. package/dist/curated-worker-leads/contact-history.spec.js +141 -0
  56. package/dist/curated-worker-leads/job-candidate-cards.spec.js +19 -0
  57. package/dist/curated-worker-leads/job-candidates.spec.js +179 -0
  58. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +8185 -2106
  59. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
  60. package/dist/curated-worker-leads/jobs-tab.contract.js +126 -1
  61. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +110 -110
  62. package/dist/curated-workers/curated-workers.contract.d.ts +2033 -1951
  63. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  64. package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts +2 -0
  65. package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts.map +1 -0
  66. package/dist/dashboards/dashboard-widgets.contact-history.spec.js +160 -0
  67. package/dist/dashboards/dashboard-widgets.contract.d.ts +1027 -284
  68. package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
  69. package/dist/dashboards/dashboard-widgets.contract.js +46 -1
  70. package/dist/dashboards/dashboard.contract.d.ts +8 -8
  71. package/dist/document-intake/document-intake.contract.d.ts +1145 -1145
  72. package/dist/export-jobs/export-jobs.contract.d.ts +755 -755
  73. package/dist/exports-events/exports-events.schemas.d.ts +6 -6
  74. package/dist/index.d.ts +5 -0
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/index.js +5 -0
  77. package/dist/jobs/jobs.contract.d.ts +8507 -6044
  78. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  79. package/dist/jobs/jobs.contract.js +95 -2
  80. package/dist/jobs/jobs.contract.spec.js +231 -1
  81. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +102 -102
  82. package/dist/lead-assignments/lead-assignments.contract.d.ts +2985 -1139
  83. package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
  84. package/dist/lead-assignments/lead-assignments.contract.js +102 -2
  85. package/dist/lead-assignments/lead-assignments.contract.spec.d.ts +2 -0
  86. package/dist/lead-assignments/lead-assignments.contract.spec.d.ts.map +1 -0
  87. package/dist/lead-assignments/lead-assignments.contract.spec.js +51 -0
  88. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +341 -317
  89. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
  90. package/dist/leads/leads.contract.d.ts +282 -282
  91. package/dist/locations/location-enrichment.contract.spec.d.ts +2 -0
  92. package/dist/locations/location-enrichment.contract.spec.d.ts.map +1 -0
  93. package/dist/locations/location-enrichment.contract.spec.js +50 -0
  94. package/dist/locations/locations.contract.d.ts +132 -98
  95. package/dist/locations/locations.contract.d.ts.map +1 -1
  96. package/dist/locations/locations.contract.js +10 -0
  97. package/dist/notifications/notifications.contract.d.ts +579 -107
  98. package/dist/notifications/notifications.contract.d.ts.map +1 -1
  99. package/dist/notifications/notifications.contract.js +36 -2
  100. package/dist/notifications/notifications.contract.spec.d.ts +2 -0
  101. package/dist/notifications/notifications.contract.spec.d.ts.map +1 -0
  102. package/dist/notifications/notifications.contract.spec.js +39 -0
  103. package/dist/outreach/__tests__/outreach-claim.test.js +33 -0
  104. package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
  105. package/dist/outreach/outreach.contract.d.ts +583 -162
  106. package/dist/outreach/outreach.contract.d.ts.map +1 -1
  107. package/dist/outreach/outreach.contract.js +50 -1
  108. package/dist/outreach/relay-hub-outreach.contract.d.ts +299 -121
  109. package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -1
  110. package/dist/outreach/relay-hub-outreach.contract.js +10 -0
  111. package/dist/outreach/relay-hub-outreach.contract.spec.js +26 -0
  112. package/dist/outreach/relay-hub-outreach.schemas.d.ts +94 -0
  113. package/dist/outreach/relay-hub-outreach.schemas.d.ts.map +1 -0
  114. package/dist/outreach/relay-hub-outreach.schemas.js +15 -0
  115. package/dist/own-research/check-phone-response.spec.d.ts +2 -0
  116. package/dist/own-research/check-phone-response.spec.d.ts.map +1 -0
  117. package/dist/own-research/check-phone-response.spec.js +54 -0
  118. package/dist/own-research/own-research.contract.d.ts +971 -820
  119. package/dist/own-research/own-research.contract.d.ts.map +1 -1
  120. package/dist/own-research/own-research.contract.js +6 -1
  121. package/dist/proofs/proofs.contract.d.ts +356 -356
  122. package/dist/proofs/proofs.dtos.d.ts +148 -148
  123. package/dist/realtime/job-call-priority-updated.d.ts +18 -0
  124. package/dist/realtime/job-call-priority-updated.d.ts.map +1 -0
  125. package/dist/realtime/job-call-priority-updated.js +17 -0
  126. package/dist/shared/summary-schemas.d.ts +36 -27
  127. package/dist/shared/summary-schemas.d.ts.map +1 -1
  128. package/dist/shared/summary-schemas.js +7 -0
  129. package/dist/sheets-sync/sheets-sync.contract.d.ts +683 -683
  130. package/dist/user-access-grants/user-access-grants.contract.d.ts +216 -216
  131. package/dist/users/users.contract.d.ts +365 -336
  132. package/dist/users/users.contract.d.ts.map +1 -1
  133. package/dist/users/users.contract.js +9 -1
  134. package/dist/users/users.contract.spec.js +39 -0
  135. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +150 -150
  136. package/dist/workers/workers.contract.d.ts +4505 -4261
  137. package/dist/workers/workers.contract.d.ts.map +1 -1
  138. package/dist/workers/workers.contract.js +12 -0
  139. package/package.json +1 -1
@@ -8,13 +8,13 @@ export declare const ClientContactUserSchema: z.ZodObject<{
8
8
  lastName: z.ZodString;
9
9
  email: z.ZodString;
10
10
  }, "strip", z.ZodTypeAny, {
11
- id: string;
12
11
  email: string;
12
+ id: string;
13
13
  lastName: string;
14
14
  firstName: string;
15
15
  }, {
16
- id: string;
17
16
  email: string;
17
+ id: string;
18
18
  lastName: string;
19
19
  firstName: string;
20
20
  }>;
@@ -36,13 +36,13 @@ export declare const ClientContactSchema: z.ZodObject<{
36
36
  lastName: z.ZodString;
37
37
  email: z.ZodString;
38
38
  }, "strip", z.ZodTypeAny, {
39
- id: string;
40
39
  email: string;
40
+ id: string;
41
41
  lastName: string;
42
42
  firstName: string;
43
43
  }, {
44
- id: string;
45
44
  email: string;
45
+ id: string;
46
46
  lastName: string;
47
47
  firstName: string;
48
48
  }>>>;
@@ -56,45 +56,45 @@ export declare const ClientContactSchema: z.ZodObject<{
56
56
  agentId: string;
57
57
  }>>>;
58
58
  }, "strip", z.ZodTypeAny, {
59
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
60
- id: string;
61
59
  name: string;
62
- updatedAt: string;
63
60
  createdAt: string;
61
+ updatedAt: string;
62
+ id: string;
63
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
64
64
  crn: string | null;
65
65
  govLink: string | null;
66
- director: string;
67
66
  soleTrader: boolean;
67
+ director: string;
68
68
  blacklistReason?: string | null | undefined;
69
- agentClientLinks?: {
70
- agentId: string;
71
- } | null | undefined;
72
69
  lastUpdatedBy?: {
73
- id: string;
74
70
  email: string;
71
+ id: string;
75
72
  lastName: string;
76
73
  firstName: string;
77
74
  } | null | undefined;
75
+ agentClientLinks?: {
76
+ agentId: string;
77
+ } | null | undefined;
78
78
  }, {
79
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
80
- id: string;
81
79
  name: string;
82
- updatedAt: string | Date;
83
80
  createdAt: string | Date;
81
+ updatedAt: string | Date;
82
+ id: string;
83
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
84
84
  crn: string | null;
85
85
  govLink: string | null;
86
- director: string;
87
86
  soleTrader: boolean;
87
+ director: string;
88
88
  blacklistReason?: string | null | undefined;
89
- agentClientLinks?: {
90
- agentId: string;
91
- } | null | undefined;
92
89
  lastUpdatedBy?: {
93
- id: string;
94
90
  email: string;
91
+ id: string;
95
92
  lastName: string;
96
93
  firstName: string;
97
94
  } | null | undefined;
95
+ agentClientLinks?: {
96
+ agentId: string;
97
+ } | null | undefined;
98
98
  }>;
99
99
  name: z.ZodString;
100
100
  position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -107,13 +107,13 @@ export declare const ClientContactSchema: z.ZodObject<{
107
107
  lastName: z.ZodString;
108
108
  email: z.ZodString;
109
109
  }, "strip", z.ZodTypeAny, {
110
- id: string;
111
110
  email: string;
111
+ id: string;
112
112
  lastName: string;
113
113
  firstName: string;
114
114
  }, {
115
- id: string;
116
115
  email: string;
116
+ id: string;
117
117
  lastName: string;
118
118
  firstName: string;
119
119
  }>;
@@ -121,81 +121,81 @@ export declare const ClientContactSchema: z.ZodObject<{
121
121
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
122
122
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
123
123
  }, "strip", z.ZodTypeAny, {
124
- id: string;
125
124
  name: string;
126
- updatedAt: string;
125
+ email: string | null;
126
+ phone: string;
127
127
  createdAt: string;
128
- clientId: string;
128
+ updatedAt: string;
129
+ createdBy: {
130
+ email: string;
131
+ id: string;
132
+ lastName: string;
133
+ firstName: string;
134
+ };
135
+ id: string;
129
136
  createdById: string;
137
+ clientId: string;
130
138
  client: {
131
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
132
- id: string;
133
139
  name: string;
134
- updatedAt: string;
135
140
  createdAt: string;
141
+ updatedAt: string;
142
+ id: string;
143
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
136
144
  crn: string | null;
137
145
  govLink: string | null;
138
- director: string;
139
146
  soleTrader: boolean;
147
+ director: string;
140
148
  blacklistReason?: string | null | undefined;
141
- agentClientLinks?: {
142
- agentId: string;
143
- } | null | undefined;
144
149
  lastUpdatedBy?: {
145
- id: string;
146
150
  email: string;
151
+ id: string;
147
152
  lastName: string;
148
153
  firstName: string;
149
154
  } | null | undefined;
155
+ agentClientLinks?: {
156
+ agentId: string;
157
+ } | null | undefined;
150
158
  };
151
- phone: string;
159
+ source?: string | null | undefined;
160
+ position?: string | null | undefined;
161
+ }, {
162
+ name: string;
152
163
  email: string | null;
164
+ phone: string;
165
+ createdAt: string | Date;
166
+ updatedAt: string | Date;
153
167
  createdBy: {
154
- id: string;
155
168
  email: string;
169
+ id: string;
156
170
  lastName: string;
157
171
  firstName: string;
158
172
  };
159
- position?: string | null | undefined;
160
- source?: string | null | undefined;
161
- }, {
162
173
  id: string;
163
- name: string;
164
- updatedAt: string | Date;
165
- createdAt: string | Date;
166
- clientId: string;
167
174
  createdById: string;
175
+ clientId: string;
168
176
  client: {
169
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
170
- id: string;
171
177
  name: string;
172
- updatedAt: string | Date;
173
178
  createdAt: string | Date;
179
+ updatedAt: string | Date;
180
+ id: string;
181
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
174
182
  crn: string | null;
175
183
  govLink: string | null;
176
- director: string;
177
184
  soleTrader: boolean;
185
+ director: string;
178
186
  blacklistReason?: string | null | undefined;
179
- agentClientLinks?: {
180
- agentId: string;
181
- } | null | undefined;
182
187
  lastUpdatedBy?: {
183
- id: string;
184
188
  email: string;
189
+ id: string;
185
190
  lastName: string;
186
191
  firstName: string;
187
192
  } | null | undefined;
193
+ agentClientLinks?: {
194
+ agentId: string;
195
+ } | null | undefined;
188
196
  };
189
- phone: string;
190
- email: string | null;
191
- createdBy: {
192
- id: string;
193
- email: string;
194
- lastName: string;
195
- firstName: string;
196
- };
197
- position?: string | null | undefined;
198
197
  source?: string | null | undefined;
198
+ position?: string | null | undefined;
199
199
  }>;
200
200
  export declare const CreateClientContactSchema: z.ZodObject<{
201
201
  client: z.ZodObject<{
@@ -212,22 +212,22 @@ export declare const CreateClientContactSchema: z.ZodObject<{
212
212
  source: z.ZodOptional<z.ZodString>;
213
213
  }, "strip", z.ZodTypeAny, {
214
214
  name: string;
215
+ phone: string;
215
216
  client: {
216
217
  id: string;
217
218
  };
218
- phone: string;
219
- position?: string | undefined;
220
219
  email?: string | undefined;
221
220
  source?: string | undefined;
221
+ position?: string | undefined;
222
222
  }, {
223
223
  name: string;
224
+ phone: string;
224
225
  client: {
225
226
  id: string;
226
227
  };
227
- phone: string;
228
- position?: string | undefined;
229
228
  email?: string | undefined;
230
229
  source?: string | undefined;
230
+ position?: string | undefined;
231
231
  }>;
232
232
  export declare const CreateClientContactBodySchema: z.ZodObject<Omit<{
233
233
  client: z.ZodObject<{
@@ -245,15 +245,15 @@ export declare const CreateClientContactBodySchema: z.ZodObject<Omit<{
245
245
  }, "client">, "strip", z.ZodTypeAny, {
246
246
  name: string;
247
247
  phone: string;
248
- position?: string | undefined;
249
248
  email?: string | undefined;
250
249
  source?: string | undefined;
250
+ position?: string | undefined;
251
251
  }, {
252
252
  name: string;
253
253
  phone: string;
254
- position?: string | undefined;
255
254
  email?: string | undefined;
256
255
  source?: string | undefined;
256
+ position?: string | undefined;
257
257
  }>;
258
258
  export declare const UpdateClientContactSchema: z.ZodObject<Omit<{
259
259
  client: z.ZodOptional<z.ZodObject<{
@@ -270,16 +270,16 @@ export declare const UpdateClientContactSchema: z.ZodObject<Omit<{
270
270
  source: z.ZodOptional<z.ZodOptional<z.ZodString>>;
271
271
  }, "client">, "strip", z.ZodTypeAny, {
272
272
  name?: string | undefined;
273
- position?: string | undefined;
274
- phone?: string | undefined;
275
273
  email?: string | undefined;
274
+ phone?: string | undefined;
276
275
  source?: string | undefined;
276
+ position?: string | undefined;
277
277
  }, {
278
278
  name?: string | undefined;
279
- position?: string | undefined;
280
- phone?: string | undefined;
281
279
  email?: string | undefined;
280
+ phone?: string | undefined;
282
281
  source?: string | undefined;
282
+ position?: string | undefined;
283
283
  }>;
284
284
  export declare const FilterClientContactSchema: z.ZodObject<{
285
285
  limit: z.ZodDefault<z.ZodNumber>;
@@ -296,40 +296,40 @@ export declare const FilterClientContactSchema: z.ZodObject<{
296
296
  field: z.ZodEnum<["name", "position", "email", "createdAt", "updatedAt"]>;
297
297
  order: z.ZodEnum<["ASC", "DESC"]>;
298
298
  }, "strip", z.ZodTypeAny, {
299
- field: "name" | "updatedAt" | "createdAt" | "position" | "email";
299
+ field: "name" | "email" | "createdAt" | "updatedAt" | "position";
300
300
  order: "ASC" | "DESC";
301
301
  }, {
302
- field: "name" | "updatedAt" | "createdAt" | "position" | "email";
302
+ field: "name" | "email" | "createdAt" | "updatedAt" | "position";
303
303
  order: "ASC" | "DESC";
304
304
  }>, "many">>>;
305
305
  }, "strip", z.ZodTypeAny, {
306
306
  page: number;
307
307
  limit: number;
308
+ name?: string | undefined;
309
+ email?: string | undefined;
310
+ phone?: string | undefined;
308
311
  sort?: {
309
- field: "name" | "updatedAt" | "createdAt" | "position" | "email";
312
+ field: "name" | "email" | "createdAt" | "updatedAt" | "position";
310
313
  order: "ASC" | "DESC";
311
314
  }[] | null | undefined;
312
- name?: string | undefined;
313
- clientId?: string | undefined;
314
315
  createdById?: string | undefined;
315
- position?: string | undefined;
316
- phone?: string | undefined;
317
- email?: string | undefined;
318
316
  source?: string | undefined;
317
+ position?: string | undefined;
318
+ clientId?: string | undefined;
319
319
  }, {
320
+ name?: string | undefined;
321
+ email?: string | undefined;
322
+ phone?: string | undefined;
320
323
  sort?: {
321
- field: "name" | "updatedAt" | "createdAt" | "position" | "email";
324
+ field: "name" | "email" | "createdAt" | "updatedAt" | "position";
322
325
  order: "ASC" | "DESC";
323
326
  }[] | null | undefined;
324
327
  page?: number | undefined;
325
328
  limit?: number | undefined;
326
- name?: string | undefined;
327
- clientId?: string | undefined;
328
329
  createdById?: string | undefined;
329
- position?: string | undefined;
330
- phone?: string | undefined;
331
- email?: string | undefined;
332
330
  source?: string | undefined;
331
+ position?: string | undefined;
332
+ clientId?: string | undefined;
333
333
  }>;
334
334
  export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
335
335
  items: z.ZodArray<z.ZodObject<{
@@ -350,13 +350,13 @@ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
350
350
  lastName: z.ZodString;
351
351
  email: z.ZodString;
352
352
  }, "strip", z.ZodTypeAny, {
353
- id: string;
354
353
  email: string;
354
+ id: string;
355
355
  lastName: string;
356
356
  firstName: string;
357
357
  }, {
358
- id: string;
359
358
  email: string;
359
+ id: string;
360
360
  lastName: string;
361
361
  firstName: string;
362
362
  }>>>;
@@ -370,45 +370,45 @@ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
370
370
  agentId: string;
371
371
  }>>>;
372
372
  }, "strip", z.ZodTypeAny, {
373
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
374
- id: string;
375
373
  name: string;
376
- updatedAt: string;
377
374
  createdAt: string;
375
+ updatedAt: string;
376
+ id: string;
377
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
378
378
  crn: string | null;
379
379
  govLink: string | null;
380
- director: string;
381
380
  soleTrader: boolean;
381
+ director: string;
382
382
  blacklistReason?: string | null | undefined;
383
- agentClientLinks?: {
384
- agentId: string;
385
- } | null | undefined;
386
383
  lastUpdatedBy?: {
387
- id: string;
388
384
  email: string;
385
+ id: string;
389
386
  lastName: string;
390
387
  firstName: string;
391
388
  } | null | undefined;
389
+ agentClientLinks?: {
390
+ agentId: string;
391
+ } | null | undefined;
392
392
  }, {
393
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
394
- id: string;
395
393
  name: string;
396
- updatedAt: string | Date;
397
394
  createdAt: string | Date;
395
+ updatedAt: string | Date;
396
+ id: string;
397
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
398
398
  crn: string | null;
399
399
  govLink: string | null;
400
- director: string;
401
400
  soleTrader: boolean;
401
+ director: string;
402
402
  blacklistReason?: string | null | undefined;
403
- agentClientLinks?: {
404
- agentId: string;
405
- } | null | undefined;
406
403
  lastUpdatedBy?: {
407
- id: string;
408
404
  email: string;
405
+ id: string;
409
406
  lastName: string;
410
407
  firstName: string;
411
408
  } | null | undefined;
409
+ agentClientLinks?: {
410
+ agentId: string;
411
+ } | null | undefined;
412
412
  }>;
413
413
  name: z.ZodString;
414
414
  position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -421,13 +421,13 @@ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
421
421
  lastName: z.ZodString;
422
422
  email: z.ZodString;
423
423
  }, "strip", z.ZodTypeAny, {
424
- id: string;
425
424
  email: string;
425
+ id: string;
426
426
  lastName: string;
427
427
  firstName: string;
428
428
  }, {
429
- id: string;
430
429
  email: string;
430
+ id: string;
431
431
  lastName: string;
432
432
  firstName: string;
433
433
  }>;
@@ -435,81 +435,81 @@ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
435
435
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
436
436
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
437
437
  }, "strip", z.ZodTypeAny, {
438
- id: string;
439
438
  name: string;
440
- updatedAt: string;
439
+ email: string | null;
440
+ phone: string;
441
441
  createdAt: string;
442
- clientId: string;
442
+ updatedAt: string;
443
+ createdBy: {
444
+ email: string;
445
+ id: string;
446
+ lastName: string;
447
+ firstName: string;
448
+ };
449
+ id: string;
443
450
  createdById: string;
451
+ clientId: string;
444
452
  client: {
445
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
446
- id: string;
447
453
  name: string;
448
- updatedAt: string;
449
454
  createdAt: string;
455
+ updatedAt: string;
456
+ id: string;
457
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
450
458
  crn: string | null;
451
459
  govLink: string | null;
452
- director: string;
453
460
  soleTrader: boolean;
461
+ director: string;
454
462
  blacklistReason?: string | null | undefined;
455
- agentClientLinks?: {
456
- agentId: string;
457
- } | null | undefined;
458
463
  lastUpdatedBy?: {
459
- id: string;
460
464
  email: string;
465
+ id: string;
461
466
  lastName: string;
462
467
  firstName: string;
463
468
  } | null | undefined;
469
+ agentClientLinks?: {
470
+ agentId: string;
471
+ } | null | undefined;
464
472
  };
465
- phone: string;
473
+ source?: string | null | undefined;
474
+ position?: string | null | undefined;
475
+ }, {
476
+ name: string;
466
477
  email: string | null;
478
+ phone: string;
479
+ createdAt: string | Date;
480
+ updatedAt: string | Date;
467
481
  createdBy: {
468
- id: string;
469
482
  email: string;
483
+ id: string;
470
484
  lastName: string;
471
485
  firstName: string;
472
486
  };
473
- position?: string | null | undefined;
474
- source?: string | null | undefined;
475
- }, {
476
487
  id: string;
477
- name: string;
478
- updatedAt: string | Date;
479
- createdAt: string | Date;
480
- clientId: string;
481
488
  createdById: string;
489
+ clientId: string;
482
490
  client: {
483
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
484
- id: string;
485
491
  name: string;
486
- updatedAt: string | Date;
487
492
  createdAt: string | Date;
493
+ updatedAt: string | Date;
494
+ id: string;
495
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
488
496
  crn: string | null;
489
497
  govLink: string | null;
490
- director: string;
491
498
  soleTrader: boolean;
499
+ director: string;
492
500
  blacklistReason?: string | null | undefined;
493
- agentClientLinks?: {
494
- agentId: string;
495
- } | null | undefined;
496
501
  lastUpdatedBy?: {
497
- id: string;
498
502
  email: string;
503
+ id: string;
499
504
  lastName: string;
500
505
  firstName: string;
501
506
  } | null | undefined;
507
+ agentClientLinks?: {
508
+ agentId: string;
509
+ } | null | undefined;
502
510
  };
503
- phone: string;
504
- email: string | null;
505
- createdBy: {
506
- id: string;
507
- email: string;
508
- lastName: string;
509
- firstName: string;
510
- };
511
- position?: string | null | undefined;
512
511
  source?: string | null | undefined;
512
+ position?: string | null | undefined;
513
513
  }>, "many">;
514
514
  totalCount: z.ZodNumber;
515
515
  limit: z.ZodNumber;
@@ -519,43 +519,43 @@ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
519
519
  }, "strip", z.ZodTypeAny, {
520
520
  limit: number;
521
521
  items: {
522
- id: string;
523
522
  name: string;
524
- updatedAt: string;
523
+ email: string | null;
524
+ phone: string;
525
525
  createdAt: string;
526
- clientId: string;
526
+ updatedAt: string;
527
+ createdBy: {
528
+ email: string;
529
+ id: string;
530
+ lastName: string;
531
+ firstName: string;
532
+ };
533
+ id: string;
527
534
  createdById: string;
535
+ clientId: string;
528
536
  client: {
529
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
530
- id: string;
531
537
  name: string;
532
- updatedAt: string;
533
538
  createdAt: string;
539
+ updatedAt: string;
540
+ id: string;
541
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
534
542
  crn: string | null;
535
543
  govLink: string | null;
536
- director: string;
537
544
  soleTrader: boolean;
545
+ director: string;
538
546
  blacklistReason?: string | null | undefined;
539
- agentClientLinks?: {
540
- agentId: string;
541
- } | null | undefined;
542
547
  lastUpdatedBy?: {
543
- id: string;
544
548
  email: string;
549
+ id: string;
545
550
  lastName: string;
546
551
  firstName: string;
547
552
  } | null | undefined;
553
+ agentClientLinks?: {
554
+ agentId: string;
555
+ } | null | undefined;
548
556
  };
549
- phone: string;
550
- email: string | null;
551
- createdBy: {
552
- id: string;
553
- email: string;
554
- lastName: string;
555
- firstName: string;
556
- };
557
- position?: string | null | undefined;
558
557
  source?: string | null | undefined;
558
+ position?: string | null | undefined;
559
559
  }[];
560
560
  totalCount: number;
561
561
  skip: number;
@@ -564,43 +564,43 @@ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
564
564
  }, {
565
565
  limit: number;
566
566
  items: {
567
- id: string;
568
567
  name: string;
569
- updatedAt: string | Date;
568
+ email: string | null;
569
+ phone: string;
570
570
  createdAt: string | Date;
571
- clientId: string;
571
+ updatedAt: string | Date;
572
+ createdBy: {
573
+ email: string;
574
+ id: string;
575
+ lastName: string;
576
+ firstName: string;
577
+ };
578
+ id: string;
572
579
  createdById: string;
580
+ clientId: string;
573
581
  client: {
574
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
575
- id: string;
576
582
  name: string;
577
- updatedAt: string | Date;
578
583
  createdAt: string | Date;
584
+ updatedAt: string | Date;
585
+ id: string;
586
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
579
587
  crn: string | null;
580
588
  govLink: string | null;
581
- director: string;
582
589
  soleTrader: boolean;
590
+ director: string;
583
591
  blacklistReason?: string | null | undefined;
584
- agentClientLinks?: {
585
- agentId: string;
586
- } | null | undefined;
587
592
  lastUpdatedBy?: {
588
- id: string;
589
593
  email: string;
594
+ id: string;
590
595
  lastName: string;
591
596
  firstName: string;
592
597
  } | null | undefined;
598
+ agentClientLinks?: {
599
+ agentId: string;
600
+ } | null | undefined;
593
601
  };
594
- phone: string;
595
- email: string | null;
596
- createdBy: {
597
- id: string;
598
- email: string;
599
- lastName: string;
600
- firstName: string;
601
- };
602
- position?: string | null | undefined;
603
602
  source?: string | null | undefined;
603
+ position?: string | null | undefined;
604
604
  }[];
605
605
  totalCount: number;
606
606
  skip: number;
@@ -619,21 +619,21 @@ export declare const ClientContactAutocompleteResponseSchema: z.ZodObject<{
619
619
  id: z.ZodString;
620
620
  name: z.ZodString;
621
621
  }, "strip", z.ZodTypeAny, {
622
- id: string;
623
622
  name: string;
624
- }, {
625
623
  id: string;
624
+ }, {
626
625
  name: string;
626
+ id: string;
627
627
  }>;
628
628
  export declare const ClientContactAutocompleteArraySchema: z.ZodArray<z.ZodObject<{
629
629
  id: z.ZodString;
630
630
  name: z.ZodString;
631
631
  }, "strip", z.ZodTypeAny, {
632
- id: string;
633
632
  name: string;
634
- }, {
635
633
  id: string;
634
+ }, {
636
635
  name: string;
636
+ id: string;
637
637
  }>, "many">;
638
638
  export type ClientContactAutocompleteResponse = z.infer<typeof ClientContactAutocompleteResponseSchema>;
639
639
  export declare const clientContactsContractRouter: {
@@ -658,26 +658,26 @@ export declare const clientContactsContractRouter: {
658
658
  source: z.ZodOptional<z.ZodString>;
659
659
  }, "strip", z.ZodTypeAny, {
660
660
  name: string;
661
+ phone: string;
661
662
  client: {
662
663
  id: string;
663
664
  };
664
- phone: string;
665
- position?: string | undefined;
666
665
  email?: string | undefined;
667
666
  source?: string | undefined;
667
+ position?: string | undefined;
668
668
  }, {
669
669
  name: string;
670
+ phone: string;
670
671
  client: {
671
672
  id: string;
672
673
  };
673
- phone: string;
674
- position?: string | undefined;
675
674
  email?: string | undefined;
676
675
  source?: string | undefined;
676
+ position?: string | undefined;
677
677
  }>;
678
678
  path: "/v2/client-contacts";
679
679
  responses: {
680
- 400: z.ZodObject<{
680
+ 401: z.ZodObject<{
681
681
  statusCode: z.ZodNumber;
682
682
  message: z.ZodString;
683
683
  code: z.ZodString;
@@ -686,23 +686,23 @@ export declare const clientContactsContractRouter: {
686
686
  path: z.ZodString;
687
687
  correlationId: z.ZodOptional<z.ZodString>;
688
688
  }, "strip", z.ZodTypeAny, {
689
- message: string;
690
689
  code: string;
691
690
  path: string;
691
+ message: string;
692
692
  statusCode: number;
693
693
  timestamp: string;
694
694
  details?: unknown;
695
695
  correlationId?: string | undefined;
696
696
  }, {
697
- message: string;
698
697
  code: string;
699
698
  path: string;
699
+ message: string;
700
700
  statusCode: number;
701
701
  timestamp: string;
702
702
  details?: unknown;
703
703
  correlationId?: string | undefined;
704
704
  }>;
705
- 401: z.ZodObject<{
705
+ 400: z.ZodObject<{
706
706
  statusCode: z.ZodNumber;
707
707
  message: z.ZodString;
708
708
  code: z.ZodString;
@@ -711,17 +711,17 @@ export declare const clientContactsContractRouter: {
711
711
  path: z.ZodString;
712
712
  correlationId: z.ZodOptional<z.ZodString>;
713
713
  }, "strip", z.ZodTypeAny, {
714
- message: string;
715
714
  code: string;
716
715
  path: string;
716
+ message: string;
717
717
  statusCode: number;
718
718
  timestamp: string;
719
719
  details?: unknown;
720
720
  correlationId?: string | undefined;
721
721
  }, {
722
- message: string;
723
722
  code: string;
724
723
  path: string;
724
+ message: string;
725
725
  statusCode: number;
726
726
  timestamp: string;
727
727
  details?: unknown;
@@ -736,17 +736,17 @@ export declare const clientContactsContractRouter: {
736
736
  path: z.ZodString;
737
737
  correlationId: z.ZodOptional<z.ZodString>;
738
738
  }, "strip", z.ZodTypeAny, {
739
- message: string;
740
739
  code: string;
741
740
  path: string;
741
+ message: string;
742
742
  statusCode: number;
743
743
  timestamp: string;
744
744
  details?: unknown;
745
745
  correlationId?: string | undefined;
746
746
  }, {
747
- message: string;
748
747
  code: string;
749
748
  path: string;
749
+ message: string;
750
750
  statusCode: number;
751
751
  timestamp: string;
752
752
  details?: unknown;
@@ -761,17 +761,17 @@ export declare const clientContactsContractRouter: {
761
761
  path: z.ZodString;
762
762
  correlationId: z.ZodOptional<z.ZodString>;
763
763
  }, "strip", z.ZodTypeAny, {
764
- message: string;
765
764
  code: string;
766
765
  path: string;
766
+ message: string;
767
767
  statusCode: number;
768
768
  timestamp: string;
769
769
  details?: unknown;
770
770
  correlationId?: string | undefined;
771
771
  }, {
772
- message: string;
773
772
  code: string;
774
773
  path: string;
774
+ message: string;
775
775
  statusCode: number;
776
776
  timestamp: string;
777
777
  details?: unknown;
@@ -795,13 +795,13 @@ export declare const clientContactsContractRouter: {
795
795
  lastName: z.ZodString;
796
796
  email: z.ZodString;
797
797
  }, "strip", z.ZodTypeAny, {
798
- id: string;
799
798
  email: string;
799
+ id: string;
800
800
  lastName: string;
801
801
  firstName: string;
802
802
  }, {
803
- id: string;
804
803
  email: string;
804
+ id: string;
805
805
  lastName: string;
806
806
  firstName: string;
807
807
  }>>>;
@@ -815,45 +815,45 @@ export declare const clientContactsContractRouter: {
815
815
  agentId: string;
816
816
  }>>>;
817
817
  }, "strip", z.ZodTypeAny, {
818
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
819
- id: string;
820
818
  name: string;
821
- updatedAt: string;
822
819
  createdAt: string;
820
+ updatedAt: string;
821
+ id: string;
822
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
823
823
  crn: string | null;
824
824
  govLink: string | null;
825
- director: string;
826
825
  soleTrader: boolean;
826
+ director: string;
827
827
  blacklistReason?: string | null | undefined;
828
- agentClientLinks?: {
829
- agentId: string;
830
- } | null | undefined;
831
828
  lastUpdatedBy?: {
832
- id: string;
833
829
  email: string;
830
+ id: string;
834
831
  lastName: string;
835
832
  firstName: string;
836
833
  } | null | undefined;
834
+ agentClientLinks?: {
835
+ agentId: string;
836
+ } | null | undefined;
837
837
  }, {
838
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
839
- id: string;
840
838
  name: string;
841
- updatedAt: string | Date;
842
839
  createdAt: string | Date;
840
+ updatedAt: string | Date;
841
+ id: string;
842
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
843
843
  crn: string | null;
844
844
  govLink: string | null;
845
- director: string;
846
845
  soleTrader: boolean;
847
- blacklistReason?: string | null | undefined;
848
- agentClientLinks?: {
849
- agentId: string;
850
- } | null | undefined;
846
+ director: string;
847
+ blacklistReason?: string | null | undefined;
851
848
  lastUpdatedBy?: {
852
- id: string;
853
849
  email: string;
850
+ id: string;
854
851
  lastName: string;
855
852
  firstName: string;
856
853
  } | null | undefined;
854
+ agentClientLinks?: {
855
+ agentId: string;
856
+ } | null | undefined;
857
857
  }>;
858
858
  name: z.ZodString;
859
859
  position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -866,13 +866,13 @@ export declare const clientContactsContractRouter: {
866
866
  lastName: z.ZodString;
867
867
  email: z.ZodString;
868
868
  }, "strip", z.ZodTypeAny, {
869
- id: string;
870
869
  email: string;
870
+ id: string;
871
871
  lastName: string;
872
872
  firstName: string;
873
873
  }, {
874
- id: string;
875
874
  email: string;
875
+ id: string;
876
876
  lastName: string;
877
877
  firstName: string;
878
878
  }>;
@@ -880,81 +880,81 @@ export declare const clientContactsContractRouter: {
880
880
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
881
881
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
882
882
  }, "strip", z.ZodTypeAny, {
883
- id: string;
884
883
  name: string;
885
- updatedAt: string;
884
+ email: string | null;
885
+ phone: string;
886
886
  createdAt: string;
887
- clientId: string;
887
+ updatedAt: string;
888
+ createdBy: {
889
+ email: string;
890
+ id: string;
891
+ lastName: string;
892
+ firstName: string;
893
+ };
894
+ id: string;
888
895
  createdById: string;
896
+ clientId: string;
889
897
  client: {
890
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
891
- id: string;
892
898
  name: string;
893
- updatedAt: string;
894
899
  createdAt: string;
900
+ updatedAt: string;
901
+ id: string;
902
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
895
903
  crn: string | null;
896
904
  govLink: string | null;
897
- director: string;
898
905
  soleTrader: boolean;
906
+ director: string;
899
907
  blacklistReason?: string | null | undefined;
900
- agentClientLinks?: {
901
- agentId: string;
902
- } | null | undefined;
903
908
  lastUpdatedBy?: {
904
- id: string;
905
909
  email: string;
910
+ id: string;
906
911
  lastName: string;
907
912
  firstName: string;
908
913
  } | null | undefined;
914
+ agentClientLinks?: {
915
+ agentId: string;
916
+ } | null | undefined;
909
917
  };
910
- phone: string;
918
+ source?: string | null | undefined;
919
+ position?: string | null | undefined;
920
+ }, {
921
+ name: string;
911
922
  email: string | null;
923
+ phone: string;
924
+ createdAt: string | Date;
925
+ updatedAt: string | Date;
912
926
  createdBy: {
913
- id: string;
914
927
  email: string;
928
+ id: string;
915
929
  lastName: string;
916
930
  firstName: string;
917
931
  };
918
- position?: string | null | undefined;
919
- source?: string | null | undefined;
920
- }, {
921
932
  id: string;
922
- name: string;
923
- updatedAt: string | Date;
924
- createdAt: string | Date;
925
- clientId: string;
926
933
  createdById: string;
934
+ clientId: string;
927
935
  client: {
928
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
929
- id: string;
930
936
  name: string;
931
- updatedAt: string | Date;
932
937
  createdAt: string | Date;
938
+ updatedAt: string | Date;
939
+ id: string;
940
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
933
941
  crn: string | null;
934
942
  govLink: string | null;
935
- director: string;
936
943
  soleTrader: boolean;
944
+ director: string;
937
945
  blacklistReason?: string | null | undefined;
938
- agentClientLinks?: {
939
- agentId: string;
940
- } | null | undefined;
941
946
  lastUpdatedBy?: {
942
- id: string;
943
947
  email: string;
948
+ id: string;
944
949
  lastName: string;
945
950
  firstName: string;
946
951
  } | null | undefined;
952
+ agentClientLinks?: {
953
+ agentId: string;
954
+ } | null | undefined;
947
955
  };
948
- phone: string;
949
- email: string | null;
950
- createdBy: {
951
- id: string;
952
- email: string;
953
- lastName: string;
954
- firstName: string;
955
- };
956
- position?: string | null | undefined;
957
956
  source?: string | null | undefined;
957
+ position?: string | null | undefined;
958
958
  }>;
959
959
  409: z.ZodObject<{
960
960
  statusCode: z.ZodNumber;
@@ -965,17 +965,17 @@ export declare const clientContactsContractRouter: {
965
965
  path: z.ZodString;
966
966
  correlationId: z.ZodOptional<z.ZodString>;
967
967
  }, "strip", z.ZodTypeAny, {
968
- message: string;
969
968
  code: string;
970
969
  path: string;
970
+ message: string;
971
971
  statusCode: number;
972
972
  timestamp: string;
973
973
  details?: unknown;
974
974
  correlationId?: string | undefined;
975
975
  }, {
976
- message: string;
977
976
  code: string;
978
977
  path: string;
978
+ message: string;
979
979
  statusCode: number;
980
980
  timestamp: string;
981
981
  details?: unknown;
@@ -1012,19 +1012,19 @@ export declare const clientContactsContractRouter: {
1012
1012
  }, "client">, "strip", z.ZodTypeAny, {
1013
1013
  name: string;
1014
1014
  phone: string;
1015
- position?: string | undefined;
1016
1015
  email?: string | undefined;
1017
1016
  source?: string | undefined;
1017
+ position?: string | undefined;
1018
1018
  }, {
1019
1019
  name: string;
1020
1020
  phone: string;
1021
- position?: string | undefined;
1022
1021
  email?: string | undefined;
1023
1022
  source?: string | undefined;
1023
+ position?: string | undefined;
1024
1024
  }>;
1025
1025
  path: "/v2/client-contacts/client/:clientId";
1026
1026
  responses: {
1027
- 400: z.ZodObject<{
1027
+ 401: z.ZodObject<{
1028
1028
  statusCode: z.ZodNumber;
1029
1029
  message: z.ZodString;
1030
1030
  code: z.ZodString;
@@ -1033,23 +1033,23 @@ export declare const clientContactsContractRouter: {
1033
1033
  path: z.ZodString;
1034
1034
  correlationId: z.ZodOptional<z.ZodString>;
1035
1035
  }, "strip", z.ZodTypeAny, {
1036
- message: string;
1037
1036
  code: string;
1038
1037
  path: string;
1038
+ message: string;
1039
1039
  statusCode: number;
1040
1040
  timestamp: string;
1041
1041
  details?: unknown;
1042
1042
  correlationId?: string | undefined;
1043
1043
  }, {
1044
- message: string;
1045
1044
  code: string;
1046
1045
  path: string;
1046
+ message: string;
1047
1047
  statusCode: number;
1048
1048
  timestamp: string;
1049
1049
  details?: unknown;
1050
1050
  correlationId?: string | undefined;
1051
1051
  }>;
1052
- 401: z.ZodObject<{
1052
+ 400: z.ZodObject<{
1053
1053
  statusCode: z.ZodNumber;
1054
1054
  message: z.ZodString;
1055
1055
  code: z.ZodString;
@@ -1058,17 +1058,17 @@ export declare const clientContactsContractRouter: {
1058
1058
  path: z.ZodString;
1059
1059
  correlationId: z.ZodOptional<z.ZodString>;
1060
1060
  }, "strip", z.ZodTypeAny, {
1061
- message: string;
1062
1061
  code: string;
1063
1062
  path: string;
1063
+ message: string;
1064
1064
  statusCode: number;
1065
1065
  timestamp: string;
1066
1066
  details?: unknown;
1067
1067
  correlationId?: string | undefined;
1068
1068
  }, {
1069
- message: string;
1070
1069
  code: string;
1071
1070
  path: string;
1071
+ message: string;
1072
1072
  statusCode: number;
1073
1073
  timestamp: string;
1074
1074
  details?: unknown;
@@ -1083,17 +1083,17 @@ export declare const clientContactsContractRouter: {
1083
1083
  path: z.ZodString;
1084
1084
  correlationId: z.ZodOptional<z.ZodString>;
1085
1085
  }, "strip", z.ZodTypeAny, {
1086
- message: string;
1087
1086
  code: string;
1088
1087
  path: string;
1088
+ message: string;
1089
1089
  statusCode: number;
1090
1090
  timestamp: string;
1091
1091
  details?: unknown;
1092
1092
  correlationId?: string | undefined;
1093
1093
  }, {
1094
- message: string;
1095
1094
  code: string;
1096
1095
  path: string;
1096
+ message: string;
1097
1097
  statusCode: number;
1098
1098
  timestamp: string;
1099
1099
  details?: unknown;
@@ -1108,17 +1108,17 @@ export declare const clientContactsContractRouter: {
1108
1108
  path: z.ZodString;
1109
1109
  correlationId: z.ZodOptional<z.ZodString>;
1110
1110
  }, "strip", z.ZodTypeAny, {
1111
- message: string;
1112
1111
  code: string;
1113
1112
  path: string;
1113
+ message: string;
1114
1114
  statusCode: number;
1115
1115
  timestamp: string;
1116
1116
  details?: unknown;
1117
1117
  correlationId?: string | undefined;
1118
1118
  }, {
1119
- message: string;
1120
1119
  code: string;
1121
1120
  path: string;
1121
+ message: string;
1122
1122
  statusCode: number;
1123
1123
  timestamp: string;
1124
1124
  details?: unknown;
@@ -1142,13 +1142,13 @@ export declare const clientContactsContractRouter: {
1142
1142
  lastName: z.ZodString;
1143
1143
  email: z.ZodString;
1144
1144
  }, "strip", z.ZodTypeAny, {
1145
- id: string;
1146
1145
  email: string;
1146
+ id: string;
1147
1147
  lastName: string;
1148
1148
  firstName: string;
1149
1149
  }, {
1150
- id: string;
1151
1150
  email: string;
1151
+ id: string;
1152
1152
  lastName: string;
1153
1153
  firstName: string;
1154
1154
  }>>>;
@@ -1162,45 +1162,45 @@ export declare const clientContactsContractRouter: {
1162
1162
  agentId: string;
1163
1163
  }>>>;
1164
1164
  }, "strip", z.ZodTypeAny, {
1165
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1166
- id: string;
1167
1165
  name: string;
1168
- updatedAt: string;
1169
1166
  createdAt: string;
1167
+ updatedAt: string;
1168
+ id: string;
1169
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1170
1170
  crn: string | null;
1171
1171
  govLink: string | null;
1172
- director: string;
1173
1172
  soleTrader: boolean;
1173
+ director: string;
1174
1174
  blacklistReason?: string | null | undefined;
1175
- agentClientLinks?: {
1176
- agentId: string;
1177
- } | null | undefined;
1178
1175
  lastUpdatedBy?: {
1179
- id: string;
1180
1176
  email: string;
1177
+ id: string;
1181
1178
  lastName: string;
1182
1179
  firstName: string;
1183
1180
  } | null | undefined;
1181
+ agentClientLinks?: {
1182
+ agentId: string;
1183
+ } | null | undefined;
1184
1184
  }, {
1185
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1186
- id: string;
1187
1185
  name: string;
1188
- updatedAt: string | Date;
1189
1186
  createdAt: string | Date;
1187
+ updatedAt: string | Date;
1188
+ id: string;
1189
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1190
1190
  crn: string | null;
1191
1191
  govLink: string | null;
1192
- director: string;
1193
1192
  soleTrader: boolean;
1193
+ director: string;
1194
1194
  blacklistReason?: string | null | undefined;
1195
- agentClientLinks?: {
1196
- agentId: string;
1197
- } | null | undefined;
1198
1195
  lastUpdatedBy?: {
1199
- id: string;
1200
1196
  email: string;
1197
+ id: string;
1201
1198
  lastName: string;
1202
1199
  firstName: string;
1203
1200
  } | null | undefined;
1201
+ agentClientLinks?: {
1202
+ agentId: string;
1203
+ } | null | undefined;
1204
1204
  }>;
1205
1205
  name: z.ZodString;
1206
1206
  position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1213,13 +1213,13 @@ export declare const clientContactsContractRouter: {
1213
1213
  lastName: z.ZodString;
1214
1214
  email: z.ZodString;
1215
1215
  }, "strip", z.ZodTypeAny, {
1216
- id: string;
1217
1216
  email: string;
1217
+ id: string;
1218
1218
  lastName: string;
1219
1219
  firstName: string;
1220
1220
  }, {
1221
- id: string;
1222
1221
  email: string;
1222
+ id: string;
1223
1223
  lastName: string;
1224
1224
  firstName: string;
1225
1225
  }>;
@@ -1227,81 +1227,81 @@ export declare const clientContactsContractRouter: {
1227
1227
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1228
1228
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1229
1229
  }, "strip", z.ZodTypeAny, {
1230
- id: string;
1231
1230
  name: string;
1232
- updatedAt: string;
1231
+ email: string | null;
1232
+ phone: string;
1233
1233
  createdAt: string;
1234
- clientId: string;
1234
+ updatedAt: string;
1235
+ createdBy: {
1236
+ email: string;
1237
+ id: string;
1238
+ lastName: string;
1239
+ firstName: string;
1240
+ };
1241
+ id: string;
1235
1242
  createdById: string;
1243
+ clientId: string;
1236
1244
  client: {
1237
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1238
- id: string;
1239
1245
  name: string;
1240
- updatedAt: string;
1241
1246
  createdAt: string;
1247
+ updatedAt: string;
1248
+ id: string;
1249
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1242
1250
  crn: string | null;
1243
1251
  govLink: string | null;
1244
- director: string;
1245
1252
  soleTrader: boolean;
1253
+ director: string;
1246
1254
  blacklistReason?: string | null | undefined;
1247
- agentClientLinks?: {
1248
- agentId: string;
1249
- } | null | undefined;
1250
1255
  lastUpdatedBy?: {
1251
- id: string;
1252
1256
  email: string;
1257
+ id: string;
1253
1258
  lastName: string;
1254
1259
  firstName: string;
1255
1260
  } | null | undefined;
1261
+ agentClientLinks?: {
1262
+ agentId: string;
1263
+ } | null | undefined;
1256
1264
  };
1257
- phone: string;
1265
+ source?: string | null | undefined;
1266
+ position?: string | null | undefined;
1267
+ }, {
1268
+ name: string;
1258
1269
  email: string | null;
1270
+ phone: string;
1271
+ createdAt: string | Date;
1272
+ updatedAt: string | Date;
1259
1273
  createdBy: {
1260
- id: string;
1261
1274
  email: string;
1275
+ id: string;
1262
1276
  lastName: string;
1263
1277
  firstName: string;
1264
1278
  };
1265
- position?: string | null | undefined;
1266
- source?: string | null | undefined;
1267
- }, {
1268
1279
  id: string;
1269
- name: string;
1270
- updatedAt: string | Date;
1271
- createdAt: string | Date;
1272
- clientId: string;
1273
1280
  createdById: string;
1281
+ clientId: string;
1274
1282
  client: {
1275
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1276
- id: string;
1277
1283
  name: string;
1278
- updatedAt: string | Date;
1279
1284
  createdAt: string | Date;
1285
+ updatedAt: string | Date;
1286
+ id: string;
1287
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1280
1288
  crn: string | null;
1281
1289
  govLink: string | null;
1282
- director: string;
1283
1290
  soleTrader: boolean;
1291
+ director: string;
1284
1292
  blacklistReason?: string | null | undefined;
1285
- agentClientLinks?: {
1286
- agentId: string;
1287
- } | null | undefined;
1288
1293
  lastUpdatedBy?: {
1289
- id: string;
1290
1294
  email: string;
1295
+ id: string;
1291
1296
  lastName: string;
1292
1297
  firstName: string;
1293
1298
  } | null | undefined;
1299
+ agentClientLinks?: {
1300
+ agentId: string;
1301
+ } | null | undefined;
1294
1302
  };
1295
- phone: string;
1296
- email: string | null;
1297
- createdBy: {
1298
- id: string;
1299
- email: string;
1300
- lastName: string;
1301
- firstName: string;
1302
- };
1303
- position?: string | null | undefined;
1304
1303
  source?: string | null | undefined;
1304
+ position?: string | null | undefined;
1305
1305
  }>;
1306
1306
  409: z.ZodObject<{
1307
1307
  statusCode: z.ZodNumber;
@@ -1312,17 +1312,17 @@ export declare const clientContactsContractRouter: {
1312
1312
  path: z.ZodString;
1313
1313
  correlationId: z.ZodOptional<z.ZodString>;
1314
1314
  }, "strip", z.ZodTypeAny, {
1315
- message: string;
1316
1315
  code: string;
1317
1316
  path: string;
1317
+ message: string;
1318
1318
  statusCode: number;
1319
1319
  timestamp: string;
1320
1320
  details?: unknown;
1321
1321
  correlationId?: string | undefined;
1322
1322
  }, {
1323
- message: string;
1324
1323
  code: string;
1325
1324
  path: string;
1325
+ message: string;
1326
1326
  statusCode: number;
1327
1327
  timestamp: string;
1328
1328
  details?: unknown;
@@ -1338,12 +1338,12 @@ export declare const clientContactsContractRouter: {
1338
1338
  clientId: z.ZodOptional<z.ZodString>;
1339
1339
  }, "strip", z.ZodTypeAny, {
1340
1340
  id?: string | undefined;
1341
- clientId?: string | undefined;
1342
1341
  query?: string | undefined;
1342
+ clientId?: string | undefined;
1343
1343
  }, {
1344
1344
  id?: string | undefined;
1345
- clientId?: string | undefined;
1346
1345
  query?: string | undefined;
1346
+ clientId?: string | undefined;
1347
1347
  }>;
1348
1348
  metadata: {
1349
1349
  tags: string[];
@@ -1355,7 +1355,7 @@ export declare const clientContactsContractRouter: {
1355
1355
  method: "GET";
1356
1356
  path: "/v2/client-contacts/autocomplete";
1357
1357
  responses: {
1358
- 400: z.ZodObject<{
1358
+ 401: z.ZodObject<{
1359
1359
  statusCode: z.ZodNumber;
1360
1360
  message: z.ZodString;
1361
1361
  code: z.ZodString;
@@ -1364,23 +1364,23 @@ export declare const clientContactsContractRouter: {
1364
1364
  path: z.ZodString;
1365
1365
  correlationId: z.ZodOptional<z.ZodString>;
1366
1366
  }, "strip", z.ZodTypeAny, {
1367
- message: string;
1368
1367
  code: string;
1369
1368
  path: string;
1369
+ message: string;
1370
1370
  statusCode: number;
1371
1371
  timestamp: string;
1372
1372
  details?: unknown;
1373
1373
  correlationId?: string | undefined;
1374
1374
  }, {
1375
- message: string;
1376
1375
  code: string;
1377
1376
  path: string;
1377
+ message: string;
1378
1378
  statusCode: number;
1379
1379
  timestamp: string;
1380
1380
  details?: unknown;
1381
1381
  correlationId?: string | undefined;
1382
1382
  }>;
1383
- 401: z.ZodObject<{
1383
+ 400: z.ZodObject<{
1384
1384
  statusCode: z.ZodNumber;
1385
1385
  message: z.ZodString;
1386
1386
  code: z.ZodString;
@@ -1389,17 +1389,17 @@ export declare const clientContactsContractRouter: {
1389
1389
  path: z.ZodString;
1390
1390
  correlationId: z.ZodOptional<z.ZodString>;
1391
1391
  }, "strip", z.ZodTypeAny, {
1392
- message: string;
1393
1392
  code: string;
1394
1393
  path: string;
1394
+ message: string;
1395
1395
  statusCode: number;
1396
1396
  timestamp: string;
1397
1397
  details?: unknown;
1398
1398
  correlationId?: string | undefined;
1399
1399
  }, {
1400
- message: string;
1401
1400
  code: string;
1402
1401
  path: string;
1402
+ message: string;
1403
1403
  statusCode: number;
1404
1404
  timestamp: string;
1405
1405
  details?: unknown;
@@ -1414,17 +1414,17 @@ export declare const clientContactsContractRouter: {
1414
1414
  path: z.ZodString;
1415
1415
  correlationId: z.ZodOptional<z.ZodString>;
1416
1416
  }, "strip", z.ZodTypeAny, {
1417
- message: string;
1418
1417
  code: string;
1419
1418
  path: string;
1419
+ message: string;
1420
1420
  statusCode: number;
1421
1421
  timestamp: string;
1422
1422
  details?: unknown;
1423
1423
  correlationId?: string | undefined;
1424
1424
  }, {
1425
- message: string;
1426
1425
  code: string;
1427
1426
  path: string;
1427
+ message: string;
1428
1428
  statusCode: number;
1429
1429
  timestamp: string;
1430
1430
  details?: unknown;
@@ -1439,17 +1439,17 @@ export declare const clientContactsContractRouter: {
1439
1439
  path: z.ZodString;
1440
1440
  correlationId: z.ZodOptional<z.ZodString>;
1441
1441
  }, "strip", z.ZodTypeAny, {
1442
- message: string;
1443
1442
  code: string;
1444
1443
  path: string;
1444
+ message: string;
1445
1445
  statusCode: number;
1446
1446
  timestamp: string;
1447
1447
  details?: unknown;
1448
1448
  correlationId?: string | undefined;
1449
1449
  }, {
1450
- message: string;
1451
1450
  code: string;
1452
1451
  path: string;
1452
+ message: string;
1453
1453
  statusCode: number;
1454
1454
  timestamp: string;
1455
1455
  details?: unknown;
@@ -1459,11 +1459,11 @@ export declare const clientContactsContractRouter: {
1459
1459
  id: z.ZodString;
1460
1460
  name: z.ZodString;
1461
1461
  }, "strip", z.ZodTypeAny, {
1462
- id: string;
1463
1462
  name: string;
1464
- }, {
1465
1463
  id: string;
1464
+ }, {
1466
1465
  name: string;
1466
+ id: string;
1467
1467
  }>, "many">;
1468
1468
  };
1469
1469
  };
@@ -1483,40 +1483,40 @@ export declare const clientContactsContractRouter: {
1483
1483
  field: z.ZodEnum<["name", "position", "email", "createdAt", "updatedAt"]>;
1484
1484
  order: z.ZodEnum<["ASC", "DESC"]>;
1485
1485
  }, "strip", z.ZodTypeAny, {
1486
- field: "name" | "updatedAt" | "createdAt" | "position" | "email";
1486
+ field: "name" | "email" | "createdAt" | "updatedAt" | "position";
1487
1487
  order: "ASC" | "DESC";
1488
1488
  }, {
1489
- field: "name" | "updatedAt" | "createdAt" | "position" | "email";
1489
+ field: "name" | "email" | "createdAt" | "updatedAt" | "position";
1490
1490
  order: "ASC" | "DESC";
1491
1491
  }>, "many">>>;
1492
1492
  }, "strip", z.ZodTypeAny, {
1493
1493
  page: number;
1494
1494
  limit: number;
1495
- sort?: {
1496
- field: "name" | "updatedAt" | "createdAt" | "position" | "email";
1497
- order: "ASC" | "DESC";
1498
- }[] | null | undefined;
1499
1495
  name?: string | undefined;
1500
- clientId?: string | undefined;
1501
- createdById?: string | undefined;
1502
- position?: string | undefined;
1503
- phone?: string | undefined;
1504
1496
  email?: string | undefined;
1497
+ phone?: string | undefined;
1498
+ sort?: {
1499
+ field: "name" | "email" | "createdAt" | "updatedAt" | "position";
1500
+ order: "ASC" | "DESC";
1501
+ }[] | null | undefined;
1502
+ createdById?: string | undefined;
1505
1503
  source?: string | undefined;
1504
+ position?: string | undefined;
1505
+ clientId?: string | undefined;
1506
1506
  }, {
1507
+ name?: string | undefined;
1508
+ email?: string | undefined;
1509
+ phone?: string | undefined;
1507
1510
  sort?: {
1508
- field: "name" | "updatedAt" | "createdAt" | "position" | "email";
1511
+ field: "name" | "email" | "createdAt" | "updatedAt" | "position";
1509
1512
  order: "ASC" | "DESC";
1510
1513
  }[] | null | undefined;
1511
1514
  page?: number | undefined;
1512
1515
  limit?: number | undefined;
1513
- name?: string | undefined;
1514
- clientId?: string | undefined;
1515
1516
  createdById?: string | undefined;
1516
- position?: string | undefined;
1517
- phone?: string | undefined;
1518
- email?: string | undefined;
1519
1517
  source?: string | undefined;
1518
+ position?: string | undefined;
1519
+ clientId?: string | undefined;
1520
1520
  }>;
1521
1521
  metadata: {
1522
1522
  tags: string[];
@@ -1525,7 +1525,7 @@ export declare const clientContactsContractRouter: {
1525
1525
  method: "GET";
1526
1526
  path: "/v2/client-contacts";
1527
1527
  responses: {
1528
- 400: z.ZodObject<{
1528
+ 401: z.ZodObject<{
1529
1529
  statusCode: z.ZodNumber;
1530
1530
  message: z.ZodString;
1531
1531
  code: z.ZodString;
@@ -1534,23 +1534,23 @@ export declare const clientContactsContractRouter: {
1534
1534
  path: z.ZodString;
1535
1535
  correlationId: z.ZodOptional<z.ZodString>;
1536
1536
  }, "strip", z.ZodTypeAny, {
1537
- message: string;
1538
1537
  code: string;
1539
1538
  path: string;
1539
+ message: string;
1540
1540
  statusCode: number;
1541
1541
  timestamp: string;
1542
1542
  details?: unknown;
1543
1543
  correlationId?: string | undefined;
1544
1544
  }, {
1545
- message: string;
1546
1545
  code: string;
1547
1546
  path: string;
1547
+ message: string;
1548
1548
  statusCode: number;
1549
1549
  timestamp: string;
1550
1550
  details?: unknown;
1551
1551
  correlationId?: string | undefined;
1552
1552
  }>;
1553
- 401: z.ZodObject<{
1553
+ 400: z.ZodObject<{
1554
1554
  statusCode: z.ZodNumber;
1555
1555
  message: z.ZodString;
1556
1556
  code: z.ZodString;
@@ -1559,17 +1559,17 @@ export declare const clientContactsContractRouter: {
1559
1559
  path: z.ZodString;
1560
1560
  correlationId: z.ZodOptional<z.ZodString>;
1561
1561
  }, "strip", z.ZodTypeAny, {
1562
- message: string;
1563
1562
  code: string;
1564
1563
  path: string;
1564
+ message: string;
1565
1565
  statusCode: number;
1566
1566
  timestamp: string;
1567
1567
  details?: unknown;
1568
1568
  correlationId?: string | undefined;
1569
1569
  }, {
1570
- message: string;
1571
1570
  code: string;
1572
1571
  path: string;
1572
+ message: string;
1573
1573
  statusCode: number;
1574
1574
  timestamp: string;
1575
1575
  details?: unknown;
@@ -1584,17 +1584,17 @@ export declare const clientContactsContractRouter: {
1584
1584
  path: z.ZodString;
1585
1585
  correlationId: z.ZodOptional<z.ZodString>;
1586
1586
  }, "strip", z.ZodTypeAny, {
1587
- message: string;
1588
1587
  code: string;
1589
1588
  path: string;
1589
+ message: string;
1590
1590
  statusCode: number;
1591
1591
  timestamp: string;
1592
1592
  details?: unknown;
1593
1593
  correlationId?: string | undefined;
1594
1594
  }, {
1595
- message: string;
1596
1595
  code: string;
1597
1596
  path: string;
1597
+ message: string;
1598
1598
  statusCode: number;
1599
1599
  timestamp: string;
1600
1600
  details?: unknown;
@@ -1609,17 +1609,17 @@ export declare const clientContactsContractRouter: {
1609
1609
  path: z.ZodString;
1610
1610
  correlationId: z.ZodOptional<z.ZodString>;
1611
1611
  }, "strip", z.ZodTypeAny, {
1612
- message: string;
1613
1612
  code: string;
1614
1613
  path: string;
1614
+ message: string;
1615
1615
  statusCode: number;
1616
1616
  timestamp: string;
1617
1617
  details?: unknown;
1618
1618
  correlationId?: string | undefined;
1619
1619
  }, {
1620
- message: string;
1621
1620
  code: string;
1622
1621
  path: string;
1622
+ message: string;
1623
1623
  statusCode: number;
1624
1624
  timestamp: string;
1625
1625
  details?: unknown;
@@ -1644,13 +1644,13 @@ export declare const clientContactsContractRouter: {
1644
1644
  lastName: z.ZodString;
1645
1645
  email: z.ZodString;
1646
1646
  }, "strip", z.ZodTypeAny, {
1647
- id: string;
1648
1647
  email: string;
1648
+ id: string;
1649
1649
  lastName: string;
1650
1650
  firstName: string;
1651
1651
  }, {
1652
- id: string;
1653
1652
  email: string;
1653
+ id: string;
1654
1654
  lastName: string;
1655
1655
  firstName: string;
1656
1656
  }>>>;
@@ -1664,45 +1664,45 @@ export declare const clientContactsContractRouter: {
1664
1664
  agentId: string;
1665
1665
  }>>>;
1666
1666
  }, "strip", z.ZodTypeAny, {
1667
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1668
- id: string;
1669
1667
  name: string;
1670
- updatedAt: string;
1671
1668
  createdAt: string;
1669
+ updatedAt: string;
1670
+ id: string;
1671
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1672
1672
  crn: string | null;
1673
1673
  govLink: string | null;
1674
- director: string;
1675
1674
  soleTrader: boolean;
1675
+ director: string;
1676
1676
  blacklistReason?: string | null | undefined;
1677
- agentClientLinks?: {
1678
- agentId: string;
1679
- } | null | undefined;
1680
1677
  lastUpdatedBy?: {
1681
- id: string;
1682
1678
  email: string;
1679
+ id: string;
1683
1680
  lastName: string;
1684
1681
  firstName: string;
1685
1682
  } | null | undefined;
1683
+ agentClientLinks?: {
1684
+ agentId: string;
1685
+ } | null | undefined;
1686
1686
  }, {
1687
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1688
- id: string;
1689
1687
  name: string;
1690
- updatedAt: string | Date;
1691
1688
  createdAt: string | Date;
1689
+ updatedAt: string | Date;
1690
+ id: string;
1691
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1692
1692
  crn: string | null;
1693
1693
  govLink: string | null;
1694
- director: string;
1695
1694
  soleTrader: boolean;
1695
+ director: string;
1696
1696
  blacklistReason?: string | null | undefined;
1697
- agentClientLinks?: {
1698
- agentId: string;
1699
- } | null | undefined;
1700
1697
  lastUpdatedBy?: {
1701
- id: string;
1702
1698
  email: string;
1699
+ id: string;
1703
1700
  lastName: string;
1704
1701
  firstName: string;
1705
1702
  } | null | undefined;
1703
+ agentClientLinks?: {
1704
+ agentId: string;
1705
+ } | null | undefined;
1706
1706
  }>;
1707
1707
  name: z.ZodString;
1708
1708
  position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1715,13 +1715,13 @@ export declare const clientContactsContractRouter: {
1715
1715
  lastName: z.ZodString;
1716
1716
  email: z.ZodString;
1717
1717
  }, "strip", z.ZodTypeAny, {
1718
- id: string;
1719
1718
  email: string;
1719
+ id: string;
1720
1720
  lastName: string;
1721
1721
  firstName: string;
1722
1722
  }, {
1723
- id: string;
1724
1723
  email: string;
1724
+ id: string;
1725
1725
  lastName: string;
1726
1726
  firstName: string;
1727
1727
  }>;
@@ -1729,81 +1729,81 @@ export declare const clientContactsContractRouter: {
1729
1729
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1730
1730
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1731
1731
  }, "strip", z.ZodTypeAny, {
1732
- id: string;
1733
1732
  name: string;
1734
- updatedAt: string;
1733
+ email: string | null;
1734
+ phone: string;
1735
1735
  createdAt: string;
1736
- clientId: string;
1736
+ updatedAt: string;
1737
+ createdBy: {
1738
+ email: string;
1739
+ id: string;
1740
+ lastName: string;
1741
+ firstName: string;
1742
+ };
1743
+ id: string;
1737
1744
  createdById: string;
1745
+ clientId: string;
1738
1746
  client: {
1739
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1740
- id: string;
1741
1747
  name: string;
1742
- updatedAt: string;
1743
1748
  createdAt: string;
1749
+ updatedAt: string;
1750
+ id: string;
1751
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1744
1752
  crn: string | null;
1745
1753
  govLink: string | null;
1746
- director: string;
1747
1754
  soleTrader: boolean;
1755
+ director: string;
1748
1756
  blacklistReason?: string | null | undefined;
1749
- agentClientLinks?: {
1750
- agentId: string;
1751
- } | null | undefined;
1752
1757
  lastUpdatedBy?: {
1753
- id: string;
1754
1758
  email: string;
1759
+ id: string;
1755
1760
  lastName: string;
1756
1761
  firstName: string;
1757
1762
  } | null | undefined;
1763
+ agentClientLinks?: {
1764
+ agentId: string;
1765
+ } | null | undefined;
1758
1766
  };
1759
- phone: string;
1767
+ source?: string | null | undefined;
1768
+ position?: string | null | undefined;
1769
+ }, {
1770
+ name: string;
1760
1771
  email: string | null;
1772
+ phone: string;
1773
+ createdAt: string | Date;
1774
+ updatedAt: string | Date;
1761
1775
  createdBy: {
1762
- id: string;
1763
1776
  email: string;
1777
+ id: string;
1764
1778
  lastName: string;
1765
1779
  firstName: string;
1766
1780
  };
1767
- position?: string | null | undefined;
1768
- source?: string | null | undefined;
1769
- }, {
1770
1781
  id: string;
1771
- name: string;
1772
- updatedAt: string | Date;
1773
- createdAt: string | Date;
1774
- clientId: string;
1775
1782
  createdById: string;
1783
+ clientId: string;
1776
1784
  client: {
1777
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1778
- id: string;
1779
1785
  name: string;
1780
- updatedAt: string | Date;
1781
1786
  createdAt: string | Date;
1787
+ updatedAt: string | Date;
1788
+ id: string;
1789
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1782
1790
  crn: string | null;
1783
1791
  govLink: string | null;
1784
- director: string;
1785
1792
  soleTrader: boolean;
1793
+ director: string;
1786
1794
  blacklistReason?: string | null | undefined;
1787
- agentClientLinks?: {
1788
- agentId: string;
1789
- } | null | undefined;
1790
1795
  lastUpdatedBy?: {
1791
- id: string;
1792
1796
  email: string;
1797
+ id: string;
1793
1798
  lastName: string;
1794
1799
  firstName: string;
1795
1800
  } | null | undefined;
1801
+ agentClientLinks?: {
1802
+ agentId: string;
1803
+ } | null | undefined;
1796
1804
  };
1797
- phone: string;
1798
- email: string | null;
1799
- createdBy: {
1800
- id: string;
1801
- email: string;
1802
- lastName: string;
1803
- firstName: string;
1804
- };
1805
- position?: string | null | undefined;
1806
1805
  source?: string | null | undefined;
1806
+ position?: string | null | undefined;
1807
1807
  }>, "many">;
1808
1808
  totalCount: z.ZodNumber;
1809
1809
  limit: z.ZodNumber;
@@ -1813,43 +1813,43 @@ export declare const clientContactsContractRouter: {
1813
1813
  }, "strip", z.ZodTypeAny, {
1814
1814
  limit: number;
1815
1815
  items: {
1816
- id: string;
1817
1816
  name: string;
1818
- updatedAt: string;
1817
+ email: string | null;
1818
+ phone: string;
1819
1819
  createdAt: string;
1820
- clientId: string;
1820
+ updatedAt: string;
1821
+ createdBy: {
1822
+ email: string;
1823
+ id: string;
1824
+ lastName: string;
1825
+ firstName: string;
1826
+ };
1827
+ id: string;
1821
1828
  createdById: string;
1829
+ clientId: string;
1822
1830
  client: {
1823
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1824
- id: string;
1825
1831
  name: string;
1826
- updatedAt: string;
1827
1832
  createdAt: string;
1833
+ updatedAt: string;
1834
+ id: string;
1835
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1828
1836
  crn: string | null;
1829
1837
  govLink: string | null;
1830
- director: string;
1831
1838
  soleTrader: boolean;
1839
+ director: string;
1832
1840
  blacklistReason?: string | null | undefined;
1833
- agentClientLinks?: {
1834
- agentId: string;
1835
- } | null | undefined;
1836
1841
  lastUpdatedBy?: {
1837
- id: string;
1838
1842
  email: string;
1843
+ id: string;
1839
1844
  lastName: string;
1840
1845
  firstName: string;
1841
1846
  } | null | undefined;
1847
+ agentClientLinks?: {
1848
+ agentId: string;
1849
+ } | null | undefined;
1842
1850
  };
1843
- phone: string;
1844
- email: string | null;
1845
- createdBy: {
1846
- id: string;
1847
- email: string;
1848
- lastName: string;
1849
- firstName: string;
1850
- };
1851
- position?: string | null | undefined;
1852
1851
  source?: string | null | undefined;
1852
+ position?: string | null | undefined;
1853
1853
  }[];
1854
1854
  totalCount: number;
1855
1855
  skip: number;
@@ -1858,43 +1858,43 @@ export declare const clientContactsContractRouter: {
1858
1858
  }, {
1859
1859
  limit: number;
1860
1860
  items: {
1861
- id: string;
1862
1861
  name: string;
1863
- updatedAt: string | Date;
1862
+ email: string | null;
1863
+ phone: string;
1864
1864
  createdAt: string | Date;
1865
- clientId: string;
1865
+ updatedAt: string | Date;
1866
+ createdBy: {
1867
+ email: string;
1868
+ id: string;
1869
+ lastName: string;
1870
+ firstName: string;
1871
+ };
1872
+ id: string;
1866
1873
  createdById: string;
1874
+ clientId: string;
1867
1875
  client: {
1868
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1869
- id: string;
1870
1876
  name: string;
1871
- updatedAt: string | Date;
1872
1877
  createdAt: string | Date;
1878
+ updatedAt: string | Date;
1879
+ id: string;
1880
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1873
1881
  crn: string | null;
1874
1882
  govLink: string | null;
1875
- director: string;
1876
1883
  soleTrader: boolean;
1884
+ director: string;
1877
1885
  blacklistReason?: string | null | undefined;
1878
- agentClientLinks?: {
1879
- agentId: string;
1880
- } | null | undefined;
1881
1886
  lastUpdatedBy?: {
1882
- id: string;
1883
1887
  email: string;
1888
+ id: string;
1884
1889
  lastName: string;
1885
1890
  firstName: string;
1886
1891
  } | null | undefined;
1892
+ agentClientLinks?: {
1893
+ agentId: string;
1894
+ } | null | undefined;
1887
1895
  };
1888
- phone: string;
1889
- email: string | null;
1890
- createdBy: {
1891
- id: string;
1892
- email: string;
1893
- lastName: string;
1894
- firstName: string;
1895
- };
1896
- position?: string | null | undefined;
1897
1896
  source?: string | null | undefined;
1897
+ position?: string | null | undefined;
1898
1898
  }[];
1899
1899
  totalCount: number;
1900
1900
  skip: number;
@@ -1918,7 +1918,7 @@ export declare const clientContactsContractRouter: {
1918
1918
  method: "GET";
1919
1919
  path: "/v2/client-contacts/:contactId";
1920
1920
  responses: {
1921
- 400: z.ZodObject<{
1921
+ 401: z.ZodObject<{
1922
1922
  statusCode: z.ZodNumber;
1923
1923
  message: z.ZodString;
1924
1924
  code: z.ZodString;
@@ -1927,23 +1927,23 @@ export declare const clientContactsContractRouter: {
1927
1927
  path: z.ZodString;
1928
1928
  correlationId: z.ZodOptional<z.ZodString>;
1929
1929
  }, "strip", z.ZodTypeAny, {
1930
- message: string;
1931
1930
  code: string;
1932
1931
  path: string;
1932
+ message: string;
1933
1933
  statusCode: number;
1934
1934
  timestamp: string;
1935
1935
  details?: unknown;
1936
1936
  correlationId?: string | undefined;
1937
1937
  }, {
1938
- message: string;
1939
1938
  code: string;
1940
1939
  path: string;
1940
+ message: string;
1941
1941
  statusCode: number;
1942
1942
  timestamp: string;
1943
1943
  details?: unknown;
1944
1944
  correlationId?: string | undefined;
1945
1945
  }>;
1946
- 401: z.ZodObject<{
1946
+ 400: z.ZodObject<{
1947
1947
  statusCode: z.ZodNumber;
1948
1948
  message: z.ZodString;
1949
1949
  code: z.ZodString;
@@ -1952,17 +1952,17 @@ export declare const clientContactsContractRouter: {
1952
1952
  path: z.ZodString;
1953
1953
  correlationId: z.ZodOptional<z.ZodString>;
1954
1954
  }, "strip", z.ZodTypeAny, {
1955
- message: string;
1956
1955
  code: string;
1957
1956
  path: string;
1957
+ message: string;
1958
1958
  statusCode: number;
1959
1959
  timestamp: string;
1960
1960
  details?: unknown;
1961
1961
  correlationId?: string | undefined;
1962
1962
  }, {
1963
- message: string;
1964
1963
  code: string;
1965
1964
  path: string;
1965
+ message: string;
1966
1966
  statusCode: number;
1967
1967
  timestamp: string;
1968
1968
  details?: unknown;
@@ -1977,17 +1977,17 @@ export declare const clientContactsContractRouter: {
1977
1977
  path: z.ZodString;
1978
1978
  correlationId: z.ZodOptional<z.ZodString>;
1979
1979
  }, "strip", z.ZodTypeAny, {
1980
- message: string;
1981
1980
  code: string;
1982
1981
  path: string;
1982
+ message: string;
1983
1983
  statusCode: number;
1984
1984
  timestamp: string;
1985
1985
  details?: unknown;
1986
1986
  correlationId?: string | undefined;
1987
1987
  }, {
1988
- message: string;
1989
1988
  code: string;
1990
1989
  path: string;
1990
+ message: string;
1991
1991
  statusCode: number;
1992
1992
  timestamp: string;
1993
1993
  details?: unknown;
@@ -2002,17 +2002,17 @@ export declare const clientContactsContractRouter: {
2002
2002
  path: z.ZodString;
2003
2003
  correlationId: z.ZodOptional<z.ZodString>;
2004
2004
  }, "strip", z.ZodTypeAny, {
2005
- message: string;
2006
2005
  code: string;
2007
2006
  path: string;
2007
+ message: string;
2008
2008
  statusCode: number;
2009
2009
  timestamp: string;
2010
2010
  details?: unknown;
2011
2011
  correlationId?: string | undefined;
2012
2012
  }, {
2013
- message: string;
2014
2013
  code: string;
2015
2014
  path: string;
2015
+ message: string;
2016
2016
  statusCode: number;
2017
2017
  timestamp: string;
2018
2018
  details?: unknown;
@@ -2036,13 +2036,13 @@ export declare const clientContactsContractRouter: {
2036
2036
  lastName: z.ZodString;
2037
2037
  email: z.ZodString;
2038
2038
  }, "strip", z.ZodTypeAny, {
2039
- id: string;
2040
2039
  email: string;
2040
+ id: string;
2041
2041
  lastName: string;
2042
2042
  firstName: string;
2043
2043
  }, {
2044
- id: string;
2045
2044
  email: string;
2045
+ id: string;
2046
2046
  lastName: string;
2047
2047
  firstName: string;
2048
2048
  }>>>;
@@ -2056,45 +2056,45 @@ export declare const clientContactsContractRouter: {
2056
2056
  agentId: string;
2057
2057
  }>>>;
2058
2058
  }, "strip", z.ZodTypeAny, {
2059
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2060
- id: string;
2061
2059
  name: string;
2062
- updatedAt: string;
2063
2060
  createdAt: string;
2061
+ updatedAt: string;
2062
+ id: string;
2063
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2064
2064
  crn: string | null;
2065
2065
  govLink: string | null;
2066
- director: string;
2067
2066
  soleTrader: boolean;
2067
+ director: string;
2068
2068
  blacklistReason?: string | null | undefined;
2069
- agentClientLinks?: {
2070
- agentId: string;
2071
- } | null | undefined;
2072
2069
  lastUpdatedBy?: {
2073
- id: string;
2074
2070
  email: string;
2071
+ id: string;
2075
2072
  lastName: string;
2076
2073
  firstName: string;
2077
2074
  } | null | undefined;
2075
+ agentClientLinks?: {
2076
+ agentId: string;
2077
+ } | null | undefined;
2078
2078
  }, {
2079
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2080
- id: string;
2081
2079
  name: string;
2082
- updatedAt: string | Date;
2083
2080
  createdAt: string | Date;
2081
+ updatedAt: string | Date;
2082
+ id: string;
2083
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2084
2084
  crn: string | null;
2085
2085
  govLink: string | null;
2086
- director: string;
2087
2086
  soleTrader: boolean;
2087
+ director: string;
2088
2088
  blacklistReason?: string | null | undefined;
2089
- agentClientLinks?: {
2090
- agentId: string;
2091
- } | null | undefined;
2092
2089
  lastUpdatedBy?: {
2093
- id: string;
2094
2090
  email: string;
2091
+ id: string;
2095
2092
  lastName: string;
2096
2093
  firstName: string;
2097
2094
  } | null | undefined;
2095
+ agentClientLinks?: {
2096
+ agentId: string;
2097
+ } | null | undefined;
2098
2098
  }>;
2099
2099
  name: z.ZodString;
2100
2100
  position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2107,13 +2107,13 @@ export declare const clientContactsContractRouter: {
2107
2107
  lastName: z.ZodString;
2108
2108
  email: z.ZodString;
2109
2109
  }, "strip", z.ZodTypeAny, {
2110
- id: string;
2111
2110
  email: string;
2111
+ id: string;
2112
2112
  lastName: string;
2113
2113
  firstName: string;
2114
2114
  }, {
2115
- id: string;
2116
2115
  email: string;
2116
+ id: string;
2117
2117
  lastName: string;
2118
2118
  firstName: string;
2119
2119
  }>;
@@ -2121,81 +2121,81 @@ export declare const clientContactsContractRouter: {
2121
2121
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2122
2122
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2123
2123
  }, "strip", z.ZodTypeAny, {
2124
- id: string;
2125
2124
  name: string;
2126
- updatedAt: string;
2125
+ email: string | null;
2126
+ phone: string;
2127
2127
  createdAt: string;
2128
- clientId: string;
2128
+ updatedAt: string;
2129
+ createdBy: {
2130
+ email: string;
2131
+ id: string;
2132
+ lastName: string;
2133
+ firstName: string;
2134
+ };
2135
+ id: string;
2129
2136
  createdById: string;
2137
+ clientId: string;
2130
2138
  client: {
2131
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2132
- id: string;
2133
2139
  name: string;
2134
- updatedAt: string;
2135
2140
  createdAt: string;
2141
+ updatedAt: string;
2142
+ id: string;
2143
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2136
2144
  crn: string | null;
2137
2145
  govLink: string | null;
2138
- director: string;
2139
2146
  soleTrader: boolean;
2147
+ director: string;
2140
2148
  blacklistReason?: string | null | undefined;
2141
- agentClientLinks?: {
2142
- agentId: string;
2143
- } | null | undefined;
2144
2149
  lastUpdatedBy?: {
2145
- id: string;
2146
2150
  email: string;
2151
+ id: string;
2147
2152
  lastName: string;
2148
2153
  firstName: string;
2149
2154
  } | null | undefined;
2155
+ agentClientLinks?: {
2156
+ agentId: string;
2157
+ } | null | undefined;
2150
2158
  };
2151
- phone: string;
2159
+ source?: string | null | undefined;
2160
+ position?: string | null | undefined;
2161
+ }, {
2162
+ name: string;
2152
2163
  email: string | null;
2164
+ phone: string;
2165
+ createdAt: string | Date;
2166
+ updatedAt: string | Date;
2153
2167
  createdBy: {
2154
- id: string;
2155
2168
  email: string;
2169
+ id: string;
2156
2170
  lastName: string;
2157
2171
  firstName: string;
2158
2172
  };
2159
- position?: string | null | undefined;
2160
- source?: string | null | undefined;
2161
- }, {
2162
2173
  id: string;
2163
- name: string;
2164
- updatedAt: string | Date;
2165
- createdAt: string | Date;
2166
- clientId: string;
2167
2174
  createdById: string;
2175
+ clientId: string;
2168
2176
  client: {
2169
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2170
- id: string;
2171
2177
  name: string;
2172
- updatedAt: string | Date;
2173
2178
  createdAt: string | Date;
2179
+ updatedAt: string | Date;
2180
+ id: string;
2181
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2174
2182
  crn: string | null;
2175
2183
  govLink: string | null;
2176
- director: string;
2177
2184
  soleTrader: boolean;
2185
+ director: string;
2178
2186
  blacklistReason?: string | null | undefined;
2179
- agentClientLinks?: {
2180
- agentId: string;
2181
- } | null | undefined;
2182
2187
  lastUpdatedBy?: {
2183
- id: string;
2184
2188
  email: string;
2189
+ id: string;
2185
2190
  lastName: string;
2186
2191
  firstName: string;
2187
2192
  } | null | undefined;
2193
+ agentClientLinks?: {
2194
+ agentId: string;
2195
+ } | null | undefined;
2188
2196
  };
2189
- phone: string;
2190
- email: string | null;
2191
- createdBy: {
2192
- id: string;
2193
- email: string;
2194
- lastName: string;
2195
- firstName: string;
2196
- };
2197
- position?: string | null | undefined;
2198
2197
  source?: string | null | undefined;
2198
+ position?: string | null | undefined;
2199
2199
  }>;
2200
2200
  404: z.ZodObject<{
2201
2201
  statusCode: z.ZodNumber;
@@ -2206,17 +2206,17 @@ export declare const clientContactsContractRouter: {
2206
2206
  path: z.ZodString;
2207
2207
  correlationId: z.ZodOptional<z.ZodString>;
2208
2208
  }, "strip", z.ZodTypeAny, {
2209
- message: string;
2210
2209
  code: string;
2211
2210
  path: string;
2211
+ message: string;
2212
2212
  statusCode: number;
2213
2213
  timestamp: string;
2214
2214
  details?: unknown;
2215
2215
  correlationId?: string | undefined;
2216
2216
  }, {
2217
- message: string;
2218
2217
  code: string;
2219
2218
  path: string;
2219
+ message: string;
2220
2220
  statusCode: number;
2221
2221
  timestamp: string;
2222
2222
  details?: unknown;
@@ -2252,20 +2252,20 @@ export declare const clientContactsContractRouter: {
2252
2252
  source: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2253
2253
  }, "client">, "strip", z.ZodTypeAny, {
2254
2254
  name?: string | undefined;
2255
- position?: string | undefined;
2256
- phone?: string | undefined;
2257
2255
  email?: string | undefined;
2256
+ phone?: string | undefined;
2258
2257
  source?: string | undefined;
2258
+ position?: string | undefined;
2259
2259
  }, {
2260
2260
  name?: string | undefined;
2261
- position?: string | undefined;
2262
- phone?: string | undefined;
2263
2261
  email?: string | undefined;
2262
+ phone?: string | undefined;
2264
2263
  source?: string | undefined;
2264
+ position?: string | undefined;
2265
2265
  }>;
2266
2266
  path: "/v2/client-contacts/:contactId";
2267
2267
  responses: {
2268
- 400: z.ZodObject<{
2268
+ 401: z.ZodObject<{
2269
2269
  statusCode: z.ZodNumber;
2270
2270
  message: z.ZodString;
2271
2271
  code: z.ZodString;
@@ -2274,23 +2274,23 @@ export declare const clientContactsContractRouter: {
2274
2274
  path: z.ZodString;
2275
2275
  correlationId: z.ZodOptional<z.ZodString>;
2276
2276
  }, "strip", z.ZodTypeAny, {
2277
- message: string;
2278
2277
  code: string;
2279
2278
  path: string;
2279
+ message: string;
2280
2280
  statusCode: number;
2281
2281
  timestamp: string;
2282
2282
  details?: unknown;
2283
2283
  correlationId?: string | undefined;
2284
2284
  }, {
2285
- message: string;
2286
2285
  code: string;
2287
2286
  path: string;
2287
+ message: string;
2288
2288
  statusCode: number;
2289
2289
  timestamp: string;
2290
2290
  details?: unknown;
2291
2291
  correlationId?: string | undefined;
2292
2292
  }>;
2293
- 401: z.ZodObject<{
2293
+ 400: z.ZodObject<{
2294
2294
  statusCode: z.ZodNumber;
2295
2295
  message: z.ZodString;
2296
2296
  code: z.ZodString;
@@ -2299,17 +2299,17 @@ export declare const clientContactsContractRouter: {
2299
2299
  path: z.ZodString;
2300
2300
  correlationId: z.ZodOptional<z.ZodString>;
2301
2301
  }, "strip", z.ZodTypeAny, {
2302
- message: string;
2303
2302
  code: string;
2304
2303
  path: string;
2304
+ message: string;
2305
2305
  statusCode: number;
2306
2306
  timestamp: string;
2307
2307
  details?: unknown;
2308
2308
  correlationId?: string | undefined;
2309
2309
  }, {
2310
- message: string;
2311
2310
  code: string;
2312
2311
  path: string;
2312
+ message: string;
2313
2313
  statusCode: number;
2314
2314
  timestamp: string;
2315
2315
  details?: unknown;
@@ -2324,17 +2324,17 @@ export declare const clientContactsContractRouter: {
2324
2324
  path: z.ZodString;
2325
2325
  correlationId: z.ZodOptional<z.ZodString>;
2326
2326
  }, "strip", z.ZodTypeAny, {
2327
- message: string;
2328
2327
  code: string;
2329
2328
  path: string;
2329
+ message: string;
2330
2330
  statusCode: number;
2331
2331
  timestamp: string;
2332
2332
  details?: unknown;
2333
2333
  correlationId?: string | undefined;
2334
2334
  }, {
2335
- message: string;
2336
2335
  code: string;
2337
2336
  path: string;
2337
+ message: string;
2338
2338
  statusCode: number;
2339
2339
  timestamp: string;
2340
2340
  details?: unknown;
@@ -2349,17 +2349,17 @@ export declare const clientContactsContractRouter: {
2349
2349
  path: z.ZodString;
2350
2350
  correlationId: z.ZodOptional<z.ZodString>;
2351
2351
  }, "strip", z.ZodTypeAny, {
2352
- message: string;
2353
2352
  code: string;
2354
2353
  path: string;
2354
+ message: string;
2355
2355
  statusCode: number;
2356
2356
  timestamp: string;
2357
2357
  details?: unknown;
2358
2358
  correlationId?: string | undefined;
2359
2359
  }, {
2360
- message: string;
2361
2360
  code: string;
2362
2361
  path: string;
2362
+ message: string;
2363
2363
  statusCode: number;
2364
2364
  timestamp: string;
2365
2365
  details?: unknown;
@@ -2383,13 +2383,13 @@ export declare const clientContactsContractRouter: {
2383
2383
  lastName: z.ZodString;
2384
2384
  email: z.ZodString;
2385
2385
  }, "strip", z.ZodTypeAny, {
2386
- id: string;
2387
2386
  email: string;
2387
+ id: string;
2388
2388
  lastName: string;
2389
2389
  firstName: string;
2390
2390
  }, {
2391
- id: string;
2392
2391
  email: string;
2392
+ id: string;
2393
2393
  lastName: string;
2394
2394
  firstName: string;
2395
2395
  }>>>;
@@ -2403,45 +2403,45 @@ export declare const clientContactsContractRouter: {
2403
2403
  agentId: string;
2404
2404
  }>>>;
2405
2405
  }, "strip", z.ZodTypeAny, {
2406
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2407
- id: string;
2408
2406
  name: string;
2409
- updatedAt: string;
2410
2407
  createdAt: string;
2408
+ updatedAt: string;
2409
+ id: string;
2410
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2411
2411
  crn: string | null;
2412
2412
  govLink: string | null;
2413
- director: string;
2414
2413
  soleTrader: boolean;
2414
+ director: string;
2415
2415
  blacklistReason?: string | null | undefined;
2416
- agentClientLinks?: {
2417
- agentId: string;
2418
- } | null | undefined;
2419
2416
  lastUpdatedBy?: {
2420
- id: string;
2421
2417
  email: string;
2418
+ id: string;
2422
2419
  lastName: string;
2423
2420
  firstName: string;
2424
2421
  } | null | undefined;
2422
+ agentClientLinks?: {
2423
+ agentId: string;
2424
+ } | null | undefined;
2425
2425
  }, {
2426
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2427
- id: string;
2428
2426
  name: string;
2429
- updatedAt: string | Date;
2430
2427
  createdAt: string | Date;
2428
+ updatedAt: string | Date;
2429
+ id: string;
2430
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2431
2431
  crn: string | null;
2432
2432
  govLink: string | null;
2433
- director: string;
2434
2433
  soleTrader: boolean;
2434
+ director: string;
2435
2435
  blacklistReason?: string | null | undefined;
2436
- agentClientLinks?: {
2437
- agentId: string;
2438
- } | null | undefined;
2439
2436
  lastUpdatedBy?: {
2440
- id: string;
2441
2437
  email: string;
2438
+ id: string;
2442
2439
  lastName: string;
2443
2440
  firstName: string;
2444
2441
  } | null | undefined;
2442
+ agentClientLinks?: {
2443
+ agentId: string;
2444
+ } | null | undefined;
2445
2445
  }>;
2446
2446
  name: z.ZodString;
2447
2447
  position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2454,13 +2454,13 @@ export declare const clientContactsContractRouter: {
2454
2454
  lastName: z.ZodString;
2455
2455
  email: z.ZodString;
2456
2456
  }, "strip", z.ZodTypeAny, {
2457
- id: string;
2458
2457
  email: string;
2458
+ id: string;
2459
2459
  lastName: string;
2460
2460
  firstName: string;
2461
2461
  }, {
2462
- id: string;
2463
2462
  email: string;
2463
+ id: string;
2464
2464
  lastName: string;
2465
2465
  firstName: string;
2466
2466
  }>;
@@ -2468,81 +2468,81 @@ export declare const clientContactsContractRouter: {
2468
2468
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2469
2469
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2470
2470
  }, "strip", z.ZodTypeAny, {
2471
- id: string;
2472
2471
  name: string;
2473
- updatedAt: string;
2472
+ email: string | null;
2473
+ phone: string;
2474
2474
  createdAt: string;
2475
- clientId: string;
2475
+ updatedAt: string;
2476
+ createdBy: {
2477
+ email: string;
2478
+ id: string;
2479
+ lastName: string;
2480
+ firstName: string;
2481
+ };
2482
+ id: string;
2476
2483
  createdById: string;
2484
+ clientId: string;
2477
2485
  client: {
2478
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2479
- id: string;
2480
2486
  name: string;
2481
- updatedAt: string;
2482
2487
  createdAt: string;
2488
+ updatedAt: string;
2489
+ id: string;
2490
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2483
2491
  crn: string | null;
2484
2492
  govLink: string | null;
2485
- director: string;
2486
2493
  soleTrader: boolean;
2494
+ director: string;
2487
2495
  blacklistReason?: string | null | undefined;
2488
- agentClientLinks?: {
2489
- agentId: string;
2490
- } | null | undefined;
2491
2496
  lastUpdatedBy?: {
2492
- id: string;
2493
2497
  email: string;
2498
+ id: string;
2494
2499
  lastName: string;
2495
2500
  firstName: string;
2496
2501
  } | null | undefined;
2502
+ agentClientLinks?: {
2503
+ agentId: string;
2504
+ } | null | undefined;
2497
2505
  };
2498
- phone: string;
2506
+ source?: string | null | undefined;
2507
+ position?: string | null | undefined;
2508
+ }, {
2509
+ name: string;
2499
2510
  email: string | null;
2511
+ phone: string;
2512
+ createdAt: string | Date;
2513
+ updatedAt: string | Date;
2500
2514
  createdBy: {
2501
- id: string;
2502
2515
  email: string;
2516
+ id: string;
2503
2517
  lastName: string;
2504
2518
  firstName: string;
2505
2519
  };
2506
- position?: string | null | undefined;
2507
- source?: string | null | undefined;
2508
- }, {
2509
2520
  id: string;
2510
- name: string;
2511
- updatedAt: string | Date;
2512
- createdAt: string | Date;
2513
- clientId: string;
2514
2521
  createdById: string;
2522
+ clientId: string;
2515
2523
  client: {
2516
- status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2517
- id: string;
2518
2524
  name: string;
2519
- updatedAt: string | Date;
2520
2525
  createdAt: string | Date;
2526
+ updatedAt: string | Date;
2527
+ id: string;
2528
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2521
2529
  crn: string | null;
2522
2530
  govLink: string | null;
2523
- director: string;
2524
2531
  soleTrader: boolean;
2532
+ director: string;
2525
2533
  blacklistReason?: string | null | undefined;
2526
- agentClientLinks?: {
2527
- agentId: string;
2528
- } | null | undefined;
2529
2534
  lastUpdatedBy?: {
2530
- id: string;
2531
2535
  email: string;
2536
+ id: string;
2532
2537
  lastName: string;
2533
2538
  firstName: string;
2534
2539
  } | null | undefined;
2540
+ agentClientLinks?: {
2541
+ agentId: string;
2542
+ } | null | undefined;
2535
2543
  };
2536
- phone: string;
2537
- email: string | null;
2538
- createdBy: {
2539
- id: string;
2540
- email: string;
2541
- lastName: string;
2542
- firstName: string;
2543
- };
2544
- position?: string | null | undefined;
2545
2544
  source?: string | null | undefined;
2545
+ position?: string | null | undefined;
2546
2546
  }>;
2547
2547
  404: z.ZodObject<{
2548
2548
  statusCode: z.ZodNumber;
@@ -2553,17 +2553,17 @@ export declare const clientContactsContractRouter: {
2553
2553
  path: z.ZodString;
2554
2554
  correlationId: z.ZodOptional<z.ZodString>;
2555
2555
  }, "strip", z.ZodTypeAny, {
2556
- message: string;
2557
2556
  code: string;
2558
2557
  path: string;
2558
+ message: string;
2559
2559
  statusCode: number;
2560
2560
  timestamp: string;
2561
2561
  details?: unknown;
2562
2562
  correlationId?: string | undefined;
2563
2563
  }, {
2564
- message: string;
2565
2564
  code: string;
2566
2565
  path: string;
2566
+ message: string;
2567
2567
  statusCode: number;
2568
2568
  timestamp: string;
2569
2569
  details?: unknown;
@@ -2578,17 +2578,17 @@ export declare const clientContactsContractRouter: {
2578
2578
  path: z.ZodString;
2579
2579
  correlationId: z.ZodOptional<z.ZodString>;
2580
2580
  }, "strip", z.ZodTypeAny, {
2581
- message: string;
2582
2581
  code: string;
2583
2582
  path: string;
2583
+ message: string;
2584
2584
  statusCode: number;
2585
2585
  timestamp: string;
2586
2586
  details?: unknown;
2587
2587
  correlationId?: string | undefined;
2588
2588
  }, {
2589
- message: string;
2590
2589
  code: string;
2591
2590
  path: string;
2591
+ message: string;
2592
2592
  statusCode: number;
2593
2593
  timestamp: string;
2594
2594
  details?: unknown;
@@ -2612,7 +2612,7 @@ export declare const clientContactsContractRouter: {
2612
2612
  body: typeof import("@ts-rest/core").ContractNoBody;
2613
2613
  path: "/v2/client-contacts/:contactId";
2614
2614
  responses: {
2615
- 400: z.ZodObject<{
2615
+ 401: z.ZodObject<{
2616
2616
  statusCode: z.ZodNumber;
2617
2617
  message: z.ZodString;
2618
2618
  code: z.ZodString;
@@ -2621,23 +2621,23 @@ export declare const clientContactsContractRouter: {
2621
2621
  path: z.ZodString;
2622
2622
  correlationId: z.ZodOptional<z.ZodString>;
2623
2623
  }, "strip", z.ZodTypeAny, {
2624
- message: string;
2625
2624
  code: string;
2626
2625
  path: string;
2626
+ message: string;
2627
2627
  statusCode: number;
2628
2628
  timestamp: string;
2629
2629
  details?: unknown;
2630
2630
  correlationId?: string | undefined;
2631
2631
  }, {
2632
- message: string;
2633
2632
  code: string;
2634
2633
  path: string;
2634
+ message: string;
2635
2635
  statusCode: number;
2636
2636
  timestamp: string;
2637
2637
  details?: unknown;
2638
2638
  correlationId?: string | undefined;
2639
2639
  }>;
2640
- 401: z.ZodObject<{
2640
+ 400: z.ZodObject<{
2641
2641
  statusCode: z.ZodNumber;
2642
2642
  message: z.ZodString;
2643
2643
  code: z.ZodString;
@@ -2646,17 +2646,17 @@ export declare const clientContactsContractRouter: {
2646
2646
  path: z.ZodString;
2647
2647
  correlationId: z.ZodOptional<z.ZodString>;
2648
2648
  }, "strip", z.ZodTypeAny, {
2649
- message: string;
2650
2649
  code: string;
2651
2650
  path: string;
2651
+ message: string;
2652
2652
  statusCode: number;
2653
2653
  timestamp: string;
2654
2654
  details?: unknown;
2655
2655
  correlationId?: string | undefined;
2656
2656
  }, {
2657
- message: string;
2658
2657
  code: string;
2659
2658
  path: string;
2659
+ message: string;
2660
2660
  statusCode: number;
2661
2661
  timestamp: string;
2662
2662
  details?: unknown;
@@ -2671,17 +2671,17 @@ export declare const clientContactsContractRouter: {
2671
2671
  path: z.ZodString;
2672
2672
  correlationId: z.ZodOptional<z.ZodString>;
2673
2673
  }, "strip", z.ZodTypeAny, {
2674
- message: string;
2675
2674
  code: string;
2676
2675
  path: string;
2676
+ message: string;
2677
2677
  statusCode: number;
2678
2678
  timestamp: string;
2679
2679
  details?: unknown;
2680
2680
  correlationId?: string | undefined;
2681
2681
  }, {
2682
- message: string;
2683
2682
  code: string;
2684
2683
  path: string;
2684
+ message: string;
2685
2685
  statusCode: number;
2686
2686
  timestamp: string;
2687
2687
  details?: unknown;
@@ -2696,17 +2696,17 @@ export declare const clientContactsContractRouter: {
2696
2696
  path: z.ZodString;
2697
2697
  correlationId: z.ZodOptional<z.ZodString>;
2698
2698
  }, "strip", z.ZodTypeAny, {
2699
- message: string;
2700
2699
  code: string;
2701
2700
  path: string;
2701
+ message: string;
2702
2702
  statusCode: number;
2703
2703
  timestamp: string;
2704
2704
  details?: unknown;
2705
2705
  correlationId?: string | undefined;
2706
2706
  }, {
2707
- message: string;
2708
2707
  code: string;
2709
2708
  path: string;
2709
+ message: string;
2710
2710
  statusCode: number;
2711
2711
  timestamp: string;
2712
2712
  details?: unknown;
@@ -2722,17 +2722,17 @@ export declare const clientContactsContractRouter: {
2722
2722
  path: z.ZodString;
2723
2723
  correlationId: z.ZodOptional<z.ZodString>;
2724
2724
  }, "strip", z.ZodTypeAny, {
2725
- message: string;
2726
2725
  code: string;
2727
2726
  path: string;
2727
+ message: string;
2728
2728
  statusCode: number;
2729
2729
  timestamp: string;
2730
2730
  details?: unknown;
2731
2731
  correlationId?: string | undefined;
2732
2732
  }, {
2733
- message: string;
2734
2733
  code: string;
2735
2734
  path: string;
2735
+ message: string;
2736
2736
  statusCode: number;
2737
2737
  timestamp: string;
2738
2738
  details?: unknown;