@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
@@ -2235,6 +2235,45 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
2235
2235
  };
2236
2236
  Relationships: [];
2237
2237
  };
2238
+ customer_product_stickers: {
2239
+ Row: {
2240
+ created_at: string;
2241
+ customer_key: string;
2242
+ file_name: string;
2243
+ file_path: string;
2244
+ file_size: number | null;
2245
+ id: string;
2246
+ mime_type: string | null;
2247
+ trade_item_key: string;
2248
+ updated_at: string;
2249
+ uploaded_by: string | null;
2250
+ };
2251
+ Insert: {
2252
+ created_at?: string;
2253
+ customer_key: string;
2254
+ file_name: string;
2255
+ file_path: string;
2256
+ file_size?: number | null;
2257
+ id?: string;
2258
+ mime_type?: string | null;
2259
+ trade_item_key: string;
2260
+ updated_at?: string;
2261
+ uploaded_by?: string | null;
2262
+ };
2263
+ Update: {
2264
+ created_at?: string;
2265
+ customer_key?: string;
2266
+ file_name?: string;
2267
+ file_path?: string;
2268
+ file_size?: number | null;
2269
+ id?: string;
2270
+ mime_type?: string | null;
2271
+ trade_item_key?: string;
2272
+ updated_at?: string;
2273
+ uploaded_by?: string | null;
2274
+ };
2275
+ Relationships: [];
2276
+ };
2238
2277
  customer_selected_assortment: {
2239
2278
  Row: {
2240
2279
  article_number: string | null;
@@ -2283,6 +2322,30 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
2283
2322
  referencedColumns: ["id"];
2284
2323
  }];
2285
2324
  };
2325
+ customer_sticker_settings: {
2326
+ Row: {
2327
+ created_at: string;
2328
+ customer_key: string;
2329
+ height_mm: number;
2330
+ updated_at: string;
2331
+ width_mm: number;
2332
+ };
2333
+ Insert: {
2334
+ created_at?: string;
2335
+ customer_key: string;
2336
+ height_mm?: number;
2337
+ updated_at?: string;
2338
+ width_mm?: number;
2339
+ };
2340
+ Update: {
2341
+ created_at?: string;
2342
+ customer_key?: string;
2343
+ height_mm?: number;
2344
+ updated_at?: string;
2345
+ width_mm?: number;
2346
+ };
2347
+ Relationships: [];
2348
+ };
2286
2349
  customer_trade_settings: {
2287
2350
  Row: {
2288
2351
  category: string;
@@ -5613,6 +5676,102 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
5613
5676
  referencedColumns: ["id"];
5614
5677
  }];
5615
5678
  };
5679
+ floriday_api_log: {
5680
+ Row: {
5681
+ action: string | null;
5682
+ caller: string | null;
5683
+ connection_id: string | null;
5684
+ created_at: string;
5685
+ cursor_from: number | null;
5686
+ direction: string;
5687
+ duration_ms: number | null;
5688
+ environment: string | null;
5689
+ error: string | null;
5690
+ floriday_id: string | null;
5691
+ floriday_reference: string | null;
5692
+ http_status: number;
5693
+ id: string;
5694
+ item_count: number | null;
5695
+ kind: string | null;
5696
+ local_id: string | null;
5697
+ local_reference: string | null;
5698
+ method: string;
5699
+ module: string | null;
5700
+ ok: boolean;
5701
+ path: string;
5702
+ request: import("../integrations/supabase/types").Json | null;
5703
+ resource_type: string | null;
5704
+ response: import("../integrations/supabase/types").Json | null;
5705
+ write_log_id: string | null;
5706
+ };
5707
+ Insert: {
5708
+ action?: string | null;
5709
+ caller?: string | null;
5710
+ connection_id?: string | null;
5711
+ created_at?: string;
5712
+ cursor_from?: number | null;
5713
+ direction: string;
5714
+ duration_ms?: number | null;
5715
+ environment?: string | null;
5716
+ error?: string | null;
5717
+ floriday_id?: string | null;
5718
+ floriday_reference?: string | null;
5719
+ http_status?: number;
5720
+ id?: string;
5721
+ item_count?: number | null;
5722
+ kind?: string | null;
5723
+ local_id?: string | null;
5724
+ local_reference?: string | null;
5725
+ method: string;
5726
+ module?: string | null;
5727
+ ok?: boolean;
5728
+ path: string;
5729
+ request?: import("../integrations/supabase/types").Json | null;
5730
+ resource_type?: string | null;
5731
+ response?: import("../integrations/supabase/types").Json | null;
5732
+ write_log_id?: string | null;
5733
+ };
5734
+ Update: {
5735
+ action?: string | null;
5736
+ caller?: string | null;
5737
+ connection_id?: string | null;
5738
+ created_at?: string;
5739
+ cursor_from?: number | null;
5740
+ direction?: string;
5741
+ duration_ms?: number | null;
5742
+ environment?: string | null;
5743
+ error?: string | null;
5744
+ floriday_id?: string | null;
5745
+ floriday_reference?: string | null;
5746
+ http_status?: number;
5747
+ id?: string;
5748
+ item_count?: number | null;
5749
+ kind?: string | null;
5750
+ local_id?: string | null;
5751
+ local_reference?: string | null;
5752
+ method?: string;
5753
+ module?: string | null;
5754
+ ok?: boolean;
5755
+ path?: string;
5756
+ request?: import("../integrations/supabase/types").Json | null;
5757
+ resource_type?: string | null;
5758
+ response?: import("../integrations/supabase/types").Json | null;
5759
+ write_log_id?: string | null;
5760
+ };
5761
+ Relationships: [{
5762
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5763
+ columns: ["connection_id"];
5764
+ isOneToOne: false;
5765
+ referencedRelation: "floriday_connections";
5766
+ referencedColumns: ["id"];
5767
+ }, {
5768
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5769
+ columns: ["write_log_id"];
5770
+ isOneToOne: false;
5771
+ referencedRelation: "floriday_write_log";
5772
+ referencedColumns: ["id"];
5773
+ }];
5774
+ };
5616
5775
  floriday_auction_letters_cache: {
5617
5776
  Row: {
5618
5777
  auction_letter_code: string;
@@ -5820,6 +5979,84 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
5820
5979
  referencedColumns: ["id"];
5821
5980
  }];
5822
5981
  };
5982
+ floriday_catalog_prices_cache: {
5983
+ Row: {
5984
+ connection_id: string;
5985
+ created_at: string;
5986
+ currency: string;
5987
+ id: string;
5988
+ is_deleted: boolean;
5989
+ price: number | null;
5990
+ price_group_id: string | null;
5991
+ price_group_name: string | null;
5992
+ price_type: string;
5993
+ raw: import("../integrations/supabase/types").Json | null;
5994
+ sales_unit: string | null;
5995
+ sequence_number: number;
5996
+ supplier_article_code: string | null;
5997
+ supply_line_id: string;
5998
+ synced_at: string;
5999
+ trade_item_id: string | null;
6000
+ updated_at: string;
6001
+ valid_from: string | null;
6002
+ valid_to: string | null;
6003
+ week: number | null;
6004
+ year: number | null;
6005
+ };
6006
+ Insert: {
6007
+ connection_id: string;
6008
+ created_at?: string;
6009
+ currency?: string;
6010
+ id?: string;
6011
+ is_deleted?: boolean;
6012
+ price?: number | null;
6013
+ price_group_id?: string | null;
6014
+ price_group_name?: string | null;
6015
+ price_type?: string;
6016
+ raw?: import("../integrations/supabase/types").Json | null;
6017
+ sales_unit?: string | null;
6018
+ sequence_number?: number;
6019
+ supplier_article_code?: string | null;
6020
+ supply_line_id: string;
6021
+ synced_at?: string;
6022
+ trade_item_id?: string | null;
6023
+ updated_at?: string;
6024
+ valid_from?: string | null;
6025
+ valid_to?: string | null;
6026
+ week?: number | null;
6027
+ year?: number | null;
6028
+ };
6029
+ Update: {
6030
+ connection_id?: string;
6031
+ created_at?: string;
6032
+ currency?: string;
6033
+ id?: string;
6034
+ is_deleted?: boolean;
6035
+ price?: number | null;
6036
+ price_group_id?: string | null;
6037
+ price_group_name?: string | null;
6038
+ price_type?: string;
6039
+ raw?: import("../integrations/supabase/types").Json | null;
6040
+ sales_unit?: string | null;
6041
+ sequence_number?: number;
6042
+ supplier_article_code?: string | null;
6043
+ supply_line_id?: string;
6044
+ synced_at?: string;
6045
+ trade_item_id?: string | null;
6046
+ updated_at?: string;
6047
+ valid_from?: string | null;
6048
+ valid_to?: string | null;
6049
+ week?: number | null;
6050
+ year?: number | null;
6051
+ };
6052
+ Relationships: [{
6053
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6054
+ columns: ["connection_id"];
6055
+ isOneToOne: false;
6056
+ referencedRelation: "floriday_connections";
6057
+ referencedColumns: ["id"];
6058
+ }];
6059
+ };
5823
6060
  floriday_clock_presales_cache: {
5824
6061
  Row: {
5825
6062
  buyer_organization_id: string | null;
@@ -6735,6 +6972,69 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6735
6972
  referencedColumns: ["id"];
6736
6973
  }];
6737
6974
  };
6975
+ floriday_link_templates: {
6976
+ Row: {
6977
+ created_at: string;
6978
+ floriday_url_template: string | null;
6979
+ is_active: boolean;
6980
+ label: string;
6981
+ local_url_template: string | null;
6982
+ resource_type: string;
6983
+ updated_at: string;
6984
+ };
6985
+ Insert: {
6986
+ created_at?: string;
6987
+ floriday_url_template?: string | null;
6988
+ is_active?: boolean;
6989
+ label: string;
6990
+ local_url_template?: string | null;
6991
+ resource_type: string;
6992
+ updated_at?: string;
6993
+ };
6994
+ Update: {
6995
+ created_at?: string;
6996
+ floriday_url_template?: string | null;
6997
+ is_active?: boolean;
6998
+ label?: string;
6999
+ local_url_template?: string | null;
7000
+ resource_type?: string;
7001
+ updated_at?: string;
7002
+ };
7003
+ Relationships: [];
7004
+ };
7005
+ floriday_log_retention: {
7006
+ Row: {
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
+ Insert: {
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
+ Update: {
7027
+ created_at?: string;
7028
+ direction?: string | null;
7029
+ id?: string;
7030
+ keep_failed_days?: number | null;
7031
+ keep_ok_days?: number | null;
7032
+ note?: string | null;
7033
+ resource_type?: string | null;
7034
+ updated_at?: string;
7035
+ };
7036
+ Relationships: [];
7037
+ };
6738
7038
  floriday_logistic_labels_cache: {
6739
7039
  Row: {
6740
7040
  byte_size: number | null;
@@ -10088,22 +10388,31 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10088
10388
  };
10089
10389
  logistics_floriday_push_refusals: {
10090
10390
  Row: {
10391
+ action: string | null;
10091
10392
  created_at: string;
10092
10393
  id: string;
10093
10394
  order_ref: string;
10094
10395
  reason: string;
10396
+ source_module: string | null;
10397
+ source_shell: string | null;
10095
10398
  };
10096
10399
  Insert: {
10400
+ action?: string | null;
10097
10401
  created_at?: string;
10098
10402
  id?: string;
10099
10403
  order_ref: string;
10100
10404
  reason: string;
10405
+ source_module?: string | null;
10406
+ source_shell?: string | null;
10101
10407
  };
10102
10408
  Update: {
10409
+ action?: string | null;
10103
10410
  created_at?: string;
10104
10411
  id?: string;
10105
10412
  order_ref?: string;
10106
10413
  reason?: string;
10414
+ source_module?: string | null;
10415
+ source_shell?: string | null;
10107
10416
  };
10108
10417
  Relationships: [];
10109
10418
  };
@@ -10182,6 +10491,42 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10182
10491
  };
10183
10492
  Relationships: [];
10184
10493
  };
10494
+ logistics_floriday_status_sends: {
10495
+ Row: {
10496
+ action: string;
10497
+ created_at: string;
10498
+ detail: string | null;
10499
+ http_status: number | null;
10500
+ id: string;
10501
+ ok: boolean;
10502
+ order_ref: string;
10503
+ source_module: string | null;
10504
+ source_shell: string | null;
10505
+ };
10506
+ Insert: {
10507
+ action: string;
10508
+ created_at?: string;
10509
+ detail?: string | null;
10510
+ http_status?: number | null;
10511
+ id?: string;
10512
+ ok?: boolean;
10513
+ order_ref: string;
10514
+ source_module?: string | null;
10515
+ source_shell?: string | null;
10516
+ };
10517
+ Update: {
10518
+ action?: string;
10519
+ created_at?: string;
10520
+ detail?: string | null;
10521
+ http_status?: number | null;
10522
+ id?: string;
10523
+ ok?: boolean;
10524
+ order_ref?: string;
10525
+ source_module?: string | null;
10526
+ source_shell?: string | null;
10527
+ };
10528
+ Relationships: [];
10529
+ };
10185
10530
  logistics_formulas: {
10186
10531
  Row: {
10187
10532
  created_at: string;
@@ -10254,6 +10599,108 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10254
10599
  };
10255
10600
  Relationships: [];
10256
10601
  };
10602
+ logistics_opening_exceptions: {
10603
+ Row: {
10604
+ closes: string | null;
10605
+ created_at: string;
10606
+ day: string;
10607
+ id: string;
10608
+ is_closed: boolean;
10609
+ note: string | null;
10610
+ opens: string | null;
10611
+ };
10612
+ Insert: {
10613
+ closes?: string | null;
10614
+ created_at?: string;
10615
+ day: string;
10616
+ id?: string;
10617
+ is_closed?: boolean;
10618
+ note?: string | null;
10619
+ opens?: string | null;
10620
+ };
10621
+ Update: {
10622
+ closes?: string | null;
10623
+ created_at?: string;
10624
+ day?: string;
10625
+ id?: string;
10626
+ is_closed?: boolean;
10627
+ note?: string | null;
10628
+ opens?: string | null;
10629
+ };
10630
+ Relationships: [];
10631
+ };
10632
+ logistics_opening_hours: {
10633
+ Row: {
10634
+ closes: string;
10635
+ created_at: string;
10636
+ id: string;
10637
+ is_active: boolean;
10638
+ note: string | null;
10639
+ opens: string;
10640
+ weekday: number;
10641
+ };
10642
+ Insert: {
10643
+ closes: string;
10644
+ created_at?: string;
10645
+ id?: string;
10646
+ is_active?: boolean;
10647
+ note?: string | null;
10648
+ opens: string;
10649
+ weekday: number;
10650
+ };
10651
+ Update: {
10652
+ closes?: string;
10653
+ created_at?: string;
10654
+ id?: string;
10655
+ is_active?: boolean;
10656
+ note?: string | null;
10657
+ opens?: string;
10658
+ weekday?: number;
10659
+ };
10660
+ Relationships: [];
10661
+ };
10662
+ logistics_pick_data_requests: {
10663
+ Row: {
10664
+ actions: import("../integrations/supabase/types").Json;
10665
+ created_at: string;
10666
+ event_id: string | null;
10667
+ finished_at: string | null;
10668
+ id: string;
10669
+ missing: import("../integrations/supabase/types").Json;
10670
+ order_ref: string;
10671
+ reason: string | null;
10672
+ result: import("../integrations/supabase/types").Json | null;
10673
+ status: string;
10674
+ unit_ref: string | null;
10675
+ };
10676
+ Insert: {
10677
+ actions?: import("../integrations/supabase/types").Json;
10678
+ created_at?: string;
10679
+ event_id?: string | null;
10680
+ finished_at?: string | null;
10681
+ id?: string;
10682
+ missing?: import("../integrations/supabase/types").Json;
10683
+ order_ref: string;
10684
+ reason?: string | null;
10685
+ result?: import("../integrations/supabase/types").Json | null;
10686
+ status?: string;
10687
+ unit_ref?: string | null;
10688
+ };
10689
+ Update: {
10690
+ actions?: import("../integrations/supabase/types").Json;
10691
+ created_at?: string;
10692
+ event_id?: string | null;
10693
+ finished_at?: string | null;
10694
+ id?: string;
10695
+ missing?: import("../integrations/supabase/types").Json;
10696
+ order_ref?: string;
10697
+ reason?: string | null;
10698
+ result?: import("../integrations/supabase/types").Json | null;
10699
+ status?: string;
10700
+ unit_ref?: string | null;
10701
+ };
10702
+ Relationships: [];
10703
+ };
10257
10704
  logistics_pickup_moments: {
10258
10705
  Row: {
10259
10706
  carrier_ref: string | null;
@@ -10713,6 +11160,69 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10713
11160
  };
10714
11161
  Relationships: [];
10715
11162
  };
11163
+ logistics_slip_shipping_note: {
11164
+ Row: {
11165
+ attempts: number;
11166
+ batch_key: string | null;
11167
+ cart_id: string | null;
11168
+ created_at: string;
11169
+ error: string | null;
11170
+ error_code: string | null;
11171
+ fulfillment_order_id: string | null;
11172
+ id: string;
11173
+ locked_until: string | null;
11174
+ next_attempt_at: string | null;
11175
+ order_id: string | null;
11176
+ order_number: string | null;
11177
+ print_job_id: string | null;
11178
+ printer_id: string | null;
11179
+ retry_class: string | null;
11180
+ slip_job_id: string;
11181
+ status: string;
11182
+ updated_at: string;
11183
+ };
11184
+ Insert: {
11185
+ attempts?: number;
11186
+ batch_key?: string | null;
11187
+ cart_id?: string | null;
11188
+ created_at?: string;
11189
+ error?: string | null;
11190
+ error_code?: string | null;
11191
+ fulfillment_order_id?: string | null;
11192
+ id?: string;
11193
+ locked_until?: string | null;
11194
+ next_attempt_at?: string | null;
11195
+ order_id?: string | null;
11196
+ order_number?: string | null;
11197
+ print_job_id?: string | null;
11198
+ printer_id?: string | null;
11199
+ retry_class?: string | null;
11200
+ slip_job_id: string;
11201
+ status?: string;
11202
+ updated_at?: string;
11203
+ };
11204
+ Update: {
11205
+ attempts?: number;
11206
+ batch_key?: string | null;
11207
+ cart_id?: string | null;
11208
+ created_at?: string;
11209
+ error?: string | null;
11210
+ error_code?: string | null;
11211
+ fulfillment_order_id?: string | null;
11212
+ id?: string;
11213
+ locked_until?: string | null;
11214
+ next_attempt_at?: string | null;
11215
+ order_id?: string | null;
11216
+ order_number?: string | null;
11217
+ print_job_id?: string | null;
11218
+ printer_id?: string | null;
11219
+ retry_class?: string | null;
11220
+ slip_job_id?: string;
11221
+ status?: string;
11222
+ updated_at?: string;
11223
+ };
11224
+ Relationships: [];
11225
+ };
10716
11226
  logistics_staff_planning: {
10717
11227
  Row: {
10718
11228
  created_at: string;
@@ -11046,6 +11556,129 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
11046
11556
  };
11047
11557
  Relationships: [];
11048
11558
  };
11559
+ logistics_time_settings: {
11560
+ Row: {
11561
+ id: boolean;
11562
+ timezone: string;
11563
+ updated_at: string;
11564
+ };
11565
+ Insert: {
11566
+ id?: boolean;
11567
+ timezone: string;
11568
+ updated_at?: string;
11569
+ };
11570
+ Update: {
11571
+ id?: boolean;
11572
+ timezone?: string;
11573
+ updated_at?: string;
11574
+ };
11575
+ Relationships: [];
11576
+ };
11577
+ logistics_trace_events: {
11578
+ Row: {
11579
+ actor: string | null;
11580
+ attempts: number;
11581
+ cart_ref: string | null;
11582
+ created_at: string;
11583
+ db_action: string | null;
11584
+ db_new: import("../integrations/supabase/types").Json | null;
11585
+ db_old: import("../integrations/supabase/types").Json | null;
11586
+ db_record: string | null;
11587
+ db_table: string | null;
11588
+ decision: string | null;
11589
+ duration_ms: number | null;
11590
+ error: string | null;
11591
+ external_action: string | null;
11592
+ external_ref: string | null;
11593
+ external_response: import("../integrations/supabase/types").Json | null;
11594
+ external_status: string | null;
11595
+ external_system: string | null;
11596
+ id: string;
11597
+ input: import("../integrations/supabase/types").Json | null;
11598
+ next_attempt_at: string | null;
11599
+ order_ref: string | null;
11600
+ order_source: string | null;
11601
+ output: import("../integrations/supabase/types").Json | null;
11602
+ phase: string;
11603
+ reads: import("../integrations/supabase/types").Json | null;
11604
+ reason: string | null;
11605
+ rule: string | null;
11606
+ slip_ref: string | null;
11607
+ status: string;
11608
+ step: string;
11609
+ trace_id: string;
11610
+ values_used: import("../integrations/supabase/types").Json | null;
11611
+ };
11612
+ Insert: {
11613
+ actor?: string | null;
11614
+ attempts?: number;
11615
+ cart_ref?: string | null;
11616
+ created_at?: string;
11617
+ db_action?: string | null;
11618
+ db_new?: import("../integrations/supabase/types").Json | null;
11619
+ db_old?: import("../integrations/supabase/types").Json | null;
11620
+ db_record?: string | null;
11621
+ db_table?: string | null;
11622
+ decision?: string | null;
11623
+ duration_ms?: number | null;
11624
+ error?: string | null;
11625
+ external_action?: string | null;
11626
+ external_ref?: string | null;
11627
+ external_response?: import("../integrations/supabase/types").Json | null;
11628
+ external_status?: string | null;
11629
+ external_system?: string | null;
11630
+ id?: string;
11631
+ input?: import("../integrations/supabase/types").Json | null;
11632
+ next_attempt_at?: string | null;
11633
+ order_ref?: string | null;
11634
+ order_source?: string | null;
11635
+ output?: import("../integrations/supabase/types").Json | null;
11636
+ phase: string;
11637
+ reads?: import("../integrations/supabase/types").Json | null;
11638
+ reason?: string | null;
11639
+ rule?: string | null;
11640
+ slip_ref?: string | null;
11641
+ status: string;
11642
+ step: string;
11643
+ trace_id?: string;
11644
+ values_used?: import("../integrations/supabase/types").Json | null;
11645
+ };
11646
+ Update: {
11647
+ actor?: string | null;
11648
+ attempts?: number;
11649
+ cart_ref?: string | null;
11650
+ created_at?: string;
11651
+ db_action?: string | null;
11652
+ db_new?: import("../integrations/supabase/types").Json | null;
11653
+ db_old?: import("../integrations/supabase/types").Json | null;
11654
+ db_record?: string | null;
11655
+ db_table?: string | null;
11656
+ decision?: string | null;
11657
+ duration_ms?: number | null;
11658
+ error?: string | null;
11659
+ external_action?: string | null;
11660
+ external_ref?: string | null;
11661
+ external_response?: import("../integrations/supabase/types").Json | null;
11662
+ external_status?: string | null;
11663
+ external_system?: string | null;
11664
+ id?: string;
11665
+ input?: import("../integrations/supabase/types").Json | null;
11666
+ next_attempt_at?: string | null;
11667
+ order_ref?: string | null;
11668
+ order_source?: string | null;
11669
+ output?: import("../integrations/supabase/types").Json | null;
11670
+ phase?: string;
11671
+ reads?: import("../integrations/supabase/types").Json | null;
11672
+ reason?: string | null;
11673
+ rule?: string | null;
11674
+ slip_ref?: string | null;
11675
+ status?: string;
11676
+ step?: string;
11677
+ trace_id?: string;
11678
+ values_used?: import("../integrations/supabase/types").Json | null;
11679
+ };
11680
+ Relationships: [];
11681
+ };
11049
11682
  logistics_variables: {
11050
11683
  Row: {
11051
11684
  created_at: string;
@@ -13436,6 +14069,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13436
14069
  customer_name: string;
13437
14070
  deleted_at: string | null;
13438
14071
  delivery_date: string | null;
14072
+ floriday_order_group_key: string | null;
13439
14073
  floriday_sales_order_id: string | null;
13440
14074
  id: string;
13441
14075
  invoice_due_at: string | null;
@@ -13463,6 +14097,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13463
14097
  customer_name?: string;
13464
14098
  deleted_at?: string | null;
13465
14099
  delivery_date?: string | null;
14100
+ floriday_order_group_key?: string | null;
13466
14101
  floriday_sales_order_id?: string | null;
13467
14102
  id?: string;
13468
14103
  invoice_due_at?: string | null;
@@ -13490,6 +14125,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13490
14125
  customer_name?: string;
13491
14126
  deleted_at?: string | null;
13492
14127
  delivery_date?: string | null;
14128
+ floriday_order_group_key?: string | null;
13493
14129
  floriday_sales_order_id?: string | null;
13494
14130
  id?: string;
13495
14131
  invoice_due_at?: string | null;
@@ -19353,6 +19989,36 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19353
19989
  referencedColumns: ["id"];
19354
19990
  }];
19355
19991
  };
19992
+ voorraad_buffer_state: {
19993
+ Row: {
19994
+ buffer_id: string;
19995
+ buffer_key: string | null;
19996
+ closed_at: string | null;
19997
+ created_at: string;
19998
+ detached_orders: import("../integrations/supabase/types").Json;
19999
+ reason: string | null;
20000
+ updated_at: string;
20001
+ };
20002
+ Insert: {
20003
+ buffer_id: string;
20004
+ buffer_key?: string | null;
20005
+ closed_at?: string | null;
20006
+ created_at?: string;
20007
+ detached_orders?: import("../integrations/supabase/types").Json;
20008
+ reason?: string | null;
20009
+ updated_at?: string;
20010
+ };
20011
+ Update: {
20012
+ buffer_id?: string;
20013
+ buffer_key?: string | null;
20014
+ closed_at?: string | null;
20015
+ created_at?: string;
20016
+ detached_orders?: import("../integrations/supabase/types").Json;
20017
+ reason?: string | null;
20018
+ updated_at?: string;
20019
+ };
20020
+ Relationships: [];
20021
+ };
19356
20022
  voorraad_custom_fields: {
19357
20023
  Row: {
19358
20024
  created_at: string;
@@ -19395,6 +20061,36 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19395
20061
  };
19396
20062
  Relationships: [];
19397
20063
  };
20064
+ voorraad_logistics_event_log: {
20065
+ Row: {
20066
+ created_at: string;
20067
+ event_id: string;
20068
+ event_type: string;
20069
+ order_ref: string | null;
20070
+ processed_at: string;
20071
+ result: import("../integrations/supabase/types").Json;
20072
+ updated_at: string;
20073
+ };
20074
+ Insert: {
20075
+ created_at?: string;
20076
+ event_id: string;
20077
+ event_type: string;
20078
+ order_ref?: string | null;
20079
+ processed_at?: string;
20080
+ result?: import("../integrations/supabase/types").Json;
20081
+ updated_at?: string;
20082
+ };
20083
+ Update: {
20084
+ created_at?: string;
20085
+ event_id?: string;
20086
+ event_type?: string;
20087
+ order_ref?: string | null;
20088
+ processed_at?: string;
20089
+ result?: import("../integrations/supabase/types").Json;
20090
+ updated_at?: string;
20091
+ };
20092
+ Relationships: [];
20093
+ };
19398
20094
  voorraad_media_upload_failures: {
19399
20095
  Row: {
19400
20096
  action: string;
@@ -21555,6 +22251,15 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21555
22251
  Args: never;
21556
22252
  Returns: boolean;
21557
22253
  };
22254
+ cancel_open_print_jobs: {
22255
+ Args: {
22256
+ _cutoff: string;
22257
+ };
22258
+ Returns: {
22259
+ extern_job_id: string;
22260
+ id: string;
22261
+ }[];
22262
+ };
21558
22263
  check_offer_product_available_stock: {
21559
22264
  Args: {
21560
22265
  p_campaign_product_id: string;
@@ -23093,6 +23798,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23093
23798
  };
23094
23799
  Returns: string;
23095
23800
  };
23801
+ logistics_cart_checkin_at: {
23802
+ Args: {
23803
+ p_cart_id: string;
23804
+ };
23805
+ Returns: string;
23806
+ };
23096
23807
  logistics_cart_handled: {
23097
23808
  Args: {
23098
23809
  p_cart_index: number;
@@ -23126,10 +23837,22 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23126
23837
  task_status: string;
23127
23838
  }[];
23128
23839
  };
23840
+ logistics_cart_is_full: {
23841
+ Args: {
23842
+ p_cart_id: string;
23843
+ };
23844
+ Returns: boolean;
23845
+ };
23129
23846
  logistics_cart_layout_method: {
23130
23847
  Args: never;
23131
23848
  Returns: import("../integrations/supabase/types").Json;
23132
23849
  };
23850
+ logistics_cart_order_refs: {
23851
+ Args: {
23852
+ p_cart_id: string;
23853
+ };
23854
+ Returns: string[];
23855
+ };
23133
23856
  logistics_cart_plan_overview: {
23134
23857
  Args: {
23135
23858
  p_days?: number;
@@ -23149,6 +23872,24 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23149
23872
  };
23150
23873
  Returns: import("../integrations/supabase/types").Json;
23151
23874
  };
23875
+ logistics_cart_plan_status_core: {
23876
+ Args: {
23877
+ p_ref: string;
23878
+ };
23879
+ Returns: import("../integrations/supabase/types").Json;
23880
+ };
23881
+ logistics_cart_release_reason: {
23882
+ Args: {
23883
+ p_cart_id: string;
23884
+ };
23885
+ Returns: string;
23886
+ };
23887
+ logistics_cart_released: {
23888
+ Args: {
23889
+ p_cart_id: string;
23890
+ };
23891
+ Returns: boolean;
23892
+ };
23152
23893
  logistics_cart_seq: {
23153
23894
  Args: {
23154
23895
  p_order_uuid?: string;
@@ -23199,6 +23940,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23199
23940
  unit_ref: string;
23200
23941
  }[];
23201
23942
  };
23943
+ logistics_carts_per_print: {
23944
+ Args: never;
23945
+ Returns: number;
23946
+ };
23202
23947
  logistics_check_order_allowed: {
23203
23948
  Args: {
23204
23949
  p_lines: import("../integrations/supabase/types").Json;
@@ -23302,6 +24047,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23302
24047
  isSetofReturn: false;
23303
24048
  };
23304
24049
  };
24050
+ logistics_cleanup_orphan_print_jobs: {
24051
+ Args: never;
24052
+ Returns: import("../integrations/supabase/types").Json;
24053
+ };
23305
24054
  logistics_complete_task: {
23306
24055
  Args: {
23307
24056
  p_result?: import("../integrations/supabase/types").Json;
@@ -23364,6 +24113,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23364
24113
  station_carts: number;
23365
24114
  }[];
23366
24115
  };
24116
+ logistics_control_complete_cart: {
24117
+ Args: {
24118
+ p_cart_id: string;
24119
+ };
24120
+ Returns: number;
24121
+ };
23367
24122
  logistics_control_scan_approve: {
23368
24123
  Args: {
23369
24124
  p_allow_reprint?: boolean;
@@ -23443,6 +24198,15 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23443
24198
  Args: never;
23444
24199
  Returns: import("../integrations/supabase/types").Json;
23445
24200
  };
24201
+ logistics_day_windows: {
24202
+ Args: {
24203
+ p_day: string;
24204
+ };
24205
+ Returns: {
24206
+ win_end: string;
24207
+ win_start: string;
24208
+ }[];
24209
+ };
23446
24210
  logistics_delay_customer_email: {
23447
24211
  Args: {
23448
24212
  p_customer: string;
@@ -23510,6 +24274,17 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23510
24274
  };
23511
24275
  Returns: import("../integrations/supabase/types").Json;
23512
24276
  };
24277
+ logistics_enqueue_shipping_note_with_slip: {
24278
+ Args: {
24279
+ _cart_id: string;
24280
+ _is_herprint: boolean;
24281
+ _printer_id: string;
24282
+ _queue_item_id: string;
24283
+ _session_id: string;
24284
+ _slip_job_id: string;
24285
+ };
24286
+ Returns: string;
24287
+ };
23513
24288
  logistics_enqueue_sticker_with_slip: {
23514
24289
  Args: {
23515
24290
  _cart_id: string;
@@ -23527,6 +24302,20 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23527
24302
  };
23528
24303
  Returns: string;
23529
24304
  };
24305
+ logistics_ensure_pick_data: {
24306
+ Args: {
24307
+ p_event_id?: string;
24308
+ p_missing?: import("../integrations/supabase/types").Json;
24309
+ p_ref: string;
24310
+ };
24311
+ Returns: import("../integrations/supabase/types").Json;
24312
+ };
24313
+ logistics_ensure_shipping_notes: {
24314
+ Args: {
24315
+ p_limit?: number;
24316
+ };
24317
+ Returns: import("../integrations/supabase/types").Json;
24318
+ };
23530
24319
  logistics_fail_task: {
23531
24320
  Args: {
23532
24321
  p_error: string;
@@ -23572,6 +24361,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23572
24361
  isSetofReturn: false;
23573
24362
  };
23574
24363
  };
24364
+ logistics_fix_wrong_shipping_notes: {
24365
+ Args: never;
24366
+ Returns: import("../integrations/supabase/types").Json;
24367
+ };
23575
24368
  logistics_floriday_cart_plan: {
23576
24369
  Args: {
23577
24370
  p_order_id: string;
@@ -23599,6 +24392,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23599
24392
  revision: number;
23600
24393
  }[];
23601
24394
  };
24395
+ logistics_floriday_delivery_note_create_enabled: {
24396
+ Args: never;
24397
+ Returns: boolean;
24398
+ };
23602
24399
  logistics_floriday_finish_push: {
23603
24400
  Args: {
23604
24401
  _error?: string;
@@ -23648,6 +24445,32 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23648
24445
  };
23649
24446
  Returns: string;
23650
24447
  };
24448
+ logistics_floriday_gate_status: {
24449
+ Args: never;
24450
+ Returns: import("../integrations/supabase/types").Json;
24451
+ };
24452
+ logistics_floriday_log_refusal: {
24453
+ Args: {
24454
+ _action?: string;
24455
+ _module?: string;
24456
+ _order_ref: string;
24457
+ _reason: string;
24458
+ _shell?: string;
24459
+ };
24460
+ Returns: undefined;
24461
+ };
24462
+ logistics_floriday_log_send: {
24463
+ Args: {
24464
+ _action: string;
24465
+ _detail?: string;
24466
+ _http_status?: number;
24467
+ _module?: string;
24468
+ _ok: boolean;
24469
+ _order_ref: string;
24470
+ _shell?: string;
24471
+ };
24472
+ Returns: undefined;
24473
+ };
23651
24474
  logistics_floriday_order_approved: {
23652
24475
  Args: {
23653
24476
  _order_ref: string;
@@ -23672,6 +24495,16 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23672
24495
  Args: never;
23673
24496
  Returns: boolean;
23674
24497
  };
24498
+ logistics_floriday_stock_updates_enabled: {
24499
+ Args: never;
24500
+ Returns: boolean;
24501
+ };
24502
+ logistics_floriday_write_allowed: {
24503
+ Args: {
24504
+ _action: string;
24505
+ };
24506
+ Returns: boolean;
24507
+ };
23675
24508
  logistics_fulfill_barcode_requests: {
23676
24509
  Args: {
23677
24510
  p_limit?: number;
@@ -23714,6 +24547,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23714
24547
  };
23715
24548
  Returns: number;
23716
24549
  };
24550
+ logistics_merge_partial_carts: {
24551
+ Args: {
24552
+ p_limit?: number;
24553
+ };
24554
+ Returns: import("../integrations/supabase/types").Json;
24555
+ };
23717
24556
  logistics_next_workday_date: {
23718
24557
  Args: {
23719
24558
  p_date: string;
@@ -23740,6 +24579,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23740
24579
  };
23741
24580
  Returns: string;
23742
24581
  };
24582
+ logistics_opening_timezone: {
24583
+ Args: never;
24584
+ Returns: string;
24585
+ };
23743
24586
  logistics_order_cart_count: {
23744
24587
  Args: {
23745
24588
  p_order_ref: string;
@@ -23796,6 +24639,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23796
24639
  };
23797
24640
  Returns: string;
23798
24641
  };
24642
+ logistics_payload_is_floriday: {
24643
+ Args: {
24644
+ _payload: import("../integrations/supabase/types").Json;
24645
+ };
24646
+ Returns: boolean;
24647
+ };
23799
24648
  logistics_pick_agenda: {
23800
24649
  Args: {
23801
24650
  p_from?: string;
@@ -23824,6 +24673,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23824
24673
  Args: never;
23825
24674
  Returns: import("../integrations/supabase/types").Json;
23826
24675
  };
24676
+ logistics_pick_partial_mode: {
24677
+ Args: never;
24678
+ Returns: string;
24679
+ };
23827
24680
  logistics_pick_start_estimate: {
23828
24681
  Args: {
23829
24682
  p_order: import("../integrations/supabase/types").Json;
@@ -23914,6 +24767,20 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23914
24767
  Args: never;
23915
24768
  Returns: undefined;
23916
24769
  };
24770
+ logistics_plan_progress: {
24771
+ Args: {
24772
+ p_refs: string[];
24773
+ };
24774
+ Returns: {
24775
+ cart_plan_ready: boolean;
24776
+ cart_plan_reason: string;
24777
+ cart_plan_released: boolean;
24778
+ plan_progress: number;
24779
+ plan_state: string;
24780
+ plan_state_since: string;
24781
+ unit_ref: string;
24782
+ }[];
24783
+ };
23917
24784
  logistics_plan_prune: {
23918
24785
  Args: never;
23919
24786
  Returns: number;
@@ -23935,6 +24802,18 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23935
24802
  };
23936
24803
  Returns: number;
23937
24804
  };
24805
+ logistics_plan_state_for: {
24806
+ Args: {
24807
+ p_ref: string;
24808
+ };
24809
+ Returns: import("../integrations/supabase/types").Json;
24810
+ };
24811
+ logistics_prepare_pick_documents: {
24812
+ Args: {
24813
+ p_limit?: number;
24814
+ };
24815
+ Returns: import("../integrations/supabase/types").Json;
24816
+ };
23938
24817
  logistics_prune_buffer_member_queue: {
23939
24818
  Args: never;
23940
24819
  Returns: number;
@@ -23975,18 +24854,36 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23975
24854
  Args: never;
23976
24855
  Returns: import("../integrations/supabase/types").Json;
23977
24856
  };
24857
+ logistics_refresh_pick_queue_status: {
24858
+ Args: {
24859
+ p_ref: string;
24860
+ };
24861
+ Returns: number;
24862
+ };
23978
24863
  logistics_refresh_pickup_moments: {
23979
24864
  Args: {
23980
24865
  p_weeks?: number;
23981
24866
  };
23982
24867
  Returns: import("../integrations/supabase/types").Json;
23983
24868
  };
24869
+ logistics_refresh_plan_state: {
24870
+ Args: {
24871
+ p_limit?: number;
24872
+ };
24873
+ Returns: import("../integrations/supabase/types").Json;
24874
+ };
23984
24875
  logistics_replan_all: {
23985
24876
  Args: {
23986
24877
  p_reason?: string;
23987
24878
  };
23988
24879
  Returns: import("../integrations/supabase/types").Json;
23989
24880
  };
24881
+ logistics_replan_all_force: {
24882
+ Args: {
24883
+ p_reason?: string;
24884
+ };
24885
+ Returns: import("../integrations/supabase/types").Json;
24886
+ };
23990
24887
  logistics_report_delay: {
23991
24888
  Args: {
23992
24889
  p_expected_date?: string;
@@ -24131,6 +25028,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
24131
25028
  };
24132
25029
  Returns: string;
24133
25030
  };
25031
+ logistics_shipping_note_follows_slip: {
25032
+ Args: never;
25033
+ Returns: boolean;
25034
+ };
24134
25035
  logistics_shipping_note_from_barcode: {
24135
25036
  Args: {
24136
25037
  p_allow_reprint?: boolean;
@@ -24139,10 +25040,86 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
24139
25040
  };
24140
25041
  Returns: import("../integrations/supabase/types").Json;
24141
25042
  };
25043
+ logistics_shipping_note_job_for_slip: {
25044
+ Args: {
25045
+ _slip_job_id: string;
25046
+ };
25047
+ Returns: string;
25048
+ };
25049
+ logistics_shipping_notes_wake_all: {
25050
+ Args: never;
25051
+ Returns: import("../integrations/supabase/types").Json;
25052
+ };
25053
+ logistics_slip_is_floriday: {
25054
+ Args: {
25055
+ _slip_job_id: string;
25056
+ };
25057
+ Returns: boolean;
25058
+ };
25059
+ logistics_slip_note_claim: {
25060
+ Args: {
25061
+ _lease_seconds?: number;
25062
+ _limit?: number;
25063
+ };
25064
+ Returns: {
25065
+ attempts: number;
25066
+ batch_key: string | null;
25067
+ cart_id: string | null;
25068
+ created_at: string;
25069
+ error: string | null;
25070
+ error_code: string | null;
25071
+ fulfillment_order_id: string | null;
25072
+ id: string;
25073
+ locked_until: string | null;
25074
+ next_attempt_at: string | null;
25075
+ order_id: string | null;
25076
+ order_number: string | null;
25077
+ print_job_id: string | null;
25078
+ printer_id: string | null;
25079
+ retry_class: string | null;
25080
+ slip_job_id: string;
25081
+ status: string;
25082
+ updated_at: string;
25083
+ }[];
25084
+ SetofOptions: {
25085
+ from: "*";
25086
+ to: "logistics_slip_shipping_note";
25087
+ isOneToOne: false;
25088
+ isSetofReturn: true;
25089
+ };
25090
+ };
25091
+ logistics_slip_note_finish: {
25092
+ Args: {
25093
+ _error?: string;
25094
+ _error_code?: string;
25095
+ _fulfillment_order_id?: string;
25096
+ _id: string;
25097
+ _ok: boolean;
25098
+ _print_job_id?: string;
25099
+ _status?: string;
25100
+ };
25101
+ Returns: undefined;
25102
+ };
25103
+ logistics_slip_note_keep_waiting: {
25104
+ Args: {
25105
+ _class?: string;
25106
+ _id: string;
25107
+ _reason: string;
25108
+ };
25109
+ Returns: undefined;
25110
+ };
24142
25111
  logistics_sticker_follows_slip: {
24143
25112
  Args: never;
24144
25113
  Returns: boolean;
24145
25114
  };
25115
+ logistics_subtract_working_minutes: {
25116
+ Args: {
25117
+ p_deadline: string;
25118
+ p_max_workdays?: number;
25119
+ p_minutes: number;
25120
+ };
25121
+ Returns: import("../integrations/supabase/types").Json;
25122
+ };
24146
25123
  logistics_supersede_stale_tasks: {
24147
25124
  Args: {
24148
25125
  p_keep: string[];
@@ -24179,6 +25156,46 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
24179
25156
  Args: never;
24180
25157
  Returns: string;
24181
25158
  };
25159
+ logistics_timezone_options: {
25160
+ Args: never;
25161
+ Returns: {
25162
+ name: string;
25163
+ }[];
25164
+ };
25165
+ logistics_trace: {
25166
+ Args: {
25167
+ p: import("../integrations/supabase/types").Json;
25168
+ };
25169
+ Returns: string;
25170
+ };
25171
+ logistics_trace_batch: {
25172
+ Args: {
25173
+ p: import("../integrations/supabase/types").Json;
25174
+ };
25175
+ Returns: number;
25176
+ };
25177
+ logistics_trace_orders: {
25178
+ Args: {
25179
+ p_limit?: number;
25180
+ p_search?: string;
25181
+ p_since?: string;
25182
+ p_status?: string;
25183
+ };
25184
+ Returns: import("../integrations/supabase/types").Json;
25185
+ };
25186
+ logistics_trace_redact: {
25187
+ Args: {
25188
+ p: import("../integrations/supabase/types").Json;
25189
+ };
25190
+ Returns: import("../integrations/supabase/types").Json;
25191
+ };
25192
+ logistics_trace_timeline: {
25193
+ Args: {
25194
+ p_limit?: number;
25195
+ p_order_ref: string;
25196
+ };
25197
+ Returns: import("../integrations/supabase/types").Json;
25198
+ };
24182
25199
  logistics_upsert_task: {
24183
25200
  Args: {
24184
25201
  p_buffer_ref: string;
@@ -24198,6 +25215,16 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
24198
25215
  };
24199
25216
  Returns: string;
24200
25217
  };
25218
+ logistics_valid_timezone: {
25219
+ Args: {
25220
+ _tz: string;
25221
+ };
25222
+ Returns: boolean;
25223
+ };
25224
+ logistics_working_hours_status: {
25225
+ Args: never;
25226
+ Returns: import("../integrations/supabase/types").Json;
25227
+ };
24201
25228
  logistics_write_buffer_layer_positions: {
24202
25229
  Args: {
24203
25230
  p_buffer_id: string;
@@ -25210,6 +26237,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
25210
26237
  };
25211
26238
  Returns: undefined;
25212
26239
  };
26240
+ prune_floriday_api_log: {
26241
+ Args: never;
26242
+ Returns: number;
26243
+ };
25213
26244
  quote_create_from_source: {
25214
26245
  Args: {
25215
26246
  _payload?: import("../integrations/supabase/types").Json;
@@ -25643,6 +26674,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
25643
26674
  };
25644
26675
  Returns: number;
25645
26676
  };
26677
+ schedule_floriday_catalog_prices_sync: {
26678
+ Args: {
26679
+ p_apikey: string;
26680
+ p_url: string;
26681
+ };
26682
+ Returns: number;
26683
+ };
25646
26684
  schedule_floriday_clock_presales_sync: {
25647
26685
  Args: {
25648
26686
  p_apikey: string;
@@ -25943,6 +26981,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
25943
26981
  };
25944
26982
  Returns: undefined;
25945
26983
  };
26984
+ sync_floriday_prices_into_price_groups: {
26985
+ Args: never;
26986
+ Returns: number;
26987
+ };
25946
26988
  sync_layer_stock: {
25947
26989
  Args: {
25948
26990
  p_product_id: string;
@@ -26075,6 +27117,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
26075
27117
  Args: never;
26076
27118
  Returns: string;
26077
27119
  };
27120
+ voorraad_cleanup_old_rows: {
27121
+ Args: never;
27122
+ Returns: import("../integrations/supabase/types").Json;
27123
+ };
26078
27124
  wake_print_queue: {
26079
27125
  Args: {
26080
27126
  _min_interval_ms?: number;
@@ -28382,6 +29428,45 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28382
29428
  };
28383
29429
  Relationships: [];
28384
29430
  };
29431
+ customer_product_stickers: {
29432
+ Row: {
29433
+ created_at: string;
29434
+ customer_key: string;
29435
+ file_name: string;
29436
+ file_path: string;
29437
+ file_size: number | null;
29438
+ id: string;
29439
+ mime_type: string | null;
29440
+ trade_item_key: string;
29441
+ updated_at: string;
29442
+ uploaded_by: string | null;
29443
+ };
29444
+ Insert: {
29445
+ created_at?: string;
29446
+ customer_key: string;
29447
+ file_name: string;
29448
+ file_path: string;
29449
+ file_size?: number | null;
29450
+ id?: string;
29451
+ mime_type?: string | null;
29452
+ trade_item_key: string;
29453
+ updated_at?: string;
29454
+ uploaded_by?: string | null;
29455
+ };
29456
+ Update: {
29457
+ created_at?: string;
29458
+ customer_key?: string;
29459
+ file_name?: string;
29460
+ file_path?: string;
29461
+ file_size?: number | null;
29462
+ id?: string;
29463
+ mime_type?: string | null;
29464
+ trade_item_key?: string;
29465
+ updated_at?: string;
29466
+ uploaded_by?: string | null;
29467
+ };
29468
+ Relationships: [];
29469
+ };
28385
29470
  customer_selected_assortment: {
28386
29471
  Row: {
28387
29472
  article_number: string | null;
@@ -28430,6 +29515,30 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28430
29515
  referencedColumns: ["id"];
28431
29516
  }];
28432
29517
  };
29518
+ customer_sticker_settings: {
29519
+ Row: {
29520
+ created_at: string;
29521
+ customer_key: string;
29522
+ height_mm: number;
29523
+ updated_at: string;
29524
+ width_mm: number;
29525
+ };
29526
+ Insert: {
29527
+ created_at?: string;
29528
+ customer_key: string;
29529
+ height_mm?: number;
29530
+ updated_at?: string;
29531
+ width_mm?: number;
29532
+ };
29533
+ Update: {
29534
+ created_at?: string;
29535
+ customer_key?: string;
29536
+ height_mm?: number;
29537
+ updated_at?: string;
29538
+ width_mm?: number;
29539
+ };
29540
+ Relationships: [];
29541
+ };
28433
29542
  customer_trade_settings: {
28434
29543
  Row: {
28435
29544
  category: string;
@@ -31760,6 +32869,102 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
31760
32869
  referencedColumns: ["id"];
31761
32870
  }];
31762
32871
  };
32872
+ floriday_api_log: {
32873
+ Row: {
32874
+ action: string | null;
32875
+ caller: string | null;
32876
+ connection_id: string | null;
32877
+ created_at: string;
32878
+ cursor_from: number | null;
32879
+ direction: string;
32880
+ duration_ms: number | null;
32881
+ environment: string | null;
32882
+ error: string | null;
32883
+ floriday_id: string | null;
32884
+ floriday_reference: string | null;
32885
+ http_status: number;
32886
+ id: string;
32887
+ item_count: number | null;
32888
+ kind: string | null;
32889
+ local_id: string | null;
32890
+ local_reference: string | null;
32891
+ method: string;
32892
+ module: string | null;
32893
+ ok: boolean;
32894
+ path: string;
32895
+ request: import("../integrations/supabase/types").Json | null;
32896
+ resource_type: string | null;
32897
+ response: import("../integrations/supabase/types").Json | null;
32898
+ write_log_id: string | null;
32899
+ };
32900
+ Insert: {
32901
+ action?: string | null;
32902
+ caller?: string | null;
32903
+ connection_id?: string | null;
32904
+ created_at?: string;
32905
+ cursor_from?: number | null;
32906
+ direction: string;
32907
+ duration_ms?: number | null;
32908
+ environment?: string | null;
32909
+ error?: string | null;
32910
+ floriday_id?: string | null;
32911
+ floriday_reference?: string | null;
32912
+ http_status?: number;
32913
+ id?: string;
32914
+ item_count?: number | null;
32915
+ kind?: string | null;
32916
+ local_id?: string | null;
32917
+ local_reference?: string | null;
32918
+ method: string;
32919
+ module?: string | null;
32920
+ ok?: boolean;
32921
+ path: string;
32922
+ request?: import("../integrations/supabase/types").Json | null;
32923
+ resource_type?: string | null;
32924
+ response?: import("../integrations/supabase/types").Json | null;
32925
+ write_log_id?: string | null;
32926
+ };
32927
+ Update: {
32928
+ action?: string | null;
32929
+ caller?: string | null;
32930
+ connection_id?: string | null;
32931
+ created_at?: string;
32932
+ cursor_from?: number | null;
32933
+ direction?: string;
32934
+ duration_ms?: number | null;
32935
+ environment?: string | null;
32936
+ error?: string | null;
32937
+ floriday_id?: string | null;
32938
+ floriday_reference?: string | null;
32939
+ http_status?: number;
32940
+ id?: string;
32941
+ item_count?: number | null;
32942
+ kind?: string | null;
32943
+ local_id?: string | null;
32944
+ local_reference?: string | null;
32945
+ method?: string;
32946
+ module?: string | null;
32947
+ ok?: boolean;
32948
+ path?: string;
32949
+ request?: import("../integrations/supabase/types").Json | null;
32950
+ resource_type?: string | null;
32951
+ response?: import("../integrations/supabase/types").Json | null;
32952
+ write_log_id?: string | null;
32953
+ };
32954
+ Relationships: [{
32955
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32956
+ columns: ["connection_id"];
32957
+ isOneToOne: false;
32958
+ referencedRelation: "floriday_connections";
32959
+ referencedColumns: ["id"];
32960
+ }, {
32961
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32962
+ columns: ["write_log_id"];
32963
+ isOneToOne: false;
32964
+ referencedRelation: "floriday_write_log";
32965
+ referencedColumns: ["id"];
32966
+ }];
32967
+ };
31763
32968
  floriday_auction_letters_cache: {
31764
32969
  Row: {
31765
32970
  auction_letter_code: string;
@@ -31967,6 +33172,84 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
31967
33172
  referencedColumns: ["id"];
31968
33173
  }];
31969
33174
  };
33175
+ floriday_catalog_prices_cache: {
33176
+ Row: {
33177
+ connection_id: string;
33178
+ created_at: string;
33179
+ currency: string;
33180
+ id: string;
33181
+ is_deleted: boolean;
33182
+ price: number | null;
33183
+ price_group_id: string | null;
33184
+ price_group_name: string | null;
33185
+ price_type: string;
33186
+ raw: import("../integrations/supabase/types").Json | null;
33187
+ sales_unit: string | null;
33188
+ sequence_number: number;
33189
+ supplier_article_code: string | null;
33190
+ supply_line_id: string;
33191
+ synced_at: string;
33192
+ trade_item_id: string | null;
33193
+ updated_at: string;
33194
+ valid_from: string | null;
33195
+ valid_to: string | null;
33196
+ week: number | null;
33197
+ year: number | null;
33198
+ };
33199
+ Insert: {
33200
+ connection_id: string;
33201
+ created_at?: string;
33202
+ currency?: string;
33203
+ id?: string;
33204
+ is_deleted?: boolean;
33205
+ price?: number | null;
33206
+ price_group_id?: string | null;
33207
+ price_group_name?: string | null;
33208
+ price_type?: string;
33209
+ raw?: import("../integrations/supabase/types").Json | null;
33210
+ sales_unit?: string | null;
33211
+ sequence_number?: number;
33212
+ supplier_article_code?: string | null;
33213
+ supply_line_id: string;
33214
+ synced_at?: string;
33215
+ trade_item_id?: string | null;
33216
+ updated_at?: string;
33217
+ valid_from?: string | null;
33218
+ valid_to?: string | null;
33219
+ week?: number | null;
33220
+ year?: number | null;
33221
+ };
33222
+ Update: {
33223
+ connection_id?: string;
33224
+ created_at?: string;
33225
+ currency?: string;
33226
+ id?: string;
33227
+ is_deleted?: boolean;
33228
+ price?: number | null;
33229
+ price_group_id?: string | null;
33230
+ price_group_name?: string | null;
33231
+ price_type?: string;
33232
+ raw?: import("../integrations/supabase/types").Json | null;
33233
+ sales_unit?: string | null;
33234
+ sequence_number?: number;
33235
+ supplier_article_code?: string | null;
33236
+ supply_line_id?: string;
33237
+ synced_at?: string;
33238
+ trade_item_id?: string | null;
33239
+ updated_at?: string;
33240
+ valid_from?: string | null;
33241
+ valid_to?: string | null;
33242
+ week?: number | null;
33243
+ year?: number | null;
33244
+ };
33245
+ Relationships: [{
33246
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33247
+ columns: ["connection_id"];
33248
+ isOneToOne: false;
33249
+ referencedRelation: "floriday_connections";
33250
+ referencedColumns: ["id"];
33251
+ }];
33252
+ };
31970
33253
  floriday_clock_presales_cache: {
31971
33254
  Row: {
31972
33255
  buyer_organization_id: string | null;
@@ -32882,6 +34165,69 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32882
34165
  referencedColumns: ["id"];
32883
34166
  }];
32884
34167
  };
34168
+ floriday_link_templates: {
34169
+ Row: {
34170
+ created_at: string;
34171
+ floriday_url_template: string | null;
34172
+ is_active: boolean;
34173
+ label: string;
34174
+ local_url_template: string | null;
34175
+ resource_type: string;
34176
+ updated_at: string;
34177
+ };
34178
+ Insert: {
34179
+ created_at?: string;
34180
+ floriday_url_template?: string | null;
34181
+ is_active?: boolean;
34182
+ label: string;
34183
+ local_url_template?: string | null;
34184
+ resource_type: string;
34185
+ updated_at?: string;
34186
+ };
34187
+ Update: {
34188
+ created_at?: string;
34189
+ floriday_url_template?: string | null;
34190
+ is_active?: boolean;
34191
+ label?: string;
34192
+ local_url_template?: string | null;
34193
+ resource_type?: string;
34194
+ updated_at?: string;
34195
+ };
34196
+ Relationships: [];
34197
+ };
34198
+ floriday_log_retention: {
34199
+ Row: {
34200
+ created_at: string;
34201
+ direction: string | null;
34202
+ id: string;
34203
+ keep_failed_days: number | null;
34204
+ keep_ok_days: number | null;
34205
+ note: string | null;
34206
+ resource_type: string | null;
34207
+ updated_at: string;
34208
+ };
34209
+ Insert: {
34210
+ created_at?: string;
34211
+ direction?: string | null;
34212
+ id?: string;
34213
+ keep_failed_days?: number | null;
34214
+ keep_ok_days?: number | null;
34215
+ note?: string | null;
34216
+ resource_type?: string | null;
34217
+ updated_at?: string;
34218
+ };
34219
+ Update: {
34220
+ created_at?: string;
34221
+ direction?: string | null;
34222
+ id?: string;
34223
+ keep_failed_days?: number | null;
34224
+ keep_ok_days?: number | null;
34225
+ note?: string | null;
34226
+ resource_type?: string | null;
34227
+ updated_at?: string;
34228
+ };
34229
+ Relationships: [];
34230
+ };
32885
34231
  floriday_logistic_labels_cache: {
32886
34232
  Row: {
32887
34233
  byte_size: number | null;
@@ -36235,22 +37581,31 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36235
37581
  };
36236
37582
  logistics_floriday_push_refusals: {
36237
37583
  Row: {
37584
+ action: string | null;
36238
37585
  created_at: string;
36239
37586
  id: string;
36240
37587
  order_ref: string;
36241
37588
  reason: string;
37589
+ source_module: string | null;
37590
+ source_shell: string | null;
36242
37591
  };
36243
37592
  Insert: {
37593
+ action?: string | null;
36244
37594
  created_at?: string;
36245
37595
  id?: string;
36246
37596
  order_ref: string;
36247
37597
  reason: string;
37598
+ source_module?: string | null;
37599
+ source_shell?: string | null;
36248
37600
  };
36249
37601
  Update: {
37602
+ action?: string | null;
36250
37603
  created_at?: string;
36251
37604
  id?: string;
36252
37605
  order_ref?: string;
36253
37606
  reason?: string;
37607
+ source_module?: string | null;
37608
+ source_shell?: string | null;
36254
37609
  };
36255
37610
  Relationships: [];
36256
37611
  };
@@ -36329,6 +37684,42 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36329
37684
  };
36330
37685
  Relationships: [];
36331
37686
  };
37687
+ logistics_floriday_status_sends: {
37688
+ Row: {
37689
+ action: string;
37690
+ created_at: string;
37691
+ detail: string | null;
37692
+ http_status: number | null;
37693
+ id: string;
37694
+ ok: boolean;
37695
+ order_ref: string;
37696
+ source_module: string | null;
37697
+ source_shell: string | null;
37698
+ };
37699
+ Insert: {
37700
+ action: string;
37701
+ created_at?: string;
37702
+ detail?: string | null;
37703
+ http_status?: number | null;
37704
+ id?: string;
37705
+ ok?: boolean;
37706
+ order_ref: string;
37707
+ source_module?: string | null;
37708
+ source_shell?: string | null;
37709
+ };
37710
+ Update: {
37711
+ action?: string;
37712
+ created_at?: string;
37713
+ detail?: string | null;
37714
+ http_status?: number | null;
37715
+ id?: string;
37716
+ ok?: boolean;
37717
+ order_ref?: string;
37718
+ source_module?: string | null;
37719
+ source_shell?: string | null;
37720
+ };
37721
+ Relationships: [];
37722
+ };
36332
37723
  logistics_formulas: {
36333
37724
  Row: {
36334
37725
  created_at: string;
@@ -36401,6 +37792,108 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36401
37792
  };
36402
37793
  Relationships: [];
36403
37794
  };
37795
+ logistics_opening_exceptions: {
37796
+ Row: {
37797
+ closes: string | null;
37798
+ created_at: string;
37799
+ day: string;
37800
+ id: string;
37801
+ is_closed: boolean;
37802
+ note: string | null;
37803
+ opens: string | null;
37804
+ };
37805
+ Insert: {
37806
+ closes?: string | null;
37807
+ created_at?: string;
37808
+ day: string;
37809
+ id?: string;
37810
+ is_closed?: boolean;
37811
+ note?: string | null;
37812
+ opens?: string | null;
37813
+ };
37814
+ Update: {
37815
+ closes?: string | null;
37816
+ created_at?: string;
37817
+ day?: string;
37818
+ id?: string;
37819
+ is_closed?: boolean;
37820
+ note?: string | null;
37821
+ opens?: string | null;
37822
+ };
37823
+ Relationships: [];
37824
+ };
37825
+ logistics_opening_hours: {
37826
+ Row: {
37827
+ closes: string;
37828
+ created_at: string;
37829
+ id: string;
37830
+ is_active: boolean;
37831
+ note: string | null;
37832
+ opens: string;
37833
+ weekday: number;
37834
+ };
37835
+ Insert: {
37836
+ closes: string;
37837
+ created_at?: string;
37838
+ id?: string;
37839
+ is_active?: boolean;
37840
+ note?: string | null;
37841
+ opens: string;
37842
+ weekday: number;
37843
+ };
37844
+ Update: {
37845
+ closes?: string;
37846
+ created_at?: string;
37847
+ id?: string;
37848
+ is_active?: boolean;
37849
+ note?: string | null;
37850
+ opens?: string;
37851
+ weekday?: number;
37852
+ };
37853
+ Relationships: [];
37854
+ };
37855
+ logistics_pick_data_requests: {
37856
+ Row: {
37857
+ actions: import("../integrations/supabase/types").Json;
37858
+ created_at: string;
37859
+ event_id: string | null;
37860
+ finished_at: string | null;
37861
+ id: string;
37862
+ missing: import("../integrations/supabase/types").Json;
37863
+ order_ref: string;
37864
+ reason: string | null;
37865
+ result: import("../integrations/supabase/types").Json | null;
37866
+ status: string;
37867
+ unit_ref: string | null;
37868
+ };
37869
+ Insert: {
37870
+ actions?: import("../integrations/supabase/types").Json;
37871
+ created_at?: string;
37872
+ event_id?: string | null;
37873
+ finished_at?: string | null;
37874
+ id?: string;
37875
+ missing?: import("../integrations/supabase/types").Json;
37876
+ order_ref: string;
37877
+ reason?: string | null;
37878
+ result?: import("../integrations/supabase/types").Json | null;
37879
+ status?: string;
37880
+ unit_ref?: string | null;
37881
+ };
37882
+ Update: {
37883
+ actions?: import("../integrations/supabase/types").Json;
37884
+ created_at?: string;
37885
+ event_id?: string | null;
37886
+ finished_at?: string | null;
37887
+ id?: string;
37888
+ missing?: import("../integrations/supabase/types").Json;
37889
+ order_ref?: string;
37890
+ reason?: string | null;
37891
+ result?: import("../integrations/supabase/types").Json | null;
37892
+ status?: string;
37893
+ unit_ref?: string | null;
37894
+ };
37895
+ Relationships: [];
37896
+ };
36404
37897
  logistics_pickup_moments: {
36405
37898
  Row: {
36406
37899
  carrier_ref: string | null;
@@ -36860,6 +38353,69 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36860
38353
  };
36861
38354
  Relationships: [];
36862
38355
  };
38356
+ logistics_slip_shipping_note: {
38357
+ Row: {
38358
+ attempts: number;
38359
+ batch_key: string | null;
38360
+ cart_id: string | null;
38361
+ created_at: string;
38362
+ error: string | null;
38363
+ error_code: string | null;
38364
+ fulfillment_order_id: string | null;
38365
+ id: string;
38366
+ locked_until: string | null;
38367
+ next_attempt_at: string | null;
38368
+ order_id: string | null;
38369
+ order_number: string | null;
38370
+ print_job_id: string | null;
38371
+ printer_id: string | null;
38372
+ retry_class: string | null;
38373
+ slip_job_id: string;
38374
+ status: string;
38375
+ updated_at: string;
38376
+ };
38377
+ Insert: {
38378
+ attempts?: number;
38379
+ batch_key?: string | null;
38380
+ cart_id?: string | null;
38381
+ created_at?: string;
38382
+ error?: string | null;
38383
+ error_code?: string | null;
38384
+ fulfillment_order_id?: string | null;
38385
+ id?: string;
38386
+ locked_until?: string | null;
38387
+ next_attempt_at?: string | null;
38388
+ order_id?: string | null;
38389
+ order_number?: string | null;
38390
+ print_job_id?: string | null;
38391
+ printer_id?: string | null;
38392
+ retry_class?: string | null;
38393
+ slip_job_id: string;
38394
+ status?: string;
38395
+ updated_at?: string;
38396
+ };
38397
+ Update: {
38398
+ attempts?: number;
38399
+ batch_key?: string | null;
38400
+ cart_id?: string | null;
38401
+ created_at?: string;
38402
+ error?: string | null;
38403
+ error_code?: string | null;
38404
+ fulfillment_order_id?: string | null;
38405
+ id?: string;
38406
+ locked_until?: string | null;
38407
+ next_attempt_at?: string | null;
38408
+ order_id?: string | null;
38409
+ order_number?: string | null;
38410
+ print_job_id?: string | null;
38411
+ printer_id?: string | null;
38412
+ retry_class?: string | null;
38413
+ slip_job_id?: string;
38414
+ status?: string;
38415
+ updated_at?: string;
38416
+ };
38417
+ Relationships: [];
38418
+ };
36863
38419
  logistics_staff_planning: {
36864
38420
  Row: {
36865
38421
  created_at: string;
@@ -37193,6 +38749,129 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37193
38749
  };
37194
38750
  Relationships: [];
37195
38751
  };
38752
+ logistics_time_settings: {
38753
+ Row: {
38754
+ id: boolean;
38755
+ timezone: string;
38756
+ updated_at: string;
38757
+ };
38758
+ Insert: {
38759
+ id?: boolean;
38760
+ timezone: string;
38761
+ updated_at?: string;
38762
+ };
38763
+ Update: {
38764
+ id?: boolean;
38765
+ timezone?: string;
38766
+ updated_at?: string;
38767
+ };
38768
+ Relationships: [];
38769
+ };
38770
+ logistics_trace_events: {
38771
+ Row: {
38772
+ actor: string | null;
38773
+ attempts: number;
38774
+ cart_ref: string | null;
38775
+ created_at: string;
38776
+ db_action: string | null;
38777
+ db_new: import("../integrations/supabase/types").Json | null;
38778
+ db_old: import("../integrations/supabase/types").Json | null;
38779
+ db_record: string | null;
38780
+ db_table: string | null;
38781
+ decision: string | null;
38782
+ duration_ms: number | null;
38783
+ error: string | null;
38784
+ external_action: string | null;
38785
+ external_ref: string | null;
38786
+ external_response: import("../integrations/supabase/types").Json | null;
38787
+ external_status: string | null;
38788
+ external_system: string | null;
38789
+ id: string;
38790
+ input: import("../integrations/supabase/types").Json | null;
38791
+ next_attempt_at: string | null;
38792
+ order_ref: string | null;
38793
+ order_source: string | null;
38794
+ output: import("../integrations/supabase/types").Json | null;
38795
+ phase: string;
38796
+ reads: import("../integrations/supabase/types").Json | null;
38797
+ reason: string | null;
38798
+ rule: string | null;
38799
+ slip_ref: string | null;
38800
+ status: string;
38801
+ step: string;
38802
+ trace_id: string;
38803
+ values_used: import("../integrations/supabase/types").Json | null;
38804
+ };
38805
+ Insert: {
38806
+ actor?: string | null;
38807
+ attempts?: number;
38808
+ cart_ref?: string | null;
38809
+ created_at?: string;
38810
+ db_action?: string | null;
38811
+ db_new?: import("../integrations/supabase/types").Json | null;
38812
+ db_old?: import("../integrations/supabase/types").Json | null;
38813
+ db_record?: string | null;
38814
+ db_table?: string | null;
38815
+ decision?: string | null;
38816
+ duration_ms?: number | null;
38817
+ error?: string | null;
38818
+ external_action?: string | null;
38819
+ external_ref?: string | null;
38820
+ external_response?: import("../integrations/supabase/types").Json | null;
38821
+ external_status?: string | null;
38822
+ external_system?: string | null;
38823
+ id?: string;
38824
+ input?: import("../integrations/supabase/types").Json | null;
38825
+ next_attempt_at?: string | null;
38826
+ order_ref?: string | null;
38827
+ order_source?: string | null;
38828
+ output?: import("../integrations/supabase/types").Json | null;
38829
+ phase: string;
38830
+ reads?: import("../integrations/supabase/types").Json | null;
38831
+ reason?: string | null;
38832
+ rule?: string | null;
38833
+ slip_ref?: string | null;
38834
+ status: string;
38835
+ step: string;
38836
+ trace_id?: string;
38837
+ values_used?: import("../integrations/supabase/types").Json | null;
38838
+ };
38839
+ Update: {
38840
+ actor?: string | null;
38841
+ attempts?: number;
38842
+ cart_ref?: string | null;
38843
+ created_at?: string;
38844
+ db_action?: string | null;
38845
+ db_new?: import("../integrations/supabase/types").Json | null;
38846
+ db_old?: import("../integrations/supabase/types").Json | null;
38847
+ db_record?: string | null;
38848
+ db_table?: string | null;
38849
+ decision?: string | null;
38850
+ duration_ms?: number | null;
38851
+ error?: string | null;
38852
+ external_action?: string | null;
38853
+ external_ref?: string | null;
38854
+ external_response?: import("../integrations/supabase/types").Json | null;
38855
+ external_status?: string | null;
38856
+ external_system?: string | null;
38857
+ id?: string;
38858
+ input?: import("../integrations/supabase/types").Json | null;
38859
+ next_attempt_at?: string | null;
38860
+ order_ref?: string | null;
38861
+ order_source?: string | null;
38862
+ output?: import("../integrations/supabase/types").Json | null;
38863
+ phase?: string;
38864
+ reads?: import("../integrations/supabase/types").Json | null;
38865
+ reason?: string | null;
38866
+ rule?: string | null;
38867
+ slip_ref?: string | null;
38868
+ status?: string;
38869
+ step?: string;
38870
+ trace_id?: string;
38871
+ values_used?: import("../integrations/supabase/types").Json | null;
38872
+ };
38873
+ Relationships: [];
38874
+ };
37196
38875
  logistics_variables: {
37197
38876
  Row: {
37198
38877
  created_at: string;
@@ -39583,6 +41262,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39583
41262
  customer_name: string;
39584
41263
  deleted_at: string | null;
39585
41264
  delivery_date: string | null;
41265
+ floriday_order_group_key: string | null;
39586
41266
  floriday_sales_order_id: string | null;
39587
41267
  id: string;
39588
41268
  invoice_due_at: string | null;
@@ -39610,6 +41290,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39610
41290
  customer_name?: string;
39611
41291
  deleted_at?: string | null;
39612
41292
  delivery_date?: string | null;
41293
+ floriday_order_group_key?: string | null;
39613
41294
  floriday_sales_order_id?: string | null;
39614
41295
  id?: string;
39615
41296
  invoice_due_at?: string | null;
@@ -39637,6 +41318,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39637
41318
  customer_name?: string;
39638
41319
  deleted_at?: string | null;
39639
41320
  delivery_date?: string | null;
41321
+ floriday_order_group_key?: string | null;
39640
41322
  floriday_sales_order_id?: string | null;
39641
41323
  id?: string;
39642
41324
  invoice_due_at?: string | null;
@@ -45500,6 +47182,36 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
45500
47182
  referencedColumns: ["id"];
45501
47183
  }];
45502
47184
  };
47185
+ voorraad_buffer_state: {
47186
+ Row: {
47187
+ buffer_id: string;
47188
+ buffer_key: string | null;
47189
+ closed_at: string | null;
47190
+ created_at: string;
47191
+ detached_orders: import("../integrations/supabase/types").Json;
47192
+ reason: string | null;
47193
+ updated_at: string;
47194
+ };
47195
+ Insert: {
47196
+ buffer_id: string;
47197
+ buffer_key?: string | null;
47198
+ closed_at?: string | null;
47199
+ created_at?: string;
47200
+ detached_orders?: import("../integrations/supabase/types").Json;
47201
+ reason?: string | null;
47202
+ updated_at?: string;
47203
+ };
47204
+ Update: {
47205
+ buffer_id?: string;
47206
+ buffer_key?: string | null;
47207
+ closed_at?: string | null;
47208
+ created_at?: string;
47209
+ detached_orders?: import("../integrations/supabase/types").Json;
47210
+ reason?: string | null;
47211
+ updated_at?: string;
47212
+ };
47213
+ Relationships: [];
47214
+ };
45503
47215
  voorraad_custom_fields: {
45504
47216
  Row: {
45505
47217
  created_at: string;
@@ -45542,6 +47254,36 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
45542
47254
  };
45543
47255
  Relationships: [];
45544
47256
  };
47257
+ voorraad_logistics_event_log: {
47258
+ Row: {
47259
+ created_at: string;
47260
+ event_id: string;
47261
+ event_type: string;
47262
+ order_ref: string | null;
47263
+ processed_at: string;
47264
+ result: import("../integrations/supabase/types").Json;
47265
+ updated_at: string;
47266
+ };
47267
+ Insert: {
47268
+ created_at?: string;
47269
+ event_id: string;
47270
+ event_type: string;
47271
+ order_ref?: string | null;
47272
+ processed_at?: string;
47273
+ result?: import("../integrations/supabase/types").Json;
47274
+ updated_at?: string;
47275
+ };
47276
+ Update: {
47277
+ created_at?: string;
47278
+ event_id?: string;
47279
+ event_type?: string;
47280
+ order_ref?: string | null;
47281
+ processed_at?: string;
47282
+ result?: import("../integrations/supabase/types").Json;
47283
+ updated_at?: string;
47284
+ };
47285
+ Relationships: [];
47286
+ };
45545
47287
  voorraad_media_upload_failures: {
45546
47288
  Row: {
45547
47289
  action: string;
@@ -47702,6 +49444,15 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
47702
49444
  Args: never;
47703
49445
  Returns: boolean;
47704
49446
  };
49447
+ cancel_open_print_jobs: {
49448
+ Args: {
49449
+ _cutoff: string;
49450
+ };
49451
+ Returns: {
49452
+ extern_job_id: string;
49453
+ id: string;
49454
+ }[];
49455
+ };
47705
49456
  check_offer_product_available_stock: {
47706
49457
  Args: {
47707
49458
  p_campaign_product_id: string;
@@ -49240,6 +50991,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49240
50991
  };
49241
50992
  Returns: string;
49242
50993
  };
50994
+ logistics_cart_checkin_at: {
50995
+ Args: {
50996
+ p_cart_id: string;
50997
+ };
50998
+ Returns: string;
50999
+ };
49243
51000
  logistics_cart_handled: {
49244
51001
  Args: {
49245
51002
  p_cart_index: number;
@@ -49273,10 +51030,22 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49273
51030
  task_status: string;
49274
51031
  }[];
49275
51032
  };
51033
+ logistics_cart_is_full: {
51034
+ Args: {
51035
+ p_cart_id: string;
51036
+ };
51037
+ Returns: boolean;
51038
+ };
49276
51039
  logistics_cart_layout_method: {
49277
51040
  Args: never;
49278
51041
  Returns: import("../integrations/supabase/types").Json;
49279
51042
  };
51043
+ logistics_cart_order_refs: {
51044
+ Args: {
51045
+ p_cart_id: string;
51046
+ };
51047
+ Returns: string[];
51048
+ };
49280
51049
  logistics_cart_plan_overview: {
49281
51050
  Args: {
49282
51051
  p_days?: number;
@@ -49296,6 +51065,24 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49296
51065
  };
49297
51066
  Returns: import("../integrations/supabase/types").Json;
49298
51067
  };
51068
+ logistics_cart_plan_status_core: {
51069
+ Args: {
51070
+ p_ref: string;
51071
+ };
51072
+ Returns: import("../integrations/supabase/types").Json;
51073
+ };
51074
+ logistics_cart_release_reason: {
51075
+ Args: {
51076
+ p_cart_id: string;
51077
+ };
51078
+ Returns: string;
51079
+ };
51080
+ logistics_cart_released: {
51081
+ Args: {
51082
+ p_cart_id: string;
51083
+ };
51084
+ Returns: boolean;
51085
+ };
49299
51086
  logistics_cart_seq: {
49300
51087
  Args: {
49301
51088
  p_order_uuid?: string;
@@ -49346,6 +51133,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49346
51133
  unit_ref: string;
49347
51134
  }[];
49348
51135
  };
51136
+ logistics_carts_per_print: {
51137
+ Args: never;
51138
+ Returns: number;
51139
+ };
49349
51140
  logistics_check_order_allowed: {
49350
51141
  Args: {
49351
51142
  p_lines: import("../integrations/supabase/types").Json;
@@ -49449,6 +51240,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49449
51240
  isSetofReturn: false;
49450
51241
  };
49451
51242
  };
51243
+ logistics_cleanup_orphan_print_jobs: {
51244
+ Args: never;
51245
+ Returns: import("../integrations/supabase/types").Json;
51246
+ };
49452
51247
  logistics_complete_task: {
49453
51248
  Args: {
49454
51249
  p_result?: import("../integrations/supabase/types").Json;
@@ -49511,6 +51306,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49511
51306
  station_carts: number;
49512
51307
  }[];
49513
51308
  };
51309
+ logistics_control_complete_cart: {
51310
+ Args: {
51311
+ p_cart_id: string;
51312
+ };
51313
+ Returns: number;
51314
+ };
49514
51315
  logistics_control_scan_approve: {
49515
51316
  Args: {
49516
51317
  p_allow_reprint?: boolean;
@@ -49590,6 +51391,15 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49590
51391
  Args: never;
49591
51392
  Returns: import("../integrations/supabase/types").Json;
49592
51393
  };
51394
+ logistics_day_windows: {
51395
+ Args: {
51396
+ p_day: string;
51397
+ };
51398
+ Returns: {
51399
+ win_end: string;
51400
+ win_start: string;
51401
+ }[];
51402
+ };
49593
51403
  logistics_delay_customer_email: {
49594
51404
  Args: {
49595
51405
  p_customer: string;
@@ -49657,6 +51467,17 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49657
51467
  };
49658
51468
  Returns: import("../integrations/supabase/types").Json;
49659
51469
  };
51470
+ logistics_enqueue_shipping_note_with_slip: {
51471
+ Args: {
51472
+ _cart_id: string;
51473
+ _is_herprint: boolean;
51474
+ _printer_id: string;
51475
+ _queue_item_id: string;
51476
+ _session_id: string;
51477
+ _slip_job_id: string;
51478
+ };
51479
+ Returns: string;
51480
+ };
49660
51481
  logistics_enqueue_sticker_with_slip: {
49661
51482
  Args: {
49662
51483
  _cart_id: string;
@@ -49674,6 +51495,20 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49674
51495
  };
49675
51496
  Returns: string;
49676
51497
  };
51498
+ logistics_ensure_pick_data: {
51499
+ Args: {
51500
+ p_event_id?: string;
51501
+ p_missing?: import("../integrations/supabase/types").Json;
51502
+ p_ref: string;
51503
+ };
51504
+ Returns: import("../integrations/supabase/types").Json;
51505
+ };
51506
+ logistics_ensure_shipping_notes: {
51507
+ Args: {
51508
+ p_limit?: number;
51509
+ };
51510
+ Returns: import("../integrations/supabase/types").Json;
51511
+ };
49677
51512
  logistics_fail_task: {
49678
51513
  Args: {
49679
51514
  p_error: string;
@@ -49719,6 +51554,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49719
51554
  isSetofReturn: false;
49720
51555
  };
49721
51556
  };
51557
+ logistics_fix_wrong_shipping_notes: {
51558
+ Args: never;
51559
+ Returns: import("../integrations/supabase/types").Json;
51560
+ };
49722
51561
  logistics_floriday_cart_plan: {
49723
51562
  Args: {
49724
51563
  p_order_id: string;
@@ -49746,6 +51585,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49746
51585
  revision: number;
49747
51586
  }[];
49748
51587
  };
51588
+ logistics_floriday_delivery_note_create_enabled: {
51589
+ Args: never;
51590
+ Returns: boolean;
51591
+ };
49749
51592
  logistics_floriday_finish_push: {
49750
51593
  Args: {
49751
51594
  _error?: string;
@@ -49795,6 +51638,32 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49795
51638
  };
49796
51639
  Returns: string;
49797
51640
  };
51641
+ logistics_floriday_gate_status: {
51642
+ Args: never;
51643
+ Returns: import("../integrations/supabase/types").Json;
51644
+ };
51645
+ logistics_floriday_log_refusal: {
51646
+ Args: {
51647
+ _action?: string;
51648
+ _module?: string;
51649
+ _order_ref: string;
51650
+ _reason: string;
51651
+ _shell?: string;
51652
+ };
51653
+ Returns: undefined;
51654
+ };
51655
+ logistics_floriday_log_send: {
51656
+ Args: {
51657
+ _action: string;
51658
+ _detail?: string;
51659
+ _http_status?: number;
51660
+ _module?: string;
51661
+ _ok: boolean;
51662
+ _order_ref: string;
51663
+ _shell?: string;
51664
+ };
51665
+ Returns: undefined;
51666
+ };
49798
51667
  logistics_floriday_order_approved: {
49799
51668
  Args: {
49800
51669
  _order_ref: string;
@@ -49819,6 +51688,16 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49819
51688
  Args: never;
49820
51689
  Returns: boolean;
49821
51690
  };
51691
+ logistics_floriday_stock_updates_enabled: {
51692
+ Args: never;
51693
+ Returns: boolean;
51694
+ };
51695
+ logistics_floriday_write_allowed: {
51696
+ Args: {
51697
+ _action: string;
51698
+ };
51699
+ Returns: boolean;
51700
+ };
49822
51701
  logistics_fulfill_barcode_requests: {
49823
51702
  Args: {
49824
51703
  p_limit?: number;
@@ -49861,6 +51740,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49861
51740
  };
49862
51741
  Returns: number;
49863
51742
  };
51743
+ logistics_merge_partial_carts: {
51744
+ Args: {
51745
+ p_limit?: number;
51746
+ };
51747
+ Returns: import("../integrations/supabase/types").Json;
51748
+ };
49864
51749
  logistics_next_workday_date: {
49865
51750
  Args: {
49866
51751
  p_date: string;
@@ -49887,6 +51772,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49887
51772
  };
49888
51773
  Returns: string;
49889
51774
  };
51775
+ logistics_opening_timezone: {
51776
+ Args: never;
51777
+ Returns: string;
51778
+ };
49890
51779
  logistics_order_cart_count: {
49891
51780
  Args: {
49892
51781
  p_order_ref: string;
@@ -49943,6 +51832,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49943
51832
  };
49944
51833
  Returns: string;
49945
51834
  };
51835
+ logistics_payload_is_floriday: {
51836
+ Args: {
51837
+ _payload: import("../integrations/supabase/types").Json;
51838
+ };
51839
+ Returns: boolean;
51840
+ };
49946
51841
  logistics_pick_agenda: {
49947
51842
  Args: {
49948
51843
  p_from?: string;
@@ -49971,6 +51866,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49971
51866
  Args: never;
49972
51867
  Returns: import("../integrations/supabase/types").Json;
49973
51868
  };
51869
+ logistics_pick_partial_mode: {
51870
+ Args: never;
51871
+ Returns: string;
51872
+ };
49974
51873
  logistics_pick_start_estimate: {
49975
51874
  Args: {
49976
51875
  p_order: import("../integrations/supabase/types").Json;
@@ -50061,6 +51960,20 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50061
51960
  Args: never;
50062
51961
  Returns: undefined;
50063
51962
  };
51963
+ logistics_plan_progress: {
51964
+ Args: {
51965
+ p_refs: string[];
51966
+ };
51967
+ Returns: {
51968
+ cart_plan_ready: boolean;
51969
+ cart_plan_reason: string;
51970
+ cart_plan_released: boolean;
51971
+ plan_progress: number;
51972
+ plan_state: string;
51973
+ plan_state_since: string;
51974
+ unit_ref: string;
51975
+ }[];
51976
+ };
50064
51977
  logistics_plan_prune: {
50065
51978
  Args: never;
50066
51979
  Returns: number;
@@ -50082,6 +51995,18 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50082
51995
  };
50083
51996
  Returns: number;
50084
51997
  };
51998
+ logistics_plan_state_for: {
51999
+ Args: {
52000
+ p_ref: string;
52001
+ };
52002
+ Returns: import("../integrations/supabase/types").Json;
52003
+ };
52004
+ logistics_prepare_pick_documents: {
52005
+ Args: {
52006
+ p_limit?: number;
52007
+ };
52008
+ Returns: import("../integrations/supabase/types").Json;
52009
+ };
50085
52010
  logistics_prune_buffer_member_queue: {
50086
52011
  Args: never;
50087
52012
  Returns: number;
@@ -50122,18 +52047,36 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50122
52047
  Args: never;
50123
52048
  Returns: import("../integrations/supabase/types").Json;
50124
52049
  };
52050
+ logistics_refresh_pick_queue_status: {
52051
+ Args: {
52052
+ p_ref: string;
52053
+ };
52054
+ Returns: number;
52055
+ };
50125
52056
  logistics_refresh_pickup_moments: {
50126
52057
  Args: {
50127
52058
  p_weeks?: number;
50128
52059
  };
50129
52060
  Returns: import("../integrations/supabase/types").Json;
50130
52061
  };
52062
+ logistics_refresh_plan_state: {
52063
+ Args: {
52064
+ p_limit?: number;
52065
+ };
52066
+ Returns: import("../integrations/supabase/types").Json;
52067
+ };
50131
52068
  logistics_replan_all: {
50132
52069
  Args: {
50133
52070
  p_reason?: string;
50134
52071
  };
50135
52072
  Returns: import("../integrations/supabase/types").Json;
50136
52073
  };
52074
+ logistics_replan_all_force: {
52075
+ Args: {
52076
+ p_reason?: string;
52077
+ };
52078
+ Returns: import("../integrations/supabase/types").Json;
52079
+ };
50137
52080
  logistics_report_delay: {
50138
52081
  Args: {
50139
52082
  p_expected_date?: string;
@@ -50278,6 +52221,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50278
52221
  };
50279
52222
  Returns: string;
50280
52223
  };
52224
+ logistics_shipping_note_follows_slip: {
52225
+ Args: never;
52226
+ Returns: boolean;
52227
+ };
50281
52228
  logistics_shipping_note_from_barcode: {
50282
52229
  Args: {
50283
52230
  p_allow_reprint?: boolean;
@@ -50286,10 +52233,86 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50286
52233
  };
50287
52234
  Returns: import("../integrations/supabase/types").Json;
50288
52235
  };
52236
+ logistics_shipping_note_job_for_slip: {
52237
+ Args: {
52238
+ _slip_job_id: string;
52239
+ };
52240
+ Returns: string;
52241
+ };
52242
+ logistics_shipping_notes_wake_all: {
52243
+ Args: never;
52244
+ Returns: import("../integrations/supabase/types").Json;
52245
+ };
52246
+ logistics_slip_is_floriday: {
52247
+ Args: {
52248
+ _slip_job_id: string;
52249
+ };
52250
+ Returns: boolean;
52251
+ };
52252
+ logistics_slip_note_claim: {
52253
+ Args: {
52254
+ _lease_seconds?: number;
52255
+ _limit?: number;
52256
+ };
52257
+ Returns: {
52258
+ attempts: number;
52259
+ batch_key: string | null;
52260
+ cart_id: string | null;
52261
+ created_at: string;
52262
+ error: string | null;
52263
+ error_code: string | null;
52264
+ fulfillment_order_id: string | null;
52265
+ id: string;
52266
+ locked_until: string | null;
52267
+ next_attempt_at: string | null;
52268
+ order_id: string | null;
52269
+ order_number: string | null;
52270
+ print_job_id: string | null;
52271
+ printer_id: string | null;
52272
+ retry_class: string | null;
52273
+ slip_job_id: string;
52274
+ status: string;
52275
+ updated_at: string;
52276
+ }[];
52277
+ SetofOptions: {
52278
+ from: "*";
52279
+ to: "logistics_slip_shipping_note";
52280
+ isOneToOne: false;
52281
+ isSetofReturn: true;
52282
+ };
52283
+ };
52284
+ logistics_slip_note_finish: {
52285
+ Args: {
52286
+ _error?: string;
52287
+ _error_code?: string;
52288
+ _fulfillment_order_id?: string;
52289
+ _id: string;
52290
+ _ok: boolean;
52291
+ _print_job_id?: string;
52292
+ _status?: string;
52293
+ };
52294
+ Returns: undefined;
52295
+ };
52296
+ logistics_slip_note_keep_waiting: {
52297
+ Args: {
52298
+ _class?: string;
52299
+ _id: string;
52300
+ _reason: string;
52301
+ };
52302
+ Returns: undefined;
52303
+ };
50289
52304
  logistics_sticker_follows_slip: {
50290
52305
  Args: never;
50291
52306
  Returns: boolean;
50292
52307
  };
52308
+ logistics_subtract_working_minutes: {
52309
+ Args: {
52310
+ p_deadline: string;
52311
+ p_max_workdays?: number;
52312
+ p_minutes: number;
52313
+ };
52314
+ Returns: import("../integrations/supabase/types").Json;
52315
+ };
50293
52316
  logistics_supersede_stale_tasks: {
50294
52317
  Args: {
50295
52318
  p_keep: string[];
@@ -50326,6 +52349,46 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50326
52349
  Args: never;
50327
52350
  Returns: string;
50328
52351
  };
52352
+ logistics_timezone_options: {
52353
+ Args: never;
52354
+ Returns: {
52355
+ name: string;
52356
+ }[];
52357
+ };
52358
+ logistics_trace: {
52359
+ Args: {
52360
+ p: import("../integrations/supabase/types").Json;
52361
+ };
52362
+ Returns: string;
52363
+ };
52364
+ logistics_trace_batch: {
52365
+ Args: {
52366
+ p: import("../integrations/supabase/types").Json;
52367
+ };
52368
+ Returns: number;
52369
+ };
52370
+ logistics_trace_orders: {
52371
+ Args: {
52372
+ p_limit?: number;
52373
+ p_search?: string;
52374
+ p_since?: string;
52375
+ p_status?: string;
52376
+ };
52377
+ Returns: import("../integrations/supabase/types").Json;
52378
+ };
52379
+ logistics_trace_redact: {
52380
+ Args: {
52381
+ p: import("../integrations/supabase/types").Json;
52382
+ };
52383
+ Returns: import("../integrations/supabase/types").Json;
52384
+ };
52385
+ logistics_trace_timeline: {
52386
+ Args: {
52387
+ p_limit?: number;
52388
+ p_order_ref: string;
52389
+ };
52390
+ Returns: import("../integrations/supabase/types").Json;
52391
+ };
50329
52392
  logistics_upsert_task: {
50330
52393
  Args: {
50331
52394
  p_buffer_ref: string;
@@ -50345,6 +52408,16 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
50345
52408
  };
50346
52409
  Returns: string;
50347
52410
  };
52411
+ logistics_valid_timezone: {
52412
+ Args: {
52413
+ _tz: string;
52414
+ };
52415
+ Returns: boolean;
52416
+ };
52417
+ logistics_working_hours_status: {
52418
+ Args: never;
52419
+ Returns: import("../integrations/supabase/types").Json;
52420
+ };
50348
52421
  logistics_write_buffer_layer_positions: {
50349
52422
  Args: {
50350
52423
  p_buffer_id: string;
@@ -51357,6 +53430,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
51357
53430
  };
51358
53431
  Returns: undefined;
51359
53432
  };
53433
+ prune_floriday_api_log: {
53434
+ Args: never;
53435
+ Returns: number;
53436
+ };
51360
53437
  quote_create_from_source: {
51361
53438
  Args: {
51362
53439
  _payload?: import("../integrations/supabase/types").Json;
@@ -51790,6 +53867,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
51790
53867
  };
51791
53868
  Returns: number;
51792
53869
  };
53870
+ schedule_floriday_catalog_prices_sync: {
53871
+ Args: {
53872
+ p_apikey: string;
53873
+ p_url: string;
53874
+ };
53875
+ Returns: number;
53876
+ };
51793
53877
  schedule_floriday_clock_presales_sync: {
51794
53878
  Args: {
51795
53879
  p_apikey: string;
@@ -52090,6 +54174,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
52090
54174
  };
52091
54175
  Returns: undefined;
52092
54176
  };
54177
+ sync_floriday_prices_into_price_groups: {
54178
+ Args: never;
54179
+ Returns: number;
54180
+ };
52093
54181
  sync_layer_stock: {
52094
54182
  Args: {
52095
54183
  p_product_id: string;
@@ -52222,6 +54310,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
52222
54310
  Args: never;
52223
54311
  Returns: string;
52224
54312
  };
54313
+ voorraad_cleanup_old_rows: {
54314
+ Args: never;
54315
+ Returns: import("../integrations/supabase/types").Json;
54316
+ };
52225
54317
  wake_print_queue: {
52226
54318
  Args: {
52227
54319
  _min_interval_ms?: number;