@alba-cars/common-modules 2.16.1 → 2.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -42
- package/dist/core/enums/Analytics.d.ts +31 -31
- package/dist/core/enums/HttpMethods.d.ts +12 -12
- package/dist/core/enums/HttpStatusCodes.d.ts +18 -18
- package/dist/core/enums/index.d.ts +3 -3
- package/dist/core/error-handling/AppError.d.ts +23 -23
- package/dist/core/error-handling/index.d.ts +1 -1
- package/dist/core/index.d.ts +5 -5
- package/dist/core/models/index.d.ts +3 -3
- package/dist/core/models/media/index.d.ts +1 -1
- package/dist/core/models/media/media_data.d.ts +5 -5
- package/dist/core/models/pagination/index.d.ts +1 -1
- package/dist/core/models/pagination/paginated_data.d.ts +23 -23
- package/dist/core/models/range.d.ts +4 -4
- package/dist/core/network/endpoint-config.d.ts +155 -155
- package/dist/core/network/fetch-api.d.ts +62 -62
- package/dist/core/network/index.d.ts +2 -2
- package/dist/core/utils/formatCurrency.d.ts +11 -11
- package/dist/core/utils/global-constants.d.ts +6 -6
- package/dist/core/utils/global-utils.d.ts +108 -108
- package/dist/core/utils/global_validators.d.ts +2 -2
- package/dist/core/utils/index.d.ts +4 -4
- package/dist/core/utils/query_flatten.d.ts +1 -1
- package/dist/features/auth/data/dto/AuthDTO.d.ts +32 -32
- package/dist/features/auth/data/dto/RoleDTO.d.ts +41 -41
- package/dist/features/auth/data/dto/UserDTO.d.ts +71 -71
- package/dist/features/auth/data/index.d.ts +3 -3
- package/dist/features/auth/index.d.ts +1 -1
- package/dist/features/bank-valuation-request/data/dto/BankValuationRequestDTO.d.ts +55 -55
- package/dist/features/bank-valuation-request/index.d.ts +1 -1
- package/dist/features/blog/data/dto/BlogDTO.d.ts +73 -73
- package/dist/features/blog/index.d.ts +1 -1
- package/dist/features/callback-request/data/dto/CallBackRequestDTO.d.ts +32 -32
- package/dist/features/callback-request/index.d.ts +1 -1
- package/dist/features/deposits/data/dto/DepositDTOs.d.ts +84 -84
- package/dist/features/deposits/data/index.d.ts +1 -1
- package/dist/features/deposits/index.d.ts +1 -1
- package/dist/features/faq/data/dtos/CreateFaqDTO.d.ts +15 -15
- package/dist/features/faq/data/dtos/FaqFetchDTO.d.ts +105 -105
- package/dist/features/faq/data/dtos/UpdateFaqDTO.d.ts +15 -15
- package/dist/features/faq/data/dtos/index.d.ts +3 -3
- package/dist/features/faq/data/enums/index.d.ts +6 -6
- package/dist/features/faq/data/index.d.ts +2 -2
- package/dist/features/faq/index.d.ts +1 -1
- package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.d.ts +144 -144
- package/dist/features/finance-eligibilty-request/data/index.d.ts +1 -1
- package/dist/features/finance-eligibilty-request/index.d.ts +1 -1
- package/dist/features/google-review/data/dto/google_review_dto.d.ts +103 -103
- package/dist/features/google-review/data/dto/index.d.ts +1 -1
- package/dist/features/google-review/data/enums/index.d.ts +4 -4
- package/dist/features/google-review/data/index.d.ts +2 -2
- package/dist/features/google-review/index.d.ts +1 -1
- package/dist/features/index.d.ts +18 -18
- package/dist/features/lead/data/dto/index.d.ts +4 -4
- package/dist/features/lead/data/dto/lead_documents_dto.d.ts +24 -24
- package/dist/features/lead/data/dto/lead_dto.d.ts +104 -104
- package/dist/features/lead/data/dto/lead_preference_history_dto.d.ts +84 -84
- package/dist/features/lead/data/dto/lead_prefernce_dto.d.ts +68 -68
- package/dist/features/lead/data/enum/index.d.ts +2 -2
- package/dist/features/lead/data/enum/lead_source_status_types.d.ts +15 -15
- package/dist/features/lead/data/enum/lead_status_type.d.ts +8 -8
- package/dist/features/lead/index.d.ts +2 -2
- package/dist/features/models/Bank.d.ts +9 -9
- package/dist/features/models/BankValuationRequest.d.ts +63 -63
- package/dist/features/models/BankValuationResult.d.ts +24 -24
- package/dist/features/models/Base.d.ts +12 -12
- package/dist/features/models/Color.d.ts +10 -10
- package/dist/features/models/Deposit.d.ts +18 -18
- package/dist/features/models/Lead.d.ts +25 -25
- package/dist/features/models/Payment.d.ts +46 -46
- package/dist/features/models/Roles.d.ts +7 -7
- package/dist/features/models/Ticket.d.ts +51 -51
- package/dist/features/models/User.d.ts +24 -24
- package/dist/features/models/UserFavoriteVehicle.d.ts +9 -9
- package/dist/features/models/Vehicle.d.ts +79 -79
- package/dist/features/models/VehicleBodyType.d.ts +8 -8
- package/dist/features/models/VehicleCategory.d.ts +6 -6
- package/dist/features/models/VehicleFeature.d.ts +10 -10
- package/dist/features/models/VehicleFeatureCategory.d.ts +7 -7
- package/dist/features/models/VehicleFinance.d.ts +29 -29
- package/dist/features/models/VehicleMake.d.ts +14 -14
- package/dist/features/models/VehicleMedia.d.ts +16 -12
- package/dist/features/models/VehicleMetaData.d.ts +11 -11
- package/dist/features/models/VehicleModel.d.ts +17 -17
- package/dist/features/models/VehicleOrder.d.ts +14 -14
- package/dist/features/models/_index.d.ts +14 -14
- package/dist/features/models/index.d.ts +21 -21
- package/dist/features/newsletter/data/dto/NewsletterDTO.d.ts +17 -17
- package/dist/features/newsletter/index.d.ts +1 -1
- package/dist/features/sales-team/data/dto/LanguageDTO.d.ts +20 -20
- package/dist/features/sales-team/data/dto/SalesAgentDTO.d.ts +204 -204
- package/dist/features/sales-team/data/index.d.ts +2 -2
- package/dist/features/sales-team/index.d.ts +1 -1
- package/dist/features/sell-car-request/data/dto/SellCarRequestDTO.d.ts +203 -203
- package/dist/features/sell-car-request/data/index.d.ts +1 -1
- package/dist/features/sell-car-request/index.d.ts +1 -1
- package/dist/features/showroom-visit/data/dto/ShowroomVisit.d.ts +69 -69
- package/dist/features/showroom-visit/data/enums/index.d.ts +11 -11
- package/dist/features/showroom-visit/data/index.d.ts +2 -2
- package/dist/features/showroom-visit/index.d.ts +1 -1
- package/dist/features/test-drive-request/api/GetTestDriveVehicles.d.ts +3 -3
- package/dist/features/test-drive-request/api/index.d.ts +1 -1
- package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.d.ts +51 -51
- package/dist/features/test-drive-request/data/enums/index.d.ts +24 -24
- package/dist/features/test-drive-request/data/index.d.ts +4 -4
- package/dist/features/test-drive-request/data/models/TestDriveRequest.d.ts +14 -14
- package/dist/features/test-drive-request/data/models/index.d.ts +2 -2
- package/dist/features/test-drive-request/data/utilities.d.ts +30 -30
- package/dist/features/test-drive-request/index.d.ts +2 -2
- package/dist/features/tickets/data/dto/TicketDto.d.ts +69 -69
- package/dist/features/tickets/data/enums/index.d.ts +18 -18
- package/dist/features/tickets/index.d.ts +2 -2
- package/dist/features/vehicle/data/dto/BaseDTO.d.ts +9 -9
- package/dist/features/vehicle/data/dto/ColorDTO.d.ts +10 -10
- package/dist/features/vehicle/data/dto/MediaDTO.d.ts +5 -5
- package/dist/features/vehicle/data/dto/PaymentDTO.d.ts +52 -52
- package/dist/features/vehicle/data/dto/SimilarVehicleDTO.d.ts +12 -12
- package/dist/features/vehicle/data/dto/VehicleCategoryDTO.d.ts +39 -39
- package/dist/features/vehicle/data/dto/VehicleDTO.d.ts +145 -145
- package/dist/features/vehicle/data/dto/VehicleFavoritesDTO.d.ts +14 -14
- package/dist/features/vehicle/data/dto/VehicleFeatureCategoriesDTO.d.ts +39 -39
- package/dist/features/vehicle/data/dto/VehicleFeatureDTO.d.ts +40 -40
- package/dist/features/vehicle/data/dto/VehicleFilterDTO.d.ts +258 -258
- package/dist/features/vehicle/data/dto/VehicleFinanceDTO.d.ts +63 -63
- package/dist/features/vehicle/data/dto/VehicleInspectionDTO.d.ts +147 -147
- package/dist/features/vehicle/data/dto/VehicleMakeDTO.d.ts +52 -52
- package/dist/features/vehicle/data/dto/VehicleMedia.d.ts +44 -44
- package/dist/features/vehicle/data/dto/VehicleModelDTO.d.ts +50 -50
- package/dist/features/vehicle/data/dto/VehicleOrderDTO.d.ts +34 -34
- package/dist/features/vehicle/data/dto/VehicleTypeDTO.d.ts +35 -35
- package/dist/features/vehicle/data/dto/VehicleWarrantyDTO.d.ts +9 -9
- package/dist/features/vehicle/data/dto/index.d.ts +20 -20
- package/dist/features/vehicle/data/enums/index.d.ts +40 -40
- package/dist/features/vehicle/data/index.d.ts +3 -3
- package/dist/features/vehicle/data/utilities.d.ts +185 -185
- package/dist/features/vehicle/index.d.ts +1 -1
- package/dist/features/vehicle-reservations/data/dto/VehicleReservationDTO.d.ts +106 -106
- package/dist/features/vehicle-reservations/data/dto/index.d.ts +1 -1
- package/dist/features/vehicle-reservations/data/enums/finance-type.d.ts +5 -5
- package/dist/features/vehicle-reservations/data/enums/index.d.ts +3 -3
- package/dist/features/vehicle-reservations/data/enums/reservation-type.d.ts +9 -9
- package/dist/features/vehicle-reservations/data/enums/vehicle-reservation-type.d.ts +4 -4
- package/dist/features/vehicle-reservations/index.d.ts +2 -2
- package/dist/global/dto/BaseGetDTO.d.ts +8 -8
- package/dist/global/dto/index.d.ts +1 -1
- package/dist/global/index.d.ts +2 -2
- package/dist/global/utilities.d.ts +53 -53
- package/dist/index.d.ts +5 -5
- package/dist/models.d.ts +1 -1
- package/package.json +62 -62
|
@@ -1,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
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { LeadPreferencesDTO } from "../lead/data/dto/lead_prefernce_dto";
|
|
2
|
-
import { LeadSource } from "../lead/data/enum/lead_source_status_types";
|
|
3
|
-
import { LeadStatus } from "../lead/data/enum/lead_status_type";
|
|
4
|
-
import { Deposit } from "./Deposit";
|
|
5
|
-
export declare class Lead {
|
|
6
|
-
id: string;
|
|
7
|
-
firstName: string;
|
|
8
|
-
lastName: string;
|
|
9
|
-
email?: string;
|
|
10
|
-
phone: string;
|
|
11
|
-
alternatePhone?: string;
|
|
12
|
-
address?: string;
|
|
13
|
-
city?: string;
|
|
14
|
-
state?: string;
|
|
15
|
-
zipCode?: string;
|
|
16
|
-
status: LeadStatus;
|
|
17
|
-
notes?: string;
|
|
18
|
-
leadSource: LeadSource;
|
|
19
|
-
isTestDriveScheduled: boolean;
|
|
20
|
-
testDriveDate?: Date;
|
|
21
|
-
isActive: boolean;
|
|
22
|
-
lastContactedAt?: Date;
|
|
23
|
-
preference?: LeadPreferencesDTO;
|
|
24
|
-
deposits?: Deposit[];
|
|
25
|
-
}
|
|
1
|
+
import { LeadPreferencesDTO } from "../lead/data/dto/lead_prefernce_dto";
|
|
2
|
+
import { LeadSource } from "../lead/data/enum/lead_source_status_types";
|
|
3
|
+
import { LeadStatus } from "../lead/data/enum/lead_status_type";
|
|
4
|
+
import { Deposit } from "./Deposit";
|
|
5
|
+
export declare class Lead {
|
|
6
|
+
id: string;
|
|
7
|
+
firstName: string;
|
|
8
|
+
lastName: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
phone: string;
|
|
11
|
+
alternatePhone?: string;
|
|
12
|
+
address?: string;
|
|
13
|
+
city?: string;
|
|
14
|
+
state?: string;
|
|
15
|
+
zipCode?: string;
|
|
16
|
+
status: LeadStatus;
|
|
17
|
+
notes?: string;
|
|
18
|
+
leadSource: LeadSource;
|
|
19
|
+
isTestDriveScheduled: boolean;
|
|
20
|
+
testDriveDate?: Date;
|
|
21
|
+
isActive: boolean;
|
|
22
|
+
lastContactedAt?: Date;
|
|
23
|
+
preference?: LeadPreferencesDTO;
|
|
24
|
+
deposits?: Deposit[];
|
|
25
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { MarketingData } from "../../core";
|
|
2
|
-
import { BaseModel } from "./Base";
|
|
3
|
-
import { Lead } from "./Lead";
|
|
4
|
-
export declare enum PaymentStatus {
|
|
5
|
-
DRAFT = "draft",
|
|
6
|
-
PENDING = "pending",
|
|
7
|
-
COMPLETED = "completed",
|
|
8
|
-
FAILED = "failed",
|
|
9
|
-
REFUNDED = "refunded",
|
|
10
|
-
CANCELLED = "cancelled",
|
|
11
|
-
AUTHORIZED = "authorized"
|
|
12
|
-
}
|
|
13
|
-
export declare enum ProductType {
|
|
14
|
-
VEHICLE_DEPOSIT = "vehicle_deposit",
|
|
15
|
-
VALUATION_CERTIFICATE = "valuation_certificate"
|
|
16
|
-
}
|
|
17
|
-
export declare class Payment extends BaseModel {
|
|
18
|
-
userId?: string;
|
|
19
|
-
leadId?: string;
|
|
20
|
-
lead?: Lead;
|
|
21
|
-
amount: number;
|
|
22
|
-
currency: string;
|
|
23
|
-
status: PaymentStatus;
|
|
24
|
-
productType: ProductType;
|
|
25
|
-
stripePaymentIntentId: string | null;
|
|
26
|
-
stripeCheckoutSessionId: string | null;
|
|
27
|
-
stripeClientSecret: string | null;
|
|
28
|
-
stripeRefundId: string | null;
|
|
29
|
-
failureReason: string | null;
|
|
30
|
-
failureCode: string | null;
|
|
31
|
-
failureMessage: string | null;
|
|
32
|
-
declineCode: string | null;
|
|
33
|
-
networkStatus: string | null;
|
|
34
|
-
errorType: string | null;
|
|
35
|
-
rawErrorResponse: Record<string, never> | null;
|
|
36
|
-
paymentDate: Date | null;
|
|
37
|
-
lastAttemptDate: Date | null;
|
|
38
|
-
retryCount: number | null;
|
|
39
|
-
usedPromoCodeId: string | null;
|
|
40
|
-
discountedAmount?: number | null;
|
|
41
|
-
marketing?: MarketingData | null;
|
|
42
|
-
clientPoBox?: string | null;
|
|
43
|
-
clientTrn?: string | null;
|
|
44
|
-
clientEmirate?: string | null;
|
|
45
|
-
clientBusinessName?: string | null;
|
|
46
|
-
}
|
|
1
|
+
import { MarketingData } from "../../core";
|
|
2
|
+
import { BaseModel } from "./Base";
|
|
3
|
+
import { Lead } from "./Lead";
|
|
4
|
+
export declare enum PaymentStatus {
|
|
5
|
+
DRAFT = "draft",
|
|
6
|
+
PENDING = "pending",
|
|
7
|
+
COMPLETED = "completed",
|
|
8
|
+
FAILED = "failed",
|
|
9
|
+
REFUNDED = "refunded",
|
|
10
|
+
CANCELLED = "cancelled",
|
|
11
|
+
AUTHORIZED = "authorized"
|
|
12
|
+
}
|
|
13
|
+
export declare enum ProductType {
|
|
14
|
+
VEHICLE_DEPOSIT = "vehicle_deposit",
|
|
15
|
+
VALUATION_CERTIFICATE = "valuation_certificate"
|
|
16
|
+
}
|
|
17
|
+
export declare class Payment extends BaseModel {
|
|
18
|
+
userId?: string;
|
|
19
|
+
leadId?: string;
|
|
20
|
+
lead?: Lead;
|
|
21
|
+
amount: number;
|
|
22
|
+
currency: string;
|
|
23
|
+
status: PaymentStatus;
|
|
24
|
+
productType: ProductType;
|
|
25
|
+
stripePaymentIntentId: string | null;
|
|
26
|
+
stripeCheckoutSessionId: string | null;
|
|
27
|
+
stripeClientSecret: string | null;
|
|
28
|
+
stripeRefundId: string | null;
|
|
29
|
+
failureReason: string | null;
|
|
30
|
+
failureCode: string | null;
|
|
31
|
+
failureMessage: string | null;
|
|
32
|
+
declineCode: string | null;
|
|
33
|
+
networkStatus: string | null;
|
|
34
|
+
errorType: string | null;
|
|
35
|
+
rawErrorResponse: Record<string, never> | null;
|
|
36
|
+
paymentDate: Date | null;
|
|
37
|
+
lastAttemptDate: Date | null;
|
|
38
|
+
retryCount: number | null;
|
|
39
|
+
usedPromoCodeId: string | null;
|
|
40
|
+
discountedAmount?: number | null;
|
|
41
|
+
marketing?: MarketingData | null;
|
|
42
|
+
clientPoBox?: string | null;
|
|
43
|
+
clientTrn?: string | null;
|
|
44
|
+
clientEmirate?: string | null;
|
|
45
|
+
clientBusinessName?: string | null;
|
|
46
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface Role {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
permissions: string[];
|
|
6
|
-
isActive: boolean;
|
|
7
|
-
}
|
|
1
|
+
export interface Role {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
permissions: string[];
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { TicketRequestType, TicketStatusType } from "../tickets";
|
|
2
|
-
import { User } from "./User";
|
|
3
|
-
export declare class Ticket {
|
|
4
|
-
id: string;
|
|
5
|
-
refId: number;
|
|
6
|
-
requestType: TicketRequestType;
|
|
7
|
-
message: string;
|
|
8
|
-
assignedSalesAgentId?: string;
|
|
9
|
-
assignedSalesAgent?: User;
|
|
10
|
-
agentName: string;
|
|
11
|
-
agentPhoneNumber?: string;
|
|
12
|
-
status: TicketStatusType;
|
|
13
|
-
messages?: TicketMessage[];
|
|
14
|
-
documents?: TicketDocument[];
|
|
15
|
-
createdById: string | null;
|
|
16
|
-
updatedById: string | null;
|
|
17
|
-
deletedById: string | null;
|
|
18
|
-
isDeleted: boolean;
|
|
19
|
-
isActive: boolean;
|
|
20
|
-
createdAt: Date | string;
|
|
21
|
-
updatedAt: Date | string;
|
|
22
|
-
}
|
|
23
|
-
export declare class TicketMessage {
|
|
24
|
-
id: string;
|
|
25
|
-
ticketId: string;
|
|
26
|
-
ticket?: Ticket;
|
|
27
|
-
senderId: string;
|
|
28
|
-
sender?: User;
|
|
29
|
-
isFromAgent: boolean;
|
|
30
|
-
isRead: boolean;
|
|
31
|
-
message: string;
|
|
32
|
-
documentId?: TicketDocument;
|
|
33
|
-
attachedDocument?: TicketDocument;
|
|
34
|
-
createdAt: Date | string;
|
|
35
|
-
updatedAt: Date | string;
|
|
36
|
-
}
|
|
37
|
-
export declare class TicketDocument {
|
|
38
|
-
id: string;
|
|
39
|
-
ticketId: string;
|
|
40
|
-
ticket?: Ticket;
|
|
41
|
-
uploaderId: string;
|
|
42
|
-
uploader?: User;
|
|
43
|
-
filename?: string;
|
|
44
|
-
mimetype?: string;
|
|
45
|
-
url: string;
|
|
46
|
-
size: number;
|
|
47
|
-
messageId?: string;
|
|
48
|
-
message?: TicketMessage;
|
|
49
|
-
createdAt: Date | string;
|
|
50
|
-
updatedAt: Date | string;
|
|
51
|
-
}
|
|
1
|
+
import { TicketRequestType, TicketStatusType } from "../tickets";
|
|
2
|
+
import { User } from "./User";
|
|
3
|
+
export declare class Ticket {
|
|
4
|
+
id: string;
|
|
5
|
+
refId: number;
|
|
6
|
+
requestType: TicketRequestType;
|
|
7
|
+
message: string;
|
|
8
|
+
assignedSalesAgentId?: string;
|
|
9
|
+
assignedSalesAgent?: User;
|
|
10
|
+
agentName: string;
|
|
11
|
+
agentPhoneNumber?: string;
|
|
12
|
+
status: TicketStatusType;
|
|
13
|
+
messages?: TicketMessage[];
|
|
14
|
+
documents?: TicketDocument[];
|
|
15
|
+
createdById: string | null;
|
|
16
|
+
updatedById: string | null;
|
|
17
|
+
deletedById: string | null;
|
|
18
|
+
isDeleted: boolean;
|
|
19
|
+
isActive: boolean;
|
|
20
|
+
createdAt: Date | string;
|
|
21
|
+
updatedAt: Date | string;
|
|
22
|
+
}
|
|
23
|
+
export declare class TicketMessage {
|
|
24
|
+
id: string;
|
|
25
|
+
ticketId: string;
|
|
26
|
+
ticket?: Ticket;
|
|
27
|
+
senderId: string;
|
|
28
|
+
sender?: User;
|
|
29
|
+
isFromAgent: boolean;
|
|
30
|
+
isRead: boolean;
|
|
31
|
+
message: string;
|
|
32
|
+
documentId?: TicketDocument;
|
|
33
|
+
attachedDocument?: TicketDocument;
|
|
34
|
+
createdAt: Date | string;
|
|
35
|
+
updatedAt: Date | string;
|
|
36
|
+
}
|
|
37
|
+
export declare class TicketDocument {
|
|
38
|
+
id: string;
|
|
39
|
+
ticketId: string;
|
|
40
|
+
ticket?: Ticket;
|
|
41
|
+
uploaderId: string;
|
|
42
|
+
uploader?: User;
|
|
43
|
+
filename?: string;
|
|
44
|
+
mimetype?: string;
|
|
45
|
+
url: string;
|
|
46
|
+
size: number;
|
|
47
|
+
messageId?: string;
|
|
48
|
+
message?: TicketMessage;
|
|
49
|
+
createdAt: Date | string;
|
|
50
|
+
updatedAt: Date | string;
|
|
51
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { UserDocumentResponseDto } from "../lead/data/dto/lead_documents_dto";
|
|
2
|
-
import { Deposit } from "./Deposit";
|
|
3
|
-
import { Role } from "./Roles";
|
|
4
|
-
import { UserFavoriteVehicle } from "./UserFavoriteVehicle";
|
|
5
|
-
import { Vehicle } from "./Vehicle";
|
|
6
|
-
export interface User {
|
|
7
|
-
id: string;
|
|
8
|
-
refId: number;
|
|
9
|
-
email: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
phone?: string;
|
|
12
|
-
photo?: string;
|
|
13
|
-
roles: Role[];
|
|
14
|
-
isActive: boolean;
|
|
15
|
-
lastLogin?: Date;
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
updatedAt: Date;
|
|
18
|
-
isPhoneNumberVerified: boolean;
|
|
19
|
-
vehicleFavorites?: UserFavoriteVehicle[];
|
|
20
|
-
favoriteVehicles?: Vehicle[];
|
|
21
|
-
deposits?: Deposit[];
|
|
22
|
-
documents?: UserDocumentResponseDto[];
|
|
23
|
-
bankValuationCertificates?: string[];
|
|
24
|
-
}
|
|
1
|
+
import { UserDocumentResponseDto } from "../lead/data/dto/lead_documents_dto";
|
|
2
|
+
import { Deposit } from "./Deposit";
|
|
3
|
+
import { Role } from "./Roles";
|
|
4
|
+
import { UserFavoriteVehicle } from "./UserFavoriteVehicle";
|
|
5
|
+
import { Vehicle } from "./Vehicle";
|
|
6
|
+
export interface User {
|
|
7
|
+
id: string;
|
|
8
|
+
refId: number;
|
|
9
|
+
email: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
phone?: string;
|
|
12
|
+
photo?: string;
|
|
13
|
+
roles: Role[];
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
lastLogin?: Date;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
isPhoneNumberVerified: boolean;
|
|
19
|
+
vehicleFavorites?: UserFavoriteVehicle[];
|
|
20
|
+
favoriteVehicles?: Vehicle[];
|
|
21
|
+
deposits?: Deposit[];
|
|
22
|
+
documents?: UserDocumentResponseDto[];
|
|
23
|
+
bankValuationCertificates?: string[];
|
|
24
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { User } from "./User";
|
|
2
|
-
import { Vehicle } from "./Vehicle";
|
|
3
|
-
export declare class UserFavoriteVehicle {
|
|
4
|
-
id: string;
|
|
5
|
-
createdAt: Date;
|
|
6
|
-
updatedAt?: Date;
|
|
7
|
-
vehicle: Vehicle;
|
|
8
|
-
user: User;
|
|
9
|
-
}
|
|
1
|
+
import { User } from "./User";
|
|
2
|
+
import { Vehicle } from "./Vehicle";
|
|
3
|
+
export declare class UserFavoriteVehicle {
|
|
4
|
+
id: string;
|
|
5
|
+
createdAt: Date;
|
|
6
|
+
updatedAt?: Date;
|
|
7
|
+
vehicle: Vehicle;
|
|
8
|
+
user: User;
|
|
9
|
+
}
|