/* Options: Date: 2026-05-14 01:16:43 SwiftVersion: 6.0 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: WidgetConfigurationQuery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/widget/configuration", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") public class WidgetConfigurationQuery : IReturn, ICompany, Codable { public typealias Return = QueryResponse /** * 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? /** * Optional slug to fetch a single configuration (e.g., 'hairsalon-001'). If provided, ignores other filter parameters. */ // @ApiMember(Description="Optional slug to fetch a single configuration (e.g., 'hairsalon-001'). If provided, ignores other filter parameters.") public var slug:String? /** * Filter by schema version. */ // @ApiMember(Description="Filter by schema version.") public var schemaVersion:Int? /** * Number of records to skip */ // @ApiMember(Description="Number of records to skip") public var skip:Int? /** * Number of records to take */ // @ApiMember(Description="Number of records to take") public var take:Int? /** * Sort field */ // @ApiMember(Description="Sort field") public var orderBy:String? required public init(){} } public protocol ICompany { var companyId:String? { get set } } public class WidgetConfigurationResponse : Codable { public var id:String? public var companyId:String? public var name:String? public var slug:String? public var Description:String? public var configuration:String? public var schemaVersion:Int? public var createdDate:Date? public var updatedDate:Date? public var responseStatus:ResponseStatus? required public init(){} }