chore: build
Backend - Build & Lint / build (push) Successful in 32m22s
Frontend Admin - EAS Build / build (push) Successful in 1h39m14s

This commit is contained in:
Cameron Foussard
2026-11-03 09:12:36 +01:00
parent 0a18460f13
commit ae89d995d2
5 changed files with 98 additions and 15 deletions
+11 -1
View File
@@ -233,10 +233,19 @@ export const getAllClients = async (
};
};
// Totaux globaux (toute la base, pas seulement la page chargée).
export interface UserCounts {
all: number;
client: number;
livreur: number;
cabine: number;
admin: number;
}
export const getAllUsers = async (
offset = 0,
limit = 100,
): Promise<PagedResult<AdminUserItem>> => {
): Promise<PagedResult<AdminUserItem> & { counts?: UserCounts }> => {
const { data } = await apiClient.get(`${V2}/admin/protected/all/users`, {
params: { limit, offset },
});
@@ -244,6 +253,7 @@ export const getAllUsers = async (
items: data.users || [],
total: data.count ?? 0,
hasMore: !!data.has_more,
counts: data.counts ?? undefined,
};
};