@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,2339 @@
1
+ import { z } from 'zod';
2
+ export declare const WeatherConditionSchema: z.ZodEnum<["SUNNY", "CLOUDY", "RAINY", "SNOWY", "WINDY", "FOGGY"]>;
3
+ export declare const DailyLogStatusSchema: z.ZodEnum<["DRAFT", "SUBMITTED", "APPROVED", "REJECTED"]>;
4
+ export declare const QualityInspectionResultSchema: z.ZodEnum<["PASSED", "FAILED", "CONDITIONAL"]>;
5
+ export declare const DailyLogGroupBySchema: z.ZodEnum<["day", "week", "month"]>;
6
+ export declare const DailyLogWeatherSchema: z.ZodObject<{
7
+ condition: z.ZodEnum<["SUNNY", "CLOUDY", "RAINY", "SNOWY", "WINDY", "FOGGY"]>;
8
+ temperature: z.ZodOptional<z.ZodNumber>;
9
+ humidity: z.ZodOptional<z.ZodNumber>;
10
+ windSpeed: z.ZodOptional<z.ZodNumber>;
11
+ precipitation: z.ZodOptional<z.ZodNumber>;
12
+ visibility: z.ZodOptional<z.ZodNumber>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
15
+ temperature?: number | undefined;
16
+ humidity?: number | undefined;
17
+ windSpeed?: number | undefined;
18
+ precipitation?: number | undefined;
19
+ visibility?: number | undefined;
20
+ }, {
21
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
22
+ temperature?: number | undefined;
23
+ humidity?: number | undefined;
24
+ windSpeed?: number | undefined;
25
+ precipitation?: number | undefined;
26
+ visibility?: number | undefined;
27
+ }>;
28
+ export declare const DailyLogWorkProgressSchema: z.ZodObject<{
29
+ summary: z.ZodString;
30
+ completedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
31
+ ongoingTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
32
+ plannedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
33
+ delaysOrIssues: z.ZodOptional<z.ZodString>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ summary: string;
36
+ completedTasks: string[];
37
+ ongoingTasks: string[];
38
+ plannedTasks: string[];
39
+ delaysOrIssues?: string | undefined;
40
+ }, {
41
+ summary: string;
42
+ completedTasks?: string[] | undefined;
43
+ ongoingTasks?: string[] | undefined;
44
+ plannedTasks?: string[] | undefined;
45
+ delaysOrIssues?: string | undefined;
46
+ }>;
47
+ export declare const DailyLogCrewAttendanceSchema: z.ZodObject<{
48
+ userId: z.ZodString;
49
+ name: z.ZodString;
50
+ role: z.ZodString;
51
+ hoursWorked: z.ZodNumber;
52
+ present: z.ZodBoolean;
53
+ lateArrival: z.ZodDefault<z.ZodBoolean>;
54
+ earlyDeparture: z.ZodDefault<z.ZodBoolean>;
55
+ notes: z.ZodOptional<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ userId: string;
58
+ role: string;
59
+ name: string;
60
+ hoursWorked: number;
61
+ present: boolean;
62
+ lateArrival: boolean;
63
+ earlyDeparture: boolean;
64
+ notes?: string | undefined;
65
+ }, {
66
+ userId: string;
67
+ role: string;
68
+ name: string;
69
+ hoursWorked: number;
70
+ present: boolean;
71
+ notes?: string | undefined;
72
+ lateArrival?: boolean | undefined;
73
+ earlyDeparture?: boolean | undefined;
74
+ }>;
75
+ export declare const DailyLogEquipmentUsageSchema: z.ZodObject<{
76
+ equipmentId: z.ZodString;
77
+ equipmentName: z.ZodString;
78
+ hoursUsed: z.ZodNumber;
79
+ operator: z.ZodOptional<z.ZodString>;
80
+ fuelUsed: z.ZodOptional<z.ZodNumber>;
81
+ issues: z.ZodOptional<z.ZodString>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ equipmentId: string;
84
+ equipmentName: string;
85
+ hoursUsed: number;
86
+ issues?: string | undefined;
87
+ operator?: string | undefined;
88
+ fuelUsed?: number | undefined;
89
+ }, {
90
+ equipmentId: string;
91
+ equipmentName: string;
92
+ hoursUsed: number;
93
+ issues?: string | undefined;
94
+ operator?: string | undefined;
95
+ fuelUsed?: number | undefined;
96
+ }>;
97
+ export declare const DailyLogMaterialDeliverySchema: z.ZodObject<{
98
+ supplier: z.ZodString;
99
+ materialType: z.ZodString;
100
+ quantity: z.ZodNumber;
101
+ unit: z.ZodString;
102
+ deliveryTime: z.ZodOptional<z.ZodString>;
103
+ receivedBy: z.ZodString;
104
+ conditionNotes: z.ZodOptional<z.ZodString>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ unit: string;
107
+ quantity: number;
108
+ receivedBy: string;
109
+ supplier: string;
110
+ materialType: string;
111
+ deliveryTime?: string | undefined;
112
+ conditionNotes?: string | undefined;
113
+ }, {
114
+ unit: string;
115
+ quantity: number;
116
+ receivedBy: string;
117
+ supplier: string;
118
+ materialType: string;
119
+ deliveryTime?: string | undefined;
120
+ conditionNotes?: string | undefined;
121
+ }>;
122
+ export declare const DailyLogSafetyObservationsSchema: z.ZodObject<{
123
+ incidents: z.ZodDefault<z.ZodNumber>;
124
+ nearMisses: z.ZodDefault<z.ZodNumber>;
125
+ safetyMeetingHeld: z.ZodDefault<z.ZodBoolean>;
126
+ safetyIssues: z.ZodOptional<z.ZodString>;
127
+ correctiveActions: z.ZodOptional<z.ZodString>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ incidents: number;
130
+ nearMisses: number;
131
+ safetyMeetingHeld: boolean;
132
+ safetyIssues?: string | undefined;
133
+ correctiveActions?: string | undefined;
134
+ }, {
135
+ incidents?: number | undefined;
136
+ nearMisses?: number | undefined;
137
+ safetyMeetingHeld?: boolean | undefined;
138
+ safetyIssues?: string | undefined;
139
+ correctiveActions?: string | undefined;
140
+ }>;
141
+ export declare const DailyLogQualityInspectionSchema: z.ZodObject<{
142
+ area: z.ZodString;
143
+ inspector: z.ZodString;
144
+ result: z.ZodEnum<["PASSED", "FAILED", "CONDITIONAL"]>;
145
+ notes: z.ZodOptional<z.ZodString>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ area: string;
148
+ inspector: string;
149
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
150
+ notes?: string | undefined;
151
+ }, {
152
+ area: string;
153
+ inspector: string;
154
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
155
+ notes?: string | undefined;
156
+ }>;
157
+ export declare const DailyLogVisitorSchema: z.ZodObject<{
158
+ name: z.ZodString;
159
+ company: z.ZodOptional<z.ZodString>;
160
+ purpose: z.ZodString;
161
+ timeIn: z.ZodString;
162
+ timeOut: z.ZodOptional<z.ZodString>;
163
+ escortedBy: z.ZodOptional<z.ZodString>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ name: string;
166
+ purpose: string;
167
+ timeIn: string;
168
+ company?: string | undefined;
169
+ timeOut?: string | undefined;
170
+ escortedBy?: string | undefined;
171
+ }, {
172
+ name: string;
173
+ purpose: string;
174
+ timeIn: string;
175
+ company?: string | undefined;
176
+ timeOut?: string | undefined;
177
+ escortedBy?: string | undefined;
178
+ }>;
179
+ export declare const DailyLogPhotoSchema: z.ZodObject<{
180
+ url: z.ZodString;
181
+ caption: z.ZodOptional<z.ZodString>;
182
+ location: z.ZodOptional<z.ZodString>;
183
+ timestamp: z.ZodString;
184
+ }, "strip", z.ZodTypeAny, {
185
+ timestamp: string;
186
+ url: string;
187
+ caption?: string | undefined;
188
+ location?: string | undefined;
189
+ }, {
190
+ timestamp: string;
191
+ url: string;
192
+ caption?: string | undefined;
193
+ location?: string | undefined;
194
+ }>;
195
+ export declare const DailyLogSchema: z.ZodObject<{
196
+ id: z.ZodString;
197
+ projectId: z.ZodString;
198
+ logNumber: z.ZodOptional<z.ZodString>;
199
+ date: z.ZodString;
200
+ weather: z.ZodObject<{
201
+ condition: z.ZodEnum<["SUNNY", "CLOUDY", "RAINY", "SNOWY", "WINDY", "FOGGY"]>;
202
+ temperature: z.ZodOptional<z.ZodNumber>;
203
+ humidity: z.ZodOptional<z.ZodNumber>;
204
+ windSpeed: z.ZodOptional<z.ZodNumber>;
205
+ precipitation: z.ZodOptional<z.ZodNumber>;
206
+ visibility: z.ZodOptional<z.ZodNumber>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
209
+ temperature?: number | undefined;
210
+ humidity?: number | undefined;
211
+ windSpeed?: number | undefined;
212
+ precipitation?: number | undefined;
213
+ visibility?: number | undefined;
214
+ }, {
215
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
216
+ temperature?: number | undefined;
217
+ humidity?: number | undefined;
218
+ windSpeed?: number | undefined;
219
+ precipitation?: number | undefined;
220
+ visibility?: number | undefined;
221
+ }>;
222
+ workProgress: z.ZodObject<{
223
+ summary: z.ZodString;
224
+ completedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
225
+ ongoingTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
226
+ plannedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
227
+ delaysOrIssues: z.ZodOptional<z.ZodString>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ summary: string;
230
+ completedTasks: string[];
231
+ ongoingTasks: string[];
232
+ plannedTasks: string[];
233
+ delaysOrIssues?: string | undefined;
234
+ }, {
235
+ summary: string;
236
+ completedTasks?: string[] | undefined;
237
+ ongoingTasks?: string[] | undefined;
238
+ plannedTasks?: string[] | undefined;
239
+ delaysOrIssues?: string | undefined;
240
+ }>;
241
+ crewAttendance: z.ZodArray<z.ZodObject<{
242
+ userId: z.ZodString;
243
+ name: z.ZodString;
244
+ role: z.ZodString;
245
+ hoursWorked: z.ZodNumber;
246
+ present: z.ZodBoolean;
247
+ lateArrival: z.ZodDefault<z.ZodBoolean>;
248
+ earlyDeparture: z.ZodDefault<z.ZodBoolean>;
249
+ notes: z.ZodOptional<z.ZodString>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ userId: string;
252
+ role: string;
253
+ name: string;
254
+ hoursWorked: number;
255
+ present: boolean;
256
+ lateArrival: boolean;
257
+ earlyDeparture: boolean;
258
+ notes?: string | undefined;
259
+ }, {
260
+ userId: string;
261
+ role: string;
262
+ name: string;
263
+ hoursWorked: number;
264
+ present: boolean;
265
+ notes?: string | undefined;
266
+ lateArrival?: boolean | undefined;
267
+ earlyDeparture?: boolean | undefined;
268
+ }>, "many">;
269
+ equipmentUsage: z.ZodArray<z.ZodObject<{
270
+ equipmentId: z.ZodString;
271
+ equipmentName: z.ZodString;
272
+ hoursUsed: z.ZodNumber;
273
+ operator: z.ZodOptional<z.ZodString>;
274
+ fuelUsed: z.ZodOptional<z.ZodNumber>;
275
+ issues: z.ZodOptional<z.ZodString>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ equipmentId: string;
278
+ equipmentName: string;
279
+ hoursUsed: number;
280
+ issues?: string | undefined;
281
+ operator?: string | undefined;
282
+ fuelUsed?: number | undefined;
283
+ }, {
284
+ equipmentId: string;
285
+ equipmentName: string;
286
+ hoursUsed: number;
287
+ issues?: string | undefined;
288
+ operator?: string | undefined;
289
+ fuelUsed?: number | undefined;
290
+ }>, "many">;
291
+ materialDeliveries: z.ZodArray<z.ZodObject<{
292
+ supplier: z.ZodString;
293
+ materialType: z.ZodString;
294
+ quantity: z.ZodNumber;
295
+ unit: z.ZodString;
296
+ deliveryTime: z.ZodOptional<z.ZodString>;
297
+ receivedBy: z.ZodString;
298
+ conditionNotes: z.ZodOptional<z.ZodString>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ unit: string;
301
+ quantity: number;
302
+ receivedBy: string;
303
+ supplier: string;
304
+ materialType: string;
305
+ deliveryTime?: string | undefined;
306
+ conditionNotes?: string | undefined;
307
+ }, {
308
+ unit: string;
309
+ quantity: number;
310
+ receivedBy: string;
311
+ supplier: string;
312
+ materialType: string;
313
+ deliveryTime?: string | undefined;
314
+ conditionNotes?: string | undefined;
315
+ }>, "many">;
316
+ safetyObservations: z.ZodObject<{
317
+ incidents: z.ZodDefault<z.ZodNumber>;
318
+ nearMisses: z.ZodDefault<z.ZodNumber>;
319
+ safetyMeetingHeld: z.ZodDefault<z.ZodBoolean>;
320
+ safetyIssues: z.ZodOptional<z.ZodString>;
321
+ correctiveActions: z.ZodOptional<z.ZodString>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ incidents: number;
324
+ nearMisses: number;
325
+ safetyMeetingHeld: boolean;
326
+ safetyIssues?: string | undefined;
327
+ correctiveActions?: string | undefined;
328
+ }, {
329
+ incidents?: number | undefined;
330
+ nearMisses?: number | undefined;
331
+ safetyMeetingHeld?: boolean | undefined;
332
+ safetyIssues?: string | undefined;
333
+ correctiveActions?: string | undefined;
334
+ }>;
335
+ qualityInspections: z.ZodArray<z.ZodObject<{
336
+ area: z.ZodString;
337
+ inspector: z.ZodString;
338
+ result: z.ZodEnum<["PASSED", "FAILED", "CONDITIONAL"]>;
339
+ notes: z.ZodOptional<z.ZodString>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ area: string;
342
+ inspector: string;
343
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
344
+ notes?: string | undefined;
345
+ }, {
346
+ area: string;
347
+ inspector: string;
348
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
349
+ notes?: string | undefined;
350
+ }>, "many">;
351
+ visitorLog: z.ZodArray<z.ZodObject<{
352
+ name: z.ZodString;
353
+ company: z.ZodOptional<z.ZodString>;
354
+ purpose: z.ZodString;
355
+ timeIn: z.ZodString;
356
+ timeOut: z.ZodOptional<z.ZodString>;
357
+ escortedBy: z.ZodOptional<z.ZodString>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ name: string;
360
+ purpose: string;
361
+ timeIn: string;
362
+ company?: string | undefined;
363
+ timeOut?: string | undefined;
364
+ escortedBy?: string | undefined;
365
+ }, {
366
+ name: string;
367
+ purpose: string;
368
+ timeIn: string;
369
+ company?: string | undefined;
370
+ timeOut?: string | undefined;
371
+ escortedBy?: string | undefined;
372
+ }>, "many">;
373
+ photos: z.ZodArray<z.ZodObject<{
374
+ url: z.ZodString;
375
+ caption: z.ZodOptional<z.ZodString>;
376
+ location: z.ZodOptional<z.ZodString>;
377
+ timestamp: z.ZodString;
378
+ }, "strip", z.ZodTypeAny, {
379
+ timestamp: string;
380
+ url: string;
381
+ caption?: string | undefined;
382
+ location?: string | undefined;
383
+ }, {
384
+ timestamp: string;
385
+ url: string;
386
+ caption?: string | undefined;
387
+ location?: string | undefined;
388
+ }>, "many">;
389
+ notes: z.ZodOptional<z.ZodString>;
390
+ hubEventIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
391
+ headcountFromBiometric: z.ZodOptional<z.ZodNumber>;
392
+ submittedBy: z.ZodString;
393
+ submittedAt: z.ZodString;
394
+ approvedBy: z.ZodOptional<z.ZodString>;
395
+ approvedAt: z.ZodOptional<z.ZodString>;
396
+ status: z.ZodDefault<z.ZodEnum<["DRAFT", "SUBMITTED", "APPROVED", "REJECTED"]>>;
397
+ createdAt: z.ZodString;
398
+ updatedAt: z.ZodString;
399
+ }, "strip", z.ZodTypeAny, {
400
+ id: string;
401
+ createdAt: string;
402
+ updatedAt: string;
403
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
404
+ date: string;
405
+ projectId: string;
406
+ submittedAt: string;
407
+ weather: {
408
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
409
+ temperature?: number | undefined;
410
+ humidity?: number | undefined;
411
+ windSpeed?: number | undefined;
412
+ precipitation?: number | undefined;
413
+ visibility?: number | undefined;
414
+ };
415
+ workProgress: {
416
+ summary: string;
417
+ completedTasks: string[];
418
+ ongoingTasks: string[];
419
+ plannedTasks: string[];
420
+ delaysOrIssues?: string | undefined;
421
+ };
422
+ crewAttendance: {
423
+ userId: string;
424
+ role: string;
425
+ name: string;
426
+ hoursWorked: number;
427
+ present: boolean;
428
+ lateArrival: boolean;
429
+ earlyDeparture: boolean;
430
+ notes?: string | undefined;
431
+ }[];
432
+ equipmentUsage: {
433
+ equipmentId: string;
434
+ equipmentName: string;
435
+ hoursUsed: number;
436
+ issues?: string | undefined;
437
+ operator?: string | undefined;
438
+ fuelUsed?: number | undefined;
439
+ }[];
440
+ materialDeliveries: {
441
+ unit: string;
442
+ quantity: number;
443
+ receivedBy: string;
444
+ supplier: string;
445
+ materialType: string;
446
+ deliveryTime?: string | undefined;
447
+ conditionNotes?: string | undefined;
448
+ }[];
449
+ safetyObservations: {
450
+ incidents: number;
451
+ nearMisses: number;
452
+ safetyMeetingHeld: boolean;
453
+ safetyIssues?: string | undefined;
454
+ correctiveActions?: string | undefined;
455
+ };
456
+ qualityInspections: {
457
+ area: string;
458
+ inspector: string;
459
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
460
+ notes?: string | undefined;
461
+ }[];
462
+ visitorLog: {
463
+ name: string;
464
+ purpose: string;
465
+ timeIn: string;
466
+ company?: string | undefined;
467
+ timeOut?: string | undefined;
468
+ escortedBy?: string | undefined;
469
+ }[];
470
+ photos: {
471
+ timestamp: string;
472
+ url: string;
473
+ caption?: string | undefined;
474
+ location?: string | undefined;
475
+ }[];
476
+ hubEventIds: string[];
477
+ submittedBy: string;
478
+ approvedBy?: string | undefined;
479
+ approvedAt?: string | undefined;
480
+ notes?: string | undefined;
481
+ logNumber?: string | undefined;
482
+ headcountFromBiometric?: number | undefined;
483
+ }, {
484
+ id: string;
485
+ createdAt: string;
486
+ updatedAt: string;
487
+ date: string;
488
+ projectId: string;
489
+ submittedAt: string;
490
+ weather: {
491
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
492
+ temperature?: number | undefined;
493
+ humidity?: number | undefined;
494
+ windSpeed?: number | undefined;
495
+ precipitation?: number | undefined;
496
+ visibility?: number | undefined;
497
+ };
498
+ workProgress: {
499
+ summary: string;
500
+ completedTasks?: string[] | undefined;
501
+ ongoingTasks?: string[] | undefined;
502
+ plannedTasks?: string[] | undefined;
503
+ delaysOrIssues?: string | undefined;
504
+ };
505
+ crewAttendance: {
506
+ userId: string;
507
+ role: string;
508
+ name: string;
509
+ hoursWorked: number;
510
+ present: boolean;
511
+ notes?: string | undefined;
512
+ lateArrival?: boolean | undefined;
513
+ earlyDeparture?: boolean | undefined;
514
+ }[];
515
+ equipmentUsage: {
516
+ equipmentId: string;
517
+ equipmentName: string;
518
+ hoursUsed: number;
519
+ issues?: string | undefined;
520
+ operator?: string | undefined;
521
+ fuelUsed?: number | undefined;
522
+ }[];
523
+ materialDeliveries: {
524
+ unit: string;
525
+ quantity: number;
526
+ receivedBy: string;
527
+ supplier: string;
528
+ materialType: string;
529
+ deliveryTime?: string | undefined;
530
+ conditionNotes?: string | undefined;
531
+ }[];
532
+ safetyObservations: {
533
+ incidents?: number | undefined;
534
+ nearMisses?: number | undefined;
535
+ safetyMeetingHeld?: boolean | undefined;
536
+ safetyIssues?: string | undefined;
537
+ correctiveActions?: string | undefined;
538
+ };
539
+ qualityInspections: {
540
+ area: string;
541
+ inspector: string;
542
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
543
+ notes?: string | undefined;
544
+ }[];
545
+ visitorLog: {
546
+ name: string;
547
+ purpose: string;
548
+ timeIn: string;
549
+ company?: string | undefined;
550
+ timeOut?: string | undefined;
551
+ escortedBy?: string | undefined;
552
+ }[];
553
+ photos: {
554
+ timestamp: string;
555
+ url: string;
556
+ caption?: string | undefined;
557
+ location?: string | undefined;
558
+ }[];
559
+ submittedBy: string;
560
+ status?: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT" | undefined;
561
+ approvedBy?: string | undefined;
562
+ approvedAt?: string | undefined;
563
+ notes?: string | undefined;
564
+ logNumber?: string | undefined;
565
+ hubEventIds?: string[] | undefined;
566
+ headcountFromBiometric?: number | undefined;
567
+ }>;
568
+ export declare const CreateDailyLogRequestSchema: z.ZodObject<{
569
+ date: z.ZodString;
570
+ weather: z.ZodObject<{
571
+ condition: z.ZodEnum<["SUNNY", "CLOUDY", "RAINY", "SNOWY", "WINDY", "FOGGY"]>;
572
+ temperature: z.ZodOptional<z.ZodNumber>;
573
+ humidity: z.ZodOptional<z.ZodNumber>;
574
+ windSpeed: z.ZodOptional<z.ZodNumber>;
575
+ precipitation: z.ZodOptional<z.ZodNumber>;
576
+ visibility: z.ZodOptional<z.ZodNumber>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
579
+ temperature?: number | undefined;
580
+ humidity?: number | undefined;
581
+ windSpeed?: number | undefined;
582
+ precipitation?: number | undefined;
583
+ visibility?: number | undefined;
584
+ }, {
585
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
586
+ temperature?: number | undefined;
587
+ humidity?: number | undefined;
588
+ windSpeed?: number | undefined;
589
+ precipitation?: number | undefined;
590
+ visibility?: number | undefined;
591
+ }>;
592
+ workProgress: z.ZodObject<{
593
+ summary: z.ZodString;
594
+ completedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
595
+ ongoingTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
596
+ plannedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
597
+ delaysOrIssues: z.ZodOptional<z.ZodString>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ summary: string;
600
+ completedTasks: string[];
601
+ ongoingTasks: string[];
602
+ plannedTasks: string[];
603
+ delaysOrIssues?: string | undefined;
604
+ }, {
605
+ summary: string;
606
+ completedTasks?: string[] | undefined;
607
+ ongoingTasks?: string[] | undefined;
608
+ plannedTasks?: string[] | undefined;
609
+ delaysOrIssues?: string | undefined;
610
+ }>;
611
+ crewAttendance: z.ZodArray<z.ZodObject<Omit<{
612
+ userId: z.ZodString;
613
+ name: z.ZodString;
614
+ role: z.ZodString;
615
+ hoursWorked: z.ZodNumber;
616
+ present: z.ZodBoolean;
617
+ lateArrival: z.ZodDefault<z.ZodBoolean>;
618
+ earlyDeparture: z.ZodDefault<z.ZodBoolean>;
619
+ notes: z.ZodOptional<z.ZodString>;
620
+ }, "role" | "name">, "strip", z.ZodTypeAny, {
621
+ userId: string;
622
+ hoursWorked: number;
623
+ present: boolean;
624
+ lateArrival: boolean;
625
+ earlyDeparture: boolean;
626
+ notes?: string | undefined;
627
+ }, {
628
+ userId: string;
629
+ hoursWorked: number;
630
+ present: boolean;
631
+ notes?: string | undefined;
632
+ lateArrival?: boolean | undefined;
633
+ earlyDeparture?: boolean | undefined;
634
+ }>, "many">;
635
+ equipmentUsage: z.ZodArray<z.ZodObject<Omit<{
636
+ equipmentId: z.ZodString;
637
+ equipmentName: z.ZodString;
638
+ hoursUsed: z.ZodNumber;
639
+ operator: z.ZodOptional<z.ZodString>;
640
+ fuelUsed: z.ZodOptional<z.ZodNumber>;
641
+ issues: z.ZodOptional<z.ZodString>;
642
+ }, "equipmentName">, "strip", z.ZodTypeAny, {
643
+ equipmentId: string;
644
+ hoursUsed: number;
645
+ issues?: string | undefined;
646
+ operator?: string | undefined;
647
+ fuelUsed?: number | undefined;
648
+ }, {
649
+ equipmentId: string;
650
+ hoursUsed: number;
651
+ issues?: string | undefined;
652
+ operator?: string | undefined;
653
+ fuelUsed?: number | undefined;
654
+ }>, "many">;
655
+ materialDeliveries: z.ZodArray<z.ZodObject<{
656
+ supplier: z.ZodString;
657
+ materialType: z.ZodString;
658
+ quantity: z.ZodNumber;
659
+ unit: z.ZodString;
660
+ deliveryTime: z.ZodOptional<z.ZodString>;
661
+ receivedBy: z.ZodString;
662
+ conditionNotes: z.ZodOptional<z.ZodString>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ unit: string;
665
+ quantity: number;
666
+ receivedBy: string;
667
+ supplier: string;
668
+ materialType: string;
669
+ deliveryTime?: string | undefined;
670
+ conditionNotes?: string | undefined;
671
+ }, {
672
+ unit: string;
673
+ quantity: number;
674
+ receivedBy: string;
675
+ supplier: string;
676
+ materialType: string;
677
+ deliveryTime?: string | undefined;
678
+ conditionNotes?: string | undefined;
679
+ }>, "many">;
680
+ safetyObservations: z.ZodObject<{
681
+ incidents: z.ZodDefault<z.ZodNumber>;
682
+ nearMisses: z.ZodDefault<z.ZodNumber>;
683
+ safetyMeetingHeld: z.ZodDefault<z.ZodBoolean>;
684
+ safetyIssues: z.ZodOptional<z.ZodString>;
685
+ correctiveActions: z.ZodOptional<z.ZodString>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ incidents: number;
688
+ nearMisses: number;
689
+ safetyMeetingHeld: boolean;
690
+ safetyIssues?: string | undefined;
691
+ correctiveActions?: string | undefined;
692
+ }, {
693
+ incidents?: number | undefined;
694
+ nearMisses?: number | undefined;
695
+ safetyMeetingHeld?: boolean | undefined;
696
+ safetyIssues?: string | undefined;
697
+ correctiveActions?: string | undefined;
698
+ }>;
699
+ qualityInspections: z.ZodArray<z.ZodObject<{
700
+ area: z.ZodString;
701
+ inspector: z.ZodString;
702
+ result: z.ZodEnum<["PASSED", "FAILED", "CONDITIONAL"]>;
703
+ notes: z.ZodOptional<z.ZodString>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ area: string;
706
+ inspector: string;
707
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
708
+ notes?: string | undefined;
709
+ }, {
710
+ area: string;
711
+ inspector: string;
712
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
713
+ notes?: string | undefined;
714
+ }>, "many">;
715
+ visitorLog: z.ZodArray<z.ZodObject<{
716
+ name: z.ZodString;
717
+ company: z.ZodOptional<z.ZodString>;
718
+ purpose: z.ZodString;
719
+ timeIn: z.ZodString;
720
+ timeOut: z.ZodOptional<z.ZodString>;
721
+ escortedBy: z.ZodOptional<z.ZodString>;
722
+ }, "strip", z.ZodTypeAny, {
723
+ name: string;
724
+ purpose: string;
725
+ timeIn: string;
726
+ company?: string | undefined;
727
+ timeOut?: string | undefined;
728
+ escortedBy?: string | undefined;
729
+ }, {
730
+ name: string;
731
+ purpose: string;
732
+ timeIn: string;
733
+ company?: string | undefined;
734
+ timeOut?: string | undefined;
735
+ escortedBy?: string | undefined;
736
+ }>, "many">;
737
+ photos: z.ZodArray<z.ZodObject<{
738
+ url: z.ZodString;
739
+ caption: z.ZodOptional<z.ZodString>;
740
+ location: z.ZodOptional<z.ZodString>;
741
+ timestamp: z.ZodString;
742
+ }, "strip", z.ZodTypeAny, {
743
+ timestamp: string;
744
+ url: string;
745
+ caption?: string | undefined;
746
+ location?: string | undefined;
747
+ }, {
748
+ timestamp: string;
749
+ url: string;
750
+ caption?: string | undefined;
751
+ location?: string | undefined;
752
+ }>, "many">;
753
+ notes: z.ZodOptional<z.ZodString>;
754
+ hubEventIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
755
+ headcountFromBiometric: z.ZodOptional<z.ZodNumber>;
756
+ }, "strip", z.ZodTypeAny, {
757
+ date: string;
758
+ weather: {
759
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
760
+ temperature?: number | undefined;
761
+ humidity?: number | undefined;
762
+ windSpeed?: number | undefined;
763
+ precipitation?: number | undefined;
764
+ visibility?: number | undefined;
765
+ };
766
+ workProgress: {
767
+ summary: string;
768
+ completedTasks: string[];
769
+ ongoingTasks: string[];
770
+ plannedTasks: string[];
771
+ delaysOrIssues?: string | undefined;
772
+ };
773
+ crewAttendance: {
774
+ userId: string;
775
+ hoursWorked: number;
776
+ present: boolean;
777
+ lateArrival: boolean;
778
+ earlyDeparture: boolean;
779
+ notes?: string | undefined;
780
+ }[];
781
+ equipmentUsage: {
782
+ equipmentId: string;
783
+ hoursUsed: number;
784
+ issues?: string | undefined;
785
+ operator?: string | undefined;
786
+ fuelUsed?: number | undefined;
787
+ }[];
788
+ materialDeliveries: {
789
+ unit: string;
790
+ quantity: number;
791
+ receivedBy: string;
792
+ supplier: string;
793
+ materialType: string;
794
+ deliveryTime?: string | undefined;
795
+ conditionNotes?: string | undefined;
796
+ }[];
797
+ safetyObservations: {
798
+ incidents: number;
799
+ nearMisses: number;
800
+ safetyMeetingHeld: boolean;
801
+ safetyIssues?: string | undefined;
802
+ correctiveActions?: string | undefined;
803
+ };
804
+ qualityInspections: {
805
+ area: string;
806
+ inspector: string;
807
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
808
+ notes?: string | undefined;
809
+ }[];
810
+ visitorLog: {
811
+ name: string;
812
+ purpose: string;
813
+ timeIn: string;
814
+ company?: string | undefined;
815
+ timeOut?: string | undefined;
816
+ escortedBy?: string | undefined;
817
+ }[];
818
+ photos: {
819
+ timestamp: string;
820
+ url: string;
821
+ caption?: string | undefined;
822
+ location?: string | undefined;
823
+ }[];
824
+ notes?: string | undefined;
825
+ hubEventIds?: string[] | undefined;
826
+ headcountFromBiometric?: number | undefined;
827
+ }, {
828
+ date: string;
829
+ weather: {
830
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
831
+ temperature?: number | undefined;
832
+ humidity?: number | undefined;
833
+ windSpeed?: number | undefined;
834
+ precipitation?: number | undefined;
835
+ visibility?: number | undefined;
836
+ };
837
+ workProgress: {
838
+ summary: string;
839
+ completedTasks?: string[] | undefined;
840
+ ongoingTasks?: string[] | undefined;
841
+ plannedTasks?: string[] | undefined;
842
+ delaysOrIssues?: string | undefined;
843
+ };
844
+ crewAttendance: {
845
+ userId: string;
846
+ hoursWorked: number;
847
+ present: boolean;
848
+ notes?: string | undefined;
849
+ lateArrival?: boolean | undefined;
850
+ earlyDeparture?: boolean | undefined;
851
+ }[];
852
+ equipmentUsage: {
853
+ equipmentId: string;
854
+ hoursUsed: number;
855
+ issues?: string | undefined;
856
+ operator?: string | undefined;
857
+ fuelUsed?: number | undefined;
858
+ }[];
859
+ materialDeliveries: {
860
+ unit: string;
861
+ quantity: number;
862
+ receivedBy: string;
863
+ supplier: string;
864
+ materialType: string;
865
+ deliveryTime?: string | undefined;
866
+ conditionNotes?: string | undefined;
867
+ }[];
868
+ safetyObservations: {
869
+ incidents?: number | undefined;
870
+ nearMisses?: number | undefined;
871
+ safetyMeetingHeld?: boolean | undefined;
872
+ safetyIssues?: string | undefined;
873
+ correctiveActions?: string | undefined;
874
+ };
875
+ qualityInspections: {
876
+ area: string;
877
+ inspector: string;
878
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
879
+ notes?: string | undefined;
880
+ }[];
881
+ visitorLog: {
882
+ name: string;
883
+ purpose: string;
884
+ timeIn: string;
885
+ company?: string | undefined;
886
+ timeOut?: string | undefined;
887
+ escortedBy?: string | undefined;
888
+ }[];
889
+ photos: {
890
+ timestamp: string;
891
+ url: string;
892
+ caption?: string | undefined;
893
+ location?: string | undefined;
894
+ }[];
895
+ notes?: string | undefined;
896
+ hubEventIds?: string[] | undefined;
897
+ headcountFromBiometric?: number | undefined;
898
+ }>;
899
+ export declare const UpdateDailyLogRequestSchema: z.ZodObject<{
900
+ date: z.ZodOptional<z.ZodString>;
901
+ weather: z.ZodOptional<z.ZodObject<{
902
+ condition: z.ZodEnum<["SUNNY", "CLOUDY", "RAINY", "SNOWY", "WINDY", "FOGGY"]>;
903
+ temperature: z.ZodOptional<z.ZodNumber>;
904
+ humidity: z.ZodOptional<z.ZodNumber>;
905
+ windSpeed: z.ZodOptional<z.ZodNumber>;
906
+ precipitation: z.ZodOptional<z.ZodNumber>;
907
+ visibility: z.ZodOptional<z.ZodNumber>;
908
+ }, "strip", z.ZodTypeAny, {
909
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
910
+ temperature?: number | undefined;
911
+ humidity?: number | undefined;
912
+ windSpeed?: number | undefined;
913
+ precipitation?: number | undefined;
914
+ visibility?: number | undefined;
915
+ }, {
916
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
917
+ temperature?: number | undefined;
918
+ humidity?: number | undefined;
919
+ windSpeed?: number | undefined;
920
+ precipitation?: number | undefined;
921
+ visibility?: number | undefined;
922
+ }>>;
923
+ workProgress: z.ZodOptional<z.ZodObject<{
924
+ summary: z.ZodString;
925
+ completedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
926
+ ongoingTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
927
+ plannedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
928
+ delaysOrIssues: z.ZodOptional<z.ZodString>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ summary: string;
931
+ completedTasks: string[];
932
+ ongoingTasks: string[];
933
+ plannedTasks: string[];
934
+ delaysOrIssues?: string | undefined;
935
+ }, {
936
+ summary: string;
937
+ completedTasks?: string[] | undefined;
938
+ ongoingTasks?: string[] | undefined;
939
+ plannedTasks?: string[] | undefined;
940
+ delaysOrIssues?: string | undefined;
941
+ }>>;
942
+ crewAttendance: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
943
+ userId: z.ZodString;
944
+ name: z.ZodString;
945
+ role: z.ZodString;
946
+ hoursWorked: z.ZodNumber;
947
+ present: z.ZodBoolean;
948
+ lateArrival: z.ZodDefault<z.ZodBoolean>;
949
+ earlyDeparture: z.ZodDefault<z.ZodBoolean>;
950
+ notes: z.ZodOptional<z.ZodString>;
951
+ }, "role" | "name">, "strip", z.ZodTypeAny, {
952
+ userId: string;
953
+ hoursWorked: number;
954
+ present: boolean;
955
+ lateArrival: boolean;
956
+ earlyDeparture: boolean;
957
+ notes?: string | undefined;
958
+ }, {
959
+ userId: string;
960
+ hoursWorked: number;
961
+ present: boolean;
962
+ notes?: string | undefined;
963
+ lateArrival?: boolean | undefined;
964
+ earlyDeparture?: boolean | undefined;
965
+ }>, "many">>;
966
+ equipmentUsage: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
967
+ equipmentId: z.ZodString;
968
+ equipmentName: z.ZodString;
969
+ hoursUsed: z.ZodNumber;
970
+ operator: z.ZodOptional<z.ZodString>;
971
+ fuelUsed: z.ZodOptional<z.ZodNumber>;
972
+ issues: z.ZodOptional<z.ZodString>;
973
+ }, "equipmentName">, "strip", z.ZodTypeAny, {
974
+ equipmentId: string;
975
+ hoursUsed: number;
976
+ issues?: string | undefined;
977
+ operator?: string | undefined;
978
+ fuelUsed?: number | undefined;
979
+ }, {
980
+ equipmentId: string;
981
+ hoursUsed: number;
982
+ issues?: string | undefined;
983
+ operator?: string | undefined;
984
+ fuelUsed?: number | undefined;
985
+ }>, "many">>;
986
+ materialDeliveries: z.ZodOptional<z.ZodArray<z.ZodObject<{
987
+ supplier: z.ZodString;
988
+ materialType: z.ZodString;
989
+ quantity: z.ZodNumber;
990
+ unit: z.ZodString;
991
+ deliveryTime: z.ZodOptional<z.ZodString>;
992
+ receivedBy: z.ZodString;
993
+ conditionNotes: z.ZodOptional<z.ZodString>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ unit: string;
996
+ quantity: number;
997
+ receivedBy: string;
998
+ supplier: string;
999
+ materialType: string;
1000
+ deliveryTime?: string | undefined;
1001
+ conditionNotes?: string | undefined;
1002
+ }, {
1003
+ unit: string;
1004
+ quantity: number;
1005
+ receivedBy: string;
1006
+ supplier: string;
1007
+ materialType: string;
1008
+ deliveryTime?: string | undefined;
1009
+ conditionNotes?: string | undefined;
1010
+ }>, "many">>;
1011
+ safetyObservations: z.ZodOptional<z.ZodObject<{
1012
+ incidents: z.ZodDefault<z.ZodNumber>;
1013
+ nearMisses: z.ZodDefault<z.ZodNumber>;
1014
+ safetyMeetingHeld: z.ZodDefault<z.ZodBoolean>;
1015
+ safetyIssues: z.ZodOptional<z.ZodString>;
1016
+ correctiveActions: z.ZodOptional<z.ZodString>;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ incidents: number;
1019
+ nearMisses: number;
1020
+ safetyMeetingHeld: boolean;
1021
+ safetyIssues?: string | undefined;
1022
+ correctiveActions?: string | undefined;
1023
+ }, {
1024
+ incidents?: number | undefined;
1025
+ nearMisses?: number | undefined;
1026
+ safetyMeetingHeld?: boolean | undefined;
1027
+ safetyIssues?: string | undefined;
1028
+ correctiveActions?: string | undefined;
1029
+ }>>;
1030
+ qualityInspections: z.ZodOptional<z.ZodArray<z.ZodObject<{
1031
+ area: z.ZodString;
1032
+ inspector: z.ZodString;
1033
+ result: z.ZodEnum<["PASSED", "FAILED", "CONDITIONAL"]>;
1034
+ notes: z.ZodOptional<z.ZodString>;
1035
+ }, "strip", z.ZodTypeAny, {
1036
+ area: string;
1037
+ inspector: string;
1038
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
1039
+ notes?: string | undefined;
1040
+ }, {
1041
+ area: string;
1042
+ inspector: string;
1043
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
1044
+ notes?: string | undefined;
1045
+ }>, "many">>;
1046
+ visitorLog: z.ZodOptional<z.ZodArray<z.ZodObject<{
1047
+ name: z.ZodString;
1048
+ company: z.ZodOptional<z.ZodString>;
1049
+ purpose: z.ZodString;
1050
+ timeIn: z.ZodString;
1051
+ timeOut: z.ZodOptional<z.ZodString>;
1052
+ escortedBy: z.ZodOptional<z.ZodString>;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ name: string;
1055
+ purpose: string;
1056
+ timeIn: string;
1057
+ company?: string | undefined;
1058
+ timeOut?: string | undefined;
1059
+ escortedBy?: string | undefined;
1060
+ }, {
1061
+ name: string;
1062
+ purpose: string;
1063
+ timeIn: string;
1064
+ company?: string | undefined;
1065
+ timeOut?: string | undefined;
1066
+ escortedBy?: string | undefined;
1067
+ }>, "many">>;
1068
+ photos: z.ZodOptional<z.ZodArray<z.ZodObject<{
1069
+ url: z.ZodString;
1070
+ caption: z.ZodOptional<z.ZodString>;
1071
+ location: z.ZodOptional<z.ZodString>;
1072
+ timestamp: z.ZodString;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ timestamp: string;
1075
+ url: string;
1076
+ caption?: string | undefined;
1077
+ location?: string | undefined;
1078
+ }, {
1079
+ timestamp: string;
1080
+ url: string;
1081
+ caption?: string | undefined;
1082
+ location?: string | undefined;
1083
+ }>, "many">>;
1084
+ notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1085
+ hubEventIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1086
+ headcountFromBiometric: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1087
+ }, "strip", z.ZodTypeAny, {
1088
+ date?: string | undefined;
1089
+ notes?: string | undefined;
1090
+ weather?: {
1091
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
1092
+ temperature?: number | undefined;
1093
+ humidity?: number | undefined;
1094
+ windSpeed?: number | undefined;
1095
+ precipitation?: number | undefined;
1096
+ visibility?: number | undefined;
1097
+ } | undefined;
1098
+ workProgress?: {
1099
+ summary: string;
1100
+ completedTasks: string[];
1101
+ ongoingTasks: string[];
1102
+ plannedTasks: string[];
1103
+ delaysOrIssues?: string | undefined;
1104
+ } | undefined;
1105
+ crewAttendance?: {
1106
+ userId: string;
1107
+ hoursWorked: number;
1108
+ present: boolean;
1109
+ lateArrival: boolean;
1110
+ earlyDeparture: boolean;
1111
+ notes?: string | undefined;
1112
+ }[] | undefined;
1113
+ equipmentUsage?: {
1114
+ equipmentId: string;
1115
+ hoursUsed: number;
1116
+ issues?: string | undefined;
1117
+ operator?: string | undefined;
1118
+ fuelUsed?: number | undefined;
1119
+ }[] | undefined;
1120
+ materialDeliveries?: {
1121
+ unit: string;
1122
+ quantity: number;
1123
+ receivedBy: string;
1124
+ supplier: string;
1125
+ materialType: string;
1126
+ deliveryTime?: string | undefined;
1127
+ conditionNotes?: string | undefined;
1128
+ }[] | undefined;
1129
+ safetyObservations?: {
1130
+ incidents: number;
1131
+ nearMisses: number;
1132
+ safetyMeetingHeld: boolean;
1133
+ safetyIssues?: string | undefined;
1134
+ correctiveActions?: string | undefined;
1135
+ } | undefined;
1136
+ qualityInspections?: {
1137
+ area: string;
1138
+ inspector: string;
1139
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
1140
+ notes?: string | undefined;
1141
+ }[] | undefined;
1142
+ visitorLog?: {
1143
+ name: string;
1144
+ purpose: string;
1145
+ timeIn: string;
1146
+ company?: string | undefined;
1147
+ timeOut?: string | undefined;
1148
+ escortedBy?: string | undefined;
1149
+ }[] | undefined;
1150
+ photos?: {
1151
+ timestamp: string;
1152
+ url: string;
1153
+ caption?: string | undefined;
1154
+ location?: string | undefined;
1155
+ }[] | undefined;
1156
+ hubEventIds?: string[] | undefined;
1157
+ headcountFromBiometric?: number | undefined;
1158
+ }, {
1159
+ date?: string | undefined;
1160
+ notes?: string | undefined;
1161
+ weather?: {
1162
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
1163
+ temperature?: number | undefined;
1164
+ humidity?: number | undefined;
1165
+ windSpeed?: number | undefined;
1166
+ precipitation?: number | undefined;
1167
+ visibility?: number | undefined;
1168
+ } | undefined;
1169
+ workProgress?: {
1170
+ summary: string;
1171
+ completedTasks?: string[] | undefined;
1172
+ ongoingTasks?: string[] | undefined;
1173
+ plannedTasks?: string[] | undefined;
1174
+ delaysOrIssues?: string | undefined;
1175
+ } | undefined;
1176
+ crewAttendance?: {
1177
+ userId: string;
1178
+ hoursWorked: number;
1179
+ present: boolean;
1180
+ notes?: string | undefined;
1181
+ lateArrival?: boolean | undefined;
1182
+ earlyDeparture?: boolean | undefined;
1183
+ }[] | undefined;
1184
+ equipmentUsage?: {
1185
+ equipmentId: string;
1186
+ hoursUsed: number;
1187
+ issues?: string | undefined;
1188
+ operator?: string | undefined;
1189
+ fuelUsed?: number | undefined;
1190
+ }[] | undefined;
1191
+ materialDeliveries?: {
1192
+ unit: string;
1193
+ quantity: number;
1194
+ receivedBy: string;
1195
+ supplier: string;
1196
+ materialType: string;
1197
+ deliveryTime?: string | undefined;
1198
+ conditionNotes?: string | undefined;
1199
+ }[] | undefined;
1200
+ safetyObservations?: {
1201
+ incidents?: number | undefined;
1202
+ nearMisses?: number | undefined;
1203
+ safetyMeetingHeld?: boolean | undefined;
1204
+ safetyIssues?: string | undefined;
1205
+ correctiveActions?: string | undefined;
1206
+ } | undefined;
1207
+ qualityInspections?: {
1208
+ area: string;
1209
+ inspector: string;
1210
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
1211
+ notes?: string | undefined;
1212
+ }[] | undefined;
1213
+ visitorLog?: {
1214
+ name: string;
1215
+ purpose: string;
1216
+ timeIn: string;
1217
+ company?: string | undefined;
1218
+ timeOut?: string | undefined;
1219
+ escortedBy?: string | undefined;
1220
+ }[] | undefined;
1221
+ photos?: {
1222
+ timestamp: string;
1223
+ url: string;
1224
+ caption?: string | undefined;
1225
+ location?: string | undefined;
1226
+ }[] | undefined;
1227
+ hubEventIds?: string[] | undefined;
1228
+ headcountFromBiometric?: number | undefined;
1229
+ }>;
1230
+ export declare const LinkHubEventsRequestSchema: z.ZodObject<{
1231
+ hubEventIds: z.ZodArray<z.ZodString, "many">;
1232
+ headcountFromBiometric: z.ZodOptional<z.ZodNumber>;
1233
+ }, "strip", z.ZodTypeAny, {
1234
+ hubEventIds: string[];
1235
+ headcountFromBiometric?: number | undefined;
1236
+ }, {
1237
+ hubEventIds: string[];
1238
+ headcountFromBiometric?: number | undefined;
1239
+ }>;
1240
+ export declare const DailyLogSubmitRequestSchema: z.ZodObject<{
1241
+ notes: z.ZodOptional<z.ZodString>;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ notes?: string | undefined;
1244
+ }, {
1245
+ notes?: string | undefined;
1246
+ }>;
1247
+ export declare const DailyLogApproveRequestSchema: z.ZodObject<{
1248
+ notes: z.ZodOptional<z.ZodString>;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ notes?: string | undefined;
1251
+ }, {
1252
+ notes?: string | undefined;
1253
+ }>;
1254
+ export declare const DailyLogRejectRequestSchema: z.ZodObject<{
1255
+ reason: z.ZodString;
1256
+ }, "strip", z.ZodTypeAny, {
1257
+ reason: string;
1258
+ }, {
1259
+ reason: string;
1260
+ }>;
1261
+ export declare const DailyLogFiltersSchema: z.ZodObject<{
1262
+ page: z.ZodDefault<z.ZodNumber>;
1263
+ limit: z.ZodDefault<z.ZodNumber>;
1264
+ startDate: z.ZodOptional<z.ZodString>;
1265
+ endDate: z.ZodOptional<z.ZodString>;
1266
+ status: z.ZodOptional<z.ZodEnum<["DRAFT", "SUBMITTED", "APPROVED", "REJECTED"]>>;
1267
+ submittedBy: z.ZodOptional<z.ZodString>;
1268
+ weather: z.ZodOptional<z.ZodEnum<["SUNNY", "CLOUDY", "RAINY", "SNOWY", "WINDY", "FOGGY"]>>;
1269
+ hasIncidents: z.ZodOptional<z.ZodBoolean>;
1270
+ companyId: z.ZodOptional<z.ZodString>;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ page: number;
1273
+ limit: number;
1274
+ companyId?: string | undefined;
1275
+ status?: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT" | undefined;
1276
+ startDate?: string | undefined;
1277
+ endDate?: string | undefined;
1278
+ weather?: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY" | undefined;
1279
+ submittedBy?: string | undefined;
1280
+ hasIncidents?: boolean | undefined;
1281
+ }, {
1282
+ companyId?: string | undefined;
1283
+ status?: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT" | undefined;
1284
+ page?: number | undefined;
1285
+ limit?: number | undefined;
1286
+ startDate?: string | undefined;
1287
+ endDate?: string | undefined;
1288
+ weather?: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY" | undefined;
1289
+ submittedBy?: string | undefined;
1290
+ hasIncidents?: boolean | undefined;
1291
+ }>;
1292
+ export declare const DailyLogQueryParamsSchema: z.ZodObject<{
1293
+ companyId: z.ZodOptional<z.ZodString>;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ companyId?: string | undefined;
1296
+ }, {
1297
+ companyId?: string | undefined;
1298
+ }>;
1299
+ export declare const DailyLogTemplateQuerySchema: z.ZodObject<{
1300
+ companyId: z.ZodOptional<z.ZodString>;
1301
+ } & {
1302
+ date: z.ZodOptional<z.ZodString>;
1303
+ }, "strip", z.ZodTypeAny, {
1304
+ companyId?: string | undefined;
1305
+ date?: string | undefined;
1306
+ }, {
1307
+ companyId?: string | undefined;
1308
+ date?: string | undefined;
1309
+ }>;
1310
+ export declare const DailyLogSummaryQuerySchema: z.ZodObject<{
1311
+ companyId: z.ZodOptional<z.ZodString>;
1312
+ } & {
1313
+ startDate: z.ZodOptional<z.ZodString>;
1314
+ endDate: z.ZodOptional<z.ZodString>;
1315
+ groupBy: z.ZodDefault<z.ZodEnum<["day", "week", "month"]>>;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ groupBy: "month" | "day" | "week";
1318
+ companyId?: string | undefined;
1319
+ startDate?: string | undefined;
1320
+ endDate?: string | undefined;
1321
+ }, {
1322
+ companyId?: string | undefined;
1323
+ startDate?: string | undefined;
1324
+ endDate?: string | undefined;
1325
+ groupBy?: "month" | "day" | "week" | undefined;
1326
+ }>;
1327
+ export declare const DailyLogTemplateCrewMemberSchema: z.ZodObject<{
1328
+ userId: z.ZodString;
1329
+ name: z.ZodString;
1330
+ role: z.ZodString;
1331
+ }, "strip", z.ZodTypeAny, {
1332
+ userId: string;
1333
+ role: string;
1334
+ name: string;
1335
+ }, {
1336
+ userId: string;
1337
+ role: string;
1338
+ name: string;
1339
+ }>;
1340
+ export declare const DailyLogTemplateEquipmentSchema: z.ZodObject<{
1341
+ equipmentId: z.ZodString;
1342
+ equipmentName: z.ZodString;
1343
+ type: z.ZodString;
1344
+ }, "strip", z.ZodTypeAny, {
1345
+ type: string;
1346
+ equipmentId: string;
1347
+ equipmentName: string;
1348
+ }, {
1349
+ type: string;
1350
+ equipmentId: string;
1351
+ equipmentName: string;
1352
+ }>;
1353
+ export declare const DailyLogTemplateTaskSchema: z.ZodObject<{
1354
+ taskId: z.ZodString;
1355
+ taskName: z.ZodString;
1356
+ status: z.ZodString;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ status: string;
1359
+ taskId: string;
1360
+ taskName: string;
1361
+ }, {
1362
+ status: string;
1363
+ taskId: string;
1364
+ taskName: string;
1365
+ }>;
1366
+ export declare const DailyLogTemplateWeatherSchema: z.ZodObject<{
1367
+ condition: z.ZodOptional<z.ZodString>;
1368
+ temperature: z.ZodOptional<z.ZodNumber>;
1369
+ forecast: z.ZodOptional<z.ZodString>;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ condition?: string | undefined;
1372
+ temperature?: number | undefined;
1373
+ forecast?: string | undefined;
1374
+ }, {
1375
+ condition?: string | undefined;
1376
+ temperature?: number | undefined;
1377
+ forecast?: string | undefined;
1378
+ }>;
1379
+ export declare const DailyLogSummaryPeriodSchema: z.ZodObject<{
1380
+ startDate: z.ZodString;
1381
+ endDate: z.ZodString;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ startDate: string;
1384
+ endDate: string;
1385
+ }, {
1386
+ startDate: string;
1387
+ endDate: string;
1388
+ }>;
1389
+ export declare const DailyLogSummaryStatsSchema: z.ZodObject<{
1390
+ totalLogs: z.ZodNumber;
1391
+ averageCrewSize: z.ZodNumber;
1392
+ totalHoursWorked: z.ZodNumber;
1393
+ totalEquipmentHours: z.ZodNumber;
1394
+ incidentCount: z.ZodNumber;
1395
+ nearMissCount: z.ZodNumber;
1396
+ weatherBreakdown: z.ZodRecord<z.ZodString, z.ZodNumber>;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ totalLogs: number;
1399
+ averageCrewSize: number;
1400
+ totalHoursWorked: number;
1401
+ totalEquipmentHours: number;
1402
+ incidentCount: number;
1403
+ nearMissCount: number;
1404
+ weatherBreakdown: Record<string, number>;
1405
+ }, {
1406
+ totalLogs: number;
1407
+ averageCrewSize: number;
1408
+ totalHoursWorked: number;
1409
+ totalEquipmentHours: number;
1410
+ incidentCount: number;
1411
+ nearMissCount: number;
1412
+ weatherBreakdown: Record<string, number>;
1413
+ }>;
1414
+ export declare const DailyLogTrendSchema: z.ZodObject<{
1415
+ date: z.ZodString;
1416
+ crewSize: z.ZodNumber;
1417
+ hoursWorked: z.ZodNumber;
1418
+ equipmentHours: z.ZodNumber;
1419
+ incidents: z.ZodNumber;
1420
+ productivity: z.ZodNumber;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ date: string;
1423
+ hoursWorked: number;
1424
+ incidents: number;
1425
+ crewSize: number;
1426
+ equipmentHours: number;
1427
+ productivity: number;
1428
+ }, {
1429
+ date: string;
1430
+ hoursWorked: number;
1431
+ incidents: number;
1432
+ crewSize: number;
1433
+ equipmentHours: number;
1434
+ productivity: number;
1435
+ }>;
1436
+ export declare const DailyLogResourceSchema: z.ZodObject<{
1437
+ type: z.ZodLiteral<"daily-logs">;
1438
+ id: z.ZodString;
1439
+ attributes: z.ZodObject<Omit<{
1440
+ id: z.ZodString;
1441
+ projectId: z.ZodString;
1442
+ logNumber: z.ZodOptional<z.ZodString>;
1443
+ date: z.ZodString;
1444
+ weather: z.ZodObject<{
1445
+ condition: z.ZodEnum<["SUNNY", "CLOUDY", "RAINY", "SNOWY", "WINDY", "FOGGY"]>;
1446
+ temperature: z.ZodOptional<z.ZodNumber>;
1447
+ humidity: z.ZodOptional<z.ZodNumber>;
1448
+ windSpeed: z.ZodOptional<z.ZodNumber>;
1449
+ precipitation: z.ZodOptional<z.ZodNumber>;
1450
+ visibility: z.ZodOptional<z.ZodNumber>;
1451
+ }, "strip", z.ZodTypeAny, {
1452
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
1453
+ temperature?: number | undefined;
1454
+ humidity?: number | undefined;
1455
+ windSpeed?: number | undefined;
1456
+ precipitation?: number | undefined;
1457
+ visibility?: number | undefined;
1458
+ }, {
1459
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
1460
+ temperature?: number | undefined;
1461
+ humidity?: number | undefined;
1462
+ windSpeed?: number | undefined;
1463
+ precipitation?: number | undefined;
1464
+ visibility?: number | undefined;
1465
+ }>;
1466
+ workProgress: z.ZodObject<{
1467
+ summary: z.ZodString;
1468
+ completedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1469
+ ongoingTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1470
+ plannedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1471
+ delaysOrIssues: z.ZodOptional<z.ZodString>;
1472
+ }, "strip", z.ZodTypeAny, {
1473
+ summary: string;
1474
+ completedTasks: string[];
1475
+ ongoingTasks: string[];
1476
+ plannedTasks: string[];
1477
+ delaysOrIssues?: string | undefined;
1478
+ }, {
1479
+ summary: string;
1480
+ completedTasks?: string[] | undefined;
1481
+ ongoingTasks?: string[] | undefined;
1482
+ plannedTasks?: string[] | undefined;
1483
+ delaysOrIssues?: string | undefined;
1484
+ }>;
1485
+ crewAttendance: z.ZodArray<z.ZodObject<{
1486
+ userId: z.ZodString;
1487
+ name: z.ZodString;
1488
+ role: z.ZodString;
1489
+ hoursWorked: z.ZodNumber;
1490
+ present: z.ZodBoolean;
1491
+ lateArrival: z.ZodDefault<z.ZodBoolean>;
1492
+ earlyDeparture: z.ZodDefault<z.ZodBoolean>;
1493
+ notes: z.ZodOptional<z.ZodString>;
1494
+ }, "strip", z.ZodTypeAny, {
1495
+ userId: string;
1496
+ role: string;
1497
+ name: string;
1498
+ hoursWorked: number;
1499
+ present: boolean;
1500
+ lateArrival: boolean;
1501
+ earlyDeparture: boolean;
1502
+ notes?: string | undefined;
1503
+ }, {
1504
+ userId: string;
1505
+ role: string;
1506
+ name: string;
1507
+ hoursWorked: number;
1508
+ present: boolean;
1509
+ notes?: string | undefined;
1510
+ lateArrival?: boolean | undefined;
1511
+ earlyDeparture?: boolean | undefined;
1512
+ }>, "many">;
1513
+ equipmentUsage: z.ZodArray<z.ZodObject<{
1514
+ equipmentId: z.ZodString;
1515
+ equipmentName: z.ZodString;
1516
+ hoursUsed: z.ZodNumber;
1517
+ operator: z.ZodOptional<z.ZodString>;
1518
+ fuelUsed: z.ZodOptional<z.ZodNumber>;
1519
+ issues: z.ZodOptional<z.ZodString>;
1520
+ }, "strip", z.ZodTypeAny, {
1521
+ equipmentId: string;
1522
+ equipmentName: string;
1523
+ hoursUsed: number;
1524
+ issues?: string | undefined;
1525
+ operator?: string | undefined;
1526
+ fuelUsed?: number | undefined;
1527
+ }, {
1528
+ equipmentId: string;
1529
+ equipmentName: string;
1530
+ hoursUsed: number;
1531
+ issues?: string | undefined;
1532
+ operator?: string | undefined;
1533
+ fuelUsed?: number | undefined;
1534
+ }>, "many">;
1535
+ materialDeliveries: z.ZodArray<z.ZodObject<{
1536
+ supplier: z.ZodString;
1537
+ materialType: z.ZodString;
1538
+ quantity: z.ZodNumber;
1539
+ unit: z.ZodString;
1540
+ deliveryTime: z.ZodOptional<z.ZodString>;
1541
+ receivedBy: z.ZodString;
1542
+ conditionNotes: z.ZodOptional<z.ZodString>;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ unit: string;
1545
+ quantity: number;
1546
+ receivedBy: string;
1547
+ supplier: string;
1548
+ materialType: string;
1549
+ deliveryTime?: string | undefined;
1550
+ conditionNotes?: string | undefined;
1551
+ }, {
1552
+ unit: string;
1553
+ quantity: number;
1554
+ receivedBy: string;
1555
+ supplier: string;
1556
+ materialType: string;
1557
+ deliveryTime?: string | undefined;
1558
+ conditionNotes?: string | undefined;
1559
+ }>, "many">;
1560
+ safetyObservations: z.ZodObject<{
1561
+ incidents: z.ZodDefault<z.ZodNumber>;
1562
+ nearMisses: z.ZodDefault<z.ZodNumber>;
1563
+ safetyMeetingHeld: z.ZodDefault<z.ZodBoolean>;
1564
+ safetyIssues: z.ZodOptional<z.ZodString>;
1565
+ correctiveActions: z.ZodOptional<z.ZodString>;
1566
+ }, "strip", z.ZodTypeAny, {
1567
+ incidents: number;
1568
+ nearMisses: number;
1569
+ safetyMeetingHeld: boolean;
1570
+ safetyIssues?: string | undefined;
1571
+ correctiveActions?: string | undefined;
1572
+ }, {
1573
+ incidents?: number | undefined;
1574
+ nearMisses?: number | undefined;
1575
+ safetyMeetingHeld?: boolean | undefined;
1576
+ safetyIssues?: string | undefined;
1577
+ correctiveActions?: string | undefined;
1578
+ }>;
1579
+ qualityInspections: z.ZodArray<z.ZodObject<{
1580
+ area: z.ZodString;
1581
+ inspector: z.ZodString;
1582
+ result: z.ZodEnum<["PASSED", "FAILED", "CONDITIONAL"]>;
1583
+ notes: z.ZodOptional<z.ZodString>;
1584
+ }, "strip", z.ZodTypeAny, {
1585
+ area: string;
1586
+ inspector: string;
1587
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
1588
+ notes?: string | undefined;
1589
+ }, {
1590
+ area: string;
1591
+ inspector: string;
1592
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
1593
+ notes?: string | undefined;
1594
+ }>, "many">;
1595
+ visitorLog: z.ZodArray<z.ZodObject<{
1596
+ name: z.ZodString;
1597
+ company: z.ZodOptional<z.ZodString>;
1598
+ purpose: z.ZodString;
1599
+ timeIn: z.ZodString;
1600
+ timeOut: z.ZodOptional<z.ZodString>;
1601
+ escortedBy: z.ZodOptional<z.ZodString>;
1602
+ }, "strip", z.ZodTypeAny, {
1603
+ name: string;
1604
+ purpose: string;
1605
+ timeIn: string;
1606
+ company?: string | undefined;
1607
+ timeOut?: string | undefined;
1608
+ escortedBy?: string | undefined;
1609
+ }, {
1610
+ name: string;
1611
+ purpose: string;
1612
+ timeIn: string;
1613
+ company?: string | undefined;
1614
+ timeOut?: string | undefined;
1615
+ escortedBy?: string | undefined;
1616
+ }>, "many">;
1617
+ photos: z.ZodArray<z.ZodObject<{
1618
+ url: z.ZodString;
1619
+ caption: z.ZodOptional<z.ZodString>;
1620
+ location: z.ZodOptional<z.ZodString>;
1621
+ timestamp: z.ZodString;
1622
+ }, "strip", z.ZodTypeAny, {
1623
+ timestamp: string;
1624
+ url: string;
1625
+ caption?: string | undefined;
1626
+ location?: string | undefined;
1627
+ }, {
1628
+ timestamp: string;
1629
+ url: string;
1630
+ caption?: string | undefined;
1631
+ location?: string | undefined;
1632
+ }>, "many">;
1633
+ notes: z.ZodOptional<z.ZodString>;
1634
+ hubEventIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1635
+ headcountFromBiometric: z.ZodOptional<z.ZodNumber>;
1636
+ submittedBy: z.ZodString;
1637
+ submittedAt: z.ZodString;
1638
+ approvedBy: z.ZodOptional<z.ZodString>;
1639
+ approvedAt: z.ZodOptional<z.ZodString>;
1640
+ status: z.ZodDefault<z.ZodEnum<["DRAFT", "SUBMITTED", "APPROVED", "REJECTED"]>>;
1641
+ createdAt: z.ZodString;
1642
+ updatedAt: z.ZodString;
1643
+ }, "id">, "strip", z.ZodTypeAny, {
1644
+ createdAt: string;
1645
+ updatedAt: string;
1646
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
1647
+ date: string;
1648
+ projectId: string;
1649
+ submittedAt: string;
1650
+ weather: {
1651
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
1652
+ temperature?: number | undefined;
1653
+ humidity?: number | undefined;
1654
+ windSpeed?: number | undefined;
1655
+ precipitation?: number | undefined;
1656
+ visibility?: number | undefined;
1657
+ };
1658
+ workProgress: {
1659
+ summary: string;
1660
+ completedTasks: string[];
1661
+ ongoingTasks: string[];
1662
+ plannedTasks: string[];
1663
+ delaysOrIssues?: string | undefined;
1664
+ };
1665
+ crewAttendance: {
1666
+ userId: string;
1667
+ role: string;
1668
+ name: string;
1669
+ hoursWorked: number;
1670
+ present: boolean;
1671
+ lateArrival: boolean;
1672
+ earlyDeparture: boolean;
1673
+ notes?: string | undefined;
1674
+ }[];
1675
+ equipmentUsage: {
1676
+ equipmentId: string;
1677
+ equipmentName: string;
1678
+ hoursUsed: number;
1679
+ issues?: string | undefined;
1680
+ operator?: string | undefined;
1681
+ fuelUsed?: number | undefined;
1682
+ }[];
1683
+ materialDeliveries: {
1684
+ unit: string;
1685
+ quantity: number;
1686
+ receivedBy: string;
1687
+ supplier: string;
1688
+ materialType: string;
1689
+ deliveryTime?: string | undefined;
1690
+ conditionNotes?: string | undefined;
1691
+ }[];
1692
+ safetyObservations: {
1693
+ incidents: number;
1694
+ nearMisses: number;
1695
+ safetyMeetingHeld: boolean;
1696
+ safetyIssues?: string | undefined;
1697
+ correctiveActions?: string | undefined;
1698
+ };
1699
+ qualityInspections: {
1700
+ area: string;
1701
+ inspector: string;
1702
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
1703
+ notes?: string | undefined;
1704
+ }[];
1705
+ visitorLog: {
1706
+ name: string;
1707
+ purpose: string;
1708
+ timeIn: string;
1709
+ company?: string | undefined;
1710
+ timeOut?: string | undefined;
1711
+ escortedBy?: string | undefined;
1712
+ }[];
1713
+ photos: {
1714
+ timestamp: string;
1715
+ url: string;
1716
+ caption?: string | undefined;
1717
+ location?: string | undefined;
1718
+ }[];
1719
+ hubEventIds: string[];
1720
+ submittedBy: string;
1721
+ approvedBy?: string | undefined;
1722
+ approvedAt?: string | undefined;
1723
+ notes?: string | undefined;
1724
+ logNumber?: string | undefined;
1725
+ headcountFromBiometric?: number | undefined;
1726
+ }, {
1727
+ createdAt: string;
1728
+ updatedAt: string;
1729
+ date: string;
1730
+ projectId: string;
1731
+ submittedAt: string;
1732
+ weather: {
1733
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
1734
+ temperature?: number | undefined;
1735
+ humidity?: number | undefined;
1736
+ windSpeed?: number | undefined;
1737
+ precipitation?: number | undefined;
1738
+ visibility?: number | undefined;
1739
+ };
1740
+ workProgress: {
1741
+ summary: string;
1742
+ completedTasks?: string[] | undefined;
1743
+ ongoingTasks?: string[] | undefined;
1744
+ plannedTasks?: string[] | undefined;
1745
+ delaysOrIssues?: string | undefined;
1746
+ };
1747
+ crewAttendance: {
1748
+ userId: string;
1749
+ role: string;
1750
+ name: string;
1751
+ hoursWorked: number;
1752
+ present: boolean;
1753
+ notes?: string | undefined;
1754
+ lateArrival?: boolean | undefined;
1755
+ earlyDeparture?: boolean | undefined;
1756
+ }[];
1757
+ equipmentUsage: {
1758
+ equipmentId: string;
1759
+ equipmentName: string;
1760
+ hoursUsed: number;
1761
+ issues?: string | undefined;
1762
+ operator?: string | undefined;
1763
+ fuelUsed?: number | undefined;
1764
+ }[];
1765
+ materialDeliveries: {
1766
+ unit: string;
1767
+ quantity: number;
1768
+ receivedBy: string;
1769
+ supplier: string;
1770
+ materialType: string;
1771
+ deliveryTime?: string | undefined;
1772
+ conditionNotes?: string | undefined;
1773
+ }[];
1774
+ safetyObservations: {
1775
+ incidents?: number | undefined;
1776
+ nearMisses?: number | undefined;
1777
+ safetyMeetingHeld?: boolean | undefined;
1778
+ safetyIssues?: string | undefined;
1779
+ correctiveActions?: string | undefined;
1780
+ };
1781
+ qualityInspections: {
1782
+ area: string;
1783
+ inspector: string;
1784
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
1785
+ notes?: string | undefined;
1786
+ }[];
1787
+ visitorLog: {
1788
+ name: string;
1789
+ purpose: string;
1790
+ timeIn: string;
1791
+ company?: string | undefined;
1792
+ timeOut?: string | undefined;
1793
+ escortedBy?: string | undefined;
1794
+ }[];
1795
+ photos: {
1796
+ timestamp: string;
1797
+ url: string;
1798
+ caption?: string | undefined;
1799
+ location?: string | undefined;
1800
+ }[];
1801
+ submittedBy: string;
1802
+ status?: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT" | undefined;
1803
+ approvedBy?: string | undefined;
1804
+ approvedAt?: string | undefined;
1805
+ notes?: string | undefined;
1806
+ logNumber?: string | undefined;
1807
+ hubEventIds?: string[] | undefined;
1808
+ headcountFromBiometric?: number | undefined;
1809
+ }>;
1810
+ }, "strip", z.ZodTypeAny, {
1811
+ id: string;
1812
+ type: "daily-logs";
1813
+ attributes: {
1814
+ createdAt: string;
1815
+ updatedAt: string;
1816
+ status: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT";
1817
+ date: string;
1818
+ projectId: string;
1819
+ submittedAt: string;
1820
+ weather: {
1821
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
1822
+ temperature?: number | undefined;
1823
+ humidity?: number | undefined;
1824
+ windSpeed?: number | undefined;
1825
+ precipitation?: number | undefined;
1826
+ visibility?: number | undefined;
1827
+ };
1828
+ workProgress: {
1829
+ summary: string;
1830
+ completedTasks: string[];
1831
+ ongoingTasks: string[];
1832
+ plannedTasks: string[];
1833
+ delaysOrIssues?: string | undefined;
1834
+ };
1835
+ crewAttendance: {
1836
+ userId: string;
1837
+ role: string;
1838
+ name: string;
1839
+ hoursWorked: number;
1840
+ present: boolean;
1841
+ lateArrival: boolean;
1842
+ earlyDeparture: boolean;
1843
+ notes?: string | undefined;
1844
+ }[];
1845
+ equipmentUsage: {
1846
+ equipmentId: string;
1847
+ equipmentName: string;
1848
+ hoursUsed: number;
1849
+ issues?: string | undefined;
1850
+ operator?: string | undefined;
1851
+ fuelUsed?: number | undefined;
1852
+ }[];
1853
+ materialDeliveries: {
1854
+ unit: string;
1855
+ quantity: number;
1856
+ receivedBy: string;
1857
+ supplier: string;
1858
+ materialType: string;
1859
+ deliveryTime?: string | undefined;
1860
+ conditionNotes?: string | undefined;
1861
+ }[];
1862
+ safetyObservations: {
1863
+ incidents: number;
1864
+ nearMisses: number;
1865
+ safetyMeetingHeld: boolean;
1866
+ safetyIssues?: string | undefined;
1867
+ correctiveActions?: string | undefined;
1868
+ };
1869
+ qualityInspections: {
1870
+ area: string;
1871
+ inspector: string;
1872
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
1873
+ notes?: string | undefined;
1874
+ }[];
1875
+ visitorLog: {
1876
+ name: string;
1877
+ purpose: string;
1878
+ timeIn: string;
1879
+ company?: string | undefined;
1880
+ timeOut?: string | undefined;
1881
+ escortedBy?: string | undefined;
1882
+ }[];
1883
+ photos: {
1884
+ timestamp: string;
1885
+ url: string;
1886
+ caption?: string | undefined;
1887
+ location?: string | undefined;
1888
+ }[];
1889
+ hubEventIds: string[];
1890
+ submittedBy: string;
1891
+ approvedBy?: string | undefined;
1892
+ approvedAt?: string | undefined;
1893
+ notes?: string | undefined;
1894
+ logNumber?: string | undefined;
1895
+ headcountFromBiometric?: number | undefined;
1896
+ };
1897
+ }, {
1898
+ id: string;
1899
+ type: "daily-logs";
1900
+ attributes: {
1901
+ createdAt: string;
1902
+ updatedAt: string;
1903
+ date: string;
1904
+ projectId: string;
1905
+ submittedAt: string;
1906
+ weather: {
1907
+ condition: "SUNNY" | "CLOUDY" | "RAINY" | "SNOWY" | "WINDY" | "FOGGY";
1908
+ temperature?: number | undefined;
1909
+ humidity?: number | undefined;
1910
+ windSpeed?: number | undefined;
1911
+ precipitation?: number | undefined;
1912
+ visibility?: number | undefined;
1913
+ };
1914
+ workProgress: {
1915
+ summary: string;
1916
+ completedTasks?: string[] | undefined;
1917
+ ongoingTasks?: string[] | undefined;
1918
+ plannedTasks?: string[] | undefined;
1919
+ delaysOrIssues?: string | undefined;
1920
+ };
1921
+ crewAttendance: {
1922
+ userId: string;
1923
+ role: string;
1924
+ name: string;
1925
+ hoursWorked: number;
1926
+ present: boolean;
1927
+ notes?: string | undefined;
1928
+ lateArrival?: boolean | undefined;
1929
+ earlyDeparture?: boolean | undefined;
1930
+ }[];
1931
+ equipmentUsage: {
1932
+ equipmentId: string;
1933
+ equipmentName: string;
1934
+ hoursUsed: number;
1935
+ issues?: string | undefined;
1936
+ operator?: string | undefined;
1937
+ fuelUsed?: number | undefined;
1938
+ }[];
1939
+ materialDeliveries: {
1940
+ unit: string;
1941
+ quantity: number;
1942
+ receivedBy: string;
1943
+ supplier: string;
1944
+ materialType: string;
1945
+ deliveryTime?: string | undefined;
1946
+ conditionNotes?: string | undefined;
1947
+ }[];
1948
+ safetyObservations: {
1949
+ incidents?: number | undefined;
1950
+ nearMisses?: number | undefined;
1951
+ safetyMeetingHeld?: boolean | undefined;
1952
+ safetyIssues?: string | undefined;
1953
+ correctiveActions?: string | undefined;
1954
+ };
1955
+ qualityInspections: {
1956
+ area: string;
1957
+ inspector: string;
1958
+ result: "FAILED" | "PASSED" | "CONDITIONAL";
1959
+ notes?: string | undefined;
1960
+ }[];
1961
+ visitorLog: {
1962
+ name: string;
1963
+ purpose: string;
1964
+ timeIn: string;
1965
+ company?: string | undefined;
1966
+ timeOut?: string | undefined;
1967
+ escortedBy?: string | undefined;
1968
+ }[];
1969
+ photos: {
1970
+ timestamp: string;
1971
+ url: string;
1972
+ caption?: string | undefined;
1973
+ location?: string | undefined;
1974
+ }[];
1975
+ submittedBy: string;
1976
+ status?: "SUBMITTED" | "APPROVED" | "REJECTED" | "DRAFT" | undefined;
1977
+ approvedBy?: string | undefined;
1978
+ approvedAt?: string | undefined;
1979
+ notes?: string | undefined;
1980
+ logNumber?: string | undefined;
1981
+ hubEventIds?: string[] | undefined;
1982
+ headcountFromBiometric?: number | undefined;
1983
+ };
1984
+ }>;
1985
+ export declare const DailyLogTemplateResourceSchema: z.ZodObject<{
1986
+ type: z.ZodLiteral<"daily-log-templates">;
1987
+ id: z.ZodString;
1988
+ attributes: z.ZodObject<{
1989
+ projectId: z.ZodString;
1990
+ date: z.ZodString;
1991
+ crewMembers: z.ZodArray<z.ZodObject<{
1992
+ userId: z.ZodString;
1993
+ name: z.ZodString;
1994
+ role: z.ZodString;
1995
+ }, "strip", z.ZodTypeAny, {
1996
+ userId: string;
1997
+ role: string;
1998
+ name: string;
1999
+ }, {
2000
+ userId: string;
2001
+ role: string;
2002
+ name: string;
2003
+ }>, "many">;
2004
+ equipment: z.ZodArray<z.ZodObject<{
2005
+ equipmentId: z.ZodString;
2006
+ equipmentName: z.ZodString;
2007
+ type: z.ZodString;
2008
+ }, "strip", z.ZodTypeAny, {
2009
+ type: string;
2010
+ equipmentId: string;
2011
+ equipmentName: string;
2012
+ }, {
2013
+ type: string;
2014
+ equipmentId: string;
2015
+ equipmentName: string;
2016
+ }>, "many">;
2017
+ scheduledTasks: z.ZodArray<z.ZodObject<{
2018
+ taskId: z.ZodString;
2019
+ taskName: z.ZodString;
2020
+ status: z.ZodString;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ status: string;
2023
+ taskId: string;
2024
+ taskName: string;
2025
+ }, {
2026
+ status: string;
2027
+ taskId: string;
2028
+ taskName: string;
2029
+ }>, "many">;
2030
+ weather: z.ZodObject<{
2031
+ condition: z.ZodOptional<z.ZodString>;
2032
+ temperature: z.ZodOptional<z.ZodNumber>;
2033
+ forecast: z.ZodOptional<z.ZodString>;
2034
+ }, "strip", z.ZodTypeAny, {
2035
+ condition?: string | undefined;
2036
+ temperature?: number | undefined;
2037
+ forecast?: string | undefined;
2038
+ }, {
2039
+ condition?: string | undefined;
2040
+ temperature?: number | undefined;
2041
+ forecast?: string | undefined;
2042
+ }>;
2043
+ }, "strip", z.ZodTypeAny, {
2044
+ date: string;
2045
+ projectId: string;
2046
+ weather: {
2047
+ condition?: string | undefined;
2048
+ temperature?: number | undefined;
2049
+ forecast?: string | undefined;
2050
+ };
2051
+ crewMembers: {
2052
+ userId: string;
2053
+ role: string;
2054
+ name: string;
2055
+ }[];
2056
+ equipment: {
2057
+ type: string;
2058
+ equipmentId: string;
2059
+ equipmentName: string;
2060
+ }[];
2061
+ scheduledTasks: {
2062
+ status: string;
2063
+ taskId: string;
2064
+ taskName: string;
2065
+ }[];
2066
+ }, {
2067
+ date: string;
2068
+ projectId: string;
2069
+ weather: {
2070
+ condition?: string | undefined;
2071
+ temperature?: number | undefined;
2072
+ forecast?: string | undefined;
2073
+ };
2074
+ crewMembers: {
2075
+ userId: string;
2076
+ role: string;
2077
+ name: string;
2078
+ }[];
2079
+ equipment: {
2080
+ type: string;
2081
+ equipmentId: string;
2082
+ equipmentName: string;
2083
+ }[];
2084
+ scheduledTasks: {
2085
+ status: string;
2086
+ taskId: string;
2087
+ taskName: string;
2088
+ }[];
2089
+ }>;
2090
+ }, "strip", z.ZodTypeAny, {
2091
+ id: string;
2092
+ type: "daily-log-templates";
2093
+ attributes: {
2094
+ date: string;
2095
+ projectId: string;
2096
+ weather: {
2097
+ condition?: string | undefined;
2098
+ temperature?: number | undefined;
2099
+ forecast?: string | undefined;
2100
+ };
2101
+ crewMembers: {
2102
+ userId: string;
2103
+ role: string;
2104
+ name: string;
2105
+ }[];
2106
+ equipment: {
2107
+ type: string;
2108
+ equipmentId: string;
2109
+ equipmentName: string;
2110
+ }[];
2111
+ scheduledTasks: {
2112
+ status: string;
2113
+ taskId: string;
2114
+ taskName: string;
2115
+ }[];
2116
+ };
2117
+ }, {
2118
+ id: string;
2119
+ type: "daily-log-templates";
2120
+ attributes: {
2121
+ date: string;
2122
+ projectId: string;
2123
+ weather: {
2124
+ condition?: string | undefined;
2125
+ temperature?: number | undefined;
2126
+ forecast?: string | undefined;
2127
+ };
2128
+ crewMembers: {
2129
+ userId: string;
2130
+ role: string;
2131
+ name: string;
2132
+ }[];
2133
+ equipment: {
2134
+ type: string;
2135
+ equipmentId: string;
2136
+ equipmentName: string;
2137
+ }[];
2138
+ scheduledTasks: {
2139
+ status: string;
2140
+ taskId: string;
2141
+ taskName: string;
2142
+ }[];
2143
+ };
2144
+ }>;
2145
+ export declare const DailyLogSummaryResourceSchema: z.ZodObject<{
2146
+ type: z.ZodLiteral<"daily-log-summaries">;
2147
+ id: z.ZodString;
2148
+ attributes: z.ZodObject<{
2149
+ projectId: z.ZodString;
2150
+ period: z.ZodObject<{
2151
+ startDate: z.ZodString;
2152
+ endDate: z.ZodString;
2153
+ }, "strip", z.ZodTypeAny, {
2154
+ startDate: string;
2155
+ endDate: string;
2156
+ }, {
2157
+ startDate: string;
2158
+ endDate: string;
2159
+ }>;
2160
+ summary: z.ZodObject<{
2161
+ totalLogs: z.ZodNumber;
2162
+ averageCrewSize: z.ZodNumber;
2163
+ totalHoursWorked: z.ZodNumber;
2164
+ totalEquipmentHours: z.ZodNumber;
2165
+ incidentCount: z.ZodNumber;
2166
+ nearMissCount: z.ZodNumber;
2167
+ weatherBreakdown: z.ZodRecord<z.ZodString, z.ZodNumber>;
2168
+ }, "strip", z.ZodTypeAny, {
2169
+ totalLogs: number;
2170
+ averageCrewSize: number;
2171
+ totalHoursWorked: number;
2172
+ totalEquipmentHours: number;
2173
+ incidentCount: number;
2174
+ nearMissCount: number;
2175
+ weatherBreakdown: Record<string, number>;
2176
+ }, {
2177
+ totalLogs: number;
2178
+ averageCrewSize: number;
2179
+ totalHoursWorked: number;
2180
+ totalEquipmentHours: number;
2181
+ incidentCount: number;
2182
+ nearMissCount: number;
2183
+ weatherBreakdown: Record<string, number>;
2184
+ }>;
2185
+ trends: z.ZodArray<z.ZodObject<{
2186
+ date: z.ZodString;
2187
+ crewSize: z.ZodNumber;
2188
+ hoursWorked: z.ZodNumber;
2189
+ equipmentHours: z.ZodNumber;
2190
+ incidents: z.ZodNumber;
2191
+ productivity: z.ZodNumber;
2192
+ }, "strip", z.ZodTypeAny, {
2193
+ date: string;
2194
+ hoursWorked: number;
2195
+ incidents: number;
2196
+ crewSize: number;
2197
+ equipmentHours: number;
2198
+ productivity: number;
2199
+ }, {
2200
+ date: string;
2201
+ hoursWorked: number;
2202
+ incidents: number;
2203
+ crewSize: number;
2204
+ equipmentHours: number;
2205
+ productivity: number;
2206
+ }>, "many">;
2207
+ }, "strip", z.ZodTypeAny, {
2208
+ projectId: string;
2209
+ summary: {
2210
+ totalLogs: number;
2211
+ averageCrewSize: number;
2212
+ totalHoursWorked: number;
2213
+ totalEquipmentHours: number;
2214
+ incidentCount: number;
2215
+ nearMissCount: number;
2216
+ weatherBreakdown: Record<string, number>;
2217
+ };
2218
+ period: {
2219
+ startDate: string;
2220
+ endDate: string;
2221
+ };
2222
+ trends: {
2223
+ date: string;
2224
+ hoursWorked: number;
2225
+ incidents: number;
2226
+ crewSize: number;
2227
+ equipmentHours: number;
2228
+ productivity: number;
2229
+ }[];
2230
+ }, {
2231
+ projectId: string;
2232
+ summary: {
2233
+ totalLogs: number;
2234
+ averageCrewSize: number;
2235
+ totalHoursWorked: number;
2236
+ totalEquipmentHours: number;
2237
+ incidentCount: number;
2238
+ nearMissCount: number;
2239
+ weatherBreakdown: Record<string, number>;
2240
+ };
2241
+ period: {
2242
+ startDate: string;
2243
+ endDate: string;
2244
+ };
2245
+ trends: {
2246
+ date: string;
2247
+ hoursWorked: number;
2248
+ incidents: number;
2249
+ crewSize: number;
2250
+ equipmentHours: number;
2251
+ productivity: number;
2252
+ }[];
2253
+ }>;
2254
+ }, "strip", z.ZodTypeAny, {
2255
+ id: string;
2256
+ type: "daily-log-summaries";
2257
+ attributes: {
2258
+ projectId: string;
2259
+ summary: {
2260
+ totalLogs: number;
2261
+ averageCrewSize: number;
2262
+ totalHoursWorked: number;
2263
+ totalEquipmentHours: number;
2264
+ incidentCount: number;
2265
+ nearMissCount: number;
2266
+ weatherBreakdown: Record<string, number>;
2267
+ };
2268
+ period: {
2269
+ startDate: string;
2270
+ endDate: string;
2271
+ };
2272
+ trends: {
2273
+ date: string;
2274
+ hoursWorked: number;
2275
+ incidents: number;
2276
+ crewSize: number;
2277
+ equipmentHours: number;
2278
+ productivity: number;
2279
+ }[];
2280
+ };
2281
+ }, {
2282
+ id: string;
2283
+ type: "daily-log-summaries";
2284
+ attributes: {
2285
+ projectId: string;
2286
+ summary: {
2287
+ totalLogs: number;
2288
+ averageCrewSize: number;
2289
+ totalHoursWorked: number;
2290
+ totalEquipmentHours: number;
2291
+ incidentCount: number;
2292
+ nearMissCount: number;
2293
+ weatherBreakdown: Record<string, number>;
2294
+ };
2295
+ period: {
2296
+ startDate: string;
2297
+ endDate: string;
2298
+ };
2299
+ trends: {
2300
+ date: string;
2301
+ hoursWorked: number;
2302
+ incidents: number;
2303
+ crewSize: number;
2304
+ equipmentHours: number;
2305
+ productivity: number;
2306
+ }[];
2307
+ };
2308
+ }>;
2309
+ export type DailyLog = z.infer<typeof DailyLogSchema>;
2310
+ export type WeatherCondition = z.infer<typeof WeatherConditionSchema>;
2311
+ export type DailyLogStatus = z.infer<typeof DailyLogStatusSchema>;
2312
+ export type QualityInspectionResult = z.infer<typeof QualityInspectionResultSchema>;
2313
+ export type DailyLogGroupBy = z.infer<typeof DailyLogGroupBySchema>;
2314
+ export type DailyLogWeather = z.infer<typeof DailyLogWeatherSchema>;
2315
+ export type DailyLogWorkProgress = z.infer<typeof DailyLogWorkProgressSchema>;
2316
+ export type DailyLogCrewAttendance = z.infer<typeof DailyLogCrewAttendanceSchema>;
2317
+ export type DailyLogEquipmentUsage = z.infer<typeof DailyLogEquipmentUsageSchema>;
2318
+ export type DailyLogMaterialDelivery = z.infer<typeof DailyLogMaterialDeliverySchema>;
2319
+ export type DailyLogSafetyObservations = z.infer<typeof DailyLogSafetyObservationsSchema>;
2320
+ export type DailyLogQualityInspection = z.infer<typeof DailyLogQualityInspectionSchema>;
2321
+ export type DailyLogVisitor = z.infer<typeof DailyLogVisitorSchema>;
2322
+ export type DailyLogPhoto = z.infer<typeof DailyLogPhotoSchema>;
2323
+ export type CreateDailyLogRequest = z.infer<typeof CreateDailyLogRequestSchema>;
2324
+ export type UpdateDailyLogRequest = z.infer<typeof UpdateDailyLogRequestSchema>;
2325
+ export type DailyLogSubmitRequest = z.infer<typeof DailyLogSubmitRequestSchema>;
2326
+ export type DailyLogApproveRequest = z.infer<typeof DailyLogApproveRequestSchema>;
2327
+ export type DailyLogRejectRequest = z.infer<typeof DailyLogRejectRequestSchema>;
2328
+ export type DailyLogFilters = z.infer<typeof DailyLogFiltersSchema>;
2329
+ export type DailyLogQueryParams = z.infer<typeof DailyLogQueryParamsSchema>;
2330
+ export type DailyLogTemplateQuery = z.infer<typeof DailyLogTemplateQuerySchema>;
2331
+ export type DailyLogSummaryQuery = z.infer<typeof DailyLogSummaryQuerySchema>;
2332
+ export type DailyLogTemplateCrewMember = z.infer<typeof DailyLogTemplateCrewMemberSchema>;
2333
+ export type DailyLogTemplateEquipment = z.infer<typeof DailyLogTemplateEquipmentSchema>;
2334
+ export type DailyLogTemplateTask = z.infer<typeof DailyLogTemplateTaskSchema>;
2335
+ export type DailyLogTemplateWeather = z.infer<typeof DailyLogTemplateWeatherSchema>;
2336
+ export type DailyLogSummaryPeriod = z.infer<typeof DailyLogSummaryPeriodSchema>;
2337
+ export type DailyLogSummaryStats = z.infer<typeof DailyLogSummaryStatsSchema>;
2338
+ export type DailyLogTrend = z.infer<typeof DailyLogTrendSchema>;
2339
+ //# sourceMappingURL=daily-logs.d.ts.map