Files
dashfront/src/api/number.js
2026-10-10 18:17:14 +02:00

25 lines
652 B
JavaScript

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.
*/
// #region GET /api/number — list
list() {
return http('/api/number');
},
// #endregion
/**
* PATCH /api/number/:id
* Body: at least one of { prefix, padding, next } — only present keys are patched.
* → 200 { number: { id, type, prefix, padding, next } }
*/
// #region PATCH /api/number/:id — update
update(id, body) {
return http(`/api/number/${id}`, { method: 'PATCH', body });
},
// #endregion
};