@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,429 +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.FinanceEligibilityFetchDTO = exports.FinanceEligibilityOptionsDTO = exports.FinanceEligibilityFilterDTO = exports.FinanceEligibilityRequestResponseDTO = exports.FinanceEligibilityRequestUpdateDTO = exports.FinanceEligibilityRequestCreateDTO = exports.Status = exports.EligibilityStatus = exports.YesNo = exports.EmployeeCount = exports.SalaryType = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const global_1 = require("../../../../global");
|
|
16
|
-
const models_1 = require("../../../models");
|
|
17
|
-
var SalaryType;
|
|
18
|
-
(function (SalaryType) {
|
|
19
|
-
SalaryType["WPS"] = "wps";
|
|
20
|
-
SalaryType["BANK_TRANSFER"] = "bank_transfer";
|
|
21
|
-
SalaryType["CASH"] = "cash";
|
|
22
|
-
SalaryType["OTHER"] = "other";
|
|
23
|
-
})(SalaryType = exports.SalaryType || (exports.SalaryType = {}));
|
|
24
|
-
var EmployeeCount;
|
|
25
|
-
(function (EmployeeCount) {
|
|
26
|
-
EmployeeCount["LESS_THAN_10"] = "less_than_10";
|
|
27
|
-
EmployeeCount["BETWEEN_10_50"] = "between_10_50";
|
|
28
|
-
EmployeeCount["MORE_THAN_50"] = "more_than_50";
|
|
29
|
-
})(EmployeeCount = exports.EmployeeCount || (exports.EmployeeCount = {}));
|
|
30
|
-
var YesNo;
|
|
31
|
-
(function (YesNo) {
|
|
32
|
-
YesNo["YES"] = "yes";
|
|
33
|
-
YesNo["NO"] = "no";
|
|
34
|
-
})(YesNo = exports.YesNo || (exports.YesNo = {}));
|
|
35
|
-
var EligibilityStatus;
|
|
36
|
-
(function (EligibilityStatus) {
|
|
37
|
-
EligibilityStatus[EligibilityStatus["ELIGIBLE"] = 1] = "ELIGIBLE";
|
|
38
|
-
EligibilityStatus[EligibilityStatus["NOT_ELIGIBLE"] = 0] = "NOT_ELIGIBLE";
|
|
39
|
-
})(EligibilityStatus = exports.EligibilityStatus || (exports.EligibilityStatus = {}));
|
|
40
|
-
var Status;
|
|
41
|
-
(function (Status) {
|
|
42
|
-
Status["PENDING"] = "pending";
|
|
43
|
-
Status["APPROVED"] = "approved";
|
|
44
|
-
Status["REJECTED"] = "rejected";
|
|
45
|
-
})(Status = exports.Status || (exports.Status = {}));
|
|
46
|
-
class FinanceEligibilityRequestCreateDTO {
|
|
47
|
-
static fromPlain(plain) {
|
|
48
|
-
return (0, class_transformer_1.plainToClass)(FinanceEligibilityRequestCreateDTO, plain);
|
|
49
|
-
}
|
|
50
|
-
toPlain() {
|
|
51
|
-
return (0, class_transformer_1.instanceToPlain)(this);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, class_validator_1.IsUUID)(),
|
|
56
|
-
(0, class_validator_1.IsOptional)(),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "vehicleId", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_validator_1.IsUUID)(),
|
|
61
|
-
(0, class_validator_1.IsOptional)(),
|
|
62
|
-
__metadata("design:type", String)
|
|
63
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "makeId", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, class_validator_1.IsUUID)(),
|
|
66
|
-
(0, class_validator_1.IsOptional)(),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "modelId", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsString)(),
|
|
71
|
-
(0, class_validator_1.MinLength)(2),
|
|
72
|
-
(0, class_validator_1.MaxLength)(50),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "fullName", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsEmail)(),
|
|
77
|
-
(0, class_validator_1.IsOptional)(),
|
|
78
|
-
__metadata("design:type", String)
|
|
79
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "email", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, class_validator_1.IsString)(),
|
|
82
|
-
(0, class_validator_1.Matches)(/^[0-9+\s-]{8,}$/),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "contactNumber", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, class_validator_1.IsNumber)(),
|
|
87
|
-
(0, class_validator_1.IsPositive)(),
|
|
88
|
-
__metadata("design:type", Number)
|
|
89
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "currentSalary", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
92
|
-
__metadata("design:type", String)
|
|
93
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "existingLoans", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, class_validator_1.IsNumber)(),
|
|
96
|
-
__metadata("design:type", Number)
|
|
97
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "totalMonthlyInstallments", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
100
|
-
__metadata("design:type", String)
|
|
101
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "hasCreditScore", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
(0, class_validator_1.IsNumber)(),
|
|
104
|
-
__metadata("design:type", Number)
|
|
105
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "totalCreditLimit", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, class_validator_1.IsEnum)(SalaryType),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "salaryType", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
112
|
-
__metadata("design:type", String)
|
|
113
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "previousDisputes", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
(0, class_validator_1.IsEnum)(EmployeeCount),
|
|
116
|
-
(0, class_validator_1.IsOptional)(),
|
|
117
|
-
__metadata("design:type", String)
|
|
118
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "employeeCount", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
(0, class_validator_1.IsBoolean)(),
|
|
121
|
-
__metadata("design:type", Boolean)
|
|
122
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "isCompanyOlderThanOneYear", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
125
|
-
(0, class_validator_1.IsOptional)(),
|
|
126
|
-
__metadata("design:type", String)
|
|
127
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "hasLandline", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, class_validator_1.IsOptional)(),
|
|
130
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
131
|
-
__metadata("design:type", Array)
|
|
132
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "documents", void 0);
|
|
133
|
-
exports.FinanceEligibilityRequestCreateDTO = FinanceEligibilityRequestCreateDTO;
|
|
134
|
-
class FinanceEligibilityRequestUpdateDTO {
|
|
135
|
-
static fromPlain(plain) {
|
|
136
|
-
return (0, class_transformer_1.plainToClass)(FinanceEligibilityRequestUpdateDTO, plain);
|
|
137
|
-
}
|
|
138
|
-
toPlain() {
|
|
139
|
-
return (0, class_transformer_1.instanceToPlain)(this);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
__decorate([
|
|
143
|
-
(0, class_validator_1.IsOptional)(),
|
|
144
|
-
(0, class_validator_1.IsUUID)(),
|
|
145
|
-
__metadata("design:type", String)
|
|
146
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "vehicleId", void 0);
|
|
147
|
-
__decorate([
|
|
148
|
-
(0, class_validator_1.IsOptional)(),
|
|
149
|
-
(0, class_validator_1.IsUUID)(),
|
|
150
|
-
__metadata("design:type", String)
|
|
151
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "makeId", void 0);
|
|
152
|
-
__decorate([
|
|
153
|
-
(0, class_validator_1.IsOptional)(),
|
|
154
|
-
(0, class_validator_1.IsUUID)(),
|
|
155
|
-
__metadata("design:type", String)
|
|
156
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "modelId", void 0);
|
|
157
|
-
__decorate([
|
|
158
|
-
(0, class_validator_1.IsOptional)(),
|
|
159
|
-
(0, class_validator_1.IsString)(),
|
|
160
|
-
(0, class_validator_1.MinLength)(2),
|
|
161
|
-
(0, class_validator_1.MaxLength)(50),
|
|
162
|
-
__metadata("design:type", String)
|
|
163
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "fullName", void 0);
|
|
164
|
-
__decorate([
|
|
165
|
-
(0, class_validator_1.IsOptional)(),
|
|
166
|
-
(0, class_validator_1.IsEmail)(),
|
|
167
|
-
__metadata("design:type", String)
|
|
168
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "email", void 0);
|
|
169
|
-
__decorate([
|
|
170
|
-
(0, class_validator_1.IsOptional)(),
|
|
171
|
-
(0, class_validator_1.IsString)(),
|
|
172
|
-
(0, class_validator_1.Matches)(/^[0-9+\s-]{8,}$/),
|
|
173
|
-
__metadata("design:type", String)
|
|
174
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "contactNumber", void 0);
|
|
175
|
-
__decorate([
|
|
176
|
-
(0, class_validator_1.IsOptional)(),
|
|
177
|
-
(0, class_validator_1.IsNumber)(),
|
|
178
|
-
(0, class_validator_1.IsPositive)(),
|
|
179
|
-
__metadata("design:type", Number)
|
|
180
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "currentSalary", void 0);
|
|
181
|
-
__decorate([
|
|
182
|
-
(0, class_validator_1.IsOptional)(),
|
|
183
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
184
|
-
__metadata("design:type", String)
|
|
185
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "existingLoans", void 0);
|
|
186
|
-
__decorate([
|
|
187
|
-
(0, class_validator_1.IsOptional)(),
|
|
188
|
-
(0, class_validator_1.IsNumber)(),
|
|
189
|
-
__metadata("design:type", Number)
|
|
190
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "totalMonthlyInstallments", void 0);
|
|
191
|
-
__decorate([
|
|
192
|
-
(0, class_validator_1.IsOptional)(),
|
|
193
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
194
|
-
__metadata("design:type", String)
|
|
195
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "hasCreditScore", void 0);
|
|
196
|
-
__decorate([
|
|
197
|
-
(0, class_validator_1.IsOptional)(),
|
|
198
|
-
(0, class_validator_1.IsNumber)(),
|
|
199
|
-
__metadata("design:type", Number)
|
|
200
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "totalCreditLimit", void 0);
|
|
201
|
-
__decorate([
|
|
202
|
-
(0, class_validator_1.IsOptional)(),
|
|
203
|
-
(0, class_validator_1.IsEnum)(SalaryType),
|
|
204
|
-
__metadata("design:type", String)
|
|
205
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "salaryType", void 0);
|
|
206
|
-
__decorate([
|
|
207
|
-
(0, class_validator_1.IsOptional)(),
|
|
208
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
209
|
-
__metadata("design:type", String)
|
|
210
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "previousDisputes", void 0);
|
|
211
|
-
__decorate([
|
|
212
|
-
(0, class_validator_1.IsOptional)(),
|
|
213
|
-
(0, class_validator_1.IsEnum)(EmployeeCount),
|
|
214
|
-
__metadata("design:type", String)
|
|
215
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "employeeCount", void 0);
|
|
216
|
-
__decorate([
|
|
217
|
-
(0, class_validator_1.IsOptional)(),
|
|
218
|
-
(0, class_validator_1.IsBoolean)(),
|
|
219
|
-
__metadata("design:type", Boolean)
|
|
220
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "isCompanyOlderThanOneYear", void 0);
|
|
221
|
-
__decorate([
|
|
222
|
-
(0, class_validator_1.IsOptional)(),
|
|
223
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
224
|
-
__metadata("design:type", String)
|
|
225
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "hasLandline", void 0);
|
|
226
|
-
__decorate([
|
|
227
|
-
(0, class_validator_1.IsOptional)(),
|
|
228
|
-
(0, class_validator_1.IsEnum)(EligibilityStatus),
|
|
229
|
-
__metadata("design:type", Number)
|
|
230
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "eligibility", void 0);
|
|
231
|
-
__decorate([
|
|
232
|
-
(0, class_validator_1.IsOptional)(),
|
|
233
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
234
|
-
__metadata("design:type", Array)
|
|
235
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "documents", void 0);
|
|
236
|
-
__decorate([
|
|
237
|
-
(0, class_validator_1.IsOptional)(),
|
|
238
|
-
(0, class_validator_1.IsEnum)(["pending", "approved", "rejected"]),
|
|
239
|
-
__metadata("design:type", String)
|
|
240
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "status", void 0);
|
|
241
|
-
__decorate([
|
|
242
|
-
(0, class_validator_1.IsOptional)(),
|
|
243
|
-
(0, class_validator_1.IsString)(),
|
|
244
|
-
__metadata("design:type", String)
|
|
245
|
-
], FinanceEligibilityRequestUpdateDTO.prototype, "rejectionReason", void 0);
|
|
246
|
-
exports.FinanceEligibilityRequestUpdateDTO = FinanceEligibilityRequestUpdateDTO;
|
|
247
|
-
class FinanceEligibilityRequestResponseDTO {
|
|
248
|
-
static fromPlain(plain) {
|
|
249
|
-
return (0, class_transformer_1.plainToClass)(FinanceEligibilityRequestResponseDTO, plain);
|
|
250
|
-
}
|
|
251
|
-
toPlain() {
|
|
252
|
-
return (0, class_transformer_1.instanceToPlain)(this);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
__decorate([
|
|
256
|
-
(0, class_validator_1.IsString)(),
|
|
257
|
-
__metadata("design:type", String)
|
|
258
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "id", void 0);
|
|
259
|
-
__decorate([
|
|
260
|
-
(0, class_validator_1.IsUUID)(),
|
|
261
|
-
(0, class_validator_1.IsOptional)(),
|
|
262
|
-
__metadata("design:type", String)
|
|
263
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "vehicleId", void 0);
|
|
264
|
-
__decorate([
|
|
265
|
-
(0, class_validator_1.IsUUID)(),
|
|
266
|
-
(0, class_validator_1.IsOptional)(),
|
|
267
|
-
__metadata("design:type", String)
|
|
268
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "makeId", void 0);
|
|
269
|
-
__decorate([
|
|
270
|
-
(0, class_validator_1.IsUUID)(),
|
|
271
|
-
(0, class_validator_1.IsOptional)(),
|
|
272
|
-
__metadata("design:type", String)
|
|
273
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "modelId", void 0);
|
|
274
|
-
__decorate([
|
|
275
|
-
(0, class_validator_1.IsOptional)(),
|
|
276
|
-
__metadata("design:type", Object)
|
|
277
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "make", void 0);
|
|
278
|
-
__decorate([
|
|
279
|
-
(0, class_validator_1.IsOptional)(),
|
|
280
|
-
__metadata("design:type", Object)
|
|
281
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "model", void 0);
|
|
282
|
-
__decorate([
|
|
283
|
-
(0, class_validator_1.IsString)(),
|
|
284
|
-
__metadata("design:type", String)
|
|
285
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "fullName", void 0);
|
|
286
|
-
__decorate([
|
|
287
|
-
(0, class_validator_1.IsOptional)(),
|
|
288
|
-
(0, class_validator_1.IsEmail)(),
|
|
289
|
-
__metadata("design:type", String)
|
|
290
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "email", void 0);
|
|
291
|
-
__decorate([
|
|
292
|
-
(0, class_validator_1.IsString)(),
|
|
293
|
-
__metadata("design:type", String)
|
|
294
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "contactNumber", void 0);
|
|
295
|
-
__decorate([
|
|
296
|
-
(0, class_validator_1.IsNumber)(),
|
|
297
|
-
__metadata("design:type", Number)
|
|
298
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "currentSalary", void 0);
|
|
299
|
-
__decorate([
|
|
300
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
301
|
-
__metadata("design:type", String)
|
|
302
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "existingLoans", void 0);
|
|
303
|
-
__decorate([
|
|
304
|
-
(0, class_validator_1.IsNumber)(),
|
|
305
|
-
__metadata("design:type", Number)
|
|
306
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "totalMonthlyInstallments", void 0);
|
|
307
|
-
__decorate([
|
|
308
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
309
|
-
__metadata("design:type", String)
|
|
310
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "hasCreditScore", void 0);
|
|
311
|
-
__decorate([
|
|
312
|
-
(0, class_validator_1.IsNumber)(),
|
|
313
|
-
__metadata("design:type", Number)
|
|
314
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "totalCreditLimit", void 0);
|
|
315
|
-
__decorate([
|
|
316
|
-
(0, class_validator_1.IsEnum)(SalaryType),
|
|
317
|
-
__metadata("design:type", String)
|
|
318
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "salaryType", void 0);
|
|
319
|
-
__decorate([
|
|
320
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
321
|
-
__metadata("design:type", String)
|
|
322
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "previousDisputes", void 0);
|
|
323
|
-
__decorate([
|
|
324
|
-
(0, class_validator_1.IsEnum)(EmployeeCount),
|
|
325
|
-
__metadata("design:type", String)
|
|
326
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "employeeCount", void 0);
|
|
327
|
-
__decorate([
|
|
328
|
-
(0, class_validator_1.IsBoolean)(),
|
|
329
|
-
__metadata("design:type", Boolean)
|
|
330
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "isCompanyOlderThanOneYear", void 0);
|
|
331
|
-
__decorate([
|
|
332
|
-
(0, class_validator_1.IsEnum)(YesNo),
|
|
333
|
-
__metadata("design:type", String)
|
|
334
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "hasLandline", void 0);
|
|
335
|
-
__decorate([
|
|
336
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
337
|
-
__metadata("design:type", Array)
|
|
338
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "documents", void 0);
|
|
339
|
-
__decorate([
|
|
340
|
-
(0, class_validator_1.IsEnum)(EligibilityStatus),
|
|
341
|
-
__metadata("design:type", Number)
|
|
342
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "eligibility", void 0);
|
|
343
|
-
__decorate([
|
|
344
|
-
(0, class_validator_1.IsOptional)(),
|
|
345
|
-
__metadata("design:type", Object)
|
|
346
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "user", void 0);
|
|
347
|
-
__decorate([
|
|
348
|
-
(0, class_validator_1.IsOptional)(),
|
|
349
|
-
__metadata("design:type", models_1.Lead)
|
|
350
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "lead", void 0);
|
|
351
|
-
__decorate([
|
|
352
|
-
(0, class_validator_1.IsEnum)(Status),
|
|
353
|
-
__metadata("design:type", String)
|
|
354
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "status", void 0);
|
|
355
|
-
__decorate([
|
|
356
|
-
(0, class_validator_1.IsOptional)(),
|
|
357
|
-
(0, class_validator_1.IsString)(),
|
|
358
|
-
__metadata("design:type", String)
|
|
359
|
-
], FinanceEligibilityRequestResponseDTO.prototype, "rejectionReason", void 0);
|
|
360
|
-
exports.FinanceEligibilityRequestResponseDTO = FinanceEligibilityRequestResponseDTO;
|
|
361
|
-
class FinanceEligibilityFilterDTO {
|
|
362
|
-
static fromPlain(plain) {
|
|
363
|
-
return (0, class_transformer_1.plainToClass)(FinanceEligibilityFilterDTO, plain);
|
|
364
|
-
}
|
|
365
|
-
toPlain() {
|
|
366
|
-
return (0, class_transformer_1.instanceToPlain)(this);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
__decorate([
|
|
370
|
-
(0, class_validator_1.IsOptional)(),
|
|
371
|
-
__metadata("design:type", String)
|
|
372
|
-
], FinanceEligibilityFilterDTO.prototype, "search", void 0);
|
|
373
|
-
__decorate([
|
|
374
|
-
(0, class_validator_1.IsUUID)(),
|
|
375
|
-
(0, class_validator_1.IsOptional)(),
|
|
376
|
-
__metadata("design:type", String)
|
|
377
|
-
], FinanceEligibilityFilterDTO.prototype, "vehicleId", void 0);
|
|
378
|
-
__decorate([
|
|
379
|
-
(0, class_validator_1.IsUUID)(),
|
|
380
|
-
(0, class_validator_1.IsOptional)(),
|
|
381
|
-
__metadata("design:type", String)
|
|
382
|
-
], FinanceEligibilityFilterDTO.prototype, "leadId", void 0);
|
|
383
|
-
__decorate([
|
|
384
|
-
(0, class_validator_1.IsEnum)(EligibilityStatus),
|
|
385
|
-
(0, class_validator_1.IsOptional)(),
|
|
386
|
-
__metadata("design:type", Number)
|
|
387
|
-
], FinanceEligibilityFilterDTO.prototype, "eligibility", void 0);
|
|
388
|
-
__decorate([
|
|
389
|
-
(0, class_validator_1.IsEnum)(SalaryType),
|
|
390
|
-
(0, class_validator_1.IsOptional)(),
|
|
391
|
-
__metadata("design:type", String)
|
|
392
|
-
], FinanceEligibilityFilterDTO.prototype, "salaryType", void 0);
|
|
393
|
-
__decorate([
|
|
394
|
-
(0, class_validator_1.IsBoolean)(),
|
|
395
|
-
(0, class_validator_1.IsOptional)(),
|
|
396
|
-
__metadata("design:type", Boolean)
|
|
397
|
-
], FinanceEligibilityFilterDTO.prototype, "isActive", void 0);
|
|
398
|
-
__decorate([
|
|
399
|
-
(0, class_validator_1.IsObject)(),
|
|
400
|
-
(0, class_validator_1.IsOptional)(),
|
|
401
|
-
__metadata("design:type", global_1.DateFilter)
|
|
402
|
-
], FinanceEligibilityFilterDTO.prototype, "createdAt", void 0);
|
|
403
|
-
exports.FinanceEligibilityFilterDTO = FinanceEligibilityFilterDTO;
|
|
404
|
-
class FinanceEligibilityOptionsDTO extends global_1.PaginationOptions {
|
|
405
|
-
static fromPlain(plain) {
|
|
406
|
-
return (0, class_transformer_1.plainToClass)(FinanceEligibilityFilterDTO, plain);
|
|
407
|
-
}
|
|
408
|
-
toPlain() {
|
|
409
|
-
return (0, class_transformer_1.instanceToPlain)(this);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
__decorate([
|
|
413
|
-
(0, class_validator_1.IsOptional)(),
|
|
414
|
-
__metadata("design:type", Object)
|
|
415
|
-
], FinanceEligibilityOptionsDTO.prototype, "sort", void 0);
|
|
416
|
-
exports.FinanceEligibilityOptionsDTO = FinanceEligibilityOptionsDTO;
|
|
417
|
-
class FinanceEligibilityFetchDTO {
|
|
418
|
-
validate() {
|
|
419
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
420
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
421
|
-
}
|
|
422
|
-
static fromPlain(plain) {
|
|
423
|
-
return (0, class_transformer_1.plainToClass)(FinanceEligibilityFetchDTO, plain);
|
|
424
|
-
}
|
|
425
|
-
toPlain() {
|
|
426
|
-
return (0, class_transformer_1.instanceToPlain)(this);
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
exports.FinanceEligibilityFetchDTO = FinanceEligibilityFetchDTO;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./dto/FinanceEligibilityRequestDTO"), exports);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./data"), exports);
|