@flashcoffee/fcbackendutils
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

fcbackendutils

This package is used on the flashcoffee project. It can be used for Frontend & Backend

Requirements

Version 1.2.71 or newer

  • NodeJS 16 or newer
  • AWS-SDK V3

Version 1.2.70 or earlier

  • NodeJS 14 or earlier
  • AWS-SDK V2

Available Utils:

Exception

  • BadRequestException will return http status 400
  • UnauthorizedException will return http status 401
  • ForbiddenException will return http status 403
  • UnprocessableEntityException will return http status 422
  • UnknownException will return http status 500

Filters

  • HttpExceptionFilter

Interceptors

  • Serialize

Utils

  • CurrencyUtils
  • ExceptionUtil
  • DatetimeUtil
  • ddlog
  • stringify, parse

SNS

  • Order SNS
    • Checkout
      await OrderSNS.checkout(data)
      
    • Failed
      await OrderSNS.failed(data)
      
    • Paid
      await OrderSNS.paid(data)
      
  • Payment SNS
    • Payment Status Updated

Installation

yarn add @flashcoffee/fcbackendutils

Usage

import { OrderSNS } from '@flashcoffee/fcbackendutils';

Package Sidebar

Install

npm i @flashcoffee/fcbackendutils

Weekly Downloads

21

Version

1.3.1

License

ISC

Unpacked Size

2.7 kB

Total Files

2

Last publish

Collaborators

  • geunta.buwono.fc
  • hirzieji.fc
  • jasperleeflashcoffee
  • yesafc
  • vivinapriyanti
  • dorman-flash
  • peterandrew987
  • oki.aji
  • flashcoffeedev
  • robbyfc
  • sulfano.fikri
  • agustinuswd