open-index/open-npm huggingface dataset:
npm package: @fresam23/shared-lib
Description: A shared library for Oneness e-learning applications
Author: Oneness Academy
Latest version: 1.0.22

# Shared Library

Oneness e-learning platform reusable DTOs, configs, decorators, enums, interfaces, and constants for API Gateway and microservices.

## Features

- **DTOs**: Common Data Transfer Objects for consistent API contracts.
- **Configs**: Centralized configuration files for shared settings.
- **Decorators**: Custom decorators for validation, authorization, and more.
- **Enums**: Shared enumerations for status codes, roles, and other constants.
- **Interfaces**: Shared TypeScript interfaces for type safety across services.
- **Constants**: Frequently used values for error messages, limits, etc.
- **Factories**: Centralized client proxy generation and registry.

## Installation

```bash
npm install @fresam23/shared-lib
```

## Usage

Import the required modules in your service or API Gateway:

```typescript
import { EurekaConfig, PostgresDbConfig } from '@fresam23/shared-lib';
```

## Folder Structure

- `dtos/` – Data Transfer Objects
- `configs/` – Configuration files
- `decorators/` – Custom decorators
- `enums/` – Enumerations
- `interfaces/` – TypeScript interfaces
- `constants/` – Constant values
- `factories/` – Abstract factory methods

## Contributing

1. Fork the repository.
2. Create a new branch.
3. Make your changes.
4. Submit a pull request.

## License

  
---

© 2025 Oneness e-Learning Project. All rights reserved.

Oneness™ is a trademark of the Oneness e-Learning Project.