@experts_hub/shared 1.0.733 → 1.0.734
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/user.entity.d.ts +2 -0
- package/dist/entities/wallet-transaction.entity.d.ts +3 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +17 -1
- package/dist/index.mjs +34 -12
- package/package.json +1 -1
|
@@ -49,6 +49,7 @@ import { TaskQuery } from "./task-query.entity";
|
|
|
49
49
|
import { TaskQueryMessage } from "./task-query-message.entity";
|
|
50
50
|
import { UserSubscription } from "./user-subscription.entity";
|
|
51
51
|
import { EkycVerificationSession } from "./ekyc-verification-session.entity";
|
|
52
|
+
import { WalletTransaction } from "./wallet-transaction.entity";
|
|
52
53
|
export declare enum AccountType {
|
|
53
54
|
SUPER_ADMIN = "SUPER_ADMIN",
|
|
54
55
|
ADMIN = "ADMIN",
|
|
@@ -171,4 +172,5 @@ export declare class User extends BaseEntity {
|
|
|
171
172
|
inAppNotifications: InAppNotification[];
|
|
172
173
|
userSubscriptions: UserSubscription[];
|
|
173
174
|
ekycVerificationSessions: EkycVerificationSession[];
|
|
175
|
+
sentTransactions: WalletTransaction[];
|
|
174
176
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
2
|
import { Wallet } from "./wallet.entity";
|
|
3
|
+
import { User } from "./user.entity";
|
|
3
4
|
export declare enum WalletTransactionTypeEnum {
|
|
4
5
|
CR = "CR",
|
|
5
6
|
DR = "DR"
|
|
@@ -14,6 +15,8 @@ export declare enum WalletTransactionStatusEnum {
|
|
|
14
15
|
export declare class WalletTransaction extends BaseEntity {
|
|
15
16
|
walletId: number;
|
|
16
17
|
wallet: Wallet;
|
|
18
|
+
fromUserId: number;
|
|
19
|
+
fromUser: User;
|
|
17
20
|
amount: number;
|
|
18
21
|
markUpAmount: number;
|
|
19
22
|
balanceBefore: number;
|
package/dist/index.d.mts
CHANGED
|
@@ -1904,6 +1904,8 @@ declare enum WalletTransactionStatusEnum {
|
|
|
1904
1904
|
declare class WalletTransaction extends BaseEntity {
|
|
1905
1905
|
walletId: number;
|
|
1906
1906
|
wallet: Wallet;
|
|
1907
|
+
fromUserId: number;
|
|
1908
|
+
fromUser: User;
|
|
1907
1909
|
amount: number;
|
|
1908
1910
|
markUpAmount: number;
|
|
1909
1911
|
balanceBefore: number;
|
|
@@ -2185,6 +2187,7 @@ declare class User extends BaseEntity {
|
|
|
2185
2187
|
inAppNotifications: InAppNotification[];
|
|
2186
2188
|
userSubscriptions: UserSubscription[];
|
|
2187
2189
|
ekycVerificationSessions: EkycVerificationSession[];
|
|
2190
|
+
sentTransactions: WalletTransaction[];
|
|
2188
2191
|
}
|
|
2189
2192
|
|
|
2190
2193
|
declare class UpdateSubAdminAccountStatusDto {
|
package/dist/index.d.ts
CHANGED
|
@@ -1904,6 +1904,8 @@ declare enum WalletTransactionStatusEnum {
|
|
|
1904
1904
|
declare class WalletTransaction extends BaseEntity {
|
|
1905
1905
|
walletId: number;
|
|
1906
1906
|
wallet: Wallet;
|
|
1907
|
+
fromUserId: number;
|
|
1908
|
+
fromUser: User;
|
|
1907
1909
|
amount: number;
|
|
1908
1910
|
markUpAmount: number;
|
|
1909
1911
|
balanceBefore: number;
|
|
@@ -2185,6 +2187,7 @@ declare class User extends BaseEntity {
|
|
|
2185
2187
|
inAppNotifications: InAppNotification[];
|
|
2186
2188
|
userSubscriptions: UserSubscription[];
|
|
2187
2189
|
ekycVerificationSessions: EkycVerificationSession[];
|
|
2190
|
+
sentTransactions: WalletTransaction[];
|
|
2188
2191
|
}
|
|
2189
2192
|
|
|
2190
2193
|
declare class UpdateSubAdminAccountStatusDto {
|
package/dist/index.js
CHANGED
|
@@ -6485,6 +6485,14 @@ __decorateClass([
|
|
|
6485
6485
|
(0, import_typeorm72.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
6486
6486
|
(0, import_typeorm72.JoinColumn)({ name: "wallet_id" })
|
|
6487
6487
|
], WalletTransaction.prototype, "wallet", 2);
|
|
6488
|
+
__decorateClass([
|
|
6489
|
+
(0, import_typeorm72.Column)({ name: "from_user_id", type: "integer", nullable: true }),
|
|
6490
|
+
(0, import_typeorm72.Index)()
|
|
6491
|
+
], WalletTransaction.prototype, "fromUserId", 2);
|
|
6492
|
+
__decorateClass([
|
|
6493
|
+
(0, import_typeorm72.ManyToOne)(() => User, (user) => user.sentTransactions),
|
|
6494
|
+
(0, import_typeorm72.JoinColumn)({ name: "from_user_id" })
|
|
6495
|
+
], WalletTransaction.prototype, "fromUser", 2);
|
|
6488
6496
|
__decorateClass([
|
|
6489
6497
|
(0, import_typeorm72.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
6490
6498
|
], WalletTransaction.prototype, "amount", 2);
|
|
@@ -6501,7 +6509,12 @@ __decorateClass([
|
|
|
6501
6509
|
(0, import_typeorm72.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
6502
6510
|
], WalletTransaction.prototype, "type", 2);
|
|
6503
6511
|
__decorateClass([
|
|
6504
|
-
(0, import_typeorm72.Column)({
|
|
6512
|
+
(0, import_typeorm72.Column)({
|
|
6513
|
+
name: "status",
|
|
6514
|
+
type: "enum",
|
|
6515
|
+
enum: WalletTransactionStatusEnum,
|
|
6516
|
+
default: "PENDING" /* PENDING */
|
|
6517
|
+
})
|
|
6505
6518
|
], WalletTransaction.prototype, "status", 2);
|
|
6506
6519
|
__decorateClass([
|
|
6507
6520
|
(0, import_typeorm72.Column)({ name: "description", type: "text", nullable: true })
|
|
@@ -7365,6 +7378,9 @@ __decorateClass([
|
|
|
7365
7378
|
__decorateClass([
|
|
7366
7379
|
(0, import_typeorm81.OneToMany)(() => EkycVerificationSession, (ekycVerificationSession) => ekycVerificationSession.user)
|
|
7367
7380
|
], User.prototype, "ekycVerificationSessions", 2);
|
|
7381
|
+
__decorateClass([
|
|
7382
|
+
(0, import_typeorm81.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.fromUser)
|
|
7383
|
+
], User.prototype, "sentTransactions", 2);
|
|
7368
7384
|
User = __decorateClass([
|
|
7369
7385
|
(0, import_typeorm81.Entity)("users")
|
|
7370
7386
|
], User);
|
package/dist/index.mjs
CHANGED
|
@@ -1068,7 +1068,7 @@ import {
|
|
|
1068
1068
|
Entity as Entity80,
|
|
1069
1069
|
Column as Column81,
|
|
1070
1070
|
OneToMany as OneToMany27,
|
|
1071
|
-
OneToOne as
|
|
1071
|
+
OneToOne as OneToOne13,
|
|
1072
1072
|
Index as Index71,
|
|
1073
1073
|
ManyToOne as ManyToOne75,
|
|
1074
1074
|
JoinColumn as JoinColumn76
|
|
@@ -6243,10 +6243,16 @@ StripeTransaction = __decorateClass([
|
|
|
6243
6243
|
], StripeTransaction);
|
|
6244
6244
|
|
|
6245
6245
|
// src/entities/wallet.entity.ts
|
|
6246
|
-
import { Entity as Entity72, Column as Column73, Index as Index65, JoinColumn as JoinColumn68, OneToOne as
|
|
6246
|
+
import { Entity as Entity72, Column as Column73, Index as Index65, JoinColumn as JoinColumn68, OneToOne as OneToOne12, OneToMany as OneToMany24 } from "typeorm";
|
|
6247
6247
|
|
|
6248
6248
|
// src/entities/wallet-transaction.entity.ts
|
|
6249
|
-
import {
|
|
6249
|
+
import {
|
|
6250
|
+
Entity as Entity71,
|
|
6251
|
+
Column as Column72,
|
|
6252
|
+
Index as Index64,
|
|
6253
|
+
ManyToOne as ManyToOne67,
|
|
6254
|
+
JoinColumn as JoinColumn67
|
|
6255
|
+
} from "typeorm";
|
|
6250
6256
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
6251
6257
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
6252
6258
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -6270,6 +6276,14 @@ __decorateClass([
|
|
|
6270
6276
|
ManyToOne67(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
6271
6277
|
JoinColumn67({ name: "wallet_id" })
|
|
6272
6278
|
], WalletTransaction.prototype, "wallet", 2);
|
|
6279
|
+
__decorateClass([
|
|
6280
|
+
Column72({ name: "from_user_id", type: "integer", nullable: true }),
|
|
6281
|
+
Index64()
|
|
6282
|
+
], WalletTransaction.prototype, "fromUserId", 2);
|
|
6283
|
+
__decorateClass([
|
|
6284
|
+
ManyToOne67(() => User, (user) => user.sentTransactions),
|
|
6285
|
+
JoinColumn67({ name: "from_user_id" })
|
|
6286
|
+
], WalletTransaction.prototype, "fromUser", 2);
|
|
6273
6287
|
__decorateClass([
|
|
6274
6288
|
Column72({ name: "amount", type: "bigint", nullable: true })
|
|
6275
6289
|
], WalletTransaction.prototype, "amount", 2);
|
|
@@ -6286,7 +6300,12 @@ __decorateClass([
|
|
|
6286
6300
|
Column72({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
6287
6301
|
], WalletTransaction.prototype, "type", 2);
|
|
6288
6302
|
__decorateClass([
|
|
6289
|
-
Column72({
|
|
6303
|
+
Column72({
|
|
6304
|
+
name: "status",
|
|
6305
|
+
type: "enum",
|
|
6306
|
+
enum: WalletTransactionStatusEnum,
|
|
6307
|
+
default: "PENDING" /* PENDING */
|
|
6308
|
+
})
|
|
6290
6309
|
], WalletTransaction.prototype, "status", 2);
|
|
6291
6310
|
__decorateClass([
|
|
6292
6311
|
Column72({ name: "description", type: "text", nullable: true })
|
|
@@ -6327,7 +6346,7 @@ __decorateClass([
|
|
|
6327
6346
|
Index65()
|
|
6328
6347
|
], Wallet.prototype, "userId", 2);
|
|
6329
6348
|
__decorateClass([
|
|
6330
|
-
|
|
6349
|
+
OneToOne12(() => User, (user) => user.wallet),
|
|
6331
6350
|
JoinColumn68({ name: "user_id" })
|
|
6332
6351
|
], Wallet.prototype, "user", 2);
|
|
6333
6352
|
__decorateClass([
|
|
@@ -6916,7 +6935,7 @@ __decorateClass([
|
|
|
6916
6935
|
OneToMany27(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6917
6936
|
], User.prototype, "senseloafLogs", 2);
|
|
6918
6937
|
__decorateClass([
|
|
6919
|
-
|
|
6938
|
+
OneToOne13(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6920
6939
|
], User.prototype, "companyProfile", 2);
|
|
6921
6940
|
__decorateClass([
|
|
6922
6941
|
OneToMany27(() => CompanySkill, (companySkill) => companySkill.user)
|
|
@@ -6928,7 +6947,7 @@ __decorateClass([
|
|
|
6928
6947
|
)
|
|
6929
6948
|
], User.prototype, "companyMemberRoles", 2);
|
|
6930
6949
|
__decorateClass([
|
|
6931
|
-
|
|
6950
|
+
OneToOne13(() => CompanyMember, (companyMember) => companyMember.user)
|
|
6932
6951
|
], User.prototype, "companyMember", 2);
|
|
6933
6952
|
__decorateClass([
|
|
6934
6953
|
OneToMany27(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
@@ -6937,13 +6956,13 @@ __decorateClass([
|
|
|
6937
6956
|
OneToMany27(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6938
6957
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6939
6958
|
__decorateClass([
|
|
6940
|
-
|
|
6959
|
+
OneToOne13(
|
|
6941
6960
|
() => FreelancerProfile,
|
|
6942
6961
|
(freelancerProfile) => freelancerProfile.user
|
|
6943
6962
|
)
|
|
6944
6963
|
], User.prototype, "freelancerProfile", 2);
|
|
6945
6964
|
__decorateClass([
|
|
6946
|
-
|
|
6965
|
+
OneToOne13(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6947
6966
|
], User.prototype, "freelancerResume", 2);
|
|
6948
6967
|
__decorateClass([
|
|
6949
6968
|
OneToMany27(
|
|
@@ -7006,7 +7025,7 @@ __decorateClass([
|
|
|
7006
7025
|
)
|
|
7007
7026
|
], User.prototype, "freelancerFramework", 2);
|
|
7008
7027
|
__decorateClass([
|
|
7009
|
-
|
|
7028
|
+
OneToOne13(
|
|
7010
7029
|
() => FreelancerDeclaration,
|
|
7011
7030
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
7012
7031
|
)
|
|
@@ -7109,7 +7128,7 @@ __decorateClass([
|
|
|
7109
7128
|
OneToMany27(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
7110
7129
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
7111
7130
|
__decorateClass([
|
|
7112
|
-
|
|
7131
|
+
OneToOne13(() => Signature, (signature) => signature.user)
|
|
7113
7132
|
], User.prototype, "signatures", 2);
|
|
7114
7133
|
__decorateClass([
|
|
7115
7134
|
OneToMany27(() => Timesheet, (timesheet) => timesheet.client)
|
|
@@ -7142,7 +7161,7 @@ __decorateClass([
|
|
|
7142
7161
|
OneToMany27(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
7143
7162
|
], User.prototype, "respondentDisputes", 2);
|
|
7144
7163
|
__decorateClass([
|
|
7145
|
-
|
|
7164
|
+
OneToOne13(() => Wallet, (wallet) => wallet.user)
|
|
7146
7165
|
], User.prototype, "wallet", 2);
|
|
7147
7166
|
__decorateClass([
|
|
7148
7167
|
OneToMany27(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
@@ -7162,6 +7181,9 @@ __decorateClass([
|
|
|
7162
7181
|
__decorateClass([
|
|
7163
7182
|
OneToMany27(() => EkycVerificationSession, (ekycVerificationSession) => ekycVerificationSession.user)
|
|
7164
7183
|
], User.prototype, "ekycVerificationSessions", 2);
|
|
7184
|
+
__decorateClass([
|
|
7185
|
+
OneToMany27(() => WalletTransaction, (walletTransaction) => walletTransaction.fromUser)
|
|
7186
|
+
], User.prototype, "sentTransactions", 2);
|
|
7165
7187
|
User = __decorateClass([
|
|
7166
7188
|
Entity80("users")
|
|
7167
7189
|
], User);
|