@experts_hub/shared 1.0.370 → 1.0.371
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/index.d.ts +3 -0
- package/dist/entities/invoices.entity.d.ts +20 -0
- package/dist/entities/transaction.entity.d.ts +24 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/entities/wallet-details.entity.d.ts +20 -0
- package/dist/index.d.mts +61 -1
- package/dist/index.d.ts +61 -1
- package/dist/index.js +381 -222
- package/dist/index.mjs +311 -158
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1417,17 +1417,17 @@ import {
|
|
|
1417
1417
|
} from "class-validator";
|
|
1418
1418
|
|
|
1419
1419
|
// src/entities/rating.entity.ts
|
|
1420
|
-
import { Entity as
|
|
1420
|
+
import { Entity as Entity49, Column as Column50, ManyToOne as ManyToOne43, JoinColumn as JoinColumn44, Index as Index42 } from "typeorm";
|
|
1421
1421
|
|
|
1422
1422
|
// src/entities/user.entity.ts
|
|
1423
1423
|
import {
|
|
1424
|
-
Entity as
|
|
1425
|
-
Column as
|
|
1426
|
-
OneToMany as
|
|
1427
|
-
OneToOne as
|
|
1428
|
-
Index as
|
|
1429
|
-
ManyToOne as
|
|
1430
|
-
JoinColumn as
|
|
1424
|
+
Entity as Entity48,
|
|
1425
|
+
Column as Column49,
|
|
1426
|
+
OneToMany as OneToMany17,
|
|
1427
|
+
OneToOne as OneToOne3,
|
|
1428
|
+
Index as Index41,
|
|
1429
|
+
ManyToOne as ManyToOne42,
|
|
1430
|
+
JoinColumn as JoinColumn43
|
|
1431
1431
|
} from "typeorm";
|
|
1432
1432
|
|
|
1433
1433
|
// src/entities/base.entity.ts
|
|
@@ -4119,6 +4119,101 @@ FreelancerResume = __decorateClass([
|
|
|
4119
4119
|
Entity45("freelancer_resumes")
|
|
4120
4120
|
], FreelancerResume);
|
|
4121
4121
|
|
|
4122
|
+
// src/entities/wallet-details.entity.ts
|
|
4123
|
+
import { Entity as Entity47, Column as Column48, Index as Index40, JoinColumn as JoinColumn42, OneToOne as OneToOne2, OneToMany as OneToMany16 } from "typeorm";
|
|
4124
|
+
|
|
4125
|
+
// src/entities/transaction.entity.ts
|
|
4126
|
+
import { Entity as Entity46, Column as Column47, Index as Index39, ManyToOne as ManyToOne41, JoinColumn as JoinColumn41 } from "typeorm";
|
|
4127
|
+
var TransactionTypeEnum = /* @__PURE__ */ ((TransactionTypeEnum2) => {
|
|
4128
|
+
TransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
4129
|
+
TransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
4130
|
+
TransactionTypeEnum2["WITHDRAW"] = "WITHDRAW";
|
|
4131
|
+
TransactionTypeEnum2["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
|
|
4132
|
+
TransactionTypeEnum2["REFUND"] = "REFUND";
|
|
4133
|
+
return TransactionTypeEnum2;
|
|
4134
|
+
})(TransactionTypeEnum || {});
|
|
4135
|
+
var TransactionStatusEnum = /* @__PURE__ */ ((TransactionStatusEnum2) => {
|
|
4136
|
+
TransactionStatusEnum2["PENDING"] = "PENDING";
|
|
4137
|
+
TransactionStatusEnum2["SUCCESS"] = "SUCCESS";
|
|
4138
|
+
TransactionStatusEnum2["FAILED"] = "FAILED";
|
|
4139
|
+
return TransactionStatusEnum2;
|
|
4140
|
+
})(TransactionStatusEnum || {});
|
|
4141
|
+
var Transaction = class extends BaseEntity {
|
|
4142
|
+
};
|
|
4143
|
+
__decorateClass([
|
|
4144
|
+
Column47({ name: "wallet_id", type: "integer", nullable: true }),
|
|
4145
|
+
Index39()
|
|
4146
|
+
], Transaction.prototype, "walletId", 2);
|
|
4147
|
+
__decorateClass([
|
|
4148
|
+
ManyToOne41(() => WalletDetail, (walletDetail) => walletDetail.transactions),
|
|
4149
|
+
JoinColumn41({ name: "wallet_id" })
|
|
4150
|
+
], Transaction.prototype, "walletDetail", 2);
|
|
4151
|
+
__decorateClass([
|
|
4152
|
+
Column47({ name: "amount", type: "bigint", nullable: true })
|
|
4153
|
+
], Transaction.prototype, "amount", 2);
|
|
4154
|
+
__decorateClass([
|
|
4155
|
+
Column47({ name: "currency", type: "varchar", nullable: true })
|
|
4156
|
+
], Transaction.prototype, "currency", 2);
|
|
4157
|
+
__decorateClass([
|
|
4158
|
+
Column47({ name: "type", type: "enum", enum: TransactionTypeEnum })
|
|
4159
|
+
], Transaction.prototype, "type", 2);
|
|
4160
|
+
__decorateClass([
|
|
4161
|
+
Column47({ name: "status", type: "enum", enum: TransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4162
|
+
], Transaction.prototype, "status", 2);
|
|
4163
|
+
__decorateClass([
|
|
4164
|
+
Column47({ name: "stripe_reference_id", type: "varchar", nullable: true })
|
|
4165
|
+
], Transaction.prototype, "stripeReferenceId", 2);
|
|
4166
|
+
__decorateClass([
|
|
4167
|
+
Column47({ name: "description", type: "text", nullable: true })
|
|
4168
|
+
], Transaction.prototype, "description", 2);
|
|
4169
|
+
Transaction = __decorateClass([
|
|
4170
|
+
Entity46("transactions")
|
|
4171
|
+
], Transaction);
|
|
4172
|
+
|
|
4173
|
+
// src/entities/wallet-details.entity.ts
|
|
4174
|
+
var AccountTypeEnum = /* @__PURE__ */ ((AccountTypeEnum2) => {
|
|
4175
|
+
AccountTypeEnum2["BUSINESS"] = "BUSINESS";
|
|
4176
|
+
AccountTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
4177
|
+
return AccountTypeEnum2;
|
|
4178
|
+
})(AccountTypeEnum || {});
|
|
4179
|
+
var WalletDetail = class extends BaseEntity {
|
|
4180
|
+
};
|
|
4181
|
+
__decorateClass([
|
|
4182
|
+
Column48({ name: "user_id", type: "integer", nullable: true }),
|
|
4183
|
+
Index40()
|
|
4184
|
+
], WalletDetail.prototype, "userId", 2);
|
|
4185
|
+
__decorateClass([
|
|
4186
|
+
OneToOne2(() => User, (user) => user.walletDetail),
|
|
4187
|
+
JoinColumn42({ name: "user_id" })
|
|
4188
|
+
], WalletDetail.prototype, "user", 2);
|
|
4189
|
+
__decorateClass([
|
|
4190
|
+
Column48({ name: "name", type: "varchar", nullable: true })
|
|
4191
|
+
], WalletDetail.prototype, "name", 2);
|
|
4192
|
+
__decorateClass([
|
|
4193
|
+
Column48({ name: "email", type: "varchar", nullable: true })
|
|
4194
|
+
], WalletDetail.prototype, "email", 2);
|
|
4195
|
+
__decorateClass([
|
|
4196
|
+
Column48({ name: "account_type", type: "enum", enum: AccountTypeEnum, nullable: true })
|
|
4197
|
+
], WalletDetail.prototype, "accountType", 2);
|
|
4198
|
+
__decorateClass([
|
|
4199
|
+
Column48({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
4200
|
+
], WalletDetail.prototype, "stripeAccountId", 2);
|
|
4201
|
+
__decorateClass([
|
|
4202
|
+
Column48({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
4203
|
+
], WalletDetail.prototype, "stripeCustomerId", 2);
|
|
4204
|
+
__decorateClass([
|
|
4205
|
+
Column48({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4206
|
+
], WalletDetail.prototype, "walletBalance", 2);
|
|
4207
|
+
__decorateClass([
|
|
4208
|
+
Column48({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
4209
|
+
], WalletDetail.prototype, "stripeMetadata", 2);
|
|
4210
|
+
__decorateClass([
|
|
4211
|
+
OneToMany16(() => Transaction, (transaction) => transaction.walletDetail)
|
|
4212
|
+
], WalletDetail.prototype, "transactions", 2);
|
|
4213
|
+
WalletDetail = __decorateClass([
|
|
4214
|
+
Entity47("wallet_details")
|
|
4215
|
+
], WalletDetail);
|
|
4216
|
+
|
|
4122
4217
|
// src/entities/user.entity.ts
|
|
4123
4218
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
4124
4219
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -4144,51 +4239,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
4144
4239
|
var User = class extends BaseEntity {
|
|
4145
4240
|
};
|
|
4146
4241
|
__decorateClass([
|
|
4147
|
-
|
|
4242
|
+
Column49({ name: "unique_id", type: "varchar", unique: true })
|
|
4148
4243
|
], User.prototype, "uniqueId", 2);
|
|
4149
4244
|
__decorateClass([
|
|
4150
|
-
|
|
4151
|
-
|
|
4245
|
+
Column49({ name: "parent_id", type: "integer", nullable: true }),
|
|
4246
|
+
Index41()
|
|
4152
4247
|
], User.prototype, "parentId", 2);
|
|
4153
4248
|
__decorateClass([
|
|
4154
|
-
|
|
4155
|
-
|
|
4249
|
+
ManyToOne42(() => User, (user) => user.children, { nullable: true }),
|
|
4250
|
+
JoinColumn43({ name: "parent_id" })
|
|
4156
4251
|
], User.prototype, "parent", 2);
|
|
4157
4252
|
__decorateClass([
|
|
4158
|
-
|
|
4253
|
+
OneToMany17(() => User, (user) => user.parent)
|
|
4159
4254
|
], User.prototype, "children", 2);
|
|
4160
4255
|
__decorateClass([
|
|
4161
|
-
|
|
4256
|
+
Column49({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
4162
4257
|
], User.prototype, "username", 2);
|
|
4163
4258
|
__decorateClass([
|
|
4164
|
-
|
|
4259
|
+
Column49({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
4165
4260
|
], User.prototype, "firstName", 2);
|
|
4166
4261
|
__decorateClass([
|
|
4167
|
-
|
|
4262
|
+
Column49({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
4168
4263
|
], User.prototype, "lastName", 2);
|
|
4169
4264
|
__decorateClass([
|
|
4170
|
-
|
|
4265
|
+
Column49({ name: "date_of_birth", type: "date", nullable: true })
|
|
4171
4266
|
], User.prototype, "dateOfBirth", 2);
|
|
4172
4267
|
__decorateClass([
|
|
4173
|
-
|
|
4268
|
+
Column49({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
4174
4269
|
], User.prototype, "gender", 2);
|
|
4175
4270
|
__decorateClass([
|
|
4176
|
-
|
|
4271
|
+
Column49({ name: "profile_picture_url", type: "text", nullable: true })
|
|
4177
4272
|
], User.prototype, "profilePictureUrl", 2);
|
|
4178
4273
|
__decorateClass([
|
|
4179
|
-
|
|
4274
|
+
Column49({ name: "email", type: "varchar", unique: true })
|
|
4180
4275
|
], User.prototype, "email", 2);
|
|
4181
4276
|
__decorateClass([
|
|
4182
|
-
|
|
4277
|
+
Column49({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4183
4278
|
], User.prototype, "mobileCode", 2);
|
|
4184
4279
|
__decorateClass([
|
|
4185
|
-
|
|
4280
|
+
Column49({ name: "mobile", type: "varchar", nullable: true })
|
|
4186
4281
|
], User.prototype, "mobile", 2);
|
|
4187
4282
|
__decorateClass([
|
|
4188
|
-
|
|
4283
|
+
Column49({ name: "password", type: "varchar", nullable: true })
|
|
4189
4284
|
], User.prototype, "password", 2);
|
|
4190
4285
|
__decorateClass([
|
|
4191
|
-
|
|
4286
|
+
Column49({
|
|
4192
4287
|
name: "account_type",
|
|
4193
4288
|
type: "enum",
|
|
4194
4289
|
enum: AccountType,
|
|
@@ -4196,7 +4291,7 @@ __decorateClass([
|
|
|
4196
4291
|
})
|
|
4197
4292
|
], User.prototype, "accountType", 2);
|
|
4198
4293
|
__decorateClass([
|
|
4199
|
-
|
|
4294
|
+
Column49({
|
|
4200
4295
|
name: "account_status",
|
|
4201
4296
|
type: "enum",
|
|
4202
4297
|
enum: AccountStatus,
|
|
@@ -4204,42 +4299,42 @@ __decorateClass([
|
|
|
4204
4299
|
})
|
|
4205
4300
|
], User.prototype, "accountStatus", 2);
|
|
4206
4301
|
__decorateClass([
|
|
4207
|
-
|
|
4302
|
+
Column49({ name: "is_email_verified", type: "boolean", default: false })
|
|
4208
4303
|
], User.prototype, "isEmailVerified", 2);
|
|
4209
4304
|
__decorateClass([
|
|
4210
|
-
|
|
4305
|
+
Column49({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
4211
4306
|
], User.prototype, "isMobileVerified", 2);
|
|
4212
4307
|
__decorateClass([
|
|
4213
|
-
|
|
4308
|
+
Column49({ name: "is_social", type: "boolean", default: false })
|
|
4214
4309
|
], User.prototype, "isSocial", 2);
|
|
4215
4310
|
__decorateClass([
|
|
4216
|
-
|
|
4311
|
+
Column49({
|
|
4217
4312
|
name: "last_login_at",
|
|
4218
4313
|
type: "timestamp with time zone",
|
|
4219
4314
|
nullable: true
|
|
4220
4315
|
})
|
|
4221
4316
|
], User.prototype, "lastLoginAt", 2);
|
|
4222
4317
|
__decorateClass([
|
|
4223
|
-
|
|
4318
|
+
Column49({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
4224
4319
|
], User.prototype, "lastLoginIp", 2);
|
|
4225
4320
|
__decorateClass([
|
|
4226
|
-
|
|
4321
|
+
Column49({ name: "reset_token", type: "varchar", nullable: true })
|
|
4227
4322
|
], User.prototype, "resetToken", 2);
|
|
4228
4323
|
__decorateClass([
|
|
4229
|
-
|
|
4324
|
+
Column49({
|
|
4230
4325
|
name: "reset_token_expire_at",
|
|
4231
4326
|
type: "timestamp with time zone",
|
|
4232
4327
|
nullable: true
|
|
4233
4328
|
})
|
|
4234
4329
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
4235
4330
|
__decorateClass([
|
|
4236
|
-
|
|
4331
|
+
Column49({ name: "set_password_token", type: "varchar", nullable: true })
|
|
4237
4332
|
], User.prototype, "setPasswordToken", 2);
|
|
4238
4333
|
__decorateClass([
|
|
4239
|
-
|
|
4334
|
+
OneToMany17(() => RefreshToken, (token) => token.user)
|
|
4240
4335
|
], User.prototype, "refreshTokens", 2);
|
|
4241
4336
|
__decorateClass([
|
|
4242
|
-
|
|
4337
|
+
Column49({
|
|
4243
4338
|
name: "provider",
|
|
4244
4339
|
type: "enum",
|
|
4245
4340
|
enum: Provider,
|
|
@@ -4248,154 +4343,157 @@ __decorateClass([
|
|
|
4248
4343
|
})
|
|
4249
4344
|
], User.prototype, "provider", 2);
|
|
4250
4345
|
__decorateClass([
|
|
4251
|
-
|
|
4346
|
+
Column49({ name: "provider_token", type: "varchar", nullable: true })
|
|
4252
4347
|
], User.prototype, "providerToken", 2);
|
|
4253
4348
|
__decorateClass([
|
|
4254
|
-
|
|
4349
|
+
Column49({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
4255
4350
|
], User.prototype, "linkedInId", 2);
|
|
4256
4351
|
__decorateClass([
|
|
4257
|
-
|
|
4352
|
+
Column49({ name: "google_id", type: "varchar", nullable: true })
|
|
4258
4353
|
], User.prototype, "googleId", 2);
|
|
4259
4354
|
__decorateClass([
|
|
4260
|
-
|
|
4355
|
+
Column49({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
4261
4356
|
], User.prototype, "gitLabsId", 2);
|
|
4262
4357
|
__decorateClass([
|
|
4263
|
-
|
|
4358
|
+
Column49({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
4264
4359
|
], User.prototype, "onBoardedBy", 2);
|
|
4265
4360
|
__decorateClass([
|
|
4266
|
-
|
|
4361
|
+
OneToMany17(() => Otp, (otp) => otp.user)
|
|
4267
4362
|
], User.prototype, "otps", 2);
|
|
4268
4363
|
__decorateClass([
|
|
4269
|
-
|
|
4364
|
+
OneToMany17(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
4270
4365
|
], User.prototype, "senseloafLogs", 2);
|
|
4271
4366
|
__decorateClass([
|
|
4272
|
-
|
|
4367
|
+
OneToOne3(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
4273
4368
|
], User.prototype, "companyProfile", 2);
|
|
4274
4369
|
__decorateClass([
|
|
4275
|
-
|
|
4370
|
+
OneToMany17(() => CompanySkill, (companySkill) => companySkill.user)
|
|
4276
4371
|
], User.prototype, "companySkills", 2);
|
|
4277
4372
|
__decorateClass([
|
|
4278
|
-
|
|
4373
|
+
OneToMany17(
|
|
4279
4374
|
() => CompanyMemberRole,
|
|
4280
4375
|
(companyMemberRole) => companyMemberRole.user
|
|
4281
4376
|
)
|
|
4282
4377
|
], User.prototype, "companyMemberRoles", 2);
|
|
4283
4378
|
__decorateClass([
|
|
4284
|
-
|
|
4379
|
+
OneToMany17(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
4285
4380
|
], User.prototype, "companyAiInterview", 2);
|
|
4286
4381
|
__decorateClass([
|
|
4287
|
-
|
|
4382
|
+
OneToMany17(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
4288
4383
|
], User.prototype, "clientF2FInterviews", 2);
|
|
4289
4384
|
__decorateClass([
|
|
4290
|
-
|
|
4385
|
+
OneToOne3(
|
|
4291
4386
|
() => FreelancerProfile,
|
|
4292
4387
|
(freelancerProfile) => freelancerProfile.user
|
|
4293
4388
|
)
|
|
4294
4389
|
], User.prototype, "freelancerProfile", 2);
|
|
4295
4390
|
__decorateClass([
|
|
4296
|
-
|
|
4391
|
+
OneToOne3(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
4297
4392
|
], User.prototype, "freelancerResume", 2);
|
|
4298
4393
|
__decorateClass([
|
|
4299
|
-
|
|
4394
|
+
OneToMany17(
|
|
4300
4395
|
() => FreelancerAssessment,
|
|
4301
4396
|
(freelancerAssessment) => freelancerAssessment.user
|
|
4302
4397
|
)
|
|
4303
4398
|
], User.prototype, "assessments", 2);
|
|
4304
4399
|
__decorateClass([
|
|
4305
|
-
|
|
4400
|
+
OneToMany17(
|
|
4306
4401
|
() => AssessmentAnswer,
|
|
4307
4402
|
(assessmentAnswer) => assessmentAnswer.user
|
|
4308
4403
|
)
|
|
4309
4404
|
], User.prototype, "assessmentAnswers", 2);
|
|
4310
4405
|
__decorateClass([
|
|
4311
|
-
|
|
4406
|
+
OneToMany17(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
4312
4407
|
], User.prototype, "freelancerSkills", 2);
|
|
4313
4408
|
__decorateClass([
|
|
4314
|
-
|
|
4409
|
+
OneToMany17(
|
|
4315
4410
|
() => FreelancerExperience,
|
|
4316
4411
|
(freelancerExperience) => freelancerExperience.user
|
|
4317
4412
|
)
|
|
4318
4413
|
], User.prototype, "freelancerExperience", 2);
|
|
4319
4414
|
__decorateClass([
|
|
4320
|
-
|
|
4415
|
+
OneToMany17(
|
|
4321
4416
|
() => FreelancerEducation,
|
|
4322
4417
|
(freelancerEducation) => freelancerEducation.user
|
|
4323
4418
|
)
|
|
4324
4419
|
], User.prototype, "freelancerEducation", 2);
|
|
4325
4420
|
__decorateClass([
|
|
4326
|
-
|
|
4421
|
+
OneToMany17(
|
|
4327
4422
|
() => FreelancerProject,
|
|
4328
4423
|
(freelancerProject) => freelancerProject.user
|
|
4329
4424
|
)
|
|
4330
4425
|
], User.prototype, "freelancerProject", 2);
|
|
4331
4426
|
__decorateClass([
|
|
4332
|
-
|
|
4427
|
+
OneToMany17(
|
|
4333
4428
|
() => FreelancerCaseStudy,
|
|
4334
4429
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
4335
4430
|
)
|
|
4336
4431
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
4337
4432
|
__decorateClass([
|
|
4338
|
-
|
|
4433
|
+
OneToMany17(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
4339
4434
|
], User.prototype, "freelancerTool", 2);
|
|
4340
4435
|
__decorateClass([
|
|
4341
|
-
|
|
4436
|
+
OneToMany17(
|
|
4342
4437
|
() => FreelancerFramework,
|
|
4343
4438
|
(freelancerFramework) => freelancerFramework.user
|
|
4344
4439
|
)
|
|
4345
4440
|
], User.prototype, "freelancerFramework", 2);
|
|
4346
4441
|
__decorateClass([
|
|
4347
|
-
|
|
4442
|
+
OneToOne3(
|
|
4348
4443
|
() => FreelancerDeclaration,
|
|
4349
4444
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
4350
4445
|
)
|
|
4351
4446
|
], User.prototype, "freelancerDeclaration", 2);
|
|
4352
4447
|
__decorateClass([
|
|
4353
|
-
|
|
4448
|
+
OneToMany17(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
4354
4449
|
], User.prototype, "freelancerAiInterview", 2);
|
|
4355
4450
|
__decorateClass([
|
|
4356
|
-
|
|
4451
|
+
OneToMany17(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
4357
4452
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
4358
4453
|
__decorateClass([
|
|
4359
|
-
|
|
4454
|
+
OneToMany17(
|
|
4360
4455
|
() => F2fInterviewRescheduleRequest,
|
|
4361
4456
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
4362
4457
|
)
|
|
4363
4458
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
4364
4459
|
__decorateClass([
|
|
4365
|
-
|
|
4460
|
+
OneToMany17(() => Job, (job) => job.user)
|
|
4366
4461
|
], User.prototype, "jobs", 2);
|
|
4367
4462
|
__decorateClass([
|
|
4368
|
-
|
|
4463
|
+
OneToMany17(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
4369
4464
|
], User.prototype, "jobApplications", 2);
|
|
4370
4465
|
__decorateClass([
|
|
4371
|
-
|
|
4466
|
+
OneToMany17(() => Interview, (interview) => interview.user)
|
|
4372
4467
|
], User.prototype, "interviews", 2);
|
|
4373
4468
|
__decorateClass([
|
|
4374
|
-
|
|
4469
|
+
OneToMany17(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
4375
4470
|
], User.prototype, "bankDetail", 2);
|
|
4376
4471
|
__decorateClass([
|
|
4377
|
-
|
|
4472
|
+
OneToMany17(
|
|
4378
4473
|
() => SystemPreference,
|
|
4379
4474
|
(systemPreference) => systemPreference.user
|
|
4380
4475
|
)
|
|
4381
4476
|
], User.prototype, "systemPreference", 2);
|
|
4382
4477
|
__decorateClass([
|
|
4383
|
-
|
|
4478
|
+
OneToMany17(() => Rating, (rating) => rating.reviewer)
|
|
4384
4479
|
], User.prototype, "givenRatings", 2);
|
|
4385
4480
|
__decorateClass([
|
|
4386
|
-
|
|
4481
|
+
OneToMany17(() => Rating, (rating) => rating.reviewee)
|
|
4387
4482
|
], User.prototype, "receivedRatings", 2);
|
|
4388
4483
|
__decorateClass([
|
|
4389
|
-
|
|
4484
|
+
OneToMany17(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
4390
4485
|
], User.prototype, "adminUserRoles", 2);
|
|
4391
4486
|
__decorateClass([
|
|
4392
|
-
|
|
4487
|
+
OneToMany17(() => Contract, (contract) => contract.client)
|
|
4393
4488
|
], User.prototype, "clientContracts", 2);
|
|
4394
4489
|
__decorateClass([
|
|
4395
|
-
|
|
4490
|
+
OneToMany17(() => Contract, (contract) => contract.freelancer)
|
|
4396
4491
|
], User.prototype, "freelancerContracts", 2);
|
|
4492
|
+
__decorateClass([
|
|
4493
|
+
OneToOne3(() => WalletDetail, (walletDetail) => walletDetail.user)
|
|
4494
|
+
], User.prototype, "walletDetail", 2);
|
|
4397
4495
|
User = __decorateClass([
|
|
4398
|
-
|
|
4496
|
+
Entity48("users")
|
|
4399
4497
|
], User);
|
|
4400
4498
|
|
|
4401
4499
|
// src/entities/rating.entity.ts
|
|
@@ -4407,36 +4505,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
4407
4505
|
var Rating = class extends BaseEntity {
|
|
4408
4506
|
};
|
|
4409
4507
|
__decorateClass([
|
|
4410
|
-
|
|
4411
|
-
|
|
4508
|
+
Column50({ name: "reviewer_id", type: "integer" }),
|
|
4509
|
+
Index42()
|
|
4412
4510
|
], Rating.prototype, "reviewer_id", 2);
|
|
4413
4511
|
__decorateClass([
|
|
4414
|
-
|
|
4415
|
-
|
|
4512
|
+
ManyToOne43(() => User, { onDelete: "CASCADE" }),
|
|
4513
|
+
JoinColumn44({ name: "reviewer_id" })
|
|
4416
4514
|
], Rating.prototype, "reviewer", 2);
|
|
4417
4515
|
__decorateClass([
|
|
4418
|
-
|
|
4419
|
-
|
|
4516
|
+
Column50({ name: "reviewee_id", type: "integer" }),
|
|
4517
|
+
Index42()
|
|
4420
4518
|
], Rating.prototype, "reviewee_id", 2);
|
|
4421
4519
|
__decorateClass([
|
|
4422
|
-
|
|
4423
|
-
|
|
4520
|
+
ManyToOne43(() => User, { onDelete: "CASCADE" }),
|
|
4521
|
+
JoinColumn44({ name: "reviewee_id" })
|
|
4424
4522
|
], Rating.prototype, "reviewee", 2);
|
|
4425
4523
|
__decorateClass([
|
|
4426
|
-
|
|
4524
|
+
Column50({
|
|
4427
4525
|
type: "enum",
|
|
4428
4526
|
enum: RatingTypeEnum,
|
|
4429
4527
|
nullable: true
|
|
4430
4528
|
})
|
|
4431
4529
|
], Rating.prototype, "ratingType", 2);
|
|
4432
4530
|
__decorateClass([
|
|
4433
|
-
|
|
4531
|
+
Column50({ type: "integer", nullable: true })
|
|
4434
4532
|
], Rating.prototype, "rating", 2);
|
|
4435
4533
|
__decorateClass([
|
|
4436
|
-
|
|
4534
|
+
Column50({ type: "text", nullable: true })
|
|
4437
4535
|
], Rating.prototype, "review", 2);
|
|
4438
4536
|
Rating = __decorateClass([
|
|
4439
|
-
|
|
4537
|
+
Entity49("ratings")
|
|
4440
4538
|
], Rating);
|
|
4441
4539
|
|
|
4442
4540
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -5963,11 +6061,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5963
6061
|
};
|
|
5964
6062
|
|
|
5965
6063
|
// src/entities/sequence-generator.entity.ts
|
|
5966
|
-
import { Entity as
|
|
6064
|
+
import { Entity as Entity50, Column as Column51 } from "typeorm";
|
|
5967
6065
|
var SequenceGenerator = class extends BaseEntity {
|
|
5968
6066
|
};
|
|
5969
6067
|
__decorateClass([
|
|
5970
|
-
|
|
6068
|
+
Column51({
|
|
5971
6069
|
name: "module",
|
|
5972
6070
|
type: "varchar",
|
|
5973
6071
|
length: 50,
|
|
@@ -5976,7 +6074,7 @@ __decorateClass([
|
|
|
5976
6074
|
})
|
|
5977
6075
|
], SequenceGenerator.prototype, "module", 2);
|
|
5978
6076
|
__decorateClass([
|
|
5979
|
-
|
|
6077
|
+
Column51({
|
|
5980
6078
|
name: "prefix",
|
|
5981
6079
|
type: "varchar",
|
|
5982
6080
|
length: 10,
|
|
@@ -5985,7 +6083,7 @@ __decorateClass([
|
|
|
5985
6083
|
})
|
|
5986
6084
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5987
6085
|
__decorateClass([
|
|
5988
|
-
|
|
6086
|
+
Column51({
|
|
5989
6087
|
name: "last_sequence",
|
|
5990
6088
|
type: "int",
|
|
5991
6089
|
nullable: false,
|
|
@@ -5993,7 +6091,7 @@ __decorateClass([
|
|
|
5993
6091
|
})
|
|
5994
6092
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5995
6093
|
__decorateClass([
|
|
5996
|
-
|
|
6094
|
+
Column51({
|
|
5997
6095
|
name: "year",
|
|
5998
6096
|
type: "int",
|
|
5999
6097
|
nullable: true,
|
|
@@ -6001,11 +6099,11 @@ __decorateClass([
|
|
|
6001
6099
|
})
|
|
6002
6100
|
], SequenceGenerator.prototype, "year", 2);
|
|
6003
6101
|
SequenceGenerator = __decorateClass([
|
|
6004
|
-
|
|
6102
|
+
Entity50("sequence_generators")
|
|
6005
6103
|
], SequenceGenerator);
|
|
6006
6104
|
|
|
6007
6105
|
// src/entities/question.entity.ts
|
|
6008
|
-
import { Entity as
|
|
6106
|
+
import { Entity as Entity51, Column as Column52 } from "typeorm";
|
|
6009
6107
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
6010
6108
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
6011
6109
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -6014,16 +6112,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
6014
6112
|
var Question = class extends BaseEntity {
|
|
6015
6113
|
};
|
|
6016
6114
|
__decorateClass([
|
|
6017
|
-
|
|
6115
|
+
Column52({ name: "question", type: "varchar" })
|
|
6018
6116
|
], Question.prototype, "question", 2);
|
|
6019
6117
|
__decorateClass([
|
|
6020
|
-
|
|
6118
|
+
Column52({ name: "hint", type: "varchar", nullable: true })
|
|
6021
6119
|
], Question.prototype, "hint", 2);
|
|
6022
6120
|
__decorateClass([
|
|
6023
|
-
|
|
6121
|
+
Column52({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6024
6122
|
], Question.prototype, "slug", 2);
|
|
6025
6123
|
__decorateClass([
|
|
6026
|
-
|
|
6124
|
+
Column52({
|
|
6027
6125
|
name: "question_for",
|
|
6028
6126
|
type: "enum",
|
|
6029
6127
|
enum: QuestionFor,
|
|
@@ -6031,119 +6129,119 @@ __decorateClass([
|
|
|
6031
6129
|
})
|
|
6032
6130
|
], Question.prototype, "questionFor", 2);
|
|
6033
6131
|
__decorateClass([
|
|
6034
|
-
|
|
6132
|
+
Column52({ name: "type", type: "varchar", nullable: true })
|
|
6035
6133
|
], Question.prototype, "type", 2);
|
|
6036
6134
|
__decorateClass([
|
|
6037
|
-
|
|
6135
|
+
Column52({ name: "options", type: "jsonb", nullable: true })
|
|
6038
6136
|
], Question.prototype, "options", 2);
|
|
6039
6137
|
__decorateClass([
|
|
6040
|
-
|
|
6138
|
+
Column52({ name: "is_active", type: "boolean", default: false })
|
|
6041
6139
|
], Question.prototype, "isActive", 2);
|
|
6042
6140
|
Question = __decorateClass([
|
|
6043
|
-
|
|
6141
|
+
Entity51("questions")
|
|
6044
6142
|
], Question);
|
|
6045
6143
|
|
|
6046
6144
|
// src/entities/skill.entity.ts
|
|
6047
|
-
import { Entity as
|
|
6145
|
+
import { Entity as Entity52, Column as Column53 } from "typeorm";
|
|
6048
6146
|
var Skill = class extends BaseEntity {
|
|
6049
6147
|
};
|
|
6050
6148
|
__decorateClass([
|
|
6051
|
-
|
|
6149
|
+
Column53({ name: "name", type: "varchar", nullable: true })
|
|
6052
6150
|
], Skill.prototype, "name", 2);
|
|
6053
6151
|
__decorateClass([
|
|
6054
|
-
|
|
6152
|
+
Column53({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6055
6153
|
], Skill.prototype, "slug", 2);
|
|
6056
6154
|
__decorateClass([
|
|
6057
|
-
|
|
6155
|
+
Column53({ name: "is_active", type: "boolean", default: false })
|
|
6058
6156
|
], Skill.prototype, "isActive", 2);
|
|
6059
6157
|
Skill = __decorateClass([
|
|
6060
|
-
|
|
6158
|
+
Entity52("skills")
|
|
6061
6159
|
], Skill);
|
|
6062
6160
|
|
|
6063
6161
|
// src/entities/job-role.entity.ts
|
|
6064
|
-
import { Entity as
|
|
6162
|
+
import { Entity as Entity53, Column as Column54 } from "typeorm";
|
|
6065
6163
|
var JobRoles = class extends BaseEntity {
|
|
6066
6164
|
};
|
|
6067
6165
|
__decorateClass([
|
|
6068
|
-
|
|
6166
|
+
Column54({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6069
6167
|
], JobRoles.prototype, "slug", 2);
|
|
6070
6168
|
__decorateClass([
|
|
6071
|
-
|
|
6169
|
+
Column54({ name: "name", type: "varchar", nullable: true })
|
|
6072
6170
|
], JobRoles.prototype, "name", 2);
|
|
6073
6171
|
__decorateClass([
|
|
6074
|
-
|
|
6172
|
+
Column54({ name: "is_active", type: "boolean", default: true })
|
|
6075
6173
|
], JobRoles.prototype, "isActive", 2);
|
|
6076
6174
|
JobRoles = __decorateClass([
|
|
6077
|
-
|
|
6175
|
+
Entity53("job_roles")
|
|
6078
6176
|
], JobRoles);
|
|
6079
6177
|
|
|
6080
6178
|
// src/entities/plan.entity.ts
|
|
6081
|
-
import { Entity as
|
|
6179
|
+
import { Entity as Entity55, Column as Column56, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
6082
6180
|
|
|
6083
6181
|
// src/entities/feature.entity.ts
|
|
6084
|
-
import { Entity as
|
|
6182
|
+
import { Entity as Entity54, Column as Column55, ManyToMany as ManyToMany2 } from "typeorm";
|
|
6085
6183
|
var Feature = class extends BaseEntity {
|
|
6086
6184
|
};
|
|
6087
6185
|
__decorateClass([
|
|
6088
|
-
|
|
6186
|
+
Column55({ name: "name", type: "varchar", unique: true })
|
|
6089
6187
|
], Feature.prototype, "name", 2);
|
|
6090
6188
|
__decorateClass([
|
|
6091
6189
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
6092
6190
|
], Feature.prototype, "plans", 2);
|
|
6093
6191
|
Feature = __decorateClass([
|
|
6094
|
-
|
|
6192
|
+
Entity54("features")
|
|
6095
6193
|
], Feature);
|
|
6096
6194
|
|
|
6097
6195
|
// src/entities/plan.entity.ts
|
|
6098
6196
|
var Plan = class extends BaseEntity {
|
|
6099
6197
|
};
|
|
6100
6198
|
__decorateClass([
|
|
6101
|
-
|
|
6199
|
+
Column56({ name: "name", type: "varchar", unique: true })
|
|
6102
6200
|
], Plan.prototype, "name", 2);
|
|
6103
6201
|
__decorateClass([
|
|
6104
|
-
|
|
6202
|
+
Column56({ name: "description", type: "varchar", nullable: true })
|
|
6105
6203
|
], Plan.prototype, "description", 2);
|
|
6106
6204
|
__decorateClass([
|
|
6107
|
-
|
|
6205
|
+
Column56({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
6108
6206
|
], Plan.prototype, "price", 2);
|
|
6109
6207
|
__decorateClass([
|
|
6110
|
-
|
|
6208
|
+
Column56({ name: "billing_period", type: "varchar" })
|
|
6111
6209
|
], Plan.prototype, "billingPeriod", 2);
|
|
6112
6210
|
__decorateClass([
|
|
6113
|
-
|
|
6211
|
+
Column56({ name: "is_current", type: "boolean", default: false })
|
|
6114
6212
|
], Plan.prototype, "isCurrent", 2);
|
|
6115
6213
|
__decorateClass([
|
|
6116
6214
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
6117
6215
|
JoinTable()
|
|
6118
6216
|
], Plan.prototype, "features", 2);
|
|
6119
6217
|
Plan = __decorateClass([
|
|
6120
|
-
|
|
6218
|
+
Entity55("plans")
|
|
6121
6219
|
], Plan);
|
|
6122
6220
|
|
|
6123
6221
|
// src/entities/cms.entity.ts
|
|
6124
|
-
import { Entity as
|
|
6222
|
+
import { Entity as Entity56, Column as Column57 } from "typeorm";
|
|
6125
6223
|
var Cms = class extends BaseEntity {
|
|
6126
6224
|
};
|
|
6127
6225
|
__decorateClass([
|
|
6128
|
-
|
|
6226
|
+
Column57({ name: "title", type: "varchar", nullable: true })
|
|
6129
6227
|
], Cms.prototype, "title", 2);
|
|
6130
6228
|
__decorateClass([
|
|
6131
|
-
|
|
6229
|
+
Column57({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6132
6230
|
], Cms.prototype, "slug", 2);
|
|
6133
6231
|
__decorateClass([
|
|
6134
|
-
|
|
6232
|
+
Column57({ name: "content", type: "varchar", nullable: true })
|
|
6135
6233
|
], Cms.prototype, "content", 2);
|
|
6136
6234
|
__decorateClass([
|
|
6137
|
-
|
|
6235
|
+
Column57({ name: "is_active", type: "boolean", default: true })
|
|
6138
6236
|
], Cms.prototype, "isActive", 2);
|
|
6139
6237
|
Cms = __decorateClass([
|
|
6140
|
-
|
|
6238
|
+
Entity56("cms")
|
|
6141
6239
|
], Cms);
|
|
6142
6240
|
|
|
6143
6241
|
// src/entities/lead.entity.ts
|
|
6144
6242
|
import {
|
|
6145
|
-
Entity as
|
|
6146
|
-
Column as
|
|
6243
|
+
Entity as Entity57,
|
|
6244
|
+
Column as Column58
|
|
6147
6245
|
} from "typeorm";
|
|
6148
6246
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
6149
6247
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -6153,22 +6251,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
6153
6251
|
var Lead = class extends BaseEntity {
|
|
6154
6252
|
};
|
|
6155
6253
|
__decorateClass([
|
|
6156
|
-
|
|
6254
|
+
Column58({ name: "name", type: "varchar", nullable: true })
|
|
6157
6255
|
], Lead.prototype, "name", 2);
|
|
6158
6256
|
__decorateClass([
|
|
6159
|
-
|
|
6257
|
+
Column58({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6160
6258
|
], Lead.prototype, "mobileCode", 2);
|
|
6161
6259
|
__decorateClass([
|
|
6162
|
-
|
|
6260
|
+
Column58({ name: "mobile", type: "varchar", nullable: true })
|
|
6163
6261
|
], Lead.prototype, "mobile", 2);
|
|
6164
6262
|
__decorateClass([
|
|
6165
|
-
|
|
6263
|
+
Column58({ name: "email", type: "varchar", nullable: true })
|
|
6166
6264
|
], Lead.prototype, "email", 2);
|
|
6167
6265
|
__decorateClass([
|
|
6168
|
-
|
|
6266
|
+
Column58({ name: "description", type: "varchar", nullable: true })
|
|
6169
6267
|
], Lead.prototype, "description", 2);
|
|
6170
6268
|
__decorateClass([
|
|
6171
|
-
|
|
6269
|
+
Column58({
|
|
6172
6270
|
name: "category",
|
|
6173
6271
|
type: "enum",
|
|
6174
6272
|
enum: CategoryEmum,
|
|
@@ -6176,7 +6274,7 @@ __decorateClass([
|
|
|
6176
6274
|
})
|
|
6177
6275
|
], Lead.prototype, "category", 2);
|
|
6178
6276
|
Lead = __decorateClass([
|
|
6179
|
-
|
|
6277
|
+
Entity57("leads")
|
|
6180
6278
|
], Lead);
|
|
6181
6279
|
|
|
6182
6280
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -6417,7 +6515,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
6417
6515
|
], ClientFreelancerRecommendation);
|
|
6418
6516
|
|
|
6419
6517
|
// src/entities/commission.entity.ts
|
|
6420
|
-
import { Entity as
|
|
6518
|
+
import { Entity as Entity58, Column as Column59 } from "typeorm";
|
|
6421
6519
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
6422
6520
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
6423
6521
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -6426,7 +6524,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
6426
6524
|
var Commission = class extends BaseEntity {
|
|
6427
6525
|
};
|
|
6428
6526
|
__decorateClass([
|
|
6429
|
-
|
|
6527
|
+
Column59({
|
|
6430
6528
|
name: "freelancer_commission_type",
|
|
6431
6529
|
type: "enum",
|
|
6432
6530
|
enum: CommissionTypeEnum,
|
|
@@ -6434,10 +6532,10 @@ __decorateClass([
|
|
|
6434
6532
|
})
|
|
6435
6533
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
6436
6534
|
__decorateClass([
|
|
6437
|
-
|
|
6535
|
+
Column59({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
6438
6536
|
], Commission.prototype, "freelancerCommission", 2);
|
|
6439
6537
|
__decorateClass([
|
|
6440
|
-
|
|
6538
|
+
Column59({
|
|
6441
6539
|
name: "client_commission_type",
|
|
6442
6540
|
type: "enum",
|
|
6443
6541
|
enum: CommissionTypeEnum,
|
|
@@ -6445,55 +6543,104 @@ __decorateClass([
|
|
|
6445
6543
|
})
|
|
6446
6544
|
], Commission.prototype, "clientCommissionType", 2);
|
|
6447
6545
|
__decorateClass([
|
|
6448
|
-
|
|
6546
|
+
Column59({ name: "client_commission", type: "integer", default: 0 })
|
|
6449
6547
|
], Commission.prototype, "clientCommission", 2);
|
|
6450
6548
|
Commission = __decorateClass([
|
|
6451
|
-
|
|
6549
|
+
Entity58("commissions")
|
|
6452
6550
|
], Commission);
|
|
6453
6551
|
|
|
6454
6552
|
// src/entities/calendly-meeting-log.entity.ts
|
|
6455
6553
|
import {
|
|
6456
|
-
Entity as
|
|
6457
|
-
Column as
|
|
6458
|
-
Index as
|
|
6554
|
+
Entity as Entity59,
|
|
6555
|
+
Column as Column60,
|
|
6556
|
+
Index as Index43
|
|
6459
6557
|
} from "typeorm";
|
|
6460
6558
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
6461
6559
|
};
|
|
6462
6560
|
__decorateClass([
|
|
6463
|
-
|
|
6464
|
-
|
|
6561
|
+
Column60({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
6562
|
+
Index43()
|
|
6465
6563
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
6466
6564
|
__decorateClass([
|
|
6467
|
-
|
|
6565
|
+
Column60({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
6468
6566
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
6469
6567
|
__decorateClass([
|
|
6470
|
-
|
|
6568
|
+
Column60({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
6471
6569
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
6472
6570
|
CalendlyMeetingLog = __decorateClass([
|
|
6473
|
-
|
|
6571
|
+
Entity59("calendly_meeting_logs")
|
|
6474
6572
|
], CalendlyMeetingLog);
|
|
6475
6573
|
|
|
6476
6574
|
// src/entities/zoom-meeting-log.entity.ts
|
|
6477
6575
|
import {
|
|
6478
|
-
Entity as
|
|
6479
|
-
Column as
|
|
6480
|
-
Index as
|
|
6576
|
+
Entity as Entity60,
|
|
6577
|
+
Column as Column61,
|
|
6578
|
+
Index as Index44
|
|
6481
6579
|
} from "typeorm";
|
|
6482
6580
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
6483
6581
|
};
|
|
6484
6582
|
__decorateClass([
|
|
6485
|
-
|
|
6486
|
-
|
|
6583
|
+
Column61({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
6584
|
+
Index44()
|
|
6487
6585
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
6488
6586
|
__decorateClass([
|
|
6489
|
-
|
|
6587
|
+
Column61({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
6490
6588
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
6491
6589
|
__decorateClass([
|
|
6492
|
-
|
|
6590
|
+
Column61({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
6493
6591
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
6494
6592
|
ZoomMeetingLog = __decorateClass([
|
|
6495
|
-
|
|
6593
|
+
Entity60("zoom_meeting_logs")
|
|
6496
6594
|
], ZoomMeetingLog);
|
|
6595
|
+
|
|
6596
|
+
// src/entities/invoices.entity.ts
|
|
6597
|
+
import { Entity as Entity61, Column as Column62, Index as Index45, ManyToOne as ManyToOne44, JoinColumn as JoinColumn45 } from "typeorm";
|
|
6598
|
+
var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
|
|
6599
|
+
InvoiceStatusEnum2["PENDING"] = "PENDING";
|
|
6600
|
+
InvoiceStatusEnum2["PAID"] = "PAID";
|
|
6601
|
+
InvoiceStatusEnum2["FAILED"] = "FAILED";
|
|
6602
|
+
InvoiceStatusEnum2["CANCELED"] = "CANCELED";
|
|
6603
|
+
return InvoiceStatusEnum2;
|
|
6604
|
+
})(InvoiceStatusEnum || {});
|
|
6605
|
+
var Invoice = class extends BaseEntity {
|
|
6606
|
+
};
|
|
6607
|
+
__decorateClass([
|
|
6608
|
+
Column62({ name: "client_wallet_id", type: "integer", nullable: true }),
|
|
6609
|
+
Index45()
|
|
6610
|
+
], Invoice.prototype, "clientWalletId", 2);
|
|
6611
|
+
__decorateClass([
|
|
6612
|
+
ManyToOne44(() => WalletDetail),
|
|
6613
|
+
JoinColumn45({ name: "client_wallet_id" })
|
|
6614
|
+
], Invoice.prototype, "clientWallet", 2);
|
|
6615
|
+
__decorateClass([
|
|
6616
|
+
Column62({ name: "freelancer_wallet_id", type: "integer", nullable: true }),
|
|
6617
|
+
Index45()
|
|
6618
|
+
], Invoice.prototype, "freelancerWalletId", 2);
|
|
6619
|
+
__decorateClass([
|
|
6620
|
+
ManyToOne44(() => WalletDetail),
|
|
6621
|
+
JoinColumn45({ name: "freelancer_wallet_id" })
|
|
6622
|
+
], Invoice.prototype, "freelancerWallet", 2);
|
|
6623
|
+
__decorateClass([
|
|
6624
|
+
Column62({ name: "amount", type: "bigint", nullable: false })
|
|
6625
|
+
], Invoice.prototype, "amount", 2);
|
|
6626
|
+
__decorateClass([
|
|
6627
|
+
Column62({ name: "currency", type: "varchar", default: "usd" })
|
|
6628
|
+
], Invoice.prototype, "currency", 2);
|
|
6629
|
+
__decorateClass([
|
|
6630
|
+
Column62({ name: "status", type: "enum", enum: InvoiceStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6631
|
+
], Invoice.prototype, "status", 2);
|
|
6632
|
+
__decorateClass([
|
|
6633
|
+
Column62({ name: "stripe_invoice_id", type: "varchar", nullable: true })
|
|
6634
|
+
], Invoice.prototype, "stripeInvoiceId", 2);
|
|
6635
|
+
__decorateClass([
|
|
6636
|
+
Column62({ name: "stripe_invoice_pdf", type: "varchar", nullable: true })
|
|
6637
|
+
], Invoice.prototype, "stripeInvoicePdf", 2);
|
|
6638
|
+
__decorateClass([
|
|
6639
|
+
Column62({ name: "description", type: "text", nullable: true })
|
|
6640
|
+
], Invoice.prototype, "description", 2);
|
|
6641
|
+
Invoice = __decorateClass([
|
|
6642
|
+
Entity61("invoices")
|
|
6643
|
+
], Invoice);
|
|
6497
6644
|
export {
|
|
6498
6645
|
ADMIN_FREELANCER_PATTERN,
|
|
6499
6646
|
ADMIN_JOB_PATTERN,
|
|
@@ -6628,6 +6775,8 @@ export {
|
|
|
6628
6775
|
InterviewQuestion,
|
|
6629
6776
|
InterviewSkill,
|
|
6630
6777
|
InterviewStatusEnum,
|
|
6778
|
+
Invoice,
|
|
6779
|
+
InvoiceStatusEnum,
|
|
6631
6780
|
JOB_PATTERN,
|
|
6632
6781
|
JOB_ROLE_PATTERN,
|
|
6633
6782
|
Job,
|
|
@@ -6711,6 +6860,9 @@ export {
|
|
|
6711
6860
|
SystemPreferenceKey,
|
|
6712
6861
|
ToggleCompanyMemberVisibilityDto,
|
|
6713
6862
|
ToggleCompanyRoleVisibilityDto,
|
|
6863
|
+
Transaction,
|
|
6864
|
+
TransactionStatusEnum,
|
|
6865
|
+
TransactionTypeEnum,
|
|
6714
6866
|
TypeOfEmploymentEnum,
|
|
6715
6867
|
TypeOfEmploymentEnumDto,
|
|
6716
6868
|
TypeOfEmploymentEnums,
|
|
@@ -6732,5 +6884,6 @@ export {
|
|
|
6732
6884
|
UserTCPAdapter,
|
|
6733
6885
|
VerifyGuestOtpDto,
|
|
6734
6886
|
VerifyGuestOtpPurposeEnum,
|
|
6887
|
+
WalletDetail,
|
|
6735
6888
|
ZoomMeetingLog
|
|
6736
6889
|
};
|