@alba-cars/common-modules 2.12.5 → 2.12.6
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,15 +1,15 @@
|
|
|
1
|
-
import { FaqCategory } from "../enums";
|
|
2
|
-
export declare class MultilingualContent {
|
|
3
|
-
en: string;
|
|
4
|
-
ar: string;
|
|
5
|
-
ru: string;
|
|
6
|
-
zh: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class CreateFaqDTO {
|
|
9
|
-
question: MultilingualContent;
|
|
10
|
-
answer: MultilingualContent;
|
|
11
|
-
category: FaqCategory;
|
|
12
|
-
isActive?: boolean;
|
|
13
|
-
order?: number;
|
|
14
|
-
static fromPlain(plain: any): CreateFaqDTO;
|
|
15
|
-
}
|
|
1
|
+
import { FaqCategory } from "../enums";
|
|
2
|
+
export declare class MultilingualContent {
|
|
3
|
+
en: string;
|
|
4
|
+
ar: string;
|
|
5
|
+
ru: string;
|
|
6
|
+
zh: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class CreateFaqDTO {
|
|
9
|
+
question: MultilingualContent;
|
|
10
|
+
answer: MultilingualContent;
|
|
11
|
+
category: FaqCategory;
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
order?: number;
|
|
14
|
+
static fromPlain(plain: any): CreateFaqDTO;
|
|
15
|
+
}
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import { FaqCategory } from "../enums";
|
|
2
|
-
export declare class MultilingualContentFetch {
|
|
3
|
-
en: string;
|
|
4
|
-
ar: string;
|
|
5
|
-
ru: string;
|
|
6
|
-
zh: string;
|
|
7
|
-
toPlain(): {
|
|
8
|
-
en: string;
|
|
9
|
-
ar: string;
|
|
10
|
-
ru: string;
|
|
11
|
-
zh: string;
|
|
12
|
-
};
|
|
13
|
-
static fromPlain(plain: any): MultilingualContentFetch;
|
|
14
|
-
}
|
|
15
|
-
export declare class FaqFilterDTO {
|
|
16
|
-
search?: string;
|
|
17
|
-
searchLanguage?: 'en' | 'ar' | 'ru' | 'zh';
|
|
18
|
-
searchInAnswers?: boolean;
|
|
19
|
-
category?: FaqCategory;
|
|
20
|
-
isActive?: boolean;
|
|
21
|
-
constructor(init?: Partial<FaqFilterDTO>);
|
|
22
|
-
validate(shouldValidate?: boolean): string[];
|
|
23
|
-
static fromPlain(plain: any): FaqFilterDTO;
|
|
24
|
-
static toPlain(instance: FaqFilterDTO): Record<string, unknown>;
|
|
25
|
-
}
|
|
26
|
-
export declare class SortDTO {
|
|
27
|
-
field: string;
|
|
28
|
-
direction: 'asc' | 'desc';
|
|
29
|
-
}
|
|
30
|
-
export declare class FaqOptionsDTO {
|
|
31
|
-
page: number;
|
|
32
|
-
limit: number;
|
|
33
|
-
sort?: {
|
|
34
|
-
field: string;
|
|
35
|
-
direction: 'asc' | 'desc';
|
|
36
|
-
};
|
|
37
|
-
constructor(init?: Partial<FaqOptionsDTO>);
|
|
38
|
-
validate(shouldValidate?: boolean): string[];
|
|
39
|
-
static toPlain(instance: FaqOptionsDTO): Record<string, any>;
|
|
40
|
-
static fromPlain(plain: any): FaqOptionsDTO;
|
|
41
|
-
}
|
|
42
|
-
export declare class FaqFetchDTO {
|
|
43
|
-
filter?: FaqFilterDTO;
|
|
44
|
-
options?: FaqOptionsDTO;
|
|
45
|
-
static fromPlain(plain: any): FaqFetchDTO;
|
|
46
|
-
constructor(init?: Partial<FaqFetchDTO>);
|
|
47
|
-
static toPlain(instance: FaqFetchDTO): Record<string, unknown>;
|
|
48
|
-
}
|
|
49
|
-
export declare class FaqResponseDTO {
|
|
50
|
-
id: string;
|
|
51
|
-
question: MultilingualContentFetch;
|
|
52
|
-
answer: MultilingualContentFetch;
|
|
53
|
-
category: string;
|
|
54
|
-
isActive: boolean;
|
|
55
|
-
order: number;
|
|
56
|
-
createdAt: string;
|
|
57
|
-
updatedAt: string;
|
|
58
|
-
toPlain(): {
|
|
59
|
-
id: string;
|
|
60
|
-
question: {
|
|
61
|
-
en: string;
|
|
62
|
-
ar: string;
|
|
63
|
-
ru: string;
|
|
64
|
-
zh: string;
|
|
65
|
-
};
|
|
66
|
-
answer: {
|
|
67
|
-
en: string;
|
|
68
|
-
ar: string;
|
|
69
|
-
ru: string;
|
|
70
|
-
zh: string;
|
|
71
|
-
};
|
|
72
|
-
category: string;
|
|
73
|
-
isActive: boolean;
|
|
74
|
-
order: number;
|
|
75
|
-
createdAt: string;
|
|
76
|
-
updatedAt: string;
|
|
77
|
-
};
|
|
78
|
-
static fromPlain(plain: Record<string, any>): FaqResponseDTO;
|
|
79
|
-
validate(): string[];
|
|
80
|
-
}
|
|
81
|
-
export interface FaqApiResponse {
|
|
82
|
-
success: boolean;
|
|
83
|
-
message?: string;
|
|
84
|
-
error?: {
|
|
85
|
-
message: string;
|
|
86
|
-
code?: string;
|
|
87
|
-
details?: Record<string, any>;
|
|
88
|
-
};
|
|
89
|
-
data?: FaqResponseDTO;
|
|
90
|
-
}
|
|
91
|
-
export interface FaqListApiResponse {
|
|
92
|
-
success: boolean;
|
|
93
|
-
message?: string;
|
|
94
|
-
error?: {
|
|
95
|
-
message: string;
|
|
96
|
-
code?: string;
|
|
97
|
-
details?: Record<string, any>;
|
|
98
|
-
};
|
|
99
|
-
data?: {
|
|
100
|
-
items: FaqResponseDTO[];
|
|
101
|
-
total: number;
|
|
102
|
-
page: number;
|
|
103
|
-
limit: number;
|
|
104
|
-
};
|
|
105
|
-
}
|
|
1
|
+
import { FaqCategory } from "../enums";
|
|
2
|
+
export declare class MultilingualContentFetch {
|
|
3
|
+
en: string;
|
|
4
|
+
ar: string;
|
|
5
|
+
ru: string;
|
|
6
|
+
zh: string;
|
|
7
|
+
toPlain(): {
|
|
8
|
+
en: string;
|
|
9
|
+
ar: string;
|
|
10
|
+
ru: string;
|
|
11
|
+
zh: string;
|
|
12
|
+
};
|
|
13
|
+
static fromPlain(plain: any): MultilingualContentFetch;
|
|
14
|
+
}
|
|
15
|
+
export declare class FaqFilterDTO {
|
|
16
|
+
search?: string;
|
|
17
|
+
searchLanguage?: 'en' | 'ar' | 'ru' | 'zh';
|
|
18
|
+
searchInAnswers?: boolean;
|
|
19
|
+
category?: FaqCategory;
|
|
20
|
+
isActive?: boolean;
|
|
21
|
+
constructor(init?: Partial<FaqFilterDTO>);
|
|
22
|
+
validate(shouldValidate?: boolean): string[];
|
|
23
|
+
static fromPlain(plain: any): FaqFilterDTO;
|
|
24
|
+
static toPlain(instance: FaqFilterDTO): Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
export declare class SortDTO {
|
|
27
|
+
field: string;
|
|
28
|
+
direction: 'asc' | 'desc';
|
|
29
|
+
}
|
|
30
|
+
export declare class FaqOptionsDTO {
|
|
31
|
+
page: number;
|
|
32
|
+
limit: number;
|
|
33
|
+
sort?: {
|
|
34
|
+
field: string;
|
|
35
|
+
direction: 'asc' | 'desc';
|
|
36
|
+
};
|
|
37
|
+
constructor(init?: Partial<FaqOptionsDTO>);
|
|
38
|
+
validate(shouldValidate?: boolean): string[];
|
|
39
|
+
static toPlain(instance: FaqOptionsDTO): Record<string, any>;
|
|
40
|
+
static fromPlain(plain: any): FaqOptionsDTO;
|
|
41
|
+
}
|
|
42
|
+
export declare class FaqFetchDTO {
|
|
43
|
+
filter?: FaqFilterDTO;
|
|
44
|
+
options?: FaqOptionsDTO;
|
|
45
|
+
static fromPlain(plain: any): FaqFetchDTO;
|
|
46
|
+
constructor(init?: Partial<FaqFetchDTO>);
|
|
47
|
+
static toPlain(instance: FaqFetchDTO): Record<string, unknown>;
|
|
48
|
+
}
|
|
49
|
+
export declare class FaqResponseDTO {
|
|
50
|
+
id: string;
|
|
51
|
+
question: MultilingualContentFetch;
|
|
52
|
+
answer: MultilingualContentFetch;
|
|
53
|
+
category: string;
|
|
54
|
+
isActive: boolean;
|
|
55
|
+
order: number;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
toPlain(): {
|
|
59
|
+
id: string;
|
|
60
|
+
question: {
|
|
61
|
+
en: string;
|
|
62
|
+
ar: string;
|
|
63
|
+
ru: string;
|
|
64
|
+
zh: string;
|
|
65
|
+
};
|
|
66
|
+
answer: {
|
|
67
|
+
en: string;
|
|
68
|
+
ar: string;
|
|
69
|
+
ru: string;
|
|
70
|
+
zh: string;
|
|
71
|
+
};
|
|
72
|
+
category: string;
|
|
73
|
+
isActive: boolean;
|
|
74
|
+
order: number;
|
|
75
|
+
createdAt: string;
|
|
76
|
+
updatedAt: string;
|
|
77
|
+
};
|
|
78
|
+
static fromPlain(plain: Record<string, any>): FaqResponseDTO;
|
|
79
|
+
validate(): string[];
|
|
80
|
+
}
|
|
81
|
+
export interface FaqApiResponse {
|
|
82
|
+
success: boolean;
|
|
83
|
+
message?: string;
|
|
84
|
+
error?: {
|
|
85
|
+
message: string;
|
|
86
|
+
code?: string;
|
|
87
|
+
details?: Record<string, any>;
|
|
88
|
+
};
|
|
89
|
+
data?: FaqResponseDTO;
|
|
90
|
+
}
|
|
91
|
+
export interface FaqListApiResponse {
|
|
92
|
+
success: boolean;
|
|
93
|
+
message?: string;
|
|
94
|
+
error?: {
|
|
95
|
+
message: string;
|
|
96
|
+
code?: string;
|
|
97
|
+
details?: Record<string, any>;
|
|
98
|
+
};
|
|
99
|
+
data?: {
|
|
100
|
+
items: FaqResponseDTO[];
|
|
101
|
+
total: number;
|
|
102
|
+
page: number;
|
|
103
|
+
limit: number;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { FaqCategory } from "../enums";
|
|
2
|
-
export declare class UpdateMultilingualContent {
|
|
3
|
-
en?: string;
|
|
4
|
-
ar?: string;
|
|
5
|
-
ru?: string;
|
|
6
|
-
zh?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class UpdateFaqDTO {
|
|
9
|
-
question?: UpdateMultilingualContent;
|
|
10
|
-
answer?: UpdateMultilingualContent;
|
|
11
|
-
category: FaqCategory;
|
|
12
|
-
isActive?: boolean;
|
|
13
|
-
order?: number;
|
|
14
|
-
static fromPlain(plain: any): UpdateFaqDTO;
|
|
15
|
-
}
|
|
1
|
+
import { FaqCategory } from "../enums";
|
|
2
|
+
export declare class UpdateMultilingualContent {
|
|
3
|
+
en?: string;
|
|
4
|
+
ar?: string;
|
|
5
|
+
ru?: string;
|
|
6
|
+
zh?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class UpdateFaqDTO {
|
|
9
|
+
question?: UpdateMultilingualContent;
|
|
10
|
+
answer?: UpdateMultilingualContent;
|
|
11
|
+
category: FaqCategory;
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
order?: number;
|
|
14
|
+
static fromPlain(plain: any): UpdateFaqDTO;
|
|
15
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./CreateFaqDTO";
|
|
2
|
-
export * from "./UpdateFaqDTO";
|
|
3
|
-
export * from "./FaqFetchDTO";
|
|
1
|
+
export * from "./CreateFaqDTO";
|
|
2
|
+
export * from "./UpdateFaqDTO";
|
|
3
|
+
export * from "./FaqFetchDTO";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare enum FaqCategory {
|
|
2
|
-
FINANCE = "FINANCE",
|
|
3
|
-
SELL_CAR = "SELL_CAR",
|
|
4
|
-
BUY_CAR = "BUY_CAR",
|
|
5
|
-
HOME_PAGE = "HOME_PAGE"
|
|
6
|
-
}
|
|
1
|
+
export declare enum FaqCategory {
|
|
2
|
+
FINANCE = "FINANCE",
|
|
3
|
+
SELL_CAR = "SELL_CAR",
|
|
4
|
+
BUY_CAR = "BUY_CAR",
|
|
5
|
+
HOME_PAGE = "HOME_PAGE"
|
|
6
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./dtos/index";
|
|
2
|
-
export * from "./enums/index";
|
|
1
|
+
export * from "./dtos/index";
|
|
2
|
+
export * from "./enums/index";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./data";
|
|
1
|
+
export * from "./data";
|
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
import { DateFilter, PaginationOptions } from "../../../../global";
|
|
2
|
-
import { Lead, User } from "../../../models";
|
|
3
|
-
import { MarketingData } from "../../../../core";
|
|
4
|
-
export declare enum SalaryType {
|
|
5
|
-
WPS = "wps",
|
|
6
|
-
BANK_TRANSFER = "bank_transfer",
|
|
7
|
-
CASH = "cash",
|
|
8
|
-
OTHER = "other"
|
|
9
|
-
}
|
|
10
|
-
export declare enum EmployeeCount {
|
|
11
|
-
LESS_THAN_10 = "less_than_10",
|
|
12
|
-
BETWEEN_10_50 = "between_10_50",
|
|
13
|
-
MORE_THAN_50 = "more_than_50"
|
|
14
|
-
}
|
|
15
|
-
export declare enum YesNo {
|
|
16
|
-
YES = "yes",
|
|
17
|
-
NO = "no"
|
|
18
|
-
}
|
|
19
|
-
export declare enum EligibilityStatus {
|
|
20
|
-
ELIGIBLE = 1,
|
|
21
|
-
NOT_ELIGIBLE = 0
|
|
22
|
-
}
|
|
23
|
-
export declare enum Status {
|
|
24
|
-
PENDING = "pending",
|
|
25
|
-
APPROVED = "approved",
|
|
26
|
-
REJECTED = "rejected"
|
|
27
|
-
}
|
|
28
|
-
export declare class FinanceEligibilityRequestCreateDTO {
|
|
29
|
-
vehicleId?: string;
|
|
30
|
-
makeId?: string;
|
|
31
|
-
modelId?: string;
|
|
32
|
-
fullName: string;
|
|
33
|
-
email?: string;
|
|
34
|
-
contactNumber: string;
|
|
35
|
-
currentSalary: number;
|
|
36
|
-
existingLoans: YesNo;
|
|
37
|
-
totalMonthlyInstallments: number;
|
|
38
|
-
hasCreditScore: YesNo;
|
|
39
|
-
totalCreditLimit: number;
|
|
40
|
-
salaryType: SalaryType;
|
|
41
|
-
previousDisputes: YesNo;
|
|
42
|
-
employeeCount?: EmployeeCount;
|
|
43
|
-
isCompanyOlderThanOneYear: boolean;
|
|
44
|
-
hasLandline?: YesNo;
|
|
45
|
-
documents?: string[];
|
|
46
|
-
marketing?: MarketingData;
|
|
47
|
-
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityRequestCreateDTO;
|
|
48
|
-
toPlain(): Record<string, unknown>;
|
|
49
|
-
}
|
|
50
|
-
export declare class FinanceEligibilityRequestUpdateDTO {
|
|
51
|
-
vehicleId?: string;
|
|
52
|
-
makeId?: string;
|
|
53
|
-
modelId?: string;
|
|
54
|
-
fullName?: string;
|
|
55
|
-
email?: string;
|
|
56
|
-
contactNumber?: string;
|
|
57
|
-
currentSalary?: number;
|
|
58
|
-
existingLoans?: YesNo;
|
|
59
|
-
totalMonthlyInstallments?: number;
|
|
60
|
-
hasCreditScore?: YesNo;
|
|
61
|
-
totalCreditLimit?: number;
|
|
62
|
-
salaryType?: SalaryType;
|
|
63
|
-
previousDisputes?: YesNo;
|
|
64
|
-
employeeCount?: EmployeeCount;
|
|
65
|
-
isCompanyOlderThanOneYear?: boolean;
|
|
66
|
-
hasLandline?: YesNo;
|
|
67
|
-
eligibility?: EligibilityStatus;
|
|
68
|
-
documents?: string[];
|
|
69
|
-
status?: "pending" | "approved" | "rejected";
|
|
70
|
-
rejectionReason?: string;
|
|
71
|
-
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityRequestUpdateDTO;
|
|
72
|
-
toPlain(): Record<string, unknown>;
|
|
73
|
-
}
|
|
74
|
-
export declare class FinanceEligibilityRequestResponseDTO {
|
|
75
|
-
id: string;
|
|
76
|
-
vehicleId?: string;
|
|
77
|
-
vehicle?: {
|
|
78
|
-
id: string;
|
|
79
|
-
make: string;
|
|
80
|
-
model: string;
|
|
81
|
-
year: number;
|
|
82
|
-
};
|
|
83
|
-
makeId?: string;
|
|
84
|
-
modelId?: string;
|
|
85
|
-
make?: {
|
|
86
|
-
id: string;
|
|
87
|
-
name: string;
|
|
88
|
-
};
|
|
89
|
-
model?: {
|
|
90
|
-
id: string;
|
|
91
|
-
name: string;
|
|
92
|
-
};
|
|
93
|
-
fullName: string;
|
|
94
|
-
email?: string;
|
|
95
|
-
contactNumber: string;
|
|
96
|
-
currentSalary: number;
|
|
97
|
-
existingLoans: YesNo;
|
|
98
|
-
totalMonthlyInstallments: number;
|
|
99
|
-
hasCreditScore: YesNo;
|
|
100
|
-
totalCreditLimit: number;
|
|
101
|
-
salaryType: SalaryType;
|
|
102
|
-
previousDisputes: YesNo;
|
|
103
|
-
employeeCount: EmployeeCount;
|
|
104
|
-
isCompanyOlderThanOneYear: boolean;
|
|
105
|
-
hasLandline: YesNo;
|
|
106
|
-
documents: string[];
|
|
107
|
-
eligibility: EligibilityStatus;
|
|
108
|
-
user?: User;
|
|
109
|
-
lead?: Lead;
|
|
110
|
-
status: Status;
|
|
111
|
-
rejectionReason?: string;
|
|
112
|
-
marketing?: MarketingData;
|
|
113
|
-
createdAt: Date;
|
|
114
|
-
updatedAt: Date;
|
|
115
|
-
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityRequestResponseDTO;
|
|
116
|
-
toPlain(): Record<string, unknown>;
|
|
117
|
-
}
|
|
118
|
-
export declare class FinanceEligibilityFilterDTO {
|
|
119
|
-
search?: string;
|
|
120
|
-
vehicleId?: string;
|
|
121
|
-
leadId?: string;
|
|
122
|
-
eligibility?: EligibilityStatus;
|
|
123
|
-
salaryType?: SalaryType;
|
|
124
|
-
isActive?: boolean;
|
|
125
|
-
createdAt?: DateFilter;
|
|
126
|
-
marketing?: MarketingData;
|
|
127
|
-
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityFilterDTO;
|
|
128
|
-
toPlain(): Record<string, unknown>;
|
|
129
|
-
}
|
|
130
|
-
export declare class FinanceEligibilityOptionsDTO extends PaginationOptions {
|
|
131
|
-
sort?: {
|
|
132
|
-
field: string;
|
|
133
|
-
direction: "asc" | "desc";
|
|
134
|
-
};
|
|
135
|
-
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityFilterDTO;
|
|
136
|
-
toPlain(): Record<string, unknown>;
|
|
137
|
-
}
|
|
138
|
-
export declare class FinanceEligibilityFetchDTO {
|
|
139
|
-
filter: FinanceEligibilityFilterDTO;
|
|
140
|
-
options: FinanceEligibilityOptionsDTO;
|
|
141
|
-
validate(): string[];
|
|
142
|
-
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityFetchDTO;
|
|
143
|
-
toPlain(): Record<string, unknown>;
|
|
144
|
-
}
|
|
1
|
+
import { DateFilter, PaginationOptions } from "../../../../global";
|
|
2
|
+
import { Lead, User } from "../../../models";
|
|
3
|
+
import { MarketingData } from "../../../../core";
|
|
4
|
+
export declare enum SalaryType {
|
|
5
|
+
WPS = "wps",
|
|
6
|
+
BANK_TRANSFER = "bank_transfer",
|
|
7
|
+
CASH = "cash",
|
|
8
|
+
OTHER = "other"
|
|
9
|
+
}
|
|
10
|
+
export declare enum EmployeeCount {
|
|
11
|
+
LESS_THAN_10 = "less_than_10",
|
|
12
|
+
BETWEEN_10_50 = "between_10_50",
|
|
13
|
+
MORE_THAN_50 = "more_than_50"
|
|
14
|
+
}
|
|
15
|
+
export declare enum YesNo {
|
|
16
|
+
YES = "yes",
|
|
17
|
+
NO = "no"
|
|
18
|
+
}
|
|
19
|
+
export declare enum EligibilityStatus {
|
|
20
|
+
ELIGIBLE = 1,
|
|
21
|
+
NOT_ELIGIBLE = 0
|
|
22
|
+
}
|
|
23
|
+
export declare enum Status {
|
|
24
|
+
PENDING = "pending",
|
|
25
|
+
APPROVED = "approved",
|
|
26
|
+
REJECTED = "rejected"
|
|
27
|
+
}
|
|
28
|
+
export declare class FinanceEligibilityRequestCreateDTO {
|
|
29
|
+
vehicleId?: string;
|
|
30
|
+
makeId?: string;
|
|
31
|
+
modelId?: string;
|
|
32
|
+
fullName: string;
|
|
33
|
+
email?: string;
|
|
34
|
+
contactNumber: string;
|
|
35
|
+
currentSalary: number;
|
|
36
|
+
existingLoans: YesNo;
|
|
37
|
+
totalMonthlyInstallments: number;
|
|
38
|
+
hasCreditScore: YesNo;
|
|
39
|
+
totalCreditLimit: number;
|
|
40
|
+
salaryType: SalaryType;
|
|
41
|
+
previousDisputes: YesNo;
|
|
42
|
+
employeeCount?: EmployeeCount;
|
|
43
|
+
isCompanyOlderThanOneYear: boolean;
|
|
44
|
+
hasLandline?: YesNo;
|
|
45
|
+
documents?: string[];
|
|
46
|
+
marketing?: MarketingData;
|
|
47
|
+
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityRequestCreateDTO;
|
|
48
|
+
toPlain(): Record<string, unknown>;
|
|
49
|
+
}
|
|
50
|
+
export declare class FinanceEligibilityRequestUpdateDTO {
|
|
51
|
+
vehicleId?: string;
|
|
52
|
+
makeId?: string;
|
|
53
|
+
modelId?: string;
|
|
54
|
+
fullName?: string;
|
|
55
|
+
email?: string;
|
|
56
|
+
contactNumber?: string;
|
|
57
|
+
currentSalary?: number;
|
|
58
|
+
existingLoans?: YesNo;
|
|
59
|
+
totalMonthlyInstallments?: number;
|
|
60
|
+
hasCreditScore?: YesNo;
|
|
61
|
+
totalCreditLimit?: number;
|
|
62
|
+
salaryType?: SalaryType;
|
|
63
|
+
previousDisputes?: YesNo;
|
|
64
|
+
employeeCount?: EmployeeCount;
|
|
65
|
+
isCompanyOlderThanOneYear?: boolean;
|
|
66
|
+
hasLandline?: YesNo;
|
|
67
|
+
eligibility?: EligibilityStatus;
|
|
68
|
+
documents?: string[];
|
|
69
|
+
status?: "pending" | "approved" | "rejected";
|
|
70
|
+
rejectionReason?: string;
|
|
71
|
+
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityRequestUpdateDTO;
|
|
72
|
+
toPlain(): Record<string, unknown>;
|
|
73
|
+
}
|
|
74
|
+
export declare class FinanceEligibilityRequestResponseDTO {
|
|
75
|
+
id: string;
|
|
76
|
+
vehicleId?: string;
|
|
77
|
+
vehicle?: {
|
|
78
|
+
id: string;
|
|
79
|
+
make: string;
|
|
80
|
+
model: string;
|
|
81
|
+
year: number;
|
|
82
|
+
};
|
|
83
|
+
makeId?: string;
|
|
84
|
+
modelId?: string;
|
|
85
|
+
make?: {
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
};
|
|
89
|
+
model?: {
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
fullName: string;
|
|
94
|
+
email?: string;
|
|
95
|
+
contactNumber: string;
|
|
96
|
+
currentSalary: number;
|
|
97
|
+
existingLoans: YesNo;
|
|
98
|
+
totalMonthlyInstallments: number;
|
|
99
|
+
hasCreditScore: YesNo;
|
|
100
|
+
totalCreditLimit: number;
|
|
101
|
+
salaryType: SalaryType;
|
|
102
|
+
previousDisputes: YesNo;
|
|
103
|
+
employeeCount: EmployeeCount;
|
|
104
|
+
isCompanyOlderThanOneYear: boolean;
|
|
105
|
+
hasLandline: YesNo;
|
|
106
|
+
documents: string[];
|
|
107
|
+
eligibility: EligibilityStatus;
|
|
108
|
+
user?: User;
|
|
109
|
+
lead?: Lead;
|
|
110
|
+
status: Status;
|
|
111
|
+
rejectionReason?: string;
|
|
112
|
+
marketing?: MarketingData;
|
|
113
|
+
createdAt: Date;
|
|
114
|
+
updatedAt: Date;
|
|
115
|
+
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityRequestResponseDTO;
|
|
116
|
+
toPlain(): Record<string, unknown>;
|
|
117
|
+
}
|
|
118
|
+
export declare class FinanceEligibilityFilterDTO {
|
|
119
|
+
search?: string;
|
|
120
|
+
vehicleId?: string;
|
|
121
|
+
leadId?: string;
|
|
122
|
+
eligibility?: EligibilityStatus;
|
|
123
|
+
salaryType?: SalaryType;
|
|
124
|
+
isActive?: boolean;
|
|
125
|
+
createdAt?: DateFilter;
|
|
126
|
+
marketing?: MarketingData;
|
|
127
|
+
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityFilterDTO;
|
|
128
|
+
toPlain(): Record<string, unknown>;
|
|
129
|
+
}
|
|
130
|
+
export declare class FinanceEligibilityOptionsDTO extends PaginationOptions {
|
|
131
|
+
sort?: {
|
|
132
|
+
field: string;
|
|
133
|
+
direction: "asc" | "desc";
|
|
134
|
+
};
|
|
135
|
+
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityFilterDTO;
|
|
136
|
+
toPlain(): Record<string, unknown>;
|
|
137
|
+
}
|
|
138
|
+
export declare class FinanceEligibilityFetchDTO {
|
|
139
|
+
filter: FinanceEligibilityFilterDTO;
|
|
140
|
+
options: FinanceEligibilityOptionsDTO;
|
|
141
|
+
validate(): string[];
|
|
142
|
+
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityFetchDTO;
|
|
143
|
+
toPlain(): Record<string, unknown>;
|
|
144
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./dto/FinanceEligibilityRequestDTO";
|
|
1
|
+
export * from "./dto/FinanceEligibilityRequestDTO";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./data";
|
|
1
|
+
export * from "./data";
|