@feresmeryas/microservices-common 1.5.33 → 1.5.34
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 +33 -242
- package/dist/index.mjs +112 -320
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -61,7 +61,6 @@ __export(index_exports, {
|
|
|
61
61
|
PostLikeResponseDto: () => PostLikeResponseDto,
|
|
62
62
|
PostResponseDto: () => PostResponseDto,
|
|
63
63
|
PostResponseSelfDto: () => PostResponseSelfDto,
|
|
64
|
-
ProfessionalDataDto: () => ProfessionalDataDto,
|
|
65
64
|
ProfessionalProfileResponseDto: () => ProfessionalProfileResponseDto,
|
|
66
65
|
ReactionType: () => ReactionType,
|
|
67
66
|
ReorderDto: () => ReorderDto,
|
|
@@ -87,7 +86,6 @@ module.exports = __toCommonJS(index_exports);
|
|
|
87
86
|
// dto/users/create_user.dto.ts
|
|
88
87
|
var import_swagger = require("@nestjs/swagger");
|
|
89
88
|
var import_class_validator = require("class-validator");
|
|
90
|
-
var import_class_transformer = require("class-transformer");
|
|
91
89
|
|
|
92
90
|
// enums/user-type.enum.ts
|
|
93
91
|
var UserType = /* @__PURE__ */ (function(UserType2) {
|
|
@@ -96,30 +94,6 @@ var UserType = /* @__PURE__ */ (function(UserType2) {
|
|
|
96
94
|
return UserType2;
|
|
97
95
|
})({});
|
|
98
96
|
|
|
99
|
-
// enums/business-sector.enum.ts
|
|
100
|
-
var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
|
|
101
|
-
BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
|
|
102
|
-
BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
|
|
103
|
-
BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
|
|
104
|
-
BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
|
|
105
|
-
BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
|
|
106
|
-
BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
|
|
107
|
-
BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
|
|
108
|
-
BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
|
|
109
|
-
BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
|
|
110
|
-
BusinessSector2["LEGAL"] = "Legal Services";
|
|
111
|
-
BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
|
|
112
|
-
BusinessSector2["CONSULTING"] = "Business Consulting";
|
|
113
|
-
BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
|
|
114
|
-
BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
|
|
115
|
-
BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
|
|
116
|
-
BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
|
|
117
|
-
BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
|
|
118
|
-
BusinessSector2["REAL_ESTATE"] = "Real Estate";
|
|
119
|
-
BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
|
|
120
|
-
return BusinessSector2;
|
|
121
|
-
})({});
|
|
122
|
-
|
|
123
97
|
// dto/users/create_user.dto.ts
|
|
124
98
|
function _ts_decorate(decorators, target, key, desc) {
|
|
125
99
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -132,204 +106,6 @@ function _ts_metadata(k, v) {
|
|
|
132
106
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
133
107
|
}
|
|
134
108
|
__name(_ts_metadata, "_ts_metadata");
|
|
135
|
-
var _a;
|
|
136
|
-
var SkillDto = (_a = class {
|
|
137
|
-
constructor() {
|
|
138
|
-
__publicField(this, "name");
|
|
139
|
-
}
|
|
140
|
-
}, __name(_a, "SkillDto"), _a);
|
|
141
|
-
_ts_decorate([
|
|
142
|
-
(0, import_swagger.ApiProperty)({
|
|
143
|
-
example: "React"
|
|
144
|
-
}),
|
|
145
|
-
(0, import_class_validator.IsString)(),
|
|
146
|
-
(0, import_class_validator.IsNotEmpty)(),
|
|
147
|
-
_ts_metadata("design:type", String)
|
|
148
|
-
], SkillDto.prototype, "name", void 0);
|
|
149
|
-
var _a2;
|
|
150
|
-
var EducationDto = (_a2 = class {
|
|
151
|
-
constructor() {
|
|
152
|
-
__publicField(this, "degree");
|
|
153
|
-
}
|
|
154
|
-
}, __name(_a2, "EducationDto"), _a2);
|
|
155
|
-
_ts_decorate([
|
|
156
|
-
(0, import_swagger.ApiProperty)({
|
|
157
|
-
example: "Bachelor of CS"
|
|
158
|
-
}),
|
|
159
|
-
(0, import_class_validator.IsString)(),
|
|
160
|
-
(0, import_class_validator.IsNotEmpty)(),
|
|
161
|
-
_ts_metadata("design:type", String)
|
|
162
|
-
], EducationDto.prototype, "degree", void 0);
|
|
163
|
-
var _a3;
|
|
164
|
-
var CertificationDto = (_a3 = class {
|
|
165
|
-
constructor() {
|
|
166
|
-
__publicField(this, "certif");
|
|
167
|
-
}
|
|
168
|
-
}, __name(_a3, "CertificationDto"), _a3);
|
|
169
|
-
_ts_decorate([
|
|
170
|
-
(0, import_swagger.ApiProperty)({
|
|
171
|
-
example: "AWS Certified"
|
|
172
|
-
}),
|
|
173
|
-
(0, import_class_validator.IsString)(),
|
|
174
|
-
(0, import_class_validator.IsNotEmpty)(),
|
|
175
|
-
_ts_metadata("design:type", String)
|
|
176
|
-
], CertificationDto.prototype, "certif", void 0);
|
|
177
|
-
var _a4;
|
|
178
|
-
var AddressDto = (_a4 = class {
|
|
179
|
-
constructor() {
|
|
180
|
-
__publicField(this, "adresse");
|
|
181
|
-
}
|
|
182
|
-
}, __name(_a4, "AddressDto"), _a4);
|
|
183
|
-
_ts_decorate([
|
|
184
|
-
(0, import_swagger.ApiProperty)({
|
|
185
|
-
example: "123 Main St"
|
|
186
|
-
}),
|
|
187
|
-
(0, import_class_validator.IsString)(),
|
|
188
|
-
(0, import_class_validator.IsNotEmpty)(),
|
|
189
|
-
_ts_metadata("design:type", String)
|
|
190
|
-
], AddressDto.prototype, "adresse", void 0);
|
|
191
|
-
var _a5;
|
|
192
|
-
var ExperienceDto = (_a5 = class {
|
|
193
|
-
constructor() {
|
|
194
|
-
__publicField(this, "experience");
|
|
195
|
-
}
|
|
196
|
-
}, __name(_a5, "ExperienceDto"), _a5);
|
|
197
|
-
_ts_decorate([
|
|
198
|
-
(0, import_swagger.ApiProperty)({
|
|
199
|
-
example: "Senior Dev"
|
|
200
|
-
}),
|
|
201
|
-
(0, import_class_validator.IsString)(),
|
|
202
|
-
(0, import_class_validator.IsNotEmpty)(),
|
|
203
|
-
_ts_metadata("design:type", String)
|
|
204
|
-
], ExperienceDto.prototype, "experience", void 0);
|
|
205
|
-
var _a6;
|
|
206
|
-
var PhoneDto = (_a6 = class {
|
|
207
|
-
constructor() {
|
|
208
|
-
__publicField(this, "number");
|
|
209
|
-
}
|
|
210
|
-
}, __name(_a6, "PhoneDto"), _a6);
|
|
211
|
-
_ts_decorate([
|
|
212
|
-
(0, import_swagger.ApiProperty)({
|
|
213
|
-
example: "+1234567890"
|
|
214
|
-
}),
|
|
215
|
-
(0, import_class_validator.IsString)(),
|
|
216
|
-
(0, import_class_validator.IsNotEmpty)(),
|
|
217
|
-
_ts_metadata("design:type", String)
|
|
218
|
-
], PhoneDto.prototype, "number", void 0);
|
|
219
|
-
var _a7;
|
|
220
|
-
var LinkDto = (_a7 = class {
|
|
221
|
-
constructor() {
|
|
222
|
-
__publicField(this, "url");
|
|
223
|
-
}
|
|
224
|
-
}, __name(_a7, "LinkDto"), _a7);
|
|
225
|
-
_ts_decorate([
|
|
226
|
-
(0, import_swagger.ApiProperty)({
|
|
227
|
-
example: "https://github.com"
|
|
228
|
-
}),
|
|
229
|
-
(0, import_class_validator.IsString)(),
|
|
230
|
-
(0, import_class_validator.IsNotEmpty)(),
|
|
231
|
-
_ts_metadata("design:type", String)
|
|
232
|
-
], LinkDto.prototype, "url", void 0);
|
|
233
|
-
var _ProfessionalDataDto = class _ProfessionalDataDto {
|
|
234
|
-
constructor() {
|
|
235
|
-
__publicField(this, "businessSector");
|
|
236
|
-
__publicField(this, "bio");
|
|
237
|
-
__publicField(this, "companyName");
|
|
238
|
-
__publicField(this, "skills");
|
|
239
|
-
__publicField(this, "education");
|
|
240
|
-
__publicField(this, "certifications");
|
|
241
|
-
__publicField(this, "experiences");
|
|
242
|
-
__publicField(this, "addresses");
|
|
243
|
-
__publicField(this, "phones");
|
|
244
|
-
__publicField(this, "links");
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
__name(_ProfessionalDataDto, "ProfessionalDataDto");
|
|
248
|
-
var ProfessionalDataDto = _ProfessionalDataDto;
|
|
249
|
-
_ts_decorate([
|
|
250
|
-
(0, import_swagger.ApiProperty)({
|
|
251
|
-
enum: BusinessSector,
|
|
252
|
-
example: BusinessSector.IT_SOFTWARE
|
|
253
|
-
}),
|
|
254
|
-
(0, import_class_validator.IsEnum)(BusinessSector),
|
|
255
|
-
(0, import_class_validator.IsNotEmpty)(),
|
|
256
|
-
_ts_metadata("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
257
|
-
], ProfessionalDataDto.prototype, "businessSector", void 0);
|
|
258
|
-
_ts_decorate([
|
|
259
|
-
(0, import_class_validator.IsOptional)(),
|
|
260
|
-
(0, import_class_validator.IsString)(),
|
|
261
|
-
(0, import_class_validator.MaxLength)(1e3),
|
|
262
|
-
_ts_metadata("design:type", String)
|
|
263
|
-
], ProfessionalDataDto.prototype, "bio", void 0);
|
|
264
|
-
_ts_decorate([
|
|
265
|
-
(0, import_class_validator.IsOptional)(),
|
|
266
|
-
(0, import_class_validator.IsString)(),
|
|
267
|
-
(0, import_class_validator.MaxLength)(30),
|
|
268
|
-
_ts_metadata("design:type", String)
|
|
269
|
-
], ProfessionalDataDto.prototype, "companyName", void 0);
|
|
270
|
-
_ts_decorate([
|
|
271
|
-
(0, import_class_validator.IsOptional)(),
|
|
272
|
-
(0, import_class_validator.IsArray)(),
|
|
273
|
-
(0, import_class_validator.ValidateNested)({
|
|
274
|
-
each: true
|
|
275
|
-
}),
|
|
276
|
-
(0, import_class_transformer.Type)(() => SkillDto),
|
|
277
|
-
_ts_metadata("design:type", Array)
|
|
278
|
-
], ProfessionalDataDto.prototype, "skills", void 0);
|
|
279
|
-
_ts_decorate([
|
|
280
|
-
(0, import_class_validator.IsOptional)(),
|
|
281
|
-
(0, import_class_validator.IsArray)(),
|
|
282
|
-
(0, import_class_validator.ValidateNested)({
|
|
283
|
-
each: true
|
|
284
|
-
}),
|
|
285
|
-
(0, import_class_transformer.Type)(() => EducationDto),
|
|
286
|
-
_ts_metadata("design:type", Array)
|
|
287
|
-
], ProfessionalDataDto.prototype, "education", void 0);
|
|
288
|
-
_ts_decorate([
|
|
289
|
-
(0, import_class_validator.IsOptional)(),
|
|
290
|
-
(0, import_class_validator.IsArray)(),
|
|
291
|
-
(0, import_class_validator.ValidateNested)({
|
|
292
|
-
each: true
|
|
293
|
-
}),
|
|
294
|
-
(0, import_class_transformer.Type)(() => CertificationDto),
|
|
295
|
-
_ts_metadata("design:type", Array)
|
|
296
|
-
], ProfessionalDataDto.prototype, "certifications", void 0);
|
|
297
|
-
_ts_decorate([
|
|
298
|
-
(0, import_class_validator.IsOptional)(),
|
|
299
|
-
(0, import_class_validator.IsArray)(),
|
|
300
|
-
(0, import_class_validator.ValidateNested)({
|
|
301
|
-
each: true
|
|
302
|
-
}),
|
|
303
|
-
(0, import_class_transformer.Type)(() => ExperienceDto),
|
|
304
|
-
_ts_metadata("design:type", Array)
|
|
305
|
-
], ProfessionalDataDto.prototype, "experiences", void 0);
|
|
306
|
-
_ts_decorate([
|
|
307
|
-
(0, import_class_validator.IsOptional)(),
|
|
308
|
-
(0, import_class_validator.IsArray)(),
|
|
309
|
-
(0, import_class_validator.ValidateNested)({
|
|
310
|
-
each: true
|
|
311
|
-
}),
|
|
312
|
-
(0, import_class_transformer.Type)(() => AddressDto),
|
|
313
|
-
_ts_metadata("design:type", Array)
|
|
314
|
-
], ProfessionalDataDto.prototype, "addresses", void 0);
|
|
315
|
-
_ts_decorate([
|
|
316
|
-
(0, import_class_validator.IsOptional)(),
|
|
317
|
-
(0, import_class_validator.IsArray)(),
|
|
318
|
-
(0, import_class_validator.ValidateNested)({
|
|
319
|
-
each: true
|
|
320
|
-
}),
|
|
321
|
-
(0, import_class_transformer.Type)(() => PhoneDto),
|
|
322
|
-
_ts_metadata("design:type", Array)
|
|
323
|
-
], ProfessionalDataDto.prototype, "phones", void 0);
|
|
324
|
-
_ts_decorate([
|
|
325
|
-
(0, import_class_validator.IsOptional)(),
|
|
326
|
-
(0, import_class_validator.IsArray)(),
|
|
327
|
-
(0, import_class_validator.ValidateNested)({
|
|
328
|
-
each: true
|
|
329
|
-
}),
|
|
330
|
-
(0, import_class_transformer.Type)(() => LinkDto),
|
|
331
|
-
_ts_metadata("design:type", Array)
|
|
332
|
-
], ProfessionalDataDto.prototype, "links", void 0);
|
|
333
109
|
var _CreateUserDto = class _CreateUserDto {
|
|
334
110
|
constructor() {
|
|
335
111
|
__publicField(this, "email");
|
|
@@ -337,7 +113,6 @@ var _CreateUserDto = class _CreateUserDto {
|
|
|
337
113
|
__publicField(this, "password");
|
|
338
114
|
__publicField(this, "confirmPassword");
|
|
339
115
|
__publicField(this, "userType");
|
|
340
|
-
__publicField(this, "professionalData");
|
|
341
116
|
}
|
|
342
117
|
};
|
|
343
118
|
__name(_CreateUserDto, "CreateUserDto");
|
|
@@ -383,15 +158,6 @@ _ts_decorate([
|
|
|
383
158
|
(0, import_class_validator.IsNotEmpty)(),
|
|
384
159
|
_ts_metadata("design:type", typeof UserType === "undefined" ? Object : UserType)
|
|
385
160
|
], CreateUserDto.prototype, "userType", void 0);
|
|
386
|
-
_ts_decorate([
|
|
387
|
-
(0, import_swagger.ApiPropertyOptional)({
|
|
388
|
-
type: ProfessionalDataDto
|
|
389
|
-
}),
|
|
390
|
-
(0, import_class_validator.IsOptional)(),
|
|
391
|
-
(0, import_class_validator.ValidateNested)(),
|
|
392
|
-
(0, import_class_transformer.Type)(() => ProfessionalDataDto),
|
|
393
|
-
_ts_metadata("design:type", typeof ProfessionalDataDto === "undefined" ? Object : ProfessionalDataDto)
|
|
394
|
-
], CreateUserDto.prototype, "professionalData", void 0);
|
|
395
161
|
|
|
396
162
|
// dto/users/create_user_firebase.dto.ts
|
|
397
163
|
var import_swagger2 = require("@nestjs/swagger");
|
|
@@ -450,7 +216,7 @@ _ts_decorate3([
|
|
|
450
216
|
|
|
451
217
|
// dto/users/find-all-users.dto.ts
|
|
452
218
|
var import_class_validator4 = require("class-validator");
|
|
453
|
-
var
|
|
219
|
+
var import_class_transformer = require("class-transformer");
|
|
454
220
|
function _ts_decorate4(decorators, target, key, desc) {
|
|
455
221
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
456
222
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -472,14 +238,14 @@ __name(_FindAllUsersDto, "FindAllUsersDto");
|
|
|
472
238
|
var FindAllUsersDto = _FindAllUsersDto;
|
|
473
239
|
_ts_decorate4([
|
|
474
240
|
(0, import_class_validator4.IsOptional)(),
|
|
475
|
-
(0,
|
|
241
|
+
(0, import_class_transformer.Type)(() => Number),
|
|
476
242
|
(0, import_class_validator4.IsInt)(),
|
|
477
243
|
(0, import_class_validator4.Min)(1),
|
|
478
244
|
_ts_metadata4("design:type", Number)
|
|
479
245
|
], FindAllUsersDto.prototype, "page", void 0);
|
|
480
246
|
_ts_decorate4([
|
|
481
247
|
(0, import_class_validator4.IsOptional)(),
|
|
482
|
-
(0,
|
|
248
|
+
(0, import_class_transformer.Type)(() => Number),
|
|
483
249
|
(0, import_class_validator4.IsInt)(),
|
|
484
250
|
(0, import_class_validator4.Min)(1),
|
|
485
251
|
_ts_metadata4("design:type", Number)
|
|
@@ -511,7 +277,7 @@ _ts_decorate5([
|
|
|
511
277
|
], FindByRoleDto.prototype, "roleName", void 0);
|
|
512
278
|
|
|
513
279
|
// dto/users/forgot-password.dto.ts
|
|
514
|
-
var
|
|
280
|
+
var import_class_transformer2 = require("class-transformer");
|
|
515
281
|
var import_class_validator6 = require("class-validator");
|
|
516
282
|
function _ts_decorate6(decorators, target, key, desc) {
|
|
517
283
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -532,7 +298,7 @@ var _ForgotPasswordDto = class _ForgotPasswordDto {
|
|
|
532
298
|
__name(_ForgotPasswordDto, "ForgotPasswordDto");
|
|
533
299
|
var ForgotPasswordDto = _ForgotPasswordDto;
|
|
534
300
|
_ts_decorate6([
|
|
535
|
-
(0,
|
|
301
|
+
(0, import_class_transformer2.Transform)(({ value }) => value.toLowerCase()),
|
|
536
302
|
(0, import_class_validator6.IsEmail)({}, {
|
|
537
303
|
message: "Invalid email format"
|
|
538
304
|
}),
|
|
@@ -714,6 +480,32 @@ _ts_decorate10([
|
|
|
714
480
|
|
|
715
481
|
// dto/users/user_response.dto.ts
|
|
716
482
|
var import_swagger5 = require("@nestjs/swagger");
|
|
483
|
+
|
|
484
|
+
// enums/business-sector.enum.ts
|
|
485
|
+
var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
|
|
486
|
+
BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
|
|
487
|
+
BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
|
|
488
|
+
BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
|
|
489
|
+
BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
|
|
490
|
+
BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
|
|
491
|
+
BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
|
|
492
|
+
BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
|
|
493
|
+
BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
|
|
494
|
+
BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
|
|
495
|
+
BusinessSector2["LEGAL"] = "Legal Services";
|
|
496
|
+
BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
|
|
497
|
+
BusinessSector2["CONSULTING"] = "Business Consulting";
|
|
498
|
+
BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
|
|
499
|
+
BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
|
|
500
|
+
BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
|
|
501
|
+
BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
|
|
502
|
+
BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
|
|
503
|
+
BusinessSector2["REAL_ESTATE"] = "Real Estate";
|
|
504
|
+
BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
|
|
505
|
+
return BusinessSector2;
|
|
506
|
+
})({});
|
|
507
|
+
|
|
508
|
+
// dto/users/user_response.dto.ts
|
|
717
509
|
function _ts_decorate11(decorators, target, key, desc) {
|
|
718
510
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
719
511
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1447,7 +1239,7 @@ _ts_decorate17([
|
|
|
1447
1239
|
], CreatePostFileDto.prototype, "fileType", void 0);
|
|
1448
1240
|
|
|
1449
1241
|
// dto/posts/create_post.dto.ts
|
|
1450
|
-
var
|
|
1242
|
+
var import_class_transformer3 = require("class-transformer");
|
|
1451
1243
|
function _ts_decorate18(decorators, target, key, desc) {
|
|
1452
1244
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1453
1245
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1503,7 +1295,7 @@ _ts_decorate18([
|
|
|
1503
1295
|
(0, import_class_validator17.ValidateNested)({
|
|
1504
1296
|
each: true
|
|
1505
1297
|
}),
|
|
1506
|
-
(0,
|
|
1298
|
+
(0, import_class_transformer3.Type)(() => CreatePostFileDto),
|
|
1507
1299
|
(0, import_class_validator17.IsOptional)(),
|
|
1508
1300
|
_ts_metadata18("design:type", Array)
|
|
1509
1301
|
], CreatePostDto.prototype, "files", void 0);
|
|
@@ -2692,7 +2484,6 @@ var SearchTagsDto = _SearchTagsDto;
|
|
|
2692
2484
|
PostLikeResponseDto,
|
|
2693
2485
|
PostResponseDto,
|
|
2694
2486
|
PostResponseSelfDto,
|
|
2695
|
-
ProfessionalDataDto,
|
|
2696
2487
|
ProfessionalProfileResponseDto,
|
|
2697
2488
|
ReactionType,
|
|
2698
2489
|
ReorderDto,
|
package/dist/index.mjs
CHANGED
|
@@ -4,9 +4,8 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
|
|
6
6
|
// dto/users/create_user.dto.ts
|
|
7
|
-
import { ApiProperty
|
|
8
|
-
import { IsEmail, IsNotEmpty,
|
|
9
|
-
import { Type } from "class-transformer";
|
|
7
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
8
|
+
import { IsEmail, IsNotEmpty, MinLength, IsEnum, IsString } from "class-validator";
|
|
10
9
|
|
|
11
10
|
// enums/user-type.enum.ts
|
|
12
11
|
var UserType = /* @__PURE__ */ (function(UserType2) {
|
|
@@ -15,30 +14,6 @@ var UserType = /* @__PURE__ */ (function(UserType2) {
|
|
|
15
14
|
return UserType2;
|
|
16
15
|
})({});
|
|
17
16
|
|
|
18
|
-
// enums/business-sector.enum.ts
|
|
19
|
-
var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
|
|
20
|
-
BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
|
|
21
|
-
BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
|
|
22
|
-
BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
|
|
23
|
-
BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
|
|
24
|
-
BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
|
|
25
|
-
BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
|
|
26
|
-
BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
|
|
27
|
-
BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
|
|
28
|
-
BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
|
|
29
|
-
BusinessSector2["LEGAL"] = "Legal Services";
|
|
30
|
-
BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
|
|
31
|
-
BusinessSector2["CONSULTING"] = "Business Consulting";
|
|
32
|
-
BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
|
|
33
|
-
BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
|
|
34
|
-
BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
|
|
35
|
-
BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
|
|
36
|
-
BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
|
|
37
|
-
BusinessSector2["REAL_ESTATE"] = "Real Estate";
|
|
38
|
-
BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
|
|
39
|
-
return BusinessSector2;
|
|
40
|
-
})({});
|
|
41
|
-
|
|
42
17
|
// dto/users/create_user.dto.ts
|
|
43
18
|
function _ts_decorate(decorators, target, key, desc) {
|
|
44
19
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -51,204 +26,6 @@ function _ts_metadata(k, v) {
|
|
|
51
26
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
52
27
|
}
|
|
53
28
|
__name(_ts_metadata, "_ts_metadata");
|
|
54
|
-
var _a;
|
|
55
|
-
var SkillDto = (_a = class {
|
|
56
|
-
constructor() {
|
|
57
|
-
__publicField(this, "name");
|
|
58
|
-
}
|
|
59
|
-
}, __name(_a, "SkillDto"), _a);
|
|
60
|
-
_ts_decorate([
|
|
61
|
-
ApiProperty({
|
|
62
|
-
example: "React"
|
|
63
|
-
}),
|
|
64
|
-
IsString(),
|
|
65
|
-
IsNotEmpty(),
|
|
66
|
-
_ts_metadata("design:type", String)
|
|
67
|
-
], SkillDto.prototype, "name", void 0);
|
|
68
|
-
var _a2;
|
|
69
|
-
var EducationDto = (_a2 = class {
|
|
70
|
-
constructor() {
|
|
71
|
-
__publicField(this, "degree");
|
|
72
|
-
}
|
|
73
|
-
}, __name(_a2, "EducationDto"), _a2);
|
|
74
|
-
_ts_decorate([
|
|
75
|
-
ApiProperty({
|
|
76
|
-
example: "Bachelor of CS"
|
|
77
|
-
}),
|
|
78
|
-
IsString(),
|
|
79
|
-
IsNotEmpty(),
|
|
80
|
-
_ts_metadata("design:type", String)
|
|
81
|
-
], EducationDto.prototype, "degree", void 0);
|
|
82
|
-
var _a3;
|
|
83
|
-
var CertificationDto = (_a3 = class {
|
|
84
|
-
constructor() {
|
|
85
|
-
__publicField(this, "certif");
|
|
86
|
-
}
|
|
87
|
-
}, __name(_a3, "CertificationDto"), _a3);
|
|
88
|
-
_ts_decorate([
|
|
89
|
-
ApiProperty({
|
|
90
|
-
example: "AWS Certified"
|
|
91
|
-
}),
|
|
92
|
-
IsString(),
|
|
93
|
-
IsNotEmpty(),
|
|
94
|
-
_ts_metadata("design:type", String)
|
|
95
|
-
], CertificationDto.prototype, "certif", void 0);
|
|
96
|
-
var _a4;
|
|
97
|
-
var AddressDto = (_a4 = class {
|
|
98
|
-
constructor() {
|
|
99
|
-
__publicField(this, "adresse");
|
|
100
|
-
}
|
|
101
|
-
}, __name(_a4, "AddressDto"), _a4);
|
|
102
|
-
_ts_decorate([
|
|
103
|
-
ApiProperty({
|
|
104
|
-
example: "123 Main St"
|
|
105
|
-
}),
|
|
106
|
-
IsString(),
|
|
107
|
-
IsNotEmpty(),
|
|
108
|
-
_ts_metadata("design:type", String)
|
|
109
|
-
], AddressDto.prototype, "adresse", void 0);
|
|
110
|
-
var _a5;
|
|
111
|
-
var ExperienceDto = (_a5 = class {
|
|
112
|
-
constructor() {
|
|
113
|
-
__publicField(this, "experience");
|
|
114
|
-
}
|
|
115
|
-
}, __name(_a5, "ExperienceDto"), _a5);
|
|
116
|
-
_ts_decorate([
|
|
117
|
-
ApiProperty({
|
|
118
|
-
example: "Senior Dev"
|
|
119
|
-
}),
|
|
120
|
-
IsString(),
|
|
121
|
-
IsNotEmpty(),
|
|
122
|
-
_ts_metadata("design:type", String)
|
|
123
|
-
], ExperienceDto.prototype, "experience", void 0);
|
|
124
|
-
var _a6;
|
|
125
|
-
var PhoneDto = (_a6 = class {
|
|
126
|
-
constructor() {
|
|
127
|
-
__publicField(this, "number");
|
|
128
|
-
}
|
|
129
|
-
}, __name(_a6, "PhoneDto"), _a6);
|
|
130
|
-
_ts_decorate([
|
|
131
|
-
ApiProperty({
|
|
132
|
-
example: "+1234567890"
|
|
133
|
-
}),
|
|
134
|
-
IsString(),
|
|
135
|
-
IsNotEmpty(),
|
|
136
|
-
_ts_metadata("design:type", String)
|
|
137
|
-
], PhoneDto.prototype, "number", void 0);
|
|
138
|
-
var _a7;
|
|
139
|
-
var LinkDto = (_a7 = class {
|
|
140
|
-
constructor() {
|
|
141
|
-
__publicField(this, "url");
|
|
142
|
-
}
|
|
143
|
-
}, __name(_a7, "LinkDto"), _a7);
|
|
144
|
-
_ts_decorate([
|
|
145
|
-
ApiProperty({
|
|
146
|
-
example: "https://github.com"
|
|
147
|
-
}),
|
|
148
|
-
IsString(),
|
|
149
|
-
IsNotEmpty(),
|
|
150
|
-
_ts_metadata("design:type", String)
|
|
151
|
-
], LinkDto.prototype, "url", void 0);
|
|
152
|
-
var _ProfessionalDataDto = class _ProfessionalDataDto {
|
|
153
|
-
constructor() {
|
|
154
|
-
__publicField(this, "businessSector");
|
|
155
|
-
__publicField(this, "bio");
|
|
156
|
-
__publicField(this, "companyName");
|
|
157
|
-
__publicField(this, "skills");
|
|
158
|
-
__publicField(this, "education");
|
|
159
|
-
__publicField(this, "certifications");
|
|
160
|
-
__publicField(this, "experiences");
|
|
161
|
-
__publicField(this, "addresses");
|
|
162
|
-
__publicField(this, "phones");
|
|
163
|
-
__publicField(this, "links");
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
__name(_ProfessionalDataDto, "ProfessionalDataDto");
|
|
167
|
-
var ProfessionalDataDto = _ProfessionalDataDto;
|
|
168
|
-
_ts_decorate([
|
|
169
|
-
ApiProperty({
|
|
170
|
-
enum: BusinessSector,
|
|
171
|
-
example: BusinessSector.IT_SOFTWARE
|
|
172
|
-
}),
|
|
173
|
-
IsEnum(BusinessSector),
|
|
174
|
-
IsNotEmpty(),
|
|
175
|
-
_ts_metadata("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
176
|
-
], ProfessionalDataDto.prototype, "businessSector", void 0);
|
|
177
|
-
_ts_decorate([
|
|
178
|
-
IsOptional(),
|
|
179
|
-
IsString(),
|
|
180
|
-
MaxLength(1e3),
|
|
181
|
-
_ts_metadata("design:type", String)
|
|
182
|
-
], ProfessionalDataDto.prototype, "bio", void 0);
|
|
183
|
-
_ts_decorate([
|
|
184
|
-
IsOptional(),
|
|
185
|
-
IsString(),
|
|
186
|
-
MaxLength(30),
|
|
187
|
-
_ts_metadata("design:type", String)
|
|
188
|
-
], ProfessionalDataDto.prototype, "companyName", void 0);
|
|
189
|
-
_ts_decorate([
|
|
190
|
-
IsOptional(),
|
|
191
|
-
IsArray(),
|
|
192
|
-
ValidateNested({
|
|
193
|
-
each: true
|
|
194
|
-
}),
|
|
195
|
-
Type(() => SkillDto),
|
|
196
|
-
_ts_metadata("design:type", Array)
|
|
197
|
-
], ProfessionalDataDto.prototype, "skills", void 0);
|
|
198
|
-
_ts_decorate([
|
|
199
|
-
IsOptional(),
|
|
200
|
-
IsArray(),
|
|
201
|
-
ValidateNested({
|
|
202
|
-
each: true
|
|
203
|
-
}),
|
|
204
|
-
Type(() => EducationDto),
|
|
205
|
-
_ts_metadata("design:type", Array)
|
|
206
|
-
], ProfessionalDataDto.prototype, "education", void 0);
|
|
207
|
-
_ts_decorate([
|
|
208
|
-
IsOptional(),
|
|
209
|
-
IsArray(),
|
|
210
|
-
ValidateNested({
|
|
211
|
-
each: true
|
|
212
|
-
}),
|
|
213
|
-
Type(() => CertificationDto),
|
|
214
|
-
_ts_metadata("design:type", Array)
|
|
215
|
-
], ProfessionalDataDto.prototype, "certifications", void 0);
|
|
216
|
-
_ts_decorate([
|
|
217
|
-
IsOptional(),
|
|
218
|
-
IsArray(),
|
|
219
|
-
ValidateNested({
|
|
220
|
-
each: true
|
|
221
|
-
}),
|
|
222
|
-
Type(() => ExperienceDto),
|
|
223
|
-
_ts_metadata("design:type", Array)
|
|
224
|
-
], ProfessionalDataDto.prototype, "experiences", void 0);
|
|
225
|
-
_ts_decorate([
|
|
226
|
-
IsOptional(),
|
|
227
|
-
IsArray(),
|
|
228
|
-
ValidateNested({
|
|
229
|
-
each: true
|
|
230
|
-
}),
|
|
231
|
-
Type(() => AddressDto),
|
|
232
|
-
_ts_metadata("design:type", Array)
|
|
233
|
-
], ProfessionalDataDto.prototype, "addresses", void 0);
|
|
234
|
-
_ts_decorate([
|
|
235
|
-
IsOptional(),
|
|
236
|
-
IsArray(),
|
|
237
|
-
ValidateNested({
|
|
238
|
-
each: true
|
|
239
|
-
}),
|
|
240
|
-
Type(() => PhoneDto),
|
|
241
|
-
_ts_metadata("design:type", Array)
|
|
242
|
-
], ProfessionalDataDto.prototype, "phones", void 0);
|
|
243
|
-
_ts_decorate([
|
|
244
|
-
IsOptional(),
|
|
245
|
-
IsArray(),
|
|
246
|
-
ValidateNested({
|
|
247
|
-
each: true
|
|
248
|
-
}),
|
|
249
|
-
Type(() => LinkDto),
|
|
250
|
-
_ts_metadata("design:type", Array)
|
|
251
|
-
], ProfessionalDataDto.prototype, "links", void 0);
|
|
252
29
|
var _CreateUserDto = class _CreateUserDto {
|
|
253
30
|
constructor() {
|
|
254
31
|
__publicField(this, "email");
|
|
@@ -256,7 +33,6 @@ var _CreateUserDto = class _CreateUserDto {
|
|
|
256
33
|
__publicField(this, "password");
|
|
257
34
|
__publicField(this, "confirmPassword");
|
|
258
35
|
__publicField(this, "userType");
|
|
259
|
-
__publicField(this, "professionalData");
|
|
260
36
|
}
|
|
261
37
|
};
|
|
262
38
|
__name(_CreateUserDto, "CreateUserDto");
|
|
@@ -302,15 +78,6 @@ _ts_decorate([
|
|
|
302
78
|
IsNotEmpty(),
|
|
303
79
|
_ts_metadata("design:type", typeof UserType === "undefined" ? Object : UserType)
|
|
304
80
|
], CreateUserDto.prototype, "userType", void 0);
|
|
305
|
-
_ts_decorate([
|
|
306
|
-
ApiPropertyOptional({
|
|
307
|
-
type: ProfessionalDataDto
|
|
308
|
-
}),
|
|
309
|
-
IsOptional(),
|
|
310
|
-
ValidateNested(),
|
|
311
|
-
Type(() => ProfessionalDataDto),
|
|
312
|
-
_ts_metadata("design:type", typeof ProfessionalDataDto === "undefined" ? Object : ProfessionalDataDto)
|
|
313
|
-
], CreateUserDto.prototype, "professionalData", void 0);
|
|
314
81
|
|
|
315
82
|
// dto/users/create_user_firebase.dto.ts
|
|
316
83
|
import { ApiProperty as ApiProperty2 } from "@nestjs/swagger";
|
|
@@ -368,8 +135,8 @@ _ts_decorate3([
|
|
|
368
135
|
], EmailParamDto.prototype, "email", void 0);
|
|
369
136
|
|
|
370
137
|
// dto/users/find-all-users.dto.ts
|
|
371
|
-
import { IsOptional
|
|
372
|
-
import { Type
|
|
138
|
+
import { IsOptional, IsInt, Min } from "class-validator";
|
|
139
|
+
import { Type } from "class-transformer";
|
|
373
140
|
function _ts_decorate4(decorators, target, key, desc) {
|
|
374
141
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
375
142
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -390,15 +157,15 @@ var _FindAllUsersDto = class _FindAllUsersDto {
|
|
|
390
157
|
__name(_FindAllUsersDto, "FindAllUsersDto");
|
|
391
158
|
var FindAllUsersDto = _FindAllUsersDto;
|
|
392
159
|
_ts_decorate4([
|
|
393
|
-
|
|
394
|
-
|
|
160
|
+
IsOptional(),
|
|
161
|
+
Type(() => Number),
|
|
395
162
|
IsInt(),
|
|
396
163
|
Min(1),
|
|
397
164
|
_ts_metadata4("design:type", Number)
|
|
398
165
|
], FindAllUsersDto.prototype, "page", void 0);
|
|
399
166
|
_ts_decorate4([
|
|
400
|
-
|
|
401
|
-
|
|
167
|
+
IsOptional(),
|
|
168
|
+
Type(() => Number),
|
|
402
169
|
IsInt(),
|
|
403
170
|
Min(1),
|
|
404
171
|
_ts_metadata4("design:type", Number)
|
|
@@ -463,7 +230,7 @@ _ts_decorate6([
|
|
|
463
230
|
|
|
464
231
|
// dto/users/login_local.dto.ts
|
|
465
232
|
import { ApiProperty as ApiProperty3 } from "@nestjs/swagger/dist/decorators/api-property.decorator";
|
|
466
|
-
import { IsEmail as IsEmail4, IsNotEmpty as IsNotEmpty3, MaxLength
|
|
233
|
+
import { IsEmail as IsEmail4, IsNotEmpty as IsNotEmpty3, MaxLength, MinLength as MinLength2 } from "class-validator";
|
|
467
234
|
function _ts_decorate7(decorators, target, key, desc) {
|
|
468
235
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
469
236
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -491,7 +258,7 @@ _ts_decorate7([
|
|
|
491
258
|
IsNotEmpty3(),
|
|
492
259
|
IsEmail4(),
|
|
493
260
|
MinLength2(6),
|
|
494
|
-
|
|
261
|
+
MaxLength(100),
|
|
495
262
|
_ts_metadata7("design:type", String)
|
|
496
263
|
], LoginLocalDTO.prototype, "email", void 0);
|
|
497
264
|
_ts_decorate7([
|
|
@@ -501,7 +268,7 @@ _ts_decorate7([
|
|
|
501
268
|
}),
|
|
502
269
|
IsNotEmpty3(),
|
|
503
270
|
MinLength2(6),
|
|
504
|
-
|
|
271
|
+
MaxLength(50),
|
|
505
272
|
_ts_metadata7("design:type", String)
|
|
506
273
|
], LoginLocalDTO.prototype, "password", void 0);
|
|
507
274
|
|
|
@@ -532,8 +299,8 @@ _ts_decorate8([
|
|
|
532
299
|
], ResetPasswordDto.prototype, "password", void 0);
|
|
533
300
|
|
|
534
301
|
// dto/users/update-user.dto.ts
|
|
535
|
-
import { IsString as IsString5, IsOptional as
|
|
536
|
-
import { ApiPropertyOptional
|
|
302
|
+
import { IsString as IsString5, IsOptional as IsOptional2, MinLength as MinLength4, MaxLength as MaxLength2 } from "class-validator";
|
|
303
|
+
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
537
304
|
function _ts_decorate9(decorators, target, key, desc) {
|
|
538
305
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
539
306
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -553,22 +320,22 @@ var _UpdateUserDto = class _UpdateUserDto {
|
|
|
553
320
|
__name(_UpdateUserDto, "UpdateUserDto");
|
|
554
321
|
var UpdateUserDto = _UpdateUserDto;
|
|
555
322
|
_ts_decorate9([
|
|
556
|
-
|
|
323
|
+
ApiPropertyOptional({
|
|
557
324
|
description: "User full name",
|
|
558
325
|
example: "John Doe",
|
|
559
326
|
minLength: 2,
|
|
560
327
|
maxLength: 100
|
|
561
328
|
}),
|
|
562
|
-
|
|
329
|
+
IsOptional2(),
|
|
563
330
|
IsString5(),
|
|
564
331
|
MinLength4(2),
|
|
565
|
-
|
|
332
|
+
MaxLength2(100),
|
|
566
333
|
_ts_metadata9("design:type", String)
|
|
567
334
|
], UpdateUserDto.prototype, "fullName", void 0);
|
|
568
335
|
|
|
569
336
|
// dto/users/update_password.dto.ts
|
|
570
337
|
import { ApiProperty as ApiProperty4 } from "@nestjs/swagger";
|
|
571
|
-
import { IsString as IsString6, MaxLength as
|
|
338
|
+
import { IsString as IsString6, MaxLength as MaxLength3, MinLength as MinLength5 } from "class-validator";
|
|
572
339
|
function _ts_decorate10(decorators, target, key, desc) {
|
|
573
340
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
574
341
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -597,7 +364,7 @@ _ts_decorate10([
|
|
|
597
364
|
}),
|
|
598
365
|
IsString6(),
|
|
599
366
|
MinLength5(10),
|
|
600
|
-
|
|
367
|
+
MaxLength3(200),
|
|
601
368
|
_ts_metadata10("design:type", String)
|
|
602
369
|
], UpdatePasswordDto.prototype, "resetPasswordToken", void 0);
|
|
603
370
|
_ts_decorate10([
|
|
@@ -607,7 +374,7 @@ _ts_decorate10([
|
|
|
607
374
|
}),
|
|
608
375
|
IsString6(),
|
|
609
376
|
MinLength5(8),
|
|
610
|
-
|
|
377
|
+
MaxLength3(50),
|
|
611
378
|
_ts_metadata10("design:type", String)
|
|
612
379
|
], UpdatePasswordDto.prototype, "oldPassword", void 0);
|
|
613
380
|
_ts_decorate10([
|
|
@@ -617,7 +384,7 @@ _ts_decorate10([
|
|
|
617
384
|
}),
|
|
618
385
|
IsString6(),
|
|
619
386
|
MinLength5(8),
|
|
620
|
-
|
|
387
|
+
MaxLength3(50),
|
|
621
388
|
_ts_metadata10("design:type", String)
|
|
622
389
|
], UpdatePasswordDto.prototype, "newPassword", void 0);
|
|
623
390
|
_ts_decorate10([
|
|
@@ -627,12 +394,38 @@ _ts_decorate10([
|
|
|
627
394
|
}),
|
|
628
395
|
IsString6(),
|
|
629
396
|
MinLength5(8),
|
|
630
|
-
|
|
397
|
+
MaxLength3(50),
|
|
631
398
|
_ts_metadata10("design:type", String)
|
|
632
399
|
], UpdatePasswordDto.prototype, "confirmNewPassword", void 0);
|
|
633
400
|
|
|
634
401
|
// dto/users/user_response.dto.ts
|
|
635
|
-
import { ApiProperty as ApiProperty5, ApiPropertyOptional as
|
|
402
|
+
import { ApiProperty as ApiProperty5, ApiPropertyOptional as ApiPropertyOptional2 } from "@nestjs/swagger";
|
|
403
|
+
|
|
404
|
+
// enums/business-sector.enum.ts
|
|
405
|
+
var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
|
|
406
|
+
BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
|
|
407
|
+
BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
|
|
408
|
+
BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
|
|
409
|
+
BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
|
|
410
|
+
BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
|
|
411
|
+
BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
|
|
412
|
+
BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
|
|
413
|
+
BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
|
|
414
|
+
BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
|
|
415
|
+
BusinessSector2["LEGAL"] = "Legal Services";
|
|
416
|
+
BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
|
|
417
|
+
BusinessSector2["CONSULTING"] = "Business Consulting";
|
|
418
|
+
BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
|
|
419
|
+
BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
|
|
420
|
+
BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
|
|
421
|
+
BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
|
|
422
|
+
BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
|
|
423
|
+
BusinessSector2["REAL_ESTATE"] = "Real Estate";
|
|
424
|
+
BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
|
|
425
|
+
return BusinessSector2;
|
|
426
|
+
})({});
|
|
427
|
+
|
|
428
|
+
// dto/users/user_response.dto.ts
|
|
636
429
|
function _ts_decorate11(decorators, target, key, desc) {
|
|
637
430
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
638
431
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -826,13 +619,13 @@ _ts_decorate11([
|
|
|
826
619
|
_ts_metadata11("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
827
620
|
], ProfessionalProfileResponseDto.prototype, "businessSector", void 0);
|
|
828
621
|
_ts_decorate11([
|
|
829
|
-
|
|
622
|
+
ApiPropertyOptional2({
|
|
830
623
|
example: "Experienced developer..."
|
|
831
624
|
}),
|
|
832
625
|
_ts_metadata11("design:type", Object)
|
|
833
626
|
], ProfessionalProfileResponseDto.prototype, "bio", void 0);
|
|
834
627
|
_ts_decorate11([
|
|
835
|
-
|
|
628
|
+
ApiPropertyOptional2({
|
|
836
629
|
example: "Tech Solutions Inc."
|
|
837
630
|
}),
|
|
838
631
|
_ts_metadata11("design:type", Object)
|
|
@@ -858,7 +651,7 @@ _ts_decorate11([
|
|
|
858
651
|
_ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
|
|
859
652
|
], ProfessionalProfileResponseDto.prototype, "updatedAt", void 0);
|
|
860
653
|
_ts_decorate11([
|
|
861
|
-
|
|
654
|
+
ApiPropertyOptional2({
|
|
862
655
|
type: [
|
|
863
656
|
SkillResponseDto
|
|
864
657
|
],
|
|
@@ -867,7 +660,7 @@ _ts_decorate11([
|
|
|
867
660
|
_ts_metadata11("design:type", Array)
|
|
868
661
|
], ProfessionalProfileResponseDto.prototype, "skills", void 0);
|
|
869
662
|
_ts_decorate11([
|
|
870
|
-
|
|
663
|
+
ApiPropertyOptional2({
|
|
871
664
|
type: [
|
|
872
665
|
EducationResponseDto
|
|
873
666
|
],
|
|
@@ -876,7 +669,7 @@ _ts_decorate11([
|
|
|
876
669
|
_ts_metadata11("design:type", Array)
|
|
877
670
|
], ProfessionalProfileResponseDto.prototype, "education", void 0);
|
|
878
671
|
_ts_decorate11([
|
|
879
|
-
|
|
672
|
+
ApiPropertyOptional2({
|
|
880
673
|
type: [
|
|
881
674
|
CertificationResponseDto
|
|
882
675
|
],
|
|
@@ -885,7 +678,7 @@ _ts_decorate11([
|
|
|
885
678
|
_ts_metadata11("design:type", Array)
|
|
886
679
|
], ProfessionalProfileResponseDto.prototype, "certifications", void 0);
|
|
887
680
|
_ts_decorate11([
|
|
888
|
-
|
|
681
|
+
ApiPropertyOptional2({
|
|
889
682
|
type: [
|
|
890
683
|
AddressResponseDto
|
|
891
684
|
],
|
|
@@ -894,7 +687,7 @@ _ts_decorate11([
|
|
|
894
687
|
_ts_metadata11("design:type", Array)
|
|
895
688
|
], ProfessionalProfileResponseDto.prototype, "addresses", void 0);
|
|
896
689
|
_ts_decorate11([
|
|
897
|
-
|
|
690
|
+
ApiPropertyOptional2({
|
|
898
691
|
type: [
|
|
899
692
|
ExperienceResponseDto
|
|
900
693
|
],
|
|
@@ -903,7 +696,7 @@ _ts_decorate11([
|
|
|
903
696
|
_ts_metadata11("design:type", Array)
|
|
904
697
|
], ProfessionalProfileResponseDto.prototype, "experiences", void 0);
|
|
905
698
|
_ts_decorate11([
|
|
906
|
-
|
|
699
|
+
ApiPropertyOptional2({
|
|
907
700
|
type: [
|
|
908
701
|
PhoneResponseDto
|
|
909
702
|
],
|
|
@@ -912,7 +705,7 @@ _ts_decorate11([
|
|
|
912
705
|
_ts_metadata11("design:type", Array)
|
|
913
706
|
], ProfessionalProfileResponseDto.prototype, "phones", void 0);
|
|
914
707
|
_ts_decorate11([
|
|
915
|
-
|
|
708
|
+
ApiPropertyOptional2({
|
|
916
709
|
type: [
|
|
917
710
|
LinkResponseDto
|
|
918
711
|
],
|
|
@@ -954,7 +747,7 @@ _ts_decorate11([
|
|
|
954
747
|
_ts_metadata11("design:type", String)
|
|
955
748
|
], UserResponseDto.prototype, "fullName", void 0);
|
|
956
749
|
_ts_decorate11([
|
|
957
|
-
|
|
750
|
+
ApiPropertyOptional2({
|
|
958
751
|
example: "https://example.com/profile.jpg"
|
|
959
752
|
}),
|
|
960
753
|
_ts_metadata11("design:type", Object)
|
|
@@ -983,12 +776,12 @@ _ts_decorate11([
|
|
|
983
776
|
_ts_metadata11("design:type", Object)
|
|
984
777
|
], UserResponseDto.prototype, "role", void 0);
|
|
985
778
|
_ts_decorate11([
|
|
986
|
-
|
|
779
|
+
ApiPropertyOptional2(),
|
|
987
780
|
_ts_metadata11("design:type", typeof ProfessionalProfileResponseDto === "undefined" ? Object : ProfessionalProfileResponseDto)
|
|
988
781
|
], UserResponseDto.prototype, "professionalProfile", void 0);
|
|
989
782
|
|
|
990
783
|
// dto/users/search_users_by_full_name.dto.ts
|
|
991
|
-
import { IsOptional as
|
|
784
|
+
import { IsOptional as IsOptional3, IsString as IsString7 } from "class-validator";
|
|
992
785
|
function _ts_decorate12(decorators, target, key, desc) {
|
|
993
786
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
994
787
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1010,13 +803,13 @@ __name(_SearchUsersByFullNameDTO, "SearchUsersByFullNameDTO");
|
|
|
1010
803
|
var SearchUsersByFullNameDTO = _SearchUsersByFullNameDTO;
|
|
1011
804
|
_ts_decorate12([
|
|
1012
805
|
IsString7(),
|
|
1013
|
-
|
|
806
|
+
IsOptional3(),
|
|
1014
807
|
_ts_metadata12("design:type", String)
|
|
1015
808
|
], SearchUsersByFullNameDTO.prototype, "fullName", void 0);
|
|
1016
809
|
|
|
1017
810
|
// dto/users/update_professional_profile.dto.ts
|
|
1018
|
-
import { ApiPropertyOptional as
|
|
1019
|
-
import { IsOptional as
|
|
811
|
+
import { ApiPropertyOptional as ApiPropertyOptional3 } from "@nestjs/swagger";
|
|
812
|
+
import { IsOptional as IsOptional4, IsEnum as IsEnum2, IsString as IsString8, MaxLength as MaxLength4, IsUrl, IsInt as IsInt2, Min as Min2, IsNumber } from "class-validator";
|
|
1020
813
|
function _ts_decorate13(decorators, target, key, desc) {
|
|
1021
814
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1022
815
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1044,85 +837,85 @@ var _UpdateProfessionalProfileDto = class _UpdateProfessionalProfileDto {
|
|
|
1044
837
|
__name(_UpdateProfessionalProfileDto, "UpdateProfessionalProfileDto");
|
|
1045
838
|
var UpdateProfessionalProfileDto = _UpdateProfessionalProfileDto;
|
|
1046
839
|
_ts_decorate13([
|
|
1047
|
-
|
|
840
|
+
ApiPropertyOptional3({
|
|
1048
841
|
enum: BusinessSector,
|
|
1049
842
|
example: BusinessSector.IT_SOFTWARE,
|
|
1050
843
|
description: "Business sector"
|
|
1051
844
|
}),
|
|
1052
|
-
|
|
845
|
+
IsOptional4(),
|
|
1053
846
|
IsEnum2(BusinessSector),
|
|
1054
847
|
_ts_metadata13("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
1055
848
|
], UpdateProfessionalProfileDto.prototype, "businessSector", void 0);
|
|
1056
849
|
_ts_decorate13([
|
|
1057
|
-
|
|
850
|
+
ApiPropertyOptional3({
|
|
1058
851
|
example: "Experienced software developer specializing in web applications",
|
|
1059
852
|
description: "Professional bio"
|
|
1060
853
|
}),
|
|
1061
|
-
|
|
854
|
+
IsOptional4(),
|
|
1062
855
|
IsString8(),
|
|
1063
|
-
|
|
856
|
+
MaxLength4(1e3),
|
|
1064
857
|
_ts_metadata13("design:type", String)
|
|
1065
858
|
], UpdateProfessionalProfileDto.prototype, "bio", void 0);
|
|
1066
859
|
_ts_decorate13([
|
|
1067
|
-
|
|
860
|
+
ApiPropertyOptional3({
|
|
1068
861
|
example: "Tech Solutions Inc.",
|
|
1069
862
|
description: "Company name"
|
|
1070
863
|
}),
|
|
1071
|
-
|
|
864
|
+
IsOptional4(),
|
|
1072
865
|
IsString8(),
|
|
1073
|
-
|
|
866
|
+
MaxLength4(200),
|
|
1074
867
|
_ts_metadata13("design:type", String)
|
|
1075
868
|
], UpdateProfessionalProfileDto.prototype, "companyName", void 0);
|
|
1076
869
|
_ts_decorate13([
|
|
1077
|
-
|
|
870
|
+
ApiPropertyOptional3({
|
|
1078
871
|
example: "https://www.example.com",
|
|
1079
872
|
description: "Professional website URL"
|
|
1080
873
|
}),
|
|
1081
|
-
|
|
874
|
+
IsOptional4(),
|
|
1082
875
|
IsUrl(),
|
|
1083
876
|
_ts_metadata13("design:type", String)
|
|
1084
877
|
], UpdateProfessionalProfileDto.prototype, "website", void 0);
|
|
1085
878
|
_ts_decorate13([
|
|
1086
|
-
|
|
879
|
+
ApiPropertyOptional3({
|
|
1087
880
|
example: "+1234567890",
|
|
1088
881
|
description: "Contact phone number"
|
|
1089
882
|
}),
|
|
1090
|
-
|
|
883
|
+
IsOptional4(),
|
|
1091
884
|
IsString8(),
|
|
1092
885
|
_ts_metadata13("design:type", String)
|
|
1093
886
|
], UpdateProfessionalProfileDto.prototype, "phone", void 0);
|
|
1094
887
|
_ts_decorate13([
|
|
1095
|
-
|
|
888
|
+
ApiPropertyOptional3({
|
|
1096
889
|
example: "New York, USA",
|
|
1097
890
|
description: "Location/City"
|
|
1098
891
|
}),
|
|
1099
|
-
|
|
892
|
+
IsOptional4(),
|
|
1100
893
|
IsString8(),
|
|
1101
|
-
|
|
894
|
+
MaxLength4(200),
|
|
1102
895
|
_ts_metadata13("design:type", String)
|
|
1103
896
|
], UpdateProfessionalProfileDto.prototype, "location", void 0);
|
|
1104
897
|
_ts_decorate13([
|
|
1105
|
-
|
|
898
|
+
ApiPropertyOptional3({
|
|
1106
899
|
example: 5,
|
|
1107
900
|
description: "Years of professional experience"
|
|
1108
901
|
}),
|
|
1109
|
-
|
|
902
|
+
IsOptional4(),
|
|
1110
903
|
IsInt2(),
|
|
1111
904
|
Min2(0),
|
|
1112
905
|
_ts_metadata13("design:type", Number)
|
|
1113
906
|
], UpdateProfessionalProfileDto.prototype, "yearsOfExperience", void 0);
|
|
1114
907
|
_ts_decorate13([
|
|
1115
|
-
|
|
908
|
+
ApiPropertyOptional3({
|
|
1116
909
|
example: 75.5,
|
|
1117
910
|
description: "Hourly rate in USD"
|
|
1118
911
|
}),
|
|
1119
|
-
|
|
912
|
+
IsOptional4(),
|
|
1120
913
|
IsNumber(),
|
|
1121
914
|
Min2(0),
|
|
1122
915
|
_ts_metadata13("design:type", Number)
|
|
1123
916
|
], UpdateProfessionalProfileDto.prototype, "hourlyRate", void 0);
|
|
1124
917
|
_ts_decorate13([
|
|
1125
|
-
|
|
918
|
+
ApiPropertyOptional3({
|
|
1126
919
|
example: "available",
|
|
1127
920
|
description: "Availability status",
|
|
1128
921
|
enum: [
|
|
@@ -1131,13 +924,13 @@ _ts_decorate13([
|
|
|
1131
924
|
"unavailable"
|
|
1132
925
|
]
|
|
1133
926
|
}),
|
|
1134
|
-
|
|
927
|
+
IsOptional4(),
|
|
1135
928
|
IsString8(),
|
|
1136
929
|
_ts_metadata13("design:type", String)
|
|
1137
930
|
], UpdateProfessionalProfileDto.prototype, "availabilityStatus", void 0);
|
|
1138
931
|
|
|
1139
932
|
// dto/users/create_report.dto.ts
|
|
1140
|
-
import { IsEnum as IsEnum3, IsNotEmpty as IsNotEmpty4, IsString as IsString9, IsUUID, MaxLength as
|
|
933
|
+
import { IsEnum as IsEnum3, IsNotEmpty as IsNotEmpty4, IsString as IsString9, IsUUID, MaxLength as MaxLength5, MinLength as MinLength6 } from "class-validator";
|
|
1141
934
|
|
|
1142
935
|
// enums/ReportCategory.enum.ts
|
|
1143
936
|
var ReportCategory = /* @__PURE__ */ (function(ReportCategory2) {
|
|
@@ -1188,7 +981,7 @@ _ts_decorate14([
|
|
|
1188
981
|
IsString9(),
|
|
1189
982
|
IsNotEmpty4(),
|
|
1190
983
|
MinLength6(10),
|
|
1191
|
-
|
|
984
|
+
MaxLength5(1e3),
|
|
1192
985
|
_ts_metadata14("design:type", String)
|
|
1193
986
|
], CreateReportDto.prototype, "description", void 0);
|
|
1194
987
|
|
|
@@ -1232,7 +1025,7 @@ __name(_FileResponseDto, "FileResponseDto");
|
|
|
1232
1025
|
var FileResponseDto = _FileResponseDto;
|
|
1233
1026
|
|
|
1234
1027
|
// dto/storage/upload-file.dto.ts
|
|
1235
|
-
import { IsString as IsString11, IsNotEmpty as IsNotEmpty6, IsEnum as IsEnum4, IsOptional as
|
|
1028
|
+
import { IsString as IsString11, IsNotEmpty as IsNotEmpty6, IsEnum as IsEnum4, IsOptional as IsOptional5 } from "class-validator";
|
|
1236
1029
|
function _ts_decorate16(decorators, target, key, desc) {
|
|
1237
1030
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1238
1031
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1281,7 +1074,7 @@ _ts_decorate16([
|
|
|
1281
1074
|
], UploadFileDto.prototype, "fileName", void 0);
|
|
1282
1075
|
_ts_decorate16([
|
|
1283
1076
|
IsString11(),
|
|
1284
|
-
|
|
1077
|
+
IsOptional5(),
|
|
1285
1078
|
_ts_metadata16("design:type", String)
|
|
1286
1079
|
], UploadFileDto.prototype, "mimeType", void 0);
|
|
1287
1080
|
|
|
@@ -1297,10 +1090,10 @@ var ReactionType = /* @__PURE__ */ (function(ReactionType2) {
|
|
|
1297
1090
|
|
|
1298
1091
|
// dto/posts/create_post.dto.ts
|
|
1299
1092
|
import { ApiProperty as ApiProperty7 } from "@nestjs/swagger";
|
|
1300
|
-
import { IsArray
|
|
1093
|
+
import { IsArray, IsEnum as IsEnum5, IsNotEmpty as IsNotEmpty8, IsOptional as IsOptional7, IsString as IsString13, MaxLength as MaxLength6, MinLength as MinLength7, ValidateNested } from "class-validator";
|
|
1301
1094
|
|
|
1302
1095
|
// dto/posts/create_post._file.dto.ts
|
|
1303
|
-
import { IsString as IsString12, IsNotEmpty as IsNotEmpty7, IsOptional as
|
|
1096
|
+
import { IsString as IsString12, IsNotEmpty as IsNotEmpty7, IsOptional as IsOptional6 } from "class-validator";
|
|
1304
1097
|
import { ApiProperty as ApiProperty6 } from "@nestjs/swagger";
|
|
1305
1098
|
function _ts_decorate17(decorators, target, key, desc) {
|
|
1306
1099
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -1348,7 +1141,7 @@ _ts_decorate17([
|
|
|
1348
1141
|
required: false
|
|
1349
1142
|
}),
|
|
1350
1143
|
IsString12(),
|
|
1351
|
-
|
|
1144
|
+
IsOptional6(),
|
|
1352
1145
|
_ts_metadata17("design:type", String)
|
|
1353
1146
|
], CreatePostFileDto.prototype, "mimeType", void 0);
|
|
1354
1147
|
_ts_decorate17([
|
|
@@ -1366,7 +1159,7 @@ _ts_decorate17([
|
|
|
1366
1159
|
], CreatePostFileDto.prototype, "fileType", void 0);
|
|
1367
1160
|
|
|
1368
1161
|
// dto/posts/create_post.dto.ts
|
|
1369
|
-
import { Type as
|
|
1162
|
+
import { Type as Type2 } from "class-transformer";
|
|
1370
1163
|
function _ts_decorate18(decorators, target, key, desc) {
|
|
1371
1164
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1372
1165
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1397,7 +1190,7 @@ _ts_decorate18([
|
|
|
1397
1190
|
IsString13(),
|
|
1398
1191
|
IsNotEmpty8(),
|
|
1399
1192
|
MinLength7(1),
|
|
1400
|
-
|
|
1193
|
+
MaxLength6(5e3),
|
|
1401
1194
|
_ts_metadata18("design:type", String)
|
|
1402
1195
|
], CreatePostDto.prototype, "description", void 0);
|
|
1403
1196
|
_ts_decorate18([
|
|
@@ -1418,12 +1211,12 @@ _ts_decorate18([
|
|
|
1418
1211
|
],
|
|
1419
1212
|
required: false
|
|
1420
1213
|
}),
|
|
1421
|
-
|
|
1422
|
-
|
|
1214
|
+
IsArray(),
|
|
1215
|
+
ValidateNested({
|
|
1423
1216
|
each: true
|
|
1424
1217
|
}),
|
|
1425
|
-
|
|
1426
|
-
|
|
1218
|
+
Type2(() => CreatePostFileDto),
|
|
1219
|
+
IsOptional7(),
|
|
1427
1220
|
_ts_metadata18("design:type", Array)
|
|
1428
1221
|
], CreatePostDto.prototype, "files", void 0);
|
|
1429
1222
|
|
|
@@ -1706,8 +1499,8 @@ _ts_decorate22([
|
|
|
1706
1499
|
], PaginatedPostsDto.prototype, "totalPages", void 0);
|
|
1707
1500
|
|
|
1708
1501
|
// dto/posts/update_post.dto.ts
|
|
1709
|
-
import { ApiProperty as ApiProperty12, ApiPropertyOptional as
|
|
1710
|
-
import { IsEnum as IsEnum7, IsNotEmpty as IsNotEmpty9, IsOptional as
|
|
1502
|
+
import { ApiProperty as ApiProperty12, ApiPropertyOptional as ApiPropertyOptional4 } from "@nestjs/swagger";
|
|
1503
|
+
import { IsEnum as IsEnum7, IsNotEmpty as IsNotEmpty9, IsOptional as IsOptional8, IsString as IsString14, MaxLength as MaxLength7, MinLength as MinLength8 } from "class-validator";
|
|
1711
1504
|
function _ts_decorate23(decorators, target, key, desc) {
|
|
1712
1505
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1713
1506
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1738,16 +1531,16 @@ _ts_decorate23([
|
|
|
1738
1531
|
IsString14(),
|
|
1739
1532
|
IsNotEmpty9(),
|
|
1740
1533
|
MinLength8(1),
|
|
1741
|
-
|
|
1742
|
-
|
|
1534
|
+
MaxLength7(5e3),
|
|
1535
|
+
IsOptional8(),
|
|
1743
1536
|
_ts_metadata23("design:type", String)
|
|
1744
1537
|
], UpdatePostDto.prototype, "description", void 0);
|
|
1745
1538
|
_ts_decorate23([
|
|
1746
|
-
|
|
1539
|
+
ApiPropertyOptional4({
|
|
1747
1540
|
description: "The Business sector type for the post",
|
|
1748
1541
|
enum: BusinessSector
|
|
1749
1542
|
}),
|
|
1750
|
-
|
|
1543
|
+
IsOptional8(),
|
|
1751
1544
|
IsEnum7(BusinessSector),
|
|
1752
1545
|
_ts_metadata23("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
1753
1546
|
], UpdatePostDto.prototype, "sector", void 0);
|
|
@@ -1949,7 +1742,7 @@ _ts_decorate27([
|
|
|
1949
1742
|
|
|
1950
1743
|
// dto/posts/like_post.dto.ts
|
|
1951
1744
|
import { ApiProperty as ApiProperty16 } from "@nestjs/swagger";
|
|
1952
|
-
import { IsEnum as IsEnum8, IsOptional as
|
|
1745
|
+
import { IsEnum as IsEnum8, IsOptional as IsOptional9 } from "class-validator";
|
|
1953
1746
|
function _ts_decorate28(decorators, target, key, desc) {
|
|
1954
1747
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1955
1748
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1976,7 +1769,7 @@ _ts_decorate28([
|
|
|
1976
1769
|
default: ReactionType.LIKE
|
|
1977
1770
|
}),
|
|
1978
1771
|
IsEnum8(ReactionType),
|
|
1979
|
-
|
|
1772
|
+
IsOptional9(),
|
|
1980
1773
|
_ts_metadata28("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1981
1774
|
], LikePostDto.prototype, "type", void 0);
|
|
1982
1775
|
|
|
@@ -2032,7 +1825,7 @@ _ts_decorate29([
|
|
|
2032
1825
|
|
|
2033
1826
|
// dto/comments/create_comment.dto.ts
|
|
2034
1827
|
import { ApiProperty as ApiProperty18 } from "@nestjs/swagger";
|
|
2035
|
-
import { IsNotEmpty as IsNotEmpty10, IsOptional as
|
|
1828
|
+
import { IsNotEmpty as IsNotEmpty10, IsOptional as IsOptional10, IsString as IsString15, IsUUID as IsUUID2, MaxLength as MaxLength8, MinLength as MinLength9 } from "class-validator";
|
|
2036
1829
|
function _ts_decorate30(decorators, target, key, desc) {
|
|
2037
1830
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2038
1831
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2072,7 +1865,7 @@ _ts_decorate30([
|
|
|
2072
1865
|
IsString15(),
|
|
2073
1866
|
IsNotEmpty10(),
|
|
2074
1867
|
MinLength9(1),
|
|
2075
|
-
|
|
1868
|
+
MaxLength8(5e3),
|
|
2076
1869
|
_ts_metadata30("design:type", String)
|
|
2077
1870
|
], CreateCommentDto.prototype, "content", void 0);
|
|
2078
1871
|
_ts_decorate30([
|
|
@@ -2082,7 +1875,7 @@ _ts_decorate30([
|
|
|
2082
1875
|
required: false
|
|
2083
1876
|
}),
|
|
2084
1877
|
IsUUID2(),
|
|
2085
|
-
|
|
1878
|
+
IsOptional10(),
|
|
2086
1879
|
_ts_metadata30("design:type", String)
|
|
2087
1880
|
], CreateCommentDto.prototype, "parentCommentId", void 0);
|
|
2088
1881
|
|
|
@@ -2281,7 +2074,7 @@ _ts_decorate33([
|
|
|
2281
2074
|
|
|
2282
2075
|
// dto/comments/update_comment.dto.ts
|
|
2283
2076
|
import { ApiProperty as ApiProperty22 } from "@nestjs/swagger";
|
|
2284
|
-
import { IsNotEmpty as IsNotEmpty11, IsString as IsString16, MaxLength as
|
|
2077
|
+
import { IsNotEmpty as IsNotEmpty11, IsString as IsString16, MaxLength as MaxLength9, MinLength as MinLength10 } from "class-validator";
|
|
2285
2078
|
function _ts_decorate34(decorators, target, key, desc) {
|
|
2286
2079
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2287
2080
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2310,7 +2103,7 @@ _ts_decorate34([
|
|
|
2310
2103
|
IsString16(),
|
|
2311
2104
|
IsNotEmpty11(),
|
|
2312
2105
|
MinLength10(1),
|
|
2313
|
-
|
|
2106
|
+
MaxLength9(5e3),
|
|
2314
2107
|
_ts_metadata34("design:type", String)
|
|
2315
2108
|
], UpdateCommentDto.prototype, "content", void 0);
|
|
2316
2109
|
|
|
@@ -2337,7 +2130,7 @@ var CommentFields = _CommentFields;
|
|
|
2337
2130
|
|
|
2338
2131
|
// dto/comments/like_comment.dto.ts
|
|
2339
2132
|
import { ApiProperty as ApiProperty23 } from "@nestjs/swagger";
|
|
2340
|
-
import { IsEnum as IsEnum9, IsOptional as
|
|
2133
|
+
import { IsEnum as IsEnum9, IsOptional as IsOptional11 } from "class-validator";
|
|
2341
2134
|
function _ts_decorate35(decorators, target, key, desc) {
|
|
2342
2135
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2343
2136
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2364,7 +2157,7 @@ _ts_decorate35([
|
|
|
2364
2157
|
default: ReactionType.LIKE
|
|
2365
2158
|
}),
|
|
2366
2159
|
IsEnum9(ReactionType),
|
|
2367
|
-
|
|
2160
|
+
IsOptional11(),
|
|
2368
2161
|
_ts_metadata35("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
2369
2162
|
], LikeCommentDto.prototype, "type", void 0);
|
|
2370
2163
|
|
|
@@ -2610,7 +2403,6 @@ export {
|
|
|
2610
2403
|
PostLikeResponseDto,
|
|
2611
2404
|
PostResponseDto,
|
|
2612
2405
|
PostResponseSelfDto,
|
|
2613
|
-
ProfessionalDataDto,
|
|
2614
2406
|
ProfessionalProfileResponseDto,
|
|
2615
2407
|
ReactionType,
|
|
2616
2408
|
ReorderDto,
|