@deepintel-ltd/buildlink-api-contracts 0.2.31 → 0.2.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/README.md +1 -1
  2. package/contracts/auth.d.ts.map +1 -1
  3. package/contracts/auth.js.map +1 -1
  4. package/contracts/budget.d.ts +824 -6481
  5. package/contracts/budget.d.ts.map +1 -1
  6. package/contracts/budget.js +1 -286
  7. package/contracts/budget.js.map +1 -1
  8. package/contracts/commercial.d.ts +1 -241
  9. package/contracts/commercial.d.ts.map +1 -1
  10. package/contracts/commercial.js +2 -13
  11. package/contracts/commercial.js.map +1 -1
  12. package/contracts/communication.d.ts +1014 -1890
  13. package/contracts/communication.d.ts.map +1 -1
  14. package/contracts/communication.js +1 -65
  15. package/contracts/communication.js.map +1 -1
  16. package/contracts/daily-logs.d.ts +560 -0
  17. package/contracts/daily-logs.d.ts.map +1 -1
  18. package/contracts/deficiencies.d.ts +0 -375
  19. package/contracts/deficiencies.d.ts.map +1 -1
  20. package/contracts/deficiencies.js +1 -14
  21. package/contracts/deficiencies.js.map +1 -1
  22. package/contracts/directory.d.ts +0 -327
  23. package/contracts/directory.d.ts.map +1 -1
  24. package/contracts/directory.js +1 -18
  25. package/contracts/directory.js.map +1 -1
  26. package/contracts/documents.d.ts +391 -3437
  27. package/contracts/documents.d.ts.map +1 -1
  28. package/contracts/documents.js +0 -144
  29. package/contracts/documents.js.map +1 -1
  30. package/contracts/drawings.d.ts +441 -2313
  31. package/contracts/drawings.d.ts.map +1 -1
  32. package/contracts/drawings.js +1 -98
  33. package/contracts/drawings.js.map +1 -1
  34. package/contracts/index.d.ts +5 -3
  35. package/contracts/index.d.ts.map +1 -1
  36. package/contracts/index.js +3 -0
  37. package/contracts/index.js.map +1 -1
  38. package/contracts/material-index.d.ts +335 -13
  39. package/contracts/material-index.d.ts.map +1 -1
  40. package/contracts/material-index.js +12 -1
  41. package/contracts/material-index.js.map +1 -1
  42. package/contracts/meetings.d.ts +3845 -129
  43. package/contracts/meetings.d.ts.map +1 -1
  44. package/contracts/meetings.js +53 -1
  45. package/contracts/meetings.js.map +1 -1
  46. package/contracts/monitoring.d.ts +1133 -0
  47. package/contracts/monitoring.d.ts.map +1 -1
  48. package/contracts/monitoring.js +48 -1
  49. package/contracts/monitoring.js.map +1 -1
  50. package/contracts/projects.d.ts +435 -1106
  51. package/contracts/projects.d.ts.map +1 -1
  52. package/contracts/projects.js +0 -101
  53. package/contracts/projects.js.map +1 -1
  54. package/contracts/proof.d.ts +322 -0
  55. package/contracts/proof.d.ts.map +1 -1
  56. package/contracts/proof.js +14 -1
  57. package/contracts/proof.js.map +1 -1
  58. package/contracts/qaqc.d.ts +874 -0
  59. package/contracts/qaqc.d.ts.map +1 -1
  60. package/contracts/qaqc.js +13 -1
  61. package/contracts/qaqc.js.map +1 -1
  62. package/contracts/rbac.d.ts.map +1 -1
  63. package/contracts/rbac.js.map +1 -1
  64. package/contracts/reports.d.ts +72 -0
  65. package/contracts/reports.d.ts.map +1 -1
  66. package/contracts/resources.d.ts +1243 -5148
  67. package/contracts/resources.d.ts.map +1 -1
  68. package/contracts/resources.js +1 -245
  69. package/contracts/resources.js.map +1 -1
  70. package/contracts/safety.d.ts +176 -3685
  71. package/contracts/safety.d.ts.map +1 -1
  72. package/contracts/safety.js +1 -238
  73. package/contracts/safety.js.map +1 -1
  74. package/contracts/schedule.d.ts +517 -1468
  75. package/contracts/schedule.d.ts.map +1 -1
  76. package/contracts/schedule.js +1 -65
  77. package/contracts/schedule.js.map +1 -1
  78. package/contracts/specifications.d.ts +2744 -393
  79. package/contracts/specifications.d.ts.map +1 -1
  80. package/contracts/specifications.js +49 -10
  81. package/contracts/specifications.js.map +1 -1
  82. package/contracts/tasks.d.ts +2653 -3922
  83. package/contracts/tasks.d.ts.map +1 -1
  84. package/contracts/tasks.js +1 -149
  85. package/contracts/tasks.js.map +1 -1
  86. package/contracts/transmittals.d.ts +980 -0
  87. package/contracts/transmittals.d.ts.map +1 -1
  88. package/contracts/user-admin.d.ts +2635 -0
  89. package/contracts/user-admin.d.ts.map +1 -0
  90. package/contracts/user-admin.js +73 -0
  91. package/contracts/user-admin.js.map +1 -0
  92. package/package.json +6 -1
  93. package/schemas/budget.d.ts +149 -0
  94. package/schemas/budget.d.ts.map +1 -1
  95. package/schemas/budget.js +13 -0
  96. package/schemas/budget.js.map +1 -1
  97. package/schemas/communication.d.ts +94 -0
  98. package/schemas/communication.d.ts.map +1 -1
  99. package/schemas/communication.js +2 -0
  100. package/schemas/communication.js.map +1 -1
  101. package/schemas/daily-logs.d.ts +92 -0
  102. package/schemas/daily-logs.d.ts.map +1 -1
  103. package/schemas/daily-logs.js +1 -0
  104. package/schemas/daily-logs.js.map +1 -1
  105. package/schemas/documents.d.ts +49 -11
  106. package/schemas/documents.d.ts.map +1 -1
  107. package/schemas/documents.js +2 -1
  108. package/schemas/documents.js.map +1 -1
  109. package/schemas/drawings.d.ts +24 -24
  110. package/schemas/material-index.d.ts +116 -18
  111. package/schemas/material-index.d.ts.map +1 -1
  112. package/schemas/material-index.js +47 -3
  113. package/schemas/material-index.js.map +1 -1
  114. package/schemas/meetings.d.ts +641 -12
  115. package/schemas/meetings.d.ts.map +1 -1
  116. package/schemas/meetings.js +29 -1
  117. package/schemas/meetings.js.map +1 -1
  118. package/schemas/proof.d.ts +161 -0
  119. package/schemas/proof.d.ts.map +1 -1
  120. package/schemas/proof.js +17 -1
  121. package/schemas/proof.js.map +1 -1
  122. package/schemas/qaqc.d.ts +335 -0
  123. package/schemas/qaqc.d.ts.map +1 -1
  124. package/schemas/qaqc.js +16 -1
  125. package/schemas/qaqc.js.map +1 -1
  126. package/schemas/reports.d.ts +36 -0
  127. package/schemas/reports.d.ts.map +1 -1
  128. package/schemas/reports.js +4 -0
  129. package/schemas/reports.js.map +1 -1
  130. package/schemas/resources.d.ts +108 -0
  131. package/schemas/resources.d.ts.map +1 -1
  132. package/schemas/resources.js +2 -1
  133. package/schemas/resources.js.map +1 -1
  134. package/schemas/safety.d.ts +8 -8
  135. package/schemas/schedule.d.ts +232 -0
  136. package/schemas/schedule.d.ts.map +1 -1
  137. package/schemas/schedule.js +2 -1
  138. package/schemas/schedule.js.map +1 -1
  139. package/schemas/specifications.d.ts +542 -17
  140. package/schemas/specifications.d.ts.map +1 -1
  141. package/schemas/specifications.js +31 -7
  142. package/schemas/specifications.js.map +1 -1
  143. package/schemas/tasks.d.ts +58 -4
  144. package/schemas/tasks.d.ts.map +1 -1
  145. package/schemas/transmittals.d.ts +184 -0
  146. package/schemas/transmittals.d.ts.map +1 -1
  147. package/schemas/transmittals.js +3 -1
  148. package/schemas/transmittals.js.map +1 -1
  149. package/schemas/user-admin.d.ts +255 -0
  150. package/schemas/user-admin.d.ts.map +1 -0
  151. package/schemas/user-admin.js +50 -0
  152. package/schemas/user-admin.js.map +1 -0
@@ -2684,12 +2684,12 @@ export declare const safetyContract: {
2684
2684
  fileSize: z.ZodNumber;
2685
2685
  }, "strip", z.ZodTypeAny, {
2686
2686
  contentType: string;
2687
- fileSize: number;
2688
2687
  fileName: string;
2688
+ fileSize: number;
2689
2689
  }, {
2690
2690
  contentType: string;
2691
- fileSize: number;
2692
2691
  fileName: string;
2692
+ fileSize: number;
2693
2693
  }>;
2694
2694
  path: "/safety/incidents/:incidentId/media/presign";
2695
2695
  responses: {
@@ -2708,20 +2708,20 @@ export declare const safetyContract: {
2708
2708
  originalName: z.ZodString;
2709
2709
  }, "strip", z.ZodTypeAny, {
2710
2710
  expiresIn: number;
2711
+ fileName: string;
2711
2712
  fileSize: number;
2712
2713
  mimeType: string;
2713
2714
  uploadUrl: string;
2714
2715
  fileUrl: string;
2715
- fileName: string;
2716
2716
  originalName: string;
2717
2717
  fileKey: string;
2718
2718
  }, {
2719
2719
  expiresIn: number;
2720
+ fileName: string;
2720
2721
  fileSize: number;
2721
2722
  mimeType: string;
2722
2723
  uploadUrl: string;
2723
2724
  fileUrl: string;
2724
- fileName: string;
2725
2725
  originalName: string;
2726
2726
  fileKey: string;
2727
2727
  }>;
@@ -2730,11 +2730,11 @@ export declare const safetyContract: {
2730
2730
  type: "incident-media-presign";
2731
2731
  attributes: {
2732
2732
  expiresIn: number;
2733
+ fileName: string;
2733
2734
  fileSize: number;
2734
2735
  mimeType: string;
2735
2736
  uploadUrl: string;
2736
2737
  fileUrl: string;
2737
- fileName: string;
2738
2738
  originalName: string;
2739
2739
  fileKey: string;
2740
2740
  };
@@ -2743,11 +2743,11 @@ export declare const safetyContract: {
2743
2743
  type: "incident-media-presign";
2744
2744
  attributes: {
2745
2745
  expiresIn: number;
2746
+ fileName: string;
2746
2747
  fileSize: number;
2747
2748
  mimeType: string;
2748
2749
  uploadUrl: string;
2749
2750
  fileUrl: string;
2750
- fileName: string;
2751
2751
  originalName: string;
2752
2752
  fileKey: string;
2753
2753
  };
@@ -2794,11 +2794,11 @@ export declare const safetyContract: {
2794
2794
  type: "incident-media-presign";
2795
2795
  attributes: {
2796
2796
  expiresIn: number;
2797
+ fileName: string;
2797
2798
  fileSize: number;
2798
2799
  mimeType: string;
2799
2800
  uploadUrl: string;
2800
2801
  fileUrl: string;
2801
- fileName: string;
2802
2802
  originalName: string;
2803
2803
  fileKey: string;
2804
2804
  };
@@ -2823,11 +2823,11 @@ export declare const safetyContract: {
2823
2823
  type: "incident-media-presign";
2824
2824
  attributes: {
2825
2825
  expiresIn: number;
2826
+ fileName: string;
2826
2827
  fileSize: number;
2827
2828
  mimeType: string;
2828
2829
  uploadUrl: string;
2829
2830
  fileUrl: string;
2830
- fileName: string;
2831
2831
  originalName: string;
2832
2832
  fileKey: string;
2833
2833
  };
@@ -4515,3527 +4515,193 @@ export declare const safetyContract: {
4515
4515
  }>;
4516
4516
  };
4517
4517
  };
4518
- getSafetyInspections: {
4518
+ getSafetyStatistics: {
4519
4519
  query: z.ZodObject<{
4520
- page: z.ZodDefault<z.ZodNumber>;
4521
- limit: z.ZodDefault<z.ZodNumber>;
4520
+ startDate: z.ZodString;
4521
+ endDate: z.ZodString;
4522
4522
  projectId: z.ZodOptional<z.ZodString>;
4523
- inspectorId: z.ZodOptional<z.ZodString>;
4524
- status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>>;
4525
- inspectionType: z.ZodOptional<z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>>;
4526
- scheduledFrom: z.ZodOptional<z.ZodString>;
4527
- scheduledTo: z.ZodOptional<z.ZodString>;
4528
- search: z.ZodOptional<z.ZodString>;
4523
+ includeSubcontractors: z.ZodDefault<z.ZodBoolean>;
4529
4524
  }, "strip", z.ZodTypeAny, {
4530
- page: number;
4531
- limit: number;
4532
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED" | undefined;
4525
+ startDate: string;
4526
+ endDate: string;
4527
+ includeSubcontractors: boolean;
4533
4528
  projectId?: string | undefined;
4534
- search?: string | undefined;
4535
- inspectorId?: string | undefined;
4536
- inspectionType?: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT" | undefined;
4537
- scheduledFrom?: string | undefined;
4538
- scheduledTo?: string | undefined;
4539
4529
  }, {
4540
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED" | undefined;
4541
- page?: number | undefined;
4542
- limit?: number | undefined;
4530
+ startDate: string;
4531
+ endDate: string;
4543
4532
  projectId?: string | undefined;
4544
- search?: string | undefined;
4545
- inspectorId?: string | undefined;
4546
- inspectionType?: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT" | undefined;
4547
- scheduledFrom?: string | undefined;
4548
- scheduledTo?: string | undefined;
4533
+ includeSubcontractors?: boolean | undefined;
4549
4534
  }>;
4550
- summary: "Get safety inspections with filtering";
4535
+ summary: "Get comprehensive safety statistics and analytics";
4551
4536
  method: "GET";
4552
- path: "/safety/inspections";
4537
+ path: "/safety/statistics";
4553
4538
  responses: {
4554
4539
  200: z.ZodObject<{
4555
- data: z.ZodArray<z.ZodObject<{
4556
- type: z.ZodLiteral<"safety-inspections">;
4557
- id: z.ZodString;
4558
- attributes: z.ZodObject<{
4559
- id: z.ZodString;
4560
- projectId: z.ZodString;
4561
- inspectorId: z.ZodString;
4562
- inspectionType: z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>;
4563
- scheduledDate: z.ZodString;
4564
- completedDate: z.ZodOptional<z.ZodString>;
4565
- status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>;
4566
- score: z.ZodOptional<z.ZodNumber>;
4567
- findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
4568
- category: z.ZodString;
4569
- description: z.ZodString;
4570
- severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
4571
- correctionRequired: z.ZodBoolean;
4540
+ data: z.ZodObject<{
4541
+ incidents: z.ZodObject<{
4542
+ total: z.ZodNumber;
4543
+ byType: z.ZodRecord<z.ZodString, z.ZodNumber>;
4544
+ bySeverity: z.ZodRecord<z.ZodString, z.ZodNumber>;
4545
+ byStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
4546
+ byProject: z.ZodArray<z.ZodObject<{
4547
+ projectId: z.ZodString;
4548
+ projectName: z.ZodString;
4549
+ incidentCount: z.ZodNumber;
4572
4550
  }, "strip", z.ZodTypeAny, {
4573
- description: string;
4574
- category: string;
4575
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4576
- correctionRequired: boolean;
4551
+ projectId: string;
4552
+ projectName: string;
4553
+ incidentCount: number;
4577
4554
  }, {
4578
- description: string;
4579
- category: string;
4580
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4581
- correctionRequired: boolean;
4582
- }>, "many">>;
4583
- notes: z.ZodOptional<z.ZodString>;
4584
- attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4585
- createdAt: z.ZodString;
4586
- updatedAt: z.ZodString;
4555
+ projectId: string;
4556
+ projectName: string;
4557
+ incidentCount: number;
4558
+ }>, "many">;
4559
+ trend: z.ZodArray<z.ZodObject<{
4560
+ date: z.ZodString;
4561
+ count: z.ZodNumber;
4562
+ }, "strip", z.ZodTypeAny, {
4563
+ date: string;
4564
+ count: number;
4565
+ }, {
4566
+ date: string;
4567
+ count: number;
4568
+ }>, "many">;
4587
4569
  }, "strip", z.ZodTypeAny, {
4588
- id: string;
4589
- createdAt: string;
4590
- updatedAt: string;
4591
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
4592
- projectId: string;
4593
- attachments: string[];
4594
- inspectorId: string;
4595
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4596
- scheduledDate: string;
4597
- findings: {
4598
- description: string;
4599
- category: string;
4600
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4601
- correctionRequired: boolean;
4570
+ total: number;
4571
+ byType: Record<string, number>;
4572
+ bySeverity: Record<string, number>;
4573
+ trend: {
4574
+ date: string;
4575
+ count: number;
4576
+ }[];
4577
+ byStatus: Record<string, number>;
4578
+ byProject: {
4579
+ projectId: string;
4580
+ projectName: string;
4581
+ incidentCount: number;
4602
4582
  }[];
4603
- notes?: string | undefined;
4604
- score?: number | undefined;
4605
- completedDate?: string | undefined;
4606
4583
  }, {
4607
- id: string;
4608
- createdAt: string;
4609
- updatedAt: string;
4610
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
4611
- projectId: string;
4612
- inspectorId: string;
4613
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4614
- scheduledDate: string;
4615
- attachments?: string[] | undefined;
4616
- notes?: string | undefined;
4617
- score?: number | undefined;
4618
- completedDate?: string | undefined;
4619
- findings?: {
4620
- description: string;
4621
- category: string;
4622
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4623
- correctionRequired: boolean;
4624
- }[] | undefined;
4584
+ total: number;
4585
+ byType: Record<string, number>;
4586
+ bySeverity: Record<string, number>;
4587
+ trend: {
4588
+ date: string;
4589
+ count: number;
4590
+ }[];
4591
+ byStatus: Record<string, number>;
4592
+ byProject: {
4593
+ projectId: string;
4594
+ projectName: string;
4595
+ incidentCount: number;
4596
+ }[];
4597
+ }>;
4598
+ inspections: z.ZodObject<{
4599
+ total: z.ZodNumber;
4600
+ completed: z.ZodNumber;
4601
+ pending: z.ZodNumber;
4602
+ failed: z.ZodNumber;
4603
+ averageScore: z.ZodNumber;
4604
+ byType: z.ZodRecord<z.ZodString, z.ZodNumber>;
4605
+ }, "strip", z.ZodTypeAny, {
4606
+ total: number;
4607
+ byType: Record<string, number>;
4608
+ pending: number;
4609
+ completed: number;
4610
+ failed: number;
4611
+ averageScore: number;
4612
+ }, {
4613
+ total: number;
4614
+ byType: Record<string, number>;
4615
+ pending: number;
4616
+ completed: number;
4617
+ failed: number;
4618
+ averageScore: number;
4619
+ }>;
4620
+ training: z.ZodObject<{
4621
+ totalRecords: z.ZodNumber;
4622
+ completedTrainings: z.ZodNumber;
4623
+ expiredCertifications: z.ZodNumber;
4624
+ complianceRate: z.ZodNumber;
4625
+ averageScore: z.ZodNumber;
4626
+ upcomingTraining: z.ZodNumber;
4627
+ }, "strip", z.ZodTypeAny, {
4628
+ complianceRate: number;
4629
+ averageScore: number;
4630
+ totalRecords: number;
4631
+ completedTrainings: number;
4632
+ expiredCertifications: number;
4633
+ upcomingTraining: number;
4634
+ }, {
4635
+ complianceRate: number;
4636
+ averageScore: number;
4637
+ totalRecords: number;
4638
+ completedTrainings: number;
4639
+ expiredCertifications: number;
4640
+ upcomingTraining: number;
4641
+ }>;
4642
+ metrics: z.ZodObject<{
4643
+ lostTimeIncidentRate: z.ZodNumber;
4644
+ totalRecordableIncidentRate: z.ZodNumber;
4645
+ daysSinceLastIncident: z.ZodNumber;
4646
+ safetyScore: z.ZodNumber;
4647
+ nearMissRatio: z.ZodNumber;
4648
+ complianceScore: z.ZodNumber;
4649
+ }, "strip", z.ZodTypeAny, {
4650
+ daysSinceLastIncident: number;
4651
+ lostTimeIncidentRate: number;
4652
+ totalRecordableIncidentRate: number;
4653
+ safetyScore: number;
4654
+ nearMissRatio: number;
4655
+ complianceScore: number;
4656
+ }, {
4657
+ daysSinceLastIncident: number;
4658
+ lostTimeIncidentRate: number;
4659
+ totalRecordableIncidentRate: number;
4660
+ safetyScore: number;
4661
+ nearMissRatio: number;
4662
+ complianceScore: number;
4625
4663
  }>;
4626
4664
  }, "strip", z.ZodTypeAny, {
4627
- id: string;
4628
- type: "safety-inspections";
4629
- attributes: {
4630
- id: string;
4631
- createdAt: string;
4632
- updatedAt: string;
4633
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
4634
- projectId: string;
4635
- attachments: string[];
4636
- inspectorId: string;
4637
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4638
- scheduledDate: string;
4639
- findings: {
4640
- description: string;
4641
- category: string;
4642
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4643
- correctionRequired: boolean;
4665
+ incidents: {
4666
+ total: number;
4667
+ byType: Record<string, number>;
4668
+ bySeverity: Record<string, number>;
4669
+ trend: {
4670
+ date: string;
4671
+ count: number;
4672
+ }[];
4673
+ byStatus: Record<string, number>;
4674
+ byProject: {
4675
+ projectId: string;
4676
+ projectName: string;
4677
+ incidentCount: number;
4644
4678
  }[];
4645
- notes?: string | undefined;
4646
- score?: number | undefined;
4647
- completedDate?: string | undefined;
4648
4679
  };
4649
- }, {
4650
- id: string;
4651
- type: "safety-inspections";
4652
- attributes: {
4653
- id: string;
4654
- createdAt: string;
4655
- updatedAt: string;
4656
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
4657
- projectId: string;
4658
- inspectorId: string;
4659
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4660
- scheduledDate: string;
4661
- attachments?: string[] | undefined;
4662
- notes?: string | undefined;
4663
- score?: number | undefined;
4664
- completedDate?: string | undefined;
4665
- findings?: {
4666
- description: string;
4667
- category: string;
4668
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4669
- correctionRequired: boolean;
4670
- }[] | undefined;
4680
+ inspections: {
4681
+ total: number;
4682
+ byType: Record<string, number>;
4683
+ pending: number;
4684
+ completed: number;
4685
+ failed: number;
4686
+ averageScore: number;
4687
+ };
4688
+ metrics: {
4689
+ daysSinceLastIncident: number;
4690
+ lostTimeIncidentRate: number;
4691
+ totalRecordableIncidentRate: number;
4692
+ safetyScore: number;
4693
+ nearMissRatio: number;
4694
+ complianceScore: number;
4695
+ };
4696
+ training: {
4697
+ complianceRate: number;
4698
+ averageScore: number;
4699
+ totalRecords: number;
4700
+ completedTrainings: number;
4701
+ expiredCertifications: number;
4702
+ upcomingTraining: number;
4671
4703
  };
4672
- }>, "many">;
4673
- meta: z.ZodOptional<z.ZodObject<{
4674
- total: z.ZodOptional<z.ZodNumber>;
4675
- page: z.ZodOptional<z.ZodNumber>;
4676
- size: z.ZodOptional<z.ZodNumber>;
4677
- pages: z.ZodOptional<z.ZodNumber>;
4678
- hasNextPage: z.ZodOptional<z.ZodBoolean>;
4679
- hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
4680
- }, "strip", z.ZodTypeAny, {
4681
- page?: number | undefined;
4682
- total?: number | undefined;
4683
- size?: number | undefined;
4684
- pages?: number | undefined;
4685
- hasNextPage?: boolean | undefined;
4686
- hasPreviousPage?: boolean | undefined;
4687
4704
  }, {
4688
- page?: number | undefined;
4689
- total?: number | undefined;
4690
- size?: number | undefined;
4691
- pages?: number | undefined;
4692
- hasNextPage?: boolean | undefined;
4693
- hasPreviousPage?: boolean | undefined;
4694
- }>>;
4695
- links: z.ZodOptional<z.ZodObject<{
4696
- self: z.ZodString;
4697
- first: z.ZodOptional<z.ZodString>;
4698
- last: z.ZodOptional<z.ZodString>;
4699
- prev: z.ZodOptional<z.ZodString>;
4700
- next: z.ZodOptional<z.ZodString>;
4701
- }, "strip", z.ZodTypeAny, {
4702
- self: string;
4703
- first?: string | undefined;
4704
- last?: string | undefined;
4705
- prev?: string | undefined;
4706
- next?: string | undefined;
4707
- }, {
4708
- self: string;
4709
- first?: string | undefined;
4710
- last?: string | undefined;
4711
- prev?: string | undefined;
4712
- next?: string | undefined;
4713
- }>>;
4714
- }, "strip", z.ZodTypeAny, {
4715
- data: {
4716
- id: string;
4717
- type: "safety-inspections";
4718
- attributes: {
4719
- id: string;
4720
- createdAt: string;
4721
- updatedAt: string;
4722
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
4723
- projectId: string;
4724
- attachments: string[];
4725
- inspectorId: string;
4726
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4727
- scheduledDate: string;
4728
- findings: {
4729
- description: string;
4730
- category: string;
4731
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4732
- correctionRequired: boolean;
4733
- }[];
4734
- notes?: string | undefined;
4735
- score?: number | undefined;
4736
- completedDate?: string | undefined;
4737
- };
4738
- }[];
4739
- meta?: {
4740
- page?: number | undefined;
4741
- total?: number | undefined;
4742
- size?: number | undefined;
4743
- pages?: number | undefined;
4744
- hasNextPage?: boolean | undefined;
4745
- hasPreviousPage?: boolean | undefined;
4746
- } | undefined;
4747
- links?: {
4748
- self: string;
4749
- first?: string | undefined;
4750
- last?: string | undefined;
4751
- prev?: string | undefined;
4752
- next?: string | undefined;
4753
- } | undefined;
4754
- }, {
4755
- data: {
4756
- id: string;
4757
- type: "safety-inspections";
4758
- attributes: {
4759
- id: string;
4760
- createdAt: string;
4761
- updatedAt: string;
4762
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
4763
- projectId: string;
4764
- inspectorId: string;
4765
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4766
- scheduledDate: string;
4767
- attachments?: string[] | undefined;
4768
- notes?: string | undefined;
4769
- score?: number | undefined;
4770
- completedDate?: string | undefined;
4771
- findings?: {
4772
- description: string;
4773
- category: string;
4774
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4775
- correctionRequired: boolean;
4776
- }[] | undefined;
4777
- };
4778
- }[];
4779
- meta?: {
4780
- page?: number | undefined;
4781
- total?: number | undefined;
4782
- size?: number | undefined;
4783
- pages?: number | undefined;
4784
- hasNextPage?: boolean | undefined;
4785
- hasPreviousPage?: boolean | undefined;
4786
- } | undefined;
4787
- links?: {
4788
- self: string;
4789
- first?: string | undefined;
4790
- last?: string | undefined;
4791
- prev?: string | undefined;
4792
- next?: string | undefined;
4793
- } | undefined;
4794
- }>;
4795
- 403: z.ZodObject<{
4796
- errors: z.ZodArray<z.ZodObject<{
4797
- status: z.ZodString;
4798
- title: z.ZodString;
4799
- detail: z.ZodOptional<z.ZodString>;
4800
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4801
- }, "strip", z.ZodTypeAny, {
4802
- status: string;
4803
- title: string;
4804
- detail?: string | undefined;
4805
- meta?: Record<string, unknown> | undefined;
4806
- }, {
4807
- status: string;
4808
- title: string;
4809
- detail?: string | undefined;
4810
- meta?: Record<string, unknown> | undefined;
4811
- }>, "many">;
4812
- }, "strip", z.ZodTypeAny, {
4813
- errors: {
4814
- status: string;
4815
- title: string;
4816
- detail?: string | undefined;
4817
- meta?: Record<string, unknown> | undefined;
4818
- }[];
4819
- }, {
4820
- errors: {
4821
- status: string;
4822
- title: string;
4823
- detail?: string | undefined;
4824
- meta?: Record<string, unknown> | undefined;
4825
- }[];
4826
- }>;
4827
- };
4828
- };
4829
- createSafetyInspection: {
4830
- summary: "Schedule a new safety inspection";
4831
- method: "POST";
4832
- body: z.ZodObject<{
4833
- projectId: z.ZodString;
4834
- inspectorId: z.ZodString;
4835
- inspectionType: z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>;
4836
- scheduledDate: z.ZodString;
4837
- notes: z.ZodOptional<z.ZodString>;
4838
- }, "strip", z.ZodTypeAny, {
4839
- projectId: string;
4840
- inspectorId: string;
4841
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4842
- scheduledDate: string;
4843
- notes?: string | undefined;
4844
- }, {
4845
- projectId: string;
4846
- inspectorId: string;
4847
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4848
- scheduledDate: string;
4849
- notes?: string | undefined;
4850
- }>;
4851
- path: "/safety/inspections";
4852
- responses: {
4853
- 201: z.ZodObject<{
4854
- data: z.ZodObject<{
4855
- type: z.ZodLiteral<"safety-inspections">;
4856
- id: z.ZodString;
4857
- attributes: z.ZodObject<{
4858
- id: z.ZodString;
4859
- projectId: z.ZodString;
4860
- inspectorId: z.ZodString;
4861
- inspectionType: z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>;
4862
- scheduledDate: z.ZodString;
4863
- completedDate: z.ZodOptional<z.ZodString>;
4864
- status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>;
4865
- score: z.ZodOptional<z.ZodNumber>;
4866
- findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
4867
- category: z.ZodString;
4868
- description: z.ZodString;
4869
- severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
4870
- correctionRequired: z.ZodBoolean;
4871
- }, "strip", z.ZodTypeAny, {
4872
- description: string;
4873
- category: string;
4874
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4875
- correctionRequired: boolean;
4876
- }, {
4877
- description: string;
4878
- category: string;
4879
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4880
- correctionRequired: boolean;
4881
- }>, "many">>;
4882
- notes: z.ZodOptional<z.ZodString>;
4883
- attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4884
- createdAt: z.ZodString;
4885
- updatedAt: z.ZodString;
4886
- }, "strip", z.ZodTypeAny, {
4887
- id: string;
4888
- createdAt: string;
4889
- updatedAt: string;
4890
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
4891
- projectId: string;
4892
- attachments: string[];
4893
- inspectorId: string;
4894
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4895
- scheduledDate: string;
4896
- findings: {
4897
- description: string;
4898
- category: string;
4899
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4900
- correctionRequired: boolean;
4901
- }[];
4902
- notes?: string | undefined;
4903
- score?: number | undefined;
4904
- completedDate?: string | undefined;
4905
- }, {
4906
- id: string;
4907
- createdAt: string;
4908
- updatedAt: string;
4909
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
4910
- projectId: string;
4911
- inspectorId: string;
4912
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4913
- scheduledDate: string;
4914
- attachments?: string[] | undefined;
4915
- notes?: string | undefined;
4916
- score?: number | undefined;
4917
- completedDate?: string | undefined;
4918
- findings?: {
4919
- description: string;
4920
- category: string;
4921
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4922
- correctionRequired: boolean;
4923
- }[] | undefined;
4924
- }>;
4925
- }, "strip", z.ZodTypeAny, {
4926
- id: string;
4927
- type: "safety-inspections";
4928
- attributes: {
4929
- id: string;
4930
- createdAt: string;
4931
- updatedAt: string;
4932
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
4933
- projectId: string;
4934
- attachments: string[];
4935
- inspectorId: string;
4936
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4937
- scheduledDate: string;
4938
- findings: {
4939
- description: string;
4940
- category: string;
4941
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4942
- correctionRequired: boolean;
4943
- }[];
4944
- notes?: string | undefined;
4945
- score?: number | undefined;
4946
- completedDate?: string | undefined;
4947
- };
4948
- }, {
4949
- id: string;
4950
- type: "safety-inspections";
4951
- attributes: {
4952
- id: string;
4953
- createdAt: string;
4954
- updatedAt: string;
4955
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
4956
- projectId: string;
4957
- inspectorId: string;
4958
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
4959
- scheduledDate: string;
4960
- attachments?: string[] | undefined;
4961
- notes?: string | undefined;
4962
- score?: number | undefined;
4963
- completedDate?: string | undefined;
4964
- findings?: {
4965
- description: string;
4966
- category: string;
4967
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
4968
- correctionRequired: boolean;
4969
- }[] | undefined;
4970
- };
4971
- }>;
4972
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4973
- links: z.ZodOptional<z.ZodObject<{
4974
- self: z.ZodString;
4975
- first: z.ZodOptional<z.ZodString>;
4976
- last: z.ZodOptional<z.ZodString>;
4977
- prev: z.ZodOptional<z.ZodString>;
4978
- next: z.ZodOptional<z.ZodString>;
4979
- }, "strip", z.ZodTypeAny, {
4980
- self: string;
4981
- first?: string | undefined;
4982
- last?: string | undefined;
4983
- prev?: string | undefined;
4984
- next?: string | undefined;
4985
- }, {
4986
- self: string;
4987
- first?: string | undefined;
4988
- last?: string | undefined;
4989
- prev?: string | undefined;
4990
- next?: string | undefined;
4991
- }>>;
4992
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
4993
- status: z.ZodString;
4994
- title: z.ZodString;
4995
- detail: z.ZodOptional<z.ZodString>;
4996
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4997
- }, "strip", z.ZodTypeAny, {
4998
- status: string;
4999
- title: string;
5000
- detail?: string | undefined;
5001
- meta?: Record<string, unknown> | undefined;
5002
- }, {
5003
- status: string;
5004
- title: string;
5005
- detail?: string | undefined;
5006
- meta?: Record<string, unknown> | undefined;
5007
- }>, "many">>;
5008
- }, "strip", z.ZodTypeAny, {
5009
- data: {
5010
- id: string;
5011
- type: "safety-inspections";
5012
- attributes: {
5013
- id: string;
5014
- createdAt: string;
5015
- updatedAt: string;
5016
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5017
- projectId: string;
5018
- attachments: string[];
5019
- inspectorId: string;
5020
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5021
- scheduledDate: string;
5022
- findings: {
5023
- description: string;
5024
- category: string;
5025
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5026
- correctionRequired: boolean;
5027
- }[];
5028
- notes?: string | undefined;
5029
- score?: number | undefined;
5030
- completedDate?: string | undefined;
5031
- };
5032
- };
5033
- meta?: Record<string, unknown> | undefined;
5034
- links?: {
5035
- self: string;
5036
- first?: string | undefined;
5037
- last?: string | undefined;
5038
- prev?: string | undefined;
5039
- next?: string | undefined;
5040
- } | undefined;
5041
- errors?: {
5042
- status: string;
5043
- title: string;
5044
- detail?: string | undefined;
5045
- meta?: Record<string, unknown> | undefined;
5046
- }[] | undefined;
5047
- }, {
5048
- data: {
5049
- id: string;
5050
- type: "safety-inspections";
5051
- attributes: {
5052
- id: string;
5053
- createdAt: string;
5054
- updatedAt: string;
5055
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5056
- projectId: string;
5057
- inspectorId: string;
5058
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5059
- scheduledDate: string;
5060
- attachments?: string[] | undefined;
5061
- notes?: string | undefined;
5062
- score?: number | undefined;
5063
- completedDate?: string | undefined;
5064
- findings?: {
5065
- description: string;
5066
- category: string;
5067
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5068
- correctionRequired: boolean;
5069
- }[] | undefined;
5070
- };
5071
- };
5072
- meta?: Record<string, unknown> | undefined;
5073
- links?: {
5074
- self: string;
5075
- first?: string | undefined;
5076
- last?: string | undefined;
5077
- prev?: string | undefined;
5078
- next?: string | undefined;
5079
- } | undefined;
5080
- errors?: {
5081
- status: string;
5082
- title: string;
5083
- detail?: string | undefined;
5084
- meta?: Record<string, unknown> | undefined;
5085
- }[] | undefined;
5086
- }>;
5087
- 400: z.ZodObject<{
5088
- errors: z.ZodArray<z.ZodObject<{
5089
- status: z.ZodString;
5090
- title: z.ZodString;
5091
- detail: z.ZodOptional<z.ZodString>;
5092
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5093
- }, "strip", z.ZodTypeAny, {
5094
- status: string;
5095
- title: string;
5096
- detail?: string | undefined;
5097
- meta?: Record<string, unknown> | undefined;
5098
- }, {
5099
- status: string;
5100
- title: string;
5101
- detail?: string | undefined;
5102
- meta?: Record<string, unknown> | undefined;
5103
- }>, "many">;
5104
- }, "strip", z.ZodTypeAny, {
5105
- errors: {
5106
- status: string;
5107
- title: string;
5108
- detail?: string | undefined;
5109
- meta?: Record<string, unknown> | undefined;
5110
- }[];
5111
- }, {
5112
- errors: {
5113
- status: string;
5114
- title: string;
5115
- detail?: string | undefined;
5116
- meta?: Record<string, unknown> | undefined;
5117
- }[];
5118
- }>;
5119
- 403: z.ZodObject<{
5120
- errors: z.ZodArray<z.ZodObject<{
5121
- status: z.ZodString;
5122
- title: z.ZodString;
5123
- detail: z.ZodOptional<z.ZodString>;
5124
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5125
- }, "strip", z.ZodTypeAny, {
5126
- status: string;
5127
- title: string;
5128
- detail?: string | undefined;
5129
- meta?: Record<string, unknown> | undefined;
5130
- }, {
5131
- status: string;
5132
- title: string;
5133
- detail?: string | undefined;
5134
- meta?: Record<string, unknown> | undefined;
5135
- }>, "many">;
5136
- }, "strip", z.ZodTypeAny, {
5137
- errors: {
5138
- status: string;
5139
- title: string;
5140
- detail?: string | undefined;
5141
- meta?: Record<string, unknown> | undefined;
5142
- }[];
5143
- }, {
5144
- errors: {
5145
- status: string;
5146
- title: string;
5147
- detail?: string | undefined;
5148
- meta?: Record<string, unknown> | undefined;
5149
- }[];
5150
- }>;
5151
- };
5152
- };
5153
- getSafetyInspection: {
5154
- pathParams: z.ZodObject<{
5155
- inspectionId: z.ZodString;
5156
- }, "strip", z.ZodTypeAny, {
5157
- inspectionId: string;
5158
- }, {
5159
- inspectionId: string;
5160
- }>;
5161
- summary: "Get safety inspection details";
5162
- method: "GET";
5163
- path: "/safety/inspections/:inspectionId";
5164
- responses: {
5165
- 200: z.ZodObject<{
5166
- data: z.ZodObject<{
5167
- type: z.ZodLiteral<"safety-inspections">;
5168
- id: z.ZodString;
5169
- attributes: z.ZodObject<{
5170
- id: z.ZodString;
5171
- projectId: z.ZodString;
5172
- inspectorId: z.ZodString;
5173
- inspectionType: z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>;
5174
- scheduledDate: z.ZodString;
5175
- completedDate: z.ZodOptional<z.ZodString>;
5176
- status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>;
5177
- score: z.ZodOptional<z.ZodNumber>;
5178
- findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
5179
- category: z.ZodString;
5180
- description: z.ZodString;
5181
- severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
5182
- correctionRequired: z.ZodBoolean;
5183
- }, "strip", z.ZodTypeAny, {
5184
- description: string;
5185
- category: string;
5186
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5187
- correctionRequired: boolean;
5188
- }, {
5189
- description: string;
5190
- category: string;
5191
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5192
- correctionRequired: boolean;
5193
- }>, "many">>;
5194
- notes: z.ZodOptional<z.ZodString>;
5195
- attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
5196
- createdAt: z.ZodString;
5197
- updatedAt: z.ZodString;
5198
- }, "strip", z.ZodTypeAny, {
5199
- id: string;
5200
- createdAt: string;
5201
- updatedAt: string;
5202
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5203
- projectId: string;
5204
- attachments: string[];
5205
- inspectorId: string;
5206
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5207
- scheduledDate: string;
5208
- findings: {
5209
- description: string;
5210
- category: string;
5211
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5212
- correctionRequired: boolean;
5213
- }[];
5214
- notes?: string | undefined;
5215
- score?: number | undefined;
5216
- completedDate?: string | undefined;
5217
- }, {
5218
- id: string;
5219
- createdAt: string;
5220
- updatedAt: string;
5221
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5222
- projectId: string;
5223
- inspectorId: string;
5224
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5225
- scheduledDate: string;
5226
- attachments?: string[] | undefined;
5227
- notes?: string | undefined;
5228
- score?: number | undefined;
5229
- completedDate?: string | undefined;
5230
- findings?: {
5231
- description: string;
5232
- category: string;
5233
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5234
- correctionRequired: boolean;
5235
- }[] | undefined;
5236
- }>;
5237
- }, "strip", z.ZodTypeAny, {
5238
- id: string;
5239
- type: "safety-inspections";
5240
- attributes: {
5241
- id: string;
5242
- createdAt: string;
5243
- updatedAt: string;
5244
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5245
- projectId: string;
5246
- attachments: string[];
5247
- inspectorId: string;
5248
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5249
- scheduledDate: string;
5250
- findings: {
5251
- description: string;
5252
- category: string;
5253
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5254
- correctionRequired: boolean;
5255
- }[];
5256
- notes?: string | undefined;
5257
- score?: number | undefined;
5258
- completedDate?: string | undefined;
5259
- };
5260
- }, {
5261
- id: string;
5262
- type: "safety-inspections";
5263
- attributes: {
5264
- id: string;
5265
- createdAt: string;
5266
- updatedAt: string;
5267
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5268
- projectId: string;
5269
- inspectorId: string;
5270
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5271
- scheduledDate: string;
5272
- attachments?: string[] | undefined;
5273
- notes?: string | undefined;
5274
- score?: number | undefined;
5275
- completedDate?: string | undefined;
5276
- findings?: {
5277
- description: string;
5278
- category: string;
5279
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5280
- correctionRequired: boolean;
5281
- }[] | undefined;
5282
- };
5283
- }>;
5284
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5285
- links: z.ZodOptional<z.ZodObject<{
5286
- self: z.ZodString;
5287
- first: z.ZodOptional<z.ZodString>;
5288
- last: z.ZodOptional<z.ZodString>;
5289
- prev: z.ZodOptional<z.ZodString>;
5290
- next: z.ZodOptional<z.ZodString>;
5291
- }, "strip", z.ZodTypeAny, {
5292
- self: string;
5293
- first?: string | undefined;
5294
- last?: string | undefined;
5295
- prev?: string | undefined;
5296
- next?: string | undefined;
5297
- }, {
5298
- self: string;
5299
- first?: string | undefined;
5300
- last?: string | undefined;
5301
- prev?: string | undefined;
5302
- next?: string | undefined;
5303
- }>>;
5304
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
5305
- status: z.ZodString;
5306
- title: z.ZodString;
5307
- detail: z.ZodOptional<z.ZodString>;
5308
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5309
- }, "strip", z.ZodTypeAny, {
5310
- status: string;
5311
- title: string;
5312
- detail?: string | undefined;
5313
- meta?: Record<string, unknown> | undefined;
5314
- }, {
5315
- status: string;
5316
- title: string;
5317
- detail?: string | undefined;
5318
- meta?: Record<string, unknown> | undefined;
5319
- }>, "many">>;
5320
- }, "strip", z.ZodTypeAny, {
5321
- data: {
5322
- id: string;
5323
- type: "safety-inspections";
5324
- attributes: {
5325
- id: string;
5326
- createdAt: string;
5327
- updatedAt: string;
5328
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5329
- projectId: string;
5330
- attachments: string[];
5331
- inspectorId: string;
5332
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5333
- scheduledDate: string;
5334
- findings: {
5335
- description: string;
5336
- category: string;
5337
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5338
- correctionRequired: boolean;
5339
- }[];
5340
- notes?: string | undefined;
5341
- score?: number | undefined;
5342
- completedDate?: string | undefined;
5343
- };
5344
- };
5345
- meta?: Record<string, unknown> | undefined;
5346
- links?: {
5347
- self: string;
5348
- first?: string | undefined;
5349
- last?: string | undefined;
5350
- prev?: string | undefined;
5351
- next?: string | undefined;
5352
- } | undefined;
5353
- errors?: {
5354
- status: string;
5355
- title: string;
5356
- detail?: string | undefined;
5357
- meta?: Record<string, unknown> | undefined;
5358
- }[] | undefined;
5359
- }, {
5360
- data: {
5361
- id: string;
5362
- type: "safety-inspections";
5363
- attributes: {
5364
- id: string;
5365
- createdAt: string;
5366
- updatedAt: string;
5367
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5368
- projectId: string;
5369
- inspectorId: string;
5370
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5371
- scheduledDate: string;
5372
- attachments?: string[] | undefined;
5373
- notes?: string | undefined;
5374
- score?: number | undefined;
5375
- completedDate?: string | undefined;
5376
- findings?: {
5377
- description: string;
5378
- category: string;
5379
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5380
- correctionRequired: boolean;
5381
- }[] | undefined;
5382
- };
5383
- };
5384
- meta?: Record<string, unknown> | undefined;
5385
- links?: {
5386
- self: string;
5387
- first?: string | undefined;
5388
- last?: string | undefined;
5389
- prev?: string | undefined;
5390
- next?: string | undefined;
5391
- } | undefined;
5392
- errors?: {
5393
- status: string;
5394
- title: string;
5395
- detail?: string | undefined;
5396
- meta?: Record<string, unknown> | undefined;
5397
- }[] | undefined;
5398
- }>;
5399
- 403: z.ZodObject<{
5400
- errors: z.ZodArray<z.ZodObject<{
5401
- status: z.ZodString;
5402
- title: z.ZodString;
5403
- detail: z.ZodOptional<z.ZodString>;
5404
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5405
- }, "strip", z.ZodTypeAny, {
5406
- status: string;
5407
- title: string;
5408
- detail?: string | undefined;
5409
- meta?: Record<string, unknown> | undefined;
5410
- }, {
5411
- status: string;
5412
- title: string;
5413
- detail?: string | undefined;
5414
- meta?: Record<string, unknown> | undefined;
5415
- }>, "many">;
5416
- }, "strip", z.ZodTypeAny, {
5417
- errors: {
5418
- status: string;
5419
- title: string;
5420
- detail?: string | undefined;
5421
- meta?: Record<string, unknown> | undefined;
5422
- }[];
5423
- }, {
5424
- errors: {
5425
- status: string;
5426
- title: string;
5427
- detail?: string | undefined;
5428
- meta?: Record<string, unknown> | undefined;
5429
- }[];
5430
- }>;
5431
- 404: z.ZodObject<{
5432
- errors: z.ZodArray<z.ZodObject<{
5433
- status: z.ZodString;
5434
- title: z.ZodString;
5435
- detail: z.ZodOptional<z.ZodString>;
5436
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5437
- }, "strip", z.ZodTypeAny, {
5438
- status: string;
5439
- title: string;
5440
- detail?: string | undefined;
5441
- meta?: Record<string, unknown> | undefined;
5442
- }, {
5443
- status: string;
5444
- title: string;
5445
- detail?: string | undefined;
5446
- meta?: Record<string, unknown> | undefined;
5447
- }>, "many">;
5448
- }, "strip", z.ZodTypeAny, {
5449
- errors: {
5450
- status: string;
5451
- title: string;
5452
- detail?: string | undefined;
5453
- meta?: Record<string, unknown> | undefined;
5454
- }[];
5455
- }, {
5456
- errors: {
5457
- status: string;
5458
- title: string;
5459
- detail?: string | undefined;
5460
- meta?: Record<string, unknown> | undefined;
5461
- }[];
5462
- }>;
5463
- };
5464
- };
5465
- updateSafetyInspection: {
5466
- pathParams: z.ZodObject<{
5467
- inspectionId: z.ZodString;
5468
- }, "strip", z.ZodTypeAny, {
5469
- inspectionId: string;
5470
- }, {
5471
- inspectionId: string;
5472
- }>;
5473
- summary: "Update safety inspection results";
5474
- method: "PUT";
5475
- body: z.ZodObject<{
5476
- completedDate: z.ZodOptional<z.ZodString>;
5477
- status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>>;
5478
- score: z.ZodOptional<z.ZodNumber>;
5479
- findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
5480
- category: z.ZodString;
5481
- description: z.ZodString;
5482
- severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
5483
- correctionRequired: z.ZodBoolean;
5484
- }, "strip", z.ZodTypeAny, {
5485
- description: string;
5486
- category: string;
5487
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5488
- correctionRequired: boolean;
5489
- }, {
5490
- description: string;
5491
- category: string;
5492
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5493
- correctionRequired: boolean;
5494
- }>, "many">>;
5495
- notes: z.ZodOptional<z.ZodString>;
5496
- attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5497
- }, "strip", z.ZodTypeAny, {
5498
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED" | undefined;
5499
- attachments?: string[] | undefined;
5500
- notes?: string | undefined;
5501
- score?: number | undefined;
5502
- completedDate?: string | undefined;
5503
- findings?: {
5504
- description: string;
5505
- category: string;
5506
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5507
- correctionRequired: boolean;
5508
- }[] | undefined;
5509
- }, {
5510
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED" | undefined;
5511
- attachments?: string[] | undefined;
5512
- notes?: string | undefined;
5513
- score?: number | undefined;
5514
- completedDate?: string | undefined;
5515
- findings?: {
5516
- description: string;
5517
- category: string;
5518
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5519
- correctionRequired: boolean;
5520
- }[] | undefined;
5521
- }>;
5522
- path: "/safety/inspections/:inspectionId";
5523
- responses: {
5524
- 200: z.ZodObject<{
5525
- data: z.ZodObject<{
5526
- type: z.ZodLiteral<"safety-inspections">;
5527
- id: z.ZodString;
5528
- attributes: z.ZodObject<{
5529
- id: z.ZodString;
5530
- projectId: z.ZodString;
5531
- inspectorId: z.ZodString;
5532
- inspectionType: z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>;
5533
- scheduledDate: z.ZodString;
5534
- completedDate: z.ZodOptional<z.ZodString>;
5535
- status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>;
5536
- score: z.ZodOptional<z.ZodNumber>;
5537
- findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
5538
- category: z.ZodString;
5539
- description: z.ZodString;
5540
- severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
5541
- correctionRequired: z.ZodBoolean;
5542
- }, "strip", z.ZodTypeAny, {
5543
- description: string;
5544
- category: string;
5545
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5546
- correctionRequired: boolean;
5547
- }, {
5548
- description: string;
5549
- category: string;
5550
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5551
- correctionRequired: boolean;
5552
- }>, "many">>;
5553
- notes: z.ZodOptional<z.ZodString>;
5554
- attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
5555
- createdAt: z.ZodString;
5556
- updatedAt: z.ZodString;
5557
- }, "strip", z.ZodTypeAny, {
5558
- id: string;
5559
- createdAt: string;
5560
- updatedAt: string;
5561
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5562
- projectId: string;
5563
- attachments: string[];
5564
- inspectorId: string;
5565
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5566
- scheduledDate: string;
5567
- findings: {
5568
- description: string;
5569
- category: string;
5570
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5571
- correctionRequired: boolean;
5572
- }[];
5573
- notes?: string | undefined;
5574
- score?: number | undefined;
5575
- completedDate?: string | undefined;
5576
- }, {
5577
- id: string;
5578
- createdAt: string;
5579
- updatedAt: string;
5580
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5581
- projectId: string;
5582
- inspectorId: string;
5583
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5584
- scheduledDate: string;
5585
- attachments?: string[] | undefined;
5586
- notes?: string | undefined;
5587
- score?: number | undefined;
5588
- completedDate?: string | undefined;
5589
- findings?: {
5590
- description: string;
5591
- category: string;
5592
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5593
- correctionRequired: boolean;
5594
- }[] | undefined;
5595
- }>;
5596
- }, "strip", z.ZodTypeAny, {
5597
- id: string;
5598
- type: "safety-inspections";
5599
- attributes: {
5600
- id: string;
5601
- createdAt: string;
5602
- updatedAt: string;
5603
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5604
- projectId: string;
5605
- attachments: string[];
5606
- inspectorId: string;
5607
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5608
- scheduledDate: string;
5609
- findings: {
5610
- description: string;
5611
- category: string;
5612
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5613
- correctionRequired: boolean;
5614
- }[];
5615
- notes?: string | undefined;
5616
- score?: number | undefined;
5617
- completedDate?: string | undefined;
5618
- };
5619
- }, {
5620
- id: string;
5621
- type: "safety-inspections";
5622
- attributes: {
5623
- id: string;
5624
- createdAt: string;
5625
- updatedAt: string;
5626
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5627
- projectId: string;
5628
- inspectorId: string;
5629
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5630
- scheduledDate: string;
5631
- attachments?: string[] | undefined;
5632
- notes?: string | undefined;
5633
- score?: number | undefined;
5634
- completedDate?: string | undefined;
5635
- findings?: {
5636
- description: string;
5637
- category: string;
5638
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5639
- correctionRequired: boolean;
5640
- }[] | undefined;
5641
- };
5642
- }>;
5643
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5644
- links: z.ZodOptional<z.ZodObject<{
5645
- self: z.ZodString;
5646
- first: z.ZodOptional<z.ZodString>;
5647
- last: z.ZodOptional<z.ZodString>;
5648
- prev: z.ZodOptional<z.ZodString>;
5649
- next: z.ZodOptional<z.ZodString>;
5650
- }, "strip", z.ZodTypeAny, {
5651
- self: string;
5652
- first?: string | undefined;
5653
- last?: string | undefined;
5654
- prev?: string | undefined;
5655
- next?: string | undefined;
5656
- }, {
5657
- self: string;
5658
- first?: string | undefined;
5659
- last?: string | undefined;
5660
- prev?: string | undefined;
5661
- next?: string | undefined;
5662
- }>>;
5663
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
5664
- status: z.ZodString;
5665
- title: z.ZodString;
5666
- detail: z.ZodOptional<z.ZodString>;
5667
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5668
- }, "strip", z.ZodTypeAny, {
5669
- status: string;
5670
- title: string;
5671
- detail?: string | undefined;
5672
- meta?: Record<string, unknown> | undefined;
5673
- }, {
5674
- status: string;
5675
- title: string;
5676
- detail?: string | undefined;
5677
- meta?: Record<string, unknown> | undefined;
5678
- }>, "many">>;
5679
- }, "strip", z.ZodTypeAny, {
5680
- data: {
5681
- id: string;
5682
- type: "safety-inspections";
5683
- attributes: {
5684
- id: string;
5685
- createdAt: string;
5686
- updatedAt: string;
5687
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5688
- projectId: string;
5689
- attachments: string[];
5690
- inspectorId: string;
5691
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5692
- scheduledDate: string;
5693
- findings: {
5694
- description: string;
5695
- category: string;
5696
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5697
- correctionRequired: boolean;
5698
- }[];
5699
- notes?: string | undefined;
5700
- score?: number | undefined;
5701
- completedDate?: string | undefined;
5702
- };
5703
- };
5704
- meta?: Record<string, unknown> | undefined;
5705
- links?: {
5706
- self: string;
5707
- first?: string | undefined;
5708
- last?: string | undefined;
5709
- prev?: string | undefined;
5710
- next?: string | undefined;
5711
- } | undefined;
5712
- errors?: {
5713
- status: string;
5714
- title: string;
5715
- detail?: string | undefined;
5716
- meta?: Record<string, unknown> | undefined;
5717
- }[] | undefined;
5718
- }, {
5719
- data: {
5720
- id: string;
5721
- type: "safety-inspections";
5722
- attributes: {
5723
- id: string;
5724
- createdAt: string;
5725
- updatedAt: string;
5726
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
5727
- projectId: string;
5728
- inspectorId: string;
5729
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
5730
- scheduledDate: string;
5731
- attachments?: string[] | undefined;
5732
- notes?: string | undefined;
5733
- score?: number | undefined;
5734
- completedDate?: string | undefined;
5735
- findings?: {
5736
- description: string;
5737
- category: string;
5738
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5739
- correctionRequired: boolean;
5740
- }[] | undefined;
5741
- };
5742
- };
5743
- meta?: Record<string, unknown> | undefined;
5744
- links?: {
5745
- self: string;
5746
- first?: string | undefined;
5747
- last?: string | undefined;
5748
- prev?: string | undefined;
5749
- next?: string | undefined;
5750
- } | undefined;
5751
- errors?: {
5752
- status: string;
5753
- title: string;
5754
- detail?: string | undefined;
5755
- meta?: Record<string, unknown> | undefined;
5756
- }[] | undefined;
5757
- }>;
5758
- 400: z.ZodObject<{
5759
- errors: z.ZodArray<z.ZodObject<{
5760
- status: z.ZodString;
5761
- title: z.ZodString;
5762
- detail: z.ZodOptional<z.ZodString>;
5763
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5764
- }, "strip", z.ZodTypeAny, {
5765
- status: string;
5766
- title: string;
5767
- detail?: string | undefined;
5768
- meta?: Record<string, unknown> | undefined;
5769
- }, {
5770
- status: string;
5771
- title: string;
5772
- detail?: string | undefined;
5773
- meta?: Record<string, unknown> | undefined;
5774
- }>, "many">;
5775
- }, "strip", z.ZodTypeAny, {
5776
- errors: {
5777
- status: string;
5778
- title: string;
5779
- detail?: string | undefined;
5780
- meta?: Record<string, unknown> | undefined;
5781
- }[];
5782
- }, {
5783
- errors: {
5784
- status: string;
5785
- title: string;
5786
- detail?: string | undefined;
5787
- meta?: Record<string, unknown> | undefined;
5788
- }[];
5789
- }>;
5790
- 403: z.ZodObject<{
5791
- errors: z.ZodArray<z.ZodObject<{
5792
- status: z.ZodString;
5793
- title: z.ZodString;
5794
- detail: z.ZodOptional<z.ZodString>;
5795
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5796
- }, "strip", z.ZodTypeAny, {
5797
- status: string;
5798
- title: string;
5799
- detail?: string | undefined;
5800
- meta?: Record<string, unknown> | undefined;
5801
- }, {
5802
- status: string;
5803
- title: string;
5804
- detail?: string | undefined;
5805
- meta?: Record<string, unknown> | undefined;
5806
- }>, "many">;
5807
- }, "strip", z.ZodTypeAny, {
5808
- errors: {
5809
- status: string;
5810
- title: string;
5811
- detail?: string | undefined;
5812
- meta?: Record<string, unknown> | undefined;
5813
- }[];
5814
- }, {
5815
- errors: {
5816
- status: string;
5817
- title: string;
5818
- detail?: string | undefined;
5819
- meta?: Record<string, unknown> | undefined;
5820
- }[];
5821
- }>;
5822
- 404: z.ZodObject<{
5823
- errors: z.ZodArray<z.ZodObject<{
5824
- status: z.ZodString;
5825
- title: z.ZodString;
5826
- detail: z.ZodOptional<z.ZodString>;
5827
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5828
- }, "strip", z.ZodTypeAny, {
5829
- status: string;
5830
- title: string;
5831
- detail?: string | undefined;
5832
- meta?: Record<string, unknown> | undefined;
5833
- }, {
5834
- status: string;
5835
- title: string;
5836
- detail?: string | undefined;
5837
- meta?: Record<string, unknown> | undefined;
5838
- }>, "many">;
5839
- }, "strip", z.ZodTypeAny, {
5840
- errors: {
5841
- status: string;
5842
- title: string;
5843
- detail?: string | undefined;
5844
- meta?: Record<string, unknown> | undefined;
5845
- }[];
5846
- }, {
5847
- errors: {
5848
- status: string;
5849
- title: string;
5850
- detail?: string | undefined;
5851
- meta?: Record<string, unknown> | undefined;
5852
- }[];
5853
- }>;
5854
- };
5855
- };
5856
- deleteSafetyInspection: {
5857
- pathParams: z.ZodObject<{
5858
- inspectionId: z.ZodString;
5859
- }, "strip", z.ZodTypeAny, {
5860
- inspectionId: string;
5861
- }, {
5862
- inspectionId: string;
5863
- }>;
5864
- summary: "Delete a safety inspection";
5865
- method: "DELETE";
5866
- path: "/safety/inspections/:inspectionId";
5867
- responses: {
5868
- 204: z.ZodVoid;
5869
- 403: z.ZodObject<{
5870
- errors: z.ZodArray<z.ZodObject<{
5871
- status: z.ZodString;
5872
- title: z.ZodString;
5873
- detail: z.ZodOptional<z.ZodString>;
5874
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5875
- }, "strip", z.ZodTypeAny, {
5876
- status: string;
5877
- title: string;
5878
- detail?: string | undefined;
5879
- meta?: Record<string, unknown> | undefined;
5880
- }, {
5881
- status: string;
5882
- title: string;
5883
- detail?: string | undefined;
5884
- meta?: Record<string, unknown> | undefined;
5885
- }>, "many">;
5886
- }, "strip", z.ZodTypeAny, {
5887
- errors: {
5888
- status: string;
5889
- title: string;
5890
- detail?: string | undefined;
5891
- meta?: Record<string, unknown> | undefined;
5892
- }[];
5893
- }, {
5894
- errors: {
5895
- status: string;
5896
- title: string;
5897
- detail?: string | undefined;
5898
- meta?: Record<string, unknown> | undefined;
5899
- }[];
5900
- }>;
5901
- 404: z.ZodObject<{
5902
- errors: z.ZodArray<z.ZodObject<{
5903
- status: z.ZodString;
5904
- title: z.ZodString;
5905
- detail: z.ZodOptional<z.ZodString>;
5906
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5907
- }, "strip", z.ZodTypeAny, {
5908
- status: string;
5909
- title: string;
5910
- detail?: string | undefined;
5911
- meta?: Record<string, unknown> | undefined;
5912
- }, {
5913
- status: string;
5914
- title: string;
5915
- detail?: string | undefined;
5916
- meta?: Record<string, unknown> | undefined;
5917
- }>, "many">;
5918
- }, "strip", z.ZodTypeAny, {
5919
- errors: {
5920
- status: string;
5921
- title: string;
5922
- detail?: string | undefined;
5923
- meta?: Record<string, unknown> | undefined;
5924
- }[];
5925
- }, {
5926
- errors: {
5927
- status: string;
5928
- title: string;
5929
- detail?: string | undefined;
5930
- meta?: Record<string, unknown> | undefined;
5931
- }[];
5932
- }>;
5933
- };
5934
- };
5935
- getProjectSafetyInspections: {
5936
- pathParams: z.ZodObject<{
5937
- projectId: z.ZodString;
5938
- }, "strip", z.ZodTypeAny, {
5939
- projectId: string;
5940
- }, {
5941
- projectId: string;
5942
- }>;
5943
- query: z.ZodObject<{
5944
- page: z.ZodDefault<z.ZodNumber>;
5945
- limit: z.ZodDefault<z.ZodNumber>;
5946
- status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>>;
5947
- inspectionType: z.ZodOptional<z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>>;
5948
- }, "strip", z.ZodTypeAny, {
5949
- page: number;
5950
- limit: number;
5951
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED" | undefined;
5952
- inspectionType?: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT" | undefined;
5953
- }, {
5954
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED" | undefined;
5955
- page?: number | undefined;
5956
- limit?: number | undefined;
5957
- inspectionType?: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT" | undefined;
5958
- }>;
5959
- summary: "Get safety inspections for a specific project";
5960
- method: "GET";
5961
- path: "/projects/:projectId/safety/inspections";
5962
- responses: {
5963
- 200: z.ZodObject<{
5964
- data: z.ZodArray<z.ZodObject<{
5965
- type: z.ZodLiteral<"safety-inspections">;
5966
- id: z.ZodString;
5967
- attributes: z.ZodObject<{
5968
- id: z.ZodString;
5969
- projectId: z.ZodString;
5970
- inspectorId: z.ZodString;
5971
- inspectionType: z.ZodEnum<["ROUTINE", "COMPLIANCE", "INCIDENT_FOLLOWUP", "AUDIT"]>;
5972
- scheduledDate: z.ZodString;
5973
- completedDate: z.ZodOptional<z.ZodString>;
5974
- status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED"]>;
5975
- score: z.ZodOptional<z.ZodNumber>;
5976
- findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
5977
- category: z.ZodString;
5978
- description: z.ZodString;
5979
- severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
5980
- correctionRequired: z.ZodBoolean;
5981
- }, "strip", z.ZodTypeAny, {
5982
- description: string;
5983
- category: string;
5984
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5985
- correctionRequired: boolean;
5986
- }, {
5987
- description: string;
5988
- category: string;
5989
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
5990
- correctionRequired: boolean;
5991
- }>, "many">>;
5992
- notes: z.ZodOptional<z.ZodString>;
5993
- attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
5994
- createdAt: z.ZodString;
5995
- updatedAt: z.ZodString;
5996
- }, "strip", z.ZodTypeAny, {
5997
- id: string;
5998
- createdAt: string;
5999
- updatedAt: string;
6000
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
6001
- projectId: string;
6002
- attachments: string[];
6003
- inspectorId: string;
6004
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
6005
- scheduledDate: string;
6006
- findings: {
6007
- description: string;
6008
- category: string;
6009
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
6010
- correctionRequired: boolean;
6011
- }[];
6012
- notes?: string | undefined;
6013
- score?: number | undefined;
6014
- completedDate?: string | undefined;
6015
- }, {
6016
- id: string;
6017
- createdAt: string;
6018
- updatedAt: string;
6019
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
6020
- projectId: string;
6021
- inspectorId: string;
6022
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
6023
- scheduledDate: string;
6024
- attachments?: string[] | undefined;
6025
- notes?: string | undefined;
6026
- score?: number | undefined;
6027
- completedDate?: string | undefined;
6028
- findings?: {
6029
- description: string;
6030
- category: string;
6031
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
6032
- correctionRequired: boolean;
6033
- }[] | undefined;
6034
- }>;
6035
- }, "strip", z.ZodTypeAny, {
6036
- id: string;
6037
- type: "safety-inspections";
6038
- attributes: {
6039
- id: string;
6040
- createdAt: string;
6041
- updatedAt: string;
6042
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
6043
- projectId: string;
6044
- attachments: string[];
6045
- inspectorId: string;
6046
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
6047
- scheduledDate: string;
6048
- findings: {
6049
- description: string;
6050
- category: string;
6051
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
6052
- correctionRequired: boolean;
6053
- }[];
6054
- notes?: string | undefined;
6055
- score?: number | undefined;
6056
- completedDate?: string | undefined;
6057
- };
6058
- }, {
6059
- id: string;
6060
- type: "safety-inspections";
6061
- attributes: {
6062
- id: string;
6063
- createdAt: string;
6064
- updatedAt: string;
6065
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
6066
- projectId: string;
6067
- inspectorId: string;
6068
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
6069
- scheduledDate: string;
6070
- attachments?: string[] | undefined;
6071
- notes?: string | undefined;
6072
- score?: number | undefined;
6073
- completedDate?: string | undefined;
6074
- findings?: {
6075
- description: string;
6076
- category: string;
6077
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
6078
- correctionRequired: boolean;
6079
- }[] | undefined;
6080
- };
6081
- }>, "many">;
6082
- meta: z.ZodOptional<z.ZodObject<{
6083
- total: z.ZodOptional<z.ZodNumber>;
6084
- page: z.ZodOptional<z.ZodNumber>;
6085
- size: z.ZodOptional<z.ZodNumber>;
6086
- pages: z.ZodOptional<z.ZodNumber>;
6087
- hasNextPage: z.ZodOptional<z.ZodBoolean>;
6088
- hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
6089
- }, "strip", z.ZodTypeAny, {
6090
- page?: number | undefined;
6091
- total?: number | undefined;
6092
- size?: number | undefined;
6093
- pages?: number | undefined;
6094
- hasNextPage?: boolean | undefined;
6095
- hasPreviousPage?: boolean | undefined;
6096
- }, {
6097
- page?: number | undefined;
6098
- total?: number | undefined;
6099
- size?: number | undefined;
6100
- pages?: number | undefined;
6101
- hasNextPage?: boolean | undefined;
6102
- hasPreviousPage?: boolean | undefined;
6103
- }>>;
6104
- links: z.ZodOptional<z.ZodObject<{
6105
- self: z.ZodString;
6106
- first: z.ZodOptional<z.ZodString>;
6107
- last: z.ZodOptional<z.ZodString>;
6108
- prev: z.ZodOptional<z.ZodString>;
6109
- next: z.ZodOptional<z.ZodString>;
6110
- }, "strip", z.ZodTypeAny, {
6111
- self: string;
6112
- first?: string | undefined;
6113
- last?: string | undefined;
6114
- prev?: string | undefined;
6115
- next?: string | undefined;
6116
- }, {
6117
- self: string;
6118
- first?: string | undefined;
6119
- last?: string | undefined;
6120
- prev?: string | undefined;
6121
- next?: string | undefined;
6122
- }>>;
6123
- }, "strip", z.ZodTypeAny, {
6124
- data: {
6125
- id: string;
6126
- type: "safety-inspections";
6127
- attributes: {
6128
- id: string;
6129
- createdAt: string;
6130
- updatedAt: string;
6131
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
6132
- projectId: string;
6133
- attachments: string[];
6134
- inspectorId: string;
6135
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
6136
- scheduledDate: string;
6137
- findings: {
6138
- description: string;
6139
- category: string;
6140
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
6141
- correctionRequired: boolean;
6142
- }[];
6143
- notes?: string | undefined;
6144
- score?: number | undefined;
6145
- completedDate?: string | undefined;
6146
- };
6147
- }[];
6148
- meta?: {
6149
- page?: number | undefined;
6150
- total?: number | undefined;
6151
- size?: number | undefined;
6152
- pages?: number | undefined;
6153
- hasNextPage?: boolean | undefined;
6154
- hasPreviousPage?: boolean | undefined;
6155
- } | undefined;
6156
- links?: {
6157
- self: string;
6158
- first?: string | undefined;
6159
- last?: string | undefined;
6160
- prev?: string | undefined;
6161
- next?: string | undefined;
6162
- } | undefined;
6163
- }, {
6164
- data: {
6165
- id: string;
6166
- type: "safety-inspections";
6167
- attributes: {
6168
- id: string;
6169
- createdAt: string;
6170
- updatedAt: string;
6171
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SCHEDULED";
6172
- projectId: string;
6173
- inspectorId: string;
6174
- inspectionType: "ROUTINE" | "COMPLIANCE" | "INCIDENT_FOLLOWUP" | "AUDIT";
6175
- scheduledDate: string;
6176
- attachments?: string[] | undefined;
6177
- notes?: string | undefined;
6178
- score?: number | undefined;
6179
- completedDate?: string | undefined;
6180
- findings?: {
6181
- description: string;
6182
- category: string;
6183
- severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
6184
- correctionRequired: boolean;
6185
- }[] | undefined;
6186
- };
6187
- }[];
6188
- meta?: {
6189
- page?: number | undefined;
6190
- total?: number | undefined;
6191
- size?: number | undefined;
6192
- pages?: number | undefined;
6193
- hasNextPage?: boolean | undefined;
6194
- hasPreviousPage?: boolean | undefined;
6195
- } | undefined;
6196
- links?: {
6197
- self: string;
6198
- first?: string | undefined;
6199
- last?: string | undefined;
6200
- prev?: string | undefined;
6201
- next?: string | undefined;
6202
- } | undefined;
6203
- }>;
6204
- 403: z.ZodObject<{
6205
- errors: z.ZodArray<z.ZodObject<{
6206
- status: z.ZodString;
6207
- title: z.ZodString;
6208
- detail: z.ZodOptional<z.ZodString>;
6209
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6210
- }, "strip", z.ZodTypeAny, {
6211
- status: string;
6212
- title: string;
6213
- detail?: string | undefined;
6214
- meta?: Record<string, unknown> | undefined;
6215
- }, {
6216
- status: string;
6217
- title: string;
6218
- detail?: string | undefined;
6219
- meta?: Record<string, unknown> | undefined;
6220
- }>, "many">;
6221
- }, "strip", z.ZodTypeAny, {
6222
- errors: {
6223
- status: string;
6224
- title: string;
6225
- detail?: string | undefined;
6226
- meta?: Record<string, unknown> | undefined;
6227
- }[];
6228
- }, {
6229
- errors: {
6230
- status: string;
6231
- title: string;
6232
- detail?: string | undefined;
6233
- meta?: Record<string, unknown> | undefined;
6234
- }[];
6235
- }>;
6236
- 404: z.ZodObject<{
6237
- errors: z.ZodArray<z.ZodObject<{
6238
- status: z.ZodString;
6239
- title: z.ZodString;
6240
- detail: z.ZodOptional<z.ZodString>;
6241
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6242
- }, "strip", z.ZodTypeAny, {
6243
- status: string;
6244
- title: string;
6245
- detail?: string | undefined;
6246
- meta?: Record<string, unknown> | undefined;
6247
- }, {
6248
- status: string;
6249
- title: string;
6250
- detail?: string | undefined;
6251
- meta?: Record<string, unknown> | undefined;
6252
- }>, "many">;
6253
- }, "strip", z.ZodTypeAny, {
6254
- errors: {
6255
- status: string;
6256
- title: string;
6257
- detail?: string | undefined;
6258
- meta?: Record<string, unknown> | undefined;
6259
- }[];
6260
- }, {
6261
- errors: {
6262
- status: string;
6263
- title: string;
6264
- detail?: string | undefined;
6265
- meta?: Record<string, unknown> | undefined;
6266
- }[];
6267
- }>;
6268
- };
6269
- };
6270
- getSafetyTraining: {
6271
- query: z.ZodObject<{
6272
- page: z.ZodDefault<z.ZodNumber>;
6273
- limit: z.ZodDefault<z.ZodNumber>;
6274
- userId: z.ZodOptional<z.ZodString>;
6275
- trainingType: z.ZodOptional<z.ZodString>;
6276
- status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "EXPIRED", "CANCELLED"]>>;
6277
- expiresWithin: z.ZodOptional<z.ZodNumber>;
6278
- search: z.ZodOptional<z.ZodString>;
6279
- }, "strip", z.ZodTypeAny, {
6280
- page: number;
6281
- limit: number;
6282
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED" | undefined;
6283
- userId?: string | undefined;
6284
- search?: string | undefined;
6285
- trainingType?: string | undefined;
6286
- expiresWithin?: number | undefined;
6287
- }, {
6288
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED" | undefined;
6289
- page?: number | undefined;
6290
- limit?: number | undefined;
6291
- userId?: string | undefined;
6292
- search?: string | undefined;
6293
- trainingType?: string | undefined;
6294
- expiresWithin?: number | undefined;
6295
- }>;
6296
- summary: "Get safety training records with filtering";
6297
- method: "GET";
6298
- path: "/safety/training";
6299
- responses: {
6300
- 200: z.ZodObject<{
6301
- data: z.ZodArray<z.ZodObject<{
6302
- type: z.ZodLiteral<"training-records">;
6303
- id: z.ZodString;
6304
- attributes: z.ZodObject<{
6305
- id: z.ZodString;
6306
- userId: z.ZodString;
6307
- trainingType: z.ZodString;
6308
- provider: z.ZodOptional<z.ZodString>;
6309
- completedDate: z.ZodString;
6310
- expirationDate: z.ZodOptional<z.ZodString>;
6311
- certificateNumber: z.ZodOptional<z.ZodString>;
6312
- status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "EXPIRED", "CANCELLED"]>;
6313
- score: z.ZodOptional<z.ZodNumber>;
6314
- notes: z.ZodOptional<z.ZodString>;
6315
- attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6316
- createdAt: z.ZodString;
6317
- updatedAt: z.ZodString;
6318
- }, "strip", z.ZodTypeAny, {
6319
- id: string;
6320
- createdAt: string;
6321
- updatedAt: string;
6322
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6323
- userId: string;
6324
- attachments: string[];
6325
- completedDate: string;
6326
- trainingType: string;
6327
- notes?: string | undefined;
6328
- certificateNumber?: string | undefined;
6329
- provider?: string | undefined;
6330
- expirationDate?: string | undefined;
6331
- score?: number | undefined;
6332
- }, {
6333
- id: string;
6334
- createdAt: string;
6335
- updatedAt: string;
6336
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6337
- userId: string;
6338
- completedDate: string;
6339
- trainingType: string;
6340
- attachments?: string[] | undefined;
6341
- notes?: string | undefined;
6342
- certificateNumber?: string | undefined;
6343
- provider?: string | undefined;
6344
- expirationDate?: string | undefined;
6345
- score?: number | undefined;
6346
- }>;
6347
- }, "strip", z.ZodTypeAny, {
6348
- id: string;
6349
- type: "training-records";
6350
- attributes: {
6351
- id: string;
6352
- createdAt: string;
6353
- updatedAt: string;
6354
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6355
- userId: string;
6356
- attachments: string[];
6357
- completedDate: string;
6358
- trainingType: string;
6359
- notes?: string | undefined;
6360
- certificateNumber?: string | undefined;
6361
- provider?: string | undefined;
6362
- expirationDate?: string | undefined;
6363
- score?: number | undefined;
6364
- };
6365
- }, {
6366
- id: string;
6367
- type: "training-records";
6368
- attributes: {
6369
- id: string;
6370
- createdAt: string;
6371
- updatedAt: string;
6372
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6373
- userId: string;
6374
- completedDate: string;
6375
- trainingType: string;
6376
- attachments?: string[] | undefined;
6377
- notes?: string | undefined;
6378
- certificateNumber?: string | undefined;
6379
- provider?: string | undefined;
6380
- expirationDate?: string | undefined;
6381
- score?: number | undefined;
6382
- };
6383
- }>, "many">;
6384
- meta: z.ZodOptional<z.ZodObject<{
6385
- total: z.ZodOptional<z.ZodNumber>;
6386
- page: z.ZodOptional<z.ZodNumber>;
6387
- size: z.ZodOptional<z.ZodNumber>;
6388
- pages: z.ZodOptional<z.ZodNumber>;
6389
- hasNextPage: z.ZodOptional<z.ZodBoolean>;
6390
- hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
6391
- }, "strip", z.ZodTypeAny, {
6392
- page?: number | undefined;
6393
- total?: number | undefined;
6394
- size?: number | undefined;
6395
- pages?: number | undefined;
6396
- hasNextPage?: boolean | undefined;
6397
- hasPreviousPage?: boolean | undefined;
6398
- }, {
6399
- page?: number | undefined;
6400
- total?: number | undefined;
6401
- size?: number | undefined;
6402
- pages?: number | undefined;
6403
- hasNextPage?: boolean | undefined;
6404
- hasPreviousPage?: boolean | undefined;
6405
- }>>;
6406
- links: z.ZodOptional<z.ZodObject<{
6407
- self: z.ZodString;
6408
- first: z.ZodOptional<z.ZodString>;
6409
- last: z.ZodOptional<z.ZodString>;
6410
- prev: z.ZodOptional<z.ZodString>;
6411
- next: z.ZodOptional<z.ZodString>;
6412
- }, "strip", z.ZodTypeAny, {
6413
- self: string;
6414
- first?: string | undefined;
6415
- last?: string | undefined;
6416
- prev?: string | undefined;
6417
- next?: string | undefined;
6418
- }, {
6419
- self: string;
6420
- first?: string | undefined;
6421
- last?: string | undefined;
6422
- prev?: string | undefined;
6423
- next?: string | undefined;
6424
- }>>;
6425
- }, "strip", z.ZodTypeAny, {
6426
- data: {
6427
- id: string;
6428
- type: "training-records";
6429
- attributes: {
6430
- id: string;
6431
- createdAt: string;
6432
- updatedAt: string;
6433
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6434
- userId: string;
6435
- attachments: string[];
6436
- completedDate: string;
6437
- trainingType: string;
6438
- notes?: string | undefined;
6439
- certificateNumber?: string | undefined;
6440
- provider?: string | undefined;
6441
- expirationDate?: string | undefined;
6442
- score?: number | undefined;
6443
- };
6444
- }[];
6445
- meta?: {
6446
- page?: number | undefined;
6447
- total?: number | undefined;
6448
- size?: number | undefined;
6449
- pages?: number | undefined;
6450
- hasNextPage?: boolean | undefined;
6451
- hasPreviousPage?: boolean | undefined;
6452
- } | undefined;
6453
- links?: {
6454
- self: string;
6455
- first?: string | undefined;
6456
- last?: string | undefined;
6457
- prev?: string | undefined;
6458
- next?: string | undefined;
6459
- } | undefined;
6460
- }, {
6461
- data: {
6462
- id: string;
6463
- type: "training-records";
6464
- attributes: {
6465
- id: string;
6466
- createdAt: string;
6467
- updatedAt: string;
6468
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6469
- userId: string;
6470
- completedDate: string;
6471
- trainingType: string;
6472
- attachments?: string[] | undefined;
6473
- notes?: string | undefined;
6474
- certificateNumber?: string | undefined;
6475
- provider?: string | undefined;
6476
- expirationDate?: string | undefined;
6477
- score?: number | undefined;
6478
- };
6479
- }[];
6480
- meta?: {
6481
- page?: number | undefined;
6482
- total?: number | undefined;
6483
- size?: number | undefined;
6484
- pages?: number | undefined;
6485
- hasNextPage?: boolean | undefined;
6486
- hasPreviousPage?: boolean | undefined;
6487
- } | undefined;
6488
- links?: {
6489
- self: string;
6490
- first?: string | undefined;
6491
- last?: string | undefined;
6492
- prev?: string | undefined;
6493
- next?: string | undefined;
6494
- } | undefined;
6495
- }>;
6496
- 403: z.ZodObject<{
6497
- errors: z.ZodArray<z.ZodObject<{
6498
- status: z.ZodString;
6499
- title: z.ZodString;
6500
- detail: z.ZodOptional<z.ZodString>;
6501
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6502
- }, "strip", z.ZodTypeAny, {
6503
- status: string;
6504
- title: string;
6505
- detail?: string | undefined;
6506
- meta?: Record<string, unknown> | undefined;
6507
- }, {
6508
- status: string;
6509
- title: string;
6510
- detail?: string | undefined;
6511
- meta?: Record<string, unknown> | undefined;
6512
- }>, "many">;
6513
- }, "strip", z.ZodTypeAny, {
6514
- errors: {
6515
- status: string;
6516
- title: string;
6517
- detail?: string | undefined;
6518
- meta?: Record<string, unknown> | undefined;
6519
- }[];
6520
- }, {
6521
- errors: {
6522
- status: string;
6523
- title: string;
6524
- detail?: string | undefined;
6525
- meta?: Record<string, unknown> | undefined;
6526
- }[];
6527
- }>;
6528
- };
6529
- };
6530
- createSafetyTraining: {
6531
- summary: "Record safety training completion";
6532
- method: "POST";
6533
- body: z.ZodObject<{
6534
- userId: z.ZodString;
6535
- trainingType: z.ZodString;
6536
- provider: z.ZodOptional<z.ZodString>;
6537
- completedDate: z.ZodString;
6538
- expirationDate: z.ZodOptional<z.ZodString>;
6539
- certificateNumber: z.ZodOptional<z.ZodString>;
6540
- score: z.ZodOptional<z.ZodNumber>;
6541
- notes: z.ZodOptional<z.ZodString>;
6542
- }, "strip", z.ZodTypeAny, {
6543
- userId: string;
6544
- completedDate: string;
6545
- trainingType: string;
6546
- notes?: string | undefined;
6547
- certificateNumber?: string | undefined;
6548
- provider?: string | undefined;
6549
- expirationDate?: string | undefined;
6550
- score?: number | undefined;
6551
- }, {
6552
- userId: string;
6553
- completedDate: string;
6554
- trainingType: string;
6555
- notes?: string | undefined;
6556
- certificateNumber?: string | undefined;
6557
- provider?: string | undefined;
6558
- expirationDate?: string | undefined;
6559
- score?: number | undefined;
6560
- }>;
6561
- path: "/safety/training";
6562
- responses: {
6563
- 201: z.ZodObject<{
6564
- data: z.ZodObject<{
6565
- type: z.ZodLiteral<"training-records">;
6566
- id: z.ZodString;
6567
- attributes: z.ZodObject<{
6568
- id: z.ZodString;
6569
- userId: z.ZodString;
6570
- trainingType: z.ZodString;
6571
- provider: z.ZodOptional<z.ZodString>;
6572
- completedDate: z.ZodString;
6573
- expirationDate: z.ZodOptional<z.ZodString>;
6574
- certificateNumber: z.ZodOptional<z.ZodString>;
6575
- status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "EXPIRED", "CANCELLED"]>;
6576
- score: z.ZodOptional<z.ZodNumber>;
6577
- notes: z.ZodOptional<z.ZodString>;
6578
- attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6579
- createdAt: z.ZodString;
6580
- updatedAt: z.ZodString;
6581
- }, "strip", z.ZodTypeAny, {
6582
- id: string;
6583
- createdAt: string;
6584
- updatedAt: string;
6585
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6586
- userId: string;
6587
- attachments: string[];
6588
- completedDate: string;
6589
- trainingType: string;
6590
- notes?: string | undefined;
6591
- certificateNumber?: string | undefined;
6592
- provider?: string | undefined;
6593
- expirationDate?: string | undefined;
6594
- score?: number | undefined;
6595
- }, {
6596
- id: string;
6597
- createdAt: string;
6598
- updatedAt: string;
6599
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6600
- userId: string;
6601
- completedDate: string;
6602
- trainingType: string;
6603
- attachments?: string[] | undefined;
6604
- notes?: string | undefined;
6605
- certificateNumber?: string | undefined;
6606
- provider?: string | undefined;
6607
- expirationDate?: string | undefined;
6608
- score?: number | undefined;
6609
- }>;
6610
- }, "strip", z.ZodTypeAny, {
6611
- id: string;
6612
- type: "training-records";
6613
- attributes: {
6614
- id: string;
6615
- createdAt: string;
6616
- updatedAt: string;
6617
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6618
- userId: string;
6619
- attachments: string[];
6620
- completedDate: string;
6621
- trainingType: string;
6622
- notes?: string | undefined;
6623
- certificateNumber?: string | undefined;
6624
- provider?: string | undefined;
6625
- expirationDate?: string | undefined;
6626
- score?: number | undefined;
6627
- };
6628
- }, {
6629
- id: string;
6630
- type: "training-records";
6631
- attributes: {
6632
- id: string;
6633
- createdAt: string;
6634
- updatedAt: string;
6635
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6636
- userId: string;
6637
- completedDate: string;
6638
- trainingType: string;
6639
- attachments?: string[] | undefined;
6640
- notes?: string | undefined;
6641
- certificateNumber?: string | undefined;
6642
- provider?: string | undefined;
6643
- expirationDate?: string | undefined;
6644
- score?: number | undefined;
6645
- };
6646
- }>;
6647
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6648
- links: z.ZodOptional<z.ZodObject<{
6649
- self: z.ZodString;
6650
- first: z.ZodOptional<z.ZodString>;
6651
- last: z.ZodOptional<z.ZodString>;
6652
- prev: z.ZodOptional<z.ZodString>;
6653
- next: z.ZodOptional<z.ZodString>;
6654
- }, "strip", z.ZodTypeAny, {
6655
- self: string;
6656
- first?: string | undefined;
6657
- last?: string | undefined;
6658
- prev?: string | undefined;
6659
- next?: string | undefined;
6660
- }, {
6661
- self: string;
6662
- first?: string | undefined;
6663
- last?: string | undefined;
6664
- prev?: string | undefined;
6665
- next?: string | undefined;
6666
- }>>;
6667
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
6668
- status: z.ZodString;
6669
- title: z.ZodString;
6670
- detail: z.ZodOptional<z.ZodString>;
6671
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6672
- }, "strip", z.ZodTypeAny, {
6673
- status: string;
6674
- title: string;
6675
- detail?: string | undefined;
6676
- meta?: Record<string, unknown> | undefined;
6677
- }, {
6678
- status: string;
6679
- title: string;
6680
- detail?: string | undefined;
6681
- meta?: Record<string, unknown> | undefined;
6682
- }>, "many">>;
6683
- }, "strip", z.ZodTypeAny, {
6684
- data: {
6685
- id: string;
6686
- type: "training-records";
6687
- attributes: {
6688
- id: string;
6689
- createdAt: string;
6690
- updatedAt: string;
6691
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6692
- userId: string;
6693
- attachments: string[];
6694
- completedDate: string;
6695
- trainingType: string;
6696
- notes?: string | undefined;
6697
- certificateNumber?: string | undefined;
6698
- provider?: string | undefined;
6699
- expirationDate?: string | undefined;
6700
- score?: number | undefined;
6701
- };
6702
- };
6703
- meta?: Record<string, unknown> | undefined;
6704
- links?: {
6705
- self: string;
6706
- first?: string | undefined;
6707
- last?: string | undefined;
6708
- prev?: string | undefined;
6709
- next?: string | undefined;
6710
- } | undefined;
6711
- errors?: {
6712
- status: string;
6713
- title: string;
6714
- detail?: string | undefined;
6715
- meta?: Record<string, unknown> | undefined;
6716
- }[] | undefined;
6717
- }, {
6718
- data: {
6719
- id: string;
6720
- type: "training-records";
6721
- attributes: {
6722
- id: string;
6723
- createdAt: string;
6724
- updatedAt: string;
6725
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6726
- userId: string;
6727
- completedDate: string;
6728
- trainingType: string;
6729
- attachments?: string[] | undefined;
6730
- notes?: string | undefined;
6731
- certificateNumber?: string | undefined;
6732
- provider?: string | undefined;
6733
- expirationDate?: string | undefined;
6734
- score?: number | undefined;
6735
- };
6736
- };
6737
- meta?: Record<string, unknown> | undefined;
6738
- links?: {
6739
- self: string;
6740
- first?: string | undefined;
6741
- last?: string | undefined;
6742
- prev?: string | undefined;
6743
- next?: string | undefined;
6744
- } | undefined;
6745
- errors?: {
6746
- status: string;
6747
- title: string;
6748
- detail?: string | undefined;
6749
- meta?: Record<string, unknown> | undefined;
6750
- }[] | undefined;
6751
- }>;
6752
- 400: z.ZodObject<{
6753
- errors: z.ZodArray<z.ZodObject<{
6754
- status: z.ZodString;
6755
- title: z.ZodString;
6756
- detail: z.ZodOptional<z.ZodString>;
6757
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6758
- }, "strip", z.ZodTypeAny, {
6759
- status: string;
6760
- title: string;
6761
- detail?: string | undefined;
6762
- meta?: Record<string, unknown> | undefined;
6763
- }, {
6764
- status: string;
6765
- title: string;
6766
- detail?: string | undefined;
6767
- meta?: Record<string, unknown> | undefined;
6768
- }>, "many">;
6769
- }, "strip", z.ZodTypeAny, {
6770
- errors: {
6771
- status: string;
6772
- title: string;
6773
- detail?: string | undefined;
6774
- meta?: Record<string, unknown> | undefined;
6775
- }[];
6776
- }, {
6777
- errors: {
6778
- status: string;
6779
- title: string;
6780
- detail?: string | undefined;
6781
- meta?: Record<string, unknown> | undefined;
6782
- }[];
6783
- }>;
6784
- 403: z.ZodObject<{
6785
- errors: z.ZodArray<z.ZodObject<{
6786
- status: z.ZodString;
6787
- title: z.ZodString;
6788
- detail: z.ZodOptional<z.ZodString>;
6789
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6790
- }, "strip", z.ZodTypeAny, {
6791
- status: string;
6792
- title: string;
6793
- detail?: string | undefined;
6794
- meta?: Record<string, unknown> | undefined;
6795
- }, {
6796
- status: string;
6797
- title: string;
6798
- detail?: string | undefined;
6799
- meta?: Record<string, unknown> | undefined;
6800
- }>, "many">;
6801
- }, "strip", z.ZodTypeAny, {
6802
- errors: {
6803
- status: string;
6804
- title: string;
6805
- detail?: string | undefined;
6806
- meta?: Record<string, unknown> | undefined;
6807
- }[];
6808
- }, {
6809
- errors: {
6810
- status: string;
6811
- title: string;
6812
- detail?: string | undefined;
6813
- meta?: Record<string, unknown> | undefined;
6814
- }[];
6815
- }>;
6816
- };
6817
- };
6818
- getSafetyTrainingById: {
6819
- pathParams: z.ZodObject<{
6820
- recordId: z.ZodString;
6821
- }, "strip", z.ZodTypeAny, {
6822
- recordId: string;
6823
- }, {
6824
- recordId: string;
6825
- }>;
6826
- summary: "Get safety training record details";
6827
- method: "GET";
6828
- path: "/safety/training/:recordId";
6829
- responses: {
6830
- 200: z.ZodObject<{
6831
- data: z.ZodObject<{
6832
- type: z.ZodLiteral<"training-records">;
6833
- id: z.ZodString;
6834
- attributes: z.ZodObject<{
6835
- id: z.ZodString;
6836
- userId: z.ZodString;
6837
- trainingType: z.ZodString;
6838
- provider: z.ZodOptional<z.ZodString>;
6839
- completedDate: z.ZodString;
6840
- expirationDate: z.ZodOptional<z.ZodString>;
6841
- certificateNumber: z.ZodOptional<z.ZodString>;
6842
- status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "EXPIRED", "CANCELLED"]>;
6843
- score: z.ZodOptional<z.ZodNumber>;
6844
- notes: z.ZodOptional<z.ZodString>;
6845
- attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6846
- createdAt: z.ZodString;
6847
- updatedAt: z.ZodString;
6848
- }, "strip", z.ZodTypeAny, {
6849
- id: string;
6850
- createdAt: string;
6851
- updatedAt: string;
6852
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6853
- userId: string;
6854
- attachments: string[];
6855
- completedDate: string;
6856
- trainingType: string;
6857
- notes?: string | undefined;
6858
- certificateNumber?: string | undefined;
6859
- provider?: string | undefined;
6860
- expirationDate?: string | undefined;
6861
- score?: number | undefined;
6862
- }, {
6863
- id: string;
6864
- createdAt: string;
6865
- updatedAt: string;
6866
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6867
- userId: string;
6868
- completedDate: string;
6869
- trainingType: string;
6870
- attachments?: string[] | undefined;
6871
- notes?: string | undefined;
6872
- certificateNumber?: string | undefined;
6873
- provider?: string | undefined;
6874
- expirationDate?: string | undefined;
6875
- score?: number | undefined;
6876
- }>;
6877
- }, "strip", z.ZodTypeAny, {
6878
- id: string;
6879
- type: "training-records";
6880
- attributes: {
6881
- id: string;
6882
- createdAt: string;
6883
- updatedAt: string;
6884
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6885
- userId: string;
6886
- attachments: string[];
6887
- completedDate: string;
6888
- trainingType: string;
6889
- notes?: string | undefined;
6890
- certificateNumber?: string | undefined;
6891
- provider?: string | undefined;
6892
- expirationDate?: string | undefined;
6893
- score?: number | undefined;
6894
- };
6895
- }, {
6896
- id: string;
6897
- type: "training-records";
6898
- attributes: {
6899
- id: string;
6900
- createdAt: string;
6901
- updatedAt: string;
6902
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6903
- userId: string;
6904
- completedDate: string;
6905
- trainingType: string;
6906
- attachments?: string[] | undefined;
6907
- notes?: string | undefined;
6908
- certificateNumber?: string | undefined;
6909
- provider?: string | undefined;
6910
- expirationDate?: string | undefined;
6911
- score?: number | undefined;
6912
- };
6913
- }>;
6914
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6915
- links: z.ZodOptional<z.ZodObject<{
6916
- self: z.ZodString;
6917
- first: z.ZodOptional<z.ZodString>;
6918
- last: z.ZodOptional<z.ZodString>;
6919
- prev: z.ZodOptional<z.ZodString>;
6920
- next: z.ZodOptional<z.ZodString>;
6921
- }, "strip", z.ZodTypeAny, {
6922
- self: string;
6923
- first?: string | undefined;
6924
- last?: string | undefined;
6925
- prev?: string | undefined;
6926
- next?: string | undefined;
6927
- }, {
6928
- self: string;
6929
- first?: string | undefined;
6930
- last?: string | undefined;
6931
- prev?: string | undefined;
6932
- next?: string | undefined;
6933
- }>>;
6934
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
6935
- status: z.ZodString;
6936
- title: z.ZodString;
6937
- detail: z.ZodOptional<z.ZodString>;
6938
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6939
- }, "strip", z.ZodTypeAny, {
6940
- status: string;
6941
- title: string;
6942
- detail?: string | undefined;
6943
- meta?: Record<string, unknown> | undefined;
6944
- }, {
6945
- status: string;
6946
- title: string;
6947
- detail?: string | undefined;
6948
- meta?: Record<string, unknown> | undefined;
6949
- }>, "many">>;
6950
- }, "strip", z.ZodTypeAny, {
6951
- data: {
6952
- id: string;
6953
- type: "training-records";
6954
- attributes: {
6955
- id: string;
6956
- createdAt: string;
6957
- updatedAt: string;
6958
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6959
- userId: string;
6960
- attachments: string[];
6961
- completedDate: string;
6962
- trainingType: string;
6963
- notes?: string | undefined;
6964
- certificateNumber?: string | undefined;
6965
- provider?: string | undefined;
6966
- expirationDate?: string | undefined;
6967
- score?: number | undefined;
6968
- };
6969
- };
6970
- meta?: Record<string, unknown> | undefined;
6971
- links?: {
6972
- self: string;
6973
- first?: string | undefined;
6974
- last?: string | undefined;
6975
- prev?: string | undefined;
6976
- next?: string | undefined;
6977
- } | undefined;
6978
- errors?: {
6979
- status: string;
6980
- title: string;
6981
- detail?: string | undefined;
6982
- meta?: Record<string, unknown> | undefined;
6983
- }[] | undefined;
6984
- }, {
6985
- data: {
6986
- id: string;
6987
- type: "training-records";
6988
- attributes: {
6989
- id: string;
6990
- createdAt: string;
6991
- updatedAt: string;
6992
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
6993
- userId: string;
6994
- completedDate: string;
6995
- trainingType: string;
6996
- attachments?: string[] | undefined;
6997
- notes?: string | undefined;
6998
- certificateNumber?: string | undefined;
6999
- provider?: string | undefined;
7000
- expirationDate?: string | undefined;
7001
- score?: number | undefined;
7002
- };
7003
- };
7004
- meta?: Record<string, unknown> | undefined;
7005
- links?: {
7006
- self: string;
7007
- first?: string | undefined;
7008
- last?: string | undefined;
7009
- prev?: string | undefined;
7010
- next?: string | undefined;
7011
- } | undefined;
7012
- errors?: {
7013
- status: string;
7014
- title: string;
7015
- detail?: string | undefined;
7016
- meta?: Record<string, unknown> | undefined;
7017
- }[] | undefined;
7018
- }>;
7019
- 403: z.ZodObject<{
7020
- errors: z.ZodArray<z.ZodObject<{
7021
- status: z.ZodString;
7022
- title: z.ZodString;
7023
- detail: z.ZodOptional<z.ZodString>;
7024
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7025
- }, "strip", z.ZodTypeAny, {
7026
- status: string;
7027
- title: string;
7028
- detail?: string | undefined;
7029
- meta?: Record<string, unknown> | undefined;
7030
- }, {
7031
- status: string;
7032
- title: string;
7033
- detail?: string | undefined;
7034
- meta?: Record<string, unknown> | undefined;
7035
- }>, "many">;
7036
- }, "strip", z.ZodTypeAny, {
7037
- errors: {
7038
- status: string;
7039
- title: string;
7040
- detail?: string | undefined;
7041
- meta?: Record<string, unknown> | undefined;
7042
- }[];
7043
- }, {
7044
- errors: {
7045
- status: string;
7046
- title: string;
7047
- detail?: string | undefined;
7048
- meta?: Record<string, unknown> | undefined;
7049
- }[];
7050
- }>;
7051
- 404: z.ZodObject<{
7052
- errors: z.ZodArray<z.ZodObject<{
7053
- status: z.ZodString;
7054
- title: z.ZodString;
7055
- detail: z.ZodOptional<z.ZodString>;
7056
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7057
- }, "strip", z.ZodTypeAny, {
7058
- status: string;
7059
- title: string;
7060
- detail?: string | undefined;
7061
- meta?: Record<string, unknown> | undefined;
7062
- }, {
7063
- status: string;
7064
- title: string;
7065
- detail?: string | undefined;
7066
- meta?: Record<string, unknown> | undefined;
7067
- }>, "many">;
7068
- }, "strip", z.ZodTypeAny, {
7069
- errors: {
7070
- status: string;
7071
- title: string;
7072
- detail?: string | undefined;
7073
- meta?: Record<string, unknown> | undefined;
7074
- }[];
7075
- }, {
7076
- errors: {
7077
- status: string;
7078
- title: string;
7079
- detail?: string | undefined;
7080
- meta?: Record<string, unknown> | undefined;
7081
- }[];
7082
- }>;
7083
- };
7084
- };
7085
- updateSafetyTraining: {
7086
- pathParams: z.ZodObject<{
7087
- recordId: z.ZodString;
7088
- }, "strip", z.ZodTypeAny, {
7089
- recordId: string;
7090
- }, {
7091
- recordId: string;
7092
- }>;
7093
- summary: "Update safety training record";
7094
- method: "PUT";
7095
- body: z.ZodObject<{
7096
- status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "EXPIRED", "CANCELLED"]>>;
7097
- score: z.ZodOptional<z.ZodNumber>;
7098
- notes: z.ZodOptional<z.ZodString>;
7099
- expirationDate: z.ZodOptional<z.ZodString>;
7100
- }, "strip", z.ZodTypeAny, {
7101
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED" | undefined;
7102
- notes?: string | undefined;
7103
- expirationDate?: string | undefined;
7104
- score?: number | undefined;
7105
- }, {
7106
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED" | undefined;
7107
- notes?: string | undefined;
7108
- expirationDate?: string | undefined;
7109
- score?: number | undefined;
7110
- }>;
7111
- path: "/safety/training/:recordId";
7112
- responses: {
7113
- 200: z.ZodObject<{
7114
- data: z.ZodObject<{
7115
- type: z.ZodLiteral<"training-records">;
7116
- id: z.ZodString;
7117
- attributes: z.ZodObject<{
7118
- id: z.ZodString;
7119
- userId: z.ZodString;
7120
- trainingType: z.ZodString;
7121
- provider: z.ZodOptional<z.ZodString>;
7122
- completedDate: z.ZodString;
7123
- expirationDate: z.ZodOptional<z.ZodString>;
7124
- certificateNumber: z.ZodOptional<z.ZodString>;
7125
- status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "EXPIRED", "CANCELLED"]>;
7126
- score: z.ZodOptional<z.ZodNumber>;
7127
- notes: z.ZodOptional<z.ZodString>;
7128
- attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
7129
- createdAt: z.ZodString;
7130
- updatedAt: z.ZodString;
7131
- }, "strip", z.ZodTypeAny, {
7132
- id: string;
7133
- createdAt: string;
7134
- updatedAt: string;
7135
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7136
- userId: string;
7137
- attachments: string[];
7138
- completedDate: string;
7139
- trainingType: string;
7140
- notes?: string | undefined;
7141
- certificateNumber?: string | undefined;
7142
- provider?: string | undefined;
7143
- expirationDate?: string | undefined;
7144
- score?: number | undefined;
7145
- }, {
7146
- id: string;
7147
- createdAt: string;
7148
- updatedAt: string;
7149
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7150
- userId: string;
7151
- completedDate: string;
7152
- trainingType: string;
7153
- attachments?: string[] | undefined;
7154
- notes?: string | undefined;
7155
- certificateNumber?: string | undefined;
7156
- provider?: string | undefined;
7157
- expirationDate?: string | undefined;
7158
- score?: number | undefined;
7159
- }>;
7160
- }, "strip", z.ZodTypeAny, {
7161
- id: string;
7162
- type: "training-records";
7163
- attributes: {
7164
- id: string;
7165
- createdAt: string;
7166
- updatedAt: string;
7167
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7168
- userId: string;
7169
- attachments: string[];
7170
- completedDate: string;
7171
- trainingType: string;
7172
- notes?: string | undefined;
7173
- certificateNumber?: string | undefined;
7174
- provider?: string | undefined;
7175
- expirationDate?: string | undefined;
7176
- score?: number | undefined;
7177
- };
7178
- }, {
7179
- id: string;
7180
- type: "training-records";
7181
- attributes: {
7182
- id: string;
7183
- createdAt: string;
7184
- updatedAt: string;
7185
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7186
- userId: string;
7187
- completedDate: string;
7188
- trainingType: string;
7189
- attachments?: string[] | undefined;
7190
- notes?: string | undefined;
7191
- certificateNumber?: string | undefined;
7192
- provider?: string | undefined;
7193
- expirationDate?: string | undefined;
7194
- score?: number | undefined;
7195
- };
7196
- }>;
7197
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7198
- links: z.ZodOptional<z.ZodObject<{
7199
- self: z.ZodString;
7200
- first: z.ZodOptional<z.ZodString>;
7201
- last: z.ZodOptional<z.ZodString>;
7202
- prev: z.ZodOptional<z.ZodString>;
7203
- next: z.ZodOptional<z.ZodString>;
7204
- }, "strip", z.ZodTypeAny, {
7205
- self: string;
7206
- first?: string | undefined;
7207
- last?: string | undefined;
7208
- prev?: string | undefined;
7209
- next?: string | undefined;
7210
- }, {
7211
- self: string;
7212
- first?: string | undefined;
7213
- last?: string | undefined;
7214
- prev?: string | undefined;
7215
- next?: string | undefined;
7216
- }>>;
7217
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
7218
- status: z.ZodString;
7219
- title: z.ZodString;
7220
- detail: z.ZodOptional<z.ZodString>;
7221
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7222
- }, "strip", z.ZodTypeAny, {
7223
- status: string;
7224
- title: string;
7225
- detail?: string | undefined;
7226
- meta?: Record<string, unknown> | undefined;
7227
- }, {
7228
- status: string;
7229
- title: string;
7230
- detail?: string | undefined;
7231
- meta?: Record<string, unknown> | undefined;
7232
- }>, "many">>;
7233
- }, "strip", z.ZodTypeAny, {
7234
- data: {
7235
- id: string;
7236
- type: "training-records";
7237
- attributes: {
7238
- id: string;
7239
- createdAt: string;
7240
- updatedAt: string;
7241
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7242
- userId: string;
7243
- attachments: string[];
7244
- completedDate: string;
7245
- trainingType: string;
7246
- notes?: string | undefined;
7247
- certificateNumber?: string | undefined;
7248
- provider?: string | undefined;
7249
- expirationDate?: string | undefined;
7250
- score?: number | undefined;
7251
- };
7252
- };
7253
- meta?: Record<string, unknown> | undefined;
7254
- links?: {
7255
- self: string;
7256
- first?: string | undefined;
7257
- last?: string | undefined;
7258
- prev?: string | undefined;
7259
- next?: string | undefined;
7260
- } | undefined;
7261
- errors?: {
7262
- status: string;
7263
- title: string;
7264
- detail?: string | undefined;
7265
- meta?: Record<string, unknown> | undefined;
7266
- }[] | undefined;
7267
- }, {
7268
- data: {
7269
- id: string;
7270
- type: "training-records";
7271
- attributes: {
7272
- id: string;
7273
- createdAt: string;
7274
- updatedAt: string;
7275
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7276
- userId: string;
7277
- completedDate: string;
7278
- trainingType: string;
7279
- attachments?: string[] | undefined;
7280
- notes?: string | undefined;
7281
- certificateNumber?: string | undefined;
7282
- provider?: string | undefined;
7283
- expirationDate?: string | undefined;
7284
- score?: number | undefined;
7285
- };
7286
- };
7287
- meta?: Record<string, unknown> | undefined;
7288
- links?: {
7289
- self: string;
7290
- first?: string | undefined;
7291
- last?: string | undefined;
7292
- prev?: string | undefined;
7293
- next?: string | undefined;
7294
- } | undefined;
7295
- errors?: {
7296
- status: string;
7297
- title: string;
7298
- detail?: string | undefined;
7299
- meta?: Record<string, unknown> | undefined;
7300
- }[] | undefined;
7301
- }>;
7302
- 400: z.ZodObject<{
7303
- errors: z.ZodArray<z.ZodObject<{
7304
- status: z.ZodString;
7305
- title: z.ZodString;
7306
- detail: z.ZodOptional<z.ZodString>;
7307
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7308
- }, "strip", z.ZodTypeAny, {
7309
- status: string;
7310
- title: string;
7311
- detail?: string | undefined;
7312
- meta?: Record<string, unknown> | undefined;
7313
- }, {
7314
- status: string;
7315
- title: string;
7316
- detail?: string | undefined;
7317
- meta?: Record<string, unknown> | undefined;
7318
- }>, "many">;
7319
- }, "strip", z.ZodTypeAny, {
7320
- errors: {
7321
- status: string;
7322
- title: string;
7323
- detail?: string | undefined;
7324
- meta?: Record<string, unknown> | undefined;
7325
- }[];
7326
- }, {
7327
- errors: {
7328
- status: string;
7329
- title: string;
7330
- detail?: string | undefined;
7331
- meta?: Record<string, unknown> | undefined;
7332
- }[];
7333
- }>;
7334
- 403: z.ZodObject<{
7335
- errors: z.ZodArray<z.ZodObject<{
7336
- status: z.ZodString;
7337
- title: z.ZodString;
7338
- detail: z.ZodOptional<z.ZodString>;
7339
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7340
- }, "strip", z.ZodTypeAny, {
7341
- status: string;
7342
- title: string;
7343
- detail?: string | undefined;
7344
- meta?: Record<string, unknown> | undefined;
7345
- }, {
7346
- status: string;
7347
- title: string;
7348
- detail?: string | undefined;
7349
- meta?: Record<string, unknown> | undefined;
7350
- }>, "many">;
7351
- }, "strip", z.ZodTypeAny, {
7352
- errors: {
7353
- status: string;
7354
- title: string;
7355
- detail?: string | undefined;
7356
- meta?: Record<string, unknown> | undefined;
7357
- }[];
7358
- }, {
7359
- errors: {
7360
- status: string;
7361
- title: string;
7362
- detail?: string | undefined;
7363
- meta?: Record<string, unknown> | undefined;
7364
- }[];
7365
- }>;
7366
- 404: z.ZodObject<{
7367
- errors: z.ZodArray<z.ZodObject<{
7368
- status: z.ZodString;
7369
- title: z.ZodString;
7370
- detail: z.ZodOptional<z.ZodString>;
7371
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7372
- }, "strip", z.ZodTypeAny, {
7373
- status: string;
7374
- title: string;
7375
- detail?: string | undefined;
7376
- meta?: Record<string, unknown> | undefined;
7377
- }, {
7378
- status: string;
7379
- title: string;
7380
- detail?: string | undefined;
7381
- meta?: Record<string, unknown> | undefined;
7382
- }>, "many">;
7383
- }, "strip", z.ZodTypeAny, {
7384
- errors: {
7385
- status: string;
7386
- title: string;
7387
- detail?: string | undefined;
7388
- meta?: Record<string, unknown> | undefined;
7389
- }[];
7390
- }, {
7391
- errors: {
7392
- status: string;
7393
- title: string;
7394
- detail?: string | undefined;
7395
- meta?: Record<string, unknown> | undefined;
7396
- }[];
7397
- }>;
7398
- };
7399
- };
7400
- deleteSafetyTraining: {
7401
- pathParams: z.ZodObject<{
7402
- recordId: z.ZodString;
7403
- }, "strip", z.ZodTypeAny, {
7404
- recordId: string;
7405
- }, {
7406
- recordId: string;
7407
- }>;
7408
- summary: "Delete a safety training record";
7409
- method: "DELETE";
7410
- path: "/safety/training/:recordId";
7411
- responses: {
7412
- 204: z.ZodVoid;
7413
- 403: z.ZodObject<{
7414
- errors: z.ZodArray<z.ZodObject<{
7415
- status: z.ZodString;
7416
- title: z.ZodString;
7417
- detail: z.ZodOptional<z.ZodString>;
7418
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7419
- }, "strip", z.ZodTypeAny, {
7420
- status: string;
7421
- title: string;
7422
- detail?: string | undefined;
7423
- meta?: Record<string, unknown> | undefined;
7424
- }, {
7425
- status: string;
7426
- title: string;
7427
- detail?: string | undefined;
7428
- meta?: Record<string, unknown> | undefined;
7429
- }>, "many">;
7430
- }, "strip", z.ZodTypeAny, {
7431
- errors: {
7432
- status: string;
7433
- title: string;
7434
- detail?: string | undefined;
7435
- meta?: Record<string, unknown> | undefined;
7436
- }[];
7437
- }, {
7438
- errors: {
7439
- status: string;
7440
- title: string;
7441
- detail?: string | undefined;
7442
- meta?: Record<string, unknown> | undefined;
7443
- }[];
7444
- }>;
7445
- 404: z.ZodObject<{
7446
- errors: z.ZodArray<z.ZodObject<{
7447
- status: z.ZodString;
7448
- title: z.ZodString;
7449
- detail: z.ZodOptional<z.ZodString>;
7450
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7451
- }, "strip", z.ZodTypeAny, {
7452
- status: string;
7453
- title: string;
7454
- detail?: string | undefined;
7455
- meta?: Record<string, unknown> | undefined;
7456
- }, {
7457
- status: string;
7458
- title: string;
7459
- detail?: string | undefined;
7460
- meta?: Record<string, unknown> | undefined;
7461
- }>, "many">;
7462
- }, "strip", z.ZodTypeAny, {
7463
- errors: {
7464
- status: string;
7465
- title: string;
7466
- detail?: string | undefined;
7467
- meta?: Record<string, unknown> | undefined;
7468
- }[];
7469
- }, {
7470
- errors: {
7471
- status: string;
7472
- title: string;
7473
- detail?: string | undefined;
7474
- meta?: Record<string, unknown> | undefined;
7475
- }[];
7476
- }>;
7477
- };
7478
- };
7479
- getUserSafetyTraining: {
7480
- pathParams: z.ZodObject<{
7481
- userId: z.ZodString;
7482
- }, "strip", z.ZodTypeAny, {
7483
- userId: string;
7484
- }, {
7485
- userId: string;
7486
- }>;
7487
- query: z.ZodObject<{
7488
- page: z.ZodDefault<z.ZodNumber>;
7489
- limit: z.ZodDefault<z.ZodNumber>;
7490
- status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "EXPIRED", "CANCELLED"]>>;
7491
- }, "strip", z.ZodTypeAny, {
7492
- page: number;
7493
- limit: number;
7494
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED" | undefined;
7495
- }, {
7496
- status?: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED" | undefined;
7497
- page?: number | undefined;
7498
- limit?: number | undefined;
7499
- }>;
7500
- summary: "Get safety training records for a specific user";
7501
- method: "GET";
7502
- path: "/users/:userId/safety/training";
7503
- responses: {
7504
- 200: z.ZodObject<{
7505
- data: z.ZodArray<z.ZodObject<{
7506
- type: z.ZodLiteral<"training-records">;
7507
- id: z.ZodString;
7508
- attributes: z.ZodObject<{
7509
- id: z.ZodString;
7510
- userId: z.ZodString;
7511
- trainingType: z.ZodString;
7512
- provider: z.ZodOptional<z.ZodString>;
7513
- completedDate: z.ZodString;
7514
- expirationDate: z.ZodOptional<z.ZodString>;
7515
- certificateNumber: z.ZodOptional<z.ZodString>;
7516
- status: z.ZodEnum<["SCHEDULED", "IN_PROGRESS", "COMPLETED", "EXPIRED", "CANCELLED"]>;
7517
- score: z.ZodOptional<z.ZodNumber>;
7518
- notes: z.ZodOptional<z.ZodString>;
7519
- attachments: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
7520
- createdAt: z.ZodString;
7521
- updatedAt: z.ZodString;
7522
- }, "strip", z.ZodTypeAny, {
7523
- id: string;
7524
- createdAt: string;
7525
- updatedAt: string;
7526
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7527
- userId: string;
7528
- attachments: string[];
7529
- completedDate: string;
7530
- trainingType: string;
7531
- notes?: string | undefined;
7532
- certificateNumber?: string | undefined;
7533
- provider?: string | undefined;
7534
- expirationDate?: string | undefined;
7535
- score?: number | undefined;
7536
- }, {
7537
- id: string;
7538
- createdAt: string;
7539
- updatedAt: string;
7540
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7541
- userId: string;
7542
- completedDate: string;
7543
- trainingType: string;
7544
- attachments?: string[] | undefined;
7545
- notes?: string | undefined;
7546
- certificateNumber?: string | undefined;
7547
- provider?: string | undefined;
7548
- expirationDate?: string | undefined;
7549
- score?: number | undefined;
7550
- }>;
7551
- }, "strip", z.ZodTypeAny, {
7552
- id: string;
7553
- type: "training-records";
7554
- attributes: {
7555
- id: string;
7556
- createdAt: string;
7557
- updatedAt: string;
7558
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7559
- userId: string;
7560
- attachments: string[];
7561
- completedDate: string;
7562
- trainingType: string;
7563
- notes?: string | undefined;
7564
- certificateNumber?: string | undefined;
7565
- provider?: string | undefined;
7566
- expirationDate?: string | undefined;
7567
- score?: number | undefined;
7568
- };
7569
- }, {
7570
- id: string;
7571
- type: "training-records";
7572
- attributes: {
7573
- id: string;
7574
- createdAt: string;
7575
- updatedAt: string;
7576
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7577
- userId: string;
7578
- completedDate: string;
7579
- trainingType: string;
7580
- attachments?: string[] | undefined;
7581
- notes?: string | undefined;
7582
- certificateNumber?: string | undefined;
7583
- provider?: string | undefined;
7584
- expirationDate?: string | undefined;
7585
- score?: number | undefined;
7586
- };
7587
- }>, "many">;
7588
- meta: z.ZodOptional<z.ZodObject<{
7589
- total: z.ZodOptional<z.ZodNumber>;
7590
- page: z.ZodOptional<z.ZodNumber>;
7591
- size: z.ZodOptional<z.ZodNumber>;
7592
- pages: z.ZodOptional<z.ZodNumber>;
7593
- hasNextPage: z.ZodOptional<z.ZodBoolean>;
7594
- hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
7595
- }, "strip", z.ZodTypeAny, {
7596
- page?: number | undefined;
7597
- total?: number | undefined;
7598
- size?: number | undefined;
7599
- pages?: number | undefined;
7600
- hasNextPage?: boolean | undefined;
7601
- hasPreviousPage?: boolean | undefined;
7602
- }, {
7603
- page?: number | undefined;
7604
- total?: number | undefined;
7605
- size?: number | undefined;
7606
- pages?: number | undefined;
7607
- hasNextPage?: boolean | undefined;
7608
- hasPreviousPage?: boolean | undefined;
7609
- }>>;
7610
- links: z.ZodOptional<z.ZodObject<{
7611
- self: z.ZodString;
7612
- first: z.ZodOptional<z.ZodString>;
7613
- last: z.ZodOptional<z.ZodString>;
7614
- prev: z.ZodOptional<z.ZodString>;
7615
- next: z.ZodOptional<z.ZodString>;
7616
- }, "strip", z.ZodTypeAny, {
7617
- self: string;
7618
- first?: string | undefined;
7619
- last?: string | undefined;
7620
- prev?: string | undefined;
7621
- next?: string | undefined;
7622
- }, {
7623
- self: string;
7624
- first?: string | undefined;
7625
- last?: string | undefined;
7626
- prev?: string | undefined;
7627
- next?: string | undefined;
7628
- }>>;
7629
- }, "strip", z.ZodTypeAny, {
7630
- data: {
7631
- id: string;
7632
- type: "training-records";
7633
- attributes: {
7634
- id: string;
7635
- createdAt: string;
7636
- updatedAt: string;
7637
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7638
- userId: string;
7639
- attachments: string[];
7640
- completedDate: string;
7641
- trainingType: string;
7642
- notes?: string | undefined;
7643
- certificateNumber?: string | undefined;
7644
- provider?: string | undefined;
7645
- expirationDate?: string | undefined;
7646
- score?: number | undefined;
7647
- };
7648
- }[];
7649
- meta?: {
7650
- page?: number | undefined;
7651
- total?: number | undefined;
7652
- size?: number | undefined;
7653
- pages?: number | undefined;
7654
- hasNextPage?: boolean | undefined;
7655
- hasPreviousPage?: boolean | undefined;
7656
- } | undefined;
7657
- links?: {
7658
- self: string;
7659
- first?: string | undefined;
7660
- last?: string | undefined;
7661
- prev?: string | undefined;
7662
- next?: string | undefined;
7663
- } | undefined;
7664
- }, {
7665
- data: {
7666
- id: string;
7667
- type: "training-records";
7668
- attributes: {
7669
- id: string;
7670
- createdAt: string;
7671
- updatedAt: string;
7672
- status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "EXPIRED" | "SCHEDULED";
7673
- userId: string;
7674
- completedDate: string;
7675
- trainingType: string;
7676
- attachments?: string[] | undefined;
7677
- notes?: string | undefined;
7678
- certificateNumber?: string | undefined;
7679
- provider?: string | undefined;
7680
- expirationDate?: string | undefined;
7681
- score?: number | undefined;
7682
- };
7683
- }[];
7684
- meta?: {
7685
- page?: number | undefined;
7686
- total?: number | undefined;
7687
- size?: number | undefined;
7688
- pages?: number | undefined;
7689
- hasNextPage?: boolean | undefined;
7690
- hasPreviousPage?: boolean | undefined;
7691
- } | undefined;
7692
- links?: {
7693
- self: string;
7694
- first?: string | undefined;
7695
- last?: string | undefined;
7696
- prev?: string | undefined;
7697
- next?: string | undefined;
7698
- } | undefined;
7699
- }>;
7700
- 403: z.ZodObject<{
7701
- errors: z.ZodArray<z.ZodObject<{
7702
- status: z.ZodString;
7703
- title: z.ZodString;
7704
- detail: z.ZodOptional<z.ZodString>;
7705
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7706
- }, "strip", z.ZodTypeAny, {
7707
- status: string;
7708
- title: string;
7709
- detail?: string | undefined;
7710
- meta?: Record<string, unknown> | undefined;
7711
- }, {
7712
- status: string;
7713
- title: string;
7714
- detail?: string | undefined;
7715
- meta?: Record<string, unknown> | undefined;
7716
- }>, "many">;
7717
- }, "strip", z.ZodTypeAny, {
7718
- errors: {
7719
- status: string;
7720
- title: string;
7721
- detail?: string | undefined;
7722
- meta?: Record<string, unknown> | undefined;
7723
- }[];
7724
- }, {
7725
- errors: {
7726
- status: string;
7727
- title: string;
7728
- detail?: string | undefined;
7729
- meta?: Record<string, unknown> | undefined;
7730
- }[];
7731
- }>;
7732
- 404: z.ZodObject<{
7733
- errors: z.ZodArray<z.ZodObject<{
7734
- status: z.ZodString;
7735
- title: z.ZodString;
7736
- detail: z.ZodOptional<z.ZodString>;
7737
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7738
- }, "strip", z.ZodTypeAny, {
7739
- status: string;
7740
- title: string;
7741
- detail?: string | undefined;
7742
- meta?: Record<string, unknown> | undefined;
7743
- }, {
7744
- status: string;
7745
- title: string;
7746
- detail?: string | undefined;
7747
- meta?: Record<string, unknown> | undefined;
7748
- }>, "many">;
7749
- }, "strip", z.ZodTypeAny, {
7750
- errors: {
7751
- status: string;
7752
- title: string;
7753
- detail?: string | undefined;
7754
- meta?: Record<string, unknown> | undefined;
7755
- }[];
7756
- }, {
7757
- errors: {
7758
- status: string;
7759
- title: string;
7760
- detail?: string | undefined;
7761
- meta?: Record<string, unknown> | undefined;
7762
- }[];
7763
- }>;
7764
- };
7765
- };
7766
- scheduleSafetyTraining: {
7767
- summary: "Schedule safety training for multiple users";
7768
- method: "POST";
7769
- body: z.ZodObject<{
7770
- trainingType: z.ZodString;
7771
- scheduledDate: z.ZodString;
7772
- participants: z.ZodArray<z.ZodString, "many">;
7773
- instructor: z.ZodOptional<z.ZodString>;
7774
- location: z.ZodOptional<z.ZodString>;
7775
- duration: z.ZodNumber;
7776
- maxParticipants: z.ZodOptional<z.ZodNumber>;
7777
- description: z.ZodString;
7778
- }, "strip", z.ZodTypeAny, {
7779
- description: string;
7780
- duration: number;
7781
- scheduledDate: string;
7782
- trainingType: string;
7783
- participants: string[];
7784
- location?: string | undefined;
7785
- instructor?: string | undefined;
7786
- maxParticipants?: number | undefined;
7787
- }, {
7788
- description: string;
7789
- duration: number;
7790
- scheduledDate: string;
7791
- trainingType: string;
7792
- participants: string[];
7793
- location?: string | undefined;
7794
- instructor?: string | undefined;
7795
- maxParticipants?: number | undefined;
7796
- }>;
7797
- path: "/safety/training/schedule";
7798
- responses: {
7799
- 201: z.ZodObject<{
7800
- data: z.ZodObject<{
7801
- trainingScheduleId: z.ZodString;
7802
- message: z.ZodString;
7803
- participantsScheduled: z.ZodNumber;
7804
- }, "strip", z.ZodTypeAny, {
7805
- message: string;
7806
- trainingScheduleId: string;
7807
- participantsScheduled: number;
7808
- }, {
7809
- message: string;
7810
- trainingScheduleId: string;
7811
- participantsScheduled: number;
7812
- }>;
7813
- }, "strip", z.ZodTypeAny, {
7814
- data: {
7815
- message: string;
7816
- trainingScheduleId: string;
7817
- participantsScheduled: number;
7818
- };
7819
- }, {
7820
- data: {
7821
- message: string;
7822
- trainingScheduleId: string;
7823
- participantsScheduled: number;
7824
- };
7825
- }>;
7826
- 400: z.ZodObject<{
7827
- errors: z.ZodArray<z.ZodObject<{
7828
- status: z.ZodString;
7829
- title: z.ZodString;
7830
- detail: z.ZodOptional<z.ZodString>;
7831
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7832
- }, "strip", z.ZodTypeAny, {
7833
- status: string;
7834
- title: string;
7835
- detail?: string | undefined;
7836
- meta?: Record<string, unknown> | undefined;
7837
- }, {
7838
- status: string;
7839
- title: string;
7840
- detail?: string | undefined;
7841
- meta?: Record<string, unknown> | undefined;
7842
- }>, "many">;
7843
- }, "strip", z.ZodTypeAny, {
7844
- errors: {
7845
- status: string;
7846
- title: string;
7847
- detail?: string | undefined;
7848
- meta?: Record<string, unknown> | undefined;
7849
- }[];
7850
- }, {
7851
- errors: {
7852
- status: string;
7853
- title: string;
7854
- detail?: string | undefined;
7855
- meta?: Record<string, unknown> | undefined;
7856
- }[];
7857
- }>;
7858
- 403: z.ZodObject<{
7859
- errors: z.ZodArray<z.ZodObject<{
7860
- status: z.ZodString;
7861
- title: z.ZodString;
7862
- detail: z.ZodOptional<z.ZodString>;
7863
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7864
- }, "strip", z.ZodTypeAny, {
7865
- status: string;
7866
- title: string;
7867
- detail?: string | undefined;
7868
- meta?: Record<string, unknown> | undefined;
7869
- }, {
7870
- status: string;
7871
- title: string;
7872
- detail?: string | undefined;
7873
- meta?: Record<string, unknown> | undefined;
7874
- }>, "many">;
7875
- }, "strip", z.ZodTypeAny, {
7876
- errors: {
7877
- status: string;
7878
- title: string;
7879
- detail?: string | undefined;
7880
- meta?: Record<string, unknown> | undefined;
7881
- }[];
7882
- }, {
7883
- errors: {
7884
- status: string;
7885
- title: string;
7886
- detail?: string | undefined;
7887
- meta?: Record<string, unknown> | undefined;
7888
- }[];
7889
- }>;
7890
- };
7891
- };
7892
- getSafetyStatistics: {
7893
- query: z.ZodObject<{
7894
- startDate: z.ZodString;
7895
- endDate: z.ZodString;
7896
- projectId: z.ZodOptional<z.ZodString>;
7897
- includeSubcontractors: z.ZodDefault<z.ZodBoolean>;
7898
- }, "strip", z.ZodTypeAny, {
7899
- startDate: string;
7900
- endDate: string;
7901
- includeSubcontractors: boolean;
7902
- projectId?: string | undefined;
7903
- }, {
7904
- startDate: string;
7905
- endDate: string;
7906
- projectId?: string | undefined;
7907
- includeSubcontractors?: boolean | undefined;
7908
- }>;
7909
- summary: "Get comprehensive safety statistics and analytics";
7910
- method: "GET";
7911
- path: "/safety/statistics";
7912
- responses: {
7913
- 200: z.ZodObject<{
7914
- data: z.ZodObject<{
7915
- incidents: z.ZodObject<{
7916
- total: z.ZodNumber;
7917
- byType: z.ZodRecord<z.ZodString, z.ZodNumber>;
7918
- bySeverity: z.ZodRecord<z.ZodString, z.ZodNumber>;
7919
- byStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
7920
- byProject: z.ZodArray<z.ZodObject<{
7921
- projectId: z.ZodString;
7922
- projectName: z.ZodString;
7923
- incidentCount: z.ZodNumber;
7924
- }, "strip", z.ZodTypeAny, {
7925
- projectId: string;
7926
- projectName: string;
7927
- incidentCount: number;
7928
- }, {
7929
- projectId: string;
7930
- projectName: string;
7931
- incidentCount: number;
7932
- }>, "many">;
7933
- trend: z.ZodArray<z.ZodObject<{
7934
- date: z.ZodString;
7935
- count: z.ZodNumber;
7936
- }, "strip", z.ZodTypeAny, {
7937
- date: string;
7938
- count: number;
7939
- }, {
7940
- date: string;
7941
- count: number;
7942
- }>, "many">;
7943
- }, "strip", z.ZodTypeAny, {
7944
- total: number;
7945
- byType: Record<string, number>;
7946
- bySeverity: Record<string, number>;
7947
- trend: {
7948
- date: string;
7949
- count: number;
7950
- }[];
7951
- byStatus: Record<string, number>;
7952
- byProject: {
7953
- projectId: string;
7954
- projectName: string;
7955
- incidentCount: number;
7956
- }[];
7957
- }, {
7958
- total: number;
7959
- byType: Record<string, number>;
7960
- bySeverity: Record<string, number>;
7961
- trend: {
7962
- date: string;
7963
- count: number;
7964
- }[];
7965
- byStatus: Record<string, number>;
7966
- byProject: {
7967
- projectId: string;
7968
- projectName: string;
7969
- incidentCount: number;
7970
- }[];
7971
- }>;
7972
- inspections: z.ZodObject<{
7973
- total: z.ZodNumber;
7974
- completed: z.ZodNumber;
7975
- pending: z.ZodNumber;
7976
- failed: z.ZodNumber;
7977
- averageScore: z.ZodNumber;
7978
- byType: z.ZodRecord<z.ZodString, z.ZodNumber>;
7979
- }, "strip", z.ZodTypeAny, {
7980
- total: number;
7981
- byType: Record<string, number>;
7982
- pending: number;
7983
- failed: number;
7984
- completed: number;
7985
- averageScore: number;
7986
- }, {
7987
- total: number;
7988
- byType: Record<string, number>;
7989
- pending: number;
7990
- failed: number;
7991
- completed: number;
7992
- averageScore: number;
7993
- }>;
7994
- training: z.ZodObject<{
7995
- totalRecords: z.ZodNumber;
7996
- completedTrainings: z.ZodNumber;
7997
- expiredCertifications: z.ZodNumber;
7998
- complianceRate: z.ZodNumber;
7999
- averageScore: z.ZodNumber;
8000
- upcomingTraining: z.ZodNumber;
8001
- }, "strip", z.ZodTypeAny, {
8002
- complianceRate: number;
8003
- averageScore: number;
8004
- totalRecords: number;
8005
- completedTrainings: number;
8006
- expiredCertifications: number;
8007
- upcomingTraining: number;
8008
- }, {
8009
- complianceRate: number;
8010
- averageScore: number;
8011
- totalRecords: number;
8012
- completedTrainings: number;
8013
- expiredCertifications: number;
8014
- upcomingTraining: number;
8015
- }>;
8016
- metrics: z.ZodObject<{
8017
- lostTimeIncidentRate: z.ZodNumber;
8018
- totalRecordableIncidentRate: z.ZodNumber;
8019
- daysSinceLastIncident: z.ZodNumber;
8020
- safetyScore: z.ZodNumber;
8021
- nearMissRatio: z.ZodNumber;
8022
- complianceScore: z.ZodNumber;
8023
- }, "strip", z.ZodTypeAny, {
8024
- daysSinceLastIncident: number;
8025
- lostTimeIncidentRate: number;
8026
- totalRecordableIncidentRate: number;
8027
- safetyScore: number;
8028
- nearMissRatio: number;
8029
- complianceScore: number;
8030
- }, {
8031
- daysSinceLastIncident: number;
8032
- lostTimeIncidentRate: number;
8033
- totalRecordableIncidentRate: number;
8034
- safetyScore: number;
8035
- nearMissRatio: number;
8036
- complianceScore: number;
8037
- }>;
8038
- }, "strip", z.ZodTypeAny, {
8039
4705
  incidents: {
8040
4706
  total: number;
8041
4707
  byType: Record<string, number>;
@@ -8055,48 +4721,8 @@ export declare const safetyContract: {
8055
4721
  total: number;
8056
4722
  byType: Record<string, number>;
8057
4723
  pending: number;
8058
- failed: number;
8059
4724
  completed: number;
8060
- averageScore: number;
8061
- };
8062
- metrics: {
8063
- daysSinceLastIncident: number;
8064
- lostTimeIncidentRate: number;
8065
- totalRecordableIncidentRate: number;
8066
- safetyScore: number;
8067
- nearMissRatio: number;
8068
- complianceScore: number;
8069
- };
8070
- training: {
8071
- complianceRate: number;
8072
- averageScore: number;
8073
- totalRecords: number;
8074
- completedTrainings: number;
8075
- expiredCertifications: number;
8076
- upcomingTraining: number;
8077
- };
8078
- }, {
8079
- incidents: {
8080
- total: number;
8081
- byType: Record<string, number>;
8082
- bySeverity: Record<string, number>;
8083
- trend: {
8084
- date: string;
8085
- count: number;
8086
- }[];
8087
- byStatus: Record<string, number>;
8088
- byProject: {
8089
- projectId: string;
8090
- projectName: string;
8091
- incidentCount: number;
8092
- }[];
8093
- };
8094
- inspections: {
8095
- total: number;
8096
- byType: Record<string, number>;
8097
- pending: number;
8098
4725
  failed: number;
8099
- completed: number;
8100
4726
  averageScore: number;
8101
4727
  };
8102
4728
  metrics: {
@@ -8137,8 +4763,8 @@ export declare const safetyContract: {
8137
4763
  total: number;
8138
4764
  byType: Record<string, number>;
8139
4765
  pending: number;
8140
- failed: number;
8141
4766
  completed: number;
4767
+ failed: number;
8142
4768
  averageScore: number;
8143
4769
  };
8144
4770
  metrics: {
@@ -8179,8 +4805,8 @@ export declare const safetyContract: {
8179
4805
  total: number;
8180
4806
  byType: Record<string, number>;
8181
4807
  pending: number;
8182
- failed: number;
8183
4808
  completed: number;
4809
+ failed: number;
8184
4810
  averageScore: number;
8185
4811
  };
8186
4812
  metrics: {
@@ -9017,140 +5643,5 @@ export declare const safetyContract: {
9017
5643
  }>;
9018
5644
  };
9019
5645
  };
9020
- exportSafetyReport: {
9021
- summary: "Export comprehensive safety report";
9022
- method: "POST";
9023
- body: z.ZodObject<{
9024
- reportType: z.ZodEnum<["INCIDENTS", "INSPECTIONS", "TRAINING", "COMPLIANCE", "COMPREHENSIVE"]>;
9025
- format: z.ZodEnum<["PDF", "EXCEL", "CSV"]>;
9026
- dateRange: z.ZodObject<{
9027
- startDate: z.ZodString;
9028
- endDate: z.ZodString;
9029
- }, "strip", z.ZodTypeAny, {
9030
- startDate: string;
9031
- endDate: string;
9032
- }, {
9033
- startDate: string;
9034
- endDate: string;
9035
- }>;
9036
- projectIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9037
- includePhotos: z.ZodDefault<z.ZodBoolean>;
9038
- includeDetails: z.ZodDefault<z.ZodBoolean>;
9039
- }, "strip", z.ZodTypeAny, {
9040
- format: "PDF" | "EXCEL" | "CSV";
9041
- includeDetails: boolean;
9042
- reportType: "INCIDENTS" | "COMPLIANCE" | "INSPECTIONS" | "TRAINING" | "COMPREHENSIVE";
9043
- dateRange: {
9044
- startDate: string;
9045
- endDate: string;
9046
- };
9047
- includePhotos: boolean;
9048
- projectIds?: string[] | undefined;
9049
- }, {
9050
- format: "PDF" | "EXCEL" | "CSV";
9051
- reportType: "INCIDENTS" | "COMPLIANCE" | "INSPECTIONS" | "TRAINING" | "COMPREHENSIVE";
9052
- dateRange: {
9053
- startDate: string;
9054
- endDate: string;
9055
- };
9056
- includeDetails?: boolean | undefined;
9057
- projectIds?: string[] | undefined;
9058
- includePhotos?: boolean | undefined;
9059
- }>;
9060
- path: "/safety/export";
9061
- responses: {
9062
- 200: z.ZodObject<{
9063
- data: z.ZodObject<{
9064
- exportId: z.ZodString;
9065
- downloadUrl: z.ZodString;
9066
- expiresAt: z.ZodString;
9067
- }, "strip", z.ZodTypeAny, {
9068
- downloadUrl: string;
9069
- exportId: string;
9070
- expiresAt: string;
9071
- }, {
9072
- downloadUrl: string;
9073
- exportId: string;
9074
- expiresAt: string;
9075
- }>;
9076
- }, "strip", z.ZodTypeAny, {
9077
- data: {
9078
- downloadUrl: string;
9079
- exportId: string;
9080
- expiresAt: string;
9081
- };
9082
- }, {
9083
- data: {
9084
- downloadUrl: string;
9085
- exportId: string;
9086
- expiresAt: string;
9087
- };
9088
- }>;
9089
- 400: z.ZodObject<{
9090
- errors: z.ZodArray<z.ZodObject<{
9091
- status: z.ZodString;
9092
- title: z.ZodString;
9093
- detail: z.ZodOptional<z.ZodString>;
9094
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9095
- }, "strip", z.ZodTypeAny, {
9096
- status: string;
9097
- title: string;
9098
- detail?: string | undefined;
9099
- meta?: Record<string, unknown> | undefined;
9100
- }, {
9101
- status: string;
9102
- title: string;
9103
- detail?: string | undefined;
9104
- meta?: Record<string, unknown> | undefined;
9105
- }>, "many">;
9106
- }, "strip", z.ZodTypeAny, {
9107
- errors: {
9108
- status: string;
9109
- title: string;
9110
- detail?: string | undefined;
9111
- meta?: Record<string, unknown> | undefined;
9112
- }[];
9113
- }, {
9114
- errors: {
9115
- status: string;
9116
- title: string;
9117
- detail?: string | undefined;
9118
- meta?: Record<string, unknown> | undefined;
9119
- }[];
9120
- }>;
9121
- 403: z.ZodObject<{
9122
- errors: z.ZodArray<z.ZodObject<{
9123
- status: z.ZodString;
9124
- title: z.ZodString;
9125
- detail: z.ZodOptional<z.ZodString>;
9126
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9127
- }, "strip", z.ZodTypeAny, {
9128
- status: string;
9129
- title: string;
9130
- detail?: string | undefined;
9131
- meta?: Record<string, unknown> | undefined;
9132
- }, {
9133
- status: string;
9134
- title: string;
9135
- detail?: string | undefined;
9136
- meta?: Record<string, unknown> | undefined;
9137
- }>, "many">;
9138
- }, "strip", z.ZodTypeAny, {
9139
- errors: {
9140
- status: string;
9141
- title: string;
9142
- detail?: string | undefined;
9143
- meta?: Record<string, unknown> | undefined;
9144
- }[];
9145
- }, {
9146
- errors: {
9147
- status: string;
9148
- title: string;
9149
- detail?: string | undefined;
9150
- meta?: Record<string, unknown> | undefined;
9151
- }[];
9152
- }>;
9153
- };
9154
- };
9155
5646
  };
9156
5647
  //# sourceMappingURL=safety.d.ts.map