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