matcher/src/modules/ad/domain/entities/ad.ts

108 lines
1.4 KiB
TypeScript
Raw Normal View History

2023-04-24 14:44:52 +00:00
import { AutoMap } from '@automapper/classes';
2023-04-28 13:53:57 +00:00
import { Coordinates } from '../../../geography/domain/entities/coordinates';
2023-05-11 15:47:55 +00:00
import { Frequency } from '../types/frequency.enum';
2023-04-24 14:44:52 +00:00
export class Ad {
@AutoMap()
uuid: string;
@AutoMap()
2023-04-24 14:44:52 +00:00
driver: boolean;
@AutoMap()
2023-04-24 14:44:52 +00:00
passenger: boolean;
@AutoMap()
2023-05-11 15:47:55 +00:00
frequency: Frequency;
@AutoMap()
2023-04-26 10:10:22 +00:00
fromDate: Date;
@AutoMap()
2023-04-26 10:10:22 +00:00
toDate: Date;
@AutoMap()
2023-04-28 13:53:57 +00:00
monTime: Date;
@AutoMap()
2023-05-02 09:56:07 +00:00
tueTime: Date;
@AutoMap()
2023-05-02 09:56:07 +00:00
wedTime: Date;
@AutoMap()
2023-05-02 09:56:07 +00:00
thuTime: Date;
@AutoMap()
2023-05-02 09:56:07 +00:00
friTime: Date;
@AutoMap()
2023-05-02 09:56:07 +00:00
satTime: Date;
@AutoMap()
2023-05-02 09:56:07 +00:00
sunTime: Date;
@AutoMap()
2023-04-24 14:44:52 +00:00
monMargin: number;
@AutoMap()
2023-04-24 14:44:52 +00:00
tueMargin: number;
@AutoMap()
2023-04-24 14:44:52 +00:00
wedMargin: number;
@AutoMap()
2023-04-24 14:44:52 +00:00
thuMargin: number;
@AutoMap()
2023-04-24 14:44:52 +00:00
friMargin: number;
@AutoMap()
2023-04-24 14:44:52 +00:00
satMargin: number;
@AutoMap()
2023-04-24 14:44:52 +00:00
sunMargin: number;
@AutoMap()
2023-05-11 15:47:55 +00:00
driverDuration?: number;
@AutoMap()
2023-05-11 15:47:55 +00:00
driverDistance?: number;
@AutoMap()
2023-05-11 15:47:55 +00:00
passengerDuration?: number;
@AutoMap()
2023-05-11 15:47:55 +00:00
passengerDistance?: number;
2023-04-26 12:14:46 +00:00
@AutoMap(() => [Coordinates])
waypoints: Coordinates[];
@AutoMap()
2023-04-24 14:44:52 +00:00
direction: string;
@AutoMap()
2023-04-24 14:44:52 +00:00
fwdAzimuth: number;
@AutoMap()
2023-04-24 14:44:52 +00:00
backAzimuth: number;
@AutoMap()
2023-04-24 14:44:52 +00:00
seatsDriver: number;
@AutoMap()
2023-04-24 14:44:52 +00:00
seatsPassenger: number;
@AutoMap()
2023-04-24 14:44:52 +00:00
seatsUsed: number;
2023-05-11 15:47:55 +00:00
@AutoMap()
strict: boolean;
@AutoMap()
2023-04-26 10:10:22 +00:00
createdAt: Date;
@AutoMap()
2023-04-26 10:10:22 +00:00
updatedAt: Date;
2023-04-24 14:44:52 +00:00
}