"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.ContentTypeBuilderController = void 0;
const create_content_type_builder_input_1 = require("./dto/create-content-type-builder.input");
const update_content_type_builder_input_1 = require("./dto/update-content-type-builder.input");
const common_1 = require("@moonlightjs/common");
const common_2 = require("@nestjs/common");
const swagger_1 = require("@nestjs/swagger");
const content_type_builder_service_1 = require("./content-type-builder.service");
let ContentTypeBuilderController = class ContentTypeBuilderController {
    constructor(contentTypeBuilderService) {
        this.contentTypeBuilderService = contentTypeBuilderService;
    }
    get() {
        return this.contentTypeBuilderService.get();
    }
    create(createContentTypeBuilderInput) {
        return this.contentTypeBuilderService.create(createContentTypeBuilderInput);
    }
    update(uid, updateContentTypeBuilderInput) {
        return this.contentTypeBuilderService.update(uid, updateContentTypeBuilderInput);
    }
    delete(uid) {
        return this.contentTypeBuilderService.delete(uid);
    }
};
__decorate([
    (0, swagger_1.ApiResponse)({ status: common_2.HttpStatus.OK, type: common_1.SuccessResponseDto }),
    (0, common_2.Get)(),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", []),
    __metadata("design:returntype", void 0)
], ContentTypeBuilderController.prototype, "get", null);
__decorate([
    (0, swagger_1.ApiResponse)({ status: common_2.HttpStatus.OK, type: common_1.SuccessResponseDto }),
    (0, common_2.Post)(),
    __param(0, (0, common_2.Body)()),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [create_content_type_builder_input_1.CreateContentTypeBuilderInput]),
    __metadata("design:returntype", void 0)
], ContentTypeBuilderController.prototype, "create", null);
__decorate([
    (0, swagger_1.ApiResponse)({ status: common_2.HttpStatus.OK, type: common_1.SuccessResponseDto }),
    (0, common_2.Put)('/:uid'),
    __param(0, (0, common_2.Param)('uid')),
    __param(1, (0, common_2.Body)()),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [String, update_content_type_builder_input_1.UpdateContentTypeBuilderInput]),
    __metadata("design:returntype", void 0)
], ContentTypeBuilderController.prototype, "update", null);
__decorate([
    (0, swagger_1.ApiResponse)({ status: common_2.HttpStatus.OK, type: common_1.SuccessResponseDto }),
    (0, common_2.Delete)('/:uid'),
    __param(0, (0, common_2.Param)('uid')),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [String]),
    __metadata("design:returntype", void 0)
], ContentTypeBuilderController.prototype, "delete", null);
ContentTypeBuilderController = __decorate([
    (0, swagger_1.ApiTags)('content-type-builder'),
    (0, common_2.Controller)({
        path: 'content-type-builder',
        version: '1',
    }),
    __metadata("design:paramtypes", [content_type_builder_service_1.ContentTypeBuilderService])
], ContentTypeBuilderController);
exports.ContentTypeBuilderController = ContentTypeBuilderController;
//# sourceMappingURL=content-type-builder.controller.js.map