magister.js
Version:
A JavaScript implementation of the Magister 6 API
50 lines (41 loc) • 767 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _util = require("./util");
class VersionInfo {
/**
* @private
* @param {Object} raw
*/
constructor(raw) {
/**
* @type {String}
* @readonly
*/
this.core = raw.CoreVersie;
/**
* @type {String}
* @readonly
*/
this.api = raw.ApiVersie;
/**
* @type {String}
* @readonly
*/
this.db = raw.DatabaseVersie;
/**
* @type {String}
* @readonly
*/
this.product = raw.ProductVersie;
/**
* @type {Date}
* @readonly
*/
this.releasedOn = (0, _util.parseDate)(raw.ReleaseDatum);
}
}
var _default = VersionInfo;
exports.default = _default;