feat(themes): Add ability to update email config for themes (#8033)

This commit is contained in:
Mani Chandra
2025-05-16 19:14:54 +05:30
committed by GitHub
parent 0e0686f92a
commit 564de627f4
7 changed files with 137 additions and 34 deletions

View File

@ -29,7 +29,6 @@ pub struct UploadFileAssetData {
#[derive(Serialize, Deserialize, Debug)]
pub struct UploadFileRequest {
pub lineage: ThemeLineage,
pub asset_name: String,
pub asset_data: Secret<Vec<u8>>,
}
@ -44,9 +43,8 @@ pub struct CreateThemeRequest {
#[derive(Serialize, Deserialize, Debug)]
pub struct UpdateThemeRequest {
pub lineage: ThemeLineage,
pub theme_data: ThemeData,
// TODO: Add support to update email config
pub theme_data: Option<ThemeData>,
pub email_config: Option<EmailThemeConfig>,
}
// All the below structs are for the theme.json file,