@alba-cars/common-modules 1.10.32 → 1.10.34
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/core/network/endpoint-config.d.ts +4 -1
- package/dist/core/network/endpoint-config.js +1 -0
- package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.d.ts +6 -1
- package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.js +8 -2
- package/dist/features/models/Vehicle.d.ts +1 -0
- package/dist/features/vehicle/data/dto/VehicleDTO.d.ts +2 -0
- package/dist/features/vehicle/data/dto/VehicleDTO.js +10 -0
- package/package.json +1 -1
|
@@ -53,6 +53,9 @@ type DealDriveEndpoints = BaseEndpoint & {
|
|
|
53
53
|
getAllMakes: EndpointFunction;
|
|
54
54
|
getAllModels: EndpointFunction;
|
|
55
55
|
};
|
|
56
|
+
type FinanceEligibilityRequestEndpoints = BaseEndpoint & {
|
|
57
|
+
updateStatus: EndpointFunction;
|
|
58
|
+
};
|
|
56
59
|
type APIEndpointType = {
|
|
57
60
|
vehicle: VehicleEndpoints;
|
|
58
61
|
blogs: BlogEndpoints;
|
|
@@ -73,7 +76,7 @@ type APIEndpointType = {
|
|
|
73
76
|
agents: BaseEndpoint;
|
|
74
77
|
showroomVisit: BaseEndpoint;
|
|
75
78
|
sellCarRequest: BaseEndpoint;
|
|
76
|
-
financeEligibilityRequest:
|
|
79
|
+
financeEligibilityRequest: FinanceEligibilityRequestEndpoints;
|
|
77
80
|
vehicleReservations: BaseEndpoint;
|
|
78
81
|
languages: BaseEndpoint;
|
|
79
82
|
leads: BaseEndpoint;
|
|
@@ -159,6 +159,7 @@ exports.API_ENDPOINTS = {
|
|
|
159
159
|
getOne: (id) => `/finance-eligibility-request/${id}`,
|
|
160
160
|
deleteOne: (id) => `/finance-eligibility-request/${id}`,
|
|
161
161
|
updateOne: (id) => `/finance-eligibility-request/${id}`,
|
|
162
|
+
updateStatus: (id) => `/finance-eligibility-request/${id}/status`,
|
|
162
163
|
},
|
|
163
164
|
vehicleReservations: {
|
|
164
165
|
getAll: `/vehicle-reservation`,
|
|
@@ -19,6 +19,11 @@ export declare enum EligibilityStatus {
|
|
|
19
19
|
ELIGIBLE = 1,
|
|
20
20
|
NOT_ELIGIBLE = 0
|
|
21
21
|
}
|
|
22
|
+
export declare enum Status {
|
|
23
|
+
PENDING = "pending",
|
|
24
|
+
APPROVED = "approved",
|
|
25
|
+
REJECTED = "rejected"
|
|
26
|
+
}
|
|
22
27
|
export declare class FinanceEligibilityRequestCreateDTO {
|
|
23
28
|
vehicleId?: string;
|
|
24
29
|
makeId?: string;
|
|
@@ -100,7 +105,7 @@ export declare class FinanceEligibilityRequestResponseDTO {
|
|
|
100
105
|
eligibility: EligibilityStatus;
|
|
101
106
|
user?: User;
|
|
102
107
|
lead?: Lead;
|
|
103
|
-
status:
|
|
108
|
+
status: Status;
|
|
104
109
|
rejectionReason?: string;
|
|
105
110
|
createdAt: Date;
|
|
106
111
|
updatedAt: Date;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.FinanceEligibilityFetchDTO = exports.FinanceEligibilityOptionsDTO = exports.FinanceEligibilityFilterDTO = exports.FinanceEligibilityRequestResponseDTO = exports.FinanceEligibilityRequestUpdateDTO = exports.FinanceEligibilityRequestCreateDTO = exports.EligibilityStatus = exports.YesNo = exports.EmployeeCount = exports.SalaryType = void 0;
|
|
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
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const global_1 = require("../../../../global");
|
|
@@ -37,6 +37,12 @@ var EligibilityStatus;
|
|
|
37
37
|
EligibilityStatus[EligibilityStatus["ELIGIBLE"] = 1] = "ELIGIBLE";
|
|
38
38
|
EligibilityStatus[EligibilityStatus["NOT_ELIGIBLE"] = 0] = "NOT_ELIGIBLE";
|
|
39
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 = {}));
|
|
40
46
|
class FinanceEligibilityRequestCreateDTO {
|
|
41
47
|
static fromPlain(plain) {
|
|
42
48
|
return (0, class_transformer_1.plainToClass)(FinanceEligibilityRequestCreateDTO, plain);
|
|
@@ -343,7 +349,7 @@ __decorate([
|
|
|
343
349
|
__metadata("design:type", models_1.Lead)
|
|
344
350
|
], FinanceEligibilityRequestResponseDTO.prototype, "lead", void 0);
|
|
345
351
|
__decorate([
|
|
346
|
-
(0, class_validator_1.IsEnum)(
|
|
352
|
+
(0, class_validator_1.IsEnum)(Status),
|
|
347
353
|
__metadata("design:type", String)
|
|
348
354
|
], FinanceEligibilityRequestResponseDTO.prototype, "status", void 0);
|
|
349
355
|
__decorate([
|
|
@@ -12,6 +12,7 @@ import { User } from "./User";
|
|
|
12
12
|
import { Deposit } from "./Deposit";
|
|
13
13
|
import { VehicleInspectionDTO, VehicleWarrantyYearType } from "../vehicle";
|
|
14
14
|
export declare class Vehicle extends BaseModel {
|
|
15
|
+
title?: string;
|
|
15
16
|
referenceNumber?: string;
|
|
16
17
|
slug: string;
|
|
17
18
|
make: VehicleMake;
|
|
@@ -34,6 +34,7 @@ export declare class VehicleMetaDataDTO {
|
|
|
34
34
|
static toPlain(entity: any): Record<string, unknown>;
|
|
35
35
|
}
|
|
36
36
|
export declare class VehicleCreateDTO extends BaseCreateDTO {
|
|
37
|
+
title: string;
|
|
37
38
|
make: DynamicMakeDTO;
|
|
38
39
|
model: DynamicModelDTO;
|
|
39
40
|
bodyType: DynamicVehicleBodyTypeDTO;
|
|
@@ -85,6 +86,7 @@ export declare class VehicleFeaturesUpdateDTO {
|
|
|
85
86
|
static toPlain(entity: any): Record<string, unknown>;
|
|
86
87
|
}
|
|
87
88
|
export declare class VehicleUpdateDTO extends BaseUpdateDTO {
|
|
89
|
+
title: string;
|
|
88
90
|
make: DynamicMakeDTO;
|
|
89
91
|
model: DynamicModelDTO;
|
|
90
92
|
bodyType: DynamicVehicleBodyTypeDTO;
|
|
@@ -124,6 +124,11 @@ class VehicleCreateDTO extends BaseDTO_1.BaseCreateDTO {
|
|
|
124
124
|
return (0, class_transformer_1.instanceToPlain)(entity);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, class_validator_1.IsOptional)(),
|
|
129
|
+
(0, class_validator_1.IsString)(),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], VehicleCreateDTO.prototype, "title", void 0);
|
|
127
132
|
__decorate([
|
|
128
133
|
(0, class_validator_1.IsNotEmpty)(),
|
|
129
134
|
(0, class_validator_1.ValidateNested)(),
|
|
@@ -374,6 +379,11 @@ class VehicleUpdateDTO extends BaseDTO_1.BaseUpdateDTO {
|
|
|
374
379
|
return (0, class_transformer_1.instanceToPlain)(entity);
|
|
375
380
|
}
|
|
376
381
|
}
|
|
382
|
+
__decorate([
|
|
383
|
+
(0, class_validator_1.IsOptional)(),
|
|
384
|
+
(0, class_validator_1.IsString)(),
|
|
385
|
+
__metadata("design:type", String)
|
|
386
|
+
], VehicleUpdateDTO.prototype, "title", void 0);
|
|
377
387
|
__decorate([
|
|
378
388
|
(0, class_validator_1.IsOptional)(),
|
|
379
389
|
(0, class_validator_1.ValidateNested)(),
|
package/package.json
CHANGED