* feat: createdOn, updatedOn added in team-request schema and updateTeamReq resolver refactored * feat: resolver name changed for updateTeamRequest * refactor: searchForTeamRequest resolver * refactor: some functions refactored * refactor: team-request service and subscriptions * refactor: update GqlRequestTeamMemberGuard * feat: team request reordering add * feat: handle exception on update Team Request * chore: change some return statement * fix: change field name of MoveTeamRequestArgs * feat: publish message update for reorder team req * test: fix all the exists cases * fix: add return statement * test: add few functions test cases * feat: made backward compatible * fix: team-member guard for retrive user * fix: few bugs * chore: destructured parameters in service methods * test: fix test cases * feat: updateLookUpRequestOrder resolver added * test: fix test cases * chore: improved code consistency * fix: feedback changes * fix: main changes
45 lines
878 B
TypeScript
45 lines
878 B
TypeScript
import { ObjectType, Field, ID } from '@nestjs/graphql';
|
|
|
|
@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;
|
|
}
|
|
|
|
@ObjectType()
|
|
export class RequestReorderData {
|
|
@Field({
|
|
description: 'Team Request being moved',
|
|
})
|
|
request: TeamRequest;
|
|
|
|
@Field({
|
|
description:
|
|
'Team Request succeeding the request being moved in its new position',
|
|
nullable: true,
|
|
})
|
|
nextRequest?: TeamRequest;
|
|
}
|