archetecture security fix
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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
|
||||
Reference in New Issue
Block a user