feat(user): implement invitations api (#5769)

This commit is contained in:
Rachit Naithani
2024-09-02 20:29:36 +05:30
committed by GitHub
parent 258212d8b0
commit 730c2ba258
11 changed files with 240 additions and 146 deletions

View File

@ -1,5 +1,6 @@
use common_enums::PermissionGroup;
use common_utils::pii;
use masking::Secret;
pub mod role;
@ -138,3 +139,11 @@ pub struct ListUsersInEntityResponse {
pub email: pii::Email,
pub roles: Vec<role::MinimalRoleInfo>,
}
#[derive(Debug, serde::Deserialize, serde::Serialize)]
pub struct ListInvitationForUserResponse {
pub entity_id: String,
pub entity_type: common_enums::EntityType,
pub entity_name: Option<Secret<String>>,
pub role_id: String,
}