@experts_hub/shared 1.0.104 → 1.0.106
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/index.d.ts +3 -0
- package/dist/index.d.mts +18 -3
- package/dist/index.d.ts +18 -3
- package/dist/index.js +57 -5
- package/dist/index.mjs +54 -5
- package/dist/modules/index.d.ts +1 -1
- package/dist/modules/system-preference/pattern/pattern.d.ts +5 -0
- package/package.json +1 -1
- package/dist/modules/systempreference/pattern/pattern.d.ts +0 -4
- /package/dist/modules/{systempreference → system-preference}/dto/index.d.ts +0 -0
- /package/dist/modules/{systempreference → system-preference}/dto/system-preference.dto.d.ts +0 -0
- /package/dist/modules/{systempreference → system-preference}/index.d.ts +0 -0
package/dist/entities/index.d.ts
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -692,8 +692,9 @@ interface IFetchPlanResponse {
|
|
|
692
692
|
}
|
|
693
693
|
|
|
694
694
|
declare const SYSTEM_PREFERENCES_PATTERN: {
|
|
695
|
-
|
|
696
|
-
|
|
695
|
+
fetchSystemPreference: string;
|
|
696
|
+
updateSystemPreference: string;
|
|
697
|
+
createSystemPreference: string;
|
|
697
698
|
};
|
|
698
699
|
|
|
699
700
|
declare enum SystemPreferenceKey {
|
|
@@ -741,4 +742,18 @@ declare class JobRoles extends BaseEntity {
|
|
|
741
742
|
isActive: boolean;
|
|
742
743
|
}
|
|
743
744
|
|
|
744
|
-
|
|
745
|
+
declare class Feature extends BaseEntity {
|
|
746
|
+
name: string;
|
|
747
|
+
plans: Plan[];
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
declare class Plan extends BaseEntity {
|
|
751
|
+
name: string;
|
|
752
|
+
description: string;
|
|
753
|
+
price: number;
|
|
754
|
+
billingPeriod: string;
|
|
755
|
+
isCurrent: boolean;
|
|
756
|
+
features: Feature[];
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
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
|
@@ -692,8 +692,9 @@ interface IFetchPlanResponse {
|
|
|
692
692
|
}
|
|
693
693
|
|
|
694
694
|
declare const SYSTEM_PREFERENCES_PATTERN: {
|
|
695
|
-
|
|
696
|
-
|
|
695
|
+
fetchSystemPreference: string;
|
|
696
|
+
updateSystemPreference: string;
|
|
697
|
+
createSystemPreference: string;
|
|
697
698
|
};
|
|
698
699
|
|
|
699
700
|
declare enum SystemPreferenceKey {
|
|
@@ -741,4 +742,18 @@ declare class JobRoles extends BaseEntity {
|
|
|
741
742
|
isActive: boolean;
|
|
742
743
|
}
|
|
743
744
|
|
|
744
|
-
|
|
745
|
+
declare class Feature extends BaseEntity {
|
|
746
|
+
name: string;
|
|
747
|
+
plans: Plan[];
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
declare class Plan extends BaseEntity {
|
|
751
|
+
name: string;
|
|
752
|
+
description: string;
|
|
753
|
+
price: number;
|
|
754
|
+
billingPeriod: string;
|
|
755
|
+
isCurrent: boolean;
|
|
756
|
+
features: Feature[];
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
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)(
|
|
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." }),
|
|
@@ -1570,13 +1575,14 @@ var PLAN_PATTERN = {
|
|
|
1570
1575
|
fetchPlans: "fetch.plans"
|
|
1571
1576
|
};
|
|
1572
1577
|
|
|
1573
|
-
// src/modules/
|
|
1578
|
+
// src/modules/system-preference/pattern/pattern.ts
|
|
1574
1579
|
var SYSTEM_PREFERENCES_PATTERN = {
|
|
1575
|
-
|
|
1576
|
-
|
|
1580
|
+
fetchSystemPreference: "fetch.system.preferences",
|
|
1581
|
+
updateSystemPreference: "update.system.preferences",
|
|
1582
|
+
createSystemPreference: "create.system.preferences"
|
|
1577
1583
|
};
|
|
1578
1584
|
|
|
1579
|
-
// src/modules/
|
|
1585
|
+
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1580
1586
|
var import_class_validator25 = require("class-validator");
|
|
1581
1587
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1582
1588
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -1867,6 +1873,49 @@ __decorateClass([
|
|
|
1867
1873
|
JobRoles = __decorateClass([
|
|
1868
1874
|
(0, import_typeorm14.Entity)("job_roles")
|
|
1869
1875
|
], JobRoles);
|
|
1876
|
+
|
|
1877
|
+
// src/entities/plan.entity.ts
|
|
1878
|
+
var import_typeorm16 = require("typeorm");
|
|
1879
|
+
|
|
1880
|
+
// src/entities/feature.entity.ts
|
|
1881
|
+
var import_typeorm15 = require("typeorm");
|
|
1882
|
+
var Feature = class extends BaseEntity {
|
|
1883
|
+
};
|
|
1884
|
+
__decorateClass([
|
|
1885
|
+
(0, import_typeorm15.Column)({ name: "name", type: "varchar", unique: true })
|
|
1886
|
+
], Feature.prototype, "name", 2);
|
|
1887
|
+
__decorateClass([
|
|
1888
|
+
(0, import_typeorm15.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
1889
|
+
], Feature.prototype, "plans", 2);
|
|
1890
|
+
Feature = __decorateClass([
|
|
1891
|
+
(0, import_typeorm15.Entity)("features")
|
|
1892
|
+
], Feature);
|
|
1893
|
+
|
|
1894
|
+
// src/entities/plan.entity.ts
|
|
1895
|
+
var Plan = class extends BaseEntity {
|
|
1896
|
+
};
|
|
1897
|
+
__decorateClass([
|
|
1898
|
+
(0, import_typeorm16.Column)({ name: "name", type: "varchar", unique: true })
|
|
1899
|
+
], Plan.prototype, "name", 2);
|
|
1900
|
+
__decorateClass([
|
|
1901
|
+
(0, import_typeorm16.Column)({ name: "description", type: "varchar", nullable: true })
|
|
1902
|
+
], Plan.prototype, "description", 2);
|
|
1903
|
+
__decorateClass([
|
|
1904
|
+
(0, import_typeorm16.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
1905
|
+
], Plan.prototype, "price", 2);
|
|
1906
|
+
__decorateClass([
|
|
1907
|
+
(0, import_typeorm16.Column)({ name: "billing_period", type: "varchar" })
|
|
1908
|
+
], Plan.prototype, "billingPeriod", 2);
|
|
1909
|
+
__decorateClass([
|
|
1910
|
+
(0, import_typeorm16.Column)({ name: "is_current", type: "boolean", default: false })
|
|
1911
|
+
], Plan.prototype, "isCurrent", 2);
|
|
1912
|
+
__decorateClass([
|
|
1913
|
+
(0, import_typeorm16.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
1914
|
+
(0, import_typeorm16.JoinTable)()
|
|
1915
|
+
], Plan.prototype, "features", 2);
|
|
1916
|
+
Plan = __decorateClass([
|
|
1917
|
+
(0, import_typeorm16.Entity)("plans")
|
|
1918
|
+
], Plan);
|
|
1870
1919
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1871
1920
|
0 && (module.exports = {
|
|
1872
1921
|
AUTHENTICATION_PATTERN,
|
|
@@ -1886,6 +1935,7 @@ JobRoles = __decorateClass([
|
|
|
1886
1935
|
CreateQuestionDto,
|
|
1887
1936
|
CreateSubAdminDto,
|
|
1888
1937
|
EmploymentType,
|
|
1938
|
+
Feature,
|
|
1889
1939
|
FreelancerBankDetailsDto,
|
|
1890
1940
|
FreelancerChangePasswordDto,
|
|
1891
1941
|
FreelancerCreateAccountDto,
|
|
@@ -1925,6 +1975,7 @@ JobRoles = __decorateClass([
|
|
|
1925
1975
|
Otp,
|
|
1926
1976
|
PLAN_PATTERN,
|
|
1927
1977
|
PROFILE_PATTERN,
|
|
1978
|
+
Plan,
|
|
1928
1979
|
Provider,
|
|
1929
1980
|
QUESTION_PATTERN,
|
|
1930
1981
|
Question,
|
|
@@ -1938,6 +1989,7 @@ JobRoles = __decorateClass([
|
|
|
1938
1989
|
ScopeEnum,
|
|
1939
1990
|
Skill,
|
|
1940
1991
|
Step,
|
|
1992
|
+
SystemPreference,
|
|
1941
1993
|
SystemPreferenceDto,
|
|
1942
1994
|
SystemPreferenceKey,
|
|
1943
1995
|
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(
|
|
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." }),
|
|
@@ -1607,13 +1609,14 @@ var PLAN_PATTERN = {
|
|
|
1607
1609
|
fetchPlans: "fetch.plans"
|
|
1608
1610
|
};
|
|
1609
1611
|
|
|
1610
|
-
// src/modules/
|
|
1612
|
+
// src/modules/system-preference/pattern/pattern.ts
|
|
1611
1613
|
var SYSTEM_PREFERENCES_PATTERN = {
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
+
fetchSystemPreference: "fetch.system.preferences",
|
|
1615
|
+
updateSystemPreference: "update.system.preferences",
|
|
1616
|
+
createSystemPreference: "create.system.preferences"
|
|
1614
1617
|
};
|
|
1615
1618
|
|
|
1616
|
-
// src/modules/
|
|
1619
|
+
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1617
1620
|
import {
|
|
1618
1621
|
IsBoolean as IsBoolean6,
|
|
1619
1622
|
IsEnum as IsEnum6
|
|
@@ -1907,6 +1910,49 @@ __decorateClass([
|
|
|
1907
1910
|
JobRoles = __decorateClass([
|
|
1908
1911
|
Entity13("job_roles")
|
|
1909
1912
|
], JobRoles);
|
|
1913
|
+
|
|
1914
|
+
// src/entities/plan.entity.ts
|
|
1915
|
+
import { Entity as Entity15, Column as Column16, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
1916
|
+
|
|
1917
|
+
// src/entities/feature.entity.ts
|
|
1918
|
+
import { Entity as Entity14, Column as Column15, ManyToMany } from "typeorm";
|
|
1919
|
+
var Feature = class extends BaseEntity {
|
|
1920
|
+
};
|
|
1921
|
+
__decorateClass([
|
|
1922
|
+
Column15({ name: "name", type: "varchar", unique: true })
|
|
1923
|
+
], Feature.prototype, "name", 2);
|
|
1924
|
+
__decorateClass([
|
|
1925
|
+
ManyToMany(() => Plan, (plan) => plan.features)
|
|
1926
|
+
], Feature.prototype, "plans", 2);
|
|
1927
|
+
Feature = __decorateClass([
|
|
1928
|
+
Entity14("features")
|
|
1929
|
+
], Feature);
|
|
1930
|
+
|
|
1931
|
+
// src/entities/plan.entity.ts
|
|
1932
|
+
var Plan = class extends BaseEntity {
|
|
1933
|
+
};
|
|
1934
|
+
__decorateClass([
|
|
1935
|
+
Column16({ name: "name", type: "varchar", unique: true })
|
|
1936
|
+
], Plan.prototype, "name", 2);
|
|
1937
|
+
__decorateClass([
|
|
1938
|
+
Column16({ name: "description", type: "varchar", nullable: true })
|
|
1939
|
+
], Plan.prototype, "description", 2);
|
|
1940
|
+
__decorateClass([
|
|
1941
|
+
Column16({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
1942
|
+
], Plan.prototype, "price", 2);
|
|
1943
|
+
__decorateClass([
|
|
1944
|
+
Column16({ name: "billing_period", type: "varchar" })
|
|
1945
|
+
], Plan.prototype, "billingPeriod", 2);
|
|
1946
|
+
__decorateClass([
|
|
1947
|
+
Column16({ name: "is_current", type: "boolean", default: false })
|
|
1948
|
+
], Plan.prototype, "isCurrent", 2);
|
|
1949
|
+
__decorateClass([
|
|
1950
|
+
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
1951
|
+
JoinTable()
|
|
1952
|
+
], Plan.prototype, "features", 2);
|
|
1953
|
+
Plan = __decorateClass([
|
|
1954
|
+
Entity15("plans")
|
|
1955
|
+
], Plan);
|
|
1910
1956
|
export {
|
|
1911
1957
|
AUTHENTICATION_PATTERN,
|
|
1912
1958
|
AccountStatus,
|
|
@@ -1925,6 +1971,7 @@ export {
|
|
|
1925
1971
|
CreateQuestionDto,
|
|
1926
1972
|
CreateSubAdminDto,
|
|
1927
1973
|
EmploymentType,
|
|
1974
|
+
Feature,
|
|
1928
1975
|
FreelancerBankDetailsDto,
|
|
1929
1976
|
FreelancerChangePasswordDto,
|
|
1930
1977
|
FreelancerCreateAccountDto,
|
|
@@ -1964,6 +2011,7 @@ export {
|
|
|
1964
2011
|
Otp,
|
|
1965
2012
|
PLAN_PATTERN,
|
|
1966
2013
|
PROFILE_PATTERN,
|
|
2014
|
+
Plan,
|
|
1967
2015
|
Provider,
|
|
1968
2016
|
QUESTION_PATTERN,
|
|
1969
2017
|
Question,
|
|
@@ -1977,6 +2025,7 @@ export {
|
|
|
1977
2025
|
ScopeEnum,
|
|
1978
2026
|
Skill,
|
|
1979
2027
|
Step,
|
|
2028
|
+
SystemPreference,
|
|
1980
2029
|
SystemPreferenceDto,
|
|
1981
2030
|
SystemPreferenceKey,
|
|
1982
2031
|
TypeOfEmploymentEnum,
|
package/dist/modules/index.d.ts
CHANGED
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|