feedbaby-client
Version:
Client for the FeedBaby App
28 lines (27 loc) • 1.15 kB
TypeScript
/// <reference types="node" />
import AdmZip from "adm-zip";
import { AppDataZip, AppDataZipReader } from "../client/FeedBabyClient";
import { Feed } from "../models/Feed";
import { Growth } from "../models/Growth";
import { Medicine } from "../models/Medicine";
import { ReadableFile } from "./CsvFile";
export declare class AppDataAdmZip implements AppDataZip {
private readonly zip;
private readonly feedFile;
private readonly growthFile;
private readonly medicineFile;
constructor(zip: AdmZip, feedFile: ReadableFile<Feed[]>, growthFile: ReadableFile<Growth[]>, medicineFile: ReadableFile<Medicine[]>);
getFeeds(): Promise<Feed[]>;
getGrowths(): Promise<Growth[]>;
getMedicines(): Promise<Medicine[]>;
getBuffer(): Buffer;
private read;
}
export declare class AppDataAdmZipReader implements AppDataZipReader {
private readonly feedFile;
private readonly growthFile;
private readonly medicineFile;
constructor(feedFile: ReadableFile<Feed[]>, growthFile: ReadableFile<Growth[]>, medicineFile: ReadableFile<Medicine[]>);
read(zip: Buffer): AppDataZip;
private static checkValidZip;
}