@feresmeryas/microservices-common 1.5.20 → 1.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +74 -31
- package/dist/index.d.ts +74 -31
- package/dist/index.js +710 -416
- package/dist/index.mjs +771 -482
- package/package.json +1 -1
package/dist/index.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;
|
|
@@ -196,8 +225,8 @@ declare class PaginatedPostsDto {
|
|
|
196
225
|
}
|
|
197
226
|
|
|
198
227
|
declare class UpdatePostDto {
|
|
199
|
-
description
|
|
200
|
-
sector
|
|
228
|
+
description?: string;
|
|
229
|
+
sector?: BusinessSector;
|
|
201
230
|
}
|
|
202
231
|
|
|
203
232
|
declare class PostFields {
|
|
@@ -325,4 +354,18 @@ declare class PaginatedCommentLikesDto {
|
|
|
325
354
|
totalPages: number;
|
|
326
355
|
}
|
|
327
356
|
|
|
328
|
-
|
|
357
|
+
declare class CreateOrGetTagDto {
|
|
358
|
+
name: string;
|
|
359
|
+
sector: BusinessSector;
|
|
360
|
+
type?: "SYSTEM" | "USER_GENERATED";
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
declare class GetTagsBySectorDto {
|
|
364
|
+
sector: BusinessSector;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
declare class SearchTagsDto {
|
|
368
|
+
name: string;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export { BusinessSector, CommentFields, CommentLikeResponseDto, CommentResponseDto, CommentTreeDto, CreateCommentDto, CreateOrGetTagDto, CreatePostDto, CreatePostFileDto, 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, ResetPasswordDto, SearchTagsDto, SearchUsersByFullNameDTO, TagResponseDto, 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;
|
|
@@ -196,8 +225,8 @@ declare class PaginatedPostsDto {
|
|
|
196
225
|
}
|
|
197
226
|
|
|
198
227
|
declare class UpdatePostDto {
|
|
199
|
-
description
|
|
200
|
-
sector
|
|
228
|
+
description?: string;
|
|
229
|
+
sector?: BusinessSector;
|
|
201
230
|
}
|
|
202
231
|
|
|
203
232
|
declare class PostFields {
|
|
@@ -325,4 +354,18 @@ declare class PaginatedCommentLikesDto {
|
|
|
325
354
|
totalPages: number;
|
|
326
355
|
}
|
|
327
356
|
|
|
328
|
-
|
|
357
|
+
declare class CreateOrGetTagDto {
|
|
358
|
+
name: string;
|
|
359
|
+
sector: BusinessSector;
|
|
360
|
+
type?: "SYSTEM" | "USER_GENERATED";
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
declare class GetTagsBySectorDto {
|
|
364
|
+
sector: BusinessSector;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
declare class SearchTagsDto {
|
|
368
|
+
name: string;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export { BusinessSector, CommentFields, CommentLikeResponseDto, CommentResponseDto, CommentTreeDto, CreateCommentDto, CreateOrGetTagDto, CreatePostDto, CreatePostFileDto, 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, ResetPasswordDto, SearchTagsDto, SearchUsersByFullNameDTO, TagResponseDto, UpdateCommentDto, UpdatePasswordDto, UpdatePostDto, UpdateUserDto, UploadFileDto, type UploadedFile, UserResponseDto };
|