@teamkeel/functions-runtime 0.421.0 → 0.421.1

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.d.cts CHANGED
@@ -625,6 +625,7 @@ type PickListResponseItem = {
625
625
  id: string;
626
626
  quantity: number;
627
627
  targetQuantity: number;
628
+ scannedBarcodes?: string[];
628
629
  };
629
630
  type PickListItem = {
630
631
  id: string;
package/dist/index.d.ts CHANGED
@@ -625,6 +625,7 @@ type PickListResponseItem = {
625
625
  id: string;
626
626
  quantity: number;
627
627
  targetQuantity: number;
628
+ scannedBarcodes?: string[];
628
629
  };
629
630
  type PickListItem = {
630
631
  id: string;
package/dist/index.js CHANGED
@@ -2894,7 +2894,7 @@ var pickList = /* @__PURE__ */ __name((name, options) => {
2894
2894
  return "Items must be an array";
2895
2895
  }
2896
2896
  if (data.items.some(
2897
- (item) => typeof item !== "object" || typeof item.id !== "string" || typeof item.qty !== "number"
2897
+ (item) => typeof item !== "object" || typeof item.id !== "string" || typeof item.quantity !== "number" || typeof item.targetQuantity !== "number" || item.scannedBarcodes && !Array.isArray(item.scannedBarcodes)
2898
2898
  )) {
2899
2899
  return "Invalid data";
2900
2900
  }