- Created shared-notifications package with multi-channel support
- Implemented EmailService with Resend integration
- Implemented PushService with FCM/APNs support
- Implemented SMSService with Twilio integration
- Added NotificationService to orchestrate all channels
- Created notification types, configuration, and routes
- Added rate limiting and delivery tracking support
- Configured notification preferences management
Files:
- packages/shared-notifications/src/{types,config,services}/*.ts
- packages/shared-notifications/package.json
- apps/api/src/routes/notifications.routes.ts
- apps/api/package.json (updated dependencies)
27 lines
586 B
JSON
27 lines
586 B
JSON
{
|
|
"name": "api",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc",
|
|
"lint": "eslint src/"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/cors": "^11.2.0",
|
|
"@fastify/helmet": "^13.0.2",
|
|
"@shieldsai/shared-auth": "*",
|
|
"@shieldsai/shared-db": "*",
|
|
"@shieldsai/shared-notifications": "*",
|
|
"@shieldsai/shared-utils": "*",
|
|
"fastify": "^4.25.0",
|
|
"fastify-plugin": "^4.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.6.0",
|
|
"tsx": "^4.7.1",
|
|
"typescript": "^5.3.3"
|
|
}
|
|
}
|