@feresmeryas/microservices-common 1.5.21 → 1.5.22
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 +24 -3
- package/dist/index.d.ts +24 -3
- package/dist/index.js +384 -294
- package/dist/index.mjs +387 -301
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __export(index_exports, {
|
|
|
28
28
|
CommentResponseDto: () => CommentResponseDto,
|
|
29
29
|
CommentTreeDto: () => CommentTreeDto,
|
|
30
30
|
CreateCommentDto: () => CreateCommentDto,
|
|
31
|
+
CreateOrGetTagDto: () => CreateOrGetTagDto,
|
|
31
32
|
CreatePostDto: () => CreatePostDto,
|
|
32
33
|
CreatePostFileDto: () => CreatePostFileDto,
|
|
33
34
|
CreateUserDto: () => CreateUserDto,
|
|
@@ -39,6 +40,7 @@ __export(index_exports, {
|
|
|
39
40
|
FindAllUsersDto: () => FindAllUsersDto,
|
|
40
41
|
FindByRoleDto: () => FindByRoleDto,
|
|
41
42
|
ForgotPasswordDto: () => ForgotPasswordDto,
|
|
43
|
+
GetTagsBySectorDto: () => GetTagsBySectorDto,
|
|
42
44
|
LikeCommentDto: () => LikeCommentDto,
|
|
43
45
|
LikePostDto: () => LikePostDto,
|
|
44
46
|
LoginLocalDTO: () => LoginLocalDTO,
|
|
@@ -56,7 +58,9 @@ __export(index_exports, {
|
|
|
56
58
|
ReactionType: () => ReactionType,
|
|
57
59
|
ReorderDto: () => ReorderDto,
|
|
58
60
|
ResetPasswordDto: () => ResetPasswordDto,
|
|
61
|
+
SearchTagsDto: () => SearchTagsDto,
|
|
59
62
|
SearchUsersByFullNameDTO: () => SearchUsersByFullNameDTO,
|
|
63
|
+
TagResponseDto: () => TagResponseDto,
|
|
60
64
|
UpdateCommentDto: () => UpdateCommentDto,
|
|
61
65
|
UpdatePasswordDto: () => UpdatePasswordDto,
|
|
62
66
|
UpdatePostDto: () => UpdatePostDto,
|
|
@@ -985,7 +989,6 @@ _ts_decorate16([
|
|
|
985
989
|
default: BusinessSector.CONSULTING
|
|
986
990
|
}),
|
|
987
991
|
(0, import_class_validator15.IsEnum)(BusinessSector),
|
|
988
|
-
(0, import_class_validator15.IsOptional)(),
|
|
989
992
|
_ts_metadata16("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
990
993
|
], CreatePostDto.prototype, "sector", void 0);
|
|
991
994
|
_ts_decorate16([
|
|
@@ -1006,7 +1009,7 @@ _ts_decorate16([
|
|
|
1006
1009
|
], CreatePostDto.prototype, "files", void 0);
|
|
1007
1010
|
|
|
1008
1011
|
// dto/posts/post_response.dto.ts
|
|
1009
|
-
var
|
|
1012
|
+
var import_swagger10 = require("@nestjs/swagger");
|
|
1010
1013
|
|
|
1011
1014
|
// dto/posts/post_file.dto.ts
|
|
1012
1015
|
var import_swagger8 = require("@nestjs/swagger");
|
|
@@ -1077,6 +1080,9 @@ _ts_decorate17([
|
|
|
1077
1080
|
|
|
1078
1081
|
// dto/posts/post_response.dto.ts
|
|
1079
1082
|
var import_class_validator16 = require("class-validator");
|
|
1083
|
+
|
|
1084
|
+
// dto/tags/tag_response.dto.ts
|
|
1085
|
+
var import_swagger9 = require("@nestjs/swagger");
|
|
1080
1086
|
function _ts_decorate18(decorators, target, key, desc) {
|
|
1081
1087
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1082
1088
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1088,6 +1094,47 @@ function _ts_metadata18(k, v) {
|
|
|
1088
1094
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1089
1095
|
}
|
|
1090
1096
|
__name(_ts_metadata18, "_ts_metadata");
|
|
1097
|
+
var _TagResponseDto = class _TagResponseDto {
|
|
1098
|
+
constructor() {
|
|
1099
|
+
__publicField(this, "name");
|
|
1100
|
+
__publicField(this, "slug");
|
|
1101
|
+
// Optional: Include id if you need it for specific actions
|
|
1102
|
+
__publicField(this, "id");
|
|
1103
|
+
}
|
|
1104
|
+
};
|
|
1105
|
+
__name(_TagResponseDto, "TagResponseDto");
|
|
1106
|
+
var TagResponseDto = _TagResponseDto;
|
|
1107
|
+
_ts_decorate18([
|
|
1108
|
+
(0, import_swagger9.ApiProperty)({
|
|
1109
|
+
example: "React JS"
|
|
1110
|
+
}),
|
|
1111
|
+
_ts_metadata18("design:type", String)
|
|
1112
|
+
], TagResponseDto.prototype, "name", void 0);
|
|
1113
|
+
_ts_decorate18([
|
|
1114
|
+
(0, import_swagger9.ApiProperty)({
|
|
1115
|
+
example: "react-js"
|
|
1116
|
+
}),
|
|
1117
|
+
_ts_metadata18("design:type", String)
|
|
1118
|
+
], TagResponseDto.prototype, "slug", void 0);
|
|
1119
|
+
_ts_decorate18([
|
|
1120
|
+
(0, import_swagger9.ApiProperty)({
|
|
1121
|
+
example: "uuid-v4-string"
|
|
1122
|
+
}),
|
|
1123
|
+
_ts_metadata18("design:type", String)
|
|
1124
|
+
], TagResponseDto.prototype, "id", void 0);
|
|
1125
|
+
|
|
1126
|
+
// dto/posts/post_response.dto.ts
|
|
1127
|
+
function _ts_decorate19(decorators, target, key, desc) {
|
|
1128
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1129
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1130
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1131
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1132
|
+
}
|
|
1133
|
+
__name(_ts_decorate19, "_ts_decorate");
|
|
1134
|
+
function _ts_metadata19(k, v) {
|
|
1135
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1136
|
+
}
|
|
1137
|
+
__name(_ts_metadata19, "_ts_metadata");
|
|
1091
1138
|
var _PostResponseDto = class _PostResponseDto {
|
|
1092
1139
|
constructor() {
|
|
1093
1140
|
__publicField(this, "id");
|
|
@@ -1096,6 +1143,7 @@ var _PostResponseDto = class _PostResponseDto {
|
|
|
1096
1143
|
__publicField(this, "publisherFullName");
|
|
1097
1144
|
__publicField(this, "publisherProfilePictureUrl");
|
|
1098
1145
|
__publicField(this, "files");
|
|
1146
|
+
__publicField(this, "tags");
|
|
1099
1147
|
__publicField(this, "commentsCount");
|
|
1100
1148
|
__publicField(this, "sector");
|
|
1101
1149
|
__publicField(this, "likesCount");
|
|
@@ -1105,93 +1153,102 @@ var _PostResponseDto = class _PostResponseDto {
|
|
|
1105
1153
|
};
|
|
1106
1154
|
__name(_PostResponseDto, "PostResponseDto");
|
|
1107
1155
|
var PostResponseDto = _PostResponseDto;
|
|
1108
|
-
|
|
1109
|
-
(0,
|
|
1156
|
+
_ts_decorate19([
|
|
1157
|
+
(0, import_swagger10.ApiProperty)({
|
|
1110
1158
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1111
1159
|
}),
|
|
1112
|
-
|
|
1160
|
+
_ts_metadata19("design:type", String)
|
|
1113
1161
|
], PostResponseDto.prototype, "id", void 0);
|
|
1114
|
-
|
|
1115
|
-
(0,
|
|
1162
|
+
_ts_decorate19([
|
|
1163
|
+
(0, import_swagger10.ApiProperty)({
|
|
1116
1164
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
1117
1165
|
}),
|
|
1118
|
-
|
|
1166
|
+
_ts_metadata19("design:type", String)
|
|
1119
1167
|
], PostResponseDto.prototype, "publisherId", void 0);
|
|
1120
|
-
|
|
1121
|
-
(0,
|
|
1168
|
+
_ts_decorate19([
|
|
1169
|
+
(0, import_swagger10.ApiProperty)({
|
|
1122
1170
|
example: "Check out this amazing view!"
|
|
1123
1171
|
}),
|
|
1124
|
-
|
|
1172
|
+
_ts_metadata19("design:type", String)
|
|
1125
1173
|
], PostResponseDto.prototype, "description", void 0);
|
|
1126
|
-
|
|
1127
|
-
(0,
|
|
1174
|
+
_ts_decorate19([
|
|
1175
|
+
(0, import_swagger10.ApiProperty)({
|
|
1128
1176
|
example: "John Doe"
|
|
1129
1177
|
}),
|
|
1130
|
-
|
|
1178
|
+
_ts_metadata19("design:type", String)
|
|
1131
1179
|
], PostResponseDto.prototype, "publisherFullName", void 0);
|
|
1132
|
-
|
|
1133
|
-
(0,
|
|
1180
|
+
_ts_decorate19([
|
|
1181
|
+
(0, import_swagger10.ApiProperty)({
|
|
1134
1182
|
example: "https://example.com/profile.jpg",
|
|
1135
1183
|
nullable: true
|
|
1136
1184
|
}),
|
|
1137
|
-
|
|
1185
|
+
_ts_metadata19("design:type", Object)
|
|
1138
1186
|
], PostResponseDto.prototype, "publisherProfilePictureUrl", void 0);
|
|
1139
|
-
|
|
1140
|
-
(0,
|
|
1187
|
+
_ts_decorate19([
|
|
1188
|
+
(0, import_swagger10.ApiProperty)({
|
|
1141
1189
|
type: [
|
|
1142
1190
|
PostFileDto
|
|
1143
1191
|
]
|
|
1144
1192
|
}),
|
|
1145
|
-
|
|
1193
|
+
_ts_metadata19("design:type", Array)
|
|
1146
1194
|
], PostResponseDto.prototype, "files", void 0);
|
|
1147
|
-
|
|
1148
|
-
(0,
|
|
1195
|
+
_ts_decorate19([
|
|
1196
|
+
(0, import_swagger10.ApiProperty)({
|
|
1197
|
+
type: [
|
|
1198
|
+
TagResponseDto
|
|
1199
|
+
],
|
|
1200
|
+
description: "List of tags associated with the post"
|
|
1201
|
+
}),
|
|
1202
|
+
_ts_metadata19("design:type", Array)
|
|
1203
|
+
], PostResponseDto.prototype, "tags", void 0);
|
|
1204
|
+
_ts_decorate19([
|
|
1205
|
+
(0, import_swagger10.ApiProperty)({
|
|
1149
1206
|
example: 42
|
|
1150
1207
|
}),
|
|
1151
|
-
|
|
1208
|
+
_ts_metadata19("design:type", Number)
|
|
1152
1209
|
], PostResponseDto.prototype, "commentsCount", void 0);
|
|
1153
|
-
|
|
1154
|
-
(0,
|
|
1210
|
+
_ts_decorate19([
|
|
1211
|
+
(0, import_swagger10.ApiProperty)({
|
|
1155
1212
|
description: "The Bunsieess sector type for the post",
|
|
1156
1213
|
enum: BusinessSector,
|
|
1157
1214
|
required: false,
|
|
1158
1215
|
default: BusinessSector.CONSULTING
|
|
1159
1216
|
}),
|
|
1160
1217
|
(0, import_class_validator16.IsEnum)(BusinessSector),
|
|
1161
|
-
|
|
1218
|
+
_ts_metadata19("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
1162
1219
|
], PostResponseDto.prototype, "sector", void 0);
|
|
1163
|
-
|
|
1164
|
-
(0,
|
|
1220
|
+
_ts_decorate19([
|
|
1221
|
+
(0, import_swagger10.ApiProperty)({
|
|
1165
1222
|
example: 128
|
|
1166
1223
|
}),
|
|
1167
|
-
|
|
1224
|
+
_ts_metadata19("design:type", Number)
|
|
1168
1225
|
], PostResponseDto.prototype, "likesCount", void 0);
|
|
1169
|
-
|
|
1170
|
-
(0,
|
|
1226
|
+
_ts_decorate19([
|
|
1227
|
+
(0, import_swagger10.ApiProperty)({
|
|
1171
1228
|
example: "2024-01-15T10:30:00Z"
|
|
1172
1229
|
}),
|
|
1173
|
-
|
|
1230
|
+
_ts_metadata19("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1174
1231
|
], PostResponseDto.prototype, "createdAt", void 0);
|
|
1175
|
-
|
|
1176
|
-
(0,
|
|
1232
|
+
_ts_decorate19([
|
|
1233
|
+
(0, import_swagger10.ApiProperty)({
|
|
1177
1234
|
example: "2024-01-15T10:30:00Z"
|
|
1178
1235
|
}),
|
|
1179
|
-
|
|
1236
|
+
_ts_metadata19("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1180
1237
|
], PostResponseDto.prototype, "updatedAt", void 0);
|
|
1181
1238
|
|
|
1182
1239
|
// dto/posts/pagination_post.dto.ts
|
|
1183
|
-
var
|
|
1184
|
-
function
|
|
1240
|
+
var import_swagger11 = require("@nestjs/swagger");
|
|
1241
|
+
function _ts_decorate20(decorators, target, key, desc) {
|
|
1185
1242
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1186
1243
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1187
1244
|
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
1245
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1189
1246
|
}
|
|
1190
|
-
__name(
|
|
1191
|
-
function
|
|
1247
|
+
__name(_ts_decorate20, "_ts_decorate");
|
|
1248
|
+
function _ts_metadata20(k, v) {
|
|
1192
1249
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1193
1250
|
}
|
|
1194
|
-
__name(
|
|
1251
|
+
__name(_ts_metadata20, "_ts_metadata");
|
|
1195
1252
|
var _PaginatedPostsDto = class _PaginatedPostsDto {
|
|
1196
1253
|
constructor() {
|
|
1197
1254
|
__publicField(this, "posts");
|
|
@@ -1202,47 +1259,47 @@ var _PaginatedPostsDto = class _PaginatedPostsDto {
|
|
|
1202
1259
|
};
|
|
1203
1260
|
__name(_PaginatedPostsDto, "PaginatedPostsDto");
|
|
1204
1261
|
var PaginatedPostsDto = _PaginatedPostsDto;
|
|
1205
|
-
|
|
1206
|
-
(0,
|
|
1262
|
+
_ts_decorate20([
|
|
1263
|
+
(0, import_swagger11.ApiProperty)({
|
|
1207
1264
|
type: [
|
|
1208
1265
|
PostResponseDto
|
|
1209
1266
|
]
|
|
1210
1267
|
}),
|
|
1211
|
-
|
|
1268
|
+
_ts_metadata20("design:type", Array)
|
|
1212
1269
|
], PaginatedPostsDto.prototype, "posts", void 0);
|
|
1213
|
-
|
|
1214
|
-
(0,
|
|
1270
|
+
_ts_decorate20([
|
|
1271
|
+
(0, import_swagger11.ApiProperty)({
|
|
1215
1272
|
example: 100
|
|
1216
1273
|
}),
|
|
1217
|
-
|
|
1274
|
+
_ts_metadata20("design:type", Number)
|
|
1218
1275
|
], PaginatedPostsDto.prototype, "total", void 0);
|
|
1219
|
-
|
|
1220
|
-
(0,
|
|
1276
|
+
_ts_decorate20([
|
|
1277
|
+
(0, import_swagger11.ApiProperty)({
|
|
1221
1278
|
example: 1
|
|
1222
1279
|
}),
|
|
1223
|
-
|
|
1280
|
+
_ts_metadata20("design:type", Number)
|
|
1224
1281
|
], PaginatedPostsDto.prototype, "page", void 0);
|
|
1225
|
-
|
|
1226
|
-
(0,
|
|
1282
|
+
_ts_decorate20([
|
|
1283
|
+
(0, import_swagger11.ApiProperty)({
|
|
1227
1284
|
example: 10
|
|
1228
1285
|
}),
|
|
1229
|
-
|
|
1286
|
+
_ts_metadata20("design:type", Number)
|
|
1230
1287
|
], PaginatedPostsDto.prototype, "totalPages", void 0);
|
|
1231
1288
|
|
|
1232
1289
|
// dto/posts/update_post.dto.ts
|
|
1233
|
-
var
|
|
1290
|
+
var import_swagger12 = require("@nestjs/swagger");
|
|
1234
1291
|
var import_class_validator17 = require("class-validator");
|
|
1235
|
-
function
|
|
1292
|
+
function _ts_decorate21(decorators, target, key, desc) {
|
|
1236
1293
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1237
1294
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1238
1295
|
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
1296
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1240
1297
|
}
|
|
1241
|
-
__name(
|
|
1242
|
-
function
|
|
1298
|
+
__name(_ts_decorate21, "_ts_decorate");
|
|
1299
|
+
function _ts_metadata21(k, v) {
|
|
1243
1300
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1244
1301
|
}
|
|
1245
|
-
__name(
|
|
1302
|
+
__name(_ts_metadata21, "_ts_metadata");
|
|
1246
1303
|
var _UpdatePostDto = class _UpdatePostDto {
|
|
1247
1304
|
constructor() {
|
|
1248
1305
|
__publicField(this, "description");
|
|
@@ -1251,8 +1308,8 @@ var _UpdatePostDto = class _UpdatePostDto {
|
|
|
1251
1308
|
};
|
|
1252
1309
|
__name(_UpdatePostDto, "UpdatePostDto");
|
|
1253
1310
|
var UpdatePostDto = _UpdatePostDto;
|
|
1254
|
-
|
|
1255
|
-
(0,
|
|
1311
|
+
_ts_decorate21([
|
|
1312
|
+
(0, import_swagger12.ApiProperty)({
|
|
1256
1313
|
description: "Post description/content",
|
|
1257
1314
|
example: "Updated: Check out this amazing view!",
|
|
1258
1315
|
minLength: 1,
|
|
@@ -1263,17 +1320,17 @@ _ts_decorate20([
|
|
|
1263
1320
|
(0, import_class_validator17.IsNotEmpty)(),
|
|
1264
1321
|
(0, import_class_validator17.MinLength)(1),
|
|
1265
1322
|
(0, import_class_validator17.MaxLength)(5e3),
|
|
1266
|
-
|
|
1323
|
+
(0, import_class_validator17.IsOptional)(),
|
|
1324
|
+
_ts_metadata21("design:type", String)
|
|
1267
1325
|
], UpdatePostDto.prototype, "description", void 0);
|
|
1268
|
-
|
|
1269
|
-
(0,
|
|
1270
|
-
description: "The
|
|
1271
|
-
enum: BusinessSector
|
|
1272
|
-
required: true,
|
|
1273
|
-
default: BusinessSector.CONSULTING
|
|
1326
|
+
_ts_decorate21([
|
|
1327
|
+
(0, import_swagger12.ApiPropertyOptional)({
|
|
1328
|
+
description: "The Business sector type for the post",
|
|
1329
|
+
enum: BusinessSector
|
|
1274
1330
|
}),
|
|
1331
|
+
(0, import_class_validator17.IsOptional)(),
|
|
1275
1332
|
(0, import_class_validator17.IsEnum)(BusinessSector),
|
|
1276
|
-
|
|
1333
|
+
_ts_metadata21("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
1277
1334
|
], UpdatePostDto.prototype, "sector", void 0);
|
|
1278
1335
|
|
|
1279
1336
|
// dto/posts/post_fields.dto.ts
|
|
@@ -1296,18 +1353,18 @@ __name(_PostFields, "PostFields");
|
|
|
1296
1353
|
var PostFields = _PostFields;
|
|
1297
1354
|
|
|
1298
1355
|
// dto/posts/post_response_self.dto.ts
|
|
1299
|
-
var
|
|
1300
|
-
function
|
|
1356
|
+
var import_swagger13 = require("@nestjs/swagger");
|
|
1357
|
+
function _ts_decorate22(decorators, target, key, desc) {
|
|
1301
1358
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1302
1359
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1303
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;
|
|
1304
1361
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1305
1362
|
}
|
|
1306
|
-
__name(
|
|
1307
|
-
function
|
|
1363
|
+
__name(_ts_decorate22, "_ts_decorate");
|
|
1364
|
+
function _ts_metadata22(k, v) {
|
|
1308
1365
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1309
1366
|
}
|
|
1310
|
-
__name(
|
|
1367
|
+
__name(_ts_metadata22, "_ts_metadata");
|
|
1311
1368
|
var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
|
|
1312
1369
|
constructor() {
|
|
1313
1370
|
super(...arguments);
|
|
@@ -1316,26 +1373,26 @@ var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
|
|
|
1316
1373
|
};
|
|
1317
1374
|
__name(_PostResponseSelfDto, "PostResponseSelfDto");
|
|
1318
1375
|
var PostResponseSelfDto = _PostResponseSelfDto;
|
|
1319
|
-
|
|
1320
|
-
(0,
|
|
1376
|
+
_ts_decorate22([
|
|
1377
|
+
(0, import_swagger13.ApiProperty)({
|
|
1321
1378
|
example: true
|
|
1322
1379
|
}),
|
|
1323
|
-
|
|
1380
|
+
_ts_metadata22("design:type", Boolean)
|
|
1324
1381
|
], PostResponseSelfDto.prototype, "hidden", void 0);
|
|
1325
1382
|
|
|
1326
1383
|
// dto/posts/pagination_post_self.dto.ts
|
|
1327
|
-
var
|
|
1328
|
-
function
|
|
1384
|
+
var import_swagger14 = require("@nestjs/swagger");
|
|
1385
|
+
function _ts_decorate23(decorators, target, key, desc) {
|
|
1329
1386
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1330
1387
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1331
1388
|
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
1389
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1333
1390
|
}
|
|
1334
|
-
__name(
|
|
1335
|
-
function
|
|
1391
|
+
__name(_ts_decorate23, "_ts_decorate");
|
|
1392
|
+
function _ts_metadata23(k, v) {
|
|
1336
1393
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1337
1394
|
}
|
|
1338
|
-
__name(
|
|
1395
|
+
__name(_ts_metadata23, "_ts_metadata");
|
|
1339
1396
|
var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
|
|
1340
1397
|
constructor() {
|
|
1341
1398
|
__publicField(this, "posts");
|
|
@@ -1346,46 +1403,46 @@ var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
|
|
|
1346
1403
|
};
|
|
1347
1404
|
__name(_PaginatedPostsSelfDto, "PaginatedPostsSelfDto");
|
|
1348
1405
|
var PaginatedPostsSelfDto = _PaginatedPostsSelfDto;
|
|
1349
|
-
|
|
1350
|
-
(0,
|
|
1406
|
+
_ts_decorate23([
|
|
1407
|
+
(0, import_swagger14.ApiProperty)({
|
|
1351
1408
|
type: [
|
|
1352
1409
|
PostResponseDto
|
|
1353
1410
|
]
|
|
1354
1411
|
}),
|
|
1355
|
-
|
|
1412
|
+
_ts_metadata23("design:type", Array)
|
|
1356
1413
|
], PaginatedPostsSelfDto.prototype, "posts", void 0);
|
|
1357
|
-
|
|
1358
|
-
(0,
|
|
1414
|
+
_ts_decorate23([
|
|
1415
|
+
(0, import_swagger14.ApiProperty)({
|
|
1359
1416
|
example: 100
|
|
1360
1417
|
}),
|
|
1361
|
-
|
|
1418
|
+
_ts_metadata23("design:type", Number)
|
|
1362
1419
|
], PaginatedPostsSelfDto.prototype, "total", void 0);
|
|
1363
|
-
|
|
1364
|
-
(0,
|
|
1420
|
+
_ts_decorate23([
|
|
1421
|
+
(0, import_swagger14.ApiProperty)({
|
|
1365
1422
|
example: 1
|
|
1366
1423
|
}),
|
|
1367
|
-
|
|
1424
|
+
_ts_metadata23("design:type", Number)
|
|
1368
1425
|
], PaginatedPostsSelfDto.prototype, "page", void 0);
|
|
1369
|
-
|
|
1370
|
-
(0,
|
|
1426
|
+
_ts_decorate23([
|
|
1427
|
+
(0, import_swagger14.ApiProperty)({
|
|
1371
1428
|
example: 10
|
|
1372
1429
|
}),
|
|
1373
|
-
|
|
1430
|
+
_ts_metadata23("design:type", Number)
|
|
1374
1431
|
], PaginatedPostsSelfDto.prototype, "totalPages", void 0);
|
|
1375
1432
|
|
|
1376
1433
|
// dto/posts/reorder_post_file.dto.ts
|
|
1377
1434
|
var import_class_validator18 = require("class-validator");
|
|
1378
|
-
function
|
|
1435
|
+
function _ts_decorate24(decorators, target, key, desc) {
|
|
1379
1436
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1380
1437
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1381
1438
|
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
1439
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1383
1440
|
}
|
|
1384
|
-
__name(
|
|
1385
|
-
function
|
|
1441
|
+
__name(_ts_decorate24, "_ts_decorate");
|
|
1442
|
+
function _ts_metadata24(k, v) {
|
|
1386
1443
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1387
1444
|
}
|
|
1388
|
-
__name(
|
|
1445
|
+
__name(_ts_metadata24, "_ts_metadata");
|
|
1389
1446
|
var _ReorderDto = class _ReorderDto {
|
|
1390
1447
|
constructor() {
|
|
1391
1448
|
__publicField(this, "newIndex");
|
|
@@ -1393,26 +1450,26 @@ var _ReorderDto = class _ReorderDto {
|
|
|
1393
1450
|
};
|
|
1394
1451
|
__name(_ReorderDto, "ReorderDto");
|
|
1395
1452
|
var ReorderDto = _ReorderDto;
|
|
1396
|
-
|
|
1453
|
+
_ts_decorate24([
|
|
1397
1454
|
(0, import_class_validator18.IsInt)(),
|
|
1398
1455
|
(0, import_class_validator18.Min)(0),
|
|
1399
1456
|
(0, import_class_validator18.Max)(100),
|
|
1400
|
-
|
|
1457
|
+
_ts_metadata24("design:type", Number)
|
|
1401
1458
|
], ReorderDto.prototype, "newIndex", void 0);
|
|
1402
1459
|
|
|
1403
1460
|
// dto/posts/post_like_response.dto.ts
|
|
1404
|
-
var
|
|
1405
|
-
function
|
|
1461
|
+
var import_swagger15 = require("@nestjs/swagger");
|
|
1462
|
+
function _ts_decorate25(decorators, target, key, desc) {
|
|
1406
1463
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1407
1464
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1408
1465
|
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
1466
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1410
1467
|
}
|
|
1411
|
-
__name(
|
|
1412
|
-
function
|
|
1468
|
+
__name(_ts_decorate25, "_ts_decorate");
|
|
1469
|
+
function _ts_metadata25(k, v) {
|
|
1413
1470
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1414
1471
|
}
|
|
1415
|
-
__name(
|
|
1472
|
+
__name(_ts_metadata25, "_ts_metadata");
|
|
1416
1473
|
var _PostLikeResponseDto = class _PostLikeResponseDto {
|
|
1417
1474
|
constructor() {
|
|
1418
1475
|
__publicField(this, "id");
|
|
@@ -1426,65 +1483,65 @@ var _PostLikeResponseDto = class _PostLikeResponseDto {
|
|
|
1426
1483
|
};
|
|
1427
1484
|
__name(_PostLikeResponseDto, "PostLikeResponseDto");
|
|
1428
1485
|
var PostLikeResponseDto = _PostLikeResponseDto;
|
|
1429
|
-
|
|
1430
|
-
(0,
|
|
1486
|
+
_ts_decorate25([
|
|
1487
|
+
(0, import_swagger15.ApiProperty)({
|
|
1431
1488
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1432
1489
|
}),
|
|
1433
|
-
|
|
1490
|
+
_ts_metadata25("design:type", String)
|
|
1434
1491
|
], PostLikeResponseDto.prototype, "id", void 0);
|
|
1435
|
-
|
|
1436
|
-
(0,
|
|
1492
|
+
_ts_decorate25([
|
|
1493
|
+
(0, import_swagger15.ApiProperty)({
|
|
1437
1494
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1438
1495
|
}),
|
|
1439
|
-
|
|
1496
|
+
_ts_metadata25("design:type", String)
|
|
1440
1497
|
], PostLikeResponseDto.prototype, "postId", void 0);
|
|
1441
|
-
|
|
1442
|
-
(0,
|
|
1498
|
+
_ts_decorate25([
|
|
1499
|
+
(0, import_swagger15.ApiProperty)({
|
|
1443
1500
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1444
1501
|
}),
|
|
1445
|
-
|
|
1502
|
+
_ts_metadata25("design:type", String)
|
|
1446
1503
|
], PostLikeResponseDto.prototype, "userId", void 0);
|
|
1447
|
-
|
|
1448
|
-
(0,
|
|
1504
|
+
_ts_decorate25([
|
|
1505
|
+
(0, import_swagger15.ApiProperty)({
|
|
1449
1506
|
example: "John Doe"
|
|
1450
1507
|
}),
|
|
1451
|
-
|
|
1508
|
+
_ts_metadata25("design:type", String)
|
|
1452
1509
|
], PostLikeResponseDto.prototype, "userFullName", void 0);
|
|
1453
|
-
|
|
1454
|
-
(0,
|
|
1510
|
+
_ts_decorate25([
|
|
1511
|
+
(0, import_swagger15.ApiProperty)({
|
|
1455
1512
|
example: "https://example.com/avatar.jpg",
|
|
1456
1513
|
nullable: true
|
|
1457
1514
|
}),
|
|
1458
|
-
|
|
1515
|
+
_ts_metadata25("design:type", Object)
|
|
1459
1516
|
], PostLikeResponseDto.prototype, "userProfilePictureUrl", void 0);
|
|
1460
|
-
|
|
1461
|
-
(0,
|
|
1517
|
+
_ts_decorate25([
|
|
1518
|
+
(0, import_swagger15.ApiProperty)({
|
|
1462
1519
|
enum: ReactionType,
|
|
1463
1520
|
example: ReactionType.LIKE
|
|
1464
1521
|
}),
|
|
1465
|
-
|
|
1522
|
+
_ts_metadata25("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1466
1523
|
], PostLikeResponseDto.prototype, "type", void 0);
|
|
1467
|
-
|
|
1468
|
-
(0,
|
|
1524
|
+
_ts_decorate25([
|
|
1525
|
+
(0, import_swagger15.ApiProperty)({
|
|
1469
1526
|
example: "2026-01-14T12:00:00Z"
|
|
1470
1527
|
}),
|
|
1471
|
-
|
|
1528
|
+
_ts_metadata25("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1472
1529
|
], PostLikeResponseDto.prototype, "createdAt", void 0);
|
|
1473
1530
|
|
|
1474
1531
|
// dto/posts/like_post.dto.ts
|
|
1475
|
-
var
|
|
1532
|
+
var import_swagger16 = require("@nestjs/swagger");
|
|
1476
1533
|
var import_class_validator19 = require("class-validator");
|
|
1477
|
-
function
|
|
1534
|
+
function _ts_decorate26(decorators, target, key, desc) {
|
|
1478
1535
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1479
1536
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1480
1537
|
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
1538
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1482
1539
|
}
|
|
1483
|
-
__name(
|
|
1484
|
-
function
|
|
1540
|
+
__name(_ts_decorate26, "_ts_decorate");
|
|
1541
|
+
function _ts_metadata26(k, v) {
|
|
1485
1542
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1486
1543
|
}
|
|
1487
|
-
__name(
|
|
1544
|
+
__name(_ts_metadata26, "_ts_metadata");
|
|
1488
1545
|
var _LikePostDto = class _LikePostDto {
|
|
1489
1546
|
constructor() {
|
|
1490
1547
|
__publicField(this, "type");
|
|
@@ -1492,8 +1549,8 @@ var _LikePostDto = class _LikePostDto {
|
|
|
1492
1549
|
};
|
|
1493
1550
|
__name(_LikePostDto, "LikePostDto");
|
|
1494
1551
|
var LikePostDto = _LikePostDto;
|
|
1495
|
-
|
|
1496
|
-
(0,
|
|
1552
|
+
_ts_decorate26([
|
|
1553
|
+
(0, import_swagger16.ApiProperty)({
|
|
1497
1554
|
description: "The reaction type for the post",
|
|
1498
1555
|
enum: ReactionType,
|
|
1499
1556
|
required: false,
|
|
@@ -1501,22 +1558,22 @@ _ts_decorate25([
|
|
|
1501
1558
|
}),
|
|
1502
1559
|
(0, import_class_validator19.IsEnum)(ReactionType),
|
|
1503
1560
|
(0, import_class_validator19.IsOptional)(),
|
|
1504
|
-
|
|
1561
|
+
_ts_metadata26("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1505
1562
|
], LikePostDto.prototype, "type", void 0);
|
|
1506
1563
|
|
|
1507
1564
|
// dto/posts/paginated_post_like_dto.ts
|
|
1508
|
-
var
|
|
1509
|
-
function
|
|
1565
|
+
var import_swagger17 = require("@nestjs/swagger");
|
|
1566
|
+
function _ts_decorate27(decorators, target, key, desc) {
|
|
1510
1567
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1511
1568
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1512
1569
|
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
1570
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1514
1571
|
}
|
|
1515
|
-
__name(
|
|
1516
|
-
function
|
|
1572
|
+
__name(_ts_decorate27, "_ts_decorate");
|
|
1573
|
+
function _ts_metadata27(k, v) {
|
|
1517
1574
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1518
1575
|
}
|
|
1519
|
-
__name(
|
|
1576
|
+
__name(_ts_metadata27, "_ts_metadata");
|
|
1520
1577
|
var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
|
|
1521
1578
|
constructor() {
|
|
1522
1579
|
__publicField(this, "likes");
|
|
@@ -1527,47 +1584,47 @@ var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
|
|
|
1527
1584
|
};
|
|
1528
1585
|
__name(_PaginatedPostLikesDto, "PaginatedPostLikesDto");
|
|
1529
1586
|
var PaginatedPostLikesDto = _PaginatedPostLikesDto;
|
|
1530
|
-
|
|
1531
|
-
(0,
|
|
1587
|
+
_ts_decorate27([
|
|
1588
|
+
(0, import_swagger17.ApiProperty)({
|
|
1532
1589
|
type: [
|
|
1533
1590
|
PostLikeResponseDto
|
|
1534
1591
|
]
|
|
1535
1592
|
}),
|
|
1536
|
-
|
|
1593
|
+
_ts_metadata27("design:type", Array)
|
|
1537
1594
|
], PaginatedPostLikesDto.prototype, "likes", void 0);
|
|
1538
|
-
|
|
1539
|
-
(0,
|
|
1595
|
+
_ts_decorate27([
|
|
1596
|
+
(0, import_swagger17.ApiProperty)({
|
|
1540
1597
|
example: 100
|
|
1541
1598
|
}),
|
|
1542
|
-
|
|
1599
|
+
_ts_metadata27("design:type", Number)
|
|
1543
1600
|
], PaginatedPostLikesDto.prototype, "total", void 0);
|
|
1544
|
-
|
|
1545
|
-
(0,
|
|
1601
|
+
_ts_decorate27([
|
|
1602
|
+
(0, import_swagger17.ApiProperty)({
|
|
1546
1603
|
example: 1
|
|
1547
1604
|
}),
|
|
1548
|
-
|
|
1605
|
+
_ts_metadata27("design:type", Number)
|
|
1549
1606
|
], PaginatedPostLikesDto.prototype, "page", void 0);
|
|
1550
|
-
|
|
1551
|
-
(0,
|
|
1607
|
+
_ts_decorate27([
|
|
1608
|
+
(0, import_swagger17.ApiProperty)({
|
|
1552
1609
|
example: 10
|
|
1553
1610
|
}),
|
|
1554
|
-
|
|
1611
|
+
_ts_metadata27("design:type", Number)
|
|
1555
1612
|
], PaginatedPostLikesDto.prototype, "totalPages", void 0);
|
|
1556
1613
|
|
|
1557
1614
|
// dto/comments/create_comment.dto.ts
|
|
1558
|
-
var
|
|
1615
|
+
var import_swagger18 = require("@nestjs/swagger");
|
|
1559
1616
|
var import_class_validator20 = require("class-validator");
|
|
1560
|
-
function
|
|
1617
|
+
function _ts_decorate28(decorators, target, key, desc) {
|
|
1561
1618
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1562
1619
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1563
1620
|
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
1621
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1565
1622
|
}
|
|
1566
|
-
__name(
|
|
1567
|
-
function
|
|
1623
|
+
__name(_ts_decorate28, "_ts_decorate");
|
|
1624
|
+
function _ts_metadata28(k, v) {
|
|
1568
1625
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1569
1626
|
}
|
|
1570
|
-
__name(
|
|
1627
|
+
__name(_ts_metadata28, "_ts_metadata");
|
|
1571
1628
|
var _CreateCommentDto = class _CreateCommentDto {
|
|
1572
1629
|
constructor() {
|
|
1573
1630
|
__publicField(this, "postId");
|
|
@@ -1577,17 +1634,17 @@ var _CreateCommentDto = class _CreateCommentDto {
|
|
|
1577
1634
|
};
|
|
1578
1635
|
__name(_CreateCommentDto, "CreateCommentDto");
|
|
1579
1636
|
var CreateCommentDto = _CreateCommentDto;
|
|
1580
|
-
|
|
1581
|
-
(0,
|
|
1637
|
+
_ts_decorate28([
|
|
1638
|
+
(0, import_swagger18.ApiProperty)({
|
|
1582
1639
|
description: "Post ID to comment on",
|
|
1583
1640
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1584
1641
|
}),
|
|
1585
1642
|
(0, import_class_validator20.IsUUID)(),
|
|
1586
1643
|
(0, import_class_validator20.IsNotEmpty)(),
|
|
1587
|
-
|
|
1644
|
+
_ts_metadata28("design:type", String)
|
|
1588
1645
|
], CreateCommentDto.prototype, "postId", void 0);
|
|
1589
|
-
|
|
1590
|
-
(0,
|
|
1646
|
+
_ts_decorate28([
|
|
1647
|
+
(0, import_swagger18.ApiProperty)({
|
|
1591
1648
|
description: "Comment content",
|
|
1592
1649
|
example: "Great post!",
|
|
1593
1650
|
minLength: 1,
|
|
@@ -1597,32 +1654,32 @@ _ts_decorate27([
|
|
|
1597
1654
|
(0, import_class_validator20.IsNotEmpty)(),
|
|
1598
1655
|
(0, import_class_validator20.MinLength)(1),
|
|
1599
1656
|
(0, import_class_validator20.MaxLength)(5e3),
|
|
1600
|
-
|
|
1657
|
+
_ts_metadata28("design:type", String)
|
|
1601
1658
|
], CreateCommentDto.prototype, "content", void 0);
|
|
1602
|
-
|
|
1603
|
-
(0,
|
|
1659
|
+
_ts_decorate28([
|
|
1660
|
+
(0, import_swagger18.ApiProperty)({
|
|
1604
1661
|
description: "Parent comment ID for nested replies",
|
|
1605
1662
|
example: "123e4567-e89b-12d3-a456-426614174002",
|
|
1606
1663
|
required: false
|
|
1607
1664
|
}),
|
|
1608
1665
|
(0, import_class_validator20.IsUUID)(),
|
|
1609
1666
|
(0, import_class_validator20.IsOptional)(),
|
|
1610
|
-
|
|
1667
|
+
_ts_metadata28("design:type", String)
|
|
1611
1668
|
], CreateCommentDto.prototype, "parentCommentId", void 0);
|
|
1612
1669
|
|
|
1613
1670
|
// dto/comments/comment_response.dto.ts
|
|
1614
|
-
var
|
|
1615
|
-
function
|
|
1671
|
+
var import_swagger19 = require("@nestjs/swagger");
|
|
1672
|
+
function _ts_decorate29(decorators, target, key, desc) {
|
|
1616
1673
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1617
1674
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1618
1675
|
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
1676
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1620
1677
|
}
|
|
1621
|
-
__name(
|
|
1622
|
-
function
|
|
1678
|
+
__name(_ts_decorate29, "_ts_decorate");
|
|
1679
|
+
function _ts_metadata29(k, v) {
|
|
1623
1680
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1624
1681
|
}
|
|
1625
|
-
__name(
|
|
1682
|
+
__name(_ts_metadata29, "_ts_metadata");
|
|
1626
1683
|
var _CommentResponseDto = class _CommentResponseDto {
|
|
1627
1684
|
constructor() {
|
|
1628
1685
|
__publicField(this, "id");
|
|
@@ -1642,100 +1699,100 @@ var _CommentResponseDto = class _CommentResponseDto {
|
|
|
1642
1699
|
};
|
|
1643
1700
|
__name(_CommentResponseDto, "CommentResponseDto");
|
|
1644
1701
|
var CommentResponseDto = _CommentResponseDto;
|
|
1645
|
-
|
|
1646
|
-
(0,
|
|
1702
|
+
_ts_decorate29([
|
|
1703
|
+
(0, import_swagger19.ApiProperty)({
|
|
1647
1704
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1648
1705
|
}),
|
|
1649
|
-
|
|
1706
|
+
_ts_metadata29("design:type", String)
|
|
1650
1707
|
], CommentResponseDto.prototype, "id", void 0);
|
|
1651
|
-
|
|
1652
|
-
(0,
|
|
1708
|
+
_ts_decorate29([
|
|
1709
|
+
(0, import_swagger19.ApiProperty)({
|
|
1653
1710
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
1654
1711
|
}),
|
|
1655
|
-
|
|
1712
|
+
_ts_metadata29("design:type", String)
|
|
1656
1713
|
], CommentResponseDto.prototype, "postId", void 0);
|
|
1657
|
-
|
|
1658
|
-
(0,
|
|
1714
|
+
_ts_decorate29([
|
|
1715
|
+
(0, import_swagger19.ApiProperty)({
|
|
1659
1716
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1660
1717
|
}),
|
|
1661
|
-
|
|
1718
|
+
_ts_metadata29("design:type", String)
|
|
1662
1719
|
], CommentResponseDto.prototype, "authorId", void 0);
|
|
1663
|
-
|
|
1664
|
-
(0,
|
|
1720
|
+
_ts_decorate29([
|
|
1721
|
+
(0, import_swagger19.ApiProperty)({
|
|
1665
1722
|
example: "John Doe"
|
|
1666
1723
|
}),
|
|
1667
|
-
|
|
1724
|
+
_ts_metadata29("design:type", String)
|
|
1668
1725
|
], CommentResponseDto.prototype, "authorFullName", void 0);
|
|
1669
|
-
|
|
1670
|
-
(0,
|
|
1726
|
+
_ts_decorate29([
|
|
1727
|
+
(0, import_swagger19.ApiProperty)({
|
|
1671
1728
|
example: "https://example.com/profile.jpg",
|
|
1672
1729
|
nullable: true
|
|
1673
1730
|
}),
|
|
1674
|
-
|
|
1731
|
+
_ts_metadata29("design:type", Object)
|
|
1675
1732
|
], CommentResponseDto.prototype, "authorProfilePictureUrl", void 0);
|
|
1676
|
-
|
|
1677
|
-
(0,
|
|
1733
|
+
_ts_decorate29([
|
|
1734
|
+
(0, import_swagger19.ApiProperty)({
|
|
1678
1735
|
example: "Great post!"
|
|
1679
1736
|
}),
|
|
1680
|
-
|
|
1737
|
+
_ts_metadata29("design:type", String)
|
|
1681
1738
|
], CommentResponseDto.prototype, "content", void 0);
|
|
1682
|
-
|
|
1683
|
-
(0,
|
|
1739
|
+
_ts_decorate29([
|
|
1740
|
+
(0, import_swagger19.ApiProperty)({
|
|
1684
1741
|
example: "123e4567-e89b-12d3-a456-426614174003",
|
|
1685
1742
|
nullable: true
|
|
1686
1743
|
}),
|
|
1687
|
-
|
|
1744
|
+
_ts_metadata29("design:type", Object)
|
|
1688
1745
|
], CommentResponseDto.prototype, "parentCommentId", void 0);
|
|
1689
|
-
|
|
1690
|
-
(0,
|
|
1746
|
+
_ts_decorate29([
|
|
1747
|
+
(0, import_swagger19.ApiProperty)({
|
|
1691
1748
|
example: 0
|
|
1692
1749
|
}),
|
|
1693
|
-
|
|
1750
|
+
_ts_metadata29("design:type", Number)
|
|
1694
1751
|
], CommentResponseDto.prototype, "depth", void 0);
|
|
1695
|
-
|
|
1696
|
-
(0,
|
|
1752
|
+
_ts_decorate29([
|
|
1753
|
+
(0, import_swagger19.ApiProperty)({
|
|
1697
1754
|
example: 5
|
|
1698
1755
|
}),
|
|
1699
|
-
|
|
1756
|
+
_ts_metadata29("design:type", Number)
|
|
1700
1757
|
], CommentResponseDto.prototype, "likesCount", void 0);
|
|
1701
|
-
|
|
1702
|
-
(0,
|
|
1758
|
+
_ts_decorate29([
|
|
1759
|
+
(0, import_swagger19.ApiProperty)({
|
|
1703
1760
|
example: 2
|
|
1704
1761
|
}),
|
|
1705
|
-
|
|
1762
|
+
_ts_metadata29("design:type", Number)
|
|
1706
1763
|
], CommentResponseDto.prototype, "repliesCount", void 0);
|
|
1707
|
-
|
|
1708
|
-
(0,
|
|
1764
|
+
_ts_decorate29([
|
|
1765
|
+
(0, import_swagger19.ApiProperty)({
|
|
1709
1766
|
example: false
|
|
1710
1767
|
}),
|
|
1711
|
-
|
|
1768
|
+
_ts_metadata29("design:type", Boolean)
|
|
1712
1769
|
], CommentResponseDto.prototype, "isEdited", void 0);
|
|
1713
|
-
|
|
1714
|
-
(0,
|
|
1770
|
+
_ts_decorate29([
|
|
1771
|
+
(0, import_swagger19.ApiProperty)({
|
|
1715
1772
|
example: "2024-01-15T10:30:00Z"
|
|
1716
1773
|
}),
|
|
1717
|
-
|
|
1774
|
+
_ts_metadata29("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1718
1775
|
], CommentResponseDto.prototype, "createdAt", void 0);
|
|
1719
|
-
|
|
1720
|
-
(0,
|
|
1776
|
+
_ts_decorate29([
|
|
1777
|
+
(0, import_swagger19.ApiProperty)({
|
|
1721
1778
|
example: "2024-01-15T10:30:00Z"
|
|
1722
1779
|
}),
|
|
1723
|
-
|
|
1780
|
+
_ts_metadata29("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1724
1781
|
], CommentResponseDto.prototype, "updatedAt", void 0);
|
|
1725
1782
|
|
|
1726
1783
|
// dto/comments/comment_tree.dto.ts
|
|
1727
|
-
var
|
|
1728
|
-
function
|
|
1784
|
+
var import_swagger20 = require("@nestjs/swagger");
|
|
1785
|
+
function _ts_decorate30(decorators, target, key, desc) {
|
|
1729
1786
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1730
1787
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1731
1788
|
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
1789
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1733
1790
|
}
|
|
1734
|
-
__name(
|
|
1735
|
-
function
|
|
1791
|
+
__name(_ts_decorate30, "_ts_decorate");
|
|
1792
|
+
function _ts_metadata30(k, v) {
|
|
1736
1793
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1737
1794
|
}
|
|
1738
|
-
__name(
|
|
1795
|
+
__name(_ts_metadata30, "_ts_metadata");
|
|
1739
1796
|
var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
|
|
1740
1797
|
constructor() {
|
|
1741
1798
|
super(...arguments);
|
|
@@ -1744,28 +1801,28 @@ var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
|
|
|
1744
1801
|
};
|
|
1745
1802
|
__name(_CommentTreeDto, "CommentTreeDto");
|
|
1746
1803
|
var CommentTreeDto = _CommentTreeDto;
|
|
1747
|
-
|
|
1748
|
-
(0,
|
|
1804
|
+
_ts_decorate30([
|
|
1805
|
+
(0, import_swagger20.ApiProperty)({
|
|
1749
1806
|
type: [
|
|
1750
1807
|
CommentTreeDto
|
|
1751
1808
|
]
|
|
1752
1809
|
}),
|
|
1753
|
-
|
|
1810
|
+
_ts_metadata30("design:type", Array)
|
|
1754
1811
|
], CommentTreeDto.prototype, "replies", void 0);
|
|
1755
1812
|
|
|
1756
1813
|
// dto/comments/paginated_comment.dto.ts
|
|
1757
|
-
var
|
|
1758
|
-
function
|
|
1814
|
+
var import_swagger21 = require("@nestjs/swagger");
|
|
1815
|
+
function _ts_decorate31(decorators, target, key, desc) {
|
|
1759
1816
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1760
1817
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1761
1818
|
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
1819
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1763
1820
|
}
|
|
1764
|
-
__name(
|
|
1765
|
-
function
|
|
1821
|
+
__name(_ts_decorate31, "_ts_decorate");
|
|
1822
|
+
function _ts_metadata31(k, v) {
|
|
1766
1823
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1767
1824
|
}
|
|
1768
|
-
__name(
|
|
1825
|
+
__name(_ts_metadata31, "_ts_metadata");
|
|
1769
1826
|
var _PaginatedCommentsDto = class _PaginatedCommentsDto {
|
|
1770
1827
|
constructor() {
|
|
1771
1828
|
__publicField(this, "comments");
|
|
@@ -1776,47 +1833,47 @@ var _PaginatedCommentsDto = class _PaginatedCommentsDto {
|
|
|
1776
1833
|
};
|
|
1777
1834
|
__name(_PaginatedCommentsDto, "PaginatedCommentsDto");
|
|
1778
1835
|
var PaginatedCommentsDto = _PaginatedCommentsDto;
|
|
1779
|
-
|
|
1780
|
-
(0,
|
|
1836
|
+
_ts_decorate31([
|
|
1837
|
+
(0, import_swagger21.ApiProperty)({
|
|
1781
1838
|
type: [
|
|
1782
1839
|
CommentResponseDto
|
|
1783
1840
|
]
|
|
1784
1841
|
}),
|
|
1785
|
-
|
|
1842
|
+
_ts_metadata31("design:type", Array)
|
|
1786
1843
|
], PaginatedCommentsDto.prototype, "comments", void 0);
|
|
1787
|
-
|
|
1788
|
-
(0,
|
|
1844
|
+
_ts_decorate31([
|
|
1845
|
+
(0, import_swagger21.ApiProperty)({
|
|
1789
1846
|
example: 50
|
|
1790
1847
|
}),
|
|
1791
|
-
|
|
1848
|
+
_ts_metadata31("design:type", Number)
|
|
1792
1849
|
], PaginatedCommentsDto.prototype, "total", void 0);
|
|
1793
|
-
|
|
1794
|
-
(0,
|
|
1850
|
+
_ts_decorate31([
|
|
1851
|
+
(0, import_swagger21.ApiProperty)({
|
|
1795
1852
|
example: 1
|
|
1796
1853
|
}),
|
|
1797
|
-
|
|
1854
|
+
_ts_metadata31("design:type", Number)
|
|
1798
1855
|
], PaginatedCommentsDto.prototype, "page", void 0);
|
|
1799
|
-
|
|
1800
|
-
(0,
|
|
1856
|
+
_ts_decorate31([
|
|
1857
|
+
(0, import_swagger21.ApiProperty)({
|
|
1801
1858
|
example: 5
|
|
1802
1859
|
}),
|
|
1803
|
-
|
|
1860
|
+
_ts_metadata31("design:type", Number)
|
|
1804
1861
|
], PaginatedCommentsDto.prototype, "totalPages", void 0);
|
|
1805
1862
|
|
|
1806
1863
|
// dto/comments/update_comment.dto.ts
|
|
1807
|
-
var
|
|
1864
|
+
var import_swagger22 = require("@nestjs/swagger");
|
|
1808
1865
|
var import_class_validator21 = require("class-validator");
|
|
1809
|
-
function
|
|
1866
|
+
function _ts_decorate32(decorators, target, key, desc) {
|
|
1810
1867
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1811
1868
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1812
1869
|
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
1870
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1814
1871
|
}
|
|
1815
|
-
__name(
|
|
1816
|
-
function
|
|
1872
|
+
__name(_ts_decorate32, "_ts_decorate");
|
|
1873
|
+
function _ts_metadata32(k, v) {
|
|
1817
1874
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1818
1875
|
}
|
|
1819
|
-
__name(
|
|
1876
|
+
__name(_ts_metadata32, "_ts_metadata");
|
|
1820
1877
|
var _UpdateCommentDto = class _UpdateCommentDto {
|
|
1821
1878
|
constructor() {
|
|
1822
1879
|
__publicField(this, "content");
|
|
@@ -1824,8 +1881,8 @@ var _UpdateCommentDto = class _UpdateCommentDto {
|
|
|
1824
1881
|
};
|
|
1825
1882
|
__name(_UpdateCommentDto, "UpdateCommentDto");
|
|
1826
1883
|
var UpdateCommentDto = _UpdateCommentDto;
|
|
1827
|
-
|
|
1828
|
-
(0,
|
|
1884
|
+
_ts_decorate32([
|
|
1885
|
+
(0, import_swagger22.ApiProperty)({
|
|
1829
1886
|
description: "Updated comment content",
|
|
1830
1887
|
example: "Updated: Great post!",
|
|
1831
1888
|
minLength: 1,
|
|
@@ -1835,7 +1892,7 @@ _ts_decorate31([
|
|
|
1835
1892
|
(0, import_class_validator21.IsNotEmpty)(),
|
|
1836
1893
|
(0, import_class_validator21.MinLength)(1),
|
|
1837
1894
|
(0, import_class_validator21.MaxLength)(5e3),
|
|
1838
|
-
|
|
1895
|
+
_ts_metadata32("design:type", String)
|
|
1839
1896
|
], UpdateCommentDto.prototype, "content", void 0);
|
|
1840
1897
|
|
|
1841
1898
|
// dto/comments/comment_fields.dto.ts
|
|
@@ -1860,19 +1917,19 @@ __name(_CommentFields, "CommentFields");
|
|
|
1860
1917
|
var CommentFields = _CommentFields;
|
|
1861
1918
|
|
|
1862
1919
|
// dto/comments/like_comment.dto.ts
|
|
1863
|
-
var
|
|
1920
|
+
var import_swagger23 = require("@nestjs/swagger");
|
|
1864
1921
|
var import_class_validator22 = require("class-validator");
|
|
1865
|
-
function
|
|
1922
|
+
function _ts_decorate33(decorators, target, key, desc) {
|
|
1866
1923
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1867
1924
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1868
1925
|
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
1926
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1870
1927
|
}
|
|
1871
|
-
__name(
|
|
1872
|
-
function
|
|
1928
|
+
__name(_ts_decorate33, "_ts_decorate");
|
|
1929
|
+
function _ts_metadata33(k, v) {
|
|
1873
1930
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1874
1931
|
}
|
|
1875
|
-
__name(
|
|
1932
|
+
__name(_ts_metadata33, "_ts_metadata");
|
|
1876
1933
|
var _LikeCommentDto = class _LikeCommentDto {
|
|
1877
1934
|
constructor() {
|
|
1878
1935
|
__publicField(this, "type");
|
|
@@ -1880,8 +1937,8 @@ var _LikeCommentDto = class _LikeCommentDto {
|
|
|
1880
1937
|
};
|
|
1881
1938
|
__name(_LikeCommentDto, "LikeCommentDto");
|
|
1882
1939
|
var LikeCommentDto = _LikeCommentDto;
|
|
1883
|
-
|
|
1884
|
-
(0,
|
|
1940
|
+
_ts_decorate33([
|
|
1941
|
+
(0, import_swagger23.ApiProperty)({
|
|
1885
1942
|
description: "The reaction type for the comment",
|
|
1886
1943
|
enum: ReactionType,
|
|
1887
1944
|
required: false,
|
|
@@ -1889,22 +1946,22 @@ _ts_decorate32([
|
|
|
1889
1946
|
}),
|
|
1890
1947
|
(0, import_class_validator22.IsEnum)(ReactionType),
|
|
1891
1948
|
(0, import_class_validator22.IsOptional)(),
|
|
1892
|
-
|
|
1949
|
+
_ts_metadata33("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1893
1950
|
], LikeCommentDto.prototype, "type", void 0);
|
|
1894
1951
|
|
|
1895
1952
|
// dto/comments/comment_like_response.dto.ts
|
|
1896
|
-
var
|
|
1897
|
-
function
|
|
1953
|
+
var import_swagger24 = require("@nestjs/swagger");
|
|
1954
|
+
function _ts_decorate34(decorators, target, key, desc) {
|
|
1898
1955
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1899
1956
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1900
1957
|
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
1958
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1902
1959
|
}
|
|
1903
|
-
__name(
|
|
1904
|
-
function
|
|
1960
|
+
__name(_ts_decorate34, "_ts_decorate");
|
|
1961
|
+
function _ts_metadata34(k, v) {
|
|
1905
1962
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1906
1963
|
}
|
|
1907
|
-
__name(
|
|
1964
|
+
__name(_ts_metadata34, "_ts_metadata");
|
|
1908
1965
|
var _CommentLikeResponseDto = class _CommentLikeResponseDto {
|
|
1909
1966
|
constructor() {
|
|
1910
1967
|
__publicField(this, "id");
|
|
@@ -1919,70 +1976,70 @@ var _CommentLikeResponseDto = class _CommentLikeResponseDto {
|
|
|
1919
1976
|
};
|
|
1920
1977
|
__name(_CommentLikeResponseDto, "CommentLikeResponseDto");
|
|
1921
1978
|
var CommentLikeResponseDto = _CommentLikeResponseDto;
|
|
1922
|
-
|
|
1923
|
-
(0,
|
|
1979
|
+
_ts_decorate34([
|
|
1980
|
+
(0, import_swagger24.ApiProperty)({
|
|
1924
1981
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1925
1982
|
}),
|
|
1926
|
-
|
|
1983
|
+
_ts_metadata34("design:type", String)
|
|
1927
1984
|
], CommentLikeResponseDto.prototype, "id", void 0);
|
|
1928
|
-
|
|
1929
|
-
(0,
|
|
1985
|
+
_ts_decorate34([
|
|
1986
|
+
(0, import_swagger24.ApiProperty)({
|
|
1930
1987
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1931
1988
|
}),
|
|
1932
|
-
|
|
1989
|
+
_ts_metadata34("design:type", String)
|
|
1933
1990
|
], CommentLikeResponseDto.prototype, "commentId", void 0);
|
|
1934
|
-
|
|
1935
|
-
(0,
|
|
1991
|
+
_ts_decorate34([
|
|
1992
|
+
(0, import_swagger24.ApiProperty)({
|
|
1936
1993
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1937
1994
|
}),
|
|
1938
|
-
|
|
1995
|
+
_ts_metadata34("design:type", String)
|
|
1939
1996
|
], CommentLikeResponseDto.prototype, "commentatorId", void 0);
|
|
1940
|
-
|
|
1941
|
-
(0,
|
|
1997
|
+
_ts_decorate34([
|
|
1998
|
+
(0, import_swagger24.ApiProperty)({
|
|
1942
1999
|
example: "Jane Doe"
|
|
1943
2000
|
}),
|
|
1944
|
-
|
|
2001
|
+
_ts_metadata34("design:type", String)
|
|
1945
2002
|
], CommentLikeResponseDto.prototype, "commentatorFullName", void 0);
|
|
1946
|
-
|
|
1947
|
-
(0,
|
|
2003
|
+
_ts_decorate34([
|
|
2004
|
+
(0, import_swagger24.ApiProperty)({
|
|
1948
2005
|
example: "https://example.com/jane.jpg",
|
|
1949
2006
|
nullable: true
|
|
1950
2007
|
}),
|
|
1951
|
-
|
|
2008
|
+
_ts_metadata34("design:type", Object)
|
|
1952
2009
|
], CommentLikeResponseDto.prototype, "commentatorProfilePictureUrl", void 0);
|
|
1953
|
-
|
|
1954
|
-
(0,
|
|
2010
|
+
_ts_decorate34([
|
|
2011
|
+
(0, import_swagger24.ApiProperty)({
|
|
1955
2012
|
enum: ReactionType,
|
|
1956
2013
|
example: ReactionType.HEART
|
|
1957
2014
|
}),
|
|
1958
|
-
|
|
2015
|
+
_ts_metadata34("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1959
2016
|
], CommentLikeResponseDto.prototype, "type", void 0);
|
|
1960
|
-
|
|
1961
|
-
(0,
|
|
2017
|
+
_ts_decorate34([
|
|
2018
|
+
(0, import_swagger24.ApiProperty)({
|
|
1962
2019
|
example: "2024-01-15T10:35:00Z"
|
|
1963
2020
|
}),
|
|
1964
|
-
|
|
2021
|
+
_ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1965
2022
|
], CommentLikeResponseDto.prototype, "createdAt", void 0);
|
|
1966
|
-
|
|
1967
|
-
(0,
|
|
2023
|
+
_ts_decorate34([
|
|
2024
|
+
(0, import_swagger24.ApiProperty)({
|
|
1968
2025
|
example: "2024-01-15T10:35:00Z"
|
|
1969
2026
|
}),
|
|
1970
|
-
|
|
2027
|
+
_ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1971
2028
|
], CommentLikeResponseDto.prototype, "updatedAt", void 0);
|
|
1972
2029
|
|
|
1973
2030
|
// dto/comments/paginated_comment_likes.dto.ts
|
|
1974
|
-
var
|
|
1975
|
-
function
|
|
2031
|
+
var import_swagger25 = require("@nestjs/swagger");
|
|
2032
|
+
function _ts_decorate35(decorators, target, key, desc) {
|
|
1976
2033
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1977
2034
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1978
2035
|
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
2036
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1980
2037
|
}
|
|
1981
|
-
__name(
|
|
1982
|
-
function
|
|
2038
|
+
__name(_ts_decorate35, "_ts_decorate");
|
|
2039
|
+
function _ts_metadata35(k, v) {
|
|
1983
2040
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1984
2041
|
}
|
|
1985
|
-
__name(
|
|
2042
|
+
__name(_ts_metadata35, "_ts_metadata");
|
|
1986
2043
|
var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
1987
2044
|
constructor() {
|
|
1988
2045
|
__publicField(this, "likes");
|
|
@@ -1993,32 +2050,61 @@ var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
|
1993
2050
|
};
|
|
1994
2051
|
__name(_PaginatedCommentLikesDto, "PaginatedCommentLikesDto");
|
|
1995
2052
|
var PaginatedCommentLikesDto = _PaginatedCommentLikesDto;
|
|
1996
|
-
|
|
1997
|
-
(0,
|
|
2053
|
+
_ts_decorate35([
|
|
2054
|
+
(0, import_swagger25.ApiProperty)({
|
|
1998
2055
|
type: [
|
|
1999
2056
|
CommentLikeResponseDto
|
|
2000
2057
|
]
|
|
2001
2058
|
}),
|
|
2002
|
-
|
|
2059
|
+
_ts_metadata35("design:type", Array)
|
|
2003
2060
|
], PaginatedCommentLikesDto.prototype, "likes", void 0);
|
|
2004
|
-
|
|
2005
|
-
(0,
|
|
2061
|
+
_ts_decorate35([
|
|
2062
|
+
(0, import_swagger25.ApiProperty)({
|
|
2006
2063
|
example: 120
|
|
2007
2064
|
}),
|
|
2008
|
-
|
|
2065
|
+
_ts_metadata35("design:type", Number)
|
|
2009
2066
|
], PaginatedCommentLikesDto.prototype, "total", void 0);
|
|
2010
|
-
|
|
2011
|
-
(0,
|
|
2067
|
+
_ts_decorate35([
|
|
2068
|
+
(0, import_swagger25.ApiProperty)({
|
|
2012
2069
|
example: 1
|
|
2013
2070
|
}),
|
|
2014
|
-
|
|
2071
|
+
_ts_metadata35("design:type", Number)
|
|
2015
2072
|
], PaginatedCommentLikesDto.prototype, "page", void 0);
|
|
2016
|
-
|
|
2017
|
-
(0,
|
|
2073
|
+
_ts_decorate35([
|
|
2074
|
+
(0, import_swagger25.ApiProperty)({
|
|
2018
2075
|
example: 6
|
|
2019
2076
|
}),
|
|
2020
|
-
|
|
2077
|
+
_ts_metadata35("design:type", Number)
|
|
2021
2078
|
], PaginatedCommentLikesDto.prototype, "totalPages", void 0);
|
|
2079
|
+
|
|
2080
|
+
// dto/tags/create_find_tag.dto.ts
|
|
2081
|
+
var _CreateOrGetTagDto = class _CreateOrGetTagDto {
|
|
2082
|
+
constructor() {
|
|
2083
|
+
__publicField(this, "name");
|
|
2084
|
+
__publicField(this, "sector");
|
|
2085
|
+
__publicField(this, "type");
|
|
2086
|
+
}
|
|
2087
|
+
};
|
|
2088
|
+
__name(_CreateOrGetTagDto, "CreateOrGetTagDto");
|
|
2089
|
+
var CreateOrGetTagDto = _CreateOrGetTagDto;
|
|
2090
|
+
|
|
2091
|
+
// dto/tags/get_tag_by_sector.dto.ts
|
|
2092
|
+
var _GetTagsBySectorDto = class _GetTagsBySectorDto {
|
|
2093
|
+
constructor() {
|
|
2094
|
+
__publicField(this, "sector");
|
|
2095
|
+
}
|
|
2096
|
+
};
|
|
2097
|
+
__name(_GetTagsBySectorDto, "GetTagsBySectorDto");
|
|
2098
|
+
var GetTagsBySectorDto = _GetTagsBySectorDto;
|
|
2099
|
+
|
|
2100
|
+
// dto/tags/search_tag.dto.ts
|
|
2101
|
+
var _SearchTagsDto = class _SearchTagsDto {
|
|
2102
|
+
constructor() {
|
|
2103
|
+
__publicField(this, "name");
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
__name(_SearchTagsDto, "SearchTagsDto");
|
|
2107
|
+
var SearchTagsDto = _SearchTagsDto;
|
|
2022
2108
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2023
2109
|
0 && (module.exports = {
|
|
2024
2110
|
BusinessSector,
|
|
@@ -2027,6 +2113,7 @@ _ts_decorate34([
|
|
|
2027
2113
|
CommentResponseDto,
|
|
2028
2114
|
CommentTreeDto,
|
|
2029
2115
|
CreateCommentDto,
|
|
2116
|
+
CreateOrGetTagDto,
|
|
2030
2117
|
CreatePostDto,
|
|
2031
2118
|
CreatePostFileDto,
|
|
2032
2119
|
CreateUserDto,
|
|
@@ -2038,6 +2125,7 @@ _ts_decorate34([
|
|
|
2038
2125
|
FindAllUsersDto,
|
|
2039
2126
|
FindByRoleDto,
|
|
2040
2127
|
ForgotPasswordDto,
|
|
2128
|
+
GetTagsBySectorDto,
|
|
2041
2129
|
LikeCommentDto,
|
|
2042
2130
|
LikePostDto,
|
|
2043
2131
|
LoginLocalDTO,
|
|
@@ -2055,7 +2143,9 @@ _ts_decorate34([
|
|
|
2055
2143
|
ReactionType,
|
|
2056
2144
|
ReorderDto,
|
|
2057
2145
|
ResetPasswordDto,
|
|
2146
|
+
SearchTagsDto,
|
|
2058
2147
|
SearchUsersByFullNameDTO,
|
|
2148
|
+
TagResponseDto,
|
|
2059
2149
|
UpdateCommentDto,
|
|
2060
2150
|
UpdatePasswordDto,
|
|
2061
2151
|
UpdatePostDto,
|