Skip to content

Commit

Permalink
Apply latest automatic api client updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sholzer authored and github-actions[bot] committed Dec 9, 2024
1 parent aa80456 commit 3e2a0e5
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion assets/js/src/core/modules/user/user-api-slice.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ const injectedRtkApi = api
}),
invalidatesTags: ["User Management"],
}),
userGetImage: build.query<UserGetImageApiResponse, UserGetImageApiArg>({
query: (queryArg) => ({ url: `/pimcore-studio/api/user/image/${queryArg.id}` }),
providesTags: ["User Management"],
}),
userGetTree: build.query<UserGetTreeApiResponse, UserGetTreeApiArg>({
query: (queryArg) => ({
url: `/pimcore-studio/api/users/tree`,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -418,5 +430,6 @@ export const {
usePimcoreStudioApiUserSearchQuery,
useUserUpdatePasswordByIdMutation,
useUserUploadImageMutation,
useUserGetImageQuery,
useUserGetTreeQuery,
} = injectedRtkApi;

0 comments on commit 3e2a0e5

Please sign in to comment.