Something went wrong. Try again.
TypeScript client for accessing TLE Community.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465import type { components } from './schema';import type { ViewResponse as BuildingViewResponse } from './building';
export interface ViewResponse extends BuildingViewResponse { planet: components['schemas']['planet_status']; /** Hourly rate and stored amount, keyed by food type. */ food: Record<string, number>; /** Hourly rate and stored amount, keyed by ore type. */ ore: Record<string, number>; /** Happiness required to settle the next colony. */ next_colony_cost: number; /** Seconds between supply pods being sent. */ pod_delay: number; next_colony_srcs?: number; /** The `sprintf`'d cost, or `0` when the empire has no alliance. */ next_station_cost?: number; insurrect_value?: number;}
export interface ViewPlansParams { building_id: number;}
export interface ViewPlansResponse { plans: Array<{ quantity?: number; name?: string; level?: number; extra_build_level?: number }>; status: { server: components['schemas']['server_status']; empire?: components['schemas']['empire_status']; body?: components['schemas']['body_status']; };}
export interface ViewIncomingSupplyChainsParams { building_id: number;}
export interface ViewIncomingSupplyChainsResponse { supply_chains: Array<{ id?: number; from_body?: { id?: number; name?: string; x?: number; y?: number; image?: string }; resource_hour?: number; resource_type?: string; percent_transferred?: number; stalled?: 1 | 0; }>; status: { server: components['schemas']['server_status']; empire?: components['schemas']['empire_status']; body?: components['schemas']['body_status']; };}
export interface SubsidizePodCooldownParams { building_id: number;}
export interface SubsidizePodCooldownResponse { building: components['schemas']['building']; status: { server: components['schemas']['server_status']; empire?: components['schemas']['empire_status']; body?: components['schemas']['body_status']; };}