/* Options: Date: 2024-07-03 12:39:33 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: CustomFieldSlotsQuery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/customfields/slots", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) // @ValidateRequest(Validator="IsAuthenticated") public class CustomFieldSlotsQuery : IReturn, ICompany, Codable { public typealias Return = CustomFieldSlotsQueryResponse /** * Company id to find custom fields for */ // @ApiMember(Description="Company id to find custom fields for", ParameterType="query") public var companyId:String? /** * Table to which the field belongs */ // @ApiMember(Description="Table to which the field belongs", IsRequired=true) public var table:String /** * If you want to receive only free slots (not occupied). */ // @ApiMember(Description="If you want to receive only free slots (not occupied).") public var freeSlots:Bool? required public init(){} } public class CustomFieldSlotsQueryResponse : Codable { /** * Table to which the field belongs */ // @ApiMember(Description="Table to which the field belongs") public var table:String /** * Custom field id */ // @ApiMember(Description="Custom field id") public var id:Int /** * Custom field column name */ // @ApiMember(Description="Custom field column name") public var name:String /** * The field datatype */ // @ApiMember(Description="The field datatype") public var datatype:String /** * If the slot is free or occupied */ // @ApiMember(Description="If the slot is free or occupied") public var occupied:Bool required public init(){} } public protocol ICompany { var companyId:String? { get set } }