@teamkeel/functions-runtime 0.421.0 → 0.421.2

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/index.cjs CHANGED
@@ -2880,7 +2880,8 @@ var print = /* @__PURE__ */ __name(async (options) => {
2880
2880
  return {
2881
2881
  type: d.type,
2882
2882
  name: d.name,
2883
- data: Array.isArray(d.data) ? d.data : [d.data]
2883
+ data: Array.isArray(d.data) ? d.data : [d.data],
2884
+ printer: d.printer
2884
2885
  };
2885
2886
  }
2886
2887
  return null;
@@ -2924,7 +2925,7 @@ var pickList = /* @__PURE__ */ __name((name, options) => {
2924
2925
  return "Items must be an array";
2925
2926
  }
2926
2927
  if (data.items.some(
2927
- (item) => typeof item !== "object" || typeof item.id !== "string" || typeof item.qty !== "number"
2928
+ (item) => typeof item !== "object" || typeof item.id !== "string" || typeof item.quantity !== "number" || typeof item.targetQuantity !== "number" || item.scannedBarcodes && !Array.isArray(item.scannedBarcodes)
2928
2929
  )) {
2929
2930
  return "Invalid data";
2930
2931
  }