@owostack/types 0.3.2 → 0.3.3

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -0
  2. package/package.json +2 -1
package/dist/index.d.ts CHANGED
@@ -494,6 +494,8 @@ type CatalogEntry = PlanDefinition | CreditSystemDefinition | CreditPackDefiniti
494
494
  interface MeteredFeatureConfig {
495
495
  /** Limit for this plan (null = unlimited) */
496
496
  limit?: number | null;
497
+ /** Limit for this plan during a trial period (null = unlimited) */
498
+ trialLimit?: number | null;
497
499
  /** Reset interval (default: "monthly") */
498
500
  reset?: ResetInterval;
499
501
  /** Overage behavior (default: "block") */
@@ -693,6 +695,8 @@ interface PublicPlanFeature {
693
695
  enabled: boolean;
694
696
  /** Usage limit (null = unlimited) */
695
697
  limit: number | null;
698
+ /** Trial usage limit (null = unlimited) */
699
+ trialLimit?: number | null;
696
700
  /** Reset interval */
697
701
  resetInterval: string | null;
698
702
  /** Unit label (e.g. "call", "message", "GB") */
@@ -738,6 +742,8 @@ interface PublicPlan {
738
742
  planGroup: string | null;
739
743
  /** Trial period in days (0 = no trial) */
740
744
  trialDays: number;
745
+ /** Whether a card is required to start the trial */
746
+ trialCardRequired: boolean;
741
747
  /** Features included in this plan */
742
748
  features: PublicPlanFeature[];
743
749
  }
@@ -795,6 +801,7 @@ interface SyncPayload {
795
801
  slug: string;
796
802
  enabled: boolean;
797
803
  limit?: number | null;
804
+ trialLimit?: number | null;
798
805
  reset?: ResetInterval;
799
806
  usageModel?: "included" | "usage_based" | "prepaid";
800
807
  pricePerUnit?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owostack/types",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Shared TypeScript types for Owostack",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -17,6 +17,7 @@
17
17
  "exports": {
18
18
  ".": {
19
19
  "types": "./dist/index.d.ts",
20
+ "development": "./src/index.ts",
20
21
  "import": "./dist/index.js"
21
22
  }
22
23
  },