You've already forked AstralRinth
forked from didirus/AstralRinth
Medal promo v2 (#4220)
* Revert "Revert "feat: medal promotion on servers page (#4117)"" This reverts commit2e6cff7efc. * Revert "Revert "update changelog"" This reverts commitb2ff2d8737. * Revert "Revert "turn off medal promo"" This reverts commiteaa4b44a16. * Revert "Revert "Revert "turn off medal promo""" This reverts commit76d0ef03e7. * Revert "Revert "fix medal thing showing up for everyone"" This reverts commitee8c47adcb. * New medal colors * Update medal server listings * Upgrade modal enhancements & more medal consistency * undo app promo changes * Only apply medal promo with flag on * remove unneessary files * lint * disable medal flag
This commit is contained in:
@@ -10,6 +10,12 @@ export type VersionEntry = {
|
||||
}
|
||||
|
||||
const VERSIONS: VersionEntry[] = [
|
||||
{
|
||||
date: `2025-08-18T11:25:00-07:00`,
|
||||
product: 'web',
|
||||
body: `### Improvements
|
||||
- Added Modrinth Servers free trial promotion in partnership with Medal.`,
|
||||
},
|
||||
{
|
||||
date: `2025-08-18T09:10:00-07:00`,
|
||||
product: 'servers',
|
||||
|
||||
@@ -52,6 +52,9 @@ export interface Server {
|
||||
flows: {
|
||||
intro?: boolean
|
||||
}
|
||||
|
||||
is_medal?: boolean
|
||||
medal_expires?: string
|
||||
}
|
||||
|
||||
export interface Servers {
|
||||
|
||||
@@ -37,6 +37,7 @@ export interface ServerGeneral {
|
||||
flows?: {
|
||||
intro?: boolean
|
||||
}
|
||||
is_medal?: boolean
|
||||
}
|
||||
|
||||
export interface Allocation {
|
||||
|
||||
@@ -513,6 +513,38 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user