@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
@@ -2228,6 +2228,45 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
2228
2228
  };
2229
2229
  Relationships: [];
2230
2230
  };
2231
+ customer_product_stickers: {
2232
+ Row: {
2233
+ created_at: string;
2234
+ customer_key: string;
2235
+ file_name: string;
2236
+ file_path: string;
2237
+ file_size: number | null;
2238
+ id: string;
2239
+ mime_type: string | null;
2240
+ trade_item_key: string;
2241
+ updated_at: string;
2242
+ uploaded_by: string | null;
2243
+ };
2244
+ Insert: {
2245
+ created_at?: string;
2246
+ customer_key: string;
2247
+ file_name: string;
2248
+ file_path: string;
2249
+ file_size?: number | null;
2250
+ id?: string;
2251
+ mime_type?: string | null;
2252
+ trade_item_key: string;
2253
+ updated_at?: string;
2254
+ uploaded_by?: string | null;
2255
+ };
2256
+ Update: {
2257
+ created_at?: string;
2258
+ customer_key?: string;
2259
+ file_name?: string;
2260
+ file_path?: string;
2261
+ file_size?: number | null;
2262
+ id?: string;
2263
+ mime_type?: string | null;
2264
+ trade_item_key?: string;
2265
+ updated_at?: string;
2266
+ uploaded_by?: string | null;
2267
+ };
2268
+ Relationships: [];
2269
+ };
2231
2270
  customer_selected_assortment: {
2232
2271
  Row: {
2233
2272
  article_number: string | null;
@@ -2276,6 +2315,30 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
2276
2315
  referencedColumns: ["id"];
2277
2316
  }];
2278
2317
  };
2318
+ customer_sticker_settings: {
2319
+ Row: {
2320
+ created_at: string;
2321
+ customer_key: string;
2322
+ height_mm: number;
2323
+ updated_at: string;
2324
+ width_mm: number;
2325
+ };
2326
+ Insert: {
2327
+ created_at?: string;
2328
+ customer_key: string;
2329
+ height_mm?: number;
2330
+ updated_at?: string;
2331
+ width_mm?: number;
2332
+ };
2333
+ Update: {
2334
+ created_at?: string;
2335
+ customer_key?: string;
2336
+ height_mm?: number;
2337
+ updated_at?: string;
2338
+ width_mm?: number;
2339
+ };
2340
+ Relationships: [];
2341
+ };
2279
2342
  customer_trade_settings: {
2280
2343
  Row: {
2281
2344
  category: string;
@@ -5606,6 +5669,102 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
5606
5669
  referencedColumns: ["id"];
5607
5670
  }];
5608
5671
  };
5672
+ floriday_api_log: {
5673
+ Row: {
5674
+ action: string | null;
5675
+ caller: string | null;
5676
+ connection_id: string | null;
5677
+ created_at: string;
5678
+ cursor_from: number | null;
5679
+ direction: string;
5680
+ duration_ms: number | null;
5681
+ environment: string | null;
5682
+ error: string | null;
5683
+ floriday_id: string | null;
5684
+ floriday_reference: string | null;
5685
+ http_status: number;
5686
+ id: string;
5687
+ item_count: number | null;
5688
+ kind: string | null;
5689
+ local_id: string | null;
5690
+ local_reference: string | null;
5691
+ method: string;
5692
+ module: string | null;
5693
+ ok: boolean;
5694
+ path: string;
5695
+ request: import("../integrations/supabase/types").Json | null;
5696
+ resource_type: string | null;
5697
+ response: import("../integrations/supabase/types").Json | null;
5698
+ write_log_id: string | null;
5699
+ };
5700
+ Insert: {
5701
+ action?: string | null;
5702
+ caller?: string | null;
5703
+ connection_id?: string | null;
5704
+ created_at?: string;
5705
+ cursor_from?: number | null;
5706
+ direction: string;
5707
+ duration_ms?: number | null;
5708
+ environment?: string | null;
5709
+ error?: string | null;
5710
+ floriday_id?: string | null;
5711
+ floriday_reference?: string | null;
5712
+ http_status?: number;
5713
+ id?: string;
5714
+ item_count?: number | null;
5715
+ kind?: string | null;
5716
+ local_id?: string | null;
5717
+ local_reference?: string | null;
5718
+ method: string;
5719
+ module?: string | null;
5720
+ ok?: boolean;
5721
+ path: string;
5722
+ request?: import("../integrations/supabase/types").Json | null;
5723
+ resource_type?: string | null;
5724
+ response?: import("../integrations/supabase/types").Json | null;
5725
+ write_log_id?: string | null;
5726
+ };
5727
+ Update: {
5728
+ action?: string | null;
5729
+ caller?: string | null;
5730
+ connection_id?: string | null;
5731
+ created_at?: string;
5732
+ cursor_from?: number | null;
5733
+ direction?: string;
5734
+ duration_ms?: number | null;
5735
+ environment?: string | null;
5736
+ error?: string | null;
5737
+ floriday_id?: string | null;
5738
+ floriday_reference?: string | null;
5739
+ http_status?: number;
5740
+ id?: string;
5741
+ item_count?: number | null;
5742
+ kind?: string | null;
5743
+ local_id?: string | null;
5744
+ local_reference?: string | null;
5745
+ method?: string;
5746
+ module?: string | null;
5747
+ ok?: boolean;
5748
+ path?: string;
5749
+ request?: import("../integrations/supabase/types").Json | null;
5750
+ resource_type?: string | null;
5751
+ response?: import("../integrations/supabase/types").Json | null;
5752
+ write_log_id?: string | null;
5753
+ };
5754
+ Relationships: [{
5755
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5756
+ columns: ["connection_id"];
5757
+ isOneToOne: false;
5758
+ referencedRelation: "floriday_connections";
5759
+ referencedColumns: ["id"];
5760
+ }, {
5761
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5762
+ columns: ["write_log_id"];
5763
+ isOneToOne: false;
5764
+ referencedRelation: "floriday_write_log";
5765
+ referencedColumns: ["id"];
5766
+ }];
5767
+ };
5609
5768
  floriday_auction_letters_cache: {
5610
5769
  Row: {
5611
5770
  auction_letter_code: string;
@@ -5813,6 +5972,84 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
5813
5972
  referencedColumns: ["id"];
5814
5973
  }];
5815
5974
  };
5975
+ floriday_catalog_prices_cache: {
5976
+ Row: {
5977
+ connection_id: string;
5978
+ created_at: string;
5979
+ currency: string;
5980
+ id: string;
5981
+ is_deleted: boolean;
5982
+ price: number | null;
5983
+ price_group_id: string | null;
5984
+ price_group_name: string | null;
5985
+ price_type: string;
5986
+ raw: import("../integrations/supabase/types").Json | null;
5987
+ sales_unit: string | null;
5988
+ sequence_number: number;
5989
+ supplier_article_code: string | null;
5990
+ supply_line_id: string;
5991
+ synced_at: string;
5992
+ trade_item_id: string | null;
5993
+ updated_at: string;
5994
+ valid_from: string | null;
5995
+ valid_to: string | null;
5996
+ week: number | null;
5997
+ year: number | null;
5998
+ };
5999
+ Insert: {
6000
+ connection_id: string;
6001
+ created_at?: string;
6002
+ currency?: string;
6003
+ id?: string;
6004
+ is_deleted?: boolean;
6005
+ price?: number | null;
6006
+ price_group_id?: string | null;
6007
+ price_group_name?: string | null;
6008
+ price_type?: string;
6009
+ raw?: import("../integrations/supabase/types").Json | null;
6010
+ sales_unit?: string | null;
6011
+ sequence_number?: number;
6012
+ supplier_article_code?: string | null;
6013
+ supply_line_id: string;
6014
+ synced_at?: string;
6015
+ trade_item_id?: string | null;
6016
+ updated_at?: string;
6017
+ valid_from?: string | null;
6018
+ valid_to?: string | null;
6019
+ week?: number | null;
6020
+ year?: number | null;
6021
+ };
6022
+ Update: {
6023
+ connection_id?: string;
6024
+ created_at?: string;
6025
+ currency?: string;
6026
+ id?: string;
6027
+ is_deleted?: boolean;
6028
+ price?: number | null;
6029
+ price_group_id?: string | null;
6030
+ price_group_name?: string | null;
6031
+ price_type?: string;
6032
+ raw?: import("../integrations/supabase/types").Json | null;
6033
+ sales_unit?: string | null;
6034
+ sequence_number?: number;
6035
+ supplier_article_code?: string | null;
6036
+ supply_line_id?: string;
6037
+ synced_at?: string;
6038
+ trade_item_id?: string | null;
6039
+ updated_at?: string;
6040
+ valid_from?: string | null;
6041
+ valid_to?: string | null;
6042
+ week?: number | null;
6043
+ year?: number | null;
6044
+ };
6045
+ Relationships: [{
6046
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6047
+ columns: ["connection_id"];
6048
+ isOneToOne: false;
6049
+ referencedRelation: "floriday_connections";
6050
+ referencedColumns: ["id"];
6051
+ }];
6052
+ };
5816
6053
  floriday_clock_presales_cache: {
5817
6054
  Row: {
5818
6055
  buyer_organization_id: string | null;
@@ -6728,6 +6965,69 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
6728
6965
  referencedColumns: ["id"];
6729
6966
  }];
6730
6967
  };
6968
+ floriday_link_templates: {
6969
+ Row: {
6970
+ created_at: string;
6971
+ floriday_url_template: string | null;
6972
+ is_active: boolean;
6973
+ label: string;
6974
+ local_url_template: string | null;
6975
+ resource_type: string;
6976
+ updated_at: string;
6977
+ };
6978
+ Insert: {
6979
+ created_at?: string;
6980
+ floriday_url_template?: string | null;
6981
+ is_active?: boolean;
6982
+ label: string;
6983
+ local_url_template?: string | null;
6984
+ resource_type: string;
6985
+ updated_at?: string;
6986
+ };
6987
+ Update: {
6988
+ created_at?: string;
6989
+ floriday_url_template?: string | null;
6990
+ is_active?: boolean;
6991
+ label?: string;
6992
+ local_url_template?: string | null;
6993
+ resource_type?: string;
6994
+ updated_at?: string;
6995
+ };
6996
+ Relationships: [];
6997
+ };
6998
+ floriday_log_retention: {
6999
+ Row: {
7000
+ created_at: string;
7001
+ direction: string | null;
7002
+ id: string;
7003
+ keep_failed_days: number | null;
7004
+ keep_ok_days: number | null;
7005
+ note: string | null;
7006
+ resource_type: string | null;
7007
+ updated_at: string;
7008
+ };
7009
+ Insert: {
7010
+ created_at?: string;
7011
+ direction?: string | null;
7012
+ id?: string;
7013
+ keep_failed_days?: number | null;
7014
+ keep_ok_days?: number | null;
7015
+ note?: string | null;
7016
+ resource_type?: string | null;
7017
+ updated_at?: string;
7018
+ };
7019
+ Update: {
7020
+ created_at?: string;
7021
+ direction?: string | null;
7022
+ id?: string;
7023
+ keep_failed_days?: number | null;
7024
+ keep_ok_days?: number | null;
7025
+ note?: string | null;
7026
+ resource_type?: string | null;
7027
+ updated_at?: string;
7028
+ };
7029
+ Relationships: [];
7030
+ };
6731
7031
  floriday_logistic_labels_cache: {
6732
7032
  Row: {
6733
7033
  byte_size: number | null;
@@ -10081,22 +10381,31 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
10081
10381
  };
10082
10382
  logistics_floriday_push_refusals: {
10083
10383
  Row: {
10384
+ action: string | null;
10084
10385
  created_at: string;
10085
10386
  id: string;
10086
10387
  order_ref: string;
10087
10388
  reason: string;
10389
+ source_module: string | null;
10390
+ source_shell: string | null;
10088
10391
  };
10089
10392
  Insert: {
10393
+ action?: string | null;
10090
10394
  created_at?: string;
10091
10395
  id?: string;
10092
10396
  order_ref: string;
10093
10397
  reason: string;
10398
+ source_module?: string | null;
10399
+ source_shell?: string | null;
10094
10400
  };
10095
10401
  Update: {
10402
+ action?: string | null;
10096
10403
  created_at?: string;
10097
10404
  id?: string;
10098
10405
  order_ref?: string;
10099
10406
  reason?: string;
10407
+ source_module?: string | null;
10408
+ source_shell?: string | null;
10100
10409
  };
10101
10410
  Relationships: [];
10102
10411
  };
@@ -10175,6 +10484,42 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
10175
10484
  };
10176
10485
  Relationships: [];
10177
10486
  };
10487
+ logistics_floriday_status_sends: {
10488
+ Row: {
10489
+ action: string;
10490
+ created_at: string;
10491
+ detail: string | null;
10492
+ http_status: number | null;
10493
+ id: string;
10494
+ ok: boolean;
10495
+ order_ref: string;
10496
+ source_module: string | null;
10497
+ source_shell: string | null;
10498
+ };
10499
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
10522
+ };
10178
10523
  logistics_formulas: {
10179
10524
  Row: {
10180
10525
  created_at: string;
@@ -10247,6 +10592,108 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
10247
10592
  };
10248
10593
  Relationships: [];
10249
10594
  };
10595
+ logistics_opening_exceptions: {
10596
+ Row: {
10597
+ closes: string | null;
10598
+ created_at: string;
10599
+ day: string;
10600
+ id: string;
10601
+ is_closed: boolean;
10602
+ note: string | null;
10603
+ opens: string | null;
10604
+ };
10605
+ Insert: {
10606
+ closes?: string | null;
10607
+ created_at?: string;
10608
+ day: string;
10609
+ id?: string;
10610
+ is_closed?: boolean;
10611
+ note?: string | null;
10612
+ opens?: string | null;
10613
+ };
10614
+ Update: {
10615
+ closes?: string | null;
10616
+ created_at?: string;
10617
+ day?: string;
10618
+ id?: string;
10619
+ is_closed?: boolean;
10620
+ note?: string | null;
10621
+ opens?: string | null;
10622
+ };
10623
+ Relationships: [];
10624
+ };
10625
+ logistics_opening_hours: {
10626
+ Row: {
10627
+ closes: string;
10628
+ created_at: string;
10629
+ id: string;
10630
+ is_active: boolean;
10631
+ note: string | null;
10632
+ opens: string;
10633
+ weekday: number;
10634
+ };
10635
+ Insert: {
10636
+ closes: string;
10637
+ created_at?: string;
10638
+ id?: string;
10639
+ is_active?: boolean;
10640
+ note?: string | null;
10641
+ opens: string;
10642
+ weekday: number;
10643
+ };
10644
+ Update: {
10645
+ closes?: string;
10646
+ created_at?: string;
10647
+ id?: string;
10648
+ is_active?: boolean;
10649
+ note?: string | null;
10650
+ opens?: string;
10651
+ weekday?: number;
10652
+ };
10653
+ Relationships: [];
10654
+ };
10655
+ logistics_pick_data_requests: {
10656
+ Row: {
10657
+ actions: import("../integrations/supabase/types").Json;
10658
+ created_at: string;
10659
+ event_id: string | null;
10660
+ finished_at: string | null;
10661
+ id: string;
10662
+ missing: import("../integrations/supabase/types").Json;
10663
+ order_ref: string;
10664
+ reason: string | null;
10665
+ result: import("../integrations/supabase/types").Json | null;
10666
+ status: string;
10667
+ unit_ref: string | null;
10668
+ };
10669
+ Insert: {
10670
+ actions?: import("../integrations/supabase/types").Json;
10671
+ created_at?: string;
10672
+ event_id?: string | null;
10673
+ finished_at?: string | null;
10674
+ id?: string;
10675
+ missing?: import("../integrations/supabase/types").Json;
10676
+ order_ref: string;
10677
+ reason?: string | null;
10678
+ result?: import("../integrations/supabase/types").Json | null;
10679
+ status?: string;
10680
+ unit_ref?: string | null;
10681
+ };
10682
+ Update: {
10683
+ actions?: import("../integrations/supabase/types").Json;
10684
+ created_at?: string;
10685
+ event_id?: string | null;
10686
+ finished_at?: string | null;
10687
+ id?: string;
10688
+ missing?: import("../integrations/supabase/types").Json;
10689
+ order_ref?: string;
10690
+ reason?: string | null;
10691
+ result?: import("../integrations/supabase/types").Json | null;
10692
+ status?: string;
10693
+ unit_ref?: string | null;
10694
+ };
10695
+ Relationships: [];
10696
+ };
10250
10697
  logistics_pickup_moments: {
10251
10698
  Row: {
10252
10699
  carrier_ref: string | null;
@@ -10706,6 +11153,69 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
10706
11153
  };
10707
11154
  Relationships: [];
10708
11155
  };
11156
+ logistics_slip_shipping_note: {
11157
+ Row: {
11158
+ attempts: number;
11159
+ batch_key: string | null;
11160
+ cart_id: string | null;
11161
+ created_at: string;
11162
+ error: string | null;
11163
+ error_code: string | null;
11164
+ fulfillment_order_id: string | null;
11165
+ id: string;
11166
+ locked_until: string | null;
11167
+ next_attempt_at: string | null;
11168
+ order_id: string | null;
11169
+ order_number: string | null;
11170
+ print_job_id: string | null;
11171
+ printer_id: string | null;
11172
+ retry_class: string | null;
11173
+ slip_job_id: string;
11174
+ status: string;
11175
+ updated_at: string;
11176
+ };
11177
+ Insert: {
11178
+ attempts?: number;
11179
+ batch_key?: string | null;
11180
+ cart_id?: string | null;
11181
+ created_at?: string;
11182
+ error?: string | null;
11183
+ error_code?: string | null;
11184
+ fulfillment_order_id?: string | null;
11185
+ id?: string;
11186
+ locked_until?: string | null;
11187
+ next_attempt_at?: string | null;
11188
+ order_id?: string | null;
11189
+ order_number?: string | null;
11190
+ print_job_id?: string | null;
11191
+ printer_id?: string | null;
11192
+ retry_class?: string | null;
11193
+ slip_job_id: string;
11194
+ status?: string;
11195
+ updated_at?: string;
11196
+ };
11197
+ Update: {
11198
+ attempts?: number;
11199
+ batch_key?: string | null;
11200
+ cart_id?: string | null;
11201
+ created_at?: string;
11202
+ error?: string | null;
11203
+ error_code?: string | null;
11204
+ fulfillment_order_id?: string | null;
11205
+ id?: string;
11206
+ locked_until?: string | null;
11207
+ next_attempt_at?: string | null;
11208
+ order_id?: string | null;
11209
+ order_number?: string | null;
11210
+ print_job_id?: string | null;
11211
+ printer_id?: string | null;
11212
+ retry_class?: string | null;
11213
+ slip_job_id?: string;
11214
+ status?: string;
11215
+ updated_at?: string;
11216
+ };
11217
+ Relationships: [];
11218
+ };
10709
11219
  logistics_staff_planning: {
10710
11220
  Row: {
10711
11221
  created_at: string;
@@ -11039,6 +11549,129 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
11039
11549
  };
11040
11550
  Relationships: [];
11041
11551
  };
11552
+ logistics_time_settings: {
11553
+ Row: {
11554
+ id: boolean;
11555
+ timezone: string;
11556
+ updated_at: string;
11557
+ };
11558
+ Insert: {
11559
+ id?: boolean;
11560
+ timezone: string;
11561
+ updated_at?: string;
11562
+ };
11563
+ Update: {
11564
+ id?: boolean;
11565
+ timezone?: string;
11566
+ updated_at?: string;
11567
+ };
11568
+ Relationships: [];
11569
+ };
11570
+ logistics_trace_events: {
11571
+ Row: {
11572
+ actor: string | null;
11573
+ attempts: number;
11574
+ cart_ref: string | null;
11575
+ created_at: string;
11576
+ db_action: string | null;
11577
+ db_new: import("../integrations/supabase/types").Json | null;
11578
+ db_old: import("../integrations/supabase/types").Json | null;
11579
+ db_record: string | null;
11580
+ db_table: string | null;
11581
+ decision: string | null;
11582
+ duration_ms: number | null;
11583
+ error: string | null;
11584
+ external_action: string | null;
11585
+ external_ref: string | null;
11586
+ external_response: import("../integrations/supabase/types").Json | null;
11587
+ external_status: string | null;
11588
+ external_system: string | null;
11589
+ id: string;
11590
+ input: import("../integrations/supabase/types").Json | null;
11591
+ next_attempt_at: string | null;
11592
+ order_ref: string | null;
11593
+ order_source: string | null;
11594
+ output: import("../integrations/supabase/types").Json | null;
11595
+ phase: string;
11596
+ reads: import("../integrations/supabase/types").Json | null;
11597
+ reason: string | null;
11598
+ rule: string | null;
11599
+ slip_ref: string | null;
11600
+ status: string;
11601
+ step: string;
11602
+ trace_id: string;
11603
+ values_used: import("../integrations/supabase/types").Json | null;
11604
+ };
11605
+ Insert: {
11606
+ actor?: string | null;
11607
+ attempts?: number;
11608
+ cart_ref?: string | null;
11609
+ created_at?: string;
11610
+ db_action?: string | null;
11611
+ db_new?: import("../integrations/supabase/types").Json | null;
11612
+ db_old?: import("../integrations/supabase/types").Json | null;
11613
+ db_record?: string | null;
11614
+ db_table?: string | null;
11615
+ decision?: string | null;
11616
+ duration_ms?: number | null;
11617
+ error?: string | null;
11618
+ external_action?: string | null;
11619
+ external_ref?: string | null;
11620
+ external_response?: import("../integrations/supabase/types").Json | null;
11621
+ external_status?: string | null;
11622
+ external_system?: string | null;
11623
+ id?: string;
11624
+ input?: import("../integrations/supabase/types").Json | null;
11625
+ next_attempt_at?: string | null;
11626
+ order_ref?: string | null;
11627
+ order_source?: string | null;
11628
+ output?: import("../integrations/supabase/types").Json | null;
11629
+ phase: string;
11630
+ reads?: import("../integrations/supabase/types").Json | null;
11631
+ reason?: string | null;
11632
+ rule?: string | null;
11633
+ slip_ref?: string | null;
11634
+ status: string;
11635
+ step: string;
11636
+ trace_id?: string;
11637
+ values_used?: import("../integrations/supabase/types").Json | null;
11638
+ };
11639
+ Update: {
11640
+ actor?: string | null;
11641
+ attempts?: number;
11642
+ cart_ref?: string | null;
11643
+ created_at?: string;
11644
+ db_action?: string | null;
11645
+ db_new?: import("../integrations/supabase/types").Json | null;
11646
+ db_old?: import("../integrations/supabase/types").Json | null;
11647
+ db_record?: string | null;
11648
+ db_table?: string | null;
11649
+ decision?: string | null;
11650
+ duration_ms?: number | null;
11651
+ error?: string | null;
11652
+ external_action?: string | null;
11653
+ external_ref?: string | null;
11654
+ external_response?: import("../integrations/supabase/types").Json | null;
11655
+ external_status?: string | null;
11656
+ external_system?: string | null;
11657
+ id?: string;
11658
+ input?: import("../integrations/supabase/types").Json | null;
11659
+ next_attempt_at?: string | null;
11660
+ order_ref?: string | null;
11661
+ order_source?: string | null;
11662
+ output?: import("../integrations/supabase/types").Json | null;
11663
+ phase?: string;
11664
+ reads?: import("../integrations/supabase/types").Json | null;
11665
+ reason?: string | null;
11666
+ rule?: string | null;
11667
+ slip_ref?: string | null;
11668
+ status?: string;
11669
+ step?: string;
11670
+ trace_id?: string;
11671
+ values_used?: import("../integrations/supabase/types").Json | null;
11672
+ };
11673
+ Relationships: [];
11674
+ };
11042
11675
  logistics_variables: {
11043
11676
  Row: {
11044
11677
  created_at: string;
@@ -13429,6 +14062,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
13429
14062
  customer_name: string;
13430
14063
  deleted_at: string | null;
13431
14064
  delivery_date: string | null;
14065
+ floriday_order_group_key: string | null;
13432
14066
  floriday_sales_order_id: string | null;
13433
14067
  id: string;
13434
14068
  invoice_due_at: string | null;
@@ -13456,6 +14090,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
13456
14090
  customer_name?: string;
13457
14091
  deleted_at?: string | null;
13458
14092
  delivery_date?: string | null;
14093
+ floriday_order_group_key?: string | null;
13459
14094
  floriday_sales_order_id?: string | null;
13460
14095
  id?: string;
13461
14096
  invoice_due_at?: string | null;
@@ -13483,6 +14118,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
13483
14118
  customer_name?: string;
13484
14119
  deleted_at?: string | null;
13485
14120
  delivery_date?: string | null;
14121
+ floriday_order_group_key?: string | null;
13486
14122
  floriday_sales_order_id?: string | null;
13487
14123
  id?: string;
13488
14124
  invoice_due_at?: string | null;
@@ -19346,6 +19982,36 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19346
19982
  referencedColumns: ["id"];
19347
19983
  }];
19348
19984
  };
19985
+ voorraad_buffer_state: {
19986
+ Row: {
19987
+ buffer_id: string;
19988
+ buffer_key: string | null;
19989
+ closed_at: string | null;
19990
+ created_at: string;
19991
+ detached_orders: import("../integrations/supabase/types").Json;
19992
+ reason: string | null;
19993
+ updated_at: string;
19994
+ };
19995
+ Insert: {
19996
+ buffer_id: string;
19997
+ buffer_key?: string | null;
19998
+ closed_at?: string | null;
19999
+ created_at?: string;
20000
+ detached_orders?: import("../integrations/supabase/types").Json;
20001
+ reason?: string | null;
20002
+ updated_at?: string;
20003
+ };
20004
+ Update: {
20005
+ buffer_id?: string;
20006
+ buffer_key?: string | null;
20007
+ closed_at?: string | null;
20008
+ created_at?: string;
20009
+ detached_orders?: import("../integrations/supabase/types").Json;
20010
+ reason?: string | null;
20011
+ updated_at?: string;
20012
+ };
20013
+ Relationships: [];
20014
+ };
19349
20015
  voorraad_custom_fields: {
19350
20016
  Row: {
19351
20017
  created_at: string;
@@ -19388,6 +20054,36 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
19388
20054
  };
19389
20055
  Relationships: [];
19390
20056
  };
20057
+ voorraad_logistics_event_log: {
20058
+ Row: {
20059
+ created_at: string;
20060
+ event_id: string;
20061
+ event_type: string;
20062
+ order_ref: string | null;
20063
+ processed_at: string;
20064
+ result: import("../integrations/supabase/types").Json;
20065
+ updated_at: string;
20066
+ };
20067
+ Insert: {
20068
+ created_at?: string;
20069
+ event_id: string;
20070
+ event_type: string;
20071
+ order_ref?: string | null;
20072
+ processed_at?: string;
20073
+ result?: import("../integrations/supabase/types").Json;
20074
+ updated_at?: string;
20075
+ };
20076
+ Update: {
20077
+ created_at?: string;
20078
+ event_id?: string;
20079
+ event_type?: string;
20080
+ order_ref?: string | null;
20081
+ processed_at?: string;
20082
+ result?: import("../integrations/supabase/types").Json;
20083
+ updated_at?: string;
20084
+ };
20085
+ Relationships: [];
20086
+ };
19391
20087
  voorraad_media_upload_failures: {
19392
20088
  Row: {
19393
20089
  action: string;
@@ -21548,6 +22244,15 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
21548
22244
  Args: never;
21549
22245
  Returns: boolean;
21550
22246
  };
22247
+ cancel_open_print_jobs: {
22248
+ Args: {
22249
+ _cutoff: string;
22250
+ };
22251
+ Returns: {
22252
+ extern_job_id: string;
22253
+ id: string;
22254
+ }[];
22255
+ };
21551
22256
  check_offer_product_available_stock: {
21552
22257
  Args: {
21553
22258
  p_campaign_product_id: string;
@@ -23086,6 +23791,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23086
23791
  };
23087
23792
  Returns: string;
23088
23793
  };
23794
+ logistics_cart_checkin_at: {
23795
+ Args: {
23796
+ p_cart_id: string;
23797
+ };
23798
+ Returns: string;
23799
+ };
23089
23800
  logistics_cart_handled: {
23090
23801
  Args: {
23091
23802
  p_cart_index: number;
@@ -23119,10 +23830,22 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23119
23830
  task_status: string;
23120
23831
  }[];
23121
23832
  };
23833
+ logistics_cart_is_full: {
23834
+ Args: {
23835
+ p_cart_id: string;
23836
+ };
23837
+ Returns: boolean;
23838
+ };
23122
23839
  logistics_cart_layout_method: {
23123
23840
  Args: never;
23124
23841
  Returns: import("../integrations/supabase/types").Json;
23125
23842
  };
23843
+ logistics_cart_order_refs: {
23844
+ Args: {
23845
+ p_cart_id: string;
23846
+ };
23847
+ Returns: string[];
23848
+ };
23126
23849
  logistics_cart_plan_overview: {
23127
23850
  Args: {
23128
23851
  p_days?: number;
@@ -23142,6 +23865,24 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23142
23865
  };
23143
23866
  Returns: import("../integrations/supabase/types").Json;
23144
23867
  };
23868
+ logistics_cart_plan_status_core: {
23869
+ Args: {
23870
+ p_ref: string;
23871
+ };
23872
+ Returns: import("../integrations/supabase/types").Json;
23873
+ };
23874
+ logistics_cart_release_reason: {
23875
+ Args: {
23876
+ p_cart_id: string;
23877
+ };
23878
+ Returns: string;
23879
+ };
23880
+ logistics_cart_released: {
23881
+ Args: {
23882
+ p_cart_id: string;
23883
+ };
23884
+ Returns: boolean;
23885
+ };
23145
23886
  logistics_cart_seq: {
23146
23887
  Args: {
23147
23888
  p_order_uuid?: string;
@@ -23192,6 +23933,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23192
23933
  unit_ref: string;
23193
23934
  }[];
23194
23935
  };
23936
+ logistics_carts_per_print: {
23937
+ Args: never;
23938
+ Returns: number;
23939
+ };
23195
23940
  logistics_check_order_allowed: {
23196
23941
  Args: {
23197
23942
  p_lines: import("../integrations/supabase/types").Json;
@@ -23295,6 +24040,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23295
24040
  isSetofReturn: false;
23296
24041
  };
23297
24042
  };
24043
+ logistics_cleanup_orphan_print_jobs: {
24044
+ Args: never;
24045
+ Returns: import("../integrations/supabase/types").Json;
24046
+ };
23298
24047
  logistics_complete_task: {
23299
24048
  Args: {
23300
24049
  p_result?: import("../integrations/supabase/types").Json;
@@ -23357,6 +24106,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23357
24106
  station_carts: number;
23358
24107
  }[];
23359
24108
  };
24109
+ logistics_control_complete_cart: {
24110
+ Args: {
24111
+ p_cart_id: string;
24112
+ };
24113
+ Returns: number;
24114
+ };
23360
24115
  logistics_control_scan_approve: {
23361
24116
  Args: {
23362
24117
  p_allow_reprint?: boolean;
@@ -23436,6 +24191,15 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23436
24191
  Args: never;
23437
24192
  Returns: import("../integrations/supabase/types").Json;
23438
24193
  };
24194
+ logistics_day_windows: {
24195
+ Args: {
24196
+ p_day: string;
24197
+ };
24198
+ Returns: {
24199
+ win_end: string;
24200
+ win_start: string;
24201
+ }[];
24202
+ };
23439
24203
  logistics_delay_customer_email: {
23440
24204
  Args: {
23441
24205
  p_customer: string;
@@ -23503,6 +24267,17 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23503
24267
  };
23504
24268
  Returns: import("../integrations/supabase/types").Json;
23505
24269
  };
24270
+ logistics_enqueue_shipping_note_with_slip: {
24271
+ Args: {
24272
+ _cart_id: string;
24273
+ _is_herprint: boolean;
24274
+ _printer_id: string;
24275
+ _queue_item_id: string;
24276
+ _session_id: string;
24277
+ _slip_job_id: string;
24278
+ };
24279
+ Returns: string;
24280
+ };
23506
24281
  logistics_enqueue_sticker_with_slip: {
23507
24282
  Args: {
23508
24283
  _cart_id: string;
@@ -23520,6 +24295,20 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23520
24295
  };
23521
24296
  Returns: string;
23522
24297
  };
24298
+ logistics_ensure_pick_data: {
24299
+ Args: {
24300
+ p_event_id?: string;
24301
+ p_missing?: import("../integrations/supabase/types").Json;
24302
+ p_ref: string;
24303
+ };
24304
+ Returns: import("../integrations/supabase/types").Json;
24305
+ };
24306
+ logistics_ensure_shipping_notes: {
24307
+ Args: {
24308
+ p_limit?: number;
24309
+ };
24310
+ Returns: import("../integrations/supabase/types").Json;
24311
+ };
23523
24312
  logistics_fail_task: {
23524
24313
  Args: {
23525
24314
  p_error: string;
@@ -23565,6 +24354,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23565
24354
  isSetofReturn: false;
23566
24355
  };
23567
24356
  };
24357
+ logistics_fix_wrong_shipping_notes: {
24358
+ Args: never;
24359
+ Returns: import("../integrations/supabase/types").Json;
24360
+ };
23568
24361
  logistics_floriday_cart_plan: {
23569
24362
  Args: {
23570
24363
  p_order_id: string;
@@ -23592,6 +24385,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23592
24385
  revision: number;
23593
24386
  }[];
23594
24387
  };
24388
+ logistics_floriday_delivery_note_create_enabled: {
24389
+ Args: never;
24390
+ Returns: boolean;
24391
+ };
23595
24392
  logistics_floriday_finish_push: {
23596
24393
  Args: {
23597
24394
  _error?: string;
@@ -23641,6 +24438,32 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23641
24438
  };
23642
24439
  Returns: string;
23643
24440
  };
24441
+ logistics_floriday_gate_status: {
24442
+ Args: never;
24443
+ Returns: import("../integrations/supabase/types").Json;
24444
+ };
24445
+ logistics_floriday_log_refusal: {
24446
+ Args: {
24447
+ _action?: string;
24448
+ _module?: string;
24449
+ _order_ref: string;
24450
+ _reason: string;
24451
+ _shell?: string;
24452
+ };
24453
+ Returns: undefined;
24454
+ };
24455
+ logistics_floriday_log_send: {
24456
+ Args: {
24457
+ _action: string;
24458
+ _detail?: string;
24459
+ _http_status?: number;
24460
+ _module?: string;
24461
+ _ok: boolean;
24462
+ _order_ref: string;
24463
+ _shell?: string;
24464
+ };
24465
+ Returns: undefined;
24466
+ };
23644
24467
  logistics_floriday_order_approved: {
23645
24468
  Args: {
23646
24469
  _order_ref: string;
@@ -23665,6 +24488,16 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23665
24488
  Args: never;
23666
24489
  Returns: boolean;
23667
24490
  };
24491
+ logistics_floriday_stock_updates_enabled: {
24492
+ Args: never;
24493
+ Returns: boolean;
24494
+ };
24495
+ logistics_floriday_write_allowed: {
24496
+ Args: {
24497
+ _action: string;
24498
+ };
24499
+ Returns: boolean;
24500
+ };
23668
24501
  logistics_fulfill_barcode_requests: {
23669
24502
  Args: {
23670
24503
  p_limit?: number;
@@ -23707,6 +24540,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23707
24540
  };
23708
24541
  Returns: number;
23709
24542
  };
24543
+ logistics_merge_partial_carts: {
24544
+ Args: {
24545
+ p_limit?: number;
24546
+ };
24547
+ Returns: import("../integrations/supabase/types").Json;
24548
+ };
23710
24549
  logistics_next_workday_date: {
23711
24550
  Args: {
23712
24551
  p_date: string;
@@ -23733,6 +24572,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23733
24572
  };
23734
24573
  Returns: string;
23735
24574
  };
24575
+ logistics_opening_timezone: {
24576
+ Args: never;
24577
+ Returns: string;
24578
+ };
23736
24579
  logistics_order_cart_count: {
23737
24580
  Args: {
23738
24581
  p_order_ref: string;
@@ -23789,6 +24632,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23789
24632
  };
23790
24633
  Returns: string;
23791
24634
  };
24635
+ logistics_payload_is_floriday: {
24636
+ Args: {
24637
+ _payload: import("../integrations/supabase/types").Json;
24638
+ };
24639
+ Returns: boolean;
24640
+ };
23792
24641
  logistics_pick_agenda: {
23793
24642
  Args: {
23794
24643
  p_from?: string;
@@ -23817,6 +24666,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23817
24666
  Args: never;
23818
24667
  Returns: import("../integrations/supabase/types").Json;
23819
24668
  };
24669
+ logistics_pick_partial_mode: {
24670
+ Args: never;
24671
+ Returns: string;
24672
+ };
23820
24673
  logistics_pick_start_estimate: {
23821
24674
  Args: {
23822
24675
  p_order: import("../integrations/supabase/types").Json;
@@ -23907,6 +24760,20 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23907
24760
  Args: never;
23908
24761
  Returns: undefined;
23909
24762
  };
24763
+ logistics_plan_progress: {
24764
+ Args: {
24765
+ p_refs: string[];
24766
+ };
24767
+ Returns: {
24768
+ cart_plan_ready: boolean;
24769
+ cart_plan_reason: string;
24770
+ cart_plan_released: boolean;
24771
+ plan_progress: number;
24772
+ plan_state: string;
24773
+ plan_state_since: string;
24774
+ unit_ref: string;
24775
+ }[];
24776
+ };
23910
24777
  logistics_plan_prune: {
23911
24778
  Args: never;
23912
24779
  Returns: number;
@@ -23928,6 +24795,18 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23928
24795
  };
23929
24796
  Returns: number;
23930
24797
  };
24798
+ logistics_plan_state_for: {
24799
+ Args: {
24800
+ p_ref: string;
24801
+ };
24802
+ Returns: import("../integrations/supabase/types").Json;
24803
+ };
24804
+ logistics_prepare_pick_documents: {
24805
+ Args: {
24806
+ p_limit?: number;
24807
+ };
24808
+ Returns: import("../integrations/supabase/types").Json;
24809
+ };
23931
24810
  logistics_prune_buffer_member_queue: {
23932
24811
  Args: never;
23933
24812
  Returns: number;
@@ -23968,18 +24847,36 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
23968
24847
  Args: never;
23969
24848
  Returns: import("../integrations/supabase/types").Json;
23970
24849
  };
24850
+ logistics_refresh_pick_queue_status: {
24851
+ Args: {
24852
+ p_ref: string;
24853
+ };
24854
+ Returns: number;
24855
+ };
23971
24856
  logistics_refresh_pickup_moments: {
23972
24857
  Args: {
23973
24858
  p_weeks?: number;
23974
24859
  };
23975
24860
  Returns: import("../integrations/supabase/types").Json;
23976
24861
  };
24862
+ logistics_refresh_plan_state: {
24863
+ Args: {
24864
+ p_limit?: number;
24865
+ };
24866
+ Returns: import("../integrations/supabase/types").Json;
24867
+ };
23977
24868
  logistics_replan_all: {
23978
24869
  Args: {
23979
24870
  p_reason?: string;
23980
24871
  };
23981
24872
  Returns: import("../integrations/supabase/types").Json;
23982
24873
  };
24874
+ logistics_replan_all_force: {
24875
+ Args: {
24876
+ p_reason?: string;
24877
+ };
24878
+ Returns: import("../integrations/supabase/types").Json;
24879
+ };
23983
24880
  logistics_report_delay: {
23984
24881
  Args: {
23985
24882
  p_expected_date?: string;
@@ -24124,6 +25021,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
24124
25021
  };
24125
25022
  Returns: string;
24126
25023
  };
25024
+ logistics_shipping_note_follows_slip: {
25025
+ Args: never;
25026
+ Returns: boolean;
25027
+ };
24127
25028
  logistics_shipping_note_from_barcode: {
24128
25029
  Args: {
24129
25030
  p_allow_reprint?: boolean;
@@ -24132,10 +25033,86 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
24132
25033
  };
24133
25034
  Returns: import("../integrations/supabase/types").Json;
24134
25035
  };
25036
+ logistics_shipping_note_job_for_slip: {
25037
+ Args: {
25038
+ _slip_job_id: string;
25039
+ };
25040
+ Returns: string;
25041
+ };
25042
+ logistics_shipping_notes_wake_all: {
25043
+ Args: never;
25044
+ Returns: import("../integrations/supabase/types").Json;
25045
+ };
25046
+ logistics_slip_is_floriday: {
25047
+ Args: {
25048
+ _slip_job_id: string;
25049
+ };
25050
+ Returns: boolean;
25051
+ };
25052
+ logistics_slip_note_claim: {
25053
+ Args: {
25054
+ _lease_seconds?: number;
25055
+ _limit?: number;
25056
+ };
25057
+ Returns: {
25058
+ attempts: number;
25059
+ batch_key: string | null;
25060
+ cart_id: string | null;
25061
+ created_at: string;
25062
+ error: string | null;
25063
+ error_code: string | null;
25064
+ fulfillment_order_id: string | null;
25065
+ id: string;
25066
+ locked_until: string | null;
25067
+ next_attempt_at: string | null;
25068
+ order_id: string | null;
25069
+ order_number: string | null;
25070
+ print_job_id: string | null;
25071
+ printer_id: string | null;
25072
+ retry_class: string | null;
25073
+ slip_job_id: string;
25074
+ status: string;
25075
+ updated_at: string;
25076
+ }[];
25077
+ SetofOptions: {
25078
+ from: "*";
25079
+ to: "logistics_slip_shipping_note";
25080
+ isOneToOne: false;
25081
+ isSetofReturn: true;
25082
+ };
25083
+ };
25084
+ logistics_slip_note_finish: {
25085
+ Args: {
25086
+ _error?: string;
25087
+ _error_code?: string;
25088
+ _fulfillment_order_id?: string;
25089
+ _id: string;
25090
+ _ok: boolean;
25091
+ _print_job_id?: string;
25092
+ _status?: string;
25093
+ };
25094
+ Returns: undefined;
25095
+ };
25096
+ logistics_slip_note_keep_waiting: {
25097
+ Args: {
25098
+ _class?: string;
25099
+ _id: string;
25100
+ _reason: string;
25101
+ };
25102
+ Returns: undefined;
25103
+ };
24135
25104
  logistics_sticker_follows_slip: {
24136
25105
  Args: never;
24137
25106
  Returns: boolean;
24138
25107
  };
25108
+ logistics_subtract_working_minutes: {
25109
+ Args: {
25110
+ p_deadline: string;
25111
+ p_max_workdays?: number;
25112
+ p_minutes: number;
25113
+ };
25114
+ Returns: import("../integrations/supabase/types").Json;
25115
+ };
24139
25116
  logistics_supersede_stale_tasks: {
24140
25117
  Args: {
24141
25118
  p_keep: string[];
@@ -24172,6 +25149,46 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
24172
25149
  Args: never;
24173
25150
  Returns: string;
24174
25151
  };
25152
+ logistics_timezone_options: {
25153
+ Args: never;
25154
+ Returns: {
25155
+ name: string;
25156
+ }[];
25157
+ };
25158
+ logistics_trace: {
25159
+ Args: {
25160
+ p: import("../integrations/supabase/types").Json;
25161
+ };
25162
+ Returns: string;
25163
+ };
25164
+ logistics_trace_batch: {
25165
+ Args: {
25166
+ p: import("../integrations/supabase/types").Json;
25167
+ };
25168
+ Returns: number;
25169
+ };
25170
+ logistics_trace_orders: {
25171
+ Args: {
25172
+ p_limit?: number;
25173
+ p_search?: string;
25174
+ p_since?: string;
25175
+ p_status?: string;
25176
+ };
25177
+ Returns: import("../integrations/supabase/types").Json;
25178
+ };
25179
+ logistics_trace_redact: {
25180
+ Args: {
25181
+ p: import("../integrations/supabase/types").Json;
25182
+ };
25183
+ Returns: import("../integrations/supabase/types").Json;
25184
+ };
25185
+ logistics_trace_timeline: {
25186
+ Args: {
25187
+ p_limit?: number;
25188
+ p_order_ref: string;
25189
+ };
25190
+ Returns: import("../integrations/supabase/types").Json;
25191
+ };
24175
25192
  logistics_upsert_task: {
24176
25193
  Args: {
24177
25194
  p_buffer_ref: string;
@@ -24191,6 +25208,16 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
24191
25208
  };
24192
25209
  Returns: string;
24193
25210
  };
25211
+ logistics_valid_timezone: {
25212
+ Args: {
25213
+ _tz: string;
25214
+ };
25215
+ Returns: boolean;
25216
+ };
25217
+ logistics_working_hours_status: {
25218
+ Args: never;
25219
+ Returns: import("../integrations/supabase/types").Json;
25220
+ };
24194
25221
  logistics_write_buffer_layer_positions: {
24195
25222
  Args: {
24196
25223
  p_buffer_id: string;
@@ -25203,6 +26230,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
25203
26230
  };
25204
26231
  Returns: undefined;
25205
26232
  };
26233
+ prune_floriday_api_log: {
26234
+ Args: never;
26235
+ Returns: number;
26236
+ };
25206
26237
  quote_create_from_source: {
25207
26238
  Args: {
25208
26239
  _payload?: import("../integrations/supabase/types").Json;
@@ -25636,6 +26667,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
25636
26667
  };
25637
26668
  Returns: number;
25638
26669
  };
26670
+ schedule_floriday_catalog_prices_sync: {
26671
+ Args: {
26672
+ p_apikey: string;
26673
+ p_url: string;
26674
+ };
26675
+ Returns: number;
26676
+ };
25639
26677
  schedule_floriday_clock_presales_sync: {
25640
26678
  Args: {
25641
26679
  p_apikey: string;
@@ -25936,6 +26974,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
25936
26974
  };
25937
26975
  Returns: undefined;
25938
26976
  };
26977
+ sync_floriday_prices_into_price_groups: {
26978
+ Args: never;
26979
+ Returns: number;
26980
+ };
25939
26981
  sync_layer_stock: {
25940
26982
  Args: {
25941
26983
  p_product_id: string;
@@ -26068,6 +27110,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
26068
27110
  Args: never;
26069
27111
  Returns: string;
26070
27112
  };
27113
+ voorraad_cleanup_old_rows: {
27114
+ Args: never;
27115
+ Returns: import("../integrations/supabase/types").Json;
27116
+ };
26071
27117
  wake_print_queue: {
26072
27118
  Args: {
26073
27119
  _min_interval_ms?: number;
@@ -28370,6 +29416,45 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
28370
29416
  };
28371
29417
  Relationships: [];
28372
29418
  };
29419
+ customer_product_stickers: {
29420
+ Row: {
29421
+ created_at: string;
29422
+ customer_key: string;
29423
+ file_name: string;
29424
+ file_path: string;
29425
+ file_size: number | null;
29426
+ id: string;
29427
+ mime_type: string | null;
29428
+ trade_item_key: string;
29429
+ updated_at: string;
29430
+ uploaded_by: string | null;
29431
+ };
29432
+ Insert: {
29433
+ created_at?: string;
29434
+ customer_key: string;
29435
+ file_name: string;
29436
+ file_path: string;
29437
+ file_size?: number | null;
29438
+ id?: string;
29439
+ mime_type?: string | null;
29440
+ trade_item_key: string;
29441
+ updated_at?: string;
29442
+ uploaded_by?: string | null;
29443
+ };
29444
+ Update: {
29445
+ created_at?: string;
29446
+ customer_key?: string;
29447
+ file_name?: string;
29448
+ file_path?: string;
29449
+ file_size?: number | null;
29450
+ id?: string;
29451
+ mime_type?: string | null;
29452
+ trade_item_key?: string;
29453
+ updated_at?: string;
29454
+ uploaded_by?: string | null;
29455
+ };
29456
+ Relationships: [];
29457
+ };
28373
29458
  customer_selected_assortment: {
28374
29459
  Row: {
28375
29460
  article_number: string | null;
@@ -28418,6 +29503,30 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
28418
29503
  referencedColumns: ["id"];
28419
29504
  }];
28420
29505
  };
29506
+ customer_sticker_settings: {
29507
+ Row: {
29508
+ created_at: string;
29509
+ customer_key: string;
29510
+ height_mm: number;
29511
+ updated_at: string;
29512
+ width_mm: number;
29513
+ };
29514
+ Insert: {
29515
+ created_at?: string;
29516
+ customer_key: string;
29517
+ height_mm?: number;
29518
+ updated_at?: string;
29519
+ width_mm?: number;
29520
+ };
29521
+ Update: {
29522
+ created_at?: string;
29523
+ customer_key?: string;
29524
+ height_mm?: number;
29525
+ updated_at?: string;
29526
+ width_mm?: number;
29527
+ };
29528
+ Relationships: [];
29529
+ };
28421
29530
  customer_trade_settings: {
28422
29531
  Row: {
28423
29532
  category: string;
@@ -31748,6 +32857,102 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
31748
32857
  referencedColumns: ["id"];
31749
32858
  }];
31750
32859
  };
32860
+ floriday_api_log: {
32861
+ Row: {
32862
+ action: string | null;
32863
+ caller: string | null;
32864
+ connection_id: string | null;
32865
+ created_at: string;
32866
+ cursor_from: number | null;
32867
+ direction: string;
32868
+ duration_ms: number | null;
32869
+ environment: string | null;
32870
+ error: string | null;
32871
+ floriday_id: string | null;
32872
+ floriday_reference: string | null;
32873
+ http_status: number;
32874
+ id: string;
32875
+ item_count: number | null;
32876
+ kind: string | null;
32877
+ local_id: string | null;
32878
+ local_reference: string | null;
32879
+ method: string;
32880
+ module: string | null;
32881
+ ok: boolean;
32882
+ path: string;
32883
+ request: import("../integrations/supabase/types").Json | null;
32884
+ resource_type: string | null;
32885
+ response: import("../integrations/supabase/types").Json | null;
32886
+ write_log_id: string | null;
32887
+ };
32888
+ Insert: {
32889
+ action?: string | null;
32890
+ caller?: string | null;
32891
+ connection_id?: string | null;
32892
+ created_at?: string;
32893
+ cursor_from?: number | null;
32894
+ direction: string;
32895
+ duration_ms?: number | null;
32896
+ environment?: string | null;
32897
+ error?: string | null;
32898
+ floriday_id?: string | null;
32899
+ floriday_reference?: string | null;
32900
+ http_status?: number;
32901
+ id?: string;
32902
+ item_count?: number | null;
32903
+ kind?: string | null;
32904
+ local_id?: string | null;
32905
+ local_reference?: string | null;
32906
+ method: string;
32907
+ module?: string | null;
32908
+ ok?: boolean;
32909
+ path: string;
32910
+ request?: import("../integrations/supabase/types").Json | null;
32911
+ resource_type?: string | null;
32912
+ response?: import("../integrations/supabase/types").Json | null;
32913
+ write_log_id?: string | null;
32914
+ };
32915
+ Update: {
32916
+ action?: string | null;
32917
+ caller?: string | null;
32918
+ connection_id?: string | null;
32919
+ created_at?: string;
32920
+ cursor_from?: number | null;
32921
+ direction?: string;
32922
+ duration_ms?: number | null;
32923
+ environment?: string | null;
32924
+ error?: string | null;
32925
+ floriday_id?: string | null;
32926
+ floriday_reference?: string | null;
32927
+ http_status?: number;
32928
+ id?: string;
32929
+ item_count?: number | null;
32930
+ kind?: string | null;
32931
+ local_id?: string | null;
32932
+ local_reference?: string | null;
32933
+ method?: string;
32934
+ module?: string | null;
32935
+ ok?: boolean;
32936
+ path?: string;
32937
+ request?: import("../integrations/supabase/types").Json | null;
32938
+ resource_type?: string | null;
32939
+ response?: import("../integrations/supabase/types").Json | null;
32940
+ write_log_id?: string | null;
32941
+ };
32942
+ Relationships: [{
32943
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
32944
+ columns: ["connection_id"];
32945
+ isOneToOne: false;
32946
+ referencedRelation: "floriday_connections";
32947
+ referencedColumns: ["id"];
32948
+ }, {
32949
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
32950
+ columns: ["write_log_id"];
32951
+ isOneToOne: false;
32952
+ referencedRelation: "floriday_write_log";
32953
+ referencedColumns: ["id"];
32954
+ }];
32955
+ };
31751
32956
  floriday_auction_letters_cache: {
31752
32957
  Row: {
31753
32958
  auction_letter_code: string;
@@ -31955,6 +33160,84 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
31955
33160
  referencedColumns: ["id"];
31956
33161
  }];
31957
33162
  };
33163
+ floriday_catalog_prices_cache: {
33164
+ Row: {
33165
+ connection_id: string;
33166
+ created_at: string;
33167
+ currency: string;
33168
+ id: string;
33169
+ is_deleted: boolean;
33170
+ price: number | null;
33171
+ price_group_id: string | null;
33172
+ price_group_name: string | null;
33173
+ price_type: string;
33174
+ raw: import("../integrations/supabase/types").Json | null;
33175
+ sales_unit: string | null;
33176
+ sequence_number: number;
33177
+ supplier_article_code: string | null;
33178
+ supply_line_id: string;
33179
+ synced_at: string;
33180
+ trade_item_id: string | null;
33181
+ updated_at: string;
33182
+ valid_from: string | null;
33183
+ valid_to: string | null;
33184
+ week: number | null;
33185
+ year: number | null;
33186
+ };
33187
+ Insert: {
33188
+ connection_id: string;
33189
+ created_at?: string;
33190
+ currency?: string;
33191
+ id?: string;
33192
+ is_deleted?: boolean;
33193
+ price?: number | null;
33194
+ price_group_id?: string | null;
33195
+ price_group_name?: string | null;
33196
+ price_type?: string;
33197
+ raw?: import("../integrations/supabase/types").Json | null;
33198
+ sales_unit?: string | null;
33199
+ sequence_number?: number;
33200
+ supplier_article_code?: string | null;
33201
+ supply_line_id: string;
33202
+ synced_at?: string;
33203
+ trade_item_id?: string | null;
33204
+ updated_at?: string;
33205
+ valid_from?: string | null;
33206
+ valid_to?: string | null;
33207
+ week?: number | null;
33208
+ year?: number | null;
33209
+ };
33210
+ Update: {
33211
+ connection_id?: string;
33212
+ created_at?: string;
33213
+ currency?: string;
33214
+ id?: string;
33215
+ is_deleted?: boolean;
33216
+ price?: number | null;
33217
+ price_group_id?: string | null;
33218
+ price_group_name?: string | null;
33219
+ price_type?: string;
33220
+ raw?: import("../integrations/supabase/types").Json | null;
33221
+ sales_unit?: string | null;
33222
+ sequence_number?: number;
33223
+ supplier_article_code?: string | null;
33224
+ supply_line_id?: string;
33225
+ synced_at?: string;
33226
+ trade_item_id?: string | null;
33227
+ updated_at?: string;
33228
+ valid_from?: string | null;
33229
+ valid_to?: string | null;
33230
+ week?: number | null;
33231
+ year?: number | null;
33232
+ };
33233
+ Relationships: [{
33234
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33235
+ columns: ["connection_id"];
33236
+ isOneToOne: false;
33237
+ referencedRelation: "floriday_connections";
33238
+ referencedColumns: ["id"];
33239
+ }];
33240
+ };
31958
33241
  floriday_clock_presales_cache: {
31959
33242
  Row: {
31960
33243
  buyer_organization_id: string | null;
@@ -32870,6 +34153,69 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
32870
34153
  referencedColumns: ["id"];
32871
34154
  }];
32872
34155
  };
34156
+ floriday_link_templates: {
34157
+ Row: {
34158
+ created_at: string;
34159
+ floriday_url_template: string | null;
34160
+ is_active: boolean;
34161
+ label: string;
34162
+ local_url_template: string | null;
34163
+ resource_type: string;
34164
+ updated_at: string;
34165
+ };
34166
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
34185
+ };
34186
+ floriday_log_retention: {
34187
+ Row: {
34188
+ created_at: string;
34189
+ direction: string | null;
34190
+ id: string;
34191
+ keep_failed_days: number | null;
34192
+ keep_ok_days: number | null;
34193
+ note: string | null;
34194
+ resource_type: string | null;
34195
+ updated_at: string;
34196
+ };
34197
+ Insert: {
34198
+ created_at?: string;
34199
+ direction?: string | null;
34200
+ id?: string;
34201
+ keep_failed_days?: number | null;
34202
+ keep_ok_days?: number | null;
34203
+ note?: string | null;
34204
+ resource_type?: string | null;
34205
+ updated_at?: string;
34206
+ };
34207
+ Update: {
34208
+ created_at?: string;
34209
+ direction?: string | null;
34210
+ id?: string;
34211
+ keep_failed_days?: number | null;
34212
+ keep_ok_days?: number | null;
34213
+ note?: string | null;
34214
+ resource_type?: string | null;
34215
+ updated_at?: string;
34216
+ };
34217
+ Relationships: [];
34218
+ };
32873
34219
  floriday_logistic_labels_cache: {
32874
34220
  Row: {
32875
34221
  byte_size: number | null;
@@ -36223,22 +37569,31 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
36223
37569
  };
36224
37570
  logistics_floriday_push_refusals: {
36225
37571
  Row: {
37572
+ action: string | null;
36226
37573
  created_at: string;
36227
37574
  id: string;
36228
37575
  order_ref: string;
36229
37576
  reason: string;
37577
+ source_module: string | null;
37578
+ source_shell: string | null;
36230
37579
  };
36231
37580
  Insert: {
37581
+ action?: string | null;
36232
37582
  created_at?: string;
36233
37583
  id?: string;
36234
37584
  order_ref: string;
36235
37585
  reason: string;
37586
+ source_module?: string | null;
37587
+ source_shell?: string | null;
36236
37588
  };
36237
37589
  Update: {
37590
+ action?: string | null;
36238
37591
  created_at?: string;
36239
37592
  id?: string;
36240
37593
  order_ref?: string;
36241
37594
  reason?: string;
37595
+ source_module?: string | null;
37596
+ source_shell?: string | null;
36242
37597
  };
36243
37598
  Relationships: [];
36244
37599
  };
@@ -36317,6 +37672,42 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
36317
37672
  };
36318
37673
  Relationships: [];
36319
37674
  };
37675
+ logistics_floriday_status_sends: {
37676
+ Row: {
37677
+ action: string;
37678
+ created_at: string;
37679
+ detail: string | null;
37680
+ http_status: number | null;
37681
+ id: string;
37682
+ ok: boolean;
37683
+ order_ref: string;
37684
+ source_module: string | null;
37685
+ source_shell: string | null;
37686
+ };
37687
+ Insert: {
37688
+ action: string;
37689
+ created_at?: string;
37690
+ detail?: string | null;
37691
+ http_status?: number | null;
37692
+ id?: string;
37693
+ ok?: boolean;
37694
+ order_ref: string;
37695
+ source_module?: string | null;
37696
+ source_shell?: string | null;
37697
+ };
37698
+ Update: {
37699
+ action?: string;
37700
+ created_at?: string;
37701
+ detail?: string | null;
37702
+ http_status?: number | null;
37703
+ id?: string;
37704
+ ok?: boolean;
37705
+ order_ref?: string;
37706
+ source_module?: string | null;
37707
+ source_shell?: string | null;
37708
+ };
37709
+ Relationships: [];
37710
+ };
36320
37711
  logistics_formulas: {
36321
37712
  Row: {
36322
37713
  created_at: string;
@@ -36389,6 +37780,108 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
36389
37780
  };
36390
37781
  Relationships: [];
36391
37782
  };
37783
+ logistics_opening_exceptions: {
37784
+ Row: {
37785
+ closes: string | null;
37786
+ created_at: string;
37787
+ day: string;
37788
+ id: string;
37789
+ is_closed: boolean;
37790
+ note: string | null;
37791
+ opens: string | null;
37792
+ };
37793
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
37812
+ };
37813
+ logistics_opening_hours: {
37814
+ Row: {
37815
+ closes: string;
37816
+ created_at: string;
37817
+ id: string;
37818
+ is_active: boolean;
37819
+ note: string | null;
37820
+ opens: string;
37821
+ weekday: number;
37822
+ };
37823
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
37842
+ };
37843
+ logistics_pick_data_requests: {
37844
+ Row: {
37845
+ actions: import("../integrations/supabase/types").Json;
37846
+ created_at: string;
37847
+ event_id: string | null;
37848
+ finished_at: string | null;
37849
+ id: string;
37850
+ missing: import("../integrations/supabase/types").Json;
37851
+ order_ref: string;
37852
+ reason: string | null;
37853
+ result: import("../integrations/supabase/types").Json | null;
37854
+ status: string;
37855
+ unit_ref: string | null;
37856
+ };
37857
+ Insert: {
37858
+ actions?: import("../integrations/supabase/types").Json;
37859
+ created_at?: string;
37860
+ event_id?: string | null;
37861
+ finished_at?: string | null;
37862
+ id?: string;
37863
+ missing?: import("../integrations/supabase/types").Json;
37864
+ order_ref: string;
37865
+ reason?: string | null;
37866
+ result?: import("../integrations/supabase/types").Json | null;
37867
+ status?: string;
37868
+ unit_ref?: string | null;
37869
+ };
37870
+ Update: {
37871
+ actions?: import("../integrations/supabase/types").Json;
37872
+ created_at?: string;
37873
+ event_id?: string | null;
37874
+ finished_at?: string | null;
37875
+ id?: string;
37876
+ missing?: import("../integrations/supabase/types").Json;
37877
+ order_ref?: string;
37878
+ reason?: string | null;
37879
+ result?: import("../integrations/supabase/types").Json | null;
37880
+ status?: string;
37881
+ unit_ref?: string | null;
37882
+ };
37883
+ Relationships: [];
37884
+ };
36392
37885
  logistics_pickup_moments: {
36393
37886
  Row: {
36394
37887
  carrier_ref: string | null;
@@ -36848,6 +38341,69 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
36848
38341
  };
36849
38342
  Relationships: [];
36850
38343
  };
38344
+ logistics_slip_shipping_note: {
38345
+ Row: {
38346
+ attempts: number;
38347
+ batch_key: string | null;
38348
+ cart_id: string | null;
38349
+ created_at: string;
38350
+ error: string | null;
38351
+ error_code: string | null;
38352
+ fulfillment_order_id: string | null;
38353
+ id: string;
38354
+ locked_until: string | null;
38355
+ next_attempt_at: string | null;
38356
+ order_id: string | null;
38357
+ order_number: string | null;
38358
+ print_job_id: string | null;
38359
+ printer_id: string | null;
38360
+ retry_class: string | null;
38361
+ slip_job_id: string;
38362
+ status: string;
38363
+ updated_at: string;
38364
+ };
38365
+ Insert: {
38366
+ attempts?: number;
38367
+ batch_key?: string | null;
38368
+ cart_id?: string | null;
38369
+ created_at?: string;
38370
+ error?: string | null;
38371
+ error_code?: string | null;
38372
+ fulfillment_order_id?: string | null;
38373
+ id?: string;
38374
+ locked_until?: string | null;
38375
+ next_attempt_at?: string | null;
38376
+ order_id?: string | null;
38377
+ order_number?: string | null;
38378
+ print_job_id?: string | null;
38379
+ printer_id?: string | null;
38380
+ retry_class?: string | null;
38381
+ slip_job_id: string;
38382
+ status?: string;
38383
+ updated_at?: string;
38384
+ };
38385
+ Update: {
38386
+ attempts?: number;
38387
+ batch_key?: string | null;
38388
+ cart_id?: string | null;
38389
+ created_at?: string;
38390
+ error?: string | null;
38391
+ error_code?: string | null;
38392
+ fulfillment_order_id?: string | null;
38393
+ id?: string;
38394
+ locked_until?: string | null;
38395
+ next_attempt_at?: string | null;
38396
+ order_id?: string | null;
38397
+ order_number?: string | null;
38398
+ print_job_id?: string | null;
38399
+ printer_id?: string | null;
38400
+ retry_class?: string | null;
38401
+ slip_job_id?: string;
38402
+ status?: string;
38403
+ updated_at?: string;
38404
+ };
38405
+ Relationships: [];
38406
+ };
36851
38407
  logistics_staff_planning: {
36852
38408
  Row: {
36853
38409
  created_at: string;
@@ -37181,6 +38737,129 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
37181
38737
  };
37182
38738
  Relationships: [];
37183
38739
  };
38740
+ logistics_time_settings: {
38741
+ Row: {
38742
+ id: boolean;
38743
+ timezone: string;
38744
+ updated_at: string;
38745
+ };
38746
+ Insert: {
38747
+ id?: boolean;
38748
+ timezone: string;
38749
+ updated_at?: string;
38750
+ };
38751
+ Update: {
38752
+ id?: boolean;
38753
+ timezone?: string;
38754
+ updated_at?: string;
38755
+ };
38756
+ Relationships: [];
38757
+ };
38758
+ logistics_trace_events: {
38759
+ Row: {
38760
+ actor: string | null;
38761
+ attempts: number;
38762
+ cart_ref: string | null;
38763
+ created_at: string;
38764
+ db_action: string | null;
38765
+ db_new: import("../integrations/supabase/types").Json | null;
38766
+ db_old: import("../integrations/supabase/types").Json | null;
38767
+ db_record: string | null;
38768
+ db_table: string | null;
38769
+ decision: string | null;
38770
+ duration_ms: number | null;
38771
+ error: string | null;
38772
+ external_action: string | null;
38773
+ external_ref: string | null;
38774
+ external_response: import("../integrations/supabase/types").Json | null;
38775
+ external_status: string | null;
38776
+ external_system: string | null;
38777
+ id: string;
38778
+ input: import("../integrations/supabase/types").Json | null;
38779
+ next_attempt_at: string | null;
38780
+ order_ref: string | null;
38781
+ order_source: string | null;
38782
+ output: import("../integrations/supabase/types").Json | null;
38783
+ phase: string;
38784
+ reads: import("../integrations/supabase/types").Json | null;
38785
+ reason: string | null;
38786
+ rule: string | null;
38787
+ slip_ref: string | null;
38788
+ status: string;
38789
+ step: string;
38790
+ trace_id: string;
38791
+ values_used: import("../integrations/supabase/types").Json | null;
38792
+ };
38793
+ Insert: {
38794
+ actor?: string | null;
38795
+ attempts?: number;
38796
+ cart_ref?: string | null;
38797
+ created_at?: string;
38798
+ db_action?: string | null;
38799
+ db_new?: import("../integrations/supabase/types").Json | null;
38800
+ db_old?: import("../integrations/supabase/types").Json | null;
38801
+ db_record?: string | null;
38802
+ db_table?: string | null;
38803
+ decision?: string | null;
38804
+ duration_ms?: number | null;
38805
+ error?: string | null;
38806
+ external_action?: string | null;
38807
+ external_ref?: string | null;
38808
+ external_response?: import("../integrations/supabase/types").Json | null;
38809
+ external_status?: string | null;
38810
+ external_system?: string | null;
38811
+ id?: string;
38812
+ input?: import("../integrations/supabase/types").Json | null;
38813
+ next_attempt_at?: string | null;
38814
+ order_ref?: string | null;
38815
+ order_source?: string | null;
38816
+ output?: import("../integrations/supabase/types").Json | null;
38817
+ phase: string;
38818
+ reads?: import("../integrations/supabase/types").Json | null;
38819
+ reason?: string | null;
38820
+ rule?: string | null;
38821
+ slip_ref?: string | null;
38822
+ status: string;
38823
+ step: string;
38824
+ trace_id?: string;
38825
+ values_used?: import("../integrations/supabase/types").Json | null;
38826
+ };
38827
+ Update: {
38828
+ actor?: string | null;
38829
+ attempts?: number;
38830
+ cart_ref?: string | null;
38831
+ created_at?: string;
38832
+ db_action?: string | null;
38833
+ db_new?: import("../integrations/supabase/types").Json | null;
38834
+ db_old?: import("../integrations/supabase/types").Json | null;
38835
+ db_record?: string | null;
38836
+ db_table?: string | null;
38837
+ decision?: string | null;
38838
+ duration_ms?: number | null;
38839
+ error?: string | null;
38840
+ external_action?: string | null;
38841
+ external_ref?: string | null;
38842
+ external_response?: import("../integrations/supabase/types").Json | null;
38843
+ external_status?: string | null;
38844
+ external_system?: string | null;
38845
+ id?: string;
38846
+ input?: import("../integrations/supabase/types").Json | null;
38847
+ next_attempt_at?: string | null;
38848
+ order_ref?: string | null;
38849
+ order_source?: string | null;
38850
+ output?: import("../integrations/supabase/types").Json | null;
38851
+ phase?: string;
38852
+ reads?: import("../integrations/supabase/types").Json | null;
38853
+ reason?: string | null;
38854
+ rule?: string | null;
38855
+ slip_ref?: string | null;
38856
+ status?: string;
38857
+ step?: string;
38858
+ trace_id?: string;
38859
+ values_used?: import("../integrations/supabase/types").Json | null;
38860
+ };
38861
+ Relationships: [];
38862
+ };
37184
38863
  logistics_variables: {
37185
38864
  Row: {
37186
38865
  created_at: string;
@@ -39571,6 +41250,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
39571
41250
  customer_name: string;
39572
41251
  deleted_at: string | null;
39573
41252
  delivery_date: string | null;
41253
+ floriday_order_group_key: string | null;
39574
41254
  floriday_sales_order_id: string | null;
39575
41255
  id: string;
39576
41256
  invoice_due_at: string | null;
@@ -39598,6 +41278,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
39598
41278
  customer_name?: string;
39599
41279
  deleted_at?: string | null;
39600
41280
  delivery_date?: string | null;
41281
+ floriday_order_group_key?: string | null;
39601
41282
  floriday_sales_order_id?: string | null;
39602
41283
  id?: string;
39603
41284
  invoice_due_at?: string | null;
@@ -39625,6 +41306,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
39625
41306
  customer_name?: string;
39626
41307
  deleted_at?: string | null;
39627
41308
  delivery_date?: string | null;
41309
+ floriday_order_group_key?: string | null;
39628
41310
  floriday_sales_order_id?: string | null;
39629
41311
  id?: string;
39630
41312
  invoice_due_at?: string | null;
@@ -45488,6 +47170,36 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
45488
47170
  referencedColumns: ["id"];
45489
47171
  }];
45490
47172
  };
47173
+ voorraad_buffer_state: {
47174
+ Row: {
47175
+ buffer_id: string;
47176
+ buffer_key: string | null;
47177
+ closed_at: string | null;
47178
+ created_at: string;
47179
+ detached_orders: import("../integrations/supabase/types").Json;
47180
+ reason: string | null;
47181
+ updated_at: string;
47182
+ };
47183
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
47202
+ };
45491
47203
  voorraad_custom_fields: {
45492
47204
  Row: {
45493
47205
  created_at: string;
@@ -45530,6 +47242,36 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
45530
47242
  };
45531
47243
  Relationships: [];
45532
47244
  };
47245
+ voorraad_logistics_event_log: {
47246
+ Row: {
47247
+ created_at: string;
47248
+ event_id: string;
47249
+ event_type: string;
47250
+ order_ref: string | null;
47251
+ processed_at: string;
47252
+ result: import("../integrations/supabase/types").Json;
47253
+ updated_at: string;
47254
+ };
47255
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
47274
+ };
45533
47275
  voorraad_media_upload_failures: {
45534
47276
  Row: {
45535
47277
  action: string;
@@ -47690,6 +49432,15 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
47690
49432
  Args: never;
47691
49433
  Returns: boolean;
47692
49434
  };
49435
+ cancel_open_print_jobs: {
49436
+ Args: {
49437
+ _cutoff: string;
49438
+ };
49439
+ Returns: {
49440
+ extern_job_id: string;
49441
+ id: string;
49442
+ }[];
49443
+ };
47693
49444
  check_offer_product_available_stock: {
47694
49445
  Args: {
47695
49446
  p_campaign_product_id: string;
@@ -49228,6 +50979,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49228
50979
  };
49229
50980
  Returns: string;
49230
50981
  };
50982
+ logistics_cart_checkin_at: {
50983
+ Args: {
50984
+ p_cart_id: string;
50985
+ };
50986
+ Returns: string;
50987
+ };
49231
50988
  logistics_cart_handled: {
49232
50989
  Args: {
49233
50990
  p_cart_index: number;
@@ -49261,10 +51018,22 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49261
51018
  task_status: string;
49262
51019
  }[];
49263
51020
  };
51021
+ logistics_cart_is_full: {
51022
+ Args: {
51023
+ p_cart_id: string;
51024
+ };
51025
+ Returns: boolean;
51026
+ };
49264
51027
  logistics_cart_layout_method: {
49265
51028
  Args: never;
49266
51029
  Returns: import("../integrations/supabase/types").Json;
49267
51030
  };
51031
+ logistics_cart_order_refs: {
51032
+ Args: {
51033
+ p_cart_id: string;
51034
+ };
51035
+ Returns: string[];
51036
+ };
49268
51037
  logistics_cart_plan_overview: {
49269
51038
  Args: {
49270
51039
  p_days?: number;
@@ -49284,6 +51053,24 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49284
51053
  };
49285
51054
  Returns: import("../integrations/supabase/types").Json;
49286
51055
  };
51056
+ logistics_cart_plan_status_core: {
51057
+ Args: {
51058
+ p_ref: string;
51059
+ };
51060
+ Returns: import("../integrations/supabase/types").Json;
51061
+ };
51062
+ logistics_cart_release_reason: {
51063
+ Args: {
51064
+ p_cart_id: string;
51065
+ };
51066
+ Returns: string;
51067
+ };
51068
+ logistics_cart_released: {
51069
+ Args: {
51070
+ p_cart_id: string;
51071
+ };
51072
+ Returns: boolean;
51073
+ };
49287
51074
  logistics_cart_seq: {
49288
51075
  Args: {
49289
51076
  p_order_uuid?: string;
@@ -49334,6 +51121,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49334
51121
  unit_ref: string;
49335
51122
  }[];
49336
51123
  };
51124
+ logistics_carts_per_print: {
51125
+ Args: never;
51126
+ Returns: number;
51127
+ };
49337
51128
  logistics_check_order_allowed: {
49338
51129
  Args: {
49339
51130
  p_lines: import("../integrations/supabase/types").Json;
@@ -49437,6 +51228,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49437
51228
  isSetofReturn: false;
49438
51229
  };
49439
51230
  };
51231
+ logistics_cleanup_orphan_print_jobs: {
51232
+ Args: never;
51233
+ Returns: import("../integrations/supabase/types").Json;
51234
+ };
49440
51235
  logistics_complete_task: {
49441
51236
  Args: {
49442
51237
  p_result?: import("../integrations/supabase/types").Json;
@@ -49499,6 +51294,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49499
51294
  station_carts: number;
49500
51295
  }[];
49501
51296
  };
51297
+ logistics_control_complete_cart: {
51298
+ Args: {
51299
+ p_cart_id: string;
51300
+ };
51301
+ Returns: number;
51302
+ };
49502
51303
  logistics_control_scan_approve: {
49503
51304
  Args: {
49504
51305
  p_allow_reprint?: boolean;
@@ -49578,6 +51379,15 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49578
51379
  Args: never;
49579
51380
  Returns: import("../integrations/supabase/types").Json;
49580
51381
  };
51382
+ logistics_day_windows: {
51383
+ Args: {
51384
+ p_day: string;
51385
+ };
51386
+ Returns: {
51387
+ win_end: string;
51388
+ win_start: string;
51389
+ }[];
51390
+ };
49581
51391
  logistics_delay_customer_email: {
49582
51392
  Args: {
49583
51393
  p_customer: string;
@@ -49645,6 +51455,17 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49645
51455
  };
49646
51456
  Returns: import("../integrations/supabase/types").Json;
49647
51457
  };
51458
+ logistics_enqueue_shipping_note_with_slip: {
51459
+ Args: {
51460
+ _cart_id: string;
51461
+ _is_herprint: boolean;
51462
+ _printer_id: string;
51463
+ _queue_item_id: string;
51464
+ _session_id: string;
51465
+ _slip_job_id: string;
51466
+ };
51467
+ Returns: string;
51468
+ };
49648
51469
  logistics_enqueue_sticker_with_slip: {
49649
51470
  Args: {
49650
51471
  _cart_id: string;
@@ -49662,6 +51483,20 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49662
51483
  };
49663
51484
  Returns: string;
49664
51485
  };
51486
+ logistics_ensure_pick_data: {
51487
+ Args: {
51488
+ p_event_id?: string;
51489
+ p_missing?: import("../integrations/supabase/types").Json;
51490
+ p_ref: string;
51491
+ };
51492
+ Returns: import("../integrations/supabase/types").Json;
51493
+ };
51494
+ logistics_ensure_shipping_notes: {
51495
+ Args: {
51496
+ p_limit?: number;
51497
+ };
51498
+ Returns: import("../integrations/supabase/types").Json;
51499
+ };
49665
51500
  logistics_fail_task: {
49666
51501
  Args: {
49667
51502
  p_error: string;
@@ -49707,6 +51542,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49707
51542
  isSetofReturn: false;
49708
51543
  };
49709
51544
  };
51545
+ logistics_fix_wrong_shipping_notes: {
51546
+ Args: never;
51547
+ Returns: import("../integrations/supabase/types").Json;
51548
+ };
49710
51549
  logistics_floriday_cart_plan: {
49711
51550
  Args: {
49712
51551
  p_order_id: string;
@@ -49734,6 +51573,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49734
51573
  revision: number;
49735
51574
  }[];
49736
51575
  };
51576
+ logistics_floriday_delivery_note_create_enabled: {
51577
+ Args: never;
51578
+ Returns: boolean;
51579
+ };
49737
51580
  logistics_floriday_finish_push: {
49738
51581
  Args: {
49739
51582
  _error?: string;
@@ -49783,6 +51626,32 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49783
51626
  };
49784
51627
  Returns: string;
49785
51628
  };
51629
+ logistics_floriday_gate_status: {
51630
+ Args: never;
51631
+ Returns: import("../integrations/supabase/types").Json;
51632
+ };
51633
+ logistics_floriday_log_refusal: {
51634
+ Args: {
51635
+ _action?: string;
51636
+ _module?: string;
51637
+ _order_ref: string;
51638
+ _reason: string;
51639
+ _shell?: string;
51640
+ };
51641
+ Returns: undefined;
51642
+ };
51643
+ logistics_floriday_log_send: {
51644
+ Args: {
51645
+ _action: string;
51646
+ _detail?: string;
51647
+ _http_status?: number;
51648
+ _module?: string;
51649
+ _ok: boolean;
51650
+ _order_ref: string;
51651
+ _shell?: string;
51652
+ };
51653
+ Returns: undefined;
51654
+ };
49786
51655
  logistics_floriday_order_approved: {
49787
51656
  Args: {
49788
51657
  _order_ref: string;
@@ -49807,6 +51676,16 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49807
51676
  Args: never;
49808
51677
  Returns: boolean;
49809
51678
  };
51679
+ logistics_floriday_stock_updates_enabled: {
51680
+ Args: never;
51681
+ Returns: boolean;
51682
+ };
51683
+ logistics_floriday_write_allowed: {
51684
+ Args: {
51685
+ _action: string;
51686
+ };
51687
+ Returns: boolean;
51688
+ };
49810
51689
  logistics_fulfill_barcode_requests: {
49811
51690
  Args: {
49812
51691
  p_limit?: number;
@@ -49849,6 +51728,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49849
51728
  };
49850
51729
  Returns: number;
49851
51730
  };
51731
+ logistics_merge_partial_carts: {
51732
+ Args: {
51733
+ p_limit?: number;
51734
+ };
51735
+ Returns: import("../integrations/supabase/types").Json;
51736
+ };
49852
51737
  logistics_next_workday_date: {
49853
51738
  Args: {
49854
51739
  p_date: string;
@@ -49875,6 +51760,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49875
51760
  };
49876
51761
  Returns: string;
49877
51762
  };
51763
+ logistics_opening_timezone: {
51764
+ Args: never;
51765
+ Returns: string;
51766
+ };
49878
51767
  logistics_order_cart_count: {
49879
51768
  Args: {
49880
51769
  p_order_ref: string;
@@ -49931,6 +51820,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49931
51820
  };
49932
51821
  Returns: string;
49933
51822
  };
51823
+ logistics_payload_is_floriday: {
51824
+ Args: {
51825
+ _payload: import("../integrations/supabase/types").Json;
51826
+ };
51827
+ Returns: boolean;
51828
+ };
49934
51829
  logistics_pick_agenda: {
49935
51830
  Args: {
49936
51831
  p_from?: string;
@@ -49959,6 +51854,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
49959
51854
  Args: never;
49960
51855
  Returns: import("../integrations/supabase/types").Json;
49961
51856
  };
51857
+ logistics_pick_partial_mode: {
51858
+ Args: never;
51859
+ Returns: string;
51860
+ };
49962
51861
  logistics_pick_start_estimate: {
49963
51862
  Args: {
49964
51863
  p_order: import("../integrations/supabase/types").Json;
@@ -50049,6 +51948,20 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50049
51948
  Args: never;
50050
51949
  Returns: undefined;
50051
51950
  };
51951
+ logistics_plan_progress: {
51952
+ Args: {
51953
+ p_refs: string[];
51954
+ };
51955
+ Returns: {
51956
+ cart_plan_ready: boolean;
51957
+ cart_plan_reason: string;
51958
+ cart_plan_released: boolean;
51959
+ plan_progress: number;
51960
+ plan_state: string;
51961
+ plan_state_since: string;
51962
+ unit_ref: string;
51963
+ }[];
51964
+ };
50052
51965
  logistics_plan_prune: {
50053
51966
  Args: never;
50054
51967
  Returns: number;
@@ -50070,6 +51983,18 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50070
51983
  };
50071
51984
  Returns: number;
50072
51985
  };
51986
+ logistics_plan_state_for: {
51987
+ Args: {
51988
+ p_ref: string;
51989
+ };
51990
+ Returns: import("../integrations/supabase/types").Json;
51991
+ };
51992
+ logistics_prepare_pick_documents: {
51993
+ Args: {
51994
+ p_limit?: number;
51995
+ };
51996
+ Returns: import("../integrations/supabase/types").Json;
51997
+ };
50073
51998
  logistics_prune_buffer_member_queue: {
50074
51999
  Args: never;
50075
52000
  Returns: number;
@@ -50110,18 +52035,36 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50110
52035
  Args: never;
50111
52036
  Returns: import("../integrations/supabase/types").Json;
50112
52037
  };
52038
+ logistics_refresh_pick_queue_status: {
52039
+ Args: {
52040
+ p_ref: string;
52041
+ };
52042
+ Returns: number;
52043
+ };
50113
52044
  logistics_refresh_pickup_moments: {
50114
52045
  Args: {
50115
52046
  p_weeks?: number;
50116
52047
  };
50117
52048
  Returns: import("../integrations/supabase/types").Json;
50118
52049
  };
52050
+ logistics_refresh_plan_state: {
52051
+ Args: {
52052
+ p_limit?: number;
52053
+ };
52054
+ Returns: import("../integrations/supabase/types").Json;
52055
+ };
50119
52056
  logistics_replan_all: {
50120
52057
  Args: {
50121
52058
  p_reason?: string;
50122
52059
  };
50123
52060
  Returns: import("../integrations/supabase/types").Json;
50124
52061
  };
52062
+ logistics_replan_all_force: {
52063
+ Args: {
52064
+ p_reason?: string;
52065
+ };
52066
+ Returns: import("../integrations/supabase/types").Json;
52067
+ };
50125
52068
  logistics_report_delay: {
50126
52069
  Args: {
50127
52070
  p_expected_date?: string;
@@ -50266,6 +52209,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50266
52209
  };
50267
52210
  Returns: string;
50268
52211
  };
52212
+ logistics_shipping_note_follows_slip: {
52213
+ Args: never;
52214
+ Returns: boolean;
52215
+ };
50269
52216
  logistics_shipping_note_from_barcode: {
50270
52217
  Args: {
50271
52218
  p_allow_reprint?: boolean;
@@ -50274,10 +52221,86 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50274
52221
  };
50275
52222
  Returns: import("../integrations/supabase/types").Json;
50276
52223
  };
52224
+ logistics_shipping_note_job_for_slip: {
52225
+ Args: {
52226
+ _slip_job_id: string;
52227
+ };
52228
+ Returns: string;
52229
+ };
52230
+ logistics_shipping_notes_wake_all: {
52231
+ Args: never;
52232
+ Returns: import("../integrations/supabase/types").Json;
52233
+ };
52234
+ logistics_slip_is_floriday: {
52235
+ Args: {
52236
+ _slip_job_id: string;
52237
+ };
52238
+ Returns: boolean;
52239
+ };
52240
+ logistics_slip_note_claim: {
52241
+ Args: {
52242
+ _lease_seconds?: number;
52243
+ _limit?: number;
52244
+ };
52245
+ Returns: {
52246
+ attempts: number;
52247
+ batch_key: string | null;
52248
+ cart_id: string | null;
52249
+ created_at: string;
52250
+ error: string | null;
52251
+ error_code: string | null;
52252
+ fulfillment_order_id: string | null;
52253
+ id: string;
52254
+ locked_until: string | null;
52255
+ next_attempt_at: string | null;
52256
+ order_id: string | null;
52257
+ order_number: string | null;
52258
+ print_job_id: string | null;
52259
+ printer_id: string | null;
52260
+ retry_class: string | null;
52261
+ slip_job_id: string;
52262
+ status: string;
52263
+ updated_at: string;
52264
+ }[];
52265
+ SetofOptions: {
52266
+ from: "*";
52267
+ to: "logistics_slip_shipping_note";
52268
+ isOneToOne: false;
52269
+ isSetofReturn: true;
52270
+ };
52271
+ };
52272
+ logistics_slip_note_finish: {
52273
+ Args: {
52274
+ _error?: string;
52275
+ _error_code?: string;
52276
+ _fulfillment_order_id?: string;
52277
+ _id: string;
52278
+ _ok: boolean;
52279
+ _print_job_id?: string;
52280
+ _status?: string;
52281
+ };
52282
+ Returns: undefined;
52283
+ };
52284
+ logistics_slip_note_keep_waiting: {
52285
+ Args: {
52286
+ _class?: string;
52287
+ _id: string;
52288
+ _reason: string;
52289
+ };
52290
+ Returns: undefined;
52291
+ };
50277
52292
  logistics_sticker_follows_slip: {
50278
52293
  Args: never;
50279
52294
  Returns: boolean;
50280
52295
  };
52296
+ logistics_subtract_working_minutes: {
52297
+ Args: {
52298
+ p_deadline: string;
52299
+ p_max_workdays?: number;
52300
+ p_minutes: number;
52301
+ };
52302
+ Returns: import("../integrations/supabase/types").Json;
52303
+ };
50281
52304
  logistics_supersede_stale_tasks: {
50282
52305
  Args: {
50283
52306
  p_keep: string[];
@@ -50314,6 +52337,46 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50314
52337
  Args: never;
50315
52338
  Returns: string;
50316
52339
  };
52340
+ logistics_timezone_options: {
52341
+ Args: never;
52342
+ Returns: {
52343
+ name: string;
52344
+ }[];
52345
+ };
52346
+ logistics_trace: {
52347
+ Args: {
52348
+ p: import("../integrations/supabase/types").Json;
52349
+ };
52350
+ Returns: string;
52351
+ };
52352
+ logistics_trace_batch: {
52353
+ Args: {
52354
+ p: import("../integrations/supabase/types").Json;
52355
+ };
52356
+ Returns: number;
52357
+ };
52358
+ logistics_trace_orders: {
52359
+ Args: {
52360
+ p_limit?: number;
52361
+ p_search?: string;
52362
+ p_since?: string;
52363
+ p_status?: string;
52364
+ };
52365
+ Returns: import("../integrations/supabase/types").Json;
52366
+ };
52367
+ logistics_trace_redact: {
52368
+ Args: {
52369
+ p: import("../integrations/supabase/types").Json;
52370
+ };
52371
+ Returns: import("../integrations/supabase/types").Json;
52372
+ };
52373
+ logistics_trace_timeline: {
52374
+ Args: {
52375
+ p_limit?: number;
52376
+ p_order_ref: string;
52377
+ };
52378
+ Returns: import("../integrations/supabase/types").Json;
52379
+ };
50317
52380
  logistics_upsert_task: {
50318
52381
  Args: {
50319
52382
  p_buffer_ref: string;
@@ -50333,6 +52396,16 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
50333
52396
  };
50334
52397
  Returns: string;
50335
52398
  };
52399
+ logistics_valid_timezone: {
52400
+ Args: {
52401
+ _tz: string;
52402
+ };
52403
+ Returns: boolean;
52404
+ };
52405
+ logistics_working_hours_status: {
52406
+ Args: never;
52407
+ Returns: import("../integrations/supabase/types").Json;
52408
+ };
50336
52409
  logistics_write_buffer_layer_positions: {
50337
52410
  Args: {
50338
52411
  p_buffer_id: string;
@@ -51345,6 +53418,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
51345
53418
  };
51346
53419
  Returns: undefined;
51347
53420
  };
53421
+ prune_floriday_api_log: {
53422
+ Args: never;
53423
+ Returns: number;
53424
+ };
51348
53425
  quote_create_from_source: {
51349
53426
  Args: {
51350
53427
  _payload?: import("../integrations/supabase/types").Json;
@@ -51778,6 +53855,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
51778
53855
  };
51779
53856
  Returns: number;
51780
53857
  };
53858
+ schedule_floriday_catalog_prices_sync: {
53859
+ Args: {
53860
+ p_apikey: string;
53861
+ p_url: string;
53862
+ };
53863
+ Returns: number;
53864
+ };
51781
53865
  schedule_floriday_clock_presales_sync: {
51782
53866
  Args: {
51783
53867
  p_apikey: string;
@@ -52078,6 +54162,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
52078
54162
  };
52079
54163
  Returns: undefined;
52080
54164
  };
54165
+ sync_floriday_prices_into_price_groups: {
54166
+ Args: never;
54167
+ Returns: number;
54168
+ };
52081
54169
  sync_layer_stock: {
52082
54170
  Args: {
52083
54171
  p_product_id: string;
@@ -52210,6 +54298,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
52210
54298
  Args: never;
52211
54299
  Returns: string;
52212
54300
  };
54301
+ voorraad_cleanup_old_rows: {
54302
+ Args: never;
54303
+ Returns: import("../integrations/supabase/types").Json;
54304
+ };
52213
54305
  wake_print_queue: {
52214
54306
  Args: {
52215
54307
  _min_interval_ms?: number;