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