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