@voyantjs/connect-cruises
v0.3.15
Published
Voyant Connect cruises adapter for Voyant deployments.
Downloads
3,549
Readme
@voyantjs/connect-cruises
Voyant Connect cruises adapter for Voyant deployments.
Use this package in a Voyant deployment that wants cruise inventory from Voyant Connect to appear through the Voyant cruises adapter contract.
Install
pnpm add @voyantjs/connect-cruises @voyantjs/connect-sdkUsage
import { createConnectCruiseAdapter } from "@voyantjs/connect-cruises";
const adapter = createConnectCruiseAdapter({
connect: {
apiKey: process.env.VOYANT_API_KEY!,
operatorId: "op_123",
baseUrl: "https://api.voyantjs.com",
},
});
void adapter;Status
This package is the public package boundary for Connect-backed cruises. The
current scaffold implements list, detail, itinerary, ship, sailing pricing, and
reserve-mode booking commit mappings for routes exposed by
@voyantjs/connect-sdk.
Booking commit asks Connect to lock the selected sailing/cabin/fare/occupancy
when the caller does not provide cabinCategoryRef.quoteId, then confirms that
quote through Connect cruise bookings.
Notes
@voyantjs/connect-sdkremains the general Connect API client.- Provider integration authors should use
@voyantjs/connect-provider-sdk. - Supplier-specific connectors should live in provider-owned packages when maintenance is handed off.
For repo-level context, see ../../docs/connect-cruises.md.
