@experts_hub/shared 1.0.733 → 1.0.736
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/ekyc-verification-log.entity.d.ts +6 -2
- package/dist/entities/ekyc-verification-session.entity.d.ts +9 -1
- package/dist/entities/user.entity.d.ts +6 -0
- package/dist/entities/wallet-transaction.entity.d.ts +3 -0
- package/dist/index.d.mts +75 -28
- package/dist/index.d.ts +75 -28
- package/dist/index.js +598 -443
- package/dist/index.mjs +461 -292
- package/dist/modules/didit/dto/create-ekyc-session.dto.d.ts +21 -1
- package/dist/modules/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1065,13 +1065,13 @@ import { IsEnum as IsEnum14 } from "class-validator";
|
|
|
1065
1065
|
|
|
1066
1066
|
// src/entities/user.entity.ts
|
|
1067
1067
|
import {
|
|
1068
|
-
Entity as
|
|
1069
|
-
Column as
|
|
1068
|
+
Entity as Entity81,
|
|
1069
|
+
Column as Column82,
|
|
1070
1070
|
OneToMany as OneToMany27,
|
|
1071
|
-
OneToOne as
|
|
1071
|
+
OneToOne as OneToOne13,
|
|
1072
1072
|
Index as Index71,
|
|
1073
|
-
ManyToOne as
|
|
1074
|
-
JoinColumn as
|
|
1073
|
+
ManyToOne as ManyToOne76,
|
|
1074
|
+
JoinColumn as JoinColumn77
|
|
1075
1075
|
} from "typeorm";
|
|
1076
1076
|
|
|
1077
1077
|
// src/entities/base.entity.ts
|
|
@@ -6243,10 +6243,16 @@ StripeTransaction = __decorateClass([
|
|
|
6243
6243
|
], StripeTransaction);
|
|
6244
6244
|
|
|
6245
6245
|
// src/entities/wallet.entity.ts
|
|
6246
|
-
import { Entity as Entity72, Column as Column73, Index as Index65, JoinColumn as JoinColumn68, OneToOne as
|
|
6246
|
+
import { Entity as Entity72, Column as Column73, Index as Index65, JoinColumn as JoinColumn68, OneToOne as OneToOne12, OneToMany as OneToMany24 } from "typeorm";
|
|
6247
6247
|
|
|
6248
6248
|
// src/entities/wallet-transaction.entity.ts
|
|
6249
|
-
import {
|
|
6249
|
+
import {
|
|
6250
|
+
Entity as Entity71,
|
|
6251
|
+
Column as Column72,
|
|
6252
|
+
Index as Index64,
|
|
6253
|
+
ManyToOne as ManyToOne67,
|
|
6254
|
+
JoinColumn as JoinColumn67
|
|
6255
|
+
} from "typeorm";
|
|
6250
6256
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
6251
6257
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
6252
6258
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -6270,6 +6276,14 @@ __decorateClass([
|
|
|
6270
6276
|
ManyToOne67(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
6271
6277
|
JoinColumn67({ name: "wallet_id" })
|
|
6272
6278
|
], WalletTransaction.prototype, "wallet", 2);
|
|
6279
|
+
__decorateClass([
|
|
6280
|
+
Column72({ name: "from_user_id", type: "integer", nullable: true }),
|
|
6281
|
+
Index64()
|
|
6282
|
+
], WalletTransaction.prototype, "fromUserId", 2);
|
|
6283
|
+
__decorateClass([
|
|
6284
|
+
ManyToOne67(() => User, (user) => user.sentTransactions),
|
|
6285
|
+
JoinColumn67({ name: "from_user_id" })
|
|
6286
|
+
], WalletTransaction.prototype, "fromUser", 2);
|
|
6273
6287
|
__decorateClass([
|
|
6274
6288
|
Column72({ name: "amount", type: "bigint", nullable: true })
|
|
6275
6289
|
], WalletTransaction.prototype, "amount", 2);
|
|
@@ -6286,7 +6300,12 @@ __decorateClass([
|
|
|
6286
6300
|
Column72({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
6287
6301
|
], WalletTransaction.prototype, "type", 2);
|
|
6288
6302
|
__decorateClass([
|
|
6289
|
-
Column72({
|
|
6303
|
+
Column72({
|
|
6304
|
+
name: "status",
|
|
6305
|
+
type: "enum",
|
|
6306
|
+
enum: WalletTransactionStatusEnum,
|
|
6307
|
+
default: "PENDING" /* PENDING */
|
|
6308
|
+
})
|
|
6290
6309
|
], WalletTransaction.prototype, "status", 2);
|
|
6291
6310
|
__decorateClass([
|
|
6292
6311
|
Column72({ name: "description", type: "text", nullable: true })
|
|
@@ -6327,7 +6346,7 @@ __decorateClass([
|
|
|
6327
6346
|
Index65()
|
|
6328
6347
|
], Wallet.prototype, "userId", 2);
|
|
6329
6348
|
__decorateClass([
|
|
6330
|
-
|
|
6349
|
+
OneToOne12(() => User, (user) => user.wallet),
|
|
6331
6350
|
JoinColumn68({ name: "user_id" })
|
|
6332
6351
|
], Wallet.prototype, "user", 2);
|
|
6333
6352
|
__decorateClass([
|
|
@@ -6726,6 +6745,24 @@ __decorateClass([
|
|
|
6726
6745
|
__decorateClass([
|
|
6727
6746
|
Column80({ name: "session_id", type: "varchar", unique: true })
|
|
6728
6747
|
], EkycVerificationSession.prototype, "sessionId", 2);
|
|
6748
|
+
__decorateClass([
|
|
6749
|
+
Column80({ name: "session_number", type: "integer" })
|
|
6750
|
+
], EkycVerificationSession.prototype, "sessionNumber", 2);
|
|
6751
|
+
__decorateClass([
|
|
6752
|
+
Column80({ name: "token", type: "varchar", nullable: true })
|
|
6753
|
+
], EkycVerificationSession.prototype, "token", 2);
|
|
6754
|
+
__decorateClass([
|
|
6755
|
+
Column80({ name: "url", type: "varchar", nullable: true })
|
|
6756
|
+
], EkycVerificationSession.prototype, "url", 2);
|
|
6757
|
+
__decorateClass([
|
|
6758
|
+
Column80({ name: "vendor_data", type: "varchar", nullable: true })
|
|
6759
|
+
], EkycVerificationSession.prototype, "vendorData", 2);
|
|
6760
|
+
__decorateClass([
|
|
6761
|
+
Column80({ name: "meta_data", type: "jsonb", nullable: true })
|
|
6762
|
+
], EkycVerificationSession.prototype, "metaData", 2);
|
|
6763
|
+
__decorateClass([
|
|
6764
|
+
Column80({ name: "decision_data", type: "jsonb", nullable: true })
|
|
6765
|
+
], EkycVerificationSession.prototype, "decisionData", 2);
|
|
6729
6766
|
__decorateClass([
|
|
6730
6767
|
Column80({
|
|
6731
6768
|
name: "status",
|
|
@@ -6735,13 +6772,14 @@ __decorateClass([
|
|
|
6735
6772
|
})
|
|
6736
6773
|
], EkycVerificationSession.prototype, "status", 2);
|
|
6737
6774
|
__decorateClass([
|
|
6738
|
-
Column80({
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6775
|
+
Column80({ name: "callback_url", type: "varchar", nullable: true })
|
|
6776
|
+
], EkycVerificationSession.prototype, "callBackUrl", 2);
|
|
6777
|
+
__decorateClass([
|
|
6778
|
+
Column80({ name: "workflow_id", type: "varchar", nullable: true })
|
|
6779
|
+
], EkycVerificationSession.prototype, "workflowId", 2);
|
|
6780
|
+
__decorateClass([
|
|
6781
|
+
Column80({ name: "workflow_version", type: "varchar", nullable: true })
|
|
6782
|
+
], EkycVerificationSession.prototype, "workflowVersion", 2);
|
|
6745
6783
|
__decorateClass([
|
|
6746
6784
|
Column80({
|
|
6747
6785
|
name: "expired_at",
|
|
@@ -6753,6 +6791,79 @@ EkycVerificationSession = __decorateClass([
|
|
|
6753
6791
|
Entity79("ekyc_verification_sessions")
|
|
6754
6792
|
], EkycVerificationSession);
|
|
6755
6793
|
|
|
6794
|
+
// src/entities/ekyc-verification-log.entity.ts
|
|
6795
|
+
import {
|
|
6796
|
+
Entity as Entity80,
|
|
6797
|
+
Column as Column81,
|
|
6798
|
+
PrimaryGeneratedColumn as PrimaryGeneratedColumn6,
|
|
6799
|
+
ManyToOne as ManyToOne75,
|
|
6800
|
+
JoinColumn as JoinColumn76,
|
|
6801
|
+
CreateDateColumn as CreateDateColumn5
|
|
6802
|
+
} from "typeorm";
|
|
6803
|
+
var EkycVerificationLogStatusEnum = /* @__PURE__ */ ((EkycVerificationLogStatusEnum2) => {
|
|
6804
|
+
EkycVerificationLogStatusEnum2["NOT_STARTED"] = "NOT_STARTED";
|
|
6805
|
+
EkycVerificationLogStatusEnum2["NOT_FINISHED"] = "NOT_FINISHED";
|
|
6806
|
+
EkycVerificationLogStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
6807
|
+
EkycVerificationLogStatusEnum2["APPROVED"] = "APPROVED";
|
|
6808
|
+
EkycVerificationLogStatusEnum2["DECLINED"] = "DECLINED";
|
|
6809
|
+
EkycVerificationLogStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
6810
|
+
EkycVerificationLogStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
6811
|
+
EkycVerificationLogStatusEnum2["KYC_EXPIRED"] = "KYC_EXPIRED";
|
|
6812
|
+
EkycVerificationLogStatusEnum2["ABANDONED"] = "ABANDONED";
|
|
6813
|
+
EkycVerificationLogStatusEnum2["RESUBMITTED"] = "RESUBMITTED";
|
|
6814
|
+
EkycVerificationLogStatusEnum2["AWAITING_USER"] = "AWAITING_USER";
|
|
6815
|
+
return EkycVerificationLogStatusEnum2;
|
|
6816
|
+
})(EkycVerificationLogStatusEnum || {});
|
|
6817
|
+
var EkycVerificationLog = class {
|
|
6818
|
+
};
|
|
6819
|
+
__decorateClass([
|
|
6820
|
+
PrimaryGeneratedColumn6("increment", { type: "integer" })
|
|
6821
|
+
], EkycVerificationLog.prototype, "id", 2);
|
|
6822
|
+
__decorateClass([
|
|
6823
|
+
Column81({ name: "user_id", type: "integer", nullable: true })
|
|
6824
|
+
], EkycVerificationLog.prototype, "userId", 2);
|
|
6825
|
+
__decorateClass([
|
|
6826
|
+
ManyToOne75(() => User, (user) => user.ekycVerificationLogs),
|
|
6827
|
+
JoinColumn76({ name: "user_id" })
|
|
6828
|
+
], EkycVerificationLog.prototype, "user", 2);
|
|
6829
|
+
__decorateClass([
|
|
6830
|
+
Column81({ name: "session_id", type: "varchar", nullable: true })
|
|
6831
|
+
], EkycVerificationLog.prototype, "sessionId", 2);
|
|
6832
|
+
__decorateClass([
|
|
6833
|
+
Column81({ name: "workflow_id", type: "varchar", nullable: true })
|
|
6834
|
+
], EkycVerificationLog.prototype, "workflowId", 2);
|
|
6835
|
+
__decorateClass([
|
|
6836
|
+
Column81({ name: "callback_url", type: "varchar", nullable: true })
|
|
6837
|
+
], EkycVerificationLog.prototype, "callBackUrl", 2);
|
|
6838
|
+
__decorateClass([
|
|
6839
|
+
Column81({
|
|
6840
|
+
type: "enum",
|
|
6841
|
+
enum: EkycVerificationLogStatusEnum,
|
|
6842
|
+
nullable: true
|
|
6843
|
+
})
|
|
6844
|
+
], EkycVerificationLog.prototype, "status", 2);
|
|
6845
|
+
__decorateClass([
|
|
6846
|
+
Column81({ name: "signature_method", type: "varchar", nullable: true })
|
|
6847
|
+
], EkycVerificationLog.prototype, "signatureMethod", 2);
|
|
6848
|
+
__decorateClass([
|
|
6849
|
+
Column81({ name: "is_signature_valid", type: "boolean", default: false })
|
|
6850
|
+
], EkycVerificationLog.prototype, "isSignatureValid", 2);
|
|
6851
|
+
__decorateClass([
|
|
6852
|
+
Column81({ name: "raw_payload", type: "jsonb", nullable: true })
|
|
6853
|
+
], EkycVerificationLog.prototype, "rawPayload", 2);
|
|
6854
|
+
__decorateClass([
|
|
6855
|
+
Column81({ name: "headers", type: "jsonb", nullable: true })
|
|
6856
|
+
], EkycVerificationLog.prototype, "headers", 2);
|
|
6857
|
+
__decorateClass([
|
|
6858
|
+
Column81({ name: "error_message", type: "text", nullable: true })
|
|
6859
|
+
], EkycVerificationLog.prototype, "errorMessage", 2);
|
|
6860
|
+
__decorateClass([
|
|
6861
|
+
CreateDateColumn5({ name: "created_at", type: "timestamp with time zone" })
|
|
6862
|
+
], EkycVerificationLog.prototype, "createdAt", 2);
|
|
6863
|
+
EkycVerificationLog = __decorateClass([
|
|
6864
|
+
Entity80("ekyc_verification_logs")
|
|
6865
|
+
], EkycVerificationLog);
|
|
6866
|
+
|
|
6756
6867
|
// src/entities/user.entity.ts
|
|
6757
6868
|
var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
|
|
6758
6869
|
AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
@@ -6779,57 +6890,57 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
6779
6890
|
var User = class extends BaseEntity {
|
|
6780
6891
|
};
|
|
6781
6892
|
__decorateClass([
|
|
6782
|
-
|
|
6893
|
+
Column82({ name: "unique_id", type: "varchar", unique: true })
|
|
6783
6894
|
], User.prototype, "uniqueId", 2);
|
|
6784
6895
|
__decorateClass([
|
|
6785
|
-
|
|
6896
|
+
Column82({ name: "parent_id", type: "integer", nullable: true }),
|
|
6786
6897
|
Index71()
|
|
6787
6898
|
], User.prototype, "parentId", 2);
|
|
6788
6899
|
__decorateClass([
|
|
6789
|
-
|
|
6790
|
-
|
|
6900
|
+
ManyToOne76(() => User, (user) => user.children, { nullable: true }),
|
|
6901
|
+
JoinColumn77({ name: "parent_id" })
|
|
6791
6902
|
], User.prototype, "parent", 2);
|
|
6792
6903
|
__decorateClass([
|
|
6793
6904
|
OneToMany27(() => User, (user) => user.parent)
|
|
6794
6905
|
], User.prototype, "children", 2);
|
|
6795
6906
|
__decorateClass([
|
|
6796
|
-
|
|
6907
|
+
Column82({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
6797
6908
|
], User.prototype, "username", 2);
|
|
6798
6909
|
__decorateClass([
|
|
6799
|
-
|
|
6910
|
+
Column82({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
6800
6911
|
], User.prototype, "firstName", 2);
|
|
6801
6912
|
__decorateClass([
|
|
6802
|
-
|
|
6913
|
+
Column82({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
6803
6914
|
], User.prototype, "lastName", 2);
|
|
6804
6915
|
__decorateClass([
|
|
6805
|
-
|
|
6916
|
+
Column82({ name: "date_of_birth", type: "date", nullable: true })
|
|
6806
6917
|
], User.prototype, "dateOfBirth", 2);
|
|
6807
6918
|
__decorateClass([
|
|
6808
|
-
|
|
6919
|
+
Column82({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
6809
6920
|
], User.prototype, "gender", 2);
|
|
6810
6921
|
__decorateClass([
|
|
6811
|
-
|
|
6922
|
+
Column82({ name: "profile_picture_url", type: "text", nullable: true })
|
|
6812
6923
|
], User.prototype, "profilePictureUrl", 2);
|
|
6813
6924
|
__decorateClass([
|
|
6814
|
-
|
|
6925
|
+
Column82({ name: "presigned_profile_picture_url", type: "text", nullable: true })
|
|
6815
6926
|
], User.prototype, "presignedProfilePictureUrl", 2);
|
|
6816
6927
|
__decorateClass([
|
|
6817
|
-
|
|
6928
|
+
Column82({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
|
|
6818
6929
|
], User.prototype, "presignedProfilePictureUrlExpiresAt", 2);
|
|
6819
6930
|
__decorateClass([
|
|
6820
|
-
|
|
6931
|
+
Column82({ name: "email", type: "varchar", unique: true })
|
|
6821
6932
|
], User.prototype, "email", 2);
|
|
6822
6933
|
__decorateClass([
|
|
6823
|
-
|
|
6934
|
+
Column82({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6824
6935
|
], User.prototype, "mobileCode", 2);
|
|
6825
6936
|
__decorateClass([
|
|
6826
|
-
|
|
6937
|
+
Column82({ name: "mobile", type: "varchar", nullable: true })
|
|
6827
6938
|
], User.prototype, "mobile", 2);
|
|
6828
6939
|
__decorateClass([
|
|
6829
|
-
|
|
6940
|
+
Column82({ name: "password", type: "varchar", nullable: true })
|
|
6830
6941
|
], User.prototype, "password", 2);
|
|
6831
6942
|
__decorateClass([
|
|
6832
|
-
|
|
6943
|
+
Column82({
|
|
6833
6944
|
name: "account_type",
|
|
6834
6945
|
type: "enum",
|
|
6835
6946
|
enum: AccountType2,
|
|
@@ -6837,7 +6948,7 @@ __decorateClass([
|
|
|
6837
6948
|
})
|
|
6838
6949
|
], User.prototype, "accountType", 2);
|
|
6839
6950
|
__decorateClass([
|
|
6840
|
-
|
|
6951
|
+
Column82({
|
|
6841
6952
|
name: "account_status",
|
|
6842
6953
|
type: "enum",
|
|
6843
6954
|
enum: AccountStatus,
|
|
@@ -6845,45 +6956,55 @@ __decorateClass([
|
|
|
6845
6956
|
})
|
|
6846
6957
|
], User.prototype, "accountStatus", 2);
|
|
6847
6958
|
__decorateClass([
|
|
6848
|
-
|
|
6959
|
+
Column82({ name: "is_email_verified", type: "boolean", default: false })
|
|
6849
6960
|
], User.prototype, "isEmailVerified", 2);
|
|
6850
6961
|
__decorateClass([
|
|
6851
|
-
|
|
6962
|
+
Column82({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6852
6963
|
], User.prototype, "isMobileVerified", 2);
|
|
6853
6964
|
__decorateClass([
|
|
6854
|
-
|
|
6965
|
+
Column82({ name: "is_social", type: "boolean", default: false })
|
|
6855
6966
|
], User.prototype, "isSocial", 2);
|
|
6856
6967
|
__decorateClass([
|
|
6857
|
-
|
|
6968
|
+
Column82({ name: "is_referral_user", type: "boolean", default: false })
|
|
6858
6969
|
], User.prototype, "isReferralUser", 2);
|
|
6859
6970
|
__decorateClass([
|
|
6860
|
-
|
|
6971
|
+
Column82({ name: "is_verified", type: "boolean", default: false })
|
|
6972
|
+
], User.prototype, "isVerified", 2);
|
|
6973
|
+
__decorateClass([
|
|
6974
|
+
Column82({
|
|
6975
|
+
name: "verified_at",
|
|
6976
|
+
type: "timestamp with time zone",
|
|
6977
|
+
nullable: true
|
|
6978
|
+
})
|
|
6979
|
+
], User.prototype, "verifiedAt", 2);
|
|
6980
|
+
__decorateClass([
|
|
6981
|
+
Column82({
|
|
6861
6982
|
name: "last_login_at",
|
|
6862
6983
|
type: "timestamp with time zone",
|
|
6863
6984
|
nullable: true
|
|
6864
6985
|
})
|
|
6865
6986
|
], User.prototype, "lastLoginAt", 2);
|
|
6866
6987
|
__decorateClass([
|
|
6867
|
-
|
|
6988
|
+
Column82({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6868
6989
|
], User.prototype, "lastLoginIp", 2);
|
|
6869
6990
|
__decorateClass([
|
|
6870
|
-
|
|
6991
|
+
Column82({ name: "reset_token", type: "varchar", nullable: true })
|
|
6871
6992
|
], User.prototype, "resetToken", 2);
|
|
6872
6993
|
__decorateClass([
|
|
6873
|
-
|
|
6994
|
+
Column82({
|
|
6874
6995
|
name: "reset_token_expire_at",
|
|
6875
6996
|
type: "timestamp with time zone",
|
|
6876
6997
|
nullable: true
|
|
6877
6998
|
})
|
|
6878
6999
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6879
7000
|
__decorateClass([
|
|
6880
|
-
|
|
7001
|
+
Column82({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6881
7002
|
], User.prototype, "setPasswordToken", 2);
|
|
6882
7003
|
__decorateClass([
|
|
6883
7004
|
OneToMany27(() => RefreshToken, (token) => token.user)
|
|
6884
7005
|
], User.prototype, "refreshTokens", 2);
|
|
6885
7006
|
__decorateClass([
|
|
6886
|
-
|
|
7007
|
+
Column82({
|
|
6887
7008
|
name: "provider",
|
|
6888
7009
|
type: "enum",
|
|
6889
7010
|
enum: Provider,
|
|
@@ -6892,22 +7013,22 @@ __decorateClass([
|
|
|
6892
7013
|
})
|
|
6893
7014
|
], User.prototype, "provider", 2);
|
|
6894
7015
|
__decorateClass([
|
|
6895
|
-
|
|
7016
|
+
Column82({ name: "provider_token", type: "varchar", nullable: true })
|
|
6896
7017
|
], User.prototype, "providerToken", 2);
|
|
6897
7018
|
__decorateClass([
|
|
6898
|
-
|
|
7019
|
+
Column82({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6899
7020
|
], User.prototype, "linkedInId", 2);
|
|
6900
7021
|
__decorateClass([
|
|
6901
|
-
|
|
7022
|
+
Column82({ name: "google_id", type: "varchar", nullable: true })
|
|
6902
7023
|
], User.prototype, "googleId", 2);
|
|
6903
7024
|
__decorateClass([
|
|
6904
|
-
|
|
7025
|
+
Column82({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6905
7026
|
], User.prototype, "gitLabsId", 2);
|
|
6906
7027
|
__decorateClass([
|
|
6907
|
-
|
|
7028
|
+
Column82({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6908
7029
|
], User.prototype, "onBoardedBy", 2);
|
|
6909
7030
|
__decorateClass([
|
|
6910
|
-
|
|
7031
|
+
Column82({ name: "ip", type: "varchar", nullable: true })
|
|
6911
7032
|
], User.prototype, "ip", 2);
|
|
6912
7033
|
__decorateClass([
|
|
6913
7034
|
OneToMany27(() => Otp, (otp) => otp.user)
|
|
@@ -6916,7 +7037,7 @@ __decorateClass([
|
|
|
6916
7037
|
OneToMany27(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6917
7038
|
], User.prototype, "senseloafLogs", 2);
|
|
6918
7039
|
__decorateClass([
|
|
6919
|
-
|
|
7040
|
+
OneToOne13(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6920
7041
|
], User.prototype, "companyProfile", 2);
|
|
6921
7042
|
__decorateClass([
|
|
6922
7043
|
OneToMany27(() => CompanySkill, (companySkill) => companySkill.user)
|
|
@@ -6928,7 +7049,7 @@ __decorateClass([
|
|
|
6928
7049
|
)
|
|
6929
7050
|
], User.prototype, "companyMemberRoles", 2);
|
|
6930
7051
|
__decorateClass([
|
|
6931
|
-
|
|
7052
|
+
OneToOne13(() => CompanyMember, (companyMember) => companyMember.user)
|
|
6932
7053
|
], User.prototype, "companyMember", 2);
|
|
6933
7054
|
__decorateClass([
|
|
6934
7055
|
OneToMany27(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
@@ -6937,13 +7058,13 @@ __decorateClass([
|
|
|
6937
7058
|
OneToMany27(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6938
7059
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6939
7060
|
__decorateClass([
|
|
6940
|
-
|
|
7061
|
+
OneToOne13(
|
|
6941
7062
|
() => FreelancerProfile,
|
|
6942
7063
|
(freelancerProfile) => freelancerProfile.user
|
|
6943
7064
|
)
|
|
6944
7065
|
], User.prototype, "freelancerProfile", 2);
|
|
6945
7066
|
__decorateClass([
|
|
6946
|
-
|
|
7067
|
+
OneToOne13(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6947
7068
|
], User.prototype, "freelancerResume", 2);
|
|
6948
7069
|
__decorateClass([
|
|
6949
7070
|
OneToMany27(
|
|
@@ -7006,7 +7127,7 @@ __decorateClass([
|
|
|
7006
7127
|
)
|
|
7007
7128
|
], User.prototype, "freelancerFramework", 2);
|
|
7008
7129
|
__decorateClass([
|
|
7009
|
-
|
|
7130
|
+
OneToOne13(
|
|
7010
7131
|
() => FreelancerDeclaration,
|
|
7011
7132
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
7012
7133
|
)
|
|
@@ -7109,7 +7230,7 @@ __decorateClass([
|
|
|
7109
7230
|
OneToMany27(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
7110
7231
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
7111
7232
|
__decorateClass([
|
|
7112
|
-
|
|
7233
|
+
OneToOne13(() => Signature, (signature) => signature.user)
|
|
7113
7234
|
], User.prototype, "signatures", 2);
|
|
7114
7235
|
__decorateClass([
|
|
7115
7236
|
OneToMany27(() => Timesheet, (timesheet) => timesheet.client)
|
|
@@ -7142,7 +7263,7 @@ __decorateClass([
|
|
|
7142
7263
|
OneToMany27(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
7143
7264
|
], User.prototype, "respondentDisputes", 2);
|
|
7144
7265
|
__decorateClass([
|
|
7145
|
-
|
|
7266
|
+
OneToOne13(() => Wallet, (wallet) => wallet.user)
|
|
7146
7267
|
], User.prototype, "wallet", 2);
|
|
7147
7268
|
__decorateClass([
|
|
7148
7269
|
OneToMany27(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
@@ -7162,8 +7283,14 @@ __decorateClass([
|
|
|
7162
7283
|
__decorateClass([
|
|
7163
7284
|
OneToMany27(() => EkycVerificationSession, (ekycVerificationSession) => ekycVerificationSession.user)
|
|
7164
7285
|
], User.prototype, "ekycVerificationSessions", 2);
|
|
7286
|
+
__decorateClass([
|
|
7287
|
+
OneToMany27(() => EkycVerificationLog, (ekycVerificationLog) => ekycVerificationLog.user)
|
|
7288
|
+
], User.prototype, "ekycVerificationLogs", 2);
|
|
7289
|
+
__decorateClass([
|
|
7290
|
+
OneToMany27(() => WalletTransaction, (walletTransaction) => walletTransaction.fromUser)
|
|
7291
|
+
], User.prototype, "sentTransactions", 2);
|
|
7165
7292
|
User = __decorateClass([
|
|
7166
|
-
|
|
7293
|
+
Entity81("users")
|
|
7167
7294
|
], User);
|
|
7168
7295
|
|
|
7169
7296
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -14334,6 +14461,103 @@ __decorateClass([
|
|
|
14334
14461
|
Type36(() => VendorDetailDto)
|
|
14335
14462
|
], AddVendorApiConfigurationDto.prototype, "vendorDetails", 2);
|
|
14336
14463
|
|
|
14464
|
+
// src/modules/didit/pattern/pattern.ts
|
|
14465
|
+
var DIDIT_PATTERN = {
|
|
14466
|
+
handleEkycCreateSession: "handle.ekyc.create.session",
|
|
14467
|
+
handleEkycWebhook: "handle.ekyc.webhook"
|
|
14468
|
+
};
|
|
14469
|
+
|
|
14470
|
+
// src/modules/didit/dto/create-ekyc-session.dto.ts
|
|
14471
|
+
import {
|
|
14472
|
+
IsNotEmpty as IsNotEmpty143,
|
|
14473
|
+
IsOptional as IsOptional97,
|
|
14474
|
+
IsUUID as IsUUID33,
|
|
14475
|
+
IsUrl as IsUrl8,
|
|
14476
|
+
IsString as IsString106,
|
|
14477
|
+
IsBoolean as IsBoolean26,
|
|
14478
|
+
IsEmail as IsEmail27,
|
|
14479
|
+
IsArray as IsArray37,
|
|
14480
|
+
ValidateNested as ValidateNested16
|
|
14481
|
+
} from "class-validator";
|
|
14482
|
+
import { Type as Type37 } from "class-transformer";
|
|
14483
|
+
var ContactDetailsDto = class {
|
|
14484
|
+
};
|
|
14485
|
+
__decorateClass([
|
|
14486
|
+
IsOptional97(),
|
|
14487
|
+
IsEmail27({}, { message: "email must be valid" })
|
|
14488
|
+
], ContactDetailsDto.prototype, "email", 2);
|
|
14489
|
+
__decorateClass([
|
|
14490
|
+
IsOptional97(),
|
|
14491
|
+
IsString106()
|
|
14492
|
+
], ContactDetailsDto.prototype, "email_lang", 2);
|
|
14493
|
+
__decorateClass([
|
|
14494
|
+
IsOptional97(),
|
|
14495
|
+
IsBoolean26()
|
|
14496
|
+
], ContactDetailsDto.prototype, "send_notification_emails", 2);
|
|
14497
|
+
__decorateClass([
|
|
14498
|
+
IsOptional97(),
|
|
14499
|
+
IsString106()
|
|
14500
|
+
], ContactDetailsDto.prototype, "phone", 2);
|
|
14501
|
+
var ExpectedDetailsDto = class {
|
|
14502
|
+
};
|
|
14503
|
+
__decorateClass([
|
|
14504
|
+
IsOptional97(),
|
|
14505
|
+
IsString106()
|
|
14506
|
+
], ExpectedDetailsDto.prototype, "first_name", 2);
|
|
14507
|
+
__decorateClass([
|
|
14508
|
+
IsOptional97(),
|
|
14509
|
+
IsString106()
|
|
14510
|
+
], ExpectedDetailsDto.prototype, "last_name", 2);
|
|
14511
|
+
// you can switch to IsDateString if strict
|
|
14512
|
+
__decorateClass([
|
|
14513
|
+
IsOptional97(),
|
|
14514
|
+
IsString106()
|
|
14515
|
+
], ExpectedDetailsDto.prototype, "date_of_birth", 2);
|
|
14516
|
+
__decorateClass([
|
|
14517
|
+
IsOptional97(),
|
|
14518
|
+
IsArray37(),
|
|
14519
|
+
IsString106({ each: true })
|
|
14520
|
+
], ExpectedDetailsDto.prototype, "expected_document_types", 2);
|
|
14521
|
+
var MetadataDto = class {
|
|
14522
|
+
};
|
|
14523
|
+
__decorateClass([
|
|
14524
|
+
IsOptional97(),
|
|
14525
|
+
IsString106()
|
|
14526
|
+
], MetadataDto.prototype, "plan", 2);
|
|
14527
|
+
__decorateClass([
|
|
14528
|
+
IsOptional97(),
|
|
14529
|
+
IsString106()
|
|
14530
|
+
], MetadataDto.prototype, "signup_source", 2);
|
|
14531
|
+
var CreateEkycSessionDto = class {
|
|
14532
|
+
};
|
|
14533
|
+
__decorateClass([
|
|
14534
|
+
IsNotEmpty143({ message: "workflowId is required." }),
|
|
14535
|
+
IsUUID33("4", { message: "workflowId must be a valid UUID" })
|
|
14536
|
+
], CreateEkycSessionDto.prototype, "workflowId", 2);
|
|
14537
|
+
__decorateClass([
|
|
14538
|
+
IsNotEmpty143({ message: "Callback URL is required." }),
|
|
14539
|
+
IsUrl8({}, { message: "callback must be a valid URL" })
|
|
14540
|
+
], CreateEkycSessionDto.prototype, "callback", 2);
|
|
14541
|
+
__decorateClass([
|
|
14542
|
+
IsOptional97(),
|
|
14543
|
+
IsString106()
|
|
14544
|
+
], CreateEkycSessionDto.prototype, "vendor_data", 2);
|
|
14545
|
+
__decorateClass([
|
|
14546
|
+
IsOptional97(),
|
|
14547
|
+
ValidateNested16(),
|
|
14548
|
+
Type37(() => MetadataDto)
|
|
14549
|
+
], CreateEkycSessionDto.prototype, "metadata", 2);
|
|
14550
|
+
__decorateClass([
|
|
14551
|
+
IsOptional97(),
|
|
14552
|
+
ValidateNested16(),
|
|
14553
|
+
Type37(() => ContactDetailsDto)
|
|
14554
|
+
], CreateEkycSessionDto.prototype, "contact_details", 2);
|
|
14555
|
+
__decorateClass([
|
|
14556
|
+
IsOptional97(),
|
|
14557
|
+
ValidateNested16(),
|
|
14558
|
+
Type37(() => ExpectedDetailsDto)
|
|
14559
|
+
], CreateEkycSessionDto.prototype, "expected_details", 2);
|
|
14560
|
+
|
|
14337
14561
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
14338
14562
|
import { config } from "dotenv";
|
|
14339
14563
|
import { Transport as Transport2 } from "@nestjs/microservices";
|
|
@@ -14695,11 +14919,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
14695
14919
|
};
|
|
14696
14920
|
|
|
14697
14921
|
// src/entities/sequence-generator.entity.ts
|
|
14698
|
-
import { Entity as
|
|
14922
|
+
import { Entity as Entity82, Column as Column83 } from "typeorm";
|
|
14699
14923
|
var SequenceGenerator = class extends BaseEntity {
|
|
14700
14924
|
};
|
|
14701
14925
|
__decorateClass([
|
|
14702
|
-
|
|
14926
|
+
Column83({
|
|
14703
14927
|
name: "module",
|
|
14704
14928
|
type: "varchar",
|
|
14705
14929
|
length: 50,
|
|
@@ -14708,7 +14932,7 @@ __decorateClass([
|
|
|
14708
14932
|
})
|
|
14709
14933
|
], SequenceGenerator.prototype, "module", 2);
|
|
14710
14934
|
__decorateClass([
|
|
14711
|
-
|
|
14935
|
+
Column83({
|
|
14712
14936
|
name: "prefix",
|
|
14713
14937
|
type: "varchar",
|
|
14714
14938
|
length: 10,
|
|
@@ -14717,7 +14941,7 @@ __decorateClass([
|
|
|
14717
14941
|
})
|
|
14718
14942
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
14719
14943
|
__decorateClass([
|
|
14720
|
-
|
|
14944
|
+
Column83({
|
|
14721
14945
|
name: "last_sequence",
|
|
14722
14946
|
type: "int",
|
|
14723
14947
|
nullable: false,
|
|
@@ -14725,7 +14949,7 @@ __decorateClass([
|
|
|
14725
14949
|
})
|
|
14726
14950
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
14727
14951
|
__decorateClass([
|
|
14728
|
-
|
|
14952
|
+
Column83({
|
|
14729
14953
|
name: "year",
|
|
14730
14954
|
type: "int",
|
|
14731
14955
|
nullable: true,
|
|
@@ -14733,11 +14957,11 @@ __decorateClass([
|
|
|
14733
14957
|
})
|
|
14734
14958
|
], SequenceGenerator.prototype, "year", 2);
|
|
14735
14959
|
SequenceGenerator = __decorateClass([
|
|
14736
|
-
|
|
14960
|
+
Entity82("sequence_generators")
|
|
14737
14961
|
], SequenceGenerator);
|
|
14738
14962
|
|
|
14739
14963
|
// src/entities/question.entity.ts
|
|
14740
|
-
import { Entity as
|
|
14964
|
+
import { Entity as Entity83, Column as Column84 } from "typeorm";
|
|
14741
14965
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
14742
14966
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
14743
14967
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -14746,16 +14970,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
14746
14970
|
var Question = class extends BaseEntity {
|
|
14747
14971
|
};
|
|
14748
14972
|
__decorateClass([
|
|
14749
|
-
|
|
14973
|
+
Column84({ name: "question", type: "varchar" })
|
|
14750
14974
|
], Question.prototype, "question", 2);
|
|
14751
14975
|
__decorateClass([
|
|
14752
|
-
|
|
14976
|
+
Column84({ name: "hint", type: "varchar", nullable: true })
|
|
14753
14977
|
], Question.prototype, "hint", 2);
|
|
14754
14978
|
__decorateClass([
|
|
14755
|
-
|
|
14979
|
+
Column84({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14756
14980
|
], Question.prototype, "slug", 2);
|
|
14757
14981
|
__decorateClass([
|
|
14758
|
-
|
|
14982
|
+
Column84({
|
|
14759
14983
|
name: "question_for",
|
|
14760
14984
|
type: "enum",
|
|
14761
14985
|
enum: QuestionFor,
|
|
@@ -14763,49 +14987,49 @@ __decorateClass([
|
|
|
14763
14987
|
})
|
|
14764
14988
|
], Question.prototype, "questionFor", 2);
|
|
14765
14989
|
__decorateClass([
|
|
14766
|
-
|
|
14990
|
+
Column84({ name: "type", type: "varchar", nullable: true })
|
|
14767
14991
|
], Question.prototype, "type", 2);
|
|
14768
14992
|
__decorateClass([
|
|
14769
|
-
|
|
14993
|
+
Column84({ name: "options", type: "jsonb", nullable: true })
|
|
14770
14994
|
], Question.prototype, "options", 2);
|
|
14771
14995
|
__decorateClass([
|
|
14772
|
-
|
|
14996
|
+
Column84({ name: "is_active", type: "boolean", default: false })
|
|
14773
14997
|
], Question.prototype, "isActive", 2);
|
|
14774
14998
|
Question = __decorateClass([
|
|
14775
|
-
|
|
14999
|
+
Entity83("questions")
|
|
14776
15000
|
], Question);
|
|
14777
15001
|
|
|
14778
15002
|
// src/entities/skill.entity.ts
|
|
14779
|
-
import { Entity as
|
|
15003
|
+
import { Entity as Entity84, Column as Column85 } from "typeorm";
|
|
14780
15004
|
var Skill = class extends BaseEntity {
|
|
14781
15005
|
};
|
|
14782
15006
|
__decorateClass([
|
|
14783
|
-
|
|
15007
|
+
Column85({ name: "name", type: "varchar", nullable: true })
|
|
14784
15008
|
], Skill.prototype, "name", 2);
|
|
14785
15009
|
__decorateClass([
|
|
14786
|
-
|
|
15010
|
+
Column85({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14787
15011
|
], Skill.prototype, "slug", 2);
|
|
14788
15012
|
__decorateClass([
|
|
14789
|
-
|
|
15013
|
+
Column85({ name: "is_active", type: "boolean", default: false })
|
|
14790
15014
|
], Skill.prototype, "isActive", 2);
|
|
14791
15015
|
Skill = __decorateClass([
|
|
14792
|
-
|
|
15016
|
+
Entity84("skills")
|
|
14793
15017
|
], Skill);
|
|
14794
15018
|
|
|
14795
15019
|
// src/entities/skill-catalog.entity.ts
|
|
14796
15020
|
import {
|
|
14797
|
-
Entity as
|
|
14798
|
-
Column as
|
|
15021
|
+
Entity as Entity85,
|
|
15022
|
+
Column as Column86,
|
|
14799
15023
|
Index as Index72
|
|
14800
15024
|
} from "typeorm";
|
|
14801
15025
|
var SkillCatalog = class extends BaseEntity {
|
|
14802
15026
|
};
|
|
14803
15027
|
__decorateClass([
|
|
14804
|
-
|
|
15028
|
+
Column86({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
14805
15029
|
Index72()
|
|
14806
15030
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
14807
15031
|
__decorateClass([
|
|
14808
|
-
|
|
15032
|
+
Column86({
|
|
14809
15033
|
name: "aliases",
|
|
14810
15034
|
type: "text",
|
|
14811
15035
|
array: true,
|
|
@@ -14813,20 +15037,20 @@ __decorateClass([
|
|
|
14813
15037
|
})
|
|
14814
15038
|
], SkillCatalog.prototype, "aliases", 2);
|
|
14815
15039
|
__decorateClass([
|
|
14816
|
-
|
|
15040
|
+
Column86({
|
|
14817
15041
|
name: "variations",
|
|
14818
15042
|
type: "jsonb",
|
|
14819
15043
|
default: "{}"
|
|
14820
15044
|
})
|
|
14821
15045
|
], SkillCatalog.prototype, "variations", 2);
|
|
14822
15046
|
__decorateClass([
|
|
14823
|
-
|
|
15047
|
+
Column86({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
14824
15048
|
], SkillCatalog.prototype, "category", 2);
|
|
14825
15049
|
__decorateClass([
|
|
14826
|
-
|
|
15050
|
+
Column86({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
14827
15051
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
14828
15052
|
__decorateClass([
|
|
14829
|
-
|
|
15053
|
+
Column86({
|
|
14830
15054
|
name: "related_skills",
|
|
14831
15055
|
type: "text",
|
|
14832
15056
|
array: true,
|
|
@@ -14834,70 +15058,70 @@ __decorateClass([
|
|
|
14834
15058
|
})
|
|
14835
15059
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
14836
15060
|
__decorateClass([
|
|
14837
|
-
|
|
15061
|
+
Column86({ name: "usage_count", type: "integer", default: 0 }),
|
|
14838
15062
|
Index72()
|
|
14839
15063
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
14840
15064
|
__decorateClass([
|
|
14841
|
-
|
|
15065
|
+
Column86({ name: "is_verified", type: "boolean", default: false })
|
|
14842
15066
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
14843
15067
|
__decorateClass([
|
|
14844
|
-
|
|
15068
|
+
Column86({ name: "first_seen_date", type: "date" })
|
|
14845
15069
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
14846
15070
|
__decorateClass([
|
|
14847
|
-
|
|
15071
|
+
Column86({ name: "last_updated_date", type: "date" })
|
|
14848
15072
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
14849
15073
|
__decorateClass([
|
|
14850
|
-
|
|
15074
|
+
Column86({
|
|
14851
15075
|
name: "search_vector",
|
|
14852
15076
|
type: "tsvector",
|
|
14853
15077
|
nullable: true
|
|
14854
15078
|
})
|
|
14855
15079
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
14856
15080
|
SkillCatalog = __decorateClass([
|
|
14857
|
-
|
|
15081
|
+
Entity85("skill_catalogs")
|
|
14858
15082
|
], SkillCatalog);
|
|
14859
15083
|
|
|
14860
15084
|
// src/entities/job-role.entity.ts
|
|
14861
|
-
import { Entity as
|
|
15085
|
+
import { Entity as Entity86, Column as Column87 } from "typeorm";
|
|
14862
15086
|
var JobRoles = class extends BaseEntity {
|
|
14863
15087
|
};
|
|
14864
15088
|
__decorateClass([
|
|
14865
|
-
|
|
15089
|
+
Column87({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14866
15090
|
], JobRoles.prototype, "slug", 2);
|
|
14867
15091
|
__decorateClass([
|
|
14868
|
-
|
|
15092
|
+
Column87({ name: "name", type: "varchar", nullable: true })
|
|
14869
15093
|
], JobRoles.prototype, "name", 2);
|
|
14870
15094
|
__decorateClass([
|
|
14871
|
-
|
|
15095
|
+
Column87({ name: "is_active", type: "boolean", default: true })
|
|
14872
15096
|
], JobRoles.prototype, "isActive", 2);
|
|
14873
15097
|
JobRoles = __decorateClass([
|
|
14874
|
-
|
|
15098
|
+
Entity86("job_roles")
|
|
14875
15099
|
], JobRoles);
|
|
14876
15100
|
|
|
14877
15101
|
// src/entities/cms.entity.ts
|
|
14878
|
-
import { Entity as
|
|
15102
|
+
import { Entity as Entity87, Column as Column88 } from "typeorm";
|
|
14879
15103
|
var Cms = class extends BaseEntity {
|
|
14880
15104
|
};
|
|
14881
15105
|
__decorateClass([
|
|
14882
|
-
|
|
15106
|
+
Column88({ name: "title", type: "varchar", nullable: true })
|
|
14883
15107
|
], Cms.prototype, "title", 2);
|
|
14884
15108
|
__decorateClass([
|
|
14885
|
-
|
|
15109
|
+
Column88({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14886
15110
|
], Cms.prototype, "slug", 2);
|
|
14887
15111
|
__decorateClass([
|
|
14888
|
-
|
|
15112
|
+
Column88({ name: "content", type: "varchar", nullable: true })
|
|
14889
15113
|
], Cms.prototype, "content", 2);
|
|
14890
15114
|
__decorateClass([
|
|
14891
|
-
|
|
15115
|
+
Column88({ name: "is_active", type: "boolean", default: true })
|
|
14892
15116
|
], Cms.prototype, "isActive", 2);
|
|
14893
15117
|
Cms = __decorateClass([
|
|
14894
|
-
|
|
15118
|
+
Entity87("cms")
|
|
14895
15119
|
], Cms);
|
|
14896
15120
|
|
|
14897
15121
|
// src/entities/lead.entity.ts
|
|
14898
15122
|
import {
|
|
14899
|
-
Entity as
|
|
14900
|
-
Column as
|
|
15123
|
+
Entity as Entity88,
|
|
15124
|
+
Column as Column89
|
|
14901
15125
|
} from "typeorm";
|
|
14902
15126
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
14903
15127
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -14907,22 +15131,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
14907
15131
|
var Lead = class extends BaseEntity {
|
|
14908
15132
|
};
|
|
14909
15133
|
__decorateClass([
|
|
14910
|
-
|
|
15134
|
+
Column89({ name: "name", type: "varchar", nullable: true })
|
|
14911
15135
|
], Lead.prototype, "name", 2);
|
|
14912
15136
|
__decorateClass([
|
|
14913
|
-
|
|
15137
|
+
Column89({ name: "mobile_code", type: "varchar", nullable: true })
|
|
14914
15138
|
], Lead.prototype, "mobileCode", 2);
|
|
14915
15139
|
__decorateClass([
|
|
14916
|
-
|
|
15140
|
+
Column89({ name: "mobile", type: "varchar", nullable: true })
|
|
14917
15141
|
], Lead.prototype, "mobile", 2);
|
|
14918
15142
|
__decorateClass([
|
|
14919
|
-
|
|
15143
|
+
Column89({ name: "email", type: "varchar", nullable: true })
|
|
14920
15144
|
], Lead.prototype, "email", 2);
|
|
14921
15145
|
__decorateClass([
|
|
14922
|
-
|
|
15146
|
+
Column89({ name: "description", type: "varchar", nullable: true })
|
|
14923
15147
|
], Lead.prototype, "description", 2);
|
|
14924
15148
|
__decorateClass([
|
|
14925
|
-
|
|
15149
|
+
Column89({
|
|
14926
15150
|
name: "category",
|
|
14927
15151
|
type: "enum",
|
|
14928
15152
|
enum: CategoryEmum,
|
|
@@ -14930,7 +15154,7 @@ __decorateClass([
|
|
|
14930
15154
|
})
|
|
14931
15155
|
], Lead.prototype, "category", 2);
|
|
14932
15156
|
Lead = __decorateClass([
|
|
14933
|
-
|
|
15157
|
+
Entity88("leads")
|
|
14934
15158
|
], Lead);
|
|
14935
15159
|
|
|
14936
15160
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -15171,7 +15395,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
15171
15395
|
], ClientFreelancerRecommendation);
|
|
15172
15396
|
|
|
15173
15397
|
// src/entities/commission.entity.ts
|
|
15174
|
-
import { Entity as
|
|
15398
|
+
import { Entity as Entity89, Column as Column90 } from "typeorm";
|
|
15175
15399
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
15176
15400
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
15177
15401
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -15180,7 +15404,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
15180
15404
|
var Commission = class extends BaseEntity {
|
|
15181
15405
|
};
|
|
15182
15406
|
__decorateClass([
|
|
15183
|
-
|
|
15407
|
+
Column90({
|
|
15184
15408
|
name: "freelancer_commission_type",
|
|
15185
15409
|
type: "enum",
|
|
15186
15410
|
enum: CommissionTypeEnum,
|
|
@@ -15188,10 +15412,10 @@ __decorateClass([
|
|
|
15188
15412
|
})
|
|
15189
15413
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
15190
15414
|
__decorateClass([
|
|
15191
|
-
|
|
15415
|
+
Column90({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
15192
15416
|
], Commission.prototype, "freelancerCommission", 2);
|
|
15193
15417
|
__decorateClass([
|
|
15194
|
-
|
|
15418
|
+
Column90({
|
|
15195
15419
|
name: "client_commission_type",
|
|
15196
15420
|
type: "enum",
|
|
15197
15421
|
enum: CommissionTypeEnum,
|
|
@@ -15199,58 +15423,58 @@ __decorateClass([
|
|
|
15199
15423
|
})
|
|
15200
15424
|
], Commission.prototype, "clientCommissionType", 2);
|
|
15201
15425
|
__decorateClass([
|
|
15202
|
-
|
|
15426
|
+
Column90({ name: "client_commission", type: "integer", default: 0 })
|
|
15203
15427
|
], Commission.prototype, "clientCommission", 2);
|
|
15204
15428
|
Commission = __decorateClass([
|
|
15205
|
-
|
|
15429
|
+
Entity89("commissions")
|
|
15206
15430
|
], Commission);
|
|
15207
15431
|
|
|
15208
15432
|
// src/entities/calendly-meeting-log.entity.ts
|
|
15209
15433
|
import {
|
|
15210
|
-
Entity as
|
|
15211
|
-
Column as
|
|
15434
|
+
Entity as Entity90,
|
|
15435
|
+
Column as Column91,
|
|
15212
15436
|
Index as Index73
|
|
15213
15437
|
} from "typeorm";
|
|
15214
15438
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
15215
15439
|
};
|
|
15216
15440
|
__decorateClass([
|
|
15217
|
-
|
|
15441
|
+
Column91({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
15218
15442
|
Index73()
|
|
15219
15443
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
15220
15444
|
__decorateClass([
|
|
15221
|
-
|
|
15445
|
+
Column91({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
15222
15446
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
15223
15447
|
__decorateClass([
|
|
15224
|
-
|
|
15448
|
+
Column91({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
15225
15449
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
15226
15450
|
CalendlyMeetingLog = __decorateClass([
|
|
15227
|
-
|
|
15451
|
+
Entity90("calendly_meeting_logs")
|
|
15228
15452
|
], CalendlyMeetingLog);
|
|
15229
15453
|
|
|
15230
15454
|
// src/entities/zoom-meeting-log.entity.ts
|
|
15231
15455
|
import {
|
|
15232
|
-
Entity as
|
|
15233
|
-
Column as
|
|
15456
|
+
Entity as Entity91,
|
|
15457
|
+
Column as Column92,
|
|
15234
15458
|
Index as Index74
|
|
15235
15459
|
} from "typeorm";
|
|
15236
15460
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
15237
15461
|
};
|
|
15238
15462
|
__decorateClass([
|
|
15239
|
-
|
|
15463
|
+
Column92({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
15240
15464
|
Index74()
|
|
15241
15465
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
15242
15466
|
__decorateClass([
|
|
15243
|
-
|
|
15467
|
+
Column92({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
15244
15468
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
15245
15469
|
__decorateClass([
|
|
15246
|
-
|
|
15470
|
+
Column92({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
15247
15471
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
15248
15472
|
ZoomMeetingLog = __decorateClass([
|
|
15249
|
-
|
|
15473
|
+
Entity91("zoom_meeting_logs")
|
|
15250
15474
|
], ZoomMeetingLog);
|
|
15251
15475
|
|
|
15252
15476
|
// src/entities/docuseal.entity.ts
|
|
15253
|
-
import { Entity as
|
|
15477
|
+
import { Entity as Entity92, Column as Column93, Index as Index75 } from "typeorm";
|
|
15254
15478
|
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
15255
15479
|
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
15256
15480
|
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
@@ -15260,56 +15484,56 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
|
15260
15484
|
var DocuSeal = class extends BaseEntity {
|
|
15261
15485
|
};
|
|
15262
15486
|
__decorateClass([
|
|
15263
|
-
|
|
15487
|
+
Column93({ name: "reference_id", type: "integer", nullable: false }),
|
|
15264
15488
|
Index75()
|
|
15265
15489
|
], DocuSeal.prototype, "referenceId", 2);
|
|
15266
15490
|
__decorateClass([
|
|
15267
|
-
|
|
15491
|
+
Column93({ name: "submitter_id", type: "integer", nullable: true }),
|
|
15268
15492
|
Index75()
|
|
15269
15493
|
], DocuSeal.prototype, "submitterId", 2);
|
|
15270
15494
|
__decorateClass([
|
|
15271
|
-
|
|
15495
|
+
Column93({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
15272
15496
|
], DocuSeal.prototype, "submitterResponse", 2);
|
|
15273
15497
|
__decorateClass([
|
|
15274
|
-
|
|
15498
|
+
Column93({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
15275
15499
|
], DocuSeal.prototype, "webhookResponse", 2);
|
|
15276
15500
|
__decorateClass([
|
|
15277
|
-
|
|
15501
|
+
Column93({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
15278
15502
|
], DocuSeal.prototype, "type", 2);
|
|
15279
15503
|
DocuSeal = __decorateClass([
|
|
15280
|
-
|
|
15504
|
+
Entity92("docuseal")
|
|
15281
15505
|
], DocuSeal);
|
|
15282
15506
|
|
|
15283
15507
|
// src/entities/stripe-logs.entity.ts
|
|
15284
|
-
import { Entity as
|
|
15508
|
+
import { Entity as Entity93, Column as Column94 } from "typeorm";
|
|
15285
15509
|
var StripeLog = class extends BaseEntity {
|
|
15286
15510
|
};
|
|
15287
15511
|
__decorateClass([
|
|
15288
|
-
|
|
15512
|
+
Column94({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
15289
15513
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
15290
15514
|
__decorateClass([
|
|
15291
|
-
|
|
15515
|
+
Column94({ name: "event_type", type: "varchar", nullable: true })
|
|
15292
15516
|
], StripeLog.prototype, "eventType", 2);
|
|
15293
15517
|
__decorateClass([
|
|
15294
|
-
|
|
15518
|
+
Column94({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
15295
15519
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
15296
15520
|
__decorateClass([
|
|
15297
|
-
|
|
15521
|
+
Column94({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
15298
15522
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
15299
15523
|
StripeLog = __decorateClass([
|
|
15300
|
-
|
|
15524
|
+
Entity93("stripe_logs")
|
|
15301
15525
|
], StripeLog);
|
|
15302
15526
|
|
|
15303
15527
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
15304
15528
|
import {
|
|
15305
|
-
Entity as
|
|
15306
|
-
Column as
|
|
15529
|
+
Entity as Entity94,
|
|
15530
|
+
Column as Column95,
|
|
15307
15531
|
Index as Index76
|
|
15308
15532
|
} from "typeorm";
|
|
15309
15533
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
15310
15534
|
};
|
|
15311
15535
|
__decorateClass([
|
|
15312
|
-
|
|
15536
|
+
Column95({
|
|
15313
15537
|
type: "varchar",
|
|
15314
15538
|
length: 100,
|
|
15315
15539
|
unique: true,
|
|
@@ -15318,42 +15542,42 @@ __decorateClass([
|
|
|
15318
15542
|
Index76()
|
|
15319
15543
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
15320
15544
|
__decorateClass([
|
|
15321
|
-
|
|
15545
|
+
Column95({
|
|
15322
15546
|
type: "jsonb",
|
|
15323
15547
|
comment: "JSON object containing weight values",
|
|
15324
15548
|
nullable: true
|
|
15325
15549
|
})
|
|
15326
15550
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
15327
15551
|
__decorateClass([
|
|
15328
|
-
|
|
15552
|
+
Column95({ name: "is_active", type: "boolean", default: true })
|
|
15329
15553
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
15330
15554
|
RecommendationWeightageConfig = __decorateClass([
|
|
15331
|
-
|
|
15555
|
+
Entity94("recommendation_weightage_configs")
|
|
15332
15556
|
], RecommendationWeightageConfig);
|
|
15333
15557
|
|
|
15334
15558
|
// src/entities/global-setting.entity.ts
|
|
15335
15559
|
import {
|
|
15336
|
-
Entity as
|
|
15337
|
-
Column as
|
|
15560
|
+
Entity as Entity95,
|
|
15561
|
+
Column as Column96,
|
|
15338
15562
|
Index as Index77
|
|
15339
15563
|
} from "typeorm";
|
|
15340
15564
|
var GlobalSetting = class extends BaseEntity {
|
|
15341
15565
|
};
|
|
15342
15566
|
__decorateClass([
|
|
15343
|
-
|
|
15567
|
+
Column96({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
15344
15568
|
], GlobalSetting.prototype, "key", 2);
|
|
15345
15569
|
__decorateClass([
|
|
15346
|
-
|
|
15570
|
+
Column96({ name: "value", type: "text", nullable: false })
|
|
15347
15571
|
], GlobalSetting.prototype, "value", 2);
|
|
15348
15572
|
GlobalSetting = __decorateClass([
|
|
15349
|
-
|
|
15573
|
+
Entity95("global_settings"),
|
|
15350
15574
|
Index77(["key"], { unique: true })
|
|
15351
15575
|
], GlobalSetting);
|
|
15352
15576
|
|
|
15353
15577
|
// src/entities/plan.entity.ts
|
|
15354
15578
|
import {
|
|
15355
|
-
Entity as
|
|
15356
|
-
Column as
|
|
15579
|
+
Entity as Entity98,
|
|
15580
|
+
Column as Column99,
|
|
15357
15581
|
Index as Index80,
|
|
15358
15582
|
Check as Check4,
|
|
15359
15583
|
BeforeInsert as BeforeInsert2,
|
|
@@ -15363,10 +15587,10 @@ import {
|
|
|
15363
15587
|
|
|
15364
15588
|
// src/entities/plan-feature.entity.ts
|
|
15365
15589
|
import {
|
|
15366
|
-
Entity as
|
|
15367
|
-
Column as
|
|
15368
|
-
ManyToOne as
|
|
15369
|
-
JoinColumn as
|
|
15590
|
+
Entity as Entity96,
|
|
15591
|
+
Column as Column97,
|
|
15592
|
+
ManyToOne as ManyToOne78,
|
|
15593
|
+
JoinColumn as JoinColumn79,
|
|
15370
15594
|
Index as Index78,
|
|
15371
15595
|
Check as Check2
|
|
15372
15596
|
} from "typeorm";
|
|
@@ -15374,34 +15598,34 @@ var PlanFeature = class extends BaseEntity {
|
|
|
15374
15598
|
};
|
|
15375
15599
|
// individual index to find features by plan
|
|
15376
15600
|
__decorateClass([
|
|
15377
|
-
|
|
15601
|
+
Column97({ name: "plan_id", type: "integer", nullable: false }),
|
|
15378
15602
|
Index78()
|
|
15379
15603
|
], PlanFeature.prototype, "planId", 2);
|
|
15380
15604
|
__decorateClass([
|
|
15381
|
-
|
|
15605
|
+
ManyToOne78(() => Plan, (plan) => plan.features, {
|
|
15382
15606
|
onDelete: "CASCADE",
|
|
15383
15607
|
nullable: false
|
|
15384
15608
|
}),
|
|
15385
|
-
|
|
15609
|
+
JoinColumn79({ name: "plan_id" })
|
|
15386
15610
|
], PlanFeature.prototype, "plan", 2);
|
|
15387
15611
|
__decorateClass([
|
|
15388
|
-
|
|
15612
|
+
Column97({ name: "name", type: "varchar", length: 200 })
|
|
15389
15613
|
], PlanFeature.prototype, "name", 2);
|
|
15390
15614
|
__decorateClass([
|
|
15391
|
-
|
|
15615
|
+
Column97({ name: "slug", type: "varchar", length: 100 }),
|
|
15392
15616
|
Index78()
|
|
15393
15617
|
], PlanFeature.prototype, "slug", 2);
|
|
15394
15618
|
__decorateClass([
|
|
15395
|
-
|
|
15619
|
+
Column97({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
15396
15620
|
], PlanFeature.prototype, "tooltip", 2);
|
|
15397
15621
|
__decorateClass([
|
|
15398
|
-
|
|
15622
|
+
Column97({ name: "sort_order", type: "smallint", default: 0 })
|
|
15399
15623
|
], PlanFeature.prototype, "sortOrder", 2);
|
|
15400
15624
|
__decorateClass([
|
|
15401
|
-
|
|
15625
|
+
Column97({ name: "is_active", type: "boolean", default: true })
|
|
15402
15626
|
], PlanFeature.prototype, "isActive", 2);
|
|
15403
15627
|
PlanFeature = __decorateClass([
|
|
15404
|
-
|
|
15628
|
+
Entity96("plan_features"),
|
|
15405
15629
|
Index78("idx_plan_features_plan_id", ["planId"]),
|
|
15406
15630
|
Index78("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
15407
15631
|
Check2("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
@@ -15409,10 +15633,10 @@ PlanFeature = __decorateClass([
|
|
|
15409
15633
|
|
|
15410
15634
|
// src/entities/plan-pricing.entity.ts
|
|
15411
15635
|
import {
|
|
15412
|
-
Entity as
|
|
15413
|
-
Column as
|
|
15414
|
-
ManyToOne as
|
|
15415
|
-
JoinColumn as
|
|
15636
|
+
Entity as Entity97,
|
|
15637
|
+
Column as Column98,
|
|
15638
|
+
ManyToOne as ManyToOne79,
|
|
15639
|
+
JoinColumn as JoinColumn80,
|
|
15416
15640
|
Index as Index79,
|
|
15417
15641
|
Unique,
|
|
15418
15642
|
Check as Check3,
|
|
@@ -15473,53 +15697,53 @@ var PlanPricing = class extends BaseEntity {
|
|
|
15473
15697
|
};
|
|
15474
15698
|
// individual index to find pricing by plan
|
|
15475
15699
|
__decorateClass([
|
|
15476
|
-
|
|
15700
|
+
Column98({ name: "plan_id", type: "integer", nullable: false }),
|
|
15477
15701
|
Index79()
|
|
15478
15702
|
], PlanPricing.prototype, "planId", 2);
|
|
15479
15703
|
__decorateClass([
|
|
15480
|
-
|
|
15704
|
+
ManyToOne79(() => Plan, (plan) => plan.pricing, {
|
|
15481
15705
|
onDelete: "CASCADE",
|
|
15482
15706
|
nullable: false
|
|
15483
15707
|
}),
|
|
15484
|
-
|
|
15708
|
+
JoinColumn80({ name: "plan_id" })
|
|
15485
15709
|
], PlanPricing.prototype, "plan", 2);
|
|
15486
15710
|
__decorateClass([
|
|
15487
|
-
|
|
15711
|
+
Column98({
|
|
15488
15712
|
name: "billing_cycle",
|
|
15489
15713
|
type: "enum",
|
|
15490
15714
|
enum: PlanPricingBillingCycleEnum
|
|
15491
15715
|
})
|
|
15492
15716
|
], PlanPricing.prototype, "billingCycle", 2);
|
|
15493
15717
|
__decorateClass([
|
|
15494
|
-
|
|
15718
|
+
Column98({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
15495
15719
|
], PlanPricing.prototype, "price", 2);
|
|
15496
15720
|
__decorateClass([
|
|
15497
|
-
|
|
15721
|
+
Column98({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
15498
15722
|
], PlanPricing.prototype, "originalPrice", 2);
|
|
15499
15723
|
__decorateClass([
|
|
15500
|
-
|
|
15724
|
+
Column98({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
15501
15725
|
], PlanPricing.prototype, "discountPct", 2);
|
|
15502
15726
|
__decorateClass([
|
|
15503
|
-
|
|
15727
|
+
Column98({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
15504
15728
|
], PlanPricing.prototype, "currency", 2);
|
|
15505
15729
|
__decorateClass([
|
|
15506
|
-
|
|
15730
|
+
Column98({ name: "is_free", type: "boolean", default: false })
|
|
15507
15731
|
], PlanPricing.prototype, "isFree", 2);
|
|
15508
15732
|
__decorateClass([
|
|
15509
|
-
|
|
15733
|
+
Column98({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
|
|
15510
15734
|
], PlanPricing.prototype, "stripePriceId", 2);
|
|
15511
15735
|
__decorateClass([
|
|
15512
|
-
|
|
15736
|
+
Column98({ name: "trial_days", type: "smallint", default: 0 })
|
|
15513
15737
|
], PlanPricing.prototype, "trialDays", 2);
|
|
15514
15738
|
__decorateClass([
|
|
15515
|
-
|
|
15739
|
+
Column98({ name: "is_active", type: "boolean", default: true })
|
|
15516
15740
|
], PlanPricing.prototype, "isActive", 2);
|
|
15517
15741
|
__decorateClass([
|
|
15518
15742
|
BeforeInsert(),
|
|
15519
15743
|
BeforeUpdate()
|
|
15520
15744
|
], PlanPricing.prototype, "sanitize", 1);
|
|
15521
15745
|
PlanPricing = __decorateClass([
|
|
15522
|
-
|
|
15746
|
+
Entity97("plan_pricings"),
|
|
15523
15747
|
Unique("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
15524
15748
|
Index79("idx_plan_pricings_plan_id", ["planId"]),
|
|
15525
15749
|
Index79("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
@@ -15544,22 +15768,22 @@ var Plan = class extends BaseEntity {
|
|
|
15544
15768
|
}
|
|
15545
15769
|
};
|
|
15546
15770
|
__decorateClass([
|
|
15547
|
-
|
|
15771
|
+
Column99({ name: "name", type: "varchar", length: 100 })
|
|
15548
15772
|
], Plan.prototype, "name", 2);
|
|
15549
15773
|
__decorateClass([
|
|
15550
|
-
|
|
15774
|
+
Column99({ name: "slug", type: "varchar", length: 100 })
|
|
15551
15775
|
], Plan.prototype, "slug", 2);
|
|
15552
15776
|
__decorateClass([
|
|
15553
|
-
|
|
15777
|
+
Column99({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
15554
15778
|
], Plan.prototype, "badgeLabel", 2);
|
|
15555
15779
|
__decorateClass([
|
|
15556
|
-
|
|
15780
|
+
Column99({ name: "sort_order", type: "smallint", default: 0 })
|
|
15557
15781
|
], Plan.prototype, "sortOrder", 2);
|
|
15558
15782
|
__decorateClass([
|
|
15559
|
-
|
|
15783
|
+
Column99({ name: "is_active", type: "boolean", default: true })
|
|
15560
15784
|
], Plan.prototype, "isActive", 2);
|
|
15561
15785
|
__decorateClass([
|
|
15562
|
-
|
|
15786
|
+
Column99({
|
|
15563
15787
|
name: "plan_type",
|
|
15564
15788
|
type: "enum",
|
|
15565
15789
|
enum: PlanTypeEnum,
|
|
@@ -15567,10 +15791,10 @@ __decorateClass([
|
|
|
15567
15791
|
})
|
|
15568
15792
|
], Plan.prototype, "planType", 2);
|
|
15569
15793
|
__decorateClass([
|
|
15570
|
-
|
|
15794
|
+
Column99({ name: "metadata", type: "jsonb", default: {} })
|
|
15571
15795
|
], Plan.prototype, "metadata", 2);
|
|
15572
15796
|
__decorateClass([
|
|
15573
|
-
|
|
15797
|
+
Column99({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
|
|
15574
15798
|
], Plan.prototype, "stripeProductId", 2);
|
|
15575
15799
|
__decorateClass([
|
|
15576
15800
|
BeforeInsert2(),
|
|
@@ -15587,7 +15811,7 @@ __decorateClass([
|
|
|
15587
15811
|
})
|
|
15588
15812
|
], Plan.prototype, "pricing", 2);
|
|
15589
15813
|
Plan = __decorateClass([
|
|
15590
|
-
|
|
15814
|
+
Entity98("plans"),
|
|
15591
15815
|
Index80("idx_plans_slug_plan_type", ["slug", "planType"], {
|
|
15592
15816
|
unique: true,
|
|
15593
15817
|
where: '"is_deleted" IS FALSE'
|
|
@@ -15598,8 +15822,8 @@ Plan = __decorateClass([
|
|
|
15598
15822
|
|
|
15599
15823
|
// src/entities/subscription-feature.entity.ts
|
|
15600
15824
|
import {
|
|
15601
|
-
Entity as
|
|
15602
|
-
Column as
|
|
15825
|
+
Entity as Entity99,
|
|
15826
|
+
Column as Column100,
|
|
15603
15827
|
Check as Check5,
|
|
15604
15828
|
Index as Index81,
|
|
15605
15829
|
BeforeInsert as BeforeInsert3,
|
|
@@ -15619,33 +15843,33 @@ var SubscriptionFeature = class extends BaseEntity {
|
|
|
15619
15843
|
}
|
|
15620
15844
|
};
|
|
15621
15845
|
__decorateClass([
|
|
15622
|
-
|
|
15846
|
+
Column100({ name: "name", type: "varchar", length: 200 })
|
|
15623
15847
|
], SubscriptionFeature.prototype, "name", 2);
|
|
15624
15848
|
__decorateClass([
|
|
15625
|
-
|
|
15849
|
+
Column100({ name: "slug", type: "varchar", length: 100 })
|
|
15626
15850
|
], SubscriptionFeature.prototype, "slug", 2);
|
|
15627
15851
|
__decorateClass([
|
|
15628
|
-
|
|
15852
|
+
Column100({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
15629
15853
|
], SubscriptionFeature.prototype, "tooltip", 2);
|
|
15630
15854
|
__decorateClass([
|
|
15631
|
-
|
|
15855
|
+
Column100({ name: "sort_order", type: "smallint", default: 0 })
|
|
15632
15856
|
], SubscriptionFeature.prototype, "sortOrder", 2);
|
|
15633
15857
|
__decorateClass([
|
|
15634
|
-
|
|
15858
|
+
Column100({ name: "is_active", type: "boolean", default: true })
|
|
15635
15859
|
], SubscriptionFeature.prototype, "isActive", 2);
|
|
15636
15860
|
__decorateClass([
|
|
15637
15861
|
BeforeInsert3(),
|
|
15638
15862
|
BeforeUpdate3()
|
|
15639
15863
|
], SubscriptionFeature.prototype, "createSlug", 1);
|
|
15640
15864
|
SubscriptionFeature = __decorateClass([
|
|
15641
|
-
|
|
15865
|
+
Entity99("subscription_features"),
|
|
15642
15866
|
Index81("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
15643
15867
|
Index81("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
|
|
15644
15868
|
Check5("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
|
|
15645
15869
|
], SubscriptionFeature);
|
|
15646
15870
|
|
|
15647
15871
|
// src/entities/user-subscription-transaction.entity.ts
|
|
15648
|
-
import { Entity as
|
|
15872
|
+
import { Entity as Entity100, Column as Column101, Index as Index82, ManyToOne as ManyToOne80, JoinColumn as JoinColumn81 } from "typeorm";
|
|
15649
15873
|
var UserSubscriptionTransactionTypeEnum = /* @__PURE__ */ ((UserSubscriptionTransactionTypeEnum2) => {
|
|
15650
15874
|
UserSubscriptionTransactionTypeEnum2["SUBSCRIPTION_INITIATED"] = "SUBSCRIPTION_INITIATED";
|
|
15651
15875
|
UserSubscriptionTransactionTypeEnum2["CHECKOUT_SESSION_CREATED"] = "CHECKOUT_SESSION_CREATED";
|
|
@@ -15663,25 +15887,25 @@ var UserSubscriptionTransactionStatusEnum = /* @__PURE__ */ ((UserSubscriptionTr
|
|
|
15663
15887
|
var UserSubscriptionTransaction = class extends BaseEntity {
|
|
15664
15888
|
};
|
|
15665
15889
|
__decorateClass([
|
|
15666
|
-
|
|
15890
|
+
Column101({ name: "user_subscription_id", type: "integer", nullable: false }),
|
|
15667
15891
|
Index82()
|
|
15668
15892
|
], UserSubscriptionTransaction.prototype, "userSubscriptionId", 2);
|
|
15669
15893
|
__decorateClass([
|
|
15670
|
-
|
|
15671
|
-
|
|
15894
|
+
ManyToOne80(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
|
|
15895
|
+
JoinColumn81({ name: "user_subscription_id" })
|
|
15672
15896
|
], UserSubscriptionTransaction.prototype, "userSubscription", 2);
|
|
15673
15897
|
__decorateClass([
|
|
15674
|
-
|
|
15898
|
+
Column101({ name: "user_id", type: "integer", nullable: false })
|
|
15675
15899
|
], UserSubscriptionTransaction.prototype, "userId", 2);
|
|
15676
15900
|
__decorateClass([
|
|
15677
|
-
|
|
15901
|
+
Column101({
|
|
15678
15902
|
name: "type",
|
|
15679
15903
|
type: "enum",
|
|
15680
15904
|
enum: UserSubscriptionTransactionTypeEnum
|
|
15681
15905
|
})
|
|
15682
15906
|
], UserSubscriptionTransaction.prototype, "type", 2);
|
|
15683
15907
|
__decorateClass([
|
|
15684
|
-
|
|
15908
|
+
Column101({
|
|
15685
15909
|
name: "status",
|
|
15686
15910
|
type: "enum",
|
|
15687
15911
|
enum: UserSubscriptionTransactionStatusEnum,
|
|
@@ -15689,133 +15913,73 @@ __decorateClass([
|
|
|
15689
15913
|
})
|
|
15690
15914
|
], UserSubscriptionTransaction.prototype, "status", 2);
|
|
15691
15915
|
__decorateClass([
|
|
15692
|
-
|
|
15916
|
+
Column101({ name: "plan_name", type: "text", nullable: true })
|
|
15693
15917
|
], UserSubscriptionTransaction.prototype, "planName", 2);
|
|
15694
15918
|
__decorateClass([
|
|
15695
|
-
|
|
15919
|
+
Column101({ name: "amount_minor", type: "integer", nullable: true })
|
|
15696
15920
|
], UserSubscriptionTransaction.prototype, "amountMinor", 2);
|
|
15697
15921
|
__decorateClass([
|
|
15698
|
-
|
|
15922
|
+
Column101({ name: "currency", type: "varchar", length: 3, nullable: true })
|
|
15699
15923
|
], UserSubscriptionTransaction.prototype, "currency", 2);
|
|
15700
15924
|
__decorateClass([
|
|
15701
|
-
|
|
15925
|
+
Column101({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
|
|
15702
15926
|
], UserSubscriptionTransaction.prototype, "stripeEventId", 2);
|
|
15703
15927
|
__decorateClass([
|
|
15704
|
-
|
|
15928
|
+
Column101({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
|
|
15705
15929
|
], UserSubscriptionTransaction.prototype, "stripeEventType", 2);
|
|
15706
15930
|
__decorateClass([
|
|
15707
|
-
|
|
15931
|
+
Column101({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
|
|
15708
15932
|
], UserSubscriptionTransaction.prototype, "stripeSubscriptionId", 2);
|
|
15709
15933
|
__decorateClass([
|
|
15710
|
-
|
|
15934
|
+
Column101({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
|
|
15711
15935
|
], UserSubscriptionTransaction.prototype, "stripeInvoiceId", 2);
|
|
15712
15936
|
__decorateClass([
|
|
15713
|
-
|
|
15937
|
+
Column101({ name: "description", type: "text", nullable: true })
|
|
15714
15938
|
], UserSubscriptionTransaction.prototype, "description", 2);
|
|
15715
15939
|
__decorateClass([
|
|
15716
|
-
|
|
15940
|
+
Column101({ name: "invoice_url", type: "text", nullable: true })
|
|
15717
15941
|
], UserSubscriptionTransaction.prototype, "invoiceUrl", 2);
|
|
15718
15942
|
__decorateClass([
|
|
15719
|
-
|
|
15943
|
+
Column101({ name: "checkout_request_payload", type: "jsonb", nullable: true })
|
|
15720
15944
|
], UserSubscriptionTransaction.prototype, "checkoutRequestPayload", 2);
|
|
15721
15945
|
__decorateClass([
|
|
15722
|
-
|
|
15946
|
+
Column101({ name: "checkout_response_payload", type: "jsonb", nullable: true })
|
|
15723
15947
|
], UserSubscriptionTransaction.prototype, "checkoutResponsePayload", 2);
|
|
15724
15948
|
__decorateClass([
|
|
15725
|
-
|
|
15949
|
+
Column101({ name: "webhook_payload", type: "jsonb", nullable: true })
|
|
15726
15950
|
], UserSubscriptionTransaction.prototype, "webhookPayload", 2);
|
|
15727
15951
|
__decorateClass([
|
|
15728
|
-
|
|
15952
|
+
Column101({ name: "metadata", type: "jsonb", nullable: true, default: {} })
|
|
15729
15953
|
], UserSubscriptionTransaction.prototype, "metadata", 2);
|
|
15730
15954
|
UserSubscriptionTransaction = __decorateClass([
|
|
15731
|
-
|
|
15955
|
+
Entity100("user_subscription_transactions"),
|
|
15732
15956
|
Index82("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
|
|
15733
15957
|
Index82("idx_user_sub_tx_user_id", ["userId"]),
|
|
15734
15958
|
Index82("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
|
|
15735
15959
|
], UserSubscriptionTransaction);
|
|
15736
15960
|
|
|
15737
15961
|
// src/entities/vendor-api-configuration.entity.ts
|
|
15738
|
-
import { Column as
|
|
15962
|
+
import { Column as Column102, Entity as Entity101 } from "typeorm";
|
|
15739
15963
|
var VendorApiConfiguration = class extends BaseEntity {
|
|
15740
15964
|
};
|
|
15741
15965
|
__decorateClass([
|
|
15742
|
-
|
|
15966
|
+
Column102({ name: "vendor_name", type: "varchar", length: 255 })
|
|
15743
15967
|
], VendorApiConfiguration.prototype, "vendorName", 2);
|
|
15744
15968
|
__decorateClass([
|
|
15745
|
-
|
|
15969
|
+
Column102({ name: "vendor_api_key", type: "varchar", length: 255 })
|
|
15746
15970
|
], VendorApiConfiguration.prototype, "vendorApiKey", 2);
|
|
15747
15971
|
__decorateClass([
|
|
15748
|
-
|
|
15972
|
+
Column102({ name: "vendor_api_secret_key", type: "text" })
|
|
15749
15973
|
], VendorApiConfiguration.prototype, "vendorApiSecretKey", 2);
|
|
15750
15974
|
__decorateClass([
|
|
15751
|
-
|
|
15975
|
+
Column102({ name: "slug", type: "varchar", length: 100 })
|
|
15752
15976
|
], VendorApiConfiguration.prototype, "slug", 2);
|
|
15753
15977
|
__decorateClass([
|
|
15754
|
-
|
|
15978
|
+
Column102({ name: "is_active", type: "boolean", default: true })
|
|
15755
15979
|
], VendorApiConfiguration.prototype, "isActive", 2);
|
|
15756
15980
|
VendorApiConfiguration = __decorateClass([
|
|
15757
|
-
|
|
15981
|
+
Entity101("vendor_api_configurations")
|
|
15758
15982
|
], VendorApiConfiguration);
|
|
15759
|
-
|
|
15760
|
-
// src/entities/ekyc-verification-log.entity.ts
|
|
15761
|
-
import {
|
|
15762
|
-
Entity as Entity101,
|
|
15763
|
-
Column as Column102,
|
|
15764
|
-
PrimaryGeneratedColumn as PrimaryGeneratedColumn7
|
|
15765
|
-
} from "typeorm";
|
|
15766
|
-
var EkycVerificationLogStatusEnum = /* @__PURE__ */ ((EkycVerificationLogStatusEnum2) => {
|
|
15767
|
-
EkycVerificationLogStatusEnum2["NOT_STARTED"] = "NOT_STARTED";
|
|
15768
|
-
EkycVerificationLogStatusEnum2["NOT_FINISHED"] = "NOT_FINISHED";
|
|
15769
|
-
EkycVerificationLogStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
15770
|
-
EkycVerificationLogStatusEnum2["APPROVED"] = "APPROVED";
|
|
15771
|
-
EkycVerificationLogStatusEnum2["DECLINED"] = "DECLINED";
|
|
15772
|
-
EkycVerificationLogStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
15773
|
-
EkycVerificationLogStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
15774
|
-
EkycVerificationLogStatusEnum2["KYC_EXPIRED"] = "KYC_EXPIRED";
|
|
15775
|
-
EkycVerificationLogStatusEnum2["ABANDONED"] = "ABANDONED";
|
|
15776
|
-
EkycVerificationLogStatusEnum2["RESUBMITTED"] = "RESUBMITTED";
|
|
15777
|
-
EkycVerificationLogStatusEnum2["AWAITING_USER"] = "AWAITING_USER";
|
|
15778
|
-
return EkycVerificationLogStatusEnum2;
|
|
15779
|
-
})(EkycVerificationLogStatusEnum || {});
|
|
15780
|
-
var EkycVerifcationLog = class {
|
|
15781
|
-
};
|
|
15782
|
-
__decorateClass([
|
|
15783
|
-
PrimaryGeneratedColumn7("increment", { type: "integer" })
|
|
15784
|
-
], EkycVerifcationLog.prototype, "id", 2);
|
|
15785
|
-
__decorateClass([
|
|
15786
|
-
Column102({ name: "session_id", type: "varchar", unique: true })
|
|
15787
|
-
], EkycVerifcationLog.prototype, "sessionId", 2);
|
|
15788
|
-
__decorateClass([
|
|
15789
|
-
Column102({ name: "workflow_id", type: "varchar", unique: true })
|
|
15790
|
-
], EkycVerifcationLog.prototype, "workflowId", 2);
|
|
15791
|
-
__decorateClass([
|
|
15792
|
-
Column102({ name: "callback_url", type: "varchar", unique: true })
|
|
15793
|
-
], EkycVerifcationLog.prototype, "callBackUrl", 2);
|
|
15794
|
-
__decorateClass([
|
|
15795
|
-
Column102({
|
|
15796
|
-
type: "enum",
|
|
15797
|
-
enum: EkycVerificationLogStatusEnum,
|
|
15798
|
-
nullable: true
|
|
15799
|
-
})
|
|
15800
|
-
], EkycVerifcationLog.prototype, "status", 2);
|
|
15801
|
-
__decorateClass([
|
|
15802
|
-
Column102({ name: "signature_method", type: "varchar", nullable: true })
|
|
15803
|
-
], EkycVerifcationLog.prototype, "signatureMethod", 2);
|
|
15804
|
-
__decorateClass([
|
|
15805
|
-
Column102({ name: "is_signature_valid", type: "boolean", default: false })
|
|
15806
|
-
], EkycVerifcationLog.prototype, "isSignatureValid", 2);
|
|
15807
|
-
__decorateClass([
|
|
15808
|
-
Column102({ name: "raw_payload", type: "text", nullable: true })
|
|
15809
|
-
], EkycVerifcationLog.prototype, "rawPayload", 2);
|
|
15810
|
-
__decorateClass([
|
|
15811
|
-
Column102({ name: "headers", type: "jsonb", nullable: true })
|
|
15812
|
-
], EkycVerifcationLog.prototype, "headers", 2);
|
|
15813
|
-
__decorateClass([
|
|
15814
|
-
Column102({ name: "error_message", type: "text", nullable: true })
|
|
15815
|
-
], EkycVerifcationLog.prototype, "errorMessage", 2);
|
|
15816
|
-
EkycVerifcationLog = __decorateClass([
|
|
15817
|
-
Entity101("ekyc_verification_logs")
|
|
15818
|
-
], EkycVerifcationLog);
|
|
15819
15983
|
export {
|
|
15820
15984
|
ADMIN_FREELANCER_PATTERN,
|
|
15821
15985
|
ADMIN_JOB_PATTERN,
|
|
@@ -15913,6 +16077,7 @@ export {
|
|
|
15913
16077
|
CompanyRole,
|
|
15914
16078
|
CompanyRolePermission,
|
|
15915
16079
|
CompanySkill,
|
|
16080
|
+
ContactDetailsDto,
|
|
15916
16081
|
Contract,
|
|
15917
16082
|
ContractRMQAdapter,
|
|
15918
16083
|
ContractStatusEnum,
|
|
@@ -15931,6 +16096,7 @@ export {
|
|
|
15931
16096
|
CreateCompanyRoleDto,
|
|
15932
16097
|
CreateDefaultTimesheetLineDto,
|
|
15933
16098
|
CreateDisputeDto,
|
|
16099
|
+
CreateEkycSessionDto,
|
|
15934
16100
|
CreateF2FInterviewDirectDto,
|
|
15935
16101
|
CreateF2FInterviewDto,
|
|
15936
16102
|
CreateF2FInterviewRescheduleRequestDto,
|
|
@@ -15953,6 +16119,7 @@ export {
|
|
|
15953
16119
|
CreateTaskQueryDto,
|
|
15954
16120
|
CreateUserSigningDto,
|
|
15955
16121
|
CustomQuestionItemDto,
|
|
16122
|
+
DIDIT_PATTERN,
|
|
15956
16123
|
DISPUTE_PATTERN,
|
|
15957
16124
|
DOCUSEAL_PATTERN,
|
|
15958
16125
|
DebitCommissionFteHiringDto,
|
|
@@ -15968,7 +16135,7 @@ export {
|
|
|
15968
16135
|
DurationTypeEnum,
|
|
15969
16136
|
EMAIL_PATTERN,
|
|
15970
16137
|
EducationDto,
|
|
15971
|
-
|
|
16138
|
+
EkycVerificationLog,
|
|
15972
16139
|
EkycVerificationLogStatusEnum,
|
|
15973
16140
|
EkycVerificationSession,
|
|
15974
16141
|
EkycVerificationSessionStatusEnum,
|
|
@@ -15980,6 +16147,7 @@ export {
|
|
|
15980
16147
|
EsignContractClientDto,
|
|
15981
16148
|
EsignContractFreelancerDto,
|
|
15982
16149
|
ExistingCandidateDto2 as ExistingCandidateDto,
|
|
16150
|
+
ExpectedDetailsDto,
|
|
15983
16151
|
ExperienceDto,
|
|
15984
16152
|
F2FInterview,
|
|
15985
16153
|
F2FInterviewSchedule,
|
|
@@ -16098,6 +16266,7 @@ export {
|
|
|
16098
16266
|
MarkTaskAsCompletedDto,
|
|
16099
16267
|
MarkTaskQueryMessagesReadDto,
|
|
16100
16268
|
McqStatusEnum,
|
|
16269
|
+
MetadataDto,
|
|
16101
16270
|
ModeOfHire,
|
|
16102
16271
|
ModeOfWork,
|
|
16103
16272
|
NOTIFICATION_PATTERN,
|