Files
alrahma_sunday_school_api/apps/api/dist/modules/reservations/reservation.presenter.d.ts
T
2026-06-11 03:22:12 -04:00

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