use crate::client::Ghl;
#[cfg(feature = "ad-publishing")]
#[cfg_attr(docsrs, doc(cfg(feature = "ad-publishing")))]
pub mod ad_publishing;
#[cfg(feature = "affiliate-manager")]
#[cfg_attr(docsrs, doc(cfg(feature = "affiliate-manager")))]
pub mod affiliate_manager;
#[cfg(feature = "agent-studio")]
#[cfg_attr(docsrs, doc(cfg(feature = "agent-studio")))]
pub mod agent_studio;
#[cfg(feature = "associations")]
#[cfg_attr(docsrs, doc(cfg(feature = "associations")))]
pub mod associations;
#[cfg(feature = "blogs")]
#[cfg_attr(docsrs, doc(cfg(feature = "blogs")))]
pub mod blogs;
#[cfg(feature = "brand-boards")]
#[cfg_attr(docsrs, doc(cfg(feature = "brand-boards")))]
pub mod brand_boards;
#[cfg(feature = "businesses")]
#[cfg_attr(docsrs, doc(cfg(feature = "businesses")))]
pub mod businesses;
#[cfg(feature = "calendars")]
#[cfg_attr(docsrs, doc(cfg(feature = "calendars")))]
pub mod calendars;
#[cfg(feature = "campaigns")]
#[cfg_attr(docsrs, doc(cfg(feature = "campaigns")))]
pub mod campaigns;
#[cfg(feature = "chat-widget")]
#[cfg_attr(docsrs, doc(cfg(feature = "chat-widget")))]
pub mod chat_widget;
#[cfg(feature = "companies")]
#[cfg_attr(docsrs, doc(cfg(feature = "companies")))]
pub mod companies;
#[cfg(feature = "contacts")]
#[cfg_attr(docsrs, doc(cfg(feature = "contacts")))]
pub mod contacts;
#[cfg(feature = "conversation-ai")]
#[cfg_attr(docsrs, doc(cfg(feature = "conversation-ai")))]
pub mod conversation_ai;
#[cfg(feature = "conversations")]
#[cfg_attr(docsrs, doc(cfg(feature = "conversations")))]
pub mod conversations;
#[cfg(feature = "courses")]
#[cfg_attr(docsrs, doc(cfg(feature = "courses")))]
pub mod courses;
#[cfg(feature = "custom-fields")]
#[cfg_attr(docsrs, doc(cfg(feature = "custom-fields")))]
pub mod custom_fields;
#[cfg(feature = "custom-menus")]
#[cfg_attr(docsrs, doc(cfg(feature = "custom-menus")))]
pub mod custom_menus;
#[cfg(feature = "email-isv")]
#[cfg_attr(docsrs, doc(cfg(feature = "email-isv")))]
pub mod email_isv;
#[cfg(feature = "emails")]
#[cfg_attr(docsrs, doc(cfg(feature = "emails")))]
pub mod emails;
#[cfg(feature = "forms")]
#[cfg_attr(docsrs, doc(cfg(feature = "forms")))]
pub mod forms;
#[cfg(feature = "funnels")]
#[cfg_attr(docsrs, doc(cfg(feature = "funnels")))]
pub mod funnels;
#[cfg(feature = "invoices")]
#[cfg_attr(docsrs, doc(cfg(feature = "invoices")))]
pub mod invoices;
#[cfg(feature = "knowledge-base")]
#[cfg_attr(docsrs, doc(cfg(feature = "knowledge-base")))]
pub mod knowledge_base;
#[cfg(feature = "links")]
#[cfg_attr(docsrs, doc(cfg(feature = "links")))]
pub mod links;
#[cfg(feature = "locations")]
#[cfg_attr(docsrs, doc(cfg(feature = "locations")))]
pub mod locations;
#[cfg(feature = "marketplace")]
#[cfg_attr(docsrs, doc(cfg(feature = "marketplace")))]
pub mod marketplace;
#[cfg(feature = "medias")]
#[cfg_attr(docsrs, doc(cfg(feature = "medias")))]
pub mod medias;
#[cfg(feature = "oauth")]
#[cfg_attr(docsrs, doc(cfg(feature = "oauth")))]
pub mod oauth;
#[cfg(feature = "objects")]
#[cfg_attr(docsrs, doc(cfg(feature = "objects")))]
pub mod objects;
#[cfg(feature = "opportunities")]
#[cfg_attr(docsrs, doc(cfg(feature = "opportunities")))]
pub mod opportunities;
#[cfg(feature = "payments")]
#[cfg_attr(docsrs, doc(cfg(feature = "payments")))]
pub mod payments;
#[cfg(feature = "phone-system")]
#[cfg_attr(docsrs, doc(cfg(feature = "phone-system")))]
pub mod phone_system;
#[cfg(feature = "products")]
#[cfg_attr(docsrs, doc(cfg(feature = "products")))]
pub mod products;
#[cfg(feature = "proposals")]
#[cfg_attr(docsrs, doc(cfg(feature = "proposals")))]
pub mod proposals;
#[cfg(feature = "saas")]
#[cfg_attr(docsrs, doc(cfg(feature = "saas")))]
pub mod saas;
#[cfg(feature = "snapshots")]
#[cfg_attr(docsrs, doc(cfg(feature = "snapshots")))]
pub mod snapshots;
#[cfg(feature = "social-planner")]
#[cfg_attr(docsrs, doc(cfg(feature = "social-planner")))]
pub mod social_planner;
#[cfg(feature = "store")]
#[cfg_attr(docsrs, doc(cfg(feature = "store")))]
pub mod store;
#[cfg(feature = "surveys")]
#[cfg_attr(docsrs, doc(cfg(feature = "surveys")))]
pub mod surveys;
#[cfg(feature = "users")]
#[cfg_attr(docsrs, doc(cfg(feature = "users")))]
pub mod users;
#[cfg(feature = "voice-ai")]
#[cfg_attr(docsrs, doc(cfg(feature = "voice-ai")))]
pub mod voice_ai;
#[cfg(feature = "workflows")]
#[cfg_attr(docsrs, doc(cfg(feature = "workflows")))]
pub mod workflows;
#[derive(Debug, Clone)]
pub struct V3 {
#[allow(dead_code)]
pub(crate) client: Ghl,
}
impl V3 {
#[cfg(feature = "ad-publishing")]
#[cfg_attr(docsrs, doc(cfg(feature = "ad-publishing")))]
pub fn ad_publishing(&self) -> ad_publishing::AdPublishingService {
ad_publishing::AdPublishingService::new(self.client.clone())
}
#[cfg(feature = "affiliate-manager")]
#[cfg_attr(docsrs, doc(cfg(feature = "affiliate-manager")))]
pub fn affiliate_manager(&self) -> affiliate_manager::AffiliateManagerService {
affiliate_manager::AffiliateManagerService::new(self.client.clone())
}
#[cfg(feature = "agent-studio")]
#[cfg_attr(docsrs, doc(cfg(feature = "agent-studio")))]
pub fn agent_studio(&self) -> agent_studio::AgentStudioService {
agent_studio::AgentStudioService::new(self.client.clone())
}
#[cfg(feature = "associations")]
#[cfg_attr(docsrs, doc(cfg(feature = "associations")))]
pub fn associations(&self) -> associations::AssociationsService {
associations::AssociationsService::new(self.client.clone())
}
#[cfg(feature = "blogs")]
#[cfg_attr(docsrs, doc(cfg(feature = "blogs")))]
pub fn blogs(&self) -> blogs::BlogsService {
blogs::BlogsService::new(self.client.clone())
}
#[cfg(feature = "brand-boards")]
#[cfg_attr(docsrs, doc(cfg(feature = "brand-boards")))]
pub fn brand_boards(&self) -> brand_boards::BrandBoardsService {
brand_boards::BrandBoardsService::new(self.client.clone())
}
#[cfg(feature = "businesses")]
#[cfg_attr(docsrs, doc(cfg(feature = "businesses")))]
pub fn businesses(&self) -> businesses::BusinessesService {
businesses::BusinessesService::new(self.client.clone())
}
#[cfg(feature = "calendars")]
#[cfg_attr(docsrs, doc(cfg(feature = "calendars")))]
pub fn calendars(&self) -> calendars::CalendarsService {
calendars::CalendarsService::new(self.client.clone())
}
#[cfg(feature = "campaigns")]
#[cfg_attr(docsrs, doc(cfg(feature = "campaigns")))]
pub fn campaigns(&self) -> campaigns::CampaignsService {
campaigns::CampaignsService::new(self.client.clone())
}
#[cfg(feature = "chat-widget")]
#[cfg_attr(docsrs, doc(cfg(feature = "chat-widget")))]
pub fn chat_widget(&self) -> chat_widget::ChatWidgetService {
chat_widget::ChatWidgetService::new(self.client.clone())
}
#[cfg(feature = "companies")]
#[cfg_attr(docsrs, doc(cfg(feature = "companies")))]
pub fn companies(&self) -> companies::CompaniesService {
companies::CompaniesService::new(self.client.clone())
}
#[cfg(feature = "contacts")]
#[cfg_attr(docsrs, doc(cfg(feature = "contacts")))]
pub fn contacts(&self) -> contacts::ContactsService {
contacts::ContactsService::new(self.client.clone())
}
#[cfg(feature = "conversation-ai")]
#[cfg_attr(docsrs, doc(cfg(feature = "conversation-ai")))]
pub fn conversation_ai(&self) -> conversation_ai::ConversationAiService {
conversation_ai::ConversationAiService::new(self.client.clone())
}
#[cfg(feature = "conversations")]
#[cfg_attr(docsrs, doc(cfg(feature = "conversations")))]
pub fn conversations(&self) -> conversations::ConversationsService {
conversations::ConversationsService::new(self.client.clone())
}
#[cfg(feature = "courses")]
#[cfg_attr(docsrs, doc(cfg(feature = "courses")))]
pub fn courses(&self) -> courses::CoursesService {
courses::CoursesService::new(self.client.clone())
}
#[cfg(feature = "custom-fields")]
#[cfg_attr(docsrs, doc(cfg(feature = "custom-fields")))]
pub fn custom_fields(&self) -> custom_fields::CustomFieldsService {
custom_fields::CustomFieldsService::new(self.client.clone())
}
#[cfg(feature = "custom-menus")]
#[cfg_attr(docsrs, doc(cfg(feature = "custom-menus")))]
pub fn custom_menus(&self) -> custom_menus::CustomMenusService {
custom_menus::CustomMenusService::new(self.client.clone())
}
#[cfg(feature = "email-isv")]
#[cfg_attr(docsrs, doc(cfg(feature = "email-isv")))]
pub fn email_isv(&self) -> email_isv::EmailIsvService {
email_isv::EmailIsvService::new(self.client.clone())
}
#[cfg(feature = "emails")]
#[cfg_attr(docsrs, doc(cfg(feature = "emails")))]
pub fn emails(&self) -> emails::EmailsService {
emails::EmailsService::new(self.client.clone())
}
#[cfg(feature = "forms")]
#[cfg_attr(docsrs, doc(cfg(feature = "forms")))]
pub fn forms(&self) -> forms::FormsService {
forms::FormsService::new(self.client.clone())
}
#[cfg(feature = "funnels")]
#[cfg_attr(docsrs, doc(cfg(feature = "funnels")))]
pub fn funnels(&self) -> funnels::FunnelsService {
funnels::FunnelsService::new(self.client.clone())
}
#[cfg(feature = "invoices")]
#[cfg_attr(docsrs, doc(cfg(feature = "invoices")))]
pub fn invoices(&self) -> invoices::InvoicesService {
invoices::InvoicesService::new(self.client.clone())
}
#[cfg(feature = "knowledge-base")]
#[cfg_attr(docsrs, doc(cfg(feature = "knowledge-base")))]
pub fn knowledge_base(&self) -> knowledge_base::KnowledgeBaseService {
knowledge_base::KnowledgeBaseService::new(self.client.clone())
}
#[cfg(feature = "links")]
#[cfg_attr(docsrs, doc(cfg(feature = "links")))]
pub fn links(&self) -> links::LinksService {
links::LinksService::new(self.client.clone())
}
#[cfg(feature = "locations")]
#[cfg_attr(docsrs, doc(cfg(feature = "locations")))]
pub fn locations(&self) -> locations::LocationsService {
locations::LocationsService::new(self.client.clone())
}
#[cfg(feature = "marketplace")]
#[cfg_attr(docsrs, doc(cfg(feature = "marketplace")))]
pub fn marketplace(&self) -> marketplace::MarketplaceService {
marketplace::MarketplaceService::new(self.client.clone())
}
#[cfg(feature = "medias")]
#[cfg_attr(docsrs, doc(cfg(feature = "medias")))]
pub fn medias(&self) -> medias::MediasService {
medias::MediasService::new(self.client.clone())
}
#[cfg(feature = "oauth")]
#[cfg_attr(docsrs, doc(cfg(feature = "oauth")))]
pub fn oauth(&self) -> oauth::OauthService {
oauth::OauthService::new(self.client.clone())
}
#[cfg(feature = "objects")]
#[cfg_attr(docsrs, doc(cfg(feature = "objects")))]
pub fn objects(&self) -> objects::ObjectsService {
objects::ObjectsService::new(self.client.clone())
}
#[cfg(feature = "opportunities")]
#[cfg_attr(docsrs, doc(cfg(feature = "opportunities")))]
pub fn opportunities(&self) -> opportunities::OpportunitiesService {
opportunities::OpportunitiesService::new(self.client.clone())
}
#[cfg(feature = "payments")]
#[cfg_attr(docsrs, doc(cfg(feature = "payments")))]
pub fn payments(&self) -> payments::PaymentsService {
payments::PaymentsService::new(self.client.clone())
}
#[cfg(feature = "phone-system")]
#[cfg_attr(docsrs, doc(cfg(feature = "phone-system")))]
pub fn phone_system(&self) -> phone_system::PhoneSystemService {
phone_system::PhoneSystemService::new(self.client.clone())
}
#[cfg(feature = "products")]
#[cfg_attr(docsrs, doc(cfg(feature = "products")))]
pub fn products(&self) -> products::ProductsService {
products::ProductsService::new(self.client.clone())
}
#[cfg(feature = "proposals")]
#[cfg_attr(docsrs, doc(cfg(feature = "proposals")))]
pub fn proposals(&self) -> proposals::ProposalsService {
proposals::ProposalsService::new(self.client.clone())
}
#[cfg(feature = "saas")]
#[cfg_attr(docsrs, doc(cfg(feature = "saas")))]
pub fn saas(&self) -> saas::SaasService {
saas::SaasService::new(self.client.clone())
}
#[cfg(feature = "snapshots")]
#[cfg_attr(docsrs, doc(cfg(feature = "snapshots")))]
pub fn snapshots(&self) -> snapshots::SnapshotsService {
snapshots::SnapshotsService::new(self.client.clone())
}
#[cfg(feature = "social-planner")]
#[cfg_attr(docsrs, doc(cfg(feature = "social-planner")))]
pub fn social_planner(&self) -> social_planner::SocialPlannerService {
social_planner::SocialPlannerService::new(self.client.clone())
}
#[cfg(feature = "store")]
#[cfg_attr(docsrs, doc(cfg(feature = "store")))]
pub fn store(&self) -> store::StoreService {
store::StoreService::new(self.client.clone())
}
#[cfg(feature = "surveys")]
#[cfg_attr(docsrs, doc(cfg(feature = "surveys")))]
pub fn surveys(&self) -> surveys::SurveysService {
surveys::SurveysService::new(self.client.clone())
}
#[cfg(feature = "users")]
#[cfg_attr(docsrs, doc(cfg(feature = "users")))]
pub fn users(&self) -> users::UsersService {
users::UsersService::new(self.client.clone())
}
#[cfg(feature = "voice-ai")]
#[cfg_attr(docsrs, doc(cfg(feature = "voice-ai")))]
pub fn voice_ai(&self) -> voice_ai::VoiceAiService {
voice_ai::VoiceAiService::new(self.client.clone())
}
#[cfg(feature = "workflows")]
#[cfg_attr(docsrs, doc(cfg(feature = "workflows")))]
pub fn workflows(&self) -> workflows::WorkflowsService {
workflows::WorkflowsService::new(self.client.clone())
}
}