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:
18
dist/shared/dto/composant.dto.d.ts
vendored
Normal file
18
dist/shared/dto/composant.dto.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
export declare class CreateComposantDto {
|
||||
name: string;
|
||||
machineId?: string;
|
||||
parentComposantId?: string;
|
||||
reference?: string;
|
||||
prestataire?: string;
|
||||
prix?: number | null;
|
||||
emplacement?: string;
|
||||
typeComposantId?: string;
|
||||
}
|
||||
export declare class UpdateComposantDto {
|
||||
name?: string;
|
||||
reference?: string;
|
||||
prestataire?: string;
|
||||
prix?: number | null;
|
||||
emplacement?: string;
|
||||
typeComposantId?: string;
|
||||
}
|
||||
106
dist/shared/dto/composant.dto.js
vendored
Normal file
106
dist/shared/dto/composant.dto.js
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
"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.UpdateComposantDto = exports.CreateComposantDto = void 0;
|
||||
const class_validator_1 = require("class-validator");
|
||||
const class_transformer_1 = require("class-transformer");
|
||||
class CreateComposantDto {
|
||||
name;
|
||||
machineId;
|
||||
parentComposantId;
|
||||
reference;
|
||||
prestataire;
|
||||
prix;
|
||||
emplacement;
|
||||
typeComposantId;
|
||||
}
|
||||
exports.CreateComposantDto = CreateComposantDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateComposantDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateComposantDto.prototype, "machineId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateComposantDto.prototype, "parentComposantId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateComposantDto.prototype, "reference", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateComposantDto.prototype, "prestataire", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_transformer_1.Transform)(({ value }) => value === '' ? null : value),
|
||||
(0, class_validator_1.IsNumber)({}, { message: 'prix must be a valid number' }),
|
||||
__metadata("design:type", Object)
|
||||
], CreateComposantDto.prototype, "prix", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateComposantDto.prototype, "emplacement", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateComposantDto.prototype, "typeComposantId", void 0);
|
||||
class UpdateComposantDto {
|
||||
name;
|
||||
reference;
|
||||
prestataire;
|
||||
prix;
|
||||
emplacement;
|
||||
typeComposantId;
|
||||
}
|
||||
exports.UpdateComposantDto = UpdateComposantDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateComposantDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateComposantDto.prototype, "reference", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateComposantDto.prototype, "prestataire", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_transformer_1.Transform)(({ value }) => value === '' ? null : value),
|
||||
(0, class_validator_1.IsNumber)({}, { message: 'prix must be a valid number' }),
|
||||
__metadata("design:type", Object)
|
||||
], UpdateComposantDto.prototype, "prix", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateComposantDto.prototype, "emplacement", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateComposantDto.prototype, "typeComposantId", void 0);
|
||||
//# sourceMappingURL=composant.dto.js.map
|
||||
1
dist/shared/dto/composant.dto.js.map
vendored
Normal file
1
dist/shared/dto/composant.dto.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"composant.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/composant.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yDAA8C;AAE9C,MAAa,kBAAkB;IAE7B,IAAI,CAAS;IAIb,SAAS,CAAU;IAInB,iBAAiB,CAAU;IAI3B,SAAS,CAAU;IAInB,WAAW,CAAU;IAKrB,IAAI,CAAiB;IAIrB,WAAW,CAAU;IAIrB,eAAe,C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AC,KAAK,CAAC;IACrD,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;gDACpC;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACc"}
|
||||
10
dist/shared/dto/custom-field.dto.d.ts
vendored
Normal file
10
dist/shared/dto/custom-field.dto.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export declare class CreateCustomFieldValueDto {
|
||||
customFieldId: string;
|
||||
value: string;
|
||||
machineId?: string;
|
||||
composantId?: string;
|
||||
pieceId?: string;
|
||||
}
|
||||
export declare class UpdateCustomFieldValueDto {
|
||||
value?: string;
|
||||
}
|
||||
56
dist/shared/dto/custom-field.dto.js
vendored
Normal file
56
dist/shared/dto/custom-field.dto.js
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
"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.UpdateCustomFieldValueDto = exports.CreateCustomFieldValueDto = void 0;
|
||||
const class_validator_1 = require("class-validator");
|
||||
class CreateCustomFieldValueDto {
|
||||
customFieldId;
|
||||
value;
|
||||
machineId;
|
||||
composantId;
|
||||
pieceId;
|
||||
}
|
||||
exports.CreateCustomFieldValueDto = CreateCustomFieldValueDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateCustomFieldValueDto.prototype, "customFieldId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateCustomFieldValueDto.prototype, "value", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateCustomFieldValueDto.prototype, "machineId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateCustomFieldValueDto.prototype, "composantId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateCustomFieldValueDto.prototype, "pieceId", void 0);
|
||||
class UpdateCustomFieldValueDto {
|
||||
value;
|
||||
}
|
||||
exports.UpdateCustomFieldValueDto = UpdateCustomFieldValueDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateCustomFieldValueDto.prototype, "value", void 0);
|
||||
//# sourceMappingURL=custom-field.dto.js.map
|
||||
1
dist/shared/dto/custom-field.dto.js.map
vendored
Normal file
1
dist/shared/dto/custom-field.dto.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"custom-field.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/custom-field.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,yBAAyB;IAGpC,aAAa,CAAS;IAItB,KAAK,CAAS;IAId,SAAS,CAAU;IAInB,WAAW,CAAU;IAIrB,OAAO,CAAU;CAClB;AApBD,8DAoBC;AAjBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACC;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8DACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACM;AAGnB,MAAa,yBAAyB;IAGpC,KAAK,CAAU;CAChB;AAJD,8DAIC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACI"}
|
||||
17
dist/shared/dto/document.dto.d.ts
vendored
Normal file
17
dist/shared/dto/document.dto.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
export declare class CreateDocumentDto {
|
||||
name: string;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
machineId?: string;
|
||||
composantId?: string;
|
||||
pieceId?: string;
|
||||
}
|
||||
export declare class UpdateDocumentDto {
|
||||
name?: string;
|
||||
filename?: string;
|
||||
path?: string;
|
||||
mimeType?: string;
|
||||
size?: number;
|
||||
}
|
||||
93
dist/shared/dto/document.dto.js
vendored
Normal file
93
dist/shared/dto/document.dto.js
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
"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.UpdateDocumentDto = exports.CreateDocumentDto = void 0;
|
||||
const class_validator_1 = require("class-validator");
|
||||
class CreateDocumentDto {
|
||||
name;
|
||||
filename;
|
||||
path;
|
||||
mimeType;
|
||||
size;
|
||||
machineId;
|
||||
composantId;
|
||||
pieceId;
|
||||
}
|
||||
exports.CreateDocumentDto = CreateDocumentDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateDocumentDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateDocumentDto.prototype, "filename", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateDocumentDto.prototype, "path", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateDocumentDto.prototype, "mimeType", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsNumber)(),
|
||||
__metadata("design:type", Number)
|
||||
], CreateDocumentDto.prototype, "size", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateDocumentDto.prototype, "machineId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateDocumentDto.prototype, "composantId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateDocumentDto.prototype, "pieceId", void 0);
|
||||
class UpdateDocumentDto {
|
||||
name;
|
||||
filename;
|
||||
path;
|
||||
mimeType;
|
||||
size;
|
||||
}
|
||||
exports.UpdateDocumentDto = UpdateDocumentDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateDocumentDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateDocumentDto.prototype, "filename", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateDocumentDto.prototype, "path", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateDocumentDto.prototype, "mimeType", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsNumber)(),
|
||||
__metadata("design:type", Number)
|
||||
], UpdateDocumentDto.prototype, "size", void 0);
|
||||
//# sourceMappingURL=document.dto.js.map
|
||||
1
dist/shared/dto/document.dto.js.map
vendored
Normal file
1
dist/shared/dto/document.dto.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"document.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/document.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAEjE,MAAa,iBAAiB;IAE5B,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,IAAI,CAAS;IAIb,SAAS,CAAU;IAInB,WAAW,CAAU;IAIrB,OAAO,CAAU;CAClB;AA3BD,8CA2BC;AAzBC;IADC,IAAA,0BAAQ,GAAE;;+CACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;mDACM;AAGjB;IADC,IAAA,0BAAQ,GAAE;;+CACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;mDACM;AAGjB;IADC,IAAA,0BAAQ,GAAE;;+CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACM;AAGnB,MAAa,iBAAiB;IAG5B,IAAI,CAAU;IAId,QAAQ,CAAU;IAIlB,IAAI,CAAU;IAId,QAAQ,CAAU;IAIlB,IAAI,CAAU;CACf;AApBD,8CAoBC;AAjBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACG"}
|
||||
17
dist/shared/dto/machine.dto.d.ts
vendored
Normal file
17
dist/shared/dto/machine.dto.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
export declare class CreateMachineDto {
|
||||
name: string;
|
||||
siteId: string;
|
||||
reference?: string;
|
||||
prestataire?: string;
|
||||
prix?: string;
|
||||
emplacement?: string;
|
||||
typeMachineId?: string;
|
||||
}
|
||||
export declare class UpdateMachineDto {
|
||||
name?: string;
|
||||
reference?: string;
|
||||
prestataire?: string;
|
||||
prix?: string;
|
||||
emplacement?: string;
|
||||
typeMachineId?: string;
|
||||
}
|
||||
96
dist/shared/dto/machine.dto.js
vendored
Normal file
96
dist/shared/dto/machine.dto.js
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
"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.UpdateMachineDto = exports.CreateMachineDto = void 0;
|
||||
const class_validator_1 = require("class-validator");
|
||||
class CreateMachineDto {
|
||||
name;
|
||||
siteId;
|
||||
reference;
|
||||
prestataire;
|
||||
prix;
|
||||
emplacement;
|
||||
typeMachineId;
|
||||
}
|
||||
exports.CreateMachineDto = CreateMachineDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateMachineDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateMachineDto.prototype, "siteId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateMachineDto.prototype, "reference", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateMachineDto.prototype, "prestataire", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsDecimal)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateMachineDto.prototype, "prix", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateMachineDto.prototype, "emplacement", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateMachineDto.prototype, "typeMachineId", void 0);
|
||||
class UpdateMachineDto {
|
||||
name;
|
||||
reference;
|
||||
prestataire;
|
||||
prix;
|
||||
emplacement;
|
||||
typeMachineId;
|
||||
}
|
||||
exports.UpdateMachineDto = UpdateMachineDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateMachineDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateMachineDto.prototype, "reference", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateMachineDto.prototype, "prestataire", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsDecimal)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateMachineDto.prototype, "prix", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateMachineDto.prototype, "emplacement", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateMachineDto.prototype, "typeMachineId", void 0);
|
||||
//# sourceMappingURL=machine.dto.js.map
|
||||
1
dist/shared/dto/machine.dto.js.map
vendored
Normal file
1
dist/shared/dto/machine.dto.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"machine.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/machine.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAE5E,MAAa,gBAAgB;IAE3B,IAAI,CAAS;IAGb,MAAM,CAAS;IAIf,SAAS,CAAU;IAInB,WAAW,CAAU;IAIrB,IAAI,CAAU;IAId,WAAW,CAAU;IAIrB,aAAa,CAAU;CACxB;AA1BD,4CA0BC;AAxBC;IADC,IAAA,0BAAQ,GAAE;;8CACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;gDACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;8CACE;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACY;AAGzB,MAAa,gBAAgB;IAG3B,IAAI,CAAU;IAId,SAAS,CAAU;IAInB,WAAW,CAAU;IAIrB,IAAI,CAAU;IAId,WAAW,CAAU;IAIrB,aAAa,CAAU;CACxB;AAxBD,4CAwBC;AArBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;8CACE;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACY"}
|
||||
18
dist/shared/dto/piece.dto.d.ts
vendored
Normal file
18
dist/shared/dto/piece.dto.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
export declare class CreatePieceDto {
|
||||
name: string;
|
||||
machineId?: string;
|
||||
composantId?: string;
|
||||
reference?: string;
|
||||
prestataire?: string;
|
||||
prix?: number | null;
|
||||
emplacement?: string;
|
||||
typePieceId?: string;
|
||||
}
|
||||
export declare class UpdatePieceDto {
|
||||
name?: string;
|
||||
reference?: string;
|
||||
prestataire?: string;
|
||||
prix?: number | null;
|
||||
emplacement?: string;
|
||||
typePieceId?: string;
|
||||
}
|
||||
106
dist/shared/dto/piece.dto.js
vendored
Normal file
106
dist/shared/dto/piece.dto.js
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
"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.UpdatePieceDto = exports.CreatePieceDto = void 0;
|
||||
const class_validator_1 = require("class-validator");
|
||||
const class_transformer_1 = require("class-transformer");
|
||||
class CreatePieceDto {
|
||||
name;
|
||||
machineId;
|
||||
composantId;
|
||||
reference;
|
||||
prestataire;
|
||||
prix;
|
||||
emplacement;
|
||||
typePieceId;
|
||||
}
|
||||
exports.CreatePieceDto = CreatePieceDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreatePieceDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreatePieceDto.prototype, "machineId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreatePieceDto.prototype, "composantId", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreatePieceDto.prototype, "reference", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreatePieceDto.prototype, "prestataire", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_transformer_1.Transform)(({ value }) => value === '' ? null : value),
|
||||
(0, class_validator_1.IsNumber)({}, { message: 'prix must be a valid number' }),
|
||||
__metadata("design:type", Object)
|
||||
], CreatePieceDto.prototype, "prix", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreatePieceDto.prototype, "emplacement", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreatePieceDto.prototype, "typePieceId", void 0);
|
||||
class UpdatePieceDto {
|
||||
name;
|
||||
reference;
|
||||
prestataire;
|
||||
prix;
|
||||
emplacement;
|
||||
typePieceId;
|
||||
}
|
||||
exports.UpdatePieceDto = UpdatePieceDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdatePieceDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdatePieceDto.prototype, "reference", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdatePieceDto.prototype, "prestataire", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_transformer_1.Transform)(({ value }) => value === '' ? null : value),
|
||||
(0, class_validator_1.IsNumber)({}, { message: 'prix must be a valid number' }),
|
||||
__metadata("design:type", Object)
|
||||
], UpdatePieceDto.prototype, "prix", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdatePieceDto.prototype, "emplacement", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdatePieceDto.prototype, "typePieceId", void 0);
|
||||
//# sourceMappingURL=piece.dto.js.map
|
||||
1
dist/shared/dto/piece.dto.js.map
vendored
Normal file
1
dist/shared/dto/piece.dto.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"piece.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/piece.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yDAA8C;AAE9C,MAAa,cAAc;IAEzB,IAAI,CAAS;IAIb,SAAS,CA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S,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;4CACpC;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU"}
|
||||
8
dist/shared/dto/site.dto.d.ts
vendored
Normal file
8
dist/shared/dto/site.dto.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export declare class CreateSiteDto {
|
||||
name: string;
|
||||
description?: string;
|
||||
}
|
||||
export declare class UpdateSiteDto {
|
||||
name?: string;
|
||||
description?: string;
|
||||
}
|
||||
43
dist/shared/dto/site.dto.js
vendored
Normal file
43
dist/shared/dto/site.dto.js
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
"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.UpdateSiteDto = exports.CreateSiteDto = void 0;
|
||||
const class_validator_1 = require("class-validator");
|
||||
class CreateSiteDto {
|
||||
name;
|
||||
description;
|
||||
}
|
||||
exports.CreateSiteDto = CreateSiteDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateSiteDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateSiteDto.prototype, "description", void 0);
|
||||
class UpdateSiteDto {
|
||||
name;
|
||||
description;
|
||||
}
|
||||
exports.UpdateSiteDto = UpdateSiteDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateSiteDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateSiteDto.prototype, "description", void 0);
|
||||
//# sourceMappingURL=site.dto.js.map
|
||||
1
dist/shared/dto/site.dto.js.map
vendored
Normal file
1
dist/shared/dto/site.dto.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"site.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/site.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,aAAa;IAExB,IAAI,CAAS;IAIb,WAAW,CAAU;CACtB;AAPD,sCAOC;AALC;IADC,IAAA,0BAAQ,GAAE;;2CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACU;AAGvB,MAAa,aAAa;IAGxB,IAAI,CAAU;IAId,WAAW,CAAU;CACtB;AARD,sCAQC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACU"}
|
||||
59
dist/shared/dto/type.dto.d.ts
vendored
Normal file
59
dist/shared/dto/type.dto.d.ts
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
export declare enum CustomFieldType {
|
||||
TEXT = "text",
|
||||
NUMBER = "number",
|
||||
SELECT = "select",
|
||||
BOOLEAN = "boolean",
|
||||
DATE = "date"
|
||||
}
|
||||
export declare class CreateCustomFieldDto {
|
||||
name: string;
|
||||
type: CustomFieldType;
|
||||
required?: boolean;
|
||||
defaultValue?: string;
|
||||
options?: string[];
|
||||
}
|
||||
export declare class UpdateCustomFieldDto {
|
||||
name?: string;
|
||||
type?: CustomFieldType;
|
||||
required?: boolean;
|
||||
defaultValue?: string;
|
||||
options?: string[];
|
||||
}
|
||||
export declare class CreateTypeMachineDto {
|
||||
name: string;
|
||||
description?: string;
|
||||
category?: string;
|
||||
maintenanceFrequency?: string;
|
||||
components?: any[];
|
||||
machinePieces?: string[];
|
||||
customFields?: CreateCustomFieldDto[];
|
||||
}
|
||||
export declare class UpdateTypeMachineDto {
|
||||
name?: string;
|
||||
description?: string;
|
||||
category?: string;
|
||||
maintenanceFrequency?: string;
|
||||
components?: any[];
|
||||
machinePieces?: string[];
|
||||
customFields?: CreateCustomFieldDto[];
|
||||
}
|
||||
export declare class CreateTypeComposantDto {
|
||||
name: string;
|
||||
description?: string;
|
||||
customFields?: CreateCustomFieldDto[];
|
||||
}
|
||||
export declare class UpdateTypeComposantDto {
|
||||
name?: string;
|
||||
description?: string;
|
||||
customFields?: CreateCustomFieldDto[];
|
||||
}
|
||||
export declare class CreateTypePieceDto {
|
||||
name: string;
|
||||
description?: string;
|
||||
customFields?: CreateCustomFieldDto[];
|
||||
}
|
||||
export declare class UpdateTypePieceDto {
|
||||
name?: string;
|
||||
description?: string;
|
||||
customFields?: CreateCustomFieldDto[];
|
||||
}
|
||||
257
dist/shared/dto/type.dto.js
vendored
Normal file
257
dist/shared/dto/type.dto.js
vendored
Normal file
@@ -0,0 +1,257 @@
|
||||
"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.UpdateTypePieceDto = exports.CreateTypePieceDto = exports.UpdateTypeComposantDto = exports.CreateTypeComposantDto = exports.UpdateTypeMachineDto = exports.CreateTypeMachineDto = exports.UpdateCustomFieldDto = exports.CreateCustomFieldDto = exports.CustomFieldType = void 0;
|
||||
const class_validator_1 = require("class-validator");
|
||||
var CustomFieldType;
|
||||
(function (CustomFieldType) {
|
||||
CustomFieldType["TEXT"] = "text";
|
||||
CustomFieldType["NUMBER"] = "number";
|
||||
CustomFieldType["SELECT"] = "select";
|
||||
CustomFieldType["BOOLEAN"] = "boolean";
|
||||
CustomFieldType["DATE"] = "date";
|
||||
})(CustomFieldType || (exports.CustomFieldType = CustomFieldType = {}));
|
||||
class CreateCustomFieldDto {
|
||||
name;
|
||||
type;
|
||||
required;
|
||||
defaultValue;
|
||||
options;
|
||||
}
|
||||
exports.CreateCustomFieldDto = CreateCustomFieldDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateCustomFieldDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsEnum)(CustomFieldType),
|
||||
__metadata("design:type", String)
|
||||
], CreateCustomFieldDto.prototype, "type", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsBoolean)(),
|
||||
__metadata("design:type", Boolean)
|
||||
], CreateCustomFieldDto.prototype, "required", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateCustomFieldDto.prototype, "defaultValue", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], CreateCustomFieldDto.prototype, "options", void 0);
|
||||
class UpdateCustomFieldDto {
|
||||
name;
|
||||
type;
|
||||
required;
|
||||
defaultValue;
|
||||
options;
|
||||
}
|
||||
exports.UpdateCustomFieldDto = UpdateCustomFieldDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateCustomFieldDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsEnum)(CustomFieldType),
|
||||
__metadata("design:type", String)
|
||||
], UpdateCustomFieldDto.prototype, "type", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsBoolean)(),
|
||||
__metadata("design:type", Boolean)
|
||||
], UpdateCustomFieldDto.prototype, "required", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateCustomFieldDto.prototype, "defaultValue", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], UpdateCustomFieldDto.prototype, "options", void 0);
|
||||
class CreateTypeMachineDto {
|
||||
name;
|
||||
description;
|
||||
category;
|
||||
maintenanceFrequency;
|
||||
components;
|
||||
machinePieces;
|
||||
customFields;
|
||||
}
|
||||
exports.CreateTypeMachineDto = CreateTypeMachineDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateTypeMachineDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateTypeMachineDto.prototype, "description", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateTypeMachineDto.prototype, "category", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateTypeMachineDto.prototype, "maintenanceFrequency", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], CreateTypeMachineDto.prototype, "components", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], CreateTypeMachineDto.prototype, "machinePieces", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], CreateTypeMachineDto.prototype, "customFields", void 0);
|
||||
class UpdateTypeMachineDto {
|
||||
name;
|
||||
description;
|
||||
category;
|
||||
maintenanceFrequency;
|
||||
components;
|
||||
machinePieces;
|
||||
customFields;
|
||||
}
|
||||
exports.UpdateTypeMachineDto = UpdateTypeMachineDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateTypeMachineDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateTypeMachineDto.prototype, "description", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateTypeMachineDto.prototype, "category", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateTypeMachineDto.prototype, "maintenanceFrequency", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], UpdateTypeMachineDto.prototype, "components", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], UpdateTypeMachineDto.prototype, "machinePieces", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], UpdateTypeMachineDto.prototype, "customFields", void 0);
|
||||
class CreateTypeComposantDto {
|
||||
name;
|
||||
description;
|
||||
customFields;
|
||||
}
|
||||
exports.CreateTypeComposantDto = CreateTypeComposantDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateTypeComposantDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateTypeComposantDto.prototype, "description", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], CreateTypeComposantDto.prototype, "customFields", void 0);
|
||||
class UpdateTypeComposantDto {
|
||||
name;
|
||||
description;
|
||||
customFields;
|
||||
}
|
||||
exports.UpdateTypeComposantDto = UpdateTypeComposantDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateTypeComposantDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateTypeComposantDto.prototype, "description", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], UpdateTypeComposantDto.prototype, "customFields", void 0);
|
||||
class CreateTypePieceDto {
|
||||
name;
|
||||
description;
|
||||
customFields;
|
||||
}
|
||||
exports.CreateTypePieceDto = CreateTypePieceDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateTypePieceDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateTypePieceDto.prototype, "description", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], CreateTypePieceDto.prototype, "customFields", void 0);
|
||||
class UpdateTypePieceDto {
|
||||
name;
|
||||
description;
|
||||
customFields;
|
||||
}
|
||||
exports.UpdateTypePieceDto = UpdateTypePieceDto;
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateTypePieceDto.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsString)(),
|
||||
__metadata("design:type", String)
|
||||
], UpdateTypePieceDto.prototype, "description", void 0);
|
||||
__decorate([
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsArray)(),
|
||||
__metadata("design:type", Array)
|
||||
], UpdateTypePieceDto.prototype, "customFields", void 0);
|
||||
//# sourceMappingURL=type.dto.js.map
|
||||
1
dist/shared/dto/type.dto.js.map
vendored
Normal file
1
dist/shared/dto/type.dto.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"type.dto.js","sourceRoot":"","sources":["../../../src/shared/dto/type.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6F;AAE7F,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;AACf,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B;AAED,MAAa,oBAAoB;IAE/B,IAAI,CAAS;IAGb,IAAI,CAAkB;IAItB,QAAQ,CAAW;IAInB,YAAY,CAAU;IAItB,OAAO,CAAY;CACpB;AAlBD,oDAkBC;AAhBC;IADC,IAAA,0BAAQ,GAAE;;kDACE;AAGb;IADC,IAAA,wBAAM,EAAC,eAAe,CAAC;;kDACF;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sDACO;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACW;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;qDACS;AAGrB,MAAa,oBAAoB;IAG/B,IAAI,CAAU;IAId,IAAI,CAAmB;IAIvB,QAAQ,CAAW;IAInB,YAAY,CAAU;IAItB,OAAO,CAAY;CACpB;AApBD,oDAoBC;AAjBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACG;AAId;IAFC,IAAA,4BAAU,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