@feresmeryas/microservices-common 1.5.29 → 1.5.30
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 +66 -3
- package/dist/index.d.ts +66 -3
- package/dist/index.js +759 -433
- package/dist/index.mjs +726 -410
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -706,8 +706,9 @@ _ts_decorate12([
|
|
|
706
706
|
_ts_metadata12("design:type", String)
|
|
707
707
|
], SearchUsersByFullNameDTO.prototype, "fullName", void 0);
|
|
708
708
|
|
|
709
|
-
// dto/
|
|
710
|
-
import {
|
|
709
|
+
// dto/users/update_professional_profile.dto.ts
|
|
710
|
+
import { ApiPropertyOptional as ApiPropertyOptional4 } from "@nestjs/swagger";
|
|
711
|
+
import { IsOptional as IsOptional5, IsEnum as IsEnum2, IsString as IsString8, MaxLength as MaxLength5, IsUrl as IsUrl2, IsInt as IsInt3, Min as Min3, IsNumber } from "class-validator";
|
|
711
712
|
function _ts_decorate13(decorators, target, key, desc) {
|
|
712
713
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
713
714
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -719,6 +720,183 @@ function _ts_metadata13(k, v) {
|
|
|
719
720
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
720
721
|
}
|
|
721
722
|
__name(_ts_metadata13, "_ts_metadata");
|
|
723
|
+
var _UpdateProfessionalProfileDto = class _UpdateProfessionalProfileDto {
|
|
724
|
+
constructor() {
|
|
725
|
+
__publicField(this, "businessSector");
|
|
726
|
+
__publicField(this, "bio");
|
|
727
|
+
__publicField(this, "companyName");
|
|
728
|
+
__publicField(this, "website");
|
|
729
|
+
__publicField(this, "phone");
|
|
730
|
+
__publicField(this, "location");
|
|
731
|
+
__publicField(this, "yearsOfExperience");
|
|
732
|
+
__publicField(this, "hourlyRate");
|
|
733
|
+
__publicField(this, "availabilityStatus");
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
__name(_UpdateProfessionalProfileDto, "UpdateProfessionalProfileDto");
|
|
737
|
+
var UpdateProfessionalProfileDto = _UpdateProfessionalProfileDto;
|
|
738
|
+
_ts_decorate13([
|
|
739
|
+
ApiPropertyOptional4({
|
|
740
|
+
enum: BusinessSector,
|
|
741
|
+
example: BusinessSector.IT_SOFTWARE,
|
|
742
|
+
description: "Business sector"
|
|
743
|
+
}),
|
|
744
|
+
IsOptional5(),
|
|
745
|
+
IsEnum2(BusinessSector),
|
|
746
|
+
_ts_metadata13("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
747
|
+
], UpdateProfessionalProfileDto.prototype, "businessSector", void 0);
|
|
748
|
+
_ts_decorate13([
|
|
749
|
+
ApiPropertyOptional4({
|
|
750
|
+
example: "Experienced software developer specializing in web applications",
|
|
751
|
+
description: "Professional bio"
|
|
752
|
+
}),
|
|
753
|
+
IsOptional5(),
|
|
754
|
+
IsString8(),
|
|
755
|
+
MaxLength5(1e3),
|
|
756
|
+
_ts_metadata13("design:type", String)
|
|
757
|
+
], UpdateProfessionalProfileDto.prototype, "bio", void 0);
|
|
758
|
+
_ts_decorate13([
|
|
759
|
+
ApiPropertyOptional4({
|
|
760
|
+
example: "Tech Solutions Inc.",
|
|
761
|
+
description: "Company name"
|
|
762
|
+
}),
|
|
763
|
+
IsOptional5(),
|
|
764
|
+
IsString8(),
|
|
765
|
+
MaxLength5(200),
|
|
766
|
+
_ts_metadata13("design:type", String)
|
|
767
|
+
], UpdateProfessionalProfileDto.prototype, "companyName", void 0);
|
|
768
|
+
_ts_decorate13([
|
|
769
|
+
ApiPropertyOptional4({
|
|
770
|
+
example: "https://www.example.com",
|
|
771
|
+
description: "Professional website URL"
|
|
772
|
+
}),
|
|
773
|
+
IsOptional5(),
|
|
774
|
+
IsUrl2(),
|
|
775
|
+
_ts_metadata13("design:type", String)
|
|
776
|
+
], UpdateProfessionalProfileDto.prototype, "website", void 0);
|
|
777
|
+
_ts_decorate13([
|
|
778
|
+
ApiPropertyOptional4({
|
|
779
|
+
example: "+1234567890",
|
|
780
|
+
description: "Contact phone number"
|
|
781
|
+
}),
|
|
782
|
+
IsOptional5(),
|
|
783
|
+
IsString8(),
|
|
784
|
+
_ts_metadata13("design:type", String)
|
|
785
|
+
], UpdateProfessionalProfileDto.prototype, "phone", void 0);
|
|
786
|
+
_ts_decorate13([
|
|
787
|
+
ApiPropertyOptional4({
|
|
788
|
+
example: "New York, USA",
|
|
789
|
+
description: "Location/City"
|
|
790
|
+
}),
|
|
791
|
+
IsOptional5(),
|
|
792
|
+
IsString8(),
|
|
793
|
+
MaxLength5(200),
|
|
794
|
+
_ts_metadata13("design:type", String)
|
|
795
|
+
], UpdateProfessionalProfileDto.prototype, "location", void 0);
|
|
796
|
+
_ts_decorate13([
|
|
797
|
+
ApiPropertyOptional4({
|
|
798
|
+
example: 5,
|
|
799
|
+
description: "Years of professional experience"
|
|
800
|
+
}),
|
|
801
|
+
IsOptional5(),
|
|
802
|
+
IsInt3(),
|
|
803
|
+
Min3(0),
|
|
804
|
+
_ts_metadata13("design:type", Number)
|
|
805
|
+
], UpdateProfessionalProfileDto.prototype, "yearsOfExperience", void 0);
|
|
806
|
+
_ts_decorate13([
|
|
807
|
+
ApiPropertyOptional4({
|
|
808
|
+
example: 75.5,
|
|
809
|
+
description: "Hourly rate in USD"
|
|
810
|
+
}),
|
|
811
|
+
IsOptional5(),
|
|
812
|
+
IsNumber(),
|
|
813
|
+
Min3(0),
|
|
814
|
+
_ts_metadata13("design:type", Number)
|
|
815
|
+
], UpdateProfessionalProfileDto.prototype, "hourlyRate", void 0);
|
|
816
|
+
_ts_decorate13([
|
|
817
|
+
ApiPropertyOptional4({
|
|
818
|
+
example: "available",
|
|
819
|
+
description: "Availability status",
|
|
820
|
+
enum: [
|
|
821
|
+
"available",
|
|
822
|
+
"busy",
|
|
823
|
+
"unavailable"
|
|
824
|
+
]
|
|
825
|
+
}),
|
|
826
|
+
IsOptional5(),
|
|
827
|
+
IsString8(),
|
|
828
|
+
_ts_metadata13("design:type", String)
|
|
829
|
+
], UpdateProfessionalProfileDto.prototype, "availabilityStatus", void 0);
|
|
830
|
+
|
|
831
|
+
// dto/users/create_report.dto.ts
|
|
832
|
+
import { IsEnum as IsEnum3, IsNotEmpty as IsNotEmpty4, IsString as IsString9, IsUUID, MaxLength as MaxLength6, MinLength as MinLength6 } from "class-validator";
|
|
833
|
+
|
|
834
|
+
// enums/ReportCategory.enum.ts
|
|
835
|
+
var ReportCategory = /* @__PURE__ */ (function(ReportCategory2) {
|
|
836
|
+
ReportCategory2["SPAM"] = "SPAM";
|
|
837
|
+
ReportCategory2["HARASSMENT"] = "HARASSMENT";
|
|
838
|
+
ReportCategory2["INAPPROPRIATE_CONTENT"] = "INAPPROPRIATE_CONTENT";
|
|
839
|
+
ReportCategory2["FAKE_ACCOUNT"] = "FAKE_ACCOUNT";
|
|
840
|
+
ReportCategory2["IMPERSONATION"] = "IMPERSONATION";
|
|
841
|
+
ReportCategory2["HATE_SPEECH"] = "HATE_SPEECH";
|
|
842
|
+
ReportCategory2["VIOLENCE"] = "VIOLENCE";
|
|
843
|
+
ReportCategory2["SCAM"] = "SCAM";
|
|
844
|
+
ReportCategory2["OTHER"] = "OTHER";
|
|
845
|
+
return ReportCategory2;
|
|
846
|
+
})({});
|
|
847
|
+
|
|
848
|
+
// dto/users/create_report.dto.ts
|
|
849
|
+
function _ts_decorate14(decorators, target, key, desc) {
|
|
850
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
851
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
852
|
+
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;
|
|
853
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
854
|
+
}
|
|
855
|
+
__name(_ts_decorate14, "_ts_decorate");
|
|
856
|
+
function _ts_metadata14(k, v) {
|
|
857
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
858
|
+
}
|
|
859
|
+
__name(_ts_metadata14, "_ts_metadata");
|
|
860
|
+
var _CreateReportDto = class _CreateReportDto {
|
|
861
|
+
constructor() {
|
|
862
|
+
__publicField(this, "reportedUserId");
|
|
863
|
+
__publicField(this, "category");
|
|
864
|
+
__publicField(this, "description");
|
|
865
|
+
}
|
|
866
|
+
};
|
|
867
|
+
__name(_CreateReportDto, "CreateReportDto");
|
|
868
|
+
var CreateReportDto = _CreateReportDto;
|
|
869
|
+
_ts_decorate14([
|
|
870
|
+
IsUUID(),
|
|
871
|
+
IsNotEmpty4(),
|
|
872
|
+
_ts_metadata14("design:type", String)
|
|
873
|
+
], CreateReportDto.prototype, "reportedUserId", void 0);
|
|
874
|
+
_ts_decorate14([
|
|
875
|
+
IsEnum3(ReportCategory),
|
|
876
|
+
IsNotEmpty4(),
|
|
877
|
+
_ts_metadata14("design:type", typeof ReportCategory === "undefined" ? Object : ReportCategory)
|
|
878
|
+
], CreateReportDto.prototype, "category", void 0);
|
|
879
|
+
_ts_decorate14([
|
|
880
|
+
IsString9(),
|
|
881
|
+
IsNotEmpty4(),
|
|
882
|
+
MinLength6(10),
|
|
883
|
+
MaxLength6(1e3),
|
|
884
|
+
_ts_metadata14("design:type", String)
|
|
885
|
+
], CreateReportDto.prototype, "description", void 0);
|
|
886
|
+
|
|
887
|
+
// dto/storage/delete-file.dto.ts
|
|
888
|
+
import { IsString as IsString10, IsNotEmpty as IsNotEmpty5 } from "class-validator";
|
|
889
|
+
function _ts_decorate15(decorators, target, key, desc) {
|
|
890
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
891
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
892
|
+
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;
|
|
893
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
894
|
+
}
|
|
895
|
+
__name(_ts_decorate15, "_ts_decorate");
|
|
896
|
+
function _ts_metadata15(k, v) {
|
|
897
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
898
|
+
}
|
|
899
|
+
__name(_ts_metadata15, "_ts_metadata");
|
|
722
900
|
var _DeleteFileDto = class _DeleteFileDto {
|
|
723
901
|
constructor() {
|
|
724
902
|
__publicField(this, "fileUrl");
|
|
@@ -726,10 +904,10 @@ var _DeleteFileDto = class _DeleteFileDto {
|
|
|
726
904
|
};
|
|
727
905
|
__name(_DeleteFileDto, "DeleteFileDto");
|
|
728
906
|
var DeleteFileDto = _DeleteFileDto;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
907
|
+
_ts_decorate15([
|
|
908
|
+
IsString10(),
|
|
909
|
+
IsNotEmpty5(),
|
|
910
|
+
_ts_metadata15("design:type", String)
|
|
733
911
|
], DeleteFileDto.prototype, "fileUrl", void 0);
|
|
734
912
|
|
|
735
913
|
// dto/storage/file-response.dto.ts
|
|
@@ -746,18 +924,18 @@ __name(_FileResponseDto, "FileResponseDto");
|
|
|
746
924
|
var FileResponseDto = _FileResponseDto;
|
|
747
925
|
|
|
748
926
|
// dto/storage/upload-file.dto.ts
|
|
749
|
-
import { IsString as
|
|
750
|
-
function
|
|
927
|
+
import { IsString as IsString11, IsNotEmpty as IsNotEmpty6, IsEnum as IsEnum4, IsOptional as IsOptional6 } from "class-validator";
|
|
928
|
+
function _ts_decorate16(decorators, target, key, desc) {
|
|
751
929
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
752
930
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
753
931
|
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;
|
|
754
932
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
755
933
|
}
|
|
756
|
-
__name(
|
|
757
|
-
function
|
|
934
|
+
__name(_ts_decorate16, "_ts_decorate");
|
|
935
|
+
function _ts_metadata16(k, v) {
|
|
758
936
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
759
937
|
}
|
|
760
|
-
__name(
|
|
938
|
+
__name(_ts_metadata16, "_ts_metadata");
|
|
761
939
|
var FileCategory = /* @__PURE__ */ (function(FileCategory2) {
|
|
762
940
|
FileCategory2["PROFILE_PICTURES"] = "profile-pictures";
|
|
763
941
|
FileCategory2["POST_IMAGES"] = "post-images";
|
|
@@ -779,24 +957,24 @@ var _UploadFileDto = class _UploadFileDto {
|
|
|
779
957
|
};
|
|
780
958
|
__name(_UploadFileDto, "UploadFileDto");
|
|
781
959
|
var UploadFileDto = _UploadFileDto;
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
960
|
+
_ts_decorate16([
|
|
961
|
+
IsString11(),
|
|
962
|
+
IsNotEmpty6(),
|
|
963
|
+
_ts_metadata16("design:type", String)
|
|
786
964
|
], UploadFileDto.prototype, "userId", void 0);
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
965
|
+
_ts_decorate16([
|
|
966
|
+
IsEnum4(FileCategory),
|
|
967
|
+
_ts_metadata16("design:type", String)
|
|
790
968
|
], UploadFileDto.prototype, "category", void 0);
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
969
|
+
_ts_decorate16([
|
|
970
|
+
IsString11(),
|
|
971
|
+
IsNotEmpty6(),
|
|
972
|
+
_ts_metadata16("design:type", String)
|
|
795
973
|
], UploadFileDto.prototype, "fileName", void 0);
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
974
|
+
_ts_decorate16([
|
|
975
|
+
IsString11(),
|
|
976
|
+
IsOptional6(),
|
|
977
|
+
_ts_metadata16("design:type", String)
|
|
800
978
|
], UploadFileDto.prototype, "mimeType", void 0);
|
|
801
979
|
|
|
802
980
|
// dto/shared/reaction_type.enum.ts
|
|
@@ -811,22 +989,22 @@ var ReactionType = /* @__PURE__ */ (function(ReactionType2) {
|
|
|
811
989
|
|
|
812
990
|
// dto/posts/create_post.dto.ts
|
|
813
991
|
import { ApiProperty as ApiProperty7 } from "@nestjs/swagger";
|
|
814
|
-
import { IsArray, IsEnum as
|
|
992
|
+
import { IsArray, IsEnum as IsEnum5, IsNotEmpty as IsNotEmpty8, IsOptional as IsOptional8, IsString as IsString13, MaxLength as MaxLength7, MinLength as MinLength7, ValidateNested } from "class-validator";
|
|
815
993
|
|
|
816
994
|
// dto/posts/create_post._file.dto.ts
|
|
817
|
-
import { IsString as
|
|
995
|
+
import { IsString as IsString12, IsNotEmpty as IsNotEmpty7, IsOptional as IsOptional7 } from "class-validator";
|
|
818
996
|
import { ApiProperty as ApiProperty6 } from "@nestjs/swagger";
|
|
819
|
-
function
|
|
997
|
+
function _ts_decorate17(decorators, target, key, desc) {
|
|
820
998
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
821
999
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
822
1000
|
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;
|
|
823
1001
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
824
1002
|
}
|
|
825
|
-
__name(
|
|
826
|
-
function
|
|
1003
|
+
__name(_ts_decorate17, "_ts_decorate");
|
|
1004
|
+
function _ts_metadata17(k, v) {
|
|
827
1005
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
828
1006
|
}
|
|
829
|
-
__name(
|
|
1007
|
+
__name(_ts_metadata17, "_ts_metadata");
|
|
830
1008
|
var _CreatePostFileDto = class _CreatePostFileDto {
|
|
831
1009
|
constructor() {
|
|
832
1010
|
__publicField(this, "fileBuffer");
|
|
@@ -837,35 +1015,35 @@ var _CreatePostFileDto = class _CreatePostFileDto {
|
|
|
837
1015
|
};
|
|
838
1016
|
__name(_CreatePostFileDto, "CreatePostFileDto");
|
|
839
1017
|
var CreatePostFileDto = _CreatePostFileDto;
|
|
840
|
-
|
|
1018
|
+
_ts_decorate17([
|
|
841
1019
|
ApiProperty6({
|
|
842
1020
|
description: "Base64 encoded file",
|
|
843
1021
|
example: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
|
|
844
1022
|
}),
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
1023
|
+
IsString12(),
|
|
1024
|
+
IsNotEmpty7(),
|
|
1025
|
+
_ts_metadata17("design:type", String)
|
|
848
1026
|
], CreatePostFileDto.prototype, "fileBuffer", void 0);
|
|
849
|
-
|
|
1027
|
+
_ts_decorate17([
|
|
850
1028
|
ApiProperty6({
|
|
851
1029
|
description: "File name",
|
|
852
1030
|
example: "vacation-photo.jpg"
|
|
853
1031
|
}),
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
1032
|
+
IsString12(),
|
|
1033
|
+
IsNotEmpty7(),
|
|
1034
|
+
_ts_metadata17("design:type", String)
|
|
857
1035
|
], CreatePostFileDto.prototype, "fileName", void 0);
|
|
858
|
-
|
|
1036
|
+
_ts_decorate17([
|
|
859
1037
|
ApiProperty6({
|
|
860
1038
|
description: "MIME type",
|
|
861
1039
|
example: "image/jpeg",
|
|
862
1040
|
required: false
|
|
863
1041
|
}),
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
1042
|
+
IsString12(),
|
|
1043
|
+
IsOptional7(),
|
|
1044
|
+
_ts_metadata17("design:type", String)
|
|
867
1045
|
], CreatePostFileDto.prototype, "mimeType", void 0);
|
|
868
|
-
|
|
1046
|
+
_ts_decorate17([
|
|
869
1047
|
ApiProperty6({
|
|
870
1048
|
description: "File type",
|
|
871
1049
|
example: "image",
|
|
@@ -874,24 +1052,24 @@ _ts_decorate15([
|
|
|
874
1052
|
"video"
|
|
875
1053
|
]
|
|
876
1054
|
}),
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
1055
|
+
IsString12(),
|
|
1056
|
+
IsNotEmpty7(),
|
|
1057
|
+
_ts_metadata17("design:type", String)
|
|
880
1058
|
], CreatePostFileDto.prototype, "fileType", void 0);
|
|
881
1059
|
|
|
882
1060
|
// dto/posts/create_post.dto.ts
|
|
883
1061
|
import { Type as Type2 } from "class-transformer";
|
|
884
|
-
function
|
|
1062
|
+
function _ts_decorate18(decorators, target, key, desc) {
|
|
885
1063
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
886
1064
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
887
1065
|
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;
|
|
888
1066
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
889
1067
|
}
|
|
890
|
-
__name(
|
|
891
|
-
function
|
|
1068
|
+
__name(_ts_decorate18, "_ts_decorate");
|
|
1069
|
+
function _ts_metadata18(k, v) {
|
|
892
1070
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
893
1071
|
}
|
|
894
|
-
__name(
|
|
1072
|
+
__name(_ts_metadata18, "_ts_metadata");
|
|
895
1073
|
var _CreatePostDto = class _CreatePostDto {
|
|
896
1074
|
constructor() {
|
|
897
1075
|
__publicField(this, "description");
|
|
@@ -901,31 +1079,30 @@ var _CreatePostDto = class _CreatePostDto {
|
|
|
901
1079
|
};
|
|
902
1080
|
__name(_CreatePostDto, "CreatePostDto");
|
|
903
1081
|
var CreatePostDto = _CreatePostDto;
|
|
904
|
-
|
|
1082
|
+
_ts_decorate18([
|
|
905
1083
|
ApiProperty7({
|
|
906
1084
|
description: "Post description/content",
|
|
907
1085
|
example: "Check out this amazing view!",
|
|
908
1086
|
minLength: 1,
|
|
909
1087
|
maxLength: 5e3
|
|
910
1088
|
}),
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
1089
|
+
IsString13(),
|
|
1090
|
+
IsNotEmpty8(),
|
|
1091
|
+
MinLength7(1),
|
|
1092
|
+
MaxLength7(5e3),
|
|
1093
|
+
_ts_metadata18("design:type", String)
|
|
916
1094
|
], CreatePostDto.prototype, "description", void 0);
|
|
917
|
-
|
|
1095
|
+
_ts_decorate18([
|
|
918
1096
|
ApiProperty7({
|
|
919
1097
|
description: "The business sector for the post",
|
|
920
1098
|
enum: BusinessSector,
|
|
921
1099
|
required: true,
|
|
922
1100
|
default: BusinessSector.CONSULTING
|
|
923
1101
|
}),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
_ts_metadata16("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
1102
|
+
IsEnum5(BusinessSector),
|
|
1103
|
+
_ts_metadata18("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
927
1104
|
], CreatePostDto.prototype, "sector", void 0);
|
|
928
|
-
|
|
1105
|
+
_ts_decorate18([
|
|
929
1106
|
ApiProperty7({
|
|
930
1107
|
description: "Array of files to upload with the post",
|
|
931
1108
|
type: [
|
|
@@ -938,26 +1115,26 @@ _ts_decorate16([
|
|
|
938
1115
|
each: true
|
|
939
1116
|
}),
|
|
940
1117
|
Type2(() => CreatePostFileDto),
|
|
941
|
-
|
|
942
|
-
|
|
1118
|
+
IsOptional8(),
|
|
1119
|
+
_ts_metadata18("design:type", Array)
|
|
943
1120
|
], CreatePostDto.prototype, "files", void 0);
|
|
944
1121
|
|
|
945
1122
|
// dto/posts/post_response.dto.ts
|
|
946
|
-
import { ApiProperty as
|
|
1123
|
+
import { ApiProperty as ApiProperty10 } from "@nestjs/swagger";
|
|
947
1124
|
|
|
948
1125
|
// dto/posts/post_file.dto.ts
|
|
949
1126
|
import { ApiProperty as ApiProperty8 } from "@nestjs/swagger";
|
|
950
|
-
function
|
|
1127
|
+
function _ts_decorate19(decorators, target, key, desc) {
|
|
951
1128
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
952
1129
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
953
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;
|
|
954
1131
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
955
1132
|
}
|
|
956
|
-
__name(
|
|
957
|
-
function
|
|
1133
|
+
__name(_ts_decorate19, "_ts_decorate");
|
|
1134
|
+
function _ts_metadata19(k, v) {
|
|
958
1135
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
959
1136
|
}
|
|
960
|
-
__name(
|
|
1137
|
+
__name(_ts_metadata19, "_ts_metadata");
|
|
961
1138
|
var _PostFileDto = class _PostFileDto {
|
|
962
1139
|
constructor() {
|
|
963
1140
|
__publicField(this, "id");
|
|
@@ -970,19 +1147,19 @@ var _PostFileDto = class _PostFileDto {
|
|
|
970
1147
|
};
|
|
971
1148
|
__name(_PostFileDto, "PostFileDto");
|
|
972
1149
|
var PostFileDto = _PostFileDto;
|
|
973
|
-
|
|
1150
|
+
_ts_decorate19([
|
|
974
1151
|
ApiProperty8({
|
|
975
1152
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
976
1153
|
}),
|
|
977
|
-
|
|
1154
|
+
_ts_metadata19("design:type", String)
|
|
978
1155
|
], PostFileDto.prototype, "id", void 0);
|
|
979
|
-
|
|
1156
|
+
_ts_decorate19([
|
|
980
1157
|
ApiProperty8({
|
|
981
1158
|
example: "https://storage.example.com/posts/image.jpg"
|
|
982
1159
|
}),
|
|
983
|
-
|
|
1160
|
+
_ts_metadata19("design:type", String)
|
|
984
1161
|
], PostFileDto.prototype, "fileUrl", void 0);
|
|
985
|
-
|
|
1162
|
+
_ts_decorate19([
|
|
986
1163
|
ApiProperty8({
|
|
987
1164
|
example: "image",
|
|
988
1165
|
enum: [
|
|
@@ -990,41 +1167,85 @@ _ts_decorate17([
|
|
|
990
1167
|
"video"
|
|
991
1168
|
]
|
|
992
1169
|
}),
|
|
993
|
-
|
|
1170
|
+
_ts_metadata19("design:type", String)
|
|
994
1171
|
], PostFileDto.prototype, "fileType", void 0);
|
|
995
|
-
|
|
1172
|
+
_ts_decorate19([
|
|
996
1173
|
ApiProperty8({
|
|
997
1174
|
example: "image/jpeg",
|
|
998
1175
|
nullable: true
|
|
999
1176
|
}),
|
|
1000
|
-
|
|
1177
|
+
_ts_metadata19("design:type", Object)
|
|
1001
1178
|
], PostFileDto.prototype, "mimeType", void 0);
|
|
1002
|
-
|
|
1179
|
+
_ts_decorate19([
|
|
1003
1180
|
ApiProperty8({
|
|
1004
1181
|
example: 0
|
|
1005
1182
|
}),
|
|
1006
|
-
|
|
1183
|
+
_ts_metadata19("design:type", Number)
|
|
1007
1184
|
], PostFileDto.prototype, "orderIndex", void 0);
|
|
1008
|
-
|
|
1185
|
+
_ts_decorate19([
|
|
1009
1186
|
ApiProperty8({
|
|
1010
1187
|
example: "2024-01-15T10:30:00Z"
|
|
1011
1188
|
}),
|
|
1012
|
-
|
|
1189
|
+
_ts_metadata19("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1013
1190
|
], PostFileDto.prototype, "createdAt", void 0);
|
|
1014
1191
|
|
|
1015
1192
|
// dto/posts/post_response.dto.ts
|
|
1016
|
-
import { IsEnum as
|
|
1017
|
-
|
|
1193
|
+
import { IsEnum as IsEnum6 } from "class-validator";
|
|
1194
|
+
|
|
1195
|
+
// dto/tags/tag_response.dto.ts
|
|
1196
|
+
import { ApiProperty as ApiProperty9 } from "@nestjs/swagger";
|
|
1197
|
+
function _ts_decorate20(decorators, target, key, desc) {
|
|
1198
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1199
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1200
|
+
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;
|
|
1201
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1202
|
+
}
|
|
1203
|
+
__name(_ts_decorate20, "_ts_decorate");
|
|
1204
|
+
function _ts_metadata20(k, v) {
|
|
1205
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1206
|
+
}
|
|
1207
|
+
__name(_ts_metadata20, "_ts_metadata");
|
|
1208
|
+
var _TagResponseDto = class _TagResponseDto {
|
|
1209
|
+
constructor() {
|
|
1210
|
+
__publicField(this, "name");
|
|
1211
|
+
__publicField(this, "slug");
|
|
1212
|
+
// Optional: Include id if you need it for specific actions
|
|
1213
|
+
__publicField(this, "id");
|
|
1214
|
+
}
|
|
1215
|
+
};
|
|
1216
|
+
__name(_TagResponseDto, "TagResponseDto");
|
|
1217
|
+
var TagResponseDto = _TagResponseDto;
|
|
1218
|
+
_ts_decorate20([
|
|
1219
|
+
ApiProperty9({
|
|
1220
|
+
example: "React JS"
|
|
1221
|
+
}),
|
|
1222
|
+
_ts_metadata20("design:type", String)
|
|
1223
|
+
], TagResponseDto.prototype, "name", void 0);
|
|
1224
|
+
_ts_decorate20([
|
|
1225
|
+
ApiProperty9({
|
|
1226
|
+
example: "react-js"
|
|
1227
|
+
}),
|
|
1228
|
+
_ts_metadata20("design:type", String)
|
|
1229
|
+
], TagResponseDto.prototype, "slug", void 0);
|
|
1230
|
+
_ts_decorate20([
|
|
1231
|
+
ApiProperty9({
|
|
1232
|
+
example: "uuid-v4-string"
|
|
1233
|
+
}),
|
|
1234
|
+
_ts_metadata20("design:type", String)
|
|
1235
|
+
], TagResponseDto.prototype, "id", void 0);
|
|
1236
|
+
|
|
1237
|
+
// dto/posts/post_response.dto.ts
|
|
1238
|
+
function _ts_decorate21(decorators, target, key, desc) {
|
|
1018
1239
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1019
1240
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1020
1241
|
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;
|
|
1021
1242
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1022
1243
|
}
|
|
1023
|
-
__name(
|
|
1024
|
-
function
|
|
1244
|
+
__name(_ts_decorate21, "_ts_decorate");
|
|
1245
|
+
function _ts_metadata21(k, v) {
|
|
1025
1246
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1026
1247
|
}
|
|
1027
|
-
__name(
|
|
1248
|
+
__name(_ts_metadata21, "_ts_metadata");
|
|
1028
1249
|
var _PostResponseDto = class _PostResponseDto {
|
|
1029
1250
|
constructor() {
|
|
1030
1251
|
__publicField(this, "id");
|
|
@@ -1033,6 +1254,7 @@ var _PostResponseDto = class _PostResponseDto {
|
|
|
1033
1254
|
__publicField(this, "publisherFullName");
|
|
1034
1255
|
__publicField(this, "publisherProfilePictureUrl");
|
|
1035
1256
|
__publicField(this, "files");
|
|
1257
|
+
__publicField(this, "tags");
|
|
1036
1258
|
__publicField(this, "commentsCount");
|
|
1037
1259
|
__publicField(this, "sector");
|
|
1038
1260
|
__publicField(this, "likesCount");
|
|
@@ -1042,93 +1264,102 @@ var _PostResponseDto = class _PostResponseDto {
|
|
|
1042
1264
|
};
|
|
1043
1265
|
__name(_PostResponseDto, "PostResponseDto");
|
|
1044
1266
|
var PostResponseDto = _PostResponseDto;
|
|
1045
|
-
|
|
1046
|
-
|
|
1267
|
+
_ts_decorate21([
|
|
1268
|
+
ApiProperty10({
|
|
1047
1269
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1048
1270
|
}),
|
|
1049
|
-
|
|
1271
|
+
_ts_metadata21("design:type", String)
|
|
1050
1272
|
], PostResponseDto.prototype, "id", void 0);
|
|
1051
|
-
|
|
1052
|
-
|
|
1273
|
+
_ts_decorate21([
|
|
1274
|
+
ApiProperty10({
|
|
1053
1275
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
1054
1276
|
}),
|
|
1055
|
-
|
|
1277
|
+
_ts_metadata21("design:type", String)
|
|
1056
1278
|
], PostResponseDto.prototype, "publisherId", void 0);
|
|
1057
|
-
|
|
1058
|
-
|
|
1279
|
+
_ts_decorate21([
|
|
1280
|
+
ApiProperty10({
|
|
1059
1281
|
example: "Check out this amazing view!"
|
|
1060
1282
|
}),
|
|
1061
|
-
|
|
1283
|
+
_ts_metadata21("design:type", String)
|
|
1062
1284
|
], PostResponseDto.prototype, "description", void 0);
|
|
1063
|
-
|
|
1064
|
-
|
|
1285
|
+
_ts_decorate21([
|
|
1286
|
+
ApiProperty10({
|
|
1065
1287
|
example: "John Doe"
|
|
1066
1288
|
}),
|
|
1067
|
-
|
|
1289
|
+
_ts_metadata21("design:type", String)
|
|
1068
1290
|
], PostResponseDto.prototype, "publisherFullName", void 0);
|
|
1069
|
-
|
|
1070
|
-
|
|
1291
|
+
_ts_decorate21([
|
|
1292
|
+
ApiProperty10({
|
|
1071
1293
|
example: "https://example.com/profile.jpg",
|
|
1072
1294
|
nullable: true
|
|
1073
1295
|
}),
|
|
1074
|
-
|
|
1296
|
+
_ts_metadata21("design:type", Object)
|
|
1075
1297
|
], PostResponseDto.prototype, "publisherProfilePictureUrl", void 0);
|
|
1076
|
-
|
|
1077
|
-
|
|
1298
|
+
_ts_decorate21([
|
|
1299
|
+
ApiProperty10({
|
|
1078
1300
|
type: [
|
|
1079
1301
|
PostFileDto
|
|
1080
1302
|
]
|
|
1081
1303
|
}),
|
|
1082
|
-
|
|
1304
|
+
_ts_metadata21("design:type", Array)
|
|
1083
1305
|
], PostResponseDto.prototype, "files", void 0);
|
|
1084
|
-
|
|
1085
|
-
|
|
1306
|
+
_ts_decorate21([
|
|
1307
|
+
ApiProperty10({
|
|
1308
|
+
type: [
|
|
1309
|
+
TagResponseDto
|
|
1310
|
+
],
|
|
1311
|
+
description: "List of tags associated with the post"
|
|
1312
|
+
}),
|
|
1313
|
+
_ts_metadata21("design:type", Array)
|
|
1314
|
+
], PostResponseDto.prototype, "tags", void 0);
|
|
1315
|
+
_ts_decorate21([
|
|
1316
|
+
ApiProperty10({
|
|
1086
1317
|
example: 42
|
|
1087
1318
|
}),
|
|
1088
|
-
|
|
1319
|
+
_ts_metadata21("design:type", Number)
|
|
1089
1320
|
], PostResponseDto.prototype, "commentsCount", void 0);
|
|
1090
|
-
|
|
1091
|
-
|
|
1321
|
+
_ts_decorate21([
|
|
1322
|
+
ApiProperty10({
|
|
1092
1323
|
description: "The Bunsieess sector type for the post",
|
|
1093
1324
|
enum: BusinessSector,
|
|
1094
1325
|
required: false,
|
|
1095
1326
|
default: BusinessSector.CONSULTING
|
|
1096
1327
|
}),
|
|
1097
|
-
|
|
1098
|
-
|
|
1328
|
+
IsEnum6(BusinessSector),
|
|
1329
|
+
_ts_metadata21("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
1099
1330
|
], PostResponseDto.prototype, "sector", void 0);
|
|
1100
|
-
|
|
1101
|
-
|
|
1331
|
+
_ts_decorate21([
|
|
1332
|
+
ApiProperty10({
|
|
1102
1333
|
example: 128
|
|
1103
1334
|
}),
|
|
1104
|
-
|
|
1335
|
+
_ts_metadata21("design:type", Number)
|
|
1105
1336
|
], PostResponseDto.prototype, "likesCount", void 0);
|
|
1106
|
-
|
|
1107
|
-
|
|
1337
|
+
_ts_decorate21([
|
|
1338
|
+
ApiProperty10({
|
|
1108
1339
|
example: "2024-01-15T10:30:00Z"
|
|
1109
1340
|
}),
|
|
1110
|
-
|
|
1341
|
+
_ts_metadata21("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1111
1342
|
], PostResponseDto.prototype, "createdAt", void 0);
|
|
1112
|
-
|
|
1113
|
-
|
|
1343
|
+
_ts_decorate21([
|
|
1344
|
+
ApiProperty10({
|
|
1114
1345
|
example: "2024-01-15T10:30:00Z"
|
|
1115
1346
|
}),
|
|
1116
|
-
|
|
1347
|
+
_ts_metadata21("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1117
1348
|
], PostResponseDto.prototype, "updatedAt", void 0);
|
|
1118
1349
|
|
|
1119
1350
|
// dto/posts/pagination_post.dto.ts
|
|
1120
|
-
import { ApiProperty as
|
|
1121
|
-
function
|
|
1351
|
+
import { ApiProperty as ApiProperty11 } from "@nestjs/swagger";
|
|
1352
|
+
function _ts_decorate22(decorators, target, key, desc) {
|
|
1122
1353
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1123
1354
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1124
1355
|
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;
|
|
1125
1356
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1126
1357
|
}
|
|
1127
|
-
__name(
|
|
1128
|
-
function
|
|
1358
|
+
__name(_ts_decorate22, "_ts_decorate");
|
|
1359
|
+
function _ts_metadata22(k, v) {
|
|
1129
1360
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1130
1361
|
}
|
|
1131
|
-
__name(
|
|
1362
|
+
__name(_ts_metadata22, "_ts_metadata");
|
|
1132
1363
|
var _PaginatedPostsDto = class _PaginatedPostsDto {
|
|
1133
1364
|
constructor() {
|
|
1134
1365
|
__publicField(this, "posts");
|
|
@@ -1139,47 +1370,47 @@ var _PaginatedPostsDto = class _PaginatedPostsDto {
|
|
|
1139
1370
|
};
|
|
1140
1371
|
__name(_PaginatedPostsDto, "PaginatedPostsDto");
|
|
1141
1372
|
var PaginatedPostsDto = _PaginatedPostsDto;
|
|
1142
|
-
|
|
1143
|
-
|
|
1373
|
+
_ts_decorate22([
|
|
1374
|
+
ApiProperty11({
|
|
1144
1375
|
type: [
|
|
1145
1376
|
PostResponseDto
|
|
1146
1377
|
]
|
|
1147
1378
|
}),
|
|
1148
|
-
|
|
1379
|
+
_ts_metadata22("design:type", Array)
|
|
1149
1380
|
], PaginatedPostsDto.prototype, "posts", void 0);
|
|
1150
|
-
|
|
1151
|
-
|
|
1381
|
+
_ts_decorate22([
|
|
1382
|
+
ApiProperty11({
|
|
1152
1383
|
example: 100
|
|
1153
1384
|
}),
|
|
1154
|
-
|
|
1385
|
+
_ts_metadata22("design:type", Number)
|
|
1155
1386
|
], PaginatedPostsDto.prototype, "total", void 0);
|
|
1156
|
-
|
|
1157
|
-
|
|
1387
|
+
_ts_decorate22([
|
|
1388
|
+
ApiProperty11({
|
|
1158
1389
|
example: 1
|
|
1159
1390
|
}),
|
|
1160
|
-
|
|
1391
|
+
_ts_metadata22("design:type", Number)
|
|
1161
1392
|
], PaginatedPostsDto.prototype, "page", void 0);
|
|
1162
|
-
|
|
1163
|
-
|
|
1393
|
+
_ts_decorate22([
|
|
1394
|
+
ApiProperty11({
|
|
1164
1395
|
example: 10
|
|
1165
1396
|
}),
|
|
1166
|
-
|
|
1397
|
+
_ts_metadata22("design:type", Number)
|
|
1167
1398
|
], PaginatedPostsDto.prototype, "totalPages", void 0);
|
|
1168
1399
|
|
|
1169
1400
|
// dto/posts/update_post.dto.ts
|
|
1170
|
-
import { ApiProperty as
|
|
1171
|
-
import { IsEnum as
|
|
1172
|
-
function
|
|
1401
|
+
import { ApiProperty as ApiProperty12, ApiPropertyOptional as ApiPropertyOptional5 } from "@nestjs/swagger";
|
|
1402
|
+
import { IsEnum as IsEnum7, IsNotEmpty as IsNotEmpty9, IsOptional as IsOptional9, IsString as IsString14, MaxLength as MaxLength8, MinLength as MinLength8 } from "class-validator";
|
|
1403
|
+
function _ts_decorate23(decorators, target, key, desc) {
|
|
1173
1404
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1174
1405
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1175
1406
|
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;
|
|
1176
1407
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1177
1408
|
}
|
|
1178
|
-
__name(
|
|
1179
|
-
function
|
|
1409
|
+
__name(_ts_decorate23, "_ts_decorate");
|
|
1410
|
+
function _ts_metadata23(k, v) {
|
|
1180
1411
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1181
1412
|
}
|
|
1182
|
-
__name(
|
|
1413
|
+
__name(_ts_metadata23, "_ts_metadata");
|
|
1183
1414
|
var _UpdatePostDto = class _UpdatePostDto {
|
|
1184
1415
|
constructor() {
|
|
1185
1416
|
__publicField(this, "description");
|
|
@@ -1188,29 +1419,29 @@ var _UpdatePostDto = class _UpdatePostDto {
|
|
|
1188
1419
|
};
|
|
1189
1420
|
__name(_UpdatePostDto, "UpdatePostDto");
|
|
1190
1421
|
var UpdatePostDto = _UpdatePostDto;
|
|
1191
|
-
|
|
1192
|
-
|
|
1422
|
+
_ts_decorate23([
|
|
1423
|
+
ApiProperty12({
|
|
1193
1424
|
description: "Post description/content",
|
|
1194
1425
|
example: "Updated: Check out this amazing view!",
|
|
1195
1426
|
minLength: 1,
|
|
1196
1427
|
maxLength: 5e3,
|
|
1197
1428
|
required: false
|
|
1198
1429
|
}),
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1430
|
+
IsString14(),
|
|
1431
|
+
IsNotEmpty9(),
|
|
1432
|
+
MinLength8(1),
|
|
1433
|
+
MaxLength8(5e3),
|
|
1434
|
+
IsOptional9(),
|
|
1435
|
+
_ts_metadata23("design:type", String)
|
|
1204
1436
|
], UpdatePostDto.prototype, "description", void 0);
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
description: "The
|
|
1208
|
-
enum: BusinessSector
|
|
1209
|
-
required: true,
|
|
1210
|
-
default: BusinessSector.CONSULTING
|
|
1437
|
+
_ts_decorate23([
|
|
1438
|
+
ApiPropertyOptional5({
|
|
1439
|
+
description: "The Business sector type for the post",
|
|
1440
|
+
enum: BusinessSector
|
|
1211
1441
|
}),
|
|
1212
|
-
|
|
1213
|
-
|
|
1442
|
+
IsOptional9(),
|
|
1443
|
+
IsEnum7(BusinessSector),
|
|
1444
|
+
_ts_metadata23("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
1214
1445
|
], UpdatePostDto.prototype, "sector", void 0);
|
|
1215
1446
|
|
|
1216
1447
|
// dto/posts/post_fields.dto.ts
|
|
@@ -1233,18 +1464,18 @@ __name(_PostFields, "PostFields");
|
|
|
1233
1464
|
var PostFields = _PostFields;
|
|
1234
1465
|
|
|
1235
1466
|
// dto/posts/post_response_self.dto.ts
|
|
1236
|
-
import { ApiProperty as
|
|
1237
|
-
function
|
|
1467
|
+
import { ApiProperty as ApiProperty13 } from "@nestjs/swagger";
|
|
1468
|
+
function _ts_decorate24(decorators, target, key, desc) {
|
|
1238
1469
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1239
1470
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1240
1471
|
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;
|
|
1241
1472
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1242
1473
|
}
|
|
1243
|
-
__name(
|
|
1244
|
-
function
|
|
1474
|
+
__name(_ts_decorate24, "_ts_decorate");
|
|
1475
|
+
function _ts_metadata24(k, v) {
|
|
1245
1476
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1246
1477
|
}
|
|
1247
|
-
__name(
|
|
1478
|
+
__name(_ts_metadata24, "_ts_metadata");
|
|
1248
1479
|
var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
|
|
1249
1480
|
constructor() {
|
|
1250
1481
|
super(...arguments);
|
|
@@ -1253,26 +1484,26 @@ var _PostResponseSelfDto = class _PostResponseSelfDto extends PostResponseDto {
|
|
|
1253
1484
|
};
|
|
1254
1485
|
__name(_PostResponseSelfDto, "PostResponseSelfDto");
|
|
1255
1486
|
var PostResponseSelfDto = _PostResponseSelfDto;
|
|
1256
|
-
|
|
1257
|
-
|
|
1487
|
+
_ts_decorate24([
|
|
1488
|
+
ApiProperty13({
|
|
1258
1489
|
example: true
|
|
1259
1490
|
}),
|
|
1260
|
-
|
|
1491
|
+
_ts_metadata24("design:type", Boolean)
|
|
1261
1492
|
], PostResponseSelfDto.prototype, "hidden", void 0);
|
|
1262
1493
|
|
|
1263
1494
|
// dto/posts/pagination_post_self.dto.ts
|
|
1264
|
-
import { ApiProperty as
|
|
1265
|
-
function
|
|
1495
|
+
import { ApiProperty as ApiProperty14 } from "@nestjs/swagger";
|
|
1496
|
+
function _ts_decorate25(decorators, target, key, desc) {
|
|
1266
1497
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1267
1498
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1268
1499
|
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;
|
|
1269
1500
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1270
1501
|
}
|
|
1271
|
-
__name(
|
|
1272
|
-
function
|
|
1502
|
+
__name(_ts_decorate25, "_ts_decorate");
|
|
1503
|
+
function _ts_metadata25(k, v) {
|
|
1273
1504
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1274
1505
|
}
|
|
1275
|
-
__name(
|
|
1506
|
+
__name(_ts_metadata25, "_ts_metadata");
|
|
1276
1507
|
var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
|
|
1277
1508
|
constructor() {
|
|
1278
1509
|
__publicField(this, "posts");
|
|
@@ -1283,46 +1514,46 @@ var _PaginatedPostsSelfDto = class _PaginatedPostsSelfDto {
|
|
|
1283
1514
|
};
|
|
1284
1515
|
__name(_PaginatedPostsSelfDto, "PaginatedPostsSelfDto");
|
|
1285
1516
|
var PaginatedPostsSelfDto = _PaginatedPostsSelfDto;
|
|
1286
|
-
|
|
1287
|
-
|
|
1517
|
+
_ts_decorate25([
|
|
1518
|
+
ApiProperty14({
|
|
1288
1519
|
type: [
|
|
1289
1520
|
PostResponseDto
|
|
1290
1521
|
]
|
|
1291
1522
|
}),
|
|
1292
|
-
|
|
1523
|
+
_ts_metadata25("design:type", Array)
|
|
1293
1524
|
], PaginatedPostsSelfDto.prototype, "posts", void 0);
|
|
1294
|
-
|
|
1295
|
-
|
|
1525
|
+
_ts_decorate25([
|
|
1526
|
+
ApiProperty14({
|
|
1296
1527
|
example: 100
|
|
1297
1528
|
}),
|
|
1298
|
-
|
|
1529
|
+
_ts_metadata25("design:type", Number)
|
|
1299
1530
|
], PaginatedPostsSelfDto.prototype, "total", void 0);
|
|
1300
|
-
|
|
1301
|
-
|
|
1531
|
+
_ts_decorate25([
|
|
1532
|
+
ApiProperty14({
|
|
1302
1533
|
example: 1
|
|
1303
1534
|
}),
|
|
1304
|
-
|
|
1535
|
+
_ts_metadata25("design:type", Number)
|
|
1305
1536
|
], PaginatedPostsSelfDto.prototype, "page", void 0);
|
|
1306
|
-
|
|
1307
|
-
|
|
1537
|
+
_ts_decorate25([
|
|
1538
|
+
ApiProperty14({
|
|
1308
1539
|
example: 10
|
|
1309
1540
|
}),
|
|
1310
|
-
|
|
1541
|
+
_ts_metadata25("design:type", Number)
|
|
1311
1542
|
], PaginatedPostsSelfDto.prototype, "totalPages", void 0);
|
|
1312
1543
|
|
|
1313
1544
|
// dto/posts/reorder_post_file.dto.ts
|
|
1314
|
-
import { IsInt as
|
|
1315
|
-
function
|
|
1545
|
+
import { IsInt as IsInt4, Max, Min as Min4 } from "class-validator";
|
|
1546
|
+
function _ts_decorate26(decorators, target, key, desc) {
|
|
1316
1547
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1317
1548
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1318
1549
|
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;
|
|
1319
1550
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1320
1551
|
}
|
|
1321
|
-
__name(
|
|
1322
|
-
function
|
|
1552
|
+
__name(_ts_decorate26, "_ts_decorate");
|
|
1553
|
+
function _ts_metadata26(k, v) {
|
|
1323
1554
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1324
1555
|
}
|
|
1325
|
-
__name(
|
|
1556
|
+
__name(_ts_metadata26, "_ts_metadata");
|
|
1326
1557
|
var _ReorderDto = class _ReorderDto {
|
|
1327
1558
|
constructor() {
|
|
1328
1559
|
__publicField(this, "newIndex");
|
|
@@ -1330,26 +1561,26 @@ var _ReorderDto = class _ReorderDto {
|
|
|
1330
1561
|
};
|
|
1331
1562
|
__name(_ReorderDto, "ReorderDto");
|
|
1332
1563
|
var ReorderDto = _ReorderDto;
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1564
|
+
_ts_decorate26([
|
|
1565
|
+
IsInt4(),
|
|
1566
|
+
Min4(0),
|
|
1336
1567
|
Max(100),
|
|
1337
|
-
|
|
1568
|
+
_ts_metadata26("design:type", Number)
|
|
1338
1569
|
], ReorderDto.prototype, "newIndex", void 0);
|
|
1339
1570
|
|
|
1340
1571
|
// dto/posts/post_like_response.dto.ts
|
|
1341
|
-
import { ApiProperty as
|
|
1342
|
-
function
|
|
1572
|
+
import { ApiProperty as ApiProperty15 } from "@nestjs/swagger";
|
|
1573
|
+
function _ts_decorate27(decorators, target, key, desc) {
|
|
1343
1574
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1344
1575
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1345
1576
|
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;
|
|
1346
1577
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1347
1578
|
}
|
|
1348
|
-
__name(
|
|
1349
|
-
function
|
|
1579
|
+
__name(_ts_decorate27, "_ts_decorate");
|
|
1580
|
+
function _ts_metadata27(k, v) {
|
|
1350
1581
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1351
1582
|
}
|
|
1352
|
-
__name(
|
|
1583
|
+
__name(_ts_metadata27, "_ts_metadata");
|
|
1353
1584
|
var _PostLikeResponseDto = class _PostLikeResponseDto {
|
|
1354
1585
|
constructor() {
|
|
1355
1586
|
__publicField(this, "id");
|
|
@@ -1363,65 +1594,65 @@ var _PostLikeResponseDto = class _PostLikeResponseDto {
|
|
|
1363
1594
|
};
|
|
1364
1595
|
__name(_PostLikeResponseDto, "PostLikeResponseDto");
|
|
1365
1596
|
var PostLikeResponseDto = _PostLikeResponseDto;
|
|
1366
|
-
|
|
1367
|
-
|
|
1597
|
+
_ts_decorate27([
|
|
1598
|
+
ApiProperty15({
|
|
1368
1599
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1369
1600
|
}),
|
|
1370
|
-
|
|
1601
|
+
_ts_metadata27("design:type", String)
|
|
1371
1602
|
], PostLikeResponseDto.prototype, "id", void 0);
|
|
1372
|
-
|
|
1373
|
-
|
|
1603
|
+
_ts_decorate27([
|
|
1604
|
+
ApiProperty15({
|
|
1374
1605
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1375
1606
|
}),
|
|
1376
|
-
|
|
1607
|
+
_ts_metadata27("design:type", String)
|
|
1377
1608
|
], PostLikeResponseDto.prototype, "postId", void 0);
|
|
1378
|
-
|
|
1379
|
-
|
|
1609
|
+
_ts_decorate27([
|
|
1610
|
+
ApiProperty15({
|
|
1380
1611
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1381
1612
|
}),
|
|
1382
|
-
|
|
1613
|
+
_ts_metadata27("design:type", String)
|
|
1383
1614
|
], PostLikeResponseDto.prototype, "userId", void 0);
|
|
1384
|
-
|
|
1385
|
-
|
|
1615
|
+
_ts_decorate27([
|
|
1616
|
+
ApiProperty15({
|
|
1386
1617
|
example: "John Doe"
|
|
1387
1618
|
}),
|
|
1388
|
-
|
|
1619
|
+
_ts_metadata27("design:type", String)
|
|
1389
1620
|
], PostLikeResponseDto.prototype, "userFullName", void 0);
|
|
1390
|
-
|
|
1391
|
-
|
|
1621
|
+
_ts_decorate27([
|
|
1622
|
+
ApiProperty15({
|
|
1392
1623
|
example: "https://example.com/avatar.jpg",
|
|
1393
1624
|
nullable: true
|
|
1394
1625
|
}),
|
|
1395
|
-
|
|
1626
|
+
_ts_metadata27("design:type", Object)
|
|
1396
1627
|
], PostLikeResponseDto.prototype, "userProfilePictureUrl", void 0);
|
|
1397
|
-
|
|
1398
|
-
|
|
1628
|
+
_ts_decorate27([
|
|
1629
|
+
ApiProperty15({
|
|
1399
1630
|
enum: ReactionType,
|
|
1400
1631
|
example: ReactionType.LIKE
|
|
1401
1632
|
}),
|
|
1402
|
-
|
|
1633
|
+
_ts_metadata27("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1403
1634
|
], PostLikeResponseDto.prototype, "type", void 0);
|
|
1404
|
-
|
|
1405
|
-
|
|
1635
|
+
_ts_decorate27([
|
|
1636
|
+
ApiProperty15({
|
|
1406
1637
|
example: "2026-01-14T12:00:00Z"
|
|
1407
1638
|
}),
|
|
1408
|
-
|
|
1639
|
+
_ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1409
1640
|
], PostLikeResponseDto.prototype, "createdAt", void 0);
|
|
1410
1641
|
|
|
1411
1642
|
// dto/posts/like_post.dto.ts
|
|
1412
|
-
import { ApiProperty as
|
|
1413
|
-
import { IsEnum as
|
|
1414
|
-
function
|
|
1643
|
+
import { ApiProperty as ApiProperty16 } from "@nestjs/swagger";
|
|
1644
|
+
import { IsEnum as IsEnum8, IsOptional as IsOptional10 } from "class-validator";
|
|
1645
|
+
function _ts_decorate28(decorators, target, key, desc) {
|
|
1415
1646
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1416
1647
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1417
1648
|
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;
|
|
1418
1649
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1419
1650
|
}
|
|
1420
|
-
__name(
|
|
1421
|
-
function
|
|
1651
|
+
__name(_ts_decorate28, "_ts_decorate");
|
|
1652
|
+
function _ts_metadata28(k, v) {
|
|
1422
1653
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1423
1654
|
}
|
|
1424
|
-
__name(
|
|
1655
|
+
__name(_ts_metadata28, "_ts_metadata");
|
|
1425
1656
|
var _LikePostDto = class _LikePostDto {
|
|
1426
1657
|
constructor() {
|
|
1427
1658
|
__publicField(this, "type");
|
|
@@ -1429,31 +1660,31 @@ var _LikePostDto = class _LikePostDto {
|
|
|
1429
1660
|
};
|
|
1430
1661
|
__name(_LikePostDto, "LikePostDto");
|
|
1431
1662
|
var LikePostDto = _LikePostDto;
|
|
1432
|
-
|
|
1433
|
-
|
|
1663
|
+
_ts_decorate28([
|
|
1664
|
+
ApiProperty16({
|
|
1434
1665
|
description: "The reaction type for the post",
|
|
1435
1666
|
enum: ReactionType,
|
|
1436
1667
|
required: false,
|
|
1437
1668
|
default: ReactionType.LIKE
|
|
1438
1669
|
}),
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1670
|
+
IsEnum8(ReactionType),
|
|
1671
|
+
IsOptional10(),
|
|
1672
|
+
_ts_metadata28("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1442
1673
|
], LikePostDto.prototype, "type", void 0);
|
|
1443
1674
|
|
|
1444
1675
|
// dto/posts/paginated_post_like_dto.ts
|
|
1445
|
-
import { ApiProperty as
|
|
1446
|
-
function
|
|
1676
|
+
import { ApiProperty as ApiProperty17 } from "@nestjs/swagger";
|
|
1677
|
+
function _ts_decorate29(decorators, target, key, desc) {
|
|
1447
1678
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1448
1679
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1449
1680
|
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;
|
|
1450
1681
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1451
1682
|
}
|
|
1452
|
-
__name(
|
|
1453
|
-
function
|
|
1683
|
+
__name(_ts_decorate29, "_ts_decorate");
|
|
1684
|
+
function _ts_metadata29(k, v) {
|
|
1454
1685
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1455
1686
|
}
|
|
1456
|
-
__name(
|
|
1687
|
+
__name(_ts_metadata29, "_ts_metadata");
|
|
1457
1688
|
var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
|
|
1458
1689
|
constructor() {
|
|
1459
1690
|
__publicField(this, "likes");
|
|
@@ -1464,47 +1695,47 @@ var _PaginatedPostLikesDto = class _PaginatedPostLikesDto {
|
|
|
1464
1695
|
};
|
|
1465
1696
|
__name(_PaginatedPostLikesDto, "PaginatedPostLikesDto");
|
|
1466
1697
|
var PaginatedPostLikesDto = _PaginatedPostLikesDto;
|
|
1467
|
-
|
|
1468
|
-
|
|
1698
|
+
_ts_decorate29([
|
|
1699
|
+
ApiProperty17({
|
|
1469
1700
|
type: [
|
|
1470
1701
|
PostLikeResponseDto
|
|
1471
1702
|
]
|
|
1472
1703
|
}),
|
|
1473
|
-
|
|
1704
|
+
_ts_metadata29("design:type", Array)
|
|
1474
1705
|
], PaginatedPostLikesDto.prototype, "likes", void 0);
|
|
1475
|
-
|
|
1476
|
-
|
|
1706
|
+
_ts_decorate29([
|
|
1707
|
+
ApiProperty17({
|
|
1477
1708
|
example: 100
|
|
1478
1709
|
}),
|
|
1479
|
-
|
|
1710
|
+
_ts_metadata29("design:type", Number)
|
|
1480
1711
|
], PaginatedPostLikesDto.prototype, "total", void 0);
|
|
1481
|
-
|
|
1482
|
-
|
|
1712
|
+
_ts_decorate29([
|
|
1713
|
+
ApiProperty17({
|
|
1483
1714
|
example: 1
|
|
1484
1715
|
}),
|
|
1485
|
-
|
|
1716
|
+
_ts_metadata29("design:type", Number)
|
|
1486
1717
|
], PaginatedPostLikesDto.prototype, "page", void 0);
|
|
1487
|
-
|
|
1488
|
-
|
|
1718
|
+
_ts_decorate29([
|
|
1719
|
+
ApiProperty17({
|
|
1489
1720
|
example: 10
|
|
1490
1721
|
}),
|
|
1491
|
-
|
|
1722
|
+
_ts_metadata29("design:type", Number)
|
|
1492
1723
|
], PaginatedPostLikesDto.prototype, "totalPages", void 0);
|
|
1493
1724
|
|
|
1494
1725
|
// dto/comments/create_comment.dto.ts
|
|
1495
|
-
import { ApiProperty as
|
|
1496
|
-
import { IsNotEmpty as
|
|
1497
|
-
function
|
|
1726
|
+
import { ApiProperty as ApiProperty18 } from "@nestjs/swagger";
|
|
1727
|
+
import { IsNotEmpty as IsNotEmpty10, IsOptional as IsOptional11, IsString as IsString15, IsUUID as IsUUID2, MaxLength as MaxLength9, MinLength as MinLength9 } from "class-validator";
|
|
1728
|
+
function _ts_decorate30(decorators, target, key, desc) {
|
|
1498
1729
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1499
1730
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1500
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;
|
|
1501
1732
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1502
1733
|
}
|
|
1503
|
-
__name(
|
|
1504
|
-
function
|
|
1734
|
+
__name(_ts_decorate30, "_ts_decorate");
|
|
1735
|
+
function _ts_metadata30(k, v) {
|
|
1505
1736
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1506
1737
|
}
|
|
1507
|
-
__name(
|
|
1738
|
+
__name(_ts_metadata30, "_ts_metadata");
|
|
1508
1739
|
var _CreateCommentDto = class _CreateCommentDto {
|
|
1509
1740
|
constructor() {
|
|
1510
1741
|
__publicField(this, "postId");
|
|
@@ -1514,52 +1745,52 @@ var _CreateCommentDto = class _CreateCommentDto {
|
|
|
1514
1745
|
};
|
|
1515
1746
|
__name(_CreateCommentDto, "CreateCommentDto");
|
|
1516
1747
|
var CreateCommentDto = _CreateCommentDto;
|
|
1517
|
-
|
|
1518
|
-
|
|
1748
|
+
_ts_decorate30([
|
|
1749
|
+
ApiProperty18({
|
|
1519
1750
|
description: "Post ID to comment on",
|
|
1520
1751
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1521
1752
|
}),
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1753
|
+
IsUUID2(),
|
|
1754
|
+
IsNotEmpty10(),
|
|
1755
|
+
_ts_metadata30("design:type", String)
|
|
1525
1756
|
], CreateCommentDto.prototype, "postId", void 0);
|
|
1526
|
-
|
|
1527
|
-
|
|
1757
|
+
_ts_decorate30([
|
|
1758
|
+
ApiProperty18({
|
|
1528
1759
|
description: "Comment content",
|
|
1529
1760
|
example: "Great post!",
|
|
1530
1761
|
minLength: 1,
|
|
1531
1762
|
maxLength: 5e3
|
|
1532
1763
|
}),
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1764
|
+
IsString15(),
|
|
1765
|
+
IsNotEmpty10(),
|
|
1766
|
+
MinLength9(1),
|
|
1767
|
+
MaxLength9(5e3),
|
|
1768
|
+
_ts_metadata30("design:type", String)
|
|
1538
1769
|
], CreateCommentDto.prototype, "content", void 0);
|
|
1539
|
-
|
|
1540
|
-
|
|
1770
|
+
_ts_decorate30([
|
|
1771
|
+
ApiProperty18({
|
|
1541
1772
|
description: "Parent comment ID for nested replies",
|
|
1542
1773
|
example: "123e4567-e89b-12d3-a456-426614174002",
|
|
1543
1774
|
required: false
|
|
1544
1775
|
}),
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1776
|
+
IsUUID2(),
|
|
1777
|
+
IsOptional11(),
|
|
1778
|
+
_ts_metadata30("design:type", String)
|
|
1548
1779
|
], CreateCommentDto.prototype, "parentCommentId", void 0);
|
|
1549
1780
|
|
|
1550
1781
|
// dto/comments/comment_response.dto.ts
|
|
1551
|
-
import { ApiProperty as
|
|
1552
|
-
function
|
|
1782
|
+
import { ApiProperty as ApiProperty19 } from "@nestjs/swagger";
|
|
1783
|
+
function _ts_decorate31(decorators, target, key, desc) {
|
|
1553
1784
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1554
1785
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1555
1786
|
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;
|
|
1556
1787
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1557
1788
|
}
|
|
1558
|
-
__name(
|
|
1559
|
-
function
|
|
1789
|
+
__name(_ts_decorate31, "_ts_decorate");
|
|
1790
|
+
function _ts_metadata31(k, v) {
|
|
1560
1791
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1561
1792
|
}
|
|
1562
|
-
__name(
|
|
1793
|
+
__name(_ts_metadata31, "_ts_metadata");
|
|
1563
1794
|
var _CommentResponseDto = class _CommentResponseDto {
|
|
1564
1795
|
constructor() {
|
|
1565
1796
|
__publicField(this, "id");
|
|
@@ -1579,100 +1810,100 @@ var _CommentResponseDto = class _CommentResponseDto {
|
|
|
1579
1810
|
};
|
|
1580
1811
|
__name(_CommentResponseDto, "CommentResponseDto");
|
|
1581
1812
|
var CommentResponseDto = _CommentResponseDto;
|
|
1582
|
-
|
|
1583
|
-
|
|
1813
|
+
_ts_decorate31([
|
|
1814
|
+
ApiProperty19({
|
|
1584
1815
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1585
1816
|
}),
|
|
1586
|
-
|
|
1817
|
+
_ts_metadata31("design:type", String)
|
|
1587
1818
|
], CommentResponseDto.prototype, "id", void 0);
|
|
1588
|
-
|
|
1589
|
-
|
|
1819
|
+
_ts_decorate31([
|
|
1820
|
+
ApiProperty19({
|
|
1590
1821
|
example: "123e4567-e89b-12d3-a456-426614174001"
|
|
1591
1822
|
}),
|
|
1592
|
-
|
|
1823
|
+
_ts_metadata31("design:type", String)
|
|
1593
1824
|
], CommentResponseDto.prototype, "postId", void 0);
|
|
1594
|
-
|
|
1595
|
-
|
|
1825
|
+
_ts_decorate31([
|
|
1826
|
+
ApiProperty19({
|
|
1596
1827
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1597
1828
|
}),
|
|
1598
|
-
|
|
1829
|
+
_ts_metadata31("design:type", String)
|
|
1599
1830
|
], CommentResponseDto.prototype, "authorId", void 0);
|
|
1600
|
-
|
|
1601
|
-
|
|
1831
|
+
_ts_decorate31([
|
|
1832
|
+
ApiProperty19({
|
|
1602
1833
|
example: "John Doe"
|
|
1603
1834
|
}),
|
|
1604
|
-
|
|
1835
|
+
_ts_metadata31("design:type", String)
|
|
1605
1836
|
], CommentResponseDto.prototype, "authorFullName", void 0);
|
|
1606
|
-
|
|
1607
|
-
|
|
1837
|
+
_ts_decorate31([
|
|
1838
|
+
ApiProperty19({
|
|
1608
1839
|
example: "https://example.com/profile.jpg",
|
|
1609
1840
|
nullable: true
|
|
1610
1841
|
}),
|
|
1611
|
-
|
|
1842
|
+
_ts_metadata31("design:type", Object)
|
|
1612
1843
|
], CommentResponseDto.prototype, "authorProfilePictureUrl", void 0);
|
|
1613
|
-
|
|
1614
|
-
|
|
1844
|
+
_ts_decorate31([
|
|
1845
|
+
ApiProperty19({
|
|
1615
1846
|
example: "Great post!"
|
|
1616
1847
|
}),
|
|
1617
|
-
|
|
1848
|
+
_ts_metadata31("design:type", String)
|
|
1618
1849
|
], CommentResponseDto.prototype, "content", void 0);
|
|
1619
|
-
|
|
1620
|
-
|
|
1850
|
+
_ts_decorate31([
|
|
1851
|
+
ApiProperty19({
|
|
1621
1852
|
example: "123e4567-e89b-12d3-a456-426614174003",
|
|
1622
1853
|
nullable: true
|
|
1623
1854
|
}),
|
|
1624
|
-
|
|
1855
|
+
_ts_metadata31("design:type", Object)
|
|
1625
1856
|
], CommentResponseDto.prototype, "parentCommentId", void 0);
|
|
1626
|
-
|
|
1627
|
-
|
|
1857
|
+
_ts_decorate31([
|
|
1858
|
+
ApiProperty19({
|
|
1628
1859
|
example: 0
|
|
1629
1860
|
}),
|
|
1630
|
-
|
|
1861
|
+
_ts_metadata31("design:type", Number)
|
|
1631
1862
|
], CommentResponseDto.prototype, "depth", void 0);
|
|
1632
|
-
|
|
1633
|
-
|
|
1863
|
+
_ts_decorate31([
|
|
1864
|
+
ApiProperty19({
|
|
1634
1865
|
example: 5
|
|
1635
1866
|
}),
|
|
1636
|
-
|
|
1867
|
+
_ts_metadata31("design:type", Number)
|
|
1637
1868
|
], CommentResponseDto.prototype, "likesCount", void 0);
|
|
1638
|
-
|
|
1639
|
-
|
|
1869
|
+
_ts_decorate31([
|
|
1870
|
+
ApiProperty19({
|
|
1640
1871
|
example: 2
|
|
1641
1872
|
}),
|
|
1642
|
-
|
|
1873
|
+
_ts_metadata31("design:type", Number)
|
|
1643
1874
|
], CommentResponseDto.prototype, "repliesCount", void 0);
|
|
1644
|
-
|
|
1645
|
-
|
|
1875
|
+
_ts_decorate31([
|
|
1876
|
+
ApiProperty19({
|
|
1646
1877
|
example: false
|
|
1647
1878
|
}),
|
|
1648
|
-
|
|
1879
|
+
_ts_metadata31("design:type", Boolean)
|
|
1649
1880
|
], CommentResponseDto.prototype, "isEdited", void 0);
|
|
1650
|
-
|
|
1651
|
-
|
|
1881
|
+
_ts_decorate31([
|
|
1882
|
+
ApiProperty19({
|
|
1652
1883
|
example: "2024-01-15T10:30:00Z"
|
|
1653
1884
|
}),
|
|
1654
|
-
|
|
1885
|
+
_ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1655
1886
|
], CommentResponseDto.prototype, "createdAt", void 0);
|
|
1656
|
-
|
|
1657
|
-
|
|
1887
|
+
_ts_decorate31([
|
|
1888
|
+
ApiProperty19({
|
|
1658
1889
|
example: "2024-01-15T10:30:00Z"
|
|
1659
1890
|
}),
|
|
1660
|
-
|
|
1891
|
+
_ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1661
1892
|
], CommentResponseDto.prototype, "updatedAt", void 0);
|
|
1662
1893
|
|
|
1663
1894
|
// dto/comments/comment_tree.dto.ts
|
|
1664
|
-
import { ApiProperty as
|
|
1665
|
-
function
|
|
1895
|
+
import { ApiProperty as ApiProperty20 } from "@nestjs/swagger";
|
|
1896
|
+
function _ts_decorate32(decorators, target, key, desc) {
|
|
1666
1897
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1667
1898
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1668
1899
|
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;
|
|
1669
1900
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1670
1901
|
}
|
|
1671
|
-
__name(
|
|
1672
|
-
function
|
|
1902
|
+
__name(_ts_decorate32, "_ts_decorate");
|
|
1903
|
+
function _ts_metadata32(k, v) {
|
|
1673
1904
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1674
1905
|
}
|
|
1675
|
-
__name(
|
|
1906
|
+
__name(_ts_metadata32, "_ts_metadata");
|
|
1676
1907
|
var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
|
|
1677
1908
|
constructor() {
|
|
1678
1909
|
super(...arguments);
|
|
@@ -1681,28 +1912,28 @@ var _CommentTreeDto = class _CommentTreeDto extends CommentResponseDto {
|
|
|
1681
1912
|
};
|
|
1682
1913
|
__name(_CommentTreeDto, "CommentTreeDto");
|
|
1683
1914
|
var CommentTreeDto = _CommentTreeDto;
|
|
1684
|
-
|
|
1685
|
-
|
|
1915
|
+
_ts_decorate32([
|
|
1916
|
+
ApiProperty20({
|
|
1686
1917
|
type: [
|
|
1687
1918
|
CommentTreeDto
|
|
1688
1919
|
]
|
|
1689
1920
|
}),
|
|
1690
|
-
|
|
1921
|
+
_ts_metadata32("design:type", Array)
|
|
1691
1922
|
], CommentTreeDto.prototype, "replies", void 0);
|
|
1692
1923
|
|
|
1693
1924
|
// dto/comments/paginated_comment.dto.ts
|
|
1694
|
-
import { ApiProperty as
|
|
1695
|
-
function
|
|
1925
|
+
import { ApiProperty as ApiProperty21 } from "@nestjs/swagger";
|
|
1926
|
+
function _ts_decorate33(decorators, target, key, desc) {
|
|
1696
1927
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1697
1928
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1698
1929
|
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;
|
|
1699
1930
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1700
1931
|
}
|
|
1701
|
-
__name(
|
|
1702
|
-
function
|
|
1932
|
+
__name(_ts_decorate33, "_ts_decorate");
|
|
1933
|
+
function _ts_metadata33(k, v) {
|
|
1703
1934
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1704
1935
|
}
|
|
1705
|
-
__name(
|
|
1936
|
+
__name(_ts_metadata33, "_ts_metadata");
|
|
1706
1937
|
var _PaginatedCommentsDto = class _PaginatedCommentsDto {
|
|
1707
1938
|
constructor() {
|
|
1708
1939
|
__publicField(this, "comments");
|
|
@@ -1713,47 +1944,47 @@ var _PaginatedCommentsDto = class _PaginatedCommentsDto {
|
|
|
1713
1944
|
};
|
|
1714
1945
|
__name(_PaginatedCommentsDto, "PaginatedCommentsDto");
|
|
1715
1946
|
var PaginatedCommentsDto = _PaginatedCommentsDto;
|
|
1716
|
-
|
|
1717
|
-
|
|
1947
|
+
_ts_decorate33([
|
|
1948
|
+
ApiProperty21({
|
|
1718
1949
|
type: [
|
|
1719
1950
|
CommentResponseDto
|
|
1720
1951
|
]
|
|
1721
1952
|
}),
|
|
1722
|
-
|
|
1953
|
+
_ts_metadata33("design:type", Array)
|
|
1723
1954
|
], PaginatedCommentsDto.prototype, "comments", void 0);
|
|
1724
|
-
|
|
1725
|
-
|
|
1955
|
+
_ts_decorate33([
|
|
1956
|
+
ApiProperty21({
|
|
1726
1957
|
example: 50
|
|
1727
1958
|
}),
|
|
1728
|
-
|
|
1959
|
+
_ts_metadata33("design:type", Number)
|
|
1729
1960
|
], PaginatedCommentsDto.prototype, "total", void 0);
|
|
1730
|
-
|
|
1731
|
-
|
|
1961
|
+
_ts_decorate33([
|
|
1962
|
+
ApiProperty21({
|
|
1732
1963
|
example: 1
|
|
1733
1964
|
}),
|
|
1734
|
-
|
|
1965
|
+
_ts_metadata33("design:type", Number)
|
|
1735
1966
|
], PaginatedCommentsDto.prototype, "page", void 0);
|
|
1736
|
-
|
|
1737
|
-
|
|
1967
|
+
_ts_decorate33([
|
|
1968
|
+
ApiProperty21({
|
|
1738
1969
|
example: 5
|
|
1739
1970
|
}),
|
|
1740
|
-
|
|
1971
|
+
_ts_metadata33("design:type", Number)
|
|
1741
1972
|
], PaginatedCommentsDto.prototype, "totalPages", void 0);
|
|
1742
1973
|
|
|
1743
1974
|
// dto/comments/update_comment.dto.ts
|
|
1744
|
-
import { ApiProperty as
|
|
1745
|
-
import { IsNotEmpty as
|
|
1746
|
-
function
|
|
1975
|
+
import { ApiProperty as ApiProperty22 } from "@nestjs/swagger";
|
|
1976
|
+
import { IsNotEmpty as IsNotEmpty11, IsString as IsString16, MaxLength as MaxLength10, MinLength as MinLength10 } from "class-validator";
|
|
1977
|
+
function _ts_decorate34(decorators, target, key, desc) {
|
|
1747
1978
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1748
1979
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1749
1980
|
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;
|
|
1750
1981
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1751
1982
|
}
|
|
1752
|
-
__name(
|
|
1753
|
-
function
|
|
1983
|
+
__name(_ts_decorate34, "_ts_decorate");
|
|
1984
|
+
function _ts_metadata34(k, v) {
|
|
1754
1985
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1755
1986
|
}
|
|
1756
|
-
__name(
|
|
1987
|
+
__name(_ts_metadata34, "_ts_metadata");
|
|
1757
1988
|
var _UpdateCommentDto = class _UpdateCommentDto {
|
|
1758
1989
|
constructor() {
|
|
1759
1990
|
__publicField(this, "content");
|
|
@@ -1761,18 +1992,18 @@ var _UpdateCommentDto = class _UpdateCommentDto {
|
|
|
1761
1992
|
};
|
|
1762
1993
|
__name(_UpdateCommentDto, "UpdateCommentDto");
|
|
1763
1994
|
var UpdateCommentDto = _UpdateCommentDto;
|
|
1764
|
-
|
|
1765
|
-
|
|
1995
|
+
_ts_decorate34([
|
|
1996
|
+
ApiProperty22({
|
|
1766
1997
|
description: "Updated comment content",
|
|
1767
1998
|
example: "Updated: Great post!",
|
|
1768
1999
|
minLength: 1,
|
|
1769
2000
|
maxLength: 5e3
|
|
1770
2001
|
}),
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
2002
|
+
IsString16(),
|
|
2003
|
+
IsNotEmpty11(),
|
|
2004
|
+
MinLength10(1),
|
|
2005
|
+
MaxLength10(5e3),
|
|
2006
|
+
_ts_metadata34("design:type", String)
|
|
1776
2007
|
], UpdateCommentDto.prototype, "content", void 0);
|
|
1777
2008
|
|
|
1778
2009
|
// dto/comments/comment_fields.dto.ts
|
|
@@ -1797,19 +2028,19 @@ __name(_CommentFields, "CommentFields");
|
|
|
1797
2028
|
var CommentFields = _CommentFields;
|
|
1798
2029
|
|
|
1799
2030
|
// dto/comments/like_comment.dto.ts
|
|
1800
|
-
import { ApiProperty as
|
|
1801
|
-
import { IsEnum as
|
|
1802
|
-
function
|
|
2031
|
+
import { ApiProperty as ApiProperty23 } from "@nestjs/swagger";
|
|
2032
|
+
import { IsEnum as IsEnum9, IsOptional as IsOptional12 } from "class-validator";
|
|
2033
|
+
function _ts_decorate35(decorators, target, key, desc) {
|
|
1803
2034
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1804
2035
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1805
2036
|
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;
|
|
1806
2037
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1807
2038
|
}
|
|
1808
|
-
__name(
|
|
1809
|
-
function
|
|
2039
|
+
__name(_ts_decorate35, "_ts_decorate");
|
|
2040
|
+
function _ts_metadata35(k, v) {
|
|
1810
2041
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1811
2042
|
}
|
|
1812
|
-
__name(
|
|
2043
|
+
__name(_ts_metadata35, "_ts_metadata");
|
|
1813
2044
|
var _LikeCommentDto = class _LikeCommentDto {
|
|
1814
2045
|
constructor() {
|
|
1815
2046
|
__publicField(this, "type");
|
|
@@ -1817,31 +2048,31 @@ var _LikeCommentDto = class _LikeCommentDto {
|
|
|
1817
2048
|
};
|
|
1818
2049
|
__name(_LikeCommentDto, "LikeCommentDto");
|
|
1819
2050
|
var LikeCommentDto = _LikeCommentDto;
|
|
1820
|
-
|
|
1821
|
-
|
|
2051
|
+
_ts_decorate35([
|
|
2052
|
+
ApiProperty23({
|
|
1822
2053
|
description: "The reaction type for the comment",
|
|
1823
2054
|
enum: ReactionType,
|
|
1824
2055
|
required: false,
|
|
1825
2056
|
default: ReactionType.LIKE
|
|
1826
2057
|
}),
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
2058
|
+
IsEnum9(ReactionType),
|
|
2059
|
+
IsOptional12(),
|
|
2060
|
+
_ts_metadata35("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1830
2061
|
], LikeCommentDto.prototype, "type", void 0);
|
|
1831
2062
|
|
|
1832
2063
|
// dto/comments/comment_like_response.dto.ts
|
|
1833
|
-
import { ApiProperty as
|
|
1834
|
-
function
|
|
2064
|
+
import { ApiProperty as ApiProperty24 } from "@nestjs/swagger";
|
|
2065
|
+
function _ts_decorate36(decorators, target, key, desc) {
|
|
1835
2066
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1836
2067
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1837
2068
|
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;
|
|
1838
2069
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1839
2070
|
}
|
|
1840
|
-
__name(
|
|
1841
|
-
function
|
|
2071
|
+
__name(_ts_decorate36, "_ts_decorate");
|
|
2072
|
+
function _ts_metadata36(k, v) {
|
|
1842
2073
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1843
2074
|
}
|
|
1844
|
-
__name(
|
|
2075
|
+
__name(_ts_metadata36, "_ts_metadata");
|
|
1845
2076
|
var _CommentLikeResponseDto = class _CommentLikeResponseDto {
|
|
1846
2077
|
constructor() {
|
|
1847
2078
|
__publicField(this, "id");
|
|
@@ -1856,70 +2087,70 @@ var _CommentLikeResponseDto = class _CommentLikeResponseDto {
|
|
|
1856
2087
|
};
|
|
1857
2088
|
__name(_CommentLikeResponseDto, "CommentLikeResponseDto");
|
|
1858
2089
|
var CommentLikeResponseDto = _CommentLikeResponseDto;
|
|
1859
|
-
|
|
1860
|
-
|
|
2090
|
+
_ts_decorate36([
|
|
2091
|
+
ApiProperty24({
|
|
1861
2092
|
example: "123e4567-e89b-12d3-a456-426614174005"
|
|
1862
2093
|
}),
|
|
1863
|
-
|
|
2094
|
+
_ts_metadata36("design:type", String)
|
|
1864
2095
|
], CommentLikeResponseDto.prototype, "id", void 0);
|
|
1865
|
-
|
|
1866
|
-
|
|
2096
|
+
_ts_decorate36([
|
|
2097
|
+
ApiProperty24({
|
|
1867
2098
|
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
1868
2099
|
}),
|
|
1869
|
-
|
|
2100
|
+
_ts_metadata36("design:type", String)
|
|
1870
2101
|
], CommentLikeResponseDto.prototype, "commentId", void 0);
|
|
1871
|
-
|
|
1872
|
-
|
|
2102
|
+
_ts_decorate36([
|
|
2103
|
+
ApiProperty24({
|
|
1873
2104
|
example: "123e4567-e89b-12d3-a456-426614174002"
|
|
1874
2105
|
}),
|
|
1875
|
-
|
|
2106
|
+
_ts_metadata36("design:type", String)
|
|
1876
2107
|
], CommentLikeResponseDto.prototype, "commentatorId", void 0);
|
|
1877
|
-
|
|
1878
|
-
|
|
2108
|
+
_ts_decorate36([
|
|
2109
|
+
ApiProperty24({
|
|
1879
2110
|
example: "Jane Doe"
|
|
1880
2111
|
}),
|
|
1881
|
-
|
|
2112
|
+
_ts_metadata36("design:type", String)
|
|
1882
2113
|
], CommentLikeResponseDto.prototype, "commentatorFullName", void 0);
|
|
1883
|
-
|
|
1884
|
-
|
|
2114
|
+
_ts_decorate36([
|
|
2115
|
+
ApiProperty24({
|
|
1885
2116
|
example: "https://example.com/jane.jpg",
|
|
1886
2117
|
nullable: true
|
|
1887
2118
|
}),
|
|
1888
|
-
|
|
2119
|
+
_ts_metadata36("design:type", Object)
|
|
1889
2120
|
], CommentLikeResponseDto.prototype, "commentatorProfilePictureUrl", void 0);
|
|
1890
|
-
|
|
1891
|
-
|
|
2121
|
+
_ts_decorate36([
|
|
2122
|
+
ApiProperty24({
|
|
1892
2123
|
enum: ReactionType,
|
|
1893
2124
|
example: ReactionType.HEART
|
|
1894
2125
|
}),
|
|
1895
|
-
|
|
2126
|
+
_ts_metadata36("design:type", typeof ReactionType === "undefined" ? Object : ReactionType)
|
|
1896
2127
|
], CommentLikeResponseDto.prototype, "type", void 0);
|
|
1897
|
-
|
|
1898
|
-
|
|
2128
|
+
_ts_decorate36([
|
|
2129
|
+
ApiProperty24({
|
|
1899
2130
|
example: "2024-01-15T10:35:00Z"
|
|
1900
2131
|
}),
|
|
1901
|
-
|
|
2132
|
+
_ts_metadata36("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1902
2133
|
], CommentLikeResponseDto.prototype, "createdAt", void 0);
|
|
1903
|
-
|
|
1904
|
-
|
|
2134
|
+
_ts_decorate36([
|
|
2135
|
+
ApiProperty24({
|
|
1905
2136
|
example: "2024-01-15T10:35:00Z"
|
|
1906
2137
|
}),
|
|
1907
|
-
|
|
2138
|
+
_ts_metadata36("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1908
2139
|
], CommentLikeResponseDto.prototype, "updatedAt", void 0);
|
|
1909
2140
|
|
|
1910
2141
|
// dto/comments/paginated_comment_likes.dto.ts
|
|
1911
|
-
import { ApiProperty as
|
|
1912
|
-
function
|
|
2142
|
+
import { ApiProperty as ApiProperty25 } from "@nestjs/swagger";
|
|
2143
|
+
function _ts_decorate37(decorators, target, key, desc) {
|
|
1913
2144
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1914
2145
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1915
2146
|
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;
|
|
1916
2147
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1917
2148
|
}
|
|
1918
|
-
__name(
|
|
1919
|
-
function
|
|
2149
|
+
__name(_ts_decorate37, "_ts_decorate");
|
|
2150
|
+
function _ts_metadata37(k, v) {
|
|
1920
2151
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1921
2152
|
}
|
|
1922
|
-
__name(
|
|
2153
|
+
__name(_ts_metadata37, "_ts_metadata");
|
|
1923
2154
|
var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
1924
2155
|
constructor() {
|
|
1925
2156
|
__publicField(this, "likes");
|
|
@@ -1930,32 +2161,107 @@ var _PaginatedCommentLikesDto = class _PaginatedCommentLikesDto {
|
|
|
1930
2161
|
};
|
|
1931
2162
|
__name(_PaginatedCommentLikesDto, "PaginatedCommentLikesDto");
|
|
1932
2163
|
var PaginatedCommentLikesDto = _PaginatedCommentLikesDto;
|
|
1933
|
-
|
|
1934
|
-
|
|
2164
|
+
_ts_decorate37([
|
|
2165
|
+
ApiProperty25({
|
|
1935
2166
|
type: [
|
|
1936
2167
|
CommentLikeResponseDto
|
|
1937
2168
|
]
|
|
1938
2169
|
}),
|
|
1939
|
-
|
|
2170
|
+
_ts_metadata37("design:type", Array)
|
|
1940
2171
|
], PaginatedCommentLikesDto.prototype, "likes", void 0);
|
|
1941
|
-
|
|
1942
|
-
|
|
2172
|
+
_ts_decorate37([
|
|
2173
|
+
ApiProperty25({
|
|
1943
2174
|
example: 120
|
|
1944
2175
|
}),
|
|
1945
|
-
|
|
2176
|
+
_ts_metadata37("design:type", Number)
|
|
1946
2177
|
], PaginatedCommentLikesDto.prototype, "total", void 0);
|
|
1947
|
-
|
|
1948
|
-
|
|
2178
|
+
_ts_decorate37([
|
|
2179
|
+
ApiProperty25({
|
|
1949
2180
|
example: 1
|
|
1950
2181
|
}),
|
|
1951
|
-
|
|
2182
|
+
_ts_metadata37("design:type", Number)
|
|
1952
2183
|
], PaginatedCommentLikesDto.prototype, "page", void 0);
|
|
1953
|
-
|
|
1954
|
-
|
|
2184
|
+
_ts_decorate37([
|
|
2185
|
+
ApiProperty25({
|
|
1955
2186
|
example: 6
|
|
1956
2187
|
}),
|
|
1957
|
-
|
|
2188
|
+
_ts_metadata37("design:type", Number)
|
|
1958
2189
|
], PaginatedCommentLikesDto.prototype, "totalPages", void 0);
|
|
2190
|
+
|
|
2191
|
+
// enums/user_name.enum.ts
|
|
2192
|
+
var RoleName = /* @__PURE__ */ (function(RoleName2) {
|
|
2193
|
+
RoleName2["PREMIUM"] = "PREMIUM";
|
|
2194
|
+
RoleName2["DEFAULT"] = "DEFAULT";
|
|
2195
|
+
RoleName2["VISITOR"] = "VISITOR";
|
|
2196
|
+
return RoleName2;
|
|
2197
|
+
})({});
|
|
2198
|
+
|
|
2199
|
+
// enums/ReportStatus.enum.ts
|
|
2200
|
+
var ReportStatus = /* @__PURE__ */ (function(ReportStatus2) {
|
|
2201
|
+
ReportStatus2["PENDING"] = "PENDING";
|
|
2202
|
+
ReportStatus2["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
2203
|
+
ReportStatus2["RESOLVED"] = "RESOLVED";
|
|
2204
|
+
ReportStatus2["DISMISSED"] = "DISMISSED";
|
|
2205
|
+
return ReportStatus2;
|
|
2206
|
+
})({});
|
|
2207
|
+
|
|
2208
|
+
// dto/tags/create_find_tag.dto.ts
|
|
2209
|
+
import { ApiProperty as ApiProperty26 } from "@nestjs/swagger";
|
|
2210
|
+
import { IsEnum as IsEnum10, IsNotEmpty as IsNotEmpty12, IsString as IsString17 } from "class-validator";
|
|
2211
|
+
function _ts_decorate38(decorators, target, key, desc) {
|
|
2212
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2213
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2214
|
+
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;
|
|
2215
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2216
|
+
}
|
|
2217
|
+
__name(_ts_decorate38, "_ts_decorate");
|
|
2218
|
+
function _ts_metadata38(k, v) {
|
|
2219
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2220
|
+
}
|
|
2221
|
+
__name(_ts_metadata38, "_ts_metadata");
|
|
2222
|
+
var _CreateOrGetTagDto = class _CreateOrGetTagDto {
|
|
2223
|
+
constructor() {
|
|
2224
|
+
__publicField(this, "name");
|
|
2225
|
+
__publicField(this, "sector");
|
|
2226
|
+
}
|
|
2227
|
+
};
|
|
2228
|
+
__name(_CreateOrGetTagDto, "CreateOrGetTagDto");
|
|
2229
|
+
var CreateOrGetTagDto = _CreateOrGetTagDto;
|
|
2230
|
+
_ts_decorate38([
|
|
2231
|
+
ApiProperty26({
|
|
2232
|
+
example: "#africa"
|
|
2233
|
+
}),
|
|
2234
|
+
IsString17(),
|
|
2235
|
+
IsNotEmpty12(),
|
|
2236
|
+
_ts_metadata38("design:type", String)
|
|
2237
|
+
], CreateOrGetTagDto.prototype, "name", void 0);
|
|
2238
|
+
_ts_decorate38([
|
|
2239
|
+
ApiProperty26({
|
|
2240
|
+
enum: BusinessSector
|
|
2241
|
+
}),
|
|
2242
|
+
IsEnum10(BusinessSector),
|
|
2243
|
+
IsString17(),
|
|
2244
|
+
IsNotEmpty12(),
|
|
2245
|
+
_ts_metadata38("design:type", typeof BusinessSector === "undefined" ? Object : BusinessSector)
|
|
2246
|
+
], CreateOrGetTagDto.prototype, "sector", void 0);
|
|
2247
|
+
|
|
2248
|
+
// dto/tags/get_tag_by_sector.dto.ts
|
|
2249
|
+
var _GetTagsBySectorDto = class _GetTagsBySectorDto {
|
|
2250
|
+
constructor() {
|
|
2251
|
+
__publicField(this, "sector");
|
|
2252
|
+
}
|
|
2253
|
+
};
|
|
2254
|
+
__name(_GetTagsBySectorDto, "GetTagsBySectorDto");
|
|
2255
|
+
var GetTagsBySectorDto = _GetTagsBySectorDto;
|
|
2256
|
+
|
|
2257
|
+
// dto/tags/search_tag.dto.ts
|
|
2258
|
+
var _SearchTagsDto = class _SearchTagsDto {
|
|
2259
|
+
constructor() {
|
|
2260
|
+
__publicField(this, "name");
|
|
2261
|
+
}
|
|
2262
|
+
};
|
|
2263
|
+
__name(_SearchTagsDto, "SearchTagsDto");
|
|
2264
|
+
var SearchTagsDto = _SearchTagsDto;
|
|
1959
2265
|
export {
|
|
1960
2266
|
BusinessSector,
|
|
1961
2267
|
CommentFields,
|
|
@@ -1963,8 +2269,10 @@ export {
|
|
|
1963
2269
|
CommentResponseDto,
|
|
1964
2270
|
CommentTreeDto,
|
|
1965
2271
|
CreateCommentDto,
|
|
2272
|
+
CreateOrGetTagDto,
|
|
1966
2273
|
CreatePostDto,
|
|
1967
2274
|
CreatePostFileDto,
|
|
2275
|
+
CreateReportDto,
|
|
1968
2276
|
CreateUserDto,
|
|
1969
2277
|
CreateUserFireBaseDto,
|
|
1970
2278
|
DeleteFileDto,
|
|
@@ -1974,6 +2282,7 @@ export {
|
|
|
1974
2282
|
FindAllUsersDto,
|
|
1975
2283
|
FindByRoleDto,
|
|
1976
2284
|
ForgotPasswordDto,
|
|
2285
|
+
GetTagsBySectorDto,
|
|
1977
2286
|
LikeCommentDto,
|
|
1978
2287
|
LikePostDto,
|
|
1979
2288
|
LoginLocalDTO,
|
|
@@ -1990,12 +2299,19 @@ export {
|
|
|
1990
2299
|
ProfessionalProfileResponseDto,
|
|
1991
2300
|
ReactionType,
|
|
1992
2301
|
ReorderDto,
|
|
2302
|
+
ReportCategory,
|
|
2303
|
+
ReportStatus,
|
|
1993
2304
|
ResetPasswordDto,
|
|
2305
|
+
RoleName,
|
|
2306
|
+
SearchTagsDto,
|
|
1994
2307
|
SearchUsersByFullNameDTO,
|
|
2308
|
+
TagResponseDto,
|
|
1995
2309
|
UpdateCommentDto,
|
|
1996
2310
|
UpdatePasswordDto,
|
|
1997
2311
|
UpdatePostDto,
|
|
2312
|
+
UpdateProfessionalProfileDto,
|
|
1998
2313
|
UpdateUserDto,
|
|
1999
2314
|
UploadFileDto,
|
|
2000
|
-
UserResponseDto
|
|
2315
|
+
UserResponseDto,
|
|
2316
|
+
UserType
|
|
2001
2317
|
};
|