Shared library for Otak Udang AI platform
A shared library for the Otak Udang AI platform, containing common types, DTOs, utilities, and constants used across microservices.
``bash`
npm i @otak-udang/shared
`typescript`
import { CreateUserDto, Package, Role, ErrorCode } from "ouai-shared";
- Constants
- Error Codes and Messages
- User Roles and Permissions
- Package Types and Features
- DTOs
- Authentication DTOs
- User Management DTOs
- Farm Management DTOs
- Interfaces
- Common Types
- User Types
- Event Types
- Utilities
- Error Handling
- Google Pub/Sub Integration
- Real-time monitoring
- Basic alerts
- Basic reporting
- Single plot management
- All Small package features
- Device control
- Advanced alerts
- Advanced reporting
- Multi-plot management
- All Medium package features
- AI-driven insights
- Predictive analytics
- Automated control
- Enterprise reporting
`bashInstall dependencies
npm install
When making breaking changes:
1. Update the version following semantic versioning
2. Document changes in CHANGELOG.md
3. Update affected services
1. Create a feature branch
2. Make your changes
3. Run tests and linting
4. Submit a pull request
ISC