This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
generated from Pocket/backend-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema-admin.graphql
977 lines (926 loc) · 23.8 KB
/
schema-admin.graphql
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
scalar Upload
"""
The outcome of the curators reviewing a prospective story.
"""
enum CuratedStatus {
"""
Recommend this story for Pocket users. This is first-tier content.
"""
RECOMMENDATION
"""
This story is suitable for our curated corpus. It's a second-tier recommendation.
"""
CORPUS
}
"""
Options for returning items sorted by the supplied field.
"""
enum OrderBy {
"""
Return items in ascending order.
"""
ASC
"""
Return items in descending order.
"""
DESC
}
"""
The list of Pocket topics. This enum is not used anywhere in this schema, however it is used
by the Curation Admin Tools frontend to edit curated items.
"""
enum Topics {
BUSINESS
CAREER
CORONAVIRUS
EDUCATION
ENTERTAINMENT
FOOD
GAMING
HEALTH_FITNESS
PARENTING
PERSONAL_FINANCE
POLITICS
SCIENCE
SELF_IMPROVEMENT
SPORTS
TECHNOLOGY
TRAVEL
}
"""
Possible reasons for rejecting a prospect. This enum is not used anywhere in this schema,
however it is used by the Curation Admin Tools frontend to specify rejection reasons.
"""
enum RejectionReason {
PAYWALL
POLITICAL_OPINION
OFFENSIVE_MATERIAL
TIME_SENSITIVE
MISINFORMATION
OTHER
}
"""
Prospect types. This enum is not used anywhere in this schema, however it is used
by the Curation Admin Tools frontend to filter prospects.
"""
enum ProspectType {
TIMESPENT
COUNTS
SYNDICATED_NEW
SYNDICATED_RERUN
DOMAIN_ALLOWLIST
TOP_SAVED
RECOMMENDED
COUNTS_MODELED
TIMESPENT_MODELED
TITLE_URL_MODELED
DISMISSED
RSS_LOGISTIC
RSS_LOGISTIC_RECENT
CONSTRAINT_SCHEDULE
SLATE_SCHEDULER
}
"""
The source of the corpus item
"""
enum CorpusItemSource {
"""
Originated as a prospect in the curation admin tool
"""
PROSPECT
"""
Manually entered through the curation admin tool
"""
MANUAL
"""
Imported from the legacy database
"""
BACKFILL
}
"""
A Scheduled Surface, including its associated Prospect Types.
"""
type ScheduledSurface {
"""
The GUID of the Scheduled Surface. Example: 'NEW_TAB_EN_US'.
"""
guid: String!
"""
The display name of the Scheduled Surface. Example 'New Tab (en-US)'.
"""
name: String!
"""
The IANA timezone of the Scheduled Surface, used to determine the start of a day.
"""
ianaTimezone: String!
"""
An array of associated ProspectTypes.
"""
prospectTypes: [ProspectType!]!
}
"""
A prospective story that has been reviewed by the curators and saved to the corpus.
"""
type ApprovedCorpusItem @key(fields: "url") {
"""
An alternative primary key in UUID format that is generated on creation.
"""
externalId: ID!
"""
The GUID of the corresponding Prospect ID. Will be empty if the item was manually added.
"""
prospectId: ID
"""
The URL of the story.
"""
url: Url!
"""
The title of the story.
"""
title: String!
"""
The excerpt of the story.
"""
excerpt: String!
"""
The authors associated with this ApprovedCorpusItem.
"""
authors: [CorpusItemAuthor!]!
"""
The outcome of the curators' review.
"""
status: CuratedStatus!
"""
What language this story is in. This is a two-letter code, for example, 'EN' for English.
"""
language: CorpusLanguage!
"""
The name of the online publication that published this story.
"""
publisher: String!
"""
The image URL associated with the story.
This is a link to an S3 bucket - the image will have been pre-uploaded to S3 before saving a curated item.
"""
imageUrl: Url!
"""
A topic this story best fits in.
Temporarily a string value that will be provided by Prospect API, possibly an enum in the future.
"""
topic: String!
"""
The source of the corpus item.
"""
source: CorpusItemSource!
"""
Whether this story is a Pocket Collection.
"""
isCollection: Boolean!
"""
A flag to ML to not recommend this item long term after it is added to the corpus.
Example: a story covering an election, or "The best of 202x" collection.
"""
isTimeSensitive: Boolean!
"""
Whether this item is a syndicated article.
"""
isSyndicated: Boolean!
"""
A Unix timestamp of when the entity was created.
"""
createdAt: Int!
"""
A single sign-on user identifier of the user who created this entity.
"""
createdBy: String!
"""
A Unix timestamp of when the entity was last updated.
"""
updatedAt: Int!
"""
A single sign-on user identifier of the user who last updated this entity. Null on creation.
"""
updatedBy: String
"""
Subquery to get the log of scheduled entries to display for a given Approved Item, most recent first.
"""
scheduledSurfaceHistory(
filters: ApprovedCorpusItemScheduledSurfaceHistoryFilters
): [ApprovedCorpusItemScheduledSurfaceHistory!]!
}
"""
A prospective story that has been rejected by the curators.
"""
type RejectedCorpusItem @key(fields: "url") {
"""
An alternative primary key in UUID format that is generated on creation.
"""
externalId: ID!
"""
The GUID of the corresponding Prospect ID. Will be empty if the item was manually added.
"""
prospectId: ID
"""
The URL of the story.
"""
url: Url!
"""
The title of the story.
"""
title: String
"""
A topic this story best fits in.
Temporarily a string value that will be provided by Prospect API, possibly an enum in the future.
"""
topic: String
"""
What language this story is in. This is a two-letter code, for example, 'EN' for English.
"""
language: CorpusLanguage
"""
The name of the online publication that published this story.
"""
publisher: String
"""
Reason why it was rejected. Can be multiple reasons. Will likely be stored either as comma-separated values or JSON.
"""
reason: String!
"""
A Unix timestamp of when the entity was created.
"""
createdAt: Int!
"""
A single sign-on user identifier of the user who created this entity.
"""
createdBy: String!
}
"""
An edge in a connection.
"""
type ApprovedCorpusItemEdge {
"""
A cursor for use in pagination.
"""
cursor: String!
"""
The Approved Item at the end of the edge.
"""
node: ApprovedCorpusItem!
}
type ApprovedCorpusImageUrl {
"""
The url of the image stored in the s3 bucket
"""
url: String!
}
"""
An edge in a connection for RejectedCorpusItem type.
"""
type RejectedCorpusItemEdge {
"""
A cursor for use in pagination.
"""
cursor: String!
"""
The Rejected Item at the end of the edge.
"""
node: RejectedCorpusItem!
}
"""
The connection type for Approved Item.
"""
type ApprovedCorpusItemConnection {
"""
A list of edges.
"""
edges: [ApprovedCorpusItemEdge!]!
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
"""
Identifies the total count of Approved Items in the connection.
"""
totalCount: Int!
}
"""
The connection type for Rejected Item.
"""
type RejectedCorpusItemConnection {
"""
A list of edges.
"""
edges: [RejectedCorpusItemEdge!]!
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
"""
Identifies the total count of Rejected Curated Items in the connection.
"""
totalCount: Int!
}
"""
A scheduled entry for an Approved Item to appear on a Scheduled Surface.
For example, a story that is scheduled to appear on December 31st, 2021 on the New Tab in Firefox for the US audience.
"""
type ScheduledCorpusItem {
"""
An alternative primary key in UUID format that is generated on creation.
"""
externalId: ID!
"""
A Unix timestamp of when the entity was created.
"""
createdAt: Int!
"""
A single sign-on user identifier of the user who created this entity.
"""
createdBy: String!
"""
A Unix timestamp of when the entity was last updated.
"""
updatedAt: Int!
"""
A single sign-on user identifier of the user who last updated this entity. Null on creation.
"""
updatedBy: String
"""
The date the associated Approved Item is scheduled to appear on a Scheduled Surface.
This date is relative to the time zone of the Scheduled Surface. Format: YYYY-MM-DD.
"""
scheduledDate: Date!
"""
The associated Approved Item.
"""
approvedItem: ApprovedCorpusItem!
"""
The GUID of this scheduledSurface to which this item is scheduled. Example: 'NEW_TAB_EN_US'.
"""
scheduledSurfaceGuid: ID!
}
"""
The shape of the result returned by the getScheduledCorpusItems query.
"""
type ScheduledCorpusItemsResult {
"""
The date items are scheduled for, in YYYY-MM-DD format.
"""
scheduledDate: Date!
"""
The number of curated items that are collections for the scheduled date.
"""
collectionCount: Int!
"""
The number of syndicated articles for the scheduled date.
"""
syndicatedCount: Int!
"""
The total number of items for the scheduled date.
"""
totalCount: Int!
"""
An array of items for a given Scheduled Surface
"""
items: [ScheduledCorpusItem!]!
}
"""
Available fields for filtering Approved Items.
"""
input ApprovedCorpusItemFilter {
"""
Optional filter on the URL field. Returns partial matches.
"""
url: Url
"""
Optional filter on the title field. Returns partial matches.
"""
title: String
"""
Optional filter on the topic field.
"""
topic: String
"""
Optional filter on the status of Approved Items.
"""
status: CuratedStatus
"""
Optional filter on the language Approved Items have been classified as.
This is a two-letter string, e.g. 'EN' for English or 'DE' for 'German'.
"""
language: CorpusLanguage
}
type ApprovedCorpusItemScheduledSurfaceHistory {
"""
An alternative primary key in UUID format that is generated on creation.
Note: this is the external ID of the scheduled entry, not the approved item.
"""
externalId: ID!
"""
A single sign-on user identifier of the user who created this entry.
"""
createdBy: String!
"""
The date the associated Approved Item is scheduled to appear on a Scheduled Surface.
This date is relative to the time zone of the Scheduled Surface. Format: YYYY-MM-DD.
"""
scheduledDate: Date!
"""
The GUID of the scheduledSurface to which the associated Approved Item is scheduled.
Example: 'NEW_TAB_EN_US'.
"""
scheduledSurfaceGuid: ID!
}
"""
Available fields for filtering an Approved Item's history of being scheduled onto one or more
scheduled surfaces.
"""
input ApprovedCorpusItemScheduledSurfaceHistoryFilters {
"""
The maximum number of results to be returned. Default: 10.
"""
limit: NonNegativeInt
"""
The scheduled surface the results should be filtered to. Omitting this filter will
fetch results from all scheduled surfaces.
"""
scheduledSurfaceGuid: ID
}
"""
Available fields for filtering Rejected Items.
"""
input RejectedCorpusItemFilter {
"""
Optional filter on the URL field. Returns partial matches.
"""
url: Url
"""
Optional filter on the title field. Returns partial matches.
"""
title: String
"""
Optional filter on the topic field.
"""
topic: String
"""
Optional filter on the language Rejected Curated Items have been classified as.
This is a two-letter string, e.g. 'EN' for English or 'DE' for 'German'.
"""
language: CorpusLanguage
}
"""
Available fields for filtering scheduled items for a given Scheduled Surface.
"""
input ScheduledCorpusItemsFilterInput {
"""
The GUID of the Scheduled Surface. Example: 'NEW_TAB_EN_US'.
"""
scheduledSurfaceGuid: ID!
"""
Which day to show scheduled items from. Expects a date in YYYY-MM-DD format.
"""
startDate: Date!
"""
To what day to show scheduled items to, inclusive. Expects a date in YYYY-MM-DD format.
"""
endDate: Date!
}
"""
An author associated with a CorpusItem.
"""
input CorpusItemAuthorInput {
name: String!
sortOrder: Int!
}
"""
Input data for creating an Approved Item and optionally scheduling this item to appear on a Scheduled Surface.
"""
input CreateApprovedCorpusItemInput {
"""
The GUID of the corresponding Prospect ID. Will be empty for manually added items.
"""
prospectId: ID
"""
The URL of the Approved Item.
"""
url: Url!
"""
The title of the Approved Item.
"""
title: String!
"""
The excerpt of the Approved Item.
"""
excerpt: String!
"""
A name and sort order for each author.
"""
authors: [CorpusItemAuthorInput!]!
"""
The outcome of the curators' review of the Approved Item.
"""
status: CuratedStatus!
"""
What language this item is in. This is a two-letter code, for example, 'EN' for English.
"""
language: CorpusLanguage!
"""
The name of the online publication that published this story.
"""
publisher: String!
"""
The image URL for this item's accompanying picture.
"""
imageUrl: Url!
"""
A topic this story best fits in.
Temporarily a string value that will be provided by Prospect API, possibly an enum in the future.
"""
topic: String!
"""
The source of the corpus item.
"""
source: CorpusItemSource!
"""
Whether this story is a Pocket Collection.
"""
isCollection: Boolean!
"""
A flag to ML to not recommend this item long term after it is added to the corpus.
Example: a story covering an election, or "The best of 202x" collection.
"""
isTimeSensitive: Boolean!
"""
Whether this item is a syndicated article.
"""
isSyndicated: Boolean!
"""
Optionally, specify the date this item should be appearing on a Scheduled Surface. Format: YYYY-MM-DD
"""
scheduledDate: Date
"""
Optionally, specify the GUID of the Scheduled Surface this item should be scheduled for.
"""
scheduledSurfaceGuid: ID
}
"""
Input data for loading an Approved Item via an automated process and optionally scheduling
this item to appear on a Scheduled Surface.
"""
input ImportApprovedCorpusItemInput {
"""
The URL of the Approved Item.
"""
url: Url!
"""
The title of the Approved Item.
"""
title: String!
"""
The excerpt of the Approved Item.
"""
excerpt: String!
"""
The outcome of the curators' review of the Approved Item.
"""
status: CuratedStatus!
"""
What language this item is in. This is a two-letter capitalized code, for example, 'EN' for English.
"""
language: CorpusLanguage!
"""
The name of the online publication that published this story.
"""
publisher: String!
"""
The image URL for this item's accompanying picture.
"""
imageUrl: Url!
"""
A topic this story best fits in. The value will be `null` for migrated items that don't have a topic set.
"""
topic: String
"""
The source of the corpus item.
"""
source: CorpusItemSource!
"""
Whether this story is a Pocket Collection.
"""
isCollection: Boolean
"""
Whether this item is a syndicated article.
"""
isSyndicated: Boolean
"""
A Unix timestamp of when the entity was created.
"""
createdAt: Int!
"""
A single sign-on user identifier of the user who created this entity.
"""
createdBy: String!
"""
A Unix timestamp of when the entity was last updated.
"""
updatedAt: Int!
"""
A single sign-on user identifier of the user who last updated this entity.
"""
updatedBy: String!
"""
The date this item should be appearing on a Scheduled Surface. Format: YYYY-MM-DD
"""
scheduledDate: Date!
"""
The GUID of the Scheduled Surface this item should be scheduled for.
"""
scheduledSurfaceGuid: ID!
}
"""
The data that the loadApprovedCuratedCorpusItem mutation returns on success.
"""
type ImportApprovedCorpusItemPayload {
"""
The approved item, as created by an automated process.
"""
approvedItem: ApprovedCorpusItem!
"""
The scheduled entry that is created by an automated process at the same time.
"""
scheduledItem: ScheduledCorpusItem!
}
"""
Input data for updating an Approved Item.
"""
input UpdateApprovedCorpusItemInput {
"""
Approved Item ID.
"""
externalId: ID!
"""
The title of the Approved Item.
"""
title: String!
"""
The excerpt of the Approved Item.
"""
excerpt: String!
"""
A name and sort order for each author.
"""
authors: [CorpusItemAuthorInput!]!
"""
The outcome of the curators' review of the Approved Item.
"""
status: CuratedStatus!
"""
What language this item is in. This is a two-letter code, for example, 'EN' for English.
"""
language: CorpusLanguage!
"""
The name of the online publication that published this story.
"""
publisher: String!
"""
The image URL for this item's accompanying picture.
"""
imageUrl: Url!
"""
A topic this story best fits in.
Temporarily a string value that will be provided by Prospect API, possibly an enum in the future.
"""
topic: String!
"""
A flag to ML to not recommend this item long term after it is added to the corpus.
Example: a story covering an election, or "The best of 202x" collection.
"""
isTimeSensitive: Boolean!
}
"""
Input data for updating an Approved Item's author data.
"""
input UpdateApprovedCorpusItemAuthorsInput {
"""
Approved Item ID.
"""
externalId: ID!
"""
A name and sort order for each author.
"""
authors: [CorpusItemAuthorInput!]!
}
"""
Input data for rejecting an Approved Item.
"""
input RejectApprovedCorpusItemInput {
"""
Approved Item ID.
"""
externalId: ID!
"""
A comma-separated list of rejection reasons.
"""
reason: String!
}
"""
Input data for creating a Rejected Item.
"""
input CreateRejectedCorpusItemInput {
"""
The GUID of the corresponding Prospect ID. Will be empty for manually added item.
"""
prospectId: ID
"""
The URL of the Rejected Item.
"""
url: Url!
"""
The title of the Rejected Item.
"""
title: String
"""
A topic this story best fits in.
Temporarily a string value that will be provided by Prospect API, possibly an enum in the future.
"""
topic: String!
"""
What language this item is in. This is a two-letter code, for example, 'EN' for English.
"""
language: CorpusLanguage
"""
The name of the online publication that published this story.
"""
publisher: String
"""
A comma-separated list of rejection reasons.
"""
reason: String!
}
"""
Input data for creating a scheduled entry for an Approved Item on a Scheduled Surface.
"""
input CreateScheduledCorpusItemInput {
"""
The ID of the Approved Item that needs to be scheduled.
"""
approvedItemExternalId: ID!
"""
The GUID of the Scheduled Surface the Approved Item is going to appear on. Example: 'NEW_TAB_EN_US'.
"""
scheduledSurfaceGuid: ID!
"""
The date the associated Approved Item is scheduled to appear on a Scheduled Surface. Format: YYYY-MM-DD.
"""
scheduledDate: Date!
}
"""
Input data for rescheduling a scheduled item for a Scheduled Surface.
"""
input RescheduleScheduledCorpusItemInput {
"""
ID of the scheduled item. A string in UUID format.
"""
externalId: ID!
"""
The new scheduled date for the scheduled item to appear on a Scheduled Surface. Format: YYYY-MM-DD.
"""
scheduledDate: Date!
}
"""
Input data for deleting a scheduled item for a Scheduled Surface.
"""
input DeleteScheduledCorpusItemInput {
"""
ID of the scheduled item. A string in UUID format.
"""
externalId: ID!
}
type Query {
"""
Retrieves a paginated, filterable list of Approved Items.
"""
getApprovedCorpusItems(
filters: ApprovedCorpusItemFilter
pagination: PaginationInput
): ApprovedCorpusItemConnection!
"""
Retrieves a paginated, filterable list of Rejected Items.
"""
getRejectedCorpusItems(
filters: RejectedCorpusItemFilter
pagination: PaginationInput
): RejectedCorpusItemConnection!
"""
Retrieves a list of Approved Items that are scheduled to appear on a Scheduled Surface.
"""
getScheduledCorpusItems(
"""
Required arguments to narrow down scheduled items to a specific Scheduled Surface
between the supplied start and end dates.
"""
filters: ScheduledCorpusItemsFilterInput!
): [ScheduledCorpusItemsResult!]!
"""
Retrieves an approved item with the given URL.
"""
getApprovedCorpusItemByUrl(
"""
The URL of the approved item.
"""
url: String!
): ApprovedCorpusItem
"""
Retrieves an approved item with the given external ID.
"""
approvedCorpusItemByExternalId(
"""
ID of the approved item. A string in UUID format.
"""
externalId: ID!
): ApprovedCorpusItem
"""
Retrieves all ScheduledSurfaces available to the given SSO user. Requires an Authorization header.
"""
getScheduledSurfacesForUser: [ScheduledSurface!]!
"""
Tool to get OG description of URL that is not yet implemented in parser
"""
getOpenGraphFields(url: Url!): OpenGraphFields
}
type Mutation {
"""
Creates an Approved Item and optionally schedules it to appear on a Scheduled Surface.
"""
createApprovedCorpusItem(
data: CreateApprovedCorpusItemInput!
): ApprovedCorpusItem!
"""
Lets an automated process create an Approved Item and optionally schedule it to appear
on a Scheduled Surface.
"""
importApprovedCorpusItem(
data: ImportApprovedCorpusItemInput!
): ImportApprovedCorpusItemPayload!
"""
Creates a Rejected Item.
"""
createRejectedCorpusItem(
data: CreateRejectedCorpusItemInput!
): RejectedCorpusItem!
"""
Updates an Approved Item.
"""
updateApprovedCorpusItem(
data: UpdateApprovedCorpusItemInput!
): ApprovedCorpusItem!
"""
Updates authors for an Approved Item.
"""
updateApprovedCorpusItemAuthors(
data: UpdateApprovedCorpusItemAuthorsInput!
): ApprovedCorpusItem!
"""
Rejects an Approved Item: deletes it from the corpus and creates a Rejected Item instead.
"""
rejectApprovedCorpusItem(
data: RejectApprovedCorpusItemInput!
): ApprovedCorpusItem!
"""
Creates a Scheduled Surface Scheduled Item.
"""
createScheduledCorpusItem(
data: CreateScheduledCorpusItemInput!
): ScheduledCorpusItem!
"""
Deletes an item from a Scheduled Surface.
"""
deleteScheduledCorpusItem(
data: DeleteScheduledCorpusItemInput!
): ScheduledCorpusItem!
"""
Updates the scheduled date of a Scheduled Surface Scheduled Item.
"""
rescheduleScheduledCorpusItem(
data: RescheduleScheduledCorpusItemInput!
): ScheduledCorpusItem!
"""
Uploads an image to S3 for an Approved Item
"""
uploadApprovedCorpusItemImage(data: Upload!): ApprovedCorpusImageUrl!
}
"""
Represents an item that is in the Corpus and its associated manually edited metadata.
TODO: CorpusItem to implement PocketResource when it becomes available.
not actively required or consumed by admin subgraph
Only exposed here to avoid conflicts with other admin-subgraph when we extend the field
"""
type CorpusItem @key(fields: "url") {
"""
The URL of the Approved Item.
"""
url: Url!
}
type OpenGraphFields {
description: String!
}