import { Attr } from 'ts-framework' import * as constants from '../constants' import { RiderResponseDTO } from './rider-response' export interface CoordinateDTO { longitude: number latitude: number } export class CreateRiderLocationDTO { @Attr({ type: String, optional: true }) city?: string @Attr({ type: String, optional: true }) country?: string @Attr({ type: String }) fullAddress: string @Attr({ type: String, optional: true }) googlePlaceId?: string @Attr({ type: Object }) coordinates: CoordinateDTO @Attr({ type: String, optional: true }) note?: string @Attr({ type: String, optional: true }) placeName?: string @Attr({ type: String, optional: true }) state?: string @Attr({ type: String, optional: true }) street?: string @Attr({ type: String, optional: true }) streetNumber?: string @Attr({ type: String, optional: true }) timeZone?: string @Attr({ type: String, optional: true }) unit?: string @Attr({ type: String, optional: true }) zip?: string } export class UpdateRiderLocationDTO { @Attr({ type: String }) id: string @Attr({ type: String, optional: true }) city?: string @Attr({ type: String, optional: true }) country?: string @Attr({ type: String, optional: true }) fullAddress?: string @Attr({ type: String, optional: true }) googlePlaceId?: string @Attr({ type: Object }) coordinates?: CoordinateDTO @Attr({ type: String, optional: true }) note?: string @Attr({ type: String, optional: true }) placeName?: string @Attr({ type: String, optional: true }) state?: string @Attr({ type: String, optional: true }) street?: string @Attr({ type: String, optional: true }) streetNumber?: string @Attr({ type: String, optional: true }) timeZone?: string @Attr({ type: String, optional: true }) unit?: string @Attr({ type: String, optional: true }) zip?: string } export class RiderLocationResponseDTO { id: string city: string country: string fullAddress: string googlePlaceId: string coordinates: CoordinateDTO note: string placeName: string state: string street: string streetNumber: string timeZone: string unit: string zip: string rider?: RiderResponseDTO }