@maschinenlesbar.org/jobsuche-cli
    Preparing search index...

    Class JobsucheClient

    Index
    • Full details for one job.

      Parameters

      • refnr: string

        A reference number (refnr), e.g. "10001-1002716922-S" or a purely numeric "1002716922", as returned in a search result's referenznummer field. It is base64-encoded into the API's encryptedJobCode for you.

        As a convenience, an already-base64-encoded encryptedJobCode is passed through unchanged. Detection is exact (not charset sniffing): the input is only treated as pre-encoded when base64-decoding it yields a string that matches the refnr pattern and re-encodes to the original — so a refnr such as "1002716922", which is NOT base64 of a refnr, is correctly encoded.

      Returns Promise<JsonObject>

    • Search job listings (/pc/v6/jobs). The listings are in ergebnisliste, which is absent when nothing matched (or size is 0).

      Also rejects a parameter name that is not one of SEARCH_PARAMS (the API ignores an unknown one and returns the unfiltered set), unless options.allowUnknownParams is set.

      Rejects with a JobsucheParseError when a 2xx body is not a search result (searchResultProblem): null, {}, an array or an error envelope is never returned as "nothing found".

      Rejects with a JobsucheValidationError, before any request, when the parameters break a rule of validateSearchParams (e.g. a blank was, which would otherwise run the search unfiltered).

      Parameters

      Returns Promise<JobSearchResult>