feat: create order stubs (#65)

This commit is contained in:
RustamRu
2025-01-19 15:29:58 +03:00
parent 3382ae3ada
commit adb812280d
29 changed files with 540 additions and 1367 deletions

View File

@@ -1,3 +1,5 @@
import { IsoDate } from "../common";
import { Car, Customer, Washing } from ".";
export type Id = string;
@@ -25,14 +27,16 @@ export type Create = {
};
export type View = {
id: Id;
orderDate: string,
status: Status,
phone: Customer.PhoneNumber;
carNumber: Car.RegistrationNumber;
carBody: Car.BodyStyle;
carColor?: Car.Color;
location: Washing.Location;
datetimeBegin: Washing.AvailableBeginDateTime;
datetimeEnd: Washing.AvailableEndDateTime;
startWashTime: Washing.AvailableBeginDateTime;
endWashTime: Washing.AvailableEndDateTime;
status: Status,
notes: string;
created: IsoDate;
updated: IsoDate;
id: Id;
};