@alba-cars/common-modules 1.8.2 → 1.8.3

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.
@@ -22,19 +22,12 @@ export declare class SellCarRequestDTO {
22
22
  modelName: string;
23
23
  modelVersion: string;
24
24
  modelVersionName: string;
25
- trim: string;
26
- trimName: string;
27
25
  year: string;
28
26
  mileage: number;
29
- expectedSellingPrice: number;
30
27
  description: string;
31
- city: string;
32
- emirates: string;
33
- engineCylinderCount: number;
34
28
  specification: string;
35
29
  specificationName: string;
36
30
  tradeIn: TradeInOption;
37
- vehicleOptions: VehicleOption;
38
31
  isDeleted?: boolean;
39
32
  createdAt?: Date;
40
33
  updatedAt?: Date;
@@ -51,20 +44,14 @@ export declare class SellCarRequestCreateDTO {
51
44
  modelName: string;
52
45
  modelVersion: string;
53
46
  modelVersionName: string;
54
- trim: string;
55
- trimName: string;
56
47
  year: string;
57
48
  mileage: number;
58
49
  expectedSellingPrice: number;
59
50
  description: string;
60
- city: string;
61
- emirates: string;
62
- engineCylinderCount: number;
63
51
  specification: string;
64
52
  specificationName: string;
65
53
  requestType?: RequestType;
66
54
  tradeIn: TradeInOption;
67
- vehicleOptions: VehicleOption;
68
55
  additionalDetails?: string;
69
56
  dealDriveEstimation?: number;
70
57
  media?: VehicleMediaCreateDTO[];
@@ -82,10 +69,7 @@ export declare class SellCarRequestUpdateDTO {
82
69
  modelId?: string;
83
70
  year?: number;
84
71
  mileage?: number;
85
- expectedSellingPrice?: number;
86
- vehicleOptions?: string;
87
72
  specification?: string;
88
- condition?: string;
89
73
  images?: string[];
90
74
  desiredVehicleId?: string;
91
75
  color?: string;
@@ -122,20 +106,14 @@ export declare class SellCarRequestResponseDTO {
122
106
  modelName: string;
123
107
  modelVersion: string;
124
108
  modelVersionName: string;
125
- trim: string;
126
- trimName: string;
127
109
  year: string;
128
110
  mileage: number;
129
111
  expectedSellingPrice: number;
130
112
  description: string;
131
- city: string;
132
- emirates: string;
133
- engineCylinderCount: number;
134
113
  specification: string;
135
114
  specificationName: string;
136
115
  requestType?: RequestType;
137
116
  tradeIn: TradeInOption;
138
- vehicleOptions: VehicleOption;
139
117
  dealDriveEstimation?: number;
140
118
  additionalDetails?: string;
141
119
  isDeleted: boolean;
@@ -79,14 +79,6 @@ __decorate([
79
79
  (0, class_validator_1.IsString)(),
80
80
  __metadata("design:type", String)
81
81
  ], SellCarRequestDTO.prototype, "modelVersionName", void 0);
82
- __decorate([
83
- (0, class_validator_1.IsString)(),
84
- __metadata("design:type", String)
85
- ], SellCarRequestDTO.prototype, "trim", void 0);
86
- __decorate([
87
- (0, class_validator_1.IsString)(),
88
- __metadata("design:type", String)
89
- ], SellCarRequestDTO.prototype, "trimName", void 0);
90
82
  __decorate([
91
83
  (0, class_validator_1.IsString)(),
92
84
  __metadata("design:type", String)
@@ -95,26 +87,11 @@ __decorate([
95
87
  (0, class_validator_1.IsNumber)(),
96
88
  __metadata("design:type", Number)
97
89
  ], SellCarRequestDTO.prototype, "mileage", void 0);
98
- __decorate([
99
- (0, class_validator_1.IsNumber)(),
100
- __metadata("design:type", Number)
101
- ], SellCarRequestDTO.prototype, "expectedSellingPrice", void 0);
102
90
  __decorate([
103
91
  (0, class_validator_1.IsString)(),
92
+ (0, class_validator_1.IsOptional)(),
104
93
  __metadata("design:type", String)
105
94
  ], SellCarRequestDTO.prototype, "description", void 0);
106
- __decorate([
107
- (0, class_validator_1.IsString)(),
108
- __metadata("design:type", String)
109
- ], SellCarRequestDTO.prototype, "city", void 0);
110
- __decorate([
111
- (0, class_validator_1.IsString)(),
112
- __metadata("design:type", String)
113
- ], SellCarRequestDTO.prototype, "emirates", void 0);
114
- __decorate([
115
- (0, class_validator_1.IsNumber)(),
116
- __metadata("design:type", Number)
117
- ], SellCarRequestDTO.prototype, "engineCylinderCount", void 0);
118
95
  __decorate([
119
96
  (0, class_validator_1.IsString)(),
120
97
  __metadata("design:type", String)
@@ -127,10 +104,6 @@ __decorate([
127
104
  (0, class_validator_1.IsEnum)(TradeInOption),
128
105
  __metadata("design:type", String)
129
106
  ], SellCarRequestDTO.prototype, "tradeIn", void 0);
130
- __decorate([
131
- (0, class_validator_1.IsEnum)(VehicleOption),
132
- __metadata("design:type", String)
133
- ], SellCarRequestDTO.prototype, "vehicleOptions", void 0);
134
107
  __decorate([
135
108
  (0, class_validator_1.IsBoolean)(),
136
109
  (0, class_validator_1.IsOptional)(),
@@ -193,14 +166,6 @@ __decorate([
193
166
  (0, class_validator_1.IsString)(),
194
167
  __metadata("design:type", String)
195
168
  ], SellCarRequestCreateDTO.prototype, "modelVersionName", void 0);
196
- __decorate([
197
- (0, class_validator_1.IsString)(),
198
- __metadata("design:type", String)
199
- ], SellCarRequestCreateDTO.prototype, "trim", void 0);
200
- __decorate([
201
- (0, class_validator_1.IsString)(),
202
- __metadata("design:type", String)
203
- ], SellCarRequestCreateDTO.prototype, "trimName", void 0);
204
169
  __decorate([
205
170
  (0, class_validator_1.IsString)(),
206
171
  __metadata("design:type", String)
@@ -211,26 +176,17 @@ __decorate([
211
176
  ], SellCarRequestCreateDTO.prototype, "mileage", void 0);
212
177
  __decorate([
213
178
  (0, class_validator_1.IsNumber)(),
179
+ (0, class_validator_1.IsOptional)(),
214
180
  __metadata("design:type", Number)
215
181
  ], SellCarRequestCreateDTO.prototype, "expectedSellingPrice", void 0);
216
182
  __decorate([
217
183
  (0, class_validator_1.IsString)(),
184
+ (0, class_validator_1.IsOptional)(),
218
185
  __metadata("design:type", String)
219
186
  ], SellCarRequestCreateDTO.prototype, "description", void 0);
220
187
  __decorate([
221
188
  (0, class_validator_1.IsString)(),
222
- __metadata("design:type", String)
223
- ], SellCarRequestCreateDTO.prototype, "city", void 0);
224
- __decorate([
225
- (0, class_validator_1.IsString)(),
226
- __metadata("design:type", String)
227
- ], SellCarRequestCreateDTO.prototype, "emirates", void 0);
228
- __decorate([
229
- (0, class_validator_1.IsNumber)(),
230
- __metadata("design:type", Number)
231
- ], SellCarRequestCreateDTO.prototype, "engineCylinderCount", void 0);
232
- __decorate([
233
- (0, class_validator_1.IsString)(),
189
+ (0, class_validator_1.IsOptional)(),
234
190
  __metadata("design:type", String)
235
191
  ], SellCarRequestCreateDTO.prototype, "specification", void 0);
236
192
  __decorate([
@@ -246,10 +202,6 @@ __decorate([
246
202
  (0, class_validator_1.IsEnum)(TradeInOption),
247
203
  __metadata("design:type", String)
248
204
  ], SellCarRequestCreateDTO.prototype, "tradeIn", void 0);
249
- __decorate([
250
- (0, class_validator_1.IsEnum)(VehicleOption),
251
- __metadata("design:type", String)
252
- ], SellCarRequestCreateDTO.prototype, "vehicleOptions", void 0);
253
205
  __decorate([
254
206
  (0, class_validator_1.IsString)(),
255
207
  (0, class_validator_1.IsOptional)(),
@@ -326,27 +278,11 @@ __decorate([
326
278
  (0, class_validator_1.IsPositive)(),
327
279
  __metadata("design:type", Number)
328
280
  ], SellCarRequestUpdateDTO.prototype, "mileage", void 0);
329
- __decorate([
330
- (0, class_validator_1.IsOptional)(),
331
- (0, class_validator_1.IsNumber)(),
332
- (0, class_validator_1.IsPositive)(),
333
- __metadata("design:type", Number)
334
- ], SellCarRequestUpdateDTO.prototype, "expectedSellingPrice", void 0);
335
- __decorate([
336
- (0, class_validator_1.IsOptional)(),
337
- (0, class_validator_1.IsString)(),
338
- __metadata("design:type", String)
339
- ], SellCarRequestUpdateDTO.prototype, "vehicleOptions", void 0);
340
281
  __decorate([
341
282
  (0, class_validator_1.IsOptional)(),
342
283
  (0, class_validator_1.IsString)(),
343
284
  __metadata("design:type", String)
344
285
  ], SellCarRequestUpdateDTO.prototype, "specification", void 0);
345
- __decorate([
346
- (0, class_validator_1.IsString)(),
347
- (0, class_validator_1.IsOptional)(),
348
- __metadata("design:type", String)
349
- ], SellCarRequestUpdateDTO.prototype, "condition", void 0);
350
286
  __decorate([
351
287
  (0, class_validator_1.IsOptional)(),
352
288
  (0, class_validator_1.IsArray)(),
@@ -455,14 +391,6 @@ __decorate([
455
391
  (0, class_validator_1.IsString)(),
456
392
  __metadata("design:type", String)
457
393
  ], SellCarRequestResponseDTO.prototype, "modelVersionName", void 0);
458
- __decorate([
459
- (0, class_validator_1.IsString)(),
460
- __metadata("design:type", String)
461
- ], SellCarRequestResponseDTO.prototype, "trim", void 0);
462
- __decorate([
463
- (0, class_validator_1.IsString)(),
464
- __metadata("design:type", String)
465
- ], SellCarRequestResponseDTO.prototype, "trimName", void 0);
466
394
  __decorate([
467
395
  (0, class_validator_1.IsString)(),
468
396
  __metadata("design:type", String)
@@ -479,18 +407,6 @@ __decorate([
479
407
  (0, class_validator_1.IsString)(),
480
408
  __metadata("design:type", String)
481
409
  ], SellCarRequestResponseDTO.prototype, "description", void 0);
482
- __decorate([
483
- (0, class_validator_1.IsString)(),
484
- __metadata("design:type", String)
485
- ], SellCarRequestResponseDTO.prototype, "city", void 0);
486
- __decorate([
487
- (0, class_validator_1.IsString)(),
488
- __metadata("design:type", String)
489
- ], SellCarRequestResponseDTO.prototype, "emirates", void 0);
490
- __decorate([
491
- (0, class_validator_1.IsNumber)(),
492
- __metadata("design:type", Number)
493
- ], SellCarRequestResponseDTO.prototype, "engineCylinderCount", void 0);
494
410
  __decorate([
495
411
  (0, class_validator_1.IsString)(),
496
412
  __metadata("design:type", String)
@@ -508,10 +424,6 @@ __decorate([
508
424
  (0, class_validator_1.IsEnum)(TradeInOption),
509
425
  __metadata("design:type", String)
510
426
  ], SellCarRequestResponseDTO.prototype, "tradeIn", void 0);
511
- __decorate([
512
- (0, class_validator_1.IsEnum)(VehicleOption),
513
- __metadata("design:type", String)
514
- ], SellCarRequestResponseDTO.prototype, "vehicleOptions", void 0);
515
427
  __decorate([
516
428
  (0, class_validator_1.IsNumber)(),
517
429
  (0, class_validator_1.IsOptional)(),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.2",
6
+ "version": "1.8.3",
7
7
  "description": "A package containing DTOs, validation classes and common modules and interfaces for Alba Cars",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",