Versions in this module Expand all Collapse all v0 v0.2.1 Nov 16, 2026 v0.2.0 Nov 15, 2026 v0.1.0 Nov 9, 2026 Changes in this version + const ActivityBooked + const ActivityCancelled + const ActivityClosureCreated + const ActivityClosureDeleted + const ActivityCompleted + const ActivityConfirmed + const ActivityHoldExpired + const ActivityHourCreated + const ActivityHourDeleted + const ActivityLogName + const ActivityNoShow + const ActivityRefBooking + const ActivityRefClosure + const ActivityRefHour + const ActivityRefService + const ActivityReleased + const ActivityReminded + const ActivityRescheduled + const ActivityServiceCreated + const ActivityServiceDeleted + const ActivityServiceUpdated + const ActivitySettled + const AgendaBook + const AgendaChange + const AgendaConfigure + const AgendaManage + const AgendaRunTasks + const AgendaSettle + const AgendaViewAll + const AgendaViewOwn + const AgendaViewSpace + const ByCustomer + const BySystem + const ByTeam + const DefaultCapacity + const DefaultChangeUntil + const DefaultHorizon + const DefaultLocale + const DefaultLocation + const DefaultMinNotice + const DefaultPageSize + const DefaultPaymentHold + const DefaultPrefix + const DefaultRemindBefore + const DefaultSlotStep + const DefaultTeamPrefix + const FallbackLocale + const MaxCapacity + const MaxHorizon + const MaxPageSize + const PublishCommand + const TranslationGroup + const ViewIndex + const ViewNew + const ViewReschedule + const ViewShow + const ViewTeamClosureForm + const ViewTeamClosures + const ViewTeamHourForm + const ViewTeamHours + const ViewTeamIndex + const ViewTeamServiceForm + const ViewTeamServices + const ViewTeamShow + var DefaultPaths = Paths + var ErrNoAccount = errors.New("agenda: the directory does not know that person") + var ErrNotFound = fmt.Errorf("agenda: record not found: %w", model.ErrModelNotFound) + var ErrNotSettleable = errors.New("agenda: that booking cannot take a payment in its state") + var ErrSlotTaken = errors.New("agenda: that time is not available any more") + var PortuguesePaths = Paths + var Statuses = []Status + func Actions() []security.Action + func Lines(locale string) translation.Lines + func Locales() []string + func Minutes(n int) string + func PublishedPaths() []string + func StatusVariant(key string) string + func TeamActions() []security.Action + func ViewNames() []string + func ViewPackages() []string + type AppService struct + func NewAppService(db *data.DB, cfg Config) *AppService + func (s *AppService) ExpireHolds(ctx context.Context) (int, error) + func (s *AppService) Find(ctx context.Context, g security.Grant, ref string) (*Booking, error) + func (s *AppService) Remind(ctx context.Context) (int, error) + func (s *AppService) Settle(ctx context.Context, g security.Grant, bookingID, paymentRef string) (*Booking, error) + type BookInput struct + Note string + Service string + Start time.Time + Subject BookingSubject + type Booking struct + CancelReason string + CancelledBy string + Code string + CompletedAt *time.Time + CompletedBy string + ConfirmedAt *time.Time + CreatedAt time.Time + CustomerNote string + EndsAt time.Time + HoldUntil *time.Time + ID string + PaymentRef string + ReleasedBy string + ReleasedReason string + RemindedAt *time.Time + RequesterID string + RequesterName string + Reschedules int + ServiceKey string + ServiceName string + StartsAt time.Time + Status Status + SubjectID string + SubjectLabel string + SubjectType string + TeamNote string + TenantID string + UpdatedAt time.Time + func (b *Booking) Cancel(side, reason string, now time.Time) error + func (b *Booking) Complete(by, note string, now time.Time) error + func (b *Booking) Confirm(now time.Time) error + func (b *Booking) Expire(now time.Time) error + func (b *Booking) MarkNoShow(now time.Time) error + func (b *Booking) Move(start, end, now time.Time) error + func (b *Booking) Release(by, reason string, now time.Time) error + func (b *Booking) Settle(ref string, now time.Time) error + func (b Booking) CanComplete() bool + func (b Booking) CanConfirm(now time.Time) bool + func (b Booking) CanMove() bool + func (b Booking) CanNoShow(now time.Time) bool + func (b Booking) CanSettle() bool + func (b Booking) ChangeOpen(now time.Time, until time.Duration) bool + func (b Booking) Lapsed(now time.Time) bool + func (b Booking) Occupies(now time.Time) bool + func (row *Booking) Fresh(ctx context.Context, g auth.Grant, with ...string) (*Booking, error) + func (row *Booking) Replicate(except ...string) (*Booking, error) + type BookingCollection []*Booking + func BookingCollectionOf(rows model.Rows) BookingCollection + func (c BookingCollection) Contains(key any) bool + func (c BookingCollection) Except(keys ...any) BookingCollection + func (c BookingCollection) Find(key any) *Booking + func (c BookingCollection) FindOrFail(key any) (*Booking, error) + func (c BookingCollection) Fresh(ctx context.Context, g auth.Grant, with ...string) (BookingCollection, error) + func (c BookingCollection) Load(ctx context.Context, g auth.Grant, relations ...string) error + func (c BookingCollection) LoadCount(ctx context.Context, g auth.Grant, relations ...string) error + func (c BookingCollection) LoadMissing(ctx context.Context, g auth.Grant, relations ...string) error + func (c BookingCollection) ModelKeys() []any + func (c BookingCollection) Only(keys ...any) BookingCollection + func (c BookingCollection) Pluck(column string) []any + func (c BookingCollection) Rows() model.Rows + func (c BookingCollection) ToArray() []map[string]any + func (c BookingCollection) Unique() BookingCollection + type BookingPolicy struct + func (BookingPolicy) Can(_ context.Context, s security.Subject, a security.Action, record Booking) error + func (BookingPolicy) Writes(a security.Action) bool + type BookingQuery struct + func Bookings(db model.DB) *BookingQuery + func (q *BookingQuery) AddSelect(columns ...any) *BookingQuery + func (q *BookingQuery) ApplyListing(state pagination.ListingState) *BookingQuery + func (q *BookingQuery) Avg(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *BookingQuery) Base() *model.Builder + func (q *BookingQuery) Chunk(ctx context.Context, g auth.Grant, count int, ...) error + func (q *BookingQuery) Clone() *BookingQuery + func (q *BookingQuery) Count(ctx context.Context, g auth.Grant, columns ...any) (int64, error) + func (q *BookingQuery) Create(ctx context.Context, g auth.Grant, attributes map[string]any) (*Booking, error) + func (q *BookingQuery) Cursor(ctx context.Context, g auth.Grant) iter.Seq2[*Booking, error] + func (q *BookingQuery) CursorPaginate(ctx context.Context, g auth.Grant, perPage int, cursor *pagination.Cursor, ...) (BookingCollection, *pagination.CursorPage, error) + func (q *BookingQuery) Decrement(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *BookingQuery) Delete(ctx context.Context, g auth.Grant) (int64, error) + func (q *BookingQuery) DoesntExist(ctx context.Context, g auth.Grant) (bool, error) + func (q *BookingQuery) DoesntHave(relation, boolean string, callback func(*query.Builder)) *BookingQuery + func (q *BookingQuery) Each(ctx context.Context, g auth.Grant, count int, ...) error + func (q *BookingQuery) Exists(ctx context.Context, g auth.Grant) (bool, error) + func (q *BookingQuery) Find(ctx context.Context, g auth.Grant, id any, columns ...any) (*Booking, error) + func (q *BookingQuery) FindMany(ctx context.Context, g auth.Grant, ids []any, columns ...any) (BookingCollection, error) + func (q *BookingQuery) FindOrFail(ctx context.Context, g auth.Grant, id any, columns ...any) (*Booking, error) + func (q *BookingQuery) FindOrNew(ctx context.Context, g auth.Grant, id any, columns ...any) (*Booking, error) + func (q *BookingQuery) First(ctx context.Context, g auth.Grant, columns ...any) (*Booking, error) + func (q *BookingQuery) FirstOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Booking, error) + func (q *BookingQuery) FirstOrFail(ctx context.Context, g auth.Grant, columns ...any) (*Booking, error) + func (q *BookingQuery) FirstOrNew(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Booking, error) + func (q *BookingQuery) FirstWhere(ctx context.Context, g auth.Grant, column any, args ...any) (*Booking, error) + func (q *BookingQuery) ForPage(page, perPage int) *BookingQuery + func (q *BookingQuery) ForceCreate(ctx context.Context, g auth.Grant, attributes map[string]any) (*Booking, error) + func (q *BookingQuery) Get(ctx context.Context, g auth.Grant, columns ...any) (BookingCollection, error) + func (q *BookingQuery) GroupBy(groups ...any) *BookingQuery + func (q *BookingQuery) Has(relation, operator string, count int, boolean string, ...) *BookingQuery + func (q *BookingQuery) Increment(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *BookingQuery) Insert(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *BookingQuery) InsertOrIgnore(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *BookingQuery) Join(table any, first any, args ...any) *BookingQuery + func (q *BookingQuery) Latest(column ...string) *BookingQuery + func (q *BookingQuery) Limit(value int) *BookingQuery + func (q *BookingQuery) Listing(ctx context.Context, g auth.Grant, state pagination.ListingState, path string, ...) (BookingCollection, *pagination.ListingResult, error) + func (q *BookingQuery) Max(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *BookingQuery) Min(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *BookingQuery) New() (*Booking, error) + func (q *BookingQuery) Offset(value int) *BookingQuery + func (q *BookingQuery) Oldest(column ...string) *BookingQuery + func (q *BookingQuery) OrDoesntHave(relation string) *BookingQuery + func (q *BookingQuery) OrHas(relation, operator string, count int) *BookingQuery + func (q *BookingQuery) OrWhere(column any, args ...any) *BookingQuery + func (q *BookingQuery) OrWhereDoesntHave(relation string, callback func(*query.Builder)) *BookingQuery + func (q *BookingQuery) OrWhereHas(relation string, callback func(*query.Builder)) *BookingQuery + func (q *BookingQuery) OrWhereNot(column any, args ...any) *BookingQuery + func (q *BookingQuery) OrWhereRelation(relation string, column any, args ...any) *BookingQuery + func (q *BookingQuery) OrderBy(column any, direction ...string) *BookingQuery + func (q *BookingQuery) OrderByDesc(column any) *BookingQuery + func (q *BookingQuery) Paginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (BookingCollection, *pagination.LengthAwarePage, error) + func (q *BookingQuery) Pluck(ctx context.Context, g auth.Grant, column string) ([]any, error) + func (q *BookingQuery) Select(columns ...any) *BookingQuery + func (q *BookingQuery) SelectRaw(expression string, bindings ...any) *BookingQuery + func (q *BookingQuery) SimplePaginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (BookingCollection, *pagination.Page, error) + func (q *BookingQuery) Sole(ctx context.Context, g auth.Grant, columns ...any) (*Booking, error) + func (q *BookingQuery) SoleValue(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *BookingQuery) Sum(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *BookingQuery) Touch(ctx context.Context, g auth.Grant, column ...string) (int64, error) + func (q *BookingQuery) Update(ctx context.Context, g auth.Grant, values map[string]any) (int64, error) + func (q *BookingQuery) UpdateOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Booking, error) + func (q *BookingQuery) Upsert(ctx context.Context, g auth.Grant, values []map[string]any, ...) (int64, error) + func (q *BookingQuery) Value(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *BookingQuery) ValueOrFail(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *BookingQuery) Where(column any, args ...any) *BookingQuery + func (q *BookingQuery) WhereBelongsTo(relationshipName string, related ...model.Entity) *BookingQuery + func (q *BookingQuery) WhereBetween(column any, from, to any) *BookingQuery + func (q *BookingQuery) WhereColumn(first any, args ...any) *BookingQuery + func (q *BookingQuery) WhereDoesntHave(relation string, callback func(*query.Builder)) *BookingQuery + func (q *BookingQuery) WhereExists(callback func(*query.Builder)) *BookingQuery + func (q *BookingQuery) WhereHas(relation string, callback func(*query.Builder)) *BookingQuery + func (q *BookingQuery) WhereHasCount(relation string, callback func(*query.Builder), operator string, count int) *BookingQuery + func (q *BookingQuery) WhereIn(column any, values []any) *BookingQuery + func (q *BookingQuery) WhereKey(id any) *BookingQuery + func (q *BookingQuery) WhereNot(column any, args ...any) *BookingQuery + func (q *BookingQuery) WhereNotExists(callback func(*query.Builder)) *BookingQuery + func (q *BookingQuery) WhereNotIn(column any, values []any) *BookingQuery + func (q *BookingQuery) WhereNotNull(columns ...any) *BookingQuery + func (q *BookingQuery) WhereNull(columns ...any) *BookingQuery + func (q *BookingQuery) WhereRelation(relation string, column any, args ...any) *BookingQuery + func (q *BookingQuery) With(relations ...string) *BookingQuery + func (q *BookingQuery) WithAvg(relation, column string) *BookingQuery + func (q *BookingQuery) WithCount(relations ...string) *BookingQuery + func (q *BookingQuery) WithExists(relation string) *BookingQuery + func (q *BookingQuery) WithMax(relation, column string) *BookingQuery + func (q *BookingQuery) WithMin(relation, column string) *BookingQuery + func (q *BookingQuery) WithSum(relation, column string) *BookingQuery + func (q *BookingQuery) Without(relations ...string) *BookingQuery + func (q *BookingQuery) WithoutGlobalScope(identifier string) *BookingQuery + func (q *BookingQuery) WithoutGlobalScopes(identifiers ...string) *BookingQuery + type BookingRow struct + CancelReason string + CancelledBy string + Code string + Completed string + CompletedBy string + Confirmed string + Created string + Day string + Ends string + HoldUntil string + ID string + Note string + PaymentRef string + ReleasedBy string + ReleasedReason string + Reminded string + Requester string + RequesterID string + Reschedules int + Service string + ServiceKey string + Space string + StartsSort string + Status string + StatusKey string + Subject string + SubjectID string + SubjectType string + TeamNote string + Time string + URL string + Updated string + When string + type BookingService struct + func NewBookingService(db *data.DB, cfg Config) *BookingService + func (s *BookingService) Book(ctx context.Context, actor security.Subject, in BookInput) (*Booking, error) + func (s *BookingService) Booking(ctx context.Context, actor security.Subject, id string) (Summary, error) + func (s *BookingService) Bookings(ctx context.Context, actor security.Subject, q ListQuery) (Page, error) + func (s *BookingService) CanBook(ctx context.Context, actor security.Subject) error + func (s *BookingService) Cancel(ctx context.Context, actor security.Subject, id, reason string) (*Booking, error) + func (s *BookingService) Confirm(ctx context.Context, actor security.Subject, id string) (*Booking, error) + func (s *BookingService) Reschedule(ctx context.Context, actor security.Subject, id string, newStart time.Time) (*Booking, error) + func (s *BookingService) Services(ctx context.Context, actor security.Subject) ([]ServiceView, error) + func (s *BookingService) Slots(ctx context.Context, actor security.Subject, serviceKey string, day time.Time) ([]time.Time, error) + type BookingSubject struct + ID string + Label string + Type string + type ChromeRequest struct + Subject security.Subject + Team bool + Title string + type Closure struct + CreatedAt time.Time + EndsAt time.Time + ID string + Reason string + StartsAt time.Time + func (row *Closure) Fresh(ctx context.Context, g auth.Grant, with ...string) (*Closure, error) + func (row *Closure) Replicate(except ...string) (*Closure, error) + type ClosureCollection []*Closure + func ClosureCollectionOf(rows model.Rows) ClosureCollection + func (c ClosureCollection) Contains(key any) bool + func (c ClosureCollection) Except(keys ...any) ClosureCollection + func (c ClosureCollection) Find(key any) *Closure + func (c ClosureCollection) FindOrFail(key any) (*Closure, error) + func (c ClosureCollection) Fresh(ctx context.Context, g auth.Grant, with ...string) (ClosureCollection, error) + func (c ClosureCollection) Load(ctx context.Context, g auth.Grant, relations ...string) error + func (c ClosureCollection) LoadCount(ctx context.Context, g auth.Grant, relations ...string) error + func (c ClosureCollection) LoadMissing(ctx context.Context, g auth.Grant, relations ...string) error + func (c ClosureCollection) ModelKeys() []any + func (c ClosureCollection) Only(keys ...any) ClosureCollection + func (c ClosureCollection) Pluck(column string) []any + func (c ClosureCollection) Rows() model.Rows + func (c ClosureCollection) ToArray() []map[string]any + func (c ClosureCollection) Unique() ClosureCollection + type ClosureFormPageData struct + Action string + BackURL string + FromDay string + FromTime string + Reason string + ToDay string + ToTime string + type ClosureInput struct + EndsAt time.Time + Reason string + StartsAt time.Time + type ClosureQuery struct + func Closures(db model.DB) *ClosureQuery + func (q *ClosureQuery) AddSelect(columns ...any) *ClosureQuery + func (q *ClosureQuery) ApplyListing(state pagination.ListingState) *ClosureQuery + func (q *ClosureQuery) Avg(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *ClosureQuery) Base() *model.Builder + func (q *ClosureQuery) Chunk(ctx context.Context, g auth.Grant, count int, ...) error + func (q *ClosureQuery) Clone() *ClosureQuery + func (q *ClosureQuery) Count(ctx context.Context, g auth.Grant, columns ...any) (int64, error) + func (q *ClosureQuery) Create(ctx context.Context, g auth.Grant, attributes map[string]any) (*Closure, error) + func (q *ClosureQuery) Cursor(ctx context.Context, g auth.Grant) iter.Seq2[*Closure, error] + func (q *ClosureQuery) CursorPaginate(ctx context.Context, g auth.Grant, perPage int, cursor *pagination.Cursor, ...) (ClosureCollection, *pagination.CursorPage, error) + func (q *ClosureQuery) Decrement(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *ClosureQuery) Delete(ctx context.Context, g auth.Grant) (int64, error) + func (q *ClosureQuery) DoesntExist(ctx context.Context, g auth.Grant) (bool, error) + func (q *ClosureQuery) DoesntHave(relation, boolean string, callback func(*query.Builder)) *ClosureQuery + func (q *ClosureQuery) Each(ctx context.Context, g auth.Grant, count int, ...) error + func (q *ClosureQuery) Exists(ctx context.Context, g auth.Grant) (bool, error) + func (q *ClosureQuery) Find(ctx context.Context, g auth.Grant, id any, columns ...any) (*Closure, error) + func (q *ClosureQuery) FindMany(ctx context.Context, g auth.Grant, ids []any, columns ...any) (ClosureCollection, error) + func (q *ClosureQuery) FindOrFail(ctx context.Context, g auth.Grant, id any, columns ...any) (*Closure, error) + func (q *ClosureQuery) FindOrNew(ctx context.Context, g auth.Grant, id any, columns ...any) (*Closure, error) + func (q *ClosureQuery) First(ctx context.Context, g auth.Grant, columns ...any) (*Closure, error) + func (q *ClosureQuery) FirstOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Closure, error) + func (q *ClosureQuery) FirstOrFail(ctx context.Context, g auth.Grant, columns ...any) (*Closure, error) + func (q *ClosureQuery) FirstOrNew(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Closure, error) + func (q *ClosureQuery) FirstWhere(ctx context.Context, g auth.Grant, column any, args ...any) (*Closure, error) + func (q *ClosureQuery) ForPage(page, perPage int) *ClosureQuery + func (q *ClosureQuery) ForceCreate(ctx context.Context, g auth.Grant, attributes map[string]any) (*Closure, error) + func (q *ClosureQuery) Get(ctx context.Context, g auth.Grant, columns ...any) (ClosureCollection, error) + func (q *ClosureQuery) GroupBy(groups ...any) *ClosureQuery + func (q *ClosureQuery) Has(relation, operator string, count int, boolean string, ...) *ClosureQuery + func (q *ClosureQuery) Increment(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *ClosureQuery) Insert(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *ClosureQuery) InsertOrIgnore(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *ClosureQuery) Join(table any, first any, args ...any) *ClosureQuery + func (q *ClosureQuery) Latest(column ...string) *ClosureQuery + func (q *ClosureQuery) Limit(value int) *ClosureQuery + func (q *ClosureQuery) Listing(ctx context.Context, g auth.Grant, state pagination.ListingState, path string, ...) (ClosureCollection, *pagination.ListingResult, error) + func (q *ClosureQuery) Max(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *ClosureQuery) Min(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *ClosureQuery) New() (*Closure, error) + func (q *ClosureQuery) Offset(value int) *ClosureQuery + func (q *ClosureQuery) Oldest(column ...string) *ClosureQuery + func (q *ClosureQuery) OrDoesntHave(relation string) *ClosureQuery + func (q *ClosureQuery) OrHas(relation, operator string, count int) *ClosureQuery + func (q *ClosureQuery) OrWhere(column any, args ...any) *ClosureQuery + func (q *ClosureQuery) OrWhereDoesntHave(relation string, callback func(*query.Builder)) *ClosureQuery + func (q *ClosureQuery) OrWhereHas(relation string, callback func(*query.Builder)) *ClosureQuery + func (q *ClosureQuery) OrWhereNot(column any, args ...any) *ClosureQuery + func (q *ClosureQuery) OrWhereRelation(relation string, column any, args ...any) *ClosureQuery + func (q *ClosureQuery) OrderBy(column any, direction ...string) *ClosureQuery + func (q *ClosureQuery) OrderByDesc(column any) *ClosureQuery + func (q *ClosureQuery) Paginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (ClosureCollection, *pagination.LengthAwarePage, error) + func (q *ClosureQuery) Pluck(ctx context.Context, g auth.Grant, column string) ([]any, error) + func (q *ClosureQuery) Select(columns ...any) *ClosureQuery + func (q *ClosureQuery) SelectRaw(expression string, bindings ...any) *ClosureQuery + func (q *ClosureQuery) SimplePaginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (ClosureCollection, *pagination.Page, error) + func (q *ClosureQuery) Sole(ctx context.Context, g auth.Grant, columns ...any) (*Closure, error) + func (q *ClosureQuery) SoleValue(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *ClosureQuery) Sum(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *ClosureQuery) Touch(ctx context.Context, g auth.Grant, column ...string) (int64, error) + func (q *ClosureQuery) Update(ctx context.Context, g auth.Grant, values map[string]any) (int64, error) + func (q *ClosureQuery) UpdateOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Closure, error) + func (q *ClosureQuery) Upsert(ctx context.Context, g auth.Grant, values []map[string]any, ...) (int64, error) + func (q *ClosureQuery) Value(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *ClosureQuery) ValueOrFail(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *ClosureQuery) Where(column any, args ...any) *ClosureQuery + func (q *ClosureQuery) WhereBelongsTo(relationshipName string, related ...model.Entity) *ClosureQuery + func (q *ClosureQuery) WhereBetween(column any, from, to any) *ClosureQuery + func (q *ClosureQuery) WhereColumn(first any, args ...any) *ClosureQuery + func (q *ClosureQuery) WhereDoesntHave(relation string, callback func(*query.Builder)) *ClosureQuery + func (q *ClosureQuery) WhereExists(callback func(*query.Builder)) *ClosureQuery + func (q *ClosureQuery) WhereHas(relation string, callback func(*query.Builder)) *ClosureQuery + func (q *ClosureQuery) WhereHasCount(relation string, callback func(*query.Builder), operator string, count int) *ClosureQuery + func (q *ClosureQuery) WhereIn(column any, values []any) *ClosureQuery + func (q *ClosureQuery) WhereKey(id any) *ClosureQuery + func (q *ClosureQuery) WhereNot(column any, args ...any) *ClosureQuery + func (q *ClosureQuery) WhereNotExists(callback func(*query.Builder)) *ClosureQuery + func (q *ClosureQuery) WhereNotIn(column any, values []any) *ClosureQuery + func (q *ClosureQuery) WhereNotNull(columns ...any) *ClosureQuery + func (q *ClosureQuery) WhereNull(columns ...any) *ClosureQuery + func (q *ClosureQuery) WhereRelation(relation string, column any, args ...any) *ClosureQuery + func (q *ClosureQuery) With(relations ...string) *ClosureQuery + func (q *ClosureQuery) WithAvg(relation, column string) *ClosureQuery + func (q *ClosureQuery) WithCount(relations ...string) *ClosureQuery + func (q *ClosureQuery) WithExists(relation string) *ClosureQuery + func (q *ClosureQuery) WithMax(relation, column string) *ClosureQuery + func (q *ClosureQuery) WithMin(relation, column string) *ClosureQuery + func (q *ClosureQuery) WithSum(relation, column string) *ClosureQuery + func (q *ClosureQuery) Without(relations ...string) *ClosureQuery + func (q *ClosureQuery) WithoutGlobalScope(identifier string) *ClosureQuery + func (q *ClosureQuery) WithoutGlobalScopes(identifiers ...string) *ClosureQuery + type ClosureRow struct + DeleteURL string + From string + ID string + Reason string + To string + type ClosureView struct + EndsAt time.Time + ID string + Reason string + StartsAt time.Time + type ClosuresPageData struct + CanConfigure bool + ClosuresURL string + CurrentPage int + HoursURL string + NewURL string + Pager components.Paginator + Pages int + PerPage int + Query string + Rows []ClosureRow + ServicesURL string + SortDir string + SortKey string + Total int + URL string + func (d ClosuresPageData) TableState() components.DataTableState + type Config struct + Activity *activitylog.Logger + Capacity int + ChangeUntil time.Duration + Chrome func(ctx *fhttp.Context, req ChromeRequest) (any, error) + Directory Directory + Horizon time.Duration + Locale string + Logger *slog.Logger + Middleware []func(http.Handler) http.Handler + MinNotice time.Duration + Notifier Notifier + Now func() time.Time + PageSize int + Paths Paths + PaymentHold time.Duration + PaymentURL func(Summary) string + Prefix string + RemindBefore time.Duration + SlotStep time.Duration + Subjects SubjectResolver + TeamMiddleware []func(http.Handler) http.Handler + TeamPrefix string + TeamTenant string + TitleSeparator string + Translator *translation.Translator + Zone *time.Location + func (c Config) Validate() error + type ConfigQuery struct + Dir string + Page int + PerPage int + Search string + Sort string + type Counter struct + ID string + LastNumber int64 + UpdatedAt time.Time + func (row *Counter) Fresh(ctx context.Context, g auth.Grant, with ...string) (*Counter, error) + func (row *Counter) Replicate(except ...string) (*Counter, error) + type CounterCollection []*Counter + func CounterCollectionOf(rows model.Rows) CounterCollection + func (c CounterCollection) Contains(key any) bool + func (c CounterCollection) Except(keys ...any) CounterCollection + func (c CounterCollection) Find(key any) *Counter + func (c CounterCollection) FindOrFail(key any) (*Counter, error) + func (c CounterCollection) Fresh(ctx context.Context, g auth.Grant, with ...string) (CounterCollection, error) + func (c CounterCollection) Load(ctx context.Context, g auth.Grant, relations ...string) error + func (c CounterCollection) LoadCount(ctx context.Context, g auth.Grant, relations ...string) error + func (c CounterCollection) LoadMissing(ctx context.Context, g auth.Grant, relations ...string) error + func (c CounterCollection) ModelKeys() []any + func (c CounterCollection) Only(keys ...any) CounterCollection + func (c CounterCollection) Pluck(column string) []any + func (c CounterCollection) Rows() model.Rows + func (c CounterCollection) ToArray() []map[string]any + func (c CounterCollection) Unique() CounterCollection + type CounterQuery struct + func Counters(db model.DB) *CounterQuery + func (q *CounterQuery) AddSelect(columns ...any) *CounterQuery + func (q *CounterQuery) ApplyListing(state pagination.ListingState) *CounterQuery + func (q *CounterQuery) Avg(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *CounterQuery) Base() *model.Builder + func (q *CounterQuery) Chunk(ctx context.Context, g auth.Grant, count int, ...) error + func (q *CounterQuery) Clone() *CounterQuery + func (q *CounterQuery) Count(ctx context.Context, g auth.Grant, columns ...any) (int64, error) + func (q *CounterQuery) Create(ctx context.Context, g auth.Grant, attributes map[string]any) (*Counter, error) + func (q *CounterQuery) Cursor(ctx context.Context, g auth.Grant) iter.Seq2[*Counter, error] + func (q *CounterQuery) CursorPaginate(ctx context.Context, g auth.Grant, perPage int, cursor *pagination.Cursor, ...) (CounterCollection, *pagination.CursorPage, error) + func (q *CounterQuery) Decrement(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *CounterQuery) Delete(ctx context.Context, g auth.Grant) (int64, error) + func (q *CounterQuery) DoesntExist(ctx context.Context, g auth.Grant) (bool, error) + func (q *CounterQuery) DoesntHave(relation, boolean string, callback func(*query.Builder)) *CounterQuery + func (q *CounterQuery) Each(ctx context.Context, g auth.Grant, count int, ...) error + func (q *CounterQuery) Exists(ctx context.Context, g auth.Grant) (bool, error) + func (q *CounterQuery) Find(ctx context.Context, g auth.Grant, id any, columns ...any) (*Counter, error) + func (q *CounterQuery) FindMany(ctx context.Context, g auth.Grant, ids []any, columns ...any) (CounterCollection, error) + func (q *CounterQuery) FindOrFail(ctx context.Context, g auth.Grant, id any, columns ...any) (*Counter, error) + func (q *CounterQuery) FindOrNew(ctx context.Context, g auth.Grant, id any, columns ...any) (*Counter, error) + func (q *CounterQuery) First(ctx context.Context, g auth.Grant, columns ...any) (*Counter, error) + func (q *CounterQuery) FirstOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Counter, error) + func (q *CounterQuery) FirstOrFail(ctx context.Context, g auth.Grant, columns ...any) (*Counter, error) + func (q *CounterQuery) FirstOrNew(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Counter, error) + func (q *CounterQuery) FirstWhere(ctx context.Context, g auth.Grant, column any, args ...any) (*Counter, error) + func (q *CounterQuery) ForPage(page, perPage int) *CounterQuery + func (q *CounterQuery) ForceCreate(ctx context.Context, g auth.Grant, attributes map[string]any) (*Counter, error) + func (q *CounterQuery) Get(ctx context.Context, g auth.Grant, columns ...any) (CounterCollection, error) + func (q *CounterQuery) GroupBy(groups ...any) *CounterQuery + func (q *CounterQuery) Has(relation, operator string, count int, boolean string, ...) *CounterQuery + func (q *CounterQuery) Increment(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *CounterQuery) Insert(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *CounterQuery) InsertOrIgnore(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *CounterQuery) Join(table any, first any, args ...any) *CounterQuery + func (q *CounterQuery) Latest(column ...string) *CounterQuery + func (q *CounterQuery) Limit(value int) *CounterQuery + func (q *CounterQuery) Listing(ctx context.Context, g auth.Grant, state pagination.ListingState, path string, ...) (CounterCollection, *pagination.ListingResult, error) + func (q *CounterQuery) Max(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *CounterQuery) Min(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *CounterQuery) New() (*Counter, error) + func (q *CounterQuery) Offset(value int) *CounterQuery + func (q *CounterQuery) Oldest(column ...string) *CounterQuery + func (q *CounterQuery) OrDoesntHave(relation string) *CounterQuery + func (q *CounterQuery) OrHas(relation, operator string, count int) *CounterQuery + func (q *CounterQuery) OrWhere(column any, args ...any) *CounterQuery + func (q *CounterQuery) OrWhereDoesntHave(relation string, callback func(*query.Builder)) *CounterQuery + func (q *CounterQuery) OrWhereHas(relation string, callback func(*query.Builder)) *CounterQuery + func (q *CounterQuery) OrWhereNot(column any, args ...any) *CounterQuery + func (q *CounterQuery) OrWhereRelation(relation string, column any, args ...any) *CounterQuery + func (q *CounterQuery) OrderBy(column any, direction ...string) *CounterQuery + func (q *CounterQuery) OrderByDesc(column any) *CounterQuery + func (q *CounterQuery) Paginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (CounterCollection, *pagination.LengthAwarePage, error) + func (q *CounterQuery) Pluck(ctx context.Context, g auth.Grant, column string) ([]any, error) + func (q *CounterQuery) Select(columns ...any) *CounterQuery + func (q *CounterQuery) SelectRaw(expression string, bindings ...any) *CounterQuery + func (q *CounterQuery) SimplePaginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (CounterCollection, *pagination.Page, error) + func (q *CounterQuery) Sole(ctx context.Context, g auth.Grant, columns ...any) (*Counter, error) + func (q *CounterQuery) SoleValue(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *CounterQuery) Sum(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *CounterQuery) Touch(ctx context.Context, g auth.Grant, column ...string) (int64, error) + func (q *CounterQuery) Update(ctx context.Context, g auth.Grant, values map[string]any) (int64, error) + func (q *CounterQuery) UpdateOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Counter, error) + func (q *CounterQuery) Upsert(ctx context.Context, g auth.Grant, values []map[string]any, ...) (int64, error) + func (q *CounterQuery) Value(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *CounterQuery) ValueOrFail(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *CounterQuery) Where(column any, args ...any) *CounterQuery + func (q *CounterQuery) WhereBelongsTo(relationshipName string, related ...model.Entity) *CounterQuery + func (q *CounterQuery) WhereBetween(column any, from, to any) *CounterQuery + func (q *CounterQuery) WhereColumn(first any, args ...any) *CounterQuery + func (q *CounterQuery) WhereDoesntHave(relation string, callback func(*query.Builder)) *CounterQuery + func (q *CounterQuery) WhereExists(callback func(*query.Builder)) *CounterQuery + func (q *CounterQuery) WhereHas(relation string, callback func(*query.Builder)) *CounterQuery + func (q *CounterQuery) WhereHasCount(relation string, callback func(*query.Builder), operator string, count int) *CounterQuery + func (q *CounterQuery) WhereIn(column any, values []any) *CounterQuery + func (q *CounterQuery) WhereKey(id any) *CounterQuery + func (q *CounterQuery) WhereNot(column any, args ...any) *CounterQuery + func (q *CounterQuery) WhereNotExists(callback func(*query.Builder)) *CounterQuery + func (q *CounterQuery) WhereNotIn(column any, values []any) *CounterQuery + func (q *CounterQuery) WhereNotNull(columns ...any) *CounterQuery + func (q *CounterQuery) WhereNull(columns ...any) *CounterQuery + func (q *CounterQuery) WhereRelation(relation string, column any, args ...any) *CounterQuery + func (q *CounterQuery) With(relations ...string) *CounterQuery + func (q *CounterQuery) WithAvg(relation, column string) *CounterQuery + func (q *CounterQuery) WithCount(relations ...string) *CounterQuery + func (q *CounterQuery) WithExists(relation string) *CounterQuery + func (q *CounterQuery) WithMax(relation, column string) *CounterQuery + func (q *CounterQuery) WithMin(relation, column string) *CounterQuery + func (q *CounterQuery) WithSum(relation, column string) *CounterQuery + func (q *CounterQuery) Without(relations ...string) *CounterQuery + func (q *CounterQuery) WithoutGlobalScope(identifier string) *CounterQuery + func (q *CounterQuery) WithoutGlobalScopes(identifiers ...string) *CounterQuery + type Directory interface + Person func(ctx context.Context, tenant, id string) (Person, error) + type Event struct + AwaitingPayment bool + Booking Summary + By string + ConfirmURL string + Kind EventKind + RescheduleURL string + func (e Event) ForTeam() bool + type EventKind string + const EventBooked + const EventCancelled + const EventCompleted + const EventConfirmed + const EventHoldExpired + const EventReminder + const EventRescheduled + const EventScheduled + func (k EventKind) ForTeam() bool + type Flag bool + func (f *Flag) Scan(value any) error + func (f Flag) Value() (driver.Value, error) + type FormState struct + func (f FormState) ErrorSummary() []string + func (f FormState) FieldError(name string) string + func (f FormState) FieldErrors(name string) []string + func (f FormState) HasErrors() bool + func (f FormState) LogValue() slog.Value + func (f FormState) MarshalJSON() ([]byte, error) + type Hour struct + CreatedAt time.Time + EndMinute int + ID string + StartMinute int + Weekday int + func (row *Hour) Fresh(ctx context.Context, g auth.Grant, with ...string) (*Hour, error) + func (row *Hour) Replicate(except ...string) (*Hour, error) + type HourCollection []*Hour + func HourCollectionOf(rows model.Rows) HourCollection + func (c HourCollection) Contains(key any) bool + func (c HourCollection) Except(keys ...any) HourCollection + func (c HourCollection) Find(key any) *Hour + func (c HourCollection) FindOrFail(key any) (*Hour, error) + func (c HourCollection) Fresh(ctx context.Context, g auth.Grant, with ...string) (HourCollection, error) + func (c HourCollection) Load(ctx context.Context, g auth.Grant, relations ...string) error + func (c HourCollection) LoadCount(ctx context.Context, g auth.Grant, relations ...string) error + func (c HourCollection) LoadMissing(ctx context.Context, g auth.Grant, relations ...string) error + func (c HourCollection) ModelKeys() []any + func (c HourCollection) Only(keys ...any) HourCollection + func (c HourCollection) Pluck(column string) []any + func (c HourCollection) Rows() model.Rows + func (c HourCollection) ToArray() []map[string]any + func (c HourCollection) Unique() HourCollection + type HourFormPageData struct + Action string + BackURL string + End string + Start string + Weekday string + WeekdayOptions []components.SelectOption + type HourInput struct + EndMinute int + StartMinute int + Weekday int + type HourQuery struct + func Hours(db model.DB) *HourQuery + func (q *HourQuery) AddSelect(columns ...any) *HourQuery + func (q *HourQuery) ApplyListing(state pagination.ListingState) *HourQuery + func (q *HourQuery) Avg(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *HourQuery) Base() *model.Builder + func (q *HourQuery) Chunk(ctx context.Context, g auth.Grant, count int, ...) error + func (q *HourQuery) Clone() *HourQuery + func (q *HourQuery) Count(ctx context.Context, g auth.Grant, columns ...any) (int64, error) + func (q *HourQuery) Create(ctx context.Context, g auth.Grant, attributes map[string]any) (*Hour, error) + func (q *HourQuery) Cursor(ctx context.Context, g auth.Grant) iter.Seq2[*Hour, error] + func (q *HourQuery) CursorPaginate(ctx context.Context, g auth.Grant, perPage int, cursor *pagination.Cursor, ...) (HourCollection, *pagination.CursorPage, error) + func (q *HourQuery) Decrement(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *HourQuery) Delete(ctx context.Context, g auth.Grant) (int64, error) + func (q *HourQuery) DoesntExist(ctx context.Context, g auth.Grant) (bool, error) + func (q *HourQuery) DoesntHave(relation, boolean string, callback func(*query.Builder)) *HourQuery + func (q *HourQuery) Each(ctx context.Context, g auth.Grant, count int, ...) error + func (q *HourQuery) Exists(ctx context.Context, g auth.Grant) (bool, error) + func (q *HourQuery) Find(ctx context.Context, g auth.Grant, id any, columns ...any) (*Hour, error) + func (q *HourQuery) FindMany(ctx context.Context, g auth.Grant, ids []any, columns ...any) (HourCollection, error) + func (q *HourQuery) FindOrFail(ctx context.Context, g auth.Grant, id any, columns ...any) (*Hour, error) + func (q *HourQuery) FindOrNew(ctx context.Context, g auth.Grant, id any, columns ...any) (*Hour, error) + func (q *HourQuery) First(ctx context.Context, g auth.Grant, columns ...any) (*Hour, error) + func (q *HourQuery) FirstOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Hour, error) + func (q *HourQuery) FirstOrFail(ctx context.Context, g auth.Grant, columns ...any) (*Hour, error) + func (q *HourQuery) FirstOrNew(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Hour, error) + func (q *HourQuery) FirstWhere(ctx context.Context, g auth.Grant, column any, args ...any) (*Hour, error) + func (q *HourQuery) ForPage(page, perPage int) *HourQuery + func (q *HourQuery) ForceCreate(ctx context.Context, g auth.Grant, attributes map[string]any) (*Hour, error) + func (q *HourQuery) Get(ctx context.Context, g auth.Grant, columns ...any) (HourCollection, error) + func (q *HourQuery) GroupBy(groups ...any) *HourQuery + func (q *HourQuery) Has(relation, operator string, count int, boolean string, ...) *HourQuery + func (q *HourQuery) Increment(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *HourQuery) Insert(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *HourQuery) InsertOrIgnore(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *HourQuery) Join(table any, first any, args ...any) *HourQuery + func (q *HourQuery) Latest(column ...string) *HourQuery + func (q *HourQuery) Limit(value int) *HourQuery + func (q *HourQuery) Listing(ctx context.Context, g auth.Grant, state pagination.ListingState, path string, ...) (HourCollection, *pagination.ListingResult, error) + func (q *HourQuery) Max(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *HourQuery) Min(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *HourQuery) New() (*Hour, error) + func (q *HourQuery) Offset(value int) *HourQuery + func (q *HourQuery) Oldest(column ...string) *HourQuery + func (q *HourQuery) OrDoesntHave(relation string) *HourQuery + func (q *HourQuery) OrHas(relation, operator string, count int) *HourQuery + func (q *HourQuery) OrWhere(column any, args ...any) *HourQuery + func (q *HourQuery) OrWhereDoesntHave(relation string, callback func(*query.Builder)) *HourQuery + func (q *HourQuery) OrWhereHas(relation string, callback func(*query.Builder)) *HourQuery + func (q *HourQuery) OrWhereNot(column any, args ...any) *HourQuery + func (q *HourQuery) OrWhereRelation(relation string, column any, args ...any) *HourQuery + func (q *HourQuery) OrderBy(column any, direction ...string) *HourQuery + func (q *HourQuery) OrderByDesc(column any) *HourQuery + func (q *HourQuery) Paginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (HourCollection, *pagination.LengthAwarePage, error) + func (q *HourQuery) Pluck(ctx context.Context, g auth.Grant, column string) ([]any, error) + func (q *HourQuery) Select(columns ...any) *HourQuery + func (q *HourQuery) SelectRaw(expression string, bindings ...any) *HourQuery + func (q *HourQuery) SimplePaginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (HourCollection, *pagination.Page, error) + func (q *HourQuery) Sole(ctx context.Context, g auth.Grant, columns ...any) (*Hour, error) + func (q *HourQuery) SoleValue(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *HourQuery) Sum(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *HourQuery) Touch(ctx context.Context, g auth.Grant, column ...string) (int64, error) + func (q *HourQuery) Update(ctx context.Context, g auth.Grant, values map[string]any) (int64, error) + func (q *HourQuery) UpdateOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Hour, error) + func (q *HourQuery) Upsert(ctx context.Context, g auth.Grant, values []map[string]any, ...) (int64, error) + func (q *HourQuery) Value(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *HourQuery) ValueOrFail(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *HourQuery) Where(column any, args ...any) *HourQuery + func (q *HourQuery) WhereBelongsTo(relationshipName string, related ...model.Entity) *HourQuery + func (q *HourQuery) WhereBetween(column any, from, to any) *HourQuery + func (q *HourQuery) WhereColumn(first any, args ...any) *HourQuery + func (q *HourQuery) WhereDoesntHave(relation string, callback func(*query.Builder)) *HourQuery + func (q *HourQuery) WhereExists(callback func(*query.Builder)) *HourQuery + func (q *HourQuery) WhereHas(relation string, callback func(*query.Builder)) *HourQuery + func (q *HourQuery) WhereHasCount(relation string, callback func(*query.Builder), operator string, count int) *HourQuery + func (q *HourQuery) WhereIn(column any, values []any) *HourQuery + func (q *HourQuery) WhereKey(id any) *HourQuery + func (q *HourQuery) WhereNot(column any, args ...any) *HourQuery + func (q *HourQuery) WhereNotExists(callback func(*query.Builder)) *HourQuery + func (q *HourQuery) WhereNotIn(column any, values []any) *HourQuery + func (q *HourQuery) WhereNotNull(columns ...any) *HourQuery + func (q *HourQuery) WhereNull(columns ...any) *HourQuery + func (q *HourQuery) WhereRelation(relation string, column any, args ...any) *HourQuery + func (q *HourQuery) With(relations ...string) *HourQuery + func (q *HourQuery) WithAvg(relation, column string) *HourQuery + func (q *HourQuery) WithCount(relations ...string) *HourQuery + func (q *HourQuery) WithExists(relation string) *HourQuery + func (q *HourQuery) WithMax(relation, column string) *HourQuery + func (q *HourQuery) WithMin(relation, column string) *HourQuery + func (q *HourQuery) WithSum(relation, column string) *HourQuery + func (q *HourQuery) Without(relations ...string) *HourQuery + func (q *HourQuery) WithoutGlobalScope(identifier string) *HourQuery + func (q *HourQuery) WithoutGlobalScopes(identifiers ...string) *HourQuery + type HourRow struct + DeleteURL string + From string + ID string + To string + Weekday string + type HourView struct + EndMinute int + ID string + StartMinute int + Weekday int + type HoursPageData struct + CanConfigure bool + ClosuresURL string + CurrentPage int + HoursURL string + NewURL string + Pager components.Paginator + Pages int + PerPage int + Rows []HourRow + ServicesURL string + SortDir string + SortKey string + Total int + URL string + func (d HoursPageData) TableState() components.DataTableState + type IndexPageData struct + CanBook bool + CurrentPage int + NewURL string + Pager components.Paginator + Pages int + PerPage int + Query string + Rows []BookingRow + SortDir string + SortKey string + StatusOptions []components.SelectOption + Statuses []string + Total int + URL string + func (d IndexPageData) TableState() components.DataTableState + type Labels struct + Locale string + func (l Labels) By(side string) string + func (l Labels) Field(name string) string + func (l Labels) Status(s Status) string + func (l Labels) Summary(errs validation.Errors) []string + func (l Labels) T(key string) string + func (l Labels) Weekday(n int) string + type ListQuery struct + Dir string + Page int + PerPage int + Search string + Sort string + Statuses []Status + type Listing struct + Page int + Pages int + Rows []T + Total int + type Module struct + func New(cfg Config, db *data.DB, sessions *security.SessionStore) (*Module, error) + func (m *Module) App() *AppService + func (m *Module) Bookings() *BookingService + func (m *Module) Boot(context.Context) error + func (m *Module) CustomerRoutes(r *fhttp.Router) + func (m *Module) ExpireHolds(ctx context.Context) (int, error) + func (m *Module) Find(ctx context.Context, g security.Grant, ref string) (*Booking, error) + func (m *Module) Labels() Labels + func (m *Module) Migrations() []foundation.Migration + func (m *Module) Name() string + func (m *Module) Publishes() []foundation.Publication + func (m *Module) Remind(ctx context.Context) (int, error) + func (m *Module) Routes(r *fhttp.Router) + func (m *Module) Settle(ctx context.Context, g security.Grant, bookingID, paymentRef string) (*Booking, error) + func (m *Module) Team() *TeamService + func (m *Module) TeamRoutes(r *fhttp.Router) + func (m *Module) URLs() URLs + type NewPageData struct + Action string + BackURL string + Day string + FormURL string + MaxDay string + MinDay string + NoServices bool + RequiresPayment bool + Searched bool + ServiceKey string + ServiceNote string + ServiceOptions []components.SelectOption + Slots []components.RadioOption + Subject BookingSubject + type Notifier interface + Notify func(ctx context.Context, e Event) error + type Page struct + Page int + Pages int + Rows []Summary + Total int + type Paths struct + Cancellation string + Closures string + Completion string + Confirmation string + Hours string + New string + NoShow string + Release string + Rescheduling string + Services string + Settings string + type Person struct + Email string + ID string + Name string + type ReschedulePageData struct + Action string + BackURL string + Booking BookingRow + Day string + FormURL string + MaxDay string + MinDay string + Searched bool + Slots []components.RadioOption + type Schedule struct + Busy []Span + Capacity int + Closures []Span + Horizon time.Duration + MinNotice time.Duration + Step time.Duration + Weekly []Window + Zone *time.Location + func (s Schedule) Free(span Span) bool + func (s Schedule) Offers(now, start time.Time, duration time.Duration) bool + func (s Schedule) Slots(now, day time.Time, duration time.Duration) []time.Time + type Screen struct + Labels Labels + Location *time.Location + URLs URLs + func (s Screen) All() []string + func (s Screen) Chrome() any + func (s Screen) Clock(t time.Time) string + func (s Screen) DatePicker(p components.DateTimePickerProps) template.HTML + func (s Screen) Day(t time.Time) string + func (s Screen) ErrorSummary() []string + func (s Screen) FieldErrors(name string) []string + func (s Screen) Form() FormState + func (s Screen) HasErrors() bool + func (s Screen) LogValue() slog.Value + func (s Screen) MarshalJSON() ([]byte, error) + func (s Screen) SearchLabel(table string) string + func (s Screen) StatusOptions() []components.SelectOption + func (s Screen) TableLines() components.DataTableLines + func (s Screen) TimePicker(p components.DateTimePickerProps) template.HTML + func (s Screen) WeekdayOptions() []components.SelectOption + func (s Screen) When(t time.Time) string + type Service struct + Active Flag + CreatedAt time.Time + Description string + DurationMinutes int + ID string + Key string + Name string + RequiresPayment Flag + UpdatedAt time.Time + func (row *Service) Fresh(ctx context.Context, g auth.Grant, with ...string) (*Service, error) + func (row *Service) Replicate(except ...string) (*Service, error) + type ServiceCollection []*Service + func ServiceCollectionOf(rows model.Rows) ServiceCollection + func (c ServiceCollection) Contains(key any) bool + func (c ServiceCollection) Except(keys ...any) ServiceCollection + func (c ServiceCollection) Find(key any) *Service + func (c ServiceCollection) FindOrFail(key any) (*Service, error) + func (c ServiceCollection) Fresh(ctx context.Context, g auth.Grant, with ...string) (ServiceCollection, error) + func (c ServiceCollection) Load(ctx context.Context, g auth.Grant, relations ...string) error + func (c ServiceCollection) LoadCount(ctx context.Context, g auth.Grant, relations ...string) error + func (c ServiceCollection) LoadMissing(ctx context.Context, g auth.Grant, relations ...string) error + func (c ServiceCollection) ModelKeys() []any + func (c ServiceCollection) Only(keys ...any) ServiceCollection + func (c ServiceCollection) Pluck(column string) []any + func (c ServiceCollection) Rows() model.Rows + func (c ServiceCollection) ToArray() []map[string]any + func (c ServiceCollection) Unique() ServiceCollection + type ServiceFormPageData struct + Action string + Active bool + BackURL string + Description string + Duration string + Editing bool + Key string + Name string + RequiresPayment bool + type ServiceInput struct + Active bool + Description string + DurationMinutes int + Key string + Name string + RequiresPayment bool + type ServiceQuery struct + func Services(db model.DB) *ServiceQuery + func (q *ServiceQuery) AddSelect(columns ...any) *ServiceQuery + func (q *ServiceQuery) ApplyListing(state pagination.ListingState) *ServiceQuery + func (q *ServiceQuery) Avg(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *ServiceQuery) Base() *model.Builder + func (q *ServiceQuery) Chunk(ctx context.Context, g auth.Grant, count int, ...) error + func (q *ServiceQuery) Clone() *ServiceQuery + func (q *ServiceQuery) Count(ctx context.Context, g auth.Grant, columns ...any) (int64, error) + func (q *ServiceQuery) Create(ctx context.Context, g auth.Grant, attributes map[string]any) (*Service, error) + func (q *ServiceQuery) Cursor(ctx context.Context, g auth.Grant) iter.Seq2[*Service, error] + func (q *ServiceQuery) CursorPaginate(ctx context.Context, g auth.Grant, perPage int, cursor *pagination.Cursor, ...) (ServiceCollection, *pagination.CursorPage, error) + func (q *ServiceQuery) Decrement(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *ServiceQuery) Delete(ctx context.Context, g auth.Grant) (int64, error) + func (q *ServiceQuery) DoesntExist(ctx context.Context, g auth.Grant) (bool, error) + func (q *ServiceQuery) DoesntHave(relation, boolean string, callback func(*query.Builder)) *ServiceQuery + func (q *ServiceQuery) Each(ctx context.Context, g auth.Grant, count int, ...) error + func (q *ServiceQuery) Exists(ctx context.Context, g auth.Grant) (bool, error) + func (q *ServiceQuery) Find(ctx context.Context, g auth.Grant, id any, columns ...any) (*Service, error) + func (q *ServiceQuery) FindMany(ctx context.Context, g auth.Grant, ids []any, columns ...any) (ServiceCollection, error) + func (q *ServiceQuery) FindOrFail(ctx context.Context, g auth.Grant, id any, columns ...any) (*Service, error) + func (q *ServiceQuery) FindOrNew(ctx context.Context, g auth.Grant, id any, columns ...any) (*Service, error) + func (q *ServiceQuery) First(ctx context.Context, g auth.Grant, columns ...any) (*Service, error) + func (q *ServiceQuery) FirstOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Service, error) + func (q *ServiceQuery) FirstOrFail(ctx context.Context, g auth.Grant, columns ...any) (*Service, error) + func (q *ServiceQuery) FirstOrNew(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Service, error) + func (q *ServiceQuery) FirstWhere(ctx context.Context, g auth.Grant, column any, args ...any) (*Service, error) + func (q *ServiceQuery) ForPage(page, perPage int) *ServiceQuery + func (q *ServiceQuery) ForceCreate(ctx context.Context, g auth.Grant, attributes map[string]any) (*Service, error) + func (q *ServiceQuery) Get(ctx context.Context, g auth.Grant, columns ...any) (ServiceCollection, error) + func (q *ServiceQuery) GroupBy(groups ...any) *ServiceQuery + func (q *ServiceQuery) Has(relation, operator string, count int, boolean string, ...) *ServiceQuery + func (q *ServiceQuery) Increment(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *ServiceQuery) Insert(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *ServiceQuery) InsertOrIgnore(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *ServiceQuery) Join(table any, first any, args ...any) *ServiceQuery + func (q *ServiceQuery) Latest(column ...string) *ServiceQuery + func (q *ServiceQuery) Limit(value int) *ServiceQuery + func (q *ServiceQuery) Listing(ctx context.Context, g auth.Grant, state pagination.ListingState, path string, ...) (ServiceCollection, *pagination.ListingResult, error) + func (q *ServiceQuery) Max(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *ServiceQuery) Min(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *ServiceQuery) New() (*Service, error) + func (q *ServiceQuery) Offset(value int) *ServiceQuery + func (q *ServiceQuery) Oldest(column ...string) *ServiceQuery + func (q *ServiceQuery) OrDoesntHave(relation string) *ServiceQuery + func (q *ServiceQuery) OrHas(relation, operator string, count int) *ServiceQuery + func (q *ServiceQuery) OrWhere(column any, args ...any) *ServiceQuery + func (q *ServiceQuery) OrWhereDoesntHave(relation string, callback func(*query.Builder)) *ServiceQuery + func (q *ServiceQuery) OrWhereHas(relation string, callback func(*query.Builder)) *ServiceQuery + func (q *ServiceQuery) OrWhereNot(column any, args ...any) *ServiceQuery + func (q *ServiceQuery) OrWhereRelation(relation string, column any, args ...any) *ServiceQuery + func (q *ServiceQuery) OrderBy(column any, direction ...string) *ServiceQuery + func (q *ServiceQuery) OrderByDesc(column any) *ServiceQuery + func (q *ServiceQuery) Paginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (ServiceCollection, *pagination.LengthAwarePage, error) + func (q *ServiceQuery) Pluck(ctx context.Context, g auth.Grant, column string) ([]any, error) + func (q *ServiceQuery) Select(columns ...any) *ServiceQuery + func (q *ServiceQuery) SelectRaw(expression string, bindings ...any) *ServiceQuery + func (q *ServiceQuery) SimplePaginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (ServiceCollection, *pagination.Page, error) + func (q *ServiceQuery) Sole(ctx context.Context, g auth.Grant, columns ...any) (*Service, error) + func (q *ServiceQuery) SoleValue(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *ServiceQuery) Sum(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *ServiceQuery) Touch(ctx context.Context, g auth.Grant, column ...string) (int64, error) + func (q *ServiceQuery) Update(ctx context.Context, g auth.Grant, values map[string]any) (int64, error) + func (q *ServiceQuery) UpdateOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Service, error) + func (q *ServiceQuery) Upsert(ctx context.Context, g auth.Grant, values []map[string]any, ...) (int64, error) + func (q *ServiceQuery) Value(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *ServiceQuery) ValueOrFail(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *ServiceQuery) Where(column any, args ...any) *ServiceQuery + func (q *ServiceQuery) WhereBelongsTo(relationshipName string, related ...model.Entity) *ServiceQuery + func (q *ServiceQuery) WhereBetween(column any, from, to any) *ServiceQuery + func (q *ServiceQuery) WhereColumn(first any, args ...any) *ServiceQuery + func (q *ServiceQuery) WhereDoesntHave(relation string, callback func(*query.Builder)) *ServiceQuery + func (q *ServiceQuery) WhereExists(callback func(*query.Builder)) *ServiceQuery + func (q *ServiceQuery) WhereHas(relation string, callback func(*query.Builder)) *ServiceQuery + func (q *ServiceQuery) WhereHasCount(relation string, callback func(*query.Builder), operator string, count int) *ServiceQuery + func (q *ServiceQuery) WhereIn(column any, values []any) *ServiceQuery + func (q *ServiceQuery) WhereKey(id any) *ServiceQuery + func (q *ServiceQuery) WhereNot(column any, args ...any) *ServiceQuery + func (q *ServiceQuery) WhereNotExists(callback func(*query.Builder)) *ServiceQuery + func (q *ServiceQuery) WhereNotIn(column any, values []any) *ServiceQuery + func (q *ServiceQuery) WhereNotNull(columns ...any) *ServiceQuery + func (q *ServiceQuery) WhereNull(columns ...any) *ServiceQuery + func (q *ServiceQuery) WhereRelation(relation string, column any, args ...any) *ServiceQuery + func (q *ServiceQuery) With(relations ...string) *ServiceQuery + func (q *ServiceQuery) WithAvg(relation, column string) *ServiceQuery + func (q *ServiceQuery) WithCount(relations ...string) *ServiceQuery + func (q *ServiceQuery) WithExists(relation string) *ServiceQuery + func (q *ServiceQuery) WithMax(relation, column string) *ServiceQuery + func (q *ServiceQuery) WithMin(relation, column string) *ServiceQuery + func (q *ServiceQuery) WithSum(relation, column string) *ServiceQuery + func (q *ServiceQuery) Without(relations ...string) *ServiceQuery + func (q *ServiceQuery) WithoutGlobalScope(identifier string) *ServiceQuery + func (q *ServiceQuery) WithoutGlobalScopes(identifiers ...string) *ServiceQuery + type ServiceRow struct + Active string + DeleteURL string + Description string + Duration string + EditURL string + ID string + Key string + Name string + Payment string + type ServiceView struct + Active bool + CreatedAt time.Time + Description string + DurationMinutes int + ID string + Key string + Name string + RequiresPayment bool + UpdatedAt time.Time + type ServicesPageData struct + CanConfigure bool + ClosuresURL string + CurrentPage int + HoursURL string + NewURL string + Pager components.Paginator + Pages int + PerPage int + Query string + Rows []ServiceRow + ServicesURL string + SortDir string + SortKey string + Total int + URL string + func (d ServicesPageData) TableState() components.DataTableState + type ShowPageData struct + AwaitingPayment bool + BackURL string + Booking BookingRow + CanCancel bool + CanConfirm bool + CanReschedule bool + CancelURL string + ChangeClosed bool + ConfirmURL string + HoldExpired bool + PaymentURL string + RescheduleURL string + type Span struct + End time.Time + Start time.Time + type Status string + const StatusAwaitingPayment + const StatusCancelled + const StatusCompleted + const StatusConfirmed + const StatusExpired + const StatusNoShow + const StatusScheduled + func (s Status) Valid() bool + type SubjectResolver interface + Resolve func(ctx context.Context, tenant string, subject BookingSubject) (label string, err error) + type Summary struct + CancelReason string + CancelledBy string + Code string + CompletedAt *time.Time + CompletedBy string + CompletedByName string + ConfirmedAt *time.Time + CreatedAt time.Time + CustomerNote string + EndsAt time.Time + HoldUntil *time.Time + ID string + PaymentRef string + ReleasedBy string + ReleasedByName string + ReleasedReason string + RemindedAt *time.Time + RequesterID string + RequesterName string + Reschedules int + ServiceKey string + ServiceName string + StartsAt time.Time + Status Status + Subject BookingSubject + TeamNote string + Tenant string + UpdatedAt time.Time + type TeamIndexPageData struct + CanConfigure bool + ClosuresURL string + CurrentPage int + Day string + HoursURL string + Pager components.Paginator + Pages int + PerPage int + Query string + Rows []BookingRow + ServicesURL string + SortDir string + SortKey string + StatusOptions []components.SelectOption + Statuses []string + Total int + URL string + func (d TeamIndexPageData) TableState() components.DataTableState + type TeamPolicy struct + Realm string + func (TeamPolicy) Writes(a security.Action) bool + func (p TeamPolicy) Can(_ context.Context, s security.Subject, a security.Action, _ Booking) error + type TeamQuery struct + Day string + Dir string + Page int + PerPage int + Search string + Sort string + Statuses []Status + Tenant string + type TeamService struct + func NewTeamService(db *data.DB, cfg Config) *TeamService + func (s *TeamService) Booking(ctx context.Context, actor security.Subject, id string) (Summary, error) + func (s *TeamService) Bookings(ctx context.Context, actor security.Subject, q TeamQuery) (Page, error) + func (s *TeamService) CanConfigure(ctx context.Context, actor security.Subject) error + func (s *TeamService) Cancel(ctx context.Context, actor security.Subject, id, reason string) (*Booking, error) + func (s *TeamService) Closures(ctx context.Context, actor security.Subject, q ConfigQuery) (Listing[ClosureView], error) + func (s *TeamService) Complete(ctx context.Context, actor security.Subject, id, note string) (*Booking, error) + func (s *TeamService) CreateClosure(ctx context.Context, actor security.Subject, in ClosureInput) (*Closure, error) + func (s *TeamService) CreateHour(ctx context.Context, actor security.Subject, in HourInput) (*Hour, error) + func (s *TeamService) CreateService(ctx context.Context, actor security.Subject, in ServiceInput) (*Service, error) + func (s *TeamService) DeleteClosure(ctx context.Context, actor security.Subject, id string) error + func (s *TeamService) DeleteHour(ctx context.Context, actor security.Subject, id string) error + func (s *TeamService) DeleteService(ctx context.Context, actor security.Subject, id string) error + func (s *TeamService) Hours(ctx context.Context, actor security.Subject, q ConfigQuery) (Listing[HourView], error) + func (s *TeamService) NoShow(ctx context.Context, actor security.Subject, id string) (*Booking, error) + func (s *TeamService) Release(ctx context.Context, actor security.Subject, id, reason string) (*Booking, error) + func (s *TeamService) Reschedule(ctx context.Context, actor security.Subject, id string, newStart time.Time) (*Booking, error) + func (s *TeamService) Service(ctx context.Context, actor security.Subject, id string) (ServiceView, error) + func (s *TeamService) Services(ctx context.Context, actor security.Subject, q ConfigQuery) (Listing[ServiceView], error) + func (s *TeamService) UpdateService(ctx context.Context, actor security.Subject, id string, in ServiceInput) (*Service, error) + type TeamShowPageData struct + BackURL string + Booking BookingRow + CanCancel bool + CanComplete bool + CanNoShow bool + CanRelease bool + CanReschedule bool + CancelURL string + CompleteURL string + Day string + MinDay string + NoShowURL string + ReleaseURL string + RescheduleURL string + Time string + type URLs struct + func NewURLs(prefix, teamPrefix string, paths Paths) URLs + func (u URLs) Cancel(id string) string + func (u URLs) Confirm(id string) string + func (u URLs) Index() string + func (u URLs) New() string + func (u URLs) NewFor(service string, subject BookingSubject) string + func (u URLs) Reschedule(id string) string + func (u URLs) Show(id string) string + func (u URLs) TeamCancel(id string) string + func (u URLs) TeamClosure(id string) string + func (u URLs) TeamClosureNew() string + func (u URLs) TeamClosures() string + func (u URLs) TeamComplete(id string) string + func (u URLs) TeamHour(id string) string + func (u URLs) TeamHourNew() string + func (u URLs) TeamHours() string + func (u URLs) TeamIndex() string + func (u URLs) TeamNoShow(id string) string + func (u URLs) TeamRelease(id string) string + func (u URLs) TeamReschedule(id string) string + func (u URLs) TeamService(id string) string + func (u URLs) TeamServiceNew() string + func (u URLs) TeamServices() string + func (u URLs) TeamShow(id string) string + type Window struct + EndMinute int + StartMinute int + Weekday int