@spiffcommerce/core 0.10.174 → 0.10.175

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
@@ -659,11 +659,19 @@ export interface DesignCreationMessage {
659
659
  * Represents a transaction.
660
660
  */
661
661
  export interface Transaction {
662
+ /**
663
+ * A unique identifier for this transaction. Useful for reloading and
664
+ * modifying state of the transaction.
665
+ */
662
666
  id: string;
663
667
  /**
664
668
  * User-supplied name for the associated design.
665
669
  */
666
670
  designName?: string;
671
+ /**
672
+ * When true the transaction is a bulk transaction & will allow for modifying
673
+ * variations based on bulk configuration on the workflow.
674
+ */
667
675
  bulk?: boolean;
668
676
  /**
669
677
  * The workflow associated with this transaction.
@@ -1234,12 +1242,26 @@ export abstract class StepHandle<T extends _AnyStepData1> {
1234
1242
  }
1235
1243
  export class BulkStepHandle extends StepHandle<_BulkStepData1> {
1236
1244
  constructor(manager: WorkflowManager, step: _Step1<_BulkStepData1>);
1245
+ /**
1246
+ * @param variant The variant to select. This is not supported in the bulk step.
1247
+ */
1237
1248
  selectVariant(variant: _VariantResource1): Promise<void>;
1238
- addVariationRecord(): void;
1249
+ setDesignName(designName: string): Promise<void>;
1250
+ addVariationRecord(): VariationRecord;
1239
1251
  updateBulkIsConnected(bulkIsConnected: boolean): void;
1252
+ /**
1253
+ * Opens the bulk source in a seperate tab. This bulk source could be a google sheet or a csv file.
1254
+ */
1240
1255
  openBulkSourceUrl(): void;
1241
- sendGoogleSheetLinkToEmail(email: string): void;
1242
- deleteVariationRecord(): void;
1256
+ sendGoogleSheetLinkToEmail(email: string): Promise<void>;
1257
+ /**
1258
+ * Removes a variation from the bulk step.
1259
+ * @param recordNumber The record number of the variation to remove.
1260
+ */
1261
+ deleteVariationRecord(recordNumber: number): void;
1262
+ /**
1263
+ * @returns The aspects of each step that are modifiable from the bulk handle. These are configured in the workflow.
1264
+ */
1243
1265
  getAspects(): import("@spiffcommerce/papyrus").StepAspect[];
1244
1266
  }
1245
1267
  export class IllustrationStepHandle extends StepHandle<_IllustrationStepData1> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "0.10.174",
3
+ "version": "0.10.175",
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",