open-index/open-npm huggingface dataset:
npm package: @ddes/aws-store
Description: AWS powered EventStore, SnapshotStore and MetaStore implementations for DDES, a framework for distributed Event Sourcing & CQRS
Author: Trym Skaar
Latest version: 4.1.0
Deprecated: see @ddes/core

# @ddes/aws-store

> AWS powered EventStore, SnapshotStore and MetaStore implementations for DDES, a framework for distributed Event Sourcing & CQRS.

## [API Docs](https://s3-eu-west-1.amazonaws.com/ddes-docs/latest/index.html)

## [DDES website](https://ddes.io)
npm package: @ddiazr/utilt-service
Description: Servicio para consumir genericamente cualquier api externo sin
Author: Dany Díaz
Latest version: 0.0.1

# Api Request

Service generico donde ya no necesitas injectar el metodo HTTP

## Instalación

```bash
npm install @ddiazr/utilt-service
```

## Interface de respuesta

```bash
interface ApiResult<T> {
  data: T | null;      // Aquí viene la info si todo salió bien
  error: string | null; // El mensaje de error (si falló)
  success: boolean;     // Bandera rápida para tus 'if'
}
```

## Uso básico

```typescript
import { ApiRequest } from '@ddiazr/utilt-service';

@Component({
  imports: [],
  template: ``,
})
export class AppComponent {
  private api = inject(ApiRequest);

  async consumeBackend() {
    const resp = await this.api.get<any[]>('https://tu-api.com/');
    const resp = await this.api.post<any[]>('https://tu-api.com/', { id: 0, nombre: 'JUAN' });
    const resp = await this.api.put<any[]>('https://tu-api.com/1234', { id: 0, nombre: 'JUAN' });
    const resp = await this.api.delete<any[]>('https://tu-api.com/1234');
  }
}
```

## Licencia

MIT

# Source files

src/
_.ts
!_.d.ts