@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
@@ -2225,6 +2225,45 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
2225
2225
  };
2226
2226
  Relationships: [];
2227
2227
  };
2228
+ customer_product_stickers: {
2229
+ Row: {
2230
+ created_at: string;
2231
+ customer_key: string;
2232
+ file_name: string;
2233
+ file_path: string;
2234
+ file_size: number | null;
2235
+ id: string;
2236
+ mime_type: string | null;
2237
+ trade_item_key: string;
2238
+ updated_at: string;
2239
+ uploaded_by: string | null;
2240
+ };
2241
+ Insert: {
2242
+ created_at?: string;
2243
+ customer_key: string;
2244
+ file_name: string;
2245
+ file_path: string;
2246
+ file_size?: number | null;
2247
+ id?: string;
2248
+ mime_type?: string | null;
2249
+ trade_item_key: string;
2250
+ updated_at?: string;
2251
+ uploaded_by?: string | null;
2252
+ };
2253
+ Update: {
2254
+ created_at?: string;
2255
+ customer_key?: string;
2256
+ file_name?: string;
2257
+ file_path?: string;
2258
+ file_size?: number | null;
2259
+ id?: string;
2260
+ mime_type?: string | null;
2261
+ trade_item_key?: string;
2262
+ updated_at?: string;
2263
+ uploaded_by?: string | null;
2264
+ };
2265
+ Relationships: [];
2266
+ };
2228
2267
  customer_selected_assortment: {
2229
2268
  Row: {
2230
2269
  article_number: string | null;
@@ -2273,6 +2312,30 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
2273
2312
  referencedColumns: ["id"];
2274
2313
  }];
2275
2314
  };
2315
+ customer_sticker_settings: {
2316
+ Row: {
2317
+ created_at: string;
2318
+ customer_key: string;
2319
+ height_mm: number;
2320
+ updated_at: string;
2321
+ width_mm: number;
2322
+ };
2323
+ Insert: {
2324
+ created_at?: string;
2325
+ customer_key: string;
2326
+ height_mm?: number;
2327
+ updated_at?: string;
2328
+ width_mm?: number;
2329
+ };
2330
+ Update: {
2331
+ created_at?: string;
2332
+ customer_key?: string;
2333
+ height_mm?: number;
2334
+ updated_at?: string;
2335
+ width_mm?: number;
2336
+ };
2337
+ Relationships: [];
2338
+ };
2276
2339
  customer_trade_settings: {
2277
2340
  Row: {
2278
2341
  category: string;
@@ -5603,6 +5666,102 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
5603
5666
  referencedColumns: ["id"];
5604
5667
  }];
5605
5668
  };
5669
+ floriday_api_log: {
5670
+ Row: {
5671
+ action: string | null;
5672
+ caller: string | null;
5673
+ connection_id: string | null;
5674
+ created_at: string;
5675
+ cursor_from: number | null;
5676
+ direction: string;
5677
+ duration_ms: number | null;
5678
+ environment: string | null;
5679
+ error: string | null;
5680
+ floriday_id: string | null;
5681
+ floriday_reference: string | null;
5682
+ http_status: number;
5683
+ id: string;
5684
+ item_count: number | null;
5685
+ kind: string | null;
5686
+ local_id: string | null;
5687
+ local_reference: string | null;
5688
+ method: string;
5689
+ module: string | null;
5690
+ ok: boolean;
5691
+ path: string;
5692
+ request: import("../integrations/supabase/types").Json | null;
5693
+ resource_type: string | null;
5694
+ response: import("../integrations/supabase/types").Json | null;
5695
+ write_log_id: string | null;
5696
+ };
5697
+ Insert: {
5698
+ action?: string | null;
5699
+ caller?: string | null;
5700
+ connection_id?: string | null;
5701
+ created_at?: string;
5702
+ cursor_from?: number | null;
5703
+ direction: string;
5704
+ duration_ms?: number | null;
5705
+ environment?: string | null;
5706
+ error?: string | null;
5707
+ floriday_id?: string | null;
5708
+ floriday_reference?: string | null;
5709
+ http_status?: number;
5710
+ id?: string;
5711
+ item_count?: number | null;
5712
+ kind?: string | null;
5713
+ local_id?: string | null;
5714
+ local_reference?: string | null;
5715
+ method: string;
5716
+ module?: string | null;
5717
+ ok?: boolean;
5718
+ path: string;
5719
+ request?: import("../integrations/supabase/types").Json | null;
5720
+ resource_type?: string | null;
5721
+ response?: import("../integrations/supabase/types").Json | null;
5722
+ write_log_id?: string | null;
5723
+ };
5724
+ Update: {
5725
+ action?: string | null;
5726
+ caller?: string | null;
5727
+ connection_id?: string | null;
5728
+ created_at?: string;
5729
+ cursor_from?: number | null;
5730
+ direction?: string;
5731
+ duration_ms?: number | null;
5732
+ environment?: string | null;
5733
+ error?: string | null;
5734
+ floriday_id?: string | null;
5735
+ floriday_reference?: string | null;
5736
+ http_status?: number;
5737
+ id?: string;
5738
+ item_count?: number | null;
5739
+ kind?: string | null;
5740
+ local_id?: string | null;
5741
+ local_reference?: string | null;
5742
+ method?: string;
5743
+ module?: string | null;
5744
+ ok?: boolean;
5745
+ path?: string;
5746
+ request?: import("../integrations/supabase/types").Json | null;
5747
+ resource_type?: string | null;
5748
+ response?: import("../integrations/supabase/types").Json | null;
5749
+ write_log_id?: string | null;
5750
+ };
5751
+ Relationships: [{
5752
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5753
+ columns: ["connection_id"];
5754
+ isOneToOne: false;
5755
+ referencedRelation: "floriday_connections";
5756
+ referencedColumns: ["id"];
5757
+ }, {
5758
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5759
+ columns: ["write_log_id"];
5760
+ isOneToOne: false;
5761
+ referencedRelation: "floriday_write_log";
5762
+ referencedColumns: ["id"];
5763
+ }];
5764
+ };
5606
5765
  floriday_auction_letters_cache: {
5607
5766
  Row: {
5608
5767
  auction_letter_code: string;
@@ -5810,6 +5969,84 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
5810
5969
  referencedColumns: ["id"];
5811
5970
  }];
5812
5971
  };
5972
+ floriday_catalog_prices_cache: {
5973
+ Row: {
5974
+ connection_id: string;
5975
+ created_at: string;
5976
+ currency: string;
5977
+ id: string;
5978
+ is_deleted: boolean;
5979
+ price: number | null;
5980
+ price_group_id: string | null;
5981
+ price_group_name: string | null;
5982
+ price_type: string;
5983
+ raw: import("../integrations/supabase/types").Json | null;
5984
+ sales_unit: string | null;
5985
+ sequence_number: number;
5986
+ supplier_article_code: string | null;
5987
+ supply_line_id: string;
5988
+ synced_at: string;
5989
+ trade_item_id: string | null;
5990
+ updated_at: string;
5991
+ valid_from: string | null;
5992
+ valid_to: string | null;
5993
+ week: number | null;
5994
+ year: number | null;
5995
+ };
5996
+ Insert: {
5997
+ connection_id: string;
5998
+ created_at?: string;
5999
+ currency?: string;
6000
+ id?: string;
6001
+ is_deleted?: boolean;
6002
+ price?: number | null;
6003
+ price_group_id?: string | null;
6004
+ price_group_name?: string | null;
6005
+ price_type?: string;
6006
+ raw?: import("../integrations/supabase/types").Json | null;
6007
+ sales_unit?: string | null;
6008
+ sequence_number?: number;
6009
+ supplier_article_code?: string | null;
6010
+ supply_line_id: string;
6011
+ synced_at?: string;
6012
+ trade_item_id?: string | null;
6013
+ updated_at?: string;
6014
+ valid_from?: string | null;
6015
+ valid_to?: string | null;
6016
+ week?: number | null;
6017
+ year?: number | null;
6018
+ };
6019
+ Update: {
6020
+ connection_id?: string;
6021
+ created_at?: string;
6022
+ currency?: string;
6023
+ id?: string;
6024
+ is_deleted?: boolean;
6025
+ price?: number | null;
6026
+ price_group_id?: string | null;
6027
+ price_group_name?: string | null;
6028
+ price_type?: string;
6029
+ raw?: import("../integrations/supabase/types").Json | null;
6030
+ sales_unit?: string | null;
6031
+ sequence_number?: number;
6032
+ supplier_article_code?: string | null;
6033
+ supply_line_id?: string;
6034
+ synced_at?: string;
6035
+ trade_item_id?: string | null;
6036
+ updated_at?: string;
6037
+ valid_from?: string | null;
6038
+ valid_to?: string | null;
6039
+ week?: number | null;
6040
+ year?: number | null;
6041
+ };
6042
+ Relationships: [{
6043
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6044
+ columns: ["connection_id"];
6045
+ isOneToOne: false;
6046
+ referencedRelation: "floriday_connections";
6047
+ referencedColumns: ["id"];
6048
+ }];
6049
+ };
5813
6050
  floriday_clock_presales_cache: {
5814
6051
  Row: {
5815
6052
  buyer_organization_id: string | null;
@@ -6725,6 +6962,69 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
6725
6962
  referencedColumns: ["id"];
6726
6963
  }];
6727
6964
  };
6965
+ floriday_link_templates: {
6966
+ Row: {
6967
+ created_at: string;
6968
+ floriday_url_template: string | null;
6969
+ is_active: boolean;
6970
+ label: string;
6971
+ local_url_template: string | null;
6972
+ resource_type: string;
6973
+ updated_at: string;
6974
+ };
6975
+ Insert: {
6976
+ created_at?: string;
6977
+ floriday_url_template?: string | null;
6978
+ is_active?: boolean;
6979
+ label: string;
6980
+ local_url_template?: string | null;
6981
+ resource_type: string;
6982
+ updated_at?: string;
6983
+ };
6984
+ Update: {
6985
+ created_at?: string;
6986
+ floriday_url_template?: string | null;
6987
+ is_active?: boolean;
6988
+ label?: string;
6989
+ local_url_template?: string | null;
6990
+ resource_type?: string;
6991
+ updated_at?: string;
6992
+ };
6993
+ Relationships: [];
6994
+ };
6995
+ floriday_log_retention: {
6996
+ Row: {
6997
+ created_at: string;
6998
+ direction: string | null;
6999
+ id: string;
7000
+ keep_failed_days: number | null;
7001
+ keep_ok_days: number | null;
7002
+ note: string | null;
7003
+ resource_type: string | null;
7004
+ updated_at: string;
7005
+ };
7006
+ Insert: {
7007
+ created_at?: string;
7008
+ direction?: string | null;
7009
+ id?: string;
7010
+ keep_failed_days?: number | null;
7011
+ keep_ok_days?: number | null;
7012
+ note?: string | null;
7013
+ resource_type?: string | null;
7014
+ updated_at?: string;
7015
+ };
7016
+ Update: {
7017
+ created_at?: string;
7018
+ direction?: string | null;
7019
+ id?: string;
7020
+ keep_failed_days?: number | null;
7021
+ keep_ok_days?: number | null;
7022
+ note?: string | null;
7023
+ resource_type?: string | null;
7024
+ updated_at?: string;
7025
+ };
7026
+ Relationships: [];
7027
+ };
6728
7028
  floriday_logistic_labels_cache: {
6729
7029
  Row: {
6730
7030
  byte_size: number | null;
@@ -10078,22 +10378,31 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
10078
10378
  };
10079
10379
  logistics_floriday_push_refusals: {
10080
10380
  Row: {
10381
+ action: string | null;
10081
10382
  created_at: string;
10082
10383
  id: string;
10083
10384
  order_ref: string;
10084
10385
  reason: string;
10386
+ source_module: string | null;
10387
+ source_shell: string | null;
10085
10388
  };
10086
10389
  Insert: {
10390
+ action?: string | null;
10087
10391
  created_at?: string;
10088
10392
  id?: string;
10089
10393
  order_ref: string;
10090
10394
  reason: string;
10395
+ source_module?: string | null;
10396
+ source_shell?: string | null;
10091
10397
  };
10092
10398
  Update: {
10399
+ action?: string | null;
10093
10400
  created_at?: string;
10094
10401
  id?: string;
10095
10402
  order_ref?: string;
10096
10403
  reason?: string;
10404
+ source_module?: string | null;
10405
+ source_shell?: string | null;
10097
10406
  };
10098
10407
  Relationships: [];
10099
10408
  };
@@ -10172,6 +10481,42 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
10172
10481
  };
10173
10482
  Relationships: [];
10174
10483
  };
10484
+ logistics_floriday_status_sends: {
10485
+ Row: {
10486
+ action: string;
10487
+ created_at: string;
10488
+ detail: string | null;
10489
+ http_status: number | null;
10490
+ id: string;
10491
+ ok: boolean;
10492
+ order_ref: string;
10493
+ source_module: string | null;
10494
+ source_shell: string | null;
10495
+ };
10496
+ Insert: {
10497
+ action: string;
10498
+ created_at?: string;
10499
+ detail?: string | null;
10500
+ http_status?: number | null;
10501
+ id?: string;
10502
+ ok?: boolean;
10503
+ order_ref: string;
10504
+ source_module?: string | null;
10505
+ source_shell?: string | null;
10506
+ };
10507
+ Update: {
10508
+ action?: string;
10509
+ created_at?: string;
10510
+ detail?: string | null;
10511
+ http_status?: number | null;
10512
+ id?: string;
10513
+ ok?: boolean;
10514
+ order_ref?: string;
10515
+ source_module?: string | null;
10516
+ source_shell?: string | null;
10517
+ };
10518
+ Relationships: [];
10519
+ };
10175
10520
  logistics_formulas: {
10176
10521
  Row: {
10177
10522
  created_at: string;
@@ -10244,6 +10589,108 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
10244
10589
  };
10245
10590
  Relationships: [];
10246
10591
  };
10592
+ logistics_opening_exceptions: {
10593
+ Row: {
10594
+ closes: string | null;
10595
+ created_at: string;
10596
+ day: string;
10597
+ id: string;
10598
+ is_closed: boolean;
10599
+ note: string | null;
10600
+ opens: string | null;
10601
+ };
10602
+ Insert: {
10603
+ closes?: string | null;
10604
+ created_at?: string;
10605
+ day: string;
10606
+ id?: string;
10607
+ is_closed?: boolean;
10608
+ note?: string | null;
10609
+ opens?: string | null;
10610
+ };
10611
+ Update: {
10612
+ closes?: string | null;
10613
+ created_at?: string;
10614
+ day?: string;
10615
+ id?: string;
10616
+ is_closed?: boolean;
10617
+ note?: string | null;
10618
+ opens?: string | null;
10619
+ };
10620
+ Relationships: [];
10621
+ };
10622
+ logistics_opening_hours: {
10623
+ Row: {
10624
+ closes: string;
10625
+ created_at: string;
10626
+ id: string;
10627
+ is_active: boolean;
10628
+ note: string | null;
10629
+ opens: string;
10630
+ weekday: number;
10631
+ };
10632
+ Insert: {
10633
+ closes: string;
10634
+ created_at?: string;
10635
+ id?: string;
10636
+ is_active?: boolean;
10637
+ note?: string | null;
10638
+ opens: string;
10639
+ weekday: number;
10640
+ };
10641
+ Update: {
10642
+ closes?: string;
10643
+ created_at?: string;
10644
+ id?: string;
10645
+ is_active?: boolean;
10646
+ note?: string | null;
10647
+ opens?: string;
10648
+ weekday?: number;
10649
+ };
10650
+ Relationships: [];
10651
+ };
10652
+ logistics_pick_data_requests: {
10653
+ Row: {
10654
+ actions: import("../integrations/supabase/types").Json;
10655
+ created_at: string;
10656
+ event_id: string | null;
10657
+ finished_at: string | null;
10658
+ id: string;
10659
+ missing: import("../integrations/supabase/types").Json;
10660
+ order_ref: string;
10661
+ reason: string | null;
10662
+ result: import("../integrations/supabase/types").Json | null;
10663
+ status: string;
10664
+ unit_ref: string | null;
10665
+ };
10666
+ Insert: {
10667
+ actions?: import("../integrations/supabase/types").Json;
10668
+ created_at?: string;
10669
+ event_id?: string | null;
10670
+ finished_at?: string | null;
10671
+ id?: string;
10672
+ missing?: import("../integrations/supabase/types").Json;
10673
+ order_ref: string;
10674
+ reason?: string | null;
10675
+ result?: import("../integrations/supabase/types").Json | null;
10676
+ status?: string;
10677
+ unit_ref?: string | null;
10678
+ };
10679
+ Update: {
10680
+ actions?: import("../integrations/supabase/types").Json;
10681
+ created_at?: string;
10682
+ event_id?: string | null;
10683
+ finished_at?: string | null;
10684
+ id?: string;
10685
+ missing?: import("../integrations/supabase/types").Json;
10686
+ order_ref?: string;
10687
+ reason?: string | null;
10688
+ result?: import("../integrations/supabase/types").Json | null;
10689
+ status?: string;
10690
+ unit_ref?: string | null;
10691
+ };
10692
+ Relationships: [];
10693
+ };
10247
10694
  logistics_pickup_moments: {
10248
10695
  Row: {
10249
10696
  carrier_ref: string | null;
@@ -10703,6 +11150,69 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
10703
11150
  };
10704
11151
  Relationships: [];
10705
11152
  };
11153
+ logistics_slip_shipping_note: {
11154
+ Row: {
11155
+ attempts: number;
11156
+ batch_key: string | null;
11157
+ cart_id: string | null;
11158
+ created_at: string;
11159
+ error: string | null;
11160
+ error_code: string | null;
11161
+ fulfillment_order_id: string | null;
11162
+ id: string;
11163
+ locked_until: string | null;
11164
+ next_attempt_at: string | null;
11165
+ order_id: string | null;
11166
+ order_number: string | null;
11167
+ print_job_id: string | null;
11168
+ printer_id: string | null;
11169
+ retry_class: string | null;
11170
+ slip_job_id: string;
11171
+ status: string;
11172
+ updated_at: string;
11173
+ };
11174
+ Insert: {
11175
+ attempts?: number;
11176
+ batch_key?: string | null;
11177
+ cart_id?: string | null;
11178
+ created_at?: string;
11179
+ error?: string | null;
11180
+ error_code?: string | null;
11181
+ fulfillment_order_id?: string | null;
11182
+ id?: string;
11183
+ locked_until?: string | null;
11184
+ next_attempt_at?: string | null;
11185
+ order_id?: string | null;
11186
+ order_number?: string | null;
11187
+ print_job_id?: string | null;
11188
+ printer_id?: string | null;
11189
+ retry_class?: string | null;
11190
+ slip_job_id: string;
11191
+ status?: string;
11192
+ updated_at?: string;
11193
+ };
11194
+ Update: {
11195
+ attempts?: number;
11196
+ batch_key?: string | null;
11197
+ cart_id?: string | null;
11198
+ created_at?: string;
11199
+ error?: string | null;
11200
+ error_code?: string | null;
11201
+ fulfillment_order_id?: string | null;
11202
+ id?: string;
11203
+ locked_until?: string | null;
11204
+ next_attempt_at?: string | null;
11205
+ order_id?: string | null;
11206
+ order_number?: string | null;
11207
+ print_job_id?: string | null;
11208
+ printer_id?: string | null;
11209
+ retry_class?: string | null;
11210
+ slip_job_id?: string;
11211
+ status?: string;
11212
+ updated_at?: string;
11213
+ };
11214
+ Relationships: [];
11215
+ };
10706
11216
  logistics_staff_planning: {
10707
11217
  Row: {
10708
11218
  created_at: string;
@@ -11036,6 +11546,129 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
11036
11546
  };
11037
11547
  Relationships: [];
11038
11548
  };
11549
+ logistics_time_settings: {
11550
+ Row: {
11551
+ id: boolean;
11552
+ timezone: string;
11553
+ updated_at: string;
11554
+ };
11555
+ Insert: {
11556
+ id?: boolean;
11557
+ timezone: string;
11558
+ updated_at?: string;
11559
+ };
11560
+ Update: {
11561
+ id?: boolean;
11562
+ timezone?: string;
11563
+ updated_at?: string;
11564
+ };
11565
+ Relationships: [];
11566
+ };
11567
+ logistics_trace_events: {
11568
+ Row: {
11569
+ actor: string | null;
11570
+ attempts: number;
11571
+ cart_ref: string | null;
11572
+ created_at: string;
11573
+ db_action: string | null;
11574
+ db_new: import("../integrations/supabase/types").Json | null;
11575
+ db_old: import("../integrations/supabase/types").Json | null;
11576
+ db_record: string | null;
11577
+ db_table: string | null;
11578
+ decision: string | null;
11579
+ duration_ms: number | null;
11580
+ error: string | null;
11581
+ external_action: string | null;
11582
+ external_ref: string | null;
11583
+ external_response: import("../integrations/supabase/types").Json | null;
11584
+ external_status: string | null;
11585
+ external_system: string | null;
11586
+ id: string;
11587
+ input: import("../integrations/supabase/types").Json | null;
11588
+ next_attempt_at: string | null;
11589
+ order_ref: string | null;
11590
+ order_source: string | null;
11591
+ output: import("../integrations/supabase/types").Json | null;
11592
+ phase: string;
11593
+ reads: import("../integrations/supabase/types").Json | null;
11594
+ reason: string | null;
11595
+ rule: string | null;
11596
+ slip_ref: string | null;
11597
+ status: string;
11598
+ step: string;
11599
+ trace_id: string;
11600
+ values_used: import("../integrations/supabase/types").Json | null;
11601
+ };
11602
+ Insert: {
11603
+ actor?: string | null;
11604
+ attempts?: number;
11605
+ cart_ref?: string | null;
11606
+ created_at?: string;
11607
+ db_action?: string | null;
11608
+ db_new?: import("../integrations/supabase/types").Json | null;
11609
+ db_old?: import("../integrations/supabase/types").Json | null;
11610
+ db_record?: string | null;
11611
+ db_table?: string | null;
11612
+ decision?: string | null;
11613
+ duration_ms?: number | null;
11614
+ error?: string | null;
11615
+ external_action?: string | null;
11616
+ external_ref?: string | null;
11617
+ external_response?: import("../integrations/supabase/types").Json | null;
11618
+ external_status?: string | null;
11619
+ external_system?: string | null;
11620
+ id?: string;
11621
+ input?: import("../integrations/supabase/types").Json | null;
11622
+ next_attempt_at?: string | null;
11623
+ order_ref?: string | null;
11624
+ order_source?: string | null;
11625
+ output?: import("../integrations/supabase/types").Json | null;
11626
+ phase: string;
11627
+ reads?: import("../integrations/supabase/types").Json | null;
11628
+ reason?: string | null;
11629
+ rule?: string | null;
11630
+ slip_ref?: string | null;
11631
+ status: string;
11632
+ step: string;
11633
+ trace_id?: string;
11634
+ values_used?: import("../integrations/supabase/types").Json | null;
11635
+ };
11636
+ Update: {
11637
+ actor?: string | null;
11638
+ attempts?: number;
11639
+ cart_ref?: string | null;
11640
+ created_at?: string;
11641
+ db_action?: string | null;
11642
+ db_new?: import("../integrations/supabase/types").Json | null;
11643
+ db_old?: import("../integrations/supabase/types").Json | null;
11644
+ db_record?: string | null;
11645
+ db_table?: string | null;
11646
+ decision?: string | null;
11647
+ duration_ms?: number | null;
11648
+ error?: string | null;
11649
+ external_action?: string | null;
11650
+ external_ref?: string | null;
11651
+ external_response?: import("../integrations/supabase/types").Json | null;
11652
+ external_status?: string | null;
11653
+ external_system?: string | null;
11654
+ id?: string;
11655
+ input?: import("../integrations/supabase/types").Json | null;
11656
+ next_attempt_at?: string | null;
11657
+ order_ref?: string | null;
11658
+ order_source?: string | null;
11659
+ output?: import("../integrations/supabase/types").Json | null;
11660
+ phase?: string;
11661
+ reads?: import("../integrations/supabase/types").Json | null;
11662
+ reason?: string | null;
11663
+ rule?: string | null;
11664
+ slip_ref?: string | null;
11665
+ status?: string;
11666
+ step?: string;
11667
+ trace_id?: string;
11668
+ values_used?: import("../integrations/supabase/types").Json | null;
11669
+ };
11670
+ Relationships: [];
11671
+ };
11039
11672
  logistics_variables: {
11040
11673
  Row: {
11041
11674
  created_at: string;
@@ -13426,6 +14059,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
13426
14059
  customer_name: string;
13427
14060
  deleted_at: string | null;
13428
14061
  delivery_date: string | null;
14062
+ floriday_order_group_key: string | null;
13429
14063
  floriday_sales_order_id: string | null;
13430
14064
  id: string;
13431
14065
  invoice_due_at: string | null;
@@ -13453,6 +14087,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
13453
14087
  customer_name?: string;
13454
14088
  deleted_at?: string | null;
13455
14089
  delivery_date?: string | null;
14090
+ floriday_order_group_key?: string | null;
13456
14091
  floriday_sales_order_id?: string | null;
13457
14092
  id?: string;
13458
14093
  invoice_due_at?: string | null;
@@ -13480,6 +14115,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
13480
14115
  customer_name?: string;
13481
14116
  deleted_at?: string | null;
13482
14117
  delivery_date?: string | null;
14118
+ floriday_order_group_key?: string | null;
13483
14119
  floriday_sales_order_id?: string | null;
13484
14120
  id?: string;
13485
14121
  invoice_due_at?: string | null;
@@ -19343,6 +19979,36 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
19343
19979
  referencedColumns: ["id"];
19344
19980
  }];
19345
19981
  };
19982
+ voorraad_buffer_state: {
19983
+ Row: {
19984
+ buffer_id: string;
19985
+ buffer_key: string | null;
19986
+ closed_at: string | null;
19987
+ created_at: string;
19988
+ detached_orders: import("../integrations/supabase/types").Json;
19989
+ reason: string | null;
19990
+ updated_at: string;
19991
+ };
19992
+ Insert: {
19993
+ buffer_id: string;
19994
+ buffer_key?: string | null;
19995
+ closed_at?: string | null;
19996
+ created_at?: string;
19997
+ detached_orders?: import("../integrations/supabase/types").Json;
19998
+ reason?: string | null;
19999
+ updated_at?: string;
20000
+ };
20001
+ Update: {
20002
+ buffer_id?: string;
20003
+ buffer_key?: string | null;
20004
+ closed_at?: string | null;
20005
+ created_at?: string;
20006
+ detached_orders?: import("../integrations/supabase/types").Json;
20007
+ reason?: string | null;
20008
+ updated_at?: string;
20009
+ };
20010
+ Relationships: [];
20011
+ };
19346
20012
  voorraad_custom_fields: {
19347
20013
  Row: {
19348
20014
  created_at: string;
@@ -19385,6 +20051,36 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
19385
20051
  };
19386
20052
  Relationships: [];
19387
20053
  };
20054
+ voorraad_logistics_event_log: {
20055
+ Row: {
20056
+ created_at: string;
20057
+ event_id: string;
20058
+ event_type: string;
20059
+ order_ref: string | null;
20060
+ processed_at: string;
20061
+ result: import("../integrations/supabase/types").Json;
20062
+ updated_at: string;
20063
+ };
20064
+ Insert: {
20065
+ created_at?: string;
20066
+ event_id: string;
20067
+ event_type: string;
20068
+ order_ref?: string | null;
20069
+ processed_at?: string;
20070
+ result?: import("../integrations/supabase/types").Json;
20071
+ updated_at?: string;
20072
+ };
20073
+ Update: {
20074
+ created_at?: string;
20075
+ event_id?: string;
20076
+ event_type?: string;
20077
+ order_ref?: string | null;
20078
+ processed_at?: string;
20079
+ result?: import("../integrations/supabase/types").Json;
20080
+ updated_at?: string;
20081
+ };
20082
+ Relationships: [];
20083
+ };
19388
20084
  voorraad_media_upload_failures: {
19389
20085
  Row: {
19390
20086
  action: string;
@@ -21545,6 +22241,15 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21545
22241
  Args: never;
21546
22242
  Returns: boolean;
21547
22243
  };
22244
+ cancel_open_print_jobs: {
22245
+ Args: {
22246
+ _cutoff: string;
22247
+ };
22248
+ Returns: {
22249
+ extern_job_id: string;
22250
+ id: string;
22251
+ }[];
22252
+ };
21548
22253
  check_offer_product_available_stock: {
21549
22254
  Args: {
21550
22255
  p_campaign_product_id: string;
@@ -23083,6 +23788,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23083
23788
  };
23084
23789
  Returns: string;
23085
23790
  };
23791
+ logistics_cart_checkin_at: {
23792
+ Args: {
23793
+ p_cart_id: string;
23794
+ };
23795
+ Returns: string;
23796
+ };
23086
23797
  logistics_cart_handled: {
23087
23798
  Args: {
23088
23799
  p_cart_index: number;
@@ -23116,10 +23827,22 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23116
23827
  task_status: string;
23117
23828
  }[];
23118
23829
  };
23830
+ logistics_cart_is_full: {
23831
+ Args: {
23832
+ p_cart_id: string;
23833
+ };
23834
+ Returns: boolean;
23835
+ };
23119
23836
  logistics_cart_layout_method: {
23120
23837
  Args: never;
23121
23838
  Returns: import("../integrations/supabase/types").Json;
23122
23839
  };
23840
+ logistics_cart_order_refs: {
23841
+ Args: {
23842
+ p_cart_id: string;
23843
+ };
23844
+ Returns: string[];
23845
+ };
23123
23846
  logistics_cart_plan_overview: {
23124
23847
  Args: {
23125
23848
  p_days?: number;
@@ -23139,6 +23862,24 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23139
23862
  };
23140
23863
  Returns: import("../integrations/supabase/types").Json;
23141
23864
  };
23865
+ logistics_cart_plan_status_core: {
23866
+ Args: {
23867
+ p_ref: string;
23868
+ };
23869
+ Returns: import("../integrations/supabase/types").Json;
23870
+ };
23871
+ logistics_cart_release_reason: {
23872
+ Args: {
23873
+ p_cart_id: string;
23874
+ };
23875
+ Returns: string;
23876
+ };
23877
+ logistics_cart_released: {
23878
+ Args: {
23879
+ p_cart_id: string;
23880
+ };
23881
+ Returns: boolean;
23882
+ };
23142
23883
  logistics_cart_seq: {
23143
23884
  Args: {
23144
23885
  p_order_uuid?: string;
@@ -23189,6 +23930,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23189
23930
  unit_ref: string;
23190
23931
  }[];
23191
23932
  };
23933
+ logistics_carts_per_print: {
23934
+ Args: never;
23935
+ Returns: number;
23936
+ };
23192
23937
  logistics_check_order_allowed: {
23193
23938
  Args: {
23194
23939
  p_lines: import("../integrations/supabase/types").Json;
@@ -23292,6 +24037,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23292
24037
  isSetofReturn: false;
23293
24038
  };
23294
24039
  };
24040
+ logistics_cleanup_orphan_print_jobs: {
24041
+ Args: never;
24042
+ Returns: import("../integrations/supabase/types").Json;
24043
+ };
23295
24044
  logistics_complete_task: {
23296
24045
  Args: {
23297
24046
  p_result?: import("../integrations/supabase/types").Json;
@@ -23354,6 +24103,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23354
24103
  station_carts: number;
23355
24104
  }[];
23356
24105
  };
24106
+ logistics_control_complete_cart: {
24107
+ Args: {
24108
+ p_cart_id: string;
24109
+ };
24110
+ Returns: number;
24111
+ };
23357
24112
  logistics_control_scan_approve: {
23358
24113
  Args: {
23359
24114
  p_allow_reprint?: boolean;
@@ -23433,6 +24188,15 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23433
24188
  Args: never;
23434
24189
  Returns: import("../integrations/supabase/types").Json;
23435
24190
  };
24191
+ logistics_day_windows: {
24192
+ Args: {
24193
+ p_day: string;
24194
+ };
24195
+ Returns: {
24196
+ win_end: string;
24197
+ win_start: string;
24198
+ }[];
24199
+ };
23436
24200
  logistics_delay_customer_email: {
23437
24201
  Args: {
23438
24202
  p_customer: string;
@@ -23500,6 +24264,17 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23500
24264
  };
23501
24265
  Returns: import("../integrations/supabase/types").Json;
23502
24266
  };
24267
+ logistics_enqueue_shipping_note_with_slip: {
24268
+ Args: {
24269
+ _cart_id: string;
24270
+ _is_herprint: boolean;
24271
+ _printer_id: string;
24272
+ _queue_item_id: string;
24273
+ _session_id: string;
24274
+ _slip_job_id: string;
24275
+ };
24276
+ Returns: string;
24277
+ };
23503
24278
  logistics_enqueue_sticker_with_slip: {
23504
24279
  Args: {
23505
24280
  _cart_id: string;
@@ -23517,6 +24292,20 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23517
24292
  };
23518
24293
  Returns: string;
23519
24294
  };
24295
+ logistics_ensure_pick_data: {
24296
+ Args: {
24297
+ p_event_id?: string;
24298
+ p_missing?: import("../integrations/supabase/types").Json;
24299
+ p_ref: string;
24300
+ };
24301
+ Returns: import("../integrations/supabase/types").Json;
24302
+ };
24303
+ logistics_ensure_shipping_notes: {
24304
+ Args: {
24305
+ p_limit?: number;
24306
+ };
24307
+ Returns: import("../integrations/supabase/types").Json;
24308
+ };
23520
24309
  logistics_fail_task: {
23521
24310
  Args: {
23522
24311
  p_error: string;
@@ -23562,6 +24351,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23562
24351
  isSetofReturn: false;
23563
24352
  };
23564
24353
  };
24354
+ logistics_fix_wrong_shipping_notes: {
24355
+ Args: never;
24356
+ Returns: import("../integrations/supabase/types").Json;
24357
+ };
23565
24358
  logistics_floriday_cart_plan: {
23566
24359
  Args: {
23567
24360
  p_order_id: string;
@@ -23589,6 +24382,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23589
24382
  revision: number;
23590
24383
  }[];
23591
24384
  };
24385
+ logistics_floriday_delivery_note_create_enabled: {
24386
+ Args: never;
24387
+ Returns: boolean;
24388
+ };
23592
24389
  logistics_floriday_finish_push: {
23593
24390
  Args: {
23594
24391
  _error?: string;
@@ -23638,6 +24435,32 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23638
24435
  };
23639
24436
  Returns: string;
23640
24437
  };
24438
+ logistics_floriday_gate_status: {
24439
+ Args: never;
24440
+ Returns: import("../integrations/supabase/types").Json;
24441
+ };
24442
+ logistics_floriday_log_refusal: {
24443
+ Args: {
24444
+ _action?: string;
24445
+ _module?: string;
24446
+ _order_ref: string;
24447
+ _reason: string;
24448
+ _shell?: string;
24449
+ };
24450
+ Returns: undefined;
24451
+ };
24452
+ logistics_floriday_log_send: {
24453
+ Args: {
24454
+ _action: string;
24455
+ _detail?: string;
24456
+ _http_status?: number;
24457
+ _module?: string;
24458
+ _ok: boolean;
24459
+ _order_ref: string;
24460
+ _shell?: string;
24461
+ };
24462
+ Returns: undefined;
24463
+ };
23641
24464
  logistics_floriday_order_approved: {
23642
24465
  Args: {
23643
24466
  _order_ref: string;
@@ -23662,6 +24485,16 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23662
24485
  Args: never;
23663
24486
  Returns: boolean;
23664
24487
  };
24488
+ logistics_floriday_stock_updates_enabled: {
24489
+ Args: never;
24490
+ Returns: boolean;
24491
+ };
24492
+ logistics_floriday_write_allowed: {
24493
+ Args: {
24494
+ _action: string;
24495
+ };
24496
+ Returns: boolean;
24497
+ };
23665
24498
  logistics_fulfill_barcode_requests: {
23666
24499
  Args: {
23667
24500
  p_limit?: number;
@@ -23704,6 +24537,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23704
24537
  };
23705
24538
  Returns: number;
23706
24539
  };
24540
+ logistics_merge_partial_carts: {
24541
+ Args: {
24542
+ p_limit?: number;
24543
+ };
24544
+ Returns: import("../integrations/supabase/types").Json;
24545
+ };
23707
24546
  logistics_next_workday_date: {
23708
24547
  Args: {
23709
24548
  p_date: string;
@@ -23730,6 +24569,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23730
24569
  };
23731
24570
  Returns: string;
23732
24571
  };
24572
+ logistics_opening_timezone: {
24573
+ Args: never;
24574
+ Returns: string;
24575
+ };
23733
24576
  logistics_order_cart_count: {
23734
24577
  Args: {
23735
24578
  p_order_ref: string;
@@ -23786,6 +24629,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23786
24629
  };
23787
24630
  Returns: string;
23788
24631
  };
24632
+ logistics_payload_is_floriday: {
24633
+ Args: {
24634
+ _payload: import("../integrations/supabase/types").Json;
24635
+ };
24636
+ Returns: boolean;
24637
+ };
23789
24638
  logistics_pick_agenda: {
23790
24639
  Args: {
23791
24640
  p_from?: string;
@@ -23814,6 +24663,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23814
24663
  Args: never;
23815
24664
  Returns: import("../integrations/supabase/types").Json;
23816
24665
  };
24666
+ logistics_pick_partial_mode: {
24667
+ Args: never;
24668
+ Returns: string;
24669
+ };
23817
24670
  logistics_pick_start_estimate: {
23818
24671
  Args: {
23819
24672
  p_order: import("../integrations/supabase/types").Json;
@@ -23904,6 +24757,20 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23904
24757
  Args: never;
23905
24758
  Returns: undefined;
23906
24759
  };
24760
+ logistics_plan_progress: {
24761
+ Args: {
24762
+ p_refs: string[];
24763
+ };
24764
+ Returns: {
24765
+ cart_plan_ready: boolean;
24766
+ cart_plan_reason: string;
24767
+ cart_plan_released: boolean;
24768
+ plan_progress: number;
24769
+ plan_state: string;
24770
+ plan_state_since: string;
24771
+ unit_ref: string;
24772
+ }[];
24773
+ };
23907
24774
  logistics_plan_prune: {
23908
24775
  Args: never;
23909
24776
  Returns: number;
@@ -23925,6 +24792,18 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23925
24792
  };
23926
24793
  Returns: number;
23927
24794
  };
24795
+ logistics_plan_state_for: {
24796
+ Args: {
24797
+ p_ref: string;
24798
+ };
24799
+ Returns: import("../integrations/supabase/types").Json;
24800
+ };
24801
+ logistics_prepare_pick_documents: {
24802
+ Args: {
24803
+ p_limit?: number;
24804
+ };
24805
+ Returns: import("../integrations/supabase/types").Json;
24806
+ };
23928
24807
  logistics_prune_buffer_member_queue: {
23929
24808
  Args: never;
23930
24809
  Returns: number;
@@ -23965,18 +24844,36 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
23965
24844
  Args: never;
23966
24845
  Returns: import("../integrations/supabase/types").Json;
23967
24846
  };
24847
+ logistics_refresh_pick_queue_status: {
24848
+ Args: {
24849
+ p_ref: string;
24850
+ };
24851
+ Returns: number;
24852
+ };
23968
24853
  logistics_refresh_pickup_moments: {
23969
24854
  Args: {
23970
24855
  p_weeks?: number;
23971
24856
  };
23972
24857
  Returns: import("../integrations/supabase/types").Json;
23973
24858
  };
24859
+ logistics_refresh_plan_state: {
24860
+ Args: {
24861
+ p_limit?: number;
24862
+ };
24863
+ Returns: import("../integrations/supabase/types").Json;
24864
+ };
23974
24865
  logistics_replan_all: {
23975
24866
  Args: {
23976
24867
  p_reason?: string;
23977
24868
  };
23978
24869
  Returns: import("../integrations/supabase/types").Json;
23979
24870
  };
24871
+ logistics_replan_all_force: {
24872
+ Args: {
24873
+ p_reason?: string;
24874
+ };
24875
+ Returns: import("../integrations/supabase/types").Json;
24876
+ };
23980
24877
  logistics_report_delay: {
23981
24878
  Args: {
23982
24879
  p_expected_date?: string;
@@ -24121,6 +25018,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
24121
25018
  };
24122
25019
  Returns: string;
24123
25020
  };
25021
+ logistics_shipping_note_follows_slip: {
25022
+ Args: never;
25023
+ Returns: boolean;
25024
+ };
24124
25025
  logistics_shipping_note_from_barcode: {
24125
25026
  Args: {
24126
25027
  p_allow_reprint?: boolean;
@@ -24129,10 +25030,86 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
24129
25030
  };
24130
25031
  Returns: import("../integrations/supabase/types").Json;
24131
25032
  };
25033
+ logistics_shipping_note_job_for_slip: {
25034
+ Args: {
25035
+ _slip_job_id: string;
25036
+ };
25037
+ Returns: string;
25038
+ };
25039
+ logistics_shipping_notes_wake_all: {
25040
+ Args: never;
25041
+ Returns: import("../integrations/supabase/types").Json;
25042
+ };
25043
+ logistics_slip_is_floriday: {
25044
+ Args: {
25045
+ _slip_job_id: string;
25046
+ };
25047
+ Returns: boolean;
25048
+ };
25049
+ logistics_slip_note_claim: {
25050
+ Args: {
25051
+ _lease_seconds?: number;
25052
+ _limit?: number;
25053
+ };
25054
+ Returns: {
25055
+ attempts: number;
25056
+ batch_key: string | null;
25057
+ cart_id: string | null;
25058
+ created_at: string;
25059
+ error: string | null;
25060
+ error_code: string | null;
25061
+ fulfillment_order_id: string | null;
25062
+ id: string;
25063
+ locked_until: string | null;
25064
+ next_attempt_at: string | null;
25065
+ order_id: string | null;
25066
+ order_number: string | null;
25067
+ print_job_id: string | null;
25068
+ printer_id: string | null;
25069
+ retry_class: string | null;
25070
+ slip_job_id: string;
25071
+ status: string;
25072
+ updated_at: string;
25073
+ }[];
25074
+ SetofOptions: {
25075
+ from: "*";
25076
+ to: "logistics_slip_shipping_note";
25077
+ isOneToOne: false;
25078
+ isSetofReturn: true;
25079
+ };
25080
+ };
25081
+ logistics_slip_note_finish: {
25082
+ Args: {
25083
+ _error?: string;
25084
+ _error_code?: string;
25085
+ _fulfillment_order_id?: string;
25086
+ _id: string;
25087
+ _ok: boolean;
25088
+ _print_job_id?: string;
25089
+ _status?: string;
25090
+ };
25091
+ Returns: undefined;
25092
+ };
25093
+ logistics_slip_note_keep_waiting: {
25094
+ Args: {
25095
+ _class?: string;
25096
+ _id: string;
25097
+ _reason: string;
25098
+ };
25099
+ Returns: undefined;
25100
+ };
24132
25101
  logistics_sticker_follows_slip: {
24133
25102
  Args: never;
24134
25103
  Returns: boolean;
24135
25104
  };
25105
+ logistics_subtract_working_minutes: {
25106
+ Args: {
25107
+ p_deadline: string;
25108
+ p_max_workdays?: number;
25109
+ p_minutes: number;
25110
+ };
25111
+ Returns: import("../integrations/supabase/types").Json;
25112
+ };
24136
25113
  logistics_supersede_stale_tasks: {
24137
25114
  Args: {
24138
25115
  p_keep: string[];
@@ -24169,6 +25146,46 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
24169
25146
  Args: never;
24170
25147
  Returns: string;
24171
25148
  };
25149
+ logistics_timezone_options: {
25150
+ Args: never;
25151
+ Returns: {
25152
+ name: string;
25153
+ }[];
25154
+ };
25155
+ logistics_trace: {
25156
+ Args: {
25157
+ p: import("../integrations/supabase/types").Json;
25158
+ };
25159
+ Returns: string;
25160
+ };
25161
+ logistics_trace_batch: {
25162
+ Args: {
25163
+ p: import("../integrations/supabase/types").Json;
25164
+ };
25165
+ Returns: number;
25166
+ };
25167
+ logistics_trace_orders: {
25168
+ Args: {
25169
+ p_limit?: number;
25170
+ p_search?: string;
25171
+ p_since?: string;
25172
+ p_status?: string;
25173
+ };
25174
+ Returns: import("../integrations/supabase/types").Json;
25175
+ };
25176
+ logistics_trace_redact: {
25177
+ Args: {
25178
+ p: import("../integrations/supabase/types").Json;
25179
+ };
25180
+ Returns: import("../integrations/supabase/types").Json;
25181
+ };
25182
+ logistics_trace_timeline: {
25183
+ Args: {
25184
+ p_limit?: number;
25185
+ p_order_ref: string;
25186
+ };
25187
+ Returns: import("../integrations/supabase/types").Json;
25188
+ };
24172
25189
  logistics_upsert_task: {
24173
25190
  Args: {
24174
25191
  p_buffer_ref: string;
@@ -24188,6 +25205,16 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
24188
25205
  };
24189
25206
  Returns: string;
24190
25207
  };
25208
+ logistics_valid_timezone: {
25209
+ Args: {
25210
+ _tz: string;
25211
+ };
25212
+ Returns: boolean;
25213
+ };
25214
+ logistics_working_hours_status: {
25215
+ Args: never;
25216
+ Returns: import("../integrations/supabase/types").Json;
25217
+ };
24191
25218
  logistics_write_buffer_layer_positions: {
24192
25219
  Args: {
24193
25220
  p_buffer_id: string;
@@ -25200,6 +26227,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
25200
26227
  };
25201
26228
  Returns: undefined;
25202
26229
  };
26230
+ prune_floriday_api_log: {
26231
+ Args: never;
26232
+ Returns: number;
26233
+ };
25203
26234
  quote_create_from_source: {
25204
26235
  Args: {
25205
26236
  _payload?: import("../integrations/supabase/types").Json;
@@ -25633,6 +26664,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
25633
26664
  };
25634
26665
  Returns: number;
25635
26666
  };
26667
+ schedule_floriday_catalog_prices_sync: {
26668
+ Args: {
26669
+ p_apikey: string;
26670
+ p_url: string;
26671
+ };
26672
+ Returns: number;
26673
+ };
25636
26674
  schedule_floriday_clock_presales_sync: {
25637
26675
  Args: {
25638
26676
  p_apikey: string;
@@ -25933,6 +26971,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
25933
26971
  };
25934
26972
  Returns: undefined;
25935
26973
  };
26974
+ sync_floriday_prices_into_price_groups: {
26975
+ Args: never;
26976
+ Returns: number;
26977
+ };
25936
26978
  sync_layer_stock: {
25937
26979
  Args: {
25938
26980
  p_product_id: string;
@@ -26065,6 +27107,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
26065
27107
  Args: never;
26066
27108
  Returns: string;
26067
27109
  };
27110
+ voorraad_cleanup_old_rows: {
27111
+ Args: never;
27112
+ Returns: import("../integrations/supabase/types").Json;
27113
+ };
26068
27114
  wake_print_queue: {
26069
27115
  Args: {
26070
27116
  _min_interval_ms?: number;
@@ -28367,6 +29413,45 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
28367
29413
  };
28368
29414
  Relationships: [];
28369
29415
  };
29416
+ customer_product_stickers: {
29417
+ Row: {
29418
+ created_at: string;
29419
+ customer_key: string;
29420
+ file_name: string;
29421
+ file_path: string;
29422
+ file_size: number | null;
29423
+ id: string;
29424
+ mime_type: string | null;
29425
+ trade_item_key: string;
29426
+ updated_at: string;
29427
+ uploaded_by: string | null;
29428
+ };
29429
+ Insert: {
29430
+ created_at?: string;
29431
+ customer_key: string;
29432
+ file_name: string;
29433
+ file_path: string;
29434
+ file_size?: number | null;
29435
+ id?: string;
29436
+ mime_type?: string | null;
29437
+ trade_item_key: string;
29438
+ updated_at?: string;
29439
+ uploaded_by?: string | null;
29440
+ };
29441
+ Update: {
29442
+ created_at?: string;
29443
+ customer_key?: string;
29444
+ file_name?: string;
29445
+ file_path?: string;
29446
+ file_size?: number | null;
29447
+ id?: string;
29448
+ mime_type?: string | null;
29449
+ trade_item_key?: string;
29450
+ updated_at?: string;
29451
+ uploaded_by?: string | null;
29452
+ };
29453
+ Relationships: [];
29454
+ };
28370
29455
  customer_selected_assortment: {
28371
29456
  Row: {
28372
29457
  article_number: string | null;
@@ -28415,6 +29500,30 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
28415
29500
  referencedColumns: ["id"];
28416
29501
  }];
28417
29502
  };
29503
+ customer_sticker_settings: {
29504
+ Row: {
29505
+ created_at: string;
29506
+ customer_key: string;
29507
+ height_mm: number;
29508
+ updated_at: string;
29509
+ width_mm: number;
29510
+ };
29511
+ Insert: {
29512
+ created_at?: string;
29513
+ customer_key: string;
29514
+ height_mm?: number;
29515
+ updated_at?: string;
29516
+ width_mm?: number;
29517
+ };
29518
+ Update: {
29519
+ created_at?: string;
29520
+ customer_key?: string;
29521
+ height_mm?: number;
29522
+ updated_at?: string;
29523
+ width_mm?: number;
29524
+ };
29525
+ Relationships: [];
29526
+ };
28418
29527
  customer_trade_settings: {
28419
29528
  Row: {
28420
29529
  category: string;
@@ -31745,6 +32854,102 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
31745
32854
  referencedColumns: ["id"];
31746
32855
  }];
31747
32856
  };
32857
+ floriday_api_log: {
32858
+ Row: {
32859
+ action: string | null;
32860
+ caller: string | null;
32861
+ connection_id: string | null;
32862
+ created_at: string;
32863
+ cursor_from: number | null;
32864
+ direction: string;
32865
+ duration_ms: number | null;
32866
+ environment: string | null;
32867
+ error: string | null;
32868
+ floriday_id: string | null;
32869
+ floriday_reference: string | null;
32870
+ http_status: number;
32871
+ id: string;
32872
+ item_count: number | null;
32873
+ kind: string | null;
32874
+ local_id: string | null;
32875
+ local_reference: string | null;
32876
+ method: string;
32877
+ module: string | null;
32878
+ ok: boolean;
32879
+ path: string;
32880
+ request: import("../integrations/supabase/types").Json | null;
32881
+ resource_type: string | null;
32882
+ response: import("../integrations/supabase/types").Json | null;
32883
+ write_log_id: string | null;
32884
+ };
32885
+ Insert: {
32886
+ action?: string | null;
32887
+ caller?: string | null;
32888
+ connection_id?: string | null;
32889
+ created_at?: string;
32890
+ cursor_from?: number | null;
32891
+ direction: string;
32892
+ duration_ms?: number | null;
32893
+ environment?: string | null;
32894
+ error?: string | null;
32895
+ floriday_id?: string | null;
32896
+ floriday_reference?: string | null;
32897
+ http_status?: number;
32898
+ id?: string;
32899
+ item_count?: number | null;
32900
+ kind?: string | null;
32901
+ local_id?: string | null;
32902
+ local_reference?: string | null;
32903
+ method: string;
32904
+ module?: string | null;
32905
+ ok?: boolean;
32906
+ path: string;
32907
+ request?: import("../integrations/supabase/types").Json | null;
32908
+ resource_type?: string | null;
32909
+ response?: import("../integrations/supabase/types").Json | null;
32910
+ write_log_id?: string | null;
32911
+ };
32912
+ Update: {
32913
+ action?: string | null;
32914
+ caller?: string | null;
32915
+ connection_id?: string | null;
32916
+ created_at?: string;
32917
+ cursor_from?: number | null;
32918
+ direction?: string;
32919
+ duration_ms?: number | null;
32920
+ environment?: string | null;
32921
+ error?: string | null;
32922
+ floriday_id?: string | null;
32923
+ floriday_reference?: string | null;
32924
+ http_status?: number;
32925
+ id?: string;
32926
+ item_count?: number | null;
32927
+ kind?: string | null;
32928
+ local_id?: string | null;
32929
+ local_reference?: string | null;
32930
+ method?: string;
32931
+ module?: string | null;
32932
+ ok?: boolean;
32933
+ path?: string;
32934
+ request?: import("../integrations/supabase/types").Json | null;
32935
+ resource_type?: string | null;
32936
+ response?: import("../integrations/supabase/types").Json | null;
32937
+ write_log_id?: string | null;
32938
+ };
32939
+ Relationships: [{
32940
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32941
+ columns: ["connection_id"];
32942
+ isOneToOne: false;
32943
+ referencedRelation: "floriday_connections";
32944
+ referencedColumns: ["id"];
32945
+ }, {
32946
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32947
+ columns: ["write_log_id"];
32948
+ isOneToOne: false;
32949
+ referencedRelation: "floriday_write_log";
32950
+ referencedColumns: ["id"];
32951
+ }];
32952
+ };
31748
32953
  floriday_auction_letters_cache: {
31749
32954
  Row: {
31750
32955
  auction_letter_code: string;
@@ -31952,6 +33157,84 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
31952
33157
  referencedColumns: ["id"];
31953
33158
  }];
31954
33159
  };
33160
+ floriday_catalog_prices_cache: {
33161
+ Row: {
33162
+ connection_id: string;
33163
+ created_at: string;
33164
+ currency: string;
33165
+ id: string;
33166
+ is_deleted: boolean;
33167
+ price: number | null;
33168
+ price_group_id: string | null;
33169
+ price_group_name: string | null;
33170
+ price_type: string;
33171
+ raw: import("../integrations/supabase/types").Json | null;
33172
+ sales_unit: string | null;
33173
+ sequence_number: number;
33174
+ supplier_article_code: string | null;
33175
+ supply_line_id: string;
33176
+ synced_at: string;
33177
+ trade_item_id: string | null;
33178
+ updated_at: string;
33179
+ valid_from: string | null;
33180
+ valid_to: string | null;
33181
+ week: number | null;
33182
+ year: number | null;
33183
+ };
33184
+ Insert: {
33185
+ connection_id: string;
33186
+ created_at?: string;
33187
+ currency?: string;
33188
+ id?: string;
33189
+ is_deleted?: boolean;
33190
+ price?: number | null;
33191
+ price_group_id?: string | null;
33192
+ price_group_name?: string | null;
33193
+ price_type?: string;
33194
+ raw?: import("../integrations/supabase/types").Json | null;
33195
+ sales_unit?: string | null;
33196
+ sequence_number?: number;
33197
+ supplier_article_code?: string | null;
33198
+ supply_line_id: string;
33199
+ synced_at?: string;
33200
+ trade_item_id?: string | null;
33201
+ updated_at?: string;
33202
+ valid_from?: string | null;
33203
+ valid_to?: string | null;
33204
+ week?: number | null;
33205
+ year?: number | null;
33206
+ };
33207
+ Update: {
33208
+ connection_id?: string;
33209
+ created_at?: string;
33210
+ currency?: string;
33211
+ id?: string;
33212
+ is_deleted?: boolean;
33213
+ price?: number | null;
33214
+ price_group_id?: string | null;
33215
+ price_group_name?: string | null;
33216
+ price_type?: string;
33217
+ raw?: import("../integrations/supabase/types").Json | null;
33218
+ sales_unit?: string | null;
33219
+ sequence_number?: number;
33220
+ supplier_article_code?: string | null;
33221
+ supply_line_id?: string;
33222
+ synced_at?: string;
33223
+ trade_item_id?: string | null;
33224
+ updated_at?: string;
33225
+ valid_from?: string | null;
33226
+ valid_to?: string | null;
33227
+ week?: number | null;
33228
+ year?: number | null;
33229
+ };
33230
+ Relationships: [{
33231
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33232
+ columns: ["connection_id"];
33233
+ isOneToOne: false;
33234
+ referencedRelation: "floriday_connections";
33235
+ referencedColumns: ["id"];
33236
+ }];
33237
+ };
31955
33238
  floriday_clock_presales_cache: {
31956
33239
  Row: {
31957
33240
  buyer_organization_id: string | null;
@@ -32867,6 +34150,69 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
32867
34150
  referencedColumns: ["id"];
32868
34151
  }];
32869
34152
  };
34153
+ floriday_link_templates: {
34154
+ Row: {
34155
+ created_at: string;
34156
+ floriday_url_template: string | null;
34157
+ is_active: boolean;
34158
+ label: string;
34159
+ local_url_template: string | null;
34160
+ resource_type: string;
34161
+ updated_at: string;
34162
+ };
34163
+ Insert: {
34164
+ created_at?: string;
34165
+ floriday_url_template?: string | null;
34166
+ is_active?: boolean;
34167
+ label: string;
34168
+ local_url_template?: string | null;
34169
+ resource_type: string;
34170
+ updated_at?: string;
34171
+ };
34172
+ Update: {
34173
+ created_at?: string;
34174
+ floriday_url_template?: string | null;
34175
+ is_active?: boolean;
34176
+ label?: string;
34177
+ local_url_template?: string | null;
34178
+ resource_type?: string;
34179
+ updated_at?: string;
34180
+ };
34181
+ Relationships: [];
34182
+ };
34183
+ floriday_log_retention: {
34184
+ Row: {
34185
+ created_at: string;
34186
+ direction: string | null;
34187
+ id: string;
34188
+ keep_failed_days: number | null;
34189
+ keep_ok_days: number | null;
34190
+ note: string | null;
34191
+ resource_type: string | null;
34192
+ updated_at: string;
34193
+ };
34194
+ Insert: {
34195
+ created_at?: string;
34196
+ direction?: string | null;
34197
+ id?: string;
34198
+ keep_failed_days?: number | null;
34199
+ keep_ok_days?: number | null;
34200
+ note?: string | null;
34201
+ resource_type?: string | null;
34202
+ updated_at?: string;
34203
+ };
34204
+ Update: {
34205
+ created_at?: string;
34206
+ direction?: string | null;
34207
+ id?: string;
34208
+ keep_failed_days?: number | null;
34209
+ keep_ok_days?: number | null;
34210
+ note?: string | null;
34211
+ resource_type?: string | null;
34212
+ updated_at?: string;
34213
+ };
34214
+ Relationships: [];
34215
+ };
32870
34216
  floriday_logistic_labels_cache: {
32871
34217
  Row: {
32872
34218
  byte_size: number | null;
@@ -36220,22 +37566,31 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36220
37566
  };
36221
37567
  logistics_floriday_push_refusals: {
36222
37568
  Row: {
37569
+ action: string | null;
36223
37570
  created_at: string;
36224
37571
  id: string;
36225
37572
  order_ref: string;
36226
37573
  reason: string;
37574
+ source_module: string | null;
37575
+ source_shell: string | null;
36227
37576
  };
36228
37577
  Insert: {
37578
+ action?: string | null;
36229
37579
  created_at?: string;
36230
37580
  id?: string;
36231
37581
  order_ref: string;
36232
37582
  reason: string;
37583
+ source_module?: string | null;
37584
+ source_shell?: string | null;
36233
37585
  };
36234
37586
  Update: {
37587
+ action?: string | null;
36235
37588
  created_at?: string;
36236
37589
  id?: string;
36237
37590
  order_ref?: string;
36238
37591
  reason?: string;
37592
+ source_module?: string | null;
37593
+ source_shell?: string | null;
36239
37594
  };
36240
37595
  Relationships: [];
36241
37596
  };
@@ -36314,6 +37669,42 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36314
37669
  };
36315
37670
  Relationships: [];
36316
37671
  };
37672
+ logistics_floriday_status_sends: {
37673
+ Row: {
37674
+ action: string;
37675
+ created_at: string;
37676
+ detail: string | null;
37677
+ http_status: number | null;
37678
+ id: string;
37679
+ ok: boolean;
37680
+ order_ref: string;
37681
+ source_module: string | null;
37682
+ source_shell: string | null;
37683
+ };
37684
+ Insert: {
37685
+ action: string;
37686
+ created_at?: string;
37687
+ detail?: string | null;
37688
+ http_status?: number | null;
37689
+ id?: string;
37690
+ ok?: boolean;
37691
+ order_ref: string;
37692
+ source_module?: string | null;
37693
+ source_shell?: string | null;
37694
+ };
37695
+ Update: {
37696
+ action?: string;
37697
+ created_at?: string;
37698
+ detail?: string | null;
37699
+ http_status?: number | null;
37700
+ id?: string;
37701
+ ok?: boolean;
37702
+ order_ref?: string;
37703
+ source_module?: string | null;
37704
+ source_shell?: string | null;
37705
+ };
37706
+ Relationships: [];
37707
+ };
36317
37708
  logistics_formulas: {
36318
37709
  Row: {
36319
37710
  created_at: string;
@@ -36386,6 +37777,108 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36386
37777
  };
36387
37778
  Relationships: [];
36388
37779
  };
37780
+ logistics_opening_exceptions: {
37781
+ Row: {
37782
+ closes: string | null;
37783
+ created_at: string;
37784
+ day: string;
37785
+ id: string;
37786
+ is_closed: boolean;
37787
+ note: string | null;
37788
+ opens: string | null;
37789
+ };
37790
+ Insert: {
37791
+ closes?: string | null;
37792
+ created_at?: string;
37793
+ day: string;
37794
+ id?: string;
37795
+ is_closed?: boolean;
37796
+ note?: string | null;
37797
+ opens?: string | null;
37798
+ };
37799
+ Update: {
37800
+ closes?: string | null;
37801
+ created_at?: string;
37802
+ day?: string;
37803
+ id?: string;
37804
+ is_closed?: boolean;
37805
+ note?: string | null;
37806
+ opens?: string | null;
37807
+ };
37808
+ Relationships: [];
37809
+ };
37810
+ logistics_opening_hours: {
37811
+ Row: {
37812
+ closes: string;
37813
+ created_at: string;
37814
+ id: string;
37815
+ is_active: boolean;
37816
+ note: string | null;
37817
+ opens: string;
37818
+ weekday: number;
37819
+ };
37820
+ Insert: {
37821
+ closes: string;
37822
+ created_at?: string;
37823
+ id?: string;
37824
+ is_active?: boolean;
37825
+ note?: string | null;
37826
+ opens: string;
37827
+ weekday: number;
37828
+ };
37829
+ Update: {
37830
+ closes?: string;
37831
+ created_at?: string;
37832
+ id?: string;
37833
+ is_active?: boolean;
37834
+ note?: string | null;
37835
+ opens?: string;
37836
+ weekday?: number;
37837
+ };
37838
+ Relationships: [];
37839
+ };
37840
+ logistics_pick_data_requests: {
37841
+ Row: {
37842
+ actions: import("../integrations/supabase/types").Json;
37843
+ created_at: string;
37844
+ event_id: string | null;
37845
+ finished_at: string | null;
37846
+ id: string;
37847
+ missing: import("../integrations/supabase/types").Json;
37848
+ order_ref: string;
37849
+ reason: string | null;
37850
+ result: import("../integrations/supabase/types").Json | null;
37851
+ status: string;
37852
+ unit_ref: string | null;
37853
+ };
37854
+ Insert: {
37855
+ actions?: import("../integrations/supabase/types").Json;
37856
+ created_at?: string;
37857
+ event_id?: string | null;
37858
+ finished_at?: string | null;
37859
+ id?: string;
37860
+ missing?: import("../integrations/supabase/types").Json;
37861
+ order_ref: string;
37862
+ reason?: string | null;
37863
+ result?: import("../integrations/supabase/types").Json | null;
37864
+ status?: string;
37865
+ unit_ref?: string | null;
37866
+ };
37867
+ Update: {
37868
+ actions?: import("../integrations/supabase/types").Json;
37869
+ created_at?: string;
37870
+ event_id?: string | null;
37871
+ finished_at?: string | null;
37872
+ id?: string;
37873
+ missing?: import("../integrations/supabase/types").Json;
37874
+ order_ref?: string;
37875
+ reason?: string | null;
37876
+ result?: import("../integrations/supabase/types").Json | null;
37877
+ status?: string;
37878
+ unit_ref?: string | null;
37879
+ };
37880
+ Relationships: [];
37881
+ };
36389
37882
  logistics_pickup_moments: {
36390
37883
  Row: {
36391
37884
  carrier_ref: string | null;
@@ -36845,6 +38338,69 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36845
38338
  };
36846
38339
  Relationships: [];
36847
38340
  };
38341
+ logistics_slip_shipping_note: {
38342
+ Row: {
38343
+ attempts: number;
38344
+ batch_key: string | null;
38345
+ cart_id: string | null;
38346
+ created_at: string;
38347
+ error: string | null;
38348
+ error_code: string | null;
38349
+ fulfillment_order_id: string | null;
38350
+ id: string;
38351
+ locked_until: string | null;
38352
+ next_attempt_at: string | null;
38353
+ order_id: string | null;
38354
+ order_number: string | null;
38355
+ print_job_id: string | null;
38356
+ printer_id: string | null;
38357
+ retry_class: string | null;
38358
+ slip_job_id: string;
38359
+ status: string;
38360
+ updated_at: string;
38361
+ };
38362
+ Insert: {
38363
+ attempts?: number;
38364
+ batch_key?: string | null;
38365
+ cart_id?: string | null;
38366
+ created_at?: string;
38367
+ error?: string | null;
38368
+ error_code?: string | null;
38369
+ fulfillment_order_id?: string | null;
38370
+ id?: string;
38371
+ locked_until?: string | null;
38372
+ next_attempt_at?: string | null;
38373
+ order_id?: string | null;
38374
+ order_number?: string | null;
38375
+ print_job_id?: string | null;
38376
+ printer_id?: string | null;
38377
+ retry_class?: string | null;
38378
+ slip_job_id: string;
38379
+ status?: string;
38380
+ updated_at?: string;
38381
+ };
38382
+ Update: {
38383
+ attempts?: number;
38384
+ batch_key?: string | null;
38385
+ cart_id?: string | null;
38386
+ created_at?: string;
38387
+ error?: string | null;
38388
+ error_code?: string | null;
38389
+ fulfillment_order_id?: string | null;
38390
+ id?: string;
38391
+ locked_until?: string | null;
38392
+ next_attempt_at?: string | null;
38393
+ order_id?: string | null;
38394
+ order_number?: string | null;
38395
+ print_job_id?: string | null;
38396
+ printer_id?: string | null;
38397
+ retry_class?: string | null;
38398
+ slip_job_id?: string;
38399
+ status?: string;
38400
+ updated_at?: string;
38401
+ };
38402
+ Relationships: [];
38403
+ };
36848
38404
  logistics_staff_planning: {
36849
38405
  Row: {
36850
38406
  created_at: string;
@@ -37178,6 +38734,129 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
37178
38734
  };
37179
38735
  Relationships: [];
37180
38736
  };
38737
+ logistics_time_settings: {
38738
+ Row: {
38739
+ id: boolean;
38740
+ timezone: string;
38741
+ updated_at: string;
38742
+ };
38743
+ Insert: {
38744
+ id?: boolean;
38745
+ timezone: string;
38746
+ updated_at?: string;
38747
+ };
38748
+ Update: {
38749
+ id?: boolean;
38750
+ timezone?: string;
38751
+ updated_at?: string;
38752
+ };
38753
+ Relationships: [];
38754
+ };
38755
+ logistics_trace_events: {
38756
+ Row: {
38757
+ actor: string | null;
38758
+ attempts: number;
38759
+ cart_ref: string | null;
38760
+ created_at: string;
38761
+ db_action: string | null;
38762
+ db_new: import("../integrations/supabase/types").Json | null;
38763
+ db_old: import("../integrations/supabase/types").Json | null;
38764
+ db_record: string | null;
38765
+ db_table: string | null;
38766
+ decision: string | null;
38767
+ duration_ms: number | null;
38768
+ error: string | null;
38769
+ external_action: string | null;
38770
+ external_ref: string | null;
38771
+ external_response: import("../integrations/supabase/types").Json | null;
38772
+ external_status: string | null;
38773
+ external_system: string | null;
38774
+ id: string;
38775
+ input: import("../integrations/supabase/types").Json | null;
38776
+ next_attempt_at: string | null;
38777
+ order_ref: string | null;
38778
+ order_source: string | null;
38779
+ output: import("../integrations/supabase/types").Json | null;
38780
+ phase: string;
38781
+ reads: import("../integrations/supabase/types").Json | null;
38782
+ reason: string | null;
38783
+ rule: string | null;
38784
+ slip_ref: string | null;
38785
+ status: string;
38786
+ step: string;
38787
+ trace_id: string;
38788
+ values_used: import("../integrations/supabase/types").Json | null;
38789
+ };
38790
+ Insert: {
38791
+ actor?: string | null;
38792
+ attempts?: number;
38793
+ cart_ref?: string | null;
38794
+ created_at?: string;
38795
+ db_action?: string | null;
38796
+ db_new?: import("../integrations/supabase/types").Json | null;
38797
+ db_old?: import("../integrations/supabase/types").Json | null;
38798
+ db_record?: string | null;
38799
+ db_table?: string | null;
38800
+ decision?: string | null;
38801
+ duration_ms?: number | null;
38802
+ error?: string | null;
38803
+ external_action?: string | null;
38804
+ external_ref?: string | null;
38805
+ external_response?: import("../integrations/supabase/types").Json | null;
38806
+ external_status?: string | null;
38807
+ external_system?: string | null;
38808
+ id?: string;
38809
+ input?: import("../integrations/supabase/types").Json | null;
38810
+ next_attempt_at?: string | null;
38811
+ order_ref?: string | null;
38812
+ order_source?: string | null;
38813
+ output?: import("../integrations/supabase/types").Json | null;
38814
+ phase: string;
38815
+ reads?: import("../integrations/supabase/types").Json | null;
38816
+ reason?: string | null;
38817
+ rule?: string | null;
38818
+ slip_ref?: string | null;
38819
+ status: string;
38820
+ step: string;
38821
+ trace_id?: string;
38822
+ values_used?: import("../integrations/supabase/types").Json | null;
38823
+ };
38824
+ Update: {
38825
+ actor?: string | null;
38826
+ attempts?: number;
38827
+ cart_ref?: string | null;
38828
+ created_at?: string;
38829
+ db_action?: string | null;
38830
+ db_new?: import("../integrations/supabase/types").Json | null;
38831
+ db_old?: import("../integrations/supabase/types").Json | null;
38832
+ db_record?: string | null;
38833
+ db_table?: string | null;
38834
+ decision?: string | null;
38835
+ duration_ms?: number | null;
38836
+ error?: string | null;
38837
+ external_action?: string | null;
38838
+ external_ref?: string | null;
38839
+ external_response?: import("../integrations/supabase/types").Json | null;
38840
+ external_status?: string | null;
38841
+ external_system?: string | null;
38842
+ id?: string;
38843
+ input?: import("../integrations/supabase/types").Json | null;
38844
+ next_attempt_at?: string | null;
38845
+ order_ref?: string | null;
38846
+ order_source?: string | null;
38847
+ output?: import("../integrations/supabase/types").Json | null;
38848
+ phase?: string;
38849
+ reads?: import("../integrations/supabase/types").Json | null;
38850
+ reason?: string | null;
38851
+ rule?: string | null;
38852
+ slip_ref?: string | null;
38853
+ status?: string;
38854
+ step?: string;
38855
+ trace_id?: string;
38856
+ values_used?: import("../integrations/supabase/types").Json | null;
38857
+ };
38858
+ Relationships: [];
38859
+ };
37181
38860
  logistics_variables: {
37182
38861
  Row: {
37183
38862
  created_at: string;
@@ -39568,6 +41247,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
39568
41247
  customer_name: string;
39569
41248
  deleted_at: string | null;
39570
41249
  delivery_date: string | null;
41250
+ floriday_order_group_key: string | null;
39571
41251
  floriday_sales_order_id: string | null;
39572
41252
  id: string;
39573
41253
  invoice_due_at: string | null;
@@ -39595,6 +41275,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
39595
41275
  customer_name?: string;
39596
41276
  deleted_at?: string | null;
39597
41277
  delivery_date?: string | null;
41278
+ floriday_order_group_key?: string | null;
39598
41279
  floriday_sales_order_id?: string | null;
39599
41280
  id?: string;
39600
41281
  invoice_due_at?: string | null;
@@ -39622,6 +41303,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
39622
41303
  customer_name?: string;
39623
41304
  deleted_at?: string | null;
39624
41305
  delivery_date?: string | null;
41306
+ floriday_order_group_key?: string | null;
39625
41307
  floriday_sales_order_id?: string | null;
39626
41308
  id?: string;
39627
41309
  invoice_due_at?: string | null;
@@ -45485,6 +47167,36 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
45485
47167
  referencedColumns: ["id"];
45486
47168
  }];
45487
47169
  };
47170
+ voorraad_buffer_state: {
47171
+ Row: {
47172
+ buffer_id: string;
47173
+ buffer_key: string | null;
47174
+ closed_at: string | null;
47175
+ created_at: string;
47176
+ detached_orders: import("../integrations/supabase/types").Json;
47177
+ reason: string | null;
47178
+ updated_at: string;
47179
+ };
47180
+ Insert: {
47181
+ buffer_id: string;
47182
+ buffer_key?: string | null;
47183
+ closed_at?: string | null;
47184
+ created_at?: string;
47185
+ detached_orders?: import("../integrations/supabase/types").Json;
47186
+ reason?: string | null;
47187
+ updated_at?: string;
47188
+ };
47189
+ Update: {
47190
+ buffer_id?: string;
47191
+ buffer_key?: string | null;
47192
+ closed_at?: string | null;
47193
+ created_at?: string;
47194
+ detached_orders?: import("../integrations/supabase/types").Json;
47195
+ reason?: string | null;
47196
+ updated_at?: string;
47197
+ };
47198
+ Relationships: [];
47199
+ };
45488
47200
  voorraad_custom_fields: {
45489
47201
  Row: {
45490
47202
  created_at: string;
@@ -45527,6 +47239,36 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
45527
47239
  };
45528
47240
  Relationships: [];
45529
47241
  };
47242
+ voorraad_logistics_event_log: {
47243
+ Row: {
47244
+ created_at: string;
47245
+ event_id: string;
47246
+ event_type: string;
47247
+ order_ref: string | null;
47248
+ processed_at: string;
47249
+ result: import("../integrations/supabase/types").Json;
47250
+ updated_at: string;
47251
+ };
47252
+ Insert: {
47253
+ created_at?: string;
47254
+ event_id: string;
47255
+ event_type: string;
47256
+ order_ref?: string | null;
47257
+ processed_at?: string;
47258
+ result?: import("../integrations/supabase/types").Json;
47259
+ updated_at?: string;
47260
+ };
47261
+ Update: {
47262
+ created_at?: string;
47263
+ event_id?: string;
47264
+ event_type?: string;
47265
+ order_ref?: string | null;
47266
+ processed_at?: string;
47267
+ result?: import("../integrations/supabase/types").Json;
47268
+ updated_at?: string;
47269
+ };
47270
+ Relationships: [];
47271
+ };
45530
47272
  voorraad_media_upload_failures: {
45531
47273
  Row: {
45532
47274
  action: string;
@@ -47687,6 +49429,15 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
47687
49429
  Args: never;
47688
49430
  Returns: boolean;
47689
49431
  };
49432
+ cancel_open_print_jobs: {
49433
+ Args: {
49434
+ _cutoff: string;
49435
+ };
49436
+ Returns: {
49437
+ extern_job_id: string;
49438
+ id: string;
49439
+ }[];
49440
+ };
47690
49441
  check_offer_product_available_stock: {
47691
49442
  Args: {
47692
49443
  p_campaign_product_id: string;
@@ -49225,6 +50976,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49225
50976
  };
49226
50977
  Returns: string;
49227
50978
  };
50979
+ logistics_cart_checkin_at: {
50980
+ Args: {
50981
+ p_cart_id: string;
50982
+ };
50983
+ Returns: string;
50984
+ };
49228
50985
  logistics_cart_handled: {
49229
50986
  Args: {
49230
50987
  p_cart_index: number;
@@ -49258,10 +51015,22 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49258
51015
  task_status: string;
49259
51016
  }[];
49260
51017
  };
51018
+ logistics_cart_is_full: {
51019
+ Args: {
51020
+ p_cart_id: string;
51021
+ };
51022
+ Returns: boolean;
51023
+ };
49261
51024
  logistics_cart_layout_method: {
49262
51025
  Args: never;
49263
51026
  Returns: import("../integrations/supabase/types").Json;
49264
51027
  };
51028
+ logistics_cart_order_refs: {
51029
+ Args: {
51030
+ p_cart_id: string;
51031
+ };
51032
+ Returns: string[];
51033
+ };
49265
51034
  logistics_cart_plan_overview: {
49266
51035
  Args: {
49267
51036
  p_days?: number;
@@ -49281,6 +51050,24 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49281
51050
  };
49282
51051
  Returns: import("../integrations/supabase/types").Json;
49283
51052
  };
51053
+ logistics_cart_plan_status_core: {
51054
+ Args: {
51055
+ p_ref: string;
51056
+ };
51057
+ Returns: import("../integrations/supabase/types").Json;
51058
+ };
51059
+ logistics_cart_release_reason: {
51060
+ Args: {
51061
+ p_cart_id: string;
51062
+ };
51063
+ Returns: string;
51064
+ };
51065
+ logistics_cart_released: {
51066
+ Args: {
51067
+ p_cart_id: string;
51068
+ };
51069
+ Returns: boolean;
51070
+ };
49284
51071
  logistics_cart_seq: {
49285
51072
  Args: {
49286
51073
  p_order_uuid?: string;
@@ -49331,6 +51118,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49331
51118
  unit_ref: string;
49332
51119
  }[];
49333
51120
  };
51121
+ logistics_carts_per_print: {
51122
+ Args: never;
51123
+ Returns: number;
51124
+ };
49334
51125
  logistics_check_order_allowed: {
49335
51126
  Args: {
49336
51127
  p_lines: import("../integrations/supabase/types").Json;
@@ -49434,6 +51225,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49434
51225
  isSetofReturn: false;
49435
51226
  };
49436
51227
  };
51228
+ logistics_cleanup_orphan_print_jobs: {
51229
+ Args: never;
51230
+ Returns: import("../integrations/supabase/types").Json;
51231
+ };
49437
51232
  logistics_complete_task: {
49438
51233
  Args: {
49439
51234
  p_result?: import("../integrations/supabase/types").Json;
@@ -49496,6 +51291,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49496
51291
  station_carts: number;
49497
51292
  }[];
49498
51293
  };
51294
+ logistics_control_complete_cart: {
51295
+ Args: {
51296
+ p_cart_id: string;
51297
+ };
51298
+ Returns: number;
51299
+ };
49499
51300
  logistics_control_scan_approve: {
49500
51301
  Args: {
49501
51302
  p_allow_reprint?: boolean;
@@ -49575,6 +51376,15 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49575
51376
  Args: never;
49576
51377
  Returns: import("../integrations/supabase/types").Json;
49577
51378
  };
51379
+ logistics_day_windows: {
51380
+ Args: {
51381
+ p_day: string;
51382
+ };
51383
+ Returns: {
51384
+ win_end: string;
51385
+ win_start: string;
51386
+ }[];
51387
+ };
49578
51388
  logistics_delay_customer_email: {
49579
51389
  Args: {
49580
51390
  p_customer: string;
@@ -49642,6 +51452,17 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49642
51452
  };
49643
51453
  Returns: import("../integrations/supabase/types").Json;
49644
51454
  };
51455
+ logistics_enqueue_shipping_note_with_slip: {
51456
+ Args: {
51457
+ _cart_id: string;
51458
+ _is_herprint: boolean;
51459
+ _printer_id: string;
51460
+ _queue_item_id: string;
51461
+ _session_id: string;
51462
+ _slip_job_id: string;
51463
+ };
51464
+ Returns: string;
51465
+ };
49645
51466
  logistics_enqueue_sticker_with_slip: {
49646
51467
  Args: {
49647
51468
  _cart_id: string;
@@ -49659,6 +51480,20 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49659
51480
  };
49660
51481
  Returns: string;
49661
51482
  };
51483
+ logistics_ensure_pick_data: {
51484
+ Args: {
51485
+ p_event_id?: string;
51486
+ p_missing?: import("../integrations/supabase/types").Json;
51487
+ p_ref: string;
51488
+ };
51489
+ Returns: import("../integrations/supabase/types").Json;
51490
+ };
51491
+ logistics_ensure_shipping_notes: {
51492
+ Args: {
51493
+ p_limit?: number;
51494
+ };
51495
+ Returns: import("../integrations/supabase/types").Json;
51496
+ };
49662
51497
  logistics_fail_task: {
49663
51498
  Args: {
49664
51499
  p_error: string;
@@ -49704,6 +51539,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49704
51539
  isSetofReturn: false;
49705
51540
  };
49706
51541
  };
51542
+ logistics_fix_wrong_shipping_notes: {
51543
+ Args: never;
51544
+ Returns: import("../integrations/supabase/types").Json;
51545
+ };
49707
51546
  logistics_floriday_cart_plan: {
49708
51547
  Args: {
49709
51548
  p_order_id: string;
@@ -49731,6 +51570,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49731
51570
  revision: number;
49732
51571
  }[];
49733
51572
  };
51573
+ logistics_floriday_delivery_note_create_enabled: {
51574
+ Args: never;
51575
+ Returns: boolean;
51576
+ };
49734
51577
  logistics_floriday_finish_push: {
49735
51578
  Args: {
49736
51579
  _error?: string;
@@ -49780,6 +51623,32 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49780
51623
  };
49781
51624
  Returns: string;
49782
51625
  };
51626
+ logistics_floriday_gate_status: {
51627
+ Args: never;
51628
+ Returns: import("../integrations/supabase/types").Json;
51629
+ };
51630
+ logistics_floriday_log_refusal: {
51631
+ Args: {
51632
+ _action?: string;
51633
+ _module?: string;
51634
+ _order_ref: string;
51635
+ _reason: string;
51636
+ _shell?: string;
51637
+ };
51638
+ Returns: undefined;
51639
+ };
51640
+ logistics_floriday_log_send: {
51641
+ Args: {
51642
+ _action: string;
51643
+ _detail?: string;
51644
+ _http_status?: number;
51645
+ _module?: string;
51646
+ _ok: boolean;
51647
+ _order_ref: string;
51648
+ _shell?: string;
51649
+ };
51650
+ Returns: undefined;
51651
+ };
49783
51652
  logistics_floriday_order_approved: {
49784
51653
  Args: {
49785
51654
  _order_ref: string;
@@ -49804,6 +51673,16 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49804
51673
  Args: never;
49805
51674
  Returns: boolean;
49806
51675
  };
51676
+ logistics_floriday_stock_updates_enabled: {
51677
+ Args: never;
51678
+ Returns: boolean;
51679
+ };
51680
+ logistics_floriday_write_allowed: {
51681
+ Args: {
51682
+ _action: string;
51683
+ };
51684
+ Returns: boolean;
51685
+ };
49807
51686
  logistics_fulfill_barcode_requests: {
49808
51687
  Args: {
49809
51688
  p_limit?: number;
@@ -49846,6 +51725,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49846
51725
  };
49847
51726
  Returns: number;
49848
51727
  };
51728
+ logistics_merge_partial_carts: {
51729
+ Args: {
51730
+ p_limit?: number;
51731
+ };
51732
+ Returns: import("../integrations/supabase/types").Json;
51733
+ };
49849
51734
  logistics_next_workday_date: {
49850
51735
  Args: {
49851
51736
  p_date: string;
@@ -49872,6 +51757,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49872
51757
  };
49873
51758
  Returns: string;
49874
51759
  };
51760
+ logistics_opening_timezone: {
51761
+ Args: never;
51762
+ Returns: string;
51763
+ };
49875
51764
  logistics_order_cart_count: {
49876
51765
  Args: {
49877
51766
  p_order_ref: string;
@@ -49928,6 +51817,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49928
51817
  };
49929
51818
  Returns: string;
49930
51819
  };
51820
+ logistics_payload_is_floriday: {
51821
+ Args: {
51822
+ _payload: import("../integrations/supabase/types").Json;
51823
+ };
51824
+ Returns: boolean;
51825
+ };
49931
51826
  logistics_pick_agenda: {
49932
51827
  Args: {
49933
51828
  p_from?: string;
@@ -49956,6 +51851,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49956
51851
  Args: never;
49957
51852
  Returns: import("../integrations/supabase/types").Json;
49958
51853
  };
51854
+ logistics_pick_partial_mode: {
51855
+ Args: never;
51856
+ Returns: string;
51857
+ };
49959
51858
  logistics_pick_start_estimate: {
49960
51859
  Args: {
49961
51860
  p_order: import("../integrations/supabase/types").Json;
@@ -50046,6 +51945,20 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50046
51945
  Args: never;
50047
51946
  Returns: undefined;
50048
51947
  };
51948
+ logistics_plan_progress: {
51949
+ Args: {
51950
+ p_refs: string[];
51951
+ };
51952
+ Returns: {
51953
+ cart_plan_ready: boolean;
51954
+ cart_plan_reason: string;
51955
+ cart_plan_released: boolean;
51956
+ plan_progress: number;
51957
+ plan_state: string;
51958
+ plan_state_since: string;
51959
+ unit_ref: string;
51960
+ }[];
51961
+ };
50049
51962
  logistics_plan_prune: {
50050
51963
  Args: never;
50051
51964
  Returns: number;
@@ -50067,6 +51980,18 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50067
51980
  };
50068
51981
  Returns: number;
50069
51982
  };
51983
+ logistics_plan_state_for: {
51984
+ Args: {
51985
+ p_ref: string;
51986
+ };
51987
+ Returns: import("../integrations/supabase/types").Json;
51988
+ };
51989
+ logistics_prepare_pick_documents: {
51990
+ Args: {
51991
+ p_limit?: number;
51992
+ };
51993
+ Returns: import("../integrations/supabase/types").Json;
51994
+ };
50070
51995
  logistics_prune_buffer_member_queue: {
50071
51996
  Args: never;
50072
51997
  Returns: number;
@@ -50107,18 +52032,36 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50107
52032
  Args: never;
50108
52033
  Returns: import("../integrations/supabase/types").Json;
50109
52034
  };
52035
+ logistics_refresh_pick_queue_status: {
52036
+ Args: {
52037
+ p_ref: string;
52038
+ };
52039
+ Returns: number;
52040
+ };
50110
52041
  logistics_refresh_pickup_moments: {
50111
52042
  Args: {
50112
52043
  p_weeks?: number;
50113
52044
  };
50114
52045
  Returns: import("../integrations/supabase/types").Json;
50115
52046
  };
52047
+ logistics_refresh_plan_state: {
52048
+ Args: {
52049
+ p_limit?: number;
52050
+ };
52051
+ Returns: import("../integrations/supabase/types").Json;
52052
+ };
50116
52053
  logistics_replan_all: {
50117
52054
  Args: {
50118
52055
  p_reason?: string;
50119
52056
  };
50120
52057
  Returns: import("../integrations/supabase/types").Json;
50121
52058
  };
52059
+ logistics_replan_all_force: {
52060
+ Args: {
52061
+ p_reason?: string;
52062
+ };
52063
+ Returns: import("../integrations/supabase/types").Json;
52064
+ };
50122
52065
  logistics_report_delay: {
50123
52066
  Args: {
50124
52067
  p_expected_date?: string;
@@ -50263,6 +52206,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50263
52206
  };
50264
52207
  Returns: string;
50265
52208
  };
52209
+ logistics_shipping_note_follows_slip: {
52210
+ Args: never;
52211
+ Returns: boolean;
52212
+ };
50266
52213
  logistics_shipping_note_from_barcode: {
50267
52214
  Args: {
50268
52215
  p_allow_reprint?: boolean;
@@ -50271,10 +52218,86 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50271
52218
  };
50272
52219
  Returns: import("../integrations/supabase/types").Json;
50273
52220
  };
52221
+ logistics_shipping_note_job_for_slip: {
52222
+ Args: {
52223
+ _slip_job_id: string;
52224
+ };
52225
+ Returns: string;
52226
+ };
52227
+ logistics_shipping_notes_wake_all: {
52228
+ Args: never;
52229
+ Returns: import("../integrations/supabase/types").Json;
52230
+ };
52231
+ logistics_slip_is_floriday: {
52232
+ Args: {
52233
+ _slip_job_id: string;
52234
+ };
52235
+ Returns: boolean;
52236
+ };
52237
+ logistics_slip_note_claim: {
52238
+ Args: {
52239
+ _lease_seconds?: number;
52240
+ _limit?: number;
52241
+ };
52242
+ Returns: {
52243
+ attempts: number;
52244
+ batch_key: string | null;
52245
+ cart_id: string | null;
52246
+ created_at: string;
52247
+ error: string | null;
52248
+ error_code: string | null;
52249
+ fulfillment_order_id: string | null;
52250
+ id: string;
52251
+ locked_until: string | null;
52252
+ next_attempt_at: string | null;
52253
+ order_id: string | null;
52254
+ order_number: string | null;
52255
+ print_job_id: string | null;
52256
+ printer_id: string | null;
52257
+ retry_class: string | null;
52258
+ slip_job_id: string;
52259
+ status: string;
52260
+ updated_at: string;
52261
+ }[];
52262
+ SetofOptions: {
52263
+ from: "*";
52264
+ to: "logistics_slip_shipping_note";
52265
+ isOneToOne: false;
52266
+ isSetofReturn: true;
52267
+ };
52268
+ };
52269
+ logistics_slip_note_finish: {
52270
+ Args: {
52271
+ _error?: string;
52272
+ _error_code?: string;
52273
+ _fulfillment_order_id?: string;
52274
+ _id: string;
52275
+ _ok: boolean;
52276
+ _print_job_id?: string;
52277
+ _status?: string;
52278
+ };
52279
+ Returns: undefined;
52280
+ };
52281
+ logistics_slip_note_keep_waiting: {
52282
+ Args: {
52283
+ _class?: string;
52284
+ _id: string;
52285
+ _reason: string;
52286
+ };
52287
+ Returns: undefined;
52288
+ };
50274
52289
  logistics_sticker_follows_slip: {
50275
52290
  Args: never;
50276
52291
  Returns: boolean;
50277
52292
  };
52293
+ logistics_subtract_working_minutes: {
52294
+ Args: {
52295
+ p_deadline: string;
52296
+ p_max_workdays?: number;
52297
+ p_minutes: number;
52298
+ };
52299
+ Returns: import("../integrations/supabase/types").Json;
52300
+ };
50278
52301
  logistics_supersede_stale_tasks: {
50279
52302
  Args: {
50280
52303
  p_keep: string[];
@@ -50311,6 +52334,46 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50311
52334
  Args: never;
50312
52335
  Returns: string;
50313
52336
  };
52337
+ logistics_timezone_options: {
52338
+ Args: never;
52339
+ Returns: {
52340
+ name: string;
52341
+ }[];
52342
+ };
52343
+ logistics_trace: {
52344
+ Args: {
52345
+ p: import("../integrations/supabase/types").Json;
52346
+ };
52347
+ Returns: string;
52348
+ };
52349
+ logistics_trace_batch: {
52350
+ Args: {
52351
+ p: import("../integrations/supabase/types").Json;
52352
+ };
52353
+ Returns: number;
52354
+ };
52355
+ logistics_trace_orders: {
52356
+ Args: {
52357
+ p_limit?: number;
52358
+ p_search?: string;
52359
+ p_since?: string;
52360
+ p_status?: string;
52361
+ };
52362
+ Returns: import("../integrations/supabase/types").Json;
52363
+ };
52364
+ logistics_trace_redact: {
52365
+ Args: {
52366
+ p: import("../integrations/supabase/types").Json;
52367
+ };
52368
+ Returns: import("../integrations/supabase/types").Json;
52369
+ };
52370
+ logistics_trace_timeline: {
52371
+ Args: {
52372
+ p_limit?: number;
52373
+ p_order_ref: string;
52374
+ };
52375
+ Returns: import("../integrations/supabase/types").Json;
52376
+ };
50314
52377
  logistics_upsert_task: {
50315
52378
  Args: {
50316
52379
  p_buffer_ref: string;
@@ -50330,6 +52393,16 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
50330
52393
  };
50331
52394
  Returns: string;
50332
52395
  };
52396
+ logistics_valid_timezone: {
52397
+ Args: {
52398
+ _tz: string;
52399
+ };
52400
+ Returns: boolean;
52401
+ };
52402
+ logistics_working_hours_status: {
52403
+ Args: never;
52404
+ Returns: import("../integrations/supabase/types").Json;
52405
+ };
50333
52406
  logistics_write_buffer_layer_positions: {
50334
52407
  Args: {
50335
52408
  p_buffer_id: string;
@@ -51342,6 +53415,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
51342
53415
  };
51343
53416
  Returns: undefined;
51344
53417
  };
53418
+ prune_floriday_api_log: {
53419
+ Args: never;
53420
+ Returns: number;
53421
+ };
51345
53422
  quote_create_from_source: {
51346
53423
  Args: {
51347
53424
  _payload?: import("../integrations/supabase/types").Json;
@@ -51775,6 +53852,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
51775
53852
  };
51776
53853
  Returns: number;
51777
53854
  };
53855
+ schedule_floriday_catalog_prices_sync: {
53856
+ Args: {
53857
+ p_apikey: string;
53858
+ p_url: string;
53859
+ };
53860
+ Returns: number;
53861
+ };
51778
53862
  schedule_floriday_clock_presales_sync: {
51779
53863
  Args: {
51780
53864
  p_apikey: string;
@@ -52075,6 +54159,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
52075
54159
  };
52076
54160
  Returns: undefined;
52077
54161
  };
54162
+ sync_floriday_prices_into_price_groups: {
54163
+ Args: never;
54164
+ Returns: number;
54165
+ };
52078
54166
  sync_layer_stock: {
52079
54167
  Args: {
52080
54168
  p_product_id: string;
@@ -52207,6 +54295,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
52207
54295
  Args: never;
52208
54296
  Returns: string;
52209
54297
  };
54298
+ voorraad_cleanup_old_rows: {
54299
+ Args: never;
54300
+ Returns: import("../integrations/supabase/types").Json;
54301
+ };
52210
54302
  wake_print_queue: {
52211
54303
  Args: {
52212
54304
  _min_interval_ms?: number;