mod members;
mod patch;
mod post;
mod program;
mod reaction;
mod revoke;
mod schedule;
mod template;
mod urgent;
use helix_core::effect::SqlValue;
pub use members::{collect_member_leaves, collect_members};
pub use patch::collect_present;
pub use post::{
message_class, message_v3_commit_ops, message_v3_member_read_op, post_updates,
post_updates_from_fields, PostChannelUpdate,
};
pub(crate) use post::{message_v3_post_mutation_ops, PostUpsertSource};
pub use program::program_full;
pub use reaction::message_v3_reaction_op;
pub use revoke::message_v3_revoke_channel_ops;
pub(crate) use schedule::ScheduleFact;
pub use template::message_v3_template_op;
pub use urgent::message_v3_urgent_op;
pub type ChannelCol = (&'static str, SqlValue);
pub const ALLOWED_COLUMNS: &[&str] = &[
"display_name",
"type",
"team_id",
"create_by",
"update_by",
"role",
"orient",
"purpose",
"header",
"root_id",
"root_post_id",
"notify_props",
"mention_permission",
"notice_permission",
"top_permission",
"last_event_seq",
"urgent_current_name",
"picture_type",
"last_post_at",
"delete_at",
"created_at",
"updated_at",
"last_root_post_at",
"unread_count",
"unread_post_id",
"mention_count",
"urgent_count",
"thread_count",
"top_count",
"topic_msg_count",
"admin_max_count",
"mention_count_root",
"is_active",
"is_top",
"has_more",
"has_urgent_post",
"has_schedule_post",
"last_post",
"mention_list",
"urgent_post_list",
"source",
"props",
"picture",
"target_users",
];