mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 01:35:39 -04:00
- Add `GET /api/export/user-data` route that streams a JSON attachment of the authenticated user's full library data, named `sofa-export-<name>-<date>.json` - Add `generateUserExport` in `@sofa/core/export` and a matching `parseSofaExport` parser so exported files can be re-imported via the existing import pipeline - Register `sofa` as a new `ImportSource` in the API contract/schemas and wire up `parseSofaExport` in the `parseFile` procedure - Add `EXPORT_FAILED` error code to the API error registry and surface it in web and native error-message maps - Update the account settings section with export/import UI (download button, import progress) - Add tests for `generateUserExport`, `parseSofaExport`, and round-trip fidelity
56 lines
1.6 KiB
JSON
56 lines
1.6 KiB
JSON
{
|
|
"name": "@sofa/core",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": {
|
|
"./availability": "./src/availability.ts",
|
|
"./backup": "./src/backup.ts",
|
|
"./cache": "./src/cache.ts",
|
|
"./colors": "./src/colors.ts",
|
|
"./credits": "./src/credits.ts",
|
|
"./cron": "./src/cron.ts",
|
|
"./discovery": "./src/discovery.ts",
|
|
"./export": "./src/export.ts",
|
|
"./image-cache": "./src/image-cache.ts",
|
|
"./imports": "./src/imports/index.ts",
|
|
"./imports/parsers": "./src/imports/parsers.ts",
|
|
"./integrations": "./src/integrations.ts",
|
|
"./lists": "./src/lists.ts",
|
|
"./metadata": "./src/metadata.ts",
|
|
"./person": "./src/person.ts",
|
|
"./providers": "./src/providers.ts",
|
|
"./settings": "./src/settings.ts",
|
|
"./system-health": "./src/system-health.ts",
|
|
"./telemetry": "./src/telemetry.ts",
|
|
"./thumbhash": "./src/thumbhash.ts",
|
|
"./tracking": "./src/tracking.ts",
|
|
"./update-check": "./src/update-check.ts",
|
|
"./webhooks": "./src/webhooks.ts"
|
|
},
|
|
"scripts": {
|
|
"lint": "oxlint",
|
|
"format": "oxfmt --config ../../.oxfmtrc.json",
|
|
"format:check": "oxfmt --check --config ../../.oxfmtrc.json",
|
|
"check-types": "tsc --noEmit",
|
|
"test": "bun test"
|
|
},
|
|
"dependencies": {
|
|
"@sofa/api": "workspace:*",
|
|
"@sofa/config": "workspace:*",
|
|
"@sofa/db": "workspace:*",
|
|
"@sofa/logger": "workspace:*",
|
|
"@sofa/tmdb": "workspace:*",
|
|
"adm-zip": "0.5.16",
|
|
"node-vibrant": "4.0.4",
|
|
"sharp": "0.34.5",
|
|
"thumbhash": "catalog:",
|
|
"zod": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@types/adm-zip": "0.5.8",
|
|
"@types/bun": "catalog:",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|