opencart-manager
Version:
Node.js package helping to manage your opencart store data easily.
25 lines (24 loc) • 1.08 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const attribute_1 = __importDefault(require("./factories/attribute"));
const category_1 = __importDefault(require("./factories/category"));
const manufacturer_1 = __importDefault(require("./factories/manufacturer"));
const option_1 = __importDefault(require("./factories/option"));
const product_1 = __importDefault(require("./factories/product"));
class Factory {
constructor(model) {
this.model = model;
this.product = new product_1.default(this.model);
this.category = new category_1.default(this.model);
this.option = new option_1.default(this.model);
this.attribute = new attribute_1.default(this.model);
this.manufacturer = new manufacturer_1.default(this.model);
}
destroyConnection() {
return this.model.destroyConnection();
}
}
exports.default = Factory;