@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
@@ -92,7 +92,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
92
92
  last_synced_at?: string | null;
93
93
  provider: string;
94
94
  selected_calendars?: import("../integrations/supabase/types").Json;
95
- status?: string;
95
+ status
96
+ /** Haalt alle orders van dezelfde buffer als de gegeven order. */
97
+ ?: string;
96
98
  sync_mode?: string;
97
99
  updated_at?: string;
98
100
  user_id: string;
@@ -2239,6 +2241,45 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
2239
2241
  };
2240
2242
  Relationships: [];
2241
2243
  };
2244
+ customer_product_stickers: {
2245
+ Row: {
2246
+ created_at: string;
2247
+ customer_key: string;
2248
+ file_name: string;
2249
+ file_path: string;
2250
+ file_size: number | null;
2251
+ id: string;
2252
+ mime_type: string | null;
2253
+ trade_item_key: string;
2254
+ updated_at: string;
2255
+ uploaded_by: string | null;
2256
+ };
2257
+ Insert: {
2258
+ created_at?: string;
2259
+ customer_key: string;
2260
+ file_name: string;
2261
+ file_path: string;
2262
+ file_size?: number | null;
2263
+ id?: string;
2264
+ mime_type?: string | null;
2265
+ trade_item_key: string;
2266
+ updated_at?: string;
2267
+ uploaded_by?: string | null;
2268
+ };
2269
+ Update: {
2270
+ created_at?: string;
2271
+ customer_key?: string;
2272
+ file_name?: string;
2273
+ file_path?: string;
2274
+ file_size?: number | null;
2275
+ id?: string;
2276
+ mime_type?: string | null;
2277
+ trade_item_key?: string;
2278
+ updated_at?: string;
2279
+ uploaded_by?: string | null;
2280
+ };
2281
+ Relationships: [];
2282
+ };
2242
2283
  customer_selected_assortment: {
2243
2284
  Row: {
2244
2285
  article_number: string | null;
@@ -2287,6 +2328,30 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
2287
2328
  referencedColumns: ["id"];
2288
2329
  }];
2289
2330
  };
2331
+ customer_sticker_settings: {
2332
+ Row: {
2333
+ created_at: string;
2334
+ customer_key: string;
2335
+ height_mm: number;
2336
+ updated_at: string;
2337
+ width_mm: number;
2338
+ };
2339
+ Insert: {
2340
+ created_at?: string;
2341
+ customer_key: string;
2342
+ height_mm?: number;
2343
+ updated_at?: string;
2344
+ width_mm?: number;
2345
+ };
2346
+ Update: {
2347
+ created_at?: string;
2348
+ customer_key?: string;
2349
+ height_mm?: number;
2350
+ updated_at?: string;
2351
+ width_mm?: number;
2352
+ };
2353
+ Relationships: [];
2354
+ };
2290
2355
  customer_trade_settings: {
2291
2356
  Row: {
2292
2357
  category: string;
@@ -5617,6 +5682,102 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5617
5682
  referencedColumns: ["id"];
5618
5683
  }];
5619
5684
  };
5685
+ floriday_api_log: {
5686
+ Row: {
5687
+ action: string | null;
5688
+ caller: string | null;
5689
+ connection_id: string | null;
5690
+ created_at: string;
5691
+ cursor_from: number | null;
5692
+ direction: string;
5693
+ duration_ms: number | null;
5694
+ environment: string | null;
5695
+ error: string | null;
5696
+ floriday_id: string | null;
5697
+ floriday_reference: string | null;
5698
+ http_status: number;
5699
+ id: string;
5700
+ item_count: number | null;
5701
+ kind: string | null;
5702
+ local_id: string | null;
5703
+ local_reference: string | null;
5704
+ method: string;
5705
+ module: string | null;
5706
+ ok: boolean;
5707
+ path: string;
5708
+ request: import("../integrations/supabase/types").Json | null;
5709
+ resource_type: string | null;
5710
+ response: import("../integrations/supabase/types").Json | null;
5711
+ write_log_id: string | null;
5712
+ };
5713
+ Insert: {
5714
+ action?: string | null;
5715
+ caller?: string | null;
5716
+ connection_id?: string | null;
5717
+ created_at?: string;
5718
+ cursor_from?: number | null;
5719
+ direction: string;
5720
+ duration_ms?: number | null;
5721
+ environment?: string | null;
5722
+ error?: string | null;
5723
+ floriday_id?: string | null;
5724
+ floriday_reference?: string | null;
5725
+ http_status?: number;
5726
+ id?: string;
5727
+ item_count?: number | null;
5728
+ kind?: string | null;
5729
+ local_id?: string | null;
5730
+ local_reference?: string | null;
5731
+ method: string;
5732
+ module?: string | null;
5733
+ ok?: boolean;
5734
+ path: string;
5735
+ request?: import("../integrations/supabase/types").Json | null;
5736
+ resource_type?: string | null;
5737
+ response?: import("../integrations/supabase/types").Json | null;
5738
+ write_log_id?: string | null;
5739
+ };
5740
+ Update: {
5741
+ action?: string | null;
5742
+ caller?: string | null;
5743
+ connection_id?: string | null;
5744
+ created_at?: string;
5745
+ cursor_from?: number | null;
5746
+ direction?: string;
5747
+ duration_ms?: number | null;
5748
+ environment?: string | null;
5749
+ error?: string | null;
5750
+ floriday_id?: string | null;
5751
+ floriday_reference?: string | null;
5752
+ http_status?: number;
5753
+ id?: string;
5754
+ item_count?: number | null;
5755
+ kind?: string | null;
5756
+ local_id?: string | null;
5757
+ local_reference?: string | null;
5758
+ method?: string;
5759
+ module?: string | null;
5760
+ ok?: boolean;
5761
+ path?: string;
5762
+ request?: import("../integrations/supabase/types").Json | null;
5763
+ resource_type?: string | null;
5764
+ response?: import("../integrations/supabase/types").Json | null;
5765
+ write_log_id?: string | null;
5766
+ };
5767
+ Relationships: [{
5768
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5769
+ columns: ["connection_id"];
5770
+ isOneToOne: false;
5771
+ referencedRelation: "floriday_connections";
5772
+ referencedColumns: ["id"];
5773
+ }, {
5774
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5775
+ columns: ["write_log_id"];
5776
+ isOneToOne: false;
5777
+ referencedRelation: "floriday_write_log";
5778
+ referencedColumns: ["id"];
5779
+ }];
5780
+ };
5620
5781
  floriday_auction_letters_cache: {
5621
5782
  Row: {
5622
5783
  auction_letter_code: string;
@@ -5824,6 +5985,84 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5824
5985
  referencedColumns: ["id"];
5825
5986
  }];
5826
5987
  };
5988
+ floriday_catalog_prices_cache: {
5989
+ Row: {
5990
+ connection_id: string;
5991
+ created_at: string;
5992
+ currency: string;
5993
+ id: string;
5994
+ is_deleted: boolean;
5995
+ price: number | null;
5996
+ price_group_id: string | null;
5997
+ price_group_name: string | null;
5998
+ price_type: string;
5999
+ raw: import("../integrations/supabase/types").Json | null;
6000
+ sales_unit: string | null;
6001
+ sequence_number: number;
6002
+ supplier_article_code: string | null;
6003
+ supply_line_id: string;
6004
+ synced_at: string;
6005
+ trade_item_id: string | null;
6006
+ updated_at: string;
6007
+ valid_from: string | null;
6008
+ valid_to: string | null;
6009
+ week: number | null;
6010
+ year: number | null;
6011
+ };
6012
+ Insert: {
6013
+ connection_id: string;
6014
+ created_at?: string;
6015
+ currency?: string;
6016
+ id?: string;
6017
+ is_deleted?: boolean;
6018
+ price?: number | null;
6019
+ price_group_id?: string | null;
6020
+ price_group_name?: string | null;
6021
+ price_type?: string;
6022
+ raw?: import("../integrations/supabase/types").Json | null;
6023
+ sales_unit?: string | null;
6024
+ sequence_number?: number;
6025
+ supplier_article_code?: string | null;
6026
+ supply_line_id: string;
6027
+ synced_at?: string;
6028
+ trade_item_id?: string | null;
6029
+ updated_at?: string;
6030
+ valid_from?: string | null;
6031
+ valid_to?: string | null;
6032
+ week?: number | null;
6033
+ year?: number | null;
6034
+ };
6035
+ Update: {
6036
+ connection_id?: string;
6037
+ created_at?: string;
6038
+ currency?: string;
6039
+ id?: string;
6040
+ is_deleted?: boolean;
6041
+ price?: number | null;
6042
+ price_group_id?: string | null;
6043
+ price_group_name?: string | null;
6044
+ price_type?: string;
6045
+ raw?: import("../integrations/supabase/types").Json | null;
6046
+ sales_unit?: string | null;
6047
+ sequence_number?: number;
6048
+ supplier_article_code?: string | null;
6049
+ supply_line_id?: string;
6050
+ synced_at?: string;
6051
+ trade_item_id?: string | null;
6052
+ updated_at?: string;
6053
+ valid_from?: string | null;
6054
+ valid_to?: string | null;
6055
+ week?: number | null;
6056
+ year?: number | null;
6057
+ };
6058
+ Relationships: [{
6059
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6060
+ columns: ["connection_id"];
6061
+ isOneToOne: false;
6062
+ referencedRelation: "floriday_connections";
6063
+ referencedColumns: ["id"];
6064
+ }];
6065
+ };
5827
6066
  floriday_clock_presales_cache: {
5828
6067
  Row: {
5829
6068
  buyer_organization_id: string | null;
@@ -6739,6 +6978,69 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
6739
6978
  referencedColumns: ["id"];
6740
6979
  }];
6741
6980
  };
6981
+ floriday_link_templates: {
6982
+ Row: {
6983
+ created_at: string;
6984
+ floriday_url_template: string | null;
6985
+ is_active: boolean;
6986
+ label: string;
6987
+ local_url_template: string | null;
6988
+ resource_type: string;
6989
+ updated_at: string;
6990
+ };
6991
+ Insert: {
6992
+ created_at?: string;
6993
+ floriday_url_template?: string | null;
6994
+ is_active?: boolean;
6995
+ label: string;
6996
+ local_url_template?: string | null;
6997
+ resource_type: string;
6998
+ updated_at?: string;
6999
+ };
7000
+ Update: {
7001
+ created_at?: string;
7002
+ floriday_url_template?: string | null;
7003
+ is_active?: boolean;
7004
+ label?: string;
7005
+ local_url_template?: string | null;
7006
+ resource_type?: string;
7007
+ updated_at?: string;
7008
+ };
7009
+ Relationships: [];
7010
+ };
7011
+ floriday_log_retention: {
7012
+ Row: {
7013
+ created_at: string;
7014
+ direction: string | null;
7015
+ id: string;
7016
+ keep_failed_days: number | null;
7017
+ keep_ok_days: number | null;
7018
+ note: string | null;
7019
+ resource_type: string | null;
7020
+ updated_at: string;
7021
+ };
7022
+ Insert: {
7023
+ created_at?: string;
7024
+ direction?: string | null;
7025
+ id?: string;
7026
+ keep_failed_days?: number | null;
7027
+ keep_ok_days?: number | null;
7028
+ note?: string | null;
7029
+ resource_type?: string | null;
7030
+ updated_at?: string;
7031
+ };
7032
+ Update: {
7033
+ created_at?: string;
7034
+ direction?: string | null;
7035
+ id?: string;
7036
+ keep_failed_days?: number | null;
7037
+ keep_ok_days?: number | null;
7038
+ note?: string | null;
7039
+ resource_type?: string | null;
7040
+ updated_at?: string;
7041
+ };
7042
+ Relationships: [];
7043
+ };
6742
7044
  floriday_logistic_labels_cache: {
6743
7045
  Row: {
6744
7046
  byte_size: number | null;
@@ -10092,22 +10394,31 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10092
10394
  };
10093
10395
  logistics_floriday_push_refusals: {
10094
10396
  Row: {
10397
+ action: string | null;
10095
10398
  created_at: string;
10096
10399
  id: string;
10097
10400
  order_ref: string;
10098
10401
  reason: string;
10402
+ source_module: string | null;
10403
+ source_shell: string | null;
10099
10404
  };
10100
10405
  Insert: {
10406
+ action?: string | null;
10101
10407
  created_at?: string;
10102
10408
  id?: string;
10103
10409
  order_ref: string;
10104
10410
  reason: string;
10411
+ source_module?: string | null;
10412
+ source_shell?: string | null;
10105
10413
  };
10106
10414
  Update: {
10415
+ action?: string | null;
10107
10416
  created_at?: string;
10108
10417
  id?: string;
10109
10418
  order_ref?: string;
10110
10419
  reason?: string;
10420
+ source_module?: string | null;
10421
+ source_shell?: string | null;
10111
10422
  };
10112
10423
  Relationships: [];
10113
10424
  };
@@ -10186,6 +10497,42 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10186
10497
  };
10187
10498
  Relationships: [];
10188
10499
  };
10500
+ logistics_floriday_status_sends: {
10501
+ Row: {
10502
+ action: string;
10503
+ created_at: string;
10504
+ detail: string | null;
10505
+ http_status: number | null;
10506
+ id: string;
10507
+ ok: boolean;
10508
+ order_ref: string;
10509
+ source_module: string | null;
10510
+ source_shell: string | null;
10511
+ };
10512
+ Insert: {
10513
+ action: string;
10514
+ created_at?: string;
10515
+ detail?: string | null;
10516
+ http_status?: number | null;
10517
+ id?: string;
10518
+ ok?: boolean;
10519
+ order_ref: string;
10520
+ source_module?: string | null;
10521
+ source_shell?: string | null;
10522
+ };
10523
+ Update: {
10524
+ action?: string;
10525
+ created_at?: string;
10526
+ detail?: string | null;
10527
+ http_status?: number | null;
10528
+ id?: string;
10529
+ ok?: boolean;
10530
+ order_ref?: string;
10531
+ source_module?: string | null;
10532
+ source_shell?: string | null;
10533
+ };
10534
+ Relationships: [];
10535
+ };
10189
10536
  logistics_formulas: {
10190
10537
  Row: {
10191
10538
  created_at: string;
@@ -10258,6 +10605,108 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10258
10605
  };
10259
10606
  Relationships: [];
10260
10607
  };
10608
+ logistics_opening_exceptions: {
10609
+ Row: {
10610
+ closes: string | null;
10611
+ created_at: string;
10612
+ day: string;
10613
+ id: string;
10614
+ is_closed: boolean;
10615
+ note: string | null;
10616
+ opens: string | null;
10617
+ };
10618
+ Insert: {
10619
+ closes?: string | null;
10620
+ created_at?: string;
10621
+ day: string;
10622
+ id?: string;
10623
+ is_closed?: boolean;
10624
+ note?: string | null;
10625
+ opens?: string | null;
10626
+ };
10627
+ Update: {
10628
+ closes?: string | null;
10629
+ created_at?: string;
10630
+ day?: string;
10631
+ id?: string;
10632
+ is_closed?: boolean;
10633
+ note?: string | null;
10634
+ opens?: string | null;
10635
+ };
10636
+ Relationships: [];
10637
+ };
10638
+ logistics_opening_hours: {
10639
+ Row: {
10640
+ closes: string;
10641
+ created_at: string;
10642
+ id: string;
10643
+ is_active: boolean;
10644
+ note: string | null;
10645
+ opens: string;
10646
+ weekday: number;
10647
+ };
10648
+ Insert: {
10649
+ closes: string;
10650
+ created_at?: string;
10651
+ id?: string;
10652
+ is_active?: boolean;
10653
+ note?: string | null;
10654
+ opens: string;
10655
+ weekday: number;
10656
+ };
10657
+ Update: {
10658
+ closes?: string;
10659
+ created_at?: string;
10660
+ id?: string;
10661
+ is_active?: boolean;
10662
+ note?: string | null;
10663
+ opens?: string;
10664
+ weekday?: number;
10665
+ };
10666
+ Relationships: [];
10667
+ };
10668
+ logistics_pick_data_requests: {
10669
+ Row: {
10670
+ actions: import("../integrations/supabase/types").Json;
10671
+ created_at: string;
10672
+ event_id: string | null;
10673
+ finished_at: string | null;
10674
+ id: string;
10675
+ missing: import("../integrations/supabase/types").Json;
10676
+ order_ref: string;
10677
+ reason: string | null;
10678
+ result: import("../integrations/supabase/types").Json | null;
10679
+ status: string;
10680
+ unit_ref: string | null;
10681
+ };
10682
+ Insert: {
10683
+ actions?: import("../integrations/supabase/types").Json;
10684
+ created_at?: string;
10685
+ event_id?: string | null;
10686
+ finished_at?: string | null;
10687
+ id?: string;
10688
+ missing?: import("../integrations/supabase/types").Json;
10689
+ order_ref: string;
10690
+ reason?: string | null;
10691
+ result?: import("../integrations/supabase/types").Json | null;
10692
+ status?: string;
10693
+ unit_ref?: string | null;
10694
+ };
10695
+ Update: {
10696
+ actions?: import("../integrations/supabase/types").Json;
10697
+ created_at?: string;
10698
+ event_id?: string | null;
10699
+ finished_at?: string | null;
10700
+ id?: string;
10701
+ missing?: import("../integrations/supabase/types").Json;
10702
+ order_ref?: string;
10703
+ reason?: string | null;
10704
+ result?: import("../integrations/supabase/types").Json | null;
10705
+ status?: string;
10706
+ unit_ref?: string | null;
10707
+ };
10708
+ Relationships: [];
10709
+ };
10261
10710
  logistics_pickup_moments: {
10262
10711
  Row: {
10263
10712
  carrier_ref: string | null;
@@ -10717,6 +11166,69 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10717
11166
  };
10718
11167
  Relationships: [];
10719
11168
  };
11169
+ logistics_slip_shipping_note: {
11170
+ Row: {
11171
+ attempts: number;
11172
+ batch_key: string | null;
11173
+ cart_id: string | null;
11174
+ created_at: string;
11175
+ error: string | null;
11176
+ error_code: string | null;
11177
+ fulfillment_order_id: string | null;
11178
+ id: string;
11179
+ locked_until: string | null;
11180
+ next_attempt_at: string | null;
11181
+ order_id: string | null;
11182
+ order_number: string | null;
11183
+ print_job_id: string | null;
11184
+ printer_id: string | null;
11185
+ retry_class: string | null;
11186
+ slip_job_id: string;
11187
+ status: string;
11188
+ updated_at: string;
11189
+ };
11190
+ Insert: {
11191
+ attempts?: number;
11192
+ batch_key?: string | null;
11193
+ cart_id?: string | null;
11194
+ created_at?: string;
11195
+ error?: string | null;
11196
+ error_code?: string | null;
11197
+ fulfillment_order_id?: string | null;
11198
+ id?: string;
11199
+ locked_until?: string | null;
11200
+ next_attempt_at?: string | null;
11201
+ order_id?: string | null;
11202
+ order_number?: string | null;
11203
+ print_job_id?: string | null;
11204
+ printer_id?: string | null;
11205
+ retry_class?: string | null;
11206
+ slip_job_id: string;
11207
+ status?: string;
11208
+ updated_at?: string;
11209
+ };
11210
+ Update: {
11211
+ attempts?: number;
11212
+ batch_key?: string | null;
11213
+ cart_id?: string | null;
11214
+ created_at?: string;
11215
+ error?: string | null;
11216
+ error_code?: string | null;
11217
+ fulfillment_order_id?: string | null;
11218
+ id?: string;
11219
+ locked_until?: string | null;
11220
+ next_attempt_at?: string | null;
11221
+ order_id?: string | null;
11222
+ order_number?: string | null;
11223
+ print_job_id?: string | null;
11224
+ printer_id?: string | null;
11225
+ retry_class?: string | null;
11226
+ slip_job_id?: string;
11227
+ status?: string;
11228
+ updated_at?: string;
11229
+ };
11230
+ Relationships: [];
11231
+ };
10720
11232
  logistics_staff_planning: {
10721
11233
  Row: {
10722
11234
  created_at: string;
@@ -11050,6 +11562,129 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11050
11562
  };
11051
11563
  Relationships: [];
11052
11564
  };
11565
+ logistics_time_settings: {
11566
+ Row: {
11567
+ id: boolean;
11568
+ timezone: string;
11569
+ updated_at: string;
11570
+ };
11571
+ Insert: {
11572
+ id?: boolean;
11573
+ timezone: string;
11574
+ updated_at?: string;
11575
+ };
11576
+ Update: {
11577
+ id?: boolean;
11578
+ timezone?: string;
11579
+ updated_at?: string;
11580
+ };
11581
+ Relationships: [];
11582
+ };
11583
+ logistics_trace_events: {
11584
+ Row: {
11585
+ actor: string | null;
11586
+ attempts: number;
11587
+ cart_ref: string | null;
11588
+ created_at: string;
11589
+ db_action: string | null;
11590
+ db_new: import("../integrations/supabase/types").Json | null;
11591
+ db_old: import("../integrations/supabase/types").Json | null;
11592
+ db_record: string | null;
11593
+ db_table: string | null;
11594
+ decision: string | null;
11595
+ duration_ms: number | null;
11596
+ error: string | null;
11597
+ external_action: string | null;
11598
+ external_ref: string | null;
11599
+ external_response: import("../integrations/supabase/types").Json | null;
11600
+ external_status: string | null;
11601
+ external_system: string | null;
11602
+ id: string;
11603
+ input: import("../integrations/supabase/types").Json | null;
11604
+ next_attempt_at: string | null;
11605
+ order_ref: string | null;
11606
+ order_source: string | null;
11607
+ output: import("../integrations/supabase/types").Json | null;
11608
+ phase: string;
11609
+ reads: import("../integrations/supabase/types").Json | null;
11610
+ reason: string | null;
11611
+ rule: string | null;
11612
+ slip_ref: string | null;
11613
+ status: string;
11614
+ step: string;
11615
+ trace_id: string;
11616
+ values_used: import("../integrations/supabase/types").Json | null;
11617
+ };
11618
+ Insert: {
11619
+ actor?: string | null;
11620
+ attempts?: number;
11621
+ cart_ref?: string | null;
11622
+ created_at?: string;
11623
+ db_action?: string | null;
11624
+ db_new?: import("../integrations/supabase/types").Json | null;
11625
+ db_old?: import("../integrations/supabase/types").Json | null;
11626
+ db_record?: string | null;
11627
+ db_table?: string | null;
11628
+ decision?: string | null;
11629
+ duration_ms?: number | null;
11630
+ error?: string | null;
11631
+ external_action?: string | null;
11632
+ external_ref?: string | null;
11633
+ external_response?: import("../integrations/supabase/types").Json | null;
11634
+ external_status?: string | null;
11635
+ external_system?: string | null;
11636
+ id?: string;
11637
+ input?: import("../integrations/supabase/types").Json | null;
11638
+ next_attempt_at?: string | null;
11639
+ order_ref?: string | null;
11640
+ order_source?: string | null;
11641
+ output?: import("../integrations/supabase/types").Json | null;
11642
+ phase: string;
11643
+ reads?: import("../integrations/supabase/types").Json | null;
11644
+ reason?: string | null;
11645
+ rule?: string | null;
11646
+ slip_ref?: string | null;
11647
+ status: string;
11648
+ step: string;
11649
+ trace_id?: string;
11650
+ values_used?: import("../integrations/supabase/types").Json | null;
11651
+ };
11652
+ Update: {
11653
+ actor?: string | null;
11654
+ attempts?: number;
11655
+ cart_ref?: string | null;
11656
+ created_at?: string;
11657
+ db_action?: string | null;
11658
+ db_new?: import("../integrations/supabase/types").Json | null;
11659
+ db_old?: import("../integrations/supabase/types").Json | null;
11660
+ db_record?: string | null;
11661
+ db_table?: string | null;
11662
+ decision?: string | null;
11663
+ duration_ms?: number | null;
11664
+ error?: string | null;
11665
+ external_action?: string | null;
11666
+ external_ref?: string | null;
11667
+ external_response?: import("../integrations/supabase/types").Json | null;
11668
+ external_status?: string | null;
11669
+ external_system?: string | null;
11670
+ id?: string;
11671
+ input?: import("../integrations/supabase/types").Json | null;
11672
+ next_attempt_at?: string | null;
11673
+ order_ref?: string | null;
11674
+ order_source?: string | null;
11675
+ output?: import("../integrations/supabase/types").Json | null;
11676
+ phase?: string;
11677
+ reads?: import("../integrations/supabase/types").Json | null;
11678
+ reason?: string | null;
11679
+ rule?: string | null;
11680
+ slip_ref?: string | null;
11681
+ status?: string;
11682
+ step?: string;
11683
+ trace_id?: string;
11684
+ values_used?: import("../integrations/supabase/types").Json | null;
11685
+ };
11686
+ Relationships: [];
11687
+ };
11053
11688
  logistics_variables: {
11054
11689
  Row: {
11055
11690
  created_at: string;
@@ -13440,6 +14075,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13440
14075
  customer_name: string;
13441
14076
  deleted_at: string | null;
13442
14077
  delivery_date: string | null;
14078
+ floriday_order_group_key: string | null;
13443
14079
  floriday_sales_order_id: string | null;
13444
14080
  id: string;
13445
14081
  invoice_due_at: string | null;
@@ -13467,6 +14103,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13467
14103
  customer_name?: string;
13468
14104
  deleted_at?: string | null;
13469
14105
  delivery_date?: string | null;
14106
+ floriday_order_group_key?: string | null;
13470
14107
  floriday_sales_order_id?: string | null;
13471
14108
  id?: string;
13472
14109
  invoice_due_at?: string | null;
@@ -13494,6 +14131,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13494
14131
  customer_name?: string;
13495
14132
  deleted_at?: string | null;
13496
14133
  delivery_date?: string | null;
14134
+ floriday_order_group_key?: string | null;
13497
14135
  floriday_sales_order_id?: string | null;
13498
14136
  id?: string;
13499
14137
  invoice_due_at?: string | null;
@@ -19357,6 +19995,36 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19357
19995
  referencedColumns: ["id"];
19358
19996
  }];
19359
19997
  };
19998
+ voorraad_buffer_state: {
19999
+ Row: {
20000
+ buffer_id: string;
20001
+ buffer_key: string | null;
20002
+ closed_at: string | null;
20003
+ created_at: string;
20004
+ detached_orders: import("../integrations/supabase/types").Json;
20005
+ reason: string | null;
20006
+ updated_at: string;
20007
+ };
20008
+ Insert: {
20009
+ buffer_id: string;
20010
+ buffer_key?: string | null;
20011
+ closed_at?: string | null;
20012
+ created_at?: string;
20013
+ detached_orders?: import("../integrations/supabase/types").Json;
20014
+ reason?: string | null;
20015
+ updated_at?: string;
20016
+ };
20017
+ Update: {
20018
+ buffer_id?: string;
20019
+ buffer_key?: string | null;
20020
+ closed_at?: string | null;
20021
+ created_at?: string;
20022
+ detached_orders?: import("../integrations/supabase/types").Json;
20023
+ reason?: string | null;
20024
+ updated_at?: string;
20025
+ };
20026
+ Relationships: [];
20027
+ };
19360
20028
  voorraad_custom_fields: {
19361
20029
  Row: {
19362
20030
  created_at: string;
@@ -19399,6 +20067,36 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19399
20067
  };
19400
20068
  Relationships: [];
19401
20069
  };
20070
+ voorraad_logistics_event_log: {
20071
+ Row: {
20072
+ created_at: string;
20073
+ event_id: string;
20074
+ event_type: string;
20075
+ order_ref: string | null;
20076
+ processed_at: string;
20077
+ result: import("../integrations/supabase/types").Json;
20078
+ updated_at: string;
20079
+ };
20080
+ Insert: {
20081
+ created_at?: string;
20082
+ event_id: string;
20083
+ event_type: string;
20084
+ order_ref?: string | null;
20085
+ processed_at?: string;
20086
+ result?: import("../integrations/supabase/types").Json;
20087
+ updated_at?: string;
20088
+ };
20089
+ Update: {
20090
+ created_at?: string;
20091
+ event_id?: string;
20092
+ event_type?: string;
20093
+ order_ref?: string | null;
20094
+ processed_at?: string;
20095
+ result?: import("../integrations/supabase/types").Json;
20096
+ updated_at?: string;
20097
+ };
20098
+ Relationships: [];
20099
+ };
19402
20100
  voorraad_media_upload_failures: {
19403
20101
  Row: {
19404
20102
  action: string;
@@ -21559,6 +22257,15 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21559
22257
  Args: never;
21560
22258
  Returns: boolean;
21561
22259
  };
22260
+ cancel_open_print_jobs: {
22261
+ Args: {
22262
+ _cutoff: string;
22263
+ };
22264
+ Returns: {
22265
+ extern_job_id: string;
22266
+ id: string;
22267
+ }[];
22268
+ };
21562
22269
  check_offer_product_available_stock: {
21563
22270
  Args: {
21564
22271
  p_campaign_product_id: string;
@@ -23097,6 +23804,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23097
23804
  };
23098
23805
  Returns: string;
23099
23806
  };
23807
+ logistics_cart_checkin_at: {
23808
+ Args: {
23809
+ p_cart_id: string;
23810
+ };
23811
+ Returns: string;
23812
+ };
23100
23813
  logistics_cart_handled: {
23101
23814
  Args: {
23102
23815
  p_cart_index: number;
@@ -23130,10 +23843,22 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23130
23843
  task_status: string;
23131
23844
  }[];
23132
23845
  };
23846
+ logistics_cart_is_full: {
23847
+ Args: {
23848
+ p_cart_id: string;
23849
+ };
23850
+ Returns: boolean;
23851
+ };
23133
23852
  logistics_cart_layout_method: {
23134
23853
  Args: never;
23135
23854
  Returns: import("../integrations/supabase/types").Json;
23136
23855
  };
23856
+ logistics_cart_order_refs: {
23857
+ Args: {
23858
+ p_cart_id: string;
23859
+ };
23860
+ Returns: string[];
23861
+ };
23137
23862
  logistics_cart_plan_overview: {
23138
23863
  Args: {
23139
23864
  p_days?: number;
@@ -23153,6 +23878,24 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23153
23878
  };
23154
23879
  Returns: import("../integrations/supabase/types").Json;
23155
23880
  };
23881
+ logistics_cart_plan_status_core: {
23882
+ Args: {
23883
+ p_ref: string;
23884
+ };
23885
+ Returns: import("../integrations/supabase/types").Json;
23886
+ };
23887
+ logistics_cart_release_reason: {
23888
+ Args: {
23889
+ p_cart_id: string;
23890
+ };
23891
+ Returns: string;
23892
+ };
23893
+ logistics_cart_released: {
23894
+ Args: {
23895
+ p_cart_id: string;
23896
+ };
23897
+ Returns: boolean;
23898
+ };
23156
23899
  logistics_cart_seq: {
23157
23900
  Args: {
23158
23901
  p_order_uuid?: string;
@@ -23203,6 +23946,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23203
23946
  unit_ref: string;
23204
23947
  }[];
23205
23948
  };
23949
+ logistics_carts_per_print: {
23950
+ Args: never;
23951
+ Returns: number;
23952
+ };
23206
23953
  logistics_check_order_allowed: {
23207
23954
  Args: {
23208
23955
  p_lines: import("../integrations/supabase/types").Json;
@@ -23306,6 +24053,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23306
24053
  isSetofReturn: false;
23307
24054
  };
23308
24055
  };
24056
+ logistics_cleanup_orphan_print_jobs: {
24057
+ Args: never;
24058
+ Returns: import("../integrations/supabase/types").Json;
24059
+ };
23309
24060
  logistics_complete_task: {
23310
24061
  Args: {
23311
24062
  p_result?: import("../integrations/supabase/types").Json;
@@ -23368,6 +24119,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23368
24119
  station_carts: number;
23369
24120
  }[];
23370
24121
  };
24122
+ logistics_control_complete_cart: {
24123
+ Args: {
24124
+ p_cart_id: string;
24125
+ };
24126
+ Returns: number;
24127
+ };
23371
24128
  logistics_control_scan_approve: {
23372
24129
  Args: {
23373
24130
  p_allow_reprint?: boolean;
@@ -23447,6 +24204,15 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23447
24204
  Args: never;
23448
24205
  Returns: import("../integrations/supabase/types").Json;
23449
24206
  };
24207
+ logistics_day_windows: {
24208
+ Args: {
24209
+ p_day: string;
24210
+ };
24211
+ Returns: {
24212
+ win_end: string;
24213
+ win_start: string;
24214
+ }[];
24215
+ };
23450
24216
  logistics_delay_customer_email: {
23451
24217
  Args: {
23452
24218
  p_customer: string;
@@ -23514,6 +24280,17 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23514
24280
  };
23515
24281
  Returns: import("../integrations/supabase/types").Json;
23516
24282
  };
24283
+ logistics_enqueue_shipping_note_with_slip: {
24284
+ Args: {
24285
+ _cart_id: string;
24286
+ _is_herprint: boolean;
24287
+ _printer_id: string;
24288
+ _queue_item_id: string;
24289
+ _session_id: string;
24290
+ _slip_job_id: string;
24291
+ };
24292
+ Returns: string;
24293
+ };
23517
24294
  logistics_enqueue_sticker_with_slip: {
23518
24295
  Args: {
23519
24296
  _cart_id: string;
@@ -23531,6 +24308,20 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23531
24308
  };
23532
24309
  Returns: string;
23533
24310
  };
24311
+ logistics_ensure_pick_data: {
24312
+ Args: {
24313
+ p_event_id?: string;
24314
+ p_missing?: import("../integrations/supabase/types").Json;
24315
+ p_ref: string;
24316
+ };
24317
+ Returns: import("../integrations/supabase/types").Json;
24318
+ };
24319
+ logistics_ensure_shipping_notes: {
24320
+ Args: {
24321
+ p_limit?: number;
24322
+ };
24323
+ Returns: import("../integrations/supabase/types").Json;
24324
+ };
23534
24325
  logistics_fail_task: {
23535
24326
  Args: {
23536
24327
  p_error: string;
@@ -23576,6 +24367,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23576
24367
  isSetofReturn: false;
23577
24368
  };
23578
24369
  };
24370
+ logistics_fix_wrong_shipping_notes: {
24371
+ Args: never;
24372
+ Returns: import("../integrations/supabase/types").Json;
24373
+ };
23579
24374
  logistics_floriday_cart_plan: {
23580
24375
  Args: {
23581
24376
  p_order_id: string;
@@ -23603,6 +24398,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23603
24398
  revision: number;
23604
24399
  }[];
23605
24400
  };
24401
+ logistics_floriday_delivery_note_create_enabled: {
24402
+ Args: never;
24403
+ Returns: boolean;
24404
+ };
23606
24405
  logistics_floriday_finish_push: {
23607
24406
  Args: {
23608
24407
  _error?: string;
@@ -23652,6 +24451,32 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23652
24451
  };
23653
24452
  Returns: string;
23654
24453
  };
24454
+ logistics_floriday_gate_status: {
24455
+ Args: never;
24456
+ Returns: import("../integrations/supabase/types").Json;
24457
+ };
24458
+ logistics_floriday_log_refusal: {
24459
+ Args: {
24460
+ _action?: string;
24461
+ _module?: string;
24462
+ _order_ref: string;
24463
+ _reason: string;
24464
+ _shell?: string;
24465
+ };
24466
+ Returns: undefined;
24467
+ };
24468
+ logistics_floriday_log_send: {
24469
+ Args: {
24470
+ _action: string;
24471
+ _detail?: string;
24472
+ _http_status?: number;
24473
+ _module?: string;
24474
+ _ok: boolean;
24475
+ _order_ref: string;
24476
+ _shell?: string;
24477
+ };
24478
+ Returns: undefined;
24479
+ };
23655
24480
  logistics_floriday_order_approved: {
23656
24481
  Args: {
23657
24482
  _order_ref: string;
@@ -23676,6 +24501,16 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23676
24501
  Args: never;
23677
24502
  Returns: boolean;
23678
24503
  };
24504
+ logistics_floriday_stock_updates_enabled: {
24505
+ Args: never;
24506
+ Returns: boolean;
24507
+ };
24508
+ logistics_floriday_write_allowed: {
24509
+ Args: {
24510
+ _action: string;
24511
+ };
24512
+ Returns: boolean;
24513
+ };
23679
24514
  logistics_fulfill_barcode_requests: {
23680
24515
  Args: {
23681
24516
  p_limit?: number;
@@ -23718,6 +24553,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23718
24553
  };
23719
24554
  Returns: number;
23720
24555
  };
24556
+ logistics_merge_partial_carts: {
24557
+ Args: {
24558
+ p_limit?: number;
24559
+ };
24560
+ Returns: import("../integrations/supabase/types").Json;
24561
+ };
23721
24562
  logistics_next_workday_date: {
23722
24563
  Args: {
23723
24564
  p_date: string;
@@ -23744,6 +24585,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23744
24585
  };
23745
24586
  Returns: string;
23746
24587
  };
24588
+ logistics_opening_timezone: {
24589
+ Args: never;
24590
+ Returns: string;
24591
+ };
23747
24592
  logistics_order_cart_count: {
23748
24593
  Args: {
23749
24594
  p_order_ref: string;
@@ -23800,6 +24645,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23800
24645
  };
23801
24646
  Returns: string;
23802
24647
  };
24648
+ logistics_payload_is_floriday: {
24649
+ Args: {
24650
+ _payload: import("../integrations/supabase/types").Json;
24651
+ };
24652
+ Returns: boolean;
24653
+ };
23803
24654
  logistics_pick_agenda: {
23804
24655
  Args: {
23805
24656
  p_from?: string;
@@ -23828,6 +24679,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23828
24679
  Args: never;
23829
24680
  Returns: import("../integrations/supabase/types").Json;
23830
24681
  };
24682
+ logistics_pick_partial_mode: {
24683
+ Args: never;
24684
+ Returns: string;
24685
+ };
23831
24686
  logistics_pick_start_estimate: {
23832
24687
  Args: {
23833
24688
  p_order: import("../integrations/supabase/types").Json;
@@ -23918,6 +24773,20 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23918
24773
  Args: never;
23919
24774
  Returns: undefined;
23920
24775
  };
24776
+ logistics_plan_progress: {
24777
+ Args: {
24778
+ p_refs: string[];
24779
+ };
24780
+ Returns: {
24781
+ cart_plan_ready: boolean;
24782
+ cart_plan_reason: string;
24783
+ cart_plan_released: boolean;
24784
+ plan_progress: number;
24785
+ plan_state: string;
24786
+ plan_state_since: string;
24787
+ unit_ref: string;
24788
+ }[];
24789
+ };
23921
24790
  logistics_plan_prune: {
23922
24791
  Args: never;
23923
24792
  Returns: number;
@@ -23939,6 +24808,18 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23939
24808
  };
23940
24809
  Returns: number;
23941
24810
  };
24811
+ logistics_plan_state_for: {
24812
+ Args: {
24813
+ p_ref: string;
24814
+ };
24815
+ Returns: import("../integrations/supabase/types").Json;
24816
+ };
24817
+ logistics_prepare_pick_documents: {
24818
+ Args: {
24819
+ p_limit?: number;
24820
+ };
24821
+ Returns: import("../integrations/supabase/types").Json;
24822
+ };
23942
24823
  logistics_prune_buffer_member_queue: {
23943
24824
  Args: never;
23944
24825
  Returns: number;
@@ -23979,18 +24860,36 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23979
24860
  Args: never;
23980
24861
  Returns: import("../integrations/supabase/types").Json;
23981
24862
  };
24863
+ logistics_refresh_pick_queue_status: {
24864
+ Args: {
24865
+ p_ref: string;
24866
+ };
24867
+ Returns: number;
24868
+ };
23982
24869
  logistics_refresh_pickup_moments: {
23983
24870
  Args: {
23984
24871
  p_weeks?: number;
23985
24872
  };
23986
24873
  Returns: import("../integrations/supabase/types").Json;
23987
24874
  };
24875
+ logistics_refresh_plan_state: {
24876
+ Args: {
24877
+ p_limit?: number;
24878
+ };
24879
+ Returns: import("../integrations/supabase/types").Json;
24880
+ };
23988
24881
  logistics_replan_all: {
23989
24882
  Args: {
23990
24883
  p_reason?: string;
23991
24884
  };
23992
24885
  Returns: import("../integrations/supabase/types").Json;
23993
24886
  };
24887
+ logistics_replan_all_force: {
24888
+ Args: {
24889
+ p_reason?: string;
24890
+ };
24891
+ Returns: import("../integrations/supabase/types").Json;
24892
+ };
23994
24893
  logistics_report_delay: {
23995
24894
  Args: {
23996
24895
  p_expected_date?: string;
@@ -24135,6 +25034,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
24135
25034
  };
24136
25035
  Returns: string;
24137
25036
  };
25037
+ logistics_shipping_note_follows_slip: {
25038
+ Args: never;
25039
+ Returns: boolean;
25040
+ };
24138
25041
  logistics_shipping_note_from_barcode: {
24139
25042
  Args: {
24140
25043
  p_allow_reprint?: boolean;
@@ -24143,10 +25046,86 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
24143
25046
  };
24144
25047
  Returns: import("../integrations/supabase/types").Json;
24145
25048
  };
25049
+ logistics_shipping_note_job_for_slip: {
25050
+ Args: {
25051
+ _slip_job_id: string;
25052
+ };
25053
+ Returns: string;
25054
+ };
25055
+ logistics_shipping_notes_wake_all: {
25056
+ Args: never;
25057
+ Returns: import("../integrations/supabase/types").Json;
25058
+ };
25059
+ logistics_slip_is_floriday: {
25060
+ Args: {
25061
+ _slip_job_id: string;
25062
+ };
25063
+ Returns: boolean;
25064
+ };
25065
+ logistics_slip_note_claim: {
25066
+ Args: {
25067
+ _lease_seconds?: number;
25068
+ _limit?: number;
25069
+ };
25070
+ Returns: {
25071
+ attempts: number;
25072
+ batch_key: string | null;
25073
+ cart_id: string | null;
25074
+ created_at: string;
25075
+ error: string | null;
25076
+ error_code: string | null;
25077
+ fulfillment_order_id: string | null;
25078
+ id: string;
25079
+ locked_until: string | null;
25080
+ next_attempt_at: string | null;
25081
+ order_id: string | null;
25082
+ order_number: string | null;
25083
+ print_job_id: string | null;
25084
+ printer_id: string | null;
25085
+ retry_class: string | null;
25086
+ slip_job_id: string;
25087
+ status: string;
25088
+ updated_at: string;
25089
+ }[];
25090
+ SetofOptions: {
25091
+ from: "*";
25092
+ to: "logistics_slip_shipping_note";
25093
+ isOneToOne: false;
25094
+ isSetofReturn: true;
25095
+ };
25096
+ };
25097
+ logistics_slip_note_finish: {
25098
+ Args: {
25099
+ _error?: string;
25100
+ _error_code?: string;
25101
+ _fulfillment_order_id?: string;
25102
+ _id: string;
25103
+ _ok: boolean;
25104
+ _print_job_id?: string;
25105
+ _status?: string;
25106
+ };
25107
+ Returns: undefined;
25108
+ };
25109
+ logistics_slip_note_keep_waiting: {
25110
+ Args: {
25111
+ _class?: string;
25112
+ _id: string;
25113
+ _reason: string;
25114
+ };
25115
+ Returns: undefined;
25116
+ };
24146
25117
  logistics_sticker_follows_slip: {
24147
25118
  Args: never;
24148
25119
  Returns: boolean;
24149
25120
  };
25121
+ logistics_subtract_working_minutes: {
25122
+ Args: {
25123
+ p_deadline: string;
25124
+ p_max_workdays?: number;
25125
+ p_minutes: number;
25126
+ };
25127
+ Returns: import("../integrations/supabase/types").Json;
25128
+ };
24150
25129
  logistics_supersede_stale_tasks: {
24151
25130
  Args: {
24152
25131
  p_keep: string[];
@@ -24183,6 +25162,46 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
24183
25162
  Args: never;
24184
25163
  Returns: string;
24185
25164
  };
25165
+ logistics_timezone_options: {
25166
+ Args: never;
25167
+ Returns: {
25168
+ name: string;
25169
+ }[];
25170
+ };
25171
+ logistics_trace: {
25172
+ Args: {
25173
+ p: import("../integrations/supabase/types").Json;
25174
+ };
25175
+ Returns: string;
25176
+ };
25177
+ logistics_trace_batch: {
25178
+ Args: {
25179
+ p: import("../integrations/supabase/types").Json;
25180
+ };
25181
+ Returns: number;
25182
+ };
25183
+ logistics_trace_orders: {
25184
+ Args: {
25185
+ p_limit?: number;
25186
+ p_search?: string;
25187
+ p_since?: string;
25188
+ p_status?: string;
25189
+ };
25190
+ Returns: import("../integrations/supabase/types").Json;
25191
+ };
25192
+ logistics_trace_redact: {
25193
+ Args: {
25194
+ p: import("../integrations/supabase/types").Json;
25195
+ };
25196
+ Returns: import("../integrations/supabase/types").Json;
25197
+ };
25198
+ logistics_trace_timeline: {
25199
+ Args: {
25200
+ p_limit?: number;
25201
+ p_order_ref: string;
25202
+ };
25203
+ Returns: import("../integrations/supabase/types").Json;
25204
+ };
24186
25205
  logistics_upsert_task: {
24187
25206
  Args: {
24188
25207
  p_buffer_ref: string;
@@ -24202,6 +25221,16 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
24202
25221
  };
24203
25222
  Returns: string;
24204
25223
  };
25224
+ logistics_valid_timezone: {
25225
+ Args: {
25226
+ _tz: string;
25227
+ };
25228
+ Returns: boolean;
25229
+ };
25230
+ logistics_working_hours_status: {
25231
+ Args: never;
25232
+ Returns: import("../integrations/supabase/types").Json;
25233
+ };
24205
25234
  logistics_write_buffer_layer_positions: {
24206
25235
  Args: {
24207
25236
  p_buffer_id: string;
@@ -25214,6 +26243,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
25214
26243
  };
25215
26244
  Returns: undefined;
25216
26245
  };
26246
+ prune_floriday_api_log: {
26247
+ Args: never;
26248
+ Returns: number;
26249
+ };
25217
26250
  quote_create_from_source: {
25218
26251
  Args: {
25219
26252
  _payload?: import("../integrations/supabase/types").Json;
@@ -25647,6 +26680,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
25647
26680
  };
25648
26681
  Returns: number;
25649
26682
  };
26683
+ schedule_floriday_catalog_prices_sync: {
26684
+ Args: {
26685
+ p_apikey: string;
26686
+ p_url: string;
26687
+ };
26688
+ Returns: number;
26689
+ };
25650
26690
  schedule_floriday_clock_presales_sync: {
25651
26691
  Args: {
25652
26692
  p_apikey: string;
@@ -25947,6 +26987,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
25947
26987
  };
25948
26988
  Returns: undefined;
25949
26989
  };
26990
+ sync_floriday_prices_into_price_groups: {
26991
+ Args: never;
26992
+ Returns: number;
26993
+ };
25950
26994
  sync_layer_stock: {
25951
26995
  Args: {
25952
26996
  p_product_id: string;
@@ -26079,6 +27123,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
26079
27123
  Args: never;
26080
27124
  Returns: string;
26081
27125
  };
27126
+ voorraad_cleanup_old_rows: {
27127
+ Args: never;
27128
+ Returns: import("../integrations/supabase/types").Json;
27129
+ };
26082
27130
  wake_print_queue: {
26083
27131
  Args: {
26084
27132
  _min_interval_ms?: number;
@@ -26231,7 +27279,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
26231
27279
  last_synced_at?: string | null;
26232
27280
  provider: string;
26233
27281
  selected_calendars?: import("../integrations/supabase/types").Json;
26234
- status?: string;
27282
+ status
27283
+ /** Haalt alle orders van dezelfde buffer als de gegeven order. */
27284
+ ?: string;
26235
27285
  sync_mode?: string;
26236
27286
  updated_at?: string;
26237
27287
  user_id: string;
@@ -28378,6 +29428,45 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
28378
29428
  };
28379
29429
  Relationships: [];
28380
29430
  };
29431
+ customer_product_stickers: {
29432
+ Row: {
29433
+ created_at: string;
29434
+ customer_key: string;
29435
+ file_name: string;
29436
+ file_path: string;
29437
+ file_size: number | null;
29438
+ id: string;
29439
+ mime_type: string | null;
29440
+ trade_item_key: string;
29441
+ updated_at: string;
29442
+ uploaded_by: string | null;
29443
+ };
29444
+ Insert: {
29445
+ created_at?: string;
29446
+ customer_key: string;
29447
+ file_name: string;
29448
+ file_path: string;
29449
+ file_size?: number | null;
29450
+ id?: string;
29451
+ mime_type?: string | null;
29452
+ trade_item_key: string;
29453
+ updated_at?: string;
29454
+ uploaded_by?: string | null;
29455
+ };
29456
+ Update: {
29457
+ created_at?: string;
29458
+ customer_key?: string;
29459
+ file_name?: string;
29460
+ file_path?: string;
29461
+ file_size?: number | null;
29462
+ id?: string;
29463
+ mime_type?: string | null;
29464
+ trade_item_key?: string;
29465
+ updated_at?: string;
29466
+ uploaded_by?: string | null;
29467
+ };
29468
+ Relationships: [];
29469
+ };
28381
29470
  customer_selected_assortment: {
28382
29471
  Row: {
28383
29472
  article_number: string | null;
@@ -28426,6 +29515,30 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
28426
29515
  referencedColumns: ["id"];
28427
29516
  }];
28428
29517
  };
29518
+ customer_sticker_settings: {
29519
+ Row: {
29520
+ created_at: string;
29521
+ customer_key: string;
29522
+ height_mm: number;
29523
+ updated_at: string;
29524
+ width_mm: number;
29525
+ };
29526
+ Insert: {
29527
+ created_at?: string;
29528
+ customer_key: string;
29529
+ height_mm?: number;
29530
+ updated_at?: string;
29531
+ width_mm?: number;
29532
+ };
29533
+ Update: {
29534
+ created_at?: string;
29535
+ customer_key?: string;
29536
+ height_mm?: number;
29537
+ updated_at?: string;
29538
+ width_mm?: number;
29539
+ };
29540
+ Relationships: [];
29541
+ };
28429
29542
  customer_trade_settings: {
28430
29543
  Row: {
28431
29544
  category: string;
@@ -31756,6 +32869,102 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31756
32869
  referencedColumns: ["id"];
31757
32870
  }];
31758
32871
  };
32872
+ floriday_api_log: {
32873
+ Row: {
32874
+ action: string | null;
32875
+ caller: string | null;
32876
+ connection_id: string | null;
32877
+ created_at: string;
32878
+ cursor_from: number | null;
32879
+ direction: string;
32880
+ duration_ms: number | null;
32881
+ environment: string | null;
32882
+ error: string | null;
32883
+ floriday_id: string | null;
32884
+ floriday_reference: string | null;
32885
+ http_status: number;
32886
+ id: string;
32887
+ item_count: number | null;
32888
+ kind: string | null;
32889
+ local_id: string | null;
32890
+ local_reference: string | null;
32891
+ method: string;
32892
+ module: string | null;
32893
+ ok: boolean;
32894
+ path: string;
32895
+ request: import("../integrations/supabase/types").Json | null;
32896
+ resource_type: string | null;
32897
+ response: import("../integrations/supabase/types").Json | null;
32898
+ write_log_id: string | null;
32899
+ };
32900
+ Insert: {
32901
+ action?: string | null;
32902
+ caller?: string | null;
32903
+ connection_id?: string | null;
32904
+ created_at?: string;
32905
+ cursor_from?: number | null;
32906
+ direction: string;
32907
+ duration_ms?: number | null;
32908
+ environment?: string | null;
32909
+ error?: string | null;
32910
+ floriday_id?: string | null;
32911
+ floriday_reference?: string | null;
32912
+ http_status?: number;
32913
+ id?: string;
32914
+ item_count?: number | null;
32915
+ kind?: string | null;
32916
+ local_id?: string | null;
32917
+ local_reference?: string | null;
32918
+ method: string;
32919
+ module?: string | null;
32920
+ ok?: boolean;
32921
+ path: string;
32922
+ request?: import("../integrations/supabase/types").Json | null;
32923
+ resource_type?: string | null;
32924
+ response?: import("../integrations/supabase/types").Json | null;
32925
+ write_log_id?: string | null;
32926
+ };
32927
+ Update: {
32928
+ action?: string | null;
32929
+ caller?: string | null;
32930
+ connection_id?: string | null;
32931
+ created_at?: string;
32932
+ cursor_from?: number | null;
32933
+ direction?: string;
32934
+ duration_ms?: number | null;
32935
+ environment?: string | null;
32936
+ error?: string | null;
32937
+ floriday_id?: string | null;
32938
+ floriday_reference?: string | null;
32939
+ http_status?: number;
32940
+ id?: string;
32941
+ item_count?: number | null;
32942
+ kind?: string | null;
32943
+ local_id?: string | null;
32944
+ local_reference?: string | null;
32945
+ method?: string;
32946
+ module?: string | null;
32947
+ ok?: boolean;
32948
+ path?: string;
32949
+ request?: import("../integrations/supabase/types").Json | null;
32950
+ resource_type?: string | null;
32951
+ response?: import("../integrations/supabase/types").Json | null;
32952
+ write_log_id?: string | null;
32953
+ };
32954
+ Relationships: [{
32955
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32956
+ columns: ["connection_id"];
32957
+ isOneToOne: false;
32958
+ referencedRelation: "floriday_connections";
32959
+ referencedColumns: ["id"];
32960
+ }, {
32961
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32962
+ columns: ["write_log_id"];
32963
+ isOneToOne: false;
32964
+ referencedRelation: "floriday_write_log";
32965
+ referencedColumns: ["id"];
32966
+ }];
32967
+ };
31759
32968
  floriday_auction_letters_cache: {
31760
32969
  Row: {
31761
32970
  auction_letter_code: string;
@@ -31963,6 +33172,84 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31963
33172
  referencedColumns: ["id"];
31964
33173
  }];
31965
33174
  };
33175
+ floriday_catalog_prices_cache: {
33176
+ Row: {
33177
+ connection_id: string;
33178
+ created_at: string;
33179
+ currency: string;
33180
+ id: string;
33181
+ is_deleted: boolean;
33182
+ price: number | null;
33183
+ price_group_id: string | null;
33184
+ price_group_name: string | null;
33185
+ price_type: string;
33186
+ raw: import("../integrations/supabase/types").Json | null;
33187
+ sales_unit: string | null;
33188
+ sequence_number: number;
33189
+ supplier_article_code: string | null;
33190
+ supply_line_id: string;
33191
+ synced_at: string;
33192
+ trade_item_id: string | null;
33193
+ updated_at: string;
33194
+ valid_from: string | null;
33195
+ valid_to: string | null;
33196
+ week: number | null;
33197
+ year: number | null;
33198
+ };
33199
+ Insert: {
33200
+ connection_id: string;
33201
+ created_at?: string;
33202
+ currency?: string;
33203
+ id?: string;
33204
+ is_deleted?: boolean;
33205
+ price?: number | null;
33206
+ price_group_id?: string | null;
33207
+ price_group_name?: string | null;
33208
+ price_type?: string;
33209
+ raw?: import("../integrations/supabase/types").Json | null;
33210
+ sales_unit?: string | null;
33211
+ sequence_number?: number;
33212
+ supplier_article_code?: string | null;
33213
+ supply_line_id: string;
33214
+ synced_at?: string;
33215
+ trade_item_id?: string | null;
33216
+ updated_at?: string;
33217
+ valid_from?: string | null;
33218
+ valid_to?: string | null;
33219
+ week?: number | null;
33220
+ year?: number | null;
33221
+ };
33222
+ Update: {
33223
+ connection_id?: string;
33224
+ created_at?: string;
33225
+ currency?: string;
33226
+ id?: string;
33227
+ is_deleted?: boolean;
33228
+ price?: number | null;
33229
+ price_group_id?: string | null;
33230
+ price_group_name?: string | null;
33231
+ price_type?: string;
33232
+ raw?: import("../integrations/supabase/types").Json | null;
33233
+ sales_unit?: string | null;
33234
+ sequence_number?: number;
33235
+ supplier_article_code?: string | null;
33236
+ supply_line_id?: string;
33237
+ synced_at?: string;
33238
+ trade_item_id?: string | null;
33239
+ updated_at?: string;
33240
+ valid_from?: string | null;
33241
+ valid_to?: string | null;
33242
+ week?: number | null;
33243
+ year?: number | null;
33244
+ };
33245
+ Relationships: [{
33246
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33247
+ columns: ["connection_id"];
33248
+ isOneToOne: false;
33249
+ referencedRelation: "floriday_connections";
33250
+ referencedColumns: ["id"];
33251
+ }];
33252
+ };
31966
33253
  floriday_clock_presales_cache: {
31967
33254
  Row: {
31968
33255
  buyer_organization_id: string | null;
@@ -32878,6 +34165,69 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32878
34165
  referencedColumns: ["id"];
32879
34166
  }];
32880
34167
  };
34168
+ floriday_link_templates: {
34169
+ Row: {
34170
+ created_at: string;
34171
+ floriday_url_template: string | null;
34172
+ is_active: boolean;
34173
+ label: string;
34174
+ local_url_template: string | null;
34175
+ resource_type: string;
34176
+ updated_at: string;
34177
+ };
34178
+ Insert: {
34179
+ created_at?: string;
34180
+ floriday_url_template?: string | null;
34181
+ is_active?: boolean;
34182
+ label: string;
34183
+ local_url_template?: string | null;
34184
+ resource_type: string;
34185
+ updated_at?: string;
34186
+ };
34187
+ Update: {
34188
+ created_at?: string;
34189
+ floriday_url_template?: string | null;
34190
+ is_active?: boolean;
34191
+ label?: string;
34192
+ local_url_template?: string | null;
34193
+ resource_type?: string;
34194
+ updated_at?: string;
34195
+ };
34196
+ Relationships: [];
34197
+ };
34198
+ floriday_log_retention: {
34199
+ Row: {
34200
+ created_at: string;
34201
+ direction: string | null;
34202
+ id: string;
34203
+ keep_failed_days: number | null;
34204
+ keep_ok_days: number | null;
34205
+ note: string | null;
34206
+ resource_type: string | null;
34207
+ updated_at: string;
34208
+ };
34209
+ Insert: {
34210
+ created_at?: string;
34211
+ direction?: string | null;
34212
+ id?: string;
34213
+ keep_failed_days?: number | null;
34214
+ keep_ok_days?: number | null;
34215
+ note?: string | null;
34216
+ resource_type?: string | null;
34217
+ updated_at?: string;
34218
+ };
34219
+ Update: {
34220
+ created_at?: string;
34221
+ direction?: string | null;
34222
+ id?: string;
34223
+ keep_failed_days?: number | null;
34224
+ keep_ok_days?: number | null;
34225
+ note?: string | null;
34226
+ resource_type?: string | null;
34227
+ updated_at?: string;
34228
+ };
34229
+ Relationships: [];
34230
+ };
32881
34231
  floriday_logistic_labels_cache: {
32882
34232
  Row: {
32883
34233
  byte_size: number | null;
@@ -36231,22 +37581,31 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36231
37581
  };
36232
37582
  logistics_floriday_push_refusals: {
36233
37583
  Row: {
37584
+ action: string | null;
36234
37585
  created_at: string;
36235
37586
  id: string;
36236
37587
  order_ref: string;
36237
37588
  reason: string;
37589
+ source_module: string | null;
37590
+ source_shell: string | null;
36238
37591
  };
36239
37592
  Insert: {
37593
+ action?: string | null;
36240
37594
  created_at?: string;
36241
37595
  id?: string;
36242
37596
  order_ref: string;
36243
37597
  reason: string;
37598
+ source_module?: string | null;
37599
+ source_shell?: string | null;
36244
37600
  };
36245
37601
  Update: {
37602
+ action?: string | null;
36246
37603
  created_at?: string;
36247
37604
  id?: string;
36248
37605
  order_ref?: string;
36249
37606
  reason?: string;
37607
+ source_module?: string | null;
37608
+ source_shell?: string | null;
36250
37609
  };
36251
37610
  Relationships: [];
36252
37611
  };
@@ -36325,6 +37684,42 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36325
37684
  };
36326
37685
  Relationships: [];
36327
37686
  };
37687
+ logistics_floriday_status_sends: {
37688
+ Row: {
37689
+ action: string;
37690
+ created_at: string;
37691
+ detail: string | null;
37692
+ http_status: number | null;
37693
+ id: string;
37694
+ ok: boolean;
37695
+ order_ref: string;
37696
+ source_module: string | null;
37697
+ source_shell: string | null;
37698
+ };
37699
+ Insert: {
37700
+ action: string;
37701
+ created_at?: string;
37702
+ detail?: string | null;
37703
+ http_status?: number | null;
37704
+ id?: string;
37705
+ ok?: boolean;
37706
+ order_ref: string;
37707
+ source_module?: string | null;
37708
+ source_shell?: string | null;
37709
+ };
37710
+ Update: {
37711
+ action?: string;
37712
+ created_at?: string;
37713
+ detail?: string | null;
37714
+ http_status?: number | null;
37715
+ id?: string;
37716
+ ok?: boolean;
37717
+ order_ref?: string;
37718
+ source_module?: string | null;
37719
+ source_shell?: string | null;
37720
+ };
37721
+ Relationships: [];
37722
+ };
36328
37723
  logistics_formulas: {
36329
37724
  Row: {
36330
37725
  created_at: string;
@@ -36397,6 +37792,108 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36397
37792
  };
36398
37793
  Relationships: [];
36399
37794
  };
37795
+ logistics_opening_exceptions: {
37796
+ Row: {
37797
+ closes: string | null;
37798
+ created_at: string;
37799
+ day: string;
37800
+ id: string;
37801
+ is_closed: boolean;
37802
+ note: string | null;
37803
+ opens: string | null;
37804
+ };
37805
+ Insert: {
37806
+ closes?: string | null;
37807
+ created_at?: string;
37808
+ day: string;
37809
+ id?: string;
37810
+ is_closed?: boolean;
37811
+ note?: string | null;
37812
+ opens?: string | null;
37813
+ };
37814
+ Update: {
37815
+ closes?: string | null;
37816
+ created_at?: string;
37817
+ day?: string;
37818
+ id?: string;
37819
+ is_closed?: boolean;
37820
+ note?: string | null;
37821
+ opens?: string | null;
37822
+ };
37823
+ Relationships: [];
37824
+ };
37825
+ logistics_opening_hours: {
37826
+ Row: {
37827
+ closes: string;
37828
+ created_at: string;
37829
+ id: string;
37830
+ is_active: boolean;
37831
+ note: string | null;
37832
+ opens: string;
37833
+ weekday: number;
37834
+ };
37835
+ Insert: {
37836
+ closes: string;
37837
+ created_at?: string;
37838
+ id?: string;
37839
+ is_active?: boolean;
37840
+ note?: string | null;
37841
+ opens: string;
37842
+ weekday: number;
37843
+ };
37844
+ Update: {
37845
+ closes?: string;
37846
+ created_at?: string;
37847
+ id?: string;
37848
+ is_active?: boolean;
37849
+ note?: string | null;
37850
+ opens?: string;
37851
+ weekday?: number;
37852
+ };
37853
+ Relationships: [];
37854
+ };
37855
+ logistics_pick_data_requests: {
37856
+ Row: {
37857
+ actions: import("../integrations/supabase/types").Json;
37858
+ created_at: string;
37859
+ event_id: string | null;
37860
+ finished_at: string | null;
37861
+ id: string;
37862
+ missing: import("../integrations/supabase/types").Json;
37863
+ order_ref: string;
37864
+ reason: string | null;
37865
+ result: import("../integrations/supabase/types").Json | null;
37866
+ status: string;
37867
+ unit_ref: string | null;
37868
+ };
37869
+ Insert: {
37870
+ actions?: import("../integrations/supabase/types").Json;
37871
+ created_at?: string;
37872
+ event_id?: string | null;
37873
+ finished_at?: string | null;
37874
+ id?: string;
37875
+ missing?: import("../integrations/supabase/types").Json;
37876
+ order_ref: string;
37877
+ reason?: string | null;
37878
+ result?: import("../integrations/supabase/types").Json | null;
37879
+ status?: string;
37880
+ unit_ref?: string | null;
37881
+ };
37882
+ Update: {
37883
+ actions?: import("../integrations/supabase/types").Json;
37884
+ created_at?: string;
37885
+ event_id?: string | null;
37886
+ finished_at?: string | null;
37887
+ id?: string;
37888
+ missing?: import("../integrations/supabase/types").Json;
37889
+ order_ref?: string;
37890
+ reason?: string | null;
37891
+ result?: import("../integrations/supabase/types").Json | null;
37892
+ status?: string;
37893
+ unit_ref?: string | null;
37894
+ };
37895
+ Relationships: [];
37896
+ };
36400
37897
  logistics_pickup_moments: {
36401
37898
  Row: {
36402
37899
  carrier_ref: string | null;
@@ -36856,6 +38353,69 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36856
38353
  };
36857
38354
  Relationships: [];
36858
38355
  };
38356
+ logistics_slip_shipping_note: {
38357
+ Row: {
38358
+ attempts: number;
38359
+ batch_key: string | null;
38360
+ cart_id: string | null;
38361
+ created_at: string;
38362
+ error: string | null;
38363
+ error_code: string | null;
38364
+ fulfillment_order_id: string | null;
38365
+ id: string;
38366
+ locked_until: string | null;
38367
+ next_attempt_at: string | null;
38368
+ order_id: string | null;
38369
+ order_number: string | null;
38370
+ print_job_id: string | null;
38371
+ printer_id: string | null;
38372
+ retry_class: string | null;
38373
+ slip_job_id: string;
38374
+ status: string;
38375
+ updated_at: string;
38376
+ };
38377
+ Insert: {
38378
+ attempts?: number;
38379
+ batch_key?: string | null;
38380
+ cart_id?: string | null;
38381
+ created_at?: string;
38382
+ error?: string | null;
38383
+ error_code?: string | null;
38384
+ fulfillment_order_id?: string | null;
38385
+ id?: string;
38386
+ locked_until?: string | null;
38387
+ next_attempt_at?: string | null;
38388
+ order_id?: string | null;
38389
+ order_number?: string | null;
38390
+ print_job_id?: string | null;
38391
+ printer_id?: string | null;
38392
+ retry_class?: string | null;
38393
+ slip_job_id: string;
38394
+ status?: string;
38395
+ updated_at?: string;
38396
+ };
38397
+ Update: {
38398
+ attempts?: number;
38399
+ batch_key?: string | null;
38400
+ cart_id?: string | null;
38401
+ created_at?: string;
38402
+ error?: string | null;
38403
+ error_code?: string | null;
38404
+ fulfillment_order_id?: string | null;
38405
+ id?: string;
38406
+ locked_until?: string | null;
38407
+ next_attempt_at?: string | null;
38408
+ order_id?: string | null;
38409
+ order_number?: string | null;
38410
+ print_job_id?: string | null;
38411
+ printer_id?: string | null;
38412
+ retry_class?: string | null;
38413
+ slip_job_id?: string;
38414
+ status?: string;
38415
+ updated_at?: string;
38416
+ };
38417
+ Relationships: [];
38418
+ };
36859
38419
  logistics_staff_planning: {
36860
38420
  Row: {
36861
38421
  created_at: string;
@@ -37189,6 +38749,129 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
37189
38749
  };
37190
38750
  Relationships: [];
37191
38751
  };
38752
+ logistics_time_settings: {
38753
+ Row: {
38754
+ id: boolean;
38755
+ timezone: string;
38756
+ updated_at: string;
38757
+ };
38758
+ Insert: {
38759
+ id?: boolean;
38760
+ timezone: string;
38761
+ updated_at?: string;
38762
+ };
38763
+ Update: {
38764
+ id?: boolean;
38765
+ timezone?: string;
38766
+ updated_at?: string;
38767
+ };
38768
+ Relationships: [];
38769
+ };
38770
+ logistics_trace_events: {
38771
+ Row: {
38772
+ actor: string | null;
38773
+ attempts: number;
38774
+ cart_ref: string | null;
38775
+ created_at: string;
38776
+ db_action: string | null;
38777
+ db_new: import("../integrations/supabase/types").Json | null;
38778
+ db_old: import("../integrations/supabase/types").Json | null;
38779
+ db_record: string | null;
38780
+ db_table: string | null;
38781
+ decision: string | null;
38782
+ duration_ms: number | null;
38783
+ error: string | null;
38784
+ external_action: string | null;
38785
+ external_ref: string | null;
38786
+ external_response: import("../integrations/supabase/types").Json | null;
38787
+ external_status: string | null;
38788
+ external_system: string | null;
38789
+ id: string;
38790
+ input: import("../integrations/supabase/types").Json | null;
38791
+ next_attempt_at: string | null;
38792
+ order_ref: string | null;
38793
+ order_source: string | null;
38794
+ output: import("../integrations/supabase/types").Json | null;
38795
+ phase: string;
38796
+ reads: import("../integrations/supabase/types").Json | null;
38797
+ reason: string | null;
38798
+ rule: string | null;
38799
+ slip_ref: string | null;
38800
+ status: string;
38801
+ step: string;
38802
+ trace_id: string;
38803
+ values_used: import("../integrations/supabase/types").Json | null;
38804
+ };
38805
+ Insert: {
38806
+ actor?: string | null;
38807
+ attempts?: number;
38808
+ cart_ref?: string | null;
38809
+ created_at?: string;
38810
+ db_action?: string | null;
38811
+ db_new?: import("../integrations/supabase/types").Json | null;
38812
+ db_old?: import("../integrations/supabase/types").Json | null;
38813
+ db_record?: string | null;
38814
+ db_table?: string | null;
38815
+ decision?: string | null;
38816
+ duration_ms?: number | null;
38817
+ error?: string | null;
38818
+ external_action?: string | null;
38819
+ external_ref?: string | null;
38820
+ external_response?: import("../integrations/supabase/types").Json | null;
38821
+ external_status?: string | null;
38822
+ external_system?: string | null;
38823
+ id?: string;
38824
+ input?: import("../integrations/supabase/types").Json | null;
38825
+ next_attempt_at?: string | null;
38826
+ order_ref?: string | null;
38827
+ order_source?: string | null;
38828
+ output?: import("../integrations/supabase/types").Json | null;
38829
+ phase: string;
38830
+ reads?: import("../integrations/supabase/types").Json | null;
38831
+ reason?: string | null;
38832
+ rule?: string | null;
38833
+ slip_ref?: string | null;
38834
+ status: string;
38835
+ step: string;
38836
+ trace_id?: string;
38837
+ values_used?: import("../integrations/supabase/types").Json | null;
38838
+ };
38839
+ Update: {
38840
+ actor?: string | null;
38841
+ attempts?: number;
38842
+ cart_ref?: string | null;
38843
+ created_at?: string;
38844
+ db_action?: string | null;
38845
+ db_new?: import("../integrations/supabase/types").Json | null;
38846
+ db_old?: import("../integrations/supabase/types").Json | null;
38847
+ db_record?: string | null;
38848
+ db_table?: string | null;
38849
+ decision?: string | null;
38850
+ duration_ms?: number | null;
38851
+ error?: string | null;
38852
+ external_action?: string | null;
38853
+ external_ref?: string | null;
38854
+ external_response?: import("../integrations/supabase/types").Json | null;
38855
+ external_status?: string | null;
38856
+ external_system?: string | null;
38857
+ id?: string;
38858
+ input?: import("../integrations/supabase/types").Json | null;
38859
+ next_attempt_at?: string | null;
38860
+ order_ref?: string | null;
38861
+ order_source?: string | null;
38862
+ output?: import("../integrations/supabase/types").Json | null;
38863
+ phase?: string;
38864
+ reads?: import("../integrations/supabase/types").Json | null;
38865
+ reason?: string | null;
38866
+ rule?: string | null;
38867
+ slip_ref?: string | null;
38868
+ status?: string;
38869
+ step?: string;
38870
+ trace_id?: string;
38871
+ values_used?: import("../integrations/supabase/types").Json | null;
38872
+ };
38873
+ Relationships: [];
38874
+ };
37192
38875
  logistics_variables: {
37193
38876
  Row: {
37194
38877
  created_at: string;
@@ -39579,6 +41262,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
39579
41262
  customer_name: string;
39580
41263
  deleted_at: string | null;
39581
41264
  delivery_date: string | null;
41265
+ floriday_order_group_key: string | null;
39582
41266
  floriday_sales_order_id: string | null;
39583
41267
  id: string;
39584
41268
  invoice_due_at: string | null;
@@ -39606,6 +41290,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
39606
41290
  customer_name?: string;
39607
41291
  deleted_at?: string | null;
39608
41292
  delivery_date?: string | null;
41293
+ floriday_order_group_key?: string | null;
39609
41294
  floriday_sales_order_id?: string | null;
39610
41295
  id?: string;
39611
41296
  invoice_due_at?: string | null;
@@ -39633,6 +41318,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
39633
41318
  customer_name?: string;
39634
41319
  deleted_at?: string | null;
39635
41320
  delivery_date?: string | null;
41321
+ floriday_order_group_key?: string | null;
39636
41322
  floriday_sales_order_id?: string | null;
39637
41323
  id?: string;
39638
41324
  invoice_due_at?: string | null;
@@ -45496,6 +47182,36 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45496
47182
  referencedColumns: ["id"];
45497
47183
  }];
45498
47184
  };
47185
+ voorraad_buffer_state: {
47186
+ Row: {
47187
+ buffer_id: string;
47188
+ buffer_key: string | null;
47189
+ closed_at: string | null;
47190
+ created_at: string;
47191
+ detached_orders: import("../integrations/supabase/types").Json;
47192
+ reason: string | null;
47193
+ updated_at: string;
47194
+ };
47195
+ Insert: {
47196
+ buffer_id: string;
47197
+ buffer_key?: string | null;
47198
+ closed_at?: string | null;
47199
+ created_at?: string;
47200
+ detached_orders?: import("../integrations/supabase/types").Json;
47201
+ reason?: string | null;
47202
+ updated_at?: string;
47203
+ };
47204
+ Update: {
47205
+ buffer_id?: string;
47206
+ buffer_key?: string | null;
47207
+ closed_at?: string | null;
47208
+ created_at?: string;
47209
+ detached_orders?: import("../integrations/supabase/types").Json;
47210
+ reason?: string | null;
47211
+ updated_at?: string;
47212
+ };
47213
+ Relationships: [];
47214
+ };
45499
47215
  voorraad_custom_fields: {
45500
47216
  Row: {
45501
47217
  created_at: string;
@@ -45538,6 +47254,36 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45538
47254
  };
45539
47255
  Relationships: [];
45540
47256
  };
47257
+ voorraad_logistics_event_log: {
47258
+ Row: {
47259
+ created_at: string;
47260
+ event_id: string;
47261
+ event_type: string;
47262
+ order_ref: string | null;
47263
+ processed_at: string;
47264
+ result: import("../integrations/supabase/types").Json;
47265
+ updated_at: string;
47266
+ };
47267
+ Insert: {
47268
+ created_at?: string;
47269
+ event_id: string;
47270
+ event_type: string;
47271
+ order_ref?: string | null;
47272
+ processed_at?: string;
47273
+ result?: import("../integrations/supabase/types").Json;
47274
+ updated_at?: string;
47275
+ };
47276
+ Update: {
47277
+ created_at?: string;
47278
+ event_id?: string;
47279
+ event_type?: string;
47280
+ order_ref?: string | null;
47281
+ processed_at?: string;
47282
+ result?: import("../integrations/supabase/types").Json;
47283
+ updated_at?: string;
47284
+ };
47285
+ Relationships: [];
47286
+ };
45541
47287
  voorraad_media_upload_failures: {
45542
47288
  Row: {
45543
47289
  action: string;
@@ -47698,6 +49444,15 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
47698
49444
  Args: never;
47699
49445
  Returns: boolean;
47700
49446
  };
49447
+ cancel_open_print_jobs: {
49448
+ Args: {
49449
+ _cutoff: string;
49450
+ };
49451
+ Returns: {
49452
+ extern_job_id: string;
49453
+ id: string;
49454
+ }[];
49455
+ };
47701
49456
  check_offer_product_available_stock: {
47702
49457
  Args: {
47703
49458
  p_campaign_product_id: string;
@@ -49236,6 +50991,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49236
50991
  };
49237
50992
  Returns: string;
49238
50993
  };
50994
+ logistics_cart_checkin_at: {
50995
+ Args: {
50996
+ p_cart_id: string;
50997
+ };
50998
+ Returns: string;
50999
+ };
49239
51000
  logistics_cart_handled: {
49240
51001
  Args: {
49241
51002
  p_cart_index: number;
@@ -49269,10 +51030,22 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49269
51030
  task_status: string;
49270
51031
  }[];
49271
51032
  };
51033
+ logistics_cart_is_full: {
51034
+ Args: {
51035
+ p_cart_id: string;
51036
+ };
51037
+ Returns: boolean;
51038
+ };
49272
51039
  logistics_cart_layout_method: {
49273
51040
  Args: never;
49274
51041
  Returns: import("../integrations/supabase/types").Json;
49275
51042
  };
51043
+ logistics_cart_order_refs: {
51044
+ Args: {
51045
+ p_cart_id: string;
51046
+ };
51047
+ Returns: string[];
51048
+ };
49276
51049
  logistics_cart_plan_overview: {
49277
51050
  Args: {
49278
51051
  p_days?: number;
@@ -49292,6 +51065,24 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49292
51065
  };
49293
51066
  Returns: import("../integrations/supabase/types").Json;
49294
51067
  };
51068
+ logistics_cart_plan_status_core: {
51069
+ Args: {
51070
+ p_ref: string;
51071
+ };
51072
+ Returns: import("../integrations/supabase/types").Json;
51073
+ };
51074
+ logistics_cart_release_reason: {
51075
+ Args: {
51076
+ p_cart_id: string;
51077
+ };
51078
+ Returns: string;
51079
+ };
51080
+ logistics_cart_released: {
51081
+ Args: {
51082
+ p_cart_id: string;
51083
+ };
51084
+ Returns: boolean;
51085
+ };
49295
51086
  logistics_cart_seq: {
49296
51087
  Args: {
49297
51088
  p_order_uuid?: string;
@@ -49342,6 +51133,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49342
51133
  unit_ref: string;
49343
51134
  }[];
49344
51135
  };
51136
+ logistics_carts_per_print: {
51137
+ Args: never;
51138
+ Returns: number;
51139
+ };
49345
51140
  logistics_check_order_allowed: {
49346
51141
  Args: {
49347
51142
  p_lines: import("../integrations/supabase/types").Json;
@@ -49445,6 +51240,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49445
51240
  isSetofReturn: false;
49446
51241
  };
49447
51242
  };
51243
+ logistics_cleanup_orphan_print_jobs: {
51244
+ Args: never;
51245
+ Returns: import("../integrations/supabase/types").Json;
51246
+ };
49448
51247
  logistics_complete_task: {
49449
51248
  Args: {
49450
51249
  p_result?: import("../integrations/supabase/types").Json;
@@ -49507,6 +51306,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49507
51306
  station_carts: number;
49508
51307
  }[];
49509
51308
  };
51309
+ logistics_control_complete_cart: {
51310
+ Args: {
51311
+ p_cart_id: string;
51312
+ };
51313
+ Returns: number;
51314
+ };
49510
51315
  logistics_control_scan_approve: {
49511
51316
  Args: {
49512
51317
  p_allow_reprint?: boolean;
@@ -49586,6 +51391,15 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49586
51391
  Args: never;
49587
51392
  Returns: import("../integrations/supabase/types").Json;
49588
51393
  };
51394
+ logistics_day_windows: {
51395
+ Args: {
51396
+ p_day: string;
51397
+ };
51398
+ Returns: {
51399
+ win_end: string;
51400
+ win_start: string;
51401
+ }[];
51402
+ };
49589
51403
  logistics_delay_customer_email: {
49590
51404
  Args: {
49591
51405
  p_customer: string;
@@ -49653,6 +51467,17 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49653
51467
  };
49654
51468
  Returns: import("../integrations/supabase/types").Json;
49655
51469
  };
51470
+ logistics_enqueue_shipping_note_with_slip: {
51471
+ Args: {
51472
+ _cart_id: string;
51473
+ _is_herprint: boolean;
51474
+ _printer_id: string;
51475
+ _queue_item_id: string;
51476
+ _session_id: string;
51477
+ _slip_job_id: string;
51478
+ };
51479
+ Returns: string;
51480
+ };
49656
51481
  logistics_enqueue_sticker_with_slip: {
49657
51482
  Args: {
49658
51483
  _cart_id: string;
@@ -49670,6 +51495,20 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49670
51495
  };
49671
51496
  Returns: string;
49672
51497
  };
51498
+ logistics_ensure_pick_data: {
51499
+ Args: {
51500
+ p_event_id?: string;
51501
+ p_missing?: import("../integrations/supabase/types").Json;
51502
+ p_ref: string;
51503
+ };
51504
+ Returns: import("../integrations/supabase/types").Json;
51505
+ };
51506
+ logistics_ensure_shipping_notes: {
51507
+ Args: {
51508
+ p_limit?: number;
51509
+ };
51510
+ Returns: import("../integrations/supabase/types").Json;
51511
+ };
49673
51512
  logistics_fail_task: {
49674
51513
  Args: {
49675
51514
  p_error: string;
@@ -49715,6 +51554,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49715
51554
  isSetofReturn: false;
49716
51555
  };
49717
51556
  };
51557
+ logistics_fix_wrong_shipping_notes: {
51558
+ Args: never;
51559
+ Returns: import("../integrations/supabase/types").Json;
51560
+ };
49718
51561
  logistics_floriday_cart_plan: {
49719
51562
  Args: {
49720
51563
  p_order_id: string;
@@ -49742,6 +51585,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49742
51585
  revision: number;
49743
51586
  }[];
49744
51587
  };
51588
+ logistics_floriday_delivery_note_create_enabled: {
51589
+ Args: never;
51590
+ Returns: boolean;
51591
+ };
49745
51592
  logistics_floriday_finish_push: {
49746
51593
  Args: {
49747
51594
  _error?: string;
@@ -49791,6 +51638,32 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49791
51638
  };
49792
51639
  Returns: string;
49793
51640
  };
51641
+ logistics_floriday_gate_status: {
51642
+ Args: never;
51643
+ Returns: import("../integrations/supabase/types").Json;
51644
+ };
51645
+ logistics_floriday_log_refusal: {
51646
+ Args: {
51647
+ _action?: string;
51648
+ _module?: string;
51649
+ _order_ref: string;
51650
+ _reason: string;
51651
+ _shell?: string;
51652
+ };
51653
+ Returns: undefined;
51654
+ };
51655
+ logistics_floriday_log_send: {
51656
+ Args: {
51657
+ _action: string;
51658
+ _detail?: string;
51659
+ _http_status?: number;
51660
+ _module?: string;
51661
+ _ok: boolean;
51662
+ _order_ref: string;
51663
+ _shell?: string;
51664
+ };
51665
+ Returns: undefined;
51666
+ };
49794
51667
  logistics_floriday_order_approved: {
49795
51668
  Args: {
49796
51669
  _order_ref: string;
@@ -49815,6 +51688,16 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49815
51688
  Args: never;
49816
51689
  Returns: boolean;
49817
51690
  };
51691
+ logistics_floriday_stock_updates_enabled: {
51692
+ Args: never;
51693
+ Returns: boolean;
51694
+ };
51695
+ logistics_floriday_write_allowed: {
51696
+ Args: {
51697
+ _action: string;
51698
+ };
51699
+ Returns: boolean;
51700
+ };
49818
51701
  logistics_fulfill_barcode_requests: {
49819
51702
  Args: {
49820
51703
  p_limit?: number;
@@ -49857,6 +51740,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49857
51740
  };
49858
51741
  Returns: number;
49859
51742
  };
51743
+ logistics_merge_partial_carts: {
51744
+ Args: {
51745
+ p_limit?: number;
51746
+ };
51747
+ Returns: import("../integrations/supabase/types").Json;
51748
+ };
49860
51749
  logistics_next_workday_date: {
49861
51750
  Args: {
49862
51751
  p_date: string;
@@ -49883,6 +51772,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49883
51772
  };
49884
51773
  Returns: string;
49885
51774
  };
51775
+ logistics_opening_timezone: {
51776
+ Args: never;
51777
+ Returns: string;
51778
+ };
49886
51779
  logistics_order_cart_count: {
49887
51780
  Args: {
49888
51781
  p_order_ref: string;
@@ -49939,6 +51832,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49939
51832
  };
49940
51833
  Returns: string;
49941
51834
  };
51835
+ logistics_payload_is_floriday: {
51836
+ Args: {
51837
+ _payload: import("../integrations/supabase/types").Json;
51838
+ };
51839
+ Returns: boolean;
51840
+ };
49942
51841
  logistics_pick_agenda: {
49943
51842
  Args: {
49944
51843
  p_from?: string;
@@ -49967,6 +51866,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
49967
51866
  Args: never;
49968
51867
  Returns: import("../integrations/supabase/types").Json;
49969
51868
  };
51869
+ logistics_pick_partial_mode: {
51870
+ Args: never;
51871
+ Returns: string;
51872
+ };
49970
51873
  logistics_pick_start_estimate: {
49971
51874
  Args: {
49972
51875
  p_order: import("../integrations/supabase/types").Json;
@@ -50057,6 +51960,20 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50057
51960
  Args: never;
50058
51961
  Returns: undefined;
50059
51962
  };
51963
+ logistics_plan_progress: {
51964
+ Args: {
51965
+ p_refs: string[];
51966
+ };
51967
+ Returns: {
51968
+ cart_plan_ready: boolean;
51969
+ cart_plan_reason: string;
51970
+ cart_plan_released: boolean;
51971
+ plan_progress: number;
51972
+ plan_state: string;
51973
+ plan_state_since: string;
51974
+ unit_ref: string;
51975
+ }[];
51976
+ };
50060
51977
  logistics_plan_prune: {
50061
51978
  Args: never;
50062
51979
  Returns: number;
@@ -50078,6 +51995,18 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50078
51995
  };
50079
51996
  Returns: number;
50080
51997
  };
51998
+ logistics_plan_state_for: {
51999
+ Args: {
52000
+ p_ref: string;
52001
+ };
52002
+ Returns: import("../integrations/supabase/types").Json;
52003
+ };
52004
+ logistics_prepare_pick_documents: {
52005
+ Args: {
52006
+ p_limit?: number;
52007
+ };
52008
+ Returns: import("../integrations/supabase/types").Json;
52009
+ };
50081
52010
  logistics_prune_buffer_member_queue: {
50082
52011
  Args: never;
50083
52012
  Returns: number;
@@ -50118,18 +52047,36 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50118
52047
  Args: never;
50119
52048
  Returns: import("../integrations/supabase/types").Json;
50120
52049
  };
52050
+ logistics_refresh_pick_queue_status: {
52051
+ Args: {
52052
+ p_ref: string;
52053
+ };
52054
+ Returns: number;
52055
+ };
50121
52056
  logistics_refresh_pickup_moments: {
50122
52057
  Args: {
50123
52058
  p_weeks?: number;
50124
52059
  };
50125
52060
  Returns: import("../integrations/supabase/types").Json;
50126
52061
  };
52062
+ logistics_refresh_plan_state: {
52063
+ Args: {
52064
+ p_limit?: number;
52065
+ };
52066
+ Returns: import("../integrations/supabase/types").Json;
52067
+ };
50127
52068
  logistics_replan_all: {
50128
52069
  Args: {
50129
52070
  p_reason?: string;
50130
52071
  };
50131
52072
  Returns: import("../integrations/supabase/types").Json;
50132
52073
  };
52074
+ logistics_replan_all_force: {
52075
+ Args: {
52076
+ p_reason?: string;
52077
+ };
52078
+ Returns: import("../integrations/supabase/types").Json;
52079
+ };
50133
52080
  logistics_report_delay: {
50134
52081
  Args: {
50135
52082
  p_expected_date?: string;
@@ -50274,6 +52221,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50274
52221
  };
50275
52222
  Returns: string;
50276
52223
  };
52224
+ logistics_shipping_note_follows_slip: {
52225
+ Args: never;
52226
+ Returns: boolean;
52227
+ };
50277
52228
  logistics_shipping_note_from_barcode: {
50278
52229
  Args: {
50279
52230
  p_allow_reprint?: boolean;
@@ -50282,10 +52233,86 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50282
52233
  };
50283
52234
  Returns: import("../integrations/supabase/types").Json;
50284
52235
  };
52236
+ logistics_shipping_note_job_for_slip: {
52237
+ Args: {
52238
+ _slip_job_id: string;
52239
+ };
52240
+ Returns: string;
52241
+ };
52242
+ logistics_shipping_notes_wake_all: {
52243
+ Args: never;
52244
+ Returns: import("../integrations/supabase/types").Json;
52245
+ };
52246
+ logistics_slip_is_floriday: {
52247
+ Args: {
52248
+ _slip_job_id: string;
52249
+ };
52250
+ Returns: boolean;
52251
+ };
52252
+ logistics_slip_note_claim: {
52253
+ Args: {
52254
+ _lease_seconds?: number;
52255
+ _limit?: number;
52256
+ };
52257
+ Returns: {
52258
+ attempts: number;
52259
+ batch_key: string | null;
52260
+ cart_id: string | null;
52261
+ created_at: string;
52262
+ error: string | null;
52263
+ error_code: string | null;
52264
+ fulfillment_order_id: string | null;
52265
+ id: string;
52266
+ locked_until: string | null;
52267
+ next_attempt_at: string | null;
52268
+ order_id: string | null;
52269
+ order_number: string | null;
52270
+ print_job_id: string | null;
52271
+ printer_id: string | null;
52272
+ retry_class: string | null;
52273
+ slip_job_id: string;
52274
+ status: string;
52275
+ updated_at: string;
52276
+ }[];
52277
+ SetofOptions: {
52278
+ from: "*";
52279
+ to: "logistics_slip_shipping_note";
52280
+ isOneToOne: false;
52281
+ isSetofReturn: true;
52282
+ };
52283
+ };
52284
+ logistics_slip_note_finish: {
52285
+ Args: {
52286
+ _error?: string;
52287
+ _error_code?: string;
52288
+ _fulfillment_order_id?: string;
52289
+ _id: string;
52290
+ _ok: boolean;
52291
+ _print_job_id?: string;
52292
+ _status?: string;
52293
+ };
52294
+ Returns: undefined;
52295
+ };
52296
+ logistics_slip_note_keep_waiting: {
52297
+ Args: {
52298
+ _class?: string;
52299
+ _id: string;
52300
+ _reason: string;
52301
+ };
52302
+ Returns: undefined;
52303
+ };
50285
52304
  logistics_sticker_follows_slip: {
50286
52305
  Args: never;
50287
52306
  Returns: boolean;
50288
52307
  };
52308
+ logistics_subtract_working_minutes: {
52309
+ Args: {
52310
+ p_deadline: string;
52311
+ p_max_workdays?: number;
52312
+ p_minutes: number;
52313
+ };
52314
+ Returns: import("../integrations/supabase/types").Json;
52315
+ };
50289
52316
  logistics_supersede_stale_tasks: {
50290
52317
  Args: {
50291
52318
  p_keep: string[];
@@ -50322,6 +52349,46 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50322
52349
  Args: never;
50323
52350
  Returns: string;
50324
52351
  };
52352
+ logistics_timezone_options: {
52353
+ Args: never;
52354
+ Returns: {
52355
+ name: string;
52356
+ }[];
52357
+ };
52358
+ logistics_trace: {
52359
+ Args: {
52360
+ p: import("../integrations/supabase/types").Json;
52361
+ };
52362
+ Returns: string;
52363
+ };
52364
+ logistics_trace_batch: {
52365
+ Args: {
52366
+ p: import("../integrations/supabase/types").Json;
52367
+ };
52368
+ Returns: number;
52369
+ };
52370
+ logistics_trace_orders: {
52371
+ Args: {
52372
+ p_limit?: number;
52373
+ p_search?: string;
52374
+ p_since?: string;
52375
+ p_status?: string;
52376
+ };
52377
+ Returns: import("../integrations/supabase/types").Json;
52378
+ };
52379
+ logistics_trace_redact: {
52380
+ Args: {
52381
+ p: import("../integrations/supabase/types").Json;
52382
+ };
52383
+ Returns: import("../integrations/supabase/types").Json;
52384
+ };
52385
+ logistics_trace_timeline: {
52386
+ Args: {
52387
+ p_limit?: number;
52388
+ p_order_ref: string;
52389
+ };
52390
+ Returns: import("../integrations/supabase/types").Json;
52391
+ };
50325
52392
  logistics_upsert_task: {
50326
52393
  Args: {
50327
52394
  p_buffer_ref: string;
@@ -50341,6 +52408,16 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
50341
52408
  };
50342
52409
  Returns: string;
50343
52410
  };
52411
+ logistics_valid_timezone: {
52412
+ Args: {
52413
+ _tz: string;
52414
+ };
52415
+ Returns: boolean;
52416
+ };
52417
+ logistics_working_hours_status: {
52418
+ Args: never;
52419
+ Returns: import("../integrations/supabase/types").Json;
52420
+ };
50344
52421
  logistics_write_buffer_layer_positions: {
50345
52422
  Args: {
50346
52423
  p_buffer_id: string;
@@ -51353,6 +53430,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
51353
53430
  };
51354
53431
  Returns: undefined;
51355
53432
  };
53433
+ prune_floriday_api_log: {
53434
+ Args: never;
53435
+ Returns: number;
53436
+ };
51356
53437
  quote_create_from_source: {
51357
53438
  Args: {
51358
53439
  _payload?: import("../integrations/supabase/types").Json;
@@ -51786,6 +53867,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
51786
53867
  };
51787
53868
  Returns: number;
51788
53869
  };
53870
+ schedule_floriday_catalog_prices_sync: {
53871
+ Args: {
53872
+ p_apikey: string;
53873
+ p_url: string;
53874
+ };
53875
+ Returns: number;
53876
+ };
51789
53877
  schedule_floriday_clock_presales_sync: {
51790
53878
  Args: {
51791
53879
  p_apikey: string;
@@ -52086,6 +54174,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
52086
54174
  };
52087
54175
  Returns: undefined;
52088
54176
  };
54177
+ sync_floriday_prices_into_price_groups: {
54178
+ Args: never;
54179
+ Returns: number;
54180
+ };
52089
54181
  sync_layer_stock: {
52090
54182
  Args: {
52091
54183
  p_product_id: string;
@@ -52218,6 +54310,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
52218
54310
  Args: never;
52219
54311
  Returns: string;
52220
54312
  };
54313
+ voorraad_cleanup_old_rows: {
54314
+ Args: never;
54315
+ Returns: import("../integrations/supabase/types").Json;
54316
+ };
52221
54317
  wake_print_queue: {
52222
54318
  Args: {
52223
54319
  _min_interval_ms?: number;
@@ -52371,7 +54467,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
52371
54467
  last_synced_at?: string | null;
52372
54468
  provider: string;
52373
54469
  selected_calendars?: import("../integrations/supabase/types").Json;
52374
- status?: string;
54470
+ status
54471
+ /** Haalt alle orders van dezelfde buffer als de gegeven order. */
54472
+ ?: string;
52375
54473
  sync_mode?: string;
52376
54474
  updated_at?: string;
52377
54475
  user_id: string;
@@ -54518,6 +56616,45 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
54518
56616
  };
54519
56617
  Relationships: [];
54520
56618
  };
56619
+ customer_product_stickers: {
56620
+ Row: {
56621
+ created_at: string;
56622
+ customer_key: string;
56623
+ file_name: string;
56624
+ file_path: string;
56625
+ file_size: number | null;
56626
+ id: string;
56627
+ mime_type: string | null;
56628
+ trade_item_key: string;
56629
+ updated_at: string;
56630
+ uploaded_by: string | null;
56631
+ };
56632
+ Insert: {
56633
+ created_at?: string;
56634
+ customer_key: string;
56635
+ file_name: string;
56636
+ file_path: string;
56637
+ file_size?: number | null;
56638
+ id?: string;
56639
+ mime_type?: string | null;
56640
+ trade_item_key: string;
56641
+ updated_at?: string;
56642
+ uploaded_by?: string | null;
56643
+ };
56644
+ Update: {
56645
+ created_at?: string;
56646
+ customer_key?: string;
56647
+ file_name?: string;
56648
+ file_path?: string;
56649
+ file_size?: number | null;
56650
+ id?: string;
56651
+ mime_type?: string | null;
56652
+ trade_item_key?: string;
56653
+ updated_at?: string;
56654
+ uploaded_by?: string | null;
56655
+ };
56656
+ Relationships: [];
56657
+ };
54521
56658
  customer_selected_assortment: {
54522
56659
  Row: {
54523
56660
  article_number: string | null;
@@ -54566,6 +56703,30 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
54566
56703
  referencedColumns: ["id"];
54567
56704
  }];
54568
56705
  };
56706
+ customer_sticker_settings: {
56707
+ Row: {
56708
+ created_at: string;
56709
+ customer_key: string;
56710
+ height_mm: number;
56711
+ updated_at: string;
56712
+ width_mm: number;
56713
+ };
56714
+ Insert: {
56715
+ created_at?: string;
56716
+ customer_key: string;
56717
+ height_mm?: number;
56718
+ updated_at?: string;
56719
+ width_mm?: number;
56720
+ };
56721
+ Update: {
56722
+ created_at?: string;
56723
+ customer_key?: string;
56724
+ height_mm?: number;
56725
+ updated_at?: string;
56726
+ width_mm?: number;
56727
+ };
56728
+ Relationships: [];
56729
+ };
54569
56730
  customer_trade_settings: {
54570
56731
  Row: {
54571
56732
  category: string;
@@ -57896,6 +60057,102 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57896
60057
  referencedColumns: ["id"];
57897
60058
  }];
57898
60059
  };
60060
+ floriday_api_log: {
60061
+ Row: {
60062
+ action: string | null;
60063
+ caller: string | null;
60064
+ connection_id: string | null;
60065
+ created_at: string;
60066
+ cursor_from: number | null;
60067
+ direction: string;
60068
+ duration_ms: number | null;
60069
+ environment: string | null;
60070
+ error: string | null;
60071
+ floriday_id: string | null;
60072
+ floriday_reference: string | null;
60073
+ http_status: number;
60074
+ id: string;
60075
+ item_count: number | null;
60076
+ kind: string | null;
60077
+ local_id: string | null;
60078
+ local_reference: string | null;
60079
+ method: string;
60080
+ module: string | null;
60081
+ ok: boolean;
60082
+ path: string;
60083
+ request: import("../integrations/supabase/types").Json | null;
60084
+ resource_type: string | null;
60085
+ response: import("../integrations/supabase/types").Json | null;
60086
+ write_log_id: string | null;
60087
+ };
60088
+ Insert: {
60089
+ action?: string | null;
60090
+ caller?: string | null;
60091
+ connection_id?: string | null;
60092
+ created_at?: string;
60093
+ cursor_from?: number | null;
60094
+ direction: string;
60095
+ duration_ms?: number | null;
60096
+ environment?: string | null;
60097
+ error?: string | null;
60098
+ floriday_id?: string | null;
60099
+ floriday_reference?: string | null;
60100
+ http_status?: number;
60101
+ id?: string;
60102
+ item_count?: number | null;
60103
+ kind?: string | null;
60104
+ local_id?: string | null;
60105
+ local_reference?: string | null;
60106
+ method: string;
60107
+ module?: string | null;
60108
+ ok?: boolean;
60109
+ path: string;
60110
+ request?: import("../integrations/supabase/types").Json | null;
60111
+ resource_type?: string | null;
60112
+ response?: import("../integrations/supabase/types").Json | null;
60113
+ write_log_id?: string | null;
60114
+ };
60115
+ Update: {
60116
+ action?: string | null;
60117
+ caller?: string | null;
60118
+ connection_id?: string | null;
60119
+ created_at?: string;
60120
+ cursor_from?: number | null;
60121
+ direction?: string;
60122
+ duration_ms?: number | null;
60123
+ environment?: string | null;
60124
+ error?: string | null;
60125
+ floriday_id?: string | null;
60126
+ floriday_reference?: string | null;
60127
+ http_status?: number;
60128
+ id?: string;
60129
+ item_count?: number | null;
60130
+ kind?: string | null;
60131
+ local_id?: string | null;
60132
+ local_reference?: string | null;
60133
+ method?: string;
60134
+ module?: string | null;
60135
+ ok?: boolean;
60136
+ path?: string;
60137
+ request?: import("../integrations/supabase/types").Json | null;
60138
+ resource_type?: string | null;
60139
+ response?: import("../integrations/supabase/types").Json | null;
60140
+ write_log_id?: string | null;
60141
+ };
60142
+ Relationships: [{
60143
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
60144
+ columns: ["connection_id"];
60145
+ isOneToOne: false;
60146
+ referencedRelation: "floriday_connections";
60147
+ referencedColumns: ["id"];
60148
+ }, {
60149
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
60150
+ columns: ["write_log_id"];
60151
+ isOneToOne: false;
60152
+ referencedRelation: "floriday_write_log";
60153
+ referencedColumns: ["id"];
60154
+ }];
60155
+ };
57899
60156
  floriday_auction_letters_cache: {
57900
60157
  Row: {
57901
60158
  auction_letter_code: string;
@@ -58103,6 +60360,84 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
58103
60360
  referencedColumns: ["id"];
58104
60361
  }];
58105
60362
  };
60363
+ floriday_catalog_prices_cache: {
60364
+ Row: {
60365
+ connection_id: string;
60366
+ created_at: string;
60367
+ currency: string;
60368
+ id: string;
60369
+ is_deleted: boolean;
60370
+ price: number | null;
60371
+ price_group_id: string | null;
60372
+ price_group_name: string | null;
60373
+ price_type: string;
60374
+ raw: import("../integrations/supabase/types").Json | null;
60375
+ sales_unit: string | null;
60376
+ sequence_number: number;
60377
+ supplier_article_code: string | null;
60378
+ supply_line_id: string;
60379
+ synced_at: string;
60380
+ trade_item_id: string | null;
60381
+ updated_at: string;
60382
+ valid_from: string | null;
60383
+ valid_to: string | null;
60384
+ week: number | null;
60385
+ year: number | null;
60386
+ };
60387
+ Insert: {
60388
+ connection_id: string;
60389
+ created_at?: string;
60390
+ currency?: string;
60391
+ id?: string;
60392
+ is_deleted?: boolean;
60393
+ price?: number | null;
60394
+ price_group_id?: string | null;
60395
+ price_group_name?: string | null;
60396
+ price_type?: string;
60397
+ raw?: import("../integrations/supabase/types").Json | null;
60398
+ sales_unit?: string | null;
60399
+ sequence_number?: number;
60400
+ supplier_article_code?: string | null;
60401
+ supply_line_id: string;
60402
+ synced_at?: string;
60403
+ trade_item_id?: string | null;
60404
+ updated_at?: string;
60405
+ valid_from?: string | null;
60406
+ valid_to?: string | null;
60407
+ week?: number | null;
60408
+ year?: number | null;
60409
+ };
60410
+ Update: {
60411
+ connection_id?: string;
60412
+ created_at?: string;
60413
+ currency?: string;
60414
+ id?: string;
60415
+ is_deleted?: boolean;
60416
+ price?: number | null;
60417
+ price_group_id?: string | null;
60418
+ price_group_name?: string | null;
60419
+ price_type?: string;
60420
+ raw?: import("../integrations/supabase/types").Json | null;
60421
+ sales_unit?: string | null;
60422
+ sequence_number?: number;
60423
+ supplier_article_code?: string | null;
60424
+ supply_line_id?: string;
60425
+ synced_at?: string;
60426
+ trade_item_id?: string | null;
60427
+ updated_at?: string;
60428
+ valid_from?: string | null;
60429
+ valid_to?: string | null;
60430
+ week?: number | null;
60431
+ year?: number | null;
60432
+ };
60433
+ Relationships: [{
60434
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
60435
+ columns: ["connection_id"];
60436
+ isOneToOne: false;
60437
+ referencedRelation: "floriday_connections";
60438
+ referencedColumns: ["id"];
60439
+ }];
60440
+ };
58106
60441
  floriday_clock_presales_cache: {
58107
60442
  Row: {
58108
60443
  buyer_organization_id: string | null;
@@ -59018,6 +61353,69 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
59018
61353
  referencedColumns: ["id"];
59019
61354
  }];
59020
61355
  };
61356
+ floriday_link_templates: {
61357
+ Row: {
61358
+ created_at: string;
61359
+ floriday_url_template: string | null;
61360
+ is_active: boolean;
61361
+ label: string;
61362
+ local_url_template: string | null;
61363
+ resource_type: string;
61364
+ updated_at: string;
61365
+ };
61366
+ Insert: {
61367
+ created_at?: string;
61368
+ floriday_url_template?: string | null;
61369
+ is_active?: boolean;
61370
+ label: string;
61371
+ local_url_template?: string | null;
61372
+ resource_type: string;
61373
+ updated_at?: string;
61374
+ };
61375
+ Update: {
61376
+ created_at?: string;
61377
+ floriday_url_template?: string | null;
61378
+ is_active?: boolean;
61379
+ label?: string;
61380
+ local_url_template?: string | null;
61381
+ resource_type?: string;
61382
+ updated_at?: string;
61383
+ };
61384
+ Relationships: [];
61385
+ };
61386
+ floriday_log_retention: {
61387
+ Row: {
61388
+ created_at: string;
61389
+ direction: string | null;
61390
+ id: string;
61391
+ keep_failed_days: number | null;
61392
+ keep_ok_days: number | null;
61393
+ note: string | null;
61394
+ resource_type: string | null;
61395
+ updated_at: string;
61396
+ };
61397
+ Insert: {
61398
+ created_at?: string;
61399
+ direction?: string | null;
61400
+ id?: string;
61401
+ keep_failed_days?: number | null;
61402
+ keep_ok_days?: number | null;
61403
+ note?: string | null;
61404
+ resource_type?: string | null;
61405
+ updated_at?: string;
61406
+ };
61407
+ Update: {
61408
+ created_at?: string;
61409
+ direction?: string | null;
61410
+ id?: string;
61411
+ keep_failed_days?: number | null;
61412
+ keep_ok_days?: number | null;
61413
+ note?: string | null;
61414
+ resource_type?: string | null;
61415
+ updated_at?: string;
61416
+ };
61417
+ Relationships: [];
61418
+ };
59021
61419
  floriday_logistic_labels_cache: {
59022
61420
  Row: {
59023
61421
  byte_size: number | null;
@@ -62371,22 +64769,31 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
62371
64769
  };
62372
64770
  logistics_floriday_push_refusals: {
62373
64771
  Row: {
64772
+ action: string | null;
62374
64773
  created_at: string;
62375
64774
  id: string;
62376
64775
  order_ref: string;
62377
64776
  reason: string;
64777
+ source_module: string | null;
64778
+ source_shell: string | null;
62378
64779
  };
62379
64780
  Insert: {
64781
+ action?: string | null;
62380
64782
  created_at?: string;
62381
64783
  id?: string;
62382
64784
  order_ref: string;
62383
64785
  reason: string;
64786
+ source_module?: string | null;
64787
+ source_shell?: string | null;
62384
64788
  };
62385
64789
  Update: {
64790
+ action?: string | null;
62386
64791
  created_at?: string;
62387
64792
  id?: string;
62388
64793
  order_ref?: string;
62389
64794
  reason?: string;
64795
+ source_module?: string | null;
64796
+ source_shell?: string | null;
62390
64797
  };
62391
64798
  Relationships: [];
62392
64799
  };
@@ -62465,6 +64872,42 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
62465
64872
  };
62466
64873
  Relationships: [];
62467
64874
  };
64875
+ logistics_floriday_status_sends: {
64876
+ Row: {
64877
+ action: string;
64878
+ created_at: string;
64879
+ detail: string | null;
64880
+ http_status: number | null;
64881
+ id: string;
64882
+ ok: boolean;
64883
+ order_ref: string;
64884
+ source_module: string | null;
64885
+ source_shell: string | null;
64886
+ };
64887
+ Insert: {
64888
+ action: string;
64889
+ created_at?: string;
64890
+ detail?: string | null;
64891
+ http_status?: number | null;
64892
+ id?: string;
64893
+ ok?: boolean;
64894
+ order_ref: string;
64895
+ source_module?: string | null;
64896
+ source_shell?: string | null;
64897
+ };
64898
+ Update: {
64899
+ action?: string;
64900
+ created_at?: string;
64901
+ detail?: string | null;
64902
+ http_status?: number | null;
64903
+ id?: string;
64904
+ ok?: boolean;
64905
+ order_ref?: string;
64906
+ source_module?: string | null;
64907
+ source_shell?: string | null;
64908
+ };
64909
+ Relationships: [];
64910
+ };
62468
64911
  logistics_formulas: {
62469
64912
  Row: {
62470
64913
  created_at: string;
@@ -62537,6 +64980,108 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
62537
64980
  };
62538
64981
  Relationships: [];
62539
64982
  };
64983
+ logistics_opening_exceptions: {
64984
+ Row: {
64985
+ closes: string | null;
64986
+ created_at: string;
64987
+ day: string;
64988
+ id: string;
64989
+ is_closed: boolean;
64990
+ note: string | null;
64991
+ opens: string | null;
64992
+ };
64993
+ Insert: {
64994
+ closes?: string | null;
64995
+ created_at?: string;
64996
+ day: string;
64997
+ id?: string;
64998
+ is_closed?: boolean;
64999
+ note?: string | null;
65000
+ opens?: string | null;
65001
+ };
65002
+ Update: {
65003
+ closes?: string | null;
65004
+ created_at?: string;
65005
+ day?: string;
65006
+ id?: string;
65007
+ is_closed?: boolean;
65008
+ note?: string | null;
65009
+ opens?: string | null;
65010
+ };
65011
+ Relationships: [];
65012
+ };
65013
+ logistics_opening_hours: {
65014
+ Row: {
65015
+ closes: string;
65016
+ created_at: string;
65017
+ id: string;
65018
+ is_active: boolean;
65019
+ note: string | null;
65020
+ opens: string;
65021
+ weekday: number;
65022
+ };
65023
+ Insert: {
65024
+ closes: string;
65025
+ created_at?: string;
65026
+ id?: string;
65027
+ is_active?: boolean;
65028
+ note?: string | null;
65029
+ opens: string;
65030
+ weekday: number;
65031
+ };
65032
+ Update: {
65033
+ closes?: string;
65034
+ created_at?: string;
65035
+ id?: string;
65036
+ is_active?: boolean;
65037
+ note?: string | null;
65038
+ opens?: string;
65039
+ weekday?: number;
65040
+ };
65041
+ Relationships: [];
65042
+ };
65043
+ logistics_pick_data_requests: {
65044
+ Row: {
65045
+ actions: import("../integrations/supabase/types").Json;
65046
+ created_at: string;
65047
+ event_id: string | null;
65048
+ finished_at: string | null;
65049
+ id: string;
65050
+ missing: import("../integrations/supabase/types").Json;
65051
+ order_ref: string;
65052
+ reason: string | null;
65053
+ result: import("../integrations/supabase/types").Json | null;
65054
+ status: string;
65055
+ unit_ref: string | null;
65056
+ };
65057
+ Insert: {
65058
+ actions?: import("../integrations/supabase/types").Json;
65059
+ created_at?: string;
65060
+ event_id?: string | null;
65061
+ finished_at?: string | null;
65062
+ id?: string;
65063
+ missing?: import("../integrations/supabase/types").Json;
65064
+ order_ref: string;
65065
+ reason?: string | null;
65066
+ result?: import("../integrations/supabase/types").Json | null;
65067
+ status?: string;
65068
+ unit_ref?: string | null;
65069
+ };
65070
+ Update: {
65071
+ actions?: import("../integrations/supabase/types").Json;
65072
+ created_at?: string;
65073
+ event_id?: string | null;
65074
+ finished_at?: string | null;
65075
+ id?: string;
65076
+ missing?: import("../integrations/supabase/types").Json;
65077
+ order_ref?: string;
65078
+ reason?: string | null;
65079
+ result?: import("../integrations/supabase/types").Json | null;
65080
+ status?: string;
65081
+ unit_ref?: string | null;
65082
+ };
65083
+ Relationships: [];
65084
+ };
62540
65085
  logistics_pickup_moments: {
62541
65086
  Row: {
62542
65087
  carrier_ref: string | null;
@@ -62996,6 +65541,69 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
62996
65541
  };
62997
65542
  Relationships: [];
62998
65543
  };
65544
+ logistics_slip_shipping_note: {
65545
+ Row: {
65546
+ attempts: number;
65547
+ batch_key: string | null;
65548
+ cart_id: string | null;
65549
+ created_at: string;
65550
+ error: string | null;
65551
+ error_code: string | null;
65552
+ fulfillment_order_id: string | null;
65553
+ id: string;
65554
+ locked_until: string | null;
65555
+ next_attempt_at: string | null;
65556
+ order_id: string | null;
65557
+ order_number: string | null;
65558
+ print_job_id: string | null;
65559
+ printer_id: string | null;
65560
+ retry_class: string | null;
65561
+ slip_job_id: string;
65562
+ status: string;
65563
+ updated_at: string;
65564
+ };
65565
+ Insert: {
65566
+ attempts?: number;
65567
+ batch_key?: string | null;
65568
+ cart_id?: string | null;
65569
+ created_at?: string;
65570
+ error?: string | null;
65571
+ error_code?: string | null;
65572
+ fulfillment_order_id?: string | null;
65573
+ id?: string;
65574
+ locked_until?: string | null;
65575
+ next_attempt_at?: string | null;
65576
+ order_id?: string | null;
65577
+ order_number?: string | null;
65578
+ print_job_id?: string | null;
65579
+ printer_id?: string | null;
65580
+ retry_class?: string | null;
65581
+ slip_job_id: string;
65582
+ status?: string;
65583
+ updated_at?: string;
65584
+ };
65585
+ Update: {
65586
+ attempts?: number;
65587
+ batch_key?: string | null;
65588
+ cart_id?: string | null;
65589
+ created_at?: string;
65590
+ error?: string | null;
65591
+ error_code?: string | null;
65592
+ fulfillment_order_id?: string | null;
65593
+ id?: string;
65594
+ locked_until?: string | null;
65595
+ next_attempt_at?: string | null;
65596
+ order_id?: string | null;
65597
+ order_number?: string | null;
65598
+ print_job_id?: string | null;
65599
+ printer_id?: string | null;
65600
+ retry_class?: string | null;
65601
+ slip_job_id?: string;
65602
+ status?: string;
65603
+ updated_at?: string;
65604
+ };
65605
+ Relationships: [];
65606
+ };
62999
65607
  logistics_staff_planning: {
63000
65608
  Row: {
63001
65609
  created_at: string;
@@ -63329,6 +65937,129 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
63329
65937
  };
63330
65938
  Relationships: [];
63331
65939
  };
65940
+ logistics_time_settings: {
65941
+ Row: {
65942
+ id: boolean;
65943
+ timezone: string;
65944
+ updated_at: string;
65945
+ };
65946
+ Insert: {
65947
+ id?: boolean;
65948
+ timezone: string;
65949
+ updated_at?: string;
65950
+ };
65951
+ Update: {
65952
+ id?: boolean;
65953
+ timezone?: string;
65954
+ updated_at?: string;
65955
+ };
65956
+ Relationships: [];
65957
+ };
65958
+ logistics_trace_events: {
65959
+ Row: {
65960
+ actor: string | null;
65961
+ attempts: number;
65962
+ cart_ref: string | null;
65963
+ created_at: string;
65964
+ db_action: string | null;
65965
+ db_new: import("../integrations/supabase/types").Json | null;
65966
+ db_old: import("../integrations/supabase/types").Json | null;
65967
+ db_record: string | null;
65968
+ db_table: string | null;
65969
+ decision: string | null;
65970
+ duration_ms: number | null;
65971
+ error: string | null;
65972
+ external_action: string | null;
65973
+ external_ref: string | null;
65974
+ external_response: import("../integrations/supabase/types").Json | null;
65975
+ external_status: string | null;
65976
+ external_system: string | null;
65977
+ id: string;
65978
+ input: import("../integrations/supabase/types").Json | null;
65979
+ next_attempt_at: string | null;
65980
+ order_ref: string | null;
65981
+ order_source: string | null;
65982
+ output: import("../integrations/supabase/types").Json | null;
65983
+ phase: string;
65984
+ reads: import("../integrations/supabase/types").Json | null;
65985
+ reason: string | null;
65986
+ rule: string | null;
65987
+ slip_ref: string | null;
65988
+ status: string;
65989
+ step: string;
65990
+ trace_id: string;
65991
+ values_used: import("../integrations/supabase/types").Json | null;
65992
+ };
65993
+ Insert: {
65994
+ actor?: string | null;
65995
+ attempts?: number;
65996
+ cart_ref?: string | null;
65997
+ created_at?: string;
65998
+ db_action?: string | null;
65999
+ db_new?: import("../integrations/supabase/types").Json | null;
66000
+ db_old?: import("../integrations/supabase/types").Json | null;
66001
+ db_record?: string | null;
66002
+ db_table?: string | null;
66003
+ decision?: string | null;
66004
+ duration_ms?: number | null;
66005
+ error?: string | null;
66006
+ external_action?: string | null;
66007
+ external_ref?: string | null;
66008
+ external_response?: import("../integrations/supabase/types").Json | null;
66009
+ external_status?: string | null;
66010
+ external_system?: string | null;
66011
+ id?: string;
66012
+ input?: import("../integrations/supabase/types").Json | null;
66013
+ next_attempt_at?: string | null;
66014
+ order_ref?: string | null;
66015
+ order_source?: string | null;
66016
+ output?: import("../integrations/supabase/types").Json | null;
66017
+ phase: string;
66018
+ reads?: import("../integrations/supabase/types").Json | null;
66019
+ reason?: string | null;
66020
+ rule?: string | null;
66021
+ slip_ref?: string | null;
66022
+ status: string;
66023
+ step: string;
66024
+ trace_id?: string;
66025
+ values_used?: import("../integrations/supabase/types").Json | null;
66026
+ };
66027
+ Update: {
66028
+ actor?: string | null;
66029
+ attempts?: number;
66030
+ cart_ref?: string | null;
66031
+ created_at?: string;
66032
+ db_action?: string | null;
66033
+ db_new?: import("../integrations/supabase/types").Json | null;
66034
+ db_old?: import("../integrations/supabase/types").Json | null;
66035
+ db_record?: string | null;
66036
+ db_table?: string | null;
66037
+ decision?: string | null;
66038
+ duration_ms?: number | null;
66039
+ error?: string | null;
66040
+ external_action?: string | null;
66041
+ external_ref?: string | null;
66042
+ external_response?: import("../integrations/supabase/types").Json | null;
66043
+ external_status?: string | null;
66044
+ external_system?: string | null;
66045
+ id?: string;
66046
+ input?: import("../integrations/supabase/types").Json | null;
66047
+ next_attempt_at?: string | null;
66048
+ order_ref?: string | null;
66049
+ order_source?: string | null;
66050
+ output?: import("../integrations/supabase/types").Json | null;
66051
+ phase?: string;
66052
+ reads?: import("../integrations/supabase/types").Json | null;
66053
+ reason?: string | null;
66054
+ rule?: string | null;
66055
+ slip_ref?: string | null;
66056
+ status?: string;
66057
+ step?: string;
66058
+ trace_id?: string;
66059
+ values_used?: import("../integrations/supabase/types").Json | null;
66060
+ };
66061
+ Relationships: [];
66062
+ };
63332
66063
  logistics_variables: {
63333
66064
  Row: {
63334
66065
  created_at: string;
@@ -65719,6 +68450,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65719
68450
  customer_name: string;
65720
68451
  deleted_at: string | null;
65721
68452
  delivery_date: string | null;
68453
+ floriday_order_group_key: string | null;
65722
68454
  floriday_sales_order_id: string | null;
65723
68455
  id: string;
65724
68456
  invoice_due_at: string | null;
@@ -65746,6 +68478,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65746
68478
  customer_name?: string;
65747
68479
  deleted_at?: string | null;
65748
68480
  delivery_date?: string | null;
68481
+ floriday_order_group_key?: string | null;
65749
68482
  floriday_sales_order_id?: string | null;
65750
68483
  id?: string;
65751
68484
  invoice_due_at?: string | null;
@@ -65773,6 +68506,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65773
68506
  customer_name?: string;
65774
68507
  deleted_at?: string | null;
65775
68508
  delivery_date?: string | null;
68509
+ floriday_order_group_key?: string | null;
65776
68510
  floriday_sales_order_id?: string | null;
65777
68511
  id?: string;
65778
68512
  invoice_due_at?: string | null;
@@ -71636,6 +74370,36 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
71636
74370
  referencedColumns: ["id"];
71637
74371
  }];
71638
74372
  };
74373
+ voorraad_buffer_state: {
74374
+ Row: {
74375
+ buffer_id: string;
74376
+ buffer_key: string | null;
74377
+ closed_at: string | null;
74378
+ created_at: string;
74379
+ detached_orders: import("../integrations/supabase/types").Json;
74380
+ reason: string | null;
74381
+ updated_at: string;
74382
+ };
74383
+ Insert: {
74384
+ buffer_id: string;
74385
+ buffer_key?: string | null;
74386
+ closed_at?: string | null;
74387
+ created_at?: string;
74388
+ detached_orders?: import("../integrations/supabase/types").Json;
74389
+ reason?: string | null;
74390
+ updated_at?: string;
74391
+ };
74392
+ Update: {
74393
+ buffer_id?: string;
74394
+ buffer_key?: string | null;
74395
+ closed_at?: string | null;
74396
+ created_at?: string;
74397
+ detached_orders?: import("../integrations/supabase/types").Json;
74398
+ reason?: string | null;
74399
+ updated_at?: string;
74400
+ };
74401
+ Relationships: [];
74402
+ };
71639
74403
  voorraad_custom_fields: {
71640
74404
  Row: {
71641
74405
  created_at: string;
@@ -71678,6 +74442,36 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
71678
74442
  };
71679
74443
  Relationships: [];
71680
74444
  };
74445
+ voorraad_logistics_event_log: {
74446
+ Row: {
74447
+ created_at: string;
74448
+ event_id: string;
74449
+ event_type: string;
74450
+ order_ref: string | null;
74451
+ processed_at: string;
74452
+ result: import("../integrations/supabase/types").Json;
74453
+ updated_at: string;
74454
+ };
74455
+ Insert: {
74456
+ created_at?: string;
74457
+ event_id: string;
74458
+ event_type: string;
74459
+ order_ref?: string | null;
74460
+ processed_at?: string;
74461
+ result?: import("../integrations/supabase/types").Json;
74462
+ updated_at?: string;
74463
+ };
74464
+ Update: {
74465
+ created_at?: string;
74466
+ event_id?: string;
74467
+ event_type?: string;
74468
+ order_ref?: string | null;
74469
+ processed_at?: string;
74470
+ result?: import("../integrations/supabase/types").Json;
74471
+ updated_at?: string;
74472
+ };
74473
+ Relationships: [];
74474
+ };
71681
74475
  voorraad_media_upload_failures: {
71682
74476
  Row: {
71683
74477
  action: string;
@@ -73838,6 +76632,15 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
73838
76632
  Args: never;
73839
76633
  Returns: boolean;
73840
76634
  };
76635
+ cancel_open_print_jobs: {
76636
+ Args: {
76637
+ _cutoff: string;
76638
+ };
76639
+ Returns: {
76640
+ extern_job_id: string;
76641
+ id: string;
76642
+ }[];
76643
+ };
73841
76644
  check_offer_product_available_stock: {
73842
76645
  Args: {
73843
76646
  p_campaign_product_id: string;
@@ -75376,6 +78179,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75376
78179
  };
75377
78180
  Returns: string;
75378
78181
  };
78182
+ logistics_cart_checkin_at: {
78183
+ Args: {
78184
+ p_cart_id: string;
78185
+ };
78186
+ Returns: string;
78187
+ };
75379
78188
  logistics_cart_handled: {
75380
78189
  Args: {
75381
78190
  p_cart_index: number;
@@ -75409,10 +78218,22 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75409
78218
  task_status: string;
75410
78219
  }[];
75411
78220
  };
78221
+ logistics_cart_is_full: {
78222
+ Args: {
78223
+ p_cart_id: string;
78224
+ };
78225
+ Returns: boolean;
78226
+ };
75412
78227
  logistics_cart_layout_method: {
75413
78228
  Args: never;
75414
78229
  Returns: import("../integrations/supabase/types").Json;
75415
78230
  };
78231
+ logistics_cart_order_refs: {
78232
+ Args: {
78233
+ p_cart_id: string;
78234
+ };
78235
+ Returns: string[];
78236
+ };
75416
78237
  logistics_cart_plan_overview: {
75417
78238
  Args: {
75418
78239
  p_days?: number;
@@ -75432,6 +78253,24 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75432
78253
  };
75433
78254
  Returns: import("../integrations/supabase/types").Json;
75434
78255
  };
78256
+ logistics_cart_plan_status_core: {
78257
+ Args: {
78258
+ p_ref: string;
78259
+ };
78260
+ Returns: import("../integrations/supabase/types").Json;
78261
+ };
78262
+ logistics_cart_release_reason: {
78263
+ Args: {
78264
+ p_cart_id: string;
78265
+ };
78266
+ Returns: string;
78267
+ };
78268
+ logistics_cart_released: {
78269
+ Args: {
78270
+ p_cart_id: string;
78271
+ };
78272
+ Returns: boolean;
78273
+ };
75435
78274
  logistics_cart_seq: {
75436
78275
  Args: {
75437
78276
  p_order_uuid?: string;
@@ -75482,6 +78321,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75482
78321
  unit_ref: string;
75483
78322
  }[];
75484
78323
  };
78324
+ logistics_carts_per_print: {
78325
+ Args: never;
78326
+ Returns: number;
78327
+ };
75485
78328
  logistics_check_order_allowed: {
75486
78329
  Args: {
75487
78330
  p_lines: import("../integrations/supabase/types").Json;
@@ -75585,6 +78428,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75585
78428
  isSetofReturn: false;
75586
78429
  };
75587
78430
  };
78431
+ logistics_cleanup_orphan_print_jobs: {
78432
+ Args: never;
78433
+ Returns: import("../integrations/supabase/types").Json;
78434
+ };
75588
78435
  logistics_complete_task: {
75589
78436
  Args: {
75590
78437
  p_result?: import("../integrations/supabase/types").Json;
@@ -75647,6 +78494,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75647
78494
  station_carts: number;
75648
78495
  }[];
75649
78496
  };
78497
+ logistics_control_complete_cart: {
78498
+ Args: {
78499
+ p_cart_id: string;
78500
+ };
78501
+ Returns: number;
78502
+ };
75650
78503
  logistics_control_scan_approve: {
75651
78504
  Args: {
75652
78505
  p_allow_reprint?: boolean;
@@ -75726,6 +78579,15 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75726
78579
  Args: never;
75727
78580
  Returns: import("../integrations/supabase/types").Json;
75728
78581
  };
78582
+ logistics_day_windows: {
78583
+ Args: {
78584
+ p_day: string;
78585
+ };
78586
+ Returns: {
78587
+ win_end: string;
78588
+ win_start: string;
78589
+ }[];
78590
+ };
75729
78591
  logistics_delay_customer_email: {
75730
78592
  Args: {
75731
78593
  p_customer: string;
@@ -75793,6 +78655,17 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75793
78655
  };
75794
78656
  Returns: import("../integrations/supabase/types").Json;
75795
78657
  };
78658
+ logistics_enqueue_shipping_note_with_slip: {
78659
+ Args: {
78660
+ _cart_id: string;
78661
+ _is_herprint: boolean;
78662
+ _printer_id: string;
78663
+ _queue_item_id: string;
78664
+ _session_id: string;
78665
+ _slip_job_id: string;
78666
+ };
78667
+ Returns: string;
78668
+ };
75796
78669
  logistics_enqueue_sticker_with_slip: {
75797
78670
  Args: {
75798
78671
  _cart_id: string;
@@ -75810,6 +78683,20 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75810
78683
  };
75811
78684
  Returns: string;
75812
78685
  };
78686
+ logistics_ensure_pick_data: {
78687
+ Args: {
78688
+ p_event_id?: string;
78689
+ p_missing?: import("../integrations/supabase/types").Json;
78690
+ p_ref: string;
78691
+ };
78692
+ Returns: import("../integrations/supabase/types").Json;
78693
+ };
78694
+ logistics_ensure_shipping_notes: {
78695
+ Args: {
78696
+ p_limit?: number;
78697
+ };
78698
+ Returns: import("../integrations/supabase/types").Json;
78699
+ };
75813
78700
  logistics_fail_task: {
75814
78701
  Args: {
75815
78702
  p_error: string;
@@ -75855,6 +78742,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75855
78742
  isSetofReturn: false;
75856
78743
  };
75857
78744
  };
78745
+ logistics_fix_wrong_shipping_notes: {
78746
+ Args: never;
78747
+ Returns: import("../integrations/supabase/types").Json;
78748
+ };
75858
78749
  logistics_floriday_cart_plan: {
75859
78750
  Args: {
75860
78751
  p_order_id: string;
@@ -75882,6 +78773,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75882
78773
  revision: number;
75883
78774
  }[];
75884
78775
  };
78776
+ logistics_floriday_delivery_note_create_enabled: {
78777
+ Args: never;
78778
+ Returns: boolean;
78779
+ };
75885
78780
  logistics_floriday_finish_push: {
75886
78781
  Args: {
75887
78782
  _error?: string;
@@ -75931,6 +78826,32 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75931
78826
  };
75932
78827
  Returns: string;
75933
78828
  };
78829
+ logistics_floriday_gate_status: {
78830
+ Args: never;
78831
+ Returns: import("../integrations/supabase/types").Json;
78832
+ };
78833
+ logistics_floriday_log_refusal: {
78834
+ Args: {
78835
+ _action?: string;
78836
+ _module?: string;
78837
+ _order_ref: string;
78838
+ _reason: string;
78839
+ _shell?: string;
78840
+ };
78841
+ Returns: undefined;
78842
+ };
78843
+ logistics_floriday_log_send: {
78844
+ Args: {
78845
+ _action: string;
78846
+ _detail?: string;
78847
+ _http_status?: number;
78848
+ _module?: string;
78849
+ _ok: boolean;
78850
+ _order_ref: string;
78851
+ _shell?: string;
78852
+ };
78853
+ Returns: undefined;
78854
+ };
75934
78855
  logistics_floriday_order_approved: {
75935
78856
  Args: {
75936
78857
  _order_ref: string;
@@ -75955,6 +78876,16 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75955
78876
  Args: never;
75956
78877
  Returns: boolean;
75957
78878
  };
78879
+ logistics_floriday_stock_updates_enabled: {
78880
+ Args: never;
78881
+ Returns: boolean;
78882
+ };
78883
+ logistics_floriday_write_allowed: {
78884
+ Args: {
78885
+ _action: string;
78886
+ };
78887
+ Returns: boolean;
78888
+ };
75958
78889
  logistics_fulfill_barcode_requests: {
75959
78890
  Args: {
75960
78891
  p_limit?: number;
@@ -75997,6 +78928,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
75997
78928
  };
75998
78929
  Returns: number;
75999
78930
  };
78931
+ logistics_merge_partial_carts: {
78932
+ Args: {
78933
+ p_limit?: number;
78934
+ };
78935
+ Returns: import("../integrations/supabase/types").Json;
78936
+ };
76000
78937
  logistics_next_workday_date: {
76001
78938
  Args: {
76002
78939
  p_date: string;
@@ -76023,6 +78960,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76023
78960
  };
76024
78961
  Returns: string;
76025
78962
  };
78963
+ logistics_opening_timezone: {
78964
+ Args: never;
78965
+ Returns: string;
78966
+ };
76026
78967
  logistics_order_cart_count: {
76027
78968
  Args: {
76028
78969
  p_order_ref: string;
@@ -76079,6 +79020,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76079
79020
  };
76080
79021
  Returns: string;
76081
79022
  };
79023
+ logistics_payload_is_floriday: {
79024
+ Args: {
79025
+ _payload: import("../integrations/supabase/types").Json;
79026
+ };
79027
+ Returns: boolean;
79028
+ };
76082
79029
  logistics_pick_agenda: {
76083
79030
  Args: {
76084
79031
  p_from?: string;
@@ -76107,6 +79054,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76107
79054
  Args: never;
76108
79055
  Returns: import("../integrations/supabase/types").Json;
76109
79056
  };
79057
+ logistics_pick_partial_mode: {
79058
+ Args: never;
79059
+ Returns: string;
79060
+ };
76110
79061
  logistics_pick_start_estimate: {
76111
79062
  Args: {
76112
79063
  p_order: import("../integrations/supabase/types").Json;
@@ -76197,6 +79148,20 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76197
79148
  Args: never;
76198
79149
  Returns: undefined;
76199
79150
  };
79151
+ logistics_plan_progress: {
79152
+ Args: {
79153
+ p_refs: string[];
79154
+ };
79155
+ Returns: {
79156
+ cart_plan_ready: boolean;
79157
+ cart_plan_reason: string;
79158
+ cart_plan_released: boolean;
79159
+ plan_progress: number;
79160
+ plan_state: string;
79161
+ plan_state_since: string;
79162
+ unit_ref: string;
79163
+ }[];
79164
+ };
76200
79165
  logistics_plan_prune: {
76201
79166
  Args: never;
76202
79167
  Returns: number;
@@ -76218,6 +79183,18 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76218
79183
  };
76219
79184
  Returns: number;
76220
79185
  };
79186
+ logistics_plan_state_for: {
79187
+ Args: {
79188
+ p_ref: string;
79189
+ };
79190
+ Returns: import("../integrations/supabase/types").Json;
79191
+ };
79192
+ logistics_prepare_pick_documents: {
79193
+ Args: {
79194
+ p_limit?: number;
79195
+ };
79196
+ Returns: import("../integrations/supabase/types").Json;
79197
+ };
76221
79198
  logistics_prune_buffer_member_queue: {
76222
79199
  Args: never;
76223
79200
  Returns: number;
@@ -76258,18 +79235,36 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76258
79235
  Args: never;
76259
79236
  Returns: import("../integrations/supabase/types").Json;
76260
79237
  };
79238
+ logistics_refresh_pick_queue_status: {
79239
+ Args: {
79240
+ p_ref: string;
79241
+ };
79242
+ Returns: number;
79243
+ };
76261
79244
  logistics_refresh_pickup_moments: {
76262
79245
  Args: {
76263
79246
  p_weeks?: number;
76264
79247
  };
76265
79248
  Returns: import("../integrations/supabase/types").Json;
76266
79249
  };
79250
+ logistics_refresh_plan_state: {
79251
+ Args: {
79252
+ p_limit?: number;
79253
+ };
79254
+ Returns: import("../integrations/supabase/types").Json;
79255
+ };
76267
79256
  logistics_replan_all: {
76268
79257
  Args: {
76269
79258
  p_reason?: string;
76270
79259
  };
76271
79260
  Returns: import("../integrations/supabase/types").Json;
76272
79261
  };
79262
+ logistics_replan_all_force: {
79263
+ Args: {
79264
+ p_reason?: string;
79265
+ };
79266
+ Returns: import("../integrations/supabase/types").Json;
79267
+ };
76273
79268
  logistics_report_delay: {
76274
79269
  Args: {
76275
79270
  p_expected_date?: string;
@@ -76414,6 +79409,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76414
79409
  };
76415
79410
  Returns: string;
76416
79411
  };
79412
+ logistics_shipping_note_follows_slip: {
79413
+ Args: never;
79414
+ Returns: boolean;
79415
+ };
76417
79416
  logistics_shipping_note_from_barcode: {
76418
79417
  Args: {
76419
79418
  p_allow_reprint?: boolean;
@@ -76422,10 +79421,86 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76422
79421
  };
76423
79422
  Returns: import("../integrations/supabase/types").Json;
76424
79423
  };
79424
+ logistics_shipping_note_job_for_slip: {
79425
+ Args: {
79426
+ _slip_job_id: string;
79427
+ };
79428
+ Returns: string;
79429
+ };
79430
+ logistics_shipping_notes_wake_all: {
79431
+ Args: never;
79432
+ Returns: import("../integrations/supabase/types").Json;
79433
+ };
79434
+ logistics_slip_is_floriday: {
79435
+ Args: {
79436
+ _slip_job_id: string;
79437
+ };
79438
+ Returns: boolean;
79439
+ };
79440
+ logistics_slip_note_claim: {
79441
+ Args: {
79442
+ _lease_seconds?: number;
79443
+ _limit?: number;
79444
+ };
79445
+ Returns: {
79446
+ attempts: number;
79447
+ batch_key: string | null;
79448
+ cart_id: string | null;
79449
+ created_at: string;
79450
+ error: string | null;
79451
+ error_code: string | null;
79452
+ fulfillment_order_id: string | null;
79453
+ id: string;
79454
+ locked_until: string | null;
79455
+ next_attempt_at: string | null;
79456
+ order_id: string | null;
79457
+ order_number: string | null;
79458
+ print_job_id: string | null;
79459
+ printer_id: string | null;
79460
+ retry_class: string | null;
79461
+ slip_job_id: string;
79462
+ status: string;
79463
+ updated_at: string;
79464
+ }[];
79465
+ SetofOptions: {
79466
+ from: "*";
79467
+ to: "logistics_slip_shipping_note";
79468
+ isOneToOne: false;
79469
+ isSetofReturn: true;
79470
+ };
79471
+ };
79472
+ logistics_slip_note_finish: {
79473
+ Args: {
79474
+ _error?: string;
79475
+ _error_code?: string;
79476
+ _fulfillment_order_id?: string;
79477
+ _id: string;
79478
+ _ok: boolean;
79479
+ _print_job_id?: string;
79480
+ _status?: string;
79481
+ };
79482
+ Returns: undefined;
79483
+ };
79484
+ logistics_slip_note_keep_waiting: {
79485
+ Args: {
79486
+ _class?: string;
79487
+ _id: string;
79488
+ _reason: string;
79489
+ };
79490
+ Returns: undefined;
79491
+ };
76425
79492
  logistics_sticker_follows_slip: {
76426
79493
  Args: never;
76427
79494
  Returns: boolean;
76428
79495
  };
79496
+ logistics_subtract_working_minutes: {
79497
+ Args: {
79498
+ p_deadline: string;
79499
+ p_max_workdays?: number;
79500
+ p_minutes: number;
79501
+ };
79502
+ Returns: import("../integrations/supabase/types").Json;
79503
+ };
76429
79504
  logistics_supersede_stale_tasks: {
76430
79505
  Args: {
76431
79506
  p_keep: string[];
@@ -76462,6 +79537,46 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76462
79537
  Args: never;
76463
79538
  Returns: string;
76464
79539
  };
79540
+ logistics_timezone_options: {
79541
+ Args: never;
79542
+ Returns: {
79543
+ name: string;
79544
+ }[];
79545
+ };
79546
+ logistics_trace: {
79547
+ Args: {
79548
+ p: import("../integrations/supabase/types").Json;
79549
+ };
79550
+ Returns: string;
79551
+ };
79552
+ logistics_trace_batch: {
79553
+ Args: {
79554
+ p: import("../integrations/supabase/types").Json;
79555
+ };
79556
+ Returns: number;
79557
+ };
79558
+ logistics_trace_orders: {
79559
+ Args: {
79560
+ p_limit?: number;
79561
+ p_search?: string;
79562
+ p_since?: string;
79563
+ p_status?: string;
79564
+ };
79565
+ Returns: import("../integrations/supabase/types").Json;
79566
+ };
79567
+ logistics_trace_redact: {
79568
+ Args: {
79569
+ p: import("../integrations/supabase/types").Json;
79570
+ };
79571
+ Returns: import("../integrations/supabase/types").Json;
79572
+ };
79573
+ logistics_trace_timeline: {
79574
+ Args: {
79575
+ p_limit?: number;
79576
+ p_order_ref: string;
79577
+ };
79578
+ Returns: import("../integrations/supabase/types").Json;
79579
+ };
76465
79580
  logistics_upsert_task: {
76466
79581
  Args: {
76467
79582
  p_buffer_ref: string;
@@ -76481,6 +79596,16 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
76481
79596
  };
76482
79597
  Returns: string;
76483
79598
  };
79599
+ logistics_valid_timezone: {
79600
+ Args: {
79601
+ _tz: string;
79602
+ };
79603
+ Returns: boolean;
79604
+ };
79605
+ logistics_working_hours_status: {
79606
+ Args: never;
79607
+ Returns: import("../integrations/supabase/types").Json;
79608
+ };
76484
79609
  logistics_write_buffer_layer_positions: {
76485
79610
  Args: {
76486
79611
  p_buffer_id: string;
@@ -77493,6 +80618,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
77493
80618
  };
77494
80619
  Returns: undefined;
77495
80620
  };
80621
+ prune_floriday_api_log: {
80622
+ Args: never;
80623
+ Returns: number;
80624
+ };
77496
80625
  quote_create_from_source: {
77497
80626
  Args: {
77498
80627
  _payload?: import("../integrations/supabase/types").Json;
@@ -77926,6 +81055,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
77926
81055
  };
77927
81056
  Returns: number;
77928
81057
  };
81058
+ schedule_floriday_catalog_prices_sync: {
81059
+ Args: {
81060
+ p_apikey: string;
81061
+ p_url: string;
81062
+ };
81063
+ Returns: number;
81064
+ };
77929
81065
  schedule_floriday_clock_presales_sync: {
77930
81066
  Args: {
77931
81067
  p_apikey: string;
@@ -78226,6 +81362,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
78226
81362
  };
78227
81363
  Returns: undefined;
78228
81364
  };
81365
+ sync_floriday_prices_into_price_groups: {
81366
+ Args: never;
81367
+ Returns: number;
81368
+ };
78229
81369
  sync_layer_stock: {
78230
81370
  Args: {
78231
81371
  p_product_id: string;
@@ -78358,6 +81498,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
78358
81498
  Args: never;
78359
81499
  Returns: string;
78360
81500
  };
81501
+ voorraad_cleanup_old_rows: {
81502
+ Args: never;
81503
+ Returns: import("../integrations/supabase/types").Json;
81504
+ };
78361
81505
  wake_print_queue: {
78362
81506
  Args: {
78363
81507
  _min_interval_ms?: number;