@experts_hub/shared 1.0.456 → 1.0.458
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.
|
@@ -34,5 +34,6 @@ export declare class StripeTransaction extends BaseEntity {
|
|
|
34
34
|
stripeBalanceTransactionId: string;
|
|
35
35
|
checkoutSessionCompletedAt: Date;
|
|
36
36
|
completedAt: Date;
|
|
37
|
-
|
|
37
|
+
rawSessionPayload: Record<string, any> | null;
|
|
38
|
+
rawSessionResponse: Record<string, any> | null;
|
|
38
39
|
}
|
|
@@ -2,6 +2,7 @@ import { BaseEntity } from "./base.entity";
|
|
|
2
2
|
import { User } from "./user.entity";
|
|
3
3
|
import { WalletTransaction } from "./wallet-transaction.entity";
|
|
4
4
|
export declare enum WalletAccountTypeEnum {
|
|
5
|
+
ADMIN = "ADMIN",
|
|
5
6
|
BUSINESS = "BUSINESS",
|
|
6
7
|
FREELANCER = "FREELANCER"
|
|
7
8
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1658,7 +1658,8 @@ declare class StripeTransaction extends BaseEntity {
|
|
|
1658
1658
|
stripeBalanceTransactionId: string;
|
|
1659
1659
|
checkoutSessionCompletedAt: Date;
|
|
1660
1660
|
completedAt: Date;
|
|
1661
|
-
|
|
1661
|
+
rawSessionPayload: Record<string, any> | null;
|
|
1662
|
+
rawSessionResponse: Record<string, any> | null;
|
|
1662
1663
|
}
|
|
1663
1664
|
|
|
1664
1665
|
declare enum WalletTransactionTypeEnum {
|
|
@@ -1686,6 +1687,7 @@ declare class WalletTransaction extends BaseEntity {
|
|
|
1686
1687
|
}
|
|
1687
1688
|
|
|
1688
1689
|
declare enum WalletAccountTypeEnum {
|
|
1690
|
+
ADMIN = "ADMIN",
|
|
1689
1691
|
BUSINESS = "BUSINESS",
|
|
1690
1692
|
FREELANCER = "FREELANCER"
|
|
1691
1693
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1658,7 +1658,8 @@ declare class StripeTransaction extends BaseEntity {
|
|
|
1658
1658
|
stripeBalanceTransactionId: string;
|
|
1659
1659
|
checkoutSessionCompletedAt: Date;
|
|
1660
1660
|
completedAt: Date;
|
|
1661
|
-
|
|
1661
|
+
rawSessionPayload: Record<string, any> | null;
|
|
1662
|
+
rawSessionResponse: Record<string, any> | null;
|
|
1662
1663
|
}
|
|
1663
1664
|
|
|
1664
1665
|
declare enum WalletTransactionTypeEnum {
|
|
@@ -1686,6 +1687,7 @@ declare class WalletTransaction extends BaseEntity {
|
|
|
1686
1687
|
}
|
|
1687
1688
|
|
|
1688
1689
|
declare enum WalletAccountTypeEnum {
|
|
1690
|
+
ADMIN = "ADMIN",
|
|
1689
1691
|
BUSINESS = "BUSINESS",
|
|
1690
1692
|
FREELANCER = "FREELANCER"
|
|
1691
1693
|
}
|
package/dist/index.js
CHANGED
|
@@ -4863,6 +4863,7 @@ var StripeTransactionStatusEnum = /* @__PURE__ */ ((StripeTransactionStatusEnum2
|
|
|
4863
4863
|
return StripeTransactionStatusEnum2;
|
|
4864
4864
|
})(StripeTransactionStatusEnum || {});
|
|
4865
4865
|
var StripeTransaction = class extends BaseEntity {
|
|
4866
|
+
// Full Stripe session response
|
|
4866
4867
|
};
|
|
4867
4868
|
__decorateClass([
|
|
4868
4869
|
(0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
@@ -4894,22 +4895,22 @@ __decorateClass([
|
|
|
4894
4895
|
(0, import_typeorm55.Column)({ name: "description", type: "text", nullable: true })
|
|
4895
4896
|
], StripeTransaction.prototype, "description", 2);
|
|
4896
4897
|
__decorateClass([
|
|
4897
|
-
(0, import_typeorm55.Column)({ name: "deposit_amount_cents", type: "bigint",
|
|
4898
|
+
(0, import_typeorm55.Column)({ name: "deposit_amount_cents", type: "bigint", default: 0 })
|
|
4898
4899
|
], StripeTransaction.prototype, "depositAmountCents", 2);
|
|
4899
4900
|
__decorateClass([
|
|
4900
|
-
(0, import_typeorm55.Column)({ name: "platform_fee_cents", type: "bigint",
|
|
4901
|
+
(0, import_typeorm55.Column)({ name: "platform_fee_cents", type: "bigint", default: 0 })
|
|
4901
4902
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
4902
4903
|
__decorateClass([
|
|
4903
|
-
(0, import_typeorm55.Column)({ name: "tax_cents", type: "bigint",
|
|
4904
|
+
(0, import_typeorm55.Column)({ name: "tax_cents", type: "bigint", default: 0 })
|
|
4904
4905
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
4905
4906
|
__decorateClass([
|
|
4906
|
-
(0, import_typeorm55.Column)({ name: "stripe_fee_cents", type: "bigint",
|
|
4907
|
+
(0, import_typeorm55.Column)({ name: "stripe_fee_cents", type: "bigint", default: 0 })
|
|
4907
4908
|
], StripeTransaction.prototype, "stripeFeeCents", 2);
|
|
4908
4909
|
__decorateClass([
|
|
4909
|
-
(0, import_typeorm55.Column)({ name: "total_paid_cents", type: "bigint",
|
|
4910
|
+
(0, import_typeorm55.Column)({ name: "total_paid_cents", type: "bigint", default: 0 })
|
|
4910
4911
|
], StripeTransaction.prototype, "totalPaidCents", 2);
|
|
4911
4912
|
__decorateClass([
|
|
4912
|
-
(0, import_typeorm55.Column)({ name: "net_received_cents", type: "bigint",
|
|
4913
|
+
(0, import_typeorm55.Column)({ name: "net_received_cents", type: "bigint", default: 0 })
|
|
4913
4914
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
4914
4915
|
__decorateClass([
|
|
4915
4916
|
(0, import_typeorm55.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
@@ -4924,8 +4925,11 @@ __decorateClass([
|
|
|
4924
4925
|
(0, import_typeorm55.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4925
4926
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
4926
4927
|
__decorateClass([
|
|
4927
|
-
(0, import_typeorm55.Column)({ name: "
|
|
4928
|
-
], StripeTransaction.prototype, "
|
|
4928
|
+
(0, import_typeorm55.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
4929
|
+
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
4930
|
+
__decorateClass([
|
|
4931
|
+
(0, import_typeorm55.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
4932
|
+
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
4929
4933
|
StripeTransaction = __decorateClass([
|
|
4930
4934
|
(0, import_typeorm55.Entity)("stripe_transactions")
|
|
4931
4935
|
], StripeTransaction);
|
|
@@ -4989,6 +4993,7 @@ WalletTransaction = __decorateClass([
|
|
|
4989
4993
|
|
|
4990
4994
|
// src/entities/wallet.entity.ts
|
|
4991
4995
|
var WalletAccountTypeEnum = /* @__PURE__ */ ((WalletAccountTypeEnum2) => {
|
|
4996
|
+
WalletAccountTypeEnum2["ADMIN"] = "ADMIN";
|
|
4992
4997
|
WalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
|
|
4993
4998
|
WalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
4994
4999
|
return WalletAccountTypeEnum2;
|
package/dist/index.mjs
CHANGED
|
@@ -4890,6 +4890,7 @@ var StripeTransactionStatusEnum = /* @__PURE__ */ ((StripeTransactionStatusEnum2
|
|
|
4890
4890
|
return StripeTransactionStatusEnum2;
|
|
4891
4891
|
})(StripeTransactionStatusEnum || {});
|
|
4892
4892
|
var StripeTransaction = class extends BaseEntity {
|
|
4893
|
+
// Full Stripe session response
|
|
4893
4894
|
};
|
|
4894
4895
|
__decorateClass([
|
|
4895
4896
|
Column55({ name: "user_id", type: "integer", nullable: true }),
|
|
@@ -4921,22 +4922,22 @@ __decorateClass([
|
|
|
4921
4922
|
Column55({ name: "description", type: "text", nullable: true })
|
|
4922
4923
|
], StripeTransaction.prototype, "description", 2);
|
|
4923
4924
|
__decorateClass([
|
|
4924
|
-
Column55({ name: "deposit_amount_cents", type: "bigint",
|
|
4925
|
+
Column55({ name: "deposit_amount_cents", type: "bigint", default: 0 })
|
|
4925
4926
|
], StripeTransaction.prototype, "depositAmountCents", 2);
|
|
4926
4927
|
__decorateClass([
|
|
4927
|
-
Column55({ name: "platform_fee_cents", type: "bigint",
|
|
4928
|
+
Column55({ name: "platform_fee_cents", type: "bigint", default: 0 })
|
|
4928
4929
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
4929
4930
|
__decorateClass([
|
|
4930
|
-
Column55({ name: "tax_cents", type: "bigint",
|
|
4931
|
+
Column55({ name: "tax_cents", type: "bigint", default: 0 })
|
|
4931
4932
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
4932
4933
|
__decorateClass([
|
|
4933
|
-
Column55({ name: "stripe_fee_cents", type: "bigint",
|
|
4934
|
+
Column55({ name: "stripe_fee_cents", type: "bigint", default: 0 })
|
|
4934
4935
|
], StripeTransaction.prototype, "stripeFeeCents", 2);
|
|
4935
4936
|
__decorateClass([
|
|
4936
|
-
Column55({ name: "total_paid_cents", type: "bigint",
|
|
4937
|
+
Column55({ name: "total_paid_cents", type: "bigint", default: 0 })
|
|
4937
4938
|
], StripeTransaction.prototype, "totalPaidCents", 2);
|
|
4938
4939
|
__decorateClass([
|
|
4939
|
-
Column55({ name: "net_received_cents", type: "bigint",
|
|
4940
|
+
Column55({ name: "net_received_cents", type: "bigint", default: 0 })
|
|
4940
4941
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
4941
4942
|
__decorateClass([
|
|
4942
4943
|
Column55({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
@@ -4951,8 +4952,11 @@ __decorateClass([
|
|
|
4951
4952
|
Column55({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4952
4953
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
4953
4954
|
__decorateClass([
|
|
4954
|
-
Column55({ name: "
|
|
4955
|
-
], StripeTransaction.prototype, "
|
|
4955
|
+
Column55({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
4956
|
+
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
4957
|
+
__decorateClass([
|
|
4958
|
+
Column55({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
4959
|
+
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
4956
4960
|
StripeTransaction = __decorateClass([
|
|
4957
4961
|
Entity54("stripe_transactions")
|
|
4958
4962
|
], StripeTransaction);
|
|
@@ -5016,6 +5020,7 @@ WalletTransaction = __decorateClass([
|
|
|
5016
5020
|
|
|
5017
5021
|
// src/entities/wallet.entity.ts
|
|
5018
5022
|
var WalletAccountTypeEnum = /* @__PURE__ */ ((WalletAccountTypeEnum2) => {
|
|
5023
|
+
WalletAccountTypeEnum2["ADMIN"] = "ADMIN";
|
|
5019
5024
|
WalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
|
|
5020
5025
|
WalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
5021
5026
|
return WalletAccountTypeEnum2;
|