@owostack/types 0.3.1 → 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 +10 -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") */
@@ -553,6 +555,8 @@ interface PlanDefinition {
553
555
  currency: Currency;
554
556
  /** Billing interval */
555
557
  interval: PlanInterval;
558
+ /** Whether this plan is recurring or one-time */
559
+ billingType: "recurring" | "one_time";
556
560
  /** Features included in this plan */
557
561
  features: PlanFeatureEntry[];
558
562
  /** Plan group for upgrade/downgrade logic */
@@ -691,6 +695,8 @@ interface PublicPlanFeature {
691
695
  enabled: boolean;
692
696
  /** Usage limit (null = unlimited) */
693
697
  limit: number | null;
698
+ /** Trial usage limit (null = unlimited) */
699
+ trialLimit?: number | null;
694
700
  /** Reset interval */
695
701
  resetInterval: string | null;
696
702
  /** Unit label (e.g. "call", "message", "GB") */
@@ -736,6 +742,8 @@ interface PublicPlan {
736
742
  planGroup: string | null;
737
743
  /** Trial period in days (0 = no trial) */
738
744
  trialDays: number;
745
+ /** Whether a card is required to start the trial */
746
+ trialCardRequired: boolean;
739
747
  /** Features included in this plan */
740
748
  features: PublicPlanFeature[];
741
749
  }
@@ -782,6 +790,7 @@ interface SyncPayload {
782
790
  price: number;
783
791
  currency: Currency;
784
792
  interval: PlanInterval;
793
+ billingType?: "recurring" | "one_time";
785
794
  planGroup?: string;
786
795
  trialDays?: number;
787
796
  provider?: string;
@@ -792,6 +801,7 @@ interface SyncPayload {
792
801
  slug: string;
793
802
  enabled: boolean;
794
803
  limit?: number | null;
804
+ trialLimit?: number | null;
795
805
  reset?: ResetInterval;
796
806
  usageModel?: "included" | "usage_based" | "prepaid";
797
807
  pricePerUnit?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owostack/types",
3
- "version": "0.3.1",
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
  },