refactor: Refactoring of Team Request with Reordering (HBE-151) (#20)
* 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
This commit is contained in:
@@ -1,37 +1,4 @@
|
||||
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;
|
||||
}
|
||||
import { ObjectType, Field, ID } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class TeamRequest {
|
||||
@@ -60,3 +27,18 @@ export class TeamRequest {
|
||||
})
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user