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:
@@ -1,31 +0,0 @@
|
||||
query FindProductRoutes($productUuid: String!, $toUuid: String!, $limitSources: Int, $limitRoutes: Int) {
|
||||
findProductRoutes(
|
||||
productUuid: $productUuid
|
||||
toUuid: $toUuid
|
||||
limitSources: $limitSources
|
||||
limitRoutes: $limitRoutes
|
||||
) {
|
||||
sourceUuid
|
||||
sourceName
|
||||
sourceLat
|
||||
sourceLon
|
||||
distanceKm
|
||||
routes {
|
||||
totalDistanceKm
|
||||
totalTimeSeconds
|
||||
stages {
|
||||
fromUuid
|
||||
fromName
|
||||
fromLat
|
||||
fromLon
|
||||
toUuid
|
||||
toName
|
||||
toLat
|
||||
toLon
|
||||
distanceKm
|
||||
travelTimeSeconds
|
||||
transportType
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
query FindRoutes($fromUuid: String!, $toUuid: String!, $limit: Int) {
|
||||
findRoutes(fromUuid: $fromUuid, toUuid: $toUuid, limit: $limit) {
|
||||
totalDistanceKm
|
||||
totalTimeSeconds
|
||||
stages {
|
||||
fromUuid
|
||||
fromName
|
||||
fromLat
|
||||
fromLon
|
||||
toUuid
|
||||
toName
|
||||
toLat
|
||||
toLon
|
||||
distanceKm
|
||||
travelTimeSeconds
|
||||
transportType
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
query GetDeliveryToHub($offerUuid: String!, $hubUuid: String!) {
|
||||
deliveryToHub(offerUuid: $offerUuid, hubUuid: $hubUuid) {
|
||||
query GetOfferToHub($offerUuid: String!, $hubUuid: String!) {
|
||||
offerToHub(offerUuid: $offerUuid, hubUuid: $hubUuid) {
|
||||
sourceUuid
|
||||
sourceName
|
||||
sourceLat
|
||||
@@ -1,5 +1,5 @@
|
||||
query GetOffersToHub($hubUuid: String!, $productUuid: String!, $limit: Int) {
|
||||
offersToHub(hubUuid: $hubUuid, productUuid: $productUuid, limit: $limit) {
|
||||
query GetOffersByHub($hubUuid: String!, $productUuid: String!, $limit: Int) {
|
||||
offersByHub(hubUuid: $hubUuid, productUuid: $productUuid, limit: $limit) {
|
||||
sourceUuid
|
||||
sourceName
|
||||
sourceLat
|
||||
Reference in New Issue
Block a user