diff --git a/assets/js/src/core/modules/asset/asset-api-slice.gen.ts b/assets/js/src/core/modules/asset/asset-api-slice.gen.ts index be6e74b17..acb418eec 100644 --- a/assets/js/src/core/modules/asset/asset-api-slice.gen.ts +++ b/assets/js/src/core/modules/asset/asset-api-slice.gen.ts @@ -185,6 +185,24 @@ const injectedRtkApi = api }), providesTags: ["Assets"], }), + assetImageStreamCustom: build.query({ + 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 @@ -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 */ @@ -1110,6 +1154,7 @@ export const { useAssetUpdateGridConfigurationMutation, useAssetGetGridMutation, useAssetImageDownloadCustomQuery, + useAssetImageStreamCustomQuery, useAssetImageDownloadByFormatQuery, useAssetImageStreamPreviewQuery, useAssetImageDownloadByThumbnailQuery, diff --git a/assets/js/src/core/modules/data-object/data-object-api-slice.gen.ts b/assets/js/src/core/modules/data-object/data-object-api-slice.gen.ts index f135fb194..9f9c03738 100644 --- a/assets/js/src/core/modules/data-object/data-object-api-slice.gen.ts +++ b/assets/js/src/core/modules/data-object/data-object-api-slice.gen.ts @@ -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 */ diff --git a/assets/js/src/core/modules/element/editor/shared-tab-manager/tabs/workflow/workflow-api-slice.gen.ts b/assets/js/src/core/modules/element/editor/shared-tab-manager/tabs/workflow/workflow-api-slice.gen.ts index 71b4f2702..f7d764fb1 100644 --- a/assets/js/src/core/modules/element/editor/shared-tab-manager/tabs/workflow/workflow-api-slice.gen.ts +++ b/assets/js/src/core/modules/element/editor/shared-tab-manager/tabs/workflow/workflow-api-slice.gen.ts @@ -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; };