Versions in this module Expand all Collapse all v0 v0.1.0 Aug 26, 2024 Changes in this version + type BookingResponse struct + AutoApproved bool + HolidayID int + OverrideLockedDateRequired bool + OverrideRequired bool + Rejections bool + Response string + Success bool + type Day struct + DayChar string + DayNumber int + IsToday bool + Month int + type DepartmentResponse struct + Archived bool + BossID int + ID int + ManagerID int + MaxOff int + Name string + OrganisationID int + UserCount int + type Holiday struct + AmHolID int + AmLt string + AmLtName string + AmPend bool + Day int + Icon string + IsEnd bool + IsStart bool + PmHolID int + PmLt string + PmLtName string + PmPend bool + type LeaveRequest struct + AllDay bool + AttachmentID *int + DepartmentID int + End string + FromDayPart int + FromTime int + LeaveTypeID int + Reason string + SpaceBeforeFractions bool + Start string + ToDayPart int + ToTime int + UserID int + type LeaveType struct + Active bool + CalendarVisibility int + Color string + Deducted bool + ID int + Icon string + IncludeMaxOff bool + IsInUse bool + IsPrivate bool + LimitDays *int + LimitHours *int + Name string + OrganisationID int + RequiresApproval bool + type NonWorkingDay struct + DayOffset int + DayPart int + ID interface{} + Icon interface{} + Name interface{} + type TimetasticClient struct + func NewTimetasticClient() *TimetasticClient + func (c *TimetasticClient) BookLeave(department int, leaveType int, start string, end string) (*BookingResponse, error) + func (c *TimetasticClient) GetDepartments() (*[]DepartmentResponse, error) + func (c *TimetasticClient) GetLeaveTypes() (*[]LeaveType, error) + func (c *TimetasticClient) GetWallchart(departmentId int) (*WallchartData, error) + type User struct + Birthday string + CanEdit bool + CanManage bool + CanViewCalendar bool + Days int + DepartmentID int + DeptName string + FirstName string + GravatarURL string + Holidays []Holiday + Initials string + IsDeptManager bool + IsFavourite bool + LockedDays []interface{} + Name string + NonWorkingDays []NonWorkingDay + Remaining string + StartDate string + Surname string + UserID int + WorkAnniversary string + Year int + type WallchartData struct + CanPageBack bool + CanPageForward bool + Days []Day + End string + EndText interface{} + IsRestricted bool + MonthStart int + Start string + StartText interface{} + Users []User + Year int