@alba-cars/common-modules 2.11.0 → 2.12.1
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,71 +1,71 @@
|
|
|
1
|
-
import { Role } from "../../../models/Roles";
|
|
2
|
-
import { PaginationOptions } from "../../../../global/utilities";
|
|
3
|
-
import { RoleGetDTO } from "./RoleDTO";
|
|
4
|
-
export declare class UserGetDTO {
|
|
5
|
-
id: string;
|
|
6
|
-
refId: number;
|
|
7
|
-
email?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
phone?: string;
|
|
10
|
-
photo?: string;
|
|
11
|
-
roles: RoleGetDTO[];
|
|
12
|
-
isActive: boolean;
|
|
13
|
-
lastLogin?: Date;
|
|
14
|
-
createdAt: Date;
|
|
15
|
-
updatedAt: Date;
|
|
16
|
-
static fromEntity(entity: any): UserGetDTO;
|
|
17
|
-
toPlain(): Record<string, unknown>;
|
|
18
|
-
}
|
|
19
|
-
export declare class UserCreateDTO {
|
|
20
|
-
email?: string;
|
|
21
|
-
password: string;
|
|
22
|
-
name?: string;
|
|
23
|
-
phone: string;
|
|
24
|
-
photo?: string;
|
|
25
|
-
roleIds?: string[];
|
|
26
|
-
isActive?: boolean;
|
|
27
|
-
validate(): string[];
|
|
28
|
-
static fromPlain(plain: Record<string, unknown>): UserCreateDTO;
|
|
29
|
-
toPlain(): Record<string, unknown>;
|
|
30
|
-
}
|
|
31
|
-
export declare class UserUpdateDTO {
|
|
32
|
-
password?: string;
|
|
33
|
-
name?: string;
|
|
34
|
-
phone?: string;
|
|
35
|
-
email?: string;
|
|
36
|
-
photo?: string;
|
|
37
|
-
roleIds?: string[];
|
|
38
|
-
isActive?: boolean;
|
|
39
|
-
validate(): string[];
|
|
40
|
-
static fromPlain(plain: Record<string, unknown>): UserUpdateDTO;
|
|
41
|
-
toPlain(): Record<string, unknown>;
|
|
42
|
-
}
|
|
43
|
-
export declare class UserFetchDTO {
|
|
44
|
-
filters?: UserFilterDTO;
|
|
45
|
-
options?: UserOptionsDTO;
|
|
46
|
-
static fromPlain(plain: Record<string, unknown>): UserFetchDTO;
|
|
47
|
-
toPlain(): Record<string, unknown>;
|
|
48
|
-
}
|
|
49
|
-
export declare class UserFilterDTO {
|
|
50
|
-
search?: string;
|
|
51
|
-
id?: string | string[];
|
|
52
|
-
email?: string | string[];
|
|
53
|
-
name?: string | string[];
|
|
54
|
-
phone?: string | string[];
|
|
55
|
-
isPhoneNumberVerified?: boolean;
|
|
56
|
-
roles?: Role[];
|
|
57
|
-
isActive?: boolean;
|
|
58
|
-
hasSpecialRoles?: boolean;
|
|
59
|
-
fromDate?: Date;
|
|
60
|
-
toDate?: Date;
|
|
61
|
-
validate(): string[];
|
|
62
|
-
static fromPlain(plain: Record<string, unknown>): UserFilterDTO;
|
|
63
|
-
toPlain(): Record<string, unknown>;
|
|
64
|
-
}
|
|
65
|
-
export declare class UserOptionsDTO extends PaginationOptions {
|
|
66
|
-
withDocuments?: boolean;
|
|
67
|
-
withDeposits?: boolean;
|
|
68
|
-
withFavoriteVehicles?: boolean;
|
|
69
|
-
static fromPlain(plain: Record<string, unknown>): UserOptionsDTO;
|
|
70
|
-
toPlain(): Record<string, unknown>;
|
|
71
|
-
}
|
|
1
|
+
import { Role } from "../../../models/Roles";
|
|
2
|
+
import { PaginationOptions } from "../../../../global/utilities";
|
|
3
|
+
import { RoleGetDTO } from "./RoleDTO";
|
|
4
|
+
export declare class UserGetDTO {
|
|
5
|
+
id: string;
|
|
6
|
+
refId: number;
|
|
7
|
+
email?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
phone?: string;
|
|
10
|
+
photo?: string;
|
|
11
|
+
roles: RoleGetDTO[];
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
lastLogin?: Date;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
static fromEntity(entity: any): UserGetDTO;
|
|
17
|
+
toPlain(): Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
export declare class UserCreateDTO {
|
|
20
|
+
email?: string;
|
|
21
|
+
password: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
phone: string;
|
|
24
|
+
photo?: string;
|
|
25
|
+
roleIds?: string[];
|
|
26
|
+
isActive?: boolean;
|
|
27
|
+
validate(): string[];
|
|
28
|
+
static fromPlain(plain: Record<string, unknown>): UserCreateDTO;
|
|
29
|
+
toPlain(): Record<string, unknown>;
|
|
30
|
+
}
|
|
31
|
+
export declare class UserUpdateDTO {
|
|
32
|
+
password?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
phone?: string;
|
|
35
|
+
email?: string;
|
|
36
|
+
photo?: string;
|
|
37
|
+
roleIds?: string[];
|
|
38
|
+
isActive?: boolean;
|
|
39
|
+
validate(): string[];
|
|
40
|
+
static fromPlain(plain: Record<string, unknown>): UserUpdateDTO;
|
|
41
|
+
toPlain(): Record<string, unknown>;
|
|
42
|
+
}
|
|
43
|
+
export declare class UserFetchDTO {
|
|
44
|
+
filters?: UserFilterDTO;
|
|
45
|
+
options?: UserOptionsDTO;
|
|
46
|
+
static fromPlain(plain: Record<string, unknown>): UserFetchDTO;
|
|
47
|
+
toPlain(): Record<string, unknown>;
|
|
48
|
+
}
|
|
49
|
+
export declare class UserFilterDTO {
|
|
50
|
+
search?: string;
|
|
51
|
+
id?: string | string[];
|
|
52
|
+
email?: string | string[];
|
|
53
|
+
name?: string | string[];
|
|
54
|
+
phone?: string | string[];
|
|
55
|
+
isPhoneNumberVerified?: boolean;
|
|
56
|
+
roles?: Role[];
|
|
57
|
+
isActive?: boolean;
|
|
58
|
+
hasSpecialRoles?: boolean;
|
|
59
|
+
fromDate?: Date;
|
|
60
|
+
toDate?: Date;
|
|
61
|
+
validate(): string[];
|
|
62
|
+
static fromPlain(plain: Record<string, unknown>): UserFilterDTO;
|
|
63
|
+
toPlain(): Record<string, unknown>;
|
|
64
|
+
}
|
|
65
|
+
export declare class UserOptionsDTO extends PaginationOptions {
|
|
66
|
+
withDocuments?: boolean;
|
|
67
|
+
withDeposits?: boolean;
|
|
68
|
+
withFavoriteVehicles?: boolean;
|
|
69
|
+
static fromPlain(plain: Record<string, unknown>): UserOptionsDTO;
|
|
70
|
+
toPlain(): Record<string, unknown>;
|
|
71
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./dto/AuthDTO";
|
|
2
|
-
export * from "./dto/RoleDTO";
|
|
3
|
-
export * from "./dto/UserDTO";
|
|
1
|
+
export * from "./dto/AuthDTO";
|
|
2
|
+
export * from "./dto/RoleDTO";
|
|
3
|
+
export * from "./dto/UserDTO";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./data";
|
|
1
|
+
export * from "./data";
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { MarketingData } from "../../../../core";
|
|
2
|
-
import { BankValuationActionType } from "../../../models/BankValuationResult";
|
|
3
|
-
export declare class BankValuationRequestCreateDto {
|
|
4
|
-
name: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
phone: string;
|
|
7
|
-
clientName?: string | null;
|
|
8
|
-
clientEmail?: string | null;
|
|
9
|
-
clientPhone?: string | null;
|
|
10
|
-
bankName: string;
|
|
11
|
-
bankerEmail?: string;
|
|
12
|
-
makeDealDriveId?: string;
|
|
13
|
-
make: string;
|
|
14
|
-
modelDealDriveId?: string;
|
|
15
|
-
model: string;
|
|
16
|
-
trimDealDriveId?: string;
|
|
17
|
-
trim?: string;
|
|
18
|
-
trimOption?: string;
|
|
19
|
-
trimOptionDealDriveId?: string;
|
|
20
|
-
year: number;
|
|
21
|
-
color?: string;
|
|
22
|
-
vin: string;
|
|
23
|
-
engineSize?: number | null;
|
|
24
|
-
engineNumber?: string;
|
|
25
|
-
engineType?: string;
|
|
26
|
-
mileage: number;
|
|
27
|
-
specs: string;
|
|
28
|
-
specification?: string;
|
|
29
|
-
value: number;
|
|
30
|
-
comments?: string;
|
|
31
|
-
images?: string[];
|
|
32
|
-
createdById?: string;
|
|
33
|
-
sessionId?: string;
|
|
34
|
-
bankApplicationId?: string;
|
|
35
|
-
dealDriveEstimatedPrice?: number;
|
|
36
|
-
marketing?: MarketingData;
|
|
37
|
-
clientMileage?: number | null;
|
|
38
|
-
mileageUnit?: "km" | "miles";
|
|
39
|
-
}
|
|
40
|
-
export declare class BankValuationRequestUpdateDto {
|
|
41
|
-
comments?: string;
|
|
42
|
-
status?: string;
|
|
43
|
-
}
|
|
44
|
-
export declare class BankValuationResultCreateDto {
|
|
45
|
-
bankValuationRequestId: string;
|
|
46
|
-
doneById: string;
|
|
47
|
-
action: BankValuationActionType;
|
|
48
|
-
rejectionReason?: string;
|
|
49
|
-
approvalComments?: string;
|
|
50
|
-
approvedValuation?: number;
|
|
51
|
-
dealDriveEstimatedPrice?: number;
|
|
52
|
-
certificateUrl?: string;
|
|
53
|
-
ipAddress?: string;
|
|
54
|
-
static fromPlain(plain: Record<string, unknown>): BankValuationResultCreateDto;
|
|
55
|
-
}
|
|
1
|
+
import { MarketingData } from "../../../../core";
|
|
2
|
+
import { BankValuationActionType } from "../../../models/BankValuationResult";
|
|
3
|
+
export declare class BankValuationRequestCreateDto {
|
|
4
|
+
name: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
phone: string;
|
|
7
|
+
clientName?: string | null;
|
|
8
|
+
clientEmail?: string | null;
|
|
9
|
+
clientPhone?: string | null;
|
|
10
|
+
bankName: string;
|
|
11
|
+
bankerEmail?: string;
|
|
12
|
+
makeDealDriveId?: string;
|
|
13
|
+
make: string;
|
|
14
|
+
modelDealDriveId?: string;
|
|
15
|
+
model: string;
|
|
16
|
+
trimDealDriveId?: string;
|
|
17
|
+
trim?: string;
|
|
18
|
+
trimOption?: string;
|
|
19
|
+
trimOptionDealDriveId?: string;
|
|
20
|
+
year: number;
|
|
21
|
+
color?: string;
|
|
22
|
+
vin: string;
|
|
23
|
+
engineSize?: number | null;
|
|
24
|
+
engineNumber?: string;
|
|
25
|
+
engineType?: string;
|
|
26
|
+
mileage: number;
|
|
27
|
+
specs: string;
|
|
28
|
+
specification?: string;
|
|
29
|
+
value: number;
|
|
30
|
+
comments?: string;
|
|
31
|
+
images?: string[];
|
|
32
|
+
createdById?: string;
|
|
33
|
+
sessionId?: string;
|
|
34
|
+
bankApplicationId?: string;
|
|
35
|
+
dealDriveEstimatedPrice?: number;
|
|
36
|
+
marketing?: MarketingData;
|
|
37
|
+
clientMileage?: number | null;
|
|
38
|
+
mileageUnit?: "km" | "miles";
|
|
39
|
+
}
|
|
40
|
+
export declare class BankValuationRequestUpdateDto {
|
|
41
|
+
comments?: string;
|
|
42
|
+
status?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare class BankValuationResultCreateDto {
|
|
45
|
+
bankValuationRequestId: string;
|
|
46
|
+
doneById: string;
|
|
47
|
+
action: BankValuationActionType;
|
|
48
|
+
rejectionReason?: string;
|
|
49
|
+
approvalComments?: string;
|
|
50
|
+
approvedValuation?: number;
|
|
51
|
+
dealDriveEstimatedPrice?: number;
|
|
52
|
+
certificateUrl?: string;
|
|
53
|
+
ipAddress?: string;
|
|
54
|
+
static fromPlain(plain: Record<string, unknown>): BankValuationResultCreateDto;
|
|
55
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./data/dto/BankValuationRequestDTO";
|
|
1
|
+
export * from "./data/dto/BankValuationRequestDTO";
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { DateFilter, TypedFilter } from "../../../../global/utilities";
|
|
2
|
-
declare class BlogFaqItem {
|
|
3
|
-
question: string;
|
|
4
|
-
answer: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class BlogFilter extends TypedFilter {
|
|
7
|
-
title?: string | string[];
|
|
8
|
-
slug?: string | string[];
|
|
9
|
-
status?: string | string[];
|
|
10
|
-
date?: DateFilter;
|
|
11
|
-
validate(): string[];
|
|
12
|
-
static fromPlain(plain: Record<string, unknown>): BlogFilter;
|
|
13
|
-
}
|
|
14
|
-
export declare class BlogGetDTOOptions {
|
|
15
|
-
page?: number;
|
|
16
|
-
limit?: number;
|
|
17
|
-
sort?: any;
|
|
18
|
-
}
|
|
19
|
-
export declare class BlogGetDTO {
|
|
20
|
-
id: string;
|
|
21
|
-
title: string;
|
|
22
|
-
description: string;
|
|
23
|
-
content: string;
|
|
24
|
-
date: Date;
|
|
25
|
-
imageLink: string;
|
|
26
|
-
imageAlt: string;
|
|
27
|
-
metaDescription: string;
|
|
28
|
-
metaKeywords: string;
|
|
29
|
-
slug: string;
|
|
30
|
-
status: string;
|
|
31
|
-
createdById: string;
|
|
32
|
-
faq?: BlogFaqItem[];
|
|
33
|
-
audioUrl?: string;
|
|
34
|
-
filters?: BlogFilter;
|
|
35
|
-
options?: BlogGetDTOOptions;
|
|
36
|
-
static fromEntity(entity: any): BlogGetDTO;
|
|
37
|
-
toPlain(): Record<string, unknown>;
|
|
38
|
-
validate(): string[];
|
|
39
|
-
static fromPlain(plain: Record<string, unknown>): BlogGetDTO;
|
|
40
|
-
}
|
|
41
|
-
export declare class BlogCreateDTO {
|
|
42
|
-
title: string;
|
|
43
|
-
description: string;
|
|
44
|
-
content: string;
|
|
45
|
-
date: string;
|
|
46
|
-
imageLink: string;
|
|
47
|
-
imageAlt: string;
|
|
48
|
-
metaDescription: string;
|
|
49
|
-
metaKeywords: string;
|
|
50
|
-
slug: string;
|
|
51
|
-
status: string;
|
|
52
|
-
faq?: BlogFaqItem[];
|
|
53
|
-
audioUrl?: string;
|
|
54
|
-
validate(): string[];
|
|
55
|
-
static fromPlain(plain: Record<string, unknown>): BlogCreateDTO;
|
|
56
|
-
}
|
|
57
|
-
export declare class BlogUpdateDTO {
|
|
58
|
-
title?: string;
|
|
59
|
-
description?: string;
|
|
60
|
-
content?: string;
|
|
61
|
-
date?: string;
|
|
62
|
-
imageLink?: string;
|
|
63
|
-
imageAlt?: string;
|
|
64
|
-
metaDescription?: string;
|
|
65
|
-
metaKeywords?: string;
|
|
66
|
-
slug?: string;
|
|
67
|
-
status?: string;
|
|
68
|
-
faq?: BlogFaqItem[];
|
|
69
|
-
audioUrl?: string;
|
|
70
|
-
validate(): string[];
|
|
71
|
-
static fromPlain(plain: Record<string, unknown>): BlogUpdateDTO;
|
|
72
|
-
}
|
|
73
|
-
export {};
|
|
1
|
+
import { DateFilter, TypedFilter } from "../../../../global/utilities";
|
|
2
|
+
declare class BlogFaqItem {
|
|
3
|
+
question: string;
|
|
4
|
+
answer: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class BlogFilter extends TypedFilter {
|
|
7
|
+
title?: string | string[];
|
|
8
|
+
slug?: string | string[];
|
|
9
|
+
status?: string | string[];
|
|
10
|
+
date?: DateFilter;
|
|
11
|
+
validate(): string[];
|
|
12
|
+
static fromPlain(plain: Record<string, unknown>): BlogFilter;
|
|
13
|
+
}
|
|
14
|
+
export declare class BlogGetDTOOptions {
|
|
15
|
+
page?: number;
|
|
16
|
+
limit?: number;
|
|
17
|
+
sort?: any;
|
|
18
|
+
}
|
|
19
|
+
export declare class BlogGetDTO {
|
|
20
|
+
id: string;
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
content: string;
|
|
24
|
+
date: Date;
|
|
25
|
+
imageLink: string;
|
|
26
|
+
imageAlt: string;
|
|
27
|
+
metaDescription: string;
|
|
28
|
+
metaKeywords: string;
|
|
29
|
+
slug: string;
|
|
30
|
+
status: string;
|
|
31
|
+
createdById: string;
|
|
32
|
+
faq?: BlogFaqItem[];
|
|
33
|
+
audioUrl?: string;
|
|
34
|
+
filters?: BlogFilter;
|
|
35
|
+
options?: BlogGetDTOOptions;
|
|
36
|
+
static fromEntity(entity: any): BlogGetDTO;
|
|
37
|
+
toPlain(): Record<string, unknown>;
|
|
38
|
+
validate(): string[];
|
|
39
|
+
static fromPlain(plain: Record<string, unknown>): BlogGetDTO;
|
|
40
|
+
}
|
|
41
|
+
export declare class BlogCreateDTO {
|
|
42
|
+
title: string;
|
|
43
|
+
description: string;
|
|
44
|
+
content: string;
|
|
45
|
+
date: string;
|
|
46
|
+
imageLink: string;
|
|
47
|
+
imageAlt: string;
|
|
48
|
+
metaDescription: string;
|
|
49
|
+
metaKeywords: string;
|
|
50
|
+
slug: string;
|
|
51
|
+
status: string;
|
|
52
|
+
faq?: BlogFaqItem[];
|
|
53
|
+
audioUrl?: string;
|
|
54
|
+
validate(): string[];
|
|
55
|
+
static fromPlain(plain: Record<string, unknown>): BlogCreateDTO;
|
|
56
|
+
}
|
|
57
|
+
export declare class BlogUpdateDTO {
|
|
58
|
+
title?: string;
|
|
59
|
+
description?: string;
|
|
60
|
+
content?: string;
|
|
61
|
+
date?: string;
|
|
62
|
+
imageLink?: string;
|
|
63
|
+
imageAlt?: string;
|
|
64
|
+
metaDescription?: string;
|
|
65
|
+
metaKeywords?: string;
|
|
66
|
+
slug?: string;
|
|
67
|
+
status?: string;
|
|
68
|
+
faq?: BlogFaqItem[];
|
|
69
|
+
audioUrl?: string;
|
|
70
|
+
validate(): string[];
|
|
71
|
+
static fromPlain(plain: Record<string, unknown>): BlogUpdateDTO;
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./data/dto/BlogDTO";
|
|
1
|
+
export * from "./data/dto/BlogDTO";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { ValidatorConstraintInterface, ValidationArguments } from "class-validator";
|
|
2
|
-
export declare class IsPhoneConstraint implements ValidatorConstraintInterface {
|
|
3
|
-
validate(phone: string, args: ValidationArguments): boolean;
|
|
4
|
-
defaultMessage(args: ValidationArguments): string;
|
|
5
|
-
}
|
|
6
|
-
export declare class CallbackRequestCreateDTO {
|
|
7
|
-
name: string;
|
|
8
|
-
phone: string;
|
|
9
|
-
enquiryText: string;
|
|
10
|
-
validate(): string[];
|
|
11
|
-
static fromPlain(plain: Record<string, unknown>): CallbackRequestCreateDTO;
|
|
12
|
-
toPlain(): Record<string, unknown>;
|
|
13
|
-
}
|
|
14
|
-
export declare class CallbackRequestUpdateDTO {
|
|
15
|
-
name?: string;
|
|
16
|
-
phone?: string;
|
|
17
|
-
enquiryText?: string;
|
|
18
|
-
validate(): string[];
|
|
19
|
-
static fromPlain(plain: Record<string, unknown>): CallbackRequestUpdateDTO;
|
|
20
|
-
toPlain(): Record<string, unknown>;
|
|
21
|
-
}
|
|
22
|
-
export declare class CallbackRequestResponseDTO {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
phone: string;
|
|
26
|
-
enquiryText: string;
|
|
27
|
-
createdAt: Date;
|
|
28
|
-
updatedAt: Date;
|
|
29
|
-
validate(): string[];
|
|
30
|
-
static fromPlain(plain: Record<string, unknown>): CallbackRequestResponseDTO;
|
|
31
|
-
toPlain(): Record<string, unknown>;
|
|
32
|
-
}
|
|
1
|
+
import { ValidatorConstraintInterface, ValidationArguments } from "class-validator";
|
|
2
|
+
export declare class IsPhoneConstraint implements ValidatorConstraintInterface {
|
|
3
|
+
validate(phone: string, args: ValidationArguments): boolean;
|
|
4
|
+
defaultMessage(args: ValidationArguments): string;
|
|
5
|
+
}
|
|
6
|
+
export declare class CallbackRequestCreateDTO {
|
|
7
|
+
name: string;
|
|
8
|
+
phone: string;
|
|
9
|
+
enquiryText: string;
|
|
10
|
+
validate(): string[];
|
|
11
|
+
static fromPlain(plain: Record<string, unknown>): CallbackRequestCreateDTO;
|
|
12
|
+
toPlain(): Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
export declare class CallbackRequestUpdateDTO {
|
|
15
|
+
name?: string;
|
|
16
|
+
phone?: string;
|
|
17
|
+
enquiryText?: string;
|
|
18
|
+
validate(): string[];
|
|
19
|
+
static fromPlain(plain: Record<string, unknown>): CallbackRequestUpdateDTO;
|
|
20
|
+
toPlain(): Record<string, unknown>;
|
|
21
|
+
}
|
|
22
|
+
export declare class CallbackRequestResponseDTO {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
phone: string;
|
|
26
|
+
enquiryText: string;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
validate(): string[];
|
|
30
|
+
static fromPlain(plain: Record<string, unknown>): CallbackRequestResponseDTO;
|
|
31
|
+
toPlain(): Record<string, unknown>;
|
|
32
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./data/dto/CallBackRequestDTO";
|
|
1
|
+
export * from "./data/dto/CallBackRequestDTO";
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { BaseGetDTO, TypedFilter, TypedOptions } from "../../../../global";
|
|
2
|
-
import { LeadDTO } from "../../../lead/data/dto/lead_dto";
|
|
3
|
-
import { Vehicle } from "../../../models";
|
|
4
|
-
import { MarketingData } from "../../../../core";
|
|
5
|
-
export declare enum DepositStatus {
|
|
6
|
-
PENDING = "pending",
|
|
7
|
-
COMPLETED = "completed",
|
|
8
|
-
FAILED = "failed"
|
|
9
|
-
}
|
|
10
|
-
export declare enum PaymentOption {
|
|
11
|
-
CASH = "cash",
|
|
12
|
-
BANK_TYPE_A = "bank-a",
|
|
13
|
-
BANK_TYPE_B = "bank-b"
|
|
14
|
-
}
|
|
15
|
-
export declare class DepositDTO {
|
|
16
|
-
id: string;
|
|
17
|
-
stripePaymentIntentId: string;
|
|
18
|
-
amount: number;
|
|
19
|
-
currency: string;
|
|
20
|
-
status: DepositStatus;
|
|
21
|
-
isRefundable: boolean;
|
|
22
|
-
paymentOption: PaymentOption;
|
|
23
|
-
isRefunded: boolean;
|
|
24
|
-
lead?: LeadDTO;
|
|
25
|
-
vehicle: Vehicle;
|
|
26
|
-
isDeleted?: boolean;
|
|
27
|
-
createdAt?: Date;
|
|
28
|
-
updatedAt?: Date;
|
|
29
|
-
validate(): string[];
|
|
30
|
-
static fromPlain(plain: Record<string, unknown>): DepositDTO;
|
|
31
|
-
toPlain(): Record<string, unknown>;
|
|
32
|
-
}
|
|
33
|
-
export declare class DepositCreateDTO {
|
|
34
|
-
stripePaymentIntentId: string;
|
|
35
|
-
amount: number;
|
|
36
|
-
paymentOption: PaymentOption;
|
|
37
|
-
currency: string;
|
|
38
|
-
status: DepositStatus;
|
|
39
|
-
isRefundable?: boolean;
|
|
40
|
-
isRefunded?: boolean;
|
|
41
|
-
leadId?: string;
|
|
42
|
-
userId?: string;
|
|
43
|
-
vehicleId: string;
|
|
44
|
-
marketing?: MarketingData;
|
|
45
|
-
validate(): string[];
|
|
46
|
-
static fromPlain(plain: Record<string, unknown>): DepositCreateDTO;
|
|
47
|
-
toPlain(): Record<string, unknown>;
|
|
48
|
-
}
|
|
49
|
-
export declare class DepositUpdateDTO {
|
|
50
|
-
status?: DepositStatus;
|
|
51
|
-
isRefundable?: boolean;
|
|
52
|
-
isRefunded?: boolean;
|
|
53
|
-
paymentOption?: PaymentOption;
|
|
54
|
-
isDeleted?: boolean;
|
|
55
|
-
validate(): string[];
|
|
56
|
-
static fromPlain(plain: Record<string, unknown>): DepositUpdateDTO;
|
|
57
|
-
toPlain(): Record<string, unknown>;
|
|
58
|
-
}
|
|
59
|
-
export declare class DepositFilter extends TypedFilter {
|
|
60
|
-
id?: string | string[];
|
|
61
|
-
stripePaymentIntentId?: string | string[];
|
|
62
|
-
amount?: number | number[];
|
|
63
|
-
currency?: string | string[];
|
|
64
|
-
status?: DepositStatus | DepositStatus[];
|
|
65
|
-
isRefundable?: boolean;
|
|
66
|
-
isRefunded?: boolean;
|
|
67
|
-
leadId?: string | string[];
|
|
68
|
-
userId?: string | string[];
|
|
69
|
-
vehicleId?: string | string[];
|
|
70
|
-
isDeleted?: boolean;
|
|
71
|
-
search?: string;
|
|
72
|
-
fromDate?: Date;
|
|
73
|
-
toDate?: Date;
|
|
74
|
-
}
|
|
75
|
-
export declare class DepositOptions extends TypedOptions<DepositDTO> {
|
|
76
|
-
static fromPlain(plain: Record<string, unknown>): DepositOptions;
|
|
77
|
-
toPlain(): Record<string, unknown>;
|
|
78
|
-
}
|
|
79
|
-
export declare class DepositGetDTO extends BaseGetDTO<DepositDTO, DepositFilter> {
|
|
80
|
-
filters?: DepositFilter;
|
|
81
|
-
options?: DepositOptions;
|
|
82
|
-
static fromPlain<T extends BaseGetDTO<DepositDTO, DepositFilter>>(this: new () => T, plain: Record<string, unknown>): T;
|
|
83
|
-
toPlain(): Record<string, unknown>;
|
|
84
|
-
}
|
|
1
|
+
import { BaseGetDTO, TypedFilter, TypedOptions } from "../../../../global";
|
|
2
|
+
import { LeadDTO } from "../../../lead/data/dto/lead_dto";
|
|
3
|
+
import { Vehicle } from "../../../models";
|
|
4
|
+
import { MarketingData } from "../../../../core";
|
|
5
|
+
export declare enum DepositStatus {
|
|
6
|
+
PENDING = "pending",
|
|
7
|
+
COMPLETED = "completed",
|
|
8
|
+
FAILED = "failed"
|
|
9
|
+
}
|
|
10
|
+
export declare enum PaymentOption {
|
|
11
|
+
CASH = "cash",
|
|
12
|
+
BANK_TYPE_A = "bank-a",
|
|
13
|
+
BANK_TYPE_B = "bank-b"
|
|
14
|
+
}
|
|
15
|
+
export declare class DepositDTO {
|
|
16
|
+
id: string;
|
|
17
|
+
stripePaymentIntentId: string;
|
|
18
|
+
amount: number;
|
|
19
|
+
currency: string;
|
|
20
|
+
status: DepositStatus;
|
|
21
|
+
isRefundable: boolean;
|
|
22
|
+
paymentOption: PaymentOption;
|
|
23
|
+
isRefunded: boolean;
|
|
24
|
+
lead?: LeadDTO;
|
|
25
|
+
vehicle: Vehicle;
|
|
26
|
+
isDeleted?: boolean;
|
|
27
|
+
createdAt?: Date;
|
|
28
|
+
updatedAt?: Date;
|
|
29
|
+
validate(): string[];
|
|
30
|
+
static fromPlain(plain: Record<string, unknown>): DepositDTO;
|
|
31
|
+
toPlain(): Record<string, unknown>;
|
|
32
|
+
}
|
|
33
|
+
export declare class DepositCreateDTO {
|
|
34
|
+
stripePaymentIntentId: string;
|
|
35
|
+
amount: number;
|
|
36
|
+
paymentOption: PaymentOption;
|
|
37
|
+
currency: string;
|
|
38
|
+
status: DepositStatus;
|
|
39
|
+
isRefundable?: boolean;
|
|
40
|
+
isRefunded?: boolean;
|
|
41
|
+
leadId?: string;
|
|
42
|
+
userId?: string;
|
|
43
|
+
vehicleId: string;
|
|
44
|
+
marketing?: MarketingData;
|
|
45
|
+
validate(): string[];
|
|
46
|
+
static fromPlain(plain: Record<string, unknown>): DepositCreateDTO;
|
|
47
|
+
toPlain(): Record<string, unknown>;
|
|
48
|
+
}
|
|
49
|
+
export declare class DepositUpdateDTO {
|
|
50
|
+
status?: DepositStatus;
|
|
51
|
+
isRefundable?: boolean;
|
|
52
|
+
isRefunded?: boolean;
|
|
53
|
+
paymentOption?: PaymentOption;
|
|
54
|
+
isDeleted?: boolean;
|
|
55
|
+
validate(): string[];
|
|
56
|
+
static fromPlain(plain: Record<string, unknown>): DepositUpdateDTO;
|
|
57
|
+
toPlain(): Record<string, unknown>;
|
|
58
|
+
}
|
|
59
|
+
export declare class DepositFilter extends TypedFilter {
|
|
60
|
+
id?: string | string[];
|
|
61
|
+
stripePaymentIntentId?: string | string[];
|
|
62
|
+
amount?: number | number[];
|
|
63
|
+
currency?: string | string[];
|
|
64
|
+
status?: DepositStatus | DepositStatus[];
|
|
65
|
+
isRefundable?: boolean;
|
|
66
|
+
isRefunded?: boolean;
|
|
67
|
+
leadId?: string | string[];
|
|
68
|
+
userId?: string | string[];
|
|
69
|
+
vehicleId?: string | string[];
|
|
70
|
+
isDeleted?: boolean;
|
|
71
|
+
search?: string;
|
|
72
|
+
fromDate?: Date;
|
|
73
|
+
toDate?: Date;
|
|
74
|
+
}
|
|
75
|
+
export declare class DepositOptions extends TypedOptions<DepositDTO> {
|
|
76
|
+
static fromPlain(plain: Record<string, unknown>): DepositOptions;
|
|
77
|
+
toPlain(): Record<string, unknown>;
|
|
78
|
+
}
|
|
79
|
+
export declare class DepositGetDTO extends BaseGetDTO<DepositDTO, DepositFilter> {
|
|
80
|
+
filters?: DepositFilter;
|
|
81
|
+
options?: DepositOptions;
|
|
82
|
+
static fromPlain<T extends BaseGetDTO<DepositDTO, DepositFilter>>(this: new () => T, plain: Record<string, unknown>): T;
|
|
83
|
+
toPlain(): Record<string, unknown>;
|
|
84
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./dto/DepositDTOs";
|
|
1
|
+
export * from "./dto/DepositDTOs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./data";
|
|
1
|
+
export * from "./data";
|