* chore: added the nest graphql fix for making it use Int over Float * chore: changed the type of cursor to Int in PaginationArgs * chore: fixed description mismatch in rootUserCreation functions in UserCollection module * chore: removed unused title type in UserRequest input-args * fix: added ID scaler in user-request input type * fix: added ID scaler in team-invitation and user-history --------- Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
31 lines
648 B
TypeScript
31 lines
648 B
TypeScript
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({
|
|
description: 'Email of the invitee',
|
|
})
|
|
inviteeEmail: string;
|
|
|
|
@Field(() => TeamMemberRole, {
|
|
description: 'The role that will be given to the invitee',
|
|
})
|
|
inviteeRole: TeamMemberRole;
|
|
}
|