@feresmeryas/microservices-common 1.5.20 → 1.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +74 -31
- package/dist/index.d.ts +74 -31
- package/dist/index.js +710 -416
- package/dist/index.mjs +771 -482
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __export(index_exports, {
|
|
|
28
28
|
CommentResponseDto: () => CommentResponseDto,
|
|
29
29
|
CommentTreeDto: () => CommentTreeDto,
|
|
30
30
|
CreateCommentDto: () => CreateCommentDto,
|
|
31
|
+
CreateOrGetTagDto: () => CreateOrGetTagDto,
|
|
31
32
|
CreatePostDto: () => CreatePostDto,
|
|
32
33
|
CreatePostFileDto: () => CreatePostFileDto,
|
|
33
34
|
CreateUserDto: () => CreateUserDto,
|
|
@@ -39,6 +40,7 @@ __export(index_exports, {
|
|
|
39
40
|
FindAllUsersDto: () => FindAllUsersDto,
|
|
40
41
|
FindByRoleDto: () => FindByRoleDto,
|
|
41
42
|
ForgotPasswordDto: () => ForgotPasswordDto,
|
|
43
|
+
GetTagsBySectorDto: () => GetTagsBySectorDto,
|
|
42
44
|
LikeCommentDto: () => LikeCommentDto,
|
|
43
45
|
LikePostDto: () => LikePostDto,
|
|
44
46
|
LoginLocalDTO: () => LoginLocalDTO,
|
|
@@ -52,10 +54,13 @@ __export(index_exports, {
|
|
|
52
54
|
PostLikeResponseDto: () => PostLikeResponseDto,
|
|
53
55
|
PostResponseDto: () => PostResponseDto,
|
|
54
56
|
PostResponseSelfDto: () => PostResponseSelfDto,
|
|
57
|
+
ProfessionalProfileResponseDto: () => ProfessionalProfileResponseDto,
|
|
55
58
|
ReactionType: () => ReactionType,
|
|
56
59
|
ReorderDto: () => ReorderDto,
|
|
57
60
|
ResetPasswordDto: () => ResetPasswordDto,
|
|
61
|
+
SearchTagsDto: () => SearchTagsDto,
|
|
58
62
|
SearchUsersByFullNameDTO: () => SearchUsersByFullNameDTO,
|
|
63
|
+
TagResponseDto: () => TagResponseDto,
|
|
59
64
|
UpdateCommentDto: () => UpdateCommentDto,
|
|
60
65
|
UpdatePasswordDto: () => UpdatePasswordDto,
|
|
61
66
|
UpdatePostDto: () => UpdatePostDto,
|
|
@@ -68,6 +73,39 @@ module.exports = __toCommonJS(index_exports);
|
|
|
68
73
|
// dto/users/create_user.dto.ts
|
|
69
74
|
var import_swagger = require("@nestjs/swagger");
|
|
70
75
|
var import_class_validator = require("class-validator");
|
|
76
|
+
|
|
77
|
+
// enums/user-type.enum.ts
|
|
78
|
+
var UserType = /* @__PURE__ */ (function(UserType2) {
|
|
79
|
+
UserType2["DEFAULT"] = "DEFAULT";
|
|
80
|
+
UserType2["PROFESSIONAL"] = "PROFESSIONAL";
|
|
81
|
+
return UserType2;
|
|
82
|
+
})({});
|
|
83
|
+
|
|
84
|
+
// enums/business-sector.enum.ts
|
|
85
|
+
var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
|
|
86
|
+
BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
|
|
87
|
+
BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
|
|
88
|
+
BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
|
|
89
|
+
BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
|
|
90
|
+
BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
|
|
91
|
+
BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
|
|
92
|
+
BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
|
|
93
|
+
BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
|
|
94
|
+
BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
|
|
95
|
+
BusinessSector2["LEGAL"] = "Legal Services";
|
|
96
|
+
BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
|
|
97
|
+
BusinessSector2["CONSULTING"] = "Business Consulting";
|
|
98
|
+
BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
|
|
99
|
+
BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
|
|
100
|
+
BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
|
|
101
|
+
BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
|
|
102
|
+
BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
|
|
103
|
+
BusinessSector2["REAL_ESTATE"] = "Real Estate";
|
|
104
|
+
BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
|
|
105
|
+
return BusinessSector2;
|
|
106
|
+
})({});
|
|
107
|
+
|
|
108
|
+
// dto/users/create_user.dto.ts
|
|
71
109
|
function _ts_decorate(decorators, target, key, desc) {
|
|
72
110
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
73
111
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -85,6 +123,15 @@ var _CreateUserDto = class _CreateUserDto {
|
|
|
85
123
|
__publicField(this, "fullName");
|
|
86
124
|
__publicField(this, "password");
|
|
87
125
|
__publicField(this, "confirmPassword");
|
|
126
|
+
__publicField(this, "userType");
|
|
127
|
+
// Professional fields - required only when userType is PROFESSIONAL
|
|
128
|
+
__publicField(this, "businessSector");
|
|
129
|
+
__publicField(this, "bio");
|
|
130
|
+
__publicField(this, "companyName");
|
|
131
|
+
__publicField(this, "website");
|
|
132
|
+
__publicField(this, "phone");
|
|
133
|
+
__publicField(this, "location");
|
|
134
|
+
__publicField(this, "yearsOfExperience");
|
|
88
135
|
}
|
|
89
136
|
};
|
|
90
137
|
__name(_CreateUserDto, "CreateUserDto");
|
|
@@ -125,6 +172,86 @@ _ts_decorate([
|
|
|
125
172
|
(0, import_class_validator.MinLength)(6),
|
|
126
173
|
_ts_metadata("design:type", String)
|
|
127
174
|
], CreateUserDto.prototype, "confirmPassword", void 0);
|
|
175
|
+
_ts_decorate([
|
|
176
|
+
(0, import_swagger.ApiProperty)({
|
|
177
|
+
enum: UserType,
|
|
178
|
+
example: UserType.DEFAULT,
|
|
179
|
+
description: "The type of user account",
|
|
180
|
+
default: UserType.DEFAULT
|
|
181
|
+
}),
|
|
182
|
+
(0, import_class_validator.IsEnum)(UserType),
|
|
183
|
+
(0, import_class_validator.IsNotEmpty)(),
|
|
184
|
+
_ts_metadata("design:type", typeof UserType === "undefined" ? Object : UserType)
|
|
185
|
+
], CreateUserDto.prototype, "userType", void 0);
|
|
186
|
+
_ts_decorate([
|
|
187
|
+
(0, import_swagger.ApiPropertyOptional)({
|
|
188
|
+
enum: BusinessSector,
|
|
189
|
+
example: BusinessSector.IT_SOFTWARE,
|
|
190
|
+
description: "Business sector (required for professional accounts)"
|
|
191
|
+
}),
|
|
192
|
+
(0, import_class_validator.ValidateIf)((o) => o.userType === UserType.PROFESSIONAL),
|
|
193
|
+
(0, import_class_validator.IsEnum)(BusinessSector),
|
|
194
|
+
(0, import_class_validator.IsNotEmpty)(),
|
|
195
|
+
_ts_metadata("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
196
|
+
], CreateUserDto.prototype, "businessSector", void 0);
|
|
197
|
+
_ts_decorate([
|
|
198
|
+
(0, import_swagger.ApiPropertyOptional)({
|
|
199
|
+
example: "Experienced software developer specializing in web applications",
|
|
200
|
+
description: "Professional bio"
|
|
201
|
+
}),
|
|
202
|
+
(0, import_class_validator.IsOptional)(),
|
|
203
|
+
(0, import_class_validator.IsString)(),
|
|
204
|
+
(0, import_class_validator.MaxLength)(1e3),
|
|
205
|
+
_ts_metadata("design:type", String)
|
|
206
|
+
], CreateUserDto.prototype, "bio", void 0);
|
|
207
|
+
_ts_decorate([
|
|
208
|
+
(0, import_swagger.ApiPropertyOptional)({
|
|
209
|
+
example: "Tech Solutions Inc.",
|
|
210
|
+
description: "Company name"
|
|
211
|
+
}),
|
|
212
|
+
(0, import_class_validator.IsOptional)(),
|
|
213
|
+
(0, import_class_validator.IsString)(),
|
|
214
|
+
(0, import_class_validator.MaxLength)(200),
|
|
215
|
+
_ts_metadata("design:type", String)
|
|
216
|
+
], CreateUserDto.prototype, "companyName", void 0);
|
|
217
|
+
_ts_decorate([
|
|
218
|
+
(0, import_swagger.ApiPropertyOptional)({
|
|
219
|
+
example: "https://www.example.com",
|
|
220
|
+
description: "Professional website URL"
|
|
221
|
+
}),
|
|
222
|
+
(0, import_class_validator.IsOptional)(),
|
|
223
|
+
(0, import_class_validator.IsUrl)(),
|
|
224
|
+
_ts_metadata("design:type", String)
|
|
225
|
+
], CreateUserDto.prototype, "website", void 0);
|
|
226
|
+
_ts_decorate([
|
|
227
|
+
(0, import_swagger.ApiPropertyOptional)({
|
|
228
|
+
example: "+1234567890",
|
|
229
|
+
description: "Contact phone number"
|
|
230
|
+
}),
|
|
231
|
+
(0, import_class_validator.IsOptional)(),
|
|
232
|
+
(0, import_class_validator.IsString)(),
|
|
233
|
+
_ts_metadata("design:type", String)
|
|
234
|
+
], CreateUserDto.prototype, "phone", void 0);
|
|
235
|
+
_ts_decorate([
|
|
236
|
+
(0, import_swagger.ApiPropertyOptional)({
|
|
237
|
+
example: "New York, USA",
|
|
238
|
+
description: "Location/City"
|
|
239
|
+
}),
|
|
240
|
+
(0, import_class_validator.IsOptional)(),
|
|
241
|
+
(0, import_class_validator.IsString)(),
|
|
242
|
+
(0, import_class_validator.MaxLength)(200),
|
|
243
|
+
_ts_metadata("design:type", String)
|
|
244
|
+
], CreateUserDto.prototype, "location", void 0);
|
|
245
|
+
_ts_decorate([
|
|
246
|
+
(0, import_swagger.ApiPropertyOptional)({
|
|
247
|
+
example: 5,
|
|
248
|
+
description: "Years of professional experience"
|
|
249
|
+
}),
|
|
250
|
+
(0, import_class_validator.IsOptional)(),
|
|
251
|
+
(0, import_class_validator.IsInt)(),
|
|
252
|
+
(0, import_class_validator.Min)(0),
|
|
253
|
+
_ts_metadata("design:type", Number)
|
|
254
|
+
], CreateUserDto.prototype, "yearsOfExperience", void 0);
|
|
128
255
|
|
|
129
256
|
// dto/users/create_user_firebase.dto.ts
|
|
130
257
|
var import_swagger2 = require("@nestjs/swagger");
|
|
@@ -446,33 +573,192 @@ _ts_decorate10([
|
|
|
446
573
|
], UpdatePasswordDto.prototype, "confirmNewPassword", void 0);
|
|
447
574
|
|
|
448
575
|
// dto/users/user_response.dto.ts
|
|
576
|
+
var import_swagger5 = require("@nestjs/swagger");
|
|
577
|
+
function _ts_decorate11(decorators, target, key, desc) {
|
|
578
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
579
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
580
|
+
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;
|
|
581
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
582
|
+
}
|
|
583
|
+
__name(_ts_decorate11, "_ts_decorate");
|
|
584
|
+
function _ts_metadata11(k, v) {
|
|
585
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
586
|
+
}
|
|
587
|
+
__name(_ts_metadata11, "_ts_metadata");
|
|
449
588
|
var _UserResponseDto = class _UserResponseDto {
|
|
450
589
|
constructor() {
|
|
451
590
|
__publicField(this, "id");
|
|
591
|
+
__publicField(this, "email");
|
|
452
592
|
__publicField(this, "fullName");
|
|
453
593
|
__publicField(this, "profilePictureUrl");
|
|
454
|
-
__publicField(this, "
|
|
594
|
+
__publicField(this, "userType");
|
|
455
595
|
__publicField(this, "createdAt");
|
|
456
596
|
__publicField(this, "updatedAt");
|
|
457
597
|
__publicField(this, "role");
|
|
598
|
+
__publicField(this, "professionalProfile");
|
|
458
599
|
}
|
|
459
600
|
};
|
|
460
601
|
__name(_UserResponseDto, "UserResponseDto");
|
|
461
602
|
var UserResponseDto = _UserResponseDto;
|
|
603
|
+
_ts_decorate11([
|
|
604
|
+
(0, import_swagger5.ApiProperty)({
|
|
605
|
+
example: "uuid-string"
|
|
606
|
+
}),
|
|
607
|
+
_ts_metadata11("design:type", String)
|
|
608
|
+
], UserResponseDto.prototype, "id", void 0);
|
|
609
|
+
_ts_decorate11([
|
|
610
|
+
(0, import_swagger5.ApiProperty)({
|
|
611
|
+
example: "user@example.com"
|
|
612
|
+
}),
|
|
613
|
+
_ts_metadata11("design:type", String)
|
|
614
|
+
], UserResponseDto.prototype, "email", void 0);
|
|
615
|
+
_ts_decorate11([
|
|
616
|
+
(0, import_swagger5.ApiProperty)({
|
|
617
|
+
example: "John Doe"
|
|
618
|
+
}),
|
|
619
|
+
_ts_metadata11("design:type", String)
|
|
620
|
+
], UserResponseDto.prototype, "fullName", void 0);
|
|
621
|
+
_ts_decorate11([
|
|
622
|
+
(0, import_swagger5.ApiPropertyOptional)({
|
|
623
|
+
example: "https://example.com/profile.jpg"
|
|
624
|
+
}),
|
|
625
|
+
_ts_metadata11("design:type", Object)
|
|
626
|
+
], UserResponseDto.prototype, "profilePictureUrl", void 0);
|
|
627
|
+
_ts_decorate11([
|
|
628
|
+
(0, import_swagger5.ApiProperty)({
|
|
629
|
+
enum: UserType,
|
|
630
|
+
example: UserType.DEFAULT
|
|
631
|
+
}),
|
|
632
|
+
_ts_metadata11("design:type", typeof UserType === "undefined" ? Object : UserType)
|
|
633
|
+
], UserResponseDto.prototype, "userType", void 0);
|
|
634
|
+
_ts_decorate11([
|
|
635
|
+
(0, import_swagger5.ApiProperty)(),
|
|
636
|
+
_ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
|
|
637
|
+
], UserResponseDto.prototype, "createdAt", void 0);
|
|
638
|
+
_ts_decorate11([
|
|
639
|
+
(0, import_swagger5.ApiProperty)(),
|
|
640
|
+
_ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
|
|
641
|
+
], UserResponseDto.prototype, "updatedAt", void 0);
|
|
642
|
+
_ts_decorate11([
|
|
643
|
+
(0, import_swagger5.ApiProperty)({
|
|
644
|
+
example: {
|
|
645
|
+
name: "DEFAULT"
|
|
646
|
+
}
|
|
647
|
+
}),
|
|
648
|
+
_ts_metadata11("design:type", Object)
|
|
649
|
+
], UserResponseDto.prototype, "role", void 0);
|
|
650
|
+
_ts_decorate11([
|
|
651
|
+
(0, import_swagger5.ApiPropertyOptional)(),
|
|
652
|
+
_ts_metadata11("design:type", typeof ProfessionalProfileResponseDto === "undefined" ? Object : ProfessionalProfileResponseDto)
|
|
653
|
+
], UserResponseDto.prototype, "professionalProfile", void 0);
|
|
654
|
+
var _ProfessionalProfileResponseDto = class _ProfessionalProfileResponseDto {
|
|
655
|
+
constructor() {
|
|
656
|
+
__publicField(this, "id");
|
|
657
|
+
__publicField(this, "businessSector");
|
|
658
|
+
__publicField(this, "bio");
|
|
659
|
+
__publicField(this, "companyName");
|
|
660
|
+
__publicField(this, "website");
|
|
661
|
+
__publicField(this, "phone");
|
|
662
|
+
__publicField(this, "location");
|
|
663
|
+
__publicField(this, "yearsOfExperience");
|
|
664
|
+
__publicField(this, "isVerified");
|
|
665
|
+
__publicField(this, "hourlyRate");
|
|
666
|
+
__publicField(this, "availabilityStatus");
|
|
667
|
+
__publicField(this, "createdAt");
|
|
668
|
+
__publicField(this, "updatedAt");
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
__name(_ProfessionalProfileResponseDto, "ProfessionalProfileResponseDto");
|
|
672
|
+
var ProfessionalProfileResponseDto = _ProfessionalProfileResponseDto;
|
|
673
|
+
_ts_decorate11([
|
|
674
|
+
(0, import_swagger5.ApiProperty)({
|
|
675
|
+
example: "uuid-string"
|
|
676
|
+
}),
|
|
677
|
+
_ts_metadata11("design:type", String)
|
|
678
|
+
], ProfessionalProfileResponseDto.prototype, "id", void 0);
|
|
679
|
+
_ts_decorate11([
|
|
680
|
+
(0, import_swagger5.ApiProperty)({
|
|
681
|
+
enum: BusinessSector,
|
|
682
|
+
example: BusinessSector.IT_SOFTWARE
|
|
683
|
+
}),
|
|
684
|
+
_ts_metadata11("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
685
|
+
], ProfessionalProfileResponseDto.prototype, "businessSector", void 0);
|
|
686
|
+
_ts_decorate11([
|
|
687
|
+
(0, import_swagger5.ApiPropertyOptional)({
|
|
688
|
+
example: "Experienced developer..."
|
|
689
|
+
}),
|
|
690
|
+
_ts_metadata11("design:type", Object)
|
|
691
|
+
], ProfessionalProfileResponseDto.prototype, "bio", void 0);
|
|
692
|
+
_ts_decorate11([
|
|
693
|
+
(0, import_swagger5.ApiPropertyOptional)({
|
|
694
|
+
example: "Tech Solutions Inc."
|
|
695
|
+
}),
|
|
696
|
+
_ts_metadata11("design:type", Object)
|
|
697
|
+
], ProfessionalProfileResponseDto.prototype, "companyName", void 0);
|
|
698
|
+
_ts_decorate11([
|
|
699
|
+
(0, import_swagger5.ApiPropertyOptional)({
|
|
700
|
+
example: "https://www.example.com"
|
|
701
|
+
}),
|
|
702
|
+
_ts_metadata11("design:type", Object)
|
|
703
|
+
], ProfessionalProfileResponseDto.prototype, "website", void 0);
|
|
704
|
+
_ts_decorate11([
|
|
705
|
+
(0, import_swagger5.ApiPropertyOptional)({
|
|
706
|
+
example: "+1234567890"
|
|
707
|
+
}),
|
|
708
|
+
_ts_metadata11("design:type", Object)
|
|
709
|
+
], ProfessionalProfileResponseDto.prototype, "phone", void 0);
|
|
710
|
+
_ts_decorate11([
|
|
711
|
+
(0, import_swagger5.ApiPropertyOptional)({
|
|
712
|
+
example: "New York, USA"
|
|
713
|
+
}),
|
|
714
|
+
_ts_metadata11("design:type", Object)
|
|
715
|
+
], ProfessionalProfileResponseDto.prototype, "location", void 0);
|
|
716
|
+
_ts_decorate11([
|
|
717
|
+
(0, import_swagger5.ApiPropertyOptional)({
|
|
718
|
+
example: 5
|
|
719
|
+
}),
|
|
720
|
+
_ts_metadata11("design:type", Object)
|
|
721
|
+
], ProfessionalProfileResponseDto.prototype, "yearsOfExperience", void 0);
|
|
722
|
+
_ts_decorate11([
|
|
723
|
+
(0, import_swagger5.ApiProperty)({
|
|
724
|
+
example: false
|
|
725
|
+
}),
|
|
726
|
+
_ts_metadata11("design:type", Boolean)
|
|
727
|
+
], ProfessionalProfileResponseDto.prototype, "isVerified", void 0);
|
|
728
|
+
_ts_decorate11([
|
|
729
|
+
(0, import_swagger5.ApiPropertyOptional)({
|
|
730
|
+
example: 75.5
|
|
731
|
+
}),
|
|
732
|
+
_ts_metadata11("design:type", Object)
|
|
733
|
+
], ProfessionalProfileResponseDto.prototype, "hourlyRate", void 0);
|
|
734
|
+
_ts_decorate11([
|
|
735
|
+
(0, import_swagger5.ApiProperty)({
|
|
736
|
+
example: "available"
|
|
737
|
+
}),
|
|
738
|
+
_ts_metadata11("design:type", String)
|
|
739
|
+
], ProfessionalProfileResponseDto.prototype, "availabilityStatus", void 0);
|
|
740
|
+
_ts_decorate11([
|
|
741
|
+
(0, import_swagger5.ApiProperty)(),
|
|
742
|
+
_ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
|
|
743
|
+
], ProfessionalProfileResponseDto.prototype, "createdAt", void 0);
|
|
744
|
+
_ts_decorate11([
|
|
745
|
+
(0, import_swagger5.ApiProperty)(),
|
|
746
|
+
_ts_metadata11("design:type", typeof Date === "undefined" ? Object : Date)
|
|
747
|
+
], ProfessionalProfileResponseDto.prototype, "updatedAt", void 0);
|
|
462
748
|
|
|
463
749
|
// dto/users/search_users_by_full_name.dto.ts
|
|
464
750
|
var import_class_validator11 = require("class-validator");
|
|
465
|
-
function
|
|
751
|
+
function _ts_decorate12(decorators, target, key, desc) {
|
|
466
752
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
467
753
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
468
754
|
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;
|
|
469
755
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
470
756
|
}
|
|
471
|
-
__name(
|
|
472
|
-
function
|
|
757
|
+
__name(_ts_decorate12, "_ts_decorate");
|
|
758
|
+
function _ts_metadata12(k, v) {
|
|
473
759
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
474
760
|
}
|
|
475
|
-
__name(
|
|
761
|
+
__name(_ts_metadata12, "_ts_metadata");
|
|
476
762
|
var _SearchUsersByFullNameDTO = class _SearchUsersByFullNameDTO extends FindAllUsersDto {
|
|
477
763
|
constructor() {
|
|
478
764
|
super(...arguments);
|
|
@@ -481,25 +767,25 @@ var _SearchUsersByFullNameDTO = class _SearchUsersByFullNameDTO extends FindAllU
|
|
|
481
767
|
};
|
|
482
768
|
__name(_SearchUsersByFullNameDTO, "SearchUsersByFullNameDTO");
|
|
483
769
|
var SearchUsersByFullNameDTO = _SearchUsersByFullNameDTO;
|
|
484
|
-
|
|
770
|
+
_ts_decorate12([
|
|
485
771
|
(0, import_class_validator11.IsString)(),
|
|
486
772
|
(0, import_class_validator11.IsOptional)(),
|
|
487
|
-
|
|
773
|
+
_ts_metadata12("design:type", String)
|
|
488
774
|
], SearchUsersByFullNameDTO.prototype, "fullName", void 0);
|
|
489
775
|
|
|
490
776
|
// dto/storage/delete-file.dto.ts
|
|
491
777
|
var import_class_validator12 = require("class-validator");
|
|
492
|
-
function
|
|
778
|
+
function _ts_decorate13(decorators, target, key, desc) {
|
|
493
779
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
494
780
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
495
781
|
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;
|
|
496
782
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
497
783
|
}
|
|
498
|
-
__name(
|
|
499
|
-
function
|
|
784
|
+
__name(_ts_decorate13, "_ts_decorate");
|
|
785
|
+
function _ts_metadata13(k, v) {
|
|
500
786
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
501
787
|
}
|
|
502
|
-
__name(
|
|
788
|
+
__name(_ts_metadata13, "_ts_metadata");
|
|
503
789
|
var _DeleteFileDto = class _DeleteFileDto {
|
|
504
790
|
constructor() {
|
|
505
791
|
__publicField(this, "fileUrl");
|
|
@@ -507,10 +793,10 @@ var _DeleteFileDto = class _DeleteFileDto {
|
|
|
507
793
|
};
|
|
508
794
|
__name(_DeleteFileDto, "DeleteFileDto");
|
|
509
795
|
var DeleteFileDto = _DeleteFileDto;
|
|
510
|
-
|
|
796
|
+
_ts_decorate13([
|
|
511
797
|
(0, import_class_validator12.IsString)(),
|
|
512
798
|
(0, import_class_validator12.IsNotEmpty)(),
|
|
513
|
-
|
|
799
|
+
_ts_metadata13("design:type", String)
|
|
514
800
|
], DeleteFileDto.prototype, "fileUrl", void 0);
|
|
515
801
|
|
|
516
802
|
// dto/storage/file-response.dto.ts
|
|
@@ -528,17 +814,17 @@ var FileResponseDto = _FileResponseDto;
|
|
|
528
814
|
|
|
529
815
|
// dto/storage/upload-file.dto.ts
|
|
530
816
|
var import_class_validator13 = require("class-validator");
|
|
531
|
-
function
|
|
817
|
+
function _ts_decorate14(decorators, target, key, desc) {
|
|
532
818
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
533
819
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
534
820
|
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;
|
|
535
821
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
536
822
|
}
|
|
537
|
-
__name(
|
|
538
|
-
function
|
|
823
|
+
__name(_ts_decorate14, "_ts_decorate");
|
|
824
|
+
function _ts_metadata14(k, v) {
|
|
539
825
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
540
826
|
}
|
|
541
|
-
__name(
|
|
827
|
+
__name(_ts_metadata14, "_ts_metadata");
|
|
542
828
|
var FileCategory = /* @__PURE__ */ (function(FileCategory2) {
|
|
543
829
|
FileCategory2["PROFILE_PICTURES"] = "profile-pictures";
|
|
544
830
|
FileCategory2["POST_IMAGES"] = "post-images";
|
|
@@ -560,24 +846,24 @@ var _UploadFileDto = class _UploadFileDto {
|
|
|
560
846
|
};
|
|
561
847
|
__name(_UploadFileDto, "UploadFileDto");
|
|
562
848
|
var UploadFileDto = _UploadFileDto;
|
|
563
|
-
|
|
849
|
+
_ts_decorate14([
|
|
564
850
|
(0, import_class_validator13.IsString)(),
|
|
565
851
|
(0, import_class_validator13.IsNotEmpty)(),
|
|
566
|
-
|
|
852
|
+
_ts_metadata14("design:type", String)
|
|
567
853
|
], UploadFileDto.prototype, "userId", void 0);
|
|
568
|
-
|
|
854
|
+
_ts_decorate14([
|
|
569
855
|
(0, import_class_validator13.IsEnum)(FileCategory),
|
|
570
|
-
|
|
856
|
+
_ts_metadata14("design:type", String)
|
|
571
857
|
], UploadFileDto.prototype, "category", void 0);
|
|
572
|
-
|
|
858
|
+
_ts_decorate14([
|
|
573
859
|
(0, import_class_validator13.IsString)(),
|
|
574
860
|
(0, import_class_validator13.IsNotEmpty)(),
|
|
575
|
-
|
|
861
|
+
_ts_metadata14("design:type", String)
|
|
576
862
|
], UploadFileDto.prototype, "fileName", void 0);
|
|
577
|
-
|
|
863
|
+
_ts_decorate14([
|
|
578
864
|
(0, import_class_validator13.IsString)(),
|
|
579
865
|
(0, import_class_validator13.IsOptional)(),
|
|
580
|
-
|
|
866
|
+
_ts_metadata14("design:type", String)
|
|
581
867
|
], UploadFileDto.prototype, "mimeType", void 0);
|
|
582
868
|
|
|
583
869
|
// dto/shared/reaction_type.enum.ts
|
|
@@ -591,23 +877,23 @@ var ReactionType = /* @__PURE__ */ (function(ReactionType2) {
|
|
|
591
877
|
})({});
|
|
592
878
|
|
|
593
879
|
// dto/posts/create_post.dto.ts
|
|
594
|
-
var
|
|
880
|
+
var import_swagger7 = require("@nestjs/swagger");
|
|
595
881
|
var import_class_validator15 = require("class-validator");
|
|
596
882
|
|
|
597
883
|
// dto/posts/create_post._file.dto.ts
|
|
598
884
|
var import_class_validator14 = require("class-validator");
|
|
599
|
-
var
|
|
600
|
-
function
|
|
885
|
+
var import_swagger6 = require("@nestjs/swagger");
|
|
886
|
+
function _ts_decorate15(decorators, target, key, desc) {
|
|
601
887
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
602
888
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
603
889
|
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;
|
|
604
890
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
605
891
|
}
|
|
606
|
-
__name(
|
|
607
|
-
function
|
|
892
|
+
__name(_ts_decorate15, "_ts_decorate");
|
|
893
|
+
function _ts_metadata15(k, v) {
|
|
608
894
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
609
895
|
}
|
|
610
|
-
__name(
|
|
896
|
+
__name(_ts_metadata15, "_ts_metadata");
|
|
611
897
|
var _CreatePostFileDto = class _CreatePostFileDto {
|
|
612
898
|
constructor() {
|
|
613
899
|
__publicField(this, "fileBuffer");
|
|
@@ -618,36 +904,36 @@ var _CreatePostFileDto = class _CreatePostFileDto {
|
|
|
618
904
|
};
|
|
619
905
|
__name(_CreatePostFileDto, "CreatePostFileDto");
|
|
620
906
|
var CreatePostFileDto = _CreatePostFileDto;
|
|
621
|
-
|
|
622
|
-
(0,
|
|
907
|
+
_ts_decorate15([
|
|
908
|
+
(0, import_swagger6.ApiProperty)({
|
|
623
909
|
description: "Base64 encoded file",
|
|
624
910
|
example: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
|
|
625
911
|
}),
|
|
626
912
|
(0, import_class_validator14.IsString)(),
|
|
627
913
|
(0, import_class_validator14.IsNotEmpty)(),
|
|
628
|
-
|
|
914
|
+
_ts_metadata15("design:type", String)
|
|
629
915
|
], CreatePostFileDto.prototype, "fileBuffer", void 0);
|
|
630
|
-
|
|
631
|
-
(0,
|
|
916
|
+
_ts_decorate15([
|
|
917
|
+
(0, import_swagger6.ApiProperty)({
|
|
632
918
|
description: "File name",
|
|
633
919
|
example: "vacation-photo.jpg"
|
|
634
920
|
}),
|
|
635
921
|
(0, import_class_validator14.IsString)(),
|
|
636
922
|
(0, import_class_validator14.IsNotEmpty)(),
|
|
637
|
-
|
|
923
|
+
_ts_metadata15("design:type", String)
|
|
638
924
|
], CreatePostFileDto.prototype, "fileName", void 0);
|
|
639
|
-
|
|
640
|
-
(0,
|
|
925
|
+
_ts_decorate15([
|
|
926
|
+
(0, import_swagger6.ApiProperty)({
|
|
641
927
|
description: "MIME type",
|
|
642
928
|
example: "image/jpeg",
|
|
643
929
|
required: false
|
|
644
930
|
}),
|
|
645
931
|
(0, import_class_validator14.IsString)(),
|
|
646
932
|
(0, import_class_validator14.IsOptional)(),
|
|
647
|
-
|
|
933
|
+
_ts_metadata15("design:type", String)
|
|
648
934
|
], CreatePostFileDto.prototype, "mimeType", void 0);
|
|
649
|
-
|
|
650
|
-
(0,
|
|
935
|
+
_ts_decorate15([
|
|
936
|
+
(0, import_swagger6.ApiProperty)({
|
|
651
937
|
description: "File type",
|
|
652
938
|
example: "image",
|
|
653
939
|
enum: [
|
|
@@ -657,48 +943,22 @@ _ts_decorate14([
|
|
|
657
943
|
}),
|
|
658
944
|
(0, import_class_validator14.IsString)(),
|
|
659
945
|
(0, import_class_validator14.IsNotEmpty)(),
|
|
660
|
-
|
|
946
|
+
_ts_metadata15("design:type", String)
|
|
661
947
|
], CreatePostFileDto.prototype, "fileType", void 0);
|
|
662
948
|
|
|
663
949
|
// dto/posts/create_post.dto.ts
|
|
664
950
|
var import_class_transformer3 = require("class-transformer");
|
|
665
|
-
|
|
666
|
-
// enums/business-sector.enum.ts
|
|
667
|
-
var BusinessSector = /* @__PURE__ */ (function(BusinessSector2) {
|
|
668
|
-
BusinessSector2["IT_SOFTWARE"] = "IT & Software Development";
|
|
669
|
-
BusinessSector2["DATA_ANALYTICS"] = "Data Science & Analytics";
|
|
670
|
-
BusinessSector2["ENGINEERING"] = "Engineering & Architecture";
|
|
671
|
-
BusinessSector2["DESIGN_CREATIVE"] = "Design & Creative";
|
|
672
|
-
BusinessSector2["WRITING_TRANSLATION"] = "Writing & Translation";
|
|
673
|
-
BusinessSector2["VIDEO_ANIMATION"] = "Video & Animation";
|
|
674
|
-
BusinessSector2["AUDIO_MUSIC"] = "Music & Audio";
|
|
675
|
-
BusinessSector2["MARKETING_SALES"] = "Marketing & Sales";
|
|
676
|
-
BusinessSector2["FINANCE_ACCOUNTING"] = "Finance & Accounting";
|
|
677
|
-
BusinessSector2["LEGAL"] = "Legal Services";
|
|
678
|
-
BusinessSector2["HR_RECRUITING"] = "HR & Recruiting";
|
|
679
|
-
BusinessSector2["CONSULTING"] = "Business Consulting";
|
|
680
|
-
BusinessSector2["ADMIN_SUPPORT"] = "Admin & Customer Support";
|
|
681
|
-
BusinessSector2["TRADES_CRAFTSMANSHIP"] = "Trades & Craftsmanship";
|
|
682
|
-
BusinessSector2["HEALTH_WELLNESS"] = "Health & Wellness";
|
|
683
|
-
BusinessSector2["EDUCATION_TRAINING"] = "Education & Training";
|
|
684
|
-
BusinessSector2["EVENTS_LIFESTYLE"] = "Events & Lifestyle";
|
|
685
|
-
BusinessSector2["REAL_ESTATE"] = "Real Estate";
|
|
686
|
-
BusinessSector2["LOGISTICS_OPERATIONS"] = "Logistics & Operations";
|
|
687
|
-
return BusinessSector2;
|
|
688
|
-
})({});
|
|
689
|
-
|
|
690
|
-
// dto/posts/create_post.dto.ts
|
|
691
|
-
function _ts_decorate15(decorators, target, key, desc) {
|
|
951
|
+
function _ts_decorate16(decorators, target, key, desc) {
|
|
692
952
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
693
953
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
694
954
|
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;
|
|
695
955
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
696
956
|
}
|
|
697
|
-
__name(
|
|
698
|
-
function
|
|
957
|
+
__name(_ts_decorate16, "_ts_decorate");
|
|
958
|
+
function _ts_metadata16(k, v) {
|
|
699
959
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
700
960
|
}
|
|
701
|
-
__name(
|
|
961
|
+
__name(_ts_metadata16, "_ts_metadata");
|
|
702
962
|
var _CreatePostDto = class _CreatePostDto {
|
|
703
963
|
constructor() {
|
|
704
964
|
__publicField(this, "description");
|
|
@@ -708,8 +968,8 @@ var _CreatePostDto = class _CreatePostDto {
|
|
|
708
968
|
};
|
|
709
969
|
__name(_CreatePostDto, "CreatePostDto");
|
|
710
970
|
var CreatePostDto = _CreatePostDto;
|
|
711
|
-
|
|
712
|
-
(0,
|
|
971
|
+
_ts_decorate16([
|
|
972
|
+
(0, import_swagger7.ApiProperty)({
|
|
713
973
|
description: "Post description/content",
|
|
714
974
|
example: "Check out this amazing view!",
|
|
715
975
|
minLength: 1,
|
|
@@ -719,20 +979,20 @@ _ts_decorate15([
|
|
|
719
979
|
(0, import_class_validator15.IsNotEmpty)(),
|
|
720
980
|
(0, import_class_validator15.MinLength)(1),
|
|
721
981
|
(0, import_class_validator15.MaxLength)(5e3),
|
|
722
|
-
|
|
982
|
+
_ts_metadata16("design:type", String)
|
|
723
983
|
], CreatePostDto.prototype, "description", void 0);
|
|
724
|
-
|
|
725
|
-
(0,
|
|
726
|
-
description: "The business sector for the post",
|
|
984
|
+
_ts_decorate16([
|
|
985
|
+
(0, import_swagger7.ApiProperty)({
|
|
986
|
+
description: "The business sector for the post",
|
|
727
987
|
enum: BusinessSector,
|
|
728
988
|
required: true,
|
|
729
989
|
default: BusinessSector.CONSULTING
|
|
730
990
|
}),
|
|
731
991
|
(0, import_class_validator15.IsEnum)(BusinessSector),
|
|
732
|
-
|
|
992
|
+
_ts_metadata16("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
733
993
|
], CreatePostDto.prototype, "sector", void 0);
|
|
734
|
-
|
|
735
|
-
(0,
|
|
994
|
+
_ts_decorate16([
|
|
995
|
+
(0, import_swagger7.ApiProperty)({
|
|
736
996
|
description: "Array of files to upload with the post",
|
|
737
997
|
type: [
|
|
738
998
|
CreatePostFileDto
|
|
@@ -745,25 +1005,25 @@ _ts_decorate15([
|
|
|
745
1005
|
}),
|
|
746
1006
|
(0, import_class_transformer3.Type)(() => CreatePostFileDto),
|
|
747
1007
|
(0, import_class_validator15.IsOptional)(),
|
|
748
|
-
|
|
1008
|
+
_ts_metadata16("design:type", Array)
|
|
749
1009
|
], CreatePostDto.prototype, "files", void 0);
|
|
750
1010
|
|
|
751
1011
|
// dto/posts/post_response.dto.ts
|
|
752
|
-
var
|
|
1012
|
+
var import_swagger10 = require("@nestjs/swagger");
|
|
753
1013
|
|
|
754
1014
|
// dto/posts/post_file.dto.ts
|
|
755
|
-
var
|
|
756
|
-
function
|
|
1015
|
+
var import_swagger8 = require("@nestjs/swagger");
|
|
1016
|
+
function _ts_decorate17(decorators, target, key, desc) {
|
|
757
1017
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
758
1018
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
759
1019
|
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;
|
|
760
1020
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
761
1021
|
}
|
|
762
|
-
__name(
|
|
763
|
-
function
|
|
1022
|
+
__name(_ts_decorate17, "_ts_decorate");
|
|
1023
|
+
function _ts_metadata17(k, v) {
|
|
764
1024
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
765
1025
|
}
|
|
766
|
-
__name(
|
|
1026
|
+
__name(_ts_metadata17, "_ts_metadata");
|
|
767
1027
|
var _PostFileDto = class _PostFileDto {
|
|
768
1028
|
constructor() {
|
|
769
1029
|
__publicField(this, "id");
|
|
@@ -776,64 +1036,64 @@ var _PostFileDto = class _PostFileDto {
|
|
|
776
1036
|
};
|
|
777
1037
|
__name(_PostFileDto, "PostFileDto");
|
|
778
1038
|
var PostFileDto = _PostFileDto;
|
|
779
|
-
|
|
780
|
-
(0,
|
|
1039
|
+
_ts_decorate17([
|
|
1040
|
+
(0, import_swagger8.ApiProperty)({
|
|
781
1041
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
782
1042
|
}),
|
|
783
|
-
|
|
1043
|
+
_ts_metadata17("design:type", String)
|
|
784
1044
|
], PostFileDto.prototype, "id", void 0);
|
|
785
|
-
|
|
786
|
-
(0,
|
|
1045
|
+
_ts_decorate17([
|
|
1046
|
+
(0, import_swagger8.ApiProperty)({
|
|
787
1047
|
example: "https://storage.example.com/posts/image.jpg"
|
|
788
1048
|
}),
|
|
789
|
-
|
|
1049
|
+
_ts_metadata17("design:type", String)
|
|
790
1050
|
], PostFileDto.prototype, "fileUrl", void 0);
|
|
791
|
-
|
|
792
|
-
(0,
|
|
1051
|
+
_ts_decorate17([
|
|
1052
|
+
(0, import_swagger8.ApiProperty)({
|
|
793
1053
|
example: "image",
|
|
794
1054
|
enum: [
|
|
795
1055
|
"image",
|
|
796
1056
|
"video"
|
|
797
1057
|
]
|
|
798
1058
|
}),
|
|
799
|
-
|
|
1059
|
+
_ts_metadata17("design:type", String)
|
|
800
1060
|
], PostFileDto.prototype, "fileType", void 0);
|
|
801
|
-
|
|
802
|
-
(0,
|
|
1061
|
+
_ts_decorate17([
|
|
1062
|
+
(0, import_swagger8.ApiProperty)({
|
|
803
1063
|
example: "image/jpeg",
|
|
804
1064
|
nullable: true
|
|
805
1065
|
}),
|
|
806
|
-
|
|
1066
|
+
_ts_metadata17("design:type", Object)
|
|
807
1067
|
], PostFileDto.prototype, "mimeType", void 0);
|
|
808
|
-
|
|
809
|
-
(0,
|
|
1068
|
+
_ts_decorate17([
|
|
1069
|
+
(0, import_swagger8.ApiProperty)({
|
|
810
1070
|
example: 0
|
|
811
1071
|
}),
|
|
812
|
-
|
|
1072
|
+
_ts_metadata17("design:type", Number)
|
|
813
1073
|
], PostFileDto.prototype, "orderIndex", void 0);
|
|
814
|
-
|
|
815
|
-
(0,
|
|
1074
|
+
_ts_decorate17([
|
|
1075
|
+
(0, import_swagger8.ApiProperty)({
|
|
816
1076
|
example: "2024-01-15T10:30:00Z"
|
|
817
1077
|
}),
|
|
818
|
-
|
|
1078
|
+
_ts_metadata17("design:type", typeof Date === "undefined" ? Object : Date)
|
|
819
1079
|
], PostFileDto.prototype, "createdAt", void 0);
|
|
820
1080
|
|
|
821
1081
|
// dto/posts/post_response.dto.ts
|
|
822
1082
|
var import_class_validator16 = require("class-validator");
|
|
823
1083
|
|
|
824
1084
|
// dto/tags/tag_response.dto.ts
|
|
825
|
-
var
|
|
826
|
-
function
|
|
1085
|
+
var import_swagger9 = require("@nestjs/swagger");
|
|
1086
|
+
function _ts_decorate18(decorators, target, key, desc) {
|
|
827
1087
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
828
1088
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
829
1089
|
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;
|
|
830
1090
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
831
1091
|
}
|
|
832
|
-
__name(
|
|
833
|
-
function
|
|
1092
|
+
__name(_ts_decorate18, "_ts_decorate");
|
|
1093
|
+
function _ts_metadata18(k, v) {
|
|
834
1094
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
835
1095
|
}
|
|
836
|
-
__name(
|
|
1096
|
+
__name(_ts_metadata18, "_ts_metadata");
|
|
837
1097
|
var _TagResponseDto = class _TagResponseDto {
|
|
838
1098
|
constructor() {
|
|
839
1099
|
__publicField(this, "name");
|
|
@@ -844,37 +1104,37 @@ var _TagResponseDto = class _TagResponseDto {
|
|
|
844
1104
|
};
|
|
845
1105
|
__name(_TagResponseDto, "TagResponseDto");
|
|
846
1106
|
var TagResponseDto = _TagResponseDto;
|
|
847
|
-
|
|
848
|
-
(0,
|
|
1107
|
+
_ts_decorate18([
|
|
1108
|
+
(0, import_swagger9.ApiProperty)({
|
|
849
1109
|
example: "React JS"
|
|
850
1110
|
}),
|
|
851
|
-
|
|
1111
|
+
_ts_metadata18("design:type", String)
|
|
852
1112
|
], TagResponseDto.prototype, "name", void 0);
|
|
853
|
-
|
|
854
|
-
(0,
|
|
1113
|
+
_ts_decorate18([
|
|
1114
|
+
(0, import_swagger9.ApiProperty)({
|
|
855
1115
|
example: "react-js"
|
|
856
1116
|
}),
|
|
857
|
-
|
|
1117
|
+
_ts_metadata18("design:type", String)
|
|
858
1118
|
], TagResponseDto.prototype, "slug", void 0);
|
|
859
|
-
|
|
860
|
-
(0,
|
|
1119
|
+
_ts_decorate18([
|
|
1120
|
+
(0, import_swagger9.ApiProperty)({
|
|
861
1121
|
example: "uuid-v4-string"
|
|
862
1122
|
}),
|
|
863
|
-
|
|
1123
|
+
_ts_metadata18("design:type", String)
|
|
864
1124
|
], TagResponseDto.prototype, "id", void 0);
|
|
865
1125
|
|
|
866
1126
|
// dto/posts/post_response.dto.ts
|
|
867
|
-
function
|
|
1127
|
+
function _ts_decorate19(decorators, target, key, desc) {
|
|
868
1128
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
869
1129
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
870
1130
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
871
1131
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
872
1132
|
}
|
|
873
|
-
__name(
|
|
874
|
-
function
|
|
1133
|
+
__name(_ts_decorate19, "_ts_decorate");
|
|
1134
|
+
function _ts_metadata19(k, v) {
|
|
875
1135
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
876
1136
|
}
|
|
877
|
-
__name(
|
|
1137
|
+
__name(_ts_metadata19, "_ts_metadata");
|
|
878
1138
|
var _PostResponseDto = class _PostResponseDto {
|
|
879
1139
|
constructor() {
|
|
880
1140
|
__publicField(this, "id");
|
|
@@ -893,102 +1153,102 @@ var _PostResponseDto = class _PostResponseDto {
|
|
|
893
1153
|
};
|
|
894
1154
|
__name(_PostResponseDto, "PostResponseDto");
|
|
895
1155
|
var PostResponseDto = _PostResponseDto;
|
|
896
|
-
|
|
897
|
-
(0,
|
|
1156
|
+
_ts_decorate19([
|
|
1157
|
+
(0, import_swagger10.ApiProperty)({
|
|
898
1158
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
899
1159
|
}),
|
|
900
|
-
|
|
1160
|
+
_ts_metadata19("design:type", String)
|
|
901
1161
|
], PostResponseDto.prototype, "id", void 0);
|
|
902
|
-
|
|
903
|
-
(0,
|
|
1162
|
+
_ts_decorate19([
|
|
1163
|
+
(0, import_swagger10.ApiProperty)({
|
|
904
1164
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
905
1165
|
}),
|
|
906
|
-
|
|
1166
|
+
_ts_metadata19("design:type", String)
|
|
907
1167
|
], PostResponseDto.prototype, "publisherId", void 0);
|
|
908
|
-
|
|
909
|
-
(0,
|
|
1168
|
+
_ts_decorate19([
|
|
1169
|
+
(0, import_swagger10.ApiProperty)({
|
|
910
1170
|
example: "Check out this amazing view!"
|
|
911
1171
|
}),
|
|
912
|
-
|
|
1172
|
+
_ts_metadata19("design:type", String)
|
|
913
1173
|
], PostResponseDto.prototype, "description", void 0);
|
|
914
|
-
|
|
915
|
-
(0,
|
|
1174
|
+
_ts_decorate19([
|
|
1175
|
+
(0, import_swagger10.ApiProperty)({
|
|
916
1176
|
example: "John Doe"
|
|
917
1177
|
}),
|
|
918
|
-
|
|
1178
|
+
_ts_metadata19("design:type", String)
|
|
919
1179
|
], PostResponseDto.prototype, "publisherFullName", void 0);
|
|
920
|
-
|
|
921
|
-
(0,
|
|
1180
|
+
_ts_decorate19([
|
|
1181
|
+
(0, import_swagger10.ApiProperty)({
|
|
922
1182
|
example: "https://example.com/profile.jpg",
|
|
923
1183
|
nullable: true
|
|
924
1184
|
}),
|
|
925
|
-
|
|
1185
|
+
_ts_metadata19("design:type", Object)
|
|
926
1186
|
], PostResponseDto.prototype, "publisherProfilePictureUrl", void 0);
|
|
927
|
-
|
|
928
|
-
(0,
|
|
1187
|
+
_ts_decorate19([
|
|
1188
|
+
(0, import_swagger10.ApiProperty)({
|
|
929
1189
|
type: [
|
|
930
1190
|
PostFileDto
|
|
931
1191
|
]
|
|
932
1192
|
}),
|
|
933
|
-
|
|
1193
|
+
_ts_metadata19("design:type", Array)
|
|
934
1194
|
], PostResponseDto.prototype, "files", void 0);
|
|
935
|
-
|
|
936
|
-
(0,
|
|
1195
|
+
_ts_decorate19([
|
|
1196
|
+
(0, import_swagger10.ApiProperty)({
|
|
937
1197
|
type: [
|
|
938
1198
|
TagResponseDto
|
|
939
1199
|
],
|
|
940
1200
|
description: "List of tags associated with the post"
|
|
941
1201
|
}),
|
|
942
|
-
|
|
1202
|
+
_ts_metadata19("design:type", Array)
|
|
943
1203
|
], PostResponseDto.prototype, "tags", void 0);
|
|
944
|
-
|
|
945
|
-
(0,
|
|
1204
|
+
_ts_decorate19([
|
|
1205
|
+
(0, import_swagger10.ApiProperty)({
|
|
946
1206
|
example: 42
|
|
947
1207
|
}),
|
|
948
|
-
|
|
1208
|
+
_ts_metadata19("design:type", Number)
|
|
949
1209
|
], PostResponseDto.prototype, "commentsCount", void 0);
|
|
950
|
-
|
|
951
|
-
(0,
|
|
1210
|
+
_ts_decorate19([
|
|
1211
|
+
(0, import_swagger10.ApiProperty)({
|
|
952
1212
|
description: "The Bunsieess sector type for the post",
|
|
953
1213
|
enum: BusinessSector,
|
|
954
1214
|
required: false,
|
|
955
1215
|
default: BusinessSector.CONSULTING
|
|
956
1216
|
}),
|
|
957
1217
|
(0, import_class_validator16.IsEnum)(BusinessSector),
|
|
958
|
-
|
|
1218
|
+
_ts_metadata19("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
959
1219
|
], PostResponseDto.prototype, "sector", void 0);
|
|
960
|
-
|
|
961
|
-
(0,
|
|
1220
|
+
_ts_decorate19([
|
|
1221
|
+
(0, import_swagger10.ApiProperty)({
|
|
962
1222
|
example: 128
|
|
963
1223
|
}),
|
|
964
|
-
|
|
1224
|
+
_ts_metadata19("design:type", Number)
|
|
965
1225
|
], PostResponseDto.prototype, "likesCount", void 0);
|
|
966
|
-
|
|
967
|
-
(0,
|
|
1226
|
+
_ts_decorate19([
|
|
1227
|
+
(0, import_swagger10.ApiProperty)({
|
|
968
1228
|
example: "2024-01-15T10:30:00Z"
|
|
969
1229
|
}),
|
|
970
|
-
|
|
1230
|
+
_ts_metadata19("design:type", typeof Date === "undefined" ? Object : Date)
|
|
971
1231
|
], PostResponseDto.prototype, "createdAt", void 0);
|
|
972
|
-
|
|
973
|
-
(0,
|
|
1232
|
+
_ts_decorate19([
|
|
1233
|
+
(0, import_swagger10.ApiProperty)({
|
|
974
1234
|
example: "2024-01-15T10:30:00Z"
|
|
975
1235
|
}),
|
|
976
|
-
|
|
1236
|
+
_ts_metadata19("design:type", typeof Date === "undefined" ? Object : Date)
|
|
977
1237
|
], PostResponseDto.prototype, "updatedAt", void 0);
|
|
978
1238
|
|
|
979
1239
|
// dto/posts/pagination_post.dto.ts
|
|
980
|
-
var
|
|
981
|
-
function
|
|
1240
|
+
var import_swagger11 = require("@nestjs/swagger");
|
|
1241
|
+
function _ts_decorate20(decorators, target, key, desc) {
|
|
982
1242
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
983
1243
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
984
1244
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
985
1245
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
986
1246
|
}
|
|
987
|
-
__name(
|
|
988
|
-
function
|
|
1247
|
+
__name(_ts_decorate20, "_ts_decorate");
|
|
1248
|
+
function _ts_metadata20(k, v) {
|
|
989
1249
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
990
1250
|
}
|
|
991
|
-
__name(
|
|
1251
|
+
__name(_ts_metadata20, "_ts_metadata");
|
|
992
1252
|
var _PaginatedPostsDto = class _PaginatedPostsDto {
|
|
993
1253
|
constructor() {
|
|
994
1254
|
__publicField(this, "posts");
|
|
@@ -999,47 +1259,47 @@ var _PaginatedPostsDto = class _PaginatedPostsDto {
|
|
|
999
1259
|
};
|
|
1000
1260
|
__name(_PaginatedPostsDto, "PaginatedPostsDto");
|
|
1001
1261
|
var PaginatedPostsDto = _PaginatedPostsDto;
|
|
1002
|
-
|
|
1003
|
-
(0,
|
|
1262
|
+
_ts_decorate20([
|
|
1263
|
+
(0, import_swagger11.ApiProperty)({
|
|
1004
1264
|
type: [
|
|
1005
1265
|
PostResponseDto
|
|
1006
1266
|
]
|
|
1007
1267
|
}),
|
|
1008
|
-
|
|
1268
|
+
_ts_metadata20("design:type", Array)
|
|
1009
1269
|
], PaginatedPostsDto.prototype, "posts", void 0);
|
|
1010
|
-
|
|
1011
|
-
(0,
|
|
1270
|
+
_ts_decorate20([
|
|
1271
|
+
(0, import_swagger11.ApiProperty)({
|
|
1012
1272
|
example: 100
|
|
1013
1273
|
}),
|
|
1014
|
-
|
|
1274
|
+
_ts_metadata20("design:type", Number)
|
|
1015
1275
|
], PaginatedPostsDto.prototype, "total", void 0);
|
|
1016
|
-
|
|
1017
|
-
(0,
|
|
1276
|
+
_ts_decorate20([
|
|
1277
|
+
(0, import_swagger11.ApiProperty)({
|
|
1018
1278
|
example: 1
|
|
1019
1279
|
}),
|
|
1020
|
-
|
|
1280
|
+
_ts_metadata20("design:type", Number)
|
|
1021
1281
|
], PaginatedPostsDto.prototype, "page", void 0);
|
|
1022
|
-
|
|
1023
|
-
(0,
|
|
1282
|
+
_ts_decorate20([
|
|
1283
|
+
(0, import_swagger11.ApiProperty)({
|
|
1024
1284
|
example: 10
|
|
1025
1285
|
}),
|
|
1026
|
-
|
|
1286
|
+
_ts_metadata20("design:type", Number)
|
|
1027
1287
|
], PaginatedPostsDto.prototype, "totalPages", void 0);
|
|
1028
1288
|
|
|
1029
1289
|
// dto/posts/update_post.dto.ts
|
|
1030
|
-
var
|
|
1290
|
+
var import_swagger12 = require("@nestjs/swagger");
|
|
1031
1291
|
var import_class_validator17 = require("class-validator");
|
|
1032
|
-
function
|
|
1292
|
+
function _ts_decorate21(decorators, target, key, desc) {
|
|
1033
1293
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1034
1294
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1035
1295
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1036
1296
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1037
1297
|
}
|
|
1038
|
-
__name(
|
|
1039
|
-
function
|
|
1298
|
+
__name(_ts_decorate21, "_ts_decorate");
|
|
1299
|
+
function _ts_metadata21(k, v) {
|
|
1040
1300
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1041
1301
|
}
|
|
1042
|
-
__name(
|
|
1302
|
+
__name(_ts_metadata21, "_ts_metadata");
|
|
1043
1303
|
var _UpdatePostDto = class _UpdatePostDto {
|
|
1044
1304
|
constructor() {
|
|
1045
1305
|
__publicField(this, "description");
|
|
@@ -1048,8 +1308,8 @@ var _UpdatePostDto = class _UpdatePostDto {
|
|
|
1048
1308
|
};
|
|
1049
1309
|
__name(_UpdatePostDto, "UpdatePostDto");
|
|
1050
1310
|
var UpdatePostDto = _UpdatePostDto;
|
|
1051
|
-
|
|
1052
|
-
(0,
|
|
1311
|
+
_ts_decorate21([
|
|
1312
|
+
(0, import_swagger12.ApiProperty)({
|
|
1053
1313
|
description: "Post description/content",
|
|
1054
1314
|
example: "Updated: Check out this amazing view!",
|
|
1055
1315
|
minLength: 1,
|
|
@@ -1061,16 +1321,16 @@ _ts_decorate20([
|
|
|
1061
1321
|
(0, import_class_validator17.MinLength)(1),
|
|
1062
1322
|
(0, import_class_validator17.MaxLength)(5e3),
|
|
1063
1323
|
(0, import_class_validator17.IsOptional)(),
|
|
1064
|
-
|
|
1324
|
+
_ts_metadata21("design:type", String)
|
|
1065
1325
|
], UpdatePostDto.prototype, "description", void 0);
|
|
1066
|
-
|
|
1067
|
-
(0,
|
|
1326
|
+
_ts_decorate21([
|
|
1327
|
+
(0, import_swagger12.ApiPropertyOptional)({
|
|
1068
1328
|
description: "The Business sector type for the post",
|
|
1069
1329
|
enum: BusinessSector
|
|
1070
1330
|
}),
|
|
1071
1331
|
(0, import_class_validator17.IsOptional)(),
|
|
1072
1332
|
(0, import_class_validator17.IsEnum)(BusinessSector),
|
|
1073
|
-
|
|
1333
|
+
_ts_metadata21("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
1074
1334
|
], UpdatePostDto.prototype, "sector", void 0);
|
|
1075
1335
|
|
|
1076
1336
|
// dto/posts/post_fields.dto.ts
|
|
@@ -1093,18 +1353,18 @@ __name(_PostFields, "PostFields");
|
|
|
1093
1353
|
var PostFields = _PostFields;
|
|
1094
1354
|
|
|
1095
1355
|
// dto/posts/post_response_self.dto.ts
|
|
1096
|
-
var
|
|
1097
|
-
function
|
|
1356
|
+
var import_swagger13 = require("@nestjs/swagger");
|
|
1357
|
+
function _ts_decorate22(decorators, target, key, desc) {
|
|
1098
1358
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1099
1359
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1100
1360
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1101
1361
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1102
1362
|
}
|
|
1103
|
-
__name(
|
|
1104
|
-
function
|
|
1363
|
+
__name(_ts_decorate22, "_ts_decorate");
|
|
1364
|
+
function _ts_metadata22(k, v) {
|
|
1105
1365
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1106
1366
|
}
|
|
1107
|
-
__name(
|
|
1367
|
+
__name(_ts_metadata22, "_ts_metadata");
|
|
1108
1368
|
var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
|
|
1109
1369
|
constructor() {
|
|
1110
1370
|
super(...arguments);
|
|
@@ -1113,26 +1373,26 @@ var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
|
|
|
1113
1373
|
};
|
|
1114
1374
|
__name(_PostResponseSelfDto, "PostResponseSelfDto");
|
|
1115
1375
|
var PostResponseSelfDto = _PostResponseSelfDto;
|
|
1116
|
-
|
|
1117
|
-
(0,
|
|
1376
|
+
_ts_decorate22([
|
|
1377
|
+
(0, import_swagger13.ApiProperty)({
|
|
1118
1378
|
example: true
|
|
1119
1379
|
}),
|
|
1120
|
-
|
|
1380
|
+
_ts_metadata22("design:type", Boolean)
|
|
1121
1381
|
], PostResponseSelfDto.prototype, "hidden", void 0);
|
|
1122
1382
|
|
|
1123
1383
|
// dto/posts/pagination_post_self.dto.ts
|
|
1124
|
-
var
|
|
1125
|
-
function
|
|
1384
|
+
var import_swagger14 = require("@nestjs/swagger");
|
|
1385
|
+
function _ts_decorate23(decorators, target, key, desc) {
|
|
1126
1386
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1127
1387
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1128
1388
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1129
1389
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1130
1390
|
}
|
|
1131
|
-
__name(
|
|
1132
|
-
function
|
|
1391
|
+
__name(_ts_decorate23, "_ts_decorate");
|
|
1392
|
+
function _ts_metadata23(k, v) {
|
|
1133
1393
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1134
1394
|
}
|
|
1135
|
-
__name(
|
|
1395
|
+
__name(_ts_metadata23, "_ts_metadata");
|
|
1136
1396
|
var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
|
|
1137
1397
|
constructor() {
|
|
1138
1398
|
__publicField(this, "posts");
|
|
@@ -1143,46 +1403,46 @@ var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
|
|
|
1143
1403
|
};
|
|
1144
1404
|
__name(_PaginatedPostsSelfDto, "PaginatedPostsSelfDto");
|
|
1145
1405
|
var PaginatedPostsSelfDto = _PaginatedPostsSelfDto;
|
|
1146
|
-
|
|
1147
|
-
(0,
|
|
1406
|
+
_ts_decorate23([
|
|
1407
|
+
(0, import_swagger14.ApiProperty)({
|
|
1148
1408
|
type: [
|
|
1149
1409
|
PostResponseDto
|
|
1150
1410
|
]
|
|
1151
1411
|
}),
|
|
1152
|
-
|
|
1412
|
+
_ts_metadata23("design:type", Array)
|
|
1153
1413
|
], PaginatedPostsSelfDto.prototype, "posts", void 0);
|
|
1154
|
-
|
|
1155
|
-
(0,
|
|
1414
|
+
_ts_decorate23([
|
|
1415
|
+
(0, import_swagger14.ApiProperty)({
|
|
1156
1416
|
example: 100
|
|
1157
1417
|
}),
|
|
1158
|
-
|
|
1418
|
+
_ts_metadata23("design:type", Number)
|
|
1159
1419
|
], PaginatedPostsSelfDto.prototype, "total", void 0);
|
|
1160
|
-
|
|
1161
|
-
(0,
|
|
1420
|
+
_ts_decorate23([
|
|
1421
|
+
(0, import_swagger14.ApiProperty)({
|
|
1162
1422
|
example: 1
|
|
1163
1423
|
}),
|
|
1164
|
-
|
|
1424
|
+
_ts_metadata23("design:type", Number)
|
|
1165
1425
|
], PaginatedPostsSelfDto.prototype, "page", void 0);
|
|
1166
|
-
|
|
1167
|
-
(0,
|
|
1426
|
+
_ts_decorate23([
|
|
1427
|
+
(0, import_swagger14.ApiProperty)({
|
|
1168
1428
|
example: 10
|
|
1169
1429
|
}),
|
|
1170
|
-
|
|
1430
|
+
_ts_metadata23("design:type", Number)
|
|
1171
1431
|
], PaginatedPostsSelfDto.prototype, "totalPages", void 0);
|
|
1172
1432
|
|
|
1173
1433
|
// dto/posts/reorder_post_file.dto.ts
|
|
1174
1434
|
var import_class_validator18 = require("class-validator");
|
|
1175
|
-
function
|
|
1435
|
+
function _ts_decorate24(decorators, target, key, desc) {
|
|
1176
1436
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1177
1437
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1178
1438
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1179
1439
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1180
1440
|
}
|
|
1181
|
-
__name(
|
|
1182
|
-
function
|
|
1441
|
+
__name(_ts_decorate24, "_ts_decorate");
|
|
1442
|
+
function _ts_metadata24(k, v) {
|
|
1183
1443
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1184
1444
|
}
|
|
1185
|
-
__name(
|
|
1445
|
+
__name(_ts_metadata24, "_ts_metadata");
|
|
1186
1446
|
var _ReorderDto = class _ReorderDto {
|
|
1187
1447
|
constructor() {
|
|
1188
1448
|
__publicField(this, "newIndex");
|
|
@@ -1190,26 +1450,26 @@ var _ReorderDto = class _ReorderDto {
|
|
|
1190
1450
|
};
|
|
1191
1451
|
__name(_ReorderDto, "ReorderDto");
|
|
1192
1452
|
var ReorderDto = _ReorderDto;
|
|
1193
|
-
|
|
1453
|
+
_ts_decorate24([
|
|
1194
1454
|
(0, import_class_validator18.IsInt)(),
|
|
1195
1455
|
(0, import_class_validator18.Min)(0),
|
|
1196
1456
|
(0, import_class_validator18.Max)(100),
|
|
1197
|
-
|
|
1457
|
+
_ts_metadata24("design:type", Number)
|
|
1198
1458
|
], ReorderDto.prototype, "newIndex", void 0);
|
|
1199
1459
|
|
|
1200
1460
|
// dto/posts/post_like_response.dto.ts
|
|
1201
|
-
var
|
|
1202
|
-
function
|
|
1461
|
+
var import_swagger15 = require("@nestjs/swagger");
|
|
1462
|
+
function _ts_decorate25(decorators, target, key, desc) {
|
|
1203
1463
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1204
1464
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1205
1465
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1206
1466
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1207
1467
|
}
|
|
1208
|
-
__name(
|
|
1209
|
-
function
|
|
1468
|
+
__name(_ts_decorate25, "_ts_decorate");
|
|
1469
|
+
function _ts_metadata25(k, v) {
|
|
1210
1470
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1211
1471
|
}
|
|
1212
|
-
__name(
|
|
1472
|
+
__name(_ts_metadata25, "_ts_metadata");
|
|
1213
1473
|
var _PostLikeResponseDto = class _PostLikeResponseDto {
|
|
1214
1474
|
constructor() {
|
|
1215
1475
|
__publicField(this, "id");
|
|
@@ -1223,65 +1483,65 @@ var _PostLikeResponseDto = class _PostLikeResponseDto {
|
|
|
1223
1483
|
};
|
|
1224
1484
|
__name(_PostLikeResponseDto, "PostLikeResponseDto");
|
|
1225
1485
|
var PostLikeResponseDto = _PostLikeResponseDto;
|
|
1226
|
-
|
|
1227
|
-
(0,
|
|
1486
|
+
_ts_decorate25([
|
|
1487
|
+
(0, import_swagger15.ApiProperty)({
|
|
1228
1488
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1229
1489
|
}),
|
|
1230
|
-
|
|
1490
|
+
_ts_metadata25("design:type", String)
|
|
1231
1491
|
], PostLikeResponseDto.prototype, "id", void 0);
|
|
1232
|
-
|
|
1233
|
-
(0,
|
|
1492
|
+
_ts_decorate25([
|
|
1493
|
+
(0, import_swagger15.ApiProperty)({
|
|
1234
1494
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1235
1495
|
}),
|
|
1236
|
-
|
|
1496
|
+
_ts_metadata25("design:type", String)
|
|
1237
1497
|
], PostLikeResponseDto.prototype, "postId", void 0);
|
|
1238
|
-
|
|
1239
|
-
(0,
|
|
1498
|
+
_ts_decorate25([
|
|
1499
|
+
(0, import_swagger15.ApiProperty)({
|
|
1240
1500
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1241
1501
|
}),
|
|
1242
|
-
|
|
1502
|
+
_ts_metadata25("design:type", String)
|
|
1243
1503
|
], PostLikeResponseDto.prototype, "userId", void 0);
|
|
1244
|
-
|
|
1245
|
-
(0,
|
|
1504
|
+
_ts_decorate25([
|
|
1505
|
+
(0, import_swagger15.ApiProperty)({
|
|
1246
1506
|
example: "John Doe"
|
|
1247
1507
|
}),
|
|
1248
|
-
|
|
1508
|
+
_ts_metadata25("design:type", String)
|
|
1249
1509
|
], PostLikeResponseDto.prototype, "userFullName", void 0);
|
|
1250
|
-
|
|
1251
|
-
(0,
|
|
1510
|
+
_ts_decorate25([
|
|
1511
|
+
(0, import_swagger15.ApiProperty)({
|
|
1252
1512
|
example: "https://example.com/avatar.jpg",
|
|
1253
1513
|
nullable: true
|
|
1254
1514
|
}),
|
|
1255
|
-
|
|
1515
|
+
_ts_metadata25("design:type", Object)
|
|
1256
1516
|
], PostLikeResponseDto.prototype, "userProfilePictureUrl", void 0);
|
|
1257
|
-
|
|
1258
|
-
(0,
|
|
1517
|
+
_ts_decorate25([
|
|
1518
|
+
(0, import_swagger15.ApiProperty)({
|
|
1259
1519
|
enum: ReactionType,
|
|
1260
1520
|
example: ReactionType.LIKE
|
|
1261
1521
|
}),
|
|
1262
|
-
|
|
1522
|
+
_ts_metadata25("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1263
1523
|
], PostLikeResponseDto.prototype, "type", void 0);
|
|
1264
|
-
|
|
1265
|
-
(0,
|
|
1524
|
+
_ts_decorate25([
|
|
1525
|
+
(0, import_swagger15.ApiProperty)({
|
|
1266
1526
|
example: "2026-01-14T12:00:00Z"
|
|
1267
1527
|
}),
|
|
1268
|
-
|
|
1528
|
+
_ts_metadata25("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1269
1529
|
], PostLikeResponseDto.prototype, "createdAt", void 0);
|
|
1270
1530
|
|
|
1271
1531
|
// dto/posts/like_post.dto.ts
|
|
1272
|
-
var
|
|
1532
|
+
var import_swagger16 = require("@nestjs/swagger");
|
|
1273
1533
|
var import_class_validator19 = require("class-validator");
|
|
1274
|
-
function
|
|
1534
|
+
function _ts_decorate26(decorators, target, key, desc) {
|
|
1275
1535
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1276
1536
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1277
1537
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1278
1538
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1279
1539
|
}
|
|
1280
|
-
__name(
|
|
1281
|
-
function
|
|
1540
|
+
__name(_ts_decorate26, "_ts_decorate");
|
|
1541
|
+
function _ts_metadata26(k, v) {
|
|
1282
1542
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1283
1543
|
}
|
|
1284
|
-
__name(
|
|
1544
|
+
__name(_ts_metadata26, "_ts_metadata");
|
|
1285
1545
|
var _LikePostDto = class _LikePostDto {
|
|
1286
1546
|
constructor() {
|
|
1287
1547
|
__publicField(this, "type");
|
|
@@ -1289,8 +1549,8 @@ var _LikePostDto = class _LikePostDto {
|
|
|
1289
1549
|
};
|
|
1290
1550
|
__name(_LikePostDto, "LikePostDto");
|
|
1291
1551
|
var LikePostDto = _LikePostDto;
|
|
1292
|
-
|
|
1293
|
-
(0,
|
|
1552
|
+
_ts_decorate26([
|
|
1553
|
+
(0, import_swagger16.ApiProperty)({
|
|
1294
1554
|
description: "The reaction type for the post",
|
|
1295
1555
|
enum: ReactionType,
|
|
1296
1556
|
required: false,
|
|
@@ -1298,22 +1558,22 @@ _ts_decorate25([
|
|
|
1298
1558
|
}),
|
|
1299
1559
|
(0, import_class_validator19.IsEnum)(ReactionType),
|
|
1300
1560
|
(0, import_class_validator19.IsOptional)(),
|
|
1301
|
-
|
|
1561
|
+
_ts_metadata26("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1302
1562
|
], LikePostDto.prototype, "type", void 0);
|
|
1303
1563
|
|
|
1304
1564
|
// dto/posts/paginated_post_like_dto.ts
|
|
1305
|
-
var
|
|
1306
|
-
function
|
|
1565
|
+
var import_swagger17 = require("@nestjs/swagger");
|
|
1566
|
+
function _ts_decorate27(decorators, target, key, desc) {
|
|
1307
1567
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1308
1568
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1309
1569
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1310
1570
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1311
1571
|
}
|
|
1312
|
-
__name(
|
|
1313
|
-
function
|
|
1572
|
+
__name(_ts_decorate27, "_ts_decorate");
|
|
1573
|
+
function _ts_metadata27(k, v) {
|
|
1314
1574
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1315
1575
|
}
|
|
1316
|
-
__name(
|
|
1576
|
+
__name(_ts_metadata27, "_ts_metadata");
|
|
1317
1577
|
var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
|
|
1318
1578
|
constructor() {
|
|
1319
1579
|
__publicField(this, "likes");
|
|
@@ -1324,47 +1584,47 @@ var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
|
|
|
1324
1584
|
};
|
|
1325
1585
|
__name(_PaginatedPostLikesDto, "PaginatedPostLikesDto");
|
|
1326
1586
|
var PaginatedPostLikesDto = _PaginatedPostLikesDto;
|
|
1327
|
-
|
|
1328
|
-
(0,
|
|
1587
|
+
_ts_decorate27([
|
|
1588
|
+
(0, import_swagger17.ApiProperty)({
|
|
1329
1589
|
type: [
|
|
1330
1590
|
PostLikeResponseDto
|
|
1331
1591
|
]
|
|
1332
1592
|
}),
|
|
1333
|
-
|
|
1593
|
+
_ts_metadata27("design:type", Array)
|
|
1334
1594
|
], PaginatedPostLikesDto.prototype, "likes", void 0);
|
|
1335
|
-
|
|
1336
|
-
(0,
|
|
1595
|
+
_ts_decorate27([
|
|
1596
|
+
(0, import_swagger17.ApiProperty)({
|
|
1337
1597
|
example: 100
|
|
1338
1598
|
}),
|
|
1339
|
-
|
|
1599
|
+
_ts_metadata27("design:type", Number)
|
|
1340
1600
|
], PaginatedPostLikesDto.prototype, "total", void 0);
|
|
1341
|
-
|
|
1342
|
-
(0,
|
|
1601
|
+
_ts_decorate27([
|
|
1602
|
+
(0, import_swagger17.ApiProperty)({
|
|
1343
1603
|
example: 1
|
|
1344
1604
|
}),
|
|
1345
|
-
|
|
1605
|
+
_ts_metadata27("design:type", Number)
|
|
1346
1606
|
], PaginatedPostLikesDto.prototype, "page", void 0);
|
|
1347
|
-
|
|
1348
|
-
(0,
|
|
1607
|
+
_ts_decorate27([
|
|
1608
|
+
(0, import_swagger17.ApiProperty)({
|
|
1349
1609
|
example: 10
|
|
1350
1610
|
}),
|
|
1351
|
-
|
|
1611
|
+
_ts_metadata27("design:type", Number)
|
|
1352
1612
|
], PaginatedPostLikesDto.prototype, "totalPages", void 0);
|
|
1353
1613
|
|
|
1354
1614
|
// dto/comments/create_comment.dto.ts
|
|
1355
|
-
var
|
|
1615
|
+
var import_swagger18 = require("@nestjs/swagger");
|
|
1356
1616
|
var import_class_validator20 = require("class-validator");
|
|
1357
|
-
function
|
|
1617
|
+
function _ts_decorate28(decorators, target, key, desc) {
|
|
1358
1618
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1359
1619
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1360
1620
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1361
1621
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1362
1622
|
}
|
|
1363
|
-
__name(
|
|
1364
|
-
function
|
|
1623
|
+
__name(_ts_decorate28, "_ts_decorate");
|
|
1624
|
+
function _ts_metadata28(k, v) {
|
|
1365
1625
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1366
1626
|
}
|
|
1367
|
-
__name(
|
|
1627
|
+
__name(_ts_metadata28, "_ts_metadata");
|
|
1368
1628
|
var _CreateCommentDto = class _CreateCommentDto {
|
|
1369
1629
|
constructor() {
|
|
1370
1630
|
__publicField(this, "postId");
|
|
@@ -1374,17 +1634,17 @@ var _CreateCommentDto = class _CreateCommentDto {
|
|
|
1374
1634
|
};
|
|
1375
1635
|
__name(_CreateCommentDto, "CreateCommentDto");
|
|
1376
1636
|
var CreateCommentDto = _CreateCommentDto;
|
|
1377
|
-
|
|
1378
|
-
(0,
|
|
1637
|
+
_ts_decorate28([
|
|
1638
|
+
(0, import_swagger18.ApiProperty)({
|
|
1379
1639
|
description: "Post ID to comment on",
|
|
1380
1640
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1381
1641
|
}),
|
|
1382
1642
|
(0, import_class_validator20.IsUUID)(),
|
|
1383
1643
|
(0, import_class_validator20.IsNotEmpty)(),
|
|
1384
|
-
|
|
1644
|
+
_ts_metadata28("design:type", String)
|
|
1385
1645
|
], CreateCommentDto.prototype, "postId", void 0);
|
|
1386
|
-
|
|
1387
|
-
(0,
|
|
1646
|
+
_ts_decorate28([
|
|
1647
|
+
(0, import_swagger18.ApiProperty)({
|
|
1388
1648
|
description: "Comment content",
|
|
1389
1649
|
example: "Great post!",
|
|
1390
1650
|
minLength: 1,
|
|
@@ -1394,32 +1654,32 @@ _ts_decorate27([
|
|
|
1394
1654
|
(0, import_class_validator20.IsNotEmpty)(),
|
|
1395
1655
|
(0, import_class_validator20.MinLength)(1),
|
|
1396
1656
|
(0, import_class_validator20.MaxLength)(5e3),
|
|
1397
|
-
|
|
1657
|
+
_ts_metadata28("design:type", String)
|
|
1398
1658
|
], CreateCommentDto.prototype, "content", void 0);
|
|
1399
|
-
|
|
1400
|
-
(0,
|
|
1659
|
+
_ts_decorate28([
|
|
1660
|
+
(0, import_swagger18.ApiProperty)({
|
|
1401
1661
|
description: "Parent comment ID for nested replies",
|
|
1402
1662
|
example: "123e4567-e89b-12d3-a456-426614174002",
|
|
1403
1663
|
required: false
|
|
1404
1664
|
}),
|
|
1405
1665
|
(0, import_class_validator20.IsUUID)(),
|
|
1406
1666
|
(0, import_class_validator20.IsOptional)(),
|
|
1407
|
-
|
|
1667
|
+
_ts_metadata28("design:type", String)
|
|
1408
1668
|
], CreateCommentDto.prototype, "parentCommentId", void 0);
|
|
1409
1669
|
|
|
1410
1670
|
// dto/comments/comment_response.dto.ts
|
|
1411
|
-
var
|
|
1412
|
-
function
|
|
1671
|
+
var import_swagger19 = require("@nestjs/swagger");
|
|
1672
|
+
function _ts_decorate29(decorators, target, key, desc) {
|
|
1413
1673
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1414
1674
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1415
1675
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1416
1676
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1417
1677
|
}
|
|
1418
|
-
__name(
|
|
1419
|
-
function
|
|
1678
|
+
__name(_ts_decorate29, "_ts_decorate");
|
|
1679
|
+
function _ts_metadata29(k, v) {
|
|
1420
1680
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1421
1681
|
}
|
|
1422
|
-
__name(
|
|
1682
|
+
__name(_ts_metadata29, "_ts_metadata");
|
|
1423
1683
|
var _CommentResponseDto = class _CommentResponseDto {
|
|
1424
1684
|
constructor() {
|
|
1425
1685
|
__publicField(this, "id");
|
|
@@ -1439,100 +1699,100 @@ var _CommentResponseDto = class _CommentResponseDto {
|
|
|
1439
1699
|
};
|
|
1440
1700
|
__name(_CommentResponseDto, "CommentResponseDto");
|
|
1441
1701
|
var CommentResponseDto = _CommentResponseDto;
|
|
1442
|
-
|
|
1443
|
-
(0,
|
|
1702
|
+
_ts_decorate29([
|
|
1703
|
+
(0, import_swagger19.ApiProperty)({
|
|
1444
1704
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1445
1705
|
}),
|
|
1446
|
-
|
|
1706
|
+
_ts_metadata29("design:type", String)
|
|
1447
1707
|
], CommentResponseDto.prototype, "id", void 0);
|
|
1448
|
-
|
|
1449
|
-
(0,
|
|
1708
|
+
_ts_decorate29([
|
|
1709
|
+
(0, import_swagger19.ApiProperty)({
|
|
1450
1710
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
1451
1711
|
}),
|
|
1452
|
-
|
|
1712
|
+
_ts_metadata29("design:type", String)
|
|
1453
1713
|
], CommentResponseDto.prototype, "postId", void 0);
|
|
1454
|
-
|
|
1455
|
-
(0,
|
|
1714
|
+
_ts_decorate29([
|
|
1715
|
+
(0, import_swagger19.ApiProperty)({
|
|
1456
1716
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1457
1717
|
}),
|
|
1458
|
-
|
|
1718
|
+
_ts_metadata29("design:type", String)
|
|
1459
1719
|
], CommentResponseDto.prototype, "authorId", void 0);
|
|
1460
|
-
|
|
1461
|
-
(0,
|
|
1720
|
+
_ts_decorate29([
|
|
1721
|
+
(0, import_swagger19.ApiProperty)({
|
|
1462
1722
|
example: "John Doe"
|
|
1463
1723
|
}),
|
|
1464
|
-
|
|
1724
|
+
_ts_metadata29("design:type", String)
|
|
1465
1725
|
], CommentResponseDto.prototype, "authorFullName", void 0);
|
|
1466
|
-
|
|
1467
|
-
(0,
|
|
1726
|
+
_ts_decorate29([
|
|
1727
|
+
(0, import_swagger19.ApiProperty)({
|
|
1468
1728
|
example: "https://example.com/profile.jpg",
|
|
1469
1729
|
nullable: true
|
|
1470
1730
|
}),
|
|
1471
|
-
|
|
1731
|
+
_ts_metadata29("design:type", Object)
|
|
1472
1732
|
], CommentResponseDto.prototype, "authorProfilePictureUrl", void 0);
|
|
1473
|
-
|
|
1474
|
-
(0,
|
|
1733
|
+
_ts_decorate29([
|
|
1734
|
+
(0, import_swagger19.ApiProperty)({
|
|
1475
1735
|
example: "Great post!"
|
|
1476
1736
|
}),
|
|
1477
|
-
|
|
1737
|
+
_ts_metadata29("design:type", String)
|
|
1478
1738
|
], CommentResponseDto.prototype, "content", void 0);
|
|
1479
|
-
|
|
1480
|
-
(0,
|
|
1739
|
+
_ts_decorate29([
|
|
1740
|
+
(0, import_swagger19.ApiProperty)({
|
|
1481
1741
|
example: "123e4567-e89b-12d3-a456-426614174003",
|
|
1482
1742
|
nullable: true
|
|
1483
1743
|
}),
|
|
1484
|
-
|
|
1744
|
+
_ts_metadata29("design:type", Object)
|
|
1485
1745
|
], CommentResponseDto.prototype, "parentCommentId", void 0);
|
|
1486
|
-
|
|
1487
|
-
(0,
|
|
1746
|
+
_ts_decorate29([
|
|
1747
|
+
(0, import_swagger19.ApiProperty)({
|
|
1488
1748
|
example: 0
|
|
1489
1749
|
}),
|
|
1490
|
-
|
|
1750
|
+
_ts_metadata29("design:type", Number)
|
|
1491
1751
|
], CommentResponseDto.prototype, "depth", void 0);
|
|
1492
|
-
|
|
1493
|
-
(0,
|
|
1752
|
+
_ts_decorate29([
|
|
1753
|
+
(0, import_swagger19.ApiProperty)({
|
|
1494
1754
|
example: 5
|
|
1495
1755
|
}),
|
|
1496
|
-
|
|
1756
|
+
_ts_metadata29("design:type", Number)
|
|
1497
1757
|
], CommentResponseDto.prototype, "likesCount", void 0);
|
|
1498
|
-
|
|
1499
|
-
(0,
|
|
1758
|
+
_ts_decorate29([
|
|
1759
|
+
(0, import_swagger19.ApiProperty)({
|
|
1500
1760
|
example: 2
|
|
1501
1761
|
}),
|
|
1502
|
-
|
|
1762
|
+
_ts_metadata29("design:type", Number)
|
|
1503
1763
|
], CommentResponseDto.prototype, "repliesCount", void 0);
|
|
1504
|
-
|
|
1505
|
-
(0,
|
|
1764
|
+
_ts_decorate29([
|
|
1765
|
+
(0, import_swagger19.ApiProperty)({
|
|
1506
1766
|
example: false
|
|
1507
1767
|
}),
|
|
1508
|
-
|
|
1768
|
+
_ts_metadata29("design:type", Boolean)
|
|
1509
1769
|
], CommentResponseDto.prototype, "isEdited", void 0);
|
|
1510
|
-
|
|
1511
|
-
(0,
|
|
1770
|
+
_ts_decorate29([
|
|
1771
|
+
(0, import_swagger19.ApiProperty)({
|
|
1512
1772
|
example: "2024-01-15T10:30:00Z"
|
|
1513
1773
|
}),
|
|
1514
|
-
|
|
1774
|
+
_ts_metadata29("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1515
1775
|
], CommentResponseDto.prototype, "createdAt", void 0);
|
|
1516
|
-
|
|
1517
|
-
(0,
|
|
1776
|
+
_ts_decorate29([
|
|
1777
|
+
(0, import_swagger19.ApiProperty)({
|
|
1518
1778
|
example: "2024-01-15T10:30:00Z"
|
|
1519
1779
|
}),
|
|
1520
|
-
|
|
1780
|
+
_ts_metadata29("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1521
1781
|
], CommentResponseDto.prototype, "updatedAt", void 0);
|
|
1522
1782
|
|
|
1523
1783
|
// dto/comments/comment_tree.dto.ts
|
|
1524
|
-
var
|
|
1525
|
-
function
|
|
1784
|
+
var import_swagger20 = require("@nestjs/swagger");
|
|
1785
|
+
function _ts_decorate30(decorators, target, key, desc) {
|
|
1526
1786
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1527
1787
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1528
1788
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1529
1789
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1530
1790
|
}
|
|
1531
|
-
__name(
|
|
1532
|
-
function
|
|
1791
|
+
__name(_ts_decorate30, "_ts_decorate");
|
|
1792
|
+
function _ts_metadata30(k, v) {
|
|
1533
1793
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1534
1794
|
}
|
|
1535
|
-
__name(
|
|
1795
|
+
__name(_ts_metadata30, "_ts_metadata");
|
|
1536
1796
|
var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
|
|
1537
1797
|
constructor() {
|
|
1538
1798
|
super(...arguments);
|
|
@@ -1541,28 +1801,28 @@ var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
|
|
|
1541
1801
|
};
|
|
1542
1802
|
__name(_CommentTreeDto, "CommentTreeDto");
|
|
1543
1803
|
var CommentTreeDto = _CommentTreeDto;
|
|
1544
|
-
|
|
1545
|
-
(0,
|
|
1804
|
+
_ts_decorate30([
|
|
1805
|
+
(0, import_swagger20.ApiProperty)({
|
|
1546
1806
|
type: [
|
|
1547
1807
|
CommentTreeDto
|
|
1548
1808
|
]
|
|
1549
1809
|
}),
|
|
1550
|
-
|
|
1810
|
+
_ts_metadata30("design:type", Array)
|
|
1551
1811
|
], CommentTreeDto.prototype, "replies", void 0);
|
|
1552
1812
|
|
|
1553
1813
|
// dto/comments/paginated_comment.dto.ts
|
|
1554
|
-
var
|
|
1555
|
-
function
|
|
1814
|
+
var import_swagger21 = require("@nestjs/swagger");
|
|
1815
|
+
function _ts_decorate31(decorators, target, key, desc) {
|
|
1556
1816
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1557
1817
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1558
1818
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1559
1819
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1560
1820
|
}
|
|
1561
|
-
__name(
|
|
1562
|
-
function
|
|
1821
|
+
__name(_ts_decorate31, "_ts_decorate");
|
|
1822
|
+
function _ts_metadata31(k, v) {
|
|
1563
1823
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1564
1824
|
}
|
|
1565
|
-
__name(
|
|
1825
|
+
__name(_ts_metadata31, "_ts_metadata");
|
|
1566
1826
|
var _PaginatedCommentsDto = class _PaginatedCommentsDto {
|
|
1567
1827
|
constructor() {
|
|
1568
1828
|
__publicField(this, "comments");
|
|
@@ -1573,47 +1833,47 @@ var _PaginatedCommentsDto = class _PaginatedCommentsDto {
|
|
|
1573
1833
|
};
|
|
1574
1834
|
__name(_PaginatedCommentsDto, "PaginatedCommentsDto");
|
|
1575
1835
|
var PaginatedCommentsDto = _PaginatedCommentsDto;
|
|
1576
|
-
|
|
1577
|
-
(0,
|
|
1836
|
+
_ts_decorate31([
|
|
1837
|
+
(0, import_swagger21.ApiProperty)({
|
|
1578
1838
|
type: [
|
|
1579
1839
|
CommentResponseDto
|
|
1580
1840
|
]
|
|
1581
1841
|
}),
|
|
1582
|
-
|
|
1842
|
+
_ts_metadata31("design:type", Array)
|
|
1583
1843
|
], PaginatedCommentsDto.prototype, "comments", void 0);
|
|
1584
|
-
|
|
1585
|
-
(0,
|
|
1844
|
+
_ts_decorate31([
|
|
1845
|
+
(0, import_swagger21.ApiProperty)({
|
|
1586
1846
|
example: 50
|
|
1587
1847
|
}),
|
|
1588
|
-
|
|
1848
|
+
_ts_metadata31("design:type", Number)
|
|
1589
1849
|
], PaginatedCommentsDto.prototype, "total", void 0);
|
|
1590
|
-
|
|
1591
|
-
(0,
|
|
1850
|
+
_ts_decorate31([
|
|
1851
|
+
(0, import_swagger21.ApiProperty)({
|
|
1592
1852
|
example: 1
|
|
1593
1853
|
}),
|
|
1594
|
-
|
|
1854
|
+
_ts_metadata31("design:type", Number)
|
|
1595
1855
|
], PaginatedCommentsDto.prototype, "page", void 0);
|
|
1596
|
-
|
|
1597
|
-
(0,
|
|
1856
|
+
_ts_decorate31([
|
|
1857
|
+
(0, import_swagger21.ApiProperty)({
|
|
1598
1858
|
example: 5
|
|
1599
1859
|
}),
|
|
1600
|
-
|
|
1860
|
+
_ts_metadata31("design:type", Number)
|
|
1601
1861
|
], PaginatedCommentsDto.prototype, "totalPages", void 0);
|
|
1602
1862
|
|
|
1603
1863
|
// dto/comments/update_comment.dto.ts
|
|
1604
|
-
var
|
|
1864
|
+
var import_swagger22 = require("@nestjs/swagger");
|
|
1605
1865
|
var import_class_validator21 = require("class-validator");
|
|
1606
|
-
function
|
|
1866
|
+
function _ts_decorate32(decorators, target, key, desc) {
|
|
1607
1867
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1608
1868
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1609
1869
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1610
1870
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1611
1871
|
}
|
|
1612
|
-
__name(
|
|
1613
|
-
function
|
|
1872
|
+
__name(_ts_decorate32, "_ts_decorate");
|
|
1873
|
+
function _ts_metadata32(k, v) {
|
|
1614
1874
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1615
1875
|
}
|
|
1616
|
-
__name(
|
|
1876
|
+
__name(_ts_metadata32, "_ts_metadata");
|
|
1617
1877
|
var _UpdateCommentDto = class _UpdateCommentDto {
|
|
1618
1878
|
constructor() {
|
|
1619
1879
|
__publicField(this, "content");
|
|
@@ -1621,8 +1881,8 @@ var _UpdateCommentDto = class _UpdateCommentDto {
|
|
|
1621
1881
|
};
|
|
1622
1882
|
__name(_UpdateCommentDto, "UpdateCommentDto");
|
|
1623
1883
|
var UpdateCommentDto = _UpdateCommentDto;
|
|
1624
|
-
|
|
1625
|
-
(0,
|
|
1884
|
+
_ts_decorate32([
|
|
1885
|
+
(0, import_swagger22.ApiProperty)({
|
|
1626
1886
|
description: "Updated comment content",
|
|
1627
1887
|
example: "Updated: Great post!",
|
|
1628
1888
|
minLength: 1,
|
|
@@ -1632,7 +1892,7 @@ _ts_decorate31([
|
|
|
1632
1892
|
(0, import_class_validator21.IsNotEmpty)(),
|
|
1633
1893
|
(0, import_class_validator21.MinLength)(1),
|
|
1634
1894
|
(0, import_class_validator21.MaxLength)(5e3),
|
|
1635
|
-
|
|
1895
|
+
_ts_metadata32("design:type", String)
|
|
1636
1896
|
], UpdateCommentDto.prototype, "content", void 0);
|
|
1637
1897
|
|
|
1638
1898
|
// dto/comments/comment_fields.dto.ts
|
|
@@ -1657,19 +1917,19 @@ __name(_CommentFields, "CommentFields");
|
|
|
1657
1917
|
var CommentFields = _CommentFields;
|
|
1658
1918
|
|
|
1659
1919
|
// dto/comments/like_comment.dto.ts
|
|
1660
|
-
var
|
|
1920
|
+
var import_swagger23 = require("@nestjs/swagger");
|
|
1661
1921
|
var import_class_validator22 = require("class-validator");
|
|
1662
|
-
function
|
|
1922
|
+
function _ts_decorate33(decorators, target, key, desc) {
|
|
1663
1923
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1664
1924
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1665
1925
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1666
1926
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1667
1927
|
}
|
|
1668
|
-
__name(
|
|
1669
|
-
function
|
|
1928
|
+
__name(_ts_decorate33, "_ts_decorate");
|
|
1929
|
+
function _ts_metadata33(k, v) {
|
|
1670
1930
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1671
1931
|
}
|
|
1672
|
-
__name(
|
|
1932
|
+
__name(_ts_metadata33, "_ts_metadata");
|
|
1673
1933
|
var _LikeCommentDto = class _LikeCommentDto {
|
|
1674
1934
|
constructor() {
|
|
1675
1935
|
__publicField(this, "type");
|
|
@@ -1677,8 +1937,8 @@ var _LikeCommentDto = class _LikeCommentDto {
|
|
|
1677
1937
|
};
|
|
1678
1938
|
__name(_LikeCommentDto, "LikeCommentDto");
|
|
1679
1939
|
var LikeCommentDto = _LikeCommentDto;
|
|
1680
|
-
|
|
1681
|
-
(0,
|
|
1940
|
+
_ts_decorate33([
|
|
1941
|
+
(0, import_swagger23.ApiProperty)({
|
|
1682
1942
|
description: "The reaction type for the comment",
|
|
1683
1943
|
enum: ReactionType,
|
|
1684
1944
|
required: false,
|
|
@@ -1686,22 +1946,22 @@ _ts_decorate32([
|
|
|
1686
1946
|
}),
|
|
1687
1947
|
(0, import_class_validator22.IsEnum)(ReactionType),
|
|
1688
1948
|
(0, import_class_validator22.IsOptional)(),
|
|
1689
|
-
|
|
1949
|
+
_ts_metadata33("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1690
1950
|
], LikeCommentDto.prototype, "type", void 0);
|
|
1691
1951
|
|
|
1692
1952
|
// dto/comments/comment_like_response.dto.ts
|
|
1693
|
-
var
|
|
1694
|
-
function
|
|
1953
|
+
var import_swagger24 = require("@nestjs/swagger");
|
|
1954
|
+
function _ts_decorate34(decorators, target, key, desc) {
|
|
1695
1955
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1696
1956
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1697
1957
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1698
1958
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1699
1959
|
}
|
|
1700
|
-
__name(
|
|
1701
|
-
function
|
|
1960
|
+
__name(_ts_decorate34, "_ts_decorate");
|
|
1961
|
+
function _ts_metadata34(k, v) {
|
|
1702
1962
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1703
1963
|
}
|
|
1704
|
-
__name(
|
|
1964
|
+
__name(_ts_metadata34, "_ts_metadata");
|
|
1705
1965
|
var _CommentLikeResponseDto = class _CommentLikeResponseDto {
|
|
1706
1966
|
constructor() {
|
|
1707
1967
|
__publicField(this, "id");
|
|
@@ -1716,70 +1976,70 @@ var _CommentLikeResponseDto = class _CommentLikeResponseDto {
|
|
|
1716
1976
|
};
|
|
1717
1977
|
__name(_CommentLikeResponseDto, "CommentLikeResponseDto");
|
|
1718
1978
|
var CommentLikeResponseDto = _CommentLikeResponseDto;
|
|
1719
|
-
|
|
1720
|
-
(0,
|
|
1979
|
+
_ts_decorate34([
|
|
1980
|
+
(0, import_swagger24.ApiProperty)({
|
|
1721
1981
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1722
1982
|
}),
|
|
1723
|
-
|
|
1983
|
+
_ts_metadata34("design:type", String)
|
|
1724
1984
|
], CommentLikeResponseDto.prototype, "id", void 0);
|
|
1725
|
-
|
|
1726
|
-
(0,
|
|
1985
|
+
_ts_decorate34([
|
|
1986
|
+
(0, import_swagger24.ApiProperty)({
|
|
1727
1987
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1728
1988
|
}),
|
|
1729
|
-
|
|
1989
|
+
_ts_metadata34("design:type", String)
|
|
1730
1990
|
], CommentLikeResponseDto.prototype, "commentId", void 0);
|
|
1731
|
-
|
|
1732
|
-
(0,
|
|
1991
|
+
_ts_decorate34([
|
|
1992
|
+
(0, import_swagger24.ApiProperty)({
|
|
1733
1993
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1734
1994
|
}),
|
|
1735
|
-
|
|
1995
|
+
_ts_metadata34("design:type", String)
|
|
1736
1996
|
], CommentLikeResponseDto.prototype, "commentatorId", void 0);
|
|
1737
|
-
|
|
1738
|
-
(0,
|
|
1997
|
+
_ts_decorate34([
|
|
1998
|
+
(0, import_swagger24.ApiProperty)({
|
|
1739
1999
|
example: "Jane Doe"
|
|
1740
2000
|
}),
|
|
1741
|
-
|
|
2001
|
+
_ts_metadata34("design:type", String)
|
|
1742
2002
|
], CommentLikeResponseDto.prototype, "commentatorFullName", void 0);
|
|
1743
|
-
|
|
1744
|
-
(0,
|
|
2003
|
+
_ts_decorate34([
|
|
2004
|
+
(0, import_swagger24.ApiProperty)({
|
|
1745
2005
|
example: "https://example.com/jane.jpg",
|
|
1746
2006
|
nullable: true
|
|
1747
2007
|
}),
|
|
1748
|
-
|
|
2008
|
+
_ts_metadata34("design:type", Object)
|
|
1749
2009
|
], CommentLikeResponseDto.prototype, "commentatorProfilePictureUrl", void 0);
|
|
1750
|
-
|
|
1751
|
-
(0,
|
|
2010
|
+
_ts_decorate34([
|
|
2011
|
+
(0, import_swagger24.ApiProperty)({
|
|
1752
2012
|
enum: ReactionType,
|
|
1753
2013
|
example: ReactionType.HEART
|
|
1754
2014
|
}),
|
|
1755
|
-
|
|
2015
|
+
_ts_metadata34("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1756
2016
|
], CommentLikeResponseDto.prototype, "type", void 0);
|
|
1757
|
-
|
|
1758
|
-
(0,
|
|
2017
|
+
_ts_decorate34([
|
|
2018
|
+
(0, import_swagger24.ApiProperty)({
|
|
1759
2019
|
example: "2024-01-15T10:35:00Z"
|
|
1760
2020
|
}),
|
|
1761
|
-
|
|
2021
|
+
_ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1762
2022
|
], CommentLikeResponseDto.prototype, "createdAt", void 0);
|
|
1763
|
-
|
|
1764
|
-
(0,
|
|
2023
|
+
_ts_decorate34([
|
|
2024
|
+
(0, import_swagger24.ApiProperty)({
|
|
1765
2025
|
example: "2024-01-15T10:35:00Z"
|
|
1766
2026
|
}),
|
|
1767
|
-
|
|
2027
|
+
_ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1768
2028
|
], CommentLikeResponseDto.prototype, "updatedAt", void 0);
|
|
1769
2029
|
|
|
1770
2030
|
// dto/comments/paginated_comment_likes.dto.ts
|
|
1771
|
-
var
|
|
1772
|
-
function
|
|
2031
|
+
var import_swagger25 = require("@nestjs/swagger");
|
|
2032
|
+
function _ts_decorate35(decorators, target, key, desc) {
|
|
1773
2033
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1774
2034
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1775
2035
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1776
2036
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1777
2037
|
}
|
|
1778
|
-
__name(
|
|
1779
|
-
function
|
|
2038
|
+
__name(_ts_decorate35, "_ts_decorate");
|
|
2039
|
+
function _ts_metadata35(k, v) {
|
|
1780
2040
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1781
2041
|
}
|
|
1782
|
-
__name(
|
|
2042
|
+
__name(_ts_metadata35, "_ts_metadata");
|
|
1783
2043
|
var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
1784
2044
|
constructor() {
|
|
1785
2045
|
__publicField(this, "likes");
|
|
@@ -1790,32 +2050,61 @@ var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
|
1790
2050
|
};
|
|
1791
2051
|
__name(_PaginatedCommentLikesDto, "PaginatedCommentLikesDto");
|
|
1792
2052
|
var PaginatedCommentLikesDto = _PaginatedCommentLikesDto;
|
|
1793
|
-
|
|
1794
|
-
(0,
|
|
2053
|
+
_ts_decorate35([
|
|
2054
|
+
(0, import_swagger25.ApiProperty)({
|
|
1795
2055
|
type: [
|
|
1796
2056
|
CommentLikeResponseDto
|
|
1797
2057
|
]
|
|
1798
2058
|
}),
|
|
1799
|
-
|
|
2059
|
+
_ts_metadata35("design:type", Array)
|
|
1800
2060
|
], PaginatedCommentLikesDto.prototype, "likes", void 0);
|
|
1801
|
-
|
|
1802
|
-
(0,
|
|
2061
|
+
_ts_decorate35([
|
|
2062
|
+
(0, import_swagger25.ApiProperty)({
|
|
1803
2063
|
example: 120
|
|
1804
2064
|
}),
|
|
1805
|
-
|
|
2065
|
+
_ts_metadata35("design:type", Number)
|
|
1806
2066
|
], PaginatedCommentLikesDto.prototype, "total", void 0);
|
|
1807
|
-
|
|
1808
|
-
(0,
|
|
2067
|
+
_ts_decorate35([
|
|
2068
|
+
(0, import_swagger25.ApiProperty)({
|
|
1809
2069
|
example: 1
|
|
1810
2070
|
}),
|
|
1811
|
-
|
|
2071
|
+
_ts_metadata35("design:type", Number)
|
|
1812
2072
|
], PaginatedCommentLikesDto.prototype, "page", void 0);
|
|
1813
|
-
|
|
1814
|
-
(0,
|
|
2073
|
+
_ts_decorate35([
|
|
2074
|
+
(0, import_swagger25.ApiProperty)({
|
|
1815
2075
|
example: 6
|
|
1816
2076
|
}),
|
|
1817
|
-
|
|
2077
|
+
_ts_metadata35("design:type", Number)
|
|
1818
2078
|
], PaginatedCommentLikesDto.prototype, "totalPages", void 0);
|
|
2079
|
+
|
|
2080
|
+
// dto/tags/create_find_tag.dto.ts
|
|
2081
|
+
var _CreateOrGetTagDto = class _CreateOrGetTagDto {
|
|
2082
|
+
constructor() {
|
|
2083
|
+
__publicField(this, "name");
|
|
2084
|
+
__publicField(this, "sector");
|
|
2085
|
+
__publicField(this, "type");
|
|
2086
|
+
}
|
|
2087
|
+
};
|
|
2088
|
+
__name(_CreateOrGetTagDto, "CreateOrGetTagDto");
|
|
2089
|
+
var CreateOrGetTagDto = _CreateOrGetTagDto;
|
|
2090
|
+
|
|
2091
|
+
// dto/tags/get_tag_by_sector.dto.ts
|
|
2092
|
+
var _GetTagsBySectorDto = class _GetTagsBySectorDto {
|
|
2093
|
+
constructor() {
|
|
2094
|
+
__publicField(this, "sector");
|
|
2095
|
+
}
|
|
2096
|
+
};
|
|
2097
|
+
__name(_GetTagsBySectorDto, "GetTagsBySectorDto");
|
|
2098
|
+
var GetTagsBySectorDto = _GetTagsBySectorDto;
|
|
2099
|
+
|
|
2100
|
+
// dto/tags/search_tag.dto.ts
|
|
2101
|
+
var _SearchTagsDto = class _SearchTagsDto {
|
|
2102
|
+
constructor() {
|
|
2103
|
+
__publicField(this, "name");
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
__name(_SearchTagsDto, "SearchTagsDto");
|
|
2107
|
+
var SearchTagsDto = _SearchTagsDto;
|
|
1819
2108
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1820
2109
|
0 && (module.exports = {
|
|
1821
2110
|
BusinessSector,
|
|
@@ -1824,6 +2113,7 @@ _ts_decorate34([
|
|
|
1824
2113
|
CommentResponseDto,
|
|
1825
2114
|
CommentTreeDto,
|
|
1826
2115
|
CreateCommentDto,
|
|
2116
|
+
CreateOrGetTagDto,
|
|
1827
2117
|
CreatePostDto,
|
|
1828
2118
|
CreatePostFileDto,
|
|
1829
2119
|
CreateUserDto,
|
|
@@ -1835,6 +2125,7 @@ _ts_decorate34([
|
|
|
1835
2125
|
FindAllUsersDto,
|
|
1836
2126
|
FindByRoleDto,
|
|
1837
2127
|
ForgotPasswordDto,
|
|
2128
|
+
GetTagsBySectorDto,
|
|
1838
2129
|
LikeCommentDto,
|
|
1839
2130
|
LikePostDto,
|
|
1840
2131
|
LoginLocalDTO,
|
|
@@ -1848,10 +2139,13 @@ _ts_decorate34([
|
|
|
1848
2139
|
PostLikeResponseDto,
|
|
1849
2140
|
PostResponseDto,
|
|
1850
2141
|
PostResponseSelfDto,
|
|
2142
|
+
ProfessionalProfileResponseDto,
|
|
1851
2143
|
ReactionType,
|
|
1852
2144
|
ReorderDto,
|
|
1853
2145
|
ResetPasswordDto,
|
|
2146
|
+
SearchTagsDto,
|
|
1854
2147
|
SearchUsersByFullNameDTO,
|
|
2148
|
+
TagResponseDto,
|
|
1855
2149
|
UpdateCommentDto,
|
|
1856
2150
|
UpdatePasswordDto,
|
|
1857
2151
|
UpdatePostDto,
|