/* Options: Date: 2026-02-16 13:32:56 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api-staging.bookmore.com //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: BookingLogQuery.* //ExcludeTypes: //DefaultImports: */ // @ts-nocheck export interface IReturn { createResponse(): T; } // @DataContract export class QueryBase { // @DataMember(Order=1) public Skip?: number; // @DataMember(Order=2) public Take?: number; // @DataMember(Order=3) public OrderBy?: string; // @DataMember(Order=4) public OrderByDesc?: string; // @DataMember(Order=5) public Include?: string; // @DataMember(Order=6) public Fields?: string; // @DataMember(Order=7) public Meta?: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class QueryDb extends QueryBase { public constructor(init?: Partial>) { super(init); (Object as any).assign(this, init); } } export class BaseModel { public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class BookingLogEventType extends BaseModel { // @Required() public Name: string; // @Required() public Description: string; public ModifiedDate?: string; // @Required() public Id: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class BookingLog extends BaseModel { // @References("typeof(BokaMera.API.ServiceModel.Db.BookingLogEventType)") public EventTypeId: number; public EventType: BookingLogEventType; // @Required() public CompanyId: string; // @Required() public BookingId: number; public Id: number; public Comments?: string; public UserId?: string; // @Required() public Created: string; public ModifiedDate?: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @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); } } // @DataContract export class QueryResponse { // @DataMember(Order=1) public Offset: number; // @DataMember(Order=2) public Total: number; // @DataMember(Order=3) public Results: T[] = []; // @DataMember(Order=4) public Meta?: { [index:string]: string; }; // @DataMember(Order=5) public ResponseStatus?: ResponseStatus; public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export class BookingLogEventTypeResponse { /** @description The event type id */ // @ApiMember(Description="The event type id") public Id: number; /** @description The event type name */ // @ApiMember(Description="The event type name") public Name: string; /** @description The event type description */ // @ApiMember(Description="The event type description") public Description: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class BookingLogQueryResponse { /** @description The booking log id */ // @ApiMember(Description="The booking log id") public Id: number; /** @description The booking id */ // @ApiMember(Description="The booking id") public BookingId: number; /** @description The type of event */ // @ApiMember(Description="The type of event") public EventTypeId: number; /** @description The type of event */ // @ApiMember(Description="The type of event") public EventType: BookingLogEventTypeResponse; /** @description Comments that could be added to the event log item */ // @ApiMember(Description="Comments that could be added to the event log item") public Comments: string; /** @description The user created the event */ // @ApiMember(Description="The user created the event") public UserName: string; /** @description The date when the event occurred */ // @ApiMember(Description="The date when the event occurred") public Created: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/bookinglog", "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") export class BookingLogQuery extends QueryDb implements IReturn> { /** @description Enter the company and booking id you want to see log for, if blank company id and you are an admin, your company id will be used */ // @ApiMember(Description="Enter the company and booking id you want to see log for, if blank company id and you are an admin, your company id will be used", IsRequired=true, ParameterType="query") public CompanyId: string; /** @description Enter the booking id you want to get the log */ // @ApiMember(Description="Enter the booking id you want to get the log", IsRequired=true, ParameterType="query") public BookingId: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'BookingLogQuery'; } public getMethod() { return 'GET'; } public createResponse() { return new QueryResponse(); } }