feat(p0): prix/nuit + booking form public + /inscription + /reservations/[id]
This commit is contained in:
parent
f09a680059
commit
e79b6dd141
15 changed files with 590 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue