Shopvento UI - v0.2.0
    Preparing search index...

    Interface ClientOptions

    Transport and authentication options for direct booking API calls.

    interface ClientOptions {
        baseUrl: string;
        credentials?: RequestCredentials;
        fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
        getAccessToken?: () => string | Promise<string | undefined> | undefined;
    }

    Hierarchy (View Summary)

    Index
    baseUrl: string

    Installation origin without /api/shop. Use an empty string for same-origin shop calls.

    credentials?: RequestCredentials

    Cookie policy for direct booking fetches; public calls default to omit. Optional; omitted unless supplied by the host or backend.

    fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

    Optional host fetch implementation. Optional; omitted unless supplied by the host or backend.

    getAccessToken?: () => string | Promise<string | undefined> | undefined

    Authenticated consumers can supply a Bearer token without coupling to a router.