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