@dakkitor/api-contracts 1.1.3 → 1.1.4

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;
@@ -297,17 +313,427 @@ export declare const FilterClientContactSchema: z.ZodObject<{
297
313
  sortBy?: "email" | "name" | "createdAt" | "updatedAt" | "position" | undefined;
298
314
  sortOrder?: "ASC" | "DESC" | undefined;
299
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
+ id: string;
357
+ name: string;
358
+ crn: string;
359
+ govLink: string;
360
+ director: string;
361
+ lastUpdatedBy: {
362
+ id: string;
363
+ firstName: string;
364
+ lastName: string;
365
+ email: string;
366
+ };
367
+ createdAt: string;
368
+ updatedAt: string;
369
+ version: number;
370
+ agentClientLinks: {
371
+ agentId: string;
372
+ };
373
+ blacklistReason?: string | null | undefined;
374
+ }, {
375
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
376
+ id: string;
377
+ name: string;
378
+ crn: string;
379
+ govLink: string;
380
+ director: string;
381
+ lastUpdatedBy: {
382
+ id: string;
383
+ firstName: string;
384
+ lastName: string;
385
+ email: string;
386
+ };
387
+ createdAt: string;
388
+ updatedAt: string;
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
+ id: string;
421
+ email: string;
422
+ name: string;
423
+ createdAt: string;
424
+ updatedAt: string;
425
+ version: number;
426
+ clientId: string;
427
+ client: {
428
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
429
+ id: string;
430
+ name: string;
431
+ crn: string;
432
+ govLink: string;
433
+ director: string;
434
+ lastUpdatedBy: {
435
+ id: string;
436
+ firstName: string;
437
+ lastName: string;
438
+ email: string;
439
+ };
440
+ createdAt: string;
441
+ updatedAt: string;
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
+ id: string;
459
+ email: string;
460
+ name: string;
461
+ createdAt: string;
462
+ updatedAt: string;
463
+ version: number;
464
+ clientId: string;
465
+ client: {
466
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
467
+ id: string;
468
+ name: string;
469
+ crn: string;
470
+ govLink: string;
471
+ director: string;
472
+ lastUpdatedBy: {
473
+ id: string;
474
+ firstName: string;
475
+ lastName: string;
476
+ email: string;
477
+ };
478
+ createdAt: string;
479
+ updatedAt: string;
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
+ id: string;
504
+ email: string;
505
+ name: string;
506
+ createdAt: string;
507
+ updatedAt: string;
508
+ version: number;
509
+ clientId: string;
510
+ client: {
511
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
512
+ id: string;
513
+ name: string;
514
+ crn: string;
515
+ govLink: string;
516
+ director: string;
517
+ lastUpdatedBy: {
518
+ id: string;
519
+ firstName: string;
520
+ lastName: string;
521
+ email: string;
522
+ };
523
+ createdAt: string;
524
+ updatedAt: string;
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
+ id: string;
549
+ email: string;
550
+ name: string;
551
+ createdAt: string;
552
+ updatedAt: string;
553
+ version: number;
554
+ clientId: string;
555
+ client: {
556
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
557
+ id: string;
558
+ name: string;
559
+ crn: string;
560
+ govLink: string;
561
+ director: string;
562
+ lastUpdatedBy: {
563
+ id: string;
564
+ firstName: string;
565
+ lastName: string;
566
+ email: string;
567
+ };
568
+ createdAt: string;
569
+ updatedAt: string;
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;
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
+ email: string;
617
+ name: string;
618
+ client: {
619
+ id: string;
620
+ };
621
+ phone: string;
622
+ position?: string | undefined;
623
+ source?: string | undefined;
624
+ }, {
625
+ email: string;
626
+ name: 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<{
@@ -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
+ email: string;
967
+ name: string;
968
+ phone: string;
969
+ position?: string | undefined;
970
+ source?: string | undefined;
971
+ }, {
972
+ email: string;
973
+ name: 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<{
@@ -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: "email" | "name" | "createdAt" | "updatedAt" | "position";
1301
+ sortOrder: "ASC" | "DESC";
1302
+ email?: string | undefined;
1303
+ name?: string | undefined;
1304
+ clientId?: string | undefined;
1305
+ phone?: string | undefined;
1306
+ createdById?: string | undefined;
1307
+ }, {
1308
+ limit?: number | undefined;
1309
+ email?: string | undefined;
1310
+ name?: string | undefined;
1311
+ page?: number | undefined;
1312
+ clientId?: string | undefined;
1313
+ phone?: string | undefined;
1314
+ createdById?: string | undefined;
1315
+ sortBy?: "email" | "name" | "createdAt" | "updatedAt" | "position" | undefined;
1316
+ sortOrder?: "ASC" | "DESC" | 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<{
@@ -1174,11 +1599,13 @@ 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: {
1608
+ items: {
1182
1609
  id: string;
1183
1610
  email: string;
1184
1611
  name: string;
@@ -1217,11 +1644,13 @@ 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: {
1653
+ items: {
1225
1654
  id: string;
1226
1655
  email: string;
1227
1656
  name: 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<{
@@ -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
+ email?: string | undefined;
2046
+ name?: string | undefined;
2047
+ position?: string | undefined;
2048
+ phone?: string | undefined;
2049
+ source?: string | undefined;
2050
+ }, {
2051
+ version: number;
2052
+ email?: string | undefined;
2053
+ name?: 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<{
@@ -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: typeof import("@ts-rest/core").ContractNoBody;
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