@jsdev_ninja/core 0.12.9 → 0.12.11

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.es.js CHANGED
@@ -3042,7 +3042,7 @@ const re = i.object({
3042
3042
  updated_at: i.number(),
3043
3043
  categoryIds: i.array(i.string().nonempty()),
3044
3044
  // @deprecated
3045
- categoryList: i.array(Re),
3045
+ categoryList: i.array(Re).optional(),
3046
3046
  // @deprecated
3047
3047
  categories: i.object({
3048
3048
  lvl0: i.array(i.string()),
@@ -3050,9 +3050,9 @@ const re = i.object({
3050
3050
  lvl2: i.array(i.string()),
3051
3051
  lvl3: i.array(i.string()),
3052
3052
  lvl4: i.array(i.string())
3053
- }),
3053
+ }).optional(),
3054
3054
  // @deprecated
3055
- categoryNames: i.array(i.string())
3055
+ categoryNames: i.array(i.string()).optional()
3056
3056
  }), Zr = He.extend({
3057
3057
  image: i.instanceof(File).optional()
3058
3058
  }), Ge = i.object({
@@ -3080,7 +3080,9 @@ const re = i.object({
3080
3080
  storeId: i.string().uuid(),
3081
3081
  userId: i.string().uuid(),
3082
3082
  productId: i.string().uuid()
3083
- }), Xe = i.enum(["default", "delayed"]), hr = i.object({
3083
+ }), Xe = i.enum(["default", "delayed"], {
3084
+ description: "delayed is J5 transaction"
3085
+ }), hr = i.object({
3084
3086
  type: i.literal("Profile"),
3085
3087
  id: M,
3086
3088
  companyId: M,
@@ -3157,7 +3159,7 @@ const Pr = i.object({
3157
3159
  actualAmount: i.number().positive().optional(),
3158
3160
  // what store charge
3159
3161
  date: i.number(),
3160
- deliveryDate: i.coerce.number().optional(),
3162
+ deliveryDate: i.coerce.number(),
3161
3163
  client: hr.required({}),
3162
3164
  nameOnInvoice: i.string().optional(),
3163
3165
  clientComment: i.string().optional()
@@ -3369,9 +3371,7 @@ function Lr({
3369
3371
  id: d.product.id,
3370
3372
  price: d.product.price
3371
3373
  }
3372
- })), a = vr.calculateDiscounts(s, e);
3373
- console.log("discountResult", a);
3374
- const o = r.map((d, l) => {
3374
+ })), a = vr.calculateDiscounts(s, e), o = r.map((d, l) => {
3375
3375
  const m = a.items[l];
3376
3376
  return {
3377
3377
  amount: d.amount,