@flowselections/floriday-verkoop-module 1.0.60 → 1.0.62

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 (149) hide show
  1. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +9 -0
  2. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -0
  3. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +26 -0
  4. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +6 -0
  5. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -0
  6. package/dist-lib/components/karindeling/AfmetingenTab.js +128 -0
  7. package/dist-lib/components/karindeling/KarindelingPage.d.ts +2 -0
  8. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -0
  9. package/dist-lib/components/karindeling/KarindelingPage.js +102 -0
  10. package/dist-lib/components/ui/dropdown-menu.d.ts +9 -0
  11. package/dist-lib/components/ui/dropdown-menu.d.ts.map +1 -0
  12. package/dist-lib/components/ui/dropdown-menu.js +14 -0
  13. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  14. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  15. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +1 -1
  16. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -1
  17. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  18. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  19. package/dist-lib/components/verkoop/CartLayersDialog.d.ts +1 -1
  20. package/dist-lib/components/verkoop/CartLayersDialog.d.ts.map +1 -1
  21. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +5 -0
  22. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +1 -0
  23. package/dist-lib/components/verkoop/CreateOrderDialog.js +33 -0
  24. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  25. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  26. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  27. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  28. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  29. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  30. package/dist-lib/components/verkoop/EngineBufferCard.d.ts +1 -1
  31. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  32. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +1 -1
  33. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -1
  34. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  35. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  36. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts +1 -1
  37. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts.map +1 -1
  38. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  39. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  40. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  41. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  42. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts +1 -1
  43. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts.map +1 -1
  44. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  45. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  46. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts +1 -1
  47. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts.map +1 -1
  48. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  49. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  50. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  51. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  52. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  53. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  54. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  55. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  56. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +1 -2
  57. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  58. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  59. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  60. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +1 -1
  61. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -1
  62. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  63. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  64. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +18 -5
  65. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  66. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  67. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1061 -15
  68. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  69. package/dist-lib/integrations/supabase/client.server.d.ts +1061 -15
  70. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  71. package/dist-lib/integrations/supabase/types.d.ts +1061 -10
  72. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  73. package/dist-lib/lib/buffer-events.functions.d.ts +1061 -15
  74. package/dist-lib/lib/buffer-events.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/cart-layers.functions.d.ts +4188 -36
  76. package/dist-lib/lib/cart-layers.functions.d.ts.map +1 -1
  77. package/dist-lib/lib/cart-lock.functions.d.ts +1061 -15
  78. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  79. package/dist-lib/lib/cart-planning-settings.functions.d.ts +11506 -0
  80. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  81. package/dist-lib/lib/cart-replan.functions.d.ts +3139 -1
  82. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  83. package/dist-lib/lib/cart-replan.functions.js +8 -47
  84. package/dist-lib/lib/create-order.functions.d.ts +17799 -102
  85. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  86. package/dist-lib/lib/create-order.functions.js +3 -16
  87. package/dist-lib/lib/cron/push-order-statuses.d.ts +4 -0
  88. package/dist-lib/lib/cron/push-order-statuses.d.ts.map +1 -0
  89. package/dist-lib/lib/cron/push-order-statuses.js +23 -0
  90. package/dist-lib/lib/cron/replan-carts.d.ts +1 -1
  91. package/dist-lib/lib/cron/replan-carts.d.ts.map +1 -1
  92. package/dist-lib/lib/cron/replan-carts.js +10 -15
  93. package/dist-lib/lib/floriday/floriday.server.d.ts +14 -0
  94. package/dist-lib/lib/floriday/floriday.server.d.ts.map +1 -0
  95. package/dist-lib/lib/floriday/floriday.server.js +92 -0
  96. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +4736 -0
  97. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +1 -0
  98. package/dist-lib/lib/floriday/sales-orders.functions.js +193 -0
  99. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +13288 -2362
  100. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  101. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +2092 -0
  102. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  103. package/dist-lib/lib/floriday-mirror.functions.d.ts +1061 -15
  104. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  105. package/dist-lib/lib/floriday-mirror.functions.js +282 -117
  106. package/dist-lib/lib/floriday-public.functions.d.ts +7322 -0
  107. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  108. package/dist-lib/lib/floriday-status-sync.server.d.ts +14 -0
  109. package/dist-lib/lib/floriday-status-sync.server.d.ts.map +1 -0
  110. package/dist-lib/lib/floriday-status-sync.server.js +130 -0
  111. package/dist-lib/lib/floriday-writes.functions.d.ts +2092 -0
  112. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  113. package/dist-lib/lib/invoice-timing.functions.d.ts +4184 -0
  114. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  115. package/dist-lib/lib/load-carriers.functions.d.ts +1061 -15
  116. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  117. package/dist-lib/lib/logistics-engine.functions.d.ts +5235 -15
  118. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  119. package/dist-lib/lib/logistics-engine.server.d.ts.map +1 -1
  120. package/dist-lib/lib/logistics-engine.server.js +2 -9
  121. package/dist-lib/lib/logistics-stock.functions.d.ts +2092 -0
  122. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  123. package/dist-lib/lib/order-addresses.functions.d.ts +1061 -15
  124. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  125. package/dist-lib/lib/order-buffers.functions.d.ts +3147 -3
  126. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  127. package/dist-lib/lib/order-buffers.functions.js +3 -12
  128. package/dist-lib/lib/order-carrier.functions.d.ts +2092 -0
  129. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  130. package/dist-lib/lib/order-fulfill.functions.d.ts +1061 -15
  131. package/dist-lib/lib/order-fulfill.functions.d.ts.map +1 -1
  132. package/dist-lib/lib/order-pickup.functions.d.ts +2092 -0
  133. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  134. package/dist-lib/lib/order-shipments.functions.d.ts +4184 -0
  135. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  136. package/dist-lib/lib/product-dimensions.functions.d.ts +2092 -0
  137. package/dist-lib/lib/product-dimensions.functions.d.ts.map +1 -1
  138. package/dist-lib/lib/salesorders-list.functions.d.ts +2092 -0
  139. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  140. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  141. package/dist-lib/lib/salesorders-list.server.js +62 -3
  142. package/dist-lib/lib/salesorders.functions.d.ts +6303 -17
  143. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  144. package/dist-lib/lib/salesorders.functions.js +22 -22
  145. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +2092 -0
  146. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  147. package/dist-lib/lib/tradeitems.functions.d.ts +1061 -15
  148. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  149. package/package.json +1 -1
@@ -2270,6 +2270,45 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
2270
2270
  };
2271
2271
  Relationships: [];
2272
2272
  };
2273
+ customer_product_stickers: {
2274
+ Row: {
2275
+ created_at: string;
2276
+ customer_key: string;
2277
+ file_name: string;
2278
+ file_path: string;
2279
+ file_size: number | null;
2280
+ id: string;
2281
+ mime_type: string | null;
2282
+ trade_item_key: string;
2283
+ updated_at: string;
2284
+ uploaded_by: string | null;
2285
+ };
2286
+ Insert: {
2287
+ created_at?: string;
2288
+ customer_key: string;
2289
+ file_name: string;
2290
+ file_path: string;
2291
+ file_size?: number | null;
2292
+ id?: string;
2293
+ mime_type?: string | null;
2294
+ trade_item_key: string;
2295
+ updated_at?: string;
2296
+ uploaded_by?: string | null;
2297
+ };
2298
+ Update: {
2299
+ created_at?: string;
2300
+ customer_key?: string;
2301
+ file_name?: string;
2302
+ file_path?: string;
2303
+ file_size?: number | null;
2304
+ id?: string;
2305
+ mime_type?: string | null;
2306
+ trade_item_key?: string;
2307
+ updated_at?: string;
2308
+ uploaded_by?: string | null;
2309
+ };
2310
+ Relationships: [];
2311
+ };
2273
2312
  customer_selected_assortment: {
2274
2313
  Row: {
2275
2314
  article_number: string | null;
@@ -2318,6 +2357,30 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
2318
2357
  referencedColumns: ["id"];
2319
2358
  }];
2320
2359
  };
2360
+ customer_sticker_settings: {
2361
+ Row: {
2362
+ created_at: string;
2363
+ customer_key: string;
2364
+ height_mm: number;
2365
+ updated_at: string;
2366
+ width_mm: number;
2367
+ };
2368
+ Insert: {
2369
+ created_at?: string;
2370
+ customer_key: string;
2371
+ height_mm?: number;
2372
+ updated_at?: string;
2373
+ width_mm?: number;
2374
+ };
2375
+ Update: {
2376
+ created_at?: string;
2377
+ customer_key?: string;
2378
+ height_mm?: number;
2379
+ updated_at?: string;
2380
+ width_mm?: number;
2381
+ };
2382
+ Relationships: [];
2383
+ };
2321
2384
  customer_trade_settings: {
2322
2385
  Row: {
2323
2386
  category: string;
@@ -5648,6 +5711,102 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5648
5711
  referencedColumns: ["id"];
5649
5712
  }];
5650
5713
  };
5714
+ floriday_api_log: {
5715
+ Row: {
5716
+ action: string | null;
5717
+ caller: string | null;
5718
+ connection_id: string | null;
5719
+ created_at: string;
5720
+ cursor_from: number | null;
5721
+ direction: string;
5722
+ duration_ms: number | null;
5723
+ environment: string | null;
5724
+ error: string | null;
5725
+ floriday_id: string | null;
5726
+ floriday_reference: string | null;
5727
+ http_status: number;
5728
+ id: string;
5729
+ item_count: number | null;
5730
+ kind: string | null;
5731
+ local_id: string | null;
5732
+ local_reference: string | null;
5733
+ method: string;
5734
+ module: string | null;
5735
+ ok: boolean;
5736
+ path: string;
5737
+ request: import("../integrations/supabase/types").Json | null;
5738
+ resource_type: string | null;
5739
+ response: import("../integrations/supabase/types").Json | null;
5740
+ write_log_id: string | null;
5741
+ };
5742
+ Insert: {
5743
+ action?: string | null;
5744
+ caller?: string | null;
5745
+ connection_id?: string | null;
5746
+ created_at?: string;
5747
+ cursor_from?: number | null;
5748
+ direction: string;
5749
+ duration_ms?: number | null;
5750
+ environment?: string | null;
5751
+ error?: string | null;
5752
+ floriday_id?: string | null;
5753
+ floriday_reference?: string | null;
5754
+ http_status?: number;
5755
+ id?: string;
5756
+ item_count?: number | null;
5757
+ kind?: string | null;
5758
+ local_id?: string | null;
5759
+ local_reference?: string | null;
5760
+ method: string;
5761
+ module?: string | null;
5762
+ ok?: boolean;
5763
+ path: string;
5764
+ request?: import("../integrations/supabase/types").Json | null;
5765
+ resource_type?: string | null;
5766
+ response?: import("../integrations/supabase/types").Json | null;
5767
+ write_log_id?: string | null;
5768
+ };
5769
+ Update: {
5770
+ action?: string | null;
5771
+ caller?: string | null;
5772
+ connection_id?: string | null;
5773
+ created_at?: string;
5774
+ cursor_from?: number | null;
5775
+ direction?: string;
5776
+ duration_ms?: number | null;
5777
+ environment?: string | null;
5778
+ error?: string | null;
5779
+ floriday_id?: string | null;
5780
+ floriday_reference?: string | null;
5781
+ http_status?: number;
5782
+ id?: string;
5783
+ item_count?: number | null;
5784
+ kind?: string | null;
5785
+ local_id?: string | null;
5786
+ local_reference?: string | null;
5787
+ method?: string;
5788
+ module?: string | null;
5789
+ ok?: boolean;
5790
+ path?: string;
5791
+ request?: import("../integrations/supabase/types").Json | null;
5792
+ resource_type?: string | null;
5793
+ response?: import("../integrations/supabase/types").Json | null;
5794
+ write_log_id?: string | null;
5795
+ };
5796
+ Relationships: [{
5797
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5798
+ columns: ["connection_id"];
5799
+ isOneToOne: false;
5800
+ referencedRelation: "floriday_connections";
5801
+ referencedColumns: ["id"];
5802
+ }, {
5803
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5804
+ columns: ["write_log_id"];
5805
+ isOneToOne: false;
5806
+ referencedRelation: "floriday_write_log";
5807
+ referencedColumns: ["id"];
5808
+ }];
5809
+ };
5651
5810
  floriday_auction_letters_cache: {
5652
5811
  Row: {
5653
5812
  auction_letter_code: string;
@@ -5855,6 +6014,84 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5855
6014
  referencedColumns: ["id"];
5856
6015
  }];
5857
6016
  };
6017
+ floriday_catalog_prices_cache: {
6018
+ Row: {
6019
+ connection_id: string;
6020
+ created_at: string;
6021
+ currency: string;
6022
+ id: string;
6023
+ is_deleted: boolean;
6024
+ price: number | null;
6025
+ price_group_id: string | null;
6026
+ price_group_name: string | null;
6027
+ price_type: string;
6028
+ raw: import("../integrations/supabase/types").Json | null;
6029
+ sales_unit: string | null;
6030
+ sequence_number: number;
6031
+ supplier_article_code: string | null;
6032
+ supply_line_id: string;
6033
+ synced_at: string;
6034
+ trade_item_id: string | null;
6035
+ updated_at: string;
6036
+ valid_from: string | null;
6037
+ valid_to: string | null;
6038
+ week: number | null;
6039
+ year: number | null;
6040
+ };
6041
+ Insert: {
6042
+ connection_id: string;
6043
+ created_at?: string;
6044
+ currency?: string;
6045
+ id?: string;
6046
+ is_deleted?: boolean;
6047
+ price?: number | null;
6048
+ price_group_id?: string | null;
6049
+ price_group_name?: string | null;
6050
+ price_type?: string;
6051
+ raw?: import("../integrations/supabase/types").Json | null;
6052
+ sales_unit?: string | null;
6053
+ sequence_number?: number;
6054
+ supplier_article_code?: string | null;
6055
+ supply_line_id: string;
6056
+ synced_at?: string;
6057
+ trade_item_id?: string | null;
6058
+ updated_at?: string;
6059
+ valid_from?: string | null;
6060
+ valid_to?: string | null;
6061
+ week?: number | null;
6062
+ year?: number | null;
6063
+ };
6064
+ Update: {
6065
+ connection_id?: string;
6066
+ created_at?: string;
6067
+ currency?: string;
6068
+ id?: string;
6069
+ is_deleted?: boolean;
6070
+ price?: number | null;
6071
+ price_group_id?: string | null;
6072
+ price_group_name?: string | null;
6073
+ price_type?: string;
6074
+ raw?: import("../integrations/supabase/types").Json | null;
6075
+ sales_unit?: string | null;
6076
+ sequence_number?: number;
6077
+ supplier_article_code?: string | null;
6078
+ supply_line_id?: string;
6079
+ synced_at?: string;
6080
+ trade_item_id?: string | null;
6081
+ updated_at?: string;
6082
+ valid_from?: string | null;
6083
+ valid_to?: string | null;
6084
+ week?: number | null;
6085
+ year?: number | null;
6086
+ };
6087
+ Relationships: [{
6088
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6089
+ columns: ["connection_id"];
6090
+ isOneToOne: false;
6091
+ referencedRelation: "floriday_connections";
6092
+ referencedColumns: ["id"];
6093
+ }];
6094
+ };
5858
6095
  floriday_clock_presales_cache: {
5859
6096
  Row: {
5860
6097
  buyer_organization_id: string | null;
@@ -6770,6 +7007,69 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6770
7007
  referencedColumns: ["id"];
6771
7008
  }];
6772
7009
  };
7010
+ floriday_link_templates: {
7011
+ Row: {
7012
+ created_at: string;
7013
+ floriday_url_template: string | null;
7014
+ is_active: boolean;
7015
+ label: string;
7016
+ local_url_template: string | null;
7017
+ resource_type: string;
7018
+ updated_at: string;
7019
+ };
7020
+ Insert: {
7021
+ created_at?: string;
7022
+ floriday_url_template?: string | null;
7023
+ is_active?: boolean;
7024
+ label: string;
7025
+ local_url_template?: string | null;
7026
+ resource_type: string;
7027
+ updated_at?: string;
7028
+ };
7029
+ Update: {
7030
+ created_at?: string;
7031
+ floriday_url_template?: string | null;
7032
+ is_active?: boolean;
7033
+ label?: string;
7034
+ local_url_template?: string | null;
7035
+ resource_type?: string;
7036
+ updated_at?: string;
7037
+ };
7038
+ Relationships: [];
7039
+ };
7040
+ floriday_log_retention: {
7041
+ Row: {
7042
+ created_at: string;
7043
+ direction: string | null;
7044
+ id: string;
7045
+ keep_failed_days: number | null;
7046
+ keep_ok_days: number | null;
7047
+ note: string | null;
7048
+ resource_type: string | null;
7049
+ updated_at: string;
7050
+ };
7051
+ Insert: {
7052
+ created_at?: string;
7053
+ direction?: string | null;
7054
+ id?: string;
7055
+ keep_failed_days?: number | null;
7056
+ keep_ok_days?: number | null;
7057
+ note?: string | null;
7058
+ resource_type?: string | null;
7059
+ updated_at?: string;
7060
+ };
7061
+ Update: {
7062
+ created_at?: string;
7063
+ direction?: string | null;
7064
+ id?: string;
7065
+ keep_failed_days?: number | null;
7066
+ keep_ok_days?: number | null;
7067
+ note?: string | null;
7068
+ resource_type?: string | null;
7069
+ updated_at?: string;
7070
+ };
7071
+ Relationships: [];
7072
+ };
6773
7073
  floriday_logistic_labels_cache: {
6774
7074
  Row: {
6775
7075
  byte_size: number | null;
@@ -10123,22 +10423,31 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10123
10423
  };
10124
10424
  logistics_floriday_push_refusals: {
10125
10425
  Row: {
10426
+ action: string | null;
10126
10427
  created_at: string;
10127
10428
  id: string;
10128
10429
  order_ref: string;
10129
10430
  reason: string;
10431
+ source_module: string | null;
10432
+ source_shell: string | null;
10130
10433
  };
10131
10434
  Insert: {
10435
+ action?: string | null;
10132
10436
  created_at?: string;
10133
10437
  id?: string;
10134
10438
  order_ref: string;
10135
10439
  reason: string;
10440
+ source_module?: string | null;
10441
+ source_shell?: string | null;
10136
10442
  };
10137
10443
  Update: {
10444
+ action?: string | null;
10138
10445
  created_at?: string;
10139
10446
  id?: string;
10140
10447
  order_ref?: string;
10141
10448
  reason?: string;
10449
+ source_module?: string | null;
10450
+ source_shell?: string | null;
10142
10451
  };
10143
10452
  Relationships: [];
10144
10453
  };
@@ -10217,6 +10526,42 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10217
10526
  };
10218
10527
  Relationships: [];
10219
10528
  };
10529
+ logistics_floriday_status_sends: {
10530
+ Row: {
10531
+ action: string;
10532
+ created_at: string;
10533
+ detail: string | null;
10534
+ http_status: number | null;
10535
+ id: string;
10536
+ ok: boolean;
10537
+ order_ref: string;
10538
+ source_module: string | null;
10539
+ source_shell: string | null;
10540
+ };
10541
+ Insert: {
10542
+ action: string;
10543
+ created_at?: string;
10544
+ detail?: string | null;
10545
+ http_status?: number | null;
10546
+ id?: string;
10547
+ ok?: boolean;
10548
+ order_ref: string;
10549
+ source_module?: string | null;
10550
+ source_shell?: string | null;
10551
+ };
10552
+ Update: {
10553
+ action?: string;
10554
+ created_at?: string;
10555
+ detail?: string | null;
10556
+ http_status?: number | null;
10557
+ id?: string;
10558
+ ok?: boolean;
10559
+ order_ref?: string;
10560
+ source_module?: string | null;
10561
+ source_shell?: string | null;
10562
+ };
10563
+ Relationships: [];
10564
+ };
10220
10565
  logistics_formulas: {
10221
10566
  Row: {
10222
10567
  created_at: string;
@@ -10289,6 +10634,108 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10289
10634
  };
10290
10635
  Relationships: [];
10291
10636
  };
10637
+ logistics_opening_exceptions: {
10638
+ Row: {
10639
+ closes: string | null;
10640
+ created_at: string;
10641
+ day: string;
10642
+ id: string;
10643
+ is_closed: boolean;
10644
+ note: string | null;
10645
+ opens: string | null;
10646
+ };
10647
+ Insert: {
10648
+ closes?: string | null;
10649
+ created_at?: string;
10650
+ day: string;
10651
+ id?: string;
10652
+ is_closed?: boolean;
10653
+ note?: string | null;
10654
+ opens?: string | null;
10655
+ };
10656
+ Update: {
10657
+ closes?: string | null;
10658
+ created_at?: string;
10659
+ day?: string;
10660
+ id?: string;
10661
+ is_closed?: boolean;
10662
+ note?: string | null;
10663
+ opens?: string | null;
10664
+ };
10665
+ Relationships: [];
10666
+ };
10667
+ logistics_opening_hours: {
10668
+ Row: {
10669
+ closes: string;
10670
+ created_at: string;
10671
+ id: string;
10672
+ is_active: boolean;
10673
+ note: string | null;
10674
+ opens: string;
10675
+ weekday: number;
10676
+ };
10677
+ Insert: {
10678
+ closes: string;
10679
+ created_at?: string;
10680
+ id?: string;
10681
+ is_active?: boolean;
10682
+ note?: string | null;
10683
+ opens: string;
10684
+ weekday: number;
10685
+ };
10686
+ Update: {
10687
+ closes?: string;
10688
+ created_at?: string;
10689
+ id?: string;
10690
+ is_active?: boolean;
10691
+ note?: string | null;
10692
+ opens?: string;
10693
+ weekday?: number;
10694
+ };
10695
+ Relationships: [];
10696
+ };
10697
+ logistics_pick_data_requests: {
10698
+ Row: {
10699
+ actions: import("../integrations/supabase/types").Json;
10700
+ created_at: string;
10701
+ event_id: string | null;
10702
+ finished_at: string | null;
10703
+ id: string;
10704
+ missing: import("../integrations/supabase/types").Json;
10705
+ order_ref: string;
10706
+ reason: string | null;
10707
+ result: import("../integrations/supabase/types").Json | null;
10708
+ status: string;
10709
+ unit_ref: string | null;
10710
+ };
10711
+ Insert: {
10712
+ actions?: import("../integrations/supabase/types").Json;
10713
+ created_at?: string;
10714
+ event_id?: string | null;
10715
+ finished_at?: string | null;
10716
+ id?: string;
10717
+ missing?: import("../integrations/supabase/types").Json;
10718
+ order_ref: string;
10719
+ reason?: string | null;
10720
+ result?: import("../integrations/supabase/types").Json | null;
10721
+ status?: string;
10722
+ unit_ref?: string | null;
10723
+ };
10724
+ Update: {
10725
+ actions?: import("../integrations/supabase/types").Json;
10726
+ created_at?: string;
10727
+ event_id?: string | null;
10728
+ finished_at?: string | null;
10729
+ id?: string;
10730
+ missing?: import("../integrations/supabase/types").Json;
10731
+ order_ref?: string;
10732
+ reason?: string | null;
10733
+ result?: import("../integrations/supabase/types").Json | null;
10734
+ status?: string;
10735
+ unit_ref?: string | null;
10736
+ };
10737
+ Relationships: [];
10738
+ };
10292
10739
  logistics_pickup_moments: {
10293
10740
  Row: {
10294
10741
  carrier_ref: string | null;
@@ -10748,6 +11195,69 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10748
11195
  };
10749
11196
  Relationships: [];
10750
11197
  };
11198
+ logistics_slip_shipping_note: {
11199
+ Row: {
11200
+ attempts: number;
11201
+ batch_key: string | null;
11202
+ cart_id: string | null;
11203
+ created_at: string;
11204
+ error: string | null;
11205
+ error_code: string | null;
11206
+ fulfillment_order_id: string | null;
11207
+ id: string;
11208
+ locked_until: string | null;
11209
+ next_attempt_at: string | null;
11210
+ order_id: string | null;
11211
+ order_number: string | null;
11212
+ print_job_id: string | null;
11213
+ printer_id: string | null;
11214
+ retry_class: string | null;
11215
+ slip_job_id: string;
11216
+ status: string;
11217
+ updated_at: string;
11218
+ };
11219
+ Insert: {
11220
+ attempts?: number;
11221
+ batch_key?: string | null;
11222
+ cart_id?: string | null;
11223
+ created_at?: string;
11224
+ error?: string | null;
11225
+ error_code?: string | null;
11226
+ fulfillment_order_id?: string | null;
11227
+ id?: string;
11228
+ locked_until?: string | null;
11229
+ next_attempt_at?: string | null;
11230
+ order_id?: string | null;
11231
+ order_number?: string | null;
11232
+ print_job_id?: string | null;
11233
+ printer_id?: string | null;
11234
+ retry_class?: string | null;
11235
+ slip_job_id: string;
11236
+ status?: string;
11237
+ updated_at?: string;
11238
+ };
11239
+ Update: {
11240
+ attempts?: number;
11241
+ batch_key?: string | null;
11242
+ cart_id?: string | null;
11243
+ created_at?: string;
11244
+ error?: string | null;
11245
+ error_code?: string | null;
11246
+ fulfillment_order_id?: string | null;
11247
+ id?: string;
11248
+ locked_until?: string | null;
11249
+ next_attempt_at?: string | null;
11250
+ order_id?: string | null;
11251
+ order_number?: string | null;
11252
+ print_job_id?: string | null;
11253
+ printer_id?: string | null;
11254
+ retry_class?: string | null;
11255
+ slip_job_id?: string;
11256
+ status?: string;
11257
+ updated_at?: string;
11258
+ };
11259
+ Relationships: [];
11260
+ };
10751
11261
  logistics_staff_planning: {
10752
11262
  Row: {
10753
11263
  created_at: string;
@@ -11081,6 +11591,129 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11081
11591
  };
11082
11592
  Relationships: [];
11083
11593
  };
11594
+ logistics_time_settings: {
11595
+ Row: {
11596
+ id: boolean;
11597
+ timezone: string;
11598
+ updated_at: string;
11599
+ };
11600
+ Insert: {
11601
+ id?: boolean;
11602
+ timezone: string;
11603
+ updated_at?: string;
11604
+ };
11605
+ Update: {
11606
+ id?: boolean;
11607
+ timezone?: string;
11608
+ updated_at?: string;
11609
+ };
11610
+ Relationships: [];
11611
+ };
11612
+ logistics_trace_events: {
11613
+ Row: {
11614
+ actor: string | null;
11615
+ attempts: number;
11616
+ cart_ref: string | null;
11617
+ created_at: string;
11618
+ db_action: string | null;
11619
+ db_new: import("../integrations/supabase/types").Json | null;
11620
+ db_old: import("../integrations/supabase/types").Json | null;
11621
+ db_record: string | null;
11622
+ db_table: string | null;
11623
+ decision: string | null;
11624
+ duration_ms: number | null;
11625
+ error: string | null;
11626
+ external_action: string | null;
11627
+ external_ref: string | null;
11628
+ external_response: import("../integrations/supabase/types").Json | null;
11629
+ external_status: string | null;
11630
+ external_system: string | null;
11631
+ id: string;
11632
+ input: import("../integrations/supabase/types").Json | null;
11633
+ next_attempt_at: string | null;
11634
+ order_ref: string | null;
11635
+ order_source: string | null;
11636
+ output: import("../integrations/supabase/types").Json | null;
11637
+ phase: string;
11638
+ reads: import("../integrations/supabase/types").Json | null;
11639
+ reason: string | null;
11640
+ rule: string | null;
11641
+ slip_ref: string | null;
11642
+ status: string;
11643
+ step: string;
11644
+ trace_id: string;
11645
+ values_used: import("../integrations/supabase/types").Json | null;
11646
+ };
11647
+ Insert: {
11648
+ actor?: string | null;
11649
+ attempts?: number;
11650
+ cart_ref?: string | null;
11651
+ created_at?: string;
11652
+ db_action?: string | null;
11653
+ db_new?: import("../integrations/supabase/types").Json | null;
11654
+ db_old?: import("../integrations/supabase/types").Json | null;
11655
+ db_record?: string | null;
11656
+ db_table?: string | null;
11657
+ decision?: string | null;
11658
+ duration_ms?: number | null;
11659
+ error?: string | null;
11660
+ external_action?: string | null;
11661
+ external_ref?: string | null;
11662
+ external_response?: import("../integrations/supabase/types").Json | null;
11663
+ external_status?: string | null;
11664
+ external_system?: string | null;
11665
+ id?: string;
11666
+ input?: import("../integrations/supabase/types").Json | null;
11667
+ next_attempt_at?: string | null;
11668
+ order_ref?: string | null;
11669
+ order_source?: string | null;
11670
+ output?: import("../integrations/supabase/types").Json | null;
11671
+ phase: string;
11672
+ reads?: import("../integrations/supabase/types").Json | null;
11673
+ reason?: string | null;
11674
+ rule?: string | null;
11675
+ slip_ref?: string | null;
11676
+ status: string;
11677
+ step: string;
11678
+ trace_id?: string;
11679
+ values_used?: import("../integrations/supabase/types").Json | null;
11680
+ };
11681
+ Update: {
11682
+ actor?: string | null;
11683
+ attempts?: number;
11684
+ cart_ref?: string | null;
11685
+ created_at?: string;
11686
+ db_action?: string | null;
11687
+ db_new?: import("../integrations/supabase/types").Json | null;
11688
+ db_old?: import("../integrations/supabase/types").Json | null;
11689
+ db_record?: string | null;
11690
+ db_table?: string | null;
11691
+ decision?: string | null;
11692
+ duration_ms?: number | null;
11693
+ error?: string | null;
11694
+ external_action?: string | null;
11695
+ external_ref?: string | null;
11696
+ external_response?: import("../integrations/supabase/types").Json | null;
11697
+ external_status?: string | null;
11698
+ external_system?: string | null;
11699
+ id?: string;
11700
+ input?: import("../integrations/supabase/types").Json | null;
11701
+ next_attempt_at?: string | null;
11702
+ order_ref?: string | null;
11703
+ order_source?: string | null;
11704
+ output?: import("../integrations/supabase/types").Json | null;
11705
+ phase?: string;
11706
+ reads?: import("../integrations/supabase/types").Json | null;
11707
+ reason?: string | null;
11708
+ rule?: string | null;
11709
+ slip_ref?: string | null;
11710
+ status?: string;
11711
+ step?: string;
11712
+ trace_id?: string;
11713
+ values_used?: import("../integrations/supabase/types").Json | null;
11714
+ };
11715
+ Relationships: [];
11716
+ };
11084
11717
  logistics_variables: {
11085
11718
  Row: {
11086
11719
  created_at: string;
@@ -13471,6 +14104,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13471
14104
  customer_name: string;
13472
14105
  deleted_at: string | null;
13473
14106
  delivery_date: string | null;
14107
+ floriday_order_group_key: string | null;
13474
14108
  floriday_sales_order_id: string | null;
13475
14109
  id: string;
13476
14110
  invoice_due_at: string | null;
@@ -13498,6 +14132,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13498
14132
  customer_name?: string;
13499
14133
  deleted_at?: string | null;
13500
14134
  delivery_date?: string | null;
14135
+ floriday_order_group_key?: string | null;
13501
14136
  floriday_sales_order_id?: string | null;
13502
14137
  id?: string;
13503
14138
  invoice_due_at?: string | null;
@@ -13525,6 +14160,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13525
14160
  customer_name?: string;
13526
14161
  deleted_at?: string | null;
13527
14162
  delivery_date?: string | null;
14163
+ floriday_order_group_key?: string | null;
13528
14164
  floriday_sales_order_id?: string | null;
13529
14165
  id?: string;
13530
14166
  invoice_due_at?: string | null;
@@ -19388,6 +20024,36 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19388
20024
  referencedColumns: ["id"];
19389
20025
  }];
19390
20026
  };
20027
+ voorraad_buffer_state: {
20028
+ Row: {
20029
+ buffer_id: string;
20030
+ buffer_key: string | null;
20031
+ closed_at: string | null;
20032
+ created_at: string;
20033
+ detached_orders: import("../integrations/supabase/types").Json;
20034
+ reason: string | null;
20035
+ updated_at: string;
20036
+ };
20037
+ Insert: {
20038
+ buffer_id: string;
20039
+ buffer_key?: string | null;
20040
+ closed_at?: string | null;
20041
+ created_at?: string;
20042
+ detached_orders?: import("../integrations/supabase/types").Json;
20043
+ reason?: string | null;
20044
+ updated_at?: string;
20045
+ };
20046
+ Update: {
20047
+ buffer_id?: string;
20048
+ buffer_key?: string | null;
20049
+ closed_at?: string | null;
20050
+ created_at?: string;
20051
+ detached_orders?: import("../integrations/supabase/types").Json;
20052
+ reason?: string | null;
20053
+ updated_at?: string;
20054
+ };
20055
+ Relationships: [];
20056
+ };
19391
20057
  voorraad_custom_fields: {
19392
20058
  Row: {
19393
20059
  created_at: string;
@@ -19430,6 +20096,36 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19430
20096
  };
19431
20097
  Relationships: [];
19432
20098
  };
20099
+ voorraad_logistics_event_log: {
20100
+ Row: {
20101
+ created_at: string;
20102
+ event_id: string;
20103
+ event_type: string;
20104
+ order_ref: string | null;
20105
+ processed_at: string;
20106
+ result: import("../integrations/supabase/types").Json;
20107
+ updated_at: string;
20108
+ };
20109
+ Insert: {
20110
+ created_at?: string;
20111
+ event_id: string;
20112
+ event_type: string;
20113
+ order_ref?: string | null;
20114
+ processed_at?: string;
20115
+ result?: import("../integrations/supabase/types").Json;
20116
+ updated_at?: string;
20117
+ };
20118
+ Update: {
20119
+ created_at?: string;
20120
+ event_id?: string;
20121
+ event_type?: string;
20122
+ order_ref?: string | null;
20123
+ processed_at?: string;
20124
+ result?: import("../integrations/supabase/types").Json;
20125
+ updated_at?: string;
20126
+ };
20127
+ Relationships: [];
20128
+ };
19433
20129
  voorraad_media_upload_failures: {
19434
20130
  Row: {
19435
20131
  action: string;
@@ -21590,6 +22286,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21590
22286
  Args: never;
21591
22287
  Returns: boolean;
21592
22288
  };
22289
+ cancel_open_print_jobs: {
22290
+ Args: {
22291
+ _cutoff: string;
22292
+ };
22293
+ Returns: {
22294
+ extern_job_id: string;
22295
+ id: string;
22296
+ }[];
22297
+ };
21593
22298
  check_offer_product_available_stock: {
21594
22299
  Args: {
21595
22300
  p_campaign_product_id: string;
@@ -23128,6 +23833,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23128
23833
  };
23129
23834
  Returns: string;
23130
23835
  };
23836
+ logistics_cart_checkin_at: {
23837
+ Args: {
23838
+ p_cart_id: string;
23839
+ };
23840
+ Returns: string;
23841
+ };
23131
23842
  logistics_cart_handled: {
23132
23843
  Args: {
23133
23844
  p_cart_index: number;
@@ -23161,10 +23872,22 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23161
23872
  task_status: string;
23162
23873
  }[];
23163
23874
  };
23875
+ logistics_cart_is_full: {
23876
+ Args: {
23877
+ p_cart_id: string;
23878
+ };
23879
+ Returns: boolean;
23880
+ };
23164
23881
  logistics_cart_layout_method: {
23165
23882
  Args: never;
23166
23883
  Returns: import("../integrations/supabase/types").Json;
23167
23884
  };
23885
+ logistics_cart_order_refs: {
23886
+ Args: {
23887
+ p_cart_id: string;
23888
+ };
23889
+ Returns: string[];
23890
+ };
23168
23891
  logistics_cart_plan_overview: {
23169
23892
  Args: {
23170
23893
  p_days?: number;
@@ -23184,6 +23907,24 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23184
23907
  };
23185
23908
  Returns: import("../integrations/supabase/types").Json;
23186
23909
  };
23910
+ logistics_cart_plan_status_core: {
23911
+ Args: {
23912
+ p_ref: string;
23913
+ };
23914
+ Returns: import("../integrations/supabase/types").Json;
23915
+ };
23916
+ logistics_cart_release_reason: {
23917
+ Args: {
23918
+ p_cart_id: string;
23919
+ };
23920
+ Returns: string;
23921
+ };
23922
+ logistics_cart_released: {
23923
+ Args: {
23924
+ p_cart_id: string;
23925
+ };
23926
+ Returns: boolean;
23927
+ };
23187
23928
  logistics_cart_seq: {
23188
23929
  Args: {
23189
23930
  p_order_uuid?: string;
@@ -23234,6 +23975,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23234
23975
  unit_ref: string;
23235
23976
  }[];
23236
23977
  };
23978
+ logistics_carts_per_print: {
23979
+ Args: never;
23980
+ Returns: number;
23981
+ };
23237
23982
  logistics_check_order_allowed: {
23238
23983
  Args: {
23239
23984
  p_lines: import("../integrations/supabase/types").Json;
@@ -23337,6 +24082,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23337
24082
  isSetofReturn: false;
23338
24083
  };
23339
24084
  };
24085
+ logistics_cleanup_orphan_print_jobs: {
24086
+ Args: never;
24087
+ Returns: import("../integrations/supabase/types").Json;
24088
+ };
23340
24089
  logistics_complete_task: {
23341
24090
  Args: {
23342
24091
  p_result?: import("../integrations/supabase/types").Json;
@@ -23399,6 +24148,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23399
24148
  station_carts: number;
23400
24149
  }[];
23401
24150
  };
24151
+ logistics_control_complete_cart: {
24152
+ Args: {
24153
+ p_cart_id: string;
24154
+ };
24155
+ Returns: number;
24156
+ };
23402
24157
  logistics_control_scan_approve: {
23403
24158
  Args: {
23404
24159
  p_allow_reprint?: boolean;
@@ -23478,6 +24233,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23478
24233
  Args: never;
23479
24234
  Returns: import("../integrations/supabase/types").Json;
23480
24235
  };
24236
+ logistics_day_windows: {
24237
+ Args: {
24238
+ p_day: string;
24239
+ };
24240
+ Returns: {
24241
+ win_end: string;
24242
+ win_start: string;
24243
+ }[];
24244
+ };
23481
24245
  logistics_delay_customer_email: {
23482
24246
  Args: {
23483
24247
  p_customer: string;
@@ -23545,6 +24309,17 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23545
24309
  };
23546
24310
  Returns: import("../integrations/supabase/types").Json;
23547
24311
  };
24312
+ logistics_enqueue_shipping_note_with_slip: {
24313
+ Args: {
24314
+ _cart_id: string;
24315
+ _is_herprint: boolean;
24316
+ _printer_id: string;
24317
+ _queue_item_id: string;
24318
+ _session_id: string;
24319
+ _slip_job_id: string;
24320
+ };
24321
+ Returns: string;
24322
+ };
23548
24323
  logistics_enqueue_sticker_with_slip: {
23549
24324
  Args: {
23550
24325
  _cart_id: string;
@@ -23562,6 +24337,20 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23562
24337
  };
23563
24338
  Returns: string;
23564
24339
  };
24340
+ logistics_ensure_pick_data: {
24341
+ Args: {
24342
+ p_event_id?: string;
24343
+ p_missing?: import("../integrations/supabase/types").Json;
24344
+ p_ref: string;
24345
+ };
24346
+ Returns: import("../integrations/supabase/types").Json;
24347
+ };
24348
+ logistics_ensure_shipping_notes: {
24349
+ Args: {
24350
+ p_limit?: number;
24351
+ };
24352
+ Returns: import("../integrations/supabase/types").Json;
24353
+ };
23565
24354
  logistics_fail_task: {
23566
24355
  Args: {
23567
24356
  p_error: string;
@@ -23607,6 +24396,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23607
24396
  isSetofReturn: false;
23608
24397
  };
23609
24398
  };
24399
+ logistics_fix_wrong_shipping_notes: {
24400
+ Args: never;
24401
+ Returns: import("../integrations/supabase/types").Json;
24402
+ };
23610
24403
  logistics_floriday_cart_plan: {
23611
24404
  Args: {
23612
24405
  p_order_id: string;
@@ -23634,6 +24427,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23634
24427
  revision: number;
23635
24428
  }[];
23636
24429
  };
24430
+ logistics_floriday_delivery_note_create_enabled: {
24431
+ Args: never;
24432
+ Returns: boolean;
24433
+ };
23637
24434
  logistics_floriday_finish_push: {
23638
24435
  Args: {
23639
24436
  _error?: string;
@@ -23683,6 +24480,32 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23683
24480
  };
23684
24481
  Returns: string;
23685
24482
  };
24483
+ logistics_floriday_gate_status: {
24484
+ Args: never;
24485
+ Returns: import("../integrations/supabase/types").Json;
24486
+ };
24487
+ logistics_floriday_log_refusal: {
24488
+ Args: {
24489
+ _action?: string;
24490
+ _module?: string;
24491
+ _order_ref: string;
24492
+ _reason: string;
24493
+ _shell?: string;
24494
+ };
24495
+ Returns: undefined;
24496
+ };
24497
+ logistics_floriday_log_send: {
24498
+ Args: {
24499
+ _action: string;
24500
+ _detail?: string;
24501
+ _http_status?: number;
24502
+ _module?: string;
24503
+ _ok: boolean;
24504
+ _order_ref: string;
24505
+ _shell?: string;
24506
+ };
24507
+ Returns: undefined;
24508
+ };
23686
24509
  logistics_floriday_order_approved: {
23687
24510
  Args: {
23688
24511
  _order_ref: string;
@@ -23707,6 +24530,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23707
24530
  Args: never;
23708
24531
  Returns: boolean;
23709
24532
  };
24533
+ logistics_floriday_stock_updates_enabled: {
24534
+ Args: never;
24535
+ Returns: boolean;
24536
+ };
24537
+ logistics_floriday_write_allowed: {
24538
+ Args: {
24539
+ _action: string;
24540
+ };
24541
+ Returns: boolean;
24542
+ };
23710
24543
  logistics_fulfill_barcode_requests: {
23711
24544
  Args: {
23712
24545
  p_limit?: number;
@@ -23749,6 +24582,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23749
24582
  };
23750
24583
  Returns: number;
23751
24584
  };
24585
+ logistics_merge_partial_carts: {
24586
+ Args: {
24587
+ p_limit?: number;
24588
+ };
24589
+ Returns: import("../integrations/supabase/types").Json;
24590
+ };
23752
24591
  logistics_next_workday_date: {
23753
24592
  Args: {
23754
24593
  p_date: string;
@@ -23775,6 +24614,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23775
24614
  };
23776
24615
  Returns: string;
23777
24616
  };
24617
+ logistics_opening_timezone: {
24618
+ Args: never;
24619
+ Returns: string;
24620
+ };
23778
24621
  logistics_order_cart_count: {
23779
24622
  Args: {
23780
24623
  p_order_ref: string;
@@ -23831,6 +24674,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23831
24674
  };
23832
24675
  Returns: string;
23833
24676
  };
24677
+ logistics_payload_is_floriday: {
24678
+ Args: {
24679
+ _payload: import("../integrations/supabase/types").Json;
24680
+ };
24681
+ Returns: boolean;
24682
+ };
23834
24683
  logistics_pick_agenda: {
23835
24684
  Args: {
23836
24685
  p_from?: string;
@@ -23859,6 +24708,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23859
24708
  Args: never;
23860
24709
  Returns: import("../integrations/supabase/types").Json;
23861
24710
  };
24711
+ logistics_pick_partial_mode: {
24712
+ Args: never;
24713
+ Returns: string;
24714
+ };
23862
24715
  logistics_pick_start_estimate: {
23863
24716
  Args: {
23864
24717
  p_order: import("../integrations/supabase/types").Json;
@@ -23949,6 +24802,20 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23949
24802
  Args: never;
23950
24803
  Returns: undefined;
23951
24804
  };
24805
+ logistics_plan_progress: {
24806
+ Args: {
24807
+ p_refs: string[];
24808
+ };
24809
+ Returns: {
24810
+ cart_plan_ready: boolean;
24811
+ cart_plan_reason: string;
24812
+ cart_plan_released: boolean;
24813
+ plan_progress: number;
24814
+ plan_state: string;
24815
+ plan_state_since: string;
24816
+ unit_ref: string;
24817
+ }[];
24818
+ };
23952
24819
  logistics_plan_prune: {
23953
24820
  Args: never;
23954
24821
  Returns: number;
@@ -23970,6 +24837,18 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23970
24837
  };
23971
24838
  Returns: number;
23972
24839
  };
24840
+ logistics_plan_state_for: {
24841
+ Args: {
24842
+ p_ref: string;
24843
+ };
24844
+ Returns: import("../integrations/supabase/types").Json;
24845
+ };
24846
+ logistics_prepare_pick_documents: {
24847
+ Args: {
24848
+ p_limit?: number;
24849
+ };
24850
+ Returns: import("../integrations/supabase/types").Json;
24851
+ };
23973
24852
  logistics_prune_buffer_member_queue: {
23974
24853
  Args: never;
23975
24854
  Returns: number;
@@ -24010,18 +24889,36 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
24010
24889
  Args: never;
24011
24890
  Returns: import("../integrations/supabase/types").Json;
24012
24891
  };
24892
+ logistics_refresh_pick_queue_status: {
24893
+ Args: {
24894
+ p_ref: string;
24895
+ };
24896
+ Returns: number;
24897
+ };
24013
24898
  logistics_refresh_pickup_moments: {
24014
24899
  Args: {
24015
24900
  p_weeks?: number;
24016
24901
  };
24017
24902
  Returns: import("../integrations/supabase/types").Json;
24018
24903
  };
24904
+ logistics_refresh_plan_state: {
24905
+ Args: {
24906
+ p_limit?: number;
24907
+ };
24908
+ Returns: import("../integrations/supabase/types").Json;
24909
+ };
24019
24910
  logistics_replan_all: {
24020
24911
  Args: {
24021
24912
  p_reason?: string;
24022
24913
  };
24023
24914
  Returns: import("../integrations/supabase/types").Json;
24024
24915
  };
24916
+ logistics_replan_all_force: {
24917
+ Args: {
24918
+ p_reason?: string;
24919
+ };
24920
+ Returns: import("../integrations/supabase/types").Json;
24921
+ };
24025
24922
  logistics_report_delay: {
24026
24923
  Args: {
24027
24924
  p_expected_date?: string;
@@ -24166,6 +25063,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
24166
25063
  };
24167
25064
  Returns: string;
24168
25065
  };
25066
+ logistics_shipping_note_follows_slip: {
25067
+ Args: never;
25068
+ Returns: boolean;
25069
+ };
24169
25070
  logistics_shipping_note_from_barcode: {
24170
25071
  Args: {
24171
25072
  p_allow_reprint?: boolean;
@@ -24174,10 +25075,86 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
24174
25075
  };
24175
25076
  Returns: import("../integrations/supabase/types").Json;
24176
25077
  };
25078
+ logistics_shipping_note_job_for_slip: {
25079
+ Args: {
25080
+ _slip_job_id: string;
25081
+ };
25082
+ Returns: string;
25083
+ };
25084
+ logistics_shipping_notes_wake_all: {
25085
+ Args: never;
25086
+ Returns: import("../integrations/supabase/types").Json;
25087
+ };
25088
+ logistics_slip_is_floriday: {
25089
+ Args: {
25090
+ _slip_job_id: string;
25091
+ };
25092
+ Returns: boolean;
25093
+ };
25094
+ logistics_slip_note_claim: {
25095
+ Args: {
25096
+ _lease_seconds?: number;
25097
+ _limit?: number;
25098
+ };
25099
+ Returns: {
25100
+ attempts: number;
25101
+ batch_key: string | null;
25102
+ cart_id: string | null;
25103
+ created_at: string;
25104
+ error: string | null;
25105
+ error_code: string | null;
25106
+ fulfillment_order_id: string | null;
25107
+ id: string;
25108
+ locked_until: string | null;
25109
+ next_attempt_at: string | null;
25110
+ order_id: string | null;
25111
+ order_number: string | null;
25112
+ print_job_id: string | null;
25113
+ printer_id: string | null;
25114
+ retry_class: string | null;
25115
+ slip_job_id: string;
25116
+ status: string;
25117
+ updated_at: string;
25118
+ }[];
25119
+ SetofOptions: {
25120
+ from: "*";
25121
+ to: "logistics_slip_shipping_note";
25122
+ isOneToOne: false;
25123
+ isSetofReturn: true;
25124
+ };
25125
+ };
25126
+ logistics_slip_note_finish: {
25127
+ Args: {
25128
+ _error?: string;
25129
+ _error_code?: string;
25130
+ _fulfillment_order_id?: string;
25131
+ _id: string;
25132
+ _ok: boolean;
25133
+ _print_job_id?: string;
25134
+ _status?: string;
25135
+ };
25136
+ Returns: undefined;
25137
+ };
25138
+ logistics_slip_note_keep_waiting: {
25139
+ Args: {
25140
+ _class?: string;
25141
+ _id: string;
25142
+ _reason: string;
25143
+ };
25144
+ Returns: undefined;
25145
+ };
24177
25146
  logistics_sticker_follows_slip: {
24178
25147
  Args: never;
24179
25148
  Returns: boolean;
24180
25149
  };
25150
+ logistics_subtract_working_minutes: {
25151
+ Args: {
25152
+ p_deadline: string;
25153
+ p_max_workdays?: number;
25154
+ p_minutes: number;
25155
+ };
25156
+ Returns: import("../integrations/supabase/types").Json;
25157
+ };
24181
25158
  logistics_supersede_stale_tasks: {
24182
25159
  Args: {
24183
25160
  p_keep: string[];
@@ -24214,6 +25191,46 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
24214
25191
  Args: never;
24215
25192
  Returns: string;
24216
25193
  };
25194
+ logistics_timezone_options: {
25195
+ Args: never;
25196
+ Returns: {
25197
+ name: string;
25198
+ }[];
25199
+ };
25200
+ logistics_trace: {
25201
+ Args: {
25202
+ p: import("../integrations/supabase/types").Json;
25203
+ };
25204
+ Returns: string;
25205
+ };
25206
+ logistics_trace_batch: {
25207
+ Args: {
25208
+ p: import("../integrations/supabase/types").Json;
25209
+ };
25210
+ Returns: number;
25211
+ };
25212
+ logistics_trace_orders: {
25213
+ Args: {
25214
+ p_limit?: number;
25215
+ p_search?: string;
25216
+ p_since?: string;
25217
+ p_status?: string;
25218
+ };
25219
+ Returns: import("../integrations/supabase/types").Json;
25220
+ };
25221
+ logistics_trace_redact: {
25222
+ Args: {
25223
+ p: import("../integrations/supabase/types").Json;
25224
+ };
25225
+ Returns: import("../integrations/supabase/types").Json;
25226
+ };
25227
+ logistics_trace_timeline: {
25228
+ Args: {
25229
+ p_limit?: number;
25230
+ p_order_ref: string;
25231
+ };
25232
+ Returns: import("../integrations/supabase/types").Json;
25233
+ };
24217
25234
  logistics_upsert_task: {
24218
25235
  Args: {
24219
25236
  p_buffer_ref: string;
@@ -24233,6 +25250,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
24233
25250
  };
24234
25251
  Returns: string;
24235
25252
  };
25253
+ logistics_valid_timezone: {
25254
+ Args: {
25255
+ _tz: string;
25256
+ };
25257
+ Returns: boolean;
25258
+ };
25259
+ logistics_working_hours_status: {
25260
+ Args: never;
25261
+ Returns: import("../integrations/supabase/types").Json;
25262
+ };
24236
25263
  logistics_write_buffer_layer_positions: {
24237
25264
  Args: {
24238
25265
  p_buffer_id: string;
@@ -25245,6 +26272,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
25245
26272
  };
25246
26273
  Returns: undefined;
25247
26274
  };
26275
+ prune_floriday_api_log: {
26276
+ Args: never;
26277
+ Returns: number;
26278
+ };
25248
26279
  quote_create_from_source: {
25249
26280
  Args: {
25250
26281
  _payload?: import("../integrations/supabase/types").Json;
@@ -25678,6 +26709,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
25678
26709
  };
25679
26710
  Returns: number;
25680
26711
  };
26712
+ schedule_floriday_catalog_prices_sync: {
26713
+ Args: {
26714
+ p_apikey: string;
26715
+ p_url: string;
26716
+ };
26717
+ Returns: number;
26718
+ };
25681
26719
  schedule_floriday_clock_presales_sync: {
25682
26720
  Args: {
25683
26721
  p_apikey: string;
@@ -25978,6 +27016,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
25978
27016
  };
25979
27017
  Returns: undefined;
25980
27018
  };
27019
+ sync_floriday_prices_into_price_groups: {
27020
+ Args: never;
27021
+ Returns: number;
27022
+ };
25981
27023
  sync_layer_stock: {
25982
27024
  Args: {
25983
27025
  p_product_id: string;
@@ -26110,6 +27152,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
26110
27152
  Args: never;
26111
27153
  Returns: string;
26112
27154
  };
27155
+ voorraad_cleanup_old_rows: {
27156
+ Args: never;
27157
+ Returns: import("../integrations/supabase/types").Json;
27158
+ };
26113
27159
  wake_print_queue: {
26114
27160
  Args: {
26115
27161
  _min_interval_ms?: number;
@@ -26190,7 +27236,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
26190
27236
  blockedItems: BlockedItem[];
26191
27237
  skipped?: "locked";
26192
27238
  }>>;
26193
- export declare function drainCartReplanQueue(limit?: number): Promise<{
27239
+ export declare function drainCartReplanQueue(_limit?: number): Promise<{
26194
27240
  ok: boolean;
26195
27241
  processed: number;
26196
27242
  failed: number;
@@ -28426,6 +29472,45 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
28426
29472
  };
28427
29473
  Relationships: [];
28428
29474
  };
29475
+ customer_product_stickers: {
29476
+ Row: {
29477
+ created_at: string;
29478
+ customer_key: string;
29479
+ file_name: string;
29480
+ file_path: string;
29481
+ file_size: number | null;
29482
+ id: string;
29483
+ mime_type: string | null;
29484
+ trade_item_key: string;
29485
+ updated_at: string;
29486
+ uploaded_by: string | null;
29487
+ };
29488
+ Insert: {
29489
+ created_at?: string;
29490
+ customer_key: string;
29491
+ file_name: string;
29492
+ file_path: string;
29493
+ file_size?: number | null;
29494
+ id?: string;
29495
+ mime_type?: string | null;
29496
+ trade_item_key: string;
29497
+ updated_at?: string;
29498
+ uploaded_by?: string | null;
29499
+ };
29500
+ Update: {
29501
+ created_at?: string;
29502
+ customer_key?: string;
29503
+ file_name?: string;
29504
+ file_path?: string;
29505
+ file_size?: number | null;
29506
+ id?: string;
29507
+ mime_type?: string | null;
29508
+ trade_item_key?: string;
29509
+ updated_at?: string;
29510
+ uploaded_by?: string | null;
29511
+ };
29512
+ Relationships: [];
29513
+ };
28429
29514
  customer_selected_assortment: {
28430
29515
  Row: {
28431
29516
  article_number: string | null;
@@ -28474,6 +29559,30 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
28474
29559
  referencedColumns: ["id"];
28475
29560
  }];
28476
29561
  };
29562
+ customer_sticker_settings: {
29563
+ Row: {
29564
+ created_at: string;
29565
+ customer_key: string;
29566
+ height_mm: number;
29567
+ updated_at: string;
29568
+ width_mm: number;
29569
+ };
29570
+ Insert: {
29571
+ created_at?: string;
29572
+ customer_key: string;
29573
+ height_mm?: number;
29574
+ updated_at?: string;
29575
+ width_mm?: number;
29576
+ };
29577
+ Update: {
29578
+ created_at?: string;
29579
+ customer_key?: string;
29580
+ height_mm?: number;
29581
+ updated_at?: string;
29582
+ width_mm?: number;
29583
+ };
29584
+ Relationships: [];
29585
+ };
28477
29586
  customer_trade_settings: {
28478
29587
  Row: {
28479
29588
  category: string;
@@ -31804,6 +32913,102 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31804
32913
  referencedColumns: ["id"];
31805
32914
  }];
31806
32915
  };
32916
+ floriday_api_log: {
32917
+ Row: {
32918
+ action: string | null;
32919
+ caller: string | null;
32920
+ connection_id: string | null;
32921
+ created_at: string;
32922
+ cursor_from: number | null;
32923
+ direction: string;
32924
+ duration_ms: number | null;
32925
+ environment: string | null;
32926
+ error: string | null;
32927
+ floriday_id: string | null;
32928
+ floriday_reference: string | null;
32929
+ http_status: number;
32930
+ id: string;
32931
+ item_count: number | null;
32932
+ kind: string | null;
32933
+ local_id: string | null;
32934
+ local_reference: string | null;
32935
+ method: string;
32936
+ module: string | null;
32937
+ ok: boolean;
32938
+ path: string;
32939
+ request: import("../integrations/supabase/types").Json | null;
32940
+ resource_type: string | null;
32941
+ response: import("../integrations/supabase/types").Json | null;
32942
+ write_log_id: string | null;
32943
+ };
32944
+ Insert: {
32945
+ action?: string | null;
32946
+ caller?: string | null;
32947
+ connection_id?: string | null;
32948
+ created_at?: string;
32949
+ cursor_from?: number | null;
32950
+ direction: string;
32951
+ duration_ms?: number | null;
32952
+ environment?: string | null;
32953
+ error?: string | null;
32954
+ floriday_id?: string | null;
32955
+ floriday_reference?: string | null;
32956
+ http_status?: number;
32957
+ id?: string;
32958
+ item_count?: number | null;
32959
+ kind?: string | null;
32960
+ local_id?: string | null;
32961
+ local_reference?: string | null;
32962
+ method: string;
32963
+ module?: string | null;
32964
+ ok?: boolean;
32965
+ path: string;
32966
+ request?: import("../integrations/supabase/types").Json | null;
32967
+ resource_type?: string | null;
32968
+ response?: import("../integrations/supabase/types").Json | null;
32969
+ write_log_id?: string | null;
32970
+ };
32971
+ Update: {
32972
+ action?: string | null;
32973
+ caller?: string | null;
32974
+ connection_id?: string | null;
32975
+ created_at?: string;
32976
+ cursor_from?: number | null;
32977
+ direction?: string;
32978
+ duration_ms?: number | null;
32979
+ environment?: string | null;
32980
+ error?: string | null;
32981
+ floriday_id?: string | null;
32982
+ floriday_reference?: string | null;
32983
+ http_status?: number;
32984
+ id?: string;
32985
+ item_count?: number | null;
32986
+ kind?: string | null;
32987
+ local_id?: string | null;
32988
+ local_reference?: string | null;
32989
+ method?: string;
32990
+ module?: string | null;
32991
+ ok?: boolean;
32992
+ path?: string;
32993
+ request?: import("../integrations/supabase/types").Json | null;
32994
+ resource_type?: string | null;
32995
+ response?: import("../integrations/supabase/types").Json | null;
32996
+ write_log_id?: string | null;
32997
+ };
32998
+ Relationships: [{
32999
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
33000
+ columns: ["connection_id"];
33001
+ isOneToOne: false;
33002
+ referencedRelation: "floriday_connections";
33003
+ referencedColumns: ["id"];
33004
+ }, {
33005
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
33006
+ columns: ["write_log_id"];
33007
+ isOneToOne: false;
33008
+ referencedRelation: "floriday_write_log";
33009
+ referencedColumns: ["id"];
33010
+ }];
33011
+ };
31807
33012
  floriday_auction_letters_cache: {
31808
33013
  Row: {
31809
33014
  auction_letter_code: string;
@@ -32011,6 +33216,84 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32011
33216
  referencedColumns: ["id"];
32012
33217
  }];
32013
33218
  };
33219
+ floriday_catalog_prices_cache: {
33220
+ Row: {
33221
+ connection_id: string;
33222
+ created_at: string;
33223
+ currency: string;
33224
+ id: string;
33225
+ is_deleted: boolean;
33226
+ price: number | null;
33227
+ price_group_id: string | null;
33228
+ price_group_name: string | null;
33229
+ price_type: string;
33230
+ raw: import("../integrations/supabase/types").Json | null;
33231
+ sales_unit: string | null;
33232
+ sequence_number: number;
33233
+ supplier_article_code: string | null;
33234
+ supply_line_id: string;
33235
+ synced_at: string;
33236
+ trade_item_id: string | null;
33237
+ updated_at: string;
33238
+ valid_from: string | null;
33239
+ valid_to: string | null;
33240
+ week: number | null;
33241
+ year: number | null;
33242
+ };
33243
+ Insert: {
33244
+ connection_id: string;
33245
+ created_at?: string;
33246
+ currency?: string;
33247
+ id?: string;
33248
+ is_deleted?: boolean;
33249
+ price?: number | null;
33250
+ price_group_id?: string | null;
33251
+ price_group_name?: string | null;
33252
+ price_type?: string;
33253
+ raw?: import("../integrations/supabase/types").Json | null;
33254
+ sales_unit?: string | null;
33255
+ sequence_number?: number;
33256
+ supplier_article_code?: string | null;
33257
+ supply_line_id: string;
33258
+ synced_at?: string;
33259
+ trade_item_id?: string | null;
33260
+ updated_at?: string;
33261
+ valid_from?: string | null;
33262
+ valid_to?: string | null;
33263
+ week?: number | null;
33264
+ year?: number | null;
33265
+ };
33266
+ Update: {
33267
+ connection_id?: string;
33268
+ created_at?: string;
33269
+ currency?: string;
33270
+ id?: string;
33271
+ is_deleted?: boolean;
33272
+ price?: number | null;
33273
+ price_group_id?: string | null;
33274
+ price_group_name?: string | null;
33275
+ price_type?: string;
33276
+ raw?: import("../integrations/supabase/types").Json | null;
33277
+ sales_unit?: string | null;
33278
+ sequence_number?: number;
33279
+ supplier_article_code?: string | null;
33280
+ supply_line_id?: string;
33281
+ synced_at?: string;
33282
+ trade_item_id?: string | null;
33283
+ updated_at?: string;
33284
+ valid_from?: string | null;
33285
+ valid_to?: string | null;
33286
+ week?: number | null;
33287
+ year?: number | null;
33288
+ };
33289
+ Relationships: [{
33290
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33291
+ columns: ["connection_id"];
33292
+ isOneToOne: false;
33293
+ referencedRelation: "floriday_connections";
33294
+ referencedColumns: ["id"];
33295
+ }];
33296
+ };
32014
33297
  floriday_clock_presales_cache: {
32015
33298
  Row: {
32016
33299
  buyer_organization_id: string | null;
@@ -32926,6 +34209,69 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32926
34209
  referencedColumns: ["id"];
32927
34210
  }];
32928
34211
  };
34212
+ floriday_link_templates: {
34213
+ Row: {
34214
+ created_at: string;
34215
+ floriday_url_template: string | null;
34216
+ is_active: boolean;
34217
+ label: string;
34218
+ local_url_template: string | null;
34219
+ resource_type: string;
34220
+ updated_at: string;
34221
+ };
34222
+ Insert: {
34223
+ created_at?: string;
34224
+ floriday_url_template?: string | null;
34225
+ is_active?: boolean;
34226
+ label: string;
34227
+ local_url_template?: string | null;
34228
+ resource_type: string;
34229
+ updated_at?: string;
34230
+ };
34231
+ Update: {
34232
+ created_at?: string;
34233
+ floriday_url_template?: string | null;
34234
+ is_active?: boolean;
34235
+ label?: string;
34236
+ local_url_template?: string | null;
34237
+ resource_type?: string;
34238
+ updated_at?: string;
34239
+ };
34240
+ Relationships: [];
34241
+ };
34242
+ floriday_log_retention: {
34243
+ Row: {
34244
+ created_at: string;
34245
+ direction: string | null;
34246
+ id: string;
34247
+ keep_failed_days: number | null;
34248
+ keep_ok_days: number | null;
34249
+ note: string | null;
34250
+ resource_type: string | null;
34251
+ updated_at: string;
34252
+ };
34253
+ Insert: {
34254
+ created_at?: string;
34255
+ direction?: string | null;
34256
+ id?: string;
34257
+ keep_failed_days?: number | null;
34258
+ keep_ok_days?: number | null;
34259
+ note?: string | null;
34260
+ resource_type?: string | null;
34261
+ updated_at?: string;
34262
+ };
34263
+ Update: {
34264
+ created_at?: string;
34265
+ direction?: string | null;
34266
+ id?: string;
34267
+ keep_failed_days?: number | null;
34268
+ keep_ok_days?: number | null;
34269
+ note?: string | null;
34270
+ resource_type?: string | null;
34271
+ updated_at?: string;
34272
+ };
34273
+ Relationships: [];
34274
+ };
32929
34275
  floriday_logistic_labels_cache: {
32930
34276
  Row: {
32931
34277
  byte_size: number | null;
@@ -36279,22 +37625,31 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36279
37625
  };
36280
37626
  logistics_floriday_push_refusals: {
36281
37627
  Row: {
37628
+ action: string | null;
36282
37629
  created_at: string;
36283
37630
  id: string;
36284
37631
  order_ref: string;
36285
37632
  reason: string;
37633
+ source_module: string | null;
37634
+ source_shell: string | null;
36286
37635
  };
36287
37636
  Insert: {
37637
+ action?: string | null;
36288
37638
  created_at?: string;
36289
37639
  id?: string;
36290
37640
  order_ref: string;
36291
37641
  reason: string;
37642
+ source_module?: string | null;
37643
+ source_shell?: string | null;
36292
37644
  };
36293
37645
  Update: {
37646
+ action?: string | null;
36294
37647
  created_at?: string;
36295
37648
  id?: string;
36296
37649
  order_ref?: string;
36297
37650
  reason?: string;
37651
+ source_module?: string | null;
37652
+ source_shell?: string | null;
36298
37653
  };
36299
37654
  Relationships: [];
36300
37655
  };
@@ -36373,6 +37728,42 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36373
37728
  };
36374
37729
  Relationships: [];
36375
37730
  };
37731
+ logistics_floriday_status_sends: {
37732
+ Row: {
37733
+ action: string;
37734
+ created_at: string;
37735
+ detail: string | null;
37736
+ http_status: number | null;
37737
+ id: string;
37738
+ ok: boolean;
37739
+ order_ref: string;
37740
+ source_module: string | null;
37741
+ source_shell: string | null;
37742
+ };
37743
+ Insert: {
37744
+ action: string;
37745
+ created_at?: string;
37746
+ detail?: string | null;
37747
+ http_status?: number | null;
37748
+ id?: string;
37749
+ ok?: boolean;
37750
+ order_ref: string;
37751
+ source_module?: string | null;
37752
+ source_shell?: string | null;
37753
+ };
37754
+ Update: {
37755
+ action?: string;
37756
+ created_at?: string;
37757
+ detail?: string | null;
37758
+ http_status?: number | null;
37759
+ id?: string;
37760
+ ok?: boolean;
37761
+ order_ref?: string;
37762
+ source_module?: string | null;
37763
+ source_shell?: string | null;
37764
+ };
37765
+ Relationships: [];
37766
+ };
36376
37767
  logistics_formulas: {
36377
37768
  Row: {
36378
37769
  created_at: string;
@@ -36445,6 +37836,108 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36445
37836
  };
36446
37837
  Relationships: [];
36447
37838
  };
37839
+ logistics_opening_exceptions: {
37840
+ Row: {
37841
+ closes: string | null;
37842
+ created_at: string;
37843
+ day: string;
37844
+ id: string;
37845
+ is_closed: boolean;
37846
+ note: string | null;
37847
+ opens: string | null;
37848
+ };
37849
+ Insert: {
37850
+ closes?: string | null;
37851
+ created_at?: string;
37852
+ day: string;
37853
+ id?: string;
37854
+ is_closed?: boolean;
37855
+ note?: string | null;
37856
+ opens?: string | null;
37857
+ };
37858
+ Update: {
37859
+ closes?: string | null;
37860
+ created_at?: string;
37861
+ day?: string;
37862
+ id?: string;
37863
+ is_closed?: boolean;
37864
+ note?: string | null;
37865
+ opens?: string | null;
37866
+ };
37867
+ Relationships: [];
37868
+ };
37869
+ logistics_opening_hours: {
37870
+ Row: {
37871
+ closes: string;
37872
+ created_at: string;
37873
+ id: string;
37874
+ is_active: boolean;
37875
+ note: string | null;
37876
+ opens: string;
37877
+ weekday: number;
37878
+ };
37879
+ Insert: {
37880
+ closes: string;
37881
+ created_at?: string;
37882
+ id?: string;
37883
+ is_active?: boolean;
37884
+ note?: string | null;
37885
+ opens: string;
37886
+ weekday: number;
37887
+ };
37888
+ Update: {
37889
+ closes?: string;
37890
+ created_at?: string;
37891
+ id?: string;
37892
+ is_active?: boolean;
37893
+ note?: string | null;
37894
+ opens?: string;
37895
+ weekday?: number;
37896
+ };
37897
+ Relationships: [];
37898
+ };
37899
+ logistics_pick_data_requests: {
37900
+ Row: {
37901
+ actions: import("../integrations/supabase/types").Json;
37902
+ created_at: string;
37903
+ event_id: string | null;
37904
+ finished_at: string | null;
37905
+ id: string;
37906
+ missing: import("../integrations/supabase/types").Json;
37907
+ order_ref: string;
37908
+ reason: string | null;
37909
+ result: import("../integrations/supabase/types").Json | null;
37910
+ status: string;
37911
+ unit_ref: string | null;
37912
+ };
37913
+ Insert: {
37914
+ actions?: import("../integrations/supabase/types").Json;
37915
+ created_at?: string;
37916
+ event_id?: string | null;
37917
+ finished_at?: string | null;
37918
+ id?: string;
37919
+ missing?: import("../integrations/supabase/types").Json;
37920
+ order_ref: string;
37921
+ reason?: string | null;
37922
+ result?: import("../integrations/supabase/types").Json | null;
37923
+ status?: string;
37924
+ unit_ref?: string | null;
37925
+ };
37926
+ Update: {
37927
+ actions?: import("../integrations/supabase/types").Json;
37928
+ created_at?: string;
37929
+ event_id?: string | null;
37930
+ finished_at?: string | null;
37931
+ id?: string;
37932
+ missing?: import("../integrations/supabase/types").Json;
37933
+ order_ref?: string;
37934
+ reason?: string | null;
37935
+ result?: import("../integrations/supabase/types").Json | null;
37936
+ status?: string;
37937
+ unit_ref?: string | null;
37938
+ };
37939
+ Relationships: [];
37940
+ };
36448
37941
  logistics_pickup_moments: {
36449
37942
  Row: {
36450
37943
  carrier_ref: string | null;
@@ -36904,6 +38397,69 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36904
38397
  };
36905
38398
  Relationships: [];
36906
38399
  };
38400
+ logistics_slip_shipping_note: {
38401
+ Row: {
38402
+ attempts: number;
38403
+ batch_key: string | null;
38404
+ cart_id: string | null;
38405
+ created_at: string;
38406
+ error: string | null;
38407
+ error_code: string | null;
38408
+ fulfillment_order_id: string | null;
38409
+ id: string;
38410
+ locked_until: string | null;
38411
+ next_attempt_at: string | null;
38412
+ order_id: string | null;
38413
+ order_number: string | null;
38414
+ print_job_id: string | null;
38415
+ printer_id: string | null;
38416
+ retry_class: string | null;
38417
+ slip_job_id: string;
38418
+ status: string;
38419
+ updated_at: string;
38420
+ };
38421
+ Insert: {
38422
+ attempts?: number;
38423
+ batch_key?: string | null;
38424
+ cart_id?: string | null;
38425
+ created_at?: string;
38426
+ error?: string | null;
38427
+ error_code?: string | null;
38428
+ fulfillment_order_id?: string | null;
38429
+ id?: string;
38430
+ locked_until?: string | null;
38431
+ next_attempt_at?: string | null;
38432
+ order_id?: string | null;
38433
+ order_number?: string | null;
38434
+ print_job_id?: string | null;
38435
+ printer_id?: string | null;
38436
+ retry_class?: string | null;
38437
+ slip_job_id: string;
38438
+ status?: string;
38439
+ updated_at?: string;
38440
+ };
38441
+ Update: {
38442
+ attempts?: number;
38443
+ batch_key?: string | null;
38444
+ cart_id?: string | null;
38445
+ created_at?: string;
38446
+ error?: string | null;
38447
+ error_code?: string | null;
38448
+ fulfillment_order_id?: string | null;
38449
+ id?: string;
38450
+ locked_until?: string | null;
38451
+ next_attempt_at?: string | null;
38452
+ order_id?: string | null;
38453
+ order_number?: string | null;
38454
+ print_job_id?: string | null;
38455
+ printer_id?: string | null;
38456
+ retry_class?: string | null;
38457
+ slip_job_id?: string;
38458
+ status?: string;
38459
+ updated_at?: string;
38460
+ };
38461
+ Relationships: [];
38462
+ };
36907
38463
  logistics_staff_planning: {
36908
38464
  Row: {
36909
38465
  created_at: string;
@@ -37237,6 +38793,129 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37237
38793
  };
37238
38794
  Relationships: [];
37239
38795
  };
38796
+ logistics_time_settings: {
38797
+ Row: {
38798
+ id: boolean;
38799
+ timezone: string;
38800
+ updated_at: string;
38801
+ };
38802
+ Insert: {
38803
+ id?: boolean;
38804
+ timezone: string;
38805
+ updated_at?: string;
38806
+ };
38807
+ Update: {
38808
+ id?: boolean;
38809
+ timezone?: string;
38810
+ updated_at?: string;
38811
+ };
38812
+ Relationships: [];
38813
+ };
38814
+ logistics_trace_events: {
38815
+ Row: {
38816
+ actor: string | null;
38817
+ attempts: number;
38818
+ cart_ref: string | null;
38819
+ created_at: string;
38820
+ db_action: string | null;
38821
+ db_new: import("../integrations/supabase/types").Json | null;
38822
+ db_old: import("../integrations/supabase/types").Json | null;
38823
+ db_record: string | null;
38824
+ db_table: string | null;
38825
+ decision: string | null;
38826
+ duration_ms: number | null;
38827
+ error: string | null;
38828
+ external_action: string | null;
38829
+ external_ref: string | null;
38830
+ external_response: import("../integrations/supabase/types").Json | null;
38831
+ external_status: string | null;
38832
+ external_system: string | null;
38833
+ id: string;
38834
+ input: import("../integrations/supabase/types").Json | null;
38835
+ next_attempt_at: string | null;
38836
+ order_ref: string | null;
38837
+ order_source: string | null;
38838
+ output: import("../integrations/supabase/types").Json | null;
38839
+ phase: string;
38840
+ reads: import("../integrations/supabase/types").Json | null;
38841
+ reason: string | null;
38842
+ rule: string | null;
38843
+ slip_ref: string | null;
38844
+ status: string;
38845
+ step: string;
38846
+ trace_id: string;
38847
+ values_used: import("../integrations/supabase/types").Json | null;
38848
+ };
38849
+ Insert: {
38850
+ actor?: string | null;
38851
+ attempts?: number;
38852
+ cart_ref?: string | null;
38853
+ created_at?: string;
38854
+ db_action?: string | null;
38855
+ db_new?: import("../integrations/supabase/types").Json | null;
38856
+ db_old?: import("../integrations/supabase/types").Json | null;
38857
+ db_record?: string | null;
38858
+ db_table?: string | null;
38859
+ decision?: string | null;
38860
+ duration_ms?: number | null;
38861
+ error?: string | null;
38862
+ external_action?: string | null;
38863
+ external_ref?: string | null;
38864
+ external_response?: import("../integrations/supabase/types").Json | null;
38865
+ external_status?: string | null;
38866
+ external_system?: string | null;
38867
+ id?: string;
38868
+ input?: import("../integrations/supabase/types").Json | null;
38869
+ next_attempt_at?: string | null;
38870
+ order_ref?: string | null;
38871
+ order_source?: string | null;
38872
+ output?: import("../integrations/supabase/types").Json | null;
38873
+ phase: string;
38874
+ reads?: import("../integrations/supabase/types").Json | null;
38875
+ reason?: string | null;
38876
+ rule?: string | null;
38877
+ slip_ref?: string | null;
38878
+ status: string;
38879
+ step: string;
38880
+ trace_id?: string;
38881
+ values_used?: import("../integrations/supabase/types").Json | null;
38882
+ };
38883
+ Update: {
38884
+ actor?: string | null;
38885
+ attempts?: number;
38886
+ cart_ref?: string | null;
38887
+ created_at?: string;
38888
+ db_action?: string | null;
38889
+ db_new?: import("../integrations/supabase/types").Json | null;
38890
+ db_old?: import("../integrations/supabase/types").Json | null;
38891
+ db_record?: string | null;
38892
+ db_table?: string | null;
38893
+ decision?: string | null;
38894
+ duration_ms?: number | null;
38895
+ error?: string | null;
38896
+ external_action?: string | null;
38897
+ external_ref?: string | null;
38898
+ external_response?: import("../integrations/supabase/types").Json | null;
38899
+ external_status?: string | null;
38900
+ external_system?: string | null;
38901
+ id?: string;
38902
+ input?: import("../integrations/supabase/types").Json | null;
38903
+ next_attempt_at?: string | null;
38904
+ order_ref?: string | null;
38905
+ order_source?: string | null;
38906
+ output?: import("../integrations/supabase/types").Json | null;
38907
+ phase?: string;
38908
+ reads?: import("../integrations/supabase/types").Json | null;
38909
+ reason?: string | null;
38910
+ rule?: string | null;
38911
+ slip_ref?: string | null;
38912
+ status?: string;
38913
+ step?: string;
38914
+ trace_id?: string;
38915
+ values_used?: import("../integrations/supabase/types").Json | null;
38916
+ };
38917
+ Relationships: [];
38918
+ };
37240
38919
  logistics_variables: {
37241
38920
  Row: {
37242
38921
  created_at: string;
@@ -39627,6 +41306,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39627
41306
  customer_name: string;
39628
41307
  deleted_at: string | null;
39629
41308
  delivery_date: string | null;
41309
+ floriday_order_group_key: string | null;
39630
41310
  floriday_sales_order_id: string | null;
39631
41311
  id: string;
39632
41312
  invoice_due_at: string | null;
@@ -39654,6 +41334,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39654
41334
  customer_name?: string;
39655
41335
  deleted_at?: string | null;
39656
41336
  delivery_date?: string | null;
41337
+ floriday_order_group_key?: string | null;
39657
41338
  floriday_sales_order_id?: string | null;
39658
41339
  id?: string;
39659
41340
  invoice_due_at?: string | null;
@@ -39681,6 +41362,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39681
41362
  customer_name?: string;
39682
41363
  deleted_at?: string | null;
39683
41364
  delivery_date?: string | null;
41365
+ floriday_order_group_key?: string | null;
39684
41366
  floriday_sales_order_id?: string | null;
39685
41367
  id?: string;
39686
41368
  invoice_due_at?: string | null;
@@ -45544,6 +47226,36 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45544
47226
  referencedColumns: ["id"];
45545
47227
  }];
45546
47228
  };
47229
+ voorraad_buffer_state: {
47230
+ Row: {
47231
+ buffer_id: string;
47232
+ buffer_key: string | null;
47233
+ closed_at: string | null;
47234
+ created_at: string;
47235
+ detached_orders: import("../integrations/supabase/types").Json;
47236
+ reason: string | null;
47237
+ updated_at: string;
47238
+ };
47239
+ Insert: {
47240
+ buffer_id: string;
47241
+ buffer_key?: string | null;
47242
+ closed_at?: string | null;
47243
+ created_at?: string;
47244
+ detached_orders?: import("../integrations/supabase/types").Json;
47245
+ reason?: string | null;
47246
+ updated_at?: string;
47247
+ };
47248
+ Update: {
47249
+ buffer_id?: string;
47250
+ buffer_key?: string | null;
47251
+ closed_at?: string | null;
47252
+ created_at?: string;
47253
+ detached_orders?: import("../integrations/supabase/types").Json;
47254
+ reason?: string | null;
47255
+ updated_at?: string;
47256
+ };
47257
+ Relationships: [];
47258
+ };
45547
47259
  voorraad_custom_fields: {
45548
47260
  Row: {
45549
47261
  created_at: string;
@@ -45586,6 +47298,36 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45586
47298
  };
45587
47299
  Relationships: [];
45588
47300
  };
47301
+ voorraad_logistics_event_log: {
47302
+ Row: {
47303
+ created_at: string;
47304
+ event_id: string;
47305
+ event_type: string;
47306
+ order_ref: string | null;
47307
+ processed_at: string;
47308
+ result: import("../integrations/supabase/types").Json;
47309
+ updated_at: string;
47310
+ };
47311
+ Insert: {
47312
+ created_at?: string;
47313
+ event_id: string;
47314
+ event_type: string;
47315
+ order_ref?: string | null;
47316
+ processed_at?: string;
47317
+ result?: import("../integrations/supabase/types").Json;
47318
+ updated_at?: string;
47319
+ };
47320
+ Update: {
47321
+ created_at?: string;
47322
+ event_id?: string;
47323
+ event_type?: string;
47324
+ order_ref?: string | null;
47325
+ processed_at?: string;
47326
+ result?: import("../integrations/supabase/types").Json;
47327
+ updated_at?: string;
47328
+ };
47329
+ Relationships: [];
47330
+ };
45589
47331
  voorraad_media_upload_failures: {
45590
47332
  Row: {
45591
47333
  action: string;
@@ -47746,6 +49488,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
47746
49488
  Args: never;
47747
49489
  Returns: boolean;
47748
49490
  };
49491
+ cancel_open_print_jobs: {
49492
+ Args: {
49493
+ _cutoff: string;
49494
+ };
49495
+ Returns: {
49496
+ extern_job_id: string;
49497
+ id: string;
49498
+ }[];
49499
+ };
47749
49500
  check_offer_product_available_stock: {
47750
49501
  Args: {
47751
49502
  p_campaign_product_id: string;
@@ -49284,6 +51035,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49284
51035
  };
49285
51036
  Returns: string;
49286
51037
  };
51038
+ logistics_cart_checkin_at: {
51039
+ Args: {
51040
+ p_cart_id: string;
51041
+ };
51042
+ Returns: string;
51043
+ };
49287
51044
  logistics_cart_handled: {
49288
51045
  Args: {
49289
51046
  p_cart_index: number;
@@ -49317,10 +51074,22 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49317
51074
  task_status: string;
49318
51075
  }[];
49319
51076
  };
51077
+ logistics_cart_is_full: {
51078
+ Args: {
51079
+ p_cart_id: string;
51080
+ };
51081
+ Returns: boolean;
51082
+ };
49320
51083
  logistics_cart_layout_method: {
49321
51084
  Args: never;
49322
51085
  Returns: import("../integrations/supabase/types").Json;
49323
51086
  };
51087
+ logistics_cart_order_refs: {
51088
+ Args: {
51089
+ p_cart_id: string;
51090
+ };
51091
+ Returns: string[];
51092
+ };
49324
51093
  logistics_cart_plan_overview: {
49325
51094
  Args: {
49326
51095
  p_days?: number;
@@ -49340,6 +51109,24 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49340
51109
  };
49341
51110
  Returns: import("../integrations/supabase/types").Json;
49342
51111
  };
51112
+ logistics_cart_plan_status_core: {
51113
+ Args: {
51114
+ p_ref: string;
51115
+ };
51116
+ Returns: import("../integrations/supabase/types").Json;
51117
+ };
51118
+ logistics_cart_release_reason: {
51119
+ Args: {
51120
+ p_cart_id: string;
51121
+ };
51122
+ Returns: string;
51123
+ };
51124
+ logistics_cart_released: {
51125
+ Args: {
51126
+ p_cart_id: string;
51127
+ };
51128
+ Returns: boolean;
51129
+ };
49343
51130
  logistics_cart_seq: {
49344
51131
  Args: {
49345
51132
  p_order_uuid?: string;
@@ -49390,6 +51177,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49390
51177
  unit_ref: string;
49391
51178
  }[];
49392
51179
  };
51180
+ logistics_carts_per_print: {
51181
+ Args: never;
51182
+ Returns: number;
51183
+ };
49393
51184
  logistics_check_order_allowed: {
49394
51185
  Args: {
49395
51186
  p_lines: import("../integrations/supabase/types").Json;
@@ -49493,6 +51284,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49493
51284
  isSetofReturn: false;
49494
51285
  };
49495
51286
  };
51287
+ logistics_cleanup_orphan_print_jobs: {
51288
+ Args: never;
51289
+ Returns: import("../integrations/supabase/types").Json;
51290
+ };
49496
51291
  logistics_complete_task: {
49497
51292
  Args: {
49498
51293
  p_result?: import("../integrations/supabase/types").Json;
@@ -49555,6 +51350,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49555
51350
  station_carts: number;
49556
51351
  }[];
49557
51352
  };
51353
+ logistics_control_complete_cart: {
51354
+ Args: {
51355
+ p_cart_id: string;
51356
+ };
51357
+ Returns: number;
51358
+ };
49558
51359
  logistics_control_scan_approve: {
49559
51360
  Args: {
49560
51361
  p_allow_reprint?: boolean;
@@ -49634,6 +51435,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49634
51435
  Args: never;
49635
51436
  Returns: import("../integrations/supabase/types").Json;
49636
51437
  };
51438
+ logistics_day_windows: {
51439
+ Args: {
51440
+ p_day: string;
51441
+ };
51442
+ Returns: {
51443
+ win_end: string;
51444
+ win_start: string;
51445
+ }[];
51446
+ };
49637
51447
  logistics_delay_customer_email: {
49638
51448
  Args: {
49639
51449
  p_customer: string;
@@ -49701,6 +51511,17 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49701
51511
  };
49702
51512
  Returns: import("../integrations/supabase/types").Json;
49703
51513
  };
51514
+ logistics_enqueue_shipping_note_with_slip: {
51515
+ Args: {
51516
+ _cart_id: string;
51517
+ _is_herprint: boolean;
51518
+ _printer_id: string;
51519
+ _queue_item_id: string;
51520
+ _session_id: string;
51521
+ _slip_job_id: string;
51522
+ };
51523
+ Returns: string;
51524
+ };
49704
51525
  logistics_enqueue_sticker_with_slip: {
49705
51526
  Args: {
49706
51527
  _cart_id: string;
@@ -49718,6 +51539,20 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49718
51539
  };
49719
51540
  Returns: string;
49720
51541
  };
51542
+ logistics_ensure_pick_data: {
51543
+ Args: {
51544
+ p_event_id?: string;
51545
+ p_missing?: import("../integrations/supabase/types").Json;
51546
+ p_ref: string;
51547
+ };
51548
+ Returns: import("../integrations/supabase/types").Json;
51549
+ };
51550
+ logistics_ensure_shipping_notes: {
51551
+ Args: {
51552
+ p_limit?: number;
51553
+ };
51554
+ Returns: import("../integrations/supabase/types").Json;
51555
+ };
49721
51556
  logistics_fail_task: {
49722
51557
  Args: {
49723
51558
  p_error: string;
@@ -49763,6 +51598,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49763
51598
  isSetofReturn: false;
49764
51599
  };
49765
51600
  };
51601
+ logistics_fix_wrong_shipping_notes: {
51602
+ Args: never;
51603
+ Returns: import("../integrations/supabase/types").Json;
51604
+ };
49766
51605
  logistics_floriday_cart_plan: {
49767
51606
  Args: {
49768
51607
  p_order_id: string;
@@ -49790,6 +51629,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49790
51629
  revision: number;
49791
51630
  }[];
49792
51631
  };
51632
+ logistics_floriday_delivery_note_create_enabled: {
51633
+ Args: never;
51634
+ Returns: boolean;
51635
+ };
49793
51636
  logistics_floriday_finish_push: {
49794
51637
  Args: {
49795
51638
  _error?: string;
@@ -49839,6 +51682,32 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49839
51682
  };
49840
51683
  Returns: string;
49841
51684
  };
51685
+ logistics_floriday_gate_status: {
51686
+ Args: never;
51687
+ Returns: import("../integrations/supabase/types").Json;
51688
+ };
51689
+ logistics_floriday_log_refusal: {
51690
+ Args: {
51691
+ _action?: string;
51692
+ _module?: string;
51693
+ _order_ref: string;
51694
+ _reason: string;
51695
+ _shell?: string;
51696
+ };
51697
+ Returns: undefined;
51698
+ };
51699
+ logistics_floriday_log_send: {
51700
+ Args: {
51701
+ _action: string;
51702
+ _detail?: string;
51703
+ _http_status?: number;
51704
+ _module?: string;
51705
+ _ok: boolean;
51706
+ _order_ref: string;
51707
+ _shell?: string;
51708
+ };
51709
+ Returns: undefined;
51710
+ };
49842
51711
  logistics_floriday_order_approved: {
49843
51712
  Args: {
49844
51713
  _order_ref: string;
@@ -49863,6 +51732,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49863
51732
  Args: never;
49864
51733
  Returns: boolean;
49865
51734
  };
51735
+ logistics_floriday_stock_updates_enabled: {
51736
+ Args: never;
51737
+ Returns: boolean;
51738
+ };
51739
+ logistics_floriday_write_allowed: {
51740
+ Args: {
51741
+ _action: string;
51742
+ };
51743
+ Returns: boolean;
51744
+ };
49866
51745
  logistics_fulfill_barcode_requests: {
49867
51746
  Args: {
49868
51747
  p_limit?: number;
@@ -49905,6 +51784,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49905
51784
  };
49906
51785
  Returns: number;
49907
51786
  };
51787
+ logistics_merge_partial_carts: {
51788
+ Args: {
51789
+ p_limit?: number;
51790
+ };
51791
+ Returns: import("../integrations/supabase/types").Json;
51792
+ };
49908
51793
  logistics_next_workday_date: {
49909
51794
  Args: {
49910
51795
  p_date: string;
@@ -49931,6 +51816,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49931
51816
  };
49932
51817
  Returns: string;
49933
51818
  };
51819
+ logistics_opening_timezone: {
51820
+ Args: never;
51821
+ Returns: string;
51822
+ };
49934
51823
  logistics_order_cart_count: {
49935
51824
  Args: {
49936
51825
  p_order_ref: string;
@@ -49987,6 +51876,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49987
51876
  };
49988
51877
  Returns: string;
49989
51878
  };
51879
+ logistics_payload_is_floriday: {
51880
+ Args: {
51881
+ _payload: import("../integrations/supabase/types").Json;
51882
+ };
51883
+ Returns: boolean;
51884
+ };
49990
51885
  logistics_pick_agenda: {
49991
51886
  Args: {
49992
51887
  p_from?: string;
@@ -50015,6 +51910,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50015
51910
  Args: never;
50016
51911
  Returns: import("../integrations/supabase/types").Json;
50017
51912
  };
51913
+ logistics_pick_partial_mode: {
51914
+ Args: never;
51915
+ Returns: string;
51916
+ };
50018
51917
  logistics_pick_start_estimate: {
50019
51918
  Args: {
50020
51919
  p_order: import("../integrations/supabase/types").Json;
@@ -50105,6 +52004,20 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50105
52004
  Args: never;
50106
52005
  Returns: undefined;
50107
52006
  };
52007
+ logistics_plan_progress: {
52008
+ Args: {
52009
+ p_refs: string[];
52010
+ };
52011
+ Returns: {
52012
+ cart_plan_ready: boolean;
52013
+ cart_plan_reason: string;
52014
+ cart_plan_released: boolean;
52015
+ plan_progress: number;
52016
+ plan_state: string;
52017
+ plan_state_since: string;
52018
+ unit_ref: string;
52019
+ }[];
52020
+ };
50108
52021
  logistics_plan_prune: {
50109
52022
  Args: never;
50110
52023
  Returns: number;
@@ -50126,6 +52039,18 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50126
52039
  };
50127
52040
  Returns: number;
50128
52041
  };
52042
+ logistics_plan_state_for: {
52043
+ Args: {
52044
+ p_ref: string;
52045
+ };
52046
+ Returns: import("../integrations/supabase/types").Json;
52047
+ };
52048
+ logistics_prepare_pick_documents: {
52049
+ Args: {
52050
+ p_limit?: number;
52051
+ };
52052
+ Returns: import("../integrations/supabase/types").Json;
52053
+ };
50129
52054
  logistics_prune_buffer_member_queue: {
50130
52055
  Args: never;
50131
52056
  Returns: number;
@@ -50166,18 +52091,36 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50166
52091
  Args: never;
50167
52092
  Returns: import("../integrations/supabase/types").Json;
50168
52093
  };
52094
+ logistics_refresh_pick_queue_status: {
52095
+ Args: {
52096
+ p_ref: string;
52097
+ };
52098
+ Returns: number;
52099
+ };
50169
52100
  logistics_refresh_pickup_moments: {
50170
52101
  Args: {
50171
52102
  p_weeks?: number;
50172
52103
  };
50173
52104
  Returns: import("../integrations/supabase/types").Json;
50174
52105
  };
52106
+ logistics_refresh_plan_state: {
52107
+ Args: {
52108
+ p_limit?: number;
52109
+ };
52110
+ Returns: import("../integrations/supabase/types").Json;
52111
+ };
50175
52112
  logistics_replan_all: {
50176
52113
  Args: {
50177
52114
  p_reason?: string;
50178
52115
  };
50179
52116
  Returns: import("../integrations/supabase/types").Json;
50180
52117
  };
52118
+ logistics_replan_all_force: {
52119
+ Args: {
52120
+ p_reason?: string;
52121
+ };
52122
+ Returns: import("../integrations/supabase/types").Json;
52123
+ };
50181
52124
  logistics_report_delay: {
50182
52125
  Args: {
50183
52126
  p_expected_date?: string;
@@ -50322,6 +52265,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50322
52265
  };
50323
52266
  Returns: string;
50324
52267
  };
52268
+ logistics_shipping_note_follows_slip: {
52269
+ Args: never;
52270
+ Returns: boolean;
52271
+ };
50325
52272
  logistics_shipping_note_from_barcode: {
50326
52273
  Args: {
50327
52274
  p_allow_reprint?: boolean;
@@ -50330,10 +52277,86 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50330
52277
  };
50331
52278
  Returns: import("../integrations/supabase/types").Json;
50332
52279
  };
52280
+ logistics_shipping_note_job_for_slip: {
52281
+ Args: {
52282
+ _slip_job_id: string;
52283
+ };
52284
+ Returns: string;
52285
+ };
52286
+ logistics_shipping_notes_wake_all: {
52287
+ Args: never;
52288
+ Returns: import("../integrations/supabase/types").Json;
52289
+ };
52290
+ logistics_slip_is_floriday: {
52291
+ Args: {
52292
+ _slip_job_id: string;
52293
+ };
52294
+ Returns: boolean;
52295
+ };
52296
+ logistics_slip_note_claim: {
52297
+ Args: {
52298
+ _lease_seconds?: number;
52299
+ _limit?: number;
52300
+ };
52301
+ Returns: {
52302
+ attempts: number;
52303
+ batch_key: string | null;
52304
+ cart_id: string | null;
52305
+ created_at: string;
52306
+ error: string | null;
52307
+ error_code: string | null;
52308
+ fulfillment_order_id: string | null;
52309
+ id: string;
52310
+ locked_until: string | null;
52311
+ next_attempt_at: string | null;
52312
+ order_id: string | null;
52313
+ order_number: string | null;
52314
+ print_job_id: string | null;
52315
+ printer_id: string | null;
52316
+ retry_class: string | null;
52317
+ slip_job_id: string;
52318
+ status: string;
52319
+ updated_at: string;
52320
+ }[];
52321
+ SetofOptions: {
52322
+ from: "*";
52323
+ to: "logistics_slip_shipping_note";
52324
+ isOneToOne: false;
52325
+ isSetofReturn: true;
52326
+ };
52327
+ };
52328
+ logistics_slip_note_finish: {
52329
+ Args: {
52330
+ _error?: string;
52331
+ _error_code?: string;
52332
+ _fulfillment_order_id?: string;
52333
+ _id: string;
52334
+ _ok: boolean;
52335
+ _print_job_id?: string;
52336
+ _status?: string;
52337
+ };
52338
+ Returns: undefined;
52339
+ };
52340
+ logistics_slip_note_keep_waiting: {
52341
+ Args: {
52342
+ _class?: string;
52343
+ _id: string;
52344
+ _reason: string;
52345
+ };
52346
+ Returns: undefined;
52347
+ };
50333
52348
  logistics_sticker_follows_slip: {
50334
52349
  Args: never;
50335
52350
  Returns: boolean;
50336
52351
  };
52352
+ logistics_subtract_working_minutes: {
52353
+ Args: {
52354
+ p_deadline: string;
52355
+ p_max_workdays?: number;
52356
+ p_minutes: number;
52357
+ };
52358
+ Returns: import("../integrations/supabase/types").Json;
52359
+ };
50337
52360
  logistics_supersede_stale_tasks: {
50338
52361
  Args: {
50339
52362
  p_keep: string[];
@@ -50370,6 +52393,46 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50370
52393
  Args: never;
50371
52394
  Returns: string;
50372
52395
  };
52396
+ logistics_timezone_options: {
52397
+ Args: never;
52398
+ Returns: {
52399
+ name: string;
52400
+ }[];
52401
+ };
52402
+ logistics_trace: {
52403
+ Args: {
52404
+ p: import("../integrations/supabase/types").Json;
52405
+ };
52406
+ Returns: string;
52407
+ };
52408
+ logistics_trace_batch: {
52409
+ Args: {
52410
+ p: import("../integrations/supabase/types").Json;
52411
+ };
52412
+ Returns: number;
52413
+ };
52414
+ logistics_trace_orders: {
52415
+ Args: {
52416
+ p_limit?: number;
52417
+ p_search?: string;
52418
+ p_since?: string;
52419
+ p_status?: string;
52420
+ };
52421
+ Returns: import("../integrations/supabase/types").Json;
52422
+ };
52423
+ logistics_trace_redact: {
52424
+ Args: {
52425
+ p: import("../integrations/supabase/types").Json;
52426
+ };
52427
+ Returns: import("../integrations/supabase/types").Json;
52428
+ };
52429
+ logistics_trace_timeline: {
52430
+ Args: {
52431
+ p_limit?: number;
52432
+ p_order_ref: string;
52433
+ };
52434
+ Returns: import("../integrations/supabase/types").Json;
52435
+ };
50373
52436
  logistics_upsert_task: {
50374
52437
  Args: {
50375
52438
  p_buffer_ref: string;
@@ -50389,6 +52452,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
50389
52452
  };
50390
52453
  Returns: string;
50391
52454
  };
52455
+ logistics_valid_timezone: {
52456
+ Args: {
52457
+ _tz: string;
52458
+ };
52459
+ Returns: boolean;
52460
+ };
52461
+ logistics_working_hours_status: {
52462
+ Args: never;
52463
+ Returns: import("../integrations/supabase/types").Json;
52464
+ };
50392
52465
  logistics_write_buffer_layer_positions: {
50393
52466
  Args: {
50394
52467
  p_buffer_id: string;
@@ -51401,6 +53474,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
51401
53474
  };
51402
53475
  Returns: undefined;
51403
53476
  };
53477
+ prune_floriday_api_log: {
53478
+ Args: never;
53479
+ Returns: number;
53480
+ };
51404
53481
  quote_create_from_source: {
51405
53482
  Args: {
51406
53483
  _payload?: import("../integrations/supabase/types").Json;
@@ -51834,6 +53911,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
51834
53911
  };
51835
53912
  Returns: number;
51836
53913
  };
53914
+ schedule_floriday_catalog_prices_sync: {
53915
+ Args: {
53916
+ p_apikey: string;
53917
+ p_url: string;
53918
+ };
53919
+ Returns: number;
53920
+ };
51837
53921
  schedule_floriday_clock_presales_sync: {
51838
53922
  Args: {
51839
53923
  p_apikey: string;
@@ -52134,6 +54218,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
52134
54218
  };
52135
54219
  Returns: undefined;
52136
54220
  };
54221
+ sync_floriday_prices_into_price_groups: {
54222
+ Args: never;
54223
+ Returns: number;
54224
+ };
52137
54225
  sync_layer_stock: {
52138
54226
  Args: {
52139
54227
  p_product_id: string;
@@ -52266,6 +54354,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
52266
54354
  Args: never;
52267
54355
  Returns: string;
52268
54356
  };
54357
+ voorraad_cleanup_old_rows: {
54358
+ Args: never;
54359
+ Returns: import("../integrations/supabase/types").Json;
54360
+ };
52269
54361
  wake_print_queue: {
52270
54362
  Args: {
52271
54363
  _min_interval_ms?: number;
@@ -54581,6 +56673,45 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
54581
56673
  };
54582
56674
  Relationships: [];
54583
56675
  };
56676
+ customer_product_stickers: {
56677
+ Row: {
56678
+ created_at: string;
56679
+ customer_key: string;
56680
+ file_name: string;
56681
+ file_path: string;
56682
+ file_size: number | null;
56683
+ id: string;
56684
+ mime_type: string | null;
56685
+ trade_item_key: string;
56686
+ updated_at: string;
56687
+ uploaded_by: string | null;
56688
+ };
56689
+ Insert: {
56690
+ created_at?: string;
56691
+ customer_key: string;
56692
+ file_name: string;
56693
+ file_path: string;
56694
+ file_size?: number | null;
56695
+ id?: string;
56696
+ mime_type?: string | null;
56697
+ trade_item_key: string;
56698
+ updated_at?: string;
56699
+ uploaded_by?: string | null;
56700
+ };
56701
+ Update: {
56702
+ created_at?: string;
56703
+ customer_key?: string;
56704
+ file_name?: string;
56705
+ file_path?: string;
56706
+ file_size?: number | null;
56707
+ id?: string;
56708
+ mime_type?: string | null;
56709
+ trade_item_key?: string;
56710
+ updated_at?: string;
56711
+ uploaded_by?: string | null;
56712
+ };
56713
+ Relationships: [];
56714
+ };
54584
56715
  customer_selected_assortment: {
54585
56716
  Row: {
54586
56717
  article_number: string | null;
@@ -54629,6 +56760,30 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
54629
56760
  referencedColumns: ["id"];
54630
56761
  }];
54631
56762
  };
56763
+ customer_sticker_settings: {
56764
+ Row: {
56765
+ created_at: string;
56766
+ customer_key: string;
56767
+ height_mm: number;
56768
+ updated_at: string;
56769
+ width_mm: number;
56770
+ };
56771
+ Insert: {
56772
+ created_at?: string;
56773
+ customer_key: string;
56774
+ height_mm?: number;
56775
+ updated_at?: string;
56776
+ width_mm?: number;
56777
+ };
56778
+ Update: {
56779
+ created_at?: string;
56780
+ customer_key?: string;
56781
+ height_mm?: number;
56782
+ updated_at?: string;
56783
+ width_mm?: number;
56784
+ };
56785
+ Relationships: [];
56786
+ };
54632
56787
  customer_trade_settings: {
54633
56788
  Row: {
54634
56789
  category: string;
@@ -57959,6 +60114,102 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57959
60114
  referencedColumns: ["id"];
57960
60115
  }];
57961
60116
  };
60117
+ floriday_api_log: {
60118
+ Row: {
60119
+ action: string | null;
60120
+ caller: string | null;
60121
+ connection_id: string | null;
60122
+ created_at: string;
60123
+ cursor_from: number | null;
60124
+ direction: string;
60125
+ duration_ms: number | null;
60126
+ environment: string | null;
60127
+ error: string | null;
60128
+ floriday_id: string | null;
60129
+ floriday_reference: string | null;
60130
+ http_status: number;
60131
+ id: string;
60132
+ item_count: number | null;
60133
+ kind: string | null;
60134
+ local_id: string | null;
60135
+ local_reference: string | null;
60136
+ method: string;
60137
+ module: string | null;
60138
+ ok: boolean;
60139
+ path: string;
60140
+ request: import("../integrations/supabase/types").Json | null;
60141
+ resource_type: string | null;
60142
+ response: import("../integrations/supabase/types").Json | null;
60143
+ write_log_id: string | null;
60144
+ };
60145
+ Insert: {
60146
+ action?: string | null;
60147
+ caller?: string | null;
60148
+ connection_id?: string | null;
60149
+ created_at?: string;
60150
+ cursor_from?: number | null;
60151
+ direction: string;
60152
+ duration_ms?: number | null;
60153
+ environment?: string | null;
60154
+ error?: string | null;
60155
+ floriday_id?: string | null;
60156
+ floriday_reference?: string | null;
60157
+ http_status?: number;
60158
+ id?: string;
60159
+ item_count?: number | null;
60160
+ kind?: string | null;
60161
+ local_id?: string | null;
60162
+ local_reference?: string | null;
60163
+ method: string;
60164
+ module?: string | null;
60165
+ ok?: boolean;
60166
+ path: string;
60167
+ request?: import("../integrations/supabase/types").Json | null;
60168
+ resource_type?: string | null;
60169
+ response?: import("../integrations/supabase/types").Json | null;
60170
+ write_log_id?: string | null;
60171
+ };
60172
+ Update: {
60173
+ action?: string | null;
60174
+ caller?: string | null;
60175
+ connection_id?: string | null;
60176
+ created_at?: string;
60177
+ cursor_from?: number | null;
60178
+ direction?: string;
60179
+ duration_ms?: number | null;
60180
+ environment?: string | null;
60181
+ error?: string | null;
60182
+ floriday_id?: string | null;
60183
+ floriday_reference?: string | null;
60184
+ http_status?: number;
60185
+ id?: string;
60186
+ item_count?: number | null;
60187
+ kind?: string | null;
60188
+ local_id?: string | null;
60189
+ local_reference?: string | null;
60190
+ method?: string;
60191
+ module?: string | null;
60192
+ ok?: boolean;
60193
+ path?: string;
60194
+ request?: import("../integrations/supabase/types").Json | null;
60195
+ resource_type?: string | null;
60196
+ response?: import("../integrations/supabase/types").Json | null;
60197
+ write_log_id?: string | null;
60198
+ };
60199
+ Relationships: [{
60200
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
60201
+ columns: ["connection_id"];
60202
+ isOneToOne: false;
60203
+ referencedRelation: "floriday_connections";
60204
+ referencedColumns: ["id"];
60205
+ }, {
60206
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
60207
+ columns: ["write_log_id"];
60208
+ isOneToOne: false;
60209
+ referencedRelation: "floriday_write_log";
60210
+ referencedColumns: ["id"];
60211
+ }];
60212
+ };
57962
60213
  floriday_auction_letters_cache: {
57963
60214
  Row: {
57964
60215
  auction_letter_code: string;
@@ -58166,6 +60417,84 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
58166
60417
  referencedColumns: ["id"];
58167
60418
  }];
58168
60419
  };
60420
+ floriday_catalog_prices_cache: {
60421
+ Row: {
60422
+ connection_id: string;
60423
+ created_at: string;
60424
+ currency: string;
60425
+ id: string;
60426
+ is_deleted: boolean;
60427
+ price: number | null;
60428
+ price_group_id: string | null;
60429
+ price_group_name: string | null;
60430
+ price_type: string;
60431
+ raw: import("../integrations/supabase/types").Json | null;
60432
+ sales_unit: string | null;
60433
+ sequence_number: number;
60434
+ supplier_article_code: string | null;
60435
+ supply_line_id: string;
60436
+ synced_at: string;
60437
+ trade_item_id: string | null;
60438
+ updated_at: string;
60439
+ valid_from: string | null;
60440
+ valid_to: string | null;
60441
+ week: number | null;
60442
+ year: number | null;
60443
+ };
60444
+ Insert: {
60445
+ connection_id: string;
60446
+ created_at?: string;
60447
+ currency?: string;
60448
+ id?: string;
60449
+ is_deleted?: boolean;
60450
+ price?: number | null;
60451
+ price_group_id?: string | null;
60452
+ price_group_name?: string | null;
60453
+ price_type?: string;
60454
+ raw?: import("../integrations/supabase/types").Json | null;
60455
+ sales_unit?: string | null;
60456
+ sequence_number?: number;
60457
+ supplier_article_code?: string | null;
60458
+ supply_line_id: string;
60459
+ synced_at?: string;
60460
+ trade_item_id?: string | null;
60461
+ updated_at?: string;
60462
+ valid_from?: string | null;
60463
+ valid_to?: string | null;
60464
+ week?: number | null;
60465
+ year?: number | null;
60466
+ };
60467
+ Update: {
60468
+ connection_id?: string;
60469
+ created_at?: string;
60470
+ currency?: string;
60471
+ id?: string;
60472
+ is_deleted?: boolean;
60473
+ price?: number | null;
60474
+ price_group_id?: string | null;
60475
+ price_group_name?: string | null;
60476
+ price_type?: string;
60477
+ raw?: import("../integrations/supabase/types").Json | null;
60478
+ sales_unit?: string | null;
60479
+ sequence_number?: number;
60480
+ supplier_article_code?: string | null;
60481
+ supply_line_id?: string;
60482
+ synced_at?: string;
60483
+ trade_item_id?: string | null;
60484
+ updated_at?: string;
60485
+ valid_from?: string | null;
60486
+ valid_to?: string | null;
60487
+ week?: number | null;
60488
+ year?: number | null;
60489
+ };
60490
+ Relationships: [{
60491
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
60492
+ columns: ["connection_id"];
60493
+ isOneToOne: false;
60494
+ referencedRelation: "floriday_connections";
60495
+ referencedColumns: ["id"];
60496
+ }];
60497
+ };
58169
60498
  floriday_clock_presales_cache: {
58170
60499
  Row: {
58171
60500
  buyer_organization_id: string | null;
@@ -59081,6 +61410,69 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
59081
61410
  referencedColumns: ["id"];
59082
61411
  }];
59083
61412
  };
61413
+ floriday_link_templates: {
61414
+ Row: {
61415
+ created_at: string;
61416
+ floriday_url_template: string | null;
61417
+ is_active: boolean;
61418
+ label: string;
61419
+ local_url_template: string | null;
61420
+ resource_type: string;
61421
+ updated_at: string;
61422
+ };
61423
+ Insert: {
61424
+ created_at?: string;
61425
+ floriday_url_template?: string | null;
61426
+ is_active?: boolean;
61427
+ label: string;
61428
+ local_url_template?: string | null;
61429
+ resource_type: string;
61430
+ updated_at?: string;
61431
+ };
61432
+ Update: {
61433
+ created_at?: string;
61434
+ floriday_url_template?: string | null;
61435
+ is_active?: boolean;
61436
+ label?: string;
61437
+ local_url_template?: string | null;
61438
+ resource_type?: string;
61439
+ updated_at?: string;
61440
+ };
61441
+ Relationships: [];
61442
+ };
61443
+ floriday_log_retention: {
61444
+ Row: {
61445
+ created_at: string;
61446
+ direction: string | null;
61447
+ id: string;
61448
+ keep_failed_days: number | null;
61449
+ keep_ok_days: number | null;
61450
+ note: string | null;
61451
+ resource_type: string | null;
61452
+ updated_at: string;
61453
+ };
61454
+ Insert: {
61455
+ created_at?: string;
61456
+ direction?: string | null;
61457
+ id?: string;
61458
+ keep_failed_days?: number | null;
61459
+ keep_ok_days?: number | null;
61460
+ note?: string | null;
61461
+ resource_type?: string | null;
61462
+ updated_at?: string;
61463
+ };
61464
+ Update: {
61465
+ created_at?: string;
61466
+ direction?: string | null;
61467
+ id?: string;
61468
+ keep_failed_days?: number | null;
61469
+ keep_ok_days?: number | null;
61470
+ note?: string | null;
61471
+ resource_type?: string | null;
61472
+ updated_at?: string;
61473
+ };
61474
+ Relationships: [];
61475
+ };
59084
61476
  floriday_logistic_labels_cache: {
59085
61477
  Row: {
59086
61478
  byte_size: number | null;
@@ -62434,22 +64826,31 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
62434
64826
  };
62435
64827
  logistics_floriday_push_refusals: {
62436
64828
  Row: {
64829
+ action: string | null;
62437
64830
  created_at: string;
62438
64831
  id: string;
62439
64832
  order_ref: string;
62440
64833
  reason: string;
64834
+ source_module: string | null;
64835
+ source_shell: string | null;
62441
64836
  };
62442
64837
  Insert: {
64838
+ action?: string | null;
62443
64839
  created_at?: string;
62444
64840
  id?: string;
62445
64841
  order_ref: string;
62446
64842
  reason: string;
64843
+ source_module?: string | null;
64844
+ source_shell?: string | null;
62447
64845
  };
62448
64846
  Update: {
64847
+ action?: string | null;
62449
64848
  created_at?: string;
62450
64849
  id?: string;
62451
64850
  order_ref?: string;
62452
64851
  reason?: string;
64852
+ source_module?: string | null;
64853
+ source_shell?: string | null;
62453
64854
  };
62454
64855
  Relationships: [];
62455
64856
  };
@@ -62528,6 +64929,42 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
62528
64929
  };
62529
64930
  Relationships: [];
62530
64931
  };
64932
+ logistics_floriday_status_sends: {
64933
+ Row: {
64934
+ action: string;
64935
+ created_at: string;
64936
+ detail: string | null;
64937
+ http_status: number | null;
64938
+ id: string;
64939
+ ok: boolean;
64940
+ order_ref: string;
64941
+ source_module: string | null;
64942
+ source_shell: string | null;
64943
+ };
64944
+ Insert: {
64945
+ action: string;
64946
+ created_at?: string;
64947
+ detail?: string | null;
64948
+ http_status?: number | null;
64949
+ id?: string;
64950
+ ok?: boolean;
64951
+ order_ref: string;
64952
+ source_module?: string | null;
64953
+ source_shell?: string | null;
64954
+ };
64955
+ Update: {
64956
+ action?: string;
64957
+ created_at?: string;
64958
+ detail?: string | null;
64959
+ http_status?: number | null;
64960
+ id?: string;
64961
+ ok?: boolean;
64962
+ order_ref?: string;
64963
+ source_module?: string | null;
64964
+ source_shell?: string | null;
64965
+ };
64966
+ Relationships: [];
64967
+ };
62531
64968
  logistics_formulas: {
62532
64969
  Row: {
62533
64970
  created_at: string;
@@ -62600,6 +65037,108 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
62600
65037
  };
62601
65038
  Relationships: [];
62602
65039
  };
65040
+ logistics_opening_exceptions: {
65041
+ Row: {
65042
+ closes: string | null;
65043
+ created_at: string;
65044
+ day: string;
65045
+ id: string;
65046
+ is_closed: boolean;
65047
+ note: string | null;
65048
+ opens: string | null;
65049
+ };
65050
+ Insert: {
65051
+ closes?: string | null;
65052
+ created_at?: string;
65053
+ day: string;
65054
+ id?: string;
65055
+ is_closed?: boolean;
65056
+ note?: string | null;
65057
+ opens?: string | null;
65058
+ };
65059
+ Update: {
65060
+ closes?: string | null;
65061
+ created_at?: string;
65062
+ day?: string;
65063
+ id?: string;
65064
+ is_closed?: boolean;
65065
+ note?: string | null;
65066
+ opens?: string | null;
65067
+ };
65068
+ Relationships: [];
65069
+ };
65070
+ logistics_opening_hours: {
65071
+ Row: {
65072
+ closes: string;
65073
+ created_at: string;
65074
+ id: string;
65075
+ is_active: boolean;
65076
+ note: string | null;
65077
+ opens: string;
65078
+ weekday: number;
65079
+ };
65080
+ Insert: {
65081
+ closes: string;
65082
+ created_at?: string;
65083
+ id?: string;
65084
+ is_active?: boolean;
65085
+ note?: string | null;
65086
+ opens: string;
65087
+ weekday: number;
65088
+ };
65089
+ Update: {
65090
+ closes?: string;
65091
+ created_at?: string;
65092
+ id?: string;
65093
+ is_active?: boolean;
65094
+ note?: string | null;
65095
+ opens?: string;
65096
+ weekday?: number;
65097
+ };
65098
+ Relationships: [];
65099
+ };
65100
+ logistics_pick_data_requests: {
65101
+ Row: {
65102
+ actions: import("../integrations/supabase/types").Json;
65103
+ created_at: string;
65104
+ event_id: string | null;
65105
+ finished_at: string | null;
65106
+ id: string;
65107
+ missing: import("../integrations/supabase/types").Json;
65108
+ order_ref: string;
65109
+ reason: string | null;
65110
+ result: import("../integrations/supabase/types").Json | null;
65111
+ status: string;
65112
+ unit_ref: string | null;
65113
+ };
65114
+ Insert: {
65115
+ actions?: import("../integrations/supabase/types").Json;
65116
+ created_at?: string;
65117
+ event_id?: string | null;
65118
+ finished_at?: string | null;
65119
+ id?: string;
65120
+ missing?: import("../integrations/supabase/types").Json;
65121
+ order_ref: string;
65122
+ reason?: string | null;
65123
+ result?: import("../integrations/supabase/types").Json | null;
65124
+ status?: string;
65125
+ unit_ref?: string | null;
65126
+ };
65127
+ Update: {
65128
+ actions?: import("../integrations/supabase/types").Json;
65129
+ created_at?: string;
65130
+ event_id?: string | null;
65131
+ finished_at?: string | null;
65132
+ id?: string;
65133
+ missing?: import("../integrations/supabase/types").Json;
65134
+ order_ref?: string;
65135
+ reason?: string | null;
65136
+ result?: import("../integrations/supabase/types").Json | null;
65137
+ status?: string;
65138
+ unit_ref?: string | null;
65139
+ };
65140
+ Relationships: [];
65141
+ };
62603
65142
  logistics_pickup_moments: {
62604
65143
  Row: {
62605
65144
  carrier_ref: string | null;
@@ -63059,6 +65598,69 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63059
65598
  };
63060
65599
  Relationships: [];
63061
65600
  };
65601
+ logistics_slip_shipping_note: {
65602
+ Row: {
65603
+ attempts: number;
65604
+ batch_key: string | null;
65605
+ cart_id: string | null;
65606
+ created_at: string;
65607
+ error: string | null;
65608
+ error_code: string | null;
65609
+ fulfillment_order_id: string | null;
65610
+ id: string;
65611
+ locked_until: string | null;
65612
+ next_attempt_at: string | null;
65613
+ order_id: string | null;
65614
+ order_number: string | null;
65615
+ print_job_id: string | null;
65616
+ printer_id: string | null;
65617
+ retry_class: string | null;
65618
+ slip_job_id: string;
65619
+ status: string;
65620
+ updated_at: string;
65621
+ };
65622
+ Insert: {
65623
+ attempts?: number;
65624
+ batch_key?: string | null;
65625
+ cart_id?: string | null;
65626
+ created_at?: string;
65627
+ error?: string | null;
65628
+ error_code?: string | null;
65629
+ fulfillment_order_id?: string | null;
65630
+ id?: string;
65631
+ locked_until?: string | null;
65632
+ next_attempt_at?: string | null;
65633
+ order_id?: string | null;
65634
+ order_number?: string | null;
65635
+ print_job_id?: string | null;
65636
+ printer_id?: string | null;
65637
+ retry_class?: string | null;
65638
+ slip_job_id: string;
65639
+ status?: string;
65640
+ updated_at?: string;
65641
+ };
65642
+ Update: {
65643
+ attempts?: number;
65644
+ batch_key?: string | null;
65645
+ cart_id?: string | null;
65646
+ created_at?: string;
65647
+ error?: string | null;
65648
+ error_code?: string | null;
65649
+ fulfillment_order_id?: string | null;
65650
+ id?: string;
65651
+ locked_until?: string | null;
65652
+ next_attempt_at?: string | null;
65653
+ order_id?: string | null;
65654
+ order_number?: string | null;
65655
+ print_job_id?: string | null;
65656
+ printer_id?: string | null;
65657
+ retry_class?: string | null;
65658
+ slip_job_id?: string;
65659
+ status?: string;
65660
+ updated_at?: string;
65661
+ };
65662
+ Relationships: [];
65663
+ };
63062
65664
  logistics_staff_planning: {
63063
65665
  Row: {
63064
65666
  created_at: string;
@@ -63392,6 +65994,129 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63392
65994
  };
63393
65995
  Relationships: [];
63394
65996
  };
65997
+ logistics_time_settings: {
65998
+ Row: {
65999
+ id: boolean;
66000
+ timezone: string;
66001
+ updated_at: string;
66002
+ };
66003
+ Insert: {
66004
+ id?: boolean;
66005
+ timezone: string;
66006
+ updated_at?: string;
66007
+ };
66008
+ Update: {
66009
+ id?: boolean;
66010
+ timezone?: string;
66011
+ updated_at?: string;
66012
+ };
66013
+ Relationships: [];
66014
+ };
66015
+ logistics_trace_events: {
66016
+ Row: {
66017
+ actor: string | null;
66018
+ attempts: number;
66019
+ cart_ref: string | null;
66020
+ created_at: string;
66021
+ db_action: string | null;
66022
+ db_new: import("../integrations/supabase/types").Json | null;
66023
+ db_old: import("../integrations/supabase/types").Json | null;
66024
+ db_record: string | null;
66025
+ db_table: string | null;
66026
+ decision: string | null;
66027
+ duration_ms: number | null;
66028
+ error: string | null;
66029
+ external_action: string | null;
66030
+ external_ref: string | null;
66031
+ external_response: import("../integrations/supabase/types").Json | null;
66032
+ external_status: string | null;
66033
+ external_system: string | null;
66034
+ id: string;
66035
+ input: import("../integrations/supabase/types").Json | null;
66036
+ next_attempt_at: string | null;
66037
+ order_ref: string | null;
66038
+ order_source: string | null;
66039
+ output: import("../integrations/supabase/types").Json | null;
66040
+ phase: string;
66041
+ reads: import("../integrations/supabase/types").Json | null;
66042
+ reason: string | null;
66043
+ rule: string | null;
66044
+ slip_ref: string | null;
66045
+ status: string;
66046
+ step: string;
66047
+ trace_id: string;
66048
+ values_used: import("../integrations/supabase/types").Json | null;
66049
+ };
66050
+ Insert: {
66051
+ actor?: string | null;
66052
+ attempts?: number;
66053
+ cart_ref?: string | null;
66054
+ created_at?: string;
66055
+ db_action?: string | null;
66056
+ db_new?: import("../integrations/supabase/types").Json | null;
66057
+ db_old?: import("../integrations/supabase/types").Json | null;
66058
+ db_record?: string | null;
66059
+ db_table?: string | null;
66060
+ decision?: string | null;
66061
+ duration_ms?: number | null;
66062
+ error?: string | null;
66063
+ external_action?: string | null;
66064
+ external_ref?: string | null;
66065
+ external_response?: import("../integrations/supabase/types").Json | null;
66066
+ external_status?: string | null;
66067
+ external_system?: string | null;
66068
+ id?: string;
66069
+ input?: import("../integrations/supabase/types").Json | null;
66070
+ next_attempt_at?: string | null;
66071
+ order_ref?: string | null;
66072
+ order_source?: string | null;
66073
+ output?: import("../integrations/supabase/types").Json | null;
66074
+ phase: string;
66075
+ reads?: import("../integrations/supabase/types").Json | null;
66076
+ reason?: string | null;
66077
+ rule?: string | null;
66078
+ slip_ref?: string | null;
66079
+ status: string;
66080
+ step: string;
66081
+ trace_id?: string;
66082
+ values_used?: import("../integrations/supabase/types").Json | null;
66083
+ };
66084
+ Update: {
66085
+ actor?: string | null;
66086
+ attempts?: number;
66087
+ cart_ref?: string | null;
66088
+ created_at?: string;
66089
+ db_action?: string | null;
66090
+ db_new?: import("../integrations/supabase/types").Json | null;
66091
+ db_old?: import("../integrations/supabase/types").Json | null;
66092
+ db_record?: string | null;
66093
+ db_table?: string | null;
66094
+ decision?: string | null;
66095
+ duration_ms?: number | null;
66096
+ error?: string | null;
66097
+ external_action?: string | null;
66098
+ external_ref?: string | null;
66099
+ external_response?: import("../integrations/supabase/types").Json | null;
66100
+ external_status?: string | null;
66101
+ external_system?: string | null;
66102
+ id?: string;
66103
+ input?: import("../integrations/supabase/types").Json | null;
66104
+ next_attempt_at?: string | null;
66105
+ order_ref?: string | null;
66106
+ order_source?: string | null;
66107
+ output?: import("../integrations/supabase/types").Json | null;
66108
+ phase?: string;
66109
+ reads?: import("../integrations/supabase/types").Json | null;
66110
+ reason?: string | null;
66111
+ rule?: string | null;
66112
+ slip_ref?: string | null;
66113
+ status?: string;
66114
+ step?: string;
66115
+ trace_id?: string;
66116
+ values_used?: import("../integrations/supabase/types").Json | null;
66117
+ };
66118
+ Relationships: [];
66119
+ };
63395
66120
  logistics_variables: {
63396
66121
  Row: {
63397
66122
  created_at: string;
@@ -65782,6 +68507,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65782
68507
  customer_name: string;
65783
68508
  deleted_at: string | null;
65784
68509
  delivery_date: string | null;
68510
+ floriday_order_group_key: string | null;
65785
68511
  floriday_sales_order_id: string | null;
65786
68512
  id: string;
65787
68513
  invoice_due_at: string | null;
@@ -65809,6 +68535,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65809
68535
  customer_name?: string;
65810
68536
  deleted_at?: string | null;
65811
68537
  delivery_date?: string | null;
68538
+ floriday_order_group_key?: string | null;
65812
68539
  floriday_sales_order_id?: string | null;
65813
68540
  id?: string;
65814
68541
  invoice_due_at?: string | null;
@@ -65836,6 +68563,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65836
68563
  customer_name?: string;
65837
68564
  deleted_at?: string | null;
65838
68565
  delivery_date?: string | null;
68566
+ floriday_order_group_key?: string | null;
65839
68567
  floriday_sales_order_id?: string | null;
65840
68568
  id?: string;
65841
68569
  invoice_due_at?: string | null;
@@ -71699,6 +74427,36 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
71699
74427
  referencedColumns: ["id"];
71700
74428
  }];
71701
74429
  };
74430
+ voorraad_buffer_state: {
74431
+ Row: {
74432
+ buffer_id: string;
74433
+ buffer_key: string | null;
74434
+ closed_at: string | null;
74435
+ created_at: string;
74436
+ detached_orders: import("../integrations/supabase/types").Json;
74437
+ reason: string | null;
74438
+ updated_at: string;
74439
+ };
74440
+ Insert: {
74441
+ buffer_id: string;
74442
+ buffer_key?: string | null;
74443
+ closed_at?: string | null;
74444
+ created_at?: string;
74445
+ detached_orders?: import("../integrations/supabase/types").Json;
74446
+ reason?: string | null;
74447
+ updated_at?: string;
74448
+ };
74449
+ Update: {
74450
+ buffer_id?: string;
74451
+ buffer_key?: string | null;
74452
+ closed_at?: string | null;
74453
+ created_at?: string;
74454
+ detached_orders?: import("../integrations/supabase/types").Json;
74455
+ reason?: string | null;
74456
+ updated_at?: string;
74457
+ };
74458
+ Relationships: [];
74459
+ };
71702
74460
  voorraad_custom_fields: {
71703
74461
  Row: {
71704
74462
  created_at: string;
@@ -71741,6 +74499,36 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
71741
74499
  };
71742
74500
  Relationships: [];
71743
74501
  };
74502
+ voorraad_logistics_event_log: {
74503
+ Row: {
74504
+ created_at: string;
74505
+ event_id: string;
74506
+ event_type: string;
74507
+ order_ref: string | null;
74508
+ processed_at: string;
74509
+ result: import("../integrations/supabase/types").Json;
74510
+ updated_at: string;
74511
+ };
74512
+ Insert: {
74513
+ created_at?: string;
74514
+ event_id: string;
74515
+ event_type: string;
74516
+ order_ref?: string | null;
74517
+ processed_at?: string;
74518
+ result?: import("../integrations/supabase/types").Json;
74519
+ updated_at?: string;
74520
+ };
74521
+ Update: {
74522
+ created_at?: string;
74523
+ event_id?: string;
74524
+ event_type?: string;
74525
+ order_ref?: string | null;
74526
+ processed_at?: string;
74527
+ result?: import("../integrations/supabase/types").Json;
74528
+ updated_at?: string;
74529
+ };
74530
+ Relationships: [];
74531
+ };
71744
74532
  voorraad_media_upload_failures: {
71745
74533
  Row: {
71746
74534
  action: string;
@@ -73901,6 +76689,15 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
73901
76689
  Args: never;
73902
76690
  Returns: boolean;
73903
76691
  };
76692
+ cancel_open_print_jobs: {
76693
+ Args: {
76694
+ _cutoff: string;
76695
+ };
76696
+ Returns: {
76697
+ extern_job_id: string;
76698
+ id: string;
76699
+ }[];
76700
+ };
73904
76701
  check_offer_product_available_stock: {
73905
76702
  Args: {
73906
76703
  p_campaign_product_id: string;
@@ -75439,6 +78236,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75439
78236
  };
75440
78237
  Returns: string;
75441
78238
  };
78239
+ logistics_cart_checkin_at: {
78240
+ Args: {
78241
+ p_cart_id: string;
78242
+ };
78243
+ Returns: string;
78244
+ };
75442
78245
  logistics_cart_handled: {
75443
78246
  Args: {
75444
78247
  p_cart_index: number;
@@ -75472,10 +78275,22 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75472
78275
  task_status: string;
75473
78276
  }[];
75474
78277
  };
78278
+ logistics_cart_is_full: {
78279
+ Args: {
78280
+ p_cart_id: string;
78281
+ };
78282
+ Returns: boolean;
78283
+ };
75475
78284
  logistics_cart_layout_method: {
75476
78285
  Args: never;
75477
78286
  Returns: import("../integrations/supabase/types").Json;
75478
78287
  };
78288
+ logistics_cart_order_refs: {
78289
+ Args: {
78290
+ p_cart_id: string;
78291
+ };
78292
+ Returns: string[];
78293
+ };
75479
78294
  logistics_cart_plan_overview: {
75480
78295
  Args: {
75481
78296
  p_days?: number;
@@ -75495,6 +78310,24 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75495
78310
  };
75496
78311
  Returns: import("../integrations/supabase/types").Json;
75497
78312
  };
78313
+ logistics_cart_plan_status_core: {
78314
+ Args: {
78315
+ p_ref: string;
78316
+ };
78317
+ Returns: import("../integrations/supabase/types").Json;
78318
+ };
78319
+ logistics_cart_release_reason: {
78320
+ Args: {
78321
+ p_cart_id: string;
78322
+ };
78323
+ Returns: string;
78324
+ };
78325
+ logistics_cart_released: {
78326
+ Args: {
78327
+ p_cart_id: string;
78328
+ };
78329
+ Returns: boolean;
78330
+ };
75498
78331
  logistics_cart_seq: {
75499
78332
  Args: {
75500
78333
  p_order_uuid?: string;
@@ -75545,6 +78378,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75545
78378
  unit_ref: string;
75546
78379
  }[];
75547
78380
  };
78381
+ logistics_carts_per_print: {
78382
+ Args: never;
78383
+ Returns: number;
78384
+ };
75548
78385
  logistics_check_order_allowed: {
75549
78386
  Args: {
75550
78387
  p_lines: import("../integrations/supabase/types").Json;
@@ -75648,6 +78485,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75648
78485
  isSetofReturn: false;
75649
78486
  };
75650
78487
  };
78488
+ logistics_cleanup_orphan_print_jobs: {
78489
+ Args: never;
78490
+ Returns: import("../integrations/supabase/types").Json;
78491
+ };
75651
78492
  logistics_complete_task: {
75652
78493
  Args: {
75653
78494
  p_result?: import("../integrations/supabase/types").Json;
@@ -75710,6 +78551,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75710
78551
  station_carts: number;
75711
78552
  }[];
75712
78553
  };
78554
+ logistics_control_complete_cart: {
78555
+ Args: {
78556
+ p_cart_id: string;
78557
+ };
78558
+ Returns: number;
78559
+ };
75713
78560
  logistics_control_scan_approve: {
75714
78561
  Args: {
75715
78562
  p_allow_reprint?: boolean;
@@ -75789,6 +78636,15 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75789
78636
  Args: never;
75790
78637
  Returns: import("../integrations/supabase/types").Json;
75791
78638
  };
78639
+ logistics_day_windows: {
78640
+ Args: {
78641
+ p_day: string;
78642
+ };
78643
+ Returns: {
78644
+ win_end: string;
78645
+ win_start: string;
78646
+ }[];
78647
+ };
75792
78648
  logistics_delay_customer_email: {
75793
78649
  Args: {
75794
78650
  p_customer: string;
@@ -75856,6 +78712,17 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75856
78712
  };
75857
78713
  Returns: import("../integrations/supabase/types").Json;
75858
78714
  };
78715
+ logistics_enqueue_shipping_note_with_slip: {
78716
+ Args: {
78717
+ _cart_id: string;
78718
+ _is_herprint: boolean;
78719
+ _printer_id: string;
78720
+ _queue_item_id: string;
78721
+ _session_id: string;
78722
+ _slip_job_id: string;
78723
+ };
78724
+ Returns: string;
78725
+ };
75859
78726
  logistics_enqueue_sticker_with_slip: {
75860
78727
  Args: {
75861
78728
  _cart_id: string;
@@ -75873,6 +78740,20 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75873
78740
  };
75874
78741
  Returns: string;
75875
78742
  };
78743
+ logistics_ensure_pick_data: {
78744
+ Args: {
78745
+ p_event_id?: string;
78746
+ p_missing?: import("../integrations/supabase/types").Json;
78747
+ p_ref: string;
78748
+ };
78749
+ Returns: import("../integrations/supabase/types").Json;
78750
+ };
78751
+ logistics_ensure_shipping_notes: {
78752
+ Args: {
78753
+ p_limit?: number;
78754
+ };
78755
+ Returns: import("../integrations/supabase/types").Json;
78756
+ };
75876
78757
  logistics_fail_task: {
75877
78758
  Args: {
75878
78759
  p_error: string;
@@ -75918,6 +78799,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75918
78799
  isSetofReturn: false;
75919
78800
  };
75920
78801
  };
78802
+ logistics_fix_wrong_shipping_notes: {
78803
+ Args: never;
78804
+ Returns: import("../integrations/supabase/types").Json;
78805
+ };
75921
78806
  logistics_floriday_cart_plan: {
75922
78807
  Args: {
75923
78808
  p_order_id: string;
@@ -75945,6 +78830,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75945
78830
  revision: number;
75946
78831
  }[];
75947
78832
  };
78833
+ logistics_floriday_delivery_note_create_enabled: {
78834
+ Args: never;
78835
+ Returns: boolean;
78836
+ };
75948
78837
  logistics_floriday_finish_push: {
75949
78838
  Args: {
75950
78839
  _error?: string;
@@ -75994,6 +78883,32 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
75994
78883
  };
75995
78884
  Returns: string;
75996
78885
  };
78886
+ logistics_floriday_gate_status: {
78887
+ Args: never;
78888
+ Returns: import("../integrations/supabase/types").Json;
78889
+ };
78890
+ logistics_floriday_log_refusal: {
78891
+ Args: {
78892
+ _action?: string;
78893
+ _module?: string;
78894
+ _order_ref: string;
78895
+ _reason: string;
78896
+ _shell?: string;
78897
+ };
78898
+ Returns: undefined;
78899
+ };
78900
+ logistics_floriday_log_send: {
78901
+ Args: {
78902
+ _action: string;
78903
+ _detail?: string;
78904
+ _http_status?: number;
78905
+ _module?: string;
78906
+ _ok: boolean;
78907
+ _order_ref: string;
78908
+ _shell?: string;
78909
+ };
78910
+ Returns: undefined;
78911
+ };
75997
78912
  logistics_floriday_order_approved: {
75998
78913
  Args: {
75999
78914
  _order_ref: string;
@@ -76018,6 +78933,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76018
78933
  Args: never;
76019
78934
  Returns: boolean;
76020
78935
  };
78936
+ logistics_floriday_stock_updates_enabled: {
78937
+ Args: never;
78938
+ Returns: boolean;
78939
+ };
78940
+ logistics_floriday_write_allowed: {
78941
+ Args: {
78942
+ _action: string;
78943
+ };
78944
+ Returns: boolean;
78945
+ };
76021
78946
  logistics_fulfill_barcode_requests: {
76022
78947
  Args: {
76023
78948
  p_limit?: number;
@@ -76060,6 +78985,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76060
78985
  };
76061
78986
  Returns: number;
76062
78987
  };
78988
+ logistics_merge_partial_carts: {
78989
+ Args: {
78990
+ p_limit?: number;
78991
+ };
78992
+ Returns: import("../integrations/supabase/types").Json;
78993
+ };
76063
78994
  logistics_next_workday_date: {
76064
78995
  Args: {
76065
78996
  p_date: string;
@@ -76086,6 +79017,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76086
79017
  };
76087
79018
  Returns: string;
76088
79019
  };
79020
+ logistics_opening_timezone: {
79021
+ Args: never;
79022
+ Returns: string;
79023
+ };
76089
79024
  logistics_order_cart_count: {
76090
79025
  Args: {
76091
79026
  p_order_ref: string;
@@ -76142,6 +79077,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76142
79077
  };
76143
79078
  Returns: string;
76144
79079
  };
79080
+ logistics_payload_is_floriday: {
79081
+ Args: {
79082
+ _payload: import("../integrations/supabase/types").Json;
79083
+ };
79084
+ Returns: boolean;
79085
+ };
76145
79086
  logistics_pick_agenda: {
76146
79087
  Args: {
76147
79088
  p_from?: string;
@@ -76170,6 +79111,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76170
79111
  Args: never;
76171
79112
  Returns: import("../integrations/supabase/types").Json;
76172
79113
  };
79114
+ logistics_pick_partial_mode: {
79115
+ Args: never;
79116
+ Returns: string;
79117
+ };
76173
79118
  logistics_pick_start_estimate: {
76174
79119
  Args: {
76175
79120
  p_order: import("../integrations/supabase/types").Json;
@@ -76260,6 +79205,20 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76260
79205
  Args: never;
76261
79206
  Returns: undefined;
76262
79207
  };
79208
+ logistics_plan_progress: {
79209
+ Args: {
79210
+ p_refs: string[];
79211
+ };
79212
+ Returns: {
79213
+ cart_plan_ready: boolean;
79214
+ cart_plan_reason: string;
79215
+ cart_plan_released: boolean;
79216
+ plan_progress: number;
79217
+ plan_state: string;
79218
+ plan_state_since: string;
79219
+ unit_ref: string;
79220
+ }[];
79221
+ };
76263
79222
  logistics_plan_prune: {
76264
79223
  Args: never;
76265
79224
  Returns: number;
@@ -76281,6 +79240,18 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76281
79240
  };
76282
79241
  Returns: number;
76283
79242
  };
79243
+ logistics_plan_state_for: {
79244
+ Args: {
79245
+ p_ref: string;
79246
+ };
79247
+ Returns: import("../integrations/supabase/types").Json;
79248
+ };
79249
+ logistics_prepare_pick_documents: {
79250
+ Args: {
79251
+ p_limit?: number;
79252
+ };
79253
+ Returns: import("../integrations/supabase/types").Json;
79254
+ };
76284
79255
  logistics_prune_buffer_member_queue: {
76285
79256
  Args: never;
76286
79257
  Returns: number;
@@ -76321,18 +79292,36 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76321
79292
  Args: never;
76322
79293
  Returns: import("../integrations/supabase/types").Json;
76323
79294
  };
79295
+ logistics_refresh_pick_queue_status: {
79296
+ Args: {
79297
+ p_ref: string;
79298
+ };
79299
+ Returns: number;
79300
+ };
76324
79301
  logistics_refresh_pickup_moments: {
76325
79302
  Args: {
76326
79303
  p_weeks?: number;
76327
79304
  };
76328
79305
  Returns: import("../integrations/supabase/types").Json;
76329
79306
  };
79307
+ logistics_refresh_plan_state: {
79308
+ Args: {
79309
+ p_limit?: number;
79310
+ };
79311
+ Returns: import("../integrations/supabase/types").Json;
79312
+ };
76330
79313
  logistics_replan_all: {
76331
79314
  Args: {
76332
79315
  p_reason?: string;
76333
79316
  };
76334
79317
  Returns: import("../integrations/supabase/types").Json;
76335
79318
  };
79319
+ logistics_replan_all_force: {
79320
+ Args: {
79321
+ p_reason?: string;
79322
+ };
79323
+ Returns: import("../integrations/supabase/types").Json;
79324
+ };
76336
79325
  logistics_report_delay: {
76337
79326
  Args: {
76338
79327
  p_expected_date?: string;
@@ -76477,6 +79466,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76477
79466
  };
76478
79467
  Returns: string;
76479
79468
  };
79469
+ logistics_shipping_note_follows_slip: {
79470
+ Args: never;
79471
+ Returns: boolean;
79472
+ };
76480
79473
  logistics_shipping_note_from_barcode: {
76481
79474
  Args: {
76482
79475
  p_allow_reprint?: boolean;
@@ -76485,10 +79478,86 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76485
79478
  };
76486
79479
  Returns: import("../integrations/supabase/types").Json;
76487
79480
  };
79481
+ logistics_shipping_note_job_for_slip: {
79482
+ Args: {
79483
+ _slip_job_id: string;
79484
+ };
79485
+ Returns: string;
79486
+ };
79487
+ logistics_shipping_notes_wake_all: {
79488
+ Args: never;
79489
+ Returns: import("../integrations/supabase/types").Json;
79490
+ };
79491
+ logistics_slip_is_floriday: {
79492
+ Args: {
79493
+ _slip_job_id: string;
79494
+ };
79495
+ Returns: boolean;
79496
+ };
79497
+ logistics_slip_note_claim: {
79498
+ Args: {
79499
+ _lease_seconds?: number;
79500
+ _limit?: number;
79501
+ };
79502
+ Returns: {
79503
+ attempts: number;
79504
+ batch_key: string | null;
79505
+ cart_id: string | null;
79506
+ created_at: string;
79507
+ error: string | null;
79508
+ error_code: string | null;
79509
+ fulfillment_order_id: string | null;
79510
+ id: string;
79511
+ locked_until: string | null;
79512
+ next_attempt_at: string | null;
79513
+ order_id: string | null;
79514
+ order_number: string | null;
79515
+ print_job_id: string | null;
79516
+ printer_id: string | null;
79517
+ retry_class: string | null;
79518
+ slip_job_id: string;
79519
+ status: string;
79520
+ updated_at: string;
79521
+ }[];
79522
+ SetofOptions: {
79523
+ from: "*";
79524
+ to: "logistics_slip_shipping_note";
79525
+ isOneToOne: false;
79526
+ isSetofReturn: true;
79527
+ };
79528
+ };
79529
+ logistics_slip_note_finish: {
79530
+ Args: {
79531
+ _error?: string;
79532
+ _error_code?: string;
79533
+ _fulfillment_order_id?: string;
79534
+ _id: string;
79535
+ _ok: boolean;
79536
+ _print_job_id?: string;
79537
+ _status?: string;
79538
+ };
79539
+ Returns: undefined;
79540
+ };
79541
+ logistics_slip_note_keep_waiting: {
79542
+ Args: {
79543
+ _class?: string;
79544
+ _id: string;
79545
+ _reason: string;
79546
+ };
79547
+ Returns: undefined;
79548
+ };
76488
79549
  logistics_sticker_follows_slip: {
76489
79550
  Args: never;
76490
79551
  Returns: boolean;
76491
79552
  };
79553
+ logistics_subtract_working_minutes: {
79554
+ Args: {
79555
+ p_deadline: string;
79556
+ p_max_workdays?: number;
79557
+ p_minutes: number;
79558
+ };
79559
+ Returns: import("../integrations/supabase/types").Json;
79560
+ };
76492
79561
  logistics_supersede_stale_tasks: {
76493
79562
  Args: {
76494
79563
  p_keep: string[];
@@ -76525,6 +79594,46 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76525
79594
  Args: never;
76526
79595
  Returns: string;
76527
79596
  };
79597
+ logistics_timezone_options: {
79598
+ Args: never;
79599
+ Returns: {
79600
+ name: string;
79601
+ }[];
79602
+ };
79603
+ logistics_trace: {
79604
+ Args: {
79605
+ p: import("../integrations/supabase/types").Json;
79606
+ };
79607
+ Returns: string;
79608
+ };
79609
+ logistics_trace_batch: {
79610
+ Args: {
79611
+ p: import("../integrations/supabase/types").Json;
79612
+ };
79613
+ Returns: number;
79614
+ };
79615
+ logistics_trace_orders: {
79616
+ Args: {
79617
+ p_limit?: number;
79618
+ p_search?: string;
79619
+ p_since?: string;
79620
+ p_status?: string;
79621
+ };
79622
+ Returns: import("../integrations/supabase/types").Json;
79623
+ };
79624
+ logistics_trace_redact: {
79625
+ Args: {
79626
+ p: import("../integrations/supabase/types").Json;
79627
+ };
79628
+ Returns: import("../integrations/supabase/types").Json;
79629
+ };
79630
+ logistics_trace_timeline: {
79631
+ Args: {
79632
+ p_limit?: number;
79633
+ p_order_ref: string;
79634
+ };
79635
+ Returns: import("../integrations/supabase/types").Json;
79636
+ };
76528
79637
  logistics_upsert_task: {
76529
79638
  Args: {
76530
79639
  p_buffer_ref: string;
@@ -76544,6 +79653,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
76544
79653
  };
76545
79654
  Returns: string;
76546
79655
  };
79656
+ logistics_valid_timezone: {
79657
+ Args: {
79658
+ _tz: string;
79659
+ };
79660
+ Returns: boolean;
79661
+ };
79662
+ logistics_working_hours_status: {
79663
+ Args: never;
79664
+ Returns: import("../integrations/supabase/types").Json;
79665
+ };
76547
79666
  logistics_write_buffer_layer_positions: {
76548
79667
  Args: {
76549
79668
  p_buffer_id: string;
@@ -77556,6 +80675,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
77556
80675
  };
77557
80676
  Returns: undefined;
77558
80677
  };
80678
+ prune_floriday_api_log: {
80679
+ Args: never;
80680
+ Returns: number;
80681
+ };
77559
80682
  quote_create_from_source: {
77560
80683
  Args: {
77561
80684
  _payload?: import("../integrations/supabase/types").Json;
@@ -77989,6 +81112,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
77989
81112
  };
77990
81113
  Returns: number;
77991
81114
  };
81115
+ schedule_floriday_catalog_prices_sync: {
81116
+ Args: {
81117
+ p_apikey: string;
81118
+ p_url: string;
81119
+ };
81120
+ Returns: number;
81121
+ };
77992
81122
  schedule_floriday_clock_presales_sync: {
77993
81123
  Args: {
77994
81124
  p_apikey: string;
@@ -78289,6 +81419,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
78289
81419
  };
78290
81420
  Returns: undefined;
78291
81421
  };
81422
+ sync_floriday_prices_into_price_groups: {
81423
+ Args: never;
81424
+ Returns: number;
81425
+ };
78292
81426
  sync_layer_stock: {
78293
81427
  Args: {
78294
81428
  p_product_id: string;
@@ -78421,6 +81555,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
78421
81555
  Args: never;
78422
81556
  Returns: string;
78423
81557
  };
81558
+ voorraad_cleanup_old_rows: {
81559
+ Args: never;
81560
+ Returns: import("../integrations/supabase/types").Json;
81561
+ };
78424
81562
  wake_print_queue: {
78425
81563
  Args: {
78426
81564
  _min_interval_ms?: number;