BeefreeSDK / beefree-sdk-npm-official

Official NPM package of Beefree SDK
https://developers.beefree.io
Apache License 2.0
19 stars 7 forks source link

Fix/109 token interface #113

Closed davidesamp closed 1 year ago

davidesamp commented 1 year ago

Description

Fixed token interface

Motivation and Context

Close https://github.com/BEE-Plugin/Bee-plugin-official/issues/109

Usage examples

import BeePLugin from '@mailupinc/bee-plugin'
import { IToken, TokenStatus } from '@mailupinc/bee-plugin/dist/types/bee'

const myToken: IToken = {
  access_token: 'xxxx-xxxx-xxxx',
  status: TokenStatus.OK,
  v2: true
}
const beePlugin = new BeePlugin(myToken)
beePlugin.start(....)

Types of changes

github-actions[bot] commented 1 year ago

Code Coverage Report

Coverage after merging fix/109-token-interface into master

84.76%
Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   index.ts60%7.50%63.01%..., 92, 95, 96, 97
src/services
   api.ts100%50%100%
   axios.ts100%100%100%
src/types
   bee.ts100%100%100%
src/utils
   Constants.ts100%100%100%
   utils.ts0%0%70.59%..., 8, 8, 9, 9