# @flashcoffee/fcpost

Utils for fcpost

## Usage

```ts
import {
  AllExceptionFilter,
  Serialize,
  BadRequestException,
  ForbiddenException,
  UnauthorizedException,
  NotFoundException,
  UnprocessableEntityException,
  SnsService,
  getSecretValue,
  sendErrorAlert,
  decodeAuthToken,
  validateClass,
  base64EncodeJSON,
  base64DecodeJSON
} from '@flashcoffee/fcpost';
```

## Logger usage

```ts
import { ddLog } from '@flashcoffee/fcpost';

ddLog.info({
  customerId: '',
  module: 'myModule',
  eventName: 'myEvent',
  data: {
    orderId: 'myOrderId',
    clientRequest: JSON.stringify(request),
    clientResponse: JSON.stringify(response),
  },
  serviceVersion: '1.2.3',
});

ddLog.error({
  ...
  errorObject: JSON.stringify(error)
});
```