"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PackagePurchaseRepository = void 0;
const tslib_1 = require("tslib");
// src/repositories/package-purchase.repository.ts
const core_1 = require("@loopback/core");
const repository_1 = require("@loopback/repository");
const datasources_1 = require("../datasources");
const models_1 = require("../models");
const core_2 = require("@loopback/core");
const repository_2 = require("@loopback/repository");
let PackagePurchaseRepository = class PackagePurchaseRepository extends repository_1.DefaultCrudRepository {
    constructor(dataSource, packageMasterRepositoryGetter) {
        super(models_1.PackagePurchase, dataSource);
        this.packageMasterRepositoryGetter = packageMasterRepositoryGetter;
        this.package = this.createBelongsToAccessorFor('package', packageMasterRepositoryGetter);
        this.registerInclusionResolver('package', this.package.inclusionResolver);
    }
};
exports.PackagePurchaseRepository = PackagePurchaseRepository;
exports.PackagePurchaseRepository = PackagePurchaseRepository = tslib_1.__decorate([
    tslib_1.__param(0, (0, core_1.inject)('datasources.dblello')),
    tslib_1.__param(1, repository_2.repository.getter('PackageMasterRepository')),
    tslib_1.__metadata("design:paramtypes", [datasources_1.DblelloDataSource, Function])
], PackagePurchaseRepository);
//# sourceMappingURL=package-purchase.repository.js.map