UNPKG

@arkasuryawan/m2-interfaces

Version:

Squaremetre Data Interfaces

57 lines (56 loc) 1.48 kB
import mongoose from "mongoose"; import { AuditInterface, ProjectInterface } from "."; export interface GooglePlacesInterface extends AuditInterface { business_status?: string; geometry: { location: { lat: number; lng: number; }; viewport: { northeast: { lat: number; lng: number; }; southwest: { lat: number; lng: number; }; }; }; icon: string; icon_background_color: string; icon_mask_base_uri: string; name: string; opening_hours?: any; photos: [ { height: 1252; html_attributions: string[]; photo_reference: string; width: 1600; } ]; place_id: string; plus_code: any; reference: string; rating?: number; scope: string; types: string[]; vicinity: string; user_ratings_total?: string[]; } export interface GooglePlacesInterfaceServer extends GooglePlacesInterface { } export interface ProjectGooglePlacesInterface extends AuditInterface { projectId: string; project: ProjectInterface; googlePlacesId: string; googlePlaces: GooglePlacesInterface; } export interface ProjectGooglePlacesInterfaceServer extends AuditInterface { projectId: string; project: mongoose.Types.ObjectId; googlePlacesId: string; googlePlaces: mongoose.Types.ObjectId; }