@kiwicom/smart-faq
Version:
253 lines (247 loc) • 5.83 kB
JavaScript
/**
* @flow
*/
/* eslint-disable */
'use strict';
/*::
import type { ReaderFragment } from 'relay-runtime';
type Contact_booking$ref = any;
type Header_booking$ref = any;
type OneWayTrip_booking$ref = any;
type OverlayWrap_booking$ref = any;
type ReturnTrip_booking$ref = any;
export type BookingStatus = "CANCELLED" | "CLOSED" | "CONFIRMED" | "DELETED" | "EXPIRED" | "IN_PROCESS" | "NEW" | "PENDING" | "REFUNDED" | "%future added value";
import type { FragmentReference } from "relay-runtime";
declare export opaque type BookingDetail_booking$ref: FragmentReference;
declare export opaque type BookingDetail_booking$fragmentType: BookingDetail_booking$ref;
export type BookingDetail_booking = {|
+type: string,
+status: ?BookingStatus,
+assets: ?{|
+ticketUrl: ?string
|},
+availableServices: ?{|
+insurance: ?{|
+passengers: ?$ReadOnlyArray<?{|
+databaseId: ?number
|}>
|}
|},
+directAccessURL: ?string,
+isPastBooking: ?boolean,
+trip?: ?{|
+departure: ?{|
+time: ?any
|}
|},
+outbound?: ?{|
+departure: ?{|
+time: ?any
|}
|},
+start?: ?{|
+time: ?any
|},
+$fragmentRefs: Header_booking$ref & Contact_booking$ref & OneWayTrip_booking$ref & ReturnTrip_booking$ref & OverlayWrap_booking$ref,
+$refType: BookingDetail_booking$ref,
|};
export type BookingDetail_booking$data = BookingDetail_booking;
export type BookingDetail_booking$key = {
+$data?: BookingDetail_booking$data,
+$fragmentRefs: BookingDetail_booking$ref,
};
*/
const node/*: ReaderFragment*/ = (function(){
var v0 = [
{
"kind": "ScalarField",
"alias": null,
"name": "time",
"args": null,
"storageKey": null
}
],
v1 = [
{
"kind": "LinkedField",
"alias": null,
"name": "departure",
"storageKey": null,
"args": null,
"concreteType": "RouteStop",
"plural": false,
"selections": (v0/*: any*/)
}
];
return {
"kind": "Fragment",
"name": "BookingDetail_booking",
"type": "BookingInterface",
"metadata": null,
"argumentDefinitions": [],
"selections": [
{
"kind": "ScalarField",
"alias": "type",
"name": "__typename",
"args": null,
"storageKey": null
},
{
"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": "FragmentSpread",
"name": "Header_booking",
"args": null
},
{
"kind": "InlineFragment",
"type": "BookingOneWay",
"selections": [
{
"kind": "LinkedField",
"alias": null,
"name": "trip",
"storageKey": null,
"args": null,
"concreteType": "Trip",
"plural": false,
"selections": (v1/*: any*/)
},
{
"kind": "FragmentSpread",
"name": "OneWayTrip_booking",
"args": null
}
]
},
{
"kind": "InlineFragment",
"type": "BookingReturn",
"selections": [
{
"kind": "LinkedField",
"alias": null,
"name": "outbound",
"storageKey": null,
"args": null,
"concreteType": "Trip",
"plural": false,
"selections": (v1/*: any*/)
},
{
"kind": "FragmentSpread",
"name": "ReturnTrip_booking",
"args": null
}
]
},
{
"kind": "InlineFragment",
"type": "BookingMulticity",
"selections": [
{
"kind": "LinkedField",
"alias": null,
"name": "start",
"storageKey": null,
"args": null,
"concreteType": "RouteStop",
"plural": false,
"selections": (v0/*: any*/)
},
{
"kind": "FragmentSpread",
"name": "OverlayWrap_booking",
"args": null
}
]
},
{
"kind": "FragmentSpread",
"name": "Contact_booking",
"args": null
}
]
};
})();
// prettier-ignore
(node/*: any*/).hash = 'de64150d277fd7690ed2ef30cc933b77';
module.exports = node;