Demo using Slices Network GraphQL Relay API to make a teal.fm client
at main 4.9 kB view raw
1/** 2 * @generated SignedSource<<3d375bb2f6549eb84b9399717743b845>> 3 * @lightSyntaxTransform 4 * @nogrep 5 */ 6 7/* tslint:disable */ 8/* eslint-disable */ 9// @ts-nocheck 10 11import { ConcreteRequest } from 'relay-runtime'; 12export type FmTealAlphaFeedPlayWhereInput = { 13 actorHandle?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 14 and?: ReadonlyArray<FmTealAlphaFeedPlayWhereInput> | null | undefined; 15 cid?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 16 collection?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 17 did?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 18 duration?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 19 indexedAt?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 20 isrc?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 21 musicServiceBaseDomain?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 22 or?: ReadonlyArray<FmTealAlphaFeedPlayWhereInput> | null | undefined; 23 originUrl?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 24 playedTime?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 25 recordingMbId?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 26 releaseMbId?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 27 releaseName?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 28 submissionClientAgent?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 29 trackMbId?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 30 trackName?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 31 uri?: FmTealAlphaFeedPlayFieldCondition | null | undefined; 32}; 33export type FmTealAlphaFeedPlayFieldCondition = { 34 contains?: string | null | undefined; 35 eq?: string | null | undefined; 36 gt?: string | null | undefined; 37 gte?: string | null | undefined; 38 in?: ReadonlyArray<string> | null | undefined; 39 lt?: string | null | undefined; 40 lte?: string | null | undefined; 41}; 42export type TopTracksQuery$variables = { 43 where?: FmTealAlphaFeedPlayWhereInput | null | undefined; 44}; 45export type TopTracksQuery$data = { 46 readonly fmTealAlphaFeedPlayAggregated: ReadonlyArray<{ 47 readonly artists: string | null | undefined; 48 readonly count: number; 49 readonly releaseMbId: string | null | undefined; 50 readonly trackName: string | null | undefined; 51 }> | null | undefined; 52}; 53export type TopTracksQuery = { 54 response: TopTracksQuery$data; 55 variables: TopTracksQuery$variables; 56}; 57 58const node: ConcreteRequest = (function(){ 59var v0 = [ 60 { 61 "defaultValue": null, 62 "kind": "LocalArgument", 63 "name": "where" 64 } 65], 66v1 = [ 67 { 68 "alias": null, 69 "args": [ 70 { 71 "kind": "Literal", 72 "name": "groupBy", 73 "value": [ 74 { 75 "field": "trackName" 76 }, 77 { 78 "field": "releaseMbId" 79 }, 80 { 81 "field": "artists" 82 } 83 ] 84 }, 85 { 86 "kind": "Literal", 87 "name": "limit", 88 "value": 50 89 }, 90 { 91 "kind": "Literal", 92 "name": "orderBy", 93 "value": { 94 "count": "DESC" 95 } 96 }, 97 { 98 "kind": "Variable", 99 "name": "where", 100 "variableName": "where" 101 } 102 ], 103 "concreteType": "FmTealAlphaFeedPlayAggregated", 104 "kind": "LinkedField", 105 "name": "fmTealAlphaFeedPlayAggregated", 106 "plural": true, 107 "selections": [ 108 { 109 "alias": null, 110 "args": null, 111 "kind": "ScalarField", 112 "name": "trackName", 113 "storageKey": null 114 }, 115 { 116 "alias": null, 117 "args": null, 118 "kind": "ScalarField", 119 "name": "releaseMbId", 120 "storageKey": null 121 }, 122 { 123 "alias": null, 124 "args": null, 125 "kind": "ScalarField", 126 "name": "artists", 127 "storageKey": null 128 }, 129 { 130 "alias": null, 131 "args": null, 132 "kind": "ScalarField", 133 "name": "count", 134 "storageKey": null 135 } 136 ], 137 "storageKey": null 138 } 139]; 140return { 141 "fragment": { 142 "argumentDefinitions": (v0/*: any*/), 143 "kind": "Fragment", 144 "metadata": null, 145 "name": "TopTracksQuery", 146 "selections": (v1/*: any*/), 147 "type": "Query", 148 "abstractKey": null 149 }, 150 "kind": "Request", 151 "operation": { 152 "argumentDefinitions": (v0/*: any*/), 153 "kind": "Operation", 154 "name": "TopTracksQuery", 155 "selections": (v1/*: any*/) 156 }, 157 "params": { 158 "cacheID": "bc9ed2b6c355b3a8fedb84cb713fa8de", 159 "id": null, 160 "metadata": {}, 161 "name": "TopTracksQuery", 162 "operationKind": "query", 163 "text": "query TopTracksQuery(\n $where: FmTealAlphaFeedPlayWhereInput\n) {\n fmTealAlphaFeedPlayAggregated(groupBy: [{field: trackName}, {field: releaseMbId}, {field: artists}], orderBy: {count: DESC}, limit: 50, where: $where) {\n trackName\n releaseMbId\n artists\n count\n }\n}\n" 164 } 165}; 166})(); 167 168(node as any).hash = "d2aadd883f60f6f31f8d466dc9653cd8"; 169 170export default node;