SDK
Download munshi-sdk-0.1.0.tgz
Version 0.1.0. sha256:
425ae86ae05793f74394a0b1218b53e086d8cfab2d7e0ccd09ac2c693954ffd0@munshi/sdk is a thin typed client for API v1. The types are generated from the same contracts the server parses with, so a method's path, query and body are checked at compile time.
- No runtime dependencies. It needs
fetch(Node 20 or later, or any browser). - Every money figure renders through
formatMoney(figure, locale), integer arithmetic only. - An error is a
MunshiErrorwithstatus,codeandrequestId. - The key travels only in the
Authorizationheader of a write. Nothing in the client logs.
It is shipped as a tarball from this page, not from npm. Check the sha256 before you install it.
Changelog
- 0.1.0 — the first release: every published read, the writes (orders, bookings, booking requests, holds, enquiries, reservations),
ref,formatMoney,isRefandMunshiError.