UNPKG

@readium/shared

Version:

Shared models to be used across other Readium projects and implementations in Typescript

33 lines (32 loc) 842 B
export declare enum AvailabilityStatus { available = "available", reserved = "reserved", ready = "ready" } /** * Indicated the availability of a given resource. * * https://drafts.opds.io/schema/properties.schema.json * */ export declare class Availability { /**Timestamp for the previous state change. */ since?: Date; /**Timestamp for the next state change. */ until?: Date; state: AvailabilityStatus; /** Creates a [Availability]. */ constructor(values: { state: AvailabilityStatus; since?: Date; until?: Date; }); /** * Parses a [Availability] from its RWPM JSON representation. */ static deserialize(json: any): Availability | undefined; /** * Serializes a [Availability] to its RWPM JSON representation. */ serialize(): any; }