@dakkitor/api-contracts 1.1.4 → 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.
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  export * from './client-contacts/client-contacts.contract';
2
2
  export * from './clients/clients.contract';
3
3
  export * from './common/error-schemas';
4
+ export * from './common/openapi-metadata';
4
5
  export * from './common/pagination.schema';
5
6
  export declare const apiContractRouter: {
6
- clients: {
7
+ Clients: {
7
8
  create: {
8
9
  summary: "Create a new client";
9
10
  method: "POST";
@@ -13,12 +14,12 @@ export declare const apiContractRouter: {
13
14
  director: import("zod").ZodString;
14
15
  }, "strip", import("zod").ZodTypeAny, {
15
16
  name: string;
16
- govLink: string;
17
17
  director: string;
18
+ govLink: string;
18
19
  }, {
19
20
  name: string;
20
- govLink: string;
21
21
  director: string;
22
+ govLink: string;
22
23
  }>;
23
24
  path: "/v2/clients";
24
25
  responses: {
@@ -158,19 +159,19 @@ export declare const apiContractRouter: {
158
159
  }>;
159
160
  }, "strip", import("zod").ZodTypeAny, {
160
161
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
161
- id: string;
162
162
  name: string;
163
+ director: string;
164
+ createdAt: string;
165
+ updatedAt: string;
166
+ id: string;
163
167
  crn: string;
164
168
  govLink: string;
165
- director: string;
166
169
  lastUpdatedBy: {
167
170
  id: string;
168
171
  firstName: string;
169
172
  lastName: string;
170
173
  email: string;
171
174
  };
172
- createdAt: string;
173
- updatedAt: string;
174
175
  version: number;
175
176
  agentClientLinks: {
176
177
  agentId: string;
@@ -178,19 +179,19 @@ export declare const apiContractRouter: {
178
179
  blacklistReason?: string | null | undefined;
179
180
  }, {
180
181
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
181
- id: string;
182
182
  name: string;
183
+ director: string;
184
+ createdAt: string;
185
+ updatedAt: string;
186
+ id: string;
183
187
  crn: string;
184
188
  govLink: string;
185
- director: string;
186
189
  lastUpdatedBy: {
187
190
  id: string;
188
191
  firstName: string;
189
192
  lastName: string;
190
193
  email: string;
191
194
  };
192
- createdAt: string;
193
- updatedAt: string;
194
195
  version: number;
195
196
  agentClientLinks: {
196
197
  agentId: string;
@@ -228,18 +229,45 @@ export declare const apiContractRouter: {
228
229
  query: import("zod").ZodObject<{
229
230
  limit: import("zod").ZodDefault<import("zod").ZodNumber>;
230
231
  page: import("zod").ZodDefault<import("zod").ZodNumber>;
231
- search: import("zod").ZodOptional<import("zod").ZodString>;
232
+ name: import("zod").ZodOptional<import("zod").ZodString>;
232
233
  status: import("zod").ZodOptional<import("zod").ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
234
+ director: import("zod").ZodOptional<import("zod").ZodString>;
235
+ createdAt: import("zod").ZodOptional<import("zod").ZodObject<{
236
+ from: import("zod").ZodOptional<import("zod").ZodString>;
237
+ to: import("zod").ZodOptional<import("zod").ZodString>;
238
+ }, "strip", import("zod").ZodTypeAny, {
239
+ from?: string | undefined;
240
+ to?: string | undefined;
241
+ }, {
242
+ from?: string | undefined;
243
+ to?: string | undefined;
244
+ }>>;
245
+ sortBy: import("zod").ZodOptional<import("zod").ZodEnum<["name", "director", "createdAt", "updatedAt"]>>;
246
+ sortOrder: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
233
247
  }, "strip", import("zod").ZodTypeAny, {
234
248
  limit: number;
235
249
  page: number;
236
250
  status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
237
- search?: string | undefined;
251
+ name?: string | undefined;
252
+ director?: string | undefined;
253
+ createdAt?: {
254
+ from?: string | undefined;
255
+ to?: string | undefined;
256
+ } | undefined;
257
+ sortBy?: "name" | "director" | "createdAt" | "updatedAt" | undefined;
258
+ sortOrder?: "ASC" | "DESC" | undefined;
238
259
  }, {
239
260
  status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
240
261
  limit?: number | undefined;
262
+ name?: string | undefined;
263
+ director?: string | undefined;
264
+ createdAt?: {
265
+ from?: string | undefined;
266
+ to?: string | undefined;
267
+ } | undefined;
241
268
  page?: number | undefined;
242
- search?: string | undefined;
269
+ sortBy?: "name" | "director" | "createdAt" | "updatedAt" | undefined;
270
+ sortOrder?: "ASC" | "DESC" | undefined;
243
271
  }>;
244
272
  summary: "Get all clients";
245
273
  method: "GET";
@@ -382,19 +410,19 @@ export declare const apiContractRouter: {
382
410
  }>;
383
411
  }, "strip", import("zod").ZodTypeAny, {
384
412
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
385
- id: string;
386
413
  name: string;
414
+ director: string;
415
+ createdAt: string;
416
+ updatedAt: string;
417
+ id: string;
387
418
  crn: string;
388
419
  govLink: string;
389
- director: string;
390
420
  lastUpdatedBy: {
391
421
  id: string;
392
422
  firstName: string;
393
423
  lastName: string;
394
424
  email: string;
395
425
  };
396
- createdAt: string;
397
- updatedAt: string;
398
426
  version: number;
399
427
  agentClientLinks: {
400
428
  agentId: string;
@@ -402,19 +430,19 @@ export declare const apiContractRouter: {
402
430
  blacklistReason?: string | null | undefined;
403
431
  }, {
404
432
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
405
- id: string;
406
433
  name: string;
434
+ director: string;
435
+ createdAt: string;
436
+ updatedAt: string;
437
+ id: string;
407
438
  crn: string;
408
439
  govLink: string;
409
- director: string;
410
440
  lastUpdatedBy: {
411
441
  id: string;
412
442
  firstName: string;
413
443
  lastName: string;
414
444
  email: string;
415
445
  };
416
- createdAt: string;
417
- updatedAt: string;
418
446
  version: number;
419
447
  agentClientLinks: {
420
448
  agentId: string;
@@ -429,19 +457,19 @@ export declare const apiContractRouter: {
429
457
  }, "strip", import("zod").ZodTypeAny, {
430
458
  items: {
431
459
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
432
- id: string;
433
460
  name: string;
461
+ director: string;
462
+ createdAt: string;
463
+ updatedAt: string;
464
+ id: string;
434
465
  crn: string;
435
466
  govLink: string;
436
- director: string;
437
467
  lastUpdatedBy: {
438
468
  id: string;
439
469
  firstName: string;
440
470
  lastName: string;
441
471
  email: string;
442
472
  };
443
- createdAt: string;
444
- updatedAt: string;
445
473
  version: number;
446
474
  agentClientLinks: {
447
475
  agentId: string;
@@ -456,19 +484,19 @@ export declare const apiContractRouter: {
456
484
  }, {
457
485
  items: {
458
486
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
459
- id: string;
460
487
  name: string;
488
+ director: string;
489
+ createdAt: string;
490
+ updatedAt: string;
491
+ id: string;
461
492
  crn: string;
462
493
  govLink: string;
463
- director: string;
464
494
  lastUpdatedBy: {
465
495
  id: string;
466
496
  firstName: string;
467
497
  lastName: string;
468
498
  email: string;
469
499
  };
470
- createdAt: string;
471
- updatedAt: string;
472
500
  version: number;
473
501
  agentClientLinks: {
474
502
  agentId: string;
@@ -485,11 +513,14 @@ export declare const apiContractRouter: {
485
513
  };
486
514
  autocomplete: {
487
515
  query: import("zod").ZodObject<{
488
- search: import("zod").ZodOptional<import("zod").ZodString>;
516
+ query: import("zod").ZodOptional<import("zod").ZodString>;
517
+ id: import("zod").ZodOptional<import("zod").ZodString>;
489
518
  }, "strip", import("zod").ZodTypeAny, {
490
- search?: string | undefined;
519
+ id?: string | undefined;
520
+ query?: string | undefined;
491
521
  }, {
492
- search?: string | undefined;
522
+ id?: string | undefined;
523
+ query?: string | undefined;
493
524
  }>;
494
525
  summary: "Get clients for autocomplete";
495
526
  method: "GET";
@@ -599,11 +630,11 @@ export declare const apiContractRouter: {
599
630
  id: import("zod").ZodString;
600
631
  name: import("zod").ZodString;
601
632
  }, "strip", import("zod").ZodTypeAny, {
602
- id: string;
603
633
  name: string;
604
- }, {
605
634
  id: string;
635
+ }, {
606
636
  name: string;
637
+ id: string;
607
638
  }>, "many">;
608
639
  };
609
640
  };
@@ -755,19 +786,19 @@ export declare const apiContractRouter: {
755
786
  }>;
756
787
  }, "strip", import("zod").ZodTypeAny, {
757
788
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
758
- id: string;
759
789
  name: string;
790
+ director: string;
791
+ createdAt: string;
792
+ updatedAt: string;
793
+ id: string;
760
794
  crn: string;
761
795
  govLink: string;
762
- director: string;
763
796
  lastUpdatedBy: {
764
797
  id: string;
765
798
  firstName: string;
766
799
  lastName: string;
767
800
  email: string;
768
801
  };
769
- createdAt: string;
770
- updatedAt: string;
771
802
  version: number;
772
803
  agentClientLinks: {
773
804
  agentId: string;
@@ -775,19 +806,19 @@ export declare const apiContractRouter: {
775
806
  blacklistReason?: string | null | undefined;
776
807
  }, {
777
808
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
778
- id: string;
779
809
  name: string;
810
+ director: string;
811
+ createdAt: string;
812
+ updatedAt: string;
813
+ id: string;
780
814
  crn: string;
781
815
  govLink: string;
782
- director: string;
783
816
  lastUpdatedBy: {
784
817
  id: string;
785
818
  firstName: string;
786
819
  lastName: string;
787
820
  email: string;
788
821
  };
789
- createdAt: string;
790
- updatedAt: string;
791
822
  version: number;
792
823
  agentClientLinks: {
793
824
  agentId: string;
@@ -840,26 +871,26 @@ export declare const apiContractRouter: {
840
871
  }, "strip", import("zod").ZodTypeAny, {
841
872
  status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
842
873
  name?: string | undefined;
843
- govLink?: string | undefined;
844
874
  director?: string | undefined;
875
+ govLink?: string | undefined;
845
876
  blacklistReason?: string | null | undefined;
846
877
  }, {
847
878
  status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
848
879
  name?: string | undefined;
849
- govLink?: string | undefined;
850
880
  director?: string | undefined;
881
+ govLink?: string | undefined;
851
882
  blacklistReason?: string | null | undefined;
852
883
  }>, {
853
884
  status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
854
885
  name?: string | undefined;
855
- govLink?: string | undefined;
856
886
  director?: string | undefined;
887
+ govLink?: string | undefined;
857
888
  blacklistReason?: string | null | undefined;
858
889
  }, {
859
890
  status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
860
891
  name?: string | undefined;
861
- govLink?: string | undefined;
862
892
  director?: string | undefined;
893
+ govLink?: string | undefined;
863
894
  blacklistReason?: string | null | undefined;
864
895
  }>;
865
896
  path: "/v2/clients/:id";
@@ -1000,19 +1031,19 @@ export declare const apiContractRouter: {
1000
1031
  }>;
1001
1032
  }, "strip", import("zod").ZodTypeAny, {
1002
1033
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1003
- id: string;
1004
1034
  name: string;
1035
+ director: string;
1036
+ createdAt: string;
1037
+ updatedAt: string;
1038
+ id: string;
1005
1039
  crn: string;
1006
1040
  govLink: string;
1007
- director: string;
1008
1041
  lastUpdatedBy: {
1009
1042
  id: string;
1010
1043
  firstName: string;
1011
1044
  lastName: string;
1012
1045
  email: string;
1013
1046
  };
1014
- createdAt: string;
1015
- updatedAt: string;
1016
1047
  version: number;
1017
1048
  agentClientLinks: {
1018
1049
  agentId: string;
@@ -1020,19 +1051,19 @@ export declare const apiContractRouter: {
1020
1051
  blacklistReason?: string | null | undefined;
1021
1052
  }, {
1022
1053
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1023
- id: string;
1024
1054
  name: string;
1055
+ director: string;
1056
+ createdAt: string;
1057
+ updatedAt: string;
1058
+ id: string;
1025
1059
  crn: string;
1026
1060
  govLink: string;
1027
- director: string;
1028
1061
  lastUpdatedBy: {
1029
1062
  id: string;
1030
1063
  firstName: string;
1031
1064
  lastName: string;
1032
1065
  email: string;
1033
1066
  };
1034
- createdAt: string;
1035
- updatedAt: string;
1036
1067
  version: number;
1037
1068
  agentClientLinks: {
1038
1069
  agentId: string;
@@ -1204,7 +1235,7 @@ export declare const apiContractRouter: {
1204
1235
  details?: unknown;
1205
1236
  correlationId?: string | undefined;
1206
1237
  }>;
1207
- 204: typeof import("@ts-rest/core").ContractNoBody;
1238
+ 204: import("zod").ZodUndefined;
1208
1239
  404: import("zod").ZodObject<{
1209
1240
  statusCode: import("zod").ZodNumber;
1210
1241
  message: import("zod").ZodString;
@@ -1233,7 +1264,7 @@ export declare const apiContractRouter: {
1233
1264
  };
1234
1265
  };
1235
1266
  };
1236
- clientContacts: {
1267
+ ClientContacts: {
1237
1268
  create: {
1238
1269
  summary: "Create a new client contact";
1239
1270
  method: "POST";
@@ -1251,8 +1282,8 @@ export declare const apiContractRouter: {
1251
1282
  email: import("zod").ZodString;
1252
1283
  source: import("zod").ZodOptional<import("zod").ZodString>;
1253
1284
  }, "strip", import("zod").ZodTypeAny, {
1254
- email: string;
1255
1285
  name: string;
1286
+ email: string;
1256
1287
  client: {
1257
1288
  id: string;
1258
1289
  };
@@ -1260,8 +1291,8 @@ export declare const apiContractRouter: {
1260
1291
  position?: string | undefined;
1261
1292
  source?: string | undefined;
1262
1293
  }, {
1263
- email: string;
1264
1294
  name: string;
1295
+ email: string;
1265
1296
  client: {
1266
1297
  id: string;
1267
1298
  };
@@ -1410,19 +1441,19 @@ export declare const apiContractRouter: {
1410
1441
  }>;
1411
1442
  }, "strip", import("zod").ZodTypeAny, {
1412
1443
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1413
- id: string;
1414
1444
  name: string;
1445
+ director: string;
1446
+ createdAt: string;
1447
+ updatedAt: string;
1448
+ id: string;
1415
1449
  crn: string;
1416
1450
  govLink: string;
1417
- director: string;
1418
1451
  lastUpdatedBy: {
1419
1452
  id: string;
1420
1453
  firstName: string;
1421
1454
  lastName: string;
1422
1455
  email: string;
1423
1456
  };
1424
- createdAt: string;
1425
- updatedAt: string;
1426
1457
  version: number;
1427
1458
  agentClientLinks: {
1428
1459
  agentId: string;
@@ -1430,19 +1461,19 @@ export declare const apiContractRouter: {
1430
1461
  blacklistReason?: string | null | undefined;
1431
1462
  }, {
1432
1463
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1433
- id: string;
1434
1464
  name: string;
1465
+ director: string;
1466
+ createdAt: string;
1467
+ updatedAt: string;
1468
+ id: string;
1435
1469
  crn: string;
1436
1470
  govLink: string;
1437
- director: string;
1438
1471
  lastUpdatedBy: {
1439
1472
  id: string;
1440
1473
  firstName: string;
1441
1474
  lastName: string;
1442
1475
  email: string;
1443
1476
  };
1444
- createdAt: string;
1445
- updatedAt: string;
1446
1477
  version: number;
1447
1478
  agentClientLinks: {
1448
1479
  agentId: string;
@@ -1474,28 +1505,28 @@ export declare const apiContractRouter: {
1474
1505
  updatedAt: import("zod").ZodString;
1475
1506
  version: import("zod").ZodNumber;
1476
1507
  }, "strip", import("zod").ZodTypeAny, {
1477
- id: string;
1478
- email: string;
1479
1508
  name: string;
1480
1509
  createdAt: string;
1481
1510
  updatedAt: string;
1511
+ id: string;
1512
+ email: string;
1482
1513
  version: number;
1483
1514
  clientId: string;
1484
1515
  client: {
1485
1516
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1486
- id: string;
1487
1517
  name: string;
1518
+ director: string;
1519
+ createdAt: string;
1520
+ updatedAt: string;
1521
+ id: string;
1488
1522
  crn: string;
1489
1523
  govLink: string;
1490
- director: string;
1491
1524
  lastUpdatedBy: {
1492
1525
  id: string;
1493
1526
  firstName: string;
1494
1527
  lastName: string;
1495
1528
  email: string;
1496
1529
  };
1497
- createdAt: string;
1498
- updatedAt: string;
1499
1530
  version: number;
1500
1531
  agentClientLinks: {
1501
1532
  agentId: string;
@@ -1512,28 +1543,28 @@ export declare const apiContractRouter: {
1512
1543
  position?: string | undefined;
1513
1544
  source?: string | undefined;
1514
1545
  }, {
1515
- id: string;
1516
- email: string;
1517
1546
  name: string;
1518
1547
  createdAt: string;
1519
1548
  updatedAt: string;
1549
+ id: string;
1550
+ email: string;
1520
1551
  version: number;
1521
1552
  clientId: string;
1522
1553
  client: {
1523
1554
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1524
- id: string;
1525
1555
  name: string;
1556
+ director: string;
1557
+ createdAt: string;
1558
+ updatedAt: string;
1559
+ id: string;
1526
1560
  crn: string;
1527
1561
  govLink: string;
1528
- director: string;
1529
1562
  lastUpdatedBy: {
1530
1563
  id: string;
1531
1564
  firstName: string;
1532
1565
  lastName: string;
1533
1566
  email: string;
1534
1567
  };
1535
- createdAt: string;
1536
- updatedAt: string;
1537
1568
  version: number;
1538
1569
  agentClientLinks: {
1539
1570
  agentId: string;
@@ -1601,14 +1632,14 @@ export declare const apiContractRouter: {
1601
1632
  email: import("zod").ZodString;
1602
1633
  source: import("zod").ZodOptional<import("zod").ZodString>;
1603
1634
  }, "client">, "strip", import("zod").ZodTypeAny, {
1604
- email: string;
1605
1635
  name: string;
1636
+ email: string;
1606
1637
  phone: string;
1607
1638
  position?: string | undefined;
1608
1639
  source?: string | undefined;
1609
1640
  }, {
1610
- email: string;
1611
1641
  name: string;
1642
+ email: string;
1612
1643
  phone: string;
1613
1644
  position?: string | undefined;
1614
1645
  source?: string | undefined;
@@ -1754,19 +1785,19 @@ export declare const apiContractRouter: {
1754
1785
  }>;
1755
1786
  }, "strip", import("zod").ZodTypeAny, {
1756
1787
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1757
- id: string;
1758
1788
  name: string;
1789
+ director: string;
1790
+ createdAt: string;
1791
+ updatedAt: string;
1792
+ id: string;
1759
1793
  crn: string;
1760
1794
  govLink: string;
1761
- director: string;
1762
1795
  lastUpdatedBy: {
1763
1796
  id: string;
1764
1797
  firstName: string;
1765
1798
  lastName: string;
1766
1799
  email: string;
1767
1800
  };
1768
- createdAt: string;
1769
- updatedAt: string;
1770
1801
  version: number;
1771
1802
  agentClientLinks: {
1772
1803
  agentId: string;
@@ -1774,19 +1805,19 @@ export declare const apiContractRouter: {
1774
1805
  blacklistReason?: string | null | undefined;
1775
1806
  }, {
1776
1807
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1777
- id: string;
1778
1808
  name: string;
1809
+ director: string;
1810
+ createdAt: string;
1811
+ updatedAt: string;
1812
+ id: string;
1779
1813
  crn: string;
1780
1814
  govLink: string;
1781
- director: string;
1782
1815
  lastUpdatedBy: {
1783
1816
  id: string;
1784
1817
  firstName: string;
1785
1818
  lastName: string;
1786
1819
  email: string;
1787
1820
  };
1788
- createdAt: string;
1789
- updatedAt: string;
1790
1821
  version: number;
1791
1822
  agentClientLinks: {
1792
1823
  agentId: string;
@@ -1818,28 +1849,28 @@ export declare const apiContractRouter: {
1818
1849
  updatedAt: import("zod").ZodString;
1819
1850
  version: import("zod").ZodNumber;
1820
1851
  }, "strip", import("zod").ZodTypeAny, {
1821
- id: string;
1822
- email: string;
1823
1852
  name: string;
1824
1853
  createdAt: string;
1825
1854
  updatedAt: string;
1855
+ id: string;
1856
+ email: string;
1826
1857
  version: number;
1827
1858
  clientId: string;
1828
1859
  client: {
1829
1860
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1830
- id: string;
1831
1861
  name: string;
1862
+ director: string;
1863
+ createdAt: string;
1864
+ updatedAt: string;
1865
+ id: string;
1832
1866
  crn: string;
1833
1867
  govLink: string;
1834
- director: string;
1835
1868
  lastUpdatedBy: {
1836
1869
  id: string;
1837
1870
  firstName: string;
1838
1871
  lastName: string;
1839
1872
  email: string;
1840
1873
  };
1841
- createdAt: string;
1842
- updatedAt: string;
1843
1874
  version: number;
1844
1875
  agentClientLinks: {
1845
1876
  agentId: string;
@@ -1856,28 +1887,28 @@ export declare const apiContractRouter: {
1856
1887
  position?: string | undefined;
1857
1888
  source?: string | undefined;
1858
1889
  }, {
1859
- id: string;
1860
- email: string;
1861
1890
  name: string;
1862
1891
  createdAt: string;
1863
1892
  updatedAt: string;
1893
+ id: string;
1894
+ email: string;
1864
1895
  version: number;
1865
1896
  clientId: string;
1866
1897
  client: {
1867
1898
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1868
- id: string;
1869
1899
  name: string;
1900
+ director: string;
1901
+ createdAt: string;
1902
+ updatedAt: string;
1903
+ id: string;
1870
1904
  crn: string;
1871
1905
  govLink: string;
1872
- director: string;
1873
1906
  lastUpdatedBy: {
1874
1907
  id: string;
1875
1908
  firstName: string;
1876
1909
  lastName: string;
1877
1910
  email: string;
1878
1911
  };
1879
- createdAt: string;
1880
- updatedAt: string;
1881
1912
  version: number;
1882
1913
  agentClientLinks: {
1883
1914
  agentId: string;
@@ -1935,23 +1966,23 @@ export declare const apiContractRouter: {
1935
1966
  }, "strip", import("zod").ZodTypeAny, {
1936
1967
  limit: number;
1937
1968
  page: number;
1938
- sortBy: "email" | "name" | "createdAt" | "updatedAt" | "position";
1969
+ sortBy: "name" | "createdAt" | "updatedAt" | "email" | "position";
1939
1970
  sortOrder: "ASC" | "DESC";
1940
- email?: string | undefined;
1941
1971
  name?: string | undefined;
1972
+ email?: string | undefined;
1942
1973
  clientId?: string | undefined;
1943
1974
  phone?: string | undefined;
1944
1975
  createdById?: string | undefined;
1945
1976
  }, {
1946
1977
  limit?: number | undefined;
1947
- email?: string | undefined;
1948
1978
  name?: string | undefined;
1979
+ email?: string | undefined;
1949
1980
  page?: number | undefined;
1981
+ sortBy?: "name" | "createdAt" | "updatedAt" | "email" | "position" | undefined;
1982
+ sortOrder?: "ASC" | "DESC" | undefined;
1950
1983
  clientId?: string | undefined;
1951
1984
  phone?: string | undefined;
1952
1985
  createdById?: string | undefined;
1953
- sortBy?: "email" | "name" | "createdAt" | "updatedAt" | "position" | undefined;
1954
- sortOrder?: "ASC" | "DESC" | undefined;
1955
1986
  }>;
1956
1987
  summary: "Get all client contacts";
1957
1988
  method: "GET";
@@ -2097,19 +2128,19 @@ export declare const apiContractRouter: {
2097
2128
  }>;
2098
2129
  }, "strip", import("zod").ZodTypeAny, {
2099
2130
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2100
- id: string;
2101
2131
  name: string;
2132
+ director: string;
2133
+ createdAt: string;
2134
+ updatedAt: string;
2135
+ id: string;
2102
2136
  crn: string;
2103
2137
  govLink: string;
2104
- director: string;
2105
2138
  lastUpdatedBy: {
2106
2139
  id: string;
2107
2140
  firstName: string;
2108
2141
  lastName: string;
2109
2142
  email: string;
2110
2143
  };
2111
- createdAt: string;
2112
- updatedAt: string;
2113
2144
  version: number;
2114
2145
  agentClientLinks: {
2115
2146
  agentId: string;
@@ -2117,19 +2148,19 @@ export declare const apiContractRouter: {
2117
2148
  blacklistReason?: string | null | undefined;
2118
2149
  }, {
2119
2150
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2120
- id: string;
2121
2151
  name: string;
2152
+ director: string;
2153
+ createdAt: string;
2154
+ updatedAt: string;
2155
+ id: string;
2122
2156
  crn: string;
2123
2157
  govLink: string;
2124
- director: string;
2125
2158
  lastUpdatedBy: {
2126
2159
  id: string;
2127
2160
  firstName: string;
2128
2161
  lastName: string;
2129
2162
  email: string;
2130
2163
  };
2131
- createdAt: string;
2132
- updatedAt: string;
2133
2164
  version: number;
2134
2165
  agentClientLinks: {
2135
2166
  agentId: string;
@@ -2161,28 +2192,28 @@ export declare const apiContractRouter: {
2161
2192
  updatedAt: import("zod").ZodString;
2162
2193
  version: import("zod").ZodNumber;
2163
2194
  }, "strip", import("zod").ZodTypeAny, {
2164
- id: string;
2165
- email: string;
2166
2195
  name: string;
2167
2196
  createdAt: string;
2168
2197
  updatedAt: string;
2198
+ id: string;
2199
+ email: string;
2169
2200
  version: number;
2170
2201
  clientId: string;
2171
2202
  client: {
2172
2203
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2173
- id: string;
2174
2204
  name: string;
2205
+ director: string;
2206
+ createdAt: string;
2207
+ updatedAt: string;
2208
+ id: string;
2175
2209
  crn: string;
2176
2210
  govLink: string;
2177
- director: string;
2178
2211
  lastUpdatedBy: {
2179
2212
  id: string;
2180
2213
  firstName: string;
2181
2214
  lastName: string;
2182
2215
  email: string;
2183
2216
  };
2184
- createdAt: string;
2185
- updatedAt: string;
2186
2217
  version: number;
2187
2218
  agentClientLinks: {
2188
2219
  agentId: string;
@@ -2199,28 +2230,28 @@ export declare const apiContractRouter: {
2199
2230
  position?: string | undefined;
2200
2231
  source?: string | undefined;
2201
2232
  }, {
2202
- id: string;
2203
- email: string;
2204
2233
  name: string;
2205
2234
  createdAt: string;
2206
2235
  updatedAt: string;
2236
+ id: string;
2237
+ email: string;
2207
2238
  version: number;
2208
2239
  clientId: string;
2209
2240
  client: {
2210
2241
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2211
- id: string;
2212
2242
  name: string;
2243
+ director: string;
2244
+ createdAt: string;
2245
+ updatedAt: string;
2246
+ id: string;
2213
2247
  crn: string;
2214
2248
  govLink: string;
2215
- director: string;
2216
2249
  lastUpdatedBy: {
2217
2250
  id: string;
2218
2251
  firstName: string;
2219
2252
  lastName: string;
2220
2253
  email: string;
2221
2254
  };
2222
- createdAt: string;
2223
- updatedAt: string;
2224
2255
  version: number;
2225
2256
  agentClientLinks: {
2226
2257
  agentId: string;
@@ -2244,28 +2275,28 @@ export declare const apiContractRouter: {
2244
2275
  totalPages: import("zod").ZodNumber;
2245
2276
  }, "strip", import("zod").ZodTypeAny, {
2246
2277
  items: {
2247
- id: string;
2248
- email: string;
2249
2278
  name: string;
2250
2279
  createdAt: string;
2251
2280
  updatedAt: string;
2281
+ id: string;
2282
+ email: string;
2252
2283
  version: number;
2253
2284
  clientId: string;
2254
2285
  client: {
2255
2286
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2256
- id: string;
2257
2287
  name: string;
2288
+ director: string;
2289
+ createdAt: string;
2290
+ updatedAt: string;
2291
+ id: string;
2258
2292
  crn: string;
2259
2293
  govLink: string;
2260
- director: string;
2261
2294
  lastUpdatedBy: {
2262
2295
  id: string;
2263
2296
  firstName: string;
2264
2297
  lastName: string;
2265
2298
  email: string;
2266
2299
  };
2267
- createdAt: string;
2268
- updatedAt: string;
2269
2300
  version: number;
2270
2301
  agentClientLinks: {
2271
2302
  agentId: string;
@@ -2289,28 +2320,28 @@ export declare const apiContractRouter: {
2289
2320
  totalPages: number;
2290
2321
  }, {
2291
2322
  items: {
2292
- id: string;
2293
- email: string;
2294
2323
  name: string;
2295
2324
  createdAt: string;
2296
2325
  updatedAt: string;
2326
+ id: string;
2327
+ email: string;
2297
2328
  version: number;
2298
2329
  clientId: string;
2299
2330
  client: {
2300
2331
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2301
- id: string;
2302
2332
  name: string;
2333
+ director: string;
2334
+ createdAt: string;
2335
+ updatedAt: string;
2336
+ id: string;
2303
2337
  crn: string;
2304
2338
  govLink: string;
2305
- director: string;
2306
2339
  lastUpdatedBy: {
2307
2340
  id: string;
2308
2341
  firstName: string;
2309
2342
  lastName: string;
2310
2343
  email: string;
2311
2344
  };
2312
- createdAt: string;
2313
- updatedAt: string;
2314
2345
  version: number;
2315
2346
  agentClientLinks: {
2316
2347
  agentId: string;
@@ -2486,19 +2517,19 @@ export declare const apiContractRouter: {
2486
2517
  }>;
2487
2518
  }, "strip", import("zod").ZodTypeAny, {
2488
2519
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2489
- id: string;
2490
2520
  name: string;
2521
+ director: string;
2522
+ createdAt: string;
2523
+ updatedAt: string;
2524
+ id: string;
2491
2525
  crn: string;
2492
2526
  govLink: string;
2493
- director: string;
2494
2527
  lastUpdatedBy: {
2495
2528
  id: string;
2496
2529
  firstName: string;
2497
2530
  lastName: string;
2498
2531
  email: string;
2499
2532
  };
2500
- createdAt: string;
2501
- updatedAt: string;
2502
2533
  version: number;
2503
2534
  agentClientLinks: {
2504
2535
  agentId: string;
@@ -2506,19 +2537,19 @@ export declare const apiContractRouter: {
2506
2537
  blacklistReason?: string | null | undefined;
2507
2538
  }, {
2508
2539
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2509
- id: string;
2510
2540
  name: string;
2541
+ director: string;
2542
+ createdAt: string;
2543
+ updatedAt: string;
2544
+ id: string;
2511
2545
  crn: string;
2512
2546
  govLink: string;
2513
- director: string;
2514
2547
  lastUpdatedBy: {
2515
2548
  id: string;
2516
2549
  firstName: string;
2517
2550
  lastName: string;
2518
2551
  email: string;
2519
2552
  };
2520
- createdAt: string;
2521
- updatedAt: string;
2522
2553
  version: number;
2523
2554
  agentClientLinks: {
2524
2555
  agentId: string;
@@ -2550,28 +2581,28 @@ export declare const apiContractRouter: {
2550
2581
  updatedAt: import("zod").ZodString;
2551
2582
  version: import("zod").ZodNumber;
2552
2583
  }, "strip", import("zod").ZodTypeAny, {
2553
- id: string;
2554
- email: string;
2555
2584
  name: string;
2556
2585
  createdAt: string;
2557
2586
  updatedAt: string;
2587
+ id: string;
2588
+ email: string;
2558
2589
  version: number;
2559
2590
  clientId: string;
2560
2591
  client: {
2561
2592
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2562
- id: string;
2563
2593
  name: string;
2594
+ director: string;
2595
+ createdAt: string;
2596
+ updatedAt: string;
2597
+ id: string;
2564
2598
  crn: string;
2565
2599
  govLink: string;
2566
- director: string;
2567
2600
  lastUpdatedBy: {
2568
2601
  id: string;
2569
2602
  firstName: string;
2570
2603
  lastName: string;
2571
2604
  email: string;
2572
2605
  };
2573
- createdAt: string;
2574
- updatedAt: string;
2575
2606
  version: number;
2576
2607
  agentClientLinks: {
2577
2608
  agentId: string;
@@ -2588,28 +2619,28 @@ export declare const apiContractRouter: {
2588
2619
  position?: string | undefined;
2589
2620
  source?: string | undefined;
2590
2621
  }, {
2591
- id: string;
2592
- email: string;
2593
2622
  name: string;
2594
2623
  createdAt: string;
2595
2624
  updatedAt: string;
2625
+ id: string;
2626
+ email: string;
2596
2627
  version: number;
2597
2628
  clientId: string;
2598
2629
  client: {
2599
2630
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2600
- id: string;
2601
2631
  name: string;
2632
+ director: string;
2633
+ createdAt: string;
2634
+ updatedAt: string;
2635
+ id: string;
2602
2636
  crn: string;
2603
2637
  govLink: string;
2604
- director: string;
2605
2638
  lastUpdatedBy: {
2606
2639
  id: string;
2607
2640
  firstName: string;
2608
2641
  lastName: string;
2609
2642
  email: string;
2610
2643
  };
2611
- createdAt: string;
2612
- updatedAt: string;
2613
2644
  version: number;
2614
2645
  agentClientLinks: {
2615
2646
  agentId: string;
@@ -2680,15 +2711,15 @@ export declare const apiContractRouter: {
2680
2711
  version: import("zod").ZodNumber;
2681
2712
  }, "client">, "strip", import("zod").ZodTypeAny, {
2682
2713
  version: number;
2683
- email?: string | undefined;
2684
2714
  name?: string | undefined;
2715
+ email?: string | undefined;
2685
2716
  position?: string | undefined;
2686
2717
  phone?: string | undefined;
2687
2718
  source?: string | undefined;
2688
2719
  }, {
2689
2720
  version: number;
2690
- email?: string | undefined;
2691
2721
  name?: string | undefined;
2722
+ email?: string | undefined;
2692
2723
  position?: string | undefined;
2693
2724
  phone?: string | undefined;
2694
2725
  source?: string | undefined;
@@ -2834,19 +2865,19 @@ export declare const apiContractRouter: {
2834
2865
  }>;
2835
2866
  }, "strip", import("zod").ZodTypeAny, {
2836
2867
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2837
- id: string;
2838
2868
  name: string;
2869
+ director: string;
2870
+ createdAt: string;
2871
+ updatedAt: string;
2872
+ id: string;
2839
2873
  crn: string;
2840
2874
  govLink: string;
2841
- director: string;
2842
2875
  lastUpdatedBy: {
2843
2876
  id: string;
2844
2877
  firstName: string;
2845
2878
  lastName: string;
2846
2879
  email: string;
2847
2880
  };
2848
- createdAt: string;
2849
- updatedAt: string;
2850
2881
  version: number;
2851
2882
  agentClientLinks: {
2852
2883
  agentId: string;
@@ -2854,19 +2885,19 @@ export declare const apiContractRouter: {
2854
2885
  blacklistReason?: string | null | undefined;
2855
2886
  }, {
2856
2887
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2857
- id: string;
2858
2888
  name: string;
2889
+ director: string;
2890
+ createdAt: string;
2891
+ updatedAt: string;
2892
+ id: string;
2859
2893
  crn: string;
2860
2894
  govLink: string;
2861
- director: string;
2862
2895
  lastUpdatedBy: {
2863
2896
  id: string;
2864
2897
  firstName: string;
2865
2898
  lastName: string;
2866
2899
  email: string;
2867
2900
  };
2868
- createdAt: string;
2869
- updatedAt: string;
2870
2901
  version: number;
2871
2902
  agentClientLinks: {
2872
2903
  agentId: string;
@@ -2898,28 +2929,28 @@ export declare const apiContractRouter: {
2898
2929
  updatedAt: import("zod").ZodString;
2899
2930
  version: import("zod").ZodNumber;
2900
2931
  }, "strip", import("zod").ZodTypeAny, {
2901
- id: string;
2902
- email: string;
2903
2932
  name: string;
2904
2933
  createdAt: string;
2905
2934
  updatedAt: string;
2935
+ id: string;
2936
+ email: string;
2906
2937
  version: number;
2907
2938
  clientId: string;
2908
2939
  client: {
2909
2940
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2910
- id: string;
2911
2941
  name: string;
2942
+ director: string;
2943
+ createdAt: string;
2944
+ updatedAt: string;
2945
+ id: string;
2912
2946
  crn: string;
2913
2947
  govLink: string;
2914
- director: string;
2915
2948
  lastUpdatedBy: {
2916
2949
  id: string;
2917
2950
  firstName: string;
2918
2951
  lastName: string;
2919
2952
  email: string;
2920
2953
  };
2921
- createdAt: string;
2922
- updatedAt: string;
2923
2954
  version: number;
2924
2955
  agentClientLinks: {
2925
2956
  agentId: string;
@@ -2936,28 +2967,28 @@ export declare const apiContractRouter: {
2936
2967
  position?: string | undefined;
2937
2968
  source?: string | undefined;
2938
2969
  }, {
2939
- id: string;
2940
- email: string;
2941
2970
  name: string;
2942
2971
  createdAt: string;
2943
2972
  updatedAt: string;
2973
+ id: string;
2974
+ email: string;
2944
2975
  version: number;
2945
2976
  clientId: string;
2946
2977
  client: {
2947
2978
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2948
- id: string;
2949
2979
  name: string;
2980
+ director: string;
2981
+ createdAt: string;
2982
+ updatedAt: string;
2983
+ id: string;
2950
2984
  crn: string;
2951
2985
  govLink: string;
2952
- director: string;
2953
2986
  lastUpdatedBy: {
2954
2987
  id: string;
2955
2988
  firstName: string;
2956
2989
  lastName: string;
2957
2990
  email: string;
2958
2991
  };
2959
- createdAt: string;
2960
- updatedAt: string;
2961
2992
  version: number;
2962
2993
  agentClientLinks: {
2963
2994
  agentId: string;
@@ -3139,7 +3170,7 @@ export declare const apiContractRouter: {
3139
3170
  details?: unknown;
3140
3171
  correlationId?: string | undefined;
3141
3172
  }>;
3142
- 204: typeof import("@ts-rest/core").ContractNoBody;
3173
+ 204: import("zod").ZodUndefined;
3143
3174
  404: import("zod").ZodObject<{
3144
3175
  statusCode: import("zod").ZodNumber;
3145
3176
  message: import("zod").ZodString;