UNPKG

feedbaby-client

Version:
22 lines (21 loc) 774 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const CsvFile_1 = require("../CsvFile"); const json2csv_1 = require("json2csv"); class BabyDateOfBirthCsv extends CsvFile_1.CsvFile { static create() { return new BabyDateOfBirthCsv(new json2csv_1.Parser(CsvFile_1.CsvFile.createOptions(BabyDateOfBirthCsv.HEADERS))); // const parserOptions = {fields: BabyDateOfBirthCsv.HEADERS, ...CsvFile.COMMON_PARSER_CONFIG}; // return new BabyDateOfBirthCsv(new Parser<BabyDateOfBirth>(parserOptions)); } getFilename() { return "baby_date_of_birth.csv"; } } exports.BabyDateOfBirthCsv = BabyDateOfBirthCsv; BabyDateOfBirthCsv.HEADERS = [ "id", "day_of_the_month", "month_of_the_year", "year" ];