@alba-cars/common-modules 1.2.7 → 1.2.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.
Files changed (63) hide show
  1. package/dist/core/error-handling/errorHandler.d.ts +1 -1
  2. package/dist/core/error-handling/errorHandler.js +36 -10
  3. package/dist/core/models/index.d.ts +1 -0
  4. package/dist/core/models/index.js +1 -0
  5. package/dist/core/models/media/index.d.ts +1 -0
  6. package/dist/core/models/media/index.js +17 -0
  7. package/dist/core/models/media/media_data.d.ts +4 -0
  8. package/dist/core/models/media/media_data.js +2 -0
  9. package/dist/core/network/endpoint-config.d.ts +8 -1
  10. package/dist/core/network/endpoint-config.js +55 -6
  11. package/dist/core/network/fetch-api.js +24 -20
  12. package/dist/core/utils/global_validators.d.ts +2 -0
  13. package/dist/core/utils/global_validators.js +20 -0
  14. package/dist/core/utils/index.d.ts +1 -0
  15. package/dist/core/utils/index.js +1 -0
  16. package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.d.ts +92 -0
  17. package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.js +286 -0
  18. package/dist/features/finance-eligibilty-request/data/index.d.ts +1 -0
  19. package/dist/features/finance-eligibilty-request/data/index.js +17 -0
  20. package/dist/features/finance-eligibilty-request/index.d.ts +1 -0
  21. package/dist/features/finance-eligibilty-request/index.js +17 -0
  22. package/dist/features/index.d.ts +7 -5
  23. package/dist/features/index.js +2 -0
  24. package/dist/features/sell-call-request/data/dto/SellCarRequestDTO.d.ts +134 -0
  25. package/dist/features/sell-call-request/data/dto/SellCarRequestDTO.js +394 -0
  26. package/dist/features/sell-call-request/data/index.d.ts +1 -0
  27. package/dist/features/sell-call-request/data/index.js +17 -0
  28. package/dist/features/sell-call-request/index.d.ts +1 -0
  29. package/dist/features/sell-call-request/index.js +17 -0
  30. package/dist/features/showroom-visit/data/dto/ShowroomVisit.d.ts +27 -2
  31. package/dist/features/showroom-visit/data/dto/ShowroomVisit.js +86 -5
  32. package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.d.ts +9 -6
  33. package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.js +16 -3
  34. package/dist/features/vehicle/data/dto/MediaDTO.d.ts +5 -0
  35. package/dist/features/vehicle/data/dto/MediaDTO.js +2 -0
  36. package/dist/features/vehicle/data/dto/VehicleCategoryDTO.d.ts +39 -0
  37. package/dist/features/vehicle/data/dto/VehicleCategoryDTO.js +114 -0
  38. package/dist/features/vehicle/data/dto/VehicleDTO.d.ts +16 -8
  39. package/dist/features/vehicle/data/dto/VehicleDTO.js +43 -6
  40. package/dist/features/vehicle/data/dto/VehicleFilterDTO.d.ts +230 -0
  41. package/dist/features/vehicle/data/dto/VehicleFilterDTO.js +705 -0
  42. package/dist/features/vehicle/data/dto/VehicleFinanceDTO.d.ts +23 -12
  43. package/dist/features/vehicle/data/dto/VehicleFinanceDTO.js +41 -1
  44. package/dist/features/vehicle/data/dto/VehicleInspectionDTO.d.ts +147 -0
  45. package/dist/features/vehicle/data/dto/VehicleInspectionDTO.js +765 -0
  46. package/dist/features/vehicle/data/dto/VehicleMedia.d.ts +14 -0
  47. package/dist/features/vehicle/data/dto/VehicleMedia.js +29 -4
  48. package/dist/features/vehicle/data/dto/VehicleModelDTO.d.ts +5 -5
  49. package/dist/features/vehicle/data/dto/VehicleModelDTO.js +7 -7
  50. package/dist/features/vehicle/data/dto/VehicleTypeDTO.d.ts +1 -1
  51. package/dist/features/vehicle/data/dto/VehicleTypeDTO.js +1 -1
  52. package/dist/features/vehicle/data/dto/index.d.ts +5 -0
  53. package/dist/features/vehicle/data/dto/index.js +5 -0
  54. package/dist/features/vehicle/data/index.d.ts +0 -1
  55. package/dist/features/vehicle/data/index.js +1 -1
  56. package/dist/features/vehicle/data/models/VehicleFeature.d.ts +1 -0
  57. package/dist/features/vehicle/data/models/VehicleFeatureCategory.d.ts +1 -0
  58. package/dist/features/vehicle/data/models/VehicleFinance.d.ts +3 -0
  59. package/dist/features/vehicle/data/utilities.d.ts +32 -6
  60. package/dist/features/vehicle/data/utilities.js +1222 -19
  61. package/dist/global/utilities.d.ts +4 -0
  62. package/dist/global/utilities.js +3 -1
  63. package/package.json +2 -1
@@ -0,0 +1,286 @@
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.FinanceEligibilityRequestResponseDTO = exports.FinanceEligibilityRequestUpdateDTO = exports.FinanceEligibilityRequestCreateDTO = 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
+ var SalaryType;
16
+ (function (SalaryType) {
17
+ SalaryType["BANK_TRANSFER"] = "bank_transfer";
18
+ SalaryType["CASH"] = "cash";
19
+ SalaryType["OTHER"] = "other";
20
+ })(SalaryType = exports.SalaryType || (exports.SalaryType = {}));
21
+ var EmployeeCount;
22
+ (function (EmployeeCount) {
23
+ EmployeeCount["LESS_THAN_10"] = "less_than_10";
24
+ EmployeeCount["BETWEEN_10_50"] = "between_10_50";
25
+ EmployeeCount["MORE_THAN_50"] = "more_than_50";
26
+ })(EmployeeCount = exports.EmployeeCount || (exports.EmployeeCount = {}));
27
+ var YesNo;
28
+ (function (YesNo) {
29
+ YesNo["YES"] = "yes";
30
+ YesNo["NO"] = "no";
31
+ })(YesNo = exports.YesNo || (exports.YesNo = {}));
32
+ class FinanceEligibilityRequestCreateDTO {
33
+ validate() {
34
+ const errors = (0, class_validator_1.validateSync)(this);
35
+ return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
36
+ }
37
+ static fromPlain(plain) {
38
+ return (0, class_transformer_1.plainToClass)(FinanceEligibilityRequestCreateDTO, plain);
39
+ }
40
+ toPlain() {
41
+ return (0, class_transformer_1.classToPlain)(this);
42
+ }
43
+ }
44
+ __decorate([
45
+ (0, class_validator_1.IsUUID)(),
46
+ (0, class_validator_1.IsOptional)(),
47
+ __metadata("design:type", String)
48
+ ], FinanceEligibilityRequestCreateDTO.prototype, "vehicleId", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsUUID)(),
51
+ __metadata("design:type", String)
52
+ ], FinanceEligibilityRequestCreateDTO.prototype, "makeId", void 0);
53
+ __decorate([
54
+ (0, class_validator_1.IsUUID)(),
55
+ __metadata("design:type", String)
56
+ ], FinanceEligibilityRequestCreateDTO.prototype, "modelId", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsString)(),
59
+ (0, class_validator_1.MinLength)(2),
60
+ (0, class_validator_1.MaxLength)(50),
61
+ __metadata("design:type", String)
62
+ ], FinanceEligibilityRequestCreateDTO.prototype, "fullName", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.IsEmail)(),
65
+ __metadata("design:type", String)
66
+ ], FinanceEligibilityRequestCreateDTO.prototype, "email", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.IsString)(),
69
+ (0, class_validator_1.Matches)(/^[0-9+\s-]{8,}$/),
70
+ __metadata("design:type", String)
71
+ ], FinanceEligibilityRequestCreateDTO.prototype, "contactNumber", void 0);
72
+ __decorate([
73
+ (0, class_validator_1.IsNumber)(),
74
+ (0, class_validator_1.IsPositive)(),
75
+ __metadata("design:type", Number)
76
+ ], FinanceEligibilityRequestCreateDTO.prototype, "currentSalary", void 0);
77
+ __decorate([
78
+ (0, class_validator_1.IsEnum)(YesNo),
79
+ __metadata("design:type", String)
80
+ ], FinanceEligibilityRequestCreateDTO.prototype, "existingLoans", void 0);
81
+ __decorate([
82
+ (0, class_validator_1.IsEnum)(YesNo),
83
+ __metadata("design:type", String)
84
+ ], FinanceEligibilityRequestCreateDTO.prototype, "hasCreditScore", void 0);
85
+ __decorate([
86
+ (0, class_validator_1.IsEnum)(SalaryType),
87
+ __metadata("design:type", String)
88
+ ], FinanceEligibilityRequestCreateDTO.prototype, "salaryType", void 0);
89
+ __decorate([
90
+ (0, class_validator_1.IsEnum)(YesNo),
91
+ __metadata("design:type", String)
92
+ ], FinanceEligibilityRequestCreateDTO.prototype, "previousDisputes", void 0);
93
+ __decorate([
94
+ (0, class_validator_1.IsEnum)(EmployeeCount),
95
+ __metadata("design:type", String)
96
+ ], FinanceEligibilityRequestCreateDTO.prototype, "employeeCount", void 0);
97
+ __decorate([
98
+ (0, class_validator_1.IsEnum)(YesNo),
99
+ __metadata("design:type", String)
100
+ ], FinanceEligibilityRequestCreateDTO.prototype, "hasLandline", void 0);
101
+ __decorate([
102
+ (0, class_validator_1.IsOptional)(),
103
+ (0, class_validator_1.IsString)({ each: true }),
104
+ __metadata("design:type", Array)
105
+ ], FinanceEligibilityRequestCreateDTO.prototype, "documents", void 0);
106
+ exports.FinanceEligibilityRequestCreateDTO = FinanceEligibilityRequestCreateDTO;
107
+ class FinanceEligibilityRequestUpdateDTO {
108
+ validate() {
109
+ const errors = (0, class_validator_1.validateSync)(this);
110
+ return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
111
+ }
112
+ static fromPlain(plain) {
113
+ return (0, class_transformer_1.plainToClass)(FinanceEligibilityRequestUpdateDTO, plain);
114
+ }
115
+ toPlain() {
116
+ return (0, class_transformer_1.classToPlain)(this);
117
+ }
118
+ }
119
+ __decorate([
120
+ (0, class_validator_1.IsOptional)(),
121
+ (0, class_validator_1.IsUUID)(),
122
+ __metadata("design:type", String)
123
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "vehicleId", void 0);
124
+ __decorate([
125
+ (0, class_validator_1.IsOptional)(),
126
+ (0, class_validator_1.IsUUID)(),
127
+ __metadata("design:type", String)
128
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "makeId", void 0);
129
+ __decorate([
130
+ (0, class_validator_1.IsOptional)(),
131
+ (0, class_validator_1.IsUUID)(),
132
+ __metadata("design:type", String)
133
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "modelId", void 0);
134
+ __decorate([
135
+ (0, class_validator_1.IsOptional)(),
136
+ (0, class_validator_1.IsString)(),
137
+ (0, class_validator_1.MinLength)(2),
138
+ (0, class_validator_1.MaxLength)(50),
139
+ __metadata("design:type", String)
140
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "fullName", void 0);
141
+ __decorate([
142
+ (0, class_validator_1.IsOptional)(),
143
+ (0, class_validator_1.IsEmail)(),
144
+ __metadata("design:type", String)
145
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "email", void 0);
146
+ __decorate([
147
+ (0, class_validator_1.IsOptional)(),
148
+ (0, class_validator_1.IsString)(),
149
+ (0, class_validator_1.Matches)(/^[0-9+\s-]{8,}$/),
150
+ __metadata("design:type", String)
151
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "contactNumber", void 0);
152
+ __decorate([
153
+ (0, class_validator_1.IsOptional)(),
154
+ (0, class_validator_1.IsNumber)(),
155
+ (0, class_validator_1.IsPositive)(),
156
+ __metadata("design:type", Number)
157
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "currentSalary", void 0);
158
+ __decorate([
159
+ (0, class_validator_1.IsOptional)(),
160
+ (0, class_validator_1.IsEnum)(YesNo),
161
+ __metadata("design:type", String)
162
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "existingLoans", void 0);
163
+ __decorate([
164
+ (0, class_validator_1.IsOptional)(),
165
+ (0, class_validator_1.IsEnum)(YesNo),
166
+ __metadata("design:type", String)
167
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "hasCreditScore", void 0);
168
+ __decorate([
169
+ (0, class_validator_1.IsOptional)(),
170
+ (0, class_validator_1.IsEnum)(SalaryType),
171
+ __metadata("design:type", String)
172
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "salaryType", void 0);
173
+ __decorate([
174
+ (0, class_validator_1.IsOptional)(),
175
+ (0, class_validator_1.IsEnum)(YesNo),
176
+ __metadata("design:type", String)
177
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "previousDisputes", void 0);
178
+ __decorate([
179
+ (0, class_validator_1.IsOptional)(),
180
+ (0, class_validator_1.IsEnum)(EmployeeCount),
181
+ __metadata("design:type", String)
182
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "employeeCount", void 0);
183
+ __decorate([
184
+ (0, class_validator_1.IsOptional)(),
185
+ (0, class_validator_1.IsEnum)(YesNo),
186
+ __metadata("design:type", String)
187
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "hasLandline", void 0);
188
+ __decorate([
189
+ (0, class_validator_1.IsOptional)(),
190
+ (0, class_validator_1.IsString)({ each: true }),
191
+ __metadata("design:type", Array)
192
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "documents", void 0);
193
+ __decorate([
194
+ (0, class_validator_1.IsOptional)(),
195
+ (0, class_validator_1.IsEnum)(["pending", "approved", "rejected"]),
196
+ __metadata("design:type", String)
197
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "status", void 0);
198
+ __decorate([
199
+ (0, class_validator_1.IsOptional)(),
200
+ (0, class_validator_1.IsString)(),
201
+ __metadata("design:type", String)
202
+ ], FinanceEligibilityRequestUpdateDTO.prototype, "rejectionReason", void 0);
203
+ exports.FinanceEligibilityRequestUpdateDTO = FinanceEligibilityRequestUpdateDTO;
204
+ class FinanceEligibilityRequestResponseDTO {
205
+ validate() {
206
+ const errors = (0, class_validator_1.validateSync)(this);
207
+ return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
208
+ }
209
+ static fromPlain(plain) {
210
+ return (0, class_transformer_1.plainToClass)(FinanceEligibilityRequestResponseDTO, plain);
211
+ }
212
+ toPlain() {
213
+ return (0, class_transformer_1.classToPlain)(this);
214
+ }
215
+ }
216
+ __decorate([
217
+ (0, class_validator_1.IsString)(),
218
+ __metadata("design:type", String)
219
+ ], FinanceEligibilityRequestResponseDTO.prototype, "id", void 0);
220
+ __decorate([
221
+ (0, class_validator_1.IsUUID)(),
222
+ (0, class_validator_1.IsOptional)(),
223
+ __metadata("design:type", String)
224
+ ], FinanceEligibilityRequestResponseDTO.prototype, "vehicleId", void 0);
225
+ __decorate([
226
+ (0, class_validator_1.IsUUID)(),
227
+ __metadata("design:type", String)
228
+ ], FinanceEligibilityRequestResponseDTO.prototype, "makeId", void 0);
229
+ __decorate([
230
+ (0, class_validator_1.IsUUID)(),
231
+ __metadata("design:type", String)
232
+ ], FinanceEligibilityRequestResponseDTO.prototype, "modelId", void 0);
233
+ __decorate([
234
+ (0, class_validator_1.IsString)(),
235
+ __metadata("design:type", String)
236
+ ], FinanceEligibilityRequestResponseDTO.prototype, "fullName", void 0);
237
+ __decorate([
238
+ (0, class_validator_1.IsEmail)(),
239
+ __metadata("design:type", String)
240
+ ], FinanceEligibilityRequestResponseDTO.prototype, "email", void 0);
241
+ __decorate([
242
+ (0, class_validator_1.IsString)(),
243
+ __metadata("design:type", String)
244
+ ], FinanceEligibilityRequestResponseDTO.prototype, "contactNumber", void 0);
245
+ __decorate([
246
+ (0, class_validator_1.IsNumber)(),
247
+ __metadata("design:type", Number)
248
+ ], FinanceEligibilityRequestResponseDTO.prototype, "currentSalary", void 0);
249
+ __decorate([
250
+ (0, class_validator_1.IsEnum)(YesNo),
251
+ __metadata("design:type", String)
252
+ ], FinanceEligibilityRequestResponseDTO.prototype, "existingLoans", void 0);
253
+ __decorate([
254
+ (0, class_validator_1.IsEnum)(YesNo),
255
+ __metadata("design:type", String)
256
+ ], FinanceEligibilityRequestResponseDTO.prototype, "hasCreditScore", void 0);
257
+ __decorate([
258
+ (0, class_validator_1.IsEnum)(SalaryType),
259
+ __metadata("design:type", String)
260
+ ], FinanceEligibilityRequestResponseDTO.prototype, "salaryType", void 0);
261
+ __decorate([
262
+ (0, class_validator_1.IsEnum)(YesNo),
263
+ __metadata("design:type", String)
264
+ ], FinanceEligibilityRequestResponseDTO.prototype, "previousDisputes", void 0);
265
+ __decorate([
266
+ (0, class_validator_1.IsEnum)(EmployeeCount),
267
+ __metadata("design:type", String)
268
+ ], FinanceEligibilityRequestResponseDTO.prototype, "employeeCount", void 0);
269
+ __decorate([
270
+ (0, class_validator_1.IsEnum)(YesNo),
271
+ __metadata("design:type", String)
272
+ ], FinanceEligibilityRequestResponseDTO.prototype, "hasLandline", void 0);
273
+ __decorate([
274
+ (0, class_validator_1.IsString)({ each: true }),
275
+ __metadata("design:type", Array)
276
+ ], FinanceEligibilityRequestResponseDTO.prototype, "documents", void 0);
277
+ __decorate([
278
+ (0, class_validator_1.IsEnum)(["pending", "approved", "rejected"]),
279
+ __metadata("design:type", String)
280
+ ], FinanceEligibilityRequestResponseDTO.prototype, "status", void 0);
281
+ __decorate([
282
+ (0, class_validator_1.IsOptional)(),
283
+ (0, class_validator_1.IsString)(),
284
+ __metadata("design:type", String)
285
+ ], FinanceEligibilityRequestResponseDTO.prototype, "rejectionReason", void 0);
286
+ exports.FinanceEligibilityRequestResponseDTO = FinanceEligibilityRequestResponseDTO;
@@ -0,0 +1 @@
1
+ export * from "./dto/FinanceEligibilityRequestDTO";
@@ -0,0 +1,17 @@
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);
@@ -0,0 +1 @@
1
+ export * from "./data";
@@ -0,0 +1,17 @@
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);
@@ -1,6 +1,8 @@
1
1
  export * from "./blog";
2
- export * from './newsletter';
3
- export * from './sales-team';
4
- export * from './showroom-visit';
5
- export * from './test-drive-request';
6
- export * from './vehicle';
2
+ export * from "./newsletter";
3
+ export * from "./sales-team";
4
+ export * from "./showroom-visit";
5
+ export * from "./test-drive-request";
6
+ export * from "./vehicle";
7
+ export * from "./sell-call-request";
8
+ export * from "./finance-eligibilty-request";
@@ -20,3 +20,5 @@ __exportStar(require("./sales-team"), exports);
20
20
  __exportStar(require("./showroom-visit"), exports);
21
21
  __exportStar(require("./test-drive-request"), exports);
22
22
  __exportStar(require("./vehicle"), exports);
23
+ __exportStar(require("./sell-call-request"), exports);
24
+ __exportStar(require("./finance-eligibilty-request"), exports);
@@ -0,0 +1,134 @@
1
+ export declare enum RequestType {
2
+ SELL = "sell",
3
+ TRADE_IN = "trade_in"
4
+ }
5
+ export declare class SellCarRequestCreateDTO {
6
+ name: string;
7
+ phone: string;
8
+ email?: string;
9
+ city: string;
10
+ requestType: RequestType;
11
+ makeId: string;
12
+ modelId: string;
13
+ year: number;
14
+ mileage: number;
15
+ expectedSellingPrice?: number;
16
+ vehicleOptions?: string;
17
+ specification?: string;
18
+ images?: string[];
19
+ desiredVehicleId?: string;
20
+ color?: string;
21
+ transmission?: string;
22
+ condition?: string;
23
+ fuelType?: string;
24
+ engineCapacity?: string;
25
+ description?: string;
26
+ additionalDetails?: {
27
+ serviceHistory?: boolean;
28
+ numberOfOwners?: number;
29
+ accidentHistory?: boolean;
30
+ modifications?: string[];
31
+ lastServiceDate?: Date;
32
+ warrantyValid?: boolean;
33
+ tradeIn?: boolean;
34
+ inspectionDate?: Date;
35
+ inspectionLocation?: string;
36
+ finalTradeInOffer?: number;
37
+ [key: string]: any;
38
+ };
39
+ validate(): string[];
40
+ static fromPlain(plain: Record<string, unknown>): SellCarRequestCreateDTO;
41
+ toPlain(): Record<string, unknown>;
42
+ }
43
+ export declare class SellCarRequestUpdateDTO {
44
+ name?: string;
45
+ phone?: string;
46
+ email?: string;
47
+ city?: string;
48
+ requestType?: RequestType;
49
+ makeId?: string;
50
+ modelId?: string;
51
+ year?: number;
52
+ mileage?: number;
53
+ expectedSellingPrice?: number;
54
+ vehicleOptions?: string;
55
+ specification?: string;
56
+ condition?: string;
57
+ images?: string[];
58
+ desiredVehicleId?: string;
59
+ color?: string;
60
+ transmission?: string;
61
+ fuelType?: string;
62
+ engineCapacity?: string;
63
+ description?: string;
64
+ status?: "pending" | "inspection_scheduled" | "inspected" | "valued" | "approved" | "rejected" | "completed";
65
+ additionalDetails?: {
66
+ serviceHistory?: boolean;
67
+ numberOfOwners?: number;
68
+ accidentHistory?: boolean;
69
+ modifications?: string[];
70
+ lastServiceDate?: Date;
71
+ warrantyValid?: boolean;
72
+ tradeIn?: boolean;
73
+ inspectionDate?: Date;
74
+ inspectionLocation?: string;
75
+ finalTradeInOffer?: number;
76
+ [key: string]: any;
77
+ };
78
+ validate(): string[];
79
+ static fromPlain(plain: Record<string, unknown>): SellCarRequestUpdateDTO;
80
+ toPlain(): Record<string, unknown>;
81
+ }
82
+ export declare class SellCarRequestResponseDTO {
83
+ id: string;
84
+ name: string;
85
+ phone: string;
86
+ email?: string;
87
+ city: string;
88
+ requestType: RequestType;
89
+ make?: {
90
+ id: string;
91
+ name: string;
92
+ };
93
+ model?: {
94
+ id: string;
95
+ name: string;
96
+ };
97
+ year?: number;
98
+ mileage?: number;
99
+ expectedSellingPrice?: number;
100
+ vehicleOptions?: string;
101
+ specification?: string;
102
+ images?: string[];
103
+ desiredVehicle?: {
104
+ id: string;
105
+ make: string;
106
+ model: string;
107
+ year: number;
108
+ };
109
+ color?: string;
110
+ transmission?: string;
111
+ condition?: string;
112
+ fuelType?: string;
113
+ engineCapacity?: string;
114
+ description?: string;
115
+ status: "pending" | "inspection_scheduled" | "inspected" | "valued" | "approved" | "rejected" | "completed";
116
+ additionalDetails?: {
117
+ serviceHistory?: boolean;
118
+ numberOfOwners?: number;
119
+ accidentHistory?: boolean;
120
+ modifications?: string[];
121
+ lastServiceDate?: Date;
122
+ warrantyValid?: boolean;
123
+ tradeIn?: boolean;
124
+ inspectionDate?: Date;
125
+ inspectionLocation?: string;
126
+ finalTradeInOffer?: number;
127
+ [key: string]: any;
128
+ };
129
+ createdAt: Date;
130
+ updatedAt: Date;
131
+ validate(): string[];
132
+ static fromPlain(plain: Record<string, unknown>): SellCarRequestResponseDTO;
133
+ toPlain(): Record<string, unknown>;
134
+ }