@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,841 @@
1
+ import { z } from 'zod';
2
+ export declare const specEqualContract: {
3
+ list: {
4
+ pathParams: z.ZodObject<{
5
+ projectId: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ projectId: string;
8
+ }, {
9
+ projectId: string;
10
+ }>;
11
+ summary: "List spec equal / substitution requests";
12
+ method: "GET";
13
+ path: "/projects/:projectId/spec-equals";
14
+ responses: {
15
+ 200: z.ZodObject<{
16
+ data: z.ZodArray<z.ZodObject<{
17
+ type: z.ZodLiteral<"spec-equal-requests">;
18
+ id: z.ZodString;
19
+ attributes: z.ZodObject<Omit<{
20
+ id: z.ZodString;
21
+ projectId: z.ZodString;
22
+ companyId: z.ZodString;
23
+ specificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ proposedProduct: z.ZodString;
25
+ manufacturer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ justification: z.ZodString;
27
+ status: z.ZodEnum<["REQUESTED", "UNDER_REVIEW", "APPROVED", "REJECTED"]>;
28
+ decisionNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ decidedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ decidedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ createdById: z.ZodString;
32
+ createdAt: z.ZodString;
33
+ updatedAt: z.ZodString;
34
+ }, "id">, "strip", z.ZodTypeAny, {
35
+ createdAt: string;
36
+ updatedAt: string;
37
+ companyId: string;
38
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
39
+ projectId: string;
40
+ createdById: string;
41
+ proposedProduct: string;
42
+ justification: string;
43
+ manufacturer?: string | null | undefined;
44
+ specificationId?: string | null | undefined;
45
+ decisionNotes?: string | null | undefined;
46
+ decidedById?: string | null | undefined;
47
+ decidedAt?: string | null | undefined;
48
+ }, {
49
+ createdAt: string;
50
+ updatedAt: string;
51
+ companyId: string;
52
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
53
+ projectId: string;
54
+ createdById: string;
55
+ proposedProduct: string;
56
+ justification: string;
57
+ manufacturer?: string | null | undefined;
58
+ specificationId?: string | null | undefined;
59
+ decisionNotes?: string | null | undefined;
60
+ decidedById?: string | null | undefined;
61
+ decidedAt?: string | null | undefined;
62
+ }>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ id: string;
65
+ type: "spec-equal-requests";
66
+ attributes: {
67
+ createdAt: string;
68
+ updatedAt: string;
69
+ companyId: string;
70
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
71
+ projectId: string;
72
+ createdById: string;
73
+ proposedProduct: string;
74
+ justification: string;
75
+ manufacturer?: string | null | undefined;
76
+ specificationId?: string | null | undefined;
77
+ decisionNotes?: string | null | undefined;
78
+ decidedById?: string | null | undefined;
79
+ decidedAt?: string | null | undefined;
80
+ };
81
+ }, {
82
+ id: string;
83
+ type: "spec-equal-requests";
84
+ attributes: {
85
+ createdAt: string;
86
+ updatedAt: string;
87
+ companyId: string;
88
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
89
+ projectId: string;
90
+ createdById: string;
91
+ proposedProduct: string;
92
+ justification: string;
93
+ manufacturer?: string | null | undefined;
94
+ specificationId?: string | null | undefined;
95
+ decisionNotes?: string | null | undefined;
96
+ decidedById?: string | null | undefined;
97
+ decidedAt?: string | null | undefined;
98
+ };
99
+ }>, "many">;
100
+ meta: z.ZodOptional<z.ZodObject<{
101
+ total: z.ZodOptional<z.ZodNumber>;
102
+ page: z.ZodOptional<z.ZodNumber>;
103
+ size: z.ZodOptional<z.ZodNumber>;
104
+ pages: z.ZodOptional<z.ZodNumber>;
105
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
106
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ page?: number | undefined;
109
+ total?: number | undefined;
110
+ size?: number | undefined;
111
+ pages?: number | undefined;
112
+ hasNextPage?: boolean | undefined;
113
+ hasPreviousPage?: boolean | undefined;
114
+ }, {
115
+ page?: number | undefined;
116
+ total?: number | undefined;
117
+ size?: number | undefined;
118
+ pages?: number | undefined;
119
+ hasNextPage?: boolean | undefined;
120
+ hasPreviousPage?: boolean | undefined;
121
+ }>>;
122
+ links: z.ZodOptional<z.ZodObject<{
123
+ self: z.ZodString;
124
+ first: z.ZodOptional<z.ZodString>;
125
+ last: z.ZodOptional<z.ZodString>;
126
+ prev: z.ZodOptional<z.ZodString>;
127
+ next: z.ZodOptional<z.ZodString>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ self: string;
130
+ first?: string | undefined;
131
+ last?: string | undefined;
132
+ prev?: string | undefined;
133
+ next?: string | undefined;
134
+ }, {
135
+ self: string;
136
+ first?: string | undefined;
137
+ last?: string | undefined;
138
+ prev?: string | undefined;
139
+ next?: string | undefined;
140
+ }>>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ data: {
143
+ id: string;
144
+ type: "spec-equal-requests";
145
+ attributes: {
146
+ createdAt: string;
147
+ updatedAt: string;
148
+ companyId: string;
149
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
150
+ projectId: string;
151
+ createdById: string;
152
+ proposedProduct: string;
153
+ justification: string;
154
+ manufacturer?: string | null | undefined;
155
+ specificationId?: string | null | undefined;
156
+ decisionNotes?: string | null | undefined;
157
+ decidedById?: string | null | undefined;
158
+ decidedAt?: string | null | undefined;
159
+ };
160
+ }[];
161
+ meta?: {
162
+ page?: number | undefined;
163
+ total?: number | undefined;
164
+ size?: number | undefined;
165
+ pages?: number | undefined;
166
+ hasNextPage?: boolean | undefined;
167
+ hasPreviousPage?: boolean | undefined;
168
+ } | undefined;
169
+ links?: {
170
+ self: string;
171
+ first?: string | undefined;
172
+ last?: string | undefined;
173
+ prev?: string | undefined;
174
+ next?: string | undefined;
175
+ } | undefined;
176
+ }, {
177
+ data: {
178
+ id: string;
179
+ type: "spec-equal-requests";
180
+ attributes: {
181
+ createdAt: string;
182
+ updatedAt: string;
183
+ companyId: string;
184
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
185
+ projectId: string;
186
+ createdById: string;
187
+ proposedProduct: string;
188
+ justification: string;
189
+ manufacturer?: string | null | undefined;
190
+ specificationId?: string | null | undefined;
191
+ decisionNotes?: string | null | undefined;
192
+ decidedById?: string | null | undefined;
193
+ decidedAt?: string | null | undefined;
194
+ };
195
+ }[];
196
+ meta?: {
197
+ page?: number | undefined;
198
+ total?: number | undefined;
199
+ size?: number | undefined;
200
+ pages?: number | undefined;
201
+ hasNextPage?: boolean | undefined;
202
+ hasPreviousPage?: boolean | undefined;
203
+ } | undefined;
204
+ links?: {
205
+ self: string;
206
+ first?: string | undefined;
207
+ last?: string | undefined;
208
+ prev?: string | undefined;
209
+ next?: string | undefined;
210
+ } | undefined;
211
+ }>;
212
+ 401: z.ZodObject<{
213
+ errors: z.ZodArray<z.ZodObject<{
214
+ status: z.ZodString;
215
+ title: z.ZodString;
216
+ detail: z.ZodOptional<z.ZodString>;
217
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ status: string;
220
+ title: string;
221
+ detail?: string | undefined;
222
+ meta?: Record<string, unknown> | undefined;
223
+ }, {
224
+ status: string;
225
+ title: string;
226
+ detail?: string | undefined;
227
+ meta?: Record<string, unknown> | undefined;
228
+ }>, "many">;
229
+ }, "strip", z.ZodTypeAny, {
230
+ errors: {
231
+ status: string;
232
+ title: string;
233
+ detail?: string | undefined;
234
+ meta?: Record<string, unknown> | undefined;
235
+ }[];
236
+ }, {
237
+ errors: {
238
+ status: string;
239
+ title: string;
240
+ detail?: string | undefined;
241
+ meta?: Record<string, unknown> | undefined;
242
+ }[];
243
+ }>;
244
+ 403: z.ZodObject<{
245
+ errors: z.ZodArray<z.ZodObject<{
246
+ status: z.ZodString;
247
+ title: z.ZodString;
248
+ detail: z.ZodOptional<z.ZodString>;
249
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ status: string;
252
+ title: string;
253
+ detail?: string | undefined;
254
+ meta?: Record<string, unknown> | undefined;
255
+ }, {
256
+ status: string;
257
+ title: string;
258
+ detail?: string | undefined;
259
+ meta?: Record<string, unknown> | undefined;
260
+ }>, "many">;
261
+ }, "strip", z.ZodTypeAny, {
262
+ errors: {
263
+ status: string;
264
+ title: string;
265
+ detail?: string | undefined;
266
+ meta?: Record<string, unknown> | undefined;
267
+ }[];
268
+ }, {
269
+ errors: {
270
+ status: string;
271
+ title: string;
272
+ detail?: string | undefined;
273
+ meta?: Record<string, unknown> | undefined;
274
+ }[];
275
+ }>;
276
+ };
277
+ };
278
+ create: {
279
+ pathParams: z.ZodObject<{
280
+ projectId: z.ZodString;
281
+ }, "strip", z.ZodTypeAny, {
282
+ projectId: string;
283
+ }, {
284
+ projectId: string;
285
+ }>;
286
+ summary: "Create a spec equal request";
287
+ method: "POST";
288
+ body: z.ZodObject<{
289
+ specificationId: z.ZodOptional<z.ZodString>;
290
+ proposedProduct: z.ZodString;
291
+ manufacturer: z.ZodOptional<z.ZodString>;
292
+ justification: z.ZodString;
293
+ }, "strip", z.ZodTypeAny, {
294
+ proposedProduct: string;
295
+ justification: string;
296
+ manufacturer?: string | undefined;
297
+ specificationId?: string | undefined;
298
+ }, {
299
+ proposedProduct: string;
300
+ justification: string;
301
+ manufacturer?: string | undefined;
302
+ specificationId?: string | undefined;
303
+ }>;
304
+ path: "/projects/:projectId/spec-equals";
305
+ responses: {
306
+ 201: z.ZodObject<{
307
+ data: z.ZodObject<{
308
+ type: z.ZodLiteral<"spec-equal-requests">;
309
+ id: z.ZodString;
310
+ attributes: z.ZodObject<Omit<{
311
+ id: z.ZodString;
312
+ projectId: z.ZodString;
313
+ companyId: z.ZodString;
314
+ specificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
+ proposedProduct: z.ZodString;
316
+ manufacturer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
+ justification: z.ZodString;
318
+ status: z.ZodEnum<["REQUESTED", "UNDER_REVIEW", "APPROVED", "REJECTED"]>;
319
+ decisionNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
+ decidedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
321
+ decidedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
+ createdById: z.ZodString;
323
+ createdAt: z.ZodString;
324
+ updatedAt: z.ZodString;
325
+ }, "id">, "strip", z.ZodTypeAny, {
326
+ createdAt: string;
327
+ updatedAt: string;
328
+ companyId: string;
329
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
330
+ projectId: string;
331
+ createdById: string;
332
+ proposedProduct: string;
333
+ justification: string;
334
+ manufacturer?: string | null | undefined;
335
+ specificationId?: string | null | undefined;
336
+ decisionNotes?: string | null | undefined;
337
+ decidedById?: string | null | undefined;
338
+ decidedAt?: string | null | undefined;
339
+ }, {
340
+ createdAt: string;
341
+ updatedAt: string;
342
+ companyId: string;
343
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
344
+ projectId: string;
345
+ createdById: string;
346
+ proposedProduct: string;
347
+ justification: string;
348
+ manufacturer?: string | null | undefined;
349
+ specificationId?: string | null | undefined;
350
+ decisionNotes?: string | null | undefined;
351
+ decidedById?: string | null | undefined;
352
+ decidedAt?: string | null | undefined;
353
+ }>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ id: string;
356
+ type: "spec-equal-requests";
357
+ attributes: {
358
+ createdAt: string;
359
+ updatedAt: string;
360
+ companyId: string;
361
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
362
+ projectId: string;
363
+ createdById: string;
364
+ proposedProduct: string;
365
+ justification: string;
366
+ manufacturer?: string | null | undefined;
367
+ specificationId?: string | null | undefined;
368
+ decisionNotes?: string | null | undefined;
369
+ decidedById?: string | null | undefined;
370
+ decidedAt?: string | null | undefined;
371
+ };
372
+ }, {
373
+ id: string;
374
+ type: "spec-equal-requests";
375
+ attributes: {
376
+ createdAt: string;
377
+ updatedAt: string;
378
+ companyId: string;
379
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
380
+ projectId: string;
381
+ createdById: string;
382
+ proposedProduct: string;
383
+ justification: string;
384
+ manufacturer?: string | null | undefined;
385
+ specificationId?: string | null | undefined;
386
+ decisionNotes?: string | null | undefined;
387
+ decidedById?: string | null | undefined;
388
+ decidedAt?: string | null | undefined;
389
+ };
390
+ }>;
391
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
392
+ links: z.ZodOptional<z.ZodObject<{
393
+ self: z.ZodString;
394
+ first: z.ZodOptional<z.ZodString>;
395
+ last: z.ZodOptional<z.ZodString>;
396
+ prev: z.ZodOptional<z.ZodString>;
397
+ next: z.ZodOptional<z.ZodString>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ self: string;
400
+ first?: string | undefined;
401
+ last?: string | undefined;
402
+ prev?: string | undefined;
403
+ next?: string | undefined;
404
+ }, {
405
+ self: string;
406
+ first?: string | undefined;
407
+ last?: string | undefined;
408
+ prev?: string | undefined;
409
+ next?: string | undefined;
410
+ }>>;
411
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
412
+ status: z.ZodString;
413
+ title: z.ZodString;
414
+ detail: z.ZodOptional<z.ZodString>;
415
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ status: string;
418
+ title: string;
419
+ detail?: string | undefined;
420
+ meta?: Record<string, unknown> | undefined;
421
+ }, {
422
+ status: string;
423
+ title: string;
424
+ detail?: string | undefined;
425
+ meta?: Record<string, unknown> | undefined;
426
+ }>, "many">>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ data: {
429
+ id: string;
430
+ type: "spec-equal-requests";
431
+ attributes: {
432
+ createdAt: string;
433
+ updatedAt: string;
434
+ companyId: string;
435
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
436
+ projectId: string;
437
+ createdById: string;
438
+ proposedProduct: string;
439
+ justification: string;
440
+ manufacturer?: string | null | undefined;
441
+ specificationId?: string | null | undefined;
442
+ decisionNotes?: string | null | undefined;
443
+ decidedById?: string | null | undefined;
444
+ decidedAt?: string | null | undefined;
445
+ };
446
+ };
447
+ meta?: Record<string, unknown> | undefined;
448
+ links?: {
449
+ self: string;
450
+ first?: string | undefined;
451
+ last?: string | undefined;
452
+ prev?: string | undefined;
453
+ next?: string | undefined;
454
+ } | undefined;
455
+ errors?: {
456
+ status: string;
457
+ title: string;
458
+ detail?: string | undefined;
459
+ meta?: Record<string, unknown> | undefined;
460
+ }[] | undefined;
461
+ }, {
462
+ data: {
463
+ id: string;
464
+ type: "spec-equal-requests";
465
+ attributes: {
466
+ createdAt: string;
467
+ updatedAt: string;
468
+ companyId: string;
469
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
470
+ projectId: string;
471
+ createdById: string;
472
+ proposedProduct: string;
473
+ justification: string;
474
+ manufacturer?: string | null | undefined;
475
+ specificationId?: string | null | undefined;
476
+ decisionNotes?: string | null | undefined;
477
+ decidedById?: string | null | undefined;
478
+ decidedAt?: string | null | undefined;
479
+ };
480
+ };
481
+ meta?: Record<string, unknown> | undefined;
482
+ links?: {
483
+ self: string;
484
+ first?: string | undefined;
485
+ last?: string | undefined;
486
+ prev?: string | undefined;
487
+ next?: string | undefined;
488
+ } | undefined;
489
+ errors?: {
490
+ status: string;
491
+ title: string;
492
+ detail?: string | undefined;
493
+ meta?: Record<string, unknown> | undefined;
494
+ }[] | undefined;
495
+ }>;
496
+ 401: z.ZodObject<{
497
+ errors: z.ZodArray<z.ZodObject<{
498
+ status: z.ZodString;
499
+ title: z.ZodString;
500
+ detail: z.ZodOptional<z.ZodString>;
501
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ status: string;
504
+ title: string;
505
+ detail?: string | undefined;
506
+ meta?: Record<string, unknown> | undefined;
507
+ }, {
508
+ status: string;
509
+ title: string;
510
+ detail?: string | undefined;
511
+ meta?: Record<string, unknown> | undefined;
512
+ }>, "many">;
513
+ }, "strip", z.ZodTypeAny, {
514
+ errors: {
515
+ status: string;
516
+ title: string;
517
+ detail?: string | undefined;
518
+ meta?: Record<string, unknown> | undefined;
519
+ }[];
520
+ }, {
521
+ errors: {
522
+ status: string;
523
+ title: string;
524
+ detail?: string | undefined;
525
+ meta?: Record<string, unknown> | undefined;
526
+ }[];
527
+ }>;
528
+ 403: z.ZodObject<{
529
+ errors: z.ZodArray<z.ZodObject<{
530
+ status: z.ZodString;
531
+ title: z.ZodString;
532
+ detail: z.ZodOptional<z.ZodString>;
533
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
534
+ }, "strip", z.ZodTypeAny, {
535
+ status: string;
536
+ title: string;
537
+ detail?: string | undefined;
538
+ meta?: Record<string, unknown> | undefined;
539
+ }, {
540
+ status: string;
541
+ title: string;
542
+ detail?: string | undefined;
543
+ meta?: Record<string, unknown> | undefined;
544
+ }>, "many">;
545
+ }, "strip", z.ZodTypeAny, {
546
+ errors: {
547
+ status: string;
548
+ title: string;
549
+ detail?: string | undefined;
550
+ meta?: Record<string, unknown> | undefined;
551
+ }[];
552
+ }, {
553
+ errors: {
554
+ status: string;
555
+ title: string;
556
+ detail?: string | undefined;
557
+ meta?: Record<string, unknown> | undefined;
558
+ }[];
559
+ }>;
560
+ };
561
+ };
562
+ decide: {
563
+ pathParams: z.ZodObject<{
564
+ requestId: z.ZodString;
565
+ }, "strip", z.ZodTypeAny, {
566
+ requestId: string;
567
+ }, {
568
+ requestId: string;
569
+ }>;
570
+ summary: "Approve or reject a spec equal request";
571
+ method: "PATCH";
572
+ body: z.ZodObject<{
573
+ status: z.ZodEnum<["APPROVED", "REJECTED"]>;
574
+ decisionNotes: z.ZodOptional<z.ZodString>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ status: "APPROVED" | "REJECTED";
577
+ decisionNotes?: string | undefined;
578
+ }, {
579
+ status: "APPROVED" | "REJECTED";
580
+ decisionNotes?: string | undefined;
581
+ }>;
582
+ path: "/spec-equals/:requestId/decide";
583
+ responses: {
584
+ 200: z.ZodObject<{
585
+ data: z.ZodObject<{
586
+ type: z.ZodLiteral<"spec-equal-requests">;
587
+ id: z.ZodString;
588
+ attributes: z.ZodObject<Omit<{
589
+ id: z.ZodString;
590
+ projectId: z.ZodString;
591
+ companyId: z.ZodString;
592
+ specificationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
+ proposedProduct: z.ZodString;
594
+ manufacturer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
595
+ justification: z.ZodString;
596
+ status: z.ZodEnum<["REQUESTED", "UNDER_REVIEW", "APPROVED", "REJECTED"]>;
597
+ decisionNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
+ decidedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
599
+ decidedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
600
+ createdById: z.ZodString;
601
+ createdAt: z.ZodString;
602
+ updatedAt: z.ZodString;
603
+ }, "id">, "strip", z.ZodTypeAny, {
604
+ createdAt: string;
605
+ updatedAt: string;
606
+ companyId: string;
607
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
608
+ projectId: string;
609
+ createdById: string;
610
+ proposedProduct: string;
611
+ justification: string;
612
+ manufacturer?: string | null | undefined;
613
+ specificationId?: string | null | undefined;
614
+ decisionNotes?: string | null | undefined;
615
+ decidedById?: string | null | undefined;
616
+ decidedAt?: string | null | undefined;
617
+ }, {
618
+ createdAt: string;
619
+ updatedAt: string;
620
+ companyId: string;
621
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
622
+ projectId: string;
623
+ createdById: string;
624
+ proposedProduct: string;
625
+ justification: string;
626
+ manufacturer?: string | null | undefined;
627
+ specificationId?: string | null | undefined;
628
+ decisionNotes?: string | null | undefined;
629
+ decidedById?: string | null | undefined;
630
+ decidedAt?: string | null | undefined;
631
+ }>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ id: string;
634
+ type: "spec-equal-requests";
635
+ attributes: {
636
+ createdAt: string;
637
+ updatedAt: string;
638
+ companyId: string;
639
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
640
+ projectId: string;
641
+ createdById: string;
642
+ proposedProduct: string;
643
+ justification: string;
644
+ manufacturer?: string | null | undefined;
645
+ specificationId?: string | null | undefined;
646
+ decisionNotes?: string | null | undefined;
647
+ decidedById?: string | null | undefined;
648
+ decidedAt?: string | null | undefined;
649
+ };
650
+ }, {
651
+ id: string;
652
+ type: "spec-equal-requests";
653
+ attributes: {
654
+ createdAt: string;
655
+ updatedAt: string;
656
+ companyId: string;
657
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
658
+ projectId: string;
659
+ createdById: string;
660
+ proposedProduct: string;
661
+ justification: string;
662
+ manufacturer?: string | null | undefined;
663
+ specificationId?: string | null | undefined;
664
+ decisionNotes?: string | null | undefined;
665
+ decidedById?: string | null | undefined;
666
+ decidedAt?: string | null | undefined;
667
+ };
668
+ }>;
669
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
670
+ links: z.ZodOptional<z.ZodObject<{
671
+ self: z.ZodString;
672
+ first: z.ZodOptional<z.ZodString>;
673
+ last: z.ZodOptional<z.ZodString>;
674
+ prev: z.ZodOptional<z.ZodString>;
675
+ next: z.ZodOptional<z.ZodString>;
676
+ }, "strip", z.ZodTypeAny, {
677
+ self: string;
678
+ first?: string | undefined;
679
+ last?: string | undefined;
680
+ prev?: string | undefined;
681
+ next?: string | undefined;
682
+ }, {
683
+ self: string;
684
+ first?: string | undefined;
685
+ last?: string | undefined;
686
+ prev?: string | undefined;
687
+ next?: string | undefined;
688
+ }>>;
689
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
690
+ status: z.ZodString;
691
+ title: z.ZodString;
692
+ detail: z.ZodOptional<z.ZodString>;
693
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ status: string;
696
+ title: string;
697
+ detail?: string | undefined;
698
+ meta?: Record<string, unknown> | undefined;
699
+ }, {
700
+ status: string;
701
+ title: string;
702
+ detail?: string | undefined;
703
+ meta?: Record<string, unknown> | undefined;
704
+ }>, "many">>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ data: {
707
+ id: string;
708
+ type: "spec-equal-requests";
709
+ attributes: {
710
+ createdAt: string;
711
+ updatedAt: string;
712
+ companyId: string;
713
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
714
+ projectId: string;
715
+ createdById: string;
716
+ proposedProduct: string;
717
+ justification: string;
718
+ manufacturer?: string | null | undefined;
719
+ specificationId?: string | null | undefined;
720
+ decisionNotes?: string | null | undefined;
721
+ decidedById?: string | null | undefined;
722
+ decidedAt?: string | null | undefined;
723
+ };
724
+ };
725
+ meta?: Record<string, unknown> | undefined;
726
+ links?: {
727
+ self: string;
728
+ first?: string | undefined;
729
+ last?: string | undefined;
730
+ prev?: string | undefined;
731
+ next?: string | undefined;
732
+ } | undefined;
733
+ errors?: {
734
+ status: string;
735
+ title: string;
736
+ detail?: string | undefined;
737
+ meta?: Record<string, unknown> | undefined;
738
+ }[] | undefined;
739
+ }, {
740
+ data: {
741
+ id: string;
742
+ type: "spec-equal-requests";
743
+ attributes: {
744
+ createdAt: string;
745
+ updatedAt: string;
746
+ companyId: string;
747
+ status: "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "REQUESTED";
748
+ projectId: string;
749
+ createdById: string;
750
+ proposedProduct: string;
751
+ justification: string;
752
+ manufacturer?: string | null | undefined;
753
+ specificationId?: string | null | undefined;
754
+ decisionNotes?: string | null | undefined;
755
+ decidedById?: string | null | undefined;
756
+ decidedAt?: string | null | undefined;
757
+ };
758
+ };
759
+ meta?: Record<string, unknown> | undefined;
760
+ links?: {
761
+ self: string;
762
+ first?: string | undefined;
763
+ last?: string | undefined;
764
+ prev?: string | undefined;
765
+ next?: string | undefined;
766
+ } | undefined;
767
+ errors?: {
768
+ status: string;
769
+ title: string;
770
+ detail?: string | undefined;
771
+ meta?: Record<string, unknown> | undefined;
772
+ }[] | undefined;
773
+ }>;
774
+ 401: z.ZodObject<{
775
+ errors: z.ZodArray<z.ZodObject<{
776
+ status: z.ZodString;
777
+ title: z.ZodString;
778
+ detail: z.ZodOptional<z.ZodString>;
779
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
780
+ }, "strip", z.ZodTypeAny, {
781
+ status: string;
782
+ title: string;
783
+ detail?: string | undefined;
784
+ meta?: Record<string, unknown> | undefined;
785
+ }, {
786
+ status: string;
787
+ title: string;
788
+ detail?: string | undefined;
789
+ meta?: Record<string, unknown> | undefined;
790
+ }>, "many">;
791
+ }, "strip", z.ZodTypeAny, {
792
+ errors: {
793
+ status: string;
794
+ title: string;
795
+ detail?: string | undefined;
796
+ meta?: Record<string, unknown> | undefined;
797
+ }[];
798
+ }, {
799
+ errors: {
800
+ status: string;
801
+ title: string;
802
+ detail?: string | undefined;
803
+ meta?: Record<string, unknown> | undefined;
804
+ }[];
805
+ }>;
806
+ 403: z.ZodObject<{
807
+ errors: z.ZodArray<z.ZodObject<{
808
+ status: z.ZodString;
809
+ title: z.ZodString;
810
+ detail: z.ZodOptional<z.ZodString>;
811
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ status: string;
814
+ title: string;
815
+ detail?: string | undefined;
816
+ meta?: Record<string, unknown> | undefined;
817
+ }, {
818
+ status: string;
819
+ title: string;
820
+ detail?: string | undefined;
821
+ meta?: Record<string, unknown> | undefined;
822
+ }>, "many">;
823
+ }, "strip", z.ZodTypeAny, {
824
+ errors: {
825
+ status: string;
826
+ title: string;
827
+ detail?: string | undefined;
828
+ meta?: Record<string, unknown> | undefined;
829
+ }[];
830
+ }, {
831
+ errors: {
832
+ status: string;
833
+ title: string;
834
+ detail?: string | undefined;
835
+ meta?: Record<string, unknown> | undefined;
836
+ }[];
837
+ }>;
838
+ };
839
+ };
840
+ };
841
+ //# sourceMappingURL=spec-equal.d.ts.map