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