refactor(webapp): Update to use new geo queries - offersByHub, offerToHub
All checks were successful
Build Docker Image / build (push) Successful in 4m23s
All checks were successful
Build Docker Image / build (push) Successful in 4m23s
- Rename GetOffersToHub → GetOffersByHub - Rename GetDeliveryToHub → GetOfferToHub - Delete FindRoutes.graphql, FindProductRoutes.graphql - Update catalog pages and CalcResultContent to use new query names - Regenerate GraphQL types
This commit is contained in:
26
graphql/operations/public/geo/GetOfferToHub.graphql
Normal file
26
graphql/operations/public/geo/GetOfferToHub.graphql
Normal file
@@ -0,0 +1,26 @@
|
||||
query GetOfferToHub($offerUuid: String!, $hubUuid: String!) {
|
||||
offerToHub(offerUuid: $offerUuid, hubUuid: $hubUuid) {
|
||||
sourceUuid
|
||||
sourceName
|
||||
sourceLat
|
||||
sourceLon
|
||||
distanceKm
|
||||
routes {
|
||||
totalDistanceKm
|
||||
totalTimeSeconds
|
||||
stages {
|
||||
fromUuid
|
||||
fromName
|
||||
fromLat
|
||||
fromLon
|
||||
toUuid
|
||||
toName
|
||||
toLat
|
||||
toLon
|
||||
distanceKm
|
||||
travelTimeSeconds
|
||||
transportType
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user