Add company settings and number sequence API routes

- Add CompanySetting routes (list, get, set) backed by company-scoped store
- Add Number routes (list, update) for managing number sequences
- Register new store namespaces for numbers and companysetting
- Add CompanySetting and NumberSequence schemas to OpenAPI
- Regenerate API docs and index for the new routes
This commit is contained in:
seb
2026-08-08 09:01:28 +02:00
parent e6c24654dd
commit 57420ac0db
14 changed files with 1279 additions and 0 deletions

11
src/db/numbers.js Normal file
View File

@@ -0,0 +1,11 @@
import { getStore } from './store.js';
export async function list(googleAuthId) {
const store = await getStore();
return store.numbers.list(googleAuthId);
}
export async function update(googleAuthId, id, input) {
const store = await getStore();
return store.numbers.update(googleAuthId, id, input);
}