@feresmeryas/microservices-common 1.5.26 → 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.d.mts +3 -41
- package/dist/index.d.ts +3 -41
- package/dist/index.js +434 -689
- package/dist/index.mjs +394 -642
- package/package.json +1 -1
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/
|
|
710
|
-
import {
|
|
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
|
-
|
|
852
|
-
|
|
729
|
+
_ts_decorate13([
|
|
730
|
+
IsString8(),
|
|
853
731
|
IsNotEmpty4(),
|
|
854
|
-
|
|
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
|
|
872
|
-
function
|
|
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(
|
|
879
|
-
function
|
|
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(
|
|
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
|
-
|
|
905
|
-
|
|
782
|
+
_ts_decorate14([
|
|
783
|
+
IsString9(),
|
|
906
784
|
IsNotEmpty5(),
|
|
907
|
-
|
|
785
|
+
_ts_metadata14("design:type", String)
|
|
908
786
|
], UploadFileDto.prototype, "userId", void 0);
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
787
|
+
_ts_decorate14([
|
|
788
|
+
IsEnum2(FileCategory),
|
|
789
|
+
_ts_metadata14("design:type", String)
|
|
912
790
|
], UploadFileDto.prototype, "category", void 0);
|
|
913
|
-
|
|
914
|
-
|
|
791
|
+
_ts_decorate14([
|
|
792
|
+
IsString9(),
|
|
915
793
|
IsNotEmpty5(),
|
|
916
|
-
|
|
794
|
+
_ts_metadata14("design:type", String)
|
|
917
795
|
], UploadFileDto.prototype, "fileName", void 0);
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
948
|
-
function
|
|
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(
|
|
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
|
-
|
|
840
|
+
_ts_decorate15([
|
|
963
841
|
ApiProperty6({
|
|
964
842
|
description: "Base64 encoded file",
|
|
965
843
|
example: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
|
|
966
844
|
}),
|
|
967
|
-
|
|
845
|
+
IsString10(),
|
|
968
846
|
IsNotEmpty6(),
|
|
969
|
-
|
|
847
|
+
_ts_metadata15("design:type", String)
|
|
970
848
|
], CreatePostFileDto.prototype, "fileBuffer", void 0);
|
|
971
|
-
|
|
849
|
+
_ts_decorate15([
|
|
972
850
|
ApiProperty6({
|
|
973
851
|
description: "File name",
|
|
974
852
|
example: "vacation-photo.jpg"
|
|
975
853
|
}),
|
|
976
|
-
|
|
854
|
+
IsString10(),
|
|
977
855
|
IsNotEmpty6(),
|
|
978
|
-
|
|
856
|
+
_ts_metadata15("design:type", String)
|
|
979
857
|
], CreatePostFileDto.prototype, "fileName", void 0);
|
|
980
|
-
|
|
858
|
+
_ts_decorate15([
|
|
981
859
|
ApiProperty6({
|
|
982
860
|
description: "MIME type",
|
|
983
861
|
example: "image/jpeg",
|
|
984
862
|
required: false
|
|
985
863
|
}),
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
864
|
+
IsString10(),
|
|
865
|
+
IsOptional6(),
|
|
866
|
+
_ts_metadata15("design:type", String)
|
|
989
867
|
], CreatePostFileDto.prototype, "mimeType", void 0);
|
|
990
|
-
|
|
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
|
-
|
|
877
|
+
IsString10(),
|
|
1000
878
|
IsNotEmpty6(),
|
|
1001
|
-
|
|
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
|
|
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(
|
|
1013
|
-
function
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
911
|
+
IsString11(),
|
|
1034
912
|
IsNotEmpty7(),
|
|
1035
913
|
MinLength6(1),
|
|
1036
|
-
|
|
1037
|
-
|
|
914
|
+
MaxLength5(5e3),
|
|
915
|
+
_ts_metadata16("design:type", String)
|
|
1038
916
|
], CreatePostDto.prototype, "description", void 0);
|
|
1039
|
-
|
|
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
|
-
|
|
1047
|
-
|
|
924
|
+
IsEnum3(BusinessSector),
|
|
925
|
+
IsOptional7(),
|
|
926
|
+
_ts_metadata16("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
1048
927
|
], CreatePostDto.prototype, "sector", void 0);
|
|
1049
|
-
|
|
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
|
-
|
|
1063
|
-
|
|
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
|
|
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
|
|
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(
|
|
1078
|
-
function
|
|
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(
|
|
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
|
-
|
|
973
|
+
_ts_decorate17([
|
|
1095
974
|
ApiProperty8({
|
|
1096
975
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1097
976
|
}),
|
|
1098
|
-
|
|
977
|
+
_ts_metadata17("design:type", String)
|
|
1099
978
|
], PostFileDto.prototype, "id", void 0);
|
|
1100
|
-
|
|
979
|
+
_ts_decorate17([
|
|
1101
980
|
ApiProperty8({
|
|
1102
981
|
example: "https://storage.example.com/posts/image.jpg"
|
|
1103
982
|
}),
|
|
1104
|
-
|
|
983
|
+
_ts_metadata17("design:type", String)
|
|
1105
984
|
], PostFileDto.prototype, "fileUrl", void 0);
|
|
1106
|
-
|
|
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
|
-
|
|
993
|
+
_ts_metadata17("design:type", String)
|
|
1115
994
|
], PostFileDto.prototype, "fileType", void 0);
|
|
1116
|
-
|
|
995
|
+
_ts_decorate17([
|
|
1117
996
|
ApiProperty8({
|
|
1118
997
|
example: "image/jpeg",
|
|
1119
998
|
nullable: true
|
|
1120
999
|
}),
|
|
1121
|
-
|
|
1000
|
+
_ts_metadata17("design:type", Object)
|
|
1122
1001
|
], PostFileDto.prototype, "mimeType", void 0);
|
|
1123
|
-
|
|
1002
|
+
_ts_decorate17([
|
|
1124
1003
|
ApiProperty8({
|
|
1125
1004
|
example: 0
|
|
1126
1005
|
}),
|
|
1127
|
-
|
|
1006
|
+
_ts_metadata17("design:type", Number)
|
|
1128
1007
|
], PostFileDto.prototype, "orderIndex", void 0);
|
|
1129
|
-
|
|
1008
|
+
_ts_decorate17([
|
|
1130
1009
|
ApiProperty8({
|
|
1131
1010
|
example: "2024-01-15T10:30:00Z"
|
|
1132
1011
|
}),
|
|
1133
|
-
|
|
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
|
|
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(
|
|
1189
|
-
function
|
|
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(
|
|
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
|
-
|
|
1212
|
-
|
|
1045
|
+
_ts_decorate18([
|
|
1046
|
+
ApiProperty9({
|
|
1213
1047
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1214
1048
|
}),
|
|
1215
|
-
|
|
1049
|
+
_ts_metadata18("design:type", String)
|
|
1216
1050
|
], PostResponseDto.prototype, "id", void 0);
|
|
1217
|
-
|
|
1218
|
-
|
|
1051
|
+
_ts_decorate18([
|
|
1052
|
+
ApiProperty9({
|
|
1219
1053
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
1220
1054
|
}),
|
|
1221
|
-
|
|
1055
|
+
_ts_metadata18("design:type", String)
|
|
1222
1056
|
], PostResponseDto.prototype, "publisherId", void 0);
|
|
1223
|
-
|
|
1224
|
-
|
|
1057
|
+
_ts_decorate18([
|
|
1058
|
+
ApiProperty9({
|
|
1225
1059
|
example: "Check out this amazing view!"
|
|
1226
1060
|
}),
|
|
1227
|
-
|
|
1061
|
+
_ts_metadata18("design:type", String)
|
|
1228
1062
|
], PostResponseDto.prototype, "description", void 0);
|
|
1229
|
-
|
|
1230
|
-
|
|
1063
|
+
_ts_decorate18([
|
|
1064
|
+
ApiProperty9({
|
|
1231
1065
|
example: "John Doe"
|
|
1232
1066
|
}),
|
|
1233
|
-
|
|
1067
|
+
_ts_metadata18("design:type", String)
|
|
1234
1068
|
], PostResponseDto.prototype, "publisherFullName", void 0);
|
|
1235
|
-
|
|
1236
|
-
|
|
1069
|
+
_ts_decorate18([
|
|
1070
|
+
ApiProperty9({
|
|
1237
1071
|
example: "https://example.com/profile.jpg",
|
|
1238
1072
|
nullable: true
|
|
1239
1073
|
}),
|
|
1240
|
-
|
|
1074
|
+
_ts_metadata18("design:type", Object)
|
|
1241
1075
|
], PostResponseDto.prototype, "publisherProfilePictureUrl", void 0);
|
|
1242
|
-
|
|
1243
|
-
|
|
1076
|
+
_ts_decorate18([
|
|
1077
|
+
ApiProperty9({
|
|
1244
1078
|
type: [
|
|
1245
1079
|
PostFileDto
|
|
1246
1080
|
]
|
|
1247
1081
|
}),
|
|
1248
|
-
|
|
1082
|
+
_ts_metadata18("design:type", Array)
|
|
1249
1083
|
], PostResponseDto.prototype, "files", void 0);
|
|
1250
|
-
|
|
1251
|
-
|
|
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
|
-
|
|
1088
|
+
_ts_metadata18("design:type", Number)
|
|
1264
1089
|
], PostResponseDto.prototype, "commentsCount", void 0);
|
|
1265
|
-
|
|
1266
|
-
|
|
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
|
-
|
|
1273
|
-
|
|
1097
|
+
IsEnum4(BusinessSector),
|
|
1098
|
+
_ts_metadata18("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
1274
1099
|
], PostResponseDto.prototype, "sector", void 0);
|
|
1275
|
-
|
|
1276
|
-
|
|
1100
|
+
_ts_decorate18([
|
|
1101
|
+
ApiProperty9({
|
|
1277
1102
|
example: 128
|
|
1278
1103
|
}),
|
|
1279
|
-
|
|
1104
|
+
_ts_metadata18("design:type", Number)
|
|
1280
1105
|
], PostResponseDto.prototype, "likesCount", void 0);
|
|
1281
|
-
|
|
1282
|
-
|
|
1106
|
+
_ts_decorate18([
|
|
1107
|
+
ApiProperty9({
|
|
1283
1108
|
example: "2024-01-15T10:30:00Z"
|
|
1284
1109
|
}),
|
|
1285
|
-
|
|
1110
|
+
_ts_metadata18("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1286
1111
|
], PostResponseDto.prototype, "createdAt", void 0);
|
|
1287
|
-
|
|
1288
|
-
|
|
1112
|
+
_ts_decorate18([
|
|
1113
|
+
ApiProperty9({
|
|
1289
1114
|
example: "2024-01-15T10:30:00Z"
|
|
1290
1115
|
}),
|
|
1291
|
-
|
|
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
|
|
1296
|
-
function
|
|
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(
|
|
1303
|
-
function
|
|
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(
|
|
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
|
-
|
|
1318
|
-
|
|
1142
|
+
_ts_decorate19([
|
|
1143
|
+
ApiProperty10({
|
|
1319
1144
|
type: [
|
|
1320
1145
|
PostResponseDto
|
|
1321
1146
|
]
|
|
1322
1147
|
}),
|
|
1323
|
-
|
|
1148
|
+
_ts_metadata19("design:type", Array)
|
|
1324
1149
|
], PaginatedPostsDto.prototype, "posts", void 0);
|
|
1325
|
-
|
|
1326
|
-
|
|
1150
|
+
_ts_decorate19([
|
|
1151
|
+
ApiProperty10({
|
|
1327
1152
|
example: 100
|
|
1328
1153
|
}),
|
|
1329
|
-
|
|
1154
|
+
_ts_metadata19("design:type", Number)
|
|
1330
1155
|
], PaginatedPostsDto.prototype, "total", void 0);
|
|
1331
|
-
|
|
1332
|
-
|
|
1156
|
+
_ts_decorate19([
|
|
1157
|
+
ApiProperty10({
|
|
1333
1158
|
example: 1
|
|
1334
1159
|
}),
|
|
1335
|
-
|
|
1160
|
+
_ts_metadata19("design:type", Number)
|
|
1336
1161
|
], PaginatedPostsDto.prototype, "page", void 0);
|
|
1337
|
-
|
|
1338
|
-
|
|
1162
|
+
_ts_decorate19([
|
|
1163
|
+
ApiProperty10({
|
|
1339
1164
|
example: 10
|
|
1340
1165
|
}),
|
|
1341
|
-
|
|
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
|
|
1346
|
-
import { IsEnum as
|
|
1347
|
-
function
|
|
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(
|
|
1354
|
-
function
|
|
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(
|
|
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
|
-
|
|
1367
|
-
|
|
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
|
-
|
|
1199
|
+
IsString12(),
|
|
1375
1200
|
IsNotEmpty8(),
|
|
1376
1201
|
MinLength7(1),
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
_ts_metadata22("design:type", String)
|
|
1202
|
+
MaxLength6(5e3),
|
|
1203
|
+
_ts_metadata20("design:type", String)
|
|
1380
1204
|
], UpdatePostDto.prototype, "description", void 0);
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
description: "The
|
|
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
|
-
|
|
1387
|
-
|
|
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
|
|
1412
|
-
function
|
|
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(
|
|
1419
|
-
function
|
|
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(
|
|
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
|
-
|
|
1432
|
-
|
|
1256
|
+
_ts_decorate21([
|
|
1257
|
+
ApiProperty12({
|
|
1433
1258
|
example: true
|
|
1434
1259
|
}),
|
|
1435
|
-
|
|
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
|
|
1440
|
-
function
|
|
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(
|
|
1447
|
-
function
|
|
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(
|
|
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
|
-
|
|
1462
|
-
|
|
1286
|
+
_ts_decorate22([
|
|
1287
|
+
ApiProperty13({
|
|
1463
1288
|
type: [
|
|
1464
1289
|
PostResponseDto
|
|
1465
1290
|
]
|
|
1466
1291
|
}),
|
|
1467
|
-
|
|
1292
|
+
_ts_metadata22("design:type", Array)
|
|
1468
1293
|
], PaginatedPostsSelfDto.prototype, "posts", void 0);
|
|
1469
|
-
|
|
1470
|
-
|
|
1294
|
+
_ts_decorate22([
|
|
1295
|
+
ApiProperty13({
|
|
1471
1296
|
example: 100
|
|
1472
1297
|
}),
|
|
1473
|
-
|
|
1298
|
+
_ts_metadata22("design:type", Number)
|
|
1474
1299
|
], PaginatedPostsSelfDto.prototype, "total", void 0);
|
|
1475
|
-
|
|
1476
|
-
|
|
1300
|
+
_ts_decorate22([
|
|
1301
|
+
ApiProperty13({
|
|
1477
1302
|
example: 1
|
|
1478
1303
|
}),
|
|
1479
|
-
|
|
1304
|
+
_ts_metadata22("design:type", Number)
|
|
1480
1305
|
], PaginatedPostsSelfDto.prototype, "page", void 0);
|
|
1481
|
-
|
|
1482
|
-
|
|
1306
|
+
_ts_decorate22([
|
|
1307
|
+
ApiProperty13({
|
|
1483
1308
|
example: 10
|
|
1484
1309
|
}),
|
|
1485
|
-
|
|
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
|
|
1490
|
-
function
|
|
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(
|
|
1497
|
-
function
|
|
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(
|
|
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
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1333
|
+
_ts_decorate23([
|
|
1334
|
+
IsInt3(),
|
|
1335
|
+
Min3(0),
|
|
1511
1336
|
Max(100),
|
|
1512
|
-
|
|
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
|
|
1517
|
-
function
|
|
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(
|
|
1524
|
-
function
|
|
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(
|
|
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
|
-
|
|
1542
|
-
|
|
1366
|
+
_ts_decorate24([
|
|
1367
|
+
ApiProperty14({
|
|
1543
1368
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1544
1369
|
}),
|
|
1545
|
-
|
|
1370
|
+
_ts_metadata24("design:type", String)
|
|
1546
1371
|
], PostLikeResponseDto.prototype, "id", void 0);
|
|
1547
|
-
|
|
1548
|
-
|
|
1372
|
+
_ts_decorate24([
|
|
1373
|
+
ApiProperty14({
|
|
1549
1374
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1550
1375
|
}),
|
|
1551
|
-
|
|
1376
|
+
_ts_metadata24("design:type", String)
|
|
1552
1377
|
], PostLikeResponseDto.prototype, "postId", void 0);
|
|
1553
|
-
|
|
1554
|
-
|
|
1378
|
+
_ts_decorate24([
|
|
1379
|
+
ApiProperty14({
|
|
1555
1380
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1556
1381
|
}),
|
|
1557
|
-
|
|
1382
|
+
_ts_metadata24("design:type", String)
|
|
1558
1383
|
], PostLikeResponseDto.prototype, "userId", void 0);
|
|
1559
|
-
|
|
1560
|
-
|
|
1384
|
+
_ts_decorate24([
|
|
1385
|
+
ApiProperty14({
|
|
1561
1386
|
example: "John Doe"
|
|
1562
1387
|
}),
|
|
1563
|
-
|
|
1388
|
+
_ts_metadata24("design:type", String)
|
|
1564
1389
|
], PostLikeResponseDto.prototype, "userFullName", void 0);
|
|
1565
|
-
|
|
1566
|
-
|
|
1390
|
+
_ts_decorate24([
|
|
1391
|
+
ApiProperty14({
|
|
1567
1392
|
example: "https://example.com/avatar.jpg",
|
|
1568
1393
|
nullable: true
|
|
1569
1394
|
}),
|
|
1570
|
-
|
|
1395
|
+
_ts_metadata24("design:type", Object)
|
|
1571
1396
|
], PostLikeResponseDto.prototype, "userProfilePictureUrl", void 0);
|
|
1572
|
-
|
|
1573
|
-
|
|
1397
|
+
_ts_decorate24([
|
|
1398
|
+
ApiProperty14({
|
|
1574
1399
|
enum: ReactionType,
|
|
1575
1400
|
example: ReactionType.LIKE
|
|
1576
1401
|
}),
|
|
1577
|
-
|
|
1402
|
+
_ts_metadata24("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1578
1403
|
], PostLikeResponseDto.prototype, "type", void 0);
|
|
1579
|
-
|
|
1580
|
-
|
|
1404
|
+
_ts_decorate24([
|
|
1405
|
+
ApiProperty14({
|
|
1581
1406
|
example: "2026-01-14T12:00:00Z"
|
|
1582
1407
|
}),
|
|
1583
|
-
|
|
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
|
|
1588
|
-
import { IsEnum as
|
|
1589
|
-
function
|
|
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(
|
|
1596
|
-
function
|
|
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(
|
|
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
|
-
|
|
1608
|
-
|
|
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
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
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
|
|
1621
|
-
function
|
|
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(
|
|
1628
|
-
function
|
|
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(
|
|
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
|
-
|
|
1643
|
-
|
|
1467
|
+
_ts_decorate26([
|
|
1468
|
+
ApiProperty16({
|
|
1644
1469
|
type: [
|
|
1645
1470
|
PostLikeResponseDto
|
|
1646
1471
|
]
|
|
1647
1472
|
}),
|
|
1648
|
-
|
|
1649
|
-
], PaginatedPostLikesDto.prototype, "likes", void 0);
|
|
1650
|
-
|
|
1651
|
-
|
|
1473
|
+
_ts_metadata26("design:type", Array)
|
|
1474
|
+
], PaginatedPostLikesDto.prototype, "likes", void 0);
|
|
1475
|
+
_ts_decorate26([
|
|
1476
|
+
ApiProperty16({
|
|
1652
1477
|
example: 100
|
|
1653
1478
|
}),
|
|
1654
|
-
|
|
1479
|
+
_ts_metadata26("design:type", Number)
|
|
1655
1480
|
], PaginatedPostLikesDto.prototype, "total", void 0);
|
|
1656
|
-
|
|
1657
|
-
|
|
1481
|
+
_ts_decorate26([
|
|
1482
|
+
ApiProperty16({
|
|
1658
1483
|
example: 1
|
|
1659
1484
|
}),
|
|
1660
|
-
|
|
1485
|
+
_ts_metadata26("design:type", Number)
|
|
1661
1486
|
], PaginatedPostLikesDto.prototype, "page", void 0);
|
|
1662
|
-
|
|
1663
|
-
|
|
1487
|
+
_ts_decorate26([
|
|
1488
|
+
ApiProperty16({
|
|
1664
1489
|
example: 10
|
|
1665
1490
|
}),
|
|
1666
|
-
|
|
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
|
|
1671
|
-
import { IsNotEmpty as IsNotEmpty9, IsOptional as
|
|
1672
|
-
function
|
|
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(
|
|
1679
|
-
function
|
|
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(
|
|
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
|
-
|
|
1693
|
-
|
|
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
|
-
|
|
1524
|
+
_ts_metadata27("design:type", String)
|
|
1700
1525
|
], CreateCommentDto.prototype, "postId", void 0);
|
|
1701
|
-
|
|
1702
|
-
|
|
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
|
-
|
|
1533
|
+
IsString13(),
|
|
1709
1534
|
IsNotEmpty9(),
|
|
1710
1535
|
MinLength8(1),
|
|
1711
|
-
|
|
1712
|
-
|
|
1536
|
+
MaxLength7(5e3),
|
|
1537
|
+
_ts_metadata27("design:type", String)
|
|
1713
1538
|
], CreateCommentDto.prototype, "content", void 0);
|
|
1714
|
-
|
|
1715
|
-
|
|
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
|
-
|
|
1722
|
-
|
|
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
|
|
1727
|
-
function
|
|
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(
|
|
1734
|
-
function
|
|
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(
|
|
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
|
-
|
|
1758
|
-
|
|
1582
|
+
_ts_decorate28([
|
|
1583
|
+
ApiProperty18({
|
|
1759
1584
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1760
1585
|
}),
|
|
1761
|
-
|
|
1586
|
+
_ts_metadata28("design:type", String)
|
|
1762
1587
|
], CommentResponseDto.prototype, "id", void 0);
|
|
1763
|
-
|
|
1764
|
-
|
|
1588
|
+
_ts_decorate28([
|
|
1589
|
+
ApiProperty18({
|
|
1765
1590
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
1766
1591
|
}),
|
|
1767
|
-
|
|
1592
|
+
_ts_metadata28("design:type", String)
|
|
1768
1593
|
], CommentResponseDto.prototype, "postId", void 0);
|
|
1769
|
-
|
|
1770
|
-
|
|
1594
|
+
_ts_decorate28([
|
|
1595
|
+
ApiProperty18({
|
|
1771
1596
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1772
1597
|
}),
|
|
1773
|
-
|
|
1598
|
+
_ts_metadata28("design:type", String)
|
|
1774
1599
|
], CommentResponseDto.prototype, "authorId", void 0);
|
|
1775
|
-
|
|
1776
|
-
|
|
1600
|
+
_ts_decorate28([
|
|
1601
|
+
ApiProperty18({
|
|
1777
1602
|
example: "John Doe"
|
|
1778
1603
|
}),
|
|
1779
|
-
|
|
1604
|
+
_ts_metadata28("design:type", String)
|
|
1780
1605
|
], CommentResponseDto.prototype, "authorFullName", void 0);
|
|
1781
|
-
|
|
1782
|
-
|
|
1606
|
+
_ts_decorate28([
|
|
1607
|
+
ApiProperty18({
|
|
1783
1608
|
example: "https://example.com/profile.jpg",
|
|
1784
1609
|
nullable: true
|
|
1785
1610
|
}),
|
|
1786
|
-
|
|
1611
|
+
_ts_metadata28("design:type", Object)
|
|
1787
1612
|
], CommentResponseDto.prototype, "authorProfilePictureUrl", void 0);
|
|
1788
|
-
|
|
1789
|
-
|
|
1613
|
+
_ts_decorate28([
|
|
1614
|
+
ApiProperty18({
|
|
1790
1615
|
example: "Great post!"
|
|
1791
1616
|
}),
|
|
1792
|
-
|
|
1617
|
+
_ts_metadata28("design:type", String)
|
|
1793
1618
|
], CommentResponseDto.prototype, "content", void 0);
|
|
1794
|
-
|
|
1795
|
-
|
|
1619
|
+
_ts_decorate28([
|
|
1620
|
+
ApiProperty18({
|
|
1796
1621
|
example: "123e4567-e89b-12d3-a456-426614174003",
|
|
1797
1622
|
nullable: true
|
|
1798
1623
|
}),
|
|
1799
|
-
|
|
1624
|
+
_ts_metadata28("design:type", Object)
|
|
1800
1625
|
], CommentResponseDto.prototype, "parentCommentId", void 0);
|
|
1801
|
-
|
|
1802
|
-
|
|
1626
|
+
_ts_decorate28([
|
|
1627
|
+
ApiProperty18({
|
|
1803
1628
|
example: 0
|
|
1804
1629
|
}),
|
|
1805
|
-
|
|
1630
|
+
_ts_metadata28("design:type", Number)
|
|
1806
1631
|
], CommentResponseDto.prototype, "depth", void 0);
|
|
1807
|
-
|
|
1808
|
-
|
|
1632
|
+
_ts_decorate28([
|
|
1633
|
+
ApiProperty18({
|
|
1809
1634
|
example: 5
|
|
1810
1635
|
}),
|
|
1811
|
-
|
|
1636
|
+
_ts_metadata28("design:type", Number)
|
|
1812
1637
|
], CommentResponseDto.prototype, "likesCount", void 0);
|
|
1813
|
-
|
|
1814
|
-
|
|
1638
|
+
_ts_decorate28([
|
|
1639
|
+
ApiProperty18({
|
|
1815
1640
|
example: 2
|
|
1816
1641
|
}),
|
|
1817
|
-
|
|
1642
|
+
_ts_metadata28("design:type", Number)
|
|
1818
1643
|
], CommentResponseDto.prototype, "repliesCount", void 0);
|
|
1819
|
-
|
|
1820
|
-
|
|
1644
|
+
_ts_decorate28([
|
|
1645
|
+
ApiProperty18({
|
|
1821
1646
|
example: false
|
|
1822
1647
|
}),
|
|
1823
|
-
|
|
1648
|
+
_ts_metadata28("design:type", Boolean)
|
|
1824
1649
|
], CommentResponseDto.prototype, "isEdited", void 0);
|
|
1825
|
-
|
|
1826
|
-
|
|
1650
|
+
_ts_decorate28([
|
|
1651
|
+
ApiProperty18({
|
|
1827
1652
|
example: "2024-01-15T10:30:00Z"
|
|
1828
1653
|
}),
|
|
1829
|
-
|
|
1654
|
+
_ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1830
1655
|
], CommentResponseDto.prototype, "createdAt", void 0);
|
|
1831
|
-
|
|
1832
|
-
|
|
1656
|
+
_ts_decorate28([
|
|
1657
|
+
ApiProperty18({
|
|
1833
1658
|
example: "2024-01-15T10:30:00Z"
|
|
1834
1659
|
}),
|
|
1835
|
-
|
|
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
|
|
1840
|
-
function
|
|
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(
|
|
1847
|
-
function
|
|
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(
|
|
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
|
-
|
|
1860
|
-
|
|
1684
|
+
_ts_decorate29([
|
|
1685
|
+
ApiProperty19({
|
|
1861
1686
|
type: [
|
|
1862
1687
|
CommentTreeDto
|
|
1863
1688
|
]
|
|
1864
1689
|
}),
|
|
1865
|
-
|
|
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
|
|
1870
|
-
function
|
|
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(
|
|
1877
|
-
function
|
|
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(
|
|
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
|
-
|
|
1892
|
-
|
|
1716
|
+
_ts_decorate30([
|
|
1717
|
+
ApiProperty20({
|
|
1893
1718
|
type: [
|
|
1894
1719
|
CommentResponseDto
|
|
1895
1720
|
]
|
|
1896
1721
|
}),
|
|
1897
|
-
|
|
1722
|
+
_ts_metadata30("design:type", Array)
|
|
1898
1723
|
], PaginatedCommentsDto.prototype, "comments", void 0);
|
|
1899
|
-
|
|
1900
|
-
|
|
1724
|
+
_ts_decorate30([
|
|
1725
|
+
ApiProperty20({
|
|
1901
1726
|
example: 50
|
|
1902
1727
|
}),
|
|
1903
|
-
|
|
1728
|
+
_ts_metadata30("design:type", Number)
|
|
1904
1729
|
], PaginatedCommentsDto.prototype, "total", void 0);
|
|
1905
|
-
|
|
1906
|
-
|
|
1730
|
+
_ts_decorate30([
|
|
1731
|
+
ApiProperty20({
|
|
1907
1732
|
example: 1
|
|
1908
1733
|
}),
|
|
1909
|
-
|
|
1734
|
+
_ts_metadata30("design:type", Number)
|
|
1910
1735
|
], PaginatedCommentsDto.prototype, "page", void 0);
|
|
1911
|
-
|
|
1912
|
-
|
|
1736
|
+
_ts_decorate30([
|
|
1737
|
+
ApiProperty20({
|
|
1913
1738
|
example: 5
|
|
1914
1739
|
}),
|
|
1915
|
-
|
|
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
|
|
1920
|
-
import { IsNotEmpty as IsNotEmpty10, IsString as
|
|
1921
|
-
function
|
|
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(
|
|
1928
|
-
function
|
|
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(
|
|
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
|
-
|
|
1940
|
-
|
|
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
|
-
|
|
1771
|
+
IsString14(),
|
|
1947
1772
|
IsNotEmpty10(),
|
|
1948
1773
|
MinLength9(1),
|
|
1949
|
-
|
|
1950
|
-
|
|
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
|
|
1976
|
-
import { IsEnum as
|
|
1977
|
-
function
|
|
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(
|
|
1984
|
-
function
|
|
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(
|
|
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
|
-
|
|
1996
|
-
|
|
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
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
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
|
|
2009
|
-
function
|
|
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(
|
|
2016
|
-
function
|
|
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(
|
|
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
|
-
|
|
2035
|
-
|
|
1859
|
+
_ts_decorate33([
|
|
1860
|
+
ApiProperty23({
|
|
2036
1861
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
2037
1862
|
}),
|
|
2038
|
-
|
|
1863
|
+
_ts_metadata33("design:type", String)
|
|
2039
1864
|
], CommentLikeResponseDto.prototype, "id", void 0);
|
|
2040
|
-
|
|
2041
|
-
|
|
1865
|
+
_ts_decorate33([
|
|
1866
|
+
ApiProperty23({
|
|
2042
1867
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
2043
1868
|
}),
|
|
2044
|
-
|
|
1869
|
+
_ts_metadata33("design:type", String)
|
|
2045
1870
|
], CommentLikeResponseDto.prototype, "commentId", void 0);
|
|
2046
|
-
|
|
2047
|
-
|
|
1871
|
+
_ts_decorate33([
|
|
1872
|
+
ApiProperty23({
|
|
2048
1873
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
2049
1874
|
}),
|
|
2050
|
-
|
|
1875
|
+
_ts_metadata33("design:type", String)
|
|
2051
1876
|
], CommentLikeResponseDto.prototype, "commentatorId", void 0);
|
|
2052
|
-
|
|
2053
|
-
|
|
1877
|
+
_ts_decorate33([
|
|
1878
|
+
ApiProperty23({
|
|
2054
1879
|
example: "Jane Doe"
|
|
2055
1880
|
}),
|
|
2056
|
-
|
|
1881
|
+
_ts_metadata33("design:type", String)
|
|
2057
1882
|
], CommentLikeResponseDto.prototype, "commentatorFullName", void 0);
|
|
2058
|
-
|
|
2059
|
-
|
|
1883
|
+
_ts_decorate33([
|
|
1884
|
+
ApiProperty23({
|
|
2060
1885
|
example: "https://example.com/jane.jpg",
|
|
2061
1886
|
nullable: true
|
|
2062
1887
|
}),
|
|
2063
|
-
|
|
1888
|
+
_ts_metadata33("design:type", Object)
|
|
2064
1889
|
], CommentLikeResponseDto.prototype, "commentatorProfilePictureUrl", void 0);
|
|
2065
|
-
|
|
2066
|
-
|
|
1890
|
+
_ts_decorate33([
|
|
1891
|
+
ApiProperty23({
|
|
2067
1892
|
enum: ReactionType,
|
|
2068
1893
|
example: ReactionType.HEART
|
|
2069
1894
|
}),
|
|
2070
|
-
|
|
1895
|
+
_ts_metadata33("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
2071
1896
|
], CommentLikeResponseDto.prototype, "type", void 0);
|
|
2072
|
-
|
|
2073
|
-
|
|
1897
|
+
_ts_decorate33([
|
|
1898
|
+
ApiProperty23({
|
|
2074
1899
|
example: "2024-01-15T10:35:00Z"
|
|
2075
1900
|
}),
|
|
2076
|
-
|
|
1901
|
+
_ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
|
|
2077
1902
|
], CommentLikeResponseDto.prototype, "createdAt", void 0);
|
|
2078
|
-
|
|
2079
|
-
|
|
1903
|
+
_ts_decorate33([
|
|
1904
|
+
ApiProperty23({
|
|
2080
1905
|
example: "2024-01-15T10:35:00Z"
|
|
2081
1906
|
}),
|
|
2082
|
-
|
|
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
|
|
2087
|
-
function
|
|
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(
|
|
2094
|
-
function
|
|
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(
|
|
1922
|
+
__name(_ts_metadata34, "_ts_metadata");
|
|
2098
1923
|
var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
2099
1924
|
constructor() {
|
|
2100
1925
|
__publicField(this, "likes");
|
|
@@ -2105,98 +1930,32 @@ var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
|
2105
1930
|
};
|
|
2106
1931
|
__name(_PaginatedCommentLikesDto, "PaginatedCommentLikesDto");
|
|
2107
1932
|
var PaginatedCommentLikesDto = _PaginatedCommentLikesDto;
|
|
2108
|
-
|
|
2109
|
-
|
|
1933
|
+
_ts_decorate34([
|
|
1934
|
+
ApiProperty24({
|
|
2110
1935
|
type: [
|
|
2111
1936
|
CommentLikeResponseDto
|
|
2112
1937
|
]
|
|
2113
1938
|
}),
|
|
2114
|
-
|
|
1939
|
+
_ts_metadata34("design:type", Array)
|
|
2115
1940
|
], PaginatedCommentLikesDto.prototype, "likes", void 0);
|
|
2116
|
-
|
|
2117
|
-
|
|
1941
|
+
_ts_decorate34([
|
|
1942
|
+
ApiProperty24({
|
|
2118
1943
|
example: 120
|
|
2119
1944
|
}),
|
|
2120
|
-
|
|
1945
|
+
_ts_metadata34("design:type", Number)
|
|
2121
1946
|
], PaginatedCommentLikesDto.prototype, "total", void 0);
|
|
2122
|
-
|
|
2123
|
-
|
|
1947
|
+
_ts_decorate34([
|
|
1948
|
+
ApiProperty24({
|
|
2124
1949
|
example: 1
|
|
2125
1950
|
}),
|
|
2126
|
-
|
|
1951
|
+
_ts_metadata34("design:type", Number)
|
|
2127
1952
|
], PaginatedCommentLikesDto.prototype, "page", void 0);
|
|
2128
|
-
|
|
2129
|
-
|
|
1953
|
+
_ts_decorate34([
|
|
1954
|
+
ApiProperty24({
|
|
2130
1955
|
example: 6
|
|
2131
1956
|
}),
|
|
2132
|
-
|
|
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 { ApiProperty as ApiProperty26 } from "@nestjs/swagger";
|
|
2145
|
-
import { IsEnum as IsEnum9, IsNotEmpty as IsNotEmpty11, IsString as IsString16 } from "class-validator";
|
|
2146
|
-
function _ts_decorate37(decorators, target, key, desc) {
|
|
2147
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2148
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2149
|
-
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;
|
|
2150
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2151
|
-
}
|
|
2152
|
-
__name(_ts_decorate37, "_ts_decorate");
|
|
2153
|
-
function _ts_metadata37(k, v) {
|
|
2154
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2155
|
-
}
|
|
2156
|
-
__name(_ts_metadata37, "_ts_metadata");
|
|
2157
|
-
var _CreateOrGetTagDto = class _CreateOrGetTagDto {
|
|
2158
|
-
constructor() {
|
|
2159
|
-
__publicField(this, "name");
|
|
2160
|
-
__publicField(this, "sector");
|
|
2161
|
-
}
|
|
2162
|
-
};
|
|
2163
|
-
__name(_CreateOrGetTagDto, "CreateOrGetTagDto");
|
|
2164
|
-
var CreateOrGetTagDto = _CreateOrGetTagDto;
|
|
2165
|
-
_ts_decorate37([
|
|
2166
|
-
ApiProperty26({
|
|
2167
|
-
example: "#africa"
|
|
2168
|
-
}),
|
|
2169
|
-
IsString16(),
|
|
2170
|
-
IsNotEmpty11(),
|
|
2171
|
-
_ts_metadata37("design:type", String)
|
|
2172
|
-
], CreateOrGetTagDto.prototype, "name", void 0);
|
|
2173
|
-
_ts_decorate37([
|
|
2174
|
-
ApiProperty26({
|
|
2175
|
-
enum: BusinessSector
|
|
2176
|
-
}),
|
|
2177
|
-
IsEnum9(BusinessSector),
|
|
2178
|
-
IsString16(),
|
|
2179
|
-
IsNotEmpty11(),
|
|
2180
|
-
_ts_metadata37("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
2181
|
-
], CreateOrGetTagDto.prototype, "sector", void 0);
|
|
2182
|
-
|
|
2183
|
-
// dto/tags/get_tag_by_sector.dto.ts
|
|
2184
|
-
var _GetTagsBySectorDto = class _GetTagsBySectorDto {
|
|
2185
|
-
constructor() {
|
|
2186
|
-
__publicField(this, "sector");
|
|
2187
|
-
}
|
|
2188
|
-
};
|
|
2189
|
-
__name(_GetTagsBySectorDto, "GetTagsBySectorDto");
|
|
2190
|
-
var GetTagsBySectorDto = _GetTagsBySectorDto;
|
|
2191
|
-
|
|
2192
|
-
// dto/tags/search_tag.dto.ts
|
|
2193
|
-
var _SearchTagsDto = class _SearchTagsDto {
|
|
2194
|
-
constructor() {
|
|
2195
|
-
__publicField(this, "name");
|
|
2196
|
-
}
|
|
2197
|
-
};
|
|
2198
|
-
__name(_SearchTagsDto, "SearchTagsDto");
|
|
2199
|
-
var SearchTagsDto = _SearchTagsDto;
|
|
2200
1959
|
export {
|
|
2201
1960
|
BusinessSector,
|
|
2202
1961
|
CommentFields,
|
|
@@ -2204,7 +1963,6 @@ export {
|
|
|
2204
1963
|
CommentResponseDto,
|
|
2205
1964
|
CommentTreeDto,
|
|
2206
1965
|
CreateCommentDto,
|
|
2207
|
-
CreateOrGetTagDto,
|
|
2208
1966
|
CreatePostDto,
|
|
2209
1967
|
CreatePostFileDto,
|
|
2210
1968
|
CreateUserDto,
|
|
@@ -2216,7 +1974,6 @@ export {
|
|
|
2216
1974
|
FindAllUsersDto,
|
|
2217
1975
|
FindByRoleDto,
|
|
2218
1976
|
ForgotPasswordDto,
|
|
2219
|
-
GetTagsBySectorDto,
|
|
2220
1977
|
LikeCommentDto,
|
|
2221
1978
|
LikePostDto,
|
|
2222
1979
|
LoginLocalDTO,
|
|
@@ -2234,16 +1991,11 @@ export {
|
|
|
2234
1991
|
ReactionType,
|
|
2235
1992
|
ReorderDto,
|
|
2236
1993
|
ResetPasswordDto,
|
|
2237
|
-
RoleName,
|
|
2238
|
-
SearchTagsDto,
|
|
2239
1994
|
SearchUsersByFullNameDTO,
|
|
2240
|
-
TagResponseDto,
|
|
2241
1995
|
UpdateCommentDto,
|
|
2242
1996
|
UpdatePasswordDto,
|
|
2243
1997
|
UpdatePostDto,
|
|
2244
|
-
UpdateProfessionalProfileDto,
|
|
2245
1998
|
UpdateUserDto,
|
|
2246
1999
|
UploadFileDto,
|
|
2247
|
-
UserResponseDto
|
|
2248
|
-
UserType
|
|
2000
|
+
UserResponseDto
|
|
2249
2001
|
};
|