@lokalise/file-storage-service-sdk
v10.2.0
Published
SDK for file-storage-service
Readme
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.
