@dakkitor/api-contracts 1.1.26 → 1.1.28

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 (54) hide show
  1. package/dist/actives/actives.contract.d.ts +4899 -597
  2. package/dist/actives/actives.contract.d.ts.map +1 -1
  3. package/dist/actives/actives.contract.js +0 -1
  4. package/dist/agent-client-links/agent-client-links.contract.d.ts +487 -487
  5. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
  6. package/dist/agent-client-links/agent-client-links.contract.js +2 -0
  7. package/dist/auth/auth.contract.d.ts +4 -4
  8. package/dist/bookings/bookings.contract.d.ts +5657 -1430
  9. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  10. package/dist/bookings/bookings.contract.js +6 -6
  11. package/dist/call-history/call-history.contract.d.ts +1188 -262
  12. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  13. package/dist/call-history/call-history.contract.js +3 -4
  14. package/dist/client-contacts/client-contacts.contract.d.ts +515 -515
  15. package/dist/clients/clients.contract.d.ts +380 -380
  16. package/dist/clients/clients.contract.d.ts.map +1 -1
  17. package/dist/clients/clients.contract.js +8 -2
  18. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3349 -1023
  19. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
  20. package/dist/collaboration-checkings/collaboration-checkings.contract.js +3 -10
  21. package/dist/collaborations/collaborations.contract.d.ts +2934 -219
  22. package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
  23. package/dist/collaborations/collaborations.contract.js +19 -33
  24. package/dist/common/common-schemas.d.ts +6 -6
  25. package/dist/common/common-schemas.d.ts.map +1 -1
  26. package/dist/common/common-schemas.js +3 -5
  27. package/dist/common/error-schemas.d.ts +6 -6
  28. package/dist/companies/companies.contract.d.ts +212 -212
  29. package/dist/cron-executions/cron-executions.contract.d.ts +228 -228
  30. package/dist/curated-workers/curated-workers.contract.d.ts +366 -366
  31. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  32. package/dist/curated-workers/curated-workers.contract.js +4 -10
  33. package/dist/dashboards/agent-daily-metrics.contract.d.ts +120 -120
  34. package/dist/files/files.contract.d.ts +228 -228
  35. package/dist/health/health.contract.d.ts +22 -22
  36. package/dist/jobs/jobs.contract.d.ts +3517 -511
  37. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  38. package/dist/jobs/jobs.contract.js +36 -17
  39. package/dist/lead-assignments/lead-assignments.contract.d.ts +272 -272
  40. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +63 -63
  41. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +146 -146
  42. package/dist/leads/leads.contract.d.ts +316 -316
  43. package/dist/locations/locations.contract.d.ts +161 -161
  44. package/dist/postcodes/postcodes.contract.d.ts +66 -66
  45. package/dist/qualifications/qualifications.contract.d.ts +256 -256
  46. package/dist/trades/trades.contract.d.ts +160 -160
  47. package/dist/users/users.contract.d.ts +100 -100
  48. package/dist/workers/workers.contract.d.ts +129 -75
  49. package/dist/workers/workers.contract.d.ts.map +1 -1
  50. package/dist/workers/workers.contract.js +20 -13
  51. package/package.json +1 -1
  52. package/dist/common/api-responses.d.ts +0 -105
  53. package/dist/common/api-responses.d.ts.map +0 -1
  54. package/dist/common/api-responses.js +0 -107
@@ -14,27 +14,95 @@ export type CollaborationSortableFields = z.infer<typeof CollaborationSortableFi
14
14
  */
15
15
  export declare const CollaborationSchema: z.ZodObject<{
16
16
  id: z.ZodString;
17
- company: z.ZodOptional<z.ZodObject<{
17
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
18
  id: z.ZodString;
19
19
  name: z.ZodString;
20
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
21
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
20
22
  }, "strip", z.ZodTypeAny, {
21
23
  id: string;
24
+ createdAt: string;
25
+ updatedAt: string;
22
26
  name: string;
23
27
  }, {
24
28
  id: string;
29
+ createdAt: string | Date;
30
+ updatedAt: string | Date;
25
31
  name: string;
26
- }>>;
27
- client: z.ZodOptional<z.ZodObject<{
32
+ }>>>;
33
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
34
  id: z.ZodString;
29
35
  name: z.ZodString;
36
+ crn: z.ZodString;
37
+ govLink: z.ZodString;
38
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
39
+ director: z.ZodString;
40
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
+ id: z.ZodString;
43
+ firstName: z.ZodString;
44
+ lastName: z.ZodString;
45
+ email: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ id: string;
48
+ firstName: string;
49
+ lastName: string;
50
+ email: string;
51
+ }, {
52
+ id: string;
53
+ firstName: string;
54
+ lastName: string;
55
+ email: string;
56
+ }>>>;
57
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
58
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
59
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
60
+ agentId: z.ZodString;
61
+ }, "strip", z.ZodTypeAny, {
62
+ agentId: string;
63
+ }, {
64
+ agentId: string;
65
+ }>>>;
30
66
  }, "strip", z.ZodTypeAny, {
67
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
31
68
  id: string;
69
+ createdAt: string;
70
+ updatedAt: string;
32
71
  name: string;
72
+ crn: string;
73
+ govLink: string;
74
+ director: string;
75
+ blacklistReason?: string | null | undefined;
76
+ lastUpdatedBy?: {
77
+ id: string;
78
+ firstName: string;
79
+ lastName: string;
80
+ email: string;
81
+ } | null | undefined;
82
+ agentClientLinks?: {
83
+ agentId: string;
84
+ } | null | undefined;
33
85
  }, {
86
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
34
87
  id: string;
88
+ createdAt: string | Date;
89
+ updatedAt: string | Date;
35
90
  name: string;
36
- }>>;
37
- user: z.ZodOptional<z.ZodObject<{
91
+ crn: string;
92
+ govLink: string;
93
+ director: string;
94
+ blacklistReason?: string | null | undefined;
95
+ lastUpdatedBy?: {
96
+ id: string;
97
+ firstName: string;
98
+ lastName: string;
99
+ email: string;
100
+ } | null | undefined;
101
+ agentClientLinks?: {
102
+ agentId: string;
103
+ } | null | undefined;
104
+ }>>>;
105
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
38
106
  id: z.ZodString;
39
107
  firstName: z.ZodString;
40
108
  lastName: z.ZodString;
@@ -49,63 +117,352 @@ export declare const CollaborationSchema: z.ZodObject<{
49
117
  firstName: string;
50
118
  lastName: string;
51
119
  email: string;
52
- }>>;
120
+ }>>>;
53
121
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
54
122
  userId: z.ZodString;
55
123
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
56
124
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
125
+ } & {
57
126
  newCollaboration: z.ZodNullable<z.ZodOptional<z.ZodObject<{
58
127
  id: z.ZodString;
128
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
129
+ id: z.ZodString;
130
+ name: z.ZodString;
131
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
132
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ id: string;
135
+ createdAt: string;
136
+ updatedAt: string;
137
+ name: string;
138
+ }, {
139
+ id: string;
140
+ createdAt: string | Date;
141
+ updatedAt: string | Date;
142
+ name: string;
143
+ }>>>;
144
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
145
+ id: z.ZodString;
146
+ name: z.ZodString;
147
+ crn: z.ZodString;
148
+ govLink: z.ZodString;
149
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
150
+ director: z.ZodString;
151
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
153
+ id: z.ZodString;
154
+ firstName: z.ZodString;
155
+ lastName: z.ZodString;
156
+ email: z.ZodString;
157
+ }, "strip", z.ZodTypeAny, {
158
+ id: string;
159
+ firstName: string;
160
+ lastName: string;
161
+ email: string;
162
+ }, {
163
+ id: string;
164
+ firstName: string;
165
+ lastName: string;
166
+ email: string;
167
+ }>>>;
168
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
169
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
170
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
171
+ agentId: z.ZodString;
172
+ }, "strip", z.ZodTypeAny, {
173
+ agentId: string;
174
+ }, {
175
+ agentId: string;
176
+ }>>>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
179
+ id: string;
180
+ createdAt: string;
181
+ updatedAt: string;
182
+ name: string;
183
+ crn: string;
184
+ govLink: string;
185
+ director: string;
186
+ blacklistReason?: string | null | undefined;
187
+ lastUpdatedBy?: {
188
+ id: string;
189
+ firstName: string;
190
+ lastName: string;
191
+ email: string;
192
+ } | null | undefined;
193
+ agentClientLinks?: {
194
+ agentId: string;
195
+ } | null | undefined;
196
+ }, {
197
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
198
+ id: string;
199
+ createdAt: string | Date;
200
+ updatedAt: string | Date;
201
+ name: string;
202
+ crn: string;
203
+ govLink: string;
204
+ director: string;
205
+ blacklistReason?: string | null | undefined;
206
+ lastUpdatedBy?: {
207
+ id: string;
208
+ firstName: string;
209
+ lastName: string;
210
+ email: string;
211
+ } | null | undefined;
212
+ agentClientLinks?: {
213
+ agentId: string;
214
+ } | null | undefined;
215
+ }>>>;
216
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
217
+ id: z.ZodString;
218
+ firstName: z.ZodString;
219
+ lastName: z.ZodString;
220
+ email: z.ZodString;
221
+ }, "strip", z.ZodTypeAny, {
222
+ id: string;
223
+ firstName: string;
224
+ lastName: string;
225
+ email: string;
226
+ }, {
227
+ id: string;
228
+ firstName: string;
229
+ lastName: string;
230
+ email: string;
231
+ }>>>;
232
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
233
+ userId: z.ZodString;
234
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
235
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
59
236
  }, "strip", z.ZodTypeAny, {
237
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
60
238
  id: string;
239
+ createdAt: string;
240
+ updatedAt: string;
241
+ userId: string;
242
+ company?: {
243
+ id: string;
244
+ createdAt: string;
245
+ updatedAt: string;
246
+ name: string;
247
+ } | null | undefined;
248
+ client?: {
249
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
250
+ id: string;
251
+ createdAt: string;
252
+ updatedAt: string;
253
+ name: string;
254
+ crn: string;
255
+ govLink: string;
256
+ director: string;
257
+ blacklistReason?: string | null | undefined;
258
+ lastUpdatedBy?: {
259
+ id: string;
260
+ firstName: string;
261
+ lastName: string;
262
+ email: string;
263
+ } | null | undefined;
264
+ agentClientLinks?: {
265
+ agentId: string;
266
+ } | null | undefined;
267
+ } | null | undefined;
268
+ user?: {
269
+ id: string;
270
+ firstName: string;
271
+ lastName: string;
272
+ email: string;
273
+ } | null | undefined;
61
274
  }, {
275
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
62
276
  id: string;
277
+ createdAt: string | Date;
278
+ updatedAt: string | Date;
279
+ userId: string;
280
+ company?: {
281
+ id: string;
282
+ createdAt: string | Date;
283
+ updatedAt: string | Date;
284
+ name: string;
285
+ } | null | undefined;
286
+ client?: {
287
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
288
+ id: string;
289
+ createdAt: string | Date;
290
+ updatedAt: string | Date;
291
+ name: string;
292
+ crn: string;
293
+ govLink: string;
294
+ director: string;
295
+ blacklistReason?: string | null | undefined;
296
+ lastUpdatedBy?: {
297
+ id: string;
298
+ firstName: string;
299
+ lastName: string;
300
+ email: string;
301
+ } | null | undefined;
302
+ agentClientLinks?: {
303
+ agentId: string;
304
+ } | null | undefined;
305
+ } | null | undefined;
306
+ user?: {
307
+ id: string;
308
+ firstName: string;
309
+ lastName: string;
310
+ email: string;
311
+ } | null | undefined;
63
312
  }>>>;
64
313
  }, "strip", z.ZodTypeAny, {
314
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
315
+ id: string;
65
316
  createdAt: string;
66
317
  updatedAt: string;
67
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
68
- id: string;
69
318
  userId: string;
70
319
  company?: {
71
320
  id: string;
321
+ createdAt: string;
322
+ updatedAt: string;
72
323
  name: string;
73
- } | undefined;
324
+ } | null | undefined;
74
325
  client?: {
326
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
75
327
  id: string;
328
+ createdAt: string;
329
+ updatedAt: string;
76
330
  name: string;
77
- } | undefined;
331
+ crn: string;
332
+ govLink: string;
333
+ director: string;
334
+ blacklistReason?: string | null | undefined;
335
+ lastUpdatedBy?: {
336
+ id: string;
337
+ firstName: string;
338
+ lastName: string;
339
+ email: string;
340
+ } | null | undefined;
341
+ agentClientLinks?: {
342
+ agentId: string;
343
+ } | null | undefined;
344
+ } | null | undefined;
78
345
  user?: {
79
346
  id: string;
80
347
  firstName: string;
81
348
  lastName: string;
82
349
  email: string;
83
- } | undefined;
350
+ } | null | undefined;
84
351
  newCollaboration?: {
352
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
85
353
  id: string;
354
+ createdAt: string;
355
+ updatedAt: string;
356
+ userId: string;
357
+ company?: {
358
+ id: string;
359
+ createdAt: string;
360
+ updatedAt: string;
361
+ name: string;
362
+ } | null | undefined;
363
+ client?: {
364
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
365
+ id: string;
366
+ createdAt: string;
367
+ updatedAt: string;
368
+ name: string;
369
+ crn: string;
370
+ govLink: string;
371
+ director: string;
372
+ blacklistReason?: string | null | undefined;
373
+ lastUpdatedBy?: {
374
+ id: string;
375
+ firstName: string;
376
+ lastName: string;
377
+ email: string;
378
+ } | null | undefined;
379
+ agentClientLinks?: {
380
+ agentId: string;
381
+ } | null | undefined;
382
+ } | null | undefined;
383
+ user?: {
384
+ id: string;
385
+ firstName: string;
386
+ lastName: string;
387
+ email: string;
388
+ } | null | undefined;
86
389
  } | null | undefined;
87
390
  }, {
391
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
392
+ id: string;
88
393
  createdAt: string | Date;
89
394
  updatedAt: string | Date;
90
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
91
- id: string;
92
395
  userId: string;
93
396
  company?: {
94
397
  id: string;
398
+ createdAt: string | Date;
399
+ updatedAt: string | Date;
95
400
  name: string;
96
- } | undefined;
401
+ } | null | undefined;
97
402
  client?: {
403
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
98
404
  id: string;
405
+ createdAt: string | Date;
406
+ updatedAt: string | Date;
99
407
  name: string;
100
- } | undefined;
408
+ crn: string;
409
+ govLink: string;
410
+ director: string;
411
+ blacklistReason?: string | null | undefined;
412
+ lastUpdatedBy?: {
413
+ id: string;
414
+ firstName: string;
415
+ lastName: string;
416
+ email: string;
417
+ } | null | undefined;
418
+ agentClientLinks?: {
419
+ agentId: string;
420
+ } | null | undefined;
421
+ } | null | undefined;
101
422
  user?: {
102
423
  id: string;
103
424
  firstName: string;
104
425
  lastName: string;
105
426
  email: string;
106
- } | undefined;
427
+ } | null | undefined;
107
428
  newCollaboration?: {
429
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
108
430
  id: string;
431
+ createdAt: string | Date;
432
+ updatedAt: string | Date;
433
+ userId: string;
434
+ company?: {
435
+ id: string;
436
+ createdAt: string | Date;
437
+ updatedAt: string | Date;
438
+ name: string;
439
+ } | null | undefined;
440
+ client?: {
441
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
442
+ id: string;
443
+ createdAt: string | Date;
444
+ updatedAt: string | Date;
445
+ name: string;
446
+ crn: string;
447
+ govLink: string;
448
+ director: string;
449
+ blacklistReason?: string | null | undefined;
450
+ lastUpdatedBy?: {
451
+ id: string;
452
+ firstName: string;
453
+ lastName: string;
454
+ email: string;
455
+ } | null | undefined;
456
+ agentClientLinks?: {
457
+ agentId: string;
458
+ } | null | undefined;
459
+ } | null | undefined;
460
+ user?: {
461
+ id: string;
462
+ firstName: string;
463
+ lastName: string;
464
+ email: string;
465
+ } | null | undefined;
109
466
  } | null | undefined;
110
467
  }>;
111
468
  /**
@@ -141,7 +498,7 @@ export declare const CreateCollaborationSchema: z.ZodObject<{
141
498
  client: {
142
499
  id: string;
143
500
  };
144
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
501
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
145
502
  user?: {
146
503
  id: string;
147
504
  } | undefined;
@@ -152,7 +509,7 @@ export declare const CreateCollaborationSchema: z.ZodObject<{
152
509
  client: {
153
510
  id: string;
154
511
  };
155
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
512
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
156
513
  user?: {
157
514
  id: string;
158
515
  } | undefined;
@@ -163,9 +520,9 @@ export declare const CreateCollaborationSchema: z.ZodObject<{
163
520
  export declare const UpdateCollaborationSchema: z.ZodObject<{
164
521
  status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>>;
165
522
  }, "strip", z.ZodTypeAny, {
166
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
523
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
167
524
  }, {
168
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
525
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
169
526
  }>;
170
527
  /**
171
528
  * Upsert Collaboration Schema
@@ -200,7 +557,7 @@ export declare const UpsertCollaborationSchema: z.ZodObject<{
200
557
  client: {
201
558
  id: string;
202
559
  };
203
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
560
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
204
561
  user?: {
205
562
  id: string;
206
563
  } | undefined;
@@ -211,7 +568,7 @@ export declare const UpsertCollaborationSchema: z.ZodObject<{
211
568
  client: {
212
569
  id: string;
213
570
  };
214
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
571
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
215
572
  user?: {
216
573
  id: string;
217
574
  } | undefined;
@@ -232,21 +589,21 @@ export declare const FilterCollaborationSchema: z.ZodObject<{
232
589
  }, "strip", z.ZodTypeAny, {
233
590
  limit: number;
234
591
  page: number;
235
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | null | undefined;
592
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | null | undefined;
593
+ sortBy?: "status" | "createdAt" | "updatedAt" | null | undefined;
594
+ sortOrder?: "ASC" | "DESC" | null | undefined;
236
595
  userId?: string | null | undefined;
237
596
  companyId?: string | null | undefined;
238
597
  clientId?: string | null | undefined;
239
- sortBy?: "createdAt" | "updatedAt" | "status" | null | undefined;
240
- sortOrder?: "ASC" | "DESC" | null | undefined;
241
598
  }, {
242
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | null | undefined;
243
- userId?: string | null | undefined;
599
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | null | undefined;
244
600
  limit?: number | undefined;
245
601
  page?: number | undefined;
602
+ sortBy?: "status" | "createdAt" | "updatedAt" | null | undefined;
603
+ sortOrder?: "ASC" | "DESC" | null | undefined;
604
+ userId?: string | null | undefined;
246
605
  companyId?: string | null | undefined;
247
606
  clientId?: string | null | undefined;
248
- sortBy?: "createdAt" | "updatedAt" | "status" | null | undefined;
249
- sortOrder?: "ASC" | "DESC" | null | undefined;
250
607
  }>;
251
608
  /**
252
609
  * Collaboration Autocomplete Response Schema
@@ -356,27 +713,95 @@ export declare const CollaborationAutocompleteArraySchema: z.ZodArray<z.ZodObjec
356
713
  export declare const PaginatedCollaborationResponseSchema: z.ZodObject<{
357
714
  items: z.ZodArray<z.ZodObject<{
358
715
  id: z.ZodString;
359
- company: z.ZodOptional<z.ZodObject<{
716
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
360
717
  id: z.ZodString;
361
718
  name: z.ZodString;
719
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
720
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
362
721
  }, "strip", z.ZodTypeAny, {
363
722
  id: string;
723
+ createdAt: string;
724
+ updatedAt: string;
364
725
  name: string;
365
726
  }, {
366
727
  id: string;
728
+ createdAt: string | Date;
729
+ updatedAt: string | Date;
367
730
  name: string;
368
- }>>;
369
- client: z.ZodOptional<z.ZodObject<{
731
+ }>>>;
732
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
370
733
  id: z.ZodString;
371
734
  name: z.ZodString;
735
+ crn: z.ZodString;
736
+ govLink: z.ZodString;
737
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
738
+ director: z.ZodString;
739
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
740
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
741
+ id: z.ZodString;
742
+ firstName: z.ZodString;
743
+ lastName: z.ZodString;
744
+ email: z.ZodString;
745
+ }, "strip", z.ZodTypeAny, {
746
+ id: string;
747
+ firstName: string;
748
+ lastName: string;
749
+ email: string;
750
+ }, {
751
+ id: string;
752
+ firstName: string;
753
+ lastName: string;
754
+ email: string;
755
+ }>>>;
756
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
757
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
758
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
759
+ agentId: z.ZodString;
760
+ }, "strip", z.ZodTypeAny, {
761
+ agentId: string;
762
+ }, {
763
+ agentId: string;
764
+ }>>>;
372
765
  }, "strip", z.ZodTypeAny, {
766
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
373
767
  id: string;
768
+ createdAt: string;
769
+ updatedAt: string;
374
770
  name: string;
771
+ crn: string;
772
+ govLink: string;
773
+ director: string;
774
+ blacklistReason?: string | null | undefined;
775
+ lastUpdatedBy?: {
776
+ id: string;
777
+ firstName: string;
778
+ lastName: string;
779
+ email: string;
780
+ } | null | undefined;
781
+ agentClientLinks?: {
782
+ agentId: string;
783
+ } | null | undefined;
375
784
  }, {
785
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
376
786
  id: string;
787
+ createdAt: string | Date;
788
+ updatedAt: string | Date;
377
789
  name: string;
378
- }>>;
379
- user: z.ZodOptional<z.ZodObject<{
790
+ crn: string;
791
+ govLink: string;
792
+ director: string;
793
+ blacklistReason?: string | null | undefined;
794
+ lastUpdatedBy?: {
795
+ id: string;
796
+ firstName: string;
797
+ lastName: string;
798
+ email: string;
799
+ } | null | undefined;
800
+ agentClientLinks?: {
801
+ agentId: string;
802
+ } | null | undefined;
803
+ }>>>;
804
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
380
805
  id: z.ZodString;
381
806
  firstName: z.ZodString;
382
807
  lastName: z.ZodString;
@@ -391,63 +816,352 @@ export declare const PaginatedCollaborationResponseSchema: z.ZodObject<{
391
816
  firstName: string;
392
817
  lastName: string;
393
818
  email: string;
394
- }>>;
819
+ }>>>;
395
820
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
396
821
  userId: z.ZodString;
397
822
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
398
823
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
824
+ } & {
399
825
  newCollaboration: z.ZodNullable<z.ZodOptional<z.ZodObject<{
400
826
  id: z.ZodString;
401
- }, "strip", z.ZodTypeAny, {
402
- id: string;
403
- }, {
404
- id: string;
405
- }>>>;
406
- }, "strip", z.ZodTypeAny, {
407
- createdAt: string;
408
- updatedAt: string;
409
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
410
- id: string;
411
- userId: string;
412
- company?: {
413
- id: string;
414
- name: string;
415
- } | undefined;
416
- client?: {
417
- id: string;
418
- name: string;
419
- } | undefined;
420
- user?: {
421
- id: string;
422
- firstName: string;
423
- lastName: string;
424
- email: string;
425
- } | undefined;
426
- newCollaboration?: {
427
- id: string;
428
- } | null | undefined;
429
- }, {
430
- createdAt: string | Date;
431
- updatedAt: string | Date;
432
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
433
- id: string;
434
- userId: string;
435
- company?: {
436
- id: string;
437
- name: string;
438
- } | undefined;
439
- client?: {
440
- id: string;
827
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
828
+ id: z.ZodString;
829
+ name: z.ZodString;
830
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
831
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
832
+ }, "strip", z.ZodTypeAny, {
833
+ id: string;
834
+ createdAt: string;
835
+ updatedAt: string;
836
+ name: string;
837
+ }, {
838
+ id: string;
839
+ createdAt: string | Date;
840
+ updatedAt: string | Date;
841
+ name: string;
842
+ }>>>;
843
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
844
+ id: z.ZodString;
845
+ name: z.ZodString;
846
+ crn: z.ZodString;
847
+ govLink: z.ZodString;
848
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
849
+ director: z.ZodString;
850
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
851
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
852
+ id: z.ZodString;
853
+ firstName: z.ZodString;
854
+ lastName: z.ZodString;
855
+ email: z.ZodString;
856
+ }, "strip", z.ZodTypeAny, {
857
+ id: string;
858
+ firstName: string;
859
+ lastName: string;
860
+ email: string;
861
+ }, {
862
+ id: string;
863
+ firstName: string;
864
+ lastName: string;
865
+ email: string;
866
+ }>>>;
867
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
868
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
869
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
870
+ agentId: z.ZodString;
871
+ }, "strip", z.ZodTypeAny, {
872
+ agentId: string;
873
+ }, {
874
+ agentId: string;
875
+ }>>>;
876
+ }, "strip", z.ZodTypeAny, {
877
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
878
+ id: string;
879
+ createdAt: string;
880
+ updatedAt: string;
881
+ name: string;
882
+ crn: string;
883
+ govLink: string;
884
+ director: string;
885
+ blacklistReason?: string | null | undefined;
886
+ lastUpdatedBy?: {
887
+ id: string;
888
+ firstName: string;
889
+ lastName: string;
890
+ email: string;
891
+ } | null | undefined;
892
+ agentClientLinks?: {
893
+ agentId: string;
894
+ } | null | undefined;
895
+ }, {
896
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
897
+ id: string;
898
+ createdAt: string | Date;
899
+ updatedAt: string | Date;
900
+ name: string;
901
+ crn: string;
902
+ govLink: string;
903
+ director: string;
904
+ blacklistReason?: string | null | undefined;
905
+ lastUpdatedBy?: {
906
+ id: string;
907
+ firstName: string;
908
+ lastName: string;
909
+ email: string;
910
+ } | null | undefined;
911
+ agentClientLinks?: {
912
+ agentId: string;
913
+ } | null | undefined;
914
+ }>>>;
915
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
916
+ id: z.ZodString;
917
+ firstName: z.ZodString;
918
+ lastName: z.ZodString;
919
+ email: z.ZodString;
920
+ }, "strip", z.ZodTypeAny, {
921
+ id: string;
922
+ firstName: string;
923
+ lastName: string;
924
+ email: string;
925
+ }, {
926
+ id: string;
927
+ firstName: string;
928
+ lastName: string;
929
+ email: string;
930
+ }>>>;
931
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
932
+ userId: z.ZodString;
933
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
934
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
935
+ }, "strip", z.ZodTypeAny, {
936
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
937
+ id: string;
938
+ createdAt: string;
939
+ updatedAt: string;
940
+ userId: string;
941
+ company?: {
942
+ id: string;
943
+ createdAt: string;
944
+ updatedAt: string;
945
+ name: string;
946
+ } | null | undefined;
947
+ client?: {
948
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
949
+ id: string;
950
+ createdAt: string;
951
+ updatedAt: string;
952
+ name: string;
953
+ crn: string;
954
+ govLink: string;
955
+ director: string;
956
+ blacklistReason?: string | null | undefined;
957
+ lastUpdatedBy?: {
958
+ id: string;
959
+ firstName: string;
960
+ lastName: string;
961
+ email: string;
962
+ } | null | undefined;
963
+ agentClientLinks?: {
964
+ agentId: string;
965
+ } | null | undefined;
966
+ } | null | undefined;
967
+ user?: {
968
+ id: string;
969
+ firstName: string;
970
+ lastName: string;
971
+ email: string;
972
+ } | null | undefined;
973
+ }, {
974
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
975
+ id: string;
976
+ createdAt: string | Date;
977
+ updatedAt: string | Date;
978
+ userId: string;
979
+ company?: {
980
+ id: string;
981
+ createdAt: string | Date;
982
+ updatedAt: string | Date;
983
+ name: string;
984
+ } | null | undefined;
985
+ client?: {
986
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
987
+ id: string;
988
+ createdAt: string | Date;
989
+ updatedAt: string | Date;
990
+ name: string;
991
+ crn: string;
992
+ govLink: string;
993
+ director: string;
994
+ blacklistReason?: string | null | undefined;
995
+ lastUpdatedBy?: {
996
+ id: string;
997
+ firstName: string;
998
+ lastName: string;
999
+ email: string;
1000
+ } | null | undefined;
1001
+ agentClientLinks?: {
1002
+ agentId: string;
1003
+ } | null | undefined;
1004
+ } | null | undefined;
1005
+ user?: {
1006
+ id: string;
1007
+ firstName: string;
1008
+ lastName: string;
1009
+ email: string;
1010
+ } | null | undefined;
1011
+ }>>>;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1014
+ id: string;
1015
+ createdAt: string;
1016
+ updatedAt: string;
1017
+ userId: string;
1018
+ company?: {
1019
+ id: string;
1020
+ createdAt: string;
1021
+ updatedAt: string;
1022
+ name: string;
1023
+ } | null | undefined;
1024
+ client?: {
1025
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1026
+ id: string;
1027
+ createdAt: string;
1028
+ updatedAt: string;
1029
+ name: string;
1030
+ crn: string;
1031
+ govLink: string;
1032
+ director: string;
1033
+ blacklistReason?: string | null | undefined;
1034
+ lastUpdatedBy?: {
1035
+ id: string;
1036
+ firstName: string;
1037
+ lastName: string;
1038
+ email: string;
1039
+ } | null | undefined;
1040
+ agentClientLinks?: {
1041
+ agentId: string;
1042
+ } | null | undefined;
1043
+ } | null | undefined;
1044
+ user?: {
1045
+ id: string;
1046
+ firstName: string;
1047
+ lastName: string;
1048
+ email: string;
1049
+ } | null | undefined;
1050
+ newCollaboration?: {
1051
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1052
+ id: string;
1053
+ createdAt: string;
1054
+ updatedAt: string;
1055
+ userId: string;
1056
+ company?: {
1057
+ id: string;
1058
+ createdAt: string;
1059
+ updatedAt: string;
1060
+ name: string;
1061
+ } | null | undefined;
1062
+ client?: {
1063
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1064
+ id: string;
1065
+ createdAt: string;
1066
+ updatedAt: string;
1067
+ name: string;
1068
+ crn: string;
1069
+ govLink: string;
1070
+ director: string;
1071
+ blacklistReason?: string | null | undefined;
1072
+ lastUpdatedBy?: {
1073
+ id: string;
1074
+ firstName: string;
1075
+ lastName: string;
1076
+ email: string;
1077
+ } | null | undefined;
1078
+ agentClientLinks?: {
1079
+ agentId: string;
1080
+ } | null | undefined;
1081
+ } | null | undefined;
1082
+ user?: {
1083
+ id: string;
1084
+ firstName: string;
1085
+ lastName: string;
1086
+ email: string;
1087
+ } | null | undefined;
1088
+ } | null | undefined;
1089
+ }, {
1090
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1091
+ id: string;
1092
+ createdAt: string | Date;
1093
+ updatedAt: string | Date;
1094
+ userId: string;
1095
+ company?: {
1096
+ id: string;
1097
+ createdAt: string | Date;
1098
+ updatedAt: string | Date;
1099
+ name: string;
1100
+ } | null | undefined;
1101
+ client?: {
1102
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1103
+ id: string;
1104
+ createdAt: string | Date;
1105
+ updatedAt: string | Date;
441
1106
  name: string;
442
- } | undefined;
1107
+ crn: string;
1108
+ govLink: string;
1109
+ director: string;
1110
+ blacklistReason?: string | null | undefined;
1111
+ lastUpdatedBy?: {
1112
+ id: string;
1113
+ firstName: string;
1114
+ lastName: string;
1115
+ email: string;
1116
+ } | null | undefined;
1117
+ agentClientLinks?: {
1118
+ agentId: string;
1119
+ } | null | undefined;
1120
+ } | null | undefined;
443
1121
  user?: {
444
1122
  id: string;
445
1123
  firstName: string;
446
1124
  lastName: string;
447
1125
  email: string;
448
- } | undefined;
1126
+ } | null | undefined;
449
1127
  newCollaboration?: {
1128
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
450
1129
  id: string;
1130
+ createdAt: string | Date;
1131
+ updatedAt: string | Date;
1132
+ userId: string;
1133
+ company?: {
1134
+ id: string;
1135
+ createdAt: string | Date;
1136
+ updatedAt: string | Date;
1137
+ name: string;
1138
+ } | null | undefined;
1139
+ client?: {
1140
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1141
+ id: string;
1142
+ createdAt: string | Date;
1143
+ updatedAt: string | Date;
1144
+ name: string;
1145
+ crn: string;
1146
+ govLink: string;
1147
+ director: string;
1148
+ blacklistReason?: string | null | undefined;
1149
+ lastUpdatedBy?: {
1150
+ id: string;
1151
+ firstName: string;
1152
+ lastName: string;
1153
+ email: string;
1154
+ } | null | undefined;
1155
+ agentClientLinks?: {
1156
+ agentId: string;
1157
+ } | null | undefined;
1158
+ } | null | undefined;
1159
+ user?: {
1160
+ id: string;
1161
+ firstName: string;
1162
+ lastName: string;
1163
+ email: string;
1164
+ } | null | undefined;
451
1165
  } | null | undefined;
452
1166
  }>, "many">;
453
1167
  totalCount: z.ZodNumber;
@@ -458,27 +1172,81 @@ export declare const PaginatedCollaborationResponseSchema: z.ZodObject<{
458
1172
  }, "strip", z.ZodTypeAny, {
459
1173
  limit: number;
460
1174
  items: {
1175
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1176
+ id: string;
461
1177
  createdAt: string;
462
1178
  updatedAt: string;
463
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
464
- id: string;
465
1179
  userId: string;
466
1180
  company?: {
467
1181
  id: string;
1182
+ createdAt: string;
1183
+ updatedAt: string;
468
1184
  name: string;
469
- } | undefined;
1185
+ } | null | undefined;
470
1186
  client?: {
1187
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
471
1188
  id: string;
1189
+ createdAt: string;
1190
+ updatedAt: string;
472
1191
  name: string;
473
- } | undefined;
1192
+ crn: string;
1193
+ govLink: string;
1194
+ director: string;
1195
+ blacklistReason?: string | null | undefined;
1196
+ lastUpdatedBy?: {
1197
+ id: string;
1198
+ firstName: string;
1199
+ lastName: string;
1200
+ email: string;
1201
+ } | null | undefined;
1202
+ agentClientLinks?: {
1203
+ agentId: string;
1204
+ } | null | undefined;
1205
+ } | null | undefined;
474
1206
  user?: {
475
1207
  id: string;
476
1208
  firstName: string;
477
1209
  lastName: string;
478
1210
  email: string;
479
- } | undefined;
1211
+ } | null | undefined;
480
1212
  newCollaboration?: {
1213
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
481
1214
  id: string;
1215
+ createdAt: string;
1216
+ updatedAt: string;
1217
+ userId: string;
1218
+ company?: {
1219
+ id: string;
1220
+ createdAt: string;
1221
+ updatedAt: string;
1222
+ name: string;
1223
+ } | null | undefined;
1224
+ client?: {
1225
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1226
+ id: string;
1227
+ createdAt: string;
1228
+ updatedAt: string;
1229
+ name: string;
1230
+ crn: string;
1231
+ govLink: string;
1232
+ director: string;
1233
+ blacklistReason?: string | null | undefined;
1234
+ lastUpdatedBy?: {
1235
+ id: string;
1236
+ firstName: string;
1237
+ lastName: string;
1238
+ email: string;
1239
+ } | null | undefined;
1240
+ agentClientLinks?: {
1241
+ agentId: string;
1242
+ } | null | undefined;
1243
+ } | null | undefined;
1244
+ user?: {
1245
+ id: string;
1246
+ firstName: string;
1247
+ lastName: string;
1248
+ email: string;
1249
+ } | null | undefined;
482
1250
  } | null | undefined;
483
1251
  }[];
484
1252
  totalCount: number;
@@ -488,27 +1256,81 @@ export declare const PaginatedCollaborationResponseSchema: z.ZodObject<{
488
1256
  }, {
489
1257
  limit: number;
490
1258
  items: {
1259
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1260
+ id: string;
491
1261
  createdAt: string | Date;
492
1262
  updatedAt: string | Date;
493
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
494
- id: string;
495
1263
  userId: string;
496
1264
  company?: {
497
1265
  id: string;
1266
+ createdAt: string | Date;
1267
+ updatedAt: string | Date;
498
1268
  name: string;
499
- } | undefined;
1269
+ } | null | undefined;
500
1270
  client?: {
1271
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
501
1272
  id: string;
1273
+ createdAt: string | Date;
1274
+ updatedAt: string | Date;
502
1275
  name: string;
503
- } | undefined;
1276
+ crn: string;
1277
+ govLink: string;
1278
+ director: string;
1279
+ blacklistReason?: string | null | undefined;
1280
+ lastUpdatedBy?: {
1281
+ id: string;
1282
+ firstName: string;
1283
+ lastName: string;
1284
+ email: string;
1285
+ } | null | undefined;
1286
+ agentClientLinks?: {
1287
+ agentId: string;
1288
+ } | null | undefined;
1289
+ } | null | undefined;
504
1290
  user?: {
505
1291
  id: string;
506
1292
  firstName: string;
507
1293
  lastName: string;
508
1294
  email: string;
509
- } | undefined;
1295
+ } | null | undefined;
510
1296
  newCollaboration?: {
1297
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
511
1298
  id: string;
1299
+ createdAt: string | Date;
1300
+ updatedAt: string | Date;
1301
+ userId: string;
1302
+ company?: {
1303
+ id: string;
1304
+ createdAt: string | Date;
1305
+ updatedAt: string | Date;
1306
+ name: string;
1307
+ } | null | undefined;
1308
+ client?: {
1309
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1310
+ id: string;
1311
+ createdAt: string | Date;
1312
+ updatedAt: string | Date;
1313
+ name: string;
1314
+ crn: string;
1315
+ govLink: string;
1316
+ director: string;
1317
+ blacklistReason?: string | null | undefined;
1318
+ lastUpdatedBy?: {
1319
+ id: string;
1320
+ firstName: string;
1321
+ lastName: string;
1322
+ email: string;
1323
+ } | null | undefined;
1324
+ agentClientLinks?: {
1325
+ agentId: string;
1326
+ } | null | undefined;
1327
+ } | null | undefined;
1328
+ user?: {
1329
+ id: string;
1330
+ firstName: string;
1331
+ lastName: string;
1332
+ email: string;
1333
+ } | null | undefined;
512
1334
  } | null | undefined;
513
1335
  }[];
514
1336
  totalCount: number;
@@ -564,7 +1386,7 @@ export declare const collaborationsContractRouter: {
564
1386
  client: {
565
1387
  id: string;
566
1388
  };
567
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
1389
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
568
1390
  user?: {
569
1391
  id: string;
570
1392
  } | undefined;
@@ -575,7 +1397,7 @@ export declare const collaborationsContractRouter: {
575
1397
  client: {
576
1398
  id: string;
577
1399
  };
578
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
1400
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
579
1401
  user?: {
580
1402
  id: string;
581
1403
  } | undefined;
@@ -684,27 +1506,95 @@ export declare const collaborationsContractRouter: {
684
1506
  }>;
685
1507
  201: z.ZodObject<{
686
1508
  id: z.ZodString;
687
- company: z.ZodOptional<z.ZodObject<{
1509
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
688
1510
  id: z.ZodString;
689
1511
  name: z.ZodString;
1512
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1513
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
690
1514
  }, "strip", z.ZodTypeAny, {
691
1515
  id: string;
1516
+ createdAt: string;
1517
+ updatedAt: string;
692
1518
  name: string;
693
1519
  }, {
694
1520
  id: string;
1521
+ createdAt: string | Date;
1522
+ updatedAt: string | Date;
695
1523
  name: string;
696
- }>>;
697
- client: z.ZodOptional<z.ZodObject<{
1524
+ }>>>;
1525
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
698
1526
  id: z.ZodString;
699
1527
  name: z.ZodString;
1528
+ crn: z.ZodString;
1529
+ govLink: z.ZodString;
1530
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
1531
+ director: z.ZodString;
1532
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1533
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1534
+ id: z.ZodString;
1535
+ firstName: z.ZodString;
1536
+ lastName: z.ZodString;
1537
+ email: z.ZodString;
1538
+ }, "strip", z.ZodTypeAny, {
1539
+ id: string;
1540
+ firstName: string;
1541
+ lastName: string;
1542
+ email: string;
1543
+ }, {
1544
+ id: string;
1545
+ firstName: string;
1546
+ lastName: string;
1547
+ email: string;
1548
+ }>>>;
1549
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1550
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1551
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1552
+ agentId: z.ZodString;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ agentId: string;
1555
+ }, {
1556
+ agentId: string;
1557
+ }>>>;
700
1558
  }, "strip", z.ZodTypeAny, {
1559
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
701
1560
  id: string;
1561
+ createdAt: string;
1562
+ updatedAt: string;
702
1563
  name: string;
1564
+ crn: string;
1565
+ govLink: string;
1566
+ director: string;
1567
+ blacklistReason?: string | null | undefined;
1568
+ lastUpdatedBy?: {
1569
+ id: string;
1570
+ firstName: string;
1571
+ lastName: string;
1572
+ email: string;
1573
+ } | null | undefined;
1574
+ agentClientLinks?: {
1575
+ agentId: string;
1576
+ } | null | undefined;
703
1577
  }, {
1578
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
704
1579
  id: string;
1580
+ createdAt: string | Date;
1581
+ updatedAt: string | Date;
705
1582
  name: string;
706
- }>>;
707
- user: z.ZodOptional<z.ZodObject<{
1583
+ crn: string;
1584
+ govLink: string;
1585
+ director: string;
1586
+ blacklistReason?: string | null | undefined;
1587
+ lastUpdatedBy?: {
1588
+ id: string;
1589
+ firstName: string;
1590
+ lastName: string;
1591
+ email: string;
1592
+ } | null | undefined;
1593
+ agentClientLinks?: {
1594
+ agentId: string;
1595
+ } | null | undefined;
1596
+ }>>>;
1597
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
708
1598
  id: z.ZodString;
709
1599
  firstName: z.ZodString;
710
1600
  lastName: z.ZodString;
@@ -719,63 +1609,352 @@ export declare const collaborationsContractRouter: {
719
1609
  firstName: string;
720
1610
  lastName: string;
721
1611
  email: string;
722
- }>>;
1612
+ }>>>;
723
1613
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
724
1614
  userId: z.ZodString;
725
1615
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
726
1616
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1617
+ } & {
727
1618
  newCollaboration: z.ZodNullable<z.ZodOptional<z.ZodObject<{
728
1619
  id: z.ZodString;
729
- }, "strip", z.ZodTypeAny, {
730
- id: string;
731
- }, {
732
- id: string;
733
- }>>>;
734
- }, "strip", z.ZodTypeAny, {
735
- createdAt: string;
736
- updatedAt: string;
737
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
738
- id: string;
739
- userId: string;
740
- company?: {
741
- id: string;
742
- name: string;
743
- } | undefined;
744
- client?: {
745
- id: string;
746
- name: string;
747
- } | undefined;
1620
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1621
+ id: z.ZodString;
1622
+ name: z.ZodString;
1623
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1624
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1625
+ }, "strip", z.ZodTypeAny, {
1626
+ id: string;
1627
+ createdAt: string;
1628
+ updatedAt: string;
1629
+ name: string;
1630
+ }, {
1631
+ id: string;
1632
+ createdAt: string | Date;
1633
+ updatedAt: string | Date;
1634
+ name: string;
1635
+ }>>>;
1636
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1637
+ id: z.ZodString;
1638
+ name: z.ZodString;
1639
+ crn: z.ZodString;
1640
+ govLink: z.ZodString;
1641
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
1642
+ director: z.ZodString;
1643
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1644
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1645
+ id: z.ZodString;
1646
+ firstName: z.ZodString;
1647
+ lastName: z.ZodString;
1648
+ email: z.ZodString;
1649
+ }, "strip", z.ZodTypeAny, {
1650
+ id: string;
1651
+ firstName: string;
1652
+ lastName: string;
1653
+ email: string;
1654
+ }, {
1655
+ id: string;
1656
+ firstName: string;
1657
+ lastName: string;
1658
+ email: string;
1659
+ }>>>;
1660
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1661
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1662
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1663
+ agentId: z.ZodString;
1664
+ }, "strip", z.ZodTypeAny, {
1665
+ agentId: string;
1666
+ }, {
1667
+ agentId: string;
1668
+ }>>>;
1669
+ }, "strip", z.ZodTypeAny, {
1670
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1671
+ id: string;
1672
+ createdAt: string;
1673
+ updatedAt: string;
1674
+ name: string;
1675
+ crn: string;
1676
+ govLink: string;
1677
+ director: string;
1678
+ blacklistReason?: string | null | undefined;
1679
+ lastUpdatedBy?: {
1680
+ id: string;
1681
+ firstName: string;
1682
+ lastName: string;
1683
+ email: string;
1684
+ } | null | undefined;
1685
+ agentClientLinks?: {
1686
+ agentId: string;
1687
+ } | null | undefined;
1688
+ }, {
1689
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1690
+ id: string;
1691
+ createdAt: string | Date;
1692
+ updatedAt: string | Date;
1693
+ name: string;
1694
+ crn: string;
1695
+ govLink: string;
1696
+ director: string;
1697
+ blacklistReason?: string | null | undefined;
1698
+ lastUpdatedBy?: {
1699
+ id: string;
1700
+ firstName: string;
1701
+ lastName: string;
1702
+ email: string;
1703
+ } | null | undefined;
1704
+ agentClientLinks?: {
1705
+ agentId: string;
1706
+ } | null | undefined;
1707
+ }>>>;
1708
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1709
+ id: z.ZodString;
1710
+ firstName: z.ZodString;
1711
+ lastName: z.ZodString;
1712
+ email: z.ZodString;
1713
+ }, "strip", z.ZodTypeAny, {
1714
+ id: string;
1715
+ firstName: string;
1716
+ lastName: string;
1717
+ email: string;
1718
+ }, {
1719
+ id: string;
1720
+ firstName: string;
1721
+ lastName: string;
1722
+ email: string;
1723
+ }>>>;
1724
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
1725
+ userId: z.ZodString;
1726
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1727
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1728
+ }, "strip", z.ZodTypeAny, {
1729
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1730
+ id: string;
1731
+ createdAt: string;
1732
+ updatedAt: string;
1733
+ userId: string;
1734
+ company?: {
1735
+ id: string;
1736
+ createdAt: string;
1737
+ updatedAt: string;
1738
+ name: string;
1739
+ } | null | undefined;
1740
+ client?: {
1741
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1742
+ id: string;
1743
+ createdAt: string;
1744
+ updatedAt: string;
1745
+ name: string;
1746
+ crn: string;
1747
+ govLink: string;
1748
+ director: string;
1749
+ blacklistReason?: string | null | undefined;
1750
+ lastUpdatedBy?: {
1751
+ id: string;
1752
+ firstName: string;
1753
+ lastName: string;
1754
+ email: string;
1755
+ } | null | undefined;
1756
+ agentClientLinks?: {
1757
+ agentId: string;
1758
+ } | null | undefined;
1759
+ } | null | undefined;
1760
+ user?: {
1761
+ id: string;
1762
+ firstName: string;
1763
+ lastName: string;
1764
+ email: string;
1765
+ } | null | undefined;
1766
+ }, {
1767
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1768
+ id: string;
1769
+ createdAt: string | Date;
1770
+ updatedAt: string | Date;
1771
+ userId: string;
1772
+ company?: {
1773
+ id: string;
1774
+ createdAt: string | Date;
1775
+ updatedAt: string | Date;
1776
+ name: string;
1777
+ } | null | undefined;
1778
+ client?: {
1779
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1780
+ id: string;
1781
+ createdAt: string | Date;
1782
+ updatedAt: string | Date;
1783
+ name: string;
1784
+ crn: string;
1785
+ govLink: string;
1786
+ director: string;
1787
+ blacklistReason?: string | null | undefined;
1788
+ lastUpdatedBy?: {
1789
+ id: string;
1790
+ firstName: string;
1791
+ lastName: string;
1792
+ email: string;
1793
+ } | null | undefined;
1794
+ agentClientLinks?: {
1795
+ agentId: string;
1796
+ } | null | undefined;
1797
+ } | null | undefined;
1798
+ user?: {
1799
+ id: string;
1800
+ firstName: string;
1801
+ lastName: string;
1802
+ email: string;
1803
+ } | null | undefined;
1804
+ }>>>;
1805
+ }, "strip", z.ZodTypeAny, {
1806
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1807
+ id: string;
1808
+ createdAt: string;
1809
+ updatedAt: string;
1810
+ userId: string;
1811
+ company?: {
1812
+ id: string;
1813
+ createdAt: string;
1814
+ updatedAt: string;
1815
+ name: string;
1816
+ } | null | undefined;
1817
+ client?: {
1818
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1819
+ id: string;
1820
+ createdAt: string;
1821
+ updatedAt: string;
1822
+ name: string;
1823
+ crn: string;
1824
+ govLink: string;
1825
+ director: string;
1826
+ blacklistReason?: string | null | undefined;
1827
+ lastUpdatedBy?: {
1828
+ id: string;
1829
+ firstName: string;
1830
+ lastName: string;
1831
+ email: string;
1832
+ } | null | undefined;
1833
+ agentClientLinks?: {
1834
+ agentId: string;
1835
+ } | null | undefined;
1836
+ } | null | undefined;
748
1837
  user?: {
749
1838
  id: string;
750
1839
  firstName: string;
751
1840
  lastName: string;
752
1841
  email: string;
753
- } | undefined;
1842
+ } | null | undefined;
754
1843
  newCollaboration?: {
1844
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
755
1845
  id: string;
1846
+ createdAt: string;
1847
+ updatedAt: string;
1848
+ userId: string;
1849
+ company?: {
1850
+ id: string;
1851
+ createdAt: string;
1852
+ updatedAt: string;
1853
+ name: string;
1854
+ } | null | undefined;
1855
+ client?: {
1856
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1857
+ id: string;
1858
+ createdAt: string;
1859
+ updatedAt: string;
1860
+ name: string;
1861
+ crn: string;
1862
+ govLink: string;
1863
+ director: string;
1864
+ blacklistReason?: string | null | undefined;
1865
+ lastUpdatedBy?: {
1866
+ id: string;
1867
+ firstName: string;
1868
+ lastName: string;
1869
+ email: string;
1870
+ } | null | undefined;
1871
+ agentClientLinks?: {
1872
+ agentId: string;
1873
+ } | null | undefined;
1874
+ } | null | undefined;
1875
+ user?: {
1876
+ id: string;
1877
+ firstName: string;
1878
+ lastName: string;
1879
+ email: string;
1880
+ } | null | undefined;
756
1881
  } | null | undefined;
757
1882
  }, {
1883
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1884
+ id: string;
758
1885
  createdAt: string | Date;
759
1886
  updatedAt: string | Date;
760
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
761
- id: string;
762
1887
  userId: string;
763
1888
  company?: {
764
1889
  id: string;
1890
+ createdAt: string | Date;
1891
+ updatedAt: string | Date;
765
1892
  name: string;
766
- } | undefined;
1893
+ } | null | undefined;
767
1894
  client?: {
1895
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
768
1896
  id: string;
1897
+ createdAt: string | Date;
1898
+ updatedAt: string | Date;
769
1899
  name: string;
770
- } | undefined;
1900
+ crn: string;
1901
+ govLink: string;
1902
+ director: string;
1903
+ blacklistReason?: string | null | undefined;
1904
+ lastUpdatedBy?: {
1905
+ id: string;
1906
+ firstName: string;
1907
+ lastName: string;
1908
+ email: string;
1909
+ } | null | undefined;
1910
+ agentClientLinks?: {
1911
+ agentId: string;
1912
+ } | null | undefined;
1913
+ } | null | undefined;
771
1914
  user?: {
772
1915
  id: string;
773
1916
  firstName: string;
774
1917
  lastName: string;
775
1918
  email: string;
776
- } | undefined;
1919
+ } | null | undefined;
777
1920
  newCollaboration?: {
1921
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
778
1922
  id: string;
1923
+ createdAt: string | Date;
1924
+ updatedAt: string | Date;
1925
+ userId: string;
1926
+ company?: {
1927
+ id: string;
1928
+ createdAt: string | Date;
1929
+ updatedAt: string | Date;
1930
+ name: string;
1931
+ } | null | undefined;
1932
+ client?: {
1933
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1934
+ id: string;
1935
+ createdAt: string | Date;
1936
+ updatedAt: string | Date;
1937
+ name: string;
1938
+ crn: string;
1939
+ govLink: string;
1940
+ director: string;
1941
+ blacklistReason?: string | null | undefined;
1942
+ lastUpdatedBy?: {
1943
+ id: string;
1944
+ firstName: string;
1945
+ lastName: string;
1946
+ email: string;
1947
+ } | null | undefined;
1948
+ agentClientLinks?: {
1949
+ agentId: string;
1950
+ } | null | undefined;
1951
+ } | null | undefined;
1952
+ user?: {
1953
+ id: string;
1954
+ firstName: string;
1955
+ lastName: string;
1956
+ email: string;
1957
+ } | null | undefined;
779
1958
  } | null | undefined;
780
1959
  }>;
781
1960
  409: z.ZodObject<{
@@ -806,12 +1985,6 @@ export declare const collaborationsContractRouter: {
806
1985
  };
807
1986
  };
808
1987
  findAll: {
809
- metadata: {
810
- tags: string[];
811
- openApi: {
812
- operationId: string;
813
- };
814
- };
815
1988
  query: z.ZodObject<{
816
1989
  limit: z.ZodDefault<z.ZodNumber>;
817
1990
  page: z.ZodDefault<z.ZodNumber>;
@@ -825,22 +1998,28 @@ export declare const collaborationsContractRouter: {
825
1998
  }, "strip", z.ZodTypeAny, {
826
1999
  limit: number;
827
2000
  page: number;
828
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | null | undefined;
2001
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | null | undefined;
2002
+ sortBy?: "status" | "createdAt" | "updatedAt" | null | undefined;
2003
+ sortOrder?: "ASC" | "DESC" | null | undefined;
829
2004
  userId?: string | null | undefined;
830
2005
  companyId?: string | null | undefined;
831
2006
  clientId?: string | null | undefined;
832
- sortBy?: "createdAt" | "updatedAt" | "status" | null | undefined;
833
- sortOrder?: "ASC" | "DESC" | null | undefined;
834
2007
  }, {
835
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | null | undefined;
836
- userId?: string | null | undefined;
2008
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | null | undefined;
837
2009
  limit?: number | undefined;
838
2010
  page?: number | undefined;
2011
+ sortBy?: "status" | "createdAt" | "updatedAt" | null | undefined;
2012
+ sortOrder?: "ASC" | "DESC" | null | undefined;
2013
+ userId?: string | null | undefined;
839
2014
  companyId?: string | null | undefined;
840
2015
  clientId?: string | null | undefined;
841
- sortBy?: "createdAt" | "updatedAt" | "status" | null | undefined;
842
- sortOrder?: "ASC" | "DESC" | null | undefined;
843
2016
  }>;
2017
+ metadata: {
2018
+ tags: string[];
2019
+ openApi: {
2020
+ operationId: string;
2021
+ };
2022
+ };
844
2023
  summary: "Get all collaborations";
845
2024
  method: "GET";
846
2025
  path: "/v2/collaborations";
@@ -948,27 +2127,95 @@ export declare const collaborationsContractRouter: {
948
2127
  200: z.ZodObject<{
949
2128
  items: z.ZodArray<z.ZodObject<{
950
2129
  id: z.ZodString;
951
- company: z.ZodOptional<z.ZodObject<{
2130
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
952
2131
  id: z.ZodString;
953
2132
  name: z.ZodString;
2133
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2134
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
954
2135
  }, "strip", z.ZodTypeAny, {
955
2136
  id: string;
2137
+ createdAt: string;
2138
+ updatedAt: string;
956
2139
  name: string;
957
2140
  }, {
958
2141
  id: string;
2142
+ createdAt: string | Date;
2143
+ updatedAt: string | Date;
959
2144
  name: string;
960
- }>>;
961
- client: z.ZodOptional<z.ZodObject<{
2145
+ }>>>;
2146
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
962
2147
  id: z.ZodString;
963
2148
  name: z.ZodString;
2149
+ crn: z.ZodString;
2150
+ govLink: z.ZodString;
2151
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
2152
+ director: z.ZodString;
2153
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2154
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2155
+ id: z.ZodString;
2156
+ firstName: z.ZodString;
2157
+ lastName: z.ZodString;
2158
+ email: z.ZodString;
2159
+ }, "strip", z.ZodTypeAny, {
2160
+ id: string;
2161
+ firstName: string;
2162
+ lastName: string;
2163
+ email: string;
2164
+ }, {
2165
+ id: string;
2166
+ firstName: string;
2167
+ lastName: string;
2168
+ email: string;
2169
+ }>>>;
2170
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2171
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2172
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2173
+ agentId: z.ZodString;
2174
+ }, "strip", z.ZodTypeAny, {
2175
+ agentId: string;
2176
+ }, {
2177
+ agentId: string;
2178
+ }>>>;
964
2179
  }, "strip", z.ZodTypeAny, {
2180
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
965
2181
  id: string;
2182
+ createdAt: string;
2183
+ updatedAt: string;
966
2184
  name: string;
2185
+ crn: string;
2186
+ govLink: string;
2187
+ director: string;
2188
+ blacklistReason?: string | null | undefined;
2189
+ lastUpdatedBy?: {
2190
+ id: string;
2191
+ firstName: string;
2192
+ lastName: string;
2193
+ email: string;
2194
+ } | null | undefined;
2195
+ agentClientLinks?: {
2196
+ agentId: string;
2197
+ } | null | undefined;
967
2198
  }, {
2199
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
968
2200
  id: string;
2201
+ createdAt: string | Date;
2202
+ updatedAt: string | Date;
969
2203
  name: string;
970
- }>>;
971
- user: z.ZodOptional<z.ZodObject<{
2204
+ crn: string;
2205
+ govLink: string;
2206
+ director: string;
2207
+ blacklistReason?: string | null | undefined;
2208
+ lastUpdatedBy?: {
2209
+ id: string;
2210
+ firstName: string;
2211
+ lastName: string;
2212
+ email: string;
2213
+ } | null | undefined;
2214
+ agentClientLinks?: {
2215
+ agentId: string;
2216
+ } | null | undefined;
2217
+ }>>>;
2218
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
972
2219
  id: z.ZodString;
973
2220
  firstName: z.ZodString;
974
2221
  lastName: z.ZodString;
@@ -983,63 +2230,352 @@ export declare const collaborationsContractRouter: {
983
2230
  firstName: string;
984
2231
  lastName: string;
985
2232
  email: string;
986
- }>>;
2233
+ }>>>;
987
2234
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
988
2235
  userId: z.ZodString;
989
2236
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
990
2237
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2238
+ } & {
991
2239
  newCollaboration: z.ZodNullable<z.ZodOptional<z.ZodObject<{
992
2240
  id: z.ZodString;
2241
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2242
+ id: z.ZodString;
2243
+ name: z.ZodString;
2244
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2245
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2246
+ }, "strip", z.ZodTypeAny, {
2247
+ id: string;
2248
+ createdAt: string;
2249
+ updatedAt: string;
2250
+ name: string;
2251
+ }, {
2252
+ id: string;
2253
+ createdAt: string | Date;
2254
+ updatedAt: string | Date;
2255
+ name: string;
2256
+ }>>>;
2257
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2258
+ id: z.ZodString;
2259
+ name: z.ZodString;
2260
+ crn: z.ZodString;
2261
+ govLink: z.ZodString;
2262
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
2263
+ director: z.ZodString;
2264
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2265
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2266
+ id: z.ZodString;
2267
+ firstName: z.ZodString;
2268
+ lastName: z.ZodString;
2269
+ email: z.ZodString;
2270
+ }, "strip", z.ZodTypeAny, {
2271
+ id: string;
2272
+ firstName: string;
2273
+ lastName: string;
2274
+ email: string;
2275
+ }, {
2276
+ id: string;
2277
+ firstName: string;
2278
+ lastName: string;
2279
+ email: string;
2280
+ }>>>;
2281
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2282
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2283
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2284
+ agentId: z.ZodString;
2285
+ }, "strip", z.ZodTypeAny, {
2286
+ agentId: string;
2287
+ }, {
2288
+ agentId: string;
2289
+ }>>>;
2290
+ }, "strip", z.ZodTypeAny, {
2291
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2292
+ id: string;
2293
+ createdAt: string;
2294
+ updatedAt: string;
2295
+ name: string;
2296
+ crn: string;
2297
+ govLink: string;
2298
+ director: string;
2299
+ blacklistReason?: string | null | undefined;
2300
+ lastUpdatedBy?: {
2301
+ id: string;
2302
+ firstName: string;
2303
+ lastName: string;
2304
+ email: string;
2305
+ } | null | undefined;
2306
+ agentClientLinks?: {
2307
+ agentId: string;
2308
+ } | null | undefined;
2309
+ }, {
2310
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2311
+ id: string;
2312
+ createdAt: string | Date;
2313
+ updatedAt: string | Date;
2314
+ name: string;
2315
+ crn: string;
2316
+ govLink: string;
2317
+ director: string;
2318
+ blacklistReason?: string | null | undefined;
2319
+ lastUpdatedBy?: {
2320
+ id: string;
2321
+ firstName: string;
2322
+ lastName: string;
2323
+ email: string;
2324
+ } | null | undefined;
2325
+ agentClientLinks?: {
2326
+ agentId: string;
2327
+ } | null | undefined;
2328
+ }>>>;
2329
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2330
+ id: z.ZodString;
2331
+ firstName: z.ZodString;
2332
+ lastName: z.ZodString;
2333
+ email: z.ZodString;
2334
+ }, "strip", z.ZodTypeAny, {
2335
+ id: string;
2336
+ firstName: string;
2337
+ lastName: string;
2338
+ email: string;
2339
+ }, {
2340
+ id: string;
2341
+ firstName: string;
2342
+ lastName: string;
2343
+ email: string;
2344
+ }>>>;
2345
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
2346
+ userId: z.ZodString;
2347
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2348
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
993
2349
  }, "strip", z.ZodTypeAny, {
2350
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
994
2351
  id: string;
2352
+ createdAt: string;
2353
+ updatedAt: string;
2354
+ userId: string;
2355
+ company?: {
2356
+ id: string;
2357
+ createdAt: string;
2358
+ updatedAt: string;
2359
+ name: string;
2360
+ } | null | undefined;
2361
+ client?: {
2362
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2363
+ id: string;
2364
+ createdAt: string;
2365
+ updatedAt: string;
2366
+ name: string;
2367
+ crn: string;
2368
+ govLink: string;
2369
+ director: string;
2370
+ blacklistReason?: string | null | undefined;
2371
+ lastUpdatedBy?: {
2372
+ id: string;
2373
+ firstName: string;
2374
+ lastName: string;
2375
+ email: string;
2376
+ } | null | undefined;
2377
+ agentClientLinks?: {
2378
+ agentId: string;
2379
+ } | null | undefined;
2380
+ } | null | undefined;
2381
+ user?: {
2382
+ id: string;
2383
+ firstName: string;
2384
+ lastName: string;
2385
+ email: string;
2386
+ } | null | undefined;
995
2387
  }, {
2388
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
996
2389
  id: string;
2390
+ createdAt: string | Date;
2391
+ updatedAt: string | Date;
2392
+ userId: string;
2393
+ company?: {
2394
+ id: string;
2395
+ createdAt: string | Date;
2396
+ updatedAt: string | Date;
2397
+ name: string;
2398
+ } | null | undefined;
2399
+ client?: {
2400
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2401
+ id: string;
2402
+ createdAt: string | Date;
2403
+ updatedAt: string | Date;
2404
+ name: string;
2405
+ crn: string;
2406
+ govLink: string;
2407
+ director: string;
2408
+ blacklistReason?: string | null | undefined;
2409
+ lastUpdatedBy?: {
2410
+ id: string;
2411
+ firstName: string;
2412
+ lastName: string;
2413
+ email: string;
2414
+ } | null | undefined;
2415
+ agentClientLinks?: {
2416
+ agentId: string;
2417
+ } | null | undefined;
2418
+ } | null | undefined;
2419
+ user?: {
2420
+ id: string;
2421
+ firstName: string;
2422
+ lastName: string;
2423
+ email: string;
2424
+ } | null | undefined;
997
2425
  }>>>;
998
2426
  }, "strip", z.ZodTypeAny, {
2427
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2428
+ id: string;
999
2429
  createdAt: string;
1000
2430
  updatedAt: string;
1001
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1002
- id: string;
1003
2431
  userId: string;
1004
2432
  company?: {
1005
2433
  id: string;
2434
+ createdAt: string;
2435
+ updatedAt: string;
1006
2436
  name: string;
1007
- } | undefined;
2437
+ } | null | undefined;
1008
2438
  client?: {
2439
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1009
2440
  id: string;
2441
+ createdAt: string;
2442
+ updatedAt: string;
1010
2443
  name: string;
1011
- } | undefined;
2444
+ crn: string;
2445
+ govLink: string;
2446
+ director: string;
2447
+ blacklistReason?: string | null | undefined;
2448
+ lastUpdatedBy?: {
2449
+ id: string;
2450
+ firstName: string;
2451
+ lastName: string;
2452
+ email: string;
2453
+ } | null | undefined;
2454
+ agentClientLinks?: {
2455
+ agentId: string;
2456
+ } | null | undefined;
2457
+ } | null | undefined;
1012
2458
  user?: {
1013
2459
  id: string;
1014
2460
  firstName: string;
1015
2461
  lastName: string;
1016
2462
  email: string;
1017
- } | undefined;
2463
+ } | null | undefined;
1018
2464
  newCollaboration?: {
2465
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1019
2466
  id: string;
2467
+ createdAt: string;
2468
+ updatedAt: string;
2469
+ userId: string;
2470
+ company?: {
2471
+ id: string;
2472
+ createdAt: string;
2473
+ updatedAt: string;
2474
+ name: string;
2475
+ } | null | undefined;
2476
+ client?: {
2477
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2478
+ id: string;
2479
+ createdAt: string;
2480
+ updatedAt: string;
2481
+ name: string;
2482
+ crn: string;
2483
+ govLink: string;
2484
+ director: string;
2485
+ blacklistReason?: string | null | undefined;
2486
+ lastUpdatedBy?: {
2487
+ id: string;
2488
+ firstName: string;
2489
+ lastName: string;
2490
+ email: string;
2491
+ } | null | undefined;
2492
+ agentClientLinks?: {
2493
+ agentId: string;
2494
+ } | null | undefined;
2495
+ } | null | undefined;
2496
+ user?: {
2497
+ id: string;
2498
+ firstName: string;
2499
+ lastName: string;
2500
+ email: string;
2501
+ } | null | undefined;
1020
2502
  } | null | undefined;
1021
2503
  }, {
2504
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2505
+ id: string;
1022
2506
  createdAt: string | Date;
1023
2507
  updatedAt: string | Date;
1024
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1025
- id: string;
1026
2508
  userId: string;
1027
2509
  company?: {
1028
2510
  id: string;
2511
+ createdAt: string | Date;
2512
+ updatedAt: string | Date;
1029
2513
  name: string;
1030
- } | undefined;
2514
+ } | null | undefined;
1031
2515
  client?: {
2516
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1032
2517
  id: string;
2518
+ createdAt: string | Date;
2519
+ updatedAt: string | Date;
1033
2520
  name: string;
1034
- } | undefined;
2521
+ crn: string;
2522
+ govLink: string;
2523
+ director: string;
2524
+ blacklistReason?: string | null | undefined;
2525
+ lastUpdatedBy?: {
2526
+ id: string;
2527
+ firstName: string;
2528
+ lastName: string;
2529
+ email: string;
2530
+ } | null | undefined;
2531
+ agentClientLinks?: {
2532
+ agentId: string;
2533
+ } | null | undefined;
2534
+ } | null | undefined;
1035
2535
  user?: {
1036
2536
  id: string;
1037
2537
  firstName: string;
1038
2538
  lastName: string;
1039
2539
  email: string;
1040
- } | undefined;
2540
+ } | null | undefined;
1041
2541
  newCollaboration?: {
2542
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1042
2543
  id: string;
2544
+ createdAt: string | Date;
2545
+ updatedAt: string | Date;
2546
+ userId: string;
2547
+ company?: {
2548
+ id: string;
2549
+ createdAt: string | Date;
2550
+ updatedAt: string | Date;
2551
+ name: string;
2552
+ } | null | undefined;
2553
+ client?: {
2554
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2555
+ id: string;
2556
+ createdAt: string | Date;
2557
+ updatedAt: string | Date;
2558
+ name: string;
2559
+ crn: string;
2560
+ govLink: string;
2561
+ director: string;
2562
+ blacklistReason?: string | null | undefined;
2563
+ lastUpdatedBy?: {
2564
+ id: string;
2565
+ firstName: string;
2566
+ lastName: string;
2567
+ email: string;
2568
+ } | null | undefined;
2569
+ agentClientLinks?: {
2570
+ agentId: string;
2571
+ } | null | undefined;
2572
+ } | null | undefined;
2573
+ user?: {
2574
+ id: string;
2575
+ firstName: string;
2576
+ lastName: string;
2577
+ email: string;
2578
+ } | null | undefined;
1043
2579
  } | null | undefined;
1044
2580
  }>, "many">;
1045
2581
  totalCount: z.ZodNumber;
@@ -1050,27 +2586,81 @@ export declare const collaborationsContractRouter: {
1050
2586
  }, "strip", z.ZodTypeAny, {
1051
2587
  limit: number;
1052
2588
  items: {
2589
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2590
+ id: string;
1053
2591
  createdAt: string;
1054
2592
  updatedAt: string;
1055
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1056
- id: string;
1057
2593
  userId: string;
1058
2594
  company?: {
1059
2595
  id: string;
2596
+ createdAt: string;
2597
+ updatedAt: string;
1060
2598
  name: string;
1061
- } | undefined;
2599
+ } | null | undefined;
1062
2600
  client?: {
2601
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1063
2602
  id: string;
2603
+ createdAt: string;
2604
+ updatedAt: string;
1064
2605
  name: string;
1065
- } | undefined;
2606
+ crn: string;
2607
+ govLink: string;
2608
+ director: string;
2609
+ blacklistReason?: string | null | undefined;
2610
+ lastUpdatedBy?: {
2611
+ id: string;
2612
+ firstName: string;
2613
+ lastName: string;
2614
+ email: string;
2615
+ } | null | undefined;
2616
+ agentClientLinks?: {
2617
+ agentId: string;
2618
+ } | null | undefined;
2619
+ } | null | undefined;
1066
2620
  user?: {
1067
2621
  id: string;
1068
2622
  firstName: string;
1069
2623
  lastName: string;
1070
2624
  email: string;
1071
- } | undefined;
2625
+ } | null | undefined;
1072
2626
  newCollaboration?: {
2627
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1073
2628
  id: string;
2629
+ createdAt: string;
2630
+ updatedAt: string;
2631
+ userId: string;
2632
+ company?: {
2633
+ id: string;
2634
+ createdAt: string;
2635
+ updatedAt: string;
2636
+ name: string;
2637
+ } | null | undefined;
2638
+ client?: {
2639
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2640
+ id: string;
2641
+ createdAt: string;
2642
+ updatedAt: string;
2643
+ name: string;
2644
+ crn: string;
2645
+ govLink: string;
2646
+ director: string;
2647
+ blacklistReason?: string | null | undefined;
2648
+ lastUpdatedBy?: {
2649
+ id: string;
2650
+ firstName: string;
2651
+ lastName: string;
2652
+ email: string;
2653
+ } | null | undefined;
2654
+ agentClientLinks?: {
2655
+ agentId: string;
2656
+ } | null | undefined;
2657
+ } | null | undefined;
2658
+ user?: {
2659
+ id: string;
2660
+ firstName: string;
2661
+ lastName: string;
2662
+ email: string;
2663
+ } | null | undefined;
1074
2664
  } | null | undefined;
1075
2665
  }[];
1076
2666
  totalCount: number;
@@ -1080,27 +2670,81 @@ export declare const collaborationsContractRouter: {
1080
2670
  }, {
1081
2671
  limit: number;
1082
2672
  items: {
2673
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2674
+ id: string;
1083
2675
  createdAt: string | Date;
1084
2676
  updatedAt: string | Date;
1085
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1086
- id: string;
1087
2677
  userId: string;
1088
2678
  company?: {
1089
2679
  id: string;
2680
+ createdAt: string | Date;
2681
+ updatedAt: string | Date;
1090
2682
  name: string;
1091
- } | undefined;
2683
+ } | null | undefined;
1092
2684
  client?: {
2685
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1093
2686
  id: string;
2687
+ createdAt: string | Date;
2688
+ updatedAt: string | Date;
1094
2689
  name: string;
1095
- } | undefined;
2690
+ crn: string;
2691
+ govLink: string;
2692
+ director: string;
2693
+ blacklistReason?: string | null | undefined;
2694
+ lastUpdatedBy?: {
2695
+ id: string;
2696
+ firstName: string;
2697
+ lastName: string;
2698
+ email: string;
2699
+ } | null | undefined;
2700
+ agentClientLinks?: {
2701
+ agentId: string;
2702
+ } | null | undefined;
2703
+ } | null | undefined;
1096
2704
  user?: {
1097
2705
  id: string;
1098
2706
  firstName: string;
1099
2707
  lastName: string;
1100
2708
  email: string;
1101
- } | undefined;
2709
+ } | null | undefined;
1102
2710
  newCollaboration?: {
2711
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1103
2712
  id: string;
2713
+ createdAt: string | Date;
2714
+ updatedAt: string | Date;
2715
+ userId: string;
2716
+ company?: {
2717
+ id: string;
2718
+ createdAt: string | Date;
2719
+ updatedAt: string | Date;
2720
+ name: string;
2721
+ } | null | undefined;
2722
+ client?: {
2723
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2724
+ id: string;
2725
+ createdAt: string | Date;
2726
+ updatedAt: string | Date;
2727
+ name: string;
2728
+ crn: string;
2729
+ govLink: string;
2730
+ director: string;
2731
+ blacklistReason?: string | null | undefined;
2732
+ lastUpdatedBy?: {
2733
+ id: string;
2734
+ firstName: string;
2735
+ lastName: string;
2736
+ email: string;
2737
+ } | null | undefined;
2738
+ agentClientLinks?: {
2739
+ agentId: string;
2740
+ } | null | undefined;
2741
+ } | null | undefined;
2742
+ user?: {
2743
+ id: string;
2744
+ firstName: string;
2745
+ lastName: string;
2746
+ email: string;
2747
+ } | null | undefined;
1104
2748
  } | null | undefined;
1105
2749
  }[];
1106
2750
  totalCount: number;
@@ -1111,22 +2755,22 @@ export declare const collaborationsContractRouter: {
1111
2755
  };
1112
2756
  };
1113
2757
  autocomplete: {
1114
- metadata: {
1115
- tags: string[];
1116
- openApi: {
1117
- operationId: string;
1118
- };
1119
- };
1120
2758
  query: z.ZodObject<{
1121
2759
  query: z.ZodOptional<z.ZodString>;
1122
2760
  id: z.ZodOptional<z.ZodString>;
1123
2761
  }, "strip", z.ZodTypeAny, {
1124
- id?: string | undefined;
1125
2762
  query?: string | undefined;
1126
- }, {
1127
2763
  id?: string | undefined;
2764
+ }, {
1128
2765
  query?: string | undefined;
2766
+ id?: string | undefined;
1129
2767
  }>;
2768
+ metadata: {
2769
+ tags: string[];
2770
+ openApi: {
2771
+ operationId: string;
2772
+ };
2773
+ };
1130
2774
  summary: "Get collaborations for autocomplete";
1131
2775
  method: "GET";
1132
2776
  path: "/v2/collaborations/autocomplete";
@@ -1404,27 +3048,95 @@ export declare const collaborationsContractRouter: {
1404
3048
  }>;
1405
3049
  200: z.ZodObject<{
1406
3050
  id: z.ZodString;
1407
- company: z.ZodOptional<z.ZodObject<{
3051
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1408
3052
  id: z.ZodString;
1409
3053
  name: z.ZodString;
3054
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3055
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1410
3056
  }, "strip", z.ZodTypeAny, {
1411
3057
  id: string;
3058
+ createdAt: string;
3059
+ updatedAt: string;
1412
3060
  name: string;
1413
3061
  }, {
1414
3062
  id: string;
3063
+ createdAt: string | Date;
3064
+ updatedAt: string | Date;
1415
3065
  name: string;
1416
- }>>;
1417
- client: z.ZodOptional<z.ZodObject<{
3066
+ }>>>;
3067
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1418
3068
  id: z.ZodString;
1419
3069
  name: z.ZodString;
3070
+ crn: z.ZodString;
3071
+ govLink: z.ZodString;
3072
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
3073
+ director: z.ZodString;
3074
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3075
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3076
+ id: z.ZodString;
3077
+ firstName: z.ZodString;
3078
+ lastName: z.ZodString;
3079
+ email: z.ZodString;
3080
+ }, "strip", z.ZodTypeAny, {
3081
+ id: string;
3082
+ firstName: string;
3083
+ lastName: string;
3084
+ email: string;
3085
+ }, {
3086
+ id: string;
3087
+ firstName: string;
3088
+ lastName: string;
3089
+ email: string;
3090
+ }>>>;
3091
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3092
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3093
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3094
+ agentId: z.ZodString;
3095
+ }, "strip", z.ZodTypeAny, {
3096
+ agentId: string;
3097
+ }, {
3098
+ agentId: string;
3099
+ }>>>;
1420
3100
  }, "strip", z.ZodTypeAny, {
3101
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1421
3102
  id: string;
3103
+ createdAt: string;
3104
+ updatedAt: string;
1422
3105
  name: string;
3106
+ crn: string;
3107
+ govLink: string;
3108
+ director: string;
3109
+ blacklistReason?: string | null | undefined;
3110
+ lastUpdatedBy?: {
3111
+ id: string;
3112
+ firstName: string;
3113
+ lastName: string;
3114
+ email: string;
3115
+ } | null | undefined;
3116
+ agentClientLinks?: {
3117
+ agentId: string;
3118
+ } | null | undefined;
1423
3119
  }, {
3120
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1424
3121
  id: string;
3122
+ createdAt: string | Date;
3123
+ updatedAt: string | Date;
1425
3124
  name: string;
1426
- }>>;
1427
- user: z.ZodOptional<z.ZodObject<{
3125
+ crn: string;
3126
+ govLink: string;
3127
+ director: string;
3128
+ blacklistReason?: string | null | undefined;
3129
+ lastUpdatedBy?: {
3130
+ id: string;
3131
+ firstName: string;
3132
+ lastName: string;
3133
+ email: string;
3134
+ } | null | undefined;
3135
+ agentClientLinks?: {
3136
+ agentId: string;
3137
+ } | null | undefined;
3138
+ }>>>;
3139
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1428
3140
  id: z.ZodString;
1429
3141
  firstName: z.ZodString;
1430
3142
  lastName: z.ZodString;
@@ -1439,63 +3151,352 @@ export declare const collaborationsContractRouter: {
1439
3151
  firstName: string;
1440
3152
  lastName: string;
1441
3153
  email: string;
1442
- }>>;
3154
+ }>>>;
1443
3155
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
1444
3156
  userId: z.ZodString;
1445
3157
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1446
3158
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3159
+ } & {
1447
3160
  newCollaboration: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1448
3161
  id: z.ZodString;
3162
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3163
+ id: z.ZodString;
3164
+ name: z.ZodString;
3165
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3166
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3167
+ }, "strip", z.ZodTypeAny, {
3168
+ id: string;
3169
+ createdAt: string;
3170
+ updatedAt: string;
3171
+ name: string;
3172
+ }, {
3173
+ id: string;
3174
+ createdAt: string | Date;
3175
+ updatedAt: string | Date;
3176
+ name: string;
3177
+ }>>>;
3178
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3179
+ id: z.ZodString;
3180
+ name: z.ZodString;
3181
+ crn: z.ZodString;
3182
+ govLink: z.ZodString;
3183
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
3184
+ director: z.ZodString;
3185
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3186
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3187
+ id: z.ZodString;
3188
+ firstName: z.ZodString;
3189
+ lastName: z.ZodString;
3190
+ email: z.ZodString;
3191
+ }, "strip", z.ZodTypeAny, {
3192
+ id: string;
3193
+ firstName: string;
3194
+ lastName: string;
3195
+ email: string;
3196
+ }, {
3197
+ id: string;
3198
+ firstName: string;
3199
+ lastName: string;
3200
+ email: string;
3201
+ }>>>;
3202
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3203
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3204
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3205
+ agentId: z.ZodString;
3206
+ }, "strip", z.ZodTypeAny, {
3207
+ agentId: string;
3208
+ }, {
3209
+ agentId: string;
3210
+ }>>>;
3211
+ }, "strip", z.ZodTypeAny, {
3212
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
3213
+ id: string;
3214
+ createdAt: string;
3215
+ updatedAt: string;
3216
+ name: string;
3217
+ crn: string;
3218
+ govLink: string;
3219
+ director: string;
3220
+ blacklistReason?: string | null | undefined;
3221
+ lastUpdatedBy?: {
3222
+ id: string;
3223
+ firstName: string;
3224
+ lastName: string;
3225
+ email: string;
3226
+ } | null | undefined;
3227
+ agentClientLinks?: {
3228
+ agentId: string;
3229
+ } | null | undefined;
3230
+ }, {
3231
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
3232
+ id: string;
3233
+ createdAt: string | Date;
3234
+ updatedAt: string | Date;
3235
+ name: string;
3236
+ crn: string;
3237
+ govLink: string;
3238
+ director: string;
3239
+ blacklistReason?: string | null | undefined;
3240
+ lastUpdatedBy?: {
3241
+ id: string;
3242
+ firstName: string;
3243
+ lastName: string;
3244
+ email: string;
3245
+ } | null | undefined;
3246
+ agentClientLinks?: {
3247
+ agentId: string;
3248
+ } | null | undefined;
3249
+ }>>>;
3250
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3251
+ id: z.ZodString;
3252
+ firstName: z.ZodString;
3253
+ lastName: z.ZodString;
3254
+ email: z.ZodString;
3255
+ }, "strip", z.ZodTypeAny, {
3256
+ id: string;
3257
+ firstName: string;
3258
+ lastName: string;
3259
+ email: string;
3260
+ }, {
3261
+ id: string;
3262
+ firstName: string;
3263
+ lastName: string;
3264
+ email: string;
3265
+ }>>>;
3266
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
3267
+ userId: z.ZodString;
3268
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3269
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1449
3270
  }, "strip", z.ZodTypeAny, {
3271
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1450
3272
  id: string;
3273
+ createdAt: string;
3274
+ updatedAt: string;
3275
+ userId: string;
3276
+ company?: {
3277
+ id: string;
3278
+ createdAt: string;
3279
+ updatedAt: string;
3280
+ name: string;
3281
+ } | null | undefined;
3282
+ client?: {
3283
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
3284
+ id: string;
3285
+ createdAt: string;
3286
+ updatedAt: string;
3287
+ name: string;
3288
+ crn: string;
3289
+ govLink: string;
3290
+ director: string;
3291
+ blacklistReason?: string | null | undefined;
3292
+ lastUpdatedBy?: {
3293
+ id: string;
3294
+ firstName: string;
3295
+ lastName: string;
3296
+ email: string;
3297
+ } | null | undefined;
3298
+ agentClientLinks?: {
3299
+ agentId: string;
3300
+ } | null | undefined;
3301
+ } | null | undefined;
3302
+ user?: {
3303
+ id: string;
3304
+ firstName: string;
3305
+ lastName: string;
3306
+ email: string;
3307
+ } | null | undefined;
1451
3308
  }, {
3309
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1452
3310
  id: string;
3311
+ createdAt: string | Date;
3312
+ updatedAt: string | Date;
3313
+ userId: string;
3314
+ company?: {
3315
+ id: string;
3316
+ createdAt: string | Date;
3317
+ updatedAt: string | Date;
3318
+ name: string;
3319
+ } | null | undefined;
3320
+ client?: {
3321
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
3322
+ id: string;
3323
+ createdAt: string | Date;
3324
+ updatedAt: string | Date;
3325
+ name: string;
3326
+ crn: string;
3327
+ govLink: string;
3328
+ director: string;
3329
+ blacklistReason?: string | null | undefined;
3330
+ lastUpdatedBy?: {
3331
+ id: string;
3332
+ firstName: string;
3333
+ lastName: string;
3334
+ email: string;
3335
+ } | null | undefined;
3336
+ agentClientLinks?: {
3337
+ agentId: string;
3338
+ } | null | undefined;
3339
+ } | null | undefined;
3340
+ user?: {
3341
+ id: string;
3342
+ firstName: string;
3343
+ lastName: string;
3344
+ email: string;
3345
+ } | null | undefined;
1453
3346
  }>>>;
1454
3347
  }, "strip", z.ZodTypeAny, {
3348
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3349
+ id: string;
1455
3350
  createdAt: string;
1456
3351
  updatedAt: string;
1457
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1458
- id: string;
1459
3352
  userId: string;
1460
3353
  company?: {
1461
3354
  id: string;
3355
+ createdAt: string;
3356
+ updatedAt: string;
1462
3357
  name: string;
1463
- } | undefined;
3358
+ } | null | undefined;
1464
3359
  client?: {
3360
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1465
3361
  id: string;
3362
+ createdAt: string;
3363
+ updatedAt: string;
1466
3364
  name: string;
1467
- } | undefined;
3365
+ crn: string;
3366
+ govLink: string;
3367
+ director: string;
3368
+ blacklistReason?: string | null | undefined;
3369
+ lastUpdatedBy?: {
3370
+ id: string;
3371
+ firstName: string;
3372
+ lastName: string;
3373
+ email: string;
3374
+ } | null | undefined;
3375
+ agentClientLinks?: {
3376
+ agentId: string;
3377
+ } | null | undefined;
3378
+ } | null | undefined;
1468
3379
  user?: {
1469
3380
  id: string;
1470
3381
  firstName: string;
1471
3382
  lastName: string;
1472
3383
  email: string;
1473
- } | undefined;
3384
+ } | null | undefined;
1474
3385
  newCollaboration?: {
3386
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1475
3387
  id: string;
3388
+ createdAt: string;
3389
+ updatedAt: string;
3390
+ userId: string;
3391
+ company?: {
3392
+ id: string;
3393
+ createdAt: string;
3394
+ updatedAt: string;
3395
+ name: string;
3396
+ } | null | undefined;
3397
+ client?: {
3398
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
3399
+ id: string;
3400
+ createdAt: string;
3401
+ updatedAt: string;
3402
+ name: string;
3403
+ crn: string;
3404
+ govLink: string;
3405
+ director: string;
3406
+ blacklistReason?: string | null | undefined;
3407
+ lastUpdatedBy?: {
3408
+ id: string;
3409
+ firstName: string;
3410
+ lastName: string;
3411
+ email: string;
3412
+ } | null | undefined;
3413
+ agentClientLinks?: {
3414
+ agentId: string;
3415
+ } | null | undefined;
3416
+ } | null | undefined;
3417
+ user?: {
3418
+ id: string;
3419
+ firstName: string;
3420
+ lastName: string;
3421
+ email: string;
3422
+ } | null | undefined;
1476
3423
  } | null | undefined;
1477
3424
  }, {
3425
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3426
+ id: string;
1478
3427
  createdAt: string | Date;
1479
3428
  updatedAt: string | Date;
1480
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1481
- id: string;
1482
3429
  userId: string;
1483
3430
  company?: {
1484
3431
  id: string;
3432
+ createdAt: string | Date;
3433
+ updatedAt: string | Date;
1485
3434
  name: string;
1486
- } | undefined;
3435
+ } | null | undefined;
1487
3436
  client?: {
3437
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1488
3438
  id: string;
3439
+ createdAt: string | Date;
3440
+ updatedAt: string | Date;
1489
3441
  name: string;
1490
- } | undefined;
3442
+ crn: string;
3443
+ govLink: string;
3444
+ director: string;
3445
+ blacklistReason?: string | null | undefined;
3446
+ lastUpdatedBy?: {
3447
+ id: string;
3448
+ firstName: string;
3449
+ lastName: string;
3450
+ email: string;
3451
+ } | null | undefined;
3452
+ agentClientLinks?: {
3453
+ agentId: string;
3454
+ } | null | undefined;
3455
+ } | null | undefined;
1491
3456
  user?: {
1492
3457
  id: string;
1493
3458
  firstName: string;
1494
3459
  lastName: string;
1495
3460
  email: string;
1496
- } | undefined;
3461
+ } | null | undefined;
1497
3462
  newCollaboration?: {
3463
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1498
3464
  id: string;
3465
+ createdAt: string | Date;
3466
+ updatedAt: string | Date;
3467
+ userId: string;
3468
+ company?: {
3469
+ id: string;
3470
+ createdAt: string | Date;
3471
+ updatedAt: string | Date;
3472
+ name: string;
3473
+ } | null | undefined;
3474
+ client?: {
3475
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
3476
+ id: string;
3477
+ createdAt: string | Date;
3478
+ updatedAt: string | Date;
3479
+ name: string;
3480
+ crn: string;
3481
+ govLink: string;
3482
+ director: string;
3483
+ blacklistReason?: string | null | undefined;
3484
+ lastUpdatedBy?: {
3485
+ id: string;
3486
+ firstName: string;
3487
+ lastName: string;
3488
+ email: string;
3489
+ } | null | undefined;
3490
+ agentClientLinks?: {
3491
+ agentId: string;
3492
+ } | null | undefined;
3493
+ } | null | undefined;
3494
+ user?: {
3495
+ id: string;
3496
+ firstName: string;
3497
+ lastName: string;
3498
+ email: string;
3499
+ } | null | undefined;
1499
3500
  } | null | undefined;
1500
3501
  }>;
1501
3502
  404: z.ZodObject<{
@@ -1544,9 +3545,9 @@ export declare const collaborationsContractRouter: {
1544
3545
  body: z.ZodObject<{
1545
3546
  status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>>;
1546
3547
  }, "strip", z.ZodTypeAny, {
1547
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
3548
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
1548
3549
  }, {
1549
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
3550
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
1550
3551
  }>;
1551
3552
  path: "/v2/collaborations/:id";
1552
3553
  responses: {
@@ -1652,27 +3653,95 @@ export declare const collaborationsContractRouter: {
1652
3653
  }>;
1653
3654
  200: z.ZodObject<{
1654
3655
  id: z.ZodString;
1655
- company: z.ZodOptional<z.ZodObject<{
3656
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1656
3657
  id: z.ZodString;
1657
3658
  name: z.ZodString;
3659
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3660
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1658
3661
  }, "strip", z.ZodTypeAny, {
1659
3662
  id: string;
3663
+ createdAt: string;
3664
+ updatedAt: string;
1660
3665
  name: string;
1661
3666
  }, {
1662
3667
  id: string;
3668
+ createdAt: string | Date;
3669
+ updatedAt: string | Date;
1663
3670
  name: string;
1664
- }>>;
1665
- client: z.ZodOptional<z.ZodObject<{
3671
+ }>>>;
3672
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1666
3673
  id: z.ZodString;
1667
3674
  name: z.ZodString;
3675
+ crn: z.ZodString;
3676
+ govLink: z.ZodString;
3677
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
3678
+ director: z.ZodString;
3679
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3680
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3681
+ id: z.ZodString;
3682
+ firstName: z.ZodString;
3683
+ lastName: z.ZodString;
3684
+ email: z.ZodString;
3685
+ }, "strip", z.ZodTypeAny, {
3686
+ id: string;
3687
+ firstName: string;
3688
+ lastName: string;
3689
+ email: string;
3690
+ }, {
3691
+ id: string;
3692
+ firstName: string;
3693
+ lastName: string;
3694
+ email: string;
3695
+ }>>>;
3696
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3697
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3698
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3699
+ agentId: z.ZodString;
3700
+ }, "strip", z.ZodTypeAny, {
3701
+ agentId: string;
3702
+ }, {
3703
+ agentId: string;
3704
+ }>>>;
1668
3705
  }, "strip", z.ZodTypeAny, {
3706
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1669
3707
  id: string;
3708
+ createdAt: string;
3709
+ updatedAt: string;
1670
3710
  name: string;
3711
+ crn: string;
3712
+ govLink: string;
3713
+ director: string;
3714
+ blacklistReason?: string | null | undefined;
3715
+ lastUpdatedBy?: {
3716
+ id: string;
3717
+ firstName: string;
3718
+ lastName: string;
3719
+ email: string;
3720
+ } | null | undefined;
3721
+ agentClientLinks?: {
3722
+ agentId: string;
3723
+ } | null | undefined;
1671
3724
  }, {
3725
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1672
3726
  id: string;
3727
+ createdAt: string | Date;
3728
+ updatedAt: string | Date;
1673
3729
  name: string;
1674
- }>>;
1675
- user: z.ZodOptional<z.ZodObject<{
3730
+ crn: string;
3731
+ govLink: string;
3732
+ director: string;
3733
+ blacklistReason?: string | null | undefined;
3734
+ lastUpdatedBy?: {
3735
+ id: string;
3736
+ firstName: string;
3737
+ lastName: string;
3738
+ email: string;
3739
+ } | null | undefined;
3740
+ agentClientLinks?: {
3741
+ agentId: string;
3742
+ } | null | undefined;
3743
+ }>>>;
3744
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1676
3745
  id: z.ZodString;
1677
3746
  firstName: z.ZodString;
1678
3747
  lastName: z.ZodString;
@@ -1687,63 +3756,352 @@ export declare const collaborationsContractRouter: {
1687
3756
  firstName: string;
1688
3757
  lastName: string;
1689
3758
  email: string;
1690
- }>>;
3759
+ }>>>;
1691
3760
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
1692
3761
  userId: z.ZodString;
1693
3762
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1694
3763
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3764
+ } & {
1695
3765
  newCollaboration: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1696
3766
  id: z.ZodString;
3767
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3768
+ id: z.ZodString;
3769
+ name: z.ZodString;
3770
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3771
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3772
+ }, "strip", z.ZodTypeAny, {
3773
+ id: string;
3774
+ createdAt: string;
3775
+ updatedAt: string;
3776
+ name: string;
3777
+ }, {
3778
+ id: string;
3779
+ createdAt: string | Date;
3780
+ updatedAt: string | Date;
3781
+ name: string;
3782
+ }>>>;
3783
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3784
+ id: z.ZodString;
3785
+ name: z.ZodString;
3786
+ crn: z.ZodString;
3787
+ govLink: z.ZodString;
3788
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
3789
+ director: z.ZodString;
3790
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3791
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3792
+ id: z.ZodString;
3793
+ firstName: z.ZodString;
3794
+ lastName: z.ZodString;
3795
+ email: z.ZodString;
3796
+ }, "strip", z.ZodTypeAny, {
3797
+ id: string;
3798
+ firstName: string;
3799
+ lastName: string;
3800
+ email: string;
3801
+ }, {
3802
+ id: string;
3803
+ firstName: string;
3804
+ lastName: string;
3805
+ email: string;
3806
+ }>>>;
3807
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3808
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3809
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3810
+ agentId: z.ZodString;
3811
+ }, "strip", z.ZodTypeAny, {
3812
+ agentId: string;
3813
+ }, {
3814
+ agentId: string;
3815
+ }>>>;
3816
+ }, "strip", z.ZodTypeAny, {
3817
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
3818
+ id: string;
3819
+ createdAt: string;
3820
+ updatedAt: string;
3821
+ name: string;
3822
+ crn: string;
3823
+ govLink: string;
3824
+ director: string;
3825
+ blacklistReason?: string | null | undefined;
3826
+ lastUpdatedBy?: {
3827
+ id: string;
3828
+ firstName: string;
3829
+ lastName: string;
3830
+ email: string;
3831
+ } | null | undefined;
3832
+ agentClientLinks?: {
3833
+ agentId: string;
3834
+ } | null | undefined;
3835
+ }, {
3836
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
3837
+ id: string;
3838
+ createdAt: string | Date;
3839
+ updatedAt: string | Date;
3840
+ name: string;
3841
+ crn: string;
3842
+ govLink: string;
3843
+ director: string;
3844
+ blacklistReason?: string | null | undefined;
3845
+ lastUpdatedBy?: {
3846
+ id: string;
3847
+ firstName: string;
3848
+ lastName: string;
3849
+ email: string;
3850
+ } | null | undefined;
3851
+ agentClientLinks?: {
3852
+ agentId: string;
3853
+ } | null | undefined;
3854
+ }>>>;
3855
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3856
+ id: z.ZodString;
3857
+ firstName: z.ZodString;
3858
+ lastName: z.ZodString;
3859
+ email: z.ZodString;
3860
+ }, "strip", z.ZodTypeAny, {
3861
+ id: string;
3862
+ firstName: string;
3863
+ lastName: string;
3864
+ email: string;
3865
+ }, {
3866
+ id: string;
3867
+ firstName: string;
3868
+ lastName: string;
3869
+ email: string;
3870
+ }>>>;
3871
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
3872
+ userId: z.ZodString;
3873
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3874
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1697
3875
  }, "strip", z.ZodTypeAny, {
3876
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1698
3877
  id: string;
3878
+ createdAt: string;
3879
+ updatedAt: string;
3880
+ userId: string;
3881
+ company?: {
3882
+ id: string;
3883
+ createdAt: string;
3884
+ updatedAt: string;
3885
+ name: string;
3886
+ } | null | undefined;
3887
+ client?: {
3888
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
3889
+ id: string;
3890
+ createdAt: string;
3891
+ updatedAt: string;
3892
+ name: string;
3893
+ crn: string;
3894
+ govLink: string;
3895
+ director: string;
3896
+ blacklistReason?: string | null | undefined;
3897
+ lastUpdatedBy?: {
3898
+ id: string;
3899
+ firstName: string;
3900
+ lastName: string;
3901
+ email: string;
3902
+ } | null | undefined;
3903
+ agentClientLinks?: {
3904
+ agentId: string;
3905
+ } | null | undefined;
3906
+ } | null | undefined;
3907
+ user?: {
3908
+ id: string;
3909
+ firstName: string;
3910
+ lastName: string;
3911
+ email: string;
3912
+ } | null | undefined;
1699
3913
  }, {
3914
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1700
3915
  id: string;
3916
+ createdAt: string | Date;
3917
+ updatedAt: string | Date;
3918
+ userId: string;
3919
+ company?: {
3920
+ id: string;
3921
+ createdAt: string | Date;
3922
+ updatedAt: string | Date;
3923
+ name: string;
3924
+ } | null | undefined;
3925
+ client?: {
3926
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
3927
+ id: string;
3928
+ createdAt: string | Date;
3929
+ updatedAt: string | Date;
3930
+ name: string;
3931
+ crn: string;
3932
+ govLink: string;
3933
+ director: string;
3934
+ blacklistReason?: string | null | undefined;
3935
+ lastUpdatedBy?: {
3936
+ id: string;
3937
+ firstName: string;
3938
+ lastName: string;
3939
+ email: string;
3940
+ } | null | undefined;
3941
+ agentClientLinks?: {
3942
+ agentId: string;
3943
+ } | null | undefined;
3944
+ } | null | undefined;
3945
+ user?: {
3946
+ id: string;
3947
+ firstName: string;
3948
+ lastName: string;
3949
+ email: string;
3950
+ } | null | undefined;
1701
3951
  }>>>;
1702
3952
  }, "strip", z.ZodTypeAny, {
3953
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3954
+ id: string;
1703
3955
  createdAt: string;
1704
3956
  updatedAt: string;
1705
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1706
- id: string;
1707
3957
  userId: string;
1708
3958
  company?: {
1709
3959
  id: string;
3960
+ createdAt: string;
3961
+ updatedAt: string;
1710
3962
  name: string;
1711
- } | undefined;
3963
+ } | null | undefined;
1712
3964
  client?: {
3965
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1713
3966
  id: string;
3967
+ createdAt: string;
3968
+ updatedAt: string;
1714
3969
  name: string;
1715
- } | undefined;
3970
+ crn: string;
3971
+ govLink: string;
3972
+ director: string;
3973
+ blacklistReason?: string | null | undefined;
3974
+ lastUpdatedBy?: {
3975
+ id: string;
3976
+ firstName: string;
3977
+ lastName: string;
3978
+ email: string;
3979
+ } | null | undefined;
3980
+ agentClientLinks?: {
3981
+ agentId: string;
3982
+ } | null | undefined;
3983
+ } | null | undefined;
1716
3984
  user?: {
1717
3985
  id: string;
1718
3986
  firstName: string;
1719
3987
  lastName: string;
1720
3988
  email: string;
1721
- } | undefined;
3989
+ } | null | undefined;
1722
3990
  newCollaboration?: {
3991
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1723
3992
  id: string;
3993
+ createdAt: string;
3994
+ updatedAt: string;
3995
+ userId: string;
3996
+ company?: {
3997
+ id: string;
3998
+ createdAt: string;
3999
+ updatedAt: string;
4000
+ name: string;
4001
+ } | null | undefined;
4002
+ client?: {
4003
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
4004
+ id: string;
4005
+ createdAt: string;
4006
+ updatedAt: string;
4007
+ name: string;
4008
+ crn: string;
4009
+ govLink: string;
4010
+ director: string;
4011
+ blacklistReason?: string | null | undefined;
4012
+ lastUpdatedBy?: {
4013
+ id: string;
4014
+ firstName: string;
4015
+ lastName: string;
4016
+ email: string;
4017
+ } | null | undefined;
4018
+ agentClientLinks?: {
4019
+ agentId: string;
4020
+ } | null | undefined;
4021
+ } | null | undefined;
4022
+ user?: {
4023
+ id: string;
4024
+ firstName: string;
4025
+ lastName: string;
4026
+ email: string;
4027
+ } | null | undefined;
1724
4028
  } | null | undefined;
1725
4029
  }, {
4030
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4031
+ id: string;
1726
4032
  createdAt: string | Date;
1727
4033
  updatedAt: string | Date;
1728
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1729
- id: string;
1730
4034
  userId: string;
1731
4035
  company?: {
1732
4036
  id: string;
4037
+ createdAt: string | Date;
4038
+ updatedAt: string | Date;
1733
4039
  name: string;
1734
- } | undefined;
4040
+ } | null | undefined;
1735
4041
  client?: {
4042
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1736
4043
  id: string;
4044
+ createdAt: string | Date;
4045
+ updatedAt: string | Date;
1737
4046
  name: string;
1738
- } | undefined;
4047
+ crn: string;
4048
+ govLink: string;
4049
+ director: string;
4050
+ blacklistReason?: string | null | undefined;
4051
+ lastUpdatedBy?: {
4052
+ id: string;
4053
+ firstName: string;
4054
+ lastName: string;
4055
+ email: string;
4056
+ } | null | undefined;
4057
+ agentClientLinks?: {
4058
+ agentId: string;
4059
+ } | null | undefined;
4060
+ } | null | undefined;
1739
4061
  user?: {
1740
4062
  id: string;
1741
4063
  firstName: string;
1742
4064
  lastName: string;
1743
4065
  email: string;
1744
- } | undefined;
4066
+ } | null | undefined;
1745
4067
  newCollaboration?: {
4068
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1746
4069
  id: string;
4070
+ createdAt: string | Date;
4071
+ updatedAt: string | Date;
4072
+ userId: string;
4073
+ company?: {
4074
+ id: string;
4075
+ createdAt: string | Date;
4076
+ updatedAt: string | Date;
4077
+ name: string;
4078
+ } | null | undefined;
4079
+ client?: {
4080
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
4081
+ id: string;
4082
+ createdAt: string | Date;
4083
+ updatedAt: string | Date;
4084
+ name: string;
4085
+ crn: string;
4086
+ govLink: string;
4087
+ director: string;
4088
+ blacklistReason?: string | null | undefined;
4089
+ lastUpdatedBy?: {
4090
+ id: string;
4091
+ firstName: string;
4092
+ lastName: string;
4093
+ email: string;
4094
+ } | null | undefined;
4095
+ agentClientLinks?: {
4096
+ agentId: string;
4097
+ } | null | undefined;
4098
+ } | null | undefined;
4099
+ user?: {
4100
+ id: string;
4101
+ firstName: string;
4102
+ lastName: string;
4103
+ email: string;
4104
+ } | null | undefined;
1747
4105
  } | null | undefined;
1748
4106
  }>;
1749
4107
  404: z.ZodObject<{
@@ -1984,7 +4342,7 @@ export declare const collaborationsContractRouter: {
1984
4342
  client: {
1985
4343
  id: string;
1986
4344
  };
1987
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
4345
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
1988
4346
  user?: {
1989
4347
  id: string;
1990
4348
  } | undefined;
@@ -1995,7 +4353,7 @@ export declare const collaborationsContractRouter: {
1995
4353
  client: {
1996
4354
  id: string;
1997
4355
  };
1998
- status?: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
4356
+ status?: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | undefined;
1999
4357
  user?: {
2000
4358
  id: string;
2001
4359
  } | undefined;
@@ -2104,27 +4462,95 @@ export declare const collaborationsContractRouter: {
2104
4462
  }>;
2105
4463
  201: z.ZodObject<{
2106
4464
  id: z.ZodString;
2107
- company: z.ZodOptional<z.ZodObject<{
4465
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2108
4466
  id: z.ZodString;
2109
4467
  name: z.ZodString;
4468
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4469
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2110
4470
  }, "strip", z.ZodTypeAny, {
2111
4471
  id: string;
4472
+ createdAt: string;
4473
+ updatedAt: string;
2112
4474
  name: string;
2113
4475
  }, {
2114
4476
  id: string;
4477
+ createdAt: string | Date;
4478
+ updatedAt: string | Date;
2115
4479
  name: string;
2116
- }>>;
2117
- client: z.ZodOptional<z.ZodObject<{
4480
+ }>>>;
4481
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2118
4482
  id: z.ZodString;
2119
4483
  name: z.ZodString;
4484
+ crn: z.ZodString;
4485
+ govLink: z.ZodString;
4486
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
4487
+ director: z.ZodString;
4488
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4489
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4490
+ id: z.ZodString;
4491
+ firstName: z.ZodString;
4492
+ lastName: z.ZodString;
4493
+ email: z.ZodString;
4494
+ }, "strip", z.ZodTypeAny, {
4495
+ id: string;
4496
+ firstName: string;
4497
+ lastName: string;
4498
+ email: string;
4499
+ }, {
4500
+ id: string;
4501
+ firstName: string;
4502
+ lastName: string;
4503
+ email: string;
4504
+ }>>>;
4505
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4506
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4507
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4508
+ agentId: z.ZodString;
4509
+ }, "strip", z.ZodTypeAny, {
4510
+ agentId: string;
4511
+ }, {
4512
+ agentId: string;
4513
+ }>>>;
2120
4514
  }, "strip", z.ZodTypeAny, {
4515
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2121
4516
  id: string;
4517
+ createdAt: string;
4518
+ updatedAt: string;
2122
4519
  name: string;
4520
+ crn: string;
4521
+ govLink: string;
4522
+ director: string;
4523
+ blacklistReason?: string | null | undefined;
4524
+ lastUpdatedBy?: {
4525
+ id: string;
4526
+ firstName: string;
4527
+ lastName: string;
4528
+ email: string;
4529
+ } | null | undefined;
4530
+ agentClientLinks?: {
4531
+ agentId: string;
4532
+ } | null | undefined;
2123
4533
  }, {
4534
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2124
4535
  id: string;
4536
+ createdAt: string | Date;
4537
+ updatedAt: string | Date;
2125
4538
  name: string;
2126
- }>>;
2127
- user: z.ZodOptional<z.ZodObject<{
4539
+ crn: string;
4540
+ govLink: string;
4541
+ director: string;
4542
+ blacklistReason?: string | null | undefined;
4543
+ lastUpdatedBy?: {
4544
+ id: string;
4545
+ firstName: string;
4546
+ lastName: string;
4547
+ email: string;
4548
+ } | null | undefined;
4549
+ agentClientLinks?: {
4550
+ agentId: string;
4551
+ } | null | undefined;
4552
+ }>>>;
4553
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2128
4554
  id: z.ZodString;
2129
4555
  firstName: z.ZodString;
2130
4556
  lastName: z.ZodString;
@@ -2139,63 +4565,352 @@ export declare const collaborationsContractRouter: {
2139
4565
  firstName: string;
2140
4566
  lastName: string;
2141
4567
  email: string;
2142
- }>>;
4568
+ }>>>;
2143
4569
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
2144
4570
  userId: z.ZodString;
2145
4571
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2146
4572
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4573
+ } & {
2147
4574
  newCollaboration: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2148
4575
  id: z.ZodString;
4576
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4577
+ id: z.ZodString;
4578
+ name: z.ZodString;
4579
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4580
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4581
+ }, "strip", z.ZodTypeAny, {
4582
+ id: string;
4583
+ createdAt: string;
4584
+ updatedAt: string;
4585
+ name: string;
4586
+ }, {
4587
+ id: string;
4588
+ createdAt: string | Date;
4589
+ updatedAt: string | Date;
4590
+ name: string;
4591
+ }>>>;
4592
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4593
+ id: z.ZodString;
4594
+ name: z.ZodString;
4595
+ crn: z.ZodString;
4596
+ govLink: z.ZodString;
4597
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
4598
+ director: z.ZodString;
4599
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4600
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4601
+ id: z.ZodString;
4602
+ firstName: z.ZodString;
4603
+ lastName: z.ZodString;
4604
+ email: z.ZodString;
4605
+ }, "strip", z.ZodTypeAny, {
4606
+ id: string;
4607
+ firstName: string;
4608
+ lastName: string;
4609
+ email: string;
4610
+ }, {
4611
+ id: string;
4612
+ firstName: string;
4613
+ lastName: string;
4614
+ email: string;
4615
+ }>>>;
4616
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4617
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4618
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4619
+ agentId: z.ZodString;
4620
+ }, "strip", z.ZodTypeAny, {
4621
+ agentId: string;
4622
+ }, {
4623
+ agentId: string;
4624
+ }>>>;
4625
+ }, "strip", z.ZodTypeAny, {
4626
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
4627
+ id: string;
4628
+ createdAt: string;
4629
+ updatedAt: string;
4630
+ name: string;
4631
+ crn: string;
4632
+ govLink: string;
4633
+ director: string;
4634
+ blacklistReason?: string | null | undefined;
4635
+ lastUpdatedBy?: {
4636
+ id: string;
4637
+ firstName: string;
4638
+ lastName: string;
4639
+ email: string;
4640
+ } | null | undefined;
4641
+ agentClientLinks?: {
4642
+ agentId: string;
4643
+ } | null | undefined;
4644
+ }, {
4645
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
4646
+ id: string;
4647
+ createdAt: string | Date;
4648
+ updatedAt: string | Date;
4649
+ name: string;
4650
+ crn: string;
4651
+ govLink: string;
4652
+ director: string;
4653
+ blacklistReason?: string | null | undefined;
4654
+ lastUpdatedBy?: {
4655
+ id: string;
4656
+ firstName: string;
4657
+ lastName: string;
4658
+ email: string;
4659
+ } | null | undefined;
4660
+ agentClientLinks?: {
4661
+ agentId: string;
4662
+ } | null | undefined;
4663
+ }>>>;
4664
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4665
+ id: z.ZodString;
4666
+ firstName: z.ZodString;
4667
+ lastName: z.ZodString;
4668
+ email: z.ZodString;
4669
+ }, "strip", z.ZodTypeAny, {
4670
+ id: string;
4671
+ firstName: string;
4672
+ lastName: string;
4673
+ email: string;
4674
+ }, {
4675
+ id: string;
4676
+ firstName: string;
4677
+ lastName: string;
4678
+ email: string;
4679
+ }>>>;
4680
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
4681
+ userId: z.ZodString;
4682
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4683
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2149
4684
  }, "strip", z.ZodTypeAny, {
4685
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2150
4686
  id: string;
4687
+ createdAt: string;
4688
+ updatedAt: string;
4689
+ userId: string;
4690
+ company?: {
4691
+ id: string;
4692
+ createdAt: string;
4693
+ updatedAt: string;
4694
+ name: string;
4695
+ } | null | undefined;
4696
+ client?: {
4697
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
4698
+ id: string;
4699
+ createdAt: string;
4700
+ updatedAt: string;
4701
+ name: string;
4702
+ crn: string;
4703
+ govLink: string;
4704
+ director: string;
4705
+ blacklistReason?: string | null | undefined;
4706
+ lastUpdatedBy?: {
4707
+ id: string;
4708
+ firstName: string;
4709
+ lastName: string;
4710
+ email: string;
4711
+ } | null | undefined;
4712
+ agentClientLinks?: {
4713
+ agentId: string;
4714
+ } | null | undefined;
4715
+ } | null | undefined;
4716
+ user?: {
4717
+ id: string;
4718
+ firstName: string;
4719
+ lastName: string;
4720
+ email: string;
4721
+ } | null | undefined;
2151
4722
  }, {
4723
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2152
4724
  id: string;
4725
+ createdAt: string | Date;
4726
+ updatedAt: string | Date;
4727
+ userId: string;
4728
+ company?: {
4729
+ id: string;
4730
+ createdAt: string | Date;
4731
+ updatedAt: string | Date;
4732
+ name: string;
4733
+ } | null | undefined;
4734
+ client?: {
4735
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
4736
+ id: string;
4737
+ createdAt: string | Date;
4738
+ updatedAt: string | Date;
4739
+ name: string;
4740
+ crn: string;
4741
+ govLink: string;
4742
+ director: string;
4743
+ blacklistReason?: string | null | undefined;
4744
+ lastUpdatedBy?: {
4745
+ id: string;
4746
+ firstName: string;
4747
+ lastName: string;
4748
+ email: string;
4749
+ } | null | undefined;
4750
+ agentClientLinks?: {
4751
+ agentId: string;
4752
+ } | null | undefined;
4753
+ } | null | undefined;
4754
+ user?: {
4755
+ id: string;
4756
+ firstName: string;
4757
+ lastName: string;
4758
+ email: string;
4759
+ } | null | undefined;
2153
4760
  }>>>;
2154
4761
  }, "strip", z.ZodTypeAny, {
4762
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4763
+ id: string;
2155
4764
  createdAt: string;
2156
4765
  updatedAt: string;
2157
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2158
- id: string;
2159
4766
  userId: string;
2160
4767
  company?: {
2161
4768
  id: string;
4769
+ createdAt: string;
4770
+ updatedAt: string;
2162
4771
  name: string;
2163
- } | undefined;
4772
+ } | null | undefined;
2164
4773
  client?: {
4774
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2165
4775
  id: string;
4776
+ createdAt: string;
4777
+ updatedAt: string;
2166
4778
  name: string;
2167
- } | undefined;
4779
+ crn: string;
4780
+ govLink: string;
4781
+ director: string;
4782
+ blacklistReason?: string | null | undefined;
4783
+ lastUpdatedBy?: {
4784
+ id: string;
4785
+ firstName: string;
4786
+ lastName: string;
4787
+ email: string;
4788
+ } | null | undefined;
4789
+ agentClientLinks?: {
4790
+ agentId: string;
4791
+ } | null | undefined;
4792
+ } | null | undefined;
2168
4793
  user?: {
2169
4794
  id: string;
2170
4795
  firstName: string;
2171
4796
  lastName: string;
2172
4797
  email: string;
2173
- } | undefined;
4798
+ } | null | undefined;
2174
4799
  newCollaboration?: {
4800
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2175
4801
  id: string;
4802
+ createdAt: string;
4803
+ updatedAt: string;
4804
+ userId: string;
4805
+ company?: {
4806
+ id: string;
4807
+ createdAt: string;
4808
+ updatedAt: string;
4809
+ name: string;
4810
+ } | null | undefined;
4811
+ client?: {
4812
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
4813
+ id: string;
4814
+ createdAt: string;
4815
+ updatedAt: string;
4816
+ name: string;
4817
+ crn: string;
4818
+ govLink: string;
4819
+ director: string;
4820
+ blacklistReason?: string | null | undefined;
4821
+ lastUpdatedBy?: {
4822
+ id: string;
4823
+ firstName: string;
4824
+ lastName: string;
4825
+ email: string;
4826
+ } | null | undefined;
4827
+ agentClientLinks?: {
4828
+ agentId: string;
4829
+ } | null | undefined;
4830
+ } | null | undefined;
4831
+ user?: {
4832
+ id: string;
4833
+ firstName: string;
4834
+ lastName: string;
4835
+ email: string;
4836
+ } | null | undefined;
2176
4837
  } | null | undefined;
2177
4838
  }, {
4839
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4840
+ id: string;
2178
4841
  createdAt: string | Date;
2179
4842
  updatedAt: string | Date;
2180
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2181
- id: string;
2182
4843
  userId: string;
2183
4844
  company?: {
2184
4845
  id: string;
4846
+ createdAt: string | Date;
4847
+ updatedAt: string | Date;
2185
4848
  name: string;
2186
- } | undefined;
4849
+ } | null | undefined;
2187
4850
  client?: {
4851
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
2188
4852
  id: string;
4853
+ createdAt: string | Date;
4854
+ updatedAt: string | Date;
2189
4855
  name: string;
2190
- } | undefined;
4856
+ crn: string;
4857
+ govLink: string;
4858
+ director: string;
4859
+ blacklistReason?: string | null | undefined;
4860
+ lastUpdatedBy?: {
4861
+ id: string;
4862
+ firstName: string;
4863
+ lastName: string;
4864
+ email: string;
4865
+ } | null | undefined;
4866
+ agentClientLinks?: {
4867
+ agentId: string;
4868
+ } | null | undefined;
4869
+ } | null | undefined;
2191
4870
  user?: {
2192
4871
  id: string;
2193
4872
  firstName: string;
2194
4873
  lastName: string;
2195
4874
  email: string;
2196
- } | undefined;
4875
+ } | null | undefined;
2197
4876
  newCollaboration?: {
4877
+ status: "INACTIVE" | "APPROVED" | "ACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2198
4878
  id: string;
4879
+ createdAt: string | Date;
4880
+ updatedAt: string | Date;
4881
+ userId: string;
4882
+ company?: {
4883
+ id: string;
4884
+ createdAt: string | Date;
4885
+ updatedAt: string | Date;
4886
+ name: string;
4887
+ } | null | undefined;
4888
+ client?: {
4889
+ status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
4890
+ id: string;
4891
+ createdAt: string | Date;
4892
+ updatedAt: string | Date;
4893
+ name: string;
4894
+ crn: string;
4895
+ govLink: string;
4896
+ director: string;
4897
+ blacklistReason?: string | null | undefined;
4898
+ lastUpdatedBy?: {
4899
+ id: string;
4900
+ firstName: string;
4901
+ lastName: string;
4902
+ email: string;
4903
+ } | null | undefined;
4904
+ agentClientLinks?: {
4905
+ agentId: string;
4906
+ } | null | undefined;
4907
+ } | null | undefined;
4908
+ user?: {
4909
+ id: string;
4910
+ firstName: string;
4911
+ lastName: string;
4912
+ email: string;
4913
+ } | null | undefined;
2199
4914
  } | null | undefined;
2200
4915
  }>;
2201
4916
  409: z.ZodObject<{