Fix geo GraphQL schema mismatch: camelCase → snake_case
All checks were successful
Build Docker Image / build (push) Successful in 5m46s
All checks were successful
Build Docker Image / build (push) Successful in 5m46s
All geo .graphql operations and consuming code updated to match server schema which uses snake_case field/argument names. Removed non-existent QuoteCalculations query, using NearestOffers instead.
This commit is contained in:
@@ -85,7 +85,7 @@ interface RoutePathType {
|
|||||||
stages?: (RouteStage | null)[]
|
stages?: (RouteStage | null)[]
|
||||||
}
|
}
|
||||||
import { GetOfferDocument, GetSupplierProfileByTeamDocument, type GetOfferQueryResult, type GetSupplierProfileByTeamQueryResult } from '~/composables/graphql/public/exchange-generated'
|
import { GetOfferDocument, GetSupplierProfileByTeamDocument, type GetOfferQueryResult, type GetSupplierProfileByTeamQueryResult } from '~/composables/graphql/public/exchange-generated'
|
||||||
import type { OfferWithRouteType, RouteStageType } from '~/composables/graphql/public/geo-generated'
|
import type { OfferWithRoute, RouteStage } from '~/composables/graphql/public/geo-generated'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const localePath = useLocalePath()
|
const localePath = useLocalePath()
|
||||||
@@ -152,17 +152,17 @@ const fetchOffersByHub = async () => {
|
|||||||
'geo'
|
'geo'
|
||||||
)
|
)
|
||||||
|
|
||||||
const offers = offersResponse?.nearestOffers || []
|
const offers = offersResponse?.nearest_offers || []
|
||||||
|
|
||||||
// Offers already include routes from backend
|
// Offers already include routes from backend
|
||||||
const offersWithRoutes = offers
|
const offersWithRoutes = offers
|
||||||
.filter((offer): offer is NonNullable<OfferWithRouteType> => offer !== null)
|
.filter((offer): offer is NonNullable<OfferWithRoute> => offer !== null)
|
||||||
.map((offer) => ({
|
.map((offer) => ({
|
||||||
sourceUuid: offer.uuid,
|
sourceUuid: offer.uuid,
|
||||||
sourceName: offer.productName,
|
sourceName: offer.product_name,
|
||||||
sourceLat: offer.latitude,
|
sourceLat: offer.latitude,
|
||||||
sourceLon: offer.longitude,
|
sourceLon: offer.longitude,
|
||||||
distanceKm: offer.distanceKm,
|
distanceKm: offer.distance_km,
|
||||||
routes: offer.routes || []
|
routes: offer.routes || []
|
||||||
}))
|
}))
|
||||||
|
|
||||||
@@ -207,12 +207,12 @@ const getRouteStages = (option: ProductRouteOption) => {
|
|||||||
const route = option.routes?.[0]
|
const route = option.routes?.[0]
|
||||||
if (!route?.stages) return []
|
if (!route?.stages) return []
|
||||||
return route.stages
|
return route.stages
|
||||||
.filter((stage): stage is NonNullable<RouteStageType> => stage !== null)
|
.filter((stage): stage is NonNullable<RouteStage> => stage !== null)
|
||||||
.map((stage) => ({
|
.map((stage) => ({
|
||||||
transportType: stage.transportType,
|
transportType: stage.transport_type,
|
||||||
distanceKm: stage.distanceKm,
|
distanceKm: stage.distance_km,
|
||||||
travelTimeSeconds: stage.travelTimeSeconds,
|
travelTimeSeconds: stage.travel_time_seconds,
|
||||||
fromName: stage.fromName
|
fromName: stage.from_name
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { HubsListDocument, type HubsListQueryResult } from '~/composables/graphql/public/geo-generated'
|
import { HubsListDocument, type HubsListQueryResult } from '~/composables/graphql/public/geo-generated'
|
||||||
|
|
||||||
type HubItem = NonNullable<NonNullable<HubsListQueryResult['hubsList']>[number]>
|
type HubItem = NonNullable<NonNullable<HubsListQueryResult['hubs_list']>[number]>
|
||||||
type HubWithDistance = HubItem & { distance?: string }
|
type HubWithDistance = HubItem & { distance?: string }
|
||||||
|
|
||||||
interface TeamAddress {
|
interface TeamAddress {
|
||||||
@@ -96,7 +96,7 @@ const calculateDistance = (lat: number, lng: number) => {
|
|||||||
// Load logistics hubs
|
// Load logistics hubs
|
||||||
const { data: locationsDataRaw, pending, error, refresh } = await useServerQuery('locations', HubsListDocument, { limit: 100 }, 'public', 'geo')
|
const { data: locationsDataRaw, pending, error, refresh } = await useServerQuery('locations', HubsListDocument, { limit: 100 }, 'public', 'geo')
|
||||||
const locationsData = computed<HubWithDistance[]>(() => {
|
const locationsData = computed<HubWithDistance[]>(() => {
|
||||||
return (locationsDataRaw.value?.hubsList || [])
|
return (locationsDataRaw.value?.hubs_list || [])
|
||||||
.filter((location): location is HubItem => location !== null)
|
.filter((location): location is HubItem => location !== null)
|
||||||
.map((location) => ({
|
.map((location) => ({
|
||||||
...location,
|
...location,
|
||||||
|
|||||||
@@ -39,8 +39,8 @@
|
|||||||
<Stack v-if="autoEdges.length > 0" gap="2">
|
<Stack v-if="autoEdges.length > 0" gap="2">
|
||||||
<NuxtLink
|
<NuxtLink
|
||||||
v-for="(edge, index) in autoEdges"
|
v-for="(edge, index) in autoEdges"
|
||||||
:key="edge.toUuid ?? index"
|
:key="edge.to_uuid ?? index"
|
||||||
:to="localePath(`/catalog/hubs/${edge.toUuid}`)"
|
:to="localePath(`/catalog/hubs/${edge.to_uuid}`)"
|
||||||
class="flex flex-col gap-2 p-3 rounded-lg border border-base-300 hover:bg-base-200 transition-colors"
|
class="flex flex-col gap-2 p-3 rounded-lg border border-base-300 hover:bg-base-200 transition-colors"
|
||||||
>
|
>
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
@@ -49,11 +49,11 @@
|
|||||||
<Icon name="lucide:map-pin" size="16" class="text-primary" />
|
<Icon name="lucide:map-pin" size="16" class="text-primary" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="font-medium">{{ edge.toName }}</div>
|
<div class="font-medium">{{ edge.to_name }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<div class="font-semibold text-primary">{{ edge.distanceKm }} km</div>
|
<div class="font-semibold text-primary">{{ edge.distance_km }} km</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
@@ -71,8 +71,8 @@
|
|||||||
<Stack v-if="railEdges.length > 0" gap="2">
|
<Stack v-if="railEdges.length > 0" gap="2">
|
||||||
<NuxtLink
|
<NuxtLink
|
||||||
v-for="(edge, index) in railEdges"
|
v-for="(edge, index) in railEdges"
|
||||||
:key="edge.toUuid ?? index"
|
:key="edge.to_uuid ?? index"
|
||||||
:to="localePath(`/catalog/hubs/${edge.toUuid}`)"
|
:to="localePath(`/catalog/hubs/${edge.to_uuid}`)"
|
||||||
class="flex flex-col gap-2 p-3 rounded-lg border border-base-300 hover:bg-base-200 transition-colors"
|
class="flex flex-col gap-2 p-3 rounded-lg border border-base-300 hover:bg-base-200 transition-colors"
|
||||||
>
|
>
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
@@ -81,11 +81,11 @@
|
|||||||
<Icon name="lucide:map-pin" size="16" class="text-emerald-500" />
|
<Icon name="lucide:map-pin" size="16" class="text-emerald-500" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="font-medium">{{ edge.toName }}</div>
|
<div class="font-medium">{{ edge.to_name }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<div class="font-semibold text-emerald-600">{{ edge.distanceKm }} km</div>
|
<div class="font-semibold text-emerald-600">{{ edge.distance_km }} km</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { Map as MapboxMapType } from 'mapbox-gl'
|
import type { Map as MapboxMapType } from 'mapbox-gl'
|
||||||
import { LngLatBounds, Popup } from 'mapbox-gl'
|
import { LngLatBounds, Popup } from 'mapbox-gl'
|
||||||
import type { EdgeType } from '~/composables/graphql/public/geo-generated'
|
import type { Edge } from '~/composables/graphql/public/geo-generated'
|
||||||
|
|
||||||
interface CurrentHub {
|
interface CurrentHub {
|
||||||
uuid: string
|
uuid: string
|
||||||
@@ -119,8 +119,8 @@ interface RouteGeometry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
autoEdges: EdgeType[]
|
autoEdges: Edge[]
|
||||||
railEdges: EdgeType[]
|
railEdges: Edge[]
|
||||||
hub: CurrentHub
|
hub: CurrentHub
|
||||||
railHub: CurrentHub
|
railHub: CurrentHub
|
||||||
autoRouteGeometries: RouteGeometry[]
|
autoRouteGeometries: RouteGeometry[]
|
||||||
@@ -147,8 +147,8 @@ const mapCenter = computed<[number, number]>(() => {
|
|||||||
|
|
||||||
const allEdges = [...props.autoEdges, ...props.railEdges]
|
const allEdges = [...props.autoEdges, ...props.railEdges]
|
||||||
allEdges.forEach((edge) => {
|
allEdges.forEach((edge) => {
|
||||||
if (edge.toLatitude && edge.toLongitude) {
|
if (edge.to_latitude && edge.to_longitude) {
|
||||||
points.push([edge.toLongitude, edge.toLatitude])
|
points.push([edge.to_longitude, edge.to_latitude])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@ const mapCenter = computed<[number, number]>(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const mapZoom = computed(() => {
|
const mapZoom = computed(() => {
|
||||||
const distances = [...props.autoEdges, ...props.railEdges].map(e => e.distanceKm || 0)
|
const distances = [...props.autoEdges, ...props.railEdges].map(e => e.distance_km || 0)
|
||||||
if (distances.length === 0) return 5
|
if (distances.length === 0) return 5
|
||||||
|
|
||||||
const maxDistance = Math.max(...distances)
|
const maxDistance = Math.max(...distances)
|
||||||
@@ -190,21 +190,21 @@ const buildRouteFeatureCollection = (routes: RouteGeometry[], transportType: 'au
|
|||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
|
|
||||||
const buildNeighborsFeatureCollection = (edges: EdgeType[], transportType: 'auto' | 'rail') => ({
|
const buildNeighborsFeatureCollection = (edges: Edge[], transportType: 'auto' | 'rail') => ({
|
||||||
type: 'FeatureCollection' as const,
|
type: 'FeatureCollection' as const,
|
||||||
features: edges
|
features: edges
|
||||||
.filter(e => e.toLatitude && e.toLongitude)
|
.filter(e => e.to_latitude && e.to_longitude)
|
||||||
.map(edge => ({
|
.map(edge => ({
|
||||||
type: 'Feature' as const,
|
type: 'Feature' as const,
|
||||||
properties: {
|
properties: {
|
||||||
uuid: edge.toUuid,
|
uuid: edge.to_uuid,
|
||||||
name: edge.toName,
|
name: edge.to_name,
|
||||||
distanceKm: edge.distanceKm,
|
distanceKm: edge.distance_km,
|
||||||
transportType
|
transportType
|
||||||
},
|
},
|
||||||
geometry: {
|
geometry: {
|
||||||
type: 'Point' as const,
|
type: 'Point' as const,
|
||||||
coordinates: [edge.toLongitude!, edge.toLatitude!]
|
coordinates: [edge.to_longitude!, edge.to_latitude!]
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -38,8 +38,8 @@
|
|||||||
<Stack gap="2">
|
<Stack gap="2">
|
||||||
<NuxtLink
|
<NuxtLink
|
||||||
v-for="(edge, index) in edges"
|
v-for="(edge, index) in edges"
|
||||||
:key="edge.toUuid ?? index"
|
:key="edge.to_uuid ?? index"
|
||||||
:to="localePath(`/catalog/hubs/${edge.toUuid}`)"
|
:to="localePath(`/catalog/hubs/${edge.to_uuid}`)"
|
||||||
class="flex flex-col gap-2 p-3 rounded-lg border border-base-300 hover:bg-base-200 transition-colors"
|
class="flex flex-col gap-2 p-3 rounded-lg border border-base-300 hover:bg-base-200 transition-colors"
|
||||||
>
|
>
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
@@ -48,11 +48,11 @@
|
|||||||
<Icon name="lucide:map-pin" size="16" class="text-primary" />
|
<Icon name="lucide:map-pin" size="16" class="text-primary" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="font-medium">{{ edge.toName }}</div>
|
<div class="font-medium">{{ edge.to_name }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<div class="font-semibold text-primary">{{ edge.distanceKm }} km</div>
|
<div class="font-semibold text-primary">{{ edge.distance_km }} km</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { Map as MapboxMapType } from 'mapbox-gl'
|
import type { Map as MapboxMapType } from 'mapbox-gl'
|
||||||
import { LngLatBounds, Popup } from 'mapbox-gl'
|
import { LngLatBounds, Popup } from 'mapbox-gl'
|
||||||
import type { EdgeType } from '~/composables/graphql/public/geo-generated'
|
import type { Edge } from '~/composables/graphql/public/geo-generated'
|
||||||
|
|
||||||
interface CurrentHub {
|
interface CurrentHub {
|
||||||
uuid: string
|
uuid: string
|
||||||
@@ -81,7 +81,7 @@ interface RouteGeometry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
edges: EdgeType[]
|
edges: Edge[]
|
||||||
currentHub: CurrentHub
|
currentHub: CurrentHub
|
||||||
routeGeometries: RouteGeometry[]
|
routeGeometries: RouteGeometry[]
|
||||||
transportType: 'auto' | 'rail'
|
transportType: 'auto' | 'rail'
|
||||||
@@ -124,8 +124,8 @@ const mapCenter = computed<[number, number]>(() => {
|
|||||||
return [0, 0]
|
return [0, 0]
|
||||||
}
|
}
|
||||||
|
|
||||||
const allLats = [props.currentHub.latitude, ...props.edges.map(e => e.toLatitude!).filter(Boolean)]
|
const allLats = [props.currentHub.latitude, ...props.edges.map(e => e.to_latitude!).filter(Boolean)]
|
||||||
const allLngs = [props.currentHub.longitude, ...props.edges.map(e => e.toLongitude!).filter(Boolean)]
|
const allLngs = [props.currentHub.longitude, ...props.edges.map(e => e.to_longitude!).filter(Boolean)]
|
||||||
|
|
||||||
const avgLng = allLngs.reduce((a, b) => a + b, 0) / allLngs.length
|
const avgLng = allLngs.reduce((a, b) => a + b, 0) / allLngs.length
|
||||||
const avgLat = allLats.reduce((a, b) => a + b, 0) / allLats.length
|
const avgLat = allLats.reduce((a, b) => a + b, 0) / allLats.length
|
||||||
@@ -166,16 +166,16 @@ const buildRouteFeatureCollection = () => ({
|
|||||||
|
|
||||||
const buildNeighborsFeatureCollection = () => ({
|
const buildNeighborsFeatureCollection = () => ({
|
||||||
type: 'FeatureCollection' as const,
|
type: 'FeatureCollection' as const,
|
||||||
features: props.edges.filter(e => e.toLatitude && e.toLongitude).map(edge => ({
|
features: props.edges.filter(e => e.to_latitude && e.to_longitude).map(edge => ({
|
||||||
type: 'Feature' as const,
|
type: 'Feature' as const,
|
||||||
properties: {
|
properties: {
|
||||||
uuid: edge.toUuid,
|
uuid: edge.to_uuid,
|
||||||
name: edge.toName,
|
name: edge.to_name,
|
||||||
distanceKm: edge.distanceKm
|
distanceKm: edge.distance_km
|
||||||
},
|
},
|
||||||
geometry: {
|
geometry: {
|
||||||
type: 'Point' as const,
|
type: 'Point' as const,
|
||||||
coordinates: [edge.toLongitude!, edge.toLatitude!]
|
coordinates: [edge.to_longitude!, edge.to_latitude!]
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ const fetchRouteGeometry = async (stage: RouteStage): Promise<[number, number][]
|
|||||||
if (stage.transportType === 'auto' || stage.transportType === 'rail') {
|
if (stage.transportType === 'auto' || stage.transportType === 'rail') {
|
||||||
try {
|
try {
|
||||||
const RouteDocument = stage.transportType === 'auto' ? GetAutoRouteDocument : GetRailRouteDocument
|
const RouteDocument = stage.transportType === 'auto' ? GetAutoRouteDocument : GetRailRouteDocument
|
||||||
const routeField = stage.transportType === 'auto' ? 'autoRoute' : 'railRoute'
|
const routeField = stage.transportType === 'auto' ? 'auto_route' : 'rail_route'
|
||||||
|
|
||||||
const routeData = await execute(RouteDocument, {
|
const routeData = await execute(RouteDocument, {
|
||||||
fromLat: stage.fromLat,
|
fromLat: stage.fromLat,
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ const fetchStageGeometry = async (stage: RouteStage, routeIndex: number, stageIn
|
|||||||
if (stage.transportType === 'auto' || stage.transportType === 'rail') {
|
if (stage.transportType === 'auto' || stage.transportType === 'rail') {
|
||||||
try {
|
try {
|
||||||
const RouteDocument = stage.transportType === 'auto' ? GetAutoRouteDocument : GetRailRouteDocument
|
const RouteDocument = stage.transportType === 'auto' ? GetAutoRouteDocument : GetRailRouteDocument
|
||||||
const routeField = stage.transportType === 'auto' ? 'autoRoute' : 'railRoute'
|
const routeField = stage.transportType === 'auto' ? 'auto_route' : 'rail_route'
|
||||||
|
|
||||||
const routeData = await execute(RouteDocument, { fromLat, fromLon, toLat, toLon }, 'public', 'geo') as Record<string, any>
|
const routeData = await execute(RouteDocument, { fromLat, fromLon, toLat, toLon }, 'public', 'geo') as Record<string, any>
|
||||||
const geometry = routeData?.[routeField]?.geometry
|
const geometry = routeData?.[routeField]?.geometry
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { Map as MapboxMapType } from 'mapbox-gl'
|
import type { Map as MapboxMapType } from 'mapbox-gl'
|
||||||
import { LngLatBounds } from 'mapbox-gl'
|
import { LngLatBounds } from 'mapbox-gl'
|
||||||
import type { ClusterPointType } from '~/composables/graphql/public/geo-generated'
|
import type { ClusterPoint } from '~/composables/graphql/public/geo-generated'
|
||||||
|
|
||||||
interface MapItem {
|
interface MapItem {
|
||||||
uuid?: string | null
|
uuid?: string | null
|
||||||
@@ -43,8 +43,8 @@ interface HoveredItem {
|
|||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
mapId: string
|
mapId: string
|
||||||
items?: MapItem[]
|
items?: MapItem[]
|
||||||
clusteredPoints?: ClusterPointType[]
|
clusteredPoints?: ClusterPoint[]
|
||||||
clusteredPointsByType?: Partial<Record<'offer' | 'hub' | 'supplier', ClusterPointType[]>>
|
clusteredPointsByType?: Partial<Record<'offer' | 'hub' | 'supplier', ClusterPoint[]>>
|
||||||
useServerClustering?: boolean
|
useServerClustering?: boolean
|
||||||
hoveredItemId?: string | null
|
hoveredItemId?: string | null
|
||||||
hoveredItem?: HoveredItem | null
|
hoveredItem?: HoveredItem | null
|
||||||
@@ -227,7 +227,7 @@ const serverClusteredGeoJson = computed(() => ({
|
|||||||
id: point!.id,
|
id: point!.id,
|
||||||
name: point!.name,
|
name: point!.name,
|
||||||
count: point!.count ?? 1,
|
count: point!.count ?? 1,
|
||||||
expansionZoom: point!.expansionZoom,
|
expansionZoom: point!.expansion_zoom,
|
||||||
isCluster: (point!.count ?? 1) > 1
|
isCluster: (point!.count ?? 1) > 1
|
||||||
},
|
},
|
||||||
geometry: {
|
geometry: {
|
||||||
@@ -238,7 +238,7 @@ const serverClusteredGeoJson = computed(() => ({
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
const serverClusteredGeoJsonByType = computed(() => {
|
const serverClusteredGeoJsonByType = computed(() => {
|
||||||
const build = (points: ClusterPointType[] | undefined, type: 'offer' | 'hub' | 'supplier') => ({
|
const build = (points: ClusterPoint[] | undefined, type: 'offer' | 'hub' | 'supplier') => ({
|
||||||
type: 'FeatureCollection' as const,
|
type: 'FeatureCollection' as const,
|
||||||
features: (points || []).filter(Boolean).map(point => ({
|
features: (points || []).filter(Boolean).map(point => ({
|
||||||
type: 'Feature' as const,
|
type: 'Feature' as const,
|
||||||
@@ -246,7 +246,7 @@ const serverClusteredGeoJsonByType = computed(() => {
|
|||||||
id: point!.id,
|
id: point!.id,
|
||||||
name: point!.name,
|
name: point!.name,
|
||||||
count: point!.count ?? 1,
|
count: point!.count ?? 1,
|
||||||
expansionZoom: point!.expansionZoom,
|
expansionZoom: point!.expansion_zoom,
|
||||||
isCluster: (point!.count ?? 1) > 1,
|
isCluster: (point!.count ?? 1) > 1,
|
||||||
type
|
type
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
<!-- Transport icons bottom -->
|
<!-- Transport icons bottom -->
|
||||||
<div v-if="hub.transportTypes?.length" class="flex items-center gap-1 pt-1">
|
<div v-if="hub.transport_types?.length" class="flex items-center gap-1 pt-1">
|
||||||
<Icon v-if="hasTransport('auto')" name="lucide:truck" size="14" class="text-base-content/50" />
|
<Icon v-if="hasTransport('auto')" name="lucide:truck" size="14" class="text-base-content/50" />
|
||||||
<Icon v-if="hasTransport('rail')" name="lucide:train-front" size="14" class="text-base-content/50" />
|
<Icon v-if="hasTransport('rail')" name="lucide:train-front" size="14" class="text-base-content/50" />
|
||||||
<Icon v-if="hasTransport('sea')" name="lucide:ship" size="14" class="text-base-content/50" />
|
<Icon v-if="hasTransport('sea')" name="lucide:ship" size="14" class="text-base-content/50" />
|
||||||
@@ -58,12 +58,12 @@ interface Hub {
|
|||||||
uuid?: string | null
|
uuid?: string | null
|
||||||
name?: string | null
|
name?: string | null
|
||||||
country?: string | null
|
country?: string | null
|
||||||
countryCode?: string | null
|
country_code?: string | null
|
||||||
latitude?: number | null
|
latitude?: number | null
|
||||||
longitude?: number | null
|
longitude?: number | null
|
||||||
distance?: string
|
distance?: string
|
||||||
distanceKm?: number | null
|
distance_km?: number | null
|
||||||
transportTypes?: (string | null)[] | null
|
transport_types?: (string | null)[] | null
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
@@ -91,16 +91,16 @@ const isoToEmoji = (code: string): string => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const countryFlag = computed(() => {
|
const countryFlag = computed(() => {
|
||||||
if (props.hub.countryCode) {
|
if (props.hub.country_code) {
|
||||||
return isoToEmoji(props.hub.countryCode)
|
return isoToEmoji(props.hub.country_code)
|
||||||
}
|
}
|
||||||
return '🌍'
|
return '🌍'
|
||||||
})
|
})
|
||||||
|
|
||||||
const hasTransport = (type: string) => props.hub.transportTypes?.some(t => t === type)
|
const hasTransport = (type: string) => props.hub.transport_types?.some(t => t === type)
|
||||||
const distanceLabel = computed(() => {
|
const distanceLabel = computed(() => {
|
||||||
if (props.hub.distance) return props.hub.distance
|
if (props.hub.distance) return props.hub.distance
|
||||||
if (props.hub.distanceKm != null) return `${Math.round(props.hub.distanceKm)} km`
|
if (props.hub.distance_km != null) return `${Math.round(props.hub.distance_km)} km`
|
||||||
return ''
|
return ''
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -172,14 +172,14 @@
|
|||||||
v-for="(offer, index) in offersWithPrice"
|
v-for="(offer, index) in offersWithPrice"
|
||||||
:key="offer.uuid ?? index"
|
:key="offer.uuid ?? index"
|
||||||
:supplier-name="getOfferSupplierName(offer)"
|
:supplier-name="getOfferSupplierName(offer)"
|
||||||
:location-name="offer.locationName || offer.locationCountry || offer.country || offer.locationName"
|
:location-name="offer.country || ''"
|
||||||
:product-name="offer.productName"
|
:product-name="offer.product_name"
|
||||||
:price-per-unit="offer.pricePerUnit ? Number(offer.pricePerUnit) : null"
|
:price-per-unit="offer.price_per_unit ? Number(offer.price_per_unit) : null"
|
||||||
:quantity="offer.quantity"
|
:quantity="offer.quantity"
|
||||||
:currency="offer.currency"
|
:currency="offer.currency"
|
||||||
:unit="offer.unit"
|
:unit="offer.unit"
|
||||||
:stages="getOfferStages(offer)"
|
:stages="getOfferStages(offer)"
|
||||||
:total-time-seconds="offer.routes?.[0]?.totalTimeSeconds ?? null"
|
:total-time-seconds="offer.routes?.[0]?.total_time_seconds ?? null"
|
||||||
@select="onOfferSelect(offer)"
|
@select="onOfferSelect(offer)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -315,7 +315,7 @@ import type {
|
|||||||
InfoSupplierItem,
|
InfoSupplierItem,
|
||||||
InfoOfferItem
|
InfoOfferItem
|
||||||
} from '~/composables/useCatalogInfo'
|
} from '~/composables/useCatalogInfo'
|
||||||
import type { RouteStageType } from '~/composables/graphql/public/geo-generated'
|
import type { RouteStage } from '~/composables/graphql/public/geo-generated'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
entityType: InfoEntityType
|
entityType: InfoEntityType
|
||||||
@@ -353,7 +353,7 @@ const relatedHubs = computed(() => props.relatedHubs ?? [])
|
|||||||
const relatedSuppliers = computed(() => props.relatedSuppliers ?? [])
|
const relatedSuppliers = computed(() => props.relatedSuppliers ?? [])
|
||||||
const relatedOffers = computed(() => props.relatedOffers ?? [])
|
const relatedOffers = computed(() => props.relatedOffers ?? [])
|
||||||
const offersWithPrice = computed(() =>
|
const offersWithPrice = computed(() =>
|
||||||
relatedOffers.value.filter(o => o?.pricePerUnit != null)
|
relatedOffers.value.filter(o => o?.price_per_unit != null)
|
||||||
)
|
)
|
||||||
|
|
||||||
const suppliersByUuid = computed(() => {
|
const suppliersByUuid = computed(() => {
|
||||||
@@ -370,9 +370,9 @@ const suppliersByUuid = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const getOfferSupplierName = (offer: InfoOfferItem) => {
|
const getOfferSupplierName = (offer: InfoOfferItem) => {
|
||||||
if (offer.supplierName) return offer.supplierName
|
if (offer.supplier_name) return offer.supplier_name
|
||||||
if (offer.supplierUuid && suppliersByUuid.value.has(offer.supplierUuid)) {
|
if (offer.supplier_uuid && suppliersByUuid.value.has(offer.supplier_uuid)) {
|
||||||
return suppliersByUuid.value.get(offer.supplierUuid)
|
return suppliersByUuid.value.get(offer.supplier_uuid)
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
@@ -441,11 +441,11 @@ const formatPrice = (price: number | string) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const railHubs = computed(() =>
|
const railHubs = computed(() =>
|
||||||
relatedHubs.value.filter(h => h.transportTypes?.includes('rail'))
|
relatedHubs.value.filter(h => h.transport_types?.includes('rail'))
|
||||||
)
|
)
|
||||||
|
|
||||||
const seaHubs = computed(() =>
|
const seaHubs = computed(() =>
|
||||||
relatedHubs.value.filter(h => h.transportTypes?.includes('sea'))
|
relatedHubs.value.filter(h => h.transport_types?.includes('sea'))
|
||||||
)
|
)
|
||||||
|
|
||||||
// Mock KYC teaser data (will be replaced with real data later)
|
// Mock KYC teaser data (will be replaced with real data later)
|
||||||
@@ -473,7 +473,7 @@ const onProductSelect = (product: InfoProductItem) => {
|
|||||||
|
|
||||||
const onOfferSelect = (offer: InfoOfferItem) => {
|
const onOfferSelect = (offer: InfoOfferItem) => {
|
||||||
if (offer.uuid) {
|
if (offer.uuid) {
|
||||||
emit('select-offer', { uuid: offer.uuid, productUuid: offer.productUuid })
|
emit('select-offer', { uuid: offer.uuid, productUuid: offer.product_uuid })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -493,12 +493,12 @@ const getOfferStages = (offer: InfoOfferItem) => {
|
|||||||
const route = offer.routes?.[0]
|
const route = offer.routes?.[0]
|
||||||
if (!route?.stages) return []
|
if (!route?.stages) return []
|
||||||
return route.stages
|
return route.stages
|
||||||
.filter((stage): stage is NonNullable<RouteStageType> => stage !== null)
|
.filter((stage): stage is NonNullable<RouteStage> => stage !== null)
|
||||||
.map(stage => ({
|
.map(stage => ({
|
||||||
transportType: stage.transportType,
|
transportType: stage.transport_type,
|
||||||
distanceKm: stage.distanceKm,
|
distanceKm: stage.distance_km,
|
||||||
travelTimeSeconds: stage.travelTimeSeconds,
|
travelTimeSeconds: stage.travel_time_seconds,
|
||||||
fromName: stage.fromName
|
fromName: stage.from_name
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -37,15 +37,15 @@
|
|||||||
>
|
>
|
||||||
<OfferResultCard
|
<OfferResultCard
|
||||||
grouped
|
grouped
|
||||||
:supplier-name="offer.supplierName"
|
:supplier-name="offer.supplier_name"
|
||||||
:location-name="offer.locationName || offer.locationCountry"
|
:location-name="offer.country || ''"
|
||||||
:product-name="offer.productName"
|
:product-name="offer.product_name"
|
||||||
:price-per-unit="offer.pricePerUnit ? Number(offer.pricePerUnit) : null"
|
:price-per-unit="offer.price_per_unit ? Number(offer.price_per_unit) : null"
|
||||||
:quantity="offer.quantity"
|
:quantity="offer.quantity"
|
||||||
:currency="offer.currency"
|
:currency="offer.currency"
|
||||||
:unit="offer.unit"
|
:unit="offer.unit"
|
||||||
:stages="getOfferStages(offer)"
|
:stages="getOfferStages(offer)"
|
||||||
:total-time-seconds="offer.routes?.[0]?.totalTimeSeconds ?? null"
|
:total-time-seconds="offer.routes?.[0]?.total_time_seconds ?? null"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -58,15 +58,15 @@
|
|||||||
@click="emit('select-offer', offer)"
|
@click="emit('select-offer', offer)"
|
||||||
>
|
>
|
||||||
<OfferResultCard
|
<OfferResultCard
|
||||||
:supplier-name="offer.supplierName"
|
:supplier-name="offer.supplier_name"
|
||||||
:location-name="offer.locationName || offer.locationCountry"
|
:location-name="offer.country || ''"
|
||||||
:product-name="offer.productName"
|
:product-name="offer.product_name"
|
||||||
:price-per-unit="offer.pricePerUnit ? Number(offer.pricePerUnit) : null"
|
:price-per-unit="offer.price_per_unit ? Number(offer.price_per_unit) : null"
|
||||||
:quantity="offer.quantity"
|
:quantity="offer.quantity"
|
||||||
:currency="offer.currency"
|
:currency="offer.currency"
|
||||||
:unit="offer.unit"
|
:unit="offer.unit"
|
||||||
:stages="getOfferStages(offer)"
|
:stages="getOfferStages(offer)"
|
||||||
:total-time-seconds="offer.routes?.[0]?.totalTimeSeconds ?? null"
|
:total-time-seconds="offer.routes?.[0]?.total_time_seconds ?? null"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -78,24 +78,23 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
interface Offer {
|
interface Offer {
|
||||||
uuid: string
|
uuid: string
|
||||||
productName?: string | null
|
product_name?: string | null
|
||||||
productUuid?: string | null
|
product_uuid?: string | null
|
||||||
supplierName?: string | null
|
supplier_name?: string | null
|
||||||
supplierUuid?: string | null
|
supplier_uuid?: string | null
|
||||||
quantity?: number | string | null
|
quantity?: number | string | null
|
||||||
unit?: string | null
|
unit?: string | null
|
||||||
pricePerUnit?: number | string | null
|
price_per_unit?: number | string | null
|
||||||
currency?: string | null
|
currency?: string | null
|
||||||
locationName?: string | null
|
country?: string | null
|
||||||
locationCountry?: string | null
|
country_code?: string | null
|
||||||
locationCountryCode?: string | null
|
|
||||||
routes?: Array<{
|
routes?: Array<{
|
||||||
totalTimeSeconds?: number | null
|
total_time_seconds?: number | null
|
||||||
stages?: Array<{
|
stages?: Array<{
|
||||||
transportType?: string | null
|
transport_type?: string | null
|
||||||
distanceKm?: number | null
|
distance_km?: number | null
|
||||||
travelTimeSeconds?: number | null
|
travel_time_seconds?: number | null
|
||||||
fromName?: string | null
|
from_name?: string | null
|
||||||
} | null> | null
|
} | null> | null
|
||||||
} | null> | null
|
} | null> | null
|
||||||
}
|
}
|
||||||
@@ -116,7 +115,7 @@ const props = defineProps<{
|
|||||||
}>()
|
}>()
|
||||||
|
|
||||||
const offersWithPrice = computed(() =>
|
const offersWithPrice = computed(() =>
|
||||||
(props.offers || []).filter(o => o?.pricePerUnit != null)
|
(props.offers || []).filter(o => o?.price_per_unit != null)
|
||||||
)
|
)
|
||||||
|
|
||||||
const totalOffers = computed(() => {
|
const totalOffers = computed(() => {
|
||||||
@@ -140,10 +139,10 @@ const getOfferStages = (offer: Offer) => {
|
|||||||
return route.stages
|
return route.stages
|
||||||
.filter((stage): stage is NonNullable<typeof stage> => stage !== null)
|
.filter((stage): stage is NonNullable<typeof stage> => stage !== null)
|
||||||
.map((stage) => ({
|
.map((stage) => ({
|
||||||
transportType: stage.transportType,
|
transportType: stage.transport_type,
|
||||||
distanceKm: stage.distanceKm,
|
distanceKm: stage.distance_km,
|
||||||
travelTimeSeconds: stage.travelTimeSeconds,
|
travelTimeSeconds: stage.travel_time_seconds,
|
||||||
fromName: stage.fromName
|
fromName: stage.from_name
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -336,15 +336,12 @@ const clusterSupplierUuid = computed(() => props.clusterSupplierUuid ?? undefine
|
|||||||
const { clusteredNodes, fetchClusters, loading: singleClusterLoading, clearNodes } = useClusteredNodes(
|
const { clusteredNodes, fetchClusters, loading: singleClusterLoading, clearNodes } = useClusteredNodes(
|
||||||
undefined,
|
undefined,
|
||||||
activeClusterNodeType,
|
activeClusterNodeType,
|
||||||
clusterProductUuid,
|
|
||||||
clusterHubUuid,
|
|
||||||
clusterSupplierUuid
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server-side clustering (typed mode)
|
// Server-side clustering (typed mode)
|
||||||
const offerClusters = useClusteredNodes(undefined, ref('offer'), clusterProductUuid, clusterHubUuid, clusterSupplierUuid)
|
const offerClusters = useClusteredNodes(undefined, ref('offer'))
|
||||||
const hubClusters = useClusteredNodes(undefined, ref('logistics'), clusterProductUuid, clusterHubUuid, clusterSupplierUuid)
|
const hubClusters = useClusteredNodes(undefined, ref('logistics'))
|
||||||
const supplierClusters = useClusteredNodes(undefined, ref('supplier'), clusterProductUuid, clusterHubUuid, clusterSupplierUuid)
|
const supplierClusters = useClusteredNodes(undefined, ref('supplier'))
|
||||||
|
|
||||||
const clusteredPointsByType = computed(() => ({
|
const clusteredPointsByType = computed(() => ({
|
||||||
offer: offerClusters.clusteredNodes.value,
|
offer: offerClusters.clusteredNodes.value,
|
||||||
|
|||||||
@@ -13,96 +13,61 @@ export type Scalars = {
|
|||||||
Boolean: { input: boolean; output: boolean; }
|
Boolean: { input: boolean; output: boolean; }
|
||||||
Int: { input: number; output: number; }
|
Int: { input: number; output: number; }
|
||||||
Float: { input: number; output: number; }
|
Float: { input: number; output: number; }
|
||||||
Date: { input: string; output: string; }
|
|
||||||
DateTime: { input: string; output: string; }
|
|
||||||
Decimal: { input: string; output: string; }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type OfferType = {
|
export type Offer = {
|
||||||
__typename?: 'OfferType';
|
__typename?: 'Offer';
|
||||||
categoryName: Scalars['String']['output'];
|
categoryName?: Maybe<Scalars['String']['output']>;
|
||||||
createdAt: Scalars['DateTime']['output'];
|
createdAt: Scalars['String']['output'];
|
||||||
currency: Scalars['String']['output'];
|
currency: Scalars['String']['output'];
|
||||||
description: Scalars['String']['output'];
|
description?: Maybe<Scalars['String']['output']>;
|
||||||
id: Scalars['ID']['output'];
|
locationCountry?: Maybe<Scalars['String']['output']>;
|
||||||
locationCountry: Scalars['String']['output'];
|
locationCountryCode?: Maybe<Scalars['String']['output']>;
|
||||||
locationCountryCode: Scalars['String']['output'];
|
|
||||||
locationLatitude?: Maybe<Scalars['Float']['output']>;
|
locationLatitude?: Maybe<Scalars['Float']['output']>;
|
||||||
locationLongitude?: Maybe<Scalars['Float']['output']>;
|
locationLongitude?: Maybe<Scalars['Float']['output']>;
|
||||||
locationName: Scalars['String']['output'];
|
locationName?: Maybe<Scalars['String']['output']>;
|
||||||
locationUuid: Scalars['String']['output'];
|
locationUuid?: Maybe<Scalars['String']['output']>;
|
||||||
pricePerUnit?: Maybe<Scalars['Decimal']['output']>;
|
pricePerUnit: Scalars['Float']['output'];
|
||||||
productName: Scalars['String']['output'];
|
productName: Scalars['String']['output'];
|
||||||
productUuid: Scalars['String']['output'];
|
productUuid: Scalars['String']['output'];
|
||||||
quantity: Scalars['Decimal']['output'];
|
quantity: Scalars['Float']['output'];
|
||||||
status: OffersOfferStatusChoices;
|
status: Scalars['String']['output'];
|
||||||
teamUuid: Scalars['String']['output'];
|
teamUuid: Scalars['String']['output'];
|
||||||
terminusDocumentId: Scalars['String']['output'];
|
|
||||||
terminusSchemaId: Scalars['String']['output'];
|
|
||||||
unit: Scalars['String']['output'];
|
unit: Scalars['String']['output'];
|
||||||
updatedAt: Scalars['DateTime']['output'];
|
updatedAt: Scalars['String']['output'];
|
||||||
uuid: Scalars['String']['output'];
|
uuid: Scalars['String']['output'];
|
||||||
validUntil?: Maybe<Scalars['Date']['output']>;
|
validUntil?: Maybe<Scalars['String']['output']>;
|
||||||
workflowError: Scalars['String']['output'];
|
|
||||||
workflowStatus: OffersOfferWorkflowStatusChoices;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** An enumeration. */
|
|
||||||
export enum OffersOfferStatusChoices {
|
|
||||||
/** Активно */
|
|
||||||
Active = 'ACTIVE',
|
|
||||||
/** Отменено */
|
|
||||||
Cancelled = 'CANCELLED',
|
|
||||||
/** Закрыто */
|
|
||||||
Closed = 'CLOSED',
|
|
||||||
/** Черновик */
|
|
||||||
Draft = 'DRAFT'
|
|
||||||
}
|
|
||||||
|
|
||||||
/** An enumeration. */
|
|
||||||
export enum OffersOfferWorkflowStatusChoices {
|
|
||||||
/** Активен */
|
|
||||||
Active = 'ACTIVE',
|
|
||||||
/** Ошибка */
|
|
||||||
Error = 'ERROR',
|
|
||||||
/** Ожидает обработки */
|
|
||||||
Pending = 'PENDING'
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Product = {
|
export type Product = {
|
||||||
__typename?: 'Product';
|
__typename?: 'Product';
|
||||||
categoryId?: Maybe<Scalars['Int']['output']>;
|
categoryId?: Maybe<Scalars['String']['output']>;
|
||||||
categoryName?: Maybe<Scalars['String']['output']>;
|
categoryName?: Maybe<Scalars['String']['output']>;
|
||||||
name?: Maybe<Scalars['String']['output']>;
|
name?: Maybe<Scalars['String']['output']>;
|
||||||
terminusSchemaId?: Maybe<Scalars['String']['output']>;
|
terminusSchemaId?: Maybe<Scalars['String']['output']>;
|
||||||
uuid?: Maybe<Scalars['String']['output']>;
|
uuid?: Maybe<Scalars['String']['output']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Public schema - no authentication required */
|
export type Query = {
|
||||||
export type PublicQuery = {
|
__typename?: 'Query';
|
||||||
__typename?: 'PublicQuery';
|
|
||||||
/** Get products that have active offers */
|
|
||||||
getAvailableProducts?: Maybe<Array<Maybe<Product>>>;
|
getAvailableProducts?: Maybe<Array<Maybe<Product>>>;
|
||||||
getOffer?: Maybe<OfferType>;
|
getOffer?: Maybe<Offer>;
|
||||||
getOffers?: Maybe<Array<Maybe<OfferType>>>;
|
getOffers?: Maybe<Array<Maybe<Offer>>>;
|
||||||
getOffersCount?: Maybe<Scalars['Int']['output']>;
|
getOffersCount?: Maybe<Scalars['Int']['output']>;
|
||||||
getProducts?: Maybe<Array<Maybe<Product>>>;
|
getProducts?: Maybe<Array<Maybe<Product>>>;
|
||||||
getSupplierProfile?: Maybe<SupplierProfileType>;
|
getSupplierProfile?: Maybe<SupplierProfile>;
|
||||||
/** Get supplier profile by team UUID */
|
getSupplierProfileByTeam?: Maybe<SupplierProfile>;
|
||||||
getSupplierProfileByTeam?: Maybe<SupplierProfileType>;
|
getSupplierProfiles?: Maybe<Array<Maybe<SupplierProfile>>>;
|
||||||
getSupplierProfiles?: Maybe<Array<Maybe<SupplierProfileType>>>;
|
|
||||||
getSupplierProfilesCount?: Maybe<Scalars['Int']['output']>;
|
getSupplierProfilesCount?: Maybe<Scalars['Int']['output']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Public schema - no authentication required */
|
export type QueryGetOfferArgs = {
|
||||||
export type PublicQueryGetOfferArgs = {
|
|
||||||
uuid: Scalars['String']['input'];
|
uuid: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Public schema - no authentication required */
|
export type QueryGetOffersArgs = {
|
||||||
export type PublicQueryGetOffersArgs = {
|
|
||||||
categoryName?: InputMaybe<Scalars['String']['input']>;
|
categoryName?: InputMaybe<Scalars['String']['input']>;
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
locationUuid?: InputMaybe<Scalars['String']['input']>;
|
locationUuid?: InputMaybe<Scalars['String']['input']>;
|
||||||
@@ -113,8 +78,7 @@ export type PublicQueryGetOffersArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Public schema - no authentication required */
|
export type QueryGetOffersCountArgs = {
|
||||||
export type PublicQueryGetOffersCountArgs = {
|
|
||||||
categoryName?: InputMaybe<Scalars['String']['input']>;
|
categoryName?: InputMaybe<Scalars['String']['input']>;
|
||||||
locationUuid?: InputMaybe<Scalars['String']['input']>;
|
locationUuid?: InputMaybe<Scalars['String']['input']>;
|
||||||
productUuid?: InputMaybe<Scalars['String']['input']>;
|
productUuid?: InputMaybe<Scalars['String']['input']>;
|
||||||
@@ -123,20 +87,17 @@ export type PublicQueryGetOffersCountArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Public schema - no authentication required */
|
export type QueryGetSupplierProfileArgs = {
|
||||||
export type PublicQueryGetSupplierProfileArgs = {
|
|
||||||
uuid: Scalars['String']['input'];
|
uuid: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Public schema - no authentication required */
|
export type QueryGetSupplierProfileByTeamArgs = {
|
||||||
export type PublicQueryGetSupplierProfileByTeamArgs = {
|
|
||||||
teamUuid: Scalars['String']['input'];
|
teamUuid: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Public schema - no authentication required */
|
export type QueryGetSupplierProfilesArgs = {
|
||||||
export type PublicQueryGetSupplierProfilesArgs = {
|
|
||||||
country?: InputMaybe<Scalars['String']['input']>;
|
country?: InputMaybe<Scalars['String']['input']>;
|
||||||
isVerified?: InputMaybe<Scalars['Boolean']['input']>;
|
isVerified?: InputMaybe<Scalars['Boolean']['input']>;
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
@@ -144,51 +105,46 @@ export type PublicQueryGetSupplierProfilesArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Public schema - no authentication required */
|
export type QueryGetSupplierProfilesCountArgs = {
|
||||||
export type PublicQueryGetSupplierProfilesCountArgs = {
|
|
||||||
country?: InputMaybe<Scalars['String']['input']>;
|
country?: InputMaybe<Scalars['String']['input']>;
|
||||||
isVerified?: InputMaybe<Scalars['Boolean']['input']>;
|
isVerified?: InputMaybe<Scalars['Boolean']['input']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Профиль поставщика на бирже */
|
export type SupplierProfile = {
|
||||||
export type SupplierProfileType = {
|
__typename?: 'SupplierProfile';
|
||||||
__typename?: 'SupplierProfileType';
|
country?: Maybe<Scalars['String']['output']>;
|
||||||
country: Scalars['String']['output'];
|
|
||||||
countryCode?: Maybe<Scalars['String']['output']>;
|
countryCode?: Maybe<Scalars['String']['output']>;
|
||||||
createdAt: Scalars['DateTime']['output'];
|
description?: Maybe<Scalars['String']['output']>;
|
||||||
description: Scalars['String']['output'];
|
|
||||||
id: Scalars['ID']['output'];
|
|
||||||
isActive: Scalars['Boolean']['output'];
|
isActive: Scalars['Boolean']['output'];
|
||||||
isVerified: Scalars['Boolean']['output'];
|
isVerified: Scalars['Boolean']['output'];
|
||||||
kycProfileUuid: Scalars['String']['output'];
|
kycProfileUuid?: Maybe<Scalars['String']['output']>;
|
||||||
latitude?: Maybe<Scalars['Float']['output']>;
|
latitude?: Maybe<Scalars['Float']['output']>;
|
||||||
logoUrl: Scalars['String']['output'];
|
logoUrl?: Maybe<Scalars['String']['output']>;
|
||||||
longitude?: Maybe<Scalars['Float']['output']>;
|
longitude?: Maybe<Scalars['Float']['output']>;
|
||||||
name: Scalars['String']['output'];
|
name: Scalars['String']['output'];
|
||||||
offersCount?: Maybe<Scalars['Int']['output']>;
|
offersCount?: Maybe<Scalars['Int']['output']>;
|
||||||
teamUuid: Scalars['String']['output'];
|
teamUuid: Scalars['String']['output'];
|
||||||
updatedAt: Scalars['DateTime']['output'];
|
|
||||||
uuid: Scalars['String']['output'];
|
uuid: Scalars['String']['output'];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetAvailableProductsQueryVariables = Exact<{ [key: string]: never; }>;
|
export type GetAvailableProductsQueryVariables = Exact<{ [key: string]: never; }>;
|
||||||
|
|
||||||
|
|
||||||
export type GetAvailableProductsQueryResult = { __typename?: 'PublicQuery', getAvailableProducts?: Array<{ __typename?: 'Product', uuid?: string | null, name?: string | null, categoryId?: number | null, categoryName?: string | null, terminusSchemaId?: string | null } | null> | null };
|
export type GetAvailableProductsQueryResult = { __typename?: 'Query', getAvailableProducts?: Array<{ __typename?: 'Product', uuid?: string | null, name?: string | null, categoryId?: string | null, categoryName?: string | null, terminusSchemaId?: string | null } | null> | null };
|
||||||
|
|
||||||
export type GetLocationOffersQueryVariables = Exact<{
|
export type GetLocationOffersQueryVariables = Exact<{
|
||||||
locationUuid: Scalars['String']['input'];
|
locationUuid: Scalars['String']['input'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetLocationOffersQueryResult = { __typename?: 'PublicQuery', getOffers?: Array<{ __typename?: 'OfferType', uuid: string, teamUuid: string, status: OffersOfferStatusChoices, locationUuid: string, locationName: string, locationCountry: string, locationCountryCode: string, locationLatitude?: number | null, locationLongitude?: number | null, productUuid: string, productName: string, categoryName: string, quantity: string, unit: string, pricePerUnit?: string | null, currency: string, description: string, validUntil?: string | null, createdAt: string, updatedAt: string } | null> | null };
|
export type GetLocationOffersQueryResult = { __typename?: 'Query', getOffers?: Array<{ __typename?: 'Offer', uuid: string, teamUuid: string, status: string, locationUuid?: string | null, locationName?: string | null, locationCountry?: string | null, locationCountryCode?: string | null, locationLatitude?: number | null, locationLongitude?: number | null, productUuid: string, productName: string, categoryName?: string | null, quantity: number, unit: string, pricePerUnit: number, currency: string, description?: string | null, validUntil?: string | null, createdAt: string, updatedAt: string } | null> | null };
|
||||||
|
|
||||||
export type GetOfferQueryVariables = Exact<{
|
export type GetOfferQueryVariables = Exact<{
|
||||||
uuid: Scalars['String']['input'];
|
uuid: Scalars['String']['input'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetOfferQueryResult = { __typename?: 'PublicQuery', getOffer?: { __typename?: 'OfferType', uuid: string, teamUuid: string, status: OffersOfferStatusChoices, locationUuid: string, locationName: string, locationCountry: string, locationCountryCode: string, locationLatitude?: number | null, locationLongitude?: number | null, productUuid: string, productName: string, categoryName: string, quantity: string, unit: string, pricePerUnit?: string | null, currency: string, description: string, validUntil?: string | null, createdAt: string, updatedAt: string } | null };
|
export type GetOfferQueryResult = { __typename?: 'Query', getOffer?: { __typename?: 'Offer', uuid: string, teamUuid: string, status: string, locationUuid?: string | null, locationName?: string | null, locationCountry?: string | null, locationCountryCode?: string | null, locationLatitude?: number | null, locationLongitude?: number | null, productUuid: string, productName: string, categoryName?: string | null, quantity: number, unit: string, pricePerUnit: number, currency: string, description?: string | null, validUntil?: string | null, createdAt: string, updatedAt: string } | null };
|
||||||
|
|
||||||
export type GetOffersQueryVariables = Exact<{
|
export type GetOffersQueryVariables = Exact<{
|
||||||
productUuid?: InputMaybe<Scalars['String']['input']>;
|
productUuid?: InputMaybe<Scalars['String']['input']>;
|
||||||
@@ -200,47 +156,47 @@ export type GetOffersQueryVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetOffersQueryResult = { __typename?: 'PublicQuery', getOffersCount?: number | null, getOffers?: Array<{ __typename?: 'OfferType', uuid: string, teamUuid: string, locationUuid: string, locationName: string, locationCountry: string, locationCountryCode: string, locationLatitude?: number | null, locationLongitude?: number | null, productUuid: string, productName: string, categoryName: string, quantity: string, unit: string, pricePerUnit?: string | null, currency: string, description: string, validUntil?: string | null, createdAt: string, updatedAt: string } | null> | null };
|
export type GetOffersQueryResult = { __typename?: 'Query', getOffersCount?: number | null, getOffers?: Array<{ __typename?: 'Offer', uuid: string, teamUuid: string, locationUuid?: string | null, locationName?: string | null, locationCountry?: string | null, locationCountryCode?: string | null, locationLatitude?: number | null, locationLongitude?: number | null, productUuid: string, productName: string, categoryName?: string | null, quantity: number, unit: string, pricePerUnit: number, currency: string, description?: string | null, validUntil?: string | null, createdAt: string, updatedAt: string } | null> | null };
|
||||||
|
|
||||||
export type GetProductQueryVariables = Exact<{
|
export type GetProductQueryVariables = Exact<{
|
||||||
uuid: Scalars['String']['input'];
|
uuid: Scalars['String']['input'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetProductQueryResult = { __typename?: 'PublicQuery', getProducts?: Array<{ __typename?: 'Product', uuid?: string | null, name?: string | null, categoryId?: number | null, categoryName?: string | null, terminusSchemaId?: string | null } | null> | null };
|
export type GetProductQueryResult = { __typename?: 'Query', getProducts?: Array<{ __typename?: 'Product', uuid?: string | null, name?: string | null, categoryId?: string | null, categoryName?: string | null, terminusSchemaId?: string | null } | null> | null };
|
||||||
|
|
||||||
export type GetProductOffersQueryVariables = Exact<{
|
export type GetProductOffersQueryVariables = Exact<{
|
||||||
productUuid: Scalars['String']['input'];
|
productUuid: Scalars['String']['input'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetProductOffersQueryResult = { __typename?: 'PublicQuery', getOffers?: Array<{ __typename?: 'OfferType', uuid: string, teamUuid: string, status: OffersOfferStatusChoices, locationUuid: string, locationName: string, locationCountry: string, locationCountryCode: string, locationLatitude?: number | null, locationLongitude?: number | null, productUuid: string, productName: string, categoryName: string, quantity: string, unit: string, pricePerUnit?: string | null, currency: string, description: string, validUntil?: string | null, createdAt: string, updatedAt: string } | null> | null };
|
export type GetProductOffersQueryResult = { __typename?: 'Query', getOffers?: Array<{ __typename?: 'Offer', uuid: string, teamUuid: string, status: string, locationUuid?: string | null, locationName?: string | null, locationCountry?: string | null, locationCountryCode?: string | null, locationLatitude?: number | null, locationLongitude?: number | null, productUuid: string, productName: string, categoryName?: string | null, quantity: number, unit: string, pricePerUnit: number, currency: string, description?: string | null, validUntil?: string | null, createdAt: string, updatedAt: string } | null> | null };
|
||||||
|
|
||||||
export type GetProductsQueryVariables = Exact<{ [key: string]: never; }>;
|
export type GetProductsQueryVariables = Exact<{ [key: string]: never; }>;
|
||||||
|
|
||||||
|
|
||||||
export type GetProductsQueryResult = { __typename?: 'PublicQuery', getProducts?: Array<{ __typename?: 'Product', uuid?: string | null, name?: string | null, categoryId?: number | null, categoryName?: string | null, terminusSchemaId?: string | null } | null> | null };
|
export type GetProductsQueryResult = { __typename?: 'Query', getProducts?: Array<{ __typename?: 'Product', uuid?: string | null, name?: string | null, categoryId?: string | null, categoryName?: string | null, terminusSchemaId?: string | null } | null> | null };
|
||||||
|
|
||||||
export type GetSupplierOffersQueryVariables = Exact<{
|
export type GetSupplierOffersQueryVariables = Exact<{
|
||||||
teamUuid: Scalars['String']['input'];
|
teamUuid: Scalars['String']['input'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetSupplierOffersQueryResult = { __typename?: 'PublicQuery', getOffers?: Array<{ __typename?: 'OfferType', uuid: string, teamUuid: string, status: OffersOfferStatusChoices, locationUuid: string, locationName: string, locationCountry: string, locationCountryCode: string, locationLatitude?: number | null, locationLongitude?: number | null, productUuid: string, productName: string, categoryName: string, quantity: string, unit: string, pricePerUnit?: string | null, currency: string, description: string, validUntil?: string | null, createdAt: string, updatedAt: string } | null> | null };
|
export type GetSupplierOffersQueryResult = { __typename?: 'Query', getOffers?: Array<{ __typename?: 'Offer', uuid: string, teamUuid: string, status: string, locationUuid?: string | null, locationName?: string | null, locationCountry?: string | null, locationCountryCode?: string | null, locationLatitude?: number | null, locationLongitude?: number | null, productUuid: string, productName: string, categoryName?: string | null, quantity: number, unit: string, pricePerUnit: number, currency: string, description?: string | null, validUntil?: string | null, createdAt: string, updatedAt: string } | null> | null };
|
||||||
|
|
||||||
export type GetSupplierProfileQueryVariables = Exact<{
|
export type GetSupplierProfileQueryVariables = Exact<{
|
||||||
uuid: Scalars['String']['input'];
|
uuid: Scalars['String']['input'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetSupplierProfileQueryResult = { __typename?: 'PublicQuery', getSupplierProfile?: { __typename?: 'SupplierProfileType', uuid: string, teamUuid: string, kycProfileUuid: string, name: string, description: string, country: string, logoUrl: string, isVerified: boolean, isActive: boolean, offersCount?: number | null, latitude?: number | null, longitude?: number | null } | null };
|
export type GetSupplierProfileQueryResult = { __typename?: 'Query', getSupplierProfile?: { __typename?: 'SupplierProfile', uuid: string, teamUuid: string, kycProfileUuid?: string | null, name: string, description?: string | null, country?: string | null, logoUrl?: string | null, isVerified: boolean, isActive: boolean, offersCount?: number | null, latitude?: number | null, longitude?: number | null } | null };
|
||||||
|
|
||||||
export type GetSupplierProfileByTeamQueryVariables = Exact<{
|
export type GetSupplierProfileByTeamQueryVariables = Exact<{
|
||||||
teamUuid: Scalars['String']['input'];
|
teamUuid: Scalars['String']['input'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetSupplierProfileByTeamQueryResult = { __typename?: 'PublicQuery', getSupplierProfileByTeam?: { __typename?: 'SupplierProfileType', uuid: string, teamUuid: string, kycProfileUuid: string, name: string, description: string, country: string, logoUrl: string, isVerified: boolean, isActive: boolean, offersCount?: number | null } | null };
|
export type GetSupplierProfileByTeamQueryResult = { __typename?: 'Query', getSupplierProfileByTeam?: { __typename?: 'SupplierProfile', uuid: string, teamUuid: string, kycProfileUuid?: string | null, name: string, description?: string | null, country?: string | null, logoUrl?: string | null, isVerified: boolean, isActive: boolean, offersCount?: number | null } | null };
|
||||||
|
|
||||||
export type GetSupplierProfilesQueryVariables = Exact<{
|
export type GetSupplierProfilesQueryVariables = Exact<{
|
||||||
country?: InputMaybe<Scalars['String']['input']>;
|
country?: InputMaybe<Scalars['String']['input']>;
|
||||||
@@ -249,7 +205,7 @@ export type GetSupplierProfilesQueryVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetSupplierProfilesQueryResult = { __typename?: 'PublicQuery', getSupplierProfilesCount?: number | null, getSupplierProfiles?: Array<{ __typename?: 'SupplierProfileType', uuid: string, teamUuid: string, name: string, description: string, country: string, countryCode?: string | null, logoUrl: string, offersCount?: number | null, latitude?: number | null, longitude?: number | null } | null> | null };
|
export type GetSupplierProfilesQueryResult = { __typename?: 'Query', getSupplierProfilesCount?: number | null, getSupplierProfiles?: Array<{ __typename?: 'SupplierProfile', uuid: string, teamUuid: string, name: string, description?: string | null, country?: string | null, countryCode?: string | null, logoUrl?: string | null, offersCount?: number | null, latitude?: number | null, longitude?: number | null } | null> | null };
|
||||||
|
|
||||||
|
|
||||||
export const GetAvailableProductsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAvailableProducts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getAvailableProducts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"categoryId"}},{"kind":"Field","name":{"kind":"Name","value":"categoryName"}},{"kind":"Field","name":{"kind":"Name","value":"terminusSchemaId"}}]}}]}}]} as unknown as DocumentNode<GetAvailableProductsQueryResult, GetAvailableProductsQueryVariables>;
|
export const GetAvailableProductsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAvailableProducts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getAvailableProducts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"categoryId"}},{"kind":"Field","name":{"kind":"Name","value":"categoryName"}},{"kind":"Field","name":{"kind":"Name","value":"terminusSchemaId"}}]}}]}}]} as unknown as DocumentNode<GetAvailableProductsQueryResult, GetAvailableProductsQueryVariables>;
|
||||||
|
|||||||
@@ -13,292 +13,228 @@ export type Scalars = {
|
|||||||
Boolean: { input: boolean; output: boolean; }
|
Boolean: { input: boolean; output: boolean; }
|
||||||
Int: { input: number; output: number; }
|
Int: { input: number; output: number; }
|
||||||
Float: { input: number; output: number; }
|
Float: { input: number; output: number; }
|
||||||
JSONString: { input: Record<string, unknown>; output: Record<string, unknown>; }
|
JSON: { input: Record<string, unknown>; output: Record<string, unknown>; }
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Cluster or individual point for map display. */
|
export type ClusterPoint = {
|
||||||
export type ClusterPointType = {
|
__typename?: 'ClusterPoint';
|
||||||
__typename?: 'ClusterPointType';
|
|
||||||
/** 1 for single point, >1 for cluster */
|
|
||||||
count?: Maybe<Scalars['Int']['output']>;
|
count?: Maybe<Scalars['Int']['output']>;
|
||||||
/** Zoom level to expand cluster */
|
expansion_zoom?: Maybe<Scalars['Int']['output']>;
|
||||||
expansionZoom?: Maybe<Scalars['Int']['output']>;
|
|
||||||
/** UUID for points, 'cluster-N' for clusters */
|
|
||||||
id?: Maybe<Scalars['String']['output']>;
|
id?: Maybe<Scalars['String']['output']>;
|
||||||
latitude?: Maybe<Scalars['Float']['output']>;
|
latitude?: Maybe<Scalars['Float']['output']>;
|
||||||
longitude?: Maybe<Scalars['Float']['output']>;
|
longitude?: Maybe<Scalars['Float']['output']>;
|
||||||
/** Node name (only for single points) */
|
|
||||||
name?: Maybe<Scalars['String']['output']>;
|
name?: Maybe<Scalars['String']['output']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Edge between two nodes (route). */
|
export type Edge = {
|
||||||
export type EdgeType = {
|
__typename?: 'Edge';
|
||||||
__typename?: 'EdgeType';
|
distance_km?: Maybe<Scalars['Float']['output']>;
|
||||||
distanceKm?: Maybe<Scalars['Float']['output']>;
|
to_latitude?: Maybe<Scalars['Float']['output']>;
|
||||||
toLatitude?: Maybe<Scalars['Float']['output']>;
|
to_longitude?: Maybe<Scalars['Float']['output']>;
|
||||||
toLongitude?: Maybe<Scalars['Float']['output']>;
|
to_name?: Maybe<Scalars['String']['output']>;
|
||||||
toName?: Maybe<Scalars['String']['output']>;
|
to_uuid?: Maybe<Scalars['String']['output']>;
|
||||||
toUuid?: Maybe<Scalars['String']['output']>;
|
transport_type?: Maybe<Scalars['String']['output']>;
|
||||||
transportType?: Maybe<Scalars['String']['output']>;
|
travel_time_seconds?: Maybe<Scalars['Int']['output']>;
|
||||||
travelTimeSeconds?: Maybe<Scalars['Int']['output']>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Auto + rail edges for a node, rail uses nearest rail node. */
|
export type Node = {
|
||||||
export type NodeConnectionsType = {
|
__typename?: 'Node';
|
||||||
__typename?: 'NodeConnectionsType';
|
|
||||||
autoEdges?: Maybe<Array<Maybe<EdgeType>>>;
|
|
||||||
hub?: Maybe<NodeType>;
|
|
||||||
railEdges?: Maybe<Array<Maybe<EdgeType>>>;
|
|
||||||
railNode?: Maybe<NodeType>;
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Logistics node with edges to neighbors. */
|
|
||||||
export type NodeType = {
|
|
||||||
__typename?: 'NodeType';
|
|
||||||
country?: Maybe<Scalars['String']['output']>;
|
country?: Maybe<Scalars['String']['output']>;
|
||||||
countryCode?: Maybe<Scalars['String']['output']>;
|
country_code?: Maybe<Scalars['String']['output']>;
|
||||||
distanceKm?: Maybe<Scalars['Float']['output']>;
|
distance_km?: Maybe<Scalars['Float']['output']>;
|
||||||
edges?: Maybe<Array<Maybe<EdgeType>>>;
|
edges?: Maybe<Array<Maybe<Edge>>>;
|
||||||
latitude?: Maybe<Scalars['Float']['output']>;
|
latitude?: Maybe<Scalars['Float']['output']>;
|
||||||
longitude?: Maybe<Scalars['Float']['output']>;
|
longitude?: Maybe<Scalars['Float']['output']>;
|
||||||
name?: Maybe<Scalars['String']['output']>;
|
name?: Maybe<Scalars['String']['output']>;
|
||||||
syncedAt?: Maybe<Scalars['String']['output']>;
|
synced_at?: Maybe<Scalars['String']['output']>;
|
||||||
transportTypes?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
transport_types?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
||||||
uuid?: Maybe<Scalars['String']['output']>;
|
uuid?: Maybe<Scalars['String']['output']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Calculation result that may include one or multiple offers. */
|
export type NodeConnections = {
|
||||||
export type OfferCalculationType = {
|
__typename?: 'NodeConnections';
|
||||||
__typename?: 'OfferCalculationType';
|
auto_edges?: Maybe<Array<Maybe<Edge>>>;
|
||||||
offers?: Maybe<Array<Maybe<OfferWithRouteType>>>;
|
hub?: Maybe<Node>;
|
||||||
|
rail_edges?: Maybe<Array<Maybe<Edge>>>;
|
||||||
|
rail_node?: Maybe<Node>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Offer node with location and product info. */
|
export type OfferNode = {
|
||||||
export type OfferNodeType = {
|
__typename?: 'OfferNode';
|
||||||
__typename?: 'OfferNodeType';
|
|
||||||
country?: Maybe<Scalars['String']['output']>;
|
country?: Maybe<Scalars['String']['output']>;
|
||||||
countryCode?: Maybe<Scalars['String']['output']>;
|
country_code?: Maybe<Scalars['String']['output']>;
|
||||||
currency?: Maybe<Scalars['String']['output']>;
|
currency?: Maybe<Scalars['String']['output']>;
|
||||||
distanceKm?: Maybe<Scalars['Float']['output']>;
|
distance_km?: Maybe<Scalars['Float']['output']>;
|
||||||
latitude?: Maybe<Scalars['Float']['output']>;
|
latitude?: Maybe<Scalars['Float']['output']>;
|
||||||
longitude?: Maybe<Scalars['Float']['output']>;
|
longitude?: Maybe<Scalars['Float']['output']>;
|
||||||
pricePerUnit?: Maybe<Scalars['String']['output']>;
|
price_per_unit?: Maybe<Scalars['String']['output']>;
|
||||||
productName?: Maybe<Scalars['String']['output']>;
|
product_name?: Maybe<Scalars['String']['output']>;
|
||||||
productUuid?: Maybe<Scalars['String']['output']>;
|
product_uuid?: Maybe<Scalars['String']['output']>;
|
||||||
quantity?: Maybe<Scalars['String']['output']>;
|
quantity?: Maybe<Scalars['String']['output']>;
|
||||||
supplierName?: Maybe<Scalars['String']['output']>;
|
supplier_name?: Maybe<Scalars['String']['output']>;
|
||||||
supplierUuid?: Maybe<Scalars['String']['output']>;
|
supplier_uuid?: Maybe<Scalars['String']['output']>;
|
||||||
unit?: Maybe<Scalars['String']['output']>;
|
unit?: Maybe<Scalars['String']['output']>;
|
||||||
uuid?: Maybe<Scalars['String']['output']>;
|
uuid?: Maybe<Scalars['String']['output']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Offer with route information to destination. */
|
export type OfferWithRoute = {
|
||||||
export type OfferWithRouteType = {
|
__typename?: 'OfferWithRoute';
|
||||||
__typename?: 'OfferWithRouteType';
|
|
||||||
country?: Maybe<Scalars['String']['output']>;
|
country?: Maybe<Scalars['String']['output']>;
|
||||||
countryCode?: Maybe<Scalars['String']['output']>;
|
country_code?: Maybe<Scalars['String']['output']>;
|
||||||
currency?: Maybe<Scalars['String']['output']>;
|
currency?: Maybe<Scalars['String']['output']>;
|
||||||
distanceKm?: Maybe<Scalars['Float']['output']>;
|
distance_km?: Maybe<Scalars['Float']['output']>;
|
||||||
latitude?: Maybe<Scalars['Float']['output']>;
|
latitude?: Maybe<Scalars['Float']['output']>;
|
||||||
longitude?: Maybe<Scalars['Float']['output']>;
|
longitude?: Maybe<Scalars['Float']['output']>;
|
||||||
pricePerUnit?: Maybe<Scalars['String']['output']>;
|
price_per_unit?: Maybe<Scalars['String']['output']>;
|
||||||
productName?: Maybe<Scalars['String']['output']>;
|
product_name?: Maybe<Scalars['String']['output']>;
|
||||||
productUuid?: Maybe<Scalars['String']['output']>;
|
product_uuid?: Maybe<Scalars['String']['output']>;
|
||||||
quantity?: Maybe<Scalars['String']['output']>;
|
quantity?: Maybe<Scalars['String']['output']>;
|
||||||
routes?: Maybe<Array<Maybe<RoutePathType>>>;
|
routes?: Maybe<Array<Maybe<RoutePath>>>;
|
||||||
supplierName?: Maybe<Scalars['String']['output']>;
|
supplier_name?: Maybe<Scalars['String']['output']>;
|
||||||
supplierUuid?: Maybe<Scalars['String']['output']>;
|
supplier_uuid?: Maybe<Scalars['String']['output']>;
|
||||||
unit?: Maybe<Scalars['String']['output']>;
|
unit?: Maybe<Scalars['String']['output']>;
|
||||||
uuid?: Maybe<Scalars['String']['output']>;
|
uuid?: Maybe<Scalars['String']['output']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Route options for a product source to the destination. */
|
export type Product = {
|
||||||
export type ProductRouteOptionType = {
|
__typename?: 'Product';
|
||||||
__typename?: 'ProductRouteOptionType';
|
|
||||||
distanceKm?: Maybe<Scalars['Float']['output']>;
|
|
||||||
routes?: Maybe<Array<Maybe<RoutePathType>>>;
|
|
||||||
sourceLat?: Maybe<Scalars['Float']['output']>;
|
|
||||||
sourceLon?: Maybe<Scalars['Float']['output']>;
|
|
||||||
sourceName?: Maybe<Scalars['String']['output']>;
|
|
||||||
sourceUuid?: Maybe<Scalars['String']['output']>;
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Unique product from offers. */
|
|
||||||
export type ProductType = {
|
|
||||||
__typename?: 'ProductType';
|
|
||||||
name?: Maybe<Scalars['String']['output']>;
|
name?: Maybe<Scalars['String']['output']>;
|
||||||
/** Number of offers for this product */
|
offers_count?: Maybe<Scalars['Int']['output']>;
|
||||||
offersCount?: Maybe<Scalars['Int']['output']>;
|
|
||||||
uuid?: Maybe<Scalars['String']['output']>;
|
uuid?: Maybe<Scalars['String']['output']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Root query. */
|
export type ProductRouteOption = {
|
||||||
|
__typename?: 'ProductRouteOption';
|
||||||
|
distance_km?: Maybe<Scalars['Float']['output']>;
|
||||||
|
routes?: Maybe<Array<Maybe<RoutePath>>>;
|
||||||
|
source_lat?: Maybe<Scalars['Float']['output']>;
|
||||||
|
source_lon?: Maybe<Scalars['Float']['output']>;
|
||||||
|
source_name?: Maybe<Scalars['String']['output']>;
|
||||||
|
source_uuid?: Maybe<Scalars['String']['output']>;
|
||||||
|
};
|
||||||
|
|
||||||
export type Query = {
|
export type Query = {
|
||||||
__typename?: 'Query';
|
__typename?: 'Query';
|
||||||
/** Get auto route between two points via GraphHopper */
|
auto_route?: Maybe<Route>;
|
||||||
autoRoute?: Maybe<RouteType>;
|
clustered_nodes: Array<ClusterPoint>;
|
||||||
/** Get clustered nodes for map display (server-side clustering) */
|
hub_countries: Array<Scalars['String']['output']>;
|
||||||
clusteredNodes?: Maybe<Array<Maybe<ClusterPointType>>>;
|
hubs_for_product: Array<Node>;
|
||||||
/** List of countries that have logistics hubs */
|
hubs_list: Array<Node>;
|
||||||
hubCountries?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
hubs_near_offer: Array<Node>;
|
||||||
/** Get hubs where a product is available nearby */
|
nearest_hubs: Array<Node>;
|
||||||
hubsForProduct?: Maybe<Array<Maybe<NodeType>>>;
|
nearest_nodes: Array<Node>;
|
||||||
/** Get paginated list of logistics hubs */
|
nearest_offers: Array<OfferWithRoute>;
|
||||||
hubsList?: Maybe<Array<Maybe<NodeType>>>;
|
nearest_suppliers: Array<Supplier>;
|
||||||
/** Get nearest hubs to an offer location */
|
node?: Maybe<Node>;
|
||||||
hubsNearOffer?: Maybe<Array<Maybe<NodeType>>>;
|
node_connections?: Maybe<NodeConnections>;
|
||||||
/** Find nearest hubs to coordinates (optionally filtered by product) */
|
nodes: Array<Node>;
|
||||||
nearestHubs?: Maybe<Array<Maybe<NodeType>>>;
|
nodes_count: Scalars['Int']['output'];
|
||||||
/** Find nearest logistics nodes to given coordinates */
|
offer_to_hub?: Maybe<ProductRouteOption>;
|
||||||
nearestNodes?: Maybe<Array<Maybe<NodeType>>>;
|
offers_by_hub: Array<ProductRouteOption>;
|
||||||
/** Find nearest offers to coordinates with optional routes to hub */
|
offers_by_product: Array<OfferNode>;
|
||||||
nearestOffers?: Maybe<Array<Maybe<OfferWithRouteType>>>;
|
offers_by_supplier_product: Array<OfferNode>;
|
||||||
/** Find nearest suppliers to coordinates (optionally filtered by product) */
|
products: Array<Product>;
|
||||||
nearestSuppliers?: Maybe<Array<Maybe<SupplierType>>>;
|
products_by_supplier: Array<Product>;
|
||||||
/** Get node by UUID with all edges to neighbors */
|
products_list: Array<Product>;
|
||||||
node?: Maybe<NodeType>;
|
products_near_hub: Array<Product>;
|
||||||
/** Get auto + rail edges for a node (rail uses nearest rail node) */
|
rail_route?: Maybe<Route>;
|
||||||
nodeConnections?: Maybe<NodeConnectionsType>;
|
route_to_coordinate?: Maybe<ProductRouteOption>;
|
||||||
/** Get all nodes (without edges for performance) */
|
suppliers: Array<Supplier>;
|
||||||
nodes?: Maybe<Array<Maybe<NodeType>>>;
|
suppliers_for_product: Array<Supplier>;
|
||||||
/** Get total count of nodes (with optional transport/country/bounds filter) */
|
suppliers_list: Array<Supplier>;
|
||||||
nodesCount?: Maybe<Scalars['Int']['output']>;
|
|
||||||
/** Get all offers for a product */
|
|
||||||
offersByProduct?: Maybe<Array<Maybe<OfferNodeType>>>;
|
|
||||||
/** Get offers from a supplier for a specific product */
|
|
||||||
offersBySupplierProduct?: Maybe<Array<Maybe<OfferNodeType>>>;
|
|
||||||
/** Get offers for a product with routes to hub (auto → rail* → auto) */
|
|
||||||
offersForHub?: Maybe<Array<Maybe<ProductRouteOptionType>>>;
|
|
||||||
/** Get unique products from all offers */
|
|
||||||
products?: Maybe<Array<Maybe<ProductType>>>;
|
|
||||||
/** Get products offered by a supplier */
|
|
||||||
productsBySupplier?: Maybe<Array<Maybe<ProductType>>>;
|
|
||||||
/** Get paginated list of products from graph */
|
|
||||||
productsList?: Maybe<Array<Maybe<ProductType>>>;
|
|
||||||
/** Get products available near a hub */
|
|
||||||
productsNearHub?: Maybe<Array<Maybe<ProductType>>>;
|
|
||||||
/** Get quote calculations (single offer or split offers) */
|
|
||||||
quoteCalculations?: Maybe<Array<Maybe<OfferCalculationType>>>;
|
|
||||||
/** Get rail route between two points via OpenRailRouting */
|
|
||||||
railRoute?: Maybe<RouteType>;
|
|
||||||
/** Get route from offer to target coordinates (finds nearest hub to coordinate) */
|
|
||||||
routeToCoordinate?: Maybe<ProductRouteOptionType>;
|
|
||||||
/** Get unique suppliers from all offers */
|
|
||||||
suppliers?: Maybe<Array<Maybe<SupplierType>>>;
|
|
||||||
/** Get suppliers that offer a specific product */
|
|
||||||
suppliersForProduct?: Maybe<Array<Maybe<SupplierType>>>;
|
|
||||||
/** Get paginated list of suppliers from graph */
|
|
||||||
suppliersList?: Maybe<Array<Maybe<SupplierType>>>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryAuto_RouteArgs = {
|
||||||
export type QueryAutoRouteArgs = {
|
from_lat: Scalars['Float']['input'];
|
||||||
fromLat: Scalars['Float']['input'];
|
from_lon: Scalars['Float']['input'];
|
||||||
fromLon: Scalars['Float']['input'];
|
to_lat: Scalars['Float']['input'];
|
||||||
toLat: Scalars['Float']['input'];
|
to_lon: Scalars['Float']['input'];
|
||||||
toLon: Scalars['Float']['input'];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryClustered_NodesArgs = {
|
||||||
export type QueryClusteredNodesArgs = {
|
|
||||||
east: Scalars['Float']['input'];
|
east: Scalars['Float']['input'];
|
||||||
hubUuid?: InputMaybe<Scalars['String']['input']>;
|
node_type?: InputMaybe<Scalars['String']['input']>;
|
||||||
nodeType?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
north: Scalars['Float']['input'];
|
north: Scalars['Float']['input'];
|
||||||
productUuid?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
south: Scalars['Float']['input'];
|
south: Scalars['Float']['input'];
|
||||||
supplierUuid?: InputMaybe<Scalars['String']['input']>;
|
transport_type?: InputMaybe<Scalars['String']['input']>;
|
||||||
transportType?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
west: Scalars['Float']['input'];
|
west: Scalars['Float']['input'];
|
||||||
zoom: Scalars['Int']['input'];
|
zoom: Scalars['Int']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryHubs_For_ProductArgs = {
|
||||||
export type QueryHubsForProductArgs = {
|
product_uuid: Scalars['String']['input'];
|
||||||
productUuid: Scalars['String']['input'];
|
radius_km?: InputMaybe<Scalars['Float']['input']>;
|
||||||
radiusKm?: InputMaybe<Scalars['Float']['input']>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryHubs_ListArgs = {
|
||||||
export type QueryHubsListArgs = {
|
|
||||||
country?: InputMaybe<Scalars['String']['input']>;
|
country?: InputMaybe<Scalars['String']['input']>;
|
||||||
east?: InputMaybe<Scalars['Float']['input']>;
|
east?: InputMaybe<Scalars['Float']['input']>;
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
north?: InputMaybe<Scalars['Float']['input']>;
|
north?: InputMaybe<Scalars['Float']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
south?: InputMaybe<Scalars['Float']['input']>;
|
south?: InputMaybe<Scalars['Float']['input']>;
|
||||||
transportType?: InputMaybe<Scalars['String']['input']>;
|
transport_type?: InputMaybe<Scalars['String']['input']>;
|
||||||
west?: InputMaybe<Scalars['Float']['input']>;
|
west?: InputMaybe<Scalars['Float']['input']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryHubs_Near_OfferArgs = {
|
||||||
export type QueryHubsNearOfferArgs = {
|
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offerUuid: Scalars['String']['input'];
|
offer_uuid: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryNearest_HubsArgs = {
|
||||||
export type QueryNearestHubsArgs = {
|
|
||||||
lat: Scalars['Float']['input'];
|
lat: Scalars['Float']['input'];
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
lon: Scalars['Float']['input'];
|
lon: Scalars['Float']['input'];
|
||||||
productUuid?: InputMaybe<Scalars['String']['input']>;
|
product_uuid?: InputMaybe<Scalars['String']['input']>;
|
||||||
radius?: InputMaybe<Scalars['Float']['input']>;
|
|
||||||
sourceUuid?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
useGraph?: InputMaybe<Scalars['Boolean']['input']>;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
|
||||||
export type QueryNearestNodesArgs = {
|
|
||||||
lat: Scalars['Float']['input'];
|
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
||||||
lon: Scalars['Float']['input'];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
|
||||||
export type QueryNearestOffersArgs = {
|
|
||||||
hubUuid?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
lat: Scalars['Float']['input'];
|
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
||||||
lon: Scalars['Float']['input'];
|
|
||||||
productUuid?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
radius?: InputMaybe<Scalars['Float']['input']>;
|
radius?: InputMaybe<Scalars['Float']['input']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryNearest_NodesArgs = {
|
||||||
export type QueryNearestSuppliersArgs = {
|
|
||||||
lat: Scalars['Float']['input'];
|
lat: Scalars['Float']['input'];
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
lon: Scalars['Float']['input'];
|
lon: Scalars['Float']['input'];
|
||||||
productUuid?: InputMaybe<Scalars['String']['input']>;
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export type QueryNearest_OffersArgs = {
|
||||||
|
hub_uuid?: InputMaybe<Scalars['String']['input']>;
|
||||||
|
lat: Scalars['Float']['input'];
|
||||||
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
|
lon: Scalars['Float']['input'];
|
||||||
|
product_uuid?: InputMaybe<Scalars['String']['input']>;
|
||||||
|
radius?: InputMaybe<Scalars['Float']['input']>;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export type QueryNearest_SuppliersArgs = {
|
||||||
|
lat: Scalars['Float']['input'];
|
||||||
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
|
lon: Scalars['Float']['input'];
|
||||||
|
product_uuid?: InputMaybe<Scalars['String']['input']>;
|
||||||
radius?: InputMaybe<Scalars['Float']['input']>;
|
radius?: InputMaybe<Scalars['Float']['input']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
|
||||||
export type QueryNodeArgs = {
|
export type QueryNodeArgs = {
|
||||||
uuid: Scalars['String']['input'];
|
uuid: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryNode_ConnectionsArgs = {
|
||||||
export type QueryNodeConnectionsArgs = {
|
limit_auto?: InputMaybe<Scalars['Int']['input']>;
|
||||||
limitAuto?: InputMaybe<Scalars['Int']['input']>;
|
limit_rail?: InputMaybe<Scalars['Int']['input']>;
|
||||||
limitRail?: InputMaybe<Scalars['Int']['input']>;
|
|
||||||
uuid: Scalars['String']['input'];
|
uuid: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
|
||||||
export type QueryNodesArgs = {
|
export type QueryNodesArgs = {
|
||||||
country?: InputMaybe<Scalars['String']['input']>;
|
country?: InputMaybe<Scalars['String']['input']>;
|
||||||
east?: InputMaybe<Scalars['Float']['input']>;
|
east?: InputMaybe<Scalars['Float']['input']>;
|
||||||
@@ -307,51 +243,51 @@ export type QueryNodesArgs = {
|
|||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
search?: InputMaybe<Scalars['String']['input']>;
|
search?: InputMaybe<Scalars['String']['input']>;
|
||||||
south?: InputMaybe<Scalars['Float']['input']>;
|
south?: InputMaybe<Scalars['Float']['input']>;
|
||||||
transportType?: InputMaybe<Scalars['String']['input']>;
|
transport_type?: InputMaybe<Scalars['String']['input']>;
|
||||||
west?: InputMaybe<Scalars['Float']['input']>;
|
west?: InputMaybe<Scalars['Float']['input']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryNodes_CountArgs = {
|
||||||
export type QueryNodesCountArgs = {
|
|
||||||
country?: InputMaybe<Scalars['String']['input']>;
|
country?: InputMaybe<Scalars['String']['input']>;
|
||||||
east?: InputMaybe<Scalars['Float']['input']>;
|
east?: InputMaybe<Scalars['Float']['input']>;
|
||||||
north?: InputMaybe<Scalars['Float']['input']>;
|
north?: InputMaybe<Scalars['Float']['input']>;
|
||||||
south?: InputMaybe<Scalars['Float']['input']>;
|
south?: InputMaybe<Scalars['Float']['input']>;
|
||||||
transportType?: InputMaybe<Scalars['String']['input']>;
|
transport_type?: InputMaybe<Scalars['String']['input']>;
|
||||||
west?: InputMaybe<Scalars['Float']['input']>;
|
west?: InputMaybe<Scalars['Float']['input']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryOffer_To_HubArgs = {
|
||||||
export type QueryOffersByProductArgs = {
|
hub_uuid: Scalars['String']['input'];
|
||||||
productUuid: Scalars['String']['input'];
|
offer_uuid: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryOffers_By_HubArgs = {
|
||||||
export type QueryOffersBySupplierProductArgs = {
|
hub_uuid: Scalars['String']['input'];
|
||||||
productUuid: Scalars['String']['input'];
|
|
||||||
supplierUuid: Scalars['String']['input'];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
|
||||||
export type QueryOffersForHubArgs = {
|
|
||||||
hubUuid: Scalars['String']['input'];
|
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
productUuid: Scalars['String']['input'];
|
product_uuid: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryOffers_By_ProductArgs = {
|
||||||
export type QueryProductsBySupplierArgs = {
|
product_uuid: Scalars['String']['input'];
|
||||||
supplierUuid: Scalars['String']['input'];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryOffers_By_Supplier_ProductArgs = {
|
||||||
export type QueryProductsListArgs = {
|
product_uuid: Scalars['String']['input'];
|
||||||
|
supplier_uuid: Scalars['String']['input'];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export type QueryProducts_By_SupplierArgs = {
|
||||||
|
supplier_uuid: Scalars['String']['input'];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export type QueryProducts_ListArgs = {
|
||||||
east?: InputMaybe<Scalars['Float']['input']>;
|
east?: InputMaybe<Scalars['Float']['input']>;
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
north?: InputMaybe<Scalars['Float']['input']>;
|
north?: InputMaybe<Scalars['Float']['input']>;
|
||||||
@@ -361,50 +297,33 @@ export type QueryProductsListArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryProducts_Near_HubArgs = {
|
||||||
export type QueryProductsNearHubArgs = {
|
hub_uuid: Scalars['String']['input'];
|
||||||
hubUuid: Scalars['String']['input'];
|
radius_km?: InputMaybe<Scalars['Float']['input']>;
|
||||||
radiusKm?: InputMaybe<Scalars['Float']['input']>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryRail_RouteArgs = {
|
||||||
export type QueryQuoteCalculationsArgs = {
|
from_lat: Scalars['Float']['input'];
|
||||||
hubUuid?: InputMaybe<Scalars['String']['input']>;
|
from_lon: Scalars['Float']['input'];
|
||||||
lat: Scalars['Float']['input'];
|
to_lat: Scalars['Float']['input'];
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
to_lon: Scalars['Float']['input'];
|
||||||
lon: Scalars['Float']['input'];
|
|
||||||
productUuid?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
quantity?: InputMaybe<Scalars['Float']['input']>;
|
|
||||||
radius?: InputMaybe<Scalars['Float']['input']>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QueryRoute_To_CoordinateArgs = {
|
||||||
export type QueryRailRouteArgs = {
|
|
||||||
fromLat: Scalars['Float']['input'];
|
|
||||||
fromLon: Scalars['Float']['input'];
|
|
||||||
toLat: Scalars['Float']['input'];
|
|
||||||
toLon: Scalars['Float']['input'];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
|
||||||
export type QueryRouteToCoordinateArgs = {
|
|
||||||
lat: Scalars['Float']['input'];
|
lat: Scalars['Float']['input'];
|
||||||
lon: Scalars['Float']['input'];
|
lon: Scalars['Float']['input'];
|
||||||
offerUuid: Scalars['String']['input'];
|
offer_uuid: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QuerySuppliers_For_ProductArgs = {
|
||||||
export type QuerySuppliersForProductArgs = {
|
product_uuid: Scalars['String']['input'];
|
||||||
productUuid: Scalars['String']['input'];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Root query. */
|
export type QuerySuppliers_ListArgs = {
|
||||||
export type QuerySuppliersListArgs = {
|
|
||||||
country?: InputMaybe<Scalars['String']['input']>;
|
country?: InputMaybe<Scalars['String']['input']>;
|
||||||
east?: InputMaybe<Scalars['Float']['input']>;
|
east?: InputMaybe<Scalars['Float']['input']>;
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
@@ -414,42 +333,37 @@ export type QuerySuppliersListArgs = {
|
|||||||
west?: InputMaybe<Scalars['Float']['input']>;
|
west?: InputMaybe<Scalars['Float']['input']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Complete route through graph with multiple stages. */
|
export type Route = {
|
||||||
export type RoutePathType = {
|
__typename?: 'Route';
|
||||||
__typename?: 'RoutePathType';
|
distance_km?: Maybe<Scalars['Float']['output']>;
|
||||||
stages?: Maybe<Array<Maybe<RouteStageType>>>;
|
geometry?: Maybe<Scalars['JSON']['output']>;
|
||||||
totalDistanceKm?: Maybe<Scalars['Float']['output']>;
|
|
||||||
totalTimeSeconds?: Maybe<Scalars['Int']['output']>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Single stage in a multi-hop route. */
|
export type RoutePath = {
|
||||||
export type RouteStageType = {
|
__typename?: 'RoutePath';
|
||||||
__typename?: 'RouteStageType';
|
stages?: Maybe<Array<Maybe<RouteStage>>>;
|
||||||
distanceKm?: Maybe<Scalars['Float']['output']>;
|
total_distance_km?: Maybe<Scalars['Float']['output']>;
|
||||||
fromLat?: Maybe<Scalars['Float']['output']>;
|
total_time_seconds?: Maybe<Scalars['Int']['output']>;
|
||||||
fromLon?: Maybe<Scalars['Float']['output']>;
|
|
||||||
fromName?: Maybe<Scalars['String']['output']>;
|
|
||||||
fromUuid?: Maybe<Scalars['String']['output']>;
|
|
||||||
toLat?: Maybe<Scalars['Float']['output']>;
|
|
||||||
toLon?: Maybe<Scalars['Float']['output']>;
|
|
||||||
toName?: Maybe<Scalars['String']['output']>;
|
|
||||||
toUuid?: Maybe<Scalars['String']['output']>;
|
|
||||||
transportType?: Maybe<Scalars['String']['output']>;
|
|
||||||
travelTimeSeconds?: Maybe<Scalars['Int']['output']>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Route between two points with geometry. */
|
export type RouteStage = {
|
||||||
export type RouteType = {
|
__typename?: 'RouteStage';
|
||||||
__typename?: 'RouteType';
|
distance_km?: Maybe<Scalars['Float']['output']>;
|
||||||
distanceKm?: Maybe<Scalars['Float']['output']>;
|
from_lat?: Maybe<Scalars['Float']['output']>;
|
||||||
/** GeoJSON LineString coordinates */
|
from_lon?: Maybe<Scalars['Float']['output']>;
|
||||||
geometry?: Maybe<Scalars['JSONString']['output']>;
|
from_name?: Maybe<Scalars['String']['output']>;
|
||||||
|
from_uuid?: Maybe<Scalars['String']['output']>;
|
||||||
|
to_lat?: Maybe<Scalars['Float']['output']>;
|
||||||
|
to_lon?: Maybe<Scalars['Float']['output']>;
|
||||||
|
to_name?: Maybe<Scalars['String']['output']>;
|
||||||
|
to_uuid?: Maybe<Scalars['String']['output']>;
|
||||||
|
transport_type?: Maybe<Scalars['String']['output']>;
|
||||||
|
travel_time_seconds?: Maybe<Scalars['Int']['output']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Unique supplier from offers. */
|
export type Supplier = {
|
||||||
export type SupplierType = {
|
__typename?: 'Supplier';
|
||||||
__typename?: 'SupplierType';
|
distance_km?: Maybe<Scalars['Float']['output']>;
|
||||||
distanceKm?: Maybe<Scalars['Float']['output']>;
|
|
||||||
latitude?: Maybe<Scalars['Float']['output']>;
|
latitude?: Maybe<Scalars['Float']['output']>;
|
||||||
longitude?: Maybe<Scalars['Float']['output']>;
|
longitude?: Maybe<Scalars['Float']['output']>;
|
||||||
name?: Maybe<Scalars['String']['output']>;
|
name?: Maybe<Scalars['String']['output']>;
|
||||||
@@ -464,7 +378,7 @@ export type GetAutoRouteQueryVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetAutoRouteQueryResult = { __typename?: 'Query', autoRoute?: { __typename?: 'RouteType', distanceKm?: number | null, geometry?: Record<string, unknown> | null } | null };
|
export type GetAutoRouteQueryResult = { __typename?: 'Query', auto_route?: { __typename?: 'Route', distance_km?: number | null, geometry?: Record<string, unknown> | null } | null };
|
||||||
|
|
||||||
export type GetClusteredNodesQueryVariables = Exact<{
|
export type GetClusteredNodesQueryVariables = Exact<{
|
||||||
west: Scalars['Float']['input'];
|
west: Scalars['Float']['input'];
|
||||||
@@ -474,25 +388,22 @@ export type GetClusteredNodesQueryVariables = Exact<{
|
|||||||
zoom: Scalars['Int']['input'];
|
zoom: Scalars['Int']['input'];
|
||||||
transportType?: InputMaybe<Scalars['String']['input']>;
|
transportType?: InputMaybe<Scalars['String']['input']>;
|
||||||
nodeType?: InputMaybe<Scalars['String']['input']>;
|
nodeType?: InputMaybe<Scalars['String']['input']>;
|
||||||
productUuid?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
hubUuid?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
supplierUuid?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetClusteredNodesQueryResult = { __typename?: 'Query', clusteredNodes?: Array<{ __typename?: 'ClusterPointType', id?: string | null, latitude?: number | null, longitude?: number | null, count?: number | null, expansionZoom?: number | null, name?: string | null } | null> | null };
|
export type GetClusteredNodesQueryResult = { __typename?: 'Query', clustered_nodes: Array<{ __typename?: 'ClusterPoint', id?: string | null, latitude?: number | null, longitude?: number | null, count?: number | null, expansion_zoom?: number | null, name?: string | null }> };
|
||||||
|
|
||||||
export type GetHubCountriesQueryVariables = Exact<{ [key: string]: never; }>;
|
export type GetHubCountriesQueryVariables = Exact<{ [key: string]: never; }>;
|
||||||
|
|
||||||
|
|
||||||
export type GetHubCountriesQueryResult = { __typename?: 'Query', hubCountries?: Array<string | null> | null };
|
export type GetHubCountriesQueryResult = { __typename?: 'Query', hub_countries: Array<string> };
|
||||||
|
|
||||||
export type GetNodeQueryVariables = Exact<{
|
export type GetNodeQueryVariables = Exact<{
|
||||||
uuid: Scalars['String']['input'];
|
uuid: Scalars['String']['input'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetNodeQueryResult = { __typename?: 'Query', node?: { __typename?: 'NodeType', uuid?: string | null, name?: string | null, latitude?: number | null, longitude?: number | null, country?: string | null, countryCode?: string | null, transportTypes?: Array<string | null> | null } | null };
|
export type GetNodeQueryResult = { __typename?: 'Query', node?: { __typename?: 'Node', uuid?: string | null, name?: string | null, latitude?: number | null, longitude?: number | null, country?: string | null, country_code?: string | null, transport_types?: Array<string | null> | null } | null };
|
||||||
|
|
||||||
export type GetRailRouteQueryVariables = Exact<{
|
export type GetRailRouteQueryVariables = Exact<{
|
||||||
fromLat: Scalars['Float']['input'];
|
fromLat: Scalars['Float']['input'];
|
||||||
@@ -502,7 +413,7 @@ export type GetRailRouteQueryVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetRailRouteQueryResult = { __typename?: 'Query', railRoute?: { __typename?: 'RouteType', distanceKm?: number | null, geometry?: Record<string, unknown> | null } | null };
|
export type GetRailRouteQueryResult = { __typename?: 'Query', rail_route?: { __typename?: 'Route', distance_km?: number | null, geometry?: Record<string, unknown> | null } | null };
|
||||||
|
|
||||||
export type HubsListQueryVariables = Exact<{
|
export type HubsListQueryVariables = Exact<{
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
@@ -516,7 +427,7 @@ export type HubsListQueryVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type HubsListQueryResult = { __typename?: 'Query', hubsList?: Array<{ __typename?: 'NodeType', uuid?: string | null, name?: string | null, latitude?: number | null, longitude?: number | null, country?: string | null, countryCode?: string | null, transportTypes?: Array<string | null> | null } | null> | null };
|
export type HubsListQueryResult = { __typename?: 'Query', hubs_list: Array<{ __typename?: 'Node', uuid?: string | null, name?: string | null, latitude?: number | null, longitude?: number | null, country?: string | null, country_code?: string | null, transport_types?: Array<string | null> | null }> };
|
||||||
|
|
||||||
export type NearestHubsQueryVariables = Exact<{
|
export type NearestHubsQueryVariables = Exact<{
|
||||||
lat: Scalars['Float']['input'];
|
lat: Scalars['Float']['input'];
|
||||||
@@ -524,11 +435,10 @@ export type NearestHubsQueryVariables = Exact<{
|
|||||||
radius?: InputMaybe<Scalars['Float']['input']>;
|
radius?: InputMaybe<Scalars['Float']['input']>;
|
||||||
productUuid?: InputMaybe<Scalars['String']['input']>;
|
productUuid?: InputMaybe<Scalars['String']['input']>;
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
useGraph?: InputMaybe<Scalars['Boolean']['input']>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type NearestHubsQueryResult = { __typename?: 'Query', nearestHubs?: Array<{ __typename?: 'NodeType', uuid?: string | null, name?: string | null, latitude?: number | null, longitude?: number | null, country?: string | null, countryCode?: string | null, transportTypes?: Array<string | null> | null } | null> | null };
|
export type NearestHubsQueryResult = { __typename?: 'Query', nearest_hubs: Array<{ __typename?: 'Node', uuid?: string | null, name?: string | null, latitude?: number | null, longitude?: number | null, country?: string | null, country_code?: string | null, transport_types?: Array<string | null> | null }> };
|
||||||
|
|
||||||
export type NearestOffersQueryVariables = Exact<{
|
export type NearestOffersQueryVariables = Exact<{
|
||||||
lat: Scalars['Float']['input'];
|
lat: Scalars['Float']['input'];
|
||||||
@@ -540,7 +450,7 @@ export type NearestOffersQueryVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type NearestOffersQueryResult = { __typename?: 'Query', nearestOffers?: Array<{ __typename?: 'OfferWithRouteType', uuid?: string | null, productUuid?: string | null, productName?: string | null, supplierUuid?: string | null, supplierName?: string | null, latitude?: number | null, longitude?: number | null, country?: string | null, countryCode?: string | null, pricePerUnit?: string | null, currency?: string | null, quantity?: string | null, unit?: string | null, distanceKm?: number | null, routes?: Array<{ __typename?: 'RoutePathType', totalDistanceKm?: number | null, totalTimeSeconds?: number | null, stages?: Array<{ __typename?: 'RouteStageType', fromUuid?: string | null, fromName?: string | null, fromLat?: number | null, fromLon?: number | null, toUuid?: string | null, toName?: string | null, toLat?: number | null, toLon?: number | null, distanceKm?: number | null, travelTimeSeconds?: number | null, transportType?: string | null } | null> | null } | null> | null } | null> | null };
|
export type NearestOffersQueryResult = { __typename?: 'Query', nearest_offers: Array<{ __typename?: 'OfferWithRoute', uuid?: string | null, product_uuid?: string | null, product_name?: string | null, supplier_uuid?: string | null, supplier_name?: string | null, latitude?: number | null, longitude?: number | null, country?: string | null, country_code?: string | null, price_per_unit?: string | null, currency?: string | null, quantity?: string | null, unit?: string | null, distance_km?: number | null, routes?: Array<{ __typename?: 'RoutePath', total_distance_km?: number | null, total_time_seconds?: number | null, stages?: Array<{ __typename?: 'RouteStage', from_uuid?: string | null, from_name?: string | null, from_lat?: number | null, from_lon?: number | null, to_uuid?: string | null, to_name?: string | null, to_lat?: number | null, to_lon?: number | null, distance_km?: number | null, travel_time_seconds?: number | null, transport_type?: string | null } | null> | null } | null> | null }> };
|
||||||
|
|
||||||
export type NearestSuppliersQueryVariables = Exact<{
|
export type NearestSuppliersQueryVariables = Exact<{
|
||||||
lat: Scalars['Float']['input'];
|
lat: Scalars['Float']['input'];
|
||||||
@@ -551,7 +461,7 @@ export type NearestSuppliersQueryVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type NearestSuppliersQueryResult = { __typename?: 'Query', nearestSuppliers?: Array<{ __typename?: 'SupplierType', uuid?: string | null } | null> | null };
|
export type NearestSuppliersQueryResult = { __typename?: 'Query', nearest_suppliers: Array<{ __typename?: 'Supplier', uuid?: string | null }> };
|
||||||
|
|
||||||
export type ProductsListQueryVariables = Exact<{
|
export type ProductsListQueryVariables = Exact<{
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
@@ -563,20 +473,7 @@ export type ProductsListQueryVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type ProductsListQueryResult = { __typename?: 'Query', productsList?: Array<{ __typename?: 'ProductType', uuid?: string | null, name?: string | null, offersCount?: number | null } | null> | null };
|
export type ProductsListQueryResult = { __typename?: 'Query', products_list: Array<{ __typename?: 'Product', uuid?: string | null, name?: string | null, offers_count?: number | null }> };
|
||||||
|
|
||||||
export type QuoteCalculationsQueryVariables = Exact<{
|
|
||||||
lat: Scalars['Float']['input'];
|
|
||||||
lon: Scalars['Float']['input'];
|
|
||||||
radius?: InputMaybe<Scalars['Float']['input']>;
|
|
||||||
productUuid?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
hubUuid?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
quantity?: InputMaybe<Scalars['Float']['input']>;
|
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
|
|
||||||
export type QuoteCalculationsQueryResult = { __typename?: 'Query', quoteCalculations?: Array<{ __typename?: 'OfferCalculationType', offers?: Array<{ __typename?: 'OfferWithRouteType', uuid?: string | null, productUuid?: string | null, productName?: string | null, supplierUuid?: string | null, supplierName?: string | null, latitude?: number | null, longitude?: number | null, country?: string | null, countryCode?: string | null, pricePerUnit?: string | null, currency?: string | null, quantity?: string | null, unit?: string | null, distanceKm?: number | null, routes?: Array<{ __typename?: 'RoutePathType', totalDistanceKm?: number | null, totalTimeSeconds?: number | null, stages?: Array<{ __typename?: 'RouteStageType', fromUuid?: string | null, fromName?: string | null, fromLat?: number | null, fromLon?: number | null, toUuid?: string | null, toName?: string | null, toLat?: number | null, toLon?: number | null, distanceKm?: number | null, travelTimeSeconds?: number | null, transportType?: string | null } | null> | null } | null> | null } | null> | null } | null> | null };
|
|
||||||
|
|
||||||
export type SuppliersListQueryVariables = Exact<{
|
export type SuppliersListQueryVariables = Exact<{
|
||||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||||
@@ -589,18 +486,17 @@ export type SuppliersListQueryVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type SuppliersListQueryResult = { __typename?: 'Query', suppliersList?: Array<{ __typename?: 'SupplierType', uuid?: string | null, name?: string | null, latitude?: number | null, longitude?: number | null } | null> | null };
|
export type SuppliersListQueryResult = { __typename?: 'Query', suppliers_list: Array<{ __typename?: 'Supplier', uuid?: string | null, name?: string | null, latitude?: number | null, longitude?: number | null }> };
|
||||||
|
|
||||||
|
|
||||||
export const GetAutoRouteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAutoRoute"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromLat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromLon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toLat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toLon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"autoRoute"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fromLat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromLat"}}},{"kind":"Argument","name":{"kind":"Name","value":"fromLon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromLon"}}},{"kind":"Argument","name":{"kind":"Name","value":"toLat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toLat"}}},{"kind":"Argument","name":{"kind":"Name","value":"toLon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toLon"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"distanceKm"}},{"kind":"Field","name":{"kind":"Name","value":"geometry"}}]}}]}}]} as unknown as DocumentNode<GetAutoRouteQueryResult, GetAutoRouteQueryVariables>;
|
export const GetAutoRouteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAutoRoute"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromLat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromLon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toLat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toLon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"auto_route"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"from_lat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromLat"}}},{"kind":"Argument","name":{"kind":"Name","value":"from_lon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromLon"}}},{"kind":"Argument","name":{"kind":"Name","value":"to_lat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toLat"}}},{"kind":"Argument","name":{"kind":"Name","value":"to_lon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toLon"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"distance_km"}},{"kind":"Field","name":{"kind":"Name","value":"geometry"}}]}}]}}]} as unknown as DocumentNode<GetAutoRouteQueryResult, GetAutoRouteQueryVariables>;
|
||||||
export const GetClusteredNodesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetClusteredNodes"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"west"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"south"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"east"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"north"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"zoom"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transportType"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nodeType"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hubUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"supplierUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"clusteredNodes"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"west"},"value":{"kind":"Variable","name":{"kind":"Name","value":"west"}}},{"kind":"Argument","name":{"kind":"Name","value":"south"},"value":{"kind":"Variable","name":{"kind":"Name","value":"south"}}},{"kind":"Argument","name":{"kind":"Name","value":"east"},"value":{"kind":"Variable","name":{"kind":"Name","value":"east"}}},{"kind":"Argument","name":{"kind":"Name","value":"north"},"value":{"kind":"Variable","name":{"kind":"Name","value":"north"}}},{"kind":"Argument","name":{"kind":"Name","value":"zoom"},"value":{"kind":"Variable","name":{"kind":"Name","value":"zoom"}}},{"kind":"Argument","name":{"kind":"Name","value":"transportType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transportType"}}},{"kind":"Argument","name":{"kind":"Name","value":"nodeType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"nodeType"}}},{"kind":"Argument","name":{"kind":"Name","value":"productUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"hubUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hubUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"supplierUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"supplierUuid"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"count"}},{"kind":"Field","name":{"kind":"Name","value":"expansionZoom"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<GetClusteredNodesQueryResult, GetClusteredNodesQueryVariables>;
|
export const GetClusteredNodesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetClusteredNodes"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"west"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"south"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"east"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"north"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"zoom"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transportType"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"nodeType"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"clustered_nodes"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"west"},"value":{"kind":"Variable","name":{"kind":"Name","value":"west"}}},{"kind":"Argument","name":{"kind":"Name","value":"south"},"value":{"kind":"Variable","name":{"kind":"Name","value":"south"}}},{"kind":"Argument","name":{"kind":"Name","value":"east"},"value":{"kind":"Variable","name":{"kind":"Name","value":"east"}}},{"kind":"Argument","name":{"kind":"Name","value":"north"},"value":{"kind":"Variable","name":{"kind":"Name","value":"north"}}},{"kind":"Argument","name":{"kind":"Name","value":"zoom"},"value":{"kind":"Variable","name":{"kind":"Name","value":"zoom"}}},{"kind":"Argument","name":{"kind":"Name","value":"transport_type"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transportType"}}},{"kind":"Argument","name":{"kind":"Name","value":"node_type"},"value":{"kind":"Variable","name":{"kind":"Name","value":"nodeType"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"count"}},{"kind":"Field","name":{"kind":"Name","value":"expansion_zoom"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<GetClusteredNodesQueryResult, GetClusteredNodesQueryVariables>;
|
||||||
export const GetHubCountriesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetHubCountries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubCountries"}}]}}]} as unknown as DocumentNode<GetHubCountriesQueryResult, GetHubCountriesQueryVariables>;
|
export const GetHubCountriesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetHubCountries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hub_countries"}}]}}]} as unknown as DocumentNode<GetHubCountriesQueryResult, GetHubCountriesQueryVariables>;
|
||||||
export const GetNodeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetNode"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"uuid"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"uuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"uuid"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"countryCode"}},{"kind":"Field","name":{"kind":"Name","value":"transportTypes"}}]}}]}}]} as unknown as DocumentNode<GetNodeQueryResult, GetNodeQueryVariables>;
|
export const GetNodeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetNode"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"uuid"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"uuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"uuid"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"country_code"}},{"kind":"Field","name":{"kind":"Name","value":"transport_types"}}]}}]}}]} as unknown as DocumentNode<GetNodeQueryResult, GetNodeQueryVariables>;
|
||||||
export const GetRailRouteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetRailRoute"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromLat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromLon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toLat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toLon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"railRoute"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fromLat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromLat"}}},{"kind":"Argument","name":{"kind":"Name","value":"fromLon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromLon"}}},{"kind":"Argument","name":{"kind":"Name","value":"toLat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toLat"}}},{"kind":"Argument","name":{"kind":"Name","value":"toLon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toLon"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"distanceKm"}},{"kind":"Field","name":{"kind":"Name","value":"geometry"}}]}}]}}]} as unknown as DocumentNode<GetRailRouteQueryResult, GetRailRouteQueryVariables>;
|
export const GetRailRouteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetRailRoute"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromLat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromLon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toLat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toLon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rail_route"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"from_lat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromLat"}}},{"kind":"Argument","name":{"kind":"Name","value":"from_lon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromLon"}}},{"kind":"Argument","name":{"kind":"Name","value":"to_lat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toLat"}}},{"kind":"Argument","name":{"kind":"Name","value":"to_lon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toLon"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"distance_km"}},{"kind":"Field","name":{"kind":"Name","value":"geometry"}}]}}]}}]} as unknown as DocumentNode<GetRailRouteQueryResult, GetRailRouteQueryVariables>;
|
||||||
export const HubsListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"HubsList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"country"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transportType"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"west"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"south"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"east"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"north"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubsList"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"country"},"value":{"kind":"Variable","name":{"kind":"Name","value":"country"}}},{"kind":"Argument","name":{"kind":"Name","value":"transportType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transportType"}}},{"kind":"Argument","name":{"kind":"Name","value":"west"},"value":{"kind":"Variable","name":{"kind":"Name","value":"west"}}},{"kind":"Argument","name":{"kind":"Name","value":"south"},"value":{"kind":"Variable","name":{"kind":"Name","value":"south"}}},{"kind":"Argument","name":{"kind":"Name","value":"east"},"value":{"kind":"Variable","name":{"kind":"Name","value":"east"}}},{"kind":"Argument","name":{"kind":"Name","value":"north"},"value":{"kind":"Variable","name":{"kind":"Name","value":"north"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"countryCode"}},{"kind":"Field","name":{"kind":"Name","value":"transportTypes"}}]}}]}}]} as unknown as DocumentNode<HubsListQueryResult, HubsListQueryVariables>;
|
export const HubsListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"HubsList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"country"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transportType"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"west"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"south"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"east"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"north"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubs_list"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"country"},"value":{"kind":"Variable","name":{"kind":"Name","value":"country"}}},{"kind":"Argument","name":{"kind":"Name","value":"transport_type"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transportType"}}},{"kind":"Argument","name":{"kind":"Name","value":"west"},"value":{"kind":"Variable","name":{"kind":"Name","value":"west"}}},{"kind":"Argument","name":{"kind":"Name","value":"south"},"value":{"kind":"Variable","name":{"kind":"Name","value":"south"}}},{"kind":"Argument","name":{"kind":"Name","value":"east"},"value":{"kind":"Variable","name":{"kind":"Name","value":"east"}}},{"kind":"Argument","name":{"kind":"Name","value":"north"},"value":{"kind":"Variable","name":{"kind":"Name","value":"north"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"country_code"}},{"kind":"Field","name":{"kind":"Name","value":"transport_types"}}]}}]}}]} as unknown as DocumentNode<HubsListQueryResult, HubsListQueryVariables>;
|
||||||
export const NearestHubsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"NearestHubs"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"radius"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"useGraph"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nearestHubs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"lat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lat"}}},{"kind":"Argument","name":{"kind":"Name","value":"lon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lon"}}},{"kind":"Argument","name":{"kind":"Name","value":"radius"},"value":{"kind":"Variable","name":{"kind":"Name","value":"radius"}}},{"kind":"Argument","name":{"kind":"Name","value":"productUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"useGraph"},"value":{"kind":"Variable","name":{"kind":"Name","value":"useGraph"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"countryCode"}},{"kind":"Field","name":{"kind":"Name","value":"transportTypes"}}]}}]}}]} as unknown as DocumentNode<NearestHubsQueryResult, NearestHubsQueryVariables>;
|
export const NearestHubsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"NearestHubs"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"radius"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nearest_hubs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"lat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lat"}}},{"kind":"Argument","name":{"kind":"Name","value":"lon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lon"}}},{"kind":"Argument","name":{"kind":"Name","value":"radius"},"value":{"kind":"Variable","name":{"kind":"Name","value":"radius"}}},{"kind":"Argument","name":{"kind":"Name","value":"product_uuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"country_code"}},{"kind":"Field","name":{"kind":"Name","value":"transport_types"}}]}}]}}]} as unknown as DocumentNode<NearestHubsQueryResult, NearestHubsQueryVariables>;
|
||||||
export const NearestOffersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"NearestOffers"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"radius"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hubUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nearestOffers"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"lat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lat"}}},{"kind":"Argument","name":{"kind":"Name","value":"lon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lon"}}},{"kind":"Argument","name":{"kind":"Name","value":"radius"},"value":{"kind":"Variable","name":{"kind":"Name","value":"radius"}}},{"kind":"Argument","name":{"kind":"Name","value":"productUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"hubUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hubUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"productUuid"}},{"kind":"Field","name":{"kind":"Name","value":"productName"}},{"kind":"Field","name":{"kind":"Name","value":"supplierUuid"}},{"kind":"Field","name":{"kind":"Name","value":"supplierName"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"countryCode"}},{"kind":"Field","name":{"kind":"Name","value":"pricePerUnit"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"unit"}},{"kind":"Field","name":{"kind":"Name","value":"distanceKm"}},{"kind":"Field","name":{"kind":"Name","value":"routes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalDistanceKm"}},{"kind":"Field","name":{"kind":"Name","value":"totalTimeSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"stages"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fromUuid"}},{"kind":"Field","name":{"kind":"Name","value":"fromName"}},{"kind":"Field","name":{"kind":"Name","value":"fromLat"}},{"kind":"Field","name":{"kind":"Name","value":"fromLon"}},{"kind":"Field","name":{"kind":"Name","value":"toUuid"}},{"kind":"Field","name":{"kind":"Name","value":"toName"}},{"kind":"Field","name":{"kind":"Name","value":"toLat"}},{"kind":"Field","name":{"kind":"Name","value":"toLon"}},{"kind":"Field","name":{"kind":"Name","value":"distanceKm"}},{"kind":"Field","name":{"kind":"Name","value":"travelTimeSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"transportType"}}]}}]}}]}}]}}]} as unknown as DocumentNode<NearestOffersQueryResult, NearestOffersQueryVariables>;
|
export const NearestOffersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"NearestOffers"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"radius"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hubUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nearest_offers"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"lat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lat"}}},{"kind":"Argument","name":{"kind":"Name","value":"lon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lon"}}},{"kind":"Argument","name":{"kind":"Name","value":"radius"},"value":{"kind":"Variable","name":{"kind":"Name","value":"radius"}}},{"kind":"Argument","name":{"kind":"Name","value":"product_uuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"hub_uuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hubUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"product_uuid"}},{"kind":"Field","name":{"kind":"Name","value":"product_name"}},{"kind":"Field","name":{"kind":"Name","value":"supplier_uuid"}},{"kind":"Field","name":{"kind":"Name","value":"supplier_name"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"country_code"}},{"kind":"Field","name":{"kind":"Name","value":"price_per_unit"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"unit"}},{"kind":"Field","name":{"kind":"Name","value":"distance_km"}},{"kind":"Field","name":{"kind":"Name","value":"routes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_distance_km"}},{"kind":"Field","name":{"kind":"Name","value":"total_time_seconds"}},{"kind":"Field","name":{"kind":"Name","value":"stages"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"from_uuid"}},{"kind":"Field","name":{"kind":"Name","value":"from_name"}},{"kind":"Field","name":{"kind":"Name","value":"from_lat"}},{"kind":"Field","name":{"kind":"Name","value":"from_lon"}},{"kind":"Field","name":{"kind":"Name","value":"to_uuid"}},{"kind":"Field","name":{"kind":"Name","value":"to_name"}},{"kind":"Field","name":{"kind":"Name","value":"to_lat"}},{"kind":"Field","name":{"kind":"Name","value":"to_lon"}},{"kind":"Field","name":{"kind":"Name","value":"distance_km"}},{"kind":"Field","name":{"kind":"Name","value":"travel_time_seconds"}},{"kind":"Field","name":{"kind":"Name","value":"transport_type"}}]}}]}}]}}]}}]} as unknown as DocumentNode<NearestOffersQueryResult, NearestOffersQueryVariables>;
|
||||||
export const NearestSuppliersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"NearestSuppliers"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"radius"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nearestSuppliers"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"lat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lat"}}},{"kind":"Argument","name":{"kind":"Name","value":"lon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lon"}}},{"kind":"Argument","name":{"kind":"Name","value":"radius"},"value":{"kind":"Variable","name":{"kind":"Name","value":"radius"}}},{"kind":"Argument","name":{"kind":"Name","value":"productUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}}]}}]} as unknown as DocumentNode<NearestSuppliersQueryResult, NearestSuppliersQueryVariables>;
|
export const NearestSuppliersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"NearestSuppliers"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"radius"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nearest_suppliers"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"lat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lat"}}},{"kind":"Argument","name":{"kind":"Name","value":"lon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lon"}}},{"kind":"Argument","name":{"kind":"Name","value":"radius"},"value":{"kind":"Variable","name":{"kind":"Name","value":"radius"}}},{"kind":"Argument","name":{"kind":"Name","value":"product_uuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}}]}}]} as unknown as DocumentNode<NearestSuppliersQueryResult, NearestSuppliersQueryVariables>;
|
||||||
export const ProductsListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ProductsList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"west"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"south"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"east"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"north"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productsList"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"west"},"value":{"kind":"Variable","name":{"kind":"Name","value":"west"}}},{"kind":"Argument","name":{"kind":"Name","value":"south"},"value":{"kind":"Variable","name":{"kind":"Name","value":"south"}}},{"kind":"Argument","name":{"kind":"Name","value":"east"},"value":{"kind":"Variable","name":{"kind":"Name","value":"east"}}},{"kind":"Argument","name":{"kind":"Name","value":"north"},"value":{"kind":"Variable","name":{"kind":"Name","value":"north"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"offersCount"}}]}}]}}]} as unknown as DocumentNode<ProductsListQueryResult, ProductsListQueryVariables>;
|
export const ProductsListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ProductsList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"west"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"south"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"east"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"north"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"products_list"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"west"},"value":{"kind":"Variable","name":{"kind":"Name","value":"west"}}},{"kind":"Argument","name":{"kind":"Name","value":"south"},"value":{"kind":"Variable","name":{"kind":"Name","value":"south"}}},{"kind":"Argument","name":{"kind":"Name","value":"east"},"value":{"kind":"Variable","name":{"kind":"Name","value":"east"}}},{"kind":"Argument","name":{"kind":"Name","value":"north"},"value":{"kind":"Variable","name":{"kind":"Name","value":"north"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"offers_count"}}]}}]}}]} as unknown as DocumentNode<ProductsListQueryResult, ProductsListQueryVariables>;
|
||||||
export const QuoteCalculationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"QuoteCalculations"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lat"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lon"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"radius"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hubUuid"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"quantity"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"quoteCalculations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"lat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lat"}}},{"kind":"Argument","name":{"kind":"Name","value":"lon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lon"}}},{"kind":"Argument","name":{"kind":"Name","value":"radius"},"value":{"kind":"Variable","name":{"kind":"Name","value":"radius"}}},{"kind":"Argument","name":{"kind":"Name","value":"productUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"hubUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hubUuid"}}},{"kind":"Argument","name":{"kind":"Name","value":"quantity"},"value":{"kind":"Variable","name":{"kind":"Name","value":"quantity"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"offers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"productUuid"}},{"kind":"Field","name":{"kind":"Name","value":"productName"}},{"kind":"Field","name":{"kind":"Name","value":"supplierUuid"}},{"kind":"Field","name":{"kind":"Name","value":"supplierName"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"countryCode"}},{"kind":"Field","name":{"kind":"Name","value":"pricePerUnit"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"unit"}},{"kind":"Field","name":{"kind":"Name","value":"distanceKm"}},{"kind":"Field","name":{"kind":"Name","value":"routes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalDistanceKm"}},{"kind":"Field","name":{"kind":"Name","value":"totalTimeSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"stages"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fromUuid"}},{"kind":"Field","name":{"kind":"Name","value":"fromName"}},{"kind":"Field","name":{"kind":"Name","value":"fromLat"}},{"kind":"Field","name":{"kind":"Name","value":"fromLon"}},{"kind":"Field","name":{"kind":"Name","value":"toUuid"}},{"kind":"Field","name":{"kind":"Name","value":"toName"}},{"kind":"Field","name":{"kind":"Name","value":"toLat"}},{"kind":"Field","name":{"kind":"Name","value":"toLon"}},{"kind":"Field","name":{"kind":"Name","value":"distanceKm"}},{"kind":"Field","name":{"kind":"Name","value":"travelTimeSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"transportType"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<QuoteCalculationsQueryResult, QuoteCalculationsQueryVariables>;
|
export const SuppliersListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SuppliersList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"country"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"west"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"south"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"east"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"north"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"suppliers_list"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"country"},"value":{"kind":"Variable","name":{"kind":"Name","value":"country"}}},{"kind":"Argument","name":{"kind":"Name","value":"west"},"value":{"kind":"Variable","name":{"kind":"Name","value":"west"}}},{"kind":"Argument","name":{"kind":"Name","value":"south"},"value":{"kind":"Variable","name":{"kind":"Name","value":"south"}}},{"kind":"Argument","name":{"kind":"Name","value":"east"},"value":{"kind":"Variable","name":{"kind":"Name","value":"east"}}},{"kind":"Argument","name":{"kind":"Name","value":"north"},"value":{"kind":"Variable","name":{"kind":"Name","value":"north"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}}]}}]}}]} as unknown as DocumentNode<SuppliersListQueryResult, SuppliersListQueryVariables>;
|
||||||
export const SuppliersListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SuppliersList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"country"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"west"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"south"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"east"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"north"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"suppliersList"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"country"},"value":{"kind":"Variable","name":{"kind":"Name","value":"country"}}},{"kind":"Argument","name":{"kind":"Name","value":"west"},"value":{"kind":"Variable","name":{"kind":"Name","value":"west"}}},{"kind":"Argument","name":{"kind":"Name","value":"south"},"value":{"kind":"Variable","name":{"kind":"Name","value":"south"}}},{"kind":"Argument","name":{"kind":"Name","value":"east"},"value":{"kind":"Variable","name":{"kind":"Name","value":"east"}}},{"kind":"Argument","name":{"kind":"Name","value":"north"},"value":{"kind":"Variable","name":{"kind":"Name","value":"north"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}}]}}]}}]} as unknown as DocumentNode<SuppliersListQueryResult, SuppliersListQueryVariables>;
|
|
||||||
@@ -13,12 +13,10 @@ export type Scalars = {
|
|||||||
Boolean: { input: boolean; output: boolean; }
|
Boolean: { input: boolean; output: boolean; }
|
||||||
Int: { input: number; output: number; }
|
Int: { input: number; output: number; }
|
||||||
Float: { input: number; output: number; }
|
Float: { input: number; output: number; }
|
||||||
DateTime: { input: string; output: string; }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Full company data (requires auth). */
|
export type CompanyFull = {
|
||||||
export type CompanyFullType = {
|
__typename?: 'CompanyFull';
|
||||||
__typename?: 'CompanyFullType';
|
|
||||||
activities?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
activities?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
||||||
address?: Maybe<Scalars['String']['output']>;
|
address?: Maybe<Scalars['String']['output']>;
|
||||||
capital?: Maybe<Scalars['String']['output']>;
|
capital?: Maybe<Scalars['String']['output']>;
|
||||||
@@ -26,45 +24,35 @@ export type CompanyFullType = {
|
|||||||
director?: Maybe<Scalars['String']['output']>;
|
director?: Maybe<Scalars['String']['output']>;
|
||||||
inn?: Maybe<Scalars['String']['output']>;
|
inn?: Maybe<Scalars['String']['output']>;
|
||||||
isActive?: Maybe<Scalars['Boolean']['output']>;
|
isActive?: Maybe<Scalars['Boolean']['output']>;
|
||||||
lastUpdated?: Maybe<Scalars['DateTime']['output']>;
|
lastUpdated?: Maybe<Scalars['String']['output']>;
|
||||||
name?: Maybe<Scalars['String']['output']>;
|
name?: Maybe<Scalars['String']['output']>;
|
||||||
ogrn?: Maybe<Scalars['String']['output']>;
|
ogrn?: Maybe<Scalars['String']['output']>;
|
||||||
registrationYear?: Maybe<Scalars['Int']['output']>;
|
registrationYear?: Maybe<Scalars['Int']['output']>;
|
||||||
sources?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
sources?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Public company data (teaser). */
|
export type CompanyTeaser = {
|
||||||
export type CompanyTeaserType = {
|
__typename?: 'CompanyTeaser';
|
||||||
__typename?: 'CompanyTeaserType';
|
|
||||||
/** Company type: ООО, АО, ИП, etc. */
|
|
||||||
companyType?: Maybe<Scalars['String']['output']>;
|
companyType?: Maybe<Scalars['String']['output']>;
|
||||||
/** Is company active */
|
|
||||||
isActive?: Maybe<Scalars['Boolean']['output']>;
|
isActive?: Maybe<Scalars['Boolean']['output']>;
|
||||||
/** Year of registration */
|
|
||||||
registrationYear?: Maybe<Scalars['Int']['output']>;
|
registrationYear?: Maybe<Scalars['Int']['output']>;
|
||||||
/** Number of data sources */
|
|
||||||
sourcesCount?: Maybe<Scalars['Int']['output']>;
|
sourcesCount?: Maybe<Scalars['Int']['output']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Public queries - no authentication required. */
|
export type Query = {
|
||||||
export type PublicQuery = {
|
__typename?: 'Query';
|
||||||
__typename?: 'PublicQuery';
|
health: Scalars['String']['output'];
|
||||||
health?: Maybe<Scalars['String']['output']>;
|
kycProfileFull?: Maybe<CompanyFull>;
|
||||||
/** Get full KYC profile data by UUID (requires auth) */
|
kycProfileTeaser?: Maybe<CompanyTeaser>;
|
||||||
kycProfileFull?: Maybe<CompanyFullType>;
|
|
||||||
/** Get public KYC profile teaser data by UUID */
|
|
||||||
kycProfileTeaser?: Maybe<CompanyTeaserType>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Public queries - no authentication required. */
|
export type QueryKycProfileFullArgs = {
|
||||||
export type PublicQueryKycProfileFullArgs = {
|
|
||||||
profileUuid: Scalars['String']['input'];
|
profileUuid: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Public queries - no authentication required. */
|
export type QueryKycProfileTeaserArgs = {
|
||||||
export type PublicQueryKycProfileTeaserArgs = {
|
|
||||||
profileUuid: Scalars['String']['input'];
|
profileUuid: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -73,14 +61,14 @@ export type GetKycProfileFullQueryVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetKycProfileFullQueryResult = { __typename?: 'PublicQuery', kycProfileFull?: { __typename?: 'CompanyFullType', inn?: string | null, ogrn?: string | null, name?: string | null, companyType?: string | null, registrationYear?: number | null, isActive?: boolean | null, address?: string | null, director?: string | null, capital?: string | null, activities?: Array<string | null> | null, sources?: Array<string | null> | null, lastUpdated?: string | null } | null };
|
export type GetKycProfileFullQueryResult = { __typename?: 'Query', kycProfileFull?: { __typename?: 'CompanyFull', inn?: string | null, ogrn?: string | null, name?: string | null, companyType?: string | null, registrationYear?: number | null, isActive?: boolean | null, address?: string | null, director?: string | null, capital?: string | null, activities?: Array<string | null> | null, sources?: Array<string | null> | null, lastUpdated?: string | null } | null };
|
||||||
|
|
||||||
export type GetKycProfileTeaserQueryVariables = Exact<{
|
export type GetKycProfileTeaserQueryVariables = Exact<{
|
||||||
profileUuid: Scalars['String']['input'];
|
profileUuid: Scalars['String']['input'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetKycProfileTeaserQueryResult = { __typename?: 'PublicQuery', kycProfileTeaser?: { __typename?: 'CompanyTeaserType', companyType?: string | null, registrationYear?: number | null, isActive?: boolean | null, sourcesCount?: number | null } | null };
|
export type GetKycProfileTeaserQueryResult = { __typename?: 'Query', kycProfileTeaser?: { __typename?: 'CompanyTeaser', companyType?: string | null, registrationYear?: number | null, isActive?: boolean | null, sourcesCount?: number | null } | null };
|
||||||
|
|
||||||
|
|
||||||
export const GetKycProfileFullDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetKycProfileFull"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"profileUuid"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kycProfileFull"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"profileUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"profileUuid"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"inn"}},{"kind":"Field","name":{"kind":"Name","value":"ogrn"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"companyType"}},{"kind":"Field","name":{"kind":"Name","value":"registrationYear"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"director"}},{"kind":"Field","name":{"kind":"Name","value":"capital"}},{"kind":"Field","name":{"kind":"Name","value":"activities"}},{"kind":"Field","name":{"kind":"Name","value":"sources"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdated"}}]}}]}}]} as unknown as DocumentNode<GetKycProfileFullQueryResult, GetKycProfileFullQueryVariables>;
|
export const GetKycProfileFullDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetKycProfileFull"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"profileUuid"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kycProfileFull"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"profileUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"profileUuid"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"inn"}},{"kind":"Field","name":{"kind":"Name","value":"ogrn"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"companyType"}},{"kind":"Field","name":{"kind":"Name","value":"registrationYear"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"director"}},{"kind":"Field","name":{"kind":"Name","value":"capital"}},{"kind":"Field","name":{"kind":"Name","value":"activities"}},{"kind":"Field","name":{"kind":"Name","value":"sources"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdated"}}]}}]}}]} as unknown as DocumentNode<GetKycProfileFullQueryResult, GetKycProfileFullQueryVariables>;
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import { HubsListDocument, GetHubCountriesDocument, NearestHubsDocument } from '
|
|||||||
const PAGE_SIZE = 500
|
const PAGE_SIZE = 500
|
||||||
|
|
||||||
// Type from codegen - exported for use in pages
|
// Type from codegen - exported for use in pages
|
||||||
export type CatalogHubItem = NonNullable<NonNullable<HubsListQueryResult['hubsList']>[number]>
|
export type CatalogHubItem = NonNullable<NonNullable<HubsListQueryResult['hubs_list']>[number]>
|
||||||
export type CatalogNearestHubItem = NonNullable<NonNullable<NearestHubsQueryResult['nearestHubs']>[number]>
|
export type CatalogNearestHubItem = NonNullable<NonNullable<NearestHubsQueryResult['nearest_hubs']>[number]>
|
||||||
|
|
||||||
// Internal aliases
|
// Internal aliases
|
||||||
type HubItem = CatalogHubItem
|
type HubItem = CatalogHubItem
|
||||||
@@ -75,7 +75,7 @@ export function useCatalogHubs() {
|
|||||||
'public',
|
'public',
|
||||||
'geo'
|
'geo'
|
||||||
)
|
)
|
||||||
const next = (data?.nearestHubs || []).filter((h): h is NearestHubItem => h !== null)
|
const next = (data?.nearest_hubs || []).filter((h): h is NearestHubItem => h !== null)
|
||||||
items.value = next
|
items.value = next
|
||||||
total.value = next.length
|
total.value = next.length
|
||||||
isInitialized.value = true
|
isInitialized.value = true
|
||||||
@@ -103,7 +103,7 @@ export function useCatalogHubs() {
|
|||||||
'public',
|
'public',
|
||||||
'geo'
|
'geo'
|
||||||
)
|
)
|
||||||
const next = (data?.hubsList || []).filter((h): h is HubItem => h !== null)
|
const next = (data?.hubs_list || []).filter((h): h is HubItem => h !== null)
|
||||||
items.value = replace ? next : items.value.concat(next)
|
items.value = replace ? next : items.value.concat(next)
|
||||||
// hubsList doesn't return total count, estimate from fetched items
|
// hubsList doesn't return total count, estimate from fetched items
|
||||||
if (replace) {
|
if (replace) {
|
||||||
@@ -120,7 +120,7 @@ export function useCatalogHubs() {
|
|||||||
const loadCountries = async () => {
|
const loadCountries = async () => {
|
||||||
try {
|
try {
|
||||||
const data = await execute(GetHubCountriesDocument, {}, 'public', 'geo')
|
const data = await execute(GetHubCountriesDocument, {}, 'public', 'geo')
|
||||||
countries.value = (data?.hubCountries || []).filter((c): c is string => c !== null)
|
countries.value = (data?.hub_countries || []).filter((c): c is string => c !== null)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Failed to load hub countries', e)
|
console.error('Failed to load hub countries', e)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ import {
|
|||||||
type NodeEntity = NonNullable<GetNodeQueryResult['node']>
|
type NodeEntity = NonNullable<GetNodeQueryResult['node']>
|
||||||
type OfferEntity = NonNullable<GetOfferQueryResult['getOffer']>
|
type OfferEntity = NonNullable<GetOfferQueryResult['getOffer']>
|
||||||
type SupplierProfile = NonNullable<GetSupplierProfileQueryResult['getSupplierProfile']>
|
type SupplierProfile = NonNullable<GetSupplierProfileQueryResult['getSupplierProfile']>
|
||||||
type HubItem = NonNullable<NonNullable<NearestHubsQueryResult['nearestHubs']>[number]>
|
type HubItem = NonNullable<NonNullable<NearestHubsQueryResult['nearest_hubs']>[number]>
|
||||||
type OfferItem = NonNullable<NonNullable<NearestOffersQueryResult['nearestOffers']>[number]>
|
type OfferItem = NonNullable<NonNullable<NearestOffersQueryResult['nearest_offers']>[number]>
|
||||||
|
|
||||||
// Product type (aggregated from offers)
|
// Product type (aggregated from offers)
|
||||||
export interface InfoProductItem {
|
export interface InfoProductItem {
|
||||||
@@ -136,27 +136,27 @@ export function useCatalogInfo() {
|
|||||||
const productsMap = new Map<string, InfoProductItem>()
|
const productsMap = new Map<string, InfoProductItem>()
|
||||||
const suppliersMap = new Map<string, { uuid: string; name: string; latitude?: number | null; longitude?: number | null }>()
|
const suppliersMap = new Map<string, { uuid: string; name: string; latitude?: number | null; longitude?: number | null }>()
|
||||||
|
|
||||||
offersData?.nearestOffers?.forEach(offer => {
|
offersData?.nearest_offers?.forEach(offer => {
|
||||||
if (!offer) return
|
if (!offer) return
|
||||||
// Products
|
// Products
|
||||||
if (offer.productUuid && offer.productName) {
|
if (offer.product_uuid && offer.product_name) {
|
||||||
const existing = productsMap.get(offer.productUuid)
|
const existing = productsMap.get(offer.product_uuid)
|
||||||
if (existing) {
|
if (existing) {
|
||||||
existing.offersCount = (existing.offersCount || 0) + 1
|
existing.offersCount = (existing.offersCount || 0) + 1
|
||||||
} else {
|
} else {
|
||||||
productsMap.set(offer.productUuid, {
|
productsMap.set(offer.product_uuid, {
|
||||||
uuid: offer.productUuid,
|
uuid: offer.product_uuid,
|
||||||
name: offer.productName,
|
name: offer.product_name,
|
||||||
offersCount: 1
|
offersCount: 1
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Suppliers (extract from offers)
|
// Suppliers (extract from offers)
|
||||||
if (offer.supplierUuid && !suppliersMap.has(offer.supplierUuid)) {
|
if (offer.supplier_uuid && !suppliersMap.has(offer.supplier_uuid)) {
|
||||||
suppliersMap.set(offer.supplierUuid, {
|
suppliersMap.set(offer.supplier_uuid, {
|
||||||
uuid: offer.supplierUuid,
|
uuid: offer.supplier_uuid,
|
||||||
name: offer.supplierName || 'Supplier',
|
name: offer.supplier_name || 'Supplier',
|
||||||
latitude: offer.latitude,
|
latitude: offer.latitude,
|
||||||
longitude: offer.longitude
|
longitude: offer.longitude
|
||||||
})
|
})
|
||||||
@@ -264,7 +264,7 @@ export function useCatalogInfo() {
|
|||||||
'public',
|
'public',
|
||||||
'geo'
|
'geo'
|
||||||
).then(hubsData => {
|
).then(hubsData => {
|
||||||
relatedHubs.value = (hubsData?.nearestHubs || []).filter((h): h is HubItem => h !== null)
|
relatedHubs.value = (hubsData?.nearest_hubs || []).filter((h): h is HubItem => h !== null)
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
isLoadingHubs.value = false
|
isLoadingHubs.value = false
|
||||||
})
|
})
|
||||||
@@ -314,7 +314,7 @@ export function useCatalogInfo() {
|
|||||||
'public',
|
'public',
|
||||||
'geo'
|
'geo'
|
||||||
).then(hubsData => {
|
).then(hubsData => {
|
||||||
relatedHubs.value = (hubsData?.nearestHubs || []).filter((h): h is HubItem => h !== null)
|
relatedHubs.value = (hubsData?.nearest_hubs || []).filter((h): h is HubItem => h !== null)
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
isLoadingHubs.value = false
|
isLoadingHubs.value = false
|
||||||
})
|
})
|
||||||
@@ -374,14 +374,14 @@ export function useCatalogInfo() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Offers already include routes from backend
|
// Offers already include routes from backend
|
||||||
relatedOffers.value = (offersData?.nearestOffers || []).filter((o): o is OfferItem => o !== null)
|
relatedOffers.value = (offersData?.nearest_offers || []).filter((o): o is OfferItem => o !== null)
|
||||||
isLoadingOffers.value = false
|
isLoadingOffers.value = false
|
||||||
|
|
||||||
// Extract unique suppliers from offers (use supplierUuid from offers)
|
// Extract unique suppliers from offers (use supplier_uuid from offers)
|
||||||
const supplierUuids = new Set<string>()
|
const supplierUuids = new Set<string>()
|
||||||
relatedOffers.value.forEach(offer => {
|
relatedOffers.value.forEach(offer => {
|
||||||
if (offer.supplierUuid) {
|
if (offer.supplier_uuid) {
|
||||||
supplierUuids.add(offer.supplierUuid)
|
supplierUuids.add(offer.supplier_uuid)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -438,7 +438,7 @@ export function useCatalogInfo() {
|
|||||||
'public',
|
'public',
|
||||||
'geo'
|
'geo'
|
||||||
)
|
)
|
||||||
const hub = (hubsData?.nearestHubs || []).find((h): h is HubItem => h !== null)
|
const hub = (hubsData?.nearest_hubs || []).find((h): h is HubItem => h !== null)
|
||||||
if (hub?.uuid) {
|
if (hub?.uuid) {
|
||||||
hubUuid = hub.uuid
|
hubUuid = hub.uuid
|
||||||
if (!relatedHubs.value.length) {
|
if (!relatedHubs.value.length) {
|
||||||
@@ -461,10 +461,10 @@ export function useCatalogInfo() {
|
|||||||
'geo'
|
'geo'
|
||||||
)
|
)
|
||||||
|
|
||||||
relatedOffers.value = (offersData?.nearestOffers || []).filter((o): o is OfferItem => {
|
relatedOffers.value = (offersData?.nearest_offers || []).filter((o): o is OfferItem => {
|
||||||
if (!o) return false
|
if (!o) return false
|
||||||
if (!supplier.uuid) return true
|
if (!supplier.uuid) return true
|
||||||
return o.supplierUuid === supplier.uuid
|
return o.supplier_uuid === supplier.uuid
|
||||||
})
|
})
|
||||||
isLoadingOffers.value = false
|
isLoadingOffers.value = false
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import {
|
|||||||
} from '~/composables/graphql/public/exchange-generated'
|
} from '~/composables/graphql/public/exchange-generated'
|
||||||
|
|
||||||
// Type from codegen
|
// Type from codegen
|
||||||
type ProductItem = NonNullable<NonNullable<ProductsListQueryResult['productsList']>[number]>
|
type ProductItem = NonNullable<NonNullable<ProductsListQueryResult['products_list']>[number]>
|
||||||
type OfferItem = NonNullable<NonNullable<NearestOffersQueryResult['nearestOffers']>[number]>
|
type OfferItem = NonNullable<NonNullable<NearestOffersQueryResult['nearest_offers']>[number]>
|
||||||
|
|
||||||
// Product aggregated from offers
|
// Product aggregated from offers
|
||||||
interface AggregatedProduct {
|
interface AggregatedProduct {
|
||||||
@@ -92,16 +92,16 @@ export function useCatalogProducts() {
|
|||||||
|
|
||||||
// Group offers by product
|
// Group offers by product
|
||||||
const productsMap = new Map<string, AggregatedProduct>()
|
const productsMap = new Map<string, AggregatedProduct>()
|
||||||
offersData?.nearestOffers?.forEach((offer) => {
|
offersData?.nearest_offers?.forEach((offer) => {
|
||||||
if (!offer?.productUuid) return
|
if (!offer?.product_uuid) return
|
||||||
if (!productsMap.has(offer.productUuid)) {
|
if (!productsMap.has(offer.product_uuid)) {
|
||||||
productsMap.set(offer.productUuid, {
|
productsMap.set(offer.product_uuid, {
|
||||||
uuid: offer.productUuid,
|
uuid: offer.product_uuid,
|
||||||
name: offer.productName,
|
name: offer.product_name,
|
||||||
offersCount: 0
|
offersCount: 0
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
productsMap.get(offer.productUuid)!.offersCount++
|
productsMap.get(offer.product_uuid)!.offersCount++
|
||||||
})
|
})
|
||||||
items.value = Array.from(productsMap.values()) as ProductItem[]
|
items.value = Array.from(productsMap.values()) as ProductItem[]
|
||||||
}
|
}
|
||||||
@@ -121,7 +121,7 @@ export function useCatalogProducts() {
|
|||||||
'public',
|
'public',
|
||||||
'geo'
|
'geo'
|
||||||
)
|
)
|
||||||
items.value = (data?.productsList || []).filter((p): p is ProductItem => p !== null)
|
items.value = (data?.products_list || []).filter((p): p is ProductItem => p !== null)
|
||||||
}
|
}
|
||||||
|
|
||||||
isInitialized.value = true
|
isInitialized.value = true
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import { SuppliersListDocument, NearestSuppliersDocument } from '~/composables/g
|
|||||||
const PAGE_SIZE = 500
|
const PAGE_SIZE = 500
|
||||||
|
|
||||||
// Types from codegen
|
// Types from codegen
|
||||||
type SupplierItem = NonNullable<NonNullable<SuppliersListQueryResult['suppliersList']>[number]>
|
type SupplierItem = NonNullable<NonNullable<SuppliersListQueryResult['suppliers_list']>[number]>
|
||||||
type NearestSupplierItem = NonNullable<NonNullable<NearestSuppliersQueryResult['nearestSuppliers']>[number]>
|
type NearestSupplierItem = NonNullable<NonNullable<NearestSuppliersQueryResult['nearest_suppliers']>[number]>
|
||||||
|
|
||||||
// Shared state across list and map views
|
// Shared state across list and map views
|
||||||
const items = ref<Array<SupplierItem | NearestSupplierItem>>([])
|
const items = ref<Array<SupplierItem | NearestSupplierItem>>([])
|
||||||
@@ -41,7 +41,7 @@ export function useCatalogSuppliers() {
|
|||||||
'public',
|
'public',
|
||||||
'geo'
|
'geo'
|
||||||
)
|
)
|
||||||
items.value = (data?.nearestSuppliers || []).filter((s): s is NearestSupplierItem => s !== null)
|
items.value = (data?.nearest_suppliers || []).filter((s): s is NearestSupplierItem => s !== null)
|
||||||
total.value = items.value.length
|
total.value = items.value.length
|
||||||
isInitialized.value = true
|
isInitialized.value = true
|
||||||
return
|
return
|
||||||
@@ -63,7 +63,7 @@ export function useCatalogSuppliers() {
|
|||||||
'public',
|
'public',
|
||||||
'geo'
|
'geo'
|
||||||
)
|
)
|
||||||
const next = (data?.suppliersList || []).filter((s): s is SupplierItem => s !== null)
|
const next = (data?.suppliers_list || []).filter((s): s is SupplierItem => s !== null)
|
||||||
|
|
||||||
items.value = replace ? next : items.value.concat(next)
|
items.value = replace ? next : items.value.concat(next)
|
||||||
// suppliersList doesn't return total count, estimate from fetched items
|
// suppliersList doesn't return total count, estimate from fetched items
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { GetClusteredNodesDocument } from './graphql/public/geo-generated'
|
import { GetClusteredNodesDocument } from './graphql/public/geo-generated'
|
||||||
import type { ClusterPointType } from './graphql/public/geo-generated'
|
import type { ClusterPoint } from './graphql/public/geo-generated'
|
||||||
|
|
||||||
export interface MapBounds {
|
export interface MapBounds {
|
||||||
west: number
|
west: number
|
||||||
@@ -12,13 +12,10 @@ export interface MapBounds {
|
|||||||
export function useClusteredNodes(
|
export function useClusteredNodes(
|
||||||
transportType?: Ref<string | undefined>,
|
transportType?: Ref<string | undefined>,
|
||||||
nodeType?: Ref<string | undefined>,
|
nodeType?: Ref<string | undefined>,
|
||||||
productUuid?: Ref<string | undefined>,
|
|
||||||
hubUuid?: Ref<string | undefined>,
|
|
||||||
supplierUuid?: Ref<string | undefined>
|
|
||||||
) {
|
) {
|
||||||
const { client } = useApolloClient('publicGeo')
|
const { client } = useApolloClient('publicGeo')
|
||||||
|
|
||||||
const clusteredNodes = ref<ClusterPointType[]>([])
|
const clusteredNodes = ref<ClusterPoint[]>([])
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
|
||||||
const fetchClusters = async (bounds: MapBounds) => {
|
const fetchClusters = async (bounds: MapBounds) => {
|
||||||
@@ -34,14 +31,11 @@ export function useClusteredNodes(
|
|||||||
zoom: Math.floor(bounds.zoom),
|
zoom: Math.floor(bounds.zoom),
|
||||||
transportType: transportType?.value,
|
transportType: transportType?.value,
|
||||||
nodeType: nodeType?.value,
|
nodeType: nodeType?.value,
|
||||||
productUuid: productUuid?.value,
|
|
||||||
hubUuid: hubUuid?.value,
|
|
||||||
supplierUuid: supplierUuid?.value
|
|
||||||
},
|
},
|
||||||
fetchPolicy: 'network-only'
|
fetchPolicy: 'network-only'
|
||||||
})
|
})
|
||||||
|
|
||||||
clusteredNodes.value = (data?.clusteredNodes ?? []).filter(Boolean) as ClusterPointType[]
|
clusteredNodes.value = (data?.clustered_nodes ?? []).filter(Boolean) as ClusterPoint[]
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to fetch clustered nodes:', error)
|
console.error('Failed to fetch clustered nodes:', error)
|
||||||
clusteredNodes.value = []
|
clusteredNodes.value = []
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { GetNodeDocument, NearestOffersDocument, type OfferWithRouteType, type GetNodeQueryResult } from '~/composables/graphql/public/geo-generated'
|
import { GetNodeDocument, NearestOffersDocument, type OfferWithRoute, type GetNodeQueryResult } from '~/composables/graphql/public/geo-generated'
|
||||||
|
|
||||||
type Hub = NonNullable<GetNodeQueryResult['node']>
|
type Hub = NonNullable<GetNodeQueryResult['node']>
|
||||||
|
|
||||||
@@ -152,12 +152,12 @@ try {
|
|||||||
|
|
||||||
// Group offers by product
|
// Group offers by product
|
||||||
const productsMap = new Map<string, { uuid: string; name: string }>()
|
const productsMap = new Map<string, { uuid: string; name: string }>()
|
||||||
offersData.value?.nearestOffers?.forEach((offer) => {
|
offersData.value?.nearest_offers?.forEach((offer) => {
|
||||||
if (offer?.productUuid) {
|
if (offer?.product_uuid) {
|
||||||
if (!productsMap.has(offer.productUuid)) {
|
if (!productsMap.has(offer.product_uuid)) {
|
||||||
productsMap.set(offer.productUuid, {
|
productsMap.set(offer.product_uuid, {
|
||||||
uuid: offer.productUuid,
|
uuid: offer.product_uuid,
|
||||||
name: offer.productName || ''
|
name: offer.product_name || ''
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,11 +92,10 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { GetOffersDocument, type GetOffersQueryVariables } from '~/composables/graphql/public/exchange-generated'
|
import { GetOffersDocument, type GetOffersQueryVariables } from '~/composables/graphql/public/exchange-generated'
|
||||||
import { GetNodeDocument, NearestOffersDocument, QuoteCalculationsDocument, type QuoteCalculationsQueryResult } from '~/composables/graphql/public/geo-generated'
|
import { GetNodeDocument, NearestOffersDocument, type NearestOffersQueryResult } from '~/composables/graphql/public/geo-generated'
|
||||||
import type { MapBounds } from '~/components/catalog/CatalogMap.vue'
|
import type { MapBounds } from '~/components/catalog/CatalogMap.vue'
|
||||||
|
|
||||||
type QuoteCalculation = NonNullable<NonNullable<QuoteCalculationsQueryResult['quoteCalculations']>[number]>
|
type NearestOffer = NonNullable<NearestOffersQueryResult['nearest_offers'][number]>
|
||||||
type QuoteOffer = NonNullable<NonNullable<QuoteCalculation['offers']>[number]>
|
|
||||||
|
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
layout: 'topnav'
|
layout: 'topnav'
|
||||||
@@ -434,7 +433,7 @@ const searchOfferPoints = computed(() =>
|
|||||||
.filter((offer) => offer.latitude != null && offer.longitude != null)
|
.filter((offer) => offer.latitude != null && offer.longitude != null)
|
||||||
.map((offer) => ({
|
.map((offer) => ({
|
||||||
uuid: offer.uuid,
|
uuid: offer.uuid,
|
||||||
name: offer.productName || '',
|
name: offer.product_name || '',
|
||||||
latitude: Number(offer.latitude),
|
latitude: Number(offer.latitude),
|
||||||
longitude: Number(offer.longitude),
|
longitude: Number(offer.longitude),
|
||||||
type: 'offer' as const
|
type: 'offer' as const
|
||||||
@@ -471,11 +470,11 @@ const relatedPoints = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Offers data for quote results
|
// Offers data for quote results
|
||||||
const offers = ref<QuoteOffer[]>([])
|
const offers = ref<NearestOffer[]>([])
|
||||||
const quoteCalculations = ref<QuoteCalculation[]>([])
|
const quoteCalculations = ref<{ offers: NearestOffer[] }[]>([])
|
||||||
|
|
||||||
const buildCalculationsFromOffers = (list: QuoteOffer[]) =>
|
const buildCalculationsFromOffers = (list: NearestOffer[]) =>
|
||||||
list.map((offer) => ({ offers: [offer] })) as QuoteCalculation[]
|
list.map((offer) => ({ offers: [offer] }))
|
||||||
const offersLoading = ref(false)
|
const offersLoading = ref(false)
|
||||||
const showQuoteResults = ref(false)
|
const showQuoteResults = ref(false)
|
||||||
|
|
||||||
@@ -520,7 +519,7 @@ const useServerClustering = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Offers for Explore map when hub filter is active (graph-based)
|
// Offers for Explore map when hub filter is active (graph-based)
|
||||||
const exploreOffers = ref<QuoteOffer[]>([])
|
const exploreOffers = ref<NearestOffer[]>([])
|
||||||
const exploreOffersLoading = ref(false)
|
const exploreOffersLoading = ref(false)
|
||||||
|
|
||||||
const shouldLoadExploreOffers = computed(() =>
|
const shouldLoadExploreOffers = computed(() =>
|
||||||
@@ -549,7 +548,7 @@ const loadExploreOffers = async () => {
|
|||||||
'public',
|
'public',
|
||||||
'geo'
|
'geo'
|
||||||
)
|
)
|
||||||
exploreOffers.value = (geoData?.nearestOffers || []).filter((o): o is QuoteOffer => o !== null)
|
exploreOffers.value = (geoData?.nearest_offers || []).filter((o): o is NearestOffer => o !== null)
|
||||||
} finally {
|
} finally {
|
||||||
exploreOffersLoading.value = false
|
exploreOffersLoading.value = false
|
||||||
}
|
}
|
||||||
@@ -571,7 +570,7 @@ const mapItems = computed((): MapItemWithCoords[] => {
|
|||||||
.filter((offer) => offer.uuid && offer.latitude != null && offer.longitude != null)
|
.filter((offer) => offer.uuid && offer.latitude != null && offer.longitude != null)
|
||||||
.map((offer) => ({
|
.map((offer) => ({
|
||||||
uuid: offer.uuid,
|
uuid: offer.uuid,
|
||||||
name: offer.productName || '',
|
name: offer.product_name || '',
|
||||||
latitude: Number(offer.latitude),
|
latitude: Number(offer.latitude),
|
||||||
longitude: Number(offer.longitude)
|
longitude: Number(offer.longitude)
|
||||||
}))
|
}))
|
||||||
@@ -706,57 +705,30 @@ const onSearch = async () => {
|
|||||||
latitude: Number(hub.latitude),
|
latitude: Number(hub.latitude),
|
||||||
longitude: Number(hub.longitude)
|
longitude: Number(hub.longitude)
|
||||||
}
|
}
|
||||||
try {
|
const geoData = await execute(
|
||||||
const calcData = await execute(
|
NearestOffersDocument,
|
||||||
QuoteCalculationsDocument,
|
{
|
||||||
{
|
lat: hub.latitude,
|
||||||
lat: hub.latitude,
|
lon: hub.longitude,
|
||||||
lon: hub.longitude,
|
productUuid: productId.value,
|
||||||
productUuid: productId.value,
|
hubUuid: hubId.value,
|
||||||
hubUuid: hubId.value,
|
limit: 12
|
||||||
quantity: quantity.value ? Number(quantity.value) : null,
|
},
|
||||||
limit: 10
|
'public',
|
||||||
},
|
'geo'
|
||||||
'public',
|
)
|
||||||
'geo'
|
|
||||||
)
|
|
||||||
|
|
||||||
let calculations = (calcData?.quoteCalculations || []).filter((c): c is QuoteCalculation => c !== null)
|
let nearest = (geoData?.nearest_offers || []).filter((o): o is NearestOffer => o !== null)
|
||||||
if (supplierId.value) {
|
if (supplierId.value) {
|
||||||
calculations = calculations.map((calc) => ({
|
nearest = nearest.filter(o => o?.supplier_uuid === supplierId.value)
|
||||||
...calc,
|
|
||||||
offers: (calc.offers || []).filter((offer): offer is QuoteOffer => offer !== null).filter(offer => offer.supplierUuid === supplierId.value)
|
|
||||||
})).filter(calc => calc.offers.length > 0)
|
|
||||||
}
|
|
||||||
|
|
||||||
quoteCalculations.value = calculations
|
|
||||||
offers.value = calculations.flatMap(calc => (calc.offers || []).filter((offer): offer is QuoteOffer => offer !== null))
|
|
||||||
} catch (error) {
|
|
||||||
const geoData = await execute(
|
|
||||||
NearestOffersDocument,
|
|
||||||
{
|
|
||||||
lat: hub.latitude,
|
|
||||||
lon: hub.longitude,
|
|
||||||
productUuid: productId.value,
|
|
||||||
hubUuid: hubId.value,
|
|
||||||
limit: 12
|
|
||||||
},
|
|
||||||
'public',
|
|
||||||
'geo'
|
|
||||||
)
|
|
||||||
|
|
||||||
let nearest = (geoData?.nearestOffers || []).filter((o): o is QuoteOffer => o !== null)
|
|
||||||
if (supplierId.value) {
|
|
||||||
nearest = nearest.filter(o => o?.supplierUuid === supplierId.value)
|
|
||||||
}
|
|
||||||
|
|
||||||
offers.value = nearest
|
|
||||||
quoteCalculations.value = buildCalculationsFromOffers(nearest)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
offers.value = nearest
|
||||||
|
quoteCalculations.value = buildCalculationsFromOffers(nearest)
|
||||||
|
|
||||||
const first = offers.value[0]
|
const first = offers.value[0]
|
||||||
if (first?.productName) {
|
if (first?.product_name) {
|
||||||
setLabel('product', productId.value, first.productName)
|
setLabel('product', productId.value, first.product_name)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
offers.value = []
|
offers.value = []
|
||||||
@@ -802,9 +774,10 @@ const onSearch = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Select offer - navigate to detail page
|
// Select offer - navigate to detail page
|
||||||
const onSelectOffer = (offer: { uuid: string; productUuid?: string | null }) => {
|
const onSelectOffer = (offer: { uuid: string; product_uuid?: string | null; productUuid?: string | null }) => {
|
||||||
if (offer.uuid && offer.productUuid) {
|
const productUuid = offer.product_uuid || offer.productUuid
|
||||||
router.push(localePath(`/catalog/offers/${offer.productUuid}?offer=${offer.uuid}`))
|
if (offer.uuid && productUuid) {
|
||||||
|
router.push(localePath(`/catalog/offers/${productUuid}?offer=${offer.uuid}`))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ const pluginConfig = {
|
|||||||
|
|
||||||
const config: CodegenConfig = {
|
const config: CodegenConfig = {
|
||||||
overwrite: true,
|
overwrite: true,
|
||||||
|
allowPartialOutputs: true,
|
||||||
generates: {
|
generates: {
|
||||||
// Public operations (no token)
|
// Public operations (no token)
|
||||||
'./app/composables/graphql/public/exchange-generated.ts': {
|
'./app/composables/graphql/public/exchange-generated.ts': {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
query GetAutoRoute($fromLat: Float!, $fromLon: Float!, $toLat: Float!, $toLon: Float!) {
|
query GetAutoRoute($fromLat: Float!, $fromLon: Float!, $toLat: Float!, $toLon: Float!) {
|
||||||
autoRoute(fromLat: $fromLat, fromLon: $fromLon, toLat: $toLat, toLon: $toLon) {
|
auto_route(from_lat: $fromLat, from_lon: $fromLon, to_lat: $toLat, to_lon: $toLon) {
|
||||||
distanceKm
|
distance_km
|
||||||
geometry
|
geometry
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,27 +6,21 @@ query GetClusteredNodes(
|
|||||||
$zoom: Int!
|
$zoom: Int!
|
||||||
$transportType: String
|
$transportType: String
|
||||||
$nodeType: String
|
$nodeType: String
|
||||||
$productUuid: String
|
|
||||||
$hubUuid: String
|
|
||||||
$supplierUuid: String
|
|
||||||
) {
|
) {
|
||||||
clusteredNodes(
|
clustered_nodes(
|
||||||
west: $west
|
west: $west
|
||||||
south: $south
|
south: $south
|
||||||
east: $east
|
east: $east
|
||||||
north: $north
|
north: $north
|
||||||
zoom: $zoom
|
zoom: $zoom
|
||||||
transportType: $transportType
|
transport_type: $transportType
|
||||||
nodeType: $nodeType
|
node_type: $nodeType
|
||||||
productUuid: $productUuid
|
|
||||||
hubUuid: $hubUuid
|
|
||||||
supplierUuid: $supplierUuid
|
|
||||||
) {
|
) {
|
||||||
id
|
id
|
||||||
latitude
|
latitude
|
||||||
longitude
|
longitude
|
||||||
count
|
count
|
||||||
expansionZoom
|
expansion_zoom
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
query GetHubCountries {
|
query GetHubCountries {
|
||||||
hubCountries
|
hub_countries
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ query GetNode($uuid: String!) {
|
|||||||
latitude
|
latitude
|
||||||
longitude
|
longitude
|
||||||
country
|
country
|
||||||
countryCode
|
country_code
|
||||||
transportTypes
|
transport_types
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
query GetRailRoute($fromLat: Float!, $fromLon: Float!, $toLat: Float!, $toLon: Float!) {
|
query GetRailRoute($fromLat: Float!, $fromLon: Float!, $toLat: Float!, $toLon: Float!) {
|
||||||
railRoute(fromLat: $fromLat, fromLon: $fromLon, toLat: $toLat, toLon: $toLon) {
|
rail_route(from_lat: $fromLat, from_lon: $fromLon, to_lat: $toLat, to_lon: $toLon) {
|
||||||
distanceKm
|
distance_km
|
||||||
geometry
|
geometry
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
query HubsList($limit: Int, $offset: Int, $country: String, $transportType: String, $west: Float, $south: Float, $east: Float, $north: Float) {
|
query HubsList($limit: Int, $offset: Int, $country: String, $transportType: String, $west: Float, $south: Float, $east: Float, $north: Float) {
|
||||||
hubsList(limit: $limit, offset: $offset, country: $country, transportType: $transportType, west: $west, south: $south, east: $east, north: $north) {
|
hubs_list(limit: $limit, offset: $offset, country: $country, transport_type: $transportType, west: $west, south: $south, east: $east, north: $north) {
|
||||||
uuid
|
uuid
|
||||||
name
|
name
|
||||||
latitude
|
latitude
|
||||||
longitude
|
longitude
|
||||||
country
|
country
|
||||||
countryCode
|
country_code
|
||||||
transportTypes
|
transport_types
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,17 @@
|
|||||||
query NearestHubs($lat: Float!, $lon: Float!, $radius: Float, $productUuid: String, $limit: Int, $useGraph: Boolean) {
|
query NearestHubs($lat: Float!, $lon: Float!, $radius: Float, $productUuid: String, $limit: Int) {
|
||||||
nearestHubs(
|
nearest_hubs(
|
||||||
lat: $lat
|
lat: $lat
|
||||||
lon: $lon
|
lon: $lon
|
||||||
radius: $radius
|
radius: $radius
|
||||||
productUuid: $productUuid
|
product_uuid: $productUuid
|
||||||
limit: $limit
|
limit: $limit
|
||||||
useGraph: $useGraph
|
|
||||||
) {
|
) {
|
||||||
uuid
|
uuid
|
||||||
name
|
name
|
||||||
latitude
|
latitude
|
||||||
longitude
|
longitude
|
||||||
country
|
country
|
||||||
countryCode
|
country_code
|
||||||
transportTypes
|
transport_types
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,34 +1,34 @@
|
|||||||
query NearestOffers($lat: Float!, $lon: Float!, $radius: Float, $productUuid: String, $hubUuid: String, $limit: Int) {
|
query NearestOffers($lat: Float!, $lon: Float!, $radius: Float, $productUuid: String, $hubUuid: String, $limit: Int) {
|
||||||
nearestOffers(lat: $lat, lon: $lon, radius: $radius, productUuid: $productUuid, hubUuid: $hubUuid, limit: $limit) {
|
nearest_offers(lat: $lat, lon: $lon, radius: $radius, product_uuid: $productUuid, hub_uuid: $hubUuid, limit: $limit) {
|
||||||
uuid
|
uuid
|
||||||
productUuid
|
product_uuid
|
||||||
productName
|
product_name
|
||||||
supplierUuid
|
supplier_uuid
|
||||||
supplierName
|
supplier_name
|
||||||
latitude
|
latitude
|
||||||
longitude
|
longitude
|
||||||
country
|
country
|
||||||
countryCode
|
country_code
|
||||||
pricePerUnit
|
price_per_unit
|
||||||
currency
|
currency
|
||||||
quantity
|
quantity
|
||||||
unit
|
unit
|
||||||
distanceKm
|
distance_km
|
||||||
routes {
|
routes {
|
||||||
totalDistanceKm
|
total_distance_km
|
||||||
totalTimeSeconds
|
total_time_seconds
|
||||||
stages {
|
stages {
|
||||||
fromUuid
|
from_uuid
|
||||||
fromName
|
from_name
|
||||||
fromLat
|
from_lat
|
||||||
fromLon
|
from_lon
|
||||||
toUuid
|
to_uuid
|
||||||
toName
|
to_name
|
||||||
toLat
|
to_lat
|
||||||
toLon
|
to_lon
|
||||||
distanceKm
|
distance_km
|
||||||
travelTimeSeconds
|
travel_time_seconds
|
||||||
transportType
|
transport_type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
query NearestSuppliers($lat: Float!, $lon: Float!, $radius: Float, $productUuid: String, $limit: Int) {
|
query NearestSuppliers($lat: Float!, $lon: Float!, $radius: Float, $productUuid: String, $limit: Int) {
|
||||||
nearestSuppliers(lat: $lat, lon: $lon, radius: $radius, productUuid: $productUuid, limit: $limit) {
|
nearest_suppliers(lat: $lat, lon: $lon, radius: $radius, product_uuid: $productUuid, limit: $limit) {
|
||||||
uuid
|
uuid
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
query ProductsList($limit: Int, $offset: Int, $west: Float, $south: Float, $east: Float, $north: Float) {
|
query ProductsList($limit: Int, $offset: Int, $west: Float, $south: Float, $east: Float, $north: Float) {
|
||||||
productsList(limit: $limit, offset: $offset, west: $west, south: $south, east: $east, north: $north) {
|
products_list(limit: $limit, offset: $offset, west: $west, south: $south, east: $east, north: $north) {
|
||||||
uuid
|
uuid
|
||||||
name
|
name
|
||||||
offersCount
|
offers_count
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
query QuoteCalculations($lat: Float!, $lon: Float!, $radius: Float, $productUuid: String, $hubUuid: String, $quantity: Float, $limit: Int) {
|
|
||||||
quoteCalculations(lat: $lat, lon: $lon, radius: $radius, productUuid: $productUuid, hubUuid: $hubUuid, quantity: $quantity, limit: $limit) {
|
|
||||||
offers {
|
|
||||||
uuid
|
|
||||||
productUuid
|
|
||||||
productName
|
|
||||||
supplierUuid
|
|
||||||
supplierName
|
|
||||||
latitude
|
|
||||||
longitude
|
|
||||||
country
|
|
||||||
countryCode
|
|
||||||
pricePerUnit
|
|
||||||
currency
|
|
||||||
quantity
|
|
||||||
unit
|
|
||||||
distanceKm
|
|
||||||
routes {
|
|
||||||
totalDistanceKm
|
|
||||||
totalTimeSeconds
|
|
||||||
stages {
|
|
||||||
fromUuid
|
|
||||||
fromName
|
|
||||||
fromLat
|
|
||||||
fromLon
|
|
||||||
toUuid
|
|
||||||
toName
|
|
||||||
toLat
|
|
||||||
toLon
|
|
||||||
distanceKm
|
|
||||||
travelTimeSeconds
|
|
||||||
transportType
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
query SuppliersList($limit: Int, $offset: Int, $country: String, $west: Float, $south: Float, $east: Float, $north: Float) {
|
query SuppliersList($limit: Int, $offset: Int, $country: String, $west: Float, $south: Float, $east: Float, $north: Float) {
|
||||||
suppliersList(limit: $limit, offset: $offset, country: $country, west: $west, south: $south, east: $east, north: $north) {
|
suppliers_list(limit: $limit, offset: $offset, country: $country, west: $west, south: $south, east: $east, north: $north) {
|
||||||
uuid
|
uuid
|
||||||
name
|
name
|
||||||
latitude
|
latitude
|
||||||
|
|||||||
Reference in New Issue
Block a user