@alba-cars/common-modules 1.10.19 → 1.10.21

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.
@@ -8,8 +8,10 @@ export declare class VehicleFinance extends BaseModel {
8
8
  vatInclusive: string;
9
9
  interestPercentage: number;
10
10
  monthlyInstallment: number;
11
+ droppedMonthlyInstallment?: number;
11
12
  financingYear: number;
12
13
  interestPerYear: number;
14
+ droppedInterestPerYear?: number;
13
15
  totalReductionAmount: number;
14
16
  reductionDuration: number;
15
17
  durationShow: string;
@@ -7,8 +7,10 @@ export declare class VehicleFinanceGetDTO {
7
7
  vatInclusive: string;
8
8
  interestPercentage: number;
9
9
  monthlyInstallment: number;
10
+ droppedMonthlyInstallment?: number;
10
11
  financingYear: number;
11
12
  interestPerYear: number;
13
+ droppedInterestPerYear?: number;
12
14
  totalReductionAmount?: number;
13
15
  reductionDuration?: number;
14
16
  durationShow?: string;
@@ -24,8 +26,10 @@ export declare class VehicleFinanceCreateDTO {
24
26
  droppedPrice?: number;
25
27
  interestPercentage: number;
26
28
  monthlyInstallment: number;
29
+ droppedMonthlyInstallment?: number;
27
30
  financingYear: number;
28
31
  interestPerYear: number;
32
+ droppedInterestPerYear?: number;
29
33
  totalReductionAmount?: number;
30
34
  reductionDuration?: number;
31
35
  durationShow?: string;
@@ -44,8 +48,10 @@ export declare class VehicleFinanceUpdateDTO {
44
48
  droppedPrice?: number;
45
49
  interestPercentage?: number;
46
50
  monthlyInstallment?: number;
51
+ droppedMonthlyInstallment?: number;
47
52
  financingYear?: number;
48
53
  interestPerYear?: number;
54
+ droppedInterestPerYear?: number;
49
55
  vehiclePriceType?: string;
50
56
  vatInclusive?: string;
51
57
  validate(): string[];
@@ -55,6 +55,11 @@ __decorate([
55
55
  (0, class_validator_1.IsNumber)(),
56
56
  __metadata("design:type", Number)
57
57
  ], VehicleFinanceCreateDTO.prototype, "monthlyInstallment", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsNumber)(),
60
+ (0, class_validator_1.IsOptional)(),
61
+ __metadata("design:type", Number)
62
+ ], VehicleFinanceCreateDTO.prototype, "droppedMonthlyInstallment", void 0);
58
63
  __decorate([
59
64
  (0, class_validator_1.IsNumber)(),
60
65
  __metadata("design:type", Number)
@@ -63,6 +68,11 @@ __decorate([
63
68
  (0, class_validator_1.IsNumber)(),
64
69
  __metadata("design:type", Number)
65
70
  ], VehicleFinanceCreateDTO.prototype, "interestPerYear", void 0);
71
+ __decorate([
72
+ (0, class_validator_1.IsNumber)(),
73
+ (0, class_validator_1.IsOptional)(),
74
+ __metadata("design:type", Number)
75
+ ], VehicleFinanceCreateDTO.prototype, "droppedInterestPerYear", void 0);
66
76
  __decorate([
67
77
  (0, class_validator_1.IsOptional)(),
68
78
  (0, class_validator_1.IsNumber)(),
@@ -140,6 +150,11 @@ __decorate([
140
150
  (0, class_validator_1.IsNumber)(),
141
151
  __metadata("design:type", Number)
142
152
  ], VehicleFinanceUpdateDTO.prototype, "monthlyInstallment", void 0);
153
+ __decorate([
154
+ (0, class_validator_1.IsOptional)(),
155
+ (0, class_validator_1.IsNumber)(),
156
+ __metadata("design:type", Number)
157
+ ], VehicleFinanceUpdateDTO.prototype, "droppedMonthlyInstallment", void 0);
143
158
  __decorate([
144
159
  (0, class_validator_1.IsOptional)(),
145
160
  (0, class_validator_1.IsNumber)(),
@@ -150,6 +165,11 @@ __decorate([
150
165
  (0, class_validator_1.IsNumber)(),
151
166
  __metadata("design:type", Number)
152
167
  ], VehicleFinanceUpdateDTO.prototype, "interestPerYear", void 0);
168
+ __decorate([
169
+ (0, class_validator_1.IsOptional)(),
170
+ (0, class_validator_1.IsNumber)(),
171
+ __metadata("design:type", Number)
172
+ ], VehicleFinanceUpdateDTO.prototype, "droppedInterestPerYear", void 0);
153
173
  __decorate([
154
174
  (0, class_validator_1.IsOptional)(),
155
175
  (0, class_validator_1.IsString)(),
@@ -11,6 +11,7 @@ export declare enum VehicleStatusType {
11
11
  UNPUBLISHED = "Unpublished"
12
12
  }
13
13
  export declare enum VehicleWarrantyYearType {
14
+ NOT_AVAILABLE = "Not Available",
14
15
  ONE_YEAR = "1 Year",
15
16
  TWO_YEARS = "2 Years",
16
17
  THREE_YEARS = "3 Years",
@@ -17,6 +17,7 @@ var VehicleStatusType;
17
17
  })(VehicleStatusType = exports.VehicleStatusType || (exports.VehicleStatusType = {}));
18
18
  var VehicleWarrantyYearType;
19
19
  (function (VehicleWarrantyYearType) {
20
+ VehicleWarrantyYearType["NOT_AVAILABLE"] = "Not Available";
20
21
  VehicleWarrantyYearType["ONE_YEAR"] = "1 Year";
21
22
  VehicleWarrantyYearType["TWO_YEARS"] = "2 Years";
22
23
  VehicleWarrantyYearType["THREE_YEARS"] = "3 Years";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.10.19",
6
+ "version": "1.10.21",
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",