Add OpenAPI docs, frontend, migrations, and API updates
- OpenAPI: add missing endpoints (add-from-url, subscriptions, public availability) - OpenAPI: CalendarSubscription schema, Subscriptions tag - Frontend app - Migrations: count_for_availability, subscriptions_sync, user_preferences, calendar_settings - Config, rate limit, auth, calendar, booking, ICS, availability, user service updates Made-with: Cursor
This commit is contained in:
@@ -7,22 +7,35 @@ import (
|
||||
)
|
||||
|
||||
type User struct {
|
||||
ID uuid.UUID `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Timezone string `json:"timezone"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
ID uuid.UUID `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Timezone string `json:"timezone"`
|
||||
WeekStartDay int `json:"week_start_day"`
|
||||
DateFormat string `json:"date_format"`
|
||||
TimeFormat string `json:"time_format"`
|
||||
DefaultEventDurationMinutes int `json:"default_event_duration_minutes"`
|
||||
DefaultReminderMinutes int `json:"default_reminder_minutes"`
|
||||
ShowWeekends bool `json:"show_weekends"`
|
||||
WorkingHoursStart string `json:"working_hours_start"`
|
||||
WorkingHoursEnd string `json:"working_hours_end"`
|
||||
NotificationsEmail bool `json:"notifications_email"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
type Calendar struct {
|
||||
ID uuid.UUID `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Color string `json:"color"`
|
||||
IsPublic bool `json:"is_public"`
|
||||
ICalURL string `json:"ical_url,omitempty"`
|
||||
Role string `json:"role,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
ID uuid.UUID `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Color string `json:"color"`
|
||||
IsPublic bool `json:"is_public"`
|
||||
CountForAvailability bool `json:"count_for_availability"`
|
||||
DefaultReminderMinutes *int `json:"default_reminder_minutes,omitempty"`
|
||||
SortOrder int `json:"sort_order"`
|
||||
ICalURL string `json:"ical_url,omitempty"`
|
||||
AvailabilityURL string `json:"availability_url,omitempty"`
|
||||
Role string `json:"role,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
type Event struct {
|
||||
|
||||
Reference in New Issue
Block a user