aboutsummaryrefslogtreecommitdiffstats
path: root/tests/msw/schema/types/post.types.ts
blob: 11c514ca5e2a14487ebe0c3dc977d7b7e9ac3f6e (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
74
75
76
77
78
79
80
export const postTypes = `union Post_Acfposts_PostsInThematic = Thematic

union Post_Acfposts_PostsInTopic = Topic

type Post_Acfposts {
  postsInThematic: [Post_Acfposts_PostsInThematic]
  postsInTopic: [Post_Acfposts_PostsInTopic]
}

type Post {
  acfPosts: Post_Acfposts
  author: NodeWithAuthorToUserConnectionEdge
  commentCount: Int
  contentParts: ContentPartsType
  databaseId: Int!
  date: String
  featuredImage: NodeWithFeaturedImageToMediaItemConnectionEdge
  info: InfoType
  modified: String!
  seo: PostTypeSEO
  slug: String
  title(format: PostObjectFieldFormatEnum): String
}

enum PostIdType {
  DATABASE_ID
  ID
  SLUG
  URI
}

enum PostStatusEnum {
  ACF_DISABLED
  AUTO_DRAFT
  DRAFT
  FUTURE
  INHERIT
  PENDING
  PRIVATE
  PUBLISH
  REQUEST_COMPLETED
  REQUEST_CONFIRMED
  REQUEST_FAILED
  REQUEST_PENDING
  TRASH
}

input PostObjectsConnectionOrderbyInput {
  field: PostObjectsConnectionOrderbyEnum!
  order: OrderEnum!
}

input RootQueryToPostConnectionWhereArgs {
  authorName: String
  orderby: [PostObjectsConnectionOrderbyInput]
  search: String
  status: PostStatusEnum
  title: String
}

type RootQueryToPostConnectionEdge {
  cursor: String
  node: Post!
}

type RootQueryToPostConnectionPageInfo {
  endCursor: String
  hasNextPage: Boolean!
  hasPreviousPage: Boolean!
  startCursor: String
  total: Int
}

type RootQueryToPostConnection {
  edges: [RootQueryToPostConnectionEdge!]!
  nodes: [Post!]!
  pageInfo: RootQueryToPostConnectionPageInfo!
}`;

// cSpell:ignore Acfposts