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