@experts_hub/shared 1.0.733 → 1.0.736
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/ekyc-verification-log.entity.d.ts +6 -2
- package/dist/entities/ekyc-verification-session.entity.d.ts +9 -1
- package/dist/entities/user.entity.d.ts +6 -0
- package/dist/entities/wallet-transaction.entity.d.ts +3 -0
- package/dist/index.d.mts +75 -28
- package/dist/index.d.ts +75 -28
- package/dist/index.js +598 -443
- package/dist/index.mjs +461 -292
- package/dist/modules/didit/dto/create-ekyc-session.dto.d.ts +21 -1
- package/dist/modules/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -133,6 +133,7 @@ __export(index_exports, {
|
|
|
133
133
|
CompanyRole: () => CompanyRole,
|
|
134
134
|
CompanyRolePermission: () => CompanyRolePermission,
|
|
135
135
|
CompanySkill: () => CompanySkill,
|
|
136
|
+
ContactDetailsDto: () => ContactDetailsDto,
|
|
136
137
|
Contract: () => Contract,
|
|
137
138
|
ContractRMQAdapter: () => ContractRMQAdapter,
|
|
138
139
|
ContractStatusEnum: () => ContractStatusEnum,
|
|
@@ -151,6 +152,7 @@ __export(index_exports, {
|
|
|
151
152
|
CreateCompanyRoleDto: () => CreateCompanyRoleDto,
|
|
152
153
|
CreateDefaultTimesheetLineDto: () => CreateDefaultTimesheetLineDto,
|
|
153
154
|
CreateDisputeDto: () => CreateDisputeDto,
|
|
155
|
+
CreateEkycSessionDto: () => CreateEkycSessionDto,
|
|
154
156
|
CreateF2FInterviewDirectDto: () => CreateF2FInterviewDirectDto,
|
|
155
157
|
CreateF2FInterviewDto: () => CreateF2FInterviewDto,
|
|
156
158
|
CreateF2FInterviewRescheduleRequestDto: () => CreateF2FInterviewRescheduleRequestDto,
|
|
@@ -173,6 +175,7 @@ __export(index_exports, {
|
|
|
173
175
|
CreateTaskQueryDto: () => CreateTaskQueryDto,
|
|
174
176
|
CreateUserSigningDto: () => CreateUserSigningDto,
|
|
175
177
|
CustomQuestionItemDto: () => CustomQuestionItemDto,
|
|
178
|
+
DIDIT_PATTERN: () => DIDIT_PATTERN,
|
|
176
179
|
DISPUTE_PATTERN: () => DISPUTE_PATTERN,
|
|
177
180
|
DOCUSEAL_PATTERN: () => DOCUSEAL_PATTERN,
|
|
178
181
|
DebitCommissionFteHiringDto: () => DebitCommissionFteHiringDto,
|
|
@@ -188,7 +191,7 @@ __export(index_exports, {
|
|
|
188
191
|
DurationTypeEnum: () => DurationTypeEnum,
|
|
189
192
|
EMAIL_PATTERN: () => EMAIL_PATTERN,
|
|
190
193
|
EducationDto: () => EducationDto,
|
|
191
|
-
|
|
194
|
+
EkycVerificationLog: () => EkycVerificationLog,
|
|
192
195
|
EkycVerificationLogStatusEnum: () => EkycVerificationLogStatusEnum,
|
|
193
196
|
EkycVerificationSession: () => EkycVerificationSession,
|
|
194
197
|
EkycVerificationSessionStatusEnum: () => EkycVerificationSessionStatusEnum,
|
|
@@ -200,6 +203,7 @@ __export(index_exports, {
|
|
|
200
203
|
EsignContractClientDto: () => EsignContractClientDto,
|
|
201
204
|
EsignContractFreelancerDto: () => EsignContractFreelancerDto,
|
|
202
205
|
ExistingCandidateDto: () => ExistingCandidateDto2,
|
|
206
|
+
ExpectedDetailsDto: () => ExpectedDetailsDto,
|
|
203
207
|
ExperienceDto: () => ExperienceDto,
|
|
204
208
|
F2FInterview: () => F2FInterview,
|
|
205
209
|
F2FInterviewSchedule: () => F2FInterviewSchedule,
|
|
@@ -318,6 +322,7 @@ __export(index_exports, {
|
|
|
318
322
|
MarkTaskAsCompletedDto: () => MarkTaskAsCompletedDto,
|
|
319
323
|
MarkTaskQueryMessagesReadDto: () => MarkTaskQueryMessagesReadDto,
|
|
320
324
|
McqStatusEnum: () => McqStatusEnum,
|
|
325
|
+
MetadataDto: () => MetadataDto,
|
|
321
326
|
ModeOfHire: () => ModeOfHire,
|
|
322
327
|
ModeOfWork: () => ModeOfWork,
|
|
323
328
|
NOTIFICATION_PATTERN: () => NOTIFICATION_PATTERN,
|
|
@@ -1500,7 +1505,7 @@ __decorateClass([
|
|
|
1500
1505
|
var import_class_validator37 = require("class-validator");
|
|
1501
1506
|
|
|
1502
1507
|
// src/entities/user.entity.ts
|
|
1503
|
-
var
|
|
1508
|
+
var import_typeorm82 = require("typeorm");
|
|
1504
1509
|
|
|
1505
1510
|
// src/entities/base.entity.ts
|
|
1506
1511
|
var import_typeorm = require("typeorm");
|
|
@@ -6485,6 +6490,14 @@ __decorateClass([
|
|
|
6485
6490
|
(0, import_typeorm72.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
6486
6491
|
(0, import_typeorm72.JoinColumn)({ name: "wallet_id" })
|
|
6487
6492
|
], WalletTransaction.prototype, "wallet", 2);
|
|
6493
|
+
__decorateClass([
|
|
6494
|
+
(0, import_typeorm72.Column)({ name: "from_user_id", type: "integer", nullable: true }),
|
|
6495
|
+
(0, import_typeorm72.Index)()
|
|
6496
|
+
], WalletTransaction.prototype, "fromUserId", 2);
|
|
6497
|
+
__decorateClass([
|
|
6498
|
+
(0, import_typeorm72.ManyToOne)(() => User, (user) => user.sentTransactions),
|
|
6499
|
+
(0, import_typeorm72.JoinColumn)({ name: "from_user_id" })
|
|
6500
|
+
], WalletTransaction.prototype, "fromUser", 2);
|
|
6488
6501
|
__decorateClass([
|
|
6489
6502
|
(0, import_typeorm72.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
6490
6503
|
], WalletTransaction.prototype, "amount", 2);
|
|
@@ -6501,7 +6514,12 @@ __decorateClass([
|
|
|
6501
6514
|
(0, import_typeorm72.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
6502
6515
|
], WalletTransaction.prototype, "type", 2);
|
|
6503
6516
|
__decorateClass([
|
|
6504
|
-
(0, import_typeorm72.Column)({
|
|
6517
|
+
(0, import_typeorm72.Column)({
|
|
6518
|
+
name: "status",
|
|
6519
|
+
type: "enum",
|
|
6520
|
+
enum: WalletTransactionStatusEnum,
|
|
6521
|
+
default: "PENDING" /* PENDING */
|
|
6522
|
+
})
|
|
6505
6523
|
], WalletTransaction.prototype, "status", 2);
|
|
6506
6524
|
__decorateClass([
|
|
6507
6525
|
(0, import_typeorm72.Column)({ name: "description", type: "text", nullable: true })
|
|
@@ -6929,6 +6947,24 @@ __decorateClass([
|
|
|
6929
6947
|
__decorateClass([
|
|
6930
6948
|
(0, import_typeorm80.Column)({ name: "session_id", type: "varchar", unique: true })
|
|
6931
6949
|
], EkycVerificationSession.prototype, "sessionId", 2);
|
|
6950
|
+
__decorateClass([
|
|
6951
|
+
(0, import_typeorm80.Column)({ name: "session_number", type: "integer" })
|
|
6952
|
+
], EkycVerificationSession.prototype, "sessionNumber", 2);
|
|
6953
|
+
__decorateClass([
|
|
6954
|
+
(0, import_typeorm80.Column)({ name: "token", type: "varchar", nullable: true })
|
|
6955
|
+
], EkycVerificationSession.prototype, "token", 2);
|
|
6956
|
+
__decorateClass([
|
|
6957
|
+
(0, import_typeorm80.Column)({ name: "url", type: "varchar", nullable: true })
|
|
6958
|
+
], EkycVerificationSession.prototype, "url", 2);
|
|
6959
|
+
__decorateClass([
|
|
6960
|
+
(0, import_typeorm80.Column)({ name: "vendor_data", type: "varchar", nullable: true })
|
|
6961
|
+
], EkycVerificationSession.prototype, "vendorData", 2);
|
|
6962
|
+
__decorateClass([
|
|
6963
|
+
(0, import_typeorm80.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
6964
|
+
], EkycVerificationSession.prototype, "metaData", 2);
|
|
6965
|
+
__decorateClass([
|
|
6966
|
+
(0, import_typeorm80.Column)({ name: "decision_data", type: "jsonb", nullable: true })
|
|
6967
|
+
], EkycVerificationSession.prototype, "decisionData", 2);
|
|
6932
6968
|
__decorateClass([
|
|
6933
6969
|
(0, import_typeorm80.Column)({
|
|
6934
6970
|
name: "status",
|
|
@@ -6938,13 +6974,14 @@ __decorateClass([
|
|
|
6938
6974
|
})
|
|
6939
6975
|
], EkycVerificationSession.prototype, "status", 2);
|
|
6940
6976
|
__decorateClass([
|
|
6941
|
-
(0, import_typeorm80.Column)({
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6977
|
+
(0, import_typeorm80.Column)({ name: "callback_url", type: "varchar", nullable: true })
|
|
6978
|
+
], EkycVerificationSession.prototype, "callBackUrl", 2);
|
|
6979
|
+
__decorateClass([
|
|
6980
|
+
(0, import_typeorm80.Column)({ name: "workflow_id", type: "varchar", nullable: true })
|
|
6981
|
+
], EkycVerificationSession.prototype, "workflowId", 2);
|
|
6982
|
+
__decorateClass([
|
|
6983
|
+
(0, import_typeorm80.Column)({ name: "workflow_version", type: "varchar", nullable: true })
|
|
6984
|
+
], EkycVerificationSession.prototype, "workflowVersion", 2);
|
|
6948
6985
|
__decorateClass([
|
|
6949
6986
|
(0, import_typeorm80.Column)({
|
|
6950
6987
|
name: "expired_at",
|
|
@@ -6956,6 +6993,72 @@ EkycVerificationSession = __decorateClass([
|
|
|
6956
6993
|
(0, import_typeorm80.Entity)("ekyc_verification_sessions")
|
|
6957
6994
|
], EkycVerificationSession);
|
|
6958
6995
|
|
|
6996
|
+
// src/entities/ekyc-verification-log.entity.ts
|
|
6997
|
+
var import_typeorm81 = require("typeorm");
|
|
6998
|
+
var EkycVerificationLogStatusEnum = /* @__PURE__ */ ((EkycVerificationLogStatusEnum2) => {
|
|
6999
|
+
EkycVerificationLogStatusEnum2["NOT_STARTED"] = "NOT_STARTED";
|
|
7000
|
+
EkycVerificationLogStatusEnum2["NOT_FINISHED"] = "NOT_FINISHED";
|
|
7001
|
+
EkycVerificationLogStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
7002
|
+
EkycVerificationLogStatusEnum2["APPROVED"] = "APPROVED";
|
|
7003
|
+
EkycVerificationLogStatusEnum2["DECLINED"] = "DECLINED";
|
|
7004
|
+
EkycVerificationLogStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
7005
|
+
EkycVerificationLogStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
7006
|
+
EkycVerificationLogStatusEnum2["KYC_EXPIRED"] = "KYC_EXPIRED";
|
|
7007
|
+
EkycVerificationLogStatusEnum2["ABANDONED"] = "ABANDONED";
|
|
7008
|
+
EkycVerificationLogStatusEnum2["RESUBMITTED"] = "RESUBMITTED";
|
|
7009
|
+
EkycVerificationLogStatusEnum2["AWAITING_USER"] = "AWAITING_USER";
|
|
7010
|
+
return EkycVerificationLogStatusEnum2;
|
|
7011
|
+
})(EkycVerificationLogStatusEnum || {});
|
|
7012
|
+
var EkycVerificationLog = class {
|
|
7013
|
+
};
|
|
7014
|
+
__decorateClass([
|
|
7015
|
+
(0, import_typeorm81.PrimaryGeneratedColumn)("increment", { type: "integer" })
|
|
7016
|
+
], EkycVerificationLog.prototype, "id", 2);
|
|
7017
|
+
__decorateClass([
|
|
7018
|
+
(0, import_typeorm81.Column)({ name: "user_id", type: "integer", nullable: true })
|
|
7019
|
+
], EkycVerificationLog.prototype, "userId", 2);
|
|
7020
|
+
__decorateClass([
|
|
7021
|
+
(0, import_typeorm81.ManyToOne)(() => User, (user) => user.ekycVerificationLogs),
|
|
7022
|
+
(0, import_typeorm81.JoinColumn)({ name: "user_id" })
|
|
7023
|
+
], EkycVerificationLog.prototype, "user", 2);
|
|
7024
|
+
__decorateClass([
|
|
7025
|
+
(0, import_typeorm81.Column)({ name: "session_id", type: "varchar", nullable: true })
|
|
7026
|
+
], EkycVerificationLog.prototype, "sessionId", 2);
|
|
7027
|
+
__decorateClass([
|
|
7028
|
+
(0, import_typeorm81.Column)({ name: "workflow_id", type: "varchar", nullable: true })
|
|
7029
|
+
], EkycVerificationLog.prototype, "workflowId", 2);
|
|
7030
|
+
__decorateClass([
|
|
7031
|
+
(0, import_typeorm81.Column)({ name: "callback_url", type: "varchar", nullable: true })
|
|
7032
|
+
], EkycVerificationLog.prototype, "callBackUrl", 2);
|
|
7033
|
+
__decorateClass([
|
|
7034
|
+
(0, import_typeorm81.Column)({
|
|
7035
|
+
type: "enum",
|
|
7036
|
+
enum: EkycVerificationLogStatusEnum,
|
|
7037
|
+
nullable: true
|
|
7038
|
+
})
|
|
7039
|
+
], EkycVerificationLog.prototype, "status", 2);
|
|
7040
|
+
__decorateClass([
|
|
7041
|
+
(0, import_typeorm81.Column)({ name: "signature_method", type: "varchar", nullable: true })
|
|
7042
|
+
], EkycVerificationLog.prototype, "signatureMethod", 2);
|
|
7043
|
+
__decorateClass([
|
|
7044
|
+
(0, import_typeorm81.Column)({ name: "is_signature_valid", type: "boolean", default: false })
|
|
7045
|
+
], EkycVerificationLog.prototype, "isSignatureValid", 2);
|
|
7046
|
+
__decorateClass([
|
|
7047
|
+
(0, import_typeorm81.Column)({ name: "raw_payload", type: "jsonb", nullable: true })
|
|
7048
|
+
], EkycVerificationLog.prototype, "rawPayload", 2);
|
|
7049
|
+
__decorateClass([
|
|
7050
|
+
(0, import_typeorm81.Column)({ name: "headers", type: "jsonb", nullable: true })
|
|
7051
|
+
], EkycVerificationLog.prototype, "headers", 2);
|
|
7052
|
+
__decorateClass([
|
|
7053
|
+
(0, import_typeorm81.Column)({ name: "error_message", type: "text", nullable: true })
|
|
7054
|
+
], EkycVerificationLog.prototype, "errorMessage", 2);
|
|
7055
|
+
__decorateClass([
|
|
7056
|
+
(0, import_typeorm81.CreateDateColumn)({ name: "created_at", type: "timestamp with time zone" })
|
|
7057
|
+
], EkycVerificationLog.prototype, "createdAt", 2);
|
|
7058
|
+
EkycVerificationLog = __decorateClass([
|
|
7059
|
+
(0, import_typeorm81.Entity)("ekyc_verification_logs")
|
|
7060
|
+
], EkycVerificationLog);
|
|
7061
|
+
|
|
6959
7062
|
// src/entities/user.entity.ts
|
|
6960
7063
|
var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
|
|
6961
7064
|
AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
@@ -6982,57 +7085,57 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
6982
7085
|
var User = class extends BaseEntity {
|
|
6983
7086
|
};
|
|
6984
7087
|
__decorateClass([
|
|
6985
|
-
(0,
|
|
7088
|
+
(0, import_typeorm82.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
6986
7089
|
], User.prototype, "uniqueId", 2);
|
|
6987
7090
|
__decorateClass([
|
|
6988
|
-
(0,
|
|
6989
|
-
(0,
|
|
7091
|
+
(0, import_typeorm82.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
7092
|
+
(0, import_typeorm82.Index)()
|
|
6990
7093
|
], User.prototype, "parentId", 2);
|
|
6991
7094
|
__decorateClass([
|
|
6992
|
-
(0,
|
|
6993
|
-
(0,
|
|
7095
|
+
(0, import_typeorm82.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
7096
|
+
(0, import_typeorm82.JoinColumn)({ name: "parent_id" })
|
|
6994
7097
|
], User.prototype, "parent", 2);
|
|
6995
7098
|
__decorateClass([
|
|
6996
|
-
(0,
|
|
7099
|
+
(0, import_typeorm82.OneToMany)(() => User, (user) => user.parent)
|
|
6997
7100
|
], User.prototype, "children", 2);
|
|
6998
7101
|
__decorateClass([
|
|
6999
|
-
(0,
|
|
7102
|
+
(0, import_typeorm82.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
7000
7103
|
], User.prototype, "username", 2);
|
|
7001
7104
|
__decorateClass([
|
|
7002
|
-
(0,
|
|
7105
|
+
(0, import_typeorm82.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
7003
7106
|
], User.prototype, "firstName", 2);
|
|
7004
7107
|
__decorateClass([
|
|
7005
|
-
(0,
|
|
7108
|
+
(0, import_typeorm82.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
7006
7109
|
], User.prototype, "lastName", 2);
|
|
7007
7110
|
__decorateClass([
|
|
7008
|
-
(0,
|
|
7111
|
+
(0, import_typeorm82.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
7009
7112
|
], User.prototype, "dateOfBirth", 2);
|
|
7010
7113
|
__decorateClass([
|
|
7011
|
-
(0,
|
|
7114
|
+
(0, import_typeorm82.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
7012
7115
|
], User.prototype, "gender", 2);
|
|
7013
7116
|
__decorateClass([
|
|
7014
|
-
(0,
|
|
7117
|
+
(0, import_typeorm82.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
7015
7118
|
], User.prototype, "profilePictureUrl", 2);
|
|
7016
7119
|
__decorateClass([
|
|
7017
|
-
(0,
|
|
7120
|
+
(0, import_typeorm82.Column)({ name: "presigned_profile_picture_url", type: "text", nullable: true })
|
|
7018
7121
|
], User.prototype, "presignedProfilePictureUrl", 2);
|
|
7019
7122
|
__decorateClass([
|
|
7020
|
-
(0,
|
|
7123
|
+
(0, import_typeorm82.Column)({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
|
|
7021
7124
|
], User.prototype, "presignedProfilePictureUrlExpiresAt", 2);
|
|
7022
7125
|
__decorateClass([
|
|
7023
|
-
(0,
|
|
7126
|
+
(0, import_typeorm82.Column)({ name: "email", type: "varchar", unique: true })
|
|
7024
7127
|
], User.prototype, "email", 2);
|
|
7025
7128
|
__decorateClass([
|
|
7026
|
-
(0,
|
|
7129
|
+
(0, import_typeorm82.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
7027
7130
|
], User.prototype, "mobileCode", 2);
|
|
7028
7131
|
__decorateClass([
|
|
7029
|
-
(0,
|
|
7132
|
+
(0, import_typeorm82.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
7030
7133
|
], User.prototype, "mobile", 2);
|
|
7031
7134
|
__decorateClass([
|
|
7032
|
-
(0,
|
|
7135
|
+
(0, import_typeorm82.Column)({ name: "password", type: "varchar", nullable: true })
|
|
7033
7136
|
], User.prototype, "password", 2);
|
|
7034
7137
|
__decorateClass([
|
|
7035
|
-
(0,
|
|
7138
|
+
(0, import_typeorm82.Column)({
|
|
7036
7139
|
name: "account_type",
|
|
7037
7140
|
type: "enum",
|
|
7038
7141
|
enum: AccountType2,
|
|
@@ -7040,7 +7143,7 @@ __decorateClass([
|
|
|
7040
7143
|
})
|
|
7041
7144
|
], User.prototype, "accountType", 2);
|
|
7042
7145
|
__decorateClass([
|
|
7043
|
-
(0,
|
|
7146
|
+
(0, import_typeorm82.Column)({
|
|
7044
7147
|
name: "account_status",
|
|
7045
7148
|
type: "enum",
|
|
7046
7149
|
enum: AccountStatus,
|
|
@@ -7048,45 +7151,55 @@ __decorateClass([
|
|
|
7048
7151
|
})
|
|
7049
7152
|
], User.prototype, "accountStatus", 2);
|
|
7050
7153
|
__decorateClass([
|
|
7051
|
-
(0,
|
|
7154
|
+
(0, import_typeorm82.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
7052
7155
|
], User.prototype, "isEmailVerified", 2);
|
|
7053
7156
|
__decorateClass([
|
|
7054
|
-
(0,
|
|
7157
|
+
(0, import_typeorm82.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
7055
7158
|
], User.prototype, "isMobileVerified", 2);
|
|
7056
7159
|
__decorateClass([
|
|
7057
|
-
(0,
|
|
7160
|
+
(0, import_typeorm82.Column)({ name: "is_social", type: "boolean", default: false })
|
|
7058
7161
|
], User.prototype, "isSocial", 2);
|
|
7059
7162
|
__decorateClass([
|
|
7060
|
-
(0,
|
|
7163
|
+
(0, import_typeorm82.Column)({ name: "is_referral_user", type: "boolean", default: false })
|
|
7061
7164
|
], User.prototype, "isReferralUser", 2);
|
|
7062
7165
|
__decorateClass([
|
|
7063
|
-
(0,
|
|
7166
|
+
(0, import_typeorm82.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
7167
|
+
], User.prototype, "isVerified", 2);
|
|
7168
|
+
__decorateClass([
|
|
7169
|
+
(0, import_typeorm82.Column)({
|
|
7170
|
+
name: "verified_at",
|
|
7171
|
+
type: "timestamp with time zone",
|
|
7172
|
+
nullable: true
|
|
7173
|
+
})
|
|
7174
|
+
], User.prototype, "verifiedAt", 2);
|
|
7175
|
+
__decorateClass([
|
|
7176
|
+
(0, import_typeorm82.Column)({
|
|
7064
7177
|
name: "last_login_at",
|
|
7065
7178
|
type: "timestamp with time zone",
|
|
7066
7179
|
nullable: true
|
|
7067
7180
|
})
|
|
7068
7181
|
], User.prototype, "lastLoginAt", 2);
|
|
7069
7182
|
__decorateClass([
|
|
7070
|
-
(0,
|
|
7183
|
+
(0, import_typeorm82.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
7071
7184
|
], User.prototype, "lastLoginIp", 2);
|
|
7072
7185
|
__decorateClass([
|
|
7073
|
-
(0,
|
|
7186
|
+
(0, import_typeorm82.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
7074
7187
|
], User.prototype, "resetToken", 2);
|
|
7075
7188
|
__decorateClass([
|
|
7076
|
-
(0,
|
|
7189
|
+
(0, import_typeorm82.Column)({
|
|
7077
7190
|
name: "reset_token_expire_at",
|
|
7078
7191
|
type: "timestamp with time zone",
|
|
7079
7192
|
nullable: true
|
|
7080
7193
|
})
|
|
7081
7194
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
7082
7195
|
__decorateClass([
|
|
7083
|
-
(0,
|
|
7196
|
+
(0, import_typeorm82.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
7084
7197
|
], User.prototype, "setPasswordToken", 2);
|
|
7085
7198
|
__decorateClass([
|
|
7086
|
-
(0,
|
|
7199
|
+
(0, import_typeorm82.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
7087
7200
|
], User.prototype, "refreshTokens", 2);
|
|
7088
7201
|
__decorateClass([
|
|
7089
|
-
(0,
|
|
7202
|
+
(0, import_typeorm82.Column)({
|
|
7090
7203
|
name: "provider",
|
|
7091
7204
|
type: "enum",
|
|
7092
7205
|
enum: Provider,
|
|
@@ -7095,278 +7208,284 @@ __decorateClass([
|
|
|
7095
7208
|
})
|
|
7096
7209
|
], User.prototype, "provider", 2);
|
|
7097
7210
|
__decorateClass([
|
|
7098
|
-
(0,
|
|
7211
|
+
(0, import_typeorm82.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
7099
7212
|
], User.prototype, "providerToken", 2);
|
|
7100
7213
|
__decorateClass([
|
|
7101
|
-
(0,
|
|
7214
|
+
(0, import_typeorm82.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
7102
7215
|
], User.prototype, "linkedInId", 2);
|
|
7103
7216
|
__decorateClass([
|
|
7104
|
-
(0,
|
|
7217
|
+
(0, import_typeorm82.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
7105
7218
|
], User.prototype, "googleId", 2);
|
|
7106
7219
|
__decorateClass([
|
|
7107
|
-
(0,
|
|
7220
|
+
(0, import_typeorm82.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
7108
7221
|
], User.prototype, "gitLabsId", 2);
|
|
7109
7222
|
__decorateClass([
|
|
7110
|
-
(0,
|
|
7223
|
+
(0, import_typeorm82.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
7111
7224
|
], User.prototype, "onBoardedBy", 2);
|
|
7112
7225
|
__decorateClass([
|
|
7113
|
-
(0,
|
|
7226
|
+
(0, import_typeorm82.Column)({ name: "ip", type: "varchar", nullable: true })
|
|
7114
7227
|
], User.prototype, "ip", 2);
|
|
7115
7228
|
__decorateClass([
|
|
7116
|
-
(0,
|
|
7229
|
+
(0, import_typeorm82.OneToMany)(() => Otp, (otp) => otp.user)
|
|
7117
7230
|
], User.prototype, "otps", 2);
|
|
7118
7231
|
__decorateClass([
|
|
7119
|
-
(0,
|
|
7232
|
+
(0, import_typeorm82.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
7120
7233
|
], User.prototype, "senseloafLogs", 2);
|
|
7121
7234
|
__decorateClass([
|
|
7122
|
-
(0,
|
|
7235
|
+
(0, import_typeorm82.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
7123
7236
|
], User.prototype, "companyProfile", 2);
|
|
7124
7237
|
__decorateClass([
|
|
7125
|
-
(0,
|
|
7238
|
+
(0, import_typeorm82.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
7126
7239
|
], User.prototype, "companySkills", 2);
|
|
7127
7240
|
__decorateClass([
|
|
7128
|
-
(0,
|
|
7241
|
+
(0, import_typeorm82.OneToMany)(
|
|
7129
7242
|
() => CompanyMemberRole,
|
|
7130
7243
|
(companyMemberRole) => companyMemberRole.user
|
|
7131
7244
|
)
|
|
7132
7245
|
], User.prototype, "companyMemberRoles", 2);
|
|
7133
7246
|
__decorateClass([
|
|
7134
|
-
(0,
|
|
7247
|
+
(0, import_typeorm82.OneToOne)(() => CompanyMember, (companyMember) => companyMember.user)
|
|
7135
7248
|
], User.prototype, "companyMember", 2);
|
|
7136
7249
|
__decorateClass([
|
|
7137
|
-
(0,
|
|
7250
|
+
(0, import_typeorm82.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
7138
7251
|
], User.prototype, "companyAiInterview", 2);
|
|
7139
7252
|
__decorateClass([
|
|
7140
|
-
(0,
|
|
7253
|
+
(0, import_typeorm82.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
7141
7254
|
], User.prototype, "clientF2FInterviews", 2);
|
|
7142
7255
|
__decorateClass([
|
|
7143
|
-
(0,
|
|
7256
|
+
(0, import_typeorm82.OneToOne)(
|
|
7144
7257
|
() => FreelancerProfile,
|
|
7145
7258
|
(freelancerProfile) => freelancerProfile.user
|
|
7146
7259
|
)
|
|
7147
7260
|
], User.prototype, "freelancerProfile", 2);
|
|
7148
7261
|
__decorateClass([
|
|
7149
|
-
(0,
|
|
7262
|
+
(0, import_typeorm82.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
7150
7263
|
], User.prototype, "freelancerResume", 2);
|
|
7151
7264
|
__decorateClass([
|
|
7152
|
-
(0,
|
|
7265
|
+
(0, import_typeorm82.OneToMany)(
|
|
7153
7266
|
() => FreelancerAssessmentRequest,
|
|
7154
7267
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
7155
7268
|
)
|
|
7156
7269
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
7157
7270
|
__decorateClass([
|
|
7158
|
-
(0,
|
|
7271
|
+
(0, import_typeorm82.OneToMany)(
|
|
7159
7272
|
() => FreelancerAssessmentRequest,
|
|
7160
7273
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
7161
7274
|
)
|
|
7162
7275
|
], User.prototype, "assessmentRequests", 2);
|
|
7163
7276
|
__decorateClass([
|
|
7164
|
-
(0,
|
|
7277
|
+
(0, import_typeorm82.OneToMany)(
|
|
7165
7278
|
() => FreelancerAssessment,
|
|
7166
7279
|
(freelancerAssessment) => freelancerAssessment.user
|
|
7167
7280
|
)
|
|
7168
7281
|
], User.prototype, "assessments", 2);
|
|
7169
7282
|
__decorateClass([
|
|
7170
|
-
(0,
|
|
7283
|
+
(0, import_typeorm82.OneToMany)(
|
|
7171
7284
|
() => AssessmentAnswer,
|
|
7172
7285
|
(assessmentAnswer) => assessmentAnswer.user
|
|
7173
7286
|
)
|
|
7174
7287
|
], User.prototype, "assessmentAnswers", 2);
|
|
7175
7288
|
__decorateClass([
|
|
7176
|
-
(0,
|
|
7289
|
+
(0, import_typeorm82.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
7177
7290
|
], User.prototype, "freelancerSkills", 2);
|
|
7178
7291
|
__decorateClass([
|
|
7179
|
-
(0,
|
|
7292
|
+
(0, import_typeorm82.OneToMany)(
|
|
7180
7293
|
() => FreelancerExperience,
|
|
7181
7294
|
(freelancerExperience) => freelancerExperience.user
|
|
7182
7295
|
)
|
|
7183
7296
|
], User.prototype, "freelancerExperience", 2);
|
|
7184
7297
|
__decorateClass([
|
|
7185
|
-
(0,
|
|
7298
|
+
(0, import_typeorm82.OneToMany)(
|
|
7186
7299
|
() => FreelancerEducation,
|
|
7187
7300
|
(freelancerEducation) => freelancerEducation.user
|
|
7188
7301
|
)
|
|
7189
7302
|
], User.prototype, "freelancerEducation", 2);
|
|
7190
7303
|
__decorateClass([
|
|
7191
|
-
(0,
|
|
7304
|
+
(0, import_typeorm82.OneToMany)(
|
|
7192
7305
|
() => FreelancerProject,
|
|
7193
7306
|
(freelancerProject) => freelancerProject.user
|
|
7194
7307
|
)
|
|
7195
7308
|
], User.prototype, "freelancerProject", 2);
|
|
7196
7309
|
__decorateClass([
|
|
7197
|
-
(0,
|
|
7310
|
+
(0, import_typeorm82.OneToMany)(
|
|
7198
7311
|
() => FreelancerCaseStudy,
|
|
7199
7312
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
7200
7313
|
)
|
|
7201
7314
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
7202
7315
|
__decorateClass([
|
|
7203
|
-
(0,
|
|
7316
|
+
(0, import_typeorm82.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
7204
7317
|
], User.prototype, "freelancerTool", 2);
|
|
7205
7318
|
__decorateClass([
|
|
7206
|
-
(0,
|
|
7319
|
+
(0, import_typeorm82.OneToMany)(
|
|
7207
7320
|
() => FreelancerFramework,
|
|
7208
7321
|
(freelancerFramework) => freelancerFramework.user
|
|
7209
7322
|
)
|
|
7210
7323
|
], User.prototype, "freelancerFramework", 2);
|
|
7211
7324
|
__decorateClass([
|
|
7212
|
-
(0,
|
|
7325
|
+
(0, import_typeorm82.OneToOne)(
|
|
7213
7326
|
() => FreelancerDeclaration,
|
|
7214
7327
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
7215
7328
|
)
|
|
7216
7329
|
], User.prototype, "freelancerDeclaration", 2);
|
|
7217
7330
|
__decorateClass([
|
|
7218
|
-
(0,
|
|
7331
|
+
(0, import_typeorm82.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
7219
7332
|
], User.prototype, "freelancerMcq", 2);
|
|
7220
7333
|
__decorateClass([
|
|
7221
|
-
(0,
|
|
7334
|
+
(0, import_typeorm82.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
7222
7335
|
], User.prototype, "freelancerAiInterview", 2);
|
|
7223
7336
|
__decorateClass([
|
|
7224
|
-
(0,
|
|
7337
|
+
(0, import_typeorm82.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
7225
7338
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
7226
7339
|
__decorateClass([
|
|
7227
|
-
(0,
|
|
7340
|
+
(0, import_typeorm82.OneToMany)(
|
|
7228
7341
|
() => F2fInterviewRescheduleRequest,
|
|
7229
7342
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
7230
7343
|
)
|
|
7231
7344
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
7232
7345
|
__decorateClass([
|
|
7233
|
-
(0,
|
|
7346
|
+
(0, import_typeorm82.OneToMany)(
|
|
7234
7347
|
() => AiInterviewRescheduleRequest,
|
|
7235
7348
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
7236
7349
|
)
|
|
7237
7350
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
7238
7351
|
__decorateClass([
|
|
7239
|
-
(0,
|
|
7352
|
+
(0, import_typeorm82.OneToMany)(
|
|
7240
7353
|
() => AiInterviewRescheduleRequest,
|
|
7241
7354
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
7242
7355
|
)
|
|
7243
7356
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
7244
7357
|
__decorateClass([
|
|
7245
|
-
(0,
|
|
7358
|
+
(0, import_typeorm82.OneToMany)(() => Job, (job) => job.user)
|
|
7246
7359
|
], User.prototype, "jobs", 2);
|
|
7247
7360
|
__decorateClass([
|
|
7248
|
-
(0,
|
|
7361
|
+
(0, import_typeorm82.OneToMany)(() => Task, (task) => task.client)
|
|
7249
7362
|
], User.prototype, "clientTasks", 2);
|
|
7250
7363
|
__decorateClass([
|
|
7251
|
-
(0,
|
|
7364
|
+
(0, import_typeorm82.OneToMany)(() => Task, (task) => task.freelancer)
|
|
7252
7365
|
], User.prototype, "freelancerTasks", 2);
|
|
7253
7366
|
__decorateClass([
|
|
7254
|
-
(0,
|
|
7367
|
+
(0, import_typeorm82.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
|
|
7255
7368
|
], User.prototype, "raisedTaskQueries", 2);
|
|
7256
7369
|
__decorateClass([
|
|
7257
|
-
(0,
|
|
7370
|
+
(0, import_typeorm82.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
|
|
7258
7371
|
], User.prototype, "assignedTaskQueries", 2);
|
|
7259
7372
|
__decorateClass([
|
|
7260
|
-
(0,
|
|
7373
|
+
(0, import_typeorm82.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
|
|
7261
7374
|
], User.prototype, "taskQueryMessages", 2);
|
|
7262
7375
|
__decorateClass([
|
|
7263
|
-
(0,
|
|
7376
|
+
(0, import_typeorm82.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
7264
7377
|
], User.prototype, "jobApplications", 2);
|
|
7265
7378
|
__decorateClass([
|
|
7266
|
-
(0,
|
|
7379
|
+
(0, import_typeorm82.OneToMany)(() => Interview, (interview) => interview.user)
|
|
7267
7380
|
], User.prototype, "interviews", 2);
|
|
7268
7381
|
__decorateClass([
|
|
7269
|
-
(0,
|
|
7382
|
+
(0, import_typeorm82.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
7270
7383
|
], User.prototype, "bankDetail", 2);
|
|
7271
7384
|
__decorateClass([
|
|
7272
|
-
(0,
|
|
7385
|
+
(0, import_typeorm82.OneToMany)(
|
|
7273
7386
|
() => SystemPreference,
|
|
7274
7387
|
(systemPreference) => systemPreference.user
|
|
7275
7388
|
)
|
|
7276
7389
|
], User.prototype, "systemPreference", 2);
|
|
7277
7390
|
__decorateClass([
|
|
7278
|
-
(0,
|
|
7391
|
+
(0, import_typeorm82.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
7279
7392
|
], User.prototype, "givenRatings", 2);
|
|
7280
7393
|
__decorateClass([
|
|
7281
|
-
(0,
|
|
7394
|
+
(0, import_typeorm82.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
7282
7395
|
], User.prototype, "receivedRatings", 2);
|
|
7283
7396
|
__decorateClass([
|
|
7284
|
-
(0,
|
|
7397
|
+
(0, import_typeorm82.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
7285
7398
|
], User.prototype, "adminUserRoles", 2);
|
|
7286
7399
|
__decorateClass([
|
|
7287
|
-
(0,
|
|
7400
|
+
(0, import_typeorm82.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
7288
7401
|
cascade: true
|
|
7289
7402
|
})
|
|
7290
7403
|
], User.prototype, "clientContractSummaries", 2);
|
|
7291
7404
|
__decorateClass([
|
|
7292
|
-
(0,
|
|
7405
|
+
(0, import_typeorm82.OneToMany)(() => Contract, (contract) => contract.client)
|
|
7293
7406
|
], User.prototype, "clientContracts", 2);
|
|
7294
7407
|
__decorateClass([
|
|
7295
|
-
(0,
|
|
7408
|
+
(0, import_typeorm82.OneToMany)(() => Hiring, (hiring) => hiring.client)
|
|
7296
7409
|
], User.prototype, "clientHirings", 2);
|
|
7297
7410
|
__decorateClass([
|
|
7298
|
-
(0,
|
|
7411
|
+
(0, import_typeorm82.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
7299
7412
|
], User.prototype, "clientEscrowWallets", 2);
|
|
7300
7413
|
__decorateClass([
|
|
7301
|
-
(0,
|
|
7414
|
+
(0, import_typeorm82.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
7302
7415
|
cascade: true
|
|
7303
7416
|
})
|
|
7304
7417
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
7305
7418
|
__decorateClass([
|
|
7306
|
-
(0,
|
|
7419
|
+
(0, import_typeorm82.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
7307
7420
|
], User.prototype, "freelancerContracts", 2);
|
|
7308
7421
|
__decorateClass([
|
|
7309
|
-
(0,
|
|
7422
|
+
(0, import_typeorm82.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
|
|
7310
7423
|
], User.prototype, "freelancerHirings", 2);
|
|
7311
7424
|
__decorateClass([
|
|
7312
|
-
(0,
|
|
7425
|
+
(0, import_typeorm82.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
7313
7426
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
7314
7427
|
__decorateClass([
|
|
7315
|
-
(0,
|
|
7428
|
+
(0, import_typeorm82.OneToOne)(() => Signature, (signature) => signature.user)
|
|
7316
7429
|
], User.prototype, "signatures", 2);
|
|
7317
7430
|
__decorateClass([
|
|
7318
|
-
(0,
|
|
7431
|
+
(0, import_typeorm82.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
7319
7432
|
], User.prototype, "clientTimesheets", 2);
|
|
7320
7433
|
__decorateClass([
|
|
7321
|
-
(0,
|
|
7434
|
+
(0, import_typeorm82.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
7322
7435
|
], User.prototype, "freelancerTimesheets", 2);
|
|
7323
7436
|
__decorateClass([
|
|
7324
|
-
(0,
|
|
7437
|
+
(0, import_typeorm82.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
7325
7438
|
], User.prototype, "clientTimesheetLine", 2);
|
|
7326
7439
|
__decorateClass([
|
|
7327
|
-
(0,
|
|
7440
|
+
(0, import_typeorm82.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
7328
7441
|
], User.prototype, "clientInvoice", 2);
|
|
7329
7442
|
__decorateClass([
|
|
7330
|
-
(0,
|
|
7443
|
+
(0, import_typeorm82.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
7331
7444
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
7332
7445
|
__decorateClass([
|
|
7333
|
-
(0,
|
|
7446
|
+
(0, import_typeorm82.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
7334
7447
|
], User.prototype, "freelancerInvoice", 2);
|
|
7335
7448
|
__decorateClass([
|
|
7336
|
-
(0,
|
|
7449
|
+
(0, import_typeorm82.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
7337
7450
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
7338
7451
|
__decorateClass([
|
|
7339
|
-
(0,
|
|
7452
|
+
(0, import_typeorm82.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
7340
7453
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
7341
7454
|
__decorateClass([
|
|
7342
|
-
(0,
|
|
7455
|
+
(0, import_typeorm82.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
7343
7456
|
], User.prototype, "initiatedDisputes", 2);
|
|
7344
7457
|
__decorateClass([
|
|
7345
|
-
(0,
|
|
7458
|
+
(0, import_typeorm82.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
7346
7459
|
], User.prototype, "respondentDisputes", 2);
|
|
7347
7460
|
__decorateClass([
|
|
7348
|
-
(0,
|
|
7461
|
+
(0, import_typeorm82.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
7349
7462
|
], User.prototype, "wallet", 2);
|
|
7350
7463
|
__decorateClass([
|
|
7351
|
-
(0,
|
|
7464
|
+
(0, import_typeorm82.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
7352
7465
|
], User.prototype, "stripeTransactions", 2);
|
|
7353
7466
|
__decorateClass([
|
|
7354
|
-
(0,
|
|
7467
|
+
(0, import_typeorm82.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
7355
7468
|
], User.prototype, "clientDisputes", 2);
|
|
7356
7469
|
__decorateClass([
|
|
7357
|
-
(0,
|
|
7470
|
+
(0, import_typeorm82.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
7358
7471
|
], User.prototype, "freelancerDisputes", 2);
|
|
7359
7472
|
__decorateClass([
|
|
7360
|
-
(0,
|
|
7473
|
+
(0, import_typeorm82.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
7361
7474
|
], User.prototype, "inAppNotifications", 2);
|
|
7362
7475
|
__decorateClass([
|
|
7363
|
-
(0,
|
|
7476
|
+
(0, import_typeorm82.OneToMany)(() => UserSubscription, (userSubscription) => userSubscription.user)
|
|
7364
7477
|
], User.prototype, "userSubscriptions", 2);
|
|
7365
7478
|
__decorateClass([
|
|
7366
|
-
(0,
|
|
7479
|
+
(0, import_typeorm82.OneToMany)(() => EkycVerificationSession, (ekycVerificationSession) => ekycVerificationSession.user)
|
|
7367
7480
|
], User.prototype, "ekycVerificationSessions", 2);
|
|
7481
|
+
__decorateClass([
|
|
7482
|
+
(0, import_typeorm82.OneToMany)(() => EkycVerificationLog, (ekycVerificationLog) => ekycVerificationLog.user)
|
|
7483
|
+
], User.prototype, "ekycVerificationLogs", 2);
|
|
7484
|
+
__decorateClass([
|
|
7485
|
+
(0, import_typeorm82.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.fromUser)
|
|
7486
|
+
], User.prototype, "sentTransactions", 2);
|
|
7368
7487
|
User = __decorateClass([
|
|
7369
|
-
(0,
|
|
7488
|
+
(0, import_typeorm82.Entity)("users")
|
|
7370
7489
|
], User);
|
|
7371
7490
|
|
|
7372
7491
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -14194,6 +14313,93 @@ __decorateClass([
|
|
|
14194
14313
|
(0, import_class_transformer41.Type)(() => VendorDetailDto)
|
|
14195
14314
|
], AddVendorApiConfigurationDto.prototype, "vendorDetails", 2);
|
|
14196
14315
|
|
|
14316
|
+
// src/modules/didit/pattern/pattern.ts
|
|
14317
|
+
var DIDIT_PATTERN = {
|
|
14318
|
+
handleEkycCreateSession: "handle.ekyc.create.session",
|
|
14319
|
+
handleEkycWebhook: "handle.ekyc.webhook"
|
|
14320
|
+
};
|
|
14321
|
+
|
|
14322
|
+
// src/modules/didit/dto/create-ekyc-session.dto.ts
|
|
14323
|
+
var import_class_validator180 = require("class-validator");
|
|
14324
|
+
var import_class_transformer42 = require("class-transformer");
|
|
14325
|
+
var ContactDetailsDto = class {
|
|
14326
|
+
};
|
|
14327
|
+
__decorateClass([
|
|
14328
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14329
|
+
(0, import_class_validator180.IsEmail)({}, { message: "email must be valid" })
|
|
14330
|
+
], ContactDetailsDto.prototype, "email", 2);
|
|
14331
|
+
__decorateClass([
|
|
14332
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14333
|
+
(0, import_class_validator180.IsString)()
|
|
14334
|
+
], ContactDetailsDto.prototype, "email_lang", 2);
|
|
14335
|
+
__decorateClass([
|
|
14336
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14337
|
+
(0, import_class_validator180.IsBoolean)()
|
|
14338
|
+
], ContactDetailsDto.prototype, "send_notification_emails", 2);
|
|
14339
|
+
__decorateClass([
|
|
14340
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14341
|
+
(0, import_class_validator180.IsString)()
|
|
14342
|
+
], ContactDetailsDto.prototype, "phone", 2);
|
|
14343
|
+
var ExpectedDetailsDto = class {
|
|
14344
|
+
};
|
|
14345
|
+
__decorateClass([
|
|
14346
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14347
|
+
(0, import_class_validator180.IsString)()
|
|
14348
|
+
], ExpectedDetailsDto.prototype, "first_name", 2);
|
|
14349
|
+
__decorateClass([
|
|
14350
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14351
|
+
(0, import_class_validator180.IsString)()
|
|
14352
|
+
], ExpectedDetailsDto.prototype, "last_name", 2);
|
|
14353
|
+
// you can switch to IsDateString if strict
|
|
14354
|
+
__decorateClass([
|
|
14355
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14356
|
+
(0, import_class_validator180.IsString)()
|
|
14357
|
+
], ExpectedDetailsDto.prototype, "date_of_birth", 2);
|
|
14358
|
+
__decorateClass([
|
|
14359
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14360
|
+
(0, import_class_validator180.IsArray)(),
|
|
14361
|
+
(0, import_class_validator180.IsString)({ each: true })
|
|
14362
|
+
], ExpectedDetailsDto.prototype, "expected_document_types", 2);
|
|
14363
|
+
var MetadataDto = class {
|
|
14364
|
+
};
|
|
14365
|
+
__decorateClass([
|
|
14366
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14367
|
+
(0, import_class_validator180.IsString)()
|
|
14368
|
+
], MetadataDto.prototype, "plan", 2);
|
|
14369
|
+
__decorateClass([
|
|
14370
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14371
|
+
(0, import_class_validator180.IsString)()
|
|
14372
|
+
], MetadataDto.prototype, "signup_source", 2);
|
|
14373
|
+
var CreateEkycSessionDto = class {
|
|
14374
|
+
};
|
|
14375
|
+
__decorateClass([
|
|
14376
|
+
(0, import_class_validator180.IsNotEmpty)({ message: "workflowId is required." }),
|
|
14377
|
+
(0, import_class_validator180.IsUUID)("4", { message: "workflowId must be a valid UUID" })
|
|
14378
|
+
], CreateEkycSessionDto.prototype, "workflowId", 2);
|
|
14379
|
+
__decorateClass([
|
|
14380
|
+
(0, import_class_validator180.IsNotEmpty)({ message: "Callback URL is required." }),
|
|
14381
|
+
(0, import_class_validator180.IsUrl)({}, { message: "callback must be a valid URL" })
|
|
14382
|
+
], CreateEkycSessionDto.prototype, "callback", 2);
|
|
14383
|
+
__decorateClass([
|
|
14384
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14385
|
+
(0, import_class_validator180.IsString)()
|
|
14386
|
+
], CreateEkycSessionDto.prototype, "vendor_data", 2);
|
|
14387
|
+
__decorateClass([
|
|
14388
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14389
|
+
(0, import_class_validator180.ValidateNested)(),
|
|
14390
|
+
(0, import_class_transformer42.Type)(() => MetadataDto)
|
|
14391
|
+
], CreateEkycSessionDto.prototype, "metadata", 2);
|
|
14392
|
+
__decorateClass([
|
|
14393
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14394
|
+
(0, import_class_validator180.ValidateNested)(),
|
|
14395
|
+
(0, import_class_transformer42.Type)(() => ContactDetailsDto)
|
|
14396
|
+
], CreateEkycSessionDto.prototype, "contact_details", 2);
|
|
14397
|
+
__decorateClass([
|
|
14398
|
+
(0, import_class_validator180.IsOptional)(),
|
|
14399
|
+
(0, import_class_validator180.ValidateNested)(),
|
|
14400
|
+
(0, import_class_transformer42.Type)(() => ExpectedDetailsDto)
|
|
14401
|
+
], CreateEkycSessionDto.prototype, "expected_details", 2);
|
|
14402
|
+
|
|
14197
14403
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
14198
14404
|
var import_dotenv = require("dotenv");
|
|
14199
14405
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -14555,11 +14761,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
14555
14761
|
};
|
|
14556
14762
|
|
|
14557
14763
|
// src/entities/sequence-generator.entity.ts
|
|
14558
|
-
var
|
|
14764
|
+
var import_typeorm83 = require("typeorm");
|
|
14559
14765
|
var SequenceGenerator = class extends BaseEntity {
|
|
14560
14766
|
};
|
|
14561
14767
|
__decorateClass([
|
|
14562
|
-
(0,
|
|
14768
|
+
(0, import_typeorm83.Column)({
|
|
14563
14769
|
name: "module",
|
|
14564
14770
|
type: "varchar",
|
|
14565
14771
|
length: 50,
|
|
@@ -14568,7 +14774,7 @@ __decorateClass([
|
|
|
14568
14774
|
})
|
|
14569
14775
|
], SequenceGenerator.prototype, "module", 2);
|
|
14570
14776
|
__decorateClass([
|
|
14571
|
-
(0,
|
|
14777
|
+
(0, import_typeorm83.Column)({
|
|
14572
14778
|
name: "prefix",
|
|
14573
14779
|
type: "varchar",
|
|
14574
14780
|
length: 10,
|
|
@@ -14577,7 +14783,7 @@ __decorateClass([
|
|
|
14577
14783
|
})
|
|
14578
14784
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
14579
14785
|
__decorateClass([
|
|
14580
|
-
(0,
|
|
14786
|
+
(0, import_typeorm83.Column)({
|
|
14581
14787
|
name: "last_sequence",
|
|
14582
14788
|
type: "int",
|
|
14583
14789
|
nullable: false,
|
|
@@ -14585,7 +14791,7 @@ __decorateClass([
|
|
|
14585
14791
|
})
|
|
14586
14792
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
14587
14793
|
__decorateClass([
|
|
14588
|
-
(0,
|
|
14794
|
+
(0, import_typeorm83.Column)({
|
|
14589
14795
|
name: "year",
|
|
14590
14796
|
type: "int",
|
|
14591
14797
|
nullable: true,
|
|
@@ -14593,11 +14799,11 @@ __decorateClass([
|
|
|
14593
14799
|
})
|
|
14594
14800
|
], SequenceGenerator.prototype, "year", 2);
|
|
14595
14801
|
SequenceGenerator = __decorateClass([
|
|
14596
|
-
(0,
|
|
14802
|
+
(0, import_typeorm83.Entity)("sequence_generators")
|
|
14597
14803
|
], SequenceGenerator);
|
|
14598
14804
|
|
|
14599
14805
|
// src/entities/question.entity.ts
|
|
14600
|
-
var
|
|
14806
|
+
var import_typeorm84 = require("typeorm");
|
|
14601
14807
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
14602
14808
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
14603
14809
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -14606,16 +14812,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
14606
14812
|
var Question = class extends BaseEntity {
|
|
14607
14813
|
};
|
|
14608
14814
|
__decorateClass([
|
|
14609
|
-
(0,
|
|
14815
|
+
(0, import_typeorm84.Column)({ name: "question", type: "varchar" })
|
|
14610
14816
|
], Question.prototype, "question", 2);
|
|
14611
14817
|
__decorateClass([
|
|
14612
|
-
(0,
|
|
14818
|
+
(0, import_typeorm84.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
14613
14819
|
], Question.prototype, "hint", 2);
|
|
14614
14820
|
__decorateClass([
|
|
14615
|
-
(0,
|
|
14821
|
+
(0, import_typeorm84.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14616
14822
|
], Question.prototype, "slug", 2);
|
|
14617
14823
|
__decorateClass([
|
|
14618
|
-
(0,
|
|
14824
|
+
(0, import_typeorm84.Column)({
|
|
14619
14825
|
name: "question_for",
|
|
14620
14826
|
type: "enum",
|
|
14621
14827
|
enum: QuestionFor,
|
|
@@ -14623,45 +14829,45 @@ __decorateClass([
|
|
|
14623
14829
|
})
|
|
14624
14830
|
], Question.prototype, "questionFor", 2);
|
|
14625
14831
|
__decorateClass([
|
|
14626
|
-
(0,
|
|
14832
|
+
(0, import_typeorm84.Column)({ name: "type", type: "varchar", nullable: true })
|
|
14627
14833
|
], Question.prototype, "type", 2);
|
|
14628
14834
|
__decorateClass([
|
|
14629
|
-
(0,
|
|
14835
|
+
(0, import_typeorm84.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
14630
14836
|
], Question.prototype, "options", 2);
|
|
14631
14837
|
__decorateClass([
|
|
14632
|
-
(0,
|
|
14838
|
+
(0, import_typeorm84.Column)({ name: "is_active", type: "boolean", default: false })
|
|
14633
14839
|
], Question.prototype, "isActive", 2);
|
|
14634
14840
|
Question = __decorateClass([
|
|
14635
|
-
(0,
|
|
14841
|
+
(0, import_typeorm84.Entity)("questions")
|
|
14636
14842
|
], Question);
|
|
14637
14843
|
|
|
14638
14844
|
// src/entities/skill.entity.ts
|
|
14639
|
-
var
|
|
14845
|
+
var import_typeorm85 = require("typeorm");
|
|
14640
14846
|
var Skill = class extends BaseEntity {
|
|
14641
14847
|
};
|
|
14642
14848
|
__decorateClass([
|
|
14643
|
-
(0,
|
|
14849
|
+
(0, import_typeorm85.Column)({ name: "name", type: "varchar", nullable: true })
|
|
14644
14850
|
], Skill.prototype, "name", 2);
|
|
14645
14851
|
__decorateClass([
|
|
14646
|
-
(0,
|
|
14852
|
+
(0, import_typeorm85.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14647
14853
|
], Skill.prototype, "slug", 2);
|
|
14648
14854
|
__decorateClass([
|
|
14649
|
-
(0,
|
|
14855
|
+
(0, import_typeorm85.Column)({ name: "is_active", type: "boolean", default: false })
|
|
14650
14856
|
], Skill.prototype, "isActive", 2);
|
|
14651
14857
|
Skill = __decorateClass([
|
|
14652
|
-
(0,
|
|
14858
|
+
(0, import_typeorm85.Entity)("skills")
|
|
14653
14859
|
], Skill);
|
|
14654
14860
|
|
|
14655
14861
|
// src/entities/skill-catalog.entity.ts
|
|
14656
|
-
var
|
|
14862
|
+
var import_typeorm86 = require("typeorm");
|
|
14657
14863
|
var SkillCatalog = class extends BaseEntity {
|
|
14658
14864
|
};
|
|
14659
14865
|
__decorateClass([
|
|
14660
|
-
(0,
|
|
14661
|
-
(0,
|
|
14866
|
+
(0, import_typeorm86.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
14867
|
+
(0, import_typeorm86.Index)()
|
|
14662
14868
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
14663
14869
|
__decorateClass([
|
|
14664
|
-
(0,
|
|
14870
|
+
(0, import_typeorm86.Column)({
|
|
14665
14871
|
name: "aliases",
|
|
14666
14872
|
type: "text",
|
|
14667
14873
|
array: true,
|
|
@@ -14669,20 +14875,20 @@ __decorateClass([
|
|
|
14669
14875
|
})
|
|
14670
14876
|
], SkillCatalog.prototype, "aliases", 2);
|
|
14671
14877
|
__decorateClass([
|
|
14672
|
-
(0,
|
|
14878
|
+
(0, import_typeorm86.Column)({
|
|
14673
14879
|
name: "variations",
|
|
14674
14880
|
type: "jsonb",
|
|
14675
14881
|
default: "{}"
|
|
14676
14882
|
})
|
|
14677
14883
|
], SkillCatalog.prototype, "variations", 2);
|
|
14678
14884
|
__decorateClass([
|
|
14679
|
-
(0,
|
|
14885
|
+
(0, import_typeorm86.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
14680
14886
|
], SkillCatalog.prototype, "category", 2);
|
|
14681
14887
|
__decorateClass([
|
|
14682
|
-
(0,
|
|
14888
|
+
(0, import_typeorm86.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
14683
14889
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
14684
14890
|
__decorateClass([
|
|
14685
|
-
(0,
|
|
14891
|
+
(0, import_typeorm86.Column)({
|
|
14686
14892
|
name: "related_skills",
|
|
14687
14893
|
type: "text",
|
|
14688
14894
|
array: true,
|
|
@@ -14690,68 +14896,68 @@ __decorateClass([
|
|
|
14690
14896
|
})
|
|
14691
14897
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
14692
14898
|
__decorateClass([
|
|
14693
|
-
(0,
|
|
14694
|
-
(0,
|
|
14899
|
+
(0, import_typeorm86.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
14900
|
+
(0, import_typeorm86.Index)()
|
|
14695
14901
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
14696
14902
|
__decorateClass([
|
|
14697
|
-
(0,
|
|
14903
|
+
(0, import_typeorm86.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
14698
14904
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
14699
14905
|
__decorateClass([
|
|
14700
|
-
(0,
|
|
14906
|
+
(0, import_typeorm86.Column)({ name: "first_seen_date", type: "date" })
|
|
14701
14907
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
14702
14908
|
__decorateClass([
|
|
14703
|
-
(0,
|
|
14909
|
+
(0, import_typeorm86.Column)({ name: "last_updated_date", type: "date" })
|
|
14704
14910
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
14705
14911
|
__decorateClass([
|
|
14706
|
-
(0,
|
|
14912
|
+
(0, import_typeorm86.Column)({
|
|
14707
14913
|
name: "search_vector",
|
|
14708
14914
|
type: "tsvector",
|
|
14709
14915
|
nullable: true
|
|
14710
14916
|
})
|
|
14711
14917
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
14712
14918
|
SkillCatalog = __decorateClass([
|
|
14713
|
-
(0,
|
|
14919
|
+
(0, import_typeorm86.Entity)("skill_catalogs")
|
|
14714
14920
|
], SkillCatalog);
|
|
14715
14921
|
|
|
14716
14922
|
// src/entities/job-role.entity.ts
|
|
14717
|
-
var
|
|
14923
|
+
var import_typeorm87 = require("typeorm");
|
|
14718
14924
|
var JobRoles = class extends BaseEntity {
|
|
14719
14925
|
};
|
|
14720
14926
|
__decorateClass([
|
|
14721
|
-
(0,
|
|
14927
|
+
(0, import_typeorm87.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14722
14928
|
], JobRoles.prototype, "slug", 2);
|
|
14723
14929
|
__decorateClass([
|
|
14724
|
-
(0,
|
|
14930
|
+
(0, import_typeorm87.Column)({ name: "name", type: "varchar", nullable: true })
|
|
14725
14931
|
], JobRoles.prototype, "name", 2);
|
|
14726
14932
|
__decorateClass([
|
|
14727
|
-
(0,
|
|
14933
|
+
(0, import_typeorm87.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14728
14934
|
], JobRoles.prototype, "isActive", 2);
|
|
14729
14935
|
JobRoles = __decorateClass([
|
|
14730
|
-
(0,
|
|
14936
|
+
(0, import_typeorm87.Entity)("job_roles")
|
|
14731
14937
|
], JobRoles);
|
|
14732
14938
|
|
|
14733
14939
|
// src/entities/cms.entity.ts
|
|
14734
|
-
var
|
|
14940
|
+
var import_typeorm88 = require("typeorm");
|
|
14735
14941
|
var Cms = class extends BaseEntity {
|
|
14736
14942
|
};
|
|
14737
14943
|
__decorateClass([
|
|
14738
|
-
(0,
|
|
14944
|
+
(0, import_typeorm88.Column)({ name: "title", type: "varchar", nullable: true })
|
|
14739
14945
|
], Cms.prototype, "title", 2);
|
|
14740
14946
|
__decorateClass([
|
|
14741
|
-
(0,
|
|
14947
|
+
(0, import_typeorm88.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14742
14948
|
], Cms.prototype, "slug", 2);
|
|
14743
14949
|
__decorateClass([
|
|
14744
|
-
(0,
|
|
14950
|
+
(0, import_typeorm88.Column)({ name: "content", type: "varchar", nullable: true })
|
|
14745
14951
|
], Cms.prototype, "content", 2);
|
|
14746
14952
|
__decorateClass([
|
|
14747
|
-
(0,
|
|
14953
|
+
(0, import_typeorm88.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14748
14954
|
], Cms.prototype, "isActive", 2);
|
|
14749
14955
|
Cms = __decorateClass([
|
|
14750
|
-
(0,
|
|
14956
|
+
(0, import_typeorm88.Entity)("cms")
|
|
14751
14957
|
], Cms);
|
|
14752
14958
|
|
|
14753
14959
|
// src/entities/lead.entity.ts
|
|
14754
|
-
var
|
|
14960
|
+
var import_typeorm89 = require("typeorm");
|
|
14755
14961
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
14756
14962
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
14757
14963
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -14760,22 +14966,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
14760
14966
|
var Lead = class extends BaseEntity {
|
|
14761
14967
|
};
|
|
14762
14968
|
__decorateClass([
|
|
14763
|
-
(0,
|
|
14969
|
+
(0, import_typeorm89.Column)({ name: "name", type: "varchar", nullable: true })
|
|
14764
14970
|
], Lead.prototype, "name", 2);
|
|
14765
14971
|
__decorateClass([
|
|
14766
|
-
(0,
|
|
14972
|
+
(0, import_typeorm89.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
14767
14973
|
], Lead.prototype, "mobileCode", 2);
|
|
14768
14974
|
__decorateClass([
|
|
14769
|
-
(0,
|
|
14975
|
+
(0, import_typeorm89.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
14770
14976
|
], Lead.prototype, "mobile", 2);
|
|
14771
14977
|
__decorateClass([
|
|
14772
|
-
(0,
|
|
14978
|
+
(0, import_typeorm89.Column)({ name: "email", type: "varchar", nullable: true })
|
|
14773
14979
|
], Lead.prototype, "email", 2);
|
|
14774
14980
|
__decorateClass([
|
|
14775
|
-
(0,
|
|
14981
|
+
(0, import_typeorm89.Column)({ name: "description", type: "varchar", nullable: true })
|
|
14776
14982
|
], Lead.prototype, "description", 2);
|
|
14777
14983
|
__decorateClass([
|
|
14778
|
-
(0,
|
|
14984
|
+
(0, import_typeorm89.Column)({
|
|
14779
14985
|
name: "category",
|
|
14780
14986
|
type: "enum",
|
|
14781
14987
|
enum: CategoryEmum,
|
|
@@ -14783,129 +14989,129 @@ __decorateClass([
|
|
|
14783
14989
|
})
|
|
14784
14990
|
], Lead.prototype, "category", 2);
|
|
14785
14991
|
Lead = __decorateClass([
|
|
14786
|
-
(0,
|
|
14992
|
+
(0, import_typeorm89.Entity)("leads")
|
|
14787
14993
|
], Lead);
|
|
14788
14994
|
|
|
14789
14995
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
14790
|
-
var
|
|
14996
|
+
var import_typeorm90 = require("typeorm");
|
|
14791
14997
|
var JobFreelancerRecommendation = class {
|
|
14792
14998
|
};
|
|
14793
14999
|
__decorateClass([
|
|
14794
|
-
(0,
|
|
15000
|
+
(0, import_typeorm90.ViewColumn)({ name: "job_id" })
|
|
14795
15001
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
14796
15002
|
__decorateClass([
|
|
14797
|
-
(0,
|
|
15003
|
+
(0, import_typeorm90.ViewColumn)({ name: "job_uuid" })
|
|
14798
15004
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
14799
15005
|
__decorateClass([
|
|
14800
|
-
(0,
|
|
15006
|
+
(0, import_typeorm90.ViewColumn)({ name: "job_unique_id" })
|
|
14801
15007
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
14802
15008
|
__decorateClass([
|
|
14803
|
-
(0,
|
|
15009
|
+
(0, import_typeorm90.ViewColumn)({ name: "job_role" })
|
|
14804
15010
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
14805
15011
|
__decorateClass([
|
|
14806
|
-
(0,
|
|
15012
|
+
(0, import_typeorm90.ViewColumn)({ name: "job_openings" })
|
|
14807
15013
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
14808
15014
|
__decorateClass([
|
|
14809
|
-
(0,
|
|
15015
|
+
(0, import_typeorm90.ViewColumn)({ name: "job_location" })
|
|
14810
15016
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
14811
15017
|
__decorateClass([
|
|
14812
|
-
(0,
|
|
15018
|
+
(0, import_typeorm90.ViewColumn)({ name: "job_currency" })
|
|
14813
15019
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
14814
15020
|
__decorateClass([
|
|
14815
|
-
(0,
|
|
15021
|
+
(0, import_typeorm90.ViewColumn)({ name: "job_salary_from" })
|
|
14816
15022
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
14817
15023
|
__decorateClass([
|
|
14818
|
-
(0,
|
|
15024
|
+
(0, import_typeorm90.ViewColumn)({ name: "job_salary_to" })
|
|
14819
15025
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
14820
15026
|
__decorateClass([
|
|
14821
|
-
(0,
|
|
15027
|
+
(0, import_typeorm90.ViewColumn)({ name: "job_employment_type" })
|
|
14822
15028
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
14823
15029
|
__decorateClass([
|
|
14824
|
-
(0,
|
|
15030
|
+
(0, import_typeorm90.ViewColumn)({ name: "application_received" })
|
|
14825
15031
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
14826
15032
|
__decorateClass([
|
|
14827
|
-
(0,
|
|
15033
|
+
(0, import_typeorm90.ViewColumn)({ name: "job_posted_at" })
|
|
14828
15034
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
14829
15035
|
__decorateClass([
|
|
14830
|
-
(0,
|
|
15036
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_id" })
|
|
14831
15037
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
14832
15038
|
__decorateClass([
|
|
14833
|
-
(0,
|
|
15039
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_uuid" })
|
|
14834
15040
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
14835
15041
|
__decorateClass([
|
|
14836
|
-
(0,
|
|
15042
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_unique_id" })
|
|
14837
15043
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
14838
15044
|
__decorateClass([
|
|
14839
|
-
(0,
|
|
15045
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_first_name" })
|
|
14840
15046
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
14841
15047
|
__decorateClass([
|
|
14842
|
-
(0,
|
|
15048
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_last_name" })
|
|
14843
15049
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
14844
15050
|
__decorateClass([
|
|
14845
|
-
(0,
|
|
15051
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_email" })
|
|
14846
15052
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
14847
15053
|
__decorateClass([
|
|
14848
|
-
(0,
|
|
15054
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
14849
15055
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
14850
15056
|
__decorateClass([
|
|
14851
|
-
(0,
|
|
15057
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_is_social" })
|
|
14852
15058
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
14853
15059
|
__decorateClass([
|
|
14854
|
-
(0,
|
|
15060
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_created_at" })
|
|
14855
15061
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
14856
15062
|
__decorateClass([
|
|
14857
|
-
(0,
|
|
15063
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_designation" })
|
|
14858
15064
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
14859
15065
|
__decorateClass([
|
|
14860
|
-
(0,
|
|
15066
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_experience" })
|
|
14861
15067
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
14862
15068
|
__decorateClass([
|
|
14863
|
-
(0,
|
|
15069
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
14864
15070
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
14865
15071
|
__decorateClass([
|
|
14866
|
-
(0,
|
|
15072
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
14867
15073
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
14868
15074
|
__decorateClass([
|
|
14869
|
-
(0,
|
|
15075
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_country_name" })
|
|
14870
15076
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
14871
15077
|
__decorateClass([
|
|
14872
|
-
(0,
|
|
15078
|
+
(0, import_typeorm90.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
14873
15079
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
14874
15080
|
__decorateClass([
|
|
14875
|
-
(0,
|
|
15081
|
+
(0, import_typeorm90.ViewColumn)({ name: "client_id" })
|
|
14876
15082
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
14877
15083
|
__decorateClass([
|
|
14878
|
-
(0,
|
|
15084
|
+
(0, import_typeorm90.ViewColumn)({ name: "client_uuid" })
|
|
14879
15085
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
14880
15086
|
__decorateClass([
|
|
14881
|
-
(0,
|
|
15087
|
+
(0, import_typeorm90.ViewColumn)({ name: "client_first_name" })
|
|
14882
15088
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
14883
15089
|
__decorateClass([
|
|
14884
|
-
(0,
|
|
15090
|
+
(0, import_typeorm90.ViewColumn)({ name: "client_last_name" })
|
|
14885
15091
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
14886
15092
|
__decorateClass([
|
|
14887
|
-
(0,
|
|
15093
|
+
(0, import_typeorm90.ViewColumn)({ name: "client_email" })
|
|
14888
15094
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
14889
15095
|
__decorateClass([
|
|
14890
|
-
(0,
|
|
15096
|
+
(0, import_typeorm90.ViewColumn)({ name: "client_company_logo" })
|
|
14891
15097
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
14892
15098
|
__decorateClass([
|
|
14893
|
-
(0,
|
|
15099
|
+
(0, import_typeorm90.ViewColumn)({ name: "client_company_name" })
|
|
14894
15100
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
14895
15101
|
__decorateClass([
|
|
14896
|
-
(0,
|
|
15102
|
+
(0, import_typeorm90.ViewColumn)({ name: "matching_skills" })
|
|
14897
15103
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
14898
15104
|
__decorateClass([
|
|
14899
|
-
(0,
|
|
15105
|
+
(0, import_typeorm90.ViewColumn)({ name: "matching_skills_count" })
|
|
14900
15106
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
14901
15107
|
__decorateClass([
|
|
14902
|
-
(0,
|
|
15108
|
+
(0, import_typeorm90.ViewColumn)({ name: "required_skills" })
|
|
14903
15109
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
14904
15110
|
__decorateClass([
|
|
14905
|
-
(0,
|
|
15111
|
+
(0, import_typeorm90.ViewColumn)({ name: "required_skills_count" })
|
|
14906
15112
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
14907
15113
|
JobFreelancerRecommendation = __decorateClass([
|
|
14908
|
-
(0,
|
|
15114
|
+
(0, import_typeorm90.ViewEntity)({
|
|
14909
15115
|
name: "job_freelancer_recommendations",
|
|
14910
15116
|
materialized: true,
|
|
14911
15117
|
synchronize: false
|
|
@@ -14914,32 +15120,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
14914
15120
|
], JobFreelancerRecommendation);
|
|
14915
15121
|
|
|
14916
15122
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
14917
|
-
var
|
|
15123
|
+
var import_typeorm91 = require("typeorm");
|
|
14918
15124
|
var JobFreelancerRecommendationV2 = class {
|
|
14919
15125
|
};
|
|
14920
15126
|
__decorateClass([
|
|
14921
|
-
(0,
|
|
15127
|
+
(0, import_typeorm91.ViewColumn)({ name: "job_id" })
|
|
14922
15128
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
14923
15129
|
__decorateClass([
|
|
14924
|
-
(0,
|
|
15130
|
+
(0, import_typeorm91.ViewColumn)({ name: "job_owner_id" })
|
|
14925
15131
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
14926
15132
|
__decorateClass([
|
|
14927
|
-
(0,
|
|
15133
|
+
(0, import_typeorm91.ViewColumn)({ name: "freelancer_id" })
|
|
14928
15134
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
14929
15135
|
__decorateClass([
|
|
14930
|
-
(0,
|
|
15136
|
+
(0, import_typeorm91.ViewColumn)({ name: "matching_skills" })
|
|
14931
15137
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
14932
15138
|
__decorateClass([
|
|
14933
|
-
(0,
|
|
15139
|
+
(0, import_typeorm91.ViewColumn)({ name: "matching_skills_count" })
|
|
14934
15140
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
14935
15141
|
__decorateClass([
|
|
14936
|
-
(0,
|
|
15142
|
+
(0, import_typeorm91.ViewColumn)({ name: "required_skills" })
|
|
14937
15143
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
14938
15144
|
__decorateClass([
|
|
14939
|
-
(0,
|
|
15145
|
+
(0, import_typeorm91.ViewColumn)({ name: "required_skills_count" })
|
|
14940
15146
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
14941
15147
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
14942
|
-
(0,
|
|
15148
|
+
(0, import_typeorm91.ViewEntity)({
|
|
14943
15149
|
name: "job_freelancer_recommendations_v2",
|
|
14944
15150
|
materialized: true,
|
|
14945
15151
|
synchronize: false
|
|
@@ -14948,74 +15154,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
14948
15154
|
], JobFreelancerRecommendationV2);
|
|
14949
15155
|
|
|
14950
15156
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
14951
|
-
var
|
|
15157
|
+
var import_typeorm92 = require("typeorm");
|
|
14952
15158
|
var ClientFreelancerRecommendation = class {
|
|
14953
15159
|
};
|
|
14954
15160
|
__decorateClass([
|
|
14955
|
-
(0,
|
|
15161
|
+
(0, import_typeorm92.ViewColumn)({ name: "client_id" })
|
|
14956
15162
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
14957
15163
|
__decorateClass([
|
|
14958
|
-
(0,
|
|
15164
|
+
(0, import_typeorm92.ViewColumn)({ name: "client_uuid" })
|
|
14959
15165
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
14960
15166
|
__decorateClass([
|
|
14961
|
-
(0,
|
|
15167
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_id" })
|
|
14962
15168
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
14963
15169
|
__decorateClass([
|
|
14964
|
-
(0,
|
|
15170
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_uuid" })
|
|
14965
15171
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
14966
15172
|
__decorateClass([
|
|
14967
|
-
(0,
|
|
15173
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_unique_id" })
|
|
14968
15174
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
14969
15175
|
__decorateClass([
|
|
14970
|
-
(0,
|
|
15176
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_first_name" })
|
|
14971
15177
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
14972
15178
|
__decorateClass([
|
|
14973
|
-
(0,
|
|
15179
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_last_name" })
|
|
14974
15180
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
14975
15181
|
__decorateClass([
|
|
14976
|
-
(0,
|
|
15182
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_email" })
|
|
14977
15183
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
14978
15184
|
__decorateClass([
|
|
14979
|
-
(0,
|
|
15185
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
14980
15186
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
14981
15187
|
__decorateClass([
|
|
14982
|
-
(0,
|
|
15188
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_is_social" })
|
|
14983
15189
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
14984
15190
|
__decorateClass([
|
|
14985
|
-
(0,
|
|
15191
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_created_at" })
|
|
14986
15192
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
14987
15193
|
__decorateClass([
|
|
14988
|
-
(0,
|
|
15194
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_designation" })
|
|
14989
15195
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
14990
15196
|
__decorateClass([
|
|
14991
|
-
(0,
|
|
15197
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_experience" })
|
|
14992
15198
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
14993
15199
|
__decorateClass([
|
|
14994
|
-
(0,
|
|
15200
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
14995
15201
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
14996
15202
|
__decorateClass([
|
|
14997
|
-
(0,
|
|
15203
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
14998
15204
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
14999
15205
|
__decorateClass([
|
|
15000
|
-
(0,
|
|
15206
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_country_name" })
|
|
15001
15207
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
15002
15208
|
__decorateClass([
|
|
15003
|
-
(0,
|
|
15209
|
+
(0, import_typeorm92.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
15004
15210
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
15005
15211
|
__decorateClass([
|
|
15006
|
-
(0,
|
|
15212
|
+
(0, import_typeorm92.ViewColumn)({ name: "matching_skills" })
|
|
15007
15213
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
15008
15214
|
__decorateClass([
|
|
15009
|
-
(0,
|
|
15215
|
+
(0, import_typeorm92.ViewColumn)({ name: "matching_skills_count" })
|
|
15010
15216
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
15011
15217
|
__decorateClass([
|
|
15012
|
-
(0,
|
|
15218
|
+
(0, import_typeorm92.ViewColumn)({ name: "required_skills" })
|
|
15013
15219
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
15014
15220
|
__decorateClass([
|
|
15015
|
-
(0,
|
|
15221
|
+
(0, import_typeorm92.ViewColumn)({ name: "required_skills_count" })
|
|
15016
15222
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
15017
15223
|
ClientFreelancerRecommendation = __decorateClass([
|
|
15018
|
-
(0,
|
|
15224
|
+
(0, import_typeorm92.ViewEntity)({
|
|
15019
15225
|
name: "client_freelancer_recommendations",
|
|
15020
15226
|
materialized: true,
|
|
15021
15227
|
synchronize: false
|
|
@@ -15024,7 +15230,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
15024
15230
|
], ClientFreelancerRecommendation);
|
|
15025
15231
|
|
|
15026
15232
|
// src/entities/commission.entity.ts
|
|
15027
|
-
var
|
|
15233
|
+
var import_typeorm93 = require("typeorm");
|
|
15028
15234
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
15029
15235
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
15030
15236
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -15033,7 +15239,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
15033
15239
|
var Commission = class extends BaseEntity {
|
|
15034
15240
|
};
|
|
15035
15241
|
__decorateClass([
|
|
15036
|
-
(0,
|
|
15242
|
+
(0, import_typeorm93.Column)({
|
|
15037
15243
|
name: "freelancer_commission_type",
|
|
15038
15244
|
type: "enum",
|
|
15039
15245
|
enum: CommissionTypeEnum,
|
|
@@ -15041,10 +15247,10 @@ __decorateClass([
|
|
|
15041
15247
|
})
|
|
15042
15248
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
15043
15249
|
__decorateClass([
|
|
15044
|
-
(0,
|
|
15250
|
+
(0, import_typeorm93.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
15045
15251
|
], Commission.prototype, "freelancerCommission", 2);
|
|
15046
15252
|
__decorateClass([
|
|
15047
|
-
(0,
|
|
15253
|
+
(0, import_typeorm93.Column)({
|
|
15048
15254
|
name: "client_commission_type",
|
|
15049
15255
|
type: "enum",
|
|
15050
15256
|
enum: CommissionTypeEnum,
|
|
@@ -15052,50 +15258,50 @@ __decorateClass([
|
|
|
15052
15258
|
})
|
|
15053
15259
|
], Commission.prototype, "clientCommissionType", 2);
|
|
15054
15260
|
__decorateClass([
|
|
15055
|
-
(0,
|
|
15261
|
+
(0, import_typeorm93.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
15056
15262
|
], Commission.prototype, "clientCommission", 2);
|
|
15057
15263
|
Commission = __decorateClass([
|
|
15058
|
-
(0,
|
|
15264
|
+
(0, import_typeorm93.Entity)("commissions")
|
|
15059
15265
|
], Commission);
|
|
15060
15266
|
|
|
15061
15267
|
// src/entities/calendly-meeting-log.entity.ts
|
|
15062
|
-
var
|
|
15268
|
+
var import_typeorm94 = require("typeorm");
|
|
15063
15269
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
15064
15270
|
};
|
|
15065
15271
|
__decorateClass([
|
|
15066
|
-
(0,
|
|
15067
|
-
(0,
|
|
15272
|
+
(0, import_typeorm94.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
15273
|
+
(0, import_typeorm94.Index)()
|
|
15068
15274
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
15069
15275
|
__decorateClass([
|
|
15070
|
-
(0,
|
|
15276
|
+
(0, import_typeorm94.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
15071
15277
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
15072
15278
|
__decorateClass([
|
|
15073
|
-
(0,
|
|
15279
|
+
(0, import_typeorm94.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
15074
15280
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
15075
15281
|
CalendlyMeetingLog = __decorateClass([
|
|
15076
|
-
(0,
|
|
15282
|
+
(0, import_typeorm94.Entity)("calendly_meeting_logs")
|
|
15077
15283
|
], CalendlyMeetingLog);
|
|
15078
15284
|
|
|
15079
15285
|
// src/entities/zoom-meeting-log.entity.ts
|
|
15080
|
-
var
|
|
15286
|
+
var import_typeorm95 = require("typeorm");
|
|
15081
15287
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
15082
15288
|
};
|
|
15083
15289
|
__decorateClass([
|
|
15084
|
-
(0,
|
|
15085
|
-
(0,
|
|
15290
|
+
(0, import_typeorm95.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
15291
|
+
(0, import_typeorm95.Index)()
|
|
15086
15292
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
15087
15293
|
__decorateClass([
|
|
15088
|
-
(0,
|
|
15294
|
+
(0, import_typeorm95.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
15089
15295
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
15090
15296
|
__decorateClass([
|
|
15091
|
-
(0,
|
|
15297
|
+
(0, import_typeorm95.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
15092
15298
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
15093
15299
|
ZoomMeetingLog = __decorateClass([
|
|
15094
|
-
(0,
|
|
15300
|
+
(0, import_typeorm95.Entity)("zoom_meeting_logs")
|
|
15095
15301
|
], ZoomMeetingLog);
|
|
15096
15302
|
|
|
15097
15303
|
// src/entities/docuseal.entity.ts
|
|
15098
|
-
var
|
|
15304
|
+
var import_typeorm96 = require("typeorm");
|
|
15099
15305
|
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
15100
15306
|
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
15101
15307
|
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
@@ -15105,132 +15311,132 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
|
15105
15311
|
var DocuSeal = class extends BaseEntity {
|
|
15106
15312
|
};
|
|
15107
15313
|
__decorateClass([
|
|
15108
|
-
(0,
|
|
15109
|
-
(0,
|
|
15314
|
+
(0, import_typeorm96.Column)({ name: "reference_id", type: "integer", nullable: false }),
|
|
15315
|
+
(0, import_typeorm96.Index)()
|
|
15110
15316
|
], DocuSeal.prototype, "referenceId", 2);
|
|
15111
15317
|
__decorateClass([
|
|
15112
|
-
(0,
|
|
15113
|
-
(0,
|
|
15318
|
+
(0, import_typeorm96.Column)({ name: "submitter_id", type: "integer", nullable: true }),
|
|
15319
|
+
(0, import_typeorm96.Index)()
|
|
15114
15320
|
], DocuSeal.prototype, "submitterId", 2);
|
|
15115
15321
|
__decorateClass([
|
|
15116
|
-
(0,
|
|
15322
|
+
(0, import_typeorm96.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
15117
15323
|
], DocuSeal.prototype, "submitterResponse", 2);
|
|
15118
15324
|
__decorateClass([
|
|
15119
|
-
(0,
|
|
15325
|
+
(0, import_typeorm96.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
15120
15326
|
], DocuSeal.prototype, "webhookResponse", 2);
|
|
15121
15327
|
__decorateClass([
|
|
15122
|
-
(0,
|
|
15328
|
+
(0, import_typeorm96.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
15123
15329
|
], DocuSeal.prototype, "type", 2);
|
|
15124
15330
|
DocuSeal = __decorateClass([
|
|
15125
|
-
(0,
|
|
15331
|
+
(0, import_typeorm96.Entity)("docuseal")
|
|
15126
15332
|
], DocuSeal);
|
|
15127
15333
|
|
|
15128
15334
|
// src/entities/stripe-logs.entity.ts
|
|
15129
|
-
var
|
|
15335
|
+
var import_typeorm97 = require("typeorm");
|
|
15130
15336
|
var StripeLog = class extends BaseEntity {
|
|
15131
15337
|
};
|
|
15132
15338
|
__decorateClass([
|
|
15133
|
-
(0,
|
|
15339
|
+
(0, import_typeorm97.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
15134
15340
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
15135
15341
|
__decorateClass([
|
|
15136
|
-
(0,
|
|
15342
|
+
(0, import_typeorm97.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
15137
15343
|
], StripeLog.prototype, "eventType", 2);
|
|
15138
15344
|
__decorateClass([
|
|
15139
|
-
(0,
|
|
15345
|
+
(0, import_typeorm97.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
15140
15346
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
15141
15347
|
__decorateClass([
|
|
15142
|
-
(0,
|
|
15348
|
+
(0, import_typeorm97.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
15143
15349
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
15144
15350
|
StripeLog = __decorateClass([
|
|
15145
|
-
(0,
|
|
15351
|
+
(0, import_typeorm97.Entity)("stripe_logs")
|
|
15146
15352
|
], StripeLog);
|
|
15147
15353
|
|
|
15148
15354
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
15149
|
-
var
|
|
15355
|
+
var import_typeorm98 = require("typeorm");
|
|
15150
15356
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
15151
15357
|
};
|
|
15152
15358
|
__decorateClass([
|
|
15153
|
-
(0,
|
|
15359
|
+
(0, import_typeorm98.Column)({
|
|
15154
15360
|
type: "varchar",
|
|
15155
15361
|
length: 100,
|
|
15156
15362
|
unique: true,
|
|
15157
15363
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
15158
15364
|
}),
|
|
15159
|
-
(0,
|
|
15365
|
+
(0, import_typeorm98.Index)()
|
|
15160
15366
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
15161
15367
|
__decorateClass([
|
|
15162
|
-
(0,
|
|
15368
|
+
(0, import_typeorm98.Column)({
|
|
15163
15369
|
type: "jsonb",
|
|
15164
15370
|
comment: "JSON object containing weight values",
|
|
15165
15371
|
nullable: true
|
|
15166
15372
|
})
|
|
15167
15373
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
15168
15374
|
__decorateClass([
|
|
15169
|
-
(0,
|
|
15375
|
+
(0, import_typeorm98.Column)({ name: "is_active", type: "boolean", default: true })
|
|
15170
15376
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
15171
15377
|
RecommendationWeightageConfig = __decorateClass([
|
|
15172
|
-
(0,
|
|
15378
|
+
(0, import_typeorm98.Entity)("recommendation_weightage_configs")
|
|
15173
15379
|
], RecommendationWeightageConfig);
|
|
15174
15380
|
|
|
15175
15381
|
// src/entities/global-setting.entity.ts
|
|
15176
|
-
var
|
|
15382
|
+
var import_typeorm99 = require("typeorm");
|
|
15177
15383
|
var GlobalSetting = class extends BaseEntity {
|
|
15178
15384
|
};
|
|
15179
15385
|
__decorateClass([
|
|
15180
|
-
(0,
|
|
15386
|
+
(0, import_typeorm99.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
15181
15387
|
], GlobalSetting.prototype, "key", 2);
|
|
15182
15388
|
__decorateClass([
|
|
15183
|
-
(0,
|
|
15389
|
+
(0, import_typeorm99.Column)({ name: "value", type: "text", nullable: false })
|
|
15184
15390
|
], GlobalSetting.prototype, "value", 2);
|
|
15185
15391
|
GlobalSetting = __decorateClass([
|
|
15186
|
-
(0,
|
|
15187
|
-
(0,
|
|
15392
|
+
(0, import_typeorm99.Entity)("global_settings"),
|
|
15393
|
+
(0, import_typeorm99.Index)(["key"], { unique: true })
|
|
15188
15394
|
], GlobalSetting);
|
|
15189
15395
|
|
|
15190
15396
|
// src/entities/plan.entity.ts
|
|
15191
|
-
var
|
|
15397
|
+
var import_typeorm102 = require("typeorm");
|
|
15192
15398
|
|
|
15193
15399
|
// src/entities/plan-feature.entity.ts
|
|
15194
|
-
var
|
|
15400
|
+
var import_typeorm100 = require("typeorm");
|
|
15195
15401
|
var PlanFeature = class extends BaseEntity {
|
|
15196
15402
|
};
|
|
15197
15403
|
// individual index to find features by plan
|
|
15198
15404
|
__decorateClass([
|
|
15199
|
-
(0,
|
|
15200
|
-
(0,
|
|
15405
|
+
(0, import_typeorm100.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
15406
|
+
(0, import_typeorm100.Index)()
|
|
15201
15407
|
], PlanFeature.prototype, "planId", 2);
|
|
15202
15408
|
__decorateClass([
|
|
15203
|
-
(0,
|
|
15409
|
+
(0, import_typeorm100.ManyToOne)(() => Plan, (plan) => plan.features, {
|
|
15204
15410
|
onDelete: "CASCADE",
|
|
15205
15411
|
nullable: false
|
|
15206
15412
|
}),
|
|
15207
|
-
(0,
|
|
15413
|
+
(0, import_typeorm100.JoinColumn)({ name: "plan_id" })
|
|
15208
15414
|
], PlanFeature.prototype, "plan", 2);
|
|
15209
15415
|
__decorateClass([
|
|
15210
|
-
(0,
|
|
15416
|
+
(0, import_typeorm100.Column)({ name: "name", type: "varchar", length: 200 })
|
|
15211
15417
|
], PlanFeature.prototype, "name", 2);
|
|
15212
15418
|
__decorateClass([
|
|
15213
|
-
(0,
|
|
15214
|
-
(0,
|
|
15419
|
+
(0, import_typeorm100.Column)({ name: "slug", type: "varchar", length: 100 }),
|
|
15420
|
+
(0, import_typeorm100.Index)()
|
|
15215
15421
|
], PlanFeature.prototype, "slug", 2);
|
|
15216
15422
|
__decorateClass([
|
|
15217
|
-
(0,
|
|
15423
|
+
(0, import_typeorm100.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
15218
15424
|
], PlanFeature.prototype, "tooltip", 2);
|
|
15219
15425
|
__decorateClass([
|
|
15220
|
-
(0,
|
|
15426
|
+
(0, import_typeorm100.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
15221
15427
|
], PlanFeature.prototype, "sortOrder", 2);
|
|
15222
15428
|
__decorateClass([
|
|
15223
|
-
(0,
|
|
15429
|
+
(0, import_typeorm100.Column)({ name: "is_active", type: "boolean", default: true })
|
|
15224
15430
|
], PlanFeature.prototype, "isActive", 2);
|
|
15225
15431
|
PlanFeature = __decorateClass([
|
|
15226
|
-
(0,
|
|
15227
|
-
(0,
|
|
15228
|
-
(0,
|
|
15229
|
-
(0,
|
|
15432
|
+
(0, import_typeorm100.Entity)("plan_features"),
|
|
15433
|
+
(0, import_typeorm100.Index)("idx_plan_features_plan_id", ["planId"]),
|
|
15434
|
+
(0, import_typeorm100.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
15435
|
+
(0, import_typeorm100.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
15230
15436
|
], PlanFeature);
|
|
15231
15437
|
|
|
15232
15438
|
// src/entities/plan-pricing.entity.ts
|
|
15233
|
-
var
|
|
15439
|
+
var import_typeorm101 = require("typeorm");
|
|
15234
15440
|
var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
|
|
15235
15441
|
PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
|
|
15236
15442
|
PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
|
|
@@ -15285,61 +15491,61 @@ var PlanPricing = class extends BaseEntity {
|
|
|
15285
15491
|
};
|
|
15286
15492
|
// individual index to find pricing by plan
|
|
15287
15493
|
__decorateClass([
|
|
15288
|
-
(0,
|
|
15289
|
-
(0,
|
|
15494
|
+
(0, import_typeorm101.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
15495
|
+
(0, import_typeorm101.Index)()
|
|
15290
15496
|
], PlanPricing.prototype, "planId", 2);
|
|
15291
15497
|
__decorateClass([
|
|
15292
|
-
(0,
|
|
15498
|
+
(0, import_typeorm101.ManyToOne)(() => Plan, (plan) => plan.pricing, {
|
|
15293
15499
|
onDelete: "CASCADE",
|
|
15294
15500
|
nullable: false
|
|
15295
15501
|
}),
|
|
15296
|
-
(0,
|
|
15502
|
+
(0, import_typeorm101.JoinColumn)({ name: "plan_id" })
|
|
15297
15503
|
], PlanPricing.prototype, "plan", 2);
|
|
15298
15504
|
__decorateClass([
|
|
15299
|
-
(0,
|
|
15505
|
+
(0, import_typeorm101.Column)({
|
|
15300
15506
|
name: "billing_cycle",
|
|
15301
15507
|
type: "enum",
|
|
15302
15508
|
enum: PlanPricingBillingCycleEnum
|
|
15303
15509
|
})
|
|
15304
15510
|
], PlanPricing.prototype, "billingCycle", 2);
|
|
15305
15511
|
__decorateClass([
|
|
15306
|
-
(0,
|
|
15512
|
+
(0, import_typeorm101.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
15307
15513
|
], PlanPricing.prototype, "price", 2);
|
|
15308
15514
|
__decorateClass([
|
|
15309
|
-
(0,
|
|
15515
|
+
(0, import_typeorm101.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
15310
15516
|
], PlanPricing.prototype, "originalPrice", 2);
|
|
15311
15517
|
__decorateClass([
|
|
15312
|
-
(0,
|
|
15518
|
+
(0, import_typeorm101.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
15313
15519
|
], PlanPricing.prototype, "discountPct", 2);
|
|
15314
15520
|
__decorateClass([
|
|
15315
|
-
(0,
|
|
15521
|
+
(0, import_typeorm101.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
15316
15522
|
], PlanPricing.prototype, "currency", 2);
|
|
15317
15523
|
__decorateClass([
|
|
15318
|
-
(0,
|
|
15524
|
+
(0, import_typeorm101.Column)({ name: "is_free", type: "boolean", default: false })
|
|
15319
15525
|
], PlanPricing.prototype, "isFree", 2);
|
|
15320
15526
|
__decorateClass([
|
|
15321
|
-
(0,
|
|
15527
|
+
(0, import_typeorm101.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
|
|
15322
15528
|
], PlanPricing.prototype, "stripePriceId", 2);
|
|
15323
15529
|
__decorateClass([
|
|
15324
|
-
(0,
|
|
15530
|
+
(0, import_typeorm101.Column)({ name: "trial_days", type: "smallint", default: 0 })
|
|
15325
15531
|
], PlanPricing.prototype, "trialDays", 2);
|
|
15326
15532
|
__decorateClass([
|
|
15327
|
-
(0,
|
|
15533
|
+
(0, import_typeorm101.Column)({ name: "is_active", type: "boolean", default: true })
|
|
15328
15534
|
], PlanPricing.prototype, "isActive", 2);
|
|
15329
15535
|
__decorateClass([
|
|
15330
|
-
(0,
|
|
15331
|
-
(0,
|
|
15536
|
+
(0, import_typeorm101.BeforeInsert)(),
|
|
15537
|
+
(0, import_typeorm101.BeforeUpdate)()
|
|
15332
15538
|
], PlanPricing.prototype, "sanitize", 1);
|
|
15333
15539
|
PlanPricing = __decorateClass([
|
|
15334
|
-
(0,
|
|
15335
|
-
(0,
|
|
15336
|
-
(0,
|
|
15337
|
-
(0,
|
|
15338
|
-
(0,
|
|
15339
|
-
(0,
|
|
15340
|
-
(0,
|
|
15341
|
-
(0,
|
|
15342
|
-
(0,
|
|
15540
|
+
(0, import_typeorm101.Entity)("plan_pricings"),
|
|
15541
|
+
(0, import_typeorm101.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
15542
|
+
(0, import_typeorm101.Index)("idx_plan_pricings_plan_id", ["planId"]),
|
|
15543
|
+
(0, import_typeorm101.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
15544
|
+
(0, import_typeorm101.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
15545
|
+
(0, import_typeorm101.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
15546
|
+
(0, import_typeorm101.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
15547
|
+
(0, import_typeorm101.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
|
|
15548
|
+
(0, import_typeorm101.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
|
|
15343
15549
|
], PlanPricing);
|
|
15344
15550
|
|
|
15345
15551
|
// src/entities/plan.entity.ts
|
|
@@ -15356,22 +15562,22 @@ var Plan = class extends BaseEntity {
|
|
|
15356
15562
|
}
|
|
15357
15563
|
};
|
|
15358
15564
|
__decorateClass([
|
|
15359
|
-
(0,
|
|
15565
|
+
(0, import_typeorm102.Column)({ name: "name", type: "varchar", length: 100 })
|
|
15360
15566
|
], Plan.prototype, "name", 2);
|
|
15361
15567
|
__decorateClass([
|
|
15362
|
-
(0,
|
|
15568
|
+
(0, import_typeorm102.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
15363
15569
|
], Plan.prototype, "slug", 2);
|
|
15364
15570
|
__decorateClass([
|
|
15365
|
-
(0,
|
|
15571
|
+
(0, import_typeorm102.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
15366
15572
|
], Plan.prototype, "badgeLabel", 2);
|
|
15367
15573
|
__decorateClass([
|
|
15368
|
-
(0,
|
|
15574
|
+
(0, import_typeorm102.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
15369
15575
|
], Plan.prototype, "sortOrder", 2);
|
|
15370
15576
|
__decorateClass([
|
|
15371
|
-
(0,
|
|
15577
|
+
(0, import_typeorm102.Column)({ name: "is_active", type: "boolean", default: true })
|
|
15372
15578
|
], Plan.prototype, "isActive", 2);
|
|
15373
15579
|
__decorateClass([
|
|
15374
|
-
(0,
|
|
15580
|
+
(0, import_typeorm102.Column)({
|
|
15375
15581
|
name: "plan_type",
|
|
15376
15582
|
type: "enum",
|
|
15377
15583
|
enum: PlanTypeEnum,
|
|
@@ -15379,37 +15585,37 @@ __decorateClass([
|
|
|
15379
15585
|
})
|
|
15380
15586
|
], Plan.prototype, "planType", 2);
|
|
15381
15587
|
__decorateClass([
|
|
15382
|
-
(0,
|
|
15588
|
+
(0, import_typeorm102.Column)({ name: "metadata", type: "jsonb", default: {} })
|
|
15383
15589
|
], Plan.prototype, "metadata", 2);
|
|
15384
15590
|
__decorateClass([
|
|
15385
|
-
(0,
|
|
15591
|
+
(0, import_typeorm102.Column)({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
|
|
15386
15592
|
], Plan.prototype, "stripeProductId", 2);
|
|
15387
15593
|
__decorateClass([
|
|
15388
|
-
(0,
|
|
15389
|
-
(0,
|
|
15594
|
+
(0, import_typeorm102.BeforeInsert)(),
|
|
15595
|
+
(0, import_typeorm102.BeforeUpdate)()
|
|
15390
15596
|
], Plan.prototype, "createSlug", 1);
|
|
15391
15597
|
__decorateClass([
|
|
15392
|
-
(0,
|
|
15598
|
+
(0, import_typeorm102.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
|
|
15393
15599
|
cascade: ["insert", "update"]
|
|
15394
15600
|
})
|
|
15395
15601
|
], Plan.prototype, "features", 2);
|
|
15396
15602
|
__decorateClass([
|
|
15397
|
-
(0,
|
|
15603
|
+
(0, import_typeorm102.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
|
|
15398
15604
|
cascade: ["insert", "update"]
|
|
15399
15605
|
})
|
|
15400
15606
|
], Plan.prototype, "pricing", 2);
|
|
15401
15607
|
Plan = __decorateClass([
|
|
15402
|
-
(0,
|
|
15403
|
-
(0,
|
|
15608
|
+
(0, import_typeorm102.Entity)("plans"),
|
|
15609
|
+
(0, import_typeorm102.Index)("idx_plans_slug_plan_type", ["slug", "planType"], {
|
|
15404
15610
|
unique: true,
|
|
15405
15611
|
where: '"is_deleted" IS FALSE'
|
|
15406
15612
|
}),
|
|
15407
|
-
(0,
|
|
15408
|
-
(0,
|
|
15613
|
+
(0, import_typeorm102.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
15614
|
+
(0, import_typeorm102.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
15409
15615
|
], Plan);
|
|
15410
15616
|
|
|
15411
15617
|
// src/entities/subscription-feature.entity.ts
|
|
15412
|
-
var
|
|
15618
|
+
var import_typeorm103 = require("typeorm");
|
|
15413
15619
|
var SubscriptionFeature = class extends BaseEntity {
|
|
15414
15620
|
toSlug(value) {
|
|
15415
15621
|
return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
@@ -15424,33 +15630,33 @@ var SubscriptionFeature = class extends BaseEntity {
|
|
|
15424
15630
|
}
|
|
15425
15631
|
};
|
|
15426
15632
|
__decorateClass([
|
|
15427
|
-
(0,
|
|
15633
|
+
(0, import_typeorm103.Column)({ name: "name", type: "varchar", length: 200 })
|
|
15428
15634
|
], SubscriptionFeature.prototype, "name", 2);
|
|
15429
15635
|
__decorateClass([
|
|
15430
|
-
(0,
|
|
15636
|
+
(0, import_typeorm103.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
15431
15637
|
], SubscriptionFeature.prototype, "slug", 2);
|
|
15432
15638
|
__decorateClass([
|
|
15433
|
-
(0,
|
|
15639
|
+
(0, import_typeorm103.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
15434
15640
|
], SubscriptionFeature.prototype, "tooltip", 2);
|
|
15435
15641
|
__decorateClass([
|
|
15436
|
-
(0,
|
|
15642
|
+
(0, import_typeorm103.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
15437
15643
|
], SubscriptionFeature.prototype, "sortOrder", 2);
|
|
15438
15644
|
__decorateClass([
|
|
15439
|
-
(0,
|
|
15645
|
+
(0, import_typeorm103.Column)({ name: "is_active", type: "boolean", default: true })
|
|
15440
15646
|
], SubscriptionFeature.prototype, "isActive", 2);
|
|
15441
15647
|
__decorateClass([
|
|
15442
|
-
(0,
|
|
15443
|
-
(0,
|
|
15648
|
+
(0, import_typeorm103.BeforeInsert)(),
|
|
15649
|
+
(0, import_typeorm103.BeforeUpdate)()
|
|
15444
15650
|
], SubscriptionFeature.prototype, "createSlug", 1);
|
|
15445
15651
|
SubscriptionFeature = __decorateClass([
|
|
15446
|
-
(0,
|
|
15447
|
-
(0,
|
|
15448
|
-
(0,
|
|
15449
|
-
(0,
|
|
15652
|
+
(0, import_typeorm103.Entity)("subscription_features"),
|
|
15653
|
+
(0, import_typeorm103.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
15654
|
+
(0, import_typeorm103.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
|
|
15655
|
+
(0, import_typeorm103.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
|
|
15450
15656
|
], SubscriptionFeature);
|
|
15451
15657
|
|
|
15452
15658
|
// src/entities/user-subscription-transaction.entity.ts
|
|
15453
|
-
var
|
|
15659
|
+
var import_typeorm104 = require("typeorm");
|
|
15454
15660
|
var UserSubscriptionTransactionTypeEnum = /* @__PURE__ */ ((UserSubscriptionTransactionTypeEnum2) => {
|
|
15455
15661
|
UserSubscriptionTransactionTypeEnum2["SUBSCRIPTION_INITIATED"] = "SUBSCRIPTION_INITIATED";
|
|
15456
15662
|
UserSubscriptionTransactionTypeEnum2["CHECKOUT_SESSION_CREATED"] = "CHECKOUT_SESSION_CREATED";
|
|
@@ -15468,25 +15674,25 @@ var UserSubscriptionTransactionStatusEnum = /* @__PURE__ */ ((UserSubscriptionTr
|
|
|
15468
15674
|
var UserSubscriptionTransaction = class extends BaseEntity {
|
|
15469
15675
|
};
|
|
15470
15676
|
__decorateClass([
|
|
15471
|
-
(0,
|
|
15472
|
-
(0,
|
|
15677
|
+
(0, import_typeorm104.Column)({ name: "user_subscription_id", type: "integer", nullable: false }),
|
|
15678
|
+
(0, import_typeorm104.Index)()
|
|
15473
15679
|
], UserSubscriptionTransaction.prototype, "userSubscriptionId", 2);
|
|
15474
15680
|
__decorateClass([
|
|
15475
|
-
(0,
|
|
15476
|
-
(0,
|
|
15681
|
+
(0, import_typeorm104.ManyToOne)(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
|
|
15682
|
+
(0, import_typeorm104.JoinColumn)({ name: "user_subscription_id" })
|
|
15477
15683
|
], UserSubscriptionTransaction.prototype, "userSubscription", 2);
|
|
15478
15684
|
__decorateClass([
|
|
15479
|
-
(0,
|
|
15685
|
+
(0, import_typeorm104.Column)({ name: "user_id", type: "integer", nullable: false })
|
|
15480
15686
|
], UserSubscriptionTransaction.prototype, "userId", 2);
|
|
15481
15687
|
__decorateClass([
|
|
15482
|
-
(0,
|
|
15688
|
+
(0, import_typeorm104.Column)({
|
|
15483
15689
|
name: "type",
|
|
15484
15690
|
type: "enum",
|
|
15485
15691
|
enum: UserSubscriptionTransactionTypeEnum
|
|
15486
15692
|
})
|
|
15487
15693
|
], UserSubscriptionTransaction.prototype, "type", 2);
|
|
15488
15694
|
__decorateClass([
|
|
15489
|
-
(0,
|
|
15695
|
+
(0, import_typeorm104.Column)({
|
|
15490
15696
|
name: "status",
|
|
15491
15697
|
type: "enum",
|
|
15492
15698
|
enum: UserSubscriptionTransactionStatusEnum,
|
|
@@ -15494,129 +15700,73 @@ __decorateClass([
|
|
|
15494
15700
|
})
|
|
15495
15701
|
], UserSubscriptionTransaction.prototype, "status", 2);
|
|
15496
15702
|
__decorateClass([
|
|
15497
|
-
(0,
|
|
15703
|
+
(0, import_typeorm104.Column)({ name: "plan_name", type: "text", nullable: true })
|
|
15498
15704
|
], UserSubscriptionTransaction.prototype, "planName", 2);
|
|
15499
15705
|
__decorateClass([
|
|
15500
|
-
(0,
|
|
15706
|
+
(0, import_typeorm104.Column)({ name: "amount_minor", type: "integer", nullable: true })
|
|
15501
15707
|
], UserSubscriptionTransaction.prototype, "amountMinor", 2);
|
|
15502
15708
|
__decorateClass([
|
|
15503
|
-
(0,
|
|
15709
|
+
(0, import_typeorm104.Column)({ name: "currency", type: "varchar", length: 3, nullable: true })
|
|
15504
15710
|
], UserSubscriptionTransaction.prototype, "currency", 2);
|
|
15505
15711
|
__decorateClass([
|
|
15506
|
-
(0,
|
|
15712
|
+
(0, import_typeorm104.Column)({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
|
|
15507
15713
|
], UserSubscriptionTransaction.prototype, "stripeEventId", 2);
|
|
15508
15714
|
__decorateClass([
|
|
15509
|
-
(0,
|
|
15715
|
+
(0, import_typeorm104.Column)({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
|
|
15510
15716
|
], UserSubscriptionTransaction.prototype, "stripeEventType", 2);
|
|
15511
15717
|
__decorateClass([
|
|
15512
|
-
(0,
|
|
15718
|
+
(0, import_typeorm104.Column)({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
|
|
15513
15719
|
], UserSubscriptionTransaction.prototype, "stripeSubscriptionId", 2);
|
|
15514
15720
|
__decorateClass([
|
|
15515
|
-
(0,
|
|
15721
|
+
(0, import_typeorm104.Column)({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
|
|
15516
15722
|
], UserSubscriptionTransaction.prototype, "stripeInvoiceId", 2);
|
|
15517
15723
|
__decorateClass([
|
|
15518
|
-
(0,
|
|
15724
|
+
(0, import_typeorm104.Column)({ name: "description", type: "text", nullable: true })
|
|
15519
15725
|
], UserSubscriptionTransaction.prototype, "description", 2);
|
|
15520
15726
|
__decorateClass([
|
|
15521
|
-
(0,
|
|
15727
|
+
(0, import_typeorm104.Column)({ name: "invoice_url", type: "text", nullable: true })
|
|
15522
15728
|
], UserSubscriptionTransaction.prototype, "invoiceUrl", 2);
|
|
15523
15729
|
__decorateClass([
|
|
15524
|
-
(0,
|
|
15730
|
+
(0, import_typeorm104.Column)({ name: "checkout_request_payload", type: "jsonb", nullable: true })
|
|
15525
15731
|
], UserSubscriptionTransaction.prototype, "checkoutRequestPayload", 2);
|
|
15526
15732
|
__decorateClass([
|
|
15527
|
-
(0,
|
|
15733
|
+
(0, import_typeorm104.Column)({ name: "checkout_response_payload", type: "jsonb", nullable: true })
|
|
15528
15734
|
], UserSubscriptionTransaction.prototype, "checkoutResponsePayload", 2);
|
|
15529
15735
|
__decorateClass([
|
|
15530
|
-
(0,
|
|
15736
|
+
(0, import_typeorm104.Column)({ name: "webhook_payload", type: "jsonb", nullable: true })
|
|
15531
15737
|
], UserSubscriptionTransaction.prototype, "webhookPayload", 2);
|
|
15532
15738
|
__decorateClass([
|
|
15533
|
-
(0,
|
|
15739
|
+
(0, import_typeorm104.Column)({ name: "metadata", type: "jsonb", nullable: true, default: {} })
|
|
15534
15740
|
], UserSubscriptionTransaction.prototype, "metadata", 2);
|
|
15535
15741
|
UserSubscriptionTransaction = __decorateClass([
|
|
15536
|
-
(0,
|
|
15537
|
-
(0,
|
|
15538
|
-
(0,
|
|
15539
|
-
(0,
|
|
15742
|
+
(0, import_typeorm104.Entity)("user_subscription_transactions"),
|
|
15743
|
+
(0, import_typeorm104.Index)("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
|
|
15744
|
+
(0, import_typeorm104.Index)("idx_user_sub_tx_user_id", ["userId"]),
|
|
15745
|
+
(0, import_typeorm104.Index)("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
|
|
15540
15746
|
], UserSubscriptionTransaction);
|
|
15541
15747
|
|
|
15542
15748
|
// src/entities/vendor-api-configuration.entity.ts
|
|
15543
|
-
var
|
|
15749
|
+
var import_typeorm105 = require("typeorm");
|
|
15544
15750
|
var VendorApiConfiguration = class extends BaseEntity {
|
|
15545
15751
|
};
|
|
15546
15752
|
__decorateClass([
|
|
15547
|
-
(0,
|
|
15753
|
+
(0, import_typeorm105.Column)({ name: "vendor_name", type: "varchar", length: 255 })
|
|
15548
15754
|
], VendorApiConfiguration.prototype, "vendorName", 2);
|
|
15549
15755
|
__decorateClass([
|
|
15550
|
-
(0,
|
|
15756
|
+
(0, import_typeorm105.Column)({ name: "vendor_api_key", type: "varchar", length: 255 })
|
|
15551
15757
|
], VendorApiConfiguration.prototype, "vendorApiKey", 2);
|
|
15552
15758
|
__decorateClass([
|
|
15553
|
-
(0,
|
|
15759
|
+
(0, import_typeorm105.Column)({ name: "vendor_api_secret_key", type: "text" })
|
|
15554
15760
|
], VendorApiConfiguration.prototype, "vendorApiSecretKey", 2);
|
|
15555
15761
|
__decorateClass([
|
|
15556
|
-
(0,
|
|
15762
|
+
(0, import_typeorm105.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
15557
15763
|
], VendorApiConfiguration.prototype, "slug", 2);
|
|
15558
15764
|
__decorateClass([
|
|
15559
|
-
(0,
|
|
15765
|
+
(0, import_typeorm105.Column)({ name: "is_active", type: "boolean", default: true })
|
|
15560
15766
|
], VendorApiConfiguration.prototype, "isActive", 2);
|
|
15561
15767
|
VendorApiConfiguration = __decorateClass([
|
|
15562
|
-
(0,
|
|
15768
|
+
(0, import_typeorm105.Entity)("vendor_api_configurations")
|
|
15563
15769
|
], VendorApiConfiguration);
|
|
15564
|
-
|
|
15565
|
-
// src/entities/ekyc-verification-log.entity.ts
|
|
15566
|
-
var import_typeorm105 = require("typeorm");
|
|
15567
|
-
var EkycVerificationLogStatusEnum = /* @__PURE__ */ ((EkycVerificationLogStatusEnum2) => {
|
|
15568
|
-
EkycVerificationLogStatusEnum2["NOT_STARTED"] = "NOT_STARTED";
|
|
15569
|
-
EkycVerificationLogStatusEnum2["NOT_FINISHED"] = "NOT_FINISHED";
|
|
15570
|
-
EkycVerificationLogStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
15571
|
-
EkycVerificationLogStatusEnum2["APPROVED"] = "APPROVED";
|
|
15572
|
-
EkycVerificationLogStatusEnum2["DECLINED"] = "DECLINED";
|
|
15573
|
-
EkycVerificationLogStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
15574
|
-
EkycVerificationLogStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
15575
|
-
EkycVerificationLogStatusEnum2["KYC_EXPIRED"] = "KYC_EXPIRED";
|
|
15576
|
-
EkycVerificationLogStatusEnum2["ABANDONED"] = "ABANDONED";
|
|
15577
|
-
EkycVerificationLogStatusEnum2["RESUBMITTED"] = "RESUBMITTED";
|
|
15578
|
-
EkycVerificationLogStatusEnum2["AWAITING_USER"] = "AWAITING_USER";
|
|
15579
|
-
return EkycVerificationLogStatusEnum2;
|
|
15580
|
-
})(EkycVerificationLogStatusEnum || {});
|
|
15581
|
-
var EkycVerifcationLog = class {
|
|
15582
|
-
};
|
|
15583
|
-
__decorateClass([
|
|
15584
|
-
(0, import_typeorm105.PrimaryGeneratedColumn)("increment", { type: "integer" })
|
|
15585
|
-
], EkycVerifcationLog.prototype, "id", 2);
|
|
15586
|
-
__decorateClass([
|
|
15587
|
-
(0, import_typeorm105.Column)({ name: "session_id", type: "varchar", unique: true })
|
|
15588
|
-
], EkycVerifcationLog.prototype, "sessionId", 2);
|
|
15589
|
-
__decorateClass([
|
|
15590
|
-
(0, import_typeorm105.Column)({ name: "workflow_id", type: "varchar", unique: true })
|
|
15591
|
-
], EkycVerifcationLog.prototype, "workflowId", 2);
|
|
15592
|
-
__decorateClass([
|
|
15593
|
-
(0, import_typeorm105.Column)({ name: "callback_url", type: "varchar", unique: true })
|
|
15594
|
-
], EkycVerifcationLog.prototype, "callBackUrl", 2);
|
|
15595
|
-
__decorateClass([
|
|
15596
|
-
(0, import_typeorm105.Column)({
|
|
15597
|
-
type: "enum",
|
|
15598
|
-
enum: EkycVerificationLogStatusEnum,
|
|
15599
|
-
nullable: true
|
|
15600
|
-
})
|
|
15601
|
-
], EkycVerifcationLog.prototype, "status", 2);
|
|
15602
|
-
__decorateClass([
|
|
15603
|
-
(0, import_typeorm105.Column)({ name: "signature_method", type: "varchar", nullable: true })
|
|
15604
|
-
], EkycVerifcationLog.prototype, "signatureMethod", 2);
|
|
15605
|
-
__decorateClass([
|
|
15606
|
-
(0, import_typeorm105.Column)({ name: "is_signature_valid", type: "boolean", default: false })
|
|
15607
|
-
], EkycVerifcationLog.prototype, "isSignatureValid", 2);
|
|
15608
|
-
__decorateClass([
|
|
15609
|
-
(0, import_typeorm105.Column)({ name: "raw_payload", type: "text", nullable: true })
|
|
15610
|
-
], EkycVerifcationLog.prototype, "rawPayload", 2);
|
|
15611
|
-
__decorateClass([
|
|
15612
|
-
(0, import_typeorm105.Column)({ name: "headers", type: "jsonb", nullable: true })
|
|
15613
|
-
], EkycVerifcationLog.prototype, "headers", 2);
|
|
15614
|
-
__decorateClass([
|
|
15615
|
-
(0, import_typeorm105.Column)({ name: "error_message", type: "text", nullable: true })
|
|
15616
|
-
], EkycVerifcationLog.prototype, "errorMessage", 2);
|
|
15617
|
-
EkycVerifcationLog = __decorateClass([
|
|
15618
|
-
(0, import_typeorm105.Entity)("ekyc_verification_logs")
|
|
15619
|
-
], EkycVerifcationLog);
|
|
15620
15770
|
// Annotate the CommonJS export names for ESM import in node:
|
|
15621
15771
|
0 && (module.exports = {
|
|
15622
15772
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -15715,6 +15865,7 @@ EkycVerifcationLog = __decorateClass([
|
|
|
15715
15865
|
CompanyRole,
|
|
15716
15866
|
CompanyRolePermission,
|
|
15717
15867
|
CompanySkill,
|
|
15868
|
+
ContactDetailsDto,
|
|
15718
15869
|
Contract,
|
|
15719
15870
|
ContractRMQAdapter,
|
|
15720
15871
|
ContractStatusEnum,
|
|
@@ -15733,6 +15884,7 @@ EkycVerifcationLog = __decorateClass([
|
|
|
15733
15884
|
CreateCompanyRoleDto,
|
|
15734
15885
|
CreateDefaultTimesheetLineDto,
|
|
15735
15886
|
CreateDisputeDto,
|
|
15887
|
+
CreateEkycSessionDto,
|
|
15736
15888
|
CreateF2FInterviewDirectDto,
|
|
15737
15889
|
CreateF2FInterviewDto,
|
|
15738
15890
|
CreateF2FInterviewRescheduleRequestDto,
|
|
@@ -15755,6 +15907,7 @@ EkycVerifcationLog = __decorateClass([
|
|
|
15755
15907
|
CreateTaskQueryDto,
|
|
15756
15908
|
CreateUserSigningDto,
|
|
15757
15909
|
CustomQuestionItemDto,
|
|
15910
|
+
DIDIT_PATTERN,
|
|
15758
15911
|
DISPUTE_PATTERN,
|
|
15759
15912
|
DOCUSEAL_PATTERN,
|
|
15760
15913
|
DebitCommissionFteHiringDto,
|
|
@@ -15770,7 +15923,7 @@ EkycVerifcationLog = __decorateClass([
|
|
|
15770
15923
|
DurationTypeEnum,
|
|
15771
15924
|
EMAIL_PATTERN,
|
|
15772
15925
|
EducationDto,
|
|
15773
|
-
|
|
15926
|
+
EkycVerificationLog,
|
|
15774
15927
|
EkycVerificationLogStatusEnum,
|
|
15775
15928
|
EkycVerificationSession,
|
|
15776
15929
|
EkycVerificationSessionStatusEnum,
|
|
@@ -15782,6 +15935,7 @@ EkycVerifcationLog = __decorateClass([
|
|
|
15782
15935
|
EsignContractClientDto,
|
|
15783
15936
|
EsignContractFreelancerDto,
|
|
15784
15937
|
ExistingCandidateDto,
|
|
15938
|
+
ExpectedDetailsDto,
|
|
15785
15939
|
ExperienceDto,
|
|
15786
15940
|
F2FInterview,
|
|
15787
15941
|
F2FInterviewSchedule,
|
|
@@ -15900,6 +16054,7 @@ EkycVerifcationLog = __decorateClass([
|
|
|
15900
16054
|
MarkTaskAsCompletedDto,
|
|
15901
16055
|
MarkTaskQueryMessagesReadDto,
|
|
15902
16056
|
McqStatusEnum,
|
|
16057
|
+
MetadataDto,
|
|
15903
16058
|
ModeOfHire,
|
|
15904
16059
|
ModeOfWork,
|
|
15905
16060
|
NOTIFICATION_PATTERN,
|