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