Skip to content

Commit 4e9ea5f

Browse files
committed
[DataObject] add onlyGlobal query param to saved grid configurations API
Add the optional onlyGlobal query parameter to GET /data-object/grid/configurations/{classId} in the OpenAPI spec and regenerate the data-object RTK Query slice, so clients can request only globally-shared grid configurations.
1 parent 8ee5793 commit 4e9ea5f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

assets/build/api/docs.jsonopenapi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

assets/js/src/core/modules/data-object/data-object-api-slice.gen.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ const injectedRtkApi = api
7878
>({
7979
query: (queryArg) => ({
8080
url: `/pimcore-studio/api/data-object/grid/configurations/${queryArg.classId}`,
81+
params: {
82+
onlyGlobal: queryArg.onlyGlobal,
83+
},
8184
}),
8285
providesTags: ["Data Object Grid"],
8386
}),
@@ -345,6 +348,8 @@ export type DataObjectListSavedGridConfigurationsApiResponse =
345348
export type DataObjectListSavedGridConfigurationsApiArg = {
346349
/** Class Id of the data object */
347350
classId: string;
351+
/** Return only globally-shared grid configurations */
352+
onlyGlobal?: boolean;
348353
};
349354
export type DataObjectRemoveGridConfigurationAsFavoriteApiResponse = unknown;
350355
export type DataObjectRemoveGridConfigurationAsFavoriteApiArg = {

0 commit comments

Comments
 (0)