feat(p0): prix/nuit + booking form public + /inscription + /reservations/[id]

This commit is contained in:
Claude Integration 2026-06-01 01:34:00 +00:00
parent f09a680059
commit e79b6dd141
15 changed files with 590 additions and 9 deletions

View file

@ -13,6 +13,7 @@ export type AdminCarbetListItem = {
title: string;
river: string;
capacity: number;
nightlyPrice: string;
status: CarbetStatus;
accessType: AccessType;
ownerName: string;
@ -52,6 +53,7 @@ export async function listCarbetsAdmin(filters: AdminCarbetFilters = {}): Promis
title: true,
river: true,
capacity: true,
nightlyPrice: true,
status: true,
accessType: true,
updatedAt: true,
@ -66,6 +68,7 @@ export async function listCarbetsAdmin(filters: AdminCarbetFilters = {}): Promis
title: r.title,
river: r.river,
capacity: r.capacity,
nightlyPrice: r.nightlyPrice.toString(),
status: r.status,
accessType: r.accessType,
ownerName: `${r.owner.firstName} ${r.owner.lastName}`.trim() || r.owner.email,

View file

@ -27,6 +27,7 @@ export type PublicCarbetDetail = {
accessType: AccessType;
roadAccessNote: string | null;
capacity: number;
nightlyPrice: string;
minStayNights: number | null;
maxStayNights: number | null;
minCapacity: number | null;
@ -60,6 +61,7 @@ export const getPublicCarbet = cache(
accessType: true,
roadAccessNote: true,
capacity: true,
nightlyPrice: true,
minStayNights: true,
maxStayNights: true,
minCapacity: true,
@ -110,6 +112,7 @@ export const getPublicCarbet = cache(
accessType: carbet.accessType,
roadAccessNote: carbet.roadAccessNote,
capacity: carbet.capacity,
nightlyPrice: carbet.nightlyPrice.toString(),
minStayNights: carbet.minStayNights,
maxStayNights: carbet.maxStayNights,
minCapacity: carbet.minCapacity,