(* Options: Date: 2024-11-21 16:47:47 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: UpdateResourceTimeException.* //ExcludeTypes: //InitializeCollections: True //AddNamespaces: *) namespace BokaMera.API.ServiceModel.Dtos open System open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations open System.Globalization open ServiceStack.Data open System.IO [] type ICompany = abstract CompanyId:Nullable with get,set type CollidingBookingOptions = | AddWithoutCancelingCollidingBookings = 1 | AddAndCancelCollidingBookings = 2 [] type CreateResourceTimeExceptionBase() = /// ///If this equals true it will it add the time exception with the option you have selected in CollidingBookingOption. Default is to cancel all colliding bookings. /// [] member val Force:Boolean = new Boolean() with get,set /// ///When Force=true and colliding bookings exsists, this message is the message that are sent to the users when canceling their bookings. /// [] member val CancelMessage:String = null with get,set /// ///When Force=true and colliding bookings exsists, send cancelmessage as SMS Confirmation /// [] member val SendSmsConfirmation:Nullable = new Nullable() with get,set /// ///When Force=true and colliding bookings exsists, send cancelmessage as Email Confirmation /// [] member val SendEmailConfirmation:Nullable = new Nullable() with get,set [] type TimeExceptionReosurceDetails() = /// ///Ids of the resources that owns this exception /// [] member val Id:Int32 = new Int32() with get,set /// ///Name of the resource /// [] member val Name:String = null with get,set /// ///Description of the resource /// [] member val Description:String = null with get,set /// ///Color of the resource /// [] member val Color:String = null with get,set /// ///Image of the resource /// [] member val ImageUrl:Uri = null with get,set member val ResponseStatus:ResponseStatus = null with get,set [] type ExceptionCalendarExportStatus() = member val CalendarId:String = null with get,set member val ExceptionId:Int32 = new Int32() with get,set member val Synced:Nullable = new Nullable() with get,set [] type DayOfWeekDto() = member val DayOfWeekId:Int32 = new Int32() with get,set member val DotNetDayOfWeekId:Int32 = new Int32() with get,set member val DayOfWeek:String = null with get,set [] type ResourceTimeExceptionQueryResponse() = /// ///Time exception id /// [] member val Id:Int32 = new Int32() with get,set /// ///Time company id /// [] member val CompanyId:Guid = new Guid() with get,set /// ///If it's locked for editing for the logged in administrator /// [] member val Locked:Boolean = new Boolean() with get,set /// ///Resources that owns this exception /// [] member val ResourceIds:Int32[] = [||] with get,set /// ///Resources that owns this exception /// [] member val Resources:ResizeArray = new ResizeArray() with get,set /// ///Indicates wheter or not the time exception is recurring /// [] member val IsRecurring:Boolean = new Boolean() with get,set /// ///Time exception starting timestamp /// [] member val From:DateTime = new DateTime() with get,set /// ///Time exception ending timestamp /// [] member val To:DateTime = new DateTime() with get,set /// ///If recurring then this value indicates the time of day when the time exception begins /// [] member val FromTime:TimeSpan = new TimeSpan() with get,set /// ///If recurring then this value indicates the time of day when the time exception ends /// [] member val ToTime:TimeSpan = new TimeSpan() with get,set /// ///The reason of the time exception, example: Vacation, doctors appointment, ... /// [] member val ReasonText:String = null with get,set /// ///The reason of the time exception that could be public to customers, example: Vacation, Closed, Sick leave, ... /// [] member val ReasonTextPublic:String = null with get,set /// ///What hexadecimal color code the exception should have in the scheduler /// [] member val Color:String = null with get,set /// ///If the time exception should block the time in the scheduler so it's not avaialable to book /// [] member val BlockTime:Boolean = new Boolean() with get,set /// ///If the ReasonText should only be visible to conncted resources. If false, all resources will be able to see it /// [] member val Private:Boolean = new Boolean() with get,set /// ///The status for export to calendars like Gcal /// [] member val CalendarExportStatus:ExceptionCalendarExportStatus = null with get,set /// ///If recurring, an array indicating which days of the week the exception recures on where 1 = Monday .. 7 = Sunday. When recurring then the time portion of the Fields From and To indicates the time of day the recurrence occurs /// [] member val DaysOfWeek:ResizeArray = new ResizeArray() with get,set /// ///The datetime the exception was created /// [] member val Created:DateTime = new DateTime() with get,set member val ResponseStatus:ResponseStatus = null with get,set [] [] [] [] [] [] type UpdateResourceTimeException() = inherit CreateResourceTimeExceptionBase() interface IReturn /// ///The company id, if empty will use the company id for the user you are logged in with. /// [] member val CompanyId:Nullable = new Nullable() with get,set /// ///Tome exceptions id /// [] member val Id:Int32 = new Int32() with get,set /// ///Time exception starting datestamp, only the date of day part is used of this value /// [] member val From:Nullable = new Nullable() with get,set /// ///Time exception ending datestamp, only the date of day part is used of this value /// [] member val To:Nullable = new Nullable() with get,set /// ///Resource id of the resource that owns this exception /// [] member val ResourceIds:Int32[] = [||] with get,set /// ///This value indicates the time of day when the time exception begins. Example: 10:00. If Recurring this will be the startime for each recurring day. /// [] member val FromTime:Nullable = new Nullable() with get,set /// ///This value indicates the time of day when the time exception ends. Example: 12:00. If Recurring this will be the endtime for each recurring day. /// [] member val ToTime:Nullable = new Nullable() with get,set /// ///A comma separated list of which days this day exception belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. /// [] member val DaysOfWeek:Int32[] = [||] with get,set /// ///The reason of the time exception, example: Vacation, doctors appointment, ... /// [] member val ReasonText:String = null with get,set /// ///The reason of the time exception that could be public to customers, example: Vacation, Closed, Sick leave, ... /// [] member val ReasonTextPublic:String = null with get,set /// ///What hexadecimal color code the exception should have in the scheduler /// [] member val Color:String = null with get,set /// ///If the time exception should block the time in the scheduler so it's not avaialable to book /// [] member val BlockTime:Nullable = new Nullable() with get,set /// ///If the ReasonText should only be visible to conncted resources. If false, all resources will be able to see it /// [] member val Private:Nullable = new Nullable() with get,set /// ///By default sets to 1, which is to add time exception without canceling colliding bookings /// [] member val CollidingBookingOptions:CollidingBookingOptions = new CollidingBookingOptions() with get,set