Initial commit from monorepo

This commit is contained in:
Ruslan Bakiev
2026-01-07 09:10:35 +07:00
commit 3db50d9637
371 changed files with 43223 additions and 0 deletions

View 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
}
}

View 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
}
}

View 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)
}

View File

@@ -0,0 +1,9 @@
query GetProduct($uuid: String!) {
getProducts {
uuid
name
categoryId
categoryName
terminusSchemaId
}
}

View 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
}
}

View File

@@ -0,0 +1,9 @@
query GetProducts {
getProducts {
uuid
name
categoryId
categoryName
terminusSchemaId
}
}

View 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
}
}

View File

@@ -0,0 +1,13 @@
query GetSupplierProfile($uuid: String!) {
getSupplierProfile(uuid: $uuid) {
uuid
teamUuid
name
description
country
logoUrl
isVerified
isActive
offersCount
}
}

View File

@@ -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)
}

View 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
}
}
}

View 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
}
}

View 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
}
}
}

View 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
}
}
}

View 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)
}

View 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
}
}

View File

@@ -0,0 +1,8 @@
query GetTeamBalance {
teamBalance {
balance
creditsPosted
debitsPosted
exists
}
}

View File

@@ -0,0 +1,11 @@
query GetTeamTransactions($limit: Int) {
teamTransactions(limit: $limit) {
id
amount
timestamp
code
codeName
direction
counterpartyUuid
}
}

View File

@@ -0,0 +1,8 @@
mutation CreateOffer($input: OfferInput!) {
createOffer(input: $input) {
success
message
workflowId
offerUuid
}
}

View File

@@ -0,0 +1,11 @@
mutation CreateRequest($input: RequestInput!) {
createRequest(input: $input) {
request {
uuid
productUuid
quantity
sourceLocationUuid
userId
}
}
}

View File

@@ -0,0 +1,9 @@
query GetRequests($userId: String!) {
getRequests(userId: $userId) {
uuid
productUuid
quantity
sourceLocationUuid
userId
}
}

View File

@@ -0,0 +1,63 @@
query GetOrder($orderUuid: String!) {
getOrder(orderUuid: $orderUuid) {
uuid
name
status
totalAmount
currency
sourceLocationName
destinationLocationName
createdAt
notes
orderLines {
uuid
productName
quantity
unit
subtotal
}
stages {
uuid
name
stageType
transportType
sourceLocationName
sourceLatitude
sourceLongitude
destinationLocationName
destinationLatitude
destinationLongitude
locationName
locationLatitude
locationLongitude
selectedCompany {
uuid
name
taxId
country
countryCode
active
}
trips {
uuid
name
plannedLoadingDate
actualLoadingDate
plannedUnloadingDate
actualUnloadingDate
realLoadingDate
plannedWeight
weightAtLoading
weightAtUnloading
company {
uuid
name
taxId
country
countryCode
active
}
}
}
}
}

View File

@@ -0,0 +1,39 @@
query GetTeamOrders {
getTeamOrders {
uuid
name
status
totalAmount
currency
sourceLocationName
destinationLocationName
createdAt
orderLines {
uuid
productName
quantity
unit
}
stages {
uuid
name
stageType
transportType
sourceLatitude
sourceLongitude
destinationLatitude
destinationLongitude
sourceLocationName
destinationLocationName
trips {
uuid
name
plannedLoadingDate
actualLoadingDate
plannedUnloadingDate
actualUnloadingDate
realLoadingDate
}
}
}
}

View File

@@ -0,0 +1,7 @@
mutation CreateTeamAddress($input: CreateTeamAddressInput!) {
createTeamAddress(input: $input) {
success
message
workflowId
}
}

View File

@@ -0,0 +1,6 @@
mutation DeleteTeamAddress($uuid: String!) {
deleteTeamAddress(uuid: $uuid) {
success
message
}
}

View File

@@ -0,0 +1,10 @@
query GetTeam {
team {
uuid
name
selectedLocation {
type
uuid
}
}
}

View File

@@ -0,0 +1,11 @@
query GetTeamAddresses {
teamAddresses {
uuid
name
address
latitude
longitude
countryCode
isDefault
}
}

View File

@@ -0,0 +1,13 @@
query GetTeamMembers {
teamMembers {
role
joinedAt
user {
id
firstName
lastName
phone
avatarId
}
}
}

View File

@@ -0,0 +1,6 @@
mutation InviteMember($input: InviteMemberInput!) {
inviteMember(input: $input) {
success
message
}
}

View File

@@ -0,0 +1,13 @@
mutation SetSelectedLocation($input: SetSelectedLocationInput!) {
setSelectedLocation(input: $input) {
success
message
selectedLocation {
type
uuid
name
latitude
longitude
}
}
}

View File

@@ -0,0 +1,11 @@
mutation CreateKYCRequestRussia($input: KYCRequestRussiaInput!) {
createKycRequestRussia(input: $input) {
success
kycRequest {
uuid
contactEmail
createdAt
countryData
}
}
}

View File

@@ -0,0 +1,16 @@
query GetKYCRequestRussia($uuid: String!) {
kycRequest(uuid: $uuid) {
uuid
userId
teamName
countryCode
contactPerson
contactEmail
contactPhone
approvedBy
approvedAt
createdAt
updatedAt
countryData
}
}

View File

@@ -0,0 +1,16 @@
query GetKYCRequestsRussia {
kycRequests {
uuid
userId
teamName
countryCode
contactPerson
contactEmail
contactPhone
approvedBy
approvedAt
createdAt
updatedAt
countryData
}
}

View File

@@ -0,0 +1,9 @@
mutation CreateTeam($input: CreateTeamInput!) {
createTeam(input: $input) {
team {
id
name
teamType
}
}
}

View File

@@ -0,0 +1,27 @@
query GetMe {
me {
id
firstName
lastName
activeTeamId
activeTeam {
id
name
logtoOrgId
teamType
selectedLocation {
type
uuid
name
latitude
longitude
}
}
teams {
id
name
logtoOrgId
teamType
}
}
}

View File

@@ -0,0 +1,14 @@
query GetMeProfile {
me {
id
firstName
lastName
phone
avatarId
activeTeamId
activeTeam {
id
name
}
}
}

View File

@@ -0,0 +1,22 @@
query GetTeam($teamId: String!) {
getTeam(teamId: $teamId) {
id
name
members {
user {
id
firstName
lastName
}
role
joinedAt
}
invitations {
uuid
email
role
status
createdAt
}
}
}

View File

@@ -0,0 +1,14 @@
mutation SwitchTeam($teamId: String!) {
switchTeam(teamId: $teamId) {
user {
id
firstName
lastName
activeTeamId
activeTeam {
id
name
}
}
}
}

View File

@@ -0,0 +1,16 @@
mutation UpdateUser($userId: String!, $input: UpdateUserInput!) {
updateUser(userId: $userId, input: $input) {
user {
id
firstName
lastName
phone
avatarId
activeTeamId
activeTeam {
id
name
}
}
}
}