@experts_hub/shared 1.0.698 → 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
@@ -5080,6 +5080,7 @@ declare class Plan extends BaseEntity {
5080
5080
  isActive: boolean;
5081
5081
  planType: PlanTypeEnum;
5082
5082
  metadata: Record<string, unknown>;
5083
+ stripeProductId: string | null;
5083
5084
  createSlug(): void;
5084
5085
  features: PlanFeature[];
5085
5086
  pricing: PlanPricing[];
package/dist/index.d.ts CHANGED
@@ -5080,6 +5080,7 @@ declare class Plan extends BaseEntity {
5080
5080
  isActive: boolean;
5081
5081
  planType: PlanTypeEnum;
5082
5082
  metadata: Record<string, unknown>;
5083
+ stripeProductId: string | null;
5083
5084
  createSlug(): void;
5084
5085
  features: PlanFeature[];
5085
5086
  pricing: PlanPricing[];
package/dist/index.js CHANGED
@@ -14821,6 +14821,9 @@ __decorateClass([
14821
14821
  __decorateClass([
14822
14822
  (0, import_typeorm99.Column)({ name: "metadata", type: "jsonb", default: {} })
14823
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);
14824
14827
  __decorateClass([
14825
14828
  (0, import_typeorm99.BeforeInsert)(),
14826
14829
  (0, import_typeorm99.BeforeUpdate)()
@@ -14837,7 +14840,10 @@ __decorateClass([
14837
14840
  ], Plan.prototype, "pricing", 2);
14838
14841
  Plan = __decorateClass([
14839
14842
  (0, import_typeorm99.Entity)("plans"),
14840
- (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
+ }),
14841
14847
  (0, import_typeorm99.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
14842
14848
  (0, import_typeorm99.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
14843
14849
  ], Plan);
package/dist/index.mjs CHANGED
@@ -14999,6 +14999,9 @@ __decorateClass([
14999
14999
  __decorateClass([
15000
15000
  Column96({ name: "metadata", type: "jsonb", default: {} })
15001
15001
  ], Plan.prototype, "metadata", 2);
15002
+ __decorateClass([
15003
+ Column96({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
15004
+ ], Plan.prototype, "stripeProductId", 2);
15002
15005
  __decorateClass([
15003
15006
  BeforeInsert2(),
15004
15007
  BeforeUpdate2()
@@ -15015,7 +15018,10 @@ __decorateClass([
15015
15018
  ], Plan.prototype, "pricing", 2);
15016
15019
  Plan = __decorateClass([
15017
15020
  Entity95("plans"),
15018
- Index78("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15021
+ Index78("idx_plans_slug_plan_type", ["slug", "planType"], {
15022
+ unique: true,
15023
+ where: '"is_deleted" IS FALSE'
15024
+ }),
15019
15025
  Index78("idx_plans_active_sort", ["isActive", "sortOrder"]),
15020
15026
  Check4("chk_plans_sort_order_positive", '"sort_order" >= 0')
15021
15027
  ], Plan);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.698",
3
+ "version": "1.0.699",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",