Feat: Specify organization role and projects when inviting users to org

This commit is contained in:
Daniel Hougaard
2024-08-23 02:25:15 +04:00
parent 2ecfd1bb7e
commit 06d8800ee0
22 changed files with 387 additions and 178 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ export const useAddUsersToOrg = () => {
type Response = {
data: {
message: string;
completeInviteLinks: {
completeInviteLinks?: {
email: string;
link: string;
}[];
+2 -1
View File
@@ -151,7 +151,8 @@ export type DeletOrgMembershipDTO = {
export type AddUserToOrgDTO = {
inviteeEmails: string[];
projectIds?: string[];
organizationRoleSlug?: string;
projectRoleSlug?: string;
organizationRoleSlug: string;
organizationId: string;
};