Service Library - bookingManagement

This document provides a complete reference of the custom code library for the bookingManagement service. It includes all library functions, edge functions with their REST endpoints, templates, and assets.

Library Functions

Library functions are reusable modules available to all business APIs and other custom code within the service via require("lib/<moduleName>").

validateCalendarAvailability.js

// Throws error if any date in [checkIn, checkOut) is unavailable. Can be expanded to check calendar blocks, reservations, etc.
module.exports = async function (listingId, checkIn, checkOut) {
  /* logic to check calendar conflict here */ return true;
};


This document was generated from the service library configuration and should be kept in sync with design changes.