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