/* Options: Date: 2026-08-01 03:17:30 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: SafetyComplianceRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/v1/safety/compliance", "GET,OPTIONS") public class SafetyComplianceRequest : IReturn, Codable { public typealias Return = SafetyComplianceResponse public var days:Int? required public init(){} } public class SafetyComplianceResponse : Codable { public var responseStatus:ResponseStatus? public var kpis:SafetyComplianceKpis? public var projects:[SafetyComplianceProject] = [] public var trend:[SafetyTrendWeek] = [] public var incidentMix:[SafetyIncidentMixRow] = [] public var missingTalks:[SafetyMissingTalk] = [] required public init(){} } public class SafetyComplianceKpis : Codable { public var participationPct:Int? public var openIncidents:Int? public var overdueCAs:Int? public var recordables12mo:Int? public var daysWithoutRecordable:Int? public var projectsWithTalkToday:Int? public var projectsWithCrewToday:Int? required public init(){} } public class SafetyComplianceProject : Codable { public var projectID:Int? public var projectUID:String? public var projectName:String? public var branch:String? public var crewCount:Int? public var hasTalkToday:Bool? public var talkAckPct:Int? public var openIncidents:Int? public var overdueCAs:Int? public var recordables12mo:Int? required public init(){} } public class SafetyTrendWeek : Codable { public var weekStart:String? public var acks:Int? public var roster:Int? required public init(){} } public class SafetyIncidentMixRow : Codable { public var severity:String? public var cnt:Int? required public init(){} } public class SafetyMissingTalk : Codable { public var projectID:Int? public var projectUID:String? public var projectName:String? public var crewCount:Int? required public init(){} }