@alba-cars/common-modules 2.16.1 → 2.16.2
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/README.md +42 -42
- package/dist/core/enums/Analytics.d.ts +31 -31
- package/dist/core/enums/HttpMethods.d.ts +12 -12
- package/dist/core/enums/HttpStatusCodes.d.ts +18 -18
- package/dist/core/enums/index.d.ts +3 -3
- package/dist/core/error-handling/AppError.d.ts +23 -23
- package/dist/core/error-handling/index.d.ts +1 -1
- package/dist/core/index.d.ts +5 -5
- package/dist/core/models/index.d.ts +3 -3
- package/dist/core/models/media/index.d.ts +1 -1
- package/dist/core/models/media/media_data.d.ts +5 -5
- package/dist/core/models/pagination/index.d.ts +1 -1
- package/dist/core/models/pagination/paginated_data.d.ts +23 -23
- package/dist/core/models/range.d.ts +4 -4
- package/dist/core/network/endpoint-config.d.ts +155 -155
- package/dist/core/network/fetch-api.d.ts +62 -62
- package/dist/core/network/index.d.ts +2 -2
- package/dist/core/utils/formatCurrency.d.ts +11 -11
- package/dist/core/utils/global-constants.d.ts +6 -6
- package/dist/core/utils/global-utils.d.ts +108 -108
- package/dist/core/utils/global_validators.d.ts +2 -2
- package/dist/core/utils/index.d.ts +4 -4
- package/dist/core/utils/query_flatten.d.ts +1 -1
- package/dist/features/auth/data/dto/AuthDTO.d.ts +32 -32
- package/dist/features/auth/data/dto/RoleDTO.d.ts +41 -41
- package/dist/features/auth/data/dto/UserDTO.d.ts +71 -71
- package/dist/features/auth/data/index.d.ts +3 -3
- package/dist/features/auth/index.d.ts +1 -1
- package/dist/features/bank-valuation-request/data/dto/BankValuationRequestDTO.d.ts +55 -55
- package/dist/features/bank-valuation-request/index.d.ts +1 -1
- package/dist/features/blog/data/dto/BlogDTO.d.ts +73 -73
- package/dist/features/blog/index.d.ts +1 -1
- package/dist/features/callback-request/data/dto/CallBackRequestDTO.d.ts +32 -32
- package/dist/features/callback-request/index.d.ts +1 -1
- package/dist/features/deposits/data/dto/DepositDTOs.d.ts +84 -84
- package/dist/features/deposits/data/index.d.ts +1 -1
- package/dist/features/deposits/index.d.ts +1 -1
- package/dist/features/faq/data/dtos/CreateFaqDTO.d.ts +15 -15
- package/dist/features/faq/data/dtos/FaqFetchDTO.d.ts +105 -105
- package/dist/features/faq/data/dtos/UpdateFaqDTO.d.ts +15 -15
- package/dist/features/faq/data/dtos/index.d.ts +3 -3
- package/dist/features/faq/data/enums/index.d.ts +6 -6
- package/dist/features/faq/data/index.d.ts +2 -2
- package/dist/features/faq/index.d.ts +1 -1
- package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.d.ts +144 -144
- package/dist/features/finance-eligibilty-request/data/index.d.ts +1 -1
- package/dist/features/finance-eligibilty-request/index.d.ts +1 -1
- package/dist/features/google-review/data/dto/google_review_dto.d.ts +103 -103
- package/dist/features/google-review/data/dto/index.d.ts +1 -1
- package/dist/features/google-review/data/enums/index.d.ts +4 -4
- package/dist/features/google-review/data/index.d.ts +2 -2
- package/dist/features/google-review/index.d.ts +1 -1
- package/dist/features/index.d.ts +18 -18
- package/dist/features/lead/data/dto/index.d.ts +4 -4
- package/dist/features/lead/data/dto/lead_documents_dto.d.ts +24 -24
- package/dist/features/lead/data/dto/lead_dto.d.ts +104 -104
- package/dist/features/lead/data/dto/lead_preference_history_dto.d.ts +84 -84
- package/dist/features/lead/data/dto/lead_prefernce_dto.d.ts +68 -68
- package/dist/features/lead/data/enum/index.d.ts +2 -2
- package/dist/features/lead/data/enum/lead_source_status_types.d.ts +15 -15
- package/dist/features/lead/data/enum/lead_status_type.d.ts +8 -8
- package/dist/features/lead/index.d.ts +2 -2
- package/dist/features/models/Bank.d.ts +9 -9
- package/dist/features/models/BankValuationRequest.d.ts +63 -63
- package/dist/features/models/BankValuationResult.d.ts +24 -24
- package/dist/features/models/Base.d.ts +12 -12
- package/dist/features/models/Color.d.ts +10 -10
- package/dist/features/models/Deposit.d.ts +18 -18
- package/dist/features/models/Lead.d.ts +25 -25
- package/dist/features/models/Payment.d.ts +46 -46
- package/dist/features/models/Roles.d.ts +7 -7
- package/dist/features/models/Ticket.d.ts +51 -51
- package/dist/features/models/User.d.ts +24 -24
- package/dist/features/models/UserFavoriteVehicle.d.ts +9 -9
- package/dist/features/models/Vehicle.d.ts +79 -79
- package/dist/features/models/VehicleBodyType.d.ts +8 -8
- package/dist/features/models/VehicleCategory.d.ts +6 -6
- package/dist/features/models/VehicleFeature.d.ts +10 -10
- package/dist/features/models/VehicleFeatureCategory.d.ts +7 -7
- package/dist/features/models/VehicleFinance.d.ts +29 -29
- package/dist/features/models/VehicleMake.d.ts +14 -14
- package/dist/features/models/VehicleMedia.d.ts +16 -12
- package/dist/features/models/VehicleMetaData.d.ts +11 -11
- package/dist/features/models/VehicleModel.d.ts +17 -17
- package/dist/features/models/VehicleOrder.d.ts +14 -14
- package/dist/features/models/_index.d.ts +14 -14
- package/dist/features/models/index.d.ts +21 -21
- package/dist/features/newsletter/data/dto/NewsletterDTO.d.ts +17 -17
- package/dist/features/newsletter/index.d.ts +1 -1
- package/dist/features/sales-team/data/dto/LanguageDTO.d.ts +20 -20
- package/dist/features/sales-team/data/dto/SalesAgentDTO.d.ts +204 -204
- package/dist/features/sales-team/data/index.d.ts +2 -2
- package/dist/features/sales-team/index.d.ts +1 -1
- package/dist/features/sell-car-request/data/dto/SellCarRequestDTO.d.ts +203 -203
- package/dist/features/sell-car-request/data/index.d.ts +1 -1
- package/dist/features/sell-car-request/index.d.ts +1 -1
- package/dist/features/showroom-visit/data/dto/ShowroomVisit.d.ts +69 -69
- package/dist/features/showroom-visit/data/enums/index.d.ts +11 -11
- package/dist/features/showroom-visit/data/index.d.ts +2 -2
- package/dist/features/showroom-visit/index.d.ts +1 -1
- package/dist/features/test-drive-request/api/GetTestDriveVehicles.d.ts +3 -3
- package/dist/features/test-drive-request/api/index.d.ts +1 -1
- package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.d.ts +51 -51
- package/dist/features/test-drive-request/data/enums/index.d.ts +24 -24
- package/dist/features/test-drive-request/data/index.d.ts +4 -4
- package/dist/features/test-drive-request/data/models/TestDriveRequest.d.ts +14 -14
- package/dist/features/test-drive-request/data/models/index.d.ts +2 -2
- package/dist/features/test-drive-request/data/utilities.d.ts +30 -30
- package/dist/features/test-drive-request/index.d.ts +2 -2
- package/dist/features/tickets/data/dto/TicketDto.d.ts +69 -69
- package/dist/features/tickets/data/enums/index.d.ts +18 -18
- package/dist/features/tickets/index.d.ts +2 -2
- package/dist/features/vehicle/data/dto/BaseDTO.d.ts +9 -9
- package/dist/features/vehicle/data/dto/ColorDTO.d.ts +10 -10
- package/dist/features/vehicle/data/dto/MediaDTO.d.ts +5 -5
- package/dist/features/vehicle/data/dto/PaymentDTO.d.ts +52 -52
- package/dist/features/vehicle/data/dto/SimilarVehicleDTO.d.ts +12 -12
- package/dist/features/vehicle/data/dto/VehicleCategoryDTO.d.ts +39 -39
- package/dist/features/vehicle/data/dto/VehicleDTO.d.ts +145 -145
- package/dist/features/vehicle/data/dto/VehicleFavoritesDTO.d.ts +14 -14
- package/dist/features/vehicle/data/dto/VehicleFeatureCategoriesDTO.d.ts +39 -39
- package/dist/features/vehicle/data/dto/VehicleFeatureDTO.d.ts +40 -40
- package/dist/features/vehicle/data/dto/VehicleFilterDTO.d.ts +258 -258
- package/dist/features/vehicle/data/dto/VehicleFinanceDTO.d.ts +63 -63
- package/dist/features/vehicle/data/dto/VehicleInspectionDTO.d.ts +147 -147
- package/dist/features/vehicle/data/dto/VehicleMakeDTO.d.ts +52 -52
- package/dist/features/vehicle/data/dto/VehicleMedia.d.ts +44 -44
- package/dist/features/vehicle/data/dto/VehicleModelDTO.d.ts +50 -50
- package/dist/features/vehicle/data/dto/VehicleOrderDTO.d.ts +34 -34
- package/dist/features/vehicle/data/dto/VehicleTypeDTO.d.ts +35 -35
- package/dist/features/vehicle/data/dto/VehicleWarrantyDTO.d.ts +9 -9
- package/dist/features/vehicle/data/dto/index.d.ts +20 -20
- package/dist/features/vehicle/data/enums/index.d.ts +40 -40
- package/dist/features/vehicle/data/index.d.ts +3 -3
- package/dist/features/vehicle/data/utilities.d.ts +185 -185
- package/dist/features/vehicle/index.d.ts +1 -1
- package/dist/features/vehicle-reservations/data/dto/VehicleReservationDTO.d.ts +106 -106
- package/dist/features/vehicle-reservations/data/dto/index.d.ts +1 -1
- package/dist/features/vehicle-reservations/data/enums/finance-type.d.ts +5 -5
- package/dist/features/vehicle-reservations/data/enums/index.d.ts +3 -3
- package/dist/features/vehicle-reservations/data/enums/reservation-type.d.ts +9 -9
- package/dist/features/vehicle-reservations/data/enums/vehicle-reservation-type.d.ts +4 -4
- package/dist/features/vehicle-reservations/index.d.ts +2 -2
- package/dist/global/dto/BaseGetDTO.d.ts +8 -8
- package/dist/global/dto/index.d.ts +1 -1
- package/dist/global/index.d.ts +2 -2
- package/dist/global/utilities.d.ts +53 -53
- package/dist/index.d.ts +5 -5
- package/dist/models.d.ts +1 -1
- package/package.json +62 -62
|
@@ -1,203 +1,203 @@
|
|
|
1
|
-
import { DateFilter, PaginationOptions } from "../../../../global";
|
|
2
|
-
import { VehicleMediaCreateDTO } from "../../../vehicle";
|
|
3
|
-
import { MarketingData } from "../../../../core";
|
|
4
|
-
export declare enum RequestType {
|
|
5
|
-
SELL = "sell",
|
|
6
|
-
TRADE_IN = "trade_in"
|
|
7
|
-
}
|
|
8
|
-
export declare enum TradeInOption {
|
|
9
|
-
YES = "yes",
|
|
10
|
-
NO = "no"
|
|
11
|
-
}
|
|
12
|
-
export declare enum VehicleOption {
|
|
13
|
-
NEW = "new",
|
|
14
|
-
USED = "used"
|
|
15
|
-
}
|
|
16
|
-
export declare class SellCarRequestDTO {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
phone: string;
|
|
20
|
-
brand: string;
|
|
21
|
-
brandName: string;
|
|
22
|
-
model: string;
|
|
23
|
-
modelName: string;
|
|
24
|
-
modelVersion: string;
|
|
25
|
-
modelVersionName: string;
|
|
26
|
-
year: string;
|
|
27
|
-
mileage: number;
|
|
28
|
-
description: string;
|
|
29
|
-
specification: string;
|
|
30
|
-
specificationName: string;
|
|
31
|
-
tradeIn: TradeInOption;
|
|
32
|
-
images: string[];
|
|
33
|
-
isDeleted?: boolean;
|
|
34
|
-
createdAt?: Date;
|
|
35
|
-
updatedAt?: Date;
|
|
36
|
-
inspectionBookingDate?: Date;
|
|
37
|
-
status?: "SUBMITTED" | "DRAFT";
|
|
38
|
-
marketing?: MarketingData;
|
|
39
|
-
validate(): string[];
|
|
40
|
-
static fromPlain(plain: Record<string, unknown>): SellCarRequestDTO;
|
|
41
|
-
toPlain(): Record<string, unknown>;
|
|
42
|
-
}
|
|
43
|
-
export declare class SellCarRequestCreateDTO {
|
|
44
|
-
name: string;
|
|
45
|
-
phone: string;
|
|
46
|
-
brand: string;
|
|
47
|
-
brandName: string;
|
|
48
|
-
model: string;
|
|
49
|
-
modelName: string;
|
|
50
|
-
modelVersion?: string;
|
|
51
|
-
modelVersionName?: string;
|
|
52
|
-
year: string;
|
|
53
|
-
mileage: number;
|
|
54
|
-
expectedSellingPrice?: number;
|
|
55
|
-
description: string;
|
|
56
|
-
emirates: string;
|
|
57
|
-
specification: string;
|
|
58
|
-
specificationName: string;
|
|
59
|
-
requestType?: RequestType;
|
|
60
|
-
tradeIn: TradeInOption;
|
|
61
|
-
additionalDetails?: string;
|
|
62
|
-
dealDriveEstimation?: number;
|
|
63
|
-
images: string[];
|
|
64
|
-
media?: VehicleMediaCreateDTO[];
|
|
65
|
-
inspectionBookingDate?: Date;
|
|
66
|
-
status?: "SUBMITTED" | "DRAFT";
|
|
67
|
-
sessionId?: string;
|
|
68
|
-
marketing?: MarketingData;
|
|
69
|
-
validate(): string[];
|
|
70
|
-
static fromPlain(plain: Record<string, unknown>): SellCarRequestCreateDTO;
|
|
71
|
-
toPlain(): Record<string, unknown>;
|
|
72
|
-
}
|
|
73
|
-
export declare class ExchangeCarRequestCreateDTO {
|
|
74
|
-
name: string;
|
|
75
|
-
phone: string;
|
|
76
|
-
brand: string;
|
|
77
|
-
brandName: string;
|
|
78
|
-
model: string;
|
|
79
|
-
modelName: string;
|
|
80
|
-
modelVersion?: string;
|
|
81
|
-
modelVersionName?: string;
|
|
82
|
-
year: string;
|
|
83
|
-
mileage: number;
|
|
84
|
-
expectedSellingPrice?: number;
|
|
85
|
-
description: string;
|
|
86
|
-
emirates: string;
|
|
87
|
-
specification: string;
|
|
88
|
-
specificationName: string;
|
|
89
|
-
requestType?: RequestType;
|
|
90
|
-
tradeIn: TradeInOption;
|
|
91
|
-
additionalDetails?: string;
|
|
92
|
-
dealDriveEstimation?: number;
|
|
93
|
-
images: string[];
|
|
94
|
-
media?: VehicleMediaCreateDTO[];
|
|
95
|
-
bookingDate?: Date;
|
|
96
|
-
status?: "SUBMITTED" | "DRAFT";
|
|
97
|
-
sessionId?: string;
|
|
98
|
-
marketing?: MarketingData;
|
|
99
|
-
validate(): string[];
|
|
100
|
-
static fromPlain(plain: Record<string, unknown>): SellCarRequestCreateDTO;
|
|
101
|
-
toPlain(): Record<string, unknown>;
|
|
102
|
-
}
|
|
103
|
-
export declare class SellCarRequestUpdateDTO {
|
|
104
|
-
name?: string;
|
|
105
|
-
phone?: string;
|
|
106
|
-
email?: string;
|
|
107
|
-
city?: string;
|
|
108
|
-
requestType?: RequestType;
|
|
109
|
-
makeId?: string;
|
|
110
|
-
modelId?: string;
|
|
111
|
-
year?: number;
|
|
112
|
-
mileage?: number;
|
|
113
|
-
specification?: string;
|
|
114
|
-
images?: string[];
|
|
115
|
-
desiredVehicleId?: string;
|
|
116
|
-
color?: string;
|
|
117
|
-
transmission?: string;
|
|
118
|
-
fuelType?: string;
|
|
119
|
-
engineCapacity?: string;
|
|
120
|
-
description?: string;
|
|
121
|
-
inspectionBookingDate?: Date;
|
|
122
|
-
status?: "SUBMITTED" | "DRAFT";
|
|
123
|
-
marketing?: MarketingData;
|
|
124
|
-
additionalDetails?: {
|
|
125
|
-
serviceHistory?: boolean;
|
|
126
|
-
numberOfOwners?: number;
|
|
127
|
-
accidentHistory?: boolean;
|
|
128
|
-
modifications?: string[];
|
|
129
|
-
lastServiceDate?: Date;
|
|
130
|
-
warrantyValid?: boolean;
|
|
131
|
-
tradeIn?: boolean;
|
|
132
|
-
inspectionDate?: Date;
|
|
133
|
-
inspectionLocation?: string;
|
|
134
|
-
finalTradeInOffer?: number;
|
|
135
|
-
[key: string]: any;
|
|
136
|
-
};
|
|
137
|
-
validate(): string[];
|
|
138
|
-
static fromPlain(plain: Record<string, unknown>): SellCarRequestUpdateDTO;
|
|
139
|
-
toPlain(): Record<string, unknown>;
|
|
140
|
-
}
|
|
141
|
-
export declare class SellCarRequestResponseDTO {
|
|
142
|
-
id: string;
|
|
143
|
-
refId: number;
|
|
144
|
-
name: string;
|
|
145
|
-
phone: string;
|
|
146
|
-
brand: string;
|
|
147
|
-
brandName: string;
|
|
148
|
-
model: string;
|
|
149
|
-
modelName: string;
|
|
150
|
-
modelVersion: string;
|
|
151
|
-
modelVersionName: string;
|
|
152
|
-
year: string;
|
|
153
|
-
mileage: number;
|
|
154
|
-
expectedSellingPrice: number;
|
|
155
|
-
description: string;
|
|
156
|
-
specification: string;
|
|
157
|
-
specificationName: string;
|
|
158
|
-
requestType?: RequestType;
|
|
159
|
-
tradeIn: TradeInOption;
|
|
160
|
-
dealDriveEstimation?: number;
|
|
161
|
-
additionalDetails?: string;
|
|
162
|
-
isDeleted: boolean;
|
|
163
|
-
isActive: boolean;
|
|
164
|
-
images: string[];
|
|
165
|
-
media?: VehicleMediaCreateDTO[];
|
|
166
|
-
inspectionBookingDate?: Date;
|
|
167
|
-
createdById?: string | null;
|
|
168
|
-
updatedById?: string | null;
|
|
169
|
-
deletedById?: string | null;
|
|
170
|
-
status?: "SUBMITTED" | "DRAFT";
|
|
171
|
-
marketing?: MarketingData;
|
|
172
|
-
validate(): string[];
|
|
173
|
-
static fromPlain(plain: Record<string, unknown>): SellCarRequestResponseDTO;
|
|
174
|
-
toPlain(): Record<string, unknown>;
|
|
175
|
-
}
|
|
176
|
-
export declare class SellCarFilterDTO {
|
|
177
|
-
search?: string;
|
|
178
|
-
leadId?: string;
|
|
179
|
-
additionalDetails?: string;
|
|
180
|
-
isActive?: boolean;
|
|
181
|
-
createdAt?: DateFilter;
|
|
182
|
-
tradeIn?: TradeInOption;
|
|
183
|
-
status?: "SUBMITTED" | "DRAFT";
|
|
184
|
-
marketing?: MarketingData;
|
|
185
|
-
validate(): string[];
|
|
186
|
-
static fromPlain(plain: Record<string, unknown>): SellCarFilterDTO;
|
|
187
|
-
toPlain(): Record<string, unknown>;
|
|
188
|
-
}
|
|
189
|
-
export declare class SellCarOptionsDTO extends PaginationOptions {
|
|
190
|
-
sort?: {
|
|
191
|
-
field: string;
|
|
192
|
-
direction: "asc" | "desc";
|
|
193
|
-
};
|
|
194
|
-
static fromPlain(plain: Record<string, unknown>): SellCarOptionsDTO;
|
|
195
|
-
toPlain(): Record<string, unknown>;
|
|
196
|
-
}
|
|
197
|
-
export declare class SellCarFetchDTO {
|
|
198
|
-
filter: SellCarFilterDTO;
|
|
199
|
-
options: SellCarOptionsDTO;
|
|
200
|
-
validate(): string[];
|
|
201
|
-
static fromPlain(plain: Record<string, unknown>): SellCarFetchDTO;
|
|
202
|
-
toPlain(): Record<string, unknown>;
|
|
203
|
-
}
|
|
1
|
+
import { DateFilter, PaginationOptions } from "../../../../global";
|
|
2
|
+
import { VehicleMediaCreateDTO } from "../../../vehicle";
|
|
3
|
+
import { MarketingData } from "../../../../core";
|
|
4
|
+
export declare enum RequestType {
|
|
5
|
+
SELL = "sell",
|
|
6
|
+
TRADE_IN = "trade_in"
|
|
7
|
+
}
|
|
8
|
+
export declare enum TradeInOption {
|
|
9
|
+
YES = "yes",
|
|
10
|
+
NO = "no"
|
|
11
|
+
}
|
|
12
|
+
export declare enum VehicleOption {
|
|
13
|
+
NEW = "new",
|
|
14
|
+
USED = "used"
|
|
15
|
+
}
|
|
16
|
+
export declare class SellCarRequestDTO {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
phone: string;
|
|
20
|
+
brand: string;
|
|
21
|
+
brandName: string;
|
|
22
|
+
model: string;
|
|
23
|
+
modelName: string;
|
|
24
|
+
modelVersion: string;
|
|
25
|
+
modelVersionName: string;
|
|
26
|
+
year: string;
|
|
27
|
+
mileage: number;
|
|
28
|
+
description: string;
|
|
29
|
+
specification: string;
|
|
30
|
+
specificationName: string;
|
|
31
|
+
tradeIn: TradeInOption;
|
|
32
|
+
images: string[];
|
|
33
|
+
isDeleted?: boolean;
|
|
34
|
+
createdAt?: Date;
|
|
35
|
+
updatedAt?: Date;
|
|
36
|
+
inspectionBookingDate?: Date;
|
|
37
|
+
status?: "SUBMITTED" | "DRAFT";
|
|
38
|
+
marketing?: MarketingData;
|
|
39
|
+
validate(): string[];
|
|
40
|
+
static fromPlain(plain: Record<string, unknown>): SellCarRequestDTO;
|
|
41
|
+
toPlain(): Record<string, unknown>;
|
|
42
|
+
}
|
|
43
|
+
export declare class SellCarRequestCreateDTO {
|
|
44
|
+
name: string;
|
|
45
|
+
phone: string;
|
|
46
|
+
brand: string;
|
|
47
|
+
brandName: string;
|
|
48
|
+
model: string;
|
|
49
|
+
modelName: string;
|
|
50
|
+
modelVersion?: string;
|
|
51
|
+
modelVersionName?: string;
|
|
52
|
+
year: string;
|
|
53
|
+
mileage: number;
|
|
54
|
+
expectedSellingPrice?: number;
|
|
55
|
+
description: string;
|
|
56
|
+
emirates: string;
|
|
57
|
+
specification: string;
|
|
58
|
+
specificationName: string;
|
|
59
|
+
requestType?: RequestType;
|
|
60
|
+
tradeIn: TradeInOption;
|
|
61
|
+
additionalDetails?: string;
|
|
62
|
+
dealDriveEstimation?: number;
|
|
63
|
+
images: string[];
|
|
64
|
+
media?: VehicleMediaCreateDTO[];
|
|
65
|
+
inspectionBookingDate?: Date;
|
|
66
|
+
status?: "SUBMITTED" | "DRAFT";
|
|
67
|
+
sessionId?: string;
|
|
68
|
+
marketing?: MarketingData;
|
|
69
|
+
validate(): string[];
|
|
70
|
+
static fromPlain(plain: Record<string, unknown>): SellCarRequestCreateDTO;
|
|
71
|
+
toPlain(): Record<string, unknown>;
|
|
72
|
+
}
|
|
73
|
+
export declare class ExchangeCarRequestCreateDTO {
|
|
74
|
+
name: string;
|
|
75
|
+
phone: string;
|
|
76
|
+
brand: string;
|
|
77
|
+
brandName: string;
|
|
78
|
+
model: string;
|
|
79
|
+
modelName: string;
|
|
80
|
+
modelVersion?: string;
|
|
81
|
+
modelVersionName?: string;
|
|
82
|
+
year: string;
|
|
83
|
+
mileage: number;
|
|
84
|
+
expectedSellingPrice?: number;
|
|
85
|
+
description: string;
|
|
86
|
+
emirates: string;
|
|
87
|
+
specification: string;
|
|
88
|
+
specificationName: string;
|
|
89
|
+
requestType?: RequestType;
|
|
90
|
+
tradeIn: TradeInOption;
|
|
91
|
+
additionalDetails?: string;
|
|
92
|
+
dealDriveEstimation?: number;
|
|
93
|
+
images: string[];
|
|
94
|
+
media?: VehicleMediaCreateDTO[];
|
|
95
|
+
bookingDate?: Date;
|
|
96
|
+
status?: "SUBMITTED" | "DRAFT";
|
|
97
|
+
sessionId?: string;
|
|
98
|
+
marketing?: MarketingData;
|
|
99
|
+
validate(): string[];
|
|
100
|
+
static fromPlain(plain: Record<string, unknown>): SellCarRequestCreateDTO;
|
|
101
|
+
toPlain(): Record<string, unknown>;
|
|
102
|
+
}
|
|
103
|
+
export declare class SellCarRequestUpdateDTO {
|
|
104
|
+
name?: string;
|
|
105
|
+
phone?: string;
|
|
106
|
+
email?: string;
|
|
107
|
+
city?: string;
|
|
108
|
+
requestType?: RequestType;
|
|
109
|
+
makeId?: string;
|
|
110
|
+
modelId?: string;
|
|
111
|
+
year?: number;
|
|
112
|
+
mileage?: number;
|
|
113
|
+
specification?: string;
|
|
114
|
+
images?: string[];
|
|
115
|
+
desiredVehicleId?: string;
|
|
116
|
+
color?: string;
|
|
117
|
+
transmission?: string;
|
|
118
|
+
fuelType?: string;
|
|
119
|
+
engineCapacity?: string;
|
|
120
|
+
description?: string;
|
|
121
|
+
inspectionBookingDate?: Date;
|
|
122
|
+
status?: "SUBMITTED" | "DRAFT";
|
|
123
|
+
marketing?: MarketingData;
|
|
124
|
+
additionalDetails?: {
|
|
125
|
+
serviceHistory?: boolean;
|
|
126
|
+
numberOfOwners?: number;
|
|
127
|
+
accidentHistory?: boolean;
|
|
128
|
+
modifications?: string[];
|
|
129
|
+
lastServiceDate?: Date;
|
|
130
|
+
warrantyValid?: boolean;
|
|
131
|
+
tradeIn?: boolean;
|
|
132
|
+
inspectionDate?: Date;
|
|
133
|
+
inspectionLocation?: string;
|
|
134
|
+
finalTradeInOffer?: number;
|
|
135
|
+
[key: string]: any;
|
|
136
|
+
};
|
|
137
|
+
validate(): string[];
|
|
138
|
+
static fromPlain(plain: Record<string, unknown>): SellCarRequestUpdateDTO;
|
|
139
|
+
toPlain(): Record<string, unknown>;
|
|
140
|
+
}
|
|
141
|
+
export declare class SellCarRequestResponseDTO {
|
|
142
|
+
id: string;
|
|
143
|
+
refId: number;
|
|
144
|
+
name: string;
|
|
145
|
+
phone: string;
|
|
146
|
+
brand: string;
|
|
147
|
+
brandName: string;
|
|
148
|
+
model: string;
|
|
149
|
+
modelName: string;
|
|
150
|
+
modelVersion: string;
|
|
151
|
+
modelVersionName: string;
|
|
152
|
+
year: string;
|
|
153
|
+
mileage: number;
|
|
154
|
+
expectedSellingPrice: number;
|
|
155
|
+
description: string;
|
|
156
|
+
specification: string;
|
|
157
|
+
specificationName: string;
|
|
158
|
+
requestType?: RequestType;
|
|
159
|
+
tradeIn: TradeInOption;
|
|
160
|
+
dealDriveEstimation?: number;
|
|
161
|
+
additionalDetails?: string;
|
|
162
|
+
isDeleted: boolean;
|
|
163
|
+
isActive: boolean;
|
|
164
|
+
images: string[];
|
|
165
|
+
media?: VehicleMediaCreateDTO[];
|
|
166
|
+
inspectionBookingDate?: Date;
|
|
167
|
+
createdById?: string | null;
|
|
168
|
+
updatedById?: string | null;
|
|
169
|
+
deletedById?: string | null;
|
|
170
|
+
status?: "SUBMITTED" | "DRAFT";
|
|
171
|
+
marketing?: MarketingData;
|
|
172
|
+
validate(): string[];
|
|
173
|
+
static fromPlain(plain: Record<string, unknown>): SellCarRequestResponseDTO;
|
|
174
|
+
toPlain(): Record<string, unknown>;
|
|
175
|
+
}
|
|
176
|
+
export declare class SellCarFilterDTO {
|
|
177
|
+
search?: string;
|
|
178
|
+
leadId?: string;
|
|
179
|
+
additionalDetails?: string;
|
|
180
|
+
isActive?: boolean;
|
|
181
|
+
createdAt?: DateFilter;
|
|
182
|
+
tradeIn?: TradeInOption;
|
|
183
|
+
status?: "SUBMITTED" | "DRAFT";
|
|
184
|
+
marketing?: MarketingData;
|
|
185
|
+
validate(): string[];
|
|
186
|
+
static fromPlain(plain: Record<string, unknown>): SellCarFilterDTO;
|
|
187
|
+
toPlain(): Record<string, unknown>;
|
|
188
|
+
}
|
|
189
|
+
export declare class SellCarOptionsDTO extends PaginationOptions {
|
|
190
|
+
sort?: {
|
|
191
|
+
field: string;
|
|
192
|
+
direction: "asc" | "desc";
|
|
193
|
+
};
|
|
194
|
+
static fromPlain(plain: Record<string, unknown>): SellCarOptionsDTO;
|
|
195
|
+
toPlain(): Record<string, unknown>;
|
|
196
|
+
}
|
|
197
|
+
export declare class SellCarFetchDTO {
|
|
198
|
+
filter: SellCarFilterDTO;
|
|
199
|
+
options: SellCarOptionsDTO;
|
|
200
|
+
validate(): string[];
|
|
201
|
+
static fromPlain(plain: Record<string, unknown>): SellCarFetchDTO;
|
|
202
|
+
toPlain(): Record<string, unknown>;
|
|
203
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./dto/SellCarRequestDTO";
|
|
1
|
+
export * from "./dto/SellCarRequestDTO";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./data";
|
|
1
|
+
export * from "./data";
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { ValidatorConstraintInterface, ValidationArguments } from "class-validator";
|
|
2
|
-
import { PaginationOptions } from "../../../../global";
|
|
3
|
-
import { VisitPurpose } from "../enums";
|
|
4
|
-
import { MarketingData } from "../../../../core";
|
|
5
|
-
export declare class IsTimeConstraint implements ValidatorConstraintInterface {
|
|
6
|
-
validate(time: string, args: ValidationArguments): boolean;
|
|
7
|
-
defaultMessage(args: ValidationArguments): string;
|
|
8
|
-
}
|
|
9
|
-
export declare class ShowroomVisitCreateDTO {
|
|
10
|
-
Visitor_FullName: string;
|
|
11
|
-
Visitor_Mobile: string;
|
|
12
|
-
Visit_Date: string;
|
|
13
|
-
Visit_Time: string;
|
|
14
|
-
Visit_Interest: VisitPurpose;
|
|
15
|
-
Interested_Cars?: string[];
|
|
16
|
-
AssignedAgentId?: string;
|
|
17
|
-
marketing?: MarketingData;
|
|
18
|
-
validate(): string[];
|
|
19
|
-
static fromPlain(plain: Record<string, unknown>): ShowroomVisitCreateDTO;
|
|
20
|
-
toPlain(): Record<string, unknown>;
|
|
21
|
-
}
|
|
22
|
-
export declare class ShowroomVisitUpdateDTO {
|
|
23
|
-
Visitor_FullName?: string;
|
|
24
|
-
Visitor_Mobile?: string;
|
|
25
|
-
Visit_Date?: string;
|
|
26
|
-
Visit_Time?: string;
|
|
27
|
-
Visit_Interest?: VisitPurpose;
|
|
28
|
-
Interested_Cars?: string[];
|
|
29
|
-
AssignedAgentId?: string;
|
|
30
|
-
validate(): string[];
|
|
31
|
-
static fromPlain(plain: Record<string, unknown>): ShowroomVisitUpdateDTO;
|
|
32
|
-
}
|
|
33
|
-
export declare class ShowroomVisitResponseDTO {
|
|
34
|
-
id: string;
|
|
35
|
-
Visitor_FullName: string;
|
|
36
|
-
Visitor_Mobile: string;
|
|
37
|
-
Visit_Date: string;
|
|
38
|
-
Visit_Time: string;
|
|
39
|
-
Visit_Interest: VisitPurpose;
|
|
40
|
-
Interested_Cars?: string[];
|
|
41
|
-
AssignedAgentId?: string;
|
|
42
|
-
AssignedAgentName?: string;
|
|
43
|
-
IsCompleted?: boolean;
|
|
44
|
-
VisitNotes?: string;
|
|
45
|
-
CreatedAt: string;
|
|
46
|
-
UpdatedAt: string;
|
|
47
|
-
marketing?: MarketingData;
|
|
48
|
-
validate(): string[];
|
|
49
|
-
static fromPlain(plain: Record<string, unknown>): ShowroomVisitResponseDTO;
|
|
50
|
-
toPlain(): Record<string, unknown>;
|
|
51
|
-
}
|
|
52
|
-
export declare class ShowRoomVisitOptionsDTO extends PaginationOptions {
|
|
53
|
-
static fromPlain(plain: Record<string, unknown>): ShowRoomVisitOptionsDTO;
|
|
54
|
-
toPlain(): Record<string, unknown>;
|
|
55
|
-
}
|
|
56
|
-
export declare class ShowRoomVisitFilterDTO {
|
|
57
|
-
search?: string;
|
|
58
|
-
leadId?: string;
|
|
59
|
-
validate(): string[];
|
|
60
|
-
static fromPlain(plain: Record<string, unknown>): ShowRoomVisitFilterDTO;
|
|
61
|
-
toPlain(): Record<string, unknown>;
|
|
62
|
-
}
|
|
63
|
-
export declare class ShowRoomVisitFetchDTO {
|
|
64
|
-
filter: ShowRoomVisitFilterDTO;
|
|
65
|
-
options: ShowRoomVisitOptionsDTO;
|
|
66
|
-
validate(): string[];
|
|
67
|
-
static fromPlain(plain: Record<string, unknown>): ShowRoomVisitFetchDTO;
|
|
68
|
-
toPlain(): Record<string, unknown>;
|
|
69
|
-
}
|
|
1
|
+
import { ValidatorConstraintInterface, ValidationArguments } from "class-validator";
|
|
2
|
+
import { PaginationOptions } from "../../../../global";
|
|
3
|
+
import { VisitPurpose } from "../enums";
|
|
4
|
+
import { MarketingData } from "../../../../core";
|
|
5
|
+
export declare class IsTimeConstraint implements ValidatorConstraintInterface {
|
|
6
|
+
validate(time: string, args: ValidationArguments): boolean;
|
|
7
|
+
defaultMessage(args: ValidationArguments): string;
|
|
8
|
+
}
|
|
9
|
+
export declare class ShowroomVisitCreateDTO {
|
|
10
|
+
Visitor_FullName: string;
|
|
11
|
+
Visitor_Mobile: string;
|
|
12
|
+
Visit_Date: string;
|
|
13
|
+
Visit_Time: string;
|
|
14
|
+
Visit_Interest: VisitPurpose;
|
|
15
|
+
Interested_Cars?: string[];
|
|
16
|
+
AssignedAgentId?: string;
|
|
17
|
+
marketing?: MarketingData;
|
|
18
|
+
validate(): string[];
|
|
19
|
+
static fromPlain(plain: Record<string, unknown>): ShowroomVisitCreateDTO;
|
|
20
|
+
toPlain(): Record<string, unknown>;
|
|
21
|
+
}
|
|
22
|
+
export declare class ShowroomVisitUpdateDTO {
|
|
23
|
+
Visitor_FullName?: string;
|
|
24
|
+
Visitor_Mobile?: string;
|
|
25
|
+
Visit_Date?: string;
|
|
26
|
+
Visit_Time?: string;
|
|
27
|
+
Visit_Interest?: VisitPurpose;
|
|
28
|
+
Interested_Cars?: string[];
|
|
29
|
+
AssignedAgentId?: string;
|
|
30
|
+
validate(): string[];
|
|
31
|
+
static fromPlain(plain: Record<string, unknown>): ShowroomVisitUpdateDTO;
|
|
32
|
+
}
|
|
33
|
+
export declare class ShowroomVisitResponseDTO {
|
|
34
|
+
id: string;
|
|
35
|
+
Visitor_FullName: string;
|
|
36
|
+
Visitor_Mobile: string;
|
|
37
|
+
Visit_Date: string;
|
|
38
|
+
Visit_Time: string;
|
|
39
|
+
Visit_Interest: VisitPurpose;
|
|
40
|
+
Interested_Cars?: string[];
|
|
41
|
+
AssignedAgentId?: string;
|
|
42
|
+
AssignedAgentName?: string;
|
|
43
|
+
IsCompleted?: boolean;
|
|
44
|
+
VisitNotes?: string;
|
|
45
|
+
CreatedAt: string;
|
|
46
|
+
UpdatedAt: string;
|
|
47
|
+
marketing?: MarketingData;
|
|
48
|
+
validate(): string[];
|
|
49
|
+
static fromPlain(plain: Record<string, unknown>): ShowroomVisitResponseDTO;
|
|
50
|
+
toPlain(): Record<string, unknown>;
|
|
51
|
+
}
|
|
52
|
+
export declare class ShowRoomVisitOptionsDTO extends PaginationOptions {
|
|
53
|
+
static fromPlain(plain: Record<string, unknown>): ShowRoomVisitOptionsDTO;
|
|
54
|
+
toPlain(): Record<string, unknown>;
|
|
55
|
+
}
|
|
56
|
+
export declare class ShowRoomVisitFilterDTO {
|
|
57
|
+
search?: string;
|
|
58
|
+
leadId?: string;
|
|
59
|
+
validate(): string[];
|
|
60
|
+
static fromPlain(plain: Record<string, unknown>): ShowRoomVisitFilterDTO;
|
|
61
|
+
toPlain(): Record<string, unknown>;
|
|
62
|
+
}
|
|
63
|
+
export declare class ShowRoomVisitFetchDTO {
|
|
64
|
+
filter: ShowRoomVisitFilterDTO;
|
|
65
|
+
options: ShowRoomVisitOptionsDTO;
|
|
66
|
+
validate(): string[];
|
|
67
|
+
static fromPlain(plain: Record<string, unknown>): ShowRoomVisitFetchDTO;
|
|
68
|
+
toPlain(): Record<string, unknown>;
|
|
69
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare enum VisitStatus {
|
|
2
|
-
SCHEDULED = "SCHEDULED",
|
|
3
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
4
|
-
COMPLETED = "COMPLETED",
|
|
5
|
-
CANCELLED = "CANCELLED",
|
|
6
|
-
NO_SHOW = "NO_SHOW"
|
|
7
|
-
}
|
|
8
|
-
export declare enum VisitPurpose {
|
|
9
|
-
CAR_VIEWING = "CAR_VIEWING",
|
|
10
|
-
SELL_MY_CAR = "SELL_MY_CAR"
|
|
11
|
-
}
|
|
1
|
+
export declare enum VisitStatus {
|
|
2
|
+
SCHEDULED = "SCHEDULED",
|
|
3
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
4
|
+
COMPLETED = "COMPLETED",
|
|
5
|
+
CANCELLED = "CANCELLED",
|
|
6
|
+
NO_SHOW = "NO_SHOW"
|
|
7
|
+
}
|
|
8
|
+
export declare enum VisitPurpose {
|
|
9
|
+
CAR_VIEWING = "CAR_VIEWING",
|
|
10
|
+
SELL_MY_CAR = "SELL_MY_CAR"
|
|
11
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./dto/ShowroomVisit";
|
|
2
|
-
export * from "./enums/index";
|
|
1
|
+
export * from "./dto/ShowroomVisit";
|
|
2
|
+
export * from "./enums/index";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./data";
|
|
1
|
+
export * from "./data";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TestDriveRequest } from "../data";
|
|
2
|
-
declare const getTestDriveVehicles: () => Promise<TestDriveRequest[]>;
|
|
3
|
-
export default getTestDriveVehicles;
|
|
1
|
+
import { TestDriveRequest } from "../data";
|
|
2
|
+
declare const getTestDriveVehicles: () => Promise<TestDriveRequest[]>;
|
|
3
|
+
export default getTestDriveVehicles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./GetTestDriveVehicles";
|
|
1
|
+
export * from "./GetTestDriveVehicles";
|