Realm page

This commit is contained in:
2025-11-30 00:39:05 +08:00
parent 0523df45cf
commit 302d5cb293
8 changed files with 744 additions and 8 deletions

View File

@@ -1,8 +1,9 @@
// Re-export all types from separate files for easy importing
export type { SnFileMeta, SnCloudFile as SnAttachment, SnPost } from './post'
export type { SnVerification, SnPublisher } from './publisher'
export type { SnActivity } from './activity'
export type { SnWalletOrder, OrderStatus } from './order'
export type { SnVersion } from './version'
export type { SnAccountLink, SnAccountBadge, SnAccountPerkSubscription, SnAccountProfile, SnAccount } from './user'
export type { GeoIpLocation, SnAuthChallenge, SnAuthSession, SnAuthFactor, SnAccountConnection } from './geo'
export * from "./post"
export * from "./publisher"
export * from "./activity"
export * from "./order"
export * from "./version"
export * from "./user"
export * from "./geo"
export * from "./realm"

19
app/types/api/realm.ts Normal file
View File

@@ -0,0 +1,19 @@
import type { SnCloudFile } from "./post"
import type { SnVerification as SnVerificationMark } from "./publisher"
export interface SnRealm {
id: string
slug: string
name: string
description?: string
isCommunity: boolean
isPublic: boolean
picture?: SnCloudFile
background?: SnCloudFile
verification?: SnVerificationMark
accountId: string
resourceIdentifier: string
createdAt: Date
updatedAt: Date
deletedAt?: Date
}