@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.
Files changed (146) hide show
  1. package/dist/index.js +1 -21
  2. package/package.json +10 -6
  3. package/dist/core/enums/HttpMethods.js +0 -14
  4. package/dist/core/enums/HttpStatusCodes.js +0 -19
  5. package/dist/core/enums/index.js +0 -18
  6. package/dist/core/error-handling/AppError.js +0 -48
  7. package/dist/core/error-handling/index.js +0 -17
  8. package/dist/core/index.js +0 -21
  9. package/dist/core/models/index.js +0 -19
  10. package/dist/core/models/media/index.js +0 -17
  11. package/dist/core/models/media/media_data.js +0 -2
  12. package/dist/core/models/pagination/index.js +0 -17
  13. package/dist/core/models/pagination/paginated_data.js +0 -21
  14. package/dist/core/models/range.js +0 -26
  15. package/dist/core/network/api-client.d.ts +0 -1
  16. package/dist/core/network/api-client.js +0 -22
  17. package/dist/core/network/endpoint-config.js +0 -260
  18. package/dist/core/network/fetch-api.js +0 -206
  19. package/dist/core/network/index.js +0 -18
  20. package/dist/core/utils/formatCurrency.js +0 -39
  21. package/dist/core/utils/global-constants.js +0 -9
  22. package/dist/core/utils/global-utils.js +0 -190
  23. package/dist/core/utils/global_validators.js +0 -20
  24. package/dist/core/utils/index.js +0 -20
  25. package/dist/core/utils/query_flatten.js +0 -15
  26. package/dist/features/auth/data/dto/AuthDTO.js +0 -106
  27. package/dist/features/auth/data/dto/RoleDTO.js +0 -132
  28. package/dist/features/auth/data/dto/UserDTO.js +0 -222
  29. package/dist/features/auth/data/index.js +0 -19
  30. package/dist/features/auth/index.js +0 -17
  31. package/dist/features/bank-valuation-request/data/dto/BankValuationRequestDTO.js +0 -132
  32. package/dist/features/bank-valuation-request/index.js +0 -17
  33. package/dist/features/blog/data/dto/BlogDTO.js +0 -176
  34. package/dist/features/blog/index.js +0 -17
  35. package/dist/features/callback-request/data/dto/CallBackRequestDTO.js +0 -110
  36. package/dist/features/callback-request/index.js +0 -17
  37. package/dist/features/deposits/data/dto/DepositDTOs.js +0 -303
  38. package/dist/features/deposits/data/index.js +0 -17
  39. package/dist/features/deposits/index.js +0 -17
  40. package/dist/features/faq/data/dtos/CreateFaqDTO.js +0 -87
  41. package/dist/features/faq/data/dtos/FaqFetchDTO.js +0 -349
  42. package/dist/features/faq/data/dtos/UpdateFaqDTO.js +0 -91
  43. package/dist/features/faq/data/dtos/index.js +0 -19
  44. package/dist/features/faq/data/enums/index.js +0 -10
  45. package/dist/features/faq/data/index.js +0 -18
  46. package/dist/features/faq/index.js +0 -17
  47. package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.js +0 -429
  48. package/dist/features/finance-eligibilty-request/data/index.js +0 -17
  49. package/dist/features/finance-eligibilty-request/index.js +0 -17
  50. package/dist/features/google-review/data/dto/google_review_dto.js +0 -466
  51. package/dist/features/google-review/data/dto/index.js +0 -17
  52. package/dist/features/google-review/data/enums/index.js +0 -8
  53. package/dist/features/google-review/data/index.js +0 -18
  54. package/dist/features/google-review/index.js +0 -17
  55. package/dist/features/index.js +0 -34
  56. package/dist/features/lead/data/dto/index.js +0 -20
  57. package/dist/features/lead/data/dto/lead_documents_dto.js +0 -73
  58. package/dist/features/lead/data/dto/lead_dto.js +0 -435
  59. package/dist/features/lead/data/dto/lead_preference_history_dto.js +0 -321
  60. package/dist/features/lead/data/dto/lead_prefernce_dto.js +0 -308
  61. package/dist/features/lead/data/enum/index.js +0 -18
  62. package/dist/features/lead/data/enum/lead_source_status_types.js +0 -19
  63. package/dist/features/lead/data/enum/lead_status_type.js +0 -12
  64. package/dist/features/lead/index.js +0 -18
  65. package/dist/features/models/BankValuationRequest.js +0 -6
  66. package/dist/features/models/Base.js +0 -6
  67. package/dist/features/models/Deposit.js +0 -6
  68. package/dist/features/models/Lead.js +0 -6
  69. package/dist/features/models/Payment.js +0 -7
  70. package/dist/features/models/Roles.js +0 -2
  71. package/dist/features/models/Ticket.js +0 -12
  72. package/dist/features/models/User.js +0 -2
  73. package/dist/features/models/UserFavoriteVehicle.js +0 -6
  74. package/dist/features/models/Vehicle.js +0 -17
  75. package/dist/features/models/VehicleBodyType.js +0 -7
  76. package/dist/features/models/VehicleCategory.js +0 -7
  77. package/dist/features/models/VehicleFeature.js +0 -7
  78. package/dist/features/models/VehicleFeatureCategory.js +0 -7
  79. package/dist/features/models/VehicleFinance.js +0 -7
  80. package/dist/features/models/VehicleMake.js +0 -7
  81. package/dist/features/models/VehicleMedia.js +0 -7
  82. package/dist/features/models/VehicleMetaData.js +0 -7
  83. package/dist/features/models/VehicleModel.js +0 -7
  84. package/dist/features/models/VehicleOrder.js +0 -7
  85. package/dist/features/models/_index.js +0 -30
  86. package/dist/features/models/index.js +0 -37
  87. package/dist/features/newsletter/data/dto/NewsletterDTO.js +0 -79
  88. package/dist/features/newsletter/index.js +0 -17
  89. package/dist/features/sales-team/data/dto/LanguageDTO.js +0 -89
  90. package/dist/features/sales-team/data/dto/SalesAgentDTO.js +0 -613
  91. package/dist/features/sales-team/data/index.js +0 -18
  92. package/dist/features/sales-team/index.js +0 -17
  93. package/dist/features/sell-car-request/data/dto/SellCarRequestDTO.js +0 -672
  94. package/dist/features/sell-car-request/data/index.js +0 -17
  95. package/dist/features/sell-car-request/index.js +0 -17
  96. package/dist/features/showroom-visit/data/dto/ShowroomVisit.js +0 -237
  97. package/dist/features/showroom-visit/data/enums/index.js +0 -17
  98. package/dist/features/showroom-visit/data/index.js +0 -18
  99. package/dist/features/showroom-visit/index.js +0 -17
  100. package/dist/features/test-drive-request/api/GetTestDriveVehicles.js +0 -8
  101. package/dist/features/test-drive-request/api/index.js +0 -17
  102. package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.js +0 -179
  103. package/dist/features/test-drive-request/data/enums/index.js +0 -29
  104. package/dist/features/test-drive-request/data/index.js +0 -20
  105. package/dist/features/test-drive-request/data/models/TestDriveRequest.js +0 -7
  106. package/dist/features/test-drive-request/data/models/index.js +0 -5
  107. package/dist/features/test-drive-request/data/utilities.js +0 -100
  108. package/dist/features/test-drive-request/index.js +0 -18
  109. package/dist/features/tickets/data/dto/TicketDto.js +0 -293
  110. package/dist/features/tickets/data/enums/index.js +0 -18
  111. package/dist/features/tickets/index.js +0 -18
  112. package/dist/features/vehicle/data/dto/BaseDTO.js +0 -34
  113. package/dist/features/vehicle/data/dto/MediaDTO.js +0 -2
  114. package/dist/features/vehicle/data/dto/PaymentDTO.js +0 -161
  115. package/dist/features/vehicle/data/dto/SimilarVehicleDTO.js +0 -38
  116. package/dist/features/vehicle/data/dto/VehicleCategoryDTO.js +0 -114
  117. package/dist/features/vehicle/data/dto/VehicleDTO.js +0 -587
  118. package/dist/features/vehicle/data/dto/VehicleFavoritesDTO.js +0 -60
  119. package/dist/features/vehicle/data/dto/VehicleFeatureCategoriesDTO.js +0 -114
  120. package/dist/features/vehicle/data/dto/VehicleFeatureDTO.js +0 -125
  121. package/dist/features/vehicle/data/dto/VehicleFilterDTO.js +0 -771
  122. package/dist/features/vehicle/data/dto/VehicleFinanceDTO.js +0 -183
  123. package/dist/features/vehicle/data/dto/VehicleInspectionDTO.js +0 -765
  124. package/dist/features/vehicle/data/dto/VehicleMakeDTO.js +0 -189
  125. package/dist/features/vehicle/data/dto/VehicleMedia.js +0 -152
  126. package/dist/features/vehicle/data/dto/VehicleModelDTO.js +0 -182
  127. package/dist/features/vehicle/data/dto/VehicleOrderDTO.js +0 -139
  128. package/dist/features/vehicle/data/dto/VehicleTypeDTO.js +0 -102
  129. package/dist/features/vehicle/data/dto/VehicleWarrantyDTO.js +0 -47
  130. package/dist/features/vehicle/data/dto/index.js +0 -35
  131. package/dist/features/vehicle/data/enums/index.js +0 -46
  132. package/dist/features/vehicle/data/index.js +0 -20
  133. package/dist/features/vehicle/data/utilities.js +0 -520
  134. package/dist/features/vehicle/index.js +0 -17
  135. package/dist/features/vehicle-reservations/data/dto/VehicleReservationDTO.js +0 -346
  136. package/dist/features/vehicle-reservations/data/dto/index.js +0 -17
  137. package/dist/features/vehicle-reservations/data/enums/finance-type.js +0 -9
  138. package/dist/features/vehicle-reservations/data/enums/index.js +0 -19
  139. package/dist/features/vehicle-reservations/data/enums/reservation-type.js +0 -13
  140. package/dist/features/vehicle-reservations/data/enums/vehicle-reservation-type.js +0 -8
  141. package/dist/features/vehicle-reservations/index.js +0 -18
  142. package/dist/global/dto/BaseGetDTO.js +0 -18
  143. package/dist/global/dto/index.js +0 -17
  144. package/dist/global/index.js +0 -18
  145. package/dist/global/utilities.js +0 -173
  146. package/dist/models.js +0 -17
@@ -1,435 +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.LeadGetDTO = exports.LeadOptions = exports.LeadFilter = exports.LeadCreateDTO = exports.LeadUpdateDTO = exports.LeadDTO = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const lead_status_type_1 = require("../enum/lead_status_type");
15
- const lead_source_status_types_1 = require("../enum/lead_source_status_types");
16
- const lead_prefernce_dto_1 = require("./lead_prefernce_dto");
17
- const lead_prefernce_dto_2 = require("./lead_prefernce_dto");
18
- const class_transformer_1 = require("class-transformer");
19
- const utilities_1 = require("../../../../global/utilities");
20
- const global_1 = require("../../../../global");
21
- class LeadDTO {
22
- validate() {
23
- const errors = (0, class_validator_1.validateSync)(this);
24
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
25
- }
26
- static fromPlain(plain) {
27
- return (0, class_transformer_1.plainToClass)(LeadDTO, plain);
28
- }
29
- toPlain() {
30
- return (0, class_transformer_1.classToPlain)(this);
31
- }
32
- }
33
- __decorate([
34
- (0, class_validator_1.IsUUID)(),
35
- __metadata("design:type", String)
36
- ], LeadDTO.prototype, "id", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsString)(),
39
- __metadata("design:type", String)
40
- ], LeadDTO.prototype, "firstName", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsString)(),
43
- __metadata("design:type", String)
44
- ], LeadDTO.prototype, "lastName", void 0);
45
- __decorate([
46
- (0, class_validator_1.IsOptional)(),
47
- (0, class_validator_1.IsString)(),
48
- __metadata("design:type", String)
49
- ], LeadDTO.prototype, "email", void 0);
50
- __decorate([
51
- (0, class_validator_1.IsString)(),
52
- __metadata("design:type", String)
53
- ], LeadDTO.prototype, "phone", void 0);
54
- __decorate([
55
- (0, class_validator_1.IsString)(),
56
- (0, class_validator_1.IsOptional)(),
57
- __metadata("design:type", String)
58
- ], LeadDTO.prototype, "alternatePhone", void 0);
59
- __decorate([
60
- (0, class_validator_1.IsString)(),
61
- (0, class_validator_1.IsOptional)(),
62
- __metadata("design:type", String)
63
- ], LeadDTO.prototype, "address", void 0);
64
- __decorate([
65
- (0, class_validator_1.IsString)(),
66
- (0, class_validator_1.IsOptional)(),
67
- __metadata("design:type", String)
68
- ], LeadDTO.prototype, "city", void 0);
69
- __decorate([
70
- (0, class_validator_1.IsString)(),
71
- (0, class_validator_1.IsOptional)(),
72
- __metadata("design:type", String)
73
- ], LeadDTO.prototype, "state", void 0);
74
- __decorate([
75
- (0, class_validator_1.IsString)(),
76
- (0, class_validator_1.IsOptional)(),
77
- __metadata("design:type", String)
78
- ], LeadDTO.prototype, "zipCode", void 0);
79
- __decorate([
80
- (0, class_validator_1.IsString)(),
81
- (0, class_validator_1.IsOptional)(),
82
- __metadata("design:type", String)
83
- ], LeadDTO.prototype, "notes", void 0);
84
- __decorate([
85
- (0, class_validator_1.IsBoolean)(),
86
- (0, class_validator_1.IsOptional)(),
87
- __metadata("design:type", Boolean)
88
- ], LeadDTO.prototype, "isTestDriveScheduled", void 0);
89
- __decorate([
90
- (0, class_validator_1.IsString)(),
91
- (0, class_validator_1.IsOptional)(),
92
- __metadata("design:type", Date)
93
- ], LeadDTO.prototype, "testDriveDate", void 0);
94
- __decorate([
95
- (0, class_validator_1.IsBoolean)(),
96
- (0, class_validator_1.IsOptional)(),
97
- __metadata("design:type", Boolean)
98
- ], LeadDTO.prototype, "isActive", void 0);
99
- __decorate([
100
- (0, class_validator_1.IsDate)(),
101
- (0, class_validator_1.IsOptional)(),
102
- __metadata("design:type", Date)
103
- ], LeadDTO.prototype, "lastContactedAt", void 0);
104
- __decorate([
105
- (0, class_validator_1.IsOptional)(),
106
- __metadata("design:type", lead_prefernce_dto_1.LeadPreferencesDTO)
107
- ], LeadDTO.prototype, "preference", void 0);
108
- __decorate([
109
- (0, class_validator_1.IsOptional)(),
110
- __metadata("design:type", Array)
111
- ], LeadDTO.prototype, "deposits", void 0);
112
- exports.LeadDTO = LeadDTO;
113
- class LeadUpdateDTO {
114
- validate() {
115
- const errors = (0, class_validator_1.validateSync)(this);
116
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
117
- }
118
- static fromPlain(plain) {
119
- return (0, class_transformer_1.plainToClass)(LeadUpdateDTO, plain);
120
- }
121
- toPlain() {
122
- return (0, class_transformer_1.classToPlain)(this);
123
- }
124
- }
125
- __decorate([
126
- (0, class_validator_1.IsString)(),
127
- (0, class_validator_1.MinLength)(2),
128
- (0, class_validator_1.IsOptional)(),
129
- __metadata("design:type", String)
130
- ], LeadUpdateDTO.prototype, "firstName", void 0);
131
- __decorate([
132
- (0, class_validator_1.IsString)(),
133
- (0, class_validator_1.MinLength)(2),
134
- (0, class_validator_1.IsOptional)(),
135
- __metadata("design:type", String)
136
- ], LeadUpdateDTO.prototype, "lastName", void 0);
137
- __decorate([
138
- (0, class_validator_1.IsOptional)(),
139
- (0, class_validator_1.IsString)(),
140
- __metadata("design:type", String)
141
- ], LeadUpdateDTO.prototype, "email", void 0);
142
- __decorate([
143
- (0, class_validator_1.IsString)(),
144
- (0, class_validator_1.MinLength)(8),
145
- (0, class_validator_1.IsOptional)(),
146
- __metadata("design:type", String)
147
- ], LeadUpdateDTO.prototype, "phone", void 0);
148
- __decorate([
149
- (0, class_validator_1.IsString)(),
150
- (0, class_validator_1.IsOptional)(),
151
- __metadata("design:type", String)
152
- ], LeadUpdateDTO.prototype, "alternatePhone", void 0);
153
- __decorate([
154
- (0, class_validator_1.IsString)(),
155
- (0, class_validator_1.IsOptional)(),
156
- __metadata("design:type", String)
157
- ], LeadUpdateDTO.prototype, "address", void 0);
158
- __decorate([
159
- (0, class_validator_1.IsString)(),
160
- (0, class_validator_1.IsOptional)(),
161
- __metadata("design:type", String)
162
- ], LeadUpdateDTO.prototype, "city", void 0);
163
- __decorate([
164
- (0, class_validator_1.IsString)(),
165
- (0, class_validator_1.IsOptional)(),
166
- __metadata("design:type", String)
167
- ], LeadUpdateDTO.prototype, "state", void 0);
168
- __decorate([
169
- (0, class_validator_1.IsString)(),
170
- (0, class_validator_1.IsOptional)(),
171
- __metadata("design:type", String)
172
- ], LeadUpdateDTO.prototype, "zipCode", void 0);
173
- __decorate([
174
- (0, class_validator_1.IsEnum)(lead_status_type_1.LeadStatus),
175
- (0, class_validator_1.IsOptional)(),
176
- __metadata("design:type", String)
177
- ], LeadUpdateDTO.prototype, "status", void 0);
178
- __decorate([
179
- (0, class_validator_1.IsString)(),
180
- (0, class_validator_1.IsOptional)(),
181
- __metadata("design:type", String)
182
- ], LeadUpdateDTO.prototype, "notes", void 0);
183
- __decorate([
184
- (0, class_validator_1.IsEnum)(lead_source_status_types_1.LeadSource),
185
- (0, class_validator_1.IsOptional)(),
186
- __metadata("design:type", String)
187
- ], LeadUpdateDTO.prototype, "leadSource", void 0);
188
- __decorate([
189
- (0, class_validator_1.IsBoolean)(),
190
- (0, class_validator_1.IsOptional)(),
191
- __metadata("design:type", Boolean)
192
- ], LeadUpdateDTO.prototype, "isTestDriveScheduled", void 0);
193
- __decorate([
194
- (0, class_validator_1.IsDate)(),
195
- (0, class_validator_1.IsOptional)(),
196
- __metadata("design:type", Date)
197
- ], LeadUpdateDTO.prototype, "testDriveDate", void 0);
198
- __decorate([
199
- (0, class_validator_1.IsBoolean)(),
200
- (0, class_validator_1.IsOptional)(),
201
- __metadata("design:type", Boolean)
202
- ], LeadUpdateDTO.prototype, "isActive", void 0);
203
- __decorate([
204
- (0, class_validator_1.ValidateNested)(),
205
- (0, class_transformer_1.Type)(() => lead_prefernce_dto_1.LeadPreferencesDTO),
206
- (0, class_validator_1.IsOptional)(),
207
- __metadata("design:type", lead_prefernce_dto_1.LeadPreferencesDTO)
208
- ], LeadUpdateDTO.prototype, "preference", void 0);
209
- exports.LeadUpdateDTO = LeadUpdateDTO;
210
- class LeadCreateDTO {
211
- validate() {
212
- const errors = (0, class_validator_1.validateSync)(this);
213
- return errors.map((error) => { var _a; return Object.values((_a = error.constraints) !== null && _a !== void 0 ? _a : {}); }).flat();
214
- }
215
- static fromPlain(plain) {
216
- return (0, class_transformer_1.plainToClass)(LeadCreateDTO, plain);
217
- }
218
- toPlain() {
219
- return (0, class_transformer_1.classToPlain)(this);
220
- }
221
- }
222
- __decorate([
223
- (0, class_validator_1.IsString)(),
224
- __metadata("design:type", String)
225
- ], LeadCreateDTO.prototype, "firstName", void 0);
226
- __decorate([
227
- (0, class_validator_1.IsString)(),
228
- __metadata("design:type", String)
229
- ], LeadCreateDTO.prototype, "lastName", void 0);
230
- __decorate([
231
- (0, class_validator_1.IsString)(),
232
- (0, class_validator_1.IsEmail)(),
233
- (0, class_validator_1.IsOptional)(),
234
- __metadata("design:type", String)
235
- ], LeadCreateDTO.prototype, "email", void 0);
236
- __decorate([
237
- (0, class_validator_1.IsString)(),
238
- (0, class_validator_1.IsPhoneNumber)(),
239
- __metadata("design:type", String)
240
- ], LeadCreateDTO.prototype, "phone", void 0);
241
- __decorate([
242
- (0, class_validator_1.IsString)(),
243
- (0, class_validator_1.IsOptional)(),
244
- __metadata("design:type", String)
245
- ], LeadCreateDTO.prototype, "alternatePhone", void 0);
246
- __decorate([
247
- (0, class_validator_1.IsString)(),
248
- (0, class_validator_1.IsOptional)(),
249
- __metadata("design:type", String)
250
- ], LeadCreateDTO.prototype, "address", void 0);
251
- __decorate([
252
- (0, class_validator_1.IsString)(),
253
- (0, class_validator_1.IsOptional)(),
254
- __metadata("design:type", String)
255
- ], LeadCreateDTO.prototype, "city", void 0);
256
- __decorate([
257
- (0, class_validator_1.IsString)(),
258
- (0, class_validator_1.IsOptional)(),
259
- __metadata("design:type", String)
260
- ], LeadCreateDTO.prototype, "state", void 0);
261
- __decorate([
262
- (0, class_validator_1.IsString)(),
263
- (0, class_validator_1.IsOptional)(),
264
- __metadata("design:type", String)
265
- ], LeadCreateDTO.prototype, "country", void 0);
266
- __decorate([
267
- (0, class_validator_1.IsString)(),
268
- (0, class_validator_1.IsOptional)(),
269
- __metadata("design:type", String)
270
- ], LeadCreateDTO.prototype, "zipCode", void 0);
271
- __decorate([
272
- (0, class_validator_1.IsString)(),
273
- (0, class_validator_1.IsOptional)(),
274
- __metadata("design:type", String)
275
- ], LeadCreateDTO.prototype, "company", void 0);
276
- __decorate([
277
- (0, class_validator_1.IsString)(),
278
- (0, class_validator_1.IsOptional)(),
279
- __metadata("design:type", String)
280
- ], LeadCreateDTO.prototype, "jobTitle", void 0);
281
- __decorate([
282
- (0, class_validator_1.IsString)(),
283
- (0, class_validator_1.IsOptional)(),
284
- __metadata("design:type", String)
285
- ], LeadCreateDTO.prototype, "notes", void 0);
286
- __decorate([
287
- (0, class_validator_1.IsString)(),
288
- (0, class_validator_1.IsOptional)(),
289
- __metadata("design:type", String)
290
- ], LeadCreateDTO.prototype, "source", void 0);
291
- __decorate([
292
- (0, class_validator_1.IsString)(),
293
- (0, class_validator_1.IsOptional)(),
294
- __metadata("design:type", String)
295
- ], LeadCreateDTO.prototype, "status", void 0);
296
- __decorate([
297
- (0, class_validator_1.IsString)(),
298
- (0, class_validator_1.IsOptional)(),
299
- __metadata("design:type", String)
300
- ], LeadCreateDTO.prototype, "assignedTo", void 0);
301
- __decorate([
302
- (0, class_validator_1.IsString)(),
303
- (0, class_validator_1.IsOptional)(),
304
- __metadata("design:type", String)
305
- ], LeadCreateDTO.prototype, "leadType", void 0);
306
- __decorate([
307
- (0, class_validator_1.IsString)(),
308
- (0, class_validator_1.IsOptional)(),
309
- __metadata("design:type", String)
310
- ], LeadCreateDTO.prototype, "leadStage", void 0);
311
- __decorate([
312
- (0, class_validator_1.IsNumber)(),
313
- (0, class_validator_1.IsOptional)(),
314
- __metadata("design:type", Number)
315
- ], LeadCreateDTO.prototype, "rating", void 0);
316
- __decorate([
317
- (0, class_validator_1.IsBoolean)(),
318
- (0, class_validator_1.IsOptional)(),
319
- __metadata("design:type", Boolean)
320
- ], LeadCreateDTO.prototype, "isQualified", void 0);
321
- __decorate([
322
- (0, class_validator_1.IsDate)(),
323
- (0, class_validator_1.IsOptional)(),
324
- __metadata("design:type", Date)
325
- ], LeadCreateDTO.prototype, "lastContactDate", void 0);
326
- __decorate([
327
- (0, class_validator_1.IsString)(),
328
- (0, class_validator_1.IsOptional)(),
329
- __metadata("design:type", String)
330
- ], LeadCreateDTO.prototype, "lastContactType", void 0);
331
- __decorate([
332
- (0, class_validator_1.IsNumber)(),
333
- (0, class_validator_1.IsOptional)(),
334
- __metadata("design:type", Number)
335
- ], LeadCreateDTO.prototype, "totalInteractions", void 0);
336
- __decorate([
337
- (0, class_validator_1.ValidateNested)(),
338
- (0, class_transformer_1.Type)(() => lead_prefernce_dto_2.LeadPreferencesCreateDTO),
339
- (0, class_validator_1.IsOptional)(),
340
- __metadata("design:type", lead_prefernce_dto_2.LeadPreferencesCreateDTO)
341
- ], LeadCreateDTO.prototype, "preference", void 0);
342
- exports.LeadCreateDTO = LeadCreateDTO;
343
- class LeadFilter extends utilities_1.TypedFilter {
344
- }
345
- __decorate([
346
- (0, class_validator_1.IsOptional)(),
347
- (0, class_validator_1.IsString)({ each: true }),
348
- __metadata("design:type", Object)
349
- ], LeadFilter.prototype, "id", void 0);
350
- __decorate([
351
- (0, class_validator_1.IsOptional)(),
352
- (0, class_validator_1.IsString)({ each: true }),
353
- __metadata("design:type", Object)
354
- ], LeadFilter.prototype, "firstName", void 0);
355
- __decorate([
356
- (0, class_validator_1.IsOptional)(),
357
- (0, class_validator_1.IsString)({ each: true }),
358
- __metadata("design:type", Object)
359
- ], LeadFilter.prototype, "lastName", void 0);
360
- __decorate([
361
- (0, class_validator_1.IsOptional)(),
362
- (0, class_validator_1.IsString)({ each: true }),
363
- __metadata("design:type", Object)
364
- ], LeadFilter.prototype, "email", void 0);
365
- __decorate([
366
- (0, class_validator_1.IsOptional)(),
367
- (0, class_validator_1.IsString)({ each: true }),
368
- __metadata("design:type", Object)
369
- ], LeadFilter.prototype, "phone", void 0);
370
- __decorate([
371
- (0, class_validator_1.IsOptional)(),
372
- (0, class_validator_1.IsEnum)(lead_status_type_1.LeadStatus, { each: true }),
373
- __metadata("design:type", Object)
374
- ], LeadFilter.prototype, "status", void 0);
375
- __decorate([
376
- (0, class_validator_1.IsOptional)(),
377
- (0, class_validator_1.IsEnum)(lead_source_status_types_1.LeadSource, { each: true }),
378
- __metadata("design:type", Object)
379
- ], LeadFilter.prototype, "leadSource", void 0);
380
- __decorate([
381
- (0, class_validator_1.IsOptional)(),
382
- (0, class_validator_1.IsBoolean)(),
383
- __metadata("design:type", Boolean)
384
- ], LeadFilter.prototype, "isTestDriveScheduled", void 0);
385
- __decorate([
386
- (0, class_validator_1.IsOptional)(),
387
- (0, class_validator_1.IsBoolean)(),
388
- __metadata("design:type", Boolean)
389
- ], LeadFilter.prototype, "isActive", void 0);
390
- __decorate([
391
- (0, class_validator_1.IsOptional)(),
392
- (0, class_validator_1.IsString)(),
393
- __metadata("design:type", String)
394
- ], LeadFilter.prototype, "search", void 0);
395
- __decorate([
396
- (0, class_validator_1.IsOptional)(),
397
- (0, class_transformer_1.Type)(() => Date),
398
- (0, class_validator_1.ValidateNested)(),
399
- __metadata("design:type", Date)
400
- ], LeadFilter.prototype, "lastContactedAt", void 0);
401
- __decorate([
402
- (0, class_validator_1.IsOptional)(),
403
- (0, class_transformer_1.Type)(() => Date),
404
- __metadata("design:type", Date)
405
- ], LeadFilter.prototype, "fromDate", void 0);
406
- __decorate([
407
- (0, class_validator_1.IsOptional)(),
408
- (0, class_transformer_1.Type)(() => Date),
409
- __metadata("design:type", Date)
410
- ], LeadFilter.prototype, "toDate", void 0);
411
- exports.LeadFilter = LeadFilter;
412
- class LeadOptions extends utilities_1.TypedOptions {
413
- }
414
- exports.LeadOptions = LeadOptions;
415
- class LeadGetDTO extends global_1.BaseGetDTO {
416
- static fromPlain(plain) {
417
- return (0, class_transformer_1.plainToClass)(this, plain);
418
- }
419
- toPlain() {
420
- return (0, class_transformer_1.classToPlain)(this);
421
- }
422
- }
423
- __decorate([
424
- (0, class_validator_1.ValidateNested)(),
425
- (0, class_transformer_1.Type)(() => LeadFilter),
426
- (0, class_validator_1.IsOptional)(),
427
- __metadata("design:type", LeadFilter)
428
- ], LeadGetDTO.prototype, "filters", void 0);
429
- __decorate([
430
- (0, class_validator_1.ValidateNested)(),
431
- (0, class_transformer_1.Type)(() => LeadOptions),
432
- (0, class_validator_1.IsOptional)(),
433
- __metadata("design:type", LeadOptions)
434
- ], LeadGetDTO.prototype, "options", void 0);
435
- exports.LeadGetDTO = LeadGetDTO;