@artisan-commerce/builders 0.7.0-canary.62 → 0.7.0-canary.63
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/bundle.cjs +7 -3
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.mjs +7 -3
- package/dist/bundle.mjs.map +1 -1
- package/dist/bundle.umd.js +7 -3
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/bundle.cjs
CHANGED
|
@@ -510,7 +510,9 @@ const buildPriceCategory = (overrides = {}) => {
|
|
|
510
510
|
grossPrice,
|
|
511
511
|
netPrice,
|
|
512
512
|
symbol: "$",
|
|
513
|
-
taxes
|
|
513
|
+
taxes,
|
|
514
|
+
salePercentage: 0,
|
|
515
|
+
priceBeforeSale: 0
|
|
514
516
|
}, overrides);
|
|
515
517
|
};
|
|
516
518
|
const buildBaseProduct = (overrides = {}) => {
|
|
@@ -531,7 +533,8 @@ const buildBaseProduct = (overrides = {}) => {
|
|
|
531
533
|
outOfStock: false,
|
|
532
534
|
prices: {
|
|
533
535
|
NORMAL: buildPriceCategory({ category: "NORMAL" }),
|
|
534
|
-
POINTS: buildPriceCategory({ category: "POINTS" })
|
|
536
|
+
POINTS: buildPriceCategory({ category: "POINTS" }),
|
|
537
|
+
SUGGESTED: buildPriceCategory({ category: "SUGGESTED" })
|
|
535
538
|
},
|
|
536
539
|
productId: genNumber(999).toString(),
|
|
537
540
|
sponsored: false,
|
|
@@ -561,7 +564,8 @@ const buildProductAnswer = (overrides = {}, loop = 1) => {
|
|
|
561
564
|
name: faker.faker.name.jobDescriptor(),
|
|
562
565
|
prices: {
|
|
563
566
|
NORMAL: buildPriceCategory({ category: "NORMAL" }),
|
|
564
|
-
POINTS: buildPriceCategory({ category: "POINTS" })
|
|
567
|
+
POINTS: buildPriceCategory({ category: "POINTS" }),
|
|
568
|
+
SUGGESTED: buildPriceCategory({ category: "SUGGESTED" })
|
|
565
569
|
},
|
|
566
570
|
productId: genNumber(999).toString(),
|
|
567
571
|
type: chooseRandom(["PRODUCT", "MODIFIER"]),
|