@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,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);
|
|
@@ -1,237 +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.ShowRoomVisitFetchDTO = exports.ShowRoomVisitFilterDTO = exports.ShowRoomVisitOptionsDTO = exports.ShowroomVisitResponseDTO = exports.ShowroomVisitUpdateDTO = exports.ShowroomVisitCreateDTO = exports.IsTimeConstraint = 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 enums_1 = require("../enums");
|
|
17
|
-
// Custom time format validator
|
|
18
|
-
let IsTimeConstraint = class IsTimeConstraint {
|
|
19
|
-
validate(time, args) {
|
|
20
|
-
// Regex for HH:MM 24-hour time format
|
|
21
|
-
return /^([01]\d|2[0-3]):([0-5]\d)$/.test(time);
|
|
22
|
-
}
|
|
23
|
-
defaultMessage(args) {
|
|
24
|
-
return "Time ($value) is not a valid 24-hour time format (HH:MM)";
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
IsTimeConstraint = __decorate([
|
|
28
|
-
(0, class_validator_1.ValidatorConstraint)({ name: "isTime", async: false })
|
|
29
|
-
], IsTimeConstraint);
|
|
30
|
-
exports.IsTimeConstraint = IsTimeConstraint;
|
|
31
|
-
class ShowroomVisitCreateDTO {
|
|
32
|
-
validate() {
|
|
33
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
34
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
35
|
-
}
|
|
36
|
-
static fromPlain(plain) {
|
|
37
|
-
return (0, class_transformer_1.plainToClass)(ShowroomVisitCreateDTO, plain);
|
|
38
|
-
}
|
|
39
|
-
toPlain() {
|
|
40
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.IsString)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], ShowroomVisitCreateDTO.prototype, "Visitor_FullName", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsString)(),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], ShowroomVisitCreateDTO.prototype, "Visitor_Mobile", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, class_validator_1.IsDateString)(),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], ShowroomVisitCreateDTO.prototype, "Visit_Date", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_validator_1.Validate)(IsTimeConstraint),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], ShowroomVisitCreateDTO.prototype, "Visit_Time", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_validator_1.IsString)(),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], ShowroomVisitCreateDTO.prototype, "Visit_Interest", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsArray)(),
|
|
65
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
66
|
-
(0, class_validator_1.IsOptional)(),
|
|
67
|
-
__metadata("design:type", Array)
|
|
68
|
-
], ShowroomVisitCreateDTO.prototype, "Interested_Cars", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsOptional)(),
|
|
71
|
-
(0, class_validator_1.IsUUID)() // Ensure that AssignedAgentId is a valid UUID
|
|
72
|
-
,
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], ShowroomVisitCreateDTO.prototype, "AssignedAgentId", void 0);
|
|
75
|
-
exports.ShowroomVisitCreateDTO = ShowroomVisitCreateDTO;
|
|
76
|
-
class ShowroomVisitUpdateDTO {
|
|
77
|
-
validate() {
|
|
78
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
79
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
80
|
-
}
|
|
81
|
-
static fromPlain(plain) {
|
|
82
|
-
return (0, class_transformer_1.plainToClass)(ShowroomVisitUpdateDTO, plain);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, class_validator_1.IsOptional)(),
|
|
87
|
-
(0, class_validator_1.IsString)(),
|
|
88
|
-
__metadata("design:type", String)
|
|
89
|
-
], ShowroomVisitUpdateDTO.prototype, "Visitor_FullName", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, class_validator_1.IsOptional)(),
|
|
92
|
-
(0, class_validator_1.IsString)(),
|
|
93
|
-
__metadata("design:type", String)
|
|
94
|
-
], ShowroomVisitUpdateDTO.prototype, "Visitor_Mobile", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, class_validator_1.IsOptional)(),
|
|
97
|
-
(0, class_validator_1.IsDateString)(),
|
|
98
|
-
__metadata("design:type", String)
|
|
99
|
-
], ShowroomVisitUpdateDTO.prototype, "Visit_Date", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, class_validator_1.IsOptional)(),
|
|
102
|
-
(0, class_validator_1.Validate)(IsTimeConstraint),
|
|
103
|
-
__metadata("design:type", String)
|
|
104
|
-
], ShowroomVisitUpdateDTO.prototype, "Visit_Time", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, class_validator_1.IsOptional)(),
|
|
107
|
-
(0, class_validator_1.IsString)(),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], ShowroomVisitUpdateDTO.prototype, "Visit_Interest", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
(0, class_validator_1.IsOptional)(),
|
|
112
|
-
(0, class_validator_1.IsArray)(),
|
|
113
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
114
|
-
__metadata("design:type", Array)
|
|
115
|
-
], ShowroomVisitUpdateDTO.prototype, "Interested_Cars", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, class_validator_1.IsOptional)(),
|
|
118
|
-
(0, class_validator_1.IsUUID)() // Ensure that AssignedAgentId is a valid UUID
|
|
119
|
-
,
|
|
120
|
-
__metadata("design:type", String)
|
|
121
|
-
], ShowroomVisitUpdateDTO.prototype, "AssignedAgentId", void 0);
|
|
122
|
-
exports.ShowroomVisitUpdateDTO = ShowroomVisitUpdateDTO;
|
|
123
|
-
class ShowroomVisitResponseDTO {
|
|
124
|
-
validate() {
|
|
125
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
126
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
127
|
-
}
|
|
128
|
-
static fromPlain(plain) {
|
|
129
|
-
return (0, class_transformer_1.plainToClass)(ShowroomVisitResponseDTO, plain);
|
|
130
|
-
}
|
|
131
|
-
toPlain() {
|
|
132
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
__decorate([
|
|
136
|
-
(0, class_validator_1.IsUUID)(),
|
|
137
|
-
__metadata("design:type", String)
|
|
138
|
-
], ShowroomVisitResponseDTO.prototype, "id", void 0);
|
|
139
|
-
__decorate([
|
|
140
|
-
(0, class_validator_1.IsString)(),
|
|
141
|
-
__metadata("design:type", String)
|
|
142
|
-
], ShowroomVisitResponseDTO.prototype, "Visitor_FullName", void 0);
|
|
143
|
-
__decorate([
|
|
144
|
-
(0, class_validator_1.IsString)(),
|
|
145
|
-
__metadata("design:type", String)
|
|
146
|
-
], ShowroomVisitResponseDTO.prototype, "Visitor_Mobile", void 0);
|
|
147
|
-
__decorate([
|
|
148
|
-
(0, class_validator_1.IsDateString)(),
|
|
149
|
-
__metadata("design:type", String)
|
|
150
|
-
], ShowroomVisitResponseDTO.prototype, "Visit_Date", void 0);
|
|
151
|
-
__decorate([
|
|
152
|
-
(0, class_validator_1.Validate)(IsTimeConstraint),
|
|
153
|
-
__metadata("design:type", String)
|
|
154
|
-
], ShowroomVisitResponseDTO.prototype, "Visit_Time", void 0);
|
|
155
|
-
__decorate([
|
|
156
|
-
(0, class_validator_1.IsString)(),
|
|
157
|
-
__metadata("design:type", String)
|
|
158
|
-
], ShowroomVisitResponseDTO.prototype, "Visit_Interest", void 0);
|
|
159
|
-
__decorate([
|
|
160
|
-
(0, class_validator_1.IsArray)(),
|
|
161
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
162
|
-
(0, class_validator_1.IsOptional)(),
|
|
163
|
-
__metadata("design:type", Array)
|
|
164
|
-
], ShowroomVisitResponseDTO.prototype, "Interested_Cars", void 0);
|
|
165
|
-
__decorate([
|
|
166
|
-
(0, class_validator_1.IsOptional)(),
|
|
167
|
-
(0, class_validator_1.IsUUID)(),
|
|
168
|
-
__metadata("design:type", String)
|
|
169
|
-
], ShowroomVisitResponseDTO.prototype, "AssignedAgentId", void 0);
|
|
170
|
-
__decorate([
|
|
171
|
-
(0, class_validator_1.IsOptional)(),
|
|
172
|
-
(0, class_validator_1.IsString)(),
|
|
173
|
-
__metadata("design:type", String)
|
|
174
|
-
], ShowroomVisitResponseDTO.prototype, "AssignedAgentName", void 0);
|
|
175
|
-
__decorate([
|
|
176
|
-
(0, class_validator_1.IsBoolean)(),
|
|
177
|
-
(0, class_validator_1.IsOptional)(),
|
|
178
|
-
__metadata("design:type", Boolean)
|
|
179
|
-
], ShowroomVisitResponseDTO.prototype, "IsCompleted", void 0);
|
|
180
|
-
__decorate([
|
|
181
|
-
(0, class_validator_1.IsString)(),
|
|
182
|
-
(0, class_validator_1.IsOptional)(),
|
|
183
|
-
__metadata("design:type", String)
|
|
184
|
-
], ShowroomVisitResponseDTO.prototype, "VisitNotes", void 0);
|
|
185
|
-
__decorate([
|
|
186
|
-
(0, class_validator_1.IsDateString)(),
|
|
187
|
-
__metadata("design:type", String)
|
|
188
|
-
], ShowroomVisitResponseDTO.prototype, "CreatedAt", void 0);
|
|
189
|
-
__decorate([
|
|
190
|
-
(0, class_validator_1.IsDateString)(),
|
|
191
|
-
__metadata("design:type", String)
|
|
192
|
-
], ShowroomVisitResponseDTO.prototype, "UpdatedAt", void 0);
|
|
193
|
-
exports.ShowroomVisitResponseDTO = ShowroomVisitResponseDTO;
|
|
194
|
-
class ShowRoomVisitOptionsDTO extends global_1.PaginationOptions {
|
|
195
|
-
static fromPlain(plain) {
|
|
196
|
-
return (0, class_transformer_1.plainToClass)(ShowRoomVisitOptionsDTO, plain);
|
|
197
|
-
}
|
|
198
|
-
toPlain() {
|
|
199
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
exports.ShowRoomVisitOptionsDTO = ShowRoomVisitOptionsDTO;
|
|
203
|
-
class ShowRoomVisitFilterDTO {
|
|
204
|
-
validate() {
|
|
205
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
206
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
207
|
-
}
|
|
208
|
-
static fromPlain(plain) {
|
|
209
|
-
return (0, class_transformer_1.plainToClass)(ShowRoomVisitFilterDTO, plain);
|
|
210
|
-
}
|
|
211
|
-
toPlain() {
|
|
212
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
__decorate([
|
|
216
|
-
(0, class_validator_1.IsOptional)(),
|
|
217
|
-
__metadata("design:type", String)
|
|
218
|
-
], ShowRoomVisitFilterDTO.prototype, "search", void 0);
|
|
219
|
-
__decorate([
|
|
220
|
-
(0, class_validator_1.IsUUID)(),
|
|
221
|
-
(0, class_validator_1.IsOptional)(),
|
|
222
|
-
__metadata("design:type", String)
|
|
223
|
-
], ShowRoomVisitFilterDTO.prototype, "leadId", void 0);
|
|
224
|
-
exports.ShowRoomVisitFilterDTO = ShowRoomVisitFilterDTO;
|
|
225
|
-
class ShowRoomVisitFetchDTO {
|
|
226
|
-
validate() {
|
|
227
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
228
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
229
|
-
}
|
|
230
|
-
static fromPlain(plain) {
|
|
231
|
-
return (0, class_transformer_1.plainToClass)(ShowRoomVisitFetchDTO, plain);
|
|
232
|
-
}
|
|
233
|
-
toPlain() {
|
|
234
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
exports.ShowRoomVisitFetchDTO = ShowRoomVisitFetchDTO;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VisitPurpose = exports.VisitStatus = void 0;
|
|
4
|
-
// Optional: Create an enum for visit status if needed
|
|
5
|
-
var VisitStatus;
|
|
6
|
-
(function (VisitStatus) {
|
|
7
|
-
VisitStatus["SCHEDULED"] = "SCHEDULED";
|
|
8
|
-
VisitStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
9
|
-
VisitStatus["COMPLETED"] = "COMPLETED";
|
|
10
|
-
VisitStatus["CANCELLED"] = "CANCELLED";
|
|
11
|
-
VisitStatus["NO_SHOW"] = "NO_SHOW";
|
|
12
|
-
})(VisitStatus = exports.VisitStatus || (exports.VisitStatus = {}));
|
|
13
|
-
var VisitPurpose;
|
|
14
|
-
(function (VisitPurpose) {
|
|
15
|
-
VisitPurpose["CAR_VIEWING"] = "CAR_VIEWING";
|
|
16
|
-
VisitPurpose["SELL_MY_CAR"] = "SELL_MY_CAR";
|
|
17
|
-
})(VisitPurpose = exports.VisitPurpose || (exports.VisitPurpose = {}));
|
|
@@ -1,18 +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/ShowroomVisit"), exports);
|
|
18
|
-
__exportStar(require("./enums/index"), 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);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("../../../core");
|
|
4
|
-
const getTestDriveVehicles = async () => {
|
|
5
|
-
const response = await (0, core_1.apiRequest)(core_1.API_ENDPOINTS.TestDrive.getAll.toString());
|
|
6
|
-
return response.data.result;
|
|
7
|
-
};
|
|
8
|
-
exports.default = getTestDriveVehicles;
|
|
@@ -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("./GetTestDriveVehicles"), exports);
|
|
@@ -1,179 +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.TestDriveRequestUpdateDTO = exports.TestDriveRequestCreateDTO = exports.TestDriveRequestGetDTO = exports.TestDriveRequestGetDTOOptions = void 0;
|
|
13
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const class_transformer_1 = require("class-transformer");
|
|
16
|
-
const BaseDTO_1 = require("../../../vehicle/data/dto/BaseDTO");
|
|
17
|
-
const VehicleDTO_1 = require("../../../vehicle/data/dto/VehicleDTO");
|
|
18
|
-
const enums_1 = require("../enums");
|
|
19
|
-
class TestDriveRequestGetDTOOptions {
|
|
20
|
-
}
|
|
21
|
-
exports.TestDriveRequestGetDTOOptions = TestDriveRequestGetDTOOptions;
|
|
22
|
-
class TestDriveRequestGetDTO {
|
|
23
|
-
validate() {
|
|
24
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
25
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
26
|
-
}
|
|
27
|
-
static fromPlain(plain) {
|
|
28
|
-
return (0, class_transformer_1.plainToClass)(TestDriveRequestGetDTO, plain);
|
|
29
|
-
}
|
|
30
|
-
static toPlain(entity) {
|
|
31
|
-
return (0, class_transformer_1.instanceToPlain)(entity);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.TestDriveRequestGetDTO = TestDriveRequestGetDTO;
|
|
35
|
-
class TestDriveRequestCreateDTO {
|
|
36
|
-
validate() {
|
|
37
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
38
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
39
|
-
}
|
|
40
|
-
constructor(data) {
|
|
41
|
-
Object.assign(this, data);
|
|
42
|
-
if (!this.status)
|
|
43
|
-
this.status = enums_1.TestDriveRequestStatus.NOT_CONTACTED;
|
|
44
|
-
if (!this.leadThrough)
|
|
45
|
-
this.leadThrough = enums_1.LeadThrough.WEBSITE;
|
|
46
|
-
}
|
|
47
|
-
static fromPlain(plain) {
|
|
48
|
-
const dto = (0, class_transformer_1.plainToClass)(TestDriveRequestCreateDTO, plain);
|
|
49
|
-
if (!dto.status)
|
|
50
|
-
dto.status = enums_1.TestDriveRequestStatus.NOT_CONTACTED;
|
|
51
|
-
if (!dto.leadThrough)
|
|
52
|
-
dto.leadThrough = enums_1.LeadThrough.WEBSITE;
|
|
53
|
-
return dto;
|
|
54
|
-
}
|
|
55
|
-
toPlain() {
|
|
56
|
-
return (0, class_transformer_1.instanceToPlain)(this);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
61
|
-
(0, class_validator_1.ValidateNested)(),
|
|
62
|
-
(0, class_transformer_1.Type)(() => VehicleDTO_1.DynamicVehicleDTO),
|
|
63
|
-
__metadata("design:type", VehicleDTO_1.DynamicVehicleDTO)
|
|
64
|
-
], TestDriveRequestCreateDTO.prototype, "vehicle", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
67
|
-
(0, class_validator_1.IsString)(),
|
|
68
|
-
(0, class_validator_1.MinLength)(2),
|
|
69
|
-
(0, class_validator_1.MaxLength)(255),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], TestDriveRequestCreateDTO.prototype, "testerName", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
74
|
-
(0, class_validator_1.IsString)(),
|
|
75
|
-
(0, class_validator_1.MinLength)(8),
|
|
76
|
-
(0, class_validator_1.MaxLength)(20),
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], TestDriveRequestCreateDTO.prototype, "testerMobile", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, class_validator_1.IsOptional)(),
|
|
81
|
-
(0, class_validator_1.IsString)(),
|
|
82
|
-
(0, class_validator_1.IsEmail)(),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], TestDriveRequestCreateDTO.prototype, "testerEmail", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
87
|
-
(0, class_validator_1.IsDateString)(),
|
|
88
|
-
__metadata("design:type", String)
|
|
89
|
-
], TestDriveRequestCreateDTO.prototype, "requestedDate", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, class_validator_1.IsOptional)(),
|
|
92
|
-
(0, class_validator_1.IsDateString)(),
|
|
93
|
-
__metadata("design:type", String)
|
|
94
|
-
], TestDriveRequestCreateDTO.prototype, "testDriveDate", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, class_validator_1.IsOptional)(),
|
|
97
|
-
(0, class_validator_1.IsEnum)(enums_1.TestDriveRequestStatus),
|
|
98
|
-
__metadata("design:type", Number)
|
|
99
|
-
], TestDriveRequestCreateDTO.prototype, "status", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, class_validator_1.IsOptional)(),
|
|
102
|
-
(0, class_validator_1.IsEnum)(enums_1.LeadThrough),
|
|
103
|
-
__metadata("design:type", String)
|
|
104
|
-
], TestDriveRequestCreateDTO.prototype, "leadThrough", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, class_validator_1.IsOptional)(),
|
|
107
|
-
(0, class_validator_1.IsString)(),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], TestDriveRequestCreateDTO.prototype, "comments", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
(0, class_validator_1.IsOptional)(),
|
|
112
|
-
(0, class_validator_1.IsString)(),
|
|
113
|
-
__metadata("design:type", String)
|
|
114
|
-
], TestDriveRequestCreateDTO.prototype, "createdById", void 0);
|
|
115
|
-
exports.TestDriveRequestCreateDTO = TestDriveRequestCreateDTO;
|
|
116
|
-
class TestDriveRequestUpdateDTO extends BaseDTO_1.BaseUpdateDTO {
|
|
117
|
-
validate() {
|
|
118
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
119
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
120
|
-
}
|
|
121
|
-
static fromPlain(plain) {
|
|
122
|
-
return (0, class_transformer_1.plainToClass)(TestDriveRequestUpdateDTO, plain);
|
|
123
|
-
}
|
|
124
|
-
toPlain() {
|
|
125
|
-
return (0, class_transformer_1.instanceToPlain)(this);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, class_validator_1.IsOptional)(),
|
|
130
|
-
(0, class_validator_1.ValidateNested)(),
|
|
131
|
-
(0, class_transformer_1.Type)(() => VehicleDTO_1.DynamicVehicleDTO),
|
|
132
|
-
__metadata("design:type", VehicleDTO_1.DynamicVehicleDTO)
|
|
133
|
-
], TestDriveRequestUpdateDTO.prototype, "vehicle", 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)(255),
|
|
139
|
-
__metadata("design:type", String)
|
|
140
|
-
], TestDriveRequestUpdateDTO.prototype, "testerName", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, class_validator_1.IsOptional)(),
|
|
143
|
-
(0, class_validator_1.IsString)(),
|
|
144
|
-
(0, class_validator_1.MinLength)(8),
|
|
145
|
-
(0, class_validator_1.MaxLength)(20),
|
|
146
|
-
__metadata("design:type", String)
|
|
147
|
-
], TestDriveRequestUpdateDTO.prototype, "testerMobile", void 0);
|
|
148
|
-
__decorate([
|
|
149
|
-
(0, class_validator_1.IsOptional)(),
|
|
150
|
-
(0, class_validator_1.IsString)(),
|
|
151
|
-
(0, class_validator_1.IsEmail)(),
|
|
152
|
-
__metadata("design:type", String)
|
|
153
|
-
], TestDriveRequestUpdateDTO.prototype, "testerEmail", void 0);
|
|
154
|
-
__decorate([
|
|
155
|
-
(0, class_validator_1.IsOptional)(),
|
|
156
|
-
(0, class_validator_1.IsDate)(),
|
|
157
|
-
__metadata("design:type", Date)
|
|
158
|
-
], TestDriveRequestUpdateDTO.prototype, "requestedDate", void 0);
|
|
159
|
-
__decorate([
|
|
160
|
-
(0, class_validator_1.IsOptional)(),
|
|
161
|
-
(0, class_validator_1.IsDate)(),
|
|
162
|
-
__metadata("design:type", Date)
|
|
163
|
-
], TestDriveRequestUpdateDTO.prototype, "testDriveDate", void 0);
|
|
164
|
-
__decorate([
|
|
165
|
-
(0, class_validator_1.IsOptional)(),
|
|
166
|
-
(0, class_validator_1.IsEnum)(enums_1.TestDriveRequestStatus),
|
|
167
|
-
__metadata("design:type", Number)
|
|
168
|
-
], TestDriveRequestUpdateDTO.prototype, "status", void 0);
|
|
169
|
-
__decorate([
|
|
170
|
-
(0, class_validator_1.IsOptional)(),
|
|
171
|
-
(0, class_validator_1.IsEnum)(enums_1.LeadThrough),
|
|
172
|
-
__metadata("design:type", String)
|
|
173
|
-
], TestDriveRequestUpdateDTO.prototype, "leadThrough", void 0);
|
|
174
|
-
__decorate([
|
|
175
|
-
(0, class_validator_1.IsOptional)(),
|
|
176
|
-
(0, class_validator_1.IsString)(),
|
|
177
|
-
__metadata("design:type", String)
|
|
178
|
-
], TestDriveRequestUpdateDTO.prototype, "comments", void 0);
|
|
179
|
-
exports.TestDriveRequestUpdateDTO = TestDriveRequestUpdateDTO;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestDriveRequestStatus = exports.LeadThrough = void 0;
|
|
4
|
-
var LeadThrough;
|
|
5
|
-
(function (LeadThrough) {
|
|
6
|
-
LeadThrough["WEBSITE"] = "website";
|
|
7
|
-
})(LeadThrough = exports.LeadThrough || (exports.LeadThrough = {}));
|
|
8
|
-
var TestDriveRequestStatus;
|
|
9
|
-
(function (TestDriveRequestStatus) {
|
|
10
|
-
TestDriveRequestStatus[TestDriveRequestStatus["NOT_CONTACTED"] = 1] = "NOT_CONTACTED";
|
|
11
|
-
TestDriveRequestStatus[TestDriveRequestStatus["APPOINTMENT_CONFIRMED"] = 2] = "APPOINTMENT_CONFIRMED";
|
|
12
|
-
TestDriveRequestStatus[TestDriveRequestStatus["FOLLOWED_UP_APPOINTMENT_DAY"] = 3] = "FOLLOWED_UP_APPOINTMENT_DAY";
|
|
13
|
-
TestDriveRequestStatus[TestDriveRequestStatus["REQUESTED_CALL_BACK"] = 4] = "REQUESTED_CALL_BACK";
|
|
14
|
-
TestDriveRequestStatus[TestDriveRequestStatus["FIRST_FOLLOW_UP"] = 5] = "FIRST_FOLLOW_UP";
|
|
15
|
-
TestDriveRequestStatus[TestDriveRequestStatus["APPOINTMENT_NO_SHOW"] = 6] = "APPOINTMENT_NO_SHOW";
|
|
16
|
-
TestDriveRequestStatus[TestDriveRequestStatus["SECOND_FOLLOW_UP"] = 7] = "SECOND_FOLLOW_UP";
|
|
17
|
-
TestDriveRequestStatus[TestDriveRequestStatus["THIRD_FOLLOW_UP"] = 8] = "THIRD_FOLLOW_UP";
|
|
18
|
-
TestDriveRequestStatus[TestDriveRequestStatus["FOURTH_FOLLOW_UP"] = 9] = "FOURTH_FOLLOW_UP";
|
|
19
|
-
TestDriveRequestStatus[TestDriveRequestStatus["LAST_FOLLOW_UP"] = 10] = "LAST_FOLLOW_UP";
|
|
20
|
-
TestDriveRequestStatus[TestDriveRequestStatus["ONGOING"] = 11] = "ONGOING";
|
|
21
|
-
TestDriveRequestStatus[TestDriveRequestStatus["DEALING_VISITED"] = 12] = "DEALING_VISITED";
|
|
22
|
-
TestDriveRequestStatus[TestDriveRequestStatus["CAR_BOOKED"] = 13] = "CAR_BOOKED";
|
|
23
|
-
TestDriveRequestStatus[TestDriveRequestStatus["NO_DEAL_VISITED"] = 14] = "NO_DEAL_VISITED";
|
|
24
|
-
TestDriveRequestStatus[TestDriveRequestStatus["PHONE_OFF"] = 15] = "PHONE_OFF";
|
|
25
|
-
TestDriveRequestStatus[TestDriveRequestStatus["NO_ANSWER_TO_CALL"] = 16] = "NO_ANSWER_TO_CALL";
|
|
26
|
-
TestDriveRequestStatus[TestDriveRequestStatus["CAR_NOT_IN_STOCK"] = 17] = "CAR_NOT_IN_STOCK";
|
|
27
|
-
TestDriveRequestStatus[TestDriveRequestStatus["DISQUALIFIED"] = 18] = "DISQUALIFIED";
|
|
28
|
-
TestDriveRequestStatus[TestDriveRequestStatus["WRONG_NUMBER"] = 19] = "WRONG_NUMBER";
|
|
29
|
-
})(TestDriveRequestStatus = exports.TestDriveRequestStatus || (exports.TestDriveRequestStatus = {}));
|
|
@@ -1,20 +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/TestDriveRequestDTO"), exports);
|
|
18
|
-
__exportStar(require("./enums/index"), exports);
|
|
19
|
-
__exportStar(require("./models"), exports);
|
|
20
|
-
__exportStar(require("./utilities"), exports);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestDriveRequest = void 0;
|
|
4
|
-
const Base_1 = require("../../../models/Base");
|
|
5
|
-
class TestDriveRequest extends Base_1.BaseModel {
|
|
6
|
-
}
|
|
7
|
-
exports.TestDriveRequest = TestDriveRequest;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestDriveRequest = void 0;
|
|
4
|
-
const TestDriveRequest_1 = require("./TestDriveRequest");
|
|
5
|
-
Object.defineProperty(exports, "TestDriveRequest", { enumerable: true, get: function () { return TestDriveRequest_1.TestDriveRequest; } });
|