packages/sdk-utils/packages/api/src/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.ts
import type { LocationWitnessSchema } from '../../Witnesses/index.ts'
export type LocationHeatmapQuerySchema = 'network.xyo.location.heatmap.query'
export const locationHeatmapQuerySchema: LocationHeatmapQuerySchema = 'network.xyo.location.heatmap.query'
export type LocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer'
export const locationHeatmapAnswerSchema: LocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer'
export type LocationHeatmapQuery = {
schema: LocationWitnessSchema
startTime?: string
stopTime?: string
}
export const isLocationHeatmapQuery = (query: Record<string, unknown>): query is LocationHeatmapQuery => {
return query && query?.schema === locationHeatmapQuerySchema
}