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