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