@odata2ts/odata-query-objects
Version:
Q-Objects are the magic sauce for the odata-query-builder and allow for renaming and type conversion
20 lines • 815 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.QEnumCollectionPath = void 0;
const PrimitveCollections_1 = require("../../primitve-collection/PrimitveCollections");
const QCollectionPath_1 = require("../QCollectionPath");
class QEnumCollectionPath extends QCollectionPath_1.QCollectionPath {
constructor(path, theEnum) {
// @ts-ignore
super(path, () => { });
this.theEnum = theEnum;
if (!theEnum) {
throw new Error("QEnumCollectionPath: Enum must be supplied!");
}
}
getEntity(withPrefix = false) {
return new PrimitveCollections_1.QEnumCollection(this.theEnum, withPrefix ? this.path : undefined);
}
}
exports.QEnumCollectionPath = QEnumCollectionPath;
//# sourceMappingURL=QEnumCollectionPath.js.map