use serde::Deserialize;
#[derive(Debug, Clone, Default, Deserialize, schemars::JsonSchema)]
pub struct AppListRequest {
#[serde(default)]
pub bundle_id: Option<String>,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct AppIdRequest {
pub app_id: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct AppUpdateRequest {
pub app_id: String,
#[serde(default)]
pub primary_locale: Option<String>,
#[serde(default)]
pub content_rights_declaration: Option<String>,
}
#[derive(Debug, Clone, Default, Deserialize, schemars::JsonSchema)]
pub struct BundleIdListRequest {
#[serde(default)]
pub identifier: Option<String>,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct BundleIdCreateRequest {
pub identifier: String,
pub name: String,
pub platform: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct AppStoreVersionListRequest {
pub app_id: String,
#[serde(default)]
pub platform: Option<String>,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct BuildListRequest {
pub app_id: String,
#[serde(default)]
pub version: Option<String>,
#[serde(default)]
pub pre_release_version: Option<String>,
#[serde(default)]
pub processing_state: Option<String>,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct IdRequest {
pub id: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct AppStoreVersionCreateRequest {
pub app_id: String,
pub platform: String,
pub version_string: String,
#[serde(default)]
pub copyright: Option<String>,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct SetBuildRequest {
pub version_id: String,
pub build_id: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct AppInfoLocalizationListRequest {
pub app_info_id: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct AppInfoLocalizationCreateRequest {
pub app_info_id: String,
pub locale: String,
pub name: String,
#[serde(default)]
pub subtitle: Option<String>,
#[serde(default)]
pub privacy_policy_url: Option<String>,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct AppInfoLocalizationUpdateRequest {
pub id: String,
#[serde(default)]
pub name: Option<String>,
#[serde(default)]
pub subtitle: Option<String>,
#[serde(default)]
pub privacy_policy_url: Option<String>,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct VersionLocalizationListRequest {
pub version_id: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct VersionLocalizationCreateRequest {
pub version_id: String,
pub locale: String,
#[serde(default)]
pub description: Option<String>,
#[serde(default)]
pub keywords: Option<String>,
#[serde(default)]
pub marketing_url: Option<String>,
#[serde(default)]
pub promotional_text: Option<String>,
#[serde(default)]
pub support_url: Option<String>,
#[serde(default)]
pub whats_new: Option<String>,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct VersionLocalizationUpdateRequest {
pub id: String,
#[serde(default)]
pub description: Option<String>,
#[serde(default)]
pub keywords: Option<String>,
#[serde(default)]
pub marketing_url: Option<String>,
#[serde(default)]
pub promotional_text: Option<String>,
#[serde(default)]
pub support_url: Option<String>,
#[serde(default)]
pub whats_new: Option<String>,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct ScreenshotSetListRequest {
pub localization_id: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct ScreenshotSetCreateRequest {
pub localization_id: String,
pub display_type: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct ScreenshotListRequest {
pub screenshot_set_id: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct ScreenshotUploadRequest {
pub screenshot_set_id: String,
pub file_path: String,
}
#[derive(Debug, Clone, Default, Deserialize, schemars::JsonSchema)]
pub struct CertificateListRequest {
#[serde(default)]
pub certificate_type: Option<String>,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct CertificateCreateRequest {
pub certificate_type: String,
pub out_dir: String,
#[serde(default)]
pub common_name: Option<String>,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct BetaGroupListRequest {
pub app_id: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct BetaAppReviewDetailGetRequest {
pub app_id: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct PlayPackageRequest {
pub package_name: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct PlayImagesListRequest {
pub package_name: String,
pub locale: String,
pub image_type: String,
}
#[derive(Debug, Clone, Deserialize, schemars::JsonSchema)]
pub struct PlayTrackGetRequest {
pub package_name: String,
pub track: String,
}