- Add `numbers` store module with `list` and `update` methods backed by the `numbers` table (prefix, padding, next) per company. - Add sql queries LIST_BY_COMPANY, GET_BY_COMPANY_AND_ID, UPDATE_... - Regenerate and wire API docs for `numbers`. companysetting: - Remove the `delete` endpoint (settings are now upsert/read only). - Restrict `set` to a fixed allow-list of keys: ui.theme, keys.tavily, keys.openrouter, labelprinter.addr, labelprinter.type. - Drop DELETE_BY_COMPANY_AND_KEY sql and the delete store file. Docs: update README, API.md, API.companysetting.md, API.numbers.md.
30 lines
1.0 KiB
Markdown
30 lines
1.0 KiB
Markdown
# LibDashStore API
|
|
|
|
This document is auto-generated from the JSDoc comments in `src/store` by running `npm run api-doc`.
|
|
|
|
The store is exposed as a `LibDashStore` instance (see `src/index.js`). Each method is an async function that takes a `pool` (mssql connection pool) at construction time and returns a callable function. Methods are grouped by the namespace they are exposed under.
|
|
|
|
## Table of Contents
|
|
|
|
- [companyuser](API.companyuser.md)
|
|
- [company](API.company.md)
|
|
- [category](API.category.md)
|
|
- [article](API.article.md)
|
|
- [lang](API.lang.md)
|
|
- [tax](API.tax.md)
|
|
- [unit](API.unit.md)
|
|
- [companysetting](API.companysetting.md)
|
|
- [brand](API.brand.md)
|
|
- [customergroup](API.customergroup.md)
|
|
- [entity](API.entity.md)
|
|
- [entityaddress](API.entityaddress.md)
|
|
- [entitycontact](API.entitycontact.md)
|
|
- [supplier](API.supplier.md)
|
|
- [delivery](API.delivery.md)
|
|
- [quote](API.quote.md)
|
|
- [order](API.order.md)
|
|
- [posterminal](API.posterminal.md)
|
|
- [google_auth](API.google_auth.md)
|
|
- [pic](API.pic.md)
|
|
- [numbers](API.numbers.md)
|