@experts_hub/shared 1.0.102 → 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.
@@ -0,0 +1,6 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { Plan } from './plan.entity';
3
+ export declare class Feature extends BaseEntity {
4
+ name: string;
5
+ plans: Plan[];
6
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { Feature } from './feature.entity';
3
+ export declare class Plan extends BaseEntity {
4
+ name: string;
5
+ description: string;
6
+ price: number;
7
+ billingPeriod: string;
8
+ isCurrent: boolean;
9
+ features: Feature[];
10
+ }
@@ -0,0 +1,8 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { User } from "./user.entity";
3
+ export declare class SystemPreference extends BaseEntity {
4
+ userId: number;
5
+ user: User;
6
+ key: string;
7
+ value: boolean;
8
+ }
@@ -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 {
@@ -672,6 +680,31 @@ declare class FreelancerBankDetailsDto {
672
680
  accountScope: BankAccountScope;
673
681
  }
674
682
 
683
+ declare const PLAN_PATTERN: {
684
+ fetchPlans: string;
685
+ };
686
+
687
+ interface IFetchPlanResponse {
688
+ statusCode: number;
689
+ status: boolean;
690
+ message: string;
691
+ data: any;
692
+ }
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
+
675
708
  declare const UserTCPAdapter: () => MicroserviceOptions;
676
709
 
677
710
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -708,4 +741,4 @@ declare class JobRoles extends BaseEntity {
708
741
  isActive: boolean;
709
742
  }
710
743
 
711
- 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 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, 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 {
@@ -672,6 +680,31 @@ declare class FreelancerBankDetailsDto {
672
680
  accountScope: BankAccountScope;
673
681
  }
674
682
 
683
+ declare const PLAN_PATTERN: {
684
+ fetchPlans: string;
685
+ };
686
+
687
+ interface IFetchPlanResponse {
688
+ statusCode: number;
689
+ status: boolean;
690
+ message: string;
691
+ data: any;
692
+ }
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
+
675
708
  declare const UserTCPAdapter: () => MicroserviceOptions;
676
709
 
677
710
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -708,4 +741,4 @@ declare class JobRoles extends BaseEntity {
708
741
  isActive: boolean;
709
742
  }
710
743
 
711
- 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 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, 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
@@ -81,6 +81,7 @@ __export(index_exports, {
81
81
  OTP_PATTERN: () => OTP_PATTERN,
82
82
  OnboardingStepEnum: () => OnboardingStepEnum,
83
83
  Otp: () => Otp,
84
+ PLAN_PATTERN: () => PLAN_PATTERN,
84
85
  PROFILE_PATTERN: () => PROFILE_PATTERN,
85
86
  Provider: () => Provider,
86
87
  QUESTION_PATTERN: () => QUESTION_PATTERN,
@@ -91,9 +92,12 @@ __export(index_exports, {
91
92
  RefreshToken: () => RefreshToken,
92
93
  ResumeParserLog: () => ResumeParserLog,
93
94
  SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
95
+ SYSTEM_PREFERENCES_PATTERN: () => SYSTEM_PREFERENCES_PATTERN,
94
96
  ScopeEnum: () => ScopeEnum,
95
97
  Skill: () => Skill,
96
98
  Step: () => Step,
99
+ SystemPreferenceDto: () => SystemPreferenceDto,
100
+ SystemPreferenceKey: () => SystemPreferenceKey,
97
101
  TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
98
102
  UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
99
103
  UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
@@ -477,7 +481,7 @@ var CLIENT_PROFILE_PATTERN = {
477
481
  var import_class_validator15 = require("class-validator");
478
482
 
479
483
  // src/entities/company-profile.entity.ts
480
- var import_typeorm11 = require("typeorm");
484
+ var import_typeorm12 = require("typeorm");
481
485
 
482
486
  // src/entities/base.entity.ts
483
487
  var import_typeorm = require("typeorm");
@@ -517,7 +521,7 @@ __decorateClass([
517
521
  ], BaseEntity.prototype, "deletedAt", 2);
518
522
 
519
523
  // src/entities/user.entity.ts
520
- var import_typeorm10 = require("typeorm");
524
+ var import_typeorm11 = require("typeorm");
521
525
 
522
526
  // src/entities/refresh-token.entity.ts
523
527
  var import_typeorm2 = require("typeorm");
@@ -979,6 +983,29 @@ BankDetail = __decorateClass([
979
983
  (0, import_typeorm9.Entity)("bank_details")
980
984
  ], BankDetail);
981
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
+
982
1009
  // src/entities/user.entity.ts
983
1010
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
984
1011
  AccountType2["ADMIN"] = "ADMIN";
@@ -1003,40 +1030,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
1003
1030
  var User = class extends BaseEntity {
1004
1031
  };
1005
1032
  __decorateClass([
1006
- (0, import_typeorm10.Column)({ name: "unique_id", type: "varchar", unique: true })
1033
+ (0, import_typeorm11.Column)({ name: "unique_id", type: "varchar", unique: true })
1007
1034
  ], User.prototype, "uniqueId", 2);
1008
1035
  __decorateClass([
1009
- (0, import_typeorm10.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1036
+ (0, import_typeorm11.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1010
1037
  ], User.prototype, "username", 2);
1011
1038
  __decorateClass([
1012
- (0, import_typeorm10.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1039
+ (0, import_typeorm11.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1013
1040
  ], User.prototype, "firstName", 2);
1014
1041
  __decorateClass([
1015
- (0, import_typeorm10.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1042
+ (0, import_typeorm11.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1016
1043
  ], User.prototype, "lastName", 2);
1017
1044
  __decorateClass([
1018
- (0, import_typeorm10.Column)({ name: "date_of_birth", type: "date", nullable: true })
1045
+ (0, import_typeorm11.Column)({ name: "date_of_birth", type: "date", nullable: true })
1019
1046
  ], User.prototype, "dateOfBirth", 2);
1020
1047
  __decorateClass([
1021
- (0, import_typeorm10.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1048
+ (0, import_typeorm11.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1022
1049
  ], User.prototype, "gender", 2);
1023
1050
  __decorateClass([
1024
- (0, import_typeorm10.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1051
+ (0, import_typeorm11.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1025
1052
  ], User.prototype, "profilePictureUrl", 2);
1026
1053
  __decorateClass([
1027
- (0, import_typeorm10.Column)({ name: "email", type: "varchar", unique: true })
1054
+ (0, import_typeorm11.Column)({ name: "email", type: "varchar", unique: true })
1028
1055
  ], User.prototype, "email", 2);
1029
1056
  __decorateClass([
1030
- (0, import_typeorm10.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1057
+ (0, import_typeorm11.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1031
1058
  ], User.prototype, "mobileCode", 2);
1032
1059
  __decorateClass([
1033
- (0, import_typeorm10.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1060
+ (0, import_typeorm11.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1034
1061
  ], User.prototype, "mobile", 2);
1035
1062
  __decorateClass([
1036
- (0, import_typeorm10.Column)({ name: "password", type: "varchar" })
1063
+ (0, import_typeorm11.Column)({ name: "password", type: "varchar" })
1037
1064
  ], User.prototype, "password", 2);
1038
1065
  __decorateClass([
1039
- (0, import_typeorm10.Column)({
1066
+ (0, import_typeorm11.Column)({
1040
1067
  name: "account_type",
1041
1068
  type: "enum",
1042
1069
  enum: AccountType,
@@ -1044,7 +1071,7 @@ __decorateClass([
1044
1071
  })
1045
1072
  ], User.prototype, "accountType", 2);
1046
1073
  __decorateClass([
1047
- (0, import_typeorm10.Column)({
1074
+ (0, import_typeorm11.Column)({
1048
1075
  name: "account_status",
1049
1076
  type: "enum",
1050
1077
  enum: AccountStatus,
@@ -1052,32 +1079,32 @@ __decorateClass([
1052
1079
  })
1053
1080
  ], User.prototype, "accountStatus", 2);
1054
1081
  __decorateClass([
1055
- (0, import_typeorm10.Column)({ name: "is_email_verified", type: "boolean", default: false })
1082
+ (0, import_typeorm11.Column)({ name: "is_email_verified", type: "boolean", default: false })
1056
1083
  ], User.prototype, "isEmailVerified", 2);
1057
1084
  __decorateClass([
1058
- (0, import_typeorm10.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1085
+ (0, import_typeorm11.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1059
1086
  ], User.prototype, "isMobileVerified", 2);
1060
1087
  __decorateClass([
1061
- (0, import_typeorm10.Column)({
1088
+ (0, import_typeorm11.Column)({
1062
1089
  name: "last_login_at",
1063
1090
  type: "timestamp with time zone",
1064
1091
  nullable: true
1065
1092
  })
1066
1093
  ], User.prototype, "lastLoginAt", 2);
1067
1094
  __decorateClass([
1068
- (0, import_typeorm10.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1095
+ (0, import_typeorm11.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1069
1096
  ], User.prototype, "lastLoginIp", 2);
1070
1097
  __decorateClass([
1071
- (0, import_typeorm10.Column)({ name: "reset_token", type: "varchar", nullable: true })
1098
+ (0, import_typeorm11.Column)({ name: "reset_token", type: "varchar", nullable: true })
1072
1099
  ], User.prototype, "resetToken", 2);
1073
1100
  __decorateClass([
1074
- (0, import_typeorm10.Column)({ name: "reset_token_expire_at", type: "timestamp with time zone", nullable: true })
1101
+ (0, import_typeorm11.Column)({ name: "reset_token_expire_at", type: "timestamp with time zone", nullable: true })
1075
1102
  ], User.prototype, "resetTokenExpireAt", 2);
1076
1103
  __decorateClass([
1077
- (0, import_typeorm10.OneToMany)(() => RefreshToken, (token) => token.user)
1104
+ (0, import_typeorm11.OneToMany)(() => RefreshToken, (token) => token.user)
1078
1105
  ], User.prototype, "refreshTokens", 2);
1079
1106
  __decorateClass([
1080
- (0, import_typeorm10.Column)({
1107
+ (0, import_typeorm11.Column)({
1081
1108
  name: "provider",
1082
1109
  type: "enum",
1083
1110
  enum: Provider,
@@ -1086,40 +1113,43 @@ __decorateClass([
1086
1113
  })
1087
1114
  ], User.prototype, "provider", 2);
1088
1115
  __decorateClass([
1089
- (0, import_typeorm10.Column)({ name: "provider_token", type: "varchar", nullable: true })
1116
+ (0, import_typeorm11.Column)({ name: "provider_token", type: "varchar", nullable: true })
1090
1117
  ], User.prototype, "providerToken", 2);
1091
1118
  __decorateClass([
1092
- (0, import_typeorm10.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1119
+ (0, import_typeorm11.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1093
1120
  ], User.prototype, "linkedInId", 2);
1094
1121
  __decorateClass([
1095
- (0, import_typeorm10.Column)({ name: "google_id", type: "varchar", nullable: true })
1122
+ (0, import_typeorm11.Column)({ name: "google_id", type: "varchar", nullable: true })
1096
1123
  ], User.prototype, "googleId", 2);
1097
1124
  __decorateClass([
1098
- (0, import_typeorm10.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1125
+ (0, import_typeorm11.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1099
1126
  ], User.prototype, "gitLabsId", 2);
1100
1127
  __decorateClass([
1101
- (0, import_typeorm10.OneToMany)(() => Otp, (otp) => otp.user)
1128
+ (0, import_typeorm11.OneToMany)(() => Otp, (otp) => otp.user)
1102
1129
  ], User.prototype, "otps", 2);
1103
1130
  __decorateClass([
1104
- (0, import_typeorm10.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1131
+ (0, import_typeorm11.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1105
1132
  ], User.prototype, "resumeParserLogs", 2);
1106
1133
  __decorateClass([
1107
- (0, import_typeorm10.OneToOne)(
1134
+ (0, import_typeorm11.OneToOne)(
1108
1135
  () => FreelancerProfile,
1109
1136
  (freelancerProfile) => freelancerProfile.user
1110
1137
  )
1111
1138
  ], User.prototype, "freelancerProfile", 2);
1112
1139
  __decorateClass([
1113
- (0, import_typeorm10.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
1140
+ (0, import_typeorm11.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
1114
1141
  ], User.prototype, "companyProfile", 2);
1115
1142
  __decorateClass([
1116
- (0, import_typeorm10.OneToMany)(() => Job, (job) => job.user)
1143
+ (0, import_typeorm11.OneToMany)(() => Job, (job) => job.user)
1117
1144
  ], User.prototype, "jobs", 2);
1118
1145
  __decorateClass([
1119
- (0, import_typeorm10.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1146
+ (0, import_typeorm11.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1120
1147
  ], User.prototype, "bankDetail", 2);
1148
+ __decorateClass([
1149
+ (0, import_typeorm11.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
1150
+ ], User.prototype, "systemPreference", 2);
1121
1151
  User = __decorateClass([
1122
- (0, import_typeorm10.Entity)("users")
1152
+ (0, import_typeorm11.Entity)("users")
1123
1153
  ], User);
1124
1154
 
1125
1155
  // src/entities/company-profile.entity.ts
@@ -1146,42 +1176,42 @@ var CompanyProfile = class extends BaseEntity {
1146
1176
  };
1147
1177
  // individual index to find company profile by user
1148
1178
  __decorateClass([
1149
- (0, import_typeorm11.Column)({ name: "user_id", type: "integer", nullable: true }),
1150
- (0, import_typeorm11.Index)()
1179
+ (0, import_typeorm12.Column)({ name: "user_id", type: "integer", nullable: true }),
1180
+ (0, import_typeorm12.Index)()
1151
1181
  ], CompanyProfile.prototype, "userId", 2);
1152
1182
  __decorateClass([
1153
- (0, import_typeorm11.ManyToOne)(() => User, (user) => user.otps),
1154
- (0, import_typeorm11.JoinColumn)({ name: "user_id" })
1183
+ (0, import_typeorm12.ManyToOne)(() => User, (user) => user.otps),
1184
+ (0, import_typeorm12.JoinColumn)({ name: "user_id" })
1155
1185
  ], CompanyProfile.prototype, "user", 2);
1156
1186
  __decorateClass([
1157
- (0, import_typeorm11.Column)({ name: "company_name", type: "varchar", nullable: true })
1187
+ (0, import_typeorm12.Column)({ name: "company_name", type: "varchar", nullable: true })
1158
1188
  ], CompanyProfile.prototype, "companyName", 2);
1159
1189
  __decorateClass([
1160
- (0, import_typeorm11.Column)({ name: "bio", type: "varchar", nullable: true })
1190
+ (0, import_typeorm12.Column)({ name: "bio", type: "varchar", nullable: true })
1161
1191
  ], CompanyProfile.prototype, "bio", 2);
1162
1192
  __decorateClass([
1163
- (0, import_typeorm11.Column)({ name: "website", type: "varchar", nullable: true })
1193
+ (0, import_typeorm12.Column)({ name: "website", type: "varchar", nullable: true })
1164
1194
  ], CompanyProfile.prototype, "webSite", 2);
1165
1195
  __decorateClass([
1166
- (0, import_typeorm11.Column)({ name: "about_company", type: "varchar", nullable: true })
1196
+ (0, import_typeorm12.Column)({ name: "about_company", type: "varchar", nullable: true })
1167
1197
  ], CompanyProfile.prototype, "aboutCompany", 2);
1168
1198
  __decorateClass([
1169
- (0, import_typeorm11.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1199
+ (0, import_typeorm12.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1170
1200
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
1171
1201
  __decorateClass([
1172
- (0, import_typeorm11.Column)({ name: "company_address", type: "varchar", nullable: true })
1202
+ (0, import_typeorm12.Column)({ name: "company_address", type: "varchar", nullable: true })
1173
1203
  ], CompanyProfile.prototype, "companyAddress", 2);
1174
1204
  __decorateClass([
1175
- (0, import_typeorm11.Column)({ name: "phone_number", type: "varchar", nullable: true })
1205
+ (0, import_typeorm12.Column)({ name: "phone_number", type: "varchar", nullable: true })
1176
1206
  ], CompanyProfile.prototype, "phoneNumber", 2);
1177
1207
  __decorateClass([
1178
- (0, import_typeorm11.Column)({ name: "skills", type: "text", nullable: true })
1208
+ (0, import_typeorm12.Column)({ name: "skills", type: "text", nullable: true })
1179
1209
  ], CompanyProfile.prototype, "skills", 2);
1180
1210
  __decorateClass([
1181
- (0, import_typeorm11.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1211
+ (0, import_typeorm12.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1182
1212
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
1183
1213
  __decorateClass([
1184
- (0, import_typeorm11.Column)({
1214
+ (0, import_typeorm12.Column)({
1185
1215
  name: "kind_of_hiring",
1186
1216
  type: "enum",
1187
1217
  enum: KindOfHire,
@@ -1189,7 +1219,7 @@ __decorateClass([
1189
1219
  })
1190
1220
  ], CompanyProfile.prototype, "kindOfHiring", 2);
1191
1221
  __decorateClass([
1192
- (0, import_typeorm11.Column)({
1222
+ (0, import_typeorm12.Column)({
1193
1223
  name: "mode_of_hire",
1194
1224
  type: "enum",
1195
1225
  enum: ModeOfHire,
@@ -1197,7 +1227,7 @@ __decorateClass([
1197
1227
  })
1198
1228
  ], CompanyProfile.prototype, "modeOfHire", 2);
1199
1229
  __decorateClass([
1200
- (0, import_typeorm11.Column)({
1230
+ (0, import_typeorm12.Column)({
1201
1231
  name: "found_us_on",
1202
1232
  type: "enum",
1203
1233
  enum: FromUsOn,
@@ -1205,7 +1235,7 @@ __decorateClass([
1205
1235
  })
1206
1236
  ], CompanyProfile.prototype, "foundUsOn", 2);
1207
1237
  CompanyProfile = __decorateClass([
1208
- (0, import_typeorm11.Entity)("company_profiles")
1238
+ (0, import_typeorm12.Entity)("company_profiles")
1209
1239
  ], CompanyProfile);
1210
1240
 
1211
1241
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1535,6 +1565,37 @@ __decorateClass([
1535
1565
  })
1536
1566
  ], FreelancerBankDetailsDto.prototype, "accountScope", 2);
1537
1567
 
1568
+ // src/modules/plan/pattern/pattern.ts
1569
+ var PLAN_PATTERN = {
1570
+ fetchPlans: "fetch.plans"
1571
+ };
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
+
1538
1599
  // src/adapters/tcp/user.tcp.adapter.ts
1539
1600
  var import_dotenv = require("dotenv");
1540
1601
  var import_microservices = require("@nestjs/microservices");
@@ -1752,7 +1813,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
1752
1813
  };
1753
1814
 
1754
1815
  // src/entities/question.entity.ts
1755
- var import_typeorm12 = require("typeorm");
1816
+ var import_typeorm13 = require("typeorm");
1756
1817
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1757
1818
  QuestionFor2["CLIENT"] = "CLIENT";
1758
1819
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -1761,16 +1822,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1761
1822
  var Question = class extends BaseEntity {
1762
1823
  };
1763
1824
  __decorateClass([
1764
- (0, import_typeorm12.Column)({ name: "question", type: "varchar" })
1825
+ (0, import_typeorm13.Column)({ name: "question", type: "varchar" })
1765
1826
  ], Question.prototype, "question", 2);
1766
1827
  __decorateClass([
1767
- (0, import_typeorm12.Column)({ name: "hint", type: "varchar", nullable: true })
1828
+ (0, import_typeorm13.Column)({ name: "hint", type: "varchar", nullable: true })
1768
1829
  ], Question.prototype, "hint", 2);
1769
1830
  __decorateClass([
1770
- (0, import_typeorm12.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1831
+ (0, import_typeorm13.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1771
1832
  ], Question.prototype, "slug", 2);
1772
1833
  __decorateClass([
1773
- (0, import_typeorm12.Column)({
1834
+ (0, import_typeorm13.Column)({
1774
1835
  name: "question_for",
1775
1836
  type: "enum",
1776
1837
  enum: QuestionFor,
@@ -1778,33 +1839,33 @@ __decorateClass([
1778
1839
  })
1779
1840
  ], Question.prototype, "questionFor", 2);
1780
1841
  __decorateClass([
1781
- (0, import_typeorm12.Column)({ name: "type", type: "varchar", nullable: true })
1842
+ (0, import_typeorm13.Column)({ name: "type", type: "varchar", nullable: true })
1782
1843
  ], Question.prototype, "type", 2);
1783
1844
  __decorateClass([
1784
- (0, import_typeorm12.Column)({ name: "options", type: "jsonb", nullable: true })
1845
+ (0, import_typeorm13.Column)({ name: "options", type: "jsonb", nullable: true })
1785
1846
  ], Question.prototype, "options", 2);
1786
1847
  __decorateClass([
1787
- (0, import_typeorm12.Column)({ name: "is_active", type: "boolean", default: false })
1848
+ (0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: false })
1788
1849
  ], Question.prototype, "isActive", 2);
1789
1850
  Question = __decorateClass([
1790
- (0, import_typeorm12.Entity)("questions")
1851
+ (0, import_typeorm13.Entity)("questions")
1791
1852
  ], Question);
1792
1853
 
1793
1854
  // src/entities/job-role.entity.ts
1794
- var import_typeorm13 = require("typeorm");
1855
+ var import_typeorm14 = require("typeorm");
1795
1856
  var JobRoles = class extends BaseEntity {
1796
1857
  };
1797
1858
  __decorateClass([
1798
- (0, import_typeorm13.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1859
+ (0, import_typeorm14.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1799
1860
  ], JobRoles.prototype, "slug", 2);
1800
1861
  __decorateClass([
1801
- (0, import_typeorm13.Column)({ name: "name", type: "varchar", nullable: true })
1862
+ (0, import_typeorm14.Column)({ name: "name", type: "varchar", nullable: true })
1802
1863
  ], JobRoles.prototype, "name", 2);
1803
1864
  __decorateClass([
1804
- (0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: true })
1865
+ (0, import_typeorm14.Column)({ name: "is_active", type: "boolean", default: true })
1805
1866
  ], JobRoles.prototype, "isActive", 2);
1806
1867
  JobRoles = __decorateClass([
1807
- (0, import_typeorm13.Entity)("job_roles")
1868
+ (0, import_typeorm14.Entity)("job_roles")
1808
1869
  ], JobRoles);
1809
1870
  // Annotate the CommonJS export names for ESM import in node:
1810
1871
  0 && (module.exports = {
@@ -1862,6 +1923,7 @@ JobRoles = __decorateClass([
1862
1923
  OTP_PATTERN,
1863
1924
  OnboardingStepEnum,
1864
1925
  Otp,
1926
+ PLAN_PATTERN,
1865
1927
  PROFILE_PATTERN,
1866
1928
  Provider,
1867
1929
  QUESTION_PATTERN,
@@ -1872,9 +1934,12 @@ JobRoles = __decorateClass([
1872
1934
  RefreshToken,
1873
1935
  ResumeParserLog,
1874
1936
  SUBADMIN_PATTERN,
1937
+ SYSTEM_PREFERENCES_PATTERN,
1875
1938
  ScopeEnum,
1876
1939
  Skill,
1877
1940
  Step,
1941
+ SystemPreferenceDto,
1942
+ SystemPreferenceKey,
1878
1943
  TypeOfEmploymentEnum,
1879
1944
  UpdateCompanyProfileDto,
1880
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 Entity10,
432
- Column as Column11,
433
- ManyToOne as ManyToOne8,
434
- JoinColumn as JoinColumn8,
435
- Index as Index6
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 Entity9, Column as Column10, OneToMany as OneToMany5, OneToOne } from "typeorm";
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
- Column10({ name: "unique_id", type: "varchar", unique: true })
1040
+ Column11({ name: "unique_id", type: "varchar", unique: true })
1012
1041
  ], User.prototype, "uniqueId", 2);
1013
1042
  __decorateClass([
1014
- Column10({ name: "username", type: "varchar", unique: true, nullable: true })
1043
+ Column11({ name: "username", type: "varchar", unique: true, nullable: true })
1015
1044
  ], User.prototype, "username", 2);
1016
1045
  __decorateClass([
1017
- Column10({ name: "first_name", type: "varchar", length: 100, nullable: true })
1046
+ Column11({ name: "first_name", type: "varchar", length: 100, nullable: true })
1018
1047
  ], User.prototype, "firstName", 2);
1019
1048
  __decorateClass([
1020
- Column10({ name: "last_name", type: "varchar", length: 100, nullable: true })
1049
+ Column11({ name: "last_name", type: "varchar", length: 100, nullable: true })
1021
1050
  ], User.prototype, "lastName", 2);
1022
1051
  __decorateClass([
1023
- Column10({ name: "date_of_birth", type: "date", nullable: true })
1052
+ Column11({ name: "date_of_birth", type: "date", nullable: true })
1024
1053
  ], User.prototype, "dateOfBirth", 2);
1025
1054
  __decorateClass([
1026
- Column10({ name: "gender", type: "varchar", length: 10, nullable: true })
1055
+ Column11({ name: "gender", type: "varchar", length: 10, nullable: true })
1027
1056
  ], User.prototype, "gender", 2);
1028
1057
  __decorateClass([
1029
- Column10({ name: "profile_picture_url", type: "text", nullable: true })
1058
+ Column11({ name: "profile_picture_url", type: "text", nullable: true })
1030
1059
  ], User.prototype, "profilePictureUrl", 2);
1031
1060
  __decorateClass([
1032
- Column10({ name: "email", type: "varchar", unique: true })
1061
+ Column11({ name: "email", type: "varchar", unique: true })
1033
1062
  ], User.prototype, "email", 2);
1034
1063
  __decorateClass([
1035
- Column10({ name: "mobile_code", type: "varchar", nullable: true })
1064
+ Column11({ name: "mobile_code", type: "varchar", nullable: true })
1036
1065
  ], User.prototype, "mobileCode", 2);
1037
1066
  __decorateClass([
1038
- Column10({ name: "mobile", type: "varchar", unique: true, nullable: true })
1067
+ Column11({ name: "mobile", type: "varchar", unique: true, nullable: true })
1039
1068
  ], User.prototype, "mobile", 2);
1040
1069
  __decorateClass([
1041
- Column10({ name: "password", type: "varchar" })
1070
+ Column11({ name: "password", type: "varchar" })
1042
1071
  ], User.prototype, "password", 2);
1043
1072
  __decorateClass([
1044
- Column10({
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
- Column10({
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
- Column10({ name: "is_email_verified", type: "boolean", default: false })
1089
+ Column11({ name: "is_email_verified", type: "boolean", default: false })
1061
1090
  ], User.prototype, "isEmailVerified", 2);
1062
1091
  __decorateClass([
1063
- Column10({ name: "is_mobile_verified", type: "boolean", default: false })
1092
+ Column11({ name: "is_mobile_verified", type: "boolean", default: false })
1064
1093
  ], User.prototype, "isMobileVerified", 2);
1065
1094
  __decorateClass([
1066
- Column10({
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
- Column10({ name: "last_login_ip", type: "varchar", nullable: true })
1102
+ Column11({ name: "last_login_ip", type: "varchar", nullable: true })
1074
1103
  ], User.prototype, "lastLoginIp", 2);
1075
1104
  __decorateClass([
1076
- Column10({ name: "reset_token", type: "varchar", nullable: true })
1105
+ Column11({ name: "reset_token", type: "varchar", nullable: true })
1077
1106
  ], User.prototype, "resetToken", 2);
1078
1107
  __decorateClass([
1079
- Column10({ name: "reset_token_expire_at", type: "timestamp with time zone", nullable: true })
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
- Column10({
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
- Column10({ name: "provider_token", type: "varchar", nullable: true })
1123
+ Column11({ name: "provider_token", type: "varchar", nullable: true })
1095
1124
  ], User.prototype, "providerToken", 2);
1096
1125
  __decorateClass([
1097
- Column10({ name: "linkedin_id", type: "varchar", nullable: true })
1126
+ Column11({ name: "linkedin_id", type: "varchar", nullable: true })
1098
1127
  ], User.prototype, "linkedInId", 2);
1099
1128
  __decorateClass([
1100
- Column10({ name: "google_id", type: "varchar", nullable: true })
1129
+ Column11({ name: "google_id", type: "varchar", nullable: true })
1101
1130
  ], User.prototype, "googleId", 2);
1102
1131
  __decorateClass([
1103
- Column10({ name: "gitlabs_id", type: "varchar", nullable: true })
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
- Entity9("users")
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
- Column11({ name: "user_id", type: "integer", nullable: true }),
1155
- Index6()
1186
+ Column12({ name: "user_id", type: "integer", nullable: true }),
1187
+ Index7()
1156
1188
  ], CompanyProfile.prototype, "userId", 2);
1157
1189
  __decorateClass([
1158
- ManyToOne8(() => User, (user) => user.otps),
1159
- JoinColumn8({ name: "user_id" })
1190
+ ManyToOne9(() => User, (user) => user.otps),
1191
+ JoinColumn9({ name: "user_id" })
1160
1192
  ], CompanyProfile.prototype, "user", 2);
1161
1193
  __decorateClass([
1162
- Column11({ name: "company_name", type: "varchar", nullable: true })
1194
+ Column12({ name: "company_name", type: "varchar", nullable: true })
1163
1195
  ], CompanyProfile.prototype, "companyName", 2);
1164
1196
  __decorateClass([
1165
- Column11({ name: "bio", type: "varchar", nullable: true })
1197
+ Column12({ name: "bio", type: "varchar", nullable: true })
1166
1198
  ], CompanyProfile.prototype, "bio", 2);
1167
1199
  __decorateClass([
1168
- Column11({ name: "website", type: "varchar", nullable: true })
1200
+ Column12({ name: "website", type: "varchar", nullable: true })
1169
1201
  ], CompanyProfile.prototype, "webSite", 2);
1170
1202
  __decorateClass([
1171
- Column11({ name: "about_company", type: "varchar", nullable: true })
1203
+ Column12({ name: "about_company", type: "varchar", nullable: true })
1172
1204
  ], CompanyProfile.prototype, "aboutCompany", 2);
1173
1205
  __decorateClass([
1174
- Column11({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1206
+ Column12({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1175
1207
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
1176
1208
  __decorateClass([
1177
- Column11({ name: "company_address", type: "varchar", nullable: true })
1209
+ Column12({ name: "company_address", type: "varchar", nullable: true })
1178
1210
  ], CompanyProfile.prototype, "companyAddress", 2);
1179
1211
  __decorateClass([
1180
- Column11({ name: "phone_number", type: "varchar", nullable: true })
1212
+ Column12({ name: "phone_number", type: "varchar", nullable: true })
1181
1213
  ], CompanyProfile.prototype, "phoneNumber", 2);
1182
1214
  __decorateClass([
1183
- Column11({ name: "skills", type: "text", nullable: true })
1215
+ Column12({ name: "skills", type: "text", nullable: true })
1184
1216
  ], CompanyProfile.prototype, "skills", 2);
1185
1217
  __decorateClass([
1186
- Column11({ name: "required_freelancer", type: "varchar", nullable: true })
1218
+ Column12({ name: "required_freelancer", type: "varchar", nullable: true })
1187
1219
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
1188
1220
  __decorateClass([
1189
- Column11({
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
- Column11({
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
- Column11({
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
- Entity10("company_profiles")
1245
+ Entity11("company_profiles")
1214
1246
  ], CompanyProfile);
1215
1247
 
1216
1248
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1570,6 +1602,40 @@ __decorateClass([
1570
1602
  })
1571
1603
  ], FreelancerBankDetailsDto.prototype, "accountScope", 2);
1572
1604
 
1605
+ // src/modules/plan/pattern/pattern.ts
1606
+ var PLAN_PATTERN = {
1607
+ fetchPlans: "fetch.plans"
1608
+ };
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
+
1573
1639
  // src/adapters/tcp/user.tcp.adapter.ts
1574
1640
  import { config } from "dotenv";
1575
1641
  import { Transport } from "@nestjs/microservices";
@@ -1787,7 +1853,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
1787
1853
  };
1788
1854
 
1789
1855
  // src/entities/question.entity.ts
1790
- import { Entity as Entity11, Column as Column12 } from "typeorm";
1856
+ import { Entity as Entity12, Column as Column13 } from "typeorm";
1791
1857
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1792
1858
  QuestionFor2["CLIENT"] = "CLIENT";
1793
1859
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -1796,16 +1862,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1796
1862
  var Question = class extends BaseEntity {
1797
1863
  };
1798
1864
  __decorateClass([
1799
- Column12({ name: "question", type: "varchar" })
1865
+ Column13({ name: "question", type: "varchar" })
1800
1866
  ], Question.prototype, "question", 2);
1801
1867
  __decorateClass([
1802
- Column12({ name: "hint", type: "varchar", nullable: true })
1868
+ Column13({ name: "hint", type: "varchar", nullable: true })
1803
1869
  ], Question.prototype, "hint", 2);
1804
1870
  __decorateClass([
1805
- Column12({ name: "slug", type: "varchar", nullable: true, unique: true })
1871
+ Column13({ name: "slug", type: "varchar", nullable: true, unique: true })
1806
1872
  ], Question.prototype, "slug", 2);
1807
1873
  __decorateClass([
1808
- Column12({
1874
+ Column13({
1809
1875
  name: "question_for",
1810
1876
  type: "enum",
1811
1877
  enum: QuestionFor,
@@ -1813,33 +1879,33 @@ __decorateClass([
1813
1879
  })
1814
1880
  ], Question.prototype, "questionFor", 2);
1815
1881
  __decorateClass([
1816
- Column12({ name: "type", type: "varchar", nullable: true })
1882
+ Column13({ name: "type", type: "varchar", nullable: true })
1817
1883
  ], Question.prototype, "type", 2);
1818
1884
  __decorateClass([
1819
- Column12({ name: "options", type: "jsonb", nullable: true })
1885
+ Column13({ name: "options", type: "jsonb", nullable: true })
1820
1886
  ], Question.prototype, "options", 2);
1821
1887
  __decorateClass([
1822
- Column12({ name: "is_active", type: "boolean", default: false })
1888
+ Column13({ name: "is_active", type: "boolean", default: false })
1823
1889
  ], Question.prototype, "isActive", 2);
1824
1890
  Question = __decorateClass([
1825
- Entity11("questions")
1891
+ Entity12("questions")
1826
1892
  ], Question);
1827
1893
 
1828
1894
  // src/entities/job-role.entity.ts
1829
- import { Entity as Entity12, Column as Column13 } from "typeorm";
1895
+ import { Entity as Entity13, Column as Column14 } from "typeorm";
1830
1896
  var JobRoles = class extends BaseEntity {
1831
1897
  };
1832
1898
  __decorateClass([
1833
- Column13({ name: "slug", type: "varchar", nullable: true, unique: true })
1899
+ Column14({ name: "slug", type: "varchar", nullable: true, unique: true })
1834
1900
  ], JobRoles.prototype, "slug", 2);
1835
1901
  __decorateClass([
1836
- Column13({ name: "name", type: "varchar", nullable: true })
1902
+ Column14({ name: "name", type: "varchar", nullable: true })
1837
1903
  ], JobRoles.prototype, "name", 2);
1838
1904
  __decorateClass([
1839
- Column13({ name: "is_active", type: "boolean", default: true })
1905
+ Column14({ name: "is_active", type: "boolean", default: true })
1840
1906
  ], JobRoles.prototype, "isActive", 2);
1841
1907
  JobRoles = __decorateClass([
1842
- Entity12("job_roles")
1908
+ Entity13("job_roles")
1843
1909
  ], JobRoles);
1844
1910
  export {
1845
1911
  AUTHENTICATION_PATTERN,
@@ -1896,6 +1962,7 @@ export {
1896
1962
  OTP_PATTERN,
1897
1963
  OnboardingStepEnum,
1898
1964
  Otp,
1965
+ PLAN_PATTERN,
1899
1966
  PROFILE_PATTERN,
1900
1967
  Provider,
1901
1968
  QUESTION_PATTERN,
@@ -1906,9 +1973,12 @@ export {
1906
1973
  RefreshToken,
1907
1974
  ResumeParserLog,
1908
1975
  SUBADMIN_PATTERN,
1976
+ SYSTEM_PREFERENCES_PATTERN,
1909
1977
  ScopeEnum,
1910
1978
  Skill,
1911
1979
  Step,
1980
+ SystemPreferenceDto,
1981
+ SystemPreferenceKey,
1912
1982
  TypeOfEmploymentEnum,
1913
1983
  UpdateCompanyProfileDto,
1914
1984
  UpdateSubAdminAccountStatusDto,
@@ -8,3 +8,5 @@ export * from './question';
8
8
  export * from './job';
9
9
  export * from './user/freelancer-profile';
10
10
  export * from './bank';
11
+ export * from './plan';
12
+ export * from './systempreference';
@@ -0,0 +1,2 @@
1
+ export * from './pattern/pattern';
2
+ export * from './plan.interface';
@@ -0,0 +1,3 @@
1
+ export declare const PLAN_PATTERN: {
2
+ fetchPlans: string;
3
+ };
@@ -0,0 +1,6 @@
1
+ export interface IFetchPlanResponse {
2
+ statusCode: number;
3
+ status: boolean;
4
+ message: string;
5
+ data: any;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './system-preference.dto';
@@ -0,0 +1,8 @@
1
+ export declare enum SystemPreferenceKey {
2
+ EMAIL_NOTIFICATION = "EMAIL_NOTIFICATION",
3
+ DARK_MODE = "DARK_MODE"
4
+ }
5
+ export declare class SystemPreferenceDto {
6
+ value: boolean;
7
+ key: SystemPreferenceKey;
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './pattern/pattern';
2
+ export * from './dto';
@@ -0,0 +1,4 @@
1
+ export declare const SYSTEM_PREFERENCES_PATTERN: {
2
+ fetchSystemPreferences: string;
3
+ updateSystemPreferences: string;
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.102",
3
+ "version": "1.0.104",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",