@alba-cars/common-modules 2.4.7 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/enums/Analytics.d.ts +24 -0
- package/dist/core/enums/index.d.ts +2 -1
- package/dist/features/bank-valuation-request/data/dto/BankValuationRequestDTO.d.ts +2 -0
- package/dist/features/deposits/data/dto/DepositDTOs.d.ts +2 -0
- package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.d.ts +4 -0
- package/dist/features/models/BankValuationRequest.d.ts +2 -0
- package/dist/features/sell-car-request/data/dto/SellCarRequestDTO.d.ts +7 -0
- package/dist/features/showroom-visit/data/dto/ShowroomVisit.d.ts +3 -0
- package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.d.ts +2 -0
- package/dist/features/vehicle-reservations/data/dto/VehicleReservationDTO.d.ts +5 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface MarketingData {
|
|
2
|
+
Meta?: {
|
|
3
|
+
utm_source: string;
|
|
4
|
+
utm_medium: string;
|
|
5
|
+
utm_campaign: string;
|
|
6
|
+
utm_content: string;
|
|
7
|
+
};
|
|
8
|
+
Google?: {
|
|
9
|
+
gclid: string;
|
|
10
|
+
utm_source: string;
|
|
11
|
+
utm_medium: string;
|
|
12
|
+
utm_campaign: string;
|
|
13
|
+
utm_term: string;
|
|
14
|
+
utm_content: string;
|
|
15
|
+
};
|
|
16
|
+
Bing?: {
|
|
17
|
+
msclkid: string;
|
|
18
|
+
utm_source: string;
|
|
19
|
+
utm_medium: string;
|
|
20
|
+
utm_campaign: string;
|
|
21
|
+
utm_term: string;
|
|
22
|
+
utm_content: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MarketingData } from "../../../../core";
|
|
1
2
|
export declare class BankValuationRequestCreateDto {
|
|
2
3
|
name: string;
|
|
3
4
|
email?: string;
|
|
@@ -24,6 +25,7 @@ export declare class BankValuationRequestCreateDto {
|
|
|
24
25
|
sessionId?: string;
|
|
25
26
|
bankApplicationId?: string;
|
|
26
27
|
dealDriveEstimatedPrice?: number;
|
|
28
|
+
marketing?: MarketingData;
|
|
27
29
|
}
|
|
28
30
|
export declare class BankValuationRequestUpdateDto {
|
|
29
31
|
comments?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseGetDTO, TypedFilter, TypedOptions } from "../../../../global";
|
|
2
2
|
import { LeadDTO } from "../../../lead/data/dto/lead_dto";
|
|
3
3
|
import { Vehicle } from "../../../models";
|
|
4
|
+
import { MarketingData } from "../../../../core";
|
|
4
5
|
export declare enum DepositStatus {
|
|
5
6
|
PENDING = "pending",
|
|
6
7
|
COMPLETED = "completed",
|
|
@@ -40,6 +41,7 @@ export declare class DepositCreateDTO {
|
|
|
40
41
|
leadId?: string;
|
|
41
42
|
userId?: string;
|
|
42
43
|
vehicleId: string;
|
|
44
|
+
marketing?: MarketingData;
|
|
43
45
|
validate(): string[];
|
|
44
46
|
static fromPlain(plain: Record<string, unknown>): DepositCreateDTO;
|
|
45
47
|
toPlain(): Record<string, unknown>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DateFilter, PaginationOptions } from "../../../../global";
|
|
2
2
|
import { Lead, User } from "../../../models";
|
|
3
|
+
import { MarketingData } from "../../../../core";
|
|
3
4
|
export declare enum SalaryType {
|
|
4
5
|
WPS = "wps",
|
|
5
6
|
BANK_TRANSFER = "bank_transfer",
|
|
@@ -42,6 +43,7 @@ export declare class FinanceEligibilityRequestCreateDTO {
|
|
|
42
43
|
isCompanyOlderThanOneYear: boolean;
|
|
43
44
|
hasLandline?: YesNo;
|
|
44
45
|
documents?: string[];
|
|
46
|
+
marketing?: MarketingData;
|
|
45
47
|
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityRequestCreateDTO;
|
|
46
48
|
toPlain(): Record<string, unknown>;
|
|
47
49
|
}
|
|
@@ -107,6 +109,7 @@ export declare class FinanceEligibilityRequestResponseDTO {
|
|
|
107
109
|
lead?: Lead;
|
|
108
110
|
status: Status;
|
|
109
111
|
rejectionReason?: string;
|
|
112
|
+
marketing?: MarketingData;
|
|
110
113
|
createdAt: Date;
|
|
111
114
|
updatedAt: Date;
|
|
112
115
|
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityRequestResponseDTO;
|
|
@@ -120,6 +123,7 @@ export declare class FinanceEligibilityFilterDTO {
|
|
|
120
123
|
salaryType?: SalaryType;
|
|
121
124
|
isActive?: boolean;
|
|
122
125
|
createdAt?: DateFilter;
|
|
126
|
+
marketing?: MarketingData;
|
|
123
127
|
static fromPlain(plain: Record<string, unknown>): FinanceEligibilityFilterDTO;
|
|
124
128
|
toPlain(): Record<string, unknown>;
|
|
125
129
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MarketingData } from "../../core";
|
|
1
2
|
import { User } from "./User";
|
|
2
3
|
export declare class BankValuationRequest {
|
|
3
4
|
id: string;
|
|
@@ -33,4 +34,5 @@ export declare class BankValuationRequest {
|
|
|
33
34
|
approvalComments?: string | null;
|
|
34
35
|
approvedValuation?: number | null;
|
|
35
36
|
certificateUrl?: string | null;
|
|
37
|
+
marketing?: MarketingData;
|
|
36
38
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DateFilter, PaginationOptions } from "../../../../global";
|
|
2
2
|
import { VehicleMediaCreateDTO } from "../../../vehicle";
|
|
3
|
+
import { MarketingData } from "../../../../core";
|
|
3
4
|
export declare enum RequestType {
|
|
4
5
|
SELL = "sell",
|
|
5
6
|
TRADE_IN = "trade_in"
|
|
@@ -34,6 +35,7 @@ export declare class SellCarRequestDTO {
|
|
|
34
35
|
updatedAt?: Date;
|
|
35
36
|
inspectionBookingDate?: Date;
|
|
36
37
|
status?: "SUBMITTED" | "DRAFT";
|
|
38
|
+
marketing?: MarketingData;
|
|
37
39
|
validate(): string[];
|
|
38
40
|
static fromPlain(plain: Record<string, unknown>): SellCarRequestDTO;
|
|
39
41
|
toPlain(): Record<string, unknown>;
|
|
@@ -63,6 +65,7 @@ export declare class SellCarRequestCreateDTO {
|
|
|
63
65
|
inspectionBookingDate?: Date;
|
|
64
66
|
status?: "SUBMITTED" | "DRAFT";
|
|
65
67
|
sessionId?: string;
|
|
68
|
+
marketing?: MarketingData;
|
|
66
69
|
validate(): string[];
|
|
67
70
|
static fromPlain(plain: Record<string, unknown>): SellCarRequestCreateDTO;
|
|
68
71
|
toPlain(): Record<string, unknown>;
|
|
@@ -92,6 +95,7 @@ export declare class ExchangeCarRequestCreateDTO {
|
|
|
92
95
|
bookingDate?: Date;
|
|
93
96
|
status?: "SUBMITTED" | "DRAFT";
|
|
94
97
|
sessionId?: string;
|
|
98
|
+
marketing?: MarketingData;
|
|
95
99
|
validate(): string[];
|
|
96
100
|
static fromPlain(plain: Record<string, unknown>): SellCarRequestCreateDTO;
|
|
97
101
|
toPlain(): Record<string, unknown>;
|
|
@@ -116,6 +120,7 @@ export declare class SellCarRequestUpdateDTO {
|
|
|
116
120
|
description?: string;
|
|
117
121
|
inspectionBookingDate?: Date;
|
|
118
122
|
status?: "SUBMITTED" | "DRAFT";
|
|
123
|
+
marketing?: MarketingData;
|
|
119
124
|
additionalDetails?: {
|
|
120
125
|
serviceHistory?: boolean;
|
|
121
126
|
numberOfOwners?: number;
|
|
@@ -163,6 +168,7 @@ export declare class SellCarRequestResponseDTO {
|
|
|
163
168
|
updatedById?: string | null;
|
|
164
169
|
deletedById?: string | null;
|
|
165
170
|
status?: "SUBMITTED" | "DRAFT";
|
|
171
|
+
marketing?: MarketingData;
|
|
166
172
|
validate(): string[];
|
|
167
173
|
static fromPlain(plain: Record<string, unknown>): SellCarRequestResponseDTO;
|
|
168
174
|
toPlain(): Record<string, unknown>;
|
|
@@ -175,6 +181,7 @@ export declare class SellCarFilterDTO {
|
|
|
175
181
|
createdAt?: DateFilter;
|
|
176
182
|
tradeIn?: TradeInOption;
|
|
177
183
|
status?: "SUBMITTED" | "DRAFT";
|
|
184
|
+
marketing?: MarketingData;
|
|
178
185
|
validate(): string[];
|
|
179
186
|
static fromPlain(plain: Record<string, unknown>): SellCarFilterDTO;
|
|
180
187
|
toPlain(): Record<string, unknown>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ValidatorConstraintInterface, ValidationArguments } from "class-validator";
|
|
2
2
|
import { PaginationOptions } from "../../../../global";
|
|
3
3
|
import { VisitPurpose } from "../enums";
|
|
4
|
+
import { MarketingData } from "../../../../core";
|
|
4
5
|
export declare class IsTimeConstraint implements ValidatorConstraintInterface {
|
|
5
6
|
validate(time: string, args: ValidationArguments): boolean;
|
|
6
7
|
defaultMessage(args: ValidationArguments): string;
|
|
@@ -13,6 +14,7 @@ export declare class ShowroomVisitCreateDTO {
|
|
|
13
14
|
Visit_Interest: VisitPurpose;
|
|
14
15
|
Interested_Cars?: string[];
|
|
15
16
|
AssignedAgentId?: string;
|
|
17
|
+
marketing?: MarketingData;
|
|
16
18
|
validate(): string[];
|
|
17
19
|
static fromPlain(plain: Record<string, unknown>): ShowroomVisitCreateDTO;
|
|
18
20
|
toPlain(): Record<string, unknown>;
|
|
@@ -42,6 +44,7 @@ export declare class ShowroomVisitResponseDTO {
|
|
|
42
44
|
VisitNotes?: string;
|
|
43
45
|
CreatedAt: string;
|
|
44
46
|
UpdatedAt: string;
|
|
47
|
+
marketing?: MarketingData;
|
|
45
48
|
validate(): string[];
|
|
46
49
|
static fromPlain(plain: Record<string, unknown>): ShowroomVisitResponseDTO;
|
|
47
50
|
toPlain(): Record<string, unknown>;
|
|
@@ -3,6 +3,7 @@ import { BaseUpdateDTO } from "../../../vehicle/data/dto/BaseDTO";
|
|
|
3
3
|
import { DynamicVehicleDTO } from "../../../vehicle/data/dto/VehicleDTO";
|
|
4
4
|
import { LeadThrough, TestDriveRequestStatus } from "../enums";
|
|
5
5
|
import { VehicleSelectFields } from "../../../vehicle/data/utilities";
|
|
6
|
+
import { MarketingData } from "../../../../core";
|
|
6
7
|
export declare class TestDriveRequestGetDTOOptions {
|
|
7
8
|
select?: (TestDriveRequestSelectFields | `vehicle.${VehicleSelectFields}`)[];
|
|
8
9
|
withVehicle?: boolean;
|
|
@@ -28,6 +29,7 @@ export declare class TestDriveRequestCreateDTO {
|
|
|
28
29
|
leadThrough?: LeadThrough;
|
|
29
30
|
comments?: string;
|
|
30
31
|
createdById?: string;
|
|
32
|
+
marketing?: MarketingData;
|
|
31
33
|
validate(): string[];
|
|
32
34
|
constructor(data?: Partial<TestDriveRequestCreateDTO>);
|
|
33
35
|
static fromPlain(plain: Record<string, unknown>): TestDriveRequestCreateDTO;
|
|
@@ -3,6 +3,7 @@ import { ReservationStatus } from "../enums/reservation-type";
|
|
|
3
3
|
import { Vehicle } from "../../../vehicle/data";
|
|
4
4
|
import { DateFilter, PaginationOptions } from "../../../../global";
|
|
5
5
|
import { LeadCreateDTO, LeadDTO } from "../../../lead/data/dto/lead_dto";
|
|
6
|
+
import { MarketingData } from "../../../../core";
|
|
6
7
|
export declare class CreateVehicleReservationDto {
|
|
7
8
|
leadId?: string;
|
|
8
9
|
newLead?: LeadCreateDTO;
|
|
@@ -17,6 +18,7 @@ export declare class CreateVehicleReservationDto {
|
|
|
17
18
|
loanAmount?: number;
|
|
18
19
|
loanTenureMonths?: number;
|
|
19
20
|
interestRate?: number;
|
|
21
|
+
marketing?: MarketingData;
|
|
20
22
|
validate(): string[];
|
|
21
23
|
static fromPlain(plain: Record<string, unknown>): CreateVehicleReservationDto;
|
|
22
24
|
toPlain(): Record<string, unknown>;
|
|
@@ -35,6 +37,7 @@ export declare class VehicleReservationDto {
|
|
|
35
37
|
loanAmount?: number;
|
|
36
38
|
loanTenureMonths?: number;
|
|
37
39
|
interestRate?: number;
|
|
40
|
+
marketing?: MarketingData;
|
|
38
41
|
validate(): string[];
|
|
39
42
|
static fromPlain(plain: Record<string, unknown>): CreateVehicleReservationDto;
|
|
40
43
|
toPlain(): Record<string, unknown>;
|
|
@@ -50,6 +53,7 @@ export declare class VehicleReservationResponseDto {
|
|
|
50
53
|
totalAmount?: number;
|
|
51
54
|
createdAt: Date;
|
|
52
55
|
updatedAt: Date;
|
|
56
|
+
marketing?: MarketingData;
|
|
53
57
|
}
|
|
54
58
|
export declare class UpdateVehicleReservationDto {
|
|
55
59
|
status?: ReservationStatus;
|
|
@@ -75,7 +79,7 @@ export declare class UpdateVehicleReservationDto {
|
|
|
75
79
|
export declare class VehicleReservationsOptions extends PaginationOptions {
|
|
76
80
|
sort?: {
|
|
77
81
|
field: string;
|
|
78
|
-
direction:
|
|
82
|
+
direction: "asc" | "desc";
|
|
79
83
|
};
|
|
80
84
|
static fromPlain(plain: Record<string, unknown>): GetVehicleReservationsFilterDto;
|
|
81
85
|
toPlain(): Record<string, unknown>;
|