boardgamegeekjsclient
boardgamegeekjsclient copied to clipboard
Typescript written API wrapper for Boardgamegeek XML2 API
## Project background: NextJS 13 Typescript Using bgg.search.query ```javascript bggClient.search.query({ query: value, type: ['boardgame', 'boardgameexpansion'] }) .then((queryResults) => { // eslint-disable-next-line no-console -- cuz console.log('not results problem', queryResults) // eslint-disable-next-line...
### BGG games has usually more than one name. In Thing entrypoint the 'name' prop from BggThingDto is the primary name, but I would like to the rest of the...
Using the the latest version of the library (1.9.1), any string that contains certain characters (like apostrophes) are returned with encoding. For example `Dean's house` becomes `Dean's house` This seems...
The collection API allows to retrieve private information when the user is logged in via `showprivate` flag. Are there any plans to allow supplying a cookie to fetch this information?
Response model refactor to better handle possible BGG internal server error (502) or rejection like #18, #25, #38 **proposal idea** ```typescript interface BggResponse{ error: string status: number data: T[] }...
Better interfacce mock? Reflect JavaScript construct expect(dto).toEqual( expect.objectContaining({ userid: expect.any(Number), total: expect.any(Number), page: expect.any(Number), username: expect.any(String), }) );
Output npm audit: # npm audit report fast-xml-parser
https://www.boardgamegeek.com/xmlapi2/thread?id=1082079 ![image](https://user-images.githubusercontent.com/38817460/213566765-242cb92a-7c64-4b91-9c14-7b743384bb61.png) const thread = await client.thread.query({ id: 1082079 }) => undefined
Typedoc => JSDoc Api-Extractor => TSDoc