feat(api-client-phase4): API-Client um Admin-User + Export-URL ergänzt [tsc:ok]
This commit is contained in:
parent
bbf058acbe
commit
0a3b293c62
@ -2,8 +2,9 @@
|
||||
"completed_features": [
|
||||
"admin-user-management",
|
||||
"csv-export-time-entries",
|
||||
"error-boundary"
|
||||
"error-boundary",
|
||||
"dashboard-charts"
|
||||
],
|
||||
"current_feature": "dashboard-charts",
|
||||
"current_feature": "api-client-phase4",
|
||||
"started_at": "2026-05-23T05:10:51.482879"
|
||||
}
|
||||
@ -505,3 +505,13 @@ undefined
|
||||
- `05:16:48` **INFO** wrote 7018 chars in 61.7s (attempt 1)
|
||||
- `05:16:48` **INFO** Running tsc --noEmit on api…
|
||||
- `05:16:50` **INFO** tsc clean ✓
|
||||
- `05:16:50` **INFO** Committed feature dashboard-charts
|
||||
- `05:16:50` **INFO** Pushed: rc=0
|
||||
|
||||
## Phase-3 Feature: api-client-phase4 (2026-05-23 05:16:50)
|
||||
|
||||
- `05:16:50` **INFO** Description: API-Client um Admin-User + Export-URL ergänzt
|
||||
- `05:16:50` **INFO** Generating apps/web/src/lib/api.ts (FINAL+ - behalte ALLES aus vorher. Füge hinzu: listUsers(), createUser…)
|
||||
- `05:17:24` **INFO** wrote 3845 chars in 34.1s (attempt 1)
|
||||
- `05:17:24` **INFO** Running tsc --noEmit on api…
|
||||
- `05:17:26` **INFO** tsc clean ✓
|
||||
|
||||
@ -129,5 +129,29 @@ export const api = {
|
||||
return request(`/projects/${id}`, {
|
||||
method: "DELETE"
|
||||
})
|
||||
},
|
||||
|
||||
async listUsers() {
|
||||
return request<any[]>("/users")
|
||||
},
|
||||
|
||||
async createUser(data: { email: string; name: string; role: "admin" | "user"; password: string }) {
|
||||
return request("/users", {
|
||||
method: "POST",
|
||||
body: JSON.stringify(data)
|
||||
})
|
||||
},
|
||||
|
||||
async updateUser(id: string, data: { name?: string; role?: "admin" | "user" }) {
|
||||
return request(`/users/${id}`, {
|
||||
method: "PATCH",
|
||||
body: JSON.stringify(data)
|
||||
})
|
||||
},
|
||||
|
||||
async deleteUser(id: string) {
|
||||
return request(`/users/${id}`, {
|
||||
method: "DELETE"
|
||||
})
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user