Files
hoppscotch/packages/hoppscotch-backend/src/team-invitation/team-invitation.model.ts
Balu Babu b0d9a934d9 hotfix: fixing type errors in backend graphql layer (HBE-174) (#45)
* 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>
2023-03-15 11:20:45 +05:30

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;
}