2016-03-16 05:49:52 +08:00
|
|
|
package dtos
|
|
|
|
|
|
2022-04-21 21:03:17 +08:00
|
|
|
import (
|
|
|
|
|
pref "github.com/grafana/grafana/pkg/services/preference"
|
|
|
|
|
)
|
2022-03-17 20:07:20 +08:00
|
|
|
|
2022-02-08 20:38:43 +08:00
|
|
|
// swagger:model
|
2016-04-03 04:54:06 +08:00
|
|
|
type UpdatePrefsCmd struct {
|
2023-01-30 17:51:51 +08:00
|
|
|
// Enum: light,dark,system
|
2022-02-08 20:38:43 +08:00
|
|
|
Theme string `json:"theme"`
|
|
|
|
|
// The numerical :id of a favorited dashboard
|
|
|
|
|
// Default:0
|
2022-04-29 20:37:33 +08:00
|
|
|
HomeDashboardID int64 `json:"homeDashboardId"`
|
|
|
|
|
HomeDashboardUID *string `json:"homeDashboardUID,omitempty"`
|
2022-02-08 20:38:43 +08:00
|
|
|
// Enum: utc,browser
|
2022-05-26 20:39:57 +08:00
|
|
|
Timezone string `json:"timezone"`
|
|
|
|
|
WeekStart string `json:"weekStart"`
|
|
|
|
|
QueryHistory *pref.QueryHistoryPreference `json:"queryHistory,omitempty"`
|
2022-11-22 20:18:34 +08:00
|
|
|
Language string `json:"language"`
|
2023-02-21 18:19:07 +08:00
|
|
|
Cookies []pref.CookieType `json:"cookies,omitempty"`
|
2022-03-17 20:07:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// swagger:model
|
|
|
|
|
type PatchPrefsCmd struct {
|
|
|
|
|
// Enum: light,dark
|
|
|
|
|
Theme *string `json:"theme,omitempty"`
|
|
|
|
|
// The numerical :id of a favorited dashboard
|
|
|
|
|
// Default:0
|
|
|
|
|
HomeDashboardID *int64 `json:"homeDashboardId,omitempty"`
|
|
|
|
|
// Enum: utc,browser
|
2022-04-29 20:37:33 +08:00
|
|
|
Timezone *string `json:"timezone,omitempty"`
|
|
|
|
|
WeekStart *string `json:"weekStart,omitempty"`
|
2022-11-22 20:18:34 +08:00
|
|
|
Language *string `json:"language,omitempty"`
|
2022-04-29 20:37:33 +08:00
|
|
|
QueryHistory *pref.QueryHistoryPreference `json:"queryHistory,omitempty"`
|
|
|
|
|
HomeDashboardUID *string `json:"homeDashboardUID,omitempty"`
|
2023-02-21 18:19:07 +08:00
|
|
|
Cookies []pref.CookieType `json:"cookies,omitempty"`
|
2016-03-16 05:49:52 +08:00
|
|
|
}
|