#![allow(
missing_docs,
clippy::doc_lazy_continuation,
clippy::doc_overindented_list_items
)]
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CreateRedirectParams {
#[serde(rename = "locationId")]
pub location_id: String,
pub domain: String,
pub path: String,
pub target: String,
pub action: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CreateRedirectResponseDTO {
pub data: RedirectResponseDTO,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct DeleteRedirectResponseDTO {
pub data: serde_json::Value,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FunnelListResponseDTO {
pub funnels: serde_json::Value,
pub count: f64,
#[serde(rename = "traceId")]
pub trace_id: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FunnelPageCountResponseDTO {
pub count: f64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FunnelPageResponseDTO {
#[serde(rename = "_id")]
pub id: String,
#[serde(rename = "locationId")]
pub location_id: String,
#[serde(rename = "funnelId")]
pub funnel_id: String,
pub name: String,
#[serde(rename = "stepId")]
pub step_id: String,
pub deleted: String,
#[serde(rename = "updatedAt")]
pub updated_at: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct RedirectListResponseDTO {
pub data: serde_json::Value,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct RedirectResponseDTO {
pub id: String,
#[serde(rename = "locationId")]
pub location_id: String,
pub domain: String,
pub path: String,
#[serde(rename = "pathLowercase")]
pub path_lowercase: String,
#[serde(rename = "type")]
pub type_: String,
pub target: String,
pub action: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct UpdateRedirectParams {
pub target: String,
pub action: String,
#[serde(rename = "locationId")]
pub location_id: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct UpdateRedirectResponseDTO {
pub data: RedirectResponseDTO,
}