UNPKG

@kiwicom/smart-faq

Version:

1,199 lines (1,172 loc) 30.5 kB
/** * @flow * @relayHash 34e8b9ca750e189b32637435e9930150 */ /* eslint-disable */ 'use strict'; /*:: import type { ConcreteRequest } from 'relay-runtime'; type BookingAnalyticsTracker_booking$ref = any; type BookingDetail_booking$ref = any; type GuaranteeNeededResolver_booking$ref = any; export type SelectedBookingBySimpleTokenQueryVariables = {| id: number, authToken?: ?string, brand: string, |}; export type SelectedBookingBySimpleTokenQueryResponse = {| +singleBooking: ?{| +type: string, +$fragmentRefs: BookingDetail_booking$ref & GuaranteeNeededResolver_booking$ref & BookingAnalyticsTracker_booking$ref, |} |}; export type SelectedBookingBySimpleTokenQuery = {| variables: SelectedBookingBySimpleTokenQueryVariables, response: SelectedBookingBySimpleTokenQueryResponse, |}; */ /* query SelectedBookingBySimpleTokenQuery( $id: Int! $authToken: String $brand: String! ) { singleBooking(id: $id, authToken: $authToken, brand: $brand) { __typename type: __typename ...BookingDetail_booking ...GuaranteeNeededResolver_booking ...BookingAnalyticsTracker_booking id } } fragment BookingDetail_booking on BookingInterface { type: __typename status assets { ticketUrl } availableServices { insurance { passengers { databaseId } } } directAccessURL isPastBooking ...Header_booking ... on BookingOneWay { ...OneWayTrip_booking trip { departure { time } } } ... on BookingReturn { ...ReturnTrip_booking outbound { departure { time } } } ... on BookingMulticity { ...OverlayWrap_booking start { time } } ...Contact_booking } fragment GuaranteeNeededResolver_booking on BookingInterface { databaseId: id(opaque: false) status contactDetails { phone email passenger { firstname lastname } } customerSupport { hasGuaranteeChat } upcomingLeg(guarantee: KIWICOM) { arrival { airport { city { name } code id } } departure { airport { city { name } code id } } id } } fragment BookingAnalyticsTracker_booking on BookingInterface { id type: __typename upcomingDeparture: upcomingLeg { departure { time } id } ... on BookingOneWay { trip { departure { time } } } ... on BookingReturn { outbound { departure { time } } } ... on BookingMulticity { start { time } } } fragment Header_booking on BookingInterface { type: __typename status databaseId: id(opaque: false) ...OneWay_booking ...Return_booking ...Multicity_booking } fragment OneWayTrip_booking on BookingOneWay { trip { ...AccordionTripSummary_trip } } fragment ReturnTrip_booking on BookingReturn { outbound { ...AccordionTripSummary_trip } inbound { ...AccordionTripSummary_trip } } fragment OverlayWrap_booking on BookingMulticity { trips { duration } ...MulticityTrip_booking } fragment Contact_booking on BookingInterface { databaseId: id(opaque: false) customerSupport { phoneNumber } } fragment MulticityTrip_booking on BookingMulticity { trips { ...AccordionTripSummary_trip } } fragment AccordionTripSummary_trip on Trip { departure { localTime airport { locationId city { name } id } } arrival { airport { locationId city { name } id } } legs { airline { name code logoUrl } ...CarrierLogoWrapper_legs ...AccordionBody_legs id } } fragment CarrierLogoWrapper_legs on Leg { airline { name code } } fragment AccordionBody_legs on Leg { flightNumber ...AccordionBodyLeg_leg ...AccordionBodyLeg_nextLeg ...AccordionBodyLastLeg_leg } fragment AccordionBodyLeg_leg on Leg { ...AccordionLegCities_leg arrival { time localTime } departure { time localTime } } fragment AccordionBodyLeg_nextLeg on Leg { departure { time } guarantee } fragment AccordionBodyLastLeg_leg on Leg { ...AccordionLegCities_leg ...AccordionLegCitiesInfo_leg type duration airline { code name } arrival { localTime airport { locationId city { name } id } } departure { localTime airport { locationId city { name } id } } } fragment AccordionLegCities_leg on Leg { ...AccordionLegCitiesInfo_leg type duration airline { code name } arrival { localTime airport { locationId city { name } id } } departure { localTime airport { locationId city { name } id } } } fragment AccordionLegCitiesInfo_leg on Leg { type airline { code name } operatingAirline { iata name } flightNumber vehicle { manufacturer model } pnr departure { airport { name id } } arrival { airport { name id } } } fragment OneWay_booking on BookingOneWay { trip { departure { airport { city { name } id } } arrival { airport { city { name } id } } } } fragment Return_booking on BookingReturn { outbound { departure { airport { city { name } id } } arrival { airport { city { name } id } } } } fragment Multicity_booking on BookingMulticity { trips { departure { airport { city { name } id } } } end { airport { city { name } id } } } */ const node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "kind": "LocalArgument", "name": "id", "type": "Int!", "defaultValue": null }, { "kind": "LocalArgument", "name": "authToken", "type": "String", "defaultValue": null }, { "kind": "LocalArgument", "name": "brand", "type": "String!", "defaultValue": null } ], v1 = [ { "kind": "Variable", "name": "authToken", "variableName": "authToken" }, { "kind": "Variable", "name": "brand", "variableName": "brand" }, { "kind": "Variable", "name": "id", "variableName": "id" } ], v2 = { "kind": "ScalarField", "alias": "type", "name": "__typename", "args": null, "storageKey": null }, v3 = { "kind": "ScalarField", "alias": null, "name": "name", "args": null, "storageKey": null }, v4 = { "kind": "LinkedField", "alias": null, "name": "city", "storageKey": null, "args": null, "concreteType": "LocationArea", "plural": false, "selections": [ (v3/*: any*/) ] }, v5 = { "kind": "ScalarField", "alias": null, "name": "code", "args": null, "storageKey": null }, v6 = { "kind": "ScalarField", "alias": null, "name": "id", "args": null, "storageKey": null }, v7 = [ { "kind": "LinkedField", "alias": null, "name": "airport", "storageKey": null, "args": null, "concreteType": "Location", "plural": false, "selections": [ (v4/*: any*/), (v5/*: any*/), (v6/*: any*/) ] } ], v8 = { "kind": "ScalarField", "alias": null, "name": "time", "args": null, "storageKey": null }, v9 = [ (v8/*: any*/) ], v10 = { "kind": "ScalarField", "alias": null, "name": "locationId", "args": null, "storageKey": null }, v11 = { "kind": "LinkedField", "alias": null, "name": "airport", "storageKey": null, "args": null, "concreteType": "Location", "plural": false, "selections": [ (v4/*: any*/), (v6/*: any*/), (v10/*: any*/) ] }, v12 = { "kind": "ScalarField", "alias": null, "name": "localTime", "args": null, "storageKey": null }, v13 = [ { "kind": "LinkedField", "alias": null, "name": "airport", "storageKey": null, "args": null, "concreteType": "Location", "plural": false, "selections": [ (v3/*: any*/), (v6/*: any*/), (v10/*: any*/), (v4/*: any*/) ] }, (v12/*: any*/), (v8/*: any*/) ], v14 = { "kind": "ScalarField", "alias": null, "name": "duration", "args": null, "storageKey": null }, v15 = { "kind": "LinkedField", "alias": null, "name": "legs", "storageKey": null, "args": null, "concreteType": "Leg", "plural": true, "selections": [ { "kind": "LinkedField", "alias": null, "name": "airline", "storageKey": null, "args": null, "concreteType": "Airline", "plural": false, "selections": [ (v3/*: any*/), (v5/*: any*/), { "kind": "ScalarField", "alias": null, "name": "logoUrl", "args": null, "storageKey": null } ] }, { "kind": "ScalarField", "alias": null, "name": "flightNumber", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": null, "name": "type", "args": null, "storageKey": null }, { "kind": "LinkedField", "alias": null, "name": "operatingAirline", "storageKey": null, "args": null, "concreteType": "OperatingAirline", "plural": false, "selections": [ { "kind": "ScalarField", "alias": null, "name": "iata", "args": null, "storageKey": null }, (v3/*: any*/) ] }, { "kind": "LinkedField", "alias": null, "name": "vehicle", "storageKey": null, "args": null, "concreteType": "Vehicle", "plural": false, "selections": [ { "kind": "ScalarField", "alias": null, "name": "manufacturer", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": null, "name": "model", "args": null, "storageKey": null } ] }, { "kind": "ScalarField", "alias": null, "name": "pnr", "args": null, "storageKey": null }, { "kind": "LinkedField", "alias": null, "name": "departure", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": (v13/*: any*/) }, { "kind": "LinkedField", "alias": null, "name": "arrival", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": (v13/*: any*/) }, (v14/*: any*/), { "kind": "ScalarField", "alias": null, "name": "guarantee", "args": null, "storageKey": null }, (v6/*: any*/) ] }, v16 = [ { "kind": "LinkedField", "alias": null, "name": "departure", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": [ (v11/*: any*/), (v12/*: any*/), (v8/*: any*/) ] }, { "kind": "LinkedField", "alias": null, "name": "arrival", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": [ (v11/*: any*/) ] }, (v15/*: any*/) ], v17 = { "kind": "LinkedField", "alias": null, "name": "airport", "storageKey": null, "args": null, "concreteType": "Location", "plural": false, "selections": [ (v10/*: any*/), (v4/*: any*/), (v6/*: any*/) ] }, v18 = { "kind": "LinkedField", "alias": null, "name": "arrival", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": [ (v17/*: any*/) ] }; return { "kind": "Request", "fragment": { "kind": "Fragment", "name": "SelectedBookingBySimpleTokenQuery", "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*/), { "kind": "FragmentSpread", "name": "BookingDetail_booking", "args": null }, { "kind": "FragmentSpread", "name": "GuaranteeNeededResolver_booking", "args": null }, { "kind": "FragmentSpread", "name": "BookingAnalyticsTracker_booking", "args": null } ] } ] }, "operation": { "kind": "Operation", "name": "SelectedBookingBySimpleTokenQuery", "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*/), { "kind": "ScalarField", "alias": null, "name": "status", "args": null, "storageKey": null }, { "kind": "LinkedField", "alias": null, "name": "assets", "storageKey": null, "args": null, "concreteType": "BookingAssets", "plural": false, "selections": [ { "kind": "ScalarField", "alias": null, "name": "ticketUrl", "args": null, "storageKey": null } ] }, { "kind": "LinkedField", "alias": null, "name": "availableServices", "storageKey": null, "args": null, "concreteType": "Services", "plural": false, "selections": [ { "kind": "LinkedField", "alias": null, "name": "insurance", "storageKey": null, "args": null, "concreteType": "InsuranceService", "plural": false, "selections": [ { "kind": "LinkedField", "alias": null, "name": "passengers", "storageKey": null, "args": null, "concreteType": "Passenger", "plural": true, "selections": [ { "kind": "ScalarField", "alias": null, "name": "databaseId", "args": null, "storageKey": null } ] } ] } ] }, { "kind": "ScalarField", "alias": null, "name": "directAccessURL", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": null, "name": "isPastBooking", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": "databaseId", "name": "id", "args": [ { "kind": "Literal", "name": "opaque", "value": false } ], "storageKey": "id(opaque:false)" }, { "kind": "LinkedField", "alias": null, "name": "customerSupport", "storageKey": null, "args": null, "concreteType": "BookingCustomerSupport", "plural": false, "selections": [ { "kind": "ScalarField", "alias": null, "name": "phoneNumber", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": null, "name": "hasGuaranteeChat", "args": null, "storageKey": null } ] }, { "kind": "LinkedField", "alias": null, "name": "contactDetails", "storageKey": null, "args": null, "concreteType": "BookingContactDetails", "plural": false, "selections": [ { "kind": "ScalarField", "alias": null, "name": "phone", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": null, "name": "email", "args": null, "storageKey": null }, { "kind": "LinkedField", "alias": null, "name": "passenger", "storageKey": null, "args": null, "concreteType": "Passenger", "plural": false, "selections": [ { "kind": "ScalarField", "alias": null, "name": "firstname", "args": null, "storageKey": null }, { "kind": "ScalarField", "alias": null, "name": "lastname", "args": null, "storageKey": null } ] } ] }, { "kind": "LinkedField", "alias": null, "name": "upcomingLeg", "storageKey": "upcomingLeg(guarantee:\"KIWICOM\")", "args": [ { "kind": "Literal", "name": "guarantee", "value": "KIWICOM" } ], "concreteType": "Leg", "plural": false, "selections": [ { "kind": "LinkedField", "alias": null, "name": "arrival", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": (v7/*: any*/) }, { "kind": "LinkedField", "alias": null, "name": "departure", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": (v7/*: any*/) }, (v6/*: any*/) ] }, (v6/*: any*/), { "kind": "LinkedField", "alias": "upcomingDeparture", "name": "upcomingLeg", "storageKey": null, "args": null, "concreteType": "Leg", "plural": false, "selections": [ { "kind": "LinkedField", "alias": null, "name": "departure", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": (v9/*: any*/) }, (v6/*: any*/) ] }, { "kind": "InlineFragment", "type": "BookingOneWay", "selections": [ { "kind": "LinkedField", "alias": null, "name": "trip", "storageKey": null, "args": null, "concreteType": "Trip", "plural": false, "selections": (v16/*: any*/) } ] }, { "kind": "InlineFragment", "type": "BookingReturn", "selections": [ { "kind": "LinkedField", "alias": null, "name": "outbound", "storageKey": null, "args": null, "concreteType": "Trip", "plural": false, "selections": (v16/*: any*/) }, { "kind": "LinkedField", "alias": null, "name": "inbound", "storageKey": null, "args": null, "concreteType": "Trip", "plural": false, "selections": [ { "kind": "LinkedField", "alias": null, "name": "departure", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": [ (v12/*: any*/), (v17/*: any*/) ] }, (v18/*: any*/), (v15/*: any*/) ] } ] }, { "kind": "InlineFragment", "type": "BookingMulticity", "selections": [ { "kind": "LinkedField", "alias": null, "name": "trips", "storageKey": null, "args": null, "concreteType": "Trip", "plural": true, "selections": [ { "kind": "LinkedField", "alias": null, "name": "departure", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": [ (v11/*: any*/), (v12/*: any*/) ] }, (v18/*: any*/), (v15/*: any*/) ] }, { "kind": "LinkedField", "alias": null, "name": "end", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": [ { "kind": "LinkedField", "alias": null, "name": "airport", "storageKey": null, "args": null, "concreteType": "Location", "plural": false, "selections": [ (v4/*: any*/), (v6/*: any*/) ] } ] }, { "kind": "LinkedField", "alias": null, "name": "trips", "storageKey": null, "args": null, "concreteType": "Trip", "plural": true, "selections": [ (v14/*: any*/) ] }, { "kind": "LinkedField", "alias": null, "name": "start", "storageKey": null, "args": null, "concreteType": "RouteStop", "plural": false, "selections": (v9/*: any*/) } ] } ] } ] }, "params": { "operationKind": "query", "name": "SelectedBookingBySimpleTokenQuery", "id": null, "text": "query SelectedBookingBySimpleTokenQuery(\n $id: Int!\n $authToken: String\n $brand: String!\n) {\n singleBooking(id: $id, authToken: $authToken, brand: $brand) {\n __typename\n type: __typename\n ...BookingDetail_booking\n ...GuaranteeNeededResolver_booking\n ...BookingAnalyticsTracker_booking\n id\n }\n}\n\nfragment BookingDetail_booking on BookingInterface {\n type: __typename\n status\n assets {\n ticketUrl\n }\n availableServices {\n insurance {\n passengers {\n databaseId\n }\n }\n }\n directAccessURL\n isPastBooking\n ...Header_booking\n ... on BookingOneWay {\n ...OneWayTrip_booking\n trip {\n departure {\n time\n }\n }\n }\n ... on BookingReturn {\n ...ReturnTrip_booking\n outbound {\n departure {\n time\n }\n }\n }\n ... on BookingMulticity {\n ...OverlayWrap_booking\n start {\n time\n }\n }\n ...Contact_booking\n}\n\nfragment GuaranteeNeededResolver_booking on BookingInterface {\n databaseId: id(opaque: false)\n status\n contactDetails {\n phone\n email\n passenger {\n firstname\n lastname\n }\n }\n customerSupport {\n hasGuaranteeChat\n }\n upcomingLeg(guarantee: KIWICOM) {\n arrival {\n airport {\n city {\n name\n }\n code\n id\n }\n }\n departure {\n airport {\n city {\n name\n }\n code\n id\n }\n }\n id\n }\n}\n\nfragment BookingAnalyticsTracker_booking on BookingInterface {\n id\n type: __typename\n upcomingDeparture: upcomingLeg {\n departure {\n time\n }\n id\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 start {\n time\n }\n }\n}\n\nfragment Header_booking on BookingInterface {\n type: __typename\n status\n databaseId: id(opaque: false)\n ...OneWay_booking\n ...Return_booking\n ...Multicity_booking\n}\n\nfragment OneWayTrip_booking on BookingOneWay {\n trip {\n ...AccordionTripSummary_trip\n }\n}\n\nfragment ReturnTrip_booking on BookingReturn {\n outbound {\n ...AccordionTripSummary_trip\n }\n inbound {\n ...AccordionTripSummary_trip\n }\n}\n\nfragment OverlayWrap_booking on BookingMulticity {\n trips {\n duration\n }\n ...MulticityTrip_booking\n}\n\nfragment Contact_booking on BookingInterface {\n databaseId: id(opaque: false)\n customerSupport {\n phoneNumber\n }\n}\n\nfragment MulticityTrip_booking on BookingMulticity {\n trips {\n ...AccordionTripSummary_trip\n }\n}\n\nfragment AccordionTripSummary_trip on Trip {\n departure {\n localTime\n airport {\n locationId\n city {\n name\n }\n id\n }\n }\n arrival {\n airport {\n locationId\n city {\n name\n }\n id\n }\n }\n legs {\n airline {\n name\n code\n logoUrl\n }\n ...CarrierLogoWrapper_legs\n ...AccordionBody_legs\n id\n }\n}\n\nfragment CarrierLogoWrapper_legs on Leg {\n airline {\n name\n code\n }\n}\n\nfragment AccordionBody_legs on Leg {\n flightNumber\n ...AccordionBodyLeg_leg\n ...AccordionBodyLeg_nextLeg\n ...AccordionBodyLastLeg_leg\n}\n\nfragment AccordionBodyLeg_leg on Leg {\n ...AccordionLegCities_leg\n arrival {\n time\n localTime\n }\n departure {\n time\n localTime\n }\n}\n\nfragment AccordionBodyLeg_nextLeg on Leg {\n departure {\n time\n }\n guarantee\n}\n\nfragment AccordionBodyLastLeg_leg on Leg {\n ...AccordionLegCities_leg\n ...AccordionLegCitiesInfo_leg\n type\n duration\n airline {\n code\n name\n }\n arrival {\n localTime\n airport {\n locationId\n city {\n name\n }\n id\n }\n }\n departure {\n localTime\n airport {\n locationId\n city {\n name\n }\n id\n }\n }\n}\n\nfragment AccordionLegCities_leg on Leg {\n ...AccordionLegCitiesInfo_leg\n type\n duration\n airline {\n code\n name\n }\n arrival {\n localTime\n airport {\n locationId\n city {\n name\n }\n id\n }\n }\n departure {\n localTime\n airport {\n locationId\n city {\n name\n }\n id\n }\n }\n}\n\nfragment AccordionLegCitiesInfo_leg on Leg {\n type\n airline {\n code\n name\n }\n operatingAirline {\n iata\n name\n }\n flightNumber\n vehicle {\n manufacturer\n model\n }\n pnr\n departure {\n airport {\n name\n id\n }\n }\n arrival {\n airport {\n name\n id\n }\n }\n}\n\nfragment OneWay_booking on BookingOneWay {\n trip {\n departure {\n airport {\n city {\n name\n }\n id\n }\n }\n arrival {\n airport {\n city {\n name\n }\n id\n }\n }\n }\n}\n\nfragment Return_booking on BookingReturn {\n outbound {\n departure {\n airport {\n city {\n name\n }\n id\n }\n }\n arrival {\n airport {\n city {\n name\n }\n id\n }\n }\n }\n}\n\nfragment Multicity_booking on BookingMulticity {\n trips {\n departure {\n airport {\n city {\n name\n }\n id\n }\n }\n }\n end {\n airport {\n city {\n name\n }\n id\n }\n }\n}\n", "metadata": {} } }; })(); // prettier-ignore (node/*: any*/).hash = 'fff5ec24f9d66a8e130014a164d90c15'; module.exports = node;