UNPKG

opencart-manager

Version:

Node.js package helping to manage your opencart store data easily.

25 lines (24 loc) 1.12 kB
"use strict"; 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("./models/attribute/attribute")); const category_1 = __importDefault(require("./models/category/category")); const manufacturer_1 = __importDefault(require("./models/manufacturer/manufacturer")); const option_1 = __importDefault(require("./models/option/option")); const product_1 = __importDefault(require("./models/product/product")); class Model { constructor(database) { this.database = database; this.product = new product_1.default(this.database); this.category = new category_1.default(this.database); this.option = new option_1.default(this.database); this.attribute = new attribute_1.default(this.database); this.manufacturer = new manufacturer_1.default(this.database); } destroyConnection() { return this.database.close(); } } exports.default = Model;