{"version":3,"file":"exporter.cjs","names":["schema","headers","builder","CsvBuilder"],"sources":["../../src/main/exporter.ts"],"sourcesContent":["import CsvBuilder from 'csv-builder';\n\n/**\n * Schema for the output csv.\n * Based on https://letterboxd.com/about/importing-data/\n */\nconst schema = {\n  headers: [\n    'LetterboxdURI',\n    'tmdbID',\n    'imdbID',\n    'Title',\n    'Year',\n    'Directors',\n    'WatchedDate',\n    'Rating',\n    'Rating10',\n    'Tags',\n    'Review',\n  ],\n};\n\n/**\n * The instance of CsvBuilder we'll use to export the data.\n * We need to remap the format of the last watched date to YYYY-MM-DD\n * to comply with letterboxd's formatting\n */\nconst builder = new CsvBuilder(schema);\nexport default builder;\n"],"mappings":";;;;;;AAAA;AAAqC;AAErC;AACA;AACA;AACA;AACA,MAAMA,MAAM,GAAG;EACbC,OAAO,EAAE,CACP,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,MAAM,EACN,WAAW,EACX,aAAa,EACb,QAAQ,EACR,UAAU,EACV,MAAM,EACN,QAAQ;AAEZ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,MAAMC,OAAO,GAAG,IAAIC,mBAAU,CAACH,MAAM,CAAC;AAAC,eACxBE,OAAO;AAAA"}