@alba-cars/common-modules 1.7.7 → 1.7.9
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/features/auth/data/dto/UserDTO.d.ts +1 -0
- package/dist/features/auth/data/dto/UserDTO.js +5 -0
- package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.d.ts +3 -1
- package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.js +11 -4
- package/dist/features/models/User.d.ts +1 -0
- package/package.json +1 -1
|
@@ -165,6 +165,11 @@ __decorate([
|
|
|
165
165
|
(0, class_validator_1.IsString)({ each: true }),
|
|
166
166
|
__metadata("design:type", Object)
|
|
167
167
|
], UserFilterDTO.prototype, "phone", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, class_validator_1.IsOptional)(),
|
|
170
|
+
(0, class_validator_1.IsBoolean)(),
|
|
171
|
+
__metadata("design:type", Boolean)
|
|
172
|
+
], UserFilterDTO.prototype, "isPhoneNumberVerified", void 0);
|
|
168
173
|
__decorate([
|
|
169
174
|
(0, class_validator_1.IsOptional)(),
|
|
170
175
|
(0, class_validator_1.IsArray)(),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PaginationOptions } from "../../../../global";
|
|
2
|
+
import { Lead, User } from "../../../models";
|
|
2
3
|
export declare enum SalaryType {
|
|
3
4
|
WPS = "wps",
|
|
4
5
|
BANK_TRANSFER = "bank_transfer",
|
|
@@ -35,7 +36,6 @@ export declare class FinanceEligibilityRequestCreateDTO {
|
|
|
35
36
|
employeeCount: EmployeeCount;
|
|
36
37
|
isCompanyOlderThanOneYear: boolean;
|
|
37
38
|
hasLandline: YesNo;
|
|
38
|
-
eligibility: EligibilityStatus;
|
|
39
39
|
documents?: string[];
|
|
40
40
|
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityRequestCreateDTO;
|
|
41
41
|
toPlain(): Record<string, unknown>;
|
|
@@ -98,6 +98,8 @@ export declare class FinanceEligibilityRequestResponseDTO {
|
|
|
98
98
|
hasLandline: YesNo;
|
|
99
99
|
documents: string[];
|
|
100
100
|
eligibility: EligibilityStatus;
|
|
101
|
+
user?: User;
|
|
102
|
+
lead?: Lead;
|
|
101
103
|
status: "pending" | "approved" | "rejected";
|
|
102
104
|
rejectionReason?: string;
|
|
103
105
|
createdAt: Date;
|
|
@@ -13,6 +13,7 @@ exports.FinanceEligibilityFetchDTO = exports.FinanceEligibilityOptionsDTO = expo
|
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const global_1 = require("../../../../global");
|
|
16
|
+
const models_1 = require("../../../models");
|
|
16
17
|
var SalaryType;
|
|
17
18
|
(function (SalaryType) {
|
|
18
19
|
SalaryType["WPS"] = "wps";
|
|
@@ -51,10 +52,12 @@ __decorate([
|
|
|
51
52
|
], FinanceEligibilityRequestCreateDTO.prototype, "vehicleId", void 0);
|
|
52
53
|
__decorate([
|
|
53
54
|
(0, class_validator_1.IsUUID)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
56
|
__metadata("design:type", String)
|
|
55
57
|
], FinanceEligibilityRequestCreateDTO.prototype, "makeId", void 0);
|
|
56
58
|
__decorate([
|
|
57
59
|
(0, class_validator_1.IsUUID)(),
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
61
|
__metadata("design:type", String)
|
|
59
62
|
], FinanceEligibilityRequestCreateDTO.prototype, "modelId", void 0);
|
|
60
63
|
__decorate([
|
|
@@ -114,10 +117,6 @@ __decorate([
|
|
|
114
117
|
(0, class_validator_1.IsEnum)(YesNo),
|
|
115
118
|
__metadata("design:type", String)
|
|
116
119
|
], FinanceEligibilityRequestCreateDTO.prototype, "hasLandline", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, class_validator_1.IsEnum)(EligibilityStatus),
|
|
119
|
-
__metadata("design:type", Number)
|
|
120
|
-
], FinanceEligibilityRequestCreateDTO.prototype, "eligibility", void 0);
|
|
121
120
|
__decorate([
|
|
122
121
|
(0, class_validator_1.IsOptional)(),
|
|
123
122
|
(0, class_validator_1.IsString)({ each: true }),
|
|
@@ -333,6 +332,14 @@ __decorate([
|
|
|
333
332
|
(0, class_validator_1.IsEnum)(EligibilityStatus),
|
|
334
333
|
__metadata("design:type", Number)
|
|
335
334
|
], FinanceEligibilityRequestResponseDTO.prototype, "eligibility", void 0);
|
|
335
|
+
__decorate([
|
|
336
|
+
(0, class_validator_1.IsOptional)(),
|
|
337
|
+
__metadata("design:type", Object)
|
|
338
|
+
], FinanceEligibilityRequestResponseDTO.prototype, "user", void 0);
|
|
339
|
+
__decorate([
|
|
340
|
+
(0, class_validator_1.IsOptional)(),
|
|
341
|
+
__metadata("design:type", models_1.Lead)
|
|
342
|
+
], FinanceEligibilityRequestResponseDTO.prototype, "lead", void 0);
|
|
336
343
|
__decorate([
|
|
337
344
|
(0, class_validator_1.IsEnum)(["pending", "approved", "rejected"]),
|
|
338
345
|
__metadata("design:type", String)
|
package/package.json
CHANGED