UNPKG

ecoledirecte.js

Version:

Good-looking client for EcoleDirecte's private API.

33 lines (32 loc) 795 B
import { compte as _compte, ecriture as _ecriture } from "ecoledirecte-api-types"; export type walletType = "wallet" | "activity"; export declare class Wallet { id: number; /** * Should be identical to `id` */ studentId: number; type: walletType; available: boolean; unitCost: number; editableAmount: boolean; editableQuantity: boolean; code: string; classServiceId: number; name: string; balance: number; future: unknown[]; transactions: Transaction[]; _raw: _compte; constructor(o: _compte); } export declare class Transaction { date: Date; name?: string; lettering?: string; compInfo?: string; amount: number; transactions?: Transaction[]; _raw: _ecriture; constructor(o: _ecriture); }