Versions in this module Expand all Collapse all v0 v0.2.1 Nov 16, 2026 v0.2.0 Nov 15, 2026 Changes in this version type IndexPageData + Hidden []string + func (d IndexPageData) TableState() components.DataTableState type TeamIndexPageData + Hidden []string + PerPage int + func (d TeamIndexPageData) TableState() components.DataTableState v0.1.0 Oct 26, 2026 Changes in this version + const ActivityAttachmentRead + const ActivityLogName + const ActivityRefType + const ActivityTicketAssigned + const ActivityTicketClosed + const ActivityTicketNoteAdded + const ActivityTicketOpened + const ActivityTicketPriorityChanged + const ActivityTicketReopened + const ActivityTicketReplied + const ActivityTicketStatusChanged + const AssigneeNone + const DefaultContactWindow + const DefaultLocale + const DefaultLocation + const DefaultMaxAttachmentBytes + const DefaultMaxAttachments + const DefaultPageSize + const DefaultPrefix + const DefaultTeamPrefix + const FallbackLocale + const MaxAttachmentBytesLimit + const MaxAttachmentsLimit + const MaxBodyChars + const MaxContactWindow + const MaxPageSize + const PublishCommand + const TicketAssign + const TicketClose + const TicketCreate + const TicketManage + const TicketNote + const TicketOpenFromContact + const TicketReply + const TicketViewAll + const TicketViewOwn + const TicketViewSpace + const TranslationGroup + const ViewIndex + const ViewNew + const ViewShow + const ViewTeamIndex + const ViewTeamShow + var DefaultPaths = Paths + var ErrNoAccount = errors.New("ticket: no account has that e-mail") + var ErrNotFound = fmt.Errorf("ticket: record not found: %w", model.ErrModelNotFound) + var PortuguesePaths = Paths + var Priorities = []Priority + var Statuses = []Status + func Actions() []security.Action + func AttachmentTypes() []string + func Lines(locale string) translation.Lines + func Locales() []string + func PriorityVariant(key string) string + func Prose(message MessageRow) template.HTML + func PublishedPaths() []string + func StatusVariant(key string) string + func TeamActions() []security.Action + func ViewNames() []string + func ViewPackages() []string + type Account struct + Email string + Name string + Tenant string + UserID string + type AccountResolver interface + Resolve func(ctx context.Context, email string) (Account, error) + type Attachment struct + ContentType string + CreatedAt time.Time + ID string + Key string + MessageID string + Name string + SHA256 string + Size int64 + TenantID string + TicketID string + func (row *Attachment) Fresh(ctx context.Context, g auth.Grant, with ...string) (*Attachment, error) + func (row *Attachment) Replicate(except ...string) (*Attachment, error) + type AttachmentCollection []*Attachment + func AttachmentCollectionOf(rows model.Rows) AttachmentCollection + func (c AttachmentCollection) Contains(key any) bool + func (c AttachmentCollection) Except(keys ...any) AttachmentCollection + func (c AttachmentCollection) Find(key any) *Attachment + func (c AttachmentCollection) FindOrFail(key any) (*Attachment, error) + func (c AttachmentCollection) Fresh(ctx context.Context, g auth.Grant, with ...string) (AttachmentCollection, error) + func (c AttachmentCollection) Load(ctx context.Context, g auth.Grant, relations ...string) error + func (c AttachmentCollection) LoadCount(ctx context.Context, g auth.Grant, relations ...string) error + func (c AttachmentCollection) LoadMissing(ctx context.Context, g auth.Grant, relations ...string) error + func (c AttachmentCollection) ModelKeys() []any + func (c AttachmentCollection) Only(keys ...any) AttachmentCollection + func (c AttachmentCollection) Pluck(column string) []any + func (c AttachmentCollection) Rows() model.Rows + func (c AttachmentCollection) ToArray() []map[string]any + func (c AttachmentCollection) Unique() AttachmentCollection + type AttachmentQuery struct + func Attachments(db model.DB) *AttachmentQuery + func (q *AttachmentQuery) AddSelect(columns ...any) *AttachmentQuery + func (q *AttachmentQuery) Avg(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *AttachmentQuery) Base() *model.Builder + func (q *AttachmentQuery) Chunk(ctx context.Context, g auth.Grant, count int, ...) error + func (q *AttachmentQuery) Clone() *AttachmentQuery + func (q *AttachmentQuery) Count(ctx context.Context, g auth.Grant, columns ...any) (int64, error) + func (q *AttachmentQuery) Create(ctx context.Context, g auth.Grant, attributes map[string]any) (*Attachment, error) + func (q *AttachmentQuery) Cursor(ctx context.Context, g auth.Grant) iter.Seq2[*Attachment, error] + func (q *AttachmentQuery) CursorPaginate(ctx context.Context, g auth.Grant, perPage int, cursor *pagination.Cursor, ...) (AttachmentCollection, *pagination.CursorPage, error) + func (q *AttachmentQuery) Decrement(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *AttachmentQuery) Delete(ctx context.Context, g auth.Grant) (int64, error) + func (q *AttachmentQuery) DoesntExist(ctx context.Context, g auth.Grant) (bool, error) + func (q *AttachmentQuery) DoesntHave(relation, boolean string, callback func(*query.Builder)) *AttachmentQuery + func (q *AttachmentQuery) Each(ctx context.Context, g auth.Grant, count int, ...) error + func (q *AttachmentQuery) Exists(ctx context.Context, g auth.Grant) (bool, error) + func (q *AttachmentQuery) Find(ctx context.Context, g auth.Grant, id any, columns ...any) (*Attachment, error) + func (q *AttachmentQuery) FindMany(ctx context.Context, g auth.Grant, ids []any, columns ...any) (AttachmentCollection, error) + func (q *AttachmentQuery) FindOrFail(ctx context.Context, g auth.Grant, id any, columns ...any) (*Attachment, error) + func (q *AttachmentQuery) FindOrNew(ctx context.Context, g auth.Grant, id any, columns ...any) (*Attachment, error) + func (q *AttachmentQuery) First(ctx context.Context, g auth.Grant, columns ...any) (*Attachment, error) + func (q *AttachmentQuery) FirstOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Attachment, error) + func (q *AttachmentQuery) FirstOrFail(ctx context.Context, g auth.Grant, columns ...any) (*Attachment, error) + func (q *AttachmentQuery) FirstOrNew(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Attachment, error) + func (q *AttachmentQuery) FirstWhere(ctx context.Context, g auth.Grant, column any, args ...any) (*Attachment, error) + func (q *AttachmentQuery) ForPage(page, perPage int) *AttachmentQuery + func (q *AttachmentQuery) ForceCreate(ctx context.Context, g auth.Grant, attributes map[string]any) (*Attachment, error) + func (q *AttachmentQuery) Get(ctx context.Context, g auth.Grant, columns ...any) (AttachmentCollection, error) + func (q *AttachmentQuery) GroupBy(groups ...any) *AttachmentQuery + func (q *AttachmentQuery) Has(relation, operator string, count int, boolean string, ...) *AttachmentQuery + func (q *AttachmentQuery) Increment(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *AttachmentQuery) Insert(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *AttachmentQuery) InsertOrIgnore(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *AttachmentQuery) Join(table any, first any, args ...any) *AttachmentQuery + func (q *AttachmentQuery) Latest(column ...string) *AttachmentQuery + func (q *AttachmentQuery) Limit(value int) *AttachmentQuery + func (q *AttachmentQuery) Max(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *AttachmentQuery) Min(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *AttachmentQuery) New() (*Attachment, error) + func (q *AttachmentQuery) Offset(value int) *AttachmentQuery + func (q *AttachmentQuery) Oldest(column ...string) *AttachmentQuery + func (q *AttachmentQuery) OrDoesntHave(relation string) *AttachmentQuery + func (q *AttachmentQuery) OrHas(relation, operator string, count int) *AttachmentQuery + func (q *AttachmentQuery) OrWhere(column any, args ...any) *AttachmentQuery + func (q *AttachmentQuery) OrWhereDoesntHave(relation string, callback func(*query.Builder)) *AttachmentQuery + func (q *AttachmentQuery) OrWhereHas(relation string, callback func(*query.Builder)) *AttachmentQuery + func (q *AttachmentQuery) OrWhereNot(column any, args ...any) *AttachmentQuery + func (q *AttachmentQuery) OrWhereRelation(relation string, column any, args ...any) *AttachmentQuery + func (q *AttachmentQuery) OrderBy(column any, direction ...string) *AttachmentQuery + func (q *AttachmentQuery) OrderByDesc(column any) *AttachmentQuery + func (q *AttachmentQuery) Paginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (AttachmentCollection, *pagination.LengthAwarePage, error) + func (q *AttachmentQuery) Pluck(ctx context.Context, g auth.Grant, column string) ([]any, error) + func (q *AttachmentQuery) Select(columns ...any) *AttachmentQuery + func (q *AttachmentQuery) SelectRaw(expression string, bindings ...any) *AttachmentQuery + func (q *AttachmentQuery) SimplePaginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (AttachmentCollection, *pagination.Page, error) + func (q *AttachmentQuery) Sole(ctx context.Context, g auth.Grant, columns ...any) (*Attachment, error) + func (q *AttachmentQuery) SoleValue(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *AttachmentQuery) Sum(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *AttachmentQuery) Touch(ctx context.Context, g auth.Grant, column ...string) (int64, error) + func (q *AttachmentQuery) Update(ctx context.Context, g auth.Grant, values map[string]any) (int64, error) + func (q *AttachmentQuery) UpdateOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Attachment, error) + func (q *AttachmentQuery) Upsert(ctx context.Context, g auth.Grant, values []map[string]any, ...) (int64, error) + func (q *AttachmentQuery) Value(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *AttachmentQuery) ValueOrFail(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *AttachmentQuery) Where(column any, args ...any) *AttachmentQuery + func (q *AttachmentQuery) WhereBelongsTo(relationshipName string, related ...model.Entity) *AttachmentQuery + func (q *AttachmentQuery) WhereBetween(column any, from, to any) *AttachmentQuery + func (q *AttachmentQuery) WhereColumn(first any, args ...any) *AttachmentQuery + func (q *AttachmentQuery) WhereDoesntHave(relation string, callback func(*query.Builder)) *AttachmentQuery + func (q *AttachmentQuery) WhereExists(callback func(*query.Builder)) *AttachmentQuery + func (q *AttachmentQuery) WhereHas(relation string, callback func(*query.Builder)) *AttachmentQuery + func (q *AttachmentQuery) WhereHasCount(relation string, callback func(*query.Builder), operator string, count int) *AttachmentQuery + func (q *AttachmentQuery) WhereIn(column any, values []any) *AttachmentQuery + func (q *AttachmentQuery) WhereKey(id any) *AttachmentQuery + func (q *AttachmentQuery) WhereNot(column any, args ...any) *AttachmentQuery + func (q *AttachmentQuery) WhereNotExists(callback func(*query.Builder)) *AttachmentQuery + func (q *AttachmentQuery) WhereNotIn(column any, values []any) *AttachmentQuery + func (q *AttachmentQuery) WhereNotNull(columns ...any) *AttachmentQuery + func (q *AttachmentQuery) WhereNull(columns ...any) *AttachmentQuery + func (q *AttachmentQuery) WhereRelation(relation string, column any, args ...any) *AttachmentQuery + func (q *AttachmentQuery) With(relations ...string) *AttachmentQuery + func (q *AttachmentQuery) WithAvg(relation, column string) *AttachmentQuery + func (q *AttachmentQuery) WithCount(relations ...string) *AttachmentQuery + func (q *AttachmentQuery) WithExists(relation string) *AttachmentQuery + func (q *AttachmentQuery) WithMax(relation, column string) *AttachmentQuery + func (q *AttachmentQuery) WithMin(relation, column string) *AttachmentQuery + func (q *AttachmentQuery) WithSum(relation, column string) *AttachmentQuery + func (q *AttachmentQuery) Without(relations ...string) *AttachmentQuery + func (q *AttachmentQuery) WithoutGlobalScope(identifier string) *AttachmentQuery + func (q *AttachmentQuery) WithoutGlobalScopes(identifiers ...string) *AttachmentQuery + type AttachmentView struct + ContentType string + ID string + Name string + Size int64 + type ChromeRequest struct + Subject security.Subject + Team bool + Title string + type Config struct + Accounts AccountResolver + Activity *activitylog.Logger + Chrome func(ctx *fhttp.Context, req ChromeRequest) (any, error) + ContactWindow time.Duration + Directory Directory + Files *filesystem.Disk + Locale string + Location *time.Location + Logger *slog.Logger + Markdown *markdown.Module + MaxAttachmentBytes int64 + MaxAttachments int + Middleware []func(http.Handler) http.Handler + Notifier Notifier + Now func() time.Time + PageSize int + Paths Paths + Prefix string + TeamMiddleware []func(http.Handler) http.Handler + TeamPrefix string + TeamTenant string + TitleSeparator string + Translator *translation.Translator + func (c Config) Validate() error + type ContactInput struct + Body string + Email string + Name string + Subject string + type ContactResult struct + Duplicate bool + Ticket *Ticket + type Conversation struct + Messages []MessageView + Ticket Summary + type Counter struct + ID string + LastNumber int64 + TenantID string + 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) 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) 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) + Team func(ctx context.Context) ([]Person, error) + type Event struct + Kind EventKind + Message MessageView + Ticket Summary + type EventKind string + const EventCustomerReplied + const EventOpened + const EventTeamReplied + func (k EventKind) ForTeam() bool + type FileRow struct + Name string + Size string + Type string + URL string + 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 IndexPageData struct + CanCreate bool + CurrentPage int + NewURL string + Pager components.Paginator + Pages int + PerPage int + Query string + Rows []TicketRow + SortDir string + SortKey string + StatusOptions []components.SelectOption + Statuses []string + Total int + URL string + type Labels struct + Locale string + func (l Labels) Field(name string) string + func (l Labels) Origin(o Origin) string + func (l Labels) Priority(p Priority) string + func (l Labels) Role(r Role) string + func (l Labels) Status(s Status) string + func (l Labels) Summary(errs validation.Errors) []string + func (l Labels) T(key string) string + type ListQuery struct + Dir string + Page int + PerPage int + Search string + Sort string + Statuses []Status + type Message struct + AuthorID string + AuthorName string + Body string + CreatedAt time.Time + ID string + Internal Flag + Role Role + TenantID string + TicketID string + func (row *Message) Fresh(ctx context.Context, g auth.Grant, with ...string) (*Message, error) + func (row *Message) Replicate(except ...string) (*Message, error) + type MessageCollection []*Message + func MessageCollectionOf(rows model.Rows) MessageCollection + func (c MessageCollection) Contains(key any) bool + func (c MessageCollection) Except(keys ...any) MessageCollection + func (c MessageCollection) Find(key any) *Message + func (c MessageCollection) FindOrFail(key any) (*Message, error) + func (c MessageCollection) Fresh(ctx context.Context, g auth.Grant, with ...string) (MessageCollection, error) + func (c MessageCollection) Load(ctx context.Context, g auth.Grant, relations ...string) error + func (c MessageCollection) LoadCount(ctx context.Context, g auth.Grant, relations ...string) error + func (c MessageCollection) LoadMissing(ctx context.Context, g auth.Grant, relations ...string) error + func (c MessageCollection) ModelKeys() []any + func (c MessageCollection) Only(keys ...any) MessageCollection + func (c MessageCollection) Pluck(column string) []any + func (c MessageCollection) Rows() model.Rows + func (c MessageCollection) ToArray() []map[string]any + func (c MessageCollection) Unique() MessageCollection + type MessageQuery struct + func Messages(db model.DB) *MessageQuery + func (q *MessageQuery) AddSelect(columns ...any) *MessageQuery + func (q *MessageQuery) Avg(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *MessageQuery) Base() *model.Builder + func (q *MessageQuery) Chunk(ctx context.Context, g auth.Grant, count int, ...) error + func (q *MessageQuery) Clone() *MessageQuery + func (q *MessageQuery) Count(ctx context.Context, g auth.Grant, columns ...any) (int64, error) + func (q *MessageQuery) Create(ctx context.Context, g auth.Grant, attributes map[string]any) (*Message, error) + func (q *MessageQuery) Cursor(ctx context.Context, g auth.Grant) iter.Seq2[*Message, error] + func (q *MessageQuery) CursorPaginate(ctx context.Context, g auth.Grant, perPage int, cursor *pagination.Cursor, ...) (MessageCollection, *pagination.CursorPage, error) + func (q *MessageQuery) Decrement(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *MessageQuery) Delete(ctx context.Context, g auth.Grant) (int64, error) + func (q *MessageQuery) DoesntExist(ctx context.Context, g auth.Grant) (bool, error) + func (q *MessageQuery) DoesntHave(relation, boolean string, callback func(*query.Builder)) *MessageQuery + func (q *MessageQuery) Each(ctx context.Context, g auth.Grant, count int, ...) error + func (q *MessageQuery) Exists(ctx context.Context, g auth.Grant) (bool, error) + func (q *MessageQuery) Find(ctx context.Context, g auth.Grant, id any, columns ...any) (*Message, error) + func (q *MessageQuery) FindMany(ctx context.Context, g auth.Grant, ids []any, columns ...any) (MessageCollection, error) + func (q *MessageQuery) FindOrFail(ctx context.Context, g auth.Grant, id any, columns ...any) (*Message, error) + func (q *MessageQuery) FindOrNew(ctx context.Context, g auth.Grant, id any, columns ...any) (*Message, error) + func (q *MessageQuery) First(ctx context.Context, g auth.Grant, columns ...any) (*Message, error) + func (q *MessageQuery) FirstOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Message, error) + func (q *MessageQuery) FirstOrFail(ctx context.Context, g auth.Grant, columns ...any) (*Message, error) + func (q *MessageQuery) FirstOrNew(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Message, error) + func (q *MessageQuery) FirstWhere(ctx context.Context, g auth.Grant, column any, args ...any) (*Message, error) + func (q *MessageQuery) ForPage(page, perPage int) *MessageQuery + func (q *MessageQuery) ForceCreate(ctx context.Context, g auth.Grant, attributes map[string]any) (*Message, error) + func (q *MessageQuery) Get(ctx context.Context, g auth.Grant, columns ...any) (MessageCollection, error) + func (q *MessageQuery) GroupBy(groups ...any) *MessageQuery + func (q *MessageQuery) Has(relation, operator string, count int, boolean string, ...) *MessageQuery + func (q *MessageQuery) Increment(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *MessageQuery) Insert(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *MessageQuery) InsertOrIgnore(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *MessageQuery) Join(table any, first any, args ...any) *MessageQuery + func (q *MessageQuery) Latest(column ...string) *MessageQuery + func (q *MessageQuery) Limit(value int) *MessageQuery + func (q *MessageQuery) Max(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *MessageQuery) Min(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *MessageQuery) New() (*Message, error) + func (q *MessageQuery) Offset(value int) *MessageQuery + func (q *MessageQuery) Oldest(column ...string) *MessageQuery + func (q *MessageQuery) OrDoesntHave(relation string) *MessageQuery + func (q *MessageQuery) OrHas(relation, operator string, count int) *MessageQuery + func (q *MessageQuery) OrWhere(column any, args ...any) *MessageQuery + func (q *MessageQuery) OrWhereDoesntHave(relation string, callback func(*query.Builder)) *MessageQuery + func (q *MessageQuery) OrWhereHas(relation string, callback func(*query.Builder)) *MessageQuery + func (q *MessageQuery) OrWhereNot(column any, args ...any) *MessageQuery + func (q *MessageQuery) OrWhereRelation(relation string, column any, args ...any) *MessageQuery + func (q *MessageQuery) OrderBy(column any, direction ...string) *MessageQuery + func (q *MessageQuery) OrderByDesc(column any) *MessageQuery + func (q *MessageQuery) Paginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (MessageCollection, *pagination.LengthAwarePage, error) + func (q *MessageQuery) Pluck(ctx context.Context, g auth.Grant, column string) ([]any, error) + func (q *MessageQuery) Select(columns ...any) *MessageQuery + func (q *MessageQuery) SelectRaw(expression string, bindings ...any) *MessageQuery + func (q *MessageQuery) SimplePaginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (MessageCollection, *pagination.Page, error) + func (q *MessageQuery) Sole(ctx context.Context, g auth.Grant, columns ...any) (*Message, error) + func (q *MessageQuery) SoleValue(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *MessageQuery) Sum(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *MessageQuery) Touch(ctx context.Context, g auth.Grant, column ...string) (int64, error) + func (q *MessageQuery) Update(ctx context.Context, g auth.Grant, values map[string]any) (int64, error) + func (q *MessageQuery) UpdateOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Message, error) + func (q *MessageQuery) Upsert(ctx context.Context, g auth.Grant, values []map[string]any, ...) (int64, error) + func (q *MessageQuery) Value(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *MessageQuery) ValueOrFail(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *MessageQuery) Where(column any, args ...any) *MessageQuery + func (q *MessageQuery) WhereBelongsTo(relationshipName string, related ...model.Entity) *MessageQuery + func (q *MessageQuery) WhereBetween(column any, from, to any) *MessageQuery + func (q *MessageQuery) WhereColumn(first any, args ...any) *MessageQuery + func (q *MessageQuery) WhereDoesntHave(relation string, callback func(*query.Builder)) *MessageQuery + func (q *MessageQuery) WhereExists(callback func(*query.Builder)) *MessageQuery + func (q *MessageQuery) WhereHas(relation string, callback func(*query.Builder)) *MessageQuery + func (q *MessageQuery) WhereHasCount(relation string, callback func(*query.Builder), operator string, count int) *MessageQuery + func (q *MessageQuery) WhereIn(column any, values []any) *MessageQuery + func (q *MessageQuery) WhereKey(id any) *MessageQuery + func (q *MessageQuery) WhereNot(column any, args ...any) *MessageQuery + func (q *MessageQuery) WhereNotExists(callback func(*query.Builder)) *MessageQuery + func (q *MessageQuery) WhereNotIn(column any, values []any) *MessageQuery + func (q *MessageQuery) WhereNotNull(columns ...any) *MessageQuery + func (q *MessageQuery) WhereNull(columns ...any) *MessageQuery + func (q *MessageQuery) WhereRelation(relation string, column any, args ...any) *MessageQuery + func (q *MessageQuery) With(relations ...string) *MessageQuery + func (q *MessageQuery) WithAvg(relation, column string) *MessageQuery + func (q *MessageQuery) WithCount(relations ...string) *MessageQuery + func (q *MessageQuery) WithExists(relation string) *MessageQuery + func (q *MessageQuery) WithMax(relation, column string) *MessageQuery + func (q *MessageQuery) WithMin(relation, column string) *MessageQuery + func (q *MessageQuery) WithSum(relation, column string) *MessageQuery + func (q *MessageQuery) Without(relations ...string) *MessageQuery + func (q *MessageQuery) WithoutGlobalScope(identifier string) *MessageQuery + func (q *MessageQuery) WithoutGlobalScopes(identifiers ...string) *MessageQuery + type MessageRow struct + Author string + Body template.HTML + Files []FileRow + ID string + Internal bool + Role string + RoleKey string + When string + WhenISO string + type MessageView struct + Attachments []AttachmentView + AuthorID string + AuthorName string + Body string + CreatedAt time.Time + ID string + Internal bool + Role Role + type Module struct + func New(cfg Config, db *data.DB, sessions *security.SessionStore) (*Module, error) + func (m *Module) Boot(context.Context) error + func (m *Module) CustomerRoutes(r *fhttp.Router) + 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) Routes(r *fhttp.Router) + func (m *Module) Team() *TeamService + func (m *Module) TeamRoutes(r *fhttp.Router) + func (m *Module) Tickets() *TicketService + func (m *Module) URLs() URLs + type NewPageData struct + Accept string + Action string + BackURL string + Files bool + MaxFiles int + MaxMB string + type Notifier interface + Notify func(ctx context.Context, e Event) error + type OpenRequest struct + Body string + Category string + Subject string + type Origin string + const OriginContactForm + const OriginEmail + const OriginWeb + func (o Origin) Valid() bool + type Page struct + Page int + Pages int + Rows []Summary + Total int + type Paths struct + Assignee string + Attachments string + Closure string + New string + Notes string + Priority string + Reopening string + Replies string + Status string + type Person struct + Email string + ID string + Name string + type Priority string + const PriorityHigh + const PriorityLow + const PriorityNormal + const PriorityUrgent + func (p Priority) Valid() bool + type ReplyRequest struct + Body string + type Role string + const RoleCustomer + const RoleSystem + const RoleTeam + type Screen struct + Labels Labels + Location *time.Location + URLs URLs + func (s Screen) All() []string + func (s Screen) Chrome() any + func (s Screen) ErrorSummary() []string + func (s Screen) FieldErrors(name string) []string + func (s Screen) FilesHint(max int, mb 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) PriorityOptions() []components.SelectOption + func (s Screen) SearchLabel(table string) string + func (s Screen) StatusOptions() []components.SelectOption + func (s Screen) TableLines() components.DataTableLines + func (s Screen) When(t time.Time) string + type ShowPageData struct + Accept string + BackURL string + CanClose bool + CanReopen bool + CanReply bool + CloseURL string + Files bool + MaxFiles int + MaxMB string + Messages []MessageRow + ReopenURL string + ReplyURL string + Ticket TicketRow + type Status string + const StatusClosed + const StatusOpen + const StatusResolved + const StatusWaitingCustomer + const StatusWaitingTeam + func (s Status) Valid() bool + type Summary struct + AssigneeID string + AssigneeName string + Category string + ClosedAt *time.Time + CreatedAt time.Time + ID string + LastMessageAt time.Time + Number int64 + Origin Origin + Priority Priority + RequesterEmail string + RequesterID string + RequesterName string + Status Status + Subject string + Tenant string + UpdatedAt time.Time + func (s Summary) Code() string + type TeamIndexPageData struct + Assignee string + AssigneeOptions []components.SelectOption + CurrentPage int + Pager components.Paginator + Pages int + Priorities []string + PriorityOptions []components.SelectOption + Query string + Rows []TicketRow + SortDir string + SortKey string + Space string + StatusOptions []components.SelectOption + Statuses []string + Total int + URL string + type TeamPolicy struct + Realm string + func (TeamPolicy) Writes(a security.Action) bool + func (p TeamPolicy) Can(_ context.Context, s security.Subject, a security.Action, _ Ticket) error + type TeamQuery struct + Assignee string + Dir string + Page int + PerPage int + Priorities []Priority + Search string + Sort string + Statuses []Status + Tenant string + type TeamService struct + func NewTeamService(db *data.DB, cfg Config) *TeamService + func (s *TeamService) Assign(ctx context.Context, actor security.Subject, id, assigneeID string) (*Ticket, error) + func (s *TeamService) Attachment(ctx context.Context, actor security.Subject, ticketID, attachmentID string) (*Attachment, filesystem.File, error) + func (s *TeamService) Find(ctx context.Context, actor security.Subject, id string) (Conversation, error) + func (s *TeamService) List(ctx context.Context, actor security.Subject, q TeamQuery) (Page, error) + func (s *TeamService) Note(ctx context.Context, actor security.Subject, id string, in ReplyRequest, ...) (*Message, error) + func (s *TeamService) Reply(ctx context.Context, actor security.Subject, id string, in ReplyRequest, ...) (*Message, error) + func (s *TeamService) SetPriority(ctx context.Context, actor security.Subject, id string, next Priority) (*Ticket, error) + func (s *TeamService) SetStatus(ctx context.Context, actor security.Subject, id string, next Status) (*Ticket, error) + func (s *TeamService) Team(ctx context.Context, actor security.Subject) ([]Person, error) + type TeamShowPageData struct + Accept string + AssignURL string + AssigneeOptions []components.SelectOption + BackURL string + CanAssign bool + CanManage bool + CanNote bool + CanReply bool + Files bool + MaxFiles int + MaxMB string + Messages []MessageRow + NoteURL string + PriorityOptions []components.SelectOption + PriorityURL string + ReplyURL string + StatusOptions []components.SelectOption + StatusURL string + Ticket TicketRow + type Ticket struct + AssigneeID string + AssigneeName string + Category string + ClosedAt *time.Time + CreatedAt time.Time + ID string + LastMessageAt time.Time + Number int64 + Origin Origin + OriginKey string + Priority Priority + RequesterEmail string + RequesterID string + RequesterName string + Status Status + Subject string + TenantID string + UpdatedAt time.Time + func (row *Ticket) Fresh(ctx context.Context, g auth.Grant, with ...string) (*Ticket, error) + func (row *Ticket) Replicate(except ...string) (*Ticket, error) + func (t *Ticket) AddNote(now time.Time) error + func (t *Ticket) Assign(id, name string, now time.Time) error + func (t *Ticket) Close(now time.Time) error + func (t *Ticket) ReceiveCustomerReply(now time.Time) error + func (t *Ticket) ReceiveTeamReply(now time.Time) error + func (t *Ticket) Reopen(now time.Time) error + func (t *Ticket) SetPriority(next Priority, now time.Time) error + func (t *Ticket) SetStatus(next Status, now time.Time) error + func (t Ticket) CanClose() bool + func (t Ticket) CanReopen() bool + func (t Ticket) CanReply() bool + func (t Ticket) Code() string + func (t Ticket) IsClosed() bool + type TicketCollection []*Ticket + func TicketCollectionOf(rows model.Rows) TicketCollection + func (c TicketCollection) Contains(key any) bool + func (c TicketCollection) Except(keys ...any) TicketCollection + func (c TicketCollection) Find(key any) *Ticket + func (c TicketCollection) FindOrFail(key any) (*Ticket, error) + func (c TicketCollection) Fresh(ctx context.Context, g auth.Grant, with ...string) (TicketCollection, error) + func (c TicketCollection) Load(ctx context.Context, g auth.Grant, relations ...string) error + func (c TicketCollection) LoadCount(ctx context.Context, g auth.Grant, relations ...string) error + func (c TicketCollection) LoadMissing(ctx context.Context, g auth.Grant, relations ...string) error + func (c TicketCollection) ModelKeys() []any + func (c TicketCollection) Only(keys ...any) TicketCollection + func (c TicketCollection) Pluck(column string) []any + func (c TicketCollection) Rows() model.Rows + func (c TicketCollection) ToArray() []map[string]any + func (c TicketCollection) Unique() TicketCollection + type TicketPolicy struct + func (TicketPolicy) Can(_ context.Context, s security.Subject, a security.Action, record Ticket) error + func (TicketPolicy) Writes(a security.Action) bool + type TicketQuery struct + func Tickets(db model.DB) *TicketQuery + func (q *TicketQuery) AddSelect(columns ...any) *TicketQuery + func (q *TicketQuery) Avg(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *TicketQuery) Base() *model.Builder + func (q *TicketQuery) Chunk(ctx context.Context, g auth.Grant, count int, ...) error + func (q *TicketQuery) Clone() *TicketQuery + func (q *TicketQuery) Count(ctx context.Context, g auth.Grant, columns ...any) (int64, error) + func (q *TicketQuery) Create(ctx context.Context, g auth.Grant, attributes map[string]any) (*Ticket, error) + func (q *TicketQuery) Cursor(ctx context.Context, g auth.Grant) iter.Seq2[*Ticket, error] + func (q *TicketQuery) CursorPaginate(ctx context.Context, g auth.Grant, perPage int, cursor *pagination.Cursor, ...) (TicketCollection, *pagination.CursorPage, error) + func (q *TicketQuery) Decrement(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *TicketQuery) Delete(ctx context.Context, g auth.Grant) (int64, error) + func (q *TicketQuery) DoesntExist(ctx context.Context, g auth.Grant) (bool, error) + func (q *TicketQuery) DoesntHave(relation, boolean string, callback func(*query.Builder)) *TicketQuery + func (q *TicketQuery) Each(ctx context.Context, g auth.Grant, count int, ...) error + func (q *TicketQuery) Exists(ctx context.Context, g auth.Grant) (bool, error) + func (q *TicketQuery) Find(ctx context.Context, g auth.Grant, id any, columns ...any) (*Ticket, error) + func (q *TicketQuery) FindMany(ctx context.Context, g auth.Grant, ids []any, columns ...any) (TicketCollection, error) + func (q *TicketQuery) FindOrFail(ctx context.Context, g auth.Grant, id any, columns ...any) (*Ticket, error) + func (q *TicketQuery) FindOrNew(ctx context.Context, g auth.Grant, id any, columns ...any) (*Ticket, error) + func (q *TicketQuery) First(ctx context.Context, g auth.Grant, columns ...any) (*Ticket, error) + func (q *TicketQuery) FirstOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Ticket, error) + func (q *TicketQuery) FirstOrFail(ctx context.Context, g auth.Grant, columns ...any) (*Ticket, error) + func (q *TicketQuery) FirstOrNew(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Ticket, error) + func (q *TicketQuery) FirstWhere(ctx context.Context, g auth.Grant, column any, args ...any) (*Ticket, error) + func (q *TicketQuery) ForPage(page, perPage int) *TicketQuery + func (q *TicketQuery) ForceCreate(ctx context.Context, g auth.Grant, attributes map[string]any) (*Ticket, error) + func (q *TicketQuery) Get(ctx context.Context, g auth.Grant, columns ...any) (TicketCollection, error) + func (q *TicketQuery) GroupBy(groups ...any) *TicketQuery + func (q *TicketQuery) Has(relation, operator string, count int, boolean string, ...) *TicketQuery + func (q *TicketQuery) Increment(ctx context.Context, g auth.Grant, column string, amount any, ...) (int64, error) + func (q *TicketQuery) Insert(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *TicketQuery) InsertOrIgnore(ctx context.Context, g auth.Grant, values ...map[string]any) (bool, error) + func (q *TicketQuery) Join(table any, first any, args ...any) *TicketQuery + func (q *TicketQuery) Latest(column ...string) *TicketQuery + func (q *TicketQuery) Limit(value int) *TicketQuery + func (q *TicketQuery) Max(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *TicketQuery) Min(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *TicketQuery) New() (*Ticket, error) + func (q *TicketQuery) Offset(value int) *TicketQuery + func (q *TicketQuery) Oldest(column ...string) *TicketQuery + func (q *TicketQuery) OrDoesntHave(relation string) *TicketQuery + func (q *TicketQuery) OrHas(relation, operator string, count int) *TicketQuery + func (q *TicketQuery) OrWhere(column any, args ...any) *TicketQuery + func (q *TicketQuery) OrWhereDoesntHave(relation string, callback func(*query.Builder)) *TicketQuery + func (q *TicketQuery) OrWhereHas(relation string, callback func(*query.Builder)) *TicketQuery + func (q *TicketQuery) OrWhereNot(column any, args ...any) *TicketQuery + func (q *TicketQuery) OrWhereRelation(relation string, column any, args ...any) *TicketQuery + func (q *TicketQuery) OrderBy(column any, direction ...string) *TicketQuery + func (q *TicketQuery) OrderByDesc(column any) *TicketQuery + func (q *TicketQuery) Paginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (TicketCollection, *pagination.LengthAwarePage, error) + func (q *TicketQuery) Pluck(ctx context.Context, g auth.Grant, column string) ([]any, error) + func (q *TicketQuery) Select(columns ...any) *TicketQuery + func (q *TicketQuery) SelectRaw(expression string, bindings ...any) *TicketQuery + func (q *TicketQuery) SimplePaginate(ctx context.Context, g auth.Grant, perPage, page int, opts pagination.Options, ...) (TicketCollection, *pagination.Page, error) + func (q *TicketQuery) Sole(ctx context.Context, g auth.Grant, columns ...any) (*Ticket, error) + func (q *TicketQuery) SoleValue(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *TicketQuery) Sum(ctx context.Context, g auth.Grant, column any) (any, error) + func (q *TicketQuery) Touch(ctx context.Context, g auth.Grant, column ...string) (int64, error) + func (q *TicketQuery) Update(ctx context.Context, g auth.Grant, values map[string]any) (int64, error) + func (q *TicketQuery) UpdateOrCreate(ctx context.Context, g auth.Grant, attributes, values map[string]any) (*Ticket, error) + func (q *TicketQuery) Upsert(ctx context.Context, g auth.Grant, values []map[string]any, ...) (int64, error) + func (q *TicketQuery) Value(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *TicketQuery) ValueOrFail(ctx context.Context, g auth.Grant, column string) (any, error) + func (q *TicketQuery) Where(column any, args ...any) *TicketQuery + func (q *TicketQuery) WhereBelongsTo(relationshipName string, related ...model.Entity) *TicketQuery + func (q *TicketQuery) WhereBetween(column any, from, to any) *TicketQuery + func (q *TicketQuery) WhereColumn(first any, args ...any) *TicketQuery + func (q *TicketQuery) WhereDoesntHave(relation string, callback func(*query.Builder)) *TicketQuery + func (q *TicketQuery) WhereExists(callback func(*query.Builder)) *TicketQuery + func (q *TicketQuery) WhereHas(relation string, callback func(*query.Builder)) *TicketQuery + func (q *TicketQuery) WhereHasCount(relation string, callback func(*query.Builder), operator string, count int) *TicketQuery + func (q *TicketQuery) WhereIn(column any, values []any) *TicketQuery + func (q *TicketQuery) WhereKey(id any) *TicketQuery + func (q *TicketQuery) WhereNot(column any, args ...any) *TicketQuery + func (q *TicketQuery) WhereNotExists(callback func(*query.Builder)) *TicketQuery + func (q *TicketQuery) WhereNotIn(column any, values []any) *TicketQuery + func (q *TicketQuery) WhereNotNull(columns ...any) *TicketQuery + func (q *TicketQuery) WhereNull(columns ...any) *TicketQuery + func (q *TicketQuery) WhereRelation(relation string, column any, args ...any) *TicketQuery + func (q *TicketQuery) With(relations ...string) *TicketQuery + func (q *TicketQuery) WithAvg(relation, column string) *TicketQuery + func (q *TicketQuery) WithCount(relations ...string) *TicketQuery + func (q *TicketQuery) WithExists(relation string) *TicketQuery + func (q *TicketQuery) WithMax(relation, column string) *TicketQuery + func (q *TicketQuery) WithMin(relation, column string) *TicketQuery + func (q *TicketQuery) WithSum(relation, column string) *TicketQuery + func (q *TicketQuery) Without(relations ...string) *TicketQuery + func (q *TicketQuery) WithoutGlobalScope(identifier string) *TicketQuery + func (q *TicketQuery) WithoutGlobalScopes(identifiers ...string) *TicketQuery + type TicketRow struct + Assignee string + AssigneeID string + Category string + Closed bool + Code string + Created string + CreatedSort string + ID string + Origin string + Priority string + PriorityKey string + Requester string + RequesterEmail string + Resolved bool + Space string + Status string + StatusKey string + Subject string + URL string + Updated string + UpdatedSort string + type TicketService struct + func NewTicketService(db *data.DB, cfg Config) *TicketService + func (s *TicketService) Attachment(ctx context.Context, actor security.Subject, ticketID, attachmentID string) (*Attachment, filesystem.File, error) + func (s *TicketService) CanOpen(ctx context.Context, actor security.Subject) error + func (s *TicketService) Close(ctx context.Context, actor security.Subject, id string) (*Ticket, error) + func (s *TicketService) Find(ctx context.Context, actor security.Subject, id string) (Conversation, error) + func (s *TicketService) List(ctx context.Context, actor security.Subject, q ListQuery) (Page, error) + func (s *TicketService) Open(ctx context.Context, actor security.Subject, in OpenRequest, uploads []Upload) (*Ticket, error) + func (s *TicketService) OpenFromContact(ctx context.Context, in ContactInput) (ContactResult, error) + func (s *TicketService) Reopen(ctx context.Context, actor security.Subject, id string) (*Ticket, error) + func (s *TicketService) Reply(ctx context.Context, actor security.Subject, id string, in ReplyRequest, ...) (*Message, error) + type URLs struct + func NewURLs(prefix, teamPrefix string, paths Paths) URLs + func (u URLs) Attachment(id, attachment string) string + func (u URLs) Close(id string) string + func (u URLs) Index() string + func (u URLs) New() string + func (u URLs) Reopen(id string) string + func (u URLs) Reply(id string) string + func (u URLs) Show(id string) string + func (u URLs) TeamAssign(id string) string + func (u URLs) TeamAttachment(id, attachment string) string + func (u URLs) TeamIndex() string + func (u URLs) TeamNote(id string) string + func (u URLs) TeamPriority(id string) string + func (u URLs) TeamReply(id string) string + func (u URLs) TeamShow(id string) string + func (u URLs) TeamStatus(id string) string + type Upload struct + Body io.Reader + Name string