-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.gql
1598 lines (1354 loc) · 36.6 KB
/
schema.gql
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"""Direct the client to resolve this field locally, either from the cache or local resolvers."""
directive @client(
"""
When true, the client will never use the cache for this value. See
https://www.apollographql.com/docs/react/essentials/local-state/#forcing-resolvers-with-clientalways-true
"""
always: Boolean
) on FIELD | FRAGMENT_DEFINITION | INLINE_FRAGMENT
"""
Export this locally resolved field as a variable to be used in the remainder of this query. See
https://www.apollographql.com/docs/react/essentials/local-state/#using-client-fields-as-variables
"""
directive @export(
"""The variable name to export this field as."""
as: String!
) on FIELD
"""
Specify a custom store key for this result. See
https://www.apollographql.com/docs/react/advanced/caching/#the-connection-directive
"""
directive @connection(
"""Specify the store key."""
key: String!
"""An array of query argument names to include in the generated custom store key."""
filter: [String!]
) on FIELD
input FileInfoInput {
name: String
alternativeText: String
caption: String
}
type UsersPermissionsMe {
id: ID!
username: String!
email: String!
confirmed: Boolean
blocked: Boolean
role: UsersPermissionsMeRole
}
type UsersPermissionsMeRole {
id: ID!
name: String!
description: String
type: String
}
input UsersPermissionsRegisterInput {
username: String!
email: String!
password: String!
}
input UsersPermissionsLoginInput {
identifier: String!
password: String!
provider: String = "local"
}
type UsersPermissionsLoginPayload {
jwt: String
user: UsersPermissionsMe!
}
type UserPermissionsPasswordPayload {
ok: Boolean!
}
type Banner {
id: ID!
created_at: DateTime!
updated_at: DateTime!
image: UploadFile
title: String!
subtitle: String!
button: ComponentPageButton
ribbon: ComponentPageRibbon
published_at: DateTime
}
type BannerConnection {
values: [Banner]
groupBy: BannerGroupBy
aggregate: BannerAggregator
}
type BannerAggregator {
count: Int
totalCount: Int
}
type BannerGroupBy {
id: [BannerConnectionId]
created_at: [BannerConnectionCreated_at]
updated_at: [BannerConnectionUpdated_at]
image: [BannerConnectionImage]
title: [BannerConnectionTitle]
subtitle: [BannerConnectionSubtitle]
button: [BannerConnectionButton]
ribbon: [BannerConnectionRibbon]
published_at: [BannerConnectionPublished_at]
}
type BannerConnectionId {
key: ID
connection: BannerConnection
}
type BannerConnectionCreated_at {
key: DateTime
connection: BannerConnection
}
type BannerConnectionUpdated_at {
key: DateTime
connection: BannerConnection
}
type BannerConnectionImage {
key: ID
connection: BannerConnection
}
type BannerConnectionTitle {
key: String
connection: BannerConnection
}
type BannerConnectionSubtitle {
key: String
connection: BannerConnection
}
type BannerConnectionButton {
key: ID
connection: BannerConnection
}
type BannerConnectionRibbon {
key: ID
connection: BannerConnection
}
type BannerConnectionPublished_at {
key: DateTime
connection: BannerConnection
}
input BannerInput {
image: ID
title: String!
subtitle: String!
button: ComponentPageButtonInput
ribbon: ComponentPageRibbonInput
published_at: DateTime
created_by: ID
updated_by: ID
}
input editBannerInput {
image: ID
title: String
subtitle: String
button: editComponentPageButtonInput
ribbon: editComponentPageRibbonInput
published_at: DateTime
created_by: ID
updated_by: ID
}
input createBannerInput {
data: BannerInput
}
type createBannerPayload {
banner: Banner
}
input updateBannerInput {
where: InputID
data: editBannerInput
}
type updateBannerPayload {
banner: Banner
}
input deleteBannerInput {
where: InputID
}
type deleteBannerPayload {
banner: Banner
}
type Category {
id: ID!
created_at: DateTime!
updated_at: DateTime!
name: String!
slug: String!
published_at: DateTime
games(sort: String, limit: Int, start: Int, where: JSON): [Game!]!
}
type CategoryConnection {
values: [Category]
groupBy: CategoryGroupBy
aggregate: CategoryAggregator
}
type CategoryAggregator {
count: Int
totalCount: Int
}
type CategoryGroupBy {
id: [CategoryConnectionId]
created_at: [CategoryConnectionCreated_at]
updated_at: [CategoryConnectionUpdated_at]
name: [CategoryConnectionName]
slug: [CategoryConnectionSlug]
published_at: [CategoryConnectionPublished_at]
}
type CategoryConnectionId {
key: ID
connection: CategoryConnection
}
type CategoryConnectionCreated_at {
key: DateTime
connection: CategoryConnection
}
type CategoryConnectionUpdated_at {
key: DateTime
connection: CategoryConnection
}
type CategoryConnectionName {
key: String
connection: CategoryConnection
}
type CategoryConnectionSlug {
key: String
connection: CategoryConnection
}
type CategoryConnectionPublished_at {
key: DateTime
connection: CategoryConnection
}
input CategoryInput {
name: String!
slug: String!
games: [ID]
published_at: DateTime
created_by: ID
updated_by: ID
}
input editCategoryInput {
name: String
slug: String
games: [ID]
published_at: DateTime
created_by: ID
updated_by: ID
}
input createCategoryInput {
data: CategoryInput
}
type createCategoryPayload {
category: Category
}
input updateCategoryInput {
where: InputID
data: editCategoryInput
}
type updateCategoryPayload {
category: Category
}
input deleteCategoryInput {
where: InputID
}
type deleteCategoryPayload {
category: Category
}
type Developers {
id: ID!
created_at: DateTime!
updated_at: DateTime!
name: String!
slug: String
published_at: DateTime
games(sort: String, limit: Int, start: Int, where: JSON): [Game!]!
}
type DevelopersConnection {
values: [Developers]
groupBy: DevelopersGroupBy
aggregate: DevelopersAggregator
}
type DevelopersAggregator {
count: Int
totalCount: Int
}
type DevelopersGroupBy {
id: [DevelopersConnectionId]
created_at: [DevelopersConnectionCreated_at]
updated_at: [DevelopersConnectionUpdated_at]
name: [DevelopersConnectionName]
slug: [DevelopersConnectionSlug]
published_at: [DevelopersConnectionPublished_at]
}
type DevelopersConnectionId {
key: ID
connection: DevelopersConnection
}
type DevelopersConnectionCreated_at {
key: DateTime
connection: DevelopersConnection
}
type DevelopersConnectionUpdated_at {
key: DateTime
connection: DevelopersConnection
}
type DevelopersConnectionName {
key: String
connection: DevelopersConnection
}
type DevelopersConnectionSlug {
key: String
connection: DevelopersConnection
}
type DevelopersConnectionPublished_at {
key: DateTime
connection: DevelopersConnection
}
input DeveloperInput {
name: String!
slug: String
games: [ID]
published_at: DateTime
created_by: ID
updated_by: ID
}
input editDeveloperInput {
name: String
slug: String
games: [ID]
published_at: DateTime
created_by: ID
updated_by: ID
}
input createDeveloperInput {
data: DeveloperInput
}
type createDeveloperPayload {
developer: Developers
}
input updateDeveloperInput {
where: InputID
data: editDeveloperInput
}
type updateDeveloperPayload {
developer: Developers
}
input deleteDeveloperInput {
where: InputID
}
type deleteDeveloperPayload {
developer: Developers
}
enum ENUM_GAME_RATING {
BR0
BR10
BR12
BR14
BR16
BR18
}
type Game {
id: ID!
created_at: DateTime!
updated_at: DateTime!
name: String!
slug: String!
short_description: String!
description: String!
price: Float!
release_date: Date
rating: ENUM_GAME_RATING
cover: UploadFile
publisher: Publisher
published_at: DateTime
galery(sort: String, limit: Int, start: Int, where: JSON): [UploadFile!]!
categories(sort: String, limit: Int, start: Int, where: JSON): [Category!]!
developers(sort: String, limit: Int, start: Int, where: JSON): [Developers!]!
plataforms(sort: String, limit: Int, start: Int, where: JSON): [Plataform!]!
}
type GameConnection {
values: [Game]
groupBy: GameGroupBy
aggregate: GameAggregator
}
type GameAggregator {
count: Int
totalCount: Int
sum: GameAggregatorSum
avg: GameAggregatorAvg
min: GameAggregatorMin
max: GameAggregatorMax
}
type GameAggregatorSum {
price: Float
}
type GameAggregatorAvg {
price: Float
}
type GameAggregatorMin {
price: Float
}
type GameAggregatorMax {
price: Float
}
type GameGroupBy {
id: [GameConnectionId]
created_at: [GameConnectionCreated_at]
updated_at: [GameConnectionUpdated_at]
name: [GameConnectionName]
slug: [GameConnectionSlug]
short_description: [GameConnectionShort_description]
description: [GameConnectionDescription]
price: [GameConnectionPrice]
release_date: [GameConnectionRelease_date]
rating: [GameConnectionRating]
cover: [GameConnectionCover]
publisher: [GameConnectionPublisher]
published_at: [GameConnectionPublished_at]
}
type GameConnectionId {
key: ID
connection: GameConnection
}
type GameConnectionCreated_at {
key: DateTime
connection: GameConnection
}
type GameConnectionUpdated_at {
key: DateTime
connection: GameConnection
}
type GameConnectionName {
key: String
connection: GameConnection
}
type GameConnectionSlug {
key: String
connection: GameConnection
}
type GameConnectionShort_description {
key: String
connection: GameConnection
}
type GameConnectionDescription {
key: String
connection: GameConnection
}
type GameConnectionPrice {
key: Float
connection: GameConnection
}
type GameConnectionRelease_date {
key: ID
connection: GameConnection
}
type GameConnectionRating {
key: String
connection: GameConnection
}
type GameConnectionCover {
key: ID
connection: GameConnection
}
type GameConnectionPublisher {
key: ID
connection: GameConnection
}
type GameConnectionPublished_at {
key: DateTime
connection: GameConnection
}
input GameInput {
name: String!
slug: String!
short_description: String!
description: String!
price: Float
release_date: Date
rating: ENUM_GAME_RATING
cover: ID
galery: [ID]
categories: [ID]
developers: [ID]
plataforms: [ID]
publisher: ID
published_at: DateTime
created_by: ID
updated_by: ID
}
input editGameInput {
name: String
slug: String
short_description: String
description: String
price: Float
release_date: Date
rating: ENUM_GAME_RATING
cover: ID
galery: [ID]
categories: [ID]
developers: [ID]
plataforms: [ID]
publisher: ID
published_at: DateTime
created_by: ID
updated_by: ID
}
input createGameInput {
data: GameInput
}
type createGamePayload {
game: Game
}
input updateGameInput {
where: InputID
data: editGameInput
}
type updateGamePayload {
game: Game
}
input deleteGameInput {
where: InputID
}
type deleteGamePayload {
game: Game
}
type Home {
id: ID!
created_at: DateTime!
updated_at: DateTime!
newGames: ComponentPageSection
upcommingGames: ComponentPageSection
freeGames: ComponentPageSection
popularGames: ComponentPagePopularGames
published_at: DateTime
}
input HomeInput {
newGames: ComponentPageSectionInput
upcommingGames: ComponentPageSectionInput
freeGames: ComponentPageSectionInput
popularGames: ComponentPagePopularGameInput
published_at: DateTime
created_by: ID
updated_by: ID
}
input editHomeInput {
newGames: editComponentPageSectionInput
upcommingGames: editComponentPageSectionInput
freeGames: editComponentPageSectionInput
popularGames: editComponentPagePopularGameInput
published_at: DateTime
created_by: ID
updated_by: ID
}
input updateHomeInput {
data: editHomeInput
}
type updateHomePayload {
home: Home
}
type deleteHomePayload {
home: Home
}
type Plataform {
id: ID!
created_at: DateTime!
updated_at: DateTime!
name: String!
slug: String!
published_at: DateTime
games(sort: String, limit: Int, start: Int, where: JSON): [Game!]!
}
type PlataformConnection {
values: [Plataform]
groupBy: PlataformGroupBy
aggregate: PlataformAggregator
}
type PlataformAggregator {
count: Int
totalCount: Int
}
type PlataformGroupBy {
id: [PlataformConnectionId]
created_at: [PlataformConnectionCreated_at]
updated_at: [PlataformConnectionUpdated_at]
name: [PlataformConnectionName]
slug: [PlataformConnectionSlug]
published_at: [PlataformConnectionPublished_at]
}
type PlataformConnectionId {
key: ID
connection: PlataformConnection
}
type PlataformConnectionCreated_at {
key: DateTime
connection: PlataformConnection
}
type PlataformConnectionUpdated_at {
key: DateTime
connection: PlataformConnection
}
type PlataformConnectionName {
key: String
connection: PlataformConnection
}
type PlataformConnectionSlug {
key: String
connection: PlataformConnection
}
type PlataformConnectionPublished_at {
key: DateTime
connection: PlataformConnection
}
input PlataformInput {
name: String!
slug: String!
games: [ID]
published_at: DateTime
created_by: ID
updated_by: ID
}
input editPlataformInput {
name: String
slug: String
games: [ID]
published_at: DateTime
created_by: ID
updated_by: ID
}
input createPlataformInput {
data: PlataformInput
}
type createPlataformPayload {
plataform: Plataform
}
input updatePlataformInput {
where: InputID
data: editPlataformInput
}
type updatePlataformPayload {
plataform: Plataform
}
input deletePlataformInput {
where: InputID
}
type deletePlataformPayload {
plataform: Plataform
}
type Publisher {
id: ID!
created_at: DateTime!
updated_at: DateTime!
name: String!
slug: String!
published_at: DateTime
games(sort: String, limit: Int, start: Int, where: JSON): [Game!]!
}
type PublisherConnection {
values: [Publisher]
groupBy: PublisherGroupBy
aggregate: PublisherAggregator
}
type PublisherAggregator {
count: Int
totalCount: Int
}
type PublisherGroupBy {
id: [PublisherConnectionId]
created_at: [PublisherConnectionCreated_at]
updated_at: [PublisherConnectionUpdated_at]
name: [PublisherConnectionName]
slug: [PublisherConnectionSlug]
published_at: [PublisherConnectionPublished_at]
}
type PublisherConnectionId {
key: ID
connection: PublisherConnection
}
type PublisherConnectionCreated_at {
key: DateTime
connection: PublisherConnection
}
type PublisherConnectionUpdated_at {
key: DateTime
connection: PublisherConnection
}
type PublisherConnectionName {
key: String
connection: PublisherConnection
}
type PublisherConnectionSlug {
key: String
connection: PublisherConnection
}
type PublisherConnectionPublished_at {
key: DateTime
connection: PublisherConnection
}
input PublisherInput {
name: String!
slug: String!
games: [ID]
published_at: DateTime
created_by: ID
updated_by: ID
}
input editPublisherInput {
name: String
slug: String
games: [ID]
published_at: DateTime
created_by: ID
updated_by: ID
}
input createPublisherInput {
data: PublisherInput
}
type createPublisherPayload {
publisher: Publisher
}
input updatePublisherInput {
where: InputID
data: editPublisherInput
}
type updatePublisherPayload {
publisher: Publisher
}
input deletePublisherInput {
where: InputID
}
type deletePublisherPayload {
publisher: Publisher
}
type Recommended {
id: ID!
created_at: DateTime!
updated_at: DateTime!
section: ComponentPagePopularGames
published_at: DateTime
}
input RecommendedInput {
section: ComponentPagePopularGameInput!
published_at: DateTime
created_by: ID
updated_by: ID
}
input editRecommendedInput {
section: editComponentPagePopularGameInput
published_at: DateTime
created_by: ID
updated_by: ID
}
input updateRecommendedInput {
data: editRecommendedInput
}
type updateRecommendedPayload {
recommended: Recommended
}
type deleteRecommendedPayload {
recommended: Recommended
}
type I18NLocale {
id: ID!
created_at: DateTime!
updated_at: DateTime!
name: String
code: String
}
input LocaleInput {
name: String
code: String
created_by: ID
updated_by: ID
}
input editLocaleInput {
name: String
code: String
created_by: ID
updated_by: ID
}
type UploadFile {
id: ID!
created_at: DateTime!
updated_at: DateTime!
name: String!
alternativeText: String
caption: String
width: Int
height: Int
formats: JSON
hash: String!
ext: String
mime: String!
size: Float!
url: String!
previewUrl: String
provider: String!
provider_metadata: JSON
related(sort: String, limit: Int, start: Int, where: JSON): [Morph!]!
}
type UploadFileConnection {
values: [UploadFile]
groupBy: UploadFileGroupBy
aggregate: UploadFileAggregator
}
type UploadFileAggregator {
count: Int
totalCount: Int
sum: UploadFileAggregatorSum
avg: UploadFileAggregatorAvg
min: UploadFileAggregatorMin
max: UploadFileAggregatorMax
}
type UploadFileAggregatorSum {
width: Float
height: Float
size: Float
}
type UploadFileAggregatorAvg {
width: Float
height: Float
size: Float
}
type UploadFileAggregatorMin {
width: Float
height: Float
size: Float
}
type UploadFileAggregatorMax {
width: Float
height: Float
size: Float
}
type UploadFileGroupBy {
id: [UploadFileConnectionId]
created_at: [UploadFileConnectionCreated_at]
updated_at: [UploadFileConnectionUpdated_at]
name: [UploadFileConnectionName]
alternativeText: [UploadFileConnectionAlternativeText]
caption: [UploadFileConnectionCaption]
width: [UploadFileConnectionWidth]
height: [UploadFileConnectionHeight]
formats: [UploadFileConnectionFormats]
hash: [UploadFileConnectionHash]
ext: [UploadFileConnectionExt]
mime: [UploadFileConnectionMime]
size: [UploadFileConnectionSize]
url: [UploadFileConnectionUrl]
previewUrl: [UploadFileConnectionPreviewUrl]
provider: [UploadFileConnectionProvider]
provider_metadata: [UploadFileConnectionProvider_metadata]
}
type UploadFileConnectionId {
key: ID
connection: UploadFileConnection
}
type UploadFileConnectionCreated_at {