@feresmeryas/microservices-common 1.5.19 → 1.5.21
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 +58 -29
- package/dist/index.d.ts +58 -29
- package/dist/index.js +656 -399
- package/dist/index.mjs +720 -464
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4,8 +4,41 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
|
|
6
6
|
// dto/users/create_user.dto.ts
|
|
7
|
-
import { ApiProperty } from "@nestjs/swagger";
|
|
8
|
-
import { IsEmail, IsNotEmpty, MaxLength, MinLength } from "class-validator";
|
|
7
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
|
+
import { IsEmail, IsNotEmpty, MaxLength, MinLength, IsEnum, IsOptional, IsString, IsUrl, IsInt, Min, ValidateIf } from "class-validator";
|
|
9
|
+
|
|
10
|
+
// enums/user-type.enum.ts
|
|
11
|
+
var UserType = /* @__PURE__ */ (function(UserType2) {
|
|
12
|
+
UserType2["DEFAULT"] = "DEFAULT";
|
|
13
|
+
UserType2["PROFESSIONAL"] = "PROFESSIONAL";
|
|
14
|
+
return UserType2;
|
|
15
|
+
})({});
|
|
16
|
+
|
|
17
|
+
// enums/business-sector.enum.ts
|
|
18
|
+
var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
|
|
19
|
+
BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
|
|
20
|
+
BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
|
|
21
|
+
BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
|
|
22
|
+
BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
|
|
23
|
+
BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
|
|
24
|
+
BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
|
|
25
|
+
BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
|
|
26
|
+
BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
|
|
27
|
+
BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
|
|
28
|
+
BusinessSector2["LEGAL"] = "Legal Services";
|
|
29
|
+
BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
|
|
30
|
+
BusinessSector2["CONSULTING"] = "Business Consulting";
|
|
31
|
+
BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
|
|
32
|
+
BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
|
|
33
|
+
BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
|
|
34
|
+
BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
|
|
35
|
+
BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
|
|
36
|
+
BusinessSector2["REAL_ESTATE"] = "Real Estate";
|
|
37
|
+
BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
|
|
38
|
+
return BusinessSector2;
|
|
39
|
+
})({});
|
|
40
|
+
|
|
41
|
+
// dto/users/create_user.dto.ts
|
|
9
42
|
function _ts_decorate(decorators, target, key, desc) {
|
|
10
43
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11
44
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -23,6 +56,15 @@ var _CreateUserDto = class _CreateUserDto {
|
|
|
23
56
|
__publicField(this, "fullName");
|
|
24
57
|
__publicField(this, "password");
|
|
25
58
|
__publicField(this, "confirmPassword");
|
|
59
|
+
__publicField(this, "userType");
|
|
60
|
+
// Professional fields - required only when userType is PROFESSIONAL
|
|
61
|
+
__publicField(this, "businessSector");
|
|
62
|
+
__publicField(this, "bio");
|
|
63
|
+
__publicField(this, "companyName");
|
|
64
|
+
__publicField(this, "website");
|
|
65
|
+
__publicField(this, "phone");
|
|
66
|
+
__publicField(this, "location");
|
|
67
|
+
__publicField(this, "yearsOfExperience");
|
|
26
68
|
}
|
|
27
69
|
};
|
|
28
70
|
__name(_CreateUserDto, "CreateUserDto");
|
|
@@ -63,10 +105,90 @@ _ts_decorate([
|
|
|
63
105
|
MinLength(6),
|
|
64
106
|
_ts_metadata("design:type", String)
|
|
65
107
|
], CreateUserDto.prototype, "confirmPassword", void 0);
|
|
108
|
+
_ts_decorate([
|
|
109
|
+
ApiProperty({
|
|
110
|
+
enum: UserType,
|
|
111
|
+
example: UserType.DEFAULT,
|
|
112
|
+
description: "The type of user account",
|
|
113
|
+
default: UserType.DEFAULT
|
|
114
|
+
}),
|
|
115
|
+
IsEnum(UserType),
|
|
116
|
+
IsNotEmpty(),
|
|
117
|
+
_ts_metadata("design:type", typeof UserType === "undefined" ? Object : UserType)
|
|
118
|
+
], CreateUserDto.prototype, "userType", void 0);
|
|
119
|
+
_ts_decorate([
|
|
120
|
+
ApiPropertyOptional({
|
|
121
|
+
enum: BusinessSector,
|
|
122
|
+
example: BusinessSector.IT_SOFTWARE,
|
|
123
|
+
description: "Business sector (required for professional accounts)"
|
|
124
|
+
}),
|
|
125
|
+
ValidateIf((o) => o.userType === UserType.PROFESSIONAL),
|
|
126
|
+
IsEnum(BusinessSector),
|
|
127
|
+
IsNotEmpty(),
|
|
128
|
+
_ts_metadata("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
129
|
+
], CreateUserDto.prototype, "businessSector", void 0);
|
|
130
|
+
_ts_decorate([
|
|
131
|
+
ApiPropertyOptional({
|
|
132
|
+
example: "Experienced software developer specializing in web applications",
|
|
133
|
+
description: "Professional bio"
|
|
134
|
+
}),
|
|
135
|
+
IsOptional(),
|
|
136
|
+
IsString(),
|
|
137
|
+
MaxLength(1e3),
|
|
138
|
+
_ts_metadata("design:type", String)
|
|
139
|
+
], CreateUserDto.prototype, "bio", void 0);
|
|
140
|
+
_ts_decorate([
|
|
141
|
+
ApiPropertyOptional({
|
|
142
|
+
example: "Tech Solutions Inc.",
|
|
143
|
+
description: "Company name"
|
|
144
|
+
}),
|
|
145
|
+
IsOptional(),
|
|
146
|
+
IsString(),
|
|
147
|
+
MaxLength(200),
|
|
148
|
+
_ts_metadata("design:type", String)
|
|
149
|
+
], CreateUserDto.prototype, "companyName", void 0);
|
|
150
|
+
_ts_decorate([
|
|
151
|
+
ApiPropertyOptional({
|
|
152
|
+
example: "https://www.example.com",
|
|
153
|
+
description: "Professional website URL"
|
|
154
|
+
}),
|
|
155
|
+
IsOptional(),
|
|
156
|
+
IsUrl(),
|
|
157
|
+
_ts_metadata("design:type", String)
|
|
158
|
+
], CreateUserDto.prototype, "website", void 0);
|
|
159
|
+
_ts_decorate([
|
|
160
|
+
ApiPropertyOptional({
|
|
161
|
+
example: "+1234567890",
|
|
162
|
+
description: "Contact phone number"
|
|
163
|
+
}),
|
|
164
|
+
IsOptional(),
|
|
165
|
+
IsString(),
|
|
166
|
+
_ts_metadata("design:type", String)
|
|
167
|
+
], CreateUserDto.prototype, "phone", void 0);
|
|
168
|
+
_ts_decorate([
|
|
169
|
+
ApiPropertyOptional({
|
|
170
|
+
example: "New York, USA",
|
|
171
|
+
description: "Location/City"
|
|
172
|
+
}),
|
|
173
|
+
IsOptional(),
|
|
174
|
+
IsString(),
|
|
175
|
+
MaxLength(200),
|
|
176
|
+
_ts_metadata("design:type", String)
|
|
177
|
+
], CreateUserDto.prototype, "location", void 0);
|
|
178
|
+
_ts_decorate([
|
|
179
|
+
ApiPropertyOptional({
|
|
180
|
+
example: 5,
|
|
181
|
+
description: "Years of professional experience"
|
|
182
|
+
}),
|
|
183
|
+
IsOptional(),
|
|
184
|
+
IsInt(),
|
|
185
|
+
Min(0),
|
|
186
|
+
_ts_metadata("design:type", Number)
|
|
187
|
+
], CreateUserDto.prototype, "yearsOfExperience", void 0);
|
|
66
188
|
|
|
67
189
|
// dto/users/create_user_firebase.dto.ts
|
|
68
190
|
import { ApiProperty as ApiProperty2 } from "@nestjs/swagger";
|
|
69
|
-
import { IsString } from "class-validator";
|
|
191
|
+
import { IsString as IsString2 } from "class-validator";
|
|
70
192
|
function _ts_decorate2(decorators, target, key, desc) {
|
|
71
193
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
72
194
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -90,7 +212,7 @@ _ts_decorate2([
|
|
|
90
212
|
example: "a6iOa3JR1tQd4BbcYQOlIQKai4B3",
|
|
91
213
|
description: "The firebase Id of the user"
|
|
92
214
|
}),
|
|
93
|
-
|
|
215
|
+
IsString2(),
|
|
94
216
|
_ts_metadata2("design:type", String)
|
|
95
217
|
], CreateUserFireBaseDto.prototype, "fireBaseUserId", void 0);
|
|
96
218
|
|
|
@@ -120,7 +242,7 @@ _ts_decorate3([
|
|
|
120
242
|
], EmailParamDto.prototype, "email", void 0);
|
|
121
243
|
|
|
122
244
|
// dto/users/find-all-users.dto.ts
|
|
123
|
-
import { IsOptional, IsInt, Min } from "class-validator";
|
|
245
|
+
import { IsOptional as IsOptional2, IsInt as IsInt2, Min as Min2 } from "class-validator";
|
|
124
246
|
import { Type } from "class-transformer";
|
|
125
247
|
function _ts_decorate4(decorators, target, key, desc) {
|
|
126
248
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -142,22 +264,22 @@ var _FindAllUsersDto = class _FindAllUsersDto {
|
|
|
142
264
|
__name(_FindAllUsersDto, "FindAllUsersDto");
|
|
143
265
|
var FindAllUsersDto = _FindAllUsersDto;
|
|
144
266
|
_ts_decorate4([
|
|
145
|
-
|
|
267
|
+
IsOptional2(),
|
|
146
268
|
Type(() => Number),
|
|
147
|
-
|
|
148
|
-
|
|
269
|
+
IsInt2(),
|
|
270
|
+
Min2(1),
|
|
149
271
|
_ts_metadata4("design:type", Number)
|
|
150
272
|
], FindAllUsersDto.prototype, "page", void 0);
|
|
151
273
|
_ts_decorate4([
|
|
152
|
-
|
|
274
|
+
IsOptional2(),
|
|
153
275
|
Type(() => Number),
|
|
154
|
-
|
|
155
|
-
|
|
276
|
+
IsInt2(),
|
|
277
|
+
Min2(1),
|
|
156
278
|
_ts_metadata4("design:type", Number)
|
|
157
279
|
], FindAllUsersDto.prototype, "limit", void 0);
|
|
158
280
|
|
|
159
281
|
// dto/users/find-by-role.dto.ts
|
|
160
|
-
import { IsString as
|
|
282
|
+
import { IsString as IsString3 } from "class-validator";
|
|
161
283
|
function _ts_decorate5(decorators, target, key, desc) {
|
|
162
284
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
163
285
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -177,7 +299,7 @@ var _FindByRoleDto = class _FindByRoleDto {
|
|
|
177
299
|
__name(_FindByRoleDto, "FindByRoleDto");
|
|
178
300
|
var FindByRoleDto = _FindByRoleDto;
|
|
179
301
|
_ts_decorate5([
|
|
180
|
-
|
|
302
|
+
IsString3(),
|
|
181
303
|
_ts_metadata5("design:type", String)
|
|
182
304
|
], FindByRoleDto.prototype, "roleName", void 0);
|
|
183
305
|
|
|
@@ -258,7 +380,7 @@ _ts_decorate7([
|
|
|
258
380
|
], LoginLocalDTO.prototype, "password", void 0);
|
|
259
381
|
|
|
260
382
|
// dto/users/reset_password.dto.ts
|
|
261
|
-
import { IsString as
|
|
383
|
+
import { IsString as IsString4, MinLength as MinLength3 } from "class-validator";
|
|
262
384
|
function _ts_decorate8(decorators, target, key, desc) {
|
|
263
385
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
264
386
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -278,14 +400,14 @@ var _ResetPasswordDto = class _ResetPasswordDto {
|
|
|
278
400
|
__name(_ResetPasswordDto, "ResetPasswordDto");
|
|
279
401
|
var ResetPasswordDto = _ResetPasswordDto;
|
|
280
402
|
_ts_decorate8([
|
|
281
|
-
|
|
403
|
+
IsString4(),
|
|
282
404
|
MinLength3(8),
|
|
283
405
|
_ts_metadata8("design:type", String)
|
|
284
406
|
], ResetPasswordDto.prototype, "password", void 0);
|
|
285
407
|
|
|
286
408
|
// dto/users/update-user.dto.ts
|
|
287
|
-
import { IsString as
|
|
288
|
-
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
409
|
+
import { IsString as IsString5, IsOptional as IsOptional3, MinLength as MinLength4, MaxLength as MaxLength3 } from "class-validator";
|
|
410
|
+
import { ApiPropertyOptional as ApiPropertyOptional2 } from "@nestjs/swagger";
|
|
289
411
|
function _ts_decorate9(decorators, target, key, desc) {
|
|
290
412
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
291
413
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -305,14 +427,14 @@ var _UpdateUserDto = class _UpdateUserDto {
|
|
|
305
427
|
__name(_UpdateUserDto, "UpdateUserDto");
|
|
306
428
|
var UpdateUserDto = _UpdateUserDto;
|
|
307
429
|
_ts_decorate9([
|
|
308
|
-
|
|
430
|
+
ApiPropertyOptional2({
|
|
309
431
|
description: "User full name",
|
|
310
432
|
example: "John Doe",
|
|
311
433
|
minLength: 2,
|
|
312
434
|
maxLength: 100
|
|
313
435
|
}),
|
|
314
|
-
|
|
315
|
-
|
|
436
|
+
IsOptional3(),
|
|
437
|
+
IsString5(),
|
|
316
438
|
MinLength4(2),
|
|
317
439
|
MaxLength3(100),
|
|
318
440
|
_ts_metadata9("design:type", String)
|
|
@@ -320,7 +442,7 @@ _ts_decorate9([
|
|
|
320
442
|
|
|
321
443
|
// dto/users/update_password.dto.ts
|
|
322
444
|
import { ApiProperty as ApiProperty4 } from "@nestjs/swagger";
|
|
323
|
-
import { IsString as
|
|
445
|
+
import { IsString as IsString6, MaxLength as MaxLength4, MinLength as MinLength5 } from "class-validator";
|
|
324
446
|
function _ts_decorate10(decorators, target, key, desc) {
|
|
325
447
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
326
448
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -347,7 +469,7 @@ _ts_decorate10([
|
|
|
347
469
|
example: "3db4c508798e8d7c9b5652c50fb246cab4b9a26baf9997adb1180ba3189f7601",
|
|
348
470
|
description: "token sent in the email of the user"
|
|
349
471
|
}),
|
|
350
|
-
|
|
472
|
+
IsString6(),
|
|
351
473
|
MinLength5(10),
|
|
352
474
|
MaxLength4(200),
|
|
353
475
|
_ts_metadata10("design:type", String)
|
|
@@ -357,7 +479,7 @@ _ts_decorate10([
|
|
|
357
479
|
example: "strongpassword",
|
|
358
480
|
description: "The old password of the user"
|
|
359
481
|
}),
|
|
360
|
-
|
|
482
|
+
IsString6(),
|
|
361
483
|
MinLength5(8),
|
|
362
484
|
MaxLength4(50),
|
|
363
485
|
_ts_metadata10("design:type", String)
|
|
@@ -367,7 +489,7 @@ _ts_decorate10([
|
|
|
367
489
|
example: "strongpassword",
|
|
368
490
|
description: "The new password of the user"
|
|
369
491
|
}),
|
|
370
|
-
|
|
492
|
+
IsString6(),
|
|
371
493
|
MinLength5(8),
|
|
372
494
|
MaxLength4(50),
|
|
373
495
|
_ts_metadata10("design:type", String)
|
|
@@ -377,40 +499,199 @@ _ts_decorate10([
|
|
|
377
499
|
example: "strongpassword",
|
|
378
500
|
description: "The confirmation of the new password"
|
|
379
501
|
}),
|
|
380
|
-
|
|
502
|
+
IsString6(),
|
|
381
503
|
MinLength5(8),
|
|
382
504
|
MaxLength4(50),
|
|
383
505
|
_ts_metadata10("design:type", String)
|
|
384
506
|
], UpdatePasswordDto.prototype, "confirmNewPassword", void 0);
|
|
385
507
|
|
|
386
508
|
// dto/users/user_response.dto.ts
|
|
509
|
+
import { ApiProperty as ApiProperty5, ApiPropertyOptional as ApiPropertyOptional3 } from "@nestjs/swagger";
|
|
510
|
+
function _ts_decorate11(decorators, target, key, desc) {
|
|
511
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
512
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
513
|
+
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;
|
|
514
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
515
|
+
}
|
|
516
|
+
__name(_ts_decorate11, "_ts_decorate");
|
|
517
|
+
function _ts_metadata11(k, v) {
|
|
518
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
519
|
+
}
|
|
520
|
+
__name(_ts_metadata11, "_ts_metadata");
|
|
387
521
|
var _UserResponseDto = class _UserResponseDto {
|
|
388
522
|
constructor() {
|
|
389
523
|
__publicField(this, "id");
|
|
524
|
+
__publicField(this, "email");
|
|
390
525
|
__publicField(this, "fullName");
|
|
391
526
|
__publicField(this, "profilePictureUrl");
|
|
392
|
-
__publicField(this, "
|
|
527
|
+
__publicField(this, "userType");
|
|
393
528
|
__publicField(this, "createdAt");
|
|
394
529
|
__publicField(this, "updatedAt");
|
|
395
530
|
__publicField(this, "role");
|
|
531
|
+
__publicField(this, "professionalProfile");
|
|
396
532
|
}
|
|
397
533
|
};
|
|
398
534
|
__name(_UserResponseDto, "UserResponseDto");
|
|
399
535
|
var UserResponseDto = _UserResponseDto;
|
|
536
|
+
_ts_decorate11([
|
|
537
|
+
ApiProperty5({
|
|
538
|
+
example: "uuid-string"
|
|
539
|
+
}),
|
|
540
|
+
_ts_metadata11("design:type", String)
|
|
541
|
+
], UserResponseDto.prototype, "id", void 0);
|
|
542
|
+
_ts_decorate11([
|
|
543
|
+
ApiProperty5({
|
|
544
|
+
example: "user@example.com"
|
|
545
|
+
}),
|
|
546
|
+
_ts_metadata11("design:type", String)
|
|
547
|
+
], UserResponseDto.prototype, "email", void 0);
|
|
548
|
+
_ts_decorate11([
|
|
549
|
+
ApiProperty5({
|
|
550
|
+
example: "John Doe"
|
|
551
|
+
}),
|
|
552
|
+
_ts_metadata11("design:type", String)
|
|
553
|
+
], UserResponseDto.prototype, "fullName", void 0);
|
|
554
|
+
_ts_decorate11([
|
|
555
|
+
ApiPropertyOptional3({
|
|
556
|
+
example: "https://example.com/profile.jpg"
|
|
557
|
+
}),
|
|
558
|
+
_ts_metadata11("design:type", Object)
|
|
559
|
+
], UserResponseDto.prototype, "profilePictureUrl", void 0);
|
|
560
|
+
_ts_decorate11([
|
|
561
|
+
ApiProperty5({
|
|
562
|
+
enum: UserType,
|
|
563
|
+
example: UserType.DEFAULT
|
|
564
|
+
}),
|
|
565
|
+
_ts_metadata11("design:type", typeof UserType === "undefined" ? Object : UserType)
|
|
566
|
+
], UserResponseDto.prototype, "userType", void 0);
|
|
567
|
+
_ts_decorate11([
|
|
568
|
+
ApiProperty5(),
|
|
569
|
+
_ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
|
|
570
|
+
], UserResponseDto.prototype, "createdAt", void 0);
|
|
571
|
+
_ts_decorate11([
|
|
572
|
+
ApiProperty5(),
|
|
573
|
+
_ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
|
|
574
|
+
], UserResponseDto.prototype, "updatedAt", void 0);
|
|
575
|
+
_ts_decorate11([
|
|
576
|
+
ApiProperty5({
|
|
577
|
+
example: {
|
|
578
|
+
name: "DEFAULT"
|
|
579
|
+
}
|
|
580
|
+
}),
|
|
581
|
+
_ts_metadata11("design:type", Object)
|
|
582
|
+
], UserResponseDto.prototype, "role", void 0);
|
|
583
|
+
_ts_decorate11([
|
|
584
|
+
ApiPropertyOptional3(),
|
|
585
|
+
_ts_metadata11("design:type", typeof ProfessionalProfileResponseDto === "undefined" ? Object : ProfessionalProfileResponseDto)
|
|
586
|
+
], UserResponseDto.prototype, "professionalProfile", void 0);
|
|
587
|
+
var _ProfessionalProfileResponseDto = class _ProfessionalProfileResponseDto {
|
|
588
|
+
constructor() {
|
|
589
|
+
__publicField(this, "id");
|
|
590
|
+
__publicField(this, "businessSector");
|
|
591
|
+
__publicField(this, "bio");
|
|
592
|
+
__publicField(this, "companyName");
|
|
593
|
+
__publicField(this, "website");
|
|
594
|
+
__publicField(this, "phone");
|
|
595
|
+
__publicField(this, "location");
|
|
596
|
+
__publicField(this, "yearsOfExperience");
|
|
597
|
+
__publicField(this, "isVerified");
|
|
598
|
+
__publicField(this, "hourlyRate");
|
|
599
|
+
__publicField(this, "availabilityStatus");
|
|
600
|
+
__publicField(this, "createdAt");
|
|
601
|
+
__publicField(this, "updatedAt");
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
__name(_ProfessionalProfileResponseDto, "ProfessionalProfileResponseDto");
|
|
605
|
+
var ProfessionalProfileResponseDto = _ProfessionalProfileResponseDto;
|
|
606
|
+
_ts_decorate11([
|
|
607
|
+
ApiProperty5({
|
|
608
|
+
example: "uuid-string"
|
|
609
|
+
}),
|
|
610
|
+
_ts_metadata11("design:type", String)
|
|
611
|
+
], ProfessionalProfileResponseDto.prototype, "id", void 0);
|
|
612
|
+
_ts_decorate11([
|
|
613
|
+
ApiProperty5({
|
|
614
|
+
enum: BusinessSector,
|
|
615
|
+
example: BusinessSector.IT_SOFTWARE
|
|
616
|
+
}),
|
|
617
|
+
_ts_metadata11("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
618
|
+
], ProfessionalProfileResponseDto.prototype, "businessSector", void 0);
|
|
619
|
+
_ts_decorate11([
|
|
620
|
+
ApiPropertyOptional3({
|
|
621
|
+
example: "Experienced developer..."
|
|
622
|
+
}),
|
|
623
|
+
_ts_metadata11("design:type", Object)
|
|
624
|
+
], ProfessionalProfileResponseDto.prototype, "bio", void 0);
|
|
625
|
+
_ts_decorate11([
|
|
626
|
+
ApiPropertyOptional3({
|
|
627
|
+
example: "Tech Solutions Inc."
|
|
628
|
+
}),
|
|
629
|
+
_ts_metadata11("design:type", Object)
|
|
630
|
+
], ProfessionalProfileResponseDto.prototype, "companyName", void 0);
|
|
631
|
+
_ts_decorate11([
|
|
632
|
+
ApiPropertyOptional3({
|
|
633
|
+
example: "https://www.example.com"
|
|
634
|
+
}),
|
|
635
|
+
_ts_metadata11("design:type", Object)
|
|
636
|
+
], ProfessionalProfileResponseDto.prototype, "website", void 0);
|
|
637
|
+
_ts_decorate11([
|
|
638
|
+
ApiPropertyOptional3({
|
|
639
|
+
example: "+1234567890"
|
|
640
|
+
}),
|
|
641
|
+
_ts_metadata11("design:type", Object)
|
|
642
|
+
], ProfessionalProfileResponseDto.prototype, "phone", void 0);
|
|
643
|
+
_ts_decorate11([
|
|
644
|
+
ApiPropertyOptional3({
|
|
645
|
+
example: "New York, USA"
|
|
646
|
+
}),
|
|
647
|
+
_ts_metadata11("design:type", Object)
|
|
648
|
+
], ProfessionalProfileResponseDto.prototype, "location", void 0);
|
|
649
|
+
_ts_decorate11([
|
|
650
|
+
ApiPropertyOptional3({
|
|
651
|
+
example: 5
|
|
652
|
+
}),
|
|
653
|
+
_ts_metadata11("design:type", Object)
|
|
654
|
+
], ProfessionalProfileResponseDto.prototype, "yearsOfExperience", void 0);
|
|
655
|
+
_ts_decorate11([
|
|
656
|
+
ApiProperty5({
|
|
657
|
+
example: false
|
|
658
|
+
}),
|
|
659
|
+
_ts_metadata11("design:type", Boolean)
|
|
660
|
+
], ProfessionalProfileResponseDto.prototype, "isVerified", void 0);
|
|
661
|
+
_ts_decorate11([
|
|
662
|
+
ApiPropertyOptional3({
|
|
663
|
+
example: 75.5
|
|
664
|
+
}),
|
|
665
|
+
_ts_metadata11("design:type", Object)
|
|
666
|
+
], ProfessionalProfileResponseDto.prototype, "hourlyRate", void 0);
|
|
667
|
+
_ts_decorate11([
|
|
668
|
+
ApiProperty5({
|
|
669
|
+
example: "available"
|
|
670
|
+
}),
|
|
671
|
+
_ts_metadata11("design:type", String)
|
|
672
|
+
], ProfessionalProfileResponseDto.prototype, "availabilityStatus", void 0);
|
|
673
|
+
_ts_decorate11([
|
|
674
|
+
ApiProperty5(),
|
|
675
|
+
_ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
|
|
676
|
+
], ProfessionalProfileResponseDto.prototype, "createdAt", void 0);
|
|
677
|
+
_ts_decorate11([
|
|
678
|
+
ApiProperty5(),
|
|
679
|
+
_ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
|
|
680
|
+
], ProfessionalProfileResponseDto.prototype, "updatedAt", void 0);
|
|
400
681
|
|
|
401
682
|
// dto/users/search_users_by_full_name.dto.ts
|
|
402
|
-
import { IsOptional as
|
|
403
|
-
function
|
|
683
|
+
import { IsOptional as IsOptional4, IsString as IsString7 } from "class-validator";
|
|
684
|
+
function _ts_decorate12(decorators, target, key, desc) {
|
|
404
685
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
405
686
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
406
687
|
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
688
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
408
689
|
}
|
|
409
|
-
__name(
|
|
410
|
-
function
|
|
690
|
+
__name(_ts_decorate12, "_ts_decorate");
|
|
691
|
+
function _ts_metadata12(k, v) {
|
|
411
692
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
412
693
|
}
|
|
413
|
-
__name(
|
|
694
|
+
__name(_ts_metadata12, "_ts_metadata");
|
|
414
695
|
var _SearchUsersByFullNameDTO = class _SearchUsersByFullNameDTO extends FindAllUsersDto {
|
|
415
696
|
constructor() {
|
|
416
697
|
super(...arguments);
|
|
@@ -419,25 +700,25 @@ var _SearchUsersByFullNameDTO = class _SearchUsersByFullNameDTO extends FindAllU
|
|
|
419
700
|
};
|
|
420
701
|
__name(_SearchUsersByFullNameDTO, "SearchUsersByFullNameDTO");
|
|
421
702
|
var SearchUsersByFullNameDTO = _SearchUsersByFullNameDTO;
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
703
|
+
_ts_decorate12([
|
|
704
|
+
IsString7(),
|
|
705
|
+
IsOptional4(),
|
|
706
|
+
_ts_metadata12("design:type", String)
|
|
426
707
|
], SearchUsersByFullNameDTO.prototype, "fullName", void 0);
|
|
427
708
|
|
|
428
709
|
// dto/storage/delete-file.dto.ts
|
|
429
|
-
import { IsString as
|
|
430
|
-
function
|
|
710
|
+
import { IsString as IsString8, IsNotEmpty as IsNotEmpty4 } from "class-validator";
|
|
711
|
+
function _ts_decorate13(decorators, target, key, desc) {
|
|
431
712
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
432
713
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
433
714
|
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
715
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
435
716
|
}
|
|
436
|
-
__name(
|
|
437
|
-
function
|
|
717
|
+
__name(_ts_decorate13, "_ts_decorate");
|
|
718
|
+
function _ts_metadata13(k, v) {
|
|
438
719
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
439
720
|
}
|
|
440
|
-
__name(
|
|
721
|
+
__name(_ts_metadata13, "_ts_metadata");
|
|
441
722
|
var _DeleteFileDto = class _DeleteFileDto {
|
|
442
723
|
constructor() {
|
|
443
724
|
__publicField(this, "fileUrl");
|
|
@@ -445,10 +726,10 @@ var _DeleteFileDto = class _DeleteFileDto {
|
|
|
445
726
|
};
|
|
446
727
|
__name(_DeleteFileDto, "DeleteFileDto");
|
|
447
728
|
var DeleteFileDto = _DeleteFileDto;
|
|
448
|
-
|
|
449
|
-
|
|
729
|
+
_ts_decorate13([
|
|
730
|
+
IsString8(),
|
|
450
731
|
IsNotEmpty4(),
|
|
451
|
-
|
|
732
|
+
_ts_metadata13("design:type", String)
|
|
452
733
|
], DeleteFileDto.prototype, "fileUrl", void 0);
|
|
453
734
|
|
|
454
735
|
// dto/storage/file-response.dto.ts
|
|
@@ -465,18 +746,18 @@ __name(_FileResponseDto, "FileResponseDto");
|
|
|
465
746
|
var FileResponseDto = _FileResponseDto;
|
|
466
747
|
|
|
467
748
|
// dto/storage/upload-file.dto.ts
|
|
468
|
-
import { IsString as
|
|
469
|
-
function
|
|
749
|
+
import { IsString as IsString9, IsNotEmpty as IsNotEmpty5, IsEnum as IsEnum2, IsOptional as IsOptional5 } from "class-validator";
|
|
750
|
+
function _ts_decorate14(decorators, target, key, desc) {
|
|
470
751
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
471
752
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
472
753
|
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
754
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
474
755
|
}
|
|
475
|
-
__name(
|
|
476
|
-
function
|
|
756
|
+
__name(_ts_decorate14, "_ts_decorate");
|
|
757
|
+
function _ts_metadata14(k, v) {
|
|
477
758
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
478
759
|
}
|
|
479
|
-
__name(
|
|
760
|
+
__name(_ts_metadata14, "_ts_metadata");
|
|
480
761
|
var FileCategory = /* @__PURE__ */ (function(FileCategory2) {
|
|
481
762
|
FileCategory2["PROFILE_PICTURES"] = "profile-pictures";
|
|
482
763
|
FileCategory2["POST_IMAGES"] = "post-images";
|
|
@@ -498,24 +779,24 @@ var _UploadFileDto = class _UploadFileDto {
|
|
|
498
779
|
};
|
|
499
780
|
__name(_UploadFileDto, "UploadFileDto");
|
|
500
781
|
var UploadFileDto = _UploadFileDto;
|
|
501
|
-
|
|
502
|
-
|
|
782
|
+
_ts_decorate14([
|
|
783
|
+
IsString9(),
|
|
503
784
|
IsNotEmpty5(),
|
|
504
|
-
|
|
785
|
+
_ts_metadata14("design:type", String)
|
|
505
786
|
], UploadFileDto.prototype, "userId", void 0);
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
787
|
+
_ts_decorate14([
|
|
788
|
+
IsEnum2(FileCategory),
|
|
789
|
+
_ts_metadata14("design:type", String)
|
|
509
790
|
], UploadFileDto.prototype, "category", void 0);
|
|
510
|
-
|
|
511
|
-
|
|
791
|
+
_ts_decorate14([
|
|
792
|
+
IsString9(),
|
|
512
793
|
IsNotEmpty5(),
|
|
513
|
-
|
|
794
|
+
_ts_metadata14("design:type", String)
|
|
514
795
|
], UploadFileDto.prototype, "fileName", void 0);
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
796
|
+
_ts_decorate14([
|
|
797
|
+
IsString9(),
|
|
798
|
+
IsOptional5(),
|
|
799
|
+
_ts_metadata14("design:type", String)
|
|
519
800
|
], UploadFileDto.prototype, "mimeType", void 0);
|
|
520
801
|
|
|
521
802
|
// dto/shared/reaction_type.enum.ts
|
|
@@ -529,23 +810,23 @@ var ReactionType = /* @__PURE__ */ (function(ReactionType2) {
|
|
|
529
810
|
})({});
|
|
530
811
|
|
|
531
812
|
// dto/posts/create_post.dto.ts
|
|
532
|
-
import { ApiProperty as
|
|
533
|
-
import { IsArray, IsEnum as
|
|
813
|
+
import { ApiProperty as ApiProperty7 } from "@nestjs/swagger";
|
|
814
|
+
import { IsArray, IsEnum as IsEnum3, IsNotEmpty as IsNotEmpty7, IsOptional as IsOptional7, IsString as IsString11, MaxLength as MaxLength5, MinLength as MinLength6, ValidateNested } from "class-validator";
|
|
534
815
|
|
|
535
816
|
// dto/posts/create_post._file.dto.ts
|
|
536
|
-
import { IsString as
|
|
537
|
-
import { ApiProperty as
|
|
538
|
-
function
|
|
817
|
+
import { IsString as IsString10, IsNotEmpty as IsNotEmpty6, IsOptional as IsOptional6 } from "class-validator";
|
|
818
|
+
import { ApiProperty as ApiProperty6 } from "@nestjs/swagger";
|
|
819
|
+
function _ts_decorate15(decorators, target, key, desc) {
|
|
539
820
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
540
821
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
541
822
|
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
823
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
543
824
|
}
|
|
544
|
-
__name(
|
|
545
|
-
function
|
|
825
|
+
__name(_ts_decorate15, "_ts_decorate");
|
|
826
|
+
function _ts_metadata15(k, v) {
|
|
546
827
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
547
828
|
}
|
|
548
|
-
__name(
|
|
829
|
+
__name(_ts_metadata15, "_ts_metadata");
|
|
549
830
|
var _CreatePostFileDto = class _CreatePostFileDto {
|
|
550
831
|
constructor() {
|
|
551
832
|
__publicField(this, "fileBuffer");
|
|
@@ -556,36 +837,36 @@ var _CreatePostFileDto = class _CreatePostFileDto {
|
|
|
556
837
|
};
|
|
557
838
|
__name(_CreatePostFileDto, "CreatePostFileDto");
|
|
558
839
|
var CreatePostFileDto = _CreatePostFileDto;
|
|
559
|
-
|
|
560
|
-
|
|
840
|
+
_ts_decorate15([
|
|
841
|
+
ApiProperty6({
|
|
561
842
|
description: "Base64 encoded file",
|
|
562
843
|
example: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
|
|
563
844
|
}),
|
|
564
|
-
|
|
845
|
+
IsString10(),
|
|
565
846
|
IsNotEmpty6(),
|
|
566
|
-
|
|
847
|
+
_ts_metadata15("design:type", String)
|
|
567
848
|
], CreatePostFileDto.prototype, "fileBuffer", void 0);
|
|
568
|
-
|
|
569
|
-
|
|
849
|
+
_ts_decorate15([
|
|
850
|
+
ApiProperty6({
|
|
570
851
|
description: "File name",
|
|
571
852
|
example: "vacation-photo.jpg"
|
|
572
853
|
}),
|
|
573
|
-
|
|
854
|
+
IsString10(),
|
|
574
855
|
IsNotEmpty6(),
|
|
575
|
-
|
|
856
|
+
_ts_metadata15("design:type", String)
|
|
576
857
|
], CreatePostFileDto.prototype, "fileName", void 0);
|
|
577
|
-
|
|
578
|
-
|
|
858
|
+
_ts_decorate15([
|
|
859
|
+
ApiProperty6({
|
|
579
860
|
description: "MIME type",
|
|
580
861
|
example: "image/jpeg",
|
|
581
862
|
required: false
|
|
582
863
|
}),
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
864
|
+
IsString10(),
|
|
865
|
+
IsOptional6(),
|
|
866
|
+
_ts_metadata15("design:type", String)
|
|
586
867
|
], CreatePostFileDto.prototype, "mimeType", void 0);
|
|
587
|
-
|
|
588
|
-
|
|
868
|
+
_ts_decorate15([
|
|
869
|
+
ApiProperty6({
|
|
589
870
|
description: "File type",
|
|
590
871
|
example: "image",
|
|
591
872
|
enum: [
|
|
@@ -593,50 +874,24 @@ _ts_decorate14([
|
|
|
593
874
|
"video"
|
|
594
875
|
]
|
|
595
876
|
}),
|
|
596
|
-
|
|
877
|
+
IsString10(),
|
|
597
878
|
IsNotEmpty6(),
|
|
598
|
-
|
|
879
|
+
_ts_metadata15("design:type", String)
|
|
599
880
|
], CreatePostFileDto.prototype, "fileType", void 0);
|
|
600
881
|
|
|
601
882
|
// dto/posts/create_post.dto.ts
|
|
602
883
|
import { Type as Type2 } from "class-transformer";
|
|
603
|
-
|
|
604
|
-
// enums/business-sector.enum.ts
|
|
605
|
-
var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
|
|
606
|
-
BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
|
|
607
|
-
BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
|
|
608
|
-
BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
|
|
609
|
-
BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
|
|
610
|
-
BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
|
|
611
|
-
BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
|
|
612
|
-
BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
|
|
613
|
-
BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
|
|
614
|
-
BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
|
|
615
|
-
BusinessSector2["LEGAL"] = "Legal Services";
|
|
616
|
-
BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
|
|
617
|
-
BusinessSector2["CONSULTING"] = "Business Consulting";
|
|
618
|
-
BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
|
|
619
|
-
BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
|
|
620
|
-
BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
|
|
621
|
-
BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
|
|
622
|
-
BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
|
|
623
|
-
BusinessSector2["REAL_ESTATE"] = "Real Estate";
|
|
624
|
-
BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
|
|
625
|
-
return BusinessSector2;
|
|
626
|
-
})({});
|
|
627
|
-
|
|
628
|
-
// dto/posts/create_post.dto.ts
|
|
629
|
-
function _ts_decorate15(decorators, target, key, desc) {
|
|
884
|
+
function _ts_decorate16(decorators, target, key, desc) {
|
|
630
885
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
631
886
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
632
887
|
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;
|
|
633
888
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
634
889
|
}
|
|
635
|
-
__name(
|
|
636
|
-
function
|
|
890
|
+
__name(_ts_decorate16, "_ts_decorate");
|
|
891
|
+
function _ts_metadata16(k, v) {
|
|
637
892
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
638
893
|
}
|
|
639
|
-
__name(
|
|
894
|
+
__name(_ts_metadata16, "_ts_metadata");
|
|
640
895
|
var _CreatePostDto = class _CreatePostDto {
|
|
641
896
|
constructor() {
|
|
642
897
|
__publicField(this, "description");
|
|
@@ -646,32 +901,32 @@ var _CreatePostDto = class _CreatePostDto {
|
|
|
646
901
|
};
|
|
647
902
|
__name(_CreatePostDto, "CreatePostDto");
|
|
648
903
|
var CreatePostDto = _CreatePostDto;
|
|
649
|
-
|
|
650
|
-
|
|
904
|
+
_ts_decorate16([
|
|
905
|
+
ApiProperty7({
|
|
651
906
|
description: "Post description/content",
|
|
652
907
|
example: "Check out this amazing view!",
|
|
653
908
|
minLength: 1,
|
|
654
909
|
maxLength: 5e3
|
|
655
910
|
}),
|
|
656
|
-
|
|
911
|
+
IsString11(),
|
|
657
912
|
IsNotEmpty7(),
|
|
658
913
|
MinLength6(1),
|
|
659
914
|
MaxLength5(5e3),
|
|
660
|
-
|
|
915
|
+
_ts_metadata16("design:type", String)
|
|
661
916
|
], CreatePostDto.prototype, "description", void 0);
|
|
662
|
-
|
|
663
|
-
|
|
917
|
+
_ts_decorate16([
|
|
918
|
+
ApiProperty7({
|
|
664
919
|
description: "The business sector for the post",
|
|
665
920
|
enum: BusinessSector,
|
|
666
921
|
required: true,
|
|
667
922
|
default: BusinessSector.CONSULTING
|
|
668
923
|
}),
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
924
|
+
IsEnum3(BusinessSector),
|
|
925
|
+
IsOptional7(),
|
|
926
|
+
_ts_metadata16("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
672
927
|
], CreatePostDto.prototype, "sector", void 0);
|
|
673
|
-
|
|
674
|
-
|
|
928
|
+
_ts_decorate16([
|
|
929
|
+
ApiProperty7({
|
|
675
930
|
description: "Array of files to upload with the post",
|
|
676
931
|
type: [
|
|
677
932
|
CreatePostFileDto
|
|
@@ -683,26 +938,26 @@ _ts_decorate15([
|
|
|
683
938
|
each: true
|
|
684
939
|
}),
|
|
685
940
|
Type2(() => CreatePostFileDto),
|
|
686
|
-
|
|
687
|
-
|
|
941
|
+
IsOptional7(),
|
|
942
|
+
_ts_metadata16("design:type", Array)
|
|
688
943
|
], CreatePostDto.prototype, "files", void 0);
|
|
689
944
|
|
|
690
945
|
// dto/posts/post_response.dto.ts
|
|
691
|
-
import { ApiProperty as
|
|
946
|
+
import { ApiProperty as ApiProperty9 } from "@nestjs/swagger";
|
|
692
947
|
|
|
693
948
|
// dto/posts/post_file.dto.ts
|
|
694
|
-
import { ApiProperty as
|
|
695
|
-
function
|
|
949
|
+
import { ApiProperty as ApiProperty8 } from "@nestjs/swagger";
|
|
950
|
+
function _ts_decorate17(decorators, target, key, desc) {
|
|
696
951
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
697
952
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
698
953
|
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;
|
|
699
954
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
700
955
|
}
|
|
701
|
-
__name(
|
|
702
|
-
function
|
|
956
|
+
__name(_ts_decorate17, "_ts_decorate");
|
|
957
|
+
function _ts_metadata17(k, v) {
|
|
703
958
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
704
959
|
}
|
|
705
|
-
__name(
|
|
960
|
+
__name(_ts_metadata17, "_ts_metadata");
|
|
706
961
|
var _PostFileDto = class _PostFileDto {
|
|
707
962
|
constructor() {
|
|
708
963
|
__publicField(this, "id");
|
|
@@ -715,61 +970,61 @@ var _PostFileDto = class _PostFileDto {
|
|
|
715
970
|
};
|
|
716
971
|
__name(_PostFileDto, "PostFileDto");
|
|
717
972
|
var PostFileDto = _PostFileDto;
|
|
718
|
-
|
|
719
|
-
|
|
973
|
+
_ts_decorate17([
|
|
974
|
+
ApiProperty8({
|
|
720
975
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
721
976
|
}),
|
|
722
|
-
|
|
977
|
+
_ts_metadata17("design:type", String)
|
|
723
978
|
], PostFileDto.prototype, "id", void 0);
|
|
724
|
-
|
|
725
|
-
|
|
979
|
+
_ts_decorate17([
|
|
980
|
+
ApiProperty8({
|
|
726
981
|
example: "https://storage.example.com/posts/image.jpg"
|
|
727
982
|
}),
|
|
728
|
-
|
|
983
|
+
_ts_metadata17("design:type", String)
|
|
729
984
|
], PostFileDto.prototype, "fileUrl", void 0);
|
|
730
|
-
|
|
731
|
-
|
|
985
|
+
_ts_decorate17([
|
|
986
|
+
ApiProperty8({
|
|
732
987
|
example: "image",
|
|
733
988
|
enum: [
|
|
734
989
|
"image",
|
|
735
990
|
"video"
|
|
736
991
|
]
|
|
737
992
|
}),
|
|
738
|
-
|
|
993
|
+
_ts_metadata17("design:type", String)
|
|
739
994
|
], PostFileDto.prototype, "fileType", void 0);
|
|
740
|
-
|
|
741
|
-
|
|
995
|
+
_ts_decorate17([
|
|
996
|
+
ApiProperty8({
|
|
742
997
|
example: "image/jpeg",
|
|
743
998
|
nullable: true
|
|
744
999
|
}),
|
|
745
|
-
|
|
1000
|
+
_ts_metadata17("design:type", Object)
|
|
746
1001
|
], PostFileDto.prototype, "mimeType", void 0);
|
|
747
|
-
|
|
748
|
-
|
|
1002
|
+
_ts_decorate17([
|
|
1003
|
+
ApiProperty8({
|
|
749
1004
|
example: 0
|
|
750
1005
|
}),
|
|
751
|
-
|
|
1006
|
+
_ts_metadata17("design:type", Number)
|
|
752
1007
|
], PostFileDto.prototype, "orderIndex", void 0);
|
|
753
|
-
|
|
754
|
-
|
|
1008
|
+
_ts_decorate17([
|
|
1009
|
+
ApiProperty8({
|
|
755
1010
|
example: "2024-01-15T10:30:00Z"
|
|
756
1011
|
}),
|
|
757
|
-
|
|
1012
|
+
_ts_metadata17("design:type", typeof Date === "undefined" ? Object : Date)
|
|
758
1013
|
], PostFileDto.prototype, "createdAt", void 0);
|
|
759
1014
|
|
|
760
1015
|
// dto/posts/post_response.dto.ts
|
|
761
|
-
import { IsEnum as
|
|
762
|
-
function
|
|
1016
|
+
import { IsEnum as IsEnum4 } from "class-validator";
|
|
1017
|
+
function _ts_decorate18(decorators, target, key, desc) {
|
|
763
1018
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
764
1019
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
765
1020
|
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;
|
|
766
1021
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
767
1022
|
}
|
|
768
|
-
__name(
|
|
769
|
-
function
|
|
1023
|
+
__name(_ts_decorate18, "_ts_decorate");
|
|
1024
|
+
function _ts_metadata18(k, v) {
|
|
770
1025
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
771
1026
|
}
|
|
772
|
-
__name(
|
|
1027
|
+
__name(_ts_metadata18, "_ts_metadata");
|
|
773
1028
|
var _PostResponseDto = class _PostResponseDto {
|
|
774
1029
|
constructor() {
|
|
775
1030
|
__publicField(this, "id");
|
|
@@ -787,93 +1042,93 @@ var _PostResponseDto = class _PostResponseDto {
|
|
|
787
1042
|
};
|
|
788
1043
|
__name(_PostResponseDto, "PostResponseDto");
|
|
789
1044
|
var PostResponseDto = _PostResponseDto;
|
|
790
|
-
|
|
791
|
-
|
|
1045
|
+
_ts_decorate18([
|
|
1046
|
+
ApiProperty9({
|
|
792
1047
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
793
1048
|
}),
|
|
794
|
-
|
|
1049
|
+
_ts_metadata18("design:type", String)
|
|
795
1050
|
], PostResponseDto.prototype, "id", void 0);
|
|
796
|
-
|
|
797
|
-
|
|
1051
|
+
_ts_decorate18([
|
|
1052
|
+
ApiProperty9({
|
|
798
1053
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
799
1054
|
}),
|
|
800
|
-
|
|
1055
|
+
_ts_metadata18("design:type", String)
|
|
801
1056
|
], PostResponseDto.prototype, "publisherId", void 0);
|
|
802
|
-
|
|
803
|
-
|
|
1057
|
+
_ts_decorate18([
|
|
1058
|
+
ApiProperty9({
|
|
804
1059
|
example: "Check out this amazing view!"
|
|
805
1060
|
}),
|
|
806
|
-
|
|
1061
|
+
_ts_metadata18("design:type", String)
|
|
807
1062
|
], PostResponseDto.prototype, "description", void 0);
|
|
808
|
-
|
|
809
|
-
|
|
1063
|
+
_ts_decorate18([
|
|
1064
|
+
ApiProperty9({
|
|
810
1065
|
example: "John Doe"
|
|
811
1066
|
}),
|
|
812
|
-
|
|
1067
|
+
_ts_metadata18("design:type", String)
|
|
813
1068
|
], PostResponseDto.prototype, "publisherFullName", void 0);
|
|
814
|
-
|
|
815
|
-
|
|
1069
|
+
_ts_decorate18([
|
|
1070
|
+
ApiProperty9({
|
|
816
1071
|
example: "https://example.com/profile.jpg",
|
|
817
1072
|
nullable: true
|
|
818
1073
|
}),
|
|
819
|
-
|
|
1074
|
+
_ts_metadata18("design:type", Object)
|
|
820
1075
|
], PostResponseDto.prototype, "publisherProfilePictureUrl", void 0);
|
|
821
|
-
|
|
822
|
-
|
|
1076
|
+
_ts_decorate18([
|
|
1077
|
+
ApiProperty9({
|
|
823
1078
|
type: [
|
|
824
1079
|
PostFileDto
|
|
825
1080
|
]
|
|
826
1081
|
}),
|
|
827
|
-
|
|
1082
|
+
_ts_metadata18("design:type", Array)
|
|
828
1083
|
], PostResponseDto.prototype, "files", void 0);
|
|
829
|
-
|
|
830
|
-
|
|
1084
|
+
_ts_decorate18([
|
|
1085
|
+
ApiProperty9({
|
|
831
1086
|
example: 42
|
|
832
1087
|
}),
|
|
833
|
-
|
|
1088
|
+
_ts_metadata18("design:type", Number)
|
|
834
1089
|
], PostResponseDto.prototype, "commentsCount", void 0);
|
|
835
|
-
|
|
836
|
-
|
|
1090
|
+
_ts_decorate18([
|
|
1091
|
+
ApiProperty9({
|
|
837
1092
|
description: "The Bunsieess sector type for the post",
|
|
838
1093
|
enum: BusinessSector,
|
|
839
1094
|
required: false,
|
|
840
1095
|
default: BusinessSector.CONSULTING
|
|
841
1096
|
}),
|
|
842
|
-
|
|
843
|
-
|
|
1097
|
+
IsEnum4(BusinessSector),
|
|
1098
|
+
_ts_metadata18("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
844
1099
|
], PostResponseDto.prototype, "sector", void 0);
|
|
845
|
-
|
|
846
|
-
|
|
1100
|
+
_ts_decorate18([
|
|
1101
|
+
ApiProperty9({
|
|
847
1102
|
example: 128
|
|
848
1103
|
}),
|
|
849
|
-
|
|
1104
|
+
_ts_metadata18("design:type", Number)
|
|
850
1105
|
], PostResponseDto.prototype, "likesCount", void 0);
|
|
851
|
-
|
|
852
|
-
|
|
1106
|
+
_ts_decorate18([
|
|
1107
|
+
ApiProperty9({
|
|
853
1108
|
example: "2024-01-15T10:30:00Z"
|
|
854
1109
|
}),
|
|
855
|
-
|
|
1110
|
+
_ts_metadata18("design:type", typeof Date === "undefined" ? Object : Date)
|
|
856
1111
|
], PostResponseDto.prototype, "createdAt", void 0);
|
|
857
|
-
|
|
858
|
-
|
|
1112
|
+
_ts_decorate18([
|
|
1113
|
+
ApiProperty9({
|
|
859
1114
|
example: "2024-01-15T10:30:00Z"
|
|
860
1115
|
}),
|
|
861
|
-
|
|
1116
|
+
_ts_metadata18("design:type", typeof Date === "undefined" ? Object : Date)
|
|
862
1117
|
], PostResponseDto.prototype, "updatedAt", void 0);
|
|
863
1118
|
|
|
864
1119
|
// dto/posts/pagination_post.dto.ts
|
|
865
|
-
import { ApiProperty as
|
|
866
|
-
function
|
|
1120
|
+
import { ApiProperty as ApiProperty10 } from "@nestjs/swagger";
|
|
1121
|
+
function _ts_decorate19(decorators, target, key, desc) {
|
|
867
1122
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
868
1123
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
869
1124
|
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;
|
|
870
1125
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
871
1126
|
}
|
|
872
|
-
__name(
|
|
873
|
-
function
|
|
1127
|
+
__name(_ts_decorate19, "_ts_decorate");
|
|
1128
|
+
function _ts_metadata19(k, v) {
|
|
874
1129
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
875
1130
|
}
|
|
876
|
-
__name(
|
|
1131
|
+
__name(_ts_metadata19, "_ts_metadata");
|
|
877
1132
|
var _PaginatedPostsDto = class _PaginatedPostsDto {
|
|
878
1133
|
constructor() {
|
|
879
1134
|
__publicField(this, "posts");
|
|
@@ -884,47 +1139,47 @@ var _PaginatedPostsDto = class _PaginatedPostsDto {
|
|
|
884
1139
|
};
|
|
885
1140
|
__name(_PaginatedPostsDto, "PaginatedPostsDto");
|
|
886
1141
|
var PaginatedPostsDto = _PaginatedPostsDto;
|
|
887
|
-
|
|
888
|
-
|
|
1142
|
+
_ts_decorate19([
|
|
1143
|
+
ApiProperty10({
|
|
889
1144
|
type: [
|
|
890
1145
|
PostResponseDto
|
|
891
1146
|
]
|
|
892
1147
|
}),
|
|
893
|
-
|
|
1148
|
+
_ts_metadata19("design:type", Array)
|
|
894
1149
|
], PaginatedPostsDto.prototype, "posts", void 0);
|
|
895
|
-
|
|
896
|
-
|
|
1150
|
+
_ts_decorate19([
|
|
1151
|
+
ApiProperty10({
|
|
897
1152
|
example: 100
|
|
898
1153
|
}),
|
|
899
|
-
|
|
1154
|
+
_ts_metadata19("design:type", Number)
|
|
900
1155
|
], PaginatedPostsDto.prototype, "total", void 0);
|
|
901
|
-
|
|
902
|
-
|
|
1156
|
+
_ts_decorate19([
|
|
1157
|
+
ApiProperty10({
|
|
903
1158
|
example: 1
|
|
904
1159
|
}),
|
|
905
|
-
|
|
1160
|
+
_ts_metadata19("design:type", Number)
|
|
906
1161
|
], PaginatedPostsDto.prototype, "page", void 0);
|
|
907
|
-
|
|
908
|
-
|
|
1162
|
+
_ts_decorate19([
|
|
1163
|
+
ApiProperty10({
|
|
909
1164
|
example: 10
|
|
910
1165
|
}),
|
|
911
|
-
|
|
1166
|
+
_ts_metadata19("design:type", Number)
|
|
912
1167
|
], PaginatedPostsDto.prototype, "totalPages", void 0);
|
|
913
1168
|
|
|
914
1169
|
// dto/posts/update_post.dto.ts
|
|
915
|
-
import { ApiProperty as
|
|
916
|
-
import { IsEnum as
|
|
917
|
-
function
|
|
1170
|
+
import { ApiProperty as ApiProperty11 } from "@nestjs/swagger";
|
|
1171
|
+
import { IsEnum as IsEnum5, IsNotEmpty as IsNotEmpty8, IsString as IsString12, MaxLength as MaxLength6, MinLength as MinLength7 } from "class-validator";
|
|
1172
|
+
function _ts_decorate20(decorators, target, key, desc) {
|
|
918
1173
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
919
1174
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
920
1175
|
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;
|
|
921
1176
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
922
1177
|
}
|
|
923
|
-
__name(
|
|
924
|
-
function
|
|
1178
|
+
__name(_ts_decorate20, "_ts_decorate");
|
|
1179
|
+
function _ts_metadata20(k, v) {
|
|
925
1180
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
926
1181
|
}
|
|
927
|
-
__name(
|
|
1182
|
+
__name(_ts_metadata20, "_ts_metadata");
|
|
928
1183
|
var _UpdatePostDto = class _UpdatePostDto {
|
|
929
1184
|
constructor() {
|
|
930
1185
|
__publicField(this, "description");
|
|
@@ -933,29 +1188,29 @@ var _UpdatePostDto = class _UpdatePostDto {
|
|
|
933
1188
|
};
|
|
934
1189
|
__name(_UpdatePostDto, "UpdatePostDto");
|
|
935
1190
|
var UpdatePostDto = _UpdatePostDto;
|
|
936
|
-
|
|
937
|
-
|
|
1191
|
+
_ts_decorate20([
|
|
1192
|
+
ApiProperty11({
|
|
938
1193
|
description: "Post description/content",
|
|
939
1194
|
example: "Updated: Check out this amazing view!",
|
|
940
1195
|
minLength: 1,
|
|
941
1196
|
maxLength: 5e3,
|
|
942
1197
|
required: false
|
|
943
1198
|
}),
|
|
944
|
-
|
|
1199
|
+
IsString12(),
|
|
945
1200
|
IsNotEmpty8(),
|
|
946
1201
|
MinLength7(1),
|
|
947
1202
|
MaxLength6(5e3),
|
|
948
|
-
|
|
1203
|
+
_ts_metadata20("design:type", String)
|
|
949
1204
|
], UpdatePostDto.prototype, "description", void 0);
|
|
950
|
-
|
|
951
|
-
|
|
1205
|
+
_ts_decorate20([
|
|
1206
|
+
ApiProperty11({
|
|
952
1207
|
description: "The Bunsieess sector type for the post",
|
|
953
1208
|
enum: BusinessSector,
|
|
954
1209
|
required: true,
|
|
955
1210
|
default: BusinessSector.CONSULTING
|
|
956
1211
|
}),
|
|
957
|
-
|
|
958
|
-
|
|
1212
|
+
IsEnum5(BusinessSector),
|
|
1213
|
+
_ts_metadata20("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
959
1214
|
], UpdatePostDto.prototype, "sector", void 0);
|
|
960
1215
|
|
|
961
1216
|
// dto/posts/post_fields.dto.ts
|
|
@@ -978,18 +1233,18 @@ __name(_PostFields, "PostFields");
|
|
|
978
1233
|
var PostFields = _PostFields;
|
|
979
1234
|
|
|
980
1235
|
// dto/posts/post_response_self.dto.ts
|
|
981
|
-
import { ApiProperty as
|
|
982
|
-
function
|
|
1236
|
+
import { ApiProperty as ApiProperty12 } from "@nestjs/swagger";
|
|
1237
|
+
function _ts_decorate21(decorators, target, key, desc) {
|
|
983
1238
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
984
1239
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
985
1240
|
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;
|
|
986
1241
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
987
1242
|
}
|
|
988
|
-
__name(
|
|
989
|
-
function
|
|
1243
|
+
__name(_ts_decorate21, "_ts_decorate");
|
|
1244
|
+
function _ts_metadata21(k, v) {
|
|
990
1245
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
991
1246
|
}
|
|
992
|
-
__name(
|
|
1247
|
+
__name(_ts_metadata21, "_ts_metadata");
|
|
993
1248
|
var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
|
|
994
1249
|
constructor() {
|
|
995
1250
|
super(...arguments);
|
|
@@ -998,26 +1253,26 @@ var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
|
|
|
998
1253
|
};
|
|
999
1254
|
__name(_PostResponseSelfDto, "PostResponseSelfDto");
|
|
1000
1255
|
var PostResponseSelfDto = _PostResponseSelfDto;
|
|
1001
|
-
|
|
1002
|
-
|
|
1256
|
+
_ts_decorate21([
|
|
1257
|
+
ApiProperty12({
|
|
1003
1258
|
example: true
|
|
1004
1259
|
}),
|
|
1005
|
-
|
|
1260
|
+
_ts_metadata21("design:type", Boolean)
|
|
1006
1261
|
], PostResponseSelfDto.prototype, "hidden", void 0);
|
|
1007
1262
|
|
|
1008
1263
|
// dto/posts/pagination_post_self.dto.ts
|
|
1009
|
-
import { ApiProperty as
|
|
1010
|
-
function
|
|
1264
|
+
import { ApiProperty as ApiProperty13 } from "@nestjs/swagger";
|
|
1265
|
+
function _ts_decorate22(decorators, target, key, desc) {
|
|
1011
1266
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1012
1267
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1013
1268
|
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;
|
|
1014
1269
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1015
1270
|
}
|
|
1016
|
-
__name(
|
|
1017
|
-
function
|
|
1271
|
+
__name(_ts_decorate22, "_ts_decorate");
|
|
1272
|
+
function _ts_metadata22(k, v) {
|
|
1018
1273
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1019
1274
|
}
|
|
1020
|
-
__name(
|
|
1275
|
+
__name(_ts_metadata22, "_ts_metadata");
|
|
1021
1276
|
var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
|
|
1022
1277
|
constructor() {
|
|
1023
1278
|
__publicField(this, "posts");
|
|
@@ -1028,46 +1283,46 @@ var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
|
|
|
1028
1283
|
};
|
|
1029
1284
|
__name(_PaginatedPostsSelfDto, "PaginatedPostsSelfDto");
|
|
1030
1285
|
var PaginatedPostsSelfDto = _PaginatedPostsSelfDto;
|
|
1031
|
-
|
|
1032
|
-
|
|
1286
|
+
_ts_decorate22([
|
|
1287
|
+
ApiProperty13({
|
|
1033
1288
|
type: [
|
|
1034
1289
|
PostResponseDto
|
|
1035
1290
|
]
|
|
1036
1291
|
}),
|
|
1037
|
-
|
|
1292
|
+
_ts_metadata22("design:type", Array)
|
|
1038
1293
|
], PaginatedPostsSelfDto.prototype, "posts", void 0);
|
|
1039
|
-
|
|
1040
|
-
|
|
1294
|
+
_ts_decorate22([
|
|
1295
|
+
ApiProperty13({
|
|
1041
1296
|
example: 100
|
|
1042
1297
|
}),
|
|
1043
|
-
|
|
1298
|
+
_ts_metadata22("design:type", Number)
|
|
1044
1299
|
], PaginatedPostsSelfDto.prototype, "total", void 0);
|
|
1045
|
-
|
|
1046
|
-
|
|
1300
|
+
_ts_decorate22([
|
|
1301
|
+
ApiProperty13({
|
|
1047
1302
|
example: 1
|
|
1048
1303
|
}),
|
|
1049
|
-
|
|
1304
|
+
_ts_metadata22("design:type", Number)
|
|
1050
1305
|
], PaginatedPostsSelfDto.prototype, "page", void 0);
|
|
1051
|
-
|
|
1052
|
-
|
|
1306
|
+
_ts_decorate22([
|
|
1307
|
+
ApiProperty13({
|
|
1053
1308
|
example: 10
|
|
1054
1309
|
}),
|
|
1055
|
-
|
|
1310
|
+
_ts_metadata22("design:type", Number)
|
|
1056
1311
|
], PaginatedPostsSelfDto.prototype, "totalPages", void 0);
|
|
1057
1312
|
|
|
1058
1313
|
// dto/posts/reorder_post_file.dto.ts
|
|
1059
|
-
import { IsInt as
|
|
1060
|
-
function
|
|
1314
|
+
import { IsInt as IsInt3, Max, Min as Min3 } from "class-validator";
|
|
1315
|
+
function _ts_decorate23(decorators, target, key, desc) {
|
|
1061
1316
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1062
1317
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1063
1318
|
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;
|
|
1064
1319
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1065
1320
|
}
|
|
1066
|
-
__name(
|
|
1067
|
-
function
|
|
1321
|
+
__name(_ts_decorate23, "_ts_decorate");
|
|
1322
|
+
function _ts_metadata23(k, v) {
|
|
1068
1323
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1069
1324
|
}
|
|
1070
|
-
__name(
|
|
1325
|
+
__name(_ts_metadata23, "_ts_metadata");
|
|
1071
1326
|
var _ReorderDto = class _ReorderDto {
|
|
1072
1327
|
constructor() {
|
|
1073
1328
|
__publicField(this, "newIndex");
|
|
@@ -1075,26 +1330,26 @@ var _ReorderDto = class _ReorderDto {
|
|
|
1075
1330
|
};
|
|
1076
1331
|
__name(_ReorderDto, "ReorderDto");
|
|
1077
1332
|
var ReorderDto = _ReorderDto;
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1333
|
+
_ts_decorate23([
|
|
1334
|
+
IsInt3(),
|
|
1335
|
+
Min3(0),
|
|
1081
1336
|
Max(100),
|
|
1082
|
-
|
|
1337
|
+
_ts_metadata23("design:type", Number)
|
|
1083
1338
|
], ReorderDto.prototype, "newIndex", void 0);
|
|
1084
1339
|
|
|
1085
1340
|
// dto/posts/post_like_response.dto.ts
|
|
1086
|
-
import { ApiProperty as
|
|
1087
|
-
function
|
|
1341
|
+
import { ApiProperty as ApiProperty14 } from "@nestjs/swagger";
|
|
1342
|
+
function _ts_decorate24(decorators, target, key, desc) {
|
|
1088
1343
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1089
1344
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1090
1345
|
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;
|
|
1091
1346
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1092
1347
|
}
|
|
1093
|
-
__name(
|
|
1094
|
-
function
|
|
1348
|
+
__name(_ts_decorate24, "_ts_decorate");
|
|
1349
|
+
function _ts_metadata24(k, v) {
|
|
1095
1350
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1096
1351
|
}
|
|
1097
|
-
__name(
|
|
1352
|
+
__name(_ts_metadata24, "_ts_metadata");
|
|
1098
1353
|
var _PostLikeResponseDto = class _PostLikeResponseDto {
|
|
1099
1354
|
constructor() {
|
|
1100
1355
|
__publicField(this, "id");
|
|
@@ -1108,65 +1363,65 @@ var _PostLikeResponseDto = class _PostLikeResponseDto {
|
|
|
1108
1363
|
};
|
|
1109
1364
|
__name(_PostLikeResponseDto, "PostLikeResponseDto");
|
|
1110
1365
|
var PostLikeResponseDto = _PostLikeResponseDto;
|
|
1111
|
-
|
|
1112
|
-
|
|
1366
|
+
_ts_decorate24([
|
|
1367
|
+
ApiProperty14({
|
|
1113
1368
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1114
1369
|
}),
|
|
1115
|
-
|
|
1370
|
+
_ts_metadata24("design:type", String)
|
|
1116
1371
|
], PostLikeResponseDto.prototype, "id", void 0);
|
|
1117
|
-
|
|
1118
|
-
|
|
1372
|
+
_ts_decorate24([
|
|
1373
|
+
ApiProperty14({
|
|
1119
1374
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1120
1375
|
}),
|
|
1121
|
-
|
|
1376
|
+
_ts_metadata24("design:type", String)
|
|
1122
1377
|
], PostLikeResponseDto.prototype, "postId", void 0);
|
|
1123
|
-
|
|
1124
|
-
|
|
1378
|
+
_ts_decorate24([
|
|
1379
|
+
ApiProperty14({
|
|
1125
1380
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1126
1381
|
}),
|
|
1127
|
-
|
|
1382
|
+
_ts_metadata24("design:type", String)
|
|
1128
1383
|
], PostLikeResponseDto.prototype, "userId", void 0);
|
|
1129
|
-
|
|
1130
|
-
|
|
1384
|
+
_ts_decorate24([
|
|
1385
|
+
ApiProperty14({
|
|
1131
1386
|
example: "John Doe"
|
|
1132
1387
|
}),
|
|
1133
|
-
|
|
1388
|
+
_ts_metadata24("design:type", String)
|
|
1134
1389
|
], PostLikeResponseDto.prototype, "userFullName", void 0);
|
|
1135
|
-
|
|
1136
|
-
|
|
1390
|
+
_ts_decorate24([
|
|
1391
|
+
ApiProperty14({
|
|
1137
1392
|
example: "https://example.com/avatar.jpg",
|
|
1138
1393
|
nullable: true
|
|
1139
1394
|
}),
|
|
1140
|
-
|
|
1395
|
+
_ts_metadata24("design:type", Object)
|
|
1141
1396
|
], PostLikeResponseDto.prototype, "userProfilePictureUrl", void 0);
|
|
1142
|
-
|
|
1143
|
-
|
|
1397
|
+
_ts_decorate24([
|
|
1398
|
+
ApiProperty14({
|
|
1144
1399
|
enum: ReactionType,
|
|
1145
1400
|
example: ReactionType.LIKE
|
|
1146
1401
|
}),
|
|
1147
|
-
|
|
1402
|
+
_ts_metadata24("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1148
1403
|
], PostLikeResponseDto.prototype, "type", void 0);
|
|
1149
|
-
|
|
1150
|
-
|
|
1404
|
+
_ts_decorate24([
|
|
1405
|
+
ApiProperty14({
|
|
1151
1406
|
example: "2026-01-14T12:00:00Z"
|
|
1152
1407
|
}),
|
|
1153
|
-
|
|
1408
|
+
_ts_metadata24("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1154
1409
|
], PostLikeResponseDto.prototype, "createdAt", void 0);
|
|
1155
1410
|
|
|
1156
1411
|
// dto/posts/like_post.dto.ts
|
|
1157
|
-
import { ApiProperty as
|
|
1158
|
-
import { IsEnum as
|
|
1159
|
-
function
|
|
1412
|
+
import { ApiProperty as ApiProperty15 } from "@nestjs/swagger";
|
|
1413
|
+
import { IsEnum as IsEnum6, IsOptional as IsOptional8 } from "class-validator";
|
|
1414
|
+
function _ts_decorate25(decorators, target, key, desc) {
|
|
1160
1415
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1161
1416
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1162
1417
|
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;
|
|
1163
1418
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1164
1419
|
}
|
|
1165
|
-
__name(
|
|
1166
|
-
function
|
|
1420
|
+
__name(_ts_decorate25, "_ts_decorate");
|
|
1421
|
+
function _ts_metadata25(k, v) {
|
|
1167
1422
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1168
1423
|
}
|
|
1169
|
-
__name(
|
|
1424
|
+
__name(_ts_metadata25, "_ts_metadata");
|
|
1170
1425
|
var _LikePostDto = class _LikePostDto {
|
|
1171
1426
|
constructor() {
|
|
1172
1427
|
__publicField(this, "type");
|
|
@@ -1174,31 +1429,31 @@ var _LikePostDto = class _LikePostDto {
|
|
|
1174
1429
|
};
|
|
1175
1430
|
__name(_LikePostDto, "LikePostDto");
|
|
1176
1431
|
var LikePostDto = _LikePostDto;
|
|
1177
|
-
|
|
1178
|
-
|
|
1432
|
+
_ts_decorate25([
|
|
1433
|
+
ApiProperty15({
|
|
1179
1434
|
description: "The reaction type for the post",
|
|
1180
1435
|
enum: ReactionType,
|
|
1181
1436
|
required: false,
|
|
1182
1437
|
default: ReactionType.LIKE
|
|
1183
1438
|
}),
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1439
|
+
IsEnum6(ReactionType),
|
|
1440
|
+
IsOptional8(),
|
|
1441
|
+
_ts_metadata25("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1187
1442
|
], LikePostDto.prototype, "type", void 0);
|
|
1188
1443
|
|
|
1189
1444
|
// dto/posts/paginated_post_like_dto.ts
|
|
1190
|
-
import { ApiProperty as
|
|
1191
|
-
function
|
|
1445
|
+
import { ApiProperty as ApiProperty16 } from "@nestjs/swagger";
|
|
1446
|
+
function _ts_decorate26(decorators, target, key, desc) {
|
|
1192
1447
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1193
1448
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1194
1449
|
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;
|
|
1195
1450
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1196
1451
|
}
|
|
1197
|
-
__name(
|
|
1198
|
-
function
|
|
1452
|
+
__name(_ts_decorate26, "_ts_decorate");
|
|
1453
|
+
function _ts_metadata26(k, v) {
|
|
1199
1454
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1200
1455
|
}
|
|
1201
|
-
__name(
|
|
1456
|
+
__name(_ts_metadata26, "_ts_metadata");
|
|
1202
1457
|
var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
|
|
1203
1458
|
constructor() {
|
|
1204
1459
|
__publicField(this, "likes");
|
|
@@ -1209,47 +1464,47 @@ var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
|
|
|
1209
1464
|
};
|
|
1210
1465
|
__name(_PaginatedPostLikesDto, "PaginatedPostLikesDto");
|
|
1211
1466
|
var PaginatedPostLikesDto = _PaginatedPostLikesDto;
|
|
1212
|
-
|
|
1213
|
-
|
|
1467
|
+
_ts_decorate26([
|
|
1468
|
+
ApiProperty16({
|
|
1214
1469
|
type: [
|
|
1215
1470
|
PostLikeResponseDto
|
|
1216
1471
|
]
|
|
1217
1472
|
}),
|
|
1218
|
-
|
|
1473
|
+
_ts_metadata26("design:type", Array)
|
|
1219
1474
|
], PaginatedPostLikesDto.prototype, "likes", void 0);
|
|
1220
|
-
|
|
1221
|
-
|
|
1475
|
+
_ts_decorate26([
|
|
1476
|
+
ApiProperty16({
|
|
1222
1477
|
example: 100
|
|
1223
1478
|
}),
|
|
1224
|
-
|
|
1479
|
+
_ts_metadata26("design:type", Number)
|
|
1225
1480
|
], PaginatedPostLikesDto.prototype, "total", void 0);
|
|
1226
|
-
|
|
1227
|
-
|
|
1481
|
+
_ts_decorate26([
|
|
1482
|
+
ApiProperty16({
|
|
1228
1483
|
example: 1
|
|
1229
1484
|
}),
|
|
1230
|
-
|
|
1485
|
+
_ts_metadata26("design:type", Number)
|
|
1231
1486
|
], PaginatedPostLikesDto.prototype, "page", void 0);
|
|
1232
|
-
|
|
1233
|
-
|
|
1487
|
+
_ts_decorate26([
|
|
1488
|
+
ApiProperty16({
|
|
1234
1489
|
example: 10
|
|
1235
1490
|
}),
|
|
1236
|
-
|
|
1491
|
+
_ts_metadata26("design:type", Number)
|
|
1237
1492
|
], PaginatedPostLikesDto.prototype, "totalPages", void 0);
|
|
1238
1493
|
|
|
1239
1494
|
// dto/comments/create_comment.dto.ts
|
|
1240
|
-
import { ApiProperty as
|
|
1241
|
-
import { IsNotEmpty as IsNotEmpty9, IsOptional as
|
|
1242
|
-
function
|
|
1495
|
+
import { ApiProperty as ApiProperty17 } from "@nestjs/swagger";
|
|
1496
|
+
import { IsNotEmpty as IsNotEmpty9, IsOptional as IsOptional9, IsString as IsString13, IsUUID, MaxLength as MaxLength7, MinLength as MinLength8 } from "class-validator";
|
|
1497
|
+
function _ts_decorate27(decorators, target, key, desc) {
|
|
1243
1498
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1244
1499
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1245
1500
|
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;
|
|
1246
1501
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1247
1502
|
}
|
|
1248
|
-
__name(
|
|
1249
|
-
function
|
|
1503
|
+
__name(_ts_decorate27, "_ts_decorate");
|
|
1504
|
+
function _ts_metadata27(k, v) {
|
|
1250
1505
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1251
1506
|
}
|
|
1252
|
-
__name(
|
|
1507
|
+
__name(_ts_metadata27, "_ts_metadata");
|
|
1253
1508
|
var _CreateCommentDto = class _CreateCommentDto {
|
|
1254
1509
|
constructor() {
|
|
1255
1510
|
__publicField(this, "postId");
|
|
@@ -1259,52 +1514,52 @@ var _CreateCommentDto = class _CreateCommentDto {
|
|
|
1259
1514
|
};
|
|
1260
1515
|
__name(_CreateCommentDto, "CreateCommentDto");
|
|
1261
1516
|
var CreateCommentDto = _CreateCommentDto;
|
|
1262
|
-
|
|
1263
|
-
|
|
1517
|
+
_ts_decorate27([
|
|
1518
|
+
ApiProperty17({
|
|
1264
1519
|
description: "Post ID to comment on",
|
|
1265
1520
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1266
1521
|
}),
|
|
1267
1522
|
IsUUID(),
|
|
1268
1523
|
IsNotEmpty9(),
|
|
1269
|
-
|
|
1524
|
+
_ts_metadata27("design:type", String)
|
|
1270
1525
|
], CreateCommentDto.prototype, "postId", void 0);
|
|
1271
|
-
|
|
1272
|
-
|
|
1526
|
+
_ts_decorate27([
|
|
1527
|
+
ApiProperty17({
|
|
1273
1528
|
description: "Comment content",
|
|
1274
1529
|
example: "Great post!",
|
|
1275
1530
|
minLength: 1,
|
|
1276
1531
|
maxLength: 5e3
|
|
1277
1532
|
}),
|
|
1278
|
-
|
|
1533
|
+
IsString13(),
|
|
1279
1534
|
IsNotEmpty9(),
|
|
1280
1535
|
MinLength8(1),
|
|
1281
1536
|
MaxLength7(5e3),
|
|
1282
|
-
|
|
1537
|
+
_ts_metadata27("design:type", String)
|
|
1283
1538
|
], CreateCommentDto.prototype, "content", void 0);
|
|
1284
|
-
|
|
1285
|
-
|
|
1539
|
+
_ts_decorate27([
|
|
1540
|
+
ApiProperty17({
|
|
1286
1541
|
description: "Parent comment ID for nested replies",
|
|
1287
1542
|
example: "123e4567-e89b-12d3-a456-426614174002",
|
|
1288
1543
|
required: false
|
|
1289
1544
|
}),
|
|
1290
1545
|
IsUUID(),
|
|
1291
|
-
|
|
1292
|
-
|
|
1546
|
+
IsOptional9(),
|
|
1547
|
+
_ts_metadata27("design:type", String)
|
|
1293
1548
|
], CreateCommentDto.prototype, "parentCommentId", void 0);
|
|
1294
1549
|
|
|
1295
1550
|
// dto/comments/comment_response.dto.ts
|
|
1296
|
-
import { ApiProperty as
|
|
1297
|
-
function
|
|
1551
|
+
import { ApiProperty as ApiProperty18 } from "@nestjs/swagger";
|
|
1552
|
+
function _ts_decorate28(decorators, target, key, desc) {
|
|
1298
1553
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1299
1554
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1300
1555
|
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;
|
|
1301
1556
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1302
1557
|
}
|
|
1303
|
-
__name(
|
|
1304
|
-
function
|
|
1558
|
+
__name(_ts_decorate28, "_ts_decorate");
|
|
1559
|
+
function _ts_metadata28(k, v) {
|
|
1305
1560
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1306
1561
|
}
|
|
1307
|
-
__name(
|
|
1562
|
+
__name(_ts_metadata28, "_ts_metadata");
|
|
1308
1563
|
var _CommentResponseDto = class _CommentResponseDto {
|
|
1309
1564
|
constructor() {
|
|
1310
1565
|
__publicField(this, "id");
|
|
@@ -1324,100 +1579,100 @@ var _CommentResponseDto = class _CommentResponseDto {
|
|
|
1324
1579
|
};
|
|
1325
1580
|
__name(_CommentResponseDto, "CommentResponseDto");
|
|
1326
1581
|
var CommentResponseDto = _CommentResponseDto;
|
|
1327
|
-
|
|
1328
|
-
|
|
1582
|
+
_ts_decorate28([
|
|
1583
|
+
ApiProperty18({
|
|
1329
1584
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1330
1585
|
}),
|
|
1331
|
-
|
|
1586
|
+
_ts_metadata28("design:type", String)
|
|
1332
1587
|
], CommentResponseDto.prototype, "id", void 0);
|
|
1333
|
-
|
|
1334
|
-
|
|
1588
|
+
_ts_decorate28([
|
|
1589
|
+
ApiProperty18({
|
|
1335
1590
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
1336
1591
|
}),
|
|
1337
|
-
|
|
1592
|
+
_ts_metadata28("design:type", String)
|
|
1338
1593
|
], CommentResponseDto.prototype, "postId", void 0);
|
|
1339
|
-
|
|
1340
|
-
|
|
1594
|
+
_ts_decorate28([
|
|
1595
|
+
ApiProperty18({
|
|
1341
1596
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1342
1597
|
}),
|
|
1343
|
-
|
|
1598
|
+
_ts_metadata28("design:type", String)
|
|
1344
1599
|
], CommentResponseDto.prototype, "authorId", void 0);
|
|
1345
|
-
|
|
1346
|
-
|
|
1600
|
+
_ts_decorate28([
|
|
1601
|
+
ApiProperty18({
|
|
1347
1602
|
example: "John Doe"
|
|
1348
1603
|
}),
|
|
1349
|
-
|
|
1604
|
+
_ts_metadata28("design:type", String)
|
|
1350
1605
|
], CommentResponseDto.prototype, "authorFullName", void 0);
|
|
1351
|
-
|
|
1352
|
-
|
|
1606
|
+
_ts_decorate28([
|
|
1607
|
+
ApiProperty18({
|
|
1353
1608
|
example: "https://example.com/profile.jpg",
|
|
1354
1609
|
nullable: true
|
|
1355
1610
|
}),
|
|
1356
|
-
|
|
1611
|
+
_ts_metadata28("design:type", Object)
|
|
1357
1612
|
], CommentResponseDto.prototype, "authorProfilePictureUrl", void 0);
|
|
1358
|
-
|
|
1359
|
-
|
|
1613
|
+
_ts_decorate28([
|
|
1614
|
+
ApiProperty18({
|
|
1360
1615
|
example: "Great post!"
|
|
1361
1616
|
}),
|
|
1362
|
-
|
|
1617
|
+
_ts_metadata28("design:type", String)
|
|
1363
1618
|
], CommentResponseDto.prototype, "content", void 0);
|
|
1364
|
-
|
|
1365
|
-
|
|
1619
|
+
_ts_decorate28([
|
|
1620
|
+
ApiProperty18({
|
|
1366
1621
|
example: "123e4567-e89b-12d3-a456-426614174003",
|
|
1367
1622
|
nullable: true
|
|
1368
1623
|
}),
|
|
1369
|
-
|
|
1624
|
+
_ts_metadata28("design:type", Object)
|
|
1370
1625
|
], CommentResponseDto.prototype, "parentCommentId", void 0);
|
|
1371
|
-
|
|
1372
|
-
|
|
1626
|
+
_ts_decorate28([
|
|
1627
|
+
ApiProperty18({
|
|
1373
1628
|
example: 0
|
|
1374
1629
|
}),
|
|
1375
|
-
|
|
1630
|
+
_ts_metadata28("design:type", Number)
|
|
1376
1631
|
], CommentResponseDto.prototype, "depth", void 0);
|
|
1377
|
-
|
|
1378
|
-
|
|
1632
|
+
_ts_decorate28([
|
|
1633
|
+
ApiProperty18({
|
|
1379
1634
|
example: 5
|
|
1380
1635
|
}),
|
|
1381
|
-
|
|
1636
|
+
_ts_metadata28("design:type", Number)
|
|
1382
1637
|
], CommentResponseDto.prototype, "likesCount", void 0);
|
|
1383
|
-
|
|
1384
|
-
|
|
1638
|
+
_ts_decorate28([
|
|
1639
|
+
ApiProperty18({
|
|
1385
1640
|
example: 2
|
|
1386
1641
|
}),
|
|
1387
|
-
|
|
1642
|
+
_ts_metadata28("design:type", Number)
|
|
1388
1643
|
], CommentResponseDto.prototype, "repliesCount", void 0);
|
|
1389
|
-
|
|
1390
|
-
|
|
1644
|
+
_ts_decorate28([
|
|
1645
|
+
ApiProperty18({
|
|
1391
1646
|
example: false
|
|
1392
1647
|
}),
|
|
1393
|
-
|
|
1648
|
+
_ts_metadata28("design:type", Boolean)
|
|
1394
1649
|
], CommentResponseDto.prototype, "isEdited", void 0);
|
|
1395
|
-
|
|
1396
|
-
|
|
1650
|
+
_ts_decorate28([
|
|
1651
|
+
ApiProperty18({
|
|
1397
1652
|
example: "2024-01-15T10:30:00Z"
|
|
1398
1653
|
}),
|
|
1399
|
-
|
|
1654
|
+
_ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1400
1655
|
], CommentResponseDto.prototype, "createdAt", void 0);
|
|
1401
|
-
|
|
1402
|
-
|
|
1656
|
+
_ts_decorate28([
|
|
1657
|
+
ApiProperty18({
|
|
1403
1658
|
example: "2024-01-15T10:30:00Z"
|
|
1404
1659
|
}),
|
|
1405
|
-
|
|
1660
|
+
_ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1406
1661
|
], CommentResponseDto.prototype, "updatedAt", void 0);
|
|
1407
1662
|
|
|
1408
1663
|
// dto/comments/comment_tree.dto.ts
|
|
1409
|
-
import { ApiProperty as
|
|
1410
|
-
function
|
|
1664
|
+
import { ApiProperty as ApiProperty19 } from "@nestjs/swagger";
|
|
1665
|
+
function _ts_decorate29(decorators, target, key, desc) {
|
|
1411
1666
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1412
1667
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1413
1668
|
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;
|
|
1414
1669
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1415
1670
|
}
|
|
1416
|
-
__name(
|
|
1417
|
-
function
|
|
1671
|
+
__name(_ts_decorate29, "_ts_decorate");
|
|
1672
|
+
function _ts_metadata29(k, v) {
|
|
1418
1673
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1419
1674
|
}
|
|
1420
|
-
__name(
|
|
1675
|
+
__name(_ts_metadata29, "_ts_metadata");
|
|
1421
1676
|
var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
|
|
1422
1677
|
constructor() {
|
|
1423
1678
|
super(...arguments);
|
|
@@ -1426,28 +1681,28 @@ var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
|
|
|
1426
1681
|
};
|
|
1427
1682
|
__name(_CommentTreeDto, "CommentTreeDto");
|
|
1428
1683
|
var CommentTreeDto = _CommentTreeDto;
|
|
1429
|
-
|
|
1430
|
-
|
|
1684
|
+
_ts_decorate29([
|
|
1685
|
+
ApiProperty19({
|
|
1431
1686
|
type: [
|
|
1432
1687
|
CommentTreeDto
|
|
1433
1688
|
]
|
|
1434
1689
|
}),
|
|
1435
|
-
|
|
1690
|
+
_ts_metadata29("design:type", Array)
|
|
1436
1691
|
], CommentTreeDto.prototype, "replies", void 0);
|
|
1437
1692
|
|
|
1438
1693
|
// dto/comments/paginated_comment.dto.ts
|
|
1439
|
-
import { ApiProperty as
|
|
1440
|
-
function
|
|
1694
|
+
import { ApiProperty as ApiProperty20 } from "@nestjs/swagger";
|
|
1695
|
+
function _ts_decorate30(decorators, target, key, desc) {
|
|
1441
1696
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1442
1697
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1443
1698
|
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;
|
|
1444
1699
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1445
1700
|
}
|
|
1446
|
-
__name(
|
|
1447
|
-
function
|
|
1701
|
+
__name(_ts_decorate30, "_ts_decorate");
|
|
1702
|
+
function _ts_metadata30(k, v) {
|
|
1448
1703
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1449
1704
|
}
|
|
1450
|
-
__name(
|
|
1705
|
+
__name(_ts_metadata30, "_ts_metadata");
|
|
1451
1706
|
var _PaginatedCommentsDto = class _PaginatedCommentsDto {
|
|
1452
1707
|
constructor() {
|
|
1453
1708
|
__publicField(this, "comments");
|
|
@@ -1458,47 +1713,47 @@ var _PaginatedCommentsDto = class _PaginatedCommentsDto {
|
|
|
1458
1713
|
};
|
|
1459
1714
|
__name(_PaginatedCommentsDto, "PaginatedCommentsDto");
|
|
1460
1715
|
var PaginatedCommentsDto = _PaginatedCommentsDto;
|
|
1461
|
-
|
|
1462
|
-
|
|
1716
|
+
_ts_decorate30([
|
|
1717
|
+
ApiProperty20({
|
|
1463
1718
|
type: [
|
|
1464
1719
|
CommentResponseDto
|
|
1465
1720
|
]
|
|
1466
1721
|
}),
|
|
1467
|
-
|
|
1722
|
+
_ts_metadata30("design:type", Array)
|
|
1468
1723
|
], PaginatedCommentsDto.prototype, "comments", void 0);
|
|
1469
|
-
|
|
1470
|
-
|
|
1724
|
+
_ts_decorate30([
|
|
1725
|
+
ApiProperty20({
|
|
1471
1726
|
example: 50
|
|
1472
1727
|
}),
|
|
1473
|
-
|
|
1728
|
+
_ts_metadata30("design:type", Number)
|
|
1474
1729
|
], PaginatedCommentsDto.prototype, "total", void 0);
|
|
1475
|
-
|
|
1476
|
-
|
|
1730
|
+
_ts_decorate30([
|
|
1731
|
+
ApiProperty20({
|
|
1477
1732
|
example: 1
|
|
1478
1733
|
}),
|
|
1479
|
-
|
|
1734
|
+
_ts_metadata30("design:type", Number)
|
|
1480
1735
|
], PaginatedCommentsDto.prototype, "page", void 0);
|
|
1481
|
-
|
|
1482
|
-
|
|
1736
|
+
_ts_decorate30([
|
|
1737
|
+
ApiProperty20({
|
|
1483
1738
|
example: 5
|
|
1484
1739
|
}),
|
|
1485
|
-
|
|
1740
|
+
_ts_metadata30("design:type", Number)
|
|
1486
1741
|
], PaginatedCommentsDto.prototype, "totalPages", void 0);
|
|
1487
1742
|
|
|
1488
1743
|
// dto/comments/update_comment.dto.ts
|
|
1489
|
-
import { ApiProperty as
|
|
1490
|
-
import { IsNotEmpty as IsNotEmpty10, IsString as
|
|
1491
|
-
function
|
|
1744
|
+
import { ApiProperty as ApiProperty21 } from "@nestjs/swagger";
|
|
1745
|
+
import { IsNotEmpty as IsNotEmpty10, IsString as IsString14, MaxLength as MaxLength8, MinLength as MinLength9 } from "class-validator";
|
|
1746
|
+
function _ts_decorate31(decorators, target, key, desc) {
|
|
1492
1747
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1493
1748
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1494
1749
|
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;
|
|
1495
1750
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1496
1751
|
}
|
|
1497
|
-
__name(
|
|
1498
|
-
function
|
|
1752
|
+
__name(_ts_decorate31, "_ts_decorate");
|
|
1753
|
+
function _ts_metadata31(k, v) {
|
|
1499
1754
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1500
1755
|
}
|
|
1501
|
-
__name(
|
|
1756
|
+
__name(_ts_metadata31, "_ts_metadata");
|
|
1502
1757
|
var _UpdateCommentDto = class _UpdateCommentDto {
|
|
1503
1758
|
constructor() {
|
|
1504
1759
|
__publicField(this, "content");
|
|
@@ -1506,18 +1761,18 @@ var _UpdateCommentDto = class _UpdateCommentDto {
|
|
|
1506
1761
|
};
|
|
1507
1762
|
__name(_UpdateCommentDto, "UpdateCommentDto");
|
|
1508
1763
|
var UpdateCommentDto = _UpdateCommentDto;
|
|
1509
|
-
|
|
1510
|
-
|
|
1764
|
+
_ts_decorate31([
|
|
1765
|
+
ApiProperty21({
|
|
1511
1766
|
description: "Updated comment content",
|
|
1512
1767
|
example: "Updated: Great post!",
|
|
1513
1768
|
minLength: 1,
|
|
1514
1769
|
maxLength: 5e3
|
|
1515
1770
|
}),
|
|
1516
|
-
|
|
1771
|
+
IsString14(),
|
|
1517
1772
|
IsNotEmpty10(),
|
|
1518
1773
|
MinLength9(1),
|
|
1519
1774
|
MaxLength8(5e3),
|
|
1520
|
-
|
|
1775
|
+
_ts_metadata31("design:type", String)
|
|
1521
1776
|
], UpdateCommentDto.prototype, "content", void 0);
|
|
1522
1777
|
|
|
1523
1778
|
// dto/comments/comment_fields.dto.ts
|
|
@@ -1542,19 +1797,19 @@ __name(_CommentFields, "CommentFields");
|
|
|
1542
1797
|
var CommentFields = _CommentFields;
|
|
1543
1798
|
|
|
1544
1799
|
// dto/comments/like_comment.dto.ts
|
|
1545
|
-
import { ApiProperty as
|
|
1546
|
-
import { IsEnum as
|
|
1547
|
-
function
|
|
1800
|
+
import { ApiProperty as ApiProperty22 } from "@nestjs/swagger";
|
|
1801
|
+
import { IsEnum as IsEnum7, IsOptional as IsOptional10 } from "class-validator";
|
|
1802
|
+
function _ts_decorate32(decorators, target, key, desc) {
|
|
1548
1803
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1549
1804
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1550
1805
|
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;
|
|
1551
1806
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1552
1807
|
}
|
|
1553
|
-
__name(
|
|
1554
|
-
function
|
|
1808
|
+
__name(_ts_decorate32, "_ts_decorate");
|
|
1809
|
+
function _ts_metadata32(k, v) {
|
|
1555
1810
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1556
1811
|
}
|
|
1557
|
-
__name(
|
|
1812
|
+
__name(_ts_metadata32, "_ts_metadata");
|
|
1558
1813
|
var _LikeCommentDto = class _LikeCommentDto {
|
|
1559
1814
|
constructor() {
|
|
1560
1815
|
__publicField(this, "type");
|
|
@@ -1562,31 +1817,31 @@ var _LikeCommentDto = class _LikeCommentDto {
|
|
|
1562
1817
|
};
|
|
1563
1818
|
__name(_LikeCommentDto, "LikeCommentDto");
|
|
1564
1819
|
var LikeCommentDto = _LikeCommentDto;
|
|
1565
|
-
|
|
1566
|
-
|
|
1820
|
+
_ts_decorate32([
|
|
1821
|
+
ApiProperty22({
|
|
1567
1822
|
description: "The reaction type for the comment",
|
|
1568
1823
|
enum: ReactionType,
|
|
1569
1824
|
required: false,
|
|
1570
1825
|
default: ReactionType.LIKE
|
|
1571
1826
|
}),
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1827
|
+
IsEnum7(ReactionType),
|
|
1828
|
+
IsOptional10(),
|
|
1829
|
+
_ts_metadata32("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1575
1830
|
], LikeCommentDto.prototype, "type", void 0);
|
|
1576
1831
|
|
|
1577
1832
|
// dto/comments/comment_like_response.dto.ts
|
|
1578
|
-
import { ApiProperty as
|
|
1579
|
-
function
|
|
1833
|
+
import { ApiProperty as ApiProperty23 } from "@nestjs/swagger";
|
|
1834
|
+
function _ts_decorate33(decorators, target, key, desc) {
|
|
1580
1835
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1581
1836
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1582
1837
|
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;
|
|
1583
1838
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1584
1839
|
}
|
|
1585
|
-
__name(
|
|
1586
|
-
function
|
|
1840
|
+
__name(_ts_decorate33, "_ts_decorate");
|
|
1841
|
+
function _ts_metadata33(k, v) {
|
|
1587
1842
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1588
1843
|
}
|
|
1589
|
-
__name(
|
|
1844
|
+
__name(_ts_metadata33, "_ts_metadata");
|
|
1590
1845
|
var _CommentLikeResponseDto = class _CommentLikeResponseDto {
|
|
1591
1846
|
constructor() {
|
|
1592
1847
|
__publicField(this, "id");
|
|
@@ -1601,70 +1856,70 @@ var _CommentLikeResponseDto = class _CommentLikeResponseDto {
|
|
|
1601
1856
|
};
|
|
1602
1857
|
__name(_CommentLikeResponseDto, "CommentLikeResponseDto");
|
|
1603
1858
|
var CommentLikeResponseDto = _CommentLikeResponseDto;
|
|
1604
|
-
|
|
1605
|
-
|
|
1859
|
+
_ts_decorate33([
|
|
1860
|
+
ApiProperty23({
|
|
1606
1861
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1607
1862
|
}),
|
|
1608
|
-
|
|
1863
|
+
_ts_metadata33("design:type", String)
|
|
1609
1864
|
], CommentLikeResponseDto.prototype, "id", void 0);
|
|
1610
|
-
|
|
1611
|
-
|
|
1865
|
+
_ts_decorate33([
|
|
1866
|
+
ApiProperty23({
|
|
1612
1867
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1613
1868
|
}),
|
|
1614
|
-
|
|
1869
|
+
_ts_metadata33("design:type", String)
|
|
1615
1870
|
], CommentLikeResponseDto.prototype, "commentId", void 0);
|
|
1616
|
-
|
|
1617
|
-
|
|
1871
|
+
_ts_decorate33([
|
|
1872
|
+
ApiProperty23({
|
|
1618
1873
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1619
1874
|
}),
|
|
1620
|
-
|
|
1875
|
+
_ts_metadata33("design:type", String)
|
|
1621
1876
|
], CommentLikeResponseDto.prototype, "commentatorId", void 0);
|
|
1622
|
-
|
|
1623
|
-
|
|
1877
|
+
_ts_decorate33([
|
|
1878
|
+
ApiProperty23({
|
|
1624
1879
|
example: "Jane Doe"
|
|
1625
1880
|
}),
|
|
1626
|
-
|
|
1881
|
+
_ts_metadata33("design:type", String)
|
|
1627
1882
|
], CommentLikeResponseDto.prototype, "commentatorFullName", void 0);
|
|
1628
|
-
|
|
1629
|
-
|
|
1883
|
+
_ts_decorate33([
|
|
1884
|
+
ApiProperty23({
|
|
1630
1885
|
example: "https://example.com/jane.jpg",
|
|
1631
1886
|
nullable: true
|
|
1632
1887
|
}),
|
|
1633
|
-
|
|
1888
|
+
_ts_metadata33("design:type", Object)
|
|
1634
1889
|
], CommentLikeResponseDto.prototype, "commentatorProfilePictureUrl", void 0);
|
|
1635
|
-
|
|
1636
|
-
|
|
1890
|
+
_ts_decorate33([
|
|
1891
|
+
ApiProperty23({
|
|
1637
1892
|
enum: ReactionType,
|
|
1638
1893
|
example: ReactionType.HEART
|
|
1639
1894
|
}),
|
|
1640
|
-
|
|
1895
|
+
_ts_metadata33("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1641
1896
|
], CommentLikeResponseDto.prototype, "type", void 0);
|
|
1642
|
-
|
|
1643
|
-
|
|
1897
|
+
_ts_decorate33([
|
|
1898
|
+
ApiProperty23({
|
|
1644
1899
|
example: "2024-01-15T10:35:00Z"
|
|
1645
1900
|
}),
|
|
1646
|
-
|
|
1901
|
+
_ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1647
1902
|
], CommentLikeResponseDto.prototype, "createdAt", void 0);
|
|
1648
|
-
|
|
1649
|
-
|
|
1903
|
+
_ts_decorate33([
|
|
1904
|
+
ApiProperty23({
|
|
1650
1905
|
example: "2024-01-15T10:35:00Z"
|
|
1651
1906
|
}),
|
|
1652
|
-
|
|
1907
|
+
_ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1653
1908
|
], CommentLikeResponseDto.prototype, "updatedAt", void 0);
|
|
1654
1909
|
|
|
1655
1910
|
// dto/comments/paginated_comment_likes.dto.ts
|
|
1656
|
-
import { ApiProperty as
|
|
1657
|
-
function
|
|
1911
|
+
import { ApiProperty as ApiProperty24 } from "@nestjs/swagger";
|
|
1912
|
+
function _ts_decorate34(decorators, target, key, desc) {
|
|
1658
1913
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1659
1914
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1660
1915
|
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;
|
|
1661
1916
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1662
1917
|
}
|
|
1663
|
-
__name(
|
|
1664
|
-
function
|
|
1918
|
+
__name(_ts_decorate34, "_ts_decorate");
|
|
1919
|
+
function _ts_metadata34(k, v) {
|
|
1665
1920
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1666
1921
|
}
|
|
1667
|
-
__name(
|
|
1922
|
+
__name(_ts_metadata34, "_ts_metadata");
|
|
1668
1923
|
var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
1669
1924
|
constructor() {
|
|
1670
1925
|
__publicField(this, "likes");
|
|
@@ -1675,31 +1930,31 @@ var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
|
1675
1930
|
};
|
|
1676
1931
|
__name(_PaginatedCommentLikesDto, "PaginatedCommentLikesDto");
|
|
1677
1932
|
var PaginatedCommentLikesDto = _PaginatedCommentLikesDto;
|
|
1678
|
-
|
|
1679
|
-
|
|
1933
|
+
_ts_decorate34([
|
|
1934
|
+
ApiProperty24({
|
|
1680
1935
|
type: [
|
|
1681
1936
|
CommentLikeResponseDto
|
|
1682
1937
|
]
|
|
1683
1938
|
}),
|
|
1684
|
-
|
|
1939
|
+
_ts_metadata34("design:type", Array)
|
|
1685
1940
|
], PaginatedCommentLikesDto.prototype, "likes", void 0);
|
|
1686
|
-
|
|
1687
|
-
|
|
1941
|
+
_ts_decorate34([
|
|
1942
|
+
ApiProperty24({
|
|
1688
1943
|
example: 120
|
|
1689
1944
|
}),
|
|
1690
|
-
|
|
1945
|
+
_ts_metadata34("design:type", Number)
|
|
1691
1946
|
], PaginatedCommentLikesDto.prototype, "total", void 0);
|
|
1692
|
-
|
|
1693
|
-
|
|
1947
|
+
_ts_decorate34([
|
|
1948
|
+
ApiProperty24({
|
|
1694
1949
|
example: 1
|
|
1695
1950
|
}),
|
|
1696
|
-
|
|
1951
|
+
_ts_metadata34("design:type", Number)
|
|
1697
1952
|
], PaginatedCommentLikesDto.prototype, "page", void 0);
|
|
1698
|
-
|
|
1699
|
-
|
|
1953
|
+
_ts_decorate34([
|
|
1954
|
+
ApiProperty24({
|
|
1700
1955
|
example: 6
|
|
1701
1956
|
}),
|
|
1702
|
-
|
|
1957
|
+
_ts_metadata34("design:type", Number)
|
|
1703
1958
|
], PaginatedCommentLikesDto.prototype, "totalPages", void 0);
|
|
1704
1959
|
export {
|
|
1705
1960
|
BusinessSector,
|
|
@@ -1732,6 +1987,7 @@ export {
|
|
|
1732
1987
|
PostLikeResponseDto,
|
|
1733
1988
|
PostResponseDto,
|
|
1734
1989
|
PostResponseSelfDto,
|
|
1990
|
+
ProfessionalProfileResponseDto,
|
|
1735
1991
|
ReactionType,
|
|
1736
1992
|
ReorderDto,
|
|
1737
1993
|
ResetPasswordDto,
|