@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,1293 @@
1
+ import { z } from 'zod';
2
+ export declare const contractorLedgerContract: {
3
+ listJobCosts: {
4
+ pathParams: z.ZodObject<{
5
+ projectId: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ projectId: string;
8
+ }, {
9
+ projectId: string;
10
+ }>;
11
+ summary: "List private job costs (contractor only)";
12
+ method: "GET";
13
+ path: "/projects/:projectId/contractor/job-costs";
14
+ responses: {
15
+ 200: z.ZodObject<{
16
+ data: z.ZodArray<z.ZodObject<{
17
+ type: z.ZodLiteral<"contractor-job-costs">;
18
+ id: z.ZodString;
19
+ attributes: z.ZodObject<Omit<{
20
+ id: z.ZodString;
21
+ projectId: z.ZodString;
22
+ companyId: z.ZodString;
23
+ workPackageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ category: z.ZodString;
25
+ description: z.ZodString;
26
+ amount: z.ZodNumber;
27
+ incurredAt: z.ZodString;
28
+ createdById: z.ZodString;
29
+ createdAt: z.ZodString;
30
+ updatedAt: z.ZodString;
31
+ }, "id">, "strip", z.ZodTypeAny, {
32
+ createdAt: string;
33
+ updatedAt: string;
34
+ companyId: string;
35
+ projectId: string;
36
+ description: string;
37
+ amount: number;
38
+ category: string;
39
+ createdById: string;
40
+ incurredAt: string;
41
+ workPackageId?: string | null | undefined;
42
+ }, {
43
+ createdAt: string;
44
+ updatedAt: string;
45
+ companyId: string;
46
+ projectId: string;
47
+ description: string;
48
+ amount: number;
49
+ category: string;
50
+ createdById: string;
51
+ incurredAt: string;
52
+ workPackageId?: string | null | undefined;
53
+ }>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ id: string;
56
+ type: "contractor-job-costs";
57
+ attributes: {
58
+ createdAt: string;
59
+ updatedAt: string;
60
+ companyId: string;
61
+ projectId: string;
62
+ description: string;
63
+ amount: number;
64
+ category: string;
65
+ createdById: string;
66
+ incurredAt: string;
67
+ workPackageId?: string | null | undefined;
68
+ };
69
+ }, {
70
+ id: string;
71
+ type: "contractor-job-costs";
72
+ attributes: {
73
+ createdAt: string;
74
+ updatedAt: string;
75
+ companyId: string;
76
+ projectId: string;
77
+ description: string;
78
+ amount: number;
79
+ category: string;
80
+ createdById: string;
81
+ incurredAt: string;
82
+ workPackageId?: string | null | undefined;
83
+ };
84
+ }>, "many">;
85
+ meta: z.ZodOptional<z.ZodObject<{
86
+ total: z.ZodOptional<z.ZodNumber>;
87
+ page: z.ZodOptional<z.ZodNumber>;
88
+ size: z.ZodOptional<z.ZodNumber>;
89
+ pages: z.ZodOptional<z.ZodNumber>;
90
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
91
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ page?: number | undefined;
94
+ total?: number | undefined;
95
+ size?: number | undefined;
96
+ pages?: number | undefined;
97
+ hasNextPage?: boolean | undefined;
98
+ hasPreviousPage?: boolean | undefined;
99
+ }, {
100
+ page?: number | undefined;
101
+ total?: number | undefined;
102
+ size?: number | undefined;
103
+ pages?: number | undefined;
104
+ hasNextPage?: boolean | undefined;
105
+ hasPreviousPage?: boolean | undefined;
106
+ }>>;
107
+ links: z.ZodOptional<z.ZodObject<{
108
+ self: z.ZodString;
109
+ first: z.ZodOptional<z.ZodString>;
110
+ last: z.ZodOptional<z.ZodString>;
111
+ prev: z.ZodOptional<z.ZodString>;
112
+ next: z.ZodOptional<z.ZodString>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ self: string;
115
+ first?: string | undefined;
116
+ last?: string | undefined;
117
+ prev?: string | undefined;
118
+ next?: string | undefined;
119
+ }, {
120
+ self: string;
121
+ first?: string | undefined;
122
+ last?: string | undefined;
123
+ prev?: string | undefined;
124
+ next?: string | undefined;
125
+ }>>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ data: {
128
+ id: string;
129
+ type: "contractor-job-costs";
130
+ attributes: {
131
+ createdAt: string;
132
+ updatedAt: string;
133
+ companyId: string;
134
+ projectId: string;
135
+ description: string;
136
+ amount: number;
137
+ category: string;
138
+ createdById: string;
139
+ incurredAt: string;
140
+ workPackageId?: string | null | undefined;
141
+ };
142
+ }[];
143
+ meta?: {
144
+ page?: number | undefined;
145
+ total?: number | undefined;
146
+ size?: number | undefined;
147
+ pages?: number | undefined;
148
+ hasNextPage?: boolean | undefined;
149
+ hasPreviousPage?: boolean | undefined;
150
+ } | undefined;
151
+ links?: {
152
+ self: string;
153
+ first?: string | undefined;
154
+ last?: string | undefined;
155
+ prev?: string | undefined;
156
+ next?: string | undefined;
157
+ } | undefined;
158
+ }, {
159
+ data: {
160
+ id: string;
161
+ type: "contractor-job-costs";
162
+ attributes: {
163
+ createdAt: string;
164
+ updatedAt: string;
165
+ companyId: string;
166
+ projectId: string;
167
+ description: string;
168
+ amount: number;
169
+ category: string;
170
+ createdById: string;
171
+ incurredAt: string;
172
+ workPackageId?: string | null | undefined;
173
+ };
174
+ }[];
175
+ meta?: {
176
+ page?: number | undefined;
177
+ total?: number | undefined;
178
+ size?: number | undefined;
179
+ pages?: number | undefined;
180
+ hasNextPage?: boolean | undefined;
181
+ hasPreviousPage?: boolean | undefined;
182
+ } | undefined;
183
+ links?: {
184
+ self: string;
185
+ first?: string | undefined;
186
+ last?: string | undefined;
187
+ prev?: string | undefined;
188
+ next?: string | undefined;
189
+ } | undefined;
190
+ }>;
191
+ 401: z.ZodObject<{
192
+ errors: z.ZodArray<z.ZodObject<{
193
+ status: z.ZodString;
194
+ title: z.ZodString;
195
+ detail: z.ZodOptional<z.ZodString>;
196
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ status: string;
199
+ title: string;
200
+ detail?: string | undefined;
201
+ meta?: Record<string, unknown> | undefined;
202
+ }, {
203
+ status: string;
204
+ title: string;
205
+ detail?: string | undefined;
206
+ meta?: Record<string, unknown> | undefined;
207
+ }>, "many">;
208
+ }, "strip", z.ZodTypeAny, {
209
+ errors: {
210
+ status: string;
211
+ title: string;
212
+ detail?: string | undefined;
213
+ meta?: Record<string, unknown> | undefined;
214
+ }[];
215
+ }, {
216
+ errors: {
217
+ status: string;
218
+ title: string;
219
+ detail?: string | undefined;
220
+ meta?: Record<string, unknown> | undefined;
221
+ }[];
222
+ }>;
223
+ 403: z.ZodObject<{
224
+ errors: z.ZodArray<z.ZodObject<{
225
+ status: z.ZodString;
226
+ title: z.ZodString;
227
+ detail: z.ZodOptional<z.ZodString>;
228
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ status: string;
231
+ title: string;
232
+ detail?: string | undefined;
233
+ meta?: Record<string, unknown> | undefined;
234
+ }, {
235
+ status: string;
236
+ title: string;
237
+ detail?: string | undefined;
238
+ meta?: Record<string, unknown> | undefined;
239
+ }>, "many">;
240
+ }, "strip", z.ZodTypeAny, {
241
+ errors: {
242
+ status: string;
243
+ title: string;
244
+ detail?: string | undefined;
245
+ meta?: Record<string, unknown> | undefined;
246
+ }[];
247
+ }, {
248
+ errors: {
249
+ status: string;
250
+ title: string;
251
+ detail?: string | undefined;
252
+ meta?: Record<string, unknown> | undefined;
253
+ }[];
254
+ }>;
255
+ };
256
+ };
257
+ createJobCost: {
258
+ pathParams: z.ZodObject<{
259
+ projectId: z.ZodString;
260
+ }, "strip", z.ZodTypeAny, {
261
+ projectId: string;
262
+ }, {
263
+ projectId: string;
264
+ }>;
265
+ summary: "Create job cost entry";
266
+ method: "POST";
267
+ body: z.ZodObject<{
268
+ workPackageId: z.ZodOptional<z.ZodString>;
269
+ category: z.ZodString;
270
+ description: z.ZodString;
271
+ amount: z.ZodNumber;
272
+ incurredAt: z.ZodString;
273
+ }, "strip", z.ZodTypeAny, {
274
+ description: string;
275
+ amount: number;
276
+ category: string;
277
+ incurredAt: string;
278
+ workPackageId?: string | undefined;
279
+ }, {
280
+ description: string;
281
+ amount: number;
282
+ category: string;
283
+ incurredAt: string;
284
+ workPackageId?: string | undefined;
285
+ }>;
286
+ path: "/projects/:projectId/contractor/job-costs";
287
+ responses: {
288
+ 201: z.ZodObject<{
289
+ data: z.ZodObject<{
290
+ type: z.ZodLiteral<"contractor-job-costs">;
291
+ id: z.ZodString;
292
+ attributes: z.ZodObject<Omit<{
293
+ id: z.ZodString;
294
+ projectId: z.ZodString;
295
+ companyId: z.ZodString;
296
+ workPackageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
+ category: z.ZodString;
298
+ description: z.ZodString;
299
+ amount: z.ZodNumber;
300
+ incurredAt: z.ZodString;
301
+ createdById: z.ZodString;
302
+ createdAt: z.ZodString;
303
+ updatedAt: z.ZodString;
304
+ }, "id">, "strip", z.ZodTypeAny, {
305
+ createdAt: string;
306
+ updatedAt: string;
307
+ companyId: string;
308
+ projectId: string;
309
+ description: string;
310
+ amount: number;
311
+ category: string;
312
+ createdById: string;
313
+ incurredAt: string;
314
+ workPackageId?: string | null | undefined;
315
+ }, {
316
+ createdAt: string;
317
+ updatedAt: string;
318
+ companyId: string;
319
+ projectId: string;
320
+ description: string;
321
+ amount: number;
322
+ category: string;
323
+ createdById: string;
324
+ incurredAt: string;
325
+ workPackageId?: string | null | undefined;
326
+ }>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ id: string;
329
+ type: "contractor-job-costs";
330
+ attributes: {
331
+ createdAt: string;
332
+ updatedAt: string;
333
+ companyId: string;
334
+ projectId: string;
335
+ description: string;
336
+ amount: number;
337
+ category: string;
338
+ createdById: string;
339
+ incurredAt: string;
340
+ workPackageId?: string | null | undefined;
341
+ };
342
+ }, {
343
+ id: string;
344
+ type: "contractor-job-costs";
345
+ attributes: {
346
+ createdAt: string;
347
+ updatedAt: string;
348
+ companyId: string;
349
+ projectId: string;
350
+ description: string;
351
+ amount: number;
352
+ category: string;
353
+ createdById: string;
354
+ incurredAt: string;
355
+ workPackageId?: string | null | undefined;
356
+ };
357
+ }>;
358
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
359
+ links: z.ZodOptional<z.ZodObject<{
360
+ self: z.ZodString;
361
+ first: z.ZodOptional<z.ZodString>;
362
+ last: z.ZodOptional<z.ZodString>;
363
+ prev: z.ZodOptional<z.ZodString>;
364
+ next: z.ZodOptional<z.ZodString>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ self: string;
367
+ first?: string | undefined;
368
+ last?: string | undefined;
369
+ prev?: string | undefined;
370
+ next?: string | undefined;
371
+ }, {
372
+ self: string;
373
+ first?: string | undefined;
374
+ last?: string | undefined;
375
+ prev?: string | undefined;
376
+ next?: string | undefined;
377
+ }>>;
378
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
379
+ status: z.ZodString;
380
+ title: z.ZodString;
381
+ detail: z.ZodOptional<z.ZodString>;
382
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
383
+ }, "strip", z.ZodTypeAny, {
384
+ status: string;
385
+ title: string;
386
+ detail?: string | undefined;
387
+ meta?: Record<string, unknown> | undefined;
388
+ }, {
389
+ status: string;
390
+ title: string;
391
+ detail?: string | undefined;
392
+ meta?: Record<string, unknown> | undefined;
393
+ }>, "many">>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ data: {
396
+ id: string;
397
+ type: "contractor-job-costs";
398
+ attributes: {
399
+ createdAt: string;
400
+ updatedAt: string;
401
+ companyId: string;
402
+ projectId: string;
403
+ description: string;
404
+ amount: number;
405
+ category: string;
406
+ createdById: string;
407
+ incurredAt: string;
408
+ workPackageId?: string | null | undefined;
409
+ };
410
+ };
411
+ meta?: Record<string, unknown> | undefined;
412
+ links?: {
413
+ self: string;
414
+ first?: string | undefined;
415
+ last?: string | undefined;
416
+ prev?: string | undefined;
417
+ next?: string | undefined;
418
+ } | undefined;
419
+ errors?: {
420
+ status: string;
421
+ title: string;
422
+ detail?: string | undefined;
423
+ meta?: Record<string, unknown> | undefined;
424
+ }[] | undefined;
425
+ }, {
426
+ data: {
427
+ id: string;
428
+ type: "contractor-job-costs";
429
+ attributes: {
430
+ createdAt: string;
431
+ updatedAt: string;
432
+ companyId: string;
433
+ projectId: string;
434
+ description: string;
435
+ amount: number;
436
+ category: string;
437
+ createdById: string;
438
+ incurredAt: string;
439
+ workPackageId?: string | null | undefined;
440
+ };
441
+ };
442
+ meta?: Record<string, unknown> | undefined;
443
+ links?: {
444
+ self: string;
445
+ first?: string | undefined;
446
+ last?: string | undefined;
447
+ prev?: string | undefined;
448
+ next?: string | undefined;
449
+ } | undefined;
450
+ errors?: {
451
+ status: string;
452
+ title: string;
453
+ detail?: string | undefined;
454
+ meta?: Record<string, unknown> | undefined;
455
+ }[] | undefined;
456
+ }>;
457
+ 401: z.ZodObject<{
458
+ errors: z.ZodArray<z.ZodObject<{
459
+ status: z.ZodString;
460
+ title: z.ZodString;
461
+ detail: z.ZodOptional<z.ZodString>;
462
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ status: string;
465
+ title: string;
466
+ detail?: string | undefined;
467
+ meta?: Record<string, unknown> | undefined;
468
+ }, {
469
+ status: string;
470
+ title: string;
471
+ detail?: string | undefined;
472
+ meta?: Record<string, unknown> | undefined;
473
+ }>, "many">;
474
+ }, "strip", z.ZodTypeAny, {
475
+ errors: {
476
+ status: string;
477
+ title: string;
478
+ detail?: string | undefined;
479
+ meta?: Record<string, unknown> | undefined;
480
+ }[];
481
+ }, {
482
+ errors: {
483
+ status: string;
484
+ title: string;
485
+ detail?: string | undefined;
486
+ meta?: Record<string, unknown> | undefined;
487
+ }[];
488
+ }>;
489
+ 403: z.ZodObject<{
490
+ errors: z.ZodArray<z.ZodObject<{
491
+ status: z.ZodString;
492
+ title: z.ZodString;
493
+ detail: z.ZodOptional<z.ZodString>;
494
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ status: string;
497
+ title: string;
498
+ detail?: string | undefined;
499
+ meta?: Record<string, unknown> | undefined;
500
+ }, {
501
+ status: string;
502
+ title: string;
503
+ detail?: string | undefined;
504
+ meta?: Record<string, unknown> | undefined;
505
+ }>, "many">;
506
+ }, "strip", z.ZodTypeAny, {
507
+ errors: {
508
+ status: string;
509
+ title: string;
510
+ detail?: string | undefined;
511
+ meta?: Record<string, unknown> | undefined;
512
+ }[];
513
+ }, {
514
+ errors: {
515
+ status: string;
516
+ title: string;
517
+ detail?: string | undefined;
518
+ meta?: Record<string, unknown> | undefined;
519
+ }[];
520
+ }>;
521
+ };
522
+ };
523
+ listStock: {
524
+ pathParams: z.ZodObject<{
525
+ projectId: z.ZodString;
526
+ }, "strip", z.ZodTypeAny, {
527
+ projectId: string;
528
+ }, {
529
+ projectId: string;
530
+ }>;
531
+ summary: "List contractor stock";
532
+ method: "GET";
533
+ path: "/projects/:projectId/contractor/stock";
534
+ responses: {
535
+ 200: z.ZodObject<{
536
+ data: z.ZodArray<z.ZodObject<{
537
+ type: z.ZodLiteral<"contractor-stock-items">;
538
+ id: z.ZodString;
539
+ attributes: z.ZodObject<Omit<{
540
+ id: z.ZodString;
541
+ projectId: z.ZodString;
542
+ companyId: z.ZodString;
543
+ workPackageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
544
+ sku: z.ZodString;
545
+ name: z.ZodString;
546
+ quantity: z.ZodNumber;
547
+ unit: z.ZodString;
548
+ unitCost: z.ZodNumber;
549
+ createdAt: z.ZodString;
550
+ updatedAt: z.ZodString;
551
+ }, "id">, "strip", z.ZodTypeAny, {
552
+ createdAt: string;
553
+ updatedAt: string;
554
+ companyId: string;
555
+ projectId: string;
556
+ name: string;
557
+ unit: string;
558
+ quantity: number;
559
+ sku: string;
560
+ unitCost: number;
561
+ workPackageId?: string | null | undefined;
562
+ }, {
563
+ createdAt: string;
564
+ updatedAt: string;
565
+ companyId: string;
566
+ projectId: string;
567
+ name: string;
568
+ unit: string;
569
+ quantity: number;
570
+ sku: string;
571
+ unitCost: number;
572
+ workPackageId?: string | null | undefined;
573
+ }>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ id: string;
576
+ type: "contractor-stock-items";
577
+ attributes: {
578
+ createdAt: string;
579
+ updatedAt: string;
580
+ companyId: string;
581
+ projectId: string;
582
+ name: string;
583
+ unit: string;
584
+ quantity: number;
585
+ sku: string;
586
+ unitCost: number;
587
+ workPackageId?: string | null | undefined;
588
+ };
589
+ }, {
590
+ id: string;
591
+ type: "contractor-stock-items";
592
+ attributes: {
593
+ createdAt: string;
594
+ updatedAt: string;
595
+ companyId: string;
596
+ projectId: string;
597
+ name: string;
598
+ unit: string;
599
+ quantity: number;
600
+ sku: string;
601
+ unitCost: number;
602
+ workPackageId?: string | null | undefined;
603
+ };
604
+ }>, "many">;
605
+ meta: z.ZodOptional<z.ZodObject<{
606
+ total: z.ZodOptional<z.ZodNumber>;
607
+ page: z.ZodOptional<z.ZodNumber>;
608
+ size: z.ZodOptional<z.ZodNumber>;
609
+ pages: z.ZodOptional<z.ZodNumber>;
610
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
611
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
612
+ }, "strip", z.ZodTypeAny, {
613
+ page?: number | undefined;
614
+ total?: number | undefined;
615
+ size?: number | undefined;
616
+ pages?: number | undefined;
617
+ hasNextPage?: boolean | undefined;
618
+ hasPreviousPage?: boolean | undefined;
619
+ }, {
620
+ page?: number | undefined;
621
+ total?: number | undefined;
622
+ size?: number | undefined;
623
+ pages?: number | undefined;
624
+ hasNextPage?: boolean | undefined;
625
+ hasPreviousPage?: boolean | undefined;
626
+ }>>;
627
+ links: z.ZodOptional<z.ZodObject<{
628
+ self: z.ZodString;
629
+ first: z.ZodOptional<z.ZodString>;
630
+ last: z.ZodOptional<z.ZodString>;
631
+ prev: z.ZodOptional<z.ZodString>;
632
+ next: z.ZodOptional<z.ZodString>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ self: string;
635
+ first?: string | undefined;
636
+ last?: string | undefined;
637
+ prev?: string | undefined;
638
+ next?: string | undefined;
639
+ }, {
640
+ self: string;
641
+ first?: string | undefined;
642
+ last?: string | undefined;
643
+ prev?: string | undefined;
644
+ next?: string | undefined;
645
+ }>>;
646
+ }, "strip", z.ZodTypeAny, {
647
+ data: {
648
+ id: string;
649
+ type: "contractor-stock-items";
650
+ attributes: {
651
+ createdAt: string;
652
+ updatedAt: string;
653
+ companyId: string;
654
+ projectId: string;
655
+ name: string;
656
+ unit: string;
657
+ quantity: number;
658
+ sku: string;
659
+ unitCost: number;
660
+ workPackageId?: string | null | undefined;
661
+ };
662
+ }[];
663
+ meta?: {
664
+ page?: number | undefined;
665
+ total?: number | undefined;
666
+ size?: number | undefined;
667
+ pages?: number | undefined;
668
+ hasNextPage?: boolean | undefined;
669
+ hasPreviousPage?: boolean | undefined;
670
+ } | undefined;
671
+ links?: {
672
+ self: string;
673
+ first?: string | undefined;
674
+ last?: string | undefined;
675
+ prev?: string | undefined;
676
+ next?: string | undefined;
677
+ } | undefined;
678
+ }, {
679
+ data: {
680
+ id: string;
681
+ type: "contractor-stock-items";
682
+ attributes: {
683
+ createdAt: string;
684
+ updatedAt: string;
685
+ companyId: string;
686
+ projectId: string;
687
+ name: string;
688
+ unit: string;
689
+ quantity: number;
690
+ sku: string;
691
+ unitCost: number;
692
+ workPackageId?: string | null | undefined;
693
+ };
694
+ }[];
695
+ meta?: {
696
+ page?: number | undefined;
697
+ total?: number | undefined;
698
+ size?: number | undefined;
699
+ pages?: number | undefined;
700
+ hasNextPage?: boolean | undefined;
701
+ hasPreviousPage?: boolean | undefined;
702
+ } | undefined;
703
+ links?: {
704
+ self: string;
705
+ first?: string | undefined;
706
+ last?: string | undefined;
707
+ prev?: string | undefined;
708
+ next?: string | undefined;
709
+ } | undefined;
710
+ }>;
711
+ 401: z.ZodObject<{
712
+ errors: z.ZodArray<z.ZodObject<{
713
+ status: z.ZodString;
714
+ title: z.ZodString;
715
+ detail: z.ZodOptional<z.ZodString>;
716
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
717
+ }, "strip", z.ZodTypeAny, {
718
+ status: string;
719
+ title: string;
720
+ detail?: string | undefined;
721
+ meta?: Record<string, unknown> | undefined;
722
+ }, {
723
+ status: string;
724
+ title: string;
725
+ detail?: string | undefined;
726
+ meta?: Record<string, unknown> | undefined;
727
+ }>, "many">;
728
+ }, "strip", z.ZodTypeAny, {
729
+ errors: {
730
+ status: string;
731
+ title: string;
732
+ detail?: string | undefined;
733
+ meta?: Record<string, unknown> | undefined;
734
+ }[];
735
+ }, {
736
+ errors: {
737
+ status: string;
738
+ title: string;
739
+ detail?: string | undefined;
740
+ meta?: Record<string, unknown> | undefined;
741
+ }[];
742
+ }>;
743
+ 403: z.ZodObject<{
744
+ errors: z.ZodArray<z.ZodObject<{
745
+ status: z.ZodString;
746
+ title: z.ZodString;
747
+ detail: z.ZodOptional<z.ZodString>;
748
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ status: string;
751
+ title: string;
752
+ detail?: string | undefined;
753
+ meta?: Record<string, unknown> | undefined;
754
+ }, {
755
+ status: string;
756
+ title: string;
757
+ detail?: string | undefined;
758
+ meta?: Record<string, unknown> | undefined;
759
+ }>, "many">;
760
+ }, "strip", z.ZodTypeAny, {
761
+ errors: {
762
+ status: string;
763
+ title: string;
764
+ detail?: string | undefined;
765
+ meta?: Record<string, unknown> | undefined;
766
+ }[];
767
+ }, {
768
+ errors: {
769
+ status: string;
770
+ title: string;
771
+ detail?: string | undefined;
772
+ meta?: Record<string, unknown> | undefined;
773
+ }[];
774
+ }>;
775
+ };
776
+ };
777
+ upsertStock: {
778
+ pathParams: z.ZodObject<{
779
+ projectId: z.ZodString;
780
+ }, "strip", z.ZodTypeAny, {
781
+ projectId: string;
782
+ }, {
783
+ projectId: string;
784
+ }>;
785
+ summary: "Upsert stock item";
786
+ method: "PUT";
787
+ body: z.ZodObject<{
788
+ workPackageId: z.ZodOptional<z.ZodString>;
789
+ sku: z.ZodString;
790
+ name: z.ZodString;
791
+ quantity: z.ZodNumber;
792
+ unit: z.ZodString;
793
+ unitCost: z.ZodNumber;
794
+ }, "strip", z.ZodTypeAny, {
795
+ name: string;
796
+ unit: string;
797
+ quantity: number;
798
+ sku: string;
799
+ unitCost: number;
800
+ workPackageId?: string | undefined;
801
+ }, {
802
+ name: string;
803
+ unit: string;
804
+ quantity: number;
805
+ sku: string;
806
+ unitCost: number;
807
+ workPackageId?: string | undefined;
808
+ }>;
809
+ path: "/projects/:projectId/contractor/stock";
810
+ responses: {
811
+ 200: z.ZodObject<{
812
+ data: z.ZodObject<{
813
+ type: z.ZodLiteral<"contractor-stock-items">;
814
+ id: z.ZodString;
815
+ attributes: z.ZodObject<Omit<{
816
+ id: z.ZodString;
817
+ projectId: z.ZodString;
818
+ companyId: z.ZodString;
819
+ workPackageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
820
+ sku: z.ZodString;
821
+ name: z.ZodString;
822
+ quantity: z.ZodNumber;
823
+ unit: z.ZodString;
824
+ unitCost: z.ZodNumber;
825
+ createdAt: z.ZodString;
826
+ updatedAt: z.ZodString;
827
+ }, "id">, "strip", z.ZodTypeAny, {
828
+ createdAt: string;
829
+ updatedAt: string;
830
+ companyId: string;
831
+ projectId: string;
832
+ name: string;
833
+ unit: string;
834
+ quantity: number;
835
+ sku: string;
836
+ unitCost: number;
837
+ workPackageId?: string | null | undefined;
838
+ }, {
839
+ createdAt: string;
840
+ updatedAt: string;
841
+ companyId: string;
842
+ projectId: string;
843
+ name: string;
844
+ unit: string;
845
+ quantity: number;
846
+ sku: string;
847
+ unitCost: number;
848
+ workPackageId?: string | null | undefined;
849
+ }>;
850
+ }, "strip", z.ZodTypeAny, {
851
+ id: string;
852
+ type: "contractor-stock-items";
853
+ attributes: {
854
+ createdAt: string;
855
+ updatedAt: string;
856
+ companyId: string;
857
+ projectId: string;
858
+ name: string;
859
+ unit: string;
860
+ quantity: number;
861
+ sku: string;
862
+ unitCost: number;
863
+ workPackageId?: string | null | undefined;
864
+ };
865
+ }, {
866
+ id: string;
867
+ type: "contractor-stock-items";
868
+ attributes: {
869
+ createdAt: string;
870
+ updatedAt: string;
871
+ companyId: string;
872
+ projectId: string;
873
+ name: string;
874
+ unit: string;
875
+ quantity: number;
876
+ sku: string;
877
+ unitCost: number;
878
+ workPackageId?: string | null | undefined;
879
+ };
880
+ }>;
881
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
882
+ links: z.ZodOptional<z.ZodObject<{
883
+ self: z.ZodString;
884
+ first: z.ZodOptional<z.ZodString>;
885
+ last: z.ZodOptional<z.ZodString>;
886
+ prev: z.ZodOptional<z.ZodString>;
887
+ next: z.ZodOptional<z.ZodString>;
888
+ }, "strip", z.ZodTypeAny, {
889
+ self: string;
890
+ first?: string | undefined;
891
+ last?: string | undefined;
892
+ prev?: string | undefined;
893
+ next?: string | undefined;
894
+ }, {
895
+ self: string;
896
+ first?: string | undefined;
897
+ last?: string | undefined;
898
+ prev?: string | undefined;
899
+ next?: string | undefined;
900
+ }>>;
901
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
902
+ status: z.ZodString;
903
+ title: z.ZodString;
904
+ detail: z.ZodOptional<z.ZodString>;
905
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
906
+ }, "strip", z.ZodTypeAny, {
907
+ status: string;
908
+ title: string;
909
+ detail?: string | undefined;
910
+ meta?: Record<string, unknown> | undefined;
911
+ }, {
912
+ status: string;
913
+ title: string;
914
+ detail?: string | undefined;
915
+ meta?: Record<string, unknown> | undefined;
916
+ }>, "many">>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ data: {
919
+ id: string;
920
+ type: "contractor-stock-items";
921
+ attributes: {
922
+ createdAt: string;
923
+ updatedAt: string;
924
+ companyId: string;
925
+ projectId: string;
926
+ name: string;
927
+ unit: string;
928
+ quantity: number;
929
+ sku: string;
930
+ unitCost: number;
931
+ workPackageId?: string | null | undefined;
932
+ };
933
+ };
934
+ meta?: Record<string, unknown> | undefined;
935
+ links?: {
936
+ self: string;
937
+ first?: string | undefined;
938
+ last?: string | undefined;
939
+ prev?: string | undefined;
940
+ next?: string | undefined;
941
+ } | undefined;
942
+ errors?: {
943
+ status: string;
944
+ title: string;
945
+ detail?: string | undefined;
946
+ meta?: Record<string, unknown> | undefined;
947
+ }[] | undefined;
948
+ }, {
949
+ data: {
950
+ id: string;
951
+ type: "contractor-stock-items";
952
+ attributes: {
953
+ createdAt: string;
954
+ updatedAt: string;
955
+ companyId: string;
956
+ projectId: string;
957
+ name: string;
958
+ unit: string;
959
+ quantity: number;
960
+ sku: string;
961
+ unitCost: number;
962
+ workPackageId?: string | null | undefined;
963
+ };
964
+ };
965
+ meta?: Record<string, unknown> | undefined;
966
+ links?: {
967
+ self: string;
968
+ first?: string | undefined;
969
+ last?: string | undefined;
970
+ prev?: string | undefined;
971
+ next?: string | undefined;
972
+ } | undefined;
973
+ errors?: {
974
+ status: string;
975
+ title: string;
976
+ detail?: string | undefined;
977
+ meta?: Record<string, unknown> | undefined;
978
+ }[] | undefined;
979
+ }>;
980
+ 401: z.ZodObject<{
981
+ errors: z.ZodArray<z.ZodObject<{
982
+ status: z.ZodString;
983
+ title: z.ZodString;
984
+ detail: z.ZodOptional<z.ZodString>;
985
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ status: string;
988
+ title: string;
989
+ detail?: string | undefined;
990
+ meta?: Record<string, unknown> | undefined;
991
+ }, {
992
+ status: string;
993
+ title: string;
994
+ detail?: string | undefined;
995
+ meta?: Record<string, unknown> | undefined;
996
+ }>, "many">;
997
+ }, "strip", z.ZodTypeAny, {
998
+ errors: {
999
+ status: string;
1000
+ title: string;
1001
+ detail?: string | undefined;
1002
+ meta?: Record<string, unknown> | undefined;
1003
+ }[];
1004
+ }, {
1005
+ errors: {
1006
+ status: string;
1007
+ title: string;
1008
+ detail?: string | undefined;
1009
+ meta?: Record<string, unknown> | undefined;
1010
+ }[];
1011
+ }>;
1012
+ 403: z.ZodObject<{
1013
+ errors: z.ZodArray<z.ZodObject<{
1014
+ status: z.ZodString;
1015
+ title: z.ZodString;
1016
+ detail: z.ZodOptional<z.ZodString>;
1017
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ status: string;
1020
+ title: string;
1021
+ detail?: string | undefined;
1022
+ meta?: Record<string, unknown> | undefined;
1023
+ }, {
1024
+ status: string;
1025
+ title: string;
1026
+ detail?: string | undefined;
1027
+ meta?: Record<string, unknown> | undefined;
1028
+ }>, "many">;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ errors: {
1031
+ status: string;
1032
+ title: string;
1033
+ detail?: string | undefined;
1034
+ meta?: Record<string, unknown> | undefined;
1035
+ }[];
1036
+ }, {
1037
+ errors: {
1038
+ status: string;
1039
+ title: string;
1040
+ detail?: string | undefined;
1041
+ meta?: Record<string, unknown> | undefined;
1042
+ }[];
1043
+ }>;
1044
+ };
1045
+ };
1046
+ createPayrollExport: {
1047
+ pathParams: z.ZodObject<{
1048
+ projectId: z.ZodString;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ projectId: string;
1051
+ }, {
1052
+ projectId: string;
1053
+ }>;
1054
+ summary: "Create payroll export snapshot";
1055
+ method: "POST";
1056
+ body: z.ZodObject<{
1057
+ periodStart: z.ZodString;
1058
+ periodEnd: z.ZodString;
1059
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ periodStart: string;
1062
+ periodEnd: string;
1063
+ payload: Record<string, unknown>;
1064
+ }, {
1065
+ periodStart: string;
1066
+ periodEnd: string;
1067
+ payload?: Record<string, unknown> | undefined;
1068
+ }>;
1069
+ path: "/projects/:projectId/contractor/payroll-exports";
1070
+ responses: {
1071
+ 201: z.ZodObject<{
1072
+ data: z.ZodObject<{
1073
+ type: z.ZodLiteral<"contractor-payroll-exports">;
1074
+ id: z.ZodString;
1075
+ attributes: z.ZodObject<Omit<{
1076
+ id: z.ZodString;
1077
+ projectId: z.ZodString;
1078
+ companyId: z.ZodString;
1079
+ periodStart: z.ZodString;
1080
+ periodEnd: z.ZodString;
1081
+ exportUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1082
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1083
+ createdById: z.ZodString;
1084
+ createdAt: z.ZodString;
1085
+ }, "id">, "strip", z.ZodTypeAny, {
1086
+ createdAt: string;
1087
+ companyId: string;
1088
+ projectId: string;
1089
+ createdById: string;
1090
+ periodStart: string;
1091
+ periodEnd: string;
1092
+ payload: Record<string, unknown>;
1093
+ exportUrl?: string | null | undefined;
1094
+ }, {
1095
+ createdAt: string;
1096
+ companyId: string;
1097
+ projectId: string;
1098
+ createdById: string;
1099
+ periodStart: string;
1100
+ periodEnd: string;
1101
+ payload: Record<string, unknown>;
1102
+ exportUrl?: string | null | undefined;
1103
+ }>;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ id: string;
1106
+ type: "contractor-payroll-exports";
1107
+ attributes: {
1108
+ createdAt: string;
1109
+ companyId: string;
1110
+ projectId: string;
1111
+ createdById: string;
1112
+ periodStart: string;
1113
+ periodEnd: string;
1114
+ payload: Record<string, unknown>;
1115
+ exportUrl?: string | null | undefined;
1116
+ };
1117
+ }, {
1118
+ id: string;
1119
+ type: "contractor-payroll-exports";
1120
+ attributes: {
1121
+ createdAt: string;
1122
+ companyId: string;
1123
+ projectId: string;
1124
+ createdById: string;
1125
+ periodStart: string;
1126
+ periodEnd: string;
1127
+ payload: Record<string, unknown>;
1128
+ exportUrl?: string | null | undefined;
1129
+ };
1130
+ }>;
1131
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1132
+ links: z.ZodOptional<z.ZodObject<{
1133
+ self: z.ZodString;
1134
+ first: z.ZodOptional<z.ZodString>;
1135
+ last: z.ZodOptional<z.ZodString>;
1136
+ prev: z.ZodOptional<z.ZodString>;
1137
+ next: z.ZodOptional<z.ZodString>;
1138
+ }, "strip", z.ZodTypeAny, {
1139
+ self: string;
1140
+ first?: string | undefined;
1141
+ last?: string | undefined;
1142
+ prev?: string | undefined;
1143
+ next?: string | undefined;
1144
+ }, {
1145
+ self: string;
1146
+ first?: string | undefined;
1147
+ last?: string | undefined;
1148
+ prev?: string | undefined;
1149
+ next?: string | undefined;
1150
+ }>>;
1151
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1152
+ status: z.ZodString;
1153
+ title: z.ZodString;
1154
+ detail: z.ZodOptional<z.ZodString>;
1155
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ status: string;
1158
+ title: string;
1159
+ detail?: string | undefined;
1160
+ meta?: Record<string, unknown> | undefined;
1161
+ }, {
1162
+ status: string;
1163
+ title: string;
1164
+ detail?: string | undefined;
1165
+ meta?: Record<string, unknown> | undefined;
1166
+ }>, "many">>;
1167
+ }, "strip", z.ZodTypeAny, {
1168
+ data: {
1169
+ id: string;
1170
+ type: "contractor-payroll-exports";
1171
+ attributes: {
1172
+ createdAt: string;
1173
+ companyId: string;
1174
+ projectId: string;
1175
+ createdById: string;
1176
+ periodStart: string;
1177
+ periodEnd: string;
1178
+ payload: Record<string, unknown>;
1179
+ exportUrl?: string | null | undefined;
1180
+ };
1181
+ };
1182
+ meta?: Record<string, unknown> | undefined;
1183
+ links?: {
1184
+ self: string;
1185
+ first?: string | undefined;
1186
+ last?: string | undefined;
1187
+ prev?: string | undefined;
1188
+ next?: string | undefined;
1189
+ } | undefined;
1190
+ errors?: {
1191
+ status: string;
1192
+ title: string;
1193
+ detail?: string | undefined;
1194
+ meta?: Record<string, unknown> | undefined;
1195
+ }[] | undefined;
1196
+ }, {
1197
+ data: {
1198
+ id: string;
1199
+ type: "contractor-payroll-exports";
1200
+ attributes: {
1201
+ createdAt: string;
1202
+ companyId: string;
1203
+ projectId: string;
1204
+ createdById: string;
1205
+ periodStart: string;
1206
+ periodEnd: string;
1207
+ payload: Record<string, unknown>;
1208
+ exportUrl?: string | null | undefined;
1209
+ };
1210
+ };
1211
+ meta?: Record<string, unknown> | undefined;
1212
+ links?: {
1213
+ self: string;
1214
+ first?: string | undefined;
1215
+ last?: string | undefined;
1216
+ prev?: string | undefined;
1217
+ next?: string | undefined;
1218
+ } | undefined;
1219
+ errors?: {
1220
+ status: string;
1221
+ title: string;
1222
+ detail?: string | undefined;
1223
+ meta?: Record<string, unknown> | undefined;
1224
+ }[] | undefined;
1225
+ }>;
1226
+ 401: z.ZodObject<{
1227
+ errors: z.ZodArray<z.ZodObject<{
1228
+ status: z.ZodString;
1229
+ title: z.ZodString;
1230
+ detail: z.ZodOptional<z.ZodString>;
1231
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1232
+ }, "strip", z.ZodTypeAny, {
1233
+ status: string;
1234
+ title: string;
1235
+ detail?: string | undefined;
1236
+ meta?: Record<string, unknown> | undefined;
1237
+ }, {
1238
+ status: string;
1239
+ title: string;
1240
+ detail?: string | undefined;
1241
+ meta?: Record<string, unknown> | undefined;
1242
+ }>, "many">;
1243
+ }, "strip", z.ZodTypeAny, {
1244
+ errors: {
1245
+ status: string;
1246
+ title: string;
1247
+ detail?: string | undefined;
1248
+ meta?: Record<string, unknown> | undefined;
1249
+ }[];
1250
+ }, {
1251
+ errors: {
1252
+ status: string;
1253
+ title: string;
1254
+ detail?: string | undefined;
1255
+ meta?: Record<string, unknown> | undefined;
1256
+ }[];
1257
+ }>;
1258
+ 403: z.ZodObject<{
1259
+ errors: z.ZodArray<z.ZodObject<{
1260
+ status: z.ZodString;
1261
+ title: z.ZodString;
1262
+ detail: z.ZodOptional<z.ZodString>;
1263
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ status: string;
1266
+ title: string;
1267
+ detail?: string | undefined;
1268
+ meta?: Record<string, unknown> | undefined;
1269
+ }, {
1270
+ status: string;
1271
+ title: string;
1272
+ detail?: string | undefined;
1273
+ meta?: Record<string, unknown> | undefined;
1274
+ }>, "many">;
1275
+ }, "strip", z.ZodTypeAny, {
1276
+ errors: {
1277
+ status: string;
1278
+ title: string;
1279
+ detail?: string | undefined;
1280
+ meta?: Record<string, unknown> | undefined;
1281
+ }[];
1282
+ }, {
1283
+ errors: {
1284
+ status: string;
1285
+ title: string;
1286
+ detail?: string | undefined;
1287
+ meta?: Record<string, unknown> | undefined;
1288
+ }[];
1289
+ }>;
1290
+ };
1291
+ };
1292
+ };
1293
+ //# sourceMappingURL=contractor-ledger.d.ts.map