Skip to content

Commit

Permalink
chore: update api
Browse files Browse the repository at this point in the history
  • Loading branch information
sinatragianpaolo committed Oct 29, 2024
1 parent 167ba16 commit 032bd1f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/features/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,12 +482,12 @@ const injectedRtkApi = api.injectEndpoints({
>({
query: () => ({ url: `/users/me/preferences` }),
}),
putUsersMePreferencesByPrefid: build.mutation<
PutUsersMePreferencesByPrefidApiResponse,
PutUsersMePreferencesByPrefidApiArg
putUsersMePreferencesBySlug: build.mutation<
PutUsersMePreferencesBySlugApiResponse,
PutUsersMePreferencesBySlugApiArg
>({
query: (queryArg) => ({
url: `/users/me/preferences/${queryArg.prefid}`,
url: `/users/me/preferences/${queryArg.slug}`,
method: 'PUT',
body: queryArg.body,
}),
Expand Down Expand Up @@ -1419,10 +1419,10 @@ export type GetUsersMePreferencesApiResponse = /** status 200 OK */ {
items?: UserPreference[];
};
export type GetUsersMePreferencesApiArg = void;
export type PutUsersMePreferencesByPrefidApiResponse =
export type PutUsersMePreferencesBySlugApiResponse =
/** status 200 OK */ UserPreference;
export type PutUsersMePreferencesByPrefidApiArg = {
prefid: string;
export type PutUsersMePreferencesBySlugApiArg = {
slug: string;
body: {
value: string;
};
Expand Down Expand Up @@ -2226,7 +2226,7 @@ export const {
useGetTemplatesQuery,
useGetUsersMeQuery,
useGetUsersMePreferencesQuery,
usePutUsersMePreferencesByPrefidMutation,
usePutUsersMePreferencesBySlugMutation,
useGetVideosByVidQuery,
useGetVideosByVidObservationsQuery,
usePostVideosByVidObservationsMutation,
Expand Down

0 comments on commit 032bd1f

Please sign in to comment.