@experts_hub/shared 1.0.103 → 1.0.104
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/system-preference.entity.d.ts +8 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +123 -65
- package/dist/index.mjs +126 -62
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/systempreference/dto/index.d.ts +1 -0
- package/dist/modules/systempreference/dto/system-preference.dto.d.ts +8 -0
- package/dist/modules/systempreference/index.d.ts +2 -0
- package/dist/modules/systempreference/pattern/pattern.d.ts +4 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { FreelancerProfile } from "./freelancer-profile.entity";
|
|
|
6
6
|
import { CompanyProfile } from "./company-profile.entity";
|
|
7
7
|
import { Job } from "./job-entity";
|
|
8
8
|
import { BankDetail } from "./bank-details.entity";
|
|
9
|
+
import { SystemPreference } from "./system-preference.entity";
|
|
9
10
|
export declare enum AccountType {
|
|
10
11
|
ADMIN = "ADMIN",
|
|
11
12
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -55,4 +56,5 @@ export declare class User extends BaseEntity {
|
|
|
55
56
|
companyProfile: CompanyProfile;
|
|
56
57
|
jobs: Job[];
|
|
57
58
|
bankDetail: BankDetail[];
|
|
59
|
+
systemPreference: SystemPreference[];
|
|
58
60
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -385,6 +385,13 @@ declare class BankDetail extends BaseEntity {
|
|
|
385
385
|
accountScope: BankAccountScopeEnum;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
+
declare class SystemPreference extends BaseEntity {
|
|
389
|
+
userId: number;
|
|
390
|
+
user: User;
|
|
391
|
+
key: string;
|
|
392
|
+
value: boolean;
|
|
393
|
+
}
|
|
394
|
+
|
|
388
395
|
declare enum AccountType {
|
|
389
396
|
ADMIN = "ADMIN",
|
|
390
397
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -434,6 +441,7 @@ declare class User extends BaseEntity {
|
|
|
434
441
|
companyProfile: CompanyProfile;
|
|
435
442
|
jobs: Job[];
|
|
436
443
|
bankDetail: BankDetail[];
|
|
444
|
+
systemPreference: SystemPreference[];
|
|
437
445
|
}
|
|
438
446
|
|
|
439
447
|
declare enum KindOfHire {
|
|
@@ -683,6 +691,20 @@ interface IFetchPlanResponse {
|
|
|
683
691
|
data: any;
|
|
684
692
|
}
|
|
685
693
|
|
|
694
|
+
declare const SYSTEM_PREFERENCES_PATTERN: {
|
|
695
|
+
fetchSystemPreferences: string;
|
|
696
|
+
updateSystemPreferences: string;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
declare enum SystemPreferenceKey {
|
|
700
|
+
EMAIL_NOTIFICATION = "EMAIL_NOTIFICATION",
|
|
701
|
+
DARK_MODE = "DARK_MODE"
|
|
702
|
+
}
|
|
703
|
+
declare class SystemPreferenceDto {
|
|
704
|
+
value: boolean;
|
|
705
|
+
key: SystemPreferenceKey;
|
|
706
|
+
}
|
|
707
|
+
|
|
686
708
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
687
709
|
|
|
688
710
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -719,4 +741,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
719
741
|
isActive: boolean;
|
|
720
742
|
}
|
|
721
743
|
|
|
722
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, 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, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
744
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, 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, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum, Skill, Step, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -385,6 +385,13 @@ declare class BankDetail extends BaseEntity {
|
|
|
385
385
|
accountScope: BankAccountScopeEnum;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
+
declare class SystemPreference extends BaseEntity {
|
|
389
|
+
userId: number;
|
|
390
|
+
user: User;
|
|
391
|
+
key: string;
|
|
392
|
+
value: boolean;
|
|
393
|
+
}
|
|
394
|
+
|
|
388
395
|
declare enum AccountType {
|
|
389
396
|
ADMIN = "ADMIN",
|
|
390
397
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -434,6 +441,7 @@ declare class User extends BaseEntity {
|
|
|
434
441
|
companyProfile: CompanyProfile;
|
|
435
442
|
jobs: Job[];
|
|
436
443
|
bankDetail: BankDetail[];
|
|
444
|
+
systemPreference: SystemPreference[];
|
|
437
445
|
}
|
|
438
446
|
|
|
439
447
|
declare enum KindOfHire {
|
|
@@ -683,6 +691,20 @@ interface IFetchPlanResponse {
|
|
|
683
691
|
data: any;
|
|
684
692
|
}
|
|
685
693
|
|
|
694
|
+
declare const SYSTEM_PREFERENCES_PATTERN: {
|
|
695
|
+
fetchSystemPreferences: string;
|
|
696
|
+
updateSystemPreferences: string;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
declare enum SystemPreferenceKey {
|
|
700
|
+
EMAIL_NOTIFICATION = "EMAIL_NOTIFICATION",
|
|
701
|
+
DARK_MODE = "DARK_MODE"
|
|
702
|
+
}
|
|
703
|
+
declare class SystemPreferenceDto {
|
|
704
|
+
value: boolean;
|
|
705
|
+
key: SystemPreferenceKey;
|
|
706
|
+
}
|
|
707
|
+
|
|
686
708
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
687
709
|
|
|
688
710
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -719,4 +741,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
719
741
|
isActive: boolean;
|
|
720
742
|
}
|
|
721
743
|
|
|
722
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, 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, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
744
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, 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, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum, Skill, Step, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -92,9 +92,12 @@ __export(index_exports, {
|
|
|
92
92
|
RefreshToken: () => RefreshToken,
|
|
93
93
|
ResumeParserLog: () => ResumeParserLog,
|
|
94
94
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
95
|
+
SYSTEM_PREFERENCES_PATTERN: () => SYSTEM_PREFERENCES_PATTERN,
|
|
95
96
|
ScopeEnum: () => ScopeEnum,
|
|
96
97
|
Skill: () => Skill,
|
|
97
98
|
Step: () => Step,
|
|
99
|
+
SystemPreferenceDto: () => SystemPreferenceDto,
|
|
100
|
+
SystemPreferenceKey: () => SystemPreferenceKey,
|
|
98
101
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
99
102
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
100
103
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
@@ -478,7 +481,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
478
481
|
var import_class_validator15 = require("class-validator");
|
|
479
482
|
|
|
480
483
|
// src/entities/company-profile.entity.ts
|
|
481
|
-
var
|
|
484
|
+
var import_typeorm12 = require("typeorm");
|
|
482
485
|
|
|
483
486
|
// src/entities/base.entity.ts
|
|
484
487
|
var import_typeorm = require("typeorm");
|
|
@@ -518,7 +521,7 @@ __decorateClass([
|
|
|
518
521
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
519
522
|
|
|
520
523
|
// src/entities/user.entity.ts
|
|
521
|
-
var
|
|
524
|
+
var import_typeorm11 = require("typeorm");
|
|
522
525
|
|
|
523
526
|
// src/entities/refresh-token.entity.ts
|
|
524
527
|
var import_typeorm2 = require("typeorm");
|
|
@@ -980,6 +983,29 @@ BankDetail = __decorateClass([
|
|
|
980
983
|
(0, import_typeorm9.Entity)("bank_details")
|
|
981
984
|
], BankDetail);
|
|
982
985
|
|
|
986
|
+
// src/entities/system-preference.entity.ts
|
|
987
|
+
var import_typeorm10 = require("typeorm");
|
|
988
|
+
var SystemPreference = class extends BaseEntity {
|
|
989
|
+
};
|
|
990
|
+
// individual index to find system preference by user
|
|
991
|
+
__decorateClass([
|
|
992
|
+
(0, import_typeorm10.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
993
|
+
(0, import_typeorm10.Index)()
|
|
994
|
+
], SystemPreference.prototype, "userId", 2);
|
|
995
|
+
__decorateClass([
|
|
996
|
+
(0, import_typeorm10.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
997
|
+
(0, import_typeorm10.JoinColumn)({ name: "user_id" })
|
|
998
|
+
], SystemPreference.prototype, "user", 2);
|
|
999
|
+
__decorateClass([
|
|
1000
|
+
(0, import_typeorm10.Column)({ name: "key", type: "varchar", unique: true, nullable: false })
|
|
1001
|
+
], SystemPreference.prototype, "key", 2);
|
|
1002
|
+
__decorateClass([
|
|
1003
|
+
(0, import_typeorm10.Column)({ name: "value", type: "boolean", default: false })
|
|
1004
|
+
], SystemPreference.prototype, "value", 2);
|
|
1005
|
+
SystemPreference = __decorateClass([
|
|
1006
|
+
(0, import_typeorm10.Entity)("system_preferences")
|
|
1007
|
+
], SystemPreference);
|
|
1008
|
+
|
|
983
1009
|
// src/entities/user.entity.ts
|
|
984
1010
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
985
1011
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1004,40 +1030,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1004
1030
|
var User = class extends BaseEntity {
|
|
1005
1031
|
};
|
|
1006
1032
|
__decorateClass([
|
|
1007
|
-
(0,
|
|
1033
|
+
(0, import_typeorm11.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
1008
1034
|
], User.prototype, "uniqueId", 2);
|
|
1009
1035
|
__decorateClass([
|
|
1010
|
-
(0,
|
|
1036
|
+
(0, import_typeorm11.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1011
1037
|
], User.prototype, "username", 2);
|
|
1012
1038
|
__decorateClass([
|
|
1013
|
-
(0,
|
|
1039
|
+
(0, import_typeorm11.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1014
1040
|
], User.prototype, "firstName", 2);
|
|
1015
1041
|
__decorateClass([
|
|
1016
|
-
(0,
|
|
1042
|
+
(0, import_typeorm11.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1017
1043
|
], User.prototype, "lastName", 2);
|
|
1018
1044
|
__decorateClass([
|
|
1019
|
-
(0,
|
|
1045
|
+
(0, import_typeorm11.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
1020
1046
|
], User.prototype, "dateOfBirth", 2);
|
|
1021
1047
|
__decorateClass([
|
|
1022
|
-
(0,
|
|
1048
|
+
(0, import_typeorm11.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1023
1049
|
], User.prototype, "gender", 2);
|
|
1024
1050
|
__decorateClass([
|
|
1025
|
-
(0,
|
|
1051
|
+
(0, import_typeorm11.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1026
1052
|
], User.prototype, "profilePictureUrl", 2);
|
|
1027
1053
|
__decorateClass([
|
|
1028
|
-
(0,
|
|
1054
|
+
(0, import_typeorm11.Column)({ name: "email", type: "varchar", unique: true })
|
|
1029
1055
|
], User.prototype, "email", 2);
|
|
1030
1056
|
__decorateClass([
|
|
1031
|
-
(0,
|
|
1057
|
+
(0, import_typeorm11.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1032
1058
|
], User.prototype, "mobileCode", 2);
|
|
1033
1059
|
__decorateClass([
|
|
1034
|
-
(0,
|
|
1060
|
+
(0, import_typeorm11.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1035
1061
|
], User.prototype, "mobile", 2);
|
|
1036
1062
|
__decorateClass([
|
|
1037
|
-
(0,
|
|
1063
|
+
(0, import_typeorm11.Column)({ name: "password", type: "varchar" })
|
|
1038
1064
|
], User.prototype, "password", 2);
|
|
1039
1065
|
__decorateClass([
|
|
1040
|
-
(0,
|
|
1066
|
+
(0, import_typeorm11.Column)({
|
|
1041
1067
|
name: "account_type",
|
|
1042
1068
|
type: "enum",
|
|
1043
1069
|
enum: AccountType,
|
|
@@ -1045,7 +1071,7 @@ __decorateClass([
|
|
|
1045
1071
|
})
|
|
1046
1072
|
], User.prototype, "accountType", 2);
|
|
1047
1073
|
__decorateClass([
|
|
1048
|
-
(0,
|
|
1074
|
+
(0, import_typeorm11.Column)({
|
|
1049
1075
|
name: "account_status",
|
|
1050
1076
|
type: "enum",
|
|
1051
1077
|
enum: AccountStatus,
|
|
@@ -1053,32 +1079,32 @@ __decorateClass([
|
|
|
1053
1079
|
})
|
|
1054
1080
|
], User.prototype, "accountStatus", 2);
|
|
1055
1081
|
__decorateClass([
|
|
1056
|
-
(0,
|
|
1082
|
+
(0, import_typeorm11.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
1057
1083
|
], User.prototype, "isEmailVerified", 2);
|
|
1058
1084
|
__decorateClass([
|
|
1059
|
-
(0,
|
|
1085
|
+
(0, import_typeorm11.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1060
1086
|
], User.prototype, "isMobileVerified", 2);
|
|
1061
1087
|
__decorateClass([
|
|
1062
|
-
(0,
|
|
1088
|
+
(0, import_typeorm11.Column)({
|
|
1063
1089
|
name: "last_login_at",
|
|
1064
1090
|
type: "timestamp with time zone",
|
|
1065
1091
|
nullable: true
|
|
1066
1092
|
})
|
|
1067
1093
|
], User.prototype, "lastLoginAt", 2);
|
|
1068
1094
|
__decorateClass([
|
|
1069
|
-
(0,
|
|
1095
|
+
(0, import_typeorm11.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1070
1096
|
], User.prototype, "lastLoginIp", 2);
|
|
1071
1097
|
__decorateClass([
|
|
1072
|
-
(0,
|
|
1098
|
+
(0, import_typeorm11.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
1073
1099
|
], User.prototype, "resetToken", 2);
|
|
1074
1100
|
__decorateClass([
|
|
1075
|
-
(0,
|
|
1101
|
+
(0, import_typeorm11.Column)({ name: "reset_token_expire_at", type: "timestamp with time zone", nullable: true })
|
|
1076
1102
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
1077
1103
|
__decorateClass([
|
|
1078
|
-
(0,
|
|
1104
|
+
(0, import_typeorm11.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
1079
1105
|
], User.prototype, "refreshTokens", 2);
|
|
1080
1106
|
__decorateClass([
|
|
1081
|
-
(0,
|
|
1107
|
+
(0, import_typeorm11.Column)({
|
|
1082
1108
|
name: "provider",
|
|
1083
1109
|
type: "enum",
|
|
1084
1110
|
enum: Provider,
|
|
@@ -1087,40 +1113,43 @@ __decorateClass([
|
|
|
1087
1113
|
})
|
|
1088
1114
|
], User.prototype, "provider", 2);
|
|
1089
1115
|
__decorateClass([
|
|
1090
|
-
(0,
|
|
1116
|
+
(0, import_typeorm11.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
1091
1117
|
], User.prototype, "providerToken", 2);
|
|
1092
1118
|
__decorateClass([
|
|
1093
|
-
(0,
|
|
1119
|
+
(0, import_typeorm11.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1094
1120
|
], User.prototype, "linkedInId", 2);
|
|
1095
1121
|
__decorateClass([
|
|
1096
|
-
(0,
|
|
1122
|
+
(0, import_typeorm11.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
1097
1123
|
], User.prototype, "googleId", 2);
|
|
1098
1124
|
__decorateClass([
|
|
1099
|
-
(0,
|
|
1125
|
+
(0, import_typeorm11.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1100
1126
|
], User.prototype, "gitLabsId", 2);
|
|
1101
1127
|
__decorateClass([
|
|
1102
|
-
(0,
|
|
1128
|
+
(0, import_typeorm11.OneToMany)(() => Otp, (otp) => otp.user)
|
|
1103
1129
|
], User.prototype, "otps", 2);
|
|
1104
1130
|
__decorateClass([
|
|
1105
|
-
(0,
|
|
1131
|
+
(0, import_typeorm11.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
1106
1132
|
], User.prototype, "resumeParserLogs", 2);
|
|
1107
1133
|
__decorateClass([
|
|
1108
|
-
(0,
|
|
1134
|
+
(0, import_typeorm11.OneToOne)(
|
|
1109
1135
|
() => FreelancerProfile,
|
|
1110
1136
|
(freelancerProfile) => freelancerProfile.user
|
|
1111
1137
|
)
|
|
1112
1138
|
], User.prototype, "freelancerProfile", 2);
|
|
1113
1139
|
__decorateClass([
|
|
1114
|
-
(0,
|
|
1140
|
+
(0, import_typeorm11.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
1115
1141
|
], User.prototype, "companyProfile", 2);
|
|
1116
1142
|
__decorateClass([
|
|
1117
|
-
(0,
|
|
1143
|
+
(0, import_typeorm11.OneToMany)(() => Job, (job) => job.user)
|
|
1118
1144
|
], User.prototype, "jobs", 2);
|
|
1119
1145
|
__decorateClass([
|
|
1120
|
-
(0,
|
|
1146
|
+
(0, import_typeorm11.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1121
1147
|
], User.prototype, "bankDetail", 2);
|
|
1148
|
+
__decorateClass([
|
|
1149
|
+
(0, import_typeorm11.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
1150
|
+
], User.prototype, "systemPreference", 2);
|
|
1122
1151
|
User = __decorateClass([
|
|
1123
|
-
(0,
|
|
1152
|
+
(0, import_typeorm11.Entity)("users")
|
|
1124
1153
|
], User);
|
|
1125
1154
|
|
|
1126
1155
|
// src/entities/company-profile.entity.ts
|
|
@@ -1147,42 +1176,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1147
1176
|
};
|
|
1148
1177
|
// individual index to find company profile by user
|
|
1149
1178
|
__decorateClass([
|
|
1150
|
-
(0,
|
|
1151
|
-
(0,
|
|
1179
|
+
(0, import_typeorm12.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1180
|
+
(0, import_typeorm12.Index)()
|
|
1152
1181
|
], CompanyProfile.prototype, "userId", 2);
|
|
1153
1182
|
__decorateClass([
|
|
1154
|
-
(0,
|
|
1155
|
-
(0,
|
|
1183
|
+
(0, import_typeorm12.ManyToOne)(() => User, (user) => user.otps),
|
|
1184
|
+
(0, import_typeorm12.JoinColumn)({ name: "user_id" })
|
|
1156
1185
|
], CompanyProfile.prototype, "user", 2);
|
|
1157
1186
|
__decorateClass([
|
|
1158
|
-
(0,
|
|
1187
|
+
(0, import_typeorm12.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
1159
1188
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1160
1189
|
__decorateClass([
|
|
1161
|
-
(0,
|
|
1190
|
+
(0, import_typeorm12.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
1162
1191
|
], CompanyProfile.prototype, "bio", 2);
|
|
1163
1192
|
__decorateClass([
|
|
1164
|
-
(0,
|
|
1193
|
+
(0, import_typeorm12.Column)({ name: "website", type: "varchar", nullable: true })
|
|
1165
1194
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1166
1195
|
__decorateClass([
|
|
1167
|
-
(0,
|
|
1196
|
+
(0, import_typeorm12.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
1168
1197
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1169
1198
|
__decorateClass([
|
|
1170
|
-
(0,
|
|
1199
|
+
(0, import_typeorm12.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1171
1200
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1172
1201
|
__decorateClass([
|
|
1173
|
-
(0,
|
|
1202
|
+
(0, import_typeorm12.Column)({ name: "company_address", type: "varchar", nullable: true })
|
|
1174
1203
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1175
1204
|
__decorateClass([
|
|
1176
|
-
(0,
|
|
1205
|
+
(0, import_typeorm12.Column)({ name: "phone_number", type: "varchar", nullable: true })
|
|
1177
1206
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1178
1207
|
__decorateClass([
|
|
1179
|
-
(0,
|
|
1208
|
+
(0, import_typeorm12.Column)({ name: "skills", type: "text", nullable: true })
|
|
1180
1209
|
], CompanyProfile.prototype, "skills", 2);
|
|
1181
1210
|
__decorateClass([
|
|
1182
|
-
(0,
|
|
1211
|
+
(0, import_typeorm12.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1183
1212
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1184
1213
|
__decorateClass([
|
|
1185
|
-
(0,
|
|
1214
|
+
(0, import_typeorm12.Column)({
|
|
1186
1215
|
name: "kind_of_hiring",
|
|
1187
1216
|
type: "enum",
|
|
1188
1217
|
enum: KindOfHire,
|
|
@@ -1190,7 +1219,7 @@ __decorateClass([
|
|
|
1190
1219
|
})
|
|
1191
1220
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1192
1221
|
__decorateClass([
|
|
1193
|
-
(0,
|
|
1222
|
+
(0, import_typeorm12.Column)({
|
|
1194
1223
|
name: "mode_of_hire",
|
|
1195
1224
|
type: "enum",
|
|
1196
1225
|
enum: ModeOfHire,
|
|
@@ -1198,7 +1227,7 @@ __decorateClass([
|
|
|
1198
1227
|
})
|
|
1199
1228
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1200
1229
|
__decorateClass([
|
|
1201
|
-
(0,
|
|
1230
|
+
(0, import_typeorm12.Column)({
|
|
1202
1231
|
name: "found_us_on",
|
|
1203
1232
|
type: "enum",
|
|
1204
1233
|
enum: FromUsOn,
|
|
@@ -1206,7 +1235,7 @@ __decorateClass([
|
|
|
1206
1235
|
})
|
|
1207
1236
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1208
1237
|
CompanyProfile = __decorateClass([
|
|
1209
|
-
(0,
|
|
1238
|
+
(0, import_typeorm12.Entity)("company_profiles")
|
|
1210
1239
|
], CompanyProfile);
|
|
1211
1240
|
|
|
1212
1241
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1541,6 +1570,32 @@ var PLAN_PATTERN = {
|
|
|
1541
1570
|
fetchPlans: "fetch.plans"
|
|
1542
1571
|
};
|
|
1543
1572
|
|
|
1573
|
+
// src/modules/systempreference/pattern/pattern.ts
|
|
1574
|
+
var SYSTEM_PREFERENCES_PATTERN = {
|
|
1575
|
+
fetchSystemPreferences: "fetch.system.preferences",
|
|
1576
|
+
updateSystemPreferences: "update.system.preferences"
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
// src/modules/systempreference/dto/system-preference.dto.ts
|
|
1580
|
+
var import_class_validator25 = require("class-validator");
|
|
1581
|
+
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1582
|
+
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1583
|
+
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
1584
|
+
return SystemPreferenceKey2;
|
|
1585
|
+
})(SystemPreferenceKey || {});
|
|
1586
|
+
var SystemPreferenceDto = class {
|
|
1587
|
+
};
|
|
1588
|
+
__decorateClass([
|
|
1589
|
+
(0, import_class_validator25.IsBoolean)()
|
|
1590
|
+
], SystemPreferenceDto.prototype, "value", 2);
|
|
1591
|
+
__decorateClass([
|
|
1592
|
+
(0, import_class_validator25.IsEnum)(SystemPreferenceKey, {
|
|
1593
|
+
message: `key must be one of: ${Object.values(
|
|
1594
|
+
SystemPreferenceKey
|
|
1595
|
+
).join(", ")}`
|
|
1596
|
+
})
|
|
1597
|
+
], SystemPreferenceDto.prototype, "key", 2);
|
|
1598
|
+
|
|
1544
1599
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1545
1600
|
var import_dotenv = require("dotenv");
|
|
1546
1601
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -1758,7 +1813,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
1758
1813
|
};
|
|
1759
1814
|
|
|
1760
1815
|
// src/entities/question.entity.ts
|
|
1761
|
-
var
|
|
1816
|
+
var import_typeorm13 = require("typeorm");
|
|
1762
1817
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1763
1818
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1764
1819
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1767,16 +1822,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1767
1822
|
var Question = class extends BaseEntity {
|
|
1768
1823
|
};
|
|
1769
1824
|
__decorateClass([
|
|
1770
|
-
(0,
|
|
1825
|
+
(0, import_typeorm13.Column)({ name: "question", type: "varchar" })
|
|
1771
1826
|
], Question.prototype, "question", 2);
|
|
1772
1827
|
__decorateClass([
|
|
1773
|
-
(0,
|
|
1828
|
+
(0, import_typeorm13.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
1774
1829
|
], Question.prototype, "hint", 2);
|
|
1775
1830
|
__decorateClass([
|
|
1776
|
-
(0,
|
|
1831
|
+
(0, import_typeorm13.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1777
1832
|
], Question.prototype, "slug", 2);
|
|
1778
1833
|
__decorateClass([
|
|
1779
|
-
(0,
|
|
1834
|
+
(0, import_typeorm13.Column)({
|
|
1780
1835
|
name: "question_for",
|
|
1781
1836
|
type: "enum",
|
|
1782
1837
|
enum: QuestionFor,
|
|
@@ -1784,33 +1839,33 @@ __decorateClass([
|
|
|
1784
1839
|
})
|
|
1785
1840
|
], Question.prototype, "questionFor", 2);
|
|
1786
1841
|
__decorateClass([
|
|
1787
|
-
(0,
|
|
1842
|
+
(0, import_typeorm13.Column)({ name: "type", type: "varchar", nullable: true })
|
|
1788
1843
|
], Question.prototype, "type", 2);
|
|
1789
1844
|
__decorateClass([
|
|
1790
|
-
(0,
|
|
1845
|
+
(0, import_typeorm13.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
1791
1846
|
], Question.prototype, "options", 2);
|
|
1792
1847
|
__decorateClass([
|
|
1793
|
-
(0,
|
|
1848
|
+
(0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: false })
|
|
1794
1849
|
], Question.prototype, "isActive", 2);
|
|
1795
1850
|
Question = __decorateClass([
|
|
1796
|
-
(0,
|
|
1851
|
+
(0, import_typeorm13.Entity)("questions")
|
|
1797
1852
|
], Question);
|
|
1798
1853
|
|
|
1799
1854
|
// src/entities/job-role.entity.ts
|
|
1800
|
-
var
|
|
1855
|
+
var import_typeorm14 = require("typeorm");
|
|
1801
1856
|
var JobRoles = class extends BaseEntity {
|
|
1802
1857
|
};
|
|
1803
1858
|
__decorateClass([
|
|
1804
|
-
(0,
|
|
1859
|
+
(0, import_typeorm14.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1805
1860
|
], JobRoles.prototype, "slug", 2);
|
|
1806
1861
|
__decorateClass([
|
|
1807
|
-
(0,
|
|
1862
|
+
(0, import_typeorm14.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1808
1863
|
], JobRoles.prototype, "name", 2);
|
|
1809
1864
|
__decorateClass([
|
|
1810
|
-
(0,
|
|
1865
|
+
(0, import_typeorm14.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1811
1866
|
], JobRoles.prototype, "isActive", 2);
|
|
1812
1867
|
JobRoles = __decorateClass([
|
|
1813
|
-
(0,
|
|
1868
|
+
(0, import_typeorm14.Entity)("job_roles")
|
|
1814
1869
|
], JobRoles);
|
|
1815
1870
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1816
1871
|
0 && (module.exports = {
|
|
@@ -1879,9 +1934,12 @@ JobRoles = __decorateClass([
|
|
|
1879
1934
|
RefreshToken,
|
|
1880
1935
|
ResumeParserLog,
|
|
1881
1936
|
SUBADMIN_PATTERN,
|
|
1937
|
+
SYSTEM_PREFERENCES_PATTERN,
|
|
1882
1938
|
ScopeEnum,
|
|
1883
1939
|
Skill,
|
|
1884
1940
|
Step,
|
|
1941
|
+
SystemPreferenceDto,
|
|
1942
|
+
SystemPreferenceKey,
|
|
1885
1943
|
TypeOfEmploymentEnum,
|
|
1886
1944
|
UpdateCompanyProfileDto,
|
|
1887
1945
|
UpdateSubAdminAccountStatusDto,
|
package/dist/index.mjs
CHANGED
|
@@ -428,11 +428,11 @@ import {
|
|
|
428
428
|
|
|
429
429
|
// src/entities/company-profile.entity.ts
|
|
430
430
|
import {
|
|
431
|
-
Entity as
|
|
432
|
-
Column as
|
|
433
|
-
ManyToOne as
|
|
434
|
-
JoinColumn as
|
|
435
|
-
Index as
|
|
431
|
+
Entity as Entity11,
|
|
432
|
+
Column as Column12,
|
|
433
|
+
ManyToOne as ManyToOne9,
|
|
434
|
+
JoinColumn as JoinColumn9,
|
|
435
|
+
Index as Index7
|
|
436
436
|
} from "typeorm";
|
|
437
437
|
|
|
438
438
|
// src/entities/base.entity.ts
|
|
@@ -480,7 +480,7 @@ __decorateClass([
|
|
|
480
480
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
481
481
|
|
|
482
482
|
// src/entities/user.entity.ts
|
|
483
|
-
import { Entity as
|
|
483
|
+
import { Entity as Entity10, Column as Column11, OneToMany as OneToMany5, OneToOne } from "typeorm";
|
|
484
484
|
|
|
485
485
|
// src/entities/refresh-token.entity.ts
|
|
486
486
|
import {
|
|
@@ -984,6 +984,35 @@ BankDetail = __decorateClass([
|
|
|
984
984
|
Entity8("bank_details")
|
|
985
985
|
], BankDetail);
|
|
986
986
|
|
|
987
|
+
// src/entities/system-preference.entity.ts
|
|
988
|
+
import {
|
|
989
|
+
Entity as Entity9,
|
|
990
|
+
Column as Column10,
|
|
991
|
+
Index as Index6,
|
|
992
|
+
ManyToOne as ManyToOne8,
|
|
993
|
+
JoinColumn as JoinColumn8
|
|
994
|
+
} from "typeorm";
|
|
995
|
+
var SystemPreference = class extends BaseEntity {
|
|
996
|
+
};
|
|
997
|
+
// individual index to find system preference by user
|
|
998
|
+
__decorateClass([
|
|
999
|
+
Column10({ name: "user_id", type: "integer", nullable: true }),
|
|
1000
|
+
Index6()
|
|
1001
|
+
], SystemPreference.prototype, "userId", 2);
|
|
1002
|
+
__decorateClass([
|
|
1003
|
+
ManyToOne8(() => User, (user) => user.systemPreference),
|
|
1004
|
+
JoinColumn8({ name: "user_id" })
|
|
1005
|
+
], SystemPreference.prototype, "user", 2);
|
|
1006
|
+
__decorateClass([
|
|
1007
|
+
Column10({ name: "key", type: "varchar", unique: true, nullable: false })
|
|
1008
|
+
], SystemPreference.prototype, "key", 2);
|
|
1009
|
+
__decorateClass([
|
|
1010
|
+
Column10({ name: "value", type: "boolean", default: false })
|
|
1011
|
+
], SystemPreference.prototype, "value", 2);
|
|
1012
|
+
SystemPreference = __decorateClass([
|
|
1013
|
+
Entity9("system_preferences")
|
|
1014
|
+
], SystemPreference);
|
|
1015
|
+
|
|
987
1016
|
// src/entities/user.entity.ts
|
|
988
1017
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
989
1018
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1008,40 +1037,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1008
1037
|
var User = class extends BaseEntity {
|
|
1009
1038
|
};
|
|
1010
1039
|
__decorateClass([
|
|
1011
|
-
|
|
1040
|
+
Column11({ name: "unique_id", type: "varchar", unique: true })
|
|
1012
1041
|
], User.prototype, "uniqueId", 2);
|
|
1013
1042
|
__decorateClass([
|
|
1014
|
-
|
|
1043
|
+
Column11({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1015
1044
|
], User.prototype, "username", 2);
|
|
1016
1045
|
__decorateClass([
|
|
1017
|
-
|
|
1046
|
+
Column11({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1018
1047
|
], User.prototype, "firstName", 2);
|
|
1019
1048
|
__decorateClass([
|
|
1020
|
-
|
|
1049
|
+
Column11({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1021
1050
|
], User.prototype, "lastName", 2);
|
|
1022
1051
|
__decorateClass([
|
|
1023
|
-
|
|
1052
|
+
Column11({ name: "date_of_birth", type: "date", nullable: true })
|
|
1024
1053
|
], User.prototype, "dateOfBirth", 2);
|
|
1025
1054
|
__decorateClass([
|
|
1026
|
-
|
|
1055
|
+
Column11({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1027
1056
|
], User.prototype, "gender", 2);
|
|
1028
1057
|
__decorateClass([
|
|
1029
|
-
|
|
1058
|
+
Column11({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1030
1059
|
], User.prototype, "profilePictureUrl", 2);
|
|
1031
1060
|
__decorateClass([
|
|
1032
|
-
|
|
1061
|
+
Column11({ name: "email", type: "varchar", unique: true })
|
|
1033
1062
|
], User.prototype, "email", 2);
|
|
1034
1063
|
__decorateClass([
|
|
1035
|
-
|
|
1064
|
+
Column11({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1036
1065
|
], User.prototype, "mobileCode", 2);
|
|
1037
1066
|
__decorateClass([
|
|
1038
|
-
|
|
1067
|
+
Column11({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1039
1068
|
], User.prototype, "mobile", 2);
|
|
1040
1069
|
__decorateClass([
|
|
1041
|
-
|
|
1070
|
+
Column11({ name: "password", type: "varchar" })
|
|
1042
1071
|
], User.prototype, "password", 2);
|
|
1043
1072
|
__decorateClass([
|
|
1044
|
-
|
|
1073
|
+
Column11({
|
|
1045
1074
|
name: "account_type",
|
|
1046
1075
|
type: "enum",
|
|
1047
1076
|
enum: AccountType,
|
|
@@ -1049,7 +1078,7 @@ __decorateClass([
|
|
|
1049
1078
|
})
|
|
1050
1079
|
], User.prototype, "accountType", 2);
|
|
1051
1080
|
__decorateClass([
|
|
1052
|
-
|
|
1081
|
+
Column11({
|
|
1053
1082
|
name: "account_status",
|
|
1054
1083
|
type: "enum",
|
|
1055
1084
|
enum: AccountStatus,
|
|
@@ -1057,32 +1086,32 @@ __decorateClass([
|
|
|
1057
1086
|
})
|
|
1058
1087
|
], User.prototype, "accountStatus", 2);
|
|
1059
1088
|
__decorateClass([
|
|
1060
|
-
|
|
1089
|
+
Column11({ name: "is_email_verified", type: "boolean", default: false })
|
|
1061
1090
|
], User.prototype, "isEmailVerified", 2);
|
|
1062
1091
|
__decorateClass([
|
|
1063
|
-
|
|
1092
|
+
Column11({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1064
1093
|
], User.prototype, "isMobileVerified", 2);
|
|
1065
1094
|
__decorateClass([
|
|
1066
|
-
|
|
1095
|
+
Column11({
|
|
1067
1096
|
name: "last_login_at",
|
|
1068
1097
|
type: "timestamp with time zone",
|
|
1069
1098
|
nullable: true
|
|
1070
1099
|
})
|
|
1071
1100
|
], User.prototype, "lastLoginAt", 2);
|
|
1072
1101
|
__decorateClass([
|
|
1073
|
-
|
|
1102
|
+
Column11({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1074
1103
|
], User.prototype, "lastLoginIp", 2);
|
|
1075
1104
|
__decorateClass([
|
|
1076
|
-
|
|
1105
|
+
Column11({ name: "reset_token", type: "varchar", nullable: true })
|
|
1077
1106
|
], User.prototype, "resetToken", 2);
|
|
1078
1107
|
__decorateClass([
|
|
1079
|
-
|
|
1108
|
+
Column11({ name: "reset_token_expire_at", type: "timestamp with time zone", nullable: true })
|
|
1080
1109
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
1081
1110
|
__decorateClass([
|
|
1082
1111
|
OneToMany5(() => RefreshToken, (token) => token.user)
|
|
1083
1112
|
], User.prototype, "refreshTokens", 2);
|
|
1084
1113
|
__decorateClass([
|
|
1085
|
-
|
|
1114
|
+
Column11({
|
|
1086
1115
|
name: "provider",
|
|
1087
1116
|
type: "enum",
|
|
1088
1117
|
enum: Provider,
|
|
@@ -1091,16 +1120,16 @@ __decorateClass([
|
|
|
1091
1120
|
})
|
|
1092
1121
|
], User.prototype, "provider", 2);
|
|
1093
1122
|
__decorateClass([
|
|
1094
|
-
|
|
1123
|
+
Column11({ name: "provider_token", type: "varchar", nullable: true })
|
|
1095
1124
|
], User.prototype, "providerToken", 2);
|
|
1096
1125
|
__decorateClass([
|
|
1097
|
-
|
|
1126
|
+
Column11({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1098
1127
|
], User.prototype, "linkedInId", 2);
|
|
1099
1128
|
__decorateClass([
|
|
1100
|
-
|
|
1129
|
+
Column11({ name: "google_id", type: "varchar", nullable: true })
|
|
1101
1130
|
], User.prototype, "googleId", 2);
|
|
1102
1131
|
__decorateClass([
|
|
1103
|
-
|
|
1132
|
+
Column11({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1104
1133
|
], User.prototype, "gitLabsId", 2);
|
|
1105
1134
|
__decorateClass([
|
|
1106
1135
|
OneToMany5(() => Otp, (otp) => otp.user)
|
|
@@ -1123,8 +1152,11 @@ __decorateClass([
|
|
|
1123
1152
|
__decorateClass([
|
|
1124
1153
|
OneToMany5(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1125
1154
|
], User.prototype, "bankDetail", 2);
|
|
1155
|
+
__decorateClass([
|
|
1156
|
+
OneToMany5(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
1157
|
+
], User.prototype, "systemPreference", 2);
|
|
1126
1158
|
User = __decorateClass([
|
|
1127
|
-
|
|
1159
|
+
Entity10("users")
|
|
1128
1160
|
], User);
|
|
1129
1161
|
|
|
1130
1162
|
// src/entities/company-profile.entity.ts
|
|
@@ -1151,42 +1183,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1151
1183
|
};
|
|
1152
1184
|
// individual index to find company profile by user
|
|
1153
1185
|
__decorateClass([
|
|
1154
|
-
|
|
1155
|
-
|
|
1186
|
+
Column12({ name: "user_id", type: "integer", nullable: true }),
|
|
1187
|
+
Index7()
|
|
1156
1188
|
], CompanyProfile.prototype, "userId", 2);
|
|
1157
1189
|
__decorateClass([
|
|
1158
|
-
|
|
1159
|
-
|
|
1190
|
+
ManyToOne9(() => User, (user) => user.otps),
|
|
1191
|
+
JoinColumn9({ name: "user_id" })
|
|
1160
1192
|
], CompanyProfile.prototype, "user", 2);
|
|
1161
1193
|
__decorateClass([
|
|
1162
|
-
|
|
1194
|
+
Column12({ name: "company_name", type: "varchar", nullable: true })
|
|
1163
1195
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1164
1196
|
__decorateClass([
|
|
1165
|
-
|
|
1197
|
+
Column12({ name: "bio", type: "varchar", nullable: true })
|
|
1166
1198
|
], CompanyProfile.prototype, "bio", 2);
|
|
1167
1199
|
__decorateClass([
|
|
1168
|
-
|
|
1200
|
+
Column12({ name: "website", type: "varchar", nullable: true })
|
|
1169
1201
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1170
1202
|
__decorateClass([
|
|
1171
|
-
|
|
1203
|
+
Column12({ name: "about_company", type: "varchar", nullable: true })
|
|
1172
1204
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1173
1205
|
__decorateClass([
|
|
1174
|
-
|
|
1206
|
+
Column12({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1175
1207
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1176
1208
|
__decorateClass([
|
|
1177
|
-
|
|
1209
|
+
Column12({ name: "company_address", type: "varchar", nullable: true })
|
|
1178
1210
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1179
1211
|
__decorateClass([
|
|
1180
|
-
|
|
1212
|
+
Column12({ name: "phone_number", type: "varchar", nullable: true })
|
|
1181
1213
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1182
1214
|
__decorateClass([
|
|
1183
|
-
|
|
1215
|
+
Column12({ name: "skills", type: "text", nullable: true })
|
|
1184
1216
|
], CompanyProfile.prototype, "skills", 2);
|
|
1185
1217
|
__decorateClass([
|
|
1186
|
-
|
|
1218
|
+
Column12({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1187
1219
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1188
1220
|
__decorateClass([
|
|
1189
|
-
|
|
1221
|
+
Column12({
|
|
1190
1222
|
name: "kind_of_hiring",
|
|
1191
1223
|
type: "enum",
|
|
1192
1224
|
enum: KindOfHire,
|
|
@@ -1194,7 +1226,7 @@ __decorateClass([
|
|
|
1194
1226
|
})
|
|
1195
1227
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1196
1228
|
__decorateClass([
|
|
1197
|
-
|
|
1229
|
+
Column12({
|
|
1198
1230
|
name: "mode_of_hire",
|
|
1199
1231
|
type: "enum",
|
|
1200
1232
|
enum: ModeOfHire,
|
|
@@ -1202,7 +1234,7 @@ __decorateClass([
|
|
|
1202
1234
|
})
|
|
1203
1235
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1204
1236
|
__decorateClass([
|
|
1205
|
-
|
|
1237
|
+
Column12({
|
|
1206
1238
|
name: "found_us_on",
|
|
1207
1239
|
type: "enum",
|
|
1208
1240
|
enum: FromUsOn,
|
|
@@ -1210,7 +1242,7 @@ __decorateClass([
|
|
|
1210
1242
|
})
|
|
1211
1243
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1212
1244
|
CompanyProfile = __decorateClass([
|
|
1213
|
-
|
|
1245
|
+
Entity11("company_profiles")
|
|
1214
1246
|
], CompanyProfile);
|
|
1215
1247
|
|
|
1216
1248
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1575,6 +1607,35 @@ var PLAN_PATTERN = {
|
|
|
1575
1607
|
fetchPlans: "fetch.plans"
|
|
1576
1608
|
};
|
|
1577
1609
|
|
|
1610
|
+
// src/modules/systempreference/pattern/pattern.ts
|
|
1611
|
+
var SYSTEM_PREFERENCES_PATTERN = {
|
|
1612
|
+
fetchSystemPreferences: "fetch.system.preferences",
|
|
1613
|
+
updateSystemPreferences: "update.system.preferences"
|
|
1614
|
+
};
|
|
1615
|
+
|
|
1616
|
+
// src/modules/systempreference/dto/system-preference.dto.ts
|
|
1617
|
+
import {
|
|
1618
|
+
IsBoolean as IsBoolean6,
|
|
1619
|
+
IsEnum as IsEnum6
|
|
1620
|
+
} from "class-validator";
|
|
1621
|
+
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1622
|
+
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1623
|
+
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
1624
|
+
return SystemPreferenceKey2;
|
|
1625
|
+
})(SystemPreferenceKey || {});
|
|
1626
|
+
var SystemPreferenceDto = class {
|
|
1627
|
+
};
|
|
1628
|
+
__decorateClass([
|
|
1629
|
+
IsBoolean6()
|
|
1630
|
+
], SystemPreferenceDto.prototype, "value", 2);
|
|
1631
|
+
__decorateClass([
|
|
1632
|
+
IsEnum6(SystemPreferenceKey, {
|
|
1633
|
+
message: `key must be one of: ${Object.values(
|
|
1634
|
+
SystemPreferenceKey
|
|
1635
|
+
).join(", ")}`
|
|
1636
|
+
})
|
|
1637
|
+
], SystemPreferenceDto.prototype, "key", 2);
|
|
1638
|
+
|
|
1578
1639
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1579
1640
|
import { config } from "dotenv";
|
|
1580
1641
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -1792,7 +1853,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
1792
1853
|
};
|
|
1793
1854
|
|
|
1794
1855
|
// src/entities/question.entity.ts
|
|
1795
|
-
import { Entity as
|
|
1856
|
+
import { Entity as Entity12, Column as Column13 } from "typeorm";
|
|
1796
1857
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1797
1858
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1798
1859
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1801,16 +1862,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1801
1862
|
var Question = class extends BaseEntity {
|
|
1802
1863
|
};
|
|
1803
1864
|
__decorateClass([
|
|
1804
|
-
|
|
1865
|
+
Column13({ name: "question", type: "varchar" })
|
|
1805
1866
|
], Question.prototype, "question", 2);
|
|
1806
1867
|
__decorateClass([
|
|
1807
|
-
|
|
1868
|
+
Column13({ name: "hint", type: "varchar", nullable: true })
|
|
1808
1869
|
], Question.prototype, "hint", 2);
|
|
1809
1870
|
__decorateClass([
|
|
1810
|
-
|
|
1871
|
+
Column13({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1811
1872
|
], Question.prototype, "slug", 2);
|
|
1812
1873
|
__decorateClass([
|
|
1813
|
-
|
|
1874
|
+
Column13({
|
|
1814
1875
|
name: "question_for",
|
|
1815
1876
|
type: "enum",
|
|
1816
1877
|
enum: QuestionFor,
|
|
@@ -1818,33 +1879,33 @@ __decorateClass([
|
|
|
1818
1879
|
})
|
|
1819
1880
|
], Question.prototype, "questionFor", 2);
|
|
1820
1881
|
__decorateClass([
|
|
1821
|
-
|
|
1882
|
+
Column13({ name: "type", type: "varchar", nullable: true })
|
|
1822
1883
|
], Question.prototype, "type", 2);
|
|
1823
1884
|
__decorateClass([
|
|
1824
|
-
|
|
1885
|
+
Column13({ name: "options", type: "jsonb", nullable: true })
|
|
1825
1886
|
], Question.prototype, "options", 2);
|
|
1826
1887
|
__decorateClass([
|
|
1827
|
-
|
|
1888
|
+
Column13({ name: "is_active", type: "boolean", default: false })
|
|
1828
1889
|
], Question.prototype, "isActive", 2);
|
|
1829
1890
|
Question = __decorateClass([
|
|
1830
|
-
|
|
1891
|
+
Entity12("questions")
|
|
1831
1892
|
], Question);
|
|
1832
1893
|
|
|
1833
1894
|
// src/entities/job-role.entity.ts
|
|
1834
|
-
import { Entity as
|
|
1895
|
+
import { Entity as Entity13, Column as Column14 } from "typeorm";
|
|
1835
1896
|
var JobRoles = class extends BaseEntity {
|
|
1836
1897
|
};
|
|
1837
1898
|
__decorateClass([
|
|
1838
|
-
|
|
1899
|
+
Column14({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1839
1900
|
], JobRoles.prototype, "slug", 2);
|
|
1840
1901
|
__decorateClass([
|
|
1841
|
-
|
|
1902
|
+
Column14({ name: "name", type: "varchar", nullable: true })
|
|
1842
1903
|
], JobRoles.prototype, "name", 2);
|
|
1843
1904
|
__decorateClass([
|
|
1844
|
-
|
|
1905
|
+
Column14({ name: "is_active", type: "boolean", default: true })
|
|
1845
1906
|
], JobRoles.prototype, "isActive", 2);
|
|
1846
1907
|
JobRoles = __decorateClass([
|
|
1847
|
-
|
|
1908
|
+
Entity13("job_roles")
|
|
1848
1909
|
], JobRoles);
|
|
1849
1910
|
export {
|
|
1850
1911
|
AUTHENTICATION_PATTERN,
|
|
@@ -1912,9 +1973,12 @@ export {
|
|
|
1912
1973
|
RefreshToken,
|
|
1913
1974
|
ResumeParserLog,
|
|
1914
1975
|
SUBADMIN_PATTERN,
|
|
1976
|
+
SYSTEM_PREFERENCES_PATTERN,
|
|
1915
1977
|
ScopeEnum,
|
|
1916
1978
|
Skill,
|
|
1917
1979
|
Step,
|
|
1980
|
+
SystemPreferenceDto,
|
|
1981
|
+
SystemPreferenceKey,
|
|
1918
1982
|
TypeOfEmploymentEnum,
|
|
1919
1983
|
UpdateCompanyProfileDto,
|
|
1920
1984
|
UpdateSubAdminAccountStatusDto,
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './system-preference.dto';
|