import { Field, ObjectType } from 'type-graphql'; @ObjectType({ description: 'Return type for whitelistedURLs query.', }) class WhitelistedURL { @Field(() => String, { nullable: false, description: 'The path portion of the URL.', }) pathname!: string; @Field(() => String, { nullable: false, description: 'The host name portion of the URL.', }) host!: string; } @ObjectType({ description: 'Return type for whitelistedURLs query.', }) export class WhitelistedURLsResponse { @Field(() => [WhitelistedURL], { nullable: false, description: 'URLs that have been whitelisted as being queryable.', }) urls!: WhitelistedURL[]; }