@feresmeryas/microservices-common 1.5.20 → 1.5.21

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.mjs CHANGED
@@ -4,8 +4,41 @@ 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 } from "@nestjs/swagger";
8
- import { IsEmail, IsNotEmpty, MaxLength, MinLength } from "class-validator";
7
+ import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
8
+ import { IsEmail, IsNotEmpty, MaxLength, MinLength, IsEnum, IsOptional, IsString, IsUrl, IsInt, Min, ValidateIf } from "class-validator";
9
+
10
+ // enums/user-type.enum.ts
11
+ var UserType = /* @__PURE__ */ (function(UserType2) {
12
+ UserType2["DEFAULT"] = "DEFAULT";
13
+ UserType2["PROFESSIONAL"] = "PROFESSIONAL";
14
+ return UserType2;
15
+ })({});
16
+
17
+ // enums/business-sector.enum.ts
18
+ var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
19
+ BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
20
+ BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
21
+ BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
22
+ BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
23
+ BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
24
+ BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
25
+ BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
26
+ BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
27
+ BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
28
+ BusinessSector2["LEGAL"] = "Legal Services";
29
+ BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
30
+ BusinessSector2["CONSULTING"] = "Business Consulting";
31
+ BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
32
+ BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
33
+ BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
34
+ BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
35
+ BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
36
+ BusinessSector2["REAL_ESTATE"] = "Real Estate";
37
+ BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
38
+ return BusinessSector2;
39
+ })({});
40
+
41
+ // dto/users/create_user.dto.ts
9
42
  function _ts_decorate(decorators, target, key, desc) {
10
43
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
11
44
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -23,6 +56,15 @@ var _CreateUserDto = class _CreateUserDto {
23
56
  __publicField(this, "fullName");
24
57
  __publicField(this, "password");
25
58
  __publicField(this, "confirmPassword");
59
+ __publicField(this, "userType");
60
+ // Professional fields - required only when userType is PROFESSIONAL
61
+ __publicField(this, "businessSector");
62
+ __publicField(this, "bio");
63
+ __publicField(this, "companyName");
64
+ __publicField(this, "website");
65
+ __publicField(this, "phone");
66
+ __publicField(this, "location");
67
+ __publicField(this, "yearsOfExperience");
26
68
  }
27
69
  };
28
70
  __name(_CreateUserDto, "CreateUserDto");
@@ -63,10 +105,90 @@ _ts_decorate([
63
105
  MinLength(6),
64
106
  _ts_metadata("design:type", String)
65
107
  ], CreateUserDto.prototype, "confirmPassword", void 0);
108
+ _ts_decorate([
109
+ ApiProperty({
110
+ enum: UserType,
111
+ example: UserType.DEFAULT,
112
+ description: "The type of user account",
113
+ default: UserType.DEFAULT
114
+ }),
115
+ IsEnum(UserType),
116
+ IsNotEmpty(),
117
+ _ts_metadata("design:type", typeof UserType === "undefined" ? Object : UserType)
118
+ ], CreateUserDto.prototype, "userType", void 0);
119
+ _ts_decorate([
120
+ ApiPropertyOptional({
121
+ enum: BusinessSector,
122
+ example: BusinessSector.IT_SOFTWARE,
123
+ description: "Business sector (required for professional accounts)"
124
+ }),
125
+ ValidateIf((o) => o.userType === UserType.PROFESSIONAL),
126
+ IsEnum(BusinessSector),
127
+ IsNotEmpty(),
128
+ _ts_metadata("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
129
+ ], CreateUserDto.prototype, "businessSector", void 0);
130
+ _ts_decorate([
131
+ ApiPropertyOptional({
132
+ example: "Experienced software developer specializing in web applications",
133
+ description: "Professional bio"
134
+ }),
135
+ IsOptional(),
136
+ IsString(),
137
+ MaxLength(1e3),
138
+ _ts_metadata("design:type", String)
139
+ ], CreateUserDto.prototype, "bio", void 0);
140
+ _ts_decorate([
141
+ ApiPropertyOptional({
142
+ example: "Tech Solutions Inc.",
143
+ description: "Company name"
144
+ }),
145
+ IsOptional(),
146
+ IsString(),
147
+ MaxLength(200),
148
+ _ts_metadata("design:type", String)
149
+ ], CreateUserDto.prototype, "companyName", void 0);
150
+ _ts_decorate([
151
+ ApiPropertyOptional({
152
+ example: "https://www.example.com",
153
+ description: "Professional website URL"
154
+ }),
155
+ IsOptional(),
156
+ IsUrl(),
157
+ _ts_metadata("design:type", String)
158
+ ], CreateUserDto.prototype, "website", void 0);
159
+ _ts_decorate([
160
+ ApiPropertyOptional({
161
+ example: "+1234567890",
162
+ description: "Contact phone number"
163
+ }),
164
+ IsOptional(),
165
+ IsString(),
166
+ _ts_metadata("design:type", String)
167
+ ], CreateUserDto.prototype, "phone", void 0);
168
+ _ts_decorate([
169
+ ApiPropertyOptional({
170
+ example: "New York, USA",
171
+ description: "Location/City"
172
+ }),
173
+ IsOptional(),
174
+ IsString(),
175
+ MaxLength(200),
176
+ _ts_metadata("design:type", String)
177
+ ], CreateUserDto.prototype, "location", void 0);
178
+ _ts_decorate([
179
+ ApiPropertyOptional({
180
+ example: 5,
181
+ description: "Years of professional experience"
182
+ }),
183
+ IsOptional(),
184
+ IsInt(),
185
+ Min(0),
186
+ _ts_metadata("design:type", Number)
187
+ ], CreateUserDto.prototype, "yearsOfExperience", void 0);
66
188
 
67
189
  // dto/users/create_user_firebase.dto.ts
68
190
  import { ApiProperty as ApiProperty2 } from "@nestjs/swagger";
69
- import { IsString } from "class-validator";
191
+ import { IsString as IsString2 } from "class-validator";
70
192
  function _ts_decorate2(decorators, target, key, desc) {
71
193
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
72
194
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -90,7 +212,7 @@ _ts_decorate2([
90
212
  example: "a6iOa3JR1tQd4BbcYQOlIQKai4B3",
91
213
  description: "The firebase Id of the user"
92
214
  }),
93
- IsString(),
215
+ IsString2(),
94
216
  _ts_metadata2("design:type", String)
95
217
  ], CreateUserFireBaseDto.prototype, "fireBaseUserId", void 0);
96
218
 
@@ -120,7 +242,7 @@ _ts_decorate3([
120
242
  ], EmailParamDto.prototype, "email", void 0);
121
243
 
122
244
  // dto/users/find-all-users.dto.ts
123
- import { IsOptional, IsInt, Min } from "class-validator";
245
+ import { IsOptional as IsOptional2, IsInt as IsInt2, Min as Min2 } from "class-validator";
124
246
  import { Type } from "class-transformer";
125
247
  function _ts_decorate4(decorators, target, key, desc) {
126
248
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -142,22 +264,22 @@ var _FindAllUsersDto = class _FindAllUsersDto {
142
264
  __name(_FindAllUsersDto, "FindAllUsersDto");
143
265
  var FindAllUsersDto = _FindAllUsersDto;
144
266
  _ts_decorate4([
145
- IsOptional(),
267
+ IsOptional2(),
146
268
  Type(() => Number),
147
- IsInt(),
148
- Min(1),
269
+ IsInt2(),
270
+ Min2(1),
149
271
  _ts_metadata4("design:type", Number)
150
272
  ], FindAllUsersDto.prototype, "page", void 0);
151
273
  _ts_decorate4([
152
- IsOptional(),
274
+ IsOptional2(),
153
275
  Type(() => Number),
154
- IsInt(),
155
- Min(1),
276
+ IsInt2(),
277
+ Min2(1),
156
278
  _ts_metadata4("design:type", Number)
157
279
  ], FindAllUsersDto.prototype, "limit", void 0);
158
280
 
159
281
  // dto/users/find-by-role.dto.ts
160
- import { IsString as IsString2 } from "class-validator";
282
+ import { IsString as IsString3 } from "class-validator";
161
283
  function _ts_decorate5(decorators, target, key, desc) {
162
284
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
163
285
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -177,7 +299,7 @@ var _FindByRoleDto = class _FindByRoleDto {
177
299
  __name(_FindByRoleDto, "FindByRoleDto");
178
300
  var FindByRoleDto = _FindByRoleDto;
179
301
  _ts_decorate5([
180
- IsString2(),
302
+ IsString3(),
181
303
  _ts_metadata5("design:type", String)
182
304
  ], FindByRoleDto.prototype, "roleName", void 0);
183
305
 
@@ -258,7 +380,7 @@ _ts_decorate7([
258
380
  ], LoginLocalDTO.prototype, "password", void 0);
259
381
 
260
382
  // dto/users/reset_password.dto.ts
261
- import { IsString as IsString3, MinLength as MinLength3 } from "class-validator";
383
+ import { IsString as IsString4, MinLength as MinLength3 } from "class-validator";
262
384
  function _ts_decorate8(decorators, target, key, desc) {
263
385
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
264
386
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -278,14 +400,14 @@ var _ResetPasswordDto = class _ResetPasswordDto {
278
400
  __name(_ResetPasswordDto, "ResetPasswordDto");
279
401
  var ResetPasswordDto = _ResetPasswordDto;
280
402
  _ts_decorate8([
281
- IsString3(),
403
+ IsString4(),
282
404
  MinLength3(8),
283
405
  _ts_metadata8("design:type", String)
284
406
  ], ResetPasswordDto.prototype, "password", void 0);
285
407
 
286
408
  // dto/users/update-user.dto.ts
287
- import { IsString as IsString4, IsOptional as IsOptional2, MinLength as MinLength4, MaxLength as MaxLength3 } from "class-validator";
288
- import { ApiPropertyOptional } from "@nestjs/swagger";
409
+ import { IsString as IsString5, IsOptional as IsOptional3, MinLength as MinLength4, MaxLength as MaxLength3 } from "class-validator";
410
+ import { ApiPropertyOptional as ApiPropertyOptional2 } from "@nestjs/swagger";
289
411
  function _ts_decorate9(decorators, target, key, desc) {
290
412
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
291
413
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -305,14 +427,14 @@ var _UpdateUserDto = class _UpdateUserDto {
305
427
  __name(_UpdateUserDto, "UpdateUserDto");
306
428
  var UpdateUserDto = _UpdateUserDto;
307
429
  _ts_decorate9([
308
- ApiPropertyOptional({
430
+ ApiPropertyOptional2({
309
431
  description: "User full name",
310
432
  example: "John Doe",
311
433
  minLength: 2,
312
434
  maxLength: 100
313
435
  }),
314
- IsOptional2(),
315
- IsString4(),
436
+ IsOptional3(),
437
+ IsString5(),
316
438
  MinLength4(2),
317
439
  MaxLength3(100),
318
440
  _ts_metadata9("design:type", String)
@@ -320,7 +442,7 @@ _ts_decorate9([
320
442
 
321
443
  // dto/users/update_password.dto.ts
322
444
  import { ApiProperty as ApiProperty4 } from "@nestjs/swagger";
323
- import { IsString as IsString5, MaxLength as MaxLength4, MinLength as MinLength5 } from "class-validator";
445
+ import { IsString as IsString6, MaxLength as MaxLength4, MinLength as MinLength5 } from "class-validator";
324
446
  function _ts_decorate10(decorators, target, key, desc) {
325
447
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
326
448
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -347,7 +469,7 @@ _ts_decorate10([
347
469
  example: "3db4c508798e8d7c9b5652c50fb246cab4b9a26baf9997adb1180ba3189f7601",
348
470
  description: "token sent in the email of the user"
349
471
  }),
350
- IsString5(),
472
+ IsString6(),
351
473
  MinLength5(10),
352
474
  MaxLength4(200),
353
475
  _ts_metadata10("design:type", String)
@@ -357,7 +479,7 @@ _ts_decorate10([
357
479
  example: "strongpassword",
358
480
  description: "The old password of the user"
359
481
  }),
360
- IsString5(),
482
+ IsString6(),
361
483
  MinLength5(8),
362
484
  MaxLength4(50),
363
485
  _ts_metadata10("design:type", String)
@@ -367,7 +489,7 @@ _ts_decorate10([
367
489
  example: "strongpassword",
368
490
  description: "The new password of the user"
369
491
  }),
370
- IsString5(),
492
+ IsString6(),
371
493
  MinLength5(8),
372
494
  MaxLength4(50),
373
495
  _ts_metadata10("design:type", String)
@@ -377,40 +499,199 @@ _ts_decorate10([
377
499
  example: "strongpassword",
378
500
  description: "The confirmation of the new password"
379
501
  }),
380
- IsString5(),
502
+ IsString6(),
381
503
  MinLength5(8),
382
504
  MaxLength4(50),
383
505
  _ts_metadata10("design:type", String)
384
506
  ], UpdatePasswordDto.prototype, "confirmNewPassword", void 0);
385
507
 
386
508
  // dto/users/user_response.dto.ts
509
+ import { ApiProperty as ApiProperty5, ApiPropertyOptional as ApiPropertyOptional3 } from "@nestjs/swagger";
510
+ function _ts_decorate11(decorators, target, key, desc) {
511
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
512
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
513
+ 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;
514
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
515
+ }
516
+ __name(_ts_decorate11, "_ts_decorate");
517
+ function _ts_metadata11(k, v) {
518
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
519
+ }
520
+ __name(_ts_metadata11, "_ts_metadata");
387
521
  var _UserResponseDto = class _UserResponseDto {
388
522
  constructor() {
389
523
  __publicField(this, "id");
524
+ __publicField(this, "email");
390
525
  __publicField(this, "fullName");
391
526
  __publicField(this, "profilePictureUrl");
392
- __publicField(this, "email");
527
+ __publicField(this, "userType");
393
528
  __publicField(this, "createdAt");
394
529
  __publicField(this, "updatedAt");
395
530
  __publicField(this, "role");
531
+ __publicField(this, "professionalProfile");
396
532
  }
397
533
  };
398
534
  __name(_UserResponseDto, "UserResponseDto");
399
535
  var UserResponseDto = _UserResponseDto;
536
+ _ts_decorate11([
537
+ ApiProperty5({
538
+ example: "uuid-string"
539
+ }),
540
+ _ts_metadata11("design:type", String)
541
+ ], UserResponseDto.prototype, "id", void 0);
542
+ _ts_decorate11([
543
+ ApiProperty5({
544
+ example: "user@example.com"
545
+ }),
546
+ _ts_metadata11("design:type", String)
547
+ ], UserResponseDto.prototype, "email", void 0);
548
+ _ts_decorate11([
549
+ ApiProperty5({
550
+ example: "John Doe"
551
+ }),
552
+ _ts_metadata11("design:type", String)
553
+ ], UserResponseDto.prototype, "fullName", void 0);
554
+ _ts_decorate11([
555
+ ApiPropertyOptional3({
556
+ example: "https://example.com/profile.jpg"
557
+ }),
558
+ _ts_metadata11("design:type", Object)
559
+ ], UserResponseDto.prototype, "profilePictureUrl", void 0);
560
+ _ts_decorate11([
561
+ ApiProperty5({
562
+ enum: UserType,
563
+ example: UserType.DEFAULT
564
+ }),
565
+ _ts_metadata11("design:type", typeof UserType === "undefined" ? Object : UserType)
566
+ ], UserResponseDto.prototype, "userType", void 0);
567
+ _ts_decorate11([
568
+ ApiProperty5(),
569
+ _ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
570
+ ], UserResponseDto.prototype, "createdAt", void 0);
571
+ _ts_decorate11([
572
+ ApiProperty5(),
573
+ _ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
574
+ ], UserResponseDto.prototype, "updatedAt", void 0);
575
+ _ts_decorate11([
576
+ ApiProperty5({
577
+ example: {
578
+ name: "DEFAULT"
579
+ }
580
+ }),
581
+ _ts_metadata11("design:type", Object)
582
+ ], UserResponseDto.prototype, "role", void 0);
583
+ _ts_decorate11([
584
+ ApiPropertyOptional3(),
585
+ _ts_metadata11("design:type", typeof ProfessionalProfileResponseDto === "undefined" ? Object : ProfessionalProfileResponseDto)
586
+ ], UserResponseDto.prototype, "professionalProfile", void 0);
587
+ var _ProfessionalProfileResponseDto = class _ProfessionalProfileResponseDto {
588
+ constructor() {
589
+ __publicField(this, "id");
590
+ __publicField(this, "businessSector");
591
+ __publicField(this, "bio");
592
+ __publicField(this, "companyName");
593
+ __publicField(this, "website");
594
+ __publicField(this, "phone");
595
+ __publicField(this, "location");
596
+ __publicField(this, "yearsOfExperience");
597
+ __publicField(this, "isVerified");
598
+ __publicField(this, "hourlyRate");
599
+ __publicField(this, "availabilityStatus");
600
+ __publicField(this, "createdAt");
601
+ __publicField(this, "updatedAt");
602
+ }
603
+ };
604
+ __name(_ProfessionalProfileResponseDto, "ProfessionalProfileResponseDto");
605
+ var ProfessionalProfileResponseDto = _ProfessionalProfileResponseDto;
606
+ _ts_decorate11([
607
+ ApiProperty5({
608
+ example: "uuid-string"
609
+ }),
610
+ _ts_metadata11("design:type", String)
611
+ ], ProfessionalProfileResponseDto.prototype, "id", void 0);
612
+ _ts_decorate11([
613
+ ApiProperty5({
614
+ enum: BusinessSector,
615
+ example: BusinessSector.IT_SOFTWARE
616
+ }),
617
+ _ts_metadata11("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
618
+ ], ProfessionalProfileResponseDto.prototype, "businessSector", void 0);
619
+ _ts_decorate11([
620
+ ApiPropertyOptional3({
621
+ example: "Experienced developer..."
622
+ }),
623
+ _ts_metadata11("design:type", Object)
624
+ ], ProfessionalProfileResponseDto.prototype, "bio", void 0);
625
+ _ts_decorate11([
626
+ ApiPropertyOptional3({
627
+ example: "Tech Solutions Inc."
628
+ }),
629
+ _ts_metadata11("design:type", Object)
630
+ ], ProfessionalProfileResponseDto.prototype, "companyName", void 0);
631
+ _ts_decorate11([
632
+ ApiPropertyOptional3({
633
+ example: "https://www.example.com"
634
+ }),
635
+ _ts_metadata11("design:type", Object)
636
+ ], ProfessionalProfileResponseDto.prototype, "website", void 0);
637
+ _ts_decorate11([
638
+ ApiPropertyOptional3({
639
+ example: "+1234567890"
640
+ }),
641
+ _ts_metadata11("design:type", Object)
642
+ ], ProfessionalProfileResponseDto.prototype, "phone", void 0);
643
+ _ts_decorate11([
644
+ ApiPropertyOptional3({
645
+ example: "New York, USA"
646
+ }),
647
+ _ts_metadata11("design:type", Object)
648
+ ], ProfessionalProfileResponseDto.prototype, "location", void 0);
649
+ _ts_decorate11([
650
+ ApiPropertyOptional3({
651
+ example: 5
652
+ }),
653
+ _ts_metadata11("design:type", Object)
654
+ ], ProfessionalProfileResponseDto.prototype, "yearsOfExperience", void 0);
655
+ _ts_decorate11([
656
+ ApiProperty5({
657
+ example: false
658
+ }),
659
+ _ts_metadata11("design:type", Boolean)
660
+ ], ProfessionalProfileResponseDto.prototype, "isVerified", void 0);
661
+ _ts_decorate11([
662
+ ApiPropertyOptional3({
663
+ example: 75.5
664
+ }),
665
+ _ts_metadata11("design:type", Object)
666
+ ], ProfessionalProfileResponseDto.prototype, "hourlyRate", void 0);
667
+ _ts_decorate11([
668
+ ApiProperty5({
669
+ example: "available"
670
+ }),
671
+ _ts_metadata11("design:type", String)
672
+ ], ProfessionalProfileResponseDto.prototype, "availabilityStatus", void 0);
673
+ _ts_decorate11([
674
+ ApiProperty5(),
675
+ _ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
676
+ ], ProfessionalProfileResponseDto.prototype, "createdAt", void 0);
677
+ _ts_decorate11([
678
+ ApiProperty5(),
679
+ _ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
680
+ ], ProfessionalProfileResponseDto.prototype, "updatedAt", void 0);
400
681
 
401
682
  // dto/users/search_users_by_full_name.dto.ts
402
- import { IsOptional as IsOptional3, IsString as IsString6 } from "class-validator";
403
- function _ts_decorate11(decorators, target, key, desc) {
683
+ import { IsOptional as IsOptional4, IsString as IsString7 } from "class-validator";
684
+ function _ts_decorate12(decorators, target, key, desc) {
404
685
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
405
686
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
406
687
  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;
407
688
  return c > 3 && r && Object.defineProperty(target, key, r), r;
408
689
  }
409
- __name(_ts_decorate11, "_ts_decorate");
410
- function _ts_metadata11(k, v) {
690
+ __name(_ts_decorate12, "_ts_decorate");
691
+ function _ts_metadata12(k, v) {
411
692
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
412
693
  }
413
- __name(_ts_metadata11, "_ts_metadata");
694
+ __name(_ts_metadata12, "_ts_metadata");
414
695
  var _SearchUsersByFullNameDTO = class _SearchUsersByFullNameDTO extends FindAllUsersDto {
415
696
  constructor() {
416
697
  super(...arguments);
@@ -419,25 +700,25 @@ var _SearchUsersByFullNameDTO = class _SearchUsersByFullNameDTO extends FindAllU
419
700
  };
420
701
  __name(_SearchUsersByFullNameDTO, "SearchUsersByFullNameDTO");
421
702
  var SearchUsersByFullNameDTO = _SearchUsersByFullNameDTO;
422
- _ts_decorate11([
423
- IsString6(),
424
- IsOptional3(),
425
- _ts_metadata11("design:type", String)
703
+ _ts_decorate12([
704
+ IsString7(),
705
+ IsOptional4(),
706
+ _ts_metadata12("design:type", String)
426
707
  ], SearchUsersByFullNameDTO.prototype, "fullName", void 0);
427
708
 
428
709
  // dto/storage/delete-file.dto.ts
429
- import { IsString as IsString7, IsNotEmpty as IsNotEmpty4 } from "class-validator";
430
- function _ts_decorate12(decorators, target, key, desc) {
710
+ import { IsString as IsString8, IsNotEmpty as IsNotEmpty4 } from "class-validator";
711
+ function _ts_decorate13(decorators, target, key, desc) {
431
712
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
432
713
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
433
714
  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;
434
715
  return c > 3 && r && Object.defineProperty(target, key, r), r;
435
716
  }
436
- __name(_ts_decorate12, "_ts_decorate");
437
- function _ts_metadata12(k, v) {
717
+ __name(_ts_decorate13, "_ts_decorate");
718
+ function _ts_metadata13(k, v) {
438
719
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
439
720
  }
440
- __name(_ts_metadata12, "_ts_metadata");
721
+ __name(_ts_metadata13, "_ts_metadata");
441
722
  var _DeleteFileDto = class _DeleteFileDto {
442
723
  constructor() {
443
724
  __publicField(this, "fileUrl");
@@ -445,10 +726,10 @@ var _DeleteFileDto = class _DeleteFileDto {
445
726
  };
446
727
  __name(_DeleteFileDto, "DeleteFileDto");
447
728
  var DeleteFileDto = _DeleteFileDto;
448
- _ts_decorate12([
449
- IsString7(),
729
+ _ts_decorate13([
730
+ IsString8(),
450
731
  IsNotEmpty4(),
451
- _ts_metadata12("design:type", String)
732
+ _ts_metadata13("design:type", String)
452
733
  ], DeleteFileDto.prototype, "fileUrl", void 0);
453
734
 
454
735
  // dto/storage/file-response.dto.ts
@@ -465,18 +746,18 @@ __name(_FileResponseDto, "FileResponseDto");
465
746
  var FileResponseDto = _FileResponseDto;
466
747
 
467
748
  // dto/storage/upload-file.dto.ts
468
- import { IsString as IsString8, IsNotEmpty as IsNotEmpty5, IsEnum, IsOptional as IsOptional4 } from "class-validator";
469
- function _ts_decorate13(decorators, target, key, desc) {
749
+ import { IsString as IsString9, IsNotEmpty as IsNotEmpty5, IsEnum as IsEnum2, IsOptional as IsOptional5 } from "class-validator";
750
+ function _ts_decorate14(decorators, target, key, desc) {
470
751
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
471
752
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
472
753
  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;
473
754
  return c > 3 && r && Object.defineProperty(target, key, r), r;
474
755
  }
475
- __name(_ts_decorate13, "_ts_decorate");
476
- function _ts_metadata13(k, v) {
756
+ __name(_ts_decorate14, "_ts_decorate");
757
+ function _ts_metadata14(k, v) {
477
758
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
478
759
  }
479
- __name(_ts_metadata13, "_ts_metadata");
760
+ __name(_ts_metadata14, "_ts_metadata");
480
761
  var FileCategory = /* @__PURE__ */ (function(FileCategory2) {
481
762
  FileCategory2["PROFILE_PICTURES"] = "profile-pictures";
482
763
  FileCategory2["POST_IMAGES"] = "post-images";
@@ -498,24 +779,24 @@ var _UploadFileDto = class _UploadFileDto {
498
779
  };
499
780
  __name(_UploadFileDto, "UploadFileDto");
500
781
  var UploadFileDto = _UploadFileDto;
501
- _ts_decorate13([
502
- IsString8(),
782
+ _ts_decorate14([
783
+ IsString9(),
503
784
  IsNotEmpty5(),
504
- _ts_metadata13("design:type", String)
785
+ _ts_metadata14("design:type", String)
505
786
  ], UploadFileDto.prototype, "userId", void 0);
506
- _ts_decorate13([
507
- IsEnum(FileCategory),
508
- _ts_metadata13("design:type", String)
787
+ _ts_decorate14([
788
+ IsEnum2(FileCategory),
789
+ _ts_metadata14("design:type", String)
509
790
  ], UploadFileDto.prototype, "category", void 0);
510
- _ts_decorate13([
511
- IsString8(),
791
+ _ts_decorate14([
792
+ IsString9(),
512
793
  IsNotEmpty5(),
513
- _ts_metadata13("design:type", String)
794
+ _ts_metadata14("design:type", String)
514
795
  ], UploadFileDto.prototype, "fileName", void 0);
515
- _ts_decorate13([
516
- IsString8(),
517
- IsOptional4(),
518
- _ts_metadata13("design:type", String)
796
+ _ts_decorate14([
797
+ IsString9(),
798
+ IsOptional5(),
799
+ _ts_metadata14("design:type", String)
519
800
  ], UploadFileDto.prototype, "mimeType", void 0);
520
801
 
521
802
  // dto/shared/reaction_type.enum.ts
@@ -529,23 +810,23 @@ var ReactionType = /* @__PURE__ */ (function(ReactionType2) {
529
810
  })({});
530
811
 
531
812
  // dto/posts/create_post.dto.ts
532
- import { ApiProperty as ApiProperty6 } from "@nestjs/swagger";
533
- import { IsArray, IsEnum as IsEnum2, IsNotEmpty as IsNotEmpty7, IsOptional as IsOptional6, IsString as IsString10, MaxLength as MaxLength5, MinLength as MinLength6, ValidateNested } from "class-validator";
813
+ import { ApiProperty as ApiProperty7 } from "@nestjs/swagger";
814
+ import { IsArray, IsEnum as IsEnum3, IsNotEmpty as IsNotEmpty7, IsOptional as IsOptional7, IsString as IsString11, MaxLength as MaxLength5, MinLength as MinLength6, ValidateNested } from "class-validator";
534
815
 
535
816
  // dto/posts/create_post._file.dto.ts
536
- import { IsString as IsString9, IsNotEmpty as IsNotEmpty6, IsOptional as IsOptional5 } from "class-validator";
537
- import { ApiProperty as ApiProperty5 } from "@nestjs/swagger";
538
- function _ts_decorate14(decorators, target, key, desc) {
817
+ import { IsString as IsString10, IsNotEmpty as IsNotEmpty6, IsOptional as IsOptional6 } from "class-validator";
818
+ import { ApiProperty as ApiProperty6 } from "@nestjs/swagger";
819
+ function _ts_decorate15(decorators, target, key, desc) {
539
820
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
540
821
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
541
822
  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;
542
823
  return c > 3 && r && Object.defineProperty(target, key, r), r;
543
824
  }
544
- __name(_ts_decorate14, "_ts_decorate");
545
- function _ts_metadata14(k, v) {
825
+ __name(_ts_decorate15, "_ts_decorate");
826
+ function _ts_metadata15(k, v) {
546
827
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
547
828
  }
548
- __name(_ts_metadata14, "_ts_metadata");
829
+ __name(_ts_metadata15, "_ts_metadata");
549
830
  var _CreatePostFileDto = class _CreatePostFileDto {
550
831
  constructor() {
551
832
  __publicField(this, "fileBuffer");
@@ -556,36 +837,36 @@ var _CreatePostFileDto = class _CreatePostFileDto {
556
837
  };
557
838
  __name(_CreatePostFileDto, "CreatePostFileDto");
558
839
  var CreatePostFileDto = _CreatePostFileDto;
559
- _ts_decorate14([
560
- ApiProperty5({
840
+ _ts_decorate15([
841
+ ApiProperty6({
561
842
  description: "Base64 encoded file",
562
843
  example: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
563
844
  }),
564
- IsString9(),
845
+ IsString10(),
565
846
  IsNotEmpty6(),
566
- _ts_metadata14("design:type", String)
847
+ _ts_metadata15("design:type", String)
567
848
  ], CreatePostFileDto.prototype, "fileBuffer", void 0);
568
- _ts_decorate14([
569
- ApiProperty5({
849
+ _ts_decorate15([
850
+ ApiProperty6({
570
851
  description: "File name",
571
852
  example: "vacation-photo.jpg"
572
853
  }),
573
- IsString9(),
854
+ IsString10(),
574
855
  IsNotEmpty6(),
575
- _ts_metadata14("design:type", String)
856
+ _ts_metadata15("design:type", String)
576
857
  ], CreatePostFileDto.prototype, "fileName", void 0);
577
- _ts_decorate14([
578
- ApiProperty5({
858
+ _ts_decorate15([
859
+ ApiProperty6({
579
860
  description: "MIME type",
580
861
  example: "image/jpeg",
581
862
  required: false
582
863
  }),
583
- IsString9(),
584
- IsOptional5(),
585
- _ts_metadata14("design:type", String)
864
+ IsString10(),
865
+ IsOptional6(),
866
+ _ts_metadata15("design:type", String)
586
867
  ], CreatePostFileDto.prototype, "mimeType", void 0);
587
- _ts_decorate14([
588
- ApiProperty5({
868
+ _ts_decorate15([
869
+ ApiProperty6({
589
870
  description: "File type",
590
871
  example: "image",
591
872
  enum: [
@@ -593,50 +874,24 @@ _ts_decorate14([
593
874
  "video"
594
875
  ]
595
876
  }),
596
- IsString9(),
877
+ IsString10(),
597
878
  IsNotEmpty6(),
598
- _ts_metadata14("design:type", String)
879
+ _ts_metadata15("design:type", String)
599
880
  ], CreatePostFileDto.prototype, "fileType", void 0);
600
881
 
601
882
  // dto/posts/create_post.dto.ts
602
883
  import { Type as Type2 } from "class-transformer";
603
-
604
- // enums/business-sector.enum.ts
605
- var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
606
- BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
607
- BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
608
- BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
609
- BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
610
- BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
611
- BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
612
- BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
613
- BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
614
- BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
615
- BusinessSector2["LEGAL"] = "Legal Services";
616
- BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
617
- BusinessSector2["CONSULTING"] = "Business Consulting";
618
- BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
619
- BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
620
- BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
621
- BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
622
- BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
623
- BusinessSector2["REAL_ESTATE"] = "Real Estate";
624
- BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
625
- return BusinessSector2;
626
- })({});
627
-
628
- // dto/posts/create_post.dto.ts
629
- function _ts_decorate15(decorators, target, key, desc) {
884
+ function _ts_decorate16(decorators, target, key, desc) {
630
885
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
631
886
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
632
887
  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;
633
888
  return c > 3 && r && Object.defineProperty(target, key, r), r;
634
889
  }
635
- __name(_ts_decorate15, "_ts_decorate");
636
- function _ts_metadata15(k, v) {
890
+ __name(_ts_decorate16, "_ts_decorate");
891
+ function _ts_metadata16(k, v) {
637
892
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
638
893
  }
639
- __name(_ts_metadata15, "_ts_metadata");
894
+ __name(_ts_metadata16, "_ts_metadata");
640
895
  var _CreatePostDto = class _CreatePostDto {
641
896
  constructor() {
642
897
  __publicField(this, "description");
@@ -646,31 +901,32 @@ var _CreatePostDto = class _CreatePostDto {
646
901
  };
647
902
  __name(_CreatePostDto, "CreatePostDto");
648
903
  var CreatePostDto = _CreatePostDto;
649
- _ts_decorate15([
650
- ApiProperty6({
904
+ _ts_decorate16([
905
+ ApiProperty7({
651
906
  description: "Post description/content",
652
907
  example: "Check out this amazing view!",
653
908
  minLength: 1,
654
909
  maxLength: 5e3
655
910
  }),
656
- IsString10(),
911
+ IsString11(),
657
912
  IsNotEmpty7(),
658
913
  MinLength6(1),
659
914
  MaxLength5(5e3),
660
- _ts_metadata15("design:type", String)
915
+ _ts_metadata16("design:type", String)
661
916
  ], CreatePostDto.prototype, "description", void 0);
662
- _ts_decorate15([
663
- ApiProperty6({
917
+ _ts_decorate16([
918
+ ApiProperty7({
664
919
  description: "The business sector for the post",
665
920
  enum: BusinessSector,
666
921
  required: true,
667
922
  default: BusinessSector.CONSULTING
668
923
  }),
669
- IsEnum2(BusinessSector),
670
- _ts_metadata15("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
924
+ IsEnum3(BusinessSector),
925
+ IsOptional7(),
926
+ _ts_metadata16("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
671
927
  ], CreatePostDto.prototype, "sector", void 0);
672
- _ts_decorate15([
673
- ApiProperty6({
928
+ _ts_decorate16([
929
+ ApiProperty7({
674
930
  description: "Array of files to upload with the post",
675
931
  type: [
676
932
  CreatePostFileDto
@@ -682,26 +938,26 @@ _ts_decorate15([
682
938
  each: true
683
939
  }),
684
940
  Type2(() => CreatePostFileDto),
685
- IsOptional6(),
686
- _ts_metadata15("design:type", Array)
941
+ IsOptional7(),
942
+ _ts_metadata16("design:type", Array)
687
943
  ], CreatePostDto.prototype, "files", void 0);
688
944
 
689
945
  // dto/posts/post_response.dto.ts
690
946
  import { ApiProperty as ApiProperty9 } from "@nestjs/swagger";
691
947
 
692
948
  // dto/posts/post_file.dto.ts
693
- import { ApiProperty as ApiProperty7 } from "@nestjs/swagger";
694
- function _ts_decorate16(decorators, target, key, desc) {
949
+ import { ApiProperty as ApiProperty8 } from "@nestjs/swagger";
950
+ function _ts_decorate17(decorators, target, key, desc) {
695
951
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
696
952
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
697
953
  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;
698
954
  return c > 3 && r && Object.defineProperty(target, key, r), r;
699
955
  }
700
- __name(_ts_decorate16, "_ts_decorate");
701
- function _ts_metadata16(k, v) {
956
+ __name(_ts_decorate17, "_ts_decorate");
957
+ function _ts_metadata17(k, v) {
702
958
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
703
959
  }
704
- __name(_ts_metadata16, "_ts_metadata");
960
+ __name(_ts_metadata17, "_ts_metadata");
705
961
  var _PostFileDto = class _PostFileDto {
706
962
  constructor() {
707
963
  __publicField(this, "id");
@@ -714,94 +970,50 @@ var _PostFileDto = class _PostFileDto {
714
970
  };
715
971
  __name(_PostFileDto, "PostFileDto");
716
972
  var PostFileDto = _PostFileDto;
717
- _ts_decorate16([
718
- ApiProperty7({
973
+ _ts_decorate17([
974
+ ApiProperty8({
719
975
  example: "123e4567-e89b-12d3-a456-426614174000"
720
976
  }),
721
- _ts_metadata16("design:type", String)
977
+ _ts_metadata17("design:type", String)
722
978
  ], PostFileDto.prototype, "id", void 0);
723
- _ts_decorate16([
724
- ApiProperty7({
979
+ _ts_decorate17([
980
+ ApiProperty8({
725
981
  example: "https://storage.example.com/posts/image.jpg"
726
982
  }),
727
- _ts_metadata16("design:type", String)
983
+ _ts_metadata17("design:type", String)
728
984
  ], PostFileDto.prototype, "fileUrl", void 0);
729
- _ts_decorate16([
730
- ApiProperty7({
985
+ _ts_decorate17([
986
+ ApiProperty8({
731
987
  example: "image",
732
988
  enum: [
733
989
  "image",
734
990
  "video"
735
991
  ]
736
992
  }),
737
- _ts_metadata16("design:type", String)
993
+ _ts_metadata17("design:type", String)
738
994
  ], PostFileDto.prototype, "fileType", void 0);
739
- _ts_decorate16([
740
- ApiProperty7({
995
+ _ts_decorate17([
996
+ ApiProperty8({
741
997
  example: "image/jpeg",
742
998
  nullable: true
743
999
  }),
744
- _ts_metadata16("design:type", Object)
1000
+ _ts_metadata17("design:type", Object)
745
1001
  ], PostFileDto.prototype, "mimeType", void 0);
746
- _ts_decorate16([
747
- ApiProperty7({
748
- example: 0
749
- }),
750
- _ts_metadata16("design:type", Number)
751
- ], PostFileDto.prototype, "orderIndex", void 0);
752
- _ts_decorate16([
753
- ApiProperty7({
754
- example: "2024-01-15T10:30:00Z"
755
- }),
756
- _ts_metadata16("design:type", typeof Date === "undefined" ? Object : Date)
757
- ], PostFileDto.prototype, "createdAt", void 0);
758
-
759
- // dto/posts/post_response.dto.ts
760
- import { IsEnum as IsEnum3 } from "class-validator";
761
-
762
- // dto/tags/tag_response.dto.ts
763
- import { ApiProperty as ApiProperty8 } from "@nestjs/swagger";
764
- function _ts_decorate17(decorators, target, key, desc) {
765
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
766
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
767
- 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;
768
- return c > 3 && r && Object.defineProperty(target, key, r), r;
769
- }
770
- __name(_ts_decorate17, "_ts_decorate");
771
- function _ts_metadata17(k, v) {
772
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
773
- }
774
- __name(_ts_metadata17, "_ts_metadata");
775
- var _TagResponseDto = class _TagResponseDto {
776
- constructor() {
777
- __publicField(this, "name");
778
- __publicField(this, "slug");
779
- // Optional: Include id if you need it for specific actions
780
- __publicField(this, "id");
781
- }
782
- };
783
- __name(_TagResponseDto, "TagResponseDto");
784
- var TagResponseDto = _TagResponseDto;
785
1002
  _ts_decorate17([
786
1003
  ApiProperty8({
787
- example: "React JS"
788
- }),
789
- _ts_metadata17("design:type", String)
790
- ], TagResponseDto.prototype, "name", void 0);
791
- _ts_decorate17([
792
- ApiProperty8({
793
- example: "react-js"
1004
+ example: 0
794
1005
  }),
795
- _ts_metadata17("design:type", String)
796
- ], TagResponseDto.prototype, "slug", void 0);
1006
+ _ts_metadata17("design:type", Number)
1007
+ ], PostFileDto.prototype, "orderIndex", void 0);
797
1008
  _ts_decorate17([
798
1009
  ApiProperty8({
799
- example: "uuid-v4-string"
1010
+ example: "2024-01-15T10:30:00Z"
800
1011
  }),
801
- _ts_metadata17("design:type", String)
802
- ], TagResponseDto.prototype, "id", void 0);
1012
+ _ts_metadata17("design:type", typeof Date === "undefined" ? Object : Date)
1013
+ ], PostFileDto.prototype, "createdAt", void 0);
803
1014
 
804
1015
  // dto/posts/post_response.dto.ts
1016
+ import { IsEnum as IsEnum4 } from "class-validator";
805
1017
  function _ts_decorate18(decorators, target, key, desc) {
806
1018
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
807
1019
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -821,7 +1033,6 @@ var _PostResponseDto = class _PostResponseDto {
821
1033
  __publicField(this, "publisherFullName");
822
1034
  __publicField(this, "publisherProfilePictureUrl");
823
1035
  __publicField(this, "files");
824
- __publicField(this, "tags");
825
1036
  __publicField(this, "commentsCount");
826
1037
  __publicField(this, "sector");
827
1038
  __publicField(this, "likesCount");
@@ -870,15 +1081,6 @@ _ts_decorate18([
870
1081
  }),
871
1082
  _ts_metadata18("design:type", Array)
872
1083
  ], PostResponseDto.prototype, "files", void 0);
873
- _ts_decorate18([
874
- ApiProperty9({
875
- type: [
876
- TagResponseDto
877
- ],
878
- description: "List of tags associated with the post"
879
- }),
880
- _ts_metadata18("design:type", Array)
881
- ], PostResponseDto.prototype, "tags", void 0);
882
1084
  _ts_decorate18([
883
1085
  ApiProperty9({
884
1086
  example: 42
@@ -892,7 +1094,7 @@ _ts_decorate18([
892
1094
  required: false,
893
1095
  default: BusinessSector.CONSULTING
894
1096
  }),
895
- IsEnum3(BusinessSector),
1097
+ IsEnum4(BusinessSector),
896
1098
  _ts_metadata18("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
897
1099
  ], PostResponseDto.prototype, "sector", void 0);
898
1100
  _ts_decorate18([
@@ -966,7 +1168,7 @@ _ts_decorate19([
966
1168
 
967
1169
  // dto/posts/update_post.dto.ts
968
1170
  import { ApiProperty as ApiProperty11 } from "@nestjs/swagger";
969
- import { IsEnum as IsEnum4, IsNotEmpty as IsNotEmpty8, IsOptional as IsOptional7, IsString as IsString11, MaxLength as MaxLength6, MinLength as MinLength7 } from "class-validator";
1171
+ import { IsEnum as IsEnum5, IsNotEmpty as IsNotEmpty8, IsString as IsString12, MaxLength as MaxLength6, MinLength as MinLength7 } from "class-validator";
970
1172
  function _ts_decorate20(decorators, target, key, desc) {
971
1173
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
972
1174
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -994,20 +1196,20 @@ _ts_decorate20([
994
1196
  maxLength: 5e3,
995
1197
  required: false
996
1198
  }),
997
- IsString11(),
1199
+ IsString12(),
998
1200
  IsNotEmpty8(),
999
1201
  MinLength7(1),
1000
1202
  MaxLength6(5e3),
1001
- IsOptional7(),
1002
1203
  _ts_metadata20("design:type", String)
1003
1204
  ], UpdatePostDto.prototype, "description", void 0);
1004
1205
  _ts_decorate20([
1005
1206
  ApiProperty11({
1006
- description: "The Business sector type for the post",
1007
- enum: BusinessSector
1207
+ description: "The Bunsieess sector type for the post",
1208
+ enum: BusinessSector,
1209
+ required: true,
1210
+ default: BusinessSector.CONSULTING
1008
1211
  }),
1009
- IsOptional7(),
1010
- IsEnum4(BusinessSector),
1212
+ IsEnum5(BusinessSector),
1011
1213
  _ts_metadata20("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
1012
1214
  ], UpdatePostDto.prototype, "sector", void 0);
1013
1215
 
@@ -1109,7 +1311,7 @@ _ts_decorate22([
1109
1311
  ], PaginatedPostsSelfDto.prototype, "totalPages", void 0);
1110
1312
 
1111
1313
  // dto/posts/reorder_post_file.dto.ts
1112
- import { IsInt as IsInt2, Max, Min as Min2 } from "class-validator";
1314
+ import { IsInt as IsInt3, Max, Min as Min3 } from "class-validator";
1113
1315
  function _ts_decorate23(decorators, target, key, desc) {
1114
1316
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1115
1317
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1129,8 +1331,8 @@ var _ReorderDto = class _ReorderDto {
1129
1331
  __name(_ReorderDto, "ReorderDto");
1130
1332
  var ReorderDto = _ReorderDto;
1131
1333
  _ts_decorate23([
1132
- IsInt2(),
1133
- Min2(0),
1334
+ IsInt3(),
1335
+ Min3(0),
1134
1336
  Max(100),
1135
1337
  _ts_metadata23("design:type", Number)
1136
1338
  ], ReorderDto.prototype, "newIndex", void 0);
@@ -1208,7 +1410,7 @@ _ts_decorate24([
1208
1410
 
1209
1411
  // dto/posts/like_post.dto.ts
1210
1412
  import { ApiProperty as ApiProperty15 } from "@nestjs/swagger";
1211
- import { IsEnum as IsEnum5, IsOptional as IsOptional8 } from "class-validator";
1413
+ import { IsEnum as IsEnum6, IsOptional as IsOptional8 } from "class-validator";
1212
1414
  function _ts_decorate25(decorators, target, key, desc) {
1213
1415
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1214
1416
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1234,7 +1436,7 @@ _ts_decorate25([
1234
1436
  required: false,
1235
1437
  default: ReactionType.LIKE
1236
1438
  }),
1237
- IsEnum5(ReactionType),
1439
+ IsEnum6(ReactionType),
1238
1440
  IsOptional8(),
1239
1441
  _ts_metadata25("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
1240
1442
  ], LikePostDto.prototype, "type", void 0);
@@ -1291,7 +1493,7 @@ _ts_decorate26([
1291
1493
 
1292
1494
  // dto/comments/create_comment.dto.ts
1293
1495
  import { ApiProperty as ApiProperty17 } from "@nestjs/swagger";
1294
- import { IsNotEmpty as IsNotEmpty9, IsOptional as IsOptional9, IsString as IsString12, IsUUID, MaxLength as MaxLength7, MinLength as MinLength8 } from "class-validator";
1496
+ import { IsNotEmpty as IsNotEmpty9, IsOptional as IsOptional9, IsString as IsString13, IsUUID, MaxLength as MaxLength7, MinLength as MinLength8 } from "class-validator";
1295
1497
  function _ts_decorate27(decorators, target, key, desc) {
1296
1498
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1297
1499
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1328,7 +1530,7 @@ _ts_decorate27([
1328
1530
  minLength: 1,
1329
1531
  maxLength: 5e3
1330
1532
  }),
1331
- IsString12(),
1533
+ IsString13(),
1332
1534
  IsNotEmpty9(),
1333
1535
  MinLength8(1),
1334
1536
  MaxLength7(5e3),
@@ -1540,7 +1742,7 @@ _ts_decorate30([
1540
1742
 
1541
1743
  // dto/comments/update_comment.dto.ts
1542
1744
  import { ApiProperty as ApiProperty21 } from "@nestjs/swagger";
1543
- import { IsNotEmpty as IsNotEmpty10, IsString as IsString13, MaxLength as MaxLength8, MinLength as MinLength9 } from "class-validator";
1745
+ import { IsNotEmpty as IsNotEmpty10, IsString as IsString14, MaxLength as MaxLength8, MinLength as MinLength9 } from "class-validator";
1544
1746
  function _ts_decorate31(decorators, target, key, desc) {
1545
1747
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1546
1748
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1566,7 +1768,7 @@ _ts_decorate31([
1566
1768
  minLength: 1,
1567
1769
  maxLength: 5e3
1568
1770
  }),
1569
- IsString13(),
1771
+ IsString14(),
1570
1772
  IsNotEmpty10(),
1571
1773
  MinLength9(1),
1572
1774
  MaxLength8(5e3),
@@ -1596,7 +1798,7 @@ var CommentFields = _CommentFields;
1596
1798
 
1597
1799
  // dto/comments/like_comment.dto.ts
1598
1800
  import { ApiProperty as ApiProperty22 } from "@nestjs/swagger";
1599
- import { IsEnum as IsEnum6, IsOptional as IsOptional10 } from "class-validator";
1801
+ import { IsEnum as IsEnum7, IsOptional as IsOptional10 } from "class-validator";
1600
1802
  function _ts_decorate32(decorators, target, key, desc) {
1601
1803
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1602
1804
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1622,7 +1824,7 @@ _ts_decorate32([
1622
1824
  required: false,
1623
1825
  default: ReactionType.LIKE
1624
1826
  }),
1625
- IsEnum6(ReactionType),
1827
+ IsEnum7(ReactionType),
1626
1828
  IsOptional10(),
1627
1829
  _ts_metadata32("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
1628
1830
  ], LikeCommentDto.prototype, "type", void 0);
@@ -1785,6 +1987,7 @@ export {
1785
1987
  PostLikeResponseDto,
1786
1988
  PostResponseDto,
1787
1989
  PostResponseSelfDto,
1990
+ ProfessionalProfileResponseDto,
1788
1991
  ReactionType,
1789
1992
  ReorderDto,
1790
1993
  ResetPasswordDto,