quickbase-js - v3.2.1
    Preparing search index...

    Interface QuickbaseClientExtras<S, Dates>

    The client's methods besides the API

    interface QuickbaseClientExtras<S = unknown, Dates extends boolean = true> {
        getAuthStrategy: () => AuthStrategy;
        getConfig: () => ResolvedConfig;
        request: <T = unknown>(
            options: {
                body?: unknown;
                dbid?: string;
                method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
                path: string;
                query?: Record<string, string | number | boolean | undefined>;
                signal?: AbortSignal;
            },
        ) => Promise<T>;
        requestXml: (options: Omit<XmlRequestOptions, "signal">) => Promise<string>;
        withSignal: (signal: AbortSignal) => QuickbaseClient<S, Dates>;
    }

    Type Parameters

    • S = unknown
    • Dates extends boolean = true
    Index

    Properties

    getAuthStrategy: () => AuthStrategy

    Get the auth strategy for advanced usage (e.g., XML API client). XML-API: Used by createXmlClient() to access authentication.

    getConfig: () => ResolvedConfig

    Get the resolved configuration

    request: <T = unknown>(
        options: {
            body?: unknown;
            dbid?: string;
            method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
            path: string;
            query?: Record<string, string | number | boolean | undefined>;
            signal?: AbortSignal;
        },
    ) => Promise<T>

    Execute a raw request (for custom API calls)

    requestXml: (options: Omit<XmlRequestOptions, "signal">) => Promise<string>

    XML-API: send an XML API request through the client's auth, throttle, retry and errors. Used by createXmlClient(); returns the response body.

    withSignal: (signal: AbortSignal) => QuickbaseClient<S, Dates>

    The same client with every request tied to signal: aborting it cancels requests in flight and retry waits, which reject with the signal's reason.

    const controller = new AbortController();
    const records = qb.withSignal(controller.signal).runQuery({ from: tableId }).all();
    controller.abort(); // records rejects