31 lines
1001 B
TypeScript
31 lines
1001 B
TypeScript
import { TrackingDto } from '@/dtos/tracking.dto';
|
|
import { ShipmentEntity } from '@/entities/shipment.entity';
|
|
import * as uuid from 'uuid';
|
|
import { ContainerEntity } from '@/entities/container.entity';
|
|
|
|
export const mockTrackingInfo: TrackingDto = {
|
|
carrierName: 'Evergreen',
|
|
destinationUnLoCode: 'NLAMS',
|
|
departureDate: new Date('2023-01-14T11:00:00.000Z'),
|
|
arrivalDateEstimate: new Date('2023-02-14T15:00:00.000Z'),
|
|
containerNumber: 'AAAA000000000',
|
|
};
|
|
|
|
export const mockShipment: ShipmentEntity = {
|
|
id: uuid.NIL,
|
|
createdAt: new Date('2023-05-01T11:00:00.000Z'),
|
|
carrierName: 'Evergreen',
|
|
originPort: 'NLAMS',
|
|
destinationPort: 'NLAMS',
|
|
departureDate: new Date('2023-01-14T11:00:00.000Z'),
|
|
arrivalDateOriginal: new Date('2023-02-14T15:00:00.000Z'),
|
|
arrivalDateEstimate: new Date('2023-02-14T15:00:00.000Z'),
|
|
};
|
|
|
|
export const mockContainerEntity: ContainerEntity = {
|
|
id: uuid.NIL,
|
|
shipmentId: uuid.NIL,
|
|
containerNumber: 'AAAA000000000',
|
|
shipment: mockShipment,
|
|
};
|