UNPKG

digital-covid-certificate-lib

Version:

A library to parse and verify Digital Covid Certificates (DCC)

45 lines (44 loc) 1.22 kB
import { DccCose } from "../DccCose"; import { EudccCertificate } from "./EudccFields"; export declare class DccHcertFactory { static create(dccCose: DccCose): EudccCertificate; /** * https://ec.europa.eu/health/sites/default/files/ehealth/docs/covid-certificate_json_specification_en.pdf * @param dccCose */ static dereferenceV_1_3_0(dccCose: DccCose): EudccCertificate; private static getVaccinationGroupInformation; /** * A utility function to access the metadata values. * * Metadata (payload as json) internal data model: * { * 1: ... * 2: ... * -260: ... * } * @param dccCose * @private */ private static getMetaDataValue; /** * A utility function to access the hcert values. * * Hcert (payload as json) internal data model: * { * -260: { * 1: { * v: ... * dob: ... * name: ... * ver: ... * } * } * } * @param dccHcert * @private */ private static getValue; private static getTestGroupInformation; private static getRecoveryGroupInformation; }