@spiffcommerce/core 0.10.98 → 0.10.100

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
@@ -1178,9 +1178,9 @@ export interface SavedDesign {
1178
1178
  */
1179
1179
  title: string;
1180
1180
  /**
1181
- * A URL pointing to an image of the design.
1181
+ * A URL pointing to an image of the design. Typically a data URL
1182
1182
  */
1183
- thumbnail: string;
1183
+ thumbnail?: string;
1184
1184
  /**
1185
1185
  * The ID of the transaction relating to this design.
1186
1186
  */
@@ -1288,6 +1288,10 @@ export class IllustrationStepHandle extends StepHandle<_IllustrationStepData1> {
1288
1288
  hasVaryingColors(): boolean | undefined;
1289
1289
  isColorPickerEnabled(): boolean;
1290
1290
  }
1291
+ export class ModelStepHandle extends StepHandle<_ModelStepData1> {
1292
+ constructor(manager: WorkflowManager, step: _Step1<_ModelStepData1>);
1293
+ selectVariant(variant: _VariantResource1): Promise<void>;
1294
+ }
1291
1295
  export class PictureStepHandle extends StepHandle<_PictureStepData1> {
1292
1296
  constructor(manager: WorkflowManager, step: _Step1<_PictureStepData1>);
1293
1297
  /**
@@ -1399,8 +1403,9 @@ export interface WorkflowExperience {
1399
1403
  * Saves this experience to storage. This may be local or remote depending
1400
1404
  * on configuration.
1401
1405
  * @param title The title for the saved design.
1406
+ * @param thumbnail An optional thumbnail for the saved design. If none is provided this field will be saved blank.
1402
1407
  */
1403
- save(title: string): Promise<SavedDesign>;
1408
+ save(title: string, thumbnail?: string): Promise<SavedDesign>;
1404
1409
  /**
1405
1410
  * Returns a copy of the currently loaded design as a new, seperated workflow experience with
1406
1411
  * a fresh transaction.
@@ -1455,7 +1460,7 @@ export class SpiffCommerceClient {
1455
1460
  /**
1456
1461
  * @returns A list of designs saved.
1457
1462
  */
1458
- getSavedDesigns(): Promise<SavedDesign[]>;
1463
+ getSavedDesigns(): Promise<import("services/design").SavedDesign[]>;
1459
1464
  /**
1460
1465
  * Removes a design from storage. This will be a noop if the design isn't already saved.
1461
1466
  * @param experience The workflow experience to remove from storage.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "0.10.98",
3
+ "version": "0.10.100",
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",