@jsdev_ninja/core 0.10.5 → 0.10.7
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/core.cjs.js +1 -1
- package/dist/core.cjs.js.map +1 -1
- package/dist/core.es.js +4 -2
- package/dist/core.es.js.map +1 -1
- package/dist/core.umd.js +1 -1
- package/dist/core.umd.js.map +1 -1
- package/dist/entities/Cart.d.ts +7 -0
- package/dist/entities/Cart.d.ts.map +1 -1
- package/dist/entities/Discount.js +1 -1
- package/dist/entities/Order.d.ts +9 -0
- package/dist/entities/Order.d.ts.map +1 -1
- package/dist/entities/Product.d.ts +6 -0
- package/dist/entities/Product.d.ts.map +1 -1
- package/dist/entities/Product.js +1 -0
- package/dist/entities/Store.d.ts +3 -0
- package/dist/entities/Store.d.ts.map +1 -1
- package/dist/entities/Store.js +1 -0
- package/lib/entities/Product.ts +1 -0
- package/lib/entities/Store.ts +1 -0
- package/package.json +1 -1
package/dist/core.es.js
CHANGED
|
@@ -3016,6 +3016,7 @@ const k = i.string().min(1, { message: "שדה חובה" }), or = i.string().reg
|
|
|
3016
3016
|
type: i.enum(["number", "percent", "none"]),
|
|
3017
3017
|
value: i.number()
|
|
3018
3018
|
}),
|
|
3019
|
+
isDiscountable: i.boolean({ description: "included in store discounts" }).optional(),
|
|
3019
3020
|
weight: i.object({
|
|
3020
3021
|
value: i.number(),
|
|
3021
3022
|
unit: i.enum(["kg", "gram", "none"])
|
|
@@ -3160,7 +3161,8 @@ i.object({
|
|
|
3160
3161
|
tenantId: i.string(),
|
|
3161
3162
|
// firebase auth tenantId
|
|
3162
3163
|
paymentType: i.enum(["external", "j5"]),
|
|
3163
|
-
allowAnonymousClients: i.boolean()
|
|
3164
|
+
allowAnonymousClients: i.boolean(),
|
|
3165
|
+
isVatIncludedInPrice: i.boolean()
|
|
3164
3166
|
});
|
|
3165
3167
|
const Se = i.string().min(1), yr = i.object({
|
|
3166
3168
|
type: i.literal("Discount"),
|
|
@@ -3172,7 +3174,7 @@ const Se = i.string().min(1), yr = i.object({
|
|
|
3172
3174
|
variant: i.discriminatedUnion("variantType", [
|
|
3173
3175
|
i.object({
|
|
3174
3176
|
variantType: i.literal("bundle"),
|
|
3175
|
-
productsId: i.array(i.string()),
|
|
3177
|
+
productsId: i.array(i.string()).min(1),
|
|
3176
3178
|
requiredQuantity: i.number().positive(),
|
|
3177
3179
|
discountPrice: i.number().positive()
|
|
3178
3180
|
})
|