@flowselections/floriday-verkoop-module 1.0.55 → 1.0.56

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.
Files changed (59) hide show
  1. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/OrderKarindelingCard.js +2 -1
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts +11 -8
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.d.ts +11 -8
  6. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.server.d.ts +11 -8
  8. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.d.ts +11 -8
  10. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  11. package/dist-lib/lib/cart-lock.functions.d.ts +11 -8
  12. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-planning-settings.functions.d.ts +121 -88
  14. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-replan.functions.d.ts +33 -24
  16. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-replan.functions.js +38 -31
  18. package/dist-lib/lib/create-order.functions.d.ts +187 -136
  19. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +33 -24
  21. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +11 -8
  23. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-mirror.functions.d.ts +11 -8
  25. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-public.functions.d.ts +77 -56
  27. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-writes.functions.d.ts +55 -40
  29. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/invoice-timing.functions.d.ts +44 -32
  31. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/load-carriers.functions.d.ts +11 -8
  33. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/logistics-engine.functions.d.ts +55 -40
  35. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/logistics-stock.functions.d.ts +22 -16
  37. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/order-addresses.functions.d.ts +11 -8
  39. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/order-buffers.functions.d.ts +33 -24
  41. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/order-carrier.functions.d.ts +22 -16
  43. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/order-pickup.functions.d.ts +22 -16
  45. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/order-shipments.functions.d.ts +44 -32
  47. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/product-name.d.ts +3 -0
  49. package/dist-lib/lib/product-name.d.ts.map +1 -0
  50. package/dist-lib/lib/product-name.js +43 -0
  51. package/dist-lib/lib/salesorders-list.functions.d.ts +11 -8
  52. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/salesorders.functions.d.ts +55 -40
  54. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +22 -16
  56. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/tradeitems.functions.d.ts +11 -8
  58. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  59. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"OrderKarindelingCard.d.ts","sourceRoot":"","sources":["../../../src/components/verkoop/OrderKarindelingCard.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AA4C/D,wBAAgB,oBAAoB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,aAAa,CAAA;CAAE,2CA8LvE"}
1
+ {"version":3,"file":"OrderKarindelingCard.d.ts","sourceRoot":"","sources":["../../../src/components/verkoop/OrderKarindelingCard.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AA6C/D,wBAAgB,oBAAoB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,aAAa,CAAA;CAAE,2CA8LvE"}
@@ -14,6 +14,7 @@ import { CheckCircle2, Lock } from "lucide-react";
14
14
  import { supabase } from "../../integrations/supabase/client";
15
15
  import { formatBeladingNotation } from "../../lib/load-carrier-labels";
16
16
  import { listOrderCarts } from "../../lib/cart-replan.functions";
17
+ import { resolveProductName } from "../../lib/product-name";
17
18
  const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
18
19
  function belading(i) {
19
20
  // Eén notatie in de hele module: lagen × fusten/laag × planten/fust
@@ -88,6 +89,6 @@ export function OrderKarindelingCard({ order }) {
88
89
  ? orderNumberByItem.get(i.order_item_id)
89
90
  : undefined;
90
91
  const crates = Number(i.crates ?? 0);
91
- return (_jsxs(TableRow, { children: [_jsx(TableCell, { children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { children: i.product_name ?? "—" }), multiOrder && own?.orderNumber && (_jsx(Badge, { variant: own.orderId === dbOrderId ? "default" : "outline", className: "text-[10px]", children: own.orderNumber }))] }) }), _jsx(TableCell, { className: "text-right", children: crates * Number(i.plants_per_crate ?? 0) }), _jsx(TableCell, { className: "text-right", children: crates }), _jsx(TableCell, { className: "font-mono text-xs", children: belading(i) }), _jsxs(TableCell, { className: "text-right", children: [Math.round(Number(i.layer_share_pct ?? 0) * 10) / 10, "%"] })] }, i.id));
92
+ return (_jsxs(TableRow, { children: [_jsx(TableCell, { children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { children: resolveProductName(i.product_name) ?? "—" }), multiOrder && own?.orderNumber && (_jsx(Badge, { variant: own.orderId === dbOrderId ? "default" : "outline", className: "text-[10px]", children: own.orderNumber }))] }) }), _jsx(TableCell, { className: "text-right", children: crates * Number(i.plants_per_crate ?? 0) }), _jsx(TableCell, { className: "text-right", children: crates }), _jsx(TableCell, { className: "font-mono text-xs", children: belading(i) }), _jsxs(TableCell, { className: "text-right", children: [Math.round(Number(i.layer_share_pct ?? 0) * 10) / 10, "%"] })] }, i.id));
92
93
  }) })] })] }, c.id))) })) })] }));
93
94
  }
@@ -10815,6 +10815,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10815
10815
  last_error: string | null;
10816
10816
  last_error_at: string | null;
10817
10817
  last_success_at: string | null;
10818
+ provider: string;
10818
10819
  updated_at: string;
10819
10820
  };
10820
10821
  Insert: {
@@ -10826,6 +10827,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10826
10827
  last_error?: string | null;
10827
10828
  last_error_at?: string | null;
10828
10829
  last_success_at?: string | null;
10830
+ provider?: string;
10829
10831
  updated_at?: string;
10830
10832
  };
10831
10833
  Update: {
@@ -10837,6 +10839,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10837
10839
  last_error?: string | null;
10838
10840
  last_error_at?: string | null;
10839
10841
  last_success_at?: string | null;
10842
+ provider?: string;
10840
10843
  updated_at?: string;
10841
10844
  };
10842
10845
  Relationships: [];
@@ -22000,14 +22003,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22000
22003
  };
22001
22004
  Returns: string;
22002
22005
  };
22003
- maps_cron_token: {
22004
- Args: never;
22005
- Returns: string;
22006
- };
22007
- maps_kick_queue: {
22008
- Args: never;
22009
- Returns: undefined;
22010
- };
22011
22006
  mark_offer_clicked: {
22012
22007
  Args: {
22013
22008
  p_code: string;
@@ -22625,6 +22620,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22625
22620
  };
22626
22621
  Returns: undefined;
22627
22622
  };
22623
+ replace_order_carts: {
22624
+ Args: {
22625
+ p_buffer_id: string;
22626
+ p_carts: import("./types").Json;
22627
+ p_order_id: string;
22628
+ };
22629
+ Returns: import("./types").Json;
22630
+ };
22628
22631
  reset_floriday_sync_cursor: {
22629
22632
  Args: {
22630
22633
  p_connection_id: string;