@experts_hub/shared 1.0.452 → 1.0.453
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/index.d.ts +4 -3
- package/dist/entities/{stripe-wallet-transaction.entity.d.ts → stripe-transaction.entity.d.ts} +13 -12
- package/dist/entities/user.entity.d.ts +4 -2
- package/dist/entities/wallet-transaction.entity.d.ts +25 -0
- package/dist/entities/{stripe-wallet.entity.d.ts → wallet.entity.d.ts} +7 -7
- package/dist/index.d.mts +74 -48
- package/dist/index.d.ts +74 -48
- package/dist/index.js +474 -414
- package/dist/index.mjs +358 -301
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1457,17 +1457,17 @@ import {
|
|
|
1457
1457
|
} from "class-validator";
|
|
1458
1458
|
|
|
1459
1459
|
// src/entities/rating.entity.ts
|
|
1460
|
-
import { Entity as
|
|
1460
|
+
import { Entity as Entity58, Column as Column59, ManyToOne as ManyToOne52, JoinColumn as JoinColumn53, Index as Index51 } from "typeorm";
|
|
1461
1461
|
|
|
1462
1462
|
// src/entities/user.entity.ts
|
|
1463
1463
|
import {
|
|
1464
|
-
Entity as
|
|
1465
|
-
Column as
|
|
1464
|
+
Entity as Entity57,
|
|
1465
|
+
Column as Column58,
|
|
1466
1466
|
OneToMany as OneToMany19,
|
|
1467
1467
|
OneToOne as OneToOne7,
|
|
1468
|
-
Index as
|
|
1469
|
-
ManyToOne as
|
|
1470
|
-
JoinColumn as
|
|
1468
|
+
Index as Index50,
|
|
1469
|
+
ManyToOne as ManyToOne51,
|
|
1470
|
+
JoinColumn as JoinColumn52
|
|
1471
1471
|
} from "typeorm";
|
|
1472
1472
|
|
|
1473
1473
|
// src/entities/base.entity.ts
|
|
@@ -4782,169 +4782,34 @@ FreelancerResume = __decorateClass([
|
|
|
4782
4782
|
Entity51("freelancer_resumes")
|
|
4783
4783
|
], FreelancerResume);
|
|
4784
4784
|
|
|
4785
|
-
// src/entities/stripe-wallet.entity.ts
|
|
4786
|
-
import { Entity as Entity53, Column as Column54, Index as Index46, JoinColumn as JoinColumn48, OneToOne as OneToOne6, OneToMany as OneToMany18 } from "typeorm";
|
|
4787
|
-
|
|
4788
|
-
// src/entities/stripe-wallet-transaction.entity.ts
|
|
4789
|
-
import { Entity as Entity52, Column as Column53, Index as Index45, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
|
|
4790
|
-
var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
|
|
4791
|
-
StripeWalletTransactionTypeEnum2["CR"] = "CR";
|
|
4792
|
-
StripeWalletTransactionTypeEnum2["DR"] = "DR";
|
|
4793
|
-
return StripeWalletTransactionTypeEnum2;
|
|
4794
|
-
})(StripeWalletTransactionTypeEnum || {});
|
|
4795
|
-
var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
|
|
4796
|
-
StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
|
|
4797
|
-
StripeWalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
|
|
4798
|
-
StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
|
|
4799
|
-
StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
|
|
4800
|
-
StripeWalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
4801
|
-
return StripeWalletTransactionStatusEnum2;
|
|
4802
|
-
})(StripeWalletTransactionStatusEnum || {});
|
|
4803
|
-
var StripeWalletTransaction = class extends BaseEntity {
|
|
4804
|
-
};
|
|
4805
|
-
__decorateClass([
|
|
4806
|
-
Column53({ name: "wallet_id", type: "integer", nullable: true }),
|
|
4807
|
-
Index45()
|
|
4808
|
-
], StripeWalletTransaction.prototype, "walletId", 2);
|
|
4809
|
-
__decorateClass([
|
|
4810
|
-
ManyToOne47(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
|
|
4811
|
-
JoinColumn47({ name: "wallet_id" })
|
|
4812
|
-
], StripeWalletTransaction.prototype, "stripeWallet", 2);
|
|
4813
|
-
__decorateClass([
|
|
4814
|
-
Column53({ name: "amount", type: "bigint", nullable: true })
|
|
4815
|
-
], StripeWalletTransaction.prototype, "amount", 2);
|
|
4816
|
-
__decorateClass([
|
|
4817
|
-
Column53({ name: "currency", type: "varchar", nullable: true })
|
|
4818
|
-
], StripeWalletTransaction.prototype, "currency", 2);
|
|
4819
|
-
__decorateClass([
|
|
4820
|
-
Column53({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
|
|
4821
|
-
], StripeWalletTransaction.prototype, "type", 2);
|
|
4822
|
-
__decorateClass([
|
|
4823
|
-
Column53({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4824
|
-
], StripeWalletTransaction.prototype, "status", 2);
|
|
4825
|
-
__decorateClass([
|
|
4826
|
-
Column53({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
4827
|
-
], StripeWalletTransaction.prototype, "stripeSessionId", 2);
|
|
4828
|
-
__decorateClass([
|
|
4829
|
-
Column53({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
4830
|
-
], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
|
|
4831
|
-
__decorateClass([
|
|
4832
|
-
Column53({ name: "description", type: "text", nullable: true })
|
|
4833
|
-
], StripeWalletTransaction.prototype, "description", 2);
|
|
4834
|
-
__decorateClass([
|
|
4835
|
-
Column53({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
|
|
4836
|
-
], StripeWalletTransaction.prototype, "depositAmountCents", 2);
|
|
4837
|
-
__decorateClass([
|
|
4838
|
-
Column53({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4839
|
-
], StripeWalletTransaction.prototype, "platformFeeCents", 2);
|
|
4840
|
-
__decorateClass([
|
|
4841
|
-
Column53({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
|
|
4842
|
-
], StripeWalletTransaction.prototype, "taxCents", 2);
|
|
4843
|
-
__decorateClass([
|
|
4844
|
-
Column53({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4845
|
-
], StripeWalletTransaction.prototype, "stripeFeeCents", 2);
|
|
4846
|
-
__decorateClass([
|
|
4847
|
-
Column53({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
|
|
4848
|
-
], StripeWalletTransaction.prototype, "totalPaidCents", 2);
|
|
4849
|
-
__decorateClass([
|
|
4850
|
-
Column53({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
|
|
4851
|
-
], StripeWalletTransaction.prototype, "netReceivedCents", 2);
|
|
4852
|
-
__decorateClass([
|
|
4853
|
-
Column53({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4854
|
-
], StripeWalletTransaction.prototype, "stripeChargeId", 2);
|
|
4855
|
-
__decorateClass([
|
|
4856
|
-
Column53({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4857
|
-
], StripeWalletTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
4858
|
-
__decorateClass([
|
|
4859
|
-
Column53({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4860
|
-
], StripeWalletTransaction.prototype, "completedAt", 2);
|
|
4861
|
-
__decorateClass([
|
|
4862
|
-
Column53({ name: "transaction_for", type: "varchar", nullable: true })
|
|
4863
|
-
], StripeWalletTransaction.prototype, "transactionFor", 2);
|
|
4864
|
-
__decorateClass([
|
|
4865
|
-
Column53({ name: "meta_data", type: "varchar", nullable: true })
|
|
4866
|
-
], StripeWalletTransaction.prototype, "metaData", 2);
|
|
4867
|
-
StripeWalletTransaction = __decorateClass([
|
|
4868
|
-
Entity52("stripe_wallet_transactions")
|
|
4869
|
-
], StripeWalletTransaction);
|
|
4870
|
-
|
|
4871
|
-
// src/entities/stripe-wallet.entity.ts
|
|
4872
|
-
var StripeWalletAccountTypeEnum = /* @__PURE__ */ ((StripeWalletAccountTypeEnum2) => {
|
|
4873
|
-
StripeWalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
|
|
4874
|
-
StripeWalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
4875
|
-
return StripeWalletAccountTypeEnum2;
|
|
4876
|
-
})(StripeWalletAccountTypeEnum || {});
|
|
4877
|
-
var StripeWalletOnboardingStatusEnum = /* @__PURE__ */ ((StripeWalletOnboardingStatusEnum2) => {
|
|
4878
|
-
StripeWalletOnboardingStatusEnum2["PENDING"] = "PENDING";
|
|
4879
|
-
StripeWalletOnboardingStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
4880
|
-
return StripeWalletOnboardingStatusEnum2;
|
|
4881
|
-
})(StripeWalletOnboardingStatusEnum || {});
|
|
4882
|
-
var StripeWallet = class extends BaseEntity {
|
|
4883
|
-
};
|
|
4884
|
-
__decorateClass([
|
|
4885
|
-
Column54({ name: "user_id", type: "integer", nullable: true }),
|
|
4886
|
-
Index46()
|
|
4887
|
-
], StripeWallet.prototype, "userId", 2);
|
|
4888
|
-
__decorateClass([
|
|
4889
|
-
OneToOne6(() => User, (user) => user.stripeWallet),
|
|
4890
|
-
JoinColumn48({ name: "user_id" })
|
|
4891
|
-
], StripeWallet.prototype, "user", 2);
|
|
4892
|
-
__decorateClass([
|
|
4893
|
-
Column54({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
|
|
4894
|
-
], StripeWallet.prototype, "accountType", 2);
|
|
4895
|
-
__decorateClass([
|
|
4896
|
-
Column54({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
4897
|
-
], StripeWallet.prototype, "stripeAccountId", 2);
|
|
4898
|
-
__decorateClass([
|
|
4899
|
-
Column54({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
4900
|
-
], StripeWallet.prototype, "stripeCustomerId", 2);
|
|
4901
|
-
__decorateClass([
|
|
4902
|
-
Column54({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4903
|
-
], StripeWallet.prototype, "walletBalance", 2);
|
|
4904
|
-
__decorateClass([
|
|
4905
|
-
Column54({ name: "wallet_balance_cents", type: "bigint", default: 0 })
|
|
4906
|
-
], StripeWallet.prototype, "walletBalanceCents", 2);
|
|
4907
|
-
__decorateClass([
|
|
4908
|
-
Column54({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
|
|
4909
|
-
], StripeWallet.prototype, "onboardingStatus", 2);
|
|
4910
|
-
__decorateClass([
|
|
4911
|
-
Column54({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
4912
|
-
], StripeWallet.prototype, "stripeMetadata", 2);
|
|
4913
|
-
__decorateClass([
|
|
4914
|
-
OneToMany18(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
|
|
4915
|
-
], StripeWallet.prototype, "transactions", 2);
|
|
4916
|
-
StripeWallet = __decorateClass([
|
|
4917
|
-
Entity53("stripe_wallets")
|
|
4918
|
-
], StripeWallet);
|
|
4919
|
-
|
|
4920
4785
|
// src/entities/signature.entity.ts
|
|
4921
4786
|
import {
|
|
4922
|
-
Entity as
|
|
4923
|
-
Column as
|
|
4924
|
-
Index as
|
|
4925
|
-
ManyToOne as
|
|
4926
|
-
JoinColumn as
|
|
4787
|
+
Entity as Entity52,
|
|
4788
|
+
Column as Column53,
|
|
4789
|
+
Index as Index45,
|
|
4790
|
+
ManyToOne as ManyToOne47,
|
|
4791
|
+
JoinColumn as JoinColumn47
|
|
4927
4792
|
} from "typeorm";
|
|
4928
4793
|
var Signature = class extends BaseEntity {
|
|
4929
4794
|
};
|
|
4930
4795
|
// individual index to find profile by user
|
|
4931
4796
|
__decorateClass([
|
|
4932
|
-
|
|
4933
|
-
|
|
4797
|
+
Column53({ name: "user_id", type: "integer", nullable: true }),
|
|
4798
|
+
Index45()
|
|
4934
4799
|
], Signature.prototype, "userId", 2);
|
|
4935
4800
|
__decorateClass([
|
|
4936
|
-
|
|
4937
|
-
|
|
4801
|
+
ManyToOne47(() => User, (user) => user.signatures),
|
|
4802
|
+
JoinColumn47({ name: "user_id" })
|
|
4938
4803
|
], Signature.prototype, "user", 2);
|
|
4939
4804
|
__decorateClass([
|
|
4940
|
-
|
|
4805
|
+
Column53({ name: "signature_url", type: "text", nullable: true })
|
|
4941
4806
|
], Signature.prototype, "signatureUrl", 2);
|
|
4942
4807
|
Signature = __decorateClass([
|
|
4943
|
-
|
|
4808
|
+
Entity52("signatures")
|
|
4944
4809
|
], Signature);
|
|
4945
4810
|
|
|
4946
4811
|
// src/entities/dispute.entity.ts
|
|
4947
|
-
import { Entity as
|
|
4812
|
+
import { Entity as Entity53, Column as Column54, Index as Index46, JoinColumn as JoinColumn48, ManyToOne as ManyToOne48 } from "typeorm";
|
|
4948
4813
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
4949
4814
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
4950
4815
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -4960,20 +4825,20 @@ var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
|
4960
4825
|
var Dispute = class extends BaseEntity {
|
|
4961
4826
|
};
|
|
4962
4827
|
__decorateClass([
|
|
4963
|
-
|
|
4828
|
+
Column54({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
4964
4829
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
4965
4830
|
__decorateClass([
|
|
4966
|
-
|
|
4967
|
-
|
|
4831
|
+
Column54({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
4832
|
+
Index46()
|
|
4968
4833
|
], Dispute.prototype, "disputeType", 2);
|
|
4969
4834
|
__decorateClass([
|
|
4970
|
-
|
|
4835
|
+
Column54({ name: "description", type: "varchar", nullable: true })
|
|
4971
4836
|
], Dispute.prototype, "description", 2);
|
|
4972
4837
|
__decorateClass([
|
|
4973
|
-
|
|
4838
|
+
Column54({ name: "comment", type: "varchar", nullable: true })
|
|
4974
4839
|
], Dispute.prototype, "comment", 2);
|
|
4975
4840
|
__decorateClass([
|
|
4976
|
-
|
|
4841
|
+
Column54({
|
|
4977
4842
|
name: "status",
|
|
4978
4843
|
type: "enum",
|
|
4979
4844
|
enum: DisputeStatusEnum,
|
|
@@ -4981,31 +4846,217 @@ __decorateClass([
|
|
|
4981
4846
|
})
|
|
4982
4847
|
], Dispute.prototype, "status", 2);
|
|
4983
4848
|
__decorateClass([
|
|
4984
|
-
|
|
4985
|
-
|
|
4849
|
+
Column54({ name: "initiator_id", type: "integer" }),
|
|
4850
|
+
Index46()
|
|
4986
4851
|
], Dispute.prototype, "initiatorId", 2);
|
|
4987
4852
|
__decorateClass([
|
|
4988
|
-
|
|
4989
|
-
|
|
4853
|
+
ManyToOne48(() => User, (user) => user.initiatedDisputes),
|
|
4854
|
+
JoinColumn48({ name: "initiator_id" })
|
|
4990
4855
|
], Dispute.prototype, "initiator", 2);
|
|
4991
4856
|
__decorateClass([
|
|
4992
|
-
|
|
4993
|
-
|
|
4857
|
+
Column54({ name: "respondent_id", type: "integer", nullable: true }),
|
|
4858
|
+
Index46()
|
|
4994
4859
|
], Dispute.prototype, "respondentId", 2);
|
|
4995
4860
|
__decorateClass([
|
|
4996
|
-
|
|
4997
|
-
|
|
4861
|
+
ManyToOne48(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
4862
|
+
JoinColumn48({ name: "respondent_id" })
|
|
4998
4863
|
], Dispute.prototype, "respondent", 2);
|
|
4999
4864
|
__decorateClass([
|
|
5000
|
-
|
|
4865
|
+
Column54({ name: "attachments", type: "jsonb", nullable: true })
|
|
5001
4866
|
], Dispute.prototype, "attachments", 2);
|
|
5002
4867
|
__decorateClass([
|
|
5003
|
-
|
|
4868
|
+
Column54({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5004
4869
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5005
4870
|
Dispute = __decorateClass([
|
|
5006
|
-
|
|
4871
|
+
Entity53("disputes")
|
|
5007
4872
|
], Dispute);
|
|
5008
4873
|
|
|
4874
|
+
// src/entities/stripe-transaction.entity.ts
|
|
4875
|
+
import { Entity as Entity54, Column as Column55, Index as Index47, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
|
|
4876
|
+
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
4877
|
+
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
4878
|
+
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
4879
|
+
StripeTransactionTypeEnum2["WITHDRAW"] = "WITHDRAW";
|
|
4880
|
+
StripeTransactionTypeEnum2["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
|
|
4881
|
+
StripeTransactionTypeEnum2["REFUND"] = "REFUND";
|
|
4882
|
+
return StripeTransactionTypeEnum2;
|
|
4883
|
+
})(StripeTransactionTypeEnum || {});
|
|
4884
|
+
var StripeTransactionStatusEnum = /* @__PURE__ */ ((StripeTransactionStatusEnum2) => {
|
|
4885
|
+
StripeTransactionStatusEnum2["PENDING"] = "PENDING";
|
|
4886
|
+
StripeTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
|
|
4887
|
+
StripeTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
|
|
4888
|
+
StripeTransactionStatusEnum2["FAILED"] = "FAILED";
|
|
4889
|
+
StripeTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
4890
|
+
return StripeTransactionStatusEnum2;
|
|
4891
|
+
})(StripeTransactionStatusEnum || {});
|
|
4892
|
+
var StripeTransaction = class extends BaseEntity {
|
|
4893
|
+
};
|
|
4894
|
+
__decorateClass([
|
|
4895
|
+
Column55({ name: "user_id", type: "integer", nullable: true }),
|
|
4896
|
+
Index47()
|
|
4897
|
+
], StripeTransaction.prototype, "userId", 2);
|
|
4898
|
+
__decorateClass([
|
|
4899
|
+
ManyToOne49(() => User, (user) => user.stripeTransactions),
|
|
4900
|
+
JoinColumn49({ name: "user_id" })
|
|
4901
|
+
], StripeTransaction.prototype, "user", 2);
|
|
4902
|
+
__decorateClass([
|
|
4903
|
+
Column55({ name: "amount", type: "bigint", nullable: true })
|
|
4904
|
+
], StripeTransaction.prototype, "amount", 2);
|
|
4905
|
+
__decorateClass([
|
|
4906
|
+
Column55({ name: "currency", type: "varchar", nullable: true })
|
|
4907
|
+
], StripeTransaction.prototype, "currency", 2);
|
|
4908
|
+
__decorateClass([
|
|
4909
|
+
Column55({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
4910
|
+
], StripeTransaction.prototype, "type", 2);
|
|
4911
|
+
__decorateClass([
|
|
4912
|
+
Column55({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4913
|
+
], StripeTransaction.prototype, "status", 2);
|
|
4914
|
+
__decorateClass([
|
|
4915
|
+
Column55({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
4916
|
+
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
4917
|
+
__decorateClass([
|
|
4918
|
+
Column55({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
4919
|
+
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
4920
|
+
__decorateClass([
|
|
4921
|
+
Column55({ name: "description", type: "text", nullable: true })
|
|
4922
|
+
], StripeTransaction.prototype, "description", 2);
|
|
4923
|
+
__decorateClass([
|
|
4924
|
+
Column55({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
|
|
4925
|
+
], StripeTransaction.prototype, "depositAmountCents", 2);
|
|
4926
|
+
__decorateClass([
|
|
4927
|
+
Column55({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4928
|
+
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
4929
|
+
__decorateClass([
|
|
4930
|
+
Column55({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
|
|
4931
|
+
], StripeTransaction.prototype, "taxCents", 2);
|
|
4932
|
+
__decorateClass([
|
|
4933
|
+
Column55({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4934
|
+
], StripeTransaction.prototype, "stripeFeeCents", 2);
|
|
4935
|
+
__decorateClass([
|
|
4936
|
+
Column55({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
|
|
4937
|
+
], StripeTransaction.prototype, "totalPaidCents", 2);
|
|
4938
|
+
__decorateClass([
|
|
4939
|
+
Column55({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
|
|
4940
|
+
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
4941
|
+
__decorateClass([
|
|
4942
|
+
Column55({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4943
|
+
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
4944
|
+
__decorateClass([
|
|
4945
|
+
Column55({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4946
|
+
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
4947
|
+
__decorateClass([
|
|
4948
|
+
Column55({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4949
|
+
], StripeTransaction.prototype, "completedAt", 2);
|
|
4950
|
+
StripeTransaction = __decorateClass([
|
|
4951
|
+
Entity54("stripe_transactions")
|
|
4952
|
+
], StripeTransaction);
|
|
4953
|
+
|
|
4954
|
+
// src/entities/wallet.entity.ts
|
|
4955
|
+
import { Entity as Entity56, Column as Column57, Index as Index49, JoinColumn as JoinColumn51, OneToOne as OneToOne6, OneToMany as OneToMany18 } from "typeorm";
|
|
4956
|
+
|
|
4957
|
+
// src/entities/wallet-transaction.entity.ts
|
|
4958
|
+
import { Entity as Entity55, Column as Column56, Index as Index48, ManyToOne as ManyToOne50, JoinColumn as JoinColumn50 } from "typeorm";
|
|
4959
|
+
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
4960
|
+
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
4961
|
+
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
4962
|
+
return WalletTransactionTypeEnum2;
|
|
4963
|
+
})(WalletTransactionTypeEnum || {});
|
|
4964
|
+
var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2) => {
|
|
4965
|
+
WalletTransactionStatusEnum2["PENDING"] = "PENDING";
|
|
4966
|
+
WalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
|
|
4967
|
+
WalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
|
|
4968
|
+
WalletTransactionStatusEnum2["FAILED"] = "FAILED";
|
|
4969
|
+
WalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
4970
|
+
return WalletTransactionStatusEnum2;
|
|
4971
|
+
})(WalletTransactionStatusEnum || {});
|
|
4972
|
+
var WalletTransaction = class extends BaseEntity {
|
|
4973
|
+
};
|
|
4974
|
+
__decorateClass([
|
|
4975
|
+
Column56({ name: "wallet_id", type: "integer", nullable: true }),
|
|
4976
|
+
Index48()
|
|
4977
|
+
], WalletTransaction.prototype, "walletId", 2);
|
|
4978
|
+
__decorateClass([
|
|
4979
|
+
ManyToOne50(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
4980
|
+
JoinColumn50({ name: "wallet_id" })
|
|
4981
|
+
], WalletTransaction.prototype, "wallet", 2);
|
|
4982
|
+
__decorateClass([
|
|
4983
|
+
Column56({ name: "amount", type: "bigint", nullable: true })
|
|
4984
|
+
], WalletTransaction.prototype, "amount", 2);
|
|
4985
|
+
__decorateClass([
|
|
4986
|
+
Column56({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
4987
|
+
], WalletTransaction.prototype, "type", 2);
|
|
4988
|
+
__decorateClass([
|
|
4989
|
+
Column56({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4990
|
+
], WalletTransaction.prototype, "status", 2);
|
|
4991
|
+
__decorateClass([
|
|
4992
|
+
Column56({ name: "description", type: "text", nullable: true })
|
|
4993
|
+
], WalletTransaction.prototype, "description", 2);
|
|
4994
|
+
__decorateClass([
|
|
4995
|
+
Column56({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4996
|
+
], WalletTransaction.prototype, "completedAt", 2);
|
|
4997
|
+
__decorateClass([
|
|
4998
|
+
Column56({ name: "transaction_for", type: "varchar", nullable: true })
|
|
4999
|
+
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5000
|
+
__decorateClass([
|
|
5001
|
+
Column56({ name: "meta_data", type: "varchar", nullable: true })
|
|
5002
|
+
], WalletTransaction.prototype, "metaData", 2);
|
|
5003
|
+
__decorateClass([
|
|
5004
|
+
Column56({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5005
|
+
Index48()
|
|
5006
|
+
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5007
|
+
WalletTransaction = __decorateClass([
|
|
5008
|
+
Entity55("wallet_transactions")
|
|
5009
|
+
], WalletTransaction);
|
|
5010
|
+
|
|
5011
|
+
// src/entities/wallet.entity.ts
|
|
5012
|
+
var WalletAccountTypeEnum = /* @__PURE__ */ ((WalletAccountTypeEnum2) => {
|
|
5013
|
+
WalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
|
|
5014
|
+
WalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
5015
|
+
return WalletAccountTypeEnum2;
|
|
5016
|
+
})(WalletAccountTypeEnum || {});
|
|
5017
|
+
var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2) => {
|
|
5018
|
+
WalletOnboardingStatusEnum2["PENDING"] = "PENDING";
|
|
5019
|
+
WalletOnboardingStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
5020
|
+
return WalletOnboardingStatusEnum2;
|
|
5021
|
+
})(WalletOnboardingStatusEnum || {});
|
|
5022
|
+
var Wallet = class extends BaseEntity {
|
|
5023
|
+
};
|
|
5024
|
+
__decorateClass([
|
|
5025
|
+
Column57({ name: "user_id", type: "integer", nullable: true }),
|
|
5026
|
+
Index49()
|
|
5027
|
+
], Wallet.prototype, "userId", 2);
|
|
5028
|
+
__decorateClass([
|
|
5029
|
+
OneToOne6(() => User, (user) => user.wallet),
|
|
5030
|
+
JoinColumn51({ name: "user_id" })
|
|
5031
|
+
], Wallet.prototype, "user", 2);
|
|
5032
|
+
__decorateClass([
|
|
5033
|
+
Column57({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5034
|
+
], Wallet.prototype, "accountType", 2);
|
|
5035
|
+
__decorateClass([
|
|
5036
|
+
Column57({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5037
|
+
], Wallet.prototype, "stripeAccountId", 2);
|
|
5038
|
+
__decorateClass([
|
|
5039
|
+
Column57({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5040
|
+
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5041
|
+
__decorateClass([
|
|
5042
|
+
Column57({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
5043
|
+
], Wallet.prototype, "walletBalance", 2);
|
|
5044
|
+
__decorateClass([
|
|
5045
|
+
Column57({ name: "wallet_balance_cents", type: "bigint", default: 0 })
|
|
5046
|
+
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5047
|
+
__decorateClass([
|
|
5048
|
+
Column57({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5049
|
+
], Wallet.prototype, "onboardingStatus", 2);
|
|
5050
|
+
__decorateClass([
|
|
5051
|
+
Column57({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5052
|
+
], Wallet.prototype, "stripeMetadata", 2);
|
|
5053
|
+
__decorateClass([
|
|
5054
|
+
OneToMany18(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5055
|
+
], Wallet.prototype, "walletTransactions", 2);
|
|
5056
|
+
Wallet = __decorateClass([
|
|
5057
|
+
Entity56("wallets")
|
|
5058
|
+
], Wallet);
|
|
5059
|
+
|
|
5009
5060
|
// src/entities/user.entity.ts
|
|
5010
5061
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
5011
5062
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -5031,51 +5082,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5031
5082
|
var User = class extends BaseEntity {
|
|
5032
5083
|
};
|
|
5033
5084
|
__decorateClass([
|
|
5034
|
-
|
|
5085
|
+
Column58({ name: "unique_id", type: "varchar", unique: true })
|
|
5035
5086
|
], User.prototype, "uniqueId", 2);
|
|
5036
5087
|
__decorateClass([
|
|
5037
|
-
|
|
5038
|
-
|
|
5088
|
+
Column58({ name: "parent_id", type: "integer", nullable: true }),
|
|
5089
|
+
Index50()
|
|
5039
5090
|
], User.prototype, "parentId", 2);
|
|
5040
5091
|
__decorateClass([
|
|
5041
|
-
|
|
5042
|
-
|
|
5092
|
+
ManyToOne51(() => User, (user) => user.children, { nullable: true }),
|
|
5093
|
+
JoinColumn52({ name: "parent_id" })
|
|
5043
5094
|
], User.prototype, "parent", 2);
|
|
5044
5095
|
__decorateClass([
|
|
5045
5096
|
OneToMany19(() => User, (user) => user.parent)
|
|
5046
5097
|
], User.prototype, "children", 2);
|
|
5047
5098
|
__decorateClass([
|
|
5048
|
-
|
|
5099
|
+
Column58({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5049
5100
|
], User.prototype, "username", 2);
|
|
5050
5101
|
__decorateClass([
|
|
5051
|
-
|
|
5102
|
+
Column58({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5052
5103
|
], User.prototype, "firstName", 2);
|
|
5053
5104
|
__decorateClass([
|
|
5054
|
-
|
|
5105
|
+
Column58({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5055
5106
|
], User.prototype, "lastName", 2);
|
|
5056
5107
|
__decorateClass([
|
|
5057
|
-
|
|
5108
|
+
Column58({ name: "date_of_birth", type: "date", nullable: true })
|
|
5058
5109
|
], User.prototype, "dateOfBirth", 2);
|
|
5059
5110
|
__decorateClass([
|
|
5060
|
-
|
|
5111
|
+
Column58({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5061
5112
|
], User.prototype, "gender", 2);
|
|
5062
5113
|
__decorateClass([
|
|
5063
|
-
|
|
5114
|
+
Column58({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5064
5115
|
], User.prototype, "profilePictureUrl", 2);
|
|
5065
5116
|
__decorateClass([
|
|
5066
|
-
|
|
5117
|
+
Column58({ name: "email", type: "varchar", unique: true })
|
|
5067
5118
|
], User.prototype, "email", 2);
|
|
5068
5119
|
__decorateClass([
|
|
5069
|
-
|
|
5120
|
+
Column58({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5070
5121
|
], User.prototype, "mobileCode", 2);
|
|
5071
5122
|
__decorateClass([
|
|
5072
|
-
|
|
5123
|
+
Column58({ name: "mobile", type: "varchar", nullable: true })
|
|
5073
5124
|
], User.prototype, "mobile", 2);
|
|
5074
5125
|
__decorateClass([
|
|
5075
|
-
|
|
5126
|
+
Column58({ name: "password", type: "varchar", nullable: true })
|
|
5076
5127
|
], User.prototype, "password", 2);
|
|
5077
5128
|
__decorateClass([
|
|
5078
|
-
|
|
5129
|
+
Column58({
|
|
5079
5130
|
name: "account_type",
|
|
5080
5131
|
type: "enum",
|
|
5081
5132
|
enum: AccountType,
|
|
@@ -5083,7 +5134,7 @@ __decorateClass([
|
|
|
5083
5134
|
})
|
|
5084
5135
|
], User.prototype, "accountType", 2);
|
|
5085
5136
|
__decorateClass([
|
|
5086
|
-
|
|
5137
|
+
Column58({
|
|
5087
5138
|
name: "account_status",
|
|
5088
5139
|
type: "enum",
|
|
5089
5140
|
enum: AccountStatus,
|
|
@@ -5091,42 +5142,42 @@ __decorateClass([
|
|
|
5091
5142
|
})
|
|
5092
5143
|
], User.prototype, "accountStatus", 2);
|
|
5093
5144
|
__decorateClass([
|
|
5094
|
-
|
|
5145
|
+
Column58({ name: "is_email_verified", type: "boolean", default: false })
|
|
5095
5146
|
], User.prototype, "isEmailVerified", 2);
|
|
5096
5147
|
__decorateClass([
|
|
5097
|
-
|
|
5148
|
+
Column58({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5098
5149
|
], User.prototype, "isMobileVerified", 2);
|
|
5099
5150
|
__decorateClass([
|
|
5100
|
-
|
|
5151
|
+
Column58({ name: "is_social", type: "boolean", default: false })
|
|
5101
5152
|
], User.prototype, "isSocial", 2);
|
|
5102
5153
|
__decorateClass([
|
|
5103
|
-
|
|
5154
|
+
Column58({
|
|
5104
5155
|
name: "last_login_at",
|
|
5105
5156
|
type: "timestamp with time zone",
|
|
5106
5157
|
nullable: true
|
|
5107
5158
|
})
|
|
5108
5159
|
], User.prototype, "lastLoginAt", 2);
|
|
5109
5160
|
__decorateClass([
|
|
5110
|
-
|
|
5161
|
+
Column58({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5111
5162
|
], User.prototype, "lastLoginIp", 2);
|
|
5112
5163
|
__decorateClass([
|
|
5113
|
-
|
|
5164
|
+
Column58({ name: "reset_token", type: "varchar", nullable: true })
|
|
5114
5165
|
], User.prototype, "resetToken", 2);
|
|
5115
5166
|
__decorateClass([
|
|
5116
|
-
|
|
5167
|
+
Column58({
|
|
5117
5168
|
name: "reset_token_expire_at",
|
|
5118
5169
|
type: "timestamp with time zone",
|
|
5119
5170
|
nullable: true
|
|
5120
5171
|
})
|
|
5121
5172
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5122
5173
|
__decorateClass([
|
|
5123
|
-
|
|
5174
|
+
Column58({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5124
5175
|
], User.prototype, "setPasswordToken", 2);
|
|
5125
5176
|
__decorateClass([
|
|
5126
5177
|
OneToMany19(() => RefreshToken, (token) => token.user)
|
|
5127
5178
|
], User.prototype, "refreshTokens", 2);
|
|
5128
5179
|
__decorateClass([
|
|
5129
|
-
|
|
5180
|
+
Column58({
|
|
5130
5181
|
name: "provider",
|
|
5131
5182
|
type: "enum",
|
|
5132
5183
|
enum: Provider,
|
|
@@ -5135,19 +5186,19 @@ __decorateClass([
|
|
|
5135
5186
|
})
|
|
5136
5187
|
], User.prototype, "provider", 2);
|
|
5137
5188
|
__decorateClass([
|
|
5138
|
-
|
|
5189
|
+
Column58({ name: "provider_token", type: "varchar", nullable: true })
|
|
5139
5190
|
], User.prototype, "providerToken", 2);
|
|
5140
5191
|
__decorateClass([
|
|
5141
|
-
|
|
5192
|
+
Column58({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5142
5193
|
], User.prototype, "linkedInId", 2);
|
|
5143
5194
|
__decorateClass([
|
|
5144
|
-
|
|
5195
|
+
Column58({ name: "google_id", type: "varchar", nullable: true })
|
|
5145
5196
|
], User.prototype, "googleId", 2);
|
|
5146
5197
|
__decorateClass([
|
|
5147
|
-
|
|
5198
|
+
Column58({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5148
5199
|
], User.prototype, "gitLabsId", 2);
|
|
5149
5200
|
__decorateClass([
|
|
5150
|
-
|
|
5201
|
+
Column58({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5151
5202
|
], User.prototype, "onBoardedBy", 2);
|
|
5152
5203
|
__decorateClass([
|
|
5153
5204
|
OneToMany19(() => Otp, (otp) => otp.user)
|
|
@@ -5281,9 +5332,6 @@ __decorateClass([
|
|
|
5281
5332
|
__decorateClass([
|
|
5282
5333
|
OneToMany19(() => Contract, (contract) => contract.freelancer)
|
|
5283
5334
|
], User.prototype, "freelancerContracts", 2);
|
|
5284
|
-
__decorateClass([
|
|
5285
|
-
OneToOne7(() => StripeWallet, (stripeWallet) => stripeWallet.user)
|
|
5286
|
-
], User.prototype, "stripeWallet", 2);
|
|
5287
5335
|
__decorateClass([
|
|
5288
5336
|
OneToOne7(() => Signature, (signature) => signature.user)
|
|
5289
5337
|
], User.prototype, "signatures", 2);
|
|
@@ -5317,8 +5365,14 @@ __decorateClass([
|
|
|
5317
5365
|
__decorateClass([
|
|
5318
5366
|
OneToMany19(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
5319
5367
|
], User.prototype, "respondentDisputes", 2);
|
|
5368
|
+
__decorateClass([
|
|
5369
|
+
OneToOne7(() => Wallet, (wallet) => wallet.user)
|
|
5370
|
+
], User.prototype, "wallet", 2);
|
|
5371
|
+
__decorateClass([
|
|
5372
|
+
OneToMany19(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
5373
|
+
], User.prototype, "stripeTransactions", 2);
|
|
5320
5374
|
User = __decorateClass([
|
|
5321
|
-
|
|
5375
|
+
Entity57("users")
|
|
5322
5376
|
], User);
|
|
5323
5377
|
|
|
5324
5378
|
// src/entities/rating.entity.ts
|
|
@@ -5330,36 +5384,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
5330
5384
|
var Rating = class extends BaseEntity {
|
|
5331
5385
|
};
|
|
5332
5386
|
__decorateClass([
|
|
5333
|
-
|
|
5334
|
-
|
|
5387
|
+
Column59({ name: "reviewer_id", type: "integer" }),
|
|
5388
|
+
Index51()
|
|
5335
5389
|
], Rating.prototype, "reviewer_id", 2);
|
|
5336
5390
|
__decorateClass([
|
|
5337
|
-
|
|
5338
|
-
|
|
5391
|
+
ManyToOne52(() => User, { onDelete: "CASCADE" }),
|
|
5392
|
+
JoinColumn53({ name: "reviewer_id" })
|
|
5339
5393
|
], Rating.prototype, "reviewer", 2);
|
|
5340
5394
|
__decorateClass([
|
|
5341
|
-
|
|
5342
|
-
|
|
5395
|
+
Column59({ name: "reviewee_id", type: "integer" }),
|
|
5396
|
+
Index51()
|
|
5343
5397
|
], Rating.prototype, "reviewee_id", 2);
|
|
5344
5398
|
__decorateClass([
|
|
5345
|
-
|
|
5346
|
-
|
|
5399
|
+
ManyToOne52(() => User, { onDelete: "CASCADE" }),
|
|
5400
|
+
JoinColumn53({ name: "reviewee_id" })
|
|
5347
5401
|
], Rating.prototype, "reviewee", 2);
|
|
5348
5402
|
__decorateClass([
|
|
5349
|
-
|
|
5403
|
+
Column59({
|
|
5350
5404
|
type: "enum",
|
|
5351
5405
|
enum: RatingTypeEnum,
|
|
5352
5406
|
nullable: true
|
|
5353
5407
|
})
|
|
5354
5408
|
], Rating.prototype, "ratingType", 2);
|
|
5355
5409
|
__decorateClass([
|
|
5356
|
-
|
|
5410
|
+
Column59({ type: "integer", nullable: true })
|
|
5357
5411
|
], Rating.prototype, "rating", 2);
|
|
5358
5412
|
__decorateClass([
|
|
5359
|
-
|
|
5413
|
+
Column59({ type: "text", nullable: true })
|
|
5360
5414
|
], Rating.prototype, "review", 2);
|
|
5361
5415
|
Rating = __decorateClass([
|
|
5362
|
-
|
|
5416
|
+
Entity58("ratings")
|
|
5363
5417
|
], Rating);
|
|
5364
5418
|
|
|
5365
5419
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -7239,11 +7293,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
7239
7293
|
};
|
|
7240
7294
|
|
|
7241
7295
|
// src/entities/sequence-generator.entity.ts
|
|
7242
|
-
import { Entity as
|
|
7296
|
+
import { Entity as Entity59, Column as Column60 } from "typeorm";
|
|
7243
7297
|
var SequenceGenerator = class extends BaseEntity {
|
|
7244
7298
|
};
|
|
7245
7299
|
__decorateClass([
|
|
7246
|
-
|
|
7300
|
+
Column60({
|
|
7247
7301
|
name: "module",
|
|
7248
7302
|
type: "varchar",
|
|
7249
7303
|
length: 50,
|
|
@@ -7252,7 +7306,7 @@ __decorateClass([
|
|
|
7252
7306
|
})
|
|
7253
7307
|
], SequenceGenerator.prototype, "module", 2);
|
|
7254
7308
|
__decorateClass([
|
|
7255
|
-
|
|
7309
|
+
Column60({
|
|
7256
7310
|
name: "prefix",
|
|
7257
7311
|
type: "varchar",
|
|
7258
7312
|
length: 10,
|
|
@@ -7261,7 +7315,7 @@ __decorateClass([
|
|
|
7261
7315
|
})
|
|
7262
7316
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
7263
7317
|
__decorateClass([
|
|
7264
|
-
|
|
7318
|
+
Column60({
|
|
7265
7319
|
name: "last_sequence",
|
|
7266
7320
|
type: "int",
|
|
7267
7321
|
nullable: false,
|
|
@@ -7269,7 +7323,7 @@ __decorateClass([
|
|
|
7269
7323
|
})
|
|
7270
7324
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
7271
7325
|
__decorateClass([
|
|
7272
|
-
|
|
7326
|
+
Column60({
|
|
7273
7327
|
name: "year",
|
|
7274
7328
|
type: "int",
|
|
7275
7329
|
nullable: true,
|
|
@@ -7277,11 +7331,11 @@ __decorateClass([
|
|
|
7277
7331
|
})
|
|
7278
7332
|
], SequenceGenerator.prototype, "year", 2);
|
|
7279
7333
|
SequenceGenerator = __decorateClass([
|
|
7280
|
-
|
|
7334
|
+
Entity59("sequence_generators")
|
|
7281
7335
|
], SequenceGenerator);
|
|
7282
7336
|
|
|
7283
7337
|
// src/entities/question.entity.ts
|
|
7284
|
-
import { Entity as
|
|
7338
|
+
import { Entity as Entity60, Column as Column61 } from "typeorm";
|
|
7285
7339
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
7286
7340
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
7287
7341
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -7290,16 +7344,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
7290
7344
|
var Question = class extends BaseEntity {
|
|
7291
7345
|
};
|
|
7292
7346
|
__decorateClass([
|
|
7293
|
-
|
|
7347
|
+
Column61({ name: "question", type: "varchar" })
|
|
7294
7348
|
], Question.prototype, "question", 2);
|
|
7295
7349
|
__decorateClass([
|
|
7296
|
-
|
|
7350
|
+
Column61({ name: "hint", type: "varchar", nullable: true })
|
|
7297
7351
|
], Question.prototype, "hint", 2);
|
|
7298
7352
|
__decorateClass([
|
|
7299
|
-
|
|
7353
|
+
Column61({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7300
7354
|
], Question.prototype, "slug", 2);
|
|
7301
7355
|
__decorateClass([
|
|
7302
|
-
|
|
7356
|
+
Column61({
|
|
7303
7357
|
name: "question_for",
|
|
7304
7358
|
type: "enum",
|
|
7305
7359
|
enum: QuestionFor,
|
|
@@ -7307,119 +7361,119 @@ __decorateClass([
|
|
|
7307
7361
|
})
|
|
7308
7362
|
], Question.prototype, "questionFor", 2);
|
|
7309
7363
|
__decorateClass([
|
|
7310
|
-
|
|
7364
|
+
Column61({ name: "type", type: "varchar", nullable: true })
|
|
7311
7365
|
], Question.prototype, "type", 2);
|
|
7312
7366
|
__decorateClass([
|
|
7313
|
-
|
|
7367
|
+
Column61({ name: "options", type: "jsonb", nullable: true })
|
|
7314
7368
|
], Question.prototype, "options", 2);
|
|
7315
7369
|
__decorateClass([
|
|
7316
|
-
|
|
7370
|
+
Column61({ name: "is_active", type: "boolean", default: false })
|
|
7317
7371
|
], Question.prototype, "isActive", 2);
|
|
7318
7372
|
Question = __decorateClass([
|
|
7319
|
-
|
|
7373
|
+
Entity60("questions")
|
|
7320
7374
|
], Question);
|
|
7321
7375
|
|
|
7322
7376
|
// src/entities/skill.entity.ts
|
|
7323
|
-
import { Entity as
|
|
7377
|
+
import { Entity as Entity61, Column as Column62 } from "typeorm";
|
|
7324
7378
|
var Skill = class extends BaseEntity {
|
|
7325
7379
|
};
|
|
7326
7380
|
__decorateClass([
|
|
7327
|
-
|
|
7381
|
+
Column62({ name: "name", type: "varchar", nullable: true })
|
|
7328
7382
|
], Skill.prototype, "name", 2);
|
|
7329
7383
|
__decorateClass([
|
|
7330
|
-
|
|
7384
|
+
Column62({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7331
7385
|
], Skill.prototype, "slug", 2);
|
|
7332
7386
|
__decorateClass([
|
|
7333
|
-
|
|
7387
|
+
Column62({ name: "is_active", type: "boolean", default: false })
|
|
7334
7388
|
], Skill.prototype, "isActive", 2);
|
|
7335
7389
|
Skill = __decorateClass([
|
|
7336
|
-
|
|
7390
|
+
Entity61("skills")
|
|
7337
7391
|
], Skill);
|
|
7338
7392
|
|
|
7339
7393
|
// src/entities/job-role.entity.ts
|
|
7340
|
-
import { Entity as
|
|
7394
|
+
import { Entity as Entity62, Column as Column63 } from "typeorm";
|
|
7341
7395
|
var JobRoles = class extends BaseEntity {
|
|
7342
7396
|
};
|
|
7343
7397
|
__decorateClass([
|
|
7344
|
-
|
|
7398
|
+
Column63({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7345
7399
|
], JobRoles.prototype, "slug", 2);
|
|
7346
7400
|
__decorateClass([
|
|
7347
|
-
|
|
7401
|
+
Column63({ name: "name", type: "varchar", nullable: true })
|
|
7348
7402
|
], JobRoles.prototype, "name", 2);
|
|
7349
7403
|
__decorateClass([
|
|
7350
|
-
|
|
7404
|
+
Column63({ name: "is_active", type: "boolean", default: true })
|
|
7351
7405
|
], JobRoles.prototype, "isActive", 2);
|
|
7352
7406
|
JobRoles = __decorateClass([
|
|
7353
|
-
|
|
7407
|
+
Entity62("job_roles")
|
|
7354
7408
|
], JobRoles);
|
|
7355
7409
|
|
|
7356
7410
|
// src/entities/plan.entity.ts
|
|
7357
|
-
import { Entity as
|
|
7411
|
+
import { Entity as Entity64, Column as Column65, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
7358
7412
|
|
|
7359
7413
|
// src/entities/feature.entity.ts
|
|
7360
|
-
import { Entity as
|
|
7414
|
+
import { Entity as Entity63, Column as Column64, ManyToMany as ManyToMany2 } from "typeorm";
|
|
7361
7415
|
var Feature = class extends BaseEntity {
|
|
7362
7416
|
};
|
|
7363
7417
|
__decorateClass([
|
|
7364
|
-
|
|
7418
|
+
Column64({ name: "name", type: "varchar", unique: true })
|
|
7365
7419
|
], Feature.prototype, "name", 2);
|
|
7366
7420
|
__decorateClass([
|
|
7367
7421
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
7368
7422
|
], Feature.prototype, "plans", 2);
|
|
7369
7423
|
Feature = __decorateClass([
|
|
7370
|
-
|
|
7424
|
+
Entity63("features")
|
|
7371
7425
|
], Feature);
|
|
7372
7426
|
|
|
7373
7427
|
// src/entities/plan.entity.ts
|
|
7374
7428
|
var Plan = class extends BaseEntity {
|
|
7375
7429
|
};
|
|
7376
7430
|
__decorateClass([
|
|
7377
|
-
|
|
7431
|
+
Column65({ name: "name", type: "varchar", unique: true })
|
|
7378
7432
|
], Plan.prototype, "name", 2);
|
|
7379
7433
|
__decorateClass([
|
|
7380
|
-
|
|
7434
|
+
Column65({ name: "description", type: "varchar", nullable: true })
|
|
7381
7435
|
], Plan.prototype, "description", 2);
|
|
7382
7436
|
__decorateClass([
|
|
7383
|
-
|
|
7437
|
+
Column65({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
7384
7438
|
], Plan.prototype, "price", 2);
|
|
7385
7439
|
__decorateClass([
|
|
7386
|
-
|
|
7440
|
+
Column65({ name: "billing_period", type: "varchar" })
|
|
7387
7441
|
], Plan.prototype, "billingPeriod", 2);
|
|
7388
7442
|
__decorateClass([
|
|
7389
|
-
|
|
7443
|
+
Column65({ name: "is_current", type: "boolean", default: false })
|
|
7390
7444
|
], Plan.prototype, "isCurrent", 2);
|
|
7391
7445
|
__decorateClass([
|
|
7392
7446
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
7393
7447
|
JoinTable()
|
|
7394
7448
|
], Plan.prototype, "features", 2);
|
|
7395
7449
|
Plan = __decorateClass([
|
|
7396
|
-
|
|
7450
|
+
Entity64("plans")
|
|
7397
7451
|
], Plan);
|
|
7398
7452
|
|
|
7399
7453
|
// src/entities/cms.entity.ts
|
|
7400
|
-
import { Entity as
|
|
7454
|
+
import { Entity as Entity65, Column as Column66 } from "typeorm";
|
|
7401
7455
|
var Cms = class extends BaseEntity {
|
|
7402
7456
|
};
|
|
7403
7457
|
__decorateClass([
|
|
7404
|
-
|
|
7458
|
+
Column66({ name: "title", type: "varchar", nullable: true })
|
|
7405
7459
|
], Cms.prototype, "title", 2);
|
|
7406
7460
|
__decorateClass([
|
|
7407
|
-
|
|
7461
|
+
Column66({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7408
7462
|
], Cms.prototype, "slug", 2);
|
|
7409
7463
|
__decorateClass([
|
|
7410
|
-
|
|
7464
|
+
Column66({ name: "content", type: "varchar", nullable: true })
|
|
7411
7465
|
], Cms.prototype, "content", 2);
|
|
7412
7466
|
__decorateClass([
|
|
7413
|
-
|
|
7467
|
+
Column66({ name: "is_active", type: "boolean", default: true })
|
|
7414
7468
|
], Cms.prototype, "isActive", 2);
|
|
7415
7469
|
Cms = __decorateClass([
|
|
7416
|
-
|
|
7470
|
+
Entity65("cms")
|
|
7417
7471
|
], Cms);
|
|
7418
7472
|
|
|
7419
7473
|
// src/entities/lead.entity.ts
|
|
7420
7474
|
import {
|
|
7421
|
-
Entity as
|
|
7422
|
-
Column as
|
|
7475
|
+
Entity as Entity66,
|
|
7476
|
+
Column as Column67
|
|
7423
7477
|
} from "typeorm";
|
|
7424
7478
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
7425
7479
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -7429,22 +7483,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
7429
7483
|
var Lead = class extends BaseEntity {
|
|
7430
7484
|
};
|
|
7431
7485
|
__decorateClass([
|
|
7432
|
-
|
|
7486
|
+
Column67({ name: "name", type: "varchar", nullable: true })
|
|
7433
7487
|
], Lead.prototype, "name", 2);
|
|
7434
7488
|
__decorateClass([
|
|
7435
|
-
|
|
7489
|
+
Column67({ name: "mobile_code", type: "varchar", nullable: true })
|
|
7436
7490
|
], Lead.prototype, "mobileCode", 2);
|
|
7437
7491
|
__decorateClass([
|
|
7438
|
-
|
|
7492
|
+
Column67({ name: "mobile", type: "varchar", nullable: true })
|
|
7439
7493
|
], Lead.prototype, "mobile", 2);
|
|
7440
7494
|
__decorateClass([
|
|
7441
|
-
|
|
7495
|
+
Column67({ name: "email", type: "varchar", nullable: true })
|
|
7442
7496
|
], Lead.prototype, "email", 2);
|
|
7443
7497
|
__decorateClass([
|
|
7444
|
-
|
|
7498
|
+
Column67({ name: "description", type: "varchar", nullable: true })
|
|
7445
7499
|
], Lead.prototype, "description", 2);
|
|
7446
7500
|
__decorateClass([
|
|
7447
|
-
|
|
7501
|
+
Column67({
|
|
7448
7502
|
name: "category",
|
|
7449
7503
|
type: "enum",
|
|
7450
7504
|
enum: CategoryEmum,
|
|
@@ -7452,7 +7506,7 @@ __decorateClass([
|
|
|
7452
7506
|
})
|
|
7453
7507
|
], Lead.prototype, "category", 2);
|
|
7454
7508
|
Lead = __decorateClass([
|
|
7455
|
-
|
|
7509
|
+
Entity66("leads")
|
|
7456
7510
|
], Lead);
|
|
7457
7511
|
|
|
7458
7512
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -7693,7 +7747,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
7693
7747
|
], ClientFreelancerRecommendation);
|
|
7694
7748
|
|
|
7695
7749
|
// src/entities/commission.entity.ts
|
|
7696
|
-
import { Entity as
|
|
7750
|
+
import { Entity as Entity67, Column as Column68 } from "typeorm";
|
|
7697
7751
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
7698
7752
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
7699
7753
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -7702,7 +7756,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
7702
7756
|
var Commission = class extends BaseEntity {
|
|
7703
7757
|
};
|
|
7704
7758
|
__decorateClass([
|
|
7705
|
-
|
|
7759
|
+
Column68({
|
|
7706
7760
|
name: "freelancer_commission_type",
|
|
7707
7761
|
type: "enum",
|
|
7708
7762
|
enum: CommissionTypeEnum,
|
|
@@ -7710,10 +7764,10 @@ __decorateClass([
|
|
|
7710
7764
|
})
|
|
7711
7765
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
7712
7766
|
__decorateClass([
|
|
7713
|
-
|
|
7767
|
+
Column68({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
7714
7768
|
], Commission.prototype, "freelancerCommission", 2);
|
|
7715
7769
|
__decorateClass([
|
|
7716
|
-
|
|
7770
|
+
Column68({
|
|
7717
7771
|
name: "client_commission_type",
|
|
7718
7772
|
type: "enum",
|
|
7719
7773
|
enum: CommissionTypeEnum,
|
|
@@ -7721,74 +7775,74 @@ __decorateClass([
|
|
|
7721
7775
|
})
|
|
7722
7776
|
], Commission.prototype, "clientCommissionType", 2);
|
|
7723
7777
|
__decorateClass([
|
|
7724
|
-
|
|
7778
|
+
Column68({ name: "client_commission", type: "integer", default: 0 })
|
|
7725
7779
|
], Commission.prototype, "clientCommission", 2);
|
|
7726
7780
|
Commission = __decorateClass([
|
|
7727
|
-
|
|
7781
|
+
Entity67("commissions")
|
|
7728
7782
|
], Commission);
|
|
7729
7783
|
|
|
7730
7784
|
// src/entities/calendly-meeting-log.entity.ts
|
|
7731
7785
|
import {
|
|
7732
|
-
Entity as
|
|
7733
|
-
Column as
|
|
7734
|
-
Index as
|
|
7786
|
+
Entity as Entity68,
|
|
7787
|
+
Column as Column69,
|
|
7788
|
+
Index as Index52
|
|
7735
7789
|
} from "typeorm";
|
|
7736
7790
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
7737
7791
|
};
|
|
7738
7792
|
__decorateClass([
|
|
7739
|
-
|
|
7740
|
-
|
|
7793
|
+
Column69({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
7794
|
+
Index52()
|
|
7741
7795
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
7742
7796
|
__decorateClass([
|
|
7743
|
-
|
|
7797
|
+
Column69({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
7744
7798
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
7745
7799
|
__decorateClass([
|
|
7746
|
-
|
|
7800
|
+
Column69({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7747
7801
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
7748
7802
|
CalendlyMeetingLog = __decorateClass([
|
|
7749
|
-
|
|
7803
|
+
Entity68("calendly_meeting_logs")
|
|
7750
7804
|
], CalendlyMeetingLog);
|
|
7751
7805
|
|
|
7752
7806
|
// src/entities/zoom-meeting-log.entity.ts
|
|
7753
7807
|
import {
|
|
7754
|
-
Entity as
|
|
7755
|
-
Column as
|
|
7756
|
-
Index as
|
|
7808
|
+
Entity as Entity69,
|
|
7809
|
+
Column as Column70,
|
|
7810
|
+
Index as Index53
|
|
7757
7811
|
} from "typeorm";
|
|
7758
7812
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
7759
7813
|
};
|
|
7760
7814
|
__decorateClass([
|
|
7761
|
-
|
|
7762
|
-
|
|
7815
|
+
Column70({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
7816
|
+
Index53()
|
|
7763
7817
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
7764
7818
|
__decorateClass([
|
|
7765
|
-
|
|
7819
|
+
Column70({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
7766
7820
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
7767
7821
|
__decorateClass([
|
|
7768
|
-
|
|
7822
|
+
Column70({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7769
7823
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
7770
7824
|
ZoomMeetingLog = __decorateClass([
|
|
7771
|
-
|
|
7825
|
+
Entity69("zoom_meeting_logs")
|
|
7772
7826
|
], ZoomMeetingLog);
|
|
7773
7827
|
|
|
7774
7828
|
// src/entities/stripe-logs.entity.ts
|
|
7775
|
-
import { Entity as
|
|
7829
|
+
import { Entity as Entity70, Column as Column71 } from "typeorm";
|
|
7776
7830
|
var StripeLog = class extends BaseEntity {
|
|
7777
7831
|
};
|
|
7778
7832
|
__decorateClass([
|
|
7779
|
-
|
|
7833
|
+
Column71({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
7780
7834
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
7781
7835
|
__decorateClass([
|
|
7782
|
-
|
|
7836
|
+
Column71({ name: "event_type", type: "varchar", nullable: true })
|
|
7783
7837
|
], StripeLog.prototype, "eventType", 2);
|
|
7784
7838
|
__decorateClass([
|
|
7785
|
-
|
|
7839
|
+
Column71({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
7786
7840
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
7787
7841
|
__decorateClass([
|
|
7788
|
-
|
|
7842
|
+
Column71({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7789
7843
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
7790
7844
|
StripeLog = __decorateClass([
|
|
7791
|
-
|
|
7845
|
+
Entity70("stripe_logs")
|
|
7792
7846
|
], StripeLog);
|
|
7793
7847
|
export {
|
|
7794
7848
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -8022,12 +8076,9 @@ export {
|
|
|
8022
8076
|
State,
|
|
8023
8077
|
Step,
|
|
8024
8078
|
StripeLog,
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
StripeWalletTransaction,
|
|
8029
|
-
StripeWalletTransactionStatusEnum,
|
|
8030
|
-
StripeWalletTransactionTypeEnum,
|
|
8079
|
+
StripeTransaction,
|
|
8080
|
+
StripeTransactionStatusEnum,
|
|
8081
|
+
StripeTransactionTypeEnum,
|
|
8031
8082
|
SystemPreference,
|
|
8032
8083
|
SystemPreferenceDto,
|
|
8033
8084
|
SystemPreferenceKey,
|
|
@@ -8066,5 +8117,11 @@ export {
|
|
|
8066
8117
|
UserTCPAdapter,
|
|
8067
8118
|
VerifyGuestOtpDto,
|
|
8068
8119
|
VerifyGuestOtpPurposeEnum,
|
|
8120
|
+
Wallet,
|
|
8121
|
+
WalletAccountTypeEnum,
|
|
8122
|
+
WalletOnboardingStatusEnum,
|
|
8123
|
+
WalletTransaction,
|
|
8124
|
+
WalletTransactionStatusEnum,
|
|
8125
|
+
WalletTransactionTypeEnum,
|
|
8069
8126
|
ZoomMeetingLog
|
|
8070
8127
|
};
|