@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.js
CHANGED
|
@@ -258,12 +258,9 @@ __export(index_exports, {
|
|
|
258
258
|
State: () => State,
|
|
259
259
|
Step: () => Step,
|
|
260
260
|
StripeLog: () => StripeLog,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
StripeWalletTransaction: () => StripeWalletTransaction,
|
|
265
|
-
StripeWalletTransactionStatusEnum: () => StripeWalletTransactionStatusEnum,
|
|
266
|
-
StripeWalletTransactionTypeEnum: () => StripeWalletTransactionTypeEnum,
|
|
261
|
+
StripeTransaction: () => StripeTransaction,
|
|
262
|
+
StripeTransactionStatusEnum: () => StripeTransactionStatusEnum,
|
|
263
|
+
StripeTransactionTypeEnum: () => StripeTransactionTypeEnum,
|
|
267
264
|
SystemPreference: () => SystemPreference,
|
|
268
265
|
SystemPreferenceDto: () => SystemPreferenceDto,
|
|
269
266
|
SystemPreferenceKey: () => SystemPreferenceKey,
|
|
@@ -302,6 +299,12 @@ __export(index_exports, {
|
|
|
302
299
|
UserTCPAdapter: () => UserTCPAdapter,
|
|
303
300
|
VerifyGuestOtpDto: () => VerifyGuestOtpDto,
|
|
304
301
|
VerifyGuestOtpPurposeEnum: () => VerifyGuestOtpPurposeEnum,
|
|
302
|
+
Wallet: () => Wallet,
|
|
303
|
+
WalletAccountTypeEnum: () => WalletAccountTypeEnum,
|
|
304
|
+
WalletOnboardingStatusEnum: () => WalletOnboardingStatusEnum,
|
|
305
|
+
WalletTransaction: () => WalletTransaction,
|
|
306
|
+
WalletTransactionStatusEnum: () => WalletTransactionStatusEnum,
|
|
307
|
+
WalletTransactionTypeEnum: () => WalletTransactionTypeEnum,
|
|
305
308
|
ZoomMeetingLog: () => ZoomMeetingLog
|
|
306
309
|
});
|
|
307
310
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -1637,10 +1640,10 @@ var RATING_PATTERN = {
|
|
|
1637
1640
|
var import_class_validator42 = require("class-validator");
|
|
1638
1641
|
|
|
1639
1642
|
// src/entities/rating.entity.ts
|
|
1640
|
-
var
|
|
1643
|
+
var import_typeorm59 = require("typeorm");
|
|
1641
1644
|
|
|
1642
1645
|
// src/entities/user.entity.ts
|
|
1643
|
-
var
|
|
1646
|
+
var import_typeorm58 = require("typeorm");
|
|
1644
1647
|
|
|
1645
1648
|
// src/entities/base.entity.ts
|
|
1646
1649
|
var import_typeorm = require("typeorm");
|
|
@@ -4758,163 +4761,28 @@ FreelancerResume = __decorateClass([
|
|
|
4758
4761
|
(0, import_typeorm52.Entity)("freelancer_resumes")
|
|
4759
4762
|
], FreelancerResume);
|
|
4760
4763
|
|
|
4761
|
-
// src/entities/stripe-wallet.entity.ts
|
|
4762
|
-
var import_typeorm54 = require("typeorm");
|
|
4763
|
-
|
|
4764
|
-
// src/entities/stripe-wallet-transaction.entity.ts
|
|
4765
|
-
var import_typeorm53 = require("typeorm");
|
|
4766
|
-
var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
|
|
4767
|
-
StripeWalletTransactionTypeEnum2["CR"] = "CR";
|
|
4768
|
-
StripeWalletTransactionTypeEnum2["DR"] = "DR";
|
|
4769
|
-
return StripeWalletTransactionTypeEnum2;
|
|
4770
|
-
})(StripeWalletTransactionTypeEnum || {});
|
|
4771
|
-
var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
|
|
4772
|
-
StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
|
|
4773
|
-
StripeWalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
|
|
4774
|
-
StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
|
|
4775
|
-
StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
|
|
4776
|
-
StripeWalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
4777
|
-
return StripeWalletTransactionStatusEnum2;
|
|
4778
|
-
})(StripeWalletTransactionStatusEnum || {});
|
|
4779
|
-
var StripeWalletTransaction = class extends BaseEntity {
|
|
4780
|
-
};
|
|
4781
|
-
__decorateClass([
|
|
4782
|
-
(0, import_typeorm53.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
4783
|
-
(0, import_typeorm53.Index)()
|
|
4784
|
-
], StripeWalletTransaction.prototype, "walletId", 2);
|
|
4785
|
-
__decorateClass([
|
|
4786
|
-
(0, import_typeorm53.ManyToOne)(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
|
|
4787
|
-
(0, import_typeorm53.JoinColumn)({ name: "wallet_id" })
|
|
4788
|
-
], StripeWalletTransaction.prototype, "stripeWallet", 2);
|
|
4789
|
-
__decorateClass([
|
|
4790
|
-
(0, import_typeorm53.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
4791
|
-
], StripeWalletTransaction.prototype, "amount", 2);
|
|
4792
|
-
__decorateClass([
|
|
4793
|
-
(0, import_typeorm53.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
4794
|
-
], StripeWalletTransaction.prototype, "currency", 2);
|
|
4795
|
-
__decorateClass([
|
|
4796
|
-
(0, import_typeorm53.Column)({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
|
|
4797
|
-
], StripeWalletTransaction.prototype, "type", 2);
|
|
4798
|
-
__decorateClass([
|
|
4799
|
-
(0, import_typeorm53.Column)({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4800
|
-
], StripeWalletTransaction.prototype, "status", 2);
|
|
4801
|
-
__decorateClass([
|
|
4802
|
-
(0, import_typeorm53.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
4803
|
-
], StripeWalletTransaction.prototype, "stripeSessionId", 2);
|
|
4804
|
-
__decorateClass([
|
|
4805
|
-
(0, import_typeorm53.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
4806
|
-
], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
|
|
4807
|
-
__decorateClass([
|
|
4808
|
-
(0, import_typeorm53.Column)({ name: "description", type: "text", nullable: true })
|
|
4809
|
-
], StripeWalletTransaction.prototype, "description", 2);
|
|
4810
|
-
__decorateClass([
|
|
4811
|
-
(0, import_typeorm53.Column)({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
|
|
4812
|
-
], StripeWalletTransaction.prototype, "depositAmountCents", 2);
|
|
4813
|
-
__decorateClass([
|
|
4814
|
-
(0, import_typeorm53.Column)({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4815
|
-
], StripeWalletTransaction.prototype, "platformFeeCents", 2);
|
|
4816
|
-
__decorateClass([
|
|
4817
|
-
(0, import_typeorm53.Column)({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
|
|
4818
|
-
], StripeWalletTransaction.prototype, "taxCents", 2);
|
|
4819
|
-
__decorateClass([
|
|
4820
|
-
(0, import_typeorm53.Column)({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4821
|
-
], StripeWalletTransaction.prototype, "stripeFeeCents", 2);
|
|
4822
|
-
__decorateClass([
|
|
4823
|
-
(0, import_typeorm53.Column)({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
|
|
4824
|
-
], StripeWalletTransaction.prototype, "totalPaidCents", 2);
|
|
4825
|
-
__decorateClass([
|
|
4826
|
-
(0, import_typeorm53.Column)({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
|
|
4827
|
-
], StripeWalletTransaction.prototype, "netReceivedCents", 2);
|
|
4828
|
-
__decorateClass([
|
|
4829
|
-
(0, import_typeorm53.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4830
|
-
], StripeWalletTransaction.prototype, "stripeChargeId", 2);
|
|
4831
|
-
__decorateClass([
|
|
4832
|
-
(0, import_typeorm53.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4833
|
-
], StripeWalletTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
4834
|
-
__decorateClass([
|
|
4835
|
-
(0, import_typeorm53.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4836
|
-
], StripeWalletTransaction.prototype, "completedAt", 2);
|
|
4837
|
-
__decorateClass([
|
|
4838
|
-
(0, import_typeorm53.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
4839
|
-
], StripeWalletTransaction.prototype, "transactionFor", 2);
|
|
4840
|
-
__decorateClass([
|
|
4841
|
-
(0, import_typeorm53.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
4842
|
-
], StripeWalletTransaction.prototype, "metaData", 2);
|
|
4843
|
-
StripeWalletTransaction = __decorateClass([
|
|
4844
|
-
(0, import_typeorm53.Entity)("stripe_wallet_transactions")
|
|
4845
|
-
], StripeWalletTransaction);
|
|
4846
|
-
|
|
4847
|
-
// src/entities/stripe-wallet.entity.ts
|
|
4848
|
-
var StripeWalletAccountTypeEnum = /* @__PURE__ */ ((StripeWalletAccountTypeEnum2) => {
|
|
4849
|
-
StripeWalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
|
|
4850
|
-
StripeWalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
4851
|
-
return StripeWalletAccountTypeEnum2;
|
|
4852
|
-
})(StripeWalletAccountTypeEnum || {});
|
|
4853
|
-
var StripeWalletOnboardingStatusEnum = /* @__PURE__ */ ((StripeWalletOnboardingStatusEnum2) => {
|
|
4854
|
-
StripeWalletOnboardingStatusEnum2["PENDING"] = "PENDING";
|
|
4855
|
-
StripeWalletOnboardingStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
4856
|
-
return StripeWalletOnboardingStatusEnum2;
|
|
4857
|
-
})(StripeWalletOnboardingStatusEnum || {});
|
|
4858
|
-
var StripeWallet = class extends BaseEntity {
|
|
4859
|
-
};
|
|
4860
|
-
__decorateClass([
|
|
4861
|
-
(0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4862
|
-
(0, import_typeorm54.Index)()
|
|
4863
|
-
], StripeWallet.prototype, "userId", 2);
|
|
4864
|
-
__decorateClass([
|
|
4865
|
-
(0, import_typeorm54.OneToOne)(() => User, (user) => user.stripeWallet),
|
|
4866
|
-
(0, import_typeorm54.JoinColumn)({ name: "user_id" })
|
|
4867
|
-
], StripeWallet.prototype, "user", 2);
|
|
4868
|
-
__decorateClass([
|
|
4869
|
-
(0, import_typeorm54.Column)({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
|
|
4870
|
-
], StripeWallet.prototype, "accountType", 2);
|
|
4871
|
-
__decorateClass([
|
|
4872
|
-
(0, import_typeorm54.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
4873
|
-
], StripeWallet.prototype, "stripeAccountId", 2);
|
|
4874
|
-
__decorateClass([
|
|
4875
|
-
(0, import_typeorm54.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
4876
|
-
], StripeWallet.prototype, "stripeCustomerId", 2);
|
|
4877
|
-
__decorateClass([
|
|
4878
|
-
(0, import_typeorm54.Column)({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4879
|
-
], StripeWallet.prototype, "walletBalance", 2);
|
|
4880
|
-
__decorateClass([
|
|
4881
|
-
(0, import_typeorm54.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0 })
|
|
4882
|
-
], StripeWallet.prototype, "walletBalanceCents", 2);
|
|
4883
|
-
__decorateClass([
|
|
4884
|
-
(0, import_typeorm54.Column)({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
|
|
4885
|
-
], StripeWallet.prototype, "onboardingStatus", 2);
|
|
4886
|
-
__decorateClass([
|
|
4887
|
-
(0, import_typeorm54.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
4888
|
-
], StripeWallet.prototype, "stripeMetadata", 2);
|
|
4889
|
-
__decorateClass([
|
|
4890
|
-
(0, import_typeorm54.OneToMany)(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
|
|
4891
|
-
], StripeWallet.prototype, "transactions", 2);
|
|
4892
|
-
StripeWallet = __decorateClass([
|
|
4893
|
-
(0, import_typeorm54.Entity)("stripe_wallets")
|
|
4894
|
-
], StripeWallet);
|
|
4895
|
-
|
|
4896
4764
|
// src/entities/signature.entity.ts
|
|
4897
|
-
var
|
|
4765
|
+
var import_typeorm53 = require("typeorm");
|
|
4898
4766
|
var Signature = class extends BaseEntity {
|
|
4899
4767
|
};
|
|
4900
4768
|
// individual index to find profile by user
|
|
4901
4769
|
__decorateClass([
|
|
4902
|
-
(0,
|
|
4903
|
-
(0,
|
|
4770
|
+
(0, import_typeorm53.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4771
|
+
(0, import_typeorm53.Index)()
|
|
4904
4772
|
], Signature.prototype, "userId", 2);
|
|
4905
4773
|
__decorateClass([
|
|
4906
|
-
(0,
|
|
4907
|
-
(0,
|
|
4774
|
+
(0, import_typeorm53.ManyToOne)(() => User, (user) => user.signatures),
|
|
4775
|
+
(0, import_typeorm53.JoinColumn)({ name: "user_id" })
|
|
4908
4776
|
], Signature.prototype, "user", 2);
|
|
4909
4777
|
__decorateClass([
|
|
4910
|
-
(0,
|
|
4778
|
+
(0, import_typeorm53.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
4911
4779
|
], Signature.prototype, "signatureUrl", 2);
|
|
4912
4780
|
Signature = __decorateClass([
|
|
4913
|
-
(0,
|
|
4781
|
+
(0, import_typeorm53.Entity)("signatures")
|
|
4914
4782
|
], Signature);
|
|
4915
4783
|
|
|
4916
4784
|
// src/entities/dispute.entity.ts
|
|
4917
|
-
var
|
|
4785
|
+
var import_typeorm54 = require("typeorm");
|
|
4918
4786
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
4919
4787
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
4920
4788
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -4930,20 +4798,20 @@ var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
|
4930
4798
|
var Dispute = class extends BaseEntity {
|
|
4931
4799
|
};
|
|
4932
4800
|
__decorateClass([
|
|
4933
|
-
(0,
|
|
4801
|
+
(0, import_typeorm54.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
4934
4802
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
4935
4803
|
__decorateClass([
|
|
4936
|
-
(0,
|
|
4937
|
-
(0,
|
|
4804
|
+
(0, import_typeorm54.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
4805
|
+
(0, import_typeorm54.Index)()
|
|
4938
4806
|
], Dispute.prototype, "disputeType", 2);
|
|
4939
4807
|
__decorateClass([
|
|
4940
|
-
(0,
|
|
4808
|
+
(0, import_typeorm54.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4941
4809
|
], Dispute.prototype, "description", 2);
|
|
4942
4810
|
__decorateClass([
|
|
4943
|
-
(0,
|
|
4811
|
+
(0, import_typeorm54.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
4944
4812
|
], Dispute.prototype, "comment", 2);
|
|
4945
4813
|
__decorateClass([
|
|
4946
|
-
(0,
|
|
4814
|
+
(0, import_typeorm54.Column)({
|
|
4947
4815
|
name: "status",
|
|
4948
4816
|
type: "enum",
|
|
4949
4817
|
enum: DisputeStatusEnum,
|
|
@@ -4951,31 +4819,217 @@ __decorateClass([
|
|
|
4951
4819
|
})
|
|
4952
4820
|
], Dispute.prototype, "status", 2);
|
|
4953
4821
|
__decorateClass([
|
|
4954
|
-
(0,
|
|
4955
|
-
(0,
|
|
4822
|
+
(0, import_typeorm54.Column)({ name: "initiator_id", type: "integer" }),
|
|
4823
|
+
(0, import_typeorm54.Index)()
|
|
4956
4824
|
], Dispute.prototype, "initiatorId", 2);
|
|
4957
4825
|
__decorateClass([
|
|
4958
|
-
(0,
|
|
4959
|
-
(0,
|
|
4826
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
4827
|
+
(0, import_typeorm54.JoinColumn)({ name: "initiator_id" })
|
|
4960
4828
|
], Dispute.prototype, "initiator", 2);
|
|
4961
4829
|
__decorateClass([
|
|
4962
|
-
(0,
|
|
4963
|
-
(0,
|
|
4830
|
+
(0, import_typeorm54.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
4831
|
+
(0, import_typeorm54.Index)()
|
|
4964
4832
|
], Dispute.prototype, "respondentId", 2);
|
|
4965
4833
|
__decorateClass([
|
|
4966
|
-
(0,
|
|
4967
|
-
(0,
|
|
4834
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
4835
|
+
(0, import_typeorm54.JoinColumn)({ name: "respondent_id" })
|
|
4968
4836
|
], Dispute.prototype, "respondent", 2);
|
|
4969
4837
|
__decorateClass([
|
|
4970
|
-
(0,
|
|
4838
|
+
(0, import_typeorm54.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
4971
4839
|
], Dispute.prototype, "attachments", 2);
|
|
4972
4840
|
__decorateClass([
|
|
4973
|
-
(0,
|
|
4841
|
+
(0, import_typeorm54.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
4974
4842
|
], Dispute.prototype, "dynamicFields", 2);
|
|
4975
4843
|
Dispute = __decorateClass([
|
|
4976
|
-
(0,
|
|
4844
|
+
(0, import_typeorm54.Entity)("disputes")
|
|
4977
4845
|
], Dispute);
|
|
4978
4846
|
|
|
4847
|
+
// src/entities/stripe-transaction.entity.ts
|
|
4848
|
+
var import_typeorm55 = require("typeorm");
|
|
4849
|
+
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
4850
|
+
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
4851
|
+
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
4852
|
+
StripeTransactionTypeEnum2["WITHDRAW"] = "WITHDRAW";
|
|
4853
|
+
StripeTransactionTypeEnum2["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
|
|
4854
|
+
StripeTransactionTypeEnum2["REFUND"] = "REFUND";
|
|
4855
|
+
return StripeTransactionTypeEnum2;
|
|
4856
|
+
})(StripeTransactionTypeEnum || {});
|
|
4857
|
+
var StripeTransactionStatusEnum = /* @__PURE__ */ ((StripeTransactionStatusEnum2) => {
|
|
4858
|
+
StripeTransactionStatusEnum2["PENDING"] = "PENDING";
|
|
4859
|
+
StripeTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
|
|
4860
|
+
StripeTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
|
|
4861
|
+
StripeTransactionStatusEnum2["FAILED"] = "FAILED";
|
|
4862
|
+
StripeTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
4863
|
+
return StripeTransactionStatusEnum2;
|
|
4864
|
+
})(StripeTransactionStatusEnum || {});
|
|
4865
|
+
var StripeTransaction = class extends BaseEntity {
|
|
4866
|
+
};
|
|
4867
|
+
__decorateClass([
|
|
4868
|
+
(0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4869
|
+
(0, import_typeorm55.Index)()
|
|
4870
|
+
], StripeTransaction.prototype, "userId", 2);
|
|
4871
|
+
__decorateClass([
|
|
4872
|
+
(0, import_typeorm55.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
4873
|
+
(0, import_typeorm55.JoinColumn)({ name: "user_id" })
|
|
4874
|
+
], StripeTransaction.prototype, "user", 2);
|
|
4875
|
+
__decorateClass([
|
|
4876
|
+
(0, import_typeorm55.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
4877
|
+
], StripeTransaction.prototype, "amount", 2);
|
|
4878
|
+
__decorateClass([
|
|
4879
|
+
(0, import_typeorm55.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
4880
|
+
], StripeTransaction.prototype, "currency", 2);
|
|
4881
|
+
__decorateClass([
|
|
4882
|
+
(0, import_typeorm55.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
4883
|
+
], StripeTransaction.prototype, "type", 2);
|
|
4884
|
+
__decorateClass([
|
|
4885
|
+
(0, import_typeorm55.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4886
|
+
], StripeTransaction.prototype, "status", 2);
|
|
4887
|
+
__decorateClass([
|
|
4888
|
+
(0, import_typeorm55.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
4889
|
+
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
4890
|
+
__decorateClass([
|
|
4891
|
+
(0, import_typeorm55.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
4892
|
+
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
4893
|
+
__decorateClass([
|
|
4894
|
+
(0, import_typeorm55.Column)({ name: "description", type: "text", nullable: true })
|
|
4895
|
+
], StripeTransaction.prototype, "description", 2);
|
|
4896
|
+
__decorateClass([
|
|
4897
|
+
(0, import_typeorm55.Column)({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
|
|
4898
|
+
], StripeTransaction.prototype, "depositAmountCents", 2);
|
|
4899
|
+
__decorateClass([
|
|
4900
|
+
(0, import_typeorm55.Column)({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4901
|
+
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
4902
|
+
__decorateClass([
|
|
4903
|
+
(0, import_typeorm55.Column)({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
|
|
4904
|
+
], StripeTransaction.prototype, "taxCents", 2);
|
|
4905
|
+
__decorateClass([
|
|
4906
|
+
(0, import_typeorm55.Column)({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4907
|
+
], StripeTransaction.prototype, "stripeFeeCents", 2);
|
|
4908
|
+
__decorateClass([
|
|
4909
|
+
(0, import_typeorm55.Column)({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
|
|
4910
|
+
], StripeTransaction.prototype, "totalPaidCents", 2);
|
|
4911
|
+
__decorateClass([
|
|
4912
|
+
(0, import_typeorm55.Column)({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
|
|
4913
|
+
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
4914
|
+
__decorateClass([
|
|
4915
|
+
(0, import_typeorm55.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4916
|
+
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
4917
|
+
__decorateClass([
|
|
4918
|
+
(0, import_typeorm55.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4919
|
+
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
4920
|
+
__decorateClass([
|
|
4921
|
+
(0, import_typeorm55.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4922
|
+
], StripeTransaction.prototype, "completedAt", 2);
|
|
4923
|
+
StripeTransaction = __decorateClass([
|
|
4924
|
+
(0, import_typeorm55.Entity)("stripe_transactions")
|
|
4925
|
+
], StripeTransaction);
|
|
4926
|
+
|
|
4927
|
+
// src/entities/wallet.entity.ts
|
|
4928
|
+
var import_typeorm57 = require("typeorm");
|
|
4929
|
+
|
|
4930
|
+
// src/entities/wallet-transaction.entity.ts
|
|
4931
|
+
var import_typeorm56 = require("typeorm");
|
|
4932
|
+
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
4933
|
+
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
4934
|
+
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
4935
|
+
return WalletTransactionTypeEnum2;
|
|
4936
|
+
})(WalletTransactionTypeEnum || {});
|
|
4937
|
+
var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2) => {
|
|
4938
|
+
WalletTransactionStatusEnum2["PENDING"] = "PENDING";
|
|
4939
|
+
WalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
|
|
4940
|
+
WalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
|
|
4941
|
+
WalletTransactionStatusEnum2["FAILED"] = "FAILED";
|
|
4942
|
+
WalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
4943
|
+
return WalletTransactionStatusEnum2;
|
|
4944
|
+
})(WalletTransactionStatusEnum || {});
|
|
4945
|
+
var WalletTransaction = class extends BaseEntity {
|
|
4946
|
+
};
|
|
4947
|
+
__decorateClass([
|
|
4948
|
+
(0, import_typeorm56.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
4949
|
+
(0, import_typeorm56.Index)()
|
|
4950
|
+
], WalletTransaction.prototype, "walletId", 2);
|
|
4951
|
+
__decorateClass([
|
|
4952
|
+
(0, import_typeorm56.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
4953
|
+
(0, import_typeorm56.JoinColumn)({ name: "wallet_id" })
|
|
4954
|
+
], WalletTransaction.prototype, "wallet", 2);
|
|
4955
|
+
__decorateClass([
|
|
4956
|
+
(0, import_typeorm56.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
4957
|
+
], WalletTransaction.prototype, "amount", 2);
|
|
4958
|
+
__decorateClass([
|
|
4959
|
+
(0, import_typeorm56.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
4960
|
+
], WalletTransaction.prototype, "type", 2);
|
|
4961
|
+
__decorateClass([
|
|
4962
|
+
(0, import_typeorm56.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4963
|
+
], WalletTransaction.prototype, "status", 2);
|
|
4964
|
+
__decorateClass([
|
|
4965
|
+
(0, import_typeorm56.Column)({ name: "description", type: "text", nullable: true })
|
|
4966
|
+
], WalletTransaction.prototype, "description", 2);
|
|
4967
|
+
__decorateClass([
|
|
4968
|
+
(0, import_typeorm56.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4969
|
+
], WalletTransaction.prototype, "completedAt", 2);
|
|
4970
|
+
__decorateClass([
|
|
4971
|
+
(0, import_typeorm56.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
4972
|
+
], WalletTransaction.prototype, "transactionFor", 2);
|
|
4973
|
+
__decorateClass([
|
|
4974
|
+
(0, import_typeorm56.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
4975
|
+
], WalletTransaction.prototype, "metaData", 2);
|
|
4976
|
+
__decorateClass([
|
|
4977
|
+
(0, import_typeorm56.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
4978
|
+
(0, import_typeorm56.Index)()
|
|
4979
|
+
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
4980
|
+
WalletTransaction = __decorateClass([
|
|
4981
|
+
(0, import_typeorm56.Entity)("wallet_transactions")
|
|
4982
|
+
], WalletTransaction);
|
|
4983
|
+
|
|
4984
|
+
// src/entities/wallet.entity.ts
|
|
4985
|
+
var WalletAccountTypeEnum = /* @__PURE__ */ ((WalletAccountTypeEnum2) => {
|
|
4986
|
+
WalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
|
|
4987
|
+
WalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
4988
|
+
return WalletAccountTypeEnum2;
|
|
4989
|
+
})(WalletAccountTypeEnum || {});
|
|
4990
|
+
var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2) => {
|
|
4991
|
+
WalletOnboardingStatusEnum2["PENDING"] = "PENDING";
|
|
4992
|
+
WalletOnboardingStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
4993
|
+
return WalletOnboardingStatusEnum2;
|
|
4994
|
+
})(WalletOnboardingStatusEnum || {});
|
|
4995
|
+
var Wallet = class extends BaseEntity {
|
|
4996
|
+
};
|
|
4997
|
+
__decorateClass([
|
|
4998
|
+
(0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4999
|
+
(0, import_typeorm57.Index)()
|
|
5000
|
+
], Wallet.prototype, "userId", 2);
|
|
5001
|
+
__decorateClass([
|
|
5002
|
+
(0, import_typeorm57.OneToOne)(() => User, (user) => user.wallet),
|
|
5003
|
+
(0, import_typeorm57.JoinColumn)({ name: "user_id" })
|
|
5004
|
+
], Wallet.prototype, "user", 2);
|
|
5005
|
+
__decorateClass([
|
|
5006
|
+
(0, import_typeorm57.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5007
|
+
], Wallet.prototype, "accountType", 2);
|
|
5008
|
+
__decorateClass([
|
|
5009
|
+
(0, import_typeorm57.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5010
|
+
], Wallet.prototype, "stripeAccountId", 2);
|
|
5011
|
+
__decorateClass([
|
|
5012
|
+
(0, import_typeorm57.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5013
|
+
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5014
|
+
__decorateClass([
|
|
5015
|
+
(0, import_typeorm57.Column)({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
5016
|
+
], Wallet.prototype, "walletBalance", 2);
|
|
5017
|
+
__decorateClass([
|
|
5018
|
+
(0, import_typeorm57.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0 })
|
|
5019
|
+
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5020
|
+
__decorateClass([
|
|
5021
|
+
(0, import_typeorm57.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5022
|
+
], Wallet.prototype, "onboardingStatus", 2);
|
|
5023
|
+
__decorateClass([
|
|
5024
|
+
(0, import_typeorm57.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5025
|
+
], Wallet.prototype, "stripeMetadata", 2);
|
|
5026
|
+
__decorateClass([
|
|
5027
|
+
(0, import_typeorm57.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5028
|
+
], Wallet.prototype, "walletTransactions", 2);
|
|
5029
|
+
Wallet = __decorateClass([
|
|
5030
|
+
(0, import_typeorm57.Entity)("wallets")
|
|
5031
|
+
], Wallet);
|
|
5032
|
+
|
|
4979
5033
|
// src/entities/user.entity.ts
|
|
4980
5034
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
4981
5035
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -5001,51 +5055,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5001
5055
|
var User = class extends BaseEntity {
|
|
5002
5056
|
};
|
|
5003
5057
|
__decorateClass([
|
|
5004
|
-
(0,
|
|
5058
|
+
(0, import_typeorm58.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
5005
5059
|
], User.prototype, "uniqueId", 2);
|
|
5006
5060
|
__decorateClass([
|
|
5007
|
-
(0,
|
|
5008
|
-
(0,
|
|
5061
|
+
(0, import_typeorm58.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
5062
|
+
(0, import_typeorm58.Index)()
|
|
5009
5063
|
], User.prototype, "parentId", 2);
|
|
5010
5064
|
__decorateClass([
|
|
5011
|
-
(0,
|
|
5012
|
-
(0,
|
|
5065
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
5066
|
+
(0, import_typeorm58.JoinColumn)({ name: "parent_id" })
|
|
5013
5067
|
], User.prototype, "parent", 2);
|
|
5014
5068
|
__decorateClass([
|
|
5015
|
-
(0,
|
|
5069
|
+
(0, import_typeorm58.OneToMany)(() => User, (user) => user.parent)
|
|
5016
5070
|
], User.prototype, "children", 2);
|
|
5017
5071
|
__decorateClass([
|
|
5018
|
-
(0,
|
|
5072
|
+
(0, import_typeorm58.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5019
5073
|
], User.prototype, "username", 2);
|
|
5020
5074
|
__decorateClass([
|
|
5021
|
-
(0,
|
|
5075
|
+
(0, import_typeorm58.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5022
5076
|
], User.prototype, "firstName", 2);
|
|
5023
5077
|
__decorateClass([
|
|
5024
|
-
(0,
|
|
5078
|
+
(0, import_typeorm58.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5025
5079
|
], User.prototype, "lastName", 2);
|
|
5026
5080
|
__decorateClass([
|
|
5027
|
-
(0,
|
|
5081
|
+
(0, import_typeorm58.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
5028
5082
|
], User.prototype, "dateOfBirth", 2);
|
|
5029
5083
|
__decorateClass([
|
|
5030
|
-
(0,
|
|
5084
|
+
(0, import_typeorm58.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5031
5085
|
], User.prototype, "gender", 2);
|
|
5032
5086
|
__decorateClass([
|
|
5033
|
-
(0,
|
|
5087
|
+
(0, import_typeorm58.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5034
5088
|
], User.prototype, "profilePictureUrl", 2);
|
|
5035
5089
|
__decorateClass([
|
|
5036
|
-
(0,
|
|
5090
|
+
(0, import_typeorm58.Column)({ name: "email", type: "varchar", unique: true })
|
|
5037
5091
|
], User.prototype, "email", 2);
|
|
5038
5092
|
__decorateClass([
|
|
5039
|
-
(0,
|
|
5093
|
+
(0, import_typeorm58.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5040
5094
|
], User.prototype, "mobileCode", 2);
|
|
5041
5095
|
__decorateClass([
|
|
5042
|
-
(0,
|
|
5096
|
+
(0, import_typeorm58.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5043
5097
|
], User.prototype, "mobile", 2);
|
|
5044
5098
|
__decorateClass([
|
|
5045
|
-
(0,
|
|
5099
|
+
(0, import_typeorm58.Column)({ name: "password", type: "varchar", nullable: true })
|
|
5046
5100
|
], User.prototype, "password", 2);
|
|
5047
5101
|
__decorateClass([
|
|
5048
|
-
(0,
|
|
5102
|
+
(0, import_typeorm58.Column)({
|
|
5049
5103
|
name: "account_type",
|
|
5050
5104
|
type: "enum",
|
|
5051
5105
|
enum: AccountType,
|
|
@@ -5053,7 +5107,7 @@ __decorateClass([
|
|
|
5053
5107
|
})
|
|
5054
5108
|
], User.prototype, "accountType", 2);
|
|
5055
5109
|
__decorateClass([
|
|
5056
|
-
(0,
|
|
5110
|
+
(0, import_typeorm58.Column)({
|
|
5057
5111
|
name: "account_status",
|
|
5058
5112
|
type: "enum",
|
|
5059
5113
|
enum: AccountStatus,
|
|
@@ -5061,42 +5115,42 @@ __decorateClass([
|
|
|
5061
5115
|
})
|
|
5062
5116
|
], User.prototype, "accountStatus", 2);
|
|
5063
5117
|
__decorateClass([
|
|
5064
|
-
(0,
|
|
5118
|
+
(0, import_typeorm58.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
5065
5119
|
], User.prototype, "isEmailVerified", 2);
|
|
5066
5120
|
__decorateClass([
|
|
5067
|
-
(0,
|
|
5121
|
+
(0, import_typeorm58.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5068
5122
|
], User.prototype, "isMobileVerified", 2);
|
|
5069
5123
|
__decorateClass([
|
|
5070
|
-
(0,
|
|
5124
|
+
(0, import_typeorm58.Column)({ name: "is_social", type: "boolean", default: false })
|
|
5071
5125
|
], User.prototype, "isSocial", 2);
|
|
5072
5126
|
__decorateClass([
|
|
5073
|
-
(0,
|
|
5127
|
+
(0, import_typeorm58.Column)({
|
|
5074
5128
|
name: "last_login_at",
|
|
5075
5129
|
type: "timestamp with time zone",
|
|
5076
5130
|
nullable: true
|
|
5077
5131
|
})
|
|
5078
5132
|
], User.prototype, "lastLoginAt", 2);
|
|
5079
5133
|
__decorateClass([
|
|
5080
|
-
(0,
|
|
5134
|
+
(0, import_typeorm58.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5081
5135
|
], User.prototype, "lastLoginIp", 2);
|
|
5082
5136
|
__decorateClass([
|
|
5083
|
-
(0,
|
|
5137
|
+
(0, import_typeorm58.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
5084
5138
|
], User.prototype, "resetToken", 2);
|
|
5085
5139
|
__decorateClass([
|
|
5086
|
-
(0,
|
|
5140
|
+
(0, import_typeorm58.Column)({
|
|
5087
5141
|
name: "reset_token_expire_at",
|
|
5088
5142
|
type: "timestamp with time zone",
|
|
5089
5143
|
nullable: true
|
|
5090
5144
|
})
|
|
5091
5145
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5092
5146
|
__decorateClass([
|
|
5093
|
-
(0,
|
|
5147
|
+
(0, import_typeorm58.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5094
5148
|
], User.prototype, "setPasswordToken", 2);
|
|
5095
5149
|
__decorateClass([
|
|
5096
|
-
(0,
|
|
5150
|
+
(0, import_typeorm58.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
5097
5151
|
], User.prototype, "refreshTokens", 2);
|
|
5098
5152
|
__decorateClass([
|
|
5099
|
-
(0,
|
|
5153
|
+
(0, import_typeorm58.Column)({
|
|
5100
5154
|
name: "provider",
|
|
5101
5155
|
type: "enum",
|
|
5102
5156
|
enum: Provider,
|
|
@@ -5105,190 +5159,193 @@ __decorateClass([
|
|
|
5105
5159
|
})
|
|
5106
5160
|
], User.prototype, "provider", 2);
|
|
5107
5161
|
__decorateClass([
|
|
5108
|
-
(0,
|
|
5162
|
+
(0, import_typeorm58.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
5109
5163
|
], User.prototype, "providerToken", 2);
|
|
5110
5164
|
__decorateClass([
|
|
5111
|
-
(0,
|
|
5165
|
+
(0, import_typeorm58.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5112
5166
|
], User.prototype, "linkedInId", 2);
|
|
5113
5167
|
__decorateClass([
|
|
5114
|
-
(0,
|
|
5168
|
+
(0, import_typeorm58.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
5115
5169
|
], User.prototype, "googleId", 2);
|
|
5116
5170
|
__decorateClass([
|
|
5117
|
-
(0,
|
|
5171
|
+
(0, import_typeorm58.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5118
5172
|
], User.prototype, "gitLabsId", 2);
|
|
5119
5173
|
__decorateClass([
|
|
5120
|
-
(0,
|
|
5174
|
+
(0, import_typeorm58.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5121
5175
|
], User.prototype, "onBoardedBy", 2);
|
|
5122
5176
|
__decorateClass([
|
|
5123
|
-
(0,
|
|
5177
|
+
(0, import_typeorm58.OneToMany)(() => Otp, (otp) => otp.user)
|
|
5124
5178
|
], User.prototype, "otps", 2);
|
|
5125
5179
|
__decorateClass([
|
|
5126
|
-
(0,
|
|
5180
|
+
(0, import_typeorm58.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5127
5181
|
], User.prototype, "senseloafLogs", 2);
|
|
5128
5182
|
__decorateClass([
|
|
5129
|
-
(0,
|
|
5183
|
+
(0, import_typeorm58.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5130
5184
|
], User.prototype, "companyProfile", 2);
|
|
5131
5185
|
__decorateClass([
|
|
5132
|
-
(0,
|
|
5186
|
+
(0, import_typeorm58.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
5133
5187
|
], User.prototype, "companySkills", 2);
|
|
5134
5188
|
__decorateClass([
|
|
5135
|
-
(0,
|
|
5189
|
+
(0, import_typeorm58.OneToMany)(
|
|
5136
5190
|
() => CompanyMemberRole,
|
|
5137
5191
|
(companyMemberRole) => companyMemberRole.user
|
|
5138
5192
|
)
|
|
5139
5193
|
], User.prototype, "companyMemberRoles", 2);
|
|
5140
5194
|
__decorateClass([
|
|
5141
|
-
(0,
|
|
5195
|
+
(0, import_typeorm58.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
5142
5196
|
], User.prototype, "companyAiInterview", 2);
|
|
5143
5197
|
__decorateClass([
|
|
5144
|
-
(0,
|
|
5198
|
+
(0, import_typeorm58.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5145
5199
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5146
5200
|
__decorateClass([
|
|
5147
|
-
(0,
|
|
5201
|
+
(0, import_typeorm58.OneToOne)(
|
|
5148
5202
|
() => FreelancerProfile,
|
|
5149
5203
|
(freelancerProfile) => freelancerProfile.user
|
|
5150
5204
|
)
|
|
5151
5205
|
], User.prototype, "freelancerProfile", 2);
|
|
5152
5206
|
__decorateClass([
|
|
5153
|
-
(0,
|
|
5207
|
+
(0, import_typeorm58.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5154
5208
|
], User.prototype, "freelancerResume", 2);
|
|
5155
5209
|
__decorateClass([
|
|
5156
|
-
(0,
|
|
5210
|
+
(0, import_typeorm58.OneToMany)(
|
|
5157
5211
|
() => FreelancerAssessment,
|
|
5158
5212
|
(freelancerAssessment) => freelancerAssessment.user
|
|
5159
5213
|
)
|
|
5160
5214
|
], User.prototype, "assessments", 2);
|
|
5161
5215
|
__decorateClass([
|
|
5162
|
-
(0,
|
|
5216
|
+
(0, import_typeorm58.OneToMany)(
|
|
5163
5217
|
() => AssessmentAnswer,
|
|
5164
5218
|
(assessmentAnswer) => assessmentAnswer.user
|
|
5165
5219
|
)
|
|
5166
5220
|
], User.prototype, "assessmentAnswers", 2);
|
|
5167
5221
|
__decorateClass([
|
|
5168
|
-
(0,
|
|
5222
|
+
(0, import_typeorm58.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
5169
5223
|
], User.prototype, "freelancerSkills", 2);
|
|
5170
5224
|
__decorateClass([
|
|
5171
|
-
(0,
|
|
5225
|
+
(0, import_typeorm58.OneToMany)(
|
|
5172
5226
|
() => FreelancerExperience,
|
|
5173
5227
|
(freelancerExperience) => freelancerExperience.user
|
|
5174
5228
|
)
|
|
5175
5229
|
], User.prototype, "freelancerExperience", 2);
|
|
5176
5230
|
__decorateClass([
|
|
5177
|
-
(0,
|
|
5231
|
+
(0, import_typeorm58.OneToMany)(
|
|
5178
5232
|
() => FreelancerEducation,
|
|
5179
5233
|
(freelancerEducation) => freelancerEducation.user
|
|
5180
5234
|
)
|
|
5181
5235
|
], User.prototype, "freelancerEducation", 2);
|
|
5182
5236
|
__decorateClass([
|
|
5183
|
-
(0,
|
|
5237
|
+
(0, import_typeorm58.OneToMany)(
|
|
5184
5238
|
() => FreelancerProject,
|
|
5185
5239
|
(freelancerProject) => freelancerProject.user
|
|
5186
5240
|
)
|
|
5187
5241
|
], User.prototype, "freelancerProject", 2);
|
|
5188
5242
|
__decorateClass([
|
|
5189
|
-
(0,
|
|
5243
|
+
(0, import_typeorm58.OneToMany)(
|
|
5190
5244
|
() => FreelancerCaseStudy,
|
|
5191
5245
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
5192
5246
|
)
|
|
5193
5247
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
5194
5248
|
__decorateClass([
|
|
5195
|
-
(0,
|
|
5249
|
+
(0, import_typeorm58.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
5196
5250
|
], User.prototype, "freelancerTool", 2);
|
|
5197
5251
|
__decorateClass([
|
|
5198
|
-
(0,
|
|
5252
|
+
(0, import_typeorm58.OneToMany)(
|
|
5199
5253
|
() => FreelancerFramework,
|
|
5200
5254
|
(freelancerFramework) => freelancerFramework.user
|
|
5201
5255
|
)
|
|
5202
5256
|
], User.prototype, "freelancerFramework", 2);
|
|
5203
5257
|
__decorateClass([
|
|
5204
|
-
(0,
|
|
5258
|
+
(0, import_typeorm58.OneToOne)(
|
|
5205
5259
|
() => FreelancerDeclaration,
|
|
5206
5260
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
5207
5261
|
)
|
|
5208
5262
|
], User.prototype, "freelancerDeclaration", 2);
|
|
5209
5263
|
__decorateClass([
|
|
5210
|
-
(0,
|
|
5264
|
+
(0, import_typeorm58.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
5211
5265
|
], User.prototype, "freelancerAiInterview", 2);
|
|
5212
5266
|
__decorateClass([
|
|
5213
|
-
(0,
|
|
5267
|
+
(0, import_typeorm58.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
5214
5268
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
5215
5269
|
__decorateClass([
|
|
5216
|
-
(0,
|
|
5270
|
+
(0, import_typeorm58.OneToMany)(
|
|
5217
5271
|
() => F2fInterviewRescheduleRequest,
|
|
5218
5272
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
5219
5273
|
)
|
|
5220
5274
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
5221
5275
|
__decorateClass([
|
|
5222
|
-
(0,
|
|
5276
|
+
(0, import_typeorm58.OneToMany)(() => Job, (job) => job.user)
|
|
5223
5277
|
], User.prototype, "jobs", 2);
|
|
5224
5278
|
__decorateClass([
|
|
5225
|
-
(0,
|
|
5279
|
+
(0, import_typeorm58.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
5226
5280
|
], User.prototype, "jobApplications", 2);
|
|
5227
5281
|
__decorateClass([
|
|
5228
|
-
(0,
|
|
5282
|
+
(0, import_typeorm58.OneToMany)(() => Interview, (interview) => interview.user)
|
|
5229
5283
|
], User.prototype, "interviews", 2);
|
|
5230
5284
|
__decorateClass([
|
|
5231
|
-
(0,
|
|
5285
|
+
(0, import_typeorm58.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
5232
5286
|
], User.prototype, "bankDetail", 2);
|
|
5233
5287
|
__decorateClass([
|
|
5234
|
-
(0,
|
|
5288
|
+
(0, import_typeorm58.OneToMany)(
|
|
5235
5289
|
() => SystemPreference,
|
|
5236
5290
|
(systemPreference) => systemPreference.user
|
|
5237
5291
|
)
|
|
5238
5292
|
], User.prototype, "systemPreference", 2);
|
|
5239
5293
|
__decorateClass([
|
|
5240
|
-
(0,
|
|
5294
|
+
(0, import_typeorm58.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
5241
5295
|
], User.prototype, "givenRatings", 2);
|
|
5242
5296
|
__decorateClass([
|
|
5243
|
-
(0,
|
|
5297
|
+
(0, import_typeorm58.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
5244
5298
|
], User.prototype, "receivedRatings", 2);
|
|
5245
5299
|
__decorateClass([
|
|
5246
|
-
(0,
|
|
5300
|
+
(0, import_typeorm58.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
5247
5301
|
], User.prototype, "adminUserRoles", 2);
|
|
5248
5302
|
__decorateClass([
|
|
5249
|
-
(0,
|
|
5303
|
+
(0, import_typeorm58.OneToMany)(() => Contract, (contract) => contract.client)
|
|
5250
5304
|
], User.prototype, "clientContracts", 2);
|
|
5251
5305
|
__decorateClass([
|
|
5252
|
-
(0,
|
|
5306
|
+
(0, import_typeorm58.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
5253
5307
|
], User.prototype, "freelancerContracts", 2);
|
|
5254
5308
|
__decorateClass([
|
|
5255
|
-
(0,
|
|
5256
|
-
], User.prototype, "stripeWallet", 2);
|
|
5257
|
-
__decorateClass([
|
|
5258
|
-
(0, import_typeorm57.OneToOne)(() => Signature, (signature) => signature.user)
|
|
5309
|
+
(0, import_typeorm58.OneToOne)(() => Signature, (signature) => signature.user)
|
|
5259
5310
|
], User.prototype, "signatures", 2);
|
|
5260
5311
|
__decorateClass([
|
|
5261
|
-
(0,
|
|
5312
|
+
(0, import_typeorm58.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
5262
5313
|
], User.prototype, "clientTimesheets", 2);
|
|
5263
5314
|
__decorateClass([
|
|
5264
|
-
(0,
|
|
5315
|
+
(0, import_typeorm58.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
5265
5316
|
], User.prototype, "freelancerTimesheets", 2);
|
|
5266
5317
|
__decorateClass([
|
|
5267
|
-
(0,
|
|
5318
|
+
(0, import_typeorm58.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
5268
5319
|
], User.prototype, "clientTimesheetLine", 2);
|
|
5269
5320
|
__decorateClass([
|
|
5270
|
-
(0,
|
|
5321
|
+
(0, import_typeorm58.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
5271
5322
|
], User.prototype, "clientInvoice", 2);
|
|
5272
5323
|
__decorateClass([
|
|
5273
|
-
(0,
|
|
5324
|
+
(0, import_typeorm58.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
5274
5325
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
5275
5326
|
__decorateClass([
|
|
5276
|
-
(0,
|
|
5327
|
+
(0, import_typeorm58.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
5277
5328
|
], User.prototype, "freelancerInvoice", 2);
|
|
5278
5329
|
__decorateClass([
|
|
5279
|
-
(0,
|
|
5330
|
+
(0, import_typeorm58.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
5280
5331
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
5281
5332
|
__decorateClass([
|
|
5282
|
-
(0,
|
|
5333
|
+
(0, import_typeorm58.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
5283
5334
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
5284
5335
|
__decorateClass([
|
|
5285
|
-
(0,
|
|
5336
|
+
(0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
5286
5337
|
], User.prototype, "initiatedDisputes", 2);
|
|
5287
5338
|
__decorateClass([
|
|
5288
|
-
(0,
|
|
5339
|
+
(0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
5289
5340
|
], User.prototype, "respondentDisputes", 2);
|
|
5341
|
+
__decorateClass([
|
|
5342
|
+
(0, import_typeorm58.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
5343
|
+
], User.prototype, "wallet", 2);
|
|
5344
|
+
__decorateClass([
|
|
5345
|
+
(0, import_typeorm58.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
5346
|
+
], User.prototype, "stripeTransactions", 2);
|
|
5290
5347
|
User = __decorateClass([
|
|
5291
|
-
(0,
|
|
5348
|
+
(0, import_typeorm58.Entity)("users")
|
|
5292
5349
|
], User);
|
|
5293
5350
|
|
|
5294
5351
|
// src/entities/rating.entity.ts
|
|
@@ -5300,36 +5357,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
5300
5357
|
var Rating = class extends BaseEntity {
|
|
5301
5358
|
};
|
|
5302
5359
|
__decorateClass([
|
|
5303
|
-
(0,
|
|
5304
|
-
(0,
|
|
5360
|
+
(0, import_typeorm59.Column)({ name: "reviewer_id", type: "integer" }),
|
|
5361
|
+
(0, import_typeorm59.Index)()
|
|
5305
5362
|
], Rating.prototype, "reviewer_id", 2);
|
|
5306
5363
|
__decorateClass([
|
|
5307
|
-
(0,
|
|
5308
|
-
(0,
|
|
5364
|
+
(0, import_typeorm59.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5365
|
+
(0, import_typeorm59.JoinColumn)({ name: "reviewer_id" })
|
|
5309
5366
|
], Rating.prototype, "reviewer", 2);
|
|
5310
5367
|
__decorateClass([
|
|
5311
|
-
(0,
|
|
5312
|
-
(0,
|
|
5368
|
+
(0, import_typeorm59.Column)({ name: "reviewee_id", type: "integer" }),
|
|
5369
|
+
(0, import_typeorm59.Index)()
|
|
5313
5370
|
], Rating.prototype, "reviewee_id", 2);
|
|
5314
5371
|
__decorateClass([
|
|
5315
|
-
(0,
|
|
5316
|
-
(0,
|
|
5372
|
+
(0, import_typeorm59.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5373
|
+
(0, import_typeorm59.JoinColumn)({ name: "reviewee_id" })
|
|
5317
5374
|
], Rating.prototype, "reviewee", 2);
|
|
5318
5375
|
__decorateClass([
|
|
5319
|
-
(0,
|
|
5376
|
+
(0, import_typeorm59.Column)({
|
|
5320
5377
|
type: "enum",
|
|
5321
5378
|
enum: RatingTypeEnum,
|
|
5322
5379
|
nullable: true
|
|
5323
5380
|
})
|
|
5324
5381
|
], Rating.prototype, "ratingType", 2);
|
|
5325
5382
|
__decorateClass([
|
|
5326
|
-
(0,
|
|
5383
|
+
(0, import_typeorm59.Column)({ type: "integer", nullable: true })
|
|
5327
5384
|
], Rating.prototype, "rating", 2);
|
|
5328
5385
|
__decorateClass([
|
|
5329
|
-
(0,
|
|
5386
|
+
(0, import_typeorm59.Column)({ type: "text", nullable: true })
|
|
5330
5387
|
], Rating.prototype, "review", 2);
|
|
5331
5388
|
Rating = __decorateClass([
|
|
5332
|
-
(0,
|
|
5389
|
+
(0, import_typeorm59.Entity)("ratings")
|
|
5333
5390
|
], Rating);
|
|
5334
5391
|
|
|
5335
5392
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -7084,11 +7141,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
7084
7141
|
};
|
|
7085
7142
|
|
|
7086
7143
|
// src/entities/sequence-generator.entity.ts
|
|
7087
|
-
var
|
|
7144
|
+
var import_typeorm60 = require("typeorm");
|
|
7088
7145
|
var SequenceGenerator = class extends BaseEntity {
|
|
7089
7146
|
};
|
|
7090
7147
|
__decorateClass([
|
|
7091
|
-
(0,
|
|
7148
|
+
(0, import_typeorm60.Column)({
|
|
7092
7149
|
name: "module",
|
|
7093
7150
|
type: "varchar",
|
|
7094
7151
|
length: 50,
|
|
@@ -7097,7 +7154,7 @@ __decorateClass([
|
|
|
7097
7154
|
})
|
|
7098
7155
|
], SequenceGenerator.prototype, "module", 2);
|
|
7099
7156
|
__decorateClass([
|
|
7100
|
-
(0,
|
|
7157
|
+
(0, import_typeorm60.Column)({
|
|
7101
7158
|
name: "prefix",
|
|
7102
7159
|
type: "varchar",
|
|
7103
7160
|
length: 10,
|
|
@@ -7106,7 +7163,7 @@ __decorateClass([
|
|
|
7106
7163
|
})
|
|
7107
7164
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
7108
7165
|
__decorateClass([
|
|
7109
|
-
(0,
|
|
7166
|
+
(0, import_typeorm60.Column)({
|
|
7110
7167
|
name: "last_sequence",
|
|
7111
7168
|
type: "int",
|
|
7112
7169
|
nullable: false,
|
|
@@ -7114,7 +7171,7 @@ __decorateClass([
|
|
|
7114
7171
|
})
|
|
7115
7172
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
7116
7173
|
__decorateClass([
|
|
7117
|
-
(0,
|
|
7174
|
+
(0, import_typeorm60.Column)({
|
|
7118
7175
|
name: "year",
|
|
7119
7176
|
type: "int",
|
|
7120
7177
|
nullable: true,
|
|
@@ -7122,11 +7179,11 @@ __decorateClass([
|
|
|
7122
7179
|
})
|
|
7123
7180
|
], SequenceGenerator.prototype, "year", 2);
|
|
7124
7181
|
SequenceGenerator = __decorateClass([
|
|
7125
|
-
(0,
|
|
7182
|
+
(0, import_typeorm60.Entity)("sequence_generators")
|
|
7126
7183
|
], SequenceGenerator);
|
|
7127
7184
|
|
|
7128
7185
|
// src/entities/question.entity.ts
|
|
7129
|
-
var
|
|
7186
|
+
var import_typeorm61 = require("typeorm");
|
|
7130
7187
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
7131
7188
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
7132
7189
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -7135,16 +7192,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
7135
7192
|
var Question = class extends BaseEntity {
|
|
7136
7193
|
};
|
|
7137
7194
|
__decorateClass([
|
|
7138
|
-
(0,
|
|
7195
|
+
(0, import_typeorm61.Column)({ name: "question", type: "varchar" })
|
|
7139
7196
|
], Question.prototype, "question", 2);
|
|
7140
7197
|
__decorateClass([
|
|
7141
|
-
(0,
|
|
7198
|
+
(0, import_typeorm61.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
7142
7199
|
], Question.prototype, "hint", 2);
|
|
7143
7200
|
__decorateClass([
|
|
7144
|
-
(0,
|
|
7201
|
+
(0, import_typeorm61.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7145
7202
|
], Question.prototype, "slug", 2);
|
|
7146
7203
|
__decorateClass([
|
|
7147
|
-
(0,
|
|
7204
|
+
(0, import_typeorm61.Column)({
|
|
7148
7205
|
name: "question_for",
|
|
7149
7206
|
type: "enum",
|
|
7150
7207
|
enum: QuestionFor,
|
|
@@ -7152,117 +7209,117 @@ __decorateClass([
|
|
|
7152
7209
|
})
|
|
7153
7210
|
], Question.prototype, "questionFor", 2);
|
|
7154
7211
|
__decorateClass([
|
|
7155
|
-
(0,
|
|
7212
|
+
(0, import_typeorm61.Column)({ name: "type", type: "varchar", nullable: true })
|
|
7156
7213
|
], Question.prototype, "type", 2);
|
|
7157
7214
|
__decorateClass([
|
|
7158
|
-
(0,
|
|
7215
|
+
(0, import_typeorm61.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
7159
7216
|
], Question.prototype, "options", 2);
|
|
7160
7217
|
__decorateClass([
|
|
7161
|
-
(0,
|
|
7218
|
+
(0, import_typeorm61.Column)({ name: "is_active", type: "boolean", default: false })
|
|
7162
7219
|
], Question.prototype, "isActive", 2);
|
|
7163
7220
|
Question = __decorateClass([
|
|
7164
|
-
(0,
|
|
7221
|
+
(0, import_typeorm61.Entity)("questions")
|
|
7165
7222
|
], Question);
|
|
7166
7223
|
|
|
7167
7224
|
// src/entities/skill.entity.ts
|
|
7168
|
-
var
|
|
7225
|
+
var import_typeorm62 = require("typeorm");
|
|
7169
7226
|
var Skill = class extends BaseEntity {
|
|
7170
7227
|
};
|
|
7171
7228
|
__decorateClass([
|
|
7172
|
-
(0,
|
|
7229
|
+
(0, import_typeorm62.Column)({ name: "name", type: "varchar", nullable: true })
|
|
7173
7230
|
], Skill.prototype, "name", 2);
|
|
7174
7231
|
__decorateClass([
|
|
7175
|
-
(0,
|
|
7232
|
+
(0, import_typeorm62.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7176
7233
|
], Skill.prototype, "slug", 2);
|
|
7177
7234
|
__decorateClass([
|
|
7178
|
-
(0,
|
|
7235
|
+
(0, import_typeorm62.Column)({ name: "is_active", type: "boolean", default: false })
|
|
7179
7236
|
], Skill.prototype, "isActive", 2);
|
|
7180
7237
|
Skill = __decorateClass([
|
|
7181
|
-
(0,
|
|
7238
|
+
(0, import_typeorm62.Entity)("skills")
|
|
7182
7239
|
], Skill);
|
|
7183
7240
|
|
|
7184
7241
|
// src/entities/job-role.entity.ts
|
|
7185
|
-
var
|
|
7242
|
+
var import_typeorm63 = require("typeorm");
|
|
7186
7243
|
var JobRoles = class extends BaseEntity {
|
|
7187
7244
|
};
|
|
7188
7245
|
__decorateClass([
|
|
7189
|
-
(0,
|
|
7246
|
+
(0, import_typeorm63.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7190
7247
|
], JobRoles.prototype, "slug", 2);
|
|
7191
7248
|
__decorateClass([
|
|
7192
|
-
(0,
|
|
7249
|
+
(0, import_typeorm63.Column)({ name: "name", type: "varchar", nullable: true })
|
|
7193
7250
|
], JobRoles.prototype, "name", 2);
|
|
7194
7251
|
__decorateClass([
|
|
7195
|
-
(0,
|
|
7252
|
+
(0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: true })
|
|
7196
7253
|
], JobRoles.prototype, "isActive", 2);
|
|
7197
7254
|
JobRoles = __decorateClass([
|
|
7198
|
-
(0,
|
|
7255
|
+
(0, import_typeorm63.Entity)("job_roles")
|
|
7199
7256
|
], JobRoles);
|
|
7200
7257
|
|
|
7201
7258
|
// src/entities/plan.entity.ts
|
|
7202
|
-
var
|
|
7259
|
+
var import_typeorm65 = require("typeorm");
|
|
7203
7260
|
|
|
7204
7261
|
// src/entities/feature.entity.ts
|
|
7205
|
-
var
|
|
7262
|
+
var import_typeorm64 = require("typeorm");
|
|
7206
7263
|
var Feature = class extends BaseEntity {
|
|
7207
7264
|
};
|
|
7208
7265
|
__decorateClass([
|
|
7209
|
-
(0,
|
|
7266
|
+
(0, import_typeorm64.Column)({ name: "name", type: "varchar", unique: true })
|
|
7210
7267
|
], Feature.prototype, "name", 2);
|
|
7211
7268
|
__decorateClass([
|
|
7212
|
-
(0,
|
|
7269
|
+
(0, import_typeorm64.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
7213
7270
|
], Feature.prototype, "plans", 2);
|
|
7214
7271
|
Feature = __decorateClass([
|
|
7215
|
-
(0,
|
|
7272
|
+
(0, import_typeorm64.Entity)("features")
|
|
7216
7273
|
], Feature);
|
|
7217
7274
|
|
|
7218
7275
|
// src/entities/plan.entity.ts
|
|
7219
7276
|
var Plan = class extends BaseEntity {
|
|
7220
7277
|
};
|
|
7221
7278
|
__decorateClass([
|
|
7222
|
-
(0,
|
|
7279
|
+
(0, import_typeorm65.Column)({ name: "name", type: "varchar", unique: true })
|
|
7223
7280
|
], Plan.prototype, "name", 2);
|
|
7224
7281
|
__decorateClass([
|
|
7225
|
-
(0,
|
|
7282
|
+
(0, import_typeorm65.Column)({ name: "description", type: "varchar", nullable: true })
|
|
7226
7283
|
], Plan.prototype, "description", 2);
|
|
7227
7284
|
__decorateClass([
|
|
7228
|
-
(0,
|
|
7285
|
+
(0, import_typeorm65.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
7229
7286
|
], Plan.prototype, "price", 2);
|
|
7230
7287
|
__decorateClass([
|
|
7231
|
-
(0,
|
|
7288
|
+
(0, import_typeorm65.Column)({ name: "billing_period", type: "varchar" })
|
|
7232
7289
|
], Plan.prototype, "billingPeriod", 2);
|
|
7233
7290
|
__decorateClass([
|
|
7234
|
-
(0,
|
|
7291
|
+
(0, import_typeorm65.Column)({ name: "is_current", type: "boolean", default: false })
|
|
7235
7292
|
], Plan.prototype, "isCurrent", 2);
|
|
7236
7293
|
__decorateClass([
|
|
7237
|
-
(0,
|
|
7238
|
-
(0,
|
|
7294
|
+
(0, import_typeorm65.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
7295
|
+
(0, import_typeorm65.JoinTable)()
|
|
7239
7296
|
], Plan.prototype, "features", 2);
|
|
7240
7297
|
Plan = __decorateClass([
|
|
7241
|
-
(0,
|
|
7298
|
+
(0, import_typeorm65.Entity)("plans")
|
|
7242
7299
|
], Plan);
|
|
7243
7300
|
|
|
7244
7301
|
// src/entities/cms.entity.ts
|
|
7245
|
-
var
|
|
7302
|
+
var import_typeorm66 = require("typeorm");
|
|
7246
7303
|
var Cms = class extends BaseEntity {
|
|
7247
7304
|
};
|
|
7248
7305
|
__decorateClass([
|
|
7249
|
-
(0,
|
|
7306
|
+
(0, import_typeorm66.Column)({ name: "title", type: "varchar", nullable: true })
|
|
7250
7307
|
], Cms.prototype, "title", 2);
|
|
7251
7308
|
__decorateClass([
|
|
7252
|
-
(0,
|
|
7309
|
+
(0, import_typeorm66.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7253
7310
|
], Cms.prototype, "slug", 2);
|
|
7254
7311
|
__decorateClass([
|
|
7255
|
-
(0,
|
|
7312
|
+
(0, import_typeorm66.Column)({ name: "content", type: "varchar", nullable: true })
|
|
7256
7313
|
], Cms.prototype, "content", 2);
|
|
7257
7314
|
__decorateClass([
|
|
7258
|
-
(0,
|
|
7315
|
+
(0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: true })
|
|
7259
7316
|
], Cms.prototype, "isActive", 2);
|
|
7260
7317
|
Cms = __decorateClass([
|
|
7261
|
-
(0,
|
|
7318
|
+
(0, import_typeorm66.Entity)("cms")
|
|
7262
7319
|
], Cms);
|
|
7263
7320
|
|
|
7264
7321
|
// src/entities/lead.entity.ts
|
|
7265
|
-
var
|
|
7322
|
+
var import_typeorm67 = require("typeorm");
|
|
7266
7323
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
7267
7324
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
7268
7325
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -7271,22 +7328,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
7271
7328
|
var Lead = class extends BaseEntity {
|
|
7272
7329
|
};
|
|
7273
7330
|
__decorateClass([
|
|
7274
|
-
(0,
|
|
7331
|
+
(0, import_typeorm67.Column)({ name: "name", type: "varchar", nullable: true })
|
|
7275
7332
|
], Lead.prototype, "name", 2);
|
|
7276
7333
|
__decorateClass([
|
|
7277
|
-
(0,
|
|
7334
|
+
(0, import_typeorm67.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
7278
7335
|
], Lead.prototype, "mobileCode", 2);
|
|
7279
7336
|
__decorateClass([
|
|
7280
|
-
(0,
|
|
7337
|
+
(0, import_typeorm67.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
7281
7338
|
], Lead.prototype, "mobile", 2);
|
|
7282
7339
|
__decorateClass([
|
|
7283
|
-
(0,
|
|
7340
|
+
(0, import_typeorm67.Column)({ name: "email", type: "varchar", nullable: true })
|
|
7284
7341
|
], Lead.prototype, "email", 2);
|
|
7285
7342
|
__decorateClass([
|
|
7286
|
-
(0,
|
|
7343
|
+
(0, import_typeorm67.Column)({ name: "description", type: "varchar", nullable: true })
|
|
7287
7344
|
], Lead.prototype, "description", 2);
|
|
7288
7345
|
__decorateClass([
|
|
7289
|
-
(0,
|
|
7346
|
+
(0, import_typeorm67.Column)({
|
|
7290
7347
|
name: "category",
|
|
7291
7348
|
type: "enum",
|
|
7292
7349
|
enum: CategoryEmum,
|
|
@@ -7294,129 +7351,129 @@ __decorateClass([
|
|
|
7294
7351
|
})
|
|
7295
7352
|
], Lead.prototype, "category", 2);
|
|
7296
7353
|
Lead = __decorateClass([
|
|
7297
|
-
(0,
|
|
7354
|
+
(0, import_typeorm67.Entity)("leads")
|
|
7298
7355
|
], Lead);
|
|
7299
7356
|
|
|
7300
7357
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
7301
|
-
var
|
|
7358
|
+
var import_typeorm68 = require("typeorm");
|
|
7302
7359
|
var JobFreelancerRecommendation = class {
|
|
7303
7360
|
};
|
|
7304
7361
|
__decorateClass([
|
|
7305
|
-
(0,
|
|
7362
|
+
(0, import_typeorm68.ViewColumn)({ name: "job_id" })
|
|
7306
7363
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
7307
7364
|
__decorateClass([
|
|
7308
|
-
(0,
|
|
7365
|
+
(0, import_typeorm68.ViewColumn)({ name: "job_uuid" })
|
|
7309
7366
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
7310
7367
|
__decorateClass([
|
|
7311
|
-
(0,
|
|
7368
|
+
(0, import_typeorm68.ViewColumn)({ name: "job_unique_id" })
|
|
7312
7369
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
7313
7370
|
__decorateClass([
|
|
7314
|
-
(0,
|
|
7371
|
+
(0, import_typeorm68.ViewColumn)({ name: "job_role" })
|
|
7315
7372
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
7316
7373
|
__decorateClass([
|
|
7317
|
-
(0,
|
|
7374
|
+
(0, import_typeorm68.ViewColumn)({ name: "job_openings" })
|
|
7318
7375
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
7319
7376
|
__decorateClass([
|
|
7320
|
-
(0,
|
|
7377
|
+
(0, import_typeorm68.ViewColumn)({ name: "job_location" })
|
|
7321
7378
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
7322
7379
|
__decorateClass([
|
|
7323
|
-
(0,
|
|
7380
|
+
(0, import_typeorm68.ViewColumn)({ name: "job_currency" })
|
|
7324
7381
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
7325
7382
|
__decorateClass([
|
|
7326
|
-
(0,
|
|
7383
|
+
(0, import_typeorm68.ViewColumn)({ name: "job_salary_from" })
|
|
7327
7384
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
7328
7385
|
__decorateClass([
|
|
7329
|
-
(0,
|
|
7386
|
+
(0, import_typeorm68.ViewColumn)({ name: "job_salary_to" })
|
|
7330
7387
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
7331
7388
|
__decorateClass([
|
|
7332
|
-
(0,
|
|
7389
|
+
(0, import_typeorm68.ViewColumn)({ name: "job_employment_type" })
|
|
7333
7390
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
7334
7391
|
__decorateClass([
|
|
7335
|
-
(0,
|
|
7392
|
+
(0, import_typeorm68.ViewColumn)({ name: "application_received" })
|
|
7336
7393
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
7337
7394
|
__decorateClass([
|
|
7338
|
-
(0,
|
|
7395
|
+
(0, import_typeorm68.ViewColumn)({ name: "job_posted_at" })
|
|
7339
7396
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
7340
7397
|
__decorateClass([
|
|
7341
|
-
(0,
|
|
7398
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_id" })
|
|
7342
7399
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
7343
7400
|
__decorateClass([
|
|
7344
|
-
(0,
|
|
7401
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_uuid" })
|
|
7345
7402
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
7346
7403
|
__decorateClass([
|
|
7347
|
-
(0,
|
|
7404
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_unique_id" })
|
|
7348
7405
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
7349
7406
|
__decorateClass([
|
|
7350
|
-
(0,
|
|
7407
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_first_name" })
|
|
7351
7408
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
7352
7409
|
__decorateClass([
|
|
7353
|
-
(0,
|
|
7410
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_last_name" })
|
|
7354
7411
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
7355
7412
|
__decorateClass([
|
|
7356
|
-
(0,
|
|
7413
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_email" })
|
|
7357
7414
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
7358
7415
|
__decorateClass([
|
|
7359
|
-
(0,
|
|
7416
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
7360
7417
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
7361
7418
|
__decorateClass([
|
|
7362
|
-
(0,
|
|
7419
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_is_social" })
|
|
7363
7420
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
7364
7421
|
__decorateClass([
|
|
7365
|
-
(0,
|
|
7422
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_created_at" })
|
|
7366
7423
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
7367
7424
|
__decorateClass([
|
|
7368
|
-
(0,
|
|
7425
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_designation" })
|
|
7369
7426
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
7370
7427
|
__decorateClass([
|
|
7371
|
-
(0,
|
|
7428
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_experience" })
|
|
7372
7429
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
7373
7430
|
__decorateClass([
|
|
7374
|
-
(0,
|
|
7431
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
7375
7432
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
7376
7433
|
__decorateClass([
|
|
7377
|
-
(0,
|
|
7434
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
7378
7435
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
7379
7436
|
__decorateClass([
|
|
7380
|
-
(0,
|
|
7437
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_country_name" })
|
|
7381
7438
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
7382
7439
|
__decorateClass([
|
|
7383
|
-
(0,
|
|
7440
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
7384
7441
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
7385
7442
|
__decorateClass([
|
|
7386
|
-
(0,
|
|
7443
|
+
(0, import_typeorm68.ViewColumn)({ name: "client_id" })
|
|
7387
7444
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
7388
7445
|
__decorateClass([
|
|
7389
|
-
(0,
|
|
7446
|
+
(0, import_typeorm68.ViewColumn)({ name: "client_uuid" })
|
|
7390
7447
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
7391
7448
|
__decorateClass([
|
|
7392
|
-
(0,
|
|
7449
|
+
(0, import_typeorm68.ViewColumn)({ name: "client_first_name" })
|
|
7393
7450
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
7394
7451
|
__decorateClass([
|
|
7395
|
-
(0,
|
|
7452
|
+
(0, import_typeorm68.ViewColumn)({ name: "client_last_name" })
|
|
7396
7453
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
7397
7454
|
__decorateClass([
|
|
7398
|
-
(0,
|
|
7455
|
+
(0, import_typeorm68.ViewColumn)({ name: "client_email" })
|
|
7399
7456
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
7400
7457
|
__decorateClass([
|
|
7401
|
-
(0,
|
|
7458
|
+
(0, import_typeorm68.ViewColumn)({ name: "client_company_logo" })
|
|
7402
7459
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
7403
7460
|
__decorateClass([
|
|
7404
|
-
(0,
|
|
7461
|
+
(0, import_typeorm68.ViewColumn)({ name: "client_company_name" })
|
|
7405
7462
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
7406
7463
|
__decorateClass([
|
|
7407
|
-
(0,
|
|
7464
|
+
(0, import_typeorm68.ViewColumn)({ name: "matching_skills" })
|
|
7408
7465
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
7409
7466
|
__decorateClass([
|
|
7410
|
-
(0,
|
|
7467
|
+
(0, import_typeorm68.ViewColumn)({ name: "matching_skills_count" })
|
|
7411
7468
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
7412
7469
|
__decorateClass([
|
|
7413
|
-
(0,
|
|
7470
|
+
(0, import_typeorm68.ViewColumn)({ name: "required_skills" })
|
|
7414
7471
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
7415
7472
|
__decorateClass([
|
|
7416
|
-
(0,
|
|
7473
|
+
(0, import_typeorm68.ViewColumn)({ name: "required_skills_count" })
|
|
7417
7474
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
7418
7475
|
JobFreelancerRecommendation = __decorateClass([
|
|
7419
|
-
(0,
|
|
7476
|
+
(0, import_typeorm68.ViewEntity)({
|
|
7420
7477
|
name: "job_freelancer_recommendations",
|
|
7421
7478
|
materialized: true,
|
|
7422
7479
|
synchronize: false
|
|
@@ -7425,32 +7482,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
7425
7482
|
], JobFreelancerRecommendation);
|
|
7426
7483
|
|
|
7427
7484
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
7428
|
-
var
|
|
7485
|
+
var import_typeorm69 = require("typeorm");
|
|
7429
7486
|
var JobFreelancerRecommendationV2 = class {
|
|
7430
7487
|
};
|
|
7431
7488
|
__decorateClass([
|
|
7432
|
-
(0,
|
|
7489
|
+
(0, import_typeorm69.ViewColumn)({ name: "job_id" })
|
|
7433
7490
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
7434
7491
|
__decorateClass([
|
|
7435
|
-
(0,
|
|
7492
|
+
(0, import_typeorm69.ViewColumn)({ name: "job_owner_id" })
|
|
7436
7493
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
7437
7494
|
__decorateClass([
|
|
7438
|
-
(0,
|
|
7495
|
+
(0, import_typeorm69.ViewColumn)({ name: "freelancer_id" })
|
|
7439
7496
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
7440
7497
|
__decorateClass([
|
|
7441
|
-
(0,
|
|
7498
|
+
(0, import_typeorm69.ViewColumn)({ name: "matching_skills" })
|
|
7442
7499
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
7443
7500
|
__decorateClass([
|
|
7444
|
-
(0,
|
|
7501
|
+
(0, import_typeorm69.ViewColumn)({ name: "matching_skills_count" })
|
|
7445
7502
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
7446
7503
|
__decorateClass([
|
|
7447
|
-
(0,
|
|
7504
|
+
(0, import_typeorm69.ViewColumn)({ name: "required_skills" })
|
|
7448
7505
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
7449
7506
|
__decorateClass([
|
|
7450
|
-
(0,
|
|
7507
|
+
(0, import_typeorm69.ViewColumn)({ name: "required_skills_count" })
|
|
7451
7508
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
7452
7509
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
7453
|
-
(0,
|
|
7510
|
+
(0, import_typeorm69.ViewEntity)({
|
|
7454
7511
|
name: "job_freelancer_recommendations_v2",
|
|
7455
7512
|
materialized: true,
|
|
7456
7513
|
synchronize: false
|
|
@@ -7459,74 +7516,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
7459
7516
|
], JobFreelancerRecommendationV2);
|
|
7460
7517
|
|
|
7461
7518
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
7462
|
-
var
|
|
7519
|
+
var import_typeorm70 = require("typeorm");
|
|
7463
7520
|
var ClientFreelancerRecommendation = class {
|
|
7464
7521
|
};
|
|
7465
7522
|
__decorateClass([
|
|
7466
|
-
(0,
|
|
7523
|
+
(0, import_typeorm70.ViewColumn)({ name: "client_id" })
|
|
7467
7524
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
7468
7525
|
__decorateClass([
|
|
7469
|
-
(0,
|
|
7526
|
+
(0, import_typeorm70.ViewColumn)({ name: "client_uuid" })
|
|
7470
7527
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
7471
7528
|
__decorateClass([
|
|
7472
|
-
(0,
|
|
7529
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_id" })
|
|
7473
7530
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
7474
7531
|
__decorateClass([
|
|
7475
|
-
(0,
|
|
7532
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_uuid" })
|
|
7476
7533
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
7477
7534
|
__decorateClass([
|
|
7478
|
-
(0,
|
|
7535
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_unique_id" })
|
|
7479
7536
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
7480
7537
|
__decorateClass([
|
|
7481
|
-
(0,
|
|
7538
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_first_name" })
|
|
7482
7539
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
7483
7540
|
__decorateClass([
|
|
7484
|
-
(0,
|
|
7541
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_last_name" })
|
|
7485
7542
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
7486
7543
|
__decorateClass([
|
|
7487
|
-
(0,
|
|
7544
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_email" })
|
|
7488
7545
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
7489
7546
|
__decorateClass([
|
|
7490
|
-
(0,
|
|
7547
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
7491
7548
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
7492
7549
|
__decorateClass([
|
|
7493
|
-
(0,
|
|
7550
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_is_social" })
|
|
7494
7551
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
7495
7552
|
__decorateClass([
|
|
7496
|
-
(0,
|
|
7553
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_created_at" })
|
|
7497
7554
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
7498
7555
|
__decorateClass([
|
|
7499
|
-
(0,
|
|
7556
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_designation" })
|
|
7500
7557
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
7501
7558
|
__decorateClass([
|
|
7502
|
-
(0,
|
|
7559
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_experience" })
|
|
7503
7560
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
7504
7561
|
__decorateClass([
|
|
7505
|
-
(0,
|
|
7562
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
7506
7563
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
7507
7564
|
__decorateClass([
|
|
7508
|
-
(0,
|
|
7565
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
7509
7566
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
7510
7567
|
__decorateClass([
|
|
7511
|
-
(0,
|
|
7568
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_country_name" })
|
|
7512
7569
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
7513
7570
|
__decorateClass([
|
|
7514
|
-
(0,
|
|
7571
|
+
(0, import_typeorm70.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
7515
7572
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
7516
7573
|
__decorateClass([
|
|
7517
|
-
(0,
|
|
7574
|
+
(0, import_typeorm70.ViewColumn)({ name: "matching_skills" })
|
|
7518
7575
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
7519
7576
|
__decorateClass([
|
|
7520
|
-
(0,
|
|
7577
|
+
(0, import_typeorm70.ViewColumn)({ name: "matching_skills_count" })
|
|
7521
7578
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
7522
7579
|
__decorateClass([
|
|
7523
|
-
(0,
|
|
7580
|
+
(0, import_typeorm70.ViewColumn)({ name: "required_skills" })
|
|
7524
7581
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
7525
7582
|
__decorateClass([
|
|
7526
|
-
(0,
|
|
7583
|
+
(0, import_typeorm70.ViewColumn)({ name: "required_skills_count" })
|
|
7527
7584
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
7528
7585
|
ClientFreelancerRecommendation = __decorateClass([
|
|
7529
|
-
(0,
|
|
7586
|
+
(0, import_typeorm70.ViewEntity)({
|
|
7530
7587
|
name: "client_freelancer_recommendations",
|
|
7531
7588
|
materialized: true,
|
|
7532
7589
|
synchronize: false
|
|
@@ -7535,7 +7592,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
7535
7592
|
], ClientFreelancerRecommendation);
|
|
7536
7593
|
|
|
7537
7594
|
// src/entities/commission.entity.ts
|
|
7538
|
-
var
|
|
7595
|
+
var import_typeorm71 = require("typeorm");
|
|
7539
7596
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
7540
7597
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
7541
7598
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -7544,7 +7601,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
7544
7601
|
var Commission = class extends BaseEntity {
|
|
7545
7602
|
};
|
|
7546
7603
|
__decorateClass([
|
|
7547
|
-
(0,
|
|
7604
|
+
(0, import_typeorm71.Column)({
|
|
7548
7605
|
name: "freelancer_commission_type",
|
|
7549
7606
|
type: "enum",
|
|
7550
7607
|
enum: CommissionTypeEnum,
|
|
@@ -7552,10 +7609,10 @@ __decorateClass([
|
|
|
7552
7609
|
})
|
|
7553
7610
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
7554
7611
|
__decorateClass([
|
|
7555
|
-
(0,
|
|
7612
|
+
(0, import_typeorm71.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
7556
7613
|
], Commission.prototype, "freelancerCommission", 2);
|
|
7557
7614
|
__decorateClass([
|
|
7558
|
-
(0,
|
|
7615
|
+
(0, import_typeorm71.Column)({
|
|
7559
7616
|
name: "client_commission_type",
|
|
7560
7617
|
type: "enum",
|
|
7561
7618
|
enum: CommissionTypeEnum,
|
|
@@ -7563,66 +7620,66 @@ __decorateClass([
|
|
|
7563
7620
|
})
|
|
7564
7621
|
], Commission.prototype, "clientCommissionType", 2);
|
|
7565
7622
|
__decorateClass([
|
|
7566
|
-
(0,
|
|
7623
|
+
(0, import_typeorm71.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
7567
7624
|
], Commission.prototype, "clientCommission", 2);
|
|
7568
7625
|
Commission = __decorateClass([
|
|
7569
|
-
(0,
|
|
7626
|
+
(0, import_typeorm71.Entity)("commissions")
|
|
7570
7627
|
], Commission);
|
|
7571
7628
|
|
|
7572
7629
|
// src/entities/calendly-meeting-log.entity.ts
|
|
7573
|
-
var
|
|
7630
|
+
var import_typeorm72 = require("typeorm");
|
|
7574
7631
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
7575
7632
|
};
|
|
7576
7633
|
__decorateClass([
|
|
7577
|
-
(0,
|
|
7578
|
-
(0,
|
|
7634
|
+
(0, import_typeorm72.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
7635
|
+
(0, import_typeorm72.Index)()
|
|
7579
7636
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
7580
7637
|
__decorateClass([
|
|
7581
|
-
(0,
|
|
7638
|
+
(0, import_typeorm72.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
7582
7639
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
7583
7640
|
__decorateClass([
|
|
7584
|
-
(0,
|
|
7641
|
+
(0, import_typeorm72.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7585
7642
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
7586
7643
|
CalendlyMeetingLog = __decorateClass([
|
|
7587
|
-
(0,
|
|
7644
|
+
(0, import_typeorm72.Entity)("calendly_meeting_logs")
|
|
7588
7645
|
], CalendlyMeetingLog);
|
|
7589
7646
|
|
|
7590
7647
|
// src/entities/zoom-meeting-log.entity.ts
|
|
7591
|
-
var
|
|
7648
|
+
var import_typeorm73 = require("typeorm");
|
|
7592
7649
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
7593
7650
|
};
|
|
7594
7651
|
__decorateClass([
|
|
7595
|
-
(0,
|
|
7596
|
-
(0,
|
|
7652
|
+
(0, import_typeorm73.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
7653
|
+
(0, import_typeorm73.Index)()
|
|
7597
7654
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
7598
7655
|
__decorateClass([
|
|
7599
|
-
(0,
|
|
7656
|
+
(0, import_typeorm73.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
7600
7657
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
7601
7658
|
__decorateClass([
|
|
7602
|
-
(0,
|
|
7659
|
+
(0, import_typeorm73.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7603
7660
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
7604
7661
|
ZoomMeetingLog = __decorateClass([
|
|
7605
|
-
(0,
|
|
7662
|
+
(0, import_typeorm73.Entity)("zoom_meeting_logs")
|
|
7606
7663
|
], ZoomMeetingLog);
|
|
7607
7664
|
|
|
7608
7665
|
// src/entities/stripe-logs.entity.ts
|
|
7609
|
-
var
|
|
7666
|
+
var import_typeorm74 = require("typeorm");
|
|
7610
7667
|
var StripeLog = class extends BaseEntity {
|
|
7611
7668
|
};
|
|
7612
7669
|
__decorateClass([
|
|
7613
|
-
(0,
|
|
7670
|
+
(0, import_typeorm74.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
7614
7671
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
7615
7672
|
__decorateClass([
|
|
7616
|
-
(0,
|
|
7673
|
+
(0, import_typeorm74.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
7617
7674
|
], StripeLog.prototype, "eventType", 2);
|
|
7618
7675
|
__decorateClass([
|
|
7619
|
-
(0,
|
|
7676
|
+
(0, import_typeorm74.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
7620
7677
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
7621
7678
|
__decorateClass([
|
|
7622
|
-
(0,
|
|
7679
|
+
(0, import_typeorm74.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7623
7680
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
7624
7681
|
StripeLog = __decorateClass([
|
|
7625
|
-
(0,
|
|
7682
|
+
(0, import_typeorm74.Entity)("stripe_logs")
|
|
7626
7683
|
], StripeLog);
|
|
7627
7684
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7628
7685
|
0 && (module.exports = {
|
|
@@ -7857,12 +7914,9 @@ StripeLog = __decorateClass([
|
|
|
7857
7914
|
State,
|
|
7858
7915
|
Step,
|
|
7859
7916
|
StripeLog,
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
StripeWalletTransaction,
|
|
7864
|
-
StripeWalletTransactionStatusEnum,
|
|
7865
|
-
StripeWalletTransactionTypeEnum,
|
|
7917
|
+
StripeTransaction,
|
|
7918
|
+
StripeTransactionStatusEnum,
|
|
7919
|
+
StripeTransactionTypeEnum,
|
|
7866
7920
|
SystemPreference,
|
|
7867
7921
|
SystemPreferenceDto,
|
|
7868
7922
|
SystemPreferenceKey,
|
|
@@ -7901,5 +7955,11 @@ StripeLog = __decorateClass([
|
|
|
7901
7955
|
UserTCPAdapter,
|
|
7902
7956
|
VerifyGuestOtpDto,
|
|
7903
7957
|
VerifyGuestOtpPurposeEnum,
|
|
7958
|
+
Wallet,
|
|
7959
|
+
WalletAccountTypeEnum,
|
|
7960
|
+
WalletOnboardingStatusEnum,
|
|
7961
|
+
WalletTransaction,
|
|
7962
|
+
WalletTransactionStatusEnum,
|
|
7963
|
+
WalletTransactionTypeEnum,
|
|
7904
7964
|
ZoomMeetingLog
|
|
7905
7965
|
});
|