/* Options: Date: 2026-04-26 18:43:37 SwiftVersion: 6.0 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: QueryAxemaUserSyncJobs.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/codelock/axema/usersync", "GET") // @ValidateRequest(Validator="IsAuthenticated") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privileges to call this service", StatusCode=403) public class QueryAxemaUserSyncJobs : IReturn, ICompany, Codable { public typealias Return = QueryAxemaUserSyncJobsResponse /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") public var companyId:String? /** * Filter by status (0=Pending, 1=Processing, 2=Completed, 3=Failed). */ // @ApiMember(Description="Filter by status (0=Pending, 1=Processing, 2=Completed, 3=Failed).") public var status:AxemaUserSyncStatus? required public init(){} } public class QueryAxemaUserSyncJobsResponse : Codable { public var results:[AxemaUserSyncJobResponse] = [] public var responseStatus:ResponseStatus? required public init(){} } public protocol ICompany { var companyId:String? { get set } } public enum AxemaUserSyncStatus : String, Codable { case Pending case Processing case Completed case Failed } public class AxemaUserSyncJobResponse : Codable { public var id:String? public var companyId:String? public var status:Int? public var statusName:String? public var usersFound:Int? public var usersCreated:Int? public var usersUpdated:Int? public var errorMessage:String? public var createdDate:Date? public var updatedDate:Date? required public init(){} }