feat: team request module added

This commit is contained in:
Mir Arif Hasan
2023-02-08 16:39:19 +06:00
parent 4b42496273
commit 2ed5a045de
8 changed files with 1905 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
import { ObjectType, Field, ID, InputType } from '@nestjs/graphql';
@InputType()
export class CreateTeamRequestInput {
@Field(() => ID, {
description: 'ID of the team the collection belongs to',
})
teamID: string;
@Field({
description: 'JSON string representing the request data',
})
request: string;
@Field({
description: 'Displayed title of the request',
})
title: string;
}
@InputType()
export class UpdateTeamRequestInput {
@Field({
description: 'JSON string representing the request data',
nullable: true,
})
request?: string;
@Field({
description: 'Displayed title of the request',
nullable: true,
})
title?: string;
}
@ObjectType()
export class TeamRequest {
@Field(() => ID, {
description: 'ID of the request',
})
id: string;
@Field(() => ID, {
description: 'ID of the collection the request belongs to.',
})
collectionID: string;
@Field(() => ID, {
description: 'ID of the team the request belongs to.',
})
teamID: string;
@Field({
description: 'JSON string representing the request data',
})
request: string;
@Field({
description: 'Displayed title of the request',
})
title: string;
}