@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,100 +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.TestDriveRequestOptions = exports.TestDriveRequestFilter = void 0;
|
|
13
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const enums_1 = require("./enums");
|
|
16
|
-
const class_transformer_1 = require("class-transformer");
|
|
17
|
-
const utilities_1 = require("../../../global/utilities");
|
|
18
|
-
class TestDriveRequestFilter extends utilities_1.TypedFilter {
|
|
19
|
-
validate() {
|
|
20
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
21
|
-
return errors.map(error => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
22
|
-
}
|
|
23
|
-
fromPlain(plain) {
|
|
24
|
-
return (0, class_transformer_1.plainToClass)(TestDriveRequestFilter, plain);
|
|
25
|
-
}
|
|
26
|
-
toPlain() {
|
|
27
|
-
return (0, class_transformer_1.instanceToPlain)(this);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
33
|
-
__metadata("design:type", Object)
|
|
34
|
-
], TestDriveRequestFilter.prototype, "vehicles", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
38
|
-
__metadata("design:type", Object)
|
|
39
|
-
], TestDriveRequestFilter.prototype, "referenceNumber", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_validator_1.IsOptional)(),
|
|
42
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], TestDriveRequestFilter.prototype, "testerName", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, class_validator_1.IsOptional)(),
|
|
47
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], TestDriveRequestFilter.prototype, "testerMobile", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, class_validator_1.IsOptional)(),
|
|
52
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
53
|
-
__metadata("design:type", Object)
|
|
54
|
-
], TestDriveRequestFilter.prototype, "testerEmail", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_validator_1.IsOptional)(),
|
|
57
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
58
|
-
__metadata("design:type", Object)
|
|
59
|
-
], TestDriveRequestFilter.prototype, "search", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, class_validator_1.IsOptional)(),
|
|
62
|
-
(0, class_validator_1.IsEnum)(enums_1.TestDriveRequestStatus, { each: true }),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], TestDriveRequestFilter.prototype, "status", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, class_validator_1.IsOptional)(),
|
|
67
|
-
(0, class_transformer_1.Type)(() => utilities_1.DateFilter),
|
|
68
|
-
__metadata("design:type", utilities_1.DateFilter)
|
|
69
|
-
], TestDriveRequestFilter.prototype, "requestedDate", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, class_validator_1.IsOptional)(),
|
|
72
|
-
(0, class_transformer_1.Type)(() => utilities_1.DateFilter),
|
|
73
|
-
__metadata("design:type", utilities_1.DateFilter)
|
|
74
|
-
], TestDriveRequestFilter.prototype, "testDriveDate", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsOptional)(),
|
|
77
|
-
(0, class_validator_1.IsEnum)(enums_1.LeadThrough, { each: true }),
|
|
78
|
-
__metadata("design:type", Object)
|
|
79
|
-
], TestDriveRequestFilter.prototype, "leadThrough", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, class_validator_1.IsOptional)(),
|
|
82
|
-
(0, class_validator_1.IsString)(),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], TestDriveRequestFilter.prototype, "comments", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, class_validator_1.IsOptional)(),
|
|
87
|
-
(0, class_validator_1.IsObject)(),
|
|
88
|
-
__metadata("design:type", utilities_1.DateFilter)
|
|
89
|
-
], TestDriveRequestFilter.prototype, "createdAt", void 0);
|
|
90
|
-
exports.TestDriveRequestFilter = TestDriveRequestFilter;
|
|
91
|
-
class TestDriveRequestOptions extends utilities_1.PaginationOptions {
|
|
92
|
-
validate() {
|
|
93
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
94
|
-
return errors.map(error => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
95
|
-
}
|
|
96
|
-
fromPlain(plain) {
|
|
97
|
-
return (0, class_transformer_1.plainToClass)(TestDriveRequestOptions, plain);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
exports.TestDriveRequestOptions = TestDriveRequestOptions;
|
|
@@ -1,18 +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);
|
|
18
|
-
__exportStar(require("./api"), exports);
|
|
@@ -1,293 +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.TicketGetDTO = exports.TicketDto = exports.UpdateTicketDto = exports.CreateTicketDocumentDto = exports.CreateTicketMessageDto = exports.CreateTicketDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const enums_1 = require("../enums");
|
|
16
|
-
const models_1 = require("../../../models");
|
|
17
|
-
class CreateTicketDto {
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsUUID)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], CreateTicketDto.prototype, "userId", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsEnum)(enums_1.TicketRequestType),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], CreateTicketDto.prototype, "requestType", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], CreateTicketDto.prototype, "message", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, class_validator_1.IsUUID)(),
|
|
33
|
-
(0, class_validator_1.IsOptional)(),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], CreateTicketDto.prototype, "assignedSalesAgentId", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_validator_1.IsString)(),
|
|
38
|
-
(0, class_validator_1.IsOptional)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], CreateTicketDto.prototype, "agentName", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_validator_1.IsString)(),
|
|
43
|
-
(0, class_validator_1.IsOptional)(),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], CreateTicketDto.prototype, "agentPhoneNumber", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_validator_1.IsOptional)(),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], CreateTicketDto.prototype, "initialDocument", void 0);
|
|
50
|
-
exports.CreateTicketDto = CreateTicketDto;
|
|
51
|
-
class CreateTicketMessageDto {
|
|
52
|
-
}
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, class_validator_1.IsUUID)(),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], CreateTicketMessageDto.prototype, "ticketId", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsUUID)(),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], CreateTicketMessageDto.prototype, "senderId", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, class_validator_1.IsString)(),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], CreateTicketMessageDto.prototype, "message", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, class_validator_1.IsBoolean)(),
|
|
67
|
-
__metadata("design:type", Boolean)
|
|
68
|
-
], CreateTicketMessageDto.prototype, "isFromAgent", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsOptional)(),
|
|
71
|
-
__metadata("design:type", Object)
|
|
72
|
-
], CreateTicketMessageDto.prototype, "attachedDocument", void 0);
|
|
73
|
-
exports.CreateTicketMessageDto = CreateTicketMessageDto;
|
|
74
|
-
class CreateTicketDocumentDto {
|
|
75
|
-
}
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, class_validator_1.IsUUID)(),
|
|
78
|
-
__metadata("design:type", String)
|
|
79
|
-
], CreateTicketDocumentDto.prototype, "ticketId", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, class_validator_1.IsUUID)(),
|
|
82
|
-
__metadata("design:type", String)
|
|
83
|
-
], CreateTicketDocumentDto.prototype, "uploaderId", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, class_validator_1.IsUUID)(),
|
|
86
|
-
(0, class_validator_1.IsOptional)(),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], CreateTicketDocumentDto.prototype, "messageId", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, class_validator_1.IsOptional)(),
|
|
91
|
-
__metadata("design:type", Object)
|
|
92
|
-
], CreateTicketDocumentDto.prototype, "document", void 0);
|
|
93
|
-
exports.CreateTicketDocumentDto = CreateTicketDocumentDto;
|
|
94
|
-
class UpdateTicketDto {
|
|
95
|
-
}
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, class_validator_1.IsEnum)(enums_1.TicketRequestType),
|
|
98
|
-
(0, class_validator_1.IsOptional)(),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], UpdateTicketDto.prototype, "requestType", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, class_validator_1.IsString)(),
|
|
103
|
-
(0, class_validator_1.IsOptional)(),
|
|
104
|
-
__metadata("design:type", String)
|
|
105
|
-
], UpdateTicketDto.prototype, "message", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, class_validator_1.IsUUID)(),
|
|
108
|
-
(0, class_validator_1.IsOptional)(),
|
|
109
|
-
__metadata("design:type", String)
|
|
110
|
-
], UpdateTicketDto.prototype, "assignedSalesAgentId", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, class_validator_1.IsString)(),
|
|
113
|
-
(0, class_validator_1.IsOptional)(),
|
|
114
|
-
__metadata("design:type", String)
|
|
115
|
-
], UpdateTicketDto.prototype, "agentName", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, class_validator_1.IsString)(),
|
|
118
|
-
(0, class_validator_1.IsOptional)(),
|
|
119
|
-
__metadata("design:type", String)
|
|
120
|
-
], UpdateTicketDto.prototype, "agentPhoneNumber", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, class_validator_1.IsEnum)(enums_1.TicketStatusType),
|
|
123
|
-
(0, class_validator_1.IsOptional)(),
|
|
124
|
-
__metadata("design:type", String)
|
|
125
|
-
], UpdateTicketDto.prototype, "status", void 0);
|
|
126
|
-
__decorate([
|
|
127
|
-
(0, class_validator_1.IsOptional)(),
|
|
128
|
-
(0, class_validator_1.IsArray)(),
|
|
129
|
-
__metadata("design:type", Array)
|
|
130
|
-
], UpdateTicketDto.prototype, "documents", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, class_validator_1.IsOptional)(),
|
|
133
|
-
(0, class_validator_1.IsArray)(),
|
|
134
|
-
(0, class_transformer_1.Type)(() => models_1.TicketMessage),
|
|
135
|
-
__metadata("design:type", Array)
|
|
136
|
-
], UpdateTicketDto.prototype, "messages", void 0);
|
|
137
|
-
exports.UpdateTicketDto = UpdateTicketDto;
|
|
138
|
-
class TicketDto {
|
|
139
|
-
}
|
|
140
|
-
__decorate([
|
|
141
|
-
(0, class_validator_1.IsUUID)(),
|
|
142
|
-
__metadata("design:type", String)
|
|
143
|
-
], TicketDto.prototype, "id", void 0);
|
|
144
|
-
__decorate([
|
|
145
|
-
(0, class_validator_1.IsUUID)(),
|
|
146
|
-
__metadata("design:type", String)
|
|
147
|
-
], TicketDto.prototype, "userId", void 0);
|
|
148
|
-
__decorate([
|
|
149
|
-
(0, class_validator_1.IsEnum)(enums_1.TicketRequestType),
|
|
150
|
-
__metadata("design:type", String)
|
|
151
|
-
], TicketDto.prototype, "requestType", void 0);
|
|
152
|
-
__decorate([
|
|
153
|
-
(0, class_validator_1.IsString)(),
|
|
154
|
-
__metadata("design:type", String)
|
|
155
|
-
], TicketDto.prototype, "message", void 0);
|
|
156
|
-
__decorate([
|
|
157
|
-
(0, class_validator_1.IsUUID)(),
|
|
158
|
-
(0, class_validator_1.IsOptional)(),
|
|
159
|
-
__metadata("design:type", String)
|
|
160
|
-
], TicketDto.prototype, "assignedSalesAgentId", void 0);
|
|
161
|
-
__decorate([
|
|
162
|
-
(0, class_validator_1.IsOptional)(),
|
|
163
|
-
__metadata("design:type", Object)
|
|
164
|
-
], TicketDto.prototype, "assignedSalesAgent", void 0);
|
|
165
|
-
__decorate([
|
|
166
|
-
(0, class_validator_1.IsOptional)(),
|
|
167
|
-
__metadata("design:type", Object)
|
|
168
|
-
], TicketDto.prototype, "user", void 0);
|
|
169
|
-
__decorate([
|
|
170
|
-
(0, class_validator_1.IsString)(),
|
|
171
|
-
(0, class_validator_1.IsOptional)(),
|
|
172
|
-
__metadata("design:type", String)
|
|
173
|
-
], TicketDto.prototype, "agentName", void 0);
|
|
174
|
-
__decorate([
|
|
175
|
-
(0, class_validator_1.IsString)(),
|
|
176
|
-
(0, class_validator_1.IsOptional)(),
|
|
177
|
-
__metadata("design:type", String)
|
|
178
|
-
], TicketDto.prototype, "agentPhoneNumber", void 0);
|
|
179
|
-
__decorate([
|
|
180
|
-
(0, class_validator_1.IsEnum)(enums_1.TicketStatusType),
|
|
181
|
-
__metadata("design:type", String)
|
|
182
|
-
], TicketDto.prototype, "status", void 0);
|
|
183
|
-
__decorate([
|
|
184
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
185
|
-
(0, class_validator_1.IsDate)(),
|
|
186
|
-
__metadata("design:type", Date)
|
|
187
|
-
], TicketDto.prototype, "createdAt", void 0);
|
|
188
|
-
__decorate([
|
|
189
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
190
|
-
(0, class_validator_1.IsDate)(),
|
|
191
|
-
__metadata("design:type", Date)
|
|
192
|
-
], TicketDto.prototype, "updatedAt", void 0);
|
|
193
|
-
__decorate([
|
|
194
|
-
(0, class_validator_1.IsOptional)(),
|
|
195
|
-
(0, class_transformer_1.Type)(() => models_1.TicketMessage),
|
|
196
|
-
__metadata("design:type", Array)
|
|
197
|
-
], TicketDto.prototype, "messages", void 0);
|
|
198
|
-
__decorate([
|
|
199
|
-
(0, class_validator_1.IsOptional)(),
|
|
200
|
-
(0, class_transformer_1.Type)(() => models_1.TicketDocument),
|
|
201
|
-
__metadata("design:type", Array)
|
|
202
|
-
], TicketDto.prototype, "documents", void 0);
|
|
203
|
-
exports.TicketDto = TicketDto;
|
|
204
|
-
class TicketGetDTO {
|
|
205
|
-
constructor() {
|
|
206
|
-
this.id = "";
|
|
207
|
-
this.refId = 0;
|
|
208
|
-
this.createdById = null;
|
|
209
|
-
this.updatedById = null;
|
|
210
|
-
this.deletedById = null;
|
|
211
|
-
this.isDeleted = false;
|
|
212
|
-
this.isActive = true;
|
|
213
|
-
this.createdAt = new Date().toISOString();
|
|
214
|
-
this.updatedAt = new Date().toISOString();
|
|
215
|
-
this.userId = "";
|
|
216
|
-
this.requestType = enums_1.TicketRequestType.CAR_VIEWING;
|
|
217
|
-
this.message = "";
|
|
218
|
-
this.assignedSalesAgentId;
|
|
219
|
-
this.agentName = "";
|
|
220
|
-
this.agentPhoneNumber = "";
|
|
221
|
-
this.status = enums_1.TicketStatusType.OPEN;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
__decorate([
|
|
225
|
-
(0, class_validator_1.IsUUID)(),
|
|
226
|
-
__metadata("design:type", String)
|
|
227
|
-
], TicketGetDTO.prototype, "id", void 0);
|
|
228
|
-
__decorate([
|
|
229
|
-
(0, class_validator_1.IsNumber)(),
|
|
230
|
-
__metadata("design:type", Number)
|
|
231
|
-
], TicketGetDTO.prototype, "refId", void 0);
|
|
232
|
-
__decorate([
|
|
233
|
-
(0, class_validator_1.IsUUID)(),
|
|
234
|
-
(0, class_validator_1.IsOptional)(),
|
|
235
|
-
__metadata("design:type", Object)
|
|
236
|
-
], TicketGetDTO.prototype, "createdById", void 0);
|
|
237
|
-
__decorate([
|
|
238
|
-
(0, class_validator_1.IsUUID)(),
|
|
239
|
-
(0, class_validator_1.IsOptional)(),
|
|
240
|
-
__metadata("design:type", Object)
|
|
241
|
-
], TicketGetDTO.prototype, "updatedById", void 0);
|
|
242
|
-
__decorate([
|
|
243
|
-
(0, class_validator_1.IsUUID)(),
|
|
244
|
-
(0, class_validator_1.IsOptional)(),
|
|
245
|
-
__metadata("design:type", Object)
|
|
246
|
-
], TicketGetDTO.prototype, "deletedById", void 0);
|
|
247
|
-
__decorate([
|
|
248
|
-
(0, class_validator_1.IsBoolean)(),
|
|
249
|
-
__metadata("design:type", Boolean)
|
|
250
|
-
], TicketGetDTO.prototype, "isDeleted", void 0);
|
|
251
|
-
__decorate([
|
|
252
|
-
(0, class_validator_1.IsBoolean)(),
|
|
253
|
-
__metadata("design:type", Boolean)
|
|
254
|
-
], TicketGetDTO.prototype, "isActive", void 0);
|
|
255
|
-
__decorate([
|
|
256
|
-
(0, class_validator_1.IsString)(),
|
|
257
|
-
__metadata("design:type", String)
|
|
258
|
-
], TicketGetDTO.prototype, "createdAt", void 0);
|
|
259
|
-
__decorate([
|
|
260
|
-
(0, class_validator_1.IsString)(),
|
|
261
|
-
__metadata("design:type", String)
|
|
262
|
-
], TicketGetDTO.prototype, "updatedAt", void 0);
|
|
263
|
-
__decorate([
|
|
264
|
-
(0, class_validator_1.IsUUID)(),
|
|
265
|
-
__metadata("design:type", String)
|
|
266
|
-
], TicketGetDTO.prototype, "userId", void 0);
|
|
267
|
-
__decorate([
|
|
268
|
-
(0, class_validator_1.IsEnum)(enums_1.TicketRequestType),
|
|
269
|
-
__metadata("design:type", String)
|
|
270
|
-
], TicketGetDTO.prototype, "requestType", void 0);
|
|
271
|
-
__decorate([
|
|
272
|
-
(0, class_validator_1.IsString)(),
|
|
273
|
-
__metadata("design:type", String)
|
|
274
|
-
], TicketGetDTO.prototype, "message", void 0);
|
|
275
|
-
__decorate([
|
|
276
|
-
(0, class_validator_1.IsUUID)(),
|
|
277
|
-
(0, class_validator_1.IsOptional)(),
|
|
278
|
-
__metadata("design:type", String)
|
|
279
|
-
], TicketGetDTO.prototype, "assignedSalesAgentId", void 0);
|
|
280
|
-
__decorate([
|
|
281
|
-
(0, class_validator_1.IsString)(),
|
|
282
|
-
__metadata("design:type", String)
|
|
283
|
-
], TicketGetDTO.prototype, "agentName", void 0);
|
|
284
|
-
__decorate([
|
|
285
|
-
(0, class_validator_1.IsString)(),
|
|
286
|
-
(0, class_validator_1.IsOptional)(),
|
|
287
|
-
__metadata("design:type", String)
|
|
288
|
-
], TicketGetDTO.prototype, "agentPhoneNumber", void 0);
|
|
289
|
-
__decorate([
|
|
290
|
-
(0, class_validator_1.IsEnum)(enums_1.TicketStatusType),
|
|
291
|
-
__metadata("design:type", String)
|
|
292
|
-
], TicketGetDTO.prototype, "status", void 0);
|
|
293
|
-
exports.TicketGetDTO = TicketGetDTO;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TicketStatusType = exports.TicketRequestType = void 0;
|
|
4
|
-
var TicketRequestType;
|
|
5
|
-
(function (TicketRequestType) {
|
|
6
|
-
TicketRequestType["WARRANTY"] = "Warranty";
|
|
7
|
-
TicketRequestType["REFUND"] = "Refund";
|
|
8
|
-
TicketRequestType["TEST_DRIVE"] = "Test Drive";
|
|
9
|
-
TicketRequestType["CAR_VIEWING"] = "Car Viewing";
|
|
10
|
-
TicketRequestType["COMPLAINT"] = "Complaint";
|
|
11
|
-
})(TicketRequestType = exports.TicketRequestType || (exports.TicketRequestType = {}));
|
|
12
|
-
var TicketStatusType;
|
|
13
|
-
(function (TicketStatusType) {
|
|
14
|
-
TicketStatusType["OPEN"] = "Open";
|
|
15
|
-
TicketStatusType["IN_PROGRESS"] = "In Progress";
|
|
16
|
-
TicketStatusType["RESOLVED"] = "Resolved";
|
|
17
|
-
TicketStatusType["CLOSED"] = "Closed";
|
|
18
|
-
})(TicketStatusType = exports.TicketStatusType || (exports.TicketStatusType = {}));
|
|
@@ -1,18 +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/enums"), exports);
|
|
18
|
-
__exportStar(require("./data/dto/TicketDto"), exports);
|
|
@@ -1,34 +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.BaseDeleteDTO = exports.BaseUpdateDTO = exports.BaseCreateDTO = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class BaseCreateDTO {
|
|
15
|
-
}
|
|
16
|
-
__decorate([
|
|
17
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
18
|
-
__metadata("design:type", String)
|
|
19
|
-
], BaseCreateDTO.prototype, "createdById", void 0);
|
|
20
|
-
exports.BaseCreateDTO = BaseCreateDTO;
|
|
21
|
-
class BaseUpdateDTO {
|
|
22
|
-
}
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], BaseUpdateDTO.prototype, "updatedById", void 0);
|
|
27
|
-
exports.BaseUpdateDTO = BaseUpdateDTO;
|
|
28
|
-
class BaseDeleteDTO {
|
|
29
|
-
}
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], BaseDeleteDTO.prototype, "deletedById", void 0);
|
|
34
|
-
exports.BaseDeleteDTO = BaseDeleteDTO;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// PaymentDTO.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.PaymentUpdateDTO = exports.PaymentCreateDTO = exports.PaymentGetDTO = void 0;
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const class_transformer_1 = require("class-transformer");
|
|
16
|
-
class PaymentGetDTO {
|
|
17
|
-
static fromEntity(entity) {
|
|
18
|
-
return (0, class_transformer_1.plainToClass)(PaymentGetDTO, entity);
|
|
19
|
-
}
|
|
20
|
-
toPlain() {
|
|
21
|
-
return (0, class_transformer_1.classToPlain)(this);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.PaymentGetDTO = PaymentGetDTO;
|
|
25
|
-
class PaymentCreateDTO {
|
|
26
|
-
validate() {
|
|
27
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
28
|
-
return errors.map(error => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
29
|
-
}
|
|
30
|
-
static fromPlain(plain) {
|
|
31
|
-
return (0, class_transformer_1.plainToClass)(PaymentCreateDTO, plain);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_validator_1.IsString)(),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], PaymentCreateDTO.prototype, "userId", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsString)(),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], PaymentCreateDTO.prototype, "requestId", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_validator_1.IsString)(),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], PaymentCreateDTO.prototype, "vehicleId", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_validator_1.IsString)(),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], PaymentCreateDTO.prototype, "transactionId", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, class_validator_1.IsString)(),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], PaymentCreateDTO.prototype, "paymentStatus", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, class_validator_1.IsString)(),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], PaymentCreateDTO.prototype, "paymentResponse", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_validator_1.IsNumber)(),
|
|
60
|
-
__metadata("design:type", Number)
|
|
61
|
-
], PaymentCreateDTO.prototype, "amountPaid", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsString)(),
|
|
64
|
-
__metadata("design:type", String)
|
|
65
|
-
], PaymentCreateDTO.prototype, "tokenId", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, class_validator_1.IsString)(),
|
|
68
|
-
__metadata("design:type", String)
|
|
69
|
-
], PaymentCreateDTO.prototype, "state", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, class_validator_1.IsString)(),
|
|
72
|
-
__metadata("design:type", String)
|
|
73
|
-
], PaymentCreateDTO.prototype, "failureReason", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, class_validator_1.IsString)(),
|
|
76
|
-
__metadata("design:type", String)
|
|
77
|
-
], PaymentCreateDTO.prototype, "failureCode", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, class_validator_1.IsString)(),
|
|
80
|
-
__metadata("design:type", String)
|
|
81
|
-
], PaymentCreateDTO.prototype, "accountId", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, class_validator_1.IsDate)(),
|
|
84
|
-
__metadata("design:type", Date)
|
|
85
|
-
], PaymentCreateDTO.prototype, "paymentDate", void 0);
|
|
86
|
-
exports.PaymentCreateDTO = PaymentCreateDTO;
|
|
87
|
-
class PaymentUpdateDTO {
|
|
88
|
-
validate() {
|
|
89
|
-
const errors = (0, class_validator_1.validateSync)(this);
|
|
90
|
-
return errors.map(error => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
91
|
-
}
|
|
92
|
-
static fromPlain(plain) {
|
|
93
|
-
return (0, class_transformer_1.plainToClass)(PaymentUpdateDTO, plain);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, class_validator_1.IsOptional)(),
|
|
98
|
-
(0, class_validator_1.IsString)(),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], PaymentUpdateDTO.prototype, "userId", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, class_validator_1.IsOptional)(),
|
|
103
|
-
(0, class_validator_1.IsString)(),
|
|
104
|
-
__metadata("design:type", String)
|
|
105
|
-
], PaymentUpdateDTO.prototype, "requestId", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, class_validator_1.IsOptional)(),
|
|
108
|
-
(0, class_validator_1.IsString)(),
|
|
109
|
-
__metadata("design:type", String)
|
|
110
|
-
], PaymentUpdateDTO.prototype, "vehicleId", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, class_validator_1.IsOptional)(),
|
|
113
|
-
(0, class_validator_1.IsString)(),
|
|
114
|
-
__metadata("design:type", String)
|
|
115
|
-
], PaymentUpdateDTO.prototype, "transactionId", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, class_validator_1.IsOptional)(),
|
|
118
|
-
(0, class_validator_1.IsString)(),
|
|
119
|
-
__metadata("design:type", String)
|
|
120
|
-
], PaymentUpdateDTO.prototype, "paymentStatus", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, class_validator_1.IsOptional)(),
|
|
123
|
-
(0, class_validator_1.IsString)(),
|
|
124
|
-
__metadata("design:type", String)
|
|
125
|
-
], PaymentUpdateDTO.prototype, "paymentResponse", void 0);
|
|
126
|
-
__decorate([
|
|
127
|
-
(0, class_validator_1.IsOptional)(),
|
|
128
|
-
(0, class_validator_1.IsNumber)(),
|
|
129
|
-
__metadata("design:type", Number)
|
|
130
|
-
], PaymentUpdateDTO.prototype, "amountPaid", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, class_validator_1.IsOptional)(),
|
|
133
|
-
(0, class_validator_1.IsString)(),
|
|
134
|
-
__metadata("design:type", String)
|
|
135
|
-
], PaymentUpdateDTO.prototype, "tokenId", void 0);
|
|
136
|
-
__decorate([
|
|
137
|
-
(0, class_validator_1.IsOptional)(),
|
|
138
|
-
(0, class_validator_1.IsString)(),
|
|
139
|
-
__metadata("design:type", String)
|
|
140
|
-
], PaymentUpdateDTO.prototype, "state", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, class_validator_1.IsOptional)(),
|
|
143
|
-
(0, class_validator_1.IsString)(),
|
|
144
|
-
__metadata("design:type", String)
|
|
145
|
-
], PaymentUpdateDTO.prototype, "failureReason", void 0);
|
|
146
|
-
__decorate([
|
|
147
|
-
(0, class_validator_1.IsOptional)(),
|
|
148
|
-
(0, class_validator_1.IsString)(),
|
|
149
|
-
__metadata("design:type", String)
|
|
150
|
-
], PaymentUpdateDTO.prototype, "failureCode", void 0);
|
|
151
|
-
__decorate([
|
|
152
|
-
(0, class_validator_1.IsOptional)(),
|
|
153
|
-
(0, class_validator_1.IsString)(),
|
|
154
|
-
__metadata("design:type", String)
|
|
155
|
-
], PaymentUpdateDTO.prototype, "accountId", void 0);
|
|
156
|
-
__decorate([
|
|
157
|
-
(0, class_validator_1.IsOptional)(),
|
|
158
|
-
(0, class_validator_1.IsDate)(),
|
|
159
|
-
__metadata("design:type", Date)
|
|
160
|
-
], PaymentUpdateDTO.prototype, "paymentDate", void 0);
|
|
161
|
-
exports.PaymentUpdateDTO = PaymentUpdateDTO;
|