/* Options: Date: 2026-08-02 02:50:01 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: BumpWidgetConfigurationVersion.* //ExcludeTypes: //DefaultImports: */ // @ts-nocheck export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta?: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message?: string; // @DataMember(Order=3) public StackTrace?: string; // @DataMember(Order=4) public Errors?: ResponseError[]; // @DataMember(Order=5) public Meta?: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class WidgetConfigurationResponse { public Id: string; public CompanyId: string; public Name: string; public Slug?: string; public Description?: string; public Configuration: string; public SchemaVersion: number; public IsHomepageDefault: boolean; public CreatedDate: string; public UpdatedDate?: string; public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @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") export class BumpWidgetConfigurationVersion implements IReturn, ICompany { /** @description 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 CompanyId?: string; /** @description The widget configuration id (6-character NanoID). */ // @ApiMember(Description="The widget configuration id (6-character NanoID).", IsRequired=true, ParameterType="path") public Id: string; /** @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. */ // @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 UseFactoryDefaults: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'BumpWidgetConfigurationVersion'; } public getMethod() { return 'PUT'; } public createResponse() { return new WidgetConfigurationResponse(); } }