@alba-cars/common-modules 2.0.0 → 2.1.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/index.js +1 -21
- package/package.json +10 -6
- package/dist/core/enums/HttpMethods.js +0 -14
- package/dist/core/enums/HttpStatusCodes.js +0 -19
- package/dist/core/enums/index.js +0 -18
- package/dist/core/error-handling/AppError.js +0 -48
- package/dist/core/error-handling/index.js +0 -17
- package/dist/core/index.js +0 -21
- package/dist/core/models/index.js +0 -19
- package/dist/core/models/media/index.js +0 -17
- package/dist/core/models/media/media_data.js +0 -2
- package/dist/core/models/pagination/index.js +0 -17
- package/dist/core/models/pagination/paginated_data.js +0 -21
- package/dist/core/models/range.js +0 -26
- package/dist/core/network/api-client.d.ts +0 -1
- package/dist/core/network/api-client.js +0 -22
- package/dist/core/network/endpoint-config.js +0 -260
- package/dist/core/network/fetch-api.js +0 -206
- package/dist/core/network/index.js +0 -18
- package/dist/core/utils/formatCurrency.js +0 -39
- package/dist/core/utils/global-constants.js +0 -9
- package/dist/core/utils/global-utils.js +0 -190
- package/dist/core/utils/global_validators.js +0 -20
- package/dist/core/utils/index.js +0 -20
- package/dist/core/utils/query_flatten.js +0 -15
- package/dist/features/auth/data/dto/AuthDTO.js +0 -106
- package/dist/features/auth/data/dto/RoleDTO.js +0 -132
- package/dist/features/auth/data/dto/UserDTO.js +0 -222
- package/dist/features/auth/data/index.js +0 -19
- package/dist/features/auth/index.js +0 -17
- package/dist/features/bank-valuation-request/data/dto/BankValuationRequestDTO.js +0 -132
- package/dist/features/bank-valuation-request/index.js +0 -17
- package/dist/features/blog/data/dto/BlogDTO.js +0 -176
- package/dist/features/blog/index.js +0 -17
- package/dist/features/callback-request/data/dto/CallBackRequestDTO.js +0 -110
- package/dist/features/callback-request/index.js +0 -17
- package/dist/features/deposits/data/dto/DepositDTOs.js +0 -303
- package/dist/features/deposits/data/index.js +0 -17
- package/dist/features/deposits/index.js +0 -17
- package/dist/features/faq/data/dtos/CreateFaqDTO.js +0 -87
- package/dist/features/faq/data/dtos/FaqFetchDTO.js +0 -349
- package/dist/features/faq/data/dtos/UpdateFaqDTO.js +0 -91
- package/dist/features/faq/data/dtos/index.js +0 -19
- package/dist/features/faq/data/enums/index.js +0 -10
- package/dist/features/faq/data/index.js +0 -18
- package/dist/features/faq/index.js +0 -17
- package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.js +0 -429
- package/dist/features/finance-eligibilty-request/data/index.js +0 -17
- package/dist/features/finance-eligibilty-request/index.js +0 -17
- package/dist/features/google-review/data/dto/google_review_dto.js +0 -466
- package/dist/features/google-review/data/dto/index.js +0 -17
- package/dist/features/google-review/data/enums/index.js +0 -8
- package/dist/features/google-review/data/index.js +0 -18
- package/dist/features/google-review/index.js +0 -17
- package/dist/features/index.js +0 -34
- package/dist/features/lead/data/dto/index.js +0 -20
- package/dist/features/lead/data/dto/lead_documents_dto.js +0 -73
- package/dist/features/lead/data/dto/lead_dto.js +0 -435
- package/dist/features/lead/data/dto/lead_preference_history_dto.js +0 -321
- package/dist/features/lead/data/dto/lead_prefernce_dto.js +0 -308
- package/dist/features/lead/data/enum/index.js +0 -18
- package/dist/features/lead/data/enum/lead_source_status_types.js +0 -19
- package/dist/features/lead/data/enum/lead_status_type.js +0 -12
- package/dist/features/lead/index.js +0 -18
- package/dist/features/models/BankValuationRequest.js +0 -6
- package/dist/features/models/Base.js +0 -6
- package/dist/features/models/Deposit.js +0 -6
- package/dist/features/models/Lead.js +0 -6
- package/dist/features/models/Payment.js +0 -7
- package/dist/features/models/Roles.js +0 -2
- package/dist/features/models/Ticket.js +0 -12
- package/dist/features/models/User.js +0 -2
- package/dist/features/models/UserFavoriteVehicle.js +0 -6
- package/dist/features/models/Vehicle.js +0 -17
- package/dist/features/models/VehicleBodyType.js +0 -7
- package/dist/features/models/VehicleCategory.js +0 -7
- package/dist/features/models/VehicleFeature.js +0 -7
- package/dist/features/models/VehicleFeatureCategory.js +0 -7
- package/dist/features/models/VehicleFinance.js +0 -7
- package/dist/features/models/VehicleMake.js +0 -7
- package/dist/features/models/VehicleMedia.js +0 -7
- package/dist/features/models/VehicleMetaData.js +0 -7
- package/dist/features/models/VehicleModel.js +0 -7
- package/dist/features/models/VehicleOrder.js +0 -7
- package/dist/features/models/_index.js +0 -30
- package/dist/features/models/index.js +0 -37
- package/dist/features/newsletter/data/dto/NewsletterDTO.js +0 -79
- package/dist/features/newsletter/index.js +0 -17
- package/dist/features/sales-team/data/dto/LanguageDTO.js +0 -89
- package/dist/features/sales-team/data/dto/SalesAgentDTO.js +0 -613
- package/dist/features/sales-team/data/index.js +0 -18
- package/dist/features/sales-team/index.js +0 -17
- package/dist/features/sell-car-request/data/dto/SellCarRequestDTO.js +0 -672
- package/dist/features/sell-car-request/data/index.js +0 -17
- package/dist/features/sell-car-request/index.js +0 -17
- package/dist/features/showroom-visit/data/dto/ShowroomVisit.js +0 -237
- package/dist/features/showroom-visit/data/enums/index.js +0 -17
- package/dist/features/showroom-visit/data/index.js +0 -18
- package/dist/features/showroom-visit/index.js +0 -17
- package/dist/features/test-drive-request/api/GetTestDriveVehicles.js +0 -8
- package/dist/features/test-drive-request/api/index.js +0 -17
- package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.js +0 -179
- package/dist/features/test-drive-request/data/enums/index.js +0 -29
- package/dist/features/test-drive-request/data/index.js +0 -20
- package/dist/features/test-drive-request/data/models/TestDriveRequest.js +0 -7
- package/dist/features/test-drive-request/data/models/index.js +0 -5
- package/dist/features/test-drive-request/data/utilities.js +0 -100
- package/dist/features/test-drive-request/index.js +0 -18
- package/dist/features/tickets/data/dto/TicketDto.js +0 -293
- package/dist/features/tickets/data/enums/index.js +0 -18
- package/dist/features/tickets/index.js +0 -18
- package/dist/features/vehicle/data/dto/BaseDTO.js +0 -34
- package/dist/features/vehicle/data/dto/MediaDTO.js +0 -2
- package/dist/features/vehicle/data/dto/PaymentDTO.js +0 -161
- package/dist/features/vehicle/data/dto/SimilarVehicleDTO.js +0 -38
- package/dist/features/vehicle/data/dto/VehicleCategoryDTO.js +0 -114
- package/dist/features/vehicle/data/dto/VehicleDTO.js +0 -587
- package/dist/features/vehicle/data/dto/VehicleFavoritesDTO.js +0 -60
- package/dist/features/vehicle/data/dto/VehicleFeatureCategoriesDTO.js +0 -114
- package/dist/features/vehicle/data/dto/VehicleFeatureDTO.js +0 -125
- package/dist/features/vehicle/data/dto/VehicleFilterDTO.js +0 -771
- package/dist/features/vehicle/data/dto/VehicleFinanceDTO.js +0 -183
- package/dist/features/vehicle/data/dto/VehicleInspectionDTO.js +0 -765
- package/dist/features/vehicle/data/dto/VehicleMakeDTO.js +0 -189
- package/dist/features/vehicle/data/dto/VehicleMedia.js +0 -152
- package/dist/features/vehicle/data/dto/VehicleModelDTO.js +0 -182
- package/dist/features/vehicle/data/dto/VehicleOrderDTO.js +0 -139
- package/dist/features/vehicle/data/dto/VehicleTypeDTO.js +0 -102
- package/dist/features/vehicle/data/dto/VehicleWarrantyDTO.js +0 -47
- package/dist/features/vehicle/data/dto/index.js +0 -35
- package/dist/features/vehicle/data/enums/index.js +0 -46
- package/dist/features/vehicle/data/index.js +0 -20
- package/dist/features/vehicle/data/utilities.js +0 -520
- package/dist/features/vehicle/index.js +0 -17
- package/dist/features/vehicle-reservations/data/dto/VehicleReservationDTO.js +0 -346
- package/dist/features/vehicle-reservations/data/dto/index.js +0 -17
- package/dist/features/vehicle-reservations/data/enums/finance-type.js +0 -9
- package/dist/features/vehicle-reservations/data/enums/index.js +0 -19
- package/dist/features/vehicle-reservations/data/enums/reservation-type.js +0 -13
- package/dist/features/vehicle-reservations/data/enums/vehicle-reservation-type.js +0 -8
- package/dist/features/vehicle-reservations/index.js +0 -18
- package/dist/global/dto/BaseGetDTO.js +0 -18
- package/dist/global/dto/index.js +0 -17
- package/dist/global/index.js +0 -18
- package/dist/global/utilities.js +0 -173
- package/dist/models.js +0 -17
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File: types/Role.ts
|
|
3
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8
|
-
};
|
|
9
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.RolePermissionUpdateDTO = exports.RoleUpdateDTO = exports.RoleCreateDTO = exports.RoleGetDTO = void 0;
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const class_transformer_1 = require("class-transformer");
|
|
16
|
-
class RoleGetDTO {
|
|
17
|
-
static fromEntity(entity) {
|
|
18
|
-
return (0, class_transformer_1.plainToClass)(RoleGetDTO, entity);
|
|
19
|
-
}
|
|
20
|
-
toPlain() {
|
|
21
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.RoleGetDTO = RoleGetDTO;
|
|
25
|
-
class RoleCreateDTO {
|
|
26
|
-
constructor() {
|
|
27
|
-
this.isActive = true;
|
|
28
|
-
}
|
|
29
|
-
validate() {
|
|
30
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
31
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
32
|
-
}
|
|
33
|
-
static fromPlain(plain) {
|
|
34
|
-
return (0, class_transformer_1.plainToClass)(RoleCreateDTO, plain);
|
|
35
|
-
}
|
|
36
|
-
toPlain() {
|
|
37
|
-
const plain = (0, class_transformer_1.classToPlain)(this);
|
|
38
|
-
// Add timestamps for creation
|
|
39
|
-
plain.createdAt = new Date();
|
|
40
|
-
plain.updatedAt = new Date();
|
|
41
|
-
return plain;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_validator_1.IsString)(),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], RoleCreateDTO.prototype, "name", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
(0, class_validator_1.IsString)(),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], RoleCreateDTO.prototype, "description", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, class_validator_1.IsArray)(),
|
|
55
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
56
|
-
__metadata("design:type", Array)
|
|
57
|
-
], RoleCreateDTO.prototype, "permissions", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_validator_1.IsOptional)(),
|
|
60
|
-
__metadata("design:type", Object)
|
|
61
|
-
], RoleCreateDTO.prototype, "permissionsMap", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsOptional)(),
|
|
64
|
-
(0, class_validator_1.IsBoolean)(),
|
|
65
|
-
__metadata("design:type", Boolean)
|
|
66
|
-
], RoleCreateDTO.prototype, "isActive", void 0);
|
|
67
|
-
exports.RoleCreateDTO = RoleCreateDTO;
|
|
68
|
-
class RoleUpdateDTO {
|
|
69
|
-
validate() {
|
|
70
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
71
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
72
|
-
}
|
|
73
|
-
static fromPlain(plain) {
|
|
74
|
-
return (0, class_transformer_1.plainToClass)(RoleUpdateDTO, plain);
|
|
75
|
-
}
|
|
76
|
-
toPlain() {
|
|
77
|
-
const plain = (0, class_transformer_1.classToPlain)(this);
|
|
78
|
-
// Add updated timestamp
|
|
79
|
-
plain.updatedAt = new Date();
|
|
80
|
-
return plain;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, class_validator_1.IsOptional)(),
|
|
85
|
-
(0, class_validator_1.IsString)(),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], RoleUpdateDTO.prototype, "name", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, class_validator_1.IsOptional)(),
|
|
90
|
-
(0, class_validator_1.IsString)(),
|
|
91
|
-
__metadata("design:type", String)
|
|
92
|
-
], RoleUpdateDTO.prototype, "description", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, class_validator_1.IsOptional)(),
|
|
95
|
-
(0, class_validator_1.IsArray)(),
|
|
96
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
97
|
-
__metadata("design:type", Array)
|
|
98
|
-
], RoleUpdateDTO.prototype, "permissions", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, class_validator_1.IsOptional)(),
|
|
101
|
-
__metadata("design:type", Object)
|
|
102
|
-
], RoleUpdateDTO.prototype, "permissionsMap", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, class_validator_1.IsOptional)(),
|
|
105
|
-
(0, class_validator_1.IsBoolean)(),
|
|
106
|
-
__metadata("design:type", Boolean)
|
|
107
|
-
], RoleUpdateDTO.prototype, "isActive", void 0);
|
|
108
|
-
exports.RoleUpdateDTO = RoleUpdateDTO;
|
|
109
|
-
class RolePermissionUpdateDTO {
|
|
110
|
-
validate() {
|
|
111
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
112
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
113
|
-
}
|
|
114
|
-
static fromPlain(plain) {
|
|
115
|
-
return (0, class_transformer_1.plainToClass)(RolePermissionUpdateDTO, plain);
|
|
116
|
-
}
|
|
117
|
-
toPlain() {
|
|
118
|
-
const plain = (0, class_transformer_1.classToPlain)(this);
|
|
119
|
-
plain.updatedAt = new Date();
|
|
120
|
-
return plain;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, class_validator_1.IsArray)(),
|
|
125
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
126
|
-
__metadata("design:type", Array)
|
|
127
|
-
], RolePermissionUpdateDTO.prototype, "permissions", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, class_validator_1.IsOptional)(),
|
|
130
|
-
__metadata("design:type", Object)
|
|
131
|
-
], RolePermissionUpdateDTO.prototype, "permissionsMap", void 0);
|
|
132
|
-
exports.RolePermissionUpdateDTO = RolePermissionUpdateDTO;
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UserOptionsDTO = exports.UserFilterDTO = exports.UserFetchDTO = exports.UserUpdateDTO = exports.UserCreateDTO = exports.UserGetDTO = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const utilities_1 = require("../../../../global/utilities");
|
|
16
|
-
class UserGetDTO {
|
|
17
|
-
static fromEntity(entity) {
|
|
18
|
-
return (0, class_transformer_1.plainToClass)(UserGetDTO, entity);
|
|
19
|
-
}
|
|
20
|
-
toPlain() {
|
|
21
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.UserGetDTO = UserGetDTO;
|
|
25
|
-
class UserCreateDTO {
|
|
26
|
-
constructor() {
|
|
27
|
-
this.isActive = true;
|
|
28
|
-
}
|
|
29
|
-
validate() {
|
|
30
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
31
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
32
|
-
}
|
|
33
|
-
static fromPlain(plain) {
|
|
34
|
-
return (0, class_transformer_1.plainToClass)(UserCreateDTO, plain);
|
|
35
|
-
}
|
|
36
|
-
toPlain() {
|
|
37
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_validator_1.IsEmail)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], UserCreateDTO.prototype, "email", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_validator_1.IsString)(),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], UserCreateDTO.prototype, "password", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
(0, class_validator_1.IsString)(),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], UserCreateDTO.prototype, "name", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, class_validator_1.IsOptional)(),
|
|
55
|
-
(0, class_validator_1.IsString)(),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], UserCreateDTO.prototype, "phone", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_validator_1.IsOptional)(),
|
|
60
|
-
(0, class_validator_1.IsString)(),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], UserCreateDTO.prototype, "photo", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
(0, class_validator_1.IsArray)(),
|
|
66
|
-
__metadata("design:type", Array)
|
|
67
|
-
], UserCreateDTO.prototype, "roleIds", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, class_validator_1.IsOptional)(),
|
|
70
|
-
(0, class_validator_1.IsBoolean)(),
|
|
71
|
-
__metadata("design:type", Boolean)
|
|
72
|
-
], UserCreateDTO.prototype, "isActive", void 0);
|
|
73
|
-
exports.UserCreateDTO = UserCreateDTO;
|
|
74
|
-
class UserUpdateDTO {
|
|
75
|
-
validate() {
|
|
76
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
77
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
78
|
-
}
|
|
79
|
-
static fromPlain(plain) {
|
|
80
|
-
return (0, class_transformer_1.plainToClass)(UserUpdateDTO, plain);
|
|
81
|
-
}
|
|
82
|
-
toPlain() {
|
|
83
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, class_validator_1.IsOptional)(),
|
|
88
|
-
(0, class_validator_1.IsString)(),
|
|
89
|
-
__metadata("design:type", String)
|
|
90
|
-
], UserUpdateDTO.prototype, "password", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, class_validator_1.IsOptional)(),
|
|
93
|
-
(0, class_validator_1.IsString)(),
|
|
94
|
-
__metadata("design:type", String)
|
|
95
|
-
], UserUpdateDTO.prototype, "name", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, class_validator_1.IsOptional)(),
|
|
98
|
-
(0, class_validator_1.IsString)(),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], UserUpdateDTO.prototype, "phone", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, class_validator_1.IsOptional)(),
|
|
103
|
-
(0, class_validator_1.IsString)(),
|
|
104
|
-
__metadata("design:type", String)
|
|
105
|
-
], UserUpdateDTO.prototype, "email", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, class_validator_1.IsOptional)(),
|
|
108
|
-
(0, class_validator_1.IsString)(),
|
|
109
|
-
__metadata("design:type", String)
|
|
110
|
-
], UserUpdateDTO.prototype, "photo", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, class_validator_1.IsOptional)(),
|
|
113
|
-
(0, class_validator_1.IsArray)(),
|
|
114
|
-
__metadata("design:type", Array)
|
|
115
|
-
], UserUpdateDTO.prototype, "roleIds", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, class_validator_1.IsOptional)(),
|
|
118
|
-
(0, class_validator_1.IsBoolean)(),
|
|
119
|
-
__metadata("design:type", Boolean)
|
|
120
|
-
], UserUpdateDTO.prototype, "isActive", void 0);
|
|
121
|
-
exports.UserUpdateDTO = UserUpdateDTO;
|
|
122
|
-
class UserFetchDTO {
|
|
123
|
-
static fromPlain(plain) {
|
|
124
|
-
return (0, class_transformer_1.plainToClass)(UserFetchDTO, plain);
|
|
125
|
-
}
|
|
126
|
-
toPlain() {
|
|
127
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
exports.UserFetchDTO = UserFetchDTO;
|
|
131
|
-
class UserFilterDTO {
|
|
132
|
-
validate() {
|
|
133
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
134
|
-
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
135
|
-
}
|
|
136
|
-
static fromPlain(plain) {
|
|
137
|
-
return (0, class_transformer_1.plainToClass)(UserFilterDTO, plain);
|
|
138
|
-
}
|
|
139
|
-
toPlain() {
|
|
140
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
__decorate([
|
|
144
|
-
(0, class_validator_1.IsOptional)(),
|
|
145
|
-
(0, class_validator_1.IsString)(),
|
|
146
|
-
__metadata("design:type", String)
|
|
147
|
-
], UserFilterDTO.prototype, "search", void 0);
|
|
148
|
-
__decorate([
|
|
149
|
-
(0, class_validator_1.IsOptional)(),
|
|
150
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
151
|
-
__metadata("design:type", Object)
|
|
152
|
-
], UserFilterDTO.prototype, "id", void 0);
|
|
153
|
-
__decorate([
|
|
154
|
-
(0, class_validator_1.IsOptional)(),
|
|
155
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
156
|
-
__metadata("design:type", Object)
|
|
157
|
-
], UserFilterDTO.prototype, "email", void 0);
|
|
158
|
-
__decorate([
|
|
159
|
-
(0, class_validator_1.IsOptional)(),
|
|
160
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
161
|
-
__metadata("design:type", Object)
|
|
162
|
-
], UserFilterDTO.prototype, "name", void 0);
|
|
163
|
-
__decorate([
|
|
164
|
-
(0, class_validator_1.IsOptional)(),
|
|
165
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
166
|
-
__metadata("design:type", Object)
|
|
167
|
-
], UserFilterDTO.prototype, "phone", void 0);
|
|
168
|
-
__decorate([
|
|
169
|
-
(0, class_validator_1.IsOptional)(),
|
|
170
|
-
(0, class_validator_1.IsBoolean)(),
|
|
171
|
-
__metadata("design:type", Boolean)
|
|
172
|
-
], UserFilterDTO.prototype, "isPhoneNumberVerified", void 0);
|
|
173
|
-
__decorate([
|
|
174
|
-
(0, class_validator_1.IsOptional)(),
|
|
175
|
-
(0, class_validator_1.IsArray)(),
|
|
176
|
-
__metadata("design:type", Array)
|
|
177
|
-
], UserFilterDTO.prototype, "roles", void 0);
|
|
178
|
-
__decorate([
|
|
179
|
-
(0, class_validator_1.IsOptional)(),
|
|
180
|
-
(0, class_validator_1.IsBoolean)(),
|
|
181
|
-
__metadata("design:type", Boolean)
|
|
182
|
-
], UserFilterDTO.prototype, "isActive", void 0);
|
|
183
|
-
__decorate([
|
|
184
|
-
(0, class_validator_1.IsOptional)(),
|
|
185
|
-
(0, class_validator_1.IsBoolean)(),
|
|
186
|
-
__metadata("design:type", Boolean)
|
|
187
|
-
], UserFilterDTO.prototype, "hasSpecialRoles", void 0);
|
|
188
|
-
__decorate([
|
|
189
|
-
(0, class_validator_1.IsOptional)(),
|
|
190
|
-
(0, class_validator_1.IsDate)(),
|
|
191
|
-
__metadata("design:type", Date)
|
|
192
|
-
], UserFilterDTO.prototype, "fromDate", void 0);
|
|
193
|
-
__decorate([
|
|
194
|
-
(0, class_validator_1.IsOptional)(),
|
|
195
|
-
(0, class_validator_1.IsDate)(),
|
|
196
|
-
__metadata("design:type", Date)
|
|
197
|
-
], UserFilterDTO.prototype, "toDate", void 0);
|
|
198
|
-
exports.UserFilterDTO = UserFilterDTO;
|
|
199
|
-
class UserOptionsDTO extends utilities_1.PaginationOptions {
|
|
200
|
-
static fromPlain(plain) {
|
|
201
|
-
return (0, class_transformer_1.plainToClass)(UserOptionsDTO, plain);
|
|
202
|
-
}
|
|
203
|
-
toPlain() {
|
|
204
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
__decorate([
|
|
208
|
-
(0, class_validator_1.IsOptional)(),
|
|
209
|
-
(0, class_validator_1.IsBoolean)(),
|
|
210
|
-
__metadata("design:type", Boolean)
|
|
211
|
-
], UserOptionsDTO.prototype, "withDocuments", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
(0, class_validator_1.IsOptional)(),
|
|
214
|
-
(0, class_validator_1.IsBoolean)(),
|
|
215
|
-
__metadata("design:type", Boolean)
|
|
216
|
-
], UserOptionsDTO.prototype, "withDeposits", void 0);
|
|
217
|
-
__decorate([
|
|
218
|
-
(0, class_validator_1.IsOptional)(),
|
|
219
|
-
(0, class_validator_1.IsBoolean)(),
|
|
220
|
-
__metadata("design:type", Boolean)
|
|
221
|
-
], UserOptionsDTO.prototype, "withFavoriteVehicles", void 0);
|
|
222
|
-
exports.UserOptionsDTO = UserOptionsDTO;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./dto/AuthDTO"), exports);
|
|
18
|
-
__exportStar(require("./dto/RoleDTO"), exports);
|
|
19
|
-
__exportStar(require("./dto/UserDTO"), exports);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./data"), exports);
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.BankValuationRequestUpdateDto = exports.BankValuationRequestCreateDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class BankValuationRequestCreateDto {
|
|
15
|
-
}
|
|
16
|
-
__decorate([
|
|
17
|
-
(0, class_validator_1.IsString)(),
|
|
18
|
-
__metadata("design:type", String)
|
|
19
|
-
], BankValuationRequestCreateDto.prototype, "name", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsEmail)(),
|
|
22
|
-
(0, class_validator_1.IsOptional)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], BankValuationRequestCreateDto.prototype, "email", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], BankValuationRequestCreateDto.prototype, "phone", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsString)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], BankValuationRequestCreateDto.prototype, "bankName", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsEmail)(),
|
|
35
|
-
(0, class_validator_1.IsOptional)(),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], BankValuationRequestCreateDto.prototype, "bankerEmail", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsString)(),
|
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], BankValuationRequestCreateDto.prototype, "makeDealDriveId", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.IsString)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], BankValuationRequestCreateDto.prototype, "make", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsString)(),
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], BankValuationRequestCreateDto.prototype, "modelDealDriveId", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsString)(),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], BankValuationRequestCreateDto.prototype, "model", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, class_validator_1.IsString)(),
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], BankValuationRequestCreateDto.prototype, "trimDealDriveId", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, class_validator_1.IsString)(),
|
|
63
|
-
(0, class_validator_1.IsOptional)(),
|
|
64
|
-
__metadata("design:type", String)
|
|
65
|
-
], BankValuationRequestCreateDto.prototype, "trim", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, class_validator_1.IsNumber)(),
|
|
68
|
-
__metadata("design:type", Number)
|
|
69
|
-
], BankValuationRequestCreateDto.prototype, "year", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, class_validator_1.IsString)(),
|
|
72
|
-
(0, class_validator_1.IsOptional)(),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], BankValuationRequestCreateDto.prototype, "color", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsString)(),
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], BankValuationRequestCreateDto.prototype, "vin", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, class_validator_1.IsNumber)(),
|
|
81
|
-
__metadata("design:type", Number)
|
|
82
|
-
], BankValuationRequestCreateDto.prototype, "engineSize", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, class_validator_1.IsString)(),
|
|
85
|
-
__metadata("design:type", String)
|
|
86
|
-
], BankValuationRequestCreateDto.prototype, "engineNumber", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, class_validator_1.IsNumber)(),
|
|
89
|
-
__metadata("design:type", Number)
|
|
90
|
-
], BankValuationRequestCreateDto.prototype, "mileage", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, class_validator_1.IsString)(),
|
|
93
|
-
__metadata("design:type", String)
|
|
94
|
-
], BankValuationRequestCreateDto.prototype, "specs", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, class_validator_1.IsNumber)(),
|
|
97
|
-
__metadata("design:type", Number)
|
|
98
|
-
], BankValuationRequestCreateDto.prototype, "value", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, class_validator_1.IsString)(),
|
|
101
|
-
(0, class_validator_1.IsOptional)(),
|
|
102
|
-
__metadata("design:type", String)
|
|
103
|
-
], BankValuationRequestCreateDto.prototype, "comments", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, class_validator_1.IsArray)(),
|
|
106
|
-
(0, class_validator_1.IsOptional)(),
|
|
107
|
-
__metadata("design:type", Array)
|
|
108
|
-
], BankValuationRequestCreateDto.prototype, "images", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, class_validator_1.IsString)(),
|
|
111
|
-
(0, class_validator_1.IsOptional)(),
|
|
112
|
-
__metadata("design:type", String)
|
|
113
|
-
], BankValuationRequestCreateDto.prototype, "createdById", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
(0, class_validator_1.IsString)(),
|
|
116
|
-
(0, class_validator_1.IsOptional)(),
|
|
117
|
-
__metadata("design:type", String)
|
|
118
|
-
], BankValuationRequestCreateDto.prototype, "sessionId", void 0);
|
|
119
|
-
exports.BankValuationRequestCreateDto = BankValuationRequestCreateDto;
|
|
120
|
-
class BankValuationRequestUpdateDto {
|
|
121
|
-
}
|
|
122
|
-
__decorate([
|
|
123
|
-
(0, class_validator_1.IsString)(),
|
|
124
|
-
(0, class_validator_1.IsOptional)(),
|
|
125
|
-
__metadata("design:type", String)
|
|
126
|
-
], BankValuationRequestUpdateDto.prototype, "comments", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
(0, class_validator_1.IsOptional)(),
|
|
129
|
-
(0, class_validator_1.IsEnum)(["pending", "paid", "payment_declined", "rejected", "approved"]),
|
|
130
|
-
__metadata("design:type", String)
|
|
131
|
-
], BankValuationRequestUpdateDto.prototype, "status", void 0);
|
|
132
|
-
exports.BankValuationRequestUpdateDto = BankValuationRequestUpdateDto;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./data/dto/BankValuationRequestDTO"), exports);
|