use derive_empty_traits::EmptyTraits;
use resolver_api::derive::Request;
use serde::{Deserialize, Serialize};
use typeshare::typeshare;
use crate::entities::provider::*;
use super::MonitorWriteRequest;
#[typeshare]
#[derive(
Serialize, Deserialize, Debug, Clone, Request, EmptyTraits,
)]
#[empty_traits(MonitorWriteRequest)]
#[response(CreateGitProviderAccountResponse)]
pub struct CreateGitProviderAccount {
pub account: _PartialGitProviderAccount,
}
#[typeshare]
pub type CreateGitProviderAccountResponse = GitProviderAccount;
#[typeshare]
#[derive(
Serialize, Deserialize, Debug, Clone, Request, EmptyTraits,
)]
#[empty_traits(MonitorWriteRequest)]
#[response(UpdateGitProviderAccountResponse)]
pub struct UpdateGitProviderAccount {
pub id: String,
pub account: _PartialGitProviderAccount,
}
#[typeshare]
pub type UpdateGitProviderAccountResponse = GitProviderAccount;
#[typeshare]
#[derive(
Serialize, Deserialize, Debug, Clone, Request, EmptyTraits,
)]
#[empty_traits(MonitorWriteRequest)]
#[response(DeleteGitProviderAccountResponse)]
pub struct DeleteGitProviderAccount {
pub id: String,
}
#[typeshare]
pub type DeleteGitProviderAccountResponse = GitProviderAccount;
#[typeshare]
#[derive(
Serialize, Deserialize, Debug, Clone, Request, EmptyTraits,
)]
#[empty_traits(MonitorWriteRequest)]
#[response(CreateDockerRegistryAccountResponse)]
pub struct CreateDockerRegistryAccount {
pub account: _PartialDockerRegistryAccount,
}
#[typeshare]
pub type CreateDockerRegistryAccountResponse = DockerRegistryAccount;
#[typeshare]
#[derive(
Serialize, Deserialize, Debug, Clone, Request, EmptyTraits,
)]
#[empty_traits(MonitorWriteRequest)]
#[response(UpdateDockerRegistryAccountResponse)]
pub struct UpdateDockerRegistryAccount {
pub id: String,
pub account: _PartialDockerRegistryAccount,
}
#[typeshare]
pub type UpdateDockerRegistryAccountResponse = DockerRegistryAccount;
#[typeshare]
#[derive(
Serialize, Deserialize, Debug, Clone, Request, EmptyTraits,
)]
#[empty_traits(MonitorWriteRequest)]
#[response(DeleteDockerRegistryAccountResponse)]
pub struct DeleteDockerRegistryAccount {
pub id: String,
}
#[typeshare]
pub type DeleteDockerRegistryAccountResponse = DockerRegistryAccount;