@experts_hub/shared 1.0.104 → 1.0.105

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.
@@ -11,3 +11,6 @@ export * from './job-role.entity';
11
11
  export * from './job-entity';
12
12
  export * from './job-skill.entity';
13
13
  export * from './bank-details.entity';
14
+ export * from './plan.entity';
15
+ export * from './feature.entity';
16
+ export * from './system-preference.entity';
package/dist/index.d.mts CHANGED
@@ -741,4 +741,18 @@ declare class JobRoles extends BaseEntity {
741
741
  isActive: boolean;
742
742
  }
743
743
 
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 };
744
+ declare class Feature extends BaseEntity {
745
+ name: string;
746
+ plans: Plan[];
747
+ }
748
+
749
+ declare class Plan extends BaseEntity {
750
+ name: string;
751
+ description: string;
752
+ price: number;
753
+ billingPeriod: string;
754
+ isCurrent: boolean;
755
+ features: Feature[];
756
+ }
757
+
758
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, 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, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -741,4 +741,18 @@ declare class JobRoles extends BaseEntity {
741
741
  isActive: boolean;
742
742
  }
743
743
 
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 };
744
+ declare class Feature extends BaseEntity {
745
+ name: string;
746
+ plans: Plan[];
747
+ }
748
+
749
+ declare class Plan extends BaseEntity {
750
+ name: string;
751
+ description: string;
752
+ price: number;
753
+ billingPeriod: string;
754
+ isCurrent: boolean;
755
+ features: Feature[];
756
+ }
757
+
758
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, 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, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -44,6 +44,7 @@ __export(index_exports, {
44
44
  CreateQuestionDto: () => CreateQuestionDto,
45
45
  CreateSubAdminDto: () => CreateSubAdminDto,
46
46
  EmploymentType: () => EmploymentType,
47
+ Feature: () => Feature,
47
48
  FreelancerBankDetailsDto: () => FreelancerBankDetailsDto,
48
49
  FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
49
50
  FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
@@ -83,6 +84,7 @@ __export(index_exports, {
83
84
  Otp: () => Otp,
84
85
  PLAN_PATTERN: () => PLAN_PATTERN,
85
86
  PROFILE_PATTERN: () => PROFILE_PATTERN,
87
+ Plan: () => Plan,
86
88
  Provider: () => Provider,
87
89
  QUESTION_PATTERN: () => QUESTION_PATTERN,
88
90
  Question: () => Question,
@@ -96,6 +98,7 @@ __export(index_exports, {
96
98
  ScopeEnum: () => ScopeEnum,
97
99
  Skill: () => Skill,
98
100
  Step: () => Step,
101
+ SystemPreference: () => SystemPreference,
99
102
  SystemPreferenceDto: () => SystemPreferenceDto,
100
103
  SystemPreferenceKey: () => SystemPreferenceKey,
101
104
  TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
@@ -238,7 +241,9 @@ __decorateClass([
238
241
  ], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
239
242
  __decorateClass([
240
243
  (0, import_class_validator5.IsNotEmpty)({ message: "Please enter mobile number." }),
241
- (0, import_class_validator5.Matches)(/^\d{10}$/, { message: "Mobile must be a 10-digit number" })
244
+ (0, import_class_validator5.Matches)(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
245
+ message: "Please enter a valid US mobile number"
246
+ })
242
247
  ], FreelancerCreateAccountDto.prototype, "mobile", 2);
243
248
  __decorateClass([
244
249
  (0, import_class_validator5.IsNotEmpty)({ message: "Please enter password." }),
@@ -1867,6 +1872,49 @@ __decorateClass([
1867
1872
  JobRoles = __decorateClass([
1868
1873
  (0, import_typeorm14.Entity)("job_roles")
1869
1874
  ], JobRoles);
1875
+
1876
+ // src/entities/plan.entity.ts
1877
+ var import_typeorm16 = require("typeorm");
1878
+
1879
+ // src/entities/feature.entity.ts
1880
+ var import_typeorm15 = require("typeorm");
1881
+ var Feature = class extends BaseEntity {
1882
+ };
1883
+ __decorateClass([
1884
+ (0, import_typeorm15.Column)({ name: "name", type: "varchar", unique: true })
1885
+ ], Feature.prototype, "name", 2);
1886
+ __decorateClass([
1887
+ (0, import_typeorm15.ManyToMany)(() => Plan, (plan) => plan.features)
1888
+ ], Feature.prototype, "plans", 2);
1889
+ Feature = __decorateClass([
1890
+ (0, import_typeorm15.Entity)("features")
1891
+ ], Feature);
1892
+
1893
+ // src/entities/plan.entity.ts
1894
+ var Plan = class extends BaseEntity {
1895
+ };
1896
+ __decorateClass([
1897
+ (0, import_typeorm16.Column)({ name: "name", type: "varchar", unique: true })
1898
+ ], Plan.prototype, "name", 2);
1899
+ __decorateClass([
1900
+ (0, import_typeorm16.Column)({ name: "description", type: "varchar", nullable: true })
1901
+ ], Plan.prototype, "description", 2);
1902
+ __decorateClass([
1903
+ (0, import_typeorm16.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
1904
+ ], Plan.prototype, "price", 2);
1905
+ __decorateClass([
1906
+ (0, import_typeorm16.Column)({ name: "billing_period", type: "varchar" })
1907
+ ], Plan.prototype, "billingPeriod", 2);
1908
+ __decorateClass([
1909
+ (0, import_typeorm16.Column)({ name: "is_current", type: "boolean", default: false })
1910
+ ], Plan.prototype, "isCurrent", 2);
1911
+ __decorateClass([
1912
+ (0, import_typeorm16.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
1913
+ (0, import_typeorm16.JoinTable)()
1914
+ ], Plan.prototype, "features", 2);
1915
+ Plan = __decorateClass([
1916
+ (0, import_typeorm16.Entity)("plans")
1917
+ ], Plan);
1870
1918
  // Annotate the CommonJS export names for ESM import in node:
1871
1919
  0 && (module.exports = {
1872
1920
  AUTHENTICATION_PATTERN,
@@ -1886,6 +1934,7 @@ JobRoles = __decorateClass([
1886
1934
  CreateQuestionDto,
1887
1935
  CreateSubAdminDto,
1888
1936
  EmploymentType,
1937
+ Feature,
1889
1938
  FreelancerBankDetailsDto,
1890
1939
  FreelancerChangePasswordDto,
1891
1940
  FreelancerCreateAccountDto,
@@ -1925,6 +1974,7 @@ JobRoles = __decorateClass([
1925
1974
  Otp,
1926
1975
  PLAN_PATTERN,
1927
1976
  PROFILE_PATTERN,
1977
+ Plan,
1928
1978
  Provider,
1929
1979
  QUESTION_PATTERN,
1930
1980
  Question,
@@ -1938,6 +1988,7 @@ JobRoles = __decorateClass([
1938
1988
  ScopeEnum,
1939
1989
  Skill,
1940
1990
  Step,
1991
+ SystemPreference,
1941
1992
  SystemPreferenceDto,
1942
1993
  SystemPreferenceKey,
1943
1994
  TypeOfEmploymentEnum,
package/dist/index.mjs CHANGED
@@ -153,7 +153,9 @@ __decorateClass([
153
153
  ], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
154
154
  __decorateClass([
155
155
  IsNotEmpty4({ message: "Please enter mobile number." }),
156
- Matches(/^\d{10}$/, { message: "Mobile must be a 10-digit number" })
156
+ Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
157
+ message: "Please enter a valid US mobile number"
158
+ })
157
159
  ], FreelancerCreateAccountDto.prototype, "mobile", 2);
158
160
  __decorateClass([
159
161
  IsNotEmpty4({ message: "Please enter password." }),
@@ -1907,6 +1909,49 @@ __decorateClass([
1907
1909
  JobRoles = __decorateClass([
1908
1910
  Entity13("job_roles")
1909
1911
  ], JobRoles);
1912
+
1913
+ // src/entities/plan.entity.ts
1914
+ import { Entity as Entity15, Column as Column16, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
1915
+
1916
+ // src/entities/feature.entity.ts
1917
+ import { Entity as Entity14, Column as Column15, ManyToMany } from "typeorm";
1918
+ var Feature = class extends BaseEntity {
1919
+ };
1920
+ __decorateClass([
1921
+ Column15({ name: "name", type: "varchar", unique: true })
1922
+ ], Feature.prototype, "name", 2);
1923
+ __decorateClass([
1924
+ ManyToMany(() => Plan, (plan) => plan.features)
1925
+ ], Feature.prototype, "plans", 2);
1926
+ Feature = __decorateClass([
1927
+ Entity14("features")
1928
+ ], Feature);
1929
+
1930
+ // src/entities/plan.entity.ts
1931
+ var Plan = class extends BaseEntity {
1932
+ };
1933
+ __decorateClass([
1934
+ Column16({ name: "name", type: "varchar", unique: true })
1935
+ ], Plan.prototype, "name", 2);
1936
+ __decorateClass([
1937
+ Column16({ name: "description", type: "varchar", nullable: true })
1938
+ ], Plan.prototype, "description", 2);
1939
+ __decorateClass([
1940
+ Column16({ name: "price", type: "decimal", precision: 10, scale: 2 })
1941
+ ], Plan.prototype, "price", 2);
1942
+ __decorateClass([
1943
+ Column16({ name: "billing_period", type: "varchar" })
1944
+ ], Plan.prototype, "billingPeriod", 2);
1945
+ __decorateClass([
1946
+ Column16({ name: "is_current", type: "boolean", default: false })
1947
+ ], Plan.prototype, "isCurrent", 2);
1948
+ __decorateClass([
1949
+ ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
1950
+ JoinTable()
1951
+ ], Plan.prototype, "features", 2);
1952
+ Plan = __decorateClass([
1953
+ Entity15("plans")
1954
+ ], Plan);
1910
1955
  export {
1911
1956
  AUTHENTICATION_PATTERN,
1912
1957
  AccountStatus,
@@ -1925,6 +1970,7 @@ export {
1925
1970
  CreateQuestionDto,
1926
1971
  CreateSubAdminDto,
1927
1972
  EmploymentType,
1973
+ Feature,
1928
1974
  FreelancerBankDetailsDto,
1929
1975
  FreelancerChangePasswordDto,
1930
1976
  FreelancerCreateAccountDto,
@@ -1964,6 +2010,7 @@ export {
1964
2010
  Otp,
1965
2011
  PLAN_PATTERN,
1966
2012
  PROFILE_PATTERN,
2013
+ Plan,
1967
2014
  Provider,
1968
2015
  QUESTION_PATTERN,
1969
2016
  Question,
@@ -1977,6 +2024,7 @@ export {
1977
2024
  ScopeEnum,
1978
2025
  Skill,
1979
2026
  Step,
2027
+ SystemPreference,
1980
2028
  SystemPreferenceDto,
1981
2029
  SystemPreferenceKey,
1982
2030
  TypeOfEmploymentEnum,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",