@alba-cars/common-modules 2.12.6 → 2.12.8
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 +24 -24
- 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 +76 -76
- 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 +24 -24
- package/dist/features/models/VehicleMake.d.ts +14 -14
- package/dist/features/models/VehicleMedia.d.ts +12 -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 +191 -191
- 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 +143 -143
- 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 +257 -257
- 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/index.js +1 -1
- package/dist/models.d.ts +1 -1
- package/package.json +62 -62
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { BaseGetDTO, TypedFilter, TypedOptions } from "../../../../global";
|
|
2
|
-
import { LeadDTO } from "./lead_dto";
|
|
3
|
-
import { Range } from "../../../../core";
|
|
4
|
-
export declare enum CarCondition {
|
|
5
|
-
NEW = "NEW",
|
|
6
|
-
USED = "USED",
|
|
7
|
-
BOTH = "BOTH"
|
|
8
|
-
}
|
|
9
|
-
export declare enum TransmissionType {
|
|
10
|
-
AUTOMATIC = "AUTOMATIC",
|
|
11
|
-
MANUAL = "MANUAL",
|
|
12
|
-
BOTH = "BOTH"
|
|
13
|
-
}
|
|
14
|
-
export declare enum FuelType {
|
|
15
|
-
PETROL = "PETROL",
|
|
16
|
-
DIESEL = "DIESEL",
|
|
17
|
-
ELECTRIC = "ELECTRIC",
|
|
18
|
-
HYBRID = "HYBRID",
|
|
19
|
-
ANY = "ANY"
|
|
20
|
-
}
|
|
21
|
-
export declare class LeadPreferenceHistoryDTO {
|
|
22
|
-
id: string;
|
|
23
|
-
lead: LeadDTO;
|
|
24
|
-
budgetMin?: number;
|
|
25
|
-
budgetMax?: number;
|
|
26
|
-
preferredMake?: string;
|
|
27
|
-
preferredModel?: string;
|
|
28
|
-
preferredYearMin?: number;
|
|
29
|
-
preferredYearMax?: number;
|
|
30
|
-
preferredColors?: string[];
|
|
31
|
-
preferredFeatures?: string[];
|
|
32
|
-
carCondition: CarCondition;
|
|
33
|
-
transmissionType: TransmissionType;
|
|
34
|
-
fuelType: FuelType;
|
|
35
|
-
additionalPreferences?: string;
|
|
36
|
-
changeReason?: string;
|
|
37
|
-
changedByUserId: string;
|
|
38
|
-
createdAt: Date;
|
|
39
|
-
updatedAt: Date;
|
|
40
|
-
validate(): string[];
|
|
41
|
-
static fromPlain(plain: Record<string, unknown>): LeadPreferenceHistoryDTO;
|
|
42
|
-
toPlain(): Record<string, unknown>;
|
|
43
|
-
}
|
|
44
|
-
export declare class LeadPreferenceHistoryCreateDTO {
|
|
45
|
-
leadId: string;
|
|
46
|
-
budgetMin?: number;
|
|
47
|
-
budgetMax?: number;
|
|
48
|
-
preferredMake?: string;
|
|
49
|
-
preferredModel?: string;
|
|
50
|
-
preferredYearMin?: number;
|
|
51
|
-
preferredYearMax?: number;
|
|
52
|
-
preferredColors?: string[];
|
|
53
|
-
preferredFeatures?: string[];
|
|
54
|
-
carCondition: CarCondition;
|
|
55
|
-
transmissionType: TransmissionType;
|
|
56
|
-
fuelType: FuelType;
|
|
57
|
-
additionalPreferences?: string;
|
|
58
|
-
changeReason: string;
|
|
59
|
-
changedByUserId: string;
|
|
60
|
-
validate(): string[];
|
|
61
|
-
static fromPlain(plain: Record<string, unknown>): LeadPreferenceHistoryCreateDTO;
|
|
62
|
-
toPlain(): Record<string, unknown>;
|
|
63
|
-
}
|
|
64
|
-
export declare class LeadPreferenceHistoryFilter extends TypedFilter {
|
|
65
|
-
id?: string | string[];
|
|
66
|
-
leadId?: string | string[];
|
|
67
|
-
budgetRange?: Range;
|
|
68
|
-
make?: string;
|
|
69
|
-
model?: string;
|
|
70
|
-
yearRange?: Range;
|
|
71
|
-
colors?: string[];
|
|
72
|
-
features?: string[];
|
|
73
|
-
carCondition?: CarCondition | CarCondition[];
|
|
74
|
-
transmissionType?: TransmissionType | TransmissionType[];
|
|
75
|
-
fuelType?: FuelType | FuelType[];
|
|
76
|
-
changedByUserId?: string | string[];
|
|
77
|
-
search?: string;
|
|
78
|
-
fromDate?: Date;
|
|
79
|
-
toDate?: Date;
|
|
80
|
-
}
|
|
81
|
-
export declare class LeadPreferenceHistoryGetDTO extends BaseGetDTO<LeadPreferenceHistoryDTO, LeadPreferenceHistoryFilter> {
|
|
82
|
-
filters?: LeadPreferenceHistoryFilter;
|
|
83
|
-
options?: TypedOptions<LeadPreferenceHistoryDTO>;
|
|
84
|
-
}
|
|
1
|
+
import { BaseGetDTO, TypedFilter, TypedOptions } from "../../../../global";
|
|
2
|
+
import { LeadDTO } from "./lead_dto";
|
|
3
|
+
import { Range } from "../../../../core";
|
|
4
|
+
export declare enum CarCondition {
|
|
5
|
+
NEW = "NEW",
|
|
6
|
+
USED = "USED",
|
|
7
|
+
BOTH = "BOTH"
|
|
8
|
+
}
|
|
9
|
+
export declare enum TransmissionType {
|
|
10
|
+
AUTOMATIC = "AUTOMATIC",
|
|
11
|
+
MANUAL = "MANUAL",
|
|
12
|
+
BOTH = "BOTH"
|
|
13
|
+
}
|
|
14
|
+
export declare enum FuelType {
|
|
15
|
+
PETROL = "PETROL",
|
|
16
|
+
DIESEL = "DIESEL",
|
|
17
|
+
ELECTRIC = "ELECTRIC",
|
|
18
|
+
HYBRID = "HYBRID",
|
|
19
|
+
ANY = "ANY"
|
|
20
|
+
}
|
|
21
|
+
export declare class LeadPreferenceHistoryDTO {
|
|
22
|
+
id: string;
|
|
23
|
+
lead: LeadDTO;
|
|
24
|
+
budgetMin?: number;
|
|
25
|
+
budgetMax?: number;
|
|
26
|
+
preferredMake?: string;
|
|
27
|
+
preferredModel?: string;
|
|
28
|
+
preferredYearMin?: number;
|
|
29
|
+
preferredYearMax?: number;
|
|
30
|
+
preferredColors?: string[];
|
|
31
|
+
preferredFeatures?: string[];
|
|
32
|
+
carCondition: CarCondition;
|
|
33
|
+
transmissionType: TransmissionType;
|
|
34
|
+
fuelType: FuelType;
|
|
35
|
+
additionalPreferences?: string;
|
|
36
|
+
changeReason?: string;
|
|
37
|
+
changedByUserId: string;
|
|
38
|
+
createdAt: Date;
|
|
39
|
+
updatedAt: Date;
|
|
40
|
+
validate(): string[];
|
|
41
|
+
static fromPlain(plain: Record<string, unknown>): LeadPreferenceHistoryDTO;
|
|
42
|
+
toPlain(): Record<string, unknown>;
|
|
43
|
+
}
|
|
44
|
+
export declare class LeadPreferenceHistoryCreateDTO {
|
|
45
|
+
leadId: string;
|
|
46
|
+
budgetMin?: number;
|
|
47
|
+
budgetMax?: number;
|
|
48
|
+
preferredMake?: string;
|
|
49
|
+
preferredModel?: string;
|
|
50
|
+
preferredYearMin?: number;
|
|
51
|
+
preferredYearMax?: number;
|
|
52
|
+
preferredColors?: string[];
|
|
53
|
+
preferredFeatures?: string[];
|
|
54
|
+
carCondition: CarCondition;
|
|
55
|
+
transmissionType: TransmissionType;
|
|
56
|
+
fuelType: FuelType;
|
|
57
|
+
additionalPreferences?: string;
|
|
58
|
+
changeReason: string;
|
|
59
|
+
changedByUserId: string;
|
|
60
|
+
validate(): string[];
|
|
61
|
+
static fromPlain(plain: Record<string, unknown>): LeadPreferenceHistoryCreateDTO;
|
|
62
|
+
toPlain(): Record<string, unknown>;
|
|
63
|
+
}
|
|
64
|
+
export declare class LeadPreferenceHistoryFilter extends TypedFilter {
|
|
65
|
+
id?: string | string[];
|
|
66
|
+
leadId?: string | string[];
|
|
67
|
+
budgetRange?: Range;
|
|
68
|
+
make?: string;
|
|
69
|
+
model?: string;
|
|
70
|
+
yearRange?: Range;
|
|
71
|
+
colors?: string[];
|
|
72
|
+
features?: string[];
|
|
73
|
+
carCondition?: CarCondition | CarCondition[];
|
|
74
|
+
transmissionType?: TransmissionType | TransmissionType[];
|
|
75
|
+
fuelType?: FuelType | FuelType[];
|
|
76
|
+
changedByUserId?: string | string[];
|
|
77
|
+
search?: string;
|
|
78
|
+
fromDate?: Date;
|
|
79
|
+
toDate?: Date;
|
|
80
|
+
}
|
|
81
|
+
export declare class LeadPreferenceHistoryGetDTO extends BaseGetDTO<LeadPreferenceHistoryDTO, LeadPreferenceHistoryFilter> {
|
|
82
|
+
filters?: LeadPreferenceHistoryFilter;
|
|
83
|
+
options?: TypedOptions<LeadPreferenceHistoryDTO>;
|
|
84
|
+
}
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { BaseGetDTO, TypedFilter, TypedOptions } from "../../../../global";
|
|
2
|
-
import { Range } from "../../../../core";
|
|
3
|
-
export declare class LeadPreferencesDTO {
|
|
4
|
-
id?: string;
|
|
5
|
-
budgetMin?: number;
|
|
6
|
-
budgetMax?: number;
|
|
7
|
-
preferredMake?: string;
|
|
8
|
-
preferredModel?: string;
|
|
9
|
-
preferredYearMin?: number;
|
|
10
|
-
preferredYearMax?: number;
|
|
11
|
-
mileageMin?: number;
|
|
12
|
-
mileageMax?: number;
|
|
13
|
-
preferredColors?: string[];
|
|
14
|
-
preferredFeatures?: string[];
|
|
15
|
-
additionalPreferences?: string;
|
|
16
|
-
validate(): string[];
|
|
17
|
-
static fromPlain(plain: Record<string, unknown>): LeadPreferencesDTO;
|
|
18
|
-
toPlain(): Record<string, unknown>;
|
|
19
|
-
}
|
|
20
|
-
export declare class LeadPreferencesUpdateDTO {
|
|
21
|
-
budgetMin?: number;
|
|
22
|
-
budgetMax?: number;
|
|
23
|
-
preferredMake?: string;
|
|
24
|
-
preferredModel?: string;
|
|
25
|
-
preferredYearMin?: number;
|
|
26
|
-
preferredYearMax?: number;
|
|
27
|
-
mileageMin?: number;
|
|
28
|
-
mileageMax?: number;
|
|
29
|
-
preferredColors?: string[];
|
|
30
|
-
preferredFeatures?: string[];
|
|
31
|
-
additionalPreferences?: string;
|
|
32
|
-
validate(): string[];
|
|
33
|
-
static fromPlain(plain: Record<string, unknown>): LeadPreferencesUpdateDTO;
|
|
34
|
-
toPlain(): Record<string, unknown>;
|
|
35
|
-
}
|
|
36
|
-
export declare class LeadPreferencesCreateDTO {
|
|
37
|
-
budgetMin?: number;
|
|
38
|
-
budgetMax?: number;
|
|
39
|
-
preferredMake?: string;
|
|
40
|
-
preferredModel?: string;
|
|
41
|
-
preferredYearMin?: number;
|
|
42
|
-
preferredYearMax?: number;
|
|
43
|
-
mileageMin?: number;
|
|
44
|
-
mileageMax?: number;
|
|
45
|
-
preferredColors?: string[];
|
|
46
|
-
preferredFeatures?: string[];
|
|
47
|
-
additionalPreferences?: string;
|
|
48
|
-
validate(): string[];
|
|
49
|
-
static fromPlain(plain: Record<string, unknown>): LeadPreferencesCreateDTO;
|
|
50
|
-
toPlain(): Record<string, unknown>;
|
|
51
|
-
}
|
|
52
|
-
export declare class LeadPreferencesFilter extends TypedFilter {
|
|
53
|
-
id?: string | string[];
|
|
54
|
-
budgetRange?: Range;
|
|
55
|
-
make?: string;
|
|
56
|
-
model?: string;
|
|
57
|
-
yearRange?: Range;
|
|
58
|
-
mileageRange?: Range;
|
|
59
|
-
colors?: string[];
|
|
60
|
-
features?: string[];
|
|
61
|
-
search?: string;
|
|
62
|
-
fromDate?: Date;
|
|
63
|
-
toDate?: Date;
|
|
64
|
-
}
|
|
65
|
-
export declare class LeadPreferencesGetDTO extends BaseGetDTO<LeadPreferencesDTO, LeadPreferencesFilter> {
|
|
66
|
-
filters?: LeadPreferencesFilter;
|
|
67
|
-
options?: TypedOptions<LeadPreferencesDTO>;
|
|
68
|
-
}
|
|
1
|
+
import { BaseGetDTO, TypedFilter, TypedOptions } from "../../../../global";
|
|
2
|
+
import { Range } from "../../../../core";
|
|
3
|
+
export declare class LeadPreferencesDTO {
|
|
4
|
+
id?: string;
|
|
5
|
+
budgetMin?: number;
|
|
6
|
+
budgetMax?: number;
|
|
7
|
+
preferredMake?: string;
|
|
8
|
+
preferredModel?: string;
|
|
9
|
+
preferredYearMin?: number;
|
|
10
|
+
preferredYearMax?: number;
|
|
11
|
+
mileageMin?: number;
|
|
12
|
+
mileageMax?: number;
|
|
13
|
+
preferredColors?: string[];
|
|
14
|
+
preferredFeatures?: string[];
|
|
15
|
+
additionalPreferences?: string;
|
|
16
|
+
validate(): string[];
|
|
17
|
+
static fromPlain(plain: Record<string, unknown>): LeadPreferencesDTO;
|
|
18
|
+
toPlain(): Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
export declare class LeadPreferencesUpdateDTO {
|
|
21
|
+
budgetMin?: number;
|
|
22
|
+
budgetMax?: number;
|
|
23
|
+
preferredMake?: string;
|
|
24
|
+
preferredModel?: string;
|
|
25
|
+
preferredYearMin?: number;
|
|
26
|
+
preferredYearMax?: number;
|
|
27
|
+
mileageMin?: number;
|
|
28
|
+
mileageMax?: number;
|
|
29
|
+
preferredColors?: string[];
|
|
30
|
+
preferredFeatures?: string[];
|
|
31
|
+
additionalPreferences?: string;
|
|
32
|
+
validate(): string[];
|
|
33
|
+
static fromPlain(plain: Record<string, unknown>): LeadPreferencesUpdateDTO;
|
|
34
|
+
toPlain(): Record<string, unknown>;
|
|
35
|
+
}
|
|
36
|
+
export declare class LeadPreferencesCreateDTO {
|
|
37
|
+
budgetMin?: number;
|
|
38
|
+
budgetMax?: number;
|
|
39
|
+
preferredMake?: string;
|
|
40
|
+
preferredModel?: string;
|
|
41
|
+
preferredYearMin?: number;
|
|
42
|
+
preferredYearMax?: number;
|
|
43
|
+
mileageMin?: number;
|
|
44
|
+
mileageMax?: number;
|
|
45
|
+
preferredColors?: string[];
|
|
46
|
+
preferredFeatures?: string[];
|
|
47
|
+
additionalPreferences?: string;
|
|
48
|
+
validate(): string[];
|
|
49
|
+
static fromPlain(plain: Record<string, unknown>): LeadPreferencesCreateDTO;
|
|
50
|
+
toPlain(): Record<string, unknown>;
|
|
51
|
+
}
|
|
52
|
+
export declare class LeadPreferencesFilter extends TypedFilter {
|
|
53
|
+
id?: string | string[];
|
|
54
|
+
budgetRange?: Range;
|
|
55
|
+
make?: string;
|
|
56
|
+
model?: string;
|
|
57
|
+
yearRange?: Range;
|
|
58
|
+
mileageRange?: Range;
|
|
59
|
+
colors?: string[];
|
|
60
|
+
features?: string[];
|
|
61
|
+
search?: string;
|
|
62
|
+
fromDate?: Date;
|
|
63
|
+
toDate?: Date;
|
|
64
|
+
}
|
|
65
|
+
export declare class LeadPreferencesGetDTO extends BaseGetDTO<LeadPreferencesDTO, LeadPreferencesFilter> {
|
|
66
|
+
filters?: LeadPreferencesFilter;
|
|
67
|
+
options?: TypedOptions<LeadPreferencesDTO>;
|
|
68
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./lead_source_status_types";
|
|
2
|
-
export * from "./lead_status_type";
|
|
1
|
+
export * from "./lead_source_status_types";
|
|
2
|
+
export * from "./lead_status_type";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export declare enum LeadSource {
|
|
2
|
-
WEBSITE = "WEBSITE",
|
|
3
|
-
TEST_DRIVE_REQUEST = "TEST_DRIVE_REQUEST",
|
|
4
|
-
SELL_CAR_REQUEST = "SELL_CAR_REQUEST",
|
|
5
|
-
EXCHANGE_CAR_FORM = "EXCHANGE_CAR_FORM",
|
|
6
|
-
SHOWROOM_VISIT = "SHOWROOM_VISIT",
|
|
7
|
-
FINANCE_ELIGIBILITY_REQUEST = "FINANCE_ELIGIBILITY_REQUEST",
|
|
8
|
-
BANK_VALUATION_REQUEST = "BANK_VALUATION_REQUEST",
|
|
9
|
-
FREE_VALUATION = "FREE_VALUATION",
|
|
10
|
-
PHONE = "PHONE",
|
|
11
|
-
WALK_IN = "WALK_IN",
|
|
12
|
-
REFERRAL = "REFERRAL",
|
|
13
|
-
SOCIAL_MEDIA = "SOCIAL_MEDIA",
|
|
14
|
-
OTHER = "OTHER"
|
|
15
|
-
}
|
|
1
|
+
export declare enum LeadSource {
|
|
2
|
+
WEBSITE = "WEBSITE",
|
|
3
|
+
TEST_DRIVE_REQUEST = "TEST_DRIVE_REQUEST",
|
|
4
|
+
SELL_CAR_REQUEST = "SELL_CAR_REQUEST",
|
|
5
|
+
EXCHANGE_CAR_FORM = "EXCHANGE_CAR_FORM",
|
|
6
|
+
SHOWROOM_VISIT = "SHOWROOM_VISIT",
|
|
7
|
+
FINANCE_ELIGIBILITY_REQUEST = "FINANCE_ELIGIBILITY_REQUEST",
|
|
8
|
+
BANK_VALUATION_REQUEST = "BANK_VALUATION_REQUEST",
|
|
9
|
+
FREE_VALUATION = "FREE_VALUATION",
|
|
10
|
+
PHONE = "PHONE",
|
|
11
|
+
WALK_IN = "WALK_IN",
|
|
12
|
+
REFERRAL = "REFERRAL",
|
|
13
|
+
SOCIAL_MEDIA = "SOCIAL_MEDIA",
|
|
14
|
+
OTHER = "OTHER"
|
|
15
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare enum LeadStatus {
|
|
2
|
-
NEW = "NEW",
|
|
3
|
-
CONTACTED = "CONTACTED",
|
|
4
|
-
QUALIFIED = "QUALIFIED",
|
|
5
|
-
NEGOTIATING = "NEGOTIATING",
|
|
6
|
-
CLOSED_WON = "CLOSED_WON",
|
|
7
|
-
CLOSED_LOST = "CLOSED_LOST"
|
|
8
|
-
}
|
|
1
|
+
export declare enum LeadStatus {
|
|
2
|
+
NEW = "NEW",
|
|
3
|
+
CONTACTED = "CONTACTED",
|
|
4
|
+
QUALIFIED = "QUALIFIED",
|
|
5
|
+
NEGOTIATING = "NEGOTIATING",
|
|
6
|
+
CLOSED_WON = "CLOSED_WON",
|
|
7
|
+
CLOSED_LOST = "CLOSED_LOST"
|
|
8
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./data/dto";
|
|
2
|
-
export * from "./data/enum";
|
|
1
|
+
export * from "./data/dto";
|
|
2
|
+
export * from "./data/enum";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare class Bank {
|
|
2
|
-
id: string;
|
|
3
|
-
slug: string;
|
|
4
|
-
name: string;
|
|
5
|
-
imageUrl: string;
|
|
6
|
-
isActive: boolean;
|
|
7
|
-
createdAt: Date;
|
|
8
|
-
updatedAt: Date;
|
|
9
|
-
}
|
|
1
|
+
export declare class Bank {
|
|
2
|
+
id: string;
|
|
3
|
+
slug: string;
|
|
4
|
+
name: string;
|
|
5
|
+
imageUrl: string;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { MarketingData } from "../../core";
|
|
2
|
-
import { Payment } from "./Payment";
|
|
3
|
-
import { User } from "./User";
|
|
4
|
-
export declare const BankValuationRequestStatus: {
|
|
5
|
-
readonly PENDING: "pending";
|
|
6
|
-
readonly PAID: "paid";
|
|
7
|
-
readonly PAYMENT_DECLINED: "payment_declined";
|
|
8
|
-
readonly REJECTED: "rejected";
|
|
9
|
-
readonly APPROVED: "approved";
|
|
10
|
-
};
|
|
11
|
-
export type BankValuationRequestStatusType = (typeof BankValuationRequestStatus)[keyof typeof BankValuationRequestStatus];
|
|
12
|
-
export declare class BankValuationRequest {
|
|
13
|
-
id: string;
|
|
14
|
-
refId: number;
|
|
15
|
-
createdBy?: User;
|
|
16
|
-
name: string;
|
|
17
|
-
email: string;
|
|
18
|
-
phone: string;
|
|
19
|
-
clientName?: string | null;
|
|
20
|
-
clientEmail?: string | null;
|
|
21
|
-
clientPhone?: string | null;
|
|
22
|
-
bankName: string;
|
|
23
|
-
bankerEmail?: string;
|
|
24
|
-
makeDealDriveId?: string;
|
|
25
|
-
make: string;
|
|
26
|
-
modelDealDriveId?: string;
|
|
27
|
-
model: string;
|
|
28
|
-
trimDealDriveId?: string;
|
|
29
|
-
trim?: string;
|
|
30
|
-
trimOptionDealDriveId?: string;
|
|
31
|
-
trimOption?: string;
|
|
32
|
-
year: number;
|
|
33
|
-
color?: string;
|
|
34
|
-
vin: string;
|
|
35
|
-
engineSize?: number | null;
|
|
36
|
-
engineNumber?: string | null;
|
|
37
|
-
engineType?: string | null;
|
|
38
|
-
mileage: number;
|
|
39
|
-
specs: string;
|
|
40
|
-
specification?: string | null;
|
|
41
|
-
value: number;
|
|
42
|
-
comments?: string;
|
|
43
|
-
status: BankValuationRequestStatusType;
|
|
44
|
-
images?: string[];
|
|
45
|
-
extraIssuedCertificates?: string[];
|
|
46
|
-
payment?: Payment | null;
|
|
47
|
-
dealDriveEstimatedPrice?: number;
|
|
48
|
-
dealDriveEstimateDate?: Date;
|
|
49
|
-
createdAt?: Date;
|
|
50
|
-
updatedAt?: Date;
|
|
51
|
-
sessionId?: string | null;
|
|
52
|
-
bankApplicationId?: string | null;
|
|
53
|
-
rejectionReason?: string | null;
|
|
54
|
-
approvalComments?: string | null;
|
|
55
|
-
approvedValuation?: number | null;
|
|
56
|
-
certificateUrl?: string | null;
|
|
57
|
-
marketing?: MarketingData;
|
|
58
|
-
isDeleted: boolean;
|
|
59
|
-
deletedAt?: Date | null;
|
|
60
|
-
deletedReason?: string | null;
|
|
61
|
-
clientMileage?: number | null;
|
|
62
|
-
mileageUnit: "km" | "miles";
|
|
63
|
-
}
|
|
1
|
+
import { MarketingData } from "../../core";
|
|
2
|
+
import { Payment } from "./Payment";
|
|
3
|
+
import { User } from "./User";
|
|
4
|
+
export declare const BankValuationRequestStatus: {
|
|
5
|
+
readonly PENDING: "pending";
|
|
6
|
+
readonly PAID: "paid";
|
|
7
|
+
readonly PAYMENT_DECLINED: "payment_declined";
|
|
8
|
+
readonly REJECTED: "rejected";
|
|
9
|
+
readonly APPROVED: "approved";
|
|
10
|
+
};
|
|
11
|
+
export type BankValuationRequestStatusType = (typeof BankValuationRequestStatus)[keyof typeof BankValuationRequestStatus];
|
|
12
|
+
export declare class BankValuationRequest {
|
|
13
|
+
id: string;
|
|
14
|
+
refId: number;
|
|
15
|
+
createdBy?: User;
|
|
16
|
+
name: string;
|
|
17
|
+
email: string;
|
|
18
|
+
phone: string;
|
|
19
|
+
clientName?: string | null;
|
|
20
|
+
clientEmail?: string | null;
|
|
21
|
+
clientPhone?: string | null;
|
|
22
|
+
bankName: string;
|
|
23
|
+
bankerEmail?: string;
|
|
24
|
+
makeDealDriveId?: string;
|
|
25
|
+
make: string;
|
|
26
|
+
modelDealDriveId?: string;
|
|
27
|
+
model: string;
|
|
28
|
+
trimDealDriveId?: string;
|
|
29
|
+
trim?: string;
|
|
30
|
+
trimOptionDealDriveId?: string;
|
|
31
|
+
trimOption?: string;
|
|
32
|
+
year: number;
|
|
33
|
+
color?: string;
|
|
34
|
+
vin: string;
|
|
35
|
+
engineSize?: number | null;
|
|
36
|
+
engineNumber?: string | null;
|
|
37
|
+
engineType?: string | null;
|
|
38
|
+
mileage: number;
|
|
39
|
+
specs: string;
|
|
40
|
+
specification?: string | null;
|
|
41
|
+
value: number;
|
|
42
|
+
comments?: string;
|
|
43
|
+
status: BankValuationRequestStatusType;
|
|
44
|
+
images?: string[];
|
|
45
|
+
extraIssuedCertificates?: string[];
|
|
46
|
+
payment?: Payment | null;
|
|
47
|
+
dealDriveEstimatedPrice?: number;
|
|
48
|
+
dealDriveEstimateDate?: Date;
|
|
49
|
+
createdAt?: Date;
|
|
50
|
+
updatedAt?: Date;
|
|
51
|
+
sessionId?: string | null;
|
|
52
|
+
bankApplicationId?: string | null;
|
|
53
|
+
rejectionReason?: string | null;
|
|
54
|
+
approvalComments?: string | null;
|
|
55
|
+
approvedValuation?: number | null;
|
|
56
|
+
certificateUrl?: string | null;
|
|
57
|
+
marketing?: MarketingData;
|
|
58
|
+
isDeleted: boolean;
|
|
59
|
+
deletedAt?: Date | null;
|
|
60
|
+
deletedReason?: string | null;
|
|
61
|
+
clientMileage?: number | null;
|
|
62
|
+
mileageUnit: "km" | "miles";
|
|
63
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { User } from "./_index";
|
|
2
|
-
import { BankValuationRequest } from "./BankValuationRequest";
|
|
3
|
-
export declare const BankValuationAction: {
|
|
4
|
-
readonly APPROVAL: "approval";
|
|
5
|
-
readonly REJECTION: "rejection";
|
|
6
|
-
readonly ISSUED_FOR_FREE: "issued_for_free";
|
|
7
|
-
readonly REISSUED_CERTIFICATE: "reissued_certificate";
|
|
8
|
-
readonly EDITED: "edited";
|
|
9
|
-
};
|
|
10
|
-
export type BankValuationActionType = (typeof BankValuationAction)[keyof typeof BankValuationAction];
|
|
11
|
-
export declare class BankValuationResult {
|
|
12
|
-
id: string;
|
|
13
|
-
refId: number;
|
|
14
|
-
action: BankValuationActionType;
|
|
15
|
-
doneBy: User;
|
|
16
|
-
bankValuationRequest: BankValuationRequest;
|
|
17
|
-
dealDriveEstimatedPrice?: number;
|
|
18
|
-
rejectionReason?: string;
|
|
19
|
-
approvalComments?: string;
|
|
20
|
-
approvedValuation?: number;
|
|
21
|
-
certificateUrl?: string;
|
|
22
|
-
createdAt: Date;
|
|
23
|
-
updatedAt: Date;
|
|
24
|
-
}
|
|
1
|
+
import { User } from "./_index";
|
|
2
|
+
import { BankValuationRequest } from "./BankValuationRequest";
|
|
3
|
+
export declare const BankValuationAction: {
|
|
4
|
+
readonly APPROVAL: "approval";
|
|
5
|
+
readonly REJECTION: "rejection";
|
|
6
|
+
readonly ISSUED_FOR_FREE: "issued_for_free";
|
|
7
|
+
readonly REISSUED_CERTIFICATE: "reissued_certificate";
|
|
8
|
+
readonly EDITED: "edited";
|
|
9
|
+
};
|
|
10
|
+
export type BankValuationActionType = (typeof BankValuationAction)[keyof typeof BankValuationAction];
|
|
11
|
+
export declare class BankValuationResult {
|
|
12
|
+
id: string;
|
|
13
|
+
refId: number;
|
|
14
|
+
action: BankValuationActionType;
|
|
15
|
+
doneBy: User;
|
|
16
|
+
bankValuationRequest: BankValuationRequest;
|
|
17
|
+
dealDriveEstimatedPrice?: number;
|
|
18
|
+
rejectionReason?: string;
|
|
19
|
+
approvalComments?: string;
|
|
20
|
+
approvedValuation?: number;
|
|
21
|
+
certificateUrl?: string;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { User } from "./User";
|
|
2
|
-
export declare class BaseModel {
|
|
3
|
-
id: string;
|
|
4
|
-
refId: number;
|
|
5
|
-
createdBy: User;
|
|
6
|
-
updatedBy?: User;
|
|
7
|
-
deletedBy?: User;
|
|
8
|
-
isDeleted: boolean;
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
createdAt: Date;
|
|
11
|
-
updatedAt?: Date;
|
|
12
|
-
}
|
|
1
|
+
import { User } from "./User";
|
|
2
|
+
export declare class BaseModel {
|
|
3
|
+
id: string;
|
|
4
|
+
refId: number;
|
|
5
|
+
createdBy: User;
|
|
6
|
+
updatedBy?: User;
|
|
7
|
+
deletedBy?: User;
|
|
8
|
+
isDeleted: boolean;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare class Color {
|
|
2
|
-
id: string;
|
|
3
|
-
slug: string;
|
|
4
|
-
name: string;
|
|
5
|
-
nameArabic?: string;
|
|
6
|
-
nameRussian?: string;
|
|
7
|
-
nameChinese?: string;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
|
-
}
|
|
1
|
+
export declare class Color {
|
|
2
|
+
id: string;
|
|
3
|
+
slug: string;
|
|
4
|
+
name: string;
|
|
5
|
+
nameArabic?: string;
|
|
6
|
+
nameRussian?: string;
|
|
7
|
+
nameChinese?: string;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { LeadDTO } from "../lead/data/dto/lead_dto";
|
|
2
|
-
import { User } from "./User";
|
|
3
|
-
import { Vehicle } from "./Vehicle";
|
|
4
|
-
export declare class Deposit {
|
|
5
|
-
id: string;
|
|
6
|
-
stripePaymentIntentId: string;
|
|
7
|
-
amount: number;
|
|
8
|
-
currency: string;
|
|
9
|
-
status: "pending" | "completed" | "failed";
|
|
10
|
-
isRefundable: boolean;
|
|
11
|
-
isRefunded: boolean;
|
|
12
|
-
lead?: LeadDTO;
|
|
13
|
-
user?: User;
|
|
14
|
-
vehicle: Vehicle;
|
|
15
|
-
isDeleted?: boolean;
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
updatedAt: Date;
|
|
18
|
-
}
|
|
1
|
+
import { LeadDTO } from "../lead/data/dto/lead_dto";
|
|
2
|
+
import { User } from "./User";
|
|
3
|
+
import { Vehicle } from "./Vehicle";
|
|
4
|
+
export declare class Deposit {
|
|
5
|
+
id: string;
|
|
6
|
+
stripePaymentIntentId: string;
|
|
7
|
+
amount: number;
|
|
8
|
+
currency: string;
|
|
9
|
+
status: "pending" | "completed" | "failed";
|
|
10
|
+
isRefundable: boolean;
|
|
11
|
+
isRefunded: boolean;
|
|
12
|
+
lead?: LeadDTO;
|
|
13
|
+
user?: User;
|
|
14
|
+
vehicle: Vehicle;
|
|
15
|
+
isDeleted?: boolean;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
}
|