feat: team invitation module added
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { Field, ID, ObjectType } from '@nestjs/graphql';
|
||||
import { TeamMemberRole } from '../team/team.model';
|
||||
|
||||
@ObjectType()
|
||||
export class TeamInvitation {
|
||||
@Field(() => ID, {
|
||||
description: 'ID of the invite',
|
||||
})
|
||||
id: string;
|
||||
|
||||
@Field(() => ID, {
|
||||
description: 'ID of the team the invite is to',
|
||||
})
|
||||
teamID: string;
|
||||
|
||||
@Field(() => ID, {
|
||||
description: 'UID of the creator of the invite',
|
||||
})
|
||||
creatorUid: string;
|
||||
|
||||
@Field(() => ID, {
|
||||
description: 'Email of the invitee',
|
||||
})
|
||||
inviteeEmail: string;
|
||||
|
||||
@Field(() => TeamMemberRole, {
|
||||
description: 'The role that will be given to the invitee',
|
||||
})
|
||||
inviteeRole: TeamMemberRole;
|
||||
}
|
||||
Reference in New Issue
Block a user