BokaMera.API.Host

<back to all web services

HomepageSchedulerSettingsQuery

The following routes are available for this service:
GET/homepage/scheduler/settingsGet homepage scheduler settings
"use strict";
export class HomepageSchedulerServiceResponse {
    /** @param {{Id?:number,Name?:string,Description?:string,ImageUrl?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {number}
     * @description The service id. */
    Id;
    /**
     * @type {string}
     * @description The service name. */
    Name;
    /**
     * @type {string}
     * @description The service description. */
    Description;
    /**
     * @type {string}
     * @description The service image url. */
    ImageUrl;
}
export class HomepageSchedulerResourceResponse {
    /** @param {{Id?:number,Name?:string,Description?:string,ImageUrl?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {number}
     * @description The resource id. */
    Id;
    /**
     * @type {string}
     * @description The resource name. */
    Name;
    /**
     * @type {string}
     * @description The resource description. */
    Description;
    /**
     * @type {string}
     * @description The resource image url. */
    ImageUrl;
}
export class HomepageSchedulerFieldResponse {
    /** @param {{Id?:number,ShowOnBooking?:boolean,ShowOnTooltip?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {number}
     * @description The field id. */
    Id;
    /**
     * @type {boolean}
     * @description If the field should be shown on booking. */
    ShowOnBooking;
    /**
     * @type {boolean}
     * @description If the field should be shown on tooltip. */
    ShowOnTooltip;
}
export class HomepageSchedulerFieldOptionsResponse {
    /** @param {{Id?:number,Name?:string,Description?:string,SortOrder?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {number}
     * @description The field id. */
    Id;
    /**
     * @type {string}
     * @description The field name. */
    Name;
    /**
     * @type {string}
     * @description The field description. */
    Description;
    /**
     * @type {number}
     * @description The field sort order when listing. */
    SortOrder;
}
export class ScheduleViewResponse {
    /** @param {{Id?:number,Name?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Id;
    /** @type {string} */
    Name;
}
export class HomepageSchedulerSettingsQueryResponse {
    /** @param {{CompanyId?:string,Active?:boolean,ScheduleViewId?:number,ScheduleTimeSlotMinutes?:number,StartTime?:string,EndTime?:string,ShowTimeExceptions?:boolean,EnableBooking?:boolean,Services?:HomepageSchedulerServiceResponse[],Resources?:HomepageSchedulerResourceResponse[],Fields?:HomepageSchedulerFieldResponse[],FieldOptions?:HomepageSchedulerFieldOptionsResponse[],ScheduleViewOptions?:ScheduleViewResponse[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The company id. */
    CompanyId;
    /**
     * @type {boolean}
     * @description If the user schedule is activated. */
    Active;
    /**
     * @type {number}
     * @description If the user schedule views id. */
    ScheduleViewId;
    /**
     * @type {number}
     * @description If the user schedule time slots in minutes. */
    ScheduleTimeSlotMinutes;
    /**
     * @type {?string}
     * @description If the user schedule time start time. */
    StartTime;
    /**
     * @type {?string}
     * @description If the user schedule time end time. */
    EndTime;
    /**
     * @type {boolean}
     * @description If the user schedule should contain time exceptions. */
    ShowTimeExceptions;
    /**
     * @type {boolean}
     * @description If allow booking in the scheduler. */
    EnableBooking;
    /**
     * @type {HomepageSchedulerServiceResponse[]}
     * @description The homepage schedule services that are selected */
    Services;
    /**
     * @type {HomepageSchedulerResourceResponse[]}
     * @description The homepage schedule resources that are selected */
    Resources;
    /**
     * @type {HomepageSchedulerFieldResponse[]}
     * @description The homepage schedule fields that are selected */
    Fields;
    /**
     * @type {HomepageSchedulerFieldOptionsResponse[]}
     * @description The homepage schedule fields select from */
    FieldOptions;
    /**
     * @type {ScheduleViewResponse[]}
     * @description The available schedule view options to choose from */
    ScheduleViewOptions;
}
export class HomepageSchedulerSettingsQuery {
    /** @param {{CompanyId?:string,IncludeServices?:boolean,IncludeResources?:boolean,IncludeFields?:boolean,IncludeServiceOptions?:boolean,IncludeResourceOptions?:boolean,IncludeFieldOptions?:boolean,IncludeScheduleViewOptions?:boolean,SitePath?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {?string}
     * @description Enter the company you want to see news for, if blank and you are an admin, your company id will be used */
    CompanyId;
    /**
     * @type {boolean}
     * @description If you want to include the services that is connected */
    IncludeServices;
    /**
     * @type {boolean}
     * @description If you want to include the resources that is connected */
    IncludeResources;
    /**
     * @type {boolean}
     * @description If you want to include the scheduler fields that is connected */
    IncludeFields;
    /**
     * @type {boolean}
     * @description If you want to include the service to select from */
    IncludeServiceOptions;
    /**
     * @type {boolean}
     * @description If you want to include the resources to select from */
    IncludeResourceOptions;
    /**
     * @type {boolean}
     * @description If you want to include the scheduler fields to select from */
    IncludeFieldOptions;
    /**
     * @type {boolean}
     * @description If you want to include the schedule views to select from */
    IncludeScheduleViewOptions;
    /**
     * @type {string}
     * @description The homeage sitepath. */
    SitePath;
}

JavaScript HomepageSchedulerSettingsQuery DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /homepage/scheduler/settings HTTP/1.1 
Host: testapi.bokamera.se 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Active":false,"ScheduleViewId":0,"ScheduleTimeSlotMinutes":0,"StartTime":"00:00:00","EndTime":"00:00:00","ShowTimeExceptions":false,"EnableBooking":false,"Services":[{"Id":0,"Name":"String","Description":"String"}],"Resources":[{"Id":0,"Name":"String","Description":"String"}],"Fields":[{"Id":0,"ShowOnBooking":false,"ShowOnTooltip":false}],"FieldOptions":[{"Id":0,"Name":"String","Description":"String","SortOrder":0}],"ScheduleViewOptions":[{"Id":0,"Name":"String"}]}