Skip to content

Instantly share code, notes, and snippets.

@mkwatson
Created November 15, 2022 01:39
Show Gist options
  • Save mkwatson/43d690fdadff674a6f843d45e73a6f16 to your computer and use it in GitHub Desktop.
Save mkwatson/43d690fdadff674a6f843d45e73a6f16 to your computer and use it in GitHub Desktop.
query GetOffer($offerPathSegment: String!, $limit: Int!, $offset: Int = 0, $searchQuery: String, $minPrice: Int, $maxPrice: Int, $startDate: DateTime, $endDate: DateTime, $level1Filter: String, $level2Filter: String, $showAda: Boolean, $eventSort: EventSelectionsSort, $eventView: EventSelectionsView, $tickets: Int, $rootOfferId: UUID, $appliedCodes: [String!]) {
offer {
offer(pathSegment: $offerPathSegment, rootOfferId: $rootOfferId, appliedCodes: $appliedCodes) {
...offerInfo
__typename
children(limit: $limit, offset: $offset, searchQuery: $searchQuery, minPrice: $minPrice, maxPrice: $maxPrice, startDate: $startDate, endDate: $endDate, level1Filter: $level1Filter, level2Filter: $level2Filter, showAda: $showAda, eventSort: $eventSort, eventView: $eventView, tickets: $tickets) {
limit
offset
total
results {
...offerInfoShort
...ticketOfferItemInfoFull
...groupedTicketOfferItem
__typename
}
filterBounds {
...eventFilterBounds
__typename
}
upfrontPricing
pricingSnapshotContext {
eventPageId
dataType
revisionNumber
__typename
}
topLevelFees {
amount
currency
__typename
}
__typename
}
rewards {
id
title
description
thresholdAmount
__typename
}
selections(eventView: $eventView) {
...eventSelections
__typename
}
}
__typename
}
}
fragment offerInfo on Offer {
...offerInfoShort
typePromo
options {
defaultTab
bestSeatsCopy
__typename
}
isMultiOffer
promoError
eventOffer {
reservedGroupView {
enabled
tickets {
id
offerItemId
currency
basePrice
tags
seatInformation {
section
rowNumber
seatNumber
__typename
}
__typename
}
__typename
}
topLevelFees {
amount
currency
__typename
}
upfrontPricing
__typename
}
__typename
}
fragment offerInfoShort on Offer {
id
pathSegment
offerShape
status
selections(eventView: $eventView) {
...eventSelections
__typename
}
vendorId
detail {
...offerDetail
__typename
}
media {
__typename
...videoInfo
...imageInfo
}
location {
...locationInfo
__typename
}
eventOffer {
upfrontPricing
topLevelFees {
amount
currency
__typename
}
__typename
}
__typename
}
fragment eventSelections on EventSelectionsResult {
views
sorts
filters {
level1 {
label
values {
key
value
__typename
}
__typename
}
level2 {
label
values {
key
value
__typename
}
__typename
}
hasAda
__typename
}
displayPrice {
startPrice
currency
__typename
}
displayFee {
amount
currency
__typename
}
__typename
}
fragment offerDetail on Detail {
id
title
startDate
endDate
htmlDetails
description
displayPrice
locationNameOverride
locationAddressOverride
startDatetimeOverride
termsConditions
__typename
}
fragment videoInfo on ResultMediaVideo {
id
url
tags
title
tags
videoType
__typename
}
fragment imageInfo on ResultMediaImage {
id
url
tags
title
__typename
}
fragment locationInfo on Location {
address1
address2
city
state
country
zipCode
zoneId
__typename
}
fragment ticketOfferItemInfoFull on TicketOfferItem {
id
itemShape
availability(eventView: $eventView) {
...ticketAvailabilityInfo
__typename
}
itemPurchaseInfo {
...ticketItemPurchaseInfo
__typename
}
detail {
...ticketDetail
__typename
}
media {
__typename
...videoItemInfo
...imageItemInfo
}
__typename
}
fragment ticketAvailabilityInfo on TicketAvailability {
basePrice
modifiedPrice
quantity
quantityPurchasable
reason
onSaleAt
offSaleAt
rowAvailability {
...ticketRowAvailability
__typename
}
__typename
}
fragment ticketRowAvailability on RowAvailabilityResult {
section
rowNumber
seatNumbers
ticketGroupId
__typename
}
fragment ticketItemPurchaseInfo on TicketItemPurchaseInfo {
quantityRange
defaultQuantity
basePrice
currency
rowInformation
fees {
currency
amount
description
__typename
}
__typename
}
fragment ticketDetail on Detail {
id
title
description
htmlDetails
displayPrice
startDate
endDate
htmlDetails
__typename
}
fragment videoItemInfo on ResultMediaVideo {
id
url
tags
title
tags
videoType
__typename
}
fragment imageItemInfo on ResultMediaImage {
id
url
tags
title
__typename
}
fragment groupedTicketOfferItem on GroupedTicketOfferItem {
id
title
ticketOfferItems {
...ticketOfferItemInfoFull
__typename
}
__typename
}
fragment eventFilterBounds on EventFilterBoundsWrapper {
eventDates {
min
max
__typename
}
itemPrices {
min
max
__typename
}
__typename
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment