@alba-cars/common-modules 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -21
- package/package.json +10 -6
- package/dist/core/enums/HttpMethods.js +0 -14
- package/dist/core/enums/HttpStatusCodes.js +0 -19
- package/dist/core/enums/index.js +0 -18
- package/dist/core/error-handling/AppError.js +0 -48
- package/dist/core/error-handling/index.js +0 -17
- package/dist/core/index.js +0 -21
- package/dist/core/models/index.js +0 -19
- package/dist/core/models/media/index.js +0 -17
- package/dist/core/models/media/media_data.js +0 -2
- package/dist/core/models/pagination/index.js +0 -17
- package/dist/core/models/pagination/paginated_data.js +0 -21
- package/dist/core/models/range.js +0 -26
- package/dist/core/network/api-client.d.ts +0 -1
- package/dist/core/network/api-client.js +0 -22
- package/dist/core/network/endpoint-config.js +0 -260
- package/dist/core/network/fetch-api.js +0 -206
- package/dist/core/network/index.js +0 -18
- package/dist/core/utils/formatCurrency.js +0 -39
- package/dist/core/utils/global-constants.js +0 -9
- package/dist/core/utils/global-utils.js +0 -190
- package/dist/core/utils/global_validators.js +0 -20
- package/dist/core/utils/index.js +0 -20
- package/dist/core/utils/query_flatten.js +0 -15
- package/dist/features/auth/data/dto/AuthDTO.js +0 -106
- package/dist/features/auth/data/dto/RoleDTO.js +0 -132
- package/dist/features/auth/data/dto/UserDTO.js +0 -222
- package/dist/features/auth/data/index.js +0 -19
- package/dist/features/auth/index.js +0 -17
- package/dist/features/bank-valuation-request/data/dto/BankValuationRequestDTO.js +0 -132
- package/dist/features/bank-valuation-request/index.js +0 -17
- package/dist/features/blog/data/dto/BlogDTO.js +0 -176
- package/dist/features/blog/index.js +0 -17
- package/dist/features/callback-request/data/dto/CallBackRequestDTO.js +0 -110
- package/dist/features/callback-request/index.js +0 -17
- package/dist/features/deposits/data/dto/DepositDTOs.js +0 -303
- package/dist/features/deposits/data/index.js +0 -17
- package/dist/features/deposits/index.js +0 -17
- package/dist/features/faq/data/dtos/CreateFaqDTO.js +0 -87
- package/dist/features/faq/data/dtos/FaqFetchDTO.js +0 -349
- package/dist/features/faq/data/dtos/UpdateFaqDTO.js +0 -91
- package/dist/features/faq/data/dtos/index.js +0 -19
- package/dist/features/faq/data/enums/index.js +0 -10
- package/dist/features/faq/data/index.js +0 -18
- package/dist/features/faq/index.js +0 -17
- package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.js +0 -429
- package/dist/features/finance-eligibilty-request/data/index.js +0 -17
- package/dist/features/finance-eligibilty-request/index.js +0 -17
- package/dist/features/google-review/data/dto/google_review_dto.js +0 -466
- package/dist/features/google-review/data/dto/index.js +0 -17
- package/dist/features/google-review/data/enums/index.js +0 -8
- package/dist/features/google-review/data/index.js +0 -18
- package/dist/features/google-review/index.js +0 -17
- package/dist/features/index.js +0 -34
- package/dist/features/lead/data/dto/index.js +0 -20
- package/dist/features/lead/data/dto/lead_documents_dto.js +0 -73
- package/dist/features/lead/data/dto/lead_dto.js +0 -435
- package/dist/features/lead/data/dto/lead_preference_history_dto.js +0 -321
- package/dist/features/lead/data/dto/lead_prefernce_dto.js +0 -308
- package/dist/features/lead/data/enum/index.js +0 -18
- package/dist/features/lead/data/enum/lead_source_status_types.js +0 -19
- package/dist/features/lead/data/enum/lead_status_type.js +0 -12
- package/dist/features/lead/index.js +0 -18
- package/dist/features/models/BankValuationRequest.js +0 -6
- package/dist/features/models/Base.js +0 -6
- package/dist/features/models/Deposit.js +0 -6
- package/dist/features/models/Lead.js +0 -6
- package/dist/features/models/Payment.js +0 -7
- package/dist/features/models/Roles.js +0 -2
- package/dist/features/models/Ticket.js +0 -12
- package/dist/features/models/User.js +0 -2
- package/dist/features/models/UserFavoriteVehicle.js +0 -6
- package/dist/features/models/Vehicle.js +0 -17
- package/dist/features/models/VehicleBodyType.js +0 -7
- package/dist/features/models/VehicleCategory.js +0 -7
- package/dist/features/models/VehicleFeature.js +0 -7
- package/dist/features/models/VehicleFeatureCategory.js +0 -7
- package/dist/features/models/VehicleFinance.js +0 -7
- package/dist/features/models/VehicleMake.js +0 -7
- package/dist/features/models/VehicleMedia.js +0 -7
- package/dist/features/models/VehicleMetaData.js +0 -7
- package/dist/features/models/VehicleModel.js +0 -7
- package/dist/features/models/VehicleOrder.js +0 -7
- package/dist/features/models/_index.js +0 -30
- package/dist/features/models/index.js +0 -37
- package/dist/features/newsletter/data/dto/NewsletterDTO.js +0 -79
- package/dist/features/newsletter/index.js +0 -17
- package/dist/features/sales-team/data/dto/LanguageDTO.js +0 -89
- package/dist/features/sales-team/data/dto/SalesAgentDTO.js +0 -613
- package/dist/features/sales-team/data/index.js +0 -18
- package/dist/features/sales-team/index.js +0 -17
- package/dist/features/sell-car-request/data/dto/SellCarRequestDTO.js +0 -672
- package/dist/features/sell-car-request/data/index.js +0 -17
- package/dist/features/sell-car-request/index.js +0 -17
- package/dist/features/showroom-visit/data/dto/ShowroomVisit.js +0 -237
- package/dist/features/showroom-visit/data/enums/index.js +0 -17
- package/dist/features/showroom-visit/data/index.js +0 -18
- package/dist/features/showroom-visit/index.js +0 -17
- package/dist/features/test-drive-request/api/GetTestDriveVehicles.js +0 -8
- package/dist/features/test-drive-request/api/index.js +0 -17
- package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.js +0 -179
- package/dist/features/test-drive-request/data/enums/index.js +0 -29
- package/dist/features/test-drive-request/data/index.js +0 -20
- package/dist/features/test-drive-request/data/models/TestDriveRequest.js +0 -7
- package/dist/features/test-drive-request/data/models/index.js +0 -5
- package/dist/features/test-drive-request/data/utilities.js +0 -100
- package/dist/features/test-drive-request/index.js +0 -18
- package/dist/features/tickets/data/dto/TicketDto.js +0 -293
- package/dist/features/tickets/data/enums/index.js +0 -18
- package/dist/features/tickets/index.js +0 -18
- package/dist/features/vehicle/data/dto/BaseDTO.js +0 -34
- package/dist/features/vehicle/data/dto/MediaDTO.js +0 -2
- package/dist/features/vehicle/data/dto/PaymentDTO.js +0 -161
- package/dist/features/vehicle/data/dto/SimilarVehicleDTO.js +0 -38
- package/dist/features/vehicle/data/dto/VehicleCategoryDTO.js +0 -114
- package/dist/features/vehicle/data/dto/VehicleDTO.js +0 -587
- package/dist/features/vehicle/data/dto/VehicleFavoritesDTO.js +0 -60
- package/dist/features/vehicle/data/dto/VehicleFeatureCategoriesDTO.js +0 -114
- package/dist/features/vehicle/data/dto/VehicleFeatureDTO.js +0 -125
- package/dist/features/vehicle/data/dto/VehicleFilterDTO.js +0 -771
- package/dist/features/vehicle/data/dto/VehicleFinanceDTO.js +0 -183
- package/dist/features/vehicle/data/dto/VehicleInspectionDTO.js +0 -765
- package/dist/features/vehicle/data/dto/VehicleMakeDTO.js +0 -189
- package/dist/features/vehicle/data/dto/VehicleMedia.js +0 -152
- package/dist/features/vehicle/data/dto/VehicleModelDTO.js +0 -182
- package/dist/features/vehicle/data/dto/VehicleOrderDTO.js +0 -139
- package/dist/features/vehicle/data/dto/VehicleTypeDTO.js +0 -102
- package/dist/features/vehicle/data/dto/VehicleWarrantyDTO.js +0 -47
- package/dist/features/vehicle/data/dto/index.js +0 -35
- package/dist/features/vehicle/data/enums/index.js +0 -46
- package/dist/features/vehicle/data/index.js +0 -20
- package/dist/features/vehicle/data/utilities.js +0 -520
- package/dist/features/vehicle/index.js +0 -17
- package/dist/features/vehicle-reservations/data/dto/VehicleReservationDTO.js +0 -346
- package/dist/features/vehicle-reservations/data/dto/index.js +0 -17
- package/dist/features/vehicle-reservations/data/enums/finance-type.js +0 -9
- package/dist/features/vehicle-reservations/data/enums/index.js +0 -19
- package/dist/features/vehicle-reservations/data/enums/reservation-type.js +0 -13
- package/dist/features/vehicle-reservations/data/enums/vehicle-reservation-type.js +0 -8
- package/dist/features/vehicle-reservations/index.js +0 -18
- package/dist/global/dto/BaseGetDTO.js +0 -18
- package/dist/global/dto/index.js +0 -17
- package/dist/global/index.js +0 -18
- package/dist/global/utilities.js +0 -173
- package/dist/models.js +0 -17
|
@@ -1,765 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.VehicleInspectionDTO = exports.ElectricalsInspectionDTO = exports.EngineInspectionDTO = exports.InteriorInspectionDTO = exports.SteeringAndSuspensionInspectionDTO = exports.TyresInspectionDTO = exports.ExteriorInspectionDTO = exports.BaseInspectionDTO = exports.InspectionPointDTO = exports.InspectionStatus = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const class_validator_2 = require("class-validator");
|
|
16
|
-
// Define InspectionStatus enum
|
|
17
|
-
var InspectionStatus;
|
|
18
|
-
(function (InspectionStatus) {
|
|
19
|
-
InspectionStatus["PERFECT"] = "Perfect";
|
|
20
|
-
InspectionStatus["IMPERFECTIONS"] = "Imperfections";
|
|
21
|
-
InspectionStatus["NOT_APPLICABLE"] = "Not Applicable";
|
|
22
|
-
})(InspectionStatus = exports.InspectionStatus || (exports.InspectionStatus = {}));
|
|
23
|
-
// Define InspectionPointDTO class
|
|
24
|
-
class InspectionPointDTO {
|
|
25
|
-
constructor(status = InspectionStatus.PERFECT) {
|
|
26
|
-
this.status = status;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_2.IsEnum)(InspectionStatus),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], InspectionPointDTO.prototype, "status", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_2.IsOptional)(),
|
|
35
|
-
(0, class_validator_1.IsString)(),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], InspectionPointDTO.prototype, "imperfections", void 0);
|
|
38
|
-
exports.InspectionPointDTO = InspectionPointDTO;
|
|
39
|
-
// Define BaseInspectionDTO for shared functionality
|
|
40
|
-
class BaseInspectionDTO {
|
|
41
|
-
validate() {
|
|
42
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
43
|
-
return errors.map(error => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
44
|
-
}
|
|
45
|
-
static fromPlain(plain) {
|
|
46
|
-
return (0, class_transformer_1.plainToClass)(this, plain);
|
|
47
|
-
}
|
|
48
|
-
toPlain() {
|
|
49
|
-
return (0, class_transformer_1.instanceToPlain)(this);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_2.IsOptional)(),
|
|
54
|
-
__metadata("design:type", Function),
|
|
55
|
-
__metadata("design:paramtypes", []),
|
|
56
|
-
__metadata("design:returntype", Array)
|
|
57
|
-
], BaseInspectionDTO.prototype, "validate", null);
|
|
58
|
-
exports.BaseInspectionDTO = BaseInspectionDTO;
|
|
59
|
-
// Define ExteriorInspectionDTO
|
|
60
|
-
class ExteriorInspectionDTO extends BaseInspectionDTO {
|
|
61
|
-
constructor() {
|
|
62
|
-
super();
|
|
63
|
-
this.hood = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
64
|
-
this.roof = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
65
|
-
this.trunk = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
66
|
-
this.frontLeftDoor = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
67
|
-
this.frontRightDoor = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
68
|
-
this.rearLeftDoor = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
69
|
-
this.rearRightDoor = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
70
|
-
this.frontBumper = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
71
|
-
this.rearBumper = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
72
|
-
this.leftFender = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
73
|
-
this.rightFender = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
74
|
-
this.leftQuarterPanel = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
75
|
-
this.rightQuarterPanel = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
76
|
-
this.leftAPillar = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
77
|
-
this.rightAPillar = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
78
|
-
this.leftAtoBPillarBeading = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
79
|
-
this.rightAtoBPillarBeading = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
80
|
-
this.leftBPillarTrim = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
81
|
-
this.rightBtoCPillarBeading = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
82
|
-
this.leftRunningBoard = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
83
|
-
this.rightRunningBoard = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
84
|
-
this.frontWindshield = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
85
|
-
this.rearWindshield = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
86
|
-
this.chassisCondition = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
87
|
-
this.apron = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
88
|
-
this.bootFloor = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
89
|
-
this.firewallCondition = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
90
|
-
this.leftFrontAlloyRim = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
91
|
-
this.leftRearAlloyRim = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
92
|
-
this.rightFrontAlloyRim = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
93
|
-
this.rightRearAlloyRim = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
94
|
-
this.spareAlloyRimCondition = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
95
|
-
this.wheelCover = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
96
|
-
this.grillCondition = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
97
|
-
this.windowGlass = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
98
|
-
this.wiper = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
99
|
-
this.panelCondition = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
__decorate([
|
|
103
|
-
(0, class_validator_2.ValidateNested)(),
|
|
104
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
105
|
-
__metadata("design:type", InspectionPointDTO)
|
|
106
|
-
], ExteriorInspectionDTO.prototype, "frontLeftDoor", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, class_validator_2.ValidateNested)(),
|
|
109
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
110
|
-
__metadata("design:type", InspectionPointDTO)
|
|
111
|
-
], ExteriorInspectionDTO.prototype, "frontRightDoor", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
(0, class_validator_2.ValidateNested)(),
|
|
114
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
115
|
-
__metadata("design:type", InspectionPointDTO)
|
|
116
|
-
], ExteriorInspectionDTO.prototype, "rearLeftDoor", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, class_validator_2.ValidateNested)(),
|
|
119
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
120
|
-
__metadata("design:type", InspectionPointDTO)
|
|
121
|
-
], ExteriorInspectionDTO.prototype, "rearRightDoor", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
(0, class_validator_2.ValidateNested)(),
|
|
124
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
125
|
-
__metadata("design:type", InspectionPointDTO)
|
|
126
|
-
], ExteriorInspectionDTO.prototype, "leftFender", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
(0, class_validator_2.ValidateNested)(),
|
|
129
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
130
|
-
__metadata("design:type", InspectionPointDTO)
|
|
131
|
-
], ExteriorInspectionDTO.prototype, "rightFender", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, class_validator_2.ValidateNested)(),
|
|
134
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
135
|
-
__metadata("design:type", InspectionPointDTO)
|
|
136
|
-
], ExteriorInspectionDTO.prototype, "frontBumper", void 0);
|
|
137
|
-
__decorate([
|
|
138
|
-
(0, class_validator_2.ValidateNested)(),
|
|
139
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
140
|
-
__metadata("design:type", InspectionPointDTO)
|
|
141
|
-
], ExteriorInspectionDTO.prototype, "rearBumper", void 0);
|
|
142
|
-
__decorate([
|
|
143
|
-
(0, class_validator_2.ValidateNested)(),
|
|
144
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
145
|
-
__metadata("design:type", InspectionPointDTO)
|
|
146
|
-
], ExteriorInspectionDTO.prototype, "hood", void 0);
|
|
147
|
-
__decorate([
|
|
148
|
-
(0, class_validator_2.ValidateNested)(),
|
|
149
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
150
|
-
__metadata("design:type", InspectionPointDTO)
|
|
151
|
-
], ExteriorInspectionDTO.prototype, "trunk", void 0);
|
|
152
|
-
__decorate([
|
|
153
|
-
(0, class_validator_2.ValidateNested)(),
|
|
154
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
155
|
-
__metadata("design:type", InspectionPointDTO)
|
|
156
|
-
], ExteriorInspectionDTO.prototype, "roof", void 0);
|
|
157
|
-
__decorate([
|
|
158
|
-
(0, class_validator_2.ValidateNested)(),
|
|
159
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
160
|
-
__metadata("design:type", InspectionPointDTO)
|
|
161
|
-
], ExteriorInspectionDTO.prototype, "leftQuarterPanel", void 0);
|
|
162
|
-
__decorate([
|
|
163
|
-
(0, class_validator_2.ValidateNested)(),
|
|
164
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
165
|
-
__metadata("design:type", InspectionPointDTO)
|
|
166
|
-
], ExteriorInspectionDTO.prototype, "rightQuarterPanel", void 0);
|
|
167
|
-
__decorate([
|
|
168
|
-
(0, class_validator_2.ValidateNested)(),
|
|
169
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
170
|
-
__metadata("design:type", InspectionPointDTO)
|
|
171
|
-
], ExteriorInspectionDTO.prototype, "leftAPillar", void 0);
|
|
172
|
-
__decorate([
|
|
173
|
-
(0, class_validator_2.ValidateNested)(),
|
|
174
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
175
|
-
__metadata("design:type", InspectionPointDTO)
|
|
176
|
-
], ExteriorInspectionDTO.prototype, "rightAPillar", void 0);
|
|
177
|
-
__decorate([
|
|
178
|
-
(0, class_validator_2.ValidateNested)(),
|
|
179
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
180
|
-
__metadata("design:type", InspectionPointDTO)
|
|
181
|
-
], ExteriorInspectionDTO.prototype, "leftAtoBPillarBeading", void 0);
|
|
182
|
-
__decorate([
|
|
183
|
-
(0, class_validator_2.ValidateNested)(),
|
|
184
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
185
|
-
__metadata("design:type", InspectionPointDTO)
|
|
186
|
-
], ExteriorInspectionDTO.prototype, "rightAtoBPillarBeading", void 0);
|
|
187
|
-
__decorate([
|
|
188
|
-
(0, class_validator_2.ValidateNested)(),
|
|
189
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
190
|
-
__metadata("design:type", InspectionPointDTO)
|
|
191
|
-
], ExteriorInspectionDTO.prototype, "leftBPillarTrim", void 0);
|
|
192
|
-
__decorate([
|
|
193
|
-
(0, class_validator_2.ValidateNested)(),
|
|
194
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
195
|
-
__metadata("design:type", InspectionPointDTO)
|
|
196
|
-
], ExteriorInspectionDTO.prototype, "rightBtoCPillarBeading", void 0);
|
|
197
|
-
__decorate([
|
|
198
|
-
(0, class_validator_2.ValidateNested)(),
|
|
199
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
200
|
-
__metadata("design:type", InspectionPointDTO)
|
|
201
|
-
], ExteriorInspectionDTO.prototype, "leftRunningBoard", void 0);
|
|
202
|
-
__decorate([
|
|
203
|
-
(0, class_validator_2.ValidateNested)(),
|
|
204
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
205
|
-
__metadata("design:type", InspectionPointDTO)
|
|
206
|
-
], ExteriorInspectionDTO.prototype, "rightRunningBoard", void 0);
|
|
207
|
-
__decorate([
|
|
208
|
-
(0, class_validator_2.ValidateNested)(),
|
|
209
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
210
|
-
__metadata("design:type", InspectionPointDTO)
|
|
211
|
-
], ExteriorInspectionDTO.prototype, "frontWindshield", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
(0, class_validator_2.ValidateNested)(),
|
|
214
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
215
|
-
__metadata("design:type", InspectionPointDTO)
|
|
216
|
-
], ExteriorInspectionDTO.prototype, "rearWindshield", void 0);
|
|
217
|
-
__decorate([
|
|
218
|
-
(0, class_validator_2.ValidateNested)(),
|
|
219
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
220
|
-
__metadata("design:type", InspectionPointDTO)
|
|
221
|
-
], ExteriorInspectionDTO.prototype, "chassisCondition", void 0);
|
|
222
|
-
__decorate([
|
|
223
|
-
(0, class_validator_2.ValidateNested)(),
|
|
224
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
225
|
-
__metadata("design:type", InspectionPointDTO)
|
|
226
|
-
], ExteriorInspectionDTO.prototype, "apron", void 0);
|
|
227
|
-
__decorate([
|
|
228
|
-
(0, class_validator_2.ValidateNested)(),
|
|
229
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
230
|
-
__metadata("design:type", InspectionPointDTO)
|
|
231
|
-
], ExteriorInspectionDTO.prototype, "bootFloor", void 0);
|
|
232
|
-
__decorate([
|
|
233
|
-
(0, class_validator_2.ValidateNested)(),
|
|
234
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
235
|
-
__metadata("design:type", InspectionPointDTO)
|
|
236
|
-
], ExteriorInspectionDTO.prototype, "firewallCondition", void 0);
|
|
237
|
-
__decorate([
|
|
238
|
-
(0, class_validator_2.ValidateNested)(),
|
|
239
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
240
|
-
__metadata("design:type", InspectionPointDTO)
|
|
241
|
-
], ExteriorInspectionDTO.prototype, "leftFrontAlloyRim", void 0);
|
|
242
|
-
__decorate([
|
|
243
|
-
(0, class_validator_2.ValidateNested)(),
|
|
244
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
245
|
-
__metadata("design:type", InspectionPointDTO)
|
|
246
|
-
], ExteriorInspectionDTO.prototype, "leftRearAlloyRim", void 0);
|
|
247
|
-
__decorate([
|
|
248
|
-
(0, class_validator_2.ValidateNested)(),
|
|
249
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
250
|
-
__metadata("design:type", InspectionPointDTO)
|
|
251
|
-
], ExteriorInspectionDTO.prototype, "rightFrontAlloyRim", void 0);
|
|
252
|
-
__decorate([
|
|
253
|
-
(0, class_validator_2.ValidateNested)(),
|
|
254
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
255
|
-
__metadata("design:type", InspectionPointDTO)
|
|
256
|
-
], ExteriorInspectionDTO.prototype, "rightRearAlloyRim", void 0);
|
|
257
|
-
__decorate([
|
|
258
|
-
(0, class_validator_2.ValidateNested)(),
|
|
259
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
260
|
-
__metadata("design:type", InspectionPointDTO)
|
|
261
|
-
], ExteriorInspectionDTO.prototype, "spareAlloyRimCondition", void 0);
|
|
262
|
-
__decorate([
|
|
263
|
-
(0, class_validator_2.ValidateNested)(),
|
|
264
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
265
|
-
__metadata("design:type", InspectionPointDTO)
|
|
266
|
-
], ExteriorInspectionDTO.prototype, "wheelCover", void 0);
|
|
267
|
-
__decorate([
|
|
268
|
-
(0, class_validator_2.ValidateNested)(),
|
|
269
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
270
|
-
__metadata("design:type", InspectionPointDTO)
|
|
271
|
-
], ExteriorInspectionDTO.prototype, "grillCondition", void 0);
|
|
272
|
-
__decorate([
|
|
273
|
-
(0, class_validator_2.ValidateNested)(),
|
|
274
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
275
|
-
__metadata("design:type", InspectionPointDTO)
|
|
276
|
-
], ExteriorInspectionDTO.prototype, "windowGlass", void 0);
|
|
277
|
-
__decorate([
|
|
278
|
-
(0, class_validator_2.ValidateNested)(),
|
|
279
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
280
|
-
__metadata("design:type", InspectionPointDTO)
|
|
281
|
-
], ExteriorInspectionDTO.prototype, "wiper", void 0);
|
|
282
|
-
__decorate([
|
|
283
|
-
(0, class_validator_2.ValidateNested)(),
|
|
284
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
285
|
-
__metadata("design:type", InspectionPointDTO)
|
|
286
|
-
], ExteriorInspectionDTO.prototype, "panelCondition", void 0);
|
|
287
|
-
exports.ExteriorInspectionDTO = ExteriorInspectionDTO;
|
|
288
|
-
// Define TyresInspectionDTO
|
|
289
|
-
class TyresInspectionDTO extends BaseInspectionDTO {
|
|
290
|
-
constructor() {
|
|
291
|
-
super();
|
|
292
|
-
this.leftFrontTyre = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
293
|
-
this.rightFrontTyre = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
294
|
-
this.leftRearTyre = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
295
|
-
this.rightRearTyre = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
296
|
-
this.spareTyre = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
297
|
-
this.leftFrontTyreLife = 100;
|
|
298
|
-
this.rightFrontTyreLife = 100;
|
|
299
|
-
this.leftRearTyreLife = 100;
|
|
300
|
-
this.rightRearTyreLife = 100;
|
|
301
|
-
this.spareTyreLife = 100;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
__decorate([
|
|
305
|
-
(0, class_validator_2.ValidateNested)(),
|
|
306
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
307
|
-
__metadata("design:type", InspectionPointDTO)
|
|
308
|
-
], TyresInspectionDTO.prototype, "leftFrontTyre", void 0);
|
|
309
|
-
__decorate([
|
|
310
|
-
(0, class_validator_1.IsNumber)(),
|
|
311
|
-
(0, class_validator_1.Min)(0),
|
|
312
|
-
(0, class_validator_1.Max)(100),
|
|
313
|
-
__metadata("design:type", Number)
|
|
314
|
-
], TyresInspectionDTO.prototype, "leftFrontTyreLife", void 0);
|
|
315
|
-
__decorate([
|
|
316
|
-
(0, class_validator_2.ValidateNested)(),
|
|
317
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
318
|
-
__metadata("design:type", InspectionPointDTO)
|
|
319
|
-
], TyresInspectionDTO.prototype, "rightFrontTyre", void 0);
|
|
320
|
-
__decorate([
|
|
321
|
-
(0, class_validator_1.IsNumber)(),
|
|
322
|
-
(0, class_validator_1.Min)(0),
|
|
323
|
-
(0, class_validator_1.Max)(100),
|
|
324
|
-
__metadata("design:type", Number)
|
|
325
|
-
], TyresInspectionDTO.prototype, "rightFrontTyreLife", void 0);
|
|
326
|
-
__decorate([
|
|
327
|
-
(0, class_validator_2.ValidateNested)(),
|
|
328
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
329
|
-
__metadata("design:type", InspectionPointDTO)
|
|
330
|
-
], TyresInspectionDTO.prototype, "leftRearTyre", void 0);
|
|
331
|
-
__decorate([
|
|
332
|
-
(0, class_validator_1.IsNumber)(),
|
|
333
|
-
(0, class_validator_1.Min)(0),
|
|
334
|
-
(0, class_validator_1.Max)(100),
|
|
335
|
-
__metadata("design:type", Number)
|
|
336
|
-
], TyresInspectionDTO.prototype, "leftRearTyreLife", void 0);
|
|
337
|
-
__decorate([
|
|
338
|
-
(0, class_validator_2.ValidateNested)(),
|
|
339
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
340
|
-
__metadata("design:type", InspectionPointDTO)
|
|
341
|
-
], TyresInspectionDTO.prototype, "rightRearTyre", void 0);
|
|
342
|
-
__decorate([
|
|
343
|
-
(0, class_validator_1.IsNumber)(),
|
|
344
|
-
(0, class_validator_1.Min)(0),
|
|
345
|
-
(0, class_validator_1.Max)(100),
|
|
346
|
-
__metadata("design:type", Number)
|
|
347
|
-
], TyresInspectionDTO.prototype, "rightRearTyreLife", void 0);
|
|
348
|
-
__decorate([
|
|
349
|
-
(0, class_validator_2.ValidateNested)(),
|
|
350
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
351
|
-
__metadata("design:type", InspectionPointDTO)
|
|
352
|
-
], TyresInspectionDTO.prototype, "spareTyre", void 0);
|
|
353
|
-
__decorate([
|
|
354
|
-
(0, class_validator_1.IsNumber)(),
|
|
355
|
-
(0, class_validator_1.Min)(0),
|
|
356
|
-
(0, class_validator_1.Max)(100),
|
|
357
|
-
__metadata("design:type", Number)
|
|
358
|
-
], TyresInspectionDTO.prototype, "spareTyreLife", void 0);
|
|
359
|
-
exports.TyresInspectionDTO = TyresInspectionDTO;
|
|
360
|
-
class SteeringAndSuspensionInspectionDTO extends BaseInspectionDTO {
|
|
361
|
-
constructor() {
|
|
362
|
-
super();
|
|
363
|
-
this.steeringWheel = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
364
|
-
this.parkingBrake = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
365
|
-
this.brakeMasterCylinder = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
366
|
-
this.brakeDiscAndPad = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
367
|
-
this.brakeFluid = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
368
|
-
this.shockAbsorbers = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
__decorate([
|
|
372
|
-
(0, class_validator_2.ValidateNested)(),
|
|
373
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
374
|
-
__metadata("design:type", InspectionPointDTO)
|
|
375
|
-
], SteeringAndSuspensionInspectionDTO.prototype, "steeringWheel", void 0);
|
|
376
|
-
__decorate([
|
|
377
|
-
(0, class_validator_2.ValidateNested)(),
|
|
378
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
379
|
-
__metadata("design:type", InspectionPointDTO)
|
|
380
|
-
], SteeringAndSuspensionInspectionDTO.prototype, "parkingBrake", void 0);
|
|
381
|
-
__decorate([
|
|
382
|
-
(0, class_validator_2.ValidateNested)(),
|
|
383
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
384
|
-
__metadata("design:type", InspectionPointDTO)
|
|
385
|
-
], SteeringAndSuspensionInspectionDTO.prototype, "brakeMasterCylinder", void 0);
|
|
386
|
-
__decorate([
|
|
387
|
-
(0, class_validator_2.ValidateNested)(),
|
|
388
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
389
|
-
__metadata("design:type", InspectionPointDTO)
|
|
390
|
-
], SteeringAndSuspensionInspectionDTO.prototype, "brakeDiscAndPad", void 0);
|
|
391
|
-
__decorate([
|
|
392
|
-
(0, class_validator_2.ValidateNested)(),
|
|
393
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
394
|
-
__metadata("design:type", InspectionPointDTO)
|
|
395
|
-
], SteeringAndSuspensionInspectionDTO.prototype, "brakeFluid", void 0);
|
|
396
|
-
__decorate([
|
|
397
|
-
(0, class_validator_2.ValidateNested)(),
|
|
398
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
399
|
-
__metadata("design:type", InspectionPointDTO)
|
|
400
|
-
], SteeringAndSuspensionInspectionDTO.prototype, "shockAbsorbers", void 0);
|
|
401
|
-
exports.SteeringAndSuspensionInspectionDTO = SteeringAndSuspensionInspectionDTO;
|
|
402
|
-
class InteriorInspectionDTO extends BaseInspectionDTO {
|
|
403
|
-
constructor() {
|
|
404
|
-
super();
|
|
405
|
-
this.dashboard = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
406
|
-
this.centralConsole = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
407
|
-
this.gloveBox = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
408
|
-
this.sunvisor = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
409
|
-
this.seatUpholstery = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
410
|
-
this.carpets = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
411
|
-
this.headliner = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
412
|
-
this.manualSeatMovement = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
413
|
-
this.seatBelts = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
414
|
-
this.headRest = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
415
|
-
this.doorControls = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
416
|
-
this.grabHandle = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
417
|
-
this.rearViewMirror = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
418
|
-
this.toolKit = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
__decorate([
|
|
422
|
-
(0, class_validator_2.ValidateNested)(),
|
|
423
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
424
|
-
__metadata("design:type", InspectionPointDTO)
|
|
425
|
-
], InteriorInspectionDTO.prototype, "dashboard", void 0);
|
|
426
|
-
__decorate([
|
|
427
|
-
(0, class_validator_2.ValidateNested)(),
|
|
428
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
429
|
-
__metadata("design:type", InspectionPointDTO)
|
|
430
|
-
], InteriorInspectionDTO.prototype, "centralConsole", void 0);
|
|
431
|
-
__decorate([
|
|
432
|
-
(0, class_validator_2.ValidateNested)(),
|
|
433
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
434
|
-
__metadata("design:type", InspectionPointDTO)
|
|
435
|
-
], InteriorInspectionDTO.prototype, "gloveBox", void 0);
|
|
436
|
-
__decorate([
|
|
437
|
-
(0, class_validator_2.ValidateNested)(),
|
|
438
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
439
|
-
__metadata("design:type", InspectionPointDTO)
|
|
440
|
-
], InteriorInspectionDTO.prototype, "sunvisor", void 0);
|
|
441
|
-
__decorate([
|
|
442
|
-
(0, class_validator_2.ValidateNested)(),
|
|
443
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
444
|
-
__metadata("design:type", InspectionPointDTO)
|
|
445
|
-
], InteriorInspectionDTO.prototype, "seatUpholstery", void 0);
|
|
446
|
-
__decorate([
|
|
447
|
-
(0, class_validator_2.ValidateNested)(),
|
|
448
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
449
|
-
__metadata("design:type", InspectionPointDTO)
|
|
450
|
-
], InteriorInspectionDTO.prototype, "carpets", void 0);
|
|
451
|
-
__decorate([
|
|
452
|
-
(0, class_validator_2.ValidateNested)(),
|
|
453
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
454
|
-
__metadata("design:type", InspectionPointDTO)
|
|
455
|
-
], InteriorInspectionDTO.prototype, "headliner", void 0);
|
|
456
|
-
__decorate([
|
|
457
|
-
(0, class_validator_2.ValidateNested)(),
|
|
458
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
459
|
-
__metadata("design:type", InspectionPointDTO)
|
|
460
|
-
], InteriorInspectionDTO.prototype, "manualSeatMovement", void 0);
|
|
461
|
-
__decorate([
|
|
462
|
-
(0, class_validator_2.ValidateNested)(),
|
|
463
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
464
|
-
__metadata("design:type", InspectionPointDTO)
|
|
465
|
-
], InteriorInspectionDTO.prototype, "seatBelts", void 0);
|
|
466
|
-
__decorate([
|
|
467
|
-
(0, class_validator_2.ValidateNested)(),
|
|
468
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
469
|
-
__metadata("design:type", InspectionPointDTO)
|
|
470
|
-
], InteriorInspectionDTO.prototype, "headRest", void 0);
|
|
471
|
-
__decorate([
|
|
472
|
-
(0, class_validator_2.ValidateNested)(),
|
|
473
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
474
|
-
__metadata("design:type", InspectionPointDTO)
|
|
475
|
-
], InteriorInspectionDTO.prototype, "doorControls", void 0);
|
|
476
|
-
__decorate([
|
|
477
|
-
(0, class_validator_2.ValidateNested)(),
|
|
478
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
479
|
-
__metadata("design:type", InspectionPointDTO)
|
|
480
|
-
], InteriorInspectionDTO.prototype, "grabHandle", void 0);
|
|
481
|
-
__decorate([
|
|
482
|
-
(0, class_validator_2.ValidateNested)(),
|
|
483
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
484
|
-
__metadata("design:type", InspectionPointDTO)
|
|
485
|
-
], InteriorInspectionDTO.prototype, "rearViewMirror", void 0);
|
|
486
|
-
__decorate([
|
|
487
|
-
(0, class_validator_2.ValidateNested)(),
|
|
488
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
489
|
-
__metadata("design:type", InspectionPointDTO)
|
|
490
|
-
], InteriorInspectionDTO.prototype, "toolKit", void 0);
|
|
491
|
-
exports.InteriorInspectionDTO = InteriorInspectionDTO;
|
|
492
|
-
class EngineInspectionDTO extends BaseInspectionDTO {
|
|
493
|
-
constructor() {
|
|
494
|
-
super();
|
|
495
|
-
this.engineBody = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
496
|
-
this.enginePerformance = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
497
|
-
this.engineOil = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
498
|
-
this.exhaustSystem = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
499
|
-
this.radiator = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
500
|
-
this.coolant = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
501
|
-
this.fuelTank = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
502
|
-
this.gearShifting = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
503
|
-
this.driveAxle = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
504
|
-
this.transmissionFluid = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
__decorate([
|
|
508
|
-
(0, class_validator_2.ValidateNested)(),
|
|
509
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
510
|
-
__metadata("design:type", InspectionPointDTO)
|
|
511
|
-
], EngineInspectionDTO.prototype, "engineBody", void 0);
|
|
512
|
-
__decorate([
|
|
513
|
-
(0, class_validator_2.ValidateNested)(),
|
|
514
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
515
|
-
__metadata("design:type", InspectionPointDTO)
|
|
516
|
-
], EngineInspectionDTO.prototype, "enginePerformance", void 0);
|
|
517
|
-
__decorate([
|
|
518
|
-
(0, class_validator_2.ValidateNested)(),
|
|
519
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
520
|
-
__metadata("design:type", InspectionPointDTO)
|
|
521
|
-
], EngineInspectionDTO.prototype, "engineOil", void 0);
|
|
522
|
-
__decorate([
|
|
523
|
-
(0, class_validator_2.ValidateNested)(),
|
|
524
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
525
|
-
__metadata("design:type", InspectionPointDTO)
|
|
526
|
-
], EngineInspectionDTO.prototype, "exhaustSystem", void 0);
|
|
527
|
-
__decorate([
|
|
528
|
-
(0, class_validator_2.ValidateNested)(),
|
|
529
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
530
|
-
__metadata("design:type", InspectionPointDTO)
|
|
531
|
-
], EngineInspectionDTO.prototype, "radiator", void 0);
|
|
532
|
-
__decorate([
|
|
533
|
-
(0, class_validator_2.ValidateNested)(),
|
|
534
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
535
|
-
__metadata("design:type", InspectionPointDTO)
|
|
536
|
-
], EngineInspectionDTO.prototype, "coolant", void 0);
|
|
537
|
-
__decorate([
|
|
538
|
-
(0, class_validator_2.ValidateNested)(),
|
|
539
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
540
|
-
__metadata("design:type", InspectionPointDTO)
|
|
541
|
-
], EngineInspectionDTO.prototype, "fuelTank", void 0);
|
|
542
|
-
__decorate([
|
|
543
|
-
(0, class_validator_2.ValidateNested)(),
|
|
544
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
545
|
-
__metadata("design:type", InspectionPointDTO)
|
|
546
|
-
], EngineInspectionDTO.prototype, "gearShifting", void 0);
|
|
547
|
-
__decorate([
|
|
548
|
-
(0, class_validator_2.ValidateNested)(),
|
|
549
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
550
|
-
__metadata("design:type", InspectionPointDTO)
|
|
551
|
-
], EngineInspectionDTO.prototype, "driveAxle", void 0);
|
|
552
|
-
__decorate([
|
|
553
|
-
(0, class_validator_2.ValidateNested)(),
|
|
554
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
555
|
-
__metadata("design:type", InspectionPointDTO)
|
|
556
|
-
], EngineInspectionDTO.prototype, "transmissionFluid", void 0);
|
|
557
|
-
exports.EngineInspectionDTO = EngineInspectionDTO;
|
|
558
|
-
class ElectricalsInspectionDTO extends BaseInspectionDTO {
|
|
559
|
-
constructor() {
|
|
560
|
-
super();
|
|
561
|
-
this.masterKey = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
562
|
-
this.spareKey = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
563
|
-
this.childSafetyLocking = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
564
|
-
this.instrumentPanel = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
565
|
-
this.airbags = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
566
|
-
this.controls = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
567
|
-
this.cruiseControl = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
568
|
-
this.infotainmentDisplay = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
569
|
-
this.obdConnector = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
570
|
-
this.musicSystem = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
571
|
-
this.headlight = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
572
|
-
this.interiorLights = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
573
|
-
this.tailLightCluster = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
574
|
-
this.licensePlateLight = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
575
|
-
this.acCooling = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
576
|
-
this.acSwitch = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
577
|
-
this.acLeaks = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
578
|
-
this.centerAcVent = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
579
|
-
this.frontRightAcVent = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
580
|
-
this.heater = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
581
|
-
this.parkingSensors = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
582
|
-
this.rearDefogger = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
583
|
-
this.usbChargingPort = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
584
|
-
this.powerManualWindows = new InspectionPointDTO(InspectionStatus.PERFECT);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
__decorate([
|
|
588
|
-
(0, class_validator_2.ValidateNested)(),
|
|
589
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
590
|
-
__metadata("design:type", InspectionPointDTO)
|
|
591
|
-
], ElectricalsInspectionDTO.prototype, "masterKey", void 0);
|
|
592
|
-
__decorate([
|
|
593
|
-
(0, class_validator_2.ValidateNested)(),
|
|
594
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
595
|
-
__metadata("design:type", InspectionPointDTO)
|
|
596
|
-
], ElectricalsInspectionDTO.prototype, "spareKey", void 0);
|
|
597
|
-
__decorate([
|
|
598
|
-
(0, class_validator_2.ValidateNested)(),
|
|
599
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
600
|
-
__metadata("design:type", InspectionPointDTO)
|
|
601
|
-
], ElectricalsInspectionDTO.prototype, "childSafetyLocking", void 0);
|
|
602
|
-
__decorate([
|
|
603
|
-
(0, class_validator_2.ValidateNested)(),
|
|
604
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
605
|
-
__metadata("design:type", InspectionPointDTO)
|
|
606
|
-
], ElectricalsInspectionDTO.prototype, "instrumentPanel", void 0);
|
|
607
|
-
__decorate([
|
|
608
|
-
(0, class_validator_2.ValidateNested)(),
|
|
609
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
610
|
-
__metadata("design:type", InspectionPointDTO)
|
|
611
|
-
], ElectricalsInspectionDTO.prototype, "airbags", void 0);
|
|
612
|
-
__decorate([
|
|
613
|
-
(0, class_validator_2.ValidateNested)(),
|
|
614
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
615
|
-
__metadata("design:type", InspectionPointDTO)
|
|
616
|
-
], ElectricalsInspectionDTO.prototype, "controls", void 0);
|
|
617
|
-
__decorate([
|
|
618
|
-
(0, class_validator_2.ValidateNested)(),
|
|
619
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
620
|
-
__metadata("design:type", InspectionPointDTO)
|
|
621
|
-
], ElectricalsInspectionDTO.prototype, "cruiseControl", void 0);
|
|
622
|
-
__decorate([
|
|
623
|
-
(0, class_validator_2.ValidateNested)(),
|
|
624
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
625
|
-
__metadata("design:type", InspectionPointDTO)
|
|
626
|
-
], ElectricalsInspectionDTO.prototype, "infotainmentDisplay", void 0);
|
|
627
|
-
__decorate([
|
|
628
|
-
(0, class_validator_2.ValidateNested)(),
|
|
629
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
630
|
-
__metadata("design:type", InspectionPointDTO)
|
|
631
|
-
], ElectricalsInspectionDTO.prototype, "obdConnector", void 0);
|
|
632
|
-
__decorate([
|
|
633
|
-
(0, class_validator_2.ValidateNested)(),
|
|
634
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
635
|
-
__metadata("design:type", InspectionPointDTO)
|
|
636
|
-
], ElectricalsInspectionDTO.prototype, "musicSystem", void 0);
|
|
637
|
-
__decorate([
|
|
638
|
-
(0, class_validator_2.ValidateNested)(),
|
|
639
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
640
|
-
__metadata("design:type", InspectionPointDTO)
|
|
641
|
-
], ElectricalsInspectionDTO.prototype, "headlight", void 0);
|
|
642
|
-
__decorate([
|
|
643
|
-
(0, class_validator_2.ValidateNested)(),
|
|
644
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
645
|
-
__metadata("design:type", InspectionPointDTO)
|
|
646
|
-
], ElectricalsInspectionDTO.prototype, "interiorLights", void 0);
|
|
647
|
-
__decorate([
|
|
648
|
-
(0, class_validator_2.ValidateNested)(),
|
|
649
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
650
|
-
__metadata("design:type", InspectionPointDTO)
|
|
651
|
-
], ElectricalsInspectionDTO.prototype, "tailLightCluster", void 0);
|
|
652
|
-
__decorate([
|
|
653
|
-
(0, class_validator_2.ValidateNested)(),
|
|
654
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
655
|
-
__metadata("design:type", InspectionPointDTO)
|
|
656
|
-
], ElectricalsInspectionDTO.prototype, "licensePlateLight", void 0);
|
|
657
|
-
__decorate([
|
|
658
|
-
(0, class_validator_2.ValidateNested)(),
|
|
659
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
660
|
-
__metadata("design:type", InspectionPointDTO)
|
|
661
|
-
], ElectricalsInspectionDTO.prototype, "acCooling", void 0);
|
|
662
|
-
__decorate([
|
|
663
|
-
(0, class_validator_2.ValidateNested)(),
|
|
664
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
665
|
-
__metadata("design:type", InspectionPointDTO)
|
|
666
|
-
], ElectricalsInspectionDTO.prototype, "acSwitch", void 0);
|
|
667
|
-
__decorate([
|
|
668
|
-
(0, class_validator_2.ValidateNested)(),
|
|
669
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
670
|
-
__metadata("design:type", InspectionPointDTO)
|
|
671
|
-
], ElectricalsInspectionDTO.prototype, "acLeaks", void 0);
|
|
672
|
-
__decorate([
|
|
673
|
-
(0, class_validator_2.ValidateNested)(),
|
|
674
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
675
|
-
__metadata("design:type", InspectionPointDTO)
|
|
676
|
-
], ElectricalsInspectionDTO.prototype, "centerAcVent", void 0);
|
|
677
|
-
__decorate([
|
|
678
|
-
(0, class_validator_2.ValidateNested)(),
|
|
679
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
680
|
-
__metadata("design:type", InspectionPointDTO)
|
|
681
|
-
], ElectricalsInspectionDTO.prototype, "frontRightAcVent", void 0);
|
|
682
|
-
__decorate([
|
|
683
|
-
(0, class_validator_2.ValidateNested)(),
|
|
684
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
685
|
-
__metadata("design:type", InspectionPointDTO)
|
|
686
|
-
], ElectricalsInspectionDTO.prototype, "heater", void 0);
|
|
687
|
-
__decorate([
|
|
688
|
-
(0, class_validator_2.ValidateNested)(),
|
|
689
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
690
|
-
__metadata("design:type", InspectionPointDTO)
|
|
691
|
-
], ElectricalsInspectionDTO.prototype, "parkingSensors", void 0);
|
|
692
|
-
__decorate([
|
|
693
|
-
(0, class_validator_2.ValidateNested)(),
|
|
694
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
695
|
-
__metadata("design:type", InspectionPointDTO)
|
|
696
|
-
], ElectricalsInspectionDTO.prototype, "rearDefogger", void 0);
|
|
697
|
-
__decorate([
|
|
698
|
-
(0, class_validator_2.ValidateNested)(),
|
|
699
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
700
|
-
__metadata("design:type", InspectionPointDTO)
|
|
701
|
-
], ElectricalsInspectionDTO.prototype, "usbChargingPort", void 0);
|
|
702
|
-
__decorate([
|
|
703
|
-
(0, class_validator_2.ValidateNested)(),
|
|
704
|
-
(0, class_transformer_1.Type)(() => InspectionPointDTO),
|
|
705
|
-
__metadata("design:type", InspectionPointDTO)
|
|
706
|
-
], ElectricalsInspectionDTO.prototype, "powerManualWindows", void 0);
|
|
707
|
-
exports.ElectricalsInspectionDTO = ElectricalsInspectionDTO;
|
|
708
|
-
class VehicleInspectionDTO {
|
|
709
|
-
validate() {
|
|
710
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
711
|
-
return errors.map(error => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
712
|
-
}
|
|
713
|
-
static fromPlain(plain) {
|
|
714
|
-
return (0, class_transformer_1.plainToClass)(VehicleInspectionDTO, plain);
|
|
715
|
-
}
|
|
716
|
-
toPlain() {
|
|
717
|
-
return (0, class_transformer_1.instanceToPlain)(this);
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
__decorate([
|
|
721
|
-
(0, class_validator_1.IsString)(),
|
|
722
|
-
__metadata("design:type", String)
|
|
723
|
-
], VehicleInspectionDTO.prototype, "vehicle", void 0);
|
|
724
|
-
__decorate([
|
|
725
|
-
(0, class_validator_1.IsString)(),
|
|
726
|
-
(0, class_validator_2.IsOptional)(),
|
|
727
|
-
__metadata("design:type", String)
|
|
728
|
-
], VehicleInspectionDTO.prototype, "inspectorId", void 0);
|
|
729
|
-
__decorate([
|
|
730
|
-
(0, class_validator_2.ValidateNested)(),
|
|
731
|
-
(0, class_transformer_1.Type)(() => ExteriorInspectionDTO),
|
|
732
|
-
__metadata("design:type", ExteriorInspectionDTO)
|
|
733
|
-
], VehicleInspectionDTO.prototype, "exterior", void 0);
|
|
734
|
-
__decorate([
|
|
735
|
-
(0, class_validator_2.ValidateNested)(),
|
|
736
|
-
(0, class_transformer_1.Type)(() => SteeringAndSuspensionInspectionDTO),
|
|
737
|
-
__metadata("design:type", SteeringAndSuspensionInspectionDTO)
|
|
738
|
-
], VehicleInspectionDTO.prototype, "steeringAndSuspension", void 0);
|
|
739
|
-
__decorate([
|
|
740
|
-
(0, class_validator_2.ValidateNested)(),
|
|
741
|
-
(0, class_transformer_1.Type)(() => InteriorInspectionDTO),
|
|
742
|
-
__metadata("design:type", InteriorInspectionDTO)
|
|
743
|
-
], VehicleInspectionDTO.prototype, "interior", void 0);
|
|
744
|
-
__decorate([
|
|
745
|
-
(0, class_validator_2.ValidateNested)(),
|
|
746
|
-
(0, class_transformer_1.Type)(() => EngineInspectionDTO),
|
|
747
|
-
__metadata("design:type", EngineInspectionDTO)
|
|
748
|
-
], VehicleInspectionDTO.prototype, "engine", void 0);
|
|
749
|
-
__decorate([
|
|
750
|
-
(0, class_validator_2.ValidateNested)(),
|
|
751
|
-
(0, class_transformer_1.Type)(() => ElectricalsInspectionDTO),
|
|
752
|
-
__metadata("design:type", ElectricalsInspectionDTO)
|
|
753
|
-
], VehicleInspectionDTO.prototype, "electricals", void 0);
|
|
754
|
-
__decorate([
|
|
755
|
-
(0, class_validator_2.ValidateNested)(),
|
|
756
|
-
(0, class_transformer_1.Type)(() => TyresInspectionDTO),
|
|
757
|
-
__metadata("design:type", TyresInspectionDTO)
|
|
758
|
-
], VehicleInspectionDTO.prototype, "tyres", void 0);
|
|
759
|
-
__decorate([
|
|
760
|
-
(0, class_validator_2.IsOptional)(),
|
|
761
|
-
__metadata("design:type", Function),
|
|
762
|
-
__metadata("design:paramtypes", []),
|
|
763
|
-
__metadata("design:returntype", Array)
|
|
764
|
-
], VehicleInspectionDTO.prototype, "validate", null);
|
|
765
|
-
exports.VehicleInspectionDTO = VehicleInspectionDTO;
|