"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PricingHeaderController = void 0;
const common_1 = require("@nestjs/common");
const pricing_header_service_1 = require("./pricing-header.service");
const pricing_header_dto_1 = require("./dto/pricing-header.dto");
const bootstrap_table_request_dto_1 = require("../commons/dto/bootstrap-table-request.dto");
let PricingHeaderController = class PricingHeaderController {
    constructor(service) {
        this.service = service;
    }
    findAll(query, itemTypeId) {
        return this.service.findAll(query, itemTypeId);
    }
    findOne(id) {
        return this.service.findOne(id);
    }
    create(dto) {
        return this.service.create(dto);
    }
    update(id, dto) {
        return this.service.update(id, dto);
    }
    remove(id) {
        return this.service.remove(id);
    }
};
exports.PricingHeaderController = PricingHeaderController;
__decorate([
    (0, common_1.Get)(),
    __param(0, (0, common_1.Query)()),
    __param(1, (0, common_1.Query)('itemTypeId')),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [bootstrap_table_request_dto_1.BootstrapTableRequestDto, String]),
    __metadata("design:returntype", void 0)
], PricingHeaderController.prototype, "findAll", null);
__decorate([
    (0, common_1.Get)(':id'),
    __param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [String]),
    __metadata("design:returntype", void 0)
], PricingHeaderController.prototype, "findOne", null);
__decorate([
    (0, common_1.Post)(),
    __param(0, (0, common_1.Body)()),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [pricing_header_dto_1.CreatePricingHeaderDto]),
    __metadata("design:returntype", void 0)
], PricingHeaderController.prototype, "create", null);
__decorate([
    (0, common_1.Put)(':id'),
    __param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
    __param(1, (0, common_1.Body)()),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [String, pricing_header_dto_1.UpdatePricingHeaderDto]),
    __metadata("design:returntype", void 0)
], PricingHeaderController.prototype, "update", null);
__decorate([
    (0, common_1.Delete)(':id'),
    (0, common_1.HttpCode)(common_1.HttpStatus.NO_CONTENT),
    __param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [String]),
    __metadata("design:returntype", void 0)
], PricingHeaderController.prototype, "remove", null);
exports.PricingHeaderController = PricingHeaderController = __decorate([
    (0, common_1.Controller)('settings/pricing-headers'),
    __metadata("design:paramtypes", [pricing_header_service_1.PricingHeaderService])
], PricingHeaderController);
//# sourceMappingURL=pricing-header.controller.js.map