@ferryrsvp/liknoss-client
v1.1.9
Published
Typed Liknoss B2C client for Ferry RSVP services and workers.
Maintainers
Readme
@ferryrsvp/liknoss-client
Typed Liknoss B2C client for Ferry RSVP services and workers.
Install
npm install @ferryrsvp/liknoss-clientUsage
import { createLiknossClient } from "@ferryrsvp/liknoss-client";
const client = createLiknossClient({
baseUrl: "https://example.com/b2c",
fetch,
});
const countries = await client.catalog.listCountries();
const locations = await client.catalog.listLocations();Notes
- The client ships ESM output and TypeScript declarations.
- For server-side Ferry RSVP usage, prefer passing
defaultHeadersor a customfetchimplementation when upstream authentication headers must be injected. - OpenAPI generation lives in the repository build flow; consumers only need the published build artifacts.
Publishing
This package is configured for public npm publishing.
npm run buildnpm publish
When changes are merged to main, GitHub Actions will:
- deploy the built package assets to Cloudflare R2
- publish the package to npm when the
package.jsonversion is not already published
Required repository secrets:
CLOUDFLARE_API_TOKENfor the R2 deploy workflowNPM_AUTH_TOKENfor the npm publish workflow
