@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
@@ -2239,6 +2239,45 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
2239
2239
  };
2240
2240
  Relationships: [];
2241
2241
  };
2242
+ customer_product_stickers: {
2243
+ Row: {
2244
+ created_at: string;
2245
+ customer_key: string;
2246
+ file_name: string;
2247
+ file_path: string;
2248
+ file_size: number | null;
2249
+ id: string;
2250
+ mime_type: string | null;
2251
+ trade_item_key: string;
2252
+ updated_at: string;
2253
+ uploaded_by: string | null;
2254
+ };
2255
+ Insert: {
2256
+ created_at?: string;
2257
+ customer_key: string;
2258
+ file_name: string;
2259
+ file_path: string;
2260
+ file_size?: number | null;
2261
+ id?: string;
2262
+ mime_type?: string | null;
2263
+ trade_item_key: string;
2264
+ updated_at?: string;
2265
+ uploaded_by?: string | null;
2266
+ };
2267
+ Update: {
2268
+ created_at?: string;
2269
+ customer_key?: string;
2270
+ file_name?: string;
2271
+ file_path?: string;
2272
+ file_size?: number | null;
2273
+ id?: string;
2274
+ mime_type?: string | null;
2275
+ trade_item_key?: string;
2276
+ updated_at?: string;
2277
+ uploaded_by?: string | null;
2278
+ };
2279
+ Relationships: [];
2280
+ };
2242
2281
  customer_selected_assortment: {
2243
2282
  Row: {
2244
2283
  article_number: string | null;
@@ -2287,6 +2326,30 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
2287
2326
  referencedColumns: ["id"];
2288
2327
  }];
2289
2328
  };
2329
+ customer_sticker_settings: {
2330
+ Row: {
2331
+ created_at: string;
2332
+ customer_key: string;
2333
+ height_mm: number;
2334
+ updated_at: string;
2335
+ width_mm: number;
2336
+ };
2337
+ Insert: {
2338
+ created_at?: string;
2339
+ customer_key: string;
2340
+ height_mm?: number;
2341
+ updated_at?: string;
2342
+ width_mm?: number;
2343
+ };
2344
+ Update: {
2345
+ created_at?: string;
2346
+ customer_key?: string;
2347
+ height_mm?: number;
2348
+ updated_at?: string;
2349
+ width_mm?: number;
2350
+ };
2351
+ Relationships: [];
2352
+ };
2290
2353
  customer_trade_settings: {
2291
2354
  Row: {
2292
2355
  category: string;
@@ -5617,6 +5680,102 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
5617
5680
  referencedColumns: ["id"];
5618
5681
  }];
5619
5682
  };
5683
+ floriday_api_log: {
5684
+ Row: {
5685
+ action: string | null;
5686
+ caller: string | null;
5687
+ connection_id: string | null;
5688
+ created_at: string;
5689
+ cursor_from: number | null;
5690
+ direction: string;
5691
+ duration_ms: number | null;
5692
+ environment: string | null;
5693
+ error: string | null;
5694
+ floriday_id: string | null;
5695
+ floriday_reference: string | null;
5696
+ http_status: number;
5697
+ id: string;
5698
+ item_count: number | null;
5699
+ kind: string | null;
5700
+ local_id: string | null;
5701
+ local_reference: string | null;
5702
+ method: string;
5703
+ module: string | null;
5704
+ ok: boolean;
5705
+ path: string;
5706
+ request: import("../integrations/supabase/types").Json | null;
5707
+ resource_type: string | null;
5708
+ response: import("../integrations/supabase/types").Json | null;
5709
+ write_log_id: string | null;
5710
+ };
5711
+ Insert: {
5712
+ action?: string | null;
5713
+ caller?: string | null;
5714
+ connection_id?: string | null;
5715
+ created_at?: string;
5716
+ cursor_from?: number | null;
5717
+ direction: string;
5718
+ duration_ms?: number | null;
5719
+ environment?: string | null;
5720
+ error?: string | null;
5721
+ floriday_id?: string | null;
5722
+ floriday_reference?: string | null;
5723
+ http_status?: number;
5724
+ id?: string;
5725
+ item_count?: number | null;
5726
+ kind?: string | null;
5727
+ local_id?: string | null;
5728
+ local_reference?: string | null;
5729
+ method: string;
5730
+ module?: string | null;
5731
+ ok?: boolean;
5732
+ path: string;
5733
+ request?: import("../integrations/supabase/types").Json | null;
5734
+ resource_type?: string | null;
5735
+ response?: import("../integrations/supabase/types").Json | null;
5736
+ write_log_id?: string | null;
5737
+ };
5738
+ Update: {
5739
+ action?: string | null;
5740
+ caller?: string | null;
5741
+ connection_id?: string | null;
5742
+ created_at?: string;
5743
+ cursor_from?: number | null;
5744
+ direction?: string;
5745
+ duration_ms?: number | null;
5746
+ environment?: string | null;
5747
+ error?: string | null;
5748
+ floriday_id?: string | null;
5749
+ floriday_reference?: string | null;
5750
+ http_status?: number;
5751
+ id?: string;
5752
+ item_count?: number | null;
5753
+ kind?: string | null;
5754
+ local_id?: string | null;
5755
+ local_reference?: string | null;
5756
+ method?: string;
5757
+ module?: string | null;
5758
+ ok?: boolean;
5759
+ path?: string;
5760
+ request?: import("../integrations/supabase/types").Json | null;
5761
+ resource_type?: string | null;
5762
+ response?: import("../integrations/supabase/types").Json | null;
5763
+ write_log_id?: string | null;
5764
+ };
5765
+ Relationships: [{
5766
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5767
+ columns: ["connection_id"];
5768
+ isOneToOne: false;
5769
+ referencedRelation: "floriday_connections";
5770
+ referencedColumns: ["id"];
5771
+ }, {
5772
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5773
+ columns: ["write_log_id"];
5774
+ isOneToOne: false;
5775
+ referencedRelation: "floriday_write_log";
5776
+ referencedColumns: ["id"];
5777
+ }];
5778
+ };
5620
5779
  floriday_auction_letters_cache: {
5621
5780
  Row: {
5622
5781
  auction_letter_code: string;
@@ -5824,6 +5983,84 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
5824
5983
  referencedColumns: ["id"];
5825
5984
  }];
5826
5985
  };
5986
+ floriday_catalog_prices_cache: {
5987
+ Row: {
5988
+ connection_id: string;
5989
+ created_at: string;
5990
+ currency: string;
5991
+ id: string;
5992
+ is_deleted: boolean;
5993
+ price: number | null;
5994
+ price_group_id: string | null;
5995
+ price_group_name: string | null;
5996
+ price_type: string;
5997
+ raw: import("../integrations/supabase/types").Json | null;
5998
+ sales_unit: string | null;
5999
+ sequence_number: number;
6000
+ supplier_article_code: string | null;
6001
+ supply_line_id: string;
6002
+ synced_at: string;
6003
+ trade_item_id: string | null;
6004
+ updated_at: string;
6005
+ valid_from: string | null;
6006
+ valid_to: string | null;
6007
+ week: number | null;
6008
+ year: number | null;
6009
+ };
6010
+ Insert: {
6011
+ connection_id: string;
6012
+ created_at?: string;
6013
+ currency?: string;
6014
+ id?: string;
6015
+ is_deleted?: boolean;
6016
+ price?: number | null;
6017
+ price_group_id?: string | null;
6018
+ price_group_name?: string | null;
6019
+ price_type?: string;
6020
+ raw?: import("../integrations/supabase/types").Json | null;
6021
+ sales_unit?: string | null;
6022
+ sequence_number?: number;
6023
+ supplier_article_code?: string | null;
6024
+ supply_line_id: string;
6025
+ synced_at?: string;
6026
+ trade_item_id?: string | null;
6027
+ updated_at?: string;
6028
+ valid_from?: string | null;
6029
+ valid_to?: string | null;
6030
+ week?: number | null;
6031
+ year?: number | null;
6032
+ };
6033
+ Update: {
6034
+ connection_id?: string;
6035
+ created_at?: string;
6036
+ currency?: string;
6037
+ id?: string;
6038
+ is_deleted?: boolean;
6039
+ price?: number | null;
6040
+ price_group_id?: string | null;
6041
+ price_group_name?: string | null;
6042
+ price_type?: string;
6043
+ raw?: import("../integrations/supabase/types").Json | null;
6044
+ sales_unit?: string | null;
6045
+ sequence_number?: number;
6046
+ supplier_article_code?: string | null;
6047
+ supply_line_id?: string;
6048
+ synced_at?: string;
6049
+ trade_item_id?: string | null;
6050
+ updated_at?: string;
6051
+ valid_from?: string | null;
6052
+ valid_to?: string | null;
6053
+ week?: number | null;
6054
+ year?: number | null;
6055
+ };
6056
+ Relationships: [{
6057
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6058
+ columns: ["connection_id"];
6059
+ isOneToOne: false;
6060
+ referencedRelation: "floriday_connections";
6061
+ referencedColumns: ["id"];
6062
+ }];
6063
+ };
5827
6064
  floriday_clock_presales_cache: {
5828
6065
  Row: {
5829
6066
  buyer_organization_id: string | null;
@@ -6739,6 +6976,69 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
6739
6976
  referencedColumns: ["id"];
6740
6977
  }];
6741
6978
  };
6979
+ floriday_link_templates: {
6980
+ Row: {
6981
+ created_at: string;
6982
+ floriday_url_template: string | null;
6983
+ is_active: boolean;
6984
+ label: string;
6985
+ local_url_template: string | null;
6986
+ resource_type: string;
6987
+ updated_at: string;
6988
+ };
6989
+ Insert: {
6990
+ created_at?: string;
6991
+ floriday_url_template?: string | null;
6992
+ is_active?: boolean;
6993
+ label: string;
6994
+ local_url_template?: string | null;
6995
+ resource_type: string;
6996
+ updated_at?: string;
6997
+ };
6998
+ Update: {
6999
+ created_at?: string;
7000
+ floriday_url_template?: string | null;
7001
+ is_active?: boolean;
7002
+ label?: string;
7003
+ local_url_template?: string | null;
7004
+ resource_type?: string;
7005
+ updated_at?: string;
7006
+ };
7007
+ Relationships: [];
7008
+ };
7009
+ floriday_log_retention: {
7010
+ Row: {
7011
+ created_at: string;
7012
+ direction: string | null;
7013
+ id: string;
7014
+ keep_failed_days: number | null;
7015
+ keep_ok_days: number | null;
7016
+ note: string | null;
7017
+ resource_type: string | null;
7018
+ updated_at: string;
7019
+ };
7020
+ Insert: {
7021
+ created_at?: string;
7022
+ direction?: string | null;
7023
+ id?: string;
7024
+ keep_failed_days?: number | null;
7025
+ keep_ok_days?: number | null;
7026
+ note?: string | null;
7027
+ resource_type?: string | null;
7028
+ updated_at?: string;
7029
+ };
7030
+ Update: {
7031
+ created_at?: string;
7032
+ direction?: string | null;
7033
+ id?: string;
7034
+ keep_failed_days?: number | null;
7035
+ keep_ok_days?: number | null;
7036
+ note?: string | null;
7037
+ resource_type?: string | null;
7038
+ updated_at?: string;
7039
+ };
7040
+ Relationships: [];
7041
+ };
6742
7042
  floriday_logistic_labels_cache: {
6743
7043
  Row: {
6744
7044
  byte_size: number | null;
@@ -10092,22 +10392,31 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
10092
10392
  };
10093
10393
  logistics_floriday_push_refusals: {
10094
10394
  Row: {
10395
+ action: string | null;
10095
10396
  created_at: string;
10096
10397
  id: string;
10097
10398
  order_ref: string;
10098
10399
  reason: string;
10400
+ source_module: string | null;
10401
+ source_shell: string | null;
10099
10402
  };
10100
10403
  Insert: {
10404
+ action?: string | null;
10101
10405
  created_at?: string;
10102
10406
  id?: string;
10103
10407
  order_ref: string;
10104
10408
  reason: string;
10409
+ source_module?: string | null;
10410
+ source_shell?: string | null;
10105
10411
  };
10106
10412
  Update: {
10413
+ action?: string | null;
10107
10414
  created_at?: string;
10108
10415
  id?: string;
10109
10416
  order_ref?: string;
10110
10417
  reason?: string;
10418
+ source_module?: string | null;
10419
+ source_shell?: string | null;
10111
10420
  };
10112
10421
  Relationships: [];
10113
10422
  };
@@ -10186,6 +10495,42 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
10186
10495
  };
10187
10496
  Relationships: [];
10188
10497
  };
10498
+ logistics_floriday_status_sends: {
10499
+ Row: {
10500
+ action: string;
10501
+ created_at: string;
10502
+ detail: string | null;
10503
+ http_status: number | null;
10504
+ id: string;
10505
+ ok: boolean;
10506
+ order_ref: string;
10507
+ source_module: string | null;
10508
+ source_shell: string | null;
10509
+ };
10510
+ Insert: {
10511
+ action: string;
10512
+ created_at?: string;
10513
+ detail?: string | null;
10514
+ http_status?: number | null;
10515
+ id?: string;
10516
+ ok?: boolean;
10517
+ order_ref: string;
10518
+ source_module?: string | null;
10519
+ source_shell?: string | null;
10520
+ };
10521
+ Update: {
10522
+ action?: string;
10523
+ created_at?: string;
10524
+ detail?: string | null;
10525
+ http_status?: number | null;
10526
+ id?: string;
10527
+ ok?: boolean;
10528
+ order_ref?: string;
10529
+ source_module?: string | null;
10530
+ source_shell?: string | null;
10531
+ };
10532
+ Relationships: [];
10533
+ };
10189
10534
  logistics_formulas: {
10190
10535
  Row: {
10191
10536
  created_at: string;
@@ -10258,6 +10603,108 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
10258
10603
  };
10259
10604
  Relationships: [];
10260
10605
  };
10606
+ logistics_opening_exceptions: {
10607
+ Row: {
10608
+ closes: string | null;
10609
+ created_at: string;
10610
+ day: string;
10611
+ id: string;
10612
+ is_closed: boolean;
10613
+ note: string | null;
10614
+ opens: string | null;
10615
+ };
10616
+ Insert: {
10617
+ closes?: string | null;
10618
+ created_at?: string;
10619
+ day: string;
10620
+ id?: string;
10621
+ is_closed?: boolean;
10622
+ note?: string | null;
10623
+ opens?: string | null;
10624
+ };
10625
+ Update: {
10626
+ closes?: string | null;
10627
+ created_at?: string;
10628
+ day?: string;
10629
+ id?: string;
10630
+ is_closed?: boolean;
10631
+ note?: string | null;
10632
+ opens?: string | null;
10633
+ };
10634
+ Relationships: [];
10635
+ };
10636
+ logistics_opening_hours: {
10637
+ Row: {
10638
+ closes: string;
10639
+ created_at: string;
10640
+ id: string;
10641
+ is_active: boolean;
10642
+ note: string | null;
10643
+ opens: string;
10644
+ weekday: number;
10645
+ };
10646
+ Insert: {
10647
+ closes: string;
10648
+ created_at?: string;
10649
+ id?: string;
10650
+ is_active?: boolean;
10651
+ note?: string | null;
10652
+ opens: string;
10653
+ weekday: number;
10654
+ };
10655
+ Update: {
10656
+ closes?: string;
10657
+ created_at?: string;
10658
+ id?: string;
10659
+ is_active?: boolean;
10660
+ note?: string | null;
10661
+ opens?: string;
10662
+ weekday?: number;
10663
+ };
10664
+ Relationships: [];
10665
+ };
10666
+ logistics_pick_data_requests: {
10667
+ Row: {
10668
+ actions: import("../integrations/supabase/types").Json;
10669
+ created_at: string;
10670
+ event_id: string | null;
10671
+ finished_at: string | null;
10672
+ id: string;
10673
+ missing: import("../integrations/supabase/types").Json;
10674
+ order_ref: string;
10675
+ reason: string | null;
10676
+ result: import("../integrations/supabase/types").Json | null;
10677
+ status: string;
10678
+ unit_ref: string | null;
10679
+ };
10680
+ Insert: {
10681
+ actions?: import("../integrations/supabase/types").Json;
10682
+ created_at?: string;
10683
+ event_id?: string | null;
10684
+ finished_at?: string | null;
10685
+ id?: string;
10686
+ missing?: import("../integrations/supabase/types").Json;
10687
+ order_ref: string;
10688
+ reason?: string | null;
10689
+ result?: import("../integrations/supabase/types").Json | null;
10690
+ status?: string;
10691
+ unit_ref?: string | null;
10692
+ };
10693
+ Update: {
10694
+ actions?: import("../integrations/supabase/types").Json;
10695
+ created_at?: string;
10696
+ event_id?: string | null;
10697
+ finished_at?: string | null;
10698
+ id?: string;
10699
+ missing?: import("../integrations/supabase/types").Json;
10700
+ order_ref?: string;
10701
+ reason?: string | null;
10702
+ result?: import("../integrations/supabase/types").Json | null;
10703
+ status?: string;
10704
+ unit_ref?: string | null;
10705
+ };
10706
+ Relationships: [];
10707
+ };
10261
10708
  logistics_pickup_moments: {
10262
10709
  Row: {
10263
10710
  carrier_ref: string | null;
@@ -10717,6 +11164,69 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
10717
11164
  };
10718
11165
  Relationships: [];
10719
11166
  };
11167
+ logistics_slip_shipping_note: {
11168
+ Row: {
11169
+ attempts: number;
11170
+ batch_key: string | null;
11171
+ cart_id: string | null;
11172
+ created_at: string;
11173
+ error: string | null;
11174
+ error_code: string | null;
11175
+ fulfillment_order_id: string | null;
11176
+ id: string;
11177
+ locked_until: string | null;
11178
+ next_attempt_at: string | null;
11179
+ order_id: string | null;
11180
+ order_number: string | null;
11181
+ print_job_id: string | null;
11182
+ printer_id: string | null;
11183
+ retry_class: string | null;
11184
+ slip_job_id: string;
11185
+ status: string;
11186
+ updated_at: string;
11187
+ };
11188
+ Insert: {
11189
+ attempts?: number;
11190
+ batch_key?: string | null;
11191
+ cart_id?: string | null;
11192
+ created_at?: string;
11193
+ error?: string | null;
11194
+ error_code?: string | null;
11195
+ fulfillment_order_id?: string | null;
11196
+ id?: string;
11197
+ locked_until?: string | null;
11198
+ next_attempt_at?: string | null;
11199
+ order_id?: string | null;
11200
+ order_number?: string | null;
11201
+ print_job_id?: string | null;
11202
+ printer_id?: string | null;
11203
+ retry_class?: string | null;
11204
+ slip_job_id: string;
11205
+ status?: string;
11206
+ updated_at?: string;
11207
+ };
11208
+ Update: {
11209
+ attempts?: number;
11210
+ batch_key?: string | null;
11211
+ cart_id?: string | null;
11212
+ created_at?: string;
11213
+ error?: string | null;
11214
+ error_code?: string | null;
11215
+ fulfillment_order_id?: string | null;
11216
+ id?: string;
11217
+ locked_until?: string | null;
11218
+ next_attempt_at?: string | null;
11219
+ order_id?: string | null;
11220
+ order_number?: string | null;
11221
+ print_job_id?: string | null;
11222
+ printer_id?: string | null;
11223
+ retry_class?: string | null;
11224
+ slip_job_id?: string;
11225
+ status?: string;
11226
+ updated_at?: string;
11227
+ };
11228
+ Relationships: [];
11229
+ };
10720
11230
  logistics_staff_planning: {
10721
11231
  Row: {
10722
11232
  created_at: string;
@@ -11050,6 +11560,129 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
11050
11560
  };
11051
11561
  Relationships: [];
11052
11562
  };
11563
+ logistics_time_settings: {
11564
+ Row: {
11565
+ id: boolean;
11566
+ timezone: string;
11567
+ updated_at: string;
11568
+ };
11569
+ Insert: {
11570
+ id?: boolean;
11571
+ timezone: string;
11572
+ updated_at?: string;
11573
+ };
11574
+ Update: {
11575
+ id?: boolean;
11576
+ timezone?: string;
11577
+ updated_at?: string;
11578
+ };
11579
+ Relationships: [];
11580
+ };
11581
+ logistics_trace_events: {
11582
+ Row: {
11583
+ actor: string | null;
11584
+ attempts: number;
11585
+ cart_ref: string | null;
11586
+ created_at: string;
11587
+ db_action: string | null;
11588
+ db_new: import("../integrations/supabase/types").Json | null;
11589
+ db_old: import("../integrations/supabase/types").Json | null;
11590
+ db_record: string | null;
11591
+ db_table: string | null;
11592
+ decision: string | null;
11593
+ duration_ms: number | null;
11594
+ error: string | null;
11595
+ external_action: string | null;
11596
+ external_ref: string | null;
11597
+ external_response: import("../integrations/supabase/types").Json | null;
11598
+ external_status: string | null;
11599
+ external_system: string | null;
11600
+ id: string;
11601
+ input: import("../integrations/supabase/types").Json | null;
11602
+ next_attempt_at: string | null;
11603
+ order_ref: string | null;
11604
+ order_source: string | null;
11605
+ output: import("../integrations/supabase/types").Json | null;
11606
+ phase: string;
11607
+ reads: import("../integrations/supabase/types").Json | null;
11608
+ reason: string | null;
11609
+ rule: string | null;
11610
+ slip_ref: string | null;
11611
+ status: string;
11612
+ step: string;
11613
+ trace_id: string;
11614
+ values_used: import("../integrations/supabase/types").Json | null;
11615
+ };
11616
+ Insert: {
11617
+ actor?: string | null;
11618
+ attempts?: number;
11619
+ cart_ref?: string | null;
11620
+ created_at?: string;
11621
+ db_action?: string | null;
11622
+ db_new?: import("../integrations/supabase/types").Json | null;
11623
+ db_old?: import("../integrations/supabase/types").Json | null;
11624
+ db_record?: string | null;
11625
+ db_table?: string | null;
11626
+ decision?: string | null;
11627
+ duration_ms?: number | null;
11628
+ error?: string | null;
11629
+ external_action?: string | null;
11630
+ external_ref?: string | null;
11631
+ external_response?: import("../integrations/supabase/types").Json | null;
11632
+ external_status?: string | null;
11633
+ external_system?: string | null;
11634
+ id?: string;
11635
+ input?: import("../integrations/supabase/types").Json | null;
11636
+ next_attempt_at?: string | null;
11637
+ order_ref?: string | null;
11638
+ order_source?: string | null;
11639
+ output?: import("../integrations/supabase/types").Json | null;
11640
+ phase: string;
11641
+ reads?: import("../integrations/supabase/types").Json | null;
11642
+ reason?: string | null;
11643
+ rule?: string | null;
11644
+ slip_ref?: string | null;
11645
+ status: string;
11646
+ step: string;
11647
+ trace_id?: string;
11648
+ values_used?: import("../integrations/supabase/types").Json | null;
11649
+ };
11650
+ Update: {
11651
+ actor?: string | null;
11652
+ attempts?: number;
11653
+ cart_ref?: string | null;
11654
+ created_at?: string;
11655
+ db_action?: string | null;
11656
+ db_new?: import("../integrations/supabase/types").Json | null;
11657
+ db_old?: import("../integrations/supabase/types").Json | null;
11658
+ db_record?: string | null;
11659
+ db_table?: string | null;
11660
+ decision?: string | null;
11661
+ duration_ms?: number | null;
11662
+ error?: string | null;
11663
+ external_action?: string | null;
11664
+ external_ref?: string | null;
11665
+ external_response?: import("../integrations/supabase/types").Json | null;
11666
+ external_status?: string | null;
11667
+ external_system?: string | null;
11668
+ id?: string;
11669
+ input?: import("../integrations/supabase/types").Json | null;
11670
+ next_attempt_at?: string | null;
11671
+ order_ref?: string | null;
11672
+ order_source?: string | null;
11673
+ output?: import("../integrations/supabase/types").Json | null;
11674
+ phase?: string;
11675
+ reads?: import("../integrations/supabase/types").Json | null;
11676
+ reason?: string | null;
11677
+ rule?: string | null;
11678
+ slip_ref?: string | null;
11679
+ status?: string;
11680
+ step?: string;
11681
+ trace_id?: string;
11682
+ values_used?: import("../integrations/supabase/types").Json | null;
11683
+ };
11684
+ Relationships: [];
11685
+ };
11053
11686
  logistics_variables: {
11054
11687
  Row: {
11055
11688
  created_at: string;
@@ -13440,6 +14073,7 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
13440
14073
  customer_name: string;
13441
14074
  deleted_at: string | null;
13442
14075
  delivery_date: string | null;
14076
+ floriday_order_group_key: string | null;
13443
14077
  floriday_sales_order_id: string | null;
13444
14078
  id: string;
13445
14079
  invoice_due_at: string | null;
@@ -13467,6 +14101,7 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
13467
14101
  customer_name?: string;
13468
14102
  deleted_at?: string | null;
13469
14103
  delivery_date?: string | null;
14104
+ floriday_order_group_key?: string | null;
13470
14105
  floriday_sales_order_id?: string | null;
13471
14106
  id?: string;
13472
14107
  invoice_due_at?: string | null;
@@ -13494,6 +14129,7 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
13494
14129
  customer_name?: string;
13495
14130
  deleted_at?: string | null;
13496
14131
  delivery_date?: string | null;
14132
+ floriday_order_group_key?: string | null;
13497
14133
  floriday_sales_order_id?: string | null;
13498
14134
  id?: string;
13499
14135
  invoice_due_at?: string | null;
@@ -19357,6 +19993,36 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
19357
19993
  referencedColumns: ["id"];
19358
19994
  }];
19359
19995
  };
19996
+ voorraad_buffer_state: {
19997
+ Row: {
19998
+ buffer_id: string;
19999
+ buffer_key: string | null;
20000
+ closed_at: string | null;
20001
+ created_at: string;
20002
+ detached_orders: import("../integrations/supabase/types").Json;
20003
+ reason: string | null;
20004
+ updated_at: string;
20005
+ };
20006
+ Insert: {
20007
+ buffer_id: string;
20008
+ buffer_key?: string | null;
20009
+ closed_at?: string | null;
20010
+ created_at?: string;
20011
+ detached_orders?: import("../integrations/supabase/types").Json;
20012
+ reason?: string | null;
20013
+ updated_at?: string;
20014
+ };
20015
+ Update: {
20016
+ buffer_id?: string;
20017
+ buffer_key?: string | null;
20018
+ closed_at?: string | null;
20019
+ created_at?: string;
20020
+ detached_orders?: import("../integrations/supabase/types").Json;
20021
+ reason?: string | null;
20022
+ updated_at?: string;
20023
+ };
20024
+ Relationships: [];
20025
+ };
19360
20026
  voorraad_custom_fields: {
19361
20027
  Row: {
19362
20028
  created_at: string;
@@ -19399,6 +20065,36 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
19399
20065
  };
19400
20066
  Relationships: [];
19401
20067
  };
20068
+ voorraad_logistics_event_log: {
20069
+ Row: {
20070
+ created_at: string;
20071
+ event_id: string;
20072
+ event_type: string;
20073
+ order_ref: string | null;
20074
+ processed_at: string;
20075
+ result: import("../integrations/supabase/types").Json;
20076
+ updated_at: string;
20077
+ };
20078
+ Insert: {
20079
+ created_at?: string;
20080
+ event_id: string;
20081
+ event_type: string;
20082
+ order_ref?: string | null;
20083
+ processed_at?: string;
20084
+ result?: import("../integrations/supabase/types").Json;
20085
+ updated_at?: string;
20086
+ };
20087
+ Update: {
20088
+ created_at?: string;
20089
+ event_id?: string;
20090
+ event_type?: string;
20091
+ order_ref?: string | null;
20092
+ processed_at?: string;
20093
+ result?: import("../integrations/supabase/types").Json;
20094
+ updated_at?: string;
20095
+ };
20096
+ Relationships: [];
20097
+ };
19402
20098
  voorraad_media_upload_failures: {
19403
20099
  Row: {
19404
20100
  action: string;
@@ -21559,6 +22255,15 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
21559
22255
  Args: never;
21560
22256
  Returns: boolean;
21561
22257
  };
22258
+ cancel_open_print_jobs: {
22259
+ Args: {
22260
+ _cutoff: string;
22261
+ };
22262
+ Returns: {
22263
+ extern_job_id: string;
22264
+ id: string;
22265
+ }[];
22266
+ };
21562
22267
  check_offer_product_available_stock: {
21563
22268
  Args: {
21564
22269
  p_campaign_product_id: string;
@@ -23097,6 +23802,12 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23097
23802
  };
23098
23803
  Returns: string;
23099
23804
  };
23805
+ logistics_cart_checkin_at: {
23806
+ Args: {
23807
+ p_cart_id: string;
23808
+ };
23809
+ Returns: string;
23810
+ };
23100
23811
  logistics_cart_handled: {
23101
23812
  Args: {
23102
23813
  p_cart_index: number;
@@ -23130,10 +23841,22 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23130
23841
  task_status: string;
23131
23842
  }[];
23132
23843
  };
23844
+ logistics_cart_is_full: {
23845
+ Args: {
23846
+ p_cart_id: string;
23847
+ };
23848
+ Returns: boolean;
23849
+ };
23133
23850
  logistics_cart_layout_method: {
23134
23851
  Args: never;
23135
23852
  Returns: import("../integrations/supabase/types").Json;
23136
23853
  };
23854
+ logistics_cart_order_refs: {
23855
+ Args: {
23856
+ p_cart_id: string;
23857
+ };
23858
+ Returns: string[];
23859
+ };
23137
23860
  logistics_cart_plan_overview: {
23138
23861
  Args: {
23139
23862
  p_days?: number;
@@ -23153,6 +23876,24 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23153
23876
  };
23154
23877
  Returns: import("../integrations/supabase/types").Json;
23155
23878
  };
23879
+ logistics_cart_plan_status_core: {
23880
+ Args: {
23881
+ p_ref: string;
23882
+ };
23883
+ Returns: import("../integrations/supabase/types").Json;
23884
+ };
23885
+ logistics_cart_release_reason: {
23886
+ Args: {
23887
+ p_cart_id: string;
23888
+ };
23889
+ Returns: string;
23890
+ };
23891
+ logistics_cart_released: {
23892
+ Args: {
23893
+ p_cart_id: string;
23894
+ };
23895
+ Returns: boolean;
23896
+ };
23156
23897
  logistics_cart_seq: {
23157
23898
  Args: {
23158
23899
  p_order_uuid?: string;
@@ -23203,6 +23944,10 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23203
23944
  unit_ref: string;
23204
23945
  }[];
23205
23946
  };
23947
+ logistics_carts_per_print: {
23948
+ Args: never;
23949
+ Returns: number;
23950
+ };
23206
23951
  logistics_check_order_allowed: {
23207
23952
  Args: {
23208
23953
  p_lines: import("../integrations/supabase/types").Json;
@@ -23306,6 +24051,10 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23306
24051
  isSetofReturn: false;
23307
24052
  };
23308
24053
  };
24054
+ logistics_cleanup_orphan_print_jobs: {
24055
+ Args: never;
24056
+ Returns: import("../integrations/supabase/types").Json;
24057
+ };
23309
24058
  logistics_complete_task: {
23310
24059
  Args: {
23311
24060
  p_result?: import("../integrations/supabase/types").Json;
@@ -23368,6 +24117,12 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23368
24117
  station_carts: number;
23369
24118
  }[];
23370
24119
  };
24120
+ logistics_control_complete_cart: {
24121
+ Args: {
24122
+ p_cart_id: string;
24123
+ };
24124
+ Returns: number;
24125
+ };
23371
24126
  logistics_control_scan_approve: {
23372
24127
  Args: {
23373
24128
  p_allow_reprint?: boolean;
@@ -23447,6 +24202,15 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23447
24202
  Args: never;
23448
24203
  Returns: import("../integrations/supabase/types").Json;
23449
24204
  };
24205
+ logistics_day_windows: {
24206
+ Args: {
24207
+ p_day: string;
24208
+ };
24209
+ Returns: {
24210
+ win_end: string;
24211
+ win_start: string;
24212
+ }[];
24213
+ };
23450
24214
  logistics_delay_customer_email: {
23451
24215
  Args: {
23452
24216
  p_customer: string;
@@ -23514,6 +24278,17 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23514
24278
  };
23515
24279
  Returns: import("../integrations/supabase/types").Json;
23516
24280
  };
24281
+ logistics_enqueue_shipping_note_with_slip: {
24282
+ Args: {
24283
+ _cart_id: string;
24284
+ _is_herprint: boolean;
24285
+ _printer_id: string;
24286
+ _queue_item_id: string;
24287
+ _session_id: string;
24288
+ _slip_job_id: string;
24289
+ };
24290
+ Returns: string;
24291
+ };
23517
24292
  logistics_enqueue_sticker_with_slip: {
23518
24293
  Args: {
23519
24294
  _cart_id: string;
@@ -23531,6 +24306,20 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23531
24306
  };
23532
24307
  Returns: string;
23533
24308
  };
24309
+ logistics_ensure_pick_data: {
24310
+ Args: {
24311
+ p_event_id?: string;
24312
+ p_missing?: import("../integrations/supabase/types").Json;
24313
+ p_ref: string;
24314
+ };
24315
+ Returns: import("../integrations/supabase/types").Json;
24316
+ };
24317
+ logistics_ensure_shipping_notes: {
24318
+ Args: {
24319
+ p_limit?: number;
24320
+ };
24321
+ Returns: import("../integrations/supabase/types").Json;
24322
+ };
23534
24323
  logistics_fail_task: {
23535
24324
  Args: {
23536
24325
  p_error: string;
@@ -23576,6 +24365,10 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23576
24365
  isSetofReturn: false;
23577
24366
  };
23578
24367
  };
24368
+ logistics_fix_wrong_shipping_notes: {
24369
+ Args: never;
24370
+ Returns: import("../integrations/supabase/types").Json;
24371
+ };
23579
24372
  logistics_floriday_cart_plan: {
23580
24373
  Args: {
23581
24374
  p_order_id: string;
@@ -23603,6 +24396,10 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23603
24396
  revision: number;
23604
24397
  }[];
23605
24398
  };
24399
+ logistics_floriday_delivery_note_create_enabled: {
24400
+ Args: never;
24401
+ Returns: boolean;
24402
+ };
23606
24403
  logistics_floriday_finish_push: {
23607
24404
  Args: {
23608
24405
  _error?: string;
@@ -23652,6 +24449,32 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23652
24449
  };
23653
24450
  Returns: string;
23654
24451
  };
24452
+ logistics_floriday_gate_status: {
24453
+ Args: never;
24454
+ Returns: import("../integrations/supabase/types").Json;
24455
+ };
24456
+ logistics_floriday_log_refusal: {
24457
+ Args: {
24458
+ _action?: string;
24459
+ _module?: string;
24460
+ _order_ref: string;
24461
+ _reason: string;
24462
+ _shell?: string;
24463
+ };
24464
+ Returns: undefined;
24465
+ };
24466
+ logistics_floriday_log_send: {
24467
+ Args: {
24468
+ _action: string;
24469
+ _detail?: string;
24470
+ _http_status?: number;
24471
+ _module?: string;
24472
+ _ok: boolean;
24473
+ _order_ref: string;
24474
+ _shell?: string;
24475
+ };
24476
+ Returns: undefined;
24477
+ };
23655
24478
  logistics_floriday_order_approved: {
23656
24479
  Args: {
23657
24480
  _order_ref: string;
@@ -23676,6 +24499,16 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23676
24499
  Args: never;
23677
24500
  Returns: boolean;
23678
24501
  };
24502
+ logistics_floriday_stock_updates_enabled: {
24503
+ Args: never;
24504
+ Returns: boolean;
24505
+ };
24506
+ logistics_floriday_write_allowed: {
24507
+ Args: {
24508
+ _action: string;
24509
+ };
24510
+ Returns: boolean;
24511
+ };
23679
24512
  logistics_fulfill_barcode_requests: {
23680
24513
  Args: {
23681
24514
  p_limit?: number;
@@ -23718,6 +24551,12 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23718
24551
  };
23719
24552
  Returns: number;
23720
24553
  };
24554
+ logistics_merge_partial_carts: {
24555
+ Args: {
24556
+ p_limit?: number;
24557
+ };
24558
+ Returns: import("../integrations/supabase/types").Json;
24559
+ };
23721
24560
  logistics_next_workday_date: {
23722
24561
  Args: {
23723
24562
  p_date: string;
@@ -23744,6 +24583,10 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23744
24583
  };
23745
24584
  Returns: string;
23746
24585
  };
24586
+ logistics_opening_timezone: {
24587
+ Args: never;
24588
+ Returns: string;
24589
+ };
23747
24590
  logistics_order_cart_count: {
23748
24591
  Args: {
23749
24592
  p_order_ref: string;
@@ -23800,6 +24643,12 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23800
24643
  };
23801
24644
  Returns: string;
23802
24645
  };
24646
+ logistics_payload_is_floriday: {
24647
+ Args: {
24648
+ _payload: import("../integrations/supabase/types").Json;
24649
+ };
24650
+ Returns: boolean;
24651
+ };
23803
24652
  logistics_pick_agenda: {
23804
24653
  Args: {
23805
24654
  p_from?: string;
@@ -23828,6 +24677,10 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23828
24677
  Args: never;
23829
24678
  Returns: import("../integrations/supabase/types").Json;
23830
24679
  };
24680
+ logistics_pick_partial_mode: {
24681
+ Args: never;
24682
+ Returns: string;
24683
+ };
23831
24684
  logistics_pick_start_estimate: {
23832
24685
  Args: {
23833
24686
  p_order: import("../integrations/supabase/types").Json;
@@ -23918,6 +24771,20 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23918
24771
  Args: never;
23919
24772
  Returns: undefined;
23920
24773
  };
24774
+ logistics_plan_progress: {
24775
+ Args: {
24776
+ p_refs: string[];
24777
+ };
24778
+ Returns: {
24779
+ cart_plan_ready: boolean;
24780
+ cart_plan_reason: string;
24781
+ cart_plan_released: boolean;
24782
+ plan_progress: number;
24783
+ plan_state: string;
24784
+ plan_state_since: string;
24785
+ unit_ref: string;
24786
+ }[];
24787
+ };
23921
24788
  logistics_plan_prune: {
23922
24789
  Args: never;
23923
24790
  Returns: number;
@@ -23939,6 +24806,18 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23939
24806
  };
23940
24807
  Returns: number;
23941
24808
  };
24809
+ logistics_plan_state_for: {
24810
+ Args: {
24811
+ p_ref: string;
24812
+ };
24813
+ Returns: import("../integrations/supabase/types").Json;
24814
+ };
24815
+ logistics_prepare_pick_documents: {
24816
+ Args: {
24817
+ p_limit?: number;
24818
+ };
24819
+ Returns: import("../integrations/supabase/types").Json;
24820
+ };
23942
24821
  logistics_prune_buffer_member_queue: {
23943
24822
  Args: never;
23944
24823
  Returns: number;
@@ -23979,18 +24858,36 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
23979
24858
  Args: never;
23980
24859
  Returns: import("../integrations/supabase/types").Json;
23981
24860
  };
24861
+ logistics_refresh_pick_queue_status: {
24862
+ Args: {
24863
+ p_ref: string;
24864
+ };
24865
+ Returns: number;
24866
+ };
23982
24867
  logistics_refresh_pickup_moments: {
23983
24868
  Args: {
23984
24869
  p_weeks?: number;
23985
24870
  };
23986
24871
  Returns: import("../integrations/supabase/types").Json;
23987
24872
  };
24873
+ logistics_refresh_plan_state: {
24874
+ Args: {
24875
+ p_limit?: number;
24876
+ };
24877
+ Returns: import("../integrations/supabase/types").Json;
24878
+ };
23988
24879
  logistics_replan_all: {
23989
24880
  Args: {
23990
24881
  p_reason?: string;
23991
24882
  };
23992
24883
  Returns: import("../integrations/supabase/types").Json;
23993
24884
  };
24885
+ logistics_replan_all_force: {
24886
+ Args: {
24887
+ p_reason?: string;
24888
+ };
24889
+ Returns: import("../integrations/supabase/types").Json;
24890
+ };
23994
24891
  logistics_report_delay: {
23995
24892
  Args: {
23996
24893
  p_expected_date?: string;
@@ -24135,6 +25032,10 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
24135
25032
  };
24136
25033
  Returns: string;
24137
25034
  };
25035
+ logistics_shipping_note_follows_slip: {
25036
+ Args: never;
25037
+ Returns: boolean;
25038
+ };
24138
25039
  logistics_shipping_note_from_barcode: {
24139
25040
  Args: {
24140
25041
  p_allow_reprint?: boolean;
@@ -24143,10 +25044,86 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
24143
25044
  };
24144
25045
  Returns: import("../integrations/supabase/types").Json;
24145
25046
  };
25047
+ logistics_shipping_note_job_for_slip: {
25048
+ Args: {
25049
+ _slip_job_id: string;
25050
+ };
25051
+ Returns: string;
25052
+ };
25053
+ logistics_shipping_notes_wake_all: {
25054
+ Args: never;
25055
+ Returns: import("../integrations/supabase/types").Json;
25056
+ };
25057
+ logistics_slip_is_floriday: {
25058
+ Args: {
25059
+ _slip_job_id: string;
25060
+ };
25061
+ Returns: boolean;
25062
+ };
25063
+ logistics_slip_note_claim: {
25064
+ Args: {
25065
+ _lease_seconds?: number;
25066
+ _limit?: number;
25067
+ };
25068
+ Returns: {
25069
+ attempts: number;
25070
+ batch_key: string | null;
25071
+ cart_id: string | null;
25072
+ created_at: string;
25073
+ error: string | null;
25074
+ error_code: string | null;
25075
+ fulfillment_order_id: string | null;
25076
+ id: string;
25077
+ locked_until: string | null;
25078
+ next_attempt_at: string | null;
25079
+ order_id: string | null;
25080
+ order_number: string | null;
25081
+ print_job_id: string | null;
25082
+ printer_id: string | null;
25083
+ retry_class: string | null;
25084
+ slip_job_id: string;
25085
+ status: string;
25086
+ updated_at: string;
25087
+ }[];
25088
+ SetofOptions: {
25089
+ from: "*";
25090
+ to: "logistics_slip_shipping_note";
25091
+ isOneToOne: false;
25092
+ isSetofReturn: true;
25093
+ };
25094
+ };
25095
+ logistics_slip_note_finish: {
25096
+ Args: {
25097
+ _error?: string;
25098
+ _error_code?: string;
25099
+ _fulfillment_order_id?: string;
25100
+ _id: string;
25101
+ _ok: boolean;
25102
+ _print_job_id?: string;
25103
+ _status?: string;
25104
+ };
25105
+ Returns: undefined;
25106
+ };
25107
+ logistics_slip_note_keep_waiting: {
25108
+ Args: {
25109
+ _class?: string;
25110
+ _id: string;
25111
+ _reason: string;
25112
+ };
25113
+ Returns: undefined;
25114
+ };
24146
25115
  logistics_sticker_follows_slip: {
24147
25116
  Args: never;
24148
25117
  Returns: boolean;
24149
25118
  };
25119
+ logistics_subtract_working_minutes: {
25120
+ Args: {
25121
+ p_deadline: string;
25122
+ p_max_workdays?: number;
25123
+ p_minutes: number;
25124
+ };
25125
+ Returns: import("../integrations/supabase/types").Json;
25126
+ };
24150
25127
  logistics_supersede_stale_tasks: {
24151
25128
  Args: {
24152
25129
  p_keep: string[];
@@ -24183,6 +25160,46 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
24183
25160
  Args: never;
24184
25161
  Returns: string;
24185
25162
  };
25163
+ logistics_timezone_options: {
25164
+ Args: never;
25165
+ Returns: {
25166
+ name: string;
25167
+ }[];
25168
+ };
25169
+ logistics_trace: {
25170
+ Args: {
25171
+ p: import("../integrations/supabase/types").Json;
25172
+ };
25173
+ Returns: string;
25174
+ };
25175
+ logistics_trace_batch: {
25176
+ Args: {
25177
+ p: import("../integrations/supabase/types").Json;
25178
+ };
25179
+ Returns: number;
25180
+ };
25181
+ logistics_trace_orders: {
25182
+ Args: {
25183
+ p_limit?: number;
25184
+ p_search?: string;
25185
+ p_since?: string;
25186
+ p_status?: string;
25187
+ };
25188
+ Returns: import("../integrations/supabase/types").Json;
25189
+ };
25190
+ logistics_trace_redact: {
25191
+ Args: {
25192
+ p: import("../integrations/supabase/types").Json;
25193
+ };
25194
+ Returns: import("../integrations/supabase/types").Json;
25195
+ };
25196
+ logistics_trace_timeline: {
25197
+ Args: {
25198
+ p_limit?: number;
25199
+ p_order_ref: string;
25200
+ };
25201
+ Returns: import("../integrations/supabase/types").Json;
25202
+ };
24186
25203
  logistics_upsert_task: {
24187
25204
  Args: {
24188
25205
  p_buffer_ref: string;
@@ -24202,6 +25219,16 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
24202
25219
  };
24203
25220
  Returns: string;
24204
25221
  };
25222
+ logistics_valid_timezone: {
25223
+ Args: {
25224
+ _tz: string;
25225
+ };
25226
+ Returns: boolean;
25227
+ };
25228
+ logistics_working_hours_status: {
25229
+ Args: never;
25230
+ Returns: import("../integrations/supabase/types").Json;
25231
+ };
24205
25232
  logistics_write_buffer_layer_positions: {
24206
25233
  Args: {
24207
25234
  p_buffer_id: string;
@@ -25214,6 +26241,10 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
25214
26241
  };
25215
26242
  Returns: undefined;
25216
26243
  };
26244
+ prune_floriday_api_log: {
26245
+ Args: never;
26246
+ Returns: number;
26247
+ };
25217
26248
  quote_create_from_source: {
25218
26249
  Args: {
25219
26250
  _payload?: import("../integrations/supabase/types").Json;
@@ -25647,6 +26678,13 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
25647
26678
  };
25648
26679
  Returns: number;
25649
26680
  };
26681
+ schedule_floriday_catalog_prices_sync: {
26682
+ Args: {
26683
+ p_apikey: string;
26684
+ p_url: string;
26685
+ };
26686
+ Returns: number;
26687
+ };
25650
26688
  schedule_floriday_clock_presales_sync: {
25651
26689
  Args: {
25652
26690
  p_apikey: string;
@@ -25947,6 +26985,10 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
25947
26985
  };
25948
26986
  Returns: undefined;
25949
26987
  };
26988
+ sync_floriday_prices_into_price_groups: {
26989
+ Args: never;
26990
+ Returns: number;
26991
+ };
25950
26992
  sync_layer_stock: {
25951
26993
  Args: {
25952
26994
  p_product_id: string;
@@ -26079,6 +27121,10 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
26079
27121
  Args: never;
26080
27122
  Returns: string;
26081
27123
  };
27124
+ voorraad_cleanup_old_rows: {
27125
+ Args: never;
27126
+ Returns: import("../integrations/supabase/types").Json;
27127
+ };
26082
27128
  wake_print_queue: {
26083
27129
  Args: {
26084
27130
  _min_interval_ms?: number;
@@ -28379,6 +29425,45 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
28379
29425
  };
28380
29426
  Relationships: [];
28381
29427
  };
29428
+ customer_product_stickers: {
29429
+ Row: {
29430
+ created_at: string;
29431
+ customer_key: string;
29432
+ file_name: string;
29433
+ file_path: string;
29434
+ file_size: number | null;
29435
+ id: string;
29436
+ mime_type: string | null;
29437
+ trade_item_key: string;
29438
+ updated_at: string;
29439
+ uploaded_by: string | null;
29440
+ };
29441
+ Insert: {
29442
+ created_at?: string;
29443
+ customer_key: string;
29444
+ file_name: string;
29445
+ file_path: string;
29446
+ file_size?: number | null;
29447
+ id?: string;
29448
+ mime_type?: string | null;
29449
+ trade_item_key: string;
29450
+ updated_at?: string;
29451
+ uploaded_by?: string | null;
29452
+ };
29453
+ Update: {
29454
+ created_at?: string;
29455
+ customer_key?: string;
29456
+ file_name?: string;
29457
+ file_path?: string;
29458
+ file_size?: number | null;
29459
+ id?: string;
29460
+ mime_type?: string | null;
29461
+ trade_item_key?: string;
29462
+ updated_at?: string;
29463
+ uploaded_by?: string | null;
29464
+ };
29465
+ Relationships: [];
29466
+ };
28382
29467
  customer_selected_assortment: {
28383
29468
  Row: {
28384
29469
  article_number: string | null;
@@ -28427,6 +29512,30 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
28427
29512
  referencedColumns: ["id"];
28428
29513
  }];
28429
29514
  };
29515
+ customer_sticker_settings: {
29516
+ Row: {
29517
+ created_at: string;
29518
+ customer_key: string;
29519
+ height_mm: number;
29520
+ updated_at: string;
29521
+ width_mm: number;
29522
+ };
29523
+ Insert: {
29524
+ created_at?: string;
29525
+ customer_key: string;
29526
+ height_mm?: number;
29527
+ updated_at?: string;
29528
+ width_mm?: number;
29529
+ };
29530
+ Update: {
29531
+ created_at?: string;
29532
+ customer_key?: string;
29533
+ height_mm?: number;
29534
+ updated_at?: string;
29535
+ width_mm?: number;
29536
+ };
29537
+ Relationships: [];
29538
+ };
28430
29539
  customer_trade_settings: {
28431
29540
  Row: {
28432
29541
  category: string;
@@ -31757,6 +32866,102 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
31757
32866
  referencedColumns: ["id"];
31758
32867
  }];
31759
32868
  };
32869
+ floriday_api_log: {
32870
+ Row: {
32871
+ action: string | null;
32872
+ caller: string | null;
32873
+ connection_id: string | null;
32874
+ created_at: string;
32875
+ cursor_from: number | null;
32876
+ direction: string;
32877
+ duration_ms: number | null;
32878
+ environment: string | null;
32879
+ error: string | null;
32880
+ floriday_id: string | null;
32881
+ floriday_reference: string | null;
32882
+ http_status: number;
32883
+ id: string;
32884
+ item_count: number | null;
32885
+ kind: string | null;
32886
+ local_id: string | null;
32887
+ local_reference: string | null;
32888
+ method: string;
32889
+ module: string | null;
32890
+ ok: boolean;
32891
+ path: string;
32892
+ request: import("../integrations/supabase/types").Json | null;
32893
+ resource_type: string | null;
32894
+ response: import("../integrations/supabase/types").Json | null;
32895
+ write_log_id: string | null;
32896
+ };
32897
+ Insert: {
32898
+ action?: string | null;
32899
+ caller?: string | null;
32900
+ connection_id?: string | null;
32901
+ created_at?: string;
32902
+ cursor_from?: number | null;
32903
+ direction: string;
32904
+ duration_ms?: number | null;
32905
+ environment?: string | null;
32906
+ error?: string | null;
32907
+ floriday_id?: string | null;
32908
+ floriday_reference?: string | null;
32909
+ http_status?: number;
32910
+ id?: string;
32911
+ item_count?: number | null;
32912
+ kind?: string | null;
32913
+ local_id?: string | null;
32914
+ local_reference?: string | null;
32915
+ method: string;
32916
+ module?: string | null;
32917
+ ok?: boolean;
32918
+ path: string;
32919
+ request?: import("../integrations/supabase/types").Json | null;
32920
+ resource_type?: string | null;
32921
+ response?: import("../integrations/supabase/types").Json | null;
32922
+ write_log_id?: string | null;
32923
+ };
32924
+ Update: {
32925
+ action?: string | null;
32926
+ caller?: string | null;
32927
+ connection_id?: string | null;
32928
+ created_at?: string;
32929
+ cursor_from?: number | null;
32930
+ direction?: string;
32931
+ duration_ms?: number | null;
32932
+ environment?: string | null;
32933
+ error?: string | null;
32934
+ floriday_id?: string | null;
32935
+ floriday_reference?: string | null;
32936
+ http_status?: number;
32937
+ id?: string;
32938
+ item_count?: number | null;
32939
+ kind?: string | null;
32940
+ local_id?: string | null;
32941
+ local_reference?: string | null;
32942
+ method?: string;
32943
+ module?: string | null;
32944
+ ok?: boolean;
32945
+ path?: string;
32946
+ request?: import("../integrations/supabase/types").Json | null;
32947
+ resource_type?: string | null;
32948
+ response?: import("../integrations/supabase/types").Json | null;
32949
+ write_log_id?: string | null;
32950
+ };
32951
+ Relationships: [{
32952
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32953
+ columns: ["connection_id"];
32954
+ isOneToOne: false;
32955
+ referencedRelation: "floriday_connections";
32956
+ referencedColumns: ["id"];
32957
+ }, {
32958
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32959
+ columns: ["write_log_id"];
32960
+ isOneToOne: false;
32961
+ referencedRelation: "floriday_write_log";
32962
+ referencedColumns: ["id"];
32963
+ }];
32964
+ };
31760
32965
  floriday_auction_letters_cache: {
31761
32966
  Row: {
31762
32967
  auction_letter_code: string;
@@ -31964,6 +33169,84 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
31964
33169
  referencedColumns: ["id"];
31965
33170
  }];
31966
33171
  };
33172
+ floriday_catalog_prices_cache: {
33173
+ Row: {
33174
+ connection_id: string;
33175
+ created_at: string;
33176
+ currency: string;
33177
+ id: string;
33178
+ is_deleted: boolean;
33179
+ price: number | null;
33180
+ price_group_id: string | null;
33181
+ price_group_name: string | null;
33182
+ price_type: string;
33183
+ raw: import("../integrations/supabase/types").Json | null;
33184
+ sales_unit: string | null;
33185
+ sequence_number: number;
33186
+ supplier_article_code: string | null;
33187
+ supply_line_id: string;
33188
+ synced_at: string;
33189
+ trade_item_id: string | null;
33190
+ updated_at: string;
33191
+ valid_from: string | null;
33192
+ valid_to: string | null;
33193
+ week: number | null;
33194
+ year: number | null;
33195
+ };
33196
+ Insert: {
33197
+ connection_id: string;
33198
+ created_at?: string;
33199
+ currency?: string;
33200
+ id?: string;
33201
+ is_deleted?: boolean;
33202
+ price?: number | null;
33203
+ price_group_id?: string | null;
33204
+ price_group_name?: string | null;
33205
+ price_type?: string;
33206
+ raw?: import("../integrations/supabase/types").Json | null;
33207
+ sales_unit?: string | null;
33208
+ sequence_number?: number;
33209
+ supplier_article_code?: string | null;
33210
+ supply_line_id: string;
33211
+ synced_at?: string;
33212
+ trade_item_id?: string | null;
33213
+ updated_at?: string;
33214
+ valid_from?: string | null;
33215
+ valid_to?: string | null;
33216
+ week?: number | null;
33217
+ year?: number | null;
33218
+ };
33219
+ Update: {
33220
+ connection_id?: string;
33221
+ created_at?: string;
33222
+ currency?: string;
33223
+ id?: string;
33224
+ is_deleted?: boolean;
33225
+ price?: number | null;
33226
+ price_group_id?: string | null;
33227
+ price_group_name?: string | null;
33228
+ price_type?: string;
33229
+ raw?: import("../integrations/supabase/types").Json | null;
33230
+ sales_unit?: string | null;
33231
+ sequence_number?: number;
33232
+ supplier_article_code?: string | null;
33233
+ supply_line_id?: string;
33234
+ synced_at?: string;
33235
+ trade_item_id?: string | null;
33236
+ updated_at?: string;
33237
+ valid_from?: string | null;
33238
+ valid_to?: string | null;
33239
+ week?: number | null;
33240
+ year?: number | null;
33241
+ };
33242
+ Relationships: [{
33243
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33244
+ columns: ["connection_id"];
33245
+ isOneToOne: false;
33246
+ referencedRelation: "floriday_connections";
33247
+ referencedColumns: ["id"];
33248
+ }];
33249
+ };
31967
33250
  floriday_clock_presales_cache: {
31968
33251
  Row: {
31969
33252
  buyer_organization_id: string | null;
@@ -32879,6 +34162,69 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
32879
34162
  referencedColumns: ["id"];
32880
34163
  }];
32881
34164
  };
34165
+ floriday_link_templates: {
34166
+ Row: {
34167
+ created_at: string;
34168
+ floriday_url_template: string | null;
34169
+ is_active: boolean;
34170
+ label: string;
34171
+ local_url_template: string | null;
34172
+ resource_type: string;
34173
+ updated_at: string;
34174
+ };
34175
+ Insert: {
34176
+ created_at?: string;
34177
+ floriday_url_template?: string | null;
34178
+ is_active?: boolean;
34179
+ label: string;
34180
+ local_url_template?: string | null;
34181
+ resource_type: string;
34182
+ updated_at?: string;
34183
+ };
34184
+ Update: {
34185
+ created_at?: string;
34186
+ floriday_url_template?: string | null;
34187
+ is_active?: boolean;
34188
+ label?: string;
34189
+ local_url_template?: string | null;
34190
+ resource_type?: string;
34191
+ updated_at?: string;
34192
+ };
34193
+ Relationships: [];
34194
+ };
34195
+ floriday_log_retention: {
34196
+ Row: {
34197
+ created_at: string;
34198
+ direction: string | null;
34199
+ id: string;
34200
+ keep_failed_days: number | null;
34201
+ keep_ok_days: number | null;
34202
+ note: string | null;
34203
+ resource_type: string | null;
34204
+ updated_at: string;
34205
+ };
34206
+ Insert: {
34207
+ created_at?: string;
34208
+ direction?: string | null;
34209
+ id?: string;
34210
+ keep_failed_days?: number | null;
34211
+ keep_ok_days?: number | null;
34212
+ note?: string | null;
34213
+ resource_type?: string | null;
34214
+ updated_at?: string;
34215
+ };
34216
+ Update: {
34217
+ created_at?: string;
34218
+ direction?: string | null;
34219
+ id?: string;
34220
+ keep_failed_days?: number | null;
34221
+ keep_ok_days?: number | null;
34222
+ note?: string | null;
34223
+ resource_type?: string | null;
34224
+ updated_at?: string;
34225
+ };
34226
+ Relationships: [];
34227
+ };
32882
34228
  floriday_logistic_labels_cache: {
32883
34229
  Row: {
32884
34230
  byte_size: number | null;
@@ -36232,22 +37578,31 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
36232
37578
  };
36233
37579
  logistics_floriday_push_refusals: {
36234
37580
  Row: {
37581
+ action: string | null;
36235
37582
  created_at: string;
36236
37583
  id: string;
36237
37584
  order_ref: string;
36238
37585
  reason: string;
37586
+ source_module: string | null;
37587
+ source_shell: string | null;
36239
37588
  };
36240
37589
  Insert: {
37590
+ action?: string | null;
36241
37591
  created_at?: string;
36242
37592
  id?: string;
36243
37593
  order_ref: string;
36244
37594
  reason: string;
37595
+ source_module?: string | null;
37596
+ source_shell?: string | null;
36245
37597
  };
36246
37598
  Update: {
37599
+ action?: string | null;
36247
37600
  created_at?: string;
36248
37601
  id?: string;
36249
37602
  order_ref?: string;
36250
37603
  reason?: string;
37604
+ source_module?: string | null;
37605
+ source_shell?: string | null;
36251
37606
  };
36252
37607
  Relationships: [];
36253
37608
  };
@@ -36326,6 +37681,42 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
36326
37681
  };
36327
37682
  Relationships: [];
36328
37683
  };
37684
+ logistics_floriday_status_sends: {
37685
+ Row: {
37686
+ action: string;
37687
+ created_at: string;
37688
+ detail: string | null;
37689
+ http_status: number | null;
37690
+ id: string;
37691
+ ok: boolean;
37692
+ order_ref: string;
37693
+ source_module: string | null;
37694
+ source_shell: string | null;
37695
+ };
37696
+ Insert: {
37697
+ action: string;
37698
+ created_at?: string;
37699
+ detail?: string | null;
37700
+ http_status?: number | null;
37701
+ id?: string;
37702
+ ok?: boolean;
37703
+ order_ref: string;
37704
+ source_module?: string | null;
37705
+ source_shell?: string | null;
37706
+ };
37707
+ Update: {
37708
+ action?: string;
37709
+ created_at?: string;
37710
+ detail?: string | null;
37711
+ http_status?: number | null;
37712
+ id?: string;
37713
+ ok?: boolean;
37714
+ order_ref?: string;
37715
+ source_module?: string | null;
37716
+ source_shell?: string | null;
37717
+ };
37718
+ Relationships: [];
37719
+ };
36329
37720
  logistics_formulas: {
36330
37721
  Row: {
36331
37722
  created_at: string;
@@ -36398,6 +37789,108 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
36398
37789
  };
36399
37790
  Relationships: [];
36400
37791
  };
37792
+ logistics_opening_exceptions: {
37793
+ Row: {
37794
+ closes: string | null;
37795
+ created_at: string;
37796
+ day: string;
37797
+ id: string;
37798
+ is_closed: boolean;
37799
+ note: string | null;
37800
+ opens: string | null;
37801
+ };
37802
+ Insert: {
37803
+ closes?: string | null;
37804
+ created_at?: string;
37805
+ day: string;
37806
+ id?: string;
37807
+ is_closed?: boolean;
37808
+ note?: string | null;
37809
+ opens?: string | null;
37810
+ };
37811
+ Update: {
37812
+ closes?: string | null;
37813
+ created_at?: string;
37814
+ day?: string;
37815
+ id?: string;
37816
+ is_closed?: boolean;
37817
+ note?: string | null;
37818
+ opens?: string | null;
37819
+ };
37820
+ Relationships: [];
37821
+ };
37822
+ logistics_opening_hours: {
37823
+ Row: {
37824
+ closes: string;
37825
+ created_at: string;
37826
+ id: string;
37827
+ is_active: boolean;
37828
+ note: string | null;
37829
+ opens: string;
37830
+ weekday: number;
37831
+ };
37832
+ Insert: {
37833
+ closes: string;
37834
+ created_at?: string;
37835
+ id?: string;
37836
+ is_active?: boolean;
37837
+ note?: string | null;
37838
+ opens: string;
37839
+ weekday: number;
37840
+ };
37841
+ Update: {
37842
+ closes?: string;
37843
+ created_at?: string;
37844
+ id?: string;
37845
+ is_active?: boolean;
37846
+ note?: string | null;
37847
+ opens?: string;
37848
+ weekday?: number;
37849
+ };
37850
+ Relationships: [];
37851
+ };
37852
+ logistics_pick_data_requests: {
37853
+ Row: {
37854
+ actions: import("../integrations/supabase/types").Json;
37855
+ created_at: string;
37856
+ event_id: string | null;
37857
+ finished_at: string | null;
37858
+ id: string;
37859
+ missing: import("../integrations/supabase/types").Json;
37860
+ order_ref: string;
37861
+ reason: string | null;
37862
+ result: import("../integrations/supabase/types").Json | null;
37863
+ status: string;
37864
+ unit_ref: string | null;
37865
+ };
37866
+ Insert: {
37867
+ actions?: import("../integrations/supabase/types").Json;
37868
+ created_at?: string;
37869
+ event_id?: string | null;
37870
+ finished_at?: string | null;
37871
+ id?: string;
37872
+ missing?: import("../integrations/supabase/types").Json;
37873
+ order_ref: string;
37874
+ reason?: string | null;
37875
+ result?: import("../integrations/supabase/types").Json | null;
37876
+ status?: string;
37877
+ unit_ref?: string | null;
37878
+ };
37879
+ Update: {
37880
+ actions?: import("../integrations/supabase/types").Json;
37881
+ created_at?: string;
37882
+ event_id?: string | null;
37883
+ finished_at?: string | null;
37884
+ id?: string;
37885
+ missing?: import("../integrations/supabase/types").Json;
37886
+ order_ref?: string;
37887
+ reason?: string | null;
37888
+ result?: import("../integrations/supabase/types").Json | null;
37889
+ status?: string;
37890
+ unit_ref?: string | null;
37891
+ };
37892
+ Relationships: [];
37893
+ };
36401
37894
  logistics_pickup_moments: {
36402
37895
  Row: {
36403
37896
  carrier_ref: string | null;
@@ -36857,6 +38350,69 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
36857
38350
  };
36858
38351
  Relationships: [];
36859
38352
  };
38353
+ logistics_slip_shipping_note: {
38354
+ Row: {
38355
+ attempts: number;
38356
+ batch_key: string | null;
38357
+ cart_id: string | null;
38358
+ created_at: string;
38359
+ error: string | null;
38360
+ error_code: string | null;
38361
+ fulfillment_order_id: string | null;
38362
+ id: string;
38363
+ locked_until: string | null;
38364
+ next_attempt_at: string | null;
38365
+ order_id: string | null;
38366
+ order_number: string | null;
38367
+ print_job_id: string | null;
38368
+ printer_id: string | null;
38369
+ retry_class: string | null;
38370
+ slip_job_id: string;
38371
+ status: string;
38372
+ updated_at: string;
38373
+ };
38374
+ Insert: {
38375
+ attempts?: number;
38376
+ batch_key?: string | null;
38377
+ cart_id?: string | null;
38378
+ created_at?: string;
38379
+ error?: string | null;
38380
+ error_code?: string | null;
38381
+ fulfillment_order_id?: string | null;
38382
+ id?: string;
38383
+ locked_until?: string | null;
38384
+ next_attempt_at?: string | null;
38385
+ order_id?: string | null;
38386
+ order_number?: string | null;
38387
+ print_job_id?: string | null;
38388
+ printer_id?: string | null;
38389
+ retry_class?: string | null;
38390
+ slip_job_id: string;
38391
+ status?: string;
38392
+ updated_at?: string;
38393
+ };
38394
+ Update: {
38395
+ attempts?: number;
38396
+ batch_key?: string | null;
38397
+ cart_id?: string | null;
38398
+ created_at?: string;
38399
+ error?: string | null;
38400
+ error_code?: string | null;
38401
+ fulfillment_order_id?: string | null;
38402
+ id?: string;
38403
+ locked_until?: string | null;
38404
+ next_attempt_at?: string | null;
38405
+ order_id?: string | null;
38406
+ order_number?: string | null;
38407
+ print_job_id?: string | null;
38408
+ printer_id?: string | null;
38409
+ retry_class?: string | null;
38410
+ slip_job_id?: string;
38411
+ status?: string;
38412
+ updated_at?: string;
38413
+ };
38414
+ Relationships: [];
38415
+ };
36860
38416
  logistics_staff_planning: {
36861
38417
  Row: {
36862
38418
  created_at: string;
@@ -37190,6 +38746,129 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
37190
38746
  };
37191
38747
  Relationships: [];
37192
38748
  };
38749
+ logistics_time_settings: {
38750
+ Row: {
38751
+ id: boolean;
38752
+ timezone: string;
38753
+ updated_at: string;
38754
+ };
38755
+ Insert: {
38756
+ id?: boolean;
38757
+ timezone: string;
38758
+ updated_at?: string;
38759
+ };
38760
+ Update: {
38761
+ id?: boolean;
38762
+ timezone?: string;
38763
+ updated_at?: string;
38764
+ };
38765
+ Relationships: [];
38766
+ };
38767
+ logistics_trace_events: {
38768
+ Row: {
38769
+ actor: string | null;
38770
+ attempts: number;
38771
+ cart_ref: string | null;
38772
+ created_at: string;
38773
+ db_action: string | null;
38774
+ db_new: import("../integrations/supabase/types").Json | null;
38775
+ db_old: import("../integrations/supabase/types").Json | null;
38776
+ db_record: string | null;
38777
+ db_table: string | null;
38778
+ decision: string | null;
38779
+ duration_ms: number | null;
38780
+ error: string | null;
38781
+ external_action: string | null;
38782
+ external_ref: string | null;
38783
+ external_response: import("../integrations/supabase/types").Json | null;
38784
+ external_status: string | null;
38785
+ external_system: string | null;
38786
+ id: string;
38787
+ input: import("../integrations/supabase/types").Json | null;
38788
+ next_attempt_at: string | null;
38789
+ order_ref: string | null;
38790
+ order_source: string | null;
38791
+ output: import("../integrations/supabase/types").Json | null;
38792
+ phase: string;
38793
+ reads: import("../integrations/supabase/types").Json | null;
38794
+ reason: string | null;
38795
+ rule: string | null;
38796
+ slip_ref: string | null;
38797
+ status: string;
38798
+ step: string;
38799
+ trace_id: string;
38800
+ values_used: import("../integrations/supabase/types").Json | null;
38801
+ };
38802
+ Insert: {
38803
+ actor?: string | null;
38804
+ attempts?: number;
38805
+ cart_ref?: string | null;
38806
+ created_at?: string;
38807
+ db_action?: string | null;
38808
+ db_new?: import("../integrations/supabase/types").Json | null;
38809
+ db_old?: import("../integrations/supabase/types").Json | null;
38810
+ db_record?: string | null;
38811
+ db_table?: string | null;
38812
+ decision?: string | null;
38813
+ duration_ms?: number | null;
38814
+ error?: string | null;
38815
+ external_action?: string | null;
38816
+ external_ref?: string | null;
38817
+ external_response?: import("../integrations/supabase/types").Json | null;
38818
+ external_status?: string | null;
38819
+ external_system?: string | null;
38820
+ id?: string;
38821
+ input?: import("../integrations/supabase/types").Json | null;
38822
+ next_attempt_at?: string | null;
38823
+ order_ref?: string | null;
38824
+ order_source?: string | null;
38825
+ output?: import("../integrations/supabase/types").Json | null;
38826
+ phase: string;
38827
+ reads?: import("../integrations/supabase/types").Json | null;
38828
+ reason?: string | null;
38829
+ rule?: string | null;
38830
+ slip_ref?: string | null;
38831
+ status: string;
38832
+ step: string;
38833
+ trace_id?: string;
38834
+ values_used?: import("../integrations/supabase/types").Json | null;
38835
+ };
38836
+ Update: {
38837
+ actor?: string | null;
38838
+ attempts?: number;
38839
+ cart_ref?: string | null;
38840
+ created_at?: string;
38841
+ db_action?: string | null;
38842
+ db_new?: import("../integrations/supabase/types").Json | null;
38843
+ db_old?: import("../integrations/supabase/types").Json | null;
38844
+ db_record?: string | null;
38845
+ db_table?: string | null;
38846
+ decision?: string | null;
38847
+ duration_ms?: number | null;
38848
+ error?: string | null;
38849
+ external_action?: string | null;
38850
+ external_ref?: string | null;
38851
+ external_response?: import("../integrations/supabase/types").Json | null;
38852
+ external_status?: string | null;
38853
+ external_system?: string | null;
38854
+ id?: string;
38855
+ input?: import("../integrations/supabase/types").Json | null;
38856
+ next_attempt_at?: string | null;
38857
+ order_ref?: string | null;
38858
+ order_source?: string | null;
38859
+ output?: import("../integrations/supabase/types").Json | null;
38860
+ phase?: string;
38861
+ reads?: import("../integrations/supabase/types").Json | null;
38862
+ reason?: string | null;
38863
+ rule?: string | null;
38864
+ slip_ref?: string | null;
38865
+ status?: string;
38866
+ step?: string;
38867
+ trace_id?: string;
38868
+ values_used?: import("../integrations/supabase/types").Json | null;
38869
+ };
38870
+ Relationships: [];
38871
+ };
37193
38872
  logistics_variables: {
37194
38873
  Row: {
37195
38874
  created_at: string;
@@ -39580,6 +41259,7 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
39580
41259
  customer_name: string;
39581
41260
  deleted_at: string | null;
39582
41261
  delivery_date: string | null;
41262
+ floriday_order_group_key: string | null;
39583
41263
  floriday_sales_order_id: string | null;
39584
41264
  id: string;
39585
41265
  invoice_due_at: string | null;
@@ -39607,6 +41287,7 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
39607
41287
  customer_name?: string;
39608
41288
  deleted_at?: string | null;
39609
41289
  delivery_date?: string | null;
41290
+ floriday_order_group_key?: string | null;
39610
41291
  floriday_sales_order_id?: string | null;
39611
41292
  id?: string;
39612
41293
  invoice_due_at?: string | null;
@@ -39634,6 +41315,7 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
39634
41315
  customer_name?: string;
39635
41316
  deleted_at?: string | null;
39636
41317
  delivery_date?: string | null;
41318
+ floriday_order_group_key?: string | null;
39637
41319
  floriday_sales_order_id?: string | null;
39638
41320
  id?: string;
39639
41321
  invoice_due_at?: string | null;
@@ -45497,6 +47179,36 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
45497
47179
  referencedColumns: ["id"];
45498
47180
  }];
45499
47181
  };
47182
+ voorraad_buffer_state: {
47183
+ Row: {
47184
+ buffer_id: string;
47185
+ buffer_key: string | null;
47186
+ closed_at: string | null;
47187
+ created_at: string;
47188
+ detached_orders: import("../integrations/supabase/types").Json;
47189
+ reason: string | null;
47190
+ updated_at: string;
47191
+ };
47192
+ Insert: {
47193
+ buffer_id: string;
47194
+ buffer_key?: string | null;
47195
+ closed_at?: string | null;
47196
+ created_at?: string;
47197
+ detached_orders?: import("../integrations/supabase/types").Json;
47198
+ reason?: string | null;
47199
+ updated_at?: string;
47200
+ };
47201
+ Update: {
47202
+ buffer_id?: string;
47203
+ buffer_key?: string | null;
47204
+ closed_at?: string | null;
47205
+ created_at?: string;
47206
+ detached_orders?: import("../integrations/supabase/types").Json;
47207
+ reason?: string | null;
47208
+ updated_at?: string;
47209
+ };
47210
+ Relationships: [];
47211
+ };
45500
47212
  voorraad_custom_fields: {
45501
47213
  Row: {
45502
47214
  created_at: string;
@@ -45539,6 +47251,36 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
45539
47251
  };
45540
47252
  Relationships: [];
45541
47253
  };
47254
+ voorraad_logistics_event_log: {
47255
+ Row: {
47256
+ created_at: string;
47257
+ event_id: string;
47258
+ event_type: string;
47259
+ order_ref: string | null;
47260
+ processed_at: string;
47261
+ result: import("../integrations/supabase/types").Json;
47262
+ updated_at: string;
47263
+ };
47264
+ Insert: {
47265
+ created_at?: string;
47266
+ event_id: string;
47267
+ event_type: string;
47268
+ order_ref?: string | null;
47269
+ processed_at?: string;
47270
+ result?: import("../integrations/supabase/types").Json;
47271
+ updated_at?: string;
47272
+ };
47273
+ Update: {
47274
+ created_at?: string;
47275
+ event_id?: string;
47276
+ event_type?: string;
47277
+ order_ref?: string | null;
47278
+ processed_at?: string;
47279
+ result?: import("../integrations/supabase/types").Json;
47280
+ updated_at?: string;
47281
+ };
47282
+ Relationships: [];
47283
+ };
45542
47284
  voorraad_media_upload_failures: {
45543
47285
  Row: {
45544
47286
  action: string;
@@ -47699,6 +49441,15 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
47699
49441
  Args: never;
47700
49442
  Returns: boolean;
47701
49443
  };
49444
+ cancel_open_print_jobs: {
49445
+ Args: {
49446
+ _cutoff: string;
49447
+ };
49448
+ Returns: {
49449
+ extern_job_id: string;
49450
+ id: string;
49451
+ }[];
49452
+ };
47702
49453
  check_offer_product_available_stock: {
47703
49454
  Args: {
47704
49455
  p_campaign_product_id: string;
@@ -49237,6 +50988,12 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49237
50988
  };
49238
50989
  Returns: string;
49239
50990
  };
50991
+ logistics_cart_checkin_at: {
50992
+ Args: {
50993
+ p_cart_id: string;
50994
+ };
50995
+ Returns: string;
50996
+ };
49240
50997
  logistics_cart_handled: {
49241
50998
  Args: {
49242
50999
  p_cart_index: number;
@@ -49270,10 +51027,22 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49270
51027
  task_status: string;
49271
51028
  }[];
49272
51029
  };
51030
+ logistics_cart_is_full: {
51031
+ Args: {
51032
+ p_cart_id: string;
51033
+ };
51034
+ Returns: boolean;
51035
+ };
49273
51036
  logistics_cart_layout_method: {
49274
51037
  Args: never;
49275
51038
  Returns: import("../integrations/supabase/types").Json;
49276
51039
  };
51040
+ logistics_cart_order_refs: {
51041
+ Args: {
51042
+ p_cart_id: string;
51043
+ };
51044
+ Returns: string[];
51045
+ };
49277
51046
  logistics_cart_plan_overview: {
49278
51047
  Args: {
49279
51048
  p_days?: number;
@@ -49293,6 +51062,24 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49293
51062
  };
49294
51063
  Returns: import("../integrations/supabase/types").Json;
49295
51064
  };
51065
+ logistics_cart_plan_status_core: {
51066
+ Args: {
51067
+ p_ref: string;
51068
+ };
51069
+ Returns: import("../integrations/supabase/types").Json;
51070
+ };
51071
+ logistics_cart_release_reason: {
51072
+ Args: {
51073
+ p_cart_id: string;
51074
+ };
51075
+ Returns: string;
51076
+ };
51077
+ logistics_cart_released: {
51078
+ Args: {
51079
+ p_cart_id: string;
51080
+ };
51081
+ Returns: boolean;
51082
+ };
49296
51083
  logistics_cart_seq: {
49297
51084
  Args: {
49298
51085
  p_order_uuid?: string;
@@ -49343,6 +51130,10 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49343
51130
  unit_ref: string;
49344
51131
  }[];
49345
51132
  };
51133
+ logistics_carts_per_print: {
51134
+ Args: never;
51135
+ Returns: number;
51136
+ };
49346
51137
  logistics_check_order_allowed: {
49347
51138
  Args: {
49348
51139
  p_lines: import("../integrations/supabase/types").Json;
@@ -49446,6 +51237,10 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49446
51237
  isSetofReturn: false;
49447
51238
  };
49448
51239
  };
51240
+ logistics_cleanup_orphan_print_jobs: {
51241
+ Args: never;
51242
+ Returns: import("../integrations/supabase/types").Json;
51243
+ };
49449
51244
  logistics_complete_task: {
49450
51245
  Args: {
49451
51246
  p_result?: import("../integrations/supabase/types").Json;
@@ -49508,6 +51303,12 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49508
51303
  station_carts: number;
49509
51304
  }[];
49510
51305
  };
51306
+ logistics_control_complete_cart: {
51307
+ Args: {
51308
+ p_cart_id: string;
51309
+ };
51310
+ Returns: number;
51311
+ };
49511
51312
  logistics_control_scan_approve: {
49512
51313
  Args: {
49513
51314
  p_allow_reprint?: boolean;
@@ -49587,6 +51388,15 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49587
51388
  Args: never;
49588
51389
  Returns: import("../integrations/supabase/types").Json;
49589
51390
  };
51391
+ logistics_day_windows: {
51392
+ Args: {
51393
+ p_day: string;
51394
+ };
51395
+ Returns: {
51396
+ win_end: string;
51397
+ win_start: string;
51398
+ }[];
51399
+ };
49590
51400
  logistics_delay_customer_email: {
49591
51401
  Args: {
49592
51402
  p_customer: string;
@@ -49654,6 +51464,17 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49654
51464
  };
49655
51465
  Returns: import("../integrations/supabase/types").Json;
49656
51466
  };
51467
+ logistics_enqueue_shipping_note_with_slip: {
51468
+ Args: {
51469
+ _cart_id: string;
51470
+ _is_herprint: boolean;
51471
+ _printer_id: string;
51472
+ _queue_item_id: string;
51473
+ _session_id: string;
51474
+ _slip_job_id: string;
51475
+ };
51476
+ Returns: string;
51477
+ };
49657
51478
  logistics_enqueue_sticker_with_slip: {
49658
51479
  Args: {
49659
51480
  _cart_id: string;
@@ -49671,6 +51492,20 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49671
51492
  };
49672
51493
  Returns: string;
49673
51494
  };
51495
+ logistics_ensure_pick_data: {
51496
+ Args: {
51497
+ p_event_id?: string;
51498
+ p_missing?: import("../integrations/supabase/types").Json;
51499
+ p_ref: string;
51500
+ };
51501
+ Returns: import("../integrations/supabase/types").Json;
51502
+ };
51503
+ logistics_ensure_shipping_notes: {
51504
+ Args: {
51505
+ p_limit?: number;
51506
+ };
51507
+ Returns: import("../integrations/supabase/types").Json;
51508
+ };
49674
51509
  logistics_fail_task: {
49675
51510
  Args: {
49676
51511
  p_error: string;
@@ -49716,6 +51551,10 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49716
51551
  isSetofReturn: false;
49717
51552
  };
49718
51553
  };
51554
+ logistics_fix_wrong_shipping_notes: {
51555
+ Args: never;
51556
+ Returns: import("../integrations/supabase/types").Json;
51557
+ };
49719
51558
  logistics_floriday_cart_plan: {
49720
51559
  Args: {
49721
51560
  p_order_id: string;
@@ -49743,6 +51582,10 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49743
51582
  revision: number;
49744
51583
  }[];
49745
51584
  };
51585
+ logistics_floriday_delivery_note_create_enabled: {
51586
+ Args: never;
51587
+ Returns: boolean;
51588
+ };
49746
51589
  logistics_floriday_finish_push: {
49747
51590
  Args: {
49748
51591
  _error?: string;
@@ -49792,6 +51635,32 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49792
51635
  };
49793
51636
  Returns: string;
49794
51637
  };
51638
+ logistics_floriday_gate_status: {
51639
+ Args: never;
51640
+ Returns: import("../integrations/supabase/types").Json;
51641
+ };
51642
+ logistics_floriday_log_refusal: {
51643
+ Args: {
51644
+ _action?: string;
51645
+ _module?: string;
51646
+ _order_ref: string;
51647
+ _reason: string;
51648
+ _shell?: string;
51649
+ };
51650
+ Returns: undefined;
51651
+ };
51652
+ logistics_floriday_log_send: {
51653
+ Args: {
51654
+ _action: string;
51655
+ _detail?: string;
51656
+ _http_status?: number;
51657
+ _module?: string;
51658
+ _ok: boolean;
51659
+ _order_ref: string;
51660
+ _shell?: string;
51661
+ };
51662
+ Returns: undefined;
51663
+ };
49795
51664
  logistics_floriday_order_approved: {
49796
51665
  Args: {
49797
51666
  _order_ref: string;
@@ -49816,6 +51685,16 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49816
51685
  Args: never;
49817
51686
  Returns: boolean;
49818
51687
  };
51688
+ logistics_floriday_stock_updates_enabled: {
51689
+ Args: never;
51690
+ Returns: boolean;
51691
+ };
51692
+ logistics_floriday_write_allowed: {
51693
+ Args: {
51694
+ _action: string;
51695
+ };
51696
+ Returns: boolean;
51697
+ };
49819
51698
  logistics_fulfill_barcode_requests: {
49820
51699
  Args: {
49821
51700
  p_limit?: number;
@@ -49858,6 +51737,12 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49858
51737
  };
49859
51738
  Returns: number;
49860
51739
  };
51740
+ logistics_merge_partial_carts: {
51741
+ Args: {
51742
+ p_limit?: number;
51743
+ };
51744
+ Returns: import("../integrations/supabase/types").Json;
51745
+ };
49861
51746
  logistics_next_workday_date: {
49862
51747
  Args: {
49863
51748
  p_date: string;
@@ -49884,6 +51769,10 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49884
51769
  };
49885
51770
  Returns: string;
49886
51771
  };
51772
+ logistics_opening_timezone: {
51773
+ Args: never;
51774
+ Returns: string;
51775
+ };
49887
51776
  logistics_order_cart_count: {
49888
51777
  Args: {
49889
51778
  p_order_ref: string;
@@ -49940,6 +51829,12 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49940
51829
  };
49941
51830
  Returns: string;
49942
51831
  };
51832
+ logistics_payload_is_floriday: {
51833
+ Args: {
51834
+ _payload: import("../integrations/supabase/types").Json;
51835
+ };
51836
+ Returns: boolean;
51837
+ };
49943
51838
  logistics_pick_agenda: {
49944
51839
  Args: {
49945
51840
  p_from?: string;
@@ -49968,6 +51863,10 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49968
51863
  Args: never;
49969
51864
  Returns: import("../integrations/supabase/types").Json;
49970
51865
  };
51866
+ logistics_pick_partial_mode: {
51867
+ Args: never;
51868
+ Returns: string;
51869
+ };
49971
51870
  logistics_pick_start_estimate: {
49972
51871
  Args: {
49973
51872
  p_order: import("../integrations/supabase/types").Json;
@@ -50058,6 +51957,20 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
50058
51957
  Args: never;
50059
51958
  Returns: undefined;
50060
51959
  };
51960
+ logistics_plan_progress: {
51961
+ Args: {
51962
+ p_refs: string[];
51963
+ };
51964
+ Returns: {
51965
+ cart_plan_ready: boolean;
51966
+ cart_plan_reason: string;
51967
+ cart_plan_released: boolean;
51968
+ plan_progress: number;
51969
+ plan_state: string;
51970
+ plan_state_since: string;
51971
+ unit_ref: string;
51972
+ }[];
51973
+ };
50061
51974
  logistics_plan_prune: {
50062
51975
  Args: never;
50063
51976
  Returns: number;
@@ -50079,6 +51992,18 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
50079
51992
  };
50080
51993
  Returns: number;
50081
51994
  };
51995
+ logistics_plan_state_for: {
51996
+ Args: {
51997
+ p_ref: string;
51998
+ };
51999
+ Returns: import("../integrations/supabase/types").Json;
52000
+ };
52001
+ logistics_prepare_pick_documents: {
52002
+ Args: {
52003
+ p_limit?: number;
52004
+ };
52005
+ Returns: import("../integrations/supabase/types").Json;
52006
+ };
50082
52007
  logistics_prune_buffer_member_queue: {
50083
52008
  Args: never;
50084
52009
  Returns: number;
@@ -50119,18 +52044,36 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
50119
52044
  Args: never;
50120
52045
  Returns: import("../integrations/supabase/types").Json;
50121
52046
  };
52047
+ logistics_refresh_pick_queue_status: {
52048
+ Args: {
52049
+ p_ref: string;
52050
+ };
52051
+ Returns: number;
52052
+ };
50122
52053
  logistics_refresh_pickup_moments: {
50123
52054
  Args: {
50124
52055
  p_weeks?: number;
50125
52056
  };
50126
52057
  Returns: import("../integrations/supabase/types").Json;
50127
52058
  };
52059
+ logistics_refresh_plan_state: {
52060
+ Args: {
52061
+ p_limit?: number;
52062
+ };
52063
+ Returns: import("../integrations/supabase/types").Json;
52064
+ };
50128
52065
  logistics_replan_all: {
50129
52066
  Args: {
50130
52067
  p_reason?: string;
50131
52068
  };
50132
52069
  Returns: import("../integrations/supabase/types").Json;
50133
52070
  };
52071
+ logistics_replan_all_force: {
52072
+ Args: {
52073
+ p_reason?: string;
52074
+ };
52075
+ Returns: import("../integrations/supabase/types").Json;
52076
+ };
50134
52077
  logistics_report_delay: {
50135
52078
  Args: {
50136
52079
  p_expected_date?: string;
@@ -50275,6 +52218,10 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
50275
52218
  };
50276
52219
  Returns: string;
50277
52220
  };
52221
+ logistics_shipping_note_follows_slip: {
52222
+ Args: never;
52223
+ Returns: boolean;
52224
+ };
50278
52225
  logistics_shipping_note_from_barcode: {
50279
52226
  Args: {
50280
52227
  p_allow_reprint?: boolean;
@@ -50283,10 +52230,86 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
50283
52230
  };
50284
52231
  Returns: import("../integrations/supabase/types").Json;
50285
52232
  };
52233
+ logistics_shipping_note_job_for_slip: {
52234
+ Args: {
52235
+ _slip_job_id: string;
52236
+ };
52237
+ Returns: string;
52238
+ };
52239
+ logistics_shipping_notes_wake_all: {
52240
+ Args: never;
52241
+ Returns: import("../integrations/supabase/types").Json;
52242
+ };
52243
+ logistics_slip_is_floriday: {
52244
+ Args: {
52245
+ _slip_job_id: string;
52246
+ };
52247
+ Returns: boolean;
52248
+ };
52249
+ logistics_slip_note_claim: {
52250
+ Args: {
52251
+ _lease_seconds?: number;
52252
+ _limit?: number;
52253
+ };
52254
+ Returns: {
52255
+ attempts: number;
52256
+ batch_key: string | null;
52257
+ cart_id: string | null;
52258
+ created_at: string;
52259
+ error: string | null;
52260
+ error_code: string | null;
52261
+ fulfillment_order_id: string | null;
52262
+ id: string;
52263
+ locked_until: string | null;
52264
+ next_attempt_at: string | null;
52265
+ order_id: string | null;
52266
+ order_number: string | null;
52267
+ print_job_id: string | null;
52268
+ printer_id: string | null;
52269
+ retry_class: string | null;
52270
+ slip_job_id: string;
52271
+ status: string;
52272
+ updated_at: string;
52273
+ }[];
52274
+ SetofOptions: {
52275
+ from: "*";
52276
+ to: "logistics_slip_shipping_note";
52277
+ isOneToOne: false;
52278
+ isSetofReturn: true;
52279
+ };
52280
+ };
52281
+ logistics_slip_note_finish: {
52282
+ Args: {
52283
+ _error?: string;
52284
+ _error_code?: string;
52285
+ _fulfillment_order_id?: string;
52286
+ _id: string;
52287
+ _ok: boolean;
52288
+ _print_job_id?: string;
52289
+ _status?: string;
52290
+ };
52291
+ Returns: undefined;
52292
+ };
52293
+ logistics_slip_note_keep_waiting: {
52294
+ Args: {
52295
+ _class?: string;
52296
+ _id: string;
52297
+ _reason: string;
52298
+ };
52299
+ Returns: undefined;
52300
+ };
50286
52301
  logistics_sticker_follows_slip: {
50287
52302
  Args: never;
50288
52303
  Returns: boolean;
50289
52304
  };
52305
+ logistics_subtract_working_minutes: {
52306
+ Args: {
52307
+ p_deadline: string;
52308
+ p_max_workdays?: number;
52309
+ p_minutes: number;
52310
+ };
52311
+ Returns: import("../integrations/supabase/types").Json;
52312
+ };
50290
52313
  logistics_supersede_stale_tasks: {
50291
52314
  Args: {
50292
52315
  p_keep: string[];
@@ -50323,6 +52346,46 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
50323
52346
  Args: never;
50324
52347
  Returns: string;
50325
52348
  };
52349
+ logistics_timezone_options: {
52350
+ Args: never;
52351
+ Returns: {
52352
+ name: string;
52353
+ }[];
52354
+ };
52355
+ logistics_trace: {
52356
+ Args: {
52357
+ p: import("../integrations/supabase/types").Json;
52358
+ };
52359
+ Returns: string;
52360
+ };
52361
+ logistics_trace_batch: {
52362
+ Args: {
52363
+ p: import("../integrations/supabase/types").Json;
52364
+ };
52365
+ Returns: number;
52366
+ };
52367
+ logistics_trace_orders: {
52368
+ Args: {
52369
+ p_limit?: number;
52370
+ p_search?: string;
52371
+ p_since?: string;
52372
+ p_status?: string;
52373
+ };
52374
+ Returns: import("../integrations/supabase/types").Json;
52375
+ };
52376
+ logistics_trace_redact: {
52377
+ Args: {
52378
+ p: import("../integrations/supabase/types").Json;
52379
+ };
52380
+ Returns: import("../integrations/supabase/types").Json;
52381
+ };
52382
+ logistics_trace_timeline: {
52383
+ Args: {
52384
+ p_limit?: number;
52385
+ p_order_ref: string;
52386
+ };
52387
+ Returns: import("../integrations/supabase/types").Json;
52388
+ };
50326
52389
  logistics_upsert_task: {
50327
52390
  Args: {
50328
52391
  p_buffer_ref: string;
@@ -50342,6 +52405,16 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
50342
52405
  };
50343
52406
  Returns: string;
50344
52407
  };
52408
+ logistics_valid_timezone: {
52409
+ Args: {
52410
+ _tz: string;
52411
+ };
52412
+ Returns: boolean;
52413
+ };
52414
+ logistics_working_hours_status: {
52415
+ Args: never;
52416
+ Returns: import("../integrations/supabase/types").Json;
52417
+ };
50345
52418
  logistics_write_buffer_layer_positions: {
50346
52419
  Args: {
50347
52420
  p_buffer_id: string;
@@ -51354,6 +53427,10 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
51354
53427
  };
51355
53428
  Returns: undefined;
51356
53429
  };
53430
+ prune_floriday_api_log: {
53431
+ Args: never;
53432
+ Returns: number;
53433
+ };
51357
53434
  quote_create_from_source: {
51358
53435
  Args: {
51359
53436
  _payload?: import("../integrations/supabase/types").Json;
@@ -51787,6 +53864,13 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
51787
53864
  };
51788
53865
  Returns: number;
51789
53866
  };
53867
+ schedule_floriday_catalog_prices_sync: {
53868
+ Args: {
53869
+ p_apikey: string;
53870
+ p_url: string;
53871
+ };
53872
+ Returns: number;
53873
+ };
51790
53874
  schedule_floriday_clock_presales_sync: {
51791
53875
  Args: {
51792
53876
  p_apikey: string;
@@ -52087,6 +54171,10 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
52087
54171
  };
52088
54172
  Returns: undefined;
52089
54173
  };
54174
+ sync_floriday_prices_into_price_groups: {
54175
+ Args: never;
54176
+ Returns: number;
54177
+ };
52090
54178
  sync_layer_stock: {
52091
54179
  Args: {
52092
54180
  p_product_id: string;
@@ -52219,6 +54307,10 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
52219
54307
  Args: never;
52220
54308
  Returns: string;
52221
54309
  };
54310
+ voorraad_cleanup_old_rows: {
54311
+ Args: never;
54312
+ Returns: import("../integrations/supabase/types").Json;
54313
+ };
52222
54314
  wake_print_queue: {
52223
54315
  Args: {
52224
54316
  _min_interval_ms?: number;