UNPKG

@kiwicom/smart-faq

Version:

350 lines (340 loc) 8.06 kB
/** * @flow * @relayHash bd949b4827979e919b9fa4887511c17d */ /* eslint-disable */ 'use strict'; /*:: import type { ConcreteRequest } from 'relay-runtime'; type BaggageSummary$ref = any; export type BaggageInfoNearestQueryVariables = {| brand: string |}; export type BaggageInfoNearestQueryResponse = {| +nearestBooking: ?{| +directAccessURL: ?string, +type: string, +baggage: ?$ReadOnlyArray<?{| +$fragmentRefs: BaggageSummary$ref |}>, +trip?: ?{| +departure: ?{| +time: ?any |} |}, +outbound?: ?{| +departure: ?{| +time: ?any |} |}, +trips?: ?$ReadOnlyArray<?{| +departure: ?{| +time: ?any |} |}>, |} |}; export type BaggageInfoNearestQuery = {| variables: BaggageInfoNearestQueryVariables, response: BaggageInfoNearestQueryResponse, |}; */ /* query BaggageInfoNearestQuery( $brand: String! ) { nearestBooking(brand: $brand) { __typename directAccessURL type: __typename baggage { ...BaggageSummary } ... on BookingOneWay { trip { departure { time } } } ... on BookingReturn { outbound { departure { time } } } ... on BookingMulticity { trips { departure { time } } } id } } fragment BaggageSummary on BookingBaggage { ...BaggageDescription } fragment BaggageDescription on BookingBaggage { bag { height weight width length note category } quantity } */ var node /*: ConcreteRequest*/ = function () { var v0 = [{ "kind": "LocalArgument", "name": "brand", "type": "String!", "defaultValue": null }], v1 = [{ "kind": "Variable", "name": "brand", "variableName": "brand" }], v2 = { "kind": "ScalarField", "alias": null, "name": "directAccessURL", "args": null, "storageKey": null }, v3 = { "kind": "ScalarField", "alias": "type", "name": "__typename", "args": null, "storageKey": null }, v4 = [{ "kind": "LinkedField", "alias": null, "name": "departure", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": [{ "kind": "ScalarField", "alias": null, "name": "time", "args": null, "storageKey": null }] }], v5 = { "kind": "InlineFragment", "type": "BookingOneWay", "selections": [{ "kind": "LinkedField", "alias": null, "name": "trip", "storageKey": null, "args": null, "concreteType": "Trip", "plural": false, "selections": v4 /*: any*/ }] }, v6 = { "kind": "InlineFragment", "type": "BookingReturn", "selections": [{ "kind": "LinkedField", "alias": null, "name": "outbound", "storageKey": null, "args": null, "concreteType": "Trip", "plural": false, "selections": v4 /*: any*/ }] }, v7 = { "kind": "InlineFragment", "type": "BookingMulticity", "selections": [{ "kind": "LinkedField", "alias": null, "name": "trips", "storageKey": null, "args": null, "concreteType": "Trip", "plural": true, "selections": v4 /*: any*/ }] }; return { "kind": "Request", "fragment": { "kind": "Fragment", "name": "BaggageInfoNearestQuery", "type": "RootQuery", "metadata": null, "argumentDefinitions": v0 /*: any*/ , "selections": [{ "kind": "LinkedField", "alias": null, "name": "nearestBooking", "storageKey": null, "args": v1 /*: any*/ , "concreteType": null, "plural": false, "selections": [v2 /*: any*/ , v3 /*: any*/ , { "kind": "LinkedField", "alias": null, "name": "baggage", "storageKey": null, "args": null, "concreteType": "BookingBaggage", "plural": true, "selections": [{ "kind": "FragmentSpread", "name": "BaggageSummary", "args": null }] }, v5 /*: any*/ , v6 /*: any*/ , v7 /*: any*/ ] }] }, "operation": { "kind": "Operation", "name": "BaggageInfoNearestQuery", "argumentDefinitions": v0 /*: any*/ , "selections": [{ "kind": "LinkedField", "alias": null, "name": "nearestBooking", "storageKey": null, "args": v1 /*: any*/ , "concreteType": null, "plural": false, "selections": [{ "kind": "ScalarField", "alias": null, "name": "__typename", "args": null, "storageKey": null }, v2 /*: any*/ , v3 /*: any*/ , { "kind": "LinkedField", "alias": null, "name": "baggage", "storageKey": null, "args": null, "concreteType": "BookingBaggage", "plural": true, "selections": [{ "kind": "LinkedField", "alias": null, "name": "bag", "storageKey": null, "args": null, "concreteType": "Baggage", "plural": false, "selections": [{ "kind": "ScalarField", "alias": null, "name": "height", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": null, "name": "weight", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": null, "name": "width", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": null, "name": "length", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": null, "name": "note", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": null, "name": "category", "args": null, "storageKey": null }] }, { "kind": "ScalarField", "alias": null, "name": "quantity", "args": null, "storageKey": null }] }, { "kind": "ScalarField", "alias": null, "name": "id", "args": null, "storageKey": null }, v5 /*: any*/ , v6 /*: any*/ , v7 /*: any*/ ] }] }, "params": { "operationKind": "query", "name": "BaggageInfoNearestQuery", "id": null, "text": "query BaggageInfoNearestQuery(\n $brand: String!\n) {\n nearestBooking(brand: $brand) {\n __typename\n directAccessURL\n type: __typename\n baggage {\n ...BaggageSummary\n }\n ... on BookingOneWay {\n trip {\n departure {\n time\n }\n }\n }\n ... on BookingReturn {\n outbound {\n departure {\n time\n }\n }\n }\n ... on BookingMulticity {\n trips {\n departure {\n time\n }\n }\n }\n id\n }\n}\n\nfragment BaggageSummary on BookingBaggage {\n ...BaggageDescription\n}\n\nfragment BaggageDescription on BookingBaggage {\n bag {\n height\n weight\n width\n length\n note\n category\n }\n quantity\n}\n", "metadata": {} } }; }(); // prettier-ignore node /*: any*/ .hash = '6a52414336d394b802c7d5b5330ddc82'; module.exports = node;