@experts_hub/shared 1.0.223 → 1.0.225
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/company-skill.entity.d.ts +7 -0
- package/dist/entities/user.entity.d.ts +3 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +137 -112
- package/dist/index.mjs +117 -92
- package/dist/modules/client-admin/pattern/pattern.d.ts +1 -0
- package/dist/modules/freelancer-admin/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
|
@@ -21,6 +21,7 @@ import { FreelancerAssessment } from "./freelancer-assessment.entity";
|
|
|
21
21
|
import { FreelancerDeclaration } from "./freelancer-declaration.entity";
|
|
22
22
|
import { CompanyMemberRole } from "./company-members-roles.entity";
|
|
23
23
|
import { AssessmentAnswer } from "./assessment-answer.entity";
|
|
24
|
+
import { CompanySkill } from "./company-skill.entity";
|
|
24
25
|
export declare enum AccountType {
|
|
25
26
|
ADMIN = "ADMIN",
|
|
26
27
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -70,9 +71,10 @@ export declare class User extends BaseEntity {
|
|
|
70
71
|
gitLabsId: string;
|
|
71
72
|
otps: Otp[];
|
|
72
73
|
senseloafLogs: SenseloafLog[];
|
|
73
|
-
freelancerProfile: FreelancerProfile;
|
|
74
74
|
companyProfile: CompanyProfile;
|
|
75
|
+
companySkills: CompanySkill[];
|
|
75
76
|
companyMemberRoles: CompanyMemberRole[];
|
|
77
|
+
freelancerProfile: FreelancerProfile;
|
|
76
78
|
assessments: FreelancerAssessment[];
|
|
77
79
|
assessmentAnswers: AssessmentAnswer[];
|
|
78
80
|
freelancerSkills: FreelancerSkill[];
|
package/dist/index.d.mts
CHANGED
|
@@ -1050,6 +1050,12 @@ declare class AssessmentAnswer extends BaseEntity {
|
|
|
1050
1050
|
score: number;
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
|
+
declare class CompanySkill extends BaseEntity {
|
|
1054
|
+
userId: number;
|
|
1055
|
+
user: User;
|
|
1056
|
+
skillName: string;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1053
1059
|
declare enum AccountType {
|
|
1054
1060
|
ADMIN = "ADMIN",
|
|
1055
1061
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -1099,9 +1105,10 @@ declare class User extends BaseEntity {
|
|
|
1099
1105
|
gitLabsId: string;
|
|
1100
1106
|
otps: Otp[];
|
|
1101
1107
|
senseloafLogs: SenseloafLog[];
|
|
1102
|
-
freelancerProfile: FreelancerProfile;
|
|
1103
1108
|
companyProfile: CompanyProfile;
|
|
1109
|
+
companySkills: CompanySkill[];
|
|
1104
1110
|
companyMemberRoles: CompanyMemberRole[];
|
|
1111
|
+
freelancerProfile: FreelancerProfile;
|
|
1105
1112
|
assessments: FreelancerAssessment[];
|
|
1106
1113
|
assessmentAnswers: AssessmentAnswer[];
|
|
1107
1114
|
freelancerSkills: FreelancerSkill[];
|
|
@@ -1428,6 +1435,7 @@ declare const ADMIN_FREELANCER_PATTERN: {
|
|
|
1428
1435
|
adminCreateFreelancer: string;
|
|
1429
1436
|
adminUpdateFreelancer: string;
|
|
1430
1437
|
adminDeleteFreelancer: string;
|
|
1438
|
+
fetchFreelancerGraphCount: string;
|
|
1431
1439
|
};
|
|
1432
1440
|
|
|
1433
1441
|
declare enum NatureOfWorkEnum$1 {
|
|
@@ -1566,6 +1574,7 @@ declare const CLIENT_ADMIN_PATTERNS: {
|
|
|
1566
1574
|
exportAdminClients: string;
|
|
1567
1575
|
fetchClientCount: string;
|
|
1568
1576
|
fetchClientDropdown: string;
|
|
1577
|
+
fetchClientGraphCount: string;
|
|
1569
1578
|
};
|
|
1570
1579
|
|
|
1571
1580
|
declare enum CreateClientHiringModeEnum {
|
package/dist/index.d.ts
CHANGED
|
@@ -1050,6 +1050,12 @@ declare class AssessmentAnswer extends BaseEntity {
|
|
|
1050
1050
|
score: number;
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
|
+
declare class CompanySkill extends BaseEntity {
|
|
1054
|
+
userId: number;
|
|
1055
|
+
user: User;
|
|
1056
|
+
skillName: string;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1053
1059
|
declare enum AccountType {
|
|
1054
1060
|
ADMIN = "ADMIN",
|
|
1055
1061
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -1099,9 +1105,10 @@ declare class User extends BaseEntity {
|
|
|
1099
1105
|
gitLabsId: string;
|
|
1100
1106
|
otps: Otp[];
|
|
1101
1107
|
senseloafLogs: SenseloafLog[];
|
|
1102
|
-
freelancerProfile: FreelancerProfile;
|
|
1103
1108
|
companyProfile: CompanyProfile;
|
|
1109
|
+
companySkills: CompanySkill[];
|
|
1104
1110
|
companyMemberRoles: CompanyMemberRole[];
|
|
1111
|
+
freelancerProfile: FreelancerProfile;
|
|
1105
1112
|
assessments: FreelancerAssessment[];
|
|
1106
1113
|
assessmentAnswers: AssessmentAnswer[];
|
|
1107
1114
|
freelancerSkills: FreelancerSkill[];
|
|
@@ -1428,6 +1435,7 @@ declare const ADMIN_FREELANCER_PATTERN: {
|
|
|
1428
1435
|
adminCreateFreelancer: string;
|
|
1429
1436
|
adminUpdateFreelancer: string;
|
|
1430
1437
|
adminDeleteFreelancer: string;
|
|
1438
|
+
fetchFreelancerGraphCount: string;
|
|
1431
1439
|
};
|
|
1432
1440
|
|
|
1433
1441
|
declare enum NatureOfWorkEnum$1 {
|
|
@@ -1566,6 +1574,7 @@ declare const CLIENT_ADMIN_PATTERNS: {
|
|
|
1566
1574
|
exportAdminClients: string;
|
|
1567
1575
|
fetchClientCount: string;
|
|
1568
1576
|
fetchClientDropdown: string;
|
|
1577
|
+
fetchClientGraphCount: string;
|
|
1569
1578
|
};
|
|
1570
1579
|
|
|
1571
1580
|
declare enum CreateClientHiringModeEnum {
|
package/dist/index.js
CHANGED
|
@@ -1176,10 +1176,10 @@ var RATING_PATTERN = {
|
|
|
1176
1176
|
var import_class_validator35 = require("class-validator");
|
|
1177
1177
|
|
|
1178
1178
|
// src/entities/rating.entity.ts
|
|
1179
|
-
var
|
|
1179
|
+
var import_typeorm36 = require("typeorm");
|
|
1180
1180
|
|
|
1181
1181
|
// src/entities/user.entity.ts
|
|
1182
|
-
var
|
|
1182
|
+
var import_typeorm35 = require("typeorm");
|
|
1183
1183
|
|
|
1184
1184
|
// src/entities/base.entity.ts
|
|
1185
1185
|
var import_typeorm = require("typeorm");
|
|
@@ -2832,6 +2832,26 @@ AssessmentAnswer = __decorateClass([
|
|
|
2832
2832
|
(0, import_typeorm33.Entity)("assessment_answers")
|
|
2833
2833
|
], AssessmentAnswer);
|
|
2834
2834
|
|
|
2835
|
+
// src/entities/company-skill.entity.ts
|
|
2836
|
+
var import_typeorm34 = require("typeorm");
|
|
2837
|
+
var CompanySkill = class extends BaseEntity {
|
|
2838
|
+
};
|
|
2839
|
+
// individual index to find core skills by user
|
|
2840
|
+
__decorateClass([
|
|
2841
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2842
|
+
(0, import_typeorm34.Index)()
|
|
2843
|
+
], CompanySkill.prototype, "userId", 2);
|
|
2844
|
+
__decorateClass([
|
|
2845
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
2846
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
2847
|
+
], CompanySkill.prototype, "user", 2);
|
|
2848
|
+
__decorateClass([
|
|
2849
|
+
(0, import_typeorm34.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2850
|
+
], CompanySkill.prototype, "skillName", 2);
|
|
2851
|
+
CompanySkill = __decorateClass([
|
|
2852
|
+
(0, import_typeorm34.Entity)("company_skills")
|
|
2853
|
+
], CompanySkill);
|
|
2854
|
+
|
|
2835
2855
|
// src/entities/user.entity.ts
|
|
2836
2856
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2837
2857
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2857,51 +2877,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2857
2877
|
var User = class extends BaseEntity {
|
|
2858
2878
|
};
|
|
2859
2879
|
__decorateClass([
|
|
2860
|
-
(0,
|
|
2880
|
+
(0, import_typeorm35.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
2861
2881
|
], User.prototype, "uniqueId", 2);
|
|
2862
2882
|
__decorateClass([
|
|
2863
|
-
(0,
|
|
2864
|
-
(0,
|
|
2883
|
+
(0, import_typeorm35.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2884
|
+
(0, import_typeorm35.Index)()
|
|
2865
2885
|
], User.prototype, "parentId", 2);
|
|
2866
2886
|
__decorateClass([
|
|
2867
|
-
(0,
|
|
2868
|
-
(0,
|
|
2887
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2888
|
+
(0, import_typeorm35.JoinColumn)({ name: "parent_id" })
|
|
2869
2889
|
], User.prototype, "parent", 2);
|
|
2870
2890
|
__decorateClass([
|
|
2871
|
-
(0,
|
|
2891
|
+
(0, import_typeorm35.OneToMany)(() => User, (user) => user.parent)
|
|
2872
2892
|
], User.prototype, "children", 2);
|
|
2873
2893
|
__decorateClass([
|
|
2874
|
-
(0,
|
|
2894
|
+
(0, import_typeorm35.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2875
2895
|
], User.prototype, "username", 2);
|
|
2876
2896
|
__decorateClass([
|
|
2877
|
-
(0,
|
|
2897
|
+
(0, import_typeorm35.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2878
2898
|
], User.prototype, "firstName", 2);
|
|
2879
2899
|
__decorateClass([
|
|
2880
|
-
(0,
|
|
2900
|
+
(0, import_typeorm35.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2881
2901
|
], User.prototype, "lastName", 2);
|
|
2882
2902
|
__decorateClass([
|
|
2883
|
-
(0,
|
|
2903
|
+
(0, import_typeorm35.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
2884
2904
|
], User.prototype, "dateOfBirth", 2);
|
|
2885
2905
|
__decorateClass([
|
|
2886
|
-
(0,
|
|
2906
|
+
(0, import_typeorm35.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2887
2907
|
], User.prototype, "gender", 2);
|
|
2888
2908
|
__decorateClass([
|
|
2889
|
-
(0,
|
|
2909
|
+
(0, import_typeorm35.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2890
2910
|
], User.prototype, "profilePictureUrl", 2);
|
|
2891
2911
|
__decorateClass([
|
|
2892
|
-
(0,
|
|
2912
|
+
(0, import_typeorm35.Column)({ name: "email", type: "varchar", unique: true })
|
|
2893
2913
|
], User.prototype, "email", 2);
|
|
2894
2914
|
__decorateClass([
|
|
2895
|
-
(0,
|
|
2915
|
+
(0, import_typeorm35.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2896
2916
|
], User.prototype, "mobileCode", 2);
|
|
2897
2917
|
__decorateClass([
|
|
2898
|
-
(0,
|
|
2918
|
+
(0, import_typeorm35.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
2899
2919
|
], User.prototype, "mobile", 2);
|
|
2900
2920
|
__decorateClass([
|
|
2901
|
-
(0,
|
|
2921
|
+
(0, import_typeorm35.Column)({ name: "password", type: "varchar", nullable: true })
|
|
2902
2922
|
], User.prototype, "password", 2);
|
|
2903
2923
|
__decorateClass([
|
|
2904
|
-
(0,
|
|
2924
|
+
(0, import_typeorm35.Column)({
|
|
2905
2925
|
name: "account_type",
|
|
2906
2926
|
type: "enum",
|
|
2907
2927
|
enum: AccountType,
|
|
@@ -2909,7 +2929,7 @@ __decorateClass([
|
|
|
2909
2929
|
})
|
|
2910
2930
|
], User.prototype, "accountType", 2);
|
|
2911
2931
|
__decorateClass([
|
|
2912
|
-
(0,
|
|
2932
|
+
(0, import_typeorm35.Column)({
|
|
2913
2933
|
name: "account_status",
|
|
2914
2934
|
type: "enum",
|
|
2915
2935
|
enum: AccountStatus,
|
|
@@ -2917,36 +2937,36 @@ __decorateClass([
|
|
|
2917
2937
|
})
|
|
2918
2938
|
], User.prototype, "accountStatus", 2);
|
|
2919
2939
|
__decorateClass([
|
|
2920
|
-
(0,
|
|
2940
|
+
(0, import_typeorm35.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2921
2941
|
], User.prototype, "isEmailVerified", 2);
|
|
2922
2942
|
__decorateClass([
|
|
2923
|
-
(0,
|
|
2943
|
+
(0, import_typeorm35.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2924
2944
|
], User.prototype, "isMobileVerified", 2);
|
|
2925
2945
|
__decorateClass([
|
|
2926
|
-
(0,
|
|
2946
|
+
(0, import_typeorm35.Column)({
|
|
2927
2947
|
name: "last_login_at",
|
|
2928
2948
|
type: "timestamp with time zone",
|
|
2929
2949
|
nullable: true
|
|
2930
2950
|
})
|
|
2931
2951
|
], User.prototype, "lastLoginAt", 2);
|
|
2932
2952
|
__decorateClass([
|
|
2933
|
-
(0,
|
|
2953
|
+
(0, import_typeorm35.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2934
2954
|
], User.prototype, "lastLoginIp", 2);
|
|
2935
2955
|
__decorateClass([
|
|
2936
|
-
(0,
|
|
2956
|
+
(0, import_typeorm35.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2937
2957
|
], User.prototype, "resetToken", 2);
|
|
2938
2958
|
__decorateClass([
|
|
2939
|
-
(0,
|
|
2959
|
+
(0, import_typeorm35.Column)({
|
|
2940
2960
|
name: "reset_token_expire_at",
|
|
2941
2961
|
type: "timestamp with time zone",
|
|
2942
2962
|
nullable: true
|
|
2943
2963
|
})
|
|
2944
2964
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2945
2965
|
__decorateClass([
|
|
2946
|
-
(0,
|
|
2966
|
+
(0, import_typeorm35.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2947
2967
|
], User.prototype, "refreshTokens", 2);
|
|
2948
2968
|
__decorateClass([
|
|
2949
|
-
(0,
|
|
2969
|
+
(0, import_typeorm35.Column)({
|
|
2950
2970
|
name: "provider",
|
|
2951
2971
|
type: "enum",
|
|
2952
2972
|
enum: Provider,
|
|
@@ -2955,85 +2975,88 @@ __decorateClass([
|
|
|
2955
2975
|
})
|
|
2956
2976
|
], User.prototype, "provider", 2);
|
|
2957
2977
|
__decorateClass([
|
|
2958
|
-
(0,
|
|
2978
|
+
(0, import_typeorm35.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2959
2979
|
], User.prototype, "providerToken", 2);
|
|
2960
2980
|
__decorateClass([
|
|
2961
|
-
(0,
|
|
2981
|
+
(0, import_typeorm35.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2962
2982
|
], User.prototype, "linkedInId", 2);
|
|
2963
2983
|
__decorateClass([
|
|
2964
|
-
(0,
|
|
2984
|
+
(0, import_typeorm35.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2965
2985
|
], User.prototype, "googleId", 2);
|
|
2966
2986
|
__decorateClass([
|
|
2967
|
-
(0,
|
|
2987
|
+
(0, import_typeorm35.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2968
2988
|
], User.prototype, "gitLabsId", 2);
|
|
2969
2989
|
__decorateClass([
|
|
2970
|
-
(0,
|
|
2990
|
+
(0, import_typeorm35.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2971
2991
|
], User.prototype, "otps", 2);
|
|
2972
2992
|
__decorateClass([
|
|
2973
|
-
(0,
|
|
2993
|
+
(0, import_typeorm35.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2974
2994
|
], User.prototype, "senseloafLogs", 2);
|
|
2975
2995
|
__decorateClass([
|
|
2976
|
-
(0,
|
|
2977
|
-
], User.prototype, "freelancerProfile", 2);
|
|
2978
|
-
__decorateClass([
|
|
2979
|
-
(0, import_typeorm34.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2996
|
+
(0, import_typeorm35.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2980
2997
|
], User.prototype, "companyProfile", 2);
|
|
2981
2998
|
__decorateClass([
|
|
2982
|
-
(0,
|
|
2999
|
+
(0, import_typeorm35.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3000
|
+
], User.prototype, "companySkills", 2);
|
|
3001
|
+
__decorateClass([
|
|
3002
|
+
(0, import_typeorm35.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
2983
3003
|
], User.prototype, "companyMemberRoles", 2);
|
|
2984
3004
|
__decorateClass([
|
|
2985
|
-
(0,
|
|
3005
|
+
(0, import_typeorm35.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
|
|
3006
|
+
], User.prototype, "freelancerProfile", 2);
|
|
3007
|
+
__decorateClass([
|
|
3008
|
+
(0, import_typeorm35.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
2986
3009
|
], User.prototype, "assessments", 2);
|
|
2987
3010
|
__decorateClass([
|
|
2988
|
-
(0,
|
|
3011
|
+
(0, import_typeorm35.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
2989
3012
|
], User.prototype, "assessmentAnswers", 2);
|
|
2990
3013
|
__decorateClass([
|
|
2991
|
-
(0,
|
|
3014
|
+
(0, import_typeorm35.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
2992
3015
|
], User.prototype, "freelancerSkills", 2);
|
|
2993
3016
|
__decorateClass([
|
|
2994
|
-
(0,
|
|
3017
|
+
(0, import_typeorm35.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2995
3018
|
], User.prototype, "freelancerExperience", 2);
|
|
2996
3019
|
__decorateClass([
|
|
2997
|
-
(0,
|
|
3020
|
+
(0, import_typeorm35.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2998
3021
|
], User.prototype, "freelancerEducation", 2);
|
|
2999
3022
|
__decorateClass([
|
|
3000
|
-
(0,
|
|
3023
|
+
(0, import_typeorm35.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3001
3024
|
], User.prototype, "freelancerProject", 2);
|
|
3002
3025
|
__decorateClass([
|
|
3003
|
-
(0,
|
|
3026
|
+
(0, import_typeorm35.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3004
3027
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
3005
3028
|
__decorateClass([
|
|
3006
|
-
(0,
|
|
3029
|
+
(0, import_typeorm35.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3007
3030
|
], User.prototype, "freelancerTool", 2);
|
|
3008
3031
|
__decorateClass([
|
|
3009
|
-
(0,
|
|
3032
|
+
(0, import_typeorm35.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3010
3033
|
], User.prototype, "freelancerFramework", 2);
|
|
3011
3034
|
__decorateClass([
|
|
3012
|
-
(0,
|
|
3035
|
+
(0, import_typeorm35.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3013
3036
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3014
3037
|
__decorateClass([
|
|
3015
|
-
(0,
|
|
3038
|
+
(0, import_typeorm35.OneToMany)(() => Job, (job) => job.user)
|
|
3016
3039
|
], User.prototype, "jobs", 2);
|
|
3017
3040
|
__decorateClass([
|
|
3018
|
-
(0,
|
|
3041
|
+
(0, import_typeorm35.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3019
3042
|
], User.prototype, "jobApplications", 2);
|
|
3020
3043
|
__decorateClass([
|
|
3021
|
-
(0,
|
|
3044
|
+
(0, import_typeorm35.OneToMany)(() => Interview, (interview) => interview.user)
|
|
3022
3045
|
], User.prototype, "interviews", 2);
|
|
3023
3046
|
__decorateClass([
|
|
3024
|
-
(0,
|
|
3047
|
+
(0, import_typeorm35.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
3025
3048
|
], User.prototype, "bankDetail", 2);
|
|
3026
3049
|
__decorateClass([
|
|
3027
|
-
(0,
|
|
3050
|
+
(0, import_typeorm35.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
3028
3051
|
], User.prototype, "systemPreference", 2);
|
|
3029
3052
|
__decorateClass([
|
|
3030
|
-
(0,
|
|
3053
|
+
(0, import_typeorm35.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
3031
3054
|
], User.prototype, "givenRatings", 2);
|
|
3032
3055
|
__decorateClass([
|
|
3033
|
-
(0,
|
|
3056
|
+
(0, import_typeorm35.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
3034
3057
|
], User.prototype, "receivedRatings", 2);
|
|
3035
3058
|
User = __decorateClass([
|
|
3036
|
-
(0,
|
|
3059
|
+
(0, import_typeorm35.Entity)("users")
|
|
3037
3060
|
], User);
|
|
3038
3061
|
|
|
3039
3062
|
// src/entities/rating.entity.ts
|
|
@@ -3045,36 +3068,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3045
3068
|
var Rating = class extends BaseEntity {
|
|
3046
3069
|
};
|
|
3047
3070
|
__decorateClass([
|
|
3048
|
-
(0,
|
|
3049
|
-
(0,
|
|
3071
|
+
(0, import_typeorm36.Column)({ name: "reviewer_id", type: "integer" }),
|
|
3072
|
+
(0, import_typeorm36.Index)()
|
|
3050
3073
|
], Rating.prototype, "reviewer_id", 2);
|
|
3051
3074
|
__decorateClass([
|
|
3052
|
-
(0,
|
|
3053
|
-
(0,
|
|
3075
|
+
(0, import_typeorm36.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3076
|
+
(0, import_typeorm36.JoinColumn)({ name: "reviewer_id" })
|
|
3054
3077
|
], Rating.prototype, "reviewer", 2);
|
|
3055
3078
|
__decorateClass([
|
|
3056
|
-
(0,
|
|
3057
|
-
(0,
|
|
3079
|
+
(0, import_typeorm36.Column)({ name: "reviewee_id", type: "integer" }),
|
|
3080
|
+
(0, import_typeorm36.Index)()
|
|
3058
3081
|
], Rating.prototype, "reviewee_id", 2);
|
|
3059
3082
|
__decorateClass([
|
|
3060
|
-
(0,
|
|
3061
|
-
(0,
|
|
3083
|
+
(0, import_typeorm36.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3084
|
+
(0, import_typeorm36.JoinColumn)({ name: "reviewee_id" })
|
|
3062
3085
|
], Rating.prototype, "reviewee", 2);
|
|
3063
3086
|
__decorateClass([
|
|
3064
|
-
(0,
|
|
3087
|
+
(0, import_typeorm36.Column)({
|
|
3065
3088
|
type: "enum",
|
|
3066
3089
|
enum: RatingTypeEnum,
|
|
3067
3090
|
nullable: true
|
|
3068
3091
|
})
|
|
3069
3092
|
], Rating.prototype, "ratingType", 2);
|
|
3070
3093
|
__decorateClass([
|
|
3071
|
-
(0,
|
|
3094
|
+
(0, import_typeorm36.Column)({ type: "integer", nullable: true })
|
|
3072
3095
|
], Rating.prototype, "rating", 2);
|
|
3073
3096
|
__decorateClass([
|
|
3074
|
-
(0,
|
|
3097
|
+
(0, import_typeorm36.Column)({ type: "text", nullable: true })
|
|
3075
3098
|
], Rating.prototype, "review", 2);
|
|
3076
3099
|
Rating = __decorateClass([
|
|
3077
|
-
(0,
|
|
3100
|
+
(0, import_typeorm36.Entity)("ratings")
|
|
3078
3101
|
], Rating);
|
|
3079
3102
|
|
|
3080
3103
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3410,7 +3433,8 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
3410
3433
|
adminFetchFreelancerById: "admin.fetch.freelancer.by.id",
|
|
3411
3434
|
adminCreateFreelancer: "admin.create.freelancer",
|
|
3412
3435
|
adminUpdateFreelancer: "admin.update.freelancer",
|
|
3413
|
-
adminDeleteFreelancer: "admin.delete.freelancer"
|
|
3436
|
+
adminDeleteFreelancer: "admin.delete.freelancer",
|
|
3437
|
+
fetchFreelancerGraphCount: "fetch.freelancer.graph.count"
|
|
3414
3438
|
};
|
|
3415
3439
|
|
|
3416
3440
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
@@ -3615,7 +3639,8 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3615
3639
|
deleteAdminClient: "delete.admin.client",
|
|
3616
3640
|
exportAdminClients: "export.admin.clients",
|
|
3617
3641
|
fetchClientCount: "fetch.client.count",
|
|
3618
|
-
fetchClientDropdown: "fetch.client.dropdown"
|
|
3642
|
+
fetchClientDropdown: "fetch.client.dropdown",
|
|
3643
|
+
fetchClientGraphCount: "fetch.client.graph.count"
|
|
3619
3644
|
};
|
|
3620
3645
|
|
|
3621
3646
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
@@ -4296,7 +4321,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
4296
4321
|
};
|
|
4297
4322
|
|
|
4298
4323
|
// src/entities/question.entity.ts
|
|
4299
|
-
var
|
|
4324
|
+
var import_typeorm37 = require("typeorm");
|
|
4300
4325
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
4301
4326
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
4302
4327
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -4305,16 +4330,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
4305
4330
|
var Question = class extends BaseEntity {
|
|
4306
4331
|
};
|
|
4307
4332
|
__decorateClass([
|
|
4308
|
-
(0,
|
|
4333
|
+
(0, import_typeorm37.Column)({ name: "question", type: "varchar" })
|
|
4309
4334
|
], Question.prototype, "question", 2);
|
|
4310
4335
|
__decorateClass([
|
|
4311
|
-
(0,
|
|
4336
|
+
(0, import_typeorm37.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
4312
4337
|
], Question.prototype, "hint", 2);
|
|
4313
4338
|
__decorateClass([
|
|
4314
|
-
(0,
|
|
4339
|
+
(0, import_typeorm37.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4315
4340
|
], Question.prototype, "slug", 2);
|
|
4316
4341
|
__decorateClass([
|
|
4317
|
-
(0,
|
|
4342
|
+
(0, import_typeorm37.Column)({
|
|
4318
4343
|
name: "question_for",
|
|
4319
4344
|
type: "enum",
|
|
4320
4345
|
enum: QuestionFor,
|
|
@@ -4322,100 +4347,100 @@ __decorateClass([
|
|
|
4322
4347
|
})
|
|
4323
4348
|
], Question.prototype, "questionFor", 2);
|
|
4324
4349
|
__decorateClass([
|
|
4325
|
-
(0,
|
|
4350
|
+
(0, import_typeorm37.Column)({ name: "type", type: "varchar", nullable: true })
|
|
4326
4351
|
], Question.prototype, "type", 2);
|
|
4327
4352
|
__decorateClass([
|
|
4328
|
-
(0,
|
|
4353
|
+
(0, import_typeorm37.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
4329
4354
|
], Question.prototype, "options", 2);
|
|
4330
4355
|
__decorateClass([
|
|
4331
|
-
(0,
|
|
4356
|
+
(0, import_typeorm37.Column)({ name: "is_active", type: "boolean", default: false })
|
|
4332
4357
|
], Question.prototype, "isActive", 2);
|
|
4333
4358
|
Question = __decorateClass([
|
|
4334
|
-
(0,
|
|
4359
|
+
(0, import_typeorm37.Entity)("questions")
|
|
4335
4360
|
], Question);
|
|
4336
4361
|
|
|
4337
4362
|
// src/entities/job-role.entity.ts
|
|
4338
|
-
var
|
|
4363
|
+
var import_typeorm38 = require("typeorm");
|
|
4339
4364
|
var JobRoles = class extends BaseEntity {
|
|
4340
4365
|
};
|
|
4341
4366
|
__decorateClass([
|
|
4342
|
-
(0,
|
|
4367
|
+
(0, import_typeorm38.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4343
4368
|
], JobRoles.prototype, "slug", 2);
|
|
4344
4369
|
__decorateClass([
|
|
4345
|
-
(0,
|
|
4370
|
+
(0, import_typeorm38.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4346
4371
|
], JobRoles.prototype, "name", 2);
|
|
4347
4372
|
__decorateClass([
|
|
4348
|
-
(0,
|
|
4373
|
+
(0, import_typeorm38.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4349
4374
|
], JobRoles.prototype, "isActive", 2);
|
|
4350
4375
|
JobRoles = __decorateClass([
|
|
4351
|
-
(0,
|
|
4376
|
+
(0, import_typeorm38.Entity)("job_roles")
|
|
4352
4377
|
], JobRoles);
|
|
4353
4378
|
|
|
4354
4379
|
// src/entities/plan.entity.ts
|
|
4355
|
-
var
|
|
4380
|
+
var import_typeorm40 = require("typeorm");
|
|
4356
4381
|
|
|
4357
4382
|
// src/entities/feature.entity.ts
|
|
4358
|
-
var
|
|
4383
|
+
var import_typeorm39 = require("typeorm");
|
|
4359
4384
|
var Feature = class extends BaseEntity {
|
|
4360
4385
|
};
|
|
4361
4386
|
__decorateClass([
|
|
4362
|
-
(0,
|
|
4387
|
+
(0, import_typeorm39.Column)({ name: "name", type: "varchar", unique: true })
|
|
4363
4388
|
], Feature.prototype, "name", 2);
|
|
4364
4389
|
__decorateClass([
|
|
4365
|
-
(0,
|
|
4390
|
+
(0, import_typeorm39.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
4366
4391
|
], Feature.prototype, "plans", 2);
|
|
4367
4392
|
Feature = __decorateClass([
|
|
4368
|
-
(0,
|
|
4393
|
+
(0, import_typeorm39.Entity)("features")
|
|
4369
4394
|
], Feature);
|
|
4370
4395
|
|
|
4371
4396
|
// src/entities/plan.entity.ts
|
|
4372
4397
|
var Plan = class extends BaseEntity {
|
|
4373
4398
|
};
|
|
4374
4399
|
__decorateClass([
|
|
4375
|
-
(0,
|
|
4400
|
+
(0, import_typeorm40.Column)({ name: "name", type: "varchar", unique: true })
|
|
4376
4401
|
], Plan.prototype, "name", 2);
|
|
4377
4402
|
__decorateClass([
|
|
4378
|
-
(0,
|
|
4403
|
+
(0, import_typeorm40.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4379
4404
|
], Plan.prototype, "description", 2);
|
|
4380
4405
|
__decorateClass([
|
|
4381
|
-
(0,
|
|
4406
|
+
(0, import_typeorm40.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
4382
4407
|
], Plan.prototype, "price", 2);
|
|
4383
4408
|
__decorateClass([
|
|
4384
|
-
(0,
|
|
4409
|
+
(0, import_typeorm40.Column)({ name: "billing_period", type: "varchar" })
|
|
4385
4410
|
], Plan.prototype, "billingPeriod", 2);
|
|
4386
4411
|
__decorateClass([
|
|
4387
|
-
(0,
|
|
4412
|
+
(0, import_typeorm40.Column)({ name: "is_current", type: "boolean", default: false })
|
|
4388
4413
|
], Plan.prototype, "isCurrent", 2);
|
|
4389
4414
|
__decorateClass([
|
|
4390
|
-
(0,
|
|
4391
|
-
(0,
|
|
4415
|
+
(0, import_typeorm40.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
4416
|
+
(0, import_typeorm40.JoinTable)()
|
|
4392
4417
|
], Plan.prototype, "features", 2);
|
|
4393
4418
|
Plan = __decorateClass([
|
|
4394
|
-
(0,
|
|
4419
|
+
(0, import_typeorm40.Entity)("plans")
|
|
4395
4420
|
], Plan);
|
|
4396
4421
|
|
|
4397
4422
|
// src/entities/cms.entity.ts
|
|
4398
|
-
var
|
|
4423
|
+
var import_typeorm41 = require("typeorm");
|
|
4399
4424
|
var Cms = class extends BaseEntity {
|
|
4400
4425
|
};
|
|
4401
4426
|
__decorateClass([
|
|
4402
|
-
(0,
|
|
4427
|
+
(0, import_typeorm41.Column)({ name: "title", type: "varchar", nullable: true })
|
|
4403
4428
|
], Cms.prototype, "title", 2);
|
|
4404
4429
|
__decorateClass([
|
|
4405
|
-
(0,
|
|
4430
|
+
(0, import_typeorm41.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4406
4431
|
], Cms.prototype, "slug", 2);
|
|
4407
4432
|
__decorateClass([
|
|
4408
|
-
(0,
|
|
4433
|
+
(0, import_typeorm41.Column)({ name: "content", type: "varchar", nullable: true })
|
|
4409
4434
|
], Cms.prototype, "content", 2);
|
|
4410
4435
|
__decorateClass([
|
|
4411
|
-
(0,
|
|
4436
|
+
(0, import_typeorm41.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4412
4437
|
], Cms.prototype, "isActive", 2);
|
|
4413
4438
|
Cms = __decorateClass([
|
|
4414
|
-
(0,
|
|
4439
|
+
(0, import_typeorm41.Entity)("cms")
|
|
4415
4440
|
], Cms);
|
|
4416
4441
|
|
|
4417
4442
|
// src/entities/lead.entity.ts
|
|
4418
|
-
var
|
|
4443
|
+
var import_typeorm42 = require("typeorm");
|
|
4419
4444
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
4420
4445
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
4421
4446
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -4424,22 +4449,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
4424
4449
|
var Lead = class extends BaseEntity {
|
|
4425
4450
|
};
|
|
4426
4451
|
__decorateClass([
|
|
4427
|
-
(0,
|
|
4452
|
+
(0, import_typeorm42.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4428
4453
|
], Lead.prototype, "name", 2);
|
|
4429
4454
|
__decorateClass([
|
|
4430
|
-
(0,
|
|
4455
|
+
(0, import_typeorm42.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4431
4456
|
], Lead.prototype, "mobileCode", 2);
|
|
4432
4457
|
__decorateClass([
|
|
4433
|
-
(0,
|
|
4458
|
+
(0, import_typeorm42.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
4434
4459
|
], Lead.prototype, "mobile", 2);
|
|
4435
4460
|
__decorateClass([
|
|
4436
|
-
(0,
|
|
4461
|
+
(0, import_typeorm42.Column)({ name: "email", type: "varchar", nullable: true })
|
|
4437
4462
|
], Lead.prototype, "email", 2);
|
|
4438
4463
|
__decorateClass([
|
|
4439
|
-
(0,
|
|
4464
|
+
(0, import_typeorm42.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4440
4465
|
], Lead.prototype, "description", 2);
|
|
4441
4466
|
__decorateClass([
|
|
4442
|
-
(0,
|
|
4467
|
+
(0, import_typeorm42.Column)({
|
|
4443
4468
|
name: "category",
|
|
4444
4469
|
type: "enum",
|
|
4445
4470
|
enum: CategoryEmum,
|
|
@@ -4447,7 +4472,7 @@ __decorateClass([
|
|
|
4447
4472
|
})
|
|
4448
4473
|
], Lead.prototype, "category", 2);
|
|
4449
4474
|
Lead = __decorateClass([
|
|
4450
|
-
(0,
|
|
4475
|
+
(0, import_typeorm42.Entity)("leads")
|
|
4451
4476
|
], Lead);
|
|
4452
4477
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4453
4478
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -1069,17 +1069,17 @@ import {
|
|
|
1069
1069
|
} from "class-validator";
|
|
1070
1070
|
|
|
1071
1071
|
// src/entities/rating.entity.ts
|
|
1072
|
-
import { Entity as
|
|
1072
|
+
import { Entity as Entity35, Column as Column36, ManyToOne as ManyToOne31, JoinColumn as JoinColumn31, Index as Index28 } from "typeorm";
|
|
1073
1073
|
|
|
1074
1074
|
// src/entities/user.entity.ts
|
|
1075
1075
|
import {
|
|
1076
|
-
Entity as
|
|
1077
|
-
Column as
|
|
1076
|
+
Entity as Entity34,
|
|
1077
|
+
Column as Column35,
|
|
1078
1078
|
OneToMany as OneToMany13,
|
|
1079
1079
|
OneToOne,
|
|
1080
|
-
Index as
|
|
1081
|
-
ManyToOne as
|
|
1082
|
-
JoinColumn as
|
|
1080
|
+
Index as Index27,
|
|
1081
|
+
ManyToOne as ManyToOne30,
|
|
1082
|
+
JoinColumn as JoinColumn30
|
|
1083
1083
|
} from "typeorm";
|
|
1084
1084
|
|
|
1085
1085
|
// src/entities/base.entity.ts
|
|
@@ -2902,6 +2902,26 @@ AssessmentAnswer = __decorateClass([
|
|
|
2902
2902
|
Entity32("assessment_answers")
|
|
2903
2903
|
], AssessmentAnswer);
|
|
2904
2904
|
|
|
2905
|
+
// src/entities/company-skill.entity.ts
|
|
2906
|
+
import { Entity as Entity33, Column as Column34, Index as Index26, ManyToOne as ManyToOne29, JoinColumn as JoinColumn29 } from "typeorm";
|
|
2907
|
+
var CompanySkill = class extends BaseEntity {
|
|
2908
|
+
};
|
|
2909
|
+
// individual index to find core skills by user
|
|
2910
|
+
__decorateClass([
|
|
2911
|
+
Column34({ name: "user_id", type: "integer", nullable: true }),
|
|
2912
|
+
Index26()
|
|
2913
|
+
], CompanySkill.prototype, "userId", 2);
|
|
2914
|
+
__decorateClass([
|
|
2915
|
+
ManyToOne29(() => User, (user) => user.freelancerSkills),
|
|
2916
|
+
JoinColumn29({ name: "user_id" })
|
|
2917
|
+
], CompanySkill.prototype, "user", 2);
|
|
2918
|
+
__decorateClass([
|
|
2919
|
+
Column34({ name: "skill_name", type: "varchar", nullable: true })
|
|
2920
|
+
], CompanySkill.prototype, "skillName", 2);
|
|
2921
|
+
CompanySkill = __decorateClass([
|
|
2922
|
+
Entity33("company_skills")
|
|
2923
|
+
], CompanySkill);
|
|
2924
|
+
|
|
2905
2925
|
// src/entities/user.entity.ts
|
|
2906
2926
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2907
2927
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2927,51 +2947,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2927
2947
|
var User = class extends BaseEntity {
|
|
2928
2948
|
};
|
|
2929
2949
|
__decorateClass([
|
|
2930
|
-
|
|
2950
|
+
Column35({ name: "unique_id", type: "varchar", unique: true })
|
|
2931
2951
|
], User.prototype, "uniqueId", 2);
|
|
2932
2952
|
__decorateClass([
|
|
2933
|
-
|
|
2934
|
-
|
|
2953
|
+
Column35({ name: "parent_id", type: "integer", nullable: true }),
|
|
2954
|
+
Index27()
|
|
2935
2955
|
], User.prototype, "parentId", 2);
|
|
2936
2956
|
__decorateClass([
|
|
2937
|
-
|
|
2938
|
-
|
|
2957
|
+
ManyToOne30(() => User, (user) => user.children, { nullable: true }),
|
|
2958
|
+
JoinColumn30({ name: "parent_id" })
|
|
2939
2959
|
], User.prototype, "parent", 2);
|
|
2940
2960
|
__decorateClass([
|
|
2941
2961
|
OneToMany13(() => User, (user) => user.parent)
|
|
2942
2962
|
], User.prototype, "children", 2);
|
|
2943
2963
|
__decorateClass([
|
|
2944
|
-
|
|
2964
|
+
Column35({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2945
2965
|
], User.prototype, "username", 2);
|
|
2946
2966
|
__decorateClass([
|
|
2947
|
-
|
|
2967
|
+
Column35({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2948
2968
|
], User.prototype, "firstName", 2);
|
|
2949
2969
|
__decorateClass([
|
|
2950
|
-
|
|
2970
|
+
Column35({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2951
2971
|
], User.prototype, "lastName", 2);
|
|
2952
2972
|
__decorateClass([
|
|
2953
|
-
|
|
2973
|
+
Column35({ name: "date_of_birth", type: "date", nullable: true })
|
|
2954
2974
|
], User.prototype, "dateOfBirth", 2);
|
|
2955
2975
|
__decorateClass([
|
|
2956
|
-
|
|
2976
|
+
Column35({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2957
2977
|
], User.prototype, "gender", 2);
|
|
2958
2978
|
__decorateClass([
|
|
2959
|
-
|
|
2979
|
+
Column35({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2960
2980
|
], User.prototype, "profilePictureUrl", 2);
|
|
2961
2981
|
__decorateClass([
|
|
2962
|
-
|
|
2982
|
+
Column35({ name: "email", type: "varchar", unique: true })
|
|
2963
2983
|
], User.prototype, "email", 2);
|
|
2964
2984
|
__decorateClass([
|
|
2965
|
-
|
|
2985
|
+
Column35({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2966
2986
|
], User.prototype, "mobileCode", 2);
|
|
2967
2987
|
__decorateClass([
|
|
2968
|
-
|
|
2988
|
+
Column35({ name: "mobile", type: "varchar", nullable: true })
|
|
2969
2989
|
], User.prototype, "mobile", 2);
|
|
2970
2990
|
__decorateClass([
|
|
2971
|
-
|
|
2991
|
+
Column35({ name: "password", type: "varchar", nullable: true })
|
|
2972
2992
|
], User.prototype, "password", 2);
|
|
2973
2993
|
__decorateClass([
|
|
2974
|
-
|
|
2994
|
+
Column35({
|
|
2975
2995
|
name: "account_type",
|
|
2976
2996
|
type: "enum",
|
|
2977
2997
|
enum: AccountType,
|
|
@@ -2979,7 +2999,7 @@ __decorateClass([
|
|
|
2979
2999
|
})
|
|
2980
3000
|
], User.prototype, "accountType", 2);
|
|
2981
3001
|
__decorateClass([
|
|
2982
|
-
|
|
3002
|
+
Column35({
|
|
2983
3003
|
name: "account_status",
|
|
2984
3004
|
type: "enum",
|
|
2985
3005
|
enum: AccountStatus,
|
|
@@ -2987,26 +3007,26 @@ __decorateClass([
|
|
|
2987
3007
|
})
|
|
2988
3008
|
], User.prototype, "accountStatus", 2);
|
|
2989
3009
|
__decorateClass([
|
|
2990
|
-
|
|
3010
|
+
Column35({ name: "is_email_verified", type: "boolean", default: false })
|
|
2991
3011
|
], User.prototype, "isEmailVerified", 2);
|
|
2992
3012
|
__decorateClass([
|
|
2993
|
-
|
|
3013
|
+
Column35({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2994
3014
|
], User.prototype, "isMobileVerified", 2);
|
|
2995
3015
|
__decorateClass([
|
|
2996
|
-
|
|
3016
|
+
Column35({
|
|
2997
3017
|
name: "last_login_at",
|
|
2998
3018
|
type: "timestamp with time zone",
|
|
2999
3019
|
nullable: true
|
|
3000
3020
|
})
|
|
3001
3021
|
], User.prototype, "lastLoginAt", 2);
|
|
3002
3022
|
__decorateClass([
|
|
3003
|
-
|
|
3023
|
+
Column35({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3004
3024
|
], User.prototype, "lastLoginIp", 2);
|
|
3005
3025
|
__decorateClass([
|
|
3006
|
-
|
|
3026
|
+
Column35({ name: "reset_token", type: "varchar", nullable: true })
|
|
3007
3027
|
], User.prototype, "resetToken", 2);
|
|
3008
3028
|
__decorateClass([
|
|
3009
|
-
|
|
3029
|
+
Column35({
|
|
3010
3030
|
name: "reset_token_expire_at",
|
|
3011
3031
|
type: "timestamp with time zone",
|
|
3012
3032
|
nullable: true
|
|
@@ -3016,7 +3036,7 @@ __decorateClass([
|
|
|
3016
3036
|
OneToMany13(() => RefreshToken, (token) => token.user)
|
|
3017
3037
|
], User.prototype, "refreshTokens", 2);
|
|
3018
3038
|
__decorateClass([
|
|
3019
|
-
|
|
3039
|
+
Column35({
|
|
3020
3040
|
name: "provider",
|
|
3021
3041
|
type: "enum",
|
|
3022
3042
|
enum: Provider,
|
|
@@ -3025,16 +3045,16 @@ __decorateClass([
|
|
|
3025
3045
|
})
|
|
3026
3046
|
], User.prototype, "provider", 2);
|
|
3027
3047
|
__decorateClass([
|
|
3028
|
-
|
|
3048
|
+
Column35({ name: "provider_token", type: "varchar", nullable: true })
|
|
3029
3049
|
], User.prototype, "providerToken", 2);
|
|
3030
3050
|
__decorateClass([
|
|
3031
|
-
|
|
3051
|
+
Column35({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3032
3052
|
], User.prototype, "linkedInId", 2);
|
|
3033
3053
|
__decorateClass([
|
|
3034
|
-
|
|
3054
|
+
Column35({ name: "google_id", type: "varchar", nullable: true })
|
|
3035
3055
|
], User.prototype, "googleId", 2);
|
|
3036
3056
|
__decorateClass([
|
|
3037
|
-
|
|
3057
|
+
Column35({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3038
3058
|
], User.prototype, "gitLabsId", 2);
|
|
3039
3059
|
__decorateClass([
|
|
3040
3060
|
OneToMany13(() => Otp, (otp) => otp.user)
|
|
@@ -3042,15 +3062,18 @@ __decorateClass([
|
|
|
3042
3062
|
__decorateClass([
|
|
3043
3063
|
OneToMany13(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3044
3064
|
], User.prototype, "senseloafLogs", 2);
|
|
3045
|
-
__decorateClass([
|
|
3046
|
-
OneToOne(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
|
|
3047
|
-
], User.prototype, "freelancerProfile", 2);
|
|
3048
3065
|
__decorateClass([
|
|
3049
3066
|
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
3050
3067
|
], User.prototype, "companyProfile", 2);
|
|
3068
|
+
__decorateClass([
|
|
3069
|
+
OneToMany13(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3070
|
+
], User.prototype, "companySkills", 2);
|
|
3051
3071
|
__decorateClass([
|
|
3052
3072
|
OneToMany13(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3053
3073
|
], User.prototype, "companyMemberRoles", 2);
|
|
3074
|
+
__decorateClass([
|
|
3075
|
+
OneToOne(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
|
|
3076
|
+
], User.prototype, "freelancerProfile", 2);
|
|
3054
3077
|
__decorateClass([
|
|
3055
3078
|
OneToMany13(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3056
3079
|
], User.prototype, "assessments", 2);
|
|
@@ -3058,7 +3081,7 @@ __decorateClass([
|
|
|
3058
3081
|
OneToMany13(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3059
3082
|
], User.prototype, "assessmentAnswers", 2);
|
|
3060
3083
|
__decorateClass([
|
|
3061
|
-
OneToMany13(() => FreelancerSkill, (
|
|
3084
|
+
OneToMany13(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
3062
3085
|
], User.prototype, "freelancerSkills", 2);
|
|
3063
3086
|
__decorateClass([
|
|
3064
3087
|
OneToMany13(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
@@ -3103,7 +3126,7 @@ __decorateClass([
|
|
|
3103
3126
|
OneToMany13(() => Rating, (rating) => rating.reviewee)
|
|
3104
3127
|
], User.prototype, "receivedRatings", 2);
|
|
3105
3128
|
User = __decorateClass([
|
|
3106
|
-
|
|
3129
|
+
Entity34("users")
|
|
3107
3130
|
], User);
|
|
3108
3131
|
|
|
3109
3132
|
// src/entities/rating.entity.ts
|
|
@@ -3115,36 +3138,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3115
3138
|
var Rating = class extends BaseEntity {
|
|
3116
3139
|
};
|
|
3117
3140
|
__decorateClass([
|
|
3118
|
-
|
|
3119
|
-
|
|
3141
|
+
Column36({ name: "reviewer_id", type: "integer" }),
|
|
3142
|
+
Index28()
|
|
3120
3143
|
], Rating.prototype, "reviewer_id", 2);
|
|
3121
3144
|
__decorateClass([
|
|
3122
|
-
|
|
3123
|
-
|
|
3145
|
+
ManyToOne31(() => User, { onDelete: "CASCADE" }),
|
|
3146
|
+
JoinColumn31({ name: "reviewer_id" })
|
|
3124
3147
|
], Rating.prototype, "reviewer", 2);
|
|
3125
3148
|
__decorateClass([
|
|
3126
|
-
|
|
3127
|
-
|
|
3149
|
+
Column36({ name: "reviewee_id", type: "integer" }),
|
|
3150
|
+
Index28()
|
|
3128
3151
|
], Rating.prototype, "reviewee_id", 2);
|
|
3129
3152
|
__decorateClass([
|
|
3130
|
-
|
|
3131
|
-
|
|
3153
|
+
ManyToOne31(() => User, { onDelete: "CASCADE" }),
|
|
3154
|
+
JoinColumn31({ name: "reviewee_id" })
|
|
3132
3155
|
], Rating.prototype, "reviewee", 2);
|
|
3133
3156
|
__decorateClass([
|
|
3134
|
-
|
|
3157
|
+
Column36({
|
|
3135
3158
|
type: "enum",
|
|
3136
3159
|
enum: RatingTypeEnum,
|
|
3137
3160
|
nullable: true
|
|
3138
3161
|
})
|
|
3139
3162
|
], Rating.prototype, "ratingType", 2);
|
|
3140
3163
|
__decorateClass([
|
|
3141
|
-
|
|
3164
|
+
Column36({ type: "integer", nullable: true })
|
|
3142
3165
|
], Rating.prototype, "rating", 2);
|
|
3143
3166
|
__decorateClass([
|
|
3144
|
-
|
|
3167
|
+
Column36({ type: "text", nullable: true })
|
|
3145
3168
|
], Rating.prototype, "review", 2);
|
|
3146
3169
|
Rating = __decorateClass([
|
|
3147
|
-
|
|
3170
|
+
Entity35("ratings")
|
|
3148
3171
|
], Rating);
|
|
3149
3172
|
|
|
3150
3173
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3487,7 +3510,8 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
3487
3510
|
adminFetchFreelancerById: "admin.fetch.freelancer.by.id",
|
|
3488
3511
|
adminCreateFreelancer: "admin.create.freelancer",
|
|
3489
3512
|
adminUpdateFreelancer: "admin.update.freelancer",
|
|
3490
|
-
adminDeleteFreelancer: "admin.delete.freelancer"
|
|
3513
|
+
adminDeleteFreelancer: "admin.delete.freelancer",
|
|
3514
|
+
fetchFreelancerGraphCount: "fetch.freelancer.graph.count"
|
|
3491
3515
|
};
|
|
3492
3516
|
|
|
3493
3517
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
@@ -3720,7 +3744,8 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3720
3744
|
deleteAdminClient: "delete.admin.client",
|
|
3721
3745
|
exportAdminClients: "export.admin.clients",
|
|
3722
3746
|
fetchClientCount: "fetch.client.count",
|
|
3723
|
-
fetchClientDropdown: "fetch.client.dropdown"
|
|
3747
|
+
fetchClientDropdown: "fetch.client.dropdown",
|
|
3748
|
+
fetchClientGraphCount: "fetch.client.graph.count"
|
|
3724
3749
|
};
|
|
3725
3750
|
|
|
3726
3751
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
@@ -4443,7 +4468,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
4443
4468
|
};
|
|
4444
4469
|
|
|
4445
4470
|
// src/entities/question.entity.ts
|
|
4446
|
-
import { Entity as
|
|
4471
|
+
import { Entity as Entity36, Column as Column37 } from "typeorm";
|
|
4447
4472
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
4448
4473
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
4449
4474
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -4452,16 +4477,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
4452
4477
|
var Question = class extends BaseEntity {
|
|
4453
4478
|
};
|
|
4454
4479
|
__decorateClass([
|
|
4455
|
-
|
|
4480
|
+
Column37({ name: "question", type: "varchar" })
|
|
4456
4481
|
], Question.prototype, "question", 2);
|
|
4457
4482
|
__decorateClass([
|
|
4458
|
-
|
|
4483
|
+
Column37({ name: "hint", type: "varchar", nullable: true })
|
|
4459
4484
|
], Question.prototype, "hint", 2);
|
|
4460
4485
|
__decorateClass([
|
|
4461
|
-
|
|
4486
|
+
Column37({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4462
4487
|
], Question.prototype, "slug", 2);
|
|
4463
4488
|
__decorateClass([
|
|
4464
|
-
|
|
4489
|
+
Column37({
|
|
4465
4490
|
name: "question_for",
|
|
4466
4491
|
type: "enum",
|
|
4467
4492
|
enum: QuestionFor,
|
|
@@ -4469,102 +4494,102 @@ __decorateClass([
|
|
|
4469
4494
|
})
|
|
4470
4495
|
], Question.prototype, "questionFor", 2);
|
|
4471
4496
|
__decorateClass([
|
|
4472
|
-
|
|
4497
|
+
Column37({ name: "type", type: "varchar", nullable: true })
|
|
4473
4498
|
], Question.prototype, "type", 2);
|
|
4474
4499
|
__decorateClass([
|
|
4475
|
-
|
|
4500
|
+
Column37({ name: "options", type: "jsonb", nullable: true })
|
|
4476
4501
|
], Question.prototype, "options", 2);
|
|
4477
4502
|
__decorateClass([
|
|
4478
|
-
|
|
4503
|
+
Column37({ name: "is_active", type: "boolean", default: false })
|
|
4479
4504
|
], Question.prototype, "isActive", 2);
|
|
4480
4505
|
Question = __decorateClass([
|
|
4481
|
-
|
|
4506
|
+
Entity36("questions")
|
|
4482
4507
|
], Question);
|
|
4483
4508
|
|
|
4484
4509
|
// src/entities/job-role.entity.ts
|
|
4485
|
-
import { Entity as
|
|
4510
|
+
import { Entity as Entity37, Column as Column38 } from "typeorm";
|
|
4486
4511
|
var JobRoles = class extends BaseEntity {
|
|
4487
4512
|
};
|
|
4488
4513
|
__decorateClass([
|
|
4489
|
-
|
|
4514
|
+
Column38({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4490
4515
|
], JobRoles.prototype, "slug", 2);
|
|
4491
4516
|
__decorateClass([
|
|
4492
|
-
|
|
4517
|
+
Column38({ name: "name", type: "varchar", nullable: true })
|
|
4493
4518
|
], JobRoles.prototype, "name", 2);
|
|
4494
4519
|
__decorateClass([
|
|
4495
|
-
|
|
4520
|
+
Column38({ name: "is_active", type: "boolean", default: true })
|
|
4496
4521
|
], JobRoles.prototype, "isActive", 2);
|
|
4497
4522
|
JobRoles = __decorateClass([
|
|
4498
|
-
|
|
4523
|
+
Entity37("job_roles")
|
|
4499
4524
|
], JobRoles);
|
|
4500
4525
|
|
|
4501
4526
|
// src/entities/plan.entity.ts
|
|
4502
|
-
import { Entity as
|
|
4527
|
+
import { Entity as Entity39, Column as Column40, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
4503
4528
|
|
|
4504
4529
|
// src/entities/feature.entity.ts
|
|
4505
|
-
import { Entity as
|
|
4530
|
+
import { Entity as Entity38, Column as Column39, ManyToMany as ManyToMany2 } from "typeorm";
|
|
4506
4531
|
var Feature = class extends BaseEntity {
|
|
4507
4532
|
};
|
|
4508
4533
|
__decorateClass([
|
|
4509
|
-
|
|
4534
|
+
Column39({ name: "name", type: "varchar", unique: true })
|
|
4510
4535
|
], Feature.prototype, "name", 2);
|
|
4511
4536
|
__decorateClass([
|
|
4512
4537
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
4513
4538
|
], Feature.prototype, "plans", 2);
|
|
4514
4539
|
Feature = __decorateClass([
|
|
4515
|
-
|
|
4540
|
+
Entity38("features")
|
|
4516
4541
|
], Feature);
|
|
4517
4542
|
|
|
4518
4543
|
// src/entities/plan.entity.ts
|
|
4519
4544
|
var Plan = class extends BaseEntity {
|
|
4520
4545
|
};
|
|
4521
4546
|
__decorateClass([
|
|
4522
|
-
|
|
4547
|
+
Column40({ name: "name", type: "varchar", unique: true })
|
|
4523
4548
|
], Plan.prototype, "name", 2);
|
|
4524
4549
|
__decorateClass([
|
|
4525
|
-
|
|
4550
|
+
Column40({ name: "description", type: "varchar", nullable: true })
|
|
4526
4551
|
], Plan.prototype, "description", 2);
|
|
4527
4552
|
__decorateClass([
|
|
4528
|
-
|
|
4553
|
+
Column40({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
4529
4554
|
], Plan.prototype, "price", 2);
|
|
4530
4555
|
__decorateClass([
|
|
4531
|
-
|
|
4556
|
+
Column40({ name: "billing_period", type: "varchar" })
|
|
4532
4557
|
], Plan.prototype, "billingPeriod", 2);
|
|
4533
4558
|
__decorateClass([
|
|
4534
|
-
|
|
4559
|
+
Column40({ name: "is_current", type: "boolean", default: false })
|
|
4535
4560
|
], Plan.prototype, "isCurrent", 2);
|
|
4536
4561
|
__decorateClass([
|
|
4537
4562
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
4538
4563
|
JoinTable()
|
|
4539
4564
|
], Plan.prototype, "features", 2);
|
|
4540
4565
|
Plan = __decorateClass([
|
|
4541
|
-
|
|
4566
|
+
Entity39("plans")
|
|
4542
4567
|
], Plan);
|
|
4543
4568
|
|
|
4544
4569
|
// src/entities/cms.entity.ts
|
|
4545
|
-
import { Entity as
|
|
4570
|
+
import { Entity as Entity40, Column as Column41 } from "typeorm";
|
|
4546
4571
|
var Cms = class extends BaseEntity {
|
|
4547
4572
|
};
|
|
4548
4573
|
__decorateClass([
|
|
4549
|
-
|
|
4574
|
+
Column41({ name: "title", type: "varchar", nullable: true })
|
|
4550
4575
|
], Cms.prototype, "title", 2);
|
|
4551
4576
|
__decorateClass([
|
|
4552
|
-
|
|
4577
|
+
Column41({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4553
4578
|
], Cms.prototype, "slug", 2);
|
|
4554
4579
|
__decorateClass([
|
|
4555
|
-
|
|
4580
|
+
Column41({ name: "content", type: "varchar", nullable: true })
|
|
4556
4581
|
], Cms.prototype, "content", 2);
|
|
4557
4582
|
__decorateClass([
|
|
4558
|
-
|
|
4583
|
+
Column41({ name: "is_active", type: "boolean", default: true })
|
|
4559
4584
|
], Cms.prototype, "isActive", 2);
|
|
4560
4585
|
Cms = __decorateClass([
|
|
4561
|
-
|
|
4586
|
+
Entity40("cms")
|
|
4562
4587
|
], Cms);
|
|
4563
4588
|
|
|
4564
4589
|
// src/entities/lead.entity.ts
|
|
4565
4590
|
import {
|
|
4566
|
-
Entity as
|
|
4567
|
-
Column as
|
|
4591
|
+
Entity as Entity41,
|
|
4592
|
+
Column as Column42
|
|
4568
4593
|
} from "typeorm";
|
|
4569
4594
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
4570
4595
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -4574,22 +4599,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
4574
4599
|
var Lead = class extends BaseEntity {
|
|
4575
4600
|
};
|
|
4576
4601
|
__decorateClass([
|
|
4577
|
-
|
|
4602
|
+
Column42({ name: "name", type: "varchar", nullable: true })
|
|
4578
4603
|
], Lead.prototype, "name", 2);
|
|
4579
4604
|
__decorateClass([
|
|
4580
|
-
|
|
4605
|
+
Column42({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4581
4606
|
], Lead.prototype, "mobileCode", 2);
|
|
4582
4607
|
__decorateClass([
|
|
4583
|
-
|
|
4608
|
+
Column42({ name: "mobile", type: "varchar", nullable: true })
|
|
4584
4609
|
], Lead.prototype, "mobile", 2);
|
|
4585
4610
|
__decorateClass([
|
|
4586
|
-
|
|
4611
|
+
Column42({ name: "email", type: "varchar", nullable: true })
|
|
4587
4612
|
], Lead.prototype, "email", 2);
|
|
4588
4613
|
__decorateClass([
|
|
4589
|
-
|
|
4614
|
+
Column42({ name: "description", type: "varchar", nullable: true })
|
|
4590
4615
|
], Lead.prototype, "description", 2);
|
|
4591
4616
|
__decorateClass([
|
|
4592
|
-
|
|
4617
|
+
Column42({
|
|
4593
4618
|
name: "category",
|
|
4594
4619
|
type: "enum",
|
|
4595
4620
|
enum: CategoryEmum,
|
|
@@ -4597,7 +4622,7 @@ __decorateClass([
|
|
|
4597
4622
|
})
|
|
4598
4623
|
], Lead.prototype, "category", 2);
|
|
4599
4624
|
Lead = __decorateClass([
|
|
4600
|
-
|
|
4625
|
+
Entity41("leads")
|
|
4601
4626
|
], Lead);
|
|
4602
4627
|
export {
|
|
4603
4628
|
ADMIN_FREELANCER_PATTERN,
|