31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
export declare function parseReservationExtras(extras: unknown): Record<string, unknown>;
|
|
export declare function normalizeOptionalString(value: string | null | undefined): string | null;
|
|
export declare function buildReservationWorkflow(reservation: {
|
|
status: string;
|
|
contractNumber: string | null;
|
|
invoiceNumber: string | null;
|
|
extras: unknown;
|
|
}): {
|
|
contractGenerated: boolean;
|
|
closed: boolean;
|
|
closedAt: string | null;
|
|
closedBy: string | null;
|
|
coreEditable: boolean;
|
|
returnEditable: boolean;
|
|
checkInInspectionEditable: boolean;
|
|
checkOutInspectionEditable: boolean;
|
|
};
|
|
export declare function serializeReservationForDashboard<T extends {
|
|
extras: unknown;
|
|
status: string;
|
|
contractNumber: string | null;
|
|
invoiceNumber: string | null;
|
|
customer?: {
|
|
id: string;
|
|
licenseImageUrl?: string | null;
|
|
} | null;
|
|
}>(reservation: T): T & {
|
|
paymentMode: string | null;
|
|
workflow: ReturnType<typeof buildReservationWorkflow>;
|
|
};
|
|
//# sourceMappingURL=reservation.presenter.d.ts.map
|