@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/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -22633,6 +22633,11 @@ function modelAssetItem(data) {
|
|
|
22633
22633
|
"Price must be greater than 0 for items marked as 'for-sale'."
|
|
22634
22634
|
);
|
|
22635
22635
|
}
|
|
22636
|
+
if (data.isPublic && (data.marketplacePrice === void 0 || data.marketplacePrice === null)) {
|
|
22637
|
+
throw new import_utils115.BadRequestError(
|
|
22638
|
+
"Marketplace price is required for items marked as public."
|
|
22639
|
+
);
|
|
22640
|
+
}
|
|
22636
22641
|
return {
|
|
22637
22642
|
_id: data._id,
|
|
22638
22643
|
orgId: data.orgId,
|
|
@@ -22642,6 +22647,8 @@ function modelAssetItem(data) {
|
|
|
22642
22647
|
assetClass: data.assetClass,
|
|
22643
22648
|
unit: data.unit ?? "",
|
|
22644
22649
|
price: data.price ?? 0,
|
|
22650
|
+
marketplacePrice: data.marketplacePrice ?? 0,
|
|
22651
|
+
isPublic: data.isPublic ?? false,
|
|
22645
22652
|
sku: data.sku ?? "",
|
|
22646
22653
|
brand: data.brand ?? "",
|
|
22647
22654
|
trackingType: data.trackingType,
|