@feresmeryas/microservices-common 1.5.25 → 1.5.27

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
@@ -706,9 +706,8 @@ _ts_decorate12([
706
706
  _ts_metadata12("design:type", String)
707
707
  ], SearchUsersByFullNameDTO.prototype, "fullName", void 0);
708
708
 
709
- // dto/users/update_professional_profile.dto.ts
710
- import { ApiPropertyOptional as ApiPropertyOptional4 } from "@nestjs/swagger";
711
- import { IsOptional as IsOptional5, IsEnum as IsEnum2, IsString as IsString8, MaxLength as MaxLength5, IsUrl as IsUrl2, IsInt as IsInt3, Min as Min3, IsNumber } from "class-validator";
709
+ // dto/storage/delete-file.dto.ts
710
+ import { IsString as IsString8, IsNotEmpty as IsNotEmpty4 } from "class-validator";
712
711
  function _ts_decorate13(decorators, target, key, desc) {
713
712
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
714
713
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -720,127 +719,6 @@ function _ts_metadata13(k, v) {
720
719
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
721
720
  }
722
721
  __name(_ts_metadata13, "_ts_metadata");
723
- var _UpdateProfessionalProfileDto = class _UpdateProfessionalProfileDto {
724
- constructor() {
725
- __publicField(this, "businessSector");
726
- __publicField(this, "bio");
727
- __publicField(this, "companyName");
728
- __publicField(this, "website");
729
- __publicField(this, "phone");
730
- __publicField(this, "location");
731
- __publicField(this, "yearsOfExperience");
732
- __publicField(this, "hourlyRate");
733
- __publicField(this, "availabilityStatus");
734
- }
735
- };
736
- __name(_UpdateProfessionalProfileDto, "UpdateProfessionalProfileDto");
737
- var UpdateProfessionalProfileDto = _UpdateProfessionalProfileDto;
738
- _ts_decorate13([
739
- ApiPropertyOptional4({
740
- enum: BusinessSector,
741
- example: BusinessSector.IT_SOFTWARE,
742
- description: "Business sector"
743
- }),
744
- IsOptional5(),
745
- IsEnum2(BusinessSector),
746
- _ts_metadata13("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
747
- ], UpdateProfessionalProfileDto.prototype, "businessSector", void 0);
748
- _ts_decorate13([
749
- ApiPropertyOptional4({
750
- example: "Experienced software developer specializing in web applications",
751
- description: "Professional bio"
752
- }),
753
- IsOptional5(),
754
- IsString8(),
755
- MaxLength5(1e3),
756
- _ts_metadata13("design:type", String)
757
- ], UpdateProfessionalProfileDto.prototype, "bio", void 0);
758
- _ts_decorate13([
759
- ApiPropertyOptional4({
760
- example: "Tech Solutions Inc.",
761
- description: "Company name"
762
- }),
763
- IsOptional5(),
764
- IsString8(),
765
- MaxLength5(200),
766
- _ts_metadata13("design:type", String)
767
- ], UpdateProfessionalProfileDto.prototype, "companyName", void 0);
768
- _ts_decorate13([
769
- ApiPropertyOptional4({
770
- example: "https://www.example.com",
771
- description: "Professional website URL"
772
- }),
773
- IsOptional5(),
774
- IsUrl2(),
775
- _ts_metadata13("design:type", String)
776
- ], UpdateProfessionalProfileDto.prototype, "website", void 0);
777
- _ts_decorate13([
778
- ApiPropertyOptional4({
779
- example: "+1234567890",
780
- description: "Contact phone number"
781
- }),
782
- IsOptional5(),
783
- IsString8(),
784
- _ts_metadata13("design:type", String)
785
- ], UpdateProfessionalProfileDto.prototype, "phone", void 0);
786
- _ts_decorate13([
787
- ApiPropertyOptional4({
788
- example: "New York, USA",
789
- description: "Location/City"
790
- }),
791
- IsOptional5(),
792
- IsString8(),
793
- MaxLength5(200),
794
- _ts_metadata13("design:type", String)
795
- ], UpdateProfessionalProfileDto.prototype, "location", void 0);
796
- _ts_decorate13([
797
- ApiPropertyOptional4({
798
- example: 5,
799
- description: "Years of professional experience"
800
- }),
801
- IsOptional5(),
802
- IsInt3(),
803
- Min3(0),
804
- _ts_metadata13("design:type", Number)
805
- ], UpdateProfessionalProfileDto.prototype, "yearsOfExperience", void 0);
806
- _ts_decorate13([
807
- ApiPropertyOptional4({
808
- example: 75.5,
809
- description: "Hourly rate in USD"
810
- }),
811
- IsOptional5(),
812
- IsNumber(),
813
- Min3(0),
814
- _ts_metadata13("design:type", Number)
815
- ], UpdateProfessionalProfileDto.prototype, "hourlyRate", void 0);
816
- _ts_decorate13([
817
- ApiPropertyOptional4({
818
- example: "available",
819
- description: "Availability status",
820
- enum: [
821
- "available",
822
- "busy",
823
- "unavailable"
824
- ]
825
- }),
826
- IsOptional5(),
827
- IsString8(),
828
- _ts_metadata13("design:type", String)
829
- ], UpdateProfessionalProfileDto.prototype, "availabilityStatus", void 0);
830
-
831
- // dto/storage/delete-file.dto.ts
832
- import { IsString as IsString9, IsNotEmpty as IsNotEmpty4 } from "class-validator";
833
- function _ts_decorate14(decorators, target, key, desc) {
834
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
835
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
836
- 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;
837
- return c > 3 && r && Object.defineProperty(target, key, r), r;
838
- }
839
- __name(_ts_decorate14, "_ts_decorate");
840
- function _ts_metadata14(k, v) {
841
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
842
- }
843
- __name(_ts_metadata14, "_ts_metadata");
844
722
  var _DeleteFileDto = class _DeleteFileDto {
845
723
  constructor() {
846
724
  __publicField(this, "fileUrl");
@@ -848,10 +726,10 @@ var _DeleteFileDto = class _DeleteFileDto {
848
726
  };
849
727
  __name(_DeleteFileDto, "DeleteFileDto");
850
728
  var DeleteFileDto = _DeleteFileDto;
851
- _ts_decorate14([
852
- IsString9(),
729
+ _ts_decorate13([
730
+ IsString8(),
853
731
  IsNotEmpty4(),
854
- _ts_metadata14("design:type", String)
732
+ _ts_metadata13("design:type", String)
855
733
  ], DeleteFileDto.prototype, "fileUrl", void 0);
856
734
 
857
735
  // dto/storage/file-response.dto.ts
@@ -868,18 +746,18 @@ __name(_FileResponseDto, "FileResponseDto");
868
746
  var FileResponseDto = _FileResponseDto;
869
747
 
870
748
  // dto/storage/upload-file.dto.ts
871
- import { IsString as IsString10, IsNotEmpty as IsNotEmpty5, IsEnum as IsEnum3, IsOptional as IsOptional6 } from "class-validator";
872
- function _ts_decorate15(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) {
873
751
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
874
752
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
875
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;
876
754
  return c > 3 && r && Object.defineProperty(target, key, r), r;
877
755
  }
878
- __name(_ts_decorate15, "_ts_decorate");
879
- function _ts_metadata15(k, v) {
756
+ __name(_ts_decorate14, "_ts_decorate");
757
+ function _ts_metadata14(k, v) {
880
758
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
881
759
  }
882
- __name(_ts_metadata15, "_ts_metadata");
760
+ __name(_ts_metadata14, "_ts_metadata");
883
761
  var FileCategory = /* @__PURE__ */ (function(FileCategory2) {
884
762
  FileCategory2["PROFILE_PICTURES"] = "profile-pictures";
885
763
  FileCategory2["POST_IMAGES"] = "post-images";
@@ -901,24 +779,24 @@ var _UploadFileDto = class _UploadFileDto {
901
779
  };
902
780
  __name(_UploadFileDto, "UploadFileDto");
903
781
  var UploadFileDto = _UploadFileDto;
904
- _ts_decorate15([
905
- IsString10(),
782
+ _ts_decorate14([
783
+ IsString9(),
906
784
  IsNotEmpty5(),
907
- _ts_metadata15("design:type", String)
785
+ _ts_metadata14("design:type", String)
908
786
  ], UploadFileDto.prototype, "userId", void 0);
909
- _ts_decorate15([
910
- IsEnum3(FileCategory),
911
- _ts_metadata15("design:type", String)
787
+ _ts_decorate14([
788
+ IsEnum2(FileCategory),
789
+ _ts_metadata14("design:type", String)
912
790
  ], UploadFileDto.prototype, "category", void 0);
913
- _ts_decorate15([
914
- IsString10(),
791
+ _ts_decorate14([
792
+ IsString9(),
915
793
  IsNotEmpty5(),
916
- _ts_metadata15("design:type", String)
794
+ _ts_metadata14("design:type", String)
917
795
  ], UploadFileDto.prototype, "fileName", void 0);
918
- _ts_decorate15([
919
- IsString10(),
920
- IsOptional6(),
921
- _ts_metadata15("design:type", String)
796
+ _ts_decorate14([
797
+ IsString9(),
798
+ IsOptional5(),
799
+ _ts_metadata14("design:type", String)
922
800
  ], UploadFileDto.prototype, "mimeType", void 0);
923
801
 
924
802
  // dto/shared/reaction_type.enum.ts
@@ -933,22 +811,22 @@ var ReactionType = /* @__PURE__ */ (function(ReactionType2) {
933
811
 
934
812
  // dto/posts/create_post.dto.ts
935
813
  import { ApiProperty as ApiProperty7 } from "@nestjs/swagger";
936
- import { IsArray, IsEnum as IsEnum4, IsNotEmpty as IsNotEmpty7, IsOptional as IsOptional8, IsString as IsString12, MaxLength as MaxLength6, MinLength as MinLength6, ValidateNested } from "class-validator";
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";
937
815
 
938
816
  // dto/posts/create_post._file.dto.ts
939
- import { IsString as IsString11, IsNotEmpty as IsNotEmpty6, IsOptional as IsOptional7 } from "class-validator";
817
+ import { IsString as IsString10, IsNotEmpty as IsNotEmpty6, IsOptional as IsOptional6 } from "class-validator";
940
818
  import { ApiProperty as ApiProperty6 } from "@nestjs/swagger";
941
- function _ts_decorate16(decorators, target, key, desc) {
819
+ function _ts_decorate15(decorators, target, key, desc) {
942
820
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
943
821
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
944
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;
945
823
  return c > 3 && r && Object.defineProperty(target, key, r), r;
946
824
  }
947
- __name(_ts_decorate16, "_ts_decorate");
948
- function _ts_metadata16(k, v) {
825
+ __name(_ts_decorate15, "_ts_decorate");
826
+ function _ts_metadata15(k, v) {
949
827
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
950
828
  }
951
- __name(_ts_metadata16, "_ts_metadata");
829
+ __name(_ts_metadata15, "_ts_metadata");
952
830
  var _CreatePostFileDto = class _CreatePostFileDto {
953
831
  constructor() {
954
832
  __publicField(this, "fileBuffer");
@@ -959,35 +837,35 @@ var _CreatePostFileDto = class _CreatePostFileDto {
959
837
  };
960
838
  __name(_CreatePostFileDto, "CreatePostFileDto");
961
839
  var CreatePostFileDto = _CreatePostFileDto;
962
- _ts_decorate16([
840
+ _ts_decorate15([
963
841
  ApiProperty6({
964
842
  description: "Base64 encoded file",
965
843
  example: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
966
844
  }),
967
- IsString11(),
845
+ IsString10(),
968
846
  IsNotEmpty6(),
969
- _ts_metadata16("design:type", String)
847
+ _ts_metadata15("design:type", String)
970
848
  ], CreatePostFileDto.prototype, "fileBuffer", void 0);
971
- _ts_decorate16([
849
+ _ts_decorate15([
972
850
  ApiProperty6({
973
851
  description: "File name",
974
852
  example: "vacation-photo.jpg"
975
853
  }),
976
- IsString11(),
854
+ IsString10(),
977
855
  IsNotEmpty6(),
978
- _ts_metadata16("design:type", String)
856
+ _ts_metadata15("design:type", String)
979
857
  ], CreatePostFileDto.prototype, "fileName", void 0);
980
- _ts_decorate16([
858
+ _ts_decorate15([
981
859
  ApiProperty6({
982
860
  description: "MIME type",
983
861
  example: "image/jpeg",
984
862
  required: false
985
863
  }),
986
- IsString11(),
987
- IsOptional7(),
988
- _ts_metadata16("design:type", String)
864
+ IsString10(),
865
+ IsOptional6(),
866
+ _ts_metadata15("design:type", String)
989
867
  ], CreatePostFileDto.prototype, "mimeType", void 0);
990
- _ts_decorate16([
868
+ _ts_decorate15([
991
869
  ApiProperty6({
992
870
  description: "File type",
993
871
  example: "image",
@@ -996,24 +874,24 @@ _ts_decorate16([
996
874
  "video"
997
875
  ]
998
876
  }),
999
- IsString11(),
877
+ IsString10(),
1000
878
  IsNotEmpty6(),
1001
- _ts_metadata16("design:type", String)
879
+ _ts_metadata15("design:type", String)
1002
880
  ], CreatePostFileDto.prototype, "fileType", void 0);
1003
881
 
1004
882
  // dto/posts/create_post.dto.ts
1005
883
  import { Type as Type2 } from "class-transformer";
1006
- function _ts_decorate17(decorators, target, key, desc) {
884
+ function _ts_decorate16(decorators, target, key, desc) {
1007
885
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1008
886
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1009
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;
1010
888
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1011
889
  }
1012
- __name(_ts_decorate17, "_ts_decorate");
1013
- function _ts_metadata17(k, v) {
890
+ __name(_ts_decorate16, "_ts_decorate");
891
+ function _ts_metadata16(k, v) {
1014
892
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1015
893
  }
1016
- __name(_ts_metadata17, "_ts_metadata");
894
+ __name(_ts_metadata16, "_ts_metadata");
1017
895
  var _CreatePostDto = class _CreatePostDto {
1018
896
  constructor() {
1019
897
  __publicField(this, "description");
@@ -1023,30 +901,31 @@ var _CreatePostDto = class _CreatePostDto {
1023
901
  };
1024
902
  __name(_CreatePostDto, "CreatePostDto");
1025
903
  var CreatePostDto = _CreatePostDto;
1026
- _ts_decorate17([
904
+ _ts_decorate16([
1027
905
  ApiProperty7({
1028
906
  description: "Post description/content",
1029
907
  example: "Check out this amazing view!",
1030
908
  minLength: 1,
1031
909
  maxLength: 5e3
1032
910
  }),
1033
- IsString12(),
911
+ IsString11(),
1034
912
  IsNotEmpty7(),
1035
913
  MinLength6(1),
1036
- MaxLength6(5e3),
1037
- _ts_metadata17("design:type", String)
914
+ MaxLength5(5e3),
915
+ _ts_metadata16("design:type", String)
1038
916
  ], CreatePostDto.prototype, "description", void 0);
1039
- _ts_decorate17([
917
+ _ts_decorate16([
1040
918
  ApiProperty7({
1041
919
  description: "The business sector for the post",
1042
920
  enum: BusinessSector,
1043
921
  required: true,
1044
922
  default: BusinessSector.CONSULTING
1045
923
  }),
1046
- IsEnum4(BusinessSector),
1047
- _ts_metadata17("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
924
+ IsEnum3(BusinessSector),
925
+ IsOptional7(),
926
+ _ts_metadata16("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
1048
927
  ], CreatePostDto.prototype, "sector", void 0);
1049
- _ts_decorate17([
928
+ _ts_decorate16([
1050
929
  ApiProperty7({
1051
930
  description: "Array of files to upload with the post",
1052
931
  type: [
@@ -1059,26 +938,26 @@ _ts_decorate17([
1059
938
  each: true
1060
939
  }),
1061
940
  Type2(() => CreatePostFileDto),
1062
- IsOptional8(),
1063
- _ts_metadata17("design:type", Array)
941
+ IsOptional7(),
942
+ _ts_metadata16("design:type", Array)
1064
943
  ], CreatePostDto.prototype, "files", void 0);
1065
944
 
1066
945
  // dto/posts/post_response.dto.ts
1067
- import { ApiProperty as ApiProperty10 } from "@nestjs/swagger";
946
+ import { ApiProperty as ApiProperty9 } from "@nestjs/swagger";
1068
947
 
1069
948
  // dto/posts/post_file.dto.ts
1070
949
  import { ApiProperty as ApiProperty8 } from "@nestjs/swagger";
1071
- function _ts_decorate18(decorators, target, key, desc) {
950
+ function _ts_decorate17(decorators, target, key, desc) {
1072
951
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1073
952
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1074
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;
1075
954
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1076
955
  }
1077
- __name(_ts_decorate18, "_ts_decorate");
1078
- function _ts_metadata18(k, v) {
956
+ __name(_ts_decorate17, "_ts_decorate");
957
+ function _ts_metadata17(k, v) {
1079
958
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1080
959
  }
1081
- __name(_ts_metadata18, "_ts_metadata");
960
+ __name(_ts_metadata17, "_ts_metadata");
1082
961
  var _PostFileDto = class _PostFileDto {
1083
962
  constructor() {
1084
963
  __publicField(this, "id");
@@ -1091,19 +970,19 @@ var _PostFileDto = class _PostFileDto {
1091
970
  };
1092
971
  __name(_PostFileDto, "PostFileDto");
1093
972
  var PostFileDto = _PostFileDto;
1094
- _ts_decorate18([
973
+ _ts_decorate17([
1095
974
  ApiProperty8({
1096
975
  example: "123e4567-e89b-12d3-a456-426614174000"
1097
976
  }),
1098
- _ts_metadata18("design:type", String)
977
+ _ts_metadata17("design:type", String)
1099
978
  ], PostFileDto.prototype, "id", void 0);
1100
- _ts_decorate18([
979
+ _ts_decorate17([
1101
980
  ApiProperty8({
1102
981
  example: "https://storage.example.com/posts/image.jpg"
1103
982
  }),
1104
- _ts_metadata18("design:type", String)
983
+ _ts_metadata17("design:type", String)
1105
984
  ], PostFileDto.prototype, "fileUrl", void 0);
1106
- _ts_decorate18([
985
+ _ts_decorate17([
1107
986
  ApiProperty8({
1108
987
  example: "image",
1109
988
  enum: [
@@ -1111,85 +990,41 @@ _ts_decorate18([
1111
990
  "video"
1112
991
  ]
1113
992
  }),
1114
- _ts_metadata18("design:type", String)
993
+ _ts_metadata17("design:type", String)
1115
994
  ], PostFileDto.prototype, "fileType", void 0);
1116
- _ts_decorate18([
995
+ _ts_decorate17([
1117
996
  ApiProperty8({
1118
997
  example: "image/jpeg",
1119
998
  nullable: true
1120
999
  }),
1121
- _ts_metadata18("design:type", Object)
1000
+ _ts_metadata17("design:type", Object)
1122
1001
  ], PostFileDto.prototype, "mimeType", void 0);
1123
- _ts_decorate18([
1002
+ _ts_decorate17([
1124
1003
  ApiProperty8({
1125
1004
  example: 0
1126
1005
  }),
1127
- _ts_metadata18("design:type", Number)
1006
+ _ts_metadata17("design:type", Number)
1128
1007
  ], PostFileDto.prototype, "orderIndex", void 0);
1129
- _ts_decorate18([
1008
+ _ts_decorate17([
1130
1009
  ApiProperty8({
1131
1010
  example: "2024-01-15T10:30:00Z"
1132
1011
  }),
1133
- _ts_metadata18("design:type", typeof Date === "undefined" ? Object : Date)
1012
+ _ts_metadata17("design:type", typeof Date === "undefined" ? Object : Date)
1134
1013
  ], PostFileDto.prototype, "createdAt", void 0);
1135
1014
 
1136
1015
  // dto/posts/post_response.dto.ts
1137
- import { IsEnum as IsEnum5 } from "class-validator";
1138
-
1139
- // dto/tags/tag_response.dto.ts
1140
- import { ApiProperty as ApiProperty9 } from "@nestjs/swagger";
1141
- function _ts_decorate19(decorators, target, key, desc) {
1142
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1143
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1144
- 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;
1145
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1146
- }
1147
- __name(_ts_decorate19, "_ts_decorate");
1148
- function _ts_metadata19(k, v) {
1149
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1150
- }
1151
- __name(_ts_metadata19, "_ts_metadata");
1152
- var _TagResponseDto = class _TagResponseDto {
1153
- constructor() {
1154
- __publicField(this, "name");
1155
- __publicField(this, "slug");
1156
- // Optional: Include id if you need it for specific actions
1157
- __publicField(this, "id");
1158
- }
1159
- };
1160
- __name(_TagResponseDto, "TagResponseDto");
1161
- var TagResponseDto = _TagResponseDto;
1162
- _ts_decorate19([
1163
- ApiProperty9({
1164
- example: "React JS"
1165
- }),
1166
- _ts_metadata19("design:type", String)
1167
- ], TagResponseDto.prototype, "name", void 0);
1168
- _ts_decorate19([
1169
- ApiProperty9({
1170
- example: "react-js"
1171
- }),
1172
- _ts_metadata19("design:type", String)
1173
- ], TagResponseDto.prototype, "slug", void 0);
1174
- _ts_decorate19([
1175
- ApiProperty9({
1176
- example: "uuid-v4-string"
1177
- }),
1178
- _ts_metadata19("design:type", String)
1179
- ], TagResponseDto.prototype, "id", void 0);
1180
-
1181
- // dto/posts/post_response.dto.ts
1182
- function _ts_decorate20(decorators, target, key, desc) {
1016
+ import { IsEnum as IsEnum4 } from "class-validator";
1017
+ function _ts_decorate18(decorators, target, key, desc) {
1183
1018
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1184
1019
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1185
1020
  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;
1186
1021
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1187
1022
  }
1188
- __name(_ts_decorate20, "_ts_decorate");
1189
- function _ts_metadata20(k, v) {
1023
+ __name(_ts_decorate18, "_ts_decorate");
1024
+ function _ts_metadata18(k, v) {
1190
1025
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1191
1026
  }
1192
- __name(_ts_metadata20, "_ts_metadata");
1027
+ __name(_ts_metadata18, "_ts_metadata");
1193
1028
  var _PostResponseDto = class _PostResponseDto {
1194
1029
  constructor() {
1195
1030
  __publicField(this, "id");
@@ -1198,7 +1033,6 @@ var _PostResponseDto = class _PostResponseDto {
1198
1033
  __publicField(this, "publisherFullName");
1199
1034
  __publicField(this, "publisherProfilePictureUrl");
1200
1035
  __publicField(this, "files");
1201
- __publicField(this, "tags");
1202
1036
  __publicField(this, "commentsCount");
1203
1037
  __publicField(this, "sector");
1204
1038
  __publicField(this, "likesCount");
@@ -1208,102 +1042,93 @@ var _PostResponseDto = class _PostResponseDto {
1208
1042
  };
1209
1043
  __name(_PostResponseDto, "PostResponseDto");
1210
1044
  var PostResponseDto = _PostResponseDto;
1211
- _ts_decorate20([
1212
- ApiProperty10({
1045
+ _ts_decorate18([
1046
+ ApiProperty9({
1213
1047
  example: "123e4567-e89b-12d3-a456-426614174000"
1214
1048
  }),
1215
- _ts_metadata20("design:type", String)
1049
+ _ts_metadata18("design:type", String)
1216
1050
  ], PostResponseDto.prototype, "id", void 0);
1217
- _ts_decorate20([
1218
- ApiProperty10({
1051
+ _ts_decorate18([
1052
+ ApiProperty9({
1219
1053
  example: "123e4567-e89b-12d3-a456-426614174001"
1220
1054
  }),
1221
- _ts_metadata20("design:type", String)
1055
+ _ts_metadata18("design:type", String)
1222
1056
  ], PostResponseDto.prototype, "publisherId", void 0);
1223
- _ts_decorate20([
1224
- ApiProperty10({
1057
+ _ts_decorate18([
1058
+ ApiProperty9({
1225
1059
  example: "Check out this amazing view!"
1226
1060
  }),
1227
- _ts_metadata20("design:type", String)
1061
+ _ts_metadata18("design:type", String)
1228
1062
  ], PostResponseDto.prototype, "description", void 0);
1229
- _ts_decorate20([
1230
- ApiProperty10({
1063
+ _ts_decorate18([
1064
+ ApiProperty9({
1231
1065
  example: "John Doe"
1232
1066
  }),
1233
- _ts_metadata20("design:type", String)
1067
+ _ts_metadata18("design:type", String)
1234
1068
  ], PostResponseDto.prototype, "publisherFullName", void 0);
1235
- _ts_decorate20([
1236
- ApiProperty10({
1069
+ _ts_decorate18([
1070
+ ApiProperty9({
1237
1071
  example: "https://example.com/profile.jpg",
1238
1072
  nullable: true
1239
1073
  }),
1240
- _ts_metadata20("design:type", Object)
1074
+ _ts_metadata18("design:type", Object)
1241
1075
  ], PostResponseDto.prototype, "publisherProfilePictureUrl", void 0);
1242
- _ts_decorate20([
1243
- ApiProperty10({
1076
+ _ts_decorate18([
1077
+ ApiProperty9({
1244
1078
  type: [
1245
1079
  PostFileDto
1246
1080
  ]
1247
1081
  }),
1248
- _ts_metadata20("design:type", Array)
1082
+ _ts_metadata18("design:type", Array)
1249
1083
  ], PostResponseDto.prototype, "files", void 0);
1250
- _ts_decorate20([
1251
- ApiProperty10({
1252
- type: [
1253
- TagResponseDto
1254
- ],
1255
- description: "List of tags associated with the post"
1256
- }),
1257
- _ts_metadata20("design:type", Array)
1258
- ], PostResponseDto.prototype, "tags", void 0);
1259
- _ts_decorate20([
1260
- ApiProperty10({
1084
+ _ts_decorate18([
1085
+ ApiProperty9({
1261
1086
  example: 42
1262
1087
  }),
1263
- _ts_metadata20("design:type", Number)
1088
+ _ts_metadata18("design:type", Number)
1264
1089
  ], PostResponseDto.prototype, "commentsCount", void 0);
1265
- _ts_decorate20([
1266
- ApiProperty10({
1090
+ _ts_decorate18([
1091
+ ApiProperty9({
1267
1092
  description: "The Bunsieess sector type for the post",
1268
1093
  enum: BusinessSector,
1269
1094
  required: false,
1270
1095
  default: BusinessSector.CONSULTING
1271
1096
  }),
1272
- IsEnum5(BusinessSector),
1273
- _ts_metadata20("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
1097
+ IsEnum4(BusinessSector),
1098
+ _ts_metadata18("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
1274
1099
  ], PostResponseDto.prototype, "sector", void 0);
1275
- _ts_decorate20([
1276
- ApiProperty10({
1100
+ _ts_decorate18([
1101
+ ApiProperty9({
1277
1102
  example: 128
1278
1103
  }),
1279
- _ts_metadata20("design:type", Number)
1104
+ _ts_metadata18("design:type", Number)
1280
1105
  ], PostResponseDto.prototype, "likesCount", void 0);
1281
- _ts_decorate20([
1282
- ApiProperty10({
1106
+ _ts_decorate18([
1107
+ ApiProperty9({
1283
1108
  example: "2024-01-15T10:30:00Z"
1284
1109
  }),
1285
- _ts_metadata20("design:type", typeof Date === "undefined" ? Object : Date)
1110
+ _ts_metadata18("design:type", typeof Date === "undefined" ? Object : Date)
1286
1111
  ], PostResponseDto.prototype, "createdAt", void 0);
1287
- _ts_decorate20([
1288
- ApiProperty10({
1112
+ _ts_decorate18([
1113
+ ApiProperty9({
1289
1114
  example: "2024-01-15T10:30:00Z"
1290
1115
  }),
1291
- _ts_metadata20("design:type", typeof Date === "undefined" ? Object : Date)
1116
+ _ts_metadata18("design:type", typeof Date === "undefined" ? Object : Date)
1292
1117
  ], PostResponseDto.prototype, "updatedAt", void 0);
1293
1118
 
1294
1119
  // dto/posts/pagination_post.dto.ts
1295
- import { ApiProperty as ApiProperty11 } from "@nestjs/swagger";
1296
- function _ts_decorate21(decorators, target, key, desc) {
1120
+ import { ApiProperty as ApiProperty10 } from "@nestjs/swagger";
1121
+ function _ts_decorate19(decorators, target, key, desc) {
1297
1122
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1298
1123
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1299
1124
  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;
1300
1125
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1301
1126
  }
1302
- __name(_ts_decorate21, "_ts_decorate");
1303
- function _ts_metadata21(k, v) {
1127
+ __name(_ts_decorate19, "_ts_decorate");
1128
+ function _ts_metadata19(k, v) {
1304
1129
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1305
1130
  }
1306
- __name(_ts_metadata21, "_ts_metadata");
1131
+ __name(_ts_metadata19, "_ts_metadata");
1307
1132
  var _PaginatedPostsDto = class _PaginatedPostsDto {
1308
1133
  constructor() {
1309
1134
  __publicField(this, "posts");
@@ -1314,47 +1139,47 @@ var _PaginatedPostsDto = class _PaginatedPostsDto {
1314
1139
  };
1315
1140
  __name(_PaginatedPostsDto, "PaginatedPostsDto");
1316
1141
  var PaginatedPostsDto = _PaginatedPostsDto;
1317
- _ts_decorate21([
1318
- ApiProperty11({
1142
+ _ts_decorate19([
1143
+ ApiProperty10({
1319
1144
  type: [
1320
1145
  PostResponseDto
1321
1146
  ]
1322
1147
  }),
1323
- _ts_metadata21("design:type", Array)
1148
+ _ts_metadata19("design:type", Array)
1324
1149
  ], PaginatedPostsDto.prototype, "posts", void 0);
1325
- _ts_decorate21([
1326
- ApiProperty11({
1150
+ _ts_decorate19([
1151
+ ApiProperty10({
1327
1152
  example: 100
1328
1153
  }),
1329
- _ts_metadata21("design:type", Number)
1154
+ _ts_metadata19("design:type", Number)
1330
1155
  ], PaginatedPostsDto.prototype, "total", void 0);
1331
- _ts_decorate21([
1332
- ApiProperty11({
1156
+ _ts_decorate19([
1157
+ ApiProperty10({
1333
1158
  example: 1
1334
1159
  }),
1335
- _ts_metadata21("design:type", Number)
1160
+ _ts_metadata19("design:type", Number)
1336
1161
  ], PaginatedPostsDto.prototype, "page", void 0);
1337
- _ts_decorate21([
1338
- ApiProperty11({
1162
+ _ts_decorate19([
1163
+ ApiProperty10({
1339
1164
  example: 10
1340
1165
  }),
1341
- _ts_metadata21("design:type", Number)
1166
+ _ts_metadata19("design:type", Number)
1342
1167
  ], PaginatedPostsDto.prototype, "totalPages", void 0);
1343
1168
 
1344
1169
  // dto/posts/update_post.dto.ts
1345
- import { ApiProperty as ApiProperty12, ApiPropertyOptional as ApiPropertyOptional5 } from "@nestjs/swagger";
1346
- import { IsEnum as IsEnum6, IsNotEmpty as IsNotEmpty8, IsOptional as IsOptional9, IsString as IsString13, MaxLength as MaxLength7, MinLength as MinLength7 } from "class-validator";
1347
- function _ts_decorate22(decorators, target, key, desc) {
1170
+ import { ApiProperty as ApiProperty11 } from "@nestjs/swagger";
1171
+ import { IsEnum as IsEnum5, IsNotEmpty as IsNotEmpty8, IsString as IsString12, MaxLength as MaxLength6, MinLength as MinLength7 } from "class-validator";
1172
+ function _ts_decorate20(decorators, target, key, desc) {
1348
1173
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1349
1174
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1350
1175
  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;
1351
1176
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1352
1177
  }
1353
- __name(_ts_decorate22, "_ts_decorate");
1354
- function _ts_metadata22(k, v) {
1178
+ __name(_ts_decorate20, "_ts_decorate");
1179
+ function _ts_metadata20(k, v) {
1355
1180
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1356
1181
  }
1357
- __name(_ts_metadata22, "_ts_metadata");
1182
+ __name(_ts_metadata20, "_ts_metadata");
1358
1183
  var _UpdatePostDto = class _UpdatePostDto {
1359
1184
  constructor() {
1360
1185
  __publicField(this, "description");
@@ -1363,29 +1188,29 @@ var _UpdatePostDto = class _UpdatePostDto {
1363
1188
  };
1364
1189
  __name(_UpdatePostDto, "UpdatePostDto");
1365
1190
  var UpdatePostDto = _UpdatePostDto;
1366
- _ts_decorate22([
1367
- ApiProperty12({
1191
+ _ts_decorate20([
1192
+ ApiProperty11({
1368
1193
  description: "Post description/content",
1369
1194
  example: "Updated: Check out this amazing view!",
1370
1195
  minLength: 1,
1371
1196
  maxLength: 5e3,
1372
1197
  required: false
1373
1198
  }),
1374
- IsString13(),
1199
+ IsString12(),
1375
1200
  IsNotEmpty8(),
1376
1201
  MinLength7(1),
1377
- MaxLength7(5e3),
1378
- IsOptional9(),
1379
- _ts_metadata22("design:type", String)
1202
+ MaxLength6(5e3),
1203
+ _ts_metadata20("design:type", String)
1380
1204
  ], UpdatePostDto.prototype, "description", void 0);
1381
- _ts_decorate22([
1382
- ApiPropertyOptional5({
1383
- description: "The Business sector type for the post",
1384
- enum: BusinessSector
1205
+ _ts_decorate20([
1206
+ ApiProperty11({
1207
+ description: "The Bunsieess sector type for the post",
1208
+ enum: BusinessSector,
1209
+ required: true,
1210
+ default: BusinessSector.CONSULTING
1385
1211
  }),
1386
- IsOptional9(),
1387
- IsEnum6(BusinessSector),
1388
- _ts_metadata22("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
1212
+ IsEnum5(BusinessSector),
1213
+ _ts_metadata20("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
1389
1214
  ], UpdatePostDto.prototype, "sector", void 0);
1390
1215
 
1391
1216
  // dto/posts/post_fields.dto.ts
@@ -1408,18 +1233,18 @@ __name(_PostFields, "PostFields");
1408
1233
  var PostFields = _PostFields;
1409
1234
 
1410
1235
  // dto/posts/post_response_self.dto.ts
1411
- import { ApiProperty as ApiProperty13 } from "@nestjs/swagger";
1412
- function _ts_decorate23(decorators, target, key, desc) {
1236
+ import { ApiProperty as ApiProperty12 } from "@nestjs/swagger";
1237
+ function _ts_decorate21(decorators, target, key, desc) {
1413
1238
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1414
1239
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1415
1240
  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;
1416
1241
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1417
1242
  }
1418
- __name(_ts_decorate23, "_ts_decorate");
1419
- function _ts_metadata23(k, v) {
1243
+ __name(_ts_decorate21, "_ts_decorate");
1244
+ function _ts_metadata21(k, v) {
1420
1245
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1421
1246
  }
1422
- __name(_ts_metadata23, "_ts_metadata");
1247
+ __name(_ts_metadata21, "_ts_metadata");
1423
1248
  var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
1424
1249
  constructor() {
1425
1250
  super(...arguments);
@@ -1428,26 +1253,26 @@ var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
1428
1253
  };
1429
1254
  __name(_PostResponseSelfDto, "PostResponseSelfDto");
1430
1255
  var PostResponseSelfDto = _PostResponseSelfDto;
1431
- _ts_decorate23([
1432
- ApiProperty13({
1256
+ _ts_decorate21([
1257
+ ApiProperty12({
1433
1258
  example: true
1434
1259
  }),
1435
- _ts_metadata23("design:type", Boolean)
1260
+ _ts_metadata21("design:type", Boolean)
1436
1261
  ], PostResponseSelfDto.prototype, "hidden", void 0);
1437
1262
 
1438
1263
  // dto/posts/pagination_post_self.dto.ts
1439
- import { ApiProperty as ApiProperty14 } from "@nestjs/swagger";
1440
- function _ts_decorate24(decorators, target, key, desc) {
1264
+ import { ApiProperty as ApiProperty13 } from "@nestjs/swagger";
1265
+ function _ts_decorate22(decorators, target, key, desc) {
1441
1266
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1442
1267
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1443
1268
  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;
1444
1269
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1445
1270
  }
1446
- __name(_ts_decorate24, "_ts_decorate");
1447
- function _ts_metadata24(k, v) {
1271
+ __name(_ts_decorate22, "_ts_decorate");
1272
+ function _ts_metadata22(k, v) {
1448
1273
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1449
1274
  }
1450
- __name(_ts_metadata24, "_ts_metadata");
1275
+ __name(_ts_metadata22, "_ts_metadata");
1451
1276
  var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
1452
1277
  constructor() {
1453
1278
  __publicField(this, "posts");
@@ -1458,46 +1283,46 @@ var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
1458
1283
  };
1459
1284
  __name(_PaginatedPostsSelfDto, "PaginatedPostsSelfDto");
1460
1285
  var PaginatedPostsSelfDto = _PaginatedPostsSelfDto;
1461
- _ts_decorate24([
1462
- ApiProperty14({
1286
+ _ts_decorate22([
1287
+ ApiProperty13({
1463
1288
  type: [
1464
1289
  PostResponseDto
1465
1290
  ]
1466
1291
  }),
1467
- _ts_metadata24("design:type", Array)
1292
+ _ts_metadata22("design:type", Array)
1468
1293
  ], PaginatedPostsSelfDto.prototype, "posts", void 0);
1469
- _ts_decorate24([
1470
- ApiProperty14({
1294
+ _ts_decorate22([
1295
+ ApiProperty13({
1471
1296
  example: 100
1472
1297
  }),
1473
- _ts_metadata24("design:type", Number)
1298
+ _ts_metadata22("design:type", Number)
1474
1299
  ], PaginatedPostsSelfDto.prototype, "total", void 0);
1475
- _ts_decorate24([
1476
- ApiProperty14({
1300
+ _ts_decorate22([
1301
+ ApiProperty13({
1477
1302
  example: 1
1478
1303
  }),
1479
- _ts_metadata24("design:type", Number)
1304
+ _ts_metadata22("design:type", Number)
1480
1305
  ], PaginatedPostsSelfDto.prototype, "page", void 0);
1481
- _ts_decorate24([
1482
- ApiProperty14({
1306
+ _ts_decorate22([
1307
+ ApiProperty13({
1483
1308
  example: 10
1484
1309
  }),
1485
- _ts_metadata24("design:type", Number)
1310
+ _ts_metadata22("design:type", Number)
1486
1311
  ], PaginatedPostsSelfDto.prototype, "totalPages", void 0);
1487
1312
 
1488
1313
  // dto/posts/reorder_post_file.dto.ts
1489
- import { IsInt as IsInt4, Max, Min as Min4 } from "class-validator";
1490
- function _ts_decorate25(decorators, target, key, desc) {
1314
+ import { IsInt as IsInt3, Max, Min as Min3 } from "class-validator";
1315
+ function _ts_decorate23(decorators, target, key, desc) {
1491
1316
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1492
1317
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1493
1318
  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;
1494
1319
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1495
1320
  }
1496
- __name(_ts_decorate25, "_ts_decorate");
1497
- function _ts_metadata25(k, v) {
1321
+ __name(_ts_decorate23, "_ts_decorate");
1322
+ function _ts_metadata23(k, v) {
1498
1323
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1499
1324
  }
1500
- __name(_ts_metadata25, "_ts_metadata");
1325
+ __name(_ts_metadata23, "_ts_metadata");
1501
1326
  var _ReorderDto = class _ReorderDto {
1502
1327
  constructor() {
1503
1328
  __publicField(this, "newIndex");
@@ -1505,26 +1330,26 @@ var _ReorderDto = class _ReorderDto {
1505
1330
  };
1506
1331
  __name(_ReorderDto, "ReorderDto");
1507
1332
  var ReorderDto = _ReorderDto;
1508
- _ts_decorate25([
1509
- IsInt4(),
1510
- Min4(0),
1333
+ _ts_decorate23([
1334
+ IsInt3(),
1335
+ Min3(0),
1511
1336
  Max(100),
1512
- _ts_metadata25("design:type", Number)
1337
+ _ts_metadata23("design:type", Number)
1513
1338
  ], ReorderDto.prototype, "newIndex", void 0);
1514
1339
 
1515
1340
  // dto/posts/post_like_response.dto.ts
1516
- import { ApiProperty as ApiProperty15 } from "@nestjs/swagger";
1517
- function _ts_decorate26(decorators, target, key, desc) {
1341
+ import { ApiProperty as ApiProperty14 } from "@nestjs/swagger";
1342
+ function _ts_decorate24(decorators, target, key, desc) {
1518
1343
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1519
1344
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1520
1345
  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;
1521
1346
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1522
1347
  }
1523
- __name(_ts_decorate26, "_ts_decorate");
1524
- function _ts_metadata26(k, v) {
1348
+ __name(_ts_decorate24, "_ts_decorate");
1349
+ function _ts_metadata24(k, v) {
1525
1350
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1526
1351
  }
1527
- __name(_ts_metadata26, "_ts_metadata");
1352
+ __name(_ts_metadata24, "_ts_metadata");
1528
1353
  var _PostLikeResponseDto = class _PostLikeResponseDto {
1529
1354
  constructor() {
1530
1355
  __publicField(this, "id");
@@ -1538,65 +1363,65 @@ var _PostLikeResponseDto = class _PostLikeResponseDto {
1538
1363
  };
1539
1364
  __name(_PostLikeResponseDto, "PostLikeResponseDto");
1540
1365
  var PostLikeResponseDto = _PostLikeResponseDto;
1541
- _ts_decorate26([
1542
- ApiProperty15({
1366
+ _ts_decorate24([
1367
+ ApiProperty14({
1543
1368
  example: "123e4567-e89b-12d3-a456-426614174005"
1544
1369
  }),
1545
- _ts_metadata26("design:type", String)
1370
+ _ts_metadata24("design:type", String)
1546
1371
  ], PostLikeResponseDto.prototype, "id", void 0);
1547
- _ts_decorate26([
1548
- ApiProperty15({
1372
+ _ts_decorate24([
1373
+ ApiProperty14({
1549
1374
  example: "123e4567-e89b-12d3-a456-426614174000"
1550
1375
  }),
1551
- _ts_metadata26("design:type", String)
1376
+ _ts_metadata24("design:type", String)
1552
1377
  ], PostLikeResponseDto.prototype, "postId", void 0);
1553
- _ts_decorate26([
1554
- ApiProperty15({
1378
+ _ts_decorate24([
1379
+ ApiProperty14({
1555
1380
  example: "123e4567-e89b-12d3-a456-426614174002"
1556
1381
  }),
1557
- _ts_metadata26("design:type", String)
1382
+ _ts_metadata24("design:type", String)
1558
1383
  ], PostLikeResponseDto.prototype, "userId", void 0);
1559
- _ts_decorate26([
1560
- ApiProperty15({
1384
+ _ts_decorate24([
1385
+ ApiProperty14({
1561
1386
  example: "John Doe"
1562
1387
  }),
1563
- _ts_metadata26("design:type", String)
1388
+ _ts_metadata24("design:type", String)
1564
1389
  ], PostLikeResponseDto.prototype, "userFullName", void 0);
1565
- _ts_decorate26([
1566
- ApiProperty15({
1390
+ _ts_decorate24([
1391
+ ApiProperty14({
1567
1392
  example: "https://example.com/avatar.jpg",
1568
1393
  nullable: true
1569
1394
  }),
1570
- _ts_metadata26("design:type", Object)
1395
+ _ts_metadata24("design:type", Object)
1571
1396
  ], PostLikeResponseDto.prototype, "userProfilePictureUrl", void 0);
1572
- _ts_decorate26([
1573
- ApiProperty15({
1397
+ _ts_decorate24([
1398
+ ApiProperty14({
1574
1399
  enum: ReactionType,
1575
1400
  example: ReactionType.LIKE
1576
1401
  }),
1577
- _ts_metadata26("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
1402
+ _ts_metadata24("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
1578
1403
  ], PostLikeResponseDto.prototype, "type", void 0);
1579
- _ts_decorate26([
1580
- ApiProperty15({
1404
+ _ts_decorate24([
1405
+ ApiProperty14({
1581
1406
  example: "2026-01-14T12:00:00Z"
1582
1407
  }),
1583
- _ts_metadata26("design:type", typeof Date === "undefined" ? Object : Date)
1408
+ _ts_metadata24("design:type", typeof Date === "undefined" ? Object : Date)
1584
1409
  ], PostLikeResponseDto.prototype, "createdAt", void 0);
1585
1410
 
1586
1411
  // dto/posts/like_post.dto.ts
1587
- import { ApiProperty as ApiProperty16 } from "@nestjs/swagger";
1588
- import { IsEnum as IsEnum7, IsOptional as IsOptional10 } from "class-validator";
1589
- function _ts_decorate27(decorators, target, key, desc) {
1412
+ import { ApiProperty as ApiProperty15 } from "@nestjs/swagger";
1413
+ import { IsEnum as IsEnum6, IsOptional as IsOptional8 } from "class-validator";
1414
+ function _ts_decorate25(decorators, target, key, desc) {
1590
1415
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1591
1416
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1592
1417
  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;
1593
1418
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1594
1419
  }
1595
- __name(_ts_decorate27, "_ts_decorate");
1596
- function _ts_metadata27(k, v) {
1420
+ __name(_ts_decorate25, "_ts_decorate");
1421
+ function _ts_metadata25(k, v) {
1597
1422
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1598
1423
  }
1599
- __name(_ts_metadata27, "_ts_metadata");
1424
+ __name(_ts_metadata25, "_ts_metadata");
1600
1425
  var _LikePostDto = class _LikePostDto {
1601
1426
  constructor() {
1602
1427
  __publicField(this, "type");
@@ -1604,31 +1429,31 @@ var _LikePostDto = class _LikePostDto {
1604
1429
  };
1605
1430
  __name(_LikePostDto, "LikePostDto");
1606
1431
  var LikePostDto = _LikePostDto;
1607
- _ts_decorate27([
1608
- ApiProperty16({
1432
+ _ts_decorate25([
1433
+ ApiProperty15({
1609
1434
  description: "The reaction type for the post",
1610
1435
  enum: ReactionType,
1611
1436
  required: false,
1612
1437
  default: ReactionType.LIKE
1613
1438
  }),
1614
- IsEnum7(ReactionType),
1615
- IsOptional10(),
1616
- _ts_metadata27("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
1439
+ IsEnum6(ReactionType),
1440
+ IsOptional8(),
1441
+ _ts_metadata25("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
1617
1442
  ], LikePostDto.prototype, "type", void 0);
1618
1443
 
1619
1444
  // dto/posts/paginated_post_like_dto.ts
1620
- import { ApiProperty as ApiProperty17 } from "@nestjs/swagger";
1621
- function _ts_decorate28(decorators, target, key, desc) {
1445
+ import { ApiProperty as ApiProperty16 } from "@nestjs/swagger";
1446
+ function _ts_decorate26(decorators, target, key, desc) {
1622
1447
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1623
1448
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1624
1449
  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;
1625
1450
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1626
1451
  }
1627
- __name(_ts_decorate28, "_ts_decorate");
1628
- function _ts_metadata28(k, v) {
1452
+ __name(_ts_decorate26, "_ts_decorate");
1453
+ function _ts_metadata26(k, v) {
1629
1454
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1630
1455
  }
1631
- __name(_ts_metadata28, "_ts_metadata");
1456
+ __name(_ts_metadata26, "_ts_metadata");
1632
1457
  var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
1633
1458
  constructor() {
1634
1459
  __publicField(this, "likes");
@@ -1639,47 +1464,47 @@ var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
1639
1464
  };
1640
1465
  __name(_PaginatedPostLikesDto, "PaginatedPostLikesDto");
1641
1466
  var PaginatedPostLikesDto = _PaginatedPostLikesDto;
1642
- _ts_decorate28([
1643
- ApiProperty17({
1467
+ _ts_decorate26([
1468
+ ApiProperty16({
1644
1469
  type: [
1645
1470
  PostLikeResponseDto
1646
1471
  ]
1647
1472
  }),
1648
- _ts_metadata28("design:type", Array)
1649
- ], PaginatedPostLikesDto.prototype, "likes", void 0);
1650
- _ts_decorate28([
1651
- ApiProperty17({
1473
+ _ts_metadata26("design:type", Array)
1474
+ ], PaginatedPostLikesDto.prototype, "likes", void 0);
1475
+ _ts_decorate26([
1476
+ ApiProperty16({
1652
1477
  example: 100
1653
1478
  }),
1654
- _ts_metadata28("design:type", Number)
1479
+ _ts_metadata26("design:type", Number)
1655
1480
  ], PaginatedPostLikesDto.prototype, "total", void 0);
1656
- _ts_decorate28([
1657
- ApiProperty17({
1481
+ _ts_decorate26([
1482
+ ApiProperty16({
1658
1483
  example: 1
1659
1484
  }),
1660
- _ts_metadata28("design:type", Number)
1485
+ _ts_metadata26("design:type", Number)
1661
1486
  ], PaginatedPostLikesDto.prototype, "page", void 0);
1662
- _ts_decorate28([
1663
- ApiProperty17({
1487
+ _ts_decorate26([
1488
+ ApiProperty16({
1664
1489
  example: 10
1665
1490
  }),
1666
- _ts_metadata28("design:type", Number)
1491
+ _ts_metadata26("design:type", Number)
1667
1492
  ], PaginatedPostLikesDto.prototype, "totalPages", void 0);
1668
1493
 
1669
1494
  // dto/comments/create_comment.dto.ts
1670
- import { ApiProperty as ApiProperty18 } from "@nestjs/swagger";
1671
- import { IsNotEmpty as IsNotEmpty9, IsOptional as IsOptional11, IsString as IsString14, IsUUID, MaxLength as MaxLength8, MinLength as MinLength8 } from "class-validator";
1672
- function _ts_decorate29(decorators, target, key, desc) {
1495
+ import { ApiProperty as ApiProperty17 } from "@nestjs/swagger";
1496
+ import { IsNotEmpty as IsNotEmpty9, IsOptional as IsOptional9, IsString as IsString13, IsUUID, MaxLength as MaxLength7, MinLength as MinLength8 } from "class-validator";
1497
+ function _ts_decorate27(decorators, target, key, desc) {
1673
1498
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1674
1499
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1675
1500
  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;
1676
1501
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1677
1502
  }
1678
- __name(_ts_decorate29, "_ts_decorate");
1679
- function _ts_metadata29(k, v) {
1503
+ __name(_ts_decorate27, "_ts_decorate");
1504
+ function _ts_metadata27(k, v) {
1680
1505
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1681
1506
  }
1682
- __name(_ts_metadata29, "_ts_metadata");
1507
+ __name(_ts_metadata27, "_ts_metadata");
1683
1508
  var _CreateCommentDto = class _CreateCommentDto {
1684
1509
  constructor() {
1685
1510
  __publicField(this, "postId");
@@ -1689,52 +1514,52 @@ var _CreateCommentDto = class _CreateCommentDto {
1689
1514
  };
1690
1515
  __name(_CreateCommentDto, "CreateCommentDto");
1691
1516
  var CreateCommentDto = _CreateCommentDto;
1692
- _ts_decorate29([
1693
- ApiProperty18({
1517
+ _ts_decorate27([
1518
+ ApiProperty17({
1694
1519
  description: "Post ID to comment on",
1695
1520
  example: "123e4567-e89b-12d3-a456-426614174000"
1696
1521
  }),
1697
1522
  IsUUID(),
1698
1523
  IsNotEmpty9(),
1699
- _ts_metadata29("design:type", String)
1524
+ _ts_metadata27("design:type", String)
1700
1525
  ], CreateCommentDto.prototype, "postId", void 0);
1701
- _ts_decorate29([
1702
- ApiProperty18({
1526
+ _ts_decorate27([
1527
+ ApiProperty17({
1703
1528
  description: "Comment content",
1704
1529
  example: "Great post!",
1705
1530
  minLength: 1,
1706
1531
  maxLength: 5e3
1707
1532
  }),
1708
- IsString14(),
1533
+ IsString13(),
1709
1534
  IsNotEmpty9(),
1710
1535
  MinLength8(1),
1711
- MaxLength8(5e3),
1712
- _ts_metadata29("design:type", String)
1536
+ MaxLength7(5e3),
1537
+ _ts_metadata27("design:type", String)
1713
1538
  ], CreateCommentDto.prototype, "content", void 0);
1714
- _ts_decorate29([
1715
- ApiProperty18({
1539
+ _ts_decorate27([
1540
+ ApiProperty17({
1716
1541
  description: "Parent comment ID for nested replies",
1717
1542
  example: "123e4567-e89b-12d3-a456-426614174002",
1718
1543
  required: false
1719
1544
  }),
1720
1545
  IsUUID(),
1721
- IsOptional11(),
1722
- _ts_metadata29("design:type", String)
1546
+ IsOptional9(),
1547
+ _ts_metadata27("design:type", String)
1723
1548
  ], CreateCommentDto.prototype, "parentCommentId", void 0);
1724
1549
 
1725
1550
  // dto/comments/comment_response.dto.ts
1726
- import { ApiProperty as ApiProperty19 } from "@nestjs/swagger";
1727
- function _ts_decorate30(decorators, target, key, desc) {
1551
+ import { ApiProperty as ApiProperty18 } from "@nestjs/swagger";
1552
+ function _ts_decorate28(decorators, target, key, desc) {
1728
1553
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1729
1554
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1730
1555
  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;
1731
1556
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1732
1557
  }
1733
- __name(_ts_decorate30, "_ts_decorate");
1734
- function _ts_metadata30(k, v) {
1558
+ __name(_ts_decorate28, "_ts_decorate");
1559
+ function _ts_metadata28(k, v) {
1735
1560
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1736
1561
  }
1737
- __name(_ts_metadata30, "_ts_metadata");
1562
+ __name(_ts_metadata28, "_ts_metadata");
1738
1563
  var _CommentResponseDto = class _CommentResponseDto {
1739
1564
  constructor() {
1740
1565
  __publicField(this, "id");
@@ -1754,100 +1579,100 @@ var _CommentResponseDto = class _CommentResponseDto {
1754
1579
  };
1755
1580
  __name(_CommentResponseDto, "CommentResponseDto");
1756
1581
  var CommentResponseDto = _CommentResponseDto;
1757
- _ts_decorate30([
1758
- ApiProperty19({
1582
+ _ts_decorate28([
1583
+ ApiProperty18({
1759
1584
  example: "123e4567-e89b-12d3-a456-426614174000"
1760
1585
  }),
1761
- _ts_metadata30("design:type", String)
1586
+ _ts_metadata28("design:type", String)
1762
1587
  ], CommentResponseDto.prototype, "id", void 0);
1763
- _ts_decorate30([
1764
- ApiProperty19({
1588
+ _ts_decorate28([
1589
+ ApiProperty18({
1765
1590
  example: "123e4567-e89b-12d3-a456-426614174001"
1766
1591
  }),
1767
- _ts_metadata30("design:type", String)
1592
+ _ts_metadata28("design:type", String)
1768
1593
  ], CommentResponseDto.prototype, "postId", void 0);
1769
- _ts_decorate30([
1770
- ApiProperty19({
1594
+ _ts_decorate28([
1595
+ ApiProperty18({
1771
1596
  example: "123e4567-e89b-12d3-a456-426614174002"
1772
1597
  }),
1773
- _ts_metadata30("design:type", String)
1598
+ _ts_metadata28("design:type", String)
1774
1599
  ], CommentResponseDto.prototype, "authorId", void 0);
1775
- _ts_decorate30([
1776
- ApiProperty19({
1600
+ _ts_decorate28([
1601
+ ApiProperty18({
1777
1602
  example: "John Doe"
1778
1603
  }),
1779
- _ts_metadata30("design:type", String)
1604
+ _ts_metadata28("design:type", String)
1780
1605
  ], CommentResponseDto.prototype, "authorFullName", void 0);
1781
- _ts_decorate30([
1782
- ApiProperty19({
1606
+ _ts_decorate28([
1607
+ ApiProperty18({
1783
1608
  example: "https://example.com/profile.jpg",
1784
1609
  nullable: true
1785
1610
  }),
1786
- _ts_metadata30("design:type", Object)
1611
+ _ts_metadata28("design:type", Object)
1787
1612
  ], CommentResponseDto.prototype, "authorProfilePictureUrl", void 0);
1788
- _ts_decorate30([
1789
- ApiProperty19({
1613
+ _ts_decorate28([
1614
+ ApiProperty18({
1790
1615
  example: "Great post!"
1791
1616
  }),
1792
- _ts_metadata30("design:type", String)
1617
+ _ts_metadata28("design:type", String)
1793
1618
  ], CommentResponseDto.prototype, "content", void 0);
1794
- _ts_decorate30([
1795
- ApiProperty19({
1619
+ _ts_decorate28([
1620
+ ApiProperty18({
1796
1621
  example: "123e4567-e89b-12d3-a456-426614174003",
1797
1622
  nullable: true
1798
1623
  }),
1799
- _ts_metadata30("design:type", Object)
1624
+ _ts_metadata28("design:type", Object)
1800
1625
  ], CommentResponseDto.prototype, "parentCommentId", void 0);
1801
- _ts_decorate30([
1802
- ApiProperty19({
1626
+ _ts_decorate28([
1627
+ ApiProperty18({
1803
1628
  example: 0
1804
1629
  }),
1805
- _ts_metadata30("design:type", Number)
1630
+ _ts_metadata28("design:type", Number)
1806
1631
  ], CommentResponseDto.prototype, "depth", void 0);
1807
- _ts_decorate30([
1808
- ApiProperty19({
1632
+ _ts_decorate28([
1633
+ ApiProperty18({
1809
1634
  example: 5
1810
1635
  }),
1811
- _ts_metadata30("design:type", Number)
1636
+ _ts_metadata28("design:type", Number)
1812
1637
  ], CommentResponseDto.prototype, "likesCount", void 0);
1813
- _ts_decorate30([
1814
- ApiProperty19({
1638
+ _ts_decorate28([
1639
+ ApiProperty18({
1815
1640
  example: 2
1816
1641
  }),
1817
- _ts_metadata30("design:type", Number)
1642
+ _ts_metadata28("design:type", Number)
1818
1643
  ], CommentResponseDto.prototype, "repliesCount", void 0);
1819
- _ts_decorate30([
1820
- ApiProperty19({
1644
+ _ts_decorate28([
1645
+ ApiProperty18({
1821
1646
  example: false
1822
1647
  }),
1823
- _ts_metadata30("design:type", Boolean)
1648
+ _ts_metadata28("design:type", Boolean)
1824
1649
  ], CommentResponseDto.prototype, "isEdited", void 0);
1825
- _ts_decorate30([
1826
- ApiProperty19({
1650
+ _ts_decorate28([
1651
+ ApiProperty18({
1827
1652
  example: "2024-01-15T10:30:00Z"
1828
1653
  }),
1829
- _ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
1654
+ _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
1830
1655
  ], CommentResponseDto.prototype, "createdAt", void 0);
1831
- _ts_decorate30([
1832
- ApiProperty19({
1656
+ _ts_decorate28([
1657
+ ApiProperty18({
1833
1658
  example: "2024-01-15T10:30:00Z"
1834
1659
  }),
1835
- _ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
1660
+ _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
1836
1661
  ], CommentResponseDto.prototype, "updatedAt", void 0);
1837
1662
 
1838
1663
  // dto/comments/comment_tree.dto.ts
1839
- import { ApiProperty as ApiProperty20 } from "@nestjs/swagger";
1840
- function _ts_decorate31(decorators, target, key, desc) {
1664
+ import { ApiProperty as ApiProperty19 } from "@nestjs/swagger";
1665
+ function _ts_decorate29(decorators, target, key, desc) {
1841
1666
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1842
1667
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1843
1668
  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;
1844
1669
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1845
1670
  }
1846
- __name(_ts_decorate31, "_ts_decorate");
1847
- function _ts_metadata31(k, v) {
1671
+ __name(_ts_decorate29, "_ts_decorate");
1672
+ function _ts_metadata29(k, v) {
1848
1673
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1849
1674
  }
1850
- __name(_ts_metadata31, "_ts_metadata");
1675
+ __name(_ts_metadata29, "_ts_metadata");
1851
1676
  var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
1852
1677
  constructor() {
1853
1678
  super(...arguments);
@@ -1856,28 +1681,28 @@ var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
1856
1681
  };
1857
1682
  __name(_CommentTreeDto, "CommentTreeDto");
1858
1683
  var CommentTreeDto = _CommentTreeDto;
1859
- _ts_decorate31([
1860
- ApiProperty20({
1684
+ _ts_decorate29([
1685
+ ApiProperty19({
1861
1686
  type: [
1862
1687
  CommentTreeDto
1863
1688
  ]
1864
1689
  }),
1865
- _ts_metadata31("design:type", Array)
1690
+ _ts_metadata29("design:type", Array)
1866
1691
  ], CommentTreeDto.prototype, "replies", void 0);
1867
1692
 
1868
1693
  // dto/comments/paginated_comment.dto.ts
1869
- import { ApiProperty as ApiProperty21 } from "@nestjs/swagger";
1870
- function _ts_decorate32(decorators, target, key, desc) {
1694
+ import { ApiProperty as ApiProperty20 } from "@nestjs/swagger";
1695
+ function _ts_decorate30(decorators, target, key, desc) {
1871
1696
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1872
1697
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1873
1698
  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;
1874
1699
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1875
1700
  }
1876
- __name(_ts_decorate32, "_ts_decorate");
1877
- function _ts_metadata32(k, v) {
1701
+ __name(_ts_decorate30, "_ts_decorate");
1702
+ function _ts_metadata30(k, v) {
1878
1703
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1879
1704
  }
1880
- __name(_ts_metadata32, "_ts_metadata");
1705
+ __name(_ts_metadata30, "_ts_metadata");
1881
1706
  var _PaginatedCommentsDto = class _PaginatedCommentsDto {
1882
1707
  constructor() {
1883
1708
  __publicField(this, "comments");
@@ -1888,47 +1713,47 @@ var _PaginatedCommentsDto = class _PaginatedCommentsDto {
1888
1713
  };
1889
1714
  __name(_PaginatedCommentsDto, "PaginatedCommentsDto");
1890
1715
  var PaginatedCommentsDto = _PaginatedCommentsDto;
1891
- _ts_decorate32([
1892
- ApiProperty21({
1716
+ _ts_decorate30([
1717
+ ApiProperty20({
1893
1718
  type: [
1894
1719
  CommentResponseDto
1895
1720
  ]
1896
1721
  }),
1897
- _ts_metadata32("design:type", Array)
1722
+ _ts_metadata30("design:type", Array)
1898
1723
  ], PaginatedCommentsDto.prototype, "comments", void 0);
1899
- _ts_decorate32([
1900
- ApiProperty21({
1724
+ _ts_decorate30([
1725
+ ApiProperty20({
1901
1726
  example: 50
1902
1727
  }),
1903
- _ts_metadata32("design:type", Number)
1728
+ _ts_metadata30("design:type", Number)
1904
1729
  ], PaginatedCommentsDto.prototype, "total", void 0);
1905
- _ts_decorate32([
1906
- ApiProperty21({
1730
+ _ts_decorate30([
1731
+ ApiProperty20({
1907
1732
  example: 1
1908
1733
  }),
1909
- _ts_metadata32("design:type", Number)
1734
+ _ts_metadata30("design:type", Number)
1910
1735
  ], PaginatedCommentsDto.prototype, "page", void 0);
1911
- _ts_decorate32([
1912
- ApiProperty21({
1736
+ _ts_decorate30([
1737
+ ApiProperty20({
1913
1738
  example: 5
1914
1739
  }),
1915
- _ts_metadata32("design:type", Number)
1740
+ _ts_metadata30("design:type", Number)
1916
1741
  ], PaginatedCommentsDto.prototype, "totalPages", void 0);
1917
1742
 
1918
1743
  // dto/comments/update_comment.dto.ts
1919
- import { ApiProperty as ApiProperty22 } from "@nestjs/swagger";
1920
- import { IsNotEmpty as IsNotEmpty10, IsString as IsString15, MaxLength as MaxLength9, MinLength as MinLength9 } from "class-validator";
1921
- function _ts_decorate33(decorators, target, key, desc) {
1744
+ import { ApiProperty as ApiProperty21 } from "@nestjs/swagger";
1745
+ import { IsNotEmpty as IsNotEmpty10, IsString as IsString14, MaxLength as MaxLength8, MinLength as MinLength9 } from "class-validator";
1746
+ function _ts_decorate31(decorators, target, key, desc) {
1922
1747
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1923
1748
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1924
1749
  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;
1925
1750
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1926
1751
  }
1927
- __name(_ts_decorate33, "_ts_decorate");
1928
- function _ts_metadata33(k, v) {
1752
+ __name(_ts_decorate31, "_ts_decorate");
1753
+ function _ts_metadata31(k, v) {
1929
1754
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1930
1755
  }
1931
- __name(_ts_metadata33, "_ts_metadata");
1756
+ __name(_ts_metadata31, "_ts_metadata");
1932
1757
  var _UpdateCommentDto = class _UpdateCommentDto {
1933
1758
  constructor() {
1934
1759
  __publicField(this, "content");
@@ -1936,18 +1761,18 @@ var _UpdateCommentDto = class _UpdateCommentDto {
1936
1761
  };
1937
1762
  __name(_UpdateCommentDto, "UpdateCommentDto");
1938
1763
  var UpdateCommentDto = _UpdateCommentDto;
1939
- _ts_decorate33([
1940
- ApiProperty22({
1764
+ _ts_decorate31([
1765
+ ApiProperty21({
1941
1766
  description: "Updated comment content",
1942
1767
  example: "Updated: Great post!",
1943
1768
  minLength: 1,
1944
1769
  maxLength: 5e3
1945
1770
  }),
1946
- IsString15(),
1771
+ IsString14(),
1947
1772
  IsNotEmpty10(),
1948
1773
  MinLength9(1),
1949
- MaxLength9(5e3),
1950
- _ts_metadata33("design:type", String)
1774
+ MaxLength8(5e3),
1775
+ _ts_metadata31("design:type", String)
1951
1776
  ], UpdateCommentDto.prototype, "content", void 0);
1952
1777
 
1953
1778
  // dto/comments/comment_fields.dto.ts
@@ -1972,19 +1797,19 @@ __name(_CommentFields, "CommentFields");
1972
1797
  var CommentFields = _CommentFields;
1973
1798
 
1974
1799
  // dto/comments/like_comment.dto.ts
1975
- import { ApiProperty as ApiProperty23 } from "@nestjs/swagger";
1976
- import { IsEnum as IsEnum8, IsOptional as IsOptional12 } from "class-validator";
1977
- function _ts_decorate34(decorators, target, key, desc) {
1800
+ import { ApiProperty as ApiProperty22 } from "@nestjs/swagger";
1801
+ import { IsEnum as IsEnum7, IsOptional as IsOptional10 } from "class-validator";
1802
+ function _ts_decorate32(decorators, target, key, desc) {
1978
1803
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1979
1804
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1980
1805
  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;
1981
1806
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1982
1807
  }
1983
- __name(_ts_decorate34, "_ts_decorate");
1984
- function _ts_metadata34(k, v) {
1808
+ __name(_ts_decorate32, "_ts_decorate");
1809
+ function _ts_metadata32(k, v) {
1985
1810
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1986
1811
  }
1987
- __name(_ts_metadata34, "_ts_metadata");
1812
+ __name(_ts_metadata32, "_ts_metadata");
1988
1813
  var _LikeCommentDto = class _LikeCommentDto {
1989
1814
  constructor() {
1990
1815
  __publicField(this, "type");
@@ -1992,31 +1817,31 @@ var _LikeCommentDto = class _LikeCommentDto {
1992
1817
  };
1993
1818
  __name(_LikeCommentDto, "LikeCommentDto");
1994
1819
  var LikeCommentDto = _LikeCommentDto;
1995
- _ts_decorate34([
1996
- ApiProperty23({
1820
+ _ts_decorate32([
1821
+ ApiProperty22({
1997
1822
  description: "The reaction type for the comment",
1998
1823
  enum: ReactionType,
1999
1824
  required: false,
2000
1825
  default: ReactionType.LIKE
2001
1826
  }),
2002
- IsEnum8(ReactionType),
2003
- IsOptional12(),
2004
- _ts_metadata34("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
1827
+ IsEnum7(ReactionType),
1828
+ IsOptional10(),
1829
+ _ts_metadata32("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
2005
1830
  ], LikeCommentDto.prototype, "type", void 0);
2006
1831
 
2007
1832
  // dto/comments/comment_like_response.dto.ts
2008
- import { ApiProperty as ApiProperty24 } from "@nestjs/swagger";
2009
- function _ts_decorate35(decorators, target, key, desc) {
1833
+ import { ApiProperty as ApiProperty23 } from "@nestjs/swagger";
1834
+ function _ts_decorate33(decorators, target, key, desc) {
2010
1835
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2011
1836
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2012
1837
  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;
2013
1838
  return c > 3 && r && Object.defineProperty(target, key, r), r;
2014
1839
  }
2015
- __name(_ts_decorate35, "_ts_decorate");
2016
- function _ts_metadata35(k, v) {
1840
+ __name(_ts_decorate33, "_ts_decorate");
1841
+ function _ts_metadata33(k, v) {
2017
1842
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
2018
1843
  }
2019
- __name(_ts_metadata35, "_ts_metadata");
1844
+ __name(_ts_metadata33, "_ts_metadata");
2020
1845
  var _CommentLikeResponseDto = class _CommentLikeResponseDto {
2021
1846
  constructor() {
2022
1847
  __publicField(this, "id");
@@ -2031,70 +1856,70 @@ var _CommentLikeResponseDto = class _CommentLikeResponseDto {
2031
1856
  };
2032
1857
  __name(_CommentLikeResponseDto, "CommentLikeResponseDto");
2033
1858
  var CommentLikeResponseDto = _CommentLikeResponseDto;
2034
- _ts_decorate35([
2035
- ApiProperty24({
1859
+ _ts_decorate33([
1860
+ ApiProperty23({
2036
1861
  example: "123e4567-e89b-12d3-a456-426614174005"
2037
1862
  }),
2038
- _ts_metadata35("design:type", String)
1863
+ _ts_metadata33("design:type", String)
2039
1864
  ], CommentLikeResponseDto.prototype, "id", void 0);
2040
- _ts_decorate35([
2041
- ApiProperty24({
1865
+ _ts_decorate33([
1866
+ ApiProperty23({
2042
1867
  example: "123e4567-e89b-12d3-a456-426614174000"
2043
1868
  }),
2044
- _ts_metadata35("design:type", String)
1869
+ _ts_metadata33("design:type", String)
2045
1870
  ], CommentLikeResponseDto.prototype, "commentId", void 0);
2046
- _ts_decorate35([
2047
- ApiProperty24({
1871
+ _ts_decorate33([
1872
+ ApiProperty23({
2048
1873
  example: "123e4567-e89b-12d3-a456-426614174002"
2049
1874
  }),
2050
- _ts_metadata35("design:type", String)
1875
+ _ts_metadata33("design:type", String)
2051
1876
  ], CommentLikeResponseDto.prototype, "commentatorId", void 0);
2052
- _ts_decorate35([
2053
- ApiProperty24({
1877
+ _ts_decorate33([
1878
+ ApiProperty23({
2054
1879
  example: "Jane Doe"
2055
1880
  }),
2056
- _ts_metadata35("design:type", String)
1881
+ _ts_metadata33("design:type", String)
2057
1882
  ], CommentLikeResponseDto.prototype, "commentatorFullName", void 0);
2058
- _ts_decorate35([
2059
- ApiProperty24({
1883
+ _ts_decorate33([
1884
+ ApiProperty23({
2060
1885
  example: "https://example.com/jane.jpg",
2061
1886
  nullable: true
2062
1887
  }),
2063
- _ts_metadata35("design:type", Object)
1888
+ _ts_metadata33("design:type", Object)
2064
1889
  ], CommentLikeResponseDto.prototype, "commentatorProfilePictureUrl", void 0);
2065
- _ts_decorate35([
2066
- ApiProperty24({
1890
+ _ts_decorate33([
1891
+ ApiProperty23({
2067
1892
  enum: ReactionType,
2068
1893
  example: ReactionType.HEART
2069
1894
  }),
2070
- _ts_metadata35("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
1895
+ _ts_metadata33("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
2071
1896
  ], CommentLikeResponseDto.prototype, "type", void 0);
2072
- _ts_decorate35([
2073
- ApiProperty24({
1897
+ _ts_decorate33([
1898
+ ApiProperty23({
2074
1899
  example: "2024-01-15T10:35:00Z"
2075
1900
  }),
2076
- _ts_metadata35("design:type", typeof Date === "undefined" ? Object : Date)
1901
+ _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
2077
1902
  ], CommentLikeResponseDto.prototype, "createdAt", void 0);
2078
- _ts_decorate35([
2079
- ApiProperty24({
1903
+ _ts_decorate33([
1904
+ ApiProperty23({
2080
1905
  example: "2024-01-15T10:35:00Z"
2081
1906
  }),
2082
- _ts_metadata35("design:type", typeof Date === "undefined" ? Object : Date)
1907
+ _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
2083
1908
  ], CommentLikeResponseDto.prototype, "updatedAt", void 0);
2084
1909
 
2085
1910
  // dto/comments/paginated_comment_likes.dto.ts
2086
- import { ApiProperty as ApiProperty25 } from "@nestjs/swagger";
2087
- function _ts_decorate36(decorators, target, key, desc) {
1911
+ import { ApiProperty as ApiProperty24 } from "@nestjs/swagger";
1912
+ function _ts_decorate34(decorators, target, key, desc) {
2088
1913
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2089
1914
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2090
1915
  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;
2091
1916
  return c > 3 && r && Object.defineProperty(target, key, r), r;
2092
1917
  }
2093
- __name(_ts_decorate36, "_ts_decorate");
2094
- function _ts_metadata36(k, v) {
1918
+ __name(_ts_decorate34, "_ts_decorate");
1919
+ function _ts_metadata34(k, v) {
2095
1920
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
2096
1921
  }
2097
- __name(_ts_metadata36, "_ts_metadata");
1922
+ __name(_ts_metadata34, "_ts_metadata");
2098
1923
  var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
2099
1924
  constructor() {
2100
1925
  __publicField(this, "likes");
@@ -2105,91 +1930,32 @@ var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
2105
1930
  };
2106
1931
  __name(_PaginatedCommentLikesDto, "PaginatedCommentLikesDto");
2107
1932
  var PaginatedCommentLikesDto = _PaginatedCommentLikesDto;
2108
- _ts_decorate36([
2109
- ApiProperty25({
1933
+ _ts_decorate34([
1934
+ ApiProperty24({
2110
1935
  type: [
2111
1936
  CommentLikeResponseDto
2112
1937
  ]
2113
1938
  }),
2114
- _ts_metadata36("design:type", Array)
1939
+ _ts_metadata34("design:type", Array)
2115
1940
  ], PaginatedCommentLikesDto.prototype, "likes", void 0);
2116
- _ts_decorate36([
2117
- ApiProperty25({
1941
+ _ts_decorate34([
1942
+ ApiProperty24({
2118
1943
  example: 120
2119
1944
  }),
2120
- _ts_metadata36("design:type", Number)
1945
+ _ts_metadata34("design:type", Number)
2121
1946
  ], PaginatedCommentLikesDto.prototype, "total", void 0);
2122
- _ts_decorate36([
2123
- ApiProperty25({
1947
+ _ts_decorate34([
1948
+ ApiProperty24({
2124
1949
  example: 1
2125
1950
  }),
2126
- _ts_metadata36("design:type", Number)
1951
+ _ts_metadata34("design:type", Number)
2127
1952
  ], PaginatedCommentLikesDto.prototype, "page", void 0);
2128
- _ts_decorate36([
2129
- ApiProperty25({
1953
+ _ts_decorate34([
1954
+ ApiProperty24({
2130
1955
  example: 6
2131
1956
  }),
2132
- _ts_metadata36("design:type", Number)
1957
+ _ts_metadata34("design:type", Number)
2133
1958
  ], PaginatedCommentLikesDto.prototype, "totalPages", void 0);
2134
-
2135
- // enums/user_name.enum.ts
2136
- var RoleName = /* @__PURE__ */ (function(RoleName2) {
2137
- RoleName2["PREMIUM"] = "PREMIUM";
2138
- RoleName2["DEFAULT"] = "DEFAULT";
2139
- RoleName2["VISITOR"] = "VISITOR";
2140
- return RoleName2;
2141
- })({});
2142
-
2143
- // dto/tags/create_find_tag.dto.ts
2144
- import { IsEnum as IsEnum9, IsNotEmpty as IsNotEmpty11, IsString as IsString16 } from "class-validator";
2145
- function _ts_decorate37(decorators, target, key, desc) {
2146
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2147
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2148
- 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;
2149
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2150
- }
2151
- __name(_ts_decorate37, "_ts_decorate");
2152
- function _ts_metadata37(k, v) {
2153
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
2154
- }
2155
- __name(_ts_metadata37, "_ts_metadata");
2156
- var _CreateOrGetTagDto = class _CreateOrGetTagDto {
2157
- constructor() {
2158
- __publicField(this, "name");
2159
- __publicField(this, "sector");
2160
- }
2161
- };
2162
- __name(_CreateOrGetTagDto, "CreateOrGetTagDto");
2163
- var CreateOrGetTagDto = _CreateOrGetTagDto;
2164
- _ts_decorate37([
2165
- IsString16(),
2166
- IsNotEmpty11(),
2167
- _ts_metadata37("design:type", String)
2168
- ], CreateOrGetTagDto.prototype, "name", void 0);
2169
- _ts_decorate37([
2170
- IsEnum9(BusinessSector),
2171
- IsString16(),
2172
- IsNotEmpty11(),
2173
- _ts_metadata37("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
2174
- ], CreateOrGetTagDto.prototype, "sector", void 0);
2175
-
2176
- // dto/tags/get_tag_by_sector.dto.ts
2177
- var _GetTagsBySectorDto = class _GetTagsBySectorDto {
2178
- constructor() {
2179
- __publicField(this, "sector");
2180
- }
2181
- };
2182
- __name(_GetTagsBySectorDto, "GetTagsBySectorDto");
2183
- var GetTagsBySectorDto = _GetTagsBySectorDto;
2184
-
2185
- // dto/tags/search_tag.dto.ts
2186
- var _SearchTagsDto = class _SearchTagsDto {
2187
- constructor() {
2188
- __publicField(this, "name");
2189
- }
2190
- };
2191
- __name(_SearchTagsDto, "SearchTagsDto");
2192
- var SearchTagsDto = _SearchTagsDto;
2193
1959
  export {
2194
1960
  BusinessSector,
2195
1961
  CommentFields,
@@ -2197,7 +1963,6 @@ export {
2197
1963
  CommentResponseDto,
2198
1964
  CommentTreeDto,
2199
1965
  CreateCommentDto,
2200
- CreateOrGetTagDto,
2201
1966
  CreatePostDto,
2202
1967
  CreatePostFileDto,
2203
1968
  CreateUserDto,
@@ -2209,7 +1974,6 @@ export {
2209
1974
  FindAllUsersDto,
2210
1975
  FindByRoleDto,
2211
1976
  ForgotPasswordDto,
2212
- GetTagsBySectorDto,
2213
1977
  LikeCommentDto,
2214
1978
  LikePostDto,
2215
1979
  LoginLocalDTO,
@@ -2227,16 +1991,11 @@ export {
2227
1991
  ReactionType,
2228
1992
  ReorderDto,
2229
1993
  ResetPasswordDto,
2230
- RoleName,
2231
- SearchTagsDto,
2232
1994
  SearchUsersByFullNameDTO,
2233
- TagResponseDto,
2234
1995
  UpdateCommentDto,
2235
1996
  UpdatePasswordDto,
2236
1997
  UpdatePostDto,
2237
- UpdateProfessionalProfileDto,
2238
1998
  UpdateUserDto,
2239
1999
  UploadFileDto,
2240
- UserResponseDto,
2241
- UserType
2000
+ UserResponseDto
2242
2001
  };