@spiffcommerce/core 0.10.89 → 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/main.js +2 -2
- package/dist/module.js +2 -2
- package/dist/types.d.ts +11 -0
- package/package.json +1 -1
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;
|
|
@@ -1253,6 +1260,10 @@ export class IllustrationStepHandle extends StepHandle<_IllustrationStepData1> {
|
|
|
1253
1260
|
getColors(): {
|
|
1254
1261
|
[key: string]: import("@spiffcommerce/papyrus").ColorDefinition;
|
|
1255
1262
|
} | undefined;
|
|
1263
|
+
/**
|
|
1264
|
+
* Set color for the illustration.
|
|
1265
|
+
*/
|
|
1266
|
+
setColor(key: string, value: string): Promise<void>;
|
|
1256
1267
|
}
|
|
1257
1268
|
export class PictureStepHandle extends StepHandle<_PictureStepData1> {
|
|
1258
1269
|
constructor(manager: WorkflowManager, step: _Step1<_PictureStepData1>);
|