@feresmeryas/microservices-common 1.5.20 → 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 CHANGED
@@ -1,8 +1,43 @@
1
+ declare enum UserType {
2
+ DEFAULT = "DEFAULT",
3
+ PROFESSIONAL = "PROFESSIONAL"
4
+ }
5
+
6
+ declare enum BusinessSector {
7
+ IT_SOFTWARE = "IT & Software Development",
8
+ DATA_ANALYTICS = "Data Science & Analytics",
9
+ ENGINEERING = "Engineering & Architecture",
10
+ DESIGN_CREATIVE = "Design & Creative",
11
+ WRITING_TRANSLATION = "Writing & Translation",
12
+ VIDEO_ANIMATION = "Video & Animation",
13
+ AUDIO_MUSIC = "Music & Audio",
14
+ MARKETING_SALES = "Marketing & Sales",
15
+ FINANCE_ACCOUNTING = "Finance & Accounting",
16
+ LEGAL = "Legal Services",
17
+ HR_RECRUITING = "HR & Recruiting",
18
+ CONSULTING = "Business Consulting",
19
+ ADMIN_SUPPORT = "Admin & Customer Support",
20
+ TRADES_CRAFTSMANSHIP = "Trades & Craftsmanship",
21
+ HEALTH_WELLNESS = "Health & Wellness",
22
+ EDUCATION_TRAINING = "Education & Training",
23
+ EVENTS_LIFESTYLE = "Events & Lifestyle",
24
+ REAL_ESTATE = "Real Estate",
25
+ LOGISTICS_OPERATIONS = "Logistics & Operations"
26
+ }
27
+
1
28
  declare class CreateUserDto {
2
29
  email: string;
3
30
  fullName: string;
4
31
  password: string;
5
32
  confirmPassword: string;
33
+ userType: UserType;
34
+ businessSector?: BusinessSector;
35
+ bio?: string;
36
+ companyName?: string;
37
+ website?: string;
38
+ phone?: string;
39
+ location?: string;
40
+ yearsOfExperience?: number;
6
41
  }
7
42
 
8
43
  declare class CreateUserFireBaseDto {
@@ -46,17 +81,33 @@ declare class UpdatePasswordDto {
46
81
  confirmNewPassword: string;
47
82
  }
48
83
 
49
- type roleType = {
50
- name: string;
51
- };
52
84
  declare class UserResponseDto {
53
85
  id: string;
54
- fullName: string;
55
- profilePictureUrl: string | null;
56
86
  email: string;
87
+ fullName: string;
88
+ profilePictureUrl?: string | null;
89
+ userType: UserType;
90
+ createdAt: Date;
91
+ updatedAt: Date;
92
+ role: {
93
+ name: string;
94
+ };
95
+ professionalProfile?: ProfessionalProfileResponseDto;
96
+ }
97
+ declare class ProfessionalProfileResponseDto {
98
+ id: string;
99
+ businessSector: BusinessSector;
100
+ bio?: string | null;
101
+ companyName?: string | null;
102
+ website?: string | null;
103
+ phone?: string | null;
104
+ location?: string | null;
105
+ yearsOfExperience?: number | null;
106
+ isVerified: boolean;
107
+ hourlyRate?: number | null;
108
+ availabilityStatus: string;
57
109
  createdAt: Date;
58
110
  updatedAt: Date;
59
- role: roleType;
60
111
  }
61
112
 
62
113
  declare class SearchUsersByFullNameDTO extends FindAllUsersDto {
@@ -130,28 +181,6 @@ declare class CreatePostFileDto {
130
181
  fileType: string;
131
182
  }
132
183
 
133
- declare enum BusinessSector {
134
- IT_SOFTWARE = "IT & Software Development",
135
- DATA_ANALYTICS = "Data Science & Analytics",
136
- ENGINEERING = "Engineering & Architecture",
137
- DESIGN_CREATIVE = "Design & Creative",
138
- WRITING_TRANSLATION = "Writing & Translation",
139
- VIDEO_ANIMATION = "Video & Animation",
140
- AUDIO_MUSIC = "Music & Audio",
141
- MARKETING_SALES = "Marketing & Sales",
142
- FINANCE_ACCOUNTING = "Finance & Accounting",
143
- LEGAL = "Legal Services",
144
- HR_RECRUITING = "HR & Recruiting",
145
- CONSULTING = "Business Consulting",
146
- ADMIN_SUPPORT = "Admin & Customer Support",
147
- TRADES_CRAFTSMANSHIP = "Trades & Craftsmanship",
148
- HEALTH_WELLNESS = "Health & Wellness",
149
- EDUCATION_TRAINING = "Education & Training",
150
- EVENTS_LIFESTYLE = "Events & Lifestyle",
151
- REAL_ESTATE = "Real Estate",
152
- LOGISTICS_OPERATIONS = "Logistics & Operations"
153
- }
154
-
155
184
  declare class CreatePostDto {
156
185
  description: string;
157
186
  sector: BusinessSector;
@@ -167,12 +196,6 @@ declare class PostFileDto {
167
196
  createdAt: Date;
168
197
  }
169
198
 
170
- declare class TagResponseDto {
171
- name: string;
172
- slug: string;
173
- id: string;
174
- }
175
-
176
199
  declare class PostResponseDto {
177
200
  id: string;
178
201
  publisherId: string;
@@ -180,7 +203,6 @@ declare class PostResponseDto {
180
203
  publisherFullName: string;
181
204
  publisherProfilePictureUrl: string | null;
182
205
  files: PostFileDto[];
183
- tags: TagResponseDto[];
184
206
  commentsCount: number;
185
207
  sector: BusinessSector;
186
208
  likesCount: number;
@@ -325,4 +347,4 @@ declare class PaginatedCommentLikesDto {
325
347
  totalPages: number;
326
348
  }
327
349
 
328
- export { BusinessSector, CommentFields, CommentLikeResponseDto, CommentResponseDto, CommentTreeDto, CreateCommentDto, CreatePostDto, CreatePostFileDto, CreateUserDto, CreateUserFireBaseDto, DeleteFileDto, type DeviceInfo, EmailParamDto, FileCategory, FileResponseDto, FindAllUsersDto, FindByRoleDto, ForgotPasswordDto, type IStorageProvider, LikeCommentDto, LikePostDto, LoginLocalDTO, PaginatedCommentLikesDto, PaginatedCommentsDto, PaginatedPostLikesDto, PaginatedPostsDto, PaginatedPostsSelfDto, PostFields, PostFileDto, PostLikeResponseDto, PostResponseDto, PostResponseSelfDto, ReactionType, ReorderDto, ResetPasswordDto, SearchUsersByFullNameDTO, UpdateCommentDto, UpdatePasswordDto, UpdatePostDto, UpdateUserDto, UploadFileDto, type UploadedFile, UserResponseDto };
350
+ export { BusinessSector, CommentFields, CommentLikeResponseDto, CommentResponseDto, CommentTreeDto, CreateCommentDto, CreatePostDto, CreatePostFileDto, CreateUserDto, CreateUserFireBaseDto, DeleteFileDto, type DeviceInfo, EmailParamDto, FileCategory, FileResponseDto, FindAllUsersDto, FindByRoleDto, ForgotPasswordDto, type IStorageProvider, LikeCommentDto, LikePostDto, LoginLocalDTO, PaginatedCommentLikesDto, PaginatedCommentsDto, PaginatedPostLikesDto, PaginatedPostsDto, PaginatedPostsSelfDto, PostFields, PostFileDto, PostLikeResponseDto, PostResponseDto, PostResponseSelfDto, ProfessionalProfileResponseDto, ReactionType, ReorderDto, ResetPasswordDto, SearchUsersByFullNameDTO, UpdateCommentDto, UpdatePasswordDto, UpdatePostDto, UpdateUserDto, UploadFileDto, type UploadedFile, UserResponseDto };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,43 @@
1
+ declare enum UserType {
2
+ DEFAULT = "DEFAULT",
3
+ PROFESSIONAL = "PROFESSIONAL"
4
+ }
5
+
6
+ declare enum BusinessSector {
7
+ IT_SOFTWARE = "IT & Software Development",
8
+ DATA_ANALYTICS = "Data Science & Analytics",
9
+ ENGINEERING = "Engineering & Architecture",
10
+ DESIGN_CREATIVE = "Design & Creative",
11
+ WRITING_TRANSLATION = "Writing & Translation",
12
+ VIDEO_ANIMATION = "Video & Animation",
13
+ AUDIO_MUSIC = "Music & Audio",
14
+ MARKETING_SALES = "Marketing & Sales",
15
+ FINANCE_ACCOUNTING = "Finance & Accounting",
16
+ LEGAL = "Legal Services",
17
+ HR_RECRUITING = "HR & Recruiting",
18
+ CONSULTING = "Business Consulting",
19
+ ADMIN_SUPPORT = "Admin & Customer Support",
20
+ TRADES_CRAFTSMANSHIP = "Trades & Craftsmanship",
21
+ HEALTH_WELLNESS = "Health & Wellness",
22
+ EDUCATION_TRAINING = "Education & Training",
23
+ EVENTS_LIFESTYLE = "Events & Lifestyle",
24
+ REAL_ESTATE = "Real Estate",
25
+ LOGISTICS_OPERATIONS = "Logistics & Operations"
26
+ }
27
+
1
28
  declare class CreateUserDto {
2
29
  email: string;
3
30
  fullName: string;
4
31
  password: string;
5
32
  confirmPassword: string;
33
+ userType: UserType;
34
+ businessSector?: BusinessSector;
35
+ bio?: string;
36
+ companyName?: string;
37
+ website?: string;
38
+ phone?: string;
39
+ location?: string;
40
+ yearsOfExperience?: number;
6
41
  }
7
42
 
8
43
  declare class CreateUserFireBaseDto {
@@ -46,17 +81,33 @@ declare class UpdatePasswordDto {
46
81
  confirmNewPassword: string;
47
82
  }
48
83
 
49
- type roleType = {
50
- name: string;
51
- };
52
84
  declare class UserResponseDto {
53
85
  id: string;
54
- fullName: string;
55
- profilePictureUrl: string | null;
56
86
  email: string;
87
+ fullName: string;
88
+ profilePictureUrl?: string | null;
89
+ userType: UserType;
90
+ createdAt: Date;
91
+ updatedAt: Date;
92
+ role: {
93
+ name: string;
94
+ };
95
+ professionalProfile?: ProfessionalProfileResponseDto;
96
+ }
97
+ declare class ProfessionalProfileResponseDto {
98
+ id: string;
99
+ businessSector: BusinessSector;
100
+ bio?: string | null;
101
+ companyName?: string | null;
102
+ website?: string | null;
103
+ phone?: string | null;
104
+ location?: string | null;
105
+ yearsOfExperience?: number | null;
106
+ isVerified: boolean;
107
+ hourlyRate?: number | null;
108
+ availabilityStatus: string;
57
109
  createdAt: Date;
58
110
  updatedAt: Date;
59
- role: roleType;
60
111
  }
61
112
 
62
113
  declare class SearchUsersByFullNameDTO extends FindAllUsersDto {
@@ -130,28 +181,6 @@ declare class CreatePostFileDto {
130
181
  fileType: string;
131
182
  }
132
183
 
133
- declare enum BusinessSector {
134
- IT_SOFTWARE = "IT & Software Development",
135
- DATA_ANALYTICS = "Data Science & Analytics",
136
- ENGINEERING = "Engineering & Architecture",
137
- DESIGN_CREATIVE = "Design & Creative",
138
- WRITING_TRANSLATION = "Writing & Translation",
139
- VIDEO_ANIMATION = "Video & Animation",
140
- AUDIO_MUSIC = "Music & Audio",
141
- MARKETING_SALES = "Marketing & Sales",
142
- FINANCE_ACCOUNTING = "Finance & Accounting",
143
- LEGAL = "Legal Services",
144
- HR_RECRUITING = "HR & Recruiting",
145
- CONSULTING = "Business Consulting",
146
- ADMIN_SUPPORT = "Admin & Customer Support",
147
- TRADES_CRAFTSMANSHIP = "Trades & Craftsmanship",
148
- HEALTH_WELLNESS = "Health & Wellness",
149
- EDUCATION_TRAINING = "Education & Training",
150
- EVENTS_LIFESTYLE = "Events & Lifestyle",
151
- REAL_ESTATE = "Real Estate",
152
- LOGISTICS_OPERATIONS = "Logistics & Operations"
153
- }
154
-
155
184
  declare class CreatePostDto {
156
185
  description: string;
157
186
  sector: BusinessSector;
@@ -167,12 +196,6 @@ declare class PostFileDto {
167
196
  createdAt: Date;
168
197
  }
169
198
 
170
- declare class TagResponseDto {
171
- name: string;
172
- slug: string;
173
- id: string;
174
- }
175
-
176
199
  declare class PostResponseDto {
177
200
  id: string;
178
201
  publisherId: string;
@@ -180,7 +203,6 @@ declare class PostResponseDto {
180
203
  publisherFullName: string;
181
204
  publisherProfilePictureUrl: string | null;
182
205
  files: PostFileDto[];
183
- tags: TagResponseDto[];
184
206
  commentsCount: number;
185
207
  sector: BusinessSector;
186
208
  likesCount: number;
@@ -325,4 +347,4 @@ declare class PaginatedCommentLikesDto {
325
347
  totalPages: number;
326
348
  }
327
349
 
328
- export { BusinessSector, CommentFields, CommentLikeResponseDto, CommentResponseDto, CommentTreeDto, CreateCommentDto, CreatePostDto, CreatePostFileDto, CreateUserDto, CreateUserFireBaseDto, DeleteFileDto, type DeviceInfo, EmailParamDto, FileCategory, FileResponseDto, FindAllUsersDto, FindByRoleDto, ForgotPasswordDto, type IStorageProvider, LikeCommentDto, LikePostDto, LoginLocalDTO, PaginatedCommentLikesDto, PaginatedCommentsDto, PaginatedPostLikesDto, PaginatedPostsDto, PaginatedPostsSelfDto, PostFields, PostFileDto, PostLikeResponseDto, PostResponseDto, PostResponseSelfDto, ReactionType, ReorderDto, ResetPasswordDto, SearchUsersByFullNameDTO, UpdateCommentDto, UpdatePasswordDto, UpdatePostDto, UpdateUserDto, UploadFileDto, type UploadedFile, UserResponseDto };
350
+ export { BusinessSector, CommentFields, CommentLikeResponseDto, CommentResponseDto, CommentTreeDto, CreateCommentDto, CreatePostDto, CreatePostFileDto, CreateUserDto, CreateUserFireBaseDto, DeleteFileDto, type DeviceInfo, EmailParamDto, FileCategory, FileResponseDto, FindAllUsersDto, FindByRoleDto, ForgotPasswordDto, type IStorageProvider, LikeCommentDto, LikePostDto, LoginLocalDTO, PaginatedCommentLikesDto, PaginatedCommentsDto, PaginatedPostLikesDto, PaginatedPostsDto, PaginatedPostsSelfDto, PostFields, PostFileDto, PostLikeResponseDto, PostResponseDto, PostResponseSelfDto, ProfessionalProfileResponseDto, ReactionType, ReorderDto, ResetPasswordDto, SearchUsersByFullNameDTO, UpdateCommentDto, UpdatePasswordDto, UpdatePostDto, UpdateUserDto, UploadFileDto, type UploadedFile, UserResponseDto };