Migration modular monolith DDD (0.1 → 3.3) #17

Merged
matthieu merged 99 commits from integration/modular-monolith-0.1-1.3 into develop 2026-06-23 13:50:43 +00:00
Showing only changes of commit 9b26b43aca - Show all commits
+6 -4
View File
@@ -27,9 +27,9 @@ export type AuditLogPage = {
totalItems: number
}
export type AuditLogEntityType = {
export type AuditLogEntityTypes = {
'@id'?: string
value: string
entityTypes: string[]
}
export function useAuditLogService() {
@@ -55,8 +55,10 @@ export function useAuditLogService() {
}
async function entityTypes(): Promise<string[]> {
const data = await api.get<HydraCollection<AuditLogEntityType>>('/audit-log-entity-types')
return extractHydraMembers(data).map((entry) => entry.value)
// `/audit-log-entity-types` is a single API Platform item resource
// (not a hydra collection): it returns `{ entityTypes: string[] }`.
const data = await api.get<AuditLogEntityTypes>('/audit-log-entity-types')
return data.entityTypes ?? []
}
return { list, entityTypes }