- Updated locales (en and ru) to increase max file upload size from 5MB to 14MB - Modified PriceCar component to display image description - Updated order model and view to support image description - Added sample image description in stub data
50 lines
988 B
TypeScript
50 lines
988 B
TypeScript
import { IsoDate } from '../common';
|
|
|
|
import { Car, Customer, Washing } from '.';
|
|
|
|
export type Id = string;
|
|
|
|
export type Status =
|
|
| 'pending'
|
|
| 'progress'
|
|
| 'working'
|
|
| 'canceled'
|
|
| 'complete';
|
|
|
|
export type Create = {
|
|
customer: {
|
|
phone: Customer.PhoneNumber;
|
|
};
|
|
car: {
|
|
number: Car.RegistrationNumber;
|
|
body: Car.BodyStyle;
|
|
color: Car.Color;
|
|
};
|
|
washing: {
|
|
location: Washing.Location;
|
|
begin: Washing.AvailableBeginDateTime;
|
|
end: Washing.AvailableEndDateTime;
|
|
};
|
|
};
|
|
|
|
export type Number = string;
|
|
|
|
export type View = {
|
|
phone: Customer.PhoneNumber;
|
|
carNumber: Car.RegistrationNumber;
|
|
carBody: Car.BodyStyle;
|
|
carColor?: Car.Color;
|
|
location: Washing.Location;
|
|
startWashTime: Washing.AvailableBeginDateTime;
|
|
endWashTime: Washing.AvailableEndDateTime;
|
|
orderNumber: Number;
|
|
status: Status;
|
|
notes: string;
|
|
created: IsoDate;
|
|
updated: IsoDate;
|
|
id: Id;
|
|
image?: string;
|
|
imageRating?: string;
|
|
imageDescription?: string;
|
|
};
|