/* Options: Date: 2026-08-02 02:12:16 SwiftVersion: 6.0 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: BumpWidgetConfigurationVersion.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/widget/configuration/{Id}/bumpversion", "PUT") // @ApiResponse(Description="Not the homepage default, next schema version doesn't exist, or (when UseFactoryDefaults) the next version has no factory default authored yet", StatusCode=400) // @ApiResponse(Description="Returned if the configuration was not found", StatusCode=404) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") public class BumpWidgetConfigurationVersion : IReturn, ICompany, Codable { public typealias Return = WidgetConfigurationResponse /** * 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? /** * The widget configuration id (6-character NanoID). */ // @ApiMember(Description="The widget configuration id (6-character NanoID).", IsRequired=true, ParameterType="path") public var id:String? /** * When true, overwrites Configuration with the next schema version's factory-default JSON. When false, only SchemaVersion is moved and the existing Configuration is preserved unvalidated against the new schema. */ // @ApiMember(Description="When true, overwrites Configuration with the next schema version's factory-default JSON. When false, only SchemaVersion is moved and the existing Configuration is preserved unvalidated against the new schema.", IsRequired=true) public var useFactoryDefaults:Bool? required public init(){} } 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 isHomepageDefault:Bool? public var createdDate:Date? public var updatedDate:Date? public var responseStatus:ResponseStatus? required public init(){} } public protocol ICompany { var companyId:String? { get set } }