Demo using Slices Network GraphQL Relay API to make a teal.fm client
at main 10 kB view raw
1/** 2 * @generated SignedSource<<fa406caeea45379cd74ae946fcf13cc3>> 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 AppQuery$variables = { 44 chartWhere: FmTealAlphaFeedPlayWhereInput; 45}; 46export type AppQuery$data = { 47 readonly " $fragmentSpreads": FragmentRefs<"App_plays" | "ScrobbleChart_data">; 48}; 49export type AppQuery = { 50 response: AppQuery$data; 51 variables: AppQuery$variables; 52}; 53 54const node: ConcreteRequest = (function(){ 55var v0 = [ 56 { 57 "defaultValue": null, 58 "kind": "LocalArgument", 59 "name": "chartWhere" 60 } 61], 62v1 = [ 63 { 64 "kind": "Literal", 65 "name": "first", 66 "value": 20 67 }, 68 { 69 "kind": "Literal", 70 "name": "sortBy", 71 "value": [ 72 { 73 "direction": "DESC", 74 "field": "playedTime" 75 } 76 ] 77 } 78], 79v2 = { 80 "alias": null, 81 "args": null, 82 "kind": "ScalarField", 83 "name": "playedTime", 84 "storageKey": null 85}; 86return { 87 "fragment": { 88 "argumentDefinitions": (v0/*: any*/), 89 "kind": "Fragment", 90 "metadata": null, 91 "name": "AppQuery", 92 "selections": [ 93 { 94 "args": null, 95 "kind": "FragmentSpread", 96 "name": "App_plays" 97 }, 98 { 99 "args": null, 100 "kind": "FragmentSpread", 101 "name": "ScrobbleChart_data" 102 } 103 ], 104 "type": "Query", 105 "abstractKey": null 106 }, 107 "kind": "Request", 108 "operation": { 109 "argumentDefinitions": (v0/*: any*/), 110 "kind": "Operation", 111 "name": "AppQuery", 112 "selections": [ 113 { 114 "alias": null, 115 "args": (v1/*: any*/), 116 "concreteType": "FmTealAlphaFeedPlayConnection", 117 "kind": "LinkedField", 118 "name": "fmTealAlphaFeedPlay", 119 "plural": false, 120 "selections": [ 121 { 122 "alias": null, 123 "args": null, 124 "kind": "ScalarField", 125 "name": "totalCount", 126 "storageKey": null 127 }, 128 { 129 "alias": null, 130 "args": null, 131 "concreteType": "FmTealAlphaFeedPlayEdge", 132 "kind": "LinkedField", 133 "name": "edges", 134 "plural": true, 135 "selections": [ 136 { 137 "alias": null, 138 "args": null, 139 "concreteType": "FmTealAlphaFeedPlay", 140 "kind": "LinkedField", 141 "name": "node", 142 "plural": false, 143 "selections": [ 144 (v2/*: any*/), 145 { 146 "alias": null, 147 "args": null, 148 "kind": "ScalarField", 149 "name": "trackName", 150 "storageKey": null 151 }, 152 { 153 "alias": null, 154 "args": null, 155 "concreteType": "FmTealAlphaFeedDefsArtist", 156 "kind": "LinkedField", 157 "name": "artists", 158 "plural": true, 159 "selections": [ 160 { 161 "alias": null, 162 "args": null, 163 "kind": "ScalarField", 164 "name": "artistName", 165 "storageKey": null 166 } 167 ], 168 "storageKey": null 169 }, 170 { 171 "alias": null, 172 "args": null, 173 "kind": "ScalarField", 174 "name": "releaseName", 175 "storageKey": null 176 }, 177 { 178 "alias": null, 179 "args": null, 180 "kind": "ScalarField", 181 "name": "releaseMbId", 182 "storageKey": null 183 }, 184 { 185 "alias": null, 186 "args": null, 187 "kind": "ScalarField", 188 "name": "actorHandle", 189 "storageKey": null 190 }, 191 { 192 "alias": null, 193 "args": null, 194 "kind": "ScalarField", 195 "name": "musicServiceBaseDomain", 196 "storageKey": null 197 }, 198 { 199 "alias": null, 200 "args": null, 201 "concreteType": "AppBskyActorProfile", 202 "kind": "LinkedField", 203 "name": "appBskyActorProfileByDid", 204 "plural": false, 205 "selections": [ 206 { 207 "alias": null, 208 "args": null, 209 "kind": "ScalarField", 210 "name": "displayName", 211 "storageKey": null 212 } 213 ], 214 "storageKey": null 215 }, 216 { 217 "alias": null, 218 "args": null, 219 "kind": "ScalarField", 220 "name": "__typename", 221 "storageKey": null 222 } 223 ], 224 "storageKey": null 225 }, 226 { 227 "alias": null, 228 "args": null, 229 "kind": "ScalarField", 230 "name": "cursor", 231 "storageKey": null 232 } 233 ], 234 "storageKey": null 235 }, 236 { 237 "alias": null, 238 "args": null, 239 "concreteType": "PageInfo", 240 "kind": "LinkedField", 241 "name": "pageInfo", 242 "plural": false, 243 "selections": [ 244 { 245 "alias": null, 246 "args": null, 247 "kind": "ScalarField", 248 "name": "endCursor", 249 "storageKey": null 250 }, 251 { 252 "alias": null, 253 "args": null, 254 "kind": "ScalarField", 255 "name": "hasNextPage", 256 "storageKey": null 257 } 258 ], 259 "storageKey": null 260 } 261 ], 262 "storageKey": "fmTealAlphaFeedPlay(first:20,sortBy:[{\"direction\":\"DESC\",\"field\":\"playedTime\"}])" 263 }, 264 { 265 "alias": null, 266 "args": (v1/*: any*/), 267 "filters": [ 268 "sortBy" 269 ], 270 "handle": "connection", 271 "key": "App_fmTealAlphaFeedPlay", 272 "kind": "LinkedHandle", 273 "name": "fmTealAlphaFeedPlay" 274 }, 275 { 276 "alias": "chartData", 277 "args": [ 278 { 279 "kind": "Literal", 280 "name": "groupBy", 281 "value": [ 282 { 283 "field": "playedTime", 284 "interval": "DAY" 285 } 286 ] 287 }, 288 { 289 "kind": "Literal", 290 "name": "limit", 291 "value": 90 292 }, 293 { 294 "kind": "Variable", 295 "name": "where", 296 "variableName": "chartWhere" 297 } 298 ], 299 "concreteType": "FmTealAlphaFeedPlayAggregated", 300 "kind": "LinkedField", 301 "name": "fmTealAlphaFeedPlayAggregated", 302 "plural": true, 303 "selections": [ 304 (v2/*: any*/), 305 { 306 "alias": null, 307 "args": null, 308 "kind": "ScalarField", 309 "name": "count", 310 "storageKey": null 311 } 312 ], 313 "storageKey": null 314 } 315 ] 316 }, 317 "params": { 318 "cacheID": "3793b7efac382baa6447beb922658c23", 319 "id": null, 320 "metadata": {}, 321 "name": "AppQuery", 322 "operationKind": "query", 323 "text": "query AppQuery(\n $chartWhere: FmTealAlphaFeedPlayWhereInput!\n) {\n ...App_plays\n ...ScrobbleChart_data\n}\n\nfragment App_plays on Query {\n fmTealAlphaFeedPlay(first: 20, sortBy: [{field: playedTime, direction: DESC}]) {\n totalCount\n edges {\n node {\n playedTime\n ...TrackItem_play\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment ScrobbleChart_data on Query {\n chartData: fmTealAlphaFeedPlayAggregated(groupBy: [{field: playedTime, interval: DAY}], where: $chartWhere, limit: 90) {\n playedTime\n count\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" 324 } 325}; 326})(); 327 328(node as any).hash = "7266612861cb55b740623549f1a03f26"; 329 330export default node;