@goweekdays/core 2.15.7 → 2.15.8
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -22627,6 +22627,11 @@ function modelAssetItem(data) {
|
|
|
22627
22627
|
"Price must be greater than 0 for items marked as 'for-sale'."
|
|
22628
22628
|
);
|
|
22629
22629
|
}
|
|
22630
|
+
if (data.isPublic && (data.marketplacePrice === void 0 || data.marketplacePrice === null)) {
|
|
22631
|
+
throw new BadRequestError108(
|
|
22632
|
+
"Marketplace price is required for items marked as public."
|
|
22633
|
+
);
|
|
22634
|
+
}
|
|
22630
22635
|
return {
|
|
22631
22636
|
_id: data._id,
|
|
22632
22637
|
orgId: data.orgId,
|
|
@@ -22636,6 +22641,8 @@ function modelAssetItem(data) {
|
|
|
22636
22641
|
assetClass: data.assetClass,
|
|
22637
22642
|
unit: data.unit ?? "",
|
|
22638
22643
|
price: data.price ?? 0,
|
|
22644
|
+
marketplacePrice: data.marketplacePrice ?? 0,
|
|
22645
|
+
isPublic: data.isPublic ?? false,
|
|
22639
22646
|
sku: data.sku ?? "",
|
|
22640
22647
|
brand: data.brand ?? "",
|
|
22641
22648
|
trackingType: data.trackingType,
|