@kiwicom/smart-faq
Version:
640 lines (627 loc) • 16.6 kB
JavaScript
/**
* @flow
* @relayHash 0904a883535159f3aee2779fedb0b818
*/
/* eslint-disable */
'use strict';
/*::
import type { ConcreteRequest } from 'relay-runtime';
type BookingAnalyticsTracker_booking$ref = any;
type GuaranteeNeededResolver_booking$ref = any;
type MobileBookingDetail_booking$ref = any;
export type MobileNearestBookingQueryVariables = {|
brand: string
|};
export type MobileNearestBookingQueryResponse = {|
+nearestBooking: ?{|
+$fragmentRefs: MobileBookingDetail_booking$ref & GuaranteeNeededResolver_booking$ref & BookingAnalyticsTracker_booking$ref
|}
|};
export type MobileNearestBookingQuery = {|
variables: MobileNearestBookingQueryVariables,
response: MobileNearestBookingQueryResponse,
|};
*/
/*
query MobileNearestBookingQuery(
$brand: String!
) {
nearestBooking(brand: $brand) {
__typename
...MobileBookingDetail_booking
...GuaranteeNeededResolver_booking
...BookingAnalyticsTracker_booking
id
}
}
fragment MobileBookingDetail_booking on BookingInterface {
type: __typename
databaseId: id(opaque: false)
isPastBooking
directAccessURL
... on BookingOneWay {
...OneWay_booking
trip {
departure {
time
}
}
}
... on BookingReturn {
...Return_booking
outbound {
departure {
time
}
}
}
... on BookingMulticity {
...Multicity_booking
start {
time
}
}
}
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 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": "brand",
"type": "String!",
"defaultValue": null
}
],
v1 = [
{
"kind": "Variable",
"name": "brand",
"variableName": "brand"
}
],
v2 = {
"kind": "LinkedField",
"alias": null,
"name": "city",
"storageKey": null,
"args": null,
"concreteType": "LocationArea",
"plural": false,
"selections": [
{
"kind": "ScalarField",
"alias": null,
"name": "name",
"args": null,
"storageKey": null
}
]
},
v3 = {
"kind": "ScalarField",
"alias": null,
"name": "id",
"args": null,
"storageKey": null
},
v4 = [
{
"kind": "LinkedField",
"alias": null,
"name": "airport",
"storageKey": null,
"args": null,
"concreteType": "Location",
"plural": false,
"selections": [
(v2/*: any*/),
{
"kind": "ScalarField",
"alias": null,
"name": "code",
"args": null,
"storageKey": null
},
(v3/*: any*/)
]
}
],
v5 = {
"kind": "ScalarField",
"alias": null,
"name": "time",
"args": null,
"storageKey": null
},
v6 = [
(v5/*: any*/)
],
v7 = {
"kind": "LinkedField",
"alias": null,
"name": "airport",
"storageKey": null,
"args": null,
"concreteType": "Location",
"plural": false,
"selections": [
(v2/*: any*/),
(v3/*: any*/)
]
},
v8 = [
(v7/*: any*/)
],
v9 = [
{
"kind": "LinkedField",
"alias": null,
"name": "departure",
"storageKey": null,
"args": null,
"concreteType": "RouteStop",
"plural": false,
"selections": [
(v7/*: any*/),
(v5/*: any*/)
]
},
{
"kind": "LinkedField",
"alias": null,
"name": "arrival",
"storageKey": null,
"args": null,
"concreteType": "RouteStop",
"plural": false,
"selections": (v8/*: any*/)
}
];
return {
"kind": "Request",
"fragment": {
"kind": "Fragment",
"name": "MobileNearestBookingQuery",
"type": "RootQuery",
"metadata": null,
"argumentDefinitions": (v0/*: any*/),
"selections": [
{
"kind": "LinkedField",
"alias": null,
"name": "nearestBooking",
"storageKey": null,
"args": (v1/*: any*/),
"concreteType": null,
"plural": false,
"selections": [
{
"kind": "FragmentSpread",
"name": "MobileBookingDetail_booking",
"args": null
},
{
"kind": "FragmentSpread",
"name": "GuaranteeNeededResolver_booking",
"args": null
},
{
"kind": "FragmentSpread",
"name": "BookingAnalyticsTracker_booking",
"args": null
}
]
}
]
},
"operation": {
"kind": "Operation",
"name": "MobileNearestBookingQuery",
"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
},
{
"kind": "ScalarField",
"alias": "type",
"name": "__typename",
"args": null,
"storageKey": null
},
{
"kind": "ScalarField",
"alias": "databaseId",
"name": "id",
"args": [
{
"kind": "Literal",
"name": "opaque",
"value": false
}
],
"storageKey": "id(opaque:false)"
},
{
"kind": "ScalarField",
"alias": null,
"name": "isPastBooking",
"args": null,
"storageKey": null
},
{
"kind": "ScalarField",
"alias": null,
"name": "directAccessURL",
"args": null,
"storageKey": null
},
{
"kind": "ScalarField",
"alias": null,
"name": "status",
"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": "customerSupport",
"storageKey": null,
"args": null,
"concreteType": "BookingCustomerSupport",
"plural": false,
"selections": [
{
"kind": "ScalarField",
"alias": null,
"name": "hasGuaranteeChat",
"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": (v4/*: any*/)
},
{
"kind": "LinkedField",
"alias": null,
"name": "departure",
"storageKey": null,
"args": null,
"concreteType": "RouteStop",
"plural": false,
"selections": (v4/*: any*/)
},
(v3/*: any*/)
]
},
(v3/*: 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": (v6/*: any*/)
},
(v3/*: any*/)
]
},
{
"kind": "InlineFragment",
"type": "BookingOneWay",
"selections": [
{
"kind": "LinkedField",
"alias": null,
"name": "trip",
"storageKey": null,
"args": null,
"concreteType": "Trip",
"plural": false,
"selections": (v9/*: any*/)
}
]
},
{
"kind": "InlineFragment",
"type": "BookingReturn",
"selections": [
{
"kind": "LinkedField",
"alias": null,
"name": "outbound",
"storageKey": null,
"args": null,
"concreteType": "Trip",
"plural": false,
"selections": (v9/*: 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": (v8/*: any*/)
}
]
},
{
"kind": "LinkedField",
"alias": null,
"name": "end",
"storageKey": null,
"args": null,
"concreteType": "RouteStop",
"plural": false,
"selections": (v8/*: any*/)
},
{
"kind": "LinkedField",
"alias": null,
"name": "start",
"storageKey": null,
"args": null,
"concreteType": "RouteStop",
"plural": false,
"selections": (v6/*: any*/)
}
]
}
]
}
]
},
"params": {
"operationKind": "query",
"name": "MobileNearestBookingQuery",
"id": null,
"text": "query MobileNearestBookingQuery(\n $brand: String!\n) {\n nearestBooking(brand: $brand) {\n __typename\n ...MobileBookingDetail_booking\n ...GuaranteeNeededResolver_booking\n ...BookingAnalyticsTracker_booking\n id\n }\n}\n\nfragment MobileBookingDetail_booking on BookingInterface {\n type: __typename\n databaseId: id(opaque: false)\n isPastBooking\n directAccessURL\n ... on BookingOneWay {\n ...OneWay_booking\n trip {\n departure {\n time\n }\n }\n }\n ... on BookingReturn {\n ...Return_booking\n outbound {\n departure {\n time\n }\n }\n }\n ... on BookingMulticity {\n ...Multicity_booking\n start {\n time\n }\n }\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 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 = 'f2e1e99d64d206affcd17d1958657fdf';
module.exports = node;