@cesdk/engine 1.62.0-nightly.20250929 → 1.62.0-nightly.20251001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/core/{cesdk-v1.62.0-nightly.20250929-U3AC4A2F.wasm → cesdk-v1.62.0-nightly.20251001-E6TCHLY5.wasm} +0 -0
- package/assets/core/{worker-host-v1.62.0-nightly.20250929.js → worker-host-v1.62.0-nightly.20251001.js} +1 -1
- package/index.d.ts +9 -2
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.62.0-nightly.20250929-44YCFRT6.data → cesdk-v1.62.0-nightly.20251001-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -396,12 +396,19 @@ export declare class AssetAPI {
|
|
|
396
396
|
/**
|
|
397
397
|
* Fetch a specific asset by ID from an asset source.
|
|
398
398
|
*
|
|
399
|
+
* ```javascript
|
|
400
|
+
* const asset = await engine.asset.fetchAsset('asset-source-id', 'asset-id', {
|
|
401
|
+
* locale: 'en-US'
|
|
402
|
+
* });
|
|
403
|
+
* ```
|
|
404
|
+
*
|
|
399
405
|
* @category Asset Discovery
|
|
400
406
|
* @param sourceId - The ID of the asset source to search in.
|
|
401
407
|
* @param assetId - The ID of the asset to fetch.
|
|
408
|
+
* @param params - Query parameters including locale (optional).
|
|
402
409
|
* @returns Promise resolving to the complete asset result, or undefined if not found.
|
|
403
410
|
*/
|
|
404
|
-
fetchAsset(sourceId: string, assetId: string): Promise<CompleteAssetResult | null>;
|
|
411
|
+
fetchAsset(sourceId: string, assetId: string, params?: Pick<AssetQueryData, 'locale'>): Promise<CompleteAssetResult | null>;
|
|
405
412
|
/**
|
|
406
413
|
* Get available asset groups from a source.
|
|
407
414
|
*
|
|
@@ -988,7 +995,7 @@ export declare interface AssetSource {
|
|
|
988
995
|
/** Find all asset for the given type and the provided query data. */
|
|
989
996
|
findAssets(queryData: AssetQueryData): Promise<AssetsQueryResult | undefined>;
|
|
990
997
|
/** Fetch an asset by id. */
|
|
991
|
-
fetchAsset?: (id: string) => Promise<AssetResult | null>;
|
|
998
|
+
fetchAsset?: (id: string, params?: Pick<AssetQueryData, 'locale'>) => Promise<AssetResult | null>;
|
|
992
999
|
/** Return every available group */
|
|
993
1000
|
getGroups?: () => Promise<string[]>;
|
|
994
1001
|
/** Credits for the source/api */
|