@experts_hub/shared 1.0.145 → 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/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 import_typeorm19 = require("typeorm");
1011
+ var import_typeorm21 = require("typeorm");
1004
1012
 
1005
1013
  // src/entities/user.entity.ts
1006
- var import_typeorm18 = require("typeorm");
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, import_typeorm18.Column)({ name: "unique_id", type: "varchar", unique: true })
2076
+ (0, import_typeorm20.Column)({ name: "unique_id", type: "varchar", unique: true })
2008
2077
  ], User.prototype, "uniqueId", 2);
2009
2078
  __decorateClass([
2010
- (0, import_typeorm18.Column)({ name: "parent_id", type: "integer", nullable: true }),
2011
- (0, import_typeorm18.Index)()
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, import_typeorm18.Column)({ name: "company_role_id", type: "integer", nullable: true }),
2015
- (0, import_typeorm18.Index)()
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, import_typeorm18.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
2019
- (0, import_typeorm18.JoinColumn)({ name: "parent_id" })
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, import_typeorm18.OneToMany)(() => User, (user) => user.parent)
2091
+ (0, import_typeorm20.OneToMany)(() => User, (user) => user.parent)
2023
2092
  ], User.prototype, "children", 2);
2024
2093
  __decorateClass([
2025
- (0, import_typeorm18.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
2094
+ (0, import_typeorm20.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
2026
2095
  ], User.prototype, "username", 2);
2027
2096
  __decorateClass([
2028
- (0, import_typeorm18.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
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, import_typeorm18.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
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, import_typeorm18.Column)({ name: "date_of_birth", type: "date", nullable: true })
2103
+ (0, import_typeorm20.Column)({ name: "date_of_birth", type: "date", nullable: true })
2035
2104
  ], User.prototype, "dateOfBirth", 2);
2036
2105
  __decorateClass([
2037
- (0, import_typeorm18.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
2106
+ (0, import_typeorm20.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
2038
2107
  ], User.prototype, "gender", 2);
2039
2108
  __decorateClass([
2040
- (0, import_typeorm18.Column)({ name: "profile_picture_url", type: "text", nullable: true })
2109
+ (0, import_typeorm20.Column)({ name: "profile_picture_url", type: "text", nullable: true })
2041
2110
  ], User.prototype, "profilePictureUrl", 2);
2042
2111
  __decorateClass([
2043
- (0, import_typeorm18.Column)({ name: "email", type: "varchar", unique: true })
2112
+ (0, import_typeorm20.Column)({ name: "email", type: "varchar", unique: true })
2044
2113
  ], User.prototype, "email", 2);
2045
2114
  __decorateClass([
2046
- (0, import_typeorm18.Column)({ name: "mobile_code", type: "varchar", nullable: true })
2115
+ (0, import_typeorm20.Column)({ name: "mobile_code", type: "varchar", nullable: true })
2047
2116
  ], User.prototype, "mobileCode", 2);
2048
2117
  __decorateClass([
2049
- (0, import_typeorm18.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
2118
+ (0, import_typeorm20.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
2050
2119
  ], User.prototype, "mobile", 2);
2051
2120
  __decorateClass([
2052
- (0, import_typeorm18.Column)({ name: "password", type: "varchar", nullable: true })
2121
+ (0, import_typeorm20.Column)({ name: "password", type: "varchar", nullable: true })
2053
2122
  ], User.prototype, "password", 2);
2054
2123
  __decorateClass([
2055
- (0, import_typeorm18.Column)({
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, import_typeorm18.Column)({
2132
+ (0, import_typeorm20.Column)({
2064
2133
  name: "account_status",
2065
2134
  type: "enum",
2066
2135
  enum: AccountStatus,
@@ -2068,36 +2137,36 @@ __decorateClass([
2068
2137
  })
2069
2138
  ], User.prototype, "accountStatus", 2);
2070
2139
  __decorateClass([
2071
- (0, import_typeorm18.Column)({ name: "is_email_verified", type: "boolean", default: false })
2140
+ (0, import_typeorm20.Column)({ name: "is_email_verified", type: "boolean", default: false })
2072
2141
  ], User.prototype, "isEmailVerified", 2);
2073
2142
  __decorateClass([
2074
- (0, import_typeorm18.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
2143
+ (0, import_typeorm20.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
2075
2144
  ], User.prototype, "isMobileVerified", 2);
2076
2145
  __decorateClass([
2077
- (0, import_typeorm18.Column)({
2146
+ (0, import_typeorm20.Column)({
2078
2147
  name: "last_login_at",
2079
2148
  type: "timestamp with time zone",
2080
2149
  nullable: true
2081
2150
  })
2082
2151
  ], User.prototype, "lastLoginAt", 2);
2083
2152
  __decorateClass([
2084
- (0, import_typeorm18.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
2153
+ (0, import_typeorm20.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
2085
2154
  ], User.prototype, "lastLoginIp", 2);
2086
2155
  __decorateClass([
2087
- (0, import_typeorm18.Column)({ name: "reset_token", type: "varchar", nullable: true })
2156
+ (0, import_typeorm20.Column)({ name: "reset_token", type: "varchar", nullable: true })
2088
2157
  ], User.prototype, "resetToken", 2);
2089
2158
  __decorateClass([
2090
- (0, import_typeorm18.Column)({
2159
+ (0, import_typeorm20.Column)({
2091
2160
  name: "reset_token_expire_at",
2092
2161
  type: "timestamp with time zone",
2093
2162
  nullable: true
2094
2163
  })
2095
2164
  ], User.prototype, "resetTokenExpireAt", 2);
2096
2165
  __decorateClass([
2097
- (0, import_typeorm18.OneToMany)(() => RefreshToken, (token) => token.user)
2166
+ (0, import_typeorm20.OneToMany)(() => RefreshToken, (token) => token.user)
2098
2167
  ], User.prototype, "refreshTokens", 2);
2099
2168
  __decorateClass([
2100
- (0, import_typeorm18.Column)({
2169
+ (0, import_typeorm20.Column)({
2101
2170
  name: "provider",
2102
2171
  type: "enum",
2103
2172
  enum: Provider,
@@ -2106,67 +2175,73 @@ __decorateClass([
2106
2175
  })
2107
2176
  ], User.prototype, "provider", 2);
2108
2177
  __decorateClass([
2109
- (0, import_typeorm18.Column)({ name: "provider_token", type: "varchar", nullable: true })
2178
+ (0, import_typeorm20.Column)({ name: "provider_token", type: "varchar", nullable: true })
2110
2179
  ], User.prototype, "providerToken", 2);
2111
2180
  __decorateClass([
2112
- (0, import_typeorm18.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
2181
+ (0, import_typeorm20.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
2113
2182
  ], User.prototype, "linkedInId", 2);
2114
2183
  __decorateClass([
2115
- (0, import_typeorm18.Column)({ name: "google_id", type: "varchar", nullable: true })
2184
+ (0, import_typeorm20.Column)({ name: "google_id", type: "varchar", nullable: true })
2116
2185
  ], User.prototype, "googleId", 2);
2117
2186
  __decorateClass([
2118
- (0, import_typeorm18.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
2187
+ (0, import_typeorm20.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
2119
2188
  ], User.prototype, "gitLabsId", 2);
2120
2189
  __decorateClass([
2121
- (0, import_typeorm18.OneToMany)(() => Otp, (otp) => otp.user)
2190
+ (0, import_typeorm20.OneToMany)(() => Otp, (otp) => otp.user)
2122
2191
  ], User.prototype, "otps", 2);
2123
2192
  __decorateClass([
2124
- (0, import_typeorm18.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
2193
+ (0, import_typeorm20.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
2125
2194
  ], User.prototype, "senseloafLogs", 2);
2126
2195
  __decorateClass([
2127
- (0, import_typeorm18.OneToOne)(
2196
+ (0, import_typeorm20.OneToOne)(
2128
2197
  () => FreelancerProfile,
2129
2198
  (freelancerProfile) => freelancerProfile.user
2130
2199
  )
2131
2200
  ], User.prototype, "freelancerProfile", 2);
2132
2201
  __decorateClass([
2133
- (0, import_typeorm18.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
2202
+ (0, import_typeorm20.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
2134
2203
  ], User.prototype, "companyProfile", 2);
2135
2204
  __decorateClass([
2136
- (0, import_typeorm18.OneToMany)(() => Job, (job) => job.user)
2205
+ (0, import_typeorm20.OneToMany)(() => Job, (job) => job.user)
2137
2206
  ], User.prototype, "jobs", 2);
2138
2207
  __decorateClass([
2139
- (0, import_typeorm18.OneToMany)(() => Interview, (interview) => interview.user)
2208
+ (0, import_typeorm20.OneToMany)(() => Interview, (interview) => interview.user)
2140
2209
  ], User.prototype, "interviews", 2);
2141
2210
  __decorateClass([
2142
- (0, import_typeorm18.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
2211
+ (0, import_typeorm20.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
2143
2212
  ], User.prototype, "bankDetail", 2);
2144
2213
  __decorateClass([
2145
- (0, import_typeorm18.OneToMany)(
2214
+ (0, import_typeorm20.OneToMany)(
2146
2215
  () => SystemPreference,
2147
2216
  (systemPreference) => systemPreference.user
2148
2217
  )
2149
2218
  ], User.prototype, "systemPreference", 2);
2150
2219
  __decorateClass([
2151
- (0, import_typeorm18.OneToMany)(() => Rating, (rating) => rating.reviewer)
2220
+ (0, import_typeorm20.OneToMany)(() => Rating, (rating) => rating.reviewer)
2152
2221
  ], User.prototype, "givenRatings", 2);
2153
2222
  __decorateClass([
2154
- (0, import_typeorm18.OneToMany)(() => Rating, (rating) => rating.reviewee)
2223
+ (0, import_typeorm20.OneToMany)(() => Rating, (rating) => rating.reviewee)
2155
2224
  ], User.prototype, "receivedRatings", 2);
2156
2225
  __decorateClass([
2157
- (0, import_typeorm18.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
2226
+ (0, import_typeorm20.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
2158
2227
  ], User.prototype, "jobApplications", 2);
2159
2228
  __decorateClass([
2160
- (0, import_typeorm18.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
2229
+ (0, import_typeorm20.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
2161
2230
  ], User.prototype, "companyRole", 2);
2162
2231
  __decorateClass([
2163
- (0, import_typeorm18.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
2232
+ (0, import_typeorm20.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
2164
2233
  ], User.prototype, "freelancerExperience", 2);
2165
2234
  __decorateClass([
2166
- (0, import_typeorm18.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
2235
+ (0, import_typeorm20.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
2167
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);
2168
2243
  User = __decorateClass([
2169
- (0, import_typeorm18.Entity)("users")
2244
+ (0, import_typeorm20.Entity)("users")
2170
2245
  ], User);
2171
2246
 
2172
2247
  // src/entities/rating.entity.ts
@@ -2178,36 +2253,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
2178
2253
  var Rating = class extends BaseEntity {
2179
2254
  };
2180
2255
  __decorateClass([
2181
- (0, import_typeorm19.Column)({ name: "reviewer_id", type: "integer" }),
2182
- (0, import_typeorm19.Index)()
2256
+ (0, import_typeorm21.Column)({ name: "reviewer_id", type: "integer" }),
2257
+ (0, import_typeorm21.Index)()
2183
2258
  ], Rating.prototype, "reviewer_id", 2);
2184
2259
  __decorateClass([
2185
- (0, import_typeorm19.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2186
- (0, import_typeorm19.JoinColumn)({ name: "reviewer_id" })
2260
+ (0, import_typeorm21.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2261
+ (0, import_typeorm21.JoinColumn)({ name: "reviewer_id" })
2187
2262
  ], Rating.prototype, "reviewer", 2);
2188
2263
  __decorateClass([
2189
- (0, import_typeorm19.Column)({ name: "reviewee_id", type: "integer" }),
2190
- (0, import_typeorm19.Index)()
2264
+ (0, import_typeorm21.Column)({ name: "reviewee_id", type: "integer" }),
2265
+ (0, import_typeorm21.Index)()
2191
2266
  ], Rating.prototype, "reviewee_id", 2);
2192
2267
  __decorateClass([
2193
- (0, import_typeorm19.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2194
- (0, import_typeorm19.JoinColumn)({ name: "reviewee_id" })
2268
+ (0, import_typeorm21.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2269
+ (0, import_typeorm21.JoinColumn)({ name: "reviewee_id" })
2195
2270
  ], Rating.prototype, "reviewee", 2);
2196
2271
  __decorateClass([
2197
- (0, import_typeorm19.Column)({
2272
+ (0, import_typeorm21.Column)({
2198
2273
  type: "enum",
2199
2274
  enum: RatingTypeEnum,
2200
2275
  nullable: true
2201
2276
  })
2202
2277
  ], Rating.prototype, "ratingType", 2);
2203
2278
  __decorateClass([
2204
- (0, import_typeorm19.Column)({ type: "integer", nullable: true })
2279
+ (0, import_typeorm21.Column)({ type: "integer", nullable: true })
2205
2280
  ], Rating.prototype, "rating", 2);
2206
2281
  __decorateClass([
2207
- (0, import_typeorm19.Column)({ type: "text", nullable: true })
2282
+ (0, import_typeorm21.Column)({ type: "text", nullable: true })
2208
2283
  ], Rating.prototype, "review", 2);
2209
2284
  Rating = __decorateClass([
2210
- (0, import_typeorm19.Entity)("ratings")
2285
+ (0, import_typeorm21.Entity)("ratings")
2211
2286
  ], Rating);
2212
2287
 
2213
2288
  // src/modules/rating/dto/add.rating.dto.ts
@@ -2456,6 +2531,84 @@ __decorateClass([
2456
2531
  (0, import_class_transformer5.Type)(() => UpdateEducationDto)
2457
2532
  ], UpdateFreelancerEducationDto.prototype, "education", 2);
2458
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
+
2459
2612
  // src/adapters/tcp/user.tcp.adapter.ts
2460
2613
  var import_dotenv = require("dotenv");
2461
2614
  var import_microservices = require("@nestjs/microservices");
@@ -2673,7 +2826,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
2673
2826
  };
2674
2827
 
2675
2828
  // src/entities/question.entity.ts
2676
- var import_typeorm20 = require("typeorm");
2829
+ var import_typeorm22 = require("typeorm");
2677
2830
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2678
2831
  QuestionFor2["CLIENT"] = "CLIENT";
2679
2832
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -2682,16 +2835,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2682
2835
  var Question = class extends BaseEntity {
2683
2836
  };
2684
2837
  __decorateClass([
2685
- (0, import_typeorm20.Column)({ name: "question", type: "varchar" })
2838
+ (0, import_typeorm22.Column)({ name: "question", type: "varchar" })
2686
2839
  ], Question.prototype, "question", 2);
2687
2840
  __decorateClass([
2688
- (0, import_typeorm20.Column)({ name: "hint", type: "varchar", nullable: true })
2841
+ (0, import_typeorm22.Column)({ name: "hint", type: "varchar", nullable: true })
2689
2842
  ], Question.prototype, "hint", 2);
2690
2843
  __decorateClass([
2691
- (0, import_typeorm20.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2844
+ (0, import_typeorm22.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2692
2845
  ], Question.prototype, "slug", 2);
2693
2846
  __decorateClass([
2694
- (0, import_typeorm20.Column)({
2847
+ (0, import_typeorm22.Column)({
2695
2848
  name: "question_for",
2696
2849
  type: "enum",
2697
2850
  enum: QuestionFor,
@@ -2699,76 +2852,76 @@ __decorateClass([
2699
2852
  })
2700
2853
  ], Question.prototype, "questionFor", 2);
2701
2854
  __decorateClass([
2702
- (0, import_typeorm20.Column)({ name: "type", type: "varchar", nullable: true })
2855
+ (0, import_typeorm22.Column)({ name: "type", type: "varchar", nullable: true })
2703
2856
  ], Question.prototype, "type", 2);
2704
2857
  __decorateClass([
2705
- (0, import_typeorm20.Column)({ name: "options", type: "jsonb", nullable: true })
2858
+ (0, import_typeorm22.Column)({ name: "options", type: "jsonb", nullable: true })
2706
2859
  ], Question.prototype, "options", 2);
2707
2860
  __decorateClass([
2708
- (0, import_typeorm20.Column)({ name: "is_active", type: "boolean", default: false })
2861
+ (0, import_typeorm22.Column)({ name: "is_active", type: "boolean", default: false })
2709
2862
  ], Question.prototype, "isActive", 2);
2710
2863
  Question = __decorateClass([
2711
- (0, import_typeorm20.Entity)("questions")
2864
+ (0, import_typeorm22.Entity)("questions")
2712
2865
  ], Question);
2713
2866
 
2714
2867
  // src/entities/job-role.entity.ts
2715
- var import_typeorm21 = require("typeorm");
2868
+ var import_typeorm23 = require("typeorm");
2716
2869
  var JobRoles = class extends BaseEntity {
2717
2870
  };
2718
2871
  __decorateClass([
2719
- (0, import_typeorm21.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2872
+ (0, import_typeorm23.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2720
2873
  ], JobRoles.prototype, "slug", 2);
2721
2874
  __decorateClass([
2722
- (0, import_typeorm21.Column)({ name: "name", type: "varchar", nullable: true })
2875
+ (0, import_typeorm23.Column)({ name: "name", type: "varchar", nullable: true })
2723
2876
  ], JobRoles.prototype, "name", 2);
2724
2877
  __decorateClass([
2725
- (0, import_typeorm21.Column)({ name: "is_active", type: "boolean", default: true })
2878
+ (0, import_typeorm23.Column)({ name: "is_active", type: "boolean", default: true })
2726
2879
  ], JobRoles.prototype, "isActive", 2);
2727
2880
  JobRoles = __decorateClass([
2728
- (0, import_typeorm21.Entity)("job_roles")
2881
+ (0, import_typeorm23.Entity)("job_roles")
2729
2882
  ], JobRoles);
2730
2883
 
2731
2884
  // src/entities/plan.entity.ts
2732
- var import_typeorm23 = require("typeorm");
2885
+ var import_typeorm25 = require("typeorm");
2733
2886
 
2734
2887
  // src/entities/feature.entity.ts
2735
- var import_typeorm22 = require("typeorm");
2888
+ var import_typeorm24 = require("typeorm");
2736
2889
  var Feature = class extends BaseEntity {
2737
2890
  };
2738
2891
  __decorateClass([
2739
- (0, import_typeorm22.Column)({ name: "name", type: "varchar", unique: true })
2892
+ (0, import_typeorm24.Column)({ name: "name", type: "varchar", unique: true })
2740
2893
  ], Feature.prototype, "name", 2);
2741
2894
  __decorateClass([
2742
- (0, import_typeorm22.ManyToMany)(() => Plan, (plan) => plan.features)
2895
+ (0, import_typeorm24.ManyToMany)(() => Plan, (plan) => plan.features)
2743
2896
  ], Feature.prototype, "plans", 2);
2744
2897
  Feature = __decorateClass([
2745
- (0, import_typeorm22.Entity)("features")
2898
+ (0, import_typeorm24.Entity)("features")
2746
2899
  ], Feature);
2747
2900
 
2748
2901
  // src/entities/plan.entity.ts
2749
2902
  var Plan = class extends BaseEntity {
2750
2903
  };
2751
2904
  __decorateClass([
2752
- (0, import_typeorm23.Column)({ name: "name", type: "varchar", unique: true })
2905
+ (0, import_typeorm25.Column)({ name: "name", type: "varchar", unique: true })
2753
2906
  ], Plan.prototype, "name", 2);
2754
2907
  __decorateClass([
2755
- (0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
2908
+ (0, import_typeorm25.Column)({ name: "description", type: "varchar", nullable: true })
2756
2909
  ], Plan.prototype, "description", 2);
2757
2910
  __decorateClass([
2758
- (0, import_typeorm23.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2911
+ (0, import_typeorm25.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2759
2912
  ], Plan.prototype, "price", 2);
2760
2913
  __decorateClass([
2761
- (0, import_typeorm23.Column)({ name: "billing_period", type: "varchar" })
2914
+ (0, import_typeorm25.Column)({ name: "billing_period", type: "varchar" })
2762
2915
  ], Plan.prototype, "billingPeriod", 2);
2763
2916
  __decorateClass([
2764
- (0, import_typeorm23.Column)({ name: "is_current", type: "boolean", default: false })
2917
+ (0, import_typeorm25.Column)({ name: "is_current", type: "boolean", default: false })
2765
2918
  ], Plan.prototype, "isCurrent", 2);
2766
2919
  __decorateClass([
2767
- (0, import_typeorm23.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2768
- (0, import_typeorm23.JoinTable)()
2920
+ (0, import_typeorm25.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2921
+ (0, import_typeorm25.JoinTable)()
2769
2922
  ], Plan.prototype, "features", 2);
2770
2923
  Plan = __decorateClass([
2771
- (0, import_typeorm23.Entity)("plans")
2924
+ (0, import_typeorm25.Entity)("plans")
2772
2925
  ], Plan);
2773
2926
  // Annotate the CommonJS export names for ESM import in node:
2774
2927
  0 && (module.exports = {
@@ -2801,11 +2954,14 @@ Plan = __decorateClass([
2801
2954
  CreateSubAdminDto,
2802
2955
  DurationTypeEnum,
2803
2956
  EmploymentType,
2957
+ FREELANCER_CASESTUDY_PATTERN,
2804
2958
  FREELANCER_EDUCATION_PATTERN,
2805
2959
  FREELANCER_EXPERIENCE_PATTERN,
2960
+ FREELANCER_PROJECT_PATTERN,
2806
2961
  Feature,
2807
2962
  ForgotPasswordDto,
2808
2963
  FreelancerBankDetailsDto,
2964
+ FreelancerCaseStudy,
2809
2965
  FreelancerChangePasswordDto,
2810
2966
  FreelancerCreateAccountDto,
2811
2967
  FreelancerDevelopmentPreferenceDto,
@@ -2813,6 +2969,7 @@ Plan = __decorateClass([
2813
2969
  FreelancerExperience,
2814
2970
  FreelancerProfile,
2815
2971
  FreelancerProfileQuestionDto,
2972
+ FreelancerProject,
2816
2973
  FreelancerUploadResumeDto,
2817
2974
  FreelancerWorkShowcaseDto,
2818
2975
  FromUsOn,
@@ -2876,14 +3033,18 @@ Plan = __decorateClass([
2876
3033
  ToggleCompanyMemberVisibilityDto,
2877
3034
  ToggleCompanyRoleVisibilityDto,
2878
3035
  TypeOfEmploymentEnum,
3036
+ UpdateCaseStudyDto,
2879
3037
  UpdateCompanyMemberDto,
2880
3038
  UpdateCompanyProfileDto,
2881
3039
  UpdateCompanyRoleDto,
2882
3040
  UpdateEducationDto,
2883
3041
  UpdateExperienceDto,
3042
+ UpdateFreelancerCaseStudyDto,
2884
3043
  UpdateFreelancerEducationDto,
2885
3044
  UpdateFreelancerExperienceDto,
2886
3045
  UpdateFreelancerProfileDto,
3046
+ UpdateFreelancerProjectDto,
3047
+ UpdateProjectDto,
2887
3048
  UpdateSubAdminAccountStatusDto,
2888
3049
  UpdateSubAdminDto,
2889
3050
  User,