@experts_hub/shared 1.0.144 → 1.0.146
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/entities/freelancer-casestudy.entity.d.ts +9 -0
- package/dist/entities/freelancer-project.entity.d.ts +12 -0
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +4 -1
- package/dist/index.d.mts +54 -2
- package/dist/index.d.ts +54 -2
- package/dist/index.js +249 -91
- package/dist/index.mjs +234 -72
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/user/freelancer-project/dto/index.d.ts +2 -0
- package/dist/modules/user/freelancer-project/dto/update-freelancer-casestudy.dto.d.ts +9 -0
- package/dist/modules/user/freelancer-project/dto/update-freelancer-project.dto.d.ts +12 -0
- package/dist/modules/user/freelancer-project/index.d.ts +2 -0
- package/dist/modules/user/freelancer-project/pattern/pattern.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56,11 +56,14 @@ __export(index_exports, {
|
|
|
56
56
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
57
57
|
DurationTypeEnum: () => DurationTypeEnum,
|
|
58
58
|
EmploymentType: () => EmploymentType,
|
|
59
|
+
FREELANCER_CASESTUDY_PATTERN: () => FREELANCER_CASESTUDY_PATTERN,
|
|
59
60
|
FREELANCER_EDUCATION_PATTERN: () => FREELANCER_EDUCATION_PATTERN,
|
|
60
61
|
FREELANCER_EXPERIENCE_PATTERN: () => FREELANCER_EXPERIENCE_PATTERN,
|
|
62
|
+
FREELANCER_PROJECT_PATTERN: () => FREELANCER_PROJECT_PATTERN,
|
|
61
63
|
Feature: () => Feature,
|
|
62
64
|
ForgotPasswordDto: () => ForgotPasswordDto,
|
|
63
65
|
FreelancerBankDetailsDto: () => FreelancerBankDetailsDto,
|
|
66
|
+
FreelancerCaseStudy: () => FreelancerCaseStudy,
|
|
64
67
|
FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
|
|
65
68
|
FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
|
|
66
69
|
FreelancerDevelopmentPreferenceDto: () => FreelancerDevelopmentPreferenceDto,
|
|
@@ -68,6 +71,7 @@ __export(index_exports, {
|
|
|
68
71
|
FreelancerExperience: () => FreelancerExperience,
|
|
69
72
|
FreelancerProfile: () => FreelancerProfile,
|
|
70
73
|
FreelancerProfileQuestionDto: () => FreelancerProfileQuestionDto,
|
|
74
|
+
FreelancerProject: () => FreelancerProject,
|
|
71
75
|
FreelancerUploadResumeDto: () => FreelancerUploadResumeDto,
|
|
72
76
|
FreelancerWorkShowcaseDto: () => FreelancerWorkShowcaseDto,
|
|
73
77
|
FromUsOn: () => FromUsOn,
|
|
@@ -131,14 +135,18 @@ __export(index_exports, {
|
|
|
131
135
|
ToggleCompanyMemberVisibilityDto: () => ToggleCompanyMemberVisibilityDto,
|
|
132
136
|
ToggleCompanyRoleVisibilityDto: () => ToggleCompanyRoleVisibilityDto,
|
|
133
137
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
138
|
+
UpdateCaseStudyDto: () => UpdateCaseStudyDto,
|
|
134
139
|
UpdateCompanyMemberDto: () => UpdateCompanyMemberDto,
|
|
135
140
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
136
141
|
UpdateCompanyRoleDto: () => UpdateCompanyRoleDto,
|
|
137
142
|
UpdateEducationDto: () => UpdateEducationDto,
|
|
138
143
|
UpdateExperienceDto: () => UpdateExperienceDto,
|
|
144
|
+
UpdateFreelancerCaseStudyDto: () => UpdateFreelancerCaseStudyDto,
|
|
139
145
|
UpdateFreelancerEducationDto: () => UpdateFreelancerEducationDto,
|
|
140
146
|
UpdateFreelancerExperienceDto: () => UpdateFreelancerExperienceDto,
|
|
141
147
|
UpdateFreelancerProfileDto: () => UpdateFreelancerProfileDto,
|
|
148
|
+
UpdateFreelancerProjectDto: () => UpdateFreelancerProjectDto,
|
|
149
|
+
UpdateProjectDto: () => UpdateProjectDto,
|
|
142
150
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
143
151
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
144
152
|
User: () => User,
|
|
@@ -1000,10 +1008,10 @@ var RATING_PATTERN = {
|
|
|
1000
1008
|
var import_class_validator29 = require("class-validator");
|
|
1001
1009
|
|
|
1002
1010
|
// src/entities/rating.entity.ts
|
|
1003
|
-
var
|
|
1011
|
+
var import_typeorm21 = require("typeorm");
|
|
1004
1012
|
|
|
1005
1013
|
// src/entities/user.entity.ts
|
|
1006
|
-
var
|
|
1014
|
+
var import_typeorm20 = require("typeorm");
|
|
1007
1015
|
|
|
1008
1016
|
// src/entities/base.entity.ts
|
|
1009
1017
|
var import_typeorm = require("typeorm");
|
|
@@ -1979,6 +1987,67 @@ FreelancerEducation = __decorateClass([
|
|
|
1979
1987
|
(0, import_typeorm17.Entity)("freelancer_educations")
|
|
1980
1988
|
], FreelancerEducation);
|
|
1981
1989
|
|
|
1990
|
+
// src/entities/freelancer-project.entity.ts
|
|
1991
|
+
var import_typeorm18 = require("typeorm");
|
|
1992
|
+
var FreelancerProject = class extends BaseEntity {
|
|
1993
|
+
};
|
|
1994
|
+
// individual index to find project by user
|
|
1995
|
+
__decorateClass([
|
|
1996
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1997
|
+
(0, import_typeorm18.Index)()
|
|
1998
|
+
], FreelancerProject.prototype, "userId", 2);
|
|
1999
|
+
__decorateClass([
|
|
2000
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
2001
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2002
|
+
], FreelancerProject.prototype, "user", 2);
|
|
2003
|
+
__decorateClass([
|
|
2004
|
+
(0, import_typeorm18.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2005
|
+
], FreelancerProject.prototype, "projectName", 2);
|
|
2006
|
+
__decorateClass([
|
|
2007
|
+
(0, import_typeorm18.Column)({ name: "start_date", type: "date", nullable: true })
|
|
2008
|
+
], FreelancerProject.prototype, "startDate", 2);
|
|
2009
|
+
__decorateClass([
|
|
2010
|
+
(0, import_typeorm18.Column)({ name: "end_date", type: "date", nullable: true })
|
|
2011
|
+
], FreelancerProject.prototype, "endDate", 2);
|
|
2012
|
+
__decorateClass([
|
|
2013
|
+
(0, import_typeorm18.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
2014
|
+
], FreelancerProject.prototype, "clientName", 2);
|
|
2015
|
+
__decorateClass([
|
|
2016
|
+
(0, import_typeorm18.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
2017
|
+
], FreelancerProject.prototype, "gitLink", 2);
|
|
2018
|
+
__decorateClass([
|
|
2019
|
+
(0, import_typeorm18.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2020
|
+
], FreelancerProject.prototype, "description", 2);
|
|
2021
|
+
FreelancerProject = __decorateClass([
|
|
2022
|
+
(0, import_typeorm18.Entity)("freelancer_projects")
|
|
2023
|
+
], FreelancerProject);
|
|
2024
|
+
|
|
2025
|
+
// src/entities/freelancer-casestudy.entity.ts
|
|
2026
|
+
var import_typeorm19 = require("typeorm");
|
|
2027
|
+
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2028
|
+
};
|
|
2029
|
+
// individual index to find case study by user
|
|
2030
|
+
__decorateClass([
|
|
2031
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2032
|
+
(0, import_typeorm19.Index)()
|
|
2033
|
+
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2034
|
+
__decorateClass([
|
|
2035
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
2036
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2037
|
+
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2038
|
+
__decorateClass([
|
|
2039
|
+
(0, import_typeorm19.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2040
|
+
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2041
|
+
__decorateClass([
|
|
2042
|
+
(0, import_typeorm19.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2043
|
+
], FreelancerCaseStudy.prototype, "CaseStudyLink", 2);
|
|
2044
|
+
__decorateClass([
|
|
2045
|
+
(0, import_typeorm19.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2046
|
+
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2047
|
+
FreelancerCaseStudy = __decorateClass([
|
|
2048
|
+
(0, import_typeorm19.Entity)("freelancer_case_studies")
|
|
2049
|
+
], FreelancerCaseStudy);
|
|
2050
|
+
|
|
1982
2051
|
// src/entities/user.entity.ts
|
|
1983
2052
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1984
2053
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2004,55 +2073,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2004
2073
|
var User = class extends BaseEntity {
|
|
2005
2074
|
};
|
|
2006
2075
|
__decorateClass([
|
|
2007
|
-
(0,
|
|
2076
|
+
(0, import_typeorm20.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
2008
2077
|
], User.prototype, "uniqueId", 2);
|
|
2009
2078
|
__decorateClass([
|
|
2010
|
-
(0,
|
|
2011
|
-
(0,
|
|
2079
|
+
(0, import_typeorm20.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2080
|
+
(0, import_typeorm20.Index)()
|
|
2012
2081
|
], User.prototype, "parentId", 2);
|
|
2013
2082
|
__decorateClass([
|
|
2014
|
-
(0,
|
|
2015
|
-
(0,
|
|
2083
|
+
(0, import_typeorm20.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2084
|
+
(0, import_typeorm20.Index)()
|
|
2016
2085
|
], User.prototype, "companyRoleId", 2);
|
|
2017
2086
|
__decorateClass([
|
|
2018
|
-
(0,
|
|
2019
|
-
(0,
|
|
2087
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2088
|
+
(0, import_typeorm20.JoinColumn)({ name: "parent_id" })
|
|
2020
2089
|
], User.prototype, "parent", 2);
|
|
2021
2090
|
__decorateClass([
|
|
2022
|
-
(0,
|
|
2091
|
+
(0, import_typeorm20.OneToMany)(() => User, (user) => user.parent)
|
|
2023
2092
|
], User.prototype, "children", 2);
|
|
2024
2093
|
__decorateClass([
|
|
2025
|
-
(0,
|
|
2094
|
+
(0, import_typeorm20.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2026
2095
|
], User.prototype, "username", 2);
|
|
2027
2096
|
__decorateClass([
|
|
2028
|
-
(0,
|
|
2097
|
+
(0, import_typeorm20.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2029
2098
|
], User.prototype, "firstName", 2);
|
|
2030
2099
|
__decorateClass([
|
|
2031
|
-
(0,
|
|
2100
|
+
(0, import_typeorm20.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2032
2101
|
], User.prototype, "lastName", 2);
|
|
2033
2102
|
__decorateClass([
|
|
2034
|
-
(0,
|
|
2103
|
+
(0, import_typeorm20.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
2035
2104
|
], User.prototype, "dateOfBirth", 2);
|
|
2036
2105
|
__decorateClass([
|
|
2037
|
-
(0,
|
|
2106
|
+
(0, import_typeorm20.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2038
2107
|
], User.prototype, "gender", 2);
|
|
2039
2108
|
__decorateClass([
|
|
2040
|
-
(0,
|
|
2109
|
+
(0, import_typeorm20.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2041
2110
|
], User.prototype, "profilePictureUrl", 2);
|
|
2042
2111
|
__decorateClass([
|
|
2043
|
-
(0,
|
|
2112
|
+
(0, import_typeorm20.Column)({ name: "email", type: "varchar", unique: true })
|
|
2044
2113
|
], User.prototype, "email", 2);
|
|
2045
2114
|
__decorateClass([
|
|
2046
|
-
(0,
|
|
2115
|
+
(0, import_typeorm20.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2047
2116
|
], User.prototype, "mobileCode", 2);
|
|
2048
2117
|
__decorateClass([
|
|
2049
|
-
(0,
|
|
2118
|
+
(0, import_typeorm20.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2050
2119
|
], User.prototype, "mobile", 2);
|
|
2051
2120
|
__decorateClass([
|
|
2052
|
-
(0,
|
|
2121
|
+
(0, import_typeorm20.Column)({ name: "password", type: "varchar", nullable: true })
|
|
2053
2122
|
], User.prototype, "password", 2);
|
|
2054
2123
|
__decorateClass([
|
|
2055
|
-
(0,
|
|
2124
|
+
(0, import_typeorm20.Column)({
|
|
2056
2125
|
name: "account_type",
|
|
2057
2126
|
type: "enum",
|
|
2058
2127
|
enum: AccountType,
|
|
@@ -2060,7 +2129,7 @@ __decorateClass([
|
|
|
2060
2129
|
})
|
|
2061
2130
|
], User.prototype, "accountType", 2);
|
|
2062
2131
|
__decorateClass([
|
|
2063
|
-
(0,
|
|
2132
|
+
(0, import_typeorm20.Column)({
|
|
2064
2133
|
name: "account_status",
|
|
2065
2134
|
type: "enum",
|
|
2066
2135
|
enum: AccountStatus,
|
|
@@ -2068,39 +2137,36 @@ __decorateClass([
|
|
|
2068
2137
|
})
|
|
2069
2138
|
], User.prototype, "accountStatus", 2);
|
|
2070
2139
|
__decorateClass([
|
|
2071
|
-
(0,
|
|
2140
|
+
(0, import_typeorm20.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2072
2141
|
], User.prototype, "isEmailVerified", 2);
|
|
2073
2142
|
__decorateClass([
|
|
2074
|
-
(0,
|
|
2143
|
+
(0, import_typeorm20.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2075
2144
|
], User.prototype, "isMobileVerified", 2);
|
|
2076
2145
|
__decorateClass([
|
|
2077
|
-
(0,
|
|
2078
|
-
], User.prototype, "isPasswordSetByUser", 2);
|
|
2079
|
-
__decorateClass([
|
|
2080
|
-
(0, import_typeorm18.Column)({
|
|
2146
|
+
(0, import_typeorm20.Column)({
|
|
2081
2147
|
name: "last_login_at",
|
|
2082
2148
|
type: "timestamp with time zone",
|
|
2083
2149
|
nullable: true
|
|
2084
2150
|
})
|
|
2085
2151
|
], User.prototype, "lastLoginAt", 2);
|
|
2086
2152
|
__decorateClass([
|
|
2087
|
-
(0,
|
|
2153
|
+
(0, import_typeorm20.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2088
2154
|
], User.prototype, "lastLoginIp", 2);
|
|
2089
2155
|
__decorateClass([
|
|
2090
|
-
(0,
|
|
2156
|
+
(0, import_typeorm20.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2091
2157
|
], User.prototype, "resetToken", 2);
|
|
2092
2158
|
__decorateClass([
|
|
2093
|
-
(0,
|
|
2159
|
+
(0, import_typeorm20.Column)({
|
|
2094
2160
|
name: "reset_token_expire_at",
|
|
2095
2161
|
type: "timestamp with time zone",
|
|
2096
2162
|
nullable: true
|
|
2097
2163
|
})
|
|
2098
2164
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2099
2165
|
__decorateClass([
|
|
2100
|
-
(0,
|
|
2166
|
+
(0, import_typeorm20.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2101
2167
|
], User.prototype, "refreshTokens", 2);
|
|
2102
2168
|
__decorateClass([
|
|
2103
|
-
(0,
|
|
2169
|
+
(0, import_typeorm20.Column)({
|
|
2104
2170
|
name: "provider",
|
|
2105
2171
|
type: "enum",
|
|
2106
2172
|
enum: Provider,
|
|
@@ -2109,67 +2175,73 @@ __decorateClass([
|
|
|
2109
2175
|
})
|
|
2110
2176
|
], User.prototype, "provider", 2);
|
|
2111
2177
|
__decorateClass([
|
|
2112
|
-
(0,
|
|
2178
|
+
(0, import_typeorm20.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2113
2179
|
], User.prototype, "providerToken", 2);
|
|
2114
2180
|
__decorateClass([
|
|
2115
|
-
(0,
|
|
2181
|
+
(0, import_typeorm20.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2116
2182
|
], User.prototype, "linkedInId", 2);
|
|
2117
2183
|
__decorateClass([
|
|
2118
|
-
(0,
|
|
2184
|
+
(0, import_typeorm20.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2119
2185
|
], User.prototype, "googleId", 2);
|
|
2120
2186
|
__decorateClass([
|
|
2121
|
-
(0,
|
|
2187
|
+
(0, import_typeorm20.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2122
2188
|
], User.prototype, "gitLabsId", 2);
|
|
2123
2189
|
__decorateClass([
|
|
2124
|
-
(0,
|
|
2190
|
+
(0, import_typeorm20.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2125
2191
|
], User.prototype, "otps", 2);
|
|
2126
2192
|
__decorateClass([
|
|
2127
|
-
(0,
|
|
2193
|
+
(0, import_typeorm20.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2128
2194
|
], User.prototype, "senseloafLogs", 2);
|
|
2129
2195
|
__decorateClass([
|
|
2130
|
-
(0,
|
|
2196
|
+
(0, import_typeorm20.OneToOne)(
|
|
2131
2197
|
() => FreelancerProfile,
|
|
2132
2198
|
(freelancerProfile) => freelancerProfile.user
|
|
2133
2199
|
)
|
|
2134
2200
|
], User.prototype, "freelancerProfile", 2);
|
|
2135
2201
|
__decorateClass([
|
|
2136
|
-
(0,
|
|
2202
|
+
(0, import_typeorm20.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2137
2203
|
], User.prototype, "companyProfile", 2);
|
|
2138
2204
|
__decorateClass([
|
|
2139
|
-
(0,
|
|
2205
|
+
(0, import_typeorm20.OneToMany)(() => Job, (job) => job.user)
|
|
2140
2206
|
], User.prototype, "jobs", 2);
|
|
2141
2207
|
__decorateClass([
|
|
2142
|
-
(0,
|
|
2208
|
+
(0, import_typeorm20.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2143
2209
|
], User.prototype, "interviews", 2);
|
|
2144
2210
|
__decorateClass([
|
|
2145
|
-
(0,
|
|
2211
|
+
(0, import_typeorm20.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2146
2212
|
], User.prototype, "bankDetail", 2);
|
|
2147
2213
|
__decorateClass([
|
|
2148
|
-
(0,
|
|
2214
|
+
(0, import_typeorm20.OneToMany)(
|
|
2149
2215
|
() => SystemPreference,
|
|
2150
2216
|
(systemPreference) => systemPreference.user
|
|
2151
2217
|
)
|
|
2152
2218
|
], User.prototype, "systemPreference", 2);
|
|
2153
2219
|
__decorateClass([
|
|
2154
|
-
(0,
|
|
2220
|
+
(0, import_typeorm20.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2155
2221
|
], User.prototype, "givenRatings", 2);
|
|
2156
2222
|
__decorateClass([
|
|
2157
|
-
(0,
|
|
2223
|
+
(0, import_typeorm20.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2158
2224
|
], User.prototype, "receivedRatings", 2);
|
|
2159
2225
|
__decorateClass([
|
|
2160
|
-
(0,
|
|
2226
|
+
(0, import_typeorm20.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2161
2227
|
], User.prototype, "jobApplications", 2);
|
|
2162
2228
|
__decorateClass([
|
|
2163
|
-
(0,
|
|
2229
|
+
(0, import_typeorm20.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2164
2230
|
], User.prototype, "companyRole", 2);
|
|
2165
2231
|
__decorateClass([
|
|
2166
|
-
(0,
|
|
2232
|
+
(0, import_typeorm20.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2167
2233
|
], User.prototype, "freelancerExperience", 2);
|
|
2168
2234
|
__decorateClass([
|
|
2169
|
-
(0,
|
|
2235
|
+
(0, import_typeorm20.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2170
2236
|
], User.prototype, "freelancerEducation", 2);
|
|
2237
|
+
__decorateClass([
|
|
2238
|
+
(0, import_typeorm20.OneToOne)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
2239
|
+
], User.prototype, "freelancerProject", 2);
|
|
2240
|
+
__decorateClass([
|
|
2241
|
+
(0, import_typeorm20.OneToOne)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
2242
|
+
], User.prototype, "freelancerCaseStudy", 2);
|
|
2171
2243
|
User = __decorateClass([
|
|
2172
|
-
(0,
|
|
2244
|
+
(0, import_typeorm20.Entity)("users")
|
|
2173
2245
|
], User);
|
|
2174
2246
|
|
|
2175
2247
|
// src/entities/rating.entity.ts
|
|
@@ -2181,36 +2253,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2181
2253
|
var Rating = class extends BaseEntity {
|
|
2182
2254
|
};
|
|
2183
2255
|
__decorateClass([
|
|
2184
|
-
(0,
|
|
2185
|
-
(0,
|
|
2256
|
+
(0, import_typeorm21.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2257
|
+
(0, import_typeorm21.Index)()
|
|
2186
2258
|
], Rating.prototype, "reviewer_id", 2);
|
|
2187
2259
|
__decorateClass([
|
|
2188
|
-
(0,
|
|
2189
|
-
(0,
|
|
2260
|
+
(0, import_typeorm21.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2261
|
+
(0, import_typeorm21.JoinColumn)({ name: "reviewer_id" })
|
|
2190
2262
|
], Rating.prototype, "reviewer", 2);
|
|
2191
2263
|
__decorateClass([
|
|
2192
|
-
(0,
|
|
2193
|
-
(0,
|
|
2264
|
+
(0, import_typeorm21.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2265
|
+
(0, import_typeorm21.Index)()
|
|
2194
2266
|
], Rating.prototype, "reviewee_id", 2);
|
|
2195
2267
|
__decorateClass([
|
|
2196
|
-
(0,
|
|
2197
|
-
(0,
|
|
2268
|
+
(0, import_typeorm21.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2269
|
+
(0, import_typeorm21.JoinColumn)({ name: "reviewee_id" })
|
|
2198
2270
|
], Rating.prototype, "reviewee", 2);
|
|
2199
2271
|
__decorateClass([
|
|
2200
|
-
(0,
|
|
2272
|
+
(0, import_typeorm21.Column)({
|
|
2201
2273
|
type: "enum",
|
|
2202
2274
|
enum: RatingTypeEnum,
|
|
2203
2275
|
nullable: true
|
|
2204
2276
|
})
|
|
2205
2277
|
], Rating.prototype, "ratingType", 2);
|
|
2206
2278
|
__decorateClass([
|
|
2207
|
-
(0,
|
|
2279
|
+
(0, import_typeorm21.Column)({ type: "integer", nullable: true })
|
|
2208
2280
|
], Rating.prototype, "rating", 2);
|
|
2209
2281
|
__decorateClass([
|
|
2210
|
-
(0,
|
|
2282
|
+
(0, import_typeorm21.Column)({ type: "text", nullable: true })
|
|
2211
2283
|
], Rating.prototype, "review", 2);
|
|
2212
2284
|
Rating = __decorateClass([
|
|
2213
|
-
(0,
|
|
2285
|
+
(0, import_typeorm21.Entity)("ratings")
|
|
2214
2286
|
], Rating);
|
|
2215
2287
|
|
|
2216
2288
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2459,6 +2531,84 @@ __decorateClass([
|
|
|
2459
2531
|
(0, import_class_transformer5.Type)(() => UpdateEducationDto)
|
|
2460
2532
|
], UpdateFreelancerEducationDto.prototype, "education", 2);
|
|
2461
2533
|
|
|
2534
|
+
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
2535
|
+
var FREELANCER_PROJECT_PATTERN = {
|
|
2536
|
+
fetchFreelancerProject: "fetch.freelancer.project",
|
|
2537
|
+
updateFreelancerProject: "update.freelancer.project"
|
|
2538
|
+
};
|
|
2539
|
+
var FREELANCER_CASESTUDY_PATTERN = {
|
|
2540
|
+
fetchFreelancerCaseStudy: "fetch.freelancer.casestudy",
|
|
2541
|
+
updateFreelancerCaseStudy: "update.freelancer.casestudy"
|
|
2542
|
+
};
|
|
2543
|
+
|
|
2544
|
+
// src/modules/user/freelancer-project/dto/update-freelancer-project.dto.ts
|
|
2545
|
+
var import_class_validator40 = require("class-validator");
|
|
2546
|
+
var import_class_transformer6 = require("class-transformer");
|
|
2547
|
+
var UpdateProjectDto = class {
|
|
2548
|
+
};
|
|
2549
|
+
__decorateClass([
|
|
2550
|
+
(0, import_class_validator40.IsOptional)()
|
|
2551
|
+
], UpdateProjectDto.prototype, "uuid", 2);
|
|
2552
|
+
__decorateClass([
|
|
2553
|
+
(0, import_class_validator40.IsString)(),
|
|
2554
|
+
(0, import_class_validator40.IsNotEmpty)()
|
|
2555
|
+
], UpdateProjectDto.prototype, "projectName", 2);
|
|
2556
|
+
__decorateClass([
|
|
2557
|
+
(0, import_class_validator40.IsString)(),
|
|
2558
|
+
(0, import_class_validator40.IsNotEmpty)()
|
|
2559
|
+
], UpdateProjectDto.prototype, "startDate", 2);
|
|
2560
|
+
__decorateClass([
|
|
2561
|
+
(0, import_class_validator40.IsString)(),
|
|
2562
|
+
(0, import_class_validator40.IsNotEmpty)()
|
|
2563
|
+
], UpdateProjectDto.prototype, "endDate", 2);
|
|
2564
|
+
__decorateClass([
|
|
2565
|
+
(0, import_class_validator40.IsOptional)(),
|
|
2566
|
+
(0, import_class_validator40.IsString)()
|
|
2567
|
+
], UpdateProjectDto.prototype, "clientName", 2);
|
|
2568
|
+
__decorateClass([
|
|
2569
|
+
(0, import_class_validator40.IsOptional)(),
|
|
2570
|
+
(0, import_class_validator40.IsString)()
|
|
2571
|
+
], UpdateProjectDto.prototype, "gitLink", 2);
|
|
2572
|
+
__decorateClass([
|
|
2573
|
+
(0, import_class_validator40.IsOptional)(),
|
|
2574
|
+
(0, import_class_validator40.IsString)()
|
|
2575
|
+
], UpdateProjectDto.prototype, "description", 2);
|
|
2576
|
+
var UpdateFreelancerProjectDto = class {
|
|
2577
|
+
};
|
|
2578
|
+
__decorateClass([
|
|
2579
|
+
(0, import_class_validator40.IsArray)(),
|
|
2580
|
+
(0, import_class_validator40.ValidateNested)({ each: true }),
|
|
2581
|
+
(0, import_class_transformer6.Type)(() => UpdateProjectDto)
|
|
2582
|
+
], UpdateFreelancerProjectDto.prototype, "project", 2);
|
|
2583
|
+
|
|
2584
|
+
// src/modules/user/freelancer-project/dto/update-freelancer-casestudy.dto.ts
|
|
2585
|
+
var import_class_validator41 = require("class-validator");
|
|
2586
|
+
var import_class_transformer7 = require("class-transformer");
|
|
2587
|
+
var UpdateCaseStudyDto = class {
|
|
2588
|
+
};
|
|
2589
|
+
__decorateClass([
|
|
2590
|
+
(0, import_class_validator41.IsOptional)()
|
|
2591
|
+
], UpdateCaseStudyDto.prototype, "uuid", 2);
|
|
2592
|
+
__decorateClass([
|
|
2593
|
+
(0, import_class_validator41.IsString)(),
|
|
2594
|
+
(0, import_class_validator41.IsNotEmpty)()
|
|
2595
|
+
], UpdateCaseStudyDto.prototype, "projectName", 2);
|
|
2596
|
+
__decorateClass([
|
|
2597
|
+
(0, import_class_validator41.IsString)(),
|
|
2598
|
+
(0, import_class_validator41.IsNotEmpty)()
|
|
2599
|
+
], UpdateCaseStudyDto.prototype, "CaseStudyLink", 2);
|
|
2600
|
+
__decorateClass([
|
|
2601
|
+
(0, import_class_validator41.IsOptional)(),
|
|
2602
|
+
(0, import_class_validator41.IsString)()
|
|
2603
|
+
], UpdateCaseStudyDto.prototype, "description", 2);
|
|
2604
|
+
var UpdateFreelancerCaseStudyDto = class {
|
|
2605
|
+
};
|
|
2606
|
+
__decorateClass([
|
|
2607
|
+
(0, import_class_validator41.IsArray)(),
|
|
2608
|
+
(0, import_class_validator41.ValidateNested)({ each: true }),
|
|
2609
|
+
(0, import_class_transformer7.Type)(() => UpdateCaseStudyDto)
|
|
2610
|
+
], UpdateFreelancerCaseStudyDto.prototype, "casestudy", 2);
|
|
2611
|
+
|
|
2462
2612
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2463
2613
|
var import_dotenv = require("dotenv");
|
|
2464
2614
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -2676,7 +2826,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2676
2826
|
};
|
|
2677
2827
|
|
|
2678
2828
|
// src/entities/question.entity.ts
|
|
2679
|
-
var
|
|
2829
|
+
var import_typeorm22 = require("typeorm");
|
|
2680
2830
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2681
2831
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2682
2832
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2685,16 +2835,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2685
2835
|
var Question = class extends BaseEntity {
|
|
2686
2836
|
};
|
|
2687
2837
|
__decorateClass([
|
|
2688
|
-
(0,
|
|
2838
|
+
(0, import_typeorm22.Column)({ name: "question", type: "varchar" })
|
|
2689
2839
|
], Question.prototype, "question", 2);
|
|
2690
2840
|
__decorateClass([
|
|
2691
|
-
(0,
|
|
2841
|
+
(0, import_typeorm22.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
2692
2842
|
], Question.prototype, "hint", 2);
|
|
2693
2843
|
__decorateClass([
|
|
2694
|
-
(0,
|
|
2844
|
+
(0, import_typeorm22.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2695
2845
|
], Question.prototype, "slug", 2);
|
|
2696
2846
|
__decorateClass([
|
|
2697
|
-
(0,
|
|
2847
|
+
(0, import_typeorm22.Column)({
|
|
2698
2848
|
name: "question_for",
|
|
2699
2849
|
type: "enum",
|
|
2700
2850
|
enum: QuestionFor,
|
|
@@ -2702,76 +2852,76 @@ __decorateClass([
|
|
|
2702
2852
|
})
|
|
2703
2853
|
], Question.prototype, "questionFor", 2);
|
|
2704
2854
|
__decorateClass([
|
|
2705
|
-
(0,
|
|
2855
|
+
(0, import_typeorm22.Column)({ name: "type", type: "varchar", nullable: true })
|
|
2706
2856
|
], Question.prototype, "type", 2);
|
|
2707
2857
|
__decorateClass([
|
|
2708
|
-
(0,
|
|
2858
|
+
(0, import_typeorm22.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
2709
2859
|
], Question.prototype, "options", 2);
|
|
2710
2860
|
__decorateClass([
|
|
2711
|
-
(0,
|
|
2861
|
+
(0, import_typeorm22.Column)({ name: "is_active", type: "boolean", default: false })
|
|
2712
2862
|
], Question.prototype, "isActive", 2);
|
|
2713
2863
|
Question = __decorateClass([
|
|
2714
|
-
(0,
|
|
2864
|
+
(0, import_typeorm22.Entity)("questions")
|
|
2715
2865
|
], Question);
|
|
2716
2866
|
|
|
2717
2867
|
// src/entities/job-role.entity.ts
|
|
2718
|
-
var
|
|
2868
|
+
var import_typeorm23 = require("typeorm");
|
|
2719
2869
|
var JobRoles = class extends BaseEntity {
|
|
2720
2870
|
};
|
|
2721
2871
|
__decorateClass([
|
|
2722
|
-
(0,
|
|
2872
|
+
(0, import_typeorm23.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2723
2873
|
], JobRoles.prototype, "slug", 2);
|
|
2724
2874
|
__decorateClass([
|
|
2725
|
-
(0,
|
|
2875
|
+
(0, import_typeorm23.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2726
2876
|
], JobRoles.prototype, "name", 2);
|
|
2727
2877
|
__decorateClass([
|
|
2728
|
-
(0,
|
|
2878
|
+
(0, import_typeorm23.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2729
2879
|
], JobRoles.prototype, "isActive", 2);
|
|
2730
2880
|
JobRoles = __decorateClass([
|
|
2731
|
-
(0,
|
|
2881
|
+
(0, import_typeorm23.Entity)("job_roles")
|
|
2732
2882
|
], JobRoles);
|
|
2733
2883
|
|
|
2734
2884
|
// src/entities/plan.entity.ts
|
|
2735
|
-
var
|
|
2885
|
+
var import_typeorm25 = require("typeorm");
|
|
2736
2886
|
|
|
2737
2887
|
// src/entities/feature.entity.ts
|
|
2738
|
-
var
|
|
2888
|
+
var import_typeorm24 = require("typeorm");
|
|
2739
2889
|
var Feature = class extends BaseEntity {
|
|
2740
2890
|
};
|
|
2741
2891
|
__decorateClass([
|
|
2742
|
-
(0,
|
|
2892
|
+
(0, import_typeorm24.Column)({ name: "name", type: "varchar", unique: true })
|
|
2743
2893
|
], Feature.prototype, "name", 2);
|
|
2744
2894
|
__decorateClass([
|
|
2745
|
-
(0,
|
|
2895
|
+
(0, import_typeorm24.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
2746
2896
|
], Feature.prototype, "plans", 2);
|
|
2747
2897
|
Feature = __decorateClass([
|
|
2748
|
-
(0,
|
|
2898
|
+
(0, import_typeorm24.Entity)("features")
|
|
2749
2899
|
], Feature);
|
|
2750
2900
|
|
|
2751
2901
|
// src/entities/plan.entity.ts
|
|
2752
2902
|
var Plan = class extends BaseEntity {
|
|
2753
2903
|
};
|
|
2754
2904
|
__decorateClass([
|
|
2755
|
-
(0,
|
|
2905
|
+
(0, import_typeorm25.Column)({ name: "name", type: "varchar", unique: true })
|
|
2756
2906
|
], Plan.prototype, "name", 2);
|
|
2757
2907
|
__decorateClass([
|
|
2758
|
-
(0,
|
|
2908
|
+
(0, import_typeorm25.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2759
2909
|
], Plan.prototype, "description", 2);
|
|
2760
2910
|
__decorateClass([
|
|
2761
|
-
(0,
|
|
2911
|
+
(0, import_typeorm25.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2762
2912
|
], Plan.prototype, "price", 2);
|
|
2763
2913
|
__decorateClass([
|
|
2764
|
-
(0,
|
|
2914
|
+
(0, import_typeorm25.Column)({ name: "billing_period", type: "varchar" })
|
|
2765
2915
|
], Plan.prototype, "billingPeriod", 2);
|
|
2766
2916
|
__decorateClass([
|
|
2767
|
-
(0,
|
|
2917
|
+
(0, import_typeorm25.Column)({ name: "is_current", type: "boolean", default: false })
|
|
2768
2918
|
], Plan.prototype, "isCurrent", 2);
|
|
2769
2919
|
__decorateClass([
|
|
2770
|
-
(0,
|
|
2771
|
-
(0,
|
|
2920
|
+
(0, import_typeorm25.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2921
|
+
(0, import_typeorm25.JoinTable)()
|
|
2772
2922
|
], Plan.prototype, "features", 2);
|
|
2773
2923
|
Plan = __decorateClass([
|
|
2774
|
-
(0,
|
|
2924
|
+
(0, import_typeorm25.Entity)("plans")
|
|
2775
2925
|
], Plan);
|
|
2776
2926
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2777
2927
|
0 && (module.exports = {
|
|
@@ -2804,11 +2954,14 @@ Plan = __decorateClass([
|
|
|
2804
2954
|
CreateSubAdminDto,
|
|
2805
2955
|
DurationTypeEnum,
|
|
2806
2956
|
EmploymentType,
|
|
2957
|
+
FREELANCER_CASESTUDY_PATTERN,
|
|
2807
2958
|
FREELANCER_EDUCATION_PATTERN,
|
|
2808
2959
|
FREELANCER_EXPERIENCE_PATTERN,
|
|
2960
|
+
FREELANCER_PROJECT_PATTERN,
|
|
2809
2961
|
Feature,
|
|
2810
2962
|
ForgotPasswordDto,
|
|
2811
2963
|
FreelancerBankDetailsDto,
|
|
2964
|
+
FreelancerCaseStudy,
|
|
2812
2965
|
FreelancerChangePasswordDto,
|
|
2813
2966
|
FreelancerCreateAccountDto,
|
|
2814
2967
|
FreelancerDevelopmentPreferenceDto,
|
|
@@ -2816,6 +2969,7 @@ Plan = __decorateClass([
|
|
|
2816
2969
|
FreelancerExperience,
|
|
2817
2970
|
FreelancerProfile,
|
|
2818
2971
|
FreelancerProfileQuestionDto,
|
|
2972
|
+
FreelancerProject,
|
|
2819
2973
|
FreelancerUploadResumeDto,
|
|
2820
2974
|
FreelancerWorkShowcaseDto,
|
|
2821
2975
|
FromUsOn,
|
|
@@ -2879,14 +3033,18 @@ Plan = __decorateClass([
|
|
|
2879
3033
|
ToggleCompanyMemberVisibilityDto,
|
|
2880
3034
|
ToggleCompanyRoleVisibilityDto,
|
|
2881
3035
|
TypeOfEmploymentEnum,
|
|
3036
|
+
UpdateCaseStudyDto,
|
|
2882
3037
|
UpdateCompanyMemberDto,
|
|
2883
3038
|
UpdateCompanyProfileDto,
|
|
2884
3039
|
UpdateCompanyRoleDto,
|
|
2885
3040
|
UpdateEducationDto,
|
|
2886
3041
|
UpdateExperienceDto,
|
|
3042
|
+
UpdateFreelancerCaseStudyDto,
|
|
2887
3043
|
UpdateFreelancerEducationDto,
|
|
2888
3044
|
UpdateFreelancerExperienceDto,
|
|
2889
3045
|
UpdateFreelancerProfileDto,
|
|
3046
|
+
UpdateFreelancerProjectDto,
|
|
3047
|
+
UpdateProjectDto,
|
|
2890
3048
|
UpdateSubAdminAccountStatusDto,
|
|
2891
3049
|
UpdateSubAdminDto,
|
|
2892
3050
|
User,
|