@alba-cars/common-modules 1.2.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/README.md +42 -0
- package/dist/features/blog/data/dto/BlogDTO.d.ts +41 -0
- package/dist/features/blog/data/dto/BlogDTO.js +128 -0
- package/dist/features/newsletter/data/dto/NewsletterDTO.d.ts +17 -0
- package/dist/features/newsletter/data/dto/NewsletterDTO.js +79 -0
- package/dist/features/sales-team/data/dto/SalesAgentDTO.d.ts +47 -0
- package/dist/features/sales-team/data/dto/SalesAgentDTO.js +134 -0
- package/dist/features/showroom-visit/data/dto/ShowroomVisit.d.ts +28 -0
- package/dist/features/showroom-visit/data/dto/ShowroomVisit.js +119 -0
- package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.d.ts +45 -0
- package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.js +163 -0
- package/dist/features/test-drive-request/data/enums/index.d.ts +24 -0
- package/dist/features/test-drive-request/data/enums/index.js +29 -0
- package/dist/features/test-drive-request/data/models/TestDriveRequest.d.ts +14 -0
- package/dist/features/test-drive-request/data/models/TestDriveRequest.js +7 -0
- package/dist/features/test-drive-request/data/models/index.d.ts +2 -0
- package/dist/features/test-drive-request/data/models/index.js +5 -0
- package/dist/features/test-drive-request/data/utilities.d.ts +29 -0
- package/dist/features/test-drive-request/data/utilities.js +95 -0
- package/dist/features/vehicle/data/dto/BaseDTO.d.ts +10 -0
- package/dist/features/vehicle/data/dto/BaseDTO.js +42 -0
- package/dist/features/vehicle/data/dto/PaymentDTO.d.ts +52 -0
- package/dist/features/vehicle/data/dto/PaymentDTO.js +161 -0
- package/dist/features/vehicle/data/dto/UserDTO.d.ts +16 -0
- package/dist/features/vehicle/data/dto/UserDTO.js +53 -0
- package/dist/features/vehicle/data/dto/VehicleDTO.d.ts +103 -0
- package/dist/features/vehicle/data/dto/VehicleDTO.js +425 -0
- package/dist/features/vehicle/data/dto/VehicleFeatureCategoriesDTO.d.ts +39 -0
- package/dist/features/vehicle/data/dto/VehicleFeatureCategoriesDTO.js +114 -0
- package/dist/features/vehicle/data/dto/VehicleFeatureDTO.d.ts +38 -0
- package/dist/features/vehicle/data/dto/VehicleFeatureDTO.js +121 -0
- package/dist/features/vehicle/data/dto/VehicleFinanceDTO.d.ts +46 -0
- package/dist/features/vehicle/data/dto/VehicleFinanceDTO.js +143 -0
- package/dist/features/vehicle/data/dto/VehicleMakeDTO.d.ts +46 -0
- package/dist/features/vehicle/data/dto/VehicleMakeDTO.js +169 -0
- package/dist/features/vehicle/data/dto/VehicleMedia.d.ts +28 -0
- package/dist/features/vehicle/data/dto/VehicleMedia.js +119 -0
- package/dist/features/vehicle/data/dto/VehicleModelDTO.d.ts +52 -0
- package/dist/features/vehicle/data/dto/VehicleModelDTO.js +189 -0
- package/dist/features/vehicle/data/dto/VehicleOrderDTO.d.ts +34 -0
- package/dist/features/vehicle/data/dto/VehicleOrderDTO.js +139 -0
- package/dist/features/vehicle/data/dto/VehicleTypeDTO.d.ts +35 -0
- package/dist/features/vehicle/data/dto/VehicleTypeDTO.js +102 -0
- package/dist/features/vehicle/data/enums/index.d.ts +4 -0
- package/dist/features/vehicle/data/enums/index.js +8 -0
- package/dist/features/vehicle/data/models/Base.d.ts +12 -0
- package/dist/features/vehicle/data/models/Base.js +6 -0
- package/dist/features/vehicle/data/models/Payment.d.ts +18 -0
- package/dist/features/vehicle/data/models/Payment.js +7 -0
- package/dist/features/vehicle/data/models/User.d.ts +15 -0
- package/dist/features/vehicle/data/models/User.js +6 -0
- package/dist/features/vehicle/data/models/Vehicle.d.ts +42 -0
- package/dist/features/vehicle/data/models/Vehicle.js +7 -0
- package/dist/features/vehicle/data/models/VehicleBodyType.d.ts +8 -0
- package/dist/features/vehicle/data/models/VehicleBodyType.js +7 -0
- package/dist/features/vehicle/data/models/VehicleCategory.d.ts +6 -0
- package/dist/features/vehicle/data/models/VehicleCategory.js +7 -0
- package/dist/features/vehicle/data/models/VehicleFeature.d.ts +8 -0
- package/dist/features/vehicle/data/models/VehicleFeature.js +7 -0
- package/dist/features/vehicle/data/models/VehicleFeatureCategory.d.ts +6 -0
- package/dist/features/vehicle/data/models/VehicleFeatureCategory.js +7 -0
- package/dist/features/vehicle/data/models/VehicleFinance.d.ts +16 -0
- package/dist/features/vehicle/data/models/VehicleFinance.js +7 -0
- package/dist/features/vehicle/data/models/VehicleMake.d.ts +14 -0
- package/dist/features/vehicle/data/models/VehicleMake.js +7 -0
- package/dist/features/vehicle/data/models/VehicleMedia.d.ts +11 -0
- package/dist/features/vehicle/data/models/VehicleMedia.js +7 -0
- package/dist/features/vehicle/data/models/VehicleMetaData.d.ts +11 -0
- package/dist/features/vehicle/data/models/VehicleMetaData.js +7 -0
- package/dist/features/vehicle/data/models/VehicleModel.d.ts +17 -0
- package/dist/features/vehicle/data/models/VehicleModel.js +7 -0
- package/dist/features/vehicle/data/models/VehicleOrder.d.ts +14 -0
- package/dist/features/vehicle/data/models/VehicleOrder.js +7 -0
- package/dist/features/vehicle/data/models/index.d.ts +14 -0
- package/dist/features/vehicle/data/models/index.js +29 -0
- package/dist/features/vehicle/data/utilities.d.ts +209 -0
- package/dist/features/vehicle/data/utilities.js +706 -0
- package/dist/global/dto/BaseGetDTO.d.ts +8 -0
- package/dist/global/dto/BaseGetDTO.js +18 -0
- package/dist/global/utilities.d.ts +48 -0
- package/dist/global/utilities.js +138 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +34 -0
- package/package.json +49 -0
|
@@ -0,0 +1,163 @@
|
|
|
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.TestDriveRequestUpdateDTO = exports.TestDriveRequestCreateDTO = exports.TestDriveRequestGetDTO = void 0;
|
|
13
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const BaseDTO_1 = require("../../../vehicle/data/dto/BaseDTO");
|
|
17
|
+
const VehicleDTO_1 = require("../../../vehicle/data/dto/VehicleDTO");
|
|
18
|
+
const enums_1 = require("../enums");
|
|
19
|
+
const BaseGetDTO_1 = require("../../../../global/dto/BaseGetDTO");
|
|
20
|
+
class TestDriveRequestGetDTO extends BaseGetDTO_1.BaseGetDTO {
|
|
21
|
+
}
|
|
22
|
+
exports.TestDriveRequestGetDTO = TestDriveRequestGetDTO;
|
|
23
|
+
class TestDriveRequestCreateDTO extends BaseDTO_1.BaseCreateDTO {
|
|
24
|
+
validate() {
|
|
25
|
+
const errors = (0, class_validator_1.validateSync)(this);
|
|
26
|
+
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
27
|
+
}
|
|
28
|
+
constructor(data) {
|
|
29
|
+
super();
|
|
30
|
+
Object.assign(this, data);
|
|
31
|
+
if (!this.status)
|
|
32
|
+
this.status = enums_1.TestDriveRequestStatus.NOT_CONTACTED;
|
|
33
|
+
if (!this.leadThrough)
|
|
34
|
+
this.leadThrough = enums_1.LeadThrough.WEBSITE;
|
|
35
|
+
}
|
|
36
|
+
static fromPlain(plain) {
|
|
37
|
+
const dto = (0, class_transformer_1.plainToClass)(TestDriveRequestCreateDTO, plain);
|
|
38
|
+
if (!dto.status)
|
|
39
|
+
dto.status = enums_1.TestDriveRequestStatus.NOT_CONTACTED;
|
|
40
|
+
if (!dto.leadThrough)
|
|
41
|
+
dto.leadThrough = enums_1.LeadThrough.WEBSITE;
|
|
42
|
+
return dto;
|
|
43
|
+
}
|
|
44
|
+
toPlain() {
|
|
45
|
+
return (0, class_transformer_1.instanceToPlain)(this);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
50
|
+
(0, class_validator_1.ValidateNested)(),
|
|
51
|
+
(0, class_transformer_1.Type)(() => VehicleDTO_1.DynamicVehicleDTO),
|
|
52
|
+
__metadata("design:type", VehicleDTO_1.DynamicVehicleDTO)
|
|
53
|
+
], TestDriveRequestCreateDTO.prototype, "vehicle", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
(0, class_validator_1.MinLength)(2),
|
|
58
|
+
(0, class_validator_1.MaxLength)(255),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], TestDriveRequestCreateDTO.prototype, "testerName", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
(0, class_validator_1.MinLength)(8),
|
|
65
|
+
(0, class_validator_1.MaxLength)(20),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], TestDriveRequestCreateDTO.prototype, "testerMobile", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
(0, class_validator_1.IsEmail)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], TestDriveRequestCreateDTO.prototype, "testerEmail", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
76
|
+
(0, class_validator_1.IsDateString)(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], TestDriveRequestCreateDTO.prototype, "requestedDate", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
(0, class_validator_1.IsDateString)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], TestDriveRequestCreateDTO.prototype, "testDriveDate", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsOptional)(),
|
|
86
|
+
(0, class_validator_1.IsEnum)(enums_1.TestDriveRequestStatus),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], TestDriveRequestCreateDTO.prototype, "status", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.IsOptional)(),
|
|
91
|
+
(0, class_validator_1.IsEnum)(enums_1.LeadThrough),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], TestDriveRequestCreateDTO.prototype, "leadThrough", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
|
+
(0, class_validator_1.IsString)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], TestDriveRequestCreateDTO.prototype, "comments", void 0);
|
|
99
|
+
exports.TestDriveRequestCreateDTO = TestDriveRequestCreateDTO;
|
|
100
|
+
class TestDriveRequestUpdateDTO extends BaseDTO_1.BaseUpdateDTO {
|
|
101
|
+
validate() {
|
|
102
|
+
const errors = (0, class_validator_1.validateSync)(this);
|
|
103
|
+
return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
104
|
+
}
|
|
105
|
+
static fromPlain(plain) {
|
|
106
|
+
return (0, class_transformer_1.plainToClass)(TestDriveRequestUpdateDTO, plain);
|
|
107
|
+
}
|
|
108
|
+
toPlain() {
|
|
109
|
+
return (0, class_transformer_1.instanceToPlain)(this);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, class_validator_1.IsOptional)(),
|
|
114
|
+
(0, class_validator_1.ValidateNested)(),
|
|
115
|
+
(0, class_transformer_1.Type)(() => VehicleDTO_1.DynamicVehicleDTO),
|
|
116
|
+
__metadata("design:type", VehicleDTO_1.DynamicVehicleDTO)
|
|
117
|
+
], TestDriveRequestUpdateDTO.prototype, "vehicle", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, class_validator_1.IsOptional)(),
|
|
120
|
+
(0, class_validator_1.IsString)(),
|
|
121
|
+
(0, class_validator_1.MinLength)(2),
|
|
122
|
+
(0, class_validator_1.MaxLength)(255),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], TestDriveRequestUpdateDTO.prototype, "testerName", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, class_validator_1.IsOptional)(),
|
|
127
|
+
(0, class_validator_1.IsString)(),
|
|
128
|
+
(0, class_validator_1.MinLength)(8),
|
|
129
|
+
(0, class_validator_1.MaxLength)(20),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], TestDriveRequestUpdateDTO.prototype, "testerMobile", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, class_validator_1.IsOptional)(),
|
|
134
|
+
(0, class_validator_1.IsString)(),
|
|
135
|
+
(0, class_validator_1.IsEmail)(),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], TestDriveRequestUpdateDTO.prototype, "testerEmail", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, class_validator_1.IsOptional)(),
|
|
140
|
+
(0, class_validator_1.IsDate)(),
|
|
141
|
+
__metadata("design:type", Date)
|
|
142
|
+
], TestDriveRequestUpdateDTO.prototype, "requestedDate", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, class_validator_1.IsOptional)(),
|
|
145
|
+
(0, class_validator_1.IsDate)(),
|
|
146
|
+
__metadata("design:type", Date)
|
|
147
|
+
], TestDriveRequestUpdateDTO.prototype, "testDriveDate", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, class_validator_1.IsOptional)(),
|
|
150
|
+
(0, class_validator_1.IsEnum)(enums_1.TestDriveRequestStatus),
|
|
151
|
+
__metadata("design:type", Number)
|
|
152
|
+
], TestDriveRequestUpdateDTO.prototype, "status", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, class_validator_1.IsOptional)(),
|
|
155
|
+
(0, class_validator_1.IsEnum)(enums_1.LeadThrough),
|
|
156
|
+
__metadata("design:type", String)
|
|
157
|
+
], TestDriveRequestUpdateDTO.prototype, "leadThrough", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, class_validator_1.IsOptional)(),
|
|
160
|
+
(0, class_validator_1.IsString)(),
|
|
161
|
+
__metadata("design:type", String)
|
|
162
|
+
], TestDriveRequestUpdateDTO.prototype, "comments", void 0);
|
|
163
|
+
exports.TestDriveRequestUpdateDTO = TestDriveRequestUpdateDTO;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum LeadThrough {
|
|
2
|
+
WEBSITE = "website"
|
|
3
|
+
}
|
|
4
|
+
export declare enum TestDriveRequestStatus {
|
|
5
|
+
NOT_CONTACTED = 1,
|
|
6
|
+
APPOINTMENT_CONFIRMED = 2,
|
|
7
|
+
FOLLOWED_UP_APPOINTMENT_DAY = 3,
|
|
8
|
+
REQUESTED_CALL_BACK = 4,
|
|
9
|
+
FIRST_FOLLOW_UP = 5,
|
|
10
|
+
APPOINTMENT_NO_SHOW = 6,
|
|
11
|
+
SECOND_FOLLOW_UP = 7,
|
|
12
|
+
THIRD_FOLLOW_UP = 8,
|
|
13
|
+
FOURTH_FOLLOW_UP = 9,
|
|
14
|
+
LAST_FOLLOW_UP = 10,
|
|
15
|
+
ONGOING = 11,
|
|
16
|
+
DEALING_VISITED = 12,
|
|
17
|
+
CAR_BOOKED = 13,
|
|
18
|
+
NO_DEAL_VISITED = 14,
|
|
19
|
+
PHONE_OFF = 15,
|
|
20
|
+
NO_ANSWER_TO_CALL = 16,
|
|
21
|
+
CAR_NOT_IN_STOCK = 17,
|
|
22
|
+
DISQUALIFIED = 18,
|
|
23
|
+
WRONG_NUMBER = 19
|
|
24
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestDriveRequestStatus = exports.LeadThrough = void 0;
|
|
4
|
+
var LeadThrough;
|
|
5
|
+
(function (LeadThrough) {
|
|
6
|
+
LeadThrough["WEBSITE"] = "website";
|
|
7
|
+
})(LeadThrough = exports.LeadThrough || (exports.LeadThrough = {}));
|
|
8
|
+
var TestDriveRequestStatus;
|
|
9
|
+
(function (TestDriveRequestStatus) {
|
|
10
|
+
TestDriveRequestStatus[TestDriveRequestStatus["NOT_CONTACTED"] = 1] = "NOT_CONTACTED";
|
|
11
|
+
TestDriveRequestStatus[TestDriveRequestStatus["APPOINTMENT_CONFIRMED"] = 2] = "APPOINTMENT_CONFIRMED";
|
|
12
|
+
TestDriveRequestStatus[TestDriveRequestStatus["FOLLOWED_UP_APPOINTMENT_DAY"] = 3] = "FOLLOWED_UP_APPOINTMENT_DAY";
|
|
13
|
+
TestDriveRequestStatus[TestDriveRequestStatus["REQUESTED_CALL_BACK"] = 4] = "REQUESTED_CALL_BACK";
|
|
14
|
+
TestDriveRequestStatus[TestDriveRequestStatus["FIRST_FOLLOW_UP"] = 5] = "FIRST_FOLLOW_UP";
|
|
15
|
+
TestDriveRequestStatus[TestDriveRequestStatus["APPOINTMENT_NO_SHOW"] = 6] = "APPOINTMENT_NO_SHOW";
|
|
16
|
+
TestDriveRequestStatus[TestDriveRequestStatus["SECOND_FOLLOW_UP"] = 7] = "SECOND_FOLLOW_UP";
|
|
17
|
+
TestDriveRequestStatus[TestDriveRequestStatus["THIRD_FOLLOW_UP"] = 8] = "THIRD_FOLLOW_UP";
|
|
18
|
+
TestDriveRequestStatus[TestDriveRequestStatus["FOURTH_FOLLOW_UP"] = 9] = "FOURTH_FOLLOW_UP";
|
|
19
|
+
TestDriveRequestStatus[TestDriveRequestStatus["LAST_FOLLOW_UP"] = 10] = "LAST_FOLLOW_UP";
|
|
20
|
+
TestDriveRequestStatus[TestDriveRequestStatus["ONGOING"] = 11] = "ONGOING";
|
|
21
|
+
TestDriveRequestStatus[TestDriveRequestStatus["DEALING_VISITED"] = 12] = "DEALING_VISITED";
|
|
22
|
+
TestDriveRequestStatus[TestDriveRequestStatus["CAR_BOOKED"] = 13] = "CAR_BOOKED";
|
|
23
|
+
TestDriveRequestStatus[TestDriveRequestStatus["NO_DEAL_VISITED"] = 14] = "NO_DEAL_VISITED";
|
|
24
|
+
TestDriveRequestStatus[TestDriveRequestStatus["PHONE_OFF"] = 15] = "PHONE_OFF";
|
|
25
|
+
TestDriveRequestStatus[TestDriveRequestStatus["NO_ANSWER_TO_CALL"] = 16] = "NO_ANSWER_TO_CALL";
|
|
26
|
+
TestDriveRequestStatus[TestDriveRequestStatus["CAR_NOT_IN_STOCK"] = 17] = "CAR_NOT_IN_STOCK";
|
|
27
|
+
TestDriveRequestStatus[TestDriveRequestStatus["DISQUALIFIED"] = 18] = "DISQUALIFIED";
|
|
28
|
+
TestDriveRequestStatus[TestDriveRequestStatus["WRONG_NUMBER"] = 19] = "WRONG_NUMBER";
|
|
29
|
+
})(TestDriveRequestStatus = exports.TestDriveRequestStatus || (exports.TestDriveRequestStatus = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseModel } from "../../../vehicle/data/models/Base";
|
|
2
|
+
import { Vehicle } from "../../../vehicle/data/models/Vehicle";
|
|
3
|
+
import { LeadThrough, TestDriveRequestStatus } from "../enums";
|
|
4
|
+
export declare class TestDriveRequest extends BaseModel {
|
|
5
|
+
vehicle: Vehicle;
|
|
6
|
+
testerName: string;
|
|
7
|
+
testerMobile: string;
|
|
8
|
+
testerEmail?: string;
|
|
9
|
+
requestedDate: Date;
|
|
10
|
+
testDriveDate?: Date;
|
|
11
|
+
status: TestDriveRequestStatus;
|
|
12
|
+
leadThrough: LeadThrough;
|
|
13
|
+
comments?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestDriveRequest = void 0;
|
|
4
|
+
const Base_1 = require("../../../vehicle/data/models/Base");
|
|
5
|
+
class TestDriveRequest extends Base_1.BaseModel {
|
|
6
|
+
}
|
|
7
|
+
exports.TestDriveRequest = TestDriveRequest;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestDriveRequest = void 0;
|
|
4
|
+
const TestDriveRequest_1 = require("./TestDriveRequest");
|
|
5
|
+
Object.defineProperty(exports, "TestDriveRequest", { enumerable: true, get: function () { return TestDriveRequest_1.TestDriveRequest; } });
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { VehicleSelectFields } from "../../vehicle/data/utilities";
|
|
2
|
+
import { LeadThrough, TestDriveRequestStatus } from "./enums";
|
|
3
|
+
import { TestDriveRequest } from "./models/TestDriveRequest";
|
|
4
|
+
import { DateFilter, PaginationOptions, TypedFilter } from "../../../global/utilities";
|
|
5
|
+
export type TestDriveRequestSelectFields = keyof TestDriveRequest;
|
|
6
|
+
export declare class TestDriveRequestFilter extends TypedFilter {
|
|
7
|
+
vehicles?: string | string[];
|
|
8
|
+
referenceNumber?: string | string[];
|
|
9
|
+
testerName?: string | string[];
|
|
10
|
+
testerMobile?: string | string[];
|
|
11
|
+
testerEmail?: string | string[];
|
|
12
|
+
search?: string | string[];
|
|
13
|
+
status?: TestDriveRequestStatus | TestDriveRequestStatus[];
|
|
14
|
+
requestedDate?: DateFilter;
|
|
15
|
+
testDriveDate?: DateFilter;
|
|
16
|
+
leadThrough?: LeadThrough | LeadThrough[];
|
|
17
|
+
comments?: string;
|
|
18
|
+
validate(): string[];
|
|
19
|
+
fromPlain(plain: Record<string, unknown>): TestDriveRequestFilter;
|
|
20
|
+
toPlain(): Record<string, unknown>;
|
|
21
|
+
}
|
|
22
|
+
export type TestDriveRequestSort = Record<keyof Pick<TestDriveRequest, 'testerName' | 'testerMobile' | 'testerEmail' | 'requestedDate' | 'testDriveDate' | 'status' | 'leadThrough'>, 'asc' | 'desc'>;
|
|
23
|
+
export declare class TestDriveRequestOptions extends PaginationOptions {
|
|
24
|
+
sort?: TestDriveRequestSort;
|
|
25
|
+
withVehicle?: boolean;
|
|
26
|
+
select?: (TestDriveRequestSelectFields | `vehicle.${VehicleSelectFields}`)[];
|
|
27
|
+
validate(): string[];
|
|
28
|
+
fromPlain(plain: Record<string, unknown>): TestDriveRequestOptions;
|
|
29
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
exports.TestDriveRequestFilter = TestDriveRequestFilter;
|
|
86
|
+
class TestDriveRequestOptions extends utilities_1.PaginationOptions {
|
|
87
|
+
validate() {
|
|
88
|
+
const errors = (0, class_validator_1.validateSync)(this);
|
|
89
|
+
return errors.map(error => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
|
|
90
|
+
}
|
|
91
|
+
fromPlain(plain) {
|
|
92
|
+
return (0, class_transformer_1.plainToClass)(TestDriveRequestOptions, plain);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.TestDriveRequestOptions = TestDriveRequestOptions;
|
|
@@ -0,0 +1,42 @@
|
|
|
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_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const User_1 = require("../models/User");
|
|
16
|
+
class BaseCreateDTO {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
(0, class_validator_1.ValidateNested)(),
|
|
21
|
+
(0, class_transformer_1.Type)(() => User_1.User),
|
|
22
|
+
__metadata("design:type", User_1.User)
|
|
23
|
+
], BaseCreateDTO.prototype, "createdBy", void 0);
|
|
24
|
+
exports.BaseCreateDTO = BaseCreateDTO;
|
|
25
|
+
class BaseUpdateDTO {
|
|
26
|
+
}
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_validator_1.ValidateNested)(),
|
|
30
|
+
(0, class_transformer_1.Type)(() => User_1.User),
|
|
31
|
+
__metadata("design:type", User_1.User)
|
|
32
|
+
], BaseUpdateDTO.prototype, "updatedBy", void 0);
|
|
33
|
+
exports.BaseUpdateDTO = BaseUpdateDTO;
|
|
34
|
+
class BaseDeleteDTO {
|
|
35
|
+
}
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
(0, class_validator_1.ValidateNested)(),
|
|
39
|
+
(0, class_transformer_1.Type)(() => User_1.User),
|
|
40
|
+
__metadata("design:type", User_1.User)
|
|
41
|
+
], BaseDeleteDTO.prototype, "deletedBy", void 0);
|
|
42
|
+
exports.BaseDeleteDTO = BaseDeleteDTO;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare class PaymentGetDTO {
|
|
2
|
+
id: string;
|
|
3
|
+
userId: string;
|
|
4
|
+
requestId: string;
|
|
5
|
+
vehicleId: string;
|
|
6
|
+
transactionId: string;
|
|
7
|
+
paymentStatus: string;
|
|
8
|
+
paymentResponse: string;
|
|
9
|
+
amountPaid: number;
|
|
10
|
+
tokenId: string;
|
|
11
|
+
state: string;
|
|
12
|
+
failureReason: string;
|
|
13
|
+
failureCode: string;
|
|
14
|
+
accountId: string;
|
|
15
|
+
paymentDate: Date;
|
|
16
|
+
static fromEntity(entity: any): PaymentGetDTO;
|
|
17
|
+
toPlain(): Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
export declare class PaymentCreateDTO {
|
|
20
|
+
userId: string;
|
|
21
|
+
requestId: string;
|
|
22
|
+
vehicleId: string;
|
|
23
|
+
transactionId: string;
|
|
24
|
+
paymentStatus: string;
|
|
25
|
+
paymentResponse: string;
|
|
26
|
+
amountPaid: number;
|
|
27
|
+
tokenId: string;
|
|
28
|
+
state: string;
|
|
29
|
+
failureReason: string;
|
|
30
|
+
failureCode: string;
|
|
31
|
+
accountId: string;
|
|
32
|
+
paymentDate: Date;
|
|
33
|
+
validate(): string[];
|
|
34
|
+
static fromPlain(plain: Record<string, unknown>): PaymentCreateDTO;
|
|
35
|
+
}
|
|
36
|
+
export declare class PaymentUpdateDTO {
|
|
37
|
+
userId?: string;
|
|
38
|
+
requestId?: string;
|
|
39
|
+
vehicleId?: string;
|
|
40
|
+
transactionId?: string;
|
|
41
|
+
paymentStatus?: string;
|
|
42
|
+
paymentResponse?: string;
|
|
43
|
+
amountPaid?: number;
|
|
44
|
+
tokenId?: string;
|
|
45
|
+
state?: string;
|
|
46
|
+
failureReason?: string;
|
|
47
|
+
failureCode?: string;
|
|
48
|
+
accountId?: string;
|
|
49
|
+
paymentDate?: Date;
|
|
50
|
+
validate(): string[];
|
|
51
|
+
static fromPlain(plain: Record<string, unknown>): PaymentUpdateDTO;
|
|
52
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
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;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class UserGetDTO {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
static fromEntity(entity: any): UserGetDTO;
|
|
5
|
+
toPlain(): Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
export declare class UserCreateDTO {
|
|
8
|
+
name: string;
|
|
9
|
+
validate(): string[];
|
|
10
|
+
static fromPlain(plain: Record<string, unknown>): UserCreateDTO;
|
|
11
|
+
}
|
|
12
|
+
export declare class UserUpdateDTO {
|
|
13
|
+
name?: string;
|
|
14
|
+
validate(): string[];
|
|
15
|
+
static fromPlain(plain: Record<string, unknown>): UserUpdateDTO;
|
|
16
|
+
}
|