@alba-cars/common-modules 1.6.1 → 1.6.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.
@@ -112,21 +112,14 @@ export declare class SellCarRequestResponseDTO {
112
112
  name: string;
113
113
  phone: string;
114
114
  email?: string;
115
- city: string;
115
+ brandName: string;
116
116
  marketPrice?: string;
117
- requestType: RequestType;
118
- make?: {
119
- id: string;
120
- name: string;
121
- };
122
- model?: {
123
- id: string;
124
- name: string;
125
- };
126
- year?: number;
127
- mileage?: number;
128
- expectedSellingPrice?: number;
129
- vehicleOptions?: string;
117
+ modelName: string;
118
+ modelVersion: string;
119
+ modelVersionName: string;
120
+ mileage: number;
121
+ year: string;
122
+ expectedSellingPrice: number;
130
123
  specification?: string;
131
124
  images?: string[];
132
125
  desiredVehicle?: {
@@ -403,6 +403,7 @@ __decorate([
403
403
  __metadata("design:type", String)
404
404
  ], SellCarRequestResponseDTO.prototype, "name", void 0);
405
405
  __decorate([
406
+ (0, class_validator_1.IsString)(),
406
407
  (0, class_validator_1.IsPhoneNumber)(),
407
408
  __metadata("design:type", String)
408
409
  ], SellCarRequestResponseDTO.prototype, "phone", void 0);
@@ -414,36 +415,36 @@ __decorate([
414
415
  __decorate([
415
416
  (0, class_validator_1.IsString)(),
416
417
  __metadata("design:type", String)
417
- ], SellCarRequestResponseDTO.prototype, "city", void 0);
418
+ ], SellCarRequestResponseDTO.prototype, "brandName", void 0);
418
419
  __decorate([
419
420
  (0, class_validator_1.IsString)(),
420
421
  (0, class_validator_1.IsOptional)(),
421
422
  __metadata("design:type", String)
422
423
  ], SellCarRequestResponseDTO.prototype, "marketPrice", void 0);
423
424
  __decorate([
424
- (0, class_validator_1.IsEnum)(RequestType),
425
+ (0, class_validator_1.IsString)(),
425
426
  __metadata("design:type", String)
426
- ], SellCarRequestResponseDTO.prototype, "requestType", void 0);
427
+ ], SellCarRequestResponseDTO.prototype, "modelName", void 0);
427
428
  __decorate([
428
- (0, class_validator_1.IsNumber)(),
429
- (0, class_validator_1.IsOptional)(),
430
- __metadata("design:type", Number)
431
- ], SellCarRequestResponseDTO.prototype, "year", void 0);
429
+ (0, class_validator_1.IsString)(),
430
+ __metadata("design:type", String)
431
+ ], SellCarRequestResponseDTO.prototype, "modelVersion", void 0);
432
+ __decorate([
433
+ (0, class_validator_1.IsString)(),
434
+ __metadata("design:type", String)
435
+ ], SellCarRequestResponseDTO.prototype, "modelVersionName", void 0);
432
436
  __decorate([
433
437
  (0, class_validator_1.IsNumber)(),
434
- (0, class_validator_1.IsOptional)(),
435
438
  __metadata("design:type", Number)
436
439
  ], SellCarRequestResponseDTO.prototype, "mileage", void 0);
440
+ __decorate([
441
+ (0, class_validator_1.IsString)(),
442
+ __metadata("design:type", String)
443
+ ], SellCarRequestResponseDTO.prototype, "year", void 0);
437
444
  __decorate([
438
445
  (0, class_validator_1.IsNumber)(),
439
- (0, class_validator_1.IsOptional)(),
440
446
  __metadata("design:type", Number)
441
447
  ], SellCarRequestResponseDTO.prototype, "expectedSellingPrice", void 0);
442
- __decorate([
443
- (0, class_validator_1.IsString)(),
444
- (0, class_validator_1.IsOptional)(),
445
- __metadata("design:type", String)
446
- ], SellCarRequestResponseDTO.prototype, "vehicleOptions", void 0);
447
448
  __decorate([
448
449
  (0, class_validator_1.IsString)(),
449
450
  (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.6.1",
6
+ "version": "1.6.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",