@experts_hub/shared 1.0.138 → 1.0.140

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
@@ -47,13 +47,16 @@ __export(index_exports, {
47
47
  CompanyRole: () => CompanyRole,
48
48
  CreateCompanyMemberDto: () => CreateCompanyMemberDto,
49
49
  CreateCompanyRoleDto: () => CreateCompanyRoleDto,
50
+ CreateEducationDto: () => CreateEducationDto,
50
51
  CreateExperienceDto: () => CreateExperienceDto,
52
+ CreateFreelancerEducationDto: () => CreateFreelancerEducationDto,
51
53
  CreateFreelancerExperienceDto: () => CreateFreelancerExperienceDto,
52
54
  CreateQuestionDto: () => CreateQuestionDto,
53
55
  CreateRatingDto: () => CreateRatingDto,
54
56
  CreateSubAdminDto: () => CreateSubAdminDto,
55
57
  DurationTypeEnum: () => DurationTypeEnum,
56
58
  EmploymentType: () => EmploymentType,
59
+ FREELANCER_EDUCATION_PATTERN: () => FREELANCER_EDUCATION_PATTERN,
57
60
  FREELANCER_EXPERIENCE_PATTERN: () => FREELANCER_EXPERIENCE_PATTERN,
58
61
  Feature: () => Feature,
59
62
  ForgotPasswordDto: () => ForgotPasswordDto,
@@ -61,6 +64,7 @@ __export(index_exports, {
61
64
  FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
62
65
  FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
63
66
  FreelancerDevelopmentPreferenceDto: () => FreelancerDevelopmentPreferenceDto,
67
+ FreelancerEducation: () => FreelancerEducation,
64
68
  FreelancerExperience: () => FreelancerExperience,
65
69
  FreelancerProfile: () => FreelancerProfile,
66
70
  FreelancerProfileQuestionDto: () => FreelancerProfileQuestionDto,
@@ -127,7 +131,9 @@ __export(index_exports, {
127
131
  UpdateCompanyMemberDto: () => UpdateCompanyMemberDto,
128
132
  UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
129
133
  UpdateCompanyRoleDto: () => UpdateCompanyRoleDto,
134
+ UpdateEducationDto: () => UpdateEducationDto,
130
135
  UpdateExperienceDto: () => UpdateExperienceDto,
136
+ UpdateFreelancerEducationDto: () => UpdateFreelancerEducationDto,
131
137
  UpdateFreelancerExperienceDto: () => UpdateFreelancerExperienceDto,
132
138
  UpdateFreelancerProfileDto: () => UpdateFreelancerProfileDto,
133
139
  UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
@@ -991,10 +997,10 @@ var RATING_PATTERN = {
991
997
  var import_class_validator29 = require("class-validator");
992
998
 
993
999
  // src/entities/rating.entity.ts
994
- var import_typeorm16 = require("typeorm");
1000
+ var import_typeorm17 = require("typeorm");
995
1001
 
996
1002
  // src/entities/user.entity.ts
997
- var import_typeorm15 = require("typeorm");
1003
+ var import_typeorm16 = require("typeorm");
998
1004
 
999
1005
  // src/entities/base.entity.ts
1000
1006
  var import_typeorm = require("typeorm");
@@ -1672,6 +1678,12 @@ __decorateClass([
1672
1678
  default: "DRAFT" /* DRAFT */
1673
1679
  })
1674
1680
  ], Job.prototype, "status", 2);
1681
+ __decorateClass([
1682
+ (0, import_typeorm10.Column)({ name: "viewed_count", type: "integer", default: 0 })
1683
+ ], Job.prototype, "viewedCount", 2);
1684
+ __decorateClass([
1685
+ (0, import_typeorm10.Column)({ name: "application_count", type: "integer", default: 0 })
1686
+ ], Job.prototype, "applicationCount", 2);
1675
1687
  __decorateClass([
1676
1688
  (0, import_typeorm10.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
1677
1689
  ], Job.prototype, "jobSkills", 2);
@@ -1842,6 +1854,32 @@ FreelancerExperience = __decorateClass([
1842
1854
  (0, import_typeorm14.Entity)("freelancer_experiences")
1843
1855
  ], FreelancerExperience);
1844
1856
 
1857
+ // src/entities/freelancer-education.entity.ts
1858
+ var import_typeorm15 = require("typeorm");
1859
+ var FreelancerEducation = class extends BaseEntity {
1860
+ };
1861
+ // individual index to find education by user
1862
+ __decorateClass([
1863
+ (0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
1864
+ (0, import_typeorm15.Index)()
1865
+ ], FreelancerEducation.prototype, "userId", 2);
1866
+ __decorateClass([
1867
+ (0, import_typeorm15.ManyToOne)(() => User, (user) => user.freelancerEducation),
1868
+ (0, import_typeorm15.JoinColumn)({ name: "user_id" })
1869
+ ], FreelancerEducation.prototype, "user", 2);
1870
+ __decorateClass([
1871
+ (0, import_typeorm15.Column)({ name: "degree", type: "varchar", nullable: true })
1872
+ ], FreelancerEducation.prototype, "degree", 2);
1873
+ __decorateClass([
1874
+ (0, import_typeorm15.Column)({ name: "university", type: "varchar", nullable: true })
1875
+ ], FreelancerEducation.prototype, "university", 2);
1876
+ __decorateClass([
1877
+ (0, import_typeorm15.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
1878
+ ], FreelancerEducation.prototype, "yearOfGraduation", 2);
1879
+ FreelancerEducation = __decorateClass([
1880
+ (0, import_typeorm15.Entity)("freelancer_educations")
1881
+ ], FreelancerEducation);
1882
+
1845
1883
  // src/entities/user.entity.ts
1846
1884
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
1847
1885
  AccountType2["ADMIN"] = "ADMIN";
@@ -1866,51 +1904,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
1866
1904
  var User = class extends BaseEntity {
1867
1905
  };
1868
1906
  __decorateClass([
1869
- (0, import_typeorm15.Column)({ name: "unique_id", type: "varchar", unique: true })
1907
+ (0, import_typeorm16.Column)({ name: "unique_id", type: "varchar", unique: true })
1870
1908
  ], User.prototype, "uniqueId", 2);
1871
1909
  __decorateClass([
1872
- (0, import_typeorm15.Column)({ name: "parent_id", type: "integer", nullable: true }),
1873
- (0, import_typeorm15.Index)()
1910
+ (0, import_typeorm16.Column)({ name: "parent_id", type: "integer", nullable: true }),
1911
+ (0, import_typeorm16.Index)()
1874
1912
  ], User.prototype, "parentId", 2);
1875
1913
  __decorateClass([
1876
- (0, import_typeorm15.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
1877
- (0, import_typeorm15.JoinColumn)({ name: "parent_id" })
1914
+ (0, import_typeorm16.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
1915
+ (0, import_typeorm16.JoinColumn)({ name: "parent_id" })
1878
1916
  ], User.prototype, "parent", 2);
1879
1917
  __decorateClass([
1880
- (0, import_typeorm15.OneToMany)(() => User, (user) => user.parent)
1918
+ (0, import_typeorm16.OneToMany)(() => User, (user) => user.parent)
1881
1919
  ], User.prototype, "children", 2);
1882
1920
  __decorateClass([
1883
- (0, import_typeorm15.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1921
+ (0, import_typeorm16.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1884
1922
  ], User.prototype, "username", 2);
1885
1923
  __decorateClass([
1886
- (0, import_typeorm15.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1924
+ (0, import_typeorm16.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1887
1925
  ], User.prototype, "firstName", 2);
1888
1926
  __decorateClass([
1889
- (0, import_typeorm15.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1927
+ (0, import_typeorm16.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1890
1928
  ], User.prototype, "lastName", 2);
1891
1929
  __decorateClass([
1892
- (0, import_typeorm15.Column)({ name: "date_of_birth", type: "date", nullable: true })
1930
+ (0, import_typeorm16.Column)({ name: "date_of_birth", type: "date", nullable: true })
1893
1931
  ], User.prototype, "dateOfBirth", 2);
1894
1932
  __decorateClass([
1895
- (0, import_typeorm15.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1933
+ (0, import_typeorm16.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1896
1934
  ], User.prototype, "gender", 2);
1897
1935
  __decorateClass([
1898
- (0, import_typeorm15.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1936
+ (0, import_typeorm16.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1899
1937
  ], User.prototype, "profilePictureUrl", 2);
1900
1938
  __decorateClass([
1901
- (0, import_typeorm15.Column)({ name: "email", type: "varchar", unique: true })
1939
+ (0, import_typeorm16.Column)({ name: "email", type: "varchar", unique: true })
1902
1940
  ], User.prototype, "email", 2);
1903
1941
  __decorateClass([
1904
- (0, import_typeorm15.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1942
+ (0, import_typeorm16.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1905
1943
  ], User.prototype, "mobileCode", 2);
1906
1944
  __decorateClass([
1907
- (0, import_typeorm15.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1945
+ (0, import_typeorm16.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1908
1946
  ], User.prototype, "mobile", 2);
1909
1947
  __decorateClass([
1910
- (0, import_typeorm15.Column)({ name: "password", type: "varchar" })
1948
+ (0, import_typeorm16.Column)({ name: "password", type: "varchar" })
1911
1949
  ], User.prototype, "password", 2);
1912
1950
  __decorateClass([
1913
- (0, import_typeorm15.Column)({
1951
+ (0, import_typeorm16.Column)({
1914
1952
  name: "account_type",
1915
1953
  type: "enum",
1916
1954
  enum: AccountType,
@@ -1918,7 +1956,7 @@ __decorateClass([
1918
1956
  })
1919
1957
  ], User.prototype, "accountType", 2);
1920
1958
  __decorateClass([
1921
- (0, import_typeorm15.Column)({
1959
+ (0, import_typeorm16.Column)({
1922
1960
  name: "account_status",
1923
1961
  type: "enum",
1924
1962
  enum: AccountStatus,
@@ -1926,36 +1964,36 @@ __decorateClass([
1926
1964
  })
1927
1965
  ], User.prototype, "accountStatus", 2);
1928
1966
  __decorateClass([
1929
- (0, import_typeorm15.Column)({ name: "is_email_verified", type: "boolean", default: false })
1967
+ (0, import_typeorm16.Column)({ name: "is_email_verified", type: "boolean", default: false })
1930
1968
  ], User.prototype, "isEmailVerified", 2);
1931
1969
  __decorateClass([
1932
- (0, import_typeorm15.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1970
+ (0, import_typeorm16.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1933
1971
  ], User.prototype, "isMobileVerified", 2);
1934
1972
  __decorateClass([
1935
- (0, import_typeorm15.Column)({
1973
+ (0, import_typeorm16.Column)({
1936
1974
  name: "last_login_at",
1937
1975
  type: "timestamp with time zone",
1938
1976
  nullable: true
1939
1977
  })
1940
1978
  ], User.prototype, "lastLoginAt", 2);
1941
1979
  __decorateClass([
1942
- (0, import_typeorm15.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1980
+ (0, import_typeorm16.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1943
1981
  ], User.prototype, "lastLoginIp", 2);
1944
1982
  __decorateClass([
1945
- (0, import_typeorm15.Column)({ name: "reset_token", type: "varchar", nullable: true })
1983
+ (0, import_typeorm16.Column)({ name: "reset_token", type: "varchar", nullable: true })
1946
1984
  ], User.prototype, "resetToken", 2);
1947
1985
  __decorateClass([
1948
- (0, import_typeorm15.Column)({
1986
+ (0, import_typeorm16.Column)({
1949
1987
  name: "reset_token_expire_at",
1950
1988
  type: "timestamp with time zone",
1951
1989
  nullable: true
1952
1990
  })
1953
1991
  ], User.prototype, "resetTokenExpireAt", 2);
1954
1992
  __decorateClass([
1955
- (0, import_typeorm15.OneToMany)(() => RefreshToken, (token) => token.user)
1993
+ (0, import_typeorm16.OneToMany)(() => RefreshToken, (token) => token.user)
1956
1994
  ], User.prototype, "refreshTokens", 2);
1957
1995
  __decorateClass([
1958
- (0, import_typeorm15.Column)({
1996
+ (0, import_typeorm16.Column)({
1959
1997
  name: "provider",
1960
1998
  type: "enum",
1961
1999
  enum: Provider,
@@ -1964,61 +2002,64 @@ __decorateClass([
1964
2002
  })
1965
2003
  ], User.prototype, "provider", 2);
1966
2004
  __decorateClass([
1967
- (0, import_typeorm15.Column)({ name: "provider_token", type: "varchar", nullable: true })
2005
+ (0, import_typeorm16.Column)({ name: "provider_token", type: "varchar", nullable: true })
1968
2006
  ], User.prototype, "providerToken", 2);
1969
2007
  __decorateClass([
1970
- (0, import_typeorm15.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
2008
+ (0, import_typeorm16.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1971
2009
  ], User.prototype, "linkedInId", 2);
1972
2010
  __decorateClass([
1973
- (0, import_typeorm15.Column)({ name: "google_id", type: "varchar", nullable: true })
2011
+ (0, import_typeorm16.Column)({ name: "google_id", type: "varchar", nullable: true })
1974
2012
  ], User.prototype, "googleId", 2);
1975
2013
  __decorateClass([
1976
- (0, import_typeorm15.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
2014
+ (0, import_typeorm16.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1977
2015
  ], User.prototype, "gitLabsId", 2);
1978
2016
  __decorateClass([
1979
- (0, import_typeorm15.OneToMany)(() => Otp, (otp) => otp.user)
2017
+ (0, import_typeorm16.OneToMany)(() => Otp, (otp) => otp.user)
1980
2018
  ], User.prototype, "otps", 2);
1981
2019
  __decorateClass([
1982
- (0, import_typeorm15.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
2020
+ (0, import_typeorm16.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
1983
2021
  ], User.prototype, "senseloafLogs", 2);
1984
2022
  __decorateClass([
1985
- (0, import_typeorm15.OneToOne)(
2023
+ (0, import_typeorm16.OneToOne)(
1986
2024
  () => FreelancerProfile,
1987
2025
  (freelancerProfile) => freelancerProfile.user
1988
2026
  )
1989
2027
  ], User.prototype, "freelancerProfile", 2);
1990
2028
  __decorateClass([
1991
- (0, import_typeorm15.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
2029
+ (0, import_typeorm16.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
1992
2030
  ], User.prototype, "companyProfile", 2);
1993
2031
  __decorateClass([
1994
- (0, import_typeorm15.OneToMany)(() => Job, (job) => job.user)
2032
+ (0, import_typeorm16.OneToMany)(() => Job, (job) => job.user)
1995
2033
  ], User.prototype, "jobs", 2);
1996
2034
  __decorateClass([
1997
- (0, import_typeorm15.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
2035
+ (0, import_typeorm16.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1998
2036
  ], User.prototype, "bankDetail", 2);
1999
2037
  __decorateClass([
2000
- (0, import_typeorm15.OneToMany)(
2038
+ (0, import_typeorm16.OneToMany)(
2001
2039
  () => SystemPreference,
2002
2040
  (systemPreference) => systemPreference.user
2003
2041
  )
2004
2042
  ], User.prototype, "systemPreference", 2);
2005
2043
  __decorateClass([
2006
- (0, import_typeorm15.OneToMany)(() => Rating, (rating) => rating.reviewer)
2044
+ (0, import_typeorm16.OneToMany)(() => Rating, (rating) => rating.reviewer)
2007
2045
  ], User.prototype, "givenRatings", 2);
2008
2046
  __decorateClass([
2009
- (0, import_typeorm15.OneToMany)(() => Rating, (rating) => rating.reviewee)
2047
+ (0, import_typeorm16.OneToMany)(() => Rating, (rating) => rating.reviewee)
2010
2048
  ], User.prototype, "receivedRatings", 2);
2011
2049
  __decorateClass([
2012
- (0, import_typeorm15.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
2050
+ (0, import_typeorm16.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
2013
2051
  ], User.prototype, "jobApplications", 2);
2014
2052
  __decorateClass([
2015
- (0, import_typeorm15.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
2053
+ (0, import_typeorm16.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
2016
2054
  ], User.prototype, "companyRole", 2);
2017
2055
  __decorateClass([
2018
- (0, import_typeorm15.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
2056
+ (0, import_typeorm16.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
2019
2057
  ], User.prototype, "freelancerExperience", 2);
2058
+ __decorateClass([
2059
+ (0, import_typeorm16.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
2060
+ ], User.prototype, "freelancerEducation", 2);
2020
2061
  User = __decorateClass([
2021
- (0, import_typeorm15.Entity)("users")
2062
+ (0, import_typeorm16.Entity)("users")
2022
2063
  ], User);
2023
2064
 
2024
2065
  // src/entities/rating.entity.ts
@@ -2030,36 +2071,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
2030
2071
  var Rating = class extends BaseEntity {
2031
2072
  };
2032
2073
  __decorateClass([
2033
- (0, import_typeorm16.Column)({ name: "reviewer_id", type: "integer" }),
2034
- (0, import_typeorm16.Index)()
2074
+ (0, import_typeorm17.Column)({ name: "reviewer_id", type: "integer" }),
2075
+ (0, import_typeorm17.Index)()
2035
2076
  ], Rating.prototype, "reviewer_id", 2);
2036
2077
  __decorateClass([
2037
- (0, import_typeorm16.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2038
- (0, import_typeorm16.JoinColumn)({ name: "reviewer_id" })
2078
+ (0, import_typeorm17.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2079
+ (0, import_typeorm17.JoinColumn)({ name: "reviewer_id" })
2039
2080
  ], Rating.prototype, "reviewer", 2);
2040
2081
  __decorateClass([
2041
- (0, import_typeorm16.Column)({ name: "reviewee_id", type: "integer" }),
2042
- (0, import_typeorm16.Index)()
2082
+ (0, import_typeorm17.Column)({ name: "reviewee_id", type: "integer" }),
2083
+ (0, import_typeorm17.Index)()
2043
2084
  ], Rating.prototype, "reviewee_id", 2);
2044
2085
  __decorateClass([
2045
- (0, import_typeorm16.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2046
- (0, import_typeorm16.JoinColumn)({ name: "reviewee_id" })
2086
+ (0, import_typeorm17.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2087
+ (0, import_typeorm17.JoinColumn)({ name: "reviewee_id" })
2047
2088
  ], Rating.prototype, "reviewee", 2);
2048
2089
  __decorateClass([
2049
- (0, import_typeorm16.Column)({
2090
+ (0, import_typeorm17.Column)({
2050
2091
  type: "enum",
2051
2092
  enum: RatingTypeEnum,
2052
2093
  nullable: true
2053
2094
  })
2054
2095
  ], Rating.prototype, "ratingType", 2);
2055
2096
  __decorateClass([
2056
- (0, import_typeorm16.Column)({ type: "integer", nullable: true })
2097
+ (0, import_typeorm17.Column)({ type: "integer", nullable: true })
2057
2098
  ], Rating.prototype, "rating", 2);
2058
2099
  __decorateClass([
2059
- (0, import_typeorm16.Column)({ type: "text", nullable: true })
2100
+ (0, import_typeorm17.Column)({ type: "text", nullable: true })
2060
2101
  ], Rating.prototype, "review", 2);
2061
2102
  Rating = __decorateClass([
2062
- (0, import_typeorm16.Entity)("ratings")
2103
+ (0, import_typeorm17.Entity)("ratings")
2063
2104
  ], Rating);
2064
2105
 
2065
2106
  // src/modules/rating/dto/add.rating.dto.ts
@@ -2248,6 +2289,66 @@ __decorateClass([
2248
2289
  (0, import_class_validator37.IsBoolean)()
2249
2290
  ], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
2250
2291
 
2292
+ // src/modules/user/freelancer-education/pattern/pattern.ts
2293
+ var FREELANCER_EDUCATION_PATTERN = {
2294
+ fetchFreelancerEducation: "fetch.freelancer.education",
2295
+ createFreelancerEducation: "create.freelancer.education",
2296
+ updateFreelancerEducation: "update.freelancer.education"
2297
+ };
2298
+
2299
+ // src/modules/user/freelancer-education/dto/create-freelancer-education.dto.ts
2300
+ var import_class_validator38 = require("class-validator");
2301
+ var import_class_transformer4 = require("class-transformer");
2302
+ var CreateEducationDto = class {
2303
+ };
2304
+ __decorateClass([
2305
+ (0, import_class_validator38.IsString)(),
2306
+ (0, import_class_validator38.IsNotEmpty)()
2307
+ ], CreateEducationDto.prototype, "degree", 2);
2308
+ __decorateClass([
2309
+ (0, import_class_validator38.IsString)(),
2310
+ (0, import_class_validator38.IsNotEmpty)()
2311
+ ], CreateEducationDto.prototype, "university", 2);
2312
+ __decorateClass([
2313
+ (0, import_class_validator38.IsString)(),
2314
+ (0, import_class_validator38.IsNotEmpty)()
2315
+ ], CreateEducationDto.prototype, "yearOfGraduation", 2);
2316
+ var CreateFreelancerEducationDto = class {
2317
+ };
2318
+ __decorateClass([
2319
+ (0, import_class_validator38.IsArray)(),
2320
+ (0, import_class_validator38.ValidateNested)({ each: true }),
2321
+ (0, import_class_transformer4.Type)(() => CreateEducationDto)
2322
+ ], CreateFreelancerEducationDto.prototype, "education", 2);
2323
+
2324
+ // src/modules/user/freelancer-education/dto/update-freelancer-education.dto.ts
2325
+ var import_class_validator39 = require("class-validator");
2326
+ var import_class_transformer5 = require("class-transformer");
2327
+ var UpdateEducationDto = class {
2328
+ };
2329
+ __decorateClass([
2330
+ (0, import_class_validator39.IsOptional)()
2331
+ ], UpdateEducationDto.prototype, "uuid", 2);
2332
+ __decorateClass([
2333
+ (0, import_class_validator39.IsString)(),
2334
+ (0, import_class_validator39.IsNotEmpty)()
2335
+ ], UpdateEducationDto.prototype, "degree", 2);
2336
+ __decorateClass([
2337
+ (0, import_class_validator39.IsString)(),
2338
+ (0, import_class_validator39.IsNotEmpty)()
2339
+ ], UpdateEducationDto.prototype, "university", 2);
2340
+ __decorateClass([
2341
+ (0, import_class_validator39.IsString)(),
2342
+ (0, import_class_validator39.IsNotEmpty)()
2343
+ ], UpdateEducationDto.prototype, "yearOfGraduation", 2);
2344
+ var UpdateFreelancerEducationDto = class {
2345
+ };
2346
+ __decorateClass([
2347
+ (0, import_class_validator39.IsArray)(),
2348
+ (0, import_class_validator39.ValidateNested)({ each: true }),
2349
+ (0, import_class_transformer5.Type)(() => UpdateEducationDto)
2350
+ ], UpdateFreelancerEducationDto.prototype, "education", 2);
2351
+
2251
2352
  // src/adapters/tcp/user.tcp.adapter.ts
2252
2353
  var import_dotenv = require("dotenv");
2253
2354
  var import_microservices = require("@nestjs/microservices");
@@ -2465,7 +2566,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
2465
2566
  };
2466
2567
 
2467
2568
  // src/entities/question.entity.ts
2468
- var import_typeorm17 = require("typeorm");
2569
+ var import_typeorm18 = require("typeorm");
2469
2570
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2470
2571
  QuestionFor2["CLIENT"] = "CLIENT";
2471
2572
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -2474,16 +2575,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2474
2575
  var Question = class extends BaseEntity {
2475
2576
  };
2476
2577
  __decorateClass([
2477
- (0, import_typeorm17.Column)({ name: "question", type: "varchar" })
2578
+ (0, import_typeorm18.Column)({ name: "question", type: "varchar" })
2478
2579
  ], Question.prototype, "question", 2);
2479
2580
  __decorateClass([
2480
- (0, import_typeorm17.Column)({ name: "hint", type: "varchar", nullable: true })
2581
+ (0, import_typeorm18.Column)({ name: "hint", type: "varchar", nullable: true })
2481
2582
  ], Question.prototype, "hint", 2);
2482
2583
  __decorateClass([
2483
- (0, import_typeorm17.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2584
+ (0, import_typeorm18.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2484
2585
  ], Question.prototype, "slug", 2);
2485
2586
  __decorateClass([
2486
- (0, import_typeorm17.Column)({
2587
+ (0, import_typeorm18.Column)({
2487
2588
  name: "question_for",
2488
2589
  type: "enum",
2489
2590
  enum: QuestionFor,
@@ -2491,76 +2592,76 @@ __decorateClass([
2491
2592
  })
2492
2593
  ], Question.prototype, "questionFor", 2);
2493
2594
  __decorateClass([
2494
- (0, import_typeorm17.Column)({ name: "type", type: "varchar", nullable: true })
2595
+ (0, import_typeorm18.Column)({ name: "type", type: "varchar", nullable: true })
2495
2596
  ], Question.prototype, "type", 2);
2496
2597
  __decorateClass([
2497
- (0, import_typeorm17.Column)({ name: "options", type: "jsonb", nullable: true })
2598
+ (0, import_typeorm18.Column)({ name: "options", type: "jsonb", nullable: true })
2498
2599
  ], Question.prototype, "options", 2);
2499
2600
  __decorateClass([
2500
- (0, import_typeorm17.Column)({ name: "is_active", type: "boolean", default: false })
2601
+ (0, import_typeorm18.Column)({ name: "is_active", type: "boolean", default: false })
2501
2602
  ], Question.prototype, "isActive", 2);
2502
2603
  Question = __decorateClass([
2503
- (0, import_typeorm17.Entity)("questions")
2604
+ (0, import_typeorm18.Entity)("questions")
2504
2605
  ], Question);
2505
2606
 
2506
2607
  // src/entities/job-role.entity.ts
2507
- var import_typeorm18 = require("typeorm");
2608
+ var import_typeorm19 = require("typeorm");
2508
2609
  var JobRoles = class extends BaseEntity {
2509
2610
  };
2510
2611
  __decorateClass([
2511
- (0, import_typeorm18.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2612
+ (0, import_typeorm19.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2512
2613
  ], JobRoles.prototype, "slug", 2);
2513
2614
  __decorateClass([
2514
- (0, import_typeorm18.Column)({ name: "name", type: "varchar", nullable: true })
2615
+ (0, import_typeorm19.Column)({ name: "name", type: "varchar", nullable: true })
2515
2616
  ], JobRoles.prototype, "name", 2);
2516
2617
  __decorateClass([
2517
- (0, import_typeorm18.Column)({ name: "is_active", type: "boolean", default: true })
2618
+ (0, import_typeorm19.Column)({ name: "is_active", type: "boolean", default: true })
2518
2619
  ], JobRoles.prototype, "isActive", 2);
2519
2620
  JobRoles = __decorateClass([
2520
- (0, import_typeorm18.Entity)("job_roles")
2621
+ (0, import_typeorm19.Entity)("job_roles")
2521
2622
  ], JobRoles);
2522
2623
 
2523
2624
  // src/entities/plan.entity.ts
2524
- var import_typeorm20 = require("typeorm");
2625
+ var import_typeorm21 = require("typeorm");
2525
2626
 
2526
2627
  // src/entities/feature.entity.ts
2527
- var import_typeorm19 = require("typeorm");
2628
+ var import_typeorm20 = require("typeorm");
2528
2629
  var Feature = class extends BaseEntity {
2529
2630
  };
2530
2631
  __decorateClass([
2531
- (0, import_typeorm19.Column)({ name: "name", type: "varchar", unique: true })
2632
+ (0, import_typeorm20.Column)({ name: "name", type: "varchar", unique: true })
2532
2633
  ], Feature.prototype, "name", 2);
2533
2634
  __decorateClass([
2534
- (0, import_typeorm19.ManyToMany)(() => Plan, (plan) => plan.features)
2635
+ (0, import_typeorm20.ManyToMany)(() => Plan, (plan) => plan.features)
2535
2636
  ], Feature.prototype, "plans", 2);
2536
2637
  Feature = __decorateClass([
2537
- (0, import_typeorm19.Entity)("features")
2638
+ (0, import_typeorm20.Entity)("features")
2538
2639
  ], Feature);
2539
2640
 
2540
2641
  // src/entities/plan.entity.ts
2541
2642
  var Plan = class extends BaseEntity {
2542
2643
  };
2543
2644
  __decorateClass([
2544
- (0, import_typeorm20.Column)({ name: "name", type: "varchar", unique: true })
2645
+ (0, import_typeorm21.Column)({ name: "name", type: "varchar", unique: true })
2545
2646
  ], Plan.prototype, "name", 2);
2546
2647
  __decorateClass([
2547
- (0, import_typeorm20.Column)({ name: "description", type: "varchar", nullable: true })
2648
+ (0, import_typeorm21.Column)({ name: "description", type: "varchar", nullable: true })
2548
2649
  ], Plan.prototype, "description", 2);
2549
2650
  __decorateClass([
2550
- (0, import_typeorm20.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2651
+ (0, import_typeorm21.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2551
2652
  ], Plan.prototype, "price", 2);
2552
2653
  __decorateClass([
2553
- (0, import_typeorm20.Column)({ name: "billing_period", type: "varchar" })
2654
+ (0, import_typeorm21.Column)({ name: "billing_period", type: "varchar" })
2554
2655
  ], Plan.prototype, "billingPeriod", 2);
2555
2656
  __decorateClass([
2556
- (0, import_typeorm20.Column)({ name: "is_current", type: "boolean", default: false })
2657
+ (0, import_typeorm21.Column)({ name: "is_current", type: "boolean", default: false })
2557
2658
  ], Plan.prototype, "isCurrent", 2);
2558
2659
  __decorateClass([
2559
- (0, import_typeorm20.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2560
- (0, import_typeorm20.JoinTable)()
2660
+ (0, import_typeorm21.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2661
+ (0, import_typeorm21.JoinTable)()
2561
2662
  ], Plan.prototype, "features", 2);
2562
2663
  Plan = __decorateClass([
2563
- (0, import_typeorm20.Entity)("plans")
2664
+ (0, import_typeorm21.Entity)("plans")
2564
2665
  ], Plan);
2565
2666
  // Annotate the CommonJS export names for ESM import in node:
2566
2667
  0 && (module.exports = {
@@ -2584,13 +2685,16 @@ Plan = __decorateClass([
2584
2685
  CompanyRole,
2585
2686
  CreateCompanyMemberDto,
2586
2687
  CreateCompanyRoleDto,
2688
+ CreateEducationDto,
2587
2689
  CreateExperienceDto,
2690
+ CreateFreelancerEducationDto,
2588
2691
  CreateFreelancerExperienceDto,
2589
2692
  CreateQuestionDto,
2590
2693
  CreateRatingDto,
2591
2694
  CreateSubAdminDto,
2592
2695
  DurationTypeEnum,
2593
2696
  EmploymentType,
2697
+ FREELANCER_EDUCATION_PATTERN,
2594
2698
  FREELANCER_EXPERIENCE_PATTERN,
2595
2699
  Feature,
2596
2700
  ForgotPasswordDto,
@@ -2598,6 +2702,7 @@ Plan = __decorateClass([
2598
2702
  FreelancerChangePasswordDto,
2599
2703
  FreelancerCreateAccountDto,
2600
2704
  FreelancerDevelopmentPreferenceDto,
2705
+ FreelancerEducation,
2601
2706
  FreelancerExperience,
2602
2707
  FreelancerProfile,
2603
2708
  FreelancerProfileQuestionDto,
@@ -2664,7 +2769,9 @@ Plan = __decorateClass([
2664
2769
  UpdateCompanyMemberDto,
2665
2770
  UpdateCompanyProfileDto,
2666
2771
  UpdateCompanyRoleDto,
2772
+ UpdateEducationDto,
2667
2773
  UpdateExperienceDto,
2774
+ UpdateFreelancerEducationDto,
2668
2775
  UpdateFreelancerExperienceDto,
2669
2776
  UpdateFreelancerProfileDto,
2670
2777
  UpdateSubAdminAccountStatusDto,