0c6650f3c6
Drop-in S3-compatible backend for object storage (media + email attachments) — the swap the StoragePort seam was designed for. MinIO/self-hosted/R2/Supabase all work via endpoint + path-style. - S3Storage implements StoragePort (put/get/remove); sha256 computed locally on put (matches LocalDiskStorage); a missing object reads back as null, not an error. - Env-driven binding in MediaModule: IIOS_S3_BUCKET + keys set → S3Storage, else LocalDiskStorage. forcePathStyle defaults true (MinIO); endpoint omitted → AWS. - S3 client is injectable so tests run with no live server. 6 unit tests (config parse, put size/sha, get round-trip, NoSuchKey→null, remove). Full suite 300/300, boundary + build clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
52 lines
1.5 KiB
JSON
52 lines
1.5 KiB
JSON
{
|
|
"name": "@insignia/iios-service",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "nest build",
|
|
"start": "nest start",
|
|
"dev": "nest start --watch",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"prisma:generate": "prisma generate",
|
|
"prisma:migrate": "prisma migrate dev",
|
|
"prisma:studio": "prisma studio"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.1090.0",
|
|
"@insignia/iios-adapter-sdk": "workspace:*",
|
|
"@insignia/iios-contracts": "workspace:*",
|
|
"@nestjs/common": "^11.1.27",
|
|
"@nestjs/core": "^11.1.27",
|
|
"@nestjs/platform-express": "^11.1.27",
|
|
"@nestjs/platform-socket.io": "^11.1.27",
|
|
"@nestjs/websockets": "^11.1.27",
|
|
"@prisma/client": "^6.2.1",
|
|
"@socket.io/redis-adapter": "^8.3.0",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.15.1",
|
|
"dotenv": "^16.4.7",
|
|
"handlebars": "^4.7.9",
|
|
"ioredis": "^5.11.1",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"jwks-rsa": "^4.1.0",
|
|
"nodemailer": "^9.0.3",
|
|
"prisma": "^6.2.1",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rxjs": "^7.8.2",
|
|
"socket.io": "^4.8.3",
|
|
"web-push": "^3.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@insignia/iios-testkit": "workspace:*",
|
|
"@nestjs/cli": "^11.0.23",
|
|
"@nestjs/schematics": "^11.1.0",
|
|
"@types/express": "^5.0.6",
|
|
"@types/jsonwebtoken": "^9.0.10",
|
|
"@types/node": "^26.0.1",
|
|
"@types/nodemailer": "^8.0.1",
|
|
"@types/web-push": "^3.6.4",
|
|
"socket.io-client": "^4.8.3",
|
|
"typescript": "^5.7.3"
|
|
}
|
|
}
|