diff --git a/front/src/common/api/generatedEditoastApi.ts b/front/src/common/api/generatedEditoastApi.ts index e4708e9c82c..fa059da1aa7 100644 --- a/front/src/common/api/generatedEditoastApi.ts +++ b/front/src/common/api/generatedEditoastApi.ts @@ -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< @@ -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[];