@experts_hub/shared 1.0.717 → 1.0.718
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-member.entity.d.ts +11 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +672 -636
- package/dist/index.mjs +551 -516
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -125,6 +125,7 @@ __export(index_exports, {
|
|
|
125
125
|
Cms: () => Cms,
|
|
126
126
|
Commission: () => Commission,
|
|
127
127
|
CommissionTypeEnum: () => CommissionTypeEnum,
|
|
128
|
+
CompanyMember: () => CompanyMember,
|
|
128
129
|
CompanyMemberRole: () => CompanyMemberRole,
|
|
129
130
|
CompanyOnboardingStepEnum: () => CompanyOnboardingStepEnum,
|
|
130
131
|
CompanyProfile: () => CompanyProfile,
|
|
@@ -1487,7 +1488,7 @@ __decorateClass([
|
|
|
1487
1488
|
var import_class_validator37 = require("class-validator");
|
|
1488
1489
|
|
|
1489
1490
|
// src/entities/user.entity.ts
|
|
1490
|
-
var
|
|
1491
|
+
var import_typeorm80 = require("typeorm");
|
|
1491
1492
|
|
|
1492
1493
|
// src/entities/base.entity.ts
|
|
1493
1494
|
var import_typeorm = require("typeorm");
|
|
@@ -5854,14 +5855,45 @@ CompanyMemberRole = __decorateClass([
|
|
|
5854
5855
|
(0, import_typeorm58.Entity)("company_member_roles")
|
|
5855
5856
|
], CompanyMemberRole);
|
|
5856
5857
|
|
|
5858
|
+
// src/entities/company-member.entity.ts
|
|
5859
|
+
var import_typeorm59 = require("typeorm");
|
|
5860
|
+
var CompanyMember = class extends BaseEntity {
|
|
5861
|
+
};
|
|
5862
|
+
__decorateClass([
|
|
5863
|
+
(0, import_typeorm59.Column)({ name: "user_id", type: "integer", unique: true })
|
|
5864
|
+
], CompanyMember.prototype, "userId", 2);
|
|
5865
|
+
__decorateClass([
|
|
5866
|
+
(0, import_typeorm59.ManyToOne)(() => User, (user) => user.companyMember),
|
|
5867
|
+
(0, import_typeorm59.JoinColumn)({ name: "user_id" })
|
|
5868
|
+
], CompanyMember.prototype, "user", 2);
|
|
5869
|
+
__decorateClass([
|
|
5870
|
+
(0, import_typeorm59.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5871
|
+
], CompanyMember.prototype, "firstName", 2);
|
|
5872
|
+
__decorateClass([
|
|
5873
|
+
(0, import_typeorm59.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5874
|
+
], CompanyMember.prototype, "lastName", 2);
|
|
5875
|
+
__decorateClass([
|
|
5876
|
+
(0, import_typeorm59.Column)({ name: "email", type: "varchar", nullable: true }),
|
|
5877
|
+
(0, import_typeorm59.Index)()
|
|
5878
|
+
], CompanyMember.prototype, "email", 2);
|
|
5879
|
+
__decorateClass([
|
|
5880
|
+
(0, import_typeorm59.Column)({ name: "is_eligibl_for_recruiter_acknowledgement", type: "boolean", default: false })
|
|
5881
|
+
], CompanyMember.prototype, "isEligibleForRecruiterAcknowledgement", 2);
|
|
5882
|
+
__decorateClass([
|
|
5883
|
+
(0, import_typeorm59.Column)({ name: "is_recruiter_platform_acknowledgement_accepted", type: "boolean", default: false })
|
|
5884
|
+
], CompanyMember.prototype, "isRecruiterPlatformAcknowledgementAccepted", 2);
|
|
5885
|
+
CompanyMember = __decorateClass([
|
|
5886
|
+
(0, import_typeorm59.Entity)("company_members")
|
|
5887
|
+
], CompanyMember);
|
|
5888
|
+
|
|
5857
5889
|
// src/entities/assessment-answer.entity.ts
|
|
5858
|
-
var
|
|
5890
|
+
var import_typeorm62 = require("typeorm");
|
|
5859
5891
|
|
|
5860
5892
|
// src/entities/assessment-question.entity.ts
|
|
5861
|
-
var
|
|
5893
|
+
var import_typeorm61 = require("typeorm");
|
|
5862
5894
|
|
|
5863
5895
|
// src/entities/assessment-question-option.entity.ts
|
|
5864
|
-
var
|
|
5896
|
+
var import_typeorm60 = require("typeorm");
|
|
5865
5897
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5866
5898
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
5867
5899
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -5871,23 +5903,23 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5871
5903
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5872
5904
|
};
|
|
5873
5905
|
__decorateClass([
|
|
5874
|
-
(0,
|
|
5875
|
-
(0,
|
|
5906
|
+
(0, import_typeorm60.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
5907
|
+
(0, import_typeorm60.Index)()
|
|
5876
5908
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5877
5909
|
__decorateClass([
|
|
5878
|
-
(0,
|
|
5910
|
+
(0, import_typeorm60.ManyToOne)(
|
|
5879
5911
|
() => AssessmetQuestion,
|
|
5880
5912
|
(assessmentQuestion) => assessmentQuestion.options,
|
|
5881
5913
|
{ onDelete: "CASCADE" }
|
|
5882
5914
|
// ✅ IMPORTANT
|
|
5883
5915
|
),
|
|
5884
|
-
(0,
|
|
5916
|
+
(0, import_typeorm60.JoinColumn)({ name: "question_id" })
|
|
5885
5917
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5886
5918
|
__decorateClass([
|
|
5887
|
-
(0,
|
|
5919
|
+
(0, import_typeorm60.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5888
5920
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5889
5921
|
__decorateClass([
|
|
5890
|
-
(0,
|
|
5922
|
+
(0, import_typeorm60.Column)({
|
|
5891
5923
|
name: "answer_type",
|
|
5892
5924
|
type: "enum",
|
|
5893
5925
|
enum: AnswerTypeEnum,
|
|
@@ -5895,13 +5927,13 @@ __decorateClass([
|
|
|
5895
5927
|
})
|
|
5896
5928
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5897
5929
|
__decorateClass([
|
|
5898
|
-
(0,
|
|
5930
|
+
(0, import_typeorm60.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5899
5931
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5900
5932
|
__decorateClass([
|
|
5901
|
-
(0,
|
|
5933
|
+
(0, import_typeorm60.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5902
5934
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5903
5935
|
AssessmetQuestionOption = __decorateClass([
|
|
5904
|
-
(0,
|
|
5936
|
+
(0, import_typeorm60.Entity)("assessment_question_options")
|
|
5905
5937
|
], AssessmetQuestionOption);
|
|
5906
5938
|
|
|
5907
5939
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5913,10 +5945,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5913
5945
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5914
5946
|
};
|
|
5915
5947
|
__decorateClass([
|
|
5916
|
-
(0,
|
|
5948
|
+
(0, import_typeorm61.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5917
5949
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5918
5950
|
__decorateClass([
|
|
5919
|
-
(0,
|
|
5951
|
+
(0, import_typeorm61.Column)({
|
|
5920
5952
|
name: "question_for",
|
|
5921
5953
|
type: "enum",
|
|
5922
5954
|
enum: QuestionForEnum,
|
|
@@ -5924,24 +5956,24 @@ __decorateClass([
|
|
|
5924
5956
|
})
|
|
5925
5957
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5926
5958
|
__decorateClass([
|
|
5927
|
-
(0,
|
|
5959
|
+
(0, import_typeorm61.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5928
5960
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5929
5961
|
__decorateClass([
|
|
5930
|
-
(0,
|
|
5931
|
-
(0,
|
|
5962
|
+
(0, import_typeorm61.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5963
|
+
(0, import_typeorm61.Index)()
|
|
5932
5964
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5933
5965
|
__decorateClass([
|
|
5934
|
-
(0,
|
|
5935
|
-
(0,
|
|
5966
|
+
(0, import_typeorm61.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5967
|
+
(0, import_typeorm61.JoinColumn)({ name: "candidate_id" })
|
|
5936
5968
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5937
5969
|
__decorateClass([
|
|
5938
|
-
(0,
|
|
5970
|
+
(0, import_typeorm61.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5939
5971
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5940
5972
|
__decorateClass([
|
|
5941
|
-
(0,
|
|
5973
|
+
(0, import_typeorm61.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5942
5974
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5943
5975
|
AssessmetQuestion = __decorateClass([
|
|
5944
|
-
(0,
|
|
5976
|
+
(0, import_typeorm61.Entity)("assessment_questions")
|
|
5945
5977
|
], AssessmetQuestion);
|
|
5946
5978
|
|
|
5947
5979
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5954,122 +5986,122 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5954
5986
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5955
5987
|
};
|
|
5956
5988
|
__decorateClass([
|
|
5957
|
-
(0,
|
|
5958
|
-
(0,
|
|
5989
|
+
(0, import_typeorm62.Column)({ name: "user_id", type: "integer" }),
|
|
5990
|
+
(0, import_typeorm62.Index)()
|
|
5959
5991
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5960
5992
|
__decorateClass([
|
|
5961
|
-
(0,
|
|
5962
|
-
(0,
|
|
5993
|
+
(0, import_typeorm62.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
5994
|
+
(0, import_typeorm62.JoinColumn)({ name: "user_id" })
|
|
5963
5995
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5964
5996
|
__decorateClass([
|
|
5965
|
-
(0,
|
|
5966
|
-
(0,
|
|
5997
|
+
(0, import_typeorm62.Column)({ name: "question_id", type: "integer" }),
|
|
5998
|
+
(0, import_typeorm62.Index)()
|
|
5967
5999
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5968
6000
|
__decorateClass([
|
|
5969
|
-
(0,
|
|
6001
|
+
(0, import_typeorm62.ManyToOne)(
|
|
5970
6002
|
() => AssessmetQuestion,
|
|
5971
6003
|
(assessmentQuestion) => assessmentQuestion.answers,
|
|
5972
6004
|
{ onDelete: "CASCADE" }
|
|
5973
6005
|
// ✅ IMPORTANT
|
|
5974
6006
|
),
|
|
5975
|
-
(0,
|
|
6007
|
+
(0, import_typeorm62.JoinColumn)({ name: "question_id" })
|
|
5976
6008
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5977
6009
|
__decorateClass([
|
|
5978
|
-
(0,
|
|
5979
|
-
(0,
|
|
6010
|
+
(0, import_typeorm62.Column)({ name: "selected_option_id", type: "integer" }),
|
|
6011
|
+
(0, import_typeorm62.Index)()
|
|
5980
6012
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5981
6013
|
__decorateClass([
|
|
5982
|
-
(0,
|
|
6014
|
+
(0, import_typeorm62.ManyToOne)(
|
|
5983
6015
|
() => AssessmetQuestionOption,
|
|
5984
6016
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions,
|
|
5985
6017
|
{ onDelete: "CASCADE" }
|
|
5986
6018
|
// ✅ IMPORTANT
|
|
5987
6019
|
),
|
|
5988
|
-
(0,
|
|
6020
|
+
(0, import_typeorm62.JoinColumn)({ name: "selected_option_id" })
|
|
5989
6021
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5990
6022
|
__decorateClass([
|
|
5991
|
-
(0,
|
|
6023
|
+
(0, import_typeorm62.Column)({
|
|
5992
6024
|
name: "selected_answer_type",
|
|
5993
6025
|
type: "enum",
|
|
5994
6026
|
enum: SelectedAnswerTypeEnum
|
|
5995
6027
|
})
|
|
5996
6028
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5997
6029
|
__decorateClass([
|
|
5998
|
-
(0,
|
|
6030
|
+
(0, import_typeorm62.Column)({ name: "score", type: "float" })
|
|
5999
6031
|
], AssessmentAnswer.prototype, "score", 2);
|
|
6000
6032
|
AssessmentAnswer = __decorateClass([
|
|
6001
|
-
(0,
|
|
6033
|
+
(0, import_typeorm62.Entity)("assessment_answers")
|
|
6002
6034
|
], AssessmentAnswer);
|
|
6003
6035
|
|
|
6004
6036
|
// src/entities/company-skill.entity.ts
|
|
6005
|
-
var
|
|
6037
|
+
var import_typeorm63 = require("typeorm");
|
|
6006
6038
|
var CompanySkill = class extends BaseEntity {
|
|
6007
6039
|
};
|
|
6008
6040
|
// individual index to find core skills by user
|
|
6009
6041
|
__decorateClass([
|
|
6010
|
-
(0,
|
|
6011
|
-
(0,
|
|
6042
|
+
(0, import_typeorm63.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6043
|
+
(0, import_typeorm63.Index)()
|
|
6012
6044
|
], CompanySkill.prototype, "userId", 2);
|
|
6013
6045
|
__decorateClass([
|
|
6014
|
-
(0,
|
|
6015
|
-
(0,
|
|
6046
|
+
(0, import_typeorm63.ManyToOne)(() => User, (user) => user.companySkills),
|
|
6047
|
+
(0, import_typeorm63.JoinColumn)({ name: "user_id" })
|
|
6016
6048
|
], CompanySkill.prototype, "user", 2);
|
|
6017
6049
|
__decorateClass([
|
|
6018
|
-
(0,
|
|
6050
|
+
(0, import_typeorm63.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
6019
6051
|
], CompanySkill.prototype, "skillName", 2);
|
|
6020
6052
|
CompanySkill = __decorateClass([
|
|
6021
|
-
(0,
|
|
6053
|
+
(0, import_typeorm63.Entity)("company_skills")
|
|
6022
6054
|
], CompanySkill);
|
|
6023
6055
|
|
|
6024
6056
|
// src/entities/admin-user-role.entity.ts
|
|
6025
|
-
var
|
|
6057
|
+
var import_typeorm67 = require("typeorm");
|
|
6026
6058
|
|
|
6027
6059
|
// src/entities/admin-role.entity.ts
|
|
6028
|
-
var
|
|
6060
|
+
var import_typeorm66 = require("typeorm");
|
|
6029
6061
|
|
|
6030
6062
|
// src/entities/admin-role-permission.entity.ts
|
|
6031
|
-
var
|
|
6063
|
+
var import_typeorm65 = require("typeorm");
|
|
6032
6064
|
|
|
6033
6065
|
// src/entities/admin-permission.entity.ts
|
|
6034
|
-
var
|
|
6066
|
+
var import_typeorm64 = require("typeorm");
|
|
6035
6067
|
var AdminPermission = class extends BaseEntity {
|
|
6036
6068
|
};
|
|
6037
6069
|
__decorateClass([
|
|
6038
|
-
(0,
|
|
6070
|
+
(0, import_typeorm64.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
6039
6071
|
], AdminPermission.prototype, "permissionName", 2);
|
|
6040
6072
|
__decorateClass([
|
|
6041
|
-
(0,
|
|
6073
|
+
(0, import_typeorm64.Column)({
|
|
6042
6074
|
name: "permission_slug",
|
|
6043
6075
|
type: "varchar",
|
|
6044
6076
|
unique: true,
|
|
6045
6077
|
nullable: true
|
|
6046
6078
|
}),
|
|
6047
|
-
(0,
|
|
6079
|
+
(0, import_typeorm64.Index)()
|
|
6048
6080
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
6049
6081
|
__decorateClass([
|
|
6050
|
-
(0,
|
|
6082
|
+
(0, import_typeorm64.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
6051
6083
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
6052
6084
|
__decorateClass([
|
|
6053
|
-
(0,
|
|
6085
|
+
(0, import_typeorm64.Column)({ name: "module", type: "varchar", nullable: true })
|
|
6054
6086
|
], AdminPermission.prototype, "module", 2);
|
|
6055
6087
|
__decorateClass([
|
|
6056
|
-
(0,
|
|
6088
|
+
(0, import_typeorm64.Column)({ name: "is_active", type: "boolean", default: true })
|
|
6057
6089
|
], AdminPermission.prototype, "isActive", 2);
|
|
6058
6090
|
__decorateClass([
|
|
6059
|
-
(0,
|
|
6091
|
+
(0, import_typeorm64.OneToMany)(
|
|
6060
6092
|
() => AdminRolePermission,
|
|
6061
6093
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
6062
6094
|
)
|
|
6063
6095
|
], AdminPermission.prototype, "adminRole", 2);
|
|
6064
6096
|
AdminPermission = __decorateClass([
|
|
6065
|
-
(0,
|
|
6097
|
+
(0, import_typeorm64.Entity)("admin_permissions")
|
|
6066
6098
|
], AdminPermission);
|
|
6067
6099
|
|
|
6068
6100
|
// src/entities/admin-role-permission.entity.ts
|
|
6069
6101
|
var AdminRolePermission = class extends BaseEntity {
|
|
6070
6102
|
};
|
|
6071
6103
|
__decorateClass([
|
|
6072
|
-
(0,
|
|
6104
|
+
(0, import_typeorm65.Column)({
|
|
6073
6105
|
name: "role_id",
|
|
6074
6106
|
type: "int",
|
|
6075
6107
|
nullable: true,
|
|
@@ -6077,11 +6109,11 @@ __decorateClass([
|
|
|
6077
6109
|
})
|
|
6078
6110
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
6079
6111
|
__decorateClass([
|
|
6080
|
-
(0,
|
|
6081
|
-
(0,
|
|
6112
|
+
(0, import_typeorm65.ManyToOne)(() => AdminRole),
|
|
6113
|
+
(0, import_typeorm65.JoinColumn)({ name: "role_id" })
|
|
6082
6114
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
6083
6115
|
__decorateClass([
|
|
6084
|
-
(0,
|
|
6116
|
+
(0, import_typeorm65.Column)({
|
|
6085
6117
|
name: "permission_id",
|
|
6086
6118
|
type: "int",
|
|
6087
6119
|
nullable: true,
|
|
@@ -6089,47 +6121,47 @@ __decorateClass([
|
|
|
6089
6121
|
})
|
|
6090
6122
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
6091
6123
|
__decorateClass([
|
|
6092
|
-
(0,
|
|
6093
|
-
(0,
|
|
6124
|
+
(0, import_typeorm65.ManyToOne)(() => AdminPermission),
|
|
6125
|
+
(0, import_typeorm65.JoinColumn)({ name: "permission_id" })
|
|
6094
6126
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
6095
6127
|
AdminRolePermission = __decorateClass([
|
|
6096
|
-
(0,
|
|
6128
|
+
(0, import_typeorm65.Entity)("admin_role_permissions")
|
|
6097
6129
|
], AdminRolePermission);
|
|
6098
6130
|
|
|
6099
6131
|
// src/entities/admin-role.entity.ts
|
|
6100
6132
|
var AdminRole = class extends BaseEntity {
|
|
6101
6133
|
};
|
|
6102
6134
|
__decorateClass([
|
|
6103
|
-
(0,
|
|
6135
|
+
(0, import_typeorm66.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
6104
6136
|
], AdminRole.prototype, "roleName", 2);
|
|
6105
6137
|
__decorateClass([
|
|
6106
|
-
(0,
|
|
6107
|
-
(0,
|
|
6138
|
+
(0, import_typeorm66.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
6139
|
+
(0, import_typeorm66.Index)()
|
|
6108
6140
|
], AdminRole.prototype, "roleSlug", 2);
|
|
6109
6141
|
__decorateClass([
|
|
6110
|
-
(0,
|
|
6142
|
+
(0, import_typeorm66.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
6111
6143
|
], AdminRole.prototype, "roleDescription", 2);
|
|
6112
6144
|
__decorateClass([
|
|
6113
|
-
(0,
|
|
6145
|
+
(0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: true })
|
|
6114
6146
|
], AdminRole.prototype, "isActive", 2);
|
|
6115
6147
|
__decorateClass([
|
|
6116
|
-
(0,
|
|
6148
|
+
(0, import_typeorm66.OneToMany)(
|
|
6117
6149
|
() => AdminRolePermission,
|
|
6118
6150
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
6119
6151
|
)
|
|
6120
6152
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
6121
6153
|
__decorateClass([
|
|
6122
|
-
(0,
|
|
6154
|
+
(0, import_typeorm66.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
6123
6155
|
], AdminRole.prototype, "userRoles", 2);
|
|
6124
6156
|
AdminRole = __decorateClass([
|
|
6125
|
-
(0,
|
|
6157
|
+
(0, import_typeorm66.Entity)("admin_roles")
|
|
6126
6158
|
], AdminRole);
|
|
6127
6159
|
|
|
6128
6160
|
// src/entities/admin-user-role.entity.ts
|
|
6129
6161
|
var AdminUserRole = class extends BaseEntity {
|
|
6130
6162
|
};
|
|
6131
6163
|
__decorateClass([
|
|
6132
|
-
(0,
|
|
6164
|
+
(0, import_typeorm67.Column)({
|
|
6133
6165
|
name: "user_id",
|
|
6134
6166
|
type: "int",
|
|
6135
6167
|
nullable: true,
|
|
@@ -6137,11 +6169,11 @@ __decorateClass([
|
|
|
6137
6169
|
})
|
|
6138
6170
|
], AdminUserRole.prototype, "userId", 2);
|
|
6139
6171
|
__decorateClass([
|
|
6140
|
-
(0,
|
|
6141
|
-
(0,
|
|
6172
|
+
(0, import_typeorm67.ManyToOne)(() => User),
|
|
6173
|
+
(0, import_typeorm67.JoinColumn)({ name: "user_id" })
|
|
6142
6174
|
], AdminUserRole.prototype, "user", 2);
|
|
6143
6175
|
__decorateClass([
|
|
6144
|
-
(0,
|
|
6176
|
+
(0, import_typeorm67.Column)({
|
|
6145
6177
|
name: "role_id",
|
|
6146
6178
|
type: "int",
|
|
6147
6179
|
nullable: true,
|
|
@@ -6149,58 +6181,58 @@ __decorateClass([
|
|
|
6149
6181
|
})
|
|
6150
6182
|
], AdminUserRole.prototype, "roleId", 2);
|
|
6151
6183
|
__decorateClass([
|
|
6152
|
-
(0,
|
|
6153
|
-
(0,
|
|
6184
|
+
(0, import_typeorm67.ManyToOne)(() => AdminRole),
|
|
6185
|
+
(0, import_typeorm67.JoinColumn)({ name: "role_id" })
|
|
6154
6186
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
6155
6187
|
AdminUserRole = __decorateClass([
|
|
6156
|
-
(0,
|
|
6188
|
+
(0, import_typeorm67.Entity)("admin_user_roles")
|
|
6157
6189
|
], AdminUserRole);
|
|
6158
6190
|
|
|
6159
6191
|
// src/entities/freelancer-resume.entity.ts
|
|
6160
|
-
var
|
|
6192
|
+
var import_typeorm68 = require("typeorm");
|
|
6161
6193
|
var FreelancerResume = class extends BaseEntity {
|
|
6162
6194
|
};
|
|
6163
6195
|
// individual index to find profile by user
|
|
6164
6196
|
__decorateClass([
|
|
6165
|
-
(0,
|
|
6166
|
-
(0,
|
|
6197
|
+
(0, import_typeorm68.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6198
|
+
(0, import_typeorm68.Index)()
|
|
6167
6199
|
], FreelancerResume.prototype, "userId", 2);
|
|
6168
6200
|
__decorateClass([
|
|
6169
|
-
(0,
|
|
6170
|
-
(0,
|
|
6201
|
+
(0, import_typeorm68.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
6202
|
+
(0, import_typeorm68.JoinColumn)({ name: "user_id" })
|
|
6171
6203
|
], FreelancerResume.prototype, "user", 2);
|
|
6172
6204
|
__decorateClass([
|
|
6173
|
-
(0,
|
|
6205
|
+
(0, import_typeorm68.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
6174
6206
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
6175
6207
|
__decorateClass([
|
|
6176
|
-
(0,
|
|
6208
|
+
(0, import_typeorm68.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
6177
6209
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
6178
6210
|
FreelancerResume = __decorateClass([
|
|
6179
|
-
(0,
|
|
6211
|
+
(0, import_typeorm68.Entity)("freelancer_resumes")
|
|
6180
6212
|
], FreelancerResume);
|
|
6181
6213
|
|
|
6182
6214
|
// src/entities/signature.entity.ts
|
|
6183
|
-
var
|
|
6215
|
+
var import_typeorm69 = require("typeorm");
|
|
6184
6216
|
var Signature = class extends BaseEntity {
|
|
6185
6217
|
};
|
|
6186
6218
|
// individual index to find profile by user
|
|
6187
6219
|
__decorateClass([
|
|
6188
|
-
(0,
|
|
6189
|
-
(0,
|
|
6220
|
+
(0, import_typeorm69.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6221
|
+
(0, import_typeorm69.Index)()
|
|
6190
6222
|
], Signature.prototype, "userId", 2);
|
|
6191
6223
|
__decorateClass([
|
|
6192
|
-
(0,
|
|
6193
|
-
(0,
|
|
6224
|
+
(0, import_typeorm69.ManyToOne)(() => User, (user) => user.signatures),
|
|
6225
|
+
(0, import_typeorm69.JoinColumn)({ name: "user_id" })
|
|
6194
6226
|
], Signature.prototype, "user", 2);
|
|
6195
6227
|
__decorateClass([
|
|
6196
|
-
(0,
|
|
6228
|
+
(0, import_typeorm69.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
6197
6229
|
], Signature.prototype, "signatureUrl", 2);
|
|
6198
6230
|
Signature = __decorateClass([
|
|
6199
|
-
(0,
|
|
6231
|
+
(0, import_typeorm69.Entity)("signatures")
|
|
6200
6232
|
], Signature);
|
|
6201
6233
|
|
|
6202
6234
|
// src/entities/dispute.entity.ts
|
|
6203
|
-
var
|
|
6235
|
+
var import_typeorm70 = require("typeorm");
|
|
6204
6236
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
6205
6237
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
6206
6238
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -6221,36 +6253,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
6221
6253
|
var Dispute = class extends BaseEntity {
|
|
6222
6254
|
};
|
|
6223
6255
|
__decorateClass([
|
|
6224
|
-
(0,
|
|
6225
|
-
(0,
|
|
6256
|
+
(0, import_typeorm70.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
6257
|
+
(0, import_typeorm70.Index)()
|
|
6226
6258
|
], Dispute.prototype, "clientId", 2);
|
|
6227
6259
|
__decorateClass([
|
|
6228
|
-
(0,
|
|
6229
|
-
(0,
|
|
6260
|
+
(0, import_typeorm70.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
6261
|
+
(0, import_typeorm70.JoinColumn)({ name: "client_id" })
|
|
6230
6262
|
], Dispute.prototype, "client", 2);
|
|
6231
6263
|
__decorateClass([
|
|
6232
|
-
(0,
|
|
6233
|
-
(0,
|
|
6264
|
+
(0, import_typeorm70.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6265
|
+
(0, import_typeorm70.Index)()
|
|
6234
6266
|
], Dispute.prototype, "freelancerId", 2);
|
|
6235
6267
|
__decorateClass([
|
|
6236
|
-
(0,
|
|
6237
|
-
(0,
|
|
6268
|
+
(0, import_typeorm70.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
6269
|
+
(0, import_typeorm70.JoinColumn)({ name: "freelancer_id" })
|
|
6238
6270
|
], Dispute.prototype, "freelancer", 2);
|
|
6239
6271
|
__decorateClass([
|
|
6240
|
-
(0,
|
|
6272
|
+
(0, import_typeorm70.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
6241
6273
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
6242
6274
|
__decorateClass([
|
|
6243
|
-
(0,
|
|
6244
|
-
(0,
|
|
6275
|
+
(0, import_typeorm70.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
6276
|
+
(0, import_typeorm70.Index)()
|
|
6245
6277
|
], Dispute.prototype, "disputeType", 2);
|
|
6246
6278
|
__decorateClass([
|
|
6247
|
-
(0,
|
|
6279
|
+
(0, import_typeorm70.Column)({ name: "description", type: "varchar", nullable: true })
|
|
6248
6280
|
], Dispute.prototype, "description", 2);
|
|
6249
6281
|
__decorateClass([
|
|
6250
|
-
(0,
|
|
6282
|
+
(0, import_typeorm70.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
6251
6283
|
], Dispute.prototype, "comment", 2);
|
|
6252
6284
|
__decorateClass([
|
|
6253
|
-
(0,
|
|
6285
|
+
(0, import_typeorm70.Column)({
|
|
6254
6286
|
name: "status",
|
|
6255
6287
|
type: "enum",
|
|
6256
6288
|
enum: DisputeStatusEnum,
|
|
@@ -6258,7 +6290,7 @@ __decorateClass([
|
|
|
6258
6290
|
})
|
|
6259
6291
|
], Dispute.prototype, "status", 2);
|
|
6260
6292
|
__decorateClass([
|
|
6261
|
-
(0,
|
|
6293
|
+
(0, import_typeorm70.Column)({
|
|
6262
6294
|
name: "initiator_type",
|
|
6263
6295
|
type: "enum",
|
|
6264
6296
|
enum: InitiatorTypeEnum,
|
|
@@ -6267,33 +6299,33 @@ __decorateClass([
|
|
|
6267
6299
|
})
|
|
6268
6300
|
], Dispute.prototype, "initiatorType", 2);
|
|
6269
6301
|
__decorateClass([
|
|
6270
|
-
(0,
|
|
6271
|
-
(0,
|
|
6302
|
+
(0, import_typeorm70.Column)({ name: "initiator_id", type: "integer" }),
|
|
6303
|
+
(0, import_typeorm70.Index)()
|
|
6272
6304
|
], Dispute.prototype, "initiatorId", 2);
|
|
6273
6305
|
__decorateClass([
|
|
6274
|
-
(0,
|
|
6275
|
-
(0,
|
|
6306
|
+
(0, import_typeorm70.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
6307
|
+
(0, import_typeorm70.JoinColumn)({ name: "initiator_id" })
|
|
6276
6308
|
], Dispute.prototype, "initiator", 2);
|
|
6277
6309
|
__decorateClass([
|
|
6278
|
-
(0,
|
|
6279
|
-
(0,
|
|
6310
|
+
(0, import_typeorm70.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
6311
|
+
(0, import_typeorm70.Index)()
|
|
6280
6312
|
], Dispute.prototype, "respondentId", 2);
|
|
6281
6313
|
__decorateClass([
|
|
6282
|
-
(0,
|
|
6283
|
-
(0,
|
|
6314
|
+
(0, import_typeorm70.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
6315
|
+
(0, import_typeorm70.JoinColumn)({ name: "respondent_id" })
|
|
6284
6316
|
], Dispute.prototype, "respondent", 2);
|
|
6285
6317
|
__decorateClass([
|
|
6286
|
-
(0,
|
|
6318
|
+
(0, import_typeorm70.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
6287
6319
|
], Dispute.prototype, "attachments", 2);
|
|
6288
6320
|
__decorateClass([
|
|
6289
|
-
(0,
|
|
6321
|
+
(0, import_typeorm70.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
6290
6322
|
], Dispute.prototype, "dynamicFields", 2);
|
|
6291
6323
|
Dispute = __decorateClass([
|
|
6292
|
-
(0,
|
|
6324
|
+
(0, import_typeorm70.Entity)("disputes")
|
|
6293
6325
|
], Dispute);
|
|
6294
6326
|
|
|
6295
6327
|
// src/entities/stripe-transaction.entity.ts
|
|
6296
|
-
var
|
|
6328
|
+
var import_typeorm71 = require("typeorm");
|
|
6297
6329
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
6298
6330
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
6299
6331
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -6315,97 +6347,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
6315
6347
|
// Full Stripe session response
|
|
6316
6348
|
};
|
|
6317
6349
|
__decorateClass([
|
|
6318
|
-
(0,
|
|
6319
|
-
(0,
|
|
6350
|
+
(0, import_typeorm71.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6351
|
+
(0, import_typeorm71.Index)()
|
|
6320
6352
|
], StripeTransaction.prototype, "userId", 2);
|
|
6321
6353
|
__decorateClass([
|
|
6322
|
-
(0,
|
|
6323
|
-
(0,
|
|
6354
|
+
(0, import_typeorm71.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
6355
|
+
(0, import_typeorm71.JoinColumn)({ name: "user_id" })
|
|
6324
6356
|
], StripeTransaction.prototype, "user", 2);
|
|
6325
6357
|
__decorateClass([
|
|
6326
|
-
(0,
|
|
6358
|
+
(0, import_typeorm71.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
6327
6359
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
6328
6360
|
__decorateClass([
|
|
6329
|
-
(0,
|
|
6361
|
+
(0, import_typeorm71.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
6330
6362
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
6331
6363
|
__decorateClass([
|
|
6332
|
-
(0,
|
|
6364
|
+
(0, import_typeorm71.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
6333
6365
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
6334
6366
|
__decorateClass([
|
|
6335
|
-
(0,
|
|
6367
|
+
(0, import_typeorm71.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
6336
6368
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
6337
6369
|
__decorateClass([
|
|
6338
|
-
(0,
|
|
6370
|
+
(0, import_typeorm71.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
6339
6371
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
6340
6372
|
__decorateClass([
|
|
6341
|
-
(0,
|
|
6373
|
+
(0, import_typeorm71.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
6342
6374
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
6343
6375
|
__decorateClass([
|
|
6344
|
-
(0,
|
|
6376
|
+
(0, import_typeorm71.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
6345
6377
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
6346
6378
|
__decorateClass([
|
|
6347
|
-
(0,
|
|
6379
|
+
(0, import_typeorm71.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
6348
6380
|
], StripeTransaction.prototype, "type", 2);
|
|
6349
6381
|
__decorateClass([
|
|
6350
|
-
(0,
|
|
6382
|
+
(0, import_typeorm71.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
6351
6383
|
], StripeTransaction.prototype, "currency", 2);
|
|
6352
6384
|
__decorateClass([
|
|
6353
|
-
(0,
|
|
6385
|
+
(0, import_typeorm71.Column)({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
|
|
6354
6386
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
6355
6387
|
__decorateClass([
|
|
6356
|
-
(0,
|
|
6388
|
+
(0, import_typeorm71.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
6357
6389
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
6358
6390
|
__decorateClass([
|
|
6359
|
-
(0,
|
|
6391
|
+
(0, import_typeorm71.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
6360
6392
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
6361
6393
|
__decorateClass([
|
|
6362
|
-
(0,
|
|
6394
|
+
(0, import_typeorm71.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
6363
6395
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
6364
6396
|
__decorateClass([
|
|
6365
|
-
(0,
|
|
6397
|
+
(0, import_typeorm71.Column)({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
|
|
6366
6398
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
6367
6399
|
__decorateClass([
|
|
6368
|
-
(0,
|
|
6400
|
+
(0, import_typeorm71.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
6369
6401
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
6370
6402
|
__decorateClass([
|
|
6371
|
-
(0,
|
|
6403
|
+
(0, import_typeorm71.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
6372
6404
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
6373
6405
|
__decorateClass([
|
|
6374
|
-
(0,
|
|
6406
|
+
(0, import_typeorm71.Column)({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
|
|
6375
6407
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
6376
6408
|
__decorateClass([
|
|
6377
|
-
(0,
|
|
6409
|
+
(0, import_typeorm71.Column)({ name: "description", type: "text", nullable: true })
|
|
6378
6410
|
], StripeTransaction.prototype, "description", 2);
|
|
6379
6411
|
__decorateClass([
|
|
6380
|
-
(0,
|
|
6412
|
+
(0, import_typeorm71.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6381
6413
|
], StripeTransaction.prototype, "status", 2);
|
|
6382
6414
|
__decorateClass([
|
|
6383
|
-
(0,
|
|
6415
|
+
(0, import_typeorm71.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
6384
6416
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
6385
6417
|
__decorateClass([
|
|
6386
|
-
(0,
|
|
6418
|
+
(0, import_typeorm71.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6387
6419
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
6388
6420
|
__decorateClass([
|
|
6389
|
-
(0,
|
|
6421
|
+
(0, import_typeorm71.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
6390
6422
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
6391
6423
|
__decorateClass([
|
|
6392
|
-
(0,
|
|
6424
|
+
(0, import_typeorm71.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
6393
6425
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
6394
6426
|
__decorateClass([
|
|
6395
|
-
(0,
|
|
6427
|
+
(0, import_typeorm71.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
6396
6428
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
6397
6429
|
__decorateClass([
|
|
6398
|
-
(0,
|
|
6430
|
+
(0, import_typeorm71.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
6399
6431
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
6400
6432
|
StripeTransaction = __decorateClass([
|
|
6401
|
-
(0,
|
|
6433
|
+
(0, import_typeorm71.Entity)("stripe_transactions")
|
|
6402
6434
|
], StripeTransaction);
|
|
6403
6435
|
|
|
6404
6436
|
// src/entities/wallet.entity.ts
|
|
6405
|
-
var
|
|
6437
|
+
var import_typeorm73 = require("typeorm");
|
|
6406
6438
|
|
|
6407
6439
|
// src/entities/wallet-transaction.entity.ts
|
|
6408
|
-
var
|
|
6440
|
+
var import_typeorm72 = require("typeorm");
|
|
6409
6441
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
6410
6442
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
6411
6443
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -6422,46 +6454,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
6422
6454
|
var WalletTransaction = class extends BaseEntity {
|
|
6423
6455
|
};
|
|
6424
6456
|
__decorateClass([
|
|
6425
|
-
(0,
|
|
6426
|
-
(0,
|
|
6457
|
+
(0, import_typeorm72.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
6458
|
+
(0, import_typeorm72.Index)()
|
|
6427
6459
|
], WalletTransaction.prototype, "walletId", 2);
|
|
6428
6460
|
__decorateClass([
|
|
6429
|
-
(0,
|
|
6430
|
-
(0,
|
|
6461
|
+
(0, import_typeorm72.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
6462
|
+
(0, import_typeorm72.JoinColumn)({ name: "wallet_id" })
|
|
6431
6463
|
], WalletTransaction.prototype, "wallet", 2);
|
|
6432
6464
|
__decorateClass([
|
|
6433
|
-
(0,
|
|
6465
|
+
(0, import_typeorm72.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
6434
6466
|
], WalletTransaction.prototype, "amount", 2);
|
|
6435
6467
|
__decorateClass([
|
|
6436
|
-
(0,
|
|
6468
|
+
(0, import_typeorm72.Column)({ name: "balance_before", type: "bigint", nullable: true })
|
|
6437
6469
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
6438
6470
|
__decorateClass([
|
|
6439
|
-
(0,
|
|
6471
|
+
(0, import_typeorm72.Column)({ name: "balance_after", type: "bigint", nullable: true })
|
|
6440
6472
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
6441
6473
|
__decorateClass([
|
|
6442
|
-
(0,
|
|
6474
|
+
(0, import_typeorm72.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
6443
6475
|
], WalletTransaction.prototype, "type", 2);
|
|
6444
6476
|
__decorateClass([
|
|
6445
|
-
(0,
|
|
6477
|
+
(0, import_typeorm72.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6446
6478
|
], WalletTransaction.prototype, "status", 2);
|
|
6447
6479
|
__decorateClass([
|
|
6448
|
-
(0,
|
|
6480
|
+
(0, import_typeorm72.Column)({ name: "description", type: "text", nullable: true })
|
|
6449
6481
|
], WalletTransaction.prototype, "description", 2);
|
|
6450
6482
|
__decorateClass([
|
|
6451
|
-
(0,
|
|
6483
|
+
(0, import_typeorm72.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6452
6484
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
6453
6485
|
__decorateClass([
|
|
6454
|
-
(0,
|
|
6486
|
+
(0, import_typeorm72.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
6455
6487
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
6456
6488
|
__decorateClass([
|
|
6457
|
-
(0,
|
|
6489
|
+
(0, import_typeorm72.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
6458
6490
|
], WalletTransaction.prototype, "metaData", 2);
|
|
6459
6491
|
__decorateClass([
|
|
6460
|
-
(0,
|
|
6461
|
-
(0,
|
|
6492
|
+
(0, import_typeorm72.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
6493
|
+
(0, import_typeorm72.Index)()
|
|
6462
6494
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
6463
6495
|
WalletTransaction = __decorateClass([
|
|
6464
|
-
(0,
|
|
6496
|
+
(0, import_typeorm72.Entity)("wallet_transactions")
|
|
6465
6497
|
], WalletTransaction);
|
|
6466
6498
|
|
|
6467
6499
|
// src/entities/wallet.entity.ts
|
|
@@ -6479,43 +6511,43 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
6479
6511
|
var Wallet = class extends BaseEntity {
|
|
6480
6512
|
};
|
|
6481
6513
|
__decorateClass([
|
|
6482
|
-
(0,
|
|
6483
|
-
(0,
|
|
6514
|
+
(0, import_typeorm73.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6515
|
+
(0, import_typeorm73.Index)()
|
|
6484
6516
|
], Wallet.prototype, "userId", 2);
|
|
6485
6517
|
__decorateClass([
|
|
6486
|
-
(0,
|
|
6487
|
-
(0,
|
|
6518
|
+
(0, import_typeorm73.OneToOne)(() => User, (user) => user.wallet),
|
|
6519
|
+
(0, import_typeorm73.JoinColumn)({ name: "user_id" })
|
|
6488
6520
|
], Wallet.prototype, "user", 2);
|
|
6489
6521
|
__decorateClass([
|
|
6490
|
-
(0,
|
|
6522
|
+
(0, import_typeorm73.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
6491
6523
|
], Wallet.prototype, "accountType", 2);
|
|
6492
6524
|
__decorateClass([
|
|
6493
|
-
(0,
|
|
6525
|
+
(0, import_typeorm73.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
6494
6526
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
6495
6527
|
__decorateClass([
|
|
6496
|
-
(0,
|
|
6528
|
+
(0, import_typeorm73.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
6497
6529
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
6498
6530
|
__decorateClass([
|
|
6499
|
-
(0,
|
|
6531
|
+
(0, import_typeorm73.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
6500
6532
|
], Wallet.prototype, "walletBalance", 2);
|
|
6501
6533
|
__decorateClass([
|
|
6502
|
-
(0,
|
|
6534
|
+
(0, import_typeorm73.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
|
|
6503
6535
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
6504
6536
|
__decorateClass([
|
|
6505
|
-
(0,
|
|
6537
|
+
(0, import_typeorm73.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
6506
6538
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
6507
6539
|
__decorateClass([
|
|
6508
|
-
(0,
|
|
6540
|
+
(0, import_typeorm73.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
6509
6541
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
6510
6542
|
__decorateClass([
|
|
6511
|
-
(0,
|
|
6543
|
+
(0, import_typeorm73.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
6512
6544
|
], Wallet.prototype, "walletTransactions", 2);
|
|
6513
6545
|
Wallet = __decorateClass([
|
|
6514
|
-
(0,
|
|
6546
|
+
(0, import_typeorm73.Entity)("wallets")
|
|
6515
6547
|
], Wallet);
|
|
6516
6548
|
|
|
6517
6549
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
6518
|
-
var
|
|
6550
|
+
var import_typeorm74 = require("typeorm");
|
|
6519
6551
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
6520
6552
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
6521
6553
|
AssessmentRequestStatusEnum2["APPROVED"] = "APPROVED";
|
|
@@ -6525,23 +6557,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
6525
6557
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
6526
6558
|
};
|
|
6527
6559
|
__decorateClass([
|
|
6528
|
-
(0,
|
|
6529
|
-
(0,
|
|
6560
|
+
(0, import_typeorm74.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6561
|
+
(0, import_typeorm74.Index)()
|
|
6530
6562
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
6531
6563
|
__decorateClass([
|
|
6532
|
-
(0,
|
|
6533
|
-
(0,
|
|
6564
|
+
(0, import_typeorm74.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
|
|
6565
|
+
(0, import_typeorm74.JoinColumn)({ name: "freelancer_id" })
|
|
6534
6566
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
6535
6567
|
__decorateClass([
|
|
6536
|
-
(0,
|
|
6537
|
-
(0,
|
|
6568
|
+
(0, import_typeorm74.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
6569
|
+
(0, import_typeorm74.Index)()
|
|
6538
6570
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
6539
6571
|
__decorateClass([
|
|
6540
|
-
(0,
|
|
6541
|
-
(0,
|
|
6572
|
+
(0, import_typeorm74.ManyToOne)(() => User, (user) => user.assessmentRequests),
|
|
6573
|
+
(0, import_typeorm74.JoinColumn)({ name: "approved_by_id" })
|
|
6542
6574
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
6543
6575
|
__decorateClass([
|
|
6544
|
-
(0,
|
|
6576
|
+
(0, import_typeorm74.Column)({
|
|
6545
6577
|
name: "status",
|
|
6546
6578
|
type: "enum",
|
|
6547
6579
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -6549,89 +6581,89 @@ __decorateClass([
|
|
|
6549
6581
|
})
|
|
6550
6582
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
6551
6583
|
__decorateClass([
|
|
6552
|
-
(0,
|
|
6584
|
+
(0, import_typeorm74.Column)({ name: "assessment_link", type: "text", nullable: true })
|
|
6553
6585
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
6554
6586
|
FreelancerAssessmentRequest = __decorateClass([
|
|
6555
|
-
(0,
|
|
6587
|
+
(0, import_typeorm74.Entity)({ name: "freelancer_assessment_requests" })
|
|
6556
6588
|
], FreelancerAssessmentRequest);
|
|
6557
6589
|
|
|
6558
6590
|
// src/entities/in-app-notification.entity.ts
|
|
6559
|
-
var
|
|
6591
|
+
var import_typeorm75 = require("typeorm");
|
|
6560
6592
|
var InAppNotification = class extends BaseEntity {
|
|
6561
6593
|
};
|
|
6562
6594
|
__decorateClass([
|
|
6563
|
-
(0,
|
|
6564
|
-
(0,
|
|
6595
|
+
(0, import_typeorm75.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6596
|
+
(0, import_typeorm75.Index)()
|
|
6565
6597
|
], InAppNotification.prototype, "userId", 2);
|
|
6566
6598
|
__decorateClass([
|
|
6567
|
-
(0,
|
|
6568
|
-
(0,
|
|
6599
|
+
(0, import_typeorm75.ManyToOne)(() => User, (user) => user.inAppNotifications),
|
|
6600
|
+
(0, import_typeorm75.JoinColumn)({ name: "user_id" })
|
|
6569
6601
|
], InAppNotification.prototype, "user", 2);
|
|
6570
6602
|
__decorateClass([
|
|
6571
|
-
(0,
|
|
6603
|
+
(0, import_typeorm75.Column)({ name: "event", type: "varchar", nullable: true })
|
|
6572
6604
|
], InAppNotification.prototype, "event", 2);
|
|
6573
6605
|
__decorateClass([
|
|
6574
|
-
(0,
|
|
6606
|
+
(0, import_typeorm75.Column)({ name: "title", type: "varchar", nullable: true })
|
|
6575
6607
|
], InAppNotification.prototype, "title", 2);
|
|
6576
6608
|
__decorateClass([
|
|
6577
|
-
(0,
|
|
6609
|
+
(0, import_typeorm75.Column)({ name: "message", type: "varchar", nullable: true })
|
|
6578
6610
|
], InAppNotification.prototype, "message", 2);
|
|
6579
6611
|
__decorateClass([
|
|
6580
|
-
(0,
|
|
6612
|
+
(0, import_typeorm75.Column)({ name: "redirect_url", type: "varchar", nullable: true })
|
|
6581
6613
|
], InAppNotification.prototype, "redirectUrl", 2);
|
|
6582
6614
|
__decorateClass([
|
|
6583
|
-
(0,
|
|
6615
|
+
(0, import_typeorm75.Column)({ name: "is_read", type: "boolean", default: false })
|
|
6584
6616
|
], InAppNotification.prototype, "isRead", 2);
|
|
6585
6617
|
__decorateClass([
|
|
6586
|
-
(0,
|
|
6618
|
+
(0, import_typeorm75.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
6587
6619
|
], InAppNotification.prototype, "metaData", 2);
|
|
6588
6620
|
InAppNotification = __decorateClass([
|
|
6589
|
-
(0,
|
|
6621
|
+
(0, import_typeorm75.Entity)("in_app_notifications")
|
|
6590
6622
|
], InAppNotification);
|
|
6591
6623
|
|
|
6592
6624
|
// src/entities/user-subscription.entity.ts
|
|
6593
|
-
var
|
|
6625
|
+
var import_typeorm79 = require("typeorm");
|
|
6594
6626
|
|
|
6595
6627
|
// src/entities/user-subscription-plan.entity.ts
|
|
6596
|
-
var
|
|
6628
|
+
var import_typeorm78 = require("typeorm");
|
|
6597
6629
|
|
|
6598
6630
|
// src/entities/user-subscription-plan-feature.entity.ts
|
|
6599
|
-
var
|
|
6631
|
+
var import_typeorm76 = require("typeorm");
|
|
6600
6632
|
var UserSubscriptionPlanFeature = class extends BaseEntity {
|
|
6601
6633
|
};
|
|
6602
6634
|
__decorateClass([
|
|
6603
|
-
(0,
|
|
6604
|
-
(0,
|
|
6635
|
+
(0, import_typeorm76.Column)({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
|
|
6636
|
+
(0, import_typeorm76.Index)()
|
|
6605
6637
|
], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlanId", 2);
|
|
6606
6638
|
__decorateClass([
|
|
6607
|
-
(0,
|
|
6608
|
-
(0,
|
|
6639
|
+
(0, import_typeorm76.ManyToOne)(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanFeatures, { onDelete: "CASCADE", nullable: false }),
|
|
6640
|
+
(0, import_typeorm76.JoinColumn)({ name: "user_subscription_plan_id" })
|
|
6609
6641
|
], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlan", 2);
|
|
6610
6642
|
__decorateClass([
|
|
6611
|
-
(0,
|
|
6643
|
+
(0, import_typeorm76.Column)({ name: "plan_feature_id", type: "integer", nullable: false })
|
|
6612
6644
|
], UserSubscriptionPlanFeature.prototype, "planFeatureId", 2);
|
|
6613
6645
|
__decorateClass([
|
|
6614
|
-
(0,
|
|
6646
|
+
(0, import_typeorm76.Column)({ name: "name", type: "varchar", length: 200 })
|
|
6615
6647
|
], UserSubscriptionPlanFeature.prototype, "name", 2);
|
|
6616
6648
|
__decorateClass([
|
|
6617
|
-
(0,
|
|
6618
|
-
(0,
|
|
6649
|
+
(0, import_typeorm76.Column)({ name: "slug", type: "varchar", length: 100 }),
|
|
6650
|
+
(0, import_typeorm76.Index)()
|
|
6619
6651
|
], UserSubscriptionPlanFeature.prototype, "slug", 2);
|
|
6620
6652
|
__decorateClass([
|
|
6621
|
-
(0,
|
|
6653
|
+
(0, import_typeorm76.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
6622
6654
|
], UserSubscriptionPlanFeature.prototype, "tooltip", 2);
|
|
6623
6655
|
__decorateClass([
|
|
6624
|
-
(0,
|
|
6656
|
+
(0, import_typeorm76.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
6625
6657
|
], UserSubscriptionPlanFeature.prototype, "sortOrder", 2);
|
|
6626
6658
|
__decorateClass([
|
|
6627
|
-
(0,
|
|
6659
|
+
(0, import_typeorm76.Column)({ name: "is_active", type: "boolean", default: true })
|
|
6628
6660
|
], UserSubscriptionPlanFeature.prototype, "isActive", 2);
|
|
6629
6661
|
UserSubscriptionPlanFeature = __decorateClass([
|
|
6630
|
-
(0,
|
|
6662
|
+
(0, import_typeorm76.Entity)("user_subscription_plan_features")
|
|
6631
6663
|
], UserSubscriptionPlanFeature);
|
|
6632
6664
|
|
|
6633
6665
|
// src/entities/user-subscription-plan-pricing.entity.ts
|
|
6634
|
-
var
|
|
6666
|
+
var import_typeorm77 = require("typeorm");
|
|
6635
6667
|
var UserSubscriptionPlanPricingBillingCycleEnum = /* @__PURE__ */ ((UserSubscriptionPlanPricingBillingCycleEnum2) => {
|
|
6636
6668
|
UserSubscriptionPlanPricingBillingCycleEnum2["MONTHLY"] = "MONTHLY";
|
|
6637
6669
|
UserSubscriptionPlanPricingBillingCycleEnum2["YEARLY"] = "YEARLY";
|
|
@@ -6640,42 +6672,42 @@ var UserSubscriptionPlanPricingBillingCycleEnum = /* @__PURE__ */ ((UserSubscrip
|
|
|
6640
6672
|
var UserSubscriptionPlanPricing = class extends BaseEntity {
|
|
6641
6673
|
};
|
|
6642
6674
|
__decorateClass([
|
|
6643
|
-
(0,
|
|
6644
|
-
(0,
|
|
6675
|
+
(0, import_typeorm77.Column)({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
|
|
6676
|
+
(0, import_typeorm77.Index)()
|
|
6645
6677
|
], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlanId", 2);
|
|
6646
6678
|
__decorateClass([
|
|
6647
|
-
(0,
|
|
6648
|
-
(0,
|
|
6679
|
+
(0, import_typeorm77.ManyToOne)(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanPricing, { onDelete: "CASCADE", nullable: false }),
|
|
6680
|
+
(0, import_typeorm77.JoinColumn)({ name: "user_subscription_plan_id" })
|
|
6649
6681
|
], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlan", 2);
|
|
6650
6682
|
__decorateClass([
|
|
6651
|
-
(0,
|
|
6683
|
+
(0, import_typeorm77.Column)({ name: "plan_pricing_id", type: "integer", nullable: false })
|
|
6652
6684
|
], UserSubscriptionPlanPricing.prototype, "planPricingId", 2);
|
|
6653
6685
|
__decorateClass([
|
|
6654
|
-
(0,
|
|
6686
|
+
(0, import_typeorm77.Column)({ name: "billing_cycle", type: "enum", enum: UserSubscriptionPlanPricingBillingCycleEnum })
|
|
6655
6687
|
], UserSubscriptionPlanPricing.prototype, "billingCycle", 2);
|
|
6656
6688
|
__decorateClass([
|
|
6657
|
-
(0,
|
|
6689
|
+
(0, import_typeorm77.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
6658
6690
|
], UserSubscriptionPlanPricing.prototype, "price", 2);
|
|
6659
6691
|
__decorateClass([
|
|
6660
|
-
(0,
|
|
6692
|
+
(0, import_typeorm77.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
6661
6693
|
], UserSubscriptionPlanPricing.prototype, "originalPrice", 2);
|
|
6662
6694
|
__decorateClass([
|
|
6663
|
-
(0,
|
|
6695
|
+
(0, import_typeorm77.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
6664
6696
|
], UserSubscriptionPlanPricing.prototype, "discountPct", 2);
|
|
6665
6697
|
__decorateClass([
|
|
6666
|
-
(0,
|
|
6698
|
+
(0, import_typeorm77.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
6667
6699
|
], UserSubscriptionPlanPricing.prototype, "currency", 2);
|
|
6668
6700
|
__decorateClass([
|
|
6669
|
-
(0,
|
|
6701
|
+
(0, import_typeorm77.Column)({ name: "is_free", type: "boolean", default: false })
|
|
6670
6702
|
], UserSubscriptionPlanPricing.prototype, "isFree", 2);
|
|
6671
6703
|
__decorateClass([
|
|
6672
|
-
(0,
|
|
6704
|
+
(0, import_typeorm77.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true })
|
|
6673
6705
|
], UserSubscriptionPlanPricing.prototype, "stripePriceId", 2);
|
|
6674
6706
|
__decorateClass([
|
|
6675
|
-
(0,
|
|
6707
|
+
(0, import_typeorm77.Column)({ name: "is_active", type: "boolean", default: true })
|
|
6676
6708
|
], UserSubscriptionPlanPricing.prototype, "isActive", 2);
|
|
6677
6709
|
UserSubscriptionPlanPricing = __decorateClass([
|
|
6678
|
-
(0,
|
|
6710
|
+
(0, import_typeorm77.Entity)("user_subscription_plan_pricings")
|
|
6679
6711
|
], UserSubscriptionPlanPricing);
|
|
6680
6712
|
|
|
6681
6713
|
// src/entities/user-subscription-plan.entity.ts
|
|
@@ -6687,44 +6719,44 @@ var UserSubscriptionPlanTypeEnum = /* @__PURE__ */ ((UserSubscriptionPlanTypeEnu
|
|
|
6687
6719
|
var UserSubscriptionPlan = class extends BaseEntity {
|
|
6688
6720
|
};
|
|
6689
6721
|
__decorateClass([
|
|
6690
|
-
(0,
|
|
6722
|
+
(0, import_typeorm78.Column)({ name: "user_subscription_id", type: "integer", nullable: false })
|
|
6691
6723
|
], UserSubscriptionPlan.prototype, "userSubscriptionId", 2);
|
|
6692
6724
|
__decorateClass([
|
|
6693
|
-
(0,
|
|
6694
|
-
(0,
|
|
6725
|
+
(0, import_typeorm78.ManyToOne)(() => UserSubscription, (userSubscription) => userSubscription.userSubscriptionPlans, { onDelete: "CASCADE", nullable: false }),
|
|
6726
|
+
(0, import_typeorm78.JoinColumn)({ name: "user_subscription_id" })
|
|
6695
6727
|
], UserSubscriptionPlan.prototype, "userSubscription", 2);
|
|
6696
6728
|
__decorateClass([
|
|
6697
|
-
(0,
|
|
6729
|
+
(0, import_typeorm78.Column)({ name: "plan_id", type: "integer", nullable: false })
|
|
6698
6730
|
], UserSubscriptionPlan.prototype, "planId", 2);
|
|
6699
6731
|
__decorateClass([
|
|
6700
|
-
(0,
|
|
6732
|
+
(0, import_typeorm78.Column)({ name: "name", type: "varchar", length: 100 })
|
|
6701
6733
|
], UserSubscriptionPlan.prototype, "name", 2);
|
|
6702
6734
|
__decorateClass([
|
|
6703
|
-
(0,
|
|
6735
|
+
(0, import_typeorm78.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
6704
6736
|
], UserSubscriptionPlan.prototype, "slug", 2);
|
|
6705
6737
|
__decorateClass([
|
|
6706
|
-
(0,
|
|
6738
|
+
(0, import_typeorm78.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
6707
6739
|
], UserSubscriptionPlan.prototype, "badgeLabel", 2);
|
|
6708
6740
|
__decorateClass([
|
|
6709
|
-
(0,
|
|
6741
|
+
(0, import_typeorm78.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
6710
6742
|
], UserSubscriptionPlan.prototype, "sortOrder", 2);
|
|
6711
6743
|
__decorateClass([
|
|
6712
|
-
(0,
|
|
6744
|
+
(0, import_typeorm78.Column)({ name: "is_active", type: "boolean", default: true })
|
|
6713
6745
|
], UserSubscriptionPlan.prototype, "isActive", 2);
|
|
6714
6746
|
__decorateClass([
|
|
6715
|
-
(0,
|
|
6747
|
+
(0, import_typeorm78.Column)({ name: "plan_type", type: "enum", enum: UserSubscriptionPlanTypeEnum, default: "BUSINESS" /* BUSINESS */ })
|
|
6716
6748
|
], UserSubscriptionPlan.prototype, "planType", 2);
|
|
6717
6749
|
__decorateClass([
|
|
6718
|
-
(0,
|
|
6750
|
+
(0, import_typeorm78.Column)({ name: "metadata", type: "jsonb", default: {} })
|
|
6719
6751
|
], UserSubscriptionPlan.prototype, "metadata", 2);
|
|
6720
6752
|
__decorateClass([
|
|
6721
|
-
(0,
|
|
6753
|
+
(0, import_typeorm78.OneToMany)(() => UserSubscriptionPlanFeature, (f) => f.userSubscriptionPlan)
|
|
6722
6754
|
], UserSubscriptionPlan.prototype, "userSubscriptionPlanFeatures", 2);
|
|
6723
6755
|
__decorateClass([
|
|
6724
|
-
(0,
|
|
6756
|
+
(0, import_typeorm78.OneToMany)(() => UserSubscriptionPlanPricing, (p) => p.userSubscriptionPlan)
|
|
6725
6757
|
], UserSubscriptionPlan.prototype, "userSubscriptionPlanPricing", 2);
|
|
6726
6758
|
UserSubscriptionPlan = __decorateClass([
|
|
6727
|
-
(0,
|
|
6759
|
+
(0, import_typeorm78.Entity)("user_subscription_plans")
|
|
6728
6760
|
], UserSubscriptionPlan);
|
|
6729
6761
|
|
|
6730
6762
|
// src/entities/user-subscription.entity.ts
|
|
@@ -6742,26 +6774,26 @@ var UserSubscriptionStatusEnum = /* @__PURE__ */ ((UserSubscriptionStatusEnum2)
|
|
|
6742
6774
|
var UserSubscription = class extends BaseEntity {
|
|
6743
6775
|
};
|
|
6744
6776
|
__decorateClass([
|
|
6745
|
-
(0,
|
|
6777
|
+
(0, import_typeorm79.Column)({ name: "user_id", type: "integer", nullable: false })
|
|
6746
6778
|
], UserSubscription.prototype, "userId", 2);
|
|
6747
6779
|
__decorateClass([
|
|
6748
|
-
(0,
|
|
6749
|
-
(0,
|
|
6780
|
+
(0, import_typeorm79.ManyToOne)(() => User, (user) => user.userSubscriptions, { onDelete: "CASCADE", nullable: false }),
|
|
6781
|
+
(0, import_typeorm79.JoinColumn)({ name: "user_id" })
|
|
6750
6782
|
], UserSubscription.prototype, "user", 2);
|
|
6751
6783
|
__decorateClass([
|
|
6752
|
-
(0,
|
|
6784
|
+
(0, import_typeorm79.OneToMany)(() => UserSubscriptionPlan, (plan) => plan.userSubscription)
|
|
6753
6785
|
], UserSubscription.prototype, "userSubscriptionPlans", 2);
|
|
6754
6786
|
__decorateClass([
|
|
6755
|
-
(0,
|
|
6787
|
+
(0, import_typeorm79.Column)({ name: "subscription_amount", type: "integer", nullable: false })
|
|
6756
6788
|
], UserSubscription.prototype, "subscriptionAmount", 2);
|
|
6757
6789
|
__decorateClass([
|
|
6758
|
-
(0,
|
|
6790
|
+
(0, import_typeorm79.Column)({ name: "total_tax_amount", type: "integer", nullable: false })
|
|
6759
6791
|
], UserSubscription.prototype, "totalTaxAmount", 2);
|
|
6760
6792
|
__decorateClass([
|
|
6761
|
-
(0,
|
|
6793
|
+
(0, import_typeorm79.Column)({ name: "total_amount", type: "integer", nullable: false })
|
|
6762
6794
|
], UserSubscription.prototype, "totalAmount", 2);
|
|
6763
6795
|
__decorateClass([
|
|
6764
|
-
(0,
|
|
6796
|
+
(0, import_typeorm79.Column)({
|
|
6765
6797
|
name: "status",
|
|
6766
6798
|
type: "enum",
|
|
6767
6799
|
enum: UserSubscriptionStatusEnum,
|
|
@@ -6769,35 +6801,35 @@ __decorateClass([
|
|
|
6769
6801
|
})
|
|
6770
6802
|
], UserSubscription.prototype, "status", 2);
|
|
6771
6803
|
__decorateClass([
|
|
6772
|
-
(0,
|
|
6804
|
+
(0, import_typeorm79.Column)({
|
|
6773
6805
|
name: "subscription_start_date",
|
|
6774
6806
|
type: "timestamptz",
|
|
6775
6807
|
nullable: true
|
|
6776
6808
|
})
|
|
6777
6809
|
], UserSubscription.prototype, "subscriptionStartDate", 2);
|
|
6778
6810
|
__decorateClass([
|
|
6779
|
-
(0,
|
|
6811
|
+
(0, import_typeorm79.Column)({
|
|
6780
6812
|
name: "subscription_start_date_timestamp",
|
|
6781
6813
|
type: "integer",
|
|
6782
6814
|
nullable: true
|
|
6783
6815
|
})
|
|
6784
6816
|
], UserSubscription.prototype, "subscriptionStartDateTimestamp", 2);
|
|
6785
6817
|
__decorateClass([
|
|
6786
|
-
(0,
|
|
6818
|
+
(0, import_typeorm79.Column)({
|
|
6787
6819
|
name: "subscription_end_date",
|
|
6788
6820
|
type: "timestamptz",
|
|
6789
6821
|
nullable: true
|
|
6790
6822
|
})
|
|
6791
6823
|
], UserSubscription.prototype, "subscriptionEndDate", 2);
|
|
6792
6824
|
__decorateClass([
|
|
6793
|
-
(0,
|
|
6825
|
+
(0, import_typeorm79.Column)({
|
|
6794
6826
|
name: "subscription_end_date_timestamp",
|
|
6795
6827
|
type: "integer",
|
|
6796
6828
|
nullable: true
|
|
6797
6829
|
})
|
|
6798
6830
|
], UserSubscription.prototype, "subscriptionEndDateTimestamp", 2);
|
|
6799
6831
|
__decorateClass([
|
|
6800
|
-
(0,
|
|
6832
|
+
(0, import_typeorm79.Column)({
|
|
6801
6833
|
name: "stripe_price_id",
|
|
6802
6834
|
type: "varchar",
|
|
6803
6835
|
length: 100,
|
|
@@ -6805,7 +6837,7 @@ __decorateClass([
|
|
|
6805
6837
|
})
|
|
6806
6838
|
], UserSubscription.prototype, "stripePriceId", 2);
|
|
6807
6839
|
__decorateClass([
|
|
6808
|
-
(0,
|
|
6840
|
+
(0, import_typeorm79.Column)({
|
|
6809
6841
|
name: "stripe_product_id",
|
|
6810
6842
|
type: "varchar",
|
|
6811
6843
|
length: 100,
|
|
@@ -6813,7 +6845,7 @@ __decorateClass([
|
|
|
6813
6845
|
})
|
|
6814
6846
|
], UserSubscription.prototype, "stripeProductId", 2);
|
|
6815
6847
|
__decorateClass([
|
|
6816
|
-
(0,
|
|
6848
|
+
(0, import_typeorm79.Column)({
|
|
6817
6849
|
name: "stripe_customer_id",
|
|
6818
6850
|
type: "varchar",
|
|
6819
6851
|
length: 64,
|
|
@@ -6821,7 +6853,7 @@ __decorateClass([
|
|
|
6821
6853
|
})
|
|
6822
6854
|
], UserSubscription.prototype, "stripeCustomerId", 2);
|
|
6823
6855
|
__decorateClass([
|
|
6824
|
-
(0,
|
|
6856
|
+
(0, import_typeorm79.Column)({
|
|
6825
6857
|
name: "stripe_subscription_id",
|
|
6826
6858
|
type: "varchar",
|
|
6827
6859
|
length: 64,
|
|
@@ -6830,7 +6862,7 @@ __decorateClass([
|
|
|
6830
6862
|
})
|
|
6831
6863
|
], UserSubscription.prototype, "stripeSubscriptionId", 2);
|
|
6832
6864
|
__decorateClass([
|
|
6833
|
-
(0,
|
|
6865
|
+
(0, import_typeorm79.Column)({
|
|
6834
6866
|
name: "stripe_checkout_session_id",
|
|
6835
6867
|
type: "varchar",
|
|
6836
6868
|
length: 255,
|
|
@@ -6838,7 +6870,7 @@ __decorateClass([
|
|
|
6838
6870
|
})
|
|
6839
6871
|
], UserSubscription.prototype, "stripeCheckoutSessionId", 2);
|
|
6840
6872
|
UserSubscription = __decorateClass([
|
|
6841
|
-
(0,
|
|
6873
|
+
(0, import_typeorm79.Entity)("user_subscriptions")
|
|
6842
6874
|
], UserSubscription);
|
|
6843
6875
|
|
|
6844
6876
|
// src/entities/user.entity.ts
|
|
@@ -6867,57 +6899,57 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
6867
6899
|
var User = class extends BaseEntity {
|
|
6868
6900
|
};
|
|
6869
6901
|
__decorateClass([
|
|
6870
|
-
(0,
|
|
6902
|
+
(0, import_typeorm80.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
6871
6903
|
], User.prototype, "uniqueId", 2);
|
|
6872
6904
|
__decorateClass([
|
|
6873
|
-
(0,
|
|
6874
|
-
(0,
|
|
6905
|
+
(0, import_typeorm80.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
6906
|
+
(0, import_typeorm80.Index)()
|
|
6875
6907
|
], User.prototype, "parentId", 2);
|
|
6876
6908
|
__decorateClass([
|
|
6877
|
-
(0,
|
|
6878
|
-
(0,
|
|
6909
|
+
(0, import_typeorm80.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
6910
|
+
(0, import_typeorm80.JoinColumn)({ name: "parent_id" })
|
|
6879
6911
|
], User.prototype, "parent", 2);
|
|
6880
6912
|
__decorateClass([
|
|
6881
|
-
(0,
|
|
6913
|
+
(0, import_typeorm80.OneToMany)(() => User, (user) => user.parent)
|
|
6882
6914
|
], User.prototype, "children", 2);
|
|
6883
6915
|
__decorateClass([
|
|
6884
|
-
(0,
|
|
6916
|
+
(0, import_typeorm80.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
6885
6917
|
], User.prototype, "username", 2);
|
|
6886
6918
|
__decorateClass([
|
|
6887
|
-
(0,
|
|
6919
|
+
(0, import_typeorm80.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
6888
6920
|
], User.prototype, "firstName", 2);
|
|
6889
6921
|
__decorateClass([
|
|
6890
|
-
(0,
|
|
6922
|
+
(0, import_typeorm80.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
6891
6923
|
], User.prototype, "lastName", 2);
|
|
6892
6924
|
__decorateClass([
|
|
6893
|
-
(0,
|
|
6925
|
+
(0, import_typeorm80.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
6894
6926
|
], User.prototype, "dateOfBirth", 2);
|
|
6895
6927
|
__decorateClass([
|
|
6896
|
-
(0,
|
|
6928
|
+
(0, import_typeorm80.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
6897
6929
|
], User.prototype, "gender", 2);
|
|
6898
6930
|
__decorateClass([
|
|
6899
|
-
(0,
|
|
6931
|
+
(0, import_typeorm80.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
6900
6932
|
], User.prototype, "profilePictureUrl", 2);
|
|
6901
6933
|
__decorateClass([
|
|
6902
|
-
(0,
|
|
6934
|
+
(0, import_typeorm80.Column)({ name: "presigned_profile_picture_url", type: "text", nullable: true })
|
|
6903
6935
|
], User.prototype, "presignedProfilePictureUrl", 2);
|
|
6904
6936
|
__decorateClass([
|
|
6905
|
-
(0,
|
|
6937
|
+
(0, import_typeorm80.Column)({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
|
|
6906
6938
|
], User.prototype, "presignedProfilePictureUrlExpiresAt", 2);
|
|
6907
6939
|
__decorateClass([
|
|
6908
|
-
(0,
|
|
6940
|
+
(0, import_typeorm80.Column)({ name: "email", type: "varchar", unique: true })
|
|
6909
6941
|
], User.prototype, "email", 2);
|
|
6910
6942
|
__decorateClass([
|
|
6911
|
-
(0,
|
|
6943
|
+
(0, import_typeorm80.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6912
6944
|
], User.prototype, "mobileCode", 2);
|
|
6913
6945
|
__decorateClass([
|
|
6914
|
-
(0,
|
|
6946
|
+
(0, import_typeorm80.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
6915
6947
|
], User.prototype, "mobile", 2);
|
|
6916
6948
|
__decorateClass([
|
|
6917
|
-
(0,
|
|
6949
|
+
(0, import_typeorm80.Column)({ name: "password", type: "varchar", nullable: true })
|
|
6918
6950
|
], User.prototype, "password", 2);
|
|
6919
6951
|
__decorateClass([
|
|
6920
|
-
(0,
|
|
6952
|
+
(0, import_typeorm80.Column)({
|
|
6921
6953
|
name: "account_type",
|
|
6922
6954
|
type: "enum",
|
|
6923
6955
|
enum: AccountType2,
|
|
@@ -6925,7 +6957,7 @@ __decorateClass([
|
|
|
6925
6957
|
})
|
|
6926
6958
|
], User.prototype, "accountType", 2);
|
|
6927
6959
|
__decorateClass([
|
|
6928
|
-
(0,
|
|
6960
|
+
(0, import_typeorm80.Column)({
|
|
6929
6961
|
name: "account_status",
|
|
6930
6962
|
type: "enum",
|
|
6931
6963
|
enum: AccountStatus,
|
|
@@ -6933,45 +6965,45 @@ __decorateClass([
|
|
|
6933
6965
|
})
|
|
6934
6966
|
], User.prototype, "accountStatus", 2);
|
|
6935
6967
|
__decorateClass([
|
|
6936
|
-
(0,
|
|
6968
|
+
(0, import_typeorm80.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
6937
6969
|
], User.prototype, "isEmailVerified", 2);
|
|
6938
6970
|
__decorateClass([
|
|
6939
|
-
(0,
|
|
6971
|
+
(0, import_typeorm80.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6940
6972
|
], User.prototype, "isMobileVerified", 2);
|
|
6941
6973
|
__decorateClass([
|
|
6942
|
-
(0,
|
|
6974
|
+
(0, import_typeorm80.Column)({ name: "is_social", type: "boolean", default: false })
|
|
6943
6975
|
], User.prototype, "isSocial", 2);
|
|
6944
6976
|
__decorateClass([
|
|
6945
|
-
(0,
|
|
6977
|
+
(0, import_typeorm80.Column)({ name: "is_referral_user", type: "boolean", default: false })
|
|
6946
6978
|
], User.prototype, "isReferralUser", 2);
|
|
6947
6979
|
__decorateClass([
|
|
6948
|
-
(0,
|
|
6980
|
+
(0, import_typeorm80.Column)({
|
|
6949
6981
|
name: "last_login_at",
|
|
6950
6982
|
type: "timestamp with time zone",
|
|
6951
6983
|
nullable: true
|
|
6952
6984
|
})
|
|
6953
6985
|
], User.prototype, "lastLoginAt", 2);
|
|
6954
6986
|
__decorateClass([
|
|
6955
|
-
(0,
|
|
6987
|
+
(0, import_typeorm80.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6956
6988
|
], User.prototype, "lastLoginIp", 2);
|
|
6957
6989
|
__decorateClass([
|
|
6958
|
-
(0,
|
|
6990
|
+
(0, import_typeorm80.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
6959
6991
|
], User.prototype, "resetToken", 2);
|
|
6960
6992
|
__decorateClass([
|
|
6961
|
-
(0,
|
|
6993
|
+
(0, import_typeorm80.Column)({
|
|
6962
6994
|
name: "reset_token_expire_at",
|
|
6963
6995
|
type: "timestamp with time zone",
|
|
6964
6996
|
nullable: true
|
|
6965
6997
|
})
|
|
6966
6998
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6967
6999
|
__decorateClass([
|
|
6968
|
-
(0,
|
|
7000
|
+
(0, import_typeorm80.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6969
7001
|
], User.prototype, "setPasswordToken", 2);
|
|
6970
7002
|
__decorateClass([
|
|
6971
|
-
(0,
|
|
7003
|
+
(0, import_typeorm80.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
6972
7004
|
], User.prototype, "refreshTokens", 2);
|
|
6973
7005
|
__decorateClass([
|
|
6974
|
-
(0,
|
|
7006
|
+
(0, import_typeorm80.Column)({
|
|
6975
7007
|
name: "provider",
|
|
6976
7008
|
type: "enum",
|
|
6977
7009
|
enum: Provider,
|
|
@@ -6980,272 +7012,275 @@ __decorateClass([
|
|
|
6980
7012
|
})
|
|
6981
7013
|
], User.prototype, "provider", 2);
|
|
6982
7014
|
__decorateClass([
|
|
6983
|
-
(0,
|
|
7015
|
+
(0, import_typeorm80.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
6984
7016
|
], User.prototype, "providerToken", 2);
|
|
6985
7017
|
__decorateClass([
|
|
6986
|
-
(0,
|
|
7018
|
+
(0, import_typeorm80.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6987
7019
|
], User.prototype, "linkedInId", 2);
|
|
6988
7020
|
__decorateClass([
|
|
6989
|
-
(0,
|
|
7021
|
+
(0, import_typeorm80.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
6990
7022
|
], User.prototype, "googleId", 2);
|
|
6991
7023
|
__decorateClass([
|
|
6992
|
-
(0,
|
|
7024
|
+
(0, import_typeorm80.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6993
7025
|
], User.prototype, "gitLabsId", 2);
|
|
6994
7026
|
__decorateClass([
|
|
6995
|
-
(0,
|
|
7027
|
+
(0, import_typeorm80.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6996
7028
|
], User.prototype, "onBoardedBy", 2);
|
|
6997
7029
|
__decorateClass([
|
|
6998
|
-
(0,
|
|
7030
|
+
(0, import_typeorm80.Column)({ name: "ip", type: "varchar", nullable: true })
|
|
6999
7031
|
], User.prototype, "ip", 2);
|
|
7000
7032
|
__decorateClass([
|
|
7001
|
-
(0,
|
|
7033
|
+
(0, import_typeorm80.OneToMany)(() => Otp, (otp) => otp.user)
|
|
7002
7034
|
], User.prototype, "otps", 2);
|
|
7003
7035
|
__decorateClass([
|
|
7004
|
-
(0,
|
|
7036
|
+
(0, import_typeorm80.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
7005
7037
|
], User.prototype, "senseloafLogs", 2);
|
|
7006
7038
|
__decorateClass([
|
|
7007
|
-
(0,
|
|
7039
|
+
(0, import_typeorm80.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
7008
7040
|
], User.prototype, "companyProfile", 2);
|
|
7009
7041
|
__decorateClass([
|
|
7010
|
-
(0,
|
|
7042
|
+
(0, import_typeorm80.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
7011
7043
|
], User.prototype, "companySkills", 2);
|
|
7012
7044
|
__decorateClass([
|
|
7013
|
-
(0,
|
|
7045
|
+
(0, import_typeorm80.OneToMany)(
|
|
7014
7046
|
() => CompanyMemberRole,
|
|
7015
7047
|
(companyMemberRole) => companyMemberRole.user
|
|
7016
7048
|
)
|
|
7017
7049
|
], User.prototype, "companyMemberRoles", 2);
|
|
7018
7050
|
__decorateClass([
|
|
7019
|
-
(0,
|
|
7051
|
+
(0, import_typeorm80.OneToOne)(() => CompanyMember, (companyMember) => companyMember.user)
|
|
7052
|
+
], User.prototype, "companyMember", 2);
|
|
7053
|
+
__decorateClass([
|
|
7054
|
+
(0, import_typeorm80.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
7020
7055
|
], User.prototype, "companyAiInterview", 2);
|
|
7021
7056
|
__decorateClass([
|
|
7022
|
-
(0,
|
|
7057
|
+
(0, import_typeorm80.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
7023
7058
|
], User.prototype, "clientF2FInterviews", 2);
|
|
7024
7059
|
__decorateClass([
|
|
7025
|
-
(0,
|
|
7060
|
+
(0, import_typeorm80.OneToOne)(
|
|
7026
7061
|
() => FreelancerProfile,
|
|
7027
7062
|
(freelancerProfile) => freelancerProfile.user
|
|
7028
7063
|
)
|
|
7029
7064
|
], User.prototype, "freelancerProfile", 2);
|
|
7030
7065
|
__decorateClass([
|
|
7031
|
-
(0,
|
|
7066
|
+
(0, import_typeorm80.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
7032
7067
|
], User.prototype, "freelancerResume", 2);
|
|
7033
7068
|
__decorateClass([
|
|
7034
|
-
(0,
|
|
7069
|
+
(0, import_typeorm80.OneToMany)(
|
|
7035
7070
|
() => FreelancerAssessmentRequest,
|
|
7036
7071
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
7037
7072
|
)
|
|
7038
7073
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
7039
7074
|
__decorateClass([
|
|
7040
|
-
(0,
|
|
7075
|
+
(0, import_typeorm80.OneToMany)(
|
|
7041
7076
|
() => FreelancerAssessmentRequest,
|
|
7042
7077
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
7043
7078
|
)
|
|
7044
7079
|
], User.prototype, "assessmentRequests", 2);
|
|
7045
7080
|
__decorateClass([
|
|
7046
|
-
(0,
|
|
7081
|
+
(0, import_typeorm80.OneToMany)(
|
|
7047
7082
|
() => FreelancerAssessment,
|
|
7048
7083
|
(freelancerAssessment) => freelancerAssessment.user
|
|
7049
7084
|
)
|
|
7050
7085
|
], User.prototype, "assessments", 2);
|
|
7051
7086
|
__decorateClass([
|
|
7052
|
-
(0,
|
|
7087
|
+
(0, import_typeorm80.OneToMany)(
|
|
7053
7088
|
() => AssessmentAnswer,
|
|
7054
7089
|
(assessmentAnswer) => assessmentAnswer.user
|
|
7055
7090
|
)
|
|
7056
7091
|
], User.prototype, "assessmentAnswers", 2);
|
|
7057
7092
|
__decorateClass([
|
|
7058
|
-
(0,
|
|
7093
|
+
(0, import_typeorm80.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
7059
7094
|
], User.prototype, "freelancerSkills", 2);
|
|
7060
7095
|
__decorateClass([
|
|
7061
|
-
(0,
|
|
7096
|
+
(0, import_typeorm80.OneToMany)(
|
|
7062
7097
|
() => FreelancerExperience,
|
|
7063
7098
|
(freelancerExperience) => freelancerExperience.user
|
|
7064
7099
|
)
|
|
7065
7100
|
], User.prototype, "freelancerExperience", 2);
|
|
7066
7101
|
__decorateClass([
|
|
7067
|
-
(0,
|
|
7102
|
+
(0, import_typeorm80.OneToMany)(
|
|
7068
7103
|
() => FreelancerEducation,
|
|
7069
7104
|
(freelancerEducation) => freelancerEducation.user
|
|
7070
7105
|
)
|
|
7071
7106
|
], User.prototype, "freelancerEducation", 2);
|
|
7072
7107
|
__decorateClass([
|
|
7073
|
-
(0,
|
|
7108
|
+
(0, import_typeorm80.OneToMany)(
|
|
7074
7109
|
() => FreelancerProject,
|
|
7075
7110
|
(freelancerProject) => freelancerProject.user
|
|
7076
7111
|
)
|
|
7077
7112
|
], User.prototype, "freelancerProject", 2);
|
|
7078
7113
|
__decorateClass([
|
|
7079
|
-
(0,
|
|
7114
|
+
(0, import_typeorm80.OneToMany)(
|
|
7080
7115
|
() => FreelancerCaseStudy,
|
|
7081
7116
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
7082
7117
|
)
|
|
7083
7118
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
7084
7119
|
__decorateClass([
|
|
7085
|
-
(0,
|
|
7120
|
+
(0, import_typeorm80.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
7086
7121
|
], User.prototype, "freelancerTool", 2);
|
|
7087
7122
|
__decorateClass([
|
|
7088
|
-
(0,
|
|
7123
|
+
(0, import_typeorm80.OneToMany)(
|
|
7089
7124
|
() => FreelancerFramework,
|
|
7090
7125
|
(freelancerFramework) => freelancerFramework.user
|
|
7091
7126
|
)
|
|
7092
7127
|
], User.prototype, "freelancerFramework", 2);
|
|
7093
7128
|
__decorateClass([
|
|
7094
|
-
(0,
|
|
7129
|
+
(0, import_typeorm80.OneToOne)(
|
|
7095
7130
|
() => FreelancerDeclaration,
|
|
7096
7131
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
7097
7132
|
)
|
|
7098
7133
|
], User.prototype, "freelancerDeclaration", 2);
|
|
7099
7134
|
__decorateClass([
|
|
7100
|
-
(0,
|
|
7135
|
+
(0, import_typeorm80.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
7101
7136
|
], User.prototype, "freelancerMcq", 2);
|
|
7102
7137
|
__decorateClass([
|
|
7103
|
-
(0,
|
|
7138
|
+
(0, import_typeorm80.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
7104
7139
|
], User.prototype, "freelancerAiInterview", 2);
|
|
7105
7140
|
__decorateClass([
|
|
7106
|
-
(0,
|
|
7141
|
+
(0, import_typeorm80.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
7107
7142
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
7108
7143
|
__decorateClass([
|
|
7109
|
-
(0,
|
|
7144
|
+
(0, import_typeorm80.OneToMany)(
|
|
7110
7145
|
() => F2fInterviewRescheduleRequest,
|
|
7111
7146
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
7112
7147
|
)
|
|
7113
7148
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
7114
7149
|
__decorateClass([
|
|
7115
|
-
(0,
|
|
7150
|
+
(0, import_typeorm80.OneToMany)(
|
|
7116
7151
|
() => AiInterviewRescheduleRequest,
|
|
7117
7152
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
7118
7153
|
)
|
|
7119
7154
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
7120
7155
|
__decorateClass([
|
|
7121
|
-
(0,
|
|
7156
|
+
(0, import_typeorm80.OneToMany)(
|
|
7122
7157
|
() => AiInterviewRescheduleRequest,
|
|
7123
7158
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
7124
7159
|
)
|
|
7125
7160
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
7126
7161
|
__decorateClass([
|
|
7127
|
-
(0,
|
|
7162
|
+
(0, import_typeorm80.OneToMany)(() => Job, (job) => job.user)
|
|
7128
7163
|
], User.prototype, "jobs", 2);
|
|
7129
7164
|
__decorateClass([
|
|
7130
|
-
(0,
|
|
7165
|
+
(0, import_typeorm80.OneToMany)(() => Task, (task) => task.client)
|
|
7131
7166
|
], User.prototype, "clientTasks", 2);
|
|
7132
7167
|
__decorateClass([
|
|
7133
|
-
(0,
|
|
7168
|
+
(0, import_typeorm80.OneToMany)(() => Task, (task) => task.freelancer)
|
|
7134
7169
|
], User.prototype, "freelancerTasks", 2);
|
|
7135
7170
|
__decorateClass([
|
|
7136
|
-
(0,
|
|
7171
|
+
(0, import_typeorm80.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
|
|
7137
7172
|
], User.prototype, "raisedTaskQueries", 2);
|
|
7138
7173
|
__decorateClass([
|
|
7139
|
-
(0,
|
|
7174
|
+
(0, import_typeorm80.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
|
|
7140
7175
|
], User.prototype, "assignedTaskQueries", 2);
|
|
7141
7176
|
__decorateClass([
|
|
7142
|
-
(0,
|
|
7177
|
+
(0, import_typeorm80.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
|
|
7143
7178
|
], User.prototype, "taskQueryMessages", 2);
|
|
7144
7179
|
__decorateClass([
|
|
7145
|
-
(0,
|
|
7180
|
+
(0, import_typeorm80.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
7146
7181
|
], User.prototype, "jobApplications", 2);
|
|
7147
7182
|
__decorateClass([
|
|
7148
|
-
(0,
|
|
7183
|
+
(0, import_typeorm80.OneToMany)(() => Interview, (interview) => interview.user)
|
|
7149
7184
|
], User.prototype, "interviews", 2);
|
|
7150
7185
|
__decorateClass([
|
|
7151
|
-
(0,
|
|
7186
|
+
(0, import_typeorm80.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
7152
7187
|
], User.prototype, "bankDetail", 2);
|
|
7153
7188
|
__decorateClass([
|
|
7154
|
-
(0,
|
|
7189
|
+
(0, import_typeorm80.OneToMany)(
|
|
7155
7190
|
() => SystemPreference,
|
|
7156
7191
|
(systemPreference) => systemPreference.user
|
|
7157
7192
|
)
|
|
7158
7193
|
], User.prototype, "systemPreference", 2);
|
|
7159
7194
|
__decorateClass([
|
|
7160
|
-
(0,
|
|
7195
|
+
(0, import_typeorm80.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
7161
7196
|
], User.prototype, "givenRatings", 2);
|
|
7162
7197
|
__decorateClass([
|
|
7163
|
-
(0,
|
|
7198
|
+
(0, import_typeorm80.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
7164
7199
|
], User.prototype, "receivedRatings", 2);
|
|
7165
7200
|
__decorateClass([
|
|
7166
|
-
(0,
|
|
7201
|
+
(0, import_typeorm80.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
7167
7202
|
], User.prototype, "adminUserRoles", 2);
|
|
7168
7203
|
__decorateClass([
|
|
7169
|
-
(0,
|
|
7204
|
+
(0, import_typeorm80.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
7170
7205
|
cascade: true
|
|
7171
7206
|
})
|
|
7172
7207
|
], User.prototype, "clientContractSummaries", 2);
|
|
7173
7208
|
__decorateClass([
|
|
7174
|
-
(0,
|
|
7209
|
+
(0, import_typeorm80.OneToMany)(() => Contract, (contract) => contract.client)
|
|
7175
7210
|
], User.prototype, "clientContracts", 2);
|
|
7176
7211
|
__decorateClass([
|
|
7177
|
-
(0,
|
|
7212
|
+
(0, import_typeorm80.OneToMany)(() => Hiring, (hiring) => hiring.client)
|
|
7178
7213
|
], User.prototype, "clientHirings", 2);
|
|
7179
7214
|
__decorateClass([
|
|
7180
|
-
(0,
|
|
7215
|
+
(0, import_typeorm80.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
7181
7216
|
], User.prototype, "clientEscrowWallets", 2);
|
|
7182
7217
|
__decorateClass([
|
|
7183
|
-
(0,
|
|
7218
|
+
(0, import_typeorm80.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
7184
7219
|
cascade: true
|
|
7185
7220
|
})
|
|
7186
7221
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
7187
7222
|
__decorateClass([
|
|
7188
|
-
(0,
|
|
7223
|
+
(0, import_typeorm80.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
7189
7224
|
], User.prototype, "freelancerContracts", 2);
|
|
7190
7225
|
__decorateClass([
|
|
7191
|
-
(0,
|
|
7226
|
+
(0, import_typeorm80.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
|
|
7192
7227
|
], User.prototype, "freelancerHirings", 2);
|
|
7193
7228
|
__decorateClass([
|
|
7194
|
-
(0,
|
|
7229
|
+
(0, import_typeorm80.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
7195
7230
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
7196
7231
|
__decorateClass([
|
|
7197
|
-
(0,
|
|
7232
|
+
(0, import_typeorm80.OneToOne)(() => Signature, (signature) => signature.user)
|
|
7198
7233
|
], User.prototype, "signatures", 2);
|
|
7199
7234
|
__decorateClass([
|
|
7200
|
-
(0,
|
|
7235
|
+
(0, import_typeorm80.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
7201
7236
|
], User.prototype, "clientTimesheets", 2);
|
|
7202
7237
|
__decorateClass([
|
|
7203
|
-
(0,
|
|
7238
|
+
(0, import_typeorm80.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
7204
7239
|
], User.prototype, "freelancerTimesheets", 2);
|
|
7205
7240
|
__decorateClass([
|
|
7206
|
-
(0,
|
|
7241
|
+
(0, import_typeorm80.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
7207
7242
|
], User.prototype, "clientTimesheetLine", 2);
|
|
7208
7243
|
__decorateClass([
|
|
7209
|
-
(0,
|
|
7244
|
+
(0, import_typeorm80.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
7210
7245
|
], User.prototype, "clientInvoice", 2);
|
|
7211
7246
|
__decorateClass([
|
|
7212
|
-
(0,
|
|
7247
|
+
(0, import_typeorm80.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
7213
7248
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
7214
7249
|
__decorateClass([
|
|
7215
|
-
(0,
|
|
7250
|
+
(0, import_typeorm80.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
7216
7251
|
], User.prototype, "freelancerInvoice", 2);
|
|
7217
7252
|
__decorateClass([
|
|
7218
|
-
(0,
|
|
7253
|
+
(0, import_typeorm80.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
7219
7254
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
7220
7255
|
__decorateClass([
|
|
7221
|
-
(0,
|
|
7256
|
+
(0, import_typeorm80.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
7222
7257
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
7223
7258
|
__decorateClass([
|
|
7224
|
-
(0,
|
|
7259
|
+
(0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
7225
7260
|
], User.prototype, "initiatedDisputes", 2);
|
|
7226
7261
|
__decorateClass([
|
|
7227
|
-
(0,
|
|
7262
|
+
(0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
7228
7263
|
], User.prototype, "respondentDisputes", 2);
|
|
7229
7264
|
__decorateClass([
|
|
7230
|
-
(0,
|
|
7265
|
+
(0, import_typeorm80.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
7231
7266
|
], User.prototype, "wallet", 2);
|
|
7232
7267
|
__decorateClass([
|
|
7233
|
-
(0,
|
|
7268
|
+
(0, import_typeorm80.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
7234
7269
|
], User.prototype, "stripeTransactions", 2);
|
|
7235
7270
|
__decorateClass([
|
|
7236
|
-
(0,
|
|
7271
|
+
(0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
7237
7272
|
], User.prototype, "clientDisputes", 2);
|
|
7238
7273
|
__decorateClass([
|
|
7239
|
-
(0,
|
|
7274
|
+
(0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
7240
7275
|
], User.prototype, "freelancerDisputes", 2);
|
|
7241
7276
|
__decorateClass([
|
|
7242
|
-
(0,
|
|
7277
|
+
(0, import_typeorm80.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
7243
7278
|
], User.prototype, "inAppNotifications", 2);
|
|
7244
7279
|
__decorateClass([
|
|
7245
|
-
(0,
|
|
7280
|
+
(0, import_typeorm80.OneToMany)(() => UserSubscription, (userSubscription) => userSubscription.user)
|
|
7246
7281
|
], User.prototype, "userSubscriptions", 2);
|
|
7247
7282
|
User = __decorateClass([
|
|
7248
|
-
(0,
|
|
7283
|
+
(0, import_typeorm80.Entity)("users")
|
|
7249
7284
|
], User);
|
|
7250
7285
|
|
|
7251
7286
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -14382,11 +14417,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
14382
14417
|
};
|
|
14383
14418
|
|
|
14384
14419
|
// src/entities/sequence-generator.entity.ts
|
|
14385
|
-
var
|
|
14420
|
+
var import_typeorm81 = require("typeorm");
|
|
14386
14421
|
var SequenceGenerator = class extends BaseEntity {
|
|
14387
14422
|
};
|
|
14388
14423
|
__decorateClass([
|
|
14389
|
-
(0,
|
|
14424
|
+
(0, import_typeorm81.Column)({
|
|
14390
14425
|
name: "module",
|
|
14391
14426
|
type: "varchar",
|
|
14392
14427
|
length: 50,
|
|
@@ -14395,7 +14430,7 @@ __decorateClass([
|
|
|
14395
14430
|
})
|
|
14396
14431
|
], SequenceGenerator.prototype, "module", 2);
|
|
14397
14432
|
__decorateClass([
|
|
14398
|
-
(0,
|
|
14433
|
+
(0, import_typeorm81.Column)({
|
|
14399
14434
|
name: "prefix",
|
|
14400
14435
|
type: "varchar",
|
|
14401
14436
|
length: 10,
|
|
@@ -14404,7 +14439,7 @@ __decorateClass([
|
|
|
14404
14439
|
})
|
|
14405
14440
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
14406
14441
|
__decorateClass([
|
|
14407
|
-
(0,
|
|
14442
|
+
(0, import_typeorm81.Column)({
|
|
14408
14443
|
name: "last_sequence",
|
|
14409
14444
|
type: "int",
|
|
14410
14445
|
nullable: false,
|
|
@@ -14412,7 +14447,7 @@ __decorateClass([
|
|
|
14412
14447
|
})
|
|
14413
14448
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
14414
14449
|
__decorateClass([
|
|
14415
|
-
(0,
|
|
14450
|
+
(0, import_typeorm81.Column)({
|
|
14416
14451
|
name: "year",
|
|
14417
14452
|
type: "int",
|
|
14418
14453
|
nullable: true,
|
|
@@ -14420,11 +14455,11 @@ __decorateClass([
|
|
|
14420
14455
|
})
|
|
14421
14456
|
], SequenceGenerator.prototype, "year", 2);
|
|
14422
14457
|
SequenceGenerator = __decorateClass([
|
|
14423
|
-
(0,
|
|
14458
|
+
(0, import_typeorm81.Entity)("sequence_generators")
|
|
14424
14459
|
], SequenceGenerator);
|
|
14425
14460
|
|
|
14426
14461
|
// src/entities/question.entity.ts
|
|
14427
|
-
var
|
|
14462
|
+
var import_typeorm82 = require("typeorm");
|
|
14428
14463
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
14429
14464
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
14430
14465
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -14433,16 +14468,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
14433
14468
|
var Question = class extends BaseEntity {
|
|
14434
14469
|
};
|
|
14435
14470
|
__decorateClass([
|
|
14436
|
-
(0,
|
|
14471
|
+
(0, import_typeorm82.Column)({ name: "question", type: "varchar" })
|
|
14437
14472
|
], Question.prototype, "question", 2);
|
|
14438
14473
|
__decorateClass([
|
|
14439
|
-
(0,
|
|
14474
|
+
(0, import_typeorm82.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
14440
14475
|
], Question.prototype, "hint", 2);
|
|
14441
14476
|
__decorateClass([
|
|
14442
|
-
(0,
|
|
14477
|
+
(0, import_typeorm82.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14443
14478
|
], Question.prototype, "slug", 2);
|
|
14444
14479
|
__decorateClass([
|
|
14445
|
-
(0,
|
|
14480
|
+
(0, import_typeorm82.Column)({
|
|
14446
14481
|
name: "question_for",
|
|
14447
14482
|
type: "enum",
|
|
14448
14483
|
enum: QuestionFor,
|
|
@@ -14450,45 +14485,45 @@ __decorateClass([
|
|
|
14450
14485
|
})
|
|
14451
14486
|
], Question.prototype, "questionFor", 2);
|
|
14452
14487
|
__decorateClass([
|
|
14453
|
-
(0,
|
|
14488
|
+
(0, import_typeorm82.Column)({ name: "type", type: "varchar", nullable: true })
|
|
14454
14489
|
], Question.prototype, "type", 2);
|
|
14455
14490
|
__decorateClass([
|
|
14456
|
-
(0,
|
|
14491
|
+
(0, import_typeorm82.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
14457
14492
|
], Question.prototype, "options", 2);
|
|
14458
14493
|
__decorateClass([
|
|
14459
|
-
(0,
|
|
14494
|
+
(0, import_typeorm82.Column)({ name: "is_active", type: "boolean", default: false })
|
|
14460
14495
|
], Question.prototype, "isActive", 2);
|
|
14461
14496
|
Question = __decorateClass([
|
|
14462
|
-
(0,
|
|
14497
|
+
(0, import_typeorm82.Entity)("questions")
|
|
14463
14498
|
], Question);
|
|
14464
14499
|
|
|
14465
14500
|
// src/entities/skill.entity.ts
|
|
14466
|
-
var
|
|
14501
|
+
var import_typeorm83 = require("typeorm");
|
|
14467
14502
|
var Skill = class extends BaseEntity {
|
|
14468
14503
|
};
|
|
14469
14504
|
__decorateClass([
|
|
14470
|
-
(0,
|
|
14505
|
+
(0, import_typeorm83.Column)({ name: "name", type: "varchar", nullable: true })
|
|
14471
14506
|
], Skill.prototype, "name", 2);
|
|
14472
14507
|
__decorateClass([
|
|
14473
|
-
(0,
|
|
14508
|
+
(0, import_typeorm83.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14474
14509
|
], Skill.prototype, "slug", 2);
|
|
14475
14510
|
__decorateClass([
|
|
14476
|
-
(0,
|
|
14511
|
+
(0, import_typeorm83.Column)({ name: "is_active", type: "boolean", default: false })
|
|
14477
14512
|
], Skill.prototype, "isActive", 2);
|
|
14478
14513
|
Skill = __decorateClass([
|
|
14479
|
-
(0,
|
|
14514
|
+
(0, import_typeorm83.Entity)("skills")
|
|
14480
14515
|
], Skill);
|
|
14481
14516
|
|
|
14482
14517
|
// src/entities/skill-catalog.entity.ts
|
|
14483
|
-
var
|
|
14518
|
+
var import_typeorm84 = require("typeorm");
|
|
14484
14519
|
var SkillCatalog = class extends BaseEntity {
|
|
14485
14520
|
};
|
|
14486
14521
|
__decorateClass([
|
|
14487
|
-
(0,
|
|
14488
|
-
(0,
|
|
14522
|
+
(0, import_typeorm84.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
14523
|
+
(0, import_typeorm84.Index)()
|
|
14489
14524
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
14490
14525
|
__decorateClass([
|
|
14491
|
-
(0,
|
|
14526
|
+
(0, import_typeorm84.Column)({
|
|
14492
14527
|
name: "aliases",
|
|
14493
14528
|
type: "text",
|
|
14494
14529
|
array: true,
|
|
@@ -14496,20 +14531,20 @@ __decorateClass([
|
|
|
14496
14531
|
})
|
|
14497
14532
|
], SkillCatalog.prototype, "aliases", 2);
|
|
14498
14533
|
__decorateClass([
|
|
14499
|
-
(0,
|
|
14534
|
+
(0, import_typeorm84.Column)({
|
|
14500
14535
|
name: "variations",
|
|
14501
14536
|
type: "jsonb",
|
|
14502
14537
|
default: "{}"
|
|
14503
14538
|
})
|
|
14504
14539
|
], SkillCatalog.prototype, "variations", 2);
|
|
14505
14540
|
__decorateClass([
|
|
14506
|
-
(0,
|
|
14541
|
+
(0, import_typeorm84.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
14507
14542
|
], SkillCatalog.prototype, "category", 2);
|
|
14508
14543
|
__decorateClass([
|
|
14509
|
-
(0,
|
|
14544
|
+
(0, import_typeorm84.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
14510
14545
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
14511
14546
|
__decorateClass([
|
|
14512
|
-
(0,
|
|
14547
|
+
(0, import_typeorm84.Column)({
|
|
14513
14548
|
name: "related_skills",
|
|
14514
14549
|
type: "text",
|
|
14515
14550
|
array: true,
|
|
@@ -14517,68 +14552,68 @@ __decorateClass([
|
|
|
14517
14552
|
})
|
|
14518
14553
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
14519
14554
|
__decorateClass([
|
|
14520
|
-
(0,
|
|
14521
|
-
(0,
|
|
14555
|
+
(0, import_typeorm84.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
14556
|
+
(0, import_typeorm84.Index)()
|
|
14522
14557
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
14523
14558
|
__decorateClass([
|
|
14524
|
-
(0,
|
|
14559
|
+
(0, import_typeorm84.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
14525
14560
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
14526
14561
|
__decorateClass([
|
|
14527
|
-
(0,
|
|
14562
|
+
(0, import_typeorm84.Column)({ name: "first_seen_date", type: "date" })
|
|
14528
14563
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
14529
14564
|
__decorateClass([
|
|
14530
|
-
(0,
|
|
14565
|
+
(0, import_typeorm84.Column)({ name: "last_updated_date", type: "date" })
|
|
14531
14566
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
14532
14567
|
__decorateClass([
|
|
14533
|
-
(0,
|
|
14568
|
+
(0, import_typeorm84.Column)({
|
|
14534
14569
|
name: "search_vector",
|
|
14535
14570
|
type: "tsvector",
|
|
14536
14571
|
nullable: true
|
|
14537
14572
|
})
|
|
14538
14573
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
14539
14574
|
SkillCatalog = __decorateClass([
|
|
14540
|
-
(0,
|
|
14575
|
+
(0, import_typeorm84.Entity)("skill_catalogs")
|
|
14541
14576
|
], SkillCatalog);
|
|
14542
14577
|
|
|
14543
14578
|
// src/entities/job-role.entity.ts
|
|
14544
|
-
var
|
|
14579
|
+
var import_typeorm85 = require("typeorm");
|
|
14545
14580
|
var JobRoles = class extends BaseEntity {
|
|
14546
14581
|
};
|
|
14547
14582
|
__decorateClass([
|
|
14548
|
-
(0,
|
|
14583
|
+
(0, import_typeorm85.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14549
14584
|
], JobRoles.prototype, "slug", 2);
|
|
14550
14585
|
__decorateClass([
|
|
14551
|
-
(0,
|
|
14586
|
+
(0, import_typeorm85.Column)({ name: "name", type: "varchar", nullable: true })
|
|
14552
14587
|
], JobRoles.prototype, "name", 2);
|
|
14553
14588
|
__decorateClass([
|
|
14554
|
-
(0,
|
|
14589
|
+
(0, import_typeorm85.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14555
14590
|
], JobRoles.prototype, "isActive", 2);
|
|
14556
14591
|
JobRoles = __decorateClass([
|
|
14557
|
-
(0,
|
|
14592
|
+
(0, import_typeorm85.Entity)("job_roles")
|
|
14558
14593
|
], JobRoles);
|
|
14559
14594
|
|
|
14560
14595
|
// src/entities/cms.entity.ts
|
|
14561
|
-
var
|
|
14596
|
+
var import_typeorm86 = require("typeorm");
|
|
14562
14597
|
var Cms = class extends BaseEntity {
|
|
14563
14598
|
};
|
|
14564
14599
|
__decorateClass([
|
|
14565
|
-
(0,
|
|
14600
|
+
(0, import_typeorm86.Column)({ name: "title", type: "varchar", nullable: true })
|
|
14566
14601
|
], Cms.prototype, "title", 2);
|
|
14567
14602
|
__decorateClass([
|
|
14568
|
-
(0,
|
|
14603
|
+
(0, import_typeorm86.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14569
14604
|
], Cms.prototype, "slug", 2);
|
|
14570
14605
|
__decorateClass([
|
|
14571
|
-
(0,
|
|
14606
|
+
(0, import_typeorm86.Column)({ name: "content", type: "varchar", nullable: true })
|
|
14572
14607
|
], Cms.prototype, "content", 2);
|
|
14573
14608
|
__decorateClass([
|
|
14574
|
-
(0,
|
|
14609
|
+
(0, import_typeorm86.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14575
14610
|
], Cms.prototype, "isActive", 2);
|
|
14576
14611
|
Cms = __decorateClass([
|
|
14577
|
-
(0,
|
|
14612
|
+
(0, import_typeorm86.Entity)("cms")
|
|
14578
14613
|
], Cms);
|
|
14579
14614
|
|
|
14580
14615
|
// src/entities/lead.entity.ts
|
|
14581
|
-
var
|
|
14616
|
+
var import_typeorm87 = require("typeorm");
|
|
14582
14617
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
14583
14618
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
14584
14619
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -14587,22 +14622,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
14587
14622
|
var Lead = class extends BaseEntity {
|
|
14588
14623
|
};
|
|
14589
14624
|
__decorateClass([
|
|
14590
|
-
(0,
|
|
14625
|
+
(0, import_typeorm87.Column)({ name: "name", type: "varchar", nullable: true })
|
|
14591
14626
|
], Lead.prototype, "name", 2);
|
|
14592
14627
|
__decorateClass([
|
|
14593
|
-
(0,
|
|
14628
|
+
(0, import_typeorm87.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
14594
14629
|
], Lead.prototype, "mobileCode", 2);
|
|
14595
14630
|
__decorateClass([
|
|
14596
|
-
(0,
|
|
14631
|
+
(0, import_typeorm87.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
14597
14632
|
], Lead.prototype, "mobile", 2);
|
|
14598
14633
|
__decorateClass([
|
|
14599
|
-
(0,
|
|
14634
|
+
(0, import_typeorm87.Column)({ name: "email", type: "varchar", nullable: true })
|
|
14600
14635
|
], Lead.prototype, "email", 2);
|
|
14601
14636
|
__decorateClass([
|
|
14602
|
-
(0,
|
|
14637
|
+
(0, import_typeorm87.Column)({ name: "description", type: "varchar", nullable: true })
|
|
14603
14638
|
], Lead.prototype, "description", 2);
|
|
14604
14639
|
__decorateClass([
|
|
14605
|
-
(0,
|
|
14640
|
+
(0, import_typeorm87.Column)({
|
|
14606
14641
|
name: "category",
|
|
14607
14642
|
type: "enum",
|
|
14608
14643
|
enum: CategoryEmum,
|
|
@@ -14610,129 +14645,129 @@ __decorateClass([
|
|
|
14610
14645
|
})
|
|
14611
14646
|
], Lead.prototype, "category", 2);
|
|
14612
14647
|
Lead = __decorateClass([
|
|
14613
|
-
(0,
|
|
14648
|
+
(0, import_typeorm87.Entity)("leads")
|
|
14614
14649
|
], Lead);
|
|
14615
14650
|
|
|
14616
14651
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
14617
|
-
var
|
|
14652
|
+
var import_typeorm88 = require("typeorm");
|
|
14618
14653
|
var JobFreelancerRecommendation = class {
|
|
14619
14654
|
};
|
|
14620
14655
|
__decorateClass([
|
|
14621
|
-
(0,
|
|
14656
|
+
(0, import_typeorm88.ViewColumn)({ name: "job_id" })
|
|
14622
14657
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
14623
14658
|
__decorateClass([
|
|
14624
|
-
(0,
|
|
14659
|
+
(0, import_typeorm88.ViewColumn)({ name: "job_uuid" })
|
|
14625
14660
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
14626
14661
|
__decorateClass([
|
|
14627
|
-
(0,
|
|
14662
|
+
(0, import_typeorm88.ViewColumn)({ name: "job_unique_id" })
|
|
14628
14663
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
14629
14664
|
__decorateClass([
|
|
14630
|
-
(0,
|
|
14665
|
+
(0, import_typeorm88.ViewColumn)({ name: "job_role" })
|
|
14631
14666
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
14632
14667
|
__decorateClass([
|
|
14633
|
-
(0,
|
|
14668
|
+
(0, import_typeorm88.ViewColumn)({ name: "job_openings" })
|
|
14634
14669
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
14635
14670
|
__decorateClass([
|
|
14636
|
-
(0,
|
|
14671
|
+
(0, import_typeorm88.ViewColumn)({ name: "job_location" })
|
|
14637
14672
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
14638
14673
|
__decorateClass([
|
|
14639
|
-
(0,
|
|
14674
|
+
(0, import_typeorm88.ViewColumn)({ name: "job_currency" })
|
|
14640
14675
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
14641
14676
|
__decorateClass([
|
|
14642
|
-
(0,
|
|
14677
|
+
(0, import_typeorm88.ViewColumn)({ name: "job_salary_from" })
|
|
14643
14678
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
14644
14679
|
__decorateClass([
|
|
14645
|
-
(0,
|
|
14680
|
+
(0, import_typeorm88.ViewColumn)({ name: "job_salary_to" })
|
|
14646
14681
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
14647
14682
|
__decorateClass([
|
|
14648
|
-
(0,
|
|
14683
|
+
(0, import_typeorm88.ViewColumn)({ name: "job_employment_type" })
|
|
14649
14684
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
14650
14685
|
__decorateClass([
|
|
14651
|
-
(0,
|
|
14686
|
+
(0, import_typeorm88.ViewColumn)({ name: "application_received" })
|
|
14652
14687
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
14653
14688
|
__decorateClass([
|
|
14654
|
-
(0,
|
|
14689
|
+
(0, import_typeorm88.ViewColumn)({ name: "job_posted_at" })
|
|
14655
14690
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
14656
14691
|
__decorateClass([
|
|
14657
|
-
(0,
|
|
14692
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_id" })
|
|
14658
14693
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
14659
14694
|
__decorateClass([
|
|
14660
|
-
(0,
|
|
14695
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_uuid" })
|
|
14661
14696
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
14662
14697
|
__decorateClass([
|
|
14663
|
-
(0,
|
|
14698
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_unique_id" })
|
|
14664
14699
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
14665
14700
|
__decorateClass([
|
|
14666
|
-
(0,
|
|
14701
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_first_name" })
|
|
14667
14702
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
14668
14703
|
__decorateClass([
|
|
14669
|
-
(0,
|
|
14704
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_last_name" })
|
|
14670
14705
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
14671
14706
|
__decorateClass([
|
|
14672
|
-
(0,
|
|
14707
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_email" })
|
|
14673
14708
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
14674
14709
|
__decorateClass([
|
|
14675
|
-
(0,
|
|
14710
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
14676
14711
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
14677
14712
|
__decorateClass([
|
|
14678
|
-
(0,
|
|
14713
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_is_social" })
|
|
14679
14714
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
14680
14715
|
__decorateClass([
|
|
14681
|
-
(0,
|
|
14716
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_created_at" })
|
|
14682
14717
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
14683
14718
|
__decorateClass([
|
|
14684
|
-
(0,
|
|
14719
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_designation" })
|
|
14685
14720
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
14686
14721
|
__decorateClass([
|
|
14687
|
-
(0,
|
|
14722
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_experience" })
|
|
14688
14723
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
14689
14724
|
__decorateClass([
|
|
14690
|
-
(0,
|
|
14725
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
14691
14726
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
14692
14727
|
__decorateClass([
|
|
14693
|
-
(0,
|
|
14728
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
14694
14729
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
14695
14730
|
__decorateClass([
|
|
14696
|
-
(0,
|
|
14731
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_country_name" })
|
|
14697
14732
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
14698
14733
|
__decorateClass([
|
|
14699
|
-
(0,
|
|
14734
|
+
(0, import_typeorm88.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
14700
14735
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
14701
14736
|
__decorateClass([
|
|
14702
|
-
(0,
|
|
14737
|
+
(0, import_typeorm88.ViewColumn)({ name: "client_id" })
|
|
14703
14738
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
14704
14739
|
__decorateClass([
|
|
14705
|
-
(0,
|
|
14740
|
+
(0, import_typeorm88.ViewColumn)({ name: "client_uuid" })
|
|
14706
14741
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
14707
14742
|
__decorateClass([
|
|
14708
|
-
(0,
|
|
14743
|
+
(0, import_typeorm88.ViewColumn)({ name: "client_first_name" })
|
|
14709
14744
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
14710
14745
|
__decorateClass([
|
|
14711
|
-
(0,
|
|
14746
|
+
(0, import_typeorm88.ViewColumn)({ name: "client_last_name" })
|
|
14712
14747
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
14713
14748
|
__decorateClass([
|
|
14714
|
-
(0,
|
|
14749
|
+
(0, import_typeorm88.ViewColumn)({ name: "client_email" })
|
|
14715
14750
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
14716
14751
|
__decorateClass([
|
|
14717
|
-
(0,
|
|
14752
|
+
(0, import_typeorm88.ViewColumn)({ name: "client_company_logo" })
|
|
14718
14753
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
14719
14754
|
__decorateClass([
|
|
14720
|
-
(0,
|
|
14755
|
+
(0, import_typeorm88.ViewColumn)({ name: "client_company_name" })
|
|
14721
14756
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
14722
14757
|
__decorateClass([
|
|
14723
|
-
(0,
|
|
14758
|
+
(0, import_typeorm88.ViewColumn)({ name: "matching_skills" })
|
|
14724
14759
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
14725
14760
|
__decorateClass([
|
|
14726
|
-
(0,
|
|
14761
|
+
(0, import_typeorm88.ViewColumn)({ name: "matching_skills_count" })
|
|
14727
14762
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
14728
14763
|
__decorateClass([
|
|
14729
|
-
(0,
|
|
14764
|
+
(0, import_typeorm88.ViewColumn)({ name: "required_skills" })
|
|
14730
14765
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
14731
14766
|
__decorateClass([
|
|
14732
|
-
(0,
|
|
14767
|
+
(0, import_typeorm88.ViewColumn)({ name: "required_skills_count" })
|
|
14733
14768
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
14734
14769
|
JobFreelancerRecommendation = __decorateClass([
|
|
14735
|
-
(0,
|
|
14770
|
+
(0, import_typeorm88.ViewEntity)({
|
|
14736
14771
|
name: "job_freelancer_recommendations",
|
|
14737
14772
|
materialized: true,
|
|
14738
14773
|
synchronize: false
|
|
@@ -14741,32 +14776,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
14741
14776
|
], JobFreelancerRecommendation);
|
|
14742
14777
|
|
|
14743
14778
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
14744
|
-
var
|
|
14779
|
+
var import_typeorm89 = require("typeorm");
|
|
14745
14780
|
var JobFreelancerRecommendationV2 = class {
|
|
14746
14781
|
};
|
|
14747
14782
|
__decorateClass([
|
|
14748
|
-
(0,
|
|
14783
|
+
(0, import_typeorm89.ViewColumn)({ name: "job_id" })
|
|
14749
14784
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
14750
14785
|
__decorateClass([
|
|
14751
|
-
(0,
|
|
14786
|
+
(0, import_typeorm89.ViewColumn)({ name: "job_owner_id" })
|
|
14752
14787
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
14753
14788
|
__decorateClass([
|
|
14754
|
-
(0,
|
|
14789
|
+
(0, import_typeorm89.ViewColumn)({ name: "freelancer_id" })
|
|
14755
14790
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
14756
14791
|
__decorateClass([
|
|
14757
|
-
(0,
|
|
14792
|
+
(0, import_typeorm89.ViewColumn)({ name: "matching_skills" })
|
|
14758
14793
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
14759
14794
|
__decorateClass([
|
|
14760
|
-
(0,
|
|
14795
|
+
(0, import_typeorm89.ViewColumn)({ name: "matching_skills_count" })
|
|
14761
14796
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
14762
14797
|
__decorateClass([
|
|
14763
|
-
(0,
|
|
14798
|
+
(0, import_typeorm89.ViewColumn)({ name: "required_skills" })
|
|
14764
14799
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
14765
14800
|
__decorateClass([
|
|
14766
|
-
(0,
|
|
14801
|
+
(0, import_typeorm89.ViewColumn)({ name: "required_skills_count" })
|
|
14767
14802
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
14768
14803
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
14769
|
-
(0,
|
|
14804
|
+
(0, import_typeorm89.ViewEntity)({
|
|
14770
14805
|
name: "job_freelancer_recommendations_v2",
|
|
14771
14806
|
materialized: true,
|
|
14772
14807
|
synchronize: false
|
|
@@ -14775,74 +14810,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
14775
14810
|
], JobFreelancerRecommendationV2);
|
|
14776
14811
|
|
|
14777
14812
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
14778
|
-
var
|
|
14813
|
+
var import_typeorm90 = require("typeorm");
|
|
14779
14814
|
var ClientFreelancerRecommendation = class {
|
|
14780
14815
|
};
|
|
14781
14816
|
__decorateClass([
|
|
14782
|
-
(0,
|
|
14817
|
+
(0, import_typeorm90.ViewColumn)({ name: "client_id" })
|
|
14783
14818
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
14784
14819
|
__decorateClass([
|
|
14785
|
-
(0,
|
|
14820
|
+
(0, import_typeorm90.ViewColumn)({ name: "client_uuid" })
|
|
14786
14821
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
14787
14822
|
__decorateClass([
|
|
14788
|
-
(0,
|
|
14823
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_id" })
|
|
14789
14824
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
14790
14825
|
__decorateClass([
|
|
14791
|
-
(0,
|
|
14826
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_uuid" })
|
|
14792
14827
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
14793
14828
|
__decorateClass([
|
|
14794
|
-
(0,
|
|
14829
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_unique_id" })
|
|
14795
14830
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
14796
14831
|
__decorateClass([
|
|
14797
|
-
(0,
|
|
14832
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_first_name" })
|
|
14798
14833
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
14799
14834
|
__decorateClass([
|
|
14800
|
-
(0,
|
|
14835
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_last_name" })
|
|
14801
14836
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
14802
14837
|
__decorateClass([
|
|
14803
|
-
(0,
|
|
14838
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_email" })
|
|
14804
14839
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
14805
14840
|
__decorateClass([
|
|
14806
|
-
(0,
|
|
14841
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
14807
14842
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
14808
14843
|
__decorateClass([
|
|
14809
|
-
(0,
|
|
14844
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_is_social" })
|
|
14810
14845
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
14811
14846
|
__decorateClass([
|
|
14812
|
-
(0,
|
|
14847
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_created_at" })
|
|
14813
14848
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
14814
14849
|
__decorateClass([
|
|
14815
|
-
(0,
|
|
14850
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_designation" })
|
|
14816
14851
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
14817
14852
|
__decorateClass([
|
|
14818
|
-
(0,
|
|
14853
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_experience" })
|
|
14819
14854
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
14820
14855
|
__decorateClass([
|
|
14821
|
-
(0,
|
|
14856
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
14822
14857
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
14823
14858
|
__decorateClass([
|
|
14824
|
-
(0,
|
|
14859
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
14825
14860
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
14826
14861
|
__decorateClass([
|
|
14827
|
-
(0,
|
|
14862
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_country_name" })
|
|
14828
14863
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
14829
14864
|
__decorateClass([
|
|
14830
|
-
(0,
|
|
14865
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
14831
14866
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
14832
14867
|
__decorateClass([
|
|
14833
|
-
(0,
|
|
14868
|
+
(0, import_typeorm90.ViewColumn)({ name: "matching_skills" })
|
|
14834
14869
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
14835
14870
|
__decorateClass([
|
|
14836
|
-
(0,
|
|
14871
|
+
(0, import_typeorm90.ViewColumn)({ name: "matching_skills_count" })
|
|
14837
14872
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
14838
14873
|
__decorateClass([
|
|
14839
|
-
(0,
|
|
14874
|
+
(0, import_typeorm90.ViewColumn)({ name: "required_skills" })
|
|
14840
14875
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
14841
14876
|
__decorateClass([
|
|
14842
|
-
(0,
|
|
14877
|
+
(0, import_typeorm90.ViewColumn)({ name: "required_skills_count" })
|
|
14843
14878
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
14844
14879
|
ClientFreelancerRecommendation = __decorateClass([
|
|
14845
|
-
(0,
|
|
14880
|
+
(0, import_typeorm90.ViewEntity)({
|
|
14846
14881
|
name: "client_freelancer_recommendations",
|
|
14847
14882
|
materialized: true,
|
|
14848
14883
|
synchronize: false
|
|
@@ -14851,7 +14886,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
14851
14886
|
], ClientFreelancerRecommendation);
|
|
14852
14887
|
|
|
14853
14888
|
// src/entities/commission.entity.ts
|
|
14854
|
-
var
|
|
14889
|
+
var import_typeorm91 = require("typeorm");
|
|
14855
14890
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
14856
14891
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
14857
14892
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -14860,7 +14895,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
14860
14895
|
var Commission = class extends BaseEntity {
|
|
14861
14896
|
};
|
|
14862
14897
|
__decorateClass([
|
|
14863
|
-
(0,
|
|
14898
|
+
(0, import_typeorm91.Column)({
|
|
14864
14899
|
name: "freelancer_commission_type",
|
|
14865
14900
|
type: "enum",
|
|
14866
14901
|
enum: CommissionTypeEnum,
|
|
@@ -14868,10 +14903,10 @@ __decorateClass([
|
|
|
14868
14903
|
})
|
|
14869
14904
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
14870
14905
|
__decorateClass([
|
|
14871
|
-
(0,
|
|
14906
|
+
(0, import_typeorm91.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
14872
14907
|
], Commission.prototype, "freelancerCommission", 2);
|
|
14873
14908
|
__decorateClass([
|
|
14874
|
-
(0,
|
|
14909
|
+
(0, import_typeorm91.Column)({
|
|
14875
14910
|
name: "client_commission_type",
|
|
14876
14911
|
type: "enum",
|
|
14877
14912
|
enum: CommissionTypeEnum,
|
|
@@ -14879,50 +14914,50 @@ __decorateClass([
|
|
|
14879
14914
|
})
|
|
14880
14915
|
], Commission.prototype, "clientCommissionType", 2);
|
|
14881
14916
|
__decorateClass([
|
|
14882
|
-
(0,
|
|
14917
|
+
(0, import_typeorm91.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
14883
14918
|
], Commission.prototype, "clientCommission", 2);
|
|
14884
14919
|
Commission = __decorateClass([
|
|
14885
|
-
(0,
|
|
14920
|
+
(0, import_typeorm91.Entity)("commissions")
|
|
14886
14921
|
], Commission);
|
|
14887
14922
|
|
|
14888
14923
|
// src/entities/calendly-meeting-log.entity.ts
|
|
14889
|
-
var
|
|
14924
|
+
var import_typeorm92 = require("typeorm");
|
|
14890
14925
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
14891
14926
|
};
|
|
14892
14927
|
__decorateClass([
|
|
14893
|
-
(0,
|
|
14894
|
-
(0,
|
|
14928
|
+
(0, import_typeorm92.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
14929
|
+
(0, import_typeorm92.Index)()
|
|
14895
14930
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
14896
14931
|
__decorateClass([
|
|
14897
|
-
(0,
|
|
14932
|
+
(0, import_typeorm92.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
14898
14933
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
14899
14934
|
__decorateClass([
|
|
14900
|
-
(0,
|
|
14935
|
+
(0, import_typeorm92.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14901
14936
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
14902
14937
|
CalendlyMeetingLog = __decorateClass([
|
|
14903
|
-
(0,
|
|
14938
|
+
(0, import_typeorm92.Entity)("calendly_meeting_logs")
|
|
14904
14939
|
], CalendlyMeetingLog);
|
|
14905
14940
|
|
|
14906
14941
|
// src/entities/zoom-meeting-log.entity.ts
|
|
14907
|
-
var
|
|
14942
|
+
var import_typeorm93 = require("typeorm");
|
|
14908
14943
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
14909
14944
|
};
|
|
14910
14945
|
__decorateClass([
|
|
14911
|
-
(0,
|
|
14912
|
-
(0,
|
|
14946
|
+
(0, import_typeorm93.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
14947
|
+
(0, import_typeorm93.Index)()
|
|
14913
14948
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
14914
14949
|
__decorateClass([
|
|
14915
|
-
(0,
|
|
14950
|
+
(0, import_typeorm93.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
14916
14951
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
14917
14952
|
__decorateClass([
|
|
14918
|
-
(0,
|
|
14953
|
+
(0, import_typeorm93.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14919
14954
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
14920
14955
|
ZoomMeetingLog = __decorateClass([
|
|
14921
|
-
(0,
|
|
14956
|
+
(0, import_typeorm93.Entity)("zoom_meeting_logs")
|
|
14922
14957
|
], ZoomMeetingLog);
|
|
14923
14958
|
|
|
14924
14959
|
// src/entities/docuseal.entity.ts
|
|
14925
|
-
var
|
|
14960
|
+
var import_typeorm94 = require("typeorm");
|
|
14926
14961
|
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
14927
14962
|
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
14928
14963
|
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
@@ -14932,132 +14967,132 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
|
14932
14967
|
var DocuSeal = class extends BaseEntity {
|
|
14933
14968
|
};
|
|
14934
14969
|
__decorateClass([
|
|
14935
|
-
(0,
|
|
14936
|
-
(0,
|
|
14970
|
+
(0, import_typeorm94.Column)({ name: "reference_id", type: "integer", nullable: false }),
|
|
14971
|
+
(0, import_typeorm94.Index)()
|
|
14937
14972
|
], DocuSeal.prototype, "referenceId", 2);
|
|
14938
14973
|
__decorateClass([
|
|
14939
|
-
(0,
|
|
14940
|
-
(0,
|
|
14974
|
+
(0, import_typeorm94.Column)({ name: "submitter_id", type: "integer", nullable: true }),
|
|
14975
|
+
(0, import_typeorm94.Index)()
|
|
14941
14976
|
], DocuSeal.prototype, "submitterId", 2);
|
|
14942
14977
|
__decorateClass([
|
|
14943
|
-
(0,
|
|
14978
|
+
(0, import_typeorm94.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
14944
14979
|
], DocuSeal.prototype, "submitterResponse", 2);
|
|
14945
14980
|
__decorateClass([
|
|
14946
|
-
(0,
|
|
14981
|
+
(0, import_typeorm94.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
14947
14982
|
], DocuSeal.prototype, "webhookResponse", 2);
|
|
14948
14983
|
__decorateClass([
|
|
14949
|
-
(0,
|
|
14984
|
+
(0, import_typeorm94.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
14950
14985
|
], DocuSeal.prototype, "type", 2);
|
|
14951
14986
|
DocuSeal = __decorateClass([
|
|
14952
|
-
(0,
|
|
14987
|
+
(0, import_typeorm94.Entity)("docuseal")
|
|
14953
14988
|
], DocuSeal);
|
|
14954
14989
|
|
|
14955
14990
|
// src/entities/stripe-logs.entity.ts
|
|
14956
|
-
var
|
|
14991
|
+
var import_typeorm95 = require("typeorm");
|
|
14957
14992
|
var StripeLog = class extends BaseEntity {
|
|
14958
14993
|
};
|
|
14959
14994
|
__decorateClass([
|
|
14960
|
-
(0,
|
|
14995
|
+
(0, import_typeorm95.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
14961
14996
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
14962
14997
|
__decorateClass([
|
|
14963
|
-
(0,
|
|
14998
|
+
(0, import_typeorm95.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
14964
14999
|
], StripeLog.prototype, "eventType", 2);
|
|
14965
15000
|
__decorateClass([
|
|
14966
|
-
(0,
|
|
15001
|
+
(0, import_typeorm95.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
14967
15002
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
14968
15003
|
__decorateClass([
|
|
14969
|
-
(0,
|
|
15004
|
+
(0, import_typeorm95.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14970
15005
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
14971
15006
|
StripeLog = __decorateClass([
|
|
14972
|
-
(0,
|
|
15007
|
+
(0, import_typeorm95.Entity)("stripe_logs")
|
|
14973
15008
|
], StripeLog);
|
|
14974
15009
|
|
|
14975
15010
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
14976
|
-
var
|
|
15011
|
+
var import_typeorm96 = require("typeorm");
|
|
14977
15012
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
14978
15013
|
};
|
|
14979
15014
|
__decorateClass([
|
|
14980
|
-
(0,
|
|
15015
|
+
(0, import_typeorm96.Column)({
|
|
14981
15016
|
type: "varchar",
|
|
14982
15017
|
length: 100,
|
|
14983
15018
|
unique: true,
|
|
14984
15019
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
14985
15020
|
}),
|
|
14986
|
-
(0,
|
|
15021
|
+
(0, import_typeorm96.Index)()
|
|
14987
15022
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
14988
15023
|
__decorateClass([
|
|
14989
|
-
(0,
|
|
15024
|
+
(0, import_typeorm96.Column)({
|
|
14990
15025
|
type: "jsonb",
|
|
14991
15026
|
comment: "JSON object containing weight values",
|
|
14992
15027
|
nullable: true
|
|
14993
15028
|
})
|
|
14994
15029
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
14995
15030
|
__decorateClass([
|
|
14996
|
-
(0,
|
|
15031
|
+
(0, import_typeorm96.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14997
15032
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
14998
15033
|
RecommendationWeightageConfig = __decorateClass([
|
|
14999
|
-
(0,
|
|
15034
|
+
(0, import_typeorm96.Entity)("recommendation_weightage_configs")
|
|
15000
15035
|
], RecommendationWeightageConfig);
|
|
15001
15036
|
|
|
15002
15037
|
// src/entities/global-setting.entity.ts
|
|
15003
|
-
var
|
|
15038
|
+
var import_typeorm97 = require("typeorm");
|
|
15004
15039
|
var GlobalSetting = class extends BaseEntity {
|
|
15005
15040
|
};
|
|
15006
15041
|
__decorateClass([
|
|
15007
|
-
(0,
|
|
15042
|
+
(0, import_typeorm97.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
15008
15043
|
], GlobalSetting.prototype, "key", 2);
|
|
15009
15044
|
__decorateClass([
|
|
15010
|
-
(0,
|
|
15045
|
+
(0, import_typeorm97.Column)({ name: "value", type: "text", nullable: false })
|
|
15011
15046
|
], GlobalSetting.prototype, "value", 2);
|
|
15012
15047
|
GlobalSetting = __decorateClass([
|
|
15013
|
-
(0,
|
|
15014
|
-
(0,
|
|
15048
|
+
(0, import_typeorm97.Entity)("global_settings"),
|
|
15049
|
+
(0, import_typeorm97.Index)(["key"], { unique: true })
|
|
15015
15050
|
], GlobalSetting);
|
|
15016
15051
|
|
|
15017
15052
|
// src/entities/plan.entity.ts
|
|
15018
|
-
var
|
|
15053
|
+
var import_typeorm100 = require("typeorm");
|
|
15019
15054
|
|
|
15020
15055
|
// src/entities/plan-feature.entity.ts
|
|
15021
|
-
var
|
|
15056
|
+
var import_typeorm98 = require("typeorm");
|
|
15022
15057
|
var PlanFeature = class extends BaseEntity {
|
|
15023
15058
|
};
|
|
15024
15059
|
// individual index to find features by plan
|
|
15025
15060
|
__decorateClass([
|
|
15026
|
-
(0,
|
|
15027
|
-
(0,
|
|
15061
|
+
(0, import_typeorm98.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
15062
|
+
(0, import_typeorm98.Index)()
|
|
15028
15063
|
], PlanFeature.prototype, "planId", 2);
|
|
15029
15064
|
__decorateClass([
|
|
15030
|
-
(0,
|
|
15065
|
+
(0, import_typeorm98.ManyToOne)(() => Plan, (plan) => plan.features, {
|
|
15031
15066
|
onDelete: "CASCADE",
|
|
15032
15067
|
nullable: false
|
|
15033
15068
|
}),
|
|
15034
|
-
(0,
|
|
15069
|
+
(0, import_typeorm98.JoinColumn)({ name: "plan_id" })
|
|
15035
15070
|
], PlanFeature.prototype, "plan", 2);
|
|
15036
15071
|
__decorateClass([
|
|
15037
|
-
(0,
|
|
15072
|
+
(0, import_typeorm98.Column)({ name: "name", type: "varchar", length: 200 })
|
|
15038
15073
|
], PlanFeature.prototype, "name", 2);
|
|
15039
15074
|
__decorateClass([
|
|
15040
|
-
(0,
|
|
15041
|
-
(0,
|
|
15075
|
+
(0, import_typeorm98.Column)({ name: "slug", type: "varchar", length: 100 }),
|
|
15076
|
+
(0, import_typeorm98.Index)()
|
|
15042
15077
|
], PlanFeature.prototype, "slug", 2);
|
|
15043
15078
|
__decorateClass([
|
|
15044
|
-
(0,
|
|
15079
|
+
(0, import_typeorm98.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
15045
15080
|
], PlanFeature.prototype, "tooltip", 2);
|
|
15046
15081
|
__decorateClass([
|
|
15047
|
-
(0,
|
|
15082
|
+
(0, import_typeorm98.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
15048
15083
|
], PlanFeature.prototype, "sortOrder", 2);
|
|
15049
15084
|
__decorateClass([
|
|
15050
|
-
(0,
|
|
15085
|
+
(0, import_typeorm98.Column)({ name: "is_active", type: "boolean", default: true })
|
|
15051
15086
|
], PlanFeature.prototype, "isActive", 2);
|
|
15052
15087
|
PlanFeature = __decorateClass([
|
|
15053
|
-
(0,
|
|
15054
|
-
(0,
|
|
15055
|
-
(0,
|
|
15056
|
-
(0,
|
|
15088
|
+
(0, import_typeorm98.Entity)("plan_features"),
|
|
15089
|
+
(0, import_typeorm98.Index)("idx_plan_features_plan_id", ["planId"]),
|
|
15090
|
+
(0, import_typeorm98.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
15091
|
+
(0, import_typeorm98.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
15057
15092
|
], PlanFeature);
|
|
15058
15093
|
|
|
15059
15094
|
// src/entities/plan-pricing.entity.ts
|
|
15060
|
-
var
|
|
15095
|
+
var import_typeorm99 = require("typeorm");
|
|
15061
15096
|
var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
|
|
15062
15097
|
PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
|
|
15063
15098
|
PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
|
|
@@ -15112,61 +15147,61 @@ var PlanPricing = class extends BaseEntity {
|
|
|
15112
15147
|
};
|
|
15113
15148
|
// individual index to find pricing by plan
|
|
15114
15149
|
__decorateClass([
|
|
15115
|
-
(0,
|
|
15116
|
-
(0,
|
|
15150
|
+
(0, import_typeorm99.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
15151
|
+
(0, import_typeorm99.Index)()
|
|
15117
15152
|
], PlanPricing.prototype, "planId", 2);
|
|
15118
15153
|
__decorateClass([
|
|
15119
|
-
(0,
|
|
15154
|
+
(0, import_typeorm99.ManyToOne)(() => Plan, (plan) => plan.pricing, {
|
|
15120
15155
|
onDelete: "CASCADE",
|
|
15121
15156
|
nullable: false
|
|
15122
15157
|
}),
|
|
15123
|
-
(0,
|
|
15158
|
+
(0, import_typeorm99.JoinColumn)({ name: "plan_id" })
|
|
15124
15159
|
], PlanPricing.prototype, "plan", 2);
|
|
15125
15160
|
__decorateClass([
|
|
15126
|
-
(0,
|
|
15161
|
+
(0, import_typeorm99.Column)({
|
|
15127
15162
|
name: "billing_cycle",
|
|
15128
15163
|
type: "enum",
|
|
15129
15164
|
enum: PlanPricingBillingCycleEnum
|
|
15130
15165
|
})
|
|
15131
15166
|
], PlanPricing.prototype, "billingCycle", 2);
|
|
15132
15167
|
__decorateClass([
|
|
15133
|
-
(0,
|
|
15168
|
+
(0, import_typeorm99.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
15134
15169
|
], PlanPricing.prototype, "price", 2);
|
|
15135
15170
|
__decorateClass([
|
|
15136
|
-
(0,
|
|
15171
|
+
(0, import_typeorm99.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
15137
15172
|
], PlanPricing.prototype, "originalPrice", 2);
|
|
15138
15173
|
__decorateClass([
|
|
15139
|
-
(0,
|
|
15174
|
+
(0, import_typeorm99.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
15140
15175
|
], PlanPricing.prototype, "discountPct", 2);
|
|
15141
15176
|
__decorateClass([
|
|
15142
|
-
(0,
|
|
15177
|
+
(0, import_typeorm99.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
15143
15178
|
], PlanPricing.prototype, "currency", 2);
|
|
15144
15179
|
__decorateClass([
|
|
15145
|
-
(0,
|
|
15180
|
+
(0, import_typeorm99.Column)({ name: "is_free", type: "boolean", default: false })
|
|
15146
15181
|
], PlanPricing.prototype, "isFree", 2);
|
|
15147
15182
|
__decorateClass([
|
|
15148
|
-
(0,
|
|
15183
|
+
(0, import_typeorm99.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
|
|
15149
15184
|
], PlanPricing.prototype, "stripePriceId", 2);
|
|
15150
15185
|
__decorateClass([
|
|
15151
|
-
(0,
|
|
15186
|
+
(0, import_typeorm99.Column)({ name: "trial_days", type: "smallint", default: 0 })
|
|
15152
15187
|
], PlanPricing.prototype, "trialDays", 2);
|
|
15153
15188
|
__decorateClass([
|
|
15154
|
-
(0,
|
|
15189
|
+
(0, import_typeorm99.Column)({ name: "is_active", type: "boolean", default: true })
|
|
15155
15190
|
], PlanPricing.prototype, "isActive", 2);
|
|
15156
15191
|
__decorateClass([
|
|
15157
|
-
(0,
|
|
15158
|
-
(0,
|
|
15192
|
+
(0, import_typeorm99.BeforeInsert)(),
|
|
15193
|
+
(0, import_typeorm99.BeforeUpdate)()
|
|
15159
15194
|
], PlanPricing.prototype, "sanitize", 1);
|
|
15160
15195
|
PlanPricing = __decorateClass([
|
|
15161
|
-
(0,
|
|
15162
|
-
(0,
|
|
15163
|
-
(0,
|
|
15164
|
-
(0,
|
|
15165
|
-
(0,
|
|
15166
|
-
(0,
|
|
15167
|
-
(0,
|
|
15168
|
-
(0,
|
|
15169
|
-
(0,
|
|
15196
|
+
(0, import_typeorm99.Entity)("plan_pricings"),
|
|
15197
|
+
(0, import_typeorm99.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
15198
|
+
(0, import_typeorm99.Index)("idx_plan_pricings_plan_id", ["planId"]),
|
|
15199
|
+
(0, import_typeorm99.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
15200
|
+
(0, import_typeorm99.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
15201
|
+
(0, import_typeorm99.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
15202
|
+
(0, import_typeorm99.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
15203
|
+
(0, import_typeorm99.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
|
|
15204
|
+
(0, import_typeorm99.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
|
|
15170
15205
|
], PlanPricing);
|
|
15171
15206
|
|
|
15172
15207
|
// src/entities/plan.entity.ts
|
|
@@ -15183,22 +15218,22 @@ var Plan = class extends BaseEntity {
|
|
|
15183
15218
|
}
|
|
15184
15219
|
};
|
|
15185
15220
|
__decorateClass([
|
|
15186
|
-
(0,
|
|
15221
|
+
(0, import_typeorm100.Column)({ name: "name", type: "varchar", length: 100 })
|
|
15187
15222
|
], Plan.prototype, "name", 2);
|
|
15188
15223
|
__decorateClass([
|
|
15189
|
-
(0,
|
|
15224
|
+
(0, import_typeorm100.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
15190
15225
|
], Plan.prototype, "slug", 2);
|
|
15191
15226
|
__decorateClass([
|
|
15192
|
-
(0,
|
|
15227
|
+
(0, import_typeorm100.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
15193
15228
|
], Plan.prototype, "badgeLabel", 2);
|
|
15194
15229
|
__decorateClass([
|
|
15195
|
-
(0,
|
|
15230
|
+
(0, import_typeorm100.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
15196
15231
|
], Plan.prototype, "sortOrder", 2);
|
|
15197
15232
|
__decorateClass([
|
|
15198
|
-
(0,
|
|
15233
|
+
(0, import_typeorm100.Column)({ name: "is_active", type: "boolean", default: true })
|
|
15199
15234
|
], Plan.prototype, "isActive", 2);
|
|
15200
15235
|
__decorateClass([
|
|
15201
|
-
(0,
|
|
15236
|
+
(0, import_typeorm100.Column)({
|
|
15202
15237
|
name: "plan_type",
|
|
15203
15238
|
type: "enum",
|
|
15204
15239
|
enum: PlanTypeEnum,
|
|
@@ -15206,37 +15241,37 @@ __decorateClass([
|
|
|
15206
15241
|
})
|
|
15207
15242
|
], Plan.prototype, "planType", 2);
|
|
15208
15243
|
__decorateClass([
|
|
15209
|
-
(0,
|
|
15244
|
+
(0, import_typeorm100.Column)({ name: "metadata", type: "jsonb", default: {} })
|
|
15210
15245
|
], Plan.prototype, "metadata", 2);
|
|
15211
15246
|
__decorateClass([
|
|
15212
|
-
(0,
|
|
15247
|
+
(0, import_typeorm100.Column)({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
|
|
15213
15248
|
], Plan.prototype, "stripeProductId", 2);
|
|
15214
15249
|
__decorateClass([
|
|
15215
|
-
(0,
|
|
15216
|
-
(0,
|
|
15250
|
+
(0, import_typeorm100.BeforeInsert)(),
|
|
15251
|
+
(0, import_typeorm100.BeforeUpdate)()
|
|
15217
15252
|
], Plan.prototype, "createSlug", 1);
|
|
15218
15253
|
__decorateClass([
|
|
15219
|
-
(0,
|
|
15254
|
+
(0, import_typeorm100.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
|
|
15220
15255
|
cascade: ["insert", "update"]
|
|
15221
15256
|
})
|
|
15222
15257
|
], Plan.prototype, "features", 2);
|
|
15223
15258
|
__decorateClass([
|
|
15224
|
-
(0,
|
|
15259
|
+
(0, import_typeorm100.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
|
|
15225
15260
|
cascade: ["insert", "update"]
|
|
15226
15261
|
})
|
|
15227
15262
|
], Plan.prototype, "pricing", 2);
|
|
15228
15263
|
Plan = __decorateClass([
|
|
15229
|
-
(0,
|
|
15230
|
-
(0,
|
|
15264
|
+
(0, import_typeorm100.Entity)("plans"),
|
|
15265
|
+
(0, import_typeorm100.Index)("idx_plans_slug_plan_type", ["slug", "planType"], {
|
|
15231
15266
|
unique: true,
|
|
15232
15267
|
where: '"is_deleted" IS FALSE'
|
|
15233
15268
|
}),
|
|
15234
|
-
(0,
|
|
15235
|
-
(0,
|
|
15269
|
+
(0, import_typeorm100.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
15270
|
+
(0, import_typeorm100.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
15236
15271
|
], Plan);
|
|
15237
15272
|
|
|
15238
15273
|
// src/entities/subscription-feature.entity.ts
|
|
15239
|
-
var
|
|
15274
|
+
var import_typeorm101 = require("typeorm");
|
|
15240
15275
|
var SubscriptionFeature = class extends BaseEntity {
|
|
15241
15276
|
toSlug(value) {
|
|
15242
15277
|
return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
@@ -15251,33 +15286,33 @@ var SubscriptionFeature = class extends BaseEntity {
|
|
|
15251
15286
|
}
|
|
15252
15287
|
};
|
|
15253
15288
|
__decorateClass([
|
|
15254
|
-
(0,
|
|
15289
|
+
(0, import_typeorm101.Column)({ name: "name", type: "varchar", length: 200 })
|
|
15255
15290
|
], SubscriptionFeature.prototype, "name", 2);
|
|
15256
15291
|
__decorateClass([
|
|
15257
|
-
(0,
|
|
15292
|
+
(0, import_typeorm101.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
15258
15293
|
], SubscriptionFeature.prototype, "slug", 2);
|
|
15259
15294
|
__decorateClass([
|
|
15260
|
-
(0,
|
|
15295
|
+
(0, import_typeorm101.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
15261
15296
|
], SubscriptionFeature.prototype, "tooltip", 2);
|
|
15262
15297
|
__decorateClass([
|
|
15263
|
-
(0,
|
|
15298
|
+
(0, import_typeorm101.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
15264
15299
|
], SubscriptionFeature.prototype, "sortOrder", 2);
|
|
15265
15300
|
__decorateClass([
|
|
15266
|
-
(0,
|
|
15301
|
+
(0, import_typeorm101.Column)({ name: "is_active", type: "boolean", default: true })
|
|
15267
15302
|
], SubscriptionFeature.prototype, "isActive", 2);
|
|
15268
15303
|
__decorateClass([
|
|
15269
|
-
(0,
|
|
15270
|
-
(0,
|
|
15304
|
+
(0, import_typeorm101.BeforeInsert)(),
|
|
15305
|
+
(0, import_typeorm101.BeforeUpdate)()
|
|
15271
15306
|
], SubscriptionFeature.prototype, "createSlug", 1);
|
|
15272
15307
|
SubscriptionFeature = __decorateClass([
|
|
15273
|
-
(0,
|
|
15274
|
-
(0,
|
|
15275
|
-
(0,
|
|
15276
|
-
(0,
|
|
15308
|
+
(0, import_typeorm101.Entity)("subscription_features"),
|
|
15309
|
+
(0, import_typeorm101.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
15310
|
+
(0, import_typeorm101.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
|
|
15311
|
+
(0, import_typeorm101.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
|
|
15277
15312
|
], SubscriptionFeature);
|
|
15278
15313
|
|
|
15279
15314
|
// src/entities/user-subscription-transaction.entity.ts
|
|
15280
|
-
var
|
|
15315
|
+
var import_typeorm102 = require("typeorm");
|
|
15281
15316
|
var UserSubscriptionTransactionTypeEnum = /* @__PURE__ */ ((UserSubscriptionTransactionTypeEnum2) => {
|
|
15282
15317
|
UserSubscriptionTransactionTypeEnum2["SUBSCRIPTION_INITIATED"] = "SUBSCRIPTION_INITIATED";
|
|
15283
15318
|
UserSubscriptionTransactionTypeEnum2["CHECKOUT_SESSION_CREATED"] = "CHECKOUT_SESSION_CREATED";
|
|
@@ -15295,25 +15330,25 @@ var UserSubscriptionTransactionStatusEnum = /* @__PURE__ */ ((UserSubscriptionTr
|
|
|
15295
15330
|
var UserSubscriptionTransaction = class extends BaseEntity {
|
|
15296
15331
|
};
|
|
15297
15332
|
__decorateClass([
|
|
15298
|
-
(0,
|
|
15299
|
-
(0,
|
|
15333
|
+
(0, import_typeorm102.Column)({ name: "user_subscription_id", type: "integer", nullable: false }),
|
|
15334
|
+
(0, import_typeorm102.Index)()
|
|
15300
15335
|
], UserSubscriptionTransaction.prototype, "userSubscriptionId", 2);
|
|
15301
15336
|
__decorateClass([
|
|
15302
|
-
(0,
|
|
15303
|
-
(0,
|
|
15337
|
+
(0, import_typeorm102.ManyToOne)(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
|
|
15338
|
+
(0, import_typeorm102.JoinColumn)({ name: "user_subscription_id" })
|
|
15304
15339
|
], UserSubscriptionTransaction.prototype, "userSubscription", 2);
|
|
15305
15340
|
__decorateClass([
|
|
15306
|
-
(0,
|
|
15341
|
+
(0, import_typeorm102.Column)({ name: "user_id", type: "integer", nullable: false })
|
|
15307
15342
|
], UserSubscriptionTransaction.prototype, "userId", 2);
|
|
15308
15343
|
__decorateClass([
|
|
15309
|
-
(0,
|
|
15344
|
+
(0, import_typeorm102.Column)({
|
|
15310
15345
|
name: "type",
|
|
15311
15346
|
type: "enum",
|
|
15312
15347
|
enum: UserSubscriptionTransactionTypeEnum
|
|
15313
15348
|
})
|
|
15314
15349
|
], UserSubscriptionTransaction.prototype, "type", 2);
|
|
15315
15350
|
__decorateClass([
|
|
15316
|
-
(0,
|
|
15351
|
+
(0, import_typeorm102.Column)({
|
|
15317
15352
|
name: "status",
|
|
15318
15353
|
type: "enum",
|
|
15319
15354
|
enum: UserSubscriptionTransactionStatusEnum,
|
|
@@ -15321,49 +15356,49 @@ __decorateClass([
|
|
|
15321
15356
|
})
|
|
15322
15357
|
], UserSubscriptionTransaction.prototype, "status", 2);
|
|
15323
15358
|
__decorateClass([
|
|
15324
|
-
(0,
|
|
15359
|
+
(0, import_typeorm102.Column)({ name: "plan_name", type: "text", nullable: true })
|
|
15325
15360
|
], UserSubscriptionTransaction.prototype, "planName", 2);
|
|
15326
15361
|
__decorateClass([
|
|
15327
|
-
(0,
|
|
15362
|
+
(0, import_typeorm102.Column)({ name: "amount_minor", type: "integer", nullable: true })
|
|
15328
15363
|
], UserSubscriptionTransaction.prototype, "amountMinor", 2);
|
|
15329
15364
|
__decorateClass([
|
|
15330
|
-
(0,
|
|
15365
|
+
(0, import_typeorm102.Column)({ name: "currency", type: "varchar", length: 3, nullable: true })
|
|
15331
15366
|
], UserSubscriptionTransaction.prototype, "currency", 2);
|
|
15332
15367
|
__decorateClass([
|
|
15333
|
-
(0,
|
|
15368
|
+
(0, import_typeorm102.Column)({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
|
|
15334
15369
|
], UserSubscriptionTransaction.prototype, "stripeEventId", 2);
|
|
15335
15370
|
__decorateClass([
|
|
15336
|
-
(0,
|
|
15371
|
+
(0, import_typeorm102.Column)({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
|
|
15337
15372
|
], UserSubscriptionTransaction.prototype, "stripeEventType", 2);
|
|
15338
15373
|
__decorateClass([
|
|
15339
|
-
(0,
|
|
15374
|
+
(0, import_typeorm102.Column)({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
|
|
15340
15375
|
], UserSubscriptionTransaction.prototype, "stripeSubscriptionId", 2);
|
|
15341
15376
|
__decorateClass([
|
|
15342
|
-
(0,
|
|
15377
|
+
(0, import_typeorm102.Column)({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
|
|
15343
15378
|
], UserSubscriptionTransaction.prototype, "stripeInvoiceId", 2);
|
|
15344
15379
|
__decorateClass([
|
|
15345
|
-
(0,
|
|
15380
|
+
(0, import_typeorm102.Column)({ name: "description", type: "text", nullable: true })
|
|
15346
15381
|
], UserSubscriptionTransaction.prototype, "description", 2);
|
|
15347
15382
|
__decorateClass([
|
|
15348
|
-
(0,
|
|
15383
|
+
(0, import_typeorm102.Column)({ name: "invoice_url", type: "text", nullable: true })
|
|
15349
15384
|
], UserSubscriptionTransaction.prototype, "invoiceUrl", 2);
|
|
15350
15385
|
__decorateClass([
|
|
15351
|
-
(0,
|
|
15386
|
+
(0, import_typeorm102.Column)({ name: "checkout_request_payload", type: "jsonb", nullable: true })
|
|
15352
15387
|
], UserSubscriptionTransaction.prototype, "checkoutRequestPayload", 2);
|
|
15353
15388
|
__decorateClass([
|
|
15354
|
-
(0,
|
|
15389
|
+
(0, import_typeorm102.Column)({ name: "checkout_response_payload", type: "jsonb", nullable: true })
|
|
15355
15390
|
], UserSubscriptionTransaction.prototype, "checkoutResponsePayload", 2);
|
|
15356
15391
|
__decorateClass([
|
|
15357
|
-
(0,
|
|
15392
|
+
(0, import_typeorm102.Column)({ name: "webhook_payload", type: "jsonb", nullable: true })
|
|
15358
15393
|
], UserSubscriptionTransaction.prototype, "webhookPayload", 2);
|
|
15359
15394
|
__decorateClass([
|
|
15360
|
-
(0,
|
|
15395
|
+
(0, import_typeorm102.Column)({ name: "metadata", type: "jsonb", nullable: true, default: {} })
|
|
15361
15396
|
], UserSubscriptionTransaction.prototype, "metadata", 2);
|
|
15362
15397
|
UserSubscriptionTransaction = __decorateClass([
|
|
15363
|
-
(0,
|
|
15364
|
-
(0,
|
|
15365
|
-
(0,
|
|
15366
|
-
(0,
|
|
15398
|
+
(0, import_typeorm102.Entity)("user_subscription_transactions"),
|
|
15399
|
+
(0, import_typeorm102.Index)("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
|
|
15400
|
+
(0, import_typeorm102.Index)("idx_user_sub_tx_user_id", ["userId"]),
|
|
15401
|
+
(0, import_typeorm102.Index)("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
|
|
15367
15402
|
], UserSubscriptionTransaction);
|
|
15368
15403
|
// Annotate the CommonJS export names for ESM import in node:
|
|
15369
15404
|
0 && (module.exports = {
|
|
@@ -15455,6 +15490,7 @@ UserSubscriptionTransaction = __decorateClass([
|
|
|
15455
15490
|
Cms,
|
|
15456
15491
|
Commission,
|
|
15457
15492
|
CommissionTypeEnum,
|
|
15493
|
+
CompanyMember,
|
|
15458
15494
|
CompanyMemberRole,
|
|
15459
15495
|
CompanyOnboardingStepEnum,
|
|
15460
15496
|
CompanyProfile,
|