/* As specified by https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part2-packages/OpenDocument-v1.3-os-part2-packages.html#__RefHeading__752825_826425813 */ /** @typedef {'application/vnd.oasis.opendocument.text' | 'application/vnd.oasis.opendocument.spreadsheet'} ODFMediaType */ /** @typedef {'1.2' | '1.3' | '1.4'} ODFVersion */ /** * @typedef ODFManifestFileEntry * @prop {string} fullPath * @prop {string} mediaType * @prop {string} [version] */ /** * @typedef ODFManifest * @prop {ODFMediaType} mediaType * @prop {ODFVersion} version * @prop {ODFManifestFileEntry[]} fileEntries */ /** * * @param {ODFManifestFileEntry} fileEntry * @returns {string} */ function makeFileEntry({fullPath, mediaType}){ return `` } /** * * @param {ODFManifest} odfManifest * @returns {string} */ export default function makeManifestFile({fileEntries, mediaType, version}){ return ` ${fileEntries.map(makeFileEntry).join('\n')} ` }