@experts_hub/shared 1.0.160 → 1.0.162
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/company-profile.entity.d.ts +1 -1
- package/dist/entities/freelancer-coreskill.entity.d.ts +7 -0
- package/dist/entities/freelancer-framework.entity.d.ts +7 -0
- package/dist/entities/freelancer-tool.entity.d.ts +7 -0
- package/dist/entities/index.d.ts +3 -0
- package/dist/entities/user.entity.d.ts +6 -0
- package/dist/index.d.mts +34 -2
- package/dist/index.d.ts +34 -2
- package/dist/index.js +212 -98
- package/dist/index.mjs +204 -77
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/user/freelancer-skill/dto/freelancer-skill.dto.d.ts +5 -0
- package/dist/modules/user/freelancer-skill/dto/index.d.ts +1 -0
- package/dist/modules/user/freelancer-skill/index.d.ts +2 -0
- package/dist/modules/user/freelancer-skill/pattern/pattern.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -58,21 +58,26 @@ __export(index_exports, {
|
|
|
58
58
|
FREELANCER_EDUCATION_PATTERN: () => FREELANCER_EDUCATION_PATTERN,
|
|
59
59
|
FREELANCER_EXPERIENCE_PATTERN: () => FREELANCER_EXPERIENCE_PATTERN,
|
|
60
60
|
FREELANCER_PROJECT_PATTERN: () => FREELANCER_PROJECT_PATTERN,
|
|
61
|
+
FREELANCER_SKILL_PATTERN: () => FREELANCER_SKILL_PATTERN,
|
|
61
62
|
Feature: () => Feature,
|
|
62
63
|
ForgotPasswordDto: () => ForgotPasswordDto,
|
|
63
64
|
FreelancerBankDetailsDto: () => FreelancerBankDetailsDto,
|
|
64
65
|
FreelancerCaseStudy: () => FreelancerCaseStudy,
|
|
65
66
|
FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
|
|
67
|
+
FreelancerCoreSkill: () => FreelancerCoreSkill,
|
|
66
68
|
FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
|
|
67
69
|
FreelancerDevelopmentPreferenceDto: () => FreelancerDevelopmentPreferenceDto,
|
|
68
70
|
FreelancerEducation: () => FreelancerEducation,
|
|
69
71
|
FreelancerEducationDto: () => FreelancerEducationDto,
|
|
70
72
|
FreelancerExperience: () => FreelancerExperience,
|
|
71
73
|
FreelancerExperienceDto: () => FreelancerExperienceDto,
|
|
74
|
+
FreelancerFramework: () => FreelancerFramework,
|
|
72
75
|
FreelancerProfile: () => FreelancerProfile,
|
|
73
76
|
FreelancerProfileQuestionDto: () => FreelancerProfileQuestionDto,
|
|
74
77
|
FreelancerProject: () => FreelancerProject,
|
|
75
78
|
FreelancerProjectDto: () => FreelancerProjectDto,
|
|
79
|
+
FreelancerSkillDto: () => FreelancerSkillDto,
|
|
80
|
+
FreelancerTool: () => FreelancerTool,
|
|
76
81
|
FreelancerUploadResumeDto: () => FreelancerUploadResumeDto,
|
|
77
82
|
FreelancerWorkShowcaseDto: () => FreelancerWorkShowcaseDto,
|
|
78
83
|
FromUsOn: () => FromUsOn,
|
|
@@ -1076,10 +1081,10 @@ var RATING_PATTERN = {
|
|
|
1076
1081
|
var import_class_validator32 = require("class-validator");
|
|
1077
1082
|
|
|
1078
1083
|
// src/entities/rating.entity.ts
|
|
1079
|
-
var
|
|
1084
|
+
var import_typeorm24 = require("typeorm");
|
|
1080
1085
|
|
|
1081
1086
|
// src/entities/user.entity.ts
|
|
1082
|
-
var
|
|
1087
|
+
var import_typeorm23 = require("typeorm");
|
|
1083
1088
|
|
|
1084
1089
|
// src/entities/base.entity.ts
|
|
1085
1090
|
var import_typeorm = require("typeorm");
|
|
@@ -1368,7 +1373,7 @@ FreelancerProfile = __decorateClass([
|
|
|
1368
1373
|
var import_typeorm6 = require("typeorm");
|
|
1369
1374
|
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
1370
1375
|
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
1371
|
-
KindOfHire2["
|
|
1376
|
+
KindOfHire2["PARTTIME"] = "PARTTIME";
|
|
1372
1377
|
KindOfHire2["BOTH"] = "BOTH";
|
|
1373
1378
|
return KindOfHire2;
|
|
1374
1379
|
})(KindOfHire || {});
|
|
@@ -2123,6 +2128,66 @@ FreelancerCaseStudy = __decorateClass([
|
|
|
2123
2128
|
(0, import_typeorm19.Entity)("freelancer_case_studies")
|
|
2124
2129
|
], FreelancerCaseStudy);
|
|
2125
2130
|
|
|
2131
|
+
// src/entities/freelancer-coreskill.entity.ts
|
|
2132
|
+
var import_typeorm20 = require("typeorm");
|
|
2133
|
+
var FreelancerCoreSkill = class extends BaseEntity {
|
|
2134
|
+
};
|
|
2135
|
+
// individual index to find core skills by user
|
|
2136
|
+
__decorateClass([
|
|
2137
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2138
|
+
(0, import_typeorm20.Index)()
|
|
2139
|
+
], FreelancerCoreSkill.prototype, "userId", 2);
|
|
2140
|
+
__decorateClass([
|
|
2141
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.freelancerCoreSkill),
|
|
2142
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2143
|
+
], FreelancerCoreSkill.prototype, "user", 2);
|
|
2144
|
+
__decorateClass([
|
|
2145
|
+
(0, import_typeorm20.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2146
|
+
], FreelancerCoreSkill.prototype, "skillName", 2);
|
|
2147
|
+
FreelancerCoreSkill = __decorateClass([
|
|
2148
|
+
(0, import_typeorm20.Entity)("freelancer_coreskills")
|
|
2149
|
+
], FreelancerCoreSkill);
|
|
2150
|
+
|
|
2151
|
+
// src/entities/freelancer-tool.entity.ts
|
|
2152
|
+
var import_typeorm21 = require("typeorm");
|
|
2153
|
+
var FreelancerTool = class extends BaseEntity {
|
|
2154
|
+
};
|
|
2155
|
+
// individual index to find tool by user
|
|
2156
|
+
__decorateClass([
|
|
2157
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2158
|
+
(0, import_typeorm21.Index)()
|
|
2159
|
+
], FreelancerTool.prototype, "userId", 2);
|
|
2160
|
+
__decorateClass([
|
|
2161
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
2162
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2163
|
+
], FreelancerTool.prototype, "user", 2);
|
|
2164
|
+
__decorateClass([
|
|
2165
|
+
(0, import_typeorm21.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
2166
|
+
], FreelancerTool.prototype, "toolName", 2);
|
|
2167
|
+
FreelancerTool = __decorateClass([
|
|
2168
|
+
(0, import_typeorm21.Entity)("freelancer_tools")
|
|
2169
|
+
], FreelancerTool);
|
|
2170
|
+
|
|
2171
|
+
// src/entities/freelancer-framework.entity.ts
|
|
2172
|
+
var import_typeorm22 = require("typeorm");
|
|
2173
|
+
var FreelancerFramework = class extends BaseEntity {
|
|
2174
|
+
};
|
|
2175
|
+
// individual index to find framework by user
|
|
2176
|
+
__decorateClass([
|
|
2177
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2178
|
+
(0, import_typeorm22.Index)()
|
|
2179
|
+
], FreelancerFramework.prototype, "userId", 2);
|
|
2180
|
+
__decorateClass([
|
|
2181
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
2182
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2183
|
+
], FreelancerFramework.prototype, "user", 2);
|
|
2184
|
+
__decorateClass([
|
|
2185
|
+
(0, import_typeorm22.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
2186
|
+
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2187
|
+
FreelancerFramework = __decorateClass([
|
|
2188
|
+
(0, import_typeorm22.Entity)("freelancer_frameworks")
|
|
2189
|
+
], FreelancerFramework);
|
|
2190
|
+
|
|
2126
2191
|
// src/entities/user.entity.ts
|
|
2127
2192
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2128
2193
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2148,55 +2213,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2148
2213
|
var User = class extends BaseEntity {
|
|
2149
2214
|
};
|
|
2150
2215
|
__decorateClass([
|
|
2151
|
-
(0,
|
|
2216
|
+
(0, import_typeorm23.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
2152
2217
|
], User.prototype, "uniqueId", 2);
|
|
2153
2218
|
__decorateClass([
|
|
2154
|
-
(0,
|
|
2155
|
-
(0,
|
|
2219
|
+
(0, import_typeorm23.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2220
|
+
(0, import_typeorm23.Index)()
|
|
2156
2221
|
], User.prototype, "parentId", 2);
|
|
2157
2222
|
__decorateClass([
|
|
2158
|
-
(0,
|
|
2159
|
-
(0,
|
|
2223
|
+
(0, import_typeorm23.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2224
|
+
(0, import_typeorm23.Index)()
|
|
2160
2225
|
], User.prototype, "companyRoleId", 2);
|
|
2161
2226
|
__decorateClass([
|
|
2162
|
-
(0,
|
|
2163
|
-
(0,
|
|
2227
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2228
|
+
(0, import_typeorm23.JoinColumn)({ name: "parent_id" })
|
|
2164
2229
|
], User.prototype, "parent", 2);
|
|
2165
2230
|
__decorateClass([
|
|
2166
|
-
(0,
|
|
2231
|
+
(0, import_typeorm23.OneToMany)(() => User, (user) => user.parent)
|
|
2167
2232
|
], User.prototype, "children", 2);
|
|
2168
2233
|
__decorateClass([
|
|
2169
|
-
(0,
|
|
2234
|
+
(0, import_typeorm23.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2170
2235
|
], User.prototype, "username", 2);
|
|
2171
2236
|
__decorateClass([
|
|
2172
|
-
(0,
|
|
2237
|
+
(0, import_typeorm23.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2173
2238
|
], User.prototype, "firstName", 2);
|
|
2174
2239
|
__decorateClass([
|
|
2175
|
-
(0,
|
|
2240
|
+
(0, import_typeorm23.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2176
2241
|
], User.prototype, "lastName", 2);
|
|
2177
2242
|
__decorateClass([
|
|
2178
|
-
(0,
|
|
2243
|
+
(0, import_typeorm23.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
2179
2244
|
], User.prototype, "dateOfBirth", 2);
|
|
2180
2245
|
__decorateClass([
|
|
2181
|
-
(0,
|
|
2246
|
+
(0, import_typeorm23.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2182
2247
|
], User.prototype, "gender", 2);
|
|
2183
2248
|
__decorateClass([
|
|
2184
|
-
(0,
|
|
2249
|
+
(0, import_typeorm23.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2185
2250
|
], User.prototype, "profilePictureUrl", 2);
|
|
2186
2251
|
__decorateClass([
|
|
2187
|
-
(0,
|
|
2252
|
+
(0, import_typeorm23.Column)({ name: "email", type: "varchar", unique: true })
|
|
2188
2253
|
], User.prototype, "email", 2);
|
|
2189
2254
|
__decorateClass([
|
|
2190
|
-
(0,
|
|
2255
|
+
(0, import_typeorm23.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2191
2256
|
], User.prototype, "mobileCode", 2);
|
|
2192
2257
|
__decorateClass([
|
|
2193
|
-
(0,
|
|
2258
|
+
(0, import_typeorm23.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2194
2259
|
], User.prototype, "mobile", 2);
|
|
2195
2260
|
__decorateClass([
|
|
2196
|
-
(0,
|
|
2261
|
+
(0, import_typeorm23.Column)({ name: "password", type: "varchar", nullable: true })
|
|
2197
2262
|
], User.prototype, "password", 2);
|
|
2198
2263
|
__decorateClass([
|
|
2199
|
-
(0,
|
|
2264
|
+
(0, import_typeorm23.Column)({
|
|
2200
2265
|
name: "account_type",
|
|
2201
2266
|
type: "enum",
|
|
2202
2267
|
enum: AccountType,
|
|
@@ -2204,7 +2269,7 @@ __decorateClass([
|
|
|
2204
2269
|
})
|
|
2205
2270
|
], User.prototype, "accountType", 2);
|
|
2206
2271
|
__decorateClass([
|
|
2207
|
-
(0,
|
|
2272
|
+
(0, import_typeorm23.Column)({
|
|
2208
2273
|
name: "account_status",
|
|
2209
2274
|
type: "enum",
|
|
2210
2275
|
enum: AccountStatus,
|
|
@@ -2212,36 +2277,36 @@ __decorateClass([
|
|
|
2212
2277
|
})
|
|
2213
2278
|
], User.prototype, "accountStatus", 2);
|
|
2214
2279
|
__decorateClass([
|
|
2215
|
-
(0,
|
|
2280
|
+
(0, import_typeorm23.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2216
2281
|
], User.prototype, "isEmailVerified", 2);
|
|
2217
2282
|
__decorateClass([
|
|
2218
|
-
(0,
|
|
2283
|
+
(0, import_typeorm23.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2219
2284
|
], User.prototype, "isMobileVerified", 2);
|
|
2220
2285
|
__decorateClass([
|
|
2221
|
-
(0,
|
|
2286
|
+
(0, import_typeorm23.Column)({
|
|
2222
2287
|
name: "last_login_at",
|
|
2223
2288
|
type: "timestamp with time zone",
|
|
2224
2289
|
nullable: true
|
|
2225
2290
|
})
|
|
2226
2291
|
], User.prototype, "lastLoginAt", 2);
|
|
2227
2292
|
__decorateClass([
|
|
2228
|
-
(0,
|
|
2293
|
+
(0, import_typeorm23.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2229
2294
|
], User.prototype, "lastLoginIp", 2);
|
|
2230
2295
|
__decorateClass([
|
|
2231
|
-
(0,
|
|
2296
|
+
(0, import_typeorm23.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2232
2297
|
], User.prototype, "resetToken", 2);
|
|
2233
2298
|
__decorateClass([
|
|
2234
|
-
(0,
|
|
2299
|
+
(0, import_typeorm23.Column)({
|
|
2235
2300
|
name: "reset_token_expire_at",
|
|
2236
2301
|
type: "timestamp with time zone",
|
|
2237
2302
|
nullable: true
|
|
2238
2303
|
})
|
|
2239
2304
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2240
2305
|
__decorateClass([
|
|
2241
|
-
(0,
|
|
2306
|
+
(0, import_typeorm23.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2242
2307
|
], User.prototype, "refreshTokens", 2);
|
|
2243
2308
|
__decorateClass([
|
|
2244
|
-
(0,
|
|
2309
|
+
(0, import_typeorm23.Column)({
|
|
2245
2310
|
name: "provider",
|
|
2246
2311
|
type: "enum",
|
|
2247
2312
|
enum: Provider,
|
|
@@ -2250,73 +2315,82 @@ __decorateClass([
|
|
|
2250
2315
|
})
|
|
2251
2316
|
], User.prototype, "provider", 2);
|
|
2252
2317
|
__decorateClass([
|
|
2253
|
-
(0,
|
|
2318
|
+
(0, import_typeorm23.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2254
2319
|
], User.prototype, "providerToken", 2);
|
|
2255
2320
|
__decorateClass([
|
|
2256
|
-
(0,
|
|
2321
|
+
(0, import_typeorm23.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2257
2322
|
], User.prototype, "linkedInId", 2);
|
|
2258
2323
|
__decorateClass([
|
|
2259
|
-
(0,
|
|
2324
|
+
(0, import_typeorm23.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2260
2325
|
], User.prototype, "googleId", 2);
|
|
2261
2326
|
__decorateClass([
|
|
2262
|
-
(0,
|
|
2327
|
+
(0, import_typeorm23.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2263
2328
|
], User.prototype, "gitLabsId", 2);
|
|
2264
2329
|
__decorateClass([
|
|
2265
|
-
(0,
|
|
2330
|
+
(0, import_typeorm23.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2266
2331
|
], User.prototype, "otps", 2);
|
|
2267
2332
|
__decorateClass([
|
|
2268
|
-
(0,
|
|
2333
|
+
(0, import_typeorm23.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2269
2334
|
], User.prototype, "senseloafLogs", 2);
|
|
2270
2335
|
__decorateClass([
|
|
2271
|
-
(0,
|
|
2336
|
+
(0, import_typeorm23.OneToOne)(
|
|
2272
2337
|
() => FreelancerProfile,
|
|
2273
2338
|
(freelancerProfile) => freelancerProfile.user
|
|
2274
2339
|
)
|
|
2275
2340
|
], User.prototype, "freelancerProfile", 2);
|
|
2276
2341
|
__decorateClass([
|
|
2277
|
-
(0,
|
|
2342
|
+
(0, import_typeorm23.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2278
2343
|
], User.prototype, "companyProfile", 2);
|
|
2279
2344
|
__decorateClass([
|
|
2280
|
-
(0,
|
|
2345
|
+
(0, import_typeorm23.OneToMany)(() => Job, (job) => job.user)
|
|
2281
2346
|
], User.prototype, "jobs", 2);
|
|
2282
2347
|
__decorateClass([
|
|
2283
|
-
(0,
|
|
2348
|
+
(0, import_typeorm23.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2284
2349
|
], User.prototype, "interviews", 2);
|
|
2285
2350
|
__decorateClass([
|
|
2286
|
-
(0,
|
|
2351
|
+
(0, import_typeorm23.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2287
2352
|
], User.prototype, "bankDetail", 2);
|
|
2288
2353
|
__decorateClass([
|
|
2289
|
-
(0,
|
|
2354
|
+
(0, import_typeorm23.OneToMany)(
|
|
2290
2355
|
() => SystemPreference,
|
|
2291
2356
|
(systemPreference) => systemPreference.user
|
|
2292
2357
|
)
|
|
2293
2358
|
], User.prototype, "systemPreference", 2);
|
|
2294
2359
|
__decorateClass([
|
|
2295
|
-
(0,
|
|
2360
|
+
(0, import_typeorm23.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2296
2361
|
], User.prototype, "givenRatings", 2);
|
|
2297
2362
|
__decorateClass([
|
|
2298
|
-
(0,
|
|
2363
|
+
(0, import_typeorm23.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2299
2364
|
], User.prototype, "receivedRatings", 2);
|
|
2300
2365
|
__decorateClass([
|
|
2301
|
-
(0,
|
|
2366
|
+
(0, import_typeorm23.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2302
2367
|
], User.prototype, "jobApplications", 2);
|
|
2303
2368
|
__decorateClass([
|
|
2304
|
-
(0,
|
|
2369
|
+
(0, import_typeorm23.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2305
2370
|
], User.prototype, "companyRole", 2);
|
|
2306
2371
|
__decorateClass([
|
|
2307
|
-
(0,
|
|
2372
|
+
(0, import_typeorm23.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2308
2373
|
], User.prototype, "freelancerExperience", 2);
|
|
2309
2374
|
__decorateClass([
|
|
2310
|
-
(0,
|
|
2375
|
+
(0, import_typeorm23.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2311
2376
|
], User.prototype, "freelancerEducation", 2);
|
|
2312
2377
|
__decorateClass([
|
|
2313
|
-
(0,
|
|
2378
|
+
(0, import_typeorm23.OneToOne)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
2314
2379
|
], User.prototype, "freelancerProject", 2);
|
|
2315
2380
|
__decorateClass([
|
|
2316
|
-
(0,
|
|
2381
|
+
(0, import_typeorm23.OneToOne)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
2317
2382
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
2383
|
+
__decorateClass([
|
|
2384
|
+
(0, import_typeorm23.OneToOne)(() => FreelancerCoreSkill, (freelancerCoreSkill) => freelancerCoreSkill.user)
|
|
2385
|
+
], User.prototype, "freelancerCoreSkill", 2);
|
|
2386
|
+
__decorateClass([
|
|
2387
|
+
(0, import_typeorm23.OneToOne)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
2388
|
+
], User.prototype, "freelancerTool", 2);
|
|
2389
|
+
__decorateClass([
|
|
2390
|
+
(0, import_typeorm23.OneToOne)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
2391
|
+
], User.prototype, "freelancerFramework", 2);
|
|
2318
2392
|
User = __decorateClass([
|
|
2319
|
-
(0,
|
|
2393
|
+
(0, import_typeorm23.Entity)("users")
|
|
2320
2394
|
], User);
|
|
2321
2395
|
|
|
2322
2396
|
// src/entities/rating.entity.ts
|
|
@@ -2328,36 +2402,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2328
2402
|
var Rating = class extends BaseEntity {
|
|
2329
2403
|
};
|
|
2330
2404
|
__decorateClass([
|
|
2331
|
-
(0,
|
|
2332
|
-
(0,
|
|
2405
|
+
(0, import_typeorm24.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2406
|
+
(0, import_typeorm24.Index)()
|
|
2333
2407
|
], Rating.prototype, "reviewer_id", 2);
|
|
2334
2408
|
__decorateClass([
|
|
2335
|
-
(0,
|
|
2336
|
-
(0,
|
|
2409
|
+
(0, import_typeorm24.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2410
|
+
(0, import_typeorm24.JoinColumn)({ name: "reviewer_id" })
|
|
2337
2411
|
], Rating.prototype, "reviewer", 2);
|
|
2338
2412
|
__decorateClass([
|
|
2339
|
-
(0,
|
|
2340
|
-
(0,
|
|
2413
|
+
(0, import_typeorm24.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2414
|
+
(0, import_typeorm24.Index)()
|
|
2341
2415
|
], Rating.prototype, "reviewee_id", 2);
|
|
2342
2416
|
__decorateClass([
|
|
2343
|
-
(0,
|
|
2344
|
-
(0,
|
|
2417
|
+
(0, import_typeorm24.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2418
|
+
(0, import_typeorm24.JoinColumn)({ name: "reviewee_id" })
|
|
2345
2419
|
], Rating.prototype, "reviewee", 2);
|
|
2346
2420
|
__decorateClass([
|
|
2347
|
-
(0,
|
|
2421
|
+
(0, import_typeorm24.Column)({
|
|
2348
2422
|
type: "enum",
|
|
2349
2423
|
enum: RatingTypeEnum,
|
|
2350
2424
|
nullable: true
|
|
2351
2425
|
})
|
|
2352
2426
|
], Rating.prototype, "ratingType", 2);
|
|
2353
2427
|
__decorateClass([
|
|
2354
|
-
(0,
|
|
2428
|
+
(0, import_typeorm24.Column)({ type: "integer", nullable: true })
|
|
2355
2429
|
], Rating.prototype, "rating", 2);
|
|
2356
2430
|
__decorateClass([
|
|
2357
|
-
(0,
|
|
2431
|
+
(0, import_typeorm24.Column)({ type: "text", nullable: true })
|
|
2358
2432
|
], Rating.prototype, "review", 2);
|
|
2359
2433
|
Rating = __decorateClass([
|
|
2360
|
-
(0,
|
|
2434
|
+
(0, import_typeorm24.Entity)("ratings")
|
|
2361
2435
|
], Rating);
|
|
2362
2436
|
|
|
2363
2437
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2629,6 +2703,41 @@ var PERMISSION_PATTERN = {
|
|
|
2629
2703
|
fetchAllPermissionsDropdown: "permissions.fetch_dropdown"
|
|
2630
2704
|
};
|
|
2631
2705
|
|
|
2706
|
+
// src/modules/user/freelancer-skill/pattern/pattern.ts
|
|
2707
|
+
var FREELANCER_SKILL_PATTERN = {
|
|
2708
|
+
fetchFreelancerSkill: "fetch.freelancer.skill",
|
|
2709
|
+
saveFreelancerSkill: "save.freelancer.skill"
|
|
2710
|
+
};
|
|
2711
|
+
|
|
2712
|
+
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
2713
|
+
var import_class_validator42 = require("class-validator");
|
|
2714
|
+
var import_class_transformer5 = require("class-transformer");
|
|
2715
|
+
var FreelancerSkillDto = class {
|
|
2716
|
+
constructor() {
|
|
2717
|
+
this.coreSkills = [];
|
|
2718
|
+
this.tools = [];
|
|
2719
|
+
this.frameworks = [];
|
|
2720
|
+
}
|
|
2721
|
+
};
|
|
2722
|
+
__decorateClass([
|
|
2723
|
+
(0, import_class_validator42.IsOptional)(),
|
|
2724
|
+
(0, import_class_validator42.IsArray)(),
|
|
2725
|
+
(0, import_class_transformer5.Type)(() => String),
|
|
2726
|
+
(0, import_class_validator42.IsString)({ each: true })
|
|
2727
|
+
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
2728
|
+
__decorateClass([
|
|
2729
|
+
(0, import_class_validator42.IsOptional)(),
|
|
2730
|
+
(0, import_class_validator42.IsArray)(),
|
|
2731
|
+
(0, import_class_transformer5.Type)(() => String),
|
|
2732
|
+
(0, import_class_validator42.IsString)({ each: true })
|
|
2733
|
+
], FreelancerSkillDto.prototype, "tools", 2);
|
|
2734
|
+
__decorateClass([
|
|
2735
|
+
(0, import_class_validator42.IsOptional)(),
|
|
2736
|
+
(0, import_class_validator42.IsArray)(),
|
|
2737
|
+
(0, import_class_transformer5.Type)(() => String),
|
|
2738
|
+
(0, import_class_validator42.IsString)({ each: true })
|
|
2739
|
+
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
2740
|
+
|
|
2632
2741
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2633
2742
|
var import_dotenv = require("dotenv");
|
|
2634
2743
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -2846,7 +2955,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2846
2955
|
};
|
|
2847
2956
|
|
|
2848
2957
|
// src/entities/question.entity.ts
|
|
2849
|
-
var
|
|
2958
|
+
var import_typeorm25 = require("typeorm");
|
|
2850
2959
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2851
2960
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2852
2961
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2855,16 +2964,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2855
2964
|
var Question = class extends BaseEntity {
|
|
2856
2965
|
};
|
|
2857
2966
|
__decorateClass([
|
|
2858
|
-
(0,
|
|
2967
|
+
(0, import_typeorm25.Column)({ name: "question", type: "varchar" })
|
|
2859
2968
|
], Question.prototype, "question", 2);
|
|
2860
2969
|
__decorateClass([
|
|
2861
|
-
(0,
|
|
2970
|
+
(0, import_typeorm25.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
2862
2971
|
], Question.prototype, "hint", 2);
|
|
2863
2972
|
__decorateClass([
|
|
2864
|
-
(0,
|
|
2973
|
+
(0, import_typeorm25.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2865
2974
|
], Question.prototype, "slug", 2);
|
|
2866
2975
|
__decorateClass([
|
|
2867
|
-
(0,
|
|
2976
|
+
(0, import_typeorm25.Column)({
|
|
2868
2977
|
name: "question_for",
|
|
2869
2978
|
type: "enum",
|
|
2870
2979
|
enum: QuestionFor,
|
|
@@ -2872,97 +2981,97 @@ __decorateClass([
|
|
|
2872
2981
|
})
|
|
2873
2982
|
], Question.prototype, "questionFor", 2);
|
|
2874
2983
|
__decorateClass([
|
|
2875
|
-
(0,
|
|
2984
|
+
(0, import_typeorm25.Column)({ name: "type", type: "varchar", nullable: true })
|
|
2876
2985
|
], Question.prototype, "type", 2);
|
|
2877
2986
|
__decorateClass([
|
|
2878
|
-
(0,
|
|
2987
|
+
(0, import_typeorm25.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
2879
2988
|
], Question.prototype, "options", 2);
|
|
2880
2989
|
__decorateClass([
|
|
2881
|
-
(0,
|
|
2990
|
+
(0, import_typeorm25.Column)({ name: "is_active", type: "boolean", default: false })
|
|
2882
2991
|
], Question.prototype, "isActive", 2);
|
|
2883
2992
|
Question = __decorateClass([
|
|
2884
|
-
(0,
|
|
2993
|
+
(0, import_typeorm25.Entity)("questions")
|
|
2885
2994
|
], Question);
|
|
2886
2995
|
|
|
2887
2996
|
// src/entities/job-role.entity.ts
|
|
2888
|
-
var
|
|
2997
|
+
var import_typeorm26 = require("typeorm");
|
|
2889
2998
|
var JobRoles = class extends BaseEntity {
|
|
2890
2999
|
};
|
|
2891
3000
|
__decorateClass([
|
|
2892
|
-
(0,
|
|
3001
|
+
(0, import_typeorm26.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2893
3002
|
], JobRoles.prototype, "slug", 2);
|
|
2894
3003
|
__decorateClass([
|
|
2895
|
-
(0,
|
|
3004
|
+
(0, import_typeorm26.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2896
3005
|
], JobRoles.prototype, "name", 2);
|
|
2897
3006
|
__decorateClass([
|
|
2898
|
-
(0,
|
|
3007
|
+
(0, import_typeorm26.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2899
3008
|
], JobRoles.prototype, "isActive", 2);
|
|
2900
3009
|
JobRoles = __decorateClass([
|
|
2901
|
-
(0,
|
|
3010
|
+
(0, import_typeorm26.Entity)("job_roles")
|
|
2902
3011
|
], JobRoles);
|
|
2903
3012
|
|
|
2904
3013
|
// src/entities/plan.entity.ts
|
|
2905
|
-
var
|
|
3014
|
+
var import_typeorm28 = require("typeorm");
|
|
2906
3015
|
|
|
2907
3016
|
// src/entities/feature.entity.ts
|
|
2908
|
-
var
|
|
3017
|
+
var import_typeorm27 = require("typeorm");
|
|
2909
3018
|
var Feature = class extends BaseEntity {
|
|
2910
3019
|
};
|
|
2911
3020
|
__decorateClass([
|
|
2912
|
-
(0,
|
|
3021
|
+
(0, import_typeorm27.Column)({ name: "name", type: "varchar", unique: true })
|
|
2913
3022
|
], Feature.prototype, "name", 2);
|
|
2914
3023
|
__decorateClass([
|
|
2915
|
-
(0,
|
|
3024
|
+
(0, import_typeorm27.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
2916
3025
|
], Feature.prototype, "plans", 2);
|
|
2917
3026
|
Feature = __decorateClass([
|
|
2918
|
-
(0,
|
|
3027
|
+
(0, import_typeorm27.Entity)("features")
|
|
2919
3028
|
], Feature);
|
|
2920
3029
|
|
|
2921
3030
|
// src/entities/plan.entity.ts
|
|
2922
3031
|
var Plan = class extends BaseEntity {
|
|
2923
3032
|
};
|
|
2924
3033
|
__decorateClass([
|
|
2925
|
-
(0,
|
|
3034
|
+
(0, import_typeorm28.Column)({ name: "name", type: "varchar", unique: true })
|
|
2926
3035
|
], Plan.prototype, "name", 2);
|
|
2927
3036
|
__decorateClass([
|
|
2928
|
-
(0,
|
|
3037
|
+
(0, import_typeorm28.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2929
3038
|
], Plan.prototype, "description", 2);
|
|
2930
3039
|
__decorateClass([
|
|
2931
|
-
(0,
|
|
3040
|
+
(0, import_typeorm28.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2932
3041
|
], Plan.prototype, "price", 2);
|
|
2933
3042
|
__decorateClass([
|
|
2934
|
-
(0,
|
|
3043
|
+
(0, import_typeorm28.Column)({ name: "billing_period", type: "varchar" })
|
|
2935
3044
|
], Plan.prototype, "billingPeriod", 2);
|
|
2936
3045
|
__decorateClass([
|
|
2937
|
-
(0,
|
|
3046
|
+
(0, import_typeorm28.Column)({ name: "is_current", type: "boolean", default: false })
|
|
2938
3047
|
], Plan.prototype, "isCurrent", 2);
|
|
2939
3048
|
__decorateClass([
|
|
2940
|
-
(0,
|
|
2941
|
-
(0,
|
|
3049
|
+
(0, import_typeorm28.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3050
|
+
(0, import_typeorm28.JoinTable)()
|
|
2942
3051
|
], Plan.prototype, "features", 2);
|
|
2943
3052
|
Plan = __decorateClass([
|
|
2944
|
-
(0,
|
|
3053
|
+
(0, import_typeorm28.Entity)("plans")
|
|
2945
3054
|
], Plan);
|
|
2946
3055
|
|
|
2947
3056
|
// src/entities/permission.entity.ts
|
|
2948
|
-
var
|
|
3057
|
+
var import_typeorm29 = require("typeorm");
|
|
2949
3058
|
var Permission = class extends BaseEntity {
|
|
2950
3059
|
};
|
|
2951
3060
|
__decorateClass([
|
|
2952
|
-
(0,
|
|
3061
|
+
(0, import_typeorm29.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2953
3062
|
], Permission.prototype, "name", 2);
|
|
2954
3063
|
__decorateClass([
|
|
2955
|
-
(0,
|
|
2956
|
-
(0,
|
|
3064
|
+
(0, import_typeorm29.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3065
|
+
(0, import_typeorm29.Index)()
|
|
2957
3066
|
], Permission.prototype, "slug", 2);
|
|
2958
3067
|
__decorateClass([
|
|
2959
|
-
(0,
|
|
3068
|
+
(0, import_typeorm29.Column)({ name: "description", type: "text", nullable: true })
|
|
2960
3069
|
], Permission.prototype, "description", 2);
|
|
2961
3070
|
__decorateClass([
|
|
2962
|
-
(0,
|
|
3071
|
+
(0, import_typeorm29.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2963
3072
|
], Permission.prototype, "isActive", 2);
|
|
2964
3073
|
Permission = __decorateClass([
|
|
2965
|
-
(0,
|
|
3074
|
+
(0, import_typeorm29.Entity)("permissions")
|
|
2966
3075
|
], Permission);
|
|
2967
3076
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2968
3077
|
0 && (module.exports = {
|
|
@@ -2997,21 +3106,26 @@ Permission = __decorateClass([
|
|
|
2997
3106
|
FREELANCER_EDUCATION_PATTERN,
|
|
2998
3107
|
FREELANCER_EXPERIENCE_PATTERN,
|
|
2999
3108
|
FREELANCER_PROJECT_PATTERN,
|
|
3109
|
+
FREELANCER_SKILL_PATTERN,
|
|
3000
3110
|
Feature,
|
|
3001
3111
|
ForgotPasswordDto,
|
|
3002
3112
|
FreelancerBankDetailsDto,
|
|
3003
3113
|
FreelancerCaseStudy,
|
|
3004
3114
|
FreelancerChangePasswordDto,
|
|
3115
|
+
FreelancerCoreSkill,
|
|
3005
3116
|
FreelancerCreateAccountDto,
|
|
3006
3117
|
FreelancerDevelopmentPreferenceDto,
|
|
3007
3118
|
FreelancerEducation,
|
|
3008
3119
|
FreelancerEducationDto,
|
|
3009
3120
|
FreelancerExperience,
|
|
3010
3121
|
FreelancerExperienceDto,
|
|
3122
|
+
FreelancerFramework,
|
|
3011
3123
|
FreelancerProfile,
|
|
3012
3124
|
FreelancerProfileQuestionDto,
|
|
3013
3125
|
FreelancerProject,
|
|
3014
3126
|
FreelancerProjectDto,
|
|
3127
|
+
FreelancerSkillDto,
|
|
3128
|
+
FreelancerTool,
|
|
3015
3129
|
FreelancerUploadResumeDto,
|
|
3016
3130
|
FreelancerWorkShowcaseDto,
|
|
3017
3131
|
FromUsOn,
|