From e0c83e36dc7d5060917150013cffee906a95267fd2839e21482e5541c885eb9a Mon Sep 17 00:00:00 2001 From: Claude Dev Date: Sat, 14 Mar 2026 23:36:44 -0400 Subject: [PATCH] feat: add PlanPrice interface and update Plan/Subscription types Co-Authored-By: Claude Opus 4.6 (1M context) --- website/resources/ts/types/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/website/resources/ts/types/index.ts b/website/resources/ts/types/index.ts index 9ce0f84..d8128fd 100644 --- a/website/resources/ts/types/index.ts +++ b/website/resources/ts/types/index.ts @@ -45,6 +45,14 @@ export interface SharedPageProps { domains: DomainProps } +export interface PlanPrice { + id: number + plan_id: number + billing_cycle: 'monthly' | 'quarterly' | 'semi_annual' | 'annual' + price: string + stripe_price_id: string | null +} + export interface Plan { id: number name: string @@ -57,6 +65,7 @@ export interface Plan { stock_quantity: number | null status: string sort_order: number + prices?: PlanPrice[] } export interface Subscription { @@ -64,6 +73,7 @@ export interface Subscription { type: string stripe_status: string gateway: string + billing_cycle: 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | null current_period_start: string | null current_period_end: string | null ends_at: string | null