This commit is contained in:
seb
2026-10-10 00:39:23 +02:00
parent 2c36a705c4
commit ff54fe3a18
30 changed files with 2250 additions and 2256 deletions

20
src/api/number.js Normal file
View File

@@ -0,0 +1,20 @@
import { http } from './http.js';
export const number = {
/**
* GET /api/number → { numbers: [{ id, type, prefix, padding, next }] }
* Lists the number sequences for the selected company.
*/
list() {
return http('/api/number');
},
/**
* PATCH /api/number/:id
* Body: at least one of { prefix, padding, next } — only present keys are patched.
* → 200 { number: { id, type, prefix, padding, next } }
*/
update(id, body) {
return http(`/api/number/${id}`, { method: 'PATCH', body });
},
};