feedbaby-client
Version:
Client for the FeedBaby App
24 lines (23 loc) • 560 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const CsvFile_1 = require("../CsvFile");
const json2csv_1 = require("json2csv");
class GrowthCsv extends CsvFile_1.CsvFile {
static create() {
return new GrowthCsv(new json2csv_1.Parser(CsvFile_1.CsvFile.createOptions(GrowthCsv.HEADERS)));
}
getFilename() {
return "growths.csv";
}
}
exports.GrowthCsv = GrowthCsv;
GrowthCsv.HEADERS = [
"id",
"Day",
"Weight",
"Weight Unit",
"Height",
"Head",
"Length Unit",
"Notes"
];