Demo using Slices Network GraphQL Relay API to make a teal.fm client
1/**
2 * @generated SignedSource<<39639d8abd772effa21efdf069699bf6>>
3 * @lightSyntaxTransform
4 * @nogrep
5 */
6
7/* tslint:disable */
8/* eslint-disable */
9// @ts-nocheck
10
11import { ConcreteRequest } from 'relay-runtime';
12import { FragmentRefs } from "relay-runtime";
13export type FmTealAlphaFeedPlayWhereInput = {
14 actorHandle?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
15 and?: ReadonlyArray<FmTealAlphaFeedPlayWhereInput> | null | undefined;
16 cid?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
17 collection?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
18 did?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
19 duration?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
20 indexedAt?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
21 isrc?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
22 musicServiceBaseDomain?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
23 or?: ReadonlyArray<FmTealAlphaFeedPlayWhereInput> | null | undefined;
24 originUrl?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
25 playedTime?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
26 recordingMbId?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
27 releaseMbId?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
28 releaseName?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
29 submissionClientAgent?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
30 trackMbId?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
31 trackName?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
32 uri?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
33};
34export type FmTealAlphaFeedPlayFieldCondition = {
35 contains?: string | null | undefined;
36 eq?: string | null | undefined;
37 gt?: string | null | undefined;
38 gte?: string | null | undefined;
39 in?: ReadonlyArray<string> | null | undefined;
40 lt?: string | null | undefined;
41 lte?: string | null | undefined;
42};
43export type ProfilePaginationQuery$variables = {
44 count?: number | null | undefined;
45 cursor?: string | null | undefined;
46 where: FmTealAlphaFeedPlayWhereInput;
47};
48export type ProfilePaginationQuery$data = {
49 readonly " $fragmentSpreads": FragmentRefs<"Profile_plays">;
50};
51export type ProfilePaginationQuery = {
52 response: ProfilePaginationQuery$data;
53 variables: ProfilePaginationQuery$variables;
54};
55
56const node: ConcreteRequest = (function(){
57var v0 = [
58 {
59 "defaultValue": 20,
60 "kind": "LocalArgument",
61 "name": "count"
62 },
63 {
64 "defaultValue": null,
65 "kind": "LocalArgument",
66 "name": "cursor"
67 },
68 {
69 "defaultValue": null,
70 "kind": "LocalArgument",
71 "name": "where"
72 }
73],
74v1 = {
75 "kind": "Variable",
76 "name": "where",
77 "variableName": "where"
78},
79v2 = [
80 {
81 "kind": "Variable",
82 "name": "after",
83 "variableName": "cursor"
84 },
85 {
86 "kind": "Variable",
87 "name": "first",
88 "variableName": "count"
89 },
90 {
91 "kind": "Literal",
92 "name": "sortBy",
93 "value": [
94 {
95 "direction": "DESC",
96 "field": "playedTime"
97 }
98 ]
99 },
100 (v1/*: any*/)
101];
102return {
103 "fragment": {
104 "argumentDefinitions": (v0/*: any*/),
105 "kind": "Fragment",
106 "metadata": null,
107 "name": "ProfilePaginationQuery",
108 "selections": [
109 {
110 "args": [
111 {
112 "kind": "Variable",
113 "name": "count",
114 "variableName": "count"
115 },
116 {
117 "kind": "Variable",
118 "name": "cursor",
119 "variableName": "cursor"
120 },
121 (v1/*: any*/)
122 ],
123 "kind": "FragmentSpread",
124 "name": "Profile_plays"
125 }
126 ],
127 "type": "Query",
128 "abstractKey": null
129 },
130 "kind": "Request",
131 "operation": {
132 "argumentDefinitions": (v0/*: any*/),
133 "kind": "Operation",
134 "name": "ProfilePaginationQuery",
135 "selections": [
136 {
137 "alias": null,
138 "args": (v2/*: any*/),
139 "concreteType": "FmTealAlphaFeedPlayConnection",
140 "kind": "LinkedField",
141 "name": "fmTealAlphaFeedPlay",
142 "plural": false,
143 "selections": [
144 {
145 "alias": null,
146 "args": null,
147 "kind": "ScalarField",
148 "name": "totalCount",
149 "storageKey": null
150 },
151 {
152 "alias": null,
153 "args": null,
154 "concreteType": "FmTealAlphaFeedPlayEdge",
155 "kind": "LinkedField",
156 "name": "edges",
157 "plural": true,
158 "selections": [
159 {
160 "alias": null,
161 "args": null,
162 "concreteType": "FmTealAlphaFeedPlay",
163 "kind": "LinkedField",
164 "name": "node",
165 "plural": false,
166 "selections": [
167 {
168 "alias": null,
169 "args": null,
170 "kind": "ScalarField",
171 "name": "trackName",
172 "storageKey": null
173 },
174 {
175 "alias": null,
176 "args": null,
177 "kind": "ScalarField",
178 "name": "playedTime",
179 "storageKey": null
180 },
181 {
182 "alias": null,
183 "args": null,
184 "concreteType": "FmTealAlphaFeedDefsArtist",
185 "kind": "LinkedField",
186 "name": "artists",
187 "plural": true,
188 "selections": [
189 {
190 "alias": null,
191 "args": null,
192 "kind": "ScalarField",
193 "name": "artistName",
194 "storageKey": null
195 }
196 ],
197 "storageKey": null
198 },
199 {
200 "alias": null,
201 "args": null,
202 "kind": "ScalarField",
203 "name": "releaseName",
204 "storageKey": null
205 },
206 {
207 "alias": null,
208 "args": null,
209 "kind": "ScalarField",
210 "name": "releaseMbId",
211 "storageKey": null
212 },
213 {
214 "alias": null,
215 "args": null,
216 "kind": "ScalarField",
217 "name": "actorHandle",
218 "storageKey": null
219 },
220 {
221 "alias": null,
222 "args": null,
223 "kind": "ScalarField",
224 "name": "musicServiceBaseDomain",
225 "storageKey": null
226 },
227 {
228 "alias": null,
229 "args": null,
230 "concreteType": "AppBskyActorProfile",
231 "kind": "LinkedField",
232 "name": "appBskyActorProfileByDid",
233 "plural": false,
234 "selections": [
235 {
236 "alias": null,
237 "args": null,
238 "kind": "ScalarField",
239 "name": "displayName",
240 "storageKey": null
241 },
242 {
243 "alias": null,
244 "args": null,
245 "kind": "ScalarField",
246 "name": "description",
247 "storageKey": null
248 },
249 {
250 "alias": null,
251 "args": null,
252 "concreteType": "Blob",
253 "kind": "LinkedField",
254 "name": "avatar",
255 "plural": false,
256 "selections": [
257 {
258 "alias": null,
259 "args": [
260 {
261 "kind": "Literal",
262 "name": "preset",
263 "value": "avatar"
264 }
265 ],
266 "kind": "ScalarField",
267 "name": "url",
268 "storageKey": "url(preset:\"avatar\")"
269 }
270 ],
271 "storageKey": null
272 }
273 ],
274 "storageKey": null
275 },
276 {
277 "alias": null,
278 "args": null,
279 "kind": "ScalarField",
280 "name": "__typename",
281 "storageKey": null
282 }
283 ],
284 "storageKey": null
285 },
286 {
287 "alias": null,
288 "args": null,
289 "kind": "ScalarField",
290 "name": "cursor",
291 "storageKey": null
292 }
293 ],
294 "storageKey": null
295 },
296 {
297 "alias": null,
298 "args": null,
299 "concreteType": "PageInfo",
300 "kind": "LinkedField",
301 "name": "pageInfo",
302 "plural": false,
303 "selections": [
304 {
305 "alias": null,
306 "args": null,
307 "kind": "ScalarField",
308 "name": "endCursor",
309 "storageKey": null
310 },
311 {
312 "alias": null,
313 "args": null,
314 "kind": "ScalarField",
315 "name": "hasNextPage",
316 "storageKey": null
317 }
318 ],
319 "storageKey": null
320 }
321 ],
322 "storageKey": null
323 },
324 {
325 "alias": null,
326 "args": (v2/*: any*/),
327 "filters": [
328 "where",
329 "sortBy"
330 ],
331 "handle": "connection",
332 "key": "Profile_fmTealAlphaFeedPlay",
333 "kind": "LinkedHandle",
334 "name": "fmTealAlphaFeedPlay"
335 }
336 ]
337 },
338 "params": {
339 "cacheID": "4da0ee226512aceadce3210332ed4766",
340 "id": null,
341 "metadata": {},
342 "name": "ProfilePaginationQuery",
343 "operationKind": "query",
344 "text": "query ProfilePaginationQuery(\n $count: Int = 20\n $cursor: String\n $where: FmTealAlphaFeedPlayWhereInput!\n) {\n ...Profile_plays_mjR8k\n}\n\nfragment Profile_plays_mjR8k on Query {\n fmTealAlphaFeedPlay(first: $count, after: $cursor, sortBy: [{field: playedTime, direction: DESC}], where: $where) {\n totalCount\n edges {\n node {\n ...TrackItem_play\n actorHandle\n appBskyActorProfileByDid {\n displayName\n description\n avatar {\n url(preset: \"avatar\")\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment TrackItem_play on FmTealAlphaFeedPlay {\n trackName\n playedTime\n artists {\n artistName\n }\n releaseName\n releaseMbId\n actorHandle\n musicServiceBaseDomain\n appBskyActorProfileByDid {\n displayName\n }\n}\n"
345 }
346};
347})();
348
349(node as any).hash = "06ba557474df22684f61a32da8aec20a";
350
351export default node;