@experts_hub/shared 1.0.692 → 1.0.695
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/index.d.ts +4 -0
- package/dist/entities/user-subscription-plan-feature.entity.d.ts +12 -0
- package/dist/entities/user-subscription-plan-pricing.entity.d.ts +19 -0
- package/dist/entities/user-subscription-plan.entity.d.ts +22 -0
- package/dist/entities/user-subscription.entity.d.ts +31 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +79 -1
- package/dist/index.d.ts +79 -1
- package/dist/index.js +607 -338
- package/dist/index.mjs +536 -274
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -988,13 +988,13 @@ import { IsEnum as IsEnum13 } from "class-validator";
|
|
|
988
988
|
|
|
989
989
|
// src/entities/user.entity.ts
|
|
990
990
|
import {
|
|
991
|
-
Entity as
|
|
992
|
-
Column as
|
|
993
|
-
OneToMany as
|
|
991
|
+
Entity as Entity78,
|
|
992
|
+
Column as Column79,
|
|
993
|
+
OneToMany as OneToMany27,
|
|
994
994
|
OneToOne as OneToOne12,
|
|
995
|
-
Index as
|
|
996
|
-
ManyToOne as
|
|
997
|
-
JoinColumn as
|
|
995
|
+
Index as Index69,
|
|
996
|
+
ManyToOne as ManyToOne73,
|
|
997
|
+
JoinColumn as JoinColumn74
|
|
998
998
|
} from "typeorm";
|
|
999
999
|
|
|
1000
1000
|
// src/entities/base.entity.ts
|
|
@@ -6245,6 +6245,258 @@ InAppNotification = __decorateClass([
|
|
|
6245
6245
|
Entity73("in_app_notifications")
|
|
6246
6246
|
], InAppNotification);
|
|
6247
6247
|
|
|
6248
|
+
// src/entities/user-subscription.entity.ts
|
|
6249
|
+
import { Entity as Entity77, Column as Column78, ManyToOne as ManyToOne72, OneToMany as OneToMany26, JoinColumn as JoinColumn73 } from "typeorm";
|
|
6250
|
+
|
|
6251
|
+
// src/entities/user-subscription-plan.entity.ts
|
|
6252
|
+
import { Entity as Entity76, Column as Column77, JoinColumn as JoinColumn72, ManyToOne as ManyToOne71, OneToMany as OneToMany25 } from "typeorm";
|
|
6253
|
+
|
|
6254
|
+
// src/entities/user-subscription-plan-feature.entity.ts
|
|
6255
|
+
import { Entity as Entity74, Column as Column75, ManyToOne as ManyToOne69, JoinColumn as JoinColumn70, Index as Index67 } from "typeorm";
|
|
6256
|
+
var UserSubscriptionPlanFeature = class extends BaseEntity {
|
|
6257
|
+
};
|
|
6258
|
+
__decorateClass([
|
|
6259
|
+
Column75({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
|
|
6260
|
+
Index67()
|
|
6261
|
+
], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlanId", 2);
|
|
6262
|
+
__decorateClass([
|
|
6263
|
+
ManyToOne69(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanFeatures, { onDelete: "CASCADE", nullable: false }),
|
|
6264
|
+
JoinColumn70({ name: "user_subscription_plan_id" })
|
|
6265
|
+
], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlan", 2);
|
|
6266
|
+
__decorateClass([
|
|
6267
|
+
Column75({ name: "plan_feature_id", type: "integer", nullable: false })
|
|
6268
|
+
], UserSubscriptionPlanFeature.prototype, "planFeatureId", 2);
|
|
6269
|
+
__decorateClass([
|
|
6270
|
+
Column75({ name: "name", type: "varchar", length: 200 })
|
|
6271
|
+
], UserSubscriptionPlanFeature.prototype, "name", 2);
|
|
6272
|
+
__decorateClass([
|
|
6273
|
+
Column75({ name: "slug", type: "varchar", length: 100 }),
|
|
6274
|
+
Index67()
|
|
6275
|
+
], UserSubscriptionPlanFeature.prototype, "slug", 2);
|
|
6276
|
+
__decorateClass([
|
|
6277
|
+
Column75({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
6278
|
+
], UserSubscriptionPlanFeature.prototype, "tooltip", 2);
|
|
6279
|
+
__decorateClass([
|
|
6280
|
+
Column75({ name: "sort_order", type: "smallint", default: 0 })
|
|
6281
|
+
], UserSubscriptionPlanFeature.prototype, "sortOrder", 2);
|
|
6282
|
+
__decorateClass([
|
|
6283
|
+
Column75({ name: "is_active", type: "boolean", default: true })
|
|
6284
|
+
], UserSubscriptionPlanFeature.prototype, "isActive", 2);
|
|
6285
|
+
UserSubscriptionPlanFeature = __decorateClass([
|
|
6286
|
+
Entity74("user_subscription_plan_features")
|
|
6287
|
+
], UserSubscriptionPlanFeature);
|
|
6288
|
+
|
|
6289
|
+
// src/entities/user-subscription-plan-pricing.entity.ts
|
|
6290
|
+
import { Entity as Entity75, Column as Column76, ManyToOne as ManyToOne70, JoinColumn as JoinColumn71, Index as Index68 } from "typeorm";
|
|
6291
|
+
var UserSubscriptionPlanPricingBillingCycleEnum = /* @__PURE__ */ ((UserSubscriptionPlanPricingBillingCycleEnum2) => {
|
|
6292
|
+
UserSubscriptionPlanPricingBillingCycleEnum2["MONTHLY"] = "MONTHLY";
|
|
6293
|
+
UserSubscriptionPlanPricingBillingCycleEnum2["YEARLY"] = "YEARLY";
|
|
6294
|
+
return UserSubscriptionPlanPricingBillingCycleEnum2;
|
|
6295
|
+
})(UserSubscriptionPlanPricingBillingCycleEnum || {});
|
|
6296
|
+
var UserSubscriptionPlanPricing = class extends BaseEntity {
|
|
6297
|
+
};
|
|
6298
|
+
__decorateClass([
|
|
6299
|
+
Column76({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
|
|
6300
|
+
Index68()
|
|
6301
|
+
], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlanId", 2);
|
|
6302
|
+
__decorateClass([
|
|
6303
|
+
ManyToOne70(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanPricing, { onDelete: "CASCADE", nullable: false }),
|
|
6304
|
+
JoinColumn71({ name: "user_subscription_plan_id" })
|
|
6305
|
+
], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlan", 2);
|
|
6306
|
+
__decorateClass([
|
|
6307
|
+
Column76({ name: "plan_pricing_id", type: "integer", nullable: false })
|
|
6308
|
+
], UserSubscriptionPlanPricing.prototype, "planPricingId", 2);
|
|
6309
|
+
__decorateClass([
|
|
6310
|
+
Column76({ name: "billing_cycle", type: "enum", enum: UserSubscriptionPlanPricingBillingCycleEnum })
|
|
6311
|
+
], UserSubscriptionPlanPricing.prototype, "billingCycle", 2);
|
|
6312
|
+
__decorateClass([
|
|
6313
|
+
Column76({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
6314
|
+
], UserSubscriptionPlanPricing.prototype, "price", 2);
|
|
6315
|
+
__decorateClass([
|
|
6316
|
+
Column76({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
6317
|
+
], UserSubscriptionPlanPricing.prototype, "originalPrice", 2);
|
|
6318
|
+
__decorateClass([
|
|
6319
|
+
Column76({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
6320
|
+
], UserSubscriptionPlanPricing.prototype, "discountPct", 2);
|
|
6321
|
+
__decorateClass([
|
|
6322
|
+
Column76({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
6323
|
+
], UserSubscriptionPlanPricing.prototype, "currency", 2);
|
|
6324
|
+
__decorateClass([
|
|
6325
|
+
Column76({ name: "is_free", type: "boolean", default: false })
|
|
6326
|
+
], UserSubscriptionPlanPricing.prototype, "isFree", 2);
|
|
6327
|
+
__decorateClass([
|
|
6328
|
+
Column76({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true })
|
|
6329
|
+
], UserSubscriptionPlanPricing.prototype, "stripePriceId", 2);
|
|
6330
|
+
__decorateClass([
|
|
6331
|
+
Column76({ name: "is_active", type: "boolean", default: true })
|
|
6332
|
+
], UserSubscriptionPlanPricing.prototype, "isActive", 2);
|
|
6333
|
+
UserSubscriptionPlanPricing = __decorateClass([
|
|
6334
|
+
Entity75("user_subscription_plan_pricings")
|
|
6335
|
+
], UserSubscriptionPlanPricing);
|
|
6336
|
+
|
|
6337
|
+
// src/entities/user-subscription-plan.entity.ts
|
|
6338
|
+
var UserSubscriptionPlanTypeEnum = /* @__PURE__ */ ((UserSubscriptionPlanTypeEnum2) => {
|
|
6339
|
+
UserSubscriptionPlanTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
6340
|
+
UserSubscriptionPlanTypeEnum2["BUSINESS"] = "BUSINESS";
|
|
6341
|
+
return UserSubscriptionPlanTypeEnum2;
|
|
6342
|
+
})(UserSubscriptionPlanTypeEnum || {});
|
|
6343
|
+
var UserSubscriptionPlan = class extends BaseEntity {
|
|
6344
|
+
};
|
|
6345
|
+
__decorateClass([
|
|
6346
|
+
Column77({ name: "user_subscription_id", type: "integer", nullable: false })
|
|
6347
|
+
], UserSubscriptionPlan.prototype, "userSubscriptionId", 2);
|
|
6348
|
+
__decorateClass([
|
|
6349
|
+
ManyToOne71(() => UserSubscription, (userSubscription) => userSubscription.userSubscriptionPlans, { onDelete: "CASCADE", nullable: false }),
|
|
6350
|
+
JoinColumn72({ name: "user_subscription_id" })
|
|
6351
|
+
], UserSubscriptionPlan.prototype, "userSubscription", 2);
|
|
6352
|
+
__decorateClass([
|
|
6353
|
+
Column77({ name: "plan_id", type: "integer", nullable: false })
|
|
6354
|
+
], UserSubscriptionPlan.prototype, "planId", 2);
|
|
6355
|
+
__decorateClass([
|
|
6356
|
+
Column77({ name: "name", type: "varchar", length: 100 })
|
|
6357
|
+
], UserSubscriptionPlan.prototype, "name", 2);
|
|
6358
|
+
__decorateClass([
|
|
6359
|
+
Column77({ name: "slug", type: "varchar", length: 100 })
|
|
6360
|
+
], UserSubscriptionPlan.prototype, "slug", 2);
|
|
6361
|
+
__decorateClass([
|
|
6362
|
+
Column77({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
6363
|
+
], UserSubscriptionPlan.prototype, "badgeLabel", 2);
|
|
6364
|
+
__decorateClass([
|
|
6365
|
+
Column77({ name: "sort_order", type: "smallint", default: 0 })
|
|
6366
|
+
], UserSubscriptionPlan.prototype, "sortOrder", 2);
|
|
6367
|
+
__decorateClass([
|
|
6368
|
+
Column77({ name: "is_active", type: "boolean", default: true })
|
|
6369
|
+
], UserSubscriptionPlan.prototype, "isActive", 2);
|
|
6370
|
+
__decorateClass([
|
|
6371
|
+
Column77({ name: "plan_type", type: "enum", enum: UserSubscriptionPlanTypeEnum, default: "BUSINESS" /* BUSINESS */ })
|
|
6372
|
+
], UserSubscriptionPlan.prototype, "planType", 2);
|
|
6373
|
+
__decorateClass([
|
|
6374
|
+
Column77({ name: "metadata", type: "jsonb", default: {} })
|
|
6375
|
+
], UserSubscriptionPlan.prototype, "metadata", 2);
|
|
6376
|
+
__decorateClass([
|
|
6377
|
+
OneToMany25(() => UserSubscriptionPlanFeature, (f) => f.userSubscriptionPlan)
|
|
6378
|
+
], UserSubscriptionPlan.prototype, "userSubscriptionPlanFeatures", 2);
|
|
6379
|
+
__decorateClass([
|
|
6380
|
+
OneToMany25(() => UserSubscriptionPlanPricing, (p) => p.userSubscriptionPlan)
|
|
6381
|
+
], UserSubscriptionPlan.prototype, "userSubscriptionPlanPricing", 2);
|
|
6382
|
+
UserSubscriptionPlan = __decorateClass([
|
|
6383
|
+
Entity76("user_subscription_plans")
|
|
6384
|
+
], UserSubscriptionPlan);
|
|
6385
|
+
|
|
6386
|
+
// src/entities/user-subscription.entity.ts
|
|
6387
|
+
var UserSubscriptionStatusEnum = /* @__PURE__ */ ((UserSubscriptionStatusEnum2) => {
|
|
6388
|
+
UserSubscriptionStatusEnum2["INCOMPLETE"] = "INCOMPLETE";
|
|
6389
|
+
UserSubscriptionStatusEnum2["INCOMPLETE_EXPIRED"] = "INCOMPLETE_EXPIRED";
|
|
6390
|
+
UserSubscriptionStatusEnum2["TRIALING"] = "TRIALING";
|
|
6391
|
+
UserSubscriptionStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
6392
|
+
UserSubscriptionStatusEnum2["PAST_DUE"] = "PAST_DUE";
|
|
6393
|
+
UserSubscriptionStatusEnum2["CANCELED"] = "CANCELED";
|
|
6394
|
+
UserSubscriptionStatusEnum2["UNPAID"] = "UNPAID";
|
|
6395
|
+
UserSubscriptionStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
6396
|
+
return UserSubscriptionStatusEnum2;
|
|
6397
|
+
})(UserSubscriptionStatusEnum || {});
|
|
6398
|
+
var UserSubscription = class extends BaseEntity {
|
|
6399
|
+
};
|
|
6400
|
+
__decorateClass([
|
|
6401
|
+
Column78({ name: "user_id", type: "integer", nullable: false })
|
|
6402
|
+
], UserSubscription.prototype, "userId", 2);
|
|
6403
|
+
__decorateClass([
|
|
6404
|
+
ManyToOne72(() => User, (user) => user.userSubscriptions, { onDelete: "CASCADE", nullable: false }),
|
|
6405
|
+
JoinColumn73({ name: "user_id" })
|
|
6406
|
+
], UserSubscription.prototype, "user", 2);
|
|
6407
|
+
__decorateClass([
|
|
6408
|
+
OneToMany26(() => UserSubscriptionPlan, (plan) => plan.userSubscription)
|
|
6409
|
+
], UserSubscription.prototype, "userSubscriptionPlans", 2);
|
|
6410
|
+
__decorateClass([
|
|
6411
|
+
Column78({ name: "subscription_amount", type: "integer", nullable: false })
|
|
6412
|
+
], UserSubscription.prototype, "subscriptionAmount", 2);
|
|
6413
|
+
__decorateClass([
|
|
6414
|
+
Column78({ name: "total_tax_amount", type: "integer", nullable: false })
|
|
6415
|
+
], UserSubscription.prototype, "totalTaxAmount", 2);
|
|
6416
|
+
__decorateClass([
|
|
6417
|
+
Column78({ name: "total_amount", type: "integer", nullable: false })
|
|
6418
|
+
], UserSubscription.prototype, "totalAmount", 2);
|
|
6419
|
+
__decorateClass([
|
|
6420
|
+
Column78({
|
|
6421
|
+
name: "status",
|
|
6422
|
+
type: "enum",
|
|
6423
|
+
enum: UserSubscriptionStatusEnum,
|
|
6424
|
+
default: "INCOMPLETE" /* INCOMPLETE */
|
|
6425
|
+
})
|
|
6426
|
+
], UserSubscription.prototype, "status", 2);
|
|
6427
|
+
__decorateClass([
|
|
6428
|
+
Column78({
|
|
6429
|
+
name: "subscription_start_date",
|
|
6430
|
+
type: "timestamptz",
|
|
6431
|
+
nullable: true
|
|
6432
|
+
})
|
|
6433
|
+
], UserSubscription.prototype, "subscriptionStartDate", 2);
|
|
6434
|
+
__decorateClass([
|
|
6435
|
+
Column78({
|
|
6436
|
+
name: "subscription_start_date_timestamp",
|
|
6437
|
+
type: "integer",
|
|
6438
|
+
nullable: true
|
|
6439
|
+
})
|
|
6440
|
+
], UserSubscription.prototype, "subscriptionStartDateTimestamp", 2);
|
|
6441
|
+
__decorateClass([
|
|
6442
|
+
Column78({
|
|
6443
|
+
name: "subscription_end_date",
|
|
6444
|
+
type: "timestamptz",
|
|
6445
|
+
nullable: true
|
|
6446
|
+
})
|
|
6447
|
+
], UserSubscription.prototype, "subscriptionEndDate", 2);
|
|
6448
|
+
__decorateClass([
|
|
6449
|
+
Column78({
|
|
6450
|
+
name: "subscription_end_date_timestamp",
|
|
6451
|
+
type: "integer",
|
|
6452
|
+
nullable: true
|
|
6453
|
+
})
|
|
6454
|
+
], UserSubscription.prototype, "subscriptionEndDateTimestamp", 2);
|
|
6455
|
+
__decorateClass([
|
|
6456
|
+
Column78({
|
|
6457
|
+
name: "stripe_price_id",
|
|
6458
|
+
type: "varchar",
|
|
6459
|
+
length: 100,
|
|
6460
|
+
nullable: true
|
|
6461
|
+
})
|
|
6462
|
+
], UserSubscription.prototype, "stripePriceId", 2);
|
|
6463
|
+
__decorateClass([
|
|
6464
|
+
Column78({
|
|
6465
|
+
name: "stripe_product_id",
|
|
6466
|
+
type: "varchar",
|
|
6467
|
+
length: 100,
|
|
6468
|
+
nullable: true
|
|
6469
|
+
})
|
|
6470
|
+
], UserSubscription.prototype, "stripeProductId", 2);
|
|
6471
|
+
__decorateClass([
|
|
6472
|
+
Column78({
|
|
6473
|
+
name: "stripe_customer_id",
|
|
6474
|
+
type: "varchar",
|
|
6475
|
+
length: 64,
|
|
6476
|
+
nullable: true
|
|
6477
|
+
})
|
|
6478
|
+
], UserSubscription.prototype, "stripeCustomerId", 2);
|
|
6479
|
+
__decorateClass([
|
|
6480
|
+
Column78({
|
|
6481
|
+
name: "stripe_subscription_id",
|
|
6482
|
+
type: "varchar",
|
|
6483
|
+
length: 64,
|
|
6484
|
+
nullable: true,
|
|
6485
|
+
unique: true
|
|
6486
|
+
})
|
|
6487
|
+
], UserSubscription.prototype, "stripeSubscriptionId", 2);
|
|
6488
|
+
__decorateClass([
|
|
6489
|
+
Column78({
|
|
6490
|
+
name: "stripe_checkout_session_id",
|
|
6491
|
+
type: "varchar",
|
|
6492
|
+
length: 255,
|
|
6493
|
+
nullable: true
|
|
6494
|
+
})
|
|
6495
|
+
], UserSubscription.prototype, "stripeCheckoutSessionId", 2);
|
|
6496
|
+
UserSubscription = __decorateClass([
|
|
6497
|
+
Entity77("user_subscriptions")
|
|
6498
|
+
], UserSubscription);
|
|
6499
|
+
|
|
6248
6500
|
// src/entities/user.entity.ts
|
|
6249
6501
|
var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
|
|
6250
6502
|
AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
@@ -6271,51 +6523,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
6271
6523
|
var User = class extends BaseEntity {
|
|
6272
6524
|
};
|
|
6273
6525
|
__decorateClass([
|
|
6274
|
-
|
|
6526
|
+
Column79({ name: "unique_id", type: "varchar", unique: true })
|
|
6275
6527
|
], User.prototype, "uniqueId", 2);
|
|
6276
6528
|
__decorateClass([
|
|
6277
|
-
|
|
6278
|
-
|
|
6529
|
+
Column79({ name: "parent_id", type: "integer", nullable: true }),
|
|
6530
|
+
Index69()
|
|
6279
6531
|
], User.prototype, "parentId", 2);
|
|
6280
6532
|
__decorateClass([
|
|
6281
|
-
|
|
6282
|
-
|
|
6533
|
+
ManyToOne73(() => User, (user) => user.children, { nullable: true }),
|
|
6534
|
+
JoinColumn74({ name: "parent_id" })
|
|
6283
6535
|
], User.prototype, "parent", 2);
|
|
6284
6536
|
__decorateClass([
|
|
6285
|
-
|
|
6537
|
+
OneToMany27(() => User, (user) => user.parent)
|
|
6286
6538
|
], User.prototype, "children", 2);
|
|
6287
6539
|
__decorateClass([
|
|
6288
|
-
|
|
6540
|
+
Column79({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
6289
6541
|
], User.prototype, "username", 2);
|
|
6290
6542
|
__decorateClass([
|
|
6291
|
-
|
|
6543
|
+
Column79({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
6292
6544
|
], User.prototype, "firstName", 2);
|
|
6293
6545
|
__decorateClass([
|
|
6294
|
-
|
|
6546
|
+
Column79({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
6295
6547
|
], User.prototype, "lastName", 2);
|
|
6296
6548
|
__decorateClass([
|
|
6297
|
-
|
|
6549
|
+
Column79({ name: "date_of_birth", type: "date", nullable: true })
|
|
6298
6550
|
], User.prototype, "dateOfBirth", 2);
|
|
6299
6551
|
__decorateClass([
|
|
6300
|
-
|
|
6552
|
+
Column79({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
6301
6553
|
], User.prototype, "gender", 2);
|
|
6302
6554
|
__decorateClass([
|
|
6303
|
-
|
|
6555
|
+
Column79({ name: "profile_picture_url", type: "text", nullable: true })
|
|
6304
6556
|
], User.prototype, "profilePictureUrl", 2);
|
|
6305
6557
|
__decorateClass([
|
|
6306
|
-
|
|
6558
|
+
Column79({ name: "email", type: "varchar", unique: true })
|
|
6307
6559
|
], User.prototype, "email", 2);
|
|
6308
6560
|
__decorateClass([
|
|
6309
|
-
|
|
6561
|
+
Column79({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6310
6562
|
], User.prototype, "mobileCode", 2);
|
|
6311
6563
|
__decorateClass([
|
|
6312
|
-
|
|
6564
|
+
Column79({ name: "mobile", type: "varchar", nullable: true })
|
|
6313
6565
|
], User.prototype, "mobile", 2);
|
|
6314
6566
|
__decorateClass([
|
|
6315
|
-
|
|
6567
|
+
Column79({ name: "password", type: "varchar", nullable: true })
|
|
6316
6568
|
], User.prototype, "password", 2);
|
|
6317
6569
|
__decorateClass([
|
|
6318
|
-
|
|
6570
|
+
Column79({
|
|
6319
6571
|
name: "account_type",
|
|
6320
6572
|
type: "enum",
|
|
6321
6573
|
enum: AccountType2,
|
|
@@ -6323,7 +6575,7 @@ __decorateClass([
|
|
|
6323
6575
|
})
|
|
6324
6576
|
], User.prototype, "accountType", 2);
|
|
6325
6577
|
__decorateClass([
|
|
6326
|
-
|
|
6578
|
+
Column79({
|
|
6327
6579
|
name: "account_status",
|
|
6328
6580
|
type: "enum",
|
|
6329
6581
|
enum: AccountStatus,
|
|
@@ -6331,45 +6583,45 @@ __decorateClass([
|
|
|
6331
6583
|
})
|
|
6332
6584
|
], User.prototype, "accountStatus", 2);
|
|
6333
6585
|
__decorateClass([
|
|
6334
|
-
|
|
6586
|
+
Column79({ name: "is_email_verified", type: "boolean", default: false })
|
|
6335
6587
|
], User.prototype, "isEmailVerified", 2);
|
|
6336
6588
|
__decorateClass([
|
|
6337
|
-
|
|
6589
|
+
Column79({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6338
6590
|
], User.prototype, "isMobileVerified", 2);
|
|
6339
6591
|
__decorateClass([
|
|
6340
|
-
|
|
6592
|
+
Column79({ name: "is_social", type: "boolean", default: false })
|
|
6341
6593
|
], User.prototype, "isSocial", 2);
|
|
6342
6594
|
__decorateClass([
|
|
6343
|
-
|
|
6595
|
+
Column79({ name: "is_referral_user", type: "boolean", default: false })
|
|
6344
6596
|
], User.prototype, "isReferralUser", 2);
|
|
6345
6597
|
__decorateClass([
|
|
6346
|
-
|
|
6598
|
+
Column79({
|
|
6347
6599
|
name: "last_login_at",
|
|
6348
6600
|
type: "timestamp with time zone",
|
|
6349
6601
|
nullable: true
|
|
6350
6602
|
})
|
|
6351
6603
|
], User.prototype, "lastLoginAt", 2);
|
|
6352
6604
|
__decorateClass([
|
|
6353
|
-
|
|
6605
|
+
Column79({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6354
6606
|
], User.prototype, "lastLoginIp", 2);
|
|
6355
6607
|
__decorateClass([
|
|
6356
|
-
|
|
6608
|
+
Column79({ name: "reset_token", type: "varchar", nullable: true })
|
|
6357
6609
|
], User.prototype, "resetToken", 2);
|
|
6358
6610
|
__decorateClass([
|
|
6359
|
-
|
|
6611
|
+
Column79({
|
|
6360
6612
|
name: "reset_token_expire_at",
|
|
6361
6613
|
type: "timestamp with time zone",
|
|
6362
6614
|
nullable: true
|
|
6363
6615
|
})
|
|
6364
6616
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6365
6617
|
__decorateClass([
|
|
6366
|
-
|
|
6618
|
+
Column79({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6367
6619
|
], User.prototype, "setPasswordToken", 2);
|
|
6368
6620
|
__decorateClass([
|
|
6369
|
-
|
|
6621
|
+
OneToMany27(() => RefreshToken, (token) => token.user)
|
|
6370
6622
|
], User.prototype, "refreshTokens", 2);
|
|
6371
6623
|
__decorateClass([
|
|
6372
|
-
|
|
6624
|
+
Column79({
|
|
6373
6625
|
name: "provider",
|
|
6374
6626
|
type: "enum",
|
|
6375
6627
|
enum: Provider,
|
|
@@ -6378,43 +6630,43 @@ __decorateClass([
|
|
|
6378
6630
|
})
|
|
6379
6631
|
], User.prototype, "provider", 2);
|
|
6380
6632
|
__decorateClass([
|
|
6381
|
-
|
|
6633
|
+
Column79({ name: "provider_token", type: "varchar", nullable: true })
|
|
6382
6634
|
], User.prototype, "providerToken", 2);
|
|
6383
6635
|
__decorateClass([
|
|
6384
|
-
|
|
6636
|
+
Column79({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6385
6637
|
], User.prototype, "linkedInId", 2);
|
|
6386
6638
|
__decorateClass([
|
|
6387
|
-
|
|
6639
|
+
Column79({ name: "google_id", type: "varchar", nullable: true })
|
|
6388
6640
|
], User.prototype, "googleId", 2);
|
|
6389
6641
|
__decorateClass([
|
|
6390
|
-
|
|
6642
|
+
Column79({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6391
6643
|
], User.prototype, "gitLabsId", 2);
|
|
6392
6644
|
__decorateClass([
|
|
6393
|
-
|
|
6645
|
+
Column79({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6394
6646
|
], User.prototype, "onBoardedBy", 2);
|
|
6395
6647
|
__decorateClass([
|
|
6396
|
-
|
|
6648
|
+
OneToMany27(() => Otp, (otp) => otp.user)
|
|
6397
6649
|
], User.prototype, "otps", 2);
|
|
6398
6650
|
__decorateClass([
|
|
6399
|
-
|
|
6651
|
+
OneToMany27(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6400
6652
|
], User.prototype, "senseloafLogs", 2);
|
|
6401
6653
|
__decorateClass([
|
|
6402
6654
|
OneToOne12(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6403
6655
|
], User.prototype, "companyProfile", 2);
|
|
6404
6656
|
__decorateClass([
|
|
6405
|
-
|
|
6657
|
+
OneToMany27(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6406
6658
|
], User.prototype, "companySkills", 2);
|
|
6407
6659
|
__decorateClass([
|
|
6408
|
-
|
|
6660
|
+
OneToMany27(
|
|
6409
6661
|
() => CompanyMemberRole,
|
|
6410
6662
|
(companyMemberRole) => companyMemberRole.user
|
|
6411
6663
|
)
|
|
6412
6664
|
], User.prototype, "companyMemberRoles", 2);
|
|
6413
6665
|
__decorateClass([
|
|
6414
|
-
|
|
6666
|
+
OneToMany27(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6415
6667
|
], User.prototype, "companyAiInterview", 2);
|
|
6416
6668
|
__decorateClass([
|
|
6417
|
-
|
|
6669
|
+
OneToMany27(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6418
6670
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6419
6671
|
__decorateClass([
|
|
6420
6672
|
OneToOne12(
|
|
@@ -6426,61 +6678,61 @@ __decorateClass([
|
|
|
6426
6678
|
OneToOne12(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6427
6679
|
], User.prototype, "freelancerResume", 2);
|
|
6428
6680
|
__decorateClass([
|
|
6429
|
-
|
|
6681
|
+
OneToMany27(
|
|
6430
6682
|
() => FreelancerAssessmentRequest,
|
|
6431
6683
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
6432
6684
|
)
|
|
6433
6685
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
6434
6686
|
__decorateClass([
|
|
6435
|
-
|
|
6687
|
+
OneToMany27(
|
|
6436
6688
|
() => FreelancerAssessmentRequest,
|
|
6437
6689
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
6438
6690
|
)
|
|
6439
6691
|
], User.prototype, "assessmentRequests", 2);
|
|
6440
6692
|
__decorateClass([
|
|
6441
|
-
|
|
6693
|
+
OneToMany27(
|
|
6442
6694
|
() => FreelancerAssessment,
|
|
6443
6695
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6444
6696
|
)
|
|
6445
6697
|
], User.prototype, "assessments", 2);
|
|
6446
6698
|
__decorateClass([
|
|
6447
|
-
|
|
6699
|
+
OneToMany27(
|
|
6448
6700
|
() => AssessmentAnswer,
|
|
6449
6701
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6450
6702
|
)
|
|
6451
6703
|
], User.prototype, "assessmentAnswers", 2);
|
|
6452
6704
|
__decorateClass([
|
|
6453
|
-
|
|
6705
|
+
OneToMany27(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6454
6706
|
], User.prototype, "freelancerSkills", 2);
|
|
6455
6707
|
__decorateClass([
|
|
6456
|
-
|
|
6708
|
+
OneToMany27(
|
|
6457
6709
|
() => FreelancerExperience,
|
|
6458
6710
|
(freelancerExperience) => freelancerExperience.user
|
|
6459
6711
|
)
|
|
6460
6712
|
], User.prototype, "freelancerExperience", 2);
|
|
6461
6713
|
__decorateClass([
|
|
6462
|
-
|
|
6714
|
+
OneToMany27(
|
|
6463
6715
|
() => FreelancerEducation,
|
|
6464
6716
|
(freelancerEducation) => freelancerEducation.user
|
|
6465
6717
|
)
|
|
6466
6718
|
], User.prototype, "freelancerEducation", 2);
|
|
6467
6719
|
__decorateClass([
|
|
6468
|
-
|
|
6720
|
+
OneToMany27(
|
|
6469
6721
|
() => FreelancerProject,
|
|
6470
6722
|
(freelancerProject) => freelancerProject.user
|
|
6471
6723
|
)
|
|
6472
6724
|
], User.prototype, "freelancerProject", 2);
|
|
6473
6725
|
__decorateClass([
|
|
6474
|
-
|
|
6726
|
+
OneToMany27(
|
|
6475
6727
|
() => FreelancerCaseStudy,
|
|
6476
6728
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6477
6729
|
)
|
|
6478
6730
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6479
6731
|
__decorateClass([
|
|
6480
|
-
|
|
6732
|
+
OneToMany27(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6481
6733
|
], User.prototype, "freelancerTool", 2);
|
|
6482
6734
|
__decorateClass([
|
|
6483
|
-
|
|
6735
|
+
OneToMany27(
|
|
6484
6736
|
() => FreelancerFramework,
|
|
6485
6737
|
(freelancerFramework) => freelancerFramework.user
|
|
6486
6738
|
)
|
|
@@ -6492,152 +6744,155 @@ __decorateClass([
|
|
|
6492
6744
|
)
|
|
6493
6745
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6494
6746
|
__decorateClass([
|
|
6495
|
-
|
|
6747
|
+
OneToMany27(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6496
6748
|
], User.prototype, "freelancerMcq", 2);
|
|
6497
6749
|
__decorateClass([
|
|
6498
|
-
|
|
6750
|
+
OneToMany27(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6499
6751
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6500
6752
|
__decorateClass([
|
|
6501
|
-
|
|
6753
|
+
OneToMany27(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6502
6754
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6503
6755
|
__decorateClass([
|
|
6504
|
-
|
|
6756
|
+
OneToMany27(
|
|
6505
6757
|
() => F2fInterviewRescheduleRequest,
|
|
6506
6758
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6507
6759
|
)
|
|
6508
6760
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6509
6761
|
__decorateClass([
|
|
6510
|
-
|
|
6762
|
+
OneToMany27(
|
|
6511
6763
|
() => AiInterviewRescheduleRequest,
|
|
6512
6764
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
6513
6765
|
)
|
|
6514
6766
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
6515
6767
|
__decorateClass([
|
|
6516
|
-
|
|
6768
|
+
OneToMany27(
|
|
6517
6769
|
() => AiInterviewRescheduleRequest,
|
|
6518
6770
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
6519
6771
|
)
|
|
6520
6772
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
6521
6773
|
__decorateClass([
|
|
6522
|
-
|
|
6774
|
+
OneToMany27(() => Job, (job) => job.user)
|
|
6523
6775
|
], User.prototype, "jobs", 2);
|
|
6524
6776
|
__decorateClass([
|
|
6525
|
-
|
|
6777
|
+
OneToMany27(() => Task, (task) => task.client)
|
|
6526
6778
|
], User.prototype, "clientTasks", 2);
|
|
6527
6779
|
__decorateClass([
|
|
6528
|
-
|
|
6780
|
+
OneToMany27(() => Task, (task) => task.freelancer)
|
|
6529
6781
|
], User.prototype, "freelancerTasks", 2);
|
|
6530
6782
|
__decorateClass([
|
|
6531
|
-
|
|
6783
|
+
OneToMany27(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
|
|
6532
6784
|
], User.prototype, "raisedTaskQueries", 2);
|
|
6533
6785
|
__decorateClass([
|
|
6534
|
-
|
|
6786
|
+
OneToMany27(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
|
|
6535
6787
|
], User.prototype, "assignedTaskQueries", 2);
|
|
6536
6788
|
__decorateClass([
|
|
6537
|
-
|
|
6789
|
+
OneToMany27(() => TaskQueryMessage, (message) => message.senderUser)
|
|
6538
6790
|
], User.prototype, "taskQueryMessages", 2);
|
|
6539
6791
|
__decorateClass([
|
|
6540
|
-
|
|
6792
|
+
OneToMany27(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6541
6793
|
], User.prototype, "jobApplications", 2);
|
|
6542
6794
|
__decorateClass([
|
|
6543
|
-
|
|
6795
|
+
OneToMany27(() => Interview, (interview) => interview.user)
|
|
6544
6796
|
], User.prototype, "interviews", 2);
|
|
6545
6797
|
__decorateClass([
|
|
6546
|
-
|
|
6798
|
+
OneToMany27(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6547
6799
|
], User.prototype, "bankDetail", 2);
|
|
6548
6800
|
__decorateClass([
|
|
6549
|
-
|
|
6801
|
+
OneToMany27(
|
|
6550
6802
|
() => SystemPreference,
|
|
6551
6803
|
(systemPreference) => systemPreference.user
|
|
6552
6804
|
)
|
|
6553
6805
|
], User.prototype, "systemPreference", 2);
|
|
6554
6806
|
__decorateClass([
|
|
6555
|
-
|
|
6807
|
+
OneToMany27(() => Rating, (rating) => rating.reviewer)
|
|
6556
6808
|
], User.prototype, "givenRatings", 2);
|
|
6557
6809
|
__decorateClass([
|
|
6558
|
-
|
|
6810
|
+
OneToMany27(() => Rating, (rating) => rating.reviewee)
|
|
6559
6811
|
], User.prototype, "receivedRatings", 2);
|
|
6560
6812
|
__decorateClass([
|
|
6561
|
-
|
|
6813
|
+
OneToMany27(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6562
6814
|
], User.prototype, "adminUserRoles", 2);
|
|
6563
6815
|
__decorateClass([
|
|
6564
|
-
|
|
6816
|
+
OneToMany27(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
6565
6817
|
cascade: true
|
|
6566
6818
|
})
|
|
6567
6819
|
], User.prototype, "clientContractSummaries", 2);
|
|
6568
6820
|
__decorateClass([
|
|
6569
|
-
|
|
6821
|
+
OneToMany27(() => Contract, (contract) => contract.client)
|
|
6570
6822
|
], User.prototype, "clientContracts", 2);
|
|
6571
6823
|
__decorateClass([
|
|
6572
|
-
|
|
6824
|
+
OneToMany27(() => Hiring, (hiring) => hiring.client)
|
|
6573
6825
|
], User.prototype, "clientHirings", 2);
|
|
6574
6826
|
__decorateClass([
|
|
6575
|
-
|
|
6827
|
+
OneToMany27(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6576
6828
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6577
6829
|
__decorateClass([
|
|
6578
|
-
|
|
6830
|
+
OneToMany27(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
6579
6831
|
cascade: true
|
|
6580
6832
|
})
|
|
6581
6833
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
6582
6834
|
__decorateClass([
|
|
6583
|
-
|
|
6835
|
+
OneToMany27(() => Contract, (contract) => contract.freelancer)
|
|
6584
6836
|
], User.prototype, "freelancerContracts", 2);
|
|
6585
6837
|
__decorateClass([
|
|
6586
|
-
|
|
6838
|
+
OneToMany27(() => Hiring, (hiring) => hiring.freelancer)
|
|
6587
6839
|
], User.prototype, "freelancerHirings", 2);
|
|
6588
6840
|
__decorateClass([
|
|
6589
|
-
|
|
6841
|
+
OneToMany27(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6590
6842
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6591
6843
|
__decorateClass([
|
|
6592
6844
|
OneToOne12(() => Signature, (signature) => signature.user)
|
|
6593
6845
|
], User.prototype, "signatures", 2);
|
|
6594
6846
|
__decorateClass([
|
|
6595
|
-
|
|
6847
|
+
OneToMany27(() => Timesheet, (timesheet) => timesheet.client)
|
|
6596
6848
|
], User.prototype, "clientTimesheets", 2);
|
|
6597
6849
|
__decorateClass([
|
|
6598
|
-
|
|
6850
|
+
OneToMany27(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6599
6851
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6600
6852
|
__decorateClass([
|
|
6601
|
-
|
|
6853
|
+
OneToMany27(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6602
6854
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6603
6855
|
__decorateClass([
|
|
6604
|
-
|
|
6856
|
+
OneToMany27(() => Invoice, (invoice) => invoice.client)
|
|
6605
6857
|
], User.prototype, "clientInvoice", 2);
|
|
6606
6858
|
__decorateClass([
|
|
6607
|
-
|
|
6859
|
+
OneToMany27(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6608
6860
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6609
6861
|
__decorateClass([
|
|
6610
|
-
|
|
6862
|
+
OneToMany27(() => Invoice, (invoice) => invoice.freelancer)
|
|
6611
6863
|
], User.prototype, "freelancerInvoice", 2);
|
|
6612
6864
|
__decorateClass([
|
|
6613
|
-
|
|
6865
|
+
OneToMany27(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6614
6866
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6615
6867
|
__decorateClass([
|
|
6616
|
-
|
|
6868
|
+
OneToMany27(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6617
6869
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6618
6870
|
__decorateClass([
|
|
6619
|
-
|
|
6871
|
+
OneToMany27(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6620
6872
|
], User.prototype, "initiatedDisputes", 2);
|
|
6621
6873
|
__decorateClass([
|
|
6622
|
-
|
|
6874
|
+
OneToMany27(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6623
6875
|
], User.prototype, "respondentDisputes", 2);
|
|
6624
6876
|
__decorateClass([
|
|
6625
6877
|
OneToOne12(() => Wallet, (wallet) => wallet.user)
|
|
6626
6878
|
], User.prototype, "wallet", 2);
|
|
6627
6879
|
__decorateClass([
|
|
6628
|
-
|
|
6880
|
+
OneToMany27(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6629
6881
|
], User.prototype, "stripeTransactions", 2);
|
|
6630
6882
|
__decorateClass([
|
|
6631
|
-
|
|
6883
|
+
OneToMany27(() => Dispute, (dispute) => dispute.client)
|
|
6632
6884
|
], User.prototype, "clientDisputes", 2);
|
|
6633
6885
|
__decorateClass([
|
|
6634
|
-
|
|
6886
|
+
OneToMany27(() => Dispute, (dispute) => dispute.freelancer)
|
|
6635
6887
|
], User.prototype, "freelancerDisputes", 2);
|
|
6636
6888
|
__decorateClass([
|
|
6637
|
-
|
|
6889
|
+
OneToMany27(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
6638
6890
|
], User.prototype, "inAppNotifications", 2);
|
|
6891
|
+
__decorateClass([
|
|
6892
|
+
OneToMany27(() => UserSubscription, (userSubscription) => userSubscription.user)
|
|
6893
|
+
], User.prototype, "userSubscriptions", 2);
|
|
6639
6894
|
User = __decorateClass([
|
|
6640
|
-
|
|
6895
|
+
Entity78("users")
|
|
6641
6896
|
], User);
|
|
6642
6897
|
|
|
6643
6898
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -13858,11 +14113,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
13858
14113
|
};
|
|
13859
14114
|
|
|
13860
14115
|
// src/entities/sequence-generator.entity.ts
|
|
13861
|
-
import { Entity as
|
|
14116
|
+
import { Entity as Entity79, Column as Column80 } from "typeorm";
|
|
13862
14117
|
var SequenceGenerator = class extends BaseEntity {
|
|
13863
14118
|
};
|
|
13864
14119
|
__decorateClass([
|
|
13865
|
-
|
|
14120
|
+
Column80({
|
|
13866
14121
|
name: "module",
|
|
13867
14122
|
type: "varchar",
|
|
13868
14123
|
length: 50,
|
|
@@ -13871,7 +14126,7 @@ __decorateClass([
|
|
|
13871
14126
|
})
|
|
13872
14127
|
], SequenceGenerator.prototype, "module", 2);
|
|
13873
14128
|
__decorateClass([
|
|
13874
|
-
|
|
14129
|
+
Column80({
|
|
13875
14130
|
name: "prefix",
|
|
13876
14131
|
type: "varchar",
|
|
13877
14132
|
length: 10,
|
|
@@ -13880,7 +14135,7 @@ __decorateClass([
|
|
|
13880
14135
|
})
|
|
13881
14136
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
13882
14137
|
__decorateClass([
|
|
13883
|
-
|
|
14138
|
+
Column80({
|
|
13884
14139
|
name: "last_sequence",
|
|
13885
14140
|
type: "int",
|
|
13886
14141
|
nullable: false,
|
|
@@ -13888,7 +14143,7 @@ __decorateClass([
|
|
|
13888
14143
|
})
|
|
13889
14144
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
13890
14145
|
__decorateClass([
|
|
13891
|
-
|
|
14146
|
+
Column80({
|
|
13892
14147
|
name: "year",
|
|
13893
14148
|
type: "int",
|
|
13894
14149
|
nullable: true,
|
|
@@ -13896,11 +14151,11 @@ __decorateClass([
|
|
|
13896
14151
|
})
|
|
13897
14152
|
], SequenceGenerator.prototype, "year", 2);
|
|
13898
14153
|
SequenceGenerator = __decorateClass([
|
|
13899
|
-
|
|
14154
|
+
Entity79("sequence_generators")
|
|
13900
14155
|
], SequenceGenerator);
|
|
13901
14156
|
|
|
13902
14157
|
// src/entities/question.entity.ts
|
|
13903
|
-
import { Entity as
|
|
14158
|
+
import { Entity as Entity80, Column as Column81 } from "typeorm";
|
|
13904
14159
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
13905
14160
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
13906
14161
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -13909,16 +14164,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
13909
14164
|
var Question = class extends BaseEntity {
|
|
13910
14165
|
};
|
|
13911
14166
|
__decorateClass([
|
|
13912
|
-
|
|
14167
|
+
Column81({ name: "question", type: "varchar" })
|
|
13913
14168
|
], Question.prototype, "question", 2);
|
|
13914
14169
|
__decorateClass([
|
|
13915
|
-
|
|
14170
|
+
Column81({ name: "hint", type: "varchar", nullable: true })
|
|
13916
14171
|
], Question.prototype, "hint", 2);
|
|
13917
14172
|
__decorateClass([
|
|
13918
|
-
|
|
14173
|
+
Column81({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13919
14174
|
], Question.prototype, "slug", 2);
|
|
13920
14175
|
__decorateClass([
|
|
13921
|
-
|
|
14176
|
+
Column81({
|
|
13922
14177
|
name: "question_for",
|
|
13923
14178
|
type: "enum",
|
|
13924
14179
|
enum: QuestionFor,
|
|
@@ -13926,49 +14181,49 @@ __decorateClass([
|
|
|
13926
14181
|
})
|
|
13927
14182
|
], Question.prototype, "questionFor", 2);
|
|
13928
14183
|
__decorateClass([
|
|
13929
|
-
|
|
14184
|
+
Column81({ name: "type", type: "varchar", nullable: true })
|
|
13930
14185
|
], Question.prototype, "type", 2);
|
|
13931
14186
|
__decorateClass([
|
|
13932
|
-
|
|
14187
|
+
Column81({ name: "options", type: "jsonb", nullable: true })
|
|
13933
14188
|
], Question.prototype, "options", 2);
|
|
13934
14189
|
__decorateClass([
|
|
13935
|
-
|
|
14190
|
+
Column81({ name: "is_active", type: "boolean", default: false })
|
|
13936
14191
|
], Question.prototype, "isActive", 2);
|
|
13937
14192
|
Question = __decorateClass([
|
|
13938
|
-
|
|
14193
|
+
Entity80("questions")
|
|
13939
14194
|
], Question);
|
|
13940
14195
|
|
|
13941
14196
|
// src/entities/skill.entity.ts
|
|
13942
|
-
import { Entity as
|
|
14197
|
+
import { Entity as Entity81, Column as Column82 } from "typeorm";
|
|
13943
14198
|
var Skill = class extends BaseEntity {
|
|
13944
14199
|
};
|
|
13945
14200
|
__decorateClass([
|
|
13946
|
-
|
|
14201
|
+
Column82({ name: "name", type: "varchar", nullable: true })
|
|
13947
14202
|
], Skill.prototype, "name", 2);
|
|
13948
14203
|
__decorateClass([
|
|
13949
|
-
|
|
14204
|
+
Column82({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13950
14205
|
], Skill.prototype, "slug", 2);
|
|
13951
14206
|
__decorateClass([
|
|
13952
|
-
|
|
14207
|
+
Column82({ name: "is_active", type: "boolean", default: false })
|
|
13953
14208
|
], Skill.prototype, "isActive", 2);
|
|
13954
14209
|
Skill = __decorateClass([
|
|
13955
|
-
|
|
14210
|
+
Entity81("skills")
|
|
13956
14211
|
], Skill);
|
|
13957
14212
|
|
|
13958
14213
|
// src/entities/skill-catalog.entity.ts
|
|
13959
14214
|
import {
|
|
13960
|
-
Entity as
|
|
13961
|
-
Column as
|
|
13962
|
-
Index as
|
|
14215
|
+
Entity as Entity82,
|
|
14216
|
+
Column as Column83,
|
|
14217
|
+
Index as Index70
|
|
13963
14218
|
} from "typeorm";
|
|
13964
14219
|
var SkillCatalog = class extends BaseEntity {
|
|
13965
14220
|
};
|
|
13966
14221
|
__decorateClass([
|
|
13967
|
-
|
|
13968
|
-
|
|
14222
|
+
Column83({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
14223
|
+
Index70()
|
|
13969
14224
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
13970
14225
|
__decorateClass([
|
|
13971
|
-
|
|
14226
|
+
Column83({
|
|
13972
14227
|
name: "aliases",
|
|
13973
14228
|
type: "text",
|
|
13974
14229
|
array: true,
|
|
@@ -13976,20 +14231,20 @@ __decorateClass([
|
|
|
13976
14231
|
})
|
|
13977
14232
|
], SkillCatalog.prototype, "aliases", 2);
|
|
13978
14233
|
__decorateClass([
|
|
13979
|
-
|
|
14234
|
+
Column83({
|
|
13980
14235
|
name: "variations",
|
|
13981
14236
|
type: "jsonb",
|
|
13982
14237
|
default: "{}"
|
|
13983
14238
|
})
|
|
13984
14239
|
], SkillCatalog.prototype, "variations", 2);
|
|
13985
14240
|
__decorateClass([
|
|
13986
|
-
|
|
14241
|
+
Column83({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
13987
14242
|
], SkillCatalog.prototype, "category", 2);
|
|
13988
14243
|
__decorateClass([
|
|
13989
|
-
|
|
14244
|
+
Column83({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
13990
14245
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
13991
14246
|
__decorateClass([
|
|
13992
|
-
|
|
14247
|
+
Column83({
|
|
13993
14248
|
name: "related_skills",
|
|
13994
14249
|
type: "text",
|
|
13995
14250
|
array: true,
|
|
@@ -13997,70 +14252,70 @@ __decorateClass([
|
|
|
13997
14252
|
})
|
|
13998
14253
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
13999
14254
|
__decorateClass([
|
|
14000
|
-
|
|
14001
|
-
|
|
14255
|
+
Column83({ name: "usage_count", type: "integer", default: 0 }),
|
|
14256
|
+
Index70()
|
|
14002
14257
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
14003
14258
|
__decorateClass([
|
|
14004
|
-
|
|
14259
|
+
Column83({ name: "is_verified", type: "boolean", default: false })
|
|
14005
14260
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
14006
14261
|
__decorateClass([
|
|
14007
|
-
|
|
14262
|
+
Column83({ name: "first_seen_date", type: "date" })
|
|
14008
14263
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
14009
14264
|
__decorateClass([
|
|
14010
|
-
|
|
14265
|
+
Column83({ name: "last_updated_date", type: "date" })
|
|
14011
14266
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
14012
14267
|
__decorateClass([
|
|
14013
|
-
|
|
14268
|
+
Column83({
|
|
14014
14269
|
name: "search_vector",
|
|
14015
14270
|
type: "tsvector",
|
|
14016
14271
|
nullable: true
|
|
14017
14272
|
})
|
|
14018
14273
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
14019
14274
|
SkillCatalog = __decorateClass([
|
|
14020
|
-
|
|
14275
|
+
Entity82("skill_catalogs")
|
|
14021
14276
|
], SkillCatalog);
|
|
14022
14277
|
|
|
14023
14278
|
// src/entities/job-role.entity.ts
|
|
14024
|
-
import { Entity as
|
|
14279
|
+
import { Entity as Entity83, Column as Column84 } from "typeorm";
|
|
14025
14280
|
var JobRoles = class extends BaseEntity {
|
|
14026
14281
|
};
|
|
14027
14282
|
__decorateClass([
|
|
14028
|
-
|
|
14283
|
+
Column84({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14029
14284
|
], JobRoles.prototype, "slug", 2);
|
|
14030
14285
|
__decorateClass([
|
|
14031
|
-
|
|
14286
|
+
Column84({ name: "name", type: "varchar", nullable: true })
|
|
14032
14287
|
], JobRoles.prototype, "name", 2);
|
|
14033
14288
|
__decorateClass([
|
|
14034
|
-
|
|
14289
|
+
Column84({ name: "is_active", type: "boolean", default: true })
|
|
14035
14290
|
], JobRoles.prototype, "isActive", 2);
|
|
14036
14291
|
JobRoles = __decorateClass([
|
|
14037
|
-
|
|
14292
|
+
Entity83("job_roles")
|
|
14038
14293
|
], JobRoles);
|
|
14039
14294
|
|
|
14040
14295
|
// src/entities/cms.entity.ts
|
|
14041
|
-
import { Entity as
|
|
14296
|
+
import { Entity as Entity84, Column as Column85 } from "typeorm";
|
|
14042
14297
|
var Cms = class extends BaseEntity {
|
|
14043
14298
|
};
|
|
14044
14299
|
__decorateClass([
|
|
14045
|
-
|
|
14300
|
+
Column85({ name: "title", type: "varchar", nullable: true })
|
|
14046
14301
|
], Cms.prototype, "title", 2);
|
|
14047
14302
|
__decorateClass([
|
|
14048
|
-
|
|
14303
|
+
Column85({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
14049
14304
|
], Cms.prototype, "slug", 2);
|
|
14050
14305
|
__decorateClass([
|
|
14051
|
-
|
|
14306
|
+
Column85({ name: "content", type: "varchar", nullable: true })
|
|
14052
14307
|
], Cms.prototype, "content", 2);
|
|
14053
14308
|
__decorateClass([
|
|
14054
|
-
|
|
14309
|
+
Column85({ name: "is_active", type: "boolean", default: true })
|
|
14055
14310
|
], Cms.prototype, "isActive", 2);
|
|
14056
14311
|
Cms = __decorateClass([
|
|
14057
|
-
|
|
14312
|
+
Entity84("cms")
|
|
14058
14313
|
], Cms);
|
|
14059
14314
|
|
|
14060
14315
|
// src/entities/lead.entity.ts
|
|
14061
14316
|
import {
|
|
14062
|
-
Entity as
|
|
14063
|
-
Column as
|
|
14317
|
+
Entity as Entity85,
|
|
14318
|
+
Column as Column86
|
|
14064
14319
|
} from "typeorm";
|
|
14065
14320
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
14066
14321
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -14070,22 +14325,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
14070
14325
|
var Lead = class extends BaseEntity {
|
|
14071
14326
|
};
|
|
14072
14327
|
__decorateClass([
|
|
14073
|
-
|
|
14328
|
+
Column86({ name: "name", type: "varchar", nullable: true })
|
|
14074
14329
|
], Lead.prototype, "name", 2);
|
|
14075
14330
|
__decorateClass([
|
|
14076
|
-
|
|
14331
|
+
Column86({ name: "mobile_code", type: "varchar", nullable: true })
|
|
14077
14332
|
], Lead.prototype, "mobileCode", 2);
|
|
14078
14333
|
__decorateClass([
|
|
14079
|
-
|
|
14334
|
+
Column86({ name: "mobile", type: "varchar", nullable: true })
|
|
14080
14335
|
], Lead.prototype, "mobile", 2);
|
|
14081
14336
|
__decorateClass([
|
|
14082
|
-
|
|
14337
|
+
Column86({ name: "email", type: "varchar", nullable: true })
|
|
14083
14338
|
], Lead.prototype, "email", 2);
|
|
14084
14339
|
__decorateClass([
|
|
14085
|
-
|
|
14340
|
+
Column86({ name: "description", type: "varchar", nullable: true })
|
|
14086
14341
|
], Lead.prototype, "description", 2);
|
|
14087
14342
|
__decorateClass([
|
|
14088
|
-
|
|
14343
|
+
Column86({
|
|
14089
14344
|
name: "category",
|
|
14090
14345
|
type: "enum",
|
|
14091
14346
|
enum: CategoryEmum,
|
|
@@ -14093,7 +14348,7 @@ __decorateClass([
|
|
|
14093
14348
|
})
|
|
14094
14349
|
], Lead.prototype, "category", 2);
|
|
14095
14350
|
Lead = __decorateClass([
|
|
14096
|
-
|
|
14351
|
+
Entity85("leads")
|
|
14097
14352
|
], Lead);
|
|
14098
14353
|
|
|
14099
14354
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -14334,7 +14589,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
14334
14589
|
], ClientFreelancerRecommendation);
|
|
14335
14590
|
|
|
14336
14591
|
// src/entities/commission.entity.ts
|
|
14337
|
-
import { Entity as
|
|
14592
|
+
import { Entity as Entity86, Column as Column87 } from "typeorm";
|
|
14338
14593
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
14339
14594
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
14340
14595
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -14343,7 +14598,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
14343
14598
|
var Commission = class extends BaseEntity {
|
|
14344
14599
|
};
|
|
14345
14600
|
__decorateClass([
|
|
14346
|
-
|
|
14601
|
+
Column87({
|
|
14347
14602
|
name: "freelancer_commission_type",
|
|
14348
14603
|
type: "enum",
|
|
14349
14604
|
enum: CommissionTypeEnum,
|
|
@@ -14351,10 +14606,10 @@ __decorateClass([
|
|
|
14351
14606
|
})
|
|
14352
14607
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
14353
14608
|
__decorateClass([
|
|
14354
|
-
|
|
14609
|
+
Column87({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
14355
14610
|
], Commission.prototype, "freelancerCommission", 2);
|
|
14356
14611
|
__decorateClass([
|
|
14357
|
-
|
|
14612
|
+
Column87({
|
|
14358
14613
|
name: "client_commission_type",
|
|
14359
14614
|
type: "enum",
|
|
14360
14615
|
enum: CommissionTypeEnum,
|
|
@@ -14362,58 +14617,58 @@ __decorateClass([
|
|
|
14362
14617
|
})
|
|
14363
14618
|
], Commission.prototype, "clientCommissionType", 2);
|
|
14364
14619
|
__decorateClass([
|
|
14365
|
-
|
|
14620
|
+
Column87({ name: "client_commission", type: "integer", default: 0 })
|
|
14366
14621
|
], Commission.prototype, "clientCommission", 2);
|
|
14367
14622
|
Commission = __decorateClass([
|
|
14368
|
-
|
|
14623
|
+
Entity86("commissions")
|
|
14369
14624
|
], Commission);
|
|
14370
14625
|
|
|
14371
14626
|
// src/entities/calendly-meeting-log.entity.ts
|
|
14372
14627
|
import {
|
|
14373
|
-
Entity as
|
|
14374
|
-
Column as
|
|
14375
|
-
Index as
|
|
14628
|
+
Entity as Entity87,
|
|
14629
|
+
Column as Column88,
|
|
14630
|
+
Index as Index71
|
|
14376
14631
|
} from "typeorm";
|
|
14377
14632
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
14378
14633
|
};
|
|
14379
14634
|
__decorateClass([
|
|
14380
|
-
|
|
14381
|
-
|
|
14635
|
+
Column88({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
14636
|
+
Index71()
|
|
14382
14637
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
14383
14638
|
__decorateClass([
|
|
14384
|
-
|
|
14639
|
+
Column88({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
14385
14640
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
14386
14641
|
__decorateClass([
|
|
14387
|
-
|
|
14642
|
+
Column88({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14388
14643
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
14389
14644
|
CalendlyMeetingLog = __decorateClass([
|
|
14390
|
-
|
|
14645
|
+
Entity87("calendly_meeting_logs")
|
|
14391
14646
|
], CalendlyMeetingLog);
|
|
14392
14647
|
|
|
14393
14648
|
// src/entities/zoom-meeting-log.entity.ts
|
|
14394
14649
|
import {
|
|
14395
|
-
Entity as
|
|
14396
|
-
Column as
|
|
14397
|
-
Index as
|
|
14650
|
+
Entity as Entity88,
|
|
14651
|
+
Column as Column89,
|
|
14652
|
+
Index as Index72
|
|
14398
14653
|
} from "typeorm";
|
|
14399
14654
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
14400
14655
|
};
|
|
14401
14656
|
__decorateClass([
|
|
14402
|
-
|
|
14403
|
-
|
|
14657
|
+
Column89({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
14658
|
+
Index72()
|
|
14404
14659
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
14405
14660
|
__decorateClass([
|
|
14406
|
-
|
|
14661
|
+
Column89({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
14407
14662
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
14408
14663
|
__decorateClass([
|
|
14409
|
-
|
|
14664
|
+
Column89({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14410
14665
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
14411
14666
|
ZoomMeetingLog = __decorateClass([
|
|
14412
|
-
|
|
14667
|
+
Entity88("zoom_meeting_logs")
|
|
14413
14668
|
], ZoomMeetingLog);
|
|
14414
14669
|
|
|
14415
14670
|
// src/entities/docuseal.entity.ts
|
|
14416
|
-
import { Entity as
|
|
14671
|
+
import { Entity as Entity89, Column as Column90, Index as Index73 } from "typeorm";
|
|
14417
14672
|
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
14418
14673
|
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
14419
14674
|
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
@@ -14423,160 +14678,160 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
|
14423
14678
|
var DocuSeal = class extends BaseEntity {
|
|
14424
14679
|
};
|
|
14425
14680
|
__decorateClass([
|
|
14426
|
-
|
|
14427
|
-
|
|
14681
|
+
Column90({ name: "reference_id", type: "integer", nullable: false }),
|
|
14682
|
+
Index73()
|
|
14428
14683
|
], DocuSeal.prototype, "referenceId", 2);
|
|
14429
14684
|
__decorateClass([
|
|
14430
|
-
|
|
14431
|
-
|
|
14685
|
+
Column90({ name: "submitter_id", type: "integer", nullable: true }),
|
|
14686
|
+
Index73()
|
|
14432
14687
|
], DocuSeal.prototype, "submitterId", 2);
|
|
14433
14688
|
__decorateClass([
|
|
14434
|
-
|
|
14689
|
+
Column90({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
14435
14690
|
], DocuSeal.prototype, "submitterResponse", 2);
|
|
14436
14691
|
__decorateClass([
|
|
14437
|
-
|
|
14692
|
+
Column90({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
14438
14693
|
], DocuSeal.prototype, "webhookResponse", 2);
|
|
14439
14694
|
__decorateClass([
|
|
14440
|
-
|
|
14695
|
+
Column90({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
14441
14696
|
], DocuSeal.prototype, "type", 2);
|
|
14442
14697
|
DocuSeal = __decorateClass([
|
|
14443
|
-
|
|
14698
|
+
Entity89("docuseal")
|
|
14444
14699
|
], DocuSeal);
|
|
14445
14700
|
|
|
14446
14701
|
// src/entities/stripe-logs.entity.ts
|
|
14447
|
-
import { Entity as
|
|
14702
|
+
import { Entity as Entity90, Column as Column91 } from "typeorm";
|
|
14448
14703
|
var StripeLog = class extends BaseEntity {
|
|
14449
14704
|
};
|
|
14450
14705
|
__decorateClass([
|
|
14451
|
-
|
|
14706
|
+
Column91({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
14452
14707
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
14453
14708
|
__decorateClass([
|
|
14454
|
-
|
|
14709
|
+
Column91({ name: "event_type", type: "varchar", nullable: true })
|
|
14455
14710
|
], StripeLog.prototype, "eventType", 2);
|
|
14456
14711
|
__decorateClass([
|
|
14457
|
-
|
|
14712
|
+
Column91({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
14458
14713
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
14459
14714
|
__decorateClass([
|
|
14460
|
-
|
|
14715
|
+
Column91({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14461
14716
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
14462
14717
|
StripeLog = __decorateClass([
|
|
14463
|
-
|
|
14718
|
+
Entity90("stripe_logs")
|
|
14464
14719
|
], StripeLog);
|
|
14465
14720
|
|
|
14466
14721
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
14467
14722
|
import {
|
|
14468
|
-
Entity as
|
|
14469
|
-
Column as
|
|
14470
|
-
Index as
|
|
14723
|
+
Entity as Entity91,
|
|
14724
|
+
Column as Column92,
|
|
14725
|
+
Index as Index74
|
|
14471
14726
|
} from "typeorm";
|
|
14472
14727
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
14473
14728
|
};
|
|
14474
14729
|
__decorateClass([
|
|
14475
|
-
|
|
14730
|
+
Column92({
|
|
14476
14731
|
type: "varchar",
|
|
14477
14732
|
length: 100,
|
|
14478
14733
|
unique: true,
|
|
14479
14734
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
14480
14735
|
}),
|
|
14481
|
-
|
|
14736
|
+
Index74()
|
|
14482
14737
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
14483
14738
|
__decorateClass([
|
|
14484
|
-
|
|
14739
|
+
Column92({
|
|
14485
14740
|
type: "jsonb",
|
|
14486
14741
|
comment: "JSON object containing weight values",
|
|
14487
14742
|
nullable: true
|
|
14488
14743
|
})
|
|
14489
14744
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
14490
14745
|
__decorateClass([
|
|
14491
|
-
|
|
14746
|
+
Column92({ name: "is_active", type: "boolean", default: true })
|
|
14492
14747
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
14493
14748
|
RecommendationWeightageConfig = __decorateClass([
|
|
14494
|
-
|
|
14749
|
+
Entity91("recommendation_weightage_configs")
|
|
14495
14750
|
], RecommendationWeightageConfig);
|
|
14496
14751
|
|
|
14497
14752
|
// src/entities/global-setting.entity.ts
|
|
14498
14753
|
import {
|
|
14499
|
-
Entity as
|
|
14500
|
-
Column as
|
|
14501
|
-
Index as
|
|
14754
|
+
Entity as Entity92,
|
|
14755
|
+
Column as Column93,
|
|
14756
|
+
Index as Index75
|
|
14502
14757
|
} from "typeorm";
|
|
14503
14758
|
var GlobalSetting = class extends BaseEntity {
|
|
14504
14759
|
};
|
|
14505
14760
|
__decorateClass([
|
|
14506
|
-
|
|
14761
|
+
Column93({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
14507
14762
|
], GlobalSetting.prototype, "key", 2);
|
|
14508
14763
|
__decorateClass([
|
|
14509
|
-
|
|
14764
|
+
Column93({ name: "value", type: "text", nullable: false })
|
|
14510
14765
|
], GlobalSetting.prototype, "value", 2);
|
|
14511
14766
|
GlobalSetting = __decorateClass([
|
|
14512
|
-
|
|
14513
|
-
|
|
14767
|
+
Entity92("global_settings"),
|
|
14768
|
+
Index75(["key"], { unique: true })
|
|
14514
14769
|
], GlobalSetting);
|
|
14515
14770
|
|
|
14516
14771
|
// src/entities/plan.entity.ts
|
|
14517
14772
|
import {
|
|
14518
|
-
Entity as
|
|
14519
|
-
Column as
|
|
14520
|
-
Index as
|
|
14773
|
+
Entity as Entity95,
|
|
14774
|
+
Column as Column96,
|
|
14775
|
+
Index as Index78,
|
|
14521
14776
|
Check as Check4,
|
|
14522
14777
|
BeforeInsert as BeforeInsert2,
|
|
14523
14778
|
BeforeUpdate as BeforeUpdate2,
|
|
14524
|
-
OneToMany as
|
|
14779
|
+
OneToMany as OneToMany32
|
|
14525
14780
|
} from "typeorm";
|
|
14526
14781
|
|
|
14527
14782
|
// src/entities/plan-feature.entity.ts
|
|
14528
14783
|
import {
|
|
14529
|
-
Entity as
|
|
14530
|
-
Column as
|
|
14531
|
-
ManyToOne as
|
|
14532
|
-
JoinColumn as
|
|
14533
|
-
Index as
|
|
14784
|
+
Entity as Entity93,
|
|
14785
|
+
Column as Column94,
|
|
14786
|
+
ManyToOne as ManyToOne75,
|
|
14787
|
+
JoinColumn as JoinColumn76,
|
|
14788
|
+
Index as Index76,
|
|
14534
14789
|
Check as Check2
|
|
14535
14790
|
} from "typeorm";
|
|
14536
14791
|
var PlanFeature = class extends BaseEntity {
|
|
14537
14792
|
};
|
|
14538
14793
|
// individual index to find features by plan
|
|
14539
14794
|
__decorateClass([
|
|
14540
|
-
|
|
14541
|
-
|
|
14795
|
+
Column94({ name: "plan_id", type: "integer", nullable: false }),
|
|
14796
|
+
Index76()
|
|
14542
14797
|
], PlanFeature.prototype, "planId", 2);
|
|
14543
14798
|
__decorateClass([
|
|
14544
|
-
|
|
14799
|
+
ManyToOne75(() => Plan, (plan) => plan.features, {
|
|
14545
14800
|
onDelete: "CASCADE",
|
|
14546
14801
|
nullable: false
|
|
14547
14802
|
}),
|
|
14548
|
-
|
|
14803
|
+
JoinColumn76({ name: "plan_id" })
|
|
14549
14804
|
], PlanFeature.prototype, "plan", 2);
|
|
14550
14805
|
__decorateClass([
|
|
14551
|
-
|
|
14806
|
+
Column94({ name: "name", type: "varchar", length: 200 })
|
|
14552
14807
|
], PlanFeature.prototype, "name", 2);
|
|
14553
14808
|
__decorateClass([
|
|
14554
|
-
|
|
14555
|
-
|
|
14809
|
+
Column94({ name: "slug", type: "varchar", length: 100 }),
|
|
14810
|
+
Index76()
|
|
14556
14811
|
], PlanFeature.prototype, "slug", 2);
|
|
14557
14812
|
__decorateClass([
|
|
14558
|
-
|
|
14813
|
+
Column94({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
14559
14814
|
], PlanFeature.prototype, "tooltip", 2);
|
|
14560
14815
|
__decorateClass([
|
|
14561
|
-
|
|
14816
|
+
Column94({ name: "sort_order", type: "smallint", default: 0 })
|
|
14562
14817
|
], PlanFeature.prototype, "sortOrder", 2);
|
|
14563
14818
|
__decorateClass([
|
|
14564
|
-
|
|
14819
|
+
Column94({ name: "is_active", type: "boolean", default: true })
|
|
14565
14820
|
], PlanFeature.prototype, "isActive", 2);
|
|
14566
14821
|
PlanFeature = __decorateClass([
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
14822
|
+
Entity93("plan_features"),
|
|
14823
|
+
Index76("idx_plan_features_plan_id", ["planId"]),
|
|
14824
|
+
Index76("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
14570
14825
|
Check2("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
14571
14826
|
], PlanFeature);
|
|
14572
14827
|
|
|
14573
14828
|
// src/entities/plan-pricing.entity.ts
|
|
14574
14829
|
import {
|
|
14575
|
-
Entity as
|
|
14576
|
-
Column as
|
|
14577
|
-
ManyToOne as
|
|
14578
|
-
JoinColumn as
|
|
14579
|
-
Index as
|
|
14830
|
+
Entity as Entity94,
|
|
14831
|
+
Column as Column95,
|
|
14832
|
+
ManyToOne as ManyToOne76,
|
|
14833
|
+
JoinColumn as JoinColumn77,
|
|
14834
|
+
Index as Index77,
|
|
14580
14835
|
Unique,
|
|
14581
14836
|
Check as Check3,
|
|
14582
14837
|
BeforeInsert,
|
|
@@ -14636,56 +14891,56 @@ var PlanPricing = class extends BaseEntity {
|
|
|
14636
14891
|
};
|
|
14637
14892
|
// individual index to find pricing by plan
|
|
14638
14893
|
__decorateClass([
|
|
14639
|
-
|
|
14640
|
-
|
|
14894
|
+
Column95({ name: "plan_id", type: "integer", nullable: false }),
|
|
14895
|
+
Index77()
|
|
14641
14896
|
], PlanPricing.prototype, "planId", 2);
|
|
14642
14897
|
__decorateClass([
|
|
14643
|
-
|
|
14898
|
+
ManyToOne76(() => Plan, (plan) => plan.pricing, {
|
|
14644
14899
|
onDelete: "CASCADE",
|
|
14645
14900
|
nullable: false
|
|
14646
14901
|
}),
|
|
14647
|
-
|
|
14902
|
+
JoinColumn77({ name: "plan_id" })
|
|
14648
14903
|
], PlanPricing.prototype, "plan", 2);
|
|
14649
14904
|
__decorateClass([
|
|
14650
|
-
|
|
14905
|
+
Column95({
|
|
14651
14906
|
name: "billing_cycle",
|
|
14652
14907
|
type: "enum",
|
|
14653
14908
|
enum: PlanPricingBillingCycleEnum
|
|
14654
14909
|
})
|
|
14655
14910
|
], PlanPricing.prototype, "billingCycle", 2);
|
|
14656
14911
|
__decorateClass([
|
|
14657
|
-
|
|
14912
|
+
Column95({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
14658
14913
|
], PlanPricing.prototype, "price", 2);
|
|
14659
14914
|
__decorateClass([
|
|
14660
|
-
|
|
14915
|
+
Column95({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
14661
14916
|
], PlanPricing.prototype, "originalPrice", 2);
|
|
14662
14917
|
__decorateClass([
|
|
14663
|
-
|
|
14918
|
+
Column95({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
14664
14919
|
], PlanPricing.prototype, "discountPct", 2);
|
|
14665
14920
|
__decorateClass([
|
|
14666
|
-
|
|
14921
|
+
Column95({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
14667
14922
|
], PlanPricing.prototype, "currency", 2);
|
|
14668
14923
|
__decorateClass([
|
|
14669
|
-
|
|
14924
|
+
Column95({ name: "is_free", type: "boolean", default: false })
|
|
14670
14925
|
], PlanPricing.prototype, "isFree", 2);
|
|
14671
14926
|
__decorateClass([
|
|
14672
|
-
|
|
14927
|
+
Column95({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
|
|
14673
14928
|
], PlanPricing.prototype, "stripePriceId", 2);
|
|
14674
14929
|
__decorateClass([
|
|
14675
|
-
|
|
14930
|
+
Column95({ name: "trial_days", type: "smallint", default: 0 })
|
|
14676
14931
|
], PlanPricing.prototype, "trialDays", 2);
|
|
14677
14932
|
__decorateClass([
|
|
14678
|
-
|
|
14933
|
+
Column95({ name: "is_active", type: "boolean", default: true })
|
|
14679
14934
|
], PlanPricing.prototype, "isActive", 2);
|
|
14680
14935
|
__decorateClass([
|
|
14681
14936
|
BeforeInsert(),
|
|
14682
14937
|
BeforeUpdate()
|
|
14683
14938
|
], PlanPricing.prototype, "sanitize", 1);
|
|
14684
14939
|
PlanPricing = __decorateClass([
|
|
14685
|
-
|
|
14940
|
+
Entity94("plan_pricings"),
|
|
14686
14941
|
Unique("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
14687
|
-
|
|
14688
|
-
|
|
14942
|
+
Index77("idx_plan_pricings_plan_id", ["planId"]),
|
|
14943
|
+
Index77("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
14689
14944
|
Check3("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
14690
14945
|
Check3("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
14691
14946
|
Check3("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
@@ -14707,22 +14962,22 @@ var Plan = class extends BaseEntity {
|
|
|
14707
14962
|
}
|
|
14708
14963
|
};
|
|
14709
14964
|
__decorateClass([
|
|
14710
|
-
|
|
14965
|
+
Column96({ name: "name", type: "varchar", length: 100 })
|
|
14711
14966
|
], Plan.prototype, "name", 2);
|
|
14712
14967
|
__decorateClass([
|
|
14713
|
-
|
|
14968
|
+
Column96({ name: "slug", type: "varchar", length: 100 })
|
|
14714
14969
|
], Plan.prototype, "slug", 2);
|
|
14715
14970
|
__decorateClass([
|
|
14716
|
-
|
|
14971
|
+
Column96({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
14717
14972
|
], Plan.prototype, "badgeLabel", 2);
|
|
14718
14973
|
__decorateClass([
|
|
14719
|
-
|
|
14974
|
+
Column96({ name: "sort_order", type: "smallint", default: 0 })
|
|
14720
14975
|
], Plan.prototype, "sortOrder", 2);
|
|
14721
14976
|
__decorateClass([
|
|
14722
|
-
|
|
14977
|
+
Column96({ name: "is_active", type: "boolean", default: true })
|
|
14723
14978
|
], Plan.prototype, "isActive", 2);
|
|
14724
14979
|
__decorateClass([
|
|
14725
|
-
|
|
14980
|
+
Column96({
|
|
14726
14981
|
name: "plan_type",
|
|
14727
14982
|
type: "enum",
|
|
14728
14983
|
enum: PlanTypeEnum,
|
|
@@ -14730,35 +14985,35 @@ __decorateClass([
|
|
|
14730
14985
|
})
|
|
14731
14986
|
], Plan.prototype, "planType", 2);
|
|
14732
14987
|
__decorateClass([
|
|
14733
|
-
|
|
14988
|
+
Column96({ name: "metadata", type: "jsonb", default: {} })
|
|
14734
14989
|
], Plan.prototype, "metadata", 2);
|
|
14735
14990
|
__decorateClass([
|
|
14736
14991
|
BeforeInsert2(),
|
|
14737
14992
|
BeforeUpdate2()
|
|
14738
14993
|
], Plan.prototype, "createSlug", 1);
|
|
14739
14994
|
__decorateClass([
|
|
14740
|
-
|
|
14995
|
+
OneToMany32(() => PlanFeature, (feature) => feature.plan, {
|
|
14741
14996
|
cascade: ["insert", "update"]
|
|
14742
14997
|
})
|
|
14743
14998
|
], Plan.prototype, "features", 2);
|
|
14744
14999
|
__decorateClass([
|
|
14745
|
-
|
|
15000
|
+
OneToMany32(() => PlanPricing, (pricing) => pricing.plan, {
|
|
14746
15001
|
cascade: ["insert", "update"]
|
|
14747
15002
|
})
|
|
14748
15003
|
], Plan.prototype, "pricing", 2);
|
|
14749
15004
|
Plan = __decorateClass([
|
|
14750
|
-
|
|
14751
|
-
|
|
14752
|
-
|
|
15005
|
+
Entity95("plans"),
|
|
15006
|
+
Index78("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
15007
|
+
Index78("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
14753
15008
|
Check4("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
14754
15009
|
], Plan);
|
|
14755
15010
|
|
|
14756
15011
|
// src/entities/subscription-feature.entity.ts
|
|
14757
15012
|
import {
|
|
14758
|
-
Entity as
|
|
14759
|
-
Column as
|
|
15013
|
+
Entity as Entity96,
|
|
15014
|
+
Column as Column97,
|
|
14760
15015
|
Check as Check5,
|
|
14761
|
-
Index as
|
|
15016
|
+
Index as Index79,
|
|
14762
15017
|
BeforeInsert as BeforeInsert3,
|
|
14763
15018
|
BeforeUpdate as BeforeUpdate3
|
|
14764
15019
|
} from "typeorm";
|
|
@@ -14776,28 +15031,28 @@ var SubscriptionFeature = class extends BaseEntity {
|
|
|
14776
15031
|
}
|
|
14777
15032
|
};
|
|
14778
15033
|
__decorateClass([
|
|
14779
|
-
|
|
15034
|
+
Column97({ name: "name", type: "varchar", length: 200 })
|
|
14780
15035
|
], SubscriptionFeature.prototype, "name", 2);
|
|
14781
15036
|
__decorateClass([
|
|
14782
|
-
|
|
15037
|
+
Column97({ name: "slug", type: "varchar", length: 100 })
|
|
14783
15038
|
], SubscriptionFeature.prototype, "slug", 2);
|
|
14784
15039
|
__decorateClass([
|
|
14785
|
-
|
|
15040
|
+
Column97({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
14786
15041
|
], SubscriptionFeature.prototype, "tooltip", 2);
|
|
14787
15042
|
__decorateClass([
|
|
14788
|
-
|
|
15043
|
+
Column97({ name: "sort_order", type: "smallint", default: 0 })
|
|
14789
15044
|
], SubscriptionFeature.prototype, "sortOrder", 2);
|
|
14790
15045
|
__decorateClass([
|
|
14791
|
-
|
|
15046
|
+
Column97({ name: "is_active", type: "boolean", default: true })
|
|
14792
15047
|
], SubscriptionFeature.prototype, "isActive", 2);
|
|
14793
15048
|
__decorateClass([
|
|
14794
15049
|
BeforeInsert3(),
|
|
14795
15050
|
BeforeUpdate3()
|
|
14796
15051
|
], SubscriptionFeature.prototype, "createSlug", 1);
|
|
14797
15052
|
SubscriptionFeature = __decorateClass([
|
|
14798
|
-
|
|
14799
|
-
|
|
14800
|
-
|
|
15053
|
+
Entity96("subscription_features"),
|
|
15054
|
+
Index79("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
15055
|
+
Index79("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
|
|
14801
15056
|
Check5("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
|
|
14802
15057
|
], SubscriptionFeature);
|
|
14803
15058
|
export {
|
|
@@ -15224,6 +15479,13 @@ export {
|
|
|
15224
15479
|
UpdateTaskDto,
|
|
15225
15480
|
User,
|
|
15226
15481
|
UserRMQAdapter,
|
|
15482
|
+
UserSubscription,
|
|
15483
|
+
UserSubscriptionPlan,
|
|
15484
|
+
UserSubscriptionPlanFeature,
|
|
15485
|
+
UserSubscriptionPlanPricing,
|
|
15486
|
+
UserSubscriptionPlanPricingBillingCycleEnum,
|
|
15487
|
+
UserSubscriptionPlanTypeEnum,
|
|
15488
|
+
UserSubscriptionStatusEnum,
|
|
15227
15489
|
UserTCPAdapter,
|
|
15228
15490
|
ValidateEmailDto,
|
|
15229
15491
|
ValidateEmailForLoginDto,
|