@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.mjs
CHANGED
|
@@ -1063,13 +1063,13 @@ import { IsEnum as IsEnum14 } from "class-validator";
|
|
|
1063
1063
|
|
|
1064
1064
|
// src/entities/user.entity.ts
|
|
1065
1065
|
import {
|
|
1066
|
-
Entity as
|
|
1067
|
-
Column as
|
|
1066
|
+
Entity as Entity79,
|
|
1067
|
+
Column as Column80,
|
|
1068
1068
|
OneToMany as OneToMany27,
|
|
1069
1069
|
OneToOne as OneToOne12,
|
|
1070
|
-
Index as
|
|
1071
|
-
ManyToOne as
|
|
1072
|
-
JoinColumn as
|
|
1070
|
+
Index as Index70,
|
|
1071
|
+
ManyToOne as ManyToOne74,
|
|
1072
|
+
JoinColumn as JoinColumn75
|
|
1073
1073
|
} from "typeorm";
|
|
1074
1074
|
|
|
1075
1075
|
// src/entities/base.entity.ts
|
|
@@ -5625,26 +5625,60 @@ CompanyMemberRole = __decorateClass([
|
|
|
5625
5625
|
Entity57("company_member_roles")
|
|
5626
5626
|
], CompanyMemberRole);
|
|
5627
5627
|
|
|
5628
|
+
// src/entities/company-member.entity.ts
|
|
5629
|
+
import { Column as Column59, Entity as Entity58, Index as Index51, JoinColumn as JoinColumn56, ManyToOne as ManyToOne56 } from "typeorm";
|
|
5630
|
+
var CompanyMember = class extends BaseEntity {
|
|
5631
|
+
};
|
|
5632
|
+
__decorateClass([
|
|
5633
|
+
Column59({ name: "user_id", type: "integer", unique: true })
|
|
5634
|
+
], CompanyMember.prototype, "userId", 2);
|
|
5635
|
+
__decorateClass([
|
|
5636
|
+
ManyToOne56(() => User, (user) => user.companyMember),
|
|
5637
|
+
JoinColumn56({ name: "user_id" })
|
|
5638
|
+
], CompanyMember.prototype, "user", 2);
|
|
5639
|
+
__decorateClass([
|
|
5640
|
+
Column59({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5641
|
+
], CompanyMember.prototype, "firstName", 2);
|
|
5642
|
+
__decorateClass([
|
|
5643
|
+
Column59({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5644
|
+
], CompanyMember.prototype, "lastName", 2);
|
|
5645
|
+
__decorateClass([
|
|
5646
|
+
Column59({ name: "email", type: "varchar", nullable: true }),
|
|
5647
|
+
Index51()
|
|
5648
|
+
], CompanyMember.prototype, "email", 2);
|
|
5649
|
+
__decorateClass([
|
|
5650
|
+
Column59({ name: "is_eligible_for_platform_recruiter_acknowledgement", type: "boolean", default: false })
|
|
5651
|
+
], CompanyMember.prototype, "isEligibleForPlatformRecruiterAcknowledgement", 2);
|
|
5652
|
+
__decorateClass([
|
|
5653
|
+
Column59({ name: "is_platform_recruiter_acknowledgement_accepted", type: "boolean", default: false })
|
|
5654
|
+
], CompanyMember.prototype, "isPlatformRecruiterAcknowledgementAccepted", 2);
|
|
5655
|
+
__decorateClass([
|
|
5656
|
+
Column59({ name: "platform_recruiter_acknowledgement_accepted_on", type: "timestamp with time zone", nullable: true })
|
|
5657
|
+
], CompanyMember.prototype, "platformRecruiterAcknowledgementAcceptedOn", 2);
|
|
5658
|
+
CompanyMember = __decorateClass([
|
|
5659
|
+
Entity58("company_members")
|
|
5660
|
+
], CompanyMember);
|
|
5661
|
+
|
|
5628
5662
|
// src/entities/assessment-answer.entity.ts
|
|
5629
5663
|
import {
|
|
5630
|
-
Entity as
|
|
5631
|
-
Column as
|
|
5632
|
-
ManyToOne as
|
|
5633
|
-
Index as
|
|
5634
|
-
JoinColumn as
|
|
5664
|
+
Entity as Entity61,
|
|
5665
|
+
Column as Column62,
|
|
5666
|
+
ManyToOne as ManyToOne59,
|
|
5667
|
+
Index as Index54,
|
|
5668
|
+
JoinColumn as JoinColumn59
|
|
5635
5669
|
} from "typeorm";
|
|
5636
5670
|
|
|
5637
5671
|
// src/entities/assessment-question.entity.ts
|
|
5638
|
-
import { Entity as
|
|
5672
|
+
import { Entity as Entity60, Column as Column61, OneToMany as OneToMany20, Index as Index53, ManyToOne as ManyToOne58, JoinColumn as JoinColumn58 } from "typeorm";
|
|
5639
5673
|
|
|
5640
5674
|
// src/entities/assessment-question-option.entity.ts
|
|
5641
5675
|
import {
|
|
5642
|
-
Entity as
|
|
5643
|
-
Column as
|
|
5676
|
+
Entity as Entity59,
|
|
5677
|
+
Column as Column60,
|
|
5644
5678
|
OneToMany as OneToMany19,
|
|
5645
|
-
ManyToOne as
|
|
5646
|
-
Index as
|
|
5647
|
-
JoinColumn as
|
|
5679
|
+
ManyToOne as ManyToOne57,
|
|
5680
|
+
Index as Index52,
|
|
5681
|
+
JoinColumn as JoinColumn57
|
|
5648
5682
|
} from "typeorm";
|
|
5649
5683
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5650
5684
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -5655,23 +5689,23 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5655
5689
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5656
5690
|
};
|
|
5657
5691
|
__decorateClass([
|
|
5658
|
-
|
|
5659
|
-
|
|
5692
|
+
Column60({ name: "question_id", type: "integer", nullable: true }),
|
|
5693
|
+
Index52()
|
|
5660
5694
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5661
5695
|
__decorateClass([
|
|
5662
|
-
|
|
5696
|
+
ManyToOne57(
|
|
5663
5697
|
() => AssessmetQuestion,
|
|
5664
5698
|
(assessmentQuestion) => assessmentQuestion.options,
|
|
5665
5699
|
{ onDelete: "CASCADE" }
|
|
5666
5700
|
// ✅ IMPORTANT
|
|
5667
5701
|
),
|
|
5668
|
-
|
|
5702
|
+
JoinColumn57({ name: "question_id" })
|
|
5669
5703
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5670
5704
|
__decorateClass([
|
|
5671
|
-
|
|
5705
|
+
Column60({ name: "text", type: "varchar", nullable: true })
|
|
5672
5706
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5673
5707
|
__decorateClass([
|
|
5674
|
-
|
|
5708
|
+
Column60({
|
|
5675
5709
|
name: "answer_type",
|
|
5676
5710
|
type: "enum",
|
|
5677
5711
|
enum: AnswerTypeEnum,
|
|
@@ -5679,13 +5713,13 @@ __decorateClass([
|
|
|
5679
5713
|
})
|
|
5680
5714
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5681
5715
|
__decorateClass([
|
|
5682
|
-
|
|
5716
|
+
Column60({ name: "is_active", type: "boolean", default: true })
|
|
5683
5717
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5684
5718
|
__decorateClass([
|
|
5685
5719
|
OneToMany19(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5686
5720
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5687
5721
|
AssessmetQuestionOption = __decorateClass([
|
|
5688
|
-
|
|
5722
|
+
Entity59("assessment_question_options")
|
|
5689
5723
|
], AssessmetQuestionOption);
|
|
5690
5724
|
|
|
5691
5725
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5697,10 +5731,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5697
5731
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5698
5732
|
};
|
|
5699
5733
|
__decorateClass([
|
|
5700
|
-
|
|
5734
|
+
Column61({ name: "text", type: "varchar", nullable: true })
|
|
5701
5735
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5702
5736
|
__decorateClass([
|
|
5703
|
-
|
|
5737
|
+
Column61({
|
|
5704
5738
|
name: "question_for",
|
|
5705
5739
|
type: "enum",
|
|
5706
5740
|
enum: QuestionForEnum,
|
|
@@ -5708,15 +5742,15 @@ __decorateClass([
|
|
|
5708
5742
|
})
|
|
5709
5743
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5710
5744
|
__decorateClass([
|
|
5711
|
-
|
|
5745
|
+
Column61({ name: "is_active", type: "boolean", default: true })
|
|
5712
5746
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5713
5747
|
__decorateClass([
|
|
5714
|
-
|
|
5715
|
-
|
|
5748
|
+
Column61({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5749
|
+
Index53()
|
|
5716
5750
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5717
5751
|
__decorateClass([
|
|
5718
|
-
|
|
5719
|
-
|
|
5752
|
+
ManyToOne58(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5753
|
+
JoinColumn58({ name: "candidate_id" })
|
|
5720
5754
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5721
5755
|
__decorateClass([
|
|
5722
5756
|
OneToMany20(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -5725,7 +5759,7 @@ __decorateClass([
|
|
|
5725
5759
|
OneToMany20(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5726
5760
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5727
5761
|
AssessmetQuestion = __decorateClass([
|
|
5728
|
-
|
|
5762
|
+
Entity60("assessment_questions")
|
|
5729
5763
|
], AssessmetQuestion);
|
|
5730
5764
|
|
|
5731
5765
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5738,106 +5772,106 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5738
5772
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5739
5773
|
};
|
|
5740
5774
|
__decorateClass([
|
|
5741
|
-
|
|
5742
|
-
|
|
5775
|
+
Column62({ name: "user_id", type: "integer" }),
|
|
5776
|
+
Index54()
|
|
5743
5777
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5744
5778
|
__decorateClass([
|
|
5745
|
-
|
|
5746
|
-
|
|
5779
|
+
ManyToOne59(() => User, (user) => user.assessmentAnswers),
|
|
5780
|
+
JoinColumn59({ name: "user_id" })
|
|
5747
5781
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5748
5782
|
__decorateClass([
|
|
5749
|
-
|
|
5750
|
-
|
|
5783
|
+
Column62({ name: "question_id", type: "integer" }),
|
|
5784
|
+
Index54()
|
|
5751
5785
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5752
5786
|
__decorateClass([
|
|
5753
|
-
|
|
5787
|
+
ManyToOne59(
|
|
5754
5788
|
() => AssessmetQuestion,
|
|
5755
5789
|
(assessmentQuestion) => assessmentQuestion.answers,
|
|
5756
5790
|
{ onDelete: "CASCADE" }
|
|
5757
5791
|
// ✅ IMPORTANT
|
|
5758
5792
|
),
|
|
5759
|
-
|
|
5793
|
+
JoinColumn59({ name: "question_id" })
|
|
5760
5794
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5761
5795
|
__decorateClass([
|
|
5762
|
-
|
|
5763
|
-
|
|
5796
|
+
Column62({ name: "selected_option_id", type: "integer" }),
|
|
5797
|
+
Index54()
|
|
5764
5798
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5765
5799
|
__decorateClass([
|
|
5766
|
-
|
|
5800
|
+
ManyToOne59(
|
|
5767
5801
|
() => AssessmetQuestionOption,
|
|
5768
5802
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions,
|
|
5769
5803
|
{ onDelete: "CASCADE" }
|
|
5770
5804
|
// ✅ IMPORTANT
|
|
5771
5805
|
),
|
|
5772
|
-
|
|
5806
|
+
JoinColumn59({ name: "selected_option_id" })
|
|
5773
5807
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5774
5808
|
__decorateClass([
|
|
5775
|
-
|
|
5809
|
+
Column62({
|
|
5776
5810
|
name: "selected_answer_type",
|
|
5777
5811
|
type: "enum",
|
|
5778
5812
|
enum: SelectedAnswerTypeEnum
|
|
5779
5813
|
})
|
|
5780
5814
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5781
5815
|
__decorateClass([
|
|
5782
|
-
|
|
5816
|
+
Column62({ name: "score", type: "float" })
|
|
5783
5817
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5784
5818
|
AssessmentAnswer = __decorateClass([
|
|
5785
|
-
|
|
5819
|
+
Entity61("assessment_answers")
|
|
5786
5820
|
], AssessmentAnswer);
|
|
5787
5821
|
|
|
5788
5822
|
// src/entities/company-skill.entity.ts
|
|
5789
|
-
import { Entity as
|
|
5823
|
+
import { Entity as Entity62, Column as Column63, Index as Index55, ManyToOne as ManyToOne60, JoinColumn as JoinColumn60 } from "typeorm";
|
|
5790
5824
|
var CompanySkill = class extends BaseEntity {
|
|
5791
5825
|
};
|
|
5792
5826
|
// individual index to find core skills by user
|
|
5793
5827
|
__decorateClass([
|
|
5794
|
-
|
|
5795
|
-
|
|
5828
|
+
Column63({ name: "user_id", type: "integer", nullable: true }),
|
|
5829
|
+
Index55()
|
|
5796
5830
|
], CompanySkill.prototype, "userId", 2);
|
|
5797
5831
|
__decorateClass([
|
|
5798
|
-
|
|
5799
|
-
|
|
5832
|
+
ManyToOne60(() => User, (user) => user.companySkills),
|
|
5833
|
+
JoinColumn60({ name: "user_id" })
|
|
5800
5834
|
], CompanySkill.prototype, "user", 2);
|
|
5801
5835
|
__decorateClass([
|
|
5802
|
-
|
|
5836
|
+
Column63({ name: "skill_name", type: "varchar", nullable: true })
|
|
5803
5837
|
], CompanySkill.prototype, "skillName", 2);
|
|
5804
5838
|
CompanySkill = __decorateClass([
|
|
5805
|
-
|
|
5839
|
+
Entity62("company_skills")
|
|
5806
5840
|
], CompanySkill);
|
|
5807
5841
|
|
|
5808
5842
|
// src/entities/admin-user-role.entity.ts
|
|
5809
|
-
import { Entity as
|
|
5843
|
+
import { Entity as Entity66, Column as Column67, ManyToOne as ManyToOne62, JoinColumn as JoinColumn62 } from "typeorm";
|
|
5810
5844
|
|
|
5811
5845
|
// src/entities/admin-role.entity.ts
|
|
5812
|
-
import { Entity as
|
|
5846
|
+
import { Entity as Entity65, Column as Column66, Index as Index58, OneToMany as OneToMany23 } from "typeorm";
|
|
5813
5847
|
|
|
5814
5848
|
// src/entities/admin-role-permission.entity.ts
|
|
5815
|
-
import { Entity as
|
|
5849
|
+
import { Entity as Entity64, Column as Column65, ManyToOne as ManyToOne61, JoinColumn as JoinColumn61 } from "typeorm";
|
|
5816
5850
|
|
|
5817
5851
|
// src/entities/admin-permission.entity.ts
|
|
5818
|
-
import { Entity as
|
|
5852
|
+
import { Entity as Entity63, Column as Column64, Index as Index56, OneToMany as OneToMany22 } from "typeorm";
|
|
5819
5853
|
var AdminPermission = class extends BaseEntity {
|
|
5820
5854
|
};
|
|
5821
5855
|
__decorateClass([
|
|
5822
|
-
|
|
5856
|
+
Column64({ name: "permission_name", type: "varchar", nullable: true })
|
|
5823
5857
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5824
5858
|
__decorateClass([
|
|
5825
|
-
|
|
5859
|
+
Column64({
|
|
5826
5860
|
name: "permission_slug",
|
|
5827
5861
|
type: "varchar",
|
|
5828
5862
|
unique: true,
|
|
5829
5863
|
nullable: true
|
|
5830
5864
|
}),
|
|
5831
|
-
|
|
5865
|
+
Index56()
|
|
5832
5866
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5833
5867
|
__decorateClass([
|
|
5834
|
-
|
|
5868
|
+
Column64({ name: "permission_description", type: "varchar", nullable: true })
|
|
5835
5869
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5836
5870
|
__decorateClass([
|
|
5837
|
-
|
|
5871
|
+
Column64({ name: "module", type: "varchar", nullable: true })
|
|
5838
5872
|
], AdminPermission.prototype, "module", 2);
|
|
5839
5873
|
__decorateClass([
|
|
5840
|
-
|
|
5874
|
+
Column64({ name: "is_active", type: "boolean", default: true })
|
|
5841
5875
|
], AdminPermission.prototype, "isActive", 2);
|
|
5842
5876
|
__decorateClass([
|
|
5843
5877
|
OneToMany22(
|
|
@@ -5846,14 +5880,14 @@ __decorateClass([
|
|
|
5846
5880
|
)
|
|
5847
5881
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5848
5882
|
AdminPermission = __decorateClass([
|
|
5849
|
-
|
|
5883
|
+
Entity63("admin_permissions")
|
|
5850
5884
|
], AdminPermission);
|
|
5851
5885
|
|
|
5852
5886
|
// src/entities/admin-role-permission.entity.ts
|
|
5853
5887
|
var AdminRolePermission = class extends BaseEntity {
|
|
5854
5888
|
};
|
|
5855
5889
|
__decorateClass([
|
|
5856
|
-
|
|
5890
|
+
Column65({
|
|
5857
5891
|
name: "role_id",
|
|
5858
5892
|
type: "int",
|
|
5859
5893
|
nullable: true,
|
|
@@ -5861,11 +5895,11 @@ __decorateClass([
|
|
|
5861
5895
|
})
|
|
5862
5896
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5863
5897
|
__decorateClass([
|
|
5864
|
-
|
|
5865
|
-
|
|
5898
|
+
ManyToOne61(() => AdminRole),
|
|
5899
|
+
JoinColumn61({ name: "role_id" })
|
|
5866
5900
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5867
5901
|
__decorateClass([
|
|
5868
|
-
|
|
5902
|
+
Column65({
|
|
5869
5903
|
name: "permission_id",
|
|
5870
5904
|
type: "int",
|
|
5871
5905
|
nullable: true,
|
|
@@ -5873,28 +5907,28 @@ __decorateClass([
|
|
|
5873
5907
|
})
|
|
5874
5908
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5875
5909
|
__decorateClass([
|
|
5876
|
-
|
|
5877
|
-
|
|
5910
|
+
ManyToOne61(() => AdminPermission),
|
|
5911
|
+
JoinColumn61({ name: "permission_id" })
|
|
5878
5912
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5879
5913
|
AdminRolePermission = __decorateClass([
|
|
5880
|
-
|
|
5914
|
+
Entity64("admin_role_permissions")
|
|
5881
5915
|
], AdminRolePermission);
|
|
5882
5916
|
|
|
5883
5917
|
// src/entities/admin-role.entity.ts
|
|
5884
5918
|
var AdminRole = class extends BaseEntity {
|
|
5885
5919
|
};
|
|
5886
5920
|
__decorateClass([
|
|
5887
|
-
|
|
5921
|
+
Column66({ name: "role_name", type: "varchar", nullable: true })
|
|
5888
5922
|
], AdminRole.prototype, "roleName", 2);
|
|
5889
5923
|
__decorateClass([
|
|
5890
|
-
|
|
5891
|
-
|
|
5924
|
+
Column66({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5925
|
+
Index58()
|
|
5892
5926
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5893
5927
|
__decorateClass([
|
|
5894
|
-
|
|
5928
|
+
Column66({ name: "role_description", type: "varchar", nullable: true })
|
|
5895
5929
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5896
5930
|
__decorateClass([
|
|
5897
|
-
|
|
5931
|
+
Column66({ name: "is_active", type: "boolean", default: true })
|
|
5898
5932
|
], AdminRole.prototype, "isActive", 2);
|
|
5899
5933
|
__decorateClass([
|
|
5900
5934
|
OneToMany23(
|
|
@@ -5906,14 +5940,14 @@ __decorateClass([
|
|
|
5906
5940
|
OneToMany23(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5907
5941
|
], AdminRole.prototype, "userRoles", 2);
|
|
5908
5942
|
AdminRole = __decorateClass([
|
|
5909
|
-
|
|
5943
|
+
Entity65("admin_roles")
|
|
5910
5944
|
], AdminRole);
|
|
5911
5945
|
|
|
5912
5946
|
// src/entities/admin-user-role.entity.ts
|
|
5913
5947
|
var AdminUserRole = class extends BaseEntity {
|
|
5914
5948
|
};
|
|
5915
5949
|
__decorateClass([
|
|
5916
|
-
|
|
5950
|
+
Column67({
|
|
5917
5951
|
name: "user_id",
|
|
5918
5952
|
type: "int",
|
|
5919
5953
|
nullable: true,
|
|
@@ -5921,11 +5955,11 @@ __decorateClass([
|
|
|
5921
5955
|
})
|
|
5922
5956
|
], AdminUserRole.prototype, "userId", 2);
|
|
5923
5957
|
__decorateClass([
|
|
5924
|
-
|
|
5925
|
-
|
|
5958
|
+
ManyToOne62(() => User),
|
|
5959
|
+
JoinColumn62({ name: "user_id" })
|
|
5926
5960
|
], AdminUserRole.prototype, "user", 2);
|
|
5927
5961
|
__decorateClass([
|
|
5928
|
-
|
|
5962
|
+
Column67({
|
|
5929
5963
|
name: "role_id",
|
|
5930
5964
|
type: "int",
|
|
5931
5965
|
nullable: true,
|
|
@@ -5933,70 +5967,70 @@ __decorateClass([
|
|
|
5933
5967
|
})
|
|
5934
5968
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5935
5969
|
__decorateClass([
|
|
5936
|
-
|
|
5937
|
-
|
|
5970
|
+
ManyToOne62(() => AdminRole),
|
|
5971
|
+
JoinColumn62({ name: "role_id" })
|
|
5938
5972
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5939
5973
|
AdminUserRole = __decorateClass([
|
|
5940
|
-
|
|
5974
|
+
Entity66("admin_user_roles")
|
|
5941
5975
|
], AdminUserRole);
|
|
5942
5976
|
|
|
5943
5977
|
// src/entities/freelancer-resume.entity.ts
|
|
5944
5978
|
import {
|
|
5945
|
-
Entity as
|
|
5946
|
-
Column as
|
|
5947
|
-
Index as
|
|
5948
|
-
ManyToOne as
|
|
5949
|
-
JoinColumn as
|
|
5979
|
+
Entity as Entity67,
|
|
5980
|
+
Column as Column68,
|
|
5981
|
+
Index as Index60,
|
|
5982
|
+
ManyToOne as ManyToOne63,
|
|
5983
|
+
JoinColumn as JoinColumn63
|
|
5950
5984
|
} from "typeorm";
|
|
5951
5985
|
var FreelancerResume = class extends BaseEntity {
|
|
5952
5986
|
};
|
|
5953
5987
|
// individual index to find profile by user
|
|
5954
5988
|
__decorateClass([
|
|
5955
|
-
|
|
5956
|
-
|
|
5989
|
+
Column68({ name: "user_id", type: "integer", nullable: true }),
|
|
5990
|
+
Index60()
|
|
5957
5991
|
], FreelancerResume.prototype, "userId", 2);
|
|
5958
5992
|
__decorateClass([
|
|
5959
|
-
|
|
5960
|
-
|
|
5993
|
+
ManyToOne63(() => User, (user) => user.freelancerProfile),
|
|
5994
|
+
JoinColumn63({ name: "user_id" })
|
|
5961
5995
|
], FreelancerResume.prototype, "user", 2);
|
|
5962
5996
|
__decorateClass([
|
|
5963
|
-
|
|
5997
|
+
Column68({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5964
5998
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5965
5999
|
__decorateClass([
|
|
5966
|
-
|
|
6000
|
+
Column68({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5967
6001
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5968
6002
|
FreelancerResume = __decorateClass([
|
|
5969
|
-
|
|
6003
|
+
Entity67("freelancer_resumes")
|
|
5970
6004
|
], FreelancerResume);
|
|
5971
6005
|
|
|
5972
6006
|
// src/entities/signature.entity.ts
|
|
5973
6007
|
import {
|
|
5974
|
-
Entity as
|
|
5975
|
-
Column as
|
|
5976
|
-
Index as
|
|
5977
|
-
ManyToOne as
|
|
5978
|
-
JoinColumn as
|
|
6008
|
+
Entity as Entity68,
|
|
6009
|
+
Column as Column69,
|
|
6010
|
+
Index as Index61,
|
|
6011
|
+
ManyToOne as ManyToOne64,
|
|
6012
|
+
JoinColumn as JoinColumn64
|
|
5979
6013
|
} from "typeorm";
|
|
5980
6014
|
var Signature = class extends BaseEntity {
|
|
5981
6015
|
};
|
|
5982
6016
|
// individual index to find profile by user
|
|
5983
6017
|
__decorateClass([
|
|
5984
|
-
|
|
5985
|
-
|
|
6018
|
+
Column69({ name: "user_id", type: "integer", nullable: true }),
|
|
6019
|
+
Index61()
|
|
5986
6020
|
], Signature.prototype, "userId", 2);
|
|
5987
6021
|
__decorateClass([
|
|
5988
|
-
|
|
5989
|
-
|
|
6022
|
+
ManyToOne64(() => User, (user) => user.signatures),
|
|
6023
|
+
JoinColumn64({ name: "user_id" })
|
|
5990
6024
|
], Signature.prototype, "user", 2);
|
|
5991
6025
|
__decorateClass([
|
|
5992
|
-
|
|
6026
|
+
Column69({ name: "signature_url", type: "text", nullable: true })
|
|
5993
6027
|
], Signature.prototype, "signatureUrl", 2);
|
|
5994
6028
|
Signature = __decorateClass([
|
|
5995
|
-
|
|
6029
|
+
Entity68("signatures")
|
|
5996
6030
|
], Signature);
|
|
5997
6031
|
|
|
5998
6032
|
// src/entities/dispute.entity.ts
|
|
5999
|
-
import { Entity as
|
|
6033
|
+
import { Entity as Entity69, Column as Column70, Index as Index62, JoinColumn as JoinColumn65, ManyToOne as ManyToOne65 } from "typeorm";
|
|
6000
6034
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
6001
6035
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
6002
6036
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -6017,36 +6051,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
6017
6051
|
var Dispute = class extends BaseEntity {
|
|
6018
6052
|
};
|
|
6019
6053
|
__decorateClass([
|
|
6020
|
-
|
|
6021
|
-
|
|
6054
|
+
Column70({ name: "client_id", type: "integer", nullable: true }),
|
|
6055
|
+
Index62()
|
|
6022
6056
|
], Dispute.prototype, "clientId", 2);
|
|
6023
6057
|
__decorateClass([
|
|
6024
|
-
|
|
6025
|
-
|
|
6058
|
+
ManyToOne65(() => User, (user) => user.clientDisputes),
|
|
6059
|
+
JoinColumn65({ name: "client_id" })
|
|
6026
6060
|
], Dispute.prototype, "client", 2);
|
|
6027
6061
|
__decorateClass([
|
|
6028
|
-
|
|
6029
|
-
|
|
6062
|
+
Column70({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6063
|
+
Index62()
|
|
6030
6064
|
], Dispute.prototype, "freelancerId", 2);
|
|
6031
6065
|
__decorateClass([
|
|
6032
|
-
|
|
6033
|
-
|
|
6066
|
+
ManyToOne65(() => User, (user) => user.freelancerDisputes),
|
|
6067
|
+
JoinColumn65({ name: "freelancer_id" })
|
|
6034
6068
|
], Dispute.prototype, "freelancer", 2);
|
|
6035
6069
|
__decorateClass([
|
|
6036
|
-
|
|
6070
|
+
Column70({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
6037
6071
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
6038
6072
|
__decorateClass([
|
|
6039
|
-
|
|
6040
|
-
|
|
6073
|
+
Column70({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
6074
|
+
Index62()
|
|
6041
6075
|
], Dispute.prototype, "disputeType", 2);
|
|
6042
6076
|
__decorateClass([
|
|
6043
|
-
|
|
6077
|
+
Column70({ name: "description", type: "varchar", nullable: true })
|
|
6044
6078
|
], Dispute.prototype, "description", 2);
|
|
6045
6079
|
__decorateClass([
|
|
6046
|
-
|
|
6080
|
+
Column70({ name: "comment", type: "varchar", nullable: true })
|
|
6047
6081
|
], Dispute.prototype, "comment", 2);
|
|
6048
6082
|
__decorateClass([
|
|
6049
|
-
|
|
6083
|
+
Column70({
|
|
6050
6084
|
name: "status",
|
|
6051
6085
|
type: "enum",
|
|
6052
6086
|
enum: DisputeStatusEnum,
|
|
@@ -6054,7 +6088,7 @@ __decorateClass([
|
|
|
6054
6088
|
})
|
|
6055
6089
|
], Dispute.prototype, "status", 2);
|
|
6056
6090
|
__decorateClass([
|
|
6057
|
-
|
|
6091
|
+
Column70({
|
|
6058
6092
|
name: "initiator_type",
|
|
6059
6093
|
type: "enum",
|
|
6060
6094
|
enum: InitiatorTypeEnum,
|
|
@@ -6063,33 +6097,33 @@ __decorateClass([
|
|
|
6063
6097
|
})
|
|
6064
6098
|
], Dispute.prototype, "initiatorType", 2);
|
|
6065
6099
|
__decorateClass([
|
|
6066
|
-
|
|
6067
|
-
|
|
6100
|
+
Column70({ name: "initiator_id", type: "integer" }),
|
|
6101
|
+
Index62()
|
|
6068
6102
|
], Dispute.prototype, "initiatorId", 2);
|
|
6069
6103
|
__decorateClass([
|
|
6070
|
-
|
|
6071
|
-
|
|
6104
|
+
ManyToOne65(() => User, (user) => user.initiatedDisputes),
|
|
6105
|
+
JoinColumn65({ name: "initiator_id" })
|
|
6072
6106
|
], Dispute.prototype, "initiator", 2);
|
|
6073
6107
|
__decorateClass([
|
|
6074
|
-
|
|
6075
|
-
|
|
6108
|
+
Column70({ name: "respondent_id", type: "integer", nullable: true }),
|
|
6109
|
+
Index62()
|
|
6076
6110
|
], Dispute.prototype, "respondentId", 2);
|
|
6077
6111
|
__decorateClass([
|
|
6078
|
-
|
|
6079
|
-
|
|
6112
|
+
ManyToOne65(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
6113
|
+
JoinColumn65({ name: "respondent_id" })
|
|
6080
6114
|
], Dispute.prototype, "respondent", 2);
|
|
6081
6115
|
__decorateClass([
|
|
6082
|
-
|
|
6116
|
+
Column70({ name: "attachments", type: "jsonb", nullable: true })
|
|
6083
6117
|
], Dispute.prototype, "attachments", 2);
|
|
6084
6118
|
__decorateClass([
|
|
6085
|
-
|
|
6119
|
+
Column70({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
6086
6120
|
], Dispute.prototype, "dynamicFields", 2);
|
|
6087
6121
|
Dispute = __decorateClass([
|
|
6088
|
-
|
|
6122
|
+
Entity69("disputes")
|
|
6089
6123
|
], Dispute);
|
|
6090
6124
|
|
|
6091
6125
|
// src/entities/stripe-transaction.entity.ts
|
|
6092
|
-
import { Entity as
|
|
6126
|
+
import { Entity as Entity70, Column as Column71, Index as Index63, ManyToOne as ManyToOne66, JoinColumn as JoinColumn66 } from "typeorm";
|
|
6093
6127
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
6094
6128
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
6095
6129
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -6111,97 +6145,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
6111
6145
|
// Full Stripe session response
|
|
6112
6146
|
};
|
|
6113
6147
|
__decorateClass([
|
|
6114
|
-
|
|
6115
|
-
|
|
6148
|
+
Column71({ name: "user_id", type: "integer", nullable: true }),
|
|
6149
|
+
Index63()
|
|
6116
6150
|
], StripeTransaction.prototype, "userId", 2);
|
|
6117
6151
|
__decorateClass([
|
|
6118
|
-
|
|
6119
|
-
|
|
6152
|
+
ManyToOne66(() => User, (user) => user.stripeTransactions),
|
|
6153
|
+
JoinColumn66({ name: "user_id" })
|
|
6120
6154
|
], StripeTransaction.prototype, "user", 2);
|
|
6121
6155
|
__decorateClass([
|
|
6122
|
-
|
|
6156
|
+
Column71({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
6123
6157
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
6124
6158
|
__decorateClass([
|
|
6125
|
-
|
|
6159
|
+
Column71({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
6126
6160
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
6127
6161
|
__decorateClass([
|
|
6128
|
-
|
|
6162
|
+
Column71({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
6129
6163
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
6130
6164
|
__decorateClass([
|
|
6131
|
-
|
|
6165
|
+
Column71({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
6132
6166
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
6133
6167
|
__decorateClass([
|
|
6134
|
-
|
|
6168
|
+
Column71({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
6135
6169
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
6136
6170
|
__decorateClass([
|
|
6137
|
-
|
|
6171
|
+
Column71({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
6138
6172
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
6139
6173
|
__decorateClass([
|
|
6140
|
-
|
|
6174
|
+
Column71({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
6141
6175
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
6142
6176
|
__decorateClass([
|
|
6143
|
-
|
|
6177
|
+
Column71({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
6144
6178
|
], StripeTransaction.prototype, "type", 2);
|
|
6145
6179
|
__decorateClass([
|
|
6146
|
-
|
|
6180
|
+
Column71({ name: "currency", type: "varchar", nullable: true })
|
|
6147
6181
|
], StripeTransaction.prototype, "currency", 2);
|
|
6148
6182
|
__decorateClass([
|
|
6149
|
-
|
|
6183
|
+
Column71({ 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" })
|
|
6150
6184
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
6151
6185
|
__decorateClass([
|
|
6152
|
-
|
|
6186
|
+
Column71({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
6153
6187
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
6154
6188
|
__decorateClass([
|
|
6155
|
-
|
|
6189
|
+
Column71({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
6156
6190
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
6157
6191
|
__decorateClass([
|
|
6158
|
-
|
|
6192
|
+
Column71({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
6159
6193
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
6160
6194
|
__decorateClass([
|
|
6161
|
-
|
|
6195
|
+
Column71({ 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" })
|
|
6162
6196
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
6163
6197
|
__decorateClass([
|
|
6164
|
-
|
|
6198
|
+
Column71({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
6165
6199
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
6166
6200
|
__decorateClass([
|
|
6167
|
-
|
|
6201
|
+
Column71({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
6168
6202
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
6169
6203
|
__decorateClass([
|
|
6170
|
-
|
|
6204
|
+
Column71({ 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" })
|
|
6171
6205
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
6172
6206
|
__decorateClass([
|
|
6173
|
-
|
|
6207
|
+
Column71({ name: "description", type: "text", nullable: true })
|
|
6174
6208
|
], StripeTransaction.prototype, "description", 2);
|
|
6175
6209
|
__decorateClass([
|
|
6176
|
-
|
|
6210
|
+
Column71({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6177
6211
|
], StripeTransaction.prototype, "status", 2);
|
|
6178
6212
|
__decorateClass([
|
|
6179
|
-
|
|
6213
|
+
Column71({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
6180
6214
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
6181
6215
|
__decorateClass([
|
|
6182
|
-
|
|
6216
|
+
Column71({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6183
6217
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
6184
6218
|
__decorateClass([
|
|
6185
|
-
|
|
6219
|
+
Column71({ name: "billing_details", type: "jsonb", nullable: true })
|
|
6186
6220
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
6187
6221
|
__decorateClass([
|
|
6188
|
-
|
|
6222
|
+
Column71({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
6189
6223
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
6190
6224
|
__decorateClass([
|
|
6191
|
-
|
|
6225
|
+
Column71({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
6192
6226
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
6193
6227
|
__decorateClass([
|
|
6194
|
-
|
|
6228
|
+
Column71({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
6195
6229
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
6196
6230
|
StripeTransaction = __decorateClass([
|
|
6197
|
-
|
|
6231
|
+
Entity70("stripe_transactions")
|
|
6198
6232
|
], StripeTransaction);
|
|
6199
6233
|
|
|
6200
6234
|
// src/entities/wallet.entity.ts
|
|
6201
|
-
import { Entity as
|
|
6235
|
+
import { Entity as Entity72, Column as Column73, Index as Index65, JoinColumn as JoinColumn68, OneToOne as OneToOne11, OneToMany as OneToMany24 } from "typeorm";
|
|
6202
6236
|
|
|
6203
6237
|
// src/entities/wallet-transaction.entity.ts
|
|
6204
|
-
import { Entity as
|
|
6238
|
+
import { Entity as Entity71, Column as Column72, Index as Index64, ManyToOne as ManyToOne67, JoinColumn as JoinColumn67 } from "typeorm";
|
|
6205
6239
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
6206
6240
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
6207
6241
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -6218,46 +6252,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
6218
6252
|
var WalletTransaction = class extends BaseEntity {
|
|
6219
6253
|
};
|
|
6220
6254
|
__decorateClass([
|
|
6221
|
-
|
|
6222
|
-
|
|
6255
|
+
Column72({ name: "wallet_id", type: "integer", nullable: true }),
|
|
6256
|
+
Index64()
|
|
6223
6257
|
], WalletTransaction.prototype, "walletId", 2);
|
|
6224
6258
|
__decorateClass([
|
|
6225
|
-
|
|
6226
|
-
|
|
6259
|
+
ManyToOne67(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
6260
|
+
JoinColumn67({ name: "wallet_id" })
|
|
6227
6261
|
], WalletTransaction.prototype, "wallet", 2);
|
|
6228
6262
|
__decorateClass([
|
|
6229
|
-
|
|
6263
|
+
Column72({ name: "amount", type: "bigint", nullable: true })
|
|
6230
6264
|
], WalletTransaction.prototype, "amount", 2);
|
|
6231
6265
|
__decorateClass([
|
|
6232
|
-
|
|
6266
|
+
Column72({ name: "balance_before", type: "bigint", nullable: true })
|
|
6233
6267
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
6234
6268
|
__decorateClass([
|
|
6235
|
-
|
|
6269
|
+
Column72({ name: "balance_after", type: "bigint", nullable: true })
|
|
6236
6270
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
6237
6271
|
__decorateClass([
|
|
6238
|
-
|
|
6272
|
+
Column72({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
6239
6273
|
], WalletTransaction.prototype, "type", 2);
|
|
6240
6274
|
__decorateClass([
|
|
6241
|
-
|
|
6275
|
+
Column72({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6242
6276
|
], WalletTransaction.prototype, "status", 2);
|
|
6243
6277
|
__decorateClass([
|
|
6244
|
-
|
|
6278
|
+
Column72({ name: "description", type: "text", nullable: true })
|
|
6245
6279
|
], WalletTransaction.prototype, "description", 2);
|
|
6246
6280
|
__decorateClass([
|
|
6247
|
-
|
|
6281
|
+
Column72({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6248
6282
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
6249
6283
|
__decorateClass([
|
|
6250
|
-
|
|
6284
|
+
Column72({ name: "transaction_for", type: "varchar", nullable: true })
|
|
6251
6285
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
6252
6286
|
__decorateClass([
|
|
6253
|
-
|
|
6287
|
+
Column72({ name: "meta_data", type: "varchar", nullable: true })
|
|
6254
6288
|
], WalletTransaction.prototype, "metaData", 2);
|
|
6255
6289
|
__decorateClass([
|
|
6256
|
-
|
|
6257
|
-
|
|
6290
|
+
Column72({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
6291
|
+
Index64()
|
|
6258
6292
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
6259
6293
|
WalletTransaction = __decorateClass([
|
|
6260
|
-
|
|
6294
|
+
Entity71("wallet_transactions")
|
|
6261
6295
|
], WalletTransaction);
|
|
6262
6296
|
|
|
6263
6297
|
// src/entities/wallet.entity.ts
|
|
@@ -6275,48 +6309,48 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
6275
6309
|
var Wallet = class extends BaseEntity {
|
|
6276
6310
|
};
|
|
6277
6311
|
__decorateClass([
|
|
6278
|
-
|
|
6279
|
-
|
|
6312
|
+
Column73({ name: "user_id", type: "integer", nullable: true }),
|
|
6313
|
+
Index65()
|
|
6280
6314
|
], Wallet.prototype, "userId", 2);
|
|
6281
6315
|
__decorateClass([
|
|
6282
6316
|
OneToOne11(() => User, (user) => user.wallet),
|
|
6283
|
-
|
|
6317
|
+
JoinColumn68({ name: "user_id" })
|
|
6284
6318
|
], Wallet.prototype, "user", 2);
|
|
6285
6319
|
__decorateClass([
|
|
6286
|
-
|
|
6320
|
+
Column73({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
6287
6321
|
], Wallet.prototype, "accountType", 2);
|
|
6288
6322
|
__decorateClass([
|
|
6289
|
-
|
|
6323
|
+
Column73({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
6290
6324
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
6291
6325
|
__decorateClass([
|
|
6292
|
-
|
|
6326
|
+
Column73({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
6293
6327
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
6294
6328
|
__decorateClass([
|
|
6295
|
-
|
|
6329
|
+
Column73({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
6296
6330
|
], Wallet.prototype, "walletBalance", 2);
|
|
6297
6331
|
__decorateClass([
|
|
6298
|
-
|
|
6332
|
+
Column73({ 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" })
|
|
6299
6333
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
6300
6334
|
__decorateClass([
|
|
6301
|
-
|
|
6335
|
+
Column73({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
6302
6336
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
6303
6337
|
__decorateClass([
|
|
6304
|
-
|
|
6338
|
+
Column73({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
6305
6339
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
6306
6340
|
__decorateClass([
|
|
6307
6341
|
OneToMany24(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
6308
6342
|
], Wallet.prototype, "walletTransactions", 2);
|
|
6309
6343
|
Wallet = __decorateClass([
|
|
6310
|
-
|
|
6344
|
+
Entity72("wallets")
|
|
6311
6345
|
], Wallet);
|
|
6312
6346
|
|
|
6313
6347
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
6314
6348
|
import {
|
|
6315
|
-
Entity as
|
|
6316
|
-
Column as
|
|
6317
|
-
ManyToOne as
|
|
6318
|
-
Index as
|
|
6319
|
-
JoinColumn as
|
|
6349
|
+
Entity as Entity73,
|
|
6350
|
+
Column as Column74,
|
|
6351
|
+
ManyToOne as ManyToOne68,
|
|
6352
|
+
Index as Index66,
|
|
6353
|
+
JoinColumn as JoinColumn69
|
|
6320
6354
|
} from "typeorm";
|
|
6321
6355
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
6322
6356
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
@@ -6327,23 +6361,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
6327
6361
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
6328
6362
|
};
|
|
6329
6363
|
__decorateClass([
|
|
6330
|
-
|
|
6331
|
-
|
|
6364
|
+
Column74({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6365
|
+
Index66()
|
|
6332
6366
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
6333
6367
|
__decorateClass([
|
|
6334
|
-
|
|
6335
|
-
|
|
6368
|
+
ManyToOne68(() => User, (user) => user.freelancerAssessmentRequests),
|
|
6369
|
+
JoinColumn69({ name: "freelancer_id" })
|
|
6336
6370
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
6337
6371
|
__decorateClass([
|
|
6338
|
-
|
|
6339
|
-
|
|
6372
|
+
Column74({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
6373
|
+
Index66()
|
|
6340
6374
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
6341
6375
|
__decorateClass([
|
|
6342
|
-
|
|
6343
|
-
|
|
6376
|
+
ManyToOne68(() => User, (user) => user.assessmentRequests),
|
|
6377
|
+
JoinColumn69({ name: "approved_by_id" })
|
|
6344
6378
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
6345
6379
|
__decorateClass([
|
|
6346
|
-
|
|
6380
|
+
Column74({
|
|
6347
6381
|
name: "status",
|
|
6348
6382
|
type: "enum",
|
|
6349
6383
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -6351,89 +6385,89 @@ __decorateClass([
|
|
|
6351
6385
|
})
|
|
6352
6386
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
6353
6387
|
__decorateClass([
|
|
6354
|
-
|
|
6388
|
+
Column74({ name: "assessment_link", type: "text", nullable: true })
|
|
6355
6389
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
6356
6390
|
FreelancerAssessmentRequest = __decorateClass([
|
|
6357
|
-
|
|
6391
|
+
Entity73({ name: "freelancer_assessment_requests" })
|
|
6358
6392
|
], FreelancerAssessmentRequest);
|
|
6359
6393
|
|
|
6360
6394
|
// src/entities/in-app-notification.entity.ts
|
|
6361
|
-
import { Entity as
|
|
6395
|
+
import { Entity as Entity74, Column as Column75, Index as Index67, ManyToOne as ManyToOne69, JoinColumn as JoinColumn70 } from "typeorm";
|
|
6362
6396
|
var InAppNotification = class extends BaseEntity {
|
|
6363
6397
|
};
|
|
6364
6398
|
__decorateClass([
|
|
6365
|
-
|
|
6366
|
-
|
|
6399
|
+
Column75({ name: "user_id", type: "integer", nullable: true }),
|
|
6400
|
+
Index67()
|
|
6367
6401
|
], InAppNotification.prototype, "userId", 2);
|
|
6368
6402
|
__decorateClass([
|
|
6369
|
-
|
|
6370
|
-
|
|
6403
|
+
ManyToOne69(() => User, (user) => user.inAppNotifications),
|
|
6404
|
+
JoinColumn70({ name: "user_id" })
|
|
6371
6405
|
], InAppNotification.prototype, "user", 2);
|
|
6372
6406
|
__decorateClass([
|
|
6373
|
-
|
|
6407
|
+
Column75({ name: "event", type: "varchar", nullable: true })
|
|
6374
6408
|
], InAppNotification.prototype, "event", 2);
|
|
6375
6409
|
__decorateClass([
|
|
6376
|
-
|
|
6410
|
+
Column75({ name: "title", type: "varchar", nullable: true })
|
|
6377
6411
|
], InAppNotification.prototype, "title", 2);
|
|
6378
6412
|
__decorateClass([
|
|
6379
|
-
|
|
6413
|
+
Column75({ name: "message", type: "varchar", nullable: true })
|
|
6380
6414
|
], InAppNotification.prototype, "message", 2);
|
|
6381
6415
|
__decorateClass([
|
|
6382
|
-
|
|
6416
|
+
Column75({ name: "redirect_url", type: "varchar", nullable: true })
|
|
6383
6417
|
], InAppNotification.prototype, "redirectUrl", 2);
|
|
6384
6418
|
__decorateClass([
|
|
6385
|
-
|
|
6419
|
+
Column75({ name: "is_read", type: "boolean", default: false })
|
|
6386
6420
|
], InAppNotification.prototype, "isRead", 2);
|
|
6387
6421
|
__decorateClass([
|
|
6388
|
-
|
|
6422
|
+
Column75({ name: "meta_data", type: "jsonb", nullable: true })
|
|
6389
6423
|
], InAppNotification.prototype, "metaData", 2);
|
|
6390
6424
|
InAppNotification = __decorateClass([
|
|
6391
|
-
|
|
6425
|
+
Entity74("in_app_notifications")
|
|
6392
6426
|
], InAppNotification);
|
|
6393
6427
|
|
|
6394
6428
|
// src/entities/user-subscription.entity.ts
|
|
6395
|
-
import { Entity as
|
|
6429
|
+
import { Entity as Entity78, Column as Column79, ManyToOne as ManyToOne73, OneToMany as OneToMany26, JoinColumn as JoinColumn74 } from "typeorm";
|
|
6396
6430
|
|
|
6397
6431
|
// src/entities/user-subscription-plan.entity.ts
|
|
6398
|
-
import { Entity as
|
|
6432
|
+
import { Entity as Entity77, Column as Column78, JoinColumn as JoinColumn73, ManyToOne as ManyToOne72, OneToMany as OneToMany25 } from "typeorm";
|
|
6399
6433
|
|
|
6400
6434
|
// src/entities/user-subscription-plan-feature.entity.ts
|
|
6401
|
-
import { Entity as
|
|
6435
|
+
import { Entity as Entity75, Column as Column76, ManyToOne as ManyToOne70, JoinColumn as JoinColumn71, Index as Index68 } from "typeorm";
|
|
6402
6436
|
var UserSubscriptionPlanFeature = class extends BaseEntity {
|
|
6403
6437
|
};
|
|
6404
6438
|
__decorateClass([
|
|
6405
|
-
|
|
6406
|
-
|
|
6439
|
+
Column76({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
|
|
6440
|
+
Index68()
|
|
6407
6441
|
], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlanId", 2);
|
|
6408
6442
|
__decorateClass([
|
|
6409
|
-
|
|
6410
|
-
|
|
6443
|
+
ManyToOne70(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanFeatures, { onDelete: "CASCADE", nullable: false }),
|
|
6444
|
+
JoinColumn71({ name: "user_subscription_plan_id" })
|
|
6411
6445
|
], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlan", 2);
|
|
6412
6446
|
__decorateClass([
|
|
6413
|
-
|
|
6447
|
+
Column76({ name: "plan_feature_id", type: "integer", nullable: false })
|
|
6414
6448
|
], UserSubscriptionPlanFeature.prototype, "planFeatureId", 2);
|
|
6415
6449
|
__decorateClass([
|
|
6416
|
-
|
|
6450
|
+
Column76({ name: "name", type: "varchar", length: 200 })
|
|
6417
6451
|
], UserSubscriptionPlanFeature.prototype, "name", 2);
|
|
6418
6452
|
__decorateClass([
|
|
6419
|
-
|
|
6420
|
-
|
|
6453
|
+
Column76({ name: "slug", type: "varchar", length: 100 }),
|
|
6454
|
+
Index68()
|
|
6421
6455
|
], UserSubscriptionPlanFeature.prototype, "slug", 2);
|
|
6422
6456
|
__decorateClass([
|
|
6423
|
-
|
|
6457
|
+
Column76({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
6424
6458
|
], UserSubscriptionPlanFeature.prototype, "tooltip", 2);
|
|
6425
6459
|
__decorateClass([
|
|
6426
|
-
|
|
6460
|
+
Column76({ name: "sort_order", type: "smallint", default: 0 })
|
|
6427
6461
|
], UserSubscriptionPlanFeature.prototype, "sortOrder", 2);
|
|
6428
6462
|
__decorateClass([
|
|
6429
|
-
|
|
6463
|
+
Column76({ name: "is_active", type: "boolean", default: true })
|
|
6430
6464
|
], UserSubscriptionPlanFeature.prototype, "isActive", 2);
|
|
6431
6465
|
UserSubscriptionPlanFeature = __decorateClass([
|
|
6432
|
-
|
|
6466
|
+
Entity75("user_subscription_plan_features")
|
|
6433
6467
|
], UserSubscriptionPlanFeature);
|
|
6434
6468
|
|
|
6435
6469
|
// src/entities/user-subscription-plan-pricing.entity.ts
|
|
6436
|
-
import { Entity as
|
|
6470
|
+
import { Entity as Entity76, Column as Column77, ManyToOne as ManyToOne71, JoinColumn as JoinColumn72, Index as Index69 } from "typeorm";
|
|
6437
6471
|
var UserSubscriptionPlanPricingBillingCycleEnum = /* @__PURE__ */ ((UserSubscriptionPlanPricingBillingCycleEnum2) => {
|
|
6438
6472
|
UserSubscriptionPlanPricingBillingCycleEnum2["MONTHLY"] = "MONTHLY";
|
|
6439
6473
|
UserSubscriptionPlanPricingBillingCycleEnum2["YEARLY"] = "YEARLY";
|
|
@@ -6442,42 +6476,42 @@ var UserSubscriptionPlanPricingBillingCycleEnum = /* @__PURE__ */ ((UserSubscrip
|
|
|
6442
6476
|
var UserSubscriptionPlanPricing = class extends BaseEntity {
|
|
6443
6477
|
};
|
|
6444
6478
|
__decorateClass([
|
|
6445
|
-
|
|
6446
|
-
|
|
6479
|
+
Column77({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
|
|
6480
|
+
Index69()
|
|
6447
6481
|
], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlanId", 2);
|
|
6448
6482
|
__decorateClass([
|
|
6449
|
-
|
|
6450
|
-
|
|
6483
|
+
ManyToOne71(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanPricing, { onDelete: "CASCADE", nullable: false }),
|
|
6484
|
+
JoinColumn72({ name: "user_subscription_plan_id" })
|
|
6451
6485
|
], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlan", 2);
|
|
6452
6486
|
__decorateClass([
|
|
6453
|
-
|
|
6487
|
+
Column77({ name: "plan_pricing_id", type: "integer", nullable: false })
|
|
6454
6488
|
], UserSubscriptionPlanPricing.prototype, "planPricingId", 2);
|
|
6455
6489
|
__decorateClass([
|
|
6456
|
-
|
|
6490
|
+
Column77({ name: "billing_cycle", type: "enum", enum: UserSubscriptionPlanPricingBillingCycleEnum })
|
|
6457
6491
|
], UserSubscriptionPlanPricing.prototype, "billingCycle", 2);
|
|
6458
6492
|
__decorateClass([
|
|
6459
|
-
|
|
6493
|
+
Column77({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
6460
6494
|
], UserSubscriptionPlanPricing.prototype, "price", 2);
|
|
6461
6495
|
__decorateClass([
|
|
6462
|
-
|
|
6496
|
+
Column77({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
6463
6497
|
], UserSubscriptionPlanPricing.prototype, "originalPrice", 2);
|
|
6464
6498
|
__decorateClass([
|
|
6465
|
-
|
|
6499
|
+
Column77({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
6466
6500
|
], UserSubscriptionPlanPricing.prototype, "discountPct", 2);
|
|
6467
6501
|
__decorateClass([
|
|
6468
|
-
|
|
6502
|
+
Column77({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
6469
6503
|
], UserSubscriptionPlanPricing.prototype, "currency", 2);
|
|
6470
6504
|
__decorateClass([
|
|
6471
|
-
|
|
6505
|
+
Column77({ name: "is_free", type: "boolean", default: false })
|
|
6472
6506
|
], UserSubscriptionPlanPricing.prototype, "isFree", 2);
|
|
6473
6507
|
__decorateClass([
|
|
6474
|
-
|
|
6508
|
+
Column77({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true })
|
|
6475
6509
|
], UserSubscriptionPlanPricing.prototype, "stripePriceId", 2);
|
|
6476
6510
|
__decorateClass([
|
|
6477
|
-
|
|
6511
|
+
Column77({ name: "is_active", type: "boolean", default: true })
|
|
6478
6512
|
], UserSubscriptionPlanPricing.prototype, "isActive", 2);
|
|
6479
6513
|
UserSubscriptionPlanPricing = __decorateClass([
|
|
6480
|
-
|
|
6514
|
+
Entity76("user_subscription_plan_pricings")
|
|
6481
6515
|
], UserSubscriptionPlanPricing);
|
|
6482
6516
|
|
|
6483
6517
|
// src/entities/user-subscription-plan.entity.ts
|
|
@@ -6489,35 +6523,35 @@ var UserSubscriptionPlanTypeEnum = /* @__PURE__ */ ((UserSubscriptionPlanTypeEnu
|
|
|
6489
6523
|
var UserSubscriptionPlan = class extends BaseEntity {
|
|
6490
6524
|
};
|
|
6491
6525
|
__decorateClass([
|
|
6492
|
-
|
|
6526
|
+
Column78({ name: "user_subscription_id", type: "integer", nullable: false })
|
|
6493
6527
|
], UserSubscriptionPlan.prototype, "userSubscriptionId", 2);
|
|
6494
6528
|
__decorateClass([
|
|
6495
|
-
|
|
6496
|
-
|
|
6529
|
+
ManyToOne72(() => UserSubscription, (userSubscription) => userSubscription.userSubscriptionPlans, { onDelete: "CASCADE", nullable: false }),
|
|
6530
|
+
JoinColumn73({ name: "user_subscription_id" })
|
|
6497
6531
|
], UserSubscriptionPlan.prototype, "userSubscription", 2);
|
|
6498
6532
|
__decorateClass([
|
|
6499
|
-
|
|
6533
|
+
Column78({ name: "plan_id", type: "integer", nullable: false })
|
|
6500
6534
|
], UserSubscriptionPlan.prototype, "planId", 2);
|
|
6501
6535
|
__decorateClass([
|
|
6502
|
-
|
|
6536
|
+
Column78({ name: "name", type: "varchar", length: 100 })
|
|
6503
6537
|
], UserSubscriptionPlan.prototype, "name", 2);
|
|
6504
6538
|
__decorateClass([
|
|
6505
|
-
|
|
6539
|
+
Column78({ name: "slug", type: "varchar", length: 100 })
|
|
6506
6540
|
], UserSubscriptionPlan.prototype, "slug", 2);
|
|
6507
6541
|
__decorateClass([
|
|
6508
|
-
|
|
6542
|
+
Column78({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
6509
6543
|
], UserSubscriptionPlan.prototype, "badgeLabel", 2);
|
|
6510
6544
|
__decorateClass([
|
|
6511
|
-
|
|
6545
|
+
Column78({ name: "sort_order", type: "smallint", default: 0 })
|
|
6512
6546
|
], UserSubscriptionPlan.prototype, "sortOrder", 2);
|
|
6513
6547
|
__decorateClass([
|
|
6514
|
-
|
|
6548
|
+
Column78({ name: "is_active", type: "boolean", default: true })
|
|
6515
6549
|
], UserSubscriptionPlan.prototype, "isActive", 2);
|
|
6516
6550
|
__decorateClass([
|
|
6517
|
-
|
|
6551
|
+
Column78({ name: "plan_type", type: "enum", enum: UserSubscriptionPlanTypeEnum, default: "BUSINESS" /* BUSINESS */ })
|
|
6518
6552
|
], UserSubscriptionPlan.prototype, "planType", 2);
|
|
6519
6553
|
__decorateClass([
|
|
6520
|
-
|
|
6554
|
+
Column78({ name: "metadata", type: "jsonb", default: {} })
|
|
6521
6555
|
], UserSubscriptionPlan.prototype, "metadata", 2);
|
|
6522
6556
|
__decorateClass([
|
|
6523
6557
|
OneToMany25(() => UserSubscriptionPlanFeature, (f) => f.userSubscriptionPlan)
|
|
@@ -6526,7 +6560,7 @@ __decorateClass([
|
|
|
6526
6560
|
OneToMany25(() => UserSubscriptionPlanPricing, (p) => p.userSubscriptionPlan)
|
|
6527
6561
|
], UserSubscriptionPlan.prototype, "userSubscriptionPlanPricing", 2);
|
|
6528
6562
|
UserSubscriptionPlan = __decorateClass([
|
|
6529
|
-
|
|
6563
|
+
Entity77("user_subscription_plans")
|
|
6530
6564
|
], UserSubscriptionPlan);
|
|
6531
6565
|
|
|
6532
6566
|
// src/entities/user-subscription.entity.ts
|
|
@@ -6544,26 +6578,26 @@ var UserSubscriptionStatusEnum = /* @__PURE__ */ ((UserSubscriptionStatusEnum2)
|
|
|
6544
6578
|
var UserSubscription = class extends BaseEntity {
|
|
6545
6579
|
};
|
|
6546
6580
|
__decorateClass([
|
|
6547
|
-
|
|
6581
|
+
Column79({ name: "user_id", type: "integer", nullable: false })
|
|
6548
6582
|
], UserSubscription.prototype, "userId", 2);
|
|
6549
6583
|
__decorateClass([
|
|
6550
|
-
|
|
6551
|
-
|
|
6584
|
+
ManyToOne73(() => User, (user) => user.userSubscriptions, { onDelete: "CASCADE", nullable: false }),
|
|
6585
|
+
JoinColumn74({ name: "user_id" })
|
|
6552
6586
|
], UserSubscription.prototype, "user", 2);
|
|
6553
6587
|
__decorateClass([
|
|
6554
6588
|
OneToMany26(() => UserSubscriptionPlan, (plan) => plan.userSubscription)
|
|
6555
6589
|
], UserSubscription.prototype, "userSubscriptionPlans", 2);
|
|
6556
6590
|
__decorateClass([
|
|
6557
|
-
|
|
6591
|
+
Column79({ name: "subscription_amount", type: "integer", nullable: false })
|
|
6558
6592
|
], UserSubscription.prototype, "subscriptionAmount", 2);
|
|
6559
6593
|
__decorateClass([
|
|
6560
|
-
|
|
6594
|
+
Column79({ name: "total_tax_amount", type: "integer", nullable: false })
|
|
6561
6595
|
], UserSubscription.prototype, "totalTaxAmount", 2);
|
|
6562
6596
|
__decorateClass([
|
|
6563
|
-
|
|
6597
|
+
Column79({ name: "total_amount", type: "integer", nullable: false })
|
|
6564
6598
|
], UserSubscription.prototype, "totalAmount", 2);
|
|
6565
6599
|
__decorateClass([
|
|
6566
|
-
|
|
6600
|
+
Column79({
|
|
6567
6601
|
name: "status",
|
|
6568
6602
|
type: "enum",
|
|
6569
6603
|
enum: UserSubscriptionStatusEnum,
|
|
@@ -6571,35 +6605,35 @@ __decorateClass([
|
|
|
6571
6605
|
})
|
|
6572
6606
|
], UserSubscription.prototype, "status", 2);
|
|
6573
6607
|
__decorateClass([
|
|
6574
|
-
|
|
6608
|
+
Column79({
|
|
6575
6609
|
name: "subscription_start_date",
|
|
6576
6610
|
type: "timestamptz",
|
|
6577
6611
|
nullable: true
|
|
6578
6612
|
})
|
|
6579
6613
|
], UserSubscription.prototype, "subscriptionStartDate", 2);
|
|
6580
6614
|
__decorateClass([
|
|
6581
|
-
|
|
6615
|
+
Column79({
|
|
6582
6616
|
name: "subscription_start_date_timestamp",
|
|
6583
6617
|
type: "integer",
|
|
6584
6618
|
nullable: true
|
|
6585
6619
|
})
|
|
6586
6620
|
], UserSubscription.prototype, "subscriptionStartDateTimestamp", 2);
|
|
6587
6621
|
__decorateClass([
|
|
6588
|
-
|
|
6622
|
+
Column79({
|
|
6589
6623
|
name: "subscription_end_date",
|
|
6590
6624
|
type: "timestamptz",
|
|
6591
6625
|
nullable: true
|
|
6592
6626
|
})
|
|
6593
6627
|
], UserSubscription.prototype, "subscriptionEndDate", 2);
|
|
6594
6628
|
__decorateClass([
|
|
6595
|
-
|
|
6629
|
+
Column79({
|
|
6596
6630
|
name: "subscription_end_date_timestamp",
|
|
6597
6631
|
type: "integer",
|
|
6598
6632
|
nullable: true
|
|
6599
6633
|
})
|
|
6600
6634
|
], UserSubscription.prototype, "subscriptionEndDateTimestamp", 2);
|
|
6601
6635
|
__decorateClass([
|
|
6602
|
-
|
|
6636
|
+
Column79({
|
|
6603
6637
|
name: "stripe_price_id",
|
|
6604
6638
|
type: "varchar",
|
|
6605
6639
|
length: 100,
|
|
@@ -6607,7 +6641,7 @@ __decorateClass([
|
|
|
6607
6641
|
})
|
|
6608
6642
|
], UserSubscription.prototype, "stripePriceId", 2);
|
|
6609
6643
|
__decorateClass([
|
|
6610
|
-
|
|
6644
|
+
Column79({
|
|
6611
6645
|
name: "stripe_product_id",
|
|
6612
6646
|
type: "varchar",
|
|
6613
6647
|
length: 100,
|
|
@@ -6615,7 +6649,7 @@ __decorateClass([
|
|
|
6615
6649
|
})
|
|
6616
6650
|
], UserSubscription.prototype, "stripeProductId", 2);
|
|
6617
6651
|
__decorateClass([
|
|
6618
|
-
|
|
6652
|
+
Column79({
|
|
6619
6653
|
name: "stripe_customer_id",
|
|
6620
6654
|
type: "varchar",
|
|
6621
6655
|
length: 64,
|
|
@@ -6623,7 +6657,7 @@ __decorateClass([
|
|
|
6623
6657
|
})
|
|
6624
6658
|
], UserSubscription.prototype, "stripeCustomerId", 2);
|
|
6625
6659
|
__decorateClass([
|
|
6626
|
-
|
|
6660
|
+
Column79({
|
|
6627
6661
|
name: "stripe_subscription_id",
|
|
6628
6662
|
type: "varchar",
|
|
6629
6663
|
length: 64,
|
|
@@ -6632,7 +6666,7 @@ __decorateClass([
|
|
|
6632
6666
|
})
|
|
6633
6667
|
], UserSubscription.prototype, "stripeSubscriptionId", 2);
|
|
6634
6668
|
__decorateClass([
|
|
6635
|
-
|
|
6669
|
+
Column79({
|
|
6636
6670
|
name: "stripe_checkout_session_id",
|
|
6637
6671
|
type: "varchar",
|
|
6638
6672
|
length: 255,
|
|
@@ -6640,7 +6674,7 @@ __decorateClass([
|
|
|
6640
6674
|
})
|
|
6641
6675
|
], UserSubscription.prototype, "stripeCheckoutSessionId", 2);
|
|
6642
6676
|
UserSubscription = __decorateClass([
|
|
6643
|
-
|
|
6677
|
+
Entity78("user_subscriptions")
|
|
6644
6678
|
], UserSubscription);
|
|
6645
6679
|
|
|
6646
6680
|
// src/entities/user.entity.ts
|
|
@@ -6669,57 +6703,57 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
6669
6703
|
var User = class extends BaseEntity {
|
|
6670
6704
|
};
|
|
6671
6705
|
__decorateClass([
|
|
6672
|
-
|
|
6706
|
+
Column80({ name: "unique_id", type: "varchar", unique: true })
|
|
6673
6707
|
], User.prototype, "uniqueId", 2);
|
|
6674
6708
|
__decorateClass([
|
|
6675
|
-
|
|
6676
|
-
|
|
6709
|
+
Column80({ name: "parent_id", type: "integer", nullable: true }),
|
|
6710
|
+
Index70()
|
|
6677
6711
|
], User.prototype, "parentId", 2);
|
|
6678
6712
|
__decorateClass([
|
|
6679
|
-
|
|
6680
|
-
|
|
6713
|
+
ManyToOne74(() => User, (user) => user.children, { nullable: true }),
|
|
6714
|
+
JoinColumn75({ name: "parent_id" })
|
|
6681
6715
|
], User.prototype, "parent", 2);
|
|
6682
6716
|
__decorateClass([
|
|
6683
6717
|
OneToMany27(() => User, (user) => user.parent)
|
|
6684
6718
|
], User.prototype, "children", 2);
|
|
6685
6719
|
__decorateClass([
|
|
6686
|
-
|
|
6720
|
+
Column80({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
6687
6721
|
], User.prototype, "username", 2);
|
|
6688
6722
|
__decorateClass([
|
|
6689
|
-
|
|
6723
|
+
Column80({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
6690
6724
|
], User.prototype, "firstName", 2);
|
|
6691
6725
|
__decorateClass([
|
|
6692
|
-
|
|
6726
|
+
Column80({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
6693
6727
|
], User.prototype, "lastName", 2);
|
|
6694
6728
|
__decorateClass([
|
|
6695
|
-
|
|
6729
|
+
Column80({ name: "date_of_birth", type: "date", nullable: true })
|
|
6696
6730
|
], User.prototype, "dateOfBirth", 2);
|
|
6697
6731
|
__decorateClass([
|
|
6698
|
-
|
|
6732
|
+
Column80({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
6699
6733
|
], User.prototype, "gender", 2);
|
|
6700
6734
|
__decorateClass([
|
|
6701
|
-
|
|
6735
|
+
Column80({ name: "profile_picture_url", type: "text", nullable: true })
|
|
6702
6736
|
], User.prototype, "profilePictureUrl", 2);
|
|
6703
6737
|
__decorateClass([
|
|
6704
|
-
|
|
6738
|
+
Column80({ name: "presigned_profile_picture_url", type: "text", nullable: true })
|
|
6705
6739
|
], User.prototype, "presignedProfilePictureUrl", 2);
|
|
6706
6740
|
__decorateClass([
|
|
6707
|
-
|
|
6741
|
+
Column80({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
|
|
6708
6742
|
], User.prototype, "presignedProfilePictureUrlExpiresAt", 2);
|
|
6709
6743
|
__decorateClass([
|
|
6710
|
-
|
|
6744
|
+
Column80({ name: "email", type: "varchar", unique: true })
|
|
6711
6745
|
], User.prototype, "email", 2);
|
|
6712
6746
|
__decorateClass([
|
|
6713
|
-
|
|
6747
|
+
Column80({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6714
6748
|
], User.prototype, "mobileCode", 2);
|
|
6715
6749
|
__decorateClass([
|
|
6716
|
-
|
|
6750
|
+
Column80({ name: "mobile", type: "varchar", nullable: true })
|
|
6717
6751
|
], User.prototype, "mobile", 2);
|
|
6718
6752
|
__decorateClass([
|
|
6719
|
-
|
|
6753
|
+
Column80({ name: "password", type: "varchar", nullable: true })
|
|
6720
6754
|
], User.prototype, "password", 2);
|
|
6721
6755
|
__decorateClass([
|
|
6722
|
-
|
|
6756
|
+
Column80({
|
|
6723
6757
|
name: "account_type",
|
|
6724
6758
|
type: "enum",
|
|
6725
6759
|
enum: AccountType2,
|
|
@@ -6727,7 +6761,7 @@ __decorateClass([
|
|
|
6727
6761
|
})
|
|
6728
6762
|
], User.prototype, "accountType", 2);
|
|
6729
6763
|
__decorateClass([
|
|
6730
|
-
|
|
6764
|
+
Column80({
|
|
6731
6765
|
name: "account_status",
|
|
6732
6766
|
type: "enum",
|
|
6733
6767
|
enum: AccountStatus,
|
|
@@ -6735,45 +6769,45 @@ __decorateClass([
|
|
|
6735
6769
|
})
|
|
6736
6770
|
], User.prototype, "accountStatus", 2);
|
|
6737
6771
|
__decorateClass([
|
|
6738
|
-
|
|
6772
|
+
Column80({ name: "is_email_verified", type: "boolean", default: false })
|
|
6739
6773
|
], User.prototype, "isEmailVerified", 2);
|
|
6740
6774
|
__decorateClass([
|
|
6741
|
-
|
|
6775
|
+
Column80({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6742
6776
|
], User.prototype, "isMobileVerified", 2);
|
|
6743
6777
|
__decorateClass([
|
|
6744
|
-
|
|
6778
|
+
Column80({ name: "is_social", type: "boolean", default: false })
|
|
6745
6779
|
], User.prototype, "isSocial", 2);
|
|
6746
6780
|
__decorateClass([
|
|
6747
|
-
|
|
6781
|
+
Column80({ name: "is_referral_user", type: "boolean", default: false })
|
|
6748
6782
|
], User.prototype, "isReferralUser", 2);
|
|
6749
6783
|
__decorateClass([
|
|
6750
|
-
|
|
6784
|
+
Column80({
|
|
6751
6785
|
name: "last_login_at",
|
|
6752
6786
|
type: "timestamp with time zone",
|
|
6753
6787
|
nullable: true
|
|
6754
6788
|
})
|
|
6755
6789
|
], User.prototype, "lastLoginAt", 2);
|
|
6756
6790
|
__decorateClass([
|
|
6757
|
-
|
|
6791
|
+
Column80({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6758
6792
|
], User.prototype, "lastLoginIp", 2);
|
|
6759
6793
|
__decorateClass([
|
|
6760
|
-
|
|
6794
|
+
Column80({ name: "reset_token", type: "varchar", nullable: true })
|
|
6761
6795
|
], User.prototype, "resetToken", 2);
|
|
6762
6796
|
__decorateClass([
|
|
6763
|
-
|
|
6797
|
+
Column80({
|
|
6764
6798
|
name: "reset_token_expire_at",
|
|
6765
6799
|
type: "timestamp with time zone",
|
|
6766
6800
|
nullable: true
|
|
6767
6801
|
})
|
|
6768
6802
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6769
6803
|
__decorateClass([
|
|
6770
|
-
|
|
6804
|
+
Column80({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6771
6805
|
], User.prototype, "setPasswordToken", 2);
|
|
6772
6806
|
__decorateClass([
|
|
6773
6807
|
OneToMany27(() => RefreshToken, (token) => token.user)
|
|
6774
6808
|
], User.prototype, "refreshTokens", 2);
|
|
6775
6809
|
__decorateClass([
|
|
6776
|
-
|
|
6810
|
+
Column80({
|
|
6777
6811
|
name: "provider",
|
|
6778
6812
|
type: "enum",
|
|
6779
6813
|
enum: Provider,
|
|
@@ -6782,22 +6816,22 @@ __decorateClass([
|
|
|
6782
6816
|
})
|
|
6783
6817
|
], User.prototype, "provider", 2);
|
|
6784
6818
|
__decorateClass([
|
|
6785
|
-
|
|
6819
|
+
Column80({ name: "provider_token", type: "varchar", nullable: true })
|
|
6786
6820
|
], User.prototype, "providerToken", 2);
|
|
6787
6821
|
__decorateClass([
|
|
6788
|
-
|
|
6822
|
+
Column80({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6789
6823
|
], User.prototype, "linkedInId", 2);
|
|
6790
6824
|
__decorateClass([
|
|
6791
|
-
|
|
6825
|
+
Column80({ name: "google_id", type: "varchar", nullable: true })
|
|
6792
6826
|
], User.prototype, "googleId", 2);
|
|
6793
6827
|
__decorateClass([
|
|
6794
|
-
|
|
6828
|
+
Column80({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6795
6829
|
], User.prototype, "gitLabsId", 2);
|
|
6796
6830
|
__decorateClass([
|
|
6797
|
-
|
|
6831
|
+
Column80({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6798
6832
|
], User.prototype, "onBoardedBy", 2);
|
|
6799
6833
|
__decorateClass([
|
|
6800
|
-
|
|
6834
|
+
Column80({ name: "ip", type: "varchar", nullable: true })
|
|
6801
6835
|
], User.prototype, "ip", 2);
|
|
6802
6836
|
__decorateClass([
|
|
6803
6837
|
OneToMany27(() => Otp, (otp) => otp.user)
|
|
@@ -6817,6 +6851,9 @@ __decorateClass([
|
|
|
6817
6851
|
(companyMemberRole) => companyMemberRole.user
|
|
6818
6852
|
)
|
|
6819
6853
|
], User.prototype, "companyMemberRoles", 2);
|
|
6854
|
+
__decorateClass([
|
|
6855
|
+
OneToOne12(() => CompanyMember, (companyMember) => companyMember.user)
|
|
6856
|
+
], User.prototype, "companyMember", 2);
|
|
6820
6857
|
__decorateClass([
|
|
6821
6858
|
OneToMany27(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6822
6859
|
], User.prototype, "companyAiInterview", 2);
|
|
@@ -7047,7 +7084,7 @@ __decorateClass([
|
|
|
7047
7084
|
OneToMany27(() => UserSubscription, (userSubscription) => userSubscription.user)
|
|
7048
7085
|
], User.prototype, "userSubscriptions", 2);
|
|
7049
7086
|
User = __decorateClass([
|
|
7050
|
-
|
|
7087
|
+
Entity79("users")
|
|
7051
7088
|
], User);
|
|
7052
7089
|
|
|
7053
7090
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -14521,11 +14558,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
14521
14558
|
};
|
|
14522
14559
|
|
|
14523
14560
|
// src/entities/sequence-generator.entity.ts
|
|
14524
|
-
import { Entity as
|
|
14561
|
+
import { Entity as Entity80, Column as Column81 } from "typeorm";
|
|
14525
14562
|
var SequenceGenerator = class extends BaseEntity {
|
|
14526
14563
|
};
|
|
14527
14564
|
__decorateClass([
|
|
14528
|
-
|
|
14565
|
+
Column81({
|
|
14529
14566
|
name: "module",
|
|
14530
14567
|
type: "varchar",
|
|
14531
14568
|
length: 50,
|
|
@@ -14534,7 +14571,7 @@ __decorateClass([
|
|
|
14534
14571
|
})
|
|
14535
14572
|
], SequenceGenerator.prototype, "module", 2);
|
|
14536
14573
|
__decorateClass([
|
|
14537
|
-
|
|
14574
|
+
Column81({
|
|
14538
14575
|
name: "prefix",
|
|
14539
14576
|
type: "varchar",
|
|
14540
14577
|
length: 10,
|
|
@@ -14543,7 +14580,7 @@ __decorateClass([
|
|
|
14543
14580
|
})
|
|
14544
14581
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
14545
14582
|
__decorateClass([
|
|
14546
|
-
|
|
14583
|
+
Column81({
|
|
14547
14584
|
name: "last_sequence",
|
|
14548
14585
|
type: "int",
|
|
14549
14586
|
nullable: false,
|
|
@@ -14551,7 +14588,7 @@ __decorateClass([
|
|
|
14551
14588
|
})
|
|
14552
14589
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
14553
14590
|
__decorateClass([
|
|
14554
|
-
|
|
14591
|
+
Column81({
|
|
14555
14592
|
name: "year",
|
|
14556
14593
|
type: "int",
|
|
14557
14594
|
nullable: true,
|
|
@@ -14559,11 +14596,11 @@ __decorateClass([
|
|
|
14559
14596
|
})
|
|
14560
14597
|
], SequenceGenerator.prototype, "year", 2);
|
|
14561
14598
|
SequenceGenerator = __decorateClass([
|
|
14562
|
-
|
|
14599
|
+
Entity80("sequence_generators")
|
|
14563
14600
|
], SequenceGenerator);
|
|
14564
14601
|
|
|
14565
14602
|
// src/entities/question.entity.ts
|
|
14566
|
-
import { Entity as
|
|
14603
|
+
import { Entity as Entity81, Column as Column82 } from "typeorm";
|
|
14567
14604
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
14568
14605
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
14569
14606
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -14572,16 +14609,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
14572
14609
|
var Question = class extends BaseEntity {
|
|
14573
14610
|
};
|
|
14574
14611
|
__decorateClass([
|
|
14575
|
-
|
|
14612
|
+
Column82({ name: "question", type: "varchar" })
|
|
14576
14613
|
], Question.prototype, "question", 2);
|
|
14577
14614
|
__decorateClass([
|
|
14578
|
-
|
|
14615
|
+
Column82({ name: "hint", type: "varchar", nullable: true })
|
|
14579
14616
|
], Question.prototype, "hint", 2);
|
|
14580
14617
|
__decorateClass([
|
|
14581
|
-
|
|
14618
|
+
Column82({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14582
14619
|
], Question.prototype, "slug", 2);
|
|
14583
14620
|
__decorateClass([
|
|
14584
|
-
|
|
14621
|
+
Column82({
|
|
14585
14622
|
name: "question_for",
|
|
14586
14623
|
type: "enum",
|
|
14587
14624
|
enum: QuestionFor,
|
|
@@ -14589,49 +14626,49 @@ __decorateClass([
|
|
|
14589
14626
|
})
|
|
14590
14627
|
], Question.prototype, "questionFor", 2);
|
|
14591
14628
|
__decorateClass([
|
|
14592
|
-
|
|
14629
|
+
Column82({ name: "type", type: "varchar", nullable: true })
|
|
14593
14630
|
], Question.prototype, "type", 2);
|
|
14594
14631
|
__decorateClass([
|
|
14595
|
-
|
|
14632
|
+
Column82({ name: "options", type: "jsonb", nullable: true })
|
|
14596
14633
|
], Question.prototype, "options", 2);
|
|
14597
14634
|
__decorateClass([
|
|
14598
|
-
|
|
14635
|
+
Column82({ name: "is_active", type: "boolean", default: false })
|
|
14599
14636
|
], Question.prototype, "isActive", 2);
|
|
14600
14637
|
Question = __decorateClass([
|
|
14601
|
-
|
|
14638
|
+
Entity81("questions")
|
|
14602
14639
|
], Question);
|
|
14603
14640
|
|
|
14604
14641
|
// src/entities/skill.entity.ts
|
|
14605
|
-
import { Entity as
|
|
14642
|
+
import { Entity as Entity82, Column as Column83 } from "typeorm";
|
|
14606
14643
|
var Skill = class extends BaseEntity {
|
|
14607
14644
|
};
|
|
14608
14645
|
__decorateClass([
|
|
14609
|
-
|
|
14646
|
+
Column83({ name: "name", type: "varchar", nullable: true })
|
|
14610
14647
|
], Skill.prototype, "name", 2);
|
|
14611
14648
|
__decorateClass([
|
|
14612
|
-
|
|
14649
|
+
Column83({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14613
14650
|
], Skill.prototype, "slug", 2);
|
|
14614
14651
|
__decorateClass([
|
|
14615
|
-
|
|
14652
|
+
Column83({ name: "is_active", type: "boolean", default: false })
|
|
14616
14653
|
], Skill.prototype, "isActive", 2);
|
|
14617
14654
|
Skill = __decorateClass([
|
|
14618
|
-
|
|
14655
|
+
Entity82("skills")
|
|
14619
14656
|
], Skill);
|
|
14620
14657
|
|
|
14621
14658
|
// src/entities/skill-catalog.entity.ts
|
|
14622
14659
|
import {
|
|
14623
|
-
Entity as
|
|
14624
|
-
Column as
|
|
14625
|
-
Index as
|
|
14660
|
+
Entity as Entity83,
|
|
14661
|
+
Column as Column84,
|
|
14662
|
+
Index as Index71
|
|
14626
14663
|
} from "typeorm";
|
|
14627
14664
|
var SkillCatalog = class extends BaseEntity {
|
|
14628
14665
|
};
|
|
14629
14666
|
__decorateClass([
|
|
14630
|
-
|
|
14631
|
-
|
|
14667
|
+
Column84({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
14668
|
+
Index71()
|
|
14632
14669
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
14633
14670
|
__decorateClass([
|
|
14634
|
-
|
|
14671
|
+
Column84({
|
|
14635
14672
|
name: "aliases",
|
|
14636
14673
|
type: "text",
|
|
14637
14674
|
array: true,
|
|
@@ -14639,20 +14676,20 @@ __decorateClass([
|
|
|
14639
14676
|
})
|
|
14640
14677
|
], SkillCatalog.prototype, "aliases", 2);
|
|
14641
14678
|
__decorateClass([
|
|
14642
|
-
|
|
14679
|
+
Column84({
|
|
14643
14680
|
name: "variations",
|
|
14644
14681
|
type: "jsonb",
|
|
14645
14682
|
default: "{}"
|
|
14646
14683
|
})
|
|
14647
14684
|
], SkillCatalog.prototype, "variations", 2);
|
|
14648
14685
|
__decorateClass([
|
|
14649
|
-
|
|
14686
|
+
Column84({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
14650
14687
|
], SkillCatalog.prototype, "category", 2);
|
|
14651
14688
|
__decorateClass([
|
|
14652
|
-
|
|
14689
|
+
Column84({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
14653
14690
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
14654
14691
|
__decorateClass([
|
|
14655
|
-
|
|
14692
|
+
Column84({
|
|
14656
14693
|
name: "related_skills",
|
|
14657
14694
|
type: "text",
|
|
14658
14695
|
array: true,
|
|
@@ -14660,70 +14697,70 @@ __decorateClass([
|
|
|
14660
14697
|
})
|
|
14661
14698
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
14662
14699
|
__decorateClass([
|
|
14663
|
-
|
|
14664
|
-
|
|
14700
|
+
Column84({ name: "usage_count", type: "integer", default: 0 }),
|
|
14701
|
+
Index71()
|
|
14665
14702
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
14666
14703
|
__decorateClass([
|
|
14667
|
-
|
|
14704
|
+
Column84({ name: "is_verified", type: "boolean", default: false })
|
|
14668
14705
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
14669
14706
|
__decorateClass([
|
|
14670
|
-
|
|
14707
|
+
Column84({ name: "first_seen_date", type: "date" })
|
|
14671
14708
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
14672
14709
|
__decorateClass([
|
|
14673
|
-
|
|
14710
|
+
Column84({ name: "last_updated_date", type: "date" })
|
|
14674
14711
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
14675
14712
|
__decorateClass([
|
|
14676
|
-
|
|
14713
|
+
Column84({
|
|
14677
14714
|
name: "search_vector",
|
|
14678
14715
|
type: "tsvector",
|
|
14679
14716
|
nullable: true
|
|
14680
14717
|
})
|
|
14681
14718
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
14682
14719
|
SkillCatalog = __decorateClass([
|
|
14683
|
-
|
|
14720
|
+
Entity83("skill_catalogs")
|
|
14684
14721
|
], SkillCatalog);
|
|
14685
14722
|
|
|
14686
14723
|
// src/entities/job-role.entity.ts
|
|
14687
|
-
import { Entity as
|
|
14724
|
+
import { Entity as Entity84, Column as Column85 } from "typeorm";
|
|
14688
14725
|
var JobRoles = class extends BaseEntity {
|
|
14689
14726
|
};
|
|
14690
14727
|
__decorateClass([
|
|
14691
|
-
|
|
14728
|
+
Column85({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14692
14729
|
], JobRoles.prototype, "slug", 2);
|
|
14693
14730
|
__decorateClass([
|
|
14694
|
-
|
|
14731
|
+
Column85({ name: "name", type: "varchar", nullable: true })
|
|
14695
14732
|
], JobRoles.prototype, "name", 2);
|
|
14696
14733
|
__decorateClass([
|
|
14697
|
-
|
|
14734
|
+
Column85({ name: "is_active", type: "boolean", default: true })
|
|
14698
14735
|
], JobRoles.prototype, "isActive", 2);
|
|
14699
14736
|
JobRoles = __decorateClass([
|
|
14700
|
-
|
|
14737
|
+
Entity84("job_roles")
|
|
14701
14738
|
], JobRoles);
|
|
14702
14739
|
|
|
14703
14740
|
// src/entities/cms.entity.ts
|
|
14704
|
-
import { Entity as
|
|
14741
|
+
import { Entity as Entity85, Column as Column86 } from "typeorm";
|
|
14705
14742
|
var Cms = class extends BaseEntity {
|
|
14706
14743
|
};
|
|
14707
14744
|
__decorateClass([
|
|
14708
|
-
|
|
14745
|
+
Column86({ name: "title", type: "varchar", nullable: true })
|
|
14709
14746
|
], Cms.prototype, "title", 2);
|
|
14710
14747
|
__decorateClass([
|
|
14711
|
-
|
|
14748
|
+
Column86({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14712
14749
|
], Cms.prototype, "slug", 2);
|
|
14713
14750
|
__decorateClass([
|
|
14714
|
-
|
|
14751
|
+
Column86({ name: "content", type: "varchar", nullable: true })
|
|
14715
14752
|
], Cms.prototype, "content", 2);
|
|
14716
14753
|
__decorateClass([
|
|
14717
|
-
|
|
14754
|
+
Column86({ name: "is_active", type: "boolean", default: true })
|
|
14718
14755
|
], Cms.prototype, "isActive", 2);
|
|
14719
14756
|
Cms = __decorateClass([
|
|
14720
|
-
|
|
14757
|
+
Entity85("cms")
|
|
14721
14758
|
], Cms);
|
|
14722
14759
|
|
|
14723
14760
|
// src/entities/lead.entity.ts
|
|
14724
14761
|
import {
|
|
14725
|
-
Entity as
|
|
14726
|
-
Column as
|
|
14762
|
+
Entity as Entity86,
|
|
14763
|
+
Column as Column87
|
|
14727
14764
|
} from "typeorm";
|
|
14728
14765
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
14729
14766
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -14733,22 +14770,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
14733
14770
|
var Lead = class extends BaseEntity {
|
|
14734
14771
|
};
|
|
14735
14772
|
__decorateClass([
|
|
14736
|
-
|
|
14773
|
+
Column87({ name: "name", type: "varchar", nullable: true })
|
|
14737
14774
|
], Lead.prototype, "name", 2);
|
|
14738
14775
|
__decorateClass([
|
|
14739
|
-
|
|
14776
|
+
Column87({ name: "mobile_code", type: "varchar", nullable: true })
|
|
14740
14777
|
], Lead.prototype, "mobileCode", 2);
|
|
14741
14778
|
__decorateClass([
|
|
14742
|
-
|
|
14779
|
+
Column87({ name: "mobile", type: "varchar", nullable: true })
|
|
14743
14780
|
], Lead.prototype, "mobile", 2);
|
|
14744
14781
|
__decorateClass([
|
|
14745
|
-
|
|
14782
|
+
Column87({ name: "email", type: "varchar", nullable: true })
|
|
14746
14783
|
], Lead.prototype, "email", 2);
|
|
14747
14784
|
__decorateClass([
|
|
14748
|
-
|
|
14785
|
+
Column87({ name: "description", type: "varchar", nullable: true })
|
|
14749
14786
|
], Lead.prototype, "description", 2);
|
|
14750
14787
|
__decorateClass([
|
|
14751
|
-
|
|
14788
|
+
Column87({
|
|
14752
14789
|
name: "category",
|
|
14753
14790
|
type: "enum",
|
|
14754
14791
|
enum: CategoryEmum,
|
|
@@ -14756,7 +14793,7 @@ __decorateClass([
|
|
|
14756
14793
|
})
|
|
14757
14794
|
], Lead.prototype, "category", 2);
|
|
14758
14795
|
Lead = __decorateClass([
|
|
14759
|
-
|
|
14796
|
+
Entity86("leads")
|
|
14760
14797
|
], Lead);
|
|
14761
14798
|
|
|
14762
14799
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -14997,7 +15034,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
14997
15034
|
], ClientFreelancerRecommendation);
|
|
14998
15035
|
|
|
14999
15036
|
// src/entities/commission.entity.ts
|
|
15000
|
-
import { Entity as
|
|
15037
|
+
import { Entity as Entity87, Column as Column88 } from "typeorm";
|
|
15001
15038
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
15002
15039
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
15003
15040
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -15006,7 +15043,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
15006
15043
|
var Commission = class extends BaseEntity {
|
|
15007
15044
|
};
|
|
15008
15045
|
__decorateClass([
|
|
15009
|
-
|
|
15046
|
+
Column88({
|
|
15010
15047
|
name: "freelancer_commission_type",
|
|
15011
15048
|
type: "enum",
|
|
15012
15049
|
enum: CommissionTypeEnum,
|
|
@@ -15014,10 +15051,10 @@ __decorateClass([
|
|
|
15014
15051
|
})
|
|
15015
15052
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
15016
15053
|
__decorateClass([
|
|
15017
|
-
|
|
15054
|
+
Column88({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
15018
15055
|
], Commission.prototype, "freelancerCommission", 2);
|
|
15019
15056
|
__decorateClass([
|
|
15020
|
-
|
|
15057
|
+
Column88({
|
|
15021
15058
|
name: "client_commission_type",
|
|
15022
15059
|
type: "enum",
|
|
15023
15060
|
enum: CommissionTypeEnum,
|
|
@@ -15025,58 +15062,58 @@ __decorateClass([
|
|
|
15025
15062
|
})
|
|
15026
15063
|
], Commission.prototype, "clientCommissionType", 2);
|
|
15027
15064
|
__decorateClass([
|
|
15028
|
-
|
|
15065
|
+
Column88({ name: "client_commission", type: "integer", default: 0 })
|
|
15029
15066
|
], Commission.prototype, "clientCommission", 2);
|
|
15030
15067
|
Commission = __decorateClass([
|
|
15031
|
-
|
|
15068
|
+
Entity87("commissions")
|
|
15032
15069
|
], Commission);
|
|
15033
15070
|
|
|
15034
15071
|
// src/entities/calendly-meeting-log.entity.ts
|
|
15035
15072
|
import {
|
|
15036
|
-
Entity as
|
|
15037
|
-
Column as
|
|
15038
|
-
Index as
|
|
15073
|
+
Entity as Entity88,
|
|
15074
|
+
Column as Column89,
|
|
15075
|
+
Index as Index72
|
|
15039
15076
|
} from "typeorm";
|
|
15040
15077
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
15041
15078
|
};
|
|
15042
15079
|
__decorateClass([
|
|
15043
|
-
|
|
15044
|
-
|
|
15080
|
+
Column89({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
15081
|
+
Index72()
|
|
15045
15082
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
15046
15083
|
__decorateClass([
|
|
15047
|
-
|
|
15084
|
+
Column89({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
15048
15085
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
15049
15086
|
__decorateClass([
|
|
15050
|
-
|
|
15087
|
+
Column89({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
15051
15088
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
15052
15089
|
CalendlyMeetingLog = __decorateClass([
|
|
15053
|
-
|
|
15090
|
+
Entity88("calendly_meeting_logs")
|
|
15054
15091
|
], CalendlyMeetingLog);
|
|
15055
15092
|
|
|
15056
15093
|
// src/entities/zoom-meeting-log.entity.ts
|
|
15057
15094
|
import {
|
|
15058
|
-
Entity as
|
|
15059
|
-
Column as
|
|
15060
|
-
Index as
|
|
15095
|
+
Entity as Entity89,
|
|
15096
|
+
Column as Column90,
|
|
15097
|
+
Index as Index73
|
|
15061
15098
|
} from "typeorm";
|
|
15062
15099
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
15063
15100
|
};
|
|
15064
15101
|
__decorateClass([
|
|
15065
|
-
|
|
15066
|
-
|
|
15102
|
+
Column90({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
15103
|
+
Index73()
|
|
15067
15104
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
15068
15105
|
__decorateClass([
|
|
15069
|
-
|
|
15106
|
+
Column90({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
15070
15107
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
15071
15108
|
__decorateClass([
|
|
15072
|
-
|
|
15109
|
+
Column90({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
15073
15110
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
15074
15111
|
ZoomMeetingLog = __decorateClass([
|
|
15075
|
-
|
|
15112
|
+
Entity89("zoom_meeting_logs")
|
|
15076
15113
|
], ZoomMeetingLog);
|
|
15077
15114
|
|
|
15078
15115
|
// src/entities/docuseal.entity.ts
|
|
15079
|
-
import { Entity as
|
|
15116
|
+
import { Entity as Entity90, Column as Column91, Index as Index74 } from "typeorm";
|
|
15080
15117
|
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
15081
15118
|
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
15082
15119
|
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
@@ -15086,101 +15123,101 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
|
15086
15123
|
var DocuSeal = class extends BaseEntity {
|
|
15087
15124
|
};
|
|
15088
15125
|
__decorateClass([
|
|
15089
|
-
|
|
15090
|
-
|
|
15126
|
+
Column91({ name: "reference_id", type: "integer", nullable: false }),
|
|
15127
|
+
Index74()
|
|
15091
15128
|
], DocuSeal.prototype, "referenceId", 2);
|
|
15092
15129
|
__decorateClass([
|
|
15093
|
-
|
|
15094
|
-
|
|
15130
|
+
Column91({ name: "submitter_id", type: "integer", nullable: true }),
|
|
15131
|
+
Index74()
|
|
15095
15132
|
], DocuSeal.prototype, "submitterId", 2);
|
|
15096
15133
|
__decorateClass([
|
|
15097
|
-
|
|
15134
|
+
Column91({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
15098
15135
|
], DocuSeal.prototype, "submitterResponse", 2);
|
|
15099
15136
|
__decorateClass([
|
|
15100
|
-
|
|
15137
|
+
Column91({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
15101
15138
|
], DocuSeal.prototype, "webhookResponse", 2);
|
|
15102
15139
|
__decorateClass([
|
|
15103
|
-
|
|
15140
|
+
Column91({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
15104
15141
|
], DocuSeal.prototype, "type", 2);
|
|
15105
15142
|
DocuSeal = __decorateClass([
|
|
15106
|
-
|
|
15143
|
+
Entity90("docuseal")
|
|
15107
15144
|
], DocuSeal);
|
|
15108
15145
|
|
|
15109
15146
|
// src/entities/stripe-logs.entity.ts
|
|
15110
|
-
import { Entity as
|
|
15147
|
+
import { Entity as Entity91, Column as Column92 } from "typeorm";
|
|
15111
15148
|
var StripeLog = class extends BaseEntity {
|
|
15112
15149
|
};
|
|
15113
15150
|
__decorateClass([
|
|
15114
|
-
|
|
15151
|
+
Column92({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
15115
15152
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
15116
15153
|
__decorateClass([
|
|
15117
|
-
|
|
15154
|
+
Column92({ name: "event_type", type: "varchar", nullable: true })
|
|
15118
15155
|
], StripeLog.prototype, "eventType", 2);
|
|
15119
15156
|
__decorateClass([
|
|
15120
|
-
|
|
15157
|
+
Column92({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
15121
15158
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
15122
15159
|
__decorateClass([
|
|
15123
|
-
|
|
15160
|
+
Column92({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
15124
15161
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
15125
15162
|
StripeLog = __decorateClass([
|
|
15126
|
-
|
|
15163
|
+
Entity91("stripe_logs")
|
|
15127
15164
|
], StripeLog);
|
|
15128
15165
|
|
|
15129
15166
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
15130
15167
|
import {
|
|
15131
|
-
Entity as
|
|
15132
|
-
Column as
|
|
15133
|
-
Index as
|
|
15168
|
+
Entity as Entity92,
|
|
15169
|
+
Column as Column93,
|
|
15170
|
+
Index as Index75
|
|
15134
15171
|
} from "typeorm";
|
|
15135
15172
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
15136
15173
|
};
|
|
15137
15174
|
__decorateClass([
|
|
15138
|
-
|
|
15175
|
+
Column93({
|
|
15139
15176
|
type: "varchar",
|
|
15140
15177
|
length: 100,
|
|
15141
15178
|
unique: true,
|
|
15142
15179
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
15143
15180
|
}),
|
|
15144
|
-
|
|
15181
|
+
Index75()
|
|
15145
15182
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
15146
15183
|
__decorateClass([
|
|
15147
|
-
|
|
15184
|
+
Column93({
|
|
15148
15185
|
type: "jsonb",
|
|
15149
15186
|
comment: "JSON object containing weight values",
|
|
15150
15187
|
nullable: true
|
|
15151
15188
|
})
|
|
15152
15189
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
15153
15190
|
__decorateClass([
|
|
15154
|
-
|
|
15191
|
+
Column93({ name: "is_active", type: "boolean", default: true })
|
|
15155
15192
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
15156
15193
|
RecommendationWeightageConfig = __decorateClass([
|
|
15157
|
-
|
|
15194
|
+
Entity92("recommendation_weightage_configs")
|
|
15158
15195
|
], RecommendationWeightageConfig);
|
|
15159
15196
|
|
|
15160
15197
|
// src/entities/global-setting.entity.ts
|
|
15161
15198
|
import {
|
|
15162
|
-
Entity as
|
|
15163
|
-
Column as
|
|
15164
|
-
Index as
|
|
15199
|
+
Entity as Entity93,
|
|
15200
|
+
Column as Column94,
|
|
15201
|
+
Index as Index76
|
|
15165
15202
|
} from "typeorm";
|
|
15166
15203
|
var GlobalSetting = class extends BaseEntity {
|
|
15167
15204
|
};
|
|
15168
15205
|
__decorateClass([
|
|
15169
|
-
|
|
15206
|
+
Column94({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
15170
15207
|
], GlobalSetting.prototype, "key", 2);
|
|
15171
15208
|
__decorateClass([
|
|
15172
|
-
|
|
15209
|
+
Column94({ name: "value", type: "text", nullable: false })
|
|
15173
15210
|
], GlobalSetting.prototype, "value", 2);
|
|
15174
15211
|
GlobalSetting = __decorateClass([
|
|
15175
|
-
|
|
15176
|
-
|
|
15212
|
+
Entity93("global_settings"),
|
|
15213
|
+
Index76(["key"], { unique: true })
|
|
15177
15214
|
], GlobalSetting);
|
|
15178
15215
|
|
|
15179
15216
|
// src/entities/plan.entity.ts
|
|
15180
15217
|
import {
|
|
15181
|
-
Entity as
|
|
15182
|
-
Column as
|
|
15183
|
-
Index as
|
|
15218
|
+
Entity as Entity96,
|
|
15219
|
+
Column as Column97,
|
|
15220
|
+
Index as Index79,
|
|
15184
15221
|
Check as Check4,
|
|
15185
15222
|
BeforeInsert as BeforeInsert2,
|
|
15186
15223
|
BeforeUpdate as BeforeUpdate2,
|
|
@@ -15189,57 +15226,57 @@ import {
|
|
|
15189
15226
|
|
|
15190
15227
|
// src/entities/plan-feature.entity.ts
|
|
15191
15228
|
import {
|
|
15192
|
-
Entity as
|
|
15193
|
-
Column as
|
|
15194
|
-
ManyToOne as
|
|
15195
|
-
JoinColumn as
|
|
15196
|
-
Index as
|
|
15229
|
+
Entity as Entity94,
|
|
15230
|
+
Column as Column95,
|
|
15231
|
+
ManyToOne as ManyToOne76,
|
|
15232
|
+
JoinColumn as JoinColumn77,
|
|
15233
|
+
Index as Index77,
|
|
15197
15234
|
Check as Check2
|
|
15198
15235
|
} from "typeorm";
|
|
15199
15236
|
var PlanFeature = class extends BaseEntity {
|
|
15200
15237
|
};
|
|
15201
15238
|
// individual index to find features by plan
|
|
15202
15239
|
__decorateClass([
|
|
15203
|
-
|
|
15204
|
-
|
|
15240
|
+
Column95({ name: "plan_id", type: "integer", nullable: false }),
|
|
15241
|
+
Index77()
|
|
15205
15242
|
], PlanFeature.prototype, "planId", 2);
|
|
15206
15243
|
__decorateClass([
|
|
15207
|
-
|
|
15244
|
+
ManyToOne76(() => Plan, (plan) => plan.features, {
|
|
15208
15245
|
onDelete: "CASCADE",
|
|
15209
15246
|
nullable: false
|
|
15210
15247
|
}),
|
|
15211
|
-
|
|
15248
|
+
JoinColumn77({ name: "plan_id" })
|
|
15212
15249
|
], PlanFeature.prototype, "plan", 2);
|
|
15213
15250
|
__decorateClass([
|
|
15214
|
-
|
|
15251
|
+
Column95({ name: "name", type: "varchar", length: 200 })
|
|
15215
15252
|
], PlanFeature.prototype, "name", 2);
|
|
15216
15253
|
__decorateClass([
|
|
15217
|
-
|
|
15218
|
-
|
|
15254
|
+
Column95({ name: "slug", type: "varchar", length: 100 }),
|
|
15255
|
+
Index77()
|
|
15219
15256
|
], PlanFeature.prototype, "slug", 2);
|
|
15220
15257
|
__decorateClass([
|
|
15221
|
-
|
|
15258
|
+
Column95({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
15222
15259
|
], PlanFeature.prototype, "tooltip", 2);
|
|
15223
15260
|
__decorateClass([
|
|
15224
|
-
|
|
15261
|
+
Column95({ name: "sort_order", type: "smallint", default: 0 })
|
|
15225
15262
|
], PlanFeature.prototype, "sortOrder", 2);
|
|
15226
15263
|
__decorateClass([
|
|
15227
|
-
|
|
15264
|
+
Column95({ name: "is_active", type: "boolean", default: true })
|
|
15228
15265
|
], PlanFeature.prototype, "isActive", 2);
|
|
15229
15266
|
PlanFeature = __decorateClass([
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
|
-
|
|
15267
|
+
Entity94("plan_features"),
|
|
15268
|
+
Index77("idx_plan_features_plan_id", ["planId"]),
|
|
15269
|
+
Index77("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
15233
15270
|
Check2("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
15234
15271
|
], PlanFeature);
|
|
15235
15272
|
|
|
15236
15273
|
// src/entities/plan-pricing.entity.ts
|
|
15237
15274
|
import {
|
|
15238
|
-
Entity as
|
|
15239
|
-
Column as
|
|
15240
|
-
ManyToOne as
|
|
15241
|
-
JoinColumn as
|
|
15242
|
-
Index as
|
|
15275
|
+
Entity as Entity95,
|
|
15276
|
+
Column as Column96,
|
|
15277
|
+
ManyToOne as ManyToOne77,
|
|
15278
|
+
JoinColumn as JoinColumn78,
|
|
15279
|
+
Index as Index78,
|
|
15243
15280
|
Unique,
|
|
15244
15281
|
Check as Check3,
|
|
15245
15282
|
BeforeInsert,
|
|
@@ -15299,56 +15336,56 @@ var PlanPricing = class extends BaseEntity {
|
|
|
15299
15336
|
};
|
|
15300
15337
|
// individual index to find pricing by plan
|
|
15301
15338
|
__decorateClass([
|
|
15302
|
-
|
|
15303
|
-
|
|
15339
|
+
Column96({ name: "plan_id", type: "integer", nullable: false }),
|
|
15340
|
+
Index78()
|
|
15304
15341
|
], PlanPricing.prototype, "planId", 2);
|
|
15305
15342
|
__decorateClass([
|
|
15306
|
-
|
|
15343
|
+
ManyToOne77(() => Plan, (plan) => plan.pricing, {
|
|
15307
15344
|
onDelete: "CASCADE",
|
|
15308
15345
|
nullable: false
|
|
15309
15346
|
}),
|
|
15310
|
-
|
|
15347
|
+
JoinColumn78({ name: "plan_id" })
|
|
15311
15348
|
], PlanPricing.prototype, "plan", 2);
|
|
15312
15349
|
__decorateClass([
|
|
15313
|
-
|
|
15350
|
+
Column96({
|
|
15314
15351
|
name: "billing_cycle",
|
|
15315
15352
|
type: "enum",
|
|
15316
15353
|
enum: PlanPricingBillingCycleEnum
|
|
15317
15354
|
})
|
|
15318
15355
|
], PlanPricing.prototype, "billingCycle", 2);
|
|
15319
15356
|
__decorateClass([
|
|
15320
|
-
|
|
15357
|
+
Column96({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
15321
15358
|
], PlanPricing.prototype, "price", 2);
|
|
15322
15359
|
__decorateClass([
|
|
15323
|
-
|
|
15360
|
+
Column96({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
15324
15361
|
], PlanPricing.prototype, "originalPrice", 2);
|
|
15325
15362
|
__decorateClass([
|
|
15326
|
-
|
|
15363
|
+
Column96({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
15327
15364
|
], PlanPricing.prototype, "discountPct", 2);
|
|
15328
15365
|
__decorateClass([
|
|
15329
|
-
|
|
15366
|
+
Column96({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
15330
15367
|
], PlanPricing.prototype, "currency", 2);
|
|
15331
15368
|
__decorateClass([
|
|
15332
|
-
|
|
15369
|
+
Column96({ name: "is_free", type: "boolean", default: false })
|
|
15333
15370
|
], PlanPricing.prototype, "isFree", 2);
|
|
15334
15371
|
__decorateClass([
|
|
15335
|
-
|
|
15372
|
+
Column96({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
|
|
15336
15373
|
], PlanPricing.prototype, "stripePriceId", 2);
|
|
15337
15374
|
__decorateClass([
|
|
15338
|
-
|
|
15375
|
+
Column96({ name: "trial_days", type: "smallint", default: 0 })
|
|
15339
15376
|
], PlanPricing.prototype, "trialDays", 2);
|
|
15340
15377
|
__decorateClass([
|
|
15341
|
-
|
|
15378
|
+
Column96({ name: "is_active", type: "boolean", default: true })
|
|
15342
15379
|
], PlanPricing.prototype, "isActive", 2);
|
|
15343
15380
|
__decorateClass([
|
|
15344
15381
|
BeforeInsert(),
|
|
15345
15382
|
BeforeUpdate()
|
|
15346
15383
|
], PlanPricing.prototype, "sanitize", 1);
|
|
15347
15384
|
PlanPricing = __decorateClass([
|
|
15348
|
-
|
|
15385
|
+
Entity95("plan_pricings"),
|
|
15349
15386
|
Unique("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
15350
|
-
|
|
15351
|
-
|
|
15387
|
+
Index78("idx_plan_pricings_plan_id", ["planId"]),
|
|
15388
|
+
Index78("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
15352
15389
|
Check3("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
15353
15390
|
Check3("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
15354
15391
|
Check3("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
@@ -15370,22 +15407,22 @@ var Plan = class extends BaseEntity {
|
|
|
15370
15407
|
}
|
|
15371
15408
|
};
|
|
15372
15409
|
__decorateClass([
|
|
15373
|
-
|
|
15410
|
+
Column97({ name: "name", type: "varchar", length: 100 })
|
|
15374
15411
|
], Plan.prototype, "name", 2);
|
|
15375
15412
|
__decorateClass([
|
|
15376
|
-
|
|
15413
|
+
Column97({ name: "slug", type: "varchar", length: 100 })
|
|
15377
15414
|
], Plan.prototype, "slug", 2);
|
|
15378
15415
|
__decorateClass([
|
|
15379
|
-
|
|
15416
|
+
Column97({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
15380
15417
|
], Plan.prototype, "badgeLabel", 2);
|
|
15381
15418
|
__decorateClass([
|
|
15382
|
-
|
|
15419
|
+
Column97({ name: "sort_order", type: "smallint", default: 0 })
|
|
15383
15420
|
], Plan.prototype, "sortOrder", 2);
|
|
15384
15421
|
__decorateClass([
|
|
15385
|
-
|
|
15422
|
+
Column97({ name: "is_active", type: "boolean", default: true })
|
|
15386
15423
|
], Plan.prototype, "isActive", 2);
|
|
15387
15424
|
__decorateClass([
|
|
15388
|
-
|
|
15425
|
+
Column97({
|
|
15389
15426
|
name: "plan_type",
|
|
15390
15427
|
type: "enum",
|
|
15391
15428
|
enum: PlanTypeEnum,
|
|
@@ -15393,10 +15430,10 @@ __decorateClass([
|
|
|
15393
15430
|
})
|
|
15394
15431
|
], Plan.prototype, "planType", 2);
|
|
15395
15432
|
__decorateClass([
|
|
15396
|
-
|
|
15433
|
+
Column97({ name: "metadata", type: "jsonb", default: {} })
|
|
15397
15434
|
], Plan.prototype, "metadata", 2);
|
|
15398
15435
|
__decorateClass([
|
|
15399
|
-
|
|
15436
|
+
Column97({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
|
|
15400
15437
|
], Plan.prototype, "stripeProductId", 2);
|
|
15401
15438
|
__decorateClass([
|
|
15402
15439
|
BeforeInsert2(),
|
|
@@ -15413,21 +15450,21 @@ __decorateClass([
|
|
|
15413
15450
|
})
|
|
15414
15451
|
], Plan.prototype, "pricing", 2);
|
|
15415
15452
|
Plan = __decorateClass([
|
|
15416
|
-
|
|
15417
|
-
|
|
15453
|
+
Entity96("plans"),
|
|
15454
|
+
Index79("idx_plans_slug_plan_type", ["slug", "planType"], {
|
|
15418
15455
|
unique: true,
|
|
15419
15456
|
where: '"is_deleted" IS FALSE'
|
|
15420
15457
|
}),
|
|
15421
|
-
|
|
15458
|
+
Index79("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
15422
15459
|
Check4("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
15423
15460
|
], Plan);
|
|
15424
15461
|
|
|
15425
15462
|
// src/entities/subscription-feature.entity.ts
|
|
15426
15463
|
import {
|
|
15427
|
-
Entity as
|
|
15428
|
-
Column as
|
|
15464
|
+
Entity as Entity97,
|
|
15465
|
+
Column as Column98,
|
|
15429
15466
|
Check as Check5,
|
|
15430
|
-
Index as
|
|
15467
|
+
Index as Index80,
|
|
15431
15468
|
BeforeInsert as BeforeInsert3,
|
|
15432
15469
|
BeforeUpdate as BeforeUpdate3
|
|
15433
15470
|
} from "typeorm";
|
|
@@ -15445,33 +15482,33 @@ var SubscriptionFeature = class extends BaseEntity {
|
|
|
15445
15482
|
}
|
|
15446
15483
|
};
|
|
15447
15484
|
__decorateClass([
|
|
15448
|
-
|
|
15485
|
+
Column98({ name: "name", type: "varchar", length: 200 })
|
|
15449
15486
|
], SubscriptionFeature.prototype, "name", 2);
|
|
15450
15487
|
__decorateClass([
|
|
15451
|
-
|
|
15488
|
+
Column98({ name: "slug", type: "varchar", length: 100 })
|
|
15452
15489
|
], SubscriptionFeature.prototype, "slug", 2);
|
|
15453
15490
|
__decorateClass([
|
|
15454
|
-
|
|
15491
|
+
Column98({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
15455
15492
|
], SubscriptionFeature.prototype, "tooltip", 2);
|
|
15456
15493
|
__decorateClass([
|
|
15457
|
-
|
|
15494
|
+
Column98({ name: "sort_order", type: "smallint", default: 0 })
|
|
15458
15495
|
], SubscriptionFeature.prototype, "sortOrder", 2);
|
|
15459
15496
|
__decorateClass([
|
|
15460
|
-
|
|
15497
|
+
Column98({ name: "is_active", type: "boolean", default: true })
|
|
15461
15498
|
], SubscriptionFeature.prototype, "isActive", 2);
|
|
15462
15499
|
__decorateClass([
|
|
15463
15500
|
BeforeInsert3(),
|
|
15464
15501
|
BeforeUpdate3()
|
|
15465
15502
|
], SubscriptionFeature.prototype, "createSlug", 1);
|
|
15466
15503
|
SubscriptionFeature = __decorateClass([
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15504
|
+
Entity97("subscription_features"),
|
|
15505
|
+
Index80("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
15506
|
+
Index80("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
|
|
15470
15507
|
Check5("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
|
|
15471
15508
|
], SubscriptionFeature);
|
|
15472
15509
|
|
|
15473
15510
|
// src/entities/user-subscription-transaction.entity.ts
|
|
15474
|
-
import { Entity as
|
|
15511
|
+
import { Entity as Entity98, Column as Column99, Index as Index81, ManyToOne as ManyToOne78, JoinColumn as JoinColumn79 } from "typeorm";
|
|
15475
15512
|
var UserSubscriptionTransactionTypeEnum = /* @__PURE__ */ ((UserSubscriptionTransactionTypeEnum2) => {
|
|
15476
15513
|
UserSubscriptionTransactionTypeEnum2["SUBSCRIPTION_INITIATED"] = "SUBSCRIPTION_INITIATED";
|
|
15477
15514
|
UserSubscriptionTransactionTypeEnum2["CHECKOUT_SESSION_CREATED"] = "CHECKOUT_SESSION_CREATED";
|
|
@@ -15489,25 +15526,25 @@ var UserSubscriptionTransactionStatusEnum = /* @__PURE__ */ ((UserSubscriptionTr
|
|
|
15489
15526
|
var UserSubscriptionTransaction = class extends BaseEntity {
|
|
15490
15527
|
};
|
|
15491
15528
|
__decorateClass([
|
|
15492
|
-
|
|
15493
|
-
|
|
15529
|
+
Column99({ name: "user_subscription_id", type: "integer", nullable: false }),
|
|
15530
|
+
Index81()
|
|
15494
15531
|
], UserSubscriptionTransaction.prototype, "userSubscriptionId", 2);
|
|
15495
15532
|
__decorateClass([
|
|
15496
|
-
|
|
15497
|
-
|
|
15533
|
+
ManyToOne78(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
|
|
15534
|
+
JoinColumn79({ name: "user_subscription_id" })
|
|
15498
15535
|
], UserSubscriptionTransaction.prototype, "userSubscription", 2);
|
|
15499
15536
|
__decorateClass([
|
|
15500
|
-
|
|
15537
|
+
Column99({ name: "user_id", type: "integer", nullable: false })
|
|
15501
15538
|
], UserSubscriptionTransaction.prototype, "userId", 2);
|
|
15502
15539
|
__decorateClass([
|
|
15503
|
-
|
|
15540
|
+
Column99({
|
|
15504
15541
|
name: "type",
|
|
15505
15542
|
type: "enum",
|
|
15506
15543
|
enum: UserSubscriptionTransactionTypeEnum
|
|
15507
15544
|
})
|
|
15508
15545
|
], UserSubscriptionTransaction.prototype, "type", 2);
|
|
15509
15546
|
__decorateClass([
|
|
15510
|
-
|
|
15547
|
+
Column99({
|
|
15511
15548
|
name: "status",
|
|
15512
15549
|
type: "enum",
|
|
15513
15550
|
enum: UserSubscriptionTransactionStatusEnum,
|
|
@@ -15515,49 +15552,49 @@ __decorateClass([
|
|
|
15515
15552
|
})
|
|
15516
15553
|
], UserSubscriptionTransaction.prototype, "status", 2);
|
|
15517
15554
|
__decorateClass([
|
|
15518
|
-
|
|
15555
|
+
Column99({ name: "plan_name", type: "text", nullable: true })
|
|
15519
15556
|
], UserSubscriptionTransaction.prototype, "planName", 2);
|
|
15520
15557
|
__decorateClass([
|
|
15521
|
-
|
|
15558
|
+
Column99({ name: "amount_minor", type: "integer", nullable: true })
|
|
15522
15559
|
], UserSubscriptionTransaction.prototype, "amountMinor", 2);
|
|
15523
15560
|
__decorateClass([
|
|
15524
|
-
|
|
15561
|
+
Column99({ name: "currency", type: "varchar", length: 3, nullable: true })
|
|
15525
15562
|
], UserSubscriptionTransaction.prototype, "currency", 2);
|
|
15526
15563
|
__decorateClass([
|
|
15527
|
-
|
|
15564
|
+
Column99({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
|
|
15528
15565
|
], UserSubscriptionTransaction.prototype, "stripeEventId", 2);
|
|
15529
15566
|
__decorateClass([
|
|
15530
|
-
|
|
15567
|
+
Column99({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
|
|
15531
15568
|
], UserSubscriptionTransaction.prototype, "stripeEventType", 2);
|
|
15532
15569
|
__decorateClass([
|
|
15533
|
-
|
|
15570
|
+
Column99({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
|
|
15534
15571
|
], UserSubscriptionTransaction.prototype, "stripeSubscriptionId", 2);
|
|
15535
15572
|
__decorateClass([
|
|
15536
|
-
|
|
15573
|
+
Column99({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
|
|
15537
15574
|
], UserSubscriptionTransaction.prototype, "stripeInvoiceId", 2);
|
|
15538
15575
|
__decorateClass([
|
|
15539
|
-
|
|
15576
|
+
Column99({ name: "description", type: "text", nullable: true })
|
|
15540
15577
|
], UserSubscriptionTransaction.prototype, "description", 2);
|
|
15541
15578
|
__decorateClass([
|
|
15542
|
-
|
|
15579
|
+
Column99({ name: "invoice_url", type: "text", nullable: true })
|
|
15543
15580
|
], UserSubscriptionTransaction.prototype, "invoiceUrl", 2);
|
|
15544
15581
|
__decorateClass([
|
|
15545
|
-
|
|
15582
|
+
Column99({ name: "checkout_request_payload", type: "jsonb", nullable: true })
|
|
15546
15583
|
], UserSubscriptionTransaction.prototype, "checkoutRequestPayload", 2);
|
|
15547
15584
|
__decorateClass([
|
|
15548
|
-
|
|
15585
|
+
Column99({ name: "checkout_response_payload", type: "jsonb", nullable: true })
|
|
15549
15586
|
], UserSubscriptionTransaction.prototype, "checkoutResponsePayload", 2);
|
|
15550
15587
|
__decorateClass([
|
|
15551
|
-
|
|
15588
|
+
Column99({ name: "webhook_payload", type: "jsonb", nullable: true })
|
|
15552
15589
|
], UserSubscriptionTransaction.prototype, "webhookPayload", 2);
|
|
15553
15590
|
__decorateClass([
|
|
15554
|
-
|
|
15591
|
+
Column99({ name: "metadata", type: "jsonb", nullable: true, default: {} })
|
|
15555
15592
|
], UserSubscriptionTransaction.prototype, "metadata", 2);
|
|
15556
15593
|
UserSubscriptionTransaction = __decorateClass([
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15594
|
+
Entity98("user_subscription_transactions"),
|
|
15595
|
+
Index81("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
|
|
15596
|
+
Index81("idx_user_sub_tx_user_id", ["userId"]),
|
|
15597
|
+
Index81("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
|
|
15561
15598
|
], UserSubscriptionTransaction);
|
|
15562
15599
|
export {
|
|
15563
15600
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -15648,6 +15685,7 @@ export {
|
|
|
15648
15685
|
Cms,
|
|
15649
15686
|
Commission,
|
|
15650
15687
|
CommissionTypeEnum,
|
|
15688
|
+
CompanyMember,
|
|
15651
15689
|
CompanyMemberRole,
|
|
15652
15690
|
CompanyOnboardingStepEnum,
|
|
15653
15691
|
CompanyProfile,
|