@spiffcommerce/core 0.10.90 → 0.10.91

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/dist/types.d.ts CHANGED
@@ -300,6 +300,13 @@ declare class AssetService {
300
300
  * @returns An asset entity as a promise.
301
301
  */
302
302
  getAssetFromVariant: (variant: _VariantResource1) => Promise<IServerModel<_Asset1>>;
303
+ /**
304
+ * Search for the material of a variant. First looks for an material inlined in the variant,
305
+ * otherwise check for ID in our cache and go to the server as a last resort.
306
+ * @param variant The variant to search on.
307
+ * @returns A material entity as a promise.
308
+ */
309
+ getMaterialFromVariant: (variant: _VariantResource1) => Promise<IServerModel<MaterialResource>>;
303
310
  }
304
311
  interface PersistedAsset {
305
312
  assetKey: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "0.10.90",
3
+ "version": "0.10.91",
4
4
  "description": "Core client API for interacting with the Spiff Commerce backend.",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",