import type { JsonObject } from '@x12i/api-simulator'; /** * Seed members for the `members-api`. Unlike books, members never change in * this demo, so `get-member.ts` reads straight from `SimulationContext.data` * instead of going through the ledger -- a `simulation` handler doesn't have * to manage its own state store when plain lookups are enough. */ export interface Member extends JsonObject { id: string; name: string; tier: 'standard' | 'premium'; } export const members: Member[] = [ { id: 'member-ami', name: 'Ami', tier: 'standard' }, { id: 'member-nina', name: 'Nina', tier: 'premium' } ];