@deepintel-ltd/buildlink-api-contracts 0.2.23

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 (278) hide show
  1. package/README.md +27 -0
  2. package/contracts/auth.d.ts +3641 -0
  3. package/contracts/auth.d.ts.map +1 -0
  4. package/contracts/auth.js +266 -0
  5. package/contracts/auth.js.map +1 -0
  6. package/contracts/billing.d.ts +2167 -0
  7. package/contracts/billing.d.ts.map +1 -0
  8. package/contracts/billing.js +55 -0
  9. package/contracts/billing.js.map +1 -0
  10. package/contracts/boq.d.ts +1214 -0
  11. package/contracts/boq.d.ts.map +1 -0
  12. package/contracts/boq.js +31 -0
  13. package/contracts/boq.js.map +1 -0
  14. package/contracts/budget.d.ts +10677 -0
  15. package/contracts/budget.d.ts.map +1 -0
  16. package/contracts/budget.js +599 -0
  17. package/contracts/budget.js.map +1 -0
  18. package/contracts/commercial.d.ts +1475 -0
  19. package/contracts/commercial.d.ts.map +1 -0
  20. package/contracts/commercial.js +40 -0
  21. package/contracts/commercial.js.map +1 -0
  22. package/contracts/communication.d.ts +5389 -0
  23. package/contracts/communication.d.ts.map +1 -0
  24. package/contracts/communication.js +255 -0
  25. package/contracts/communication.js.map +1 -0
  26. package/contracts/contractor-ledger.d.ts +1293 -0
  27. package/contracts/contractor-ledger.d.ts.map +1 -0
  28. package/contracts/contractor-ledger.js +41 -0
  29. package/contracts/contractor-ledger.js.map +1 -0
  30. package/contracts/daily-logs.d.ts +9132 -0
  31. package/contracts/daily-logs.d.ts.map +1 -0
  32. package/contracts/daily-logs.js +188 -0
  33. package/contracts/daily-logs.js.map +1 -0
  34. package/contracts/deficiencies.d.ts +11786 -0
  35. package/contracts/deficiencies.d.ts.map +1 -0
  36. package/contracts/deficiencies.js +312 -0
  37. package/contracts/deficiencies.js.map +1 -0
  38. package/contracts/directory.d.ts +3116 -0
  39. package/contracts/directory.d.ts.map +1 -0
  40. package/contracts/directory.js +117 -0
  41. package/contracts/directory.js.map +1 -0
  42. package/contracts/documents.d.ts +4944 -0
  43. package/contracts/documents.d.ts.map +1 -0
  44. package/contracts/documents.js +251 -0
  45. package/contracts/documents.js.map +1 -0
  46. package/contracts/drawings.d.ts +10552 -0
  47. package/contracts/drawings.d.ts.map +1 -0
  48. package/contracts/drawings.js +321 -0
  49. package/contracts/drawings.js.map +1 -0
  50. package/contracts/hub.d.ts +1174 -0
  51. package/contracts/hub.d.ts.map +1 -0
  52. package/contracts/hub.js +42 -0
  53. package/contracts/hub.js.map +1 -0
  54. package/contracts/index.d.ts +128 -0
  55. package/contracts/index.d.ts.map +1 -0
  56. package/contracts/index.js +119 -0
  57. package/contracts/index.js.map +1 -0
  58. package/contracts/integrations.d.ts +4163 -0
  59. package/contracts/integrations.d.ts.map +1 -0
  60. package/contracts/integrations.js +326 -0
  61. package/contracts/integrations.js.map +1 -0
  62. package/contracts/maps.d.ts +4911 -0
  63. package/contracts/maps.d.ts.map +1 -0
  64. package/contracts/maps.js +276 -0
  65. package/contracts/maps.js.map +1 -0
  66. package/contracts/meetings.d.ts +4194 -0
  67. package/contracts/meetings.d.ts.map +1 -0
  68. package/contracts/meetings.js +115 -0
  69. package/contracts/meetings.js.map +1 -0
  70. package/contracts/monitoring.d.ts +2749 -0
  71. package/contracts/monitoring.d.ts.map +1 -0
  72. package/contracts/monitoring.js +289 -0
  73. package/contracts/monitoring.js.map +1 -0
  74. package/contracts/packages.d.ts +1470 -0
  75. package/contracts/packages.d.ts.map +1 -0
  76. package/contracts/packages.js +74 -0
  77. package/contracts/packages.js.map +1 -0
  78. package/contracts/projects.d.ts +6281 -0
  79. package/contracts/projects.d.ts.map +1 -0
  80. package/contracts/projects.js +448 -0
  81. package/contracts/projects.js.map +1 -0
  82. package/contracts/proof.d.ts +962 -0
  83. package/contracts/proof.d.ts.map +1 -0
  84. package/contracts/proof.js +34 -0
  85. package/contracts/proof.js.map +1 -0
  86. package/contracts/qaqc.d.ts +1184 -0
  87. package/contracts/qaqc.d.ts.map +1 -0
  88. package/contracts/qaqc.js +35 -0
  89. package/contracts/qaqc.js.map +1 -0
  90. package/contracts/rbac.d.ts +5227 -0
  91. package/contracts/rbac.d.ts.map +1 -0
  92. package/contracts/rbac.js +357 -0
  93. package/contracts/rbac.js.map +1 -0
  94. package/contracts/reports.d.ts +8468 -0
  95. package/contracts/reports.d.ts.map +1 -0
  96. package/contracts/reports.js +377 -0
  97. package/contracts/reports.js.map +1 -0
  98. package/contracts/resources.d.ts +15870 -0
  99. package/contracts/resources.d.ts.map +1 -0
  100. package/contracts/resources.js +869 -0
  101. package/contracts/resources.js.map +1 -0
  102. package/contracts/rfi-submittal.d.ts +2545 -0
  103. package/contracts/rfi-submittal.d.ts.map +1 -0
  104. package/contracts/rfi-submittal.js +159 -0
  105. package/contracts/rfi-submittal.js.map +1 -0
  106. package/contracts/safety.d.ts +7162 -0
  107. package/contracts/safety.d.ts.map +1 -0
  108. package/contracts/safety.js +519 -0
  109. package/contracts/safety.js.map +1 -0
  110. package/contracts/schedule.d.ts +9456 -0
  111. package/contracts/schedule.d.ts.map +1 -0
  112. package/contracts/schedule.js +460 -0
  113. package/contracts/schedule.js.map +1 -0
  114. package/contracts/spec-equal.d.ts +841 -0
  115. package/contracts/spec-equal.d.ts.map +1 -0
  116. package/contracts/spec-equal.js +28 -0
  117. package/contracts/spec-equal.js.map +1 -0
  118. package/contracts/specifications.d.ts +15478 -0
  119. package/contracts/specifications.d.ts.map +1 -0
  120. package/contracts/specifications.js +521 -0
  121. package/contracts/specifications.js.map +1 -0
  122. package/contracts/tasks.d.ts +11037 -0
  123. package/contracts/tasks.d.ts.map +1 -0
  124. package/contracts/tasks.js +693 -0
  125. package/contracts/tasks.js.map +1 -0
  126. package/contracts/timecards.d.ts +3130 -0
  127. package/contracts/timecards.d.ts.map +1 -0
  128. package/contracts/timecards.js +133 -0
  129. package/contracts/timecards.js.map +1 -0
  130. package/contracts/transmittals.d.ts +3921 -0
  131. package/contracts/transmittals.d.ts.map +1 -0
  132. package/contracts/transmittals.js +156 -0
  133. package/contracts/transmittals.js.map +1 -0
  134. package/contracts/valuations.d.ts +3266 -0
  135. package/contracts/valuations.d.ts.map +1 -0
  136. package/contracts/valuations.js +116 -0
  137. package/contracts/valuations.js.map +1 -0
  138. package/package.json +216 -0
  139. package/schemas/auth.d.ts +449 -0
  140. package/schemas/auth.d.ts.map +1 -0
  141. package/schemas/auth.js +103 -0
  142. package/schemas/auth.js.map +1 -0
  143. package/schemas/billing.d.ts +710 -0
  144. package/schemas/billing.d.ts.map +1 -0
  145. package/schemas/billing.js +82 -0
  146. package/schemas/billing.js.map +1 -0
  147. package/schemas/boq.d.ts +385 -0
  148. package/schemas/boq.d.ts.map +1 -0
  149. package/schemas/boq.js +49 -0
  150. package/schemas/boq.js.map +1 -0
  151. package/schemas/budget.d.ts +737 -0
  152. package/schemas/budget.d.ts.map +1 -0
  153. package/schemas/budget.js +272 -0
  154. package/schemas/budget.js.map +1 -0
  155. package/schemas/commercial.d.ts +358 -0
  156. package/schemas/commercial.d.ts.map +1 -0
  157. package/schemas/commercial.js +36 -0
  158. package/schemas/commercial.js.map +1 -0
  159. package/schemas/common.d.ts +865 -0
  160. package/schemas/common.d.ts.map +1 -0
  161. package/schemas/common.js +193 -0
  162. package/schemas/common.js.map +1 -0
  163. package/schemas/communication.d.ts +884 -0
  164. package/schemas/communication.d.ts.map +1 -0
  165. package/schemas/communication.js +245 -0
  166. package/schemas/communication.js.map +1 -0
  167. package/schemas/contractor-ledger.d.ts +364 -0
  168. package/schemas/contractor-ledger.d.ts.map +1 -0
  169. package/schemas/contractor-ledger.js +36 -0
  170. package/schemas/contractor-ledger.js.map +1 -0
  171. package/schemas/cursor-pagination.d.ts +258 -0
  172. package/schemas/cursor-pagination.d.ts.map +1 -0
  173. package/schemas/cursor-pagination.js +84 -0
  174. package/schemas/cursor-pagination.js.map +1 -0
  175. package/schemas/daily-logs.d.ts +2339 -0
  176. package/schemas/daily-logs.d.ts.map +1 -0
  177. package/schemas/daily-logs.js +235 -0
  178. package/schemas/daily-logs.js.map +1 -0
  179. package/schemas/deficiencies.d.ts +2496 -0
  180. package/schemas/deficiencies.d.ts.map +1 -0
  181. package/schemas/deficiencies.js +338 -0
  182. package/schemas/deficiencies.js.map +1 -0
  183. package/schemas/directory.d.ts +783 -0
  184. package/schemas/directory.d.ts.map +1 -0
  185. package/schemas/directory.js +122 -0
  186. package/schemas/directory.js.map +1 -0
  187. package/schemas/documents.d.ts +202 -0
  188. package/schemas/documents.d.ts.map +1 -0
  189. package/schemas/documents.js +76 -0
  190. package/schemas/documents.js.map +1 -0
  191. package/schemas/drawings.d.ts +2042 -0
  192. package/schemas/drawings.d.ts.map +1 -0
  193. package/schemas/drawings.js +350 -0
  194. package/schemas/drawings.js.map +1 -0
  195. package/schemas/hub.d.ts +288 -0
  196. package/schemas/hub.d.ts.map +1 -0
  197. package/schemas/hub.js +32 -0
  198. package/schemas/hub.js.map +1 -0
  199. package/schemas/integrations.d.ts +508 -0
  200. package/schemas/integrations.d.ts.map +1 -0
  201. package/schemas/integrations.js +119 -0
  202. package/schemas/integrations.js.map +1 -0
  203. package/schemas/maps.d.ts +793 -0
  204. package/schemas/maps.d.ts.map +1 -0
  205. package/schemas/maps.js +118 -0
  206. package/schemas/maps.js.map +1 -0
  207. package/schemas/meetings.d.ts +888 -0
  208. package/schemas/meetings.d.ts.map +1 -0
  209. package/schemas/meetings.js +138 -0
  210. package/schemas/meetings.js.map +1 -0
  211. package/schemas/packages.d.ts +236 -0
  212. package/schemas/packages.d.ts.map +1 -0
  213. package/schemas/packages.js +53 -0
  214. package/schemas/packages.js.map +1 -0
  215. package/schemas/projects.d.ts +306 -0
  216. package/schemas/projects.d.ts.map +1 -0
  217. package/schemas/projects.js +92 -0
  218. package/schemas/projects.js.map +1 -0
  219. package/schemas/proof.d.ts +210 -0
  220. package/schemas/proof.d.ts.map +1 -0
  221. package/schemas/proof.js +26 -0
  222. package/schemas/proof.js.map +1 -0
  223. package/schemas/qaqc.d.ts +235 -0
  224. package/schemas/qaqc.d.ts.map +1 -0
  225. package/schemas/qaqc.js +47 -0
  226. package/schemas/qaqc.js.map +1 -0
  227. package/schemas/rbac.d.ts +730 -0
  228. package/schemas/rbac.d.ts.map +1 -0
  229. package/schemas/rbac.js +230 -0
  230. package/schemas/rbac.js.map +1 -0
  231. package/schemas/reports.d.ts +5729 -0
  232. package/schemas/reports.d.ts.map +1 -0
  233. package/schemas/reports.js +589 -0
  234. package/schemas/reports.js.map +1 -0
  235. package/schemas/resources.d.ts +5190 -0
  236. package/schemas/resources.d.ts.map +1 -0
  237. package/schemas/resources.js +678 -0
  238. package/schemas/resources.js.map +1 -0
  239. package/schemas/rfi.d.ts +877 -0
  240. package/schemas/rfi.d.ts.map +1 -0
  241. package/schemas/rfi.js +84 -0
  242. package/schemas/rfi.js.map +1 -0
  243. package/schemas/safety.d.ts +1080 -0
  244. package/schemas/safety.d.ts.map +1 -0
  245. package/schemas/safety.js +237 -0
  246. package/schemas/safety.js.map +1 -0
  247. package/schemas/schedule.d.ts +4657 -0
  248. package/schemas/schedule.d.ts.map +1 -0
  249. package/schemas/schedule.js +441 -0
  250. package/schemas/schedule.js.map +1 -0
  251. package/schemas/spec-equal.d.ts +162 -0
  252. package/schemas/spec-equal.d.ts.map +1 -0
  253. package/schemas/spec-equal.js +29 -0
  254. package/schemas/spec-equal.js.map +1 -0
  255. package/schemas/specifications.d.ts +5241 -0
  256. package/schemas/specifications.d.ts.map +1 -0
  257. package/schemas/specifications.js +426 -0
  258. package/schemas/specifications.js.map +1 -0
  259. package/schemas/submittal.d.ts +867 -0
  260. package/schemas/submittal.d.ts.map +1 -0
  261. package/schemas/submittal.js +87 -0
  262. package/schemas/submittal.js.map +1 -0
  263. package/schemas/tasks.d.ts +610 -0
  264. package/schemas/tasks.d.ts.map +1 -0
  265. package/schemas/tasks.js +133 -0
  266. package/schemas/tasks.js.map +1 -0
  267. package/schemas/timecards.d.ts +618 -0
  268. package/schemas/timecards.d.ts.map +1 -0
  269. package/schemas/timecards.js +80 -0
  270. package/schemas/timecards.js.map +1 -0
  271. package/schemas/transmittals.d.ts +662 -0
  272. package/schemas/transmittals.d.ts.map +1 -0
  273. package/schemas/transmittals.js +132 -0
  274. package/schemas/transmittals.js.map +1 -0
  275. package/schemas/valuations.d.ts +713 -0
  276. package/schemas/valuations.d.ts.map +1 -0
  277. package/schemas/valuations.js +116 -0
  278. package/schemas/valuations.js.map +1 -0
@@ -0,0 +1,3266 @@
1
+ import { z } from 'zod';
2
+ export declare const valuationsContract: {
3
+ listCertificates: {
4
+ pathParams: z.ZodObject<{
5
+ projectId: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ projectId: string;
8
+ }, {
9
+ projectId: string;
10
+ }>;
11
+ query: z.ZodObject<{
12
+ page: z.ZodDefault<z.ZodNumber>;
13
+ limit: z.ZodDefault<z.ZodNumber>;
14
+ workPackageId: z.ZodOptional<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ page: number;
17
+ limit: number;
18
+ workPackageId?: string | undefined;
19
+ }, {
20
+ page?: number | undefined;
21
+ limit?: number | undefined;
22
+ workPackageId?: string | undefined;
23
+ }>;
24
+ summary: "List IPC valuation certificates";
25
+ method: "GET";
26
+ path: "/projects/:projectId/valuations";
27
+ responses: {
28
+ 200: z.ZodObject<{
29
+ data: z.ZodArray<z.ZodObject<{
30
+ type: z.ZodLiteral<"valuation-certificates">;
31
+ id: z.ZodString;
32
+ attributes: z.ZodObject<Omit<{
33
+ id: z.ZodString;
34
+ projectId: z.ZodString;
35
+ companyId: z.ZodString;
36
+ workPackageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ certificateNumber: z.ZodString;
38
+ periodStart: z.ZodString;
39
+ periodEnd: z.ZodString;
40
+ status: z.ZodEnum<["DRAFT", "SUBMITTED", "CERTIFIED", "AMENDED", "REJECTED", "PAID"]>;
41
+ retentionPct: z.ZodNumber;
42
+ grossAmount: z.ZodNumber;
43
+ previousCertified: z.ZodNumber;
44
+ retentionAmount: z.ZodNumber;
45
+ netPayable: z.ZodNumber;
46
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ submittedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ certifiedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ certifiedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ paidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ paymentRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
+ id: z.ZodString;
54
+ certificateId: z.ZodString;
55
+ boqLineId: z.ZodString;
56
+ qtySupplyClaimed: z.ZodNumber;
57
+ qtyInstallClaimed: z.ZodNumber;
58
+ qtySupplyCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
+ qtyInstallCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ amountClaimed: z.ZodNumber;
61
+ amountCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
+ status: z.ZodEnum<["CLAIMED", "CERTIFIED", "AMENDED", "REJECTED"]>;
63
+ mosEvidenceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ qsNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ id: string;
67
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
68
+ certificateId: string;
69
+ boqLineId: string;
70
+ qtySupplyClaimed: number;
71
+ qtyInstallClaimed: number;
72
+ amountClaimed: number;
73
+ qtySupplyCertified?: number | null | undefined;
74
+ qtyInstallCertified?: number | null | undefined;
75
+ amountCertified?: number | null | undefined;
76
+ mosEvidenceUrl?: string | null | undefined;
77
+ qsNotes?: string | null | undefined;
78
+ }, {
79
+ id: string;
80
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
81
+ certificateId: string;
82
+ boqLineId: string;
83
+ qtySupplyClaimed: number;
84
+ qtyInstallClaimed: number;
85
+ amountClaimed: number;
86
+ qtySupplyCertified?: number | null | undefined;
87
+ qtyInstallCertified?: number | null | undefined;
88
+ amountCertified?: number | null | undefined;
89
+ mosEvidenceUrl?: string | null | undefined;
90
+ qsNotes?: string | null | undefined;
91
+ }>, "many">>;
92
+ createdAt: z.ZodString;
93
+ updatedAt: z.ZodString;
94
+ }, "id">, "strip", z.ZodTypeAny, {
95
+ createdAt: string;
96
+ updatedAt: string;
97
+ companyId: string;
98
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
99
+ projectId: string;
100
+ periodStart: string;
101
+ periodEnd: string;
102
+ certificateNumber: string;
103
+ retentionPct: number;
104
+ grossAmount: number;
105
+ previousCertified: number;
106
+ retentionAmount: number;
107
+ netPayable: number;
108
+ paidAt?: string | null | undefined;
109
+ workPackageId?: string | null | undefined;
110
+ lines?: {
111
+ id: string;
112
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
113
+ certificateId: string;
114
+ boqLineId: string;
115
+ qtySupplyClaimed: number;
116
+ qtyInstallClaimed: number;
117
+ amountClaimed: number;
118
+ qtySupplyCertified?: number | null | undefined;
119
+ qtyInstallCertified?: number | null | undefined;
120
+ amountCertified?: number | null | undefined;
121
+ mosEvidenceUrl?: string | null | undefined;
122
+ qsNotes?: string | null | undefined;
123
+ }[] | undefined;
124
+ notes?: string | null | undefined;
125
+ submittedById?: string | null | undefined;
126
+ certifiedById?: string | null | undefined;
127
+ certifiedAt?: string | null | undefined;
128
+ paymentRef?: string | null | undefined;
129
+ }, {
130
+ createdAt: string;
131
+ updatedAt: string;
132
+ companyId: string;
133
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
134
+ projectId: string;
135
+ periodStart: string;
136
+ periodEnd: string;
137
+ certificateNumber: string;
138
+ retentionPct: number;
139
+ grossAmount: number;
140
+ previousCertified: number;
141
+ retentionAmount: number;
142
+ netPayable: number;
143
+ paidAt?: string | null | undefined;
144
+ workPackageId?: string | null | undefined;
145
+ lines?: {
146
+ id: string;
147
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
148
+ certificateId: string;
149
+ boqLineId: string;
150
+ qtySupplyClaimed: number;
151
+ qtyInstallClaimed: number;
152
+ amountClaimed: number;
153
+ qtySupplyCertified?: number | null | undefined;
154
+ qtyInstallCertified?: number | null | undefined;
155
+ amountCertified?: number | null | undefined;
156
+ mosEvidenceUrl?: string | null | undefined;
157
+ qsNotes?: string | null | undefined;
158
+ }[] | undefined;
159
+ notes?: string | null | undefined;
160
+ submittedById?: string | null | undefined;
161
+ certifiedById?: string | null | undefined;
162
+ certifiedAt?: string | null | undefined;
163
+ paymentRef?: string | null | undefined;
164
+ }>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ id: string;
167
+ type: "valuation-certificates";
168
+ attributes: {
169
+ createdAt: string;
170
+ updatedAt: string;
171
+ companyId: string;
172
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
173
+ projectId: string;
174
+ periodStart: string;
175
+ periodEnd: string;
176
+ certificateNumber: string;
177
+ retentionPct: number;
178
+ grossAmount: number;
179
+ previousCertified: number;
180
+ retentionAmount: number;
181
+ netPayable: number;
182
+ paidAt?: string | null | undefined;
183
+ workPackageId?: string | null | undefined;
184
+ lines?: {
185
+ id: string;
186
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
187
+ certificateId: string;
188
+ boqLineId: string;
189
+ qtySupplyClaimed: number;
190
+ qtyInstallClaimed: number;
191
+ amountClaimed: number;
192
+ qtySupplyCertified?: number | null | undefined;
193
+ qtyInstallCertified?: number | null | undefined;
194
+ amountCertified?: number | null | undefined;
195
+ mosEvidenceUrl?: string | null | undefined;
196
+ qsNotes?: string | null | undefined;
197
+ }[] | undefined;
198
+ notes?: string | null | undefined;
199
+ submittedById?: string | null | undefined;
200
+ certifiedById?: string | null | undefined;
201
+ certifiedAt?: string | null | undefined;
202
+ paymentRef?: string | null | undefined;
203
+ };
204
+ }, {
205
+ id: string;
206
+ type: "valuation-certificates";
207
+ attributes: {
208
+ createdAt: string;
209
+ updatedAt: string;
210
+ companyId: string;
211
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
212
+ projectId: string;
213
+ periodStart: string;
214
+ periodEnd: string;
215
+ certificateNumber: string;
216
+ retentionPct: number;
217
+ grossAmount: number;
218
+ previousCertified: number;
219
+ retentionAmount: number;
220
+ netPayable: number;
221
+ paidAt?: string | null | undefined;
222
+ workPackageId?: string | null | undefined;
223
+ lines?: {
224
+ id: string;
225
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
226
+ certificateId: string;
227
+ boqLineId: string;
228
+ qtySupplyClaimed: number;
229
+ qtyInstallClaimed: number;
230
+ amountClaimed: number;
231
+ qtySupplyCertified?: number | null | undefined;
232
+ qtyInstallCertified?: number | null | undefined;
233
+ amountCertified?: number | null | undefined;
234
+ mosEvidenceUrl?: string | null | undefined;
235
+ qsNotes?: string | null | undefined;
236
+ }[] | undefined;
237
+ notes?: string | null | undefined;
238
+ submittedById?: string | null | undefined;
239
+ certifiedById?: string | null | undefined;
240
+ certifiedAt?: string | null | undefined;
241
+ paymentRef?: string | null | undefined;
242
+ };
243
+ }>, "many">;
244
+ meta: z.ZodOptional<z.ZodObject<{
245
+ total: z.ZodOptional<z.ZodNumber>;
246
+ page: z.ZodOptional<z.ZodNumber>;
247
+ size: z.ZodOptional<z.ZodNumber>;
248
+ pages: z.ZodOptional<z.ZodNumber>;
249
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
250
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ page?: number | undefined;
253
+ total?: number | undefined;
254
+ size?: number | undefined;
255
+ pages?: number | undefined;
256
+ hasNextPage?: boolean | undefined;
257
+ hasPreviousPage?: boolean | undefined;
258
+ }, {
259
+ page?: number | undefined;
260
+ total?: number | undefined;
261
+ size?: number | undefined;
262
+ pages?: number | undefined;
263
+ hasNextPage?: boolean | undefined;
264
+ hasPreviousPage?: boolean | undefined;
265
+ }>>;
266
+ links: z.ZodOptional<z.ZodObject<{
267
+ self: z.ZodString;
268
+ first: z.ZodOptional<z.ZodString>;
269
+ last: z.ZodOptional<z.ZodString>;
270
+ prev: z.ZodOptional<z.ZodString>;
271
+ next: z.ZodOptional<z.ZodString>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ self: string;
274
+ first?: string | undefined;
275
+ last?: string | undefined;
276
+ prev?: string | undefined;
277
+ next?: string | undefined;
278
+ }, {
279
+ self: string;
280
+ first?: string | undefined;
281
+ last?: string | undefined;
282
+ prev?: string | undefined;
283
+ next?: string | undefined;
284
+ }>>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ data: {
287
+ id: string;
288
+ type: "valuation-certificates";
289
+ attributes: {
290
+ createdAt: string;
291
+ updatedAt: string;
292
+ companyId: string;
293
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
294
+ projectId: string;
295
+ periodStart: string;
296
+ periodEnd: string;
297
+ certificateNumber: string;
298
+ retentionPct: number;
299
+ grossAmount: number;
300
+ previousCertified: number;
301
+ retentionAmount: number;
302
+ netPayable: number;
303
+ paidAt?: string | null | undefined;
304
+ workPackageId?: string | null | undefined;
305
+ lines?: {
306
+ id: string;
307
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
308
+ certificateId: string;
309
+ boqLineId: string;
310
+ qtySupplyClaimed: number;
311
+ qtyInstallClaimed: number;
312
+ amountClaimed: number;
313
+ qtySupplyCertified?: number | null | undefined;
314
+ qtyInstallCertified?: number | null | undefined;
315
+ amountCertified?: number | null | undefined;
316
+ mosEvidenceUrl?: string | null | undefined;
317
+ qsNotes?: string | null | undefined;
318
+ }[] | undefined;
319
+ notes?: string | null | undefined;
320
+ submittedById?: string | null | undefined;
321
+ certifiedById?: string | null | undefined;
322
+ certifiedAt?: string | null | undefined;
323
+ paymentRef?: string | null | undefined;
324
+ };
325
+ }[];
326
+ meta?: {
327
+ page?: number | undefined;
328
+ total?: number | undefined;
329
+ size?: number | undefined;
330
+ pages?: number | undefined;
331
+ hasNextPage?: boolean | undefined;
332
+ hasPreviousPage?: boolean | undefined;
333
+ } | undefined;
334
+ links?: {
335
+ self: string;
336
+ first?: string | undefined;
337
+ last?: string | undefined;
338
+ prev?: string | undefined;
339
+ next?: string | undefined;
340
+ } | undefined;
341
+ }, {
342
+ data: {
343
+ id: string;
344
+ type: "valuation-certificates";
345
+ attributes: {
346
+ createdAt: string;
347
+ updatedAt: string;
348
+ companyId: string;
349
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
350
+ projectId: string;
351
+ periodStart: string;
352
+ periodEnd: string;
353
+ certificateNumber: string;
354
+ retentionPct: number;
355
+ grossAmount: number;
356
+ previousCertified: number;
357
+ retentionAmount: number;
358
+ netPayable: number;
359
+ paidAt?: string | null | undefined;
360
+ workPackageId?: string | null | undefined;
361
+ lines?: {
362
+ id: string;
363
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
364
+ certificateId: string;
365
+ boqLineId: string;
366
+ qtySupplyClaimed: number;
367
+ qtyInstallClaimed: number;
368
+ amountClaimed: number;
369
+ qtySupplyCertified?: number | null | undefined;
370
+ qtyInstallCertified?: number | null | undefined;
371
+ amountCertified?: number | null | undefined;
372
+ mosEvidenceUrl?: string | null | undefined;
373
+ qsNotes?: string | null | undefined;
374
+ }[] | undefined;
375
+ notes?: string | null | undefined;
376
+ submittedById?: string | null | undefined;
377
+ certifiedById?: string | null | undefined;
378
+ certifiedAt?: string | null | undefined;
379
+ paymentRef?: string | null | undefined;
380
+ };
381
+ }[];
382
+ meta?: {
383
+ page?: number | undefined;
384
+ total?: number | undefined;
385
+ size?: number | undefined;
386
+ pages?: number | undefined;
387
+ hasNextPage?: boolean | undefined;
388
+ hasPreviousPage?: boolean | undefined;
389
+ } | undefined;
390
+ links?: {
391
+ self: string;
392
+ first?: string | undefined;
393
+ last?: string | undefined;
394
+ prev?: string | undefined;
395
+ next?: string | undefined;
396
+ } | undefined;
397
+ }>;
398
+ 401: z.ZodObject<{
399
+ errors: z.ZodArray<z.ZodObject<{
400
+ status: z.ZodString;
401
+ title: z.ZodString;
402
+ detail: z.ZodOptional<z.ZodString>;
403
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ status: string;
406
+ title: string;
407
+ detail?: string | undefined;
408
+ meta?: Record<string, unknown> | undefined;
409
+ }, {
410
+ status: string;
411
+ title: string;
412
+ detail?: string | undefined;
413
+ meta?: Record<string, unknown> | undefined;
414
+ }>, "many">;
415
+ }, "strip", z.ZodTypeAny, {
416
+ errors: {
417
+ status: string;
418
+ title: string;
419
+ detail?: string | undefined;
420
+ meta?: Record<string, unknown> | undefined;
421
+ }[];
422
+ }, {
423
+ errors: {
424
+ status: string;
425
+ title: string;
426
+ detail?: string | undefined;
427
+ meta?: Record<string, unknown> | undefined;
428
+ }[];
429
+ }>;
430
+ 403: z.ZodObject<{
431
+ errors: z.ZodArray<z.ZodObject<{
432
+ status: z.ZodString;
433
+ title: z.ZodString;
434
+ detail: z.ZodOptional<z.ZodString>;
435
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ status: string;
438
+ title: string;
439
+ detail?: string | undefined;
440
+ meta?: Record<string, unknown> | undefined;
441
+ }, {
442
+ status: string;
443
+ title: string;
444
+ detail?: string | undefined;
445
+ meta?: Record<string, unknown> | undefined;
446
+ }>, "many">;
447
+ }, "strip", z.ZodTypeAny, {
448
+ errors: {
449
+ status: string;
450
+ title: string;
451
+ detail?: string | undefined;
452
+ meta?: Record<string, unknown> | undefined;
453
+ }[];
454
+ }, {
455
+ errors: {
456
+ status: string;
457
+ title: string;
458
+ detail?: string | undefined;
459
+ meta?: Record<string, unknown> | undefined;
460
+ }[];
461
+ }>;
462
+ };
463
+ };
464
+ createCertificate: {
465
+ pathParams: z.ZodObject<{
466
+ projectId: z.ZodString;
467
+ }, "strip", z.ZodTypeAny, {
468
+ projectId: string;
469
+ }, {
470
+ projectId: string;
471
+ }>;
472
+ summary: "Create a valuation certificate period";
473
+ method: "POST";
474
+ body: z.ZodObject<{
475
+ workPackageId: z.ZodOptional<z.ZodString>;
476
+ certificateNumber: z.ZodString;
477
+ periodStart: z.ZodString;
478
+ periodEnd: z.ZodString;
479
+ retentionPct: z.ZodDefault<z.ZodNumber>;
480
+ previousCertified: z.ZodDefault<z.ZodNumber>;
481
+ notes: z.ZodOptional<z.ZodString>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ periodStart: string;
484
+ periodEnd: string;
485
+ certificateNumber: string;
486
+ retentionPct: number;
487
+ previousCertified: number;
488
+ workPackageId?: string | undefined;
489
+ notes?: string | undefined;
490
+ }, {
491
+ periodStart: string;
492
+ periodEnd: string;
493
+ certificateNumber: string;
494
+ workPackageId?: string | undefined;
495
+ notes?: string | undefined;
496
+ retentionPct?: number | undefined;
497
+ previousCertified?: number | undefined;
498
+ }>;
499
+ path: "/projects/:projectId/valuations";
500
+ responses: {
501
+ 201: z.ZodObject<{
502
+ data: z.ZodObject<{
503
+ type: z.ZodLiteral<"valuation-certificates">;
504
+ id: z.ZodString;
505
+ attributes: z.ZodObject<Omit<{
506
+ id: z.ZodString;
507
+ projectId: z.ZodString;
508
+ companyId: z.ZodString;
509
+ workPackageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
510
+ certificateNumber: z.ZodString;
511
+ periodStart: z.ZodString;
512
+ periodEnd: z.ZodString;
513
+ status: z.ZodEnum<["DRAFT", "SUBMITTED", "CERTIFIED", "AMENDED", "REJECTED", "PAID"]>;
514
+ retentionPct: z.ZodNumber;
515
+ grossAmount: z.ZodNumber;
516
+ previousCertified: z.ZodNumber;
517
+ retentionAmount: z.ZodNumber;
518
+ netPayable: z.ZodNumber;
519
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
520
+ submittedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
521
+ certifiedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
522
+ certifiedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
523
+ paidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
524
+ paymentRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
525
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
526
+ id: z.ZodString;
527
+ certificateId: z.ZodString;
528
+ boqLineId: z.ZodString;
529
+ qtySupplyClaimed: z.ZodNumber;
530
+ qtyInstallClaimed: z.ZodNumber;
531
+ qtySupplyCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
532
+ qtyInstallCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
533
+ amountClaimed: z.ZodNumber;
534
+ amountCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
535
+ status: z.ZodEnum<["CLAIMED", "CERTIFIED", "AMENDED", "REJECTED"]>;
536
+ mosEvidenceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
537
+ qsNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ id: string;
540
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
541
+ certificateId: string;
542
+ boqLineId: string;
543
+ qtySupplyClaimed: number;
544
+ qtyInstallClaimed: number;
545
+ amountClaimed: number;
546
+ qtySupplyCertified?: number | null | undefined;
547
+ qtyInstallCertified?: number | null | undefined;
548
+ amountCertified?: number | null | undefined;
549
+ mosEvidenceUrl?: string | null | undefined;
550
+ qsNotes?: string | null | undefined;
551
+ }, {
552
+ id: string;
553
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
554
+ certificateId: string;
555
+ boqLineId: string;
556
+ qtySupplyClaimed: number;
557
+ qtyInstallClaimed: number;
558
+ amountClaimed: number;
559
+ qtySupplyCertified?: number | null | undefined;
560
+ qtyInstallCertified?: number | null | undefined;
561
+ amountCertified?: number | null | undefined;
562
+ mosEvidenceUrl?: string | null | undefined;
563
+ qsNotes?: string | null | undefined;
564
+ }>, "many">>;
565
+ createdAt: z.ZodString;
566
+ updatedAt: z.ZodString;
567
+ }, "id">, "strip", z.ZodTypeAny, {
568
+ createdAt: string;
569
+ updatedAt: string;
570
+ companyId: string;
571
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
572
+ projectId: string;
573
+ periodStart: string;
574
+ periodEnd: string;
575
+ certificateNumber: string;
576
+ retentionPct: number;
577
+ grossAmount: number;
578
+ previousCertified: number;
579
+ retentionAmount: number;
580
+ netPayable: number;
581
+ paidAt?: string | null | undefined;
582
+ workPackageId?: string | null | undefined;
583
+ lines?: {
584
+ id: string;
585
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
586
+ certificateId: string;
587
+ boqLineId: string;
588
+ qtySupplyClaimed: number;
589
+ qtyInstallClaimed: number;
590
+ amountClaimed: number;
591
+ qtySupplyCertified?: number | null | undefined;
592
+ qtyInstallCertified?: number | null | undefined;
593
+ amountCertified?: number | null | undefined;
594
+ mosEvidenceUrl?: string | null | undefined;
595
+ qsNotes?: string | null | undefined;
596
+ }[] | undefined;
597
+ notes?: string | null | undefined;
598
+ submittedById?: string | null | undefined;
599
+ certifiedById?: string | null | undefined;
600
+ certifiedAt?: string | null | undefined;
601
+ paymentRef?: string | null | undefined;
602
+ }, {
603
+ createdAt: string;
604
+ updatedAt: string;
605
+ companyId: string;
606
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
607
+ projectId: string;
608
+ periodStart: string;
609
+ periodEnd: string;
610
+ certificateNumber: string;
611
+ retentionPct: number;
612
+ grossAmount: number;
613
+ previousCertified: number;
614
+ retentionAmount: number;
615
+ netPayable: number;
616
+ paidAt?: string | null | undefined;
617
+ workPackageId?: string | null | undefined;
618
+ lines?: {
619
+ id: string;
620
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
621
+ certificateId: string;
622
+ boqLineId: string;
623
+ qtySupplyClaimed: number;
624
+ qtyInstallClaimed: number;
625
+ amountClaimed: number;
626
+ qtySupplyCertified?: number | null | undefined;
627
+ qtyInstallCertified?: number | null | undefined;
628
+ amountCertified?: number | null | undefined;
629
+ mosEvidenceUrl?: string | null | undefined;
630
+ qsNotes?: string | null | undefined;
631
+ }[] | undefined;
632
+ notes?: string | null | undefined;
633
+ submittedById?: string | null | undefined;
634
+ certifiedById?: string | null | undefined;
635
+ certifiedAt?: string | null | undefined;
636
+ paymentRef?: string | null | undefined;
637
+ }>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ id: string;
640
+ type: "valuation-certificates";
641
+ attributes: {
642
+ createdAt: string;
643
+ updatedAt: string;
644
+ companyId: string;
645
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
646
+ projectId: string;
647
+ periodStart: string;
648
+ periodEnd: string;
649
+ certificateNumber: string;
650
+ retentionPct: number;
651
+ grossAmount: number;
652
+ previousCertified: number;
653
+ retentionAmount: number;
654
+ netPayable: number;
655
+ paidAt?: string | null | undefined;
656
+ workPackageId?: string | null | undefined;
657
+ lines?: {
658
+ id: string;
659
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
660
+ certificateId: string;
661
+ boqLineId: string;
662
+ qtySupplyClaimed: number;
663
+ qtyInstallClaimed: number;
664
+ amountClaimed: number;
665
+ qtySupplyCertified?: number | null | undefined;
666
+ qtyInstallCertified?: number | null | undefined;
667
+ amountCertified?: number | null | undefined;
668
+ mosEvidenceUrl?: string | null | undefined;
669
+ qsNotes?: string | null | undefined;
670
+ }[] | undefined;
671
+ notes?: string | null | undefined;
672
+ submittedById?: string | null | undefined;
673
+ certifiedById?: string | null | undefined;
674
+ certifiedAt?: string | null | undefined;
675
+ paymentRef?: string | null | undefined;
676
+ };
677
+ }, {
678
+ id: string;
679
+ type: "valuation-certificates";
680
+ attributes: {
681
+ createdAt: string;
682
+ updatedAt: string;
683
+ companyId: string;
684
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
685
+ projectId: string;
686
+ periodStart: string;
687
+ periodEnd: string;
688
+ certificateNumber: string;
689
+ retentionPct: number;
690
+ grossAmount: number;
691
+ previousCertified: number;
692
+ retentionAmount: number;
693
+ netPayable: number;
694
+ paidAt?: string | null | undefined;
695
+ workPackageId?: string | null | undefined;
696
+ lines?: {
697
+ id: string;
698
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
699
+ certificateId: string;
700
+ boqLineId: string;
701
+ qtySupplyClaimed: number;
702
+ qtyInstallClaimed: number;
703
+ amountClaimed: number;
704
+ qtySupplyCertified?: number | null | undefined;
705
+ qtyInstallCertified?: number | null | undefined;
706
+ amountCertified?: number | null | undefined;
707
+ mosEvidenceUrl?: string | null | undefined;
708
+ qsNotes?: string | null | undefined;
709
+ }[] | undefined;
710
+ notes?: string | null | undefined;
711
+ submittedById?: string | null | undefined;
712
+ certifiedById?: string | null | undefined;
713
+ certifiedAt?: string | null | undefined;
714
+ paymentRef?: string | null | undefined;
715
+ };
716
+ }>;
717
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
718
+ links: z.ZodOptional<z.ZodObject<{
719
+ self: z.ZodString;
720
+ first: z.ZodOptional<z.ZodString>;
721
+ last: z.ZodOptional<z.ZodString>;
722
+ prev: z.ZodOptional<z.ZodString>;
723
+ next: z.ZodOptional<z.ZodString>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ self: string;
726
+ first?: string | undefined;
727
+ last?: string | undefined;
728
+ prev?: string | undefined;
729
+ next?: string | undefined;
730
+ }, {
731
+ self: string;
732
+ first?: string | undefined;
733
+ last?: string | undefined;
734
+ prev?: string | undefined;
735
+ next?: string | undefined;
736
+ }>>;
737
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
738
+ status: z.ZodString;
739
+ title: z.ZodString;
740
+ detail: z.ZodOptional<z.ZodString>;
741
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
742
+ }, "strip", z.ZodTypeAny, {
743
+ status: string;
744
+ title: string;
745
+ detail?: string | undefined;
746
+ meta?: Record<string, unknown> | undefined;
747
+ }, {
748
+ status: string;
749
+ title: string;
750
+ detail?: string | undefined;
751
+ meta?: Record<string, unknown> | undefined;
752
+ }>, "many">>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ data: {
755
+ id: string;
756
+ type: "valuation-certificates";
757
+ attributes: {
758
+ createdAt: string;
759
+ updatedAt: string;
760
+ companyId: string;
761
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
762
+ projectId: string;
763
+ periodStart: string;
764
+ periodEnd: string;
765
+ certificateNumber: string;
766
+ retentionPct: number;
767
+ grossAmount: number;
768
+ previousCertified: number;
769
+ retentionAmount: number;
770
+ netPayable: number;
771
+ paidAt?: string | null | undefined;
772
+ workPackageId?: string | null | undefined;
773
+ lines?: {
774
+ id: string;
775
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
776
+ certificateId: string;
777
+ boqLineId: string;
778
+ qtySupplyClaimed: number;
779
+ qtyInstallClaimed: number;
780
+ amountClaimed: number;
781
+ qtySupplyCertified?: number | null | undefined;
782
+ qtyInstallCertified?: number | null | undefined;
783
+ amountCertified?: number | null | undefined;
784
+ mosEvidenceUrl?: string | null | undefined;
785
+ qsNotes?: string | null | undefined;
786
+ }[] | undefined;
787
+ notes?: string | null | undefined;
788
+ submittedById?: string | null | undefined;
789
+ certifiedById?: string | null | undefined;
790
+ certifiedAt?: string | null | undefined;
791
+ paymentRef?: string | null | undefined;
792
+ };
793
+ };
794
+ meta?: Record<string, unknown> | undefined;
795
+ links?: {
796
+ self: string;
797
+ first?: string | undefined;
798
+ last?: string | undefined;
799
+ prev?: string | undefined;
800
+ next?: string | undefined;
801
+ } | undefined;
802
+ errors?: {
803
+ status: string;
804
+ title: string;
805
+ detail?: string | undefined;
806
+ meta?: Record<string, unknown> | undefined;
807
+ }[] | undefined;
808
+ }, {
809
+ data: {
810
+ id: string;
811
+ type: "valuation-certificates";
812
+ attributes: {
813
+ createdAt: string;
814
+ updatedAt: string;
815
+ companyId: string;
816
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
817
+ projectId: string;
818
+ periodStart: string;
819
+ periodEnd: string;
820
+ certificateNumber: string;
821
+ retentionPct: number;
822
+ grossAmount: number;
823
+ previousCertified: number;
824
+ retentionAmount: number;
825
+ netPayable: number;
826
+ paidAt?: string | null | undefined;
827
+ workPackageId?: string | null | undefined;
828
+ lines?: {
829
+ id: string;
830
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
831
+ certificateId: string;
832
+ boqLineId: string;
833
+ qtySupplyClaimed: number;
834
+ qtyInstallClaimed: number;
835
+ amountClaimed: number;
836
+ qtySupplyCertified?: number | null | undefined;
837
+ qtyInstallCertified?: number | null | undefined;
838
+ amountCertified?: number | null | undefined;
839
+ mosEvidenceUrl?: string | null | undefined;
840
+ qsNotes?: string | null | undefined;
841
+ }[] | undefined;
842
+ notes?: string | null | undefined;
843
+ submittedById?: string | null | undefined;
844
+ certifiedById?: string | null | undefined;
845
+ certifiedAt?: string | null | undefined;
846
+ paymentRef?: string | null | undefined;
847
+ };
848
+ };
849
+ meta?: Record<string, unknown> | undefined;
850
+ links?: {
851
+ self: string;
852
+ first?: string | undefined;
853
+ last?: string | undefined;
854
+ prev?: string | undefined;
855
+ next?: string | undefined;
856
+ } | undefined;
857
+ errors?: {
858
+ status: string;
859
+ title: string;
860
+ detail?: string | undefined;
861
+ meta?: Record<string, unknown> | undefined;
862
+ }[] | undefined;
863
+ }>;
864
+ 400: z.ZodObject<{
865
+ errors: z.ZodArray<z.ZodObject<{
866
+ status: z.ZodString;
867
+ title: z.ZodString;
868
+ detail: z.ZodOptional<z.ZodString>;
869
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
870
+ }, "strip", z.ZodTypeAny, {
871
+ status: string;
872
+ title: string;
873
+ detail?: string | undefined;
874
+ meta?: Record<string, unknown> | undefined;
875
+ }, {
876
+ status: string;
877
+ title: string;
878
+ detail?: string | undefined;
879
+ meta?: Record<string, unknown> | undefined;
880
+ }>, "many">;
881
+ }, "strip", z.ZodTypeAny, {
882
+ errors: {
883
+ status: string;
884
+ title: string;
885
+ detail?: string | undefined;
886
+ meta?: Record<string, unknown> | undefined;
887
+ }[];
888
+ }, {
889
+ errors: {
890
+ status: string;
891
+ title: string;
892
+ detail?: string | undefined;
893
+ meta?: Record<string, unknown> | undefined;
894
+ }[];
895
+ }>;
896
+ 401: z.ZodObject<{
897
+ errors: z.ZodArray<z.ZodObject<{
898
+ status: z.ZodString;
899
+ title: z.ZodString;
900
+ detail: z.ZodOptional<z.ZodString>;
901
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
902
+ }, "strip", z.ZodTypeAny, {
903
+ status: string;
904
+ title: string;
905
+ detail?: string | undefined;
906
+ meta?: Record<string, unknown> | undefined;
907
+ }, {
908
+ status: string;
909
+ title: string;
910
+ detail?: string | undefined;
911
+ meta?: Record<string, unknown> | undefined;
912
+ }>, "many">;
913
+ }, "strip", z.ZodTypeAny, {
914
+ errors: {
915
+ status: string;
916
+ title: string;
917
+ detail?: string | undefined;
918
+ meta?: Record<string, unknown> | undefined;
919
+ }[];
920
+ }, {
921
+ errors: {
922
+ status: string;
923
+ title: string;
924
+ detail?: string | undefined;
925
+ meta?: Record<string, unknown> | undefined;
926
+ }[];
927
+ }>;
928
+ 403: z.ZodObject<{
929
+ errors: z.ZodArray<z.ZodObject<{
930
+ status: z.ZodString;
931
+ title: z.ZodString;
932
+ detail: z.ZodOptional<z.ZodString>;
933
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
934
+ }, "strip", z.ZodTypeAny, {
935
+ status: string;
936
+ title: string;
937
+ detail?: string | undefined;
938
+ meta?: Record<string, unknown> | undefined;
939
+ }, {
940
+ status: string;
941
+ title: string;
942
+ detail?: string | undefined;
943
+ meta?: Record<string, unknown> | undefined;
944
+ }>, "many">;
945
+ }, "strip", z.ZodTypeAny, {
946
+ errors: {
947
+ status: string;
948
+ title: string;
949
+ detail?: string | undefined;
950
+ meta?: Record<string, unknown> | undefined;
951
+ }[];
952
+ }, {
953
+ errors: {
954
+ status: string;
955
+ title: string;
956
+ detail?: string | undefined;
957
+ meta?: Record<string, unknown> | undefined;
958
+ }[];
959
+ }>;
960
+ };
961
+ };
962
+ getCertificate: {
963
+ pathParams: z.ZodObject<{
964
+ certificateId: z.ZodString;
965
+ }, "strip", z.ZodTypeAny, {
966
+ certificateId: string;
967
+ }, {
968
+ certificateId: string;
969
+ }>;
970
+ summary: "Get valuation certificate with lines";
971
+ method: "GET";
972
+ path: "/valuations/:certificateId";
973
+ responses: {
974
+ 200: z.ZodObject<{
975
+ data: z.ZodObject<{
976
+ type: z.ZodLiteral<"valuation-certificates">;
977
+ id: z.ZodString;
978
+ attributes: z.ZodObject<Omit<{
979
+ id: z.ZodString;
980
+ projectId: z.ZodString;
981
+ companyId: z.ZodString;
982
+ workPackageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
983
+ certificateNumber: z.ZodString;
984
+ periodStart: z.ZodString;
985
+ periodEnd: z.ZodString;
986
+ status: z.ZodEnum<["DRAFT", "SUBMITTED", "CERTIFIED", "AMENDED", "REJECTED", "PAID"]>;
987
+ retentionPct: z.ZodNumber;
988
+ grossAmount: z.ZodNumber;
989
+ previousCertified: z.ZodNumber;
990
+ retentionAmount: z.ZodNumber;
991
+ netPayable: z.ZodNumber;
992
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
993
+ submittedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
994
+ certifiedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
995
+ certifiedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
996
+ paidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
997
+ paymentRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
998
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
999
+ id: z.ZodString;
1000
+ certificateId: z.ZodString;
1001
+ boqLineId: z.ZodString;
1002
+ qtySupplyClaimed: z.ZodNumber;
1003
+ qtyInstallClaimed: z.ZodNumber;
1004
+ qtySupplyCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1005
+ qtyInstallCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1006
+ amountClaimed: z.ZodNumber;
1007
+ amountCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1008
+ status: z.ZodEnum<["CLAIMED", "CERTIFIED", "AMENDED", "REJECTED"]>;
1009
+ mosEvidenceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1010
+ qsNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ id: string;
1013
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1014
+ certificateId: string;
1015
+ boqLineId: string;
1016
+ qtySupplyClaimed: number;
1017
+ qtyInstallClaimed: number;
1018
+ amountClaimed: number;
1019
+ qtySupplyCertified?: number | null | undefined;
1020
+ qtyInstallCertified?: number | null | undefined;
1021
+ amountCertified?: number | null | undefined;
1022
+ mosEvidenceUrl?: string | null | undefined;
1023
+ qsNotes?: string | null | undefined;
1024
+ }, {
1025
+ id: string;
1026
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1027
+ certificateId: string;
1028
+ boqLineId: string;
1029
+ qtySupplyClaimed: number;
1030
+ qtyInstallClaimed: number;
1031
+ amountClaimed: number;
1032
+ qtySupplyCertified?: number | null | undefined;
1033
+ qtyInstallCertified?: number | null | undefined;
1034
+ amountCertified?: number | null | undefined;
1035
+ mosEvidenceUrl?: string | null | undefined;
1036
+ qsNotes?: string | null | undefined;
1037
+ }>, "many">>;
1038
+ createdAt: z.ZodString;
1039
+ updatedAt: z.ZodString;
1040
+ }, "id">, "strip", z.ZodTypeAny, {
1041
+ createdAt: string;
1042
+ updatedAt: string;
1043
+ companyId: string;
1044
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1045
+ projectId: string;
1046
+ periodStart: string;
1047
+ periodEnd: string;
1048
+ certificateNumber: string;
1049
+ retentionPct: number;
1050
+ grossAmount: number;
1051
+ previousCertified: number;
1052
+ retentionAmount: number;
1053
+ netPayable: number;
1054
+ paidAt?: string | null | undefined;
1055
+ workPackageId?: string | null | undefined;
1056
+ lines?: {
1057
+ id: string;
1058
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1059
+ certificateId: string;
1060
+ boqLineId: string;
1061
+ qtySupplyClaimed: number;
1062
+ qtyInstallClaimed: number;
1063
+ amountClaimed: number;
1064
+ qtySupplyCertified?: number | null | undefined;
1065
+ qtyInstallCertified?: number | null | undefined;
1066
+ amountCertified?: number | null | undefined;
1067
+ mosEvidenceUrl?: string | null | undefined;
1068
+ qsNotes?: string | null | undefined;
1069
+ }[] | undefined;
1070
+ notes?: string | null | undefined;
1071
+ submittedById?: string | null | undefined;
1072
+ certifiedById?: string | null | undefined;
1073
+ certifiedAt?: string | null | undefined;
1074
+ paymentRef?: string | null | undefined;
1075
+ }, {
1076
+ createdAt: string;
1077
+ updatedAt: string;
1078
+ companyId: string;
1079
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1080
+ projectId: string;
1081
+ periodStart: string;
1082
+ periodEnd: string;
1083
+ certificateNumber: string;
1084
+ retentionPct: number;
1085
+ grossAmount: number;
1086
+ previousCertified: number;
1087
+ retentionAmount: number;
1088
+ netPayable: number;
1089
+ paidAt?: string | null | undefined;
1090
+ workPackageId?: string | null | undefined;
1091
+ lines?: {
1092
+ id: string;
1093
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1094
+ certificateId: string;
1095
+ boqLineId: string;
1096
+ qtySupplyClaimed: number;
1097
+ qtyInstallClaimed: number;
1098
+ amountClaimed: number;
1099
+ qtySupplyCertified?: number | null | undefined;
1100
+ qtyInstallCertified?: number | null | undefined;
1101
+ amountCertified?: number | null | undefined;
1102
+ mosEvidenceUrl?: string | null | undefined;
1103
+ qsNotes?: string | null | undefined;
1104
+ }[] | undefined;
1105
+ notes?: string | null | undefined;
1106
+ submittedById?: string | null | undefined;
1107
+ certifiedById?: string | null | undefined;
1108
+ certifiedAt?: string | null | undefined;
1109
+ paymentRef?: string | null | undefined;
1110
+ }>;
1111
+ }, "strip", z.ZodTypeAny, {
1112
+ id: string;
1113
+ type: "valuation-certificates";
1114
+ attributes: {
1115
+ createdAt: string;
1116
+ updatedAt: string;
1117
+ companyId: string;
1118
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1119
+ projectId: string;
1120
+ periodStart: string;
1121
+ periodEnd: string;
1122
+ certificateNumber: string;
1123
+ retentionPct: number;
1124
+ grossAmount: number;
1125
+ previousCertified: number;
1126
+ retentionAmount: number;
1127
+ netPayable: number;
1128
+ paidAt?: string | null | undefined;
1129
+ workPackageId?: string | null | undefined;
1130
+ lines?: {
1131
+ id: string;
1132
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1133
+ certificateId: string;
1134
+ boqLineId: string;
1135
+ qtySupplyClaimed: number;
1136
+ qtyInstallClaimed: number;
1137
+ amountClaimed: number;
1138
+ qtySupplyCertified?: number | null | undefined;
1139
+ qtyInstallCertified?: number | null | undefined;
1140
+ amountCertified?: number | null | undefined;
1141
+ mosEvidenceUrl?: string | null | undefined;
1142
+ qsNotes?: string | null | undefined;
1143
+ }[] | undefined;
1144
+ notes?: string | null | undefined;
1145
+ submittedById?: string | null | undefined;
1146
+ certifiedById?: string | null | undefined;
1147
+ certifiedAt?: string | null | undefined;
1148
+ paymentRef?: string | null | undefined;
1149
+ };
1150
+ }, {
1151
+ id: string;
1152
+ type: "valuation-certificates";
1153
+ attributes: {
1154
+ createdAt: string;
1155
+ updatedAt: string;
1156
+ companyId: string;
1157
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1158
+ projectId: string;
1159
+ periodStart: string;
1160
+ periodEnd: string;
1161
+ certificateNumber: string;
1162
+ retentionPct: number;
1163
+ grossAmount: number;
1164
+ previousCertified: number;
1165
+ retentionAmount: number;
1166
+ netPayable: number;
1167
+ paidAt?: string | null | undefined;
1168
+ workPackageId?: string | null | undefined;
1169
+ lines?: {
1170
+ id: string;
1171
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1172
+ certificateId: string;
1173
+ boqLineId: string;
1174
+ qtySupplyClaimed: number;
1175
+ qtyInstallClaimed: number;
1176
+ amountClaimed: number;
1177
+ qtySupplyCertified?: number | null | undefined;
1178
+ qtyInstallCertified?: number | null | undefined;
1179
+ amountCertified?: number | null | undefined;
1180
+ mosEvidenceUrl?: string | null | undefined;
1181
+ qsNotes?: string | null | undefined;
1182
+ }[] | undefined;
1183
+ notes?: string | null | undefined;
1184
+ submittedById?: string | null | undefined;
1185
+ certifiedById?: string | null | undefined;
1186
+ certifiedAt?: string | null | undefined;
1187
+ paymentRef?: string | null | undefined;
1188
+ };
1189
+ }>;
1190
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1191
+ links: z.ZodOptional<z.ZodObject<{
1192
+ self: z.ZodString;
1193
+ first: z.ZodOptional<z.ZodString>;
1194
+ last: z.ZodOptional<z.ZodString>;
1195
+ prev: z.ZodOptional<z.ZodString>;
1196
+ next: z.ZodOptional<z.ZodString>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ self: string;
1199
+ first?: string | undefined;
1200
+ last?: string | undefined;
1201
+ prev?: string | undefined;
1202
+ next?: string | undefined;
1203
+ }, {
1204
+ self: string;
1205
+ first?: string | undefined;
1206
+ last?: string | undefined;
1207
+ prev?: string | undefined;
1208
+ next?: string | undefined;
1209
+ }>>;
1210
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1211
+ status: z.ZodString;
1212
+ title: z.ZodString;
1213
+ detail: z.ZodOptional<z.ZodString>;
1214
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ status: string;
1217
+ title: string;
1218
+ detail?: string | undefined;
1219
+ meta?: Record<string, unknown> | undefined;
1220
+ }, {
1221
+ status: string;
1222
+ title: string;
1223
+ detail?: string | undefined;
1224
+ meta?: Record<string, unknown> | undefined;
1225
+ }>, "many">>;
1226
+ }, "strip", z.ZodTypeAny, {
1227
+ data: {
1228
+ id: string;
1229
+ type: "valuation-certificates";
1230
+ attributes: {
1231
+ createdAt: string;
1232
+ updatedAt: string;
1233
+ companyId: string;
1234
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1235
+ projectId: string;
1236
+ periodStart: string;
1237
+ periodEnd: string;
1238
+ certificateNumber: string;
1239
+ retentionPct: number;
1240
+ grossAmount: number;
1241
+ previousCertified: number;
1242
+ retentionAmount: number;
1243
+ netPayable: number;
1244
+ paidAt?: string | null | undefined;
1245
+ workPackageId?: string | null | undefined;
1246
+ lines?: {
1247
+ id: string;
1248
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1249
+ certificateId: string;
1250
+ boqLineId: string;
1251
+ qtySupplyClaimed: number;
1252
+ qtyInstallClaimed: number;
1253
+ amountClaimed: number;
1254
+ qtySupplyCertified?: number | null | undefined;
1255
+ qtyInstallCertified?: number | null | undefined;
1256
+ amountCertified?: number | null | undefined;
1257
+ mosEvidenceUrl?: string | null | undefined;
1258
+ qsNotes?: string | null | undefined;
1259
+ }[] | undefined;
1260
+ notes?: string | null | undefined;
1261
+ submittedById?: string | null | undefined;
1262
+ certifiedById?: string | null | undefined;
1263
+ certifiedAt?: string | null | undefined;
1264
+ paymentRef?: string | null | undefined;
1265
+ };
1266
+ };
1267
+ meta?: Record<string, unknown> | undefined;
1268
+ links?: {
1269
+ self: string;
1270
+ first?: string | undefined;
1271
+ last?: string | undefined;
1272
+ prev?: string | undefined;
1273
+ next?: string | undefined;
1274
+ } | undefined;
1275
+ errors?: {
1276
+ status: string;
1277
+ title: string;
1278
+ detail?: string | undefined;
1279
+ meta?: Record<string, unknown> | undefined;
1280
+ }[] | undefined;
1281
+ }, {
1282
+ data: {
1283
+ id: string;
1284
+ type: "valuation-certificates";
1285
+ attributes: {
1286
+ createdAt: string;
1287
+ updatedAt: string;
1288
+ companyId: string;
1289
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1290
+ projectId: string;
1291
+ periodStart: string;
1292
+ periodEnd: string;
1293
+ certificateNumber: string;
1294
+ retentionPct: number;
1295
+ grossAmount: number;
1296
+ previousCertified: number;
1297
+ retentionAmount: number;
1298
+ netPayable: number;
1299
+ paidAt?: string | null | undefined;
1300
+ workPackageId?: string | null | undefined;
1301
+ lines?: {
1302
+ id: string;
1303
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1304
+ certificateId: string;
1305
+ boqLineId: string;
1306
+ qtySupplyClaimed: number;
1307
+ qtyInstallClaimed: number;
1308
+ amountClaimed: number;
1309
+ qtySupplyCertified?: number | null | undefined;
1310
+ qtyInstallCertified?: number | null | undefined;
1311
+ amountCertified?: number | null | undefined;
1312
+ mosEvidenceUrl?: string | null | undefined;
1313
+ qsNotes?: string | null | undefined;
1314
+ }[] | undefined;
1315
+ notes?: string | null | undefined;
1316
+ submittedById?: string | null | undefined;
1317
+ certifiedById?: string | null | undefined;
1318
+ certifiedAt?: string | null | undefined;
1319
+ paymentRef?: string | null | undefined;
1320
+ };
1321
+ };
1322
+ meta?: Record<string, unknown> | undefined;
1323
+ links?: {
1324
+ self: string;
1325
+ first?: string | undefined;
1326
+ last?: string | undefined;
1327
+ prev?: string | undefined;
1328
+ next?: string | undefined;
1329
+ } | undefined;
1330
+ errors?: {
1331
+ status: string;
1332
+ title: string;
1333
+ detail?: string | undefined;
1334
+ meta?: Record<string, unknown> | undefined;
1335
+ }[] | undefined;
1336
+ }>;
1337
+ 401: z.ZodObject<{
1338
+ errors: z.ZodArray<z.ZodObject<{
1339
+ status: z.ZodString;
1340
+ title: z.ZodString;
1341
+ detail: z.ZodOptional<z.ZodString>;
1342
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1343
+ }, "strip", z.ZodTypeAny, {
1344
+ status: string;
1345
+ title: string;
1346
+ detail?: string | undefined;
1347
+ meta?: Record<string, unknown> | undefined;
1348
+ }, {
1349
+ status: string;
1350
+ title: string;
1351
+ detail?: string | undefined;
1352
+ meta?: Record<string, unknown> | undefined;
1353
+ }>, "many">;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ errors: {
1356
+ status: string;
1357
+ title: string;
1358
+ detail?: string | undefined;
1359
+ meta?: Record<string, unknown> | undefined;
1360
+ }[];
1361
+ }, {
1362
+ errors: {
1363
+ status: string;
1364
+ title: string;
1365
+ detail?: string | undefined;
1366
+ meta?: Record<string, unknown> | undefined;
1367
+ }[];
1368
+ }>;
1369
+ 403: z.ZodObject<{
1370
+ errors: z.ZodArray<z.ZodObject<{
1371
+ status: z.ZodString;
1372
+ title: z.ZodString;
1373
+ detail: z.ZodOptional<z.ZodString>;
1374
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ status: string;
1377
+ title: string;
1378
+ detail?: string | undefined;
1379
+ meta?: Record<string, unknown> | undefined;
1380
+ }, {
1381
+ status: string;
1382
+ title: string;
1383
+ detail?: string | undefined;
1384
+ meta?: Record<string, unknown> | undefined;
1385
+ }>, "many">;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ errors: {
1388
+ status: string;
1389
+ title: string;
1390
+ detail?: string | undefined;
1391
+ meta?: Record<string, unknown> | undefined;
1392
+ }[];
1393
+ }, {
1394
+ errors: {
1395
+ status: string;
1396
+ title: string;
1397
+ detail?: string | undefined;
1398
+ meta?: Record<string, unknown> | undefined;
1399
+ }[];
1400
+ }>;
1401
+ 404: z.ZodObject<{
1402
+ errors: z.ZodArray<z.ZodObject<{
1403
+ status: z.ZodString;
1404
+ title: z.ZodString;
1405
+ detail: z.ZodOptional<z.ZodString>;
1406
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ status: string;
1409
+ title: string;
1410
+ detail?: string | undefined;
1411
+ meta?: Record<string, unknown> | undefined;
1412
+ }, {
1413
+ status: string;
1414
+ title: string;
1415
+ detail?: string | undefined;
1416
+ meta?: Record<string, unknown> | undefined;
1417
+ }>, "many">;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ errors: {
1420
+ status: string;
1421
+ title: string;
1422
+ detail?: string | undefined;
1423
+ meta?: Record<string, unknown> | undefined;
1424
+ }[];
1425
+ }, {
1426
+ errors: {
1427
+ status: string;
1428
+ title: string;
1429
+ detail?: string | undefined;
1430
+ meta?: Record<string, unknown> | undefined;
1431
+ }[];
1432
+ }>;
1433
+ };
1434
+ };
1435
+ submitClaims: {
1436
+ pathParams: z.ZodObject<{
1437
+ certificateId: z.ZodString;
1438
+ }, "strip", z.ZodTypeAny, {
1439
+ certificateId: string;
1440
+ }, {
1441
+ certificateId: string;
1442
+ }>;
1443
+ summary: "Submit cumulative supply/install claims (MOS requires evidence URL)";
1444
+ method: "POST";
1445
+ body: z.ZodObject<{
1446
+ lines: z.ZodArray<z.ZodObject<{
1447
+ boqLineId: z.ZodString;
1448
+ qtySupplyClaimed: z.ZodNumber;
1449
+ qtyInstallClaimed: z.ZodNumber;
1450
+ mosEvidenceUrl: z.ZodOptional<z.ZodString>;
1451
+ }, "strip", z.ZodTypeAny, {
1452
+ boqLineId: string;
1453
+ qtySupplyClaimed: number;
1454
+ qtyInstallClaimed: number;
1455
+ mosEvidenceUrl?: string | undefined;
1456
+ }, {
1457
+ boqLineId: string;
1458
+ qtySupplyClaimed: number;
1459
+ qtyInstallClaimed: number;
1460
+ mosEvidenceUrl?: string | undefined;
1461
+ }>, "many">;
1462
+ }, "strip", z.ZodTypeAny, {
1463
+ lines: {
1464
+ boqLineId: string;
1465
+ qtySupplyClaimed: number;
1466
+ qtyInstallClaimed: number;
1467
+ mosEvidenceUrl?: string | undefined;
1468
+ }[];
1469
+ }, {
1470
+ lines: {
1471
+ boqLineId: string;
1472
+ qtySupplyClaimed: number;
1473
+ qtyInstallClaimed: number;
1474
+ mosEvidenceUrl?: string | undefined;
1475
+ }[];
1476
+ }>;
1477
+ path: "/valuations/:certificateId/claims";
1478
+ responses: {
1479
+ 200: z.ZodObject<{
1480
+ data: z.ZodObject<{
1481
+ type: z.ZodLiteral<"valuation-certificates">;
1482
+ id: z.ZodString;
1483
+ attributes: z.ZodObject<Omit<{
1484
+ id: z.ZodString;
1485
+ projectId: z.ZodString;
1486
+ companyId: z.ZodString;
1487
+ workPackageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
+ certificateNumber: z.ZodString;
1489
+ periodStart: z.ZodString;
1490
+ periodEnd: z.ZodString;
1491
+ status: z.ZodEnum<["DRAFT", "SUBMITTED", "CERTIFIED", "AMENDED", "REJECTED", "PAID"]>;
1492
+ retentionPct: z.ZodNumber;
1493
+ grossAmount: z.ZodNumber;
1494
+ previousCertified: z.ZodNumber;
1495
+ retentionAmount: z.ZodNumber;
1496
+ netPayable: z.ZodNumber;
1497
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1498
+ submittedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1499
+ certifiedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1500
+ certifiedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1501
+ paidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1502
+ paymentRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1503
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1504
+ id: z.ZodString;
1505
+ certificateId: z.ZodString;
1506
+ boqLineId: z.ZodString;
1507
+ qtySupplyClaimed: z.ZodNumber;
1508
+ qtyInstallClaimed: z.ZodNumber;
1509
+ qtySupplyCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1510
+ qtyInstallCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1511
+ amountClaimed: z.ZodNumber;
1512
+ amountCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1513
+ status: z.ZodEnum<["CLAIMED", "CERTIFIED", "AMENDED", "REJECTED"]>;
1514
+ mosEvidenceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1515
+ qsNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ id: string;
1518
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1519
+ certificateId: string;
1520
+ boqLineId: string;
1521
+ qtySupplyClaimed: number;
1522
+ qtyInstallClaimed: number;
1523
+ amountClaimed: number;
1524
+ qtySupplyCertified?: number | null | undefined;
1525
+ qtyInstallCertified?: number | null | undefined;
1526
+ amountCertified?: number | null | undefined;
1527
+ mosEvidenceUrl?: string | null | undefined;
1528
+ qsNotes?: string | null | undefined;
1529
+ }, {
1530
+ id: string;
1531
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1532
+ certificateId: string;
1533
+ boqLineId: string;
1534
+ qtySupplyClaimed: number;
1535
+ qtyInstallClaimed: number;
1536
+ amountClaimed: number;
1537
+ qtySupplyCertified?: number | null | undefined;
1538
+ qtyInstallCertified?: number | null | undefined;
1539
+ amountCertified?: number | null | undefined;
1540
+ mosEvidenceUrl?: string | null | undefined;
1541
+ qsNotes?: string | null | undefined;
1542
+ }>, "many">>;
1543
+ createdAt: z.ZodString;
1544
+ updatedAt: z.ZodString;
1545
+ }, "id">, "strip", z.ZodTypeAny, {
1546
+ createdAt: string;
1547
+ updatedAt: string;
1548
+ companyId: string;
1549
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1550
+ projectId: string;
1551
+ periodStart: string;
1552
+ periodEnd: string;
1553
+ certificateNumber: string;
1554
+ retentionPct: number;
1555
+ grossAmount: number;
1556
+ previousCertified: number;
1557
+ retentionAmount: number;
1558
+ netPayable: number;
1559
+ paidAt?: string | null | undefined;
1560
+ workPackageId?: string | null | undefined;
1561
+ lines?: {
1562
+ id: string;
1563
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1564
+ certificateId: string;
1565
+ boqLineId: string;
1566
+ qtySupplyClaimed: number;
1567
+ qtyInstallClaimed: number;
1568
+ amountClaimed: number;
1569
+ qtySupplyCertified?: number | null | undefined;
1570
+ qtyInstallCertified?: number | null | undefined;
1571
+ amountCertified?: number | null | undefined;
1572
+ mosEvidenceUrl?: string | null | undefined;
1573
+ qsNotes?: string | null | undefined;
1574
+ }[] | undefined;
1575
+ notes?: string | null | undefined;
1576
+ submittedById?: string | null | undefined;
1577
+ certifiedById?: string | null | undefined;
1578
+ certifiedAt?: string | null | undefined;
1579
+ paymentRef?: string | null | undefined;
1580
+ }, {
1581
+ createdAt: string;
1582
+ updatedAt: string;
1583
+ companyId: string;
1584
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1585
+ projectId: string;
1586
+ periodStart: string;
1587
+ periodEnd: string;
1588
+ certificateNumber: string;
1589
+ retentionPct: number;
1590
+ grossAmount: number;
1591
+ previousCertified: number;
1592
+ retentionAmount: number;
1593
+ netPayable: number;
1594
+ paidAt?: string | null | undefined;
1595
+ workPackageId?: string | null | undefined;
1596
+ lines?: {
1597
+ id: string;
1598
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1599
+ certificateId: string;
1600
+ boqLineId: string;
1601
+ qtySupplyClaimed: number;
1602
+ qtyInstallClaimed: number;
1603
+ amountClaimed: number;
1604
+ qtySupplyCertified?: number | null | undefined;
1605
+ qtyInstallCertified?: number | null | undefined;
1606
+ amountCertified?: number | null | undefined;
1607
+ mosEvidenceUrl?: string | null | undefined;
1608
+ qsNotes?: string | null | undefined;
1609
+ }[] | undefined;
1610
+ notes?: string | null | undefined;
1611
+ submittedById?: string | null | undefined;
1612
+ certifiedById?: string | null | undefined;
1613
+ certifiedAt?: string | null | undefined;
1614
+ paymentRef?: string | null | undefined;
1615
+ }>;
1616
+ }, "strip", z.ZodTypeAny, {
1617
+ id: string;
1618
+ type: "valuation-certificates";
1619
+ attributes: {
1620
+ createdAt: string;
1621
+ updatedAt: string;
1622
+ companyId: string;
1623
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1624
+ projectId: string;
1625
+ periodStart: string;
1626
+ periodEnd: string;
1627
+ certificateNumber: string;
1628
+ retentionPct: number;
1629
+ grossAmount: number;
1630
+ previousCertified: number;
1631
+ retentionAmount: number;
1632
+ netPayable: number;
1633
+ paidAt?: string | null | undefined;
1634
+ workPackageId?: string | null | undefined;
1635
+ lines?: {
1636
+ id: string;
1637
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1638
+ certificateId: string;
1639
+ boqLineId: string;
1640
+ qtySupplyClaimed: number;
1641
+ qtyInstallClaimed: number;
1642
+ amountClaimed: number;
1643
+ qtySupplyCertified?: number | null | undefined;
1644
+ qtyInstallCertified?: number | null | undefined;
1645
+ amountCertified?: number | null | undefined;
1646
+ mosEvidenceUrl?: string | null | undefined;
1647
+ qsNotes?: string | null | undefined;
1648
+ }[] | undefined;
1649
+ notes?: string | null | undefined;
1650
+ submittedById?: string | null | undefined;
1651
+ certifiedById?: string | null | undefined;
1652
+ certifiedAt?: string | null | undefined;
1653
+ paymentRef?: string | null | undefined;
1654
+ };
1655
+ }, {
1656
+ id: string;
1657
+ type: "valuation-certificates";
1658
+ attributes: {
1659
+ createdAt: string;
1660
+ updatedAt: string;
1661
+ companyId: string;
1662
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1663
+ projectId: string;
1664
+ periodStart: string;
1665
+ periodEnd: string;
1666
+ certificateNumber: string;
1667
+ retentionPct: number;
1668
+ grossAmount: number;
1669
+ previousCertified: number;
1670
+ retentionAmount: number;
1671
+ netPayable: number;
1672
+ paidAt?: string | null | undefined;
1673
+ workPackageId?: string | null | undefined;
1674
+ lines?: {
1675
+ id: string;
1676
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1677
+ certificateId: string;
1678
+ boqLineId: string;
1679
+ qtySupplyClaimed: number;
1680
+ qtyInstallClaimed: number;
1681
+ amountClaimed: number;
1682
+ qtySupplyCertified?: number | null | undefined;
1683
+ qtyInstallCertified?: number | null | undefined;
1684
+ amountCertified?: number | null | undefined;
1685
+ mosEvidenceUrl?: string | null | undefined;
1686
+ qsNotes?: string | null | undefined;
1687
+ }[] | undefined;
1688
+ notes?: string | null | undefined;
1689
+ submittedById?: string | null | undefined;
1690
+ certifiedById?: string | null | undefined;
1691
+ certifiedAt?: string | null | undefined;
1692
+ paymentRef?: string | null | undefined;
1693
+ };
1694
+ }>;
1695
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1696
+ links: z.ZodOptional<z.ZodObject<{
1697
+ self: z.ZodString;
1698
+ first: z.ZodOptional<z.ZodString>;
1699
+ last: z.ZodOptional<z.ZodString>;
1700
+ prev: z.ZodOptional<z.ZodString>;
1701
+ next: z.ZodOptional<z.ZodString>;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ self: string;
1704
+ first?: string | undefined;
1705
+ last?: string | undefined;
1706
+ prev?: string | undefined;
1707
+ next?: string | undefined;
1708
+ }, {
1709
+ self: string;
1710
+ first?: string | undefined;
1711
+ last?: string | undefined;
1712
+ prev?: string | undefined;
1713
+ next?: string | undefined;
1714
+ }>>;
1715
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1716
+ status: z.ZodString;
1717
+ title: z.ZodString;
1718
+ detail: z.ZodOptional<z.ZodString>;
1719
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1720
+ }, "strip", z.ZodTypeAny, {
1721
+ status: string;
1722
+ title: string;
1723
+ detail?: string | undefined;
1724
+ meta?: Record<string, unknown> | undefined;
1725
+ }, {
1726
+ status: string;
1727
+ title: string;
1728
+ detail?: string | undefined;
1729
+ meta?: Record<string, unknown> | undefined;
1730
+ }>, "many">>;
1731
+ }, "strip", z.ZodTypeAny, {
1732
+ data: {
1733
+ id: string;
1734
+ type: "valuation-certificates";
1735
+ attributes: {
1736
+ createdAt: string;
1737
+ updatedAt: string;
1738
+ companyId: string;
1739
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1740
+ projectId: string;
1741
+ periodStart: string;
1742
+ periodEnd: string;
1743
+ certificateNumber: string;
1744
+ retentionPct: number;
1745
+ grossAmount: number;
1746
+ previousCertified: number;
1747
+ retentionAmount: number;
1748
+ netPayable: number;
1749
+ paidAt?: string | null | undefined;
1750
+ workPackageId?: string | null | undefined;
1751
+ lines?: {
1752
+ id: string;
1753
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1754
+ certificateId: string;
1755
+ boqLineId: string;
1756
+ qtySupplyClaimed: number;
1757
+ qtyInstallClaimed: number;
1758
+ amountClaimed: number;
1759
+ qtySupplyCertified?: number | null | undefined;
1760
+ qtyInstallCertified?: number | null | undefined;
1761
+ amountCertified?: number | null | undefined;
1762
+ mosEvidenceUrl?: string | null | undefined;
1763
+ qsNotes?: string | null | undefined;
1764
+ }[] | undefined;
1765
+ notes?: string | null | undefined;
1766
+ submittedById?: string | null | undefined;
1767
+ certifiedById?: string | null | undefined;
1768
+ certifiedAt?: string | null | undefined;
1769
+ paymentRef?: string | null | undefined;
1770
+ };
1771
+ };
1772
+ meta?: Record<string, unknown> | undefined;
1773
+ links?: {
1774
+ self: string;
1775
+ first?: string | undefined;
1776
+ last?: string | undefined;
1777
+ prev?: string | undefined;
1778
+ next?: string | undefined;
1779
+ } | undefined;
1780
+ errors?: {
1781
+ status: string;
1782
+ title: string;
1783
+ detail?: string | undefined;
1784
+ meta?: Record<string, unknown> | undefined;
1785
+ }[] | undefined;
1786
+ }, {
1787
+ data: {
1788
+ id: string;
1789
+ type: "valuation-certificates";
1790
+ attributes: {
1791
+ createdAt: string;
1792
+ updatedAt: string;
1793
+ companyId: string;
1794
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
1795
+ projectId: string;
1796
+ periodStart: string;
1797
+ periodEnd: string;
1798
+ certificateNumber: string;
1799
+ retentionPct: number;
1800
+ grossAmount: number;
1801
+ previousCertified: number;
1802
+ retentionAmount: number;
1803
+ netPayable: number;
1804
+ paidAt?: string | null | undefined;
1805
+ workPackageId?: string | null | undefined;
1806
+ lines?: {
1807
+ id: string;
1808
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
1809
+ certificateId: string;
1810
+ boqLineId: string;
1811
+ qtySupplyClaimed: number;
1812
+ qtyInstallClaimed: number;
1813
+ amountClaimed: number;
1814
+ qtySupplyCertified?: number | null | undefined;
1815
+ qtyInstallCertified?: number | null | undefined;
1816
+ amountCertified?: number | null | undefined;
1817
+ mosEvidenceUrl?: string | null | undefined;
1818
+ qsNotes?: string | null | undefined;
1819
+ }[] | undefined;
1820
+ notes?: string | null | undefined;
1821
+ submittedById?: string | null | undefined;
1822
+ certifiedById?: string | null | undefined;
1823
+ certifiedAt?: string | null | undefined;
1824
+ paymentRef?: string | null | undefined;
1825
+ };
1826
+ };
1827
+ meta?: Record<string, unknown> | undefined;
1828
+ links?: {
1829
+ self: string;
1830
+ first?: string | undefined;
1831
+ last?: string | undefined;
1832
+ prev?: string | undefined;
1833
+ next?: string | undefined;
1834
+ } | undefined;
1835
+ errors?: {
1836
+ status: string;
1837
+ title: string;
1838
+ detail?: string | undefined;
1839
+ meta?: Record<string, unknown> | undefined;
1840
+ }[] | undefined;
1841
+ }>;
1842
+ 400: z.ZodObject<{
1843
+ errors: z.ZodArray<z.ZodObject<{
1844
+ status: z.ZodString;
1845
+ title: z.ZodString;
1846
+ detail: z.ZodOptional<z.ZodString>;
1847
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1848
+ }, "strip", z.ZodTypeAny, {
1849
+ status: string;
1850
+ title: string;
1851
+ detail?: string | undefined;
1852
+ meta?: Record<string, unknown> | undefined;
1853
+ }, {
1854
+ status: string;
1855
+ title: string;
1856
+ detail?: string | undefined;
1857
+ meta?: Record<string, unknown> | undefined;
1858
+ }>, "many">;
1859
+ }, "strip", z.ZodTypeAny, {
1860
+ errors: {
1861
+ status: string;
1862
+ title: string;
1863
+ detail?: string | undefined;
1864
+ meta?: Record<string, unknown> | undefined;
1865
+ }[];
1866
+ }, {
1867
+ errors: {
1868
+ status: string;
1869
+ title: string;
1870
+ detail?: string | undefined;
1871
+ meta?: Record<string, unknown> | undefined;
1872
+ }[];
1873
+ }>;
1874
+ 401: z.ZodObject<{
1875
+ errors: z.ZodArray<z.ZodObject<{
1876
+ status: z.ZodString;
1877
+ title: z.ZodString;
1878
+ detail: z.ZodOptional<z.ZodString>;
1879
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ status: string;
1882
+ title: string;
1883
+ detail?: string | undefined;
1884
+ meta?: Record<string, unknown> | undefined;
1885
+ }, {
1886
+ status: string;
1887
+ title: string;
1888
+ detail?: string | undefined;
1889
+ meta?: Record<string, unknown> | undefined;
1890
+ }>, "many">;
1891
+ }, "strip", z.ZodTypeAny, {
1892
+ errors: {
1893
+ status: string;
1894
+ title: string;
1895
+ detail?: string | undefined;
1896
+ meta?: Record<string, unknown> | undefined;
1897
+ }[];
1898
+ }, {
1899
+ errors: {
1900
+ status: string;
1901
+ title: string;
1902
+ detail?: string | undefined;
1903
+ meta?: Record<string, unknown> | undefined;
1904
+ }[];
1905
+ }>;
1906
+ 403: z.ZodObject<{
1907
+ errors: z.ZodArray<z.ZodObject<{
1908
+ status: z.ZodString;
1909
+ title: z.ZodString;
1910
+ detail: z.ZodOptional<z.ZodString>;
1911
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1912
+ }, "strip", z.ZodTypeAny, {
1913
+ status: string;
1914
+ title: string;
1915
+ detail?: string | undefined;
1916
+ meta?: Record<string, unknown> | undefined;
1917
+ }, {
1918
+ status: string;
1919
+ title: string;
1920
+ detail?: string | undefined;
1921
+ meta?: Record<string, unknown> | undefined;
1922
+ }>, "many">;
1923
+ }, "strip", z.ZodTypeAny, {
1924
+ errors: {
1925
+ status: string;
1926
+ title: string;
1927
+ detail?: string | undefined;
1928
+ meta?: Record<string, unknown> | undefined;
1929
+ }[];
1930
+ }, {
1931
+ errors: {
1932
+ status: string;
1933
+ title: string;
1934
+ detail?: string | undefined;
1935
+ meta?: Record<string, unknown> | undefined;
1936
+ }[];
1937
+ }>;
1938
+ };
1939
+ };
1940
+ certifyLine: {
1941
+ pathParams: z.ZodObject<{
1942
+ certificateId: z.ZodString;
1943
+ lineId: z.ZodString;
1944
+ }, "strip", z.ZodTypeAny, {
1945
+ certificateId: string;
1946
+ lineId: string;
1947
+ }, {
1948
+ certificateId: string;
1949
+ lineId: string;
1950
+ }>;
1951
+ summary: "QS certify, amend, or reject a claim line";
1952
+ method: "PATCH";
1953
+ body: z.ZodObject<{
1954
+ action: z.ZodEnum<["CERTIFY", "AMEND", "REJECT"]>;
1955
+ qtySupplyCertified: z.ZodOptional<z.ZodNumber>;
1956
+ qtyInstallCertified: z.ZodOptional<z.ZodNumber>;
1957
+ qsNotes: z.ZodOptional<z.ZodString>;
1958
+ }, "strip", z.ZodTypeAny, {
1959
+ action: "REJECT" | "CERTIFY" | "AMEND";
1960
+ qtySupplyCertified?: number | undefined;
1961
+ qtyInstallCertified?: number | undefined;
1962
+ qsNotes?: string | undefined;
1963
+ }, {
1964
+ action: "REJECT" | "CERTIFY" | "AMEND";
1965
+ qtySupplyCertified?: number | undefined;
1966
+ qtyInstallCertified?: number | undefined;
1967
+ qsNotes?: string | undefined;
1968
+ }>;
1969
+ path: "/valuations/:certificateId/lines/:lineId";
1970
+ responses: {
1971
+ 200: z.ZodObject<{
1972
+ data: z.ZodObject<{
1973
+ type: z.ZodLiteral<"valuation-certificates">;
1974
+ id: z.ZodString;
1975
+ attributes: z.ZodObject<Omit<{
1976
+ id: z.ZodString;
1977
+ projectId: z.ZodString;
1978
+ companyId: z.ZodString;
1979
+ workPackageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1980
+ certificateNumber: z.ZodString;
1981
+ periodStart: z.ZodString;
1982
+ periodEnd: z.ZodString;
1983
+ status: z.ZodEnum<["DRAFT", "SUBMITTED", "CERTIFIED", "AMENDED", "REJECTED", "PAID"]>;
1984
+ retentionPct: z.ZodNumber;
1985
+ grossAmount: z.ZodNumber;
1986
+ previousCertified: z.ZodNumber;
1987
+ retentionAmount: z.ZodNumber;
1988
+ netPayable: z.ZodNumber;
1989
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1990
+ submittedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1991
+ certifiedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1992
+ certifiedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1993
+ paidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1994
+ paymentRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1995
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1996
+ id: z.ZodString;
1997
+ certificateId: z.ZodString;
1998
+ boqLineId: z.ZodString;
1999
+ qtySupplyClaimed: z.ZodNumber;
2000
+ qtyInstallClaimed: z.ZodNumber;
2001
+ qtySupplyCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2002
+ qtyInstallCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2003
+ amountClaimed: z.ZodNumber;
2004
+ amountCertified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2005
+ status: z.ZodEnum<["CLAIMED", "CERTIFIED", "AMENDED", "REJECTED"]>;
2006
+ mosEvidenceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2007
+ qsNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2008
+ }, "strip", z.ZodTypeAny, {
2009
+ id: string;
2010
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
2011
+ certificateId: string;
2012
+ boqLineId: string;
2013
+ qtySupplyClaimed: number;
2014
+ qtyInstallClaimed: number;
2015
+ amountClaimed: number;
2016
+ qtySupplyCertified?: number | null | undefined;
2017
+ qtyInstallCertified?: number | null | undefined;
2018
+ amountCertified?: number | null | undefined;
2019
+ mosEvidenceUrl?: string | null | undefined;
2020
+ qsNotes?: string | null | undefined;
2021
+ }, {
2022
+ id: string;
2023
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
2024
+ certificateId: string;
2025
+ boqLineId: string;
2026
+ qtySupplyClaimed: number;
2027
+ qtyInstallClaimed: number;
2028
+ amountClaimed: number;
2029
+ qtySupplyCertified?: number | null | undefined;
2030
+ qtyInstallCertified?: number | null | undefined;
2031
+ amountCertified?: number | null | undefined;
2032
+ mosEvidenceUrl?: string | null | undefined;
2033
+ qsNotes?: string | null | undefined;
2034
+ }>, "many">>;
2035
+ createdAt: z.ZodString;
2036
+ updatedAt: z.ZodString;
2037
+ }, "id">, "strip", z.ZodTypeAny, {
2038
+ createdAt: string;
2039
+ updatedAt: string;
2040
+ companyId: string;
2041
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
2042
+ projectId: string;
2043
+ periodStart: string;
2044
+ periodEnd: string;
2045
+ certificateNumber: string;
2046
+ retentionPct: number;
2047
+ grossAmount: number;
2048
+ previousCertified: number;
2049
+ retentionAmount: number;
2050
+ netPayable: number;
2051
+ paidAt?: string | null | undefined;
2052
+ workPackageId?: string | null | undefined;
2053
+ lines?: {
2054
+ id: string;
2055
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
2056
+ certificateId: string;
2057
+ boqLineId: string;
2058
+ qtySupplyClaimed: number;
2059
+ qtyInstallClaimed: number;
2060
+ amountClaimed: number;
2061
+ qtySupplyCertified?: number | null | undefined;
2062
+ qtyInstallCertified?: number | null | undefined;
2063
+ amountCertified?: number | null | undefined;
2064
+ mosEvidenceUrl?: string | null | undefined;
2065
+ qsNotes?: string | null | undefined;
2066
+ }[] | undefined;
2067
+ notes?: string | null | undefined;
2068
+ submittedById?: string | null | undefined;
2069
+ certifiedById?: string | null | undefined;
2070
+ certifiedAt?: string | null | undefined;
2071
+ paymentRef?: string | null | undefined;
2072
+ }, {
2073
+ createdAt: string;
2074
+ updatedAt: string;
2075
+ companyId: string;
2076
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
2077
+ projectId: string;
2078
+ periodStart: string;
2079
+ periodEnd: string;
2080
+ certificateNumber: string;
2081
+ retentionPct: number;
2082
+ grossAmount: number;
2083
+ previousCertified: number;
2084
+ retentionAmount: number;
2085
+ netPayable: number;
2086
+ paidAt?: string | null | undefined;
2087
+ workPackageId?: string | null | undefined;
2088
+ lines?: {
2089
+ id: string;
2090
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
2091
+ certificateId: string;
2092
+ boqLineId: string;
2093
+ qtySupplyClaimed: number;
2094
+ qtyInstallClaimed: number;
2095
+ amountClaimed: number;
2096
+ qtySupplyCertified?: number | null | undefined;
2097
+ qtyInstallCertified?: number | null | undefined;
2098
+ amountCertified?: number | null | undefined;
2099
+ mosEvidenceUrl?: string | null | undefined;
2100
+ qsNotes?: string | null | undefined;
2101
+ }[] | undefined;
2102
+ notes?: string | null | undefined;
2103
+ submittedById?: string | null | undefined;
2104
+ certifiedById?: string | null | undefined;
2105
+ certifiedAt?: string | null | undefined;
2106
+ paymentRef?: string | null | undefined;
2107
+ }>;
2108
+ }, "strip", z.ZodTypeAny, {
2109
+ id: string;
2110
+ type: "valuation-certificates";
2111
+ attributes: {
2112
+ createdAt: string;
2113
+ updatedAt: string;
2114
+ companyId: string;
2115
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
2116
+ projectId: string;
2117
+ periodStart: string;
2118
+ periodEnd: string;
2119
+ certificateNumber: string;
2120
+ retentionPct: number;
2121
+ grossAmount: number;
2122
+ previousCertified: number;
2123
+ retentionAmount: number;
2124
+ netPayable: number;
2125
+ paidAt?: string | null | undefined;
2126
+ workPackageId?: string | null | undefined;
2127
+ lines?: {
2128
+ id: string;
2129
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
2130
+ certificateId: string;
2131
+ boqLineId: string;
2132
+ qtySupplyClaimed: number;
2133
+ qtyInstallClaimed: number;
2134
+ amountClaimed: number;
2135
+ qtySupplyCertified?: number | null | undefined;
2136
+ qtyInstallCertified?: number | null | undefined;
2137
+ amountCertified?: number | null | undefined;
2138
+ mosEvidenceUrl?: string | null | undefined;
2139
+ qsNotes?: string | null | undefined;
2140
+ }[] | undefined;
2141
+ notes?: string | null | undefined;
2142
+ submittedById?: string | null | undefined;
2143
+ certifiedById?: string | null | undefined;
2144
+ certifiedAt?: string | null | undefined;
2145
+ paymentRef?: string | null | undefined;
2146
+ };
2147
+ }, {
2148
+ id: string;
2149
+ type: "valuation-certificates";
2150
+ attributes: {
2151
+ createdAt: string;
2152
+ updatedAt: string;
2153
+ companyId: string;
2154
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
2155
+ projectId: string;
2156
+ periodStart: string;
2157
+ periodEnd: string;
2158
+ certificateNumber: string;
2159
+ retentionPct: number;
2160
+ grossAmount: number;
2161
+ previousCertified: number;
2162
+ retentionAmount: number;
2163
+ netPayable: number;
2164
+ paidAt?: string | null | undefined;
2165
+ workPackageId?: string | null | undefined;
2166
+ lines?: {
2167
+ id: string;
2168
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
2169
+ certificateId: string;
2170
+ boqLineId: string;
2171
+ qtySupplyClaimed: number;
2172
+ qtyInstallClaimed: number;
2173
+ amountClaimed: number;
2174
+ qtySupplyCertified?: number | null | undefined;
2175
+ qtyInstallCertified?: number | null | undefined;
2176
+ amountCertified?: number | null | undefined;
2177
+ mosEvidenceUrl?: string | null | undefined;
2178
+ qsNotes?: string | null | undefined;
2179
+ }[] | undefined;
2180
+ notes?: string | null | undefined;
2181
+ submittedById?: string | null | undefined;
2182
+ certifiedById?: string | null | undefined;
2183
+ certifiedAt?: string | null | undefined;
2184
+ paymentRef?: string | null | undefined;
2185
+ };
2186
+ }>;
2187
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2188
+ links: z.ZodOptional<z.ZodObject<{
2189
+ self: z.ZodString;
2190
+ first: z.ZodOptional<z.ZodString>;
2191
+ last: z.ZodOptional<z.ZodString>;
2192
+ prev: z.ZodOptional<z.ZodString>;
2193
+ next: z.ZodOptional<z.ZodString>;
2194
+ }, "strip", z.ZodTypeAny, {
2195
+ self: string;
2196
+ first?: string | undefined;
2197
+ last?: string | undefined;
2198
+ prev?: string | undefined;
2199
+ next?: string | undefined;
2200
+ }, {
2201
+ self: string;
2202
+ first?: string | undefined;
2203
+ last?: string | undefined;
2204
+ prev?: string | undefined;
2205
+ next?: string | undefined;
2206
+ }>>;
2207
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2208
+ status: z.ZodString;
2209
+ title: z.ZodString;
2210
+ detail: z.ZodOptional<z.ZodString>;
2211
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2212
+ }, "strip", z.ZodTypeAny, {
2213
+ status: string;
2214
+ title: string;
2215
+ detail?: string | undefined;
2216
+ meta?: Record<string, unknown> | undefined;
2217
+ }, {
2218
+ status: string;
2219
+ title: string;
2220
+ detail?: string | undefined;
2221
+ meta?: Record<string, unknown> | undefined;
2222
+ }>, "many">>;
2223
+ }, "strip", z.ZodTypeAny, {
2224
+ data: {
2225
+ id: string;
2226
+ type: "valuation-certificates";
2227
+ attributes: {
2228
+ createdAt: string;
2229
+ updatedAt: string;
2230
+ companyId: string;
2231
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
2232
+ projectId: string;
2233
+ periodStart: string;
2234
+ periodEnd: string;
2235
+ certificateNumber: string;
2236
+ retentionPct: number;
2237
+ grossAmount: number;
2238
+ previousCertified: number;
2239
+ retentionAmount: number;
2240
+ netPayable: number;
2241
+ paidAt?: string | null | undefined;
2242
+ workPackageId?: string | null | undefined;
2243
+ lines?: {
2244
+ id: string;
2245
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
2246
+ certificateId: string;
2247
+ boqLineId: string;
2248
+ qtySupplyClaimed: number;
2249
+ qtyInstallClaimed: number;
2250
+ amountClaimed: number;
2251
+ qtySupplyCertified?: number | null | undefined;
2252
+ qtyInstallCertified?: number | null | undefined;
2253
+ amountCertified?: number | null | undefined;
2254
+ mosEvidenceUrl?: string | null | undefined;
2255
+ qsNotes?: string | null | undefined;
2256
+ }[] | undefined;
2257
+ notes?: string | null | undefined;
2258
+ submittedById?: string | null | undefined;
2259
+ certifiedById?: string | null | undefined;
2260
+ certifiedAt?: string | null | undefined;
2261
+ paymentRef?: string | null | undefined;
2262
+ };
2263
+ };
2264
+ meta?: Record<string, unknown> | undefined;
2265
+ links?: {
2266
+ self: string;
2267
+ first?: string | undefined;
2268
+ last?: string | undefined;
2269
+ prev?: string | undefined;
2270
+ next?: string | undefined;
2271
+ } | undefined;
2272
+ errors?: {
2273
+ status: string;
2274
+ title: string;
2275
+ detail?: string | undefined;
2276
+ meta?: Record<string, unknown> | undefined;
2277
+ }[] | undefined;
2278
+ }, {
2279
+ data: {
2280
+ id: string;
2281
+ type: "valuation-certificates";
2282
+ attributes: {
2283
+ createdAt: string;
2284
+ updatedAt: string;
2285
+ companyId: string;
2286
+ status: "SUBMITTED" | "REJECTED" | "PAID" | "DRAFT" | "CERTIFIED" | "AMENDED";
2287
+ projectId: string;
2288
+ periodStart: string;
2289
+ periodEnd: string;
2290
+ certificateNumber: string;
2291
+ retentionPct: number;
2292
+ grossAmount: number;
2293
+ previousCertified: number;
2294
+ retentionAmount: number;
2295
+ netPayable: number;
2296
+ paidAt?: string | null | undefined;
2297
+ workPackageId?: string | null | undefined;
2298
+ lines?: {
2299
+ id: string;
2300
+ status: "REJECTED" | "CERTIFIED" | "AMENDED" | "CLAIMED";
2301
+ certificateId: string;
2302
+ boqLineId: string;
2303
+ qtySupplyClaimed: number;
2304
+ qtyInstallClaimed: number;
2305
+ amountClaimed: number;
2306
+ qtySupplyCertified?: number | null | undefined;
2307
+ qtyInstallCertified?: number | null | undefined;
2308
+ amountCertified?: number | null | undefined;
2309
+ mosEvidenceUrl?: string | null | undefined;
2310
+ qsNotes?: string | null | undefined;
2311
+ }[] | undefined;
2312
+ notes?: string | null | undefined;
2313
+ submittedById?: string | null | undefined;
2314
+ certifiedById?: string | null | undefined;
2315
+ certifiedAt?: string | null | undefined;
2316
+ paymentRef?: string | null | undefined;
2317
+ };
2318
+ };
2319
+ meta?: Record<string, unknown> | undefined;
2320
+ links?: {
2321
+ self: string;
2322
+ first?: string | undefined;
2323
+ last?: string | undefined;
2324
+ prev?: string | undefined;
2325
+ next?: string | undefined;
2326
+ } | undefined;
2327
+ errors?: {
2328
+ status: string;
2329
+ title: string;
2330
+ detail?: string | undefined;
2331
+ meta?: Record<string, unknown> | undefined;
2332
+ }[] | undefined;
2333
+ }>;
2334
+ 400: z.ZodObject<{
2335
+ errors: z.ZodArray<z.ZodObject<{
2336
+ status: z.ZodString;
2337
+ title: z.ZodString;
2338
+ detail: z.ZodOptional<z.ZodString>;
2339
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2340
+ }, "strip", z.ZodTypeAny, {
2341
+ status: string;
2342
+ title: string;
2343
+ detail?: string | undefined;
2344
+ meta?: Record<string, unknown> | undefined;
2345
+ }, {
2346
+ status: string;
2347
+ title: string;
2348
+ detail?: string | undefined;
2349
+ meta?: Record<string, unknown> | undefined;
2350
+ }>, "many">;
2351
+ }, "strip", z.ZodTypeAny, {
2352
+ errors: {
2353
+ status: string;
2354
+ title: string;
2355
+ detail?: string | undefined;
2356
+ meta?: Record<string, unknown> | undefined;
2357
+ }[];
2358
+ }, {
2359
+ errors: {
2360
+ status: string;
2361
+ title: string;
2362
+ detail?: string | undefined;
2363
+ meta?: Record<string, unknown> | undefined;
2364
+ }[];
2365
+ }>;
2366
+ 401: z.ZodObject<{
2367
+ errors: z.ZodArray<z.ZodObject<{
2368
+ status: z.ZodString;
2369
+ title: z.ZodString;
2370
+ detail: z.ZodOptional<z.ZodString>;
2371
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2372
+ }, "strip", z.ZodTypeAny, {
2373
+ status: string;
2374
+ title: string;
2375
+ detail?: string | undefined;
2376
+ meta?: Record<string, unknown> | undefined;
2377
+ }, {
2378
+ status: string;
2379
+ title: string;
2380
+ detail?: string | undefined;
2381
+ meta?: Record<string, unknown> | undefined;
2382
+ }>, "many">;
2383
+ }, "strip", z.ZodTypeAny, {
2384
+ errors: {
2385
+ status: string;
2386
+ title: string;
2387
+ detail?: string | undefined;
2388
+ meta?: Record<string, unknown> | undefined;
2389
+ }[];
2390
+ }, {
2391
+ errors: {
2392
+ status: string;
2393
+ title: string;
2394
+ detail?: string | undefined;
2395
+ meta?: Record<string, unknown> | undefined;
2396
+ }[];
2397
+ }>;
2398
+ 403: z.ZodObject<{
2399
+ errors: z.ZodArray<z.ZodObject<{
2400
+ status: z.ZodString;
2401
+ title: z.ZodString;
2402
+ detail: z.ZodOptional<z.ZodString>;
2403
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2404
+ }, "strip", z.ZodTypeAny, {
2405
+ status: string;
2406
+ title: string;
2407
+ detail?: string | undefined;
2408
+ meta?: Record<string, unknown> | undefined;
2409
+ }, {
2410
+ status: string;
2411
+ title: string;
2412
+ detail?: string | undefined;
2413
+ meta?: Record<string, unknown> | undefined;
2414
+ }>, "many">;
2415
+ }, "strip", z.ZodTypeAny, {
2416
+ errors: {
2417
+ status: string;
2418
+ title: string;
2419
+ detail?: string | undefined;
2420
+ meta?: Record<string, unknown> | undefined;
2421
+ }[];
2422
+ }, {
2423
+ errors: {
2424
+ status: string;
2425
+ title: string;
2426
+ detail?: string | undefined;
2427
+ meta?: Record<string, unknown> | undefined;
2428
+ }[];
2429
+ }>;
2430
+ };
2431
+ };
2432
+ recordPayment: {
2433
+ pathParams: z.ZodObject<{
2434
+ certificateId: z.ZodString;
2435
+ }, "strip", z.ZodTypeAny, {
2436
+ certificateId: string;
2437
+ }, {
2438
+ certificateId: string;
2439
+ }>;
2440
+ summary: "Client records payment against a certified certificate";
2441
+ method: "POST";
2442
+ body: z.ZodObject<{
2443
+ amount: z.ZodNumber;
2444
+ paidAt: z.ZodString;
2445
+ reference: z.ZodOptional<z.ZodString>;
2446
+ notes: z.ZodOptional<z.ZodString>;
2447
+ }, "strip", z.ZodTypeAny, {
2448
+ amount: number;
2449
+ paidAt: string;
2450
+ reference?: string | undefined;
2451
+ notes?: string | undefined;
2452
+ }, {
2453
+ amount: number;
2454
+ paidAt: string;
2455
+ reference?: string | undefined;
2456
+ notes?: string | undefined;
2457
+ }>;
2458
+ path: "/valuations/:certificateId/payments";
2459
+ responses: {
2460
+ 201: z.ZodObject<{
2461
+ data: z.ZodObject<{
2462
+ type: z.ZodLiteral<"valuation-payments">;
2463
+ id: z.ZodString;
2464
+ attributes: z.ZodObject<Omit<{
2465
+ id: z.ZodString;
2466
+ certificateId: z.ZodString;
2467
+ amount: z.ZodNumber;
2468
+ paidAt: z.ZodString;
2469
+ paidById: z.ZodString;
2470
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2471
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2472
+ createdAt: z.ZodString;
2473
+ }, "id">, "strip", z.ZodTypeAny, {
2474
+ createdAt: string;
2475
+ amount: number;
2476
+ paidAt: string;
2477
+ certificateId: string;
2478
+ paidById: string;
2479
+ reference?: string | null | undefined;
2480
+ notes?: string | null | undefined;
2481
+ }, {
2482
+ createdAt: string;
2483
+ amount: number;
2484
+ paidAt: string;
2485
+ certificateId: string;
2486
+ paidById: string;
2487
+ reference?: string | null | undefined;
2488
+ notes?: string | null | undefined;
2489
+ }>;
2490
+ }, "strip", z.ZodTypeAny, {
2491
+ id: string;
2492
+ type: "valuation-payments";
2493
+ attributes: {
2494
+ createdAt: string;
2495
+ amount: number;
2496
+ paidAt: string;
2497
+ certificateId: string;
2498
+ paidById: string;
2499
+ reference?: string | null | undefined;
2500
+ notes?: string | null | undefined;
2501
+ };
2502
+ }, {
2503
+ id: string;
2504
+ type: "valuation-payments";
2505
+ attributes: {
2506
+ createdAt: string;
2507
+ amount: number;
2508
+ paidAt: string;
2509
+ certificateId: string;
2510
+ paidById: string;
2511
+ reference?: string | null | undefined;
2512
+ notes?: string | null | undefined;
2513
+ };
2514
+ }>;
2515
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2516
+ links: z.ZodOptional<z.ZodObject<{
2517
+ self: z.ZodString;
2518
+ first: z.ZodOptional<z.ZodString>;
2519
+ last: z.ZodOptional<z.ZodString>;
2520
+ prev: z.ZodOptional<z.ZodString>;
2521
+ next: z.ZodOptional<z.ZodString>;
2522
+ }, "strip", z.ZodTypeAny, {
2523
+ self: string;
2524
+ first?: string | undefined;
2525
+ last?: string | undefined;
2526
+ prev?: string | undefined;
2527
+ next?: string | undefined;
2528
+ }, {
2529
+ self: string;
2530
+ first?: string | undefined;
2531
+ last?: string | undefined;
2532
+ prev?: string | undefined;
2533
+ next?: string | undefined;
2534
+ }>>;
2535
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2536
+ status: z.ZodString;
2537
+ title: z.ZodString;
2538
+ detail: z.ZodOptional<z.ZodString>;
2539
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2540
+ }, "strip", z.ZodTypeAny, {
2541
+ status: string;
2542
+ title: string;
2543
+ detail?: string | undefined;
2544
+ meta?: Record<string, unknown> | undefined;
2545
+ }, {
2546
+ status: string;
2547
+ title: string;
2548
+ detail?: string | undefined;
2549
+ meta?: Record<string, unknown> | undefined;
2550
+ }>, "many">>;
2551
+ }, "strip", z.ZodTypeAny, {
2552
+ data: {
2553
+ id: string;
2554
+ type: "valuation-payments";
2555
+ attributes: {
2556
+ createdAt: string;
2557
+ amount: number;
2558
+ paidAt: string;
2559
+ certificateId: string;
2560
+ paidById: string;
2561
+ reference?: string | null | undefined;
2562
+ notes?: string | null | undefined;
2563
+ };
2564
+ };
2565
+ meta?: Record<string, unknown> | undefined;
2566
+ links?: {
2567
+ self: string;
2568
+ first?: string | undefined;
2569
+ last?: string | undefined;
2570
+ prev?: string | undefined;
2571
+ next?: string | undefined;
2572
+ } | undefined;
2573
+ errors?: {
2574
+ status: string;
2575
+ title: string;
2576
+ detail?: string | undefined;
2577
+ meta?: Record<string, unknown> | undefined;
2578
+ }[] | undefined;
2579
+ }, {
2580
+ data: {
2581
+ id: string;
2582
+ type: "valuation-payments";
2583
+ attributes: {
2584
+ createdAt: string;
2585
+ amount: number;
2586
+ paidAt: string;
2587
+ certificateId: string;
2588
+ paidById: string;
2589
+ reference?: string | null | undefined;
2590
+ notes?: string | null | undefined;
2591
+ };
2592
+ };
2593
+ meta?: Record<string, unknown> | undefined;
2594
+ links?: {
2595
+ self: string;
2596
+ first?: string | undefined;
2597
+ last?: string | undefined;
2598
+ prev?: string | undefined;
2599
+ next?: string | undefined;
2600
+ } | undefined;
2601
+ errors?: {
2602
+ status: string;
2603
+ title: string;
2604
+ detail?: string | undefined;
2605
+ meta?: Record<string, unknown> | undefined;
2606
+ }[] | undefined;
2607
+ }>;
2608
+ 400: z.ZodObject<{
2609
+ errors: z.ZodArray<z.ZodObject<{
2610
+ status: z.ZodString;
2611
+ title: z.ZodString;
2612
+ detail: z.ZodOptional<z.ZodString>;
2613
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2614
+ }, "strip", z.ZodTypeAny, {
2615
+ status: string;
2616
+ title: string;
2617
+ detail?: string | undefined;
2618
+ meta?: Record<string, unknown> | undefined;
2619
+ }, {
2620
+ status: string;
2621
+ title: string;
2622
+ detail?: string | undefined;
2623
+ meta?: Record<string, unknown> | undefined;
2624
+ }>, "many">;
2625
+ }, "strip", z.ZodTypeAny, {
2626
+ errors: {
2627
+ status: string;
2628
+ title: string;
2629
+ detail?: string | undefined;
2630
+ meta?: Record<string, unknown> | undefined;
2631
+ }[];
2632
+ }, {
2633
+ errors: {
2634
+ status: string;
2635
+ title: string;
2636
+ detail?: string | undefined;
2637
+ meta?: Record<string, unknown> | undefined;
2638
+ }[];
2639
+ }>;
2640
+ 401: z.ZodObject<{
2641
+ errors: z.ZodArray<z.ZodObject<{
2642
+ status: z.ZodString;
2643
+ title: z.ZodString;
2644
+ detail: z.ZodOptional<z.ZodString>;
2645
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2646
+ }, "strip", z.ZodTypeAny, {
2647
+ status: string;
2648
+ title: string;
2649
+ detail?: string | undefined;
2650
+ meta?: Record<string, unknown> | undefined;
2651
+ }, {
2652
+ status: string;
2653
+ title: string;
2654
+ detail?: string | undefined;
2655
+ meta?: Record<string, unknown> | undefined;
2656
+ }>, "many">;
2657
+ }, "strip", z.ZodTypeAny, {
2658
+ errors: {
2659
+ status: string;
2660
+ title: string;
2661
+ detail?: string | undefined;
2662
+ meta?: Record<string, unknown> | undefined;
2663
+ }[];
2664
+ }, {
2665
+ errors: {
2666
+ status: string;
2667
+ title: string;
2668
+ detail?: string | undefined;
2669
+ meta?: Record<string, unknown> | undefined;
2670
+ }[];
2671
+ }>;
2672
+ 403: z.ZodObject<{
2673
+ errors: z.ZodArray<z.ZodObject<{
2674
+ status: z.ZodString;
2675
+ title: z.ZodString;
2676
+ detail: z.ZodOptional<z.ZodString>;
2677
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2678
+ }, "strip", z.ZodTypeAny, {
2679
+ status: string;
2680
+ title: string;
2681
+ detail?: string | undefined;
2682
+ meta?: Record<string, unknown> | undefined;
2683
+ }, {
2684
+ status: string;
2685
+ title: string;
2686
+ detail?: string | undefined;
2687
+ meta?: Record<string, unknown> | undefined;
2688
+ }>, "many">;
2689
+ }, "strip", z.ZodTypeAny, {
2690
+ errors: {
2691
+ status: string;
2692
+ title: string;
2693
+ detail?: string | undefined;
2694
+ meta?: Record<string, unknown> | undefined;
2695
+ }[];
2696
+ }, {
2697
+ errors: {
2698
+ status: string;
2699
+ title: string;
2700
+ detail?: string | undefined;
2701
+ meta?: Record<string, unknown> | undefined;
2702
+ }[];
2703
+ }>;
2704
+ };
2705
+ };
2706
+ listVariations: {
2707
+ pathParams: z.ZodObject<{
2708
+ projectId: z.ZodString;
2709
+ }, "strip", z.ZodTypeAny, {
2710
+ projectId: string;
2711
+ }, {
2712
+ projectId: string;
2713
+ }>;
2714
+ query: z.ZodObject<{
2715
+ page: z.ZodDefault<z.ZodNumber>;
2716
+ limit: z.ZodDefault<z.ZodNumber>;
2717
+ }, "strip", z.ZodTypeAny, {
2718
+ page: number;
2719
+ limit: number;
2720
+ }, {
2721
+ page?: number | undefined;
2722
+ limit?: number | undefined;
2723
+ }>;
2724
+ summary: "List variations";
2725
+ method: "GET";
2726
+ path: "/projects/:projectId/variations";
2727
+ responses: {
2728
+ 200: z.ZodObject<{
2729
+ data: z.ZodArray<z.ZodObject<{
2730
+ type: z.ZodLiteral<"variations">;
2731
+ id: z.ZodString;
2732
+ attributes: z.ZodObject<Omit<{
2733
+ id: z.ZodString;
2734
+ projectId: z.ZodString;
2735
+ companyId: z.ZodString;
2736
+ workPackageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2737
+ title: z.ZodString;
2738
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2739
+ amount: z.ZodNumber;
2740
+ status: z.ZodEnum<["DRAFT", "SUBMITTED", "APPROVED", "REJECTED"]>;
2741
+ createdById: z.ZodString;
2742
+ createdAt: z.ZodString;
2743
+ updatedAt: z.ZodString;
2744
+ }, "id">, "strip", z.ZodTypeAny, {
2745
+ createdAt: string;
2746
+ updatedAt: string;
2747
+ companyId: string;
2748
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
2749
+ title: string;
2750
+ projectId: string;
2751
+ amount: number;
2752
+ createdById: string;
2753
+ description?: string | null | undefined;
2754
+ workPackageId?: string | null | undefined;
2755
+ }, {
2756
+ createdAt: string;
2757
+ updatedAt: string;
2758
+ companyId: string;
2759
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
2760
+ title: string;
2761
+ projectId: string;
2762
+ amount: number;
2763
+ createdById: string;
2764
+ description?: string | null | undefined;
2765
+ workPackageId?: string | null | undefined;
2766
+ }>;
2767
+ }, "strip", z.ZodTypeAny, {
2768
+ id: string;
2769
+ type: "variations";
2770
+ attributes: {
2771
+ createdAt: string;
2772
+ updatedAt: string;
2773
+ companyId: string;
2774
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
2775
+ title: string;
2776
+ projectId: string;
2777
+ amount: number;
2778
+ createdById: string;
2779
+ description?: string | null | undefined;
2780
+ workPackageId?: string | null | undefined;
2781
+ };
2782
+ }, {
2783
+ id: string;
2784
+ type: "variations";
2785
+ attributes: {
2786
+ createdAt: string;
2787
+ updatedAt: string;
2788
+ companyId: string;
2789
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
2790
+ title: string;
2791
+ projectId: string;
2792
+ amount: number;
2793
+ createdById: string;
2794
+ description?: string | null | undefined;
2795
+ workPackageId?: string | null | undefined;
2796
+ };
2797
+ }>, "many">;
2798
+ meta: z.ZodOptional<z.ZodObject<{
2799
+ total: z.ZodOptional<z.ZodNumber>;
2800
+ page: z.ZodOptional<z.ZodNumber>;
2801
+ size: z.ZodOptional<z.ZodNumber>;
2802
+ pages: z.ZodOptional<z.ZodNumber>;
2803
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
2804
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
2805
+ }, "strip", z.ZodTypeAny, {
2806
+ page?: number | undefined;
2807
+ total?: number | undefined;
2808
+ size?: number | undefined;
2809
+ pages?: number | undefined;
2810
+ hasNextPage?: boolean | undefined;
2811
+ hasPreviousPage?: boolean | undefined;
2812
+ }, {
2813
+ page?: number | undefined;
2814
+ total?: number | undefined;
2815
+ size?: number | undefined;
2816
+ pages?: number | undefined;
2817
+ hasNextPage?: boolean | undefined;
2818
+ hasPreviousPage?: boolean | undefined;
2819
+ }>>;
2820
+ links: z.ZodOptional<z.ZodObject<{
2821
+ self: z.ZodString;
2822
+ first: z.ZodOptional<z.ZodString>;
2823
+ last: z.ZodOptional<z.ZodString>;
2824
+ prev: z.ZodOptional<z.ZodString>;
2825
+ next: z.ZodOptional<z.ZodString>;
2826
+ }, "strip", z.ZodTypeAny, {
2827
+ self: string;
2828
+ first?: string | undefined;
2829
+ last?: string | undefined;
2830
+ prev?: string | undefined;
2831
+ next?: string | undefined;
2832
+ }, {
2833
+ self: string;
2834
+ first?: string | undefined;
2835
+ last?: string | undefined;
2836
+ prev?: string | undefined;
2837
+ next?: string | undefined;
2838
+ }>>;
2839
+ }, "strip", z.ZodTypeAny, {
2840
+ data: {
2841
+ id: string;
2842
+ type: "variations";
2843
+ attributes: {
2844
+ createdAt: string;
2845
+ updatedAt: string;
2846
+ companyId: string;
2847
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
2848
+ title: string;
2849
+ projectId: string;
2850
+ amount: number;
2851
+ createdById: string;
2852
+ description?: string | null | undefined;
2853
+ workPackageId?: string | null | undefined;
2854
+ };
2855
+ }[];
2856
+ meta?: {
2857
+ page?: number | undefined;
2858
+ total?: number | undefined;
2859
+ size?: number | undefined;
2860
+ pages?: number | undefined;
2861
+ hasNextPage?: boolean | undefined;
2862
+ hasPreviousPage?: boolean | undefined;
2863
+ } | undefined;
2864
+ links?: {
2865
+ self: string;
2866
+ first?: string | undefined;
2867
+ last?: string | undefined;
2868
+ prev?: string | undefined;
2869
+ next?: string | undefined;
2870
+ } | undefined;
2871
+ }, {
2872
+ data: {
2873
+ id: string;
2874
+ type: "variations";
2875
+ attributes: {
2876
+ createdAt: string;
2877
+ updatedAt: string;
2878
+ companyId: string;
2879
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
2880
+ title: string;
2881
+ projectId: string;
2882
+ amount: number;
2883
+ createdById: string;
2884
+ description?: string | null | undefined;
2885
+ workPackageId?: string | null | undefined;
2886
+ };
2887
+ }[];
2888
+ meta?: {
2889
+ page?: number | undefined;
2890
+ total?: number | undefined;
2891
+ size?: number | undefined;
2892
+ pages?: number | undefined;
2893
+ hasNextPage?: boolean | undefined;
2894
+ hasPreviousPage?: boolean | undefined;
2895
+ } | undefined;
2896
+ links?: {
2897
+ self: string;
2898
+ first?: string | undefined;
2899
+ last?: string | undefined;
2900
+ prev?: string | undefined;
2901
+ next?: string | undefined;
2902
+ } | undefined;
2903
+ }>;
2904
+ 401: z.ZodObject<{
2905
+ errors: z.ZodArray<z.ZodObject<{
2906
+ status: z.ZodString;
2907
+ title: z.ZodString;
2908
+ detail: z.ZodOptional<z.ZodString>;
2909
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2910
+ }, "strip", z.ZodTypeAny, {
2911
+ status: string;
2912
+ title: string;
2913
+ detail?: string | undefined;
2914
+ meta?: Record<string, unknown> | undefined;
2915
+ }, {
2916
+ status: string;
2917
+ title: string;
2918
+ detail?: string | undefined;
2919
+ meta?: Record<string, unknown> | undefined;
2920
+ }>, "many">;
2921
+ }, "strip", z.ZodTypeAny, {
2922
+ errors: {
2923
+ status: string;
2924
+ title: string;
2925
+ detail?: string | undefined;
2926
+ meta?: Record<string, unknown> | undefined;
2927
+ }[];
2928
+ }, {
2929
+ errors: {
2930
+ status: string;
2931
+ title: string;
2932
+ detail?: string | undefined;
2933
+ meta?: Record<string, unknown> | undefined;
2934
+ }[];
2935
+ }>;
2936
+ 403: z.ZodObject<{
2937
+ errors: z.ZodArray<z.ZodObject<{
2938
+ status: z.ZodString;
2939
+ title: z.ZodString;
2940
+ detail: z.ZodOptional<z.ZodString>;
2941
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2942
+ }, "strip", z.ZodTypeAny, {
2943
+ status: string;
2944
+ title: string;
2945
+ detail?: string | undefined;
2946
+ meta?: Record<string, unknown> | undefined;
2947
+ }, {
2948
+ status: string;
2949
+ title: string;
2950
+ detail?: string | undefined;
2951
+ meta?: Record<string, unknown> | undefined;
2952
+ }>, "many">;
2953
+ }, "strip", z.ZodTypeAny, {
2954
+ errors: {
2955
+ status: string;
2956
+ title: string;
2957
+ detail?: string | undefined;
2958
+ meta?: Record<string, unknown> | undefined;
2959
+ }[];
2960
+ }, {
2961
+ errors: {
2962
+ status: string;
2963
+ title: string;
2964
+ detail?: string | undefined;
2965
+ meta?: Record<string, unknown> | undefined;
2966
+ }[];
2967
+ }>;
2968
+ };
2969
+ };
2970
+ createVariation: {
2971
+ pathParams: z.ZodObject<{
2972
+ projectId: z.ZodString;
2973
+ }, "strip", z.ZodTypeAny, {
2974
+ projectId: string;
2975
+ }, {
2976
+ projectId: string;
2977
+ }>;
2978
+ summary: "Create a variation";
2979
+ method: "POST";
2980
+ body: z.ZodObject<{
2981
+ workPackageId: z.ZodOptional<z.ZodString>;
2982
+ title: z.ZodString;
2983
+ description: z.ZodOptional<z.ZodString>;
2984
+ amount: z.ZodNumber;
2985
+ }, "strip", z.ZodTypeAny, {
2986
+ title: string;
2987
+ amount: number;
2988
+ description?: string | undefined;
2989
+ workPackageId?: string | undefined;
2990
+ }, {
2991
+ title: string;
2992
+ amount: number;
2993
+ description?: string | undefined;
2994
+ workPackageId?: string | undefined;
2995
+ }>;
2996
+ path: "/projects/:projectId/variations";
2997
+ responses: {
2998
+ 201: z.ZodObject<{
2999
+ data: z.ZodObject<{
3000
+ type: z.ZodLiteral<"variations">;
3001
+ id: z.ZodString;
3002
+ attributes: z.ZodObject<Omit<{
3003
+ id: z.ZodString;
3004
+ projectId: z.ZodString;
3005
+ companyId: z.ZodString;
3006
+ workPackageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3007
+ title: z.ZodString;
3008
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3009
+ amount: z.ZodNumber;
3010
+ status: z.ZodEnum<["DRAFT", "SUBMITTED", "APPROVED", "REJECTED"]>;
3011
+ createdById: z.ZodString;
3012
+ createdAt: z.ZodString;
3013
+ updatedAt: z.ZodString;
3014
+ }, "id">, "strip", z.ZodTypeAny, {
3015
+ createdAt: string;
3016
+ updatedAt: string;
3017
+ companyId: string;
3018
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
3019
+ title: string;
3020
+ projectId: string;
3021
+ amount: number;
3022
+ createdById: string;
3023
+ description?: string | null | undefined;
3024
+ workPackageId?: string | null | undefined;
3025
+ }, {
3026
+ createdAt: string;
3027
+ updatedAt: string;
3028
+ companyId: string;
3029
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
3030
+ title: string;
3031
+ projectId: string;
3032
+ amount: number;
3033
+ createdById: string;
3034
+ description?: string | null | undefined;
3035
+ workPackageId?: string | null | undefined;
3036
+ }>;
3037
+ }, "strip", z.ZodTypeAny, {
3038
+ id: string;
3039
+ type: "variations";
3040
+ attributes: {
3041
+ createdAt: string;
3042
+ updatedAt: string;
3043
+ companyId: string;
3044
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
3045
+ title: string;
3046
+ projectId: string;
3047
+ amount: number;
3048
+ createdById: string;
3049
+ description?: string | null | undefined;
3050
+ workPackageId?: string | null | undefined;
3051
+ };
3052
+ }, {
3053
+ id: string;
3054
+ type: "variations";
3055
+ attributes: {
3056
+ createdAt: string;
3057
+ updatedAt: string;
3058
+ companyId: string;
3059
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
3060
+ title: string;
3061
+ projectId: string;
3062
+ amount: number;
3063
+ createdById: string;
3064
+ description?: string | null | undefined;
3065
+ workPackageId?: string | null | undefined;
3066
+ };
3067
+ }>;
3068
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3069
+ links: z.ZodOptional<z.ZodObject<{
3070
+ self: z.ZodString;
3071
+ first: z.ZodOptional<z.ZodString>;
3072
+ last: z.ZodOptional<z.ZodString>;
3073
+ prev: z.ZodOptional<z.ZodString>;
3074
+ next: z.ZodOptional<z.ZodString>;
3075
+ }, "strip", z.ZodTypeAny, {
3076
+ self: string;
3077
+ first?: string | undefined;
3078
+ last?: string | undefined;
3079
+ prev?: string | undefined;
3080
+ next?: string | undefined;
3081
+ }, {
3082
+ self: string;
3083
+ first?: string | undefined;
3084
+ last?: string | undefined;
3085
+ prev?: string | undefined;
3086
+ next?: string | undefined;
3087
+ }>>;
3088
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
3089
+ status: z.ZodString;
3090
+ title: z.ZodString;
3091
+ detail: z.ZodOptional<z.ZodString>;
3092
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3093
+ }, "strip", z.ZodTypeAny, {
3094
+ status: string;
3095
+ title: string;
3096
+ detail?: string | undefined;
3097
+ meta?: Record<string, unknown> | undefined;
3098
+ }, {
3099
+ status: string;
3100
+ title: string;
3101
+ detail?: string | undefined;
3102
+ meta?: Record<string, unknown> | undefined;
3103
+ }>, "many">>;
3104
+ }, "strip", z.ZodTypeAny, {
3105
+ data: {
3106
+ id: string;
3107
+ type: "variations";
3108
+ attributes: {
3109
+ createdAt: string;
3110
+ updatedAt: string;
3111
+ companyId: string;
3112
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
3113
+ title: string;
3114
+ projectId: string;
3115
+ amount: number;
3116
+ createdById: string;
3117
+ description?: string | null | undefined;
3118
+ workPackageId?: string | null | undefined;
3119
+ };
3120
+ };
3121
+ meta?: Record<string, unknown> | undefined;
3122
+ links?: {
3123
+ self: string;
3124
+ first?: string | undefined;
3125
+ last?: string | undefined;
3126
+ prev?: string | undefined;
3127
+ next?: string | undefined;
3128
+ } | undefined;
3129
+ errors?: {
3130
+ status: string;
3131
+ title: string;
3132
+ detail?: string | undefined;
3133
+ meta?: Record<string, unknown> | undefined;
3134
+ }[] | undefined;
3135
+ }, {
3136
+ data: {
3137
+ id: string;
3138
+ type: "variations";
3139
+ attributes: {
3140
+ createdAt: string;
3141
+ updatedAt: string;
3142
+ companyId: string;
3143
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
3144
+ title: string;
3145
+ projectId: string;
3146
+ amount: number;
3147
+ createdById: string;
3148
+ description?: string | null | undefined;
3149
+ workPackageId?: string | null | undefined;
3150
+ };
3151
+ };
3152
+ meta?: Record<string, unknown> | undefined;
3153
+ links?: {
3154
+ self: string;
3155
+ first?: string | undefined;
3156
+ last?: string | undefined;
3157
+ prev?: string | undefined;
3158
+ next?: string | undefined;
3159
+ } | undefined;
3160
+ errors?: {
3161
+ status: string;
3162
+ title: string;
3163
+ detail?: string | undefined;
3164
+ meta?: Record<string, unknown> | undefined;
3165
+ }[] | undefined;
3166
+ }>;
3167
+ 400: z.ZodObject<{
3168
+ errors: z.ZodArray<z.ZodObject<{
3169
+ status: z.ZodString;
3170
+ title: z.ZodString;
3171
+ detail: z.ZodOptional<z.ZodString>;
3172
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3173
+ }, "strip", z.ZodTypeAny, {
3174
+ status: string;
3175
+ title: string;
3176
+ detail?: string | undefined;
3177
+ meta?: Record<string, unknown> | undefined;
3178
+ }, {
3179
+ status: string;
3180
+ title: string;
3181
+ detail?: string | undefined;
3182
+ meta?: Record<string, unknown> | undefined;
3183
+ }>, "many">;
3184
+ }, "strip", z.ZodTypeAny, {
3185
+ errors: {
3186
+ status: string;
3187
+ title: string;
3188
+ detail?: string | undefined;
3189
+ meta?: Record<string, unknown> | undefined;
3190
+ }[];
3191
+ }, {
3192
+ errors: {
3193
+ status: string;
3194
+ title: string;
3195
+ detail?: string | undefined;
3196
+ meta?: Record<string, unknown> | undefined;
3197
+ }[];
3198
+ }>;
3199
+ 401: z.ZodObject<{
3200
+ errors: z.ZodArray<z.ZodObject<{
3201
+ status: z.ZodString;
3202
+ title: z.ZodString;
3203
+ detail: z.ZodOptional<z.ZodString>;
3204
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3205
+ }, "strip", z.ZodTypeAny, {
3206
+ status: string;
3207
+ title: string;
3208
+ detail?: string | undefined;
3209
+ meta?: Record<string, unknown> | undefined;
3210
+ }, {
3211
+ status: string;
3212
+ title: string;
3213
+ detail?: string | undefined;
3214
+ meta?: Record<string, unknown> | undefined;
3215
+ }>, "many">;
3216
+ }, "strip", z.ZodTypeAny, {
3217
+ errors: {
3218
+ status: string;
3219
+ title: string;
3220
+ detail?: string | undefined;
3221
+ meta?: Record<string, unknown> | undefined;
3222
+ }[];
3223
+ }, {
3224
+ errors: {
3225
+ status: string;
3226
+ title: string;
3227
+ detail?: string | undefined;
3228
+ meta?: Record<string, unknown> | undefined;
3229
+ }[];
3230
+ }>;
3231
+ 403: z.ZodObject<{
3232
+ errors: z.ZodArray<z.ZodObject<{
3233
+ status: z.ZodString;
3234
+ title: z.ZodString;
3235
+ detail: z.ZodOptional<z.ZodString>;
3236
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3237
+ }, "strip", z.ZodTypeAny, {
3238
+ status: string;
3239
+ title: string;
3240
+ detail?: string | undefined;
3241
+ meta?: Record<string, unknown> | undefined;
3242
+ }, {
3243
+ status: string;
3244
+ title: string;
3245
+ detail?: string | undefined;
3246
+ meta?: Record<string, unknown> | undefined;
3247
+ }>, "many">;
3248
+ }, "strip", z.ZodTypeAny, {
3249
+ errors: {
3250
+ status: string;
3251
+ title: string;
3252
+ detail?: string | undefined;
3253
+ meta?: Record<string, unknown> | undefined;
3254
+ }[];
3255
+ }, {
3256
+ errors: {
3257
+ status: string;
3258
+ title: string;
3259
+ detail?: string | undefined;
3260
+ meta?: Record<string, unknown> | undefined;
3261
+ }[];
3262
+ }>;
3263
+ };
3264
+ };
3265
+ };
3266
+ //# sourceMappingURL=valuations.d.ts.map