import { Attr } from 'ts-framework' import { ProviderResponseDTO } from './provider' import { VehicleResponseDTO } from './vehicle' export class VehicleProductDTO { @Attr({ type: String }) providerId: string @Attr({ type: String }) productId: string } export class CreationVehicleProviderDTO { @Attr({ type: String }) vehicleId: string @Attr({ type: String }) providerId: string @Attr({ type: Boolean }) isOwner: boolean @Attr({ type: VehicleProductDTO }) products: VehicleProductDTO[] } export class VehicleProviderDTO { @Attr({ type: String }) providerId: string @Attr({ type: String }) vehicleId: string } export class ManyVehiclesProvidersDTO { @Attr({ type: VehicleProviderDTO }) vehiclesProvidersDTO: VehicleProviderDTO[] } export class VehicleProviderResponseDTO { id: string isOwner: boolean providerId: string vehicleId: string }