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:
383
dist/documents/documents.controller.d.ts
vendored
Normal file
383
dist/documents/documents.controller.d.ts
vendored
Normal file
@@ -0,0 +1,383 @@
|
||||
import { DocumentsService } from './documents.service';
|
||||
import { CreateDocumentDto, UpdateDocumentDto } from '../shared/dto/document.dto';
|
||||
export declare class DocumentsController {
|
||||
private readonly documentsService;
|
||||
constructor(documentsService: DocumentsService);
|
||||
create(createDocumentDto: CreateDocumentDto): Promise<{
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}>;
|
||||
findAll(): Promise<({
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
})[]>;
|
||||
findByMachine(machineId: string): Promise<({
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
})[]>;
|
||||
findByComposant(composantId: string): Promise<({
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
})[]>;
|
||||
findByPiece(pieceId: string): Promise<({
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
})[]>;
|
||||
findOne(id: string): Promise<({
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}) | null>;
|
||||
update(id: string, updateDocumentDto: UpdateDocumentDto): Promise<{
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}>;
|
||||
remove(id: string): Promise<{
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}>;
|
||||
}
|
||||
110
dist/documents/documents.controller.js
vendored
Normal file
110
dist/documents/documents.controller.js
vendored
Normal file
@@ -0,0 +1,110 @@
|
||||
"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.DocumentsController = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
const documents_service_1 = require("./documents.service");
|
||||
const document_dto_1 = require("../shared/dto/document.dto");
|
||||
let DocumentsController = class DocumentsController {
|
||||
documentsService;
|
||||
constructor(documentsService) {
|
||||
this.documentsService = documentsService;
|
||||
}
|
||||
create(createDocumentDto) {
|
||||
return this.documentsService.create(createDocumentDto);
|
||||
}
|
||||
findAll() {
|
||||
return this.documentsService.findAll();
|
||||
}
|
||||
findByMachine(machineId) {
|
||||
return this.documentsService.findByMachine(machineId);
|
||||
}
|
||||
findByComposant(composantId) {
|
||||
return this.documentsService.findByComposant(composantId);
|
||||
}
|
||||
findByPiece(pieceId) {
|
||||
return this.documentsService.findByPiece(pieceId);
|
||||
}
|
||||
findOne(id) {
|
||||
return this.documentsService.findOne(id);
|
||||
}
|
||||
update(id, updateDocumentDto) {
|
||||
return this.documentsService.update(id, updateDocumentDto);
|
||||
}
|
||||
remove(id) {
|
||||
return this.documentsService.remove(id);
|
||||
}
|
||||
};
|
||||
exports.DocumentsController = DocumentsController;
|
||||
__decorate([
|
||||
(0, common_1.Post)(),
|
||||
__param(0, (0, common_1.Body)()),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [document_dto_1.CreateDocumentDto]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], DocumentsController.prototype, "create", null);
|
||||
__decorate([
|
||||
(0, common_1.Get)(),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], DocumentsController.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)
|
||||
], DocumentsController.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)
|
||||
], DocumentsController.prototype, "findByComposant", null);
|
||||
__decorate([
|
||||
(0, common_1.Get)('piece/:pieceId'),
|
||||
__param(0, (0, common_1.Param)('pieceId')),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], DocumentsController.prototype, "findByPiece", 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)
|
||||
], DocumentsController.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, document_dto_1.UpdateDocumentDto]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], DocumentsController.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)
|
||||
], DocumentsController.prototype, "remove", null);
|
||||
exports.DocumentsController = DocumentsController = __decorate([
|
||||
(0, common_1.Controller)('documents'),
|
||||
__metadata("design:paramtypes", [documents_service_1.DocumentsService])
|
||||
], DocumentsController);
|
||||
//# sourceMappingURL=documents.controller.js.map
|
||||
1
dist/documents/documents.controller.js.map
vendored
Normal file
1
dist/documents/documents.controller.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"documents.controller.js","sourceRoot":"","sources":["../../src/documents/documents.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAmF;AACnF,2DAAuD;AACvD,6DAAkF;AAG3E,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IACD;IAA7B,YAA6B,gBAAkC;Q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cAAK,EAAC,aAAa,CAAC,CAAA;;;;0DAEpC;AAGD;IADC,IAAA,YAAG,EAAC,gBAAgB,CAAC;IACT,WAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;;;;sDAE5B;AAGD;IADC,IAAA,YAAG,EAAC,KAAK,CAAC;IACF,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;kDAEnB;AAGD;IADC,IAAA,cAAK,EAAC,KAAK,CAAC;IACL,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAoB,gCAAiB;;iDAE3E;AAGD;IADC,IAAA,eAAM,EAAC,KAAK,CAAC;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;iDAElB;8BAzCU,mBAAmB;IAD/B,IAAA,mBAAU,EAAC,WAAW,CAAC;qCAEyB,oCAAgB;GADpD,mBAAmB,CA0C/B"}
|
||||
2
dist/documents/documents.module.d.ts
vendored
Normal file
2
dist/documents/documents.module.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare class DocumentsModule {
|
||||
}
|
||||
22
dist/documents/documents.module.js
vendored
Normal file
22
dist/documents/documents.module.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"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;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DocumentsModule = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
const documents_controller_1 = require("./documents.controller");
|
||||
const documents_service_1 = require("./documents.service");
|
||||
let DocumentsModule = class DocumentsModule {
|
||||
};
|
||||
exports.DocumentsModule = DocumentsModule;
|
||||
exports.DocumentsModule = DocumentsModule = __decorate([
|
||||
(0, common_1.Module)({
|
||||
controllers: [documents_controller_1.DocumentsController],
|
||||
providers: [documents_service_1.DocumentsService]
|
||||
})
|
||||
], DocumentsModule);
|
||||
//# sourceMappingURL=documents.module.js.map
|
||||
1
dist/documents/documents.module.js.map
vendored
Normal file
1
dist/documents/documents.module.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"documents.module.js","sourceRoot":"","sources":["../../src/documents/documents.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,iEAA6D;AAC7D,2DAAuD;AAMhD,IAAM,eAAe,GAArB,MAAM,eAAe;CAAG,CAAA;AAAlB,0CAAe;0BAAf,eAAe;IAJ3B,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,CAAC,0CAAmB,CAAC;QAClC,SAAS,EAAE,CAAC,oCAAgB,CAAC;KAC9B,CAAC;GACW,eAAe,CAAG"}
|
||||
383
dist/documents/documents.service.d.ts
vendored
Normal file
383
dist/documents/documents.service.d.ts
vendored
Normal file
@@ -0,0 +1,383 @@
|
||||
import { PrismaService } from '../prisma/prisma.service';
|
||||
import { CreateDocumentDto, UpdateDocumentDto } from '../shared/dto/document.dto';
|
||||
export declare class DocumentsService {
|
||||
private prisma;
|
||||
constructor(prisma: PrismaService);
|
||||
create(createDocumentDto: CreateDocumentDto): Promise<{
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}>;
|
||||
findAll(): Promise<({
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
})[]>;
|
||||
findOne(id: string): Promise<({
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}) | null>;
|
||||
findByMachine(machineId: string): Promise<({
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
})[]>;
|
||||
findByComposant(composantId: string): Promise<({
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
})[]>;
|
||||
findByPiece(pieceId: string): Promise<({
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
})[]>;
|
||||
update(id: string, updateDocumentDto: UpdateDocumentDto): Promise<{
|
||||
machine: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
} | null;
|
||||
composant: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
} | null;
|
||||
piece: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
prestataire: string | null;
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
typePieceId: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}>;
|
||||
remove(id: string): Promise<{
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
pieceId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
}>;
|
||||
}
|
||||
101
dist/documents/documents.service.js
vendored
Normal file
101
dist/documents/documents.service.js
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
"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);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DocumentsService = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
const prisma_service_1 = require("../prisma/prisma.service");
|
||||
let DocumentsService = class DocumentsService {
|
||||
prisma;
|
||||
constructor(prisma) {
|
||||
this.prisma = prisma;
|
||||
}
|
||||
async create(createDocumentDto) {
|
||||
return this.prisma.document.create({
|
||||
data: createDocumentDto,
|
||||
include: {
|
||||
machine: true,
|
||||
composant: true,
|
||||
piece: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
async findAll() {
|
||||
return this.prisma.document.findMany({
|
||||
include: {
|
||||
machine: true,
|
||||
composant: true,
|
||||
piece: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
async findOne(id) {
|
||||
return this.prisma.document.findUnique({
|
||||
where: { id },
|
||||
include: {
|
||||
machine: true,
|
||||
composant: true,
|
||||
piece: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
async findByMachine(machineId) {
|
||||
return this.prisma.document.findMany({
|
||||
where: { machineId },
|
||||
include: {
|
||||
machine: true,
|
||||
composant: true,
|
||||
piece: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
async findByComposant(composantId) {
|
||||
return this.prisma.document.findMany({
|
||||
where: { composantId },
|
||||
include: {
|
||||
machine: true,
|
||||
composant: true,
|
||||
piece: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
async findByPiece(pieceId) {
|
||||
return this.prisma.document.findMany({
|
||||
where: { pieceId },
|
||||
include: {
|
||||
machine: true,
|
||||
composant: true,
|
||||
piece: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
async update(id, updateDocumentDto) {
|
||||
return this.prisma.document.update({
|
||||
where: { id },
|
||||
data: updateDocumentDto,
|
||||
include: {
|
||||
machine: true,
|
||||
composant: true,
|
||||
piece: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
async remove(id) {
|
||||
return this.prisma.document.delete({
|
||||
where: { id },
|
||||
});
|
||||
}
|
||||
};
|
||||
exports.DocumentsService = DocumentsService;
|
||||
exports.DocumentsService = DocumentsService = __decorate([
|
||||
(0, common_1.Injectable)(),
|
||||
__metadata("design:paramtypes", [prisma_service_1.PrismaService])
|
||||
], DocumentsService);
|
||||
//# sourceMappingURL=documents.service.js.map
|
||||
1
dist/documents/documents.service.js.map
vendored
Normal file
1
dist/documents/documents.service.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"documents.service.js","sourceRoot":"","sources":["../../src/documents/documents.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6DAAyD;AAIlD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IACP;IAApB,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,MAAM,CAAC,iBAAoC;QAC/C,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;YACjC,IAAI,EAAE,iBAAiB;YACvB,OAAO,EAAE;gBACP,OAAO,EAAE,IAAI;gBACb,SAAS,EAAE,IAAI;gBACf,KAAK,EAAE,IAAI;aACZ;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,OAAO;QACX,OAAO,IAAI,CAAC,MAA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