From 3e2a0e5df5b6f1f5ad9dcf27ff3f835999934863 Mon Sep 17 00:00:00 2001 From: sholzer Date: Mon, 9 Dec 2024 06:46:09 +0000 Subject: [PATCH] Apply latest automatic api client updates --- .../src/core/modules/user/user-api-slice.gen.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/assets/js/src/core/modules/user/user-api-slice.gen.ts b/assets/js/src/core/modules/user/user-api-slice.gen.ts index f24c0489a..042ebdec9 100644 --- a/assets/js/src/core/modules/user/user-api-slice.gen.ts +++ b/assets/js/src/core/modules/user/user-api-slice.gen.ts @@ -98,6 +98,10 @@ const injectedRtkApi = api }), invalidatesTags: ["User Management"], }), + userGetImage: build.query({ + query: (queryArg) => ({ url: `/pimcore-studio/api/user/image/${queryArg.id}` }), + providesTags: ["User Management"], + }), userGetTree: build.query({ query: (queryArg) => ({ url: `/pimcore-studio/api/users/tree`, @@ -194,7 +198,15 @@ export type UserUploadImageApiResponse = /** status 200 Success */ void; export type UserUploadImageApiArg = { /** Id of the User */ id: number; - body: FormData; + body: { + /** User image to upload */ + userImage: Blob; + }; +}; +export type UserGetImageApiResponse = /** status 200 User profile image */ Blob; +export type UserGetImageApiArg = { + /** Id of the User */ + id: number; }; export type UserGetTreeApiResponse = /** status 200 Collection of users including folders for the given parent id. */ { totalItems: number; @@ -418,5 +430,6 @@ export const { usePimcoreStudioApiUserSearchQuery, useUserUpdatePasswordByIdMutation, useUserUploadImageMutation, + useUserGetImageQuery, useUserGetTreeQuery, } = injectedRtkApi;