blob: cec66c6940ccc10ac15d76c07e337cac0f862e11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
import type { WPCommentStatus } from './data';
import type { Nullable } from './generics';
export type GraphQLNode<T> = {
node: T;
};
export type GraphQLNodes<T> = {
nodes: T[];
};
export type GraphQLPageInfo = {
endCursor: Nullable<string>;
hasNextPage: boolean;
hasPreviousPage: boolean;
startCursor: Nullable<string>;
total: number;
};
export type GraphQLEdge<T> = GraphQLNode<T> & {
cursor: string;
};
export type GraphQLConnection<T> = {
edges: GraphQLEdge<T>[];
pageInfo: GraphQLPageInfo;
};
export type GraphQLEdgesInput = {
after?: Nullable<string>;
before?: Nullable<string>;
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;
};
|