@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.js CHANGED
@@ -52,6 +52,7 @@ __export(index_exports, {
52
52
  PostLikeResponseDto: () => PostLikeResponseDto,
53
53
  PostResponseDto: () => PostResponseDto,
54
54
  PostResponseSelfDto: () => PostResponseSelfDto,
55
+ ProfessionalProfileResponseDto: () => ProfessionalProfileResponseDto,
55
56
  ReactionType: () => ReactionType,
56
57
  ReorderDto: () => ReorderDto,
57
58
  ResetPasswordDto: () => ResetPasswordDto,
@@ -68,6 +69,39 @@ module.exports = __toCommonJS(index_exports);
68
69
  // dto/users/create_user.dto.ts
69
70
  var import_swagger = require("@nestjs/swagger");
70
71
  var import_class_validator = require("class-validator");
72
+
73
+ // enums/user-type.enum.ts
74
+ var UserType = /* @__PURE__ */ (function(UserType2) {
75
+ UserType2["DEFAULT"] = "DEFAULT";
76
+ UserType2["PROFESSIONAL"] = "PROFESSIONAL";
77
+ return UserType2;
78
+ })({});
79
+
80
+ // enums/business-sector.enum.ts
81
+ var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
82
+ BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
83
+ BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
84
+ BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
85
+ BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
86
+ BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
87
+ BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
88
+ BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
89
+ BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
90
+ BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
91
+ BusinessSector2["LEGAL"] = "Legal Services";
92
+ BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
93
+ BusinessSector2["CONSULTING"] = "Business Consulting";
94
+ BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
95
+ BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
96
+ BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
97
+ BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
98
+ BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
99
+ BusinessSector2["REAL_ESTATE"] = "Real Estate";
100
+ BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
101
+ return BusinessSector2;
102
+ })({});
103
+
104
+ // dto/users/create_user.dto.ts
71
105
  function _ts_decorate(decorators, target, key, desc) {
72
106
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
73
107
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -85,6 +119,15 @@ var _CreateUserDto = class _CreateUserDto {
85
119
  __publicField(this, "fullName");
86
120
  __publicField(this, "password");
87
121
  __publicField(this, "confirmPassword");
122
+ __publicField(this, "userType");
123
+ // Professional fields - required only when userType is PROFESSIONAL
124
+ __publicField(this, "businessSector");
125
+ __publicField(this, "bio");
126
+ __publicField(this, "companyName");
127
+ __publicField(this, "website");
128
+ __publicField(this, "phone");
129
+ __publicField(this, "location");
130
+ __publicField(this, "yearsOfExperience");
88
131
  }
89
132
  };
90
133
  __name(_CreateUserDto, "CreateUserDto");
@@ -125,6 +168,86 @@ _ts_decorate([
125
168
  (0, import_class_validator.MinLength)(6),
126
169
  _ts_metadata("design:type", String)
127
170
  ], CreateUserDto.prototype, "confirmPassword", void 0);
171
+ _ts_decorate([
172
+ (0, import_swagger.ApiProperty)({
173
+ enum: UserType,
174
+ example: UserType.DEFAULT,
175
+ description: "The type of user account",
176
+ default: UserType.DEFAULT
177
+ }),
178
+ (0, import_class_validator.IsEnum)(UserType),
179
+ (0, import_class_validator.IsNotEmpty)(),
180
+ _ts_metadata("design:type", typeof UserType === "undefined" ? Object : UserType)
181
+ ], CreateUserDto.prototype, "userType", void 0);
182
+ _ts_decorate([
183
+ (0, import_swagger.ApiPropertyOptional)({
184
+ enum: BusinessSector,
185
+ example: BusinessSector.IT_SOFTWARE,
186
+ description: "Business sector (required for professional accounts)"
187
+ }),
188
+ (0, import_class_validator.ValidateIf)((o) => o.userType === UserType.PROFESSIONAL),
189
+ (0, import_class_validator.IsEnum)(BusinessSector),
190
+ (0, import_class_validator.IsNotEmpty)(),
191
+ _ts_metadata("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
192
+ ], CreateUserDto.prototype, "businessSector", void 0);
193
+ _ts_decorate([
194
+ (0, import_swagger.ApiPropertyOptional)({
195
+ example: "Experienced software developer specializing in web applications",
196
+ description: "Professional bio"
197
+ }),
198
+ (0, import_class_validator.IsOptional)(),
199
+ (0, import_class_validator.IsString)(),
200
+ (0, import_class_validator.MaxLength)(1e3),
201
+ _ts_metadata("design:type", String)
202
+ ], CreateUserDto.prototype, "bio", void 0);
203
+ _ts_decorate([
204
+ (0, import_swagger.ApiPropertyOptional)({
205
+ example: "Tech Solutions Inc.",
206
+ description: "Company name"
207
+ }),
208
+ (0, import_class_validator.IsOptional)(),
209
+ (0, import_class_validator.IsString)(),
210
+ (0, import_class_validator.MaxLength)(200),
211
+ _ts_metadata("design:type", String)
212
+ ], CreateUserDto.prototype, "companyName", void 0);
213
+ _ts_decorate([
214
+ (0, import_swagger.ApiPropertyOptional)({
215
+ example: "https://www.example.com",
216
+ description: "Professional website URL"
217
+ }),
218
+ (0, import_class_validator.IsOptional)(),
219
+ (0, import_class_validator.IsUrl)(),
220
+ _ts_metadata("design:type", String)
221
+ ], CreateUserDto.prototype, "website", void 0);
222
+ _ts_decorate([
223
+ (0, import_swagger.ApiPropertyOptional)({
224
+ example: "+1234567890",
225
+ description: "Contact phone number"
226
+ }),
227
+ (0, import_class_validator.IsOptional)(),
228
+ (0, import_class_validator.IsString)(),
229
+ _ts_metadata("design:type", String)
230
+ ], CreateUserDto.prototype, "phone", void 0);
231
+ _ts_decorate([
232
+ (0, import_swagger.ApiPropertyOptional)({
233
+ example: "New York, USA",
234
+ description: "Location/City"
235
+ }),
236
+ (0, import_class_validator.IsOptional)(),
237
+ (0, import_class_validator.IsString)(),
238
+ (0, import_class_validator.MaxLength)(200),
239
+ _ts_metadata("design:type", String)
240
+ ], CreateUserDto.prototype, "location", void 0);
241
+ _ts_decorate([
242
+ (0, import_swagger.ApiPropertyOptional)({
243
+ example: 5,
244
+ description: "Years of professional experience"
245
+ }),
246
+ (0, import_class_validator.IsOptional)(),
247
+ (0, import_class_validator.IsInt)(),
248
+ (0, import_class_validator.Min)(0),
249
+ _ts_metadata("design:type", Number)
250
+ ], CreateUserDto.prototype, "yearsOfExperience", void 0);
128
251
 
129
252
  // dto/users/create_user_firebase.dto.ts
130
253
  var import_swagger2 = require("@nestjs/swagger");
@@ -446,33 +569,192 @@ _ts_decorate10([
446
569
  ], UpdatePasswordDto.prototype, "confirmNewPassword", void 0);
447
570
 
448
571
  // dto/users/user_response.dto.ts
572
+ var import_swagger5 = require("@nestjs/swagger");
573
+ function _ts_decorate11(decorators, target, key, desc) {
574
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
575
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
576
+ 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;
577
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
578
+ }
579
+ __name(_ts_decorate11, "_ts_decorate");
580
+ function _ts_metadata11(k, v) {
581
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
582
+ }
583
+ __name(_ts_metadata11, "_ts_metadata");
449
584
  var _UserResponseDto = class _UserResponseDto {
450
585
  constructor() {
451
586
  __publicField(this, "id");
587
+ __publicField(this, "email");
452
588
  __publicField(this, "fullName");
453
589
  __publicField(this, "profilePictureUrl");
454
- __publicField(this, "email");
590
+ __publicField(this, "userType");
455
591
  __publicField(this, "createdAt");
456
592
  __publicField(this, "updatedAt");
457
593
  __publicField(this, "role");
594
+ __publicField(this, "professionalProfile");
458
595
  }
459
596
  };
460
597
  __name(_UserResponseDto, "UserResponseDto");
461
598
  var UserResponseDto = _UserResponseDto;
599
+ _ts_decorate11([
600
+ (0, import_swagger5.ApiProperty)({
601
+ example: "uuid-string"
602
+ }),
603
+ _ts_metadata11("design:type", String)
604
+ ], UserResponseDto.prototype, "id", void 0);
605
+ _ts_decorate11([
606
+ (0, import_swagger5.ApiProperty)({
607
+ example: "user@example.com"
608
+ }),
609
+ _ts_metadata11("design:type", String)
610
+ ], UserResponseDto.prototype, "email", void 0);
611
+ _ts_decorate11([
612
+ (0, import_swagger5.ApiProperty)({
613
+ example: "John Doe"
614
+ }),
615
+ _ts_metadata11("design:type", String)
616
+ ], UserResponseDto.prototype, "fullName", void 0);
617
+ _ts_decorate11([
618
+ (0, import_swagger5.ApiPropertyOptional)({
619
+ example: "https://example.com/profile.jpg"
620
+ }),
621
+ _ts_metadata11("design:type", Object)
622
+ ], UserResponseDto.prototype, "profilePictureUrl", void 0);
623
+ _ts_decorate11([
624
+ (0, import_swagger5.ApiProperty)({
625
+ enum: UserType,
626
+ example: UserType.DEFAULT
627
+ }),
628
+ _ts_metadata11("design:type", typeof UserType === "undefined" ? Object : UserType)
629
+ ], UserResponseDto.prototype, "userType", void 0);
630
+ _ts_decorate11([
631
+ (0, import_swagger5.ApiProperty)(),
632
+ _ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
633
+ ], UserResponseDto.prototype, "createdAt", void 0);
634
+ _ts_decorate11([
635
+ (0, import_swagger5.ApiProperty)(),
636
+ _ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
637
+ ], UserResponseDto.prototype, "updatedAt", void 0);
638
+ _ts_decorate11([
639
+ (0, import_swagger5.ApiProperty)({
640
+ example: {
641
+ name: "DEFAULT"
642
+ }
643
+ }),
644
+ _ts_metadata11("design:type", Object)
645
+ ], UserResponseDto.prototype, "role", void 0);
646
+ _ts_decorate11([
647
+ (0, import_swagger5.ApiPropertyOptional)(),
648
+ _ts_metadata11("design:type", typeof ProfessionalProfileResponseDto === "undefined" ? Object : ProfessionalProfileResponseDto)
649
+ ], UserResponseDto.prototype, "professionalProfile", void 0);
650
+ var _ProfessionalProfileResponseDto = class _ProfessionalProfileResponseDto {
651
+ constructor() {
652
+ __publicField(this, "id");
653
+ __publicField(this, "businessSector");
654
+ __publicField(this, "bio");
655
+ __publicField(this, "companyName");
656
+ __publicField(this, "website");
657
+ __publicField(this, "phone");
658
+ __publicField(this, "location");
659
+ __publicField(this, "yearsOfExperience");
660
+ __publicField(this, "isVerified");
661
+ __publicField(this, "hourlyRate");
662
+ __publicField(this, "availabilityStatus");
663
+ __publicField(this, "createdAt");
664
+ __publicField(this, "updatedAt");
665
+ }
666
+ };
667
+ __name(_ProfessionalProfileResponseDto, "ProfessionalProfileResponseDto");
668
+ var ProfessionalProfileResponseDto = _ProfessionalProfileResponseDto;
669
+ _ts_decorate11([
670
+ (0, import_swagger5.ApiProperty)({
671
+ example: "uuid-string"
672
+ }),
673
+ _ts_metadata11("design:type", String)
674
+ ], ProfessionalProfileResponseDto.prototype, "id", void 0);
675
+ _ts_decorate11([
676
+ (0, import_swagger5.ApiProperty)({
677
+ enum: BusinessSector,
678
+ example: BusinessSector.IT_SOFTWARE
679
+ }),
680
+ _ts_metadata11("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
681
+ ], ProfessionalProfileResponseDto.prototype, "businessSector", void 0);
682
+ _ts_decorate11([
683
+ (0, import_swagger5.ApiPropertyOptional)({
684
+ example: "Experienced developer..."
685
+ }),
686
+ _ts_metadata11("design:type", Object)
687
+ ], ProfessionalProfileResponseDto.prototype, "bio", void 0);
688
+ _ts_decorate11([
689
+ (0, import_swagger5.ApiPropertyOptional)({
690
+ example: "Tech Solutions Inc."
691
+ }),
692
+ _ts_metadata11("design:type", Object)
693
+ ], ProfessionalProfileResponseDto.prototype, "companyName", void 0);
694
+ _ts_decorate11([
695
+ (0, import_swagger5.ApiPropertyOptional)({
696
+ example: "https://www.example.com"
697
+ }),
698
+ _ts_metadata11("design:type", Object)
699
+ ], ProfessionalProfileResponseDto.prototype, "website", void 0);
700
+ _ts_decorate11([
701
+ (0, import_swagger5.ApiPropertyOptional)({
702
+ example: "+1234567890"
703
+ }),
704
+ _ts_metadata11("design:type", Object)
705
+ ], ProfessionalProfileResponseDto.prototype, "phone", void 0);
706
+ _ts_decorate11([
707
+ (0, import_swagger5.ApiPropertyOptional)({
708
+ example: "New York, USA"
709
+ }),
710
+ _ts_metadata11("design:type", Object)
711
+ ], ProfessionalProfileResponseDto.prototype, "location", void 0);
712
+ _ts_decorate11([
713
+ (0, import_swagger5.ApiPropertyOptional)({
714
+ example: 5
715
+ }),
716
+ _ts_metadata11("design:type", Object)
717
+ ], ProfessionalProfileResponseDto.prototype, "yearsOfExperience", void 0);
718
+ _ts_decorate11([
719
+ (0, import_swagger5.ApiProperty)({
720
+ example: false
721
+ }),
722
+ _ts_metadata11("design:type", Boolean)
723
+ ], ProfessionalProfileResponseDto.prototype, "isVerified", void 0);
724
+ _ts_decorate11([
725
+ (0, import_swagger5.ApiPropertyOptional)({
726
+ example: 75.5
727
+ }),
728
+ _ts_metadata11("design:type", Object)
729
+ ], ProfessionalProfileResponseDto.prototype, "hourlyRate", void 0);
730
+ _ts_decorate11([
731
+ (0, import_swagger5.ApiProperty)({
732
+ example: "available"
733
+ }),
734
+ _ts_metadata11("design:type", String)
735
+ ], ProfessionalProfileResponseDto.prototype, "availabilityStatus", void 0);
736
+ _ts_decorate11([
737
+ (0, import_swagger5.ApiProperty)(),
738
+ _ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
739
+ ], ProfessionalProfileResponseDto.prototype, "createdAt", void 0);
740
+ _ts_decorate11([
741
+ (0, import_swagger5.ApiProperty)(),
742
+ _ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
743
+ ], ProfessionalProfileResponseDto.prototype, "updatedAt", void 0);
462
744
 
463
745
  // dto/users/search_users_by_full_name.dto.ts
464
746
  var import_class_validator11 = require("class-validator");
465
- function _ts_decorate11(decorators, target, key, desc) {
747
+ function _ts_decorate12(decorators, target, key, desc) {
466
748
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
467
749
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
468
750
  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;
469
751
  return c > 3 && r && Object.defineProperty(target, key, r), r;
470
752
  }
471
- __name(_ts_decorate11, "_ts_decorate");
472
- function _ts_metadata11(k, v) {
753
+ __name(_ts_decorate12, "_ts_decorate");
754
+ function _ts_metadata12(k, v) {
473
755
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
474
756
  }
475
- __name(_ts_metadata11, "_ts_metadata");
757
+ __name(_ts_metadata12, "_ts_metadata");
476
758
  var _SearchUsersByFullNameDTO = class _SearchUsersByFullNameDTO extends FindAllUsersDto {
477
759
  constructor() {
478
760
  super(...arguments);
@@ -481,25 +763,25 @@ var _SearchUsersByFullNameDTO = class _SearchUsersByFullNameDTO extends FindAllU
481
763
  };
482
764
  __name(_SearchUsersByFullNameDTO, "SearchUsersByFullNameDTO");
483
765
  var SearchUsersByFullNameDTO = _SearchUsersByFullNameDTO;
484
- _ts_decorate11([
766
+ _ts_decorate12([
485
767
  (0, import_class_validator11.IsString)(),
486
768
  (0, import_class_validator11.IsOptional)(),
487
- _ts_metadata11("design:type", String)
769
+ _ts_metadata12("design:type", String)
488
770
  ], SearchUsersByFullNameDTO.prototype, "fullName", void 0);
489
771
 
490
772
  // dto/storage/delete-file.dto.ts
491
773
  var import_class_validator12 = require("class-validator");
492
- function _ts_decorate12(decorators, target, key, desc) {
774
+ function _ts_decorate13(decorators, target, key, desc) {
493
775
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
494
776
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
495
777
  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;
496
778
  return c > 3 && r && Object.defineProperty(target, key, r), r;
497
779
  }
498
- __name(_ts_decorate12, "_ts_decorate");
499
- function _ts_metadata12(k, v) {
780
+ __name(_ts_decorate13, "_ts_decorate");
781
+ function _ts_metadata13(k, v) {
500
782
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
501
783
  }
502
- __name(_ts_metadata12, "_ts_metadata");
784
+ __name(_ts_metadata13, "_ts_metadata");
503
785
  var _DeleteFileDto = class _DeleteFileDto {
504
786
  constructor() {
505
787
  __publicField(this, "fileUrl");
@@ -507,10 +789,10 @@ var _DeleteFileDto = class _DeleteFileDto {
507
789
  };
508
790
  __name(_DeleteFileDto, "DeleteFileDto");
509
791
  var DeleteFileDto = _DeleteFileDto;
510
- _ts_decorate12([
792
+ _ts_decorate13([
511
793
  (0, import_class_validator12.IsString)(),
512
794
  (0, import_class_validator12.IsNotEmpty)(),
513
- _ts_metadata12("design:type", String)
795
+ _ts_metadata13("design:type", String)
514
796
  ], DeleteFileDto.prototype, "fileUrl", void 0);
515
797
 
516
798
  // dto/storage/file-response.dto.ts
@@ -528,17 +810,17 @@ var FileResponseDto = _FileResponseDto;
528
810
 
529
811
  // dto/storage/upload-file.dto.ts
530
812
  var import_class_validator13 = require("class-validator");
531
- function _ts_decorate13(decorators, target, key, desc) {
813
+ function _ts_decorate14(decorators, target, key, desc) {
532
814
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
533
815
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
534
816
  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;
535
817
  return c > 3 && r && Object.defineProperty(target, key, r), r;
536
818
  }
537
- __name(_ts_decorate13, "_ts_decorate");
538
- function _ts_metadata13(k, v) {
819
+ __name(_ts_decorate14, "_ts_decorate");
820
+ function _ts_metadata14(k, v) {
539
821
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
540
822
  }
541
- __name(_ts_metadata13, "_ts_metadata");
823
+ __name(_ts_metadata14, "_ts_metadata");
542
824
  var FileCategory = /* @__PURE__ */ (function(FileCategory2) {
543
825
  FileCategory2["PROFILE_PICTURES"] = "profile-pictures";
544
826
  FileCategory2["POST_IMAGES"] = "post-images";
@@ -560,24 +842,24 @@ var _UploadFileDto = class _UploadFileDto {
560
842
  };
561
843
  __name(_UploadFileDto, "UploadFileDto");
562
844
  var UploadFileDto = _UploadFileDto;
563
- _ts_decorate13([
845
+ _ts_decorate14([
564
846
  (0, import_class_validator13.IsString)(),
565
847
  (0, import_class_validator13.IsNotEmpty)(),
566
- _ts_metadata13("design:type", String)
848
+ _ts_metadata14("design:type", String)
567
849
  ], UploadFileDto.prototype, "userId", void 0);
568
- _ts_decorate13([
850
+ _ts_decorate14([
569
851
  (0, import_class_validator13.IsEnum)(FileCategory),
570
- _ts_metadata13("design:type", String)
852
+ _ts_metadata14("design:type", String)
571
853
  ], UploadFileDto.prototype, "category", void 0);
572
- _ts_decorate13([
854
+ _ts_decorate14([
573
855
  (0, import_class_validator13.IsString)(),
574
856
  (0, import_class_validator13.IsNotEmpty)(),
575
- _ts_metadata13("design:type", String)
857
+ _ts_metadata14("design:type", String)
576
858
  ], UploadFileDto.prototype, "fileName", void 0);
577
- _ts_decorate13([
859
+ _ts_decorate14([
578
860
  (0, import_class_validator13.IsString)(),
579
861
  (0, import_class_validator13.IsOptional)(),
580
- _ts_metadata13("design:type", String)
862
+ _ts_metadata14("design:type", String)
581
863
  ], UploadFileDto.prototype, "mimeType", void 0);
582
864
 
583
865
  // dto/shared/reaction_type.enum.ts
@@ -591,23 +873,23 @@ var ReactionType = /* @__PURE__ */ (function(ReactionType2) {
591
873
  })({});
592
874
 
593
875
  // dto/posts/create_post.dto.ts
594
- var import_swagger6 = require("@nestjs/swagger");
876
+ var import_swagger7 = require("@nestjs/swagger");
595
877
  var import_class_validator15 = require("class-validator");
596
878
 
597
879
  // dto/posts/create_post._file.dto.ts
598
880
  var import_class_validator14 = require("class-validator");
599
- var import_swagger5 = require("@nestjs/swagger");
600
- function _ts_decorate14(decorators, target, key, desc) {
881
+ var import_swagger6 = require("@nestjs/swagger");
882
+ function _ts_decorate15(decorators, target, key, desc) {
601
883
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
602
884
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
603
885
  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;
604
886
  return c > 3 && r && Object.defineProperty(target, key, r), r;
605
887
  }
606
- __name(_ts_decorate14, "_ts_decorate");
607
- function _ts_metadata14(k, v) {
888
+ __name(_ts_decorate15, "_ts_decorate");
889
+ function _ts_metadata15(k, v) {
608
890
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
609
891
  }
610
- __name(_ts_metadata14, "_ts_metadata");
892
+ __name(_ts_metadata15, "_ts_metadata");
611
893
  var _CreatePostFileDto = class _CreatePostFileDto {
612
894
  constructor() {
613
895
  __publicField(this, "fileBuffer");
@@ -618,36 +900,36 @@ var _CreatePostFileDto = class _CreatePostFileDto {
618
900
  };
619
901
  __name(_CreatePostFileDto, "CreatePostFileDto");
620
902
  var CreatePostFileDto = _CreatePostFileDto;
621
- _ts_decorate14([
622
- (0, import_swagger5.ApiProperty)({
903
+ _ts_decorate15([
904
+ (0, import_swagger6.ApiProperty)({
623
905
  description: "Base64 encoded file",
624
906
  example: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
625
907
  }),
626
908
  (0, import_class_validator14.IsString)(),
627
909
  (0, import_class_validator14.IsNotEmpty)(),
628
- _ts_metadata14("design:type", String)
910
+ _ts_metadata15("design:type", String)
629
911
  ], CreatePostFileDto.prototype, "fileBuffer", void 0);
630
- _ts_decorate14([
631
- (0, import_swagger5.ApiProperty)({
912
+ _ts_decorate15([
913
+ (0, import_swagger6.ApiProperty)({
632
914
  description: "File name",
633
915
  example: "vacation-photo.jpg"
634
916
  }),
635
917
  (0, import_class_validator14.IsString)(),
636
918
  (0, import_class_validator14.IsNotEmpty)(),
637
- _ts_metadata14("design:type", String)
919
+ _ts_metadata15("design:type", String)
638
920
  ], CreatePostFileDto.prototype, "fileName", void 0);
639
- _ts_decorate14([
640
- (0, import_swagger5.ApiProperty)({
921
+ _ts_decorate15([
922
+ (0, import_swagger6.ApiProperty)({
641
923
  description: "MIME type",
642
924
  example: "image/jpeg",
643
925
  required: false
644
926
  }),
645
927
  (0, import_class_validator14.IsString)(),
646
928
  (0, import_class_validator14.IsOptional)(),
647
- _ts_metadata14("design:type", String)
929
+ _ts_metadata15("design:type", String)
648
930
  ], CreatePostFileDto.prototype, "mimeType", void 0);
649
- _ts_decorate14([
650
- (0, import_swagger5.ApiProperty)({
931
+ _ts_decorate15([
932
+ (0, import_swagger6.ApiProperty)({
651
933
  description: "File type",
652
934
  example: "image",
653
935
  enum: [
@@ -657,48 +939,22 @@ _ts_decorate14([
657
939
  }),
658
940
  (0, import_class_validator14.IsString)(),
659
941
  (0, import_class_validator14.IsNotEmpty)(),
660
- _ts_metadata14("design:type", String)
942
+ _ts_metadata15("design:type", String)
661
943
  ], CreatePostFileDto.prototype, "fileType", void 0);
662
944
 
663
945
  // dto/posts/create_post.dto.ts
664
946
  var import_class_transformer3 = require("class-transformer");
665
-
666
- // enums/business-sector.enum.ts
667
- var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
668
- BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
669
- BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
670
- BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
671
- BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
672
- BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
673
- BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
674
- BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
675
- BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
676
- BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
677
- BusinessSector2["LEGAL"] = "Legal Services";
678
- BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
679
- BusinessSector2["CONSULTING"] = "Business Consulting";
680
- BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
681
- BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
682
- BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
683
- BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
684
- BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
685
- BusinessSector2["REAL_ESTATE"] = "Real Estate";
686
- BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
687
- return BusinessSector2;
688
- })({});
689
-
690
- // dto/posts/create_post.dto.ts
691
- function _ts_decorate15(decorators, target, key, desc) {
947
+ function _ts_decorate16(decorators, target, key, desc) {
692
948
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
693
949
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
694
950
  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;
695
951
  return c > 3 && r && Object.defineProperty(target, key, r), r;
696
952
  }
697
- __name(_ts_decorate15, "_ts_decorate");
698
- function _ts_metadata15(k, v) {
953
+ __name(_ts_decorate16, "_ts_decorate");
954
+ function _ts_metadata16(k, v) {
699
955
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
700
956
  }
701
- __name(_ts_metadata15, "_ts_metadata");
957
+ __name(_ts_metadata16, "_ts_metadata");
702
958
  var _CreatePostDto = class _CreatePostDto {
703
959
  constructor() {
704
960
  __publicField(this, "description");
@@ -708,8 +964,8 @@ var _CreatePostDto = class _CreatePostDto {
708
964
  };
709
965
  __name(_CreatePostDto, "CreatePostDto");
710
966
  var CreatePostDto = _CreatePostDto;
711
- _ts_decorate15([
712
- (0, import_swagger6.ApiProperty)({
967
+ _ts_decorate16([
968
+ (0, import_swagger7.ApiProperty)({
713
969
  description: "Post description/content",
714
970
  example: "Check out this amazing view!",
715
971
  minLength: 1,
@@ -719,20 +975,21 @@ _ts_decorate15([
719
975
  (0, import_class_validator15.IsNotEmpty)(),
720
976
  (0, import_class_validator15.MinLength)(1),
721
977
  (0, import_class_validator15.MaxLength)(5e3),
722
- _ts_metadata15("design:type", String)
978
+ _ts_metadata16("design:type", String)
723
979
  ], CreatePostDto.prototype, "description", void 0);
724
- _ts_decorate15([
725
- (0, import_swagger6.ApiProperty)({
980
+ _ts_decorate16([
981
+ (0, import_swagger7.ApiProperty)({
726
982
  description: "The business sector for the post",
727
983
  enum: BusinessSector,
728
984
  required: true,
729
985
  default: BusinessSector.CONSULTING
730
986
  }),
731
987
  (0, import_class_validator15.IsEnum)(BusinessSector),
732
- _ts_metadata15("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
988
+ (0, import_class_validator15.IsOptional)(),
989
+ _ts_metadata16("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
733
990
  ], CreatePostDto.prototype, "sector", void 0);
734
- _ts_decorate15([
735
- (0, import_swagger6.ApiProperty)({
991
+ _ts_decorate16([
992
+ (0, import_swagger7.ApiProperty)({
736
993
  description: "Array of files to upload with the post",
737
994
  type: [
738
995
  CreatePostFileDto
@@ -745,25 +1002,25 @@ _ts_decorate15([
745
1002
  }),
746
1003
  (0, import_class_transformer3.Type)(() => CreatePostFileDto),
747
1004
  (0, import_class_validator15.IsOptional)(),
748
- _ts_metadata15("design:type", Array)
1005
+ _ts_metadata16("design:type", Array)
749
1006
  ], CreatePostDto.prototype, "files", void 0);
750
1007
 
751
1008
  // dto/posts/post_response.dto.ts
752
1009
  var import_swagger9 = require("@nestjs/swagger");
753
1010
 
754
1011
  // dto/posts/post_file.dto.ts
755
- var import_swagger7 = require("@nestjs/swagger");
756
- function _ts_decorate16(decorators, target, key, desc) {
1012
+ var import_swagger8 = require("@nestjs/swagger");
1013
+ function _ts_decorate17(decorators, target, key, desc) {
757
1014
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
758
1015
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
759
1016
  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;
760
1017
  return c > 3 && r && Object.defineProperty(target, key, r), r;
761
1018
  }
762
- __name(_ts_decorate16, "_ts_decorate");
763
- function _ts_metadata16(k, v) {
1019
+ __name(_ts_decorate17, "_ts_decorate");
1020
+ function _ts_metadata17(k, v) {
764
1021
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
765
1022
  }
766
- __name(_ts_metadata16, "_ts_metadata");
1023
+ __name(_ts_metadata17, "_ts_metadata");
767
1024
  var _PostFileDto = class _PostFileDto {
768
1025
  constructor() {
769
1026
  __publicField(this, "id");
@@ -776,94 +1033,50 @@ var _PostFileDto = class _PostFileDto {
776
1033
  };
777
1034
  __name(_PostFileDto, "PostFileDto");
778
1035
  var PostFileDto = _PostFileDto;
779
- _ts_decorate16([
780
- (0, import_swagger7.ApiProperty)({
1036
+ _ts_decorate17([
1037
+ (0, import_swagger8.ApiProperty)({
781
1038
  example: "123e4567-e89b-12d3-a456-426614174000"
782
1039
  }),
783
- _ts_metadata16("design:type", String)
1040
+ _ts_metadata17("design:type", String)
784
1041
  ], PostFileDto.prototype, "id", void 0);
785
- _ts_decorate16([
786
- (0, import_swagger7.ApiProperty)({
1042
+ _ts_decorate17([
1043
+ (0, import_swagger8.ApiProperty)({
787
1044
  example: "https://storage.example.com/posts/image.jpg"
788
1045
  }),
789
- _ts_metadata16("design:type", String)
1046
+ _ts_metadata17("design:type", String)
790
1047
  ], PostFileDto.prototype, "fileUrl", void 0);
791
- _ts_decorate16([
792
- (0, import_swagger7.ApiProperty)({
1048
+ _ts_decorate17([
1049
+ (0, import_swagger8.ApiProperty)({
793
1050
  example: "image",
794
1051
  enum: [
795
1052
  "image",
796
1053
  "video"
797
1054
  ]
798
1055
  }),
799
- _ts_metadata16("design:type", String)
1056
+ _ts_metadata17("design:type", String)
800
1057
  ], PostFileDto.prototype, "fileType", void 0);
801
- _ts_decorate16([
802
- (0, import_swagger7.ApiProperty)({
1058
+ _ts_decorate17([
1059
+ (0, import_swagger8.ApiProperty)({
803
1060
  example: "image/jpeg",
804
1061
  nullable: true
805
1062
  }),
806
- _ts_metadata16("design:type", Object)
1063
+ _ts_metadata17("design:type", Object)
807
1064
  ], PostFileDto.prototype, "mimeType", void 0);
808
- _ts_decorate16([
809
- (0, import_swagger7.ApiProperty)({
1065
+ _ts_decorate17([
1066
+ (0, import_swagger8.ApiProperty)({
810
1067
  example: 0
811
1068
  }),
812
- _ts_metadata16("design:type", Number)
1069
+ _ts_metadata17("design:type", Number)
813
1070
  ], PostFileDto.prototype, "orderIndex", void 0);
814
- _ts_decorate16([
815
- (0, import_swagger7.ApiProperty)({
1071
+ _ts_decorate17([
1072
+ (0, import_swagger8.ApiProperty)({
816
1073
  example: "2024-01-15T10:30:00Z"
817
1074
  }),
818
- _ts_metadata16("design:type", typeof Date === "undefined" ? Object : Date)
1075
+ _ts_metadata17("design:type", typeof Date === "undefined" ? Object : Date)
819
1076
  ], PostFileDto.prototype, "createdAt", void 0);
820
1077
 
821
1078
  // dto/posts/post_response.dto.ts
822
1079
  var import_class_validator16 = require("class-validator");
823
-
824
- // dto/tags/tag_response.dto.ts
825
- var import_swagger8 = require("@nestjs/swagger");
826
- function _ts_decorate17(decorators, target, key, desc) {
827
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
828
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
829
- 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;
830
- return c > 3 && r && Object.defineProperty(target, key, r), r;
831
- }
832
- __name(_ts_decorate17, "_ts_decorate");
833
- function _ts_metadata17(k, v) {
834
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
835
- }
836
- __name(_ts_metadata17, "_ts_metadata");
837
- var _TagResponseDto = class _TagResponseDto {
838
- constructor() {
839
- __publicField(this, "name");
840
- __publicField(this, "slug");
841
- // Optional: Include id if you need it for specific actions
842
- __publicField(this, "id");
843
- }
844
- };
845
- __name(_TagResponseDto, "TagResponseDto");
846
- var TagResponseDto = _TagResponseDto;
847
- _ts_decorate17([
848
- (0, import_swagger8.ApiProperty)({
849
- example: "React JS"
850
- }),
851
- _ts_metadata17("design:type", String)
852
- ], TagResponseDto.prototype, "name", void 0);
853
- _ts_decorate17([
854
- (0, import_swagger8.ApiProperty)({
855
- example: "react-js"
856
- }),
857
- _ts_metadata17("design:type", String)
858
- ], TagResponseDto.prototype, "slug", void 0);
859
- _ts_decorate17([
860
- (0, import_swagger8.ApiProperty)({
861
- example: "uuid-v4-string"
862
- }),
863
- _ts_metadata17("design:type", String)
864
- ], TagResponseDto.prototype, "id", void 0);
865
-
866
- // dto/posts/post_response.dto.ts
867
1080
  function _ts_decorate18(decorators, target, key, desc) {
868
1081
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
869
1082
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -883,7 +1096,6 @@ var _PostResponseDto = class _PostResponseDto {
883
1096
  __publicField(this, "publisherFullName");
884
1097
  __publicField(this, "publisherProfilePictureUrl");
885
1098
  __publicField(this, "files");
886
- __publicField(this, "tags");
887
1099
  __publicField(this, "commentsCount");
888
1100
  __publicField(this, "sector");
889
1101
  __publicField(this, "likesCount");
@@ -932,15 +1144,6 @@ _ts_decorate18([
932
1144
  }),
933
1145
  _ts_metadata18("design:type", Array)
934
1146
  ], PostResponseDto.prototype, "files", void 0);
935
- _ts_decorate18([
936
- (0, import_swagger9.ApiProperty)({
937
- type: [
938
- TagResponseDto
939
- ],
940
- description: "List of tags associated with the post"
941
- }),
942
- _ts_metadata18("design:type", Array)
943
- ], PostResponseDto.prototype, "tags", void 0);
944
1147
  _ts_decorate18([
945
1148
  (0, import_swagger9.ApiProperty)({
946
1149
  example: 42
@@ -1060,15 +1263,15 @@ _ts_decorate20([
1060
1263
  (0, import_class_validator17.IsNotEmpty)(),
1061
1264
  (0, import_class_validator17.MinLength)(1),
1062
1265
  (0, import_class_validator17.MaxLength)(5e3),
1063
- (0, import_class_validator17.IsOptional)(),
1064
1266
  _ts_metadata20("design:type", String)
1065
1267
  ], UpdatePostDto.prototype, "description", void 0);
1066
1268
  _ts_decorate20([
1067
1269
  (0, import_swagger11.ApiProperty)({
1068
- description: "The Business sector type for the post",
1069
- enum: BusinessSector
1270
+ description: "The Bunsieess sector type for the post",
1271
+ enum: BusinessSector,
1272
+ required: true,
1273
+ default: BusinessSector.CONSULTING
1070
1274
  }),
1071
- (0, import_class_validator17.IsOptional)(),
1072
1275
  (0, import_class_validator17.IsEnum)(BusinessSector),
1073
1276
  _ts_metadata20("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
1074
1277
  ], UpdatePostDto.prototype, "sector", void 0);
@@ -1848,6 +2051,7 @@ _ts_decorate34([
1848
2051
  PostLikeResponseDto,
1849
2052
  PostResponseDto,
1850
2053
  PostResponseSelfDto,
2054
+ ProfessionalProfileResponseDto,
1851
2055
  ReactionType,
1852
2056
  ReorderDto,
1853
2057
  ResetPasswordDto,