2022-03-25 10:56:49 -08:00
|
|
|
from mealie.schema._mealie import MealieModel
|
2021-04-02 11:02:01 -08:00
|
|
|
|
|
|
|
|
|
2022-03-25 10:56:49 -08:00
|
|
|
class AppStatistics(MealieModel):
|
2021-05-03 19:32:37 -08:00
|
|
|
total_recipes: int
|
|
|
|
|
total_users: int
|
|
|
|
|
total_groups: int
|
|
|
|
|
uncategorized_recipes: int
|
|
|
|
|
untagged_recipes: int
|
|
|
|
|
|
|
|
|
|
|
2022-03-25 10:56:49 -08:00
|
|
|
class AppInfo(MealieModel):
|
2021-04-03 11:25:57 -08:00
|
|
|
production: bool
|
2021-04-02 11:02:01 -08:00
|
|
|
version: str
|
|
|
|
|
demo_status: bool
|
2022-03-15 17:34:53 -08:00
|
|
|
allow_signup: bool
|
2024-02-07 10:53:55 -06:00
|
|
|
default_group_slug: str | None = None
|
2024-03-10 13:51:36 -05:00
|
|
|
enable_oidc: bool
|
|
|
|
|
oidc_redirect: bool
|
|
|
|
|
oidc_provider_name: str
|
2024-05-22 04:45:07 -05:00
|
|
|
enable_openai: bool
|
2021-04-03 11:25:57 -08:00
|
|
|
|
2021-04-10 15:09:06 -08:00
|
|
|
|
2023-10-26 22:09:22 -05:00
|
|
|
class AppTheme(MealieModel):
|
|
|
|
|
light_primary: str = "#E58325"
|
|
|
|
|
light_accent: str = "#007A99"
|
|
|
|
|
light_secondary: str = "#973542"
|
|
|
|
|
light_success: str = "#43A047"
|
|
|
|
|
light_info: str = "#1976D2"
|
|
|
|
|
light_warning: str = "#FF6D00"
|
|
|
|
|
light_error: str = "#EF5350"
|
|
|
|
|
|
|
|
|
|
dark_primary: str = "#E58325"
|
|
|
|
|
dark_accent: str = "#007A99"
|
|
|
|
|
dark_secondary: str = "#973542"
|
|
|
|
|
dark_success: str = "#43A047"
|
|
|
|
|
dark_info: str = "#1976D2"
|
|
|
|
|
dark_warning: str = "#FF6D00"
|
|
|
|
|
dark_error: str = "#EF5350"
|
|
|
|
|
|
|
|
|
|
|
2023-11-15 09:24:24 -06:00
|
|
|
class AppStartupInfo(MealieModel):
|
|
|
|
|
is_first_login: bool
|
|
|
|
|
"""
|
|
|
|
|
The applications best guess that a user hasn't logged in. Currently, it really
|
|
|
|
|
on indicates that the 'changeme@example.com' user is still in the database. Once
|
|
|
|
|
it is removed, this will always return False.
|
|
|
|
|
"""
|
|
|
|
|
|
2024-03-11 08:28:54 -05:00
|
|
|
is_demo: bool
|
|
|
|
|
|
2023-11-15 09:24:24 -06:00
|
|
|
|
2021-09-02 11:24:17 -08:00
|
|
|
class AdminAboutInfo(AppInfo):
|
2021-12-04 14:18:46 -09:00
|
|
|
versionLatest: str
|
2021-04-03 11:25:57 -08:00
|
|
|
api_port: int
|
|
|
|
|
api_docs: bool
|
2021-05-03 19:32:37 -08:00
|
|
|
db_type: str
|
2024-02-11 10:47:37 -06:00
|
|
|
db_url: str | None = None
|
2021-04-10 15:09:06 -08:00
|
|
|
default_group: str
|
2022-03-24 20:29:01 -08:00
|
|
|
build_id: str
|
2022-05-08 17:43:03 -08:00
|
|
|
recipe_scraper_version: str
|
2021-10-04 20:16:37 -08:00
|
|
|
|
|
|
|
|
|
2022-03-25 10:56:49 -08:00
|
|
|
class CheckAppConfig(MealieModel):
|
2022-05-21 21:22:02 +02:00
|
|
|
email_ready: bool
|
|
|
|
|
ldap_ready: bool
|
2024-03-10 13:51:36 -05:00
|
|
|
oidc_ready: bool
|
2024-05-22 04:45:07 -05:00
|
|
|
enable_openai: bool
|
2022-05-21 21:22:02 +02:00
|
|
|
base_url_set: bool
|
|
|
|
|
is_up_to_date: bool
|
2024-03-10 13:51:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class OIDCInfo(MealieModel):
|
|
|
|
|
configuration_url: str | None
|
|
|
|
|
client_id: str | None
|
2024-05-02 22:55:47 -05:00
|
|
|
groups_claim: str | None
|