refactor(webapp): Update to use new geo queries - offersByHub, offerToHub
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:
Ruslan Bakiev
2026-01-16 16:57:30 +07:00
parent 7968a32fd4
commit d3bc7e9c09
9 changed files with 62 additions and 212 deletions

View 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
}
}
}
}