@feresmeryas/microservices-common 1.5.19 → 1.5.20
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 +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +347 -294
- package/dist/index.mjs +354 -301
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -729,7 +729,6 @@ _ts_decorate15([
|
|
|
729
729
|
default: BusinessSector.CONSULTING
|
|
730
730
|
}),
|
|
731
731
|
(0, import_class_validator15.IsEnum)(BusinessSector),
|
|
732
|
-
(0, import_class_validator15.IsOptional)(),
|
|
733
732
|
_ts_metadata15("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
734
733
|
], CreatePostDto.prototype, "sector", void 0);
|
|
735
734
|
_ts_decorate15([
|
|
@@ -750,7 +749,7 @@ _ts_decorate15([
|
|
|
750
749
|
], CreatePostDto.prototype, "files", void 0);
|
|
751
750
|
|
|
752
751
|
// dto/posts/post_response.dto.ts
|
|
753
|
-
var
|
|
752
|
+
var import_swagger9 = require("@nestjs/swagger");
|
|
754
753
|
|
|
755
754
|
// dto/posts/post_file.dto.ts
|
|
756
755
|
var import_swagger7 = require("@nestjs/swagger");
|
|
@@ -821,6 +820,9 @@ _ts_decorate16([
|
|
|
821
820
|
|
|
822
821
|
// dto/posts/post_response.dto.ts
|
|
823
822
|
var import_class_validator16 = require("class-validator");
|
|
823
|
+
|
|
824
|
+
// dto/tags/tag_response.dto.ts
|
|
825
|
+
var import_swagger8 = require("@nestjs/swagger");
|
|
824
826
|
function _ts_decorate17(decorators, target, key, desc) {
|
|
825
827
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
826
828
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -832,6 +834,47 @@ function _ts_metadata17(k, v) {
|
|
|
832
834
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
833
835
|
}
|
|
834
836
|
__name(_ts_metadata17, "_ts_metadata");
|
|
837
|
+
var _TagResponseDto = class _TagResponseDto {
|
|
838
|
+
constructor() {
|
|
839
|
+
__publicField(this, "name");
|
|
840
|
+
__publicField(this, "slug");
|
|
841
|
+
// Optional: Include id if you need it for specific actions
|
|
842
|
+
__publicField(this, "id");
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
__name(_TagResponseDto, "TagResponseDto");
|
|
846
|
+
var TagResponseDto = _TagResponseDto;
|
|
847
|
+
_ts_decorate17([
|
|
848
|
+
(0, import_swagger8.ApiProperty)({
|
|
849
|
+
example: "React JS"
|
|
850
|
+
}),
|
|
851
|
+
_ts_metadata17("design:type", String)
|
|
852
|
+
], TagResponseDto.prototype, "name", void 0);
|
|
853
|
+
_ts_decorate17([
|
|
854
|
+
(0, import_swagger8.ApiProperty)({
|
|
855
|
+
example: "react-js"
|
|
856
|
+
}),
|
|
857
|
+
_ts_metadata17("design:type", String)
|
|
858
|
+
], TagResponseDto.prototype, "slug", void 0);
|
|
859
|
+
_ts_decorate17([
|
|
860
|
+
(0, import_swagger8.ApiProperty)({
|
|
861
|
+
example: "uuid-v4-string"
|
|
862
|
+
}),
|
|
863
|
+
_ts_metadata17("design:type", String)
|
|
864
|
+
], TagResponseDto.prototype, "id", void 0);
|
|
865
|
+
|
|
866
|
+
// dto/posts/post_response.dto.ts
|
|
867
|
+
function _ts_decorate18(decorators, target, key, desc) {
|
|
868
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
869
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
870
|
+
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;
|
|
871
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
872
|
+
}
|
|
873
|
+
__name(_ts_decorate18, "_ts_decorate");
|
|
874
|
+
function _ts_metadata18(k, v) {
|
|
875
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
876
|
+
}
|
|
877
|
+
__name(_ts_metadata18, "_ts_metadata");
|
|
835
878
|
var _PostResponseDto = class _PostResponseDto {
|
|
836
879
|
constructor() {
|
|
837
880
|
__publicField(this, "id");
|
|
@@ -840,6 +883,7 @@ var _PostResponseDto = class _PostResponseDto {
|
|
|
840
883
|
__publicField(this, "publisherFullName");
|
|
841
884
|
__publicField(this, "publisherProfilePictureUrl");
|
|
842
885
|
__publicField(this, "files");
|
|
886
|
+
__publicField(this, "tags");
|
|
843
887
|
__publicField(this, "commentsCount");
|
|
844
888
|
__publicField(this, "sector");
|
|
845
889
|
__publicField(this, "likesCount");
|
|
@@ -849,93 +893,102 @@ var _PostResponseDto = class _PostResponseDto {
|
|
|
849
893
|
};
|
|
850
894
|
__name(_PostResponseDto, "PostResponseDto");
|
|
851
895
|
var PostResponseDto = _PostResponseDto;
|
|
852
|
-
|
|
853
|
-
(0,
|
|
896
|
+
_ts_decorate18([
|
|
897
|
+
(0, import_swagger9.ApiProperty)({
|
|
854
898
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
855
899
|
}),
|
|
856
|
-
|
|
900
|
+
_ts_metadata18("design:type", String)
|
|
857
901
|
], PostResponseDto.prototype, "id", void 0);
|
|
858
|
-
|
|
859
|
-
(0,
|
|
902
|
+
_ts_decorate18([
|
|
903
|
+
(0, import_swagger9.ApiProperty)({
|
|
860
904
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
861
905
|
}),
|
|
862
|
-
|
|
906
|
+
_ts_metadata18("design:type", String)
|
|
863
907
|
], PostResponseDto.prototype, "publisherId", void 0);
|
|
864
|
-
|
|
865
|
-
(0,
|
|
908
|
+
_ts_decorate18([
|
|
909
|
+
(0, import_swagger9.ApiProperty)({
|
|
866
910
|
example: "Check out this amazing view!"
|
|
867
911
|
}),
|
|
868
|
-
|
|
912
|
+
_ts_metadata18("design:type", String)
|
|
869
913
|
], PostResponseDto.prototype, "description", void 0);
|
|
870
|
-
|
|
871
|
-
(0,
|
|
914
|
+
_ts_decorate18([
|
|
915
|
+
(0, import_swagger9.ApiProperty)({
|
|
872
916
|
example: "John Doe"
|
|
873
917
|
}),
|
|
874
|
-
|
|
918
|
+
_ts_metadata18("design:type", String)
|
|
875
919
|
], PostResponseDto.prototype, "publisherFullName", void 0);
|
|
876
|
-
|
|
877
|
-
(0,
|
|
920
|
+
_ts_decorate18([
|
|
921
|
+
(0, import_swagger9.ApiProperty)({
|
|
878
922
|
example: "https://example.com/profile.jpg",
|
|
879
923
|
nullable: true
|
|
880
924
|
}),
|
|
881
|
-
|
|
925
|
+
_ts_metadata18("design:type", Object)
|
|
882
926
|
], PostResponseDto.prototype, "publisherProfilePictureUrl", void 0);
|
|
883
|
-
|
|
884
|
-
(0,
|
|
927
|
+
_ts_decorate18([
|
|
928
|
+
(0, import_swagger9.ApiProperty)({
|
|
885
929
|
type: [
|
|
886
930
|
PostFileDto
|
|
887
931
|
]
|
|
888
932
|
}),
|
|
889
|
-
|
|
933
|
+
_ts_metadata18("design:type", Array)
|
|
890
934
|
], PostResponseDto.prototype, "files", void 0);
|
|
891
|
-
|
|
892
|
-
(0,
|
|
935
|
+
_ts_decorate18([
|
|
936
|
+
(0, import_swagger9.ApiProperty)({
|
|
937
|
+
type: [
|
|
938
|
+
TagResponseDto
|
|
939
|
+
],
|
|
940
|
+
description: "List of tags associated with the post"
|
|
941
|
+
}),
|
|
942
|
+
_ts_metadata18("design:type", Array)
|
|
943
|
+
], PostResponseDto.prototype, "tags", void 0);
|
|
944
|
+
_ts_decorate18([
|
|
945
|
+
(0, import_swagger9.ApiProperty)({
|
|
893
946
|
example: 42
|
|
894
947
|
}),
|
|
895
|
-
|
|
948
|
+
_ts_metadata18("design:type", Number)
|
|
896
949
|
], PostResponseDto.prototype, "commentsCount", void 0);
|
|
897
|
-
|
|
898
|
-
(0,
|
|
950
|
+
_ts_decorate18([
|
|
951
|
+
(0, import_swagger9.ApiProperty)({
|
|
899
952
|
description: "The Bunsieess sector type for the post",
|
|
900
953
|
enum: BusinessSector,
|
|
901
954
|
required: false,
|
|
902
955
|
default: BusinessSector.CONSULTING
|
|
903
956
|
}),
|
|
904
957
|
(0, import_class_validator16.IsEnum)(BusinessSector),
|
|
905
|
-
|
|
958
|
+
_ts_metadata18("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
906
959
|
], PostResponseDto.prototype, "sector", void 0);
|
|
907
|
-
|
|
908
|
-
(0,
|
|
960
|
+
_ts_decorate18([
|
|
961
|
+
(0, import_swagger9.ApiProperty)({
|
|
909
962
|
example: 128
|
|
910
963
|
}),
|
|
911
|
-
|
|
964
|
+
_ts_metadata18("design:type", Number)
|
|
912
965
|
], PostResponseDto.prototype, "likesCount", void 0);
|
|
913
|
-
|
|
914
|
-
(0,
|
|
966
|
+
_ts_decorate18([
|
|
967
|
+
(0, import_swagger9.ApiProperty)({
|
|
915
968
|
example: "2024-01-15T10:30:00Z"
|
|
916
969
|
}),
|
|
917
|
-
|
|
970
|
+
_ts_metadata18("design:type", typeof Date === "undefined" ? Object : Date)
|
|
918
971
|
], PostResponseDto.prototype, "createdAt", void 0);
|
|
919
|
-
|
|
920
|
-
(0,
|
|
972
|
+
_ts_decorate18([
|
|
973
|
+
(0, import_swagger9.ApiProperty)({
|
|
921
974
|
example: "2024-01-15T10:30:00Z"
|
|
922
975
|
}),
|
|
923
|
-
|
|
976
|
+
_ts_metadata18("design:type", typeof Date === "undefined" ? Object : Date)
|
|
924
977
|
], PostResponseDto.prototype, "updatedAt", void 0);
|
|
925
978
|
|
|
926
979
|
// dto/posts/pagination_post.dto.ts
|
|
927
|
-
var
|
|
928
|
-
function
|
|
980
|
+
var import_swagger10 = require("@nestjs/swagger");
|
|
981
|
+
function _ts_decorate19(decorators, target, key, desc) {
|
|
929
982
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
930
983
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
931
984
|
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;
|
|
932
985
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
933
986
|
}
|
|
934
|
-
__name(
|
|
935
|
-
function
|
|
987
|
+
__name(_ts_decorate19, "_ts_decorate");
|
|
988
|
+
function _ts_metadata19(k, v) {
|
|
936
989
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
937
990
|
}
|
|
938
|
-
__name(
|
|
991
|
+
__name(_ts_metadata19, "_ts_metadata");
|
|
939
992
|
var _PaginatedPostsDto = class _PaginatedPostsDto {
|
|
940
993
|
constructor() {
|
|
941
994
|
__publicField(this, "posts");
|
|
@@ -946,47 +999,47 @@ var _PaginatedPostsDto = class _PaginatedPostsDto {
|
|
|
946
999
|
};
|
|
947
1000
|
__name(_PaginatedPostsDto, "PaginatedPostsDto");
|
|
948
1001
|
var PaginatedPostsDto = _PaginatedPostsDto;
|
|
949
|
-
|
|
950
|
-
(0,
|
|
1002
|
+
_ts_decorate19([
|
|
1003
|
+
(0, import_swagger10.ApiProperty)({
|
|
951
1004
|
type: [
|
|
952
1005
|
PostResponseDto
|
|
953
1006
|
]
|
|
954
1007
|
}),
|
|
955
|
-
|
|
1008
|
+
_ts_metadata19("design:type", Array)
|
|
956
1009
|
], PaginatedPostsDto.prototype, "posts", void 0);
|
|
957
|
-
|
|
958
|
-
(0,
|
|
1010
|
+
_ts_decorate19([
|
|
1011
|
+
(0, import_swagger10.ApiProperty)({
|
|
959
1012
|
example: 100
|
|
960
1013
|
}),
|
|
961
|
-
|
|
1014
|
+
_ts_metadata19("design:type", Number)
|
|
962
1015
|
], PaginatedPostsDto.prototype, "total", void 0);
|
|
963
|
-
|
|
964
|
-
(0,
|
|
1016
|
+
_ts_decorate19([
|
|
1017
|
+
(0, import_swagger10.ApiProperty)({
|
|
965
1018
|
example: 1
|
|
966
1019
|
}),
|
|
967
|
-
|
|
1020
|
+
_ts_metadata19("design:type", Number)
|
|
968
1021
|
], PaginatedPostsDto.prototype, "page", void 0);
|
|
969
|
-
|
|
970
|
-
(0,
|
|
1022
|
+
_ts_decorate19([
|
|
1023
|
+
(0, import_swagger10.ApiProperty)({
|
|
971
1024
|
example: 10
|
|
972
1025
|
}),
|
|
973
|
-
|
|
1026
|
+
_ts_metadata19("design:type", Number)
|
|
974
1027
|
], PaginatedPostsDto.prototype, "totalPages", void 0);
|
|
975
1028
|
|
|
976
1029
|
// dto/posts/update_post.dto.ts
|
|
977
|
-
var
|
|
1030
|
+
var import_swagger11 = require("@nestjs/swagger");
|
|
978
1031
|
var import_class_validator17 = require("class-validator");
|
|
979
|
-
function
|
|
1032
|
+
function _ts_decorate20(decorators, target, key, desc) {
|
|
980
1033
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
981
1034
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
982
1035
|
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;
|
|
983
1036
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
984
1037
|
}
|
|
985
|
-
__name(
|
|
986
|
-
function
|
|
1038
|
+
__name(_ts_decorate20, "_ts_decorate");
|
|
1039
|
+
function _ts_metadata20(k, v) {
|
|
987
1040
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
988
1041
|
}
|
|
989
|
-
__name(
|
|
1042
|
+
__name(_ts_metadata20, "_ts_metadata");
|
|
990
1043
|
var _UpdatePostDto = class _UpdatePostDto {
|
|
991
1044
|
constructor() {
|
|
992
1045
|
__publicField(this, "description");
|
|
@@ -995,8 +1048,8 @@ var _UpdatePostDto = class _UpdatePostDto {
|
|
|
995
1048
|
};
|
|
996
1049
|
__name(_UpdatePostDto, "UpdatePostDto");
|
|
997
1050
|
var UpdatePostDto = _UpdatePostDto;
|
|
998
|
-
|
|
999
|
-
(0,
|
|
1051
|
+
_ts_decorate20([
|
|
1052
|
+
(0, import_swagger11.ApiProperty)({
|
|
1000
1053
|
description: "Post description/content",
|
|
1001
1054
|
example: "Updated: Check out this amazing view!",
|
|
1002
1055
|
minLength: 1,
|
|
@@ -1007,17 +1060,17 @@ _ts_decorate19([
|
|
|
1007
1060
|
(0, import_class_validator17.IsNotEmpty)(),
|
|
1008
1061
|
(0, import_class_validator17.MinLength)(1),
|
|
1009
1062
|
(0, import_class_validator17.MaxLength)(5e3),
|
|
1010
|
-
|
|
1063
|
+
(0, import_class_validator17.IsOptional)(),
|
|
1064
|
+
_ts_metadata20("design:type", String)
|
|
1011
1065
|
], UpdatePostDto.prototype, "description", void 0);
|
|
1012
|
-
|
|
1013
|
-
(0,
|
|
1014
|
-
description: "The
|
|
1015
|
-
enum: BusinessSector
|
|
1016
|
-
required: true,
|
|
1017
|
-
default: BusinessSector.CONSULTING
|
|
1066
|
+
_ts_decorate20([
|
|
1067
|
+
(0, import_swagger11.ApiProperty)({
|
|
1068
|
+
description: "The Business sector type for the post",
|
|
1069
|
+
enum: BusinessSector
|
|
1018
1070
|
}),
|
|
1071
|
+
(0, import_class_validator17.IsOptional)(),
|
|
1019
1072
|
(0, import_class_validator17.IsEnum)(BusinessSector),
|
|
1020
|
-
|
|
1073
|
+
_ts_metadata20("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
1021
1074
|
], UpdatePostDto.prototype, "sector", void 0);
|
|
1022
1075
|
|
|
1023
1076
|
// dto/posts/post_fields.dto.ts
|
|
@@ -1040,18 +1093,18 @@ __name(_PostFields, "PostFields");
|
|
|
1040
1093
|
var PostFields = _PostFields;
|
|
1041
1094
|
|
|
1042
1095
|
// dto/posts/post_response_self.dto.ts
|
|
1043
|
-
var
|
|
1044
|
-
function
|
|
1096
|
+
var import_swagger12 = require("@nestjs/swagger");
|
|
1097
|
+
function _ts_decorate21(decorators, target, key, desc) {
|
|
1045
1098
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1046
1099
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1047
1100
|
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;
|
|
1048
1101
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1049
1102
|
}
|
|
1050
|
-
__name(
|
|
1051
|
-
function
|
|
1103
|
+
__name(_ts_decorate21, "_ts_decorate");
|
|
1104
|
+
function _ts_metadata21(k, v) {
|
|
1052
1105
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1053
1106
|
}
|
|
1054
|
-
__name(
|
|
1107
|
+
__name(_ts_metadata21, "_ts_metadata");
|
|
1055
1108
|
var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
|
|
1056
1109
|
constructor() {
|
|
1057
1110
|
super(...arguments);
|
|
@@ -1060,26 +1113,26 @@ var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
|
|
|
1060
1113
|
};
|
|
1061
1114
|
__name(_PostResponseSelfDto, "PostResponseSelfDto");
|
|
1062
1115
|
var PostResponseSelfDto = _PostResponseSelfDto;
|
|
1063
|
-
|
|
1064
|
-
(0,
|
|
1116
|
+
_ts_decorate21([
|
|
1117
|
+
(0, import_swagger12.ApiProperty)({
|
|
1065
1118
|
example: true
|
|
1066
1119
|
}),
|
|
1067
|
-
|
|
1120
|
+
_ts_metadata21("design:type", Boolean)
|
|
1068
1121
|
], PostResponseSelfDto.prototype, "hidden", void 0);
|
|
1069
1122
|
|
|
1070
1123
|
// dto/posts/pagination_post_self.dto.ts
|
|
1071
|
-
var
|
|
1072
|
-
function
|
|
1124
|
+
var import_swagger13 = require("@nestjs/swagger");
|
|
1125
|
+
function _ts_decorate22(decorators, target, key, desc) {
|
|
1073
1126
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1074
1127
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1075
1128
|
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;
|
|
1076
1129
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1077
1130
|
}
|
|
1078
|
-
__name(
|
|
1079
|
-
function
|
|
1131
|
+
__name(_ts_decorate22, "_ts_decorate");
|
|
1132
|
+
function _ts_metadata22(k, v) {
|
|
1080
1133
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1081
1134
|
}
|
|
1082
|
-
__name(
|
|
1135
|
+
__name(_ts_metadata22, "_ts_metadata");
|
|
1083
1136
|
var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
|
|
1084
1137
|
constructor() {
|
|
1085
1138
|
__publicField(this, "posts");
|
|
@@ -1090,46 +1143,46 @@ var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
|
|
|
1090
1143
|
};
|
|
1091
1144
|
__name(_PaginatedPostsSelfDto, "PaginatedPostsSelfDto");
|
|
1092
1145
|
var PaginatedPostsSelfDto = _PaginatedPostsSelfDto;
|
|
1093
|
-
|
|
1094
|
-
(0,
|
|
1146
|
+
_ts_decorate22([
|
|
1147
|
+
(0, import_swagger13.ApiProperty)({
|
|
1095
1148
|
type: [
|
|
1096
1149
|
PostResponseDto
|
|
1097
1150
|
]
|
|
1098
1151
|
}),
|
|
1099
|
-
|
|
1152
|
+
_ts_metadata22("design:type", Array)
|
|
1100
1153
|
], PaginatedPostsSelfDto.prototype, "posts", void 0);
|
|
1101
|
-
|
|
1102
|
-
(0,
|
|
1154
|
+
_ts_decorate22([
|
|
1155
|
+
(0, import_swagger13.ApiProperty)({
|
|
1103
1156
|
example: 100
|
|
1104
1157
|
}),
|
|
1105
|
-
|
|
1158
|
+
_ts_metadata22("design:type", Number)
|
|
1106
1159
|
], PaginatedPostsSelfDto.prototype, "total", void 0);
|
|
1107
|
-
|
|
1108
|
-
(0,
|
|
1160
|
+
_ts_decorate22([
|
|
1161
|
+
(0, import_swagger13.ApiProperty)({
|
|
1109
1162
|
example: 1
|
|
1110
1163
|
}),
|
|
1111
|
-
|
|
1164
|
+
_ts_metadata22("design:type", Number)
|
|
1112
1165
|
], PaginatedPostsSelfDto.prototype, "page", void 0);
|
|
1113
|
-
|
|
1114
|
-
(0,
|
|
1166
|
+
_ts_decorate22([
|
|
1167
|
+
(0, import_swagger13.ApiProperty)({
|
|
1115
1168
|
example: 10
|
|
1116
1169
|
}),
|
|
1117
|
-
|
|
1170
|
+
_ts_metadata22("design:type", Number)
|
|
1118
1171
|
], PaginatedPostsSelfDto.prototype, "totalPages", void 0);
|
|
1119
1172
|
|
|
1120
1173
|
// dto/posts/reorder_post_file.dto.ts
|
|
1121
1174
|
var import_class_validator18 = require("class-validator");
|
|
1122
|
-
function
|
|
1175
|
+
function _ts_decorate23(decorators, target, key, desc) {
|
|
1123
1176
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1124
1177
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1125
1178
|
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;
|
|
1126
1179
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1127
1180
|
}
|
|
1128
|
-
__name(
|
|
1129
|
-
function
|
|
1181
|
+
__name(_ts_decorate23, "_ts_decorate");
|
|
1182
|
+
function _ts_metadata23(k, v) {
|
|
1130
1183
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1131
1184
|
}
|
|
1132
|
-
__name(
|
|
1185
|
+
__name(_ts_metadata23, "_ts_metadata");
|
|
1133
1186
|
var _ReorderDto = class _ReorderDto {
|
|
1134
1187
|
constructor() {
|
|
1135
1188
|
__publicField(this, "newIndex");
|
|
@@ -1137,26 +1190,26 @@ var _ReorderDto = class _ReorderDto {
|
|
|
1137
1190
|
};
|
|
1138
1191
|
__name(_ReorderDto, "ReorderDto");
|
|
1139
1192
|
var ReorderDto = _ReorderDto;
|
|
1140
|
-
|
|
1193
|
+
_ts_decorate23([
|
|
1141
1194
|
(0, import_class_validator18.IsInt)(),
|
|
1142
1195
|
(0, import_class_validator18.Min)(0),
|
|
1143
1196
|
(0, import_class_validator18.Max)(100),
|
|
1144
|
-
|
|
1197
|
+
_ts_metadata23("design:type", Number)
|
|
1145
1198
|
], ReorderDto.prototype, "newIndex", void 0);
|
|
1146
1199
|
|
|
1147
1200
|
// dto/posts/post_like_response.dto.ts
|
|
1148
|
-
var
|
|
1149
|
-
function
|
|
1201
|
+
var import_swagger14 = require("@nestjs/swagger");
|
|
1202
|
+
function _ts_decorate24(decorators, target, key, desc) {
|
|
1150
1203
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1151
1204
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1152
1205
|
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;
|
|
1153
1206
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1154
1207
|
}
|
|
1155
|
-
__name(
|
|
1156
|
-
function
|
|
1208
|
+
__name(_ts_decorate24, "_ts_decorate");
|
|
1209
|
+
function _ts_metadata24(k, v) {
|
|
1157
1210
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1158
1211
|
}
|
|
1159
|
-
__name(
|
|
1212
|
+
__name(_ts_metadata24, "_ts_metadata");
|
|
1160
1213
|
var _PostLikeResponseDto = class _PostLikeResponseDto {
|
|
1161
1214
|
constructor() {
|
|
1162
1215
|
__publicField(this, "id");
|
|
@@ -1170,65 +1223,65 @@ var _PostLikeResponseDto = class _PostLikeResponseDto {
|
|
|
1170
1223
|
};
|
|
1171
1224
|
__name(_PostLikeResponseDto, "PostLikeResponseDto");
|
|
1172
1225
|
var PostLikeResponseDto = _PostLikeResponseDto;
|
|
1173
|
-
|
|
1174
|
-
(0,
|
|
1226
|
+
_ts_decorate24([
|
|
1227
|
+
(0, import_swagger14.ApiProperty)({
|
|
1175
1228
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1176
1229
|
}),
|
|
1177
|
-
|
|
1230
|
+
_ts_metadata24("design:type", String)
|
|
1178
1231
|
], PostLikeResponseDto.prototype, "id", void 0);
|
|
1179
|
-
|
|
1180
|
-
(0,
|
|
1232
|
+
_ts_decorate24([
|
|
1233
|
+
(0, import_swagger14.ApiProperty)({
|
|
1181
1234
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1182
1235
|
}),
|
|
1183
|
-
|
|
1236
|
+
_ts_metadata24("design:type", String)
|
|
1184
1237
|
], PostLikeResponseDto.prototype, "postId", void 0);
|
|
1185
|
-
|
|
1186
|
-
(0,
|
|
1238
|
+
_ts_decorate24([
|
|
1239
|
+
(0, import_swagger14.ApiProperty)({
|
|
1187
1240
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1188
1241
|
}),
|
|
1189
|
-
|
|
1242
|
+
_ts_metadata24("design:type", String)
|
|
1190
1243
|
], PostLikeResponseDto.prototype, "userId", void 0);
|
|
1191
|
-
|
|
1192
|
-
(0,
|
|
1244
|
+
_ts_decorate24([
|
|
1245
|
+
(0, import_swagger14.ApiProperty)({
|
|
1193
1246
|
example: "John Doe"
|
|
1194
1247
|
}),
|
|
1195
|
-
|
|
1248
|
+
_ts_metadata24("design:type", String)
|
|
1196
1249
|
], PostLikeResponseDto.prototype, "userFullName", void 0);
|
|
1197
|
-
|
|
1198
|
-
(0,
|
|
1250
|
+
_ts_decorate24([
|
|
1251
|
+
(0, import_swagger14.ApiProperty)({
|
|
1199
1252
|
example: "https://example.com/avatar.jpg",
|
|
1200
1253
|
nullable: true
|
|
1201
1254
|
}),
|
|
1202
|
-
|
|
1255
|
+
_ts_metadata24("design:type", Object)
|
|
1203
1256
|
], PostLikeResponseDto.prototype, "userProfilePictureUrl", void 0);
|
|
1204
|
-
|
|
1205
|
-
(0,
|
|
1257
|
+
_ts_decorate24([
|
|
1258
|
+
(0, import_swagger14.ApiProperty)({
|
|
1206
1259
|
enum: ReactionType,
|
|
1207
1260
|
example: ReactionType.LIKE
|
|
1208
1261
|
}),
|
|
1209
|
-
|
|
1262
|
+
_ts_metadata24("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1210
1263
|
], PostLikeResponseDto.prototype, "type", void 0);
|
|
1211
|
-
|
|
1212
|
-
(0,
|
|
1264
|
+
_ts_decorate24([
|
|
1265
|
+
(0, import_swagger14.ApiProperty)({
|
|
1213
1266
|
example: "2026-01-14T12:00:00Z"
|
|
1214
1267
|
}),
|
|
1215
|
-
|
|
1268
|
+
_ts_metadata24("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1216
1269
|
], PostLikeResponseDto.prototype, "createdAt", void 0);
|
|
1217
1270
|
|
|
1218
1271
|
// dto/posts/like_post.dto.ts
|
|
1219
|
-
var
|
|
1272
|
+
var import_swagger15 = require("@nestjs/swagger");
|
|
1220
1273
|
var import_class_validator19 = require("class-validator");
|
|
1221
|
-
function
|
|
1274
|
+
function _ts_decorate25(decorators, target, key, desc) {
|
|
1222
1275
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1223
1276
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1224
1277
|
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;
|
|
1225
1278
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1226
1279
|
}
|
|
1227
|
-
__name(
|
|
1228
|
-
function
|
|
1280
|
+
__name(_ts_decorate25, "_ts_decorate");
|
|
1281
|
+
function _ts_metadata25(k, v) {
|
|
1229
1282
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1230
1283
|
}
|
|
1231
|
-
__name(
|
|
1284
|
+
__name(_ts_metadata25, "_ts_metadata");
|
|
1232
1285
|
var _LikePostDto = class _LikePostDto {
|
|
1233
1286
|
constructor() {
|
|
1234
1287
|
__publicField(this, "type");
|
|
@@ -1236,8 +1289,8 @@ var _LikePostDto = class _LikePostDto {
|
|
|
1236
1289
|
};
|
|
1237
1290
|
__name(_LikePostDto, "LikePostDto");
|
|
1238
1291
|
var LikePostDto = _LikePostDto;
|
|
1239
|
-
|
|
1240
|
-
(0,
|
|
1292
|
+
_ts_decorate25([
|
|
1293
|
+
(0, import_swagger15.ApiProperty)({
|
|
1241
1294
|
description: "The reaction type for the post",
|
|
1242
1295
|
enum: ReactionType,
|
|
1243
1296
|
required: false,
|
|
@@ -1245,22 +1298,22 @@ _ts_decorate24([
|
|
|
1245
1298
|
}),
|
|
1246
1299
|
(0, import_class_validator19.IsEnum)(ReactionType),
|
|
1247
1300
|
(0, import_class_validator19.IsOptional)(),
|
|
1248
|
-
|
|
1301
|
+
_ts_metadata25("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1249
1302
|
], LikePostDto.prototype, "type", void 0);
|
|
1250
1303
|
|
|
1251
1304
|
// dto/posts/paginated_post_like_dto.ts
|
|
1252
|
-
var
|
|
1253
|
-
function
|
|
1305
|
+
var import_swagger16 = require("@nestjs/swagger");
|
|
1306
|
+
function _ts_decorate26(decorators, target, key, desc) {
|
|
1254
1307
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1255
1308
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1256
1309
|
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;
|
|
1257
1310
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1258
1311
|
}
|
|
1259
|
-
__name(
|
|
1260
|
-
function
|
|
1312
|
+
__name(_ts_decorate26, "_ts_decorate");
|
|
1313
|
+
function _ts_metadata26(k, v) {
|
|
1261
1314
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1262
1315
|
}
|
|
1263
|
-
__name(
|
|
1316
|
+
__name(_ts_metadata26, "_ts_metadata");
|
|
1264
1317
|
var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
|
|
1265
1318
|
constructor() {
|
|
1266
1319
|
__publicField(this, "likes");
|
|
@@ -1271,47 +1324,47 @@ var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
|
|
|
1271
1324
|
};
|
|
1272
1325
|
__name(_PaginatedPostLikesDto, "PaginatedPostLikesDto");
|
|
1273
1326
|
var PaginatedPostLikesDto = _PaginatedPostLikesDto;
|
|
1274
|
-
|
|
1275
|
-
(0,
|
|
1327
|
+
_ts_decorate26([
|
|
1328
|
+
(0, import_swagger16.ApiProperty)({
|
|
1276
1329
|
type: [
|
|
1277
1330
|
PostLikeResponseDto
|
|
1278
1331
|
]
|
|
1279
1332
|
}),
|
|
1280
|
-
|
|
1333
|
+
_ts_metadata26("design:type", Array)
|
|
1281
1334
|
], PaginatedPostLikesDto.prototype, "likes", void 0);
|
|
1282
|
-
|
|
1283
|
-
(0,
|
|
1335
|
+
_ts_decorate26([
|
|
1336
|
+
(0, import_swagger16.ApiProperty)({
|
|
1284
1337
|
example: 100
|
|
1285
1338
|
}),
|
|
1286
|
-
|
|
1339
|
+
_ts_metadata26("design:type", Number)
|
|
1287
1340
|
], PaginatedPostLikesDto.prototype, "total", void 0);
|
|
1288
|
-
|
|
1289
|
-
(0,
|
|
1341
|
+
_ts_decorate26([
|
|
1342
|
+
(0, import_swagger16.ApiProperty)({
|
|
1290
1343
|
example: 1
|
|
1291
1344
|
}),
|
|
1292
|
-
|
|
1345
|
+
_ts_metadata26("design:type", Number)
|
|
1293
1346
|
], PaginatedPostLikesDto.prototype, "page", void 0);
|
|
1294
|
-
|
|
1295
|
-
(0,
|
|
1347
|
+
_ts_decorate26([
|
|
1348
|
+
(0, import_swagger16.ApiProperty)({
|
|
1296
1349
|
example: 10
|
|
1297
1350
|
}),
|
|
1298
|
-
|
|
1351
|
+
_ts_metadata26("design:type", Number)
|
|
1299
1352
|
], PaginatedPostLikesDto.prototype, "totalPages", void 0);
|
|
1300
1353
|
|
|
1301
1354
|
// dto/comments/create_comment.dto.ts
|
|
1302
|
-
var
|
|
1355
|
+
var import_swagger17 = require("@nestjs/swagger");
|
|
1303
1356
|
var import_class_validator20 = require("class-validator");
|
|
1304
|
-
function
|
|
1357
|
+
function _ts_decorate27(decorators, target, key, desc) {
|
|
1305
1358
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1306
1359
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1307
1360
|
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;
|
|
1308
1361
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1309
1362
|
}
|
|
1310
|
-
__name(
|
|
1311
|
-
function
|
|
1363
|
+
__name(_ts_decorate27, "_ts_decorate");
|
|
1364
|
+
function _ts_metadata27(k, v) {
|
|
1312
1365
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1313
1366
|
}
|
|
1314
|
-
__name(
|
|
1367
|
+
__name(_ts_metadata27, "_ts_metadata");
|
|
1315
1368
|
var _CreateCommentDto = class _CreateCommentDto {
|
|
1316
1369
|
constructor() {
|
|
1317
1370
|
__publicField(this, "postId");
|
|
@@ -1321,17 +1374,17 @@ var _CreateCommentDto = class _CreateCommentDto {
|
|
|
1321
1374
|
};
|
|
1322
1375
|
__name(_CreateCommentDto, "CreateCommentDto");
|
|
1323
1376
|
var CreateCommentDto = _CreateCommentDto;
|
|
1324
|
-
|
|
1325
|
-
(0,
|
|
1377
|
+
_ts_decorate27([
|
|
1378
|
+
(0, import_swagger17.ApiProperty)({
|
|
1326
1379
|
description: "Post ID to comment on",
|
|
1327
1380
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1328
1381
|
}),
|
|
1329
1382
|
(0, import_class_validator20.IsUUID)(),
|
|
1330
1383
|
(0, import_class_validator20.IsNotEmpty)(),
|
|
1331
|
-
|
|
1384
|
+
_ts_metadata27("design:type", String)
|
|
1332
1385
|
], CreateCommentDto.prototype, "postId", void 0);
|
|
1333
|
-
|
|
1334
|
-
(0,
|
|
1386
|
+
_ts_decorate27([
|
|
1387
|
+
(0, import_swagger17.ApiProperty)({
|
|
1335
1388
|
description: "Comment content",
|
|
1336
1389
|
example: "Great post!",
|
|
1337
1390
|
minLength: 1,
|
|
@@ -1341,32 +1394,32 @@ _ts_decorate26([
|
|
|
1341
1394
|
(0, import_class_validator20.IsNotEmpty)(),
|
|
1342
1395
|
(0, import_class_validator20.MinLength)(1),
|
|
1343
1396
|
(0, import_class_validator20.MaxLength)(5e3),
|
|
1344
|
-
|
|
1397
|
+
_ts_metadata27("design:type", String)
|
|
1345
1398
|
], CreateCommentDto.prototype, "content", void 0);
|
|
1346
|
-
|
|
1347
|
-
(0,
|
|
1399
|
+
_ts_decorate27([
|
|
1400
|
+
(0, import_swagger17.ApiProperty)({
|
|
1348
1401
|
description: "Parent comment ID for nested replies",
|
|
1349
1402
|
example: "123e4567-e89b-12d3-a456-426614174002",
|
|
1350
1403
|
required: false
|
|
1351
1404
|
}),
|
|
1352
1405
|
(0, import_class_validator20.IsUUID)(),
|
|
1353
1406
|
(0, import_class_validator20.IsOptional)(),
|
|
1354
|
-
|
|
1407
|
+
_ts_metadata27("design:type", String)
|
|
1355
1408
|
], CreateCommentDto.prototype, "parentCommentId", void 0);
|
|
1356
1409
|
|
|
1357
1410
|
// dto/comments/comment_response.dto.ts
|
|
1358
|
-
var
|
|
1359
|
-
function
|
|
1411
|
+
var import_swagger18 = require("@nestjs/swagger");
|
|
1412
|
+
function _ts_decorate28(decorators, target, key, desc) {
|
|
1360
1413
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1361
1414
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1362
1415
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1363
1416
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1364
1417
|
}
|
|
1365
|
-
__name(
|
|
1366
|
-
function
|
|
1418
|
+
__name(_ts_decorate28, "_ts_decorate");
|
|
1419
|
+
function _ts_metadata28(k, v) {
|
|
1367
1420
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1368
1421
|
}
|
|
1369
|
-
__name(
|
|
1422
|
+
__name(_ts_metadata28, "_ts_metadata");
|
|
1370
1423
|
var _CommentResponseDto = class _CommentResponseDto {
|
|
1371
1424
|
constructor() {
|
|
1372
1425
|
__publicField(this, "id");
|
|
@@ -1386,100 +1439,100 @@ var _CommentResponseDto = class _CommentResponseDto {
|
|
|
1386
1439
|
};
|
|
1387
1440
|
__name(_CommentResponseDto, "CommentResponseDto");
|
|
1388
1441
|
var CommentResponseDto = _CommentResponseDto;
|
|
1389
|
-
|
|
1390
|
-
(0,
|
|
1442
|
+
_ts_decorate28([
|
|
1443
|
+
(0, import_swagger18.ApiProperty)({
|
|
1391
1444
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1392
1445
|
}),
|
|
1393
|
-
|
|
1446
|
+
_ts_metadata28("design:type", String)
|
|
1394
1447
|
], CommentResponseDto.prototype, "id", void 0);
|
|
1395
|
-
|
|
1396
|
-
(0,
|
|
1448
|
+
_ts_decorate28([
|
|
1449
|
+
(0, import_swagger18.ApiProperty)({
|
|
1397
1450
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
1398
1451
|
}),
|
|
1399
|
-
|
|
1452
|
+
_ts_metadata28("design:type", String)
|
|
1400
1453
|
], CommentResponseDto.prototype, "postId", void 0);
|
|
1401
|
-
|
|
1402
|
-
(0,
|
|
1454
|
+
_ts_decorate28([
|
|
1455
|
+
(0, import_swagger18.ApiProperty)({
|
|
1403
1456
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1404
1457
|
}),
|
|
1405
|
-
|
|
1458
|
+
_ts_metadata28("design:type", String)
|
|
1406
1459
|
], CommentResponseDto.prototype, "authorId", void 0);
|
|
1407
|
-
|
|
1408
|
-
(0,
|
|
1460
|
+
_ts_decorate28([
|
|
1461
|
+
(0, import_swagger18.ApiProperty)({
|
|
1409
1462
|
example: "John Doe"
|
|
1410
1463
|
}),
|
|
1411
|
-
|
|
1464
|
+
_ts_metadata28("design:type", String)
|
|
1412
1465
|
], CommentResponseDto.prototype, "authorFullName", void 0);
|
|
1413
|
-
|
|
1414
|
-
(0,
|
|
1466
|
+
_ts_decorate28([
|
|
1467
|
+
(0, import_swagger18.ApiProperty)({
|
|
1415
1468
|
example: "https://example.com/profile.jpg",
|
|
1416
1469
|
nullable: true
|
|
1417
1470
|
}),
|
|
1418
|
-
|
|
1471
|
+
_ts_metadata28("design:type", Object)
|
|
1419
1472
|
], CommentResponseDto.prototype, "authorProfilePictureUrl", void 0);
|
|
1420
|
-
|
|
1421
|
-
(0,
|
|
1473
|
+
_ts_decorate28([
|
|
1474
|
+
(0, import_swagger18.ApiProperty)({
|
|
1422
1475
|
example: "Great post!"
|
|
1423
1476
|
}),
|
|
1424
|
-
|
|
1477
|
+
_ts_metadata28("design:type", String)
|
|
1425
1478
|
], CommentResponseDto.prototype, "content", void 0);
|
|
1426
|
-
|
|
1427
|
-
(0,
|
|
1479
|
+
_ts_decorate28([
|
|
1480
|
+
(0, import_swagger18.ApiProperty)({
|
|
1428
1481
|
example: "123e4567-e89b-12d3-a456-426614174003",
|
|
1429
1482
|
nullable: true
|
|
1430
1483
|
}),
|
|
1431
|
-
|
|
1484
|
+
_ts_metadata28("design:type", Object)
|
|
1432
1485
|
], CommentResponseDto.prototype, "parentCommentId", void 0);
|
|
1433
|
-
|
|
1434
|
-
(0,
|
|
1486
|
+
_ts_decorate28([
|
|
1487
|
+
(0, import_swagger18.ApiProperty)({
|
|
1435
1488
|
example: 0
|
|
1436
1489
|
}),
|
|
1437
|
-
|
|
1490
|
+
_ts_metadata28("design:type", Number)
|
|
1438
1491
|
], CommentResponseDto.prototype, "depth", void 0);
|
|
1439
|
-
|
|
1440
|
-
(0,
|
|
1492
|
+
_ts_decorate28([
|
|
1493
|
+
(0, import_swagger18.ApiProperty)({
|
|
1441
1494
|
example: 5
|
|
1442
1495
|
}),
|
|
1443
|
-
|
|
1496
|
+
_ts_metadata28("design:type", Number)
|
|
1444
1497
|
], CommentResponseDto.prototype, "likesCount", void 0);
|
|
1445
|
-
|
|
1446
|
-
(0,
|
|
1498
|
+
_ts_decorate28([
|
|
1499
|
+
(0, import_swagger18.ApiProperty)({
|
|
1447
1500
|
example: 2
|
|
1448
1501
|
}),
|
|
1449
|
-
|
|
1502
|
+
_ts_metadata28("design:type", Number)
|
|
1450
1503
|
], CommentResponseDto.prototype, "repliesCount", void 0);
|
|
1451
|
-
|
|
1452
|
-
(0,
|
|
1504
|
+
_ts_decorate28([
|
|
1505
|
+
(0, import_swagger18.ApiProperty)({
|
|
1453
1506
|
example: false
|
|
1454
1507
|
}),
|
|
1455
|
-
|
|
1508
|
+
_ts_metadata28("design:type", Boolean)
|
|
1456
1509
|
], CommentResponseDto.prototype, "isEdited", void 0);
|
|
1457
|
-
|
|
1458
|
-
(0,
|
|
1510
|
+
_ts_decorate28([
|
|
1511
|
+
(0, import_swagger18.ApiProperty)({
|
|
1459
1512
|
example: "2024-01-15T10:30:00Z"
|
|
1460
1513
|
}),
|
|
1461
|
-
|
|
1514
|
+
_ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1462
1515
|
], CommentResponseDto.prototype, "createdAt", void 0);
|
|
1463
|
-
|
|
1464
|
-
(0,
|
|
1516
|
+
_ts_decorate28([
|
|
1517
|
+
(0, import_swagger18.ApiProperty)({
|
|
1465
1518
|
example: "2024-01-15T10:30:00Z"
|
|
1466
1519
|
}),
|
|
1467
|
-
|
|
1520
|
+
_ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1468
1521
|
], CommentResponseDto.prototype, "updatedAt", void 0);
|
|
1469
1522
|
|
|
1470
1523
|
// dto/comments/comment_tree.dto.ts
|
|
1471
|
-
var
|
|
1472
|
-
function
|
|
1524
|
+
var import_swagger19 = require("@nestjs/swagger");
|
|
1525
|
+
function _ts_decorate29(decorators, target, key, desc) {
|
|
1473
1526
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1474
1527
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1475
1528
|
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;
|
|
1476
1529
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1477
1530
|
}
|
|
1478
|
-
__name(
|
|
1479
|
-
function
|
|
1531
|
+
__name(_ts_decorate29, "_ts_decorate");
|
|
1532
|
+
function _ts_metadata29(k, v) {
|
|
1480
1533
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1481
1534
|
}
|
|
1482
|
-
__name(
|
|
1535
|
+
__name(_ts_metadata29, "_ts_metadata");
|
|
1483
1536
|
var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
|
|
1484
1537
|
constructor() {
|
|
1485
1538
|
super(...arguments);
|
|
@@ -1488,28 +1541,28 @@ var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
|
|
|
1488
1541
|
};
|
|
1489
1542
|
__name(_CommentTreeDto, "CommentTreeDto");
|
|
1490
1543
|
var CommentTreeDto = _CommentTreeDto;
|
|
1491
|
-
|
|
1492
|
-
(0,
|
|
1544
|
+
_ts_decorate29([
|
|
1545
|
+
(0, import_swagger19.ApiProperty)({
|
|
1493
1546
|
type: [
|
|
1494
1547
|
CommentTreeDto
|
|
1495
1548
|
]
|
|
1496
1549
|
}),
|
|
1497
|
-
|
|
1550
|
+
_ts_metadata29("design:type", Array)
|
|
1498
1551
|
], CommentTreeDto.prototype, "replies", void 0);
|
|
1499
1552
|
|
|
1500
1553
|
// dto/comments/paginated_comment.dto.ts
|
|
1501
|
-
var
|
|
1502
|
-
function
|
|
1554
|
+
var import_swagger20 = require("@nestjs/swagger");
|
|
1555
|
+
function _ts_decorate30(decorators, target, key, desc) {
|
|
1503
1556
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1504
1557
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1505
1558
|
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;
|
|
1506
1559
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1507
1560
|
}
|
|
1508
|
-
__name(
|
|
1509
|
-
function
|
|
1561
|
+
__name(_ts_decorate30, "_ts_decorate");
|
|
1562
|
+
function _ts_metadata30(k, v) {
|
|
1510
1563
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1511
1564
|
}
|
|
1512
|
-
__name(
|
|
1565
|
+
__name(_ts_metadata30, "_ts_metadata");
|
|
1513
1566
|
var _PaginatedCommentsDto = class _PaginatedCommentsDto {
|
|
1514
1567
|
constructor() {
|
|
1515
1568
|
__publicField(this, "comments");
|
|
@@ -1520,47 +1573,47 @@ var _PaginatedCommentsDto = class _PaginatedCommentsDto {
|
|
|
1520
1573
|
};
|
|
1521
1574
|
__name(_PaginatedCommentsDto, "PaginatedCommentsDto");
|
|
1522
1575
|
var PaginatedCommentsDto = _PaginatedCommentsDto;
|
|
1523
|
-
|
|
1524
|
-
(0,
|
|
1576
|
+
_ts_decorate30([
|
|
1577
|
+
(0, import_swagger20.ApiProperty)({
|
|
1525
1578
|
type: [
|
|
1526
1579
|
CommentResponseDto
|
|
1527
1580
|
]
|
|
1528
1581
|
}),
|
|
1529
|
-
|
|
1582
|
+
_ts_metadata30("design:type", Array)
|
|
1530
1583
|
], PaginatedCommentsDto.prototype, "comments", void 0);
|
|
1531
|
-
|
|
1532
|
-
(0,
|
|
1584
|
+
_ts_decorate30([
|
|
1585
|
+
(0, import_swagger20.ApiProperty)({
|
|
1533
1586
|
example: 50
|
|
1534
1587
|
}),
|
|
1535
|
-
|
|
1588
|
+
_ts_metadata30("design:type", Number)
|
|
1536
1589
|
], PaginatedCommentsDto.prototype, "total", void 0);
|
|
1537
|
-
|
|
1538
|
-
(0,
|
|
1590
|
+
_ts_decorate30([
|
|
1591
|
+
(0, import_swagger20.ApiProperty)({
|
|
1539
1592
|
example: 1
|
|
1540
1593
|
}),
|
|
1541
|
-
|
|
1594
|
+
_ts_metadata30("design:type", Number)
|
|
1542
1595
|
], PaginatedCommentsDto.prototype, "page", void 0);
|
|
1543
|
-
|
|
1544
|
-
(0,
|
|
1596
|
+
_ts_decorate30([
|
|
1597
|
+
(0, import_swagger20.ApiProperty)({
|
|
1545
1598
|
example: 5
|
|
1546
1599
|
}),
|
|
1547
|
-
|
|
1600
|
+
_ts_metadata30("design:type", Number)
|
|
1548
1601
|
], PaginatedCommentsDto.prototype, "totalPages", void 0);
|
|
1549
1602
|
|
|
1550
1603
|
// dto/comments/update_comment.dto.ts
|
|
1551
|
-
var
|
|
1604
|
+
var import_swagger21 = require("@nestjs/swagger");
|
|
1552
1605
|
var import_class_validator21 = require("class-validator");
|
|
1553
|
-
function
|
|
1606
|
+
function _ts_decorate31(decorators, target, key, desc) {
|
|
1554
1607
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1555
1608
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1556
1609
|
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;
|
|
1557
1610
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1558
1611
|
}
|
|
1559
|
-
__name(
|
|
1560
|
-
function
|
|
1612
|
+
__name(_ts_decorate31, "_ts_decorate");
|
|
1613
|
+
function _ts_metadata31(k, v) {
|
|
1561
1614
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1562
1615
|
}
|
|
1563
|
-
__name(
|
|
1616
|
+
__name(_ts_metadata31, "_ts_metadata");
|
|
1564
1617
|
var _UpdateCommentDto = class _UpdateCommentDto {
|
|
1565
1618
|
constructor() {
|
|
1566
1619
|
__publicField(this, "content");
|
|
@@ -1568,8 +1621,8 @@ var _UpdateCommentDto = class _UpdateCommentDto {
|
|
|
1568
1621
|
};
|
|
1569
1622
|
__name(_UpdateCommentDto, "UpdateCommentDto");
|
|
1570
1623
|
var UpdateCommentDto = _UpdateCommentDto;
|
|
1571
|
-
|
|
1572
|
-
(0,
|
|
1624
|
+
_ts_decorate31([
|
|
1625
|
+
(0, import_swagger21.ApiProperty)({
|
|
1573
1626
|
description: "Updated comment content",
|
|
1574
1627
|
example: "Updated: Great post!",
|
|
1575
1628
|
minLength: 1,
|
|
@@ -1579,7 +1632,7 @@ _ts_decorate30([
|
|
|
1579
1632
|
(0, import_class_validator21.IsNotEmpty)(),
|
|
1580
1633
|
(0, import_class_validator21.MinLength)(1),
|
|
1581
1634
|
(0, import_class_validator21.MaxLength)(5e3),
|
|
1582
|
-
|
|
1635
|
+
_ts_metadata31("design:type", String)
|
|
1583
1636
|
], UpdateCommentDto.prototype, "content", void 0);
|
|
1584
1637
|
|
|
1585
1638
|
// dto/comments/comment_fields.dto.ts
|
|
@@ -1604,19 +1657,19 @@ __name(_CommentFields, "CommentFields");
|
|
|
1604
1657
|
var CommentFields = _CommentFields;
|
|
1605
1658
|
|
|
1606
1659
|
// dto/comments/like_comment.dto.ts
|
|
1607
|
-
var
|
|
1660
|
+
var import_swagger22 = require("@nestjs/swagger");
|
|
1608
1661
|
var import_class_validator22 = require("class-validator");
|
|
1609
|
-
function
|
|
1662
|
+
function _ts_decorate32(decorators, target, key, desc) {
|
|
1610
1663
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1611
1664
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1612
1665
|
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;
|
|
1613
1666
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1614
1667
|
}
|
|
1615
|
-
__name(
|
|
1616
|
-
function
|
|
1668
|
+
__name(_ts_decorate32, "_ts_decorate");
|
|
1669
|
+
function _ts_metadata32(k, v) {
|
|
1617
1670
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1618
1671
|
}
|
|
1619
|
-
__name(
|
|
1672
|
+
__name(_ts_metadata32, "_ts_metadata");
|
|
1620
1673
|
var _LikeCommentDto = class _LikeCommentDto {
|
|
1621
1674
|
constructor() {
|
|
1622
1675
|
__publicField(this, "type");
|
|
@@ -1624,8 +1677,8 @@ var _LikeCommentDto = class _LikeCommentDto {
|
|
|
1624
1677
|
};
|
|
1625
1678
|
__name(_LikeCommentDto, "LikeCommentDto");
|
|
1626
1679
|
var LikeCommentDto = _LikeCommentDto;
|
|
1627
|
-
|
|
1628
|
-
(0,
|
|
1680
|
+
_ts_decorate32([
|
|
1681
|
+
(0, import_swagger22.ApiProperty)({
|
|
1629
1682
|
description: "The reaction type for the comment",
|
|
1630
1683
|
enum: ReactionType,
|
|
1631
1684
|
required: false,
|
|
@@ -1633,22 +1686,22 @@ _ts_decorate31([
|
|
|
1633
1686
|
}),
|
|
1634
1687
|
(0, import_class_validator22.IsEnum)(ReactionType),
|
|
1635
1688
|
(0, import_class_validator22.IsOptional)(),
|
|
1636
|
-
|
|
1689
|
+
_ts_metadata32("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1637
1690
|
], LikeCommentDto.prototype, "type", void 0);
|
|
1638
1691
|
|
|
1639
1692
|
// dto/comments/comment_like_response.dto.ts
|
|
1640
|
-
var
|
|
1641
|
-
function
|
|
1693
|
+
var import_swagger23 = require("@nestjs/swagger");
|
|
1694
|
+
function _ts_decorate33(decorators, target, key, desc) {
|
|
1642
1695
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1643
1696
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1644
1697
|
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;
|
|
1645
1698
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1646
1699
|
}
|
|
1647
|
-
__name(
|
|
1648
|
-
function
|
|
1700
|
+
__name(_ts_decorate33, "_ts_decorate");
|
|
1701
|
+
function _ts_metadata33(k, v) {
|
|
1649
1702
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1650
1703
|
}
|
|
1651
|
-
__name(
|
|
1704
|
+
__name(_ts_metadata33, "_ts_metadata");
|
|
1652
1705
|
var _CommentLikeResponseDto = class _CommentLikeResponseDto {
|
|
1653
1706
|
constructor() {
|
|
1654
1707
|
__publicField(this, "id");
|
|
@@ -1663,70 +1716,70 @@ var _CommentLikeResponseDto = class _CommentLikeResponseDto {
|
|
|
1663
1716
|
};
|
|
1664
1717
|
__name(_CommentLikeResponseDto, "CommentLikeResponseDto");
|
|
1665
1718
|
var CommentLikeResponseDto = _CommentLikeResponseDto;
|
|
1666
|
-
|
|
1667
|
-
(0,
|
|
1719
|
+
_ts_decorate33([
|
|
1720
|
+
(0, import_swagger23.ApiProperty)({
|
|
1668
1721
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1669
1722
|
}),
|
|
1670
|
-
|
|
1723
|
+
_ts_metadata33("design:type", String)
|
|
1671
1724
|
], CommentLikeResponseDto.prototype, "id", void 0);
|
|
1672
|
-
|
|
1673
|
-
(0,
|
|
1725
|
+
_ts_decorate33([
|
|
1726
|
+
(0, import_swagger23.ApiProperty)({
|
|
1674
1727
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1675
1728
|
}),
|
|
1676
|
-
|
|
1729
|
+
_ts_metadata33("design:type", String)
|
|
1677
1730
|
], CommentLikeResponseDto.prototype, "commentId", void 0);
|
|
1678
|
-
|
|
1679
|
-
(0,
|
|
1731
|
+
_ts_decorate33([
|
|
1732
|
+
(0, import_swagger23.ApiProperty)({
|
|
1680
1733
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1681
1734
|
}),
|
|
1682
|
-
|
|
1735
|
+
_ts_metadata33("design:type", String)
|
|
1683
1736
|
], CommentLikeResponseDto.prototype, "commentatorId", void 0);
|
|
1684
|
-
|
|
1685
|
-
(0,
|
|
1737
|
+
_ts_decorate33([
|
|
1738
|
+
(0, import_swagger23.ApiProperty)({
|
|
1686
1739
|
example: "Jane Doe"
|
|
1687
1740
|
}),
|
|
1688
|
-
|
|
1741
|
+
_ts_metadata33("design:type", String)
|
|
1689
1742
|
], CommentLikeResponseDto.prototype, "commentatorFullName", void 0);
|
|
1690
|
-
|
|
1691
|
-
(0,
|
|
1743
|
+
_ts_decorate33([
|
|
1744
|
+
(0, import_swagger23.ApiProperty)({
|
|
1692
1745
|
example: "https://example.com/jane.jpg",
|
|
1693
1746
|
nullable: true
|
|
1694
1747
|
}),
|
|
1695
|
-
|
|
1748
|
+
_ts_metadata33("design:type", Object)
|
|
1696
1749
|
], CommentLikeResponseDto.prototype, "commentatorProfilePictureUrl", void 0);
|
|
1697
|
-
|
|
1698
|
-
(0,
|
|
1750
|
+
_ts_decorate33([
|
|
1751
|
+
(0, import_swagger23.ApiProperty)({
|
|
1699
1752
|
enum: ReactionType,
|
|
1700
1753
|
example: ReactionType.HEART
|
|
1701
1754
|
}),
|
|
1702
|
-
|
|
1755
|
+
_ts_metadata33("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1703
1756
|
], CommentLikeResponseDto.prototype, "type", void 0);
|
|
1704
|
-
|
|
1705
|
-
(0,
|
|
1757
|
+
_ts_decorate33([
|
|
1758
|
+
(0, import_swagger23.ApiProperty)({
|
|
1706
1759
|
example: "2024-01-15T10:35:00Z"
|
|
1707
1760
|
}),
|
|
1708
|
-
|
|
1761
|
+
_ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1709
1762
|
], CommentLikeResponseDto.prototype, "createdAt", void 0);
|
|
1710
|
-
|
|
1711
|
-
(0,
|
|
1763
|
+
_ts_decorate33([
|
|
1764
|
+
(0, import_swagger23.ApiProperty)({
|
|
1712
1765
|
example: "2024-01-15T10:35:00Z"
|
|
1713
1766
|
}),
|
|
1714
|
-
|
|
1767
|
+
_ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1715
1768
|
], CommentLikeResponseDto.prototype, "updatedAt", void 0);
|
|
1716
1769
|
|
|
1717
1770
|
// dto/comments/paginated_comment_likes.dto.ts
|
|
1718
|
-
var
|
|
1719
|
-
function
|
|
1771
|
+
var import_swagger24 = require("@nestjs/swagger");
|
|
1772
|
+
function _ts_decorate34(decorators, target, key, desc) {
|
|
1720
1773
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1721
1774
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1722
1775
|
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;
|
|
1723
1776
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1724
1777
|
}
|
|
1725
|
-
__name(
|
|
1726
|
-
function
|
|
1778
|
+
__name(_ts_decorate34, "_ts_decorate");
|
|
1779
|
+
function _ts_metadata34(k, v) {
|
|
1727
1780
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1728
1781
|
}
|
|
1729
|
-
__name(
|
|
1782
|
+
__name(_ts_metadata34, "_ts_metadata");
|
|
1730
1783
|
var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
1731
1784
|
constructor() {
|
|
1732
1785
|
__publicField(this, "likes");
|
|
@@ -1737,31 +1790,31 @@ var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
|
1737
1790
|
};
|
|
1738
1791
|
__name(_PaginatedCommentLikesDto, "PaginatedCommentLikesDto");
|
|
1739
1792
|
var PaginatedCommentLikesDto = _PaginatedCommentLikesDto;
|
|
1740
|
-
|
|
1741
|
-
(0,
|
|
1793
|
+
_ts_decorate34([
|
|
1794
|
+
(0, import_swagger24.ApiProperty)({
|
|
1742
1795
|
type: [
|
|
1743
1796
|
CommentLikeResponseDto
|
|
1744
1797
|
]
|
|
1745
1798
|
}),
|
|
1746
|
-
|
|
1799
|
+
_ts_metadata34("design:type", Array)
|
|
1747
1800
|
], PaginatedCommentLikesDto.prototype, "likes", void 0);
|
|
1748
|
-
|
|
1749
|
-
(0,
|
|
1801
|
+
_ts_decorate34([
|
|
1802
|
+
(0, import_swagger24.ApiProperty)({
|
|
1750
1803
|
example: 120
|
|
1751
1804
|
}),
|
|
1752
|
-
|
|
1805
|
+
_ts_metadata34("design:type", Number)
|
|
1753
1806
|
], PaginatedCommentLikesDto.prototype, "total", void 0);
|
|
1754
|
-
|
|
1755
|
-
(0,
|
|
1807
|
+
_ts_decorate34([
|
|
1808
|
+
(0, import_swagger24.ApiProperty)({
|
|
1756
1809
|
example: 1
|
|
1757
1810
|
}),
|
|
1758
|
-
|
|
1811
|
+
_ts_metadata34("design:type", Number)
|
|
1759
1812
|
], PaginatedCommentLikesDto.prototype, "page", void 0);
|
|
1760
|
-
|
|
1761
|
-
(0,
|
|
1813
|
+
_ts_decorate34([
|
|
1814
|
+
(0, import_swagger24.ApiProperty)({
|
|
1762
1815
|
example: 6
|
|
1763
1816
|
}),
|
|
1764
|
-
|
|
1817
|
+
_ts_metadata34("design:type", Number)
|
|
1765
1818
|
], PaginatedCommentLikesDto.prototype, "totalPages", void 0);
|
|
1766
1819
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1767
1820
|
0 && (module.exports = {
|