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/generated/graphql/types.ts
+37-9Lines changed: 37 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,7 @@ export type CachedImageInput = {
154
154
fileType?: InputMaybe<ImageFileType>;
155
155
/** Height of the image */
156
156
height?: InputMaybe<Scalars['Int']>;
157
-
/** Id of the image in the returned result set */
157
+
/** 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 */
158
158
id: Scalars['ID'];
159
159
/** Quality of the image in whole percentage, 100 = full, quality 50 = half quality */
160
160
qualityPercentage?: InputMaybe<Scalars['Int']>;
@@ -183,6 +183,8 @@ export type Collection = {
183
183
*/
184
184
language: CollectionLanguage;
185
185
partnership?: Maybe<CollectionPartnership>;
186
+
/** The preview of the collection */
187
+
preview: PocketMetadata;
186
188
publishedAt?: Maybe<Scalars['DateString']>;
187
189
/**
188
190
* Provides short url for the given_url in the format: https://pocket.co/<identifier>.
@@ -301,8 +303,12 @@ export type CorpusItem = {
301
303
image: Image;
302
304
/** The image URL for this item's accompanying picture. */
303
305
imageUrl: Scalars['Url'];
306
+
/** Experimental data point that could imply either an expiry date or an urgency to be shown. */
307
+
isTimeSensitive: Scalars['Boolean'];
304
308
/** What language this item is in. This is a two-letter code, for example, 'EN' for English. */
305
309
language: CorpusLanguage;
310
+
/** The preview of the search result */
311
+
preview: PocketMetadata;
306
312
/** The name of the online publication that published this story. */
307
313
publisher: Scalars['String'];
308
314
/** The user's saved item, from the Corpus Item, if the corpus item was saved to the user's saves */
@@ -451,8 +457,8 @@ export type CorpusSearchHighlights = {
451
457
/** A node in a CorpusSearchConnection result */
452
458
exporttypeCorpusSearchNode={
453
459
__typename?: 'CorpusSearchNode';
454
-
/** The preview of the search result */
455
-
preview: PocketMetadata;
460
+
/** Attaches the item so we can use the preview field */
461
+
item?: Maybe<Item>;
456
462
/** Search highlights */
457
463
searchHighlights?: Maybe<CorpusSearchHighlights>;
458
464
};
@@ -469,7 +475,11 @@ export type CorpusSearchQueryString = {
469
475
query: Scalars['String'];
470
476
};
471
477
472
-
/** Sort scheme for Corpus Search. Defaults to showing most relevant results first. */
478
+
/**
479
+
* Sort scheme for Corpus Search. Defaults to showing most relevant results first.
480
+
* Only relevant for indices which use keyword search.
481
+
* **Semantic search will ignore any inputs and use default only.**
482
+
*/
473
483
exporttypeCorpusSearchSort={
474
484
sortBy: CorpusSearchSortBy;
475
485
sortOrder?: InputMaybe<SearchItemsSortOrder>;
@@ -828,6 +838,8 @@ export type Item = {
828
838
* @deprecated Clients should not use this
829
839
*/
830
840
contentLength?: Maybe<Scalars['Int']>;
841
+
/** If the item is in corpus allow the item to reference it. Exposing curated info for consistent UX */
842
+
corpusItem?: Maybe<CorpusItem>;
831
843
/** The date the article was published */
832
844
datePublished?: Maybe<Scalars['DateString']>;
833
845
/** The date the parser resolved this item */
@@ -904,7 +916,7 @@ export type Item = {
904
916
* @deprecated Use a domain as the identifier instead
905
917
*/
906
918
originDomainId?: Maybe<Scalars['String']>;
907
-
/** The client preview/display logic for this url */
919
+
/** The client preview/display logic for this url. The requires for each object should be kept in sync with the sub objects requires field. */
908
920
preview?: Maybe<PocketMetadata>;
909
921
/** A server generated unique reader slug for this item based on itemId */
910
922
readerSlug: Scalars['String'];
@@ -1961,9 +1973,12 @@ export type PocketMetadata = {
1961
1973
};
1962
1974
1963
1975
exportenumPocketMetadataSource{
1976
+
Collection='COLLECTION',
1977
+
CuratedCorpus='CURATED_CORPUS',
1964
1978
Oembed='OEMBED',
1965
1979
Opengraph='OPENGRAPH',
1966
-
PocketParser='POCKET_PARSER'
1980
+
PocketParser='POCKET_PARSER',
1981
+
Syndication='SYNDICATION'
1967
1982
}
1968
1983
1969
1984
/**
@@ -2165,7 +2180,12 @@ export type Query = {
2165
2180
/** List all topics that the user can express a preference for. */
2166
2181
recommendationPreferenceTopics: Array<Topic>;
2167
2182
scheduledSurface: ScheduledSurface;
2168
-
/** Search Pocket's corpus of recommendations and collections. */
2183
+
/**
2184
+
* Search Pocket's corpus of recommendations and collections.
2185
+
* Note that sort will have no effect unless using keyword
2186
+
* semantic search will always be returned in relevance order
2187
+
* (most relevant first).
2188
+
*/
2169
2189
searchCorpus?: Maybe<CorpusSearchConnection>;
2170
2190
/**
2171
2191
* Resolve data for a Shared link, or return a Not Found
0 commit comments