@dakkitor/api-contracts 1.1.3 → 1.1.5

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.
@@ -1,4 +1,20 @@
1
1
  import { z } from 'zod';
2
+ export declare const ClientContactUserSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ firstName: z.ZodString;
5
+ lastName: z.ZodString;
6
+ email: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: string;
9
+ firstName: string;
10
+ lastName: string;
11
+ email: string;
12
+ }, {
13
+ id: string;
14
+ firstName: string;
15
+ lastName: string;
16
+ email: string;
17
+ }>;
2
18
  export declare const ClientContactSchema: z.ZodObject<{
3
19
  id: z.ZodString;
4
20
  clientId: z.ZodString;
@@ -38,19 +54,19 @@ export declare const ClientContactSchema: z.ZodObject<{
38
54
  }>;
39
55
  }, "strip", z.ZodTypeAny, {
40
56
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
41
- id: string;
42
57
  name: string;
58
+ director: string;
59
+ createdAt: string;
60
+ updatedAt: string;
61
+ id: string;
43
62
  crn: string;
44
63
  govLink: string;
45
- director: string;
46
64
  lastUpdatedBy: {
47
65
  id: string;
48
66
  firstName: string;
49
67
  lastName: string;
50
68
  email: string;
51
69
  };
52
- createdAt: string;
53
- updatedAt: string;
54
70
  version: number;
55
71
  agentClientLinks: {
56
72
  agentId: string;
@@ -58,19 +74,19 @@ export declare const ClientContactSchema: z.ZodObject<{
58
74
  blacklistReason?: string | null | undefined;
59
75
  }, {
60
76
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
61
- id: string;
62
77
  name: string;
78
+ director: string;
79
+ createdAt: string;
80
+ updatedAt: string;
81
+ id: string;
63
82
  crn: string;
64
83
  govLink: string;
65
- director: string;
66
84
  lastUpdatedBy: {
67
85
  id: string;
68
86
  firstName: string;
69
87
  lastName: string;
70
88
  email: string;
71
89
  };
72
- createdAt: string;
73
- updatedAt: string;
74
90
  version: number;
75
91
  agentClientLinks: {
76
92
  agentId: string;
@@ -102,28 +118,28 @@ export declare const ClientContactSchema: z.ZodObject<{
102
118
  updatedAt: z.ZodString;
103
119
  version: z.ZodNumber;
104
120
  }, "strip", z.ZodTypeAny, {
105
- id: string;
106
- email: string;
107
121
  name: string;
108
122
  createdAt: string;
109
123
  updatedAt: string;
124
+ id: string;
125
+ email: string;
110
126
  version: number;
111
127
  clientId: string;
112
128
  client: {
113
129
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
114
- id: string;
115
130
  name: string;
131
+ director: string;
132
+ createdAt: string;
133
+ updatedAt: string;
134
+ id: string;
116
135
  crn: string;
117
136
  govLink: string;
118
- director: string;
119
137
  lastUpdatedBy: {
120
138
  id: string;
121
139
  firstName: string;
122
140
  lastName: string;
123
141
  email: string;
124
142
  };
125
- createdAt: string;
126
- updatedAt: string;
127
143
  version: number;
128
144
  agentClientLinks: {
129
145
  agentId: string;
@@ -140,28 +156,28 @@ export declare const ClientContactSchema: z.ZodObject<{
140
156
  position?: string | undefined;
141
157
  source?: string | undefined;
142
158
  }, {
143
- id: string;
144
- email: string;
145
159
  name: string;
146
160
  createdAt: string;
147
161
  updatedAt: string;
162
+ id: string;
163
+ email: string;
148
164
  version: number;
149
165
  clientId: string;
150
166
  client: {
151
167
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
152
- id: string;
153
168
  name: string;
169
+ director: string;
170
+ createdAt: string;
171
+ updatedAt: string;
172
+ id: string;
154
173
  crn: string;
155
174
  govLink: string;
156
- director: string;
157
175
  lastUpdatedBy: {
158
176
  id: string;
159
177
  firstName: string;
160
178
  lastName: string;
161
179
  email: string;
162
180
  };
163
- createdAt: string;
164
- updatedAt: string;
165
181
  version: number;
166
182
  agentClientLinks: {
167
183
  agentId: string;
@@ -192,8 +208,8 @@ export declare const CreateClientContactSchema: z.ZodObject<{
192
208
  email: z.ZodString;
193
209
  source: z.ZodOptional<z.ZodString>;
194
210
  }, "strip", z.ZodTypeAny, {
195
- email: string;
196
211
  name: string;
212
+ email: string;
197
213
  client: {
198
214
  id: string;
199
215
  };
@@ -201,8 +217,8 @@ export declare const CreateClientContactSchema: z.ZodObject<{
201
217
  position?: string | undefined;
202
218
  source?: string | undefined;
203
219
  }, {
204
- email: string;
205
220
  name: string;
221
+ email: string;
206
222
  client: {
207
223
  id: string;
208
224
  };
@@ -224,14 +240,14 @@ export declare const CreateClientContactBodySchema: z.ZodObject<Omit<{
224
240
  email: z.ZodString;
225
241
  source: z.ZodOptional<z.ZodString>;
226
242
  }, "client">, "strip", z.ZodTypeAny, {
227
- email: string;
228
243
  name: string;
244
+ email: string;
229
245
  phone: string;
230
246
  position?: string | undefined;
231
247
  source?: string | undefined;
232
248
  }, {
233
- email: string;
234
249
  name: string;
250
+ email: string;
235
251
  phone: string;
236
252
  position?: string | undefined;
237
253
  source?: string | undefined;
@@ -253,15 +269,15 @@ export declare const UpdateClientContactSchema: z.ZodObject<Omit<{
253
269
  version: z.ZodNumber;
254
270
  }, "client">, "strip", z.ZodTypeAny, {
255
271
  version: number;
256
- email?: string | undefined;
257
272
  name?: string | undefined;
273
+ email?: string | undefined;
258
274
  position?: string | undefined;
259
275
  phone?: string | undefined;
260
276
  source?: string | undefined;
261
277
  }, {
262
278
  version: number;
263
- email?: string | undefined;
264
279
  name?: string | undefined;
280
+ email?: string | undefined;
265
281
  position?: string | undefined;
266
282
  phone?: string | undefined;
267
283
  source?: string | undefined;
@@ -279,35 +295,445 @@ export declare const FilterClientContactSchema: z.ZodObject<{
279
295
  }, "strip", z.ZodTypeAny, {
280
296
  limit: number;
281
297
  page: number;
282
- sortBy: "email" | "name" | "createdAt" | "updatedAt" | "position";
298
+ sortBy: "name" | "createdAt" | "updatedAt" | "email" | "position";
283
299
  sortOrder: "ASC" | "DESC";
284
- email?: string | undefined;
285
300
  name?: string | undefined;
301
+ email?: string | undefined;
286
302
  clientId?: string | undefined;
287
303
  phone?: string | undefined;
288
304
  createdById?: string | undefined;
289
305
  }, {
290
306
  limit?: number | undefined;
291
- email?: string | undefined;
292
307
  name?: string | undefined;
308
+ email?: string | undefined;
293
309
  page?: number | undefined;
310
+ sortBy?: "name" | "createdAt" | "updatedAt" | "email" | "position" | undefined;
311
+ sortOrder?: "ASC" | "DESC" | undefined;
294
312
  clientId?: string | undefined;
295
313
  phone?: string | undefined;
296
314
  createdById?: string | undefined;
297
- sortBy?: "email" | "name" | "createdAt" | "updatedAt" | "position" | undefined;
298
- sortOrder?: "ASC" | "DESC" | undefined;
315
+ }>;
316
+ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
317
+ items: z.ZodArray<z.ZodObject<{
318
+ id: z.ZodString;
319
+ clientId: z.ZodString;
320
+ client: z.ZodObject<{
321
+ id: z.ZodString;
322
+ name: z.ZodString;
323
+ crn: z.ZodString;
324
+ govLink: z.ZodString;
325
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
326
+ director: z.ZodString;
327
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
328
+ lastUpdatedBy: z.ZodObject<{
329
+ id: z.ZodString;
330
+ firstName: z.ZodString;
331
+ lastName: z.ZodString;
332
+ email: z.ZodString;
333
+ }, "strip", z.ZodTypeAny, {
334
+ id: string;
335
+ firstName: string;
336
+ lastName: string;
337
+ email: string;
338
+ }, {
339
+ id: string;
340
+ firstName: string;
341
+ lastName: string;
342
+ email: string;
343
+ }>;
344
+ createdAt: z.ZodString;
345
+ updatedAt: z.ZodString;
346
+ version: z.ZodNumber;
347
+ agentClientLinks: z.ZodObject<{
348
+ agentId: z.ZodString;
349
+ }, "strip", z.ZodTypeAny, {
350
+ agentId: string;
351
+ }, {
352
+ agentId: string;
353
+ }>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
356
+ name: string;
357
+ director: string;
358
+ createdAt: string;
359
+ updatedAt: string;
360
+ id: string;
361
+ crn: string;
362
+ govLink: string;
363
+ lastUpdatedBy: {
364
+ id: string;
365
+ firstName: string;
366
+ lastName: string;
367
+ email: string;
368
+ };
369
+ version: number;
370
+ agentClientLinks: {
371
+ agentId: string;
372
+ };
373
+ blacklistReason?: string | null | undefined;
374
+ }, {
375
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
376
+ name: string;
377
+ director: string;
378
+ createdAt: string;
379
+ updatedAt: string;
380
+ id: string;
381
+ crn: string;
382
+ govLink: string;
383
+ lastUpdatedBy: {
384
+ id: string;
385
+ firstName: string;
386
+ lastName: string;
387
+ email: string;
388
+ };
389
+ version: number;
390
+ agentClientLinks: {
391
+ agentId: string;
392
+ };
393
+ blacklistReason?: string | null | undefined;
394
+ }>;
395
+ name: z.ZodString;
396
+ position: z.ZodOptional<z.ZodString>;
397
+ phone: z.ZodString;
398
+ email: z.ZodString;
399
+ source: z.ZodOptional<z.ZodString>;
400
+ createdBy: z.ZodObject<{
401
+ id: z.ZodString;
402
+ firstName: z.ZodString;
403
+ lastName: z.ZodString;
404
+ email: z.ZodString;
405
+ }, "strip", z.ZodTypeAny, {
406
+ id: string;
407
+ firstName: string;
408
+ lastName: string;
409
+ email: string;
410
+ }, {
411
+ id: string;
412
+ firstName: string;
413
+ lastName: string;
414
+ email: string;
415
+ }>;
416
+ createdAt: z.ZodString;
417
+ updatedAt: z.ZodString;
418
+ version: z.ZodNumber;
419
+ }, "strip", z.ZodTypeAny, {
420
+ name: string;
421
+ createdAt: string;
422
+ updatedAt: string;
423
+ id: string;
424
+ email: string;
425
+ version: number;
426
+ clientId: string;
427
+ client: {
428
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
429
+ name: string;
430
+ director: string;
431
+ createdAt: string;
432
+ updatedAt: string;
433
+ id: string;
434
+ crn: string;
435
+ govLink: string;
436
+ lastUpdatedBy: {
437
+ id: string;
438
+ firstName: string;
439
+ lastName: string;
440
+ email: string;
441
+ };
442
+ version: number;
443
+ agentClientLinks: {
444
+ agentId: string;
445
+ };
446
+ blacklistReason?: string | null | undefined;
447
+ };
448
+ phone: string;
449
+ createdBy: {
450
+ id: string;
451
+ firstName: string;
452
+ lastName: string;
453
+ email: string;
454
+ };
455
+ position?: string | undefined;
456
+ source?: string | undefined;
457
+ }, {
458
+ name: string;
459
+ createdAt: string;
460
+ updatedAt: string;
461
+ id: string;
462
+ email: string;
463
+ version: number;
464
+ clientId: string;
465
+ client: {
466
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
467
+ name: string;
468
+ director: string;
469
+ createdAt: string;
470
+ updatedAt: string;
471
+ id: string;
472
+ crn: string;
473
+ govLink: string;
474
+ lastUpdatedBy: {
475
+ id: string;
476
+ firstName: string;
477
+ lastName: string;
478
+ email: string;
479
+ };
480
+ version: number;
481
+ agentClientLinks: {
482
+ agentId: string;
483
+ };
484
+ blacklistReason?: string | null | undefined;
485
+ };
486
+ phone: string;
487
+ createdBy: {
488
+ id: string;
489
+ firstName: string;
490
+ lastName: string;
491
+ email: string;
492
+ };
493
+ position?: string | undefined;
494
+ source?: string | undefined;
495
+ }>, "many">;
496
+ totalCount: z.ZodNumber;
497
+ limit: z.ZodNumber;
498
+ skip: z.ZodNumber;
499
+ currentPage: z.ZodNumber;
500
+ totalPages: z.ZodNumber;
501
+ }, "strip", z.ZodTypeAny, {
502
+ items: {
503
+ name: string;
504
+ createdAt: string;
505
+ updatedAt: string;
506
+ id: string;
507
+ email: string;
508
+ version: number;
509
+ clientId: string;
510
+ client: {
511
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
512
+ name: string;
513
+ director: string;
514
+ createdAt: string;
515
+ updatedAt: string;
516
+ id: string;
517
+ crn: string;
518
+ govLink: string;
519
+ lastUpdatedBy: {
520
+ id: string;
521
+ firstName: string;
522
+ lastName: string;
523
+ email: string;
524
+ };
525
+ version: number;
526
+ agentClientLinks: {
527
+ agentId: string;
528
+ };
529
+ blacklistReason?: string | null | undefined;
530
+ };
531
+ phone: string;
532
+ createdBy: {
533
+ id: string;
534
+ firstName: string;
535
+ lastName: string;
536
+ email: string;
537
+ };
538
+ position?: string | undefined;
539
+ source?: string | undefined;
540
+ }[];
541
+ totalCount: number;
542
+ limit: number;
543
+ skip: number;
544
+ currentPage: number;
545
+ totalPages: number;
546
+ }, {
547
+ items: {
548
+ name: string;
549
+ createdAt: string;
550
+ updatedAt: string;
551
+ id: string;
552
+ email: string;
553
+ version: number;
554
+ clientId: string;
555
+ client: {
556
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
557
+ name: string;
558
+ director: string;
559
+ createdAt: string;
560
+ updatedAt: string;
561
+ id: string;
562
+ crn: string;
563
+ govLink: string;
564
+ lastUpdatedBy: {
565
+ id: string;
566
+ firstName: string;
567
+ lastName: string;
568
+ email: string;
569
+ };
570
+ version: number;
571
+ agentClientLinks: {
572
+ agentId: string;
573
+ };
574
+ blacklistReason?: string | null | undefined;
575
+ };
576
+ phone: string;
577
+ createdBy: {
578
+ id: string;
579
+ firstName: string;
580
+ lastName: string;
581
+ email: string;
582
+ };
583
+ position?: string | undefined;
584
+ source?: string | undefined;
585
+ }[];
586
+ totalCount: number;
587
+ limit: number;
588
+ skip: number;
589
+ currentPage: number;
590
+ totalPages: number;
299
591
  }>;
300
592
  export type ClientContactV2 = z.infer<typeof ClientContactSchema>;
301
593
  export type CreateClientContactV2 = z.infer<typeof CreateClientContactSchema>;
302
594
  export type CreateClientContactBodyV2 = z.infer<typeof CreateClientContactBodySchema>;
303
595
  export type UpdateClientContactV2 = z.infer<typeof UpdateClientContactSchema>;
304
596
  export type FilterClientContactV2 = z.infer<typeof FilterClientContactSchema>;
305
- declare const clientContactsContractConfig: {
306
- readonly create: {
307
- readonly method: "POST";
308
- readonly path: "/v2/client-contacts";
309
- readonly responses: {
310
- readonly 201: z.ZodObject<{
597
+ export type ClientContactPaginatedResponseV2 = z.infer<typeof ClientContactPaginatedResponseSchema>;
598
+ export declare const clientContactsContractRouter: {
599
+ create: {
600
+ summary: "Create a new client contact";
601
+ method: "POST";
602
+ body: z.ZodObject<{
603
+ client: z.ZodObject<{
604
+ id: z.ZodString;
605
+ }, "strip", z.ZodTypeAny, {
606
+ id: string;
607
+ }, {
608
+ id: string;
609
+ }>;
610
+ name: z.ZodString;
611
+ position: z.ZodOptional<z.ZodString>;
612
+ phone: z.ZodString;
613
+ email: z.ZodString;
614
+ source: z.ZodOptional<z.ZodString>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ name: string;
617
+ email: string;
618
+ client: {
619
+ id: string;
620
+ };
621
+ phone: string;
622
+ position?: string | undefined;
623
+ source?: string | undefined;
624
+ }, {
625
+ name: string;
626
+ email: string;
627
+ client: {
628
+ id: string;
629
+ };
630
+ phone: string;
631
+ position?: string | undefined;
632
+ source?: string | undefined;
633
+ }>;
634
+ path: "/v2/client-contacts";
635
+ responses: {
636
+ 400: z.ZodObject<{
637
+ statusCode: z.ZodNumber;
638
+ message: z.ZodString;
639
+ code: z.ZodString;
640
+ details: z.ZodOptional<z.ZodUnknown>;
641
+ timestamp: z.ZodString;
642
+ path: z.ZodString;
643
+ correlationId: z.ZodOptional<z.ZodString>;
644
+ }, "strip", z.ZodTypeAny, {
645
+ statusCode: number;
646
+ message: string;
647
+ code: string;
648
+ timestamp: string;
649
+ path: string;
650
+ details?: unknown;
651
+ correlationId?: string | undefined;
652
+ }, {
653
+ statusCode: number;
654
+ message: string;
655
+ code: string;
656
+ timestamp: string;
657
+ path: string;
658
+ details?: unknown;
659
+ correlationId?: string | undefined;
660
+ }>;
661
+ 401: z.ZodObject<{
662
+ statusCode: z.ZodNumber;
663
+ message: z.ZodString;
664
+ code: z.ZodString;
665
+ details: z.ZodOptional<z.ZodUnknown>;
666
+ timestamp: z.ZodString;
667
+ path: z.ZodString;
668
+ correlationId: z.ZodOptional<z.ZodString>;
669
+ }, "strip", z.ZodTypeAny, {
670
+ statusCode: number;
671
+ message: string;
672
+ code: string;
673
+ timestamp: string;
674
+ path: string;
675
+ details?: unknown;
676
+ correlationId?: string | undefined;
677
+ }, {
678
+ statusCode: number;
679
+ message: string;
680
+ code: string;
681
+ timestamp: string;
682
+ path: string;
683
+ details?: unknown;
684
+ correlationId?: string | undefined;
685
+ }>;
686
+ 403: z.ZodObject<{
687
+ statusCode: z.ZodNumber;
688
+ message: z.ZodString;
689
+ code: z.ZodString;
690
+ details: z.ZodOptional<z.ZodUnknown>;
691
+ timestamp: z.ZodString;
692
+ path: z.ZodString;
693
+ correlationId: z.ZodOptional<z.ZodString>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ statusCode: number;
696
+ message: string;
697
+ code: string;
698
+ timestamp: string;
699
+ path: string;
700
+ details?: unknown;
701
+ correlationId?: string | undefined;
702
+ }, {
703
+ statusCode: number;
704
+ message: string;
705
+ code: string;
706
+ timestamp: string;
707
+ path: string;
708
+ details?: unknown;
709
+ correlationId?: string | undefined;
710
+ }>;
711
+ 500: z.ZodObject<{
712
+ statusCode: z.ZodNumber;
713
+ message: z.ZodString;
714
+ code: z.ZodString;
715
+ details: z.ZodOptional<z.ZodUnknown>;
716
+ timestamp: z.ZodString;
717
+ path: z.ZodString;
718
+ correlationId: z.ZodOptional<z.ZodString>;
719
+ }, "strip", z.ZodTypeAny, {
720
+ statusCode: number;
721
+ message: string;
722
+ code: string;
723
+ timestamp: string;
724
+ path: string;
725
+ details?: unknown;
726
+ correlationId?: string | undefined;
727
+ }, {
728
+ statusCode: number;
729
+ message: string;
730
+ code: string;
731
+ timestamp: string;
732
+ path: string;
733
+ details?: unknown;
734
+ correlationId?: string | undefined;
735
+ }>;
736
+ 201: z.ZodObject<{
311
737
  id: z.ZodString;
312
738
  clientId: z.ZodString;
313
739
  client: z.ZodObject<{
@@ -346,19 +772,19 @@ declare const clientContactsContractConfig: {
346
772
  }>;
347
773
  }, "strip", z.ZodTypeAny, {
348
774
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
349
- id: string;
350
775
  name: string;
776
+ director: string;
777
+ createdAt: string;
778
+ updatedAt: string;
779
+ id: string;
351
780
  crn: string;
352
781
  govLink: string;
353
- director: string;
354
782
  lastUpdatedBy: {
355
783
  id: string;
356
784
  firstName: string;
357
785
  lastName: string;
358
786
  email: string;
359
787
  };
360
- createdAt: string;
361
- updatedAt: string;
362
788
  version: number;
363
789
  agentClientLinks: {
364
790
  agentId: string;
@@ -366,19 +792,19 @@ declare const clientContactsContractConfig: {
366
792
  blacklistReason?: string | null | undefined;
367
793
  }, {
368
794
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
369
- id: string;
370
795
  name: string;
796
+ director: string;
797
+ createdAt: string;
798
+ updatedAt: string;
799
+ id: string;
371
800
  crn: string;
372
801
  govLink: string;
373
- director: string;
374
802
  lastUpdatedBy: {
375
803
  id: string;
376
804
  firstName: string;
377
805
  lastName: string;
378
806
  email: string;
379
807
  };
380
- createdAt: string;
381
- updatedAt: string;
382
808
  version: number;
383
809
  agentClientLinks: {
384
810
  agentId: string;
@@ -410,28 +836,28 @@ declare const clientContactsContractConfig: {
410
836
  updatedAt: z.ZodString;
411
837
  version: z.ZodNumber;
412
838
  }, "strip", z.ZodTypeAny, {
413
- id: string;
414
- email: string;
415
839
  name: string;
416
840
  createdAt: string;
417
841
  updatedAt: string;
842
+ id: string;
843
+ email: string;
418
844
  version: number;
419
845
  clientId: string;
420
846
  client: {
421
847
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
422
- id: string;
423
848
  name: string;
849
+ director: string;
850
+ createdAt: string;
851
+ updatedAt: string;
852
+ id: string;
424
853
  crn: string;
425
854
  govLink: string;
426
- director: string;
427
855
  lastUpdatedBy: {
428
856
  id: string;
429
857
  firstName: string;
430
858
  lastName: string;
431
859
  email: string;
432
860
  };
433
- createdAt: string;
434
- updatedAt: string;
435
861
  version: number;
436
862
  agentClientLinks: {
437
863
  agentId: string;
@@ -448,28 +874,28 @@ declare const clientContactsContractConfig: {
448
874
  position?: string | undefined;
449
875
  source?: string | undefined;
450
876
  }, {
451
- id: string;
452
- email: string;
453
877
  name: string;
454
878
  createdAt: string;
455
879
  updatedAt: string;
880
+ id: string;
881
+ email: string;
456
882
  version: number;
457
883
  clientId: string;
458
884
  client: {
459
885
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
460
- id: string;
461
886
  name: string;
887
+ director: string;
888
+ createdAt: string;
889
+ updatedAt: string;
890
+ id: string;
462
891
  crn: string;
463
892
  govLink: string;
464
- director: string;
465
893
  lastUpdatedBy: {
466
894
  id: string;
467
895
  firstName: string;
468
896
  lastName: string;
469
897
  email: string;
470
898
  };
471
- createdAt: string;
472
- updatedAt: string;
473
899
  version: number;
474
900
  agentClientLinks: {
475
901
  agentId: string;
@@ -486,7 +912,7 @@ declare const clientContactsContractConfig: {
486
912
  position?: string | undefined;
487
913
  source?: string | undefined;
488
914
  }>;
489
- readonly 400: z.ZodObject<{
915
+ 409: z.ZodObject<{
490
916
  statusCode: z.ZodNumber;
491
917
  message: z.ZodString;
492
918
  code: z.ZodString;
@@ -511,7 +937,47 @@ declare const clientContactsContractConfig: {
511
937
  details?: unknown;
512
938
  correlationId?: string | undefined;
513
939
  }>;
514
- readonly 401: z.ZodObject<{
940
+ };
941
+ };
942
+ createByClientId: {
943
+ pathParams: z.ZodObject<{
944
+ clientId: z.ZodString;
945
+ }, "strip", z.ZodTypeAny, {
946
+ clientId: string;
947
+ }, {
948
+ clientId: string;
949
+ }>;
950
+ summary: "Create a new contact for a specific client";
951
+ method: "POST";
952
+ body: z.ZodObject<Omit<{
953
+ client: z.ZodObject<{
954
+ id: z.ZodString;
955
+ }, "strip", z.ZodTypeAny, {
956
+ id: string;
957
+ }, {
958
+ id: string;
959
+ }>;
960
+ name: z.ZodString;
961
+ position: z.ZodOptional<z.ZodString>;
962
+ phone: z.ZodString;
963
+ email: z.ZodString;
964
+ source: z.ZodOptional<z.ZodString>;
965
+ }, "client">, "strip", z.ZodTypeAny, {
966
+ name: string;
967
+ email: string;
968
+ phone: string;
969
+ position?: string | undefined;
970
+ source?: string | undefined;
971
+ }, {
972
+ name: string;
973
+ email: string;
974
+ phone: string;
975
+ position?: string | undefined;
976
+ source?: string | undefined;
977
+ }>;
978
+ path: "/v2/client-contacts/client/:clientId";
979
+ responses: {
980
+ 400: z.ZodObject<{
515
981
  statusCode: z.ZodNumber;
516
982
  message: z.ZodString;
517
983
  code: z.ZodString;
@@ -536,7 +1002,7 @@ declare const clientContactsContractConfig: {
536
1002
  details?: unknown;
537
1003
  correlationId?: string | undefined;
538
1004
  }>;
539
- readonly 403: z.ZodObject<{
1005
+ 401: z.ZodObject<{
540
1006
  statusCode: z.ZodNumber;
541
1007
  message: z.ZodString;
542
1008
  code: z.ZodString;
@@ -561,7 +1027,7 @@ declare const clientContactsContractConfig: {
561
1027
  details?: unknown;
562
1028
  correlationId?: string | undefined;
563
1029
  }>;
564
- readonly 409: z.ZodObject<{
1030
+ 403: z.ZodObject<{
565
1031
  statusCode: z.ZodNumber;
566
1032
  message: z.ZodString;
567
1033
  code: z.ZodString;
@@ -586,7 +1052,7 @@ declare const clientContactsContractConfig: {
586
1052
  details?: unknown;
587
1053
  correlationId?: string | undefined;
588
1054
  }>;
589
- readonly 500: z.ZodObject<{
1055
+ 500: z.ZodObject<{
590
1056
  statusCode: z.ZodNumber;
591
1057
  message: z.ZodString;
592
1058
  code: z.ZodString;
@@ -611,46 +1077,7 @@ declare const clientContactsContractConfig: {
611
1077
  details?: unknown;
612
1078
  correlationId?: string | undefined;
613
1079
  }>;
614
- };
615
- readonly body: z.ZodObject<{
616
- client: z.ZodObject<{
617
- id: z.ZodString;
618
- }, "strip", z.ZodTypeAny, {
619
- id: string;
620
- }, {
621
- id: string;
622
- }>;
623
- name: z.ZodString;
624
- position: z.ZodOptional<z.ZodString>;
625
- phone: z.ZodString;
626
- email: z.ZodString;
627
- source: z.ZodOptional<z.ZodString>;
628
- }, "strip", z.ZodTypeAny, {
629
- email: string;
630
- name: string;
631
- client: {
632
- id: string;
633
- };
634
- phone: string;
635
- position?: string | undefined;
636
- source?: string | undefined;
637
- }, {
638
- email: string;
639
- name: string;
640
- client: {
641
- id: string;
642
- };
643
- phone: string;
644
- position?: string | undefined;
645
- source?: string | undefined;
646
- }>;
647
- readonly summary: "Create a new client contact";
648
- };
649
- readonly createByClientId: {
650
- readonly method: "POST";
651
- readonly path: "/v2/client-contacts/client/:clientId";
652
- readonly responses: {
653
- readonly 201: z.ZodObject<{
1080
+ 201: z.ZodObject<{
654
1081
  id: z.ZodString;
655
1082
  clientId: z.ZodString;
656
1083
  client: z.ZodObject<{
@@ -689,19 +1116,19 @@ declare const clientContactsContractConfig: {
689
1116
  }>;
690
1117
  }, "strip", z.ZodTypeAny, {
691
1118
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
692
- id: string;
693
1119
  name: string;
1120
+ director: string;
1121
+ createdAt: string;
1122
+ updatedAt: string;
1123
+ id: string;
694
1124
  crn: string;
695
1125
  govLink: string;
696
- director: string;
697
1126
  lastUpdatedBy: {
698
1127
  id: string;
699
1128
  firstName: string;
700
1129
  lastName: string;
701
1130
  email: string;
702
1131
  };
703
- createdAt: string;
704
- updatedAt: string;
705
1132
  version: number;
706
1133
  agentClientLinks: {
707
1134
  agentId: string;
@@ -709,19 +1136,19 @@ declare const clientContactsContractConfig: {
709
1136
  blacklistReason?: string | null | undefined;
710
1137
  }, {
711
1138
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
712
- id: string;
713
1139
  name: string;
1140
+ director: string;
1141
+ createdAt: string;
1142
+ updatedAt: string;
1143
+ id: string;
714
1144
  crn: string;
715
1145
  govLink: string;
716
- director: string;
717
1146
  lastUpdatedBy: {
718
1147
  id: string;
719
1148
  firstName: string;
720
1149
  lastName: string;
721
1150
  email: string;
722
1151
  };
723
- createdAt: string;
724
- updatedAt: string;
725
1152
  version: number;
726
1153
  agentClientLinks: {
727
1154
  agentId: string;
@@ -753,28 +1180,28 @@ declare const clientContactsContractConfig: {
753
1180
  updatedAt: z.ZodString;
754
1181
  version: z.ZodNumber;
755
1182
  }, "strip", z.ZodTypeAny, {
756
- id: string;
757
- email: string;
758
1183
  name: string;
759
1184
  createdAt: string;
760
1185
  updatedAt: string;
1186
+ id: string;
1187
+ email: string;
761
1188
  version: number;
762
1189
  clientId: string;
763
1190
  client: {
764
1191
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
765
- id: string;
766
1192
  name: string;
1193
+ director: string;
1194
+ createdAt: string;
1195
+ updatedAt: string;
1196
+ id: string;
767
1197
  crn: string;
768
1198
  govLink: string;
769
- director: string;
770
1199
  lastUpdatedBy: {
771
1200
  id: string;
772
1201
  firstName: string;
773
1202
  lastName: string;
774
1203
  email: string;
775
1204
  };
776
- createdAt: string;
777
- updatedAt: string;
778
1205
  version: number;
779
1206
  agentClientLinks: {
780
1207
  agentId: string;
@@ -791,28 +1218,28 @@ declare const clientContactsContractConfig: {
791
1218
  position?: string | undefined;
792
1219
  source?: string | undefined;
793
1220
  }, {
794
- id: string;
795
- email: string;
796
1221
  name: string;
797
1222
  createdAt: string;
798
1223
  updatedAt: string;
1224
+ id: string;
1225
+ email: string;
799
1226
  version: number;
800
1227
  clientId: string;
801
1228
  client: {
802
1229
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
803
- id: string;
804
1230
  name: string;
1231
+ director: string;
1232
+ createdAt: string;
1233
+ updatedAt: string;
1234
+ id: string;
805
1235
  crn: string;
806
1236
  govLink: string;
807
- director: string;
808
1237
  lastUpdatedBy: {
809
1238
  id: string;
810
1239
  firstName: string;
811
1240
  lastName: string;
812
1241
  email: string;
813
1242
  };
814
- createdAt: string;
815
- updatedAt: string;
816
1243
  version: number;
817
1244
  agentClientLinks: {
818
1245
  agentId: string;
@@ -829,7 +1256,7 @@ declare const clientContactsContractConfig: {
829
1256
  position?: string | undefined;
830
1257
  source?: string | undefined;
831
1258
  }>;
832
- readonly 400: z.ZodObject<{
1259
+ 409: z.ZodObject<{
833
1260
  statusCode: z.ZodNumber;
834
1261
  message: z.ZodString;
835
1262
  code: z.ZodString;
@@ -854,7 +1281,45 @@ declare const clientContactsContractConfig: {
854
1281
  details?: unknown;
855
1282
  correlationId?: string | undefined;
856
1283
  }>;
857
- readonly 401: z.ZodObject<{
1284
+ };
1285
+ };
1286
+ findAll: {
1287
+ query: z.ZodObject<{
1288
+ page: z.ZodDefault<z.ZodNumber>;
1289
+ limit: z.ZodDefault<z.ZodNumber>;
1290
+ name: z.ZodOptional<z.ZodString>;
1291
+ email: z.ZodOptional<z.ZodString>;
1292
+ phone: z.ZodOptional<z.ZodString>;
1293
+ clientId: z.ZodOptional<z.ZodString>;
1294
+ createdById: z.ZodOptional<z.ZodString>;
1295
+ sortBy: z.ZodDefault<z.ZodEnum<["name", "position", "email", "createdAt", "updatedAt"]>>;
1296
+ sortOrder: z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>;
1297
+ }, "strip", z.ZodTypeAny, {
1298
+ limit: number;
1299
+ page: number;
1300
+ sortBy: "name" | "createdAt" | "updatedAt" | "email" | "position";
1301
+ sortOrder: "ASC" | "DESC";
1302
+ name?: string | undefined;
1303
+ email?: string | undefined;
1304
+ clientId?: string | undefined;
1305
+ phone?: string | undefined;
1306
+ createdById?: string | undefined;
1307
+ }, {
1308
+ limit?: number | undefined;
1309
+ name?: string | undefined;
1310
+ email?: string | undefined;
1311
+ page?: number | undefined;
1312
+ sortBy?: "name" | "createdAt" | "updatedAt" | "email" | "position" | undefined;
1313
+ sortOrder?: "ASC" | "DESC" | undefined;
1314
+ clientId?: string | undefined;
1315
+ phone?: string | undefined;
1316
+ createdById?: string | undefined;
1317
+ }>;
1318
+ summary: "Get all client contacts";
1319
+ method: "GET";
1320
+ path: "/v2/client-contacts";
1321
+ responses: {
1322
+ 400: z.ZodObject<{
858
1323
  statusCode: z.ZodNumber;
859
1324
  message: z.ZodString;
860
1325
  code: z.ZodString;
@@ -879,7 +1344,7 @@ declare const clientContactsContractConfig: {
879
1344
  details?: unknown;
880
1345
  correlationId?: string | undefined;
881
1346
  }>;
882
- readonly 403: z.ZodObject<{
1347
+ 401: z.ZodObject<{
883
1348
  statusCode: z.ZodNumber;
884
1349
  message: z.ZodString;
885
1350
  code: z.ZodString;
@@ -904,7 +1369,7 @@ declare const clientContactsContractConfig: {
904
1369
  details?: unknown;
905
1370
  correlationId?: string | undefined;
906
1371
  }>;
907
- readonly 409: z.ZodObject<{
1372
+ 403: z.ZodObject<{
908
1373
  statusCode: z.ZodNumber;
909
1374
  message: z.ZodString;
910
1375
  code: z.ZodString;
@@ -929,7 +1394,7 @@ declare const clientContactsContractConfig: {
929
1394
  details?: unknown;
930
1395
  correlationId?: string | undefined;
931
1396
  }>;
932
- readonly 500: z.ZodObject<{
1397
+ 500: z.ZodObject<{
933
1398
  statusCode: z.ZodNumber;
934
1399
  message: z.ZodString;
935
1400
  code: z.ZodString;
@@ -954,48 +1419,8 @@ declare const clientContactsContractConfig: {
954
1419
  details?: unknown;
955
1420
  correlationId?: string | undefined;
956
1421
  }>;
957
- };
958
- readonly pathParams: z.ZodObject<{
959
- clientId: z.ZodString;
960
- }, "strip", z.ZodTypeAny, {
961
- clientId: string;
962
- }, {
963
- clientId: string;
964
- }>;
965
- readonly body: z.ZodObject<Omit<{
966
- client: z.ZodObject<{
967
- id: z.ZodString;
968
- }, "strip", z.ZodTypeAny, {
969
- id: string;
970
- }, {
971
- id: string;
972
- }>;
973
- name: z.ZodString;
974
- position: z.ZodOptional<z.ZodString>;
975
- phone: z.ZodString;
976
- email: z.ZodString;
977
- source: z.ZodOptional<z.ZodString>;
978
- }, "client">, "strip", z.ZodTypeAny, {
979
- email: string;
980
- name: string;
981
- phone: string;
982
- position?: string | undefined;
983
- source?: string | undefined;
984
- }, {
985
- email: string;
986
- name: string;
987
- phone: string;
988
- position?: string | undefined;
989
- source?: string | undefined;
990
- }>;
991
- readonly summary: "Create a new contact for a specific client";
992
- };
993
- readonly findAll: {
994
- readonly method: "GET";
995
- readonly path: "/v2/client-contacts";
996
- readonly responses: {
997
- readonly 200: z.ZodObject<{
998
- data: z.ZodArray<z.ZodObject<{
1422
+ 200: z.ZodObject<{
1423
+ items: z.ZodArray<z.ZodObject<{
999
1424
  id: z.ZodString;
1000
1425
  clientId: z.ZodString;
1001
1426
  client: z.ZodObject<{
@@ -1034,19 +1459,19 @@ declare const clientContactsContractConfig: {
1034
1459
  }>;
1035
1460
  }, "strip", z.ZodTypeAny, {
1036
1461
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1037
- id: string;
1038
1462
  name: string;
1463
+ director: string;
1464
+ createdAt: string;
1465
+ updatedAt: string;
1466
+ id: string;
1039
1467
  crn: string;
1040
1468
  govLink: string;
1041
- director: string;
1042
1469
  lastUpdatedBy: {
1043
1470
  id: string;
1044
1471
  firstName: string;
1045
1472
  lastName: string;
1046
1473
  email: string;
1047
1474
  };
1048
- createdAt: string;
1049
- updatedAt: string;
1050
1475
  version: number;
1051
1476
  agentClientLinks: {
1052
1477
  agentId: string;
@@ -1054,19 +1479,19 @@ declare const clientContactsContractConfig: {
1054
1479
  blacklistReason?: string | null | undefined;
1055
1480
  }, {
1056
1481
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1057
- id: string;
1058
1482
  name: string;
1483
+ director: string;
1484
+ createdAt: string;
1485
+ updatedAt: string;
1486
+ id: string;
1059
1487
  crn: string;
1060
1488
  govLink: string;
1061
- director: string;
1062
1489
  lastUpdatedBy: {
1063
1490
  id: string;
1064
1491
  firstName: string;
1065
1492
  lastName: string;
1066
1493
  email: string;
1067
1494
  };
1068
- createdAt: string;
1069
- updatedAt: string;
1070
1495
  version: number;
1071
1496
  agentClientLinks: {
1072
1497
  agentId: string;
@@ -1098,28 +1523,28 @@ declare const clientContactsContractConfig: {
1098
1523
  updatedAt: z.ZodString;
1099
1524
  version: z.ZodNumber;
1100
1525
  }, "strip", z.ZodTypeAny, {
1101
- id: string;
1102
- email: string;
1103
1526
  name: string;
1104
1527
  createdAt: string;
1105
1528
  updatedAt: string;
1529
+ id: string;
1530
+ email: string;
1106
1531
  version: number;
1107
1532
  clientId: string;
1108
1533
  client: {
1109
1534
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1110
- id: string;
1111
1535
  name: string;
1536
+ director: string;
1537
+ createdAt: string;
1538
+ updatedAt: string;
1539
+ id: string;
1112
1540
  crn: string;
1113
1541
  govLink: string;
1114
- director: string;
1115
1542
  lastUpdatedBy: {
1116
1543
  id: string;
1117
1544
  firstName: string;
1118
1545
  lastName: string;
1119
1546
  email: string;
1120
1547
  };
1121
- createdAt: string;
1122
- updatedAt: string;
1123
1548
  version: number;
1124
1549
  agentClientLinks: {
1125
1550
  agentId: string;
@@ -1136,28 +1561,28 @@ declare const clientContactsContractConfig: {
1136
1561
  position?: string | undefined;
1137
1562
  source?: string | undefined;
1138
1563
  }, {
1139
- id: string;
1140
- email: string;
1141
1564
  name: string;
1142
1565
  createdAt: string;
1143
1566
  updatedAt: string;
1567
+ id: string;
1568
+ email: string;
1144
1569
  version: number;
1145
1570
  clientId: string;
1146
1571
  client: {
1147
1572
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1148
- id: string;
1149
1573
  name: string;
1574
+ director: string;
1575
+ createdAt: string;
1576
+ updatedAt: string;
1577
+ id: string;
1150
1578
  crn: string;
1151
1579
  govLink: string;
1152
- director: string;
1153
1580
  lastUpdatedBy: {
1154
1581
  id: string;
1155
1582
  firstName: string;
1156
1583
  lastName: string;
1157
1584
  email: string;
1158
1585
  };
1159
- createdAt: string;
1160
- updatedAt: string;
1161
1586
  version: number;
1162
1587
  agentClientLinks: {
1163
1588
  agentId: string;
@@ -1174,33 +1599,35 @@ declare const clientContactsContractConfig: {
1174
1599
  position?: string | undefined;
1175
1600
  source?: string | undefined;
1176
1601
  }>, "many">;
1177
- total: z.ZodNumber;
1602
+ totalCount: z.ZodNumber;
1178
1603
  limit: z.ZodNumber;
1179
1604
  skip: z.ZodNumber;
1605
+ currentPage: z.ZodNumber;
1606
+ totalPages: z.ZodNumber;
1180
1607
  }, "strip", z.ZodTypeAny, {
1181
- data: {
1182
- id: string;
1183
- email: string;
1608
+ items: {
1184
1609
  name: string;
1185
1610
  createdAt: string;
1186
1611
  updatedAt: string;
1612
+ id: string;
1613
+ email: string;
1187
1614
  version: number;
1188
1615
  clientId: string;
1189
1616
  client: {
1190
1617
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1191
- id: string;
1192
1618
  name: string;
1619
+ director: string;
1620
+ createdAt: string;
1621
+ updatedAt: string;
1622
+ id: string;
1193
1623
  crn: string;
1194
1624
  govLink: string;
1195
- director: string;
1196
1625
  lastUpdatedBy: {
1197
1626
  id: string;
1198
1627
  firstName: string;
1199
1628
  lastName: string;
1200
1629
  email: string;
1201
1630
  };
1202
- createdAt: string;
1203
- updatedAt: string;
1204
1631
  version: number;
1205
1632
  agentClientLinks: {
1206
1633
  agentId: string;
@@ -1217,33 +1644,35 @@ declare const clientContactsContractConfig: {
1217
1644
  position?: string | undefined;
1218
1645
  source?: string | undefined;
1219
1646
  }[];
1220
- total: number;
1647
+ totalCount: number;
1221
1648
  limit: number;
1222
1649
  skip: number;
1650
+ currentPage: number;
1651
+ totalPages: number;
1223
1652
  }, {
1224
- data: {
1225
- id: string;
1226
- email: string;
1653
+ items: {
1227
1654
  name: string;
1228
1655
  createdAt: string;
1229
1656
  updatedAt: string;
1657
+ id: string;
1658
+ email: string;
1230
1659
  version: number;
1231
1660
  clientId: string;
1232
1661
  client: {
1233
1662
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1234
- id: string;
1235
1663
  name: string;
1664
+ director: string;
1665
+ createdAt: string;
1666
+ updatedAt: string;
1667
+ id: string;
1236
1668
  crn: string;
1237
1669
  govLink: string;
1238
- director: string;
1239
1670
  lastUpdatedBy: {
1240
1671
  id: string;
1241
1672
  firstName: string;
1242
1673
  lastName: string;
1243
1674
  email: string;
1244
1675
  };
1245
- createdAt: string;
1246
- updatedAt: string;
1247
1676
  version: number;
1248
1677
  agentClientLinks: {
1249
1678
  agentId: string;
@@ -1260,11 +1689,27 @@ declare const clientContactsContractConfig: {
1260
1689
  position?: string | undefined;
1261
1690
  source?: string | undefined;
1262
1691
  }[];
1263
- total: number;
1692
+ totalCount: number;
1264
1693
  limit: number;
1265
1694
  skip: number;
1695
+ currentPage: number;
1696
+ totalPages: number;
1266
1697
  }>;
1267
- readonly 400: z.ZodObject<{
1698
+ };
1699
+ };
1700
+ findOne: {
1701
+ pathParams: z.ZodObject<{
1702
+ contactId: z.ZodString;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ contactId: string;
1705
+ }, {
1706
+ contactId: string;
1707
+ }>;
1708
+ summary: "Get a client contact by ID";
1709
+ method: "GET";
1710
+ path: "/v2/client-contacts/:contactId";
1711
+ responses: {
1712
+ 400: z.ZodObject<{
1268
1713
  statusCode: z.ZodNumber;
1269
1714
  message: z.ZodString;
1270
1715
  code: z.ZodString;
@@ -1289,7 +1734,7 @@ declare const clientContactsContractConfig: {
1289
1734
  details?: unknown;
1290
1735
  correlationId?: string | undefined;
1291
1736
  }>;
1292
- readonly 401: z.ZodObject<{
1737
+ 401: z.ZodObject<{
1293
1738
  statusCode: z.ZodNumber;
1294
1739
  message: z.ZodString;
1295
1740
  code: z.ZodString;
@@ -1314,7 +1759,7 @@ declare const clientContactsContractConfig: {
1314
1759
  details?: unknown;
1315
1760
  correlationId?: string | undefined;
1316
1761
  }>;
1317
- readonly 403: z.ZodObject<{
1762
+ 403: z.ZodObject<{
1318
1763
  statusCode: z.ZodNumber;
1319
1764
  message: z.ZodString;
1320
1765
  code: z.ZodString;
@@ -1339,7 +1784,7 @@ declare const clientContactsContractConfig: {
1339
1784
  details?: unknown;
1340
1785
  correlationId?: string | undefined;
1341
1786
  }>;
1342
- readonly 500: z.ZodObject<{
1787
+ 500: z.ZodObject<{
1343
1788
  statusCode: z.ZodNumber;
1344
1789
  message: z.ZodString;
1345
1790
  code: z.ZodString;
@@ -1364,45 +1809,7 @@ declare const clientContactsContractConfig: {
1364
1809
  details?: unknown;
1365
1810
  correlationId?: string | undefined;
1366
1811
  }>;
1367
- };
1368
- readonly query: z.ZodObject<{
1369
- page: z.ZodDefault<z.ZodNumber>;
1370
- limit: z.ZodDefault<z.ZodNumber>;
1371
- name: z.ZodOptional<z.ZodString>;
1372
- email: z.ZodOptional<z.ZodString>;
1373
- phone: z.ZodOptional<z.ZodString>;
1374
- clientId: z.ZodOptional<z.ZodString>;
1375
- createdById: z.ZodOptional<z.ZodString>;
1376
- sortBy: z.ZodDefault<z.ZodEnum<["name", "position", "email", "createdAt", "updatedAt"]>>;
1377
- sortOrder: z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>;
1378
- }, "strip", z.ZodTypeAny, {
1379
- limit: number;
1380
- page: number;
1381
- sortBy: "email" | "name" | "createdAt" | "updatedAt" | "position";
1382
- sortOrder: "ASC" | "DESC";
1383
- email?: string | undefined;
1384
- name?: string | undefined;
1385
- clientId?: string | undefined;
1386
- phone?: string | undefined;
1387
- createdById?: string | undefined;
1388
- }, {
1389
- limit?: number | undefined;
1390
- email?: string | undefined;
1391
- name?: string | undefined;
1392
- page?: number | undefined;
1393
- clientId?: string | undefined;
1394
- phone?: string | undefined;
1395
- createdById?: string | undefined;
1396
- sortBy?: "email" | "name" | "createdAt" | "updatedAt" | "position" | undefined;
1397
- sortOrder?: "ASC" | "DESC" | undefined;
1398
- }>;
1399
- readonly summary: "Get all client contacts";
1400
- };
1401
- readonly findOne: {
1402
- readonly method: "GET";
1403
- readonly path: "/v2/client-contacts/:contactId";
1404
- readonly responses: {
1405
- readonly 200: z.ZodObject<{
1812
+ 200: z.ZodObject<{
1406
1813
  id: z.ZodString;
1407
1814
  clientId: z.ZodString;
1408
1815
  client: z.ZodObject<{
@@ -1441,19 +1848,19 @@ declare const clientContactsContractConfig: {
1441
1848
  }>;
1442
1849
  }, "strip", z.ZodTypeAny, {
1443
1850
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1851
+ name: string;
1852
+ director: string;
1853
+ createdAt: string;
1854
+ updatedAt: string;
1444
1855
  id: string;
1445
- name: string;
1446
1856
  crn: string;
1447
1857
  govLink: string;
1448
- director: string;
1449
1858
  lastUpdatedBy: {
1450
1859
  id: string;
1451
1860
  firstName: string;
1452
1861
  lastName: string;
1453
1862
  email: string;
1454
1863
  };
1455
- createdAt: string;
1456
- updatedAt: string;
1457
1864
  version: number;
1458
1865
  agentClientLinks: {
1459
1866
  agentId: string;
@@ -1461,19 +1868,19 @@ declare const clientContactsContractConfig: {
1461
1868
  blacklistReason?: string | null | undefined;
1462
1869
  }, {
1463
1870
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1464
- id: string;
1465
1871
  name: string;
1872
+ director: string;
1873
+ createdAt: string;
1874
+ updatedAt: string;
1875
+ id: string;
1466
1876
  crn: string;
1467
1877
  govLink: string;
1468
- director: string;
1469
1878
  lastUpdatedBy: {
1470
1879
  id: string;
1471
1880
  firstName: string;
1472
1881
  lastName: string;
1473
1882
  email: string;
1474
1883
  };
1475
- createdAt: string;
1476
- updatedAt: string;
1477
1884
  version: number;
1478
1885
  agentClientLinks: {
1479
1886
  agentId: string;
@@ -1505,28 +1912,28 @@ declare const clientContactsContractConfig: {
1505
1912
  updatedAt: z.ZodString;
1506
1913
  version: z.ZodNumber;
1507
1914
  }, "strip", z.ZodTypeAny, {
1508
- id: string;
1509
- email: string;
1510
1915
  name: string;
1511
1916
  createdAt: string;
1512
1917
  updatedAt: string;
1918
+ id: string;
1919
+ email: string;
1513
1920
  version: number;
1514
1921
  clientId: string;
1515
1922
  client: {
1516
1923
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1517
- id: string;
1518
1924
  name: string;
1925
+ director: string;
1926
+ createdAt: string;
1927
+ updatedAt: string;
1928
+ id: string;
1519
1929
  crn: string;
1520
1930
  govLink: string;
1521
- director: string;
1522
1931
  lastUpdatedBy: {
1523
1932
  id: string;
1524
1933
  firstName: string;
1525
1934
  lastName: string;
1526
1935
  email: string;
1527
1936
  };
1528
- createdAt: string;
1529
- updatedAt: string;
1530
1937
  version: number;
1531
1938
  agentClientLinks: {
1532
1939
  agentId: string;
@@ -1543,28 +1950,28 @@ declare const clientContactsContractConfig: {
1543
1950
  position?: string | undefined;
1544
1951
  source?: string | undefined;
1545
1952
  }, {
1546
- id: string;
1547
- email: string;
1548
1953
  name: string;
1549
1954
  createdAt: string;
1550
1955
  updatedAt: string;
1956
+ id: string;
1957
+ email: string;
1551
1958
  version: number;
1552
1959
  clientId: string;
1553
1960
  client: {
1554
1961
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1555
- id: string;
1556
1962
  name: string;
1963
+ director: string;
1964
+ createdAt: string;
1965
+ updatedAt: string;
1966
+ id: string;
1557
1967
  crn: string;
1558
1968
  govLink: string;
1559
- director: string;
1560
1969
  lastUpdatedBy: {
1561
1970
  id: string;
1562
1971
  firstName: string;
1563
1972
  lastName: string;
1564
1973
  email: string;
1565
1974
  };
1566
- createdAt: string;
1567
- updatedAt: string;
1568
1975
  version: number;
1569
1976
  agentClientLinks: {
1570
1977
  agentId: string;
@@ -1581,7 +1988,7 @@ declare const clientContactsContractConfig: {
1581
1988
  position?: string | undefined;
1582
1989
  source?: string | undefined;
1583
1990
  }>;
1584
- readonly 400: z.ZodObject<{
1991
+ 404: z.ZodObject<{
1585
1992
  statusCode: z.ZodNumber;
1586
1993
  message: z.ZodString;
1587
1994
  code: z.ZodString;
@@ -1606,7 +2013,51 @@ declare const clientContactsContractConfig: {
1606
2013
  details?: unknown;
1607
2014
  correlationId?: string | undefined;
1608
2015
  }>;
1609
- readonly 401: z.ZodObject<{
2016
+ };
2017
+ };
2018
+ update: {
2019
+ pathParams: z.ZodObject<{
2020
+ contactId: z.ZodString;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ contactId: string;
2023
+ }, {
2024
+ contactId: string;
2025
+ }>;
2026
+ summary: "Update a client contact";
2027
+ method: "PATCH";
2028
+ body: z.ZodObject<Omit<{
2029
+ client: z.ZodOptional<z.ZodObject<{
2030
+ id: z.ZodString;
2031
+ }, "strip", z.ZodTypeAny, {
2032
+ id: string;
2033
+ }, {
2034
+ id: string;
2035
+ }>>;
2036
+ name: z.ZodOptional<z.ZodString>;
2037
+ position: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2038
+ phone: z.ZodOptional<z.ZodString>;
2039
+ email: z.ZodOptional<z.ZodString>;
2040
+ source: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2041
+ } & {
2042
+ version: z.ZodNumber;
2043
+ }, "client">, "strip", z.ZodTypeAny, {
2044
+ version: number;
2045
+ name?: string | undefined;
2046
+ email?: string | undefined;
2047
+ position?: string | undefined;
2048
+ phone?: string | undefined;
2049
+ source?: string | undefined;
2050
+ }, {
2051
+ version: number;
2052
+ name?: string | undefined;
2053
+ email?: string | undefined;
2054
+ position?: string | undefined;
2055
+ phone?: string | undefined;
2056
+ source?: string | undefined;
2057
+ }>;
2058
+ path: "/v2/client-contacts/:contactId";
2059
+ responses: {
2060
+ 400: z.ZodObject<{
1610
2061
  statusCode: z.ZodNumber;
1611
2062
  message: z.ZodString;
1612
2063
  code: z.ZodString;
@@ -1631,7 +2082,7 @@ declare const clientContactsContractConfig: {
1631
2082
  details?: unknown;
1632
2083
  correlationId?: string | undefined;
1633
2084
  }>;
1634
- readonly 403: z.ZodObject<{
2085
+ 401: z.ZodObject<{
1635
2086
  statusCode: z.ZodNumber;
1636
2087
  message: z.ZodString;
1637
2088
  code: z.ZodString;
@@ -1656,7 +2107,7 @@ declare const clientContactsContractConfig: {
1656
2107
  details?: unknown;
1657
2108
  correlationId?: string | undefined;
1658
2109
  }>;
1659
- readonly 404: z.ZodObject<{
2110
+ 403: z.ZodObject<{
1660
2111
  statusCode: z.ZodNumber;
1661
2112
  message: z.ZodString;
1662
2113
  code: z.ZodString;
@@ -1681,7 +2132,7 @@ declare const clientContactsContractConfig: {
1681
2132
  details?: unknown;
1682
2133
  correlationId?: string | undefined;
1683
2134
  }>;
1684
- readonly 500: z.ZodObject<{
2135
+ 500: z.ZodObject<{
1685
2136
  statusCode: z.ZodNumber;
1686
2137
  message: z.ZodString;
1687
2138
  code: z.ZodString;
@@ -1706,21 +2157,7 @@ declare const clientContactsContractConfig: {
1706
2157
  details?: unknown;
1707
2158
  correlationId?: string | undefined;
1708
2159
  }>;
1709
- };
1710
- readonly pathParams: z.ZodObject<{
1711
- contactId: z.ZodString;
1712
- }, "strip", z.ZodTypeAny, {
1713
- contactId: string;
1714
- }, {
1715
- contactId: string;
1716
- }>;
1717
- readonly summary: "Get a client contact by ID";
1718
- };
1719
- readonly update: {
1720
- readonly method: "PATCH";
1721
- readonly path: "/v2/client-contacts/:contactId";
1722
- readonly responses: {
1723
- readonly 200: z.ZodObject<{
2160
+ 200: z.ZodObject<{
1724
2161
  id: z.ZodString;
1725
2162
  clientId: z.ZodString;
1726
2163
  client: z.ZodObject<{
@@ -1759,19 +2196,19 @@ declare const clientContactsContractConfig: {
1759
2196
  }>;
1760
2197
  }, "strip", z.ZodTypeAny, {
1761
2198
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1762
- id: string;
1763
2199
  name: string;
2200
+ director: string;
2201
+ createdAt: string;
2202
+ updatedAt: string;
2203
+ id: string;
1764
2204
  crn: string;
1765
2205
  govLink: string;
1766
- director: string;
1767
2206
  lastUpdatedBy: {
1768
2207
  id: string;
1769
2208
  firstName: string;
1770
2209
  lastName: string;
1771
2210
  email: string;
1772
2211
  };
1773
- createdAt: string;
1774
- updatedAt: string;
1775
2212
  version: number;
1776
2213
  agentClientLinks: {
1777
2214
  agentId: string;
@@ -1779,19 +2216,19 @@ declare const clientContactsContractConfig: {
1779
2216
  blacklistReason?: string | null | undefined;
1780
2217
  }, {
1781
2218
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1782
- id: string;
1783
2219
  name: string;
2220
+ director: string;
2221
+ createdAt: string;
2222
+ updatedAt: string;
2223
+ id: string;
1784
2224
  crn: string;
1785
2225
  govLink: string;
1786
- director: string;
1787
2226
  lastUpdatedBy: {
1788
2227
  id: string;
1789
2228
  firstName: string;
1790
2229
  lastName: string;
1791
2230
  email: string;
1792
2231
  };
1793
- createdAt: string;
1794
- updatedAt: string;
1795
2232
  version: number;
1796
2233
  agentClientLinks: {
1797
2234
  agentId: string;
@@ -1823,28 +2260,28 @@ declare const clientContactsContractConfig: {
1823
2260
  updatedAt: z.ZodString;
1824
2261
  version: z.ZodNumber;
1825
2262
  }, "strip", z.ZodTypeAny, {
1826
- id: string;
1827
- email: string;
1828
2263
  name: string;
1829
2264
  createdAt: string;
1830
2265
  updatedAt: string;
2266
+ id: string;
2267
+ email: string;
1831
2268
  version: number;
1832
2269
  clientId: string;
1833
2270
  client: {
1834
2271
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1835
- id: string;
1836
2272
  name: string;
2273
+ director: string;
2274
+ createdAt: string;
2275
+ updatedAt: string;
2276
+ id: string;
1837
2277
  crn: string;
1838
2278
  govLink: string;
1839
- director: string;
1840
2279
  lastUpdatedBy: {
1841
2280
  id: string;
1842
2281
  firstName: string;
1843
2282
  lastName: string;
1844
2283
  email: string;
1845
2284
  };
1846
- createdAt: string;
1847
- updatedAt: string;
1848
2285
  version: number;
1849
2286
  agentClientLinks: {
1850
2287
  agentId: string;
@@ -1861,28 +2298,28 @@ declare const clientContactsContractConfig: {
1861
2298
  position?: string | undefined;
1862
2299
  source?: string | undefined;
1863
2300
  }, {
1864
- id: string;
1865
- email: string;
1866
2301
  name: string;
1867
2302
  createdAt: string;
1868
2303
  updatedAt: string;
2304
+ id: string;
2305
+ email: string;
1869
2306
  version: number;
1870
2307
  clientId: string;
1871
2308
  client: {
1872
2309
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1873
- id: string;
1874
2310
  name: string;
2311
+ director: string;
2312
+ createdAt: string;
2313
+ updatedAt: string;
2314
+ id: string;
1875
2315
  crn: string;
1876
2316
  govLink: string;
1877
- director: string;
1878
2317
  lastUpdatedBy: {
1879
2318
  id: string;
1880
2319
  firstName: string;
1881
2320
  lastName: string;
1882
2321
  email: string;
1883
2322
  };
1884
- createdAt: string;
1885
- updatedAt: string;
1886
2323
  version: number;
1887
2324
  agentClientLinks: {
1888
2325
  agentId: string;
@@ -1899,107 +2336,7 @@ declare const clientContactsContractConfig: {
1899
2336
  position?: string | undefined;
1900
2337
  source?: string | undefined;
1901
2338
  }>;
1902
- readonly 400: z.ZodObject<{
1903
- statusCode: z.ZodNumber;
1904
- message: z.ZodString;
1905
- code: z.ZodString;
1906
- details: z.ZodOptional<z.ZodUnknown>;
1907
- timestamp: z.ZodString;
1908
- path: z.ZodString;
1909
- correlationId: z.ZodOptional<z.ZodString>;
1910
- }, "strip", z.ZodTypeAny, {
1911
- statusCode: number;
1912
- message: string;
1913
- code: string;
1914
- timestamp: string;
1915
- path: string;
1916
- details?: unknown;
1917
- correlationId?: string | undefined;
1918
- }, {
1919
- statusCode: number;
1920
- message: string;
1921
- code: string;
1922
- timestamp: string;
1923
- path: string;
1924
- details?: unknown;
1925
- correlationId?: string | undefined;
1926
- }>;
1927
- readonly 401: z.ZodObject<{
1928
- statusCode: z.ZodNumber;
1929
- message: z.ZodString;
1930
- code: z.ZodString;
1931
- details: z.ZodOptional<z.ZodUnknown>;
1932
- timestamp: z.ZodString;
1933
- path: z.ZodString;
1934
- correlationId: z.ZodOptional<z.ZodString>;
1935
- }, "strip", z.ZodTypeAny, {
1936
- statusCode: number;
1937
- message: string;
1938
- code: string;
1939
- timestamp: string;
1940
- path: string;
1941
- details?: unknown;
1942
- correlationId?: string | undefined;
1943
- }, {
1944
- statusCode: number;
1945
- message: string;
1946
- code: string;
1947
- timestamp: string;
1948
- path: string;
1949
- details?: unknown;
1950
- correlationId?: string | undefined;
1951
- }>;
1952
- readonly 403: z.ZodObject<{
1953
- statusCode: z.ZodNumber;
1954
- message: z.ZodString;
1955
- code: z.ZodString;
1956
- details: z.ZodOptional<z.ZodUnknown>;
1957
- timestamp: z.ZodString;
1958
- path: z.ZodString;
1959
- correlationId: z.ZodOptional<z.ZodString>;
1960
- }, "strip", z.ZodTypeAny, {
1961
- statusCode: number;
1962
- message: string;
1963
- code: string;
1964
- timestamp: string;
1965
- path: string;
1966
- details?: unknown;
1967
- correlationId?: string | undefined;
1968
- }, {
1969
- statusCode: number;
1970
- message: string;
1971
- code: string;
1972
- timestamp: string;
1973
- path: string;
1974
- details?: unknown;
1975
- correlationId?: string | undefined;
1976
- }>;
1977
- readonly 404: z.ZodObject<{
1978
- statusCode: z.ZodNumber;
1979
- message: z.ZodString;
1980
- code: z.ZodString;
1981
- details: z.ZodOptional<z.ZodUnknown>;
1982
- timestamp: z.ZodString;
1983
- path: z.ZodString;
1984
- correlationId: z.ZodOptional<z.ZodString>;
1985
- }, "strip", z.ZodTypeAny, {
1986
- statusCode: number;
1987
- message: string;
1988
- code: string;
1989
- timestamp: string;
1990
- path: string;
1991
- details?: unknown;
1992
- correlationId?: string | undefined;
1993
- }, {
1994
- statusCode: number;
1995
- message: string;
1996
- code: string;
1997
- timestamp: string;
1998
- path: string;
1999
- details?: unknown;
2000
- correlationId?: string | undefined;
2001
- }>;
2002
- readonly 409: z.ZodObject<{
2339
+ 404: z.ZodObject<{
2003
2340
  statusCode: z.ZodNumber;
2004
2341
  message: z.ZodString;
2005
2342
  code: z.ZodString;
@@ -2024,7 +2361,7 @@ declare const clientContactsContractConfig: {
2024
2361
  details?: unknown;
2025
2362
  correlationId?: string | undefined;
2026
2363
  }>;
2027
- readonly 500: z.ZodObject<{
2364
+ 409: z.ZodObject<{
2028
2365
  statusCode: z.ZodNumber;
2029
2366
  message: z.ZodString;
2030
2367
  code: z.ZodString;
@@ -2050,51 +2387,21 @@ declare const clientContactsContractConfig: {
2050
2387
  correlationId?: string | undefined;
2051
2388
  }>;
2052
2389
  };
2053
- readonly pathParams: z.ZodObject<{
2390
+ };
2391
+ remove: {
2392
+ pathParams: z.ZodObject<{
2054
2393
  contactId: z.ZodString;
2055
2394
  }, "strip", z.ZodTypeAny, {
2056
2395
  contactId: string;
2057
2396
  }, {
2058
2397
  contactId: string;
2059
2398
  }>;
2060
- readonly body: z.ZodObject<Omit<{
2061
- client: z.ZodOptional<z.ZodObject<{
2062
- id: z.ZodString;
2063
- }, "strip", z.ZodTypeAny, {
2064
- id: string;
2065
- }, {
2066
- id: string;
2067
- }>>;
2068
- name: z.ZodOptional<z.ZodString>;
2069
- position: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2070
- phone: z.ZodOptional<z.ZodString>;
2071
- email: z.ZodOptional<z.ZodString>;
2072
- source: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2073
- } & {
2074
- version: z.ZodNumber;
2075
- }, "client">, "strip", z.ZodTypeAny, {
2076
- version: number;
2077
- email?: string | undefined;
2078
- name?: string | undefined;
2079
- position?: string | undefined;
2080
- phone?: string | undefined;
2081
- source?: string | undefined;
2082
- }, {
2083
- version: number;
2084
- email?: string | undefined;
2085
- name?: string | undefined;
2086
- position?: string | undefined;
2087
- phone?: string | undefined;
2088
- source?: string | undefined;
2089
- }>;
2090
- readonly summary: "Update a client contact";
2091
- };
2092
- readonly remove: {
2093
- readonly method: "DELETE";
2094
- readonly path: "/v2/client-contacts/:contactId";
2095
- readonly responses: {
2096
- readonly 204: typeof import("@ts-rest/core").ContractNoBody;
2097
- readonly 400: z.ZodObject<{
2399
+ summary: "Delete a client contact";
2400
+ method: "DELETE";
2401
+ body: typeof import("@ts-rest/core").ContractNoBody;
2402
+ path: "/v2/client-contacts/:contactId";
2403
+ responses: {
2404
+ 400: z.ZodObject<{
2098
2405
  statusCode: z.ZodNumber;
2099
2406
  message: z.ZodString;
2100
2407
  code: z.ZodString;
@@ -2119,7 +2426,7 @@ declare const clientContactsContractConfig: {
2119
2426
  details?: unknown;
2120
2427
  correlationId?: string | undefined;
2121
2428
  }>;
2122
- readonly 401: z.ZodObject<{
2429
+ 401: z.ZodObject<{
2123
2430
  statusCode: z.ZodNumber;
2124
2431
  message: z.ZodString;
2125
2432
  code: z.ZodString;
@@ -2144,7 +2451,7 @@ declare const clientContactsContractConfig: {
2144
2451
  details?: unknown;
2145
2452
  correlationId?: string | undefined;
2146
2453
  }>;
2147
- readonly 403: z.ZodObject<{
2454
+ 403: z.ZodObject<{
2148
2455
  statusCode: z.ZodNumber;
2149
2456
  message: z.ZodString;
2150
2457
  code: z.ZodString;
@@ -2169,7 +2476,7 @@ declare const clientContactsContractConfig: {
2169
2476
  details?: unknown;
2170
2477
  correlationId?: string | undefined;
2171
2478
  }>;
2172
- readonly 404: z.ZodObject<{
2479
+ 500: z.ZodObject<{
2173
2480
  statusCode: z.ZodNumber;
2174
2481
  message: z.ZodString;
2175
2482
  code: z.ZodString;
@@ -2194,7 +2501,8 @@ declare const clientContactsContractConfig: {
2194
2501
  details?: unknown;
2195
2502
  correlationId?: string | undefined;
2196
2503
  }>;
2197
- readonly 500: z.ZodObject<{
2504
+ 204: z.ZodUndefined;
2505
+ 404: z.ZodObject<{
2198
2506
  statusCode: z.ZodNumber;
2199
2507
  message: z.ZodString;
2200
2508
  code: z.ZodString;
@@ -2220,17 +2528,6 @@ declare const clientContactsContractConfig: {
2220
2528
  correlationId?: string | undefined;
2221
2529
  }>;
2222
2530
  };
2223
- readonly pathParams: z.ZodObject<{
2224
- contactId: z.ZodString;
2225
- }, "strip", z.ZodTypeAny, {
2226
- contactId: string;
2227
- }, {
2228
- contactId: string;
2229
- }>;
2230
- readonly body: typeof import("@ts-rest/core").ContractNoBody;
2231
- readonly summary: "Delete a client contact";
2232
2531
  };
2233
2532
  };
2234
- export declare const clientContactsContract: typeof clientContactsContractConfig;
2235
- export {};
2236
2533
  //# sourceMappingURL=client-contacts.contract.d.ts.map