Something went wrong. Try again.
TypeScript client for accessing TLE Community.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556import type { components } from './schema';import type { ViewResponse as BuildingViewResponse } from './building';
export interface ReserveStatus { can: 1 | 0; seconds_remaining: number; max_reserve_duration: number; max_reserve_size: number; resources: Array<{ type: string; quantity: number }>;}
export interface ViewResponse extends BuildingViewResponse { reserve: ReserveStatus;}
export interface ReserveParams { building_id: number; resources: Array<{ type: string; quantity: number }>;}
export interface ReserveResponse { building: components['schemas']['building']; status: { server: components['schemas']['server_status']; empire?: components['schemas']['empire_status']; body?: components['schemas']['body_status']; }; reserve: ReserveStatus;}
export interface ReleaseReserveParams { building_id: number;}
export interface ReleaseReserveResponse { status: { server: components['schemas']['server_status']; empire?: components['schemas']['empire_status']; body?: components['schemas']['body_status']; };}
export interface GetStoredResourcesParams { building_id: number;}
export interface GetStoredResourcesResponse { status: { server: components['schemas']['server_status']; empire?: components['schemas']['empire_status']; body?: components['schemas']['body_status']; }; cargo_space_used_each: number; resources: Record<string, number>;}