@experts_hub/shared 1.0.677 → 1.0.678
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/index.js +7 -20
- package/dist/index.mjs +7 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13510,7 +13510,7 @@ PlanFeature = __decorateClass([
|
|
|
13510
13510
|
(0, import_typeorm85.Entity)("plan_features"),
|
|
13511
13511
|
(0, import_typeorm85.Index)("idx_plan_features_plan_id", ["planId"]),
|
|
13512
13512
|
(0, import_typeorm85.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
13513
|
-
(0, import_typeorm85.Check)("chk_plan_features_sort_order_positive", '"
|
|
13513
|
+
(0, import_typeorm85.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
13514
13514
|
], PlanFeature);
|
|
13515
13515
|
|
|
13516
13516
|
// src/entities/plan-pricing.entity.ts
|
|
@@ -13619,24 +13619,11 @@ PlanPricing = __decorateClass([
|
|
|
13619
13619
|
(0, import_typeorm86.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
13620
13620
|
(0, import_typeorm86.Index)("idx_plan_pricings_plan_id", ["planId"]),
|
|
13621
13621
|
(0, import_typeorm86.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
13622
|
-
(0, import_typeorm86.Check)("
|
|
13623
|
-
(0, import_typeorm86.Check)(
|
|
13624
|
-
|
|
13625
|
-
|
|
13626
|
-
),
|
|
13627
|
-
(0, import_typeorm86.Check)(
|
|
13628
|
-
"chk_plan_pricings_original_gte_price",
|
|
13629
|
-
'"originalPrice" IS NULL OR "originalPrice" >= "price"'
|
|
13630
|
-
),
|
|
13631
|
-
(0, import_typeorm86.Check)(
|
|
13632
|
-
"chk_plan_pricings_discount_range",
|
|
13633
|
-
'"discountPct" IS NULL OR ("discountPct" >= 1 AND "discountPct" <= 99)'
|
|
13634
|
-
),
|
|
13635
|
-
(0, import_typeorm86.Check)("chk_plan_pricings_trial_days_non_negative", '"trialDays" >= 0'),
|
|
13636
|
-
(0, import_typeorm86.Check)(
|
|
13637
|
-
"chk_plan_pricings_free_price_zero",
|
|
13638
|
-
'("isFree" = false) OR ("isFree" = true AND "price" = 0)'
|
|
13639
|
-
)
|
|
13622
|
+
(0, import_typeorm86.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
13623
|
+
(0, import_typeorm86.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
13624
|
+
(0, import_typeorm86.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
13625
|
+
(0, import_typeorm86.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
|
|
13626
|
+
(0, import_typeorm86.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
|
|
13640
13627
|
], PlanPricing);
|
|
13641
13628
|
|
|
13642
13629
|
// src/entities/plan.entity.ts
|
|
@@ -13683,7 +13670,7 @@ Plan = __decorateClass([
|
|
|
13683
13670
|
(0, import_typeorm87.Entity)("plans"),
|
|
13684
13671
|
(0, import_typeorm87.Index)("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
13685
13672
|
(0, import_typeorm87.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
13686
|
-
(0, import_typeorm87.Check)("chk_plans_sort_order_positive", '"
|
|
13673
|
+
(0, import_typeorm87.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
13687
13674
|
], Plan);
|
|
13688
13675
|
// Annotate the CommonJS export names for ESM import in node:
|
|
13689
13676
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -13696,7 +13696,7 @@ PlanFeature = __decorateClass([
|
|
|
13696
13696
|
Entity81("plan_features"),
|
|
13697
13697
|
Index66("idx_plan_features_plan_id", ["planId"]),
|
|
13698
13698
|
Index66("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
13699
|
-
Check2("chk_plan_features_sort_order_positive", '"
|
|
13699
|
+
Check2("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
13700
13700
|
], PlanFeature);
|
|
13701
13701
|
|
|
13702
13702
|
// src/entities/plan-pricing.entity.ts
|
|
@@ -13815,24 +13815,11 @@ PlanPricing = __decorateClass([
|
|
|
13815
13815
|
Unique("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
13816
13816
|
Index67("idx_plan_pricings_plan_id", ["planId"]),
|
|
13817
13817
|
Index67("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
13818
|
-
Check3("
|
|
13819
|
-
Check3(
|
|
13820
|
-
|
|
13821
|
-
|
|
13822
|
-
)
|
|
13823
|
-
Check3(
|
|
13824
|
-
"chk_plan_pricings_original_gte_price",
|
|
13825
|
-
'"originalPrice" IS NULL OR "originalPrice" >= "price"'
|
|
13826
|
-
),
|
|
13827
|
-
Check3(
|
|
13828
|
-
"chk_plan_pricings_discount_range",
|
|
13829
|
-
'"discountPct" IS NULL OR ("discountPct" >= 1 AND "discountPct" <= 99)'
|
|
13830
|
-
),
|
|
13831
|
-
Check3("chk_plan_pricings_trial_days_non_negative", '"trialDays" >= 0'),
|
|
13832
|
-
Check3(
|
|
13833
|
-
"chk_plan_pricings_free_price_zero",
|
|
13834
|
-
'("isFree" = false) OR ("isFree" = true AND "price" = 0)'
|
|
13835
|
-
)
|
|
13818
|
+
Check3("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
13819
|
+
Check3("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
13820
|
+
Check3("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
13821
|
+
Check3("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
|
|
13822
|
+
Check3("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
|
|
13836
13823
|
], PlanPricing);
|
|
13837
13824
|
|
|
13838
13825
|
// src/entities/plan.entity.ts
|
|
@@ -13879,7 +13866,7 @@ Plan = __decorateClass([
|
|
|
13879
13866
|
Entity83("plans"),
|
|
13880
13867
|
Index68("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
13881
13868
|
Index68("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
13882
|
-
Check4("chk_plans_sort_order_positive", '"
|
|
13869
|
+
Check4("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
13883
13870
|
], Plan);
|
|
13884
13871
|
export {
|
|
13885
13872
|
ADMIN_FREELANCER_PATTERN,
|