@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.
Files changed (146) hide show
  1. package/dist/index.js +1 -21
  2. package/package.json +10 -6
  3. package/dist/core/enums/HttpMethods.js +0 -14
  4. package/dist/core/enums/HttpStatusCodes.js +0 -19
  5. package/dist/core/enums/index.js +0 -18
  6. package/dist/core/error-handling/AppError.js +0 -48
  7. package/dist/core/error-handling/index.js +0 -17
  8. package/dist/core/index.js +0 -21
  9. package/dist/core/models/index.js +0 -19
  10. package/dist/core/models/media/index.js +0 -17
  11. package/dist/core/models/media/media_data.js +0 -2
  12. package/dist/core/models/pagination/index.js +0 -17
  13. package/dist/core/models/pagination/paginated_data.js +0 -21
  14. package/dist/core/models/range.js +0 -26
  15. package/dist/core/network/api-client.d.ts +0 -1
  16. package/dist/core/network/api-client.js +0 -22
  17. package/dist/core/network/endpoint-config.js +0 -260
  18. package/dist/core/network/fetch-api.js +0 -206
  19. package/dist/core/network/index.js +0 -18
  20. package/dist/core/utils/formatCurrency.js +0 -39
  21. package/dist/core/utils/global-constants.js +0 -9
  22. package/dist/core/utils/global-utils.js +0 -190
  23. package/dist/core/utils/global_validators.js +0 -20
  24. package/dist/core/utils/index.js +0 -20
  25. package/dist/core/utils/query_flatten.js +0 -15
  26. package/dist/features/auth/data/dto/AuthDTO.js +0 -106
  27. package/dist/features/auth/data/dto/RoleDTO.js +0 -132
  28. package/dist/features/auth/data/dto/UserDTO.js +0 -222
  29. package/dist/features/auth/data/index.js +0 -19
  30. package/dist/features/auth/index.js +0 -17
  31. package/dist/features/bank-valuation-request/data/dto/BankValuationRequestDTO.js +0 -132
  32. package/dist/features/bank-valuation-request/index.js +0 -17
  33. package/dist/features/blog/data/dto/BlogDTO.js +0 -176
  34. package/dist/features/blog/index.js +0 -17
  35. package/dist/features/callback-request/data/dto/CallBackRequestDTO.js +0 -110
  36. package/dist/features/callback-request/index.js +0 -17
  37. package/dist/features/deposits/data/dto/DepositDTOs.js +0 -303
  38. package/dist/features/deposits/data/index.js +0 -17
  39. package/dist/features/deposits/index.js +0 -17
  40. package/dist/features/faq/data/dtos/CreateFaqDTO.js +0 -87
  41. package/dist/features/faq/data/dtos/FaqFetchDTO.js +0 -349
  42. package/dist/features/faq/data/dtos/UpdateFaqDTO.js +0 -91
  43. package/dist/features/faq/data/dtos/index.js +0 -19
  44. package/dist/features/faq/data/enums/index.js +0 -10
  45. package/dist/features/faq/data/index.js +0 -18
  46. package/dist/features/faq/index.js +0 -17
  47. package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.js +0 -429
  48. package/dist/features/finance-eligibilty-request/data/index.js +0 -17
  49. package/dist/features/finance-eligibilty-request/index.js +0 -17
  50. package/dist/features/google-review/data/dto/google_review_dto.js +0 -466
  51. package/dist/features/google-review/data/dto/index.js +0 -17
  52. package/dist/features/google-review/data/enums/index.js +0 -8
  53. package/dist/features/google-review/data/index.js +0 -18
  54. package/dist/features/google-review/index.js +0 -17
  55. package/dist/features/index.js +0 -34
  56. package/dist/features/lead/data/dto/index.js +0 -20
  57. package/dist/features/lead/data/dto/lead_documents_dto.js +0 -73
  58. package/dist/features/lead/data/dto/lead_dto.js +0 -435
  59. package/dist/features/lead/data/dto/lead_preference_history_dto.js +0 -321
  60. package/dist/features/lead/data/dto/lead_prefernce_dto.js +0 -308
  61. package/dist/features/lead/data/enum/index.js +0 -18
  62. package/dist/features/lead/data/enum/lead_source_status_types.js +0 -19
  63. package/dist/features/lead/data/enum/lead_status_type.js +0 -12
  64. package/dist/features/lead/index.js +0 -18
  65. package/dist/features/models/BankValuationRequest.js +0 -6
  66. package/dist/features/models/Base.js +0 -6
  67. package/dist/features/models/Deposit.js +0 -6
  68. package/dist/features/models/Lead.js +0 -6
  69. package/dist/features/models/Payment.js +0 -7
  70. package/dist/features/models/Roles.js +0 -2
  71. package/dist/features/models/Ticket.js +0 -12
  72. package/dist/features/models/User.js +0 -2
  73. package/dist/features/models/UserFavoriteVehicle.js +0 -6
  74. package/dist/features/models/Vehicle.js +0 -17
  75. package/dist/features/models/VehicleBodyType.js +0 -7
  76. package/dist/features/models/VehicleCategory.js +0 -7
  77. package/dist/features/models/VehicleFeature.js +0 -7
  78. package/dist/features/models/VehicleFeatureCategory.js +0 -7
  79. package/dist/features/models/VehicleFinance.js +0 -7
  80. package/dist/features/models/VehicleMake.js +0 -7
  81. package/dist/features/models/VehicleMedia.js +0 -7
  82. package/dist/features/models/VehicleMetaData.js +0 -7
  83. package/dist/features/models/VehicleModel.js +0 -7
  84. package/dist/features/models/VehicleOrder.js +0 -7
  85. package/dist/features/models/_index.js +0 -30
  86. package/dist/features/models/index.js +0 -37
  87. package/dist/features/newsletter/data/dto/NewsletterDTO.js +0 -79
  88. package/dist/features/newsletter/index.js +0 -17
  89. package/dist/features/sales-team/data/dto/LanguageDTO.js +0 -89
  90. package/dist/features/sales-team/data/dto/SalesAgentDTO.js +0 -613
  91. package/dist/features/sales-team/data/index.js +0 -18
  92. package/dist/features/sales-team/index.js +0 -17
  93. package/dist/features/sell-car-request/data/dto/SellCarRequestDTO.js +0 -672
  94. package/dist/features/sell-car-request/data/index.js +0 -17
  95. package/dist/features/sell-car-request/index.js +0 -17
  96. package/dist/features/showroom-visit/data/dto/ShowroomVisit.js +0 -237
  97. package/dist/features/showroom-visit/data/enums/index.js +0 -17
  98. package/dist/features/showroom-visit/data/index.js +0 -18
  99. package/dist/features/showroom-visit/index.js +0 -17
  100. package/dist/features/test-drive-request/api/GetTestDriveVehicles.js +0 -8
  101. package/dist/features/test-drive-request/api/index.js +0 -17
  102. package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.js +0 -179
  103. package/dist/features/test-drive-request/data/enums/index.js +0 -29
  104. package/dist/features/test-drive-request/data/index.js +0 -20
  105. package/dist/features/test-drive-request/data/models/TestDriveRequest.js +0 -7
  106. package/dist/features/test-drive-request/data/models/index.js +0 -5
  107. package/dist/features/test-drive-request/data/utilities.js +0 -100
  108. package/dist/features/test-drive-request/index.js +0 -18
  109. package/dist/features/tickets/data/dto/TicketDto.js +0 -293
  110. package/dist/features/tickets/data/enums/index.js +0 -18
  111. package/dist/features/tickets/index.js +0 -18
  112. package/dist/features/vehicle/data/dto/BaseDTO.js +0 -34
  113. package/dist/features/vehicle/data/dto/MediaDTO.js +0 -2
  114. package/dist/features/vehicle/data/dto/PaymentDTO.js +0 -161
  115. package/dist/features/vehicle/data/dto/SimilarVehicleDTO.js +0 -38
  116. package/dist/features/vehicle/data/dto/VehicleCategoryDTO.js +0 -114
  117. package/dist/features/vehicle/data/dto/VehicleDTO.js +0 -587
  118. package/dist/features/vehicle/data/dto/VehicleFavoritesDTO.js +0 -60
  119. package/dist/features/vehicle/data/dto/VehicleFeatureCategoriesDTO.js +0 -114
  120. package/dist/features/vehicle/data/dto/VehicleFeatureDTO.js +0 -125
  121. package/dist/features/vehicle/data/dto/VehicleFilterDTO.js +0 -771
  122. package/dist/features/vehicle/data/dto/VehicleFinanceDTO.js +0 -183
  123. package/dist/features/vehicle/data/dto/VehicleInspectionDTO.js +0 -765
  124. package/dist/features/vehicle/data/dto/VehicleMakeDTO.js +0 -189
  125. package/dist/features/vehicle/data/dto/VehicleMedia.js +0 -152
  126. package/dist/features/vehicle/data/dto/VehicleModelDTO.js +0 -182
  127. package/dist/features/vehicle/data/dto/VehicleOrderDTO.js +0 -139
  128. package/dist/features/vehicle/data/dto/VehicleTypeDTO.js +0 -102
  129. package/dist/features/vehicle/data/dto/VehicleWarrantyDTO.js +0 -47
  130. package/dist/features/vehicle/data/dto/index.js +0 -35
  131. package/dist/features/vehicle/data/enums/index.js +0 -46
  132. package/dist/features/vehicle/data/index.js +0 -20
  133. package/dist/features/vehicle/data/utilities.js +0 -520
  134. package/dist/features/vehicle/index.js +0 -17
  135. package/dist/features/vehicle-reservations/data/dto/VehicleReservationDTO.js +0 -346
  136. package/dist/features/vehicle-reservations/data/dto/index.js +0 -17
  137. package/dist/features/vehicle-reservations/data/enums/finance-type.js +0 -9
  138. package/dist/features/vehicle-reservations/data/enums/index.js +0 -19
  139. package/dist/features/vehicle-reservations/data/enums/reservation-type.js +0 -13
  140. package/dist/features/vehicle-reservations/data/enums/vehicle-reservation-type.js +0 -8
  141. package/dist/features/vehicle-reservations/index.js +0 -18
  142. package/dist/global/dto/BaseGetDTO.js +0 -18
  143. package/dist/global/dto/index.js +0 -17
  144. package/dist/global/index.js +0 -18
  145. package/dist/global/utilities.js +0 -173
  146. package/dist/models.js +0 -17
@@ -1,771 +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.VehicleOptions = exports.VehicleUniqueFilter = exports.VehicleFilter = exports.VehicleCategoryOptions = exports.VehicleCategoryUniqueFilter = exports.VehicleCategoryFilter = exports.VehicleFeatureCategoryOptions = exports.VehicleFeatureCategoryUniqueFilter = exports.VehicleFeatureCategoryFilter = exports.VehicleFeatureOptions = exports.VehicleFeatureUniqueFilter = exports.VehicleFeatureFilter = exports.VehicleBodyTypeOptions = exports.VehicleBodyTypeUniqueFilter = exports.VehicleBodyTypeFilter = exports.VehicleModelOptions = exports.VehicleModelUniqueFilter = exports.VehicleModelFilter = exports.VehicleMakeOptions = exports.VehicleMakeUniqueFilter = exports.VehicleMakeFilter = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
15
- const global_1 = require("../../../../global");
16
- // -----------------------------------------------------CAR MAKE-------------------------------------------------------------------------
17
- class VehicleMakeFilter extends global_1.BaseFilter {
18
- validate() {
19
- const errors = (0, class_validator_1.validateSync)(this);
20
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
21
- }
22
- static fromPlain(plain) {
23
- return (0, class_transformer_1.plainToClass)(VehicleMakeFilter, plain);
24
- }
25
- static toPlain(entity) {
26
- return (0, class_transformer_1.instanceToPlain)(entity);
27
- }
28
- }
29
- __decorate([
30
- (0, class_validator_1.IsOptional)(),
31
- (0, class_validator_1.IsString)({ each: true }),
32
- __metadata("design:type", Object)
33
- ], VehicleMakeFilter.prototype, "id", void 0);
34
- __decorate([
35
- (0, class_validator_1.IsOptional)(),
36
- (0, class_validator_1.IsString)({ each: true }),
37
- __metadata("design:type", Object)
38
- ], VehicleMakeFilter.prototype, "slug", void 0);
39
- __decorate([
40
- (0, class_validator_1.IsOptional)(),
41
- (0, class_validator_1.IsString)(),
42
- __metadata("design:type", String)
43
- ], VehicleMakeFilter.prototype, "name", void 0);
44
- __decorate([
45
- (0, class_validator_1.IsOptional)(),
46
- (0, class_validator_1.IsString)({ each: true }),
47
- __metadata("design:type", String)
48
- ], VehicleMakeFilter.prototype, "metaKeywords", void 0);
49
- __decorate([
50
- (0, class_validator_1.IsOptional)(),
51
- (0, class_validator_1.IsString)({ each: true }),
52
- __metadata("design:type", Object)
53
- ], VehicleMakeFilter.prototype, "models", void 0);
54
- __decorate([
55
- (0, class_validator_1.IsOptional)(),
56
- (0, class_validator_1.IsString)({ each: true }),
57
- __metadata("design:type", Object)
58
- ], VehicleMakeFilter.prototype, "vehicles", void 0);
59
- __decorate([
60
- (0, class_validator_1.IsOptional)(),
61
- (0, class_validator_1.IsString)(),
62
- __metadata("design:type", String)
63
- ], VehicleMakeFilter.prototype, "search", void 0);
64
- __decorate([
65
- (0, class_validator_1.IsOptional)(),
66
- (0, class_validator_1.IsBoolean)(),
67
- __metadata("design:type", Boolean)
68
- ], VehicleMakeFilter.prototype, "promoted", void 0);
69
- __decorate([
70
- (0, class_validator_1.IsOptional)(),
71
- (0, class_validator_1.IsBoolean)(),
72
- __metadata("design:type", Boolean)
73
- ], VehicleMakeFilter.prototype, "showInFooter", void 0);
74
- exports.VehicleMakeFilter = VehicleMakeFilter;
75
- // This filter is used to get a unique vehicle make by unique fields
76
- class VehicleMakeUniqueFilter extends global_1.BaseFilter {
77
- validate() {
78
- const errors = (0, class_validator_1.validateSync)(this);
79
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
80
- }
81
- static fromPlain(plain) {
82
- return (0, class_transformer_1.plainToClass)(VehicleMakeFilter, plain);
83
- }
84
- static toPlain(entity) {
85
- return (0, class_transformer_1.instanceToPlain)(entity);
86
- }
87
- }
88
- __decorate([
89
- (0, class_validator_1.IsOptional)(),
90
- (0, class_validator_1.IsString)(),
91
- __metadata("design:type", String)
92
- ], VehicleMakeUniqueFilter.prototype, "id", void 0);
93
- __decorate([
94
- (0, class_validator_1.IsOptional)(),
95
- (0, class_validator_1.IsString)(),
96
- __metadata("design:type", String)
97
- ], VehicleMakeUniqueFilter.prototype, "slug", void 0);
98
- __decorate([
99
- (0, class_validator_1.IsOptional)(),
100
- (0, class_validator_1.IsString)(),
101
- __metadata("design:type", String)
102
- ], VehicleMakeUniqueFilter.prototype, "name", void 0);
103
- exports.VehicleMakeUniqueFilter = VehicleMakeUniqueFilter;
104
- class VehicleMakeOptions extends global_1.PaginationOptions {
105
- validate() {
106
- const errors = (0, class_validator_1.validateSync)(this);
107
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
108
- }
109
- static fromPlain(plain) {
110
- return (0, class_transformer_1.plainToClass)(VehicleMakeOptions, plain);
111
- }
112
- static toPlain(entity) {
113
- return (0, class_transformer_1.instanceToPlain)(entity);
114
- }
115
- }
116
- exports.VehicleMakeOptions = VehicleMakeOptions;
117
- // -----------------------------------------------------CAR MODEL-------------------------------------------------------------------------
118
- class VehicleModelFilter extends global_1.BaseFilter {
119
- validate() {
120
- const errors = (0, class_validator_1.validateSync)(this);
121
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
122
- }
123
- static fromPlain(plain) {
124
- return (0, class_transformer_1.plainToClass)(VehicleModelFilter, plain);
125
- }
126
- static toPlain(entity) {
127
- return (0, class_transformer_1.instanceToPlain)(entity);
128
- }
129
- }
130
- __decorate([
131
- (0, class_validator_1.IsOptional)(),
132
- (0, class_validator_1.IsString)({ each: true }),
133
- __metadata("design:type", Object)
134
- ], VehicleModelFilter.prototype, "id", void 0);
135
- __decorate([
136
- (0, class_validator_1.IsOptional)(),
137
- (0, class_validator_1.IsString)({ each: true }),
138
- __metadata("design:type", Object)
139
- ], VehicleModelFilter.prototype, "slug", void 0);
140
- __decorate([
141
- (0, class_validator_1.IsOptional)(),
142
- (0, class_validator_1.IsString)(),
143
- __metadata("design:type", String)
144
- ], VehicleModelFilter.prototype, "name", void 0);
145
- __decorate([
146
- (0, class_validator_1.IsOptional)(),
147
- (0, class_validator_1.IsString)({ each: true }),
148
- __metadata("design:type", String)
149
- ], VehicleModelFilter.prototype, "metaKeywords", void 0);
150
- __decorate([
151
- (0, class_validator_1.IsOptional)(),
152
- (0, class_validator_1.IsString)({ each: true }),
153
- __metadata("design:type", Object)
154
- ], VehicleModelFilter.prototype, "makes", void 0);
155
- __decorate([
156
- (0, class_validator_1.IsOptional)(),
157
- (0, class_validator_1.IsString)({ each: true }),
158
- __metadata("design:type", Object)
159
- ], VehicleModelFilter.prototype, "vehicles", void 0);
160
- exports.VehicleModelFilter = VehicleModelFilter;
161
- class VehicleModelUniqueFilter extends global_1.BaseFilter {
162
- validate() {
163
- const errors = (0, class_validator_1.validateSync)(this);
164
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
165
- }
166
- static fromPlain(plain) {
167
- return (0, class_transformer_1.plainToClass)(VehicleModelUniqueFilter, plain);
168
- }
169
- static toPlain(entity) {
170
- return (0, class_transformer_1.instanceToPlain)(entity);
171
- }
172
- }
173
- __decorate([
174
- (0, class_validator_1.IsOptional)(),
175
- (0, class_validator_1.IsString)(),
176
- __metadata("design:type", String)
177
- ], VehicleModelUniqueFilter.prototype, "id", void 0);
178
- __decorate([
179
- (0, class_validator_1.IsOptional)(),
180
- (0, class_validator_1.IsString)(),
181
- __metadata("design:type", String)
182
- ], VehicleModelUniqueFilter.prototype, "slug", void 0);
183
- __decorate([
184
- (0, class_validator_1.IsOptional)(),
185
- (0, class_validator_1.IsString)(),
186
- __metadata("design:type", String)
187
- ], VehicleModelUniqueFilter.prototype, "name", void 0);
188
- exports.VehicleModelUniqueFilter = VehicleModelUniqueFilter;
189
- class VehicleModelOptions extends global_1.PaginationOptions {
190
- validate() {
191
- const errors = (0, class_validator_1.validateSync)(this);
192
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
193
- }
194
- static fromPlain(plain) {
195
- return (0, class_transformer_1.plainToClass)(VehicleModelOptions, plain);
196
- }
197
- static toPlain(entity) {
198
- return (0, class_transformer_1.instanceToPlain)(entity);
199
- }
200
- }
201
- exports.VehicleModelOptions = VehicleModelOptions;
202
- // -----------------------------------------------------CAR BODY TYPE----------------------------------------------------------------
203
- class VehicleBodyTypeFilter extends global_1.BaseFilter {
204
- validate() {
205
- const errors = (0, class_validator_1.validateSync)(this);
206
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
207
- }
208
- static fromPlain(plain) {
209
- return (0, class_transformer_1.plainToClass)(VehicleModelFilter, plain);
210
- }
211
- static toPlain(entity) {
212
- return (0, class_transformer_1.instanceToPlain)(entity);
213
- }
214
- }
215
- __decorate([
216
- (0, class_validator_1.IsOptional)(),
217
- (0, class_validator_1.IsString)({ each: true }),
218
- __metadata("design:type", Object)
219
- ], VehicleBodyTypeFilter.prototype, "id", void 0);
220
- __decorate([
221
- (0, class_validator_1.IsOptional)(),
222
- (0, class_validator_1.IsString)({ each: true }),
223
- __metadata("design:type", Object)
224
- ], VehicleBodyTypeFilter.prototype, "slug", void 0);
225
- __decorate([
226
- (0, class_validator_1.IsOptional)(),
227
- (0, class_validator_1.IsString)(),
228
- __metadata("design:type", String)
229
- ], VehicleBodyTypeFilter.prototype, "name", void 0);
230
- __decorate([
231
- (0, class_validator_1.IsOptional)(),
232
- (0, class_validator_1.IsString)({ each: true }),
233
- __metadata("design:type", Object)
234
- ], VehicleBodyTypeFilter.prototype, "vehicles", void 0);
235
- __decorate([
236
- (0, class_validator_1.IsOptional)(),
237
- (0, class_validator_1.IsString)({ each: true }),
238
- __metadata("design:type", Object)
239
- ], VehicleBodyTypeFilter.prototype, "models", void 0);
240
- __decorate([
241
- (0, class_validator_1.IsOptional)(),
242
- (0, class_validator_1.IsString)(),
243
- __metadata("design:type", String)
244
- ], VehicleBodyTypeFilter.prototype, "search", void 0);
245
- exports.VehicleBodyTypeFilter = VehicleBodyTypeFilter;
246
- class VehicleBodyTypeUniqueFilter {
247
- validate() {
248
- const errors = (0, class_validator_1.validateSync)(this);
249
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
250
- }
251
- static fromPlain(plain) {
252
- return (0, class_transformer_1.plainToClass)(VehicleModelFilter, plain);
253
- }
254
- static toPlain(entity) {
255
- return (0, class_transformer_1.instanceToPlain)(entity);
256
- }
257
- }
258
- __decorate([
259
- (0, class_validator_1.IsOptional)(),
260
- (0, class_validator_1.IsString)(),
261
- __metadata("design:type", String)
262
- ], VehicleBodyTypeUniqueFilter.prototype, "id", void 0);
263
- __decorate([
264
- (0, class_validator_1.IsOptional)(),
265
- (0, class_validator_1.IsString)(),
266
- __metadata("design:type", String)
267
- ], VehicleBodyTypeUniqueFilter.prototype, "slug", void 0);
268
- __decorate([
269
- (0, class_validator_1.IsOptional)(),
270
- (0, class_validator_1.IsString)(),
271
- __metadata("design:type", String)
272
- ], VehicleBodyTypeUniqueFilter.prototype, "name", void 0);
273
- exports.VehicleBodyTypeUniqueFilter = VehicleBodyTypeUniqueFilter;
274
- class VehicleBodyTypeOptions extends global_1.PaginationOptions {
275
- validate() {
276
- const errors = (0, class_validator_1.validateSync)(this);
277
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
278
- }
279
- static fromPlain(plain) {
280
- return (0, class_transformer_1.plainToClass)(VehicleModelOptions, plain);
281
- }
282
- static toPlain(entity) {
283
- return (0, class_transformer_1.instanceToPlain)(entity);
284
- }
285
- }
286
- exports.VehicleBodyTypeOptions = VehicleBodyTypeOptions;
287
- // -----------------------------------------------------CAR FEATURE----------------------------------------------------------------
288
- class VehicleFeatureFilter extends global_1.BaseFilter {
289
- validate() {
290
- const errors = (0, class_validator_1.validateSync)(this);
291
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
292
- }
293
- static fromPlain(plain) {
294
- return (0, class_transformer_1.plainToClass)(VehicleModelFilter, plain);
295
- }
296
- static toPlain(entity) {
297
- return (0, class_transformer_1.instanceToPlain)(entity);
298
- }
299
- }
300
- __decorate([
301
- (0, class_validator_1.IsOptional)(),
302
- (0, class_validator_1.IsString)({ each: true }),
303
- __metadata("design:type", Object)
304
- ], VehicleFeatureFilter.prototype, "id", void 0);
305
- __decorate([
306
- (0, class_validator_1.IsOptional)(),
307
- (0, class_validator_1.IsString)({ each: true }),
308
- __metadata("design:type", Object)
309
- ], VehicleFeatureFilter.prototype, "slug", void 0);
310
- __decorate([
311
- (0, class_validator_1.IsOptional)(),
312
- (0, class_validator_1.IsString)(),
313
- __metadata("design:type", String)
314
- ], VehicleFeatureFilter.prototype, "name", void 0);
315
- __decorate([
316
- (0, class_validator_1.IsOptional)(),
317
- (0, class_validator_1.IsString)({ each: true }),
318
- __metadata("design:type", Object)
319
- ], VehicleFeatureFilter.prototype, "categories", void 0);
320
- __decorate([
321
- (0, class_validator_1.IsOptional)(),
322
- (0, class_validator_1.IsString)(),
323
- __metadata("design:type", String)
324
- ], VehicleFeatureFilter.prototype, "search", void 0);
325
- exports.VehicleFeatureFilter = VehicleFeatureFilter;
326
- class VehicleFeatureUniqueFilter {
327
- validate() {
328
- const errors = (0, class_validator_1.validateSync)(this);
329
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
330
- }
331
- static fromPlain(plain) {
332
- return (0, class_transformer_1.plainToClass)(VehicleModelFilter, plain);
333
- }
334
- static toPlain(entity) {
335
- return (0, class_transformer_1.instanceToPlain)(entity);
336
- }
337
- }
338
- __decorate([
339
- (0, class_validator_1.IsOptional)(),
340
- (0, class_validator_1.IsString)(),
341
- __metadata("design:type", String)
342
- ], VehicleFeatureUniqueFilter.prototype, "id", void 0);
343
- __decorate([
344
- (0, class_validator_1.IsOptional)(),
345
- (0, class_validator_1.IsString)(),
346
- __metadata("design:type", String)
347
- ], VehicleFeatureUniqueFilter.prototype, "slug", void 0);
348
- __decorate([
349
- (0, class_validator_1.IsOptional)(),
350
- (0, class_validator_1.IsString)(),
351
- __metadata("design:type", String)
352
- ], VehicleFeatureUniqueFilter.prototype, "name", void 0);
353
- exports.VehicleFeatureUniqueFilter = VehicleFeatureUniqueFilter;
354
- class VehicleFeatureOptions extends global_1.PaginationOptions {
355
- validate() {
356
- const errors = (0, class_validator_1.validateSync)(this);
357
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
358
- }
359
- static fromPlain(plain) {
360
- return (0, class_transformer_1.plainToClass)(VehicleFeatureOptions, plain);
361
- }
362
- static toPlain(entity) {
363
- return (0, class_transformer_1.instanceToPlain)(entity);
364
- }
365
- }
366
- exports.VehicleFeatureOptions = VehicleFeatureOptions;
367
- // -----------------------------------------------------CAR FEATURE CATEGORY----------------------------------------------------------------
368
- class VehicleFeatureCategoryFilter extends global_1.BaseFilter {
369
- validate() {
370
- const errors = (0, class_validator_1.validateSync)(this);
371
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
372
- }
373
- static fromPlain(plain) {
374
- return (0, class_transformer_1.plainToClass)(VehicleFeatureCategoryFilter, plain);
375
- }
376
- static toPlain(entity) {
377
- return (0, class_transformer_1.instanceToPlain)(entity);
378
- }
379
- }
380
- __decorate([
381
- (0, class_validator_1.IsOptional)(),
382
- (0, class_validator_1.IsString)({ each: true }),
383
- __metadata("design:type", Object)
384
- ], VehicleFeatureCategoryFilter.prototype, "id", void 0);
385
- __decorate([
386
- (0, class_validator_1.IsOptional)(),
387
- (0, class_validator_1.IsString)({ each: true }),
388
- __metadata("design:type", Object)
389
- ], VehicleFeatureCategoryFilter.prototype, "slug", void 0);
390
- __decorate([
391
- (0, class_validator_1.IsOptional)(),
392
- (0, class_validator_1.IsString)(),
393
- __metadata("design:type", String)
394
- ], VehicleFeatureCategoryFilter.prototype, "name", void 0);
395
- __decorate([
396
- (0, class_validator_1.IsOptional)(),
397
- (0, class_validator_1.IsString)({ each: true }),
398
- __metadata("design:type", Object)
399
- ], VehicleFeatureCategoryFilter.prototype, "features", void 0);
400
- __decorate([
401
- (0, class_validator_1.IsOptional)(),
402
- (0, class_validator_1.IsString)(),
403
- __metadata("design:type", String)
404
- ], VehicleFeatureCategoryFilter.prototype, "search", void 0);
405
- exports.VehicleFeatureCategoryFilter = VehicleFeatureCategoryFilter;
406
- class VehicleFeatureCategoryUniqueFilter {
407
- validate() {
408
- const errors = (0, class_validator_1.validateSync)(this);
409
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
410
- }
411
- static fromPlain(plain) {
412
- return (0, class_transformer_1.plainToClass)(VehicleFeatureCategoryUniqueFilter, plain);
413
- }
414
- static toPlain(entity) {
415
- return (0, class_transformer_1.instanceToPlain)(entity);
416
- }
417
- }
418
- __decorate([
419
- (0, class_validator_1.IsOptional)(),
420
- (0, class_validator_1.IsString)(),
421
- __metadata("design:type", String)
422
- ], VehicleFeatureCategoryUniqueFilter.prototype, "id", void 0);
423
- __decorate([
424
- (0, class_validator_1.IsOptional)(),
425
- (0, class_validator_1.IsString)(),
426
- __metadata("design:type", String)
427
- ], VehicleFeatureCategoryUniqueFilter.prototype, "slug", void 0);
428
- __decorate([
429
- (0, class_validator_1.IsOptional)(),
430
- (0, class_validator_1.IsString)(),
431
- __metadata("design:type", String)
432
- ], VehicleFeatureCategoryUniqueFilter.prototype, "name", void 0);
433
- exports.VehicleFeatureCategoryUniqueFilter = VehicleFeatureCategoryUniqueFilter;
434
- class VehicleFeatureCategoryOptions extends global_1.PaginationOptions {
435
- validate() {
436
- const errors = (0, class_validator_1.validateSync)(this);
437
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
438
- }
439
- static fromPlain(plain) {
440
- return (0, class_transformer_1.plainToClass)(VehicleFeatureCategoryOptions, plain);
441
- }
442
- static toPlain(entity) {
443
- return (0, class_transformer_1.instanceToPlain)(entity);
444
- }
445
- }
446
- exports.VehicleFeatureCategoryOptions = VehicleFeatureCategoryOptions;
447
- // -----------------------------------------------------CAR CATEGORY----------------------------------------------------------------
448
- class VehicleCategoryFilter extends global_1.BaseFilter {
449
- validate() {
450
- const errors = (0, class_validator_1.validateSync)(this);
451
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
452
- }
453
- static fromPlain(plain) {
454
- return (0, class_transformer_1.plainToClass)(VehicleCategoryFilter, plain);
455
- }
456
- static toPlain(entity) {
457
- return (0, class_transformer_1.instanceToPlain)(entity);
458
- }
459
- }
460
- __decorate([
461
- (0, class_validator_1.IsOptional)(),
462
- (0, class_validator_1.IsString)({ each: true }),
463
- __metadata("design:type", Object)
464
- ], VehicleCategoryFilter.prototype, "id", void 0);
465
- __decorate([
466
- (0, class_validator_1.IsOptional)(),
467
- (0, class_validator_1.IsString)({ each: true }),
468
- __metadata("design:type", Object)
469
- ], VehicleCategoryFilter.prototype, "slug", void 0);
470
- __decorate([
471
- (0, class_validator_1.IsOptional)(),
472
- (0, class_validator_1.IsString)(),
473
- __metadata("design:type", String)
474
- ], VehicleCategoryFilter.prototype, "name", void 0);
475
- __decorate([
476
- (0, class_validator_1.IsOptional)(),
477
- (0, class_validator_1.IsString)(),
478
- __metadata("design:type", String)
479
- ], VehicleCategoryFilter.prototype, "search", void 0);
480
- exports.VehicleCategoryFilter = VehicleCategoryFilter;
481
- class VehicleCategoryUniqueFilter {
482
- validate() {
483
- const errors = (0, class_validator_1.validateSync)(this);
484
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
485
- }
486
- static fromPlain(plain) {
487
- return (0, class_transformer_1.plainToClass)(VehicleCategoryUniqueFilter, plain);
488
- }
489
- static toPlain(entity) {
490
- return (0, class_transformer_1.instanceToPlain)(entity);
491
- }
492
- }
493
- __decorate([
494
- (0, class_validator_1.IsOptional)(),
495
- (0, class_validator_1.IsString)(),
496
- __metadata("design:type", String)
497
- ], VehicleCategoryUniqueFilter.prototype, "id", void 0);
498
- __decorate([
499
- (0, class_validator_1.IsOptional)(),
500
- (0, class_validator_1.IsString)(),
501
- __metadata("design:type", String)
502
- ], VehicleCategoryUniqueFilter.prototype, "slug", void 0);
503
- __decorate([
504
- (0, class_validator_1.IsOptional)(),
505
- (0, class_validator_1.IsString)(),
506
- __metadata("design:type", String)
507
- ], VehicleCategoryUniqueFilter.prototype, "name", void 0);
508
- exports.VehicleCategoryUniqueFilter = VehicleCategoryUniqueFilter;
509
- class VehicleCategoryOptions extends global_1.PaginationOptions {
510
- validate() {
511
- const errors = (0, class_validator_1.validateSync)(this);
512
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
513
- }
514
- static fromPlain(plain) {
515
- return (0, class_transformer_1.plainToClass)(VehicleFeatureOptions, plain);
516
- }
517
- static toPlain(entity) {
518
- return (0, class_transformer_1.instanceToPlain)(entity);
519
- }
520
- }
521
- exports.VehicleCategoryOptions = VehicleCategoryOptions;
522
- // -----------------------------------------------------CAR-------------------------------------------------------------------------
523
- class VehicleFilter extends global_1.BaseFilter {
524
- validate() {
525
- const errors = (0, class_validator_1.validateSync)(this);
526
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
527
- }
528
- static fromPlain(plain) {
529
- return (0, class_transformer_1.plainToClass)(VehicleFilter, plain);
530
- }
531
- static toPlain(entity) {
532
- return (0, class_transformer_1.instanceToPlain)(entity);
533
- }
534
- }
535
- __decorate([
536
- (0, class_validator_1.IsOptional)(),
537
- (0, class_validator_1.IsString)({ each: true }),
538
- __metadata("design:type", Object)
539
- ], VehicleFilter.prototype, "referenceNumber", void 0);
540
- __decorate([
541
- (0, class_validator_1.IsOptional)(),
542
- (0, class_validator_1.IsString)({ each: true }),
543
- __metadata("design:type", Object)
544
- ], VehicleFilter.prototype, "make", void 0);
545
- __decorate([
546
- (0, class_validator_1.IsOptional)(),
547
- (0, class_validator_1.IsString)({ each: true }),
548
- __metadata("design:type", Object)
549
- ], VehicleFilter.prototype, "model", void 0);
550
- __decorate([
551
- (0, class_validator_1.IsOptional)(),
552
- (0, class_validator_1.IsString)({ each: true }),
553
- __metadata("design:type", Object)
554
- ], VehicleFilter.prototype, "bodyType", void 0);
555
- __decorate([
556
- (0, class_validator_1.IsOptional)(),
557
- (0, class_validator_1.IsString)({ each: true }),
558
- __metadata("design:type", Object)
559
- ], VehicleFilter.prototype, "vin", void 0);
560
- __decorate([
561
- (0, class_validator_1.IsOptional)(),
562
- (0, class_validator_1.IsString)({ each: true }),
563
- __metadata("design:type", Object)
564
- ], VehicleFilter.prototype, "chassisNumber", void 0);
565
- __decorate([
566
- (0, class_validator_1.IsOptional)(),
567
- (0, class_validator_1.IsString)({ each: true }),
568
- __metadata("design:type", Object)
569
- ], VehicleFilter.prototype, "trim", void 0);
570
- __decorate([
571
- (0, class_validator_1.IsOptional)(),
572
- (0, class_validator_1.ValidateNested)(),
573
- (0, class_transformer_1.Type)(() => global_1.NumberRange),
574
- __metadata("design:type", global_1.NumberRange)
575
- ], VehicleFilter.prototype, "mileage", void 0);
576
- __decorate([
577
- (0, class_validator_1.IsOptional)(),
578
- (0, class_validator_1.IsString)({ each: true }),
579
- __metadata("design:type", Object)
580
- ], VehicleFilter.prototype, "fuelType", void 0);
581
- __decorate([
582
- (0, class_validator_1.IsOptional)(),
583
- (0, class_validator_1.IsString)({ each: true }),
584
- __metadata("design:type", Object)
585
- ], VehicleFilter.prototype, "color", void 0);
586
- __decorate([
587
- (0, class_validator_1.IsOptional)(),
588
- (0, class_validator_1.IsString)({ each: true }),
589
- __metadata("design:type", Object)
590
- ], VehicleFilter.prototype, "engineCapacity", void 0);
591
- __decorate([
592
- (0, class_validator_1.IsOptional)(),
593
- (0, class_validator_1.ValidateNested)(),
594
- (0, class_transformer_1.Type)(() => global_1.NumberRange),
595
- __metadata("design:type", global_1.NumberRange)
596
- ], VehicleFilter.prototype, "numberOfCylinders", void 0);
597
- __decorate([
598
- (0, class_validator_1.IsOptional)(),
599
- (0, class_validator_1.ValidateNested)(),
600
- (0, class_transformer_1.Type)(() => global_1.NumberRange),
601
- __metadata("design:type", global_1.NumberRange)
602
- ], VehicleFilter.prototype, "cylinderCapacity", void 0);
603
- __decorate([
604
- (0, class_validator_1.IsOptional)(),
605
- (0, class_validator_1.ValidateNested)(),
606
- (0, class_transformer_1.Type)(() => global_1.NumberRange),
607
- __metadata("design:type", global_1.NumberRange)
608
- ], VehicleFilter.prototype, "doors", void 0);
609
- __decorate([
610
- (0, class_validator_1.IsOptional)(),
611
- (0, class_validator_1.ValidateNested)(),
612
- (0, class_transformer_1.Type)(() => global_1.NumberRange),
613
- __metadata("design:type", global_1.NumberRange)
614
- ], VehicleFilter.prototype, "seats", void 0);
615
- __decorate([
616
- (0, class_validator_1.IsOptional)(),
617
- (0, class_validator_1.ValidateNested)(),
618
- (0, class_transformer_1.Type)(() => global_1.NumberRange),
619
- __metadata("design:type", global_1.NumberRange)
620
- ], VehicleFilter.prototype, "keys", void 0);
621
- __decorate([
622
- (0, class_validator_1.IsOptional)(),
623
- (0, class_validator_1.IsString)({ each: true }),
624
- __metadata("design:type", Object)
625
- ], VehicleFilter.prototype, "wheelsType", void 0);
626
- __decorate([
627
- (0, class_validator_1.IsOptional)(),
628
- (0, class_validator_1.ValidateNested)(),
629
- (0, class_transformer_1.Type)(() => global_1.NumberRange),
630
- __metadata("design:type", global_1.NumberRange)
631
- ], VehicleFilter.prototype, "airbags", void 0);
632
- __decorate([
633
- (0, class_validator_1.IsOptional)(),
634
- (0, class_validator_1.IsString)({ each: true }),
635
- __metadata("design:type", Object)
636
- ], VehicleFilter.prototype, "transmission", void 0);
637
- __decorate([
638
- (0, class_validator_1.IsOptional)(),
639
- (0, class_validator_1.IsString)({ each: true }),
640
- __metadata("design:type", Object)
641
- ], VehicleFilter.prototype, "driveType", void 0);
642
- __decorate([
643
- (0, class_validator_1.IsOptional)(),
644
- (0, class_validator_1.IsString)({ each: true }),
645
- __metadata("design:type", Object)
646
- ], VehicleFilter.prototype, "emissions", void 0);
647
- __decorate([
648
- (0, class_validator_1.IsOptional)(),
649
- (0, class_validator_1.ValidateNested)(),
650
- (0, class_transformer_1.Type)(() => global_1.NumberRange),
651
- __metadata("design:type", global_1.NumberRange)
652
- ], VehicleFilter.prototype, "year", void 0);
653
- __decorate([
654
- (0, class_validator_1.IsOptional)(),
655
- (0, class_validator_1.ValidateNested)(),
656
- (0, class_transformer_1.Type)(() => global_1.NumberRange),
657
- __metadata("design:type", global_1.NumberRange)
658
- ], VehicleFilter.prototype, "price", void 0);
659
- __decorate([
660
- (0, class_validator_1.IsOptional)(),
661
- (0, class_validator_1.ValidateNested)(),
662
- (0, class_transformer_1.Type)(() => global_1.NumberRange),
663
- __metadata("design:type", global_1.NumberRange)
664
- ], VehicleFilter.prototype, "emi", void 0);
665
- __decorate([
666
- (0, class_validator_1.IsOptional)(),
667
- (0, class_validator_1.IsString)({ each: true }),
668
- __metadata("design:type", Object)
669
- ], VehicleFilter.prototype, "status", void 0);
670
- __decorate([
671
- (0, class_validator_1.IsOptional)(),
672
- (0, class_validator_1.IsBoolean)(),
673
- __metadata("design:type", Boolean)
674
- ], VehicleFilter.prototype, "includeReserved", void 0);
675
- __decorate([
676
- (0, class_validator_1.IsOptional)(),
677
- (0, class_validator_1.IsBoolean)(),
678
- __metadata("design:type", Boolean)
679
- ], VehicleFilter.prototype, "includeUnpublished", void 0);
680
- __decorate([
681
- (0, class_validator_1.IsOptional)(),
682
- (0, class_validator_1.IsBoolean)(),
683
- __metadata("design:type", Boolean)
684
- ], VehicleFilter.prototype, "includeSelfReserved", void 0);
685
- __decorate([
686
- (0, class_validator_1.IsOptional)(),
687
- (0, class_validator_1.IsBoolean)(),
688
- __metadata("design:type", Boolean)
689
- ], VehicleFilter.prototype, "includeSold", void 0);
690
- __decorate([
691
- (0, class_validator_1.IsOptional)(),
692
- (0, class_validator_1.IsBoolean)(),
693
- __metadata("design:type", Boolean)
694
- ], VehicleFilter.prototype, "includeDraft", void 0);
695
- __decorate([
696
- (0, class_validator_1.IsOptional)(),
697
- (0, class_validator_1.IsString)({ each: true }),
698
- __metadata("design:type", Object)
699
- ], VehicleFilter.prototype, "features", void 0);
700
- __decorate([
701
- (0, class_validator_1.IsOptional)(),
702
- (0, class_validator_1.IsString)(),
703
- __metadata("design:type", String)
704
- ], VehicleFilter.prototype, "search", void 0);
705
- __decorate([
706
- (0, class_validator_1.IsOptional)(),
707
- (0, class_validator_1.IsString)(),
708
- __metadata("design:type", String)
709
- ], VehicleFilter.prototype, "warranty", void 0);
710
- __decorate([
711
- (0, class_validator_1.IsOptional)(),
712
- (0, class_validator_1.IsString)(),
713
- __metadata("design:type", String)
714
- ], VehicleFilter.prototype, "compareCarId", void 0);
715
- __decorate([
716
- (0, class_validator_1.IsOptional)(),
717
- (0, class_validator_1.IsBoolean)(),
718
- __metadata("design:type", Boolean)
719
- ], VehicleFilter.prototype, "specialDeals", void 0);
720
- exports.VehicleFilter = VehicleFilter;
721
- class VehicleUniqueFilter {
722
- validate() {
723
- const errors = (0, class_validator_1.validateSync)(this);
724
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
725
- }
726
- static fromPlain(plain) {
727
- return (0, class_transformer_1.plainToClass)(VehicleUniqueFilter, plain);
728
- }
729
- static toPlain(entity) {
730
- return (0, class_transformer_1.instanceToPlain)(entity);
731
- }
732
- }
733
- __decorate([
734
- (0, class_validator_1.IsOptional)(),
735
- (0, class_validator_1.IsString)(),
736
- __metadata("design:type", String)
737
- ], VehicleUniqueFilter.prototype, "id", void 0);
738
- __decorate([
739
- (0, class_validator_1.IsOptional)(),
740
- (0, class_validator_1.IsString)(),
741
- __metadata("design:type", String)
742
- ], VehicleUniqueFilter.prototype, "referenceNumber", void 0);
743
- __decorate([
744
- (0, class_validator_1.IsOptional)(),
745
- (0, class_validator_1.IsString)(),
746
- __metadata("design:type", String)
747
- ], VehicleUniqueFilter.prototype, "refId", void 0);
748
- __decorate([
749
- (0, class_validator_1.IsOptional)(),
750
- (0, class_validator_1.IsString)(),
751
- __metadata("design:type", String)
752
- ], VehicleUniqueFilter.prototype, "vin", void 0);
753
- __decorate([
754
- (0, class_validator_1.IsOptional)(),
755
- (0, class_validator_1.IsString)(),
756
- __metadata("design:type", String)
757
- ], VehicleUniqueFilter.prototype, "chassisNumber", void 0);
758
- exports.VehicleUniqueFilter = VehicleUniqueFilter;
759
- class VehicleOptions extends global_1.PaginationOptions {
760
- validate() {
761
- const errors = (0, class_validator_1.validateSync)(this);
762
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
763
- }
764
- static fromPlain(plain) {
765
- return (0, class_transformer_1.plainToClass)(VehicleOptions, plain);
766
- }
767
- static toPlain(entity) {
768
- return (0, class_transformer_1.instanceToPlain)(entity);
769
- }
770
- }
771
- exports.VehicleOptions = VehicleOptions;