@feresmeryas/microservices-common 1.5.13 → 1.5.16
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/dto/comments/comment_like_response.dto.d.ts +1 -1
- package/dist/dto/comments/comment_like_response.dto.js +1 -1
- package/dist/dto/comments/comment_like_response.dto.js.map +1 -1
- package/dist/dto/posts/post_like_response.dto.d.ts +1 -1
- package/dist/dto/posts/post_like_response.dto.js +1 -1
- package/dist/dto/posts/post_like_response.dto.js.map +1 -1
- package/dist/index.d.mts +295 -0
- package/dist/index.d.ts +295 -41
- package/dist/index.js +1744 -58
- package/dist/index.mjs +1682 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -2
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,1682 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
|
|
6
|
+
// dto/users/create_user.dto.ts
|
|
7
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
8
|
+
import { IsEmail, IsNotEmpty, MaxLength, MinLength } from "class-validator";
|
|
9
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
10
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12
|
+
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;
|
|
13
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
|
+
}
|
|
15
|
+
__name(_ts_decorate, "_ts_decorate");
|
|
16
|
+
function _ts_metadata(k, v) {
|
|
17
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
18
|
+
}
|
|
19
|
+
__name(_ts_metadata, "_ts_metadata");
|
|
20
|
+
var _CreateUserDto = class _CreateUserDto {
|
|
21
|
+
constructor() {
|
|
22
|
+
__publicField(this, "email");
|
|
23
|
+
__publicField(this, "fullName");
|
|
24
|
+
__publicField(this, "password");
|
|
25
|
+
__publicField(this, "confirmPassword");
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
__name(_CreateUserDto, "CreateUserDto");
|
|
29
|
+
var CreateUserDto = _CreateUserDto;
|
|
30
|
+
_ts_decorate([
|
|
31
|
+
ApiProperty({
|
|
32
|
+
example: "user@example.com",
|
|
33
|
+
description: "The email of the user"
|
|
34
|
+
}),
|
|
35
|
+
IsEmail(),
|
|
36
|
+
_ts_metadata("design:type", String)
|
|
37
|
+
], CreateUserDto.prototype, "email", void 0);
|
|
38
|
+
_ts_decorate([
|
|
39
|
+
ApiProperty({
|
|
40
|
+
example: "John Doe",
|
|
41
|
+
description: "The full name of the user"
|
|
42
|
+
}),
|
|
43
|
+
MaxLength(100),
|
|
44
|
+
MinLength(3),
|
|
45
|
+
IsNotEmpty(),
|
|
46
|
+
_ts_metadata("design:type", String)
|
|
47
|
+
], CreateUserDto.prototype, "fullName", void 0);
|
|
48
|
+
_ts_decorate([
|
|
49
|
+
ApiProperty({
|
|
50
|
+
example: "password123",
|
|
51
|
+
minLength: 6
|
|
52
|
+
}),
|
|
53
|
+
IsNotEmpty(),
|
|
54
|
+
MinLength(6),
|
|
55
|
+
_ts_metadata("design:type", String)
|
|
56
|
+
], CreateUserDto.prototype, "password", void 0);
|
|
57
|
+
_ts_decorate([
|
|
58
|
+
ApiProperty({
|
|
59
|
+
example: "password123",
|
|
60
|
+
minLength: 6
|
|
61
|
+
}),
|
|
62
|
+
IsNotEmpty(),
|
|
63
|
+
MinLength(6),
|
|
64
|
+
_ts_metadata("design:type", String)
|
|
65
|
+
], CreateUserDto.prototype, "confirmPassword", void 0);
|
|
66
|
+
|
|
67
|
+
// dto/users/create_user_firebase.dto.ts
|
|
68
|
+
import { ApiProperty as ApiProperty2 } from "@nestjs/swagger";
|
|
69
|
+
import { IsString } from "class-validator";
|
|
70
|
+
function _ts_decorate2(decorators, target, key, desc) {
|
|
71
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
72
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
73
|
+
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;
|
|
74
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
75
|
+
}
|
|
76
|
+
__name(_ts_decorate2, "_ts_decorate");
|
|
77
|
+
function _ts_metadata2(k, v) {
|
|
78
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
79
|
+
}
|
|
80
|
+
__name(_ts_metadata2, "_ts_metadata");
|
|
81
|
+
var _CreateUserFireBaseDto = class _CreateUserFireBaseDto {
|
|
82
|
+
constructor() {
|
|
83
|
+
__publicField(this, "fireBaseUserId");
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
__name(_CreateUserFireBaseDto, "CreateUserFireBaseDto");
|
|
87
|
+
var CreateUserFireBaseDto = _CreateUserFireBaseDto;
|
|
88
|
+
_ts_decorate2([
|
|
89
|
+
ApiProperty2({
|
|
90
|
+
example: "a6iOa3JR1tQd4BbcYQOlIQKai4B3",
|
|
91
|
+
description: "The firebase Id of the user"
|
|
92
|
+
}),
|
|
93
|
+
IsString(),
|
|
94
|
+
_ts_metadata2("design:type", String)
|
|
95
|
+
], CreateUserFireBaseDto.prototype, "fireBaseUserId", void 0);
|
|
96
|
+
|
|
97
|
+
// dto/users/email_param.dto.ts
|
|
98
|
+
import { IsEmail as IsEmail2 } from "class-validator";
|
|
99
|
+
function _ts_decorate3(decorators, target, key, desc) {
|
|
100
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
101
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
102
|
+
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;
|
|
103
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
104
|
+
}
|
|
105
|
+
__name(_ts_decorate3, "_ts_decorate");
|
|
106
|
+
function _ts_metadata3(k, v) {
|
|
107
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
108
|
+
}
|
|
109
|
+
__name(_ts_metadata3, "_ts_metadata");
|
|
110
|
+
var _EmailParamDto = class _EmailParamDto {
|
|
111
|
+
constructor() {
|
|
112
|
+
__publicField(this, "email");
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
__name(_EmailParamDto, "EmailParamDto");
|
|
116
|
+
var EmailParamDto = _EmailParamDto;
|
|
117
|
+
_ts_decorate3([
|
|
118
|
+
IsEmail2(),
|
|
119
|
+
_ts_metadata3("design:type", String)
|
|
120
|
+
], EmailParamDto.prototype, "email", void 0);
|
|
121
|
+
|
|
122
|
+
// dto/users/find-all-users.dto.ts
|
|
123
|
+
import { IsOptional, IsInt, Min } from "class-validator";
|
|
124
|
+
import { Type } from "class-transformer";
|
|
125
|
+
function _ts_decorate4(decorators, target, key, desc) {
|
|
126
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
127
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
128
|
+
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;
|
|
129
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
130
|
+
}
|
|
131
|
+
__name(_ts_decorate4, "_ts_decorate");
|
|
132
|
+
function _ts_metadata4(k, v) {
|
|
133
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
134
|
+
}
|
|
135
|
+
__name(_ts_metadata4, "_ts_metadata");
|
|
136
|
+
var _FindAllUsersDto = class _FindAllUsersDto {
|
|
137
|
+
constructor() {
|
|
138
|
+
__publicField(this, "page", 1);
|
|
139
|
+
__publicField(this, "limit", 10);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
__name(_FindAllUsersDto, "FindAllUsersDto");
|
|
143
|
+
var FindAllUsersDto = _FindAllUsersDto;
|
|
144
|
+
_ts_decorate4([
|
|
145
|
+
IsOptional(),
|
|
146
|
+
Type(() => Number),
|
|
147
|
+
IsInt(),
|
|
148
|
+
Min(1),
|
|
149
|
+
_ts_metadata4("design:type", Number)
|
|
150
|
+
], FindAllUsersDto.prototype, "page", void 0);
|
|
151
|
+
_ts_decorate4([
|
|
152
|
+
IsOptional(),
|
|
153
|
+
Type(() => Number),
|
|
154
|
+
IsInt(),
|
|
155
|
+
Min(1),
|
|
156
|
+
_ts_metadata4("design:type", Number)
|
|
157
|
+
], FindAllUsersDto.prototype, "limit", void 0);
|
|
158
|
+
|
|
159
|
+
// dto/users/find-by-role.dto.ts
|
|
160
|
+
import { IsString as IsString2 } from "class-validator";
|
|
161
|
+
function _ts_decorate5(decorators, target, key, desc) {
|
|
162
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
163
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
164
|
+
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;
|
|
165
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
166
|
+
}
|
|
167
|
+
__name(_ts_decorate5, "_ts_decorate");
|
|
168
|
+
function _ts_metadata5(k, v) {
|
|
169
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
170
|
+
}
|
|
171
|
+
__name(_ts_metadata5, "_ts_metadata");
|
|
172
|
+
var _FindByRoleDto = class _FindByRoleDto {
|
|
173
|
+
constructor() {
|
|
174
|
+
__publicField(this, "roleName");
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
__name(_FindByRoleDto, "FindByRoleDto");
|
|
178
|
+
var FindByRoleDto = _FindByRoleDto;
|
|
179
|
+
_ts_decorate5([
|
|
180
|
+
IsString2(),
|
|
181
|
+
_ts_metadata5("design:type", String)
|
|
182
|
+
], FindByRoleDto.prototype, "roleName", void 0);
|
|
183
|
+
|
|
184
|
+
// dto/users/forgot-password.dto.ts
|
|
185
|
+
import { Transform } from "class-transformer";
|
|
186
|
+
import { IsEmail as IsEmail3, IsNotEmpty as IsNotEmpty2 } from "class-validator";
|
|
187
|
+
function _ts_decorate6(decorators, target, key, desc) {
|
|
188
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
189
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
190
|
+
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;
|
|
191
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
192
|
+
}
|
|
193
|
+
__name(_ts_decorate6, "_ts_decorate");
|
|
194
|
+
function _ts_metadata6(k, v) {
|
|
195
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
196
|
+
}
|
|
197
|
+
__name(_ts_metadata6, "_ts_metadata");
|
|
198
|
+
var _ForgotPasswordDto = class _ForgotPasswordDto {
|
|
199
|
+
constructor() {
|
|
200
|
+
__publicField(this, "email");
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
__name(_ForgotPasswordDto, "ForgotPasswordDto");
|
|
204
|
+
var ForgotPasswordDto = _ForgotPasswordDto;
|
|
205
|
+
_ts_decorate6([
|
|
206
|
+
Transform(({ value }) => value.toLowerCase()),
|
|
207
|
+
IsEmail3({}, {
|
|
208
|
+
message: "Invalid email format"
|
|
209
|
+
}),
|
|
210
|
+
IsNotEmpty2({
|
|
211
|
+
message: "Email is required"
|
|
212
|
+
}),
|
|
213
|
+
_ts_metadata6("design:type", String)
|
|
214
|
+
], ForgotPasswordDto.prototype, "email", void 0);
|
|
215
|
+
|
|
216
|
+
// dto/users/login_local.dto.ts
|
|
217
|
+
import { ApiProperty as ApiProperty3 } from "@nestjs/swagger/dist/decorators/api-property.decorator";
|
|
218
|
+
import { IsEmail as IsEmail4, IsNotEmpty as IsNotEmpty3, MaxLength as MaxLength2, MinLength as MinLength2 } from "class-validator";
|
|
219
|
+
function _ts_decorate7(decorators, target, key, desc) {
|
|
220
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
221
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
222
|
+
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;
|
|
223
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
224
|
+
}
|
|
225
|
+
__name(_ts_decorate7, "_ts_decorate");
|
|
226
|
+
function _ts_metadata7(k, v) {
|
|
227
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
228
|
+
}
|
|
229
|
+
__name(_ts_metadata7, "_ts_metadata");
|
|
230
|
+
var _LoginLocalDTO = class _LoginLocalDTO {
|
|
231
|
+
constructor() {
|
|
232
|
+
__publicField(this, "email");
|
|
233
|
+
__publicField(this, "password");
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
__name(_LoginLocalDTO, "LoginLocalDTO");
|
|
237
|
+
var LoginLocalDTO = _LoginLocalDTO;
|
|
238
|
+
_ts_decorate7([
|
|
239
|
+
ApiProperty3({
|
|
240
|
+
example: "user@example.com",
|
|
241
|
+
description: "The email of the user"
|
|
242
|
+
}),
|
|
243
|
+
IsNotEmpty3(),
|
|
244
|
+
IsEmail4(),
|
|
245
|
+
MinLength2(6),
|
|
246
|
+
MaxLength2(100),
|
|
247
|
+
_ts_metadata7("design:type", String)
|
|
248
|
+
], LoginLocalDTO.prototype, "email", void 0);
|
|
249
|
+
_ts_decorate7([
|
|
250
|
+
ApiProperty3({
|
|
251
|
+
example: "strongpassword",
|
|
252
|
+
description: "The password of the user"
|
|
253
|
+
}),
|
|
254
|
+
IsNotEmpty3(),
|
|
255
|
+
MinLength2(6),
|
|
256
|
+
MaxLength2(50),
|
|
257
|
+
_ts_metadata7("design:type", String)
|
|
258
|
+
], LoginLocalDTO.prototype, "password", void 0);
|
|
259
|
+
|
|
260
|
+
// dto/users/reset_password.dto.ts
|
|
261
|
+
import { IsString as IsString3, MinLength as MinLength3 } from "class-validator";
|
|
262
|
+
function _ts_decorate8(decorators, target, key, desc) {
|
|
263
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
264
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
265
|
+
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;
|
|
266
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
267
|
+
}
|
|
268
|
+
__name(_ts_decorate8, "_ts_decorate");
|
|
269
|
+
function _ts_metadata8(k, v) {
|
|
270
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
271
|
+
}
|
|
272
|
+
__name(_ts_metadata8, "_ts_metadata");
|
|
273
|
+
var _ResetPasswordDto = class _ResetPasswordDto {
|
|
274
|
+
constructor() {
|
|
275
|
+
__publicField(this, "password");
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
__name(_ResetPasswordDto, "ResetPasswordDto");
|
|
279
|
+
var ResetPasswordDto = _ResetPasswordDto;
|
|
280
|
+
_ts_decorate8([
|
|
281
|
+
IsString3(),
|
|
282
|
+
MinLength3(8),
|
|
283
|
+
_ts_metadata8("design:type", String)
|
|
284
|
+
], ResetPasswordDto.prototype, "password", void 0);
|
|
285
|
+
|
|
286
|
+
// dto/users/update-user.dto.ts
|
|
287
|
+
import { IsString as IsString4, IsOptional as IsOptional2, MinLength as MinLength4, MaxLength as MaxLength3 } from "class-validator";
|
|
288
|
+
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
289
|
+
function _ts_decorate9(decorators, target, key, desc) {
|
|
290
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
291
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
292
|
+
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;
|
|
293
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
294
|
+
}
|
|
295
|
+
__name(_ts_decorate9, "_ts_decorate");
|
|
296
|
+
function _ts_metadata9(k, v) {
|
|
297
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
298
|
+
}
|
|
299
|
+
__name(_ts_metadata9, "_ts_metadata");
|
|
300
|
+
var _UpdateUserDto = class _UpdateUserDto {
|
|
301
|
+
constructor() {
|
|
302
|
+
__publicField(this, "fullName");
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
__name(_UpdateUserDto, "UpdateUserDto");
|
|
306
|
+
var UpdateUserDto = _UpdateUserDto;
|
|
307
|
+
_ts_decorate9([
|
|
308
|
+
ApiPropertyOptional({
|
|
309
|
+
description: "User full name",
|
|
310
|
+
example: "John Doe",
|
|
311
|
+
minLength: 2,
|
|
312
|
+
maxLength: 100
|
|
313
|
+
}),
|
|
314
|
+
IsOptional2(),
|
|
315
|
+
IsString4(),
|
|
316
|
+
MinLength4(2),
|
|
317
|
+
MaxLength3(100),
|
|
318
|
+
_ts_metadata9("design:type", String)
|
|
319
|
+
], UpdateUserDto.prototype, "fullName", void 0);
|
|
320
|
+
|
|
321
|
+
// dto/users/update_password.dto.ts
|
|
322
|
+
import { ApiProperty as ApiProperty4 } from "@nestjs/swagger";
|
|
323
|
+
import { IsString as IsString5, MaxLength as MaxLength4, MinLength as MinLength5 } from "class-validator";
|
|
324
|
+
function _ts_decorate10(decorators, target, key, desc) {
|
|
325
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
326
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
327
|
+
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;
|
|
328
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
329
|
+
}
|
|
330
|
+
__name(_ts_decorate10, "_ts_decorate");
|
|
331
|
+
function _ts_metadata10(k, v) {
|
|
332
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
333
|
+
}
|
|
334
|
+
__name(_ts_metadata10, "_ts_metadata");
|
|
335
|
+
var _UpdatePasswordDto = class _UpdatePasswordDto {
|
|
336
|
+
constructor() {
|
|
337
|
+
__publicField(this, "resetPasswordToken");
|
|
338
|
+
__publicField(this, "oldPassword");
|
|
339
|
+
__publicField(this, "newPassword");
|
|
340
|
+
__publicField(this, "confirmNewPassword");
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
__name(_UpdatePasswordDto, "UpdatePasswordDto");
|
|
344
|
+
var UpdatePasswordDto = _UpdatePasswordDto;
|
|
345
|
+
_ts_decorate10([
|
|
346
|
+
ApiProperty4({
|
|
347
|
+
example: "3db4c508798e8d7c9b5652c50fb246cab4b9a26baf9997adb1180ba3189f7601",
|
|
348
|
+
description: "token sent in the email of the user"
|
|
349
|
+
}),
|
|
350
|
+
IsString5(),
|
|
351
|
+
MinLength5(10),
|
|
352
|
+
MaxLength4(200),
|
|
353
|
+
_ts_metadata10("design:type", String)
|
|
354
|
+
], UpdatePasswordDto.prototype, "resetPasswordToken", void 0);
|
|
355
|
+
_ts_decorate10([
|
|
356
|
+
ApiProperty4({
|
|
357
|
+
example: "strongpassword",
|
|
358
|
+
description: "The old password of the user"
|
|
359
|
+
}),
|
|
360
|
+
IsString5(),
|
|
361
|
+
MinLength5(8),
|
|
362
|
+
MaxLength4(50),
|
|
363
|
+
_ts_metadata10("design:type", String)
|
|
364
|
+
], UpdatePasswordDto.prototype, "oldPassword", void 0);
|
|
365
|
+
_ts_decorate10([
|
|
366
|
+
ApiProperty4({
|
|
367
|
+
example: "strongpassword",
|
|
368
|
+
description: "The new password of the user"
|
|
369
|
+
}),
|
|
370
|
+
IsString5(),
|
|
371
|
+
MinLength5(8),
|
|
372
|
+
MaxLength4(50),
|
|
373
|
+
_ts_metadata10("design:type", String)
|
|
374
|
+
], UpdatePasswordDto.prototype, "newPassword", void 0);
|
|
375
|
+
_ts_decorate10([
|
|
376
|
+
ApiProperty4({
|
|
377
|
+
example: "strongpassword",
|
|
378
|
+
description: "The confirmation of the new password"
|
|
379
|
+
}),
|
|
380
|
+
IsString5(),
|
|
381
|
+
MinLength5(8),
|
|
382
|
+
MaxLength4(50),
|
|
383
|
+
_ts_metadata10("design:type", String)
|
|
384
|
+
], UpdatePasswordDto.prototype, "confirmNewPassword", void 0);
|
|
385
|
+
|
|
386
|
+
// dto/users/user_response.dto.ts
|
|
387
|
+
var _UserResponseDto = class _UserResponseDto {
|
|
388
|
+
constructor() {
|
|
389
|
+
__publicField(this, "id");
|
|
390
|
+
__publicField(this, "fullName");
|
|
391
|
+
__publicField(this, "profilePictureUrl");
|
|
392
|
+
__publicField(this, "email");
|
|
393
|
+
__publicField(this, "createdAt");
|
|
394
|
+
__publicField(this, "updatedAt");
|
|
395
|
+
__publicField(this, "role");
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
__name(_UserResponseDto, "UserResponseDto");
|
|
399
|
+
var UserResponseDto = _UserResponseDto;
|
|
400
|
+
|
|
401
|
+
// dto/users/search_users_by_full_name.dto.ts
|
|
402
|
+
import { IsOptional as IsOptional3, IsString as IsString6 } from "class-validator";
|
|
403
|
+
function _ts_decorate11(decorators, target, key, desc) {
|
|
404
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
405
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
406
|
+
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;
|
|
407
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
408
|
+
}
|
|
409
|
+
__name(_ts_decorate11, "_ts_decorate");
|
|
410
|
+
function _ts_metadata11(k, v) {
|
|
411
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
412
|
+
}
|
|
413
|
+
__name(_ts_metadata11, "_ts_metadata");
|
|
414
|
+
var _SearchUsersByFullNameDTO = class _SearchUsersByFullNameDTO extends FindAllUsersDto {
|
|
415
|
+
constructor() {
|
|
416
|
+
super(...arguments);
|
|
417
|
+
__publicField(this, "fullName");
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
__name(_SearchUsersByFullNameDTO, "SearchUsersByFullNameDTO");
|
|
421
|
+
var SearchUsersByFullNameDTO = _SearchUsersByFullNameDTO;
|
|
422
|
+
_ts_decorate11([
|
|
423
|
+
IsString6(),
|
|
424
|
+
IsOptional3(),
|
|
425
|
+
_ts_metadata11("design:type", String)
|
|
426
|
+
], SearchUsersByFullNameDTO.prototype, "fullName", void 0);
|
|
427
|
+
|
|
428
|
+
// dto/storage/delete-file.dto.ts
|
|
429
|
+
import { IsString as IsString7, IsNotEmpty as IsNotEmpty4 } from "class-validator";
|
|
430
|
+
function _ts_decorate12(decorators, target, key, desc) {
|
|
431
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
432
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
433
|
+
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;
|
|
434
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
435
|
+
}
|
|
436
|
+
__name(_ts_decorate12, "_ts_decorate");
|
|
437
|
+
function _ts_metadata12(k, v) {
|
|
438
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
439
|
+
}
|
|
440
|
+
__name(_ts_metadata12, "_ts_metadata");
|
|
441
|
+
var _DeleteFileDto = class _DeleteFileDto {
|
|
442
|
+
constructor() {
|
|
443
|
+
__publicField(this, "fileUrl");
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
__name(_DeleteFileDto, "DeleteFileDto");
|
|
447
|
+
var DeleteFileDto = _DeleteFileDto;
|
|
448
|
+
_ts_decorate12([
|
|
449
|
+
IsString7(),
|
|
450
|
+
IsNotEmpty4(),
|
|
451
|
+
_ts_metadata12("design:type", String)
|
|
452
|
+
], DeleteFileDto.prototype, "fileUrl", void 0);
|
|
453
|
+
|
|
454
|
+
// dto/storage/file-response.dto.ts
|
|
455
|
+
var _FileResponseDto = class _FileResponseDto {
|
|
456
|
+
constructor() {
|
|
457
|
+
__publicField(this, "url");
|
|
458
|
+
__publicField(this, "fileName");
|
|
459
|
+
__publicField(this, "category");
|
|
460
|
+
__publicField(this, "size");
|
|
461
|
+
__publicField(this, "uploadedAt");
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
__name(_FileResponseDto, "FileResponseDto");
|
|
465
|
+
var FileResponseDto = _FileResponseDto;
|
|
466
|
+
|
|
467
|
+
// dto/storage/upload-file.dto.ts
|
|
468
|
+
import { IsString as IsString8, IsNotEmpty as IsNotEmpty5, IsEnum, IsOptional as IsOptional4 } from "class-validator";
|
|
469
|
+
function _ts_decorate13(decorators, target, key, desc) {
|
|
470
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
471
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
472
|
+
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;
|
|
473
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
474
|
+
}
|
|
475
|
+
__name(_ts_decorate13, "_ts_decorate");
|
|
476
|
+
function _ts_metadata13(k, v) {
|
|
477
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
478
|
+
}
|
|
479
|
+
__name(_ts_metadata13, "_ts_metadata");
|
|
480
|
+
var FileCategory = /* @__PURE__ */ (function(FileCategory2) {
|
|
481
|
+
FileCategory2["PROFILE_PICTURES"] = "profile-pictures";
|
|
482
|
+
FileCategory2["POST_IMAGES"] = "post-images";
|
|
483
|
+
FileCategory2["POST_VIDEOS"] = "post-videos";
|
|
484
|
+
FileCategory2["STORY_IMAGES"] = "story-images";
|
|
485
|
+
FileCategory2["STORY_VIDEOS"] = "story-videos";
|
|
486
|
+
FileCategory2["ATTACHMENTS"] = "attachments";
|
|
487
|
+
return FileCategory2;
|
|
488
|
+
})({});
|
|
489
|
+
var _UploadFileDto = class _UploadFileDto {
|
|
490
|
+
constructor() {
|
|
491
|
+
__publicField(this, "userId");
|
|
492
|
+
__publicField(this, "category");
|
|
493
|
+
__publicField(this, "fileName");
|
|
494
|
+
__publicField(this, "mimeType");
|
|
495
|
+
// File buffer will be sent as base64 string over TCP
|
|
496
|
+
__publicField(this, "fileBuffer");
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
__name(_UploadFileDto, "UploadFileDto");
|
|
500
|
+
var UploadFileDto = _UploadFileDto;
|
|
501
|
+
_ts_decorate13([
|
|
502
|
+
IsString8(),
|
|
503
|
+
IsNotEmpty5(),
|
|
504
|
+
_ts_metadata13("design:type", String)
|
|
505
|
+
], UploadFileDto.prototype, "userId", void 0);
|
|
506
|
+
_ts_decorate13([
|
|
507
|
+
IsEnum(FileCategory),
|
|
508
|
+
_ts_metadata13("design:type", String)
|
|
509
|
+
], UploadFileDto.prototype, "category", void 0);
|
|
510
|
+
_ts_decorate13([
|
|
511
|
+
IsString8(),
|
|
512
|
+
IsNotEmpty5(),
|
|
513
|
+
_ts_metadata13("design:type", String)
|
|
514
|
+
], UploadFileDto.prototype, "fileName", void 0);
|
|
515
|
+
_ts_decorate13([
|
|
516
|
+
IsString8(),
|
|
517
|
+
IsOptional4(),
|
|
518
|
+
_ts_metadata13("design:type", String)
|
|
519
|
+
], UploadFileDto.prototype, "mimeType", void 0);
|
|
520
|
+
|
|
521
|
+
// dto/shared/reaction_type.enum.ts
|
|
522
|
+
var ReactionType = /* @__PURE__ */ (function(ReactionType2) {
|
|
523
|
+
ReactionType2["LIKE"] = "like";
|
|
524
|
+
ReactionType2["HEART"] = "heart";
|
|
525
|
+
ReactionType2["SMILE"] = "smile";
|
|
526
|
+
ReactionType2["SAD"] = "sad";
|
|
527
|
+
ReactionType2["ANGRY"] = "angry";
|
|
528
|
+
return ReactionType2;
|
|
529
|
+
})({});
|
|
530
|
+
|
|
531
|
+
// dto/posts/create_post.dto.ts
|
|
532
|
+
import { ApiProperty as ApiProperty6 } from "@nestjs/swagger";
|
|
533
|
+
import { IsArray, IsNotEmpty as IsNotEmpty7, IsOptional as IsOptional6, IsString as IsString10, MaxLength as MaxLength5, MinLength as MinLength6, ValidateNested } from "class-validator";
|
|
534
|
+
|
|
535
|
+
// dto/posts/create_post._file.dto.ts
|
|
536
|
+
import { IsString as IsString9, IsNotEmpty as IsNotEmpty6, IsOptional as IsOptional5 } from "class-validator";
|
|
537
|
+
import { ApiProperty as ApiProperty5 } from "@nestjs/swagger";
|
|
538
|
+
function _ts_decorate14(decorators, target, key, desc) {
|
|
539
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
540
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
541
|
+
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;
|
|
542
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
543
|
+
}
|
|
544
|
+
__name(_ts_decorate14, "_ts_decorate");
|
|
545
|
+
function _ts_metadata14(k, v) {
|
|
546
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
547
|
+
}
|
|
548
|
+
__name(_ts_metadata14, "_ts_metadata");
|
|
549
|
+
var _CreatePostFileDto = class _CreatePostFileDto {
|
|
550
|
+
constructor() {
|
|
551
|
+
__publicField(this, "fileBuffer");
|
|
552
|
+
__publicField(this, "fileName");
|
|
553
|
+
__publicField(this, "mimeType");
|
|
554
|
+
__publicField(this, "fileType");
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
__name(_CreatePostFileDto, "CreatePostFileDto");
|
|
558
|
+
var CreatePostFileDto = _CreatePostFileDto;
|
|
559
|
+
_ts_decorate14([
|
|
560
|
+
ApiProperty5({
|
|
561
|
+
description: "Base64 encoded file",
|
|
562
|
+
example: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
|
|
563
|
+
}),
|
|
564
|
+
IsString9(),
|
|
565
|
+
IsNotEmpty6(),
|
|
566
|
+
_ts_metadata14("design:type", String)
|
|
567
|
+
], CreatePostFileDto.prototype, "fileBuffer", void 0);
|
|
568
|
+
_ts_decorate14([
|
|
569
|
+
ApiProperty5({
|
|
570
|
+
description: "File name",
|
|
571
|
+
example: "vacation-photo.jpg"
|
|
572
|
+
}),
|
|
573
|
+
IsString9(),
|
|
574
|
+
IsNotEmpty6(),
|
|
575
|
+
_ts_metadata14("design:type", String)
|
|
576
|
+
], CreatePostFileDto.prototype, "fileName", void 0);
|
|
577
|
+
_ts_decorate14([
|
|
578
|
+
ApiProperty5({
|
|
579
|
+
description: "MIME type",
|
|
580
|
+
example: "image/jpeg",
|
|
581
|
+
required: false
|
|
582
|
+
}),
|
|
583
|
+
IsString9(),
|
|
584
|
+
IsOptional5(),
|
|
585
|
+
_ts_metadata14("design:type", String)
|
|
586
|
+
], CreatePostFileDto.prototype, "mimeType", void 0);
|
|
587
|
+
_ts_decorate14([
|
|
588
|
+
ApiProperty5({
|
|
589
|
+
description: "File type",
|
|
590
|
+
example: "image",
|
|
591
|
+
enum: [
|
|
592
|
+
"image",
|
|
593
|
+
"video"
|
|
594
|
+
]
|
|
595
|
+
}),
|
|
596
|
+
IsString9(),
|
|
597
|
+
IsNotEmpty6(),
|
|
598
|
+
_ts_metadata14("design:type", String)
|
|
599
|
+
], CreatePostFileDto.prototype, "fileType", void 0);
|
|
600
|
+
|
|
601
|
+
// dto/posts/create_post.dto.ts
|
|
602
|
+
import { Type as Type2 } from "class-transformer";
|
|
603
|
+
function _ts_decorate15(decorators, target, key, desc) {
|
|
604
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
605
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
606
|
+
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;
|
|
607
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
608
|
+
}
|
|
609
|
+
__name(_ts_decorate15, "_ts_decorate");
|
|
610
|
+
function _ts_metadata15(k, v) {
|
|
611
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
612
|
+
}
|
|
613
|
+
__name(_ts_metadata15, "_ts_metadata");
|
|
614
|
+
var _CreatePostDto = class _CreatePostDto {
|
|
615
|
+
constructor() {
|
|
616
|
+
__publicField(this, "description");
|
|
617
|
+
__publicField(this, "files");
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
__name(_CreatePostDto, "CreatePostDto");
|
|
621
|
+
var CreatePostDto = _CreatePostDto;
|
|
622
|
+
_ts_decorate15([
|
|
623
|
+
ApiProperty6({
|
|
624
|
+
description: "Post description/content",
|
|
625
|
+
example: "Check out this amazing view!",
|
|
626
|
+
minLength: 1,
|
|
627
|
+
maxLength: 5e3
|
|
628
|
+
}),
|
|
629
|
+
IsString10(),
|
|
630
|
+
IsNotEmpty7(),
|
|
631
|
+
MinLength6(1),
|
|
632
|
+
MaxLength5(5e3),
|
|
633
|
+
_ts_metadata15("design:type", String)
|
|
634
|
+
], CreatePostDto.prototype, "description", void 0);
|
|
635
|
+
_ts_decorate15([
|
|
636
|
+
ApiProperty6({
|
|
637
|
+
description: "Array of files to upload with the post",
|
|
638
|
+
type: [
|
|
639
|
+
CreatePostFileDto
|
|
640
|
+
],
|
|
641
|
+
required: false
|
|
642
|
+
}),
|
|
643
|
+
IsArray(),
|
|
644
|
+
ValidateNested({
|
|
645
|
+
each: true
|
|
646
|
+
}),
|
|
647
|
+
Type2(() => CreatePostFileDto),
|
|
648
|
+
IsOptional6(),
|
|
649
|
+
_ts_metadata15("design:type", Array)
|
|
650
|
+
], CreatePostDto.prototype, "files", void 0);
|
|
651
|
+
|
|
652
|
+
// dto/posts/post_response.dto.ts
|
|
653
|
+
import { ApiProperty as ApiProperty8 } from "@nestjs/swagger";
|
|
654
|
+
|
|
655
|
+
// dto/posts/post_file.dto.ts
|
|
656
|
+
import { ApiProperty as ApiProperty7 } from "@nestjs/swagger";
|
|
657
|
+
function _ts_decorate16(decorators, target, key, desc) {
|
|
658
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
659
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
660
|
+
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;
|
|
661
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
662
|
+
}
|
|
663
|
+
__name(_ts_decorate16, "_ts_decorate");
|
|
664
|
+
function _ts_metadata16(k, v) {
|
|
665
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
666
|
+
}
|
|
667
|
+
__name(_ts_metadata16, "_ts_metadata");
|
|
668
|
+
var _PostFileDto = class _PostFileDto {
|
|
669
|
+
constructor() {
|
|
670
|
+
__publicField(this, "id");
|
|
671
|
+
__publicField(this, "fileUrl");
|
|
672
|
+
__publicField(this, "fileType");
|
|
673
|
+
__publicField(this, "mimeType");
|
|
674
|
+
__publicField(this, "orderIndex");
|
|
675
|
+
__publicField(this, "createdAt");
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
__name(_PostFileDto, "PostFileDto");
|
|
679
|
+
var PostFileDto = _PostFileDto;
|
|
680
|
+
_ts_decorate16([
|
|
681
|
+
ApiProperty7({
|
|
682
|
+
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
683
|
+
}),
|
|
684
|
+
_ts_metadata16("design:type", String)
|
|
685
|
+
], PostFileDto.prototype, "id", void 0);
|
|
686
|
+
_ts_decorate16([
|
|
687
|
+
ApiProperty7({
|
|
688
|
+
example: "https://storage.example.com/posts/image.jpg"
|
|
689
|
+
}),
|
|
690
|
+
_ts_metadata16("design:type", String)
|
|
691
|
+
], PostFileDto.prototype, "fileUrl", void 0);
|
|
692
|
+
_ts_decorate16([
|
|
693
|
+
ApiProperty7({
|
|
694
|
+
example: "image",
|
|
695
|
+
enum: [
|
|
696
|
+
"image",
|
|
697
|
+
"video"
|
|
698
|
+
]
|
|
699
|
+
}),
|
|
700
|
+
_ts_metadata16("design:type", String)
|
|
701
|
+
], PostFileDto.prototype, "fileType", void 0);
|
|
702
|
+
_ts_decorate16([
|
|
703
|
+
ApiProperty7({
|
|
704
|
+
example: "image/jpeg",
|
|
705
|
+
nullable: true
|
|
706
|
+
}),
|
|
707
|
+
_ts_metadata16("design:type", Object)
|
|
708
|
+
], PostFileDto.prototype, "mimeType", void 0);
|
|
709
|
+
_ts_decorate16([
|
|
710
|
+
ApiProperty7({
|
|
711
|
+
example: 0
|
|
712
|
+
}),
|
|
713
|
+
_ts_metadata16("design:type", Number)
|
|
714
|
+
], PostFileDto.prototype, "orderIndex", void 0);
|
|
715
|
+
_ts_decorate16([
|
|
716
|
+
ApiProperty7({
|
|
717
|
+
example: "2024-01-15T10:30:00Z"
|
|
718
|
+
}),
|
|
719
|
+
_ts_metadata16("design:type", typeof Date === "undefined" ? Object : Date)
|
|
720
|
+
], PostFileDto.prototype, "createdAt", void 0);
|
|
721
|
+
|
|
722
|
+
// dto/posts/post_response.dto.ts
|
|
723
|
+
function _ts_decorate17(decorators, target, key, desc) {
|
|
724
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
725
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
726
|
+
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;
|
|
727
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
728
|
+
}
|
|
729
|
+
__name(_ts_decorate17, "_ts_decorate");
|
|
730
|
+
function _ts_metadata17(k, v) {
|
|
731
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
732
|
+
}
|
|
733
|
+
__name(_ts_metadata17, "_ts_metadata");
|
|
734
|
+
var _PostResponseDto = class _PostResponseDto {
|
|
735
|
+
constructor() {
|
|
736
|
+
__publicField(this, "id");
|
|
737
|
+
__publicField(this, "publisherId");
|
|
738
|
+
__publicField(this, "description");
|
|
739
|
+
__publicField(this, "publisherFullName");
|
|
740
|
+
__publicField(this, "publisherProfilePictureUrl");
|
|
741
|
+
__publicField(this, "files");
|
|
742
|
+
__publicField(this, "commentsCount");
|
|
743
|
+
__publicField(this, "likesCount");
|
|
744
|
+
__publicField(this, "createdAt");
|
|
745
|
+
__publicField(this, "updatedAt");
|
|
746
|
+
}
|
|
747
|
+
};
|
|
748
|
+
__name(_PostResponseDto, "PostResponseDto");
|
|
749
|
+
var PostResponseDto = _PostResponseDto;
|
|
750
|
+
_ts_decorate17([
|
|
751
|
+
ApiProperty8({
|
|
752
|
+
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
753
|
+
}),
|
|
754
|
+
_ts_metadata17("design:type", String)
|
|
755
|
+
], PostResponseDto.prototype, "id", void 0);
|
|
756
|
+
_ts_decorate17([
|
|
757
|
+
ApiProperty8({
|
|
758
|
+
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
759
|
+
}),
|
|
760
|
+
_ts_metadata17("design:type", String)
|
|
761
|
+
], PostResponseDto.prototype, "publisherId", void 0);
|
|
762
|
+
_ts_decorate17([
|
|
763
|
+
ApiProperty8({
|
|
764
|
+
example: "Check out this amazing view!"
|
|
765
|
+
}),
|
|
766
|
+
_ts_metadata17("design:type", String)
|
|
767
|
+
], PostResponseDto.prototype, "description", void 0);
|
|
768
|
+
_ts_decorate17([
|
|
769
|
+
ApiProperty8({
|
|
770
|
+
example: "John Doe"
|
|
771
|
+
}),
|
|
772
|
+
_ts_metadata17("design:type", String)
|
|
773
|
+
], PostResponseDto.prototype, "publisherFullName", void 0);
|
|
774
|
+
_ts_decorate17([
|
|
775
|
+
ApiProperty8({
|
|
776
|
+
example: "https://example.com/profile.jpg",
|
|
777
|
+
nullable: true
|
|
778
|
+
}),
|
|
779
|
+
_ts_metadata17("design:type", Object)
|
|
780
|
+
], PostResponseDto.prototype, "publisherProfilePictureUrl", void 0);
|
|
781
|
+
_ts_decorate17([
|
|
782
|
+
ApiProperty8({
|
|
783
|
+
type: [
|
|
784
|
+
PostFileDto
|
|
785
|
+
]
|
|
786
|
+
}),
|
|
787
|
+
_ts_metadata17("design:type", Array)
|
|
788
|
+
], PostResponseDto.prototype, "files", void 0);
|
|
789
|
+
_ts_decorate17([
|
|
790
|
+
ApiProperty8({
|
|
791
|
+
example: 42
|
|
792
|
+
}),
|
|
793
|
+
_ts_metadata17("design:type", Number)
|
|
794
|
+
], PostResponseDto.prototype, "commentsCount", void 0);
|
|
795
|
+
_ts_decorate17([
|
|
796
|
+
ApiProperty8({
|
|
797
|
+
example: 128
|
|
798
|
+
}),
|
|
799
|
+
_ts_metadata17("design:type", Number)
|
|
800
|
+
], PostResponseDto.prototype, "likesCount", void 0);
|
|
801
|
+
_ts_decorate17([
|
|
802
|
+
ApiProperty8({
|
|
803
|
+
example: "2024-01-15T10:30:00Z"
|
|
804
|
+
}),
|
|
805
|
+
_ts_metadata17("design:type", typeof Date === "undefined" ? Object : Date)
|
|
806
|
+
], PostResponseDto.prototype, "createdAt", void 0);
|
|
807
|
+
_ts_decorate17([
|
|
808
|
+
ApiProperty8({
|
|
809
|
+
example: "2024-01-15T10:30:00Z"
|
|
810
|
+
}),
|
|
811
|
+
_ts_metadata17("design:type", typeof Date === "undefined" ? Object : Date)
|
|
812
|
+
], PostResponseDto.prototype, "updatedAt", void 0);
|
|
813
|
+
|
|
814
|
+
// dto/posts/pagination_post.dto.ts
|
|
815
|
+
import { ApiProperty as ApiProperty9 } from "@nestjs/swagger";
|
|
816
|
+
function _ts_decorate18(decorators, target, key, desc) {
|
|
817
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
818
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
819
|
+
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;
|
|
820
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
821
|
+
}
|
|
822
|
+
__name(_ts_decorate18, "_ts_decorate");
|
|
823
|
+
function _ts_metadata18(k, v) {
|
|
824
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
825
|
+
}
|
|
826
|
+
__name(_ts_metadata18, "_ts_metadata");
|
|
827
|
+
var _PaginatedPostsDto = class _PaginatedPostsDto {
|
|
828
|
+
constructor() {
|
|
829
|
+
__publicField(this, "posts");
|
|
830
|
+
__publicField(this, "total");
|
|
831
|
+
__publicField(this, "page");
|
|
832
|
+
__publicField(this, "totalPages");
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
__name(_PaginatedPostsDto, "PaginatedPostsDto");
|
|
836
|
+
var PaginatedPostsDto = _PaginatedPostsDto;
|
|
837
|
+
_ts_decorate18([
|
|
838
|
+
ApiProperty9({
|
|
839
|
+
type: [
|
|
840
|
+
PostResponseDto
|
|
841
|
+
]
|
|
842
|
+
}),
|
|
843
|
+
_ts_metadata18("design:type", Array)
|
|
844
|
+
], PaginatedPostsDto.prototype, "posts", void 0);
|
|
845
|
+
_ts_decorate18([
|
|
846
|
+
ApiProperty9({
|
|
847
|
+
example: 100
|
|
848
|
+
}),
|
|
849
|
+
_ts_metadata18("design:type", Number)
|
|
850
|
+
], PaginatedPostsDto.prototype, "total", void 0);
|
|
851
|
+
_ts_decorate18([
|
|
852
|
+
ApiProperty9({
|
|
853
|
+
example: 1
|
|
854
|
+
}),
|
|
855
|
+
_ts_metadata18("design:type", Number)
|
|
856
|
+
], PaginatedPostsDto.prototype, "page", void 0);
|
|
857
|
+
_ts_decorate18([
|
|
858
|
+
ApiProperty9({
|
|
859
|
+
example: 10
|
|
860
|
+
}),
|
|
861
|
+
_ts_metadata18("design:type", Number)
|
|
862
|
+
], PaginatedPostsDto.prototype, "totalPages", void 0);
|
|
863
|
+
|
|
864
|
+
// dto/posts/update_post.dto.ts
|
|
865
|
+
import { ApiProperty as ApiProperty10 } from "@nestjs/swagger";
|
|
866
|
+
import { IsNotEmpty as IsNotEmpty8, IsString as IsString11, MaxLength as MaxLength6, MinLength as MinLength7 } from "class-validator";
|
|
867
|
+
function _ts_decorate19(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_decorate19, "_ts_decorate");
|
|
874
|
+
function _ts_metadata19(k, v) {
|
|
875
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
876
|
+
}
|
|
877
|
+
__name(_ts_metadata19, "_ts_metadata");
|
|
878
|
+
var _UpdatePostDto = class _UpdatePostDto {
|
|
879
|
+
constructor() {
|
|
880
|
+
__publicField(this, "description");
|
|
881
|
+
}
|
|
882
|
+
};
|
|
883
|
+
__name(_UpdatePostDto, "UpdatePostDto");
|
|
884
|
+
var UpdatePostDto = _UpdatePostDto;
|
|
885
|
+
_ts_decorate19([
|
|
886
|
+
ApiProperty10({
|
|
887
|
+
description: "Post description/content",
|
|
888
|
+
example: "Updated: Check out this amazing view!",
|
|
889
|
+
minLength: 1,
|
|
890
|
+
maxLength: 5e3,
|
|
891
|
+
required: false
|
|
892
|
+
}),
|
|
893
|
+
IsString11(),
|
|
894
|
+
IsNotEmpty8(),
|
|
895
|
+
MinLength7(1),
|
|
896
|
+
MaxLength6(5e3),
|
|
897
|
+
_ts_metadata19("design:type", String)
|
|
898
|
+
], UpdatePostDto.prototype, "description", void 0);
|
|
899
|
+
|
|
900
|
+
// dto/posts/post_fields.dto.ts
|
|
901
|
+
var _PostFields = class _PostFields {
|
|
902
|
+
constructor() {
|
|
903
|
+
__publicField(this, "id");
|
|
904
|
+
__publicField(this, "publisherId");
|
|
905
|
+
__publicField(this, "description");
|
|
906
|
+
__publicField(this, "publisherFullName");
|
|
907
|
+
__publicField(this, "publisherProfilePictureUrl");
|
|
908
|
+
__publicField(this, "commentsCount");
|
|
909
|
+
__publicField(this, "likesCount");
|
|
910
|
+
__publicField(this, "files");
|
|
911
|
+
__publicField(this, "createdAt");
|
|
912
|
+
__publicField(this, "updatedAt");
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
__name(_PostFields, "PostFields");
|
|
916
|
+
var PostFields = _PostFields;
|
|
917
|
+
|
|
918
|
+
// dto/posts/post_response_self.dto.ts
|
|
919
|
+
import { ApiProperty as ApiProperty11 } from "@nestjs/swagger";
|
|
920
|
+
function _ts_decorate20(decorators, target, key, desc) {
|
|
921
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
922
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
923
|
+
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;
|
|
924
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
925
|
+
}
|
|
926
|
+
__name(_ts_decorate20, "_ts_decorate");
|
|
927
|
+
function _ts_metadata20(k, v) {
|
|
928
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
929
|
+
}
|
|
930
|
+
__name(_ts_metadata20, "_ts_metadata");
|
|
931
|
+
var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
|
|
932
|
+
constructor() {
|
|
933
|
+
super(...arguments);
|
|
934
|
+
__publicField(this, "hidden");
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
__name(_PostResponseSelfDto, "PostResponseSelfDto");
|
|
938
|
+
var PostResponseSelfDto = _PostResponseSelfDto;
|
|
939
|
+
_ts_decorate20([
|
|
940
|
+
ApiProperty11({
|
|
941
|
+
example: true
|
|
942
|
+
}),
|
|
943
|
+
_ts_metadata20("design:type", Boolean)
|
|
944
|
+
], PostResponseSelfDto.prototype, "hidden", void 0);
|
|
945
|
+
|
|
946
|
+
// dto/posts/pagination_post_self.dto.ts
|
|
947
|
+
import { ApiProperty as ApiProperty12 } from "@nestjs/swagger";
|
|
948
|
+
function _ts_decorate21(decorators, target, key, desc) {
|
|
949
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
950
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
951
|
+
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;
|
|
952
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
953
|
+
}
|
|
954
|
+
__name(_ts_decorate21, "_ts_decorate");
|
|
955
|
+
function _ts_metadata21(k, v) {
|
|
956
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
957
|
+
}
|
|
958
|
+
__name(_ts_metadata21, "_ts_metadata");
|
|
959
|
+
var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
|
|
960
|
+
constructor() {
|
|
961
|
+
__publicField(this, "posts");
|
|
962
|
+
__publicField(this, "total");
|
|
963
|
+
__publicField(this, "page");
|
|
964
|
+
__publicField(this, "totalPages");
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
__name(_PaginatedPostsSelfDto, "PaginatedPostsSelfDto");
|
|
968
|
+
var PaginatedPostsSelfDto = _PaginatedPostsSelfDto;
|
|
969
|
+
_ts_decorate21([
|
|
970
|
+
ApiProperty12({
|
|
971
|
+
type: [
|
|
972
|
+
PostResponseDto
|
|
973
|
+
]
|
|
974
|
+
}),
|
|
975
|
+
_ts_metadata21("design:type", Array)
|
|
976
|
+
], PaginatedPostsSelfDto.prototype, "posts", void 0);
|
|
977
|
+
_ts_decorate21([
|
|
978
|
+
ApiProperty12({
|
|
979
|
+
example: 100
|
|
980
|
+
}),
|
|
981
|
+
_ts_metadata21("design:type", Number)
|
|
982
|
+
], PaginatedPostsSelfDto.prototype, "total", void 0);
|
|
983
|
+
_ts_decorate21([
|
|
984
|
+
ApiProperty12({
|
|
985
|
+
example: 1
|
|
986
|
+
}),
|
|
987
|
+
_ts_metadata21("design:type", Number)
|
|
988
|
+
], PaginatedPostsSelfDto.prototype, "page", void 0);
|
|
989
|
+
_ts_decorate21([
|
|
990
|
+
ApiProperty12({
|
|
991
|
+
example: 10
|
|
992
|
+
}),
|
|
993
|
+
_ts_metadata21("design:type", Number)
|
|
994
|
+
], PaginatedPostsSelfDto.prototype, "totalPages", void 0);
|
|
995
|
+
|
|
996
|
+
// dto/posts/reorder_post_file.dto.ts
|
|
997
|
+
import { IsInt as IsInt2, Max, Min as Min2 } from "class-validator";
|
|
998
|
+
function _ts_decorate22(decorators, target, key, desc) {
|
|
999
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1000
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1001
|
+
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;
|
|
1002
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1003
|
+
}
|
|
1004
|
+
__name(_ts_decorate22, "_ts_decorate");
|
|
1005
|
+
function _ts_metadata22(k, v) {
|
|
1006
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1007
|
+
}
|
|
1008
|
+
__name(_ts_metadata22, "_ts_metadata");
|
|
1009
|
+
var _ReorderDto = class _ReorderDto {
|
|
1010
|
+
constructor() {
|
|
1011
|
+
__publicField(this, "newIndex");
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
__name(_ReorderDto, "ReorderDto");
|
|
1015
|
+
var ReorderDto = _ReorderDto;
|
|
1016
|
+
_ts_decorate22([
|
|
1017
|
+
IsInt2(),
|
|
1018
|
+
Min2(0),
|
|
1019
|
+
Max(100),
|
|
1020
|
+
_ts_metadata22("design:type", Number)
|
|
1021
|
+
], ReorderDto.prototype, "newIndex", void 0);
|
|
1022
|
+
|
|
1023
|
+
// dto/posts/post_like_response.dto.ts
|
|
1024
|
+
import { ApiProperty as ApiProperty13 } from "@nestjs/swagger";
|
|
1025
|
+
function _ts_decorate23(decorators, target, key, desc) {
|
|
1026
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1027
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1028
|
+
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;
|
|
1029
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1030
|
+
}
|
|
1031
|
+
__name(_ts_decorate23, "_ts_decorate");
|
|
1032
|
+
function _ts_metadata23(k, v) {
|
|
1033
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1034
|
+
}
|
|
1035
|
+
__name(_ts_metadata23, "_ts_metadata");
|
|
1036
|
+
var _PostLikeResponseDto = class _PostLikeResponseDto {
|
|
1037
|
+
constructor() {
|
|
1038
|
+
__publicField(this, "id");
|
|
1039
|
+
__publicField(this, "postId");
|
|
1040
|
+
__publicField(this, "userId");
|
|
1041
|
+
__publicField(this, "userFullName");
|
|
1042
|
+
__publicField(this, "userProfilePictureUrl");
|
|
1043
|
+
__publicField(this, "type");
|
|
1044
|
+
__publicField(this, "createdAt");
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1047
|
+
__name(_PostLikeResponseDto, "PostLikeResponseDto");
|
|
1048
|
+
var PostLikeResponseDto = _PostLikeResponseDto;
|
|
1049
|
+
_ts_decorate23([
|
|
1050
|
+
ApiProperty13({
|
|
1051
|
+
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1052
|
+
}),
|
|
1053
|
+
_ts_metadata23("design:type", String)
|
|
1054
|
+
], PostLikeResponseDto.prototype, "id", void 0);
|
|
1055
|
+
_ts_decorate23([
|
|
1056
|
+
ApiProperty13({
|
|
1057
|
+
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1058
|
+
}),
|
|
1059
|
+
_ts_metadata23("design:type", String)
|
|
1060
|
+
], PostLikeResponseDto.prototype, "postId", void 0);
|
|
1061
|
+
_ts_decorate23([
|
|
1062
|
+
ApiProperty13({
|
|
1063
|
+
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1064
|
+
}),
|
|
1065
|
+
_ts_metadata23("design:type", String)
|
|
1066
|
+
], PostLikeResponseDto.prototype, "userId", void 0);
|
|
1067
|
+
_ts_decorate23([
|
|
1068
|
+
ApiProperty13({
|
|
1069
|
+
example: "John Doe"
|
|
1070
|
+
}),
|
|
1071
|
+
_ts_metadata23("design:type", String)
|
|
1072
|
+
], PostLikeResponseDto.prototype, "userFullName", void 0);
|
|
1073
|
+
_ts_decorate23([
|
|
1074
|
+
ApiProperty13({
|
|
1075
|
+
example: "https://example.com/avatar.jpg",
|
|
1076
|
+
nullable: true
|
|
1077
|
+
}),
|
|
1078
|
+
_ts_metadata23("design:type", Object)
|
|
1079
|
+
], PostLikeResponseDto.prototype, "userProfilePictureUrl", void 0);
|
|
1080
|
+
_ts_decorate23([
|
|
1081
|
+
ApiProperty13({
|
|
1082
|
+
enum: ReactionType,
|
|
1083
|
+
example: ReactionType.LIKE
|
|
1084
|
+
}),
|
|
1085
|
+
_ts_metadata23("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1086
|
+
], PostLikeResponseDto.prototype, "type", void 0);
|
|
1087
|
+
_ts_decorate23([
|
|
1088
|
+
ApiProperty13({
|
|
1089
|
+
example: "2026-01-14T12:00:00Z"
|
|
1090
|
+
}),
|
|
1091
|
+
_ts_metadata23("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1092
|
+
], PostLikeResponseDto.prototype, "createdAt", void 0);
|
|
1093
|
+
|
|
1094
|
+
// dto/posts/like_post.dto.ts
|
|
1095
|
+
import { ApiProperty as ApiProperty14 } from "@nestjs/swagger";
|
|
1096
|
+
import { IsEnum as IsEnum2, IsOptional as IsOptional7 } from "class-validator";
|
|
1097
|
+
function _ts_decorate24(decorators, target, key, desc) {
|
|
1098
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1099
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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;
|
|
1101
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1102
|
+
}
|
|
1103
|
+
__name(_ts_decorate24, "_ts_decorate");
|
|
1104
|
+
function _ts_metadata24(k, v) {
|
|
1105
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1106
|
+
}
|
|
1107
|
+
__name(_ts_metadata24, "_ts_metadata");
|
|
1108
|
+
var _LikePostDto = class _LikePostDto {
|
|
1109
|
+
constructor() {
|
|
1110
|
+
__publicField(this, "type");
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
__name(_LikePostDto, "LikePostDto");
|
|
1114
|
+
var LikePostDto = _LikePostDto;
|
|
1115
|
+
_ts_decorate24([
|
|
1116
|
+
ApiProperty14({
|
|
1117
|
+
description: "The reaction type for the post",
|
|
1118
|
+
enum: ReactionType,
|
|
1119
|
+
required: false,
|
|
1120
|
+
default: ReactionType.LIKE
|
|
1121
|
+
}),
|
|
1122
|
+
IsEnum2(ReactionType),
|
|
1123
|
+
IsOptional7(),
|
|
1124
|
+
_ts_metadata24("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1125
|
+
], LikePostDto.prototype, "type", void 0);
|
|
1126
|
+
|
|
1127
|
+
// dto/posts/paginated_post_like_dto.ts
|
|
1128
|
+
import { ApiProperty as ApiProperty15 } from "@nestjs/swagger";
|
|
1129
|
+
function _ts_decorate25(decorators, target, key, desc) {
|
|
1130
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1131
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1132
|
+
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;
|
|
1133
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1134
|
+
}
|
|
1135
|
+
__name(_ts_decorate25, "_ts_decorate");
|
|
1136
|
+
function _ts_metadata25(k, v) {
|
|
1137
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1138
|
+
}
|
|
1139
|
+
__name(_ts_metadata25, "_ts_metadata");
|
|
1140
|
+
var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
|
|
1141
|
+
constructor() {
|
|
1142
|
+
__publicField(this, "likes");
|
|
1143
|
+
__publicField(this, "total");
|
|
1144
|
+
__publicField(this, "page");
|
|
1145
|
+
__publicField(this, "totalPages");
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
__name(_PaginatedPostLikesDto, "PaginatedPostLikesDto");
|
|
1149
|
+
var PaginatedPostLikesDto = _PaginatedPostLikesDto;
|
|
1150
|
+
_ts_decorate25([
|
|
1151
|
+
ApiProperty15({
|
|
1152
|
+
type: [
|
|
1153
|
+
PostLikeResponseDto
|
|
1154
|
+
]
|
|
1155
|
+
}),
|
|
1156
|
+
_ts_metadata25("design:type", Array)
|
|
1157
|
+
], PaginatedPostLikesDto.prototype, "likes", void 0);
|
|
1158
|
+
_ts_decorate25([
|
|
1159
|
+
ApiProperty15({
|
|
1160
|
+
example: 100
|
|
1161
|
+
}),
|
|
1162
|
+
_ts_metadata25("design:type", Number)
|
|
1163
|
+
], PaginatedPostLikesDto.prototype, "total", void 0);
|
|
1164
|
+
_ts_decorate25([
|
|
1165
|
+
ApiProperty15({
|
|
1166
|
+
example: 1
|
|
1167
|
+
}),
|
|
1168
|
+
_ts_metadata25("design:type", Number)
|
|
1169
|
+
], PaginatedPostLikesDto.prototype, "page", void 0);
|
|
1170
|
+
_ts_decorate25([
|
|
1171
|
+
ApiProperty15({
|
|
1172
|
+
example: 10
|
|
1173
|
+
}),
|
|
1174
|
+
_ts_metadata25("design:type", Number)
|
|
1175
|
+
], PaginatedPostLikesDto.prototype, "totalPages", void 0);
|
|
1176
|
+
|
|
1177
|
+
// dto/comments/create_comment.dto.ts
|
|
1178
|
+
import { ApiProperty as ApiProperty16 } from "@nestjs/swagger";
|
|
1179
|
+
import { IsNotEmpty as IsNotEmpty9, IsOptional as IsOptional8, IsString as IsString12, IsUUID, MaxLength as MaxLength7, MinLength as MinLength8 } from "class-validator";
|
|
1180
|
+
function _ts_decorate26(decorators, target, key, desc) {
|
|
1181
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1182
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1183
|
+
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;
|
|
1184
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1185
|
+
}
|
|
1186
|
+
__name(_ts_decorate26, "_ts_decorate");
|
|
1187
|
+
function _ts_metadata26(k, v) {
|
|
1188
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1189
|
+
}
|
|
1190
|
+
__name(_ts_metadata26, "_ts_metadata");
|
|
1191
|
+
var _CreateCommentDto = class _CreateCommentDto {
|
|
1192
|
+
constructor() {
|
|
1193
|
+
__publicField(this, "postId");
|
|
1194
|
+
__publicField(this, "content");
|
|
1195
|
+
__publicField(this, "parentCommentId");
|
|
1196
|
+
}
|
|
1197
|
+
};
|
|
1198
|
+
__name(_CreateCommentDto, "CreateCommentDto");
|
|
1199
|
+
var CreateCommentDto = _CreateCommentDto;
|
|
1200
|
+
_ts_decorate26([
|
|
1201
|
+
ApiProperty16({
|
|
1202
|
+
description: "Post ID to comment on",
|
|
1203
|
+
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1204
|
+
}),
|
|
1205
|
+
IsUUID(),
|
|
1206
|
+
IsNotEmpty9(),
|
|
1207
|
+
_ts_metadata26("design:type", String)
|
|
1208
|
+
], CreateCommentDto.prototype, "postId", void 0);
|
|
1209
|
+
_ts_decorate26([
|
|
1210
|
+
ApiProperty16({
|
|
1211
|
+
description: "Comment content",
|
|
1212
|
+
example: "Great post!",
|
|
1213
|
+
minLength: 1,
|
|
1214
|
+
maxLength: 5e3
|
|
1215
|
+
}),
|
|
1216
|
+
IsString12(),
|
|
1217
|
+
IsNotEmpty9(),
|
|
1218
|
+
MinLength8(1),
|
|
1219
|
+
MaxLength7(5e3),
|
|
1220
|
+
_ts_metadata26("design:type", String)
|
|
1221
|
+
], CreateCommentDto.prototype, "content", void 0);
|
|
1222
|
+
_ts_decorate26([
|
|
1223
|
+
ApiProperty16({
|
|
1224
|
+
description: "Parent comment ID for nested replies",
|
|
1225
|
+
example: "123e4567-e89b-12d3-a456-426614174002",
|
|
1226
|
+
required: false
|
|
1227
|
+
}),
|
|
1228
|
+
IsUUID(),
|
|
1229
|
+
IsOptional8(),
|
|
1230
|
+
_ts_metadata26("design:type", String)
|
|
1231
|
+
], CreateCommentDto.prototype, "parentCommentId", void 0);
|
|
1232
|
+
|
|
1233
|
+
// dto/comments/comment_response.dto.ts
|
|
1234
|
+
import { ApiProperty as ApiProperty17 } from "@nestjs/swagger";
|
|
1235
|
+
function _ts_decorate27(decorators, target, key, desc) {
|
|
1236
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1237
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1238
|
+
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1240
|
+
}
|
|
1241
|
+
__name(_ts_decorate27, "_ts_decorate");
|
|
1242
|
+
function _ts_metadata27(k, v) {
|
|
1243
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1244
|
+
}
|
|
1245
|
+
__name(_ts_metadata27, "_ts_metadata");
|
|
1246
|
+
var _CommentResponseDto = class _CommentResponseDto {
|
|
1247
|
+
constructor() {
|
|
1248
|
+
__publicField(this, "id");
|
|
1249
|
+
__publicField(this, "postId");
|
|
1250
|
+
__publicField(this, "authorId");
|
|
1251
|
+
__publicField(this, "authorFullName");
|
|
1252
|
+
__publicField(this, "authorProfilePictureUrl");
|
|
1253
|
+
__publicField(this, "content");
|
|
1254
|
+
__publicField(this, "parentCommentId");
|
|
1255
|
+
__publicField(this, "depth");
|
|
1256
|
+
__publicField(this, "likesCount");
|
|
1257
|
+
__publicField(this, "repliesCount");
|
|
1258
|
+
__publicField(this, "isEdited");
|
|
1259
|
+
__publicField(this, "createdAt");
|
|
1260
|
+
__publicField(this, "updatedAt");
|
|
1261
|
+
}
|
|
1262
|
+
};
|
|
1263
|
+
__name(_CommentResponseDto, "CommentResponseDto");
|
|
1264
|
+
var CommentResponseDto = _CommentResponseDto;
|
|
1265
|
+
_ts_decorate27([
|
|
1266
|
+
ApiProperty17({
|
|
1267
|
+
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1268
|
+
}),
|
|
1269
|
+
_ts_metadata27("design:type", String)
|
|
1270
|
+
], CommentResponseDto.prototype, "id", void 0);
|
|
1271
|
+
_ts_decorate27([
|
|
1272
|
+
ApiProperty17({
|
|
1273
|
+
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
1274
|
+
}),
|
|
1275
|
+
_ts_metadata27("design:type", String)
|
|
1276
|
+
], CommentResponseDto.prototype, "postId", void 0);
|
|
1277
|
+
_ts_decorate27([
|
|
1278
|
+
ApiProperty17({
|
|
1279
|
+
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1280
|
+
}),
|
|
1281
|
+
_ts_metadata27("design:type", String)
|
|
1282
|
+
], CommentResponseDto.prototype, "authorId", void 0);
|
|
1283
|
+
_ts_decorate27([
|
|
1284
|
+
ApiProperty17({
|
|
1285
|
+
example: "John Doe"
|
|
1286
|
+
}),
|
|
1287
|
+
_ts_metadata27("design:type", String)
|
|
1288
|
+
], CommentResponseDto.prototype, "authorFullName", void 0);
|
|
1289
|
+
_ts_decorate27([
|
|
1290
|
+
ApiProperty17({
|
|
1291
|
+
example: "https://example.com/profile.jpg",
|
|
1292
|
+
nullable: true
|
|
1293
|
+
}),
|
|
1294
|
+
_ts_metadata27("design:type", Object)
|
|
1295
|
+
], CommentResponseDto.prototype, "authorProfilePictureUrl", void 0);
|
|
1296
|
+
_ts_decorate27([
|
|
1297
|
+
ApiProperty17({
|
|
1298
|
+
example: "Great post!"
|
|
1299
|
+
}),
|
|
1300
|
+
_ts_metadata27("design:type", String)
|
|
1301
|
+
], CommentResponseDto.prototype, "content", void 0);
|
|
1302
|
+
_ts_decorate27([
|
|
1303
|
+
ApiProperty17({
|
|
1304
|
+
example: "123e4567-e89b-12d3-a456-426614174003",
|
|
1305
|
+
nullable: true
|
|
1306
|
+
}),
|
|
1307
|
+
_ts_metadata27("design:type", Object)
|
|
1308
|
+
], CommentResponseDto.prototype, "parentCommentId", void 0);
|
|
1309
|
+
_ts_decorate27([
|
|
1310
|
+
ApiProperty17({
|
|
1311
|
+
example: 0
|
|
1312
|
+
}),
|
|
1313
|
+
_ts_metadata27("design:type", Number)
|
|
1314
|
+
], CommentResponseDto.prototype, "depth", void 0);
|
|
1315
|
+
_ts_decorate27([
|
|
1316
|
+
ApiProperty17({
|
|
1317
|
+
example: 5
|
|
1318
|
+
}),
|
|
1319
|
+
_ts_metadata27("design:type", Number)
|
|
1320
|
+
], CommentResponseDto.prototype, "likesCount", void 0);
|
|
1321
|
+
_ts_decorate27([
|
|
1322
|
+
ApiProperty17({
|
|
1323
|
+
example: 2
|
|
1324
|
+
}),
|
|
1325
|
+
_ts_metadata27("design:type", Number)
|
|
1326
|
+
], CommentResponseDto.prototype, "repliesCount", void 0);
|
|
1327
|
+
_ts_decorate27([
|
|
1328
|
+
ApiProperty17({
|
|
1329
|
+
example: false
|
|
1330
|
+
}),
|
|
1331
|
+
_ts_metadata27("design:type", Boolean)
|
|
1332
|
+
], CommentResponseDto.prototype, "isEdited", void 0);
|
|
1333
|
+
_ts_decorate27([
|
|
1334
|
+
ApiProperty17({
|
|
1335
|
+
example: "2024-01-15T10:30:00Z"
|
|
1336
|
+
}),
|
|
1337
|
+
_ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1338
|
+
], CommentResponseDto.prototype, "createdAt", void 0);
|
|
1339
|
+
_ts_decorate27([
|
|
1340
|
+
ApiProperty17({
|
|
1341
|
+
example: "2024-01-15T10:30:00Z"
|
|
1342
|
+
}),
|
|
1343
|
+
_ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1344
|
+
], CommentResponseDto.prototype, "updatedAt", void 0);
|
|
1345
|
+
|
|
1346
|
+
// dto/comments/comment_tree.dto.ts
|
|
1347
|
+
import { ApiProperty as ApiProperty18 } from "@nestjs/swagger";
|
|
1348
|
+
function _ts_decorate28(decorators, target, key, desc) {
|
|
1349
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1350
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1351
|
+
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;
|
|
1352
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1353
|
+
}
|
|
1354
|
+
__name(_ts_decorate28, "_ts_decorate");
|
|
1355
|
+
function _ts_metadata28(k, v) {
|
|
1356
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1357
|
+
}
|
|
1358
|
+
__name(_ts_metadata28, "_ts_metadata");
|
|
1359
|
+
var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
|
|
1360
|
+
constructor() {
|
|
1361
|
+
super(...arguments);
|
|
1362
|
+
__publicField(this, "replies");
|
|
1363
|
+
}
|
|
1364
|
+
};
|
|
1365
|
+
__name(_CommentTreeDto, "CommentTreeDto");
|
|
1366
|
+
var CommentTreeDto = _CommentTreeDto;
|
|
1367
|
+
_ts_decorate28([
|
|
1368
|
+
ApiProperty18({
|
|
1369
|
+
type: [
|
|
1370
|
+
CommentTreeDto
|
|
1371
|
+
]
|
|
1372
|
+
}),
|
|
1373
|
+
_ts_metadata28("design:type", Array)
|
|
1374
|
+
], CommentTreeDto.prototype, "replies", void 0);
|
|
1375
|
+
|
|
1376
|
+
// dto/comments/paginated_comment.dto.ts
|
|
1377
|
+
import { ApiProperty as ApiProperty19 } from "@nestjs/swagger";
|
|
1378
|
+
function _ts_decorate29(decorators, target, key, desc) {
|
|
1379
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1380
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1381
|
+
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1383
|
+
}
|
|
1384
|
+
__name(_ts_decorate29, "_ts_decorate");
|
|
1385
|
+
function _ts_metadata29(k, v) {
|
|
1386
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1387
|
+
}
|
|
1388
|
+
__name(_ts_metadata29, "_ts_metadata");
|
|
1389
|
+
var _PaginatedCommentsDto = class _PaginatedCommentsDto {
|
|
1390
|
+
constructor() {
|
|
1391
|
+
__publicField(this, "comments");
|
|
1392
|
+
__publicField(this, "total");
|
|
1393
|
+
__publicField(this, "page");
|
|
1394
|
+
__publicField(this, "totalPages");
|
|
1395
|
+
}
|
|
1396
|
+
};
|
|
1397
|
+
__name(_PaginatedCommentsDto, "PaginatedCommentsDto");
|
|
1398
|
+
var PaginatedCommentsDto = _PaginatedCommentsDto;
|
|
1399
|
+
_ts_decorate29([
|
|
1400
|
+
ApiProperty19({
|
|
1401
|
+
type: [
|
|
1402
|
+
CommentResponseDto
|
|
1403
|
+
]
|
|
1404
|
+
}),
|
|
1405
|
+
_ts_metadata29("design:type", Array)
|
|
1406
|
+
], PaginatedCommentsDto.prototype, "comments", void 0);
|
|
1407
|
+
_ts_decorate29([
|
|
1408
|
+
ApiProperty19({
|
|
1409
|
+
example: 50
|
|
1410
|
+
}),
|
|
1411
|
+
_ts_metadata29("design:type", Number)
|
|
1412
|
+
], PaginatedCommentsDto.prototype, "total", void 0);
|
|
1413
|
+
_ts_decorate29([
|
|
1414
|
+
ApiProperty19({
|
|
1415
|
+
example: 1
|
|
1416
|
+
}),
|
|
1417
|
+
_ts_metadata29("design:type", Number)
|
|
1418
|
+
], PaginatedCommentsDto.prototype, "page", void 0);
|
|
1419
|
+
_ts_decorate29([
|
|
1420
|
+
ApiProperty19({
|
|
1421
|
+
example: 5
|
|
1422
|
+
}),
|
|
1423
|
+
_ts_metadata29("design:type", Number)
|
|
1424
|
+
], PaginatedCommentsDto.prototype, "totalPages", void 0);
|
|
1425
|
+
|
|
1426
|
+
// dto/comments/update_comment.dto.ts
|
|
1427
|
+
import { ApiProperty as ApiProperty20 } from "@nestjs/swagger";
|
|
1428
|
+
import { IsNotEmpty as IsNotEmpty10, IsString as IsString13, MaxLength as MaxLength8, MinLength as MinLength9 } from "class-validator";
|
|
1429
|
+
function _ts_decorate30(decorators, target, key, desc) {
|
|
1430
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1431
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1432
|
+
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;
|
|
1433
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1434
|
+
}
|
|
1435
|
+
__name(_ts_decorate30, "_ts_decorate");
|
|
1436
|
+
function _ts_metadata30(k, v) {
|
|
1437
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1438
|
+
}
|
|
1439
|
+
__name(_ts_metadata30, "_ts_metadata");
|
|
1440
|
+
var _UpdateCommentDto = class _UpdateCommentDto {
|
|
1441
|
+
constructor() {
|
|
1442
|
+
__publicField(this, "content");
|
|
1443
|
+
}
|
|
1444
|
+
};
|
|
1445
|
+
__name(_UpdateCommentDto, "UpdateCommentDto");
|
|
1446
|
+
var UpdateCommentDto = _UpdateCommentDto;
|
|
1447
|
+
_ts_decorate30([
|
|
1448
|
+
ApiProperty20({
|
|
1449
|
+
description: "Updated comment content",
|
|
1450
|
+
example: "Updated: Great post!",
|
|
1451
|
+
minLength: 1,
|
|
1452
|
+
maxLength: 5e3
|
|
1453
|
+
}),
|
|
1454
|
+
IsString13(),
|
|
1455
|
+
IsNotEmpty10(),
|
|
1456
|
+
MinLength9(1),
|
|
1457
|
+
MaxLength8(5e3),
|
|
1458
|
+
_ts_metadata30("design:type", String)
|
|
1459
|
+
], UpdateCommentDto.prototype, "content", void 0);
|
|
1460
|
+
|
|
1461
|
+
// dto/comments/comment_fields.dto.ts
|
|
1462
|
+
var _CommentFields = class _CommentFields {
|
|
1463
|
+
constructor() {
|
|
1464
|
+
__publicField(this, "id");
|
|
1465
|
+
__publicField(this, "postId");
|
|
1466
|
+
__publicField(this, "authorId");
|
|
1467
|
+
__publicField(this, "authorFullName");
|
|
1468
|
+
__publicField(this, "authorProfilePictureUrl");
|
|
1469
|
+
__publicField(this, "content");
|
|
1470
|
+
__publicField(this, "parentCommentId");
|
|
1471
|
+
__publicField(this, "depth");
|
|
1472
|
+
__publicField(this, "likesCount");
|
|
1473
|
+
__publicField(this, "repliesCount");
|
|
1474
|
+
__publicField(this, "isEdited");
|
|
1475
|
+
__publicField(this, "createdAt");
|
|
1476
|
+
__publicField(this, "updatedAt");
|
|
1477
|
+
}
|
|
1478
|
+
};
|
|
1479
|
+
__name(_CommentFields, "CommentFields");
|
|
1480
|
+
var CommentFields = _CommentFields;
|
|
1481
|
+
|
|
1482
|
+
// dto/comments/like_comment.dto.ts
|
|
1483
|
+
import { ApiProperty as ApiProperty21 } from "@nestjs/swagger";
|
|
1484
|
+
import { IsEnum as IsEnum3, IsOptional as IsOptional9 } from "class-validator";
|
|
1485
|
+
function _ts_decorate31(decorators, target, key, desc) {
|
|
1486
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1487
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1488
|
+
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;
|
|
1489
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1490
|
+
}
|
|
1491
|
+
__name(_ts_decorate31, "_ts_decorate");
|
|
1492
|
+
function _ts_metadata31(k, v) {
|
|
1493
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1494
|
+
}
|
|
1495
|
+
__name(_ts_metadata31, "_ts_metadata");
|
|
1496
|
+
var _LikeCommentDto = class _LikeCommentDto {
|
|
1497
|
+
constructor() {
|
|
1498
|
+
__publicField(this, "type");
|
|
1499
|
+
}
|
|
1500
|
+
};
|
|
1501
|
+
__name(_LikeCommentDto, "LikeCommentDto");
|
|
1502
|
+
var LikeCommentDto = _LikeCommentDto;
|
|
1503
|
+
_ts_decorate31([
|
|
1504
|
+
ApiProperty21({
|
|
1505
|
+
description: "The reaction type for the comment",
|
|
1506
|
+
enum: ReactionType,
|
|
1507
|
+
required: false,
|
|
1508
|
+
default: ReactionType.LIKE
|
|
1509
|
+
}),
|
|
1510
|
+
IsEnum3(ReactionType),
|
|
1511
|
+
IsOptional9(),
|
|
1512
|
+
_ts_metadata31("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1513
|
+
], LikeCommentDto.prototype, "type", void 0);
|
|
1514
|
+
|
|
1515
|
+
// dto/comments/comment_like_response.dto.ts
|
|
1516
|
+
import { ApiProperty as ApiProperty22 } from "@nestjs/swagger";
|
|
1517
|
+
function _ts_decorate32(decorators, target, key, desc) {
|
|
1518
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1519
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1520
|
+
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;
|
|
1521
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1522
|
+
}
|
|
1523
|
+
__name(_ts_decorate32, "_ts_decorate");
|
|
1524
|
+
function _ts_metadata32(k, v) {
|
|
1525
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1526
|
+
}
|
|
1527
|
+
__name(_ts_metadata32, "_ts_metadata");
|
|
1528
|
+
var _CommentLikeResponseDto = class _CommentLikeResponseDto {
|
|
1529
|
+
constructor() {
|
|
1530
|
+
__publicField(this, "id");
|
|
1531
|
+
__publicField(this, "commentId");
|
|
1532
|
+
__publicField(this, "commentatorId");
|
|
1533
|
+
__publicField(this, "commentatorFullName");
|
|
1534
|
+
__publicField(this, "commentatorProfilePictureUrl");
|
|
1535
|
+
__publicField(this, "type");
|
|
1536
|
+
__publicField(this, "createdAt");
|
|
1537
|
+
__publicField(this, "updatedAt");
|
|
1538
|
+
}
|
|
1539
|
+
};
|
|
1540
|
+
__name(_CommentLikeResponseDto, "CommentLikeResponseDto");
|
|
1541
|
+
var CommentLikeResponseDto = _CommentLikeResponseDto;
|
|
1542
|
+
_ts_decorate32([
|
|
1543
|
+
ApiProperty22({
|
|
1544
|
+
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1545
|
+
}),
|
|
1546
|
+
_ts_metadata32("design:type", String)
|
|
1547
|
+
], CommentLikeResponseDto.prototype, "id", void 0);
|
|
1548
|
+
_ts_decorate32([
|
|
1549
|
+
ApiProperty22({
|
|
1550
|
+
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1551
|
+
}),
|
|
1552
|
+
_ts_metadata32("design:type", String)
|
|
1553
|
+
], CommentLikeResponseDto.prototype, "commentId", void 0);
|
|
1554
|
+
_ts_decorate32([
|
|
1555
|
+
ApiProperty22({
|
|
1556
|
+
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1557
|
+
}),
|
|
1558
|
+
_ts_metadata32("design:type", String)
|
|
1559
|
+
], CommentLikeResponseDto.prototype, "commentatorId", void 0);
|
|
1560
|
+
_ts_decorate32([
|
|
1561
|
+
ApiProperty22({
|
|
1562
|
+
example: "Jane Doe"
|
|
1563
|
+
}),
|
|
1564
|
+
_ts_metadata32("design:type", String)
|
|
1565
|
+
], CommentLikeResponseDto.prototype, "commentatorFullName", void 0);
|
|
1566
|
+
_ts_decorate32([
|
|
1567
|
+
ApiProperty22({
|
|
1568
|
+
example: "https://example.com/jane.jpg",
|
|
1569
|
+
nullable: true
|
|
1570
|
+
}),
|
|
1571
|
+
_ts_metadata32("design:type", Object)
|
|
1572
|
+
], CommentLikeResponseDto.prototype, "commentatorProfilePictureUrl", void 0);
|
|
1573
|
+
_ts_decorate32([
|
|
1574
|
+
ApiProperty22({
|
|
1575
|
+
enum: ReactionType,
|
|
1576
|
+
example: ReactionType.HEART
|
|
1577
|
+
}),
|
|
1578
|
+
_ts_metadata32("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1579
|
+
], CommentLikeResponseDto.prototype, "type", void 0);
|
|
1580
|
+
_ts_decorate32([
|
|
1581
|
+
ApiProperty22({
|
|
1582
|
+
example: "2024-01-15T10:35:00Z"
|
|
1583
|
+
}),
|
|
1584
|
+
_ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1585
|
+
], CommentLikeResponseDto.prototype, "createdAt", void 0);
|
|
1586
|
+
_ts_decorate32([
|
|
1587
|
+
ApiProperty22({
|
|
1588
|
+
example: "2024-01-15T10:35:00Z"
|
|
1589
|
+
}),
|
|
1590
|
+
_ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1591
|
+
], CommentLikeResponseDto.prototype, "updatedAt", void 0);
|
|
1592
|
+
|
|
1593
|
+
// dto/comments/paginated_comment_likes.dto.ts
|
|
1594
|
+
import { ApiProperty as ApiProperty23 } from "@nestjs/swagger";
|
|
1595
|
+
function _ts_decorate33(decorators, target, key, desc) {
|
|
1596
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1597
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1598
|
+
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;
|
|
1599
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1600
|
+
}
|
|
1601
|
+
__name(_ts_decorate33, "_ts_decorate");
|
|
1602
|
+
function _ts_metadata33(k, v) {
|
|
1603
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1604
|
+
}
|
|
1605
|
+
__name(_ts_metadata33, "_ts_metadata");
|
|
1606
|
+
var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
1607
|
+
constructor() {
|
|
1608
|
+
__publicField(this, "likes");
|
|
1609
|
+
__publicField(this, "total");
|
|
1610
|
+
__publicField(this, "page");
|
|
1611
|
+
__publicField(this, "totalPages");
|
|
1612
|
+
}
|
|
1613
|
+
};
|
|
1614
|
+
__name(_PaginatedCommentLikesDto, "PaginatedCommentLikesDto");
|
|
1615
|
+
var PaginatedCommentLikesDto = _PaginatedCommentLikesDto;
|
|
1616
|
+
_ts_decorate33([
|
|
1617
|
+
ApiProperty23({
|
|
1618
|
+
type: [
|
|
1619
|
+
CommentLikeResponseDto
|
|
1620
|
+
]
|
|
1621
|
+
}),
|
|
1622
|
+
_ts_metadata33("design:type", Array)
|
|
1623
|
+
], PaginatedCommentLikesDto.prototype, "likes", void 0);
|
|
1624
|
+
_ts_decorate33([
|
|
1625
|
+
ApiProperty23({
|
|
1626
|
+
example: 120
|
|
1627
|
+
}),
|
|
1628
|
+
_ts_metadata33("design:type", Number)
|
|
1629
|
+
], PaginatedCommentLikesDto.prototype, "total", void 0);
|
|
1630
|
+
_ts_decorate33([
|
|
1631
|
+
ApiProperty23({
|
|
1632
|
+
example: 1
|
|
1633
|
+
}),
|
|
1634
|
+
_ts_metadata33("design:type", Number)
|
|
1635
|
+
], PaginatedCommentLikesDto.prototype, "page", void 0);
|
|
1636
|
+
_ts_decorate33([
|
|
1637
|
+
ApiProperty23({
|
|
1638
|
+
example: 6
|
|
1639
|
+
}),
|
|
1640
|
+
_ts_metadata33("design:type", Number)
|
|
1641
|
+
], PaginatedCommentLikesDto.prototype, "totalPages", void 0);
|
|
1642
|
+
export {
|
|
1643
|
+
CommentFields,
|
|
1644
|
+
CommentLikeResponseDto,
|
|
1645
|
+
CommentResponseDto,
|
|
1646
|
+
CommentTreeDto,
|
|
1647
|
+
CreateCommentDto,
|
|
1648
|
+
CreatePostDto,
|
|
1649
|
+
CreatePostFileDto,
|
|
1650
|
+
CreateUserDto,
|
|
1651
|
+
CreateUserFireBaseDto,
|
|
1652
|
+
DeleteFileDto,
|
|
1653
|
+
EmailParamDto,
|
|
1654
|
+
FileCategory,
|
|
1655
|
+
FileResponseDto,
|
|
1656
|
+
FindAllUsersDto,
|
|
1657
|
+
FindByRoleDto,
|
|
1658
|
+
ForgotPasswordDto,
|
|
1659
|
+
LikeCommentDto,
|
|
1660
|
+
LikePostDto,
|
|
1661
|
+
LoginLocalDTO,
|
|
1662
|
+
PaginatedCommentLikesDto,
|
|
1663
|
+
PaginatedCommentsDto,
|
|
1664
|
+
PaginatedPostLikesDto,
|
|
1665
|
+
PaginatedPostsDto,
|
|
1666
|
+
PaginatedPostsSelfDto,
|
|
1667
|
+
PostFields,
|
|
1668
|
+
PostFileDto,
|
|
1669
|
+
PostLikeResponseDto,
|
|
1670
|
+
PostResponseDto,
|
|
1671
|
+
PostResponseSelfDto,
|
|
1672
|
+
ReactionType,
|
|
1673
|
+
ReorderDto,
|
|
1674
|
+
ResetPasswordDto,
|
|
1675
|
+
SearchUsersByFullNameDTO,
|
|
1676
|
+
UpdateCommentDto,
|
|
1677
|
+
UpdatePasswordDto,
|
|
1678
|
+
UpdatePostDto,
|
|
1679
|
+
UpdateUserDto,
|
|
1680
|
+
UploadFileDto,
|
|
1681
|
+
UserResponseDto
|
|
1682
|
+
};
|