@deepintel-ltd/buildlink-api-contracts 0.2.33 → 0.2.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +1 -1
  2. package/contracts/budget.d.ts +824 -6481
  3. package/contracts/budget.d.ts.map +1 -1
  4. package/contracts/budget.js +1 -286
  5. package/contracts/budget.js.map +1 -1
  6. package/contracts/commercial.d.ts +1 -241
  7. package/contracts/commercial.d.ts.map +1 -1
  8. package/contracts/commercial.js +2 -13
  9. package/contracts/commercial.js.map +1 -1
  10. package/contracts/communication.d.ts +1014 -1890
  11. package/contracts/communication.d.ts.map +1 -1
  12. package/contracts/communication.js +1 -65
  13. package/contracts/communication.js.map +1 -1
  14. package/contracts/daily-logs.d.ts +560 -0
  15. package/contracts/daily-logs.d.ts.map +1 -1
  16. package/contracts/deficiencies.d.ts +0 -375
  17. package/contracts/deficiencies.d.ts.map +1 -1
  18. package/contracts/deficiencies.js +1 -14
  19. package/contracts/deficiencies.js.map +1 -1
  20. package/contracts/directory.d.ts +0 -327
  21. package/contracts/directory.d.ts.map +1 -1
  22. package/contracts/directory.js +1 -18
  23. package/contracts/directory.js.map +1 -1
  24. package/contracts/documents.d.ts +41 -3437
  25. package/contracts/documents.d.ts.map +1 -1
  26. package/contracts/documents.js +0 -144
  27. package/contracts/documents.js.map +1 -1
  28. package/contracts/drawings.d.ts +380 -2252
  29. package/contracts/drawings.d.ts.map +1 -1
  30. package/contracts/drawings.js +1 -98
  31. package/contracts/drawings.js.map +1 -1
  32. package/contracts/hub.d.ts +459 -0
  33. package/contracts/hub.d.ts.map +1 -1
  34. package/contracts/hub.js +22 -0
  35. package/contracts/hub.js.map +1 -1
  36. package/contracts/projects.d.ts +91 -1106
  37. package/contracts/projects.d.ts.map +1 -1
  38. package/contracts/projects.js +0 -101
  39. package/contracts/projects.js.map +1 -1
  40. package/contracts/proof.d.ts +322 -0
  41. package/contracts/proof.d.ts.map +1 -1
  42. package/contracts/proof.js +14 -1
  43. package/contracts/proof.js.map +1 -1
  44. package/contracts/qaqc.d.ts +874 -0
  45. package/contracts/qaqc.d.ts.map +1 -1
  46. package/contracts/qaqc.js +13 -1
  47. package/contracts/qaqc.js.map +1 -1
  48. package/contracts/resources.d.ts +1774 -5959
  49. package/contracts/resources.d.ts.map +1 -1
  50. package/contracts/resources.js +1 -245
  51. package/contracts/resources.js.map +1 -1
  52. package/contracts/safety.d.ts +174 -3683
  53. package/contracts/safety.d.ts.map +1 -1
  54. package/contracts/safety.js +1 -238
  55. package/contracts/safety.js.map +1 -1
  56. package/contracts/schedule.d.ts +0 -1371
  57. package/contracts/schedule.d.ts.map +1 -1
  58. package/contracts/schedule.js +1 -65
  59. package/contracts/schedule.js.map +1 -1
  60. package/contracts/specifications.d.ts +0 -704
  61. package/contracts/specifications.d.ts.map +1 -1
  62. package/contracts/specifications.js +3 -18
  63. package/contracts/specifications.js.map +1 -1
  64. package/contracts/tasks.d.ts +2030 -4095
  65. package/contracts/tasks.d.ts.map +1 -1
  66. package/contracts/tasks.js +1 -149
  67. package/contracts/tasks.js.map +1 -1
  68. package/contracts/user-admin.d.ts +358 -0
  69. package/contracts/user-admin.d.ts.map +1 -1
  70. package/contracts/user-admin.js +8 -0
  71. package/contracts/user-admin.js.map +1 -1
  72. package/package.json +1 -1
  73. package/schemas/budget.d.ts +149 -0
  74. package/schemas/budget.d.ts.map +1 -1
  75. package/schemas/budget.js +13 -0
  76. package/schemas/budget.js.map +1 -1
  77. package/schemas/communication.d.ts +94 -0
  78. package/schemas/communication.d.ts.map +1 -1
  79. package/schemas/communication.js +2 -0
  80. package/schemas/communication.js.map +1 -1
  81. package/schemas/daily-logs.d.ts +92 -0
  82. package/schemas/daily-logs.d.ts.map +1 -1
  83. package/schemas/daily-logs.js +1 -0
  84. package/schemas/daily-logs.js.map +1 -1
  85. package/schemas/documents.d.ts +11 -11
  86. package/schemas/drawings.d.ts +12 -12
  87. package/schemas/proof.d.ts +161 -0
  88. package/schemas/proof.d.ts.map +1 -1
  89. package/schemas/proof.js +17 -1
  90. package/schemas/proof.js.map +1 -1
  91. package/schemas/qaqc.d.ts +335 -0
  92. package/schemas/qaqc.d.ts.map +1 -1
  93. package/schemas/qaqc.js +16 -1
  94. package/schemas/qaqc.js.map +1 -1
  95. package/schemas/safety.d.ts +8 -8
  96. package/schemas/specifications.d.ts +0 -17
  97. package/schemas/specifications.d.ts.map +1 -1
  98. package/schemas/specifications.js +0 -6
  99. package/schemas/specifications.js.map +1 -1
  100. package/schemas/tasks.d.ts +4 -4
@@ -112,10 +112,10 @@ export declare const documentsContract: {
112
112
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
113
113
  title: string;
114
114
  projectId: string;
115
+ fileName: string;
115
116
  fileUrl: string;
116
117
  tags: string[];
117
118
  version: string;
118
- fileName: string;
119
119
  isConfidential: boolean;
120
120
  uploadedById: string;
121
121
  uploadedAt: string;
@@ -141,8 +141,8 @@ export declare const documentsContract: {
141
141
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
142
142
  title: string;
143
143
  projectId: string;
144
- fileUrl: string;
145
144
  fileName: string;
145
+ fileUrl: string;
146
146
  uploadedById: string;
147
147
  uploadedAt: string;
148
148
  description?: string | null | undefined;
@@ -174,10 +174,10 @@ export declare const documentsContract: {
174
174
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
175
175
  title: string;
176
176
  projectId: string;
177
+ fileName: string;
177
178
  fileUrl: string;
178
179
  tags: string[];
179
180
  version: string;
180
- fileName: string;
181
181
  isConfidential: boolean;
182
182
  uploadedById: string;
183
183
  uploadedAt: string;
@@ -207,8 +207,8 @@ export declare const documentsContract: {
207
207
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
208
208
  title: string;
209
209
  projectId: string;
210
- fileUrl: string;
211
210
  fileName: string;
211
+ fileUrl: string;
212
212
  uploadedById: string;
213
213
  uploadedAt: string;
214
214
  description?: string | null | undefined;
@@ -283,10 +283,10 @@ export declare const documentsContract: {
283
283
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
284
284
  title: string;
285
285
  projectId: string;
286
+ fileName: string;
286
287
  fileUrl: string;
287
288
  tags: string[];
288
289
  version: string;
289
- fileName: string;
290
290
  isConfidential: boolean;
291
291
  uploadedById: string;
292
292
  uploadedAt: string;
@@ -333,8 +333,8 @@ export declare const documentsContract: {
333
333
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
334
334
  title: string;
335
335
  projectId: string;
336
- fileUrl: string;
337
336
  fileName: string;
337
+ fileUrl: string;
338
338
  uploadedById: string;
339
339
  uploadedAt: string;
340
340
  description?: string | null | undefined;
@@ -508,10 +508,10 @@ export declare const documentsContract: {
508
508
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
509
509
  title: string;
510
510
  projectId: string;
511
+ fileName: string;
511
512
  fileUrl: string;
512
513
  tags: string[];
513
514
  version: string;
514
- fileName: string;
515
515
  isConfidential: boolean;
516
516
  uploadedById: string;
517
517
  uploadedAt: string;
@@ -537,8 +537,8 @@ export declare const documentsContract: {
537
537
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
538
538
  title: string;
539
539
  projectId: string;
540
- fileUrl: string;
541
540
  fileName: string;
541
+ fileUrl: string;
542
542
  uploadedById: string;
543
543
  uploadedAt: string;
544
544
  description?: string | null | undefined;
@@ -570,10 +570,10 @@ export declare const documentsContract: {
570
570
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
571
571
  title: string;
572
572
  projectId: string;
573
+ fileName: string;
573
574
  fileUrl: string;
574
575
  tags: string[];
575
576
  version: string;
576
- fileName: string;
577
577
  isConfidential: boolean;
578
578
  uploadedById: string;
579
579
  uploadedAt: string;
@@ -603,8 +603,8 @@ export declare const documentsContract: {
603
603
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
604
604
  title: string;
605
605
  projectId: string;
606
- fileUrl: string;
607
606
  fileName: string;
607
+ fileUrl: string;
608
608
  uploadedById: string;
609
609
  uploadedAt: string;
610
610
  description?: string | null | undefined;
@@ -674,10 +674,10 @@ export declare const documentsContract: {
674
674
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
675
675
  title: string;
676
676
  projectId: string;
677
+ fileName: string;
677
678
  fileUrl: string;
678
679
  tags: string[];
679
680
  version: string;
680
- fileName: string;
681
681
  isConfidential: boolean;
682
682
  uploadedById: string;
683
683
  uploadedAt: string;
@@ -723,8 +723,8 @@ export declare const documentsContract: {
723
723
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
724
724
  title: string;
725
725
  projectId: string;
726
- fileUrl: string;
727
726
  fileName: string;
727
+ fileUrl: string;
728
728
  uploadedById: string;
729
729
  uploadedAt: string;
730
730
  description?: string | null | undefined;
@@ -854,9 +854,9 @@ export declare const documentsContract: {
854
854
  }, "strip", z.ZodTypeAny, {
855
855
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
856
856
  title: string;
857
+ fileName: string;
857
858
  tags: string[];
858
859
  version: string;
859
- fileName: string;
860
860
  isConfidential: boolean;
861
861
  description?: string | undefined;
862
862
  metadata?: Record<string, unknown> | undefined;
@@ -931,10 +931,10 @@ export declare const documentsContract: {
931
931
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
932
932
  title: string;
933
933
  projectId: string;
934
+ fileName: string;
934
935
  fileUrl: string;
935
936
  tags: string[];
936
937
  version: string;
937
- fileName: string;
938
938
  isConfidential: boolean;
939
939
  uploadedById: string;
940
940
  uploadedAt: string;
@@ -960,8 +960,8 @@ export declare const documentsContract: {
960
960
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
961
961
  title: string;
962
962
  projectId: string;
963
- fileUrl: string;
964
963
  fileName: string;
964
+ fileUrl: string;
965
965
  uploadedById: string;
966
966
  uploadedAt: string;
967
967
  description?: string | null | undefined;
@@ -993,10 +993,10 @@ export declare const documentsContract: {
993
993
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
994
994
  title: string;
995
995
  projectId: string;
996
+ fileName: string;
996
997
  fileUrl: string;
997
998
  tags: string[];
998
999
  version: string;
999
- fileName: string;
1000
1000
  isConfidential: boolean;
1001
1001
  uploadedById: string;
1002
1002
  uploadedAt: string;
@@ -1026,8 +1026,8 @@ export declare const documentsContract: {
1026
1026
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
1027
1027
  title: string;
1028
1028
  projectId: string;
1029
- fileUrl: string;
1030
1029
  fileName: string;
1030
+ fileUrl: string;
1031
1031
  uploadedById: string;
1032
1032
  uploadedAt: string;
1033
1033
  description?: string | null | undefined;
@@ -1097,10 +1097,10 @@ export declare const documentsContract: {
1097
1097
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
1098
1098
  title: string;
1099
1099
  projectId: string;
1100
+ fileName: string;
1100
1101
  fileUrl: string;
1101
1102
  tags: string[];
1102
1103
  version: string;
1103
- fileName: string;
1104
1104
  isConfidential: boolean;
1105
1105
  uploadedById: string;
1106
1106
  uploadedAt: string;
@@ -1146,8 +1146,8 @@ export declare const documentsContract: {
1146
1146
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
1147
1147
  title: string;
1148
1148
  projectId: string;
1149
- fileUrl: string;
1150
1149
  fileName: string;
1150
+ fileUrl: string;
1151
1151
  uploadedById: string;
1152
1152
  uploadedAt: string;
1153
1153
  description?: string | null | undefined;
@@ -1308,18 +1308,18 @@ export declare const documentsContract: {
1308
1308
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
1309
1309
  title: string;
1310
1310
  contentType: string;
1311
+ fileName: string;
1311
1312
  fileSize: number;
1312
1313
  tags: string[];
1313
1314
  version: string;
1314
- fileName: string;
1315
1315
  isConfidential: boolean;
1316
1316
  description?: string | undefined;
1317
1317
  }, {
1318
1318
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
1319
1319
  title: string;
1320
1320
  contentType: string;
1321
- fileSize: number;
1322
1321
  fileName: string;
1322
+ fileSize: number;
1323
1323
  description?: string | undefined;
1324
1324
  tags?: string[] | undefined;
1325
1325
  version?: string | undefined;
@@ -1341,20 +1341,20 @@ export declare const documentsContract: {
1341
1341
  originalName: z.ZodString;
1342
1342
  }, "strip", z.ZodTypeAny, {
1343
1343
  expiresIn: number;
1344
+ fileName: string;
1344
1345
  fileSize: number;
1345
1346
  mimeType: string;
1346
1347
  uploadUrl: string;
1347
1348
  fileUrl: string;
1348
- fileName: string;
1349
1349
  originalName: string;
1350
1350
  fileKey: string;
1351
1351
  }, {
1352
1352
  expiresIn: number;
1353
+ fileName: string;
1353
1354
  fileSize: number;
1354
1355
  mimeType: string;
1355
1356
  uploadUrl: string;
1356
1357
  fileUrl: string;
1357
- fileName: string;
1358
1358
  originalName: string;
1359
1359
  fileKey: string;
1360
1360
  }>;
@@ -1362,11 +1362,11 @@ export declare const documentsContract: {
1362
1362
  type: "document-presign";
1363
1363
  attributes: {
1364
1364
  expiresIn: number;
1365
+ fileName: string;
1365
1366
  fileSize: number;
1366
1367
  mimeType: string;
1367
1368
  uploadUrl: string;
1368
1369
  fileUrl: string;
1369
- fileName: string;
1370
1370
  originalName: string;
1371
1371
  fileKey: string;
1372
1372
  };
@@ -1374,11 +1374,11 @@ export declare const documentsContract: {
1374
1374
  type: "document-presign";
1375
1375
  attributes: {
1376
1376
  expiresIn: number;
1377
+ fileName: string;
1377
1378
  fileSize: number;
1378
1379
  mimeType: string;
1379
1380
  uploadUrl: string;
1380
1381
  fileUrl: string;
1381
- fileName: string;
1382
1382
  originalName: string;
1383
1383
  fileKey: string;
1384
1384
  };
@@ -1388,11 +1388,11 @@ export declare const documentsContract: {
1388
1388
  type: "document-presign";
1389
1389
  attributes: {
1390
1390
  expiresIn: number;
1391
+ fileName: string;
1391
1392
  fileSize: number;
1392
1393
  mimeType: string;
1393
1394
  uploadUrl: string;
1394
1395
  fileUrl: string;
1395
- fileName: string;
1396
1396
  originalName: string;
1397
1397
  fileKey: string;
1398
1398
  };
@@ -1402,11 +1402,11 @@ export declare const documentsContract: {
1402
1402
  type: "document-presign";
1403
1403
  attributes: {
1404
1404
  expiresIn: number;
1405
+ fileName: string;
1405
1406
  fileSize: number;
1406
1407
  mimeType: string;
1407
1408
  uploadUrl: string;
1408
1409
  fileUrl: string;
1409
- fileName: string;
1410
1410
  originalName: string;
1411
1411
  fileKey: string;
1412
1412
  };
@@ -1600,10 +1600,10 @@ export declare const documentsContract: {
1600
1600
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
1601
1601
  title: string;
1602
1602
  projectId: string;
1603
+ fileName: string;
1603
1604
  fileUrl: string;
1604
1605
  tags: string[];
1605
1606
  version: string;
1606
- fileName: string;
1607
1607
  isConfidential: boolean;
1608
1608
  uploadedById: string;
1609
1609
  uploadedAt: string;
@@ -1629,8 +1629,8 @@ export declare const documentsContract: {
1629
1629
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
1630
1630
  title: string;
1631
1631
  projectId: string;
1632
- fileUrl: string;
1633
1632
  fileName: string;
1633
+ fileUrl: string;
1634
1634
  uploadedById: string;
1635
1635
  uploadedAt: string;
1636
1636
  description?: string | null | undefined;
@@ -1662,10 +1662,10 @@ export declare const documentsContract: {
1662
1662
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
1663
1663
  title: string;
1664
1664
  projectId: string;
1665
+ fileName: string;
1665
1666
  fileUrl: string;
1666
1667
  tags: string[];
1667
1668
  version: string;
1668
- fileName: string;
1669
1669
  isConfidential: boolean;
1670
1670
  uploadedById: string;
1671
1671
  uploadedAt: string;
@@ -1695,8 +1695,8 @@ export declare const documentsContract: {
1695
1695
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
1696
1696
  title: string;
1697
1697
  projectId: string;
1698
- fileUrl: string;
1699
1698
  fileName: string;
1699
+ fileUrl: string;
1700
1700
  uploadedById: string;
1701
1701
  uploadedAt: string;
1702
1702
  description?: string | null | undefined;
@@ -1766,10 +1766,10 @@ export declare const documentsContract: {
1766
1766
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
1767
1767
  title: string;
1768
1768
  projectId: string;
1769
+ fileName: string;
1769
1770
  fileUrl: string;
1770
1771
  tags: string[];
1771
1772
  version: string;
1772
- fileName: string;
1773
1773
  isConfidential: boolean;
1774
1774
  uploadedById: string;
1775
1775
  uploadedAt: string;
@@ -1815,8 +1815,8 @@ export declare const documentsContract: {
1815
1815
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
1816
1816
  title: string;
1817
1817
  projectId: string;
1818
- fileUrl: string;
1819
1818
  fileName: string;
1819
+ fileUrl: string;
1820
1820
  uploadedById: string;
1821
1821
  uploadedAt: string;
1822
1822
  description?: string | null | undefined;
@@ -1984,11 +1984,11 @@ export declare const documentsContract: {
1984
1984
  description?: string | undefined;
1985
1985
  metadata?: Record<string, unknown> | undefined;
1986
1986
  category?: string | undefined;
1987
+ fileName?: string | undefined;
1987
1988
  taskId?: string | undefined;
1988
1989
  tags?: string[] | undefined;
1989
1990
  discipline?: string | undefined;
1990
1991
  version?: string | undefined;
1991
- fileName?: string | undefined;
1992
1992
  isConfidential?: boolean | undefined;
1993
1993
  }, {
1994
1994
  type?: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER" | undefined;
@@ -1996,11 +1996,11 @@ export declare const documentsContract: {
1996
1996
  description?: string | undefined;
1997
1997
  metadata?: Record<string, unknown> | undefined;
1998
1998
  category?: string | undefined;
1999
+ fileName?: string | undefined;
1999
2000
  taskId?: string | undefined;
2000
2001
  tags?: string[] | undefined;
2001
2002
  discipline?: string | undefined;
2002
2003
  version?: string | undefined;
2003
- fileName?: string | undefined;
2004
2004
  isConfidential?: boolean | undefined;
2005
2005
  }>;
2006
2006
  path: "/projects/:projectId/documents/:documentId";
@@ -2058,10 +2058,10 @@ export declare const documentsContract: {
2058
2058
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
2059
2059
  title: string;
2060
2060
  projectId: string;
2061
+ fileName: string;
2061
2062
  fileUrl: string;
2062
2063
  tags: string[];
2063
2064
  version: string;
2064
- fileName: string;
2065
2065
  isConfidential: boolean;
2066
2066
  uploadedById: string;
2067
2067
  uploadedAt: string;
@@ -2087,8 +2087,8 @@ export declare const documentsContract: {
2087
2087
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
2088
2088
  title: string;
2089
2089
  projectId: string;
2090
- fileUrl: string;
2091
2090
  fileName: string;
2091
+ fileUrl: string;
2092
2092
  uploadedById: string;
2093
2093
  uploadedAt: string;
2094
2094
  description?: string | null | undefined;
@@ -2120,10 +2120,10 @@ export declare const documentsContract: {
2120
2120
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
2121
2121
  title: string;
2122
2122
  projectId: string;
2123
+ fileName: string;
2123
2124
  fileUrl: string;
2124
2125
  tags: string[];
2125
2126
  version: string;
2126
- fileName: string;
2127
2127
  isConfidential: boolean;
2128
2128
  uploadedById: string;
2129
2129
  uploadedAt: string;
@@ -2153,8 +2153,8 @@ export declare const documentsContract: {
2153
2153
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
2154
2154
  title: string;
2155
2155
  projectId: string;
2156
- fileUrl: string;
2157
2156
  fileName: string;
2157
+ fileUrl: string;
2158
2158
  uploadedById: string;
2159
2159
  uploadedAt: string;
2160
2160
  description?: string | null | undefined;
@@ -2224,10 +2224,10 @@ export declare const documentsContract: {
2224
2224
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
2225
2225
  title: string;
2226
2226
  projectId: string;
2227
+ fileName: string;
2227
2228
  fileUrl: string;
2228
2229
  tags: string[];
2229
2230
  version: string;
2230
- fileName: string;
2231
2231
  isConfidential: boolean;
2232
2232
  uploadedById: string;
2233
2233
  uploadedAt: string;
@@ -2273,8 +2273,8 @@ export declare const documentsContract: {
2273
2273
  type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
2274
2274
  title: string;
2275
2275
  projectId: string;
2276
- fileUrl: string;
2277
2276
  fileName: string;
2277
+ fileUrl: string;
2278
2278
  uploadedById: string;
2279
2279
  uploadedAt: string;
2280
2280
  description?: string | null | undefined;
@@ -2493,3401 +2493,5 @@ export declare const documentsContract: {
2493
2493
  }>;
2494
2494
  };
2495
2495
  };
2496
- getRFIs: {
2497
- pathParams: z.ZodObject<{
2498
- projectId: z.ZodString;
2499
- }, "strip", z.ZodTypeAny, {
2500
- projectId: string;
2501
- }, {
2502
- projectId: string;
2503
- }>;
2504
- query: z.ZodObject<{
2505
- page: z.ZodDefault<z.ZodNumber>;
2506
- limit: z.ZodDefault<z.ZodNumber>;
2507
- status: z.ZodOptional<z.ZodEnum<["OPEN", "IN_REVIEW", "ANSWERED", "CLOSED", "CANCELLED"]>>;
2508
- priority: z.ZodOptional<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
2509
- assignedTo: z.ZodOptional<z.ZodString>;
2510
- search: z.ZodOptional<z.ZodString>;
2511
- }, "strip", z.ZodTypeAny, {
2512
- page: number;
2513
- limit: number;
2514
- status?: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED" | undefined;
2515
- search?: string | undefined;
2516
- priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
2517
- assignedTo?: string | undefined;
2518
- }, {
2519
- status?: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED" | undefined;
2520
- page?: number | undefined;
2521
- limit?: number | undefined;
2522
- search?: string | undefined;
2523
- priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
2524
- assignedTo?: string | undefined;
2525
- }>;
2526
- summary: "Get project RFIs";
2527
- method: "GET";
2528
- path: "/projects/:projectId/rfis";
2529
- responses: {
2530
- 200: z.ZodObject<{
2531
- data: z.ZodArray<z.ZodObject<{
2532
- type: z.ZodLiteral<"rfis">;
2533
- id: z.ZodString;
2534
- attributes: z.ZodObject<{
2535
- id: z.ZodString;
2536
- projectId: z.ZodString;
2537
- rfiNumber: z.ZodNullable<z.ZodString>;
2538
- title: z.ZodString;
2539
- description: z.ZodString;
2540
- question: z.ZodString;
2541
- answer: z.ZodNullable<z.ZodString>;
2542
- status: z.ZodEnum<["OPEN", "IN_REVIEW", "ANSWERED", "CLOSED", "CANCELLED"]>;
2543
- priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
2544
- discipline: z.ZodNullable<z.ZodString>;
2545
- location: z.ZodNullable<z.ZodString>;
2546
- raisedBy: z.ZodObject<{
2547
- id: z.ZodString;
2548
- firstName: z.ZodNullable<z.ZodString>;
2549
- lastName: z.ZodNullable<z.ZodString>;
2550
- email: z.ZodString;
2551
- }, "strip", z.ZodTypeAny, {
2552
- id: string;
2553
- firstName: string | null;
2554
- lastName: string | null;
2555
- email: string;
2556
- }, {
2557
- id: string;
2558
- firstName: string | null;
2559
- lastName: string | null;
2560
- email: string;
2561
- }>;
2562
- assignedTo: z.ZodNullable<z.ZodObject<{
2563
- id: z.ZodString;
2564
- firstName: z.ZodNullable<z.ZodString>;
2565
- lastName: z.ZodNullable<z.ZodString>;
2566
- email: z.ZodString;
2567
- }, "strip", z.ZodTypeAny, {
2568
- id: string;
2569
- firstName: string | null;
2570
- lastName: string | null;
2571
- email: string;
2572
- }, {
2573
- id: string;
2574
- firstName: string | null;
2575
- lastName: string | null;
2576
- email: string;
2577
- }>>;
2578
- dueDate: z.ZodNullable<z.ZodString>;
2579
- answeredAt: z.ZodNullable<z.ZodString>;
2580
- createdAt: z.ZodString;
2581
- updatedAt: z.ZodString;
2582
- }, "strip", z.ZodTypeAny, {
2583
- id: string;
2584
- createdAt: string;
2585
- updatedAt: string;
2586
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
2587
- title: string;
2588
- projectId: string;
2589
- description: string;
2590
- dueDate: string | null;
2591
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
2592
- location: string | null;
2593
- assignedTo: {
2594
- id: string;
2595
- firstName: string | null;
2596
- lastName: string | null;
2597
- email: string;
2598
- } | null;
2599
- rfiNumber: string | null;
2600
- question: string;
2601
- answer: string | null;
2602
- discipline: string | null;
2603
- raisedBy: {
2604
- id: string;
2605
- firstName: string | null;
2606
- lastName: string | null;
2607
- email: string;
2608
- };
2609
- answeredAt: string | null;
2610
- }, {
2611
- id: string;
2612
- createdAt: string;
2613
- updatedAt: string;
2614
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
2615
- title: string;
2616
- projectId: string;
2617
- description: string;
2618
- dueDate: string | null;
2619
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
2620
- location: string | null;
2621
- assignedTo: {
2622
- id: string;
2623
- firstName: string | null;
2624
- lastName: string | null;
2625
- email: string;
2626
- } | null;
2627
- rfiNumber: string | null;
2628
- question: string;
2629
- answer: string | null;
2630
- discipline: string | null;
2631
- raisedBy: {
2632
- id: string;
2633
- firstName: string | null;
2634
- lastName: string | null;
2635
- email: string;
2636
- };
2637
- answeredAt: string | null;
2638
- }>;
2639
- }, "strip", z.ZodTypeAny, {
2640
- id: string;
2641
- type: "rfis";
2642
- attributes: {
2643
- id: string;
2644
- createdAt: string;
2645
- updatedAt: string;
2646
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
2647
- title: string;
2648
- projectId: string;
2649
- description: string;
2650
- dueDate: string | null;
2651
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
2652
- location: string | null;
2653
- assignedTo: {
2654
- id: string;
2655
- firstName: string | null;
2656
- lastName: string | null;
2657
- email: string;
2658
- } | null;
2659
- rfiNumber: string | null;
2660
- question: string;
2661
- answer: string | null;
2662
- discipline: string | null;
2663
- raisedBy: {
2664
- id: string;
2665
- firstName: string | null;
2666
- lastName: string | null;
2667
- email: string;
2668
- };
2669
- answeredAt: string | null;
2670
- };
2671
- }, {
2672
- id: string;
2673
- type: "rfis";
2674
- attributes: {
2675
- id: string;
2676
- createdAt: string;
2677
- updatedAt: string;
2678
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
2679
- title: string;
2680
- projectId: string;
2681
- description: string;
2682
- dueDate: string | null;
2683
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
2684
- location: string | null;
2685
- assignedTo: {
2686
- id: string;
2687
- firstName: string | null;
2688
- lastName: string | null;
2689
- email: string;
2690
- } | null;
2691
- rfiNumber: string | null;
2692
- question: string;
2693
- answer: string | null;
2694
- discipline: string | null;
2695
- raisedBy: {
2696
- id: string;
2697
- firstName: string | null;
2698
- lastName: string | null;
2699
- email: string;
2700
- };
2701
- answeredAt: string | null;
2702
- };
2703
- }>, "many">;
2704
- meta: z.ZodOptional<z.ZodObject<{
2705
- total: z.ZodOptional<z.ZodNumber>;
2706
- page: z.ZodOptional<z.ZodNumber>;
2707
- size: z.ZodOptional<z.ZodNumber>;
2708
- pages: z.ZodOptional<z.ZodNumber>;
2709
- hasNextPage: z.ZodOptional<z.ZodBoolean>;
2710
- hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
2711
- }, "strip", z.ZodTypeAny, {
2712
- page?: number | undefined;
2713
- total?: number | undefined;
2714
- size?: number | undefined;
2715
- pages?: number | undefined;
2716
- hasNextPage?: boolean | undefined;
2717
- hasPreviousPage?: boolean | undefined;
2718
- }, {
2719
- page?: number | undefined;
2720
- total?: number | undefined;
2721
- size?: number | undefined;
2722
- pages?: number | undefined;
2723
- hasNextPage?: boolean | undefined;
2724
- hasPreviousPage?: boolean | undefined;
2725
- }>>;
2726
- links: z.ZodOptional<z.ZodObject<{
2727
- self: z.ZodString;
2728
- first: z.ZodOptional<z.ZodString>;
2729
- last: z.ZodOptional<z.ZodString>;
2730
- prev: z.ZodOptional<z.ZodString>;
2731
- next: z.ZodOptional<z.ZodString>;
2732
- }, "strip", z.ZodTypeAny, {
2733
- self: string;
2734
- first?: string | undefined;
2735
- last?: string | undefined;
2736
- prev?: string | undefined;
2737
- next?: string | undefined;
2738
- }, {
2739
- self: string;
2740
- first?: string | undefined;
2741
- last?: string | undefined;
2742
- prev?: string | undefined;
2743
- next?: string | undefined;
2744
- }>>;
2745
- }, "strip", z.ZodTypeAny, {
2746
- data: {
2747
- id: string;
2748
- type: "rfis";
2749
- attributes: {
2750
- id: string;
2751
- createdAt: string;
2752
- updatedAt: string;
2753
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
2754
- title: string;
2755
- projectId: string;
2756
- description: string;
2757
- dueDate: string | null;
2758
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
2759
- location: string | null;
2760
- assignedTo: {
2761
- id: string;
2762
- firstName: string | null;
2763
- lastName: string | null;
2764
- email: string;
2765
- } | null;
2766
- rfiNumber: string | null;
2767
- question: string;
2768
- answer: string | null;
2769
- discipline: string | null;
2770
- raisedBy: {
2771
- id: string;
2772
- firstName: string | null;
2773
- lastName: string | null;
2774
- email: string;
2775
- };
2776
- answeredAt: string | null;
2777
- };
2778
- }[];
2779
- meta?: {
2780
- page?: number | undefined;
2781
- total?: number | undefined;
2782
- size?: number | undefined;
2783
- pages?: number | undefined;
2784
- hasNextPage?: boolean | undefined;
2785
- hasPreviousPage?: boolean | undefined;
2786
- } | undefined;
2787
- links?: {
2788
- self: string;
2789
- first?: string | undefined;
2790
- last?: string | undefined;
2791
- prev?: string | undefined;
2792
- next?: string | undefined;
2793
- } | undefined;
2794
- }, {
2795
- data: {
2796
- id: string;
2797
- type: "rfis";
2798
- attributes: {
2799
- id: string;
2800
- createdAt: string;
2801
- updatedAt: string;
2802
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
2803
- title: string;
2804
- projectId: string;
2805
- description: string;
2806
- dueDate: string | null;
2807
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
2808
- location: string | null;
2809
- assignedTo: {
2810
- id: string;
2811
- firstName: string | null;
2812
- lastName: string | null;
2813
- email: string;
2814
- } | null;
2815
- rfiNumber: string | null;
2816
- question: string;
2817
- answer: string | null;
2818
- discipline: string | null;
2819
- raisedBy: {
2820
- id: string;
2821
- firstName: string | null;
2822
- lastName: string | null;
2823
- email: string;
2824
- };
2825
- answeredAt: string | null;
2826
- };
2827
- }[];
2828
- meta?: {
2829
- page?: number | undefined;
2830
- total?: number | undefined;
2831
- size?: number | undefined;
2832
- pages?: number | undefined;
2833
- hasNextPage?: boolean | undefined;
2834
- hasPreviousPage?: boolean | undefined;
2835
- } | undefined;
2836
- links?: {
2837
- self: string;
2838
- first?: string | undefined;
2839
- last?: string | undefined;
2840
- prev?: string | undefined;
2841
- next?: string | undefined;
2842
- } | undefined;
2843
- }>;
2844
- 403: z.ZodObject<{
2845
- errors: z.ZodArray<z.ZodObject<{
2846
- status: z.ZodString;
2847
- title: z.ZodString;
2848
- detail: z.ZodOptional<z.ZodString>;
2849
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2850
- }, "strip", z.ZodTypeAny, {
2851
- status: string;
2852
- title: string;
2853
- detail?: string | undefined;
2854
- meta?: Record<string, unknown> | undefined;
2855
- }, {
2856
- status: string;
2857
- title: string;
2858
- detail?: string | undefined;
2859
- meta?: Record<string, unknown> | undefined;
2860
- }>, "many">;
2861
- }, "strip", z.ZodTypeAny, {
2862
- errors: {
2863
- status: string;
2864
- title: string;
2865
- detail?: string | undefined;
2866
- meta?: Record<string, unknown> | undefined;
2867
- }[];
2868
- }, {
2869
- errors: {
2870
- status: string;
2871
- title: string;
2872
- detail?: string | undefined;
2873
- meta?: Record<string, unknown> | undefined;
2874
- }[];
2875
- }>;
2876
- 404: z.ZodObject<{
2877
- errors: z.ZodArray<z.ZodObject<{
2878
- status: z.ZodString;
2879
- title: z.ZodString;
2880
- detail: z.ZodOptional<z.ZodString>;
2881
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2882
- }, "strip", z.ZodTypeAny, {
2883
- status: string;
2884
- title: string;
2885
- detail?: string | undefined;
2886
- meta?: Record<string, unknown> | undefined;
2887
- }, {
2888
- status: string;
2889
- title: string;
2890
- detail?: string | undefined;
2891
- meta?: Record<string, unknown> | undefined;
2892
- }>, "many">;
2893
- }, "strip", z.ZodTypeAny, {
2894
- errors: {
2895
- status: string;
2896
- title: string;
2897
- detail?: string | undefined;
2898
- meta?: Record<string, unknown> | undefined;
2899
- }[];
2900
- }, {
2901
- errors: {
2902
- status: string;
2903
- title: string;
2904
- detail?: string | undefined;
2905
- meta?: Record<string, unknown> | undefined;
2906
- }[];
2907
- }>;
2908
- };
2909
- };
2910
- getRFI: {
2911
- pathParams: z.ZodObject<{
2912
- projectId: z.ZodString;
2913
- rfiId: z.ZodString;
2914
- }, "strip", z.ZodTypeAny, {
2915
- projectId: string;
2916
- rfiId: string;
2917
- }, {
2918
- projectId: string;
2919
- rfiId: string;
2920
- }>;
2921
- summary: "Get a single RFI by ID";
2922
- method: "GET";
2923
- path: "/projects/:projectId/rfis/:rfiId";
2924
- responses: {
2925
- 200: z.ZodObject<{
2926
- data: z.ZodObject<{
2927
- type: z.ZodLiteral<"rfis">;
2928
- id: z.ZodString;
2929
- attributes: z.ZodObject<{
2930
- id: z.ZodString;
2931
- projectId: z.ZodString;
2932
- rfiNumber: z.ZodNullable<z.ZodString>;
2933
- title: z.ZodString;
2934
- description: z.ZodString;
2935
- question: z.ZodString;
2936
- answer: z.ZodNullable<z.ZodString>;
2937
- status: z.ZodEnum<["OPEN", "IN_REVIEW", "ANSWERED", "CLOSED", "CANCELLED"]>;
2938
- priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
2939
- discipline: z.ZodNullable<z.ZodString>;
2940
- location: z.ZodNullable<z.ZodString>;
2941
- raisedBy: z.ZodObject<{
2942
- id: z.ZodString;
2943
- firstName: z.ZodNullable<z.ZodString>;
2944
- lastName: z.ZodNullable<z.ZodString>;
2945
- email: z.ZodString;
2946
- }, "strip", z.ZodTypeAny, {
2947
- id: string;
2948
- firstName: string | null;
2949
- lastName: string | null;
2950
- email: string;
2951
- }, {
2952
- id: string;
2953
- firstName: string | null;
2954
- lastName: string | null;
2955
- email: string;
2956
- }>;
2957
- assignedTo: z.ZodNullable<z.ZodObject<{
2958
- id: z.ZodString;
2959
- firstName: z.ZodNullable<z.ZodString>;
2960
- lastName: z.ZodNullable<z.ZodString>;
2961
- email: z.ZodString;
2962
- }, "strip", z.ZodTypeAny, {
2963
- id: string;
2964
- firstName: string | null;
2965
- lastName: string | null;
2966
- email: string;
2967
- }, {
2968
- id: string;
2969
- firstName: string | null;
2970
- lastName: string | null;
2971
- email: string;
2972
- }>>;
2973
- dueDate: z.ZodNullable<z.ZodString>;
2974
- answeredAt: z.ZodNullable<z.ZodString>;
2975
- createdAt: z.ZodString;
2976
- updatedAt: z.ZodString;
2977
- }, "strip", z.ZodTypeAny, {
2978
- id: string;
2979
- createdAt: string;
2980
- updatedAt: string;
2981
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
2982
- title: string;
2983
- projectId: string;
2984
- description: string;
2985
- dueDate: string | null;
2986
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
2987
- location: string | null;
2988
- assignedTo: {
2989
- id: string;
2990
- firstName: string | null;
2991
- lastName: string | null;
2992
- email: string;
2993
- } | null;
2994
- rfiNumber: string | null;
2995
- question: string;
2996
- answer: string | null;
2997
- discipline: string | null;
2998
- raisedBy: {
2999
- id: string;
3000
- firstName: string | null;
3001
- lastName: string | null;
3002
- email: string;
3003
- };
3004
- answeredAt: string | null;
3005
- }, {
3006
- id: string;
3007
- createdAt: string;
3008
- updatedAt: string;
3009
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3010
- title: string;
3011
- projectId: string;
3012
- description: string;
3013
- dueDate: string | null;
3014
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3015
- location: string | null;
3016
- assignedTo: {
3017
- id: string;
3018
- firstName: string | null;
3019
- lastName: string | null;
3020
- email: string;
3021
- } | null;
3022
- rfiNumber: string | null;
3023
- question: string;
3024
- answer: string | null;
3025
- discipline: string | null;
3026
- raisedBy: {
3027
- id: string;
3028
- firstName: string | null;
3029
- lastName: string | null;
3030
- email: string;
3031
- };
3032
- answeredAt: string | null;
3033
- }>;
3034
- }, "strip", z.ZodTypeAny, {
3035
- id: string;
3036
- type: "rfis";
3037
- attributes: {
3038
- id: string;
3039
- createdAt: string;
3040
- updatedAt: string;
3041
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3042
- title: string;
3043
- projectId: string;
3044
- description: string;
3045
- dueDate: string | null;
3046
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3047
- location: string | null;
3048
- assignedTo: {
3049
- id: string;
3050
- firstName: string | null;
3051
- lastName: string | null;
3052
- email: string;
3053
- } | null;
3054
- rfiNumber: string | null;
3055
- question: string;
3056
- answer: string | null;
3057
- discipline: string | null;
3058
- raisedBy: {
3059
- id: string;
3060
- firstName: string | null;
3061
- lastName: string | null;
3062
- email: string;
3063
- };
3064
- answeredAt: string | null;
3065
- };
3066
- }, {
3067
- id: string;
3068
- type: "rfis";
3069
- attributes: {
3070
- id: string;
3071
- createdAt: string;
3072
- updatedAt: string;
3073
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3074
- title: string;
3075
- projectId: string;
3076
- description: string;
3077
- dueDate: string | null;
3078
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3079
- location: string | null;
3080
- assignedTo: {
3081
- id: string;
3082
- firstName: string | null;
3083
- lastName: string | null;
3084
- email: string;
3085
- } | null;
3086
- rfiNumber: string | null;
3087
- question: string;
3088
- answer: string | null;
3089
- discipline: string | null;
3090
- raisedBy: {
3091
- id: string;
3092
- firstName: string | null;
3093
- lastName: string | null;
3094
- email: string;
3095
- };
3096
- answeredAt: string | null;
3097
- };
3098
- }>;
3099
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3100
- links: z.ZodOptional<z.ZodObject<{
3101
- self: z.ZodString;
3102
- first: z.ZodOptional<z.ZodString>;
3103
- last: z.ZodOptional<z.ZodString>;
3104
- prev: z.ZodOptional<z.ZodString>;
3105
- next: z.ZodOptional<z.ZodString>;
3106
- }, "strip", z.ZodTypeAny, {
3107
- self: string;
3108
- first?: string | undefined;
3109
- last?: string | undefined;
3110
- prev?: string | undefined;
3111
- next?: string | undefined;
3112
- }, {
3113
- self: string;
3114
- first?: string | undefined;
3115
- last?: string | undefined;
3116
- prev?: string | undefined;
3117
- next?: string | undefined;
3118
- }>>;
3119
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
3120
- status: z.ZodString;
3121
- title: z.ZodString;
3122
- detail: z.ZodOptional<z.ZodString>;
3123
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3124
- }, "strip", z.ZodTypeAny, {
3125
- status: string;
3126
- title: string;
3127
- detail?: string | undefined;
3128
- meta?: Record<string, unknown> | undefined;
3129
- }, {
3130
- status: string;
3131
- title: string;
3132
- detail?: string | undefined;
3133
- meta?: Record<string, unknown> | undefined;
3134
- }>, "many">>;
3135
- }, "strip", z.ZodTypeAny, {
3136
- data: {
3137
- id: string;
3138
- type: "rfis";
3139
- attributes: {
3140
- id: string;
3141
- createdAt: string;
3142
- updatedAt: string;
3143
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3144
- title: string;
3145
- projectId: string;
3146
- description: string;
3147
- dueDate: string | null;
3148
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3149
- location: string | null;
3150
- assignedTo: {
3151
- id: string;
3152
- firstName: string | null;
3153
- lastName: string | null;
3154
- email: string;
3155
- } | null;
3156
- rfiNumber: string | null;
3157
- question: string;
3158
- answer: string | null;
3159
- discipline: string | null;
3160
- raisedBy: {
3161
- id: string;
3162
- firstName: string | null;
3163
- lastName: string | null;
3164
- email: string;
3165
- };
3166
- answeredAt: string | null;
3167
- };
3168
- };
3169
- meta?: Record<string, unknown> | undefined;
3170
- links?: {
3171
- self: string;
3172
- first?: string | undefined;
3173
- last?: string | undefined;
3174
- prev?: string | undefined;
3175
- next?: string | undefined;
3176
- } | undefined;
3177
- errors?: {
3178
- status: string;
3179
- title: string;
3180
- detail?: string | undefined;
3181
- meta?: Record<string, unknown> | undefined;
3182
- }[] | undefined;
3183
- }, {
3184
- data: {
3185
- id: string;
3186
- type: "rfis";
3187
- attributes: {
3188
- id: string;
3189
- createdAt: string;
3190
- updatedAt: string;
3191
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3192
- title: string;
3193
- projectId: string;
3194
- description: string;
3195
- dueDate: string | null;
3196
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3197
- location: string | null;
3198
- assignedTo: {
3199
- id: string;
3200
- firstName: string | null;
3201
- lastName: string | null;
3202
- email: string;
3203
- } | null;
3204
- rfiNumber: string | null;
3205
- question: string;
3206
- answer: string | null;
3207
- discipline: string | null;
3208
- raisedBy: {
3209
- id: string;
3210
- firstName: string | null;
3211
- lastName: string | null;
3212
- email: string;
3213
- };
3214
- answeredAt: string | null;
3215
- };
3216
- };
3217
- meta?: Record<string, unknown> | undefined;
3218
- links?: {
3219
- self: string;
3220
- first?: string | undefined;
3221
- last?: string | undefined;
3222
- prev?: string | undefined;
3223
- next?: string | undefined;
3224
- } | undefined;
3225
- errors?: {
3226
- status: string;
3227
- title: string;
3228
- detail?: string | undefined;
3229
- meta?: Record<string, unknown> | undefined;
3230
- }[] | undefined;
3231
- }>;
3232
- 403: z.ZodObject<{
3233
- errors: z.ZodArray<z.ZodObject<{
3234
- status: z.ZodString;
3235
- title: z.ZodString;
3236
- detail: z.ZodOptional<z.ZodString>;
3237
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3238
- }, "strip", z.ZodTypeAny, {
3239
- status: string;
3240
- title: string;
3241
- detail?: string | undefined;
3242
- meta?: Record<string, unknown> | undefined;
3243
- }, {
3244
- status: string;
3245
- title: string;
3246
- detail?: string | undefined;
3247
- meta?: Record<string, unknown> | undefined;
3248
- }>, "many">;
3249
- }, "strip", z.ZodTypeAny, {
3250
- errors: {
3251
- status: string;
3252
- title: string;
3253
- detail?: string | undefined;
3254
- meta?: Record<string, unknown> | undefined;
3255
- }[];
3256
- }, {
3257
- errors: {
3258
- status: string;
3259
- title: string;
3260
- detail?: string | undefined;
3261
- meta?: Record<string, unknown> | undefined;
3262
- }[];
3263
- }>;
3264
- 404: z.ZodObject<{
3265
- errors: z.ZodArray<z.ZodObject<{
3266
- status: z.ZodString;
3267
- title: z.ZodString;
3268
- detail: z.ZodOptional<z.ZodString>;
3269
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3270
- }, "strip", z.ZodTypeAny, {
3271
- status: string;
3272
- title: string;
3273
- detail?: string | undefined;
3274
- meta?: Record<string, unknown> | undefined;
3275
- }, {
3276
- status: string;
3277
- title: string;
3278
- detail?: string | undefined;
3279
- meta?: Record<string, unknown> | undefined;
3280
- }>, "many">;
3281
- }, "strip", z.ZodTypeAny, {
3282
- errors: {
3283
- status: string;
3284
- title: string;
3285
- detail?: string | undefined;
3286
- meta?: Record<string, unknown> | undefined;
3287
- }[];
3288
- }, {
3289
- errors: {
3290
- status: string;
3291
- title: string;
3292
- detail?: string | undefined;
3293
- meta?: Record<string, unknown> | undefined;
3294
- }[];
3295
- }>;
3296
- };
3297
- };
3298
- createRFI: {
3299
- pathParams: z.ZodObject<{
3300
- projectId: z.ZodString;
3301
- }, "strip", z.ZodTypeAny, {
3302
- projectId: string;
3303
- }, {
3304
- projectId: string;
3305
- }>;
3306
- summary: "Create a new RFI";
3307
- method: "POST";
3308
- body: z.ZodObject<{
3309
- title: z.ZodString;
3310
- description: z.ZodString;
3311
- question: z.ZodString;
3312
- priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
3313
- discipline: z.ZodOptional<z.ZodString>;
3314
- location: z.ZodOptional<z.ZodString>;
3315
- assignedToId: z.ZodOptional<z.ZodString>;
3316
- dueDate: z.ZodOptional<z.ZodString>;
3317
- }, "strip", z.ZodTypeAny, {
3318
- title: string;
3319
- description: string;
3320
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3321
- question: string;
3322
- dueDate?: string | undefined;
3323
- location?: string | undefined;
3324
- assignedToId?: string | undefined;
3325
- discipline?: string | undefined;
3326
- }, {
3327
- title: string;
3328
- description: string;
3329
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3330
- question: string;
3331
- dueDate?: string | undefined;
3332
- location?: string | undefined;
3333
- assignedToId?: string | undefined;
3334
- discipline?: string | undefined;
3335
- }>;
3336
- path: "/projects/:projectId/rfis";
3337
- responses: {
3338
- 201: z.ZodObject<{
3339
- data: z.ZodObject<{
3340
- type: z.ZodLiteral<"rfis">;
3341
- id: z.ZodString;
3342
- attributes: z.ZodObject<{
3343
- id: z.ZodString;
3344
- projectId: z.ZodString;
3345
- rfiNumber: z.ZodNullable<z.ZodString>;
3346
- title: z.ZodString;
3347
- description: z.ZodString;
3348
- question: z.ZodString;
3349
- answer: z.ZodNullable<z.ZodString>;
3350
- status: z.ZodEnum<["OPEN", "IN_REVIEW", "ANSWERED", "CLOSED", "CANCELLED"]>;
3351
- priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
3352
- discipline: z.ZodNullable<z.ZodString>;
3353
- location: z.ZodNullable<z.ZodString>;
3354
- raisedBy: z.ZodObject<{
3355
- id: z.ZodString;
3356
- firstName: z.ZodNullable<z.ZodString>;
3357
- lastName: z.ZodNullable<z.ZodString>;
3358
- email: z.ZodString;
3359
- }, "strip", z.ZodTypeAny, {
3360
- id: string;
3361
- firstName: string | null;
3362
- lastName: string | null;
3363
- email: string;
3364
- }, {
3365
- id: string;
3366
- firstName: string | null;
3367
- lastName: string | null;
3368
- email: string;
3369
- }>;
3370
- assignedTo: z.ZodNullable<z.ZodObject<{
3371
- id: z.ZodString;
3372
- firstName: z.ZodNullable<z.ZodString>;
3373
- lastName: z.ZodNullable<z.ZodString>;
3374
- email: z.ZodString;
3375
- }, "strip", z.ZodTypeAny, {
3376
- id: string;
3377
- firstName: string | null;
3378
- lastName: string | null;
3379
- email: string;
3380
- }, {
3381
- id: string;
3382
- firstName: string | null;
3383
- lastName: string | null;
3384
- email: string;
3385
- }>>;
3386
- dueDate: z.ZodNullable<z.ZodString>;
3387
- answeredAt: z.ZodNullable<z.ZodString>;
3388
- createdAt: z.ZodString;
3389
- updatedAt: z.ZodString;
3390
- }, "strip", z.ZodTypeAny, {
3391
- id: string;
3392
- createdAt: string;
3393
- updatedAt: string;
3394
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3395
- title: string;
3396
- projectId: string;
3397
- description: string;
3398
- dueDate: string | null;
3399
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3400
- location: string | null;
3401
- assignedTo: {
3402
- id: string;
3403
- firstName: string | null;
3404
- lastName: string | null;
3405
- email: string;
3406
- } | null;
3407
- rfiNumber: string | null;
3408
- question: string;
3409
- answer: string | null;
3410
- discipline: string | null;
3411
- raisedBy: {
3412
- id: string;
3413
- firstName: string | null;
3414
- lastName: string | null;
3415
- email: string;
3416
- };
3417
- answeredAt: string | null;
3418
- }, {
3419
- id: string;
3420
- createdAt: string;
3421
- updatedAt: string;
3422
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3423
- title: string;
3424
- projectId: string;
3425
- description: string;
3426
- dueDate: string | null;
3427
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3428
- location: string | null;
3429
- assignedTo: {
3430
- id: string;
3431
- firstName: string | null;
3432
- lastName: string | null;
3433
- email: string;
3434
- } | null;
3435
- rfiNumber: string | null;
3436
- question: string;
3437
- answer: string | null;
3438
- discipline: string | null;
3439
- raisedBy: {
3440
- id: string;
3441
- firstName: string | null;
3442
- lastName: string | null;
3443
- email: string;
3444
- };
3445
- answeredAt: string | null;
3446
- }>;
3447
- }, "strip", z.ZodTypeAny, {
3448
- id: string;
3449
- type: "rfis";
3450
- attributes: {
3451
- id: string;
3452
- createdAt: string;
3453
- updatedAt: string;
3454
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3455
- title: string;
3456
- projectId: string;
3457
- description: string;
3458
- dueDate: string | null;
3459
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3460
- location: string | null;
3461
- assignedTo: {
3462
- id: string;
3463
- firstName: string | null;
3464
- lastName: string | null;
3465
- email: string;
3466
- } | null;
3467
- rfiNumber: string | null;
3468
- question: string;
3469
- answer: string | null;
3470
- discipline: string | null;
3471
- raisedBy: {
3472
- id: string;
3473
- firstName: string | null;
3474
- lastName: string | null;
3475
- email: string;
3476
- };
3477
- answeredAt: string | null;
3478
- };
3479
- }, {
3480
- id: string;
3481
- type: "rfis";
3482
- attributes: {
3483
- id: string;
3484
- createdAt: string;
3485
- updatedAt: string;
3486
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3487
- title: string;
3488
- projectId: string;
3489
- description: string;
3490
- dueDate: string | null;
3491
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3492
- location: string | null;
3493
- assignedTo: {
3494
- id: string;
3495
- firstName: string | null;
3496
- lastName: string | null;
3497
- email: string;
3498
- } | null;
3499
- rfiNumber: string | null;
3500
- question: string;
3501
- answer: string | null;
3502
- discipline: string | null;
3503
- raisedBy: {
3504
- id: string;
3505
- firstName: string | null;
3506
- lastName: string | null;
3507
- email: string;
3508
- };
3509
- answeredAt: string | null;
3510
- };
3511
- }>;
3512
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3513
- links: z.ZodOptional<z.ZodObject<{
3514
- self: z.ZodString;
3515
- first: z.ZodOptional<z.ZodString>;
3516
- last: z.ZodOptional<z.ZodString>;
3517
- prev: z.ZodOptional<z.ZodString>;
3518
- next: z.ZodOptional<z.ZodString>;
3519
- }, "strip", z.ZodTypeAny, {
3520
- self: string;
3521
- first?: string | undefined;
3522
- last?: string | undefined;
3523
- prev?: string | undefined;
3524
- next?: string | undefined;
3525
- }, {
3526
- self: string;
3527
- first?: string | undefined;
3528
- last?: string | undefined;
3529
- prev?: string | undefined;
3530
- next?: string | undefined;
3531
- }>>;
3532
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
3533
- status: z.ZodString;
3534
- title: z.ZodString;
3535
- detail: z.ZodOptional<z.ZodString>;
3536
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3537
- }, "strip", z.ZodTypeAny, {
3538
- status: string;
3539
- title: string;
3540
- detail?: string | undefined;
3541
- meta?: Record<string, unknown> | undefined;
3542
- }, {
3543
- status: string;
3544
- title: string;
3545
- detail?: string | undefined;
3546
- meta?: Record<string, unknown> | undefined;
3547
- }>, "many">>;
3548
- }, "strip", z.ZodTypeAny, {
3549
- data: {
3550
- id: string;
3551
- type: "rfis";
3552
- attributes: {
3553
- id: string;
3554
- createdAt: string;
3555
- updatedAt: string;
3556
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3557
- title: string;
3558
- projectId: string;
3559
- description: string;
3560
- dueDate: string | null;
3561
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3562
- location: string | null;
3563
- assignedTo: {
3564
- id: string;
3565
- firstName: string | null;
3566
- lastName: string | null;
3567
- email: string;
3568
- } | null;
3569
- rfiNumber: string | null;
3570
- question: string;
3571
- answer: string | null;
3572
- discipline: string | null;
3573
- raisedBy: {
3574
- id: string;
3575
- firstName: string | null;
3576
- lastName: string | null;
3577
- email: string;
3578
- };
3579
- answeredAt: string | null;
3580
- };
3581
- };
3582
- meta?: Record<string, unknown> | undefined;
3583
- links?: {
3584
- self: string;
3585
- first?: string | undefined;
3586
- last?: string | undefined;
3587
- prev?: string | undefined;
3588
- next?: string | undefined;
3589
- } | undefined;
3590
- errors?: {
3591
- status: string;
3592
- title: string;
3593
- detail?: string | undefined;
3594
- meta?: Record<string, unknown> | undefined;
3595
- }[] | undefined;
3596
- }, {
3597
- data: {
3598
- id: string;
3599
- type: "rfis";
3600
- attributes: {
3601
- id: string;
3602
- createdAt: string;
3603
- updatedAt: string;
3604
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3605
- title: string;
3606
- projectId: string;
3607
- description: string;
3608
- dueDate: string | null;
3609
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3610
- location: string | null;
3611
- assignedTo: {
3612
- id: string;
3613
- firstName: string | null;
3614
- lastName: string | null;
3615
- email: string;
3616
- } | null;
3617
- rfiNumber: string | null;
3618
- question: string;
3619
- answer: string | null;
3620
- discipline: string | null;
3621
- raisedBy: {
3622
- id: string;
3623
- firstName: string | null;
3624
- lastName: string | null;
3625
- email: string;
3626
- };
3627
- answeredAt: string | null;
3628
- };
3629
- };
3630
- meta?: Record<string, unknown> | undefined;
3631
- links?: {
3632
- self: string;
3633
- first?: string | undefined;
3634
- last?: string | undefined;
3635
- prev?: string | undefined;
3636
- next?: string | undefined;
3637
- } | undefined;
3638
- errors?: {
3639
- status: string;
3640
- title: string;
3641
- detail?: string | undefined;
3642
- meta?: Record<string, unknown> | undefined;
3643
- }[] | undefined;
3644
- }>;
3645
- 400: z.ZodObject<{
3646
- errors: z.ZodArray<z.ZodObject<{
3647
- status: z.ZodString;
3648
- title: z.ZodString;
3649
- detail: z.ZodOptional<z.ZodString>;
3650
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3651
- }, "strip", z.ZodTypeAny, {
3652
- status: string;
3653
- title: string;
3654
- detail?: string | undefined;
3655
- meta?: Record<string, unknown> | undefined;
3656
- }, {
3657
- status: string;
3658
- title: string;
3659
- detail?: string | undefined;
3660
- meta?: Record<string, unknown> | undefined;
3661
- }>, "many">;
3662
- }, "strip", z.ZodTypeAny, {
3663
- errors: {
3664
- status: string;
3665
- title: string;
3666
- detail?: string | undefined;
3667
- meta?: Record<string, unknown> | undefined;
3668
- }[];
3669
- }, {
3670
- errors: {
3671
- status: string;
3672
- title: string;
3673
- detail?: string | undefined;
3674
- meta?: Record<string, unknown> | undefined;
3675
- }[];
3676
- }>;
3677
- 403: z.ZodObject<{
3678
- errors: z.ZodArray<z.ZodObject<{
3679
- status: z.ZodString;
3680
- title: z.ZodString;
3681
- detail: z.ZodOptional<z.ZodString>;
3682
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3683
- }, "strip", z.ZodTypeAny, {
3684
- status: string;
3685
- title: string;
3686
- detail?: string | undefined;
3687
- meta?: Record<string, unknown> | undefined;
3688
- }, {
3689
- status: string;
3690
- title: string;
3691
- detail?: string | undefined;
3692
- meta?: Record<string, unknown> | undefined;
3693
- }>, "many">;
3694
- }, "strip", z.ZodTypeAny, {
3695
- errors: {
3696
- status: string;
3697
- title: string;
3698
- detail?: string | undefined;
3699
- meta?: Record<string, unknown> | undefined;
3700
- }[];
3701
- }, {
3702
- errors: {
3703
- status: string;
3704
- title: string;
3705
- detail?: string | undefined;
3706
- meta?: Record<string, unknown> | undefined;
3707
- }[];
3708
- }>;
3709
- 404: z.ZodObject<{
3710
- errors: z.ZodArray<z.ZodObject<{
3711
- status: z.ZodString;
3712
- title: z.ZodString;
3713
- detail: z.ZodOptional<z.ZodString>;
3714
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3715
- }, "strip", z.ZodTypeAny, {
3716
- status: string;
3717
- title: string;
3718
- detail?: string | undefined;
3719
- meta?: Record<string, unknown> | undefined;
3720
- }, {
3721
- status: string;
3722
- title: string;
3723
- detail?: string | undefined;
3724
- meta?: Record<string, unknown> | undefined;
3725
- }>, "many">;
3726
- }, "strip", z.ZodTypeAny, {
3727
- errors: {
3728
- status: string;
3729
- title: string;
3730
- detail?: string | undefined;
3731
- meta?: Record<string, unknown> | undefined;
3732
- }[];
3733
- }, {
3734
- errors: {
3735
- status: string;
3736
- title: string;
3737
- detail?: string | undefined;
3738
- meta?: Record<string, unknown> | undefined;
3739
- }[];
3740
- }>;
3741
- };
3742
- };
3743
- updateRFI: {
3744
- pathParams: z.ZodObject<{
3745
- projectId: z.ZodString;
3746
- rfiId: z.ZodString;
3747
- }, "strip", z.ZodTypeAny, {
3748
- projectId: string;
3749
- rfiId: string;
3750
- }, {
3751
- projectId: string;
3752
- rfiId: string;
3753
- }>;
3754
- summary: "Update an existing RFI";
3755
- method: "PATCH";
3756
- body: z.ZodObject<{
3757
- title: z.ZodOptional<z.ZodString>;
3758
- description: z.ZodOptional<z.ZodString>;
3759
- question: z.ZodOptional<z.ZodString>;
3760
- answer: z.ZodOptional<z.ZodString>;
3761
- status: z.ZodOptional<z.ZodEnum<["OPEN", "IN_REVIEW", "ANSWERED", "CLOSED", "CANCELLED"]>>;
3762
- priority: z.ZodOptional<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
3763
- discipline: z.ZodOptional<z.ZodString>;
3764
- location: z.ZodOptional<z.ZodString>;
3765
- assignedToId: z.ZodOptional<z.ZodString>;
3766
- dueDate: z.ZodOptional<z.ZodString>;
3767
- }, "strip", z.ZodTypeAny, {
3768
- status?: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED" | undefined;
3769
- title?: string | undefined;
3770
- description?: string | undefined;
3771
- dueDate?: string | undefined;
3772
- priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
3773
- location?: string | undefined;
3774
- assignedToId?: string | undefined;
3775
- question?: string | undefined;
3776
- answer?: string | undefined;
3777
- discipline?: string | undefined;
3778
- }, {
3779
- status?: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED" | undefined;
3780
- title?: string | undefined;
3781
- description?: string | undefined;
3782
- dueDate?: string | undefined;
3783
- priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
3784
- location?: string | undefined;
3785
- assignedToId?: string | undefined;
3786
- question?: string | undefined;
3787
- answer?: string | undefined;
3788
- discipline?: string | undefined;
3789
- }>;
3790
- path: "/projects/:projectId/rfis/:rfiId";
3791
- responses: {
3792
- 200: z.ZodObject<{
3793
- data: z.ZodObject<{
3794
- type: z.ZodLiteral<"rfis">;
3795
- id: z.ZodString;
3796
- attributes: z.ZodObject<{
3797
- id: z.ZodString;
3798
- projectId: z.ZodString;
3799
- rfiNumber: z.ZodNullable<z.ZodString>;
3800
- title: z.ZodString;
3801
- description: z.ZodString;
3802
- question: z.ZodString;
3803
- answer: z.ZodNullable<z.ZodString>;
3804
- status: z.ZodEnum<["OPEN", "IN_REVIEW", "ANSWERED", "CLOSED", "CANCELLED"]>;
3805
- priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
3806
- discipline: z.ZodNullable<z.ZodString>;
3807
- location: z.ZodNullable<z.ZodString>;
3808
- raisedBy: z.ZodObject<{
3809
- id: z.ZodString;
3810
- firstName: z.ZodNullable<z.ZodString>;
3811
- lastName: z.ZodNullable<z.ZodString>;
3812
- email: z.ZodString;
3813
- }, "strip", z.ZodTypeAny, {
3814
- id: string;
3815
- firstName: string | null;
3816
- lastName: string | null;
3817
- email: string;
3818
- }, {
3819
- id: string;
3820
- firstName: string | null;
3821
- lastName: string | null;
3822
- email: string;
3823
- }>;
3824
- assignedTo: z.ZodNullable<z.ZodObject<{
3825
- id: z.ZodString;
3826
- firstName: z.ZodNullable<z.ZodString>;
3827
- lastName: z.ZodNullable<z.ZodString>;
3828
- email: z.ZodString;
3829
- }, "strip", z.ZodTypeAny, {
3830
- id: string;
3831
- firstName: string | null;
3832
- lastName: string | null;
3833
- email: string;
3834
- }, {
3835
- id: string;
3836
- firstName: string | null;
3837
- lastName: string | null;
3838
- email: string;
3839
- }>>;
3840
- dueDate: z.ZodNullable<z.ZodString>;
3841
- answeredAt: z.ZodNullable<z.ZodString>;
3842
- createdAt: z.ZodString;
3843
- updatedAt: z.ZodString;
3844
- }, "strip", z.ZodTypeAny, {
3845
- id: string;
3846
- createdAt: string;
3847
- updatedAt: string;
3848
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3849
- title: string;
3850
- projectId: string;
3851
- description: string;
3852
- dueDate: string | null;
3853
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3854
- location: string | null;
3855
- assignedTo: {
3856
- id: string;
3857
- firstName: string | null;
3858
- lastName: string | null;
3859
- email: string;
3860
- } | null;
3861
- rfiNumber: string | null;
3862
- question: string;
3863
- answer: string | null;
3864
- discipline: string | null;
3865
- raisedBy: {
3866
- id: string;
3867
- firstName: string | null;
3868
- lastName: string | null;
3869
- email: string;
3870
- };
3871
- answeredAt: string | null;
3872
- }, {
3873
- id: string;
3874
- createdAt: string;
3875
- updatedAt: string;
3876
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3877
- title: string;
3878
- projectId: string;
3879
- description: string;
3880
- dueDate: string | null;
3881
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3882
- location: string | null;
3883
- assignedTo: {
3884
- id: string;
3885
- firstName: string | null;
3886
- lastName: string | null;
3887
- email: string;
3888
- } | null;
3889
- rfiNumber: string | null;
3890
- question: string;
3891
- answer: string | null;
3892
- discipline: string | null;
3893
- raisedBy: {
3894
- id: string;
3895
- firstName: string | null;
3896
- lastName: string | null;
3897
- email: string;
3898
- };
3899
- answeredAt: string | null;
3900
- }>;
3901
- }, "strip", z.ZodTypeAny, {
3902
- id: string;
3903
- type: "rfis";
3904
- attributes: {
3905
- id: string;
3906
- createdAt: string;
3907
- updatedAt: string;
3908
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3909
- title: string;
3910
- projectId: string;
3911
- description: string;
3912
- dueDate: string | null;
3913
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3914
- location: string | null;
3915
- assignedTo: {
3916
- id: string;
3917
- firstName: string | null;
3918
- lastName: string | null;
3919
- email: string;
3920
- } | null;
3921
- rfiNumber: string | null;
3922
- question: string;
3923
- answer: string | null;
3924
- discipline: string | null;
3925
- raisedBy: {
3926
- id: string;
3927
- firstName: string | null;
3928
- lastName: string | null;
3929
- email: string;
3930
- };
3931
- answeredAt: string | null;
3932
- };
3933
- }, {
3934
- id: string;
3935
- type: "rfis";
3936
- attributes: {
3937
- id: string;
3938
- createdAt: string;
3939
- updatedAt: string;
3940
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
3941
- title: string;
3942
- projectId: string;
3943
- description: string;
3944
- dueDate: string | null;
3945
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3946
- location: string | null;
3947
- assignedTo: {
3948
- id: string;
3949
- firstName: string | null;
3950
- lastName: string | null;
3951
- email: string;
3952
- } | null;
3953
- rfiNumber: string | null;
3954
- question: string;
3955
- answer: string | null;
3956
- discipline: string | null;
3957
- raisedBy: {
3958
- id: string;
3959
- firstName: string | null;
3960
- lastName: string | null;
3961
- email: string;
3962
- };
3963
- answeredAt: string | null;
3964
- };
3965
- }>;
3966
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3967
- links: z.ZodOptional<z.ZodObject<{
3968
- self: z.ZodString;
3969
- first: z.ZodOptional<z.ZodString>;
3970
- last: z.ZodOptional<z.ZodString>;
3971
- prev: z.ZodOptional<z.ZodString>;
3972
- next: z.ZodOptional<z.ZodString>;
3973
- }, "strip", z.ZodTypeAny, {
3974
- self: string;
3975
- first?: string | undefined;
3976
- last?: string | undefined;
3977
- prev?: string | undefined;
3978
- next?: string | undefined;
3979
- }, {
3980
- self: string;
3981
- first?: string | undefined;
3982
- last?: string | undefined;
3983
- prev?: string | undefined;
3984
- next?: string | undefined;
3985
- }>>;
3986
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
3987
- status: z.ZodString;
3988
- title: z.ZodString;
3989
- detail: z.ZodOptional<z.ZodString>;
3990
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3991
- }, "strip", z.ZodTypeAny, {
3992
- status: string;
3993
- title: string;
3994
- detail?: string | undefined;
3995
- meta?: Record<string, unknown> | undefined;
3996
- }, {
3997
- status: string;
3998
- title: string;
3999
- detail?: string | undefined;
4000
- meta?: Record<string, unknown> | undefined;
4001
- }>, "many">>;
4002
- }, "strip", z.ZodTypeAny, {
4003
- data: {
4004
- id: string;
4005
- type: "rfis";
4006
- attributes: {
4007
- id: string;
4008
- createdAt: string;
4009
- updatedAt: string;
4010
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
4011
- title: string;
4012
- projectId: string;
4013
- description: string;
4014
- dueDate: string | null;
4015
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4016
- location: string | null;
4017
- assignedTo: {
4018
- id: string;
4019
- firstName: string | null;
4020
- lastName: string | null;
4021
- email: string;
4022
- } | null;
4023
- rfiNumber: string | null;
4024
- question: string;
4025
- answer: string | null;
4026
- discipline: string | null;
4027
- raisedBy: {
4028
- id: string;
4029
- firstName: string | null;
4030
- lastName: string | null;
4031
- email: string;
4032
- };
4033
- answeredAt: string | null;
4034
- };
4035
- };
4036
- meta?: Record<string, unknown> | undefined;
4037
- links?: {
4038
- self: string;
4039
- first?: string | undefined;
4040
- last?: string | undefined;
4041
- prev?: string | undefined;
4042
- next?: string | undefined;
4043
- } | undefined;
4044
- errors?: {
4045
- status: string;
4046
- title: string;
4047
- detail?: string | undefined;
4048
- meta?: Record<string, unknown> | undefined;
4049
- }[] | undefined;
4050
- }, {
4051
- data: {
4052
- id: string;
4053
- type: "rfis";
4054
- attributes: {
4055
- id: string;
4056
- createdAt: string;
4057
- updatedAt: string;
4058
- status: "CANCELLED" | "OPEN" | "IN_REVIEW" | "ANSWERED" | "CLOSED";
4059
- title: string;
4060
- projectId: string;
4061
- description: string;
4062
- dueDate: string | null;
4063
- priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4064
- location: string | null;
4065
- assignedTo: {
4066
- id: string;
4067
- firstName: string | null;
4068
- lastName: string | null;
4069
- email: string;
4070
- } | null;
4071
- rfiNumber: string | null;
4072
- question: string;
4073
- answer: string | null;
4074
- discipline: string | null;
4075
- raisedBy: {
4076
- id: string;
4077
- firstName: string | null;
4078
- lastName: string | null;
4079
- email: string;
4080
- };
4081
- answeredAt: string | null;
4082
- };
4083
- };
4084
- meta?: Record<string, unknown> | undefined;
4085
- links?: {
4086
- self: string;
4087
- first?: string | undefined;
4088
- last?: string | undefined;
4089
- prev?: string | undefined;
4090
- next?: string | undefined;
4091
- } | undefined;
4092
- errors?: {
4093
- status: string;
4094
- title: string;
4095
- detail?: string | undefined;
4096
- meta?: Record<string, unknown> | undefined;
4097
- }[] | undefined;
4098
- }>;
4099
- 400: z.ZodObject<{
4100
- errors: z.ZodArray<z.ZodObject<{
4101
- status: z.ZodString;
4102
- title: z.ZodString;
4103
- detail: z.ZodOptional<z.ZodString>;
4104
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4105
- }, "strip", z.ZodTypeAny, {
4106
- status: string;
4107
- title: string;
4108
- detail?: string | undefined;
4109
- meta?: Record<string, unknown> | undefined;
4110
- }, {
4111
- status: string;
4112
- title: string;
4113
- detail?: string | undefined;
4114
- meta?: Record<string, unknown> | undefined;
4115
- }>, "many">;
4116
- }, "strip", z.ZodTypeAny, {
4117
- errors: {
4118
- status: string;
4119
- title: string;
4120
- detail?: string | undefined;
4121
- meta?: Record<string, unknown> | undefined;
4122
- }[];
4123
- }, {
4124
- errors: {
4125
- status: string;
4126
- title: string;
4127
- detail?: string | undefined;
4128
- meta?: Record<string, unknown> | undefined;
4129
- }[];
4130
- }>;
4131
- 403: z.ZodObject<{
4132
- errors: z.ZodArray<z.ZodObject<{
4133
- status: z.ZodString;
4134
- title: z.ZodString;
4135
- detail: z.ZodOptional<z.ZodString>;
4136
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4137
- }, "strip", z.ZodTypeAny, {
4138
- status: string;
4139
- title: string;
4140
- detail?: string | undefined;
4141
- meta?: Record<string, unknown> | undefined;
4142
- }, {
4143
- status: string;
4144
- title: string;
4145
- detail?: string | undefined;
4146
- meta?: Record<string, unknown> | undefined;
4147
- }>, "many">;
4148
- }, "strip", z.ZodTypeAny, {
4149
- errors: {
4150
- status: string;
4151
- title: string;
4152
- detail?: string | undefined;
4153
- meta?: Record<string, unknown> | undefined;
4154
- }[];
4155
- }, {
4156
- errors: {
4157
- status: string;
4158
- title: string;
4159
- detail?: string | undefined;
4160
- meta?: Record<string, unknown> | undefined;
4161
- }[];
4162
- }>;
4163
- 404: z.ZodObject<{
4164
- errors: z.ZodArray<z.ZodObject<{
4165
- status: z.ZodString;
4166
- title: z.ZodString;
4167
- detail: z.ZodOptional<z.ZodString>;
4168
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4169
- }, "strip", z.ZodTypeAny, {
4170
- status: string;
4171
- title: string;
4172
- detail?: string | undefined;
4173
- meta?: Record<string, unknown> | undefined;
4174
- }, {
4175
- status: string;
4176
- title: string;
4177
- detail?: string | undefined;
4178
- meta?: Record<string, unknown> | undefined;
4179
- }>, "many">;
4180
- }, "strip", z.ZodTypeAny, {
4181
- errors: {
4182
- status: string;
4183
- title: string;
4184
- detail?: string | undefined;
4185
- meta?: Record<string, unknown> | undefined;
4186
- }[];
4187
- }, {
4188
- errors: {
4189
- status: string;
4190
- title: string;
4191
- detail?: string | undefined;
4192
- meta?: Record<string, unknown> | undefined;
4193
- }[];
4194
- }>;
4195
- };
4196
- };
4197
- getSubmittals: {
4198
- pathParams: z.ZodObject<{
4199
- projectId: z.ZodString;
4200
- }, "strip", z.ZodTypeAny, {
4201
- projectId: string;
4202
- }, {
4203
- projectId: string;
4204
- }>;
4205
- query: z.ZodObject<{
4206
- page: z.ZodDefault<z.ZodNumber>;
4207
- limit: z.ZodDefault<z.ZodNumber>;
4208
- status: z.ZodOptional<z.ZodEnum<["SUBMITTED", "UNDER_REVIEW", "APPROVED", "REJECTED", "RESUBMIT_REQUIRED", "APPROVED_WITH_COMMENTS"]>>;
4209
- contractor: z.ZodOptional<z.ZodString>;
4210
- reviewer: z.ZodOptional<z.ZodString>;
4211
- search: z.ZodOptional<z.ZodString>;
4212
- }, "strip", z.ZodTypeAny, {
4213
- page: number;
4214
- limit: number;
4215
- status?: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS" | undefined;
4216
- search?: string | undefined;
4217
- contractor?: string | undefined;
4218
- reviewer?: string | undefined;
4219
- }, {
4220
- status?: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS" | undefined;
4221
- page?: number | undefined;
4222
- limit?: number | undefined;
4223
- search?: string | undefined;
4224
- contractor?: string | undefined;
4225
- reviewer?: string | undefined;
4226
- }>;
4227
- summary: "Get project submittals";
4228
- method: "GET";
4229
- path: "/projects/:projectId/submittals";
4230
- responses: {
4231
- 200: z.ZodObject<{
4232
- data: z.ZodArray<z.ZodObject<{
4233
- type: z.ZodLiteral<"submittals">;
4234
- id: z.ZodString;
4235
- attributes: z.ZodObject<{
4236
- id: z.ZodString;
4237
- projectId: z.ZodString;
4238
- submittalNumber: z.ZodNullable<z.ZodString>;
4239
- title: z.ZodString;
4240
- description: z.ZodString;
4241
- status: z.ZodEnum<["SUBMITTED", "UNDER_REVIEW", "APPROVED", "REJECTED", "RESUBMIT_REQUIRED", "APPROVED_WITH_COMMENTS"]>;
4242
- specification: z.ZodNullable<z.ZodString>;
4243
- drawingNumber: z.ZodNullable<z.ZodString>;
4244
- contractor: z.ZodNullable<z.ZodString>;
4245
- submittedBy: z.ZodObject<{
4246
- id: z.ZodString;
4247
- firstName: z.ZodNullable<z.ZodString>;
4248
- lastName: z.ZodNullable<z.ZodString>;
4249
- email: z.ZodString;
4250
- }, "strip", z.ZodTypeAny, {
4251
- id: string;
4252
- firstName: string | null;
4253
- lastName: string | null;
4254
- email: string;
4255
- }, {
4256
- id: string;
4257
- firstName: string | null;
4258
- lastName: string | null;
4259
- email: string;
4260
- }>;
4261
- reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4262
- id: z.ZodString;
4263
- firstName: z.ZodNullable<z.ZodString>;
4264
- lastName: z.ZodNullable<z.ZodString>;
4265
- email: z.ZodString;
4266
- }, "strip", z.ZodTypeAny, {
4267
- id: string;
4268
- firstName: string | null;
4269
- lastName: string | null;
4270
- email: string;
4271
- }, {
4272
- id: string;
4273
- firstName: string | null;
4274
- lastName: string | null;
4275
- email: string;
4276
- }>>>;
4277
- submittedAt: z.ZodString;
4278
- reviewedAt: z.ZodNullable<z.ZodString>;
4279
- dueDate: z.ZodNullable<z.ZodString>;
4280
- reviewComments: z.ZodNullable<z.ZodString>;
4281
- createdAt: z.ZodString;
4282
- updatedAt: z.ZodString;
4283
- }, "strip", z.ZodTypeAny, {
4284
- id: string;
4285
- createdAt: string;
4286
- updatedAt: string;
4287
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4288
- title: string;
4289
- projectId: string;
4290
- description: string;
4291
- dueDate: string | null;
4292
- submittedAt: string;
4293
- reviewedAt: string | null;
4294
- submittedBy: {
4295
- id: string;
4296
- firstName: string | null;
4297
- lastName: string | null;
4298
- email: string;
4299
- };
4300
- contractor: string | null;
4301
- submittalNumber: string | null;
4302
- specification: string | null;
4303
- drawingNumber: string | null;
4304
- reviewComments: string | null;
4305
- reviewer?: {
4306
- id: string;
4307
- firstName: string | null;
4308
- lastName: string | null;
4309
- email: string;
4310
- } | null | undefined;
4311
- }, {
4312
- id: string;
4313
- createdAt: string;
4314
- updatedAt: string;
4315
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4316
- title: string;
4317
- projectId: string;
4318
- description: string;
4319
- dueDate: string | null;
4320
- submittedAt: string;
4321
- reviewedAt: string | null;
4322
- submittedBy: {
4323
- id: string;
4324
- firstName: string | null;
4325
- lastName: string | null;
4326
- email: string;
4327
- };
4328
- contractor: string | null;
4329
- submittalNumber: string | null;
4330
- specification: string | null;
4331
- drawingNumber: string | null;
4332
- reviewComments: string | null;
4333
- reviewer?: {
4334
- id: string;
4335
- firstName: string | null;
4336
- lastName: string | null;
4337
- email: string;
4338
- } | null | undefined;
4339
- }>;
4340
- }, "strip", z.ZodTypeAny, {
4341
- id: string;
4342
- type: "submittals";
4343
- attributes: {
4344
- id: string;
4345
- createdAt: string;
4346
- updatedAt: string;
4347
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4348
- title: string;
4349
- projectId: string;
4350
- description: string;
4351
- dueDate: string | null;
4352
- submittedAt: string;
4353
- reviewedAt: string | null;
4354
- submittedBy: {
4355
- id: string;
4356
- firstName: string | null;
4357
- lastName: string | null;
4358
- email: string;
4359
- };
4360
- contractor: string | null;
4361
- submittalNumber: string | null;
4362
- specification: string | null;
4363
- drawingNumber: string | null;
4364
- reviewComments: string | null;
4365
- reviewer?: {
4366
- id: string;
4367
- firstName: string | null;
4368
- lastName: string | null;
4369
- email: string;
4370
- } | null | undefined;
4371
- };
4372
- }, {
4373
- id: string;
4374
- type: "submittals";
4375
- attributes: {
4376
- id: string;
4377
- createdAt: string;
4378
- updatedAt: string;
4379
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4380
- title: string;
4381
- projectId: string;
4382
- description: string;
4383
- dueDate: string | null;
4384
- submittedAt: string;
4385
- reviewedAt: string | null;
4386
- submittedBy: {
4387
- id: string;
4388
- firstName: string | null;
4389
- lastName: string | null;
4390
- email: string;
4391
- };
4392
- contractor: string | null;
4393
- submittalNumber: string | null;
4394
- specification: string | null;
4395
- drawingNumber: string | null;
4396
- reviewComments: string | null;
4397
- reviewer?: {
4398
- id: string;
4399
- firstName: string | null;
4400
- lastName: string | null;
4401
- email: string;
4402
- } | null | undefined;
4403
- };
4404
- }>, "many">;
4405
- meta: z.ZodOptional<z.ZodObject<{
4406
- total: z.ZodOptional<z.ZodNumber>;
4407
- page: z.ZodOptional<z.ZodNumber>;
4408
- size: z.ZodOptional<z.ZodNumber>;
4409
- pages: z.ZodOptional<z.ZodNumber>;
4410
- hasNextPage: z.ZodOptional<z.ZodBoolean>;
4411
- hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
4412
- }, "strip", z.ZodTypeAny, {
4413
- page?: number | undefined;
4414
- total?: number | undefined;
4415
- size?: number | undefined;
4416
- pages?: number | undefined;
4417
- hasNextPage?: boolean | undefined;
4418
- hasPreviousPage?: boolean | undefined;
4419
- }, {
4420
- page?: number | undefined;
4421
- total?: number | undefined;
4422
- size?: number | undefined;
4423
- pages?: number | undefined;
4424
- hasNextPage?: boolean | undefined;
4425
- hasPreviousPage?: boolean | undefined;
4426
- }>>;
4427
- links: z.ZodOptional<z.ZodObject<{
4428
- self: z.ZodString;
4429
- first: z.ZodOptional<z.ZodString>;
4430
- last: z.ZodOptional<z.ZodString>;
4431
- prev: z.ZodOptional<z.ZodString>;
4432
- next: z.ZodOptional<z.ZodString>;
4433
- }, "strip", z.ZodTypeAny, {
4434
- self: string;
4435
- first?: string | undefined;
4436
- last?: string | undefined;
4437
- prev?: string | undefined;
4438
- next?: string | undefined;
4439
- }, {
4440
- self: string;
4441
- first?: string | undefined;
4442
- last?: string | undefined;
4443
- prev?: string | undefined;
4444
- next?: string | undefined;
4445
- }>>;
4446
- }, "strip", z.ZodTypeAny, {
4447
- data: {
4448
- id: string;
4449
- type: "submittals";
4450
- attributes: {
4451
- id: string;
4452
- createdAt: string;
4453
- updatedAt: string;
4454
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4455
- title: string;
4456
- projectId: string;
4457
- description: string;
4458
- dueDate: string | null;
4459
- submittedAt: string;
4460
- reviewedAt: string | null;
4461
- submittedBy: {
4462
- id: string;
4463
- firstName: string | null;
4464
- lastName: string | null;
4465
- email: string;
4466
- };
4467
- contractor: string | null;
4468
- submittalNumber: string | null;
4469
- specification: string | null;
4470
- drawingNumber: string | null;
4471
- reviewComments: string | null;
4472
- reviewer?: {
4473
- id: string;
4474
- firstName: string | null;
4475
- lastName: string | null;
4476
- email: string;
4477
- } | null | undefined;
4478
- };
4479
- }[];
4480
- meta?: {
4481
- page?: number | undefined;
4482
- total?: number | undefined;
4483
- size?: number | undefined;
4484
- pages?: number | undefined;
4485
- hasNextPage?: boolean | undefined;
4486
- hasPreviousPage?: boolean | undefined;
4487
- } | undefined;
4488
- links?: {
4489
- self: string;
4490
- first?: string | undefined;
4491
- last?: string | undefined;
4492
- prev?: string | undefined;
4493
- next?: string | undefined;
4494
- } | undefined;
4495
- }, {
4496
- data: {
4497
- id: string;
4498
- type: "submittals";
4499
- attributes: {
4500
- id: string;
4501
- createdAt: string;
4502
- updatedAt: string;
4503
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4504
- title: string;
4505
- projectId: string;
4506
- description: string;
4507
- dueDate: string | null;
4508
- submittedAt: string;
4509
- reviewedAt: string | null;
4510
- submittedBy: {
4511
- id: string;
4512
- firstName: string | null;
4513
- lastName: string | null;
4514
- email: string;
4515
- };
4516
- contractor: string | null;
4517
- submittalNumber: string | null;
4518
- specification: string | null;
4519
- drawingNumber: string | null;
4520
- reviewComments: string | null;
4521
- reviewer?: {
4522
- id: string;
4523
- firstName: string | null;
4524
- lastName: string | null;
4525
- email: string;
4526
- } | null | undefined;
4527
- };
4528
- }[];
4529
- meta?: {
4530
- page?: number | undefined;
4531
- total?: number | undefined;
4532
- size?: number | undefined;
4533
- pages?: number | undefined;
4534
- hasNextPage?: boolean | undefined;
4535
- hasPreviousPage?: boolean | undefined;
4536
- } | undefined;
4537
- links?: {
4538
- self: string;
4539
- first?: string | undefined;
4540
- last?: string | undefined;
4541
- prev?: string | undefined;
4542
- next?: string | undefined;
4543
- } | undefined;
4544
- }>;
4545
- 403: z.ZodObject<{
4546
- errors: z.ZodArray<z.ZodObject<{
4547
- status: z.ZodString;
4548
- title: z.ZodString;
4549
- detail: z.ZodOptional<z.ZodString>;
4550
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4551
- }, "strip", z.ZodTypeAny, {
4552
- status: string;
4553
- title: string;
4554
- detail?: string | undefined;
4555
- meta?: Record<string, unknown> | undefined;
4556
- }, {
4557
- status: string;
4558
- title: string;
4559
- detail?: string | undefined;
4560
- meta?: Record<string, unknown> | undefined;
4561
- }>, "many">;
4562
- }, "strip", z.ZodTypeAny, {
4563
- errors: {
4564
- status: string;
4565
- title: string;
4566
- detail?: string | undefined;
4567
- meta?: Record<string, unknown> | undefined;
4568
- }[];
4569
- }, {
4570
- errors: {
4571
- status: string;
4572
- title: string;
4573
- detail?: string | undefined;
4574
- meta?: Record<string, unknown> | undefined;
4575
- }[];
4576
- }>;
4577
- 404: z.ZodObject<{
4578
- errors: z.ZodArray<z.ZodObject<{
4579
- status: z.ZodString;
4580
- title: z.ZodString;
4581
- detail: z.ZodOptional<z.ZodString>;
4582
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4583
- }, "strip", z.ZodTypeAny, {
4584
- status: string;
4585
- title: string;
4586
- detail?: string | undefined;
4587
- meta?: Record<string, unknown> | undefined;
4588
- }, {
4589
- status: string;
4590
- title: string;
4591
- detail?: string | undefined;
4592
- meta?: Record<string, unknown> | undefined;
4593
- }>, "many">;
4594
- }, "strip", z.ZodTypeAny, {
4595
- errors: {
4596
- status: string;
4597
- title: string;
4598
- detail?: string | undefined;
4599
- meta?: Record<string, unknown> | undefined;
4600
- }[];
4601
- }, {
4602
- errors: {
4603
- status: string;
4604
- title: string;
4605
- detail?: string | undefined;
4606
- meta?: Record<string, unknown> | undefined;
4607
- }[];
4608
- }>;
4609
- };
4610
- };
4611
- getSubmittal: {
4612
- pathParams: z.ZodObject<{
4613
- projectId: z.ZodString;
4614
- submittalId: z.ZodString;
4615
- }, "strip", z.ZodTypeAny, {
4616
- projectId: string;
4617
- submittalId: string;
4618
- }, {
4619
- projectId: string;
4620
- submittalId: string;
4621
- }>;
4622
- summary: "Get a single submittal by ID";
4623
- method: "GET";
4624
- path: "/projects/:projectId/submittals/:submittalId";
4625
- responses: {
4626
- 200: z.ZodObject<{
4627
- data: z.ZodObject<{
4628
- type: z.ZodLiteral<"submittals">;
4629
- id: z.ZodString;
4630
- attributes: z.ZodObject<{
4631
- id: z.ZodString;
4632
- projectId: z.ZodString;
4633
- submittalNumber: z.ZodNullable<z.ZodString>;
4634
- title: z.ZodString;
4635
- description: z.ZodString;
4636
- status: z.ZodEnum<["SUBMITTED", "UNDER_REVIEW", "APPROVED", "REJECTED", "RESUBMIT_REQUIRED", "APPROVED_WITH_COMMENTS"]>;
4637
- specification: z.ZodNullable<z.ZodString>;
4638
- drawingNumber: z.ZodNullable<z.ZodString>;
4639
- contractor: z.ZodNullable<z.ZodString>;
4640
- submittedBy: z.ZodObject<{
4641
- id: z.ZodString;
4642
- firstName: z.ZodNullable<z.ZodString>;
4643
- lastName: z.ZodNullable<z.ZodString>;
4644
- email: z.ZodString;
4645
- }, "strip", z.ZodTypeAny, {
4646
- id: string;
4647
- firstName: string | null;
4648
- lastName: string | null;
4649
- email: string;
4650
- }, {
4651
- id: string;
4652
- firstName: string | null;
4653
- lastName: string | null;
4654
- email: string;
4655
- }>;
4656
- reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4657
- id: z.ZodString;
4658
- firstName: z.ZodNullable<z.ZodString>;
4659
- lastName: z.ZodNullable<z.ZodString>;
4660
- email: z.ZodString;
4661
- }, "strip", z.ZodTypeAny, {
4662
- id: string;
4663
- firstName: string | null;
4664
- lastName: string | null;
4665
- email: string;
4666
- }, {
4667
- id: string;
4668
- firstName: string | null;
4669
- lastName: string | null;
4670
- email: string;
4671
- }>>>;
4672
- submittedAt: z.ZodString;
4673
- reviewedAt: z.ZodNullable<z.ZodString>;
4674
- dueDate: z.ZodNullable<z.ZodString>;
4675
- reviewComments: z.ZodNullable<z.ZodString>;
4676
- createdAt: z.ZodString;
4677
- updatedAt: z.ZodString;
4678
- }, "strip", z.ZodTypeAny, {
4679
- id: string;
4680
- createdAt: string;
4681
- updatedAt: string;
4682
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4683
- title: string;
4684
- projectId: string;
4685
- description: string;
4686
- dueDate: string | null;
4687
- submittedAt: string;
4688
- reviewedAt: string | null;
4689
- submittedBy: {
4690
- id: string;
4691
- firstName: string | null;
4692
- lastName: string | null;
4693
- email: string;
4694
- };
4695
- contractor: string | null;
4696
- submittalNumber: string | null;
4697
- specification: string | null;
4698
- drawingNumber: string | null;
4699
- reviewComments: string | null;
4700
- reviewer?: {
4701
- id: string;
4702
- firstName: string | null;
4703
- lastName: string | null;
4704
- email: string;
4705
- } | null | undefined;
4706
- }, {
4707
- id: string;
4708
- createdAt: string;
4709
- updatedAt: string;
4710
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4711
- title: string;
4712
- projectId: string;
4713
- description: string;
4714
- dueDate: string | null;
4715
- submittedAt: string;
4716
- reviewedAt: string | null;
4717
- submittedBy: {
4718
- id: string;
4719
- firstName: string | null;
4720
- lastName: string | null;
4721
- email: string;
4722
- };
4723
- contractor: string | null;
4724
- submittalNumber: string | null;
4725
- specification: string | null;
4726
- drawingNumber: string | null;
4727
- reviewComments: string | null;
4728
- reviewer?: {
4729
- id: string;
4730
- firstName: string | null;
4731
- lastName: string | null;
4732
- email: string;
4733
- } | null | undefined;
4734
- }>;
4735
- }, "strip", z.ZodTypeAny, {
4736
- id: string;
4737
- type: "submittals";
4738
- attributes: {
4739
- id: string;
4740
- createdAt: string;
4741
- updatedAt: string;
4742
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4743
- title: string;
4744
- projectId: string;
4745
- description: string;
4746
- dueDate: string | null;
4747
- submittedAt: string;
4748
- reviewedAt: string | null;
4749
- submittedBy: {
4750
- id: string;
4751
- firstName: string | null;
4752
- lastName: string | null;
4753
- email: string;
4754
- };
4755
- contractor: string | null;
4756
- submittalNumber: string | null;
4757
- specification: string | null;
4758
- drawingNumber: string | null;
4759
- reviewComments: string | null;
4760
- reviewer?: {
4761
- id: string;
4762
- firstName: string | null;
4763
- lastName: string | null;
4764
- email: string;
4765
- } | null | undefined;
4766
- };
4767
- }, {
4768
- id: string;
4769
- type: "submittals";
4770
- attributes: {
4771
- id: string;
4772
- createdAt: string;
4773
- updatedAt: string;
4774
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4775
- title: string;
4776
- projectId: string;
4777
- description: string;
4778
- dueDate: string | null;
4779
- submittedAt: string;
4780
- reviewedAt: string | null;
4781
- submittedBy: {
4782
- id: string;
4783
- firstName: string | null;
4784
- lastName: string | null;
4785
- email: string;
4786
- };
4787
- contractor: string | null;
4788
- submittalNumber: string | null;
4789
- specification: string | null;
4790
- drawingNumber: string | null;
4791
- reviewComments: string | null;
4792
- reviewer?: {
4793
- id: string;
4794
- firstName: string | null;
4795
- lastName: string | null;
4796
- email: string;
4797
- } | null | undefined;
4798
- };
4799
- }>;
4800
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4801
- links: z.ZodOptional<z.ZodObject<{
4802
- self: z.ZodString;
4803
- first: z.ZodOptional<z.ZodString>;
4804
- last: z.ZodOptional<z.ZodString>;
4805
- prev: z.ZodOptional<z.ZodString>;
4806
- next: z.ZodOptional<z.ZodString>;
4807
- }, "strip", z.ZodTypeAny, {
4808
- self: string;
4809
- first?: string | undefined;
4810
- last?: string | undefined;
4811
- prev?: string | undefined;
4812
- next?: string | undefined;
4813
- }, {
4814
- self: string;
4815
- first?: string | undefined;
4816
- last?: string | undefined;
4817
- prev?: string | undefined;
4818
- next?: string | undefined;
4819
- }>>;
4820
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
4821
- status: z.ZodString;
4822
- title: z.ZodString;
4823
- detail: z.ZodOptional<z.ZodString>;
4824
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4825
- }, "strip", z.ZodTypeAny, {
4826
- status: string;
4827
- title: string;
4828
- detail?: string | undefined;
4829
- meta?: Record<string, unknown> | undefined;
4830
- }, {
4831
- status: string;
4832
- title: string;
4833
- detail?: string | undefined;
4834
- meta?: Record<string, unknown> | undefined;
4835
- }>, "many">>;
4836
- }, "strip", z.ZodTypeAny, {
4837
- data: {
4838
- id: string;
4839
- type: "submittals";
4840
- attributes: {
4841
- id: string;
4842
- createdAt: string;
4843
- updatedAt: string;
4844
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4845
- title: string;
4846
- projectId: string;
4847
- description: string;
4848
- dueDate: string | null;
4849
- submittedAt: string;
4850
- reviewedAt: string | null;
4851
- submittedBy: {
4852
- id: string;
4853
- firstName: string | null;
4854
- lastName: string | null;
4855
- email: string;
4856
- };
4857
- contractor: string | null;
4858
- submittalNumber: string | null;
4859
- specification: string | null;
4860
- drawingNumber: string | null;
4861
- reviewComments: string | null;
4862
- reviewer?: {
4863
- id: string;
4864
- firstName: string | null;
4865
- lastName: string | null;
4866
- email: string;
4867
- } | null | undefined;
4868
- };
4869
- };
4870
- meta?: Record<string, unknown> | undefined;
4871
- links?: {
4872
- self: string;
4873
- first?: string | undefined;
4874
- last?: string | undefined;
4875
- prev?: string | undefined;
4876
- next?: string | undefined;
4877
- } | undefined;
4878
- errors?: {
4879
- status: string;
4880
- title: string;
4881
- detail?: string | undefined;
4882
- meta?: Record<string, unknown> | undefined;
4883
- }[] | undefined;
4884
- }, {
4885
- data: {
4886
- id: string;
4887
- type: "submittals";
4888
- attributes: {
4889
- id: string;
4890
- createdAt: string;
4891
- updatedAt: string;
4892
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
4893
- title: string;
4894
- projectId: string;
4895
- description: string;
4896
- dueDate: string | null;
4897
- submittedAt: string;
4898
- reviewedAt: string | null;
4899
- submittedBy: {
4900
- id: string;
4901
- firstName: string | null;
4902
- lastName: string | null;
4903
- email: string;
4904
- };
4905
- contractor: string | null;
4906
- submittalNumber: string | null;
4907
- specification: string | null;
4908
- drawingNumber: string | null;
4909
- reviewComments: string | null;
4910
- reviewer?: {
4911
- id: string;
4912
- firstName: string | null;
4913
- lastName: string | null;
4914
- email: string;
4915
- } | null | undefined;
4916
- };
4917
- };
4918
- meta?: Record<string, unknown> | undefined;
4919
- links?: {
4920
- self: string;
4921
- first?: string | undefined;
4922
- last?: string | undefined;
4923
- prev?: string | undefined;
4924
- next?: string | undefined;
4925
- } | undefined;
4926
- errors?: {
4927
- status: string;
4928
- title: string;
4929
- detail?: string | undefined;
4930
- meta?: Record<string, unknown> | undefined;
4931
- }[] | undefined;
4932
- }>;
4933
- 403: z.ZodObject<{
4934
- errors: z.ZodArray<z.ZodObject<{
4935
- status: z.ZodString;
4936
- title: z.ZodString;
4937
- detail: z.ZodOptional<z.ZodString>;
4938
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4939
- }, "strip", z.ZodTypeAny, {
4940
- status: string;
4941
- title: string;
4942
- detail?: string | undefined;
4943
- meta?: Record<string, unknown> | undefined;
4944
- }, {
4945
- status: string;
4946
- title: string;
4947
- detail?: string | undefined;
4948
- meta?: Record<string, unknown> | undefined;
4949
- }>, "many">;
4950
- }, "strip", z.ZodTypeAny, {
4951
- errors: {
4952
- status: string;
4953
- title: string;
4954
- detail?: string | undefined;
4955
- meta?: Record<string, unknown> | undefined;
4956
- }[];
4957
- }, {
4958
- errors: {
4959
- status: string;
4960
- title: string;
4961
- detail?: string | undefined;
4962
- meta?: Record<string, unknown> | undefined;
4963
- }[];
4964
- }>;
4965
- 404: z.ZodObject<{
4966
- errors: z.ZodArray<z.ZodObject<{
4967
- status: z.ZodString;
4968
- title: z.ZodString;
4969
- detail: z.ZodOptional<z.ZodString>;
4970
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4971
- }, "strip", z.ZodTypeAny, {
4972
- status: string;
4973
- title: string;
4974
- detail?: string | undefined;
4975
- meta?: Record<string, unknown> | undefined;
4976
- }, {
4977
- status: string;
4978
- title: string;
4979
- detail?: string | undefined;
4980
- meta?: Record<string, unknown> | undefined;
4981
- }>, "many">;
4982
- }, "strip", z.ZodTypeAny, {
4983
- errors: {
4984
- status: string;
4985
- title: string;
4986
- detail?: string | undefined;
4987
- meta?: Record<string, unknown> | undefined;
4988
- }[];
4989
- }, {
4990
- errors: {
4991
- status: string;
4992
- title: string;
4993
- detail?: string | undefined;
4994
- meta?: Record<string, unknown> | undefined;
4995
- }[];
4996
- }>;
4997
- };
4998
- };
4999
- createSubmittal: {
5000
- pathParams: z.ZodObject<{
5001
- projectId: z.ZodString;
5002
- }, "strip", z.ZodTypeAny, {
5003
- projectId: string;
5004
- }, {
5005
- projectId: string;
5006
- }>;
5007
- summary: "Create a new submittal";
5008
- method: "POST";
5009
- body: z.ZodObject<{
5010
- title: z.ZodString;
5011
- description: z.ZodString;
5012
- specification: z.ZodOptional<z.ZodString>;
5013
- drawingNumber: z.ZodOptional<z.ZodString>;
5014
- contractor: z.ZodOptional<z.ZodString>;
5015
- reviewerId: z.ZodOptional<z.ZodString>;
5016
- dueDate: z.ZodOptional<z.ZodString>;
5017
- }, "strip", z.ZodTypeAny, {
5018
- title: string;
5019
- description: string;
5020
- dueDate?: string | undefined;
5021
- contractor?: string | undefined;
5022
- specification?: string | undefined;
5023
- drawingNumber?: string | undefined;
5024
- reviewerId?: string | undefined;
5025
- }, {
5026
- title: string;
5027
- description: string;
5028
- dueDate?: string | undefined;
5029
- contractor?: string | undefined;
5030
- specification?: string | undefined;
5031
- drawingNumber?: string | undefined;
5032
- reviewerId?: string | undefined;
5033
- }>;
5034
- path: "/projects/:projectId/submittals";
5035
- responses: {
5036
- 201: z.ZodObject<{
5037
- data: z.ZodObject<{
5038
- type: z.ZodLiteral<"submittals">;
5039
- id: z.ZodString;
5040
- attributes: z.ZodObject<{
5041
- id: z.ZodString;
5042
- projectId: z.ZodString;
5043
- submittalNumber: z.ZodNullable<z.ZodString>;
5044
- title: z.ZodString;
5045
- description: z.ZodString;
5046
- status: z.ZodEnum<["SUBMITTED", "UNDER_REVIEW", "APPROVED", "REJECTED", "RESUBMIT_REQUIRED", "APPROVED_WITH_COMMENTS"]>;
5047
- specification: z.ZodNullable<z.ZodString>;
5048
- drawingNumber: z.ZodNullable<z.ZodString>;
5049
- contractor: z.ZodNullable<z.ZodString>;
5050
- submittedBy: z.ZodObject<{
5051
- id: z.ZodString;
5052
- firstName: z.ZodNullable<z.ZodString>;
5053
- lastName: z.ZodNullable<z.ZodString>;
5054
- email: z.ZodString;
5055
- }, "strip", z.ZodTypeAny, {
5056
- id: string;
5057
- firstName: string | null;
5058
- lastName: string | null;
5059
- email: string;
5060
- }, {
5061
- id: string;
5062
- firstName: string | null;
5063
- lastName: string | null;
5064
- email: string;
5065
- }>;
5066
- reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5067
- id: z.ZodString;
5068
- firstName: z.ZodNullable<z.ZodString>;
5069
- lastName: z.ZodNullable<z.ZodString>;
5070
- email: z.ZodString;
5071
- }, "strip", z.ZodTypeAny, {
5072
- id: string;
5073
- firstName: string | null;
5074
- lastName: string | null;
5075
- email: string;
5076
- }, {
5077
- id: string;
5078
- firstName: string | null;
5079
- lastName: string | null;
5080
- email: string;
5081
- }>>>;
5082
- submittedAt: z.ZodString;
5083
- reviewedAt: z.ZodNullable<z.ZodString>;
5084
- dueDate: z.ZodNullable<z.ZodString>;
5085
- reviewComments: z.ZodNullable<z.ZodString>;
5086
- createdAt: z.ZodString;
5087
- updatedAt: z.ZodString;
5088
- }, "strip", z.ZodTypeAny, {
5089
- id: string;
5090
- createdAt: string;
5091
- updatedAt: string;
5092
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5093
- title: string;
5094
- projectId: string;
5095
- description: string;
5096
- dueDate: string | null;
5097
- submittedAt: string;
5098
- reviewedAt: string | null;
5099
- submittedBy: {
5100
- id: string;
5101
- firstName: string | null;
5102
- lastName: string | null;
5103
- email: string;
5104
- };
5105
- contractor: string | null;
5106
- submittalNumber: string | null;
5107
- specification: string | null;
5108
- drawingNumber: string | null;
5109
- reviewComments: string | null;
5110
- reviewer?: {
5111
- id: string;
5112
- firstName: string | null;
5113
- lastName: string | null;
5114
- email: string;
5115
- } | null | undefined;
5116
- }, {
5117
- id: string;
5118
- createdAt: string;
5119
- updatedAt: string;
5120
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5121
- title: string;
5122
- projectId: string;
5123
- description: string;
5124
- dueDate: string | null;
5125
- submittedAt: string;
5126
- reviewedAt: string | null;
5127
- submittedBy: {
5128
- id: string;
5129
- firstName: string | null;
5130
- lastName: string | null;
5131
- email: string;
5132
- };
5133
- contractor: string | null;
5134
- submittalNumber: string | null;
5135
- specification: string | null;
5136
- drawingNumber: string | null;
5137
- reviewComments: string | null;
5138
- reviewer?: {
5139
- id: string;
5140
- firstName: string | null;
5141
- lastName: string | null;
5142
- email: string;
5143
- } | null | undefined;
5144
- }>;
5145
- }, "strip", z.ZodTypeAny, {
5146
- id: string;
5147
- type: "submittals";
5148
- attributes: {
5149
- id: string;
5150
- createdAt: string;
5151
- updatedAt: string;
5152
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5153
- title: string;
5154
- projectId: string;
5155
- description: string;
5156
- dueDate: string | null;
5157
- submittedAt: string;
5158
- reviewedAt: string | null;
5159
- submittedBy: {
5160
- id: string;
5161
- firstName: string | null;
5162
- lastName: string | null;
5163
- email: string;
5164
- };
5165
- contractor: string | null;
5166
- submittalNumber: string | null;
5167
- specification: string | null;
5168
- drawingNumber: string | null;
5169
- reviewComments: string | null;
5170
- reviewer?: {
5171
- id: string;
5172
- firstName: string | null;
5173
- lastName: string | null;
5174
- email: string;
5175
- } | null | undefined;
5176
- };
5177
- }, {
5178
- id: string;
5179
- type: "submittals";
5180
- attributes: {
5181
- id: string;
5182
- createdAt: string;
5183
- updatedAt: string;
5184
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5185
- title: string;
5186
- projectId: string;
5187
- description: string;
5188
- dueDate: string | null;
5189
- submittedAt: string;
5190
- reviewedAt: string | null;
5191
- submittedBy: {
5192
- id: string;
5193
- firstName: string | null;
5194
- lastName: string | null;
5195
- email: string;
5196
- };
5197
- contractor: string | null;
5198
- submittalNumber: string | null;
5199
- specification: string | null;
5200
- drawingNumber: string | null;
5201
- reviewComments: string | null;
5202
- reviewer?: {
5203
- id: string;
5204
- firstName: string | null;
5205
- lastName: string | null;
5206
- email: string;
5207
- } | null | undefined;
5208
- };
5209
- }>;
5210
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5211
- links: z.ZodOptional<z.ZodObject<{
5212
- self: z.ZodString;
5213
- first: z.ZodOptional<z.ZodString>;
5214
- last: z.ZodOptional<z.ZodString>;
5215
- prev: z.ZodOptional<z.ZodString>;
5216
- next: z.ZodOptional<z.ZodString>;
5217
- }, "strip", z.ZodTypeAny, {
5218
- self: string;
5219
- first?: string | undefined;
5220
- last?: string | undefined;
5221
- prev?: string | undefined;
5222
- next?: string | undefined;
5223
- }, {
5224
- self: string;
5225
- first?: string | undefined;
5226
- last?: string | undefined;
5227
- prev?: string | undefined;
5228
- next?: string | undefined;
5229
- }>>;
5230
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
5231
- status: z.ZodString;
5232
- title: z.ZodString;
5233
- detail: z.ZodOptional<z.ZodString>;
5234
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5235
- }, "strip", z.ZodTypeAny, {
5236
- status: string;
5237
- title: string;
5238
- detail?: string | undefined;
5239
- meta?: Record<string, unknown> | undefined;
5240
- }, {
5241
- status: string;
5242
- title: string;
5243
- detail?: string | undefined;
5244
- meta?: Record<string, unknown> | undefined;
5245
- }>, "many">>;
5246
- }, "strip", z.ZodTypeAny, {
5247
- data: {
5248
- id: string;
5249
- type: "submittals";
5250
- attributes: {
5251
- id: string;
5252
- createdAt: string;
5253
- updatedAt: string;
5254
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5255
- title: string;
5256
- projectId: string;
5257
- description: string;
5258
- dueDate: string | null;
5259
- submittedAt: string;
5260
- reviewedAt: string | null;
5261
- submittedBy: {
5262
- id: string;
5263
- firstName: string | null;
5264
- lastName: string | null;
5265
- email: string;
5266
- };
5267
- contractor: string | null;
5268
- submittalNumber: string | null;
5269
- specification: string | null;
5270
- drawingNumber: string | null;
5271
- reviewComments: string | null;
5272
- reviewer?: {
5273
- id: string;
5274
- firstName: string | null;
5275
- lastName: string | null;
5276
- email: string;
5277
- } | null | undefined;
5278
- };
5279
- };
5280
- meta?: Record<string, unknown> | undefined;
5281
- links?: {
5282
- self: string;
5283
- first?: string | undefined;
5284
- last?: string | undefined;
5285
- prev?: string | undefined;
5286
- next?: string | undefined;
5287
- } | undefined;
5288
- errors?: {
5289
- status: string;
5290
- title: string;
5291
- detail?: string | undefined;
5292
- meta?: Record<string, unknown> | undefined;
5293
- }[] | undefined;
5294
- }, {
5295
- data: {
5296
- id: string;
5297
- type: "submittals";
5298
- attributes: {
5299
- id: string;
5300
- createdAt: string;
5301
- updatedAt: string;
5302
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5303
- title: string;
5304
- projectId: string;
5305
- description: string;
5306
- dueDate: string | null;
5307
- submittedAt: string;
5308
- reviewedAt: string | null;
5309
- submittedBy: {
5310
- id: string;
5311
- firstName: string | null;
5312
- lastName: string | null;
5313
- email: string;
5314
- };
5315
- contractor: string | null;
5316
- submittalNumber: string | null;
5317
- specification: string | null;
5318
- drawingNumber: string | null;
5319
- reviewComments: string | null;
5320
- reviewer?: {
5321
- id: string;
5322
- firstName: string | null;
5323
- lastName: string | null;
5324
- email: string;
5325
- } | null | undefined;
5326
- };
5327
- };
5328
- meta?: Record<string, unknown> | undefined;
5329
- links?: {
5330
- self: string;
5331
- first?: string | undefined;
5332
- last?: string | undefined;
5333
- prev?: string | undefined;
5334
- next?: string | undefined;
5335
- } | undefined;
5336
- errors?: {
5337
- status: string;
5338
- title: string;
5339
- detail?: string | undefined;
5340
- meta?: Record<string, unknown> | undefined;
5341
- }[] | undefined;
5342
- }>;
5343
- 400: z.ZodObject<{
5344
- errors: z.ZodArray<z.ZodObject<{
5345
- status: z.ZodString;
5346
- title: z.ZodString;
5347
- detail: z.ZodOptional<z.ZodString>;
5348
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5349
- }, "strip", z.ZodTypeAny, {
5350
- status: string;
5351
- title: string;
5352
- detail?: string | undefined;
5353
- meta?: Record<string, unknown> | undefined;
5354
- }, {
5355
- status: string;
5356
- title: string;
5357
- detail?: string | undefined;
5358
- meta?: Record<string, unknown> | undefined;
5359
- }>, "many">;
5360
- }, "strip", z.ZodTypeAny, {
5361
- errors: {
5362
- status: string;
5363
- title: string;
5364
- detail?: string | undefined;
5365
- meta?: Record<string, unknown> | undefined;
5366
- }[];
5367
- }, {
5368
- errors: {
5369
- status: string;
5370
- title: string;
5371
- detail?: string | undefined;
5372
- meta?: Record<string, unknown> | undefined;
5373
- }[];
5374
- }>;
5375
- 403: z.ZodObject<{
5376
- errors: z.ZodArray<z.ZodObject<{
5377
- status: z.ZodString;
5378
- title: z.ZodString;
5379
- detail: z.ZodOptional<z.ZodString>;
5380
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5381
- }, "strip", z.ZodTypeAny, {
5382
- status: string;
5383
- title: string;
5384
- detail?: string | undefined;
5385
- meta?: Record<string, unknown> | undefined;
5386
- }, {
5387
- status: string;
5388
- title: string;
5389
- detail?: string | undefined;
5390
- meta?: Record<string, unknown> | undefined;
5391
- }>, "many">;
5392
- }, "strip", z.ZodTypeAny, {
5393
- errors: {
5394
- status: string;
5395
- title: string;
5396
- detail?: string | undefined;
5397
- meta?: Record<string, unknown> | undefined;
5398
- }[];
5399
- }, {
5400
- errors: {
5401
- status: string;
5402
- title: string;
5403
- detail?: string | undefined;
5404
- meta?: Record<string, unknown> | undefined;
5405
- }[];
5406
- }>;
5407
- 404: z.ZodObject<{
5408
- errors: z.ZodArray<z.ZodObject<{
5409
- status: z.ZodString;
5410
- title: z.ZodString;
5411
- detail: z.ZodOptional<z.ZodString>;
5412
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5413
- }, "strip", z.ZodTypeAny, {
5414
- status: string;
5415
- title: string;
5416
- detail?: string | undefined;
5417
- meta?: Record<string, unknown> | undefined;
5418
- }, {
5419
- status: string;
5420
- title: string;
5421
- detail?: string | undefined;
5422
- meta?: Record<string, unknown> | undefined;
5423
- }>, "many">;
5424
- }, "strip", z.ZodTypeAny, {
5425
- errors: {
5426
- status: string;
5427
- title: string;
5428
- detail?: string | undefined;
5429
- meta?: Record<string, unknown> | undefined;
5430
- }[];
5431
- }, {
5432
- errors: {
5433
- status: string;
5434
- title: string;
5435
- detail?: string | undefined;
5436
- meta?: Record<string, unknown> | undefined;
5437
- }[];
5438
- }>;
5439
- };
5440
- };
5441
- updateSubmittal: {
5442
- pathParams: z.ZodObject<{
5443
- projectId: z.ZodString;
5444
- submittalId: z.ZodString;
5445
- }, "strip", z.ZodTypeAny, {
5446
- projectId: string;
5447
- submittalId: string;
5448
- }, {
5449
- projectId: string;
5450
- submittalId: string;
5451
- }>;
5452
- summary: "Update an existing submittal";
5453
- method: "PATCH";
5454
- body: z.ZodObject<{
5455
- title: z.ZodOptional<z.ZodString>;
5456
- description: z.ZodOptional<z.ZodString>;
5457
- status: z.ZodOptional<z.ZodEnum<["SUBMITTED", "UNDER_REVIEW", "APPROVED", "REJECTED", "RESUBMIT_REQUIRED", "APPROVED_WITH_COMMENTS"]>>;
5458
- specification: z.ZodOptional<z.ZodString>;
5459
- drawingNumber: z.ZodOptional<z.ZodString>;
5460
- contractor: z.ZodOptional<z.ZodString>;
5461
- reviewerId: z.ZodOptional<z.ZodString>;
5462
- dueDate: z.ZodOptional<z.ZodString>;
5463
- reviewComments: z.ZodOptional<z.ZodString>;
5464
- }, "strip", z.ZodTypeAny, {
5465
- status?: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS" | undefined;
5466
- title?: string | undefined;
5467
- description?: string | undefined;
5468
- dueDate?: string | undefined;
5469
- contractor?: string | undefined;
5470
- specification?: string | undefined;
5471
- drawingNumber?: string | undefined;
5472
- reviewComments?: string | undefined;
5473
- reviewerId?: string | undefined;
5474
- }, {
5475
- status?: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS" | undefined;
5476
- title?: string | undefined;
5477
- description?: string | undefined;
5478
- dueDate?: string | undefined;
5479
- contractor?: string | undefined;
5480
- specification?: string | undefined;
5481
- drawingNumber?: string | undefined;
5482
- reviewComments?: string | undefined;
5483
- reviewerId?: string | undefined;
5484
- }>;
5485
- path: "/projects/:projectId/submittals/:submittalId";
5486
- responses: {
5487
- 200: z.ZodObject<{
5488
- data: z.ZodObject<{
5489
- type: z.ZodLiteral<"submittals">;
5490
- id: z.ZodString;
5491
- attributes: z.ZodObject<{
5492
- id: z.ZodString;
5493
- projectId: z.ZodString;
5494
- submittalNumber: z.ZodNullable<z.ZodString>;
5495
- title: z.ZodString;
5496
- description: z.ZodString;
5497
- status: z.ZodEnum<["SUBMITTED", "UNDER_REVIEW", "APPROVED", "REJECTED", "RESUBMIT_REQUIRED", "APPROVED_WITH_COMMENTS"]>;
5498
- specification: z.ZodNullable<z.ZodString>;
5499
- drawingNumber: z.ZodNullable<z.ZodString>;
5500
- contractor: z.ZodNullable<z.ZodString>;
5501
- submittedBy: z.ZodObject<{
5502
- id: z.ZodString;
5503
- firstName: z.ZodNullable<z.ZodString>;
5504
- lastName: z.ZodNullable<z.ZodString>;
5505
- email: z.ZodString;
5506
- }, "strip", z.ZodTypeAny, {
5507
- id: string;
5508
- firstName: string | null;
5509
- lastName: string | null;
5510
- email: string;
5511
- }, {
5512
- id: string;
5513
- firstName: string | null;
5514
- lastName: string | null;
5515
- email: string;
5516
- }>;
5517
- reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5518
- id: z.ZodString;
5519
- firstName: z.ZodNullable<z.ZodString>;
5520
- lastName: z.ZodNullable<z.ZodString>;
5521
- email: z.ZodString;
5522
- }, "strip", z.ZodTypeAny, {
5523
- id: string;
5524
- firstName: string | null;
5525
- lastName: string | null;
5526
- email: string;
5527
- }, {
5528
- id: string;
5529
- firstName: string | null;
5530
- lastName: string | null;
5531
- email: string;
5532
- }>>>;
5533
- submittedAt: z.ZodString;
5534
- reviewedAt: z.ZodNullable<z.ZodString>;
5535
- dueDate: z.ZodNullable<z.ZodString>;
5536
- reviewComments: z.ZodNullable<z.ZodString>;
5537
- createdAt: z.ZodString;
5538
- updatedAt: z.ZodString;
5539
- }, "strip", z.ZodTypeAny, {
5540
- id: string;
5541
- createdAt: string;
5542
- updatedAt: string;
5543
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5544
- title: string;
5545
- projectId: string;
5546
- description: string;
5547
- dueDate: string | null;
5548
- submittedAt: string;
5549
- reviewedAt: string | null;
5550
- submittedBy: {
5551
- id: string;
5552
- firstName: string | null;
5553
- lastName: string | null;
5554
- email: string;
5555
- };
5556
- contractor: string | null;
5557
- submittalNumber: string | null;
5558
- specification: string | null;
5559
- drawingNumber: string | null;
5560
- reviewComments: string | null;
5561
- reviewer?: {
5562
- id: string;
5563
- firstName: string | null;
5564
- lastName: string | null;
5565
- email: string;
5566
- } | null | undefined;
5567
- }, {
5568
- id: string;
5569
- createdAt: string;
5570
- updatedAt: string;
5571
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5572
- title: string;
5573
- projectId: string;
5574
- description: string;
5575
- dueDate: string | null;
5576
- submittedAt: string;
5577
- reviewedAt: string | null;
5578
- submittedBy: {
5579
- id: string;
5580
- firstName: string | null;
5581
- lastName: string | null;
5582
- email: string;
5583
- };
5584
- contractor: string | null;
5585
- submittalNumber: string | null;
5586
- specification: string | null;
5587
- drawingNumber: string | null;
5588
- reviewComments: string | null;
5589
- reviewer?: {
5590
- id: string;
5591
- firstName: string | null;
5592
- lastName: string | null;
5593
- email: string;
5594
- } | null | undefined;
5595
- }>;
5596
- }, "strip", z.ZodTypeAny, {
5597
- id: string;
5598
- type: "submittals";
5599
- attributes: {
5600
- id: string;
5601
- createdAt: string;
5602
- updatedAt: string;
5603
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5604
- title: string;
5605
- projectId: string;
5606
- description: string;
5607
- dueDate: string | null;
5608
- submittedAt: string;
5609
- reviewedAt: string | null;
5610
- submittedBy: {
5611
- id: string;
5612
- firstName: string | null;
5613
- lastName: string | null;
5614
- email: string;
5615
- };
5616
- contractor: string | null;
5617
- submittalNumber: string | null;
5618
- specification: string | null;
5619
- drawingNumber: string | null;
5620
- reviewComments: string | null;
5621
- reviewer?: {
5622
- id: string;
5623
- firstName: string | null;
5624
- lastName: string | null;
5625
- email: string;
5626
- } | null | undefined;
5627
- };
5628
- }, {
5629
- id: string;
5630
- type: "submittals";
5631
- attributes: {
5632
- id: string;
5633
- createdAt: string;
5634
- updatedAt: string;
5635
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5636
- title: string;
5637
- projectId: string;
5638
- description: string;
5639
- dueDate: string | null;
5640
- submittedAt: string;
5641
- reviewedAt: string | null;
5642
- submittedBy: {
5643
- id: string;
5644
- firstName: string | null;
5645
- lastName: string | null;
5646
- email: string;
5647
- };
5648
- contractor: string | null;
5649
- submittalNumber: string | null;
5650
- specification: string | null;
5651
- drawingNumber: string | null;
5652
- reviewComments: string | null;
5653
- reviewer?: {
5654
- id: string;
5655
- firstName: string | null;
5656
- lastName: string | null;
5657
- email: string;
5658
- } | null | undefined;
5659
- };
5660
- }>;
5661
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5662
- links: z.ZodOptional<z.ZodObject<{
5663
- self: z.ZodString;
5664
- first: z.ZodOptional<z.ZodString>;
5665
- last: z.ZodOptional<z.ZodString>;
5666
- prev: z.ZodOptional<z.ZodString>;
5667
- next: z.ZodOptional<z.ZodString>;
5668
- }, "strip", z.ZodTypeAny, {
5669
- self: string;
5670
- first?: string | undefined;
5671
- last?: string | undefined;
5672
- prev?: string | undefined;
5673
- next?: string | undefined;
5674
- }, {
5675
- self: string;
5676
- first?: string | undefined;
5677
- last?: string | undefined;
5678
- prev?: string | undefined;
5679
- next?: string | undefined;
5680
- }>>;
5681
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
5682
- status: z.ZodString;
5683
- title: z.ZodString;
5684
- detail: z.ZodOptional<z.ZodString>;
5685
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5686
- }, "strip", z.ZodTypeAny, {
5687
- status: string;
5688
- title: string;
5689
- detail?: string | undefined;
5690
- meta?: Record<string, unknown> | undefined;
5691
- }, {
5692
- status: string;
5693
- title: string;
5694
- detail?: string | undefined;
5695
- meta?: Record<string, unknown> | undefined;
5696
- }>, "many">>;
5697
- }, "strip", z.ZodTypeAny, {
5698
- data: {
5699
- id: string;
5700
- type: "submittals";
5701
- attributes: {
5702
- id: string;
5703
- createdAt: string;
5704
- updatedAt: string;
5705
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5706
- title: string;
5707
- projectId: string;
5708
- description: string;
5709
- dueDate: string | null;
5710
- submittedAt: string;
5711
- reviewedAt: string | null;
5712
- submittedBy: {
5713
- id: string;
5714
- firstName: string | null;
5715
- lastName: string | null;
5716
- email: string;
5717
- };
5718
- contractor: string | null;
5719
- submittalNumber: string | null;
5720
- specification: string | null;
5721
- drawingNumber: string | null;
5722
- reviewComments: string | null;
5723
- reviewer?: {
5724
- id: string;
5725
- firstName: string | null;
5726
- lastName: string | null;
5727
- email: string;
5728
- } | null | undefined;
5729
- };
5730
- };
5731
- meta?: Record<string, unknown> | undefined;
5732
- links?: {
5733
- self: string;
5734
- first?: string | undefined;
5735
- last?: string | undefined;
5736
- prev?: string | undefined;
5737
- next?: string | undefined;
5738
- } | undefined;
5739
- errors?: {
5740
- status: string;
5741
- title: string;
5742
- detail?: string | undefined;
5743
- meta?: Record<string, unknown> | undefined;
5744
- }[] | undefined;
5745
- }, {
5746
- data: {
5747
- id: string;
5748
- type: "submittals";
5749
- attributes: {
5750
- id: string;
5751
- createdAt: string;
5752
- updatedAt: string;
5753
- status: "SUBMITTED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "RESUBMIT_REQUIRED" | "APPROVED_WITH_COMMENTS";
5754
- title: string;
5755
- projectId: string;
5756
- description: string;
5757
- dueDate: string | null;
5758
- submittedAt: string;
5759
- reviewedAt: string | null;
5760
- submittedBy: {
5761
- id: string;
5762
- firstName: string | null;
5763
- lastName: string | null;
5764
- email: string;
5765
- };
5766
- contractor: string | null;
5767
- submittalNumber: string | null;
5768
- specification: string | null;
5769
- drawingNumber: string | null;
5770
- reviewComments: string | null;
5771
- reviewer?: {
5772
- id: string;
5773
- firstName: string | null;
5774
- lastName: string | null;
5775
- email: string;
5776
- } | null | undefined;
5777
- };
5778
- };
5779
- meta?: Record<string, unknown> | undefined;
5780
- links?: {
5781
- self: string;
5782
- first?: string | undefined;
5783
- last?: string | undefined;
5784
- prev?: string | undefined;
5785
- next?: string | undefined;
5786
- } | undefined;
5787
- errors?: {
5788
- status: string;
5789
- title: string;
5790
- detail?: string | undefined;
5791
- meta?: Record<string, unknown> | undefined;
5792
- }[] | undefined;
5793
- }>;
5794
- 400: z.ZodObject<{
5795
- errors: z.ZodArray<z.ZodObject<{
5796
- status: z.ZodString;
5797
- title: z.ZodString;
5798
- detail: z.ZodOptional<z.ZodString>;
5799
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5800
- }, "strip", z.ZodTypeAny, {
5801
- status: string;
5802
- title: string;
5803
- detail?: string | undefined;
5804
- meta?: Record<string, unknown> | undefined;
5805
- }, {
5806
- status: string;
5807
- title: string;
5808
- detail?: string | undefined;
5809
- meta?: Record<string, unknown> | undefined;
5810
- }>, "many">;
5811
- }, "strip", z.ZodTypeAny, {
5812
- errors: {
5813
- status: string;
5814
- title: string;
5815
- detail?: string | undefined;
5816
- meta?: Record<string, unknown> | undefined;
5817
- }[];
5818
- }, {
5819
- errors: {
5820
- status: string;
5821
- title: string;
5822
- detail?: string | undefined;
5823
- meta?: Record<string, unknown> | undefined;
5824
- }[];
5825
- }>;
5826
- 403: z.ZodObject<{
5827
- errors: z.ZodArray<z.ZodObject<{
5828
- status: z.ZodString;
5829
- title: z.ZodString;
5830
- detail: z.ZodOptional<z.ZodString>;
5831
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5832
- }, "strip", z.ZodTypeAny, {
5833
- status: string;
5834
- title: string;
5835
- detail?: string | undefined;
5836
- meta?: Record<string, unknown> | undefined;
5837
- }, {
5838
- status: string;
5839
- title: string;
5840
- detail?: string | undefined;
5841
- meta?: Record<string, unknown> | undefined;
5842
- }>, "many">;
5843
- }, "strip", z.ZodTypeAny, {
5844
- errors: {
5845
- status: string;
5846
- title: string;
5847
- detail?: string | undefined;
5848
- meta?: Record<string, unknown> | undefined;
5849
- }[];
5850
- }, {
5851
- errors: {
5852
- status: string;
5853
- title: string;
5854
- detail?: string | undefined;
5855
- meta?: Record<string, unknown> | undefined;
5856
- }[];
5857
- }>;
5858
- 404: z.ZodObject<{
5859
- errors: z.ZodArray<z.ZodObject<{
5860
- status: z.ZodString;
5861
- title: z.ZodString;
5862
- detail: z.ZodOptional<z.ZodString>;
5863
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5864
- }, "strip", z.ZodTypeAny, {
5865
- status: string;
5866
- title: string;
5867
- detail?: string | undefined;
5868
- meta?: Record<string, unknown> | undefined;
5869
- }, {
5870
- status: string;
5871
- title: string;
5872
- detail?: string | undefined;
5873
- meta?: Record<string, unknown> | undefined;
5874
- }>, "many">;
5875
- }, "strip", z.ZodTypeAny, {
5876
- errors: {
5877
- status: string;
5878
- title: string;
5879
- detail?: string | undefined;
5880
- meta?: Record<string, unknown> | undefined;
5881
- }[];
5882
- }, {
5883
- errors: {
5884
- status: string;
5885
- title: string;
5886
- detail?: string | undefined;
5887
- meta?: Record<string, unknown> | undefined;
5888
- }[];
5889
- }>;
5890
- };
5891
- };
5892
2496
  };
5893
2497
  //# sourceMappingURL=documents.d.ts.map