@experts_hub/shared 1.0.652 → 1.0.653
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/in-app-notification.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 +306 -267
- package/dist/index.mjs +185 -147
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -982,13 +982,13 @@ import { IsEnum as IsEnum13 } from "class-validator";
|
|
|
982
982
|
|
|
983
983
|
// src/entities/user.entity.ts
|
|
984
984
|
import {
|
|
985
|
-
Entity as
|
|
986
|
-
Column as
|
|
985
|
+
Entity as Entity67,
|
|
986
|
+
Column as Column68,
|
|
987
987
|
OneToMany as OneToMany24,
|
|
988
988
|
OneToOne as OneToOne13,
|
|
989
|
-
Index as
|
|
990
|
-
ManyToOne as
|
|
991
|
-
JoinColumn as
|
|
989
|
+
Index as Index60,
|
|
990
|
+
ManyToOne as ManyToOne62,
|
|
991
|
+
JoinColumn as JoinColumn63
|
|
992
992
|
} from "typeorm";
|
|
993
993
|
|
|
994
994
|
// src/entities/base.entity.ts
|
|
@@ -5753,6 +5753,40 @@ FreelancerAssessmentRequest = __decorateClass([
|
|
|
5753
5753
|
Entity65({ name: "freelancer_assessment_requests" })
|
|
5754
5754
|
], FreelancerAssessmentRequest);
|
|
5755
5755
|
|
|
5756
|
+
// src/entities/in-app-notification.entity.ts
|
|
5757
|
+
import { Entity as Entity66, Column as Column67, Index as Index59, ManyToOne as ManyToOne61, JoinColumn as JoinColumn62 } from "typeorm";
|
|
5758
|
+
var InAppNotification = class extends BaseEntity {
|
|
5759
|
+
};
|
|
5760
|
+
__decorateClass([
|
|
5761
|
+
Column67({ name: "user_id", type: "integer", nullable: true }),
|
|
5762
|
+
Index59()
|
|
5763
|
+
], InAppNotification.prototype, "userId", 2);
|
|
5764
|
+
__decorateClass([
|
|
5765
|
+
ManyToOne61(() => User, (user) => user.inAppNotifications),
|
|
5766
|
+
JoinColumn62({ name: "user_id" })
|
|
5767
|
+
], InAppNotification.prototype, "user", 2);
|
|
5768
|
+
__decorateClass([
|
|
5769
|
+
Column67({ name: "event", type: "varchar", nullable: true })
|
|
5770
|
+
], InAppNotification.prototype, "event", 2);
|
|
5771
|
+
__decorateClass([
|
|
5772
|
+
Column67({ name: "title", type: "varchar", nullable: true })
|
|
5773
|
+
], InAppNotification.prototype, "title", 2);
|
|
5774
|
+
__decorateClass([
|
|
5775
|
+
Column67({ name: "message", type: "varchar", nullable: true })
|
|
5776
|
+
], InAppNotification.prototype, "message", 2);
|
|
5777
|
+
__decorateClass([
|
|
5778
|
+
Column67({ name: "redirect_url", type: "varchar", nullable: true })
|
|
5779
|
+
], InAppNotification.prototype, "redirectUrl", 2);
|
|
5780
|
+
__decorateClass([
|
|
5781
|
+
Column67({ name: "is_read", type: "boolean", default: false })
|
|
5782
|
+
], InAppNotification.prototype, "isRead", 2);
|
|
5783
|
+
__decorateClass([
|
|
5784
|
+
Column67({ name: "meta_data", type: "jsonb", nullable: true })
|
|
5785
|
+
], InAppNotification.prototype, "metaData", 2);
|
|
5786
|
+
InAppNotification = __decorateClass([
|
|
5787
|
+
Entity66("in_app_notifications")
|
|
5788
|
+
], InAppNotification);
|
|
5789
|
+
|
|
5756
5790
|
// src/entities/user.entity.ts
|
|
5757
5791
|
var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
|
|
5758
5792
|
AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
@@ -5779,51 +5813,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5779
5813
|
var User = class extends BaseEntity {
|
|
5780
5814
|
};
|
|
5781
5815
|
__decorateClass([
|
|
5782
|
-
|
|
5816
|
+
Column68({ name: "unique_id", type: "varchar", unique: true })
|
|
5783
5817
|
], User.prototype, "uniqueId", 2);
|
|
5784
5818
|
__decorateClass([
|
|
5785
|
-
|
|
5786
|
-
|
|
5819
|
+
Column68({ name: "parent_id", type: "integer", nullable: true }),
|
|
5820
|
+
Index60()
|
|
5787
5821
|
], User.prototype, "parentId", 2);
|
|
5788
5822
|
__decorateClass([
|
|
5789
|
-
|
|
5790
|
-
|
|
5823
|
+
ManyToOne62(() => User, (user) => user.children, { nullable: true }),
|
|
5824
|
+
JoinColumn63({ name: "parent_id" })
|
|
5791
5825
|
], User.prototype, "parent", 2);
|
|
5792
5826
|
__decorateClass([
|
|
5793
5827
|
OneToMany24(() => User, (user) => user.parent)
|
|
5794
5828
|
], User.prototype, "children", 2);
|
|
5795
5829
|
__decorateClass([
|
|
5796
|
-
|
|
5830
|
+
Column68({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5797
5831
|
], User.prototype, "username", 2);
|
|
5798
5832
|
__decorateClass([
|
|
5799
|
-
|
|
5833
|
+
Column68({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5800
5834
|
], User.prototype, "firstName", 2);
|
|
5801
5835
|
__decorateClass([
|
|
5802
|
-
|
|
5836
|
+
Column68({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5803
5837
|
], User.prototype, "lastName", 2);
|
|
5804
5838
|
__decorateClass([
|
|
5805
|
-
|
|
5839
|
+
Column68({ name: "date_of_birth", type: "date", nullable: true })
|
|
5806
5840
|
], User.prototype, "dateOfBirth", 2);
|
|
5807
5841
|
__decorateClass([
|
|
5808
|
-
|
|
5842
|
+
Column68({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5809
5843
|
], User.prototype, "gender", 2);
|
|
5810
5844
|
__decorateClass([
|
|
5811
|
-
|
|
5845
|
+
Column68({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5812
5846
|
], User.prototype, "profilePictureUrl", 2);
|
|
5813
5847
|
__decorateClass([
|
|
5814
|
-
|
|
5848
|
+
Column68({ name: "email", type: "varchar", unique: true })
|
|
5815
5849
|
], User.prototype, "email", 2);
|
|
5816
5850
|
__decorateClass([
|
|
5817
|
-
|
|
5851
|
+
Column68({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5818
5852
|
], User.prototype, "mobileCode", 2);
|
|
5819
5853
|
__decorateClass([
|
|
5820
|
-
|
|
5854
|
+
Column68({ name: "mobile", type: "varchar", nullable: true })
|
|
5821
5855
|
], User.prototype, "mobile", 2);
|
|
5822
5856
|
__decorateClass([
|
|
5823
|
-
|
|
5857
|
+
Column68({ name: "password", type: "varchar", nullable: true })
|
|
5824
5858
|
], User.prototype, "password", 2);
|
|
5825
5859
|
__decorateClass([
|
|
5826
|
-
|
|
5860
|
+
Column68({
|
|
5827
5861
|
name: "account_type",
|
|
5828
5862
|
type: "enum",
|
|
5829
5863
|
enum: AccountType2,
|
|
@@ -5831,7 +5865,7 @@ __decorateClass([
|
|
|
5831
5865
|
})
|
|
5832
5866
|
], User.prototype, "accountType", 2);
|
|
5833
5867
|
__decorateClass([
|
|
5834
|
-
|
|
5868
|
+
Column68({
|
|
5835
5869
|
name: "account_status",
|
|
5836
5870
|
type: "enum",
|
|
5837
5871
|
enum: AccountStatus,
|
|
@@ -5839,42 +5873,42 @@ __decorateClass([
|
|
|
5839
5873
|
})
|
|
5840
5874
|
], User.prototype, "accountStatus", 2);
|
|
5841
5875
|
__decorateClass([
|
|
5842
|
-
|
|
5876
|
+
Column68({ name: "is_email_verified", type: "boolean", default: false })
|
|
5843
5877
|
], User.prototype, "isEmailVerified", 2);
|
|
5844
5878
|
__decorateClass([
|
|
5845
|
-
|
|
5879
|
+
Column68({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5846
5880
|
], User.prototype, "isMobileVerified", 2);
|
|
5847
5881
|
__decorateClass([
|
|
5848
|
-
|
|
5882
|
+
Column68({ name: "is_social", type: "boolean", default: false })
|
|
5849
5883
|
], User.prototype, "isSocial", 2);
|
|
5850
5884
|
__decorateClass([
|
|
5851
|
-
|
|
5885
|
+
Column68({
|
|
5852
5886
|
name: "last_login_at",
|
|
5853
5887
|
type: "timestamp with time zone",
|
|
5854
5888
|
nullable: true
|
|
5855
5889
|
})
|
|
5856
5890
|
], User.prototype, "lastLoginAt", 2);
|
|
5857
5891
|
__decorateClass([
|
|
5858
|
-
|
|
5892
|
+
Column68({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5859
5893
|
], User.prototype, "lastLoginIp", 2);
|
|
5860
5894
|
__decorateClass([
|
|
5861
|
-
|
|
5895
|
+
Column68({ name: "reset_token", type: "varchar", nullable: true })
|
|
5862
5896
|
], User.prototype, "resetToken", 2);
|
|
5863
5897
|
__decorateClass([
|
|
5864
|
-
|
|
5898
|
+
Column68({
|
|
5865
5899
|
name: "reset_token_expire_at",
|
|
5866
5900
|
type: "timestamp with time zone",
|
|
5867
5901
|
nullable: true
|
|
5868
5902
|
})
|
|
5869
5903
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5870
5904
|
__decorateClass([
|
|
5871
|
-
|
|
5905
|
+
Column68({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5872
5906
|
], User.prototype, "setPasswordToken", 2);
|
|
5873
5907
|
__decorateClass([
|
|
5874
5908
|
OneToMany24(() => RefreshToken, (token) => token.user)
|
|
5875
5909
|
], User.prototype, "refreshTokens", 2);
|
|
5876
5910
|
__decorateClass([
|
|
5877
|
-
|
|
5911
|
+
Column68({
|
|
5878
5912
|
name: "provider",
|
|
5879
5913
|
type: "enum",
|
|
5880
5914
|
enum: Provider,
|
|
@@ -5883,19 +5917,19 @@ __decorateClass([
|
|
|
5883
5917
|
})
|
|
5884
5918
|
], User.prototype, "provider", 2);
|
|
5885
5919
|
__decorateClass([
|
|
5886
|
-
|
|
5920
|
+
Column68({ name: "provider_token", type: "varchar", nullable: true })
|
|
5887
5921
|
], User.prototype, "providerToken", 2);
|
|
5888
5922
|
__decorateClass([
|
|
5889
|
-
|
|
5923
|
+
Column68({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5890
5924
|
], User.prototype, "linkedInId", 2);
|
|
5891
5925
|
__decorateClass([
|
|
5892
|
-
|
|
5926
|
+
Column68({ name: "google_id", type: "varchar", nullable: true })
|
|
5893
5927
|
], User.prototype, "googleId", 2);
|
|
5894
5928
|
__decorateClass([
|
|
5895
|
-
|
|
5929
|
+
Column68({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5896
5930
|
], User.prototype, "gitLabsId", 2);
|
|
5897
5931
|
__decorateClass([
|
|
5898
|
-
|
|
5932
|
+
Column68({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5899
5933
|
], User.prototype, "onBoardedBy", 2);
|
|
5900
5934
|
__decorateClass([
|
|
5901
5935
|
OneToMany24(() => Otp, (otp) => otp.user)
|
|
@@ -6123,8 +6157,11 @@ __decorateClass([
|
|
|
6123
6157
|
__decorateClass([
|
|
6124
6158
|
OneToMany24(() => Dispute, (dispute) => dispute.freelancer)
|
|
6125
6159
|
], User.prototype, "freelancerDisputes", 2);
|
|
6160
|
+
__decorateClass([
|
|
6161
|
+
OneToMany24(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
6162
|
+
], User.prototype, "inAppNotifications", 2);
|
|
6126
6163
|
User = __decorateClass([
|
|
6127
|
-
|
|
6164
|
+
Entity67("users")
|
|
6128
6165
|
], User);
|
|
6129
6166
|
|
|
6130
6167
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -12614,11 +12651,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
12614
12651
|
};
|
|
12615
12652
|
|
|
12616
12653
|
// src/entities/sequence-generator.entity.ts
|
|
12617
|
-
import { Entity as
|
|
12654
|
+
import { Entity as Entity68, Column as Column69 } from "typeorm";
|
|
12618
12655
|
var SequenceGenerator = class extends BaseEntity {
|
|
12619
12656
|
};
|
|
12620
12657
|
__decorateClass([
|
|
12621
|
-
|
|
12658
|
+
Column69({
|
|
12622
12659
|
name: "module",
|
|
12623
12660
|
type: "varchar",
|
|
12624
12661
|
length: 50,
|
|
@@ -12627,7 +12664,7 @@ __decorateClass([
|
|
|
12627
12664
|
})
|
|
12628
12665
|
], SequenceGenerator.prototype, "module", 2);
|
|
12629
12666
|
__decorateClass([
|
|
12630
|
-
|
|
12667
|
+
Column69({
|
|
12631
12668
|
name: "prefix",
|
|
12632
12669
|
type: "varchar",
|
|
12633
12670
|
length: 10,
|
|
@@ -12636,7 +12673,7 @@ __decorateClass([
|
|
|
12636
12673
|
})
|
|
12637
12674
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
12638
12675
|
__decorateClass([
|
|
12639
|
-
|
|
12676
|
+
Column69({
|
|
12640
12677
|
name: "last_sequence",
|
|
12641
12678
|
type: "int",
|
|
12642
12679
|
nullable: false,
|
|
@@ -12644,7 +12681,7 @@ __decorateClass([
|
|
|
12644
12681
|
})
|
|
12645
12682
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
12646
12683
|
__decorateClass([
|
|
12647
|
-
|
|
12684
|
+
Column69({
|
|
12648
12685
|
name: "year",
|
|
12649
12686
|
type: "int",
|
|
12650
12687
|
nullable: true,
|
|
@@ -12652,11 +12689,11 @@ __decorateClass([
|
|
|
12652
12689
|
})
|
|
12653
12690
|
], SequenceGenerator.prototype, "year", 2);
|
|
12654
12691
|
SequenceGenerator = __decorateClass([
|
|
12655
|
-
|
|
12692
|
+
Entity68("sequence_generators")
|
|
12656
12693
|
], SequenceGenerator);
|
|
12657
12694
|
|
|
12658
12695
|
// src/entities/question.entity.ts
|
|
12659
|
-
import { Entity as
|
|
12696
|
+
import { Entity as Entity69, Column as Column70 } from "typeorm";
|
|
12660
12697
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
12661
12698
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
12662
12699
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -12665,16 +12702,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
12665
12702
|
var Question = class extends BaseEntity {
|
|
12666
12703
|
};
|
|
12667
12704
|
__decorateClass([
|
|
12668
|
-
|
|
12705
|
+
Column70({ name: "question", type: "varchar" })
|
|
12669
12706
|
], Question.prototype, "question", 2);
|
|
12670
12707
|
__decorateClass([
|
|
12671
|
-
|
|
12708
|
+
Column70({ name: "hint", type: "varchar", nullable: true })
|
|
12672
12709
|
], Question.prototype, "hint", 2);
|
|
12673
12710
|
__decorateClass([
|
|
12674
|
-
|
|
12711
|
+
Column70({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12675
12712
|
], Question.prototype, "slug", 2);
|
|
12676
12713
|
__decorateClass([
|
|
12677
|
-
|
|
12714
|
+
Column70({
|
|
12678
12715
|
name: "question_for",
|
|
12679
12716
|
type: "enum",
|
|
12680
12717
|
enum: QuestionFor,
|
|
@@ -12682,49 +12719,49 @@ __decorateClass([
|
|
|
12682
12719
|
})
|
|
12683
12720
|
], Question.prototype, "questionFor", 2);
|
|
12684
12721
|
__decorateClass([
|
|
12685
|
-
|
|
12722
|
+
Column70({ name: "type", type: "varchar", nullable: true })
|
|
12686
12723
|
], Question.prototype, "type", 2);
|
|
12687
12724
|
__decorateClass([
|
|
12688
|
-
|
|
12725
|
+
Column70({ name: "options", type: "jsonb", nullable: true })
|
|
12689
12726
|
], Question.prototype, "options", 2);
|
|
12690
12727
|
__decorateClass([
|
|
12691
|
-
|
|
12728
|
+
Column70({ name: "is_active", type: "boolean", default: false })
|
|
12692
12729
|
], Question.prototype, "isActive", 2);
|
|
12693
12730
|
Question = __decorateClass([
|
|
12694
|
-
|
|
12731
|
+
Entity69("questions")
|
|
12695
12732
|
], Question);
|
|
12696
12733
|
|
|
12697
12734
|
// src/entities/skill.entity.ts
|
|
12698
|
-
import { Entity as
|
|
12735
|
+
import { Entity as Entity70, Column as Column71 } from "typeorm";
|
|
12699
12736
|
var Skill = class extends BaseEntity {
|
|
12700
12737
|
};
|
|
12701
12738
|
__decorateClass([
|
|
12702
|
-
|
|
12739
|
+
Column71({ name: "name", type: "varchar", nullable: true })
|
|
12703
12740
|
], Skill.prototype, "name", 2);
|
|
12704
12741
|
__decorateClass([
|
|
12705
|
-
|
|
12742
|
+
Column71({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12706
12743
|
], Skill.prototype, "slug", 2);
|
|
12707
12744
|
__decorateClass([
|
|
12708
|
-
|
|
12745
|
+
Column71({ name: "is_active", type: "boolean", default: false })
|
|
12709
12746
|
], Skill.prototype, "isActive", 2);
|
|
12710
12747
|
Skill = __decorateClass([
|
|
12711
|
-
|
|
12748
|
+
Entity70("skills")
|
|
12712
12749
|
], Skill);
|
|
12713
12750
|
|
|
12714
12751
|
// src/entities/skill-catalog.entity.ts
|
|
12715
12752
|
import {
|
|
12716
|
-
Entity as
|
|
12717
|
-
Column as
|
|
12718
|
-
Index as
|
|
12753
|
+
Entity as Entity71,
|
|
12754
|
+
Column as Column72,
|
|
12755
|
+
Index as Index61
|
|
12719
12756
|
} from "typeorm";
|
|
12720
12757
|
var SkillCatalog = class extends BaseEntity {
|
|
12721
12758
|
};
|
|
12722
12759
|
__decorateClass([
|
|
12723
|
-
|
|
12724
|
-
|
|
12760
|
+
Column72({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
12761
|
+
Index61()
|
|
12725
12762
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
12726
12763
|
__decorateClass([
|
|
12727
|
-
|
|
12764
|
+
Column72({
|
|
12728
12765
|
name: "aliases",
|
|
12729
12766
|
type: "text",
|
|
12730
12767
|
array: true,
|
|
@@ -12732,20 +12769,20 @@ __decorateClass([
|
|
|
12732
12769
|
})
|
|
12733
12770
|
], SkillCatalog.prototype, "aliases", 2);
|
|
12734
12771
|
__decorateClass([
|
|
12735
|
-
|
|
12772
|
+
Column72({
|
|
12736
12773
|
name: "variations",
|
|
12737
12774
|
type: "jsonb",
|
|
12738
12775
|
default: "{}"
|
|
12739
12776
|
})
|
|
12740
12777
|
], SkillCatalog.prototype, "variations", 2);
|
|
12741
12778
|
__decorateClass([
|
|
12742
|
-
|
|
12779
|
+
Column72({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
12743
12780
|
], SkillCatalog.prototype, "category", 2);
|
|
12744
12781
|
__decorateClass([
|
|
12745
|
-
|
|
12782
|
+
Column72({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
12746
12783
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
12747
12784
|
__decorateClass([
|
|
12748
|
-
|
|
12785
|
+
Column72({
|
|
12749
12786
|
name: "related_skills",
|
|
12750
12787
|
type: "text",
|
|
12751
12788
|
array: true,
|
|
@@ -12753,113 +12790,113 @@ __decorateClass([
|
|
|
12753
12790
|
})
|
|
12754
12791
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
12755
12792
|
__decorateClass([
|
|
12756
|
-
|
|
12757
|
-
|
|
12793
|
+
Column72({ name: "usage_count", type: "integer", default: 0 }),
|
|
12794
|
+
Index61()
|
|
12758
12795
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
12759
12796
|
__decorateClass([
|
|
12760
|
-
|
|
12797
|
+
Column72({ name: "is_verified", type: "boolean", default: false })
|
|
12761
12798
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
12762
12799
|
__decorateClass([
|
|
12763
|
-
|
|
12800
|
+
Column72({ name: "first_seen_date", type: "date" })
|
|
12764
12801
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
12765
12802
|
__decorateClass([
|
|
12766
|
-
|
|
12803
|
+
Column72({ name: "last_updated_date", type: "date" })
|
|
12767
12804
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
12768
12805
|
__decorateClass([
|
|
12769
|
-
|
|
12806
|
+
Column72({
|
|
12770
12807
|
name: "search_vector",
|
|
12771
12808
|
type: "tsvector",
|
|
12772
12809
|
nullable: true
|
|
12773
12810
|
})
|
|
12774
12811
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
12775
12812
|
SkillCatalog = __decorateClass([
|
|
12776
|
-
|
|
12813
|
+
Entity71("skill_catalogs")
|
|
12777
12814
|
], SkillCatalog);
|
|
12778
12815
|
|
|
12779
12816
|
// src/entities/job-role.entity.ts
|
|
12780
|
-
import { Entity as
|
|
12817
|
+
import { Entity as Entity72, Column as Column73 } from "typeorm";
|
|
12781
12818
|
var JobRoles = class extends BaseEntity {
|
|
12782
12819
|
};
|
|
12783
12820
|
__decorateClass([
|
|
12784
|
-
|
|
12821
|
+
Column73({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12785
12822
|
], JobRoles.prototype, "slug", 2);
|
|
12786
12823
|
__decorateClass([
|
|
12787
|
-
|
|
12824
|
+
Column73({ name: "name", type: "varchar", nullable: true })
|
|
12788
12825
|
], JobRoles.prototype, "name", 2);
|
|
12789
12826
|
__decorateClass([
|
|
12790
|
-
|
|
12827
|
+
Column73({ name: "is_active", type: "boolean", default: true })
|
|
12791
12828
|
], JobRoles.prototype, "isActive", 2);
|
|
12792
12829
|
JobRoles = __decorateClass([
|
|
12793
|
-
|
|
12830
|
+
Entity72("job_roles")
|
|
12794
12831
|
], JobRoles);
|
|
12795
12832
|
|
|
12796
12833
|
// src/entities/plan.entity.ts
|
|
12797
|
-
import { Entity as
|
|
12834
|
+
import { Entity as Entity74, Column as Column75, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
12798
12835
|
|
|
12799
12836
|
// src/entities/feature.entity.ts
|
|
12800
|
-
import { Entity as
|
|
12837
|
+
import { Entity as Entity73, Column as Column74, ManyToMany as ManyToMany2 } from "typeorm";
|
|
12801
12838
|
var Feature = class extends BaseEntity {
|
|
12802
12839
|
};
|
|
12803
12840
|
__decorateClass([
|
|
12804
|
-
|
|
12841
|
+
Column74({ name: "name", type: "varchar", unique: true })
|
|
12805
12842
|
], Feature.prototype, "name", 2);
|
|
12806
12843
|
__decorateClass([
|
|
12807
12844
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
12808
12845
|
], Feature.prototype, "plans", 2);
|
|
12809
12846
|
Feature = __decorateClass([
|
|
12810
|
-
|
|
12847
|
+
Entity73("features")
|
|
12811
12848
|
], Feature);
|
|
12812
12849
|
|
|
12813
12850
|
// src/entities/plan.entity.ts
|
|
12814
12851
|
var Plan = class extends BaseEntity {
|
|
12815
12852
|
};
|
|
12816
12853
|
__decorateClass([
|
|
12817
|
-
|
|
12854
|
+
Column75({ name: "name", type: "varchar", unique: true })
|
|
12818
12855
|
], Plan.prototype, "name", 2);
|
|
12819
12856
|
__decorateClass([
|
|
12820
|
-
|
|
12857
|
+
Column75({ name: "description", type: "varchar", nullable: true })
|
|
12821
12858
|
], Plan.prototype, "description", 2);
|
|
12822
12859
|
__decorateClass([
|
|
12823
|
-
|
|
12860
|
+
Column75({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
12824
12861
|
], Plan.prototype, "price", 2);
|
|
12825
12862
|
__decorateClass([
|
|
12826
|
-
|
|
12863
|
+
Column75({ name: "billing_period", type: "varchar" })
|
|
12827
12864
|
], Plan.prototype, "billingPeriod", 2);
|
|
12828
12865
|
__decorateClass([
|
|
12829
|
-
|
|
12866
|
+
Column75({ name: "is_current", type: "boolean", default: false })
|
|
12830
12867
|
], Plan.prototype, "isCurrent", 2);
|
|
12831
12868
|
__decorateClass([
|
|
12832
12869
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
12833
12870
|
JoinTable()
|
|
12834
12871
|
], Plan.prototype, "features", 2);
|
|
12835
12872
|
Plan = __decorateClass([
|
|
12836
|
-
|
|
12873
|
+
Entity74("plans")
|
|
12837
12874
|
], Plan);
|
|
12838
12875
|
|
|
12839
12876
|
// src/entities/cms.entity.ts
|
|
12840
|
-
import { Entity as
|
|
12877
|
+
import { Entity as Entity75, Column as Column76 } from "typeorm";
|
|
12841
12878
|
var Cms = class extends BaseEntity {
|
|
12842
12879
|
};
|
|
12843
12880
|
__decorateClass([
|
|
12844
|
-
|
|
12881
|
+
Column76({ name: "title", type: "varchar", nullable: true })
|
|
12845
12882
|
], Cms.prototype, "title", 2);
|
|
12846
12883
|
__decorateClass([
|
|
12847
|
-
|
|
12884
|
+
Column76({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12848
12885
|
], Cms.prototype, "slug", 2);
|
|
12849
12886
|
__decorateClass([
|
|
12850
|
-
|
|
12887
|
+
Column76({ name: "content", type: "varchar", nullable: true })
|
|
12851
12888
|
], Cms.prototype, "content", 2);
|
|
12852
12889
|
__decorateClass([
|
|
12853
|
-
|
|
12890
|
+
Column76({ name: "is_active", type: "boolean", default: true })
|
|
12854
12891
|
], Cms.prototype, "isActive", 2);
|
|
12855
12892
|
Cms = __decorateClass([
|
|
12856
|
-
|
|
12893
|
+
Entity75("cms")
|
|
12857
12894
|
], Cms);
|
|
12858
12895
|
|
|
12859
12896
|
// src/entities/lead.entity.ts
|
|
12860
12897
|
import {
|
|
12861
|
-
Entity as
|
|
12862
|
-
Column as
|
|
12898
|
+
Entity as Entity76,
|
|
12899
|
+
Column as Column77
|
|
12863
12900
|
} from "typeorm";
|
|
12864
12901
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
12865
12902
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -12869,22 +12906,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
12869
12906
|
var Lead = class extends BaseEntity {
|
|
12870
12907
|
};
|
|
12871
12908
|
__decorateClass([
|
|
12872
|
-
|
|
12909
|
+
Column77({ name: "name", type: "varchar", nullable: true })
|
|
12873
12910
|
], Lead.prototype, "name", 2);
|
|
12874
12911
|
__decorateClass([
|
|
12875
|
-
|
|
12912
|
+
Column77({ name: "mobile_code", type: "varchar", nullable: true })
|
|
12876
12913
|
], Lead.prototype, "mobileCode", 2);
|
|
12877
12914
|
__decorateClass([
|
|
12878
|
-
|
|
12915
|
+
Column77({ name: "mobile", type: "varchar", nullable: true })
|
|
12879
12916
|
], Lead.prototype, "mobile", 2);
|
|
12880
12917
|
__decorateClass([
|
|
12881
|
-
|
|
12918
|
+
Column77({ name: "email", type: "varchar", nullable: true })
|
|
12882
12919
|
], Lead.prototype, "email", 2);
|
|
12883
12920
|
__decorateClass([
|
|
12884
|
-
|
|
12921
|
+
Column77({ name: "description", type: "varchar", nullable: true })
|
|
12885
12922
|
], Lead.prototype, "description", 2);
|
|
12886
12923
|
__decorateClass([
|
|
12887
|
-
|
|
12924
|
+
Column77({
|
|
12888
12925
|
name: "category",
|
|
12889
12926
|
type: "enum",
|
|
12890
12927
|
enum: CategoryEmum,
|
|
@@ -12892,7 +12929,7 @@ __decorateClass([
|
|
|
12892
12929
|
})
|
|
12893
12930
|
], Lead.prototype, "category", 2);
|
|
12894
12931
|
Lead = __decorateClass([
|
|
12895
|
-
|
|
12932
|
+
Entity76("leads")
|
|
12896
12933
|
], Lead);
|
|
12897
12934
|
|
|
12898
12935
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -13133,7 +13170,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
13133
13170
|
], ClientFreelancerRecommendation);
|
|
13134
13171
|
|
|
13135
13172
|
// src/entities/commission.entity.ts
|
|
13136
|
-
import { Entity as
|
|
13173
|
+
import { Entity as Entity77, Column as Column78 } from "typeorm";
|
|
13137
13174
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
13138
13175
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
13139
13176
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -13142,7 +13179,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
13142
13179
|
var Commission = class extends BaseEntity {
|
|
13143
13180
|
};
|
|
13144
13181
|
__decorateClass([
|
|
13145
|
-
|
|
13182
|
+
Column78({
|
|
13146
13183
|
name: "freelancer_commission_type",
|
|
13147
13184
|
type: "enum",
|
|
13148
13185
|
enum: CommissionTypeEnum,
|
|
@@ -13150,10 +13187,10 @@ __decorateClass([
|
|
|
13150
13187
|
})
|
|
13151
13188
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
13152
13189
|
__decorateClass([
|
|
13153
|
-
|
|
13190
|
+
Column78({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
13154
13191
|
], Commission.prototype, "freelancerCommission", 2);
|
|
13155
13192
|
__decorateClass([
|
|
13156
|
-
|
|
13193
|
+
Column78({
|
|
13157
13194
|
name: "client_commission_type",
|
|
13158
13195
|
type: "enum",
|
|
13159
13196
|
enum: CommissionTypeEnum,
|
|
@@ -13161,124 +13198,124 @@ __decorateClass([
|
|
|
13161
13198
|
})
|
|
13162
13199
|
], Commission.prototype, "clientCommissionType", 2);
|
|
13163
13200
|
__decorateClass([
|
|
13164
|
-
|
|
13201
|
+
Column78({ name: "client_commission", type: "integer", default: 0 })
|
|
13165
13202
|
], Commission.prototype, "clientCommission", 2);
|
|
13166
13203
|
Commission = __decorateClass([
|
|
13167
|
-
|
|
13204
|
+
Entity77("commissions")
|
|
13168
13205
|
], Commission);
|
|
13169
13206
|
|
|
13170
13207
|
// src/entities/calendly-meeting-log.entity.ts
|
|
13171
13208
|
import {
|
|
13172
|
-
Entity as
|
|
13173
|
-
Column as
|
|
13174
|
-
Index as
|
|
13209
|
+
Entity as Entity78,
|
|
13210
|
+
Column as Column79,
|
|
13211
|
+
Index as Index62
|
|
13175
13212
|
} from "typeorm";
|
|
13176
13213
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
13177
13214
|
};
|
|
13178
13215
|
__decorateClass([
|
|
13179
|
-
|
|
13180
|
-
|
|
13216
|
+
Column79({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
13217
|
+
Index62()
|
|
13181
13218
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
13182
13219
|
__decorateClass([
|
|
13183
|
-
|
|
13220
|
+
Column79({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
13184
13221
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
13185
13222
|
__decorateClass([
|
|
13186
|
-
|
|
13223
|
+
Column79({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13187
13224
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
13188
13225
|
CalendlyMeetingLog = __decorateClass([
|
|
13189
|
-
|
|
13226
|
+
Entity78("calendly_meeting_logs")
|
|
13190
13227
|
], CalendlyMeetingLog);
|
|
13191
13228
|
|
|
13192
13229
|
// src/entities/zoom-meeting-log.entity.ts
|
|
13193
13230
|
import {
|
|
13194
|
-
Entity as
|
|
13195
|
-
Column as
|
|
13196
|
-
Index as
|
|
13231
|
+
Entity as Entity79,
|
|
13232
|
+
Column as Column80,
|
|
13233
|
+
Index as Index63
|
|
13197
13234
|
} from "typeorm";
|
|
13198
13235
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
13199
13236
|
};
|
|
13200
13237
|
__decorateClass([
|
|
13201
|
-
|
|
13202
|
-
|
|
13238
|
+
Column80({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
13239
|
+
Index63()
|
|
13203
13240
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
13204
13241
|
__decorateClass([
|
|
13205
|
-
|
|
13242
|
+
Column80({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
13206
13243
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
13207
13244
|
__decorateClass([
|
|
13208
|
-
|
|
13245
|
+
Column80({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13209
13246
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
13210
13247
|
ZoomMeetingLog = __decorateClass([
|
|
13211
|
-
|
|
13248
|
+
Entity79("zoom_meeting_logs")
|
|
13212
13249
|
], ZoomMeetingLog);
|
|
13213
13250
|
|
|
13214
13251
|
// src/entities/stripe-logs.entity.ts
|
|
13215
|
-
import { Entity as
|
|
13252
|
+
import { Entity as Entity80, Column as Column81 } from "typeorm";
|
|
13216
13253
|
var StripeLog = class extends BaseEntity {
|
|
13217
13254
|
};
|
|
13218
13255
|
__decorateClass([
|
|
13219
|
-
|
|
13256
|
+
Column81({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
13220
13257
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
13221
13258
|
__decorateClass([
|
|
13222
|
-
|
|
13259
|
+
Column81({ name: "event_type", type: "varchar", nullable: true })
|
|
13223
13260
|
], StripeLog.prototype, "eventType", 2);
|
|
13224
13261
|
__decorateClass([
|
|
13225
|
-
|
|
13262
|
+
Column81({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
13226
13263
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
13227
13264
|
__decorateClass([
|
|
13228
|
-
|
|
13265
|
+
Column81({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13229
13266
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
13230
13267
|
StripeLog = __decorateClass([
|
|
13231
|
-
|
|
13268
|
+
Entity80("stripe_logs")
|
|
13232
13269
|
], StripeLog);
|
|
13233
13270
|
|
|
13234
13271
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
13235
13272
|
import {
|
|
13236
|
-
Entity as
|
|
13237
|
-
Column as
|
|
13238
|
-
Index as
|
|
13273
|
+
Entity as Entity81,
|
|
13274
|
+
Column as Column82,
|
|
13275
|
+
Index as Index64
|
|
13239
13276
|
} from "typeorm";
|
|
13240
13277
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
13241
13278
|
};
|
|
13242
13279
|
__decorateClass([
|
|
13243
|
-
|
|
13280
|
+
Column82({
|
|
13244
13281
|
type: "varchar",
|
|
13245
13282
|
length: 100,
|
|
13246
13283
|
unique: true,
|
|
13247
13284
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
13248
13285
|
}),
|
|
13249
|
-
|
|
13286
|
+
Index64()
|
|
13250
13287
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
13251
13288
|
__decorateClass([
|
|
13252
|
-
|
|
13289
|
+
Column82({
|
|
13253
13290
|
type: "jsonb",
|
|
13254
13291
|
comment: "JSON object containing weight values",
|
|
13255
13292
|
nullable: true
|
|
13256
13293
|
})
|
|
13257
13294
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
13258
13295
|
__decorateClass([
|
|
13259
|
-
|
|
13296
|
+
Column82({ name: "is_active", type: "boolean", default: true })
|
|
13260
13297
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
13261
13298
|
RecommendationWeightageConfig = __decorateClass([
|
|
13262
|
-
|
|
13299
|
+
Entity81("recommendation_weightage_configs")
|
|
13263
13300
|
], RecommendationWeightageConfig);
|
|
13264
13301
|
|
|
13265
13302
|
// src/entities/global-setting.entity.ts
|
|
13266
13303
|
import {
|
|
13267
|
-
Entity as
|
|
13268
|
-
Column as
|
|
13269
|
-
Index as
|
|
13304
|
+
Entity as Entity82,
|
|
13305
|
+
Column as Column83,
|
|
13306
|
+
Index as Index65
|
|
13270
13307
|
} from "typeorm";
|
|
13271
13308
|
var GlobalSetting = class extends BaseEntity {
|
|
13272
13309
|
};
|
|
13273
13310
|
__decorateClass([
|
|
13274
|
-
|
|
13311
|
+
Column83({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
13275
13312
|
], GlobalSetting.prototype, "key", 2);
|
|
13276
13313
|
__decorateClass([
|
|
13277
|
-
|
|
13314
|
+
Column83({ name: "value", type: "text", nullable: false })
|
|
13278
13315
|
], GlobalSetting.prototype, "value", 2);
|
|
13279
13316
|
GlobalSetting = __decorateClass([
|
|
13280
|
-
|
|
13281
|
-
|
|
13317
|
+
Entity82("global_settings"),
|
|
13318
|
+
Index65(["key"], { unique: true })
|
|
13282
13319
|
], GlobalSetting);
|
|
13283
13320
|
export {
|
|
13284
13321
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -13484,6 +13521,7 @@ export {
|
|
|
13484
13521
|
INTERVIEW_INVITE_PATTERN,
|
|
13485
13522
|
INTERVIEW_PATTERN,
|
|
13486
13523
|
INVOICE_PATTERN,
|
|
13524
|
+
InAppNotification,
|
|
13487
13525
|
InitiatorTypeEnum,
|
|
13488
13526
|
Interview,
|
|
13489
13527
|
InterviewInvite,
|