Revert "feat: medal promotion on servers page (#4117)"

This reverts commit 14eac461be.
This commit is contained in:
Prospector
2025-08-18 12:26:11 -07:00
parent b2ff2d8737
commit 2e6cff7efc
34 changed files with 286 additions and 2477 deletions

View File

@@ -52,9 +52,6 @@ export interface Server {
flows: {
intro?: boolean
}
is_medal?: boolean
medal_expires?: string
}
export interface Servers {

View File

@@ -37,7 +37,6 @@ export interface ServerGeneral {
flows?: {
intro?: boolean
}
is_medal?: boolean
}
export interface Allocation {

View File

@@ -513,38 +513,6 @@ export interface ModerationJudgements {
[sha1: string]: ModerationJudgement
}
// Subscriptions
export interface UserSubscription {
id: string
user_id: string
price_id: string
interval: 'five-days' | 'monthly' | 'quarterly' | 'yearly'
status: 'provisioned' | 'unprovisioned'
created: string // ISO date string
metadata?: SubscriptionMetadata
}
export interface Charge {
id: string
user_id: string
price_id: string
amount: number
currency_code: string
status: 'open' | 'processing' | 'succeeded' | 'failed' | 'cancelled' | 'expiring'
due: string // ISO date string
last_attempt?: string // ISO date string
type: 'one-time' | 'subscription' | 'proration' | 'refund'
subscription_id?: string
subscription_interval?: 'five-days' | 'monthly' | 'quarterly' | 'yearly'
platform: 'stripe' | 'none'
parent_charge_id?: string
net?: number
}
export type SubscriptionMetadata =
| { type: 'pyro'; id: string; region?: string }
| { type: 'medal'; id: string }
// Delphi
export interface DelphiReport {
id: string