feat(persoenliche-ausruestung): show catalog category, remove size/date columns, make zustand admin-configurable
This commit is contained in:
@@ -3,6 +3,7 @@ import type {
|
||||
PersoenlicheAusruestung,
|
||||
CreatePersoenlicheAusruestungPayload,
|
||||
UpdatePersoenlicheAusruestungPayload,
|
||||
ZustandOption,
|
||||
} from '../types/personalEquipment.types';
|
||||
|
||||
async function unwrap<T>(
|
||||
@@ -61,4 +62,12 @@ export const personalEquipmentApi = {
|
||||
async delete(id: string): Promise<void> {
|
||||
await api.delete(`/api/persoenliche-ausruestung/${id}`);
|
||||
},
|
||||
|
||||
async getZustandOptions(): Promise<ZustandOption[]> {
|
||||
return unwrap(api.get('/api/persoenliche-ausruestung/zustand-options'));
|
||||
},
|
||||
|
||||
async updateZustandOptions(options: ZustandOption[]): Promise<ZustandOption[]> {
|
||||
return unwrap(api.put('/api/persoenliche-ausruestung/zustand-options', { options }));
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user