build: Fichiers de build générés - Ajout des fichiers TypeScript compilés et des déclarations de types
This commit is contained in:
100
dist/pieces/pieces.controller.js
vendored
Normal file
100
dist/pieces/pieces.controller.js
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
"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.PiecesController = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
const pieces_service_1 = require("./pieces.service");
|
||||
const piece_dto_1 = require("../shared/dto/piece.dto");
|
||||
let PiecesController = class PiecesController {
|
||||
piecesService;
|
||||
constructor(piecesService) {
|
||||
this.piecesService = piecesService;
|
||||
}
|
||||
create(createPieceDto) {
|
||||
return this.piecesService.create(createPieceDto);
|
||||
}
|
||||
findAll() {
|
||||
return this.piecesService.findAll();
|
||||
}
|
||||
findByMachine(machineId) {
|
||||
return this.piecesService.findByMachine(machineId);
|
||||
}
|
||||
findByComposant(composantId) {
|
||||
return this.piecesService.findByComposant(composantId);
|
||||
}
|
||||
findOne(id) {
|
||||
return this.piecesService.findOne(id);
|
||||
}
|
||||
update(id, updatePieceDto) {
|
||||
return this.piecesService.update(id, updatePieceDto);
|
||||
}
|
||||
remove(id) {
|
||||
return this.piecesService.remove(id);
|
||||
}
|
||||
};
|
||||
exports.PiecesController = PiecesController;
|
||||
__decorate([
|
||||
(0, common_1.Post)(),
|
||||
__param(0, (0, common_1.Body)()),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [piece_dto_1.CreatePieceDto]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], PiecesController.prototype, "create", null);
|
||||
__decorate([
|
||||
(0, common_1.Get)(),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], PiecesController.prototype, "findAll", null);
|
||||
__decorate([
|
||||
(0, common_1.Get)('machine/:machineId'),
|
||||
__param(0, (0, common_1.Param)('machineId')),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], PiecesController.prototype, "findByMachine", null);
|
||||
__decorate([
|
||||
(0, common_1.Get)('composant/:composantId'),
|
||||
__param(0, (0, common_1.Param)('composantId')),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], PiecesController.prototype, "findByComposant", null);
|
||||
__decorate([
|
||||
(0, common_1.Get)(':id'),
|
||||
__param(0, (0, common_1.Param)('id')),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], PiecesController.prototype, "findOne", null);
|
||||
__decorate([
|
||||
(0, common_1.Patch)(':id'),
|
||||
__param(0, (0, common_1.Param)('id')),
|
||||
__param(1, (0, common_1.Body)()),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String, piece_dto_1.UpdatePieceDto]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], PiecesController.prototype, "update", null);
|
||||
__decorate([
|
||||
(0, common_1.Delete)(':id'),
|
||||
__param(0, (0, common_1.Param)('id')),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], PiecesController.prototype, "remove", null);
|
||||
exports.PiecesController = PiecesController = __decorate([
|
||||
(0, common_1.Controller)('pieces'),
|
||||
__metadata("design:paramtypes", [pieces_service_1.PiecesService])
|
||||
], PiecesController);
|
||||
//# sourceMappingURL=pieces.controller.js.map
|
||||
Reference in New Issue
Block a user