import type { WPCommentStatus } from './data'; import type { Nullable } from './generics'; export type GraphQLNode = { node: T; }; export type GraphQLNodes = { nodes: T[]; }; export type GraphQLPageInfo = { endCursor: Nullable; hasNextPage: boolean; hasPreviousPage: boolean; startCursor: Nullable; total: number; }; export type GraphQLEdge = GraphQLNode & { cursor: string; }; export type GraphQLConnection = { edges: GraphQLEdge[]; pageInfo: GraphQLPageInfo; }; export type GraphQLEdgesInput = { after?: Nullable; before?: Nullable; first?: number; last?: number; }; export type GraphQLOrder = 'ASC' | 'DESC'; export type GraphQLCommentWhere = { contentId?: number; contentName?: string; status?: WPCommentStatus; }; type GraphQLPostFieldOrder = | 'AUTHOR' | 'COMMENT_COUNT' | 'DATE' | 'MODIFIED' | 'SLUG' | 'TITLE'; export type GraphQLPostOrderBy = { field: GraphQLPostFieldOrder; order: GraphQLOrder; }; export type GraphQLPostWhere = { authorName?: string; search?: string; title?: string; }; export type GraphQLTaxonomyFieldOrder = 'DATE' | 'MODIFIED' | 'SLUG' | 'TITLE'; export type GraphQLTaxonomyOrderBy = { field: GraphQLTaxonomyFieldOrder; order: GraphQLOrder; }; export type GraphQLTaxonomyWhere = { search?: string; title?: string; notIn?: number[]; };