ChemPare Documentation - v0.0.0
    Preparing search index...

    Represents the complete response from the Laboratorium Discounter API. Contains page information, request details, and product collection.

    interface SearchResponse {
        page: {
            search: string;
            session_id: string;
            key: string;
            title: string;
            status: number;
            [key: string]: unknown;
        };
        request: {
            url: string;
            method: string;
            get: { format: string; limit: string };
            post: Record<string, unknown>[];
            device: { platform: string; type: string; mobile: boolean };
            country: string;
            [key: string]: unknown;
        };
        collection: {
            count: number;
            limit: number;
            page: number;
            pages: number;
            total: string;
            products: { [key: string]: LaboratoriumDiscounterSearchResponseProduct };
            [key: string]: unknown;
        };
        shop: {
            base_currency: string;
            status: string;
            currency: string;
            language: string;
            country: string;
            [key: string]: unknown;
        };
        totalItems: number;
        startIndex: number;
        itemsPerPage: number;
        pageStartIndex: number;
        totalPages: number;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown

      Index signature for additional response properties

    Index

    Properties

    page: {
        search: string;
        session_id: string;
        key: string;
        title: string;
        status: number;
        [key: string]: unknown;
    }

    Page-related information

    Type declaration

    • [key: string]: unknown

      Index signature for additional page properties

    • search: string

      Search query string

    • session_id: string

      Session identifier

    • key: string

      API key

    • title: string

      Page title

    • status: number

      HTTP status code

    request: {
        url: string;
        method: string;
        get: { format: string; limit: string };
        post: Record<string, unknown>[];
        device: { platform: string; type: string; mobile: boolean };
        country: string;
        [key: string]: unknown;
    }

    Request information

    Type declaration

    • [key: string]: unknown

      Index signature for additional request properties

    • url: string

      Request URL

    • method: string

      HTTP method used

    • get: { format: string; limit: string }

      GET parameters

      • format: string

        Response format

      • limit: string

        Result limit

    • post: Record<string, unknown>[]

      POST parameters

    • device: { platform: string; type: string; mobile: boolean }

      Device information

      • platform: string

        Platform information

      • type: string

        Device type

      • mobile: boolean

        Whether the device is mobile

    • country: string

      Country code

    collection: {
        count: number;
        limit: number;
        page: number;
        pages: number;
        total: string;
        products: { [key: string]: LaboratoriumDiscounterSearchResponseProduct };
        [key: string]: unknown;
    }

    Collection of products

    Type declaration

    • [key: string]: unknown

      Index signature for additional collection properties

    • count: number
    • limit: number
    • page: number
    • pages: number
    • total: string
    • products: { [key: string]: LaboratoriumDiscounterSearchResponseProduct }

      Map of products indexed by their identifiers

    shop: {
        base_currency: string;
        status: string;
        currency: string;
        language: string;
        country: string;
        [key: string]: unknown;
    }

    Type declaration

    • [key: string]: unknown

      Index signature for additional shop properties

    • base_currency: string

      Base currency

    • status: string
    • currency: string
    • language: string
    • country: string
    totalItems: number

    Total number of items matching the search criteria. Used for pagination calculations.

    startIndex: number

    Starting index of the current result set. Zero-based index for pagination.

    itemsPerPage: number

    Number of items per page. Controls result set size.

    pageStartIndex: number

    Starting index for pages in the result set. Zero-based index for page pagination.

    totalPages: number

    Total number of pages matching the search. Used for page pagination calculations.