interface TripRequest {
    _id?: string;
    additionalRequests: string;
    basePrice: number;
    category: string;
    companions: Companion[];
    createdDate?: Date;
    deleted: boolean;
    deletedReason?: string;
    dietaryRestriction?: PackageFoodOptions;
    host: User;
    hostRooms: HostRoom[];
    hostSelectedOptionalServices?: any;
    id?: string;
    instantlyApproved?: boolean;
    itinerary: BaseItinerary;
    itineraryInventoryItem?: string | SavedItineraryInventoryItem;
    itineraryRecommendation?: string | BaseItineraryRecommendation;
    itineraryRecommendationOption?: TripItineraryRecommendationOption;
    modifiedDate?: Date;
    quantityHostRooms: number;
    rejectedReason?: string;
    selectedPackage: PackageLevel;
    selectedWorkshopSpaces?: any;
    servicesByDay: ServicesByDay;
    startDate: string;
    startingPrice: number;
    status: TripRequestStatuses;
    trip?: string;
    tripLeadTime: number;
    tripLength: number;
    trovaAutoPriced: boolean;
    workshops?: models.tripRequest.Workshop[];
}

Hierarchy

Properties

_id?: string
additionalRequests: string
basePrice: number
category: string
companions: Companion[]
createdDate?: Date
deleted: boolean
deletedReason?: string
dietaryRestriction?: PackageFoodOptions
host: User
hostRooms: HostRoom[]
hostSelectedOptionalServices?: any

Type any to account for the three data structures used on the frontend. Narrowing the type further requires refactor of the frontend. https://trovatrip.slite.com/api/s/FAY0gyrxk5H81M/Spec-Fix-maven-TripRequest-type

id?: string

Use _id instead

instantlyApproved?: boolean
itinerary: BaseItinerary
itineraryInventoryItem?: string | SavedItineraryInventoryItem
itineraryRecommendation?: string | BaseItineraryRecommendation
itineraryRecommendationOption?: TripItineraryRecommendationOption
modifiedDate?: Date
quantityHostRooms: number
rejectedReason?: string
selectedPackage: PackageLevel
selectedWorkshopSpaces?: any

Type any to account for the three data structures used on the frontend. Narrowing the type further requires refactor of the frontend. https://trovatrip.slite.com/api/s/FAY0gyrxk5H81M/Spec-Fix-maven-TripRequest-type

servicesByDay: ServicesByDay
startDate: string
startingPrice: number
trip?: string
tripLeadTime: number
tripLength: number
trovaAutoPriced: boolean