@experts_hub/shared 1.0.697 → 1.0.699

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.
@@ -13,6 +13,7 @@ export declare class Plan extends BaseEntity {
13
13
  isActive: boolean;
14
14
  planType: PlanTypeEnum;
15
15
  metadata: Record<string, unknown>;
16
+ stripeProductId: string | null;
16
17
  createSlug(): void;
17
18
  features: PlanFeature[];
18
19
  pricing: PlanPricing[];
package/dist/index.d.mts CHANGED
@@ -39,6 +39,7 @@ declare class LoginDto {
39
39
  email: string;
40
40
  password: string;
41
41
  scope: ScopeEnum$3;
42
+ ip: string;
42
43
  }
43
44
 
44
45
  declare enum LoginViaOtpScopeEnum {
@@ -51,6 +52,7 @@ declare class LoginViaOtpDto {
51
52
  email: string;
52
53
  otp: string;
53
54
  scope: LoginViaOtpScopeEnum;
55
+ ip: string;
54
56
  }
55
57
 
56
58
  declare class RefreshDto {
@@ -5078,6 +5080,7 @@ declare class Plan extends BaseEntity {
5078
5080
  isActive: boolean;
5079
5081
  planType: PlanTypeEnum;
5080
5082
  metadata: Record<string, unknown>;
5083
+ stripeProductId: string | null;
5081
5084
  createSlug(): void;
5082
5085
  features: PlanFeature[];
5083
5086
  pricing: PlanPricing[];
package/dist/index.d.ts CHANGED
@@ -39,6 +39,7 @@ declare class LoginDto {
39
39
  email: string;
40
40
  password: string;
41
41
  scope: ScopeEnum$3;
42
+ ip: string;
42
43
  }
43
44
 
44
45
  declare enum LoginViaOtpScopeEnum {
@@ -51,6 +52,7 @@ declare class LoginViaOtpDto {
51
52
  email: string;
52
53
  otp: string;
53
54
  scope: LoginViaOtpScopeEnum;
55
+ ip: string;
54
56
  }
55
57
 
56
58
  declare class RefreshDto {
@@ -5078,6 +5080,7 @@ declare class Plan extends BaseEntity {
5078
5080
  isActive: boolean;
5079
5081
  planType: PlanTypeEnum;
5080
5082
  metadata: Record<string, unknown>;
5083
+ stripeProductId: string | null;
5081
5084
  createSlug(): void;
5082
5085
  features: PlanFeature[];
5083
5086
  pricing: PlanPricing[];
package/dist/index.js CHANGED
@@ -542,6 +542,9 @@ __decorateClass([
542
542
  message: `Scope must be one of: ${Object.values(ScopeEnum).join(", ")}`
543
543
  })
544
544
  ], LoginDto.prototype, "scope", 2);
545
+ __decorateClass([
546
+ (0, import_class_validator.IsOptional)()
547
+ ], LoginDto.prototype, "ip", 2);
545
548
 
546
549
  // src/modules/authentication/dto/login-via-otp.dto.ts
547
550
  var import_class_validator2 = require("class-validator");
@@ -565,6 +568,9 @@ __decorateClass([
565
568
  message: `Scope must be one of: ${Object.values(LoginViaOtpScopeEnum).join(", ")}`
566
569
  })
567
570
  ], LoginViaOtpDto.prototype, "scope", 2);
571
+ __decorateClass([
572
+ (0, import_class_validator2.IsOptional)()
573
+ ], LoginViaOtpDto.prototype, "ip", 2);
568
574
 
569
575
  // src/modules/authentication/dto/refresh.dto.ts
570
576
  var import_class_validator3 = require("class-validator");
@@ -14815,6 +14821,9 @@ __decorateClass([
14815
14821
  __decorateClass([
14816
14822
  (0, import_typeorm99.Column)({ name: "metadata", type: "jsonb", default: {} })
14817
14823
  ], Plan.prototype, "metadata", 2);
14824
+ __decorateClass([
14825
+ (0, import_typeorm99.Column)({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
14826
+ ], Plan.prototype, "stripeProductId", 2);
14818
14827
  __decorateClass([
14819
14828
  (0, import_typeorm99.BeforeInsert)(),
14820
14829
  (0, import_typeorm99.BeforeUpdate)()
@@ -14831,7 +14840,10 @@ __decorateClass([
14831
14840
  ], Plan.prototype, "pricing", 2);
14832
14841
  Plan = __decorateClass([
14833
14842
  (0, import_typeorm99.Entity)("plans"),
14834
- (0, import_typeorm99.Index)("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
14843
+ (0, import_typeorm99.Index)("idx_plans_slug_plan_type", ["slug", "planType"], {
14844
+ unique: true,
14845
+ where: '"is_deleted" IS FALSE'
14846
+ }),
14835
14847
  (0, import_typeorm99.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
14836
14848
  (0, import_typeorm99.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
14837
14849
  ], Plan);