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