Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
eckter committed Nov 26, 2024
1 parent 990a83e commit f214017
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions front/src/common/api/generatedEditoastApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,14 @@ const injectedRtkApi = api
GetWorkSchedulesGroupByIdApiResponse,
GetWorkSchedulesGroupByIdApiArg
>({
query: (queryArg) => ({ url: `/work_schedules/group/${queryArg.id}` }),
query: (queryArg) => ({
url: `/work_schedules/group/${queryArg.id}`,
params: {
page: queryArg.page,
page_size: queryArg.pageSize,
ordering: queryArg.ordering,
},
}),
providesTags: ['work_schedules'],
}),
putWorkSchedulesGroupById: build.mutation<
Expand Down Expand Up @@ -1725,10 +1732,15 @@ export type PostWorkSchedulesGroupApiArg = {
};
};
export type GetWorkSchedulesGroupByIdApiResponse =
/** status 200 The work schedules in the group */ WorkSchedule[];
/** status 200 The work schedules in the group */ PaginationStats & {
results: WorkSchedule[];
};
export type GetWorkSchedulesGroupByIdApiArg = {
page?: number;
pageSize?: number | null;
/** A work schedule group ID */
id: number;
ordering?: Ordering;
};
export type PutWorkSchedulesGroupByIdApiResponse =
/** status 200 The work schedules have been created */ WorkSchedule[];
Expand Down

0 comments on commit f214017

Please sign in to comment.