43 lines
837 B
TypeScript
43 lines
837 B
TypeScript
import { ObjectType, Field, ID } from '@nestjs/graphql';
|
|
|
|
@ObjectType()
|
|
export class TeamCollection {
|
|
@Field(() => ID, {
|
|
description: 'ID of the collection',
|
|
})
|
|
id: string;
|
|
|
|
@Field({
|
|
description: 'Displayed title of the collection',
|
|
})
|
|
title: string;
|
|
|
|
@Field({
|
|
description: 'JSON string representing the collection data',
|
|
nullable: true,
|
|
})
|
|
data: string;
|
|
|
|
@Field(() => ID, {
|
|
description: 'ID of the collection',
|
|
nullable: true,
|
|
})
|
|
parentID: string;
|
|
teamID: string;
|
|
}
|
|
|
|
@ObjectType()
|
|
export class CollectionReorderData {
|
|
@Field({
|
|
description: 'Team Collection being moved',
|
|
})
|
|
collection: TeamCollection;
|
|
|
|
@Field({
|
|
description:
|
|
'Team Collection succeeding the collection being moved in its new position',
|
|
nullable: true,
|
|
})
|
|
nextCollection?: TeamCollection;
|
|
}
|