Trips

listens.js 13 lines

Files · 9
12345678910111213// Actual handlers are registered after database initialization in model.js.
export const listens = [
  {
    name: "add-itinerary-item",
    description:
      "Add a dated item to an existing trip; date must be within its inclusive date range. Optional fields default to empty strings. Emits item-added. Delivery retries with the same host hash are ignored.",
  },
  {
    name: "add-packing-item",
    description:
      "Add an unchecked packing item to an existing trip; quantity defaults to 1. Delivery retries with the same host hash are ignored. Does not emit an event until checked.",
  },
];