@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.
Files changed (151) hide show
  1. package/README.md +42 -42
  2. package/dist/core/enums/Analytics.d.ts +24 -24
  3. package/dist/core/enums/HttpMethods.d.ts +12 -12
  4. package/dist/core/enums/HttpStatusCodes.d.ts +18 -18
  5. package/dist/core/enums/index.d.ts +3 -3
  6. package/dist/core/error-handling/AppError.d.ts +23 -23
  7. package/dist/core/error-handling/index.d.ts +1 -1
  8. package/dist/core/index.d.ts +5 -5
  9. package/dist/core/models/index.d.ts +3 -3
  10. package/dist/core/models/media/index.d.ts +1 -1
  11. package/dist/core/models/media/media_data.d.ts +5 -5
  12. package/dist/core/models/pagination/index.d.ts +1 -1
  13. package/dist/core/models/pagination/paginated_data.d.ts +23 -23
  14. package/dist/core/models/range.d.ts +4 -4
  15. package/dist/core/network/endpoint-config.d.ts +155 -155
  16. package/dist/core/network/fetch-api.d.ts +62 -62
  17. package/dist/core/network/index.d.ts +2 -2
  18. package/dist/core/utils/formatCurrency.d.ts +11 -11
  19. package/dist/core/utils/global-constants.d.ts +6 -6
  20. package/dist/core/utils/global-utils.d.ts +108 -108
  21. package/dist/core/utils/global_validators.d.ts +2 -2
  22. package/dist/core/utils/index.d.ts +4 -4
  23. package/dist/core/utils/query_flatten.d.ts +1 -1
  24. package/dist/features/auth/data/dto/AuthDTO.d.ts +32 -32
  25. package/dist/features/auth/data/dto/RoleDTO.d.ts +41 -41
  26. package/dist/features/auth/data/dto/UserDTO.d.ts +71 -71
  27. package/dist/features/auth/data/index.d.ts +3 -3
  28. package/dist/features/auth/index.d.ts +1 -1
  29. package/dist/features/bank-valuation-request/data/dto/BankValuationRequestDTO.d.ts +55 -55
  30. package/dist/features/bank-valuation-request/index.d.ts +1 -1
  31. package/dist/features/blog/data/dto/BlogDTO.d.ts +73 -73
  32. package/dist/features/blog/index.d.ts +1 -1
  33. package/dist/features/callback-request/data/dto/CallBackRequestDTO.d.ts +32 -32
  34. package/dist/features/callback-request/index.d.ts +1 -1
  35. package/dist/features/deposits/data/dto/DepositDTOs.d.ts +84 -84
  36. package/dist/features/deposits/data/index.d.ts +1 -1
  37. package/dist/features/deposits/index.d.ts +1 -1
  38. package/dist/features/faq/data/dtos/CreateFaqDTO.d.ts +15 -15
  39. package/dist/features/faq/data/dtos/FaqFetchDTO.d.ts +105 -105
  40. package/dist/features/faq/data/dtos/UpdateFaqDTO.d.ts +15 -15
  41. package/dist/features/faq/data/dtos/index.d.ts +3 -3
  42. package/dist/features/faq/data/enums/index.d.ts +6 -6
  43. package/dist/features/faq/data/index.d.ts +2 -2
  44. package/dist/features/faq/index.d.ts +1 -1
  45. package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.d.ts +144 -144
  46. package/dist/features/finance-eligibilty-request/data/index.d.ts +1 -1
  47. package/dist/features/finance-eligibilty-request/index.d.ts +1 -1
  48. package/dist/features/google-review/data/dto/google_review_dto.d.ts +103 -103
  49. package/dist/features/google-review/data/dto/index.d.ts +1 -1
  50. package/dist/features/google-review/data/enums/index.d.ts +4 -4
  51. package/dist/features/google-review/data/index.d.ts +2 -2
  52. package/dist/features/google-review/index.d.ts +1 -1
  53. package/dist/features/index.d.ts +18 -18
  54. package/dist/features/lead/data/dto/index.d.ts +4 -4
  55. package/dist/features/lead/data/dto/lead_documents_dto.d.ts +24 -24
  56. package/dist/features/lead/data/dto/lead_dto.d.ts +104 -104
  57. package/dist/features/lead/data/dto/lead_preference_history_dto.d.ts +84 -84
  58. package/dist/features/lead/data/dto/lead_prefernce_dto.d.ts +68 -68
  59. package/dist/features/lead/data/enum/index.d.ts +2 -2
  60. package/dist/features/lead/data/enum/lead_source_status_types.d.ts +15 -15
  61. package/dist/features/lead/data/enum/lead_status_type.d.ts +8 -8
  62. package/dist/features/lead/index.d.ts +2 -2
  63. package/dist/features/models/Bank.d.ts +9 -9
  64. package/dist/features/models/BankValuationRequest.d.ts +63 -63
  65. package/dist/features/models/BankValuationResult.d.ts +24 -24
  66. package/dist/features/models/Base.d.ts +12 -12
  67. package/dist/features/models/Color.d.ts +10 -10
  68. package/dist/features/models/Deposit.d.ts +18 -18
  69. package/dist/features/models/Lead.d.ts +25 -25
  70. package/dist/features/models/Payment.d.ts +46 -46
  71. package/dist/features/models/Roles.d.ts +7 -7
  72. package/dist/features/models/Ticket.d.ts +51 -51
  73. package/dist/features/models/User.d.ts +24 -24
  74. package/dist/features/models/UserFavoriteVehicle.d.ts +9 -9
  75. package/dist/features/models/Vehicle.d.ts +76 -76
  76. package/dist/features/models/VehicleBodyType.d.ts +8 -8
  77. package/dist/features/models/VehicleCategory.d.ts +6 -6
  78. package/dist/features/models/VehicleFeature.d.ts +10 -10
  79. package/dist/features/models/VehicleFeatureCategory.d.ts +7 -7
  80. package/dist/features/models/VehicleFinance.d.ts +24 -24
  81. package/dist/features/models/VehicleMake.d.ts +14 -14
  82. package/dist/features/models/VehicleMedia.d.ts +12 -12
  83. package/dist/features/models/VehicleMetaData.d.ts +11 -11
  84. package/dist/features/models/VehicleModel.d.ts +17 -17
  85. package/dist/features/models/VehicleOrder.d.ts +14 -14
  86. package/dist/features/models/_index.d.ts +14 -14
  87. package/dist/features/models/index.d.ts +21 -21
  88. package/dist/features/newsletter/data/dto/NewsletterDTO.d.ts +17 -17
  89. package/dist/features/newsletter/index.d.ts +1 -1
  90. package/dist/features/sales-team/data/dto/LanguageDTO.d.ts +20 -20
  91. package/dist/features/sales-team/data/dto/SalesAgentDTO.d.ts +191 -191
  92. package/dist/features/sales-team/data/index.d.ts +2 -2
  93. package/dist/features/sales-team/index.d.ts +1 -1
  94. package/dist/features/sell-car-request/data/dto/SellCarRequestDTO.d.ts +203 -203
  95. package/dist/features/sell-car-request/data/index.d.ts +1 -1
  96. package/dist/features/sell-car-request/index.d.ts +1 -1
  97. package/dist/features/showroom-visit/data/dto/ShowroomVisit.d.ts +69 -69
  98. package/dist/features/showroom-visit/data/enums/index.d.ts +11 -11
  99. package/dist/features/showroom-visit/data/index.d.ts +2 -2
  100. package/dist/features/showroom-visit/index.d.ts +1 -1
  101. package/dist/features/test-drive-request/api/GetTestDriveVehicles.d.ts +3 -3
  102. package/dist/features/test-drive-request/api/index.d.ts +1 -1
  103. package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.d.ts +51 -51
  104. package/dist/features/test-drive-request/data/enums/index.d.ts +24 -24
  105. package/dist/features/test-drive-request/data/index.d.ts +4 -4
  106. package/dist/features/test-drive-request/data/models/TestDriveRequest.d.ts +14 -14
  107. package/dist/features/test-drive-request/data/models/index.d.ts +2 -2
  108. package/dist/features/test-drive-request/data/utilities.d.ts +30 -30
  109. package/dist/features/test-drive-request/index.d.ts +2 -2
  110. package/dist/features/tickets/data/dto/TicketDto.d.ts +69 -69
  111. package/dist/features/tickets/data/enums/index.d.ts +18 -18
  112. package/dist/features/tickets/index.d.ts +2 -2
  113. package/dist/features/vehicle/data/dto/BaseDTO.d.ts +9 -9
  114. package/dist/features/vehicle/data/dto/ColorDTO.d.ts +10 -10
  115. package/dist/features/vehicle/data/dto/MediaDTO.d.ts +5 -5
  116. package/dist/features/vehicle/data/dto/PaymentDTO.d.ts +52 -52
  117. package/dist/features/vehicle/data/dto/SimilarVehicleDTO.d.ts +12 -12
  118. package/dist/features/vehicle/data/dto/VehicleCategoryDTO.d.ts +39 -39
  119. package/dist/features/vehicle/data/dto/VehicleDTO.d.ts +143 -143
  120. package/dist/features/vehicle/data/dto/VehicleFavoritesDTO.d.ts +14 -14
  121. package/dist/features/vehicle/data/dto/VehicleFeatureCategoriesDTO.d.ts +39 -39
  122. package/dist/features/vehicle/data/dto/VehicleFeatureDTO.d.ts +40 -40
  123. package/dist/features/vehicle/data/dto/VehicleFilterDTO.d.ts +257 -257
  124. package/dist/features/vehicle/data/dto/VehicleFinanceDTO.d.ts +63 -63
  125. package/dist/features/vehicle/data/dto/VehicleInspectionDTO.d.ts +147 -147
  126. package/dist/features/vehicle/data/dto/VehicleMakeDTO.d.ts +52 -52
  127. package/dist/features/vehicle/data/dto/VehicleMedia.d.ts +44 -44
  128. package/dist/features/vehicle/data/dto/VehicleModelDTO.d.ts +50 -50
  129. package/dist/features/vehicle/data/dto/VehicleOrderDTO.d.ts +34 -34
  130. package/dist/features/vehicle/data/dto/VehicleTypeDTO.d.ts +35 -35
  131. package/dist/features/vehicle/data/dto/VehicleWarrantyDTO.d.ts +9 -9
  132. package/dist/features/vehicle/data/dto/index.d.ts +20 -20
  133. package/dist/features/vehicle/data/enums/index.d.ts +40 -40
  134. package/dist/features/vehicle/data/index.d.ts +3 -3
  135. package/dist/features/vehicle/data/utilities.d.ts +185 -185
  136. package/dist/features/vehicle/index.d.ts +1 -1
  137. package/dist/features/vehicle-reservations/data/dto/VehicleReservationDTO.d.ts +106 -106
  138. package/dist/features/vehicle-reservations/data/dto/index.d.ts +1 -1
  139. package/dist/features/vehicle-reservations/data/enums/finance-type.d.ts +5 -5
  140. package/dist/features/vehicle-reservations/data/enums/index.d.ts +3 -3
  141. package/dist/features/vehicle-reservations/data/enums/reservation-type.d.ts +9 -9
  142. package/dist/features/vehicle-reservations/data/enums/vehicle-reservation-type.d.ts +4 -4
  143. package/dist/features/vehicle-reservations/index.d.ts +2 -2
  144. package/dist/global/dto/BaseGetDTO.d.ts +8 -8
  145. package/dist/global/dto/index.d.ts +1 -1
  146. package/dist/global/index.d.ts +2 -2
  147. package/dist/global/utilities.d.ts +53 -53
  148. package/dist/index.d.ts +5 -5
  149. package/dist/index.js +1 -1
  150. package/dist/models.d.ts +1 -1
  151. 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
+ }