@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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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;
@@ -28364,6 +29410,45 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
28364
29410
  };
28365
29411
  Relationships: [];
28366
29412
  };
29413
+ customer_product_stickers: {
29414
+ Row: {
29415
+ created_at: string;
29416
+ customer_key: string;
29417
+ file_name: string;
29418
+ file_path: string;
29419
+ file_size: number | null;
29420
+ id: string;
29421
+ mime_type: string | null;
29422
+ trade_item_key: string;
29423
+ updated_at: string;
29424
+ uploaded_by: string | null;
29425
+ };
29426
+ Insert: {
29427
+ created_at?: string;
29428
+ customer_key: string;
29429
+ file_name: string;
29430
+ file_path: string;
29431
+ file_size?: number | null;
29432
+ id?: string;
29433
+ mime_type?: string | null;
29434
+ trade_item_key: string;
29435
+ updated_at?: string;
29436
+ uploaded_by?: string | null;
29437
+ };
29438
+ Update: {
29439
+ created_at?: string;
29440
+ customer_key?: string;
29441
+ file_name?: string;
29442
+ file_path?: string;
29443
+ file_size?: number | null;
29444
+ id?: string;
29445
+ mime_type?: string | null;
29446
+ trade_item_key?: string;
29447
+ updated_at?: string;
29448
+ uploaded_by?: string | null;
29449
+ };
29450
+ Relationships: [];
29451
+ };
28367
29452
  customer_selected_assortment: {
28368
29453
  Row: {
28369
29454
  article_number: string | null;
@@ -28412,6 +29497,30 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
28412
29497
  referencedColumns: ["id"];
28413
29498
  }];
28414
29499
  };
29500
+ customer_sticker_settings: {
29501
+ Row: {
29502
+ created_at: string;
29503
+ customer_key: string;
29504
+ height_mm: number;
29505
+ updated_at: string;
29506
+ width_mm: number;
29507
+ };
29508
+ Insert: {
29509
+ created_at?: string;
29510
+ customer_key: string;
29511
+ height_mm?: number;
29512
+ updated_at?: string;
29513
+ width_mm?: number;
29514
+ };
29515
+ Update: {
29516
+ created_at?: string;
29517
+ customer_key?: string;
29518
+ height_mm?: number;
29519
+ updated_at?: string;
29520
+ width_mm?: number;
29521
+ };
29522
+ Relationships: [];
29523
+ };
28415
29524
  customer_trade_settings: {
28416
29525
  Row: {
28417
29526
  category: string;
@@ -31742,6 +32851,102 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
31742
32851
  referencedColumns: ["id"];
31743
32852
  }];
31744
32853
  };
32854
+ floriday_api_log: {
32855
+ Row: {
32856
+ action: string | null;
32857
+ caller: string | null;
32858
+ connection_id: string | null;
32859
+ created_at: string;
32860
+ cursor_from: number | null;
32861
+ direction: string;
32862
+ duration_ms: number | null;
32863
+ environment: string | null;
32864
+ error: string | null;
32865
+ floriday_id: string | null;
32866
+ floriday_reference: string | null;
32867
+ http_status: number;
32868
+ id: string;
32869
+ item_count: number | null;
32870
+ kind: string | null;
32871
+ local_id: string | null;
32872
+ local_reference: string | null;
32873
+ method: string;
32874
+ module: string | null;
32875
+ ok: boolean;
32876
+ path: string;
32877
+ request: import("../integrations/supabase/types").Json | null;
32878
+ resource_type: string | null;
32879
+ response: import("../integrations/supabase/types").Json | null;
32880
+ write_log_id: string | null;
32881
+ };
32882
+ Insert: {
32883
+ action?: string | null;
32884
+ caller?: string | null;
32885
+ connection_id?: string | null;
32886
+ created_at?: string;
32887
+ cursor_from?: number | null;
32888
+ direction: string;
32889
+ duration_ms?: number | null;
32890
+ environment?: string | null;
32891
+ error?: string | null;
32892
+ floriday_id?: string | null;
32893
+ floriday_reference?: string | null;
32894
+ http_status?: number;
32895
+ id?: string;
32896
+ item_count?: number | null;
32897
+ kind?: string | null;
32898
+ local_id?: string | null;
32899
+ local_reference?: string | null;
32900
+ method: string;
32901
+ module?: string | null;
32902
+ ok?: boolean;
32903
+ path: string;
32904
+ request?: import("../integrations/supabase/types").Json | null;
32905
+ resource_type?: string | null;
32906
+ response?: import("../integrations/supabase/types").Json | null;
32907
+ write_log_id?: string | null;
32908
+ };
32909
+ Update: {
32910
+ action?: string | null;
32911
+ caller?: string | null;
32912
+ connection_id?: string | null;
32913
+ created_at?: string;
32914
+ cursor_from?: number | null;
32915
+ direction?: string;
32916
+ duration_ms?: number | null;
32917
+ environment?: string | null;
32918
+ error?: string | null;
32919
+ floriday_id?: string | null;
32920
+ floriday_reference?: string | null;
32921
+ http_status?: number;
32922
+ id?: string;
32923
+ item_count?: number | null;
32924
+ kind?: string | null;
32925
+ local_id?: string | null;
32926
+ local_reference?: string | null;
32927
+ method?: string;
32928
+ module?: string | null;
32929
+ ok?: boolean;
32930
+ path?: string;
32931
+ request?: import("../integrations/supabase/types").Json | null;
32932
+ resource_type?: string | null;
32933
+ response?: import("../integrations/supabase/types").Json | null;
32934
+ write_log_id?: string | null;
32935
+ };
32936
+ Relationships: [{
32937
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32938
+ columns: ["connection_id"];
32939
+ isOneToOne: false;
32940
+ referencedRelation: "floriday_connections";
32941
+ referencedColumns: ["id"];
32942
+ }, {
32943
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32944
+ columns: ["write_log_id"];
32945
+ isOneToOne: false;
32946
+ referencedRelation: "floriday_write_log";
32947
+ referencedColumns: ["id"];
32948
+ }];
32949
+ };
31745
32950
  floriday_auction_letters_cache: {
31746
32951
  Row: {
31747
32952
  auction_letter_code: string;
@@ -31949,6 +33154,84 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
31949
33154
  referencedColumns: ["id"];
31950
33155
  }];
31951
33156
  };
33157
+ floriday_catalog_prices_cache: {
33158
+ Row: {
33159
+ connection_id: string;
33160
+ created_at: string;
33161
+ currency: string;
33162
+ id: string;
33163
+ is_deleted: boolean;
33164
+ price: number | null;
33165
+ price_group_id: string | null;
33166
+ price_group_name: string | null;
33167
+ price_type: string;
33168
+ raw: import("../integrations/supabase/types").Json | null;
33169
+ sales_unit: string | null;
33170
+ sequence_number: number;
33171
+ supplier_article_code: string | null;
33172
+ supply_line_id: string;
33173
+ synced_at: string;
33174
+ trade_item_id: string | null;
33175
+ updated_at: string;
33176
+ valid_from: string | null;
33177
+ valid_to: string | null;
33178
+ week: number | null;
33179
+ year: number | null;
33180
+ };
33181
+ Insert: {
33182
+ connection_id: string;
33183
+ created_at?: string;
33184
+ currency?: string;
33185
+ id?: string;
33186
+ is_deleted?: boolean;
33187
+ price?: number | null;
33188
+ price_group_id?: string | null;
33189
+ price_group_name?: string | null;
33190
+ price_type?: string;
33191
+ raw?: import("../integrations/supabase/types").Json | null;
33192
+ sales_unit?: string | null;
33193
+ sequence_number?: number;
33194
+ supplier_article_code?: string | null;
33195
+ supply_line_id: string;
33196
+ synced_at?: string;
33197
+ trade_item_id?: string | null;
33198
+ updated_at?: string;
33199
+ valid_from?: string | null;
33200
+ valid_to?: string | null;
33201
+ week?: number | null;
33202
+ year?: number | null;
33203
+ };
33204
+ Update: {
33205
+ connection_id?: string;
33206
+ created_at?: string;
33207
+ currency?: string;
33208
+ id?: string;
33209
+ is_deleted?: boolean;
33210
+ price?: number | null;
33211
+ price_group_id?: string | null;
33212
+ price_group_name?: string | null;
33213
+ price_type?: string;
33214
+ raw?: import("../integrations/supabase/types").Json | null;
33215
+ sales_unit?: string | null;
33216
+ sequence_number?: number;
33217
+ supplier_article_code?: string | null;
33218
+ supply_line_id?: string;
33219
+ synced_at?: string;
33220
+ trade_item_id?: string | null;
33221
+ updated_at?: string;
33222
+ valid_from?: string | null;
33223
+ valid_to?: string | null;
33224
+ week?: number | null;
33225
+ year?: number | null;
33226
+ };
33227
+ Relationships: [{
33228
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33229
+ columns: ["connection_id"];
33230
+ isOneToOne: false;
33231
+ referencedRelation: "floriday_connections";
33232
+ referencedColumns: ["id"];
33233
+ }];
33234
+ };
31952
33235
  floriday_clock_presales_cache: {
31953
33236
  Row: {
31954
33237
  buyer_organization_id: string | null;
@@ -32864,6 +34147,69 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
32864
34147
  referencedColumns: ["id"];
32865
34148
  }];
32866
34149
  };
34150
+ floriday_link_templates: {
34151
+ Row: {
34152
+ created_at: string;
34153
+ floriday_url_template: string | null;
34154
+ is_active: boolean;
34155
+ label: string;
34156
+ local_url_template: string | null;
34157
+ resource_type: string;
34158
+ updated_at: string;
34159
+ };
34160
+ Insert: {
34161
+ created_at?: string;
34162
+ floriday_url_template?: string | null;
34163
+ is_active?: boolean;
34164
+ label: string;
34165
+ local_url_template?: string | null;
34166
+ resource_type: string;
34167
+ updated_at?: string;
34168
+ };
34169
+ Update: {
34170
+ created_at?: string;
34171
+ floriday_url_template?: string | null;
34172
+ is_active?: boolean;
34173
+ label?: string;
34174
+ local_url_template?: string | null;
34175
+ resource_type?: string;
34176
+ updated_at?: string;
34177
+ };
34178
+ Relationships: [];
34179
+ };
34180
+ floriday_log_retention: {
34181
+ Row: {
34182
+ created_at: string;
34183
+ direction: string | null;
34184
+ id: string;
34185
+ keep_failed_days: number | null;
34186
+ keep_ok_days: number | null;
34187
+ note: string | null;
34188
+ resource_type: string | null;
34189
+ updated_at: string;
34190
+ };
34191
+ Insert: {
34192
+ created_at?: string;
34193
+ direction?: string | null;
34194
+ id?: string;
34195
+ keep_failed_days?: number | null;
34196
+ keep_ok_days?: number | null;
34197
+ note?: string | null;
34198
+ resource_type?: string | null;
34199
+ updated_at?: string;
34200
+ };
34201
+ Update: {
34202
+ created_at?: string;
34203
+ direction?: string | null;
34204
+ id?: string;
34205
+ keep_failed_days?: number | null;
34206
+ keep_ok_days?: number | null;
34207
+ note?: string | null;
34208
+ resource_type?: string | null;
34209
+ updated_at?: string;
34210
+ };
34211
+ Relationships: [];
34212
+ };
32867
34213
  floriday_logistic_labels_cache: {
32868
34214
  Row: {
32869
34215
  byte_size: number | null;
@@ -36217,22 +37563,31 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
36217
37563
  };
36218
37564
  logistics_floriday_push_refusals: {
36219
37565
  Row: {
37566
+ action: string | null;
36220
37567
  created_at: string;
36221
37568
  id: string;
36222
37569
  order_ref: string;
36223
37570
  reason: string;
37571
+ source_module: string | null;
37572
+ source_shell: string | null;
36224
37573
  };
36225
37574
  Insert: {
37575
+ action?: string | null;
36226
37576
  created_at?: string;
36227
37577
  id?: string;
36228
37578
  order_ref: string;
36229
37579
  reason: string;
37580
+ source_module?: string | null;
37581
+ source_shell?: string | null;
36230
37582
  };
36231
37583
  Update: {
37584
+ action?: string | null;
36232
37585
  created_at?: string;
36233
37586
  id?: string;
36234
37587
  order_ref?: string;
36235
37588
  reason?: string;
37589
+ source_module?: string | null;
37590
+ source_shell?: string | null;
36236
37591
  };
36237
37592
  Relationships: [];
36238
37593
  };
@@ -36311,6 +37666,42 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
36311
37666
  };
36312
37667
  Relationships: [];
36313
37668
  };
37669
+ logistics_floriday_status_sends: {
37670
+ Row: {
37671
+ action: string;
37672
+ created_at: string;
37673
+ detail: string | null;
37674
+ http_status: number | null;
37675
+ id: string;
37676
+ ok: boolean;
37677
+ order_ref: string;
37678
+ source_module: string | null;
37679
+ source_shell: string | null;
37680
+ };
37681
+ Insert: {
37682
+ action: string;
37683
+ created_at?: string;
37684
+ detail?: string | null;
37685
+ http_status?: number | null;
37686
+ id?: string;
37687
+ ok?: boolean;
37688
+ order_ref: string;
37689
+ source_module?: string | null;
37690
+ source_shell?: string | null;
37691
+ };
37692
+ Update: {
37693
+ action?: string;
37694
+ created_at?: string;
37695
+ detail?: string | null;
37696
+ http_status?: number | null;
37697
+ id?: string;
37698
+ ok?: boolean;
37699
+ order_ref?: string;
37700
+ source_module?: string | null;
37701
+ source_shell?: string | null;
37702
+ };
37703
+ Relationships: [];
37704
+ };
36314
37705
  logistics_formulas: {
36315
37706
  Row: {
36316
37707
  created_at: string;
@@ -36383,6 +37774,108 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
36383
37774
  };
36384
37775
  Relationships: [];
36385
37776
  };
37777
+ logistics_opening_exceptions: {
37778
+ Row: {
37779
+ closes: string | null;
37780
+ created_at: string;
37781
+ day: string;
37782
+ id: string;
37783
+ is_closed: boolean;
37784
+ note: string | null;
37785
+ opens: string | null;
37786
+ };
37787
+ Insert: {
37788
+ closes?: string | null;
37789
+ created_at?: string;
37790
+ day: string;
37791
+ id?: string;
37792
+ is_closed?: boolean;
37793
+ note?: string | null;
37794
+ opens?: string | null;
37795
+ };
37796
+ Update: {
37797
+ closes?: string | null;
37798
+ created_at?: string;
37799
+ day?: string;
37800
+ id?: string;
37801
+ is_closed?: boolean;
37802
+ note?: string | null;
37803
+ opens?: string | null;
37804
+ };
37805
+ Relationships: [];
37806
+ };
37807
+ logistics_opening_hours: {
37808
+ Row: {
37809
+ closes: string;
37810
+ created_at: string;
37811
+ id: string;
37812
+ is_active: boolean;
37813
+ note: string | null;
37814
+ opens: string;
37815
+ weekday: number;
37816
+ };
37817
+ Insert: {
37818
+ closes: string;
37819
+ created_at?: string;
37820
+ id?: string;
37821
+ is_active?: boolean;
37822
+ note?: string | null;
37823
+ opens: string;
37824
+ weekday: number;
37825
+ };
37826
+ Update: {
37827
+ closes?: string;
37828
+ created_at?: string;
37829
+ id?: string;
37830
+ is_active?: boolean;
37831
+ note?: string | null;
37832
+ opens?: string;
37833
+ weekday?: number;
37834
+ };
37835
+ Relationships: [];
37836
+ };
37837
+ logistics_pick_data_requests: {
37838
+ Row: {
37839
+ actions: import("../integrations/supabase/types").Json;
37840
+ created_at: string;
37841
+ event_id: string | null;
37842
+ finished_at: string | null;
37843
+ id: string;
37844
+ missing: import("../integrations/supabase/types").Json;
37845
+ order_ref: string;
37846
+ reason: string | null;
37847
+ result: import("../integrations/supabase/types").Json | null;
37848
+ status: string;
37849
+ unit_ref: string | null;
37850
+ };
37851
+ Insert: {
37852
+ actions?: import("../integrations/supabase/types").Json;
37853
+ created_at?: string;
37854
+ event_id?: string | null;
37855
+ finished_at?: string | null;
37856
+ id?: string;
37857
+ missing?: import("../integrations/supabase/types").Json;
37858
+ order_ref: string;
37859
+ reason?: string | null;
37860
+ result?: import("../integrations/supabase/types").Json | null;
37861
+ status?: string;
37862
+ unit_ref?: string | null;
37863
+ };
37864
+ Update: {
37865
+ actions?: import("../integrations/supabase/types").Json;
37866
+ created_at?: string;
37867
+ event_id?: string | null;
37868
+ finished_at?: string | null;
37869
+ id?: string;
37870
+ missing?: import("../integrations/supabase/types").Json;
37871
+ order_ref?: string;
37872
+ reason?: string | null;
37873
+ result?: import("../integrations/supabase/types").Json | null;
37874
+ status?: string;
37875
+ unit_ref?: string | null;
37876
+ };
37877
+ Relationships: [];
37878
+ };
36386
37879
  logistics_pickup_moments: {
36387
37880
  Row: {
36388
37881
  carrier_ref: string | null;
@@ -36842,6 +38335,69 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
36842
38335
  };
36843
38336
  Relationships: [];
36844
38337
  };
38338
+ logistics_slip_shipping_note: {
38339
+ Row: {
38340
+ attempts: number;
38341
+ batch_key: string | null;
38342
+ cart_id: string | null;
38343
+ created_at: string;
38344
+ error: string | null;
38345
+ error_code: string | null;
38346
+ fulfillment_order_id: string | null;
38347
+ id: string;
38348
+ locked_until: string | null;
38349
+ next_attempt_at: string | null;
38350
+ order_id: string | null;
38351
+ order_number: string | null;
38352
+ print_job_id: string | null;
38353
+ printer_id: string | null;
38354
+ retry_class: string | null;
38355
+ slip_job_id: string;
38356
+ status: string;
38357
+ updated_at: string;
38358
+ };
38359
+ Insert: {
38360
+ attempts?: number;
38361
+ batch_key?: string | null;
38362
+ cart_id?: string | null;
38363
+ created_at?: string;
38364
+ error?: string | null;
38365
+ error_code?: string | null;
38366
+ fulfillment_order_id?: string | null;
38367
+ id?: string;
38368
+ locked_until?: string | null;
38369
+ next_attempt_at?: string | null;
38370
+ order_id?: string | null;
38371
+ order_number?: string | null;
38372
+ print_job_id?: string | null;
38373
+ printer_id?: string | null;
38374
+ retry_class?: string | null;
38375
+ slip_job_id: string;
38376
+ status?: string;
38377
+ updated_at?: string;
38378
+ };
38379
+ Update: {
38380
+ attempts?: number;
38381
+ batch_key?: string | null;
38382
+ cart_id?: string | null;
38383
+ created_at?: string;
38384
+ error?: string | null;
38385
+ error_code?: string | null;
38386
+ fulfillment_order_id?: string | null;
38387
+ id?: string;
38388
+ locked_until?: string | null;
38389
+ next_attempt_at?: string | null;
38390
+ order_id?: string | null;
38391
+ order_number?: string | null;
38392
+ print_job_id?: string | null;
38393
+ printer_id?: string | null;
38394
+ retry_class?: string | null;
38395
+ slip_job_id?: string;
38396
+ status?: string;
38397
+ updated_at?: string;
38398
+ };
38399
+ Relationships: [];
38400
+ };
36845
38401
  logistics_staff_planning: {
36846
38402
  Row: {
36847
38403
  created_at: string;
@@ -37175,6 +38731,129 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
37175
38731
  };
37176
38732
  Relationships: [];
37177
38733
  };
38734
+ logistics_time_settings: {
38735
+ Row: {
38736
+ id: boolean;
38737
+ timezone: string;
38738
+ updated_at: string;
38739
+ };
38740
+ Insert: {
38741
+ id?: boolean;
38742
+ timezone: string;
38743
+ updated_at?: string;
38744
+ };
38745
+ Update: {
38746
+ id?: boolean;
38747
+ timezone?: string;
38748
+ updated_at?: string;
38749
+ };
38750
+ Relationships: [];
38751
+ };
38752
+ logistics_trace_events: {
38753
+ Row: {
38754
+ actor: string | null;
38755
+ attempts: number;
38756
+ cart_ref: string | null;
38757
+ created_at: string;
38758
+ db_action: string | null;
38759
+ db_new: import("../integrations/supabase/types").Json | null;
38760
+ db_old: import("../integrations/supabase/types").Json | null;
38761
+ db_record: string | null;
38762
+ db_table: string | null;
38763
+ decision: string | null;
38764
+ duration_ms: number | null;
38765
+ error: string | null;
38766
+ external_action: string | null;
38767
+ external_ref: string | null;
38768
+ external_response: import("../integrations/supabase/types").Json | null;
38769
+ external_status: string | null;
38770
+ external_system: string | null;
38771
+ id: string;
38772
+ input: import("../integrations/supabase/types").Json | null;
38773
+ next_attempt_at: string | null;
38774
+ order_ref: string | null;
38775
+ order_source: string | null;
38776
+ output: import("../integrations/supabase/types").Json | null;
38777
+ phase: string;
38778
+ reads: import("../integrations/supabase/types").Json | null;
38779
+ reason: string | null;
38780
+ rule: string | null;
38781
+ slip_ref: string | null;
38782
+ status: string;
38783
+ step: string;
38784
+ trace_id: string;
38785
+ values_used: import("../integrations/supabase/types").Json | null;
38786
+ };
38787
+ Insert: {
38788
+ actor?: string | null;
38789
+ attempts?: number;
38790
+ cart_ref?: string | null;
38791
+ created_at?: string;
38792
+ db_action?: string | null;
38793
+ db_new?: import("../integrations/supabase/types").Json | null;
38794
+ db_old?: import("../integrations/supabase/types").Json | null;
38795
+ db_record?: string | null;
38796
+ db_table?: string | null;
38797
+ decision?: string | null;
38798
+ duration_ms?: number | null;
38799
+ error?: string | null;
38800
+ external_action?: string | null;
38801
+ external_ref?: string | null;
38802
+ external_response?: import("../integrations/supabase/types").Json | null;
38803
+ external_status?: string | null;
38804
+ external_system?: string | null;
38805
+ id?: string;
38806
+ input?: import("../integrations/supabase/types").Json | null;
38807
+ next_attempt_at?: string | null;
38808
+ order_ref?: string | null;
38809
+ order_source?: string | null;
38810
+ output?: import("../integrations/supabase/types").Json | null;
38811
+ phase: string;
38812
+ reads?: import("../integrations/supabase/types").Json | null;
38813
+ reason?: string | null;
38814
+ rule?: string | null;
38815
+ slip_ref?: string | null;
38816
+ status: string;
38817
+ step: string;
38818
+ trace_id?: string;
38819
+ values_used?: import("../integrations/supabase/types").Json | null;
38820
+ };
38821
+ Update: {
38822
+ actor?: string | null;
38823
+ attempts?: number;
38824
+ cart_ref?: string | null;
38825
+ created_at?: string;
38826
+ db_action?: string | null;
38827
+ db_new?: import("../integrations/supabase/types").Json | null;
38828
+ db_old?: import("../integrations/supabase/types").Json | null;
38829
+ db_record?: string | null;
38830
+ db_table?: string | null;
38831
+ decision?: string | null;
38832
+ duration_ms?: number | null;
38833
+ error?: string | null;
38834
+ external_action?: string | null;
38835
+ external_ref?: string | null;
38836
+ external_response?: import("../integrations/supabase/types").Json | null;
38837
+ external_status?: string | null;
38838
+ external_system?: string | null;
38839
+ id?: string;
38840
+ input?: import("../integrations/supabase/types").Json | null;
38841
+ next_attempt_at?: string | null;
38842
+ order_ref?: string | null;
38843
+ order_source?: string | null;
38844
+ output?: import("../integrations/supabase/types").Json | null;
38845
+ phase?: string;
38846
+ reads?: import("../integrations/supabase/types").Json | null;
38847
+ reason?: string | null;
38848
+ rule?: string | null;
38849
+ slip_ref?: string | null;
38850
+ status?: string;
38851
+ step?: string;
38852
+ trace_id?: string;
38853
+ values_used?: import("../integrations/supabase/types").Json | null;
38854
+ };
38855
+ Relationships: [];
38856
+ };
37178
38857
  logistics_variables: {
37179
38858
  Row: {
37180
38859
  created_at: string;
@@ -39565,6 +41244,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
39565
41244
  customer_name: string;
39566
41245
  deleted_at: string | null;
39567
41246
  delivery_date: string | null;
41247
+ floriday_order_group_key: string | null;
39568
41248
  floriday_sales_order_id: string | null;
39569
41249
  id: string;
39570
41250
  invoice_due_at: string | null;
@@ -39592,6 +41272,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
39592
41272
  customer_name?: string;
39593
41273
  deleted_at?: string | null;
39594
41274
  delivery_date?: string | null;
41275
+ floriday_order_group_key?: string | null;
39595
41276
  floriday_sales_order_id?: string | null;
39596
41277
  id?: string;
39597
41278
  invoice_due_at?: string | null;
@@ -39619,6 +41300,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
39619
41300
  customer_name?: string;
39620
41301
  deleted_at?: string | null;
39621
41302
  delivery_date?: string | null;
41303
+ floriday_order_group_key?: string | null;
39622
41304
  floriday_sales_order_id?: string | null;
39623
41305
  id?: string;
39624
41306
  invoice_due_at?: string | null;
@@ -45482,6 +47164,36 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
45482
47164
  referencedColumns: ["id"];
45483
47165
  }];
45484
47166
  };
47167
+ voorraad_buffer_state: {
47168
+ Row: {
47169
+ buffer_id: string;
47170
+ buffer_key: string | null;
47171
+ closed_at: string | null;
47172
+ created_at: string;
47173
+ detached_orders: import("../integrations/supabase/types").Json;
47174
+ reason: string | null;
47175
+ updated_at: string;
47176
+ };
47177
+ Insert: {
47178
+ buffer_id: string;
47179
+ buffer_key?: string | null;
47180
+ closed_at?: string | null;
47181
+ created_at?: string;
47182
+ detached_orders?: import("../integrations/supabase/types").Json;
47183
+ reason?: string | null;
47184
+ updated_at?: string;
47185
+ };
47186
+ Update: {
47187
+ buffer_id?: string;
47188
+ buffer_key?: string | null;
47189
+ closed_at?: string | null;
47190
+ created_at?: string;
47191
+ detached_orders?: import("../integrations/supabase/types").Json;
47192
+ reason?: string | null;
47193
+ updated_at?: string;
47194
+ };
47195
+ Relationships: [];
47196
+ };
45485
47197
  voorraad_custom_fields: {
45486
47198
  Row: {
45487
47199
  created_at: string;
@@ -45524,6 +47236,36 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
45524
47236
  };
45525
47237
  Relationships: [];
45526
47238
  };
47239
+ voorraad_logistics_event_log: {
47240
+ Row: {
47241
+ created_at: string;
47242
+ event_id: string;
47243
+ event_type: string;
47244
+ order_ref: string | null;
47245
+ processed_at: string;
47246
+ result: import("../integrations/supabase/types").Json;
47247
+ updated_at: string;
47248
+ };
47249
+ Insert: {
47250
+ created_at?: string;
47251
+ event_id: string;
47252
+ event_type: string;
47253
+ order_ref?: string | null;
47254
+ processed_at?: string;
47255
+ result?: import("../integrations/supabase/types").Json;
47256
+ updated_at?: string;
47257
+ };
47258
+ Update: {
47259
+ created_at?: string;
47260
+ event_id?: string;
47261
+ event_type?: string;
47262
+ order_ref?: string | null;
47263
+ processed_at?: string;
47264
+ result?: import("../integrations/supabase/types").Json;
47265
+ updated_at?: string;
47266
+ };
47267
+ Relationships: [];
47268
+ };
45527
47269
  voorraad_media_upload_failures: {
45528
47270
  Row: {
45529
47271
  action: string;
@@ -47684,6 +49426,15 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
47684
49426
  Args: never;
47685
49427
  Returns: boolean;
47686
49428
  };
49429
+ cancel_open_print_jobs: {
49430
+ Args: {
49431
+ _cutoff: string;
49432
+ };
49433
+ Returns: {
49434
+ extern_job_id: string;
49435
+ id: string;
49436
+ }[];
49437
+ };
47687
49438
  check_offer_product_available_stock: {
47688
49439
  Args: {
47689
49440
  p_campaign_product_id: string;
@@ -49222,6 +50973,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49222
50973
  };
49223
50974
  Returns: string;
49224
50975
  };
50976
+ logistics_cart_checkin_at: {
50977
+ Args: {
50978
+ p_cart_id: string;
50979
+ };
50980
+ Returns: string;
50981
+ };
49225
50982
  logistics_cart_handled: {
49226
50983
  Args: {
49227
50984
  p_cart_index: number;
@@ -49255,10 +51012,22 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49255
51012
  task_status: string;
49256
51013
  }[];
49257
51014
  };
51015
+ logistics_cart_is_full: {
51016
+ Args: {
51017
+ p_cart_id: string;
51018
+ };
51019
+ Returns: boolean;
51020
+ };
49258
51021
  logistics_cart_layout_method: {
49259
51022
  Args: never;
49260
51023
  Returns: import("../integrations/supabase/types").Json;
49261
51024
  };
51025
+ logistics_cart_order_refs: {
51026
+ Args: {
51027
+ p_cart_id: string;
51028
+ };
51029
+ Returns: string[];
51030
+ };
49262
51031
  logistics_cart_plan_overview: {
49263
51032
  Args: {
49264
51033
  p_days?: number;
@@ -49278,6 +51047,24 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49278
51047
  };
49279
51048
  Returns: import("../integrations/supabase/types").Json;
49280
51049
  };
51050
+ logistics_cart_plan_status_core: {
51051
+ Args: {
51052
+ p_ref: string;
51053
+ };
51054
+ Returns: import("../integrations/supabase/types").Json;
51055
+ };
51056
+ logistics_cart_release_reason: {
51057
+ Args: {
51058
+ p_cart_id: string;
51059
+ };
51060
+ Returns: string;
51061
+ };
51062
+ logistics_cart_released: {
51063
+ Args: {
51064
+ p_cart_id: string;
51065
+ };
51066
+ Returns: boolean;
51067
+ };
49281
51068
  logistics_cart_seq: {
49282
51069
  Args: {
49283
51070
  p_order_uuid?: string;
@@ -49328,6 +51115,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49328
51115
  unit_ref: string;
49329
51116
  }[];
49330
51117
  };
51118
+ logistics_carts_per_print: {
51119
+ Args: never;
51120
+ Returns: number;
51121
+ };
49331
51122
  logistics_check_order_allowed: {
49332
51123
  Args: {
49333
51124
  p_lines: import("../integrations/supabase/types").Json;
@@ -49431,6 +51222,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49431
51222
  isSetofReturn: false;
49432
51223
  };
49433
51224
  };
51225
+ logistics_cleanup_orphan_print_jobs: {
51226
+ Args: never;
51227
+ Returns: import("../integrations/supabase/types").Json;
51228
+ };
49434
51229
  logistics_complete_task: {
49435
51230
  Args: {
49436
51231
  p_result?: import("../integrations/supabase/types").Json;
@@ -49493,6 +51288,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49493
51288
  station_carts: number;
49494
51289
  }[];
49495
51290
  };
51291
+ logistics_control_complete_cart: {
51292
+ Args: {
51293
+ p_cart_id: string;
51294
+ };
51295
+ Returns: number;
51296
+ };
49496
51297
  logistics_control_scan_approve: {
49497
51298
  Args: {
49498
51299
  p_allow_reprint?: boolean;
@@ -49572,6 +51373,15 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49572
51373
  Args: never;
49573
51374
  Returns: import("../integrations/supabase/types").Json;
49574
51375
  };
51376
+ logistics_day_windows: {
51377
+ Args: {
51378
+ p_day: string;
51379
+ };
51380
+ Returns: {
51381
+ win_end: string;
51382
+ win_start: string;
51383
+ }[];
51384
+ };
49575
51385
  logistics_delay_customer_email: {
49576
51386
  Args: {
49577
51387
  p_customer: string;
@@ -49639,6 +51449,17 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49639
51449
  };
49640
51450
  Returns: import("../integrations/supabase/types").Json;
49641
51451
  };
51452
+ logistics_enqueue_shipping_note_with_slip: {
51453
+ Args: {
51454
+ _cart_id: string;
51455
+ _is_herprint: boolean;
51456
+ _printer_id: string;
51457
+ _queue_item_id: string;
51458
+ _session_id: string;
51459
+ _slip_job_id: string;
51460
+ };
51461
+ Returns: string;
51462
+ };
49642
51463
  logistics_enqueue_sticker_with_slip: {
49643
51464
  Args: {
49644
51465
  _cart_id: string;
@@ -49656,6 +51477,20 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49656
51477
  };
49657
51478
  Returns: string;
49658
51479
  };
51480
+ logistics_ensure_pick_data: {
51481
+ Args: {
51482
+ p_event_id?: string;
51483
+ p_missing?: import("../integrations/supabase/types").Json;
51484
+ p_ref: string;
51485
+ };
51486
+ Returns: import("../integrations/supabase/types").Json;
51487
+ };
51488
+ logistics_ensure_shipping_notes: {
51489
+ Args: {
51490
+ p_limit?: number;
51491
+ };
51492
+ Returns: import("../integrations/supabase/types").Json;
51493
+ };
49659
51494
  logistics_fail_task: {
49660
51495
  Args: {
49661
51496
  p_error: string;
@@ -49701,6 +51536,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49701
51536
  isSetofReturn: false;
49702
51537
  };
49703
51538
  };
51539
+ logistics_fix_wrong_shipping_notes: {
51540
+ Args: never;
51541
+ Returns: import("../integrations/supabase/types").Json;
51542
+ };
49704
51543
  logistics_floriday_cart_plan: {
49705
51544
  Args: {
49706
51545
  p_order_id: string;
@@ -49728,6 +51567,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49728
51567
  revision: number;
49729
51568
  }[];
49730
51569
  };
51570
+ logistics_floriday_delivery_note_create_enabled: {
51571
+ Args: never;
51572
+ Returns: boolean;
51573
+ };
49731
51574
  logistics_floriday_finish_push: {
49732
51575
  Args: {
49733
51576
  _error?: string;
@@ -49777,6 +51620,32 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49777
51620
  };
49778
51621
  Returns: string;
49779
51622
  };
51623
+ logistics_floriday_gate_status: {
51624
+ Args: never;
51625
+ Returns: import("../integrations/supabase/types").Json;
51626
+ };
51627
+ logistics_floriday_log_refusal: {
51628
+ Args: {
51629
+ _action?: string;
51630
+ _module?: string;
51631
+ _order_ref: string;
51632
+ _reason: string;
51633
+ _shell?: string;
51634
+ };
51635
+ Returns: undefined;
51636
+ };
51637
+ logistics_floriday_log_send: {
51638
+ Args: {
51639
+ _action: string;
51640
+ _detail?: string;
51641
+ _http_status?: number;
51642
+ _module?: string;
51643
+ _ok: boolean;
51644
+ _order_ref: string;
51645
+ _shell?: string;
51646
+ };
51647
+ Returns: undefined;
51648
+ };
49780
51649
  logistics_floriday_order_approved: {
49781
51650
  Args: {
49782
51651
  _order_ref: string;
@@ -49801,6 +51670,16 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49801
51670
  Args: never;
49802
51671
  Returns: boolean;
49803
51672
  };
51673
+ logistics_floriday_stock_updates_enabled: {
51674
+ Args: never;
51675
+ Returns: boolean;
51676
+ };
51677
+ logistics_floriday_write_allowed: {
51678
+ Args: {
51679
+ _action: string;
51680
+ };
51681
+ Returns: boolean;
51682
+ };
49804
51683
  logistics_fulfill_barcode_requests: {
49805
51684
  Args: {
49806
51685
  p_limit?: number;
@@ -49843,6 +51722,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49843
51722
  };
49844
51723
  Returns: number;
49845
51724
  };
51725
+ logistics_merge_partial_carts: {
51726
+ Args: {
51727
+ p_limit?: number;
51728
+ };
51729
+ Returns: import("../integrations/supabase/types").Json;
51730
+ };
49846
51731
  logistics_next_workday_date: {
49847
51732
  Args: {
49848
51733
  p_date: string;
@@ -49869,6 +51754,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49869
51754
  };
49870
51755
  Returns: string;
49871
51756
  };
51757
+ logistics_opening_timezone: {
51758
+ Args: never;
51759
+ Returns: string;
51760
+ };
49872
51761
  logistics_order_cart_count: {
49873
51762
  Args: {
49874
51763
  p_order_ref: string;
@@ -49925,6 +51814,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49925
51814
  };
49926
51815
  Returns: string;
49927
51816
  };
51817
+ logistics_payload_is_floriday: {
51818
+ Args: {
51819
+ _payload: import("../integrations/supabase/types").Json;
51820
+ };
51821
+ Returns: boolean;
51822
+ };
49928
51823
  logistics_pick_agenda: {
49929
51824
  Args: {
49930
51825
  p_from?: string;
@@ -49953,6 +51848,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49953
51848
  Args: never;
49954
51849
  Returns: import("../integrations/supabase/types").Json;
49955
51850
  };
51851
+ logistics_pick_partial_mode: {
51852
+ Args: never;
51853
+ Returns: string;
51854
+ };
49956
51855
  logistics_pick_start_estimate: {
49957
51856
  Args: {
49958
51857
  p_order: import("../integrations/supabase/types").Json;
@@ -50043,6 +51942,20 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
50043
51942
  Args: never;
50044
51943
  Returns: undefined;
50045
51944
  };
51945
+ logistics_plan_progress: {
51946
+ Args: {
51947
+ p_refs: string[];
51948
+ };
51949
+ Returns: {
51950
+ cart_plan_ready: boolean;
51951
+ cart_plan_reason: string;
51952
+ cart_plan_released: boolean;
51953
+ plan_progress: number;
51954
+ plan_state: string;
51955
+ plan_state_since: string;
51956
+ unit_ref: string;
51957
+ }[];
51958
+ };
50046
51959
  logistics_plan_prune: {
50047
51960
  Args: never;
50048
51961
  Returns: number;
@@ -50064,6 +51977,18 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
50064
51977
  };
50065
51978
  Returns: number;
50066
51979
  };
51980
+ logistics_plan_state_for: {
51981
+ Args: {
51982
+ p_ref: string;
51983
+ };
51984
+ Returns: import("../integrations/supabase/types").Json;
51985
+ };
51986
+ logistics_prepare_pick_documents: {
51987
+ Args: {
51988
+ p_limit?: number;
51989
+ };
51990
+ Returns: import("../integrations/supabase/types").Json;
51991
+ };
50067
51992
  logistics_prune_buffer_member_queue: {
50068
51993
  Args: never;
50069
51994
  Returns: number;
@@ -50104,18 +52029,36 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
50104
52029
  Args: never;
50105
52030
  Returns: import("../integrations/supabase/types").Json;
50106
52031
  };
52032
+ logistics_refresh_pick_queue_status: {
52033
+ Args: {
52034
+ p_ref: string;
52035
+ };
52036
+ Returns: number;
52037
+ };
50107
52038
  logistics_refresh_pickup_moments: {
50108
52039
  Args: {
50109
52040
  p_weeks?: number;
50110
52041
  };
50111
52042
  Returns: import("../integrations/supabase/types").Json;
50112
52043
  };
52044
+ logistics_refresh_plan_state: {
52045
+ Args: {
52046
+ p_limit?: number;
52047
+ };
52048
+ Returns: import("../integrations/supabase/types").Json;
52049
+ };
50113
52050
  logistics_replan_all: {
50114
52051
  Args: {
50115
52052
  p_reason?: string;
50116
52053
  };
50117
52054
  Returns: import("../integrations/supabase/types").Json;
50118
52055
  };
52056
+ logistics_replan_all_force: {
52057
+ Args: {
52058
+ p_reason?: string;
52059
+ };
52060
+ Returns: import("../integrations/supabase/types").Json;
52061
+ };
50119
52062
  logistics_report_delay: {
50120
52063
  Args: {
50121
52064
  p_expected_date?: string;
@@ -50260,6 +52203,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
50260
52203
  };
50261
52204
  Returns: string;
50262
52205
  };
52206
+ logistics_shipping_note_follows_slip: {
52207
+ Args: never;
52208
+ Returns: boolean;
52209
+ };
50263
52210
  logistics_shipping_note_from_barcode: {
50264
52211
  Args: {
50265
52212
  p_allow_reprint?: boolean;
@@ -50268,10 +52215,86 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
50268
52215
  };
50269
52216
  Returns: import("../integrations/supabase/types").Json;
50270
52217
  };
52218
+ logistics_shipping_note_job_for_slip: {
52219
+ Args: {
52220
+ _slip_job_id: string;
52221
+ };
52222
+ Returns: string;
52223
+ };
52224
+ logistics_shipping_notes_wake_all: {
52225
+ Args: never;
52226
+ Returns: import("../integrations/supabase/types").Json;
52227
+ };
52228
+ logistics_slip_is_floriday: {
52229
+ Args: {
52230
+ _slip_job_id: string;
52231
+ };
52232
+ Returns: boolean;
52233
+ };
52234
+ logistics_slip_note_claim: {
52235
+ Args: {
52236
+ _lease_seconds?: number;
52237
+ _limit?: number;
52238
+ };
52239
+ Returns: {
52240
+ attempts: number;
52241
+ batch_key: string | null;
52242
+ cart_id: string | null;
52243
+ created_at: string;
52244
+ error: string | null;
52245
+ error_code: string | null;
52246
+ fulfillment_order_id: string | null;
52247
+ id: string;
52248
+ locked_until: string | null;
52249
+ next_attempt_at: string | null;
52250
+ order_id: string | null;
52251
+ order_number: string | null;
52252
+ print_job_id: string | null;
52253
+ printer_id: string | null;
52254
+ retry_class: string | null;
52255
+ slip_job_id: string;
52256
+ status: string;
52257
+ updated_at: string;
52258
+ }[];
52259
+ SetofOptions: {
52260
+ from: "*";
52261
+ to: "logistics_slip_shipping_note";
52262
+ isOneToOne: false;
52263
+ isSetofReturn: true;
52264
+ };
52265
+ };
52266
+ logistics_slip_note_finish: {
52267
+ Args: {
52268
+ _error?: string;
52269
+ _error_code?: string;
52270
+ _fulfillment_order_id?: string;
52271
+ _id: string;
52272
+ _ok: boolean;
52273
+ _print_job_id?: string;
52274
+ _status?: string;
52275
+ };
52276
+ Returns: undefined;
52277
+ };
52278
+ logistics_slip_note_keep_waiting: {
52279
+ Args: {
52280
+ _class?: string;
52281
+ _id: string;
52282
+ _reason: string;
52283
+ };
52284
+ Returns: undefined;
52285
+ };
50271
52286
  logistics_sticker_follows_slip: {
50272
52287
  Args: never;
50273
52288
  Returns: boolean;
50274
52289
  };
52290
+ logistics_subtract_working_minutes: {
52291
+ Args: {
52292
+ p_deadline: string;
52293
+ p_max_workdays?: number;
52294
+ p_minutes: number;
52295
+ };
52296
+ Returns: import("../integrations/supabase/types").Json;
52297
+ };
50275
52298
  logistics_supersede_stale_tasks: {
50276
52299
  Args: {
50277
52300
  p_keep: string[];
@@ -50308,6 +52331,46 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
50308
52331
  Args: never;
50309
52332
  Returns: string;
50310
52333
  };
52334
+ logistics_timezone_options: {
52335
+ Args: never;
52336
+ Returns: {
52337
+ name: string;
52338
+ }[];
52339
+ };
52340
+ logistics_trace: {
52341
+ Args: {
52342
+ p: import("../integrations/supabase/types").Json;
52343
+ };
52344
+ Returns: string;
52345
+ };
52346
+ logistics_trace_batch: {
52347
+ Args: {
52348
+ p: import("../integrations/supabase/types").Json;
52349
+ };
52350
+ Returns: number;
52351
+ };
52352
+ logistics_trace_orders: {
52353
+ Args: {
52354
+ p_limit?: number;
52355
+ p_search?: string;
52356
+ p_since?: string;
52357
+ p_status?: string;
52358
+ };
52359
+ Returns: import("../integrations/supabase/types").Json;
52360
+ };
52361
+ logistics_trace_redact: {
52362
+ Args: {
52363
+ p: import("../integrations/supabase/types").Json;
52364
+ };
52365
+ Returns: import("../integrations/supabase/types").Json;
52366
+ };
52367
+ logistics_trace_timeline: {
52368
+ Args: {
52369
+ p_limit?: number;
52370
+ p_order_ref: string;
52371
+ };
52372
+ Returns: import("../integrations/supabase/types").Json;
52373
+ };
50311
52374
  logistics_upsert_task: {
50312
52375
  Args: {
50313
52376
  p_buffer_ref: string;
@@ -50327,6 +52390,16 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
50327
52390
  };
50328
52391
  Returns: string;
50329
52392
  };
52393
+ logistics_valid_timezone: {
52394
+ Args: {
52395
+ _tz: string;
52396
+ };
52397
+ Returns: boolean;
52398
+ };
52399
+ logistics_working_hours_status: {
52400
+ Args: never;
52401
+ Returns: import("../integrations/supabase/types").Json;
52402
+ };
50330
52403
  logistics_write_buffer_layer_positions: {
50331
52404
  Args: {
50332
52405
  p_buffer_id: string;
@@ -51339,6 +53412,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
51339
53412
  };
51340
53413
  Returns: undefined;
51341
53414
  };
53415
+ prune_floriday_api_log: {
53416
+ Args: never;
53417
+ Returns: number;
53418
+ };
51342
53419
  quote_create_from_source: {
51343
53420
  Args: {
51344
53421
  _payload?: import("../integrations/supabase/types").Json;
@@ -51772,6 +53849,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
51772
53849
  };
51773
53850
  Returns: number;
51774
53851
  };
53852
+ schedule_floriday_catalog_prices_sync: {
53853
+ Args: {
53854
+ p_apikey: string;
53855
+ p_url: string;
53856
+ };
53857
+ Returns: number;
53858
+ };
51775
53859
  schedule_floriday_clock_presales_sync: {
51776
53860
  Args: {
51777
53861
  p_apikey: string;
@@ -52072,6 +54156,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
52072
54156
  };
52073
54157
  Returns: undefined;
52074
54158
  };
54159
+ sync_floriday_prices_into_price_groups: {
54160
+ Args: never;
54161
+ Returns: number;
54162
+ };
52075
54163
  sync_layer_stock: {
52076
54164
  Args: {
52077
54165
  p_product_id: string;
@@ -52204,6 +54292,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
52204
54292
  Args: never;
52205
54293
  Returns: string;
52206
54294
  };
54295
+ voorraad_cleanup_old_rows: {
54296
+ Args: never;
54297
+ Returns: import("../integrations/supabase/types").Json;
54298
+ };
52207
54299
  wake_print_queue: {
52208
54300
  Args: {
52209
54301
  _min_interval_ms?: number;