@experts_hub/shared 1.0.410 → 1.0.412
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/company-profile.entity.d.ts +4 -1
- package/dist/entities/stripe-wallet-transaction.entity.d.ts +9 -0
- package/dist/entities/stripe-wallet.entity.d.ts +1 -0
- package/dist/index.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +41 -0
- package/dist/index.mjs +41 -0
- package/package.json +1 -1
|
@@ -3,7 +3,9 @@ import { User } from "./user.entity";
|
|
|
3
3
|
export declare enum KindOfHire {
|
|
4
4
|
FULLTIME = "FULLTIME",
|
|
5
5
|
PARTTIME = "PARTTIME",
|
|
6
|
-
BOTH = "BOTH"
|
|
6
|
+
BOTH = "BOTH",
|
|
7
|
+
HOURLY = "HOURLY",
|
|
8
|
+
FTE = "FTE"
|
|
7
9
|
}
|
|
8
10
|
export declare enum ModeOfHire {
|
|
9
11
|
ONSITE = "ONSITE",
|
|
@@ -35,6 +37,7 @@ export declare class CompanyProfile extends BaseEntity {
|
|
|
35
37
|
skills: string[];
|
|
36
38
|
requiredFreelancer: string;
|
|
37
39
|
kindOfHiring: KindOfHire;
|
|
40
|
+
numberOfHours: number;
|
|
38
41
|
modeOfHire: ModeOfHire;
|
|
39
42
|
foundUsOn: FromUsOn;
|
|
40
43
|
foundUsOnDetail: string;
|
|
@@ -24,4 +24,13 @@ export declare class StripeWalletTransaction extends BaseEntity {
|
|
|
24
24
|
stripeSessionId: string;
|
|
25
25
|
stripePaymentIntentId: string;
|
|
26
26
|
description: string;
|
|
27
|
+
depositAmountCents: number;
|
|
28
|
+
platformFeeCents: number;
|
|
29
|
+
taxCents: number;
|
|
30
|
+
stripeFeeCents: number;
|
|
31
|
+
totalPaidCents: number;
|
|
32
|
+
netReceivedCents: number;
|
|
33
|
+
stripeChargeId: string;
|
|
34
|
+
stripeBalanceTransactionId: string;
|
|
35
|
+
completedAt: Date;
|
|
27
36
|
}
|
|
@@ -16,6 +16,7 @@ export declare class StripeWallet extends BaseEntity {
|
|
|
16
16
|
stripeAccountId: string;
|
|
17
17
|
stripeCustomerId: string;
|
|
18
18
|
walletBalance: number;
|
|
19
|
+
walletBalanceCents: number;
|
|
19
20
|
onboardingStatus: StripeWalletOnboardingStatusEnum;
|
|
20
21
|
stripeMetadata: Record<string, any>;
|
|
21
22
|
transactions: StripeWalletTransaction[];
|
package/dist/index.d.mts
CHANGED
|
@@ -794,7 +794,9 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
794
794
|
declare enum KindOfHire {
|
|
795
795
|
FULLTIME = "FULLTIME",
|
|
796
796
|
PARTTIME = "PARTTIME",
|
|
797
|
-
BOTH = "BOTH"
|
|
797
|
+
BOTH = "BOTH",
|
|
798
|
+
HOURLY = "HOURLY",
|
|
799
|
+
FTE = "FTE"
|
|
798
800
|
}
|
|
799
801
|
declare enum ModeOfHire {
|
|
800
802
|
ONSITE = "ONSITE",
|
|
@@ -826,6 +828,7 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
826
828
|
skills: string[];
|
|
827
829
|
requiredFreelancer: string;
|
|
828
830
|
kindOfHiring: KindOfHire;
|
|
831
|
+
numberOfHours: number;
|
|
829
832
|
modeOfHire: ModeOfHire;
|
|
830
833
|
foundUsOn: FromUsOn;
|
|
831
834
|
foundUsOnDetail: string;
|
|
@@ -1534,6 +1537,15 @@ declare class StripeWalletTransaction extends BaseEntity {
|
|
|
1534
1537
|
stripeSessionId: string;
|
|
1535
1538
|
stripePaymentIntentId: string;
|
|
1536
1539
|
description: string;
|
|
1540
|
+
depositAmountCents: number;
|
|
1541
|
+
platformFeeCents: number;
|
|
1542
|
+
taxCents: number;
|
|
1543
|
+
stripeFeeCents: number;
|
|
1544
|
+
totalPaidCents: number;
|
|
1545
|
+
netReceivedCents: number;
|
|
1546
|
+
stripeChargeId: string;
|
|
1547
|
+
stripeBalanceTransactionId: string;
|
|
1548
|
+
completedAt: Date;
|
|
1537
1549
|
}
|
|
1538
1550
|
|
|
1539
1551
|
declare enum StripeWalletAccountTypeEnum {
|
|
@@ -1551,6 +1563,7 @@ declare class StripeWallet extends BaseEntity {
|
|
|
1551
1563
|
stripeAccountId: string;
|
|
1552
1564
|
stripeCustomerId: string;
|
|
1553
1565
|
walletBalance: number;
|
|
1566
|
+
walletBalanceCents: number;
|
|
1554
1567
|
onboardingStatus: StripeWalletOnboardingStatusEnum;
|
|
1555
1568
|
stripeMetadata: Record<string, any>;
|
|
1556
1569
|
transactions: StripeWalletTransaction[];
|
package/dist/index.d.ts
CHANGED
|
@@ -794,7 +794,9 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
794
794
|
declare enum KindOfHire {
|
|
795
795
|
FULLTIME = "FULLTIME",
|
|
796
796
|
PARTTIME = "PARTTIME",
|
|
797
|
-
BOTH = "BOTH"
|
|
797
|
+
BOTH = "BOTH",
|
|
798
|
+
HOURLY = "HOURLY",
|
|
799
|
+
FTE = "FTE"
|
|
798
800
|
}
|
|
799
801
|
declare enum ModeOfHire {
|
|
800
802
|
ONSITE = "ONSITE",
|
|
@@ -826,6 +828,7 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
826
828
|
skills: string[];
|
|
827
829
|
requiredFreelancer: string;
|
|
828
830
|
kindOfHiring: KindOfHire;
|
|
831
|
+
numberOfHours: number;
|
|
829
832
|
modeOfHire: ModeOfHire;
|
|
830
833
|
foundUsOn: FromUsOn;
|
|
831
834
|
foundUsOnDetail: string;
|
|
@@ -1534,6 +1537,15 @@ declare class StripeWalletTransaction extends BaseEntity {
|
|
|
1534
1537
|
stripeSessionId: string;
|
|
1535
1538
|
stripePaymentIntentId: string;
|
|
1536
1539
|
description: string;
|
|
1540
|
+
depositAmountCents: number;
|
|
1541
|
+
platformFeeCents: number;
|
|
1542
|
+
taxCents: number;
|
|
1543
|
+
stripeFeeCents: number;
|
|
1544
|
+
totalPaidCents: number;
|
|
1545
|
+
netReceivedCents: number;
|
|
1546
|
+
stripeChargeId: string;
|
|
1547
|
+
stripeBalanceTransactionId: string;
|
|
1548
|
+
completedAt: Date;
|
|
1537
1549
|
}
|
|
1538
1550
|
|
|
1539
1551
|
declare enum StripeWalletAccountTypeEnum {
|
|
@@ -1551,6 +1563,7 @@ declare class StripeWallet extends BaseEntity {
|
|
|
1551
1563
|
stripeAccountId: string;
|
|
1552
1564
|
stripeCustomerId: string;
|
|
1553
1565
|
walletBalance: number;
|
|
1566
|
+
walletBalanceCents: number;
|
|
1554
1567
|
onboardingStatus: StripeWalletOnboardingStatusEnum;
|
|
1555
1568
|
stripeMetadata: Record<string, any>;
|
|
1556
1569
|
transactions: StripeWalletTransaction[];
|
package/dist/index.js
CHANGED
|
@@ -2190,6 +2190,8 @@ var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
|
2190
2190
|
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
2191
2191
|
KindOfHire2["PARTTIME"] = "PARTTIME";
|
|
2192
2192
|
KindOfHire2["BOTH"] = "BOTH";
|
|
2193
|
+
KindOfHire2["HOURLY"] = "HOURLY";
|
|
2194
|
+
KindOfHire2["FTE"] = "FTE";
|
|
2193
2195
|
return KindOfHire2;
|
|
2194
2196
|
})(KindOfHire || {});
|
|
2195
2197
|
var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
|
|
@@ -2266,6 +2268,15 @@ __decorateClass([
|
|
|
2266
2268
|
nullable: true
|
|
2267
2269
|
})
|
|
2268
2270
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
2271
|
+
__decorateClass([
|
|
2272
|
+
(0, import_typeorm9.Column)({
|
|
2273
|
+
name: "number_of_hours",
|
|
2274
|
+
type: "decimal",
|
|
2275
|
+
precision: 4,
|
|
2276
|
+
scale: 2,
|
|
2277
|
+
default: 0
|
|
2278
|
+
})
|
|
2279
|
+
], CompanyProfile.prototype, "numberOfHours", 2);
|
|
2269
2280
|
__decorateClass([
|
|
2270
2281
|
(0, import_typeorm9.Column)({
|
|
2271
2282
|
name: "mode_of_hire",
|
|
@@ -4554,6 +4565,33 @@ __decorateClass([
|
|
|
4554
4565
|
__decorateClass([
|
|
4555
4566
|
(0, import_typeorm51.Column)({ name: "description", type: "text", nullable: true })
|
|
4556
4567
|
], StripeWalletTransaction.prototype, "description", 2);
|
|
4568
|
+
__decorateClass([
|
|
4569
|
+
(0, import_typeorm51.Column)({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
|
|
4570
|
+
], StripeWalletTransaction.prototype, "depositAmountCents", 2);
|
|
4571
|
+
__decorateClass([
|
|
4572
|
+
(0, import_typeorm51.Column)({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4573
|
+
], StripeWalletTransaction.prototype, "platformFeeCents", 2);
|
|
4574
|
+
__decorateClass([
|
|
4575
|
+
(0, import_typeorm51.Column)({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
|
|
4576
|
+
], StripeWalletTransaction.prototype, "taxCents", 2);
|
|
4577
|
+
__decorateClass([
|
|
4578
|
+
(0, import_typeorm51.Column)({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4579
|
+
], StripeWalletTransaction.prototype, "stripeFeeCents", 2);
|
|
4580
|
+
__decorateClass([
|
|
4581
|
+
(0, import_typeorm51.Column)({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
|
|
4582
|
+
], StripeWalletTransaction.prototype, "totalPaidCents", 2);
|
|
4583
|
+
__decorateClass([
|
|
4584
|
+
(0, import_typeorm51.Column)({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
|
|
4585
|
+
], StripeWalletTransaction.prototype, "netReceivedCents", 2);
|
|
4586
|
+
__decorateClass([
|
|
4587
|
+
(0, import_typeorm51.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4588
|
+
], StripeWalletTransaction.prototype, "stripeChargeId", 2);
|
|
4589
|
+
__decorateClass([
|
|
4590
|
+
(0, import_typeorm51.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4591
|
+
], StripeWalletTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
4592
|
+
__decorateClass([
|
|
4593
|
+
(0, import_typeorm51.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4594
|
+
], StripeWalletTransaction.prototype, "completedAt", 2);
|
|
4557
4595
|
StripeWalletTransaction = __decorateClass([
|
|
4558
4596
|
(0, import_typeorm51.Entity)("stripe_wallet_transactions")
|
|
4559
4597
|
], StripeWalletTransaction);
|
|
@@ -4591,6 +4629,9 @@ __decorateClass([
|
|
|
4591
4629
|
__decorateClass([
|
|
4592
4630
|
(0, import_typeorm52.Column)({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4593
4631
|
], StripeWallet.prototype, "walletBalance", 2);
|
|
4632
|
+
__decorateClass([
|
|
4633
|
+
(0, import_typeorm52.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0 })
|
|
4634
|
+
], StripeWallet.prototype, "walletBalanceCents", 2);
|
|
4594
4635
|
__decorateClass([
|
|
4595
4636
|
(0, import_typeorm52.Column)({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
|
|
4596
4637
|
], StripeWallet.prototype, "onboardingStatus", 2);
|
package/dist/index.mjs
CHANGED
|
@@ -2075,6 +2075,8 @@ var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
|
2075
2075
|
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
2076
2076
|
KindOfHire2["PARTTIME"] = "PARTTIME";
|
|
2077
2077
|
KindOfHire2["BOTH"] = "BOTH";
|
|
2078
|
+
KindOfHire2["HOURLY"] = "HOURLY";
|
|
2079
|
+
KindOfHire2["FTE"] = "FTE";
|
|
2078
2080
|
return KindOfHire2;
|
|
2079
2081
|
})(KindOfHire || {});
|
|
2080
2082
|
var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
|
|
@@ -2151,6 +2153,15 @@ __decorateClass([
|
|
|
2151
2153
|
nullable: true
|
|
2152
2154
|
})
|
|
2153
2155
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
2156
|
+
__decorateClass([
|
|
2157
|
+
Column9({
|
|
2158
|
+
name: "number_of_hours",
|
|
2159
|
+
type: "decimal",
|
|
2160
|
+
precision: 4,
|
|
2161
|
+
scale: 2,
|
|
2162
|
+
default: 0
|
|
2163
|
+
})
|
|
2164
|
+
], CompanyProfile.prototype, "numberOfHours", 2);
|
|
2154
2165
|
__decorateClass([
|
|
2155
2166
|
Column9({
|
|
2156
2167
|
name: "mode_of_hire",
|
|
@@ -4581,6 +4592,33 @@ __decorateClass([
|
|
|
4581
4592
|
__decorateClass([
|
|
4582
4593
|
Column51({ name: "description", type: "text", nullable: true })
|
|
4583
4594
|
], StripeWalletTransaction.prototype, "description", 2);
|
|
4595
|
+
__decorateClass([
|
|
4596
|
+
Column51({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
|
|
4597
|
+
], StripeWalletTransaction.prototype, "depositAmountCents", 2);
|
|
4598
|
+
__decorateClass([
|
|
4599
|
+
Column51({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4600
|
+
], StripeWalletTransaction.prototype, "platformFeeCents", 2);
|
|
4601
|
+
__decorateClass([
|
|
4602
|
+
Column51({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
|
|
4603
|
+
], StripeWalletTransaction.prototype, "taxCents", 2);
|
|
4604
|
+
__decorateClass([
|
|
4605
|
+
Column51({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4606
|
+
], StripeWalletTransaction.prototype, "stripeFeeCents", 2);
|
|
4607
|
+
__decorateClass([
|
|
4608
|
+
Column51({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
|
|
4609
|
+
], StripeWalletTransaction.prototype, "totalPaidCents", 2);
|
|
4610
|
+
__decorateClass([
|
|
4611
|
+
Column51({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
|
|
4612
|
+
], StripeWalletTransaction.prototype, "netReceivedCents", 2);
|
|
4613
|
+
__decorateClass([
|
|
4614
|
+
Column51({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4615
|
+
], StripeWalletTransaction.prototype, "stripeChargeId", 2);
|
|
4616
|
+
__decorateClass([
|
|
4617
|
+
Column51({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4618
|
+
], StripeWalletTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
4619
|
+
__decorateClass([
|
|
4620
|
+
Column51({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4621
|
+
], StripeWalletTransaction.prototype, "completedAt", 2);
|
|
4584
4622
|
StripeWalletTransaction = __decorateClass([
|
|
4585
4623
|
Entity50("stripe_wallet_transactions")
|
|
4586
4624
|
], StripeWalletTransaction);
|
|
@@ -4618,6 +4656,9 @@ __decorateClass([
|
|
|
4618
4656
|
__decorateClass([
|
|
4619
4657
|
Column52({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4620
4658
|
], StripeWallet.prototype, "walletBalance", 2);
|
|
4659
|
+
__decorateClass([
|
|
4660
|
+
Column52({ name: "wallet_balance_cents", type: "bigint", default: 0 })
|
|
4661
|
+
], StripeWallet.prototype, "walletBalanceCents", 2);
|
|
4621
4662
|
__decorateClass([
|
|
4622
4663
|
Column52({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
|
|
4623
4664
|
], StripeWallet.prototype, "onboardingStatus", 2);
|