You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/api/generatedTypes.ts
+15-24
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ export type Scalars = {
20
20
Int: number;
21
21
Float: number;
22
22
_FieldSet: any;
23
-
/** A date in the YYYY-MM-DD format. */
23
+
/** A date string, such as 2007-12-03, compliant with the `full-date` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */
24
24
Date: any;
25
25
/** A String representing a date in the format of `yyyy-MM-dd HH:mm:ss` */
26
26
DateString: any;
@@ -37,7 +37,7 @@ export type Scalars = {
37
37
* not treated differently from String in the API.
38
38
*/
39
39
Markdown: any;
40
-
/** A positive integer number. */
40
+
/** Integers that will have a value of 0 or more. */
41
41
NonNegativeInt: any;
42
42
Upload: any;
43
43
/** A URL - usually, for an interesting story on the internet that's worth saving to Pocket. */
@@ -90,8 +90,8 @@ export type ApprovedCorpusItem = {
90
90
/** Whether this item is a syndicated article. */
91
91
isSyndicated: Scalars['Boolean'];
92
92
/**
93
-
* A flag to ML to not recommend this item long term after it is added to the corpus.
94
-
* Example: a story covering an election, or "The best of 202x" collection.
93
+
* Experimental data point that could imply either an expiry date or an urgency to be shown.
94
+
* May be used for ML modeling.
95
95
*/
96
96
isTimeSensitive: Scalars['Boolean'];
97
97
/** What language this story is in. This is a two-letter code, for example, 'EN' for English. */
@@ -117,7 +117,7 @@ export type ApprovedCorpusItem = {
117
117
updatedAt: Scalars['Int'];
118
118
/** A single sign-on user identifier of the user who last updated this entity. Null on creation. */
119
119
updatedBy?: Maybe<Scalars['String']>;
120
-
/** key field to identify the Approved Corpus Item entity in the Curated Corpus service */
120
+
/** The URL of the story. */
121
121
url: Scalars['Url'];
122
122
};
123
123
@@ -259,7 +259,7 @@ export type CachedImageInput = {
259
259
fileType?: InputMaybe<ImageFileType>;
260
260
/** Height of the image */
261
261
height?: InputMaybe<Scalars['Int']>;
262
-
/** Id of the image in the returned result set */
262
+
/** ID that will be added to the generated response object so you can find it. NOTE: Can be any string that you like, it will be added to the response so you can use it when consuming it */
263
263
id: Scalars['ID'];
264
264
/** Quality of the image in whole percentage, 100 = full, quality 50 = half quality */
265
265
qualityPercentage?: InputMaybe<Scalars['Int']>;
@@ -497,8 +497,8 @@ export enum CorpusLanguage {
497
497
/** A node in a CorpusSearchConnection result */
498
498
exporttypeCorpusSearchNode={
499
499
__typename?: 'CorpusSearchNode';
500
-
/** The preview of the search result */
501
-
preview: PocketMetadata;
500
+
/** Attaches the item so we can use the preview field */
501
+
item?: Maybe<Item>;
502
502
};
503
503
504
504
/** Input data for creating an Approved Item and optionally scheduling this item to appear on a Scheduled Surface. */
@@ -841,7 +841,10 @@ export type ImportApprovedCorpusItemPayload = {
841
841
scheduledItem: ScheduledCorpusItem;
842
842
};
843
843
844
-
/** Resolve by reference the Item entity to connect Prospect to Items. */
844
+
/**
845
+
* The heart of Pocket
846
+
* A url and meta data related to it.
847
+
*/
845
848
exporttypeItem={
846
849
__typename?: 'Item';
847
850
/** If available, the url to an AMP version of this article */
@@ -1176,14 +1179,6 @@ export type Mutation = {
1176
1179
deleteCollectionStory: CollectionStory;
1177
1180
/** Deletes an item from a Scheduled Surface. */
1178
1181
deleteScheduledCorpusItem: ScheduledCorpusItem;
1179
-
/**
1180
-
* Marks a prospect as 'curated' in the database, preventing it from being displayed for prospecting.
1181
-
* Returns the prospect if the operation succeeds, and null if not (almost surely due to an incorrect id).
1182
-
*
1183
-
* This is functionally a copy of updateProspectAsCurated for now, but will have differences in
1184
-
* snowplow reporting down the line.
1185
-
*/
1186
-
dismissProspect?: Maybe<Prospect>;
1187
1182
/**
1188
1183
* Lets an automated process create an Approved Item and optionally schedule it to appear
1189
1184
* on a Scheduled Surface.
@@ -1253,6 +1248,8 @@ export type Mutation = {
1253
1248
/**
1254
1249
* Marks a prospect as 'curated' in the database, preventing it from being displayed for prospecting.
1255
1250
* Returns the prospect if the operation succeeds, and null if not (almost surely due to an incorrect id).
1251
+
*
1252
+
* Called when approving or rejecting a prospect into the corpus.
1256
1253
*/
1257
1254
updateProspectAsCurated?: Maybe<Prospect>;
1258
1255
/** Uploads an image to S3 for an Approved Item */
@@ -1315,10 +1312,6 @@ export type MutationDeleteScheduledCorpusItemArgs = {
1315
1312
data: DeleteScheduledCorpusItemInput;
1316
1313
};
1317
1314
1318
-
exporttypeMutationDismissProspectArgs={
1319
-
id: Scalars['ID'];
1320
-
};
1321
-
1322
1315
exporttypeMutationImportApprovedCorpusItemArgs={
1323
1316
data: ImportApprovedCorpusItemInput;
1324
1317
};
@@ -1559,7 +1552,6 @@ export type Prospect = {
1559
1552
*/
1560
1553
exportenumProspectType{
1561
1554
Counts='COUNTS',
1562
-
CountsModeled='COUNTS_MODELED',
1563
1555
Dismissed='DISMISSED',
1564
1556
DomainAllowlist='DOMAIN_ALLOWLIST',
1565
1557
PublisherSubmitted='PUBLISHER_SUBMITTED',
@@ -1568,7 +1560,6 @@ export enum ProspectType {
1568
1560
RssLogisticRecent='RSS_LOGISTIC_RECENT',
1569
1561
SlateSchedulerV2='SLATE_SCHEDULER_V2',
1570
1562
Timespent='TIMESPENT',
1571
-
TimespentModeled='TIMESPENT_MODELED',
1572
1563
TitleUrlModeled='TITLE_URL_MODELED',
1573
1564
TopSaved='TOP_SAVED',
1574
1565
}
@@ -1795,7 +1786,7 @@ export type RejectedCorpusItem = {
1795
1786
* Temporarily a string value that will be provided by Prospect API, possibly an enum in the future.
1796
1787
*/
1797
1788
topic?: Maybe<Scalars['String']>;
1798
-
/** key field to identify the Rejected Corpus Item entity in the Curated Corpus service */
0 commit comments