@kiwicom/smart-faq
Version:
607 lines (586 loc) • 16.2 kB
JavaScript
/**
* @flow
* @relayHash a8a1d7b11d4663b03df73659eeb1b034
*/
/* eslint-disable */
'use strict';
/*::
import type { ConcreteRequest } from 'relay-runtime';
type PastBookingsPaginationContainer$ref = any;
export type PastBookingsPaginationContainerQueryVariables = {|
after?: ?string,
first?: ?number,
brand: string,
|};
export type PastBookingsPaginationContainerQueryResponse = {|
+$fragmentRefs: PastBookingsPaginationContainer$ref
|};
export type PastBookingsPaginationContainerQuery = {|
variables: PastBookingsPaginationContainerQueryVariables,
response: PastBookingsPaginationContainerQueryResponse,
|};
*/
/*
query PastBookingsPaginationContainerQuery(
$after: String
$first: Int
$brand: String!
) {
...PastBookingsPaginationContainer
}
fragment PastBookingsPaginationContainer on RootQuery {
past: customerBookings(only: PAST, first: $first, after: $after, brand: $brand, order: DESC) {
pageInfo {
hasNextPage
endCursor
}
edges {
node {
...BookingCardsList_bookings
id
__typename
}
cursor
}
}
}
fragment BookingCardsList_bookings on BookingInterface {
databaseId: id(opaque: false)
type: __typename
... on BookingOneWay {
...OneWayBooking_booking
}
... on BookingReturn {
...ReturnBooking_booking
}
... on BookingMulticity {
...MulticityBooking_booking
}
}
fragment OneWayBooking_booking on BookingOneWay {
...DeprecatedBookingCard_booking
trip {
departure {
...DeprecatedBookingCard_departure
}
arrival {
...DeprecatedBookingCard_arrival
}
legs {
...CarrierLogoWrapper_legs
id
}
}
}
fragment ReturnBooking_booking on BookingReturn {
...DeprecatedBookingCard_booking
outbound {
departure {
...DeprecatedBookingCard_departure
}
arrival {
...DeprecatedBookingCard_arrival
}
legs {
...CarrierLogoWrapper_legs
id
}
}
}
fragment MulticityBooking_booking on BookingMulticity {
...DeprecatedBookingCard_booking
start {
...DeprecatedBookingCard_departure
}
end {
...DeprecatedBookingCard_arrival
}
trips {
legs {
...CarrierLogoWrapper_legs
id
}
}
}
fragment DeprecatedBookingCard_booking on BookingInterface {
...BookingId_booking
...DateAndPassenger_booking
carriers {
name
code
id
}
}
fragment DeprecatedBookingCard_departure on RouteStop {
...FromToRow_departure
...DateAndPassenger_departure
}
fragment DeprecatedBookingCard_arrival on RouteStop {
...FromToRow_arrival
}
fragment CarrierLogoWrapper_legs on Leg {
airline {
name
code
}
}
fragment FromToRow_arrival on RouteStop {
airport {
locationId
city {
name
}
id
}
}
fragment FromToRow_departure on RouteStop {
airport {
locationId
city {
name
}
id
}
}
fragment DateAndPassenger_departure on RouteStop {
time
}
fragment BookingId_booking on BookingInterface {
bookingId: id(opaque: false)
}
fragment DateAndPassenger_booking on BookingInterface {
status
passengerCount
bookingDate
}
*/
const node/*: ConcreteRequest*/ = (function(){
var v0 = [
{
"kind": "LocalArgument",
"name": "after",
"type": "String",
"defaultValue": null
},
{
"kind": "LocalArgument",
"name": "first",
"type": "Int",
"defaultValue": null
},
{
"kind": "LocalArgument",
"name": "brand",
"type": "String!",
"defaultValue": null
}
],
v1 = [
{
"kind": "Variable",
"name": "after",
"variableName": "after"
},
{
"kind": "Variable",
"name": "brand",
"variableName": "brand"
},
{
"kind": "Variable",
"name": "first",
"variableName": "first"
},
{
"kind": "Literal",
"name": "only",
"value": "PAST"
},
{
"kind": "Literal",
"name": "order",
"value": "DESC"
}
],
v2 = [
{
"kind": "Literal",
"name": "opaque",
"value": false
}
],
v3 = {
"kind": "ScalarField",
"alias": null,
"name": "id",
"args": null,
"storageKey": null
},
v4 = {
"kind": "ScalarField",
"alias": "bookingId",
"name": "id",
"args": (v2/*: any*/),
"storageKey": "id(opaque:false)"
},
v5 = {
"kind": "ScalarField",
"alias": null,
"name": "status",
"args": null,
"storageKey": null
},
v6 = {
"kind": "ScalarField",
"alias": null,
"name": "passengerCount",
"args": null,
"storageKey": null
},
v7 = {
"kind": "ScalarField",
"alias": null,
"name": "bookingDate",
"args": null,
"storageKey": null
},
v8 = {
"kind": "ScalarField",
"alias": null,
"name": "name",
"args": null,
"storageKey": null
},
v9 = {
"kind": "ScalarField",
"alias": null,
"name": "code",
"args": null,
"storageKey": null
},
v10 = {
"kind": "LinkedField",
"alias": null,
"name": "carriers",
"storageKey": null,
"args": null,
"concreteType": "Carrier",
"plural": true,
"selections": [
(v8/*: any*/),
(v9/*: any*/),
(v3/*: any*/)
]
},
v11 = {
"kind": "LinkedField",
"alias": null,
"name": "airport",
"storageKey": null,
"args": null,
"concreteType": "Location",
"plural": false,
"selections": [
{
"kind": "ScalarField",
"alias": null,
"name": "locationId",
"args": null,
"storageKey": null
},
{
"kind": "LinkedField",
"alias": null,
"name": "city",
"storageKey": null,
"args": null,
"concreteType": "LocationArea",
"plural": false,
"selections": [
(v8/*: any*/)
]
},
(v3/*: any*/)
]
},
v12 = [
(v11/*: any*/),
{
"kind": "ScalarField",
"alias": null,
"name": "time",
"args": null,
"storageKey": null
}
],
v13 = [
(v11/*: any*/)
],
v14 = {
"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": [
(v8/*: any*/),
(v9/*: any*/)
]
},
(v3/*: any*/)
]
},
v15 = [
{
"kind": "LinkedField",
"alias": null,
"name": "departure",
"storageKey": null,
"args": null,
"concreteType": "RouteStop",
"plural": false,
"selections": (v12/*: any*/)
},
{
"kind": "LinkedField",
"alias": null,
"name": "arrival",
"storageKey": null,
"args": null,
"concreteType": "RouteStop",
"plural": false,
"selections": (v13/*: any*/)
},
(v14/*: any*/)
];
return {
"kind": "Request",
"fragment": {
"kind": "Fragment",
"name": "PastBookingsPaginationContainerQuery",
"type": "RootQuery",
"metadata": null,
"argumentDefinitions": (v0/*: any*/),
"selections": [
{
"kind": "FragmentSpread",
"name": "PastBookingsPaginationContainer",
"args": null
}
]
},
"operation": {
"kind": "Operation",
"name": "PastBookingsPaginationContainerQuery",
"argumentDefinitions": (v0/*: any*/),
"selections": [
{
"kind": "LinkedField",
"alias": "past",
"name": "customerBookings",
"storageKey": null,
"args": (v1/*: any*/),
"concreteType": "BookingInterfaceConnection",
"plural": false,
"selections": [
{
"kind": "LinkedField",
"alias": null,
"name": "pageInfo",
"storageKey": null,
"args": null,
"concreteType": "PageInfo",
"plural": false,
"selections": [
{
"kind": "ScalarField",
"alias": null,
"name": "hasNextPage",
"args": null,
"storageKey": null
},
{
"kind": "ScalarField",
"alias": null,
"name": "endCursor",
"args": null,
"storageKey": null
}
]
},
{
"kind": "LinkedField",
"alias": null,
"name": "edges",
"storageKey": null,
"args": null,
"concreteType": "BookingInterfaceEdge",
"plural": true,
"selections": [
{
"kind": "LinkedField",
"alias": null,
"name": "node",
"storageKey": null,
"args": null,
"concreteType": null,
"plural": false,
"selections": [
{
"kind": "ScalarField",
"alias": "databaseId",
"name": "id",
"args": (v2/*: any*/),
"storageKey": "id(opaque:false)"
},
{
"kind": "ScalarField",
"alias": "type",
"name": "__typename",
"args": null,
"storageKey": null
},
(v3/*: any*/),
{
"kind": "ScalarField",
"alias": null,
"name": "__typename",
"args": null,
"storageKey": null
},
{
"kind": "InlineFragment",
"type": "BookingOneWay",
"selections": [
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v10/*: any*/),
{
"kind": "LinkedField",
"alias": null,
"name": "trip",
"storageKey": null,
"args": null,
"concreteType": "Trip",
"plural": false,
"selections": (v15/*: any*/)
}
]
},
{
"kind": "InlineFragment",
"type": "BookingReturn",
"selections": [
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v10/*: any*/),
{
"kind": "LinkedField",
"alias": null,
"name": "outbound",
"storageKey": null,
"args": null,
"concreteType": "Trip",
"plural": false,
"selections": (v15/*: any*/)
}
]
},
{
"kind": "InlineFragment",
"type": "BookingMulticity",
"selections": [
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v10/*: any*/),
{
"kind": "LinkedField",
"alias": null,
"name": "start",
"storageKey": null,
"args": null,
"concreteType": "RouteStop",
"plural": false,
"selections": (v12/*: any*/)
},
{
"kind": "LinkedField",
"alias": null,
"name": "end",
"storageKey": null,
"args": null,
"concreteType": "RouteStop",
"plural": false,
"selections": (v13/*: any*/)
},
{
"kind": "LinkedField",
"alias": null,
"name": "trips",
"storageKey": null,
"args": null,
"concreteType": "Trip",
"plural": true,
"selections": [
(v14/*: any*/)
]
}
]
}
]
},
{
"kind": "ScalarField",
"alias": null,
"name": "cursor",
"args": null,
"storageKey": null
}
]
}
]
},
{
"kind": "LinkedHandle",
"alias": "past",
"name": "customerBookings",
"args": (v1/*: any*/),
"handle": "connection",
"key": "PastBookingsPaginationContainer_past",
"filters": [
"only",
"brand",
"order"
]
}
]
},
"params": {
"operationKind": "query",
"name": "PastBookingsPaginationContainerQuery",
"id": null,
"text": "query PastBookingsPaginationContainerQuery(\n $after: String\n $first: Int\n $brand: String!\n) {\n ...PastBookingsPaginationContainer\n}\n\nfragment PastBookingsPaginationContainer on RootQuery {\n past: customerBookings(only: PAST, first: $first, after: $after, brand: $brand, order: DESC) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n ...BookingCardsList_bookings\n id\n __typename\n }\n cursor\n }\n }\n}\n\nfragment BookingCardsList_bookings on BookingInterface {\n databaseId: id(opaque: false)\n type: __typename\n ... on BookingOneWay {\n ...OneWayBooking_booking\n }\n ... on BookingReturn {\n ...ReturnBooking_booking\n }\n ... on BookingMulticity {\n ...MulticityBooking_booking\n }\n}\n\nfragment OneWayBooking_booking on BookingOneWay {\n ...DeprecatedBookingCard_booking\n trip {\n departure {\n ...DeprecatedBookingCard_departure\n }\n arrival {\n ...DeprecatedBookingCard_arrival\n }\n legs {\n ...CarrierLogoWrapper_legs\n id\n }\n }\n}\n\nfragment ReturnBooking_booking on BookingReturn {\n ...DeprecatedBookingCard_booking\n outbound {\n departure {\n ...DeprecatedBookingCard_departure\n }\n arrival {\n ...DeprecatedBookingCard_arrival\n }\n legs {\n ...CarrierLogoWrapper_legs\n id\n }\n }\n}\n\nfragment MulticityBooking_booking on BookingMulticity {\n ...DeprecatedBookingCard_booking\n start {\n ...DeprecatedBookingCard_departure\n }\n end {\n ...DeprecatedBookingCard_arrival\n }\n trips {\n legs {\n ...CarrierLogoWrapper_legs\n id\n }\n }\n}\n\nfragment DeprecatedBookingCard_booking on BookingInterface {\n ...BookingId_booking\n ...DateAndPassenger_booking\n carriers {\n name\n code\n id\n }\n}\n\nfragment DeprecatedBookingCard_departure on RouteStop {\n ...FromToRow_departure\n ...DateAndPassenger_departure\n}\n\nfragment DeprecatedBookingCard_arrival on RouteStop {\n ...FromToRow_arrival\n}\n\nfragment CarrierLogoWrapper_legs on Leg {\n airline {\n name\n code\n }\n}\n\nfragment FromToRow_arrival on RouteStop {\n airport {\n locationId\n city {\n name\n }\n id\n }\n}\n\nfragment FromToRow_departure on RouteStop {\n airport {\n locationId\n city {\n name\n }\n id\n }\n}\n\nfragment DateAndPassenger_departure on RouteStop {\n time\n}\n\nfragment BookingId_booking on BookingInterface {\n bookingId: id(opaque: false)\n}\n\nfragment DateAndPassenger_booking on BookingInterface {\n status\n passengerCount\n bookingDate\n}\n",
"metadata": {}
}
};
})();
// prettier-ignore
(node/*: any*/).hash = '73781aa616cff881723d6387a1ee1d32';
module.exports = node;