UNPKG

@kiwicom/smart-faq

Version:

375 lines (365 loc) 8.67 kB
/** * @flow * @relayHash 37b909183fdf9fa491fa346f8807274e */ /* eslint-disable */ 'use strict'; /*:: import type { ConcreteRequest } from 'relay-runtime'; type BaggageSummary$ref = any; export type BaggageInfoSelectedQueryVariables = {| id: number, brand: string, authToken?: ?string, |}; export type BaggageInfoSelectedQueryResponse = {| +singleBooking: ?{| +directAccessURL: ?string, +type: string, +baggage: ?$ReadOnlyArray<?{| +$fragmentRefs: BaggageSummary$ref |}>, +trip?: ?{| +departure: ?{| +time: ?any |} |}, +outbound?: ?{| +departure: ?{| +time: ?any |} |}, +trips?: ?$ReadOnlyArray<?{| +departure: ?{| +time: ?any |} |}>, |} |}; export type BaggageInfoSelectedQuery = {| variables: BaggageInfoSelectedQueryVariables, response: BaggageInfoSelectedQueryResponse, |}; */ /* query BaggageInfoSelectedQuery( $id: Int! $brand: String! $authToken: String ) { singleBooking(id: $id, brand: $brand, authToken: $authToken) { __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": "id", "type": "Int!", "defaultValue": null }, { "kind": "LocalArgument", "name": "brand", "type": "String!", "defaultValue": null }, { "kind": "LocalArgument", "name": "authToken", "type": "String", "defaultValue": null }], v1 = [{ "kind": "Variable", "name": "authToken", "variableName": "authToken", "type": "String" }, { "kind": "Variable", "name": "brand", "variableName": "brand", "type": "String" }, { "kind": "Variable", "name": "id", "variableName": "id", "type": "Int!" }], 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": "BookingMulticity", "selections": [{ "kind": "LinkedField", "alias": null, "name": "trips", "storageKey": null, "args": null, "concreteType": "Trip", "plural": true, "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": "BookingOneWay", "selections": [{ "kind": "LinkedField", "alias": null, "name": "trip", "storageKey": null, "args": null, "concreteType": "Trip", "plural": false, "selections": v4 /*: any*/ }] }; return { "kind": "Request", "fragment": { "kind": "Fragment", "name": "BaggageInfoSelectedQuery", "type": "RootQuery", "metadata": null, "argumentDefinitions": v0 /*: any*/ , "selections": [{ "kind": "LinkedField", "alias": null, "name": "singleBooking", "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": "BaggageInfoSelectedQuery", "argumentDefinitions": v0 /*: any*/ , "selections": [{ "kind": "LinkedField", "alias": null, "name": "singleBooking", "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": "BaggageInfoSelectedQuery", "id": null, "text": "query BaggageInfoSelectedQuery(\n $id: Int!\n $brand: String!\n $authToken: String\n) {\n singleBooking(id: $id, brand: $brand, authToken: $authToken) {\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 = 'ed63bf00ad4877c2a6385bc82b0005d1'; module.exports = node;