r2-opds-js
Version:
Readium 2 'opds' for NodeJS (TypeScript)
35 lines • 1.71 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OPDSLink = exports.OPDSLinkRelEnum = void 0;
var tslib_1 = require("tslib");
var ta_json_x_1 = require("ta-json-x");
var publication_link_1 = require("r2-shared-js/dist/es5/src/models/publication-link");
var 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 = {}));
var PROPERTIES_JSON_PROP = "properties";
var OPDSLink = (function (_super) {
tslib_1.__extends(OPDSLink, _super);
function OPDSLink() {
return _super !== null && _super.apply(this, arguments) || this;
}
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);
OPDSLink = tslib_1.__decorate([
(0, ta_json_x_1.JsonObject)()
], OPDSLink);
return OPDSLink;
}(publication_link_1.Link));
exports.OPDSLink = OPDSLink;
//# sourceMappingURL=opds2-link.js.map