Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateEventCommand ¶
type Event ¶
type Event struct {
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
StartAt string `json:"startAt"`
EndAt string `json:"endAt"`
AllDay bool `json:"allDay"`
Timezone string `json:"timezone"`
Location string `json:"location,omitempty"`
Color string `json:"color"`
RecurrenceFrequency string `json:"recurrenceFrequency"`
RecurrenceInterval int `json:"recurrenceInterval"`
ReminderMinutesBefore int `json:"reminderMinutesBefore"`
}
type EventMutationResult ¶
type EventMutationResult struct {
OK bool `json:"ok"`
Action string `json:"action"`
Event Event `json:"event"`
}
func CreateEvent ¶
func CreateEvent(ctx context.Context, app core.App, actorID string, command CreateEventCommand) (EventMutationResult, error)
func UpdateEvent ¶
func UpdateEvent(ctx context.Context, app core.App, actorID string, command UpdateEventCommand) (EventMutationResult, error)
type EventOccurrence ¶
type EventOccurrence struct {
Event
OccurrenceDate string `json:"occurrenceDate"`
InstanceStart string `json:"instanceStart"`
InstanceEnd string `json:"instanceEnd"`
}
func OccurrenceOnDate ¶
func OccurrenceOnDate(record *core.Record, requested time.Time, location *time.Location) (EventOccurrence, bool)
OccurrenceOnDate returns the event occurrence on requested in the provided system location. Notification scheduling uses this to keep all reminders on the configured system timezone instead of the process or browser timezone.
type ScheduleDay ¶
type ScheduleDay struct {
Date string `json:"date"`
Tasks []ScheduleTask `json:"tasks"`
Events []EventOccurrence `json:"events"`
}
type ScheduleResult ¶
type ScheduleResult struct {
Days []ScheduleDay `json:"days"`
}
func GetSchedule ¶
type ScheduleTask ¶
type ScheduleTask struct {
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
Priority string `json:"priority"`
DueDate string `json:"dueDate"`
ProjectID string `json:"projectId"`
ProjectName string `json:"projectName"`
StateID string `json:"stateId"`
StateName string `json:"stateName"`
Completed bool `json:"completed"`
}
Click to show internal directories.
Click to hide internal directories.