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
bluvulture authored and github-actions[bot] committed Dec 11, 2024
1 parent c63f859 commit b25bd1f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 41 deletions.
45 changes: 45 additions & 0 deletions assets/js/src/core/modules/asset/asset-api-slice.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,24 @@ const injectedRtkApi = api
}),
providesTags: ["Assets"],
}),
assetImageStreamCustom: build.query<AssetImageStreamCustomApiResponse, AssetImageStreamCustomApiArg>({
query: (queryArg) => ({
url: `/pimcore-studio/api/assets/${queryArg.id}/image/stream/custom`,
params: {
mimeType: queryArg.mimeType,
resizeMode: queryArg.resizeMode,
width: queryArg.width,
height: queryArg.height,
quality: queryArg.quality,
dpi: queryArg.dpi,
contain: queryArg.contain,
frame: queryArg.frame,
cover: queryArg.cover,
forceResize: queryArg.forceResize,
},
}),
providesTags: ["Assets"],
}),
assetImageDownloadByFormat: build.query<
AssetImageDownloadByFormatApiResponse,
AssetImageDownloadByFormatApiArg
Expand Down Expand Up @@ -600,6 +618,32 @@ export type AssetImageDownloadCustomApiArg = {
/** Dpi of downloaded image */
dpi?: number;
};
export type AssetImageStreamCustomApiResponse =
/** status 200 Image asset stream based on custom thumbnail configuration */ Blob;
export type AssetImageStreamCustomApiArg = {
/** Id of the image */
id: number;
/** Mime type of downloaded image. */
mimeType: "JPEG" | "PNG";
/** Resize mode of downloaded image. */
resizeMode: "resize" | "scaleByWidth" | "scaleByHeight";
/** Width of downloaded image */
width?: number;
/** Height of downloaded image */
height?: number;
/** Quality of downloaded image */
quality?: number;
/** Dpi of downloaded image */
dpi?: number;
/** Contain */
contain?: boolean;
/** Frame */
frame?: boolean;
/** Cover */
cover?: boolean;
/** ForceResize */
forceResize?: boolean;
};
export type AssetImageDownloadByFormatApiResponse = /** status 200 Image asset binary file based on format */ Blob;
export type AssetImageDownloadByFormatApiArg = {
/** Id of the image */
Expand Down Expand Up @@ -1110,6 +1154,7 @@ export const {
useAssetUpdateGridConfigurationMutation,
useAssetGetGridMutation,
useAssetImageDownloadCustomQuery,
useAssetImageStreamCustomQuery,
useAssetImageDownloadByFormatQuery,
useAssetImageStreamPreviewQuery,
useAssetImageDownloadByThumbnailQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,41 +221,7 @@ export type DataObjectGetTreeApiArg = {
/** Include all descendants in the result. */
pathIncludeDescendants?: boolean;
/** Filter by class. */
className?:
| "AccessoryPart"
| "asdf"
| "BodyStyle"
| "Car"
| "Category"
| "ComplexLayout"
| "Customer"
| "CustomerSegment"
| "CustomerSegmentGroup"
| "datatypetest"
| "datetest"
| "Event"
| "fieldtest"
| "FilterDefinition"
| "foo5"
| "LinkActivityDefinition"
| "Manufacturer"
| "mappingTest"
| "News"
| "OfferToolCustomProduct"
| "OfferToolOffer"
| "OfferToolOfferItem"
| "OnlineShopOrder"
| "OnlineShopOrderItem"
| "OnlineShopTaxClass"
| "OnlineShopVoucherSeries"
| "OnlineShopVoucherToken"
| "PortalUser"
| "PortalUserGroup"
| "simple"
| "StudioFieldTypeTest"
| "TermSegmentBuilderDefinition"
| "Test"
| "unittest";
className?: string;
};
export type Error = {
/** Message */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ export type DevError = {
export type SubmitAction = {
/** type of the action */
actionType: string;
/** id of the element */
/** Id of the element */
elementId: number;
/** type of the element */
/** Type of the element */
elementType: string;
/** name of the workflow */
workflowName: string;
/** transition */
transition: string;
/** Id of the workflow */
workflowId?: string;
/** Id of the transition */
transitionId?: string;
/** workflowOptions */
workflowOptions: object;
};
Expand Down

0 comments on commit b25bd1f

Please sign in to comment.