@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.d.mts
CHANGED
|
@@ -114,6 +114,36 @@ declare class SearchUsersByFullNameDTO extends FindAllUsersDto {
|
|
|
114
114
|
fullName?: string;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
declare class UpdateProfessionalProfileDto {
|
|
118
|
+
businessSector?: BusinessSector;
|
|
119
|
+
bio?: string;
|
|
120
|
+
companyName?: string;
|
|
121
|
+
website?: string;
|
|
122
|
+
phone?: string;
|
|
123
|
+
location?: string;
|
|
124
|
+
yearsOfExperience?: number;
|
|
125
|
+
hourlyRate?: number;
|
|
126
|
+
availabilityStatus?: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare enum ReportCategory {
|
|
130
|
+
SPAM = "SPAM",
|
|
131
|
+
HARASSMENT = "HARASSMENT",
|
|
132
|
+
INAPPROPRIATE_CONTENT = "INAPPROPRIATE_CONTENT",
|
|
133
|
+
FAKE_ACCOUNT = "FAKE_ACCOUNT",
|
|
134
|
+
IMPERSONATION = "IMPERSONATION",
|
|
135
|
+
HATE_SPEECH = "HATE_SPEECH",
|
|
136
|
+
VIOLENCE = "VIOLENCE",
|
|
137
|
+
SCAM = "SCAM",
|
|
138
|
+
OTHER = "OTHER"
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare class CreateReportDto {
|
|
142
|
+
reportedUserId: string;
|
|
143
|
+
category: ReportCategory;
|
|
144
|
+
description: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
117
147
|
declare class DeleteFileDto {
|
|
118
148
|
fileUrl: string;
|
|
119
149
|
}
|
|
@@ -196,6 +226,12 @@ declare class PostFileDto {
|
|
|
196
226
|
createdAt: Date;
|
|
197
227
|
}
|
|
198
228
|
|
|
229
|
+
declare class TagResponseDto {
|
|
230
|
+
name: string;
|
|
231
|
+
slug: string;
|
|
232
|
+
id: string;
|
|
233
|
+
}
|
|
234
|
+
|
|
199
235
|
declare class PostResponseDto {
|
|
200
236
|
id: string;
|
|
201
237
|
publisherId: string;
|
|
@@ -203,6 +239,7 @@ declare class PostResponseDto {
|
|
|
203
239
|
publisherFullName: string;
|
|
204
240
|
publisherProfilePictureUrl: string | null;
|
|
205
241
|
files: PostFileDto[];
|
|
242
|
+
tags: TagResponseDto[];
|
|
206
243
|
commentsCount: number;
|
|
207
244
|
sector: BusinessSector;
|
|
208
245
|
likesCount: number;
|
|
@@ -218,8 +255,8 @@ declare class PaginatedPostsDto {
|
|
|
218
255
|
}
|
|
219
256
|
|
|
220
257
|
declare class UpdatePostDto {
|
|
221
|
-
description
|
|
222
|
-
sector
|
|
258
|
+
description?: string;
|
|
259
|
+
sector?: BusinessSector;
|
|
223
260
|
}
|
|
224
261
|
|
|
225
262
|
declare class PostFields {
|
|
@@ -347,4 +384,30 @@ declare class PaginatedCommentLikesDto {
|
|
|
347
384
|
totalPages: number;
|
|
348
385
|
}
|
|
349
386
|
|
|
350
|
-
|
|
387
|
+
declare enum RoleName {
|
|
388
|
+
PREMIUM = "PREMIUM",
|
|
389
|
+
DEFAULT = "DEFAULT",
|
|
390
|
+
VISITOR = "VISITOR"
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
declare enum ReportStatus {
|
|
394
|
+
PENDING = "PENDING",
|
|
395
|
+
UNDER_REVIEW = "UNDER_REVIEW",
|
|
396
|
+
RESOLVED = "RESOLVED",
|
|
397
|
+
DISMISSED = "DISMISSED"
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
declare class CreateOrGetTagDto {
|
|
401
|
+
name: string;
|
|
402
|
+
sector: BusinessSector;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
declare class GetTagsBySectorDto {
|
|
406
|
+
sector: BusinessSector;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
declare class SearchTagsDto {
|
|
410
|
+
name: string;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export { BusinessSector, CommentFields, CommentLikeResponseDto, CommentResponseDto, CommentTreeDto, CreateCommentDto, CreateOrGetTagDto, CreatePostDto, CreatePostFileDto, CreateReportDto, CreateUserDto, CreateUserFireBaseDto, DeleteFileDto, type DeviceInfo, EmailParamDto, FileCategory, FileResponseDto, FindAllUsersDto, FindByRoleDto, ForgotPasswordDto, GetTagsBySectorDto, type IStorageProvider, LikeCommentDto, LikePostDto, LoginLocalDTO, PaginatedCommentLikesDto, PaginatedCommentsDto, PaginatedPostLikesDto, PaginatedPostsDto, PaginatedPostsSelfDto, PostFields, PostFileDto, PostLikeResponseDto, PostResponseDto, PostResponseSelfDto, ProfessionalProfileResponseDto, ReactionType, ReorderDto, ReportCategory, ReportStatus, ResetPasswordDto, RoleName, SearchTagsDto, SearchUsersByFullNameDTO, TagResponseDto, UpdateCommentDto, UpdatePasswordDto, UpdatePostDto, UpdateProfessionalProfileDto, UpdateUserDto, UploadFileDto, type UploadedFile, UserResponseDto, UserType };
|
package/dist/index.d.ts
CHANGED
|
@@ -114,6 +114,36 @@ declare class SearchUsersByFullNameDTO extends FindAllUsersDto {
|
|
|
114
114
|
fullName?: string;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
declare class UpdateProfessionalProfileDto {
|
|
118
|
+
businessSector?: BusinessSector;
|
|
119
|
+
bio?: string;
|
|
120
|
+
companyName?: string;
|
|
121
|
+
website?: string;
|
|
122
|
+
phone?: string;
|
|
123
|
+
location?: string;
|
|
124
|
+
yearsOfExperience?: number;
|
|
125
|
+
hourlyRate?: number;
|
|
126
|
+
availabilityStatus?: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare enum ReportCategory {
|
|
130
|
+
SPAM = "SPAM",
|
|
131
|
+
HARASSMENT = "HARASSMENT",
|
|
132
|
+
INAPPROPRIATE_CONTENT = "INAPPROPRIATE_CONTENT",
|
|
133
|
+
FAKE_ACCOUNT = "FAKE_ACCOUNT",
|
|
134
|
+
IMPERSONATION = "IMPERSONATION",
|
|
135
|
+
HATE_SPEECH = "HATE_SPEECH",
|
|
136
|
+
VIOLENCE = "VIOLENCE",
|
|
137
|
+
SCAM = "SCAM",
|
|
138
|
+
OTHER = "OTHER"
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare class CreateReportDto {
|
|
142
|
+
reportedUserId: string;
|
|
143
|
+
category: ReportCategory;
|
|
144
|
+
description: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
117
147
|
declare class DeleteFileDto {
|
|
118
148
|
fileUrl: string;
|
|
119
149
|
}
|
|
@@ -196,6 +226,12 @@ declare class PostFileDto {
|
|
|
196
226
|
createdAt: Date;
|
|
197
227
|
}
|
|
198
228
|
|
|
229
|
+
declare class TagResponseDto {
|
|
230
|
+
name: string;
|
|
231
|
+
slug: string;
|
|
232
|
+
id: string;
|
|
233
|
+
}
|
|
234
|
+
|
|
199
235
|
declare class PostResponseDto {
|
|
200
236
|
id: string;
|
|
201
237
|
publisherId: string;
|
|
@@ -203,6 +239,7 @@ declare class PostResponseDto {
|
|
|
203
239
|
publisherFullName: string;
|
|
204
240
|
publisherProfilePictureUrl: string | null;
|
|
205
241
|
files: PostFileDto[];
|
|
242
|
+
tags: TagResponseDto[];
|
|
206
243
|
commentsCount: number;
|
|
207
244
|
sector: BusinessSector;
|
|
208
245
|
likesCount: number;
|
|
@@ -218,8 +255,8 @@ declare class PaginatedPostsDto {
|
|
|
218
255
|
}
|
|
219
256
|
|
|
220
257
|
declare class UpdatePostDto {
|
|
221
|
-
description
|
|
222
|
-
sector
|
|
258
|
+
description?: string;
|
|
259
|
+
sector?: BusinessSector;
|
|
223
260
|
}
|
|
224
261
|
|
|
225
262
|
declare class PostFields {
|
|
@@ -347,4 +384,30 @@ declare class PaginatedCommentLikesDto {
|
|
|
347
384
|
totalPages: number;
|
|
348
385
|
}
|
|
349
386
|
|
|
350
|
-
|
|
387
|
+
declare enum RoleName {
|
|
388
|
+
PREMIUM = "PREMIUM",
|
|
389
|
+
DEFAULT = "DEFAULT",
|
|
390
|
+
VISITOR = "VISITOR"
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
declare enum ReportStatus {
|
|
394
|
+
PENDING = "PENDING",
|
|
395
|
+
UNDER_REVIEW = "UNDER_REVIEW",
|
|
396
|
+
RESOLVED = "RESOLVED",
|
|
397
|
+
DISMISSED = "DISMISSED"
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
declare class CreateOrGetTagDto {
|
|
401
|
+
name: string;
|
|
402
|
+
sector: BusinessSector;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
declare class GetTagsBySectorDto {
|
|
406
|
+
sector: BusinessSector;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
declare class SearchTagsDto {
|
|
410
|
+
name: string;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export { BusinessSector, CommentFields, CommentLikeResponseDto, CommentResponseDto, CommentTreeDto, CreateCommentDto, CreateOrGetTagDto, CreatePostDto, CreatePostFileDto, CreateReportDto, CreateUserDto, CreateUserFireBaseDto, DeleteFileDto, type DeviceInfo, EmailParamDto, FileCategory, FileResponseDto, FindAllUsersDto, FindByRoleDto, ForgotPasswordDto, GetTagsBySectorDto, type IStorageProvider, LikeCommentDto, LikePostDto, LoginLocalDTO, PaginatedCommentLikesDto, PaginatedCommentsDto, PaginatedPostLikesDto, PaginatedPostsDto, PaginatedPostsSelfDto, PostFields, PostFileDto, PostLikeResponseDto, PostResponseDto, PostResponseSelfDto, ProfessionalProfileResponseDto, ReactionType, ReorderDto, ReportCategory, ReportStatus, ResetPasswordDto, RoleName, SearchTagsDto, SearchUsersByFullNameDTO, TagResponseDto, UpdateCommentDto, UpdatePasswordDto, UpdatePostDto, UpdateProfessionalProfileDto, UpdateUserDto, UploadFileDto, type UploadedFile, UserResponseDto, UserType };
|