r2-opds-js
Version:
Readium 2 'opds' for NodeJS (TypeScript)
30 lines • 1.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OPDSLink = exports.OPDSLinkRelEnum = void 0;
const tslib_1 = require("tslib");
const ta_json_x_1 = require("ta-json-x");
const publication_link_1 = require("r2-shared-js/dist/es7-es2016/src/models/publication-link");
const opds2_properties_1 = require("./opds2-properties");
var OPDSLinkRelEnum;
(function (OPDSLinkRelEnum) {
OPDSLinkRelEnum["Preview"] = "preview";
OPDSLinkRelEnum["PreviewURI"] = "http://opds-spec.org/acquisition/preview";
OPDSLinkRelEnum["AcquisitionURI"] = "http://opds-spec.org/acquisition";
OPDSLinkRelEnum["BuyURI"] = "http://opds-spec.org/acquisition/buy";
OPDSLinkRelEnum["OpenAccessURI"] = "http://opds-spec.org/acquisition/open-access";
OPDSLinkRelEnum["BorrowURI"] = "http://opds-spec.org/acquisition/borrow";
OPDSLinkRelEnum["SampleURI"] = "http://opds-spec.org/acquisition/sample";
OPDSLinkRelEnum["SubscribeURI"] = "http://opds-spec.org/acquisition/subscribe";
})(OPDSLinkRelEnum || (exports.OPDSLinkRelEnum = OPDSLinkRelEnum = {}));
const PROPERTIES_JSON_PROP = "properties";
let OPDSLink = class OPDSLink extends publication_link_1.Link {
};
exports.OPDSLink = OPDSLink;
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)(PROPERTIES_JSON_PROP),
tslib_1.__metadata("design:type", opds2_properties_1.OPDSProperties)
], OPDSLink.prototype, "Properties", void 0);
exports.OPDSLink = OPDSLink = tslib_1.__decorate([
(0, ta_json_x_1.JsonObject)()
], OPDSLink);
//# sourceMappingURL=opds2-link.js.map