Update catalog pages to use new geo queries
Some checks failed
Build Docker Image / build (push) Failing after 1m35s

- Replace FindProductRoutesDocument with GetOffersToHubDocument
- Replace FindSupplierProductHubsDocument with GetOffersBySupplierProductDocument + GetHubsNearOfferDocument
- Update all catalog pages to use new query naming convention
- Add new GraphQL operation files, remove deprecated ones
This commit is contained in:
Ruslan Bakiev
2026-01-16 15:40:06 +07:00
parent e869c2065f
commit 2253cd20b0
19 changed files with 232 additions and 188 deletions

View File

@@ -0,0 +1,26 @@
query GetDeliveryToHub($offerUuid: String!, $hubUuid: String!) {
deliveryToHub(offerUuid: $offerUuid, hubUuid: $hubUuid) {
sourceUuid
sourceName
sourceLat
sourceLon
distanceKm
routes {
totalDistanceKm
totalTimeSeconds
stages {
fromUuid
fromName
fromLat
fromLon
toUuid
toName
toLat
toLon
distanceKm
travelTimeSeconds
transportType
}
}
}
}