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