@deepintel-ltd/buildlink-api-contracts 0.2.28 → 0.2.30
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.
- package/README.md +1 -1
- package/contracts/auth.d.ts +68 -68
- package/contracts/boq.d.ts +18 -18
- package/contracts/budget.d.ts +1969 -173
- package/contracts/budget.d.ts.map +1 -1
- package/contracts/budget.js +36 -1
- package/contracts/budget.js.map +1 -1
- package/contracts/communication.d.ts +560 -0
- package/contracts/communication.d.ts.map +1 -1
- package/contracts/contractor-ledger.d.ts +508 -12
- package/contracts/contractor-ledger.d.ts.map +1 -1
- package/contracts/contractor-ledger.js +29 -1
- package/contracts/contractor-ledger.js.map +1 -1
- package/contracts/daily-logs.d.ts +1362 -74
- package/contracts/daily-logs.d.ts.map +1 -1
- package/contracts/deficiencies.d.ts +4516 -436
- package/contracts/deficiencies.d.ts.map +1 -1
- package/contracts/deficiencies.js +99 -1
- package/contracts/deficiencies.js.map +1 -1
- package/contracts/directory.d.ts +48 -48
- package/contracts/documents.d.ts +149 -149
- package/contracts/drawings.d.ts +246 -246
- package/contracts/hub.d.ts +18 -18
- package/contracts/index.d.ts +3 -2
- package/contracts/index.d.ts.map +1 -1
- package/contracts/index.js +2 -2
- package/contracts/index.js.map +1 -1
- package/contracts/maps.d.ts +42 -42
- package/contracts/packages.d.ts +24 -24
- package/contracts/projects.d.ts +610 -50
- package/contracts/projects.d.ts.map +1 -1
- package/contracts/proof.d.ts +694 -0
- package/contracts/proof.d.ts.map +1 -1
- package/contracts/proof.js +41 -1
- package/contracts/proof.js.map +1 -1
- package/contracts/qaqc.d.ts +546 -0
- package/contracts/qaqc.d.ts.map +1 -1
- package/contracts/qaqc.js +15 -1
- package/contracts/qaqc.js.map +1 -1
- package/contracts/rbac.d.ts +6 -6
- package/contracts/resources.d.ts +60 -60
- package/contracts/rfi-submittal.d.ts +128 -128
- package/contracts/safety.d.ts +2156 -162
- package/contracts/safety.d.ts.map +1 -1
- package/contracts/safety.js +44 -1
- package/contracts/safety.js.map +1 -1
- package/contracts/schedule.d.ts +84 -84
- package/contracts/specifications.d.ts +156 -156
- package/contracts/tasks.d.ts +2312 -229
- package/contracts/tasks.d.ts.map +1 -1
- package/contracts/tasks.js +55 -1
- package/contracts/tasks.js.map +1 -1
- package/contracts/timecards.d.ts +32 -32
- package/contracts/valuations.d.ts +64 -64
- package/package.json +1 -1
- package/schemas/auth.d.ts +36 -36
- package/schemas/boq.d.ts +6 -6
- package/schemas/budget.d.ts +168 -4
- package/schemas/budget.d.ts.map +1 -1
- package/schemas/budget.js +31 -1
- package/schemas/budget.js.map +1 -1
- package/schemas/common.d.ts +37 -0
- package/schemas/common.d.ts.map +1 -1
- package/schemas/common.js +34 -0
- package/schemas/common.js.map +1 -1
- package/schemas/common.person-summary.spec.d.ts +2 -0
- package/schemas/common.person-summary.spec.d.ts.map +1 -0
- package/schemas/common.person-summary.spec.js +33 -0
- package/schemas/common.person-summary.spec.js.map +1 -0
- package/schemas/communication.d.ts +94 -0
- package/schemas/communication.d.ts.map +1 -1
- package/schemas/communication.js +3 -1
- package/schemas/communication.js.map +1 -1
- package/schemas/contractor-ledger.d.ts +77 -6
- package/schemas/contractor-ledger.d.ts.map +1 -1
- package/schemas/contractor-ledger.js +13 -0
- package/schemas/contractor-ledger.js.map +1 -1
- package/schemas/daily-logs.d.ts +232 -22
- package/schemas/daily-logs.d.ts.map +1 -1
- package/schemas/daily-logs.js +7 -1
- package/schemas/daily-logs.js.map +1 -1
- package/schemas/deficiencies.d.ts +793 -100
- package/schemas/deficiencies.d.ts.map +1 -1
- package/schemas/deficiencies.js +79 -6
- package/schemas/deficiencies.js.map +1 -1
- package/schemas/directory.d.ts +20 -20
- package/schemas/documents.d.ts +3 -3
- package/schemas/drawings.d.ts +74 -74
- package/schemas/hub.d.ts +6 -6
- package/schemas/maps.d.ts +6 -6
- package/schemas/packages.d.ts +6 -6
- package/schemas/projects.d.ts +8 -8
- package/schemas/proof.d.ts +20 -0
- package/schemas/proof.d.ts.map +1 -1
- package/schemas/proof.js +7 -0
- package/schemas/proof.js.map +1 -1
- package/schemas/qaqc.d.ts +74 -0
- package/schemas/qaqc.d.ts.map +1 -1
- package/schemas/qaqc.js +26 -1
- package/schemas/qaqc.js.map +1 -1
- package/schemas/resources.d.ts +18 -18
- package/schemas/rfi.d.ts +52 -52
- package/schemas/safety.d.ts +491 -0
- package/schemas/safety.d.ts.map +1 -1
- package/schemas/safety.js +54 -1
- package/schemas/safety.js.map +1 -1
- package/schemas/schedule.d.ts +68 -68
- package/schemas/specifications.d.ts +134 -134
- package/schemas/submittal.d.ts +52 -52
- package/schemas/tasks.d.ts +111 -23
- package/schemas/tasks.d.ts.map +1 -1
- package/schemas/tasks.js +11 -2
- package/schemas/tasks.js.map +1 -1
- package/schemas/timecards.d.ts +6 -6
- package/schemas/valuations.d.ts +12 -12
package/contracts/safety.d.ts
CHANGED
|
@@ -79,7 +79,53 @@ export declare const safetyContract: {
|
|
|
79
79
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
80
80
|
followUpDate: z.ZodOptional<z.ZodString>;
|
|
81
81
|
assignedTo: z.ZodOptional<z.ZodString>;
|
|
82
|
+
reporter: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
email: z.ZodOptional<z.ZodString>;
|
|
87
|
+
name: z.ZodOptional<z.ZodString>;
|
|
88
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
id: string;
|
|
91
|
+
firstName?: string | null | undefined;
|
|
92
|
+
lastName?: string | null | undefined;
|
|
93
|
+
email?: string | undefined;
|
|
94
|
+
name?: string | undefined;
|
|
95
|
+
avatar?: string | null | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
id: string;
|
|
98
|
+
firstName?: string | null | undefined;
|
|
99
|
+
lastName?: string | null | undefined;
|
|
100
|
+
email?: string | undefined;
|
|
101
|
+
name?: string | undefined;
|
|
102
|
+
avatar?: string | null | undefined;
|
|
103
|
+
}>>;
|
|
104
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
email: z.ZodOptional<z.ZodString>;
|
|
109
|
+
name: z.ZodOptional<z.ZodString>;
|
|
110
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
id: string;
|
|
113
|
+
firstName?: string | null | undefined;
|
|
114
|
+
lastName?: string | null | undefined;
|
|
115
|
+
email?: string | undefined;
|
|
116
|
+
name?: string | undefined;
|
|
117
|
+
avatar?: string | null | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
id: string;
|
|
120
|
+
firstName?: string | null | undefined;
|
|
121
|
+
lastName?: string | null | undefined;
|
|
122
|
+
email?: string | undefined;
|
|
123
|
+
name?: string | undefined;
|
|
124
|
+
avatar?: string | null | undefined;
|
|
125
|
+
}>>;
|
|
82
126
|
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
127
|
+
closedAt: z.ZodOptional<z.ZodString>;
|
|
128
|
+
photos: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
83
129
|
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
84
130
|
id: z.ZodString;
|
|
85
131
|
filename: z.ZodString;
|
|
@@ -114,6 +160,7 @@ export declare const safetyContract: {
|
|
|
114
160
|
uploadedAt: string;
|
|
115
161
|
}[];
|
|
116
162
|
location: string;
|
|
163
|
+
photos: string[];
|
|
117
164
|
reportedBy: string;
|
|
118
165
|
reportedAt: string;
|
|
119
166
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -131,10 +178,27 @@ export declare const safetyContract: {
|
|
|
131
178
|
correctiveActions?: string | undefined;
|
|
132
179
|
resolvedAt?: string | undefined;
|
|
133
180
|
assignedTo?: string | undefined;
|
|
181
|
+
assignee?: {
|
|
182
|
+
id: string;
|
|
183
|
+
firstName?: string | null | undefined;
|
|
184
|
+
lastName?: string | null | undefined;
|
|
185
|
+
email?: string | undefined;
|
|
186
|
+
name?: string | undefined;
|
|
187
|
+
avatar?: string | null | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
reporter?: {
|
|
190
|
+
id: string;
|
|
191
|
+
firstName?: string | null | undefined;
|
|
192
|
+
lastName?: string | null | undefined;
|
|
193
|
+
email?: string | undefined;
|
|
194
|
+
name?: string | undefined;
|
|
195
|
+
avatar?: string | null | undefined;
|
|
196
|
+
} | undefined;
|
|
134
197
|
immediateActions?: string | undefined;
|
|
135
198
|
rootCause?: string | undefined;
|
|
136
199
|
preventiveActions?: string | undefined;
|
|
137
200
|
followUpDate?: string | undefined;
|
|
201
|
+
closedAt?: string | undefined;
|
|
138
202
|
}, {
|
|
139
203
|
id: string;
|
|
140
204
|
createdAt: string;
|
|
@@ -156,8 +220,25 @@ export declare const safetyContract: {
|
|
|
156
220
|
uploadedAt: string;
|
|
157
221
|
}[] | undefined;
|
|
158
222
|
correctiveActions?: string | undefined;
|
|
223
|
+
photos?: string[] | undefined;
|
|
159
224
|
resolvedAt?: string | undefined;
|
|
160
225
|
assignedTo?: string | undefined;
|
|
226
|
+
assignee?: {
|
|
227
|
+
id: string;
|
|
228
|
+
firstName?: string | null | undefined;
|
|
229
|
+
lastName?: string | null | undefined;
|
|
230
|
+
email?: string | undefined;
|
|
231
|
+
name?: string | undefined;
|
|
232
|
+
avatar?: string | null | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
reporter?: {
|
|
235
|
+
id: string;
|
|
236
|
+
firstName?: string | null | undefined;
|
|
237
|
+
lastName?: string | null | undefined;
|
|
238
|
+
email?: string | undefined;
|
|
239
|
+
name?: string | undefined;
|
|
240
|
+
avatar?: string | null | undefined;
|
|
241
|
+
} | undefined;
|
|
161
242
|
injuryOccurred?: boolean | undefined;
|
|
162
243
|
medicalAttentionRequired?: boolean | undefined;
|
|
163
244
|
workRelated?: boolean | undefined;
|
|
@@ -172,6 +253,7 @@ export declare const safetyContract: {
|
|
|
172
253
|
preventiveActions?: string | undefined;
|
|
173
254
|
followUpRequired?: boolean | undefined;
|
|
174
255
|
followUpDate?: string | undefined;
|
|
256
|
+
closedAt?: string | undefined;
|
|
175
257
|
}>;
|
|
176
258
|
}, "strip", z.ZodTypeAny, {
|
|
177
259
|
id: string;
|
|
@@ -192,6 +274,7 @@ export declare const safetyContract: {
|
|
|
192
274
|
uploadedAt: string;
|
|
193
275
|
}[];
|
|
194
276
|
location: string;
|
|
277
|
+
photos: string[];
|
|
195
278
|
reportedBy: string;
|
|
196
279
|
reportedAt: string;
|
|
197
280
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -209,10 +292,27 @@ export declare const safetyContract: {
|
|
|
209
292
|
correctiveActions?: string | undefined;
|
|
210
293
|
resolvedAt?: string | undefined;
|
|
211
294
|
assignedTo?: string | undefined;
|
|
295
|
+
assignee?: {
|
|
296
|
+
id: string;
|
|
297
|
+
firstName?: string | null | undefined;
|
|
298
|
+
lastName?: string | null | undefined;
|
|
299
|
+
email?: string | undefined;
|
|
300
|
+
name?: string | undefined;
|
|
301
|
+
avatar?: string | null | undefined;
|
|
302
|
+
} | undefined;
|
|
303
|
+
reporter?: {
|
|
304
|
+
id: string;
|
|
305
|
+
firstName?: string | null | undefined;
|
|
306
|
+
lastName?: string | null | undefined;
|
|
307
|
+
email?: string | undefined;
|
|
308
|
+
name?: string | undefined;
|
|
309
|
+
avatar?: string | null | undefined;
|
|
310
|
+
} | undefined;
|
|
212
311
|
immediateActions?: string | undefined;
|
|
213
312
|
rootCause?: string | undefined;
|
|
214
313
|
preventiveActions?: string | undefined;
|
|
215
314
|
followUpDate?: string | undefined;
|
|
315
|
+
closedAt?: string | undefined;
|
|
216
316
|
};
|
|
217
317
|
}, {
|
|
218
318
|
id: string;
|
|
@@ -238,8 +338,25 @@ export declare const safetyContract: {
|
|
|
238
338
|
uploadedAt: string;
|
|
239
339
|
}[] | undefined;
|
|
240
340
|
correctiveActions?: string | undefined;
|
|
341
|
+
photos?: string[] | undefined;
|
|
241
342
|
resolvedAt?: string | undefined;
|
|
242
343
|
assignedTo?: string | undefined;
|
|
344
|
+
assignee?: {
|
|
345
|
+
id: string;
|
|
346
|
+
firstName?: string | null | undefined;
|
|
347
|
+
lastName?: string | null | undefined;
|
|
348
|
+
email?: string | undefined;
|
|
349
|
+
name?: string | undefined;
|
|
350
|
+
avatar?: string | null | undefined;
|
|
351
|
+
} | undefined;
|
|
352
|
+
reporter?: {
|
|
353
|
+
id: string;
|
|
354
|
+
firstName?: string | null | undefined;
|
|
355
|
+
lastName?: string | null | undefined;
|
|
356
|
+
email?: string | undefined;
|
|
357
|
+
name?: string | undefined;
|
|
358
|
+
avatar?: string | null | undefined;
|
|
359
|
+
} | undefined;
|
|
243
360
|
injuryOccurred?: boolean | undefined;
|
|
244
361
|
medicalAttentionRequired?: boolean | undefined;
|
|
245
362
|
workRelated?: boolean | undefined;
|
|
@@ -254,6 +371,7 @@ export declare const safetyContract: {
|
|
|
254
371
|
preventiveActions?: string | undefined;
|
|
255
372
|
followUpRequired?: boolean | undefined;
|
|
256
373
|
followUpDate?: string | undefined;
|
|
374
|
+
closedAt?: string | undefined;
|
|
257
375
|
};
|
|
258
376
|
}>, "many">;
|
|
259
377
|
meta: z.ZodOptional<z.ZodObject<{
|
|
@@ -317,6 +435,7 @@ export declare const safetyContract: {
|
|
|
317
435
|
uploadedAt: string;
|
|
318
436
|
}[];
|
|
319
437
|
location: string;
|
|
438
|
+
photos: string[];
|
|
320
439
|
reportedBy: string;
|
|
321
440
|
reportedAt: string;
|
|
322
441
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -334,10 +453,27 @@ export declare const safetyContract: {
|
|
|
334
453
|
correctiveActions?: string | undefined;
|
|
335
454
|
resolvedAt?: string | undefined;
|
|
336
455
|
assignedTo?: string | undefined;
|
|
456
|
+
assignee?: {
|
|
457
|
+
id: string;
|
|
458
|
+
firstName?: string | null | undefined;
|
|
459
|
+
lastName?: string | null | undefined;
|
|
460
|
+
email?: string | undefined;
|
|
461
|
+
name?: string | undefined;
|
|
462
|
+
avatar?: string | null | undefined;
|
|
463
|
+
} | undefined;
|
|
464
|
+
reporter?: {
|
|
465
|
+
id: string;
|
|
466
|
+
firstName?: string | null | undefined;
|
|
467
|
+
lastName?: string | null | undefined;
|
|
468
|
+
email?: string | undefined;
|
|
469
|
+
name?: string | undefined;
|
|
470
|
+
avatar?: string | null | undefined;
|
|
471
|
+
} | undefined;
|
|
337
472
|
immediateActions?: string | undefined;
|
|
338
473
|
rootCause?: string | undefined;
|
|
339
474
|
preventiveActions?: string | undefined;
|
|
340
475
|
followUpDate?: string | undefined;
|
|
476
|
+
closedAt?: string | undefined;
|
|
341
477
|
};
|
|
342
478
|
}[];
|
|
343
479
|
meta?: {
|
|
@@ -380,8 +516,25 @@ export declare const safetyContract: {
|
|
|
380
516
|
uploadedAt: string;
|
|
381
517
|
}[] | undefined;
|
|
382
518
|
correctiveActions?: string | undefined;
|
|
519
|
+
photos?: string[] | undefined;
|
|
383
520
|
resolvedAt?: string | undefined;
|
|
384
521
|
assignedTo?: string | undefined;
|
|
522
|
+
assignee?: {
|
|
523
|
+
id: string;
|
|
524
|
+
firstName?: string | null | undefined;
|
|
525
|
+
lastName?: string | null | undefined;
|
|
526
|
+
email?: string | undefined;
|
|
527
|
+
name?: string | undefined;
|
|
528
|
+
avatar?: string | null | undefined;
|
|
529
|
+
} | undefined;
|
|
530
|
+
reporter?: {
|
|
531
|
+
id: string;
|
|
532
|
+
firstName?: string | null | undefined;
|
|
533
|
+
lastName?: string | null | undefined;
|
|
534
|
+
email?: string | undefined;
|
|
535
|
+
name?: string | undefined;
|
|
536
|
+
avatar?: string | null | undefined;
|
|
537
|
+
} | undefined;
|
|
385
538
|
injuryOccurred?: boolean | undefined;
|
|
386
539
|
medicalAttentionRequired?: boolean | undefined;
|
|
387
540
|
workRelated?: boolean | undefined;
|
|
@@ -396,6 +549,7 @@ export declare const safetyContract: {
|
|
|
396
549
|
preventiveActions?: string | undefined;
|
|
397
550
|
followUpRequired?: boolean | undefined;
|
|
398
551
|
followUpDate?: string | undefined;
|
|
552
|
+
closedAt?: string | undefined;
|
|
399
553
|
};
|
|
400
554
|
}[];
|
|
401
555
|
meta?: {
|
|
@@ -480,6 +634,7 @@ export declare const safetyContract: {
|
|
|
480
634
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
481
635
|
followUpDate: z.ZodOptional<z.ZodString>;
|
|
482
636
|
assignedTo: z.ZodOptional<z.ZodString>;
|
|
637
|
+
photos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
483
638
|
}, "strip", z.ZodTypeAny, {
|
|
484
639
|
type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
|
|
485
640
|
title: string;
|
|
@@ -498,6 +653,7 @@ export declare const safetyContract: {
|
|
|
498
653
|
statement?: string | undefined;
|
|
499
654
|
}[];
|
|
500
655
|
followUpRequired: boolean;
|
|
656
|
+
photos?: string[] | undefined;
|
|
501
657
|
assignedTo?: string | undefined;
|
|
502
658
|
immediateActions?: string | undefined;
|
|
503
659
|
followUpDate?: string | undefined;
|
|
@@ -509,6 +665,7 @@ export declare const safetyContract: {
|
|
|
509
665
|
location: string;
|
|
510
666
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
511
667
|
dateOccurred: string;
|
|
668
|
+
photos?: string[] | undefined;
|
|
512
669
|
assignedTo?: string | undefined;
|
|
513
670
|
injuryOccurred?: boolean | undefined;
|
|
514
671
|
medicalAttentionRequired?: boolean | undefined;
|
|
@@ -565,7 +722,53 @@ export declare const safetyContract: {
|
|
|
565
722
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
566
723
|
followUpDate: z.ZodOptional<z.ZodString>;
|
|
567
724
|
assignedTo: z.ZodOptional<z.ZodString>;
|
|
725
|
+
reporter: z.ZodOptional<z.ZodObject<{
|
|
726
|
+
id: z.ZodString;
|
|
727
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
728
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
729
|
+
email: z.ZodOptional<z.ZodString>;
|
|
730
|
+
name: z.ZodOptional<z.ZodString>;
|
|
731
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
732
|
+
}, "strip", z.ZodTypeAny, {
|
|
733
|
+
id: string;
|
|
734
|
+
firstName?: string | null | undefined;
|
|
735
|
+
lastName?: string | null | undefined;
|
|
736
|
+
email?: string | undefined;
|
|
737
|
+
name?: string | undefined;
|
|
738
|
+
avatar?: string | null | undefined;
|
|
739
|
+
}, {
|
|
740
|
+
id: string;
|
|
741
|
+
firstName?: string | null | undefined;
|
|
742
|
+
lastName?: string | null | undefined;
|
|
743
|
+
email?: string | undefined;
|
|
744
|
+
name?: string | undefined;
|
|
745
|
+
avatar?: string | null | undefined;
|
|
746
|
+
}>>;
|
|
747
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
748
|
+
id: z.ZodString;
|
|
749
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
750
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
751
|
+
email: z.ZodOptional<z.ZodString>;
|
|
752
|
+
name: z.ZodOptional<z.ZodString>;
|
|
753
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
754
|
+
}, "strip", z.ZodTypeAny, {
|
|
755
|
+
id: string;
|
|
756
|
+
firstName?: string | null | undefined;
|
|
757
|
+
lastName?: string | null | undefined;
|
|
758
|
+
email?: string | undefined;
|
|
759
|
+
name?: string | undefined;
|
|
760
|
+
avatar?: string | null | undefined;
|
|
761
|
+
}, {
|
|
762
|
+
id: string;
|
|
763
|
+
firstName?: string | null | undefined;
|
|
764
|
+
lastName?: string | null | undefined;
|
|
765
|
+
email?: string | undefined;
|
|
766
|
+
name?: string | undefined;
|
|
767
|
+
avatar?: string | null | undefined;
|
|
768
|
+
}>>;
|
|
568
769
|
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
770
|
+
closedAt: z.ZodOptional<z.ZodString>;
|
|
771
|
+
photos: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
569
772
|
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
570
773
|
id: z.ZodString;
|
|
571
774
|
filename: z.ZodString;
|
|
@@ -600,6 +803,7 @@ export declare const safetyContract: {
|
|
|
600
803
|
uploadedAt: string;
|
|
601
804
|
}[];
|
|
602
805
|
location: string;
|
|
806
|
+
photos: string[];
|
|
603
807
|
reportedBy: string;
|
|
604
808
|
reportedAt: string;
|
|
605
809
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -617,10 +821,27 @@ export declare const safetyContract: {
|
|
|
617
821
|
correctiveActions?: string | undefined;
|
|
618
822
|
resolvedAt?: string | undefined;
|
|
619
823
|
assignedTo?: string | undefined;
|
|
824
|
+
assignee?: {
|
|
825
|
+
id: string;
|
|
826
|
+
firstName?: string | null | undefined;
|
|
827
|
+
lastName?: string | null | undefined;
|
|
828
|
+
email?: string | undefined;
|
|
829
|
+
name?: string | undefined;
|
|
830
|
+
avatar?: string | null | undefined;
|
|
831
|
+
} | undefined;
|
|
832
|
+
reporter?: {
|
|
833
|
+
id: string;
|
|
834
|
+
firstName?: string | null | undefined;
|
|
835
|
+
lastName?: string | null | undefined;
|
|
836
|
+
email?: string | undefined;
|
|
837
|
+
name?: string | undefined;
|
|
838
|
+
avatar?: string | null | undefined;
|
|
839
|
+
} | undefined;
|
|
620
840
|
immediateActions?: string | undefined;
|
|
621
841
|
rootCause?: string | undefined;
|
|
622
842
|
preventiveActions?: string | undefined;
|
|
623
843
|
followUpDate?: string | undefined;
|
|
844
|
+
closedAt?: string | undefined;
|
|
624
845
|
}, {
|
|
625
846
|
id: string;
|
|
626
847
|
createdAt: string;
|
|
@@ -642,8 +863,25 @@ export declare const safetyContract: {
|
|
|
642
863
|
uploadedAt: string;
|
|
643
864
|
}[] | undefined;
|
|
644
865
|
correctiveActions?: string | undefined;
|
|
866
|
+
photos?: string[] | undefined;
|
|
645
867
|
resolvedAt?: string | undefined;
|
|
646
868
|
assignedTo?: string | undefined;
|
|
869
|
+
assignee?: {
|
|
870
|
+
id: string;
|
|
871
|
+
firstName?: string | null | undefined;
|
|
872
|
+
lastName?: string | null | undefined;
|
|
873
|
+
email?: string | undefined;
|
|
874
|
+
name?: string | undefined;
|
|
875
|
+
avatar?: string | null | undefined;
|
|
876
|
+
} | undefined;
|
|
877
|
+
reporter?: {
|
|
878
|
+
id: string;
|
|
879
|
+
firstName?: string | null | undefined;
|
|
880
|
+
lastName?: string | null | undefined;
|
|
881
|
+
email?: string | undefined;
|
|
882
|
+
name?: string | undefined;
|
|
883
|
+
avatar?: string | null | undefined;
|
|
884
|
+
} | undefined;
|
|
647
885
|
injuryOccurred?: boolean | undefined;
|
|
648
886
|
medicalAttentionRequired?: boolean | undefined;
|
|
649
887
|
workRelated?: boolean | undefined;
|
|
@@ -658,6 +896,7 @@ export declare const safetyContract: {
|
|
|
658
896
|
preventiveActions?: string | undefined;
|
|
659
897
|
followUpRequired?: boolean | undefined;
|
|
660
898
|
followUpDate?: string | undefined;
|
|
899
|
+
closedAt?: string | undefined;
|
|
661
900
|
}>;
|
|
662
901
|
}, "strip", z.ZodTypeAny, {
|
|
663
902
|
id: string;
|
|
@@ -678,6 +917,7 @@ export declare const safetyContract: {
|
|
|
678
917
|
uploadedAt: string;
|
|
679
918
|
}[];
|
|
680
919
|
location: string;
|
|
920
|
+
photos: string[];
|
|
681
921
|
reportedBy: string;
|
|
682
922
|
reportedAt: string;
|
|
683
923
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -695,10 +935,27 @@ export declare const safetyContract: {
|
|
|
695
935
|
correctiveActions?: string | undefined;
|
|
696
936
|
resolvedAt?: string | undefined;
|
|
697
937
|
assignedTo?: string | undefined;
|
|
938
|
+
assignee?: {
|
|
939
|
+
id: string;
|
|
940
|
+
firstName?: string | null | undefined;
|
|
941
|
+
lastName?: string | null | undefined;
|
|
942
|
+
email?: string | undefined;
|
|
943
|
+
name?: string | undefined;
|
|
944
|
+
avatar?: string | null | undefined;
|
|
945
|
+
} | undefined;
|
|
946
|
+
reporter?: {
|
|
947
|
+
id: string;
|
|
948
|
+
firstName?: string | null | undefined;
|
|
949
|
+
lastName?: string | null | undefined;
|
|
950
|
+
email?: string | undefined;
|
|
951
|
+
name?: string | undefined;
|
|
952
|
+
avatar?: string | null | undefined;
|
|
953
|
+
} | undefined;
|
|
698
954
|
immediateActions?: string | undefined;
|
|
699
955
|
rootCause?: string | undefined;
|
|
700
956
|
preventiveActions?: string | undefined;
|
|
701
957
|
followUpDate?: string | undefined;
|
|
958
|
+
closedAt?: string | undefined;
|
|
702
959
|
};
|
|
703
960
|
}, {
|
|
704
961
|
id: string;
|
|
@@ -724,8 +981,25 @@ export declare const safetyContract: {
|
|
|
724
981
|
uploadedAt: string;
|
|
725
982
|
}[] | undefined;
|
|
726
983
|
correctiveActions?: string | undefined;
|
|
984
|
+
photos?: string[] | undefined;
|
|
727
985
|
resolvedAt?: string | undefined;
|
|
728
986
|
assignedTo?: string | undefined;
|
|
987
|
+
assignee?: {
|
|
988
|
+
id: string;
|
|
989
|
+
firstName?: string | null | undefined;
|
|
990
|
+
lastName?: string | null | undefined;
|
|
991
|
+
email?: string | undefined;
|
|
992
|
+
name?: string | undefined;
|
|
993
|
+
avatar?: string | null | undefined;
|
|
994
|
+
} | undefined;
|
|
995
|
+
reporter?: {
|
|
996
|
+
id: string;
|
|
997
|
+
firstName?: string | null | undefined;
|
|
998
|
+
lastName?: string | null | undefined;
|
|
999
|
+
email?: string | undefined;
|
|
1000
|
+
name?: string | undefined;
|
|
1001
|
+
avatar?: string | null | undefined;
|
|
1002
|
+
} | undefined;
|
|
729
1003
|
injuryOccurred?: boolean | undefined;
|
|
730
1004
|
medicalAttentionRequired?: boolean | undefined;
|
|
731
1005
|
workRelated?: boolean | undefined;
|
|
@@ -740,6 +1014,7 @@ export declare const safetyContract: {
|
|
|
740
1014
|
preventiveActions?: string | undefined;
|
|
741
1015
|
followUpRequired?: boolean | undefined;
|
|
742
1016
|
followUpDate?: string | undefined;
|
|
1017
|
+
closedAt?: string | undefined;
|
|
743
1018
|
};
|
|
744
1019
|
}>;
|
|
745
1020
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -798,6 +1073,7 @@ export declare const safetyContract: {
|
|
|
798
1073
|
uploadedAt: string;
|
|
799
1074
|
}[];
|
|
800
1075
|
location: string;
|
|
1076
|
+
photos: string[];
|
|
801
1077
|
reportedBy: string;
|
|
802
1078
|
reportedAt: string;
|
|
803
1079
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -815,10 +1091,27 @@ export declare const safetyContract: {
|
|
|
815
1091
|
correctiveActions?: string | undefined;
|
|
816
1092
|
resolvedAt?: string | undefined;
|
|
817
1093
|
assignedTo?: string | undefined;
|
|
1094
|
+
assignee?: {
|
|
1095
|
+
id: string;
|
|
1096
|
+
firstName?: string | null | undefined;
|
|
1097
|
+
lastName?: string | null | undefined;
|
|
1098
|
+
email?: string | undefined;
|
|
1099
|
+
name?: string | undefined;
|
|
1100
|
+
avatar?: string | null | undefined;
|
|
1101
|
+
} | undefined;
|
|
1102
|
+
reporter?: {
|
|
1103
|
+
id: string;
|
|
1104
|
+
firstName?: string | null | undefined;
|
|
1105
|
+
lastName?: string | null | undefined;
|
|
1106
|
+
email?: string | undefined;
|
|
1107
|
+
name?: string | undefined;
|
|
1108
|
+
avatar?: string | null | undefined;
|
|
1109
|
+
} | undefined;
|
|
818
1110
|
immediateActions?: string | undefined;
|
|
819
1111
|
rootCause?: string | undefined;
|
|
820
1112
|
preventiveActions?: string | undefined;
|
|
821
1113
|
followUpDate?: string | undefined;
|
|
1114
|
+
closedAt?: string | undefined;
|
|
822
1115
|
};
|
|
823
1116
|
};
|
|
824
1117
|
meta?: Record<string, unknown> | undefined;
|
|
@@ -860,8 +1153,25 @@ export declare const safetyContract: {
|
|
|
860
1153
|
uploadedAt: string;
|
|
861
1154
|
}[] | undefined;
|
|
862
1155
|
correctiveActions?: string | undefined;
|
|
1156
|
+
photos?: string[] | undefined;
|
|
863
1157
|
resolvedAt?: string | undefined;
|
|
864
1158
|
assignedTo?: string | undefined;
|
|
1159
|
+
assignee?: {
|
|
1160
|
+
id: string;
|
|
1161
|
+
firstName?: string | null | undefined;
|
|
1162
|
+
lastName?: string | null | undefined;
|
|
1163
|
+
email?: string | undefined;
|
|
1164
|
+
name?: string | undefined;
|
|
1165
|
+
avatar?: string | null | undefined;
|
|
1166
|
+
} | undefined;
|
|
1167
|
+
reporter?: {
|
|
1168
|
+
id: string;
|
|
1169
|
+
firstName?: string | null | undefined;
|
|
1170
|
+
lastName?: string | null | undefined;
|
|
1171
|
+
email?: string | undefined;
|
|
1172
|
+
name?: string | undefined;
|
|
1173
|
+
avatar?: string | null | undefined;
|
|
1174
|
+
} | undefined;
|
|
865
1175
|
injuryOccurred?: boolean | undefined;
|
|
866
1176
|
medicalAttentionRequired?: boolean | undefined;
|
|
867
1177
|
workRelated?: boolean | undefined;
|
|
@@ -876,6 +1186,7 @@ export declare const safetyContract: {
|
|
|
876
1186
|
preventiveActions?: string | undefined;
|
|
877
1187
|
followUpRequired?: boolean | undefined;
|
|
878
1188
|
followUpDate?: string | undefined;
|
|
1189
|
+
closedAt?: string | undefined;
|
|
879
1190
|
};
|
|
880
1191
|
};
|
|
881
1192
|
meta?: Record<string, unknown> | undefined;
|
|
@@ -1011,7 +1322,53 @@ export declare const safetyContract: {
|
|
|
1011
1322
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
1012
1323
|
followUpDate: z.ZodOptional<z.ZodString>;
|
|
1013
1324
|
assignedTo: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
reporter: z.ZodOptional<z.ZodObject<{
|
|
1326
|
+
id: z.ZodString;
|
|
1327
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1328
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1329
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1330
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1331
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1332
|
+
}, "strip", z.ZodTypeAny, {
|
|
1333
|
+
id: string;
|
|
1334
|
+
firstName?: string | null | undefined;
|
|
1335
|
+
lastName?: string | null | undefined;
|
|
1336
|
+
email?: string | undefined;
|
|
1337
|
+
name?: string | undefined;
|
|
1338
|
+
avatar?: string | null | undefined;
|
|
1339
|
+
}, {
|
|
1340
|
+
id: string;
|
|
1341
|
+
firstName?: string | null | undefined;
|
|
1342
|
+
lastName?: string | null | undefined;
|
|
1343
|
+
email?: string | undefined;
|
|
1344
|
+
name?: string | undefined;
|
|
1345
|
+
avatar?: string | null | undefined;
|
|
1346
|
+
}>>;
|
|
1347
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
1348
|
+
id: z.ZodString;
|
|
1349
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1350
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1351
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1354
|
+
}, "strip", z.ZodTypeAny, {
|
|
1355
|
+
id: string;
|
|
1356
|
+
firstName?: string | null | undefined;
|
|
1357
|
+
lastName?: string | null | undefined;
|
|
1358
|
+
email?: string | undefined;
|
|
1359
|
+
name?: string | undefined;
|
|
1360
|
+
avatar?: string | null | undefined;
|
|
1361
|
+
}, {
|
|
1362
|
+
id: string;
|
|
1363
|
+
firstName?: string | null | undefined;
|
|
1364
|
+
lastName?: string | null | undefined;
|
|
1365
|
+
email?: string | undefined;
|
|
1366
|
+
name?: string | undefined;
|
|
1367
|
+
avatar?: string | null | undefined;
|
|
1368
|
+
}>>;
|
|
1014
1369
|
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
closedAt: z.ZodOptional<z.ZodString>;
|
|
1371
|
+
photos: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1015
1372
|
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1016
1373
|
id: z.ZodString;
|
|
1017
1374
|
filename: z.ZodString;
|
|
@@ -1046,6 +1403,7 @@ export declare const safetyContract: {
|
|
|
1046
1403
|
uploadedAt: string;
|
|
1047
1404
|
}[];
|
|
1048
1405
|
location: string;
|
|
1406
|
+
photos: string[];
|
|
1049
1407
|
reportedBy: string;
|
|
1050
1408
|
reportedAt: string;
|
|
1051
1409
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -1063,10 +1421,27 @@ export declare const safetyContract: {
|
|
|
1063
1421
|
correctiveActions?: string | undefined;
|
|
1064
1422
|
resolvedAt?: string | undefined;
|
|
1065
1423
|
assignedTo?: string | undefined;
|
|
1424
|
+
assignee?: {
|
|
1425
|
+
id: string;
|
|
1426
|
+
firstName?: string | null | undefined;
|
|
1427
|
+
lastName?: string | null | undefined;
|
|
1428
|
+
email?: string | undefined;
|
|
1429
|
+
name?: string | undefined;
|
|
1430
|
+
avatar?: string | null | undefined;
|
|
1431
|
+
} | undefined;
|
|
1432
|
+
reporter?: {
|
|
1433
|
+
id: string;
|
|
1434
|
+
firstName?: string | null | undefined;
|
|
1435
|
+
lastName?: string | null | undefined;
|
|
1436
|
+
email?: string | undefined;
|
|
1437
|
+
name?: string | undefined;
|
|
1438
|
+
avatar?: string | null | undefined;
|
|
1439
|
+
} | undefined;
|
|
1066
1440
|
immediateActions?: string | undefined;
|
|
1067
1441
|
rootCause?: string | undefined;
|
|
1068
1442
|
preventiveActions?: string | undefined;
|
|
1069
1443
|
followUpDate?: string | undefined;
|
|
1444
|
+
closedAt?: string | undefined;
|
|
1070
1445
|
}, {
|
|
1071
1446
|
id: string;
|
|
1072
1447
|
createdAt: string;
|
|
@@ -1088,8 +1463,25 @@ export declare const safetyContract: {
|
|
|
1088
1463
|
uploadedAt: string;
|
|
1089
1464
|
}[] | undefined;
|
|
1090
1465
|
correctiveActions?: string | undefined;
|
|
1466
|
+
photos?: string[] | undefined;
|
|
1091
1467
|
resolvedAt?: string | undefined;
|
|
1092
1468
|
assignedTo?: string | undefined;
|
|
1469
|
+
assignee?: {
|
|
1470
|
+
id: string;
|
|
1471
|
+
firstName?: string | null | undefined;
|
|
1472
|
+
lastName?: string | null | undefined;
|
|
1473
|
+
email?: string | undefined;
|
|
1474
|
+
name?: string | undefined;
|
|
1475
|
+
avatar?: string | null | undefined;
|
|
1476
|
+
} | undefined;
|
|
1477
|
+
reporter?: {
|
|
1478
|
+
id: string;
|
|
1479
|
+
firstName?: string | null | undefined;
|
|
1480
|
+
lastName?: string | null | undefined;
|
|
1481
|
+
email?: string | undefined;
|
|
1482
|
+
name?: string | undefined;
|
|
1483
|
+
avatar?: string | null | undefined;
|
|
1484
|
+
} | undefined;
|
|
1093
1485
|
injuryOccurred?: boolean | undefined;
|
|
1094
1486
|
medicalAttentionRequired?: boolean | undefined;
|
|
1095
1487
|
workRelated?: boolean | undefined;
|
|
@@ -1104,6 +1496,7 @@ export declare const safetyContract: {
|
|
|
1104
1496
|
preventiveActions?: string | undefined;
|
|
1105
1497
|
followUpRequired?: boolean | undefined;
|
|
1106
1498
|
followUpDate?: string | undefined;
|
|
1499
|
+
closedAt?: string | undefined;
|
|
1107
1500
|
}>;
|
|
1108
1501
|
}, "strip", z.ZodTypeAny, {
|
|
1109
1502
|
id: string;
|
|
@@ -1124,6 +1517,7 @@ export declare const safetyContract: {
|
|
|
1124
1517
|
uploadedAt: string;
|
|
1125
1518
|
}[];
|
|
1126
1519
|
location: string;
|
|
1520
|
+
photos: string[];
|
|
1127
1521
|
reportedBy: string;
|
|
1128
1522
|
reportedAt: string;
|
|
1129
1523
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -1141,10 +1535,27 @@ export declare const safetyContract: {
|
|
|
1141
1535
|
correctiveActions?: string | undefined;
|
|
1142
1536
|
resolvedAt?: string | undefined;
|
|
1143
1537
|
assignedTo?: string | undefined;
|
|
1538
|
+
assignee?: {
|
|
1539
|
+
id: string;
|
|
1540
|
+
firstName?: string | null | undefined;
|
|
1541
|
+
lastName?: string | null | undefined;
|
|
1542
|
+
email?: string | undefined;
|
|
1543
|
+
name?: string | undefined;
|
|
1544
|
+
avatar?: string | null | undefined;
|
|
1545
|
+
} | undefined;
|
|
1546
|
+
reporter?: {
|
|
1547
|
+
id: string;
|
|
1548
|
+
firstName?: string | null | undefined;
|
|
1549
|
+
lastName?: string | null | undefined;
|
|
1550
|
+
email?: string | undefined;
|
|
1551
|
+
name?: string | undefined;
|
|
1552
|
+
avatar?: string | null | undefined;
|
|
1553
|
+
} | undefined;
|
|
1144
1554
|
immediateActions?: string | undefined;
|
|
1145
1555
|
rootCause?: string | undefined;
|
|
1146
1556
|
preventiveActions?: string | undefined;
|
|
1147
1557
|
followUpDate?: string | undefined;
|
|
1558
|
+
closedAt?: string | undefined;
|
|
1148
1559
|
};
|
|
1149
1560
|
}, {
|
|
1150
1561
|
id: string;
|
|
@@ -1170,8 +1581,25 @@ export declare const safetyContract: {
|
|
|
1170
1581
|
uploadedAt: string;
|
|
1171
1582
|
}[] | undefined;
|
|
1172
1583
|
correctiveActions?: string | undefined;
|
|
1584
|
+
photos?: string[] | undefined;
|
|
1173
1585
|
resolvedAt?: string | undefined;
|
|
1174
1586
|
assignedTo?: string | undefined;
|
|
1587
|
+
assignee?: {
|
|
1588
|
+
id: string;
|
|
1589
|
+
firstName?: string | null | undefined;
|
|
1590
|
+
lastName?: string | null | undefined;
|
|
1591
|
+
email?: string | undefined;
|
|
1592
|
+
name?: string | undefined;
|
|
1593
|
+
avatar?: string | null | undefined;
|
|
1594
|
+
} | undefined;
|
|
1595
|
+
reporter?: {
|
|
1596
|
+
id: string;
|
|
1597
|
+
firstName?: string | null | undefined;
|
|
1598
|
+
lastName?: string | null | undefined;
|
|
1599
|
+
email?: string | undefined;
|
|
1600
|
+
name?: string | undefined;
|
|
1601
|
+
avatar?: string | null | undefined;
|
|
1602
|
+
} | undefined;
|
|
1175
1603
|
injuryOccurred?: boolean | undefined;
|
|
1176
1604
|
medicalAttentionRequired?: boolean | undefined;
|
|
1177
1605
|
workRelated?: boolean | undefined;
|
|
@@ -1186,6 +1614,7 @@ export declare const safetyContract: {
|
|
|
1186
1614
|
preventiveActions?: string | undefined;
|
|
1187
1615
|
followUpRequired?: boolean | undefined;
|
|
1188
1616
|
followUpDate?: string | undefined;
|
|
1617
|
+
closedAt?: string | undefined;
|
|
1189
1618
|
};
|
|
1190
1619
|
}>;
|
|
1191
1620
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1244,6 +1673,7 @@ export declare const safetyContract: {
|
|
|
1244
1673
|
uploadedAt: string;
|
|
1245
1674
|
}[];
|
|
1246
1675
|
location: string;
|
|
1676
|
+
photos: string[];
|
|
1247
1677
|
reportedBy: string;
|
|
1248
1678
|
reportedAt: string;
|
|
1249
1679
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -1261,10 +1691,27 @@ export declare const safetyContract: {
|
|
|
1261
1691
|
correctiveActions?: string | undefined;
|
|
1262
1692
|
resolvedAt?: string | undefined;
|
|
1263
1693
|
assignedTo?: string | undefined;
|
|
1694
|
+
assignee?: {
|
|
1695
|
+
id: string;
|
|
1696
|
+
firstName?: string | null | undefined;
|
|
1697
|
+
lastName?: string | null | undefined;
|
|
1698
|
+
email?: string | undefined;
|
|
1699
|
+
name?: string | undefined;
|
|
1700
|
+
avatar?: string | null | undefined;
|
|
1701
|
+
} | undefined;
|
|
1702
|
+
reporter?: {
|
|
1703
|
+
id: string;
|
|
1704
|
+
firstName?: string | null | undefined;
|
|
1705
|
+
lastName?: string | null | undefined;
|
|
1706
|
+
email?: string | undefined;
|
|
1707
|
+
name?: string | undefined;
|
|
1708
|
+
avatar?: string | null | undefined;
|
|
1709
|
+
} | undefined;
|
|
1264
1710
|
immediateActions?: string | undefined;
|
|
1265
1711
|
rootCause?: string | undefined;
|
|
1266
1712
|
preventiveActions?: string | undefined;
|
|
1267
1713
|
followUpDate?: string | undefined;
|
|
1714
|
+
closedAt?: string | undefined;
|
|
1268
1715
|
};
|
|
1269
1716
|
};
|
|
1270
1717
|
meta?: Record<string, unknown> | undefined;
|
|
@@ -1306,8 +1753,25 @@ export declare const safetyContract: {
|
|
|
1306
1753
|
uploadedAt: string;
|
|
1307
1754
|
}[] | undefined;
|
|
1308
1755
|
correctiveActions?: string | undefined;
|
|
1756
|
+
photos?: string[] | undefined;
|
|
1309
1757
|
resolvedAt?: string | undefined;
|
|
1310
1758
|
assignedTo?: string | undefined;
|
|
1759
|
+
assignee?: {
|
|
1760
|
+
id: string;
|
|
1761
|
+
firstName?: string | null | undefined;
|
|
1762
|
+
lastName?: string | null | undefined;
|
|
1763
|
+
email?: string | undefined;
|
|
1764
|
+
name?: string | undefined;
|
|
1765
|
+
avatar?: string | null | undefined;
|
|
1766
|
+
} | undefined;
|
|
1767
|
+
reporter?: {
|
|
1768
|
+
id: string;
|
|
1769
|
+
firstName?: string | null | undefined;
|
|
1770
|
+
lastName?: string | null | undefined;
|
|
1771
|
+
email?: string | undefined;
|
|
1772
|
+
name?: string | undefined;
|
|
1773
|
+
avatar?: string | null | undefined;
|
|
1774
|
+
} | undefined;
|
|
1311
1775
|
injuryOccurred?: boolean | undefined;
|
|
1312
1776
|
medicalAttentionRequired?: boolean | undefined;
|
|
1313
1777
|
workRelated?: boolean | undefined;
|
|
@@ -1322,6 +1786,7 @@ export declare const safetyContract: {
|
|
|
1322
1786
|
preventiveActions?: string | undefined;
|
|
1323
1787
|
followUpRequired?: boolean | undefined;
|
|
1324
1788
|
followUpDate?: string | undefined;
|
|
1789
|
+
closedAt?: string | undefined;
|
|
1325
1790
|
};
|
|
1326
1791
|
};
|
|
1327
1792
|
meta?: Record<string, unknown> | undefined;
|
|
@@ -1448,6 +1913,7 @@ export declare const safetyContract: {
|
|
|
1448
1913
|
followUpDate: z.ZodOptional<z.ZodString>;
|
|
1449
1914
|
assignedTo: z.ZodOptional<z.ZodString>;
|
|
1450
1915
|
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
1916
|
+
photos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1451
1917
|
}, "strip", z.ZodTypeAny, {
|
|
1452
1918
|
type?: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY" | undefined;
|
|
1453
1919
|
status?: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED" | undefined;
|
|
@@ -1455,6 +1921,7 @@ export declare const safetyContract: {
|
|
|
1455
1921
|
description?: string | undefined;
|
|
1456
1922
|
correctiveActions?: string | undefined;
|
|
1457
1923
|
location?: string | undefined;
|
|
1924
|
+
photos?: string[] | undefined;
|
|
1458
1925
|
resolvedAt?: string | undefined;
|
|
1459
1926
|
assignedTo?: string | undefined;
|
|
1460
1927
|
severity?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
|
|
@@ -1480,6 +1947,7 @@ export declare const safetyContract: {
|
|
|
1480
1947
|
description?: string | undefined;
|
|
1481
1948
|
correctiveActions?: string | undefined;
|
|
1482
1949
|
location?: string | undefined;
|
|
1950
|
+
photos?: string[] | undefined;
|
|
1483
1951
|
resolvedAt?: string | undefined;
|
|
1484
1952
|
assignedTo?: string | undefined;
|
|
1485
1953
|
severity?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
|
|
@@ -1541,7 +2009,53 @@ export declare const safetyContract: {
|
|
|
1541
2009
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
1542
2010
|
followUpDate: z.ZodOptional<z.ZodString>;
|
|
1543
2011
|
assignedTo: z.ZodOptional<z.ZodString>;
|
|
2012
|
+
reporter: z.ZodOptional<z.ZodObject<{
|
|
2013
|
+
id: z.ZodString;
|
|
2014
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2015
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2016
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2017
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2018
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2019
|
+
}, "strip", z.ZodTypeAny, {
|
|
2020
|
+
id: string;
|
|
2021
|
+
firstName?: string | null | undefined;
|
|
2022
|
+
lastName?: string | null | undefined;
|
|
2023
|
+
email?: string | undefined;
|
|
2024
|
+
name?: string | undefined;
|
|
2025
|
+
avatar?: string | null | undefined;
|
|
2026
|
+
}, {
|
|
2027
|
+
id: string;
|
|
2028
|
+
firstName?: string | null | undefined;
|
|
2029
|
+
lastName?: string | null | undefined;
|
|
2030
|
+
email?: string | undefined;
|
|
2031
|
+
name?: string | undefined;
|
|
2032
|
+
avatar?: string | null | undefined;
|
|
2033
|
+
}>>;
|
|
2034
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
2035
|
+
id: z.ZodString;
|
|
2036
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2037
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2038
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2039
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2040
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2041
|
+
}, "strip", z.ZodTypeAny, {
|
|
2042
|
+
id: string;
|
|
2043
|
+
firstName?: string | null | undefined;
|
|
2044
|
+
lastName?: string | null | undefined;
|
|
2045
|
+
email?: string | undefined;
|
|
2046
|
+
name?: string | undefined;
|
|
2047
|
+
avatar?: string | null | undefined;
|
|
2048
|
+
}, {
|
|
2049
|
+
id: string;
|
|
2050
|
+
firstName?: string | null | undefined;
|
|
2051
|
+
lastName?: string | null | undefined;
|
|
2052
|
+
email?: string | undefined;
|
|
2053
|
+
name?: string | undefined;
|
|
2054
|
+
avatar?: string | null | undefined;
|
|
2055
|
+
}>>;
|
|
1544
2056
|
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
2057
|
+
closedAt: z.ZodOptional<z.ZodString>;
|
|
2058
|
+
photos: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1545
2059
|
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1546
2060
|
id: z.ZodString;
|
|
1547
2061
|
filename: z.ZodString;
|
|
@@ -1576,6 +2090,7 @@ export declare const safetyContract: {
|
|
|
1576
2090
|
uploadedAt: string;
|
|
1577
2091
|
}[];
|
|
1578
2092
|
location: string;
|
|
2093
|
+
photos: string[];
|
|
1579
2094
|
reportedBy: string;
|
|
1580
2095
|
reportedAt: string;
|
|
1581
2096
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -1593,10 +2108,27 @@ export declare const safetyContract: {
|
|
|
1593
2108
|
correctiveActions?: string | undefined;
|
|
1594
2109
|
resolvedAt?: string | undefined;
|
|
1595
2110
|
assignedTo?: string | undefined;
|
|
2111
|
+
assignee?: {
|
|
2112
|
+
id: string;
|
|
2113
|
+
firstName?: string | null | undefined;
|
|
2114
|
+
lastName?: string | null | undefined;
|
|
2115
|
+
email?: string | undefined;
|
|
2116
|
+
name?: string | undefined;
|
|
2117
|
+
avatar?: string | null | undefined;
|
|
2118
|
+
} | undefined;
|
|
2119
|
+
reporter?: {
|
|
2120
|
+
id: string;
|
|
2121
|
+
firstName?: string | null | undefined;
|
|
2122
|
+
lastName?: string | null | undefined;
|
|
2123
|
+
email?: string | undefined;
|
|
2124
|
+
name?: string | undefined;
|
|
2125
|
+
avatar?: string | null | undefined;
|
|
2126
|
+
} | undefined;
|
|
1596
2127
|
immediateActions?: string | undefined;
|
|
1597
2128
|
rootCause?: string | undefined;
|
|
1598
2129
|
preventiveActions?: string | undefined;
|
|
1599
2130
|
followUpDate?: string | undefined;
|
|
2131
|
+
closedAt?: string | undefined;
|
|
1600
2132
|
}, {
|
|
1601
2133
|
id: string;
|
|
1602
2134
|
createdAt: string;
|
|
@@ -1618,8 +2150,25 @@ export declare const safetyContract: {
|
|
|
1618
2150
|
uploadedAt: string;
|
|
1619
2151
|
}[] | undefined;
|
|
1620
2152
|
correctiveActions?: string | undefined;
|
|
2153
|
+
photos?: string[] | undefined;
|
|
1621
2154
|
resolvedAt?: string | undefined;
|
|
1622
2155
|
assignedTo?: string | undefined;
|
|
2156
|
+
assignee?: {
|
|
2157
|
+
id: string;
|
|
2158
|
+
firstName?: string | null | undefined;
|
|
2159
|
+
lastName?: string | null | undefined;
|
|
2160
|
+
email?: string | undefined;
|
|
2161
|
+
name?: string | undefined;
|
|
2162
|
+
avatar?: string | null | undefined;
|
|
2163
|
+
} | undefined;
|
|
2164
|
+
reporter?: {
|
|
2165
|
+
id: string;
|
|
2166
|
+
firstName?: string | null | undefined;
|
|
2167
|
+
lastName?: string | null | undefined;
|
|
2168
|
+
email?: string | undefined;
|
|
2169
|
+
name?: string | undefined;
|
|
2170
|
+
avatar?: string | null | undefined;
|
|
2171
|
+
} | undefined;
|
|
1623
2172
|
injuryOccurred?: boolean | undefined;
|
|
1624
2173
|
medicalAttentionRequired?: boolean | undefined;
|
|
1625
2174
|
workRelated?: boolean | undefined;
|
|
@@ -1634,6 +2183,7 @@ export declare const safetyContract: {
|
|
|
1634
2183
|
preventiveActions?: string | undefined;
|
|
1635
2184
|
followUpRequired?: boolean | undefined;
|
|
1636
2185
|
followUpDate?: string | undefined;
|
|
2186
|
+
closedAt?: string | undefined;
|
|
1637
2187
|
}>;
|
|
1638
2188
|
}, "strip", z.ZodTypeAny, {
|
|
1639
2189
|
id: string;
|
|
@@ -1654,6 +2204,7 @@ export declare const safetyContract: {
|
|
|
1654
2204
|
uploadedAt: string;
|
|
1655
2205
|
}[];
|
|
1656
2206
|
location: string;
|
|
2207
|
+
photos: string[];
|
|
1657
2208
|
reportedBy: string;
|
|
1658
2209
|
reportedAt: string;
|
|
1659
2210
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -1671,10 +2222,27 @@ export declare const safetyContract: {
|
|
|
1671
2222
|
correctiveActions?: string | undefined;
|
|
1672
2223
|
resolvedAt?: string | undefined;
|
|
1673
2224
|
assignedTo?: string | undefined;
|
|
2225
|
+
assignee?: {
|
|
2226
|
+
id: string;
|
|
2227
|
+
firstName?: string | null | undefined;
|
|
2228
|
+
lastName?: string | null | undefined;
|
|
2229
|
+
email?: string | undefined;
|
|
2230
|
+
name?: string | undefined;
|
|
2231
|
+
avatar?: string | null | undefined;
|
|
2232
|
+
} | undefined;
|
|
2233
|
+
reporter?: {
|
|
2234
|
+
id: string;
|
|
2235
|
+
firstName?: string | null | undefined;
|
|
2236
|
+
lastName?: string | null | undefined;
|
|
2237
|
+
email?: string | undefined;
|
|
2238
|
+
name?: string | undefined;
|
|
2239
|
+
avatar?: string | null | undefined;
|
|
2240
|
+
} | undefined;
|
|
1674
2241
|
immediateActions?: string | undefined;
|
|
1675
2242
|
rootCause?: string | undefined;
|
|
1676
2243
|
preventiveActions?: string | undefined;
|
|
1677
2244
|
followUpDate?: string | undefined;
|
|
2245
|
+
closedAt?: string | undefined;
|
|
1678
2246
|
};
|
|
1679
2247
|
}, {
|
|
1680
2248
|
id: string;
|
|
@@ -1700,8 +2268,25 @@ export declare const safetyContract: {
|
|
|
1700
2268
|
uploadedAt: string;
|
|
1701
2269
|
}[] | undefined;
|
|
1702
2270
|
correctiveActions?: string | undefined;
|
|
2271
|
+
photos?: string[] | undefined;
|
|
1703
2272
|
resolvedAt?: string | undefined;
|
|
1704
2273
|
assignedTo?: string | undefined;
|
|
2274
|
+
assignee?: {
|
|
2275
|
+
id: string;
|
|
2276
|
+
firstName?: string | null | undefined;
|
|
2277
|
+
lastName?: string | null | undefined;
|
|
2278
|
+
email?: string | undefined;
|
|
2279
|
+
name?: string | undefined;
|
|
2280
|
+
avatar?: string | null | undefined;
|
|
2281
|
+
} | undefined;
|
|
2282
|
+
reporter?: {
|
|
2283
|
+
id: string;
|
|
2284
|
+
firstName?: string | null | undefined;
|
|
2285
|
+
lastName?: string | null | undefined;
|
|
2286
|
+
email?: string | undefined;
|
|
2287
|
+
name?: string | undefined;
|
|
2288
|
+
avatar?: string | null | undefined;
|
|
2289
|
+
} | undefined;
|
|
1705
2290
|
injuryOccurred?: boolean | undefined;
|
|
1706
2291
|
medicalAttentionRequired?: boolean | undefined;
|
|
1707
2292
|
workRelated?: boolean | undefined;
|
|
@@ -1716,6 +2301,7 @@ export declare const safetyContract: {
|
|
|
1716
2301
|
preventiveActions?: string | undefined;
|
|
1717
2302
|
followUpRequired?: boolean | undefined;
|
|
1718
2303
|
followUpDate?: string | undefined;
|
|
2304
|
+
closedAt?: string | undefined;
|
|
1719
2305
|
};
|
|
1720
2306
|
}>;
|
|
1721
2307
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1774,6 +2360,7 @@ export declare const safetyContract: {
|
|
|
1774
2360
|
uploadedAt: string;
|
|
1775
2361
|
}[];
|
|
1776
2362
|
location: string;
|
|
2363
|
+
photos: string[];
|
|
1777
2364
|
reportedBy: string;
|
|
1778
2365
|
reportedAt: string;
|
|
1779
2366
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -1791,10 +2378,27 @@ export declare const safetyContract: {
|
|
|
1791
2378
|
correctiveActions?: string | undefined;
|
|
1792
2379
|
resolvedAt?: string | undefined;
|
|
1793
2380
|
assignedTo?: string | undefined;
|
|
2381
|
+
assignee?: {
|
|
2382
|
+
id: string;
|
|
2383
|
+
firstName?: string | null | undefined;
|
|
2384
|
+
lastName?: string | null | undefined;
|
|
2385
|
+
email?: string | undefined;
|
|
2386
|
+
name?: string | undefined;
|
|
2387
|
+
avatar?: string | null | undefined;
|
|
2388
|
+
} | undefined;
|
|
2389
|
+
reporter?: {
|
|
2390
|
+
id: string;
|
|
2391
|
+
firstName?: string | null | undefined;
|
|
2392
|
+
lastName?: string | null | undefined;
|
|
2393
|
+
email?: string | undefined;
|
|
2394
|
+
name?: string | undefined;
|
|
2395
|
+
avatar?: string | null | undefined;
|
|
2396
|
+
} | undefined;
|
|
1794
2397
|
immediateActions?: string | undefined;
|
|
1795
2398
|
rootCause?: string | undefined;
|
|
1796
2399
|
preventiveActions?: string | undefined;
|
|
1797
2400
|
followUpDate?: string | undefined;
|
|
2401
|
+
closedAt?: string | undefined;
|
|
1798
2402
|
};
|
|
1799
2403
|
};
|
|
1800
2404
|
meta?: Record<string, unknown> | undefined;
|
|
@@ -1836,8 +2440,25 @@ export declare const safetyContract: {
|
|
|
1836
2440
|
uploadedAt: string;
|
|
1837
2441
|
}[] | undefined;
|
|
1838
2442
|
correctiveActions?: string | undefined;
|
|
2443
|
+
photos?: string[] | undefined;
|
|
1839
2444
|
resolvedAt?: string | undefined;
|
|
1840
2445
|
assignedTo?: string | undefined;
|
|
2446
|
+
assignee?: {
|
|
2447
|
+
id: string;
|
|
2448
|
+
firstName?: string | null | undefined;
|
|
2449
|
+
lastName?: string | null | undefined;
|
|
2450
|
+
email?: string | undefined;
|
|
2451
|
+
name?: string | undefined;
|
|
2452
|
+
avatar?: string | null | undefined;
|
|
2453
|
+
} | undefined;
|
|
2454
|
+
reporter?: {
|
|
2455
|
+
id: string;
|
|
2456
|
+
firstName?: string | null | undefined;
|
|
2457
|
+
lastName?: string | null | undefined;
|
|
2458
|
+
email?: string | undefined;
|
|
2459
|
+
name?: string | undefined;
|
|
2460
|
+
avatar?: string | null | undefined;
|
|
2461
|
+
} | undefined;
|
|
1841
2462
|
injuryOccurred?: boolean | undefined;
|
|
1842
2463
|
medicalAttentionRequired?: boolean | undefined;
|
|
1843
2464
|
workRelated?: boolean | undefined;
|
|
@@ -1852,6 +2473,7 @@ export declare const safetyContract: {
|
|
|
1852
2473
|
preventiveActions?: string | undefined;
|
|
1853
2474
|
followUpRequired?: boolean | undefined;
|
|
1854
2475
|
followUpDate?: string | undefined;
|
|
2476
|
+
closedAt?: string | undefined;
|
|
1855
2477
|
};
|
|
1856
2478
|
};
|
|
1857
2479
|
meta?: Record<string, unknown> | undefined;
|
|
@@ -2046,185 +2668,1485 @@ export declare const safetyContract: {
|
|
|
2046
2668
|
}>;
|
|
2047
2669
|
};
|
|
2048
2670
|
};
|
|
2049
|
-
|
|
2671
|
+
presignIncidentMedia: {
|
|
2050
2672
|
pathParams: z.ZodObject<{
|
|
2051
|
-
|
|
2673
|
+
incidentId: z.ZodString;
|
|
2052
2674
|
}, "strip", z.ZodTypeAny, {
|
|
2053
|
-
|
|
2675
|
+
incidentId: string;
|
|
2054
2676
|
}, {
|
|
2055
|
-
|
|
2677
|
+
incidentId: string;
|
|
2056
2678
|
}>;
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
dateTo: z.ZodOptional<z.ZodString>;
|
|
2679
|
+
summary: "Get a short-lived R2 PUT URL for incident photo upload";
|
|
2680
|
+
method: "POST";
|
|
2681
|
+
body: z.ZodObject<{
|
|
2682
|
+
fileName: z.ZodString;
|
|
2683
|
+
contentType: z.ZodString;
|
|
2684
|
+
fileSize: z.ZodNumber;
|
|
2064
2685
|
}, "strip", z.ZodTypeAny, {
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
dateFrom?: string | undefined;
|
|
2069
|
-
dateTo?: string | undefined;
|
|
2070
|
-
severity?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
|
|
2686
|
+
contentType: string;
|
|
2687
|
+
fileSize: number;
|
|
2688
|
+
fileName: string;
|
|
2071
2689
|
}, {
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
dateFrom?: string | undefined;
|
|
2076
|
-
dateTo?: string | undefined;
|
|
2077
|
-
severity?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
|
|
2690
|
+
contentType: string;
|
|
2691
|
+
fileSize: number;
|
|
2692
|
+
fileName: string;
|
|
2078
2693
|
}>;
|
|
2079
|
-
|
|
2080
|
-
method: "GET";
|
|
2081
|
-
path: "/projects/:projectId/safety/incidents";
|
|
2694
|
+
path: "/safety/incidents/:incidentId/media/presign";
|
|
2082
2695
|
responses: {
|
|
2083
2696
|
200: z.ZodObject<{
|
|
2084
|
-
data: z.
|
|
2085
|
-
type: z.ZodLiteral<"
|
|
2697
|
+
data: z.ZodObject<{
|
|
2698
|
+
type: z.ZodLiteral<"incident-media-presign">;
|
|
2086
2699
|
id: z.ZodString;
|
|
2087
2700
|
attributes: z.ZodObject<{
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
reportedBy: z.ZodString;
|
|
2097
|
-
reportedAt: z.ZodString;
|
|
2098
|
-
projectId: z.ZodString;
|
|
2099
|
-
injuryOccurred: z.ZodDefault<z.ZodBoolean>;
|
|
2100
|
-
medicalAttentionRequired: z.ZodDefault<z.ZodBoolean>;
|
|
2101
|
-
workRelated: z.ZodDefault<z.ZodBoolean>;
|
|
2102
|
-
witnessCount: z.ZodDefault<z.ZodNumber>;
|
|
2103
|
-
witnesses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2104
|
-
name: z.ZodString;
|
|
2105
|
-
contact: z.ZodString;
|
|
2106
|
-
statement: z.ZodOptional<z.ZodString>;
|
|
2107
|
-
}, "strip", z.ZodTypeAny, {
|
|
2108
|
-
name: string;
|
|
2109
|
-
contact: string;
|
|
2110
|
-
statement?: string | undefined;
|
|
2111
|
-
}, {
|
|
2112
|
-
name: string;
|
|
2113
|
-
contact: string;
|
|
2114
|
-
statement?: string | undefined;
|
|
2115
|
-
}>, "many">>;
|
|
2116
|
-
immediateActions: z.ZodOptional<z.ZodString>;
|
|
2117
|
-
rootCause: z.ZodOptional<z.ZodString>;
|
|
2118
|
-
correctiveActions: z.ZodOptional<z.ZodString>;
|
|
2119
|
-
preventiveActions: z.ZodOptional<z.ZodString>;
|
|
2120
|
-
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
2121
|
-
followUpDate: z.ZodOptional<z.ZodString>;
|
|
2122
|
-
assignedTo: z.ZodOptional<z.ZodString>;
|
|
2123
|
-
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
2124
|
-
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2125
|
-
id: z.ZodString;
|
|
2126
|
-
filename: z.ZodString;
|
|
2127
|
-
url: z.ZodString;
|
|
2128
|
-
uploadedAt: z.ZodString;
|
|
2129
|
-
}, "strip", z.ZodTypeAny, {
|
|
2130
|
-
id: string;
|
|
2131
|
-
url: string;
|
|
2132
|
-
filename: string;
|
|
2133
|
-
uploadedAt: string;
|
|
2134
|
-
}, {
|
|
2135
|
-
id: string;
|
|
2136
|
-
url: string;
|
|
2137
|
-
filename: string;
|
|
2138
|
-
uploadedAt: string;
|
|
2139
|
-
}>, "many">>;
|
|
2140
|
-
createdAt: z.ZodString;
|
|
2141
|
-
updatedAt: z.ZodString;
|
|
2701
|
+
uploadUrl: z.ZodString;
|
|
2702
|
+
fileKey: z.ZodString;
|
|
2703
|
+
fileUrl: z.ZodString;
|
|
2704
|
+
expiresIn: z.ZodNumber;
|
|
2705
|
+
fileName: z.ZodString;
|
|
2706
|
+
mimeType: z.ZodString;
|
|
2707
|
+
fileSize: z.ZodNumber;
|
|
2708
|
+
originalName: z.ZodString;
|
|
2142
2709
|
}, "strip", z.ZodTypeAny, {
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
attachments: {
|
|
2152
|
-
id: string;
|
|
2153
|
-
url: string;
|
|
2154
|
-
filename: string;
|
|
2155
|
-
uploadedAt: string;
|
|
2156
|
-
}[];
|
|
2157
|
-
location: string;
|
|
2158
|
-
reportedBy: string;
|
|
2159
|
-
reportedAt: string;
|
|
2160
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
2161
|
-
dateOccurred: string;
|
|
2162
|
-
injuryOccurred: boolean;
|
|
2163
|
-
medicalAttentionRequired: boolean;
|
|
2164
|
-
workRelated: boolean;
|
|
2165
|
-
witnessCount: number;
|
|
2166
|
-
witnesses: {
|
|
2167
|
-
name: string;
|
|
2168
|
-
contact: string;
|
|
2169
|
-
statement?: string | undefined;
|
|
2170
|
-
}[];
|
|
2171
|
-
followUpRequired: boolean;
|
|
2172
|
-
correctiveActions?: string | undefined;
|
|
2173
|
-
resolvedAt?: string | undefined;
|
|
2174
|
-
assignedTo?: string | undefined;
|
|
2175
|
-
immediateActions?: string | undefined;
|
|
2176
|
-
rootCause?: string | undefined;
|
|
2177
|
-
preventiveActions?: string | undefined;
|
|
2178
|
-
followUpDate?: string | undefined;
|
|
2710
|
+
expiresIn: number;
|
|
2711
|
+
fileSize: number;
|
|
2712
|
+
mimeType: string;
|
|
2713
|
+
uploadUrl: string;
|
|
2714
|
+
fileUrl: string;
|
|
2715
|
+
fileName: string;
|
|
2716
|
+
originalName: string;
|
|
2717
|
+
fileKey: string;
|
|
2179
2718
|
}, {
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
location: string;
|
|
2189
|
-
reportedBy: string;
|
|
2190
|
-
reportedAt: string;
|
|
2191
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
2192
|
-
dateOccurred: string;
|
|
2193
|
-
attachments?: {
|
|
2194
|
-
id: string;
|
|
2195
|
-
url: string;
|
|
2196
|
-
filename: string;
|
|
2197
|
-
uploadedAt: string;
|
|
2198
|
-
}[] | undefined;
|
|
2199
|
-
correctiveActions?: string | undefined;
|
|
2200
|
-
resolvedAt?: string | undefined;
|
|
2201
|
-
assignedTo?: string | undefined;
|
|
2202
|
-
injuryOccurred?: boolean | undefined;
|
|
2203
|
-
medicalAttentionRequired?: boolean | undefined;
|
|
2204
|
-
workRelated?: boolean | undefined;
|
|
2205
|
-
witnessCount?: number | undefined;
|
|
2206
|
-
witnesses?: {
|
|
2207
|
-
name: string;
|
|
2208
|
-
contact: string;
|
|
2209
|
-
statement?: string | undefined;
|
|
2210
|
-
}[] | undefined;
|
|
2211
|
-
immediateActions?: string | undefined;
|
|
2212
|
-
rootCause?: string | undefined;
|
|
2213
|
-
preventiveActions?: string | undefined;
|
|
2214
|
-
followUpRequired?: boolean | undefined;
|
|
2215
|
-
followUpDate?: string | undefined;
|
|
2719
|
+
expiresIn: number;
|
|
2720
|
+
fileSize: number;
|
|
2721
|
+
mimeType: string;
|
|
2722
|
+
uploadUrl: string;
|
|
2723
|
+
fileUrl: string;
|
|
2724
|
+
fileName: string;
|
|
2725
|
+
originalName: string;
|
|
2726
|
+
fileKey: string;
|
|
2216
2727
|
}>;
|
|
2217
2728
|
}, "strip", z.ZodTypeAny, {
|
|
2218
2729
|
id: string;
|
|
2219
|
-
type: "
|
|
2730
|
+
type: "incident-media-presign";
|
|
2220
2731
|
attributes: {
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2732
|
+
expiresIn: number;
|
|
2733
|
+
fileSize: number;
|
|
2734
|
+
mimeType: string;
|
|
2735
|
+
uploadUrl: string;
|
|
2736
|
+
fileUrl: string;
|
|
2737
|
+
fileName: string;
|
|
2738
|
+
originalName: string;
|
|
2739
|
+
fileKey: string;
|
|
2740
|
+
};
|
|
2741
|
+
}, {
|
|
2742
|
+
id: string;
|
|
2743
|
+
type: "incident-media-presign";
|
|
2744
|
+
attributes: {
|
|
2745
|
+
expiresIn: number;
|
|
2746
|
+
fileSize: number;
|
|
2747
|
+
mimeType: string;
|
|
2748
|
+
uploadUrl: string;
|
|
2749
|
+
fileUrl: string;
|
|
2750
|
+
fileName: string;
|
|
2751
|
+
originalName: string;
|
|
2752
|
+
fileKey: string;
|
|
2753
|
+
};
|
|
2754
|
+
}>;
|
|
2755
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2756
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2757
|
+
self: z.ZodString;
|
|
2758
|
+
first: z.ZodOptional<z.ZodString>;
|
|
2759
|
+
last: z.ZodOptional<z.ZodString>;
|
|
2760
|
+
prev: z.ZodOptional<z.ZodString>;
|
|
2761
|
+
next: z.ZodOptional<z.ZodString>;
|
|
2762
|
+
}, "strip", z.ZodTypeAny, {
|
|
2763
|
+
self: string;
|
|
2764
|
+
first?: string | undefined;
|
|
2765
|
+
last?: string | undefined;
|
|
2766
|
+
prev?: string | undefined;
|
|
2767
|
+
next?: string | undefined;
|
|
2768
|
+
}, {
|
|
2769
|
+
self: string;
|
|
2770
|
+
first?: string | undefined;
|
|
2771
|
+
last?: string | undefined;
|
|
2772
|
+
prev?: string | undefined;
|
|
2773
|
+
next?: string | undefined;
|
|
2774
|
+
}>>;
|
|
2775
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2776
|
+
status: z.ZodString;
|
|
2777
|
+
title: z.ZodString;
|
|
2778
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2779
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2780
|
+
}, "strip", z.ZodTypeAny, {
|
|
2781
|
+
status: string;
|
|
2782
|
+
title: string;
|
|
2783
|
+
detail?: string | undefined;
|
|
2784
|
+
meta?: Record<string, unknown> | undefined;
|
|
2785
|
+
}, {
|
|
2786
|
+
status: string;
|
|
2787
|
+
title: string;
|
|
2788
|
+
detail?: string | undefined;
|
|
2789
|
+
meta?: Record<string, unknown> | undefined;
|
|
2790
|
+
}>, "many">>;
|
|
2791
|
+
}, "strip", z.ZodTypeAny, {
|
|
2792
|
+
data: {
|
|
2793
|
+
id: string;
|
|
2794
|
+
type: "incident-media-presign";
|
|
2795
|
+
attributes: {
|
|
2796
|
+
expiresIn: number;
|
|
2797
|
+
fileSize: number;
|
|
2798
|
+
mimeType: string;
|
|
2799
|
+
uploadUrl: string;
|
|
2800
|
+
fileUrl: string;
|
|
2801
|
+
fileName: string;
|
|
2802
|
+
originalName: string;
|
|
2803
|
+
fileKey: string;
|
|
2804
|
+
};
|
|
2805
|
+
};
|
|
2806
|
+
meta?: Record<string, unknown> | undefined;
|
|
2807
|
+
links?: {
|
|
2808
|
+
self: string;
|
|
2809
|
+
first?: string | undefined;
|
|
2810
|
+
last?: string | undefined;
|
|
2811
|
+
prev?: string | undefined;
|
|
2812
|
+
next?: string | undefined;
|
|
2813
|
+
} | undefined;
|
|
2814
|
+
errors?: {
|
|
2815
|
+
status: string;
|
|
2816
|
+
title: string;
|
|
2817
|
+
detail?: string | undefined;
|
|
2818
|
+
meta?: Record<string, unknown> | undefined;
|
|
2819
|
+
}[] | undefined;
|
|
2820
|
+
}, {
|
|
2821
|
+
data: {
|
|
2822
|
+
id: string;
|
|
2823
|
+
type: "incident-media-presign";
|
|
2824
|
+
attributes: {
|
|
2825
|
+
expiresIn: number;
|
|
2826
|
+
fileSize: number;
|
|
2827
|
+
mimeType: string;
|
|
2828
|
+
uploadUrl: string;
|
|
2829
|
+
fileUrl: string;
|
|
2830
|
+
fileName: string;
|
|
2831
|
+
originalName: string;
|
|
2832
|
+
fileKey: string;
|
|
2833
|
+
};
|
|
2834
|
+
};
|
|
2835
|
+
meta?: Record<string, unknown> | undefined;
|
|
2836
|
+
links?: {
|
|
2837
|
+
self: string;
|
|
2838
|
+
first?: string | undefined;
|
|
2839
|
+
last?: string | undefined;
|
|
2840
|
+
prev?: string | undefined;
|
|
2841
|
+
next?: string | undefined;
|
|
2842
|
+
} | undefined;
|
|
2843
|
+
errors?: {
|
|
2844
|
+
status: string;
|
|
2845
|
+
title: string;
|
|
2846
|
+
detail?: string | undefined;
|
|
2847
|
+
meta?: Record<string, unknown> | undefined;
|
|
2848
|
+
}[] | undefined;
|
|
2849
|
+
}>;
|
|
2850
|
+
400: z.ZodObject<{
|
|
2851
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2852
|
+
status: z.ZodString;
|
|
2853
|
+
title: z.ZodString;
|
|
2854
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2855
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2856
|
+
}, "strip", z.ZodTypeAny, {
|
|
2857
|
+
status: string;
|
|
2858
|
+
title: string;
|
|
2859
|
+
detail?: string | undefined;
|
|
2860
|
+
meta?: Record<string, unknown> | undefined;
|
|
2861
|
+
}, {
|
|
2862
|
+
status: string;
|
|
2863
|
+
title: string;
|
|
2864
|
+
detail?: string | undefined;
|
|
2865
|
+
meta?: Record<string, unknown> | undefined;
|
|
2866
|
+
}>, "many">;
|
|
2867
|
+
}, "strip", z.ZodTypeAny, {
|
|
2868
|
+
errors: {
|
|
2869
|
+
status: string;
|
|
2870
|
+
title: string;
|
|
2871
|
+
detail?: string | undefined;
|
|
2872
|
+
meta?: Record<string, unknown> | undefined;
|
|
2873
|
+
}[];
|
|
2874
|
+
}, {
|
|
2875
|
+
errors: {
|
|
2876
|
+
status: string;
|
|
2877
|
+
title: string;
|
|
2878
|
+
detail?: string | undefined;
|
|
2879
|
+
meta?: Record<string, unknown> | undefined;
|
|
2880
|
+
}[];
|
|
2881
|
+
}>;
|
|
2882
|
+
403: z.ZodObject<{
|
|
2883
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2884
|
+
status: z.ZodString;
|
|
2885
|
+
title: z.ZodString;
|
|
2886
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2887
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2888
|
+
}, "strip", z.ZodTypeAny, {
|
|
2889
|
+
status: string;
|
|
2890
|
+
title: string;
|
|
2891
|
+
detail?: string | undefined;
|
|
2892
|
+
meta?: Record<string, unknown> | undefined;
|
|
2893
|
+
}, {
|
|
2894
|
+
status: string;
|
|
2895
|
+
title: string;
|
|
2896
|
+
detail?: string | undefined;
|
|
2897
|
+
meta?: Record<string, unknown> | undefined;
|
|
2898
|
+
}>, "many">;
|
|
2899
|
+
}, "strip", z.ZodTypeAny, {
|
|
2900
|
+
errors: {
|
|
2901
|
+
status: string;
|
|
2902
|
+
title: string;
|
|
2903
|
+
detail?: string | undefined;
|
|
2904
|
+
meta?: Record<string, unknown> | undefined;
|
|
2905
|
+
}[];
|
|
2906
|
+
}, {
|
|
2907
|
+
errors: {
|
|
2908
|
+
status: string;
|
|
2909
|
+
title: string;
|
|
2910
|
+
detail?: string | undefined;
|
|
2911
|
+
meta?: Record<string, unknown> | undefined;
|
|
2912
|
+
}[];
|
|
2913
|
+
}>;
|
|
2914
|
+
404: z.ZodObject<{
|
|
2915
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2916
|
+
status: z.ZodString;
|
|
2917
|
+
title: z.ZodString;
|
|
2918
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2919
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2920
|
+
}, "strip", z.ZodTypeAny, {
|
|
2921
|
+
status: string;
|
|
2922
|
+
title: string;
|
|
2923
|
+
detail?: string | undefined;
|
|
2924
|
+
meta?: Record<string, unknown> | undefined;
|
|
2925
|
+
}, {
|
|
2926
|
+
status: string;
|
|
2927
|
+
title: string;
|
|
2928
|
+
detail?: string | undefined;
|
|
2929
|
+
meta?: Record<string, unknown> | undefined;
|
|
2930
|
+
}>, "many">;
|
|
2931
|
+
}, "strip", z.ZodTypeAny, {
|
|
2932
|
+
errors: {
|
|
2933
|
+
status: string;
|
|
2934
|
+
title: string;
|
|
2935
|
+
detail?: string | undefined;
|
|
2936
|
+
meta?: Record<string, unknown> | undefined;
|
|
2937
|
+
}[];
|
|
2938
|
+
}, {
|
|
2939
|
+
errors: {
|
|
2940
|
+
status: string;
|
|
2941
|
+
title: string;
|
|
2942
|
+
detail?: string | undefined;
|
|
2943
|
+
meta?: Record<string, unknown> | undefined;
|
|
2944
|
+
}[];
|
|
2945
|
+
}>;
|
|
2946
|
+
};
|
|
2947
|
+
};
|
|
2948
|
+
confirmIncidentMedia: {
|
|
2949
|
+
pathParams: z.ZodObject<{
|
|
2950
|
+
incidentId: z.ZodString;
|
|
2951
|
+
}, "strip", z.ZodTypeAny, {
|
|
2952
|
+
incidentId: string;
|
|
2953
|
+
}, {
|
|
2954
|
+
incidentId: string;
|
|
2955
|
+
}>;
|
|
2956
|
+
summary: "Confirm a direct-to-R2 upload and append the photo to the incident";
|
|
2957
|
+
method: "POST";
|
|
2958
|
+
body: z.ZodObject<{
|
|
2959
|
+
fileKey: z.ZodString;
|
|
2960
|
+
}, "strip", z.ZodTypeAny, {
|
|
2961
|
+
fileKey: string;
|
|
2962
|
+
}, {
|
|
2963
|
+
fileKey: string;
|
|
2964
|
+
}>;
|
|
2965
|
+
path: "/safety/incidents/:incidentId/media/confirm";
|
|
2966
|
+
responses: {
|
|
2967
|
+
200: z.ZodObject<{
|
|
2968
|
+
data: z.ZodObject<{
|
|
2969
|
+
type: z.ZodLiteral<"incidents">;
|
|
2970
|
+
id: z.ZodString;
|
|
2971
|
+
attributes: z.ZodObject<{
|
|
2972
|
+
id: z.ZodString;
|
|
2973
|
+
title: z.ZodString;
|
|
2974
|
+
description: z.ZodString;
|
|
2975
|
+
type: z.ZodEnum<["INJURY", "NEAR_MISS", "PROPERTY_DAMAGE", "ENVIRONMENTAL", "SECURITY", "EQUIPMENT_FAILURE"]>;
|
|
2976
|
+
severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
|
|
2977
|
+
status: z.ZodEnum<["REPORTED", "INVESTIGATING", "RESOLVED", "CLOSED"]>;
|
|
2978
|
+
location: z.ZodString;
|
|
2979
|
+
dateOccurred: z.ZodString;
|
|
2980
|
+
reportedBy: z.ZodString;
|
|
2981
|
+
reportedAt: z.ZodString;
|
|
2982
|
+
projectId: z.ZodString;
|
|
2983
|
+
injuryOccurred: z.ZodDefault<z.ZodBoolean>;
|
|
2984
|
+
medicalAttentionRequired: z.ZodDefault<z.ZodBoolean>;
|
|
2985
|
+
workRelated: z.ZodDefault<z.ZodBoolean>;
|
|
2986
|
+
witnessCount: z.ZodDefault<z.ZodNumber>;
|
|
2987
|
+
witnesses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2988
|
+
name: z.ZodString;
|
|
2989
|
+
contact: z.ZodString;
|
|
2990
|
+
statement: z.ZodOptional<z.ZodString>;
|
|
2991
|
+
}, "strip", z.ZodTypeAny, {
|
|
2992
|
+
name: string;
|
|
2993
|
+
contact: string;
|
|
2994
|
+
statement?: string | undefined;
|
|
2995
|
+
}, {
|
|
2996
|
+
name: string;
|
|
2997
|
+
contact: string;
|
|
2998
|
+
statement?: string | undefined;
|
|
2999
|
+
}>, "many">>;
|
|
3000
|
+
immediateActions: z.ZodOptional<z.ZodString>;
|
|
3001
|
+
rootCause: z.ZodOptional<z.ZodString>;
|
|
3002
|
+
correctiveActions: z.ZodOptional<z.ZodString>;
|
|
3003
|
+
preventiveActions: z.ZodOptional<z.ZodString>;
|
|
3004
|
+
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
3005
|
+
followUpDate: z.ZodOptional<z.ZodString>;
|
|
3006
|
+
assignedTo: z.ZodOptional<z.ZodString>;
|
|
3007
|
+
reporter: z.ZodOptional<z.ZodObject<{
|
|
3008
|
+
id: z.ZodString;
|
|
3009
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3010
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3011
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3012
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3013
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3014
|
+
}, "strip", z.ZodTypeAny, {
|
|
3015
|
+
id: string;
|
|
3016
|
+
firstName?: string | null | undefined;
|
|
3017
|
+
lastName?: string | null | undefined;
|
|
3018
|
+
email?: string | undefined;
|
|
3019
|
+
name?: string | undefined;
|
|
3020
|
+
avatar?: string | null | undefined;
|
|
3021
|
+
}, {
|
|
3022
|
+
id: string;
|
|
3023
|
+
firstName?: string | null | undefined;
|
|
3024
|
+
lastName?: string | null | undefined;
|
|
3025
|
+
email?: string | undefined;
|
|
3026
|
+
name?: string | undefined;
|
|
3027
|
+
avatar?: string | null | undefined;
|
|
3028
|
+
}>>;
|
|
3029
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
3030
|
+
id: z.ZodString;
|
|
3031
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3032
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3033
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3034
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3035
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3036
|
+
}, "strip", z.ZodTypeAny, {
|
|
3037
|
+
id: string;
|
|
3038
|
+
firstName?: string | null | undefined;
|
|
3039
|
+
lastName?: string | null | undefined;
|
|
3040
|
+
email?: string | undefined;
|
|
3041
|
+
name?: string | undefined;
|
|
3042
|
+
avatar?: string | null | undefined;
|
|
3043
|
+
}, {
|
|
3044
|
+
id: string;
|
|
3045
|
+
firstName?: string | null | undefined;
|
|
3046
|
+
lastName?: string | null | undefined;
|
|
3047
|
+
email?: string | undefined;
|
|
3048
|
+
name?: string | undefined;
|
|
3049
|
+
avatar?: string | null | undefined;
|
|
3050
|
+
}>>;
|
|
3051
|
+
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
3052
|
+
closedAt: z.ZodOptional<z.ZodString>;
|
|
3053
|
+
photos: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3054
|
+
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3055
|
+
id: z.ZodString;
|
|
3056
|
+
filename: z.ZodString;
|
|
3057
|
+
url: z.ZodString;
|
|
3058
|
+
uploadedAt: z.ZodString;
|
|
3059
|
+
}, "strip", z.ZodTypeAny, {
|
|
3060
|
+
id: string;
|
|
3061
|
+
url: string;
|
|
3062
|
+
filename: string;
|
|
3063
|
+
uploadedAt: string;
|
|
3064
|
+
}, {
|
|
3065
|
+
id: string;
|
|
3066
|
+
url: string;
|
|
3067
|
+
filename: string;
|
|
3068
|
+
uploadedAt: string;
|
|
3069
|
+
}>, "many">>;
|
|
3070
|
+
createdAt: z.ZodString;
|
|
3071
|
+
updatedAt: z.ZodString;
|
|
3072
|
+
}, "strip", z.ZodTypeAny, {
|
|
3073
|
+
id: string;
|
|
3074
|
+
createdAt: string;
|
|
3075
|
+
updatedAt: string;
|
|
3076
|
+
type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
|
|
3077
|
+
status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
|
|
3078
|
+
title: string;
|
|
3079
|
+
projectId: string;
|
|
3080
|
+
description: string;
|
|
3081
|
+
attachments: {
|
|
3082
|
+
id: string;
|
|
3083
|
+
url: string;
|
|
3084
|
+
filename: string;
|
|
3085
|
+
uploadedAt: string;
|
|
3086
|
+
}[];
|
|
3087
|
+
location: string;
|
|
3088
|
+
photos: string[];
|
|
3089
|
+
reportedBy: string;
|
|
3090
|
+
reportedAt: string;
|
|
3091
|
+
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
3092
|
+
dateOccurred: string;
|
|
3093
|
+
injuryOccurred: boolean;
|
|
3094
|
+
medicalAttentionRequired: boolean;
|
|
3095
|
+
workRelated: boolean;
|
|
3096
|
+
witnessCount: number;
|
|
3097
|
+
witnesses: {
|
|
3098
|
+
name: string;
|
|
3099
|
+
contact: string;
|
|
3100
|
+
statement?: string | undefined;
|
|
3101
|
+
}[];
|
|
3102
|
+
followUpRequired: boolean;
|
|
3103
|
+
correctiveActions?: string | undefined;
|
|
3104
|
+
resolvedAt?: string | undefined;
|
|
3105
|
+
assignedTo?: string | undefined;
|
|
3106
|
+
assignee?: {
|
|
3107
|
+
id: string;
|
|
3108
|
+
firstName?: string | null | undefined;
|
|
3109
|
+
lastName?: string | null | undefined;
|
|
3110
|
+
email?: string | undefined;
|
|
3111
|
+
name?: string | undefined;
|
|
3112
|
+
avatar?: string | null | undefined;
|
|
3113
|
+
} | undefined;
|
|
3114
|
+
reporter?: {
|
|
3115
|
+
id: string;
|
|
3116
|
+
firstName?: string | null | undefined;
|
|
3117
|
+
lastName?: string | null | undefined;
|
|
3118
|
+
email?: string | undefined;
|
|
3119
|
+
name?: string | undefined;
|
|
3120
|
+
avatar?: string | null | undefined;
|
|
3121
|
+
} | undefined;
|
|
3122
|
+
immediateActions?: string | undefined;
|
|
3123
|
+
rootCause?: string | undefined;
|
|
3124
|
+
preventiveActions?: string | undefined;
|
|
3125
|
+
followUpDate?: string | undefined;
|
|
3126
|
+
closedAt?: string | undefined;
|
|
3127
|
+
}, {
|
|
3128
|
+
id: string;
|
|
3129
|
+
createdAt: string;
|
|
3130
|
+
updatedAt: string;
|
|
3131
|
+
type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
|
|
3132
|
+
status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
|
|
3133
|
+
title: string;
|
|
3134
|
+
projectId: string;
|
|
3135
|
+
description: string;
|
|
3136
|
+
location: string;
|
|
3137
|
+
reportedBy: string;
|
|
3138
|
+
reportedAt: string;
|
|
3139
|
+
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
3140
|
+
dateOccurred: string;
|
|
3141
|
+
attachments?: {
|
|
3142
|
+
id: string;
|
|
3143
|
+
url: string;
|
|
3144
|
+
filename: string;
|
|
3145
|
+
uploadedAt: string;
|
|
3146
|
+
}[] | undefined;
|
|
3147
|
+
correctiveActions?: string | undefined;
|
|
3148
|
+
photos?: string[] | undefined;
|
|
3149
|
+
resolvedAt?: string | undefined;
|
|
3150
|
+
assignedTo?: string | undefined;
|
|
3151
|
+
assignee?: {
|
|
3152
|
+
id: string;
|
|
3153
|
+
firstName?: string | null | undefined;
|
|
3154
|
+
lastName?: string | null | undefined;
|
|
3155
|
+
email?: string | undefined;
|
|
3156
|
+
name?: string | undefined;
|
|
3157
|
+
avatar?: string | null | undefined;
|
|
3158
|
+
} | undefined;
|
|
3159
|
+
reporter?: {
|
|
3160
|
+
id: string;
|
|
3161
|
+
firstName?: string | null | undefined;
|
|
3162
|
+
lastName?: string | null | undefined;
|
|
3163
|
+
email?: string | undefined;
|
|
3164
|
+
name?: string | undefined;
|
|
3165
|
+
avatar?: string | null | undefined;
|
|
3166
|
+
} | undefined;
|
|
3167
|
+
injuryOccurred?: boolean | undefined;
|
|
3168
|
+
medicalAttentionRequired?: boolean | undefined;
|
|
3169
|
+
workRelated?: boolean | undefined;
|
|
3170
|
+
witnessCount?: number | undefined;
|
|
3171
|
+
witnesses?: {
|
|
3172
|
+
name: string;
|
|
3173
|
+
contact: string;
|
|
3174
|
+
statement?: string | undefined;
|
|
3175
|
+
}[] | undefined;
|
|
3176
|
+
immediateActions?: string | undefined;
|
|
3177
|
+
rootCause?: string | undefined;
|
|
3178
|
+
preventiveActions?: string | undefined;
|
|
3179
|
+
followUpRequired?: boolean | undefined;
|
|
3180
|
+
followUpDate?: string | undefined;
|
|
3181
|
+
closedAt?: string | undefined;
|
|
3182
|
+
}>;
|
|
3183
|
+
}, "strip", z.ZodTypeAny, {
|
|
3184
|
+
id: string;
|
|
3185
|
+
type: "incidents";
|
|
3186
|
+
attributes: {
|
|
3187
|
+
id: string;
|
|
3188
|
+
createdAt: string;
|
|
3189
|
+
updatedAt: string;
|
|
3190
|
+
type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
|
|
3191
|
+
status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
|
|
3192
|
+
title: string;
|
|
3193
|
+
projectId: string;
|
|
3194
|
+
description: string;
|
|
3195
|
+
attachments: {
|
|
3196
|
+
id: string;
|
|
3197
|
+
url: string;
|
|
3198
|
+
filename: string;
|
|
3199
|
+
uploadedAt: string;
|
|
3200
|
+
}[];
|
|
3201
|
+
location: string;
|
|
3202
|
+
photos: string[];
|
|
3203
|
+
reportedBy: string;
|
|
3204
|
+
reportedAt: string;
|
|
3205
|
+
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
3206
|
+
dateOccurred: string;
|
|
3207
|
+
injuryOccurred: boolean;
|
|
3208
|
+
medicalAttentionRequired: boolean;
|
|
3209
|
+
workRelated: boolean;
|
|
3210
|
+
witnessCount: number;
|
|
3211
|
+
witnesses: {
|
|
3212
|
+
name: string;
|
|
3213
|
+
contact: string;
|
|
3214
|
+
statement?: string | undefined;
|
|
3215
|
+
}[];
|
|
3216
|
+
followUpRequired: boolean;
|
|
3217
|
+
correctiveActions?: string | undefined;
|
|
3218
|
+
resolvedAt?: string | undefined;
|
|
3219
|
+
assignedTo?: string | undefined;
|
|
3220
|
+
assignee?: {
|
|
3221
|
+
id: string;
|
|
3222
|
+
firstName?: string | null | undefined;
|
|
3223
|
+
lastName?: string | null | undefined;
|
|
3224
|
+
email?: string | undefined;
|
|
3225
|
+
name?: string | undefined;
|
|
3226
|
+
avatar?: string | null | undefined;
|
|
3227
|
+
} | undefined;
|
|
3228
|
+
reporter?: {
|
|
3229
|
+
id: string;
|
|
3230
|
+
firstName?: string | null | undefined;
|
|
3231
|
+
lastName?: string | null | undefined;
|
|
3232
|
+
email?: string | undefined;
|
|
3233
|
+
name?: string | undefined;
|
|
3234
|
+
avatar?: string | null | undefined;
|
|
3235
|
+
} | undefined;
|
|
3236
|
+
immediateActions?: string | undefined;
|
|
3237
|
+
rootCause?: string | undefined;
|
|
3238
|
+
preventiveActions?: string | undefined;
|
|
3239
|
+
followUpDate?: string | undefined;
|
|
3240
|
+
closedAt?: string | undefined;
|
|
3241
|
+
};
|
|
3242
|
+
}, {
|
|
3243
|
+
id: string;
|
|
3244
|
+
type: "incidents";
|
|
3245
|
+
attributes: {
|
|
3246
|
+
id: string;
|
|
3247
|
+
createdAt: string;
|
|
3248
|
+
updatedAt: string;
|
|
3249
|
+
type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
|
|
3250
|
+
status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
|
|
3251
|
+
title: string;
|
|
3252
|
+
projectId: string;
|
|
3253
|
+
description: string;
|
|
3254
|
+
location: string;
|
|
3255
|
+
reportedBy: string;
|
|
3256
|
+
reportedAt: string;
|
|
3257
|
+
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
3258
|
+
dateOccurred: string;
|
|
3259
|
+
attachments?: {
|
|
3260
|
+
id: string;
|
|
3261
|
+
url: string;
|
|
3262
|
+
filename: string;
|
|
3263
|
+
uploadedAt: string;
|
|
3264
|
+
}[] | undefined;
|
|
3265
|
+
correctiveActions?: string | undefined;
|
|
3266
|
+
photos?: string[] | undefined;
|
|
3267
|
+
resolvedAt?: string | undefined;
|
|
3268
|
+
assignedTo?: string | undefined;
|
|
3269
|
+
assignee?: {
|
|
3270
|
+
id: string;
|
|
3271
|
+
firstName?: string | null | undefined;
|
|
3272
|
+
lastName?: string | null | undefined;
|
|
3273
|
+
email?: string | undefined;
|
|
3274
|
+
name?: string | undefined;
|
|
3275
|
+
avatar?: string | null | undefined;
|
|
3276
|
+
} | undefined;
|
|
3277
|
+
reporter?: {
|
|
3278
|
+
id: string;
|
|
3279
|
+
firstName?: string | null | undefined;
|
|
3280
|
+
lastName?: string | null | undefined;
|
|
3281
|
+
email?: string | undefined;
|
|
3282
|
+
name?: string | undefined;
|
|
3283
|
+
avatar?: string | null | undefined;
|
|
3284
|
+
} | undefined;
|
|
3285
|
+
injuryOccurred?: boolean | undefined;
|
|
3286
|
+
medicalAttentionRequired?: boolean | undefined;
|
|
3287
|
+
workRelated?: boolean | undefined;
|
|
3288
|
+
witnessCount?: number | undefined;
|
|
3289
|
+
witnesses?: {
|
|
3290
|
+
name: string;
|
|
3291
|
+
contact: string;
|
|
3292
|
+
statement?: string | undefined;
|
|
3293
|
+
}[] | undefined;
|
|
3294
|
+
immediateActions?: string | undefined;
|
|
3295
|
+
rootCause?: string | undefined;
|
|
3296
|
+
preventiveActions?: string | undefined;
|
|
3297
|
+
followUpRequired?: boolean | undefined;
|
|
3298
|
+
followUpDate?: string | undefined;
|
|
3299
|
+
closedAt?: string | undefined;
|
|
3300
|
+
};
|
|
3301
|
+
}>;
|
|
3302
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3303
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
3304
|
+
self: z.ZodString;
|
|
3305
|
+
first: z.ZodOptional<z.ZodString>;
|
|
3306
|
+
last: z.ZodOptional<z.ZodString>;
|
|
3307
|
+
prev: z.ZodOptional<z.ZodString>;
|
|
3308
|
+
next: z.ZodOptional<z.ZodString>;
|
|
3309
|
+
}, "strip", z.ZodTypeAny, {
|
|
3310
|
+
self: string;
|
|
3311
|
+
first?: string | undefined;
|
|
3312
|
+
last?: string | undefined;
|
|
3313
|
+
prev?: string | undefined;
|
|
3314
|
+
next?: string | undefined;
|
|
3315
|
+
}, {
|
|
3316
|
+
self: string;
|
|
3317
|
+
first?: string | undefined;
|
|
3318
|
+
last?: string | undefined;
|
|
3319
|
+
prev?: string | undefined;
|
|
3320
|
+
next?: string | undefined;
|
|
3321
|
+
}>>;
|
|
3322
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3323
|
+
status: z.ZodString;
|
|
3324
|
+
title: z.ZodString;
|
|
3325
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3326
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3327
|
+
}, "strip", z.ZodTypeAny, {
|
|
3328
|
+
status: string;
|
|
3329
|
+
title: string;
|
|
3330
|
+
detail?: string | undefined;
|
|
3331
|
+
meta?: Record<string, unknown> | undefined;
|
|
3332
|
+
}, {
|
|
3333
|
+
status: string;
|
|
3334
|
+
title: string;
|
|
3335
|
+
detail?: string | undefined;
|
|
3336
|
+
meta?: Record<string, unknown> | undefined;
|
|
3337
|
+
}>, "many">>;
|
|
3338
|
+
}, "strip", z.ZodTypeAny, {
|
|
3339
|
+
data: {
|
|
3340
|
+
id: string;
|
|
3341
|
+
type: "incidents";
|
|
3342
|
+
attributes: {
|
|
3343
|
+
id: string;
|
|
3344
|
+
createdAt: string;
|
|
3345
|
+
updatedAt: string;
|
|
3346
|
+
type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
|
|
3347
|
+
status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
|
|
3348
|
+
title: string;
|
|
3349
|
+
projectId: string;
|
|
3350
|
+
description: string;
|
|
3351
|
+
attachments: {
|
|
3352
|
+
id: string;
|
|
3353
|
+
url: string;
|
|
3354
|
+
filename: string;
|
|
3355
|
+
uploadedAt: string;
|
|
3356
|
+
}[];
|
|
3357
|
+
location: string;
|
|
3358
|
+
photos: string[];
|
|
3359
|
+
reportedBy: string;
|
|
3360
|
+
reportedAt: string;
|
|
3361
|
+
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
3362
|
+
dateOccurred: string;
|
|
3363
|
+
injuryOccurred: boolean;
|
|
3364
|
+
medicalAttentionRequired: boolean;
|
|
3365
|
+
workRelated: boolean;
|
|
3366
|
+
witnessCount: number;
|
|
3367
|
+
witnesses: {
|
|
3368
|
+
name: string;
|
|
3369
|
+
contact: string;
|
|
3370
|
+
statement?: string | undefined;
|
|
3371
|
+
}[];
|
|
3372
|
+
followUpRequired: boolean;
|
|
3373
|
+
correctiveActions?: string | undefined;
|
|
3374
|
+
resolvedAt?: string | undefined;
|
|
3375
|
+
assignedTo?: string | undefined;
|
|
3376
|
+
assignee?: {
|
|
3377
|
+
id: string;
|
|
3378
|
+
firstName?: string | null | undefined;
|
|
3379
|
+
lastName?: string | null | undefined;
|
|
3380
|
+
email?: string | undefined;
|
|
3381
|
+
name?: string | undefined;
|
|
3382
|
+
avatar?: string | null | undefined;
|
|
3383
|
+
} | undefined;
|
|
3384
|
+
reporter?: {
|
|
3385
|
+
id: string;
|
|
3386
|
+
firstName?: string | null | undefined;
|
|
3387
|
+
lastName?: string | null | undefined;
|
|
3388
|
+
email?: string | undefined;
|
|
3389
|
+
name?: string | undefined;
|
|
3390
|
+
avatar?: string | null | undefined;
|
|
3391
|
+
} | undefined;
|
|
3392
|
+
immediateActions?: string | undefined;
|
|
3393
|
+
rootCause?: string | undefined;
|
|
3394
|
+
preventiveActions?: string | undefined;
|
|
3395
|
+
followUpDate?: string | undefined;
|
|
3396
|
+
closedAt?: string | undefined;
|
|
3397
|
+
};
|
|
3398
|
+
};
|
|
3399
|
+
meta?: Record<string, unknown> | undefined;
|
|
3400
|
+
links?: {
|
|
3401
|
+
self: string;
|
|
3402
|
+
first?: string | undefined;
|
|
3403
|
+
last?: string | undefined;
|
|
3404
|
+
prev?: string | undefined;
|
|
3405
|
+
next?: string | undefined;
|
|
3406
|
+
} | undefined;
|
|
3407
|
+
errors?: {
|
|
3408
|
+
status: string;
|
|
3409
|
+
title: string;
|
|
3410
|
+
detail?: string | undefined;
|
|
3411
|
+
meta?: Record<string, unknown> | undefined;
|
|
3412
|
+
}[] | undefined;
|
|
3413
|
+
}, {
|
|
3414
|
+
data: {
|
|
3415
|
+
id: string;
|
|
3416
|
+
type: "incidents";
|
|
3417
|
+
attributes: {
|
|
3418
|
+
id: string;
|
|
3419
|
+
createdAt: string;
|
|
3420
|
+
updatedAt: string;
|
|
3421
|
+
type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
|
|
3422
|
+
status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
|
|
3423
|
+
title: string;
|
|
3424
|
+
projectId: string;
|
|
3425
|
+
description: string;
|
|
3426
|
+
location: string;
|
|
3427
|
+
reportedBy: string;
|
|
3428
|
+
reportedAt: string;
|
|
3429
|
+
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
3430
|
+
dateOccurred: string;
|
|
3431
|
+
attachments?: {
|
|
3432
|
+
id: string;
|
|
3433
|
+
url: string;
|
|
3434
|
+
filename: string;
|
|
3435
|
+
uploadedAt: string;
|
|
3436
|
+
}[] | undefined;
|
|
3437
|
+
correctiveActions?: string | undefined;
|
|
3438
|
+
photos?: string[] | undefined;
|
|
3439
|
+
resolvedAt?: string | undefined;
|
|
3440
|
+
assignedTo?: string | undefined;
|
|
3441
|
+
assignee?: {
|
|
3442
|
+
id: string;
|
|
3443
|
+
firstName?: string | null | undefined;
|
|
3444
|
+
lastName?: string | null | undefined;
|
|
3445
|
+
email?: string | undefined;
|
|
3446
|
+
name?: string | undefined;
|
|
3447
|
+
avatar?: string | null | undefined;
|
|
3448
|
+
} | undefined;
|
|
3449
|
+
reporter?: {
|
|
3450
|
+
id: string;
|
|
3451
|
+
firstName?: string | null | undefined;
|
|
3452
|
+
lastName?: string | null | undefined;
|
|
3453
|
+
email?: string | undefined;
|
|
3454
|
+
name?: string | undefined;
|
|
3455
|
+
avatar?: string | null | undefined;
|
|
3456
|
+
} | undefined;
|
|
3457
|
+
injuryOccurred?: boolean | undefined;
|
|
3458
|
+
medicalAttentionRequired?: boolean | undefined;
|
|
3459
|
+
workRelated?: boolean | undefined;
|
|
3460
|
+
witnessCount?: number | undefined;
|
|
3461
|
+
witnesses?: {
|
|
3462
|
+
name: string;
|
|
3463
|
+
contact: string;
|
|
3464
|
+
statement?: string | undefined;
|
|
3465
|
+
}[] | undefined;
|
|
3466
|
+
immediateActions?: string | undefined;
|
|
3467
|
+
rootCause?: string | undefined;
|
|
3468
|
+
preventiveActions?: string | undefined;
|
|
3469
|
+
followUpRequired?: boolean | undefined;
|
|
3470
|
+
followUpDate?: string | undefined;
|
|
3471
|
+
closedAt?: string | undefined;
|
|
3472
|
+
};
|
|
3473
|
+
};
|
|
3474
|
+
meta?: Record<string, unknown> | undefined;
|
|
3475
|
+
links?: {
|
|
3476
|
+
self: string;
|
|
3477
|
+
first?: string | undefined;
|
|
3478
|
+
last?: string | undefined;
|
|
3479
|
+
prev?: string | undefined;
|
|
3480
|
+
next?: string | undefined;
|
|
3481
|
+
} | undefined;
|
|
3482
|
+
errors?: {
|
|
3483
|
+
status: string;
|
|
3484
|
+
title: string;
|
|
3485
|
+
detail?: string | undefined;
|
|
3486
|
+
meta?: Record<string, unknown> | undefined;
|
|
3487
|
+
}[] | undefined;
|
|
3488
|
+
}>;
|
|
3489
|
+
400: z.ZodObject<{
|
|
3490
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3491
|
+
status: z.ZodString;
|
|
3492
|
+
title: z.ZodString;
|
|
3493
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3494
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3495
|
+
}, "strip", z.ZodTypeAny, {
|
|
3496
|
+
status: string;
|
|
3497
|
+
title: string;
|
|
3498
|
+
detail?: string | undefined;
|
|
3499
|
+
meta?: Record<string, unknown> | undefined;
|
|
3500
|
+
}, {
|
|
3501
|
+
status: string;
|
|
3502
|
+
title: string;
|
|
3503
|
+
detail?: string | undefined;
|
|
3504
|
+
meta?: Record<string, unknown> | undefined;
|
|
3505
|
+
}>, "many">;
|
|
3506
|
+
}, "strip", z.ZodTypeAny, {
|
|
3507
|
+
errors: {
|
|
3508
|
+
status: string;
|
|
3509
|
+
title: string;
|
|
3510
|
+
detail?: string | undefined;
|
|
3511
|
+
meta?: Record<string, unknown> | undefined;
|
|
3512
|
+
}[];
|
|
3513
|
+
}, {
|
|
3514
|
+
errors: {
|
|
3515
|
+
status: string;
|
|
3516
|
+
title: string;
|
|
3517
|
+
detail?: string | undefined;
|
|
3518
|
+
meta?: Record<string, unknown> | undefined;
|
|
3519
|
+
}[];
|
|
3520
|
+
}>;
|
|
3521
|
+
403: z.ZodObject<{
|
|
3522
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3523
|
+
status: z.ZodString;
|
|
3524
|
+
title: z.ZodString;
|
|
3525
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3526
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3527
|
+
}, "strip", z.ZodTypeAny, {
|
|
3528
|
+
status: string;
|
|
3529
|
+
title: string;
|
|
3530
|
+
detail?: string | undefined;
|
|
3531
|
+
meta?: Record<string, unknown> | undefined;
|
|
3532
|
+
}, {
|
|
3533
|
+
status: string;
|
|
3534
|
+
title: string;
|
|
3535
|
+
detail?: string | undefined;
|
|
3536
|
+
meta?: Record<string, unknown> | undefined;
|
|
3537
|
+
}>, "many">;
|
|
3538
|
+
}, "strip", z.ZodTypeAny, {
|
|
3539
|
+
errors: {
|
|
3540
|
+
status: string;
|
|
3541
|
+
title: string;
|
|
3542
|
+
detail?: string | undefined;
|
|
3543
|
+
meta?: Record<string, unknown> | undefined;
|
|
3544
|
+
}[];
|
|
3545
|
+
}, {
|
|
3546
|
+
errors: {
|
|
3547
|
+
status: string;
|
|
3548
|
+
title: string;
|
|
3549
|
+
detail?: string | undefined;
|
|
3550
|
+
meta?: Record<string, unknown> | undefined;
|
|
3551
|
+
}[];
|
|
3552
|
+
}>;
|
|
3553
|
+
404: z.ZodObject<{
|
|
3554
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3555
|
+
status: z.ZodString;
|
|
3556
|
+
title: z.ZodString;
|
|
3557
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3558
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3559
|
+
}, "strip", z.ZodTypeAny, {
|
|
3560
|
+
status: string;
|
|
3561
|
+
title: string;
|
|
3562
|
+
detail?: string | undefined;
|
|
3563
|
+
meta?: Record<string, unknown> | undefined;
|
|
3564
|
+
}, {
|
|
3565
|
+
status: string;
|
|
3566
|
+
title: string;
|
|
3567
|
+
detail?: string | undefined;
|
|
3568
|
+
meta?: Record<string, unknown> | undefined;
|
|
3569
|
+
}>, "many">;
|
|
3570
|
+
}, "strip", z.ZodTypeAny, {
|
|
3571
|
+
errors: {
|
|
3572
|
+
status: string;
|
|
3573
|
+
title: string;
|
|
3574
|
+
detail?: string | undefined;
|
|
3575
|
+
meta?: Record<string, unknown> | undefined;
|
|
3576
|
+
}[];
|
|
3577
|
+
}, {
|
|
3578
|
+
errors: {
|
|
3579
|
+
status: string;
|
|
3580
|
+
title: string;
|
|
3581
|
+
detail?: string | undefined;
|
|
3582
|
+
meta?: Record<string, unknown> | undefined;
|
|
3583
|
+
}[];
|
|
3584
|
+
}>;
|
|
3585
|
+
};
|
|
3586
|
+
};
|
|
3587
|
+
getIncidentActivities: {
|
|
3588
|
+
pathParams: z.ZodObject<{
|
|
3589
|
+
incidentId: z.ZodString;
|
|
3590
|
+
}, "strip", z.ZodTypeAny, {
|
|
3591
|
+
incidentId: string;
|
|
3592
|
+
}, {
|
|
3593
|
+
incidentId: string;
|
|
3594
|
+
}>;
|
|
3595
|
+
summary: "List activity history for a safety incident";
|
|
3596
|
+
method: "GET";
|
|
3597
|
+
path: "/safety/incidents/:incidentId/activities";
|
|
3598
|
+
responses: {
|
|
3599
|
+
200: z.ZodObject<{
|
|
3600
|
+
data: z.ZodArray<z.ZodObject<{
|
|
3601
|
+
type: z.ZodLiteral<"incident-activities">;
|
|
3602
|
+
id: z.ZodString;
|
|
3603
|
+
attributes: z.ZodObject<{
|
|
3604
|
+
id: z.ZodString;
|
|
3605
|
+
incidentId: z.ZodString;
|
|
3606
|
+
actorId: z.ZodString;
|
|
3607
|
+
type: z.ZodEnum<["CREATED", "STATUS_CHANGED", "ASSIGNED", "MEDIA_ADDED", "UPDATED"]>;
|
|
3608
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3609
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3610
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
3611
|
+
id: z.ZodString;
|
|
3612
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3613
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3614
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3615
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3616
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3617
|
+
}, "strip", z.ZodTypeAny, {
|
|
3618
|
+
id: string;
|
|
3619
|
+
firstName?: string | null | undefined;
|
|
3620
|
+
lastName?: string | null | undefined;
|
|
3621
|
+
email?: string | undefined;
|
|
3622
|
+
name?: string | undefined;
|
|
3623
|
+
avatar?: string | null | undefined;
|
|
3624
|
+
}, {
|
|
3625
|
+
id: string;
|
|
3626
|
+
firstName?: string | null | undefined;
|
|
3627
|
+
lastName?: string | null | undefined;
|
|
3628
|
+
email?: string | undefined;
|
|
3629
|
+
name?: string | undefined;
|
|
3630
|
+
avatar?: string | null | undefined;
|
|
3631
|
+
}>>;
|
|
3632
|
+
createdAt: z.ZodString;
|
|
3633
|
+
}, "strip", z.ZodTypeAny, {
|
|
3634
|
+
id: string;
|
|
3635
|
+
createdAt: string;
|
|
3636
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "MEDIA_ADDED" | "UPDATED";
|
|
3637
|
+
actorId: string;
|
|
3638
|
+
incidentId: string;
|
|
3639
|
+
message?: string | undefined;
|
|
3640
|
+
metadata?: Record<string, unknown> | undefined;
|
|
3641
|
+
actor?: {
|
|
3642
|
+
id: string;
|
|
3643
|
+
firstName?: string | null | undefined;
|
|
3644
|
+
lastName?: string | null | undefined;
|
|
3645
|
+
email?: string | undefined;
|
|
3646
|
+
name?: string | undefined;
|
|
3647
|
+
avatar?: string | null | undefined;
|
|
3648
|
+
} | undefined;
|
|
3649
|
+
}, {
|
|
3650
|
+
id: string;
|
|
3651
|
+
createdAt: string;
|
|
3652
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "MEDIA_ADDED" | "UPDATED";
|
|
3653
|
+
actorId: string;
|
|
3654
|
+
incidentId: string;
|
|
3655
|
+
message?: string | undefined;
|
|
3656
|
+
metadata?: Record<string, unknown> | undefined;
|
|
3657
|
+
actor?: {
|
|
3658
|
+
id: string;
|
|
3659
|
+
firstName?: string | null | undefined;
|
|
3660
|
+
lastName?: string | null | undefined;
|
|
3661
|
+
email?: string | undefined;
|
|
3662
|
+
name?: string | undefined;
|
|
3663
|
+
avatar?: string | null | undefined;
|
|
3664
|
+
} | undefined;
|
|
3665
|
+
}>;
|
|
3666
|
+
}, "strip", z.ZodTypeAny, {
|
|
3667
|
+
id: string;
|
|
3668
|
+
type: "incident-activities";
|
|
3669
|
+
attributes: {
|
|
3670
|
+
id: string;
|
|
3671
|
+
createdAt: string;
|
|
3672
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "MEDIA_ADDED" | "UPDATED";
|
|
3673
|
+
actorId: string;
|
|
3674
|
+
incidentId: string;
|
|
3675
|
+
message?: string | undefined;
|
|
3676
|
+
metadata?: Record<string, unknown> | undefined;
|
|
3677
|
+
actor?: {
|
|
3678
|
+
id: string;
|
|
3679
|
+
firstName?: string | null | undefined;
|
|
3680
|
+
lastName?: string | null | undefined;
|
|
3681
|
+
email?: string | undefined;
|
|
3682
|
+
name?: string | undefined;
|
|
3683
|
+
avatar?: string | null | undefined;
|
|
3684
|
+
} | undefined;
|
|
3685
|
+
};
|
|
3686
|
+
}, {
|
|
3687
|
+
id: string;
|
|
3688
|
+
type: "incident-activities";
|
|
3689
|
+
attributes: {
|
|
3690
|
+
id: string;
|
|
3691
|
+
createdAt: string;
|
|
3692
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "MEDIA_ADDED" | "UPDATED";
|
|
3693
|
+
actorId: string;
|
|
3694
|
+
incidentId: string;
|
|
3695
|
+
message?: string | undefined;
|
|
3696
|
+
metadata?: Record<string, unknown> | undefined;
|
|
3697
|
+
actor?: {
|
|
3698
|
+
id: string;
|
|
3699
|
+
firstName?: string | null | undefined;
|
|
3700
|
+
lastName?: string | null | undefined;
|
|
3701
|
+
email?: string | undefined;
|
|
3702
|
+
name?: string | undefined;
|
|
3703
|
+
avatar?: string | null | undefined;
|
|
3704
|
+
} | undefined;
|
|
3705
|
+
};
|
|
3706
|
+
}>, "many">;
|
|
3707
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
3708
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
3709
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
3710
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
3711
|
+
pages: z.ZodOptional<z.ZodNumber>;
|
|
3712
|
+
hasNextPage: z.ZodOptional<z.ZodBoolean>;
|
|
3713
|
+
hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
|
|
3714
|
+
}, "strip", z.ZodTypeAny, {
|
|
3715
|
+
page?: number | undefined;
|
|
3716
|
+
total?: number | undefined;
|
|
3717
|
+
size?: number | undefined;
|
|
3718
|
+
pages?: number | undefined;
|
|
3719
|
+
hasNextPage?: boolean | undefined;
|
|
3720
|
+
hasPreviousPage?: boolean | undefined;
|
|
3721
|
+
}, {
|
|
3722
|
+
page?: number | undefined;
|
|
3723
|
+
total?: number | undefined;
|
|
3724
|
+
size?: number | undefined;
|
|
3725
|
+
pages?: number | undefined;
|
|
3726
|
+
hasNextPage?: boolean | undefined;
|
|
3727
|
+
hasPreviousPage?: boolean | undefined;
|
|
3728
|
+
}>>;
|
|
3729
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
3730
|
+
self: z.ZodString;
|
|
3731
|
+
first: z.ZodOptional<z.ZodString>;
|
|
3732
|
+
last: z.ZodOptional<z.ZodString>;
|
|
3733
|
+
prev: z.ZodOptional<z.ZodString>;
|
|
3734
|
+
next: z.ZodOptional<z.ZodString>;
|
|
3735
|
+
}, "strip", z.ZodTypeAny, {
|
|
3736
|
+
self: string;
|
|
3737
|
+
first?: string | undefined;
|
|
3738
|
+
last?: string | undefined;
|
|
3739
|
+
prev?: string | undefined;
|
|
3740
|
+
next?: string | undefined;
|
|
3741
|
+
}, {
|
|
3742
|
+
self: string;
|
|
3743
|
+
first?: string | undefined;
|
|
3744
|
+
last?: string | undefined;
|
|
3745
|
+
prev?: string | undefined;
|
|
3746
|
+
next?: string | undefined;
|
|
3747
|
+
}>>;
|
|
3748
|
+
}, "strip", z.ZodTypeAny, {
|
|
3749
|
+
data: {
|
|
3750
|
+
id: string;
|
|
3751
|
+
type: "incident-activities";
|
|
3752
|
+
attributes: {
|
|
3753
|
+
id: string;
|
|
3754
|
+
createdAt: string;
|
|
3755
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "MEDIA_ADDED" | "UPDATED";
|
|
3756
|
+
actorId: string;
|
|
3757
|
+
incidentId: string;
|
|
3758
|
+
message?: string | undefined;
|
|
3759
|
+
metadata?: Record<string, unknown> | undefined;
|
|
3760
|
+
actor?: {
|
|
3761
|
+
id: string;
|
|
3762
|
+
firstName?: string | null | undefined;
|
|
3763
|
+
lastName?: string | null | undefined;
|
|
3764
|
+
email?: string | undefined;
|
|
3765
|
+
name?: string | undefined;
|
|
3766
|
+
avatar?: string | null | undefined;
|
|
3767
|
+
} | undefined;
|
|
3768
|
+
};
|
|
3769
|
+
}[];
|
|
3770
|
+
meta?: {
|
|
3771
|
+
page?: number | undefined;
|
|
3772
|
+
total?: number | undefined;
|
|
3773
|
+
size?: number | undefined;
|
|
3774
|
+
pages?: number | undefined;
|
|
3775
|
+
hasNextPage?: boolean | undefined;
|
|
3776
|
+
hasPreviousPage?: boolean | undefined;
|
|
3777
|
+
} | undefined;
|
|
3778
|
+
links?: {
|
|
3779
|
+
self: string;
|
|
3780
|
+
first?: string | undefined;
|
|
3781
|
+
last?: string | undefined;
|
|
3782
|
+
prev?: string | undefined;
|
|
3783
|
+
next?: string | undefined;
|
|
3784
|
+
} | undefined;
|
|
3785
|
+
}, {
|
|
3786
|
+
data: {
|
|
3787
|
+
id: string;
|
|
3788
|
+
type: "incident-activities";
|
|
3789
|
+
attributes: {
|
|
3790
|
+
id: string;
|
|
3791
|
+
createdAt: string;
|
|
3792
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "MEDIA_ADDED" | "UPDATED";
|
|
3793
|
+
actorId: string;
|
|
3794
|
+
incidentId: string;
|
|
3795
|
+
message?: string | undefined;
|
|
3796
|
+
metadata?: Record<string, unknown> | undefined;
|
|
3797
|
+
actor?: {
|
|
3798
|
+
id: string;
|
|
3799
|
+
firstName?: string | null | undefined;
|
|
3800
|
+
lastName?: string | null | undefined;
|
|
3801
|
+
email?: string | undefined;
|
|
3802
|
+
name?: string | undefined;
|
|
3803
|
+
avatar?: string | null | undefined;
|
|
3804
|
+
} | undefined;
|
|
3805
|
+
};
|
|
3806
|
+
}[];
|
|
3807
|
+
meta?: {
|
|
3808
|
+
page?: number | undefined;
|
|
3809
|
+
total?: number | undefined;
|
|
3810
|
+
size?: number | undefined;
|
|
3811
|
+
pages?: number | undefined;
|
|
3812
|
+
hasNextPage?: boolean | undefined;
|
|
3813
|
+
hasPreviousPage?: boolean | undefined;
|
|
3814
|
+
} | undefined;
|
|
3815
|
+
links?: {
|
|
3816
|
+
self: string;
|
|
3817
|
+
first?: string | undefined;
|
|
3818
|
+
last?: string | undefined;
|
|
3819
|
+
prev?: string | undefined;
|
|
3820
|
+
next?: string | undefined;
|
|
3821
|
+
} | undefined;
|
|
3822
|
+
}>;
|
|
3823
|
+
403: z.ZodObject<{
|
|
3824
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3825
|
+
status: z.ZodString;
|
|
3826
|
+
title: z.ZodString;
|
|
3827
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3828
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3829
|
+
}, "strip", z.ZodTypeAny, {
|
|
3830
|
+
status: string;
|
|
3831
|
+
title: string;
|
|
3832
|
+
detail?: string | undefined;
|
|
3833
|
+
meta?: Record<string, unknown> | undefined;
|
|
3834
|
+
}, {
|
|
3835
|
+
status: string;
|
|
3836
|
+
title: string;
|
|
3837
|
+
detail?: string | undefined;
|
|
3838
|
+
meta?: Record<string, unknown> | undefined;
|
|
3839
|
+
}>, "many">;
|
|
3840
|
+
}, "strip", z.ZodTypeAny, {
|
|
3841
|
+
errors: {
|
|
3842
|
+
status: string;
|
|
3843
|
+
title: string;
|
|
3844
|
+
detail?: string | undefined;
|
|
3845
|
+
meta?: Record<string, unknown> | undefined;
|
|
3846
|
+
}[];
|
|
3847
|
+
}, {
|
|
3848
|
+
errors: {
|
|
3849
|
+
status: string;
|
|
3850
|
+
title: string;
|
|
3851
|
+
detail?: string | undefined;
|
|
3852
|
+
meta?: Record<string, unknown> | undefined;
|
|
3853
|
+
}[];
|
|
3854
|
+
}>;
|
|
3855
|
+
404: z.ZodObject<{
|
|
3856
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
3857
|
+
status: z.ZodString;
|
|
3858
|
+
title: z.ZodString;
|
|
3859
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3860
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3861
|
+
}, "strip", z.ZodTypeAny, {
|
|
3862
|
+
status: string;
|
|
3863
|
+
title: string;
|
|
3864
|
+
detail?: string | undefined;
|
|
3865
|
+
meta?: Record<string, unknown> | undefined;
|
|
3866
|
+
}, {
|
|
3867
|
+
status: string;
|
|
3868
|
+
title: string;
|
|
3869
|
+
detail?: string | undefined;
|
|
3870
|
+
meta?: Record<string, unknown> | undefined;
|
|
3871
|
+
}>, "many">;
|
|
3872
|
+
}, "strip", z.ZodTypeAny, {
|
|
3873
|
+
errors: {
|
|
3874
|
+
status: string;
|
|
3875
|
+
title: string;
|
|
3876
|
+
detail?: string | undefined;
|
|
3877
|
+
meta?: Record<string, unknown> | undefined;
|
|
3878
|
+
}[];
|
|
3879
|
+
}, {
|
|
3880
|
+
errors: {
|
|
3881
|
+
status: string;
|
|
3882
|
+
title: string;
|
|
3883
|
+
detail?: string | undefined;
|
|
3884
|
+
meta?: Record<string, unknown> | undefined;
|
|
3885
|
+
}[];
|
|
3886
|
+
}>;
|
|
3887
|
+
};
|
|
3888
|
+
};
|
|
3889
|
+
getProjectSafetyIncidents: {
|
|
3890
|
+
pathParams: z.ZodObject<{
|
|
3891
|
+
projectId: z.ZodString;
|
|
3892
|
+
}, "strip", z.ZodTypeAny, {
|
|
3893
|
+
projectId: string;
|
|
3894
|
+
}, {
|
|
3895
|
+
projectId: string;
|
|
3896
|
+
}>;
|
|
3897
|
+
query: z.ZodObject<{
|
|
3898
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
3899
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
3900
|
+
severity: z.ZodOptional<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
|
|
3901
|
+
status: z.ZodOptional<z.ZodEnum<["REPORTED", "INVESTIGATING", "RESOLVED", "CLOSED"]>>;
|
|
3902
|
+
dateFrom: z.ZodOptional<z.ZodString>;
|
|
3903
|
+
dateTo: z.ZodOptional<z.ZodString>;
|
|
3904
|
+
}, "strip", z.ZodTypeAny, {
|
|
3905
|
+
page: number;
|
|
3906
|
+
limit: number;
|
|
3907
|
+
status?: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED" | undefined;
|
|
3908
|
+
dateFrom?: string | undefined;
|
|
3909
|
+
dateTo?: string | undefined;
|
|
3910
|
+
severity?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
|
|
3911
|
+
}, {
|
|
3912
|
+
status?: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED" | undefined;
|
|
3913
|
+
page?: number | undefined;
|
|
3914
|
+
limit?: number | undefined;
|
|
3915
|
+
dateFrom?: string | undefined;
|
|
3916
|
+
dateTo?: string | undefined;
|
|
3917
|
+
severity?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
|
|
3918
|
+
}>;
|
|
3919
|
+
summary: "Get safety incidents for a specific project";
|
|
3920
|
+
method: "GET";
|
|
3921
|
+
path: "/projects/:projectId/safety/incidents";
|
|
3922
|
+
responses: {
|
|
3923
|
+
200: z.ZodObject<{
|
|
3924
|
+
data: z.ZodArray<z.ZodObject<{
|
|
3925
|
+
type: z.ZodLiteral<"incidents">;
|
|
3926
|
+
id: z.ZodString;
|
|
3927
|
+
attributes: z.ZodObject<{
|
|
3928
|
+
id: z.ZodString;
|
|
3929
|
+
title: z.ZodString;
|
|
3930
|
+
description: z.ZodString;
|
|
3931
|
+
type: z.ZodEnum<["INJURY", "NEAR_MISS", "PROPERTY_DAMAGE", "ENVIRONMENTAL", "SECURITY", "EQUIPMENT_FAILURE"]>;
|
|
3932
|
+
severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
|
|
3933
|
+
status: z.ZodEnum<["REPORTED", "INVESTIGATING", "RESOLVED", "CLOSED"]>;
|
|
3934
|
+
location: z.ZodString;
|
|
3935
|
+
dateOccurred: z.ZodString;
|
|
3936
|
+
reportedBy: z.ZodString;
|
|
3937
|
+
reportedAt: z.ZodString;
|
|
3938
|
+
projectId: z.ZodString;
|
|
3939
|
+
injuryOccurred: z.ZodDefault<z.ZodBoolean>;
|
|
3940
|
+
medicalAttentionRequired: z.ZodDefault<z.ZodBoolean>;
|
|
3941
|
+
workRelated: z.ZodDefault<z.ZodBoolean>;
|
|
3942
|
+
witnessCount: z.ZodDefault<z.ZodNumber>;
|
|
3943
|
+
witnesses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3944
|
+
name: z.ZodString;
|
|
3945
|
+
contact: z.ZodString;
|
|
3946
|
+
statement: z.ZodOptional<z.ZodString>;
|
|
3947
|
+
}, "strip", z.ZodTypeAny, {
|
|
3948
|
+
name: string;
|
|
3949
|
+
contact: string;
|
|
3950
|
+
statement?: string | undefined;
|
|
3951
|
+
}, {
|
|
3952
|
+
name: string;
|
|
3953
|
+
contact: string;
|
|
3954
|
+
statement?: string | undefined;
|
|
3955
|
+
}>, "many">>;
|
|
3956
|
+
immediateActions: z.ZodOptional<z.ZodString>;
|
|
3957
|
+
rootCause: z.ZodOptional<z.ZodString>;
|
|
3958
|
+
correctiveActions: z.ZodOptional<z.ZodString>;
|
|
3959
|
+
preventiveActions: z.ZodOptional<z.ZodString>;
|
|
3960
|
+
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
3961
|
+
followUpDate: z.ZodOptional<z.ZodString>;
|
|
3962
|
+
assignedTo: z.ZodOptional<z.ZodString>;
|
|
3963
|
+
reporter: z.ZodOptional<z.ZodObject<{
|
|
3964
|
+
id: z.ZodString;
|
|
3965
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3966
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3967
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3968
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3969
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3970
|
+
}, "strip", z.ZodTypeAny, {
|
|
3971
|
+
id: string;
|
|
3972
|
+
firstName?: string | null | undefined;
|
|
3973
|
+
lastName?: string | null | undefined;
|
|
3974
|
+
email?: string | undefined;
|
|
3975
|
+
name?: string | undefined;
|
|
3976
|
+
avatar?: string | null | undefined;
|
|
3977
|
+
}, {
|
|
3978
|
+
id: string;
|
|
3979
|
+
firstName?: string | null | undefined;
|
|
3980
|
+
lastName?: string | null | undefined;
|
|
3981
|
+
email?: string | undefined;
|
|
3982
|
+
name?: string | undefined;
|
|
3983
|
+
avatar?: string | null | undefined;
|
|
3984
|
+
}>>;
|
|
3985
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
3986
|
+
id: z.ZodString;
|
|
3987
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3988
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3989
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3990
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3991
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3992
|
+
}, "strip", z.ZodTypeAny, {
|
|
3993
|
+
id: string;
|
|
3994
|
+
firstName?: string | null | undefined;
|
|
3995
|
+
lastName?: string | null | undefined;
|
|
3996
|
+
email?: string | undefined;
|
|
3997
|
+
name?: string | undefined;
|
|
3998
|
+
avatar?: string | null | undefined;
|
|
3999
|
+
}, {
|
|
4000
|
+
id: string;
|
|
4001
|
+
firstName?: string | null | undefined;
|
|
4002
|
+
lastName?: string | null | undefined;
|
|
4003
|
+
email?: string | undefined;
|
|
4004
|
+
name?: string | undefined;
|
|
4005
|
+
avatar?: string | null | undefined;
|
|
4006
|
+
}>>;
|
|
4007
|
+
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
4008
|
+
closedAt: z.ZodOptional<z.ZodString>;
|
|
4009
|
+
photos: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4010
|
+
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4011
|
+
id: z.ZodString;
|
|
4012
|
+
filename: z.ZodString;
|
|
4013
|
+
url: z.ZodString;
|
|
4014
|
+
uploadedAt: z.ZodString;
|
|
4015
|
+
}, "strip", z.ZodTypeAny, {
|
|
4016
|
+
id: string;
|
|
4017
|
+
url: string;
|
|
4018
|
+
filename: string;
|
|
4019
|
+
uploadedAt: string;
|
|
4020
|
+
}, {
|
|
4021
|
+
id: string;
|
|
4022
|
+
url: string;
|
|
4023
|
+
filename: string;
|
|
4024
|
+
uploadedAt: string;
|
|
4025
|
+
}>, "many">>;
|
|
4026
|
+
createdAt: z.ZodString;
|
|
4027
|
+
updatedAt: z.ZodString;
|
|
4028
|
+
}, "strip", z.ZodTypeAny, {
|
|
4029
|
+
id: string;
|
|
4030
|
+
createdAt: string;
|
|
4031
|
+
updatedAt: string;
|
|
4032
|
+
type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
|
|
4033
|
+
status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
|
|
4034
|
+
title: string;
|
|
4035
|
+
projectId: string;
|
|
4036
|
+
description: string;
|
|
4037
|
+
attachments: {
|
|
4038
|
+
id: string;
|
|
4039
|
+
url: string;
|
|
4040
|
+
filename: string;
|
|
4041
|
+
uploadedAt: string;
|
|
4042
|
+
}[];
|
|
4043
|
+
location: string;
|
|
4044
|
+
photos: string[];
|
|
4045
|
+
reportedBy: string;
|
|
4046
|
+
reportedAt: string;
|
|
4047
|
+
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
4048
|
+
dateOccurred: string;
|
|
4049
|
+
injuryOccurred: boolean;
|
|
4050
|
+
medicalAttentionRequired: boolean;
|
|
4051
|
+
workRelated: boolean;
|
|
4052
|
+
witnessCount: number;
|
|
4053
|
+
witnesses: {
|
|
4054
|
+
name: string;
|
|
4055
|
+
contact: string;
|
|
4056
|
+
statement?: string | undefined;
|
|
4057
|
+
}[];
|
|
4058
|
+
followUpRequired: boolean;
|
|
4059
|
+
correctiveActions?: string | undefined;
|
|
4060
|
+
resolvedAt?: string | undefined;
|
|
4061
|
+
assignedTo?: string | undefined;
|
|
4062
|
+
assignee?: {
|
|
4063
|
+
id: string;
|
|
4064
|
+
firstName?: string | null | undefined;
|
|
4065
|
+
lastName?: string | null | undefined;
|
|
4066
|
+
email?: string | undefined;
|
|
4067
|
+
name?: string | undefined;
|
|
4068
|
+
avatar?: string | null | undefined;
|
|
4069
|
+
} | undefined;
|
|
4070
|
+
reporter?: {
|
|
4071
|
+
id: string;
|
|
4072
|
+
firstName?: string | null | undefined;
|
|
4073
|
+
lastName?: string | null | undefined;
|
|
4074
|
+
email?: string | undefined;
|
|
4075
|
+
name?: string | undefined;
|
|
4076
|
+
avatar?: string | null | undefined;
|
|
4077
|
+
} | undefined;
|
|
4078
|
+
immediateActions?: string | undefined;
|
|
4079
|
+
rootCause?: string | undefined;
|
|
4080
|
+
preventiveActions?: string | undefined;
|
|
4081
|
+
followUpDate?: string | undefined;
|
|
4082
|
+
closedAt?: string | undefined;
|
|
4083
|
+
}, {
|
|
4084
|
+
id: string;
|
|
4085
|
+
createdAt: string;
|
|
4086
|
+
updatedAt: string;
|
|
4087
|
+
type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
|
|
4088
|
+
status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
|
|
4089
|
+
title: string;
|
|
4090
|
+
projectId: string;
|
|
4091
|
+
description: string;
|
|
4092
|
+
location: string;
|
|
4093
|
+
reportedBy: string;
|
|
4094
|
+
reportedAt: string;
|
|
4095
|
+
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
4096
|
+
dateOccurred: string;
|
|
4097
|
+
attachments?: {
|
|
4098
|
+
id: string;
|
|
4099
|
+
url: string;
|
|
4100
|
+
filename: string;
|
|
4101
|
+
uploadedAt: string;
|
|
4102
|
+
}[] | undefined;
|
|
4103
|
+
correctiveActions?: string | undefined;
|
|
4104
|
+
photos?: string[] | undefined;
|
|
4105
|
+
resolvedAt?: string | undefined;
|
|
4106
|
+
assignedTo?: string | undefined;
|
|
4107
|
+
assignee?: {
|
|
4108
|
+
id: string;
|
|
4109
|
+
firstName?: string | null | undefined;
|
|
4110
|
+
lastName?: string | null | undefined;
|
|
4111
|
+
email?: string | undefined;
|
|
4112
|
+
name?: string | undefined;
|
|
4113
|
+
avatar?: string | null | undefined;
|
|
4114
|
+
} | undefined;
|
|
4115
|
+
reporter?: {
|
|
4116
|
+
id: string;
|
|
4117
|
+
firstName?: string | null | undefined;
|
|
4118
|
+
lastName?: string | null | undefined;
|
|
4119
|
+
email?: string | undefined;
|
|
4120
|
+
name?: string | undefined;
|
|
4121
|
+
avatar?: string | null | undefined;
|
|
4122
|
+
} | undefined;
|
|
4123
|
+
injuryOccurred?: boolean | undefined;
|
|
4124
|
+
medicalAttentionRequired?: boolean | undefined;
|
|
4125
|
+
workRelated?: boolean | undefined;
|
|
4126
|
+
witnessCount?: number | undefined;
|
|
4127
|
+
witnesses?: {
|
|
4128
|
+
name: string;
|
|
4129
|
+
contact: string;
|
|
4130
|
+
statement?: string | undefined;
|
|
4131
|
+
}[] | undefined;
|
|
4132
|
+
immediateActions?: string | undefined;
|
|
4133
|
+
rootCause?: string | undefined;
|
|
4134
|
+
preventiveActions?: string | undefined;
|
|
4135
|
+
followUpRequired?: boolean | undefined;
|
|
4136
|
+
followUpDate?: string | undefined;
|
|
4137
|
+
closedAt?: string | undefined;
|
|
4138
|
+
}>;
|
|
4139
|
+
}, "strip", z.ZodTypeAny, {
|
|
4140
|
+
id: string;
|
|
4141
|
+
type: "incidents";
|
|
4142
|
+
attributes: {
|
|
4143
|
+
id: string;
|
|
4144
|
+
createdAt: string;
|
|
4145
|
+
updatedAt: string;
|
|
4146
|
+
type: "INJURY" | "NEAR_MISS" | "PROPERTY_DAMAGE" | "ENVIRONMENTAL" | "EQUIPMENT_FAILURE" | "SECURITY";
|
|
4147
|
+
status: "CLOSED" | "REPORTED" | "INVESTIGATING" | "RESOLVED";
|
|
4148
|
+
title: string;
|
|
4149
|
+
projectId: string;
|
|
2228
4150
|
description: string;
|
|
2229
4151
|
attachments: {
|
|
2230
4152
|
id: string;
|
|
@@ -2233,6 +4155,7 @@ export declare const safetyContract: {
|
|
|
2233
4155
|
uploadedAt: string;
|
|
2234
4156
|
}[];
|
|
2235
4157
|
location: string;
|
|
4158
|
+
photos: string[];
|
|
2236
4159
|
reportedBy: string;
|
|
2237
4160
|
reportedAt: string;
|
|
2238
4161
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -2250,10 +4173,27 @@ export declare const safetyContract: {
|
|
|
2250
4173
|
correctiveActions?: string | undefined;
|
|
2251
4174
|
resolvedAt?: string | undefined;
|
|
2252
4175
|
assignedTo?: string | undefined;
|
|
4176
|
+
assignee?: {
|
|
4177
|
+
id: string;
|
|
4178
|
+
firstName?: string | null | undefined;
|
|
4179
|
+
lastName?: string | null | undefined;
|
|
4180
|
+
email?: string | undefined;
|
|
4181
|
+
name?: string | undefined;
|
|
4182
|
+
avatar?: string | null | undefined;
|
|
4183
|
+
} | undefined;
|
|
4184
|
+
reporter?: {
|
|
4185
|
+
id: string;
|
|
4186
|
+
firstName?: string | null | undefined;
|
|
4187
|
+
lastName?: string | null | undefined;
|
|
4188
|
+
email?: string | undefined;
|
|
4189
|
+
name?: string | undefined;
|
|
4190
|
+
avatar?: string | null | undefined;
|
|
4191
|
+
} | undefined;
|
|
2253
4192
|
immediateActions?: string | undefined;
|
|
2254
4193
|
rootCause?: string | undefined;
|
|
2255
4194
|
preventiveActions?: string | undefined;
|
|
2256
4195
|
followUpDate?: string | undefined;
|
|
4196
|
+
closedAt?: string | undefined;
|
|
2257
4197
|
};
|
|
2258
4198
|
}, {
|
|
2259
4199
|
id: string;
|
|
@@ -2279,8 +4219,25 @@ export declare const safetyContract: {
|
|
|
2279
4219
|
uploadedAt: string;
|
|
2280
4220
|
}[] | undefined;
|
|
2281
4221
|
correctiveActions?: string | undefined;
|
|
4222
|
+
photos?: string[] | undefined;
|
|
2282
4223
|
resolvedAt?: string | undefined;
|
|
2283
4224
|
assignedTo?: string | undefined;
|
|
4225
|
+
assignee?: {
|
|
4226
|
+
id: string;
|
|
4227
|
+
firstName?: string | null | undefined;
|
|
4228
|
+
lastName?: string | null | undefined;
|
|
4229
|
+
email?: string | undefined;
|
|
4230
|
+
name?: string | undefined;
|
|
4231
|
+
avatar?: string | null | undefined;
|
|
4232
|
+
} | undefined;
|
|
4233
|
+
reporter?: {
|
|
4234
|
+
id: string;
|
|
4235
|
+
firstName?: string | null | undefined;
|
|
4236
|
+
lastName?: string | null | undefined;
|
|
4237
|
+
email?: string | undefined;
|
|
4238
|
+
name?: string | undefined;
|
|
4239
|
+
avatar?: string | null | undefined;
|
|
4240
|
+
} | undefined;
|
|
2284
4241
|
injuryOccurred?: boolean | undefined;
|
|
2285
4242
|
medicalAttentionRequired?: boolean | undefined;
|
|
2286
4243
|
workRelated?: boolean | undefined;
|
|
@@ -2295,6 +4252,7 @@ export declare const safetyContract: {
|
|
|
2295
4252
|
preventiveActions?: string | undefined;
|
|
2296
4253
|
followUpRequired?: boolean | undefined;
|
|
2297
4254
|
followUpDate?: string | undefined;
|
|
4255
|
+
closedAt?: string | undefined;
|
|
2298
4256
|
};
|
|
2299
4257
|
}>, "many">;
|
|
2300
4258
|
meta: z.ZodOptional<z.ZodObject<{
|
|
@@ -2358,6 +4316,7 @@ export declare const safetyContract: {
|
|
|
2358
4316
|
uploadedAt: string;
|
|
2359
4317
|
}[];
|
|
2360
4318
|
location: string;
|
|
4319
|
+
photos: string[];
|
|
2361
4320
|
reportedBy: string;
|
|
2362
4321
|
reportedAt: string;
|
|
2363
4322
|
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -2375,10 +4334,27 @@ export declare const safetyContract: {
|
|
|
2375
4334
|
correctiveActions?: string | undefined;
|
|
2376
4335
|
resolvedAt?: string | undefined;
|
|
2377
4336
|
assignedTo?: string | undefined;
|
|
4337
|
+
assignee?: {
|
|
4338
|
+
id: string;
|
|
4339
|
+
firstName?: string | null | undefined;
|
|
4340
|
+
lastName?: string | null | undefined;
|
|
4341
|
+
email?: string | undefined;
|
|
4342
|
+
name?: string | undefined;
|
|
4343
|
+
avatar?: string | null | undefined;
|
|
4344
|
+
} | undefined;
|
|
4345
|
+
reporter?: {
|
|
4346
|
+
id: string;
|
|
4347
|
+
firstName?: string | null | undefined;
|
|
4348
|
+
lastName?: string | null | undefined;
|
|
4349
|
+
email?: string | undefined;
|
|
4350
|
+
name?: string | undefined;
|
|
4351
|
+
avatar?: string | null | undefined;
|
|
4352
|
+
} | undefined;
|
|
2378
4353
|
immediateActions?: string | undefined;
|
|
2379
4354
|
rootCause?: string | undefined;
|
|
2380
4355
|
preventiveActions?: string | undefined;
|
|
2381
4356
|
followUpDate?: string | undefined;
|
|
4357
|
+
closedAt?: string | undefined;
|
|
2382
4358
|
};
|
|
2383
4359
|
}[];
|
|
2384
4360
|
meta?: {
|
|
@@ -2421,8 +4397,25 @@ export declare const safetyContract: {
|
|
|
2421
4397
|
uploadedAt: string;
|
|
2422
4398
|
}[] | undefined;
|
|
2423
4399
|
correctiveActions?: string | undefined;
|
|
4400
|
+
photos?: string[] | undefined;
|
|
2424
4401
|
resolvedAt?: string | undefined;
|
|
2425
4402
|
assignedTo?: string | undefined;
|
|
4403
|
+
assignee?: {
|
|
4404
|
+
id: string;
|
|
4405
|
+
firstName?: string | null | undefined;
|
|
4406
|
+
lastName?: string | null | undefined;
|
|
4407
|
+
email?: string | undefined;
|
|
4408
|
+
name?: string | undefined;
|
|
4409
|
+
avatar?: string | null | undefined;
|
|
4410
|
+
} | undefined;
|
|
4411
|
+
reporter?: {
|
|
4412
|
+
id: string;
|
|
4413
|
+
firstName?: string | null | undefined;
|
|
4414
|
+
lastName?: string | null | undefined;
|
|
4415
|
+
email?: string | undefined;
|
|
4416
|
+
name?: string | undefined;
|
|
4417
|
+
avatar?: string | null | undefined;
|
|
4418
|
+
} | undefined;
|
|
2426
4419
|
injuryOccurred?: boolean | undefined;
|
|
2427
4420
|
medicalAttentionRequired?: boolean | undefined;
|
|
2428
4421
|
workRelated?: boolean | undefined;
|
|
@@ -2437,6 +4430,7 @@ export declare const safetyContract: {
|
|
|
2437
4430
|
preventiveActions?: string | undefined;
|
|
2438
4431
|
followUpRequired?: boolean | undefined;
|
|
2439
4432
|
followUpDate?: string | undefined;
|
|
4433
|
+
closedAt?: string | undefined;
|
|
2440
4434
|
};
|
|
2441
4435
|
}[];
|
|
2442
4436
|
meta?: {
|