@microblink/blinkid-in-browser-sdk
Version:
A simple ID scanning library for WebAssembly-enabled browsers.
70 lines (69 loc) • 2.08 kB
TypeScript
/**
* Copyright (c) Microblink Ltd. All rights reserved.
*/
import { DateResult, StringResult } from "./GenericResultStructures";
import { MBDate } from "../../../MicroblinkSDK/DataStructures";
/**
* The additional information on vehicle class.
*/
export interface VehicleClassInfo {
readonly vehicleClass: StringResult;
readonly licenceType: StringResult;
readonly effectiveDate: DateResult;
readonly expiryDate: DateResult;
}
/**
* Driver's license specific data.
*/
export interface DriverLicenseDetailedInfo {
/** The driver license conditions. */
readonly conditions: StringResult;
/**
* The restrictions to driving privileges for the driver license owner.
*/
readonly restrictions: StringResult;
/**
* The additional privileges granted to the driver license owner.
*/
readonly endorsements: StringResult;
/**
* The type of vehicle the driver license owner has privilege to drive.
*/
readonly vehicleClass: StringResult;
/**
* The additional information on vehicle class.
*/
readonly vehicleClassesInfo: Array<VehicleClassInfo>;
}
/**
* The additional information on vehicle class for barcodes.
*/
export interface BarcodeVehicleClassInfo {
readonly vehicleClass: string;
readonly licenceType: string;
readonly effectiveDate: MBDate;
readonly expiryDate: MBDate;
}
/**
* Driver's license specific data for barcodes.
*/
export interface BarcodeDriverLicenseDetailedInfo {
/** The driver license conditions. */
readonly conditions: string;
/**
* The restrictions to driving privileges for the driver license owner.
*/
readonly restrictions: string;
/**
* The additional privileges granted to the driver license owner.
*/
readonly endorsements: string;
/**
* The type of vehicle the driver license owner has privilege to drive.
*/
readonly vehicleClass: string;
/**
* The additional information on vehicle class.
*/
readonly vehicleClassesInfo: Array<BarcodeVehicleClassInfo>;
}