lemmy_api_common 1.0.0-beta.1

A link aggregator for the fediverse
Documentation
pub use lemmy_db_schema::{
  newtypes::{CommunityId, CommunityTagId, MultiCommunityId},
  source::{
    community::{Community, CommunityActions},
    community_tag::{CommunityTag, CommunityTagsView},
    multi_community::{MultiCommunity, MultiCommunityFollow},
  },
};
pub use lemmy_db_schema_file::enums::CommunityVisibility;
pub use lemmy_db_views_community::{
  CommunityView,
  MultiCommunityView,
  api::{
    CommunityResponse,
    CreateMultiCommunity,
    CreateOrDeleteMultiCommunityEntry,
    EditCommunityNotifications,
    EditMultiCommunity,
    FollowMultiCommunity,
    GetCommunity,
    GetCommunityResponse,
    GetMultiCommunity,
    GetMultiCommunityResponse,
    GetRandomCommunity,
    ListCommunities,
    ListMultiCommunities,
  },
};
pub use lemmy_db_views_community_follower_approval::PendingFollowerView;
pub use lemmy_db_views_community_moderator::CommunityModeratorView;

pub mod actions {
  pub use lemmy_db_views_community::api::{
    BlockCommunity,
    CreateCommunity,
    FollowCommunity,
    HideCommunity,
  };

  pub mod moderation {
    pub use lemmy_db_schema_file::enums::CommunityFollowerState;
    pub use lemmy_db_views_community::api::{
      AddModToCommunity,
      AddModToCommunityResponse,
      ApproveCommunityPendingFollower,
      BanFromCommunity,
      CommunityIdQuery,
      CreateCommunityTag,
      DeleteCommunity,
      DeleteCommunityTag,
      EditCommunity,
      EditCommunityTag,
      PurgeCommunity,
      RemoveCommunity,
      TransferCommunity,
    };
    pub use lemmy_db_views_community_follower::CommunityFollowerView;
    pub use lemmy_db_views_community_follower_approval::{
      PendingFollowerView,
      api::ListCommunityPendingFollows,
    };
  }
}