@lokalise/file-storage-service-sdk
TypeScript icon, indicating that this package has built-in type declarations

6.2.0 • Public • Published

file-storage-service-sdk

Sdk for file-storage-service - FSS.

Usage

Sdk exposes FileStorageClient which can be injected via DI or created directly.

Authorization

Authorization will require a valid jwtToken.

For FileStorageClient token should contain 2 claims - ownerId and tenant.

Tenant is a string which represents who is calling the api, supported values are expert and autopilot.

Error handling

All function returning monad Either<L, R> where L - Left is a potential error and R - Right is a potential result, one of these will always present in response. Consumer of the api is responsible to handle result/error.

Error reporting

You can pass an {errorReporter: ErrorReporter} field inside the config argument. The error reporter will then be called in all cases when an error response is returned for a request to file storage service API.

Package Sidebar

Install

npm i @lokalise/file-storage-service-sdk

Weekly Downloads

905

Version

6.2.0

License

Apache-2.0

Unpacked Size

92.2 kB

Total Files

36

Last publish

Collaborators

  • carlos_gamero
  • kibertoad
  • arthuracs
  • yury.kravtsov
  • filippos.mikropoulos
  • aplokalise
  • botlokalise
  • laurislokalise
  • marcocardosolok
  • bodrovis