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