@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,1080 @@
1
+ import { z } from 'zod';
2
+ export declare const SafetyIncidentTypeSchema: z.ZodEnum<["INJURY", "NEAR_MISS", "PROPERTY_DAMAGE", "ENVIRONMENTAL", "SECURITY", "EQUIPMENT_FAILURE"]>;
3
+ export declare const SafetyIncidentSeveritySchema: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
4
+ export declare const SafetyIncidentStatusSchema: z.ZodEnum<["REPORTED", "INVESTIGATING", "RESOLVED", "CLOSED"]>;
5
+ export declare const SafetyInspectionTypeSchema: z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>;
6
+ export declare const SafetyInspectionStatusSchema: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>;
7
+ export declare const TrainingRecordStatusSchema: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "EXPIRED", "CANCELLED"]>;
8
+ export declare const SafetyIncidentWitnessSchema: z.ZodObject<{
9
+ name: z.ZodString;
10
+ contact: z.ZodString;
11
+ statement: z.ZodOptional<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ name: string;
14
+ contact: string;
15
+ statement?: string | undefined;
16
+ }, {
17
+ name: string;
18
+ contact: string;
19
+ statement?: string | undefined;
20
+ }>;
21
+ export declare const SafetyIncidentAttachmentSchema: z.ZodObject<{
22
+ id: z.ZodString;
23
+ filename: z.ZodString;
24
+ url: z.ZodString;
25
+ uploadedAt: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ id: string;
28
+ filename: string;
29
+ url: string;
30
+ uploadedAt: string;
31
+ }, {
32
+ id: string;
33
+ filename: string;
34
+ url: string;
35
+ uploadedAt: string;
36
+ }>;
37
+ export declare const SafetyInspectionFindingSchema: z.ZodObject<{
38
+ category: z.ZodString;
39
+ description: z.ZodString;
40
+ severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
41
+ correctionRequired: z.ZodBoolean;
42
+ }, "strip", z.ZodTypeAny, {
43
+ description: string;
44
+ category: string;
45
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
46
+ correctionRequired: boolean;
47
+ }, {
48
+ description: string;
49
+ category: string;
50
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
51
+ correctionRequired: boolean;
52
+ }>;
53
+ export declare const SafetyIncidentSchema: z.ZodObject<{
54
+ id: z.ZodString;
55
+ title: z.ZodString;
56
+ description: z.ZodString;
57
+ type: z.ZodEnum<["INJURY", "NEAR_MISS", "PROPERTY_DAMAGE", "ENVIRONMENTAL", "SECURITY", "EQUIPMENT_FAILURE"]>;
58
+ severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
59
+ status: z.ZodEnum<["REPORTED", "INVESTIGATING", "RESOLVED", "CLOSED"]>;
60
+ location: z.ZodString;
61
+ dateOccurred: z.ZodString;
62
+ reportedBy: z.ZodString;
63
+ reportedAt: z.ZodString;
64
+ projectId: z.ZodString;
65
+ injuryOccurred: z.ZodDefault<z.ZodBoolean>;
66
+ medicalAttentionRequired: z.ZodDefault<z.ZodBoolean>;
67
+ workRelated: z.ZodDefault<z.ZodBoolean>;
68
+ witnessCount: z.ZodDefault<z.ZodNumber>;
69
+ witnesses: z.ZodDefault<z.ZodArray<z.ZodObject<{
70
+ name: z.ZodString;
71
+ contact: z.ZodString;
72
+ statement: z.ZodOptional<z.ZodString>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ name: string;
75
+ contact: string;
76
+ statement?: string | undefined;
77
+ }, {
78
+ name: string;
79
+ contact: string;
80
+ statement?: string | undefined;
81
+ }>, "many">>;
82
+ immediateActions: z.ZodOptional<z.ZodString>;
83
+ rootCause: z.ZodOptional<z.ZodString>;
84
+ correctiveActions: z.ZodOptional<z.ZodString>;
85
+ preventiveActions: z.ZodOptional<z.ZodString>;
86
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
87
+ followUpDate: z.ZodOptional<z.ZodString>;
88
+ assignedTo: z.ZodOptional<z.ZodString>;
89
+ resolvedAt: z.ZodOptional<z.ZodString>;
90
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
91
+ id: z.ZodString;
92
+ filename: z.ZodString;
93
+ url: z.ZodString;
94
+ uploadedAt: z.ZodString;
95
+ }, "strip", z.ZodTypeAny, {
96
+ id: string;
97
+ filename: string;
98
+ url: string;
99
+ uploadedAt: string;
100
+ }, {
101
+ id: string;
102
+ filename: string;
103
+ url: string;
104
+ uploadedAt: string;
105
+ }>, "many">>;
106
+ createdAt: z.ZodString;
107
+ updatedAt: z.ZodString;
108
+ }, "strip", z.ZodTypeAny, {
109
+ id: string;
110
+ createdAt: string;
111
+ updatedAt: string;
112
+ type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
113
+ status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
114
+ title: string;
115
+ projectId: string;
116
+ description: string;
117
+ attachments: {
118
+ id: string;
119
+ filename: string;
120
+ url: string;
121
+ uploadedAt: string;
122
+ }[];
123
+ location: string;
124
+ reportedBy: string;
125
+ reportedAt: string;
126
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
127
+ dateOccurred: string;
128
+ injuryOccurred: boolean;
129
+ medicalAttentionRequired: boolean;
130
+ workRelated: boolean;
131
+ witnessCount: number;
132
+ witnesses: {
133
+ name: string;
134
+ contact: string;
135
+ statement?: string | undefined;
136
+ }[];
137
+ followUpRequired: boolean;
138
+ correctiveActions?: string | undefined;
139
+ resolvedAt?: string | undefined;
140
+ assignedTo?: string | undefined;
141
+ immediateActions?: string | undefined;
142
+ rootCause?: string | undefined;
143
+ preventiveActions?: string | undefined;
144
+ followUpDate?: string | undefined;
145
+ }, {
146
+ id: string;
147
+ createdAt: string;
148
+ updatedAt: string;
149
+ type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
150
+ status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
151
+ title: string;
152
+ projectId: string;
153
+ description: string;
154
+ location: string;
155
+ reportedBy: string;
156
+ reportedAt: string;
157
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
158
+ dateOccurred: string;
159
+ attachments?: {
160
+ id: string;
161
+ filename: string;
162
+ url: string;
163
+ uploadedAt: string;
164
+ }[] | undefined;
165
+ correctiveActions?: string | undefined;
166
+ resolvedAt?: string | undefined;
167
+ assignedTo?: string | undefined;
168
+ injuryOccurred?: boolean | undefined;
169
+ medicalAttentionRequired?: boolean | undefined;
170
+ workRelated?: boolean | undefined;
171
+ witnessCount?: number | undefined;
172
+ witnesses?: {
173
+ name: string;
174
+ contact: string;
175
+ statement?: string | undefined;
176
+ }[] | undefined;
177
+ immediateActions?: string | undefined;
178
+ rootCause?: string | undefined;
179
+ preventiveActions?: string | undefined;
180
+ followUpRequired?: boolean | undefined;
181
+ followUpDate?: string | undefined;
182
+ }>;
183
+ export declare const SafetyInspectionSchema: z.ZodObject<{
184
+ id: z.ZodString;
185
+ projectId: z.ZodString;
186
+ inspectorId: z.ZodString;
187
+ inspectionType: z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>;
188
+ scheduledDate: z.ZodString;
189
+ completedDate: z.ZodOptional<z.ZodString>;
190
+ status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>;
191
+ score: z.ZodOptional<z.ZodNumber>;
192
+ findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
193
+ category: z.ZodString;
194
+ description: z.ZodString;
195
+ severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
196
+ correctionRequired: z.ZodBoolean;
197
+ }, "strip", z.ZodTypeAny, {
198
+ description: string;
199
+ category: string;
200
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
201
+ correctionRequired: boolean;
202
+ }, {
203
+ description: string;
204
+ category: string;
205
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
206
+ correctionRequired: boolean;
207
+ }>, "many">>;
208
+ notes: z.ZodOptional<z.ZodString>;
209
+ attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
210
+ createdAt: z.ZodString;
211
+ updatedAt: z.ZodString;
212
+ }, "strip", z.ZodTypeAny, {
213
+ id: string;
214
+ createdAt: string;
215
+ updatedAt: string;
216
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "SCHEDULED";
217
+ projectId: string;
218
+ attachments: string[];
219
+ inspectorId: string;
220
+ inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
221
+ scheduledDate: string;
222
+ findings: {
223
+ description: string;
224
+ category: string;
225
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
226
+ correctionRequired: boolean;
227
+ }[];
228
+ notes?: string | undefined;
229
+ score?: number | undefined;
230
+ completedDate?: string | undefined;
231
+ }, {
232
+ id: string;
233
+ createdAt: string;
234
+ updatedAt: string;
235
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "SCHEDULED";
236
+ projectId: string;
237
+ inspectorId: string;
238
+ inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
239
+ scheduledDate: string;
240
+ attachments?: string[] | undefined;
241
+ notes?: string | undefined;
242
+ score?: number | undefined;
243
+ completedDate?: string | undefined;
244
+ findings?: {
245
+ description: string;
246
+ category: string;
247
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
248
+ correctionRequired: boolean;
249
+ }[] | undefined;
250
+ }>;
251
+ export declare const TrainingRecordSchema: z.ZodObject<{
252
+ id: z.ZodString;
253
+ userId: z.ZodString;
254
+ trainingType: z.ZodString;
255
+ provider: z.ZodOptional<z.ZodString>;
256
+ completedDate: z.ZodString;
257
+ expirationDate: z.ZodOptional<z.ZodString>;
258
+ certificateNumber: z.ZodOptional<z.ZodString>;
259
+ status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "EXPIRED", "CANCELLED"]>;
260
+ score: z.ZodOptional<z.ZodNumber>;
261
+ notes: z.ZodOptional<z.ZodString>;
262
+ attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
263
+ createdAt: z.ZodString;
264
+ updatedAt: z.ZodString;
265
+ }, "strip", z.ZodTypeAny, {
266
+ id: string;
267
+ createdAt: string;
268
+ updatedAt: string;
269
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "EXPIRED" | "SCHEDULED";
270
+ userId: string;
271
+ attachments: string[];
272
+ completedDate: string;
273
+ trainingType: string;
274
+ notes?: string | undefined;
275
+ provider?: string | undefined;
276
+ expirationDate?: string | undefined;
277
+ score?: number | undefined;
278
+ certificateNumber?: string | undefined;
279
+ }, {
280
+ id: string;
281
+ createdAt: string;
282
+ updatedAt: string;
283
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "EXPIRED" | "SCHEDULED";
284
+ userId: string;
285
+ completedDate: string;
286
+ trainingType: string;
287
+ attachments?: string[] | undefined;
288
+ notes?: string | undefined;
289
+ provider?: string | undefined;
290
+ expirationDate?: string | undefined;
291
+ score?: number | undefined;
292
+ certificateNumber?: string | undefined;
293
+ }>;
294
+ export declare const CreateSafetyIncidentWitnessRequestSchema: z.ZodObject<{
295
+ name: z.ZodString;
296
+ contact: z.ZodString;
297
+ statement: z.ZodOptional<z.ZodString>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ name: string;
300
+ contact: string;
301
+ statement?: string | undefined;
302
+ }, {
303
+ name: string;
304
+ contact: string;
305
+ statement?: string | undefined;
306
+ }>;
307
+ export declare const CreateSafetyIncidentRequestSchema: z.ZodObject<{
308
+ title: z.ZodString;
309
+ description: z.ZodString;
310
+ type: z.ZodEnum<["INJURY", "NEAR_MISS", "PROPERTY_DAMAGE", "ENVIRONMENTAL", "SECURITY", "EQUIPMENT_FAILURE"]>;
311
+ severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
312
+ location: z.ZodString;
313
+ dateOccurred: z.ZodString;
314
+ projectId: z.ZodString;
315
+ injuryOccurred: z.ZodDefault<z.ZodBoolean>;
316
+ medicalAttentionRequired: z.ZodDefault<z.ZodBoolean>;
317
+ workRelated: z.ZodDefault<z.ZodBoolean>;
318
+ witnessCount: z.ZodDefault<z.ZodNumber>;
319
+ witnesses: z.ZodDefault<z.ZodArray<z.ZodObject<{
320
+ name: z.ZodString;
321
+ contact: z.ZodString;
322
+ statement: z.ZodOptional<z.ZodString>;
323
+ }, "strip", z.ZodTypeAny, {
324
+ name: string;
325
+ contact: string;
326
+ statement?: string | undefined;
327
+ }, {
328
+ name: string;
329
+ contact: string;
330
+ statement?: string | undefined;
331
+ }>, "many">>;
332
+ immediateActions: z.ZodOptional<z.ZodString>;
333
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
334
+ followUpDate: z.ZodOptional<z.ZodString>;
335
+ assignedTo: z.ZodOptional<z.ZodString>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
338
+ title: string;
339
+ projectId: string;
340
+ description: string;
341
+ location: string;
342
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
343
+ dateOccurred: string;
344
+ injuryOccurred: boolean;
345
+ medicalAttentionRequired: boolean;
346
+ workRelated: boolean;
347
+ witnessCount: number;
348
+ witnesses: {
349
+ name: string;
350
+ contact: string;
351
+ statement?: string | undefined;
352
+ }[];
353
+ followUpRequired: boolean;
354
+ assignedTo?: string | undefined;
355
+ immediateActions?: string | undefined;
356
+ followUpDate?: string | undefined;
357
+ }, {
358
+ type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
359
+ title: string;
360
+ projectId: string;
361
+ description: string;
362
+ location: string;
363
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
364
+ dateOccurred: string;
365
+ assignedTo?: string | undefined;
366
+ injuryOccurred?: boolean | undefined;
367
+ medicalAttentionRequired?: boolean | undefined;
368
+ workRelated?: boolean | undefined;
369
+ witnessCount?: number | undefined;
370
+ witnesses?: {
371
+ name: string;
372
+ contact: string;
373
+ statement?: string | undefined;
374
+ }[] | undefined;
375
+ immediateActions?: string | undefined;
376
+ followUpRequired?: boolean | undefined;
377
+ followUpDate?: string | undefined;
378
+ }>;
379
+ export declare const UpdateSafetyIncidentRequestSchema: z.ZodObject<{
380
+ title: z.ZodOptional<z.ZodString>;
381
+ description: z.ZodOptional<z.ZodString>;
382
+ type: z.ZodOptional<z.ZodEnum<["INJURY", "NEAR_MISS", "PROPERTY_DAMAGE", "ENVIRONMENTAL", "SECURITY", "EQUIPMENT_FAILURE"]>>;
383
+ severity: z.ZodOptional<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
384
+ status: z.ZodOptional<z.ZodEnum<["REPORTED", "INVESTIGATING", "RESOLVED", "CLOSED"]>>;
385
+ location: z.ZodOptional<z.ZodString>;
386
+ dateOccurred: z.ZodOptional<z.ZodString>;
387
+ injuryOccurred: z.ZodOptional<z.ZodBoolean>;
388
+ medicalAttentionRequired: z.ZodOptional<z.ZodBoolean>;
389
+ workRelated: z.ZodOptional<z.ZodBoolean>;
390
+ witnessCount: z.ZodOptional<z.ZodNumber>;
391
+ witnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
392
+ name: z.ZodString;
393
+ contact: z.ZodString;
394
+ statement: z.ZodOptional<z.ZodString>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ name: string;
397
+ contact: string;
398
+ statement?: string | undefined;
399
+ }, {
400
+ name: string;
401
+ contact: string;
402
+ statement?: string | undefined;
403
+ }>, "many">>;
404
+ immediateActions: z.ZodOptional<z.ZodString>;
405
+ rootCause: z.ZodOptional<z.ZodString>;
406
+ correctiveActions: z.ZodOptional<z.ZodString>;
407
+ preventiveActions: z.ZodOptional<z.ZodString>;
408
+ followUpRequired: z.ZodOptional<z.ZodBoolean>;
409
+ followUpDate: z.ZodOptional<z.ZodString>;
410
+ assignedTo: z.ZodOptional<z.ZodString>;
411
+ resolvedAt: z.ZodOptional<z.ZodString>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ type?: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY" | undefined;
414
+ status?: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED" | undefined;
415
+ title?: string | undefined;
416
+ description?: string | undefined;
417
+ correctiveActions?: string | undefined;
418
+ location?: string | undefined;
419
+ resolvedAt?: string | undefined;
420
+ assignedTo?: string | undefined;
421
+ severity?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
422
+ dateOccurred?: string | undefined;
423
+ injuryOccurred?: boolean | undefined;
424
+ medicalAttentionRequired?: boolean | undefined;
425
+ workRelated?: boolean | undefined;
426
+ witnessCount?: number | undefined;
427
+ witnesses?: {
428
+ name: string;
429
+ contact: string;
430
+ statement?: string | undefined;
431
+ }[] | undefined;
432
+ immediateActions?: string | undefined;
433
+ rootCause?: string | undefined;
434
+ preventiveActions?: string | undefined;
435
+ followUpRequired?: boolean | undefined;
436
+ followUpDate?: string | undefined;
437
+ }, {
438
+ type?: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY" | undefined;
439
+ status?: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED" | undefined;
440
+ title?: string | undefined;
441
+ description?: string | undefined;
442
+ correctiveActions?: string | undefined;
443
+ location?: string | undefined;
444
+ resolvedAt?: string | undefined;
445
+ assignedTo?: string | undefined;
446
+ severity?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
447
+ dateOccurred?: string | undefined;
448
+ injuryOccurred?: boolean | undefined;
449
+ medicalAttentionRequired?: boolean | undefined;
450
+ workRelated?: boolean | undefined;
451
+ witnessCount?: number | undefined;
452
+ witnesses?: {
453
+ name: string;
454
+ contact: string;
455
+ statement?: string | undefined;
456
+ }[] | undefined;
457
+ immediateActions?: string | undefined;
458
+ rootCause?: string | undefined;
459
+ preventiveActions?: string | undefined;
460
+ followUpRequired?: boolean | undefined;
461
+ followUpDate?: string | undefined;
462
+ }>;
463
+ export declare const CreateSafetyInspectionRequestSchema: z.ZodObject<{
464
+ projectId: z.ZodString;
465
+ inspectorId: z.ZodString;
466
+ inspectionType: z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>;
467
+ scheduledDate: z.ZodString;
468
+ notes: z.ZodOptional<z.ZodString>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ projectId: string;
471
+ inspectorId: string;
472
+ inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
473
+ scheduledDate: string;
474
+ notes?: string | undefined;
475
+ }, {
476
+ projectId: string;
477
+ inspectorId: string;
478
+ inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
479
+ scheduledDate: string;
480
+ notes?: string | undefined;
481
+ }>;
482
+ export declare const UpdateSafetyInspectionRequestSchema: z.ZodObject<{
483
+ completedDate: z.ZodOptional<z.ZodString>;
484
+ status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>>;
485
+ score: z.ZodOptional<z.ZodNumber>;
486
+ findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
487
+ category: z.ZodString;
488
+ description: z.ZodString;
489
+ severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
490
+ correctionRequired: z.ZodBoolean;
491
+ }, "strip", z.ZodTypeAny, {
492
+ description: string;
493
+ category: string;
494
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
495
+ correctionRequired: boolean;
496
+ }, {
497
+ description: string;
498
+ category: string;
499
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
500
+ correctionRequired: boolean;
501
+ }>, "many">>;
502
+ notes: z.ZodOptional<z.ZodString>;
503
+ attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
504
+ }, "strip", z.ZodTypeAny, {
505
+ status?: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "SCHEDULED" | undefined;
506
+ attachments?: string[] | undefined;
507
+ notes?: string | undefined;
508
+ score?: number | undefined;
509
+ completedDate?: string | undefined;
510
+ findings?: {
511
+ description: string;
512
+ category: string;
513
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
514
+ correctionRequired: boolean;
515
+ }[] | undefined;
516
+ }, {
517
+ status?: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "SCHEDULED" | undefined;
518
+ attachments?: string[] | undefined;
519
+ notes?: string | undefined;
520
+ score?: number | undefined;
521
+ completedDate?: string | undefined;
522
+ findings?: {
523
+ description: string;
524
+ category: string;
525
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
526
+ correctionRequired: boolean;
527
+ }[] | undefined;
528
+ }>;
529
+ export declare const CreateTrainingRecordRequestSchema: z.ZodObject<{
530
+ userId: z.ZodString;
531
+ trainingType: z.ZodString;
532
+ provider: z.ZodOptional<z.ZodString>;
533
+ completedDate: z.ZodString;
534
+ expirationDate: z.ZodOptional<z.ZodString>;
535
+ certificateNumber: z.ZodOptional<z.ZodString>;
536
+ score: z.ZodOptional<z.ZodNumber>;
537
+ notes: z.ZodOptional<z.ZodString>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ userId: string;
540
+ completedDate: string;
541
+ trainingType: string;
542
+ notes?: string | undefined;
543
+ provider?: string | undefined;
544
+ expirationDate?: string | undefined;
545
+ score?: number | undefined;
546
+ certificateNumber?: string | undefined;
547
+ }, {
548
+ userId: string;
549
+ completedDate: string;
550
+ trainingType: string;
551
+ notes?: string | undefined;
552
+ provider?: string | undefined;
553
+ expirationDate?: string | undefined;
554
+ score?: number | undefined;
555
+ certificateNumber?: string | undefined;
556
+ }>;
557
+ export declare const SafetyIncidentListQuerySchema: z.ZodObject<{
558
+ page: z.ZodDefault<z.ZodNumber>;
559
+ limit: z.ZodDefault<z.ZodNumber>;
560
+ type: z.ZodOptional<z.ZodEnum<["INJURY", "NEAR_MISS", "PROPERTY_DAMAGE", "ENVIRONMENTAL", "SECURITY", "EQUIPMENT_FAILURE"]>>;
561
+ severity: z.ZodOptional<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
562
+ status: z.ZodOptional<z.ZodEnum<["REPORTED", "INVESTIGATING", "RESOLVED", "CLOSED"]>>;
563
+ projectId: z.ZodOptional<z.ZodString>;
564
+ reportedBy: z.ZodOptional<z.ZodString>;
565
+ dateFrom: z.ZodOptional<z.ZodString>;
566
+ dateTo: z.ZodOptional<z.ZodString>;
567
+ search: z.ZodOptional<z.ZodString>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ page: number;
570
+ limit: number;
571
+ type?: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY" | undefined;
572
+ status?: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED" | undefined;
573
+ projectId?: string | undefined;
574
+ search?: string | undefined;
575
+ dateFrom?: string | undefined;
576
+ dateTo?: string | undefined;
577
+ reportedBy?: string | undefined;
578
+ severity?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
579
+ }, {
580
+ type?: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY" | undefined;
581
+ status?: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED" | undefined;
582
+ page?: number | undefined;
583
+ limit?: number | undefined;
584
+ projectId?: string | undefined;
585
+ search?: string | undefined;
586
+ dateFrom?: string | undefined;
587
+ dateTo?: string | undefined;
588
+ reportedBy?: string | undefined;
589
+ severity?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
590
+ }>;
591
+ export declare const IncidentResourceSchema: z.ZodObject<{
592
+ type: z.ZodLiteral<"incidents">;
593
+ id: z.ZodString;
594
+ attributes: z.ZodObject<{
595
+ id: z.ZodString;
596
+ title: z.ZodString;
597
+ description: z.ZodString;
598
+ type: z.ZodEnum<["INJURY", "NEAR_MISS", "PROPERTY_DAMAGE", "ENVIRONMENTAL", "SECURITY", "EQUIPMENT_FAILURE"]>;
599
+ severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
600
+ status: z.ZodEnum<["REPORTED", "INVESTIGATING", "RESOLVED", "CLOSED"]>;
601
+ location: z.ZodString;
602
+ dateOccurred: z.ZodString;
603
+ reportedBy: z.ZodString;
604
+ reportedAt: z.ZodString;
605
+ projectId: z.ZodString;
606
+ injuryOccurred: z.ZodDefault<z.ZodBoolean>;
607
+ medicalAttentionRequired: z.ZodDefault<z.ZodBoolean>;
608
+ workRelated: z.ZodDefault<z.ZodBoolean>;
609
+ witnessCount: z.ZodDefault<z.ZodNumber>;
610
+ witnesses: z.ZodDefault<z.ZodArray<z.ZodObject<{
611
+ name: z.ZodString;
612
+ contact: z.ZodString;
613
+ statement: z.ZodOptional<z.ZodString>;
614
+ }, "strip", z.ZodTypeAny, {
615
+ name: string;
616
+ contact: string;
617
+ statement?: string | undefined;
618
+ }, {
619
+ name: string;
620
+ contact: string;
621
+ statement?: string | undefined;
622
+ }>, "many">>;
623
+ immediateActions: z.ZodOptional<z.ZodString>;
624
+ rootCause: z.ZodOptional<z.ZodString>;
625
+ correctiveActions: z.ZodOptional<z.ZodString>;
626
+ preventiveActions: z.ZodOptional<z.ZodString>;
627
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
628
+ followUpDate: z.ZodOptional<z.ZodString>;
629
+ assignedTo: z.ZodOptional<z.ZodString>;
630
+ resolvedAt: z.ZodOptional<z.ZodString>;
631
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
632
+ id: z.ZodString;
633
+ filename: z.ZodString;
634
+ url: z.ZodString;
635
+ uploadedAt: z.ZodString;
636
+ }, "strip", z.ZodTypeAny, {
637
+ id: string;
638
+ filename: string;
639
+ url: string;
640
+ uploadedAt: string;
641
+ }, {
642
+ id: string;
643
+ filename: string;
644
+ url: string;
645
+ uploadedAt: string;
646
+ }>, "many">>;
647
+ createdAt: z.ZodString;
648
+ updatedAt: z.ZodString;
649
+ }, "strip", z.ZodTypeAny, {
650
+ id: string;
651
+ createdAt: string;
652
+ updatedAt: string;
653
+ type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
654
+ status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
655
+ title: string;
656
+ projectId: string;
657
+ description: string;
658
+ attachments: {
659
+ id: string;
660
+ filename: string;
661
+ url: string;
662
+ uploadedAt: string;
663
+ }[];
664
+ location: string;
665
+ reportedBy: string;
666
+ reportedAt: string;
667
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
668
+ dateOccurred: string;
669
+ injuryOccurred: boolean;
670
+ medicalAttentionRequired: boolean;
671
+ workRelated: boolean;
672
+ witnessCount: number;
673
+ witnesses: {
674
+ name: string;
675
+ contact: string;
676
+ statement?: string | undefined;
677
+ }[];
678
+ followUpRequired: boolean;
679
+ correctiveActions?: string | undefined;
680
+ resolvedAt?: string | undefined;
681
+ assignedTo?: string | undefined;
682
+ immediateActions?: string | undefined;
683
+ rootCause?: string | undefined;
684
+ preventiveActions?: string | undefined;
685
+ followUpDate?: string | undefined;
686
+ }, {
687
+ id: string;
688
+ createdAt: string;
689
+ updatedAt: string;
690
+ type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
691
+ status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
692
+ title: string;
693
+ projectId: string;
694
+ description: string;
695
+ location: string;
696
+ reportedBy: string;
697
+ reportedAt: string;
698
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
699
+ dateOccurred: string;
700
+ attachments?: {
701
+ id: string;
702
+ filename: string;
703
+ url: string;
704
+ uploadedAt: string;
705
+ }[] | undefined;
706
+ correctiveActions?: string | undefined;
707
+ resolvedAt?: string | undefined;
708
+ assignedTo?: string | undefined;
709
+ injuryOccurred?: boolean | undefined;
710
+ medicalAttentionRequired?: boolean | undefined;
711
+ workRelated?: boolean | undefined;
712
+ witnessCount?: number | undefined;
713
+ witnesses?: {
714
+ name: string;
715
+ contact: string;
716
+ statement?: string | undefined;
717
+ }[] | undefined;
718
+ immediateActions?: string | undefined;
719
+ rootCause?: string | undefined;
720
+ preventiveActions?: string | undefined;
721
+ followUpRequired?: boolean | undefined;
722
+ followUpDate?: string | undefined;
723
+ }>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ id: string;
726
+ type: "incidents";
727
+ attributes: {
728
+ id: string;
729
+ createdAt: string;
730
+ updatedAt: string;
731
+ type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
732
+ status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
733
+ title: string;
734
+ projectId: string;
735
+ description: string;
736
+ attachments: {
737
+ id: string;
738
+ filename: string;
739
+ url: string;
740
+ uploadedAt: string;
741
+ }[];
742
+ location: string;
743
+ reportedBy: string;
744
+ reportedAt: string;
745
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
746
+ dateOccurred: string;
747
+ injuryOccurred: boolean;
748
+ medicalAttentionRequired: boolean;
749
+ workRelated: boolean;
750
+ witnessCount: number;
751
+ witnesses: {
752
+ name: string;
753
+ contact: string;
754
+ statement?: string | undefined;
755
+ }[];
756
+ followUpRequired: boolean;
757
+ correctiveActions?: string | undefined;
758
+ resolvedAt?: string | undefined;
759
+ assignedTo?: string | undefined;
760
+ immediateActions?: string | undefined;
761
+ rootCause?: string | undefined;
762
+ preventiveActions?: string | undefined;
763
+ followUpDate?: string | undefined;
764
+ };
765
+ }, {
766
+ id: string;
767
+ type: "incidents";
768
+ attributes: {
769
+ id: string;
770
+ createdAt: string;
771
+ updatedAt: string;
772
+ type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
773
+ status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
774
+ title: string;
775
+ projectId: string;
776
+ description: string;
777
+ location: string;
778
+ reportedBy: string;
779
+ reportedAt: string;
780
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
781
+ dateOccurred: string;
782
+ attachments?: {
783
+ id: string;
784
+ filename: string;
785
+ url: string;
786
+ uploadedAt: string;
787
+ }[] | undefined;
788
+ correctiveActions?: string | undefined;
789
+ resolvedAt?: string | undefined;
790
+ assignedTo?: string | undefined;
791
+ injuryOccurred?: boolean | undefined;
792
+ medicalAttentionRequired?: boolean | undefined;
793
+ workRelated?: boolean | undefined;
794
+ witnessCount?: number | undefined;
795
+ witnesses?: {
796
+ name: string;
797
+ contact: string;
798
+ statement?: string | undefined;
799
+ }[] | undefined;
800
+ immediateActions?: string | undefined;
801
+ rootCause?: string | undefined;
802
+ preventiveActions?: string | undefined;
803
+ followUpRequired?: boolean | undefined;
804
+ followUpDate?: string | undefined;
805
+ };
806
+ }>;
807
+ export declare const SafetyInspectionResourceSchema: z.ZodObject<{
808
+ type: z.ZodLiteral<"safety-inspections">;
809
+ id: z.ZodString;
810
+ attributes: z.ZodObject<{
811
+ id: z.ZodString;
812
+ projectId: z.ZodString;
813
+ inspectorId: z.ZodString;
814
+ inspectionType: z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>;
815
+ scheduledDate: z.ZodString;
816
+ completedDate: z.ZodOptional<z.ZodString>;
817
+ status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>;
818
+ score: z.ZodOptional<z.ZodNumber>;
819
+ findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
820
+ category: z.ZodString;
821
+ description: z.ZodString;
822
+ severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
823
+ correctionRequired: z.ZodBoolean;
824
+ }, "strip", z.ZodTypeAny, {
825
+ description: string;
826
+ category: string;
827
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
828
+ correctionRequired: boolean;
829
+ }, {
830
+ description: string;
831
+ category: string;
832
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
833
+ correctionRequired: boolean;
834
+ }>, "many">>;
835
+ notes: z.ZodOptional<z.ZodString>;
836
+ attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
837
+ createdAt: z.ZodString;
838
+ updatedAt: z.ZodString;
839
+ }, "strip", z.ZodTypeAny, {
840
+ id: string;
841
+ createdAt: string;
842
+ updatedAt: string;
843
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "SCHEDULED";
844
+ projectId: string;
845
+ attachments: string[];
846
+ inspectorId: string;
847
+ inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
848
+ scheduledDate: string;
849
+ findings: {
850
+ description: string;
851
+ category: string;
852
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
853
+ correctionRequired: boolean;
854
+ }[];
855
+ notes?: string | undefined;
856
+ score?: number | undefined;
857
+ completedDate?: string | undefined;
858
+ }, {
859
+ id: string;
860
+ createdAt: string;
861
+ updatedAt: string;
862
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "SCHEDULED";
863
+ projectId: string;
864
+ inspectorId: string;
865
+ inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
866
+ scheduledDate: string;
867
+ attachments?: string[] | undefined;
868
+ notes?: string | undefined;
869
+ score?: number | undefined;
870
+ completedDate?: string | undefined;
871
+ findings?: {
872
+ description: string;
873
+ category: string;
874
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
875
+ correctionRequired: boolean;
876
+ }[] | undefined;
877
+ }>;
878
+ }, "strip", z.ZodTypeAny, {
879
+ id: string;
880
+ type: "safety-inspections";
881
+ attributes: {
882
+ id: string;
883
+ createdAt: string;
884
+ updatedAt: string;
885
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "SCHEDULED";
886
+ projectId: string;
887
+ attachments: string[];
888
+ inspectorId: string;
889
+ inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
890
+ scheduledDate: string;
891
+ findings: {
892
+ description: string;
893
+ category: string;
894
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
895
+ correctionRequired: boolean;
896
+ }[];
897
+ notes?: string | undefined;
898
+ score?: number | undefined;
899
+ completedDate?: string | undefined;
900
+ };
901
+ }, {
902
+ id: string;
903
+ type: "safety-inspections";
904
+ attributes: {
905
+ id: string;
906
+ createdAt: string;
907
+ updatedAt: string;
908
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "SCHEDULED";
909
+ projectId: string;
910
+ inspectorId: string;
911
+ inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
912
+ scheduledDate: string;
913
+ attachments?: string[] | undefined;
914
+ notes?: string | undefined;
915
+ score?: number | undefined;
916
+ completedDate?: string | undefined;
917
+ findings?: {
918
+ description: string;
919
+ category: string;
920
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
921
+ correctionRequired: boolean;
922
+ }[] | undefined;
923
+ };
924
+ }>;
925
+ export declare const TrainingRecordResourceSchema: z.ZodObject<{
926
+ type: z.ZodLiteral<"training-records">;
927
+ id: z.ZodString;
928
+ attributes: z.ZodObject<{
929
+ id: z.ZodString;
930
+ userId: z.ZodString;
931
+ trainingType: z.ZodString;
932
+ provider: z.ZodOptional<z.ZodString>;
933
+ completedDate: z.ZodString;
934
+ expirationDate: z.ZodOptional<z.ZodString>;
935
+ certificateNumber: z.ZodOptional<z.ZodString>;
936
+ status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "EXPIRED", "CANCELLED"]>;
937
+ score: z.ZodOptional<z.ZodNumber>;
938
+ notes: z.ZodOptional<z.ZodString>;
939
+ attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
940
+ createdAt: z.ZodString;
941
+ updatedAt: z.ZodString;
942
+ }, "strip", z.ZodTypeAny, {
943
+ id: string;
944
+ createdAt: string;
945
+ updatedAt: string;
946
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "EXPIRED" | "SCHEDULED";
947
+ userId: string;
948
+ attachments: string[];
949
+ completedDate: string;
950
+ trainingType: string;
951
+ notes?: string | undefined;
952
+ provider?: string | undefined;
953
+ expirationDate?: string | undefined;
954
+ score?: number | undefined;
955
+ certificateNumber?: string | undefined;
956
+ }, {
957
+ id: string;
958
+ createdAt: string;
959
+ updatedAt: string;
960
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "EXPIRED" | "SCHEDULED";
961
+ userId: string;
962
+ completedDate: string;
963
+ trainingType: string;
964
+ attachments?: string[] | undefined;
965
+ notes?: string | undefined;
966
+ provider?: string | undefined;
967
+ expirationDate?: string | undefined;
968
+ score?: number | undefined;
969
+ certificateNumber?: string | undefined;
970
+ }>;
971
+ }, "strip", z.ZodTypeAny, {
972
+ id: string;
973
+ type: "training-records";
974
+ attributes: {
975
+ id: string;
976
+ createdAt: string;
977
+ updatedAt: string;
978
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "EXPIRED" | "SCHEDULED";
979
+ userId: string;
980
+ attachments: string[];
981
+ completedDate: string;
982
+ trainingType: string;
983
+ notes?: string | undefined;
984
+ provider?: string | undefined;
985
+ expirationDate?: string | undefined;
986
+ score?: number | undefined;
987
+ certificateNumber?: string | undefined;
988
+ };
989
+ }, {
990
+ id: string;
991
+ type: "training-records";
992
+ attributes: {
993
+ id: string;
994
+ createdAt: string;
995
+ updatedAt: string;
996
+ status: "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "EXPIRED" | "SCHEDULED";
997
+ userId: string;
998
+ completedDate: string;
999
+ trainingType: string;
1000
+ attachments?: string[] | undefined;
1001
+ notes?: string | undefined;
1002
+ provider?: string | undefined;
1003
+ expirationDate?: string | undefined;
1004
+ score?: number | undefined;
1005
+ certificateNumber?: string | undefined;
1006
+ };
1007
+ }>;
1008
+ export declare const LegacySafetyIncidentSchema: z.ZodObject<{
1009
+ id: z.ZodString;
1010
+ title: z.ZodString;
1011
+ description: z.ZodString;
1012
+ type: z.ZodEnum<["INJURY", "NEAR_MISS", "PROPERTY_DAMAGE", "ENVIRONMENTAL", "SECURITY", "EQUIPMENT_FAILURE"]>;
1013
+ severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
1014
+ status: z.ZodEnum<["REPORTED", "INVESTIGATING", "RESOLVED", "CLOSED"]>;
1015
+ location: z.ZodNullable<z.ZodString>;
1016
+ injuredParty: z.ZodNullable<z.ZodString>;
1017
+ actionsTaken: z.ZodNullable<z.ZodString>;
1018
+ followUpRequired: z.ZodBoolean;
1019
+ projectId: z.ZodString;
1020
+ reporterId: z.ZodString;
1021
+ incidentDate: z.ZodString;
1022
+ reportedAt: z.ZodString;
1023
+ resolvedAt: z.ZodNullable<z.ZodString>;
1024
+ createdAt: z.ZodString;
1025
+ updatedAt: z.ZodString;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ id: string;
1028
+ createdAt: string;
1029
+ updatedAt: string;
1030
+ type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
1031
+ status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
1032
+ title: string;
1033
+ projectId: string;
1034
+ description: string;
1035
+ location: string | null;
1036
+ resolvedAt: string | null;
1037
+ reportedAt: string;
1038
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
1039
+ followUpRequired: boolean;
1040
+ injuredParty: string | null;
1041
+ actionsTaken: string | null;
1042
+ reporterId: string;
1043
+ incidentDate: string;
1044
+ }, {
1045
+ id: string;
1046
+ createdAt: string;
1047
+ updatedAt: string;
1048
+ type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
1049
+ status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
1050
+ title: string;
1051
+ projectId: string;
1052
+ description: string;
1053
+ location: string | null;
1054
+ resolvedAt: string | null;
1055
+ reportedAt: string;
1056
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
1057
+ followUpRequired: boolean;
1058
+ injuredParty: string | null;
1059
+ actionsTaken: string | null;
1060
+ reporterId: string;
1061
+ incidentDate: string;
1062
+ }>;
1063
+ export type SafetyIncident = z.infer<typeof SafetyIncidentSchema>;
1064
+ export type SafetyIncidentWitness = z.infer<typeof SafetyIncidentWitnessSchema>;
1065
+ export type SafetyIncidentAttachment = z.infer<typeof SafetyIncidentAttachmentSchema>;
1066
+ export type SafetyInspection = z.infer<typeof SafetyInspectionSchema>;
1067
+ export type SafetyInspectionFinding = z.infer<typeof SafetyInspectionFindingSchema>;
1068
+ export type TrainingRecord = z.infer<typeof TrainingRecordSchema>;
1069
+ export type CreateSafetyIncidentRequest = z.infer<typeof CreateSafetyIncidentRequestSchema>;
1070
+ export type CreateSafetyIncidentWitnessRequest = z.infer<typeof CreateSafetyIncidentWitnessRequestSchema>;
1071
+ export type UpdateSafetyIncidentRequest = z.infer<typeof UpdateSafetyIncidentRequestSchema>;
1072
+ export type CreateSafetyInspectionRequest = z.infer<typeof CreateSafetyInspectionRequestSchema>;
1073
+ export type UpdateSafetyInspectionRequest = z.infer<typeof UpdateSafetyInspectionRequestSchema>;
1074
+ export type CreateTrainingRecordRequest = z.infer<typeof CreateTrainingRecordRequestSchema>;
1075
+ export type SafetyIncidentListQuery = z.infer<typeof SafetyIncidentListQuerySchema>;
1076
+ export type IncidentResource = z.infer<typeof IncidentResourceSchema>;
1077
+ export type SafetyInspectionResource = z.infer<typeof SafetyInspectionResourceSchema>;
1078
+ export type TrainingRecordResource = z.infer<typeof TrainingRecordResourceSchema>;
1079
+ export type LegacySafetyIncident = z.infer<typeof LegacySafetyIncidentSchema>;
1080
+ //# sourceMappingURL=safety.d.ts.map