Initial commit from monorepo
This commit is contained in:
28
graphql/operations/public/exchange/GetLocationOffers.graphql
Normal file
28
graphql/operations/public/exchange/GetLocationOffers.graphql
Normal file
@@ -0,0 +1,28 @@
|
||||
query GetLocationOffers($locationUuid: String!) {
|
||||
getOffers(locationUuid: $locationUuid, status: "ACTIVE") {
|
||||
uuid
|
||||
teamUuid
|
||||
status
|
||||
# Location
|
||||
locationUuid
|
||||
locationName
|
||||
locationCountry
|
||||
locationCountryCode
|
||||
locationLatitude
|
||||
locationLongitude
|
||||
# Product
|
||||
productUuid
|
||||
productName
|
||||
categoryName
|
||||
# Price
|
||||
quantity
|
||||
unit
|
||||
pricePerUnit
|
||||
currency
|
||||
# Misc
|
||||
description
|
||||
validUntil
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
28
graphql/operations/public/exchange/GetOffer.graphql
Normal file
28
graphql/operations/public/exchange/GetOffer.graphql
Normal file
@@ -0,0 +1,28 @@
|
||||
query GetOffer($uuid: String!) {
|
||||
getOffer(uuid: $uuid) {
|
||||
uuid
|
||||
teamUuid
|
||||
status
|
||||
# Location
|
||||
locationUuid
|
||||
locationName
|
||||
locationCountry
|
||||
locationCountryCode
|
||||
locationLatitude
|
||||
locationLongitude
|
||||
# Product
|
||||
productUuid
|
||||
productName
|
||||
categoryName
|
||||
# Price
|
||||
quantity
|
||||
unit
|
||||
pricePerUnit
|
||||
currency
|
||||
# Misc
|
||||
description
|
||||
validUntil
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
29
graphql/operations/public/exchange/GetOffers.graphql
Normal file
29
graphql/operations/public/exchange/GetOffers.graphql
Normal file
@@ -0,0 +1,29 @@
|
||||
query GetOffers($status: String, $productUuid: String, $locationUuid: String, $categoryName: String, $teamUuid: String, $limit: Int, $offset: Int) {
|
||||
getOffers(status: $status, productUuid: $productUuid, locationUuid: $locationUuid, categoryName: $categoryName, teamUuid: $teamUuid, limit: $limit, offset: $offset) {
|
||||
uuid
|
||||
teamUuid
|
||||
status
|
||||
# Location
|
||||
locationUuid
|
||||
locationName
|
||||
locationCountry
|
||||
locationCountryCode
|
||||
locationLatitude
|
||||
locationLongitude
|
||||
# Product
|
||||
productUuid
|
||||
productName
|
||||
categoryName
|
||||
# Price
|
||||
quantity
|
||||
unit
|
||||
pricePerUnit
|
||||
currency
|
||||
# Misc
|
||||
description
|
||||
validUntil
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
getOffersCount(status: $status, productUuid: $productUuid, locationUuid: $locationUuid, categoryName: $categoryName, teamUuid: $teamUuid)
|
||||
}
|
||||
9
graphql/operations/public/exchange/GetProduct.graphql
Normal file
9
graphql/operations/public/exchange/GetProduct.graphql
Normal file
@@ -0,0 +1,9 @@
|
||||
query GetProduct($uuid: String!) {
|
||||
getProducts {
|
||||
uuid
|
||||
name
|
||||
categoryId
|
||||
categoryName
|
||||
terminusSchemaId
|
||||
}
|
||||
}
|
||||
28
graphql/operations/public/exchange/GetProductOffers.graphql
Normal file
28
graphql/operations/public/exchange/GetProductOffers.graphql
Normal file
@@ -0,0 +1,28 @@
|
||||
query GetProductOffers($productUuid: String!) {
|
||||
getOffers(productUuid: $productUuid, status: "ACTIVE") {
|
||||
uuid
|
||||
teamUuid
|
||||
status
|
||||
# Location
|
||||
locationUuid
|
||||
locationName
|
||||
locationCountry
|
||||
locationCountryCode
|
||||
locationLatitude
|
||||
locationLongitude
|
||||
# Product
|
||||
productUuid
|
||||
productName
|
||||
categoryName
|
||||
# Price
|
||||
quantity
|
||||
unit
|
||||
pricePerUnit
|
||||
currency
|
||||
# Misc
|
||||
description
|
||||
validUntil
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
9
graphql/operations/public/exchange/GetProducts.graphql
Normal file
9
graphql/operations/public/exchange/GetProducts.graphql
Normal file
@@ -0,0 +1,9 @@
|
||||
query GetProducts {
|
||||
getProducts {
|
||||
uuid
|
||||
name
|
||||
categoryId
|
||||
categoryName
|
||||
terminusSchemaId
|
||||
}
|
||||
}
|
||||
28
graphql/operations/public/exchange/GetSupplierOffers.graphql
Normal file
28
graphql/operations/public/exchange/GetSupplierOffers.graphql
Normal file
@@ -0,0 +1,28 @@
|
||||
query GetSupplierOffers($teamUuid: String!) {
|
||||
getOffers(teamUuid: $teamUuid, status: "ACTIVE") {
|
||||
uuid
|
||||
teamUuid
|
||||
status
|
||||
# Location
|
||||
locationUuid
|
||||
locationName
|
||||
locationCountry
|
||||
locationCountryCode
|
||||
locationLatitude
|
||||
locationLongitude
|
||||
# Product
|
||||
productUuid
|
||||
productName
|
||||
categoryName
|
||||
# Price
|
||||
quantity
|
||||
unit
|
||||
pricePerUnit
|
||||
currency
|
||||
# Misc
|
||||
description
|
||||
validUntil
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
query GetSupplierProfile($uuid: String!) {
|
||||
getSupplierProfile(uuid: $uuid) {
|
||||
uuid
|
||||
teamUuid
|
||||
name
|
||||
description
|
||||
country
|
||||
logoUrl
|
||||
isVerified
|
||||
isActive
|
||||
offersCount
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
query GetSupplierProfiles($country: String, $isVerified: Boolean, $limit: Int, $offset: Int) {
|
||||
getSupplierProfiles(country: $country, isVerified: $isVerified, limit: $limit, offset: $offset) {
|
||||
uuid
|
||||
teamUuid
|
||||
name
|
||||
description
|
||||
country
|
||||
countryCode
|
||||
logoUrl
|
||||
isVerified
|
||||
isActive
|
||||
offersCount
|
||||
latitude
|
||||
longitude
|
||||
}
|
||||
getSupplierProfilesCount(country: $country, isVerified: $isVerified)
|
||||
}
|
||||
19
graphql/operations/public/geo/FindRoutes.graphql
Normal file
19
graphql/operations/public/geo/FindRoutes.graphql
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
6
graphql/operations/public/geo/GetAutoRoute.graphql
Normal file
6
graphql/operations/public/geo/GetAutoRoute.graphql
Normal file
@@ -0,0 +1,6 @@
|
||||
query GetAutoRoute($fromLat: Float!, $fromLon: Float!, $toLat: Float!, $toLon: Float!) {
|
||||
autoRoute(fromLat: $fromLat, fromLon: $fromLon, toLat: $toLat, toLon: $toLon) {
|
||||
distanceKm
|
||||
geometry
|
||||
}
|
||||
}
|
||||
20
graphql/operations/public/geo/GetNode.graphql
Normal file
20
graphql/operations/public/geo/GetNode.graphql
Normal file
@@ -0,0 +1,20 @@
|
||||
query GetNode($uuid: String!) {
|
||||
node(uuid: $uuid) {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
syncedAt
|
||||
edges {
|
||||
toUuid
|
||||
toName
|
||||
toLatitude
|
||||
toLongitude
|
||||
distanceKm
|
||||
travelTimeSeconds
|
||||
transportType
|
||||
}
|
||||
}
|
||||
}
|
||||
40
graphql/operations/public/geo/GetNodeConnections.graphql
Normal file
40
graphql/operations/public/geo/GetNodeConnections.graphql
Normal file
@@ -0,0 +1,40 @@
|
||||
query GetNodeConnections($uuid: String!, $limitAuto: Int, $limitRail: Int) {
|
||||
nodeConnections(uuid: $uuid, limitAuto: $limitAuto, limitRail: $limitRail) {
|
||||
hub {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
syncedAt
|
||||
}
|
||||
railNode {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
syncedAt
|
||||
}
|
||||
autoEdges {
|
||||
toUuid
|
||||
toName
|
||||
toLatitude
|
||||
toLongitude
|
||||
distanceKm
|
||||
travelTimeSeconds
|
||||
transportType
|
||||
}
|
||||
railEdges {
|
||||
toUuid
|
||||
toName
|
||||
toLatitude
|
||||
toLongitude
|
||||
distanceKm
|
||||
travelTimeSeconds
|
||||
transportType
|
||||
}
|
||||
}
|
||||
}
|
||||
13
graphql/operations/public/geo/GetNodes.graphql
Normal file
13
graphql/operations/public/geo/GetNodes.graphql
Normal file
@@ -0,0 +1,13 @@
|
||||
query GetNodes($limit: Int, $offset: Int, $transportType: String) {
|
||||
nodes(limit: $limit, offset: $offset, transportType: $transportType) {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
syncedAt
|
||||
transportTypes
|
||||
}
|
||||
nodesCount(transportType: $transportType)
|
||||
}
|
||||
6
graphql/operations/public/geo/GetRailRoute.graphql
Normal file
6
graphql/operations/public/geo/GetRailRoute.graphql
Normal file
@@ -0,0 +1,6 @@
|
||||
query GetRailRoute($fromLat: Float!, $fromLon: Float!, $toLat: Float!, $toLon: Float!) {
|
||||
railRoute(fromLat: $fromLat, fromLon: $fromLon, toLat: $toLat, toLon: $toLon) {
|
||||
distanceKm
|
||||
geometry
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user