@experts_hub/shared 1.0.116 → 1.0.118
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-role.entity.d.ts +10 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +117 -82
- package/dist/index.mjs +106 -72
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './question.entity';
|
|
|
6
6
|
export * from './otp.entity';
|
|
7
7
|
export * from './freelancer-profile.entity';
|
|
8
8
|
export * from './company-profile.entity';
|
|
9
|
+
export * from './company-role.entity';
|
|
9
10
|
export * from './skill.entity';
|
|
10
11
|
export * from './job-role.entity';
|
|
11
12
|
export * from './job-entity';
|
|
@@ -9,6 +9,7 @@ import { BankDetail } from "./bank-details.entity";
|
|
|
9
9
|
import { SystemPreference } from "./system-preference.entity";
|
|
10
10
|
import { Rating } from "./rating.entity";
|
|
11
11
|
import { JobApplication } from "./job-application.entity";
|
|
12
|
+
import { CompanyRole } from "./company-role.entity";
|
|
12
13
|
export declare enum AccountType {
|
|
13
14
|
ADMIN = "ADMIN",
|
|
14
15
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -62,4 +63,5 @@ export declare class User extends BaseEntity {
|
|
|
62
63
|
givenRatings: Rating[];
|
|
63
64
|
receivedRatings: Rating[];
|
|
64
65
|
jobApplications: JobApplication[];
|
|
66
|
+
companyRole: CompanyRole[];
|
|
65
67
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BaseEntity as BaseEntity$1 } from 'typeorm';
|
|
1
2
|
import { MicroserviceOptions } from '@nestjs/microservices';
|
|
2
3
|
|
|
3
4
|
declare const AUTHENTICATION_PATTERN: {
|
|
@@ -465,6 +466,15 @@ declare class Rating extends BaseEntity {
|
|
|
465
466
|
review: string;
|
|
466
467
|
}
|
|
467
468
|
|
|
469
|
+
declare class CompanyRole extends BaseEntity$1 {
|
|
470
|
+
userId: number;
|
|
471
|
+
user: User;
|
|
472
|
+
name: string;
|
|
473
|
+
slug: string;
|
|
474
|
+
description: string;
|
|
475
|
+
isActive: boolean;
|
|
476
|
+
}
|
|
477
|
+
|
|
468
478
|
declare enum AccountType {
|
|
469
479
|
ADMIN = "ADMIN",
|
|
470
480
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -518,6 +528,7 @@ declare class User extends BaseEntity {
|
|
|
518
528
|
givenRatings: Rating[];
|
|
519
529
|
receivedRatings: Rating[];
|
|
520
530
|
jobApplications: JobApplication[];
|
|
531
|
+
companyRole: CompanyRole[];
|
|
521
532
|
}
|
|
522
533
|
|
|
523
534
|
declare enum KindOfHire {
|
|
@@ -869,4 +880,4 @@ declare class Plan extends BaseEntity {
|
|
|
869
880
|
features: Feature[];
|
|
870
881
|
}
|
|
871
882
|
|
|
872
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToSubAdminResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
883
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToSubAdminResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BaseEntity as BaseEntity$1 } from 'typeorm';
|
|
1
2
|
import { MicroserviceOptions } from '@nestjs/microservices';
|
|
2
3
|
|
|
3
4
|
declare const AUTHENTICATION_PATTERN: {
|
|
@@ -465,6 +466,15 @@ declare class Rating extends BaseEntity {
|
|
|
465
466
|
review: string;
|
|
466
467
|
}
|
|
467
468
|
|
|
469
|
+
declare class CompanyRole extends BaseEntity$1 {
|
|
470
|
+
userId: number;
|
|
471
|
+
user: User;
|
|
472
|
+
name: string;
|
|
473
|
+
slug: string;
|
|
474
|
+
description: string;
|
|
475
|
+
isActive: boolean;
|
|
476
|
+
}
|
|
477
|
+
|
|
468
478
|
declare enum AccountType {
|
|
469
479
|
ADMIN = "ADMIN",
|
|
470
480
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -518,6 +528,7 @@ declare class User extends BaseEntity {
|
|
|
518
528
|
givenRatings: Rating[];
|
|
519
529
|
receivedRatings: Rating[];
|
|
520
530
|
jobApplications: JobApplication[];
|
|
531
|
+
companyRole: CompanyRole[];
|
|
521
532
|
}
|
|
522
533
|
|
|
523
534
|
declare enum KindOfHire {
|
|
@@ -869,4 +880,4 @@ declare class Plan extends BaseEntity {
|
|
|
869
880
|
features: Feature[];
|
|
870
881
|
}
|
|
871
882
|
|
|
872
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToSubAdminResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
883
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToSubAdminResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __export(index_exports, {
|
|
|
42
42
|
ClientCreateAccountDto: () => ClientCreateAccountDto,
|
|
43
43
|
ClientProfileQuestionDto: () => ClientProfileQuestionDto,
|
|
44
44
|
CompanyProfile: () => CompanyProfile,
|
|
45
|
+
CompanyRole: () => CompanyRole,
|
|
45
46
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
46
47
|
CreateRatingDto: () => CreateRatingDto,
|
|
47
48
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
@@ -548,7 +549,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
548
549
|
var import_class_validator17 = require("class-validator");
|
|
549
550
|
|
|
550
551
|
// src/entities/company-profile.entity.ts
|
|
551
|
-
var
|
|
552
|
+
var import_typeorm15 = require("typeorm");
|
|
552
553
|
|
|
553
554
|
// src/entities/base.entity.ts
|
|
554
555
|
var import_typeorm = require("typeorm");
|
|
@@ -588,7 +589,7 @@ __decorateClass([
|
|
|
588
589
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
589
590
|
|
|
590
591
|
// src/entities/user.entity.ts
|
|
591
|
-
var
|
|
592
|
+
var import_typeorm14 = require("typeorm");
|
|
592
593
|
|
|
593
594
|
// src/entities/refresh-token.entity.ts
|
|
594
595
|
var import_typeorm2 = require("typeorm");
|
|
@@ -1236,6 +1237,36 @@ Rating = __decorateClass([
|
|
|
1236
1237
|
(0, import_typeorm12.Entity)("ratings")
|
|
1237
1238
|
], Rating);
|
|
1238
1239
|
|
|
1240
|
+
// src/entities/company-role.entity.ts
|
|
1241
|
+
var import_typeorm13 = require("typeorm");
|
|
1242
|
+
var CompanyRole = class extends import_typeorm13.BaseEntity {
|
|
1243
|
+
};
|
|
1244
|
+
// individual index to find company roles by user
|
|
1245
|
+
__decorateClass([
|
|
1246
|
+
(0, import_typeorm13.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1247
|
+
(0, import_typeorm13.Index)()
|
|
1248
|
+
], CompanyRole.prototype, "userId", 2);
|
|
1249
|
+
__decorateClass([
|
|
1250
|
+
(0, import_typeorm13.ManyToOne)(() => User, (user) => user.companyRole),
|
|
1251
|
+
(0, import_typeorm13.JoinColumn)({ name: "user_id" })
|
|
1252
|
+
], CompanyRole.prototype, "user", 2);
|
|
1253
|
+
__decorateClass([
|
|
1254
|
+
(0, import_typeorm13.Column)({ name: "name", type: "varchar" })
|
|
1255
|
+
], CompanyRole.prototype, "name", 2);
|
|
1256
|
+
__decorateClass([
|
|
1257
|
+
(0, import_typeorm13.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
1258
|
+
(0, import_typeorm13.Index)()
|
|
1259
|
+
], CompanyRole.prototype, "slug", 2);
|
|
1260
|
+
__decorateClass([
|
|
1261
|
+
(0, import_typeorm13.Column)({ name: "description", type: "text", nullable: true })
|
|
1262
|
+
], CompanyRole.prototype, "description", 2);
|
|
1263
|
+
__decorateClass([
|
|
1264
|
+
(0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1265
|
+
], CompanyRole.prototype, "isActive", 2);
|
|
1266
|
+
CompanyRole = __decorateClass([
|
|
1267
|
+
(0, import_typeorm13.Entity)("company_roles")
|
|
1268
|
+
], CompanyRole);
|
|
1269
|
+
|
|
1239
1270
|
// src/entities/user.entity.ts
|
|
1240
1271
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1241
1272
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1260,40 +1291,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1260
1291
|
var User = class extends BaseEntity {
|
|
1261
1292
|
};
|
|
1262
1293
|
__decorateClass([
|
|
1263
|
-
(0,
|
|
1294
|
+
(0, import_typeorm14.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
1264
1295
|
], User.prototype, "uniqueId", 2);
|
|
1265
1296
|
__decorateClass([
|
|
1266
|
-
(0,
|
|
1297
|
+
(0, import_typeorm14.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1267
1298
|
], User.prototype, "username", 2);
|
|
1268
1299
|
__decorateClass([
|
|
1269
|
-
(0,
|
|
1300
|
+
(0, import_typeorm14.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1270
1301
|
], User.prototype, "firstName", 2);
|
|
1271
1302
|
__decorateClass([
|
|
1272
|
-
(0,
|
|
1303
|
+
(0, import_typeorm14.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1273
1304
|
], User.prototype, "lastName", 2);
|
|
1274
1305
|
__decorateClass([
|
|
1275
|
-
(0,
|
|
1306
|
+
(0, import_typeorm14.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
1276
1307
|
], User.prototype, "dateOfBirth", 2);
|
|
1277
1308
|
__decorateClass([
|
|
1278
|
-
(0,
|
|
1309
|
+
(0, import_typeorm14.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1279
1310
|
], User.prototype, "gender", 2);
|
|
1280
1311
|
__decorateClass([
|
|
1281
|
-
(0,
|
|
1312
|
+
(0, import_typeorm14.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1282
1313
|
], User.prototype, "profilePictureUrl", 2);
|
|
1283
1314
|
__decorateClass([
|
|
1284
|
-
(0,
|
|
1315
|
+
(0, import_typeorm14.Column)({ name: "email", type: "varchar", unique: true })
|
|
1285
1316
|
], User.prototype, "email", 2);
|
|
1286
1317
|
__decorateClass([
|
|
1287
|
-
(0,
|
|
1318
|
+
(0, import_typeorm14.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1288
1319
|
], User.prototype, "mobileCode", 2);
|
|
1289
1320
|
__decorateClass([
|
|
1290
|
-
(0,
|
|
1321
|
+
(0, import_typeorm14.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1291
1322
|
], User.prototype, "mobile", 2);
|
|
1292
1323
|
__decorateClass([
|
|
1293
|
-
(0,
|
|
1324
|
+
(0, import_typeorm14.Column)({ name: "password", type: "varchar" })
|
|
1294
1325
|
], User.prototype, "password", 2);
|
|
1295
1326
|
__decorateClass([
|
|
1296
|
-
(0,
|
|
1327
|
+
(0, import_typeorm14.Column)({
|
|
1297
1328
|
name: "account_type",
|
|
1298
1329
|
type: "enum",
|
|
1299
1330
|
enum: AccountType,
|
|
@@ -1301,7 +1332,7 @@ __decorateClass([
|
|
|
1301
1332
|
})
|
|
1302
1333
|
], User.prototype, "accountType", 2);
|
|
1303
1334
|
__decorateClass([
|
|
1304
|
-
(0,
|
|
1335
|
+
(0, import_typeorm14.Column)({
|
|
1305
1336
|
name: "account_status",
|
|
1306
1337
|
type: "enum",
|
|
1307
1338
|
enum: AccountStatus,
|
|
@@ -1309,36 +1340,36 @@ __decorateClass([
|
|
|
1309
1340
|
})
|
|
1310
1341
|
], User.prototype, "accountStatus", 2);
|
|
1311
1342
|
__decorateClass([
|
|
1312
|
-
(0,
|
|
1343
|
+
(0, import_typeorm14.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
1313
1344
|
], User.prototype, "isEmailVerified", 2);
|
|
1314
1345
|
__decorateClass([
|
|
1315
|
-
(0,
|
|
1346
|
+
(0, import_typeorm14.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1316
1347
|
], User.prototype, "isMobileVerified", 2);
|
|
1317
1348
|
__decorateClass([
|
|
1318
|
-
(0,
|
|
1349
|
+
(0, import_typeorm14.Column)({
|
|
1319
1350
|
name: "last_login_at",
|
|
1320
1351
|
type: "timestamp with time zone",
|
|
1321
1352
|
nullable: true
|
|
1322
1353
|
})
|
|
1323
1354
|
], User.prototype, "lastLoginAt", 2);
|
|
1324
1355
|
__decorateClass([
|
|
1325
|
-
(0,
|
|
1356
|
+
(0, import_typeorm14.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1326
1357
|
], User.prototype, "lastLoginIp", 2);
|
|
1327
1358
|
__decorateClass([
|
|
1328
|
-
(0,
|
|
1359
|
+
(0, import_typeorm14.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
1329
1360
|
], User.prototype, "resetToken", 2);
|
|
1330
1361
|
__decorateClass([
|
|
1331
|
-
(0,
|
|
1362
|
+
(0, import_typeorm14.Column)({
|
|
1332
1363
|
name: "reset_token_expire_at",
|
|
1333
1364
|
type: "timestamp with time zone",
|
|
1334
1365
|
nullable: true
|
|
1335
1366
|
})
|
|
1336
1367
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
1337
1368
|
__decorateClass([
|
|
1338
|
-
(0,
|
|
1369
|
+
(0, import_typeorm14.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
1339
1370
|
], User.prototype, "refreshTokens", 2);
|
|
1340
1371
|
__decorateClass([
|
|
1341
|
-
(0,
|
|
1372
|
+
(0, import_typeorm14.Column)({
|
|
1342
1373
|
name: "provider",
|
|
1343
1374
|
type: "enum",
|
|
1344
1375
|
enum: Provider,
|
|
@@ -1347,55 +1378,58 @@ __decorateClass([
|
|
|
1347
1378
|
})
|
|
1348
1379
|
], User.prototype, "provider", 2);
|
|
1349
1380
|
__decorateClass([
|
|
1350
|
-
(0,
|
|
1381
|
+
(0, import_typeorm14.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
1351
1382
|
], User.prototype, "providerToken", 2);
|
|
1352
1383
|
__decorateClass([
|
|
1353
|
-
(0,
|
|
1384
|
+
(0, import_typeorm14.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1354
1385
|
], User.prototype, "linkedInId", 2);
|
|
1355
1386
|
__decorateClass([
|
|
1356
|
-
(0,
|
|
1387
|
+
(0, import_typeorm14.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
1357
1388
|
], User.prototype, "googleId", 2);
|
|
1358
1389
|
__decorateClass([
|
|
1359
|
-
(0,
|
|
1390
|
+
(0, import_typeorm14.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1360
1391
|
], User.prototype, "gitLabsId", 2);
|
|
1361
1392
|
__decorateClass([
|
|
1362
|
-
(0,
|
|
1393
|
+
(0, import_typeorm14.OneToMany)(() => Otp, (otp) => otp.user)
|
|
1363
1394
|
], User.prototype, "otps", 2);
|
|
1364
1395
|
__decorateClass([
|
|
1365
|
-
(0,
|
|
1396
|
+
(0, import_typeorm14.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
1366
1397
|
], User.prototype, "resumeParserLogs", 2);
|
|
1367
1398
|
__decorateClass([
|
|
1368
|
-
(0,
|
|
1399
|
+
(0, import_typeorm14.OneToOne)(
|
|
1369
1400
|
() => FreelancerProfile,
|
|
1370
1401
|
(freelancerProfile) => freelancerProfile.user
|
|
1371
1402
|
)
|
|
1372
1403
|
], User.prototype, "freelancerProfile", 2);
|
|
1373
1404
|
__decorateClass([
|
|
1374
|
-
(0,
|
|
1405
|
+
(0, import_typeorm14.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
1375
1406
|
], User.prototype, "companyProfile", 2);
|
|
1376
1407
|
__decorateClass([
|
|
1377
|
-
(0,
|
|
1408
|
+
(0, import_typeorm14.OneToMany)(() => Job, (job) => job.user)
|
|
1378
1409
|
], User.prototype, "jobs", 2);
|
|
1379
1410
|
__decorateClass([
|
|
1380
|
-
(0,
|
|
1411
|
+
(0, import_typeorm14.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1381
1412
|
], User.prototype, "bankDetail", 2);
|
|
1382
1413
|
__decorateClass([
|
|
1383
|
-
(0,
|
|
1414
|
+
(0, import_typeorm14.OneToMany)(
|
|
1384
1415
|
() => SystemPreference,
|
|
1385
1416
|
(systemPreference) => systemPreference.user
|
|
1386
1417
|
)
|
|
1387
1418
|
], User.prototype, "systemPreference", 2);
|
|
1388
1419
|
__decorateClass([
|
|
1389
|
-
(0,
|
|
1420
|
+
(0, import_typeorm14.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
1390
1421
|
], User.prototype, "givenRatings", 2);
|
|
1391
1422
|
__decorateClass([
|
|
1392
|
-
(0,
|
|
1423
|
+
(0, import_typeorm14.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
1393
1424
|
], User.prototype, "receivedRatings", 2);
|
|
1394
1425
|
__decorateClass([
|
|
1395
|
-
(0,
|
|
1426
|
+
(0, import_typeorm14.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
1396
1427
|
], User.prototype, "jobApplications", 2);
|
|
1428
|
+
__decorateClass([
|
|
1429
|
+
(0, import_typeorm14.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
1430
|
+
], User.prototype, "companyRole", 2);
|
|
1397
1431
|
User = __decorateClass([
|
|
1398
|
-
(0,
|
|
1432
|
+
(0, import_typeorm14.Entity)("users")
|
|
1399
1433
|
], User);
|
|
1400
1434
|
|
|
1401
1435
|
// src/entities/company-profile.entity.ts
|
|
@@ -1422,42 +1456,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1422
1456
|
};
|
|
1423
1457
|
// individual index to find company profile by user
|
|
1424
1458
|
__decorateClass([
|
|
1425
|
-
(0,
|
|
1426
|
-
(0,
|
|
1459
|
+
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1460
|
+
(0, import_typeorm15.Index)()
|
|
1427
1461
|
], CompanyProfile.prototype, "userId", 2);
|
|
1428
1462
|
__decorateClass([
|
|
1429
|
-
(0,
|
|
1430
|
-
(0,
|
|
1463
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.otps),
|
|
1464
|
+
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
1431
1465
|
], CompanyProfile.prototype, "user", 2);
|
|
1432
1466
|
__decorateClass([
|
|
1433
|
-
(0,
|
|
1467
|
+
(0, import_typeorm15.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
1434
1468
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1435
1469
|
__decorateClass([
|
|
1436
|
-
(0,
|
|
1470
|
+
(0, import_typeorm15.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
1437
1471
|
], CompanyProfile.prototype, "bio", 2);
|
|
1438
1472
|
__decorateClass([
|
|
1439
|
-
(0,
|
|
1473
|
+
(0, import_typeorm15.Column)({ name: "website", type: "varchar", nullable: true })
|
|
1440
1474
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1441
1475
|
__decorateClass([
|
|
1442
|
-
(0,
|
|
1476
|
+
(0, import_typeorm15.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
1443
1477
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1444
1478
|
__decorateClass([
|
|
1445
|
-
(0,
|
|
1479
|
+
(0, import_typeorm15.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1446
1480
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1447
1481
|
__decorateClass([
|
|
1448
|
-
(0,
|
|
1482
|
+
(0, import_typeorm15.Column)({ name: "company_address", type: "varchar", nullable: true })
|
|
1449
1483
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1450
1484
|
__decorateClass([
|
|
1451
|
-
(0,
|
|
1485
|
+
(0, import_typeorm15.Column)({ name: "phone_number", type: "varchar", nullable: true })
|
|
1452
1486
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1453
1487
|
__decorateClass([
|
|
1454
|
-
(0,
|
|
1488
|
+
(0, import_typeorm15.Column)({ name: "skills", type: "text", nullable: true })
|
|
1455
1489
|
], CompanyProfile.prototype, "skills", 2);
|
|
1456
1490
|
__decorateClass([
|
|
1457
|
-
(0,
|
|
1491
|
+
(0, import_typeorm15.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1458
1492
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1459
1493
|
__decorateClass([
|
|
1460
|
-
(0,
|
|
1494
|
+
(0, import_typeorm15.Column)({
|
|
1461
1495
|
name: "kind_of_hiring",
|
|
1462
1496
|
type: "enum",
|
|
1463
1497
|
enum: KindOfHire,
|
|
@@ -1465,7 +1499,7 @@ __decorateClass([
|
|
|
1465
1499
|
})
|
|
1466
1500
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1467
1501
|
__decorateClass([
|
|
1468
|
-
(0,
|
|
1502
|
+
(0, import_typeorm15.Column)({
|
|
1469
1503
|
name: "mode_of_hire",
|
|
1470
1504
|
type: "enum",
|
|
1471
1505
|
enum: ModeOfHire,
|
|
@@ -1473,7 +1507,7 @@ __decorateClass([
|
|
|
1473
1507
|
})
|
|
1474
1508
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1475
1509
|
__decorateClass([
|
|
1476
|
-
(0,
|
|
1510
|
+
(0, import_typeorm15.Column)({
|
|
1477
1511
|
name: "found_us_on",
|
|
1478
1512
|
type: "enum",
|
|
1479
1513
|
enum: FromUsOn,
|
|
@@ -1481,7 +1515,7 @@ __decorateClass([
|
|
|
1481
1515
|
})
|
|
1482
1516
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1483
1517
|
CompanyProfile = __decorateClass([
|
|
1484
|
-
(0,
|
|
1518
|
+
(0, import_typeorm15.Entity)("company_profiles")
|
|
1485
1519
|
], CompanyProfile);
|
|
1486
1520
|
|
|
1487
1521
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -2096,7 +2130,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2096
2130
|
};
|
|
2097
2131
|
|
|
2098
2132
|
// src/entities/question.entity.ts
|
|
2099
|
-
var
|
|
2133
|
+
var import_typeorm16 = require("typeorm");
|
|
2100
2134
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2101
2135
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2102
2136
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2105,16 +2139,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2105
2139
|
var Question = class extends BaseEntity {
|
|
2106
2140
|
};
|
|
2107
2141
|
__decorateClass([
|
|
2108
|
-
(0,
|
|
2142
|
+
(0, import_typeorm16.Column)({ name: "question", type: "varchar" })
|
|
2109
2143
|
], Question.prototype, "question", 2);
|
|
2110
2144
|
__decorateClass([
|
|
2111
|
-
(0,
|
|
2145
|
+
(0, import_typeorm16.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
2112
2146
|
], Question.prototype, "hint", 2);
|
|
2113
2147
|
__decorateClass([
|
|
2114
|
-
(0,
|
|
2148
|
+
(0, import_typeorm16.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2115
2149
|
], Question.prototype, "slug", 2);
|
|
2116
2150
|
__decorateClass([
|
|
2117
|
-
(0,
|
|
2151
|
+
(0, import_typeorm16.Column)({
|
|
2118
2152
|
name: "question_for",
|
|
2119
2153
|
type: "enum",
|
|
2120
2154
|
enum: QuestionFor,
|
|
@@ -2122,76 +2156,76 @@ __decorateClass([
|
|
|
2122
2156
|
})
|
|
2123
2157
|
], Question.prototype, "questionFor", 2);
|
|
2124
2158
|
__decorateClass([
|
|
2125
|
-
(0,
|
|
2159
|
+
(0, import_typeorm16.Column)({ name: "type", type: "varchar", nullable: true })
|
|
2126
2160
|
], Question.prototype, "type", 2);
|
|
2127
2161
|
__decorateClass([
|
|
2128
|
-
(0,
|
|
2162
|
+
(0, import_typeorm16.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
2129
2163
|
], Question.prototype, "options", 2);
|
|
2130
2164
|
__decorateClass([
|
|
2131
|
-
(0,
|
|
2165
|
+
(0, import_typeorm16.Column)({ name: "is_active", type: "boolean", default: false })
|
|
2132
2166
|
], Question.prototype, "isActive", 2);
|
|
2133
2167
|
Question = __decorateClass([
|
|
2134
|
-
(0,
|
|
2168
|
+
(0, import_typeorm16.Entity)("questions")
|
|
2135
2169
|
], Question);
|
|
2136
2170
|
|
|
2137
2171
|
// src/entities/job-role.entity.ts
|
|
2138
|
-
var
|
|
2172
|
+
var import_typeorm17 = require("typeorm");
|
|
2139
2173
|
var JobRoles = class extends BaseEntity {
|
|
2140
2174
|
};
|
|
2141
2175
|
__decorateClass([
|
|
2142
|
-
(0,
|
|
2176
|
+
(0, import_typeorm17.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2143
2177
|
], JobRoles.prototype, "slug", 2);
|
|
2144
2178
|
__decorateClass([
|
|
2145
|
-
(0,
|
|
2179
|
+
(0, import_typeorm17.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2146
2180
|
], JobRoles.prototype, "name", 2);
|
|
2147
2181
|
__decorateClass([
|
|
2148
|
-
(0,
|
|
2182
|
+
(0, import_typeorm17.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2149
2183
|
], JobRoles.prototype, "isActive", 2);
|
|
2150
2184
|
JobRoles = __decorateClass([
|
|
2151
|
-
(0,
|
|
2185
|
+
(0, import_typeorm17.Entity)("job_roles")
|
|
2152
2186
|
], JobRoles);
|
|
2153
2187
|
|
|
2154
2188
|
// src/entities/plan.entity.ts
|
|
2155
|
-
var
|
|
2189
|
+
var import_typeorm19 = require("typeorm");
|
|
2156
2190
|
|
|
2157
2191
|
// src/entities/feature.entity.ts
|
|
2158
|
-
var
|
|
2192
|
+
var import_typeorm18 = require("typeorm");
|
|
2159
2193
|
var Feature = class extends BaseEntity {
|
|
2160
2194
|
};
|
|
2161
2195
|
__decorateClass([
|
|
2162
|
-
(0,
|
|
2196
|
+
(0, import_typeorm18.Column)({ name: "name", type: "varchar", unique: true })
|
|
2163
2197
|
], Feature.prototype, "name", 2);
|
|
2164
2198
|
__decorateClass([
|
|
2165
|
-
(0,
|
|
2199
|
+
(0, import_typeorm18.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
2166
2200
|
], Feature.prototype, "plans", 2);
|
|
2167
2201
|
Feature = __decorateClass([
|
|
2168
|
-
(0,
|
|
2202
|
+
(0, import_typeorm18.Entity)("features")
|
|
2169
2203
|
], Feature);
|
|
2170
2204
|
|
|
2171
2205
|
// src/entities/plan.entity.ts
|
|
2172
2206
|
var Plan = class extends BaseEntity {
|
|
2173
2207
|
};
|
|
2174
2208
|
__decorateClass([
|
|
2175
|
-
(0,
|
|
2209
|
+
(0, import_typeorm19.Column)({ name: "name", type: "varchar", unique: true })
|
|
2176
2210
|
], Plan.prototype, "name", 2);
|
|
2177
2211
|
__decorateClass([
|
|
2178
|
-
(0,
|
|
2212
|
+
(0, import_typeorm19.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2179
2213
|
], Plan.prototype, "description", 2);
|
|
2180
2214
|
__decorateClass([
|
|
2181
|
-
(0,
|
|
2215
|
+
(0, import_typeorm19.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2182
2216
|
], Plan.prototype, "price", 2);
|
|
2183
2217
|
__decorateClass([
|
|
2184
|
-
(0,
|
|
2218
|
+
(0, import_typeorm19.Column)({ name: "billing_period", type: "varchar" })
|
|
2185
2219
|
], Plan.prototype, "billingPeriod", 2);
|
|
2186
2220
|
__decorateClass([
|
|
2187
|
-
(0,
|
|
2221
|
+
(0, import_typeorm19.Column)({ name: "is_current", type: "boolean", default: false })
|
|
2188
2222
|
], Plan.prototype, "isCurrent", 2);
|
|
2189
2223
|
__decorateClass([
|
|
2190
|
-
(0,
|
|
2191
|
-
(0,
|
|
2224
|
+
(0, import_typeorm19.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2225
|
+
(0, import_typeorm19.JoinTable)()
|
|
2192
2226
|
], Plan.prototype, "features", 2);
|
|
2193
2227
|
Plan = __decorateClass([
|
|
2194
|
-
(0,
|
|
2228
|
+
(0, import_typeorm19.Entity)("plans")
|
|
2195
2229
|
], Plan);
|
|
2196
2230
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2197
2231
|
0 && (module.exports = {
|
|
@@ -2210,6 +2244,7 @@ Plan = __decorateClass([
|
|
|
2210
2244
|
ClientCreateAccountDto,
|
|
2211
2245
|
ClientProfileQuestionDto,
|
|
2212
2246
|
CompanyProfile,
|
|
2247
|
+
CompanyRole,
|
|
2213
2248
|
CreateQuestionDto,
|
|
2214
2249
|
CreateRatingDto,
|
|
2215
2250
|
CreateSubAdminDto,
|
package/dist/index.mjs
CHANGED
|
@@ -489,11 +489,11 @@ import {
|
|
|
489
489
|
|
|
490
490
|
// src/entities/company-profile.entity.ts
|
|
491
491
|
import {
|
|
492
|
-
Entity as
|
|
493
|
-
Column as
|
|
494
|
-
ManyToOne as
|
|
495
|
-
JoinColumn as
|
|
496
|
-
Index as
|
|
492
|
+
Entity as Entity14,
|
|
493
|
+
Column as Column15,
|
|
494
|
+
ManyToOne as ManyToOne12,
|
|
495
|
+
JoinColumn as JoinColumn12,
|
|
496
|
+
Index as Index10
|
|
497
497
|
} from "typeorm";
|
|
498
498
|
|
|
499
499
|
// src/entities/base.entity.ts
|
|
@@ -541,7 +541,7 @@ __decorateClass([
|
|
|
541
541
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
542
542
|
|
|
543
543
|
// src/entities/user.entity.ts
|
|
544
|
-
import { Entity as
|
|
544
|
+
import { Entity as Entity13, Column as Column14, OneToMany as OneToMany6, OneToOne } from "typeorm";
|
|
545
545
|
|
|
546
546
|
// src/entities/refresh-token.entity.ts
|
|
547
547
|
import {
|
|
@@ -1243,6 +1243,36 @@ Rating = __decorateClass([
|
|
|
1243
1243
|
Entity11("ratings")
|
|
1244
1244
|
], Rating);
|
|
1245
1245
|
|
|
1246
|
+
// src/entities/company-role.entity.ts
|
|
1247
|
+
import { BaseEntity as BaseEntity2, Column as Column13, Entity as Entity12, Index as Index9, JoinColumn as JoinColumn11, ManyToOne as ManyToOne11 } from "typeorm";
|
|
1248
|
+
var CompanyRole = class extends BaseEntity2 {
|
|
1249
|
+
};
|
|
1250
|
+
// individual index to find company roles by user
|
|
1251
|
+
__decorateClass([
|
|
1252
|
+
Column13({ name: "user_id", type: "integer", nullable: true }),
|
|
1253
|
+
Index9()
|
|
1254
|
+
], CompanyRole.prototype, "userId", 2);
|
|
1255
|
+
__decorateClass([
|
|
1256
|
+
ManyToOne11(() => User, (user) => user.companyRole),
|
|
1257
|
+
JoinColumn11({ name: "user_id" })
|
|
1258
|
+
], CompanyRole.prototype, "user", 2);
|
|
1259
|
+
__decorateClass([
|
|
1260
|
+
Column13({ name: "name", type: "varchar" })
|
|
1261
|
+
], CompanyRole.prototype, "name", 2);
|
|
1262
|
+
__decorateClass([
|
|
1263
|
+
Column13({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
1264
|
+
Index9()
|
|
1265
|
+
], CompanyRole.prototype, "slug", 2);
|
|
1266
|
+
__decorateClass([
|
|
1267
|
+
Column13({ name: "description", type: "text", nullable: true })
|
|
1268
|
+
], CompanyRole.prototype, "description", 2);
|
|
1269
|
+
__decorateClass([
|
|
1270
|
+
Column13({ name: "is_active", type: "boolean", default: true })
|
|
1271
|
+
], CompanyRole.prototype, "isActive", 2);
|
|
1272
|
+
CompanyRole = __decorateClass([
|
|
1273
|
+
Entity12("company_roles")
|
|
1274
|
+
], CompanyRole);
|
|
1275
|
+
|
|
1246
1276
|
// src/entities/user.entity.ts
|
|
1247
1277
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1248
1278
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1267,40 +1297,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1267
1297
|
var User = class extends BaseEntity {
|
|
1268
1298
|
};
|
|
1269
1299
|
__decorateClass([
|
|
1270
|
-
|
|
1300
|
+
Column14({ name: "unique_id", type: "varchar", unique: true })
|
|
1271
1301
|
], User.prototype, "uniqueId", 2);
|
|
1272
1302
|
__decorateClass([
|
|
1273
|
-
|
|
1303
|
+
Column14({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1274
1304
|
], User.prototype, "username", 2);
|
|
1275
1305
|
__decorateClass([
|
|
1276
|
-
|
|
1306
|
+
Column14({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1277
1307
|
], User.prototype, "firstName", 2);
|
|
1278
1308
|
__decorateClass([
|
|
1279
|
-
|
|
1309
|
+
Column14({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1280
1310
|
], User.prototype, "lastName", 2);
|
|
1281
1311
|
__decorateClass([
|
|
1282
|
-
|
|
1312
|
+
Column14({ name: "date_of_birth", type: "date", nullable: true })
|
|
1283
1313
|
], User.prototype, "dateOfBirth", 2);
|
|
1284
1314
|
__decorateClass([
|
|
1285
|
-
|
|
1315
|
+
Column14({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1286
1316
|
], User.prototype, "gender", 2);
|
|
1287
1317
|
__decorateClass([
|
|
1288
|
-
|
|
1318
|
+
Column14({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1289
1319
|
], User.prototype, "profilePictureUrl", 2);
|
|
1290
1320
|
__decorateClass([
|
|
1291
|
-
|
|
1321
|
+
Column14({ name: "email", type: "varchar", unique: true })
|
|
1292
1322
|
], User.prototype, "email", 2);
|
|
1293
1323
|
__decorateClass([
|
|
1294
|
-
|
|
1324
|
+
Column14({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1295
1325
|
], User.prototype, "mobileCode", 2);
|
|
1296
1326
|
__decorateClass([
|
|
1297
|
-
|
|
1327
|
+
Column14({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1298
1328
|
], User.prototype, "mobile", 2);
|
|
1299
1329
|
__decorateClass([
|
|
1300
|
-
|
|
1330
|
+
Column14({ name: "password", type: "varchar" })
|
|
1301
1331
|
], User.prototype, "password", 2);
|
|
1302
1332
|
__decorateClass([
|
|
1303
|
-
|
|
1333
|
+
Column14({
|
|
1304
1334
|
name: "account_type",
|
|
1305
1335
|
type: "enum",
|
|
1306
1336
|
enum: AccountType,
|
|
@@ -1308,7 +1338,7 @@ __decorateClass([
|
|
|
1308
1338
|
})
|
|
1309
1339
|
], User.prototype, "accountType", 2);
|
|
1310
1340
|
__decorateClass([
|
|
1311
|
-
|
|
1341
|
+
Column14({
|
|
1312
1342
|
name: "account_status",
|
|
1313
1343
|
type: "enum",
|
|
1314
1344
|
enum: AccountStatus,
|
|
@@ -1316,26 +1346,26 @@ __decorateClass([
|
|
|
1316
1346
|
})
|
|
1317
1347
|
], User.prototype, "accountStatus", 2);
|
|
1318
1348
|
__decorateClass([
|
|
1319
|
-
|
|
1349
|
+
Column14({ name: "is_email_verified", type: "boolean", default: false })
|
|
1320
1350
|
], User.prototype, "isEmailVerified", 2);
|
|
1321
1351
|
__decorateClass([
|
|
1322
|
-
|
|
1352
|
+
Column14({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1323
1353
|
], User.prototype, "isMobileVerified", 2);
|
|
1324
1354
|
__decorateClass([
|
|
1325
|
-
|
|
1355
|
+
Column14({
|
|
1326
1356
|
name: "last_login_at",
|
|
1327
1357
|
type: "timestamp with time zone",
|
|
1328
1358
|
nullable: true
|
|
1329
1359
|
})
|
|
1330
1360
|
], User.prototype, "lastLoginAt", 2);
|
|
1331
1361
|
__decorateClass([
|
|
1332
|
-
|
|
1362
|
+
Column14({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1333
1363
|
], User.prototype, "lastLoginIp", 2);
|
|
1334
1364
|
__decorateClass([
|
|
1335
|
-
|
|
1365
|
+
Column14({ name: "reset_token", type: "varchar", nullable: true })
|
|
1336
1366
|
], User.prototype, "resetToken", 2);
|
|
1337
1367
|
__decorateClass([
|
|
1338
|
-
|
|
1368
|
+
Column14({
|
|
1339
1369
|
name: "reset_token_expire_at",
|
|
1340
1370
|
type: "timestamp with time zone",
|
|
1341
1371
|
nullable: true
|
|
@@ -1345,7 +1375,7 @@ __decorateClass([
|
|
|
1345
1375
|
OneToMany6(() => RefreshToken, (token) => token.user)
|
|
1346
1376
|
], User.prototype, "refreshTokens", 2);
|
|
1347
1377
|
__decorateClass([
|
|
1348
|
-
|
|
1378
|
+
Column14({
|
|
1349
1379
|
name: "provider",
|
|
1350
1380
|
type: "enum",
|
|
1351
1381
|
enum: Provider,
|
|
@@ -1354,16 +1384,16 @@ __decorateClass([
|
|
|
1354
1384
|
})
|
|
1355
1385
|
], User.prototype, "provider", 2);
|
|
1356
1386
|
__decorateClass([
|
|
1357
|
-
|
|
1387
|
+
Column14({ name: "provider_token", type: "varchar", nullable: true })
|
|
1358
1388
|
], User.prototype, "providerToken", 2);
|
|
1359
1389
|
__decorateClass([
|
|
1360
|
-
|
|
1390
|
+
Column14({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1361
1391
|
], User.prototype, "linkedInId", 2);
|
|
1362
1392
|
__decorateClass([
|
|
1363
|
-
|
|
1393
|
+
Column14({ name: "google_id", type: "varchar", nullable: true })
|
|
1364
1394
|
], User.prototype, "googleId", 2);
|
|
1365
1395
|
__decorateClass([
|
|
1366
|
-
|
|
1396
|
+
Column14({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1367
1397
|
], User.prototype, "gitLabsId", 2);
|
|
1368
1398
|
__decorateClass([
|
|
1369
1399
|
OneToMany6(() => Otp, (otp) => otp.user)
|
|
@@ -1401,8 +1431,11 @@ __decorateClass([
|
|
|
1401
1431
|
__decorateClass([
|
|
1402
1432
|
OneToMany6(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
1403
1433
|
], User.prototype, "jobApplications", 2);
|
|
1434
|
+
__decorateClass([
|
|
1435
|
+
OneToMany6(() => CompanyRole, (companyRole) => companyRole.user)
|
|
1436
|
+
], User.prototype, "companyRole", 2);
|
|
1404
1437
|
User = __decorateClass([
|
|
1405
|
-
|
|
1438
|
+
Entity13("users")
|
|
1406
1439
|
], User);
|
|
1407
1440
|
|
|
1408
1441
|
// src/entities/company-profile.entity.ts
|
|
@@ -1429,42 +1462,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1429
1462
|
};
|
|
1430
1463
|
// individual index to find company profile by user
|
|
1431
1464
|
__decorateClass([
|
|
1432
|
-
|
|
1433
|
-
|
|
1465
|
+
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
1466
|
+
Index10()
|
|
1434
1467
|
], CompanyProfile.prototype, "userId", 2);
|
|
1435
1468
|
__decorateClass([
|
|
1436
|
-
|
|
1437
|
-
|
|
1469
|
+
ManyToOne12(() => User, (user) => user.otps),
|
|
1470
|
+
JoinColumn12({ name: "user_id" })
|
|
1438
1471
|
], CompanyProfile.prototype, "user", 2);
|
|
1439
1472
|
__decorateClass([
|
|
1440
|
-
|
|
1473
|
+
Column15({ name: "company_name", type: "varchar", nullable: true })
|
|
1441
1474
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1442
1475
|
__decorateClass([
|
|
1443
|
-
|
|
1476
|
+
Column15({ name: "bio", type: "varchar", nullable: true })
|
|
1444
1477
|
], CompanyProfile.prototype, "bio", 2);
|
|
1445
1478
|
__decorateClass([
|
|
1446
|
-
|
|
1479
|
+
Column15({ name: "website", type: "varchar", nullable: true })
|
|
1447
1480
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1448
1481
|
__decorateClass([
|
|
1449
|
-
|
|
1482
|
+
Column15({ name: "about_company", type: "varchar", nullable: true })
|
|
1450
1483
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1451
1484
|
__decorateClass([
|
|
1452
|
-
|
|
1485
|
+
Column15({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1453
1486
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1454
1487
|
__decorateClass([
|
|
1455
|
-
|
|
1488
|
+
Column15({ name: "company_address", type: "varchar", nullable: true })
|
|
1456
1489
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1457
1490
|
__decorateClass([
|
|
1458
|
-
|
|
1491
|
+
Column15({ name: "phone_number", type: "varchar", nullable: true })
|
|
1459
1492
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1460
1493
|
__decorateClass([
|
|
1461
|
-
|
|
1494
|
+
Column15({ name: "skills", type: "text", nullable: true })
|
|
1462
1495
|
], CompanyProfile.prototype, "skills", 2);
|
|
1463
1496
|
__decorateClass([
|
|
1464
|
-
|
|
1497
|
+
Column15({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1465
1498
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1466
1499
|
__decorateClass([
|
|
1467
|
-
|
|
1500
|
+
Column15({
|
|
1468
1501
|
name: "kind_of_hiring",
|
|
1469
1502
|
type: "enum",
|
|
1470
1503
|
enum: KindOfHire,
|
|
@@ -1472,7 +1505,7 @@ __decorateClass([
|
|
|
1472
1505
|
})
|
|
1473
1506
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1474
1507
|
__decorateClass([
|
|
1475
|
-
|
|
1508
|
+
Column15({
|
|
1476
1509
|
name: "mode_of_hire",
|
|
1477
1510
|
type: "enum",
|
|
1478
1511
|
enum: ModeOfHire,
|
|
@@ -1480,7 +1513,7 @@ __decorateClass([
|
|
|
1480
1513
|
})
|
|
1481
1514
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1482
1515
|
__decorateClass([
|
|
1483
|
-
|
|
1516
|
+
Column15({
|
|
1484
1517
|
name: "found_us_on",
|
|
1485
1518
|
type: "enum",
|
|
1486
1519
|
enum: FromUsOn,
|
|
@@ -1488,7 +1521,7 @@ __decorateClass([
|
|
|
1488
1521
|
})
|
|
1489
1522
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1490
1523
|
CompanyProfile = __decorateClass([
|
|
1491
|
-
|
|
1524
|
+
Entity14("company_profiles")
|
|
1492
1525
|
], CompanyProfile);
|
|
1493
1526
|
|
|
1494
1527
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -2144,7 +2177,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2144
2177
|
};
|
|
2145
2178
|
|
|
2146
2179
|
// src/entities/question.entity.ts
|
|
2147
|
-
import { Entity as
|
|
2180
|
+
import { Entity as Entity15, Column as Column16 } from "typeorm";
|
|
2148
2181
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2149
2182
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2150
2183
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2153,16 +2186,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2153
2186
|
var Question = class extends BaseEntity {
|
|
2154
2187
|
};
|
|
2155
2188
|
__decorateClass([
|
|
2156
|
-
|
|
2189
|
+
Column16({ name: "question", type: "varchar" })
|
|
2157
2190
|
], Question.prototype, "question", 2);
|
|
2158
2191
|
__decorateClass([
|
|
2159
|
-
|
|
2192
|
+
Column16({ name: "hint", type: "varchar", nullable: true })
|
|
2160
2193
|
], Question.prototype, "hint", 2);
|
|
2161
2194
|
__decorateClass([
|
|
2162
|
-
|
|
2195
|
+
Column16({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2163
2196
|
], Question.prototype, "slug", 2);
|
|
2164
2197
|
__decorateClass([
|
|
2165
|
-
|
|
2198
|
+
Column16({
|
|
2166
2199
|
name: "question_for",
|
|
2167
2200
|
type: "enum",
|
|
2168
2201
|
enum: QuestionFor,
|
|
@@ -2170,76 +2203,76 @@ __decorateClass([
|
|
|
2170
2203
|
})
|
|
2171
2204
|
], Question.prototype, "questionFor", 2);
|
|
2172
2205
|
__decorateClass([
|
|
2173
|
-
|
|
2206
|
+
Column16({ name: "type", type: "varchar", nullable: true })
|
|
2174
2207
|
], Question.prototype, "type", 2);
|
|
2175
2208
|
__decorateClass([
|
|
2176
|
-
|
|
2209
|
+
Column16({ name: "options", type: "jsonb", nullable: true })
|
|
2177
2210
|
], Question.prototype, "options", 2);
|
|
2178
2211
|
__decorateClass([
|
|
2179
|
-
|
|
2212
|
+
Column16({ name: "is_active", type: "boolean", default: false })
|
|
2180
2213
|
], Question.prototype, "isActive", 2);
|
|
2181
2214
|
Question = __decorateClass([
|
|
2182
|
-
|
|
2215
|
+
Entity15("questions")
|
|
2183
2216
|
], Question);
|
|
2184
2217
|
|
|
2185
2218
|
// src/entities/job-role.entity.ts
|
|
2186
|
-
import { Entity as
|
|
2219
|
+
import { Entity as Entity16, Column as Column17 } from "typeorm";
|
|
2187
2220
|
var JobRoles = class extends BaseEntity {
|
|
2188
2221
|
};
|
|
2189
2222
|
__decorateClass([
|
|
2190
|
-
|
|
2223
|
+
Column17({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2191
2224
|
], JobRoles.prototype, "slug", 2);
|
|
2192
2225
|
__decorateClass([
|
|
2193
|
-
|
|
2226
|
+
Column17({ name: "name", type: "varchar", nullable: true })
|
|
2194
2227
|
], JobRoles.prototype, "name", 2);
|
|
2195
2228
|
__decorateClass([
|
|
2196
|
-
|
|
2229
|
+
Column17({ name: "is_active", type: "boolean", default: true })
|
|
2197
2230
|
], JobRoles.prototype, "isActive", 2);
|
|
2198
2231
|
JobRoles = __decorateClass([
|
|
2199
|
-
|
|
2232
|
+
Entity16("job_roles")
|
|
2200
2233
|
], JobRoles);
|
|
2201
2234
|
|
|
2202
2235
|
// src/entities/plan.entity.ts
|
|
2203
|
-
import { Entity as
|
|
2236
|
+
import { Entity as Entity18, Column as Column19, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
2204
2237
|
|
|
2205
2238
|
// src/entities/feature.entity.ts
|
|
2206
|
-
import { Entity as
|
|
2239
|
+
import { Entity as Entity17, Column as Column18, ManyToMany } from "typeorm";
|
|
2207
2240
|
var Feature = class extends BaseEntity {
|
|
2208
2241
|
};
|
|
2209
2242
|
__decorateClass([
|
|
2210
|
-
|
|
2243
|
+
Column18({ name: "name", type: "varchar", unique: true })
|
|
2211
2244
|
], Feature.prototype, "name", 2);
|
|
2212
2245
|
__decorateClass([
|
|
2213
2246
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
2214
2247
|
], Feature.prototype, "plans", 2);
|
|
2215
2248
|
Feature = __decorateClass([
|
|
2216
|
-
|
|
2249
|
+
Entity17("features")
|
|
2217
2250
|
], Feature);
|
|
2218
2251
|
|
|
2219
2252
|
// src/entities/plan.entity.ts
|
|
2220
2253
|
var Plan = class extends BaseEntity {
|
|
2221
2254
|
};
|
|
2222
2255
|
__decorateClass([
|
|
2223
|
-
|
|
2256
|
+
Column19({ name: "name", type: "varchar", unique: true })
|
|
2224
2257
|
], Plan.prototype, "name", 2);
|
|
2225
2258
|
__decorateClass([
|
|
2226
|
-
|
|
2259
|
+
Column19({ name: "description", type: "varchar", nullable: true })
|
|
2227
2260
|
], Plan.prototype, "description", 2);
|
|
2228
2261
|
__decorateClass([
|
|
2229
|
-
|
|
2262
|
+
Column19({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2230
2263
|
], Plan.prototype, "price", 2);
|
|
2231
2264
|
__decorateClass([
|
|
2232
|
-
|
|
2265
|
+
Column19({ name: "billing_period", type: "varchar" })
|
|
2233
2266
|
], Plan.prototype, "billingPeriod", 2);
|
|
2234
2267
|
__decorateClass([
|
|
2235
|
-
|
|
2268
|
+
Column19({ name: "is_current", type: "boolean", default: false })
|
|
2236
2269
|
], Plan.prototype, "isCurrent", 2);
|
|
2237
2270
|
__decorateClass([
|
|
2238
2271
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2239
2272
|
JoinTable()
|
|
2240
2273
|
], Plan.prototype, "features", 2);
|
|
2241
2274
|
Plan = __decorateClass([
|
|
2242
|
-
|
|
2275
|
+
Entity18("plans")
|
|
2243
2276
|
], Plan);
|
|
2244
2277
|
export {
|
|
2245
2278
|
AUTHENTICATION_PATTERN,
|
|
@@ -2257,6 +2290,7 @@ export {
|
|
|
2257
2290
|
ClientCreateAccountDto,
|
|
2258
2291
|
ClientProfileQuestionDto,
|
|
2259
2292
|
CompanyProfile,
|
|
2293
|
+
CompanyRole,
|
|
2260
2294
|
CreateQuestionDto,
|
|
2261
2295
|
CreateRatingDto,
|
|
2262
2296
|
CreateSubAdminDto,
|