import { Attr } from 'ts-framework' import { GoogleShapeResponseDTO } from './google-shape' export class GeozoneDTO { id: string serviceId: string googleShapes: GoogleShapeResponseDTO[] } export class CreateGeozoneDTO { @Attr({ type: String }) serviceId: string @Attr({ type: String }) organizationId: string @Attr({ type: GoogleShapeResponseDTO }) googleShapes: GoogleShapeResponseDTO[] } export class ZonePoint { @Attr({ type: Number }) lat: number @Attr({ type: Number }) lng: number } export class GoinzoneDTO { @Attr({ type: String }) id: string @Attr({ type: String }) organizationId: string @Attr({ type: String }) serviceId: string @Attr({ type: ZonePoint, optional: true }) geojson?: ZonePoint[] @Attr({ type: ZonePoint }) coordinates: ZonePoint @Attr({ type: Number }) radius?: number @Attr({ type: String }) name: string @Attr({ type: String }) address?: string @Attr({ type: String }) description: string @Attr({ type: Number }) price?: number @Attr({ type: String }) type: string @Attr({ type: String }) zoneType?: string @Attr({ type: String }) color?: string @Attr({ type: String }) pointType?: string } export class GetGeozoneDTO { @Attr({ type: String }) serviceId: string @Attr({ type: String }) organizationId: string } export class CountyDTO { id: string state: string county: string }