import type { components } from './schema'; import type { ViewResponse as BuildingViewResponse } from './building'; export interface PartyStatus { seconds_remaining: number; happiness: number; can_throw: 1 | 0; } export interface ViewResponse extends BuildingViewResponse { party: PartyStatus; } export interface ThrowAPartyParams { building_id: number; } export interface ThrowAPartyResponse { building: components['schemas']['building']; status: { server: components['schemas']['server_status']; empire?: components['schemas']['empire_status']; body?: components['schemas']['body_status']; }; party: { seconds_remaining: number; happiness: number; can_throw: 1 | 0 }; } export interface SubsidizePartyParams { building_id: number; } export interface SubsidizePartyResponse { building: components['schemas']['building']; status: { server: components['schemas']['server_status']; empire?: components['schemas']['empire_status']; body?: components['schemas']['body_status']; }; party: { seconds_remaining: number; happiness: number; can_throw: 1 | 0 }; }