Update catalog pages to use new geo queries
Some checks failed
Build Docker Image / build (push) Failing after 1m35s
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:
@@ -1,11 +0,0 @@
|
||||
query FindHubsForProduct($productUuid: String!) {
|
||||
findHubsForProduct(productUuid: $productUuid) {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
transportTypes
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
query FindProductsForHub($hubUuid: String!) {
|
||||
findProductsForHub(hubUuid: $hubUuid)
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
query FindSupplierProductHubs($supplierUuid: String!, $productUuid: String!) {
|
||||
findSupplierProductHubs(supplierUuid: $supplierUuid, productUuid: $productUuid) {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
transportTypes
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,5 @@
|
||||
query FindOffersForHubByProduct($hubUuid: String!, $productUuid: String!, $limitSources: Int) {
|
||||
findOffersForHubByProduct(
|
||||
hubUuid: $hubUuid
|
||||
productUuid: $productUuid
|
||||
limitSources: $limitSources
|
||||
) {
|
||||
query GetDeliveryToHub($offerUuid: String!, $hubUuid: String!) {
|
||||
deliveryToHub(offerUuid: $offerUuid, hubUuid: $hubUuid) {
|
||||
sourceUuid
|
||||
sourceName
|
||||
sourceLat
|
||||
11
graphql/operations/public/geo/GetHubsNearOffer.graphql
Normal file
11
graphql/operations/public/geo/GetHubsNearOffer.graphql
Normal file
@@ -0,0 +1,11 @@
|
||||
query GetHubsNearOffer($offerUuid: String!, $limit: Int) {
|
||||
hubsNearOffer(offerUuid: $offerUuid, limit: $limit) {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
transportTypes
|
||||
}
|
||||
}
|
||||
16
graphql/operations/public/geo/GetOffersByProduct.graphql
Normal file
16
graphql/operations/public/geo/GetOffersByProduct.graphql
Normal file
@@ -0,0 +1,16 @@
|
||||
query GetOffersByProduct($productUuid: String!) {
|
||||
offersByProduct(productUuid: $productUuid) {
|
||||
uuid
|
||||
productUuid
|
||||
productName
|
||||
supplierUuid
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
pricePerUnit
|
||||
currency
|
||||
quantity
|
||||
unit
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
query GetOffersBySupplierProduct($supplierUuid: String!, $productUuid: String!) {
|
||||
offersBySupplierProduct(supplierUuid: $supplierUuid, productUuid: $productUuid) {
|
||||
uuid
|
||||
productUuid
|
||||
productName
|
||||
supplierUuid
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
pricePerUnit
|
||||
currency
|
||||
quantity
|
||||
unit
|
||||
}
|
||||
}
|
||||
26
graphql/operations/public/geo/GetOffersToHub.graphql
Normal file
26
graphql/operations/public/geo/GetOffersToHub.graphql
Normal file
@@ -0,0 +1,26 @@
|
||||
query GetOffersToHub($hubUuid: String!, $productUuid: String!, $limit: Int) {
|
||||
offersToHub(hubUuid: $hubUuid, productUuid: $productUuid, limit: $limit) {
|
||||
sourceUuid
|
||||
sourceName
|
||||
sourceLat
|
||||
sourceLon
|
||||
distanceKm
|
||||
routes {
|
||||
totalDistanceKm
|
||||
totalTimeSeconds
|
||||
stages {
|
||||
fromUuid
|
||||
fromName
|
||||
fromLat
|
||||
fromLon
|
||||
toUuid
|
||||
toName
|
||||
toLat
|
||||
toLon
|
||||
distanceKm
|
||||
travelTimeSeconds
|
||||
transportType
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
6
graphql/operations/public/geo/GetProducts.graphql
Normal file
6
graphql/operations/public/geo/GetProducts.graphql
Normal file
@@ -0,0 +1,6 @@
|
||||
query GetProducts {
|
||||
products {
|
||||
uuid
|
||||
name
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
query GetProductsBySupplier($supplierUuid: String!) {
|
||||
productsBySupplier(supplierUuid: $supplierUuid) {
|
||||
uuid
|
||||
name
|
||||
}
|
||||
}
|
||||
6
graphql/operations/public/geo/GetProductsNearHub.graphql
Normal file
6
graphql/operations/public/geo/GetProductsNearHub.graphql
Normal file
@@ -0,0 +1,6 @@
|
||||
query GetProductsNearHub($hubUuid: String!, $radiusKm: Float) {
|
||||
productsNearHub(hubUuid: $hubUuid, radiusKm: $radiusKm) {
|
||||
uuid
|
||||
name
|
||||
}
|
||||
}
|
||||
5
graphql/operations/public/geo/GetSuppliers.graphql
Normal file
5
graphql/operations/public/geo/GetSuppliers.graphql
Normal file
@@ -0,0 +1,5 @@
|
||||
query GetSuppliers {
|
||||
suppliers {
|
||||
uuid
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user