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)
|
||||
}
|
||||
Reference in New Issue
Block a user