import { isoly } from "isoly" import { isly } from "isly" import { Rail } from "../../Rail" import { Supplier } from "../../Supplier" import { Balance } from "../Balance" import { Category } from "./Category" export interface Fetchable { label: string supplier: Supplier reference: string currencies: isoly.Currency[] type: Category rail: Rail.Address[] balance: Balance } export namespace Fetchable { export const type = isly.object({ label: isly.string(), supplier: Supplier.type, reference: isly.string(), currencies: isly.fromIs("Account.Fetchable.currencies", isoly.Currency.is).array(), type: Category.type, rail: Rail.Address.type.array(), balance: Balance.type, }) }