@flowselections/floriday-verkoop-module 1.0.56 → 1.0.58

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 (138) hide show
  1. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  2. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  3. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +1 -1
  4. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  6. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  8. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  10. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  11. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  12. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  13. package/dist-lib/components/verkoop/EngineBufferCard.d.ts +1 -1
  14. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  15. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +1 -1
  16. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -1
  17. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  18. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  19. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.js +5 -5
  20. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts +1 -1
  21. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts.map +1 -1
  22. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  23. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  24. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  25. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  26. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts +1 -1
  27. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts.map +1 -1
  28. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  29. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  30. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  31. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  32. package/dist-lib/components/verkoop/SalesOrderDetailPage.js +6 -6
  33. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  34. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  35. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  36. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  37. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  38. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  39. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +2 -1
  40. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  41. package/dist-lib/components/verkoop/SalesOrdersTable.js +17 -4
  42. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  43. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  44. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +1 -1
  45. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -1
  46. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  47. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  48. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  49. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  50. package/dist-lib/integrations/supabase/auth-middleware.d.ts +596 -10
  51. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  52. package/dist-lib/integrations/supabase/client.d.ts +596 -10
  53. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  54. package/dist-lib/integrations/supabase/client.js +1 -1
  55. package/dist-lib/integrations/supabase/client.server.d.ts +596 -10
  56. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  57. package/dist-lib/integrations/supabase/client.server.js +1 -1
  58. package/dist-lib/integrations/supabase/types.d.ts +598 -10
  59. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  60. package/dist-lib/lib/cart-lock.functions.d.ts +596 -10
  61. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/cart-planning-settings.functions.d.ts +6556 -110
  63. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/cart-replan.functions.d.ts +1788 -30
  65. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/create-order.functions.d.ts +10132 -170
  67. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1788 -30
  69. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/floriday-gateway.server.d.ts +14 -0
  71. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  72. package/dist-lib/lib/floriday-gateway.server.js +46 -0
  73. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +24465 -20
  74. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/floriday-logistic-labels.functions.js +209 -90
  76. package/dist-lib/lib/floriday-mirror.functions.d.ts +596 -10
  77. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  78. package/dist-lib/lib/floriday-public.functions.d.ts +4172 -70
  79. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  80. package/dist-lib/lib/floriday-sync.d.ts.map +1 -1
  81. package/dist-lib/lib/floriday-writes.functions.d.ts +2980 -50
  82. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  83. package/dist-lib/lib/invoice-timing.functions.d.ts +2384 -40
  84. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  85. package/dist-lib/lib/load-carriers.functions.d.ts +596 -10
  86. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  87. package/dist-lib/lib/logistics-engine.functions.d.ts +2995 -55
  88. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  89. package/dist-lib/lib/logistics-stock.functions.d.ts +1192 -20
  90. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  91. package/dist-lib/lib/order-addresses.functions.d.ts +596 -10
  92. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  93. package/dist-lib/lib/order-buffers.functions.d.ts +1788 -30
  94. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  95. package/dist-lib/lib/order-carrier.functions.d.ts +1192 -20
  96. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  97. package/dist-lib/lib/order-pickup.functions.d.ts +1192 -20
  98. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  99. package/dist-lib/lib/order-shipments.functions.d.ts +2384 -40
  100. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  101. package/dist-lib/lib/salesorders-list.functions.d.ts +596 -10
  102. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  103. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  104. package/dist-lib/lib/salesorders-list.server.js +43 -1
  105. package/dist-lib/lib/salesorders-mapping.d.ts +8 -0
  106. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  107. package/dist-lib/lib/salesorders.functions.d.ts +2980 -50
  108. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  109. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +1192 -20
  110. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  111. package/dist-lib/lib/tradeitems.functions.d.ts +596 -10
  112. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  113. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts +1 -1
  114. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts.map +1 -1
  115. package/dist-lib/lib/useSalesOrdersQuery.d.ts +1 -1
  116. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  117. package/package.json +1 -1
  118. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +0 -9
  119. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +0 -1
  120. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +0 -26
  121. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +0 -6
  122. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +0 -1
  123. package/dist-lib/components/karindeling/AfmetingenTab.js +0 -128
  124. package/dist-lib/components/karindeling/KarindelingPage.d.ts +0 -2
  125. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +0 -1
  126. package/dist-lib/components/karindeling/KarindelingPage.js +0 -102
  127. package/dist-lib/components/ui/dropdown-menu.d.ts +0 -9
  128. package/dist-lib/components/ui/dropdown-menu.d.ts.map +0 -1
  129. package/dist-lib/components/ui/dropdown-menu.js +0 -14
  130. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +0 -5
  131. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +0 -1
  132. package/dist-lib/components/verkoop/CreateOrderDialog.js +0 -33
  133. package/dist-lib/lib/floriday/floriday.server.d.ts +0 -14
  134. package/dist-lib/lib/floriday/floriday.server.d.ts.map +0 -1
  135. package/dist-lib/lib/floriday/floriday.server.js +0 -92
  136. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +0 -4736
  137. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +0 -1
  138. package/dist-lib/lib/floriday/sales-orders.functions.js +0 -193
@@ -2897,6 +2897,84 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
2897
2897
  };
2898
2898
  Relationships: [];
2899
2899
  };
2900
+ delivery_notes: {
2901
+ Row: {
2902
+ byte_size: number | null;
2903
+ connection_id: string | null;
2904
+ content_type: string;
2905
+ created_at: string;
2906
+ error_message: string | null;
2907
+ fetched_at: string | null;
2908
+ fulfillment_order_id: string | null;
2909
+ http_status: number | null;
2910
+ id: string;
2911
+ label_code: string | null;
2912
+ letter: string | null;
2913
+ load_carrier_index: number | null;
2914
+ load_carrier_type: string | null;
2915
+ order_id: string | null;
2916
+ order_number: string | null;
2917
+ packages: number | null;
2918
+ source: string;
2919
+ status: string;
2920
+ storage_bucket: string;
2921
+ storage_path: string | null;
2922
+ updated_at: string;
2923
+ };
2924
+ Insert: {
2925
+ byte_size?: number | null;
2926
+ connection_id?: string | null;
2927
+ content_type?: string;
2928
+ created_at?: string;
2929
+ error_message?: string | null;
2930
+ fetched_at?: string | null;
2931
+ fulfillment_order_id?: string | null;
2932
+ http_status?: number | null;
2933
+ id?: string;
2934
+ label_code?: string | null;
2935
+ letter?: string | null;
2936
+ load_carrier_index?: number | null;
2937
+ load_carrier_type?: string | null;
2938
+ order_id?: string | null;
2939
+ order_number?: string | null;
2940
+ packages?: number | null;
2941
+ source?: string;
2942
+ status?: string;
2943
+ storage_bucket?: string;
2944
+ storage_path?: string | null;
2945
+ updated_at?: string;
2946
+ };
2947
+ Update: {
2948
+ byte_size?: number | null;
2949
+ connection_id?: string | null;
2950
+ content_type?: string;
2951
+ created_at?: string;
2952
+ error_message?: string | null;
2953
+ fetched_at?: string | null;
2954
+ fulfillment_order_id?: string | null;
2955
+ http_status?: number | null;
2956
+ id?: string;
2957
+ label_code?: string | null;
2958
+ letter?: string | null;
2959
+ load_carrier_index?: number | null;
2960
+ load_carrier_type?: string | null;
2961
+ order_id?: string | null;
2962
+ order_number?: string | null;
2963
+ packages?: number | null;
2964
+ source?: string;
2965
+ status?: string;
2966
+ storage_bucket?: string;
2967
+ storage_path?: string | null;
2968
+ updated_at?: string;
2969
+ };
2970
+ Relationships: [{
2971
+ foreignKeyName: "delivery_notes_order_id_fkey";
2972
+ columns: ["order_id"];
2973
+ isOneToOne: false;
2974
+ referencedRelation: "orders";
2975
+ referencedColumns: ["id"];
2976
+ }];
2977
+ };
2900
2978
  document_bronregels: {
2901
2979
  Row: {
2902
2980
  bron: string;
@@ -5950,10 +6028,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5950
6028
  };
5951
6029
  floriday_connections: {
5952
6030
  Row: {
5953
- access_token: string | null;
5954
6031
  api_key: string;
5955
- client_id: string;
5956
- client_secret: string;
5957
6032
  created_at: string;
5958
6033
  customers_endpoint: string | null;
5959
6034
  environment: string;
@@ -5968,10 +6043,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5968
6043
  updated_at: string;
5969
6044
  };
5970
6045
  Insert: {
5971
- access_token?: string | null;
5972
6046
  api_key: string;
5973
- client_id: string;
5974
- client_secret: string;
5975
6047
  created_at?: string;
5976
6048
  customers_endpoint?: string | null;
5977
6049
  environment: string;
@@ -5986,10 +6058,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5986
6058
  updated_at?: string;
5987
6059
  };
5988
6060
  Update: {
5989
- access_token?: string | null;
5990
6061
  api_key?: string;
5991
- client_id?: string;
5992
- client_secret?: string;
5993
6062
  created_at?: string;
5994
6063
  customers_endpoint?: string | null;
5995
6064
  environment?: string;
@@ -6073,6 +6142,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6073
6142
  attempts: number;
6074
6143
  connection_id: string;
6075
6144
  created_at: string;
6145
+ dead_lettered_at: string | null;
6076
6146
  desired_available: boolean | null;
6077
6147
  gateway_attempt_id: string | null;
6078
6148
  id: string;
@@ -6081,9 +6151,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6081
6151
  locked_by: string | null;
6082
6152
  next_attempt_at: string;
6083
6153
  number_of_pieces: number;
6154
+ product_id: string | null;
6084
6155
  sent_at: string | null;
6085
6156
  status: string;
6157
+ stock_mode: string | null;
6086
6158
  superseded_by: string | null;
6159
+ target_week: number | null;
6160
+ target_year: number | null;
6087
6161
  trade_item_id: string;
6088
6162
  updated_at: string;
6089
6163
  user_id: string;
@@ -6092,6 +6166,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6092
6166
  attempts?: number;
6093
6167
  connection_id: string;
6094
6168
  created_at?: string;
6169
+ dead_lettered_at?: string | null;
6095
6170
  desired_available?: boolean | null;
6096
6171
  gateway_attempt_id?: string | null;
6097
6172
  id?: string;
@@ -6100,9 +6175,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6100
6175
  locked_by?: string | null;
6101
6176
  next_attempt_at?: string;
6102
6177
  number_of_pieces?: number;
6178
+ product_id?: string | null;
6103
6179
  sent_at?: string | null;
6104
6180
  status?: string;
6181
+ stock_mode?: string | null;
6105
6182
  superseded_by?: string | null;
6183
+ target_week?: number | null;
6184
+ target_year?: number | null;
6106
6185
  trade_item_id: string;
6107
6186
  updated_at?: string;
6108
6187
  user_id: string;
@@ -6111,6 +6190,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6111
6190
  attempts?: number;
6112
6191
  connection_id?: string;
6113
6192
  created_at?: string;
6193
+ dead_lettered_at?: string | null;
6114
6194
  desired_available?: boolean | null;
6115
6195
  gateway_attempt_id?: string | null;
6116
6196
  id?: string;
@@ -6119,9 +6199,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6119
6199
  locked_by?: string | null;
6120
6200
  next_attempt_at?: string;
6121
6201
  number_of_pieces?: number;
6202
+ product_id?: string | null;
6122
6203
  sent_at?: string | null;
6123
6204
  status?: string;
6205
+ stock_mode?: string | null;
6124
6206
  superseded_by?: string | null;
6207
+ target_week?: number | null;
6208
+ target_year?: number | null;
6125
6209
  trade_item_id?: string;
6126
6210
  updated_at?: string;
6127
6211
  user_id?: string;
@@ -6530,6 +6614,87 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6530
6614
  referencedColumns: ["id"];
6531
6615
  }];
6532
6616
  };
6617
+ floriday_inventory_settings: {
6618
+ Row: {
6619
+ buffer_quantity: number;
6620
+ connection_id: string;
6621
+ created_at: string;
6622
+ desired_availability: boolean;
6623
+ desired_quantity: number;
6624
+ fixed_quantity: number | null;
6625
+ floriday_trade_item_id: string | null;
6626
+ id: string;
6627
+ last_confirmed_at: string | null;
6628
+ last_enqueued_at: string | null;
6629
+ last_published_at: string | null;
6630
+ last_sync_error: string | null;
6631
+ manual_quantity: number | null;
6632
+ maximum_quantity: number | null;
6633
+ product_id: string;
6634
+ quantity_control: string;
6635
+ remote_available: boolean | null;
6636
+ remote_checked_at: string | null;
6637
+ remote_quantity: number | null;
6638
+ stock_mode: string;
6639
+ sync_status: string;
6640
+ updated_at: string;
6641
+ updated_by: string | null;
6642
+ user_id: string;
6643
+ };
6644
+ Insert: {
6645
+ buffer_quantity?: number;
6646
+ connection_id: string;
6647
+ created_at?: string;
6648
+ desired_availability?: boolean;
6649
+ desired_quantity?: number;
6650
+ fixed_quantity?: number | null;
6651
+ floriday_trade_item_id?: string | null;
6652
+ id?: string;
6653
+ last_confirmed_at?: string | null;
6654
+ last_enqueued_at?: string | null;
6655
+ last_published_at?: string | null;
6656
+ last_sync_error?: string | null;
6657
+ manual_quantity?: number | null;
6658
+ maximum_quantity?: number | null;
6659
+ product_id: string;
6660
+ quantity_control?: string;
6661
+ remote_available?: boolean | null;
6662
+ remote_checked_at?: string | null;
6663
+ remote_quantity?: number | null;
6664
+ stock_mode?: string;
6665
+ sync_status?: string;
6666
+ updated_at?: string;
6667
+ updated_by?: string | null;
6668
+ user_id: string;
6669
+ };
6670
+ Update: {
6671
+ buffer_quantity?: number;
6672
+ connection_id?: string;
6673
+ created_at?: string;
6674
+ desired_availability?: boolean;
6675
+ desired_quantity?: number;
6676
+ fixed_quantity?: number | null;
6677
+ floriday_trade_item_id?: string | null;
6678
+ id?: string;
6679
+ last_confirmed_at?: string | null;
6680
+ last_enqueued_at?: string | null;
6681
+ last_published_at?: string | null;
6682
+ last_sync_error?: string | null;
6683
+ manual_quantity?: number | null;
6684
+ maximum_quantity?: number | null;
6685
+ product_id?: string;
6686
+ quantity_control?: string;
6687
+ remote_available?: boolean | null;
6688
+ remote_checked_at?: string | null;
6689
+ remote_quantity?: number | null;
6690
+ stock_mode?: string;
6691
+ sync_status?: string;
6692
+ updated_at?: string;
6693
+ updated_by?: string | null;
6694
+ user_id?: string;
6695
+ };
6696
+ Relationships: [];
6697
+ };
6533
6698
  floriday_invoices_cache: {
6534
6699
  Row: {
6535
6700
  buyer_organization_id: string | null;
@@ -6818,6 +6983,39 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6818
6983
  };
6819
6984
  Relationships: [];
6820
6985
  };
6986
+ floriday_sales_order_ingest: {
6987
+ Row: {
6988
+ connection_id: string;
6989
+ created_at: string;
6990
+ id: string;
6991
+ impact: import("../integrations/supabase/types").Json;
6992
+ order_status: string | null;
6993
+ order_version: number;
6994
+ processed_at: string;
6995
+ sales_order_id: string;
6996
+ };
6997
+ Insert: {
6998
+ connection_id: string;
6999
+ created_at?: string;
7000
+ id?: string;
7001
+ impact?: import("../integrations/supabase/types").Json;
7002
+ order_status?: string | null;
7003
+ order_version?: number;
7004
+ processed_at?: string;
7005
+ sales_order_id: string;
7006
+ };
7007
+ Update: {
7008
+ connection_id?: string;
7009
+ created_at?: string;
7010
+ id?: string;
7011
+ impact?: import("../integrations/supabase/types").Json;
7012
+ order_status?: string | null;
7013
+ order_version?: number;
7014
+ processed_at?: string;
7015
+ sales_order_id?: string;
7016
+ };
7017
+ Relationships: [];
7018
+ };
6821
7019
  floriday_sales_strategies_cache: {
6822
7020
  Row: {
6823
7021
  connection_id: string;
@@ -6917,6 +7115,39 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
6917
7115
  };
6918
7116
  Relationships: [];
6919
7117
  };
7118
+ floriday_sync_cursors: {
7119
+ Row: {
7120
+ connection_id: string;
7121
+ created_at: string;
7122
+ id: string;
7123
+ last_error: string | null;
7124
+ last_sync_at: string | null;
7125
+ resource_type: string;
7126
+ sequence_number: number;
7127
+ updated_at: string;
7128
+ };
7129
+ Insert: {
7130
+ connection_id: string;
7131
+ created_at?: string;
7132
+ id?: string;
7133
+ last_error?: string | null;
7134
+ last_sync_at?: string | null;
7135
+ resource_type: string;
7136
+ sequence_number?: number;
7137
+ updated_at?: string;
7138
+ };
7139
+ Update: {
7140
+ connection_id?: string;
7141
+ created_at?: string;
7142
+ id?: string;
7143
+ last_error?: string | null;
7144
+ last_sync_at?: string | null;
7145
+ resource_type?: string;
7146
+ sequence_number?: number;
7147
+ updated_at?: string;
7148
+ };
7149
+ Relationships: [];
7150
+ };
6920
7151
  floriday_sync_state: {
6921
7152
  Row: {
6922
7153
  connection_id: string;
@@ -7607,6 +7838,42 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
7607
7838
  };
7608
7839
  Relationships: [];
7609
7840
  };
7841
+ inventory_stock_snapshots: {
7842
+ Row: {
7843
+ connection_id: string;
7844
+ created_at: string;
7845
+ erp_available_quantity: number;
7846
+ floriday_desired_quantity: number;
7847
+ floriday_remote_quantity: number | null;
7848
+ granularity: string;
7849
+ id: string;
7850
+ snapshot_at: string;
7851
+ user_id: string | null;
7852
+ };
7853
+ Insert: {
7854
+ connection_id: string;
7855
+ created_at?: string;
7856
+ erp_available_quantity?: number;
7857
+ floriday_desired_quantity?: number;
7858
+ floriday_remote_quantity?: number | null;
7859
+ granularity?: string;
7860
+ id?: string;
7861
+ snapshot_at?: string;
7862
+ user_id?: string | null;
7863
+ };
7864
+ Update: {
7865
+ connection_id?: string;
7866
+ created_at?: string;
7867
+ erp_available_quantity?: number;
7868
+ floriday_desired_quantity?: number;
7869
+ floriday_remote_quantity?: number | null;
7870
+ granularity?: string;
7871
+ id?: string;
7872
+ snapshot_at?: string;
7873
+ user_id?: string | null;
7874
+ };
7875
+ Relationships: [];
7876
+ };
7610
7877
  invoice_items: {
7611
7878
  Row: {
7612
7879
  created_at: string;
@@ -13622,6 +13889,39 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13622
13889
  };
13623
13890
  Relationships: [];
13624
13891
  };
13892
+ print_dedupe_events: {
13893
+ Row: {
13894
+ bestaande_job_id: string | null;
13895
+ created_at: string;
13896
+ detail: string | null;
13897
+ documentnaam: string | null;
13898
+ documenttype: string | null;
13899
+ id: string;
13900
+ idempotentie_sleutel: string;
13901
+ reden: string;
13902
+ };
13903
+ Insert: {
13904
+ bestaande_job_id?: string | null;
13905
+ created_at?: string;
13906
+ detail?: string | null;
13907
+ documentnaam?: string | null;
13908
+ documenttype?: string | null;
13909
+ id?: string;
13910
+ idempotentie_sleutel: string;
13911
+ reden: string;
13912
+ };
13913
+ Update: {
13914
+ bestaande_job_id?: string | null;
13915
+ created_at?: string;
13916
+ detail?: string | null;
13917
+ documentnaam?: string | null;
13918
+ documenttype?: string | null;
13919
+ id?: string;
13920
+ idempotentie_sleutel?: string;
13921
+ reden?: string;
13922
+ };
13923
+ Relationships: [];
13924
+ };
13625
13925
  print_job_logs: {
13626
13926
  Row: {
13627
13927
  created_at: string;
@@ -13672,6 +13972,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13672
13972
  is_herprint: boolean;
13673
13973
  kopieen: number;
13674
13974
  layout_id: string | null;
13975
+ lokaal_opgeslagen_op: string | null;
13976
+ lokale_pdf_fout: string | null;
13977
+ lokale_pdf_status: string | null;
13675
13978
  opgepakt_op: string | null;
13676
13979
  paginas: number;
13677
13980
  payload: import("../integrations/supabase/types").Json;
@@ -13680,6 +13983,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13680
13983
  pogingen: number;
13681
13984
  printer_id: string | null;
13682
13985
  render_html: string | null;
13986
+ resultaat_pdf_base64: string | null;
13683
13987
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13684
13988
  updated_at: string;
13685
13989
  volgende_poging: string | null;
@@ -13704,6 +14008,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13704
14008
  is_herprint?: boolean;
13705
14009
  kopieen?: number;
13706
14010
  layout_id?: string | null;
14011
+ lokaal_opgeslagen_op?: string | null;
14012
+ lokale_pdf_fout?: string | null;
14013
+ lokale_pdf_status?: string | null;
13707
14014
  opgepakt_op?: string | null;
13708
14015
  paginas?: number;
13709
14016
  payload?: import("../integrations/supabase/types").Json;
@@ -13712,6 +14019,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13712
14019
  pogingen?: number;
13713
14020
  printer_id?: string | null;
13714
14021
  render_html?: string | null;
14022
+ resultaat_pdf_base64?: string | null;
13715
14023
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13716
14024
  updated_at?: string;
13717
14025
  volgende_poging?: string | null;
@@ -13736,6 +14044,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13736
14044
  is_herprint?: boolean;
13737
14045
  kopieen?: number;
13738
14046
  layout_id?: string | null;
14047
+ lokaal_opgeslagen_op?: string | null;
14048
+ lokale_pdf_fout?: string | null;
14049
+ lokale_pdf_status?: string | null;
13739
14050
  opgepakt_op?: string | null;
13740
14051
  paginas?: number;
13741
14052
  payload?: import("../integrations/supabase/types").Json;
@@ -13744,6 +14055,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13744
14055
  pogingen?: number;
13745
14056
  printer_id?: string | null;
13746
14057
  render_html?: string | null;
14058
+ resultaat_pdf_base64?: string | null;
13747
14059
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13748
14060
  updated_at?: string;
13749
14061
  volgende_poging?: string | null;
@@ -13862,6 +14174,39 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13862
14174
  };
13863
14175
  Relationships: [];
13864
14176
  };
14177
+ print_preview_events: {
14178
+ Row: {
14179
+ code: string | null;
14180
+ created_at: string;
14181
+ detail: import("../integrations/supabase/types").Json;
14182
+ id: string;
14183
+ queue_item_id: string | null;
14184
+ reden: string | null;
14185
+ station_slug: string | null;
14186
+ uitkomst: string;
14187
+ };
14188
+ Insert: {
14189
+ code?: string | null;
14190
+ created_at?: string;
14191
+ detail?: import("../integrations/supabase/types").Json;
14192
+ id?: string;
14193
+ queue_item_id?: string | null;
14194
+ reden?: string | null;
14195
+ station_slug?: string | null;
14196
+ uitkomst?: string;
14197
+ };
14198
+ Update: {
14199
+ code?: string | null;
14200
+ created_at?: string;
14201
+ detail?: import("../integrations/supabase/types").Json;
14202
+ id?: string;
14203
+ queue_item_id?: string | null;
14204
+ reden?: string | null;
14205
+ station_slug?: string | null;
14206
+ uitkomst?: string;
14207
+ };
14208
+ Relationships: [];
14209
+ };
13865
14210
  print_queue_runners: {
13866
14211
  Row: {
13867
14212
  actief: boolean;
@@ -14101,6 +14446,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
14101
14446
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14102
14447
  online: boolean;
14103
14448
  papierformaat: string;
14449
+ pdf_map: string | null;
14104
14450
  poort: number | null;
14105
14451
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14106
14452
  systeemnaam: string;
@@ -14126,6 +14472,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
14126
14472
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14127
14473
  online?: boolean;
14128
14474
  papierformaat?: string;
14475
+ pdf_map?: string | null;
14129
14476
  poort?: number | null;
14130
14477
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14131
14478
  systeemnaam?: string;
@@ -14151,6 +14498,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
14151
14498
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14152
14499
  online?: boolean;
14153
14500
  papierformaat?: string;
14501
+ pdf_map?: string | null;
14154
14502
  poort?: number | null;
14155
14503
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14156
14504
  systeemnaam?: string;
@@ -16720,6 +17068,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16720
17068
  };
16721
17069
  trade_item_stock: {
16722
17070
  Row: {
17071
+ change_source: string;
16723
17072
  connection_id: string;
16724
17073
  created_at: string;
16725
17074
  id: string;
@@ -16733,6 +17082,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16733
17082
  user_id: string;
16734
17083
  };
16735
17084
  Insert: {
17085
+ change_source?: string;
16736
17086
  connection_id: string;
16737
17087
  created_at?: string;
16738
17088
  id?: string;
@@ -16746,6 +17096,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16746
17096
  user_id: string;
16747
17097
  };
16748
17098
  Update: {
17099
+ change_source?: string;
16749
17100
  connection_id?: string;
16750
17101
  created_at?: string;
16751
17102
  id?: string;
@@ -20346,6 +20697,18 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20346
20697
  Args: never;
20347
20698
  Returns: number;
20348
20699
  };
20700
+ calculate_floriday_desired_stock: {
20701
+ Args: {
20702
+ p_connection_id: string;
20703
+ p_product_id: string;
20704
+ };
20705
+ Returns: {
20706
+ desired_availability: boolean;
20707
+ desired_quantity: number;
20708
+ erp_available: number;
20709
+ stock_mode: string;
20710
+ }[];
20711
+ };
20349
20712
  calculate_layer_stock: {
20350
20713
  Args: {
20351
20714
  p_product_id: string;
@@ -20407,6 +20770,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20407
20770
  is_herprint: boolean;
20408
20771
  kopieen: number;
20409
20772
  layout_id: string | null;
20773
+ lokaal_opgeslagen_op: string | null;
20774
+ lokale_pdf_fout: string | null;
20775
+ lokale_pdf_status: string | null;
20410
20776
  opgepakt_op: string | null;
20411
20777
  paginas: number;
20412
20778
  payload: import("../integrations/supabase/types").Json;
@@ -20415,6 +20781,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20415
20781
  pogingen: number;
20416
20782
  printer_id: string | null;
20417
20783
  render_html: string | null;
20784
+ resultaat_pdf_base64: string | null;
20418
20785
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20419
20786
  updated_at: string;
20420
20787
  volgende_poging: string | null;
@@ -20436,6 +20803,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20436
20803
  attempts: number;
20437
20804
  connection_id: string;
20438
20805
  created_at: string;
20806
+ dead_lettered_at: string | null;
20439
20807
  desired_available: boolean | null;
20440
20808
  gateway_attempt_id: string | null;
20441
20809
  id: string;
@@ -20444,9 +20812,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20444
20812
  locked_by: string | null;
20445
20813
  next_attempt_at: string;
20446
20814
  number_of_pieces: number;
20815
+ product_id: string | null;
20447
20816
  sent_at: string | null;
20448
20817
  status: string;
20818
+ stock_mode: string | null;
20449
20819
  superseded_by: string | null;
20820
+ target_week: number | null;
20821
+ target_year: number | null;
20450
20822
  trade_item_id: string;
20451
20823
  updated_at: string;
20452
20824
  user_id: string;
@@ -20506,6 +20878,53 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20506
20878
  isSetofReturn: true;
20507
20879
  };
20508
20880
  };
20881
+ claim_pdf_print_jobs: {
20882
+ Args: {
20883
+ _max?: number;
20884
+ };
20885
+ Returns: {
20886
+ agent_id: string | null;
20887
+ bron_job_id: string | null;
20888
+ created_at: string;
20889
+ documentnaam: string;
20890
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20891
+ extern_job_id: string | null;
20892
+ foutmelding: string | null;
20893
+ gebruiker_id: string | null;
20894
+ gebruiker_naam: string;
20895
+ gebruikte_bron: string | null;
20896
+ gebruikte_layout_id: string | null;
20897
+ gestart_op: string | null;
20898
+ herkomst: string | null;
20899
+ id: string;
20900
+ idempotentie_sleutel: string | null;
20901
+ is_herprint: boolean;
20902
+ kopieen: number;
20903
+ layout_id: string | null;
20904
+ lokaal_opgeslagen_op: string | null;
20905
+ lokale_pdf_fout: string | null;
20906
+ lokale_pdf_status: string | null;
20907
+ opgepakt_op: string | null;
20908
+ paginas: number;
20909
+ payload: import("../integrations/supabase/types").Json;
20910
+ pdf_base64: string | null;
20911
+ pdf_url: string | null;
20912
+ pogingen: number;
20913
+ printer_id: string | null;
20914
+ render_html: string | null;
20915
+ resultaat_pdf_base64: string | null;
20916
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20917
+ updated_at: string;
20918
+ volgende_poging: string | null;
20919
+ voltooid_op: string | null;
20920
+ }[];
20921
+ SetofOptions: {
20922
+ from: "*";
20923
+ to: "print_jobs";
20924
+ isOneToOne: false;
20925
+ isSetofReturn: true;
20926
+ };
20927
+ };
20509
20928
  claim_print_jobs: {
20510
20929
  Args: {
20511
20930
  _agent_id: string;
@@ -20530,6 +20949,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20530
20949
  is_herprint: boolean;
20531
20950
  kopieen: number;
20532
20951
  layout_id: string | null;
20952
+ lokaal_opgeslagen_op: string | null;
20953
+ lokale_pdf_fout: string | null;
20954
+ lokale_pdf_status: string | null;
20533
20955
  opgepakt_op: string | null;
20534
20956
  paginas: number;
20535
20957
  payload: import("../integrations/supabase/types").Json;
@@ -20538,6 +20960,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20538
20960
  pogingen: number;
20539
20961
  printer_id: string | null;
20540
20962
  render_html: string | null;
20963
+ resultaat_pdf_base64: string | null;
20541
20964
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20542
20965
  updated_at: string;
20543
20966
  volgende_poging: string | null;
@@ -20678,6 +21101,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20678
21101
  order_id: string;
20679
21102
  order_source: string;
20680
21103
  pick_date: string;
21104
+ printed_at: string;
21105
+ printed_today: boolean;
20681
21106
  status: string;
20682
21107
  }[];
20683
21108
  };
@@ -20874,6 +21299,24 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20874
21299
  };
20875
21300
  Returns: string;
20876
21301
  };
21302
+ floriday_capture_stock_snapshot: {
21303
+ Args: never;
21304
+ Returns: number;
21305
+ };
21306
+ floriday_cleanup_stock_queue_v2: {
21307
+ Args: never;
21308
+ Returns: undefined;
21309
+ };
21310
+ floriday_compact_stock_snapshots: {
21311
+ Args: never;
21312
+ Returns: undefined;
21313
+ };
21314
+ floriday_default_owner: {
21315
+ Args: {
21316
+ p_connection_id: string;
21317
+ };
21318
+ Returns: string;
21319
+ };
20877
21320
  floriday_effective_price: {
20878
21321
  Args: {
20879
21322
  _buyer_id: string;
@@ -20891,6 +21334,22 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20891
21334
  source_id: string;
20892
21335
  }[];
20893
21336
  };
21337
+ floriday_fill_publish_horizon: {
21338
+ Args: never;
21339
+ Returns: number;
21340
+ };
21341
+ floriday_publish_horizon_weeks: {
21342
+ Args: never;
21343
+ Returns: number;
21344
+ };
21345
+ floriday_recompute_inventory: {
21346
+ Args: {
21347
+ p_connection_id: string;
21348
+ p_force?: boolean;
21349
+ p_product_id: string;
21350
+ };
21351
+ Returns: undefined;
21352
+ };
20894
21353
  format_cart_number: {
20895
21354
  Args: {
20896
21355
  p_pick_date: string;
@@ -21386,6 +21845,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21386
21845
  };
21387
21846
  Returns: number;
21388
21847
  };
21848
+ logistics_cancel_orphan_tasks: {
21849
+ Args: never;
21850
+ Returns: number;
21851
+ };
21389
21852
  logistics_capacity_day_check: {
21390
21853
  Args: {
21391
21854
  p_from?: string;
@@ -21406,6 +21869,25 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21406
21869
  };
21407
21870
  Returns: number;
21408
21871
  };
21872
+ logistics_cart_index: {
21873
+ Args: {
21874
+ p_from?: string;
21875
+ p_to?: string;
21876
+ };
21877
+ Returns: {
21878
+ cart_id: string;
21879
+ cart_index: number;
21880
+ cart_label: string;
21881
+ is_shared: boolean;
21882
+ order_number: string;
21883
+ order_source: string;
21884
+ order_uuid: string;
21885
+ pick_date: string;
21886
+ printed_at: string;
21887
+ shifted: boolean;
21888
+ task_status: string;
21889
+ }[];
21890
+ };
21409
21891
  logistics_check_order_allowed: {
21410
21892
  Args: {
21411
21893
  p_lines: import("../integrations/supabase/types").Json;
@@ -21554,6 +22036,17 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21554
22036
  isSetofReturn: false;
21555
22037
  };
21556
22038
  };
22039
+ logistics_consistency_check: {
22040
+ Args: never;
22041
+ Returns: {
22042
+ agenda_carts: number;
22043
+ control_carts: number;
22044
+ ok: boolean;
22045
+ orphan_tasks: number;
22046
+ pick_date: string;
22047
+ raw_carts: number;
22048
+ }[];
22049
+ };
21557
22050
  logistics_delay_customer_email: {
21558
22051
  Args: {
21559
22052
  p_customer: string;
@@ -21643,6 +22136,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21643
22136
  isSetofReturn: false;
21644
22137
  };
21645
22138
  };
22139
+ logistics_floriday_cart_plan: {
22140
+ Args: {
22141
+ p_order_id: string;
22142
+ };
22143
+ Returns: {
22144
+ carrier_type: string;
22145
+ idx: number;
22146
+ packages: number;
22147
+ }[];
22148
+ };
21646
22149
  logistics_floriday_claim_pushes: {
21647
22150
  Args: {
21648
22151
  _lease_seconds?: number;
@@ -21747,6 +22250,25 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21747
22250
  };
21748
22251
  Returns: number;
21749
22252
  };
22253
+ logistics_order_overview: {
22254
+ Args: {
22255
+ p_from?: string;
22256
+ p_to?: string;
22257
+ };
22258
+ Returns: {
22259
+ cart_count: number;
22260
+ customer_name: string;
22261
+ delivery_date: string;
22262
+ order_number: string;
22263
+ order_source: string;
22264
+ order_uuid: string;
22265
+ pick_date: string;
22266
+ plant_count: number;
22267
+ printed_at: string;
22268
+ shifted: boolean;
22269
+ status: string;
22270
+ }[];
22271
+ };
21750
22272
  logistics_order_pick_day: {
21751
22273
  Args: {
21752
22274
  p_order_ref: string;
@@ -21759,6 +22281,22 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21759
22281
  };
21760
22282
  Returns: string;
21761
22283
  };
22284
+ logistics_pick_agenda: {
22285
+ Args: {
22286
+ p_from?: string;
22287
+ p_to?: string;
22288
+ };
22289
+ Returns: {
22290
+ cart_count: number;
22291
+ in_preparation: number;
22292
+ order_count: number;
22293
+ orders: import("../integrations/supabase/types").Json;
22294
+ pick_date: string;
22295
+ plant_count: number;
22296
+ ready: number;
22297
+ shifted_count: number;
22298
+ }[];
22299
+ };
21762
22300
  logistics_pick_email_purpose: {
21763
22301
  Args: never;
21764
22302
  Returns: string;
@@ -21813,6 +22351,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21813
22351
  };
21814
22352
  Returns: undefined;
21815
22353
  };
22354
+ logistics_plan_floriday_order: {
22355
+ Args: {
22356
+ p_buffer_id?: string;
22357
+ p_order_id: string;
22358
+ };
22359
+ Returns: number;
22360
+ };
21816
22361
  logistics_plan_impact_orders: {
21817
22362
  Args: {
21818
22363
  p_order_id: string;
@@ -21918,6 +22463,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21918
22463
  };
21919
22464
  Returns: import("../integrations/supabase/types").Json;
21920
22465
  };
22466
+ logistics_resolve_pick_document: {
22467
+ Args: {
22468
+ _is_herprint: boolean;
22469
+ _queue_item_id: string;
22470
+ _session_id: string;
22471
+ _voorbeeld: boolean;
22472
+ };
22473
+ Returns: import("../integrations/supabase/types").Json;
22474
+ };
21921
22475
  logistics_resolve_settings: {
21922
22476
  Args: {
21923
22477
  p_config_id: string;
@@ -22358,6 +22912,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22358
22912
  };
22359
22913
  pick_enqueue_print_job: {
22360
22914
  Args: {
22915
+ _is_herprint?: boolean;
22361
22916
  _printer_id?: string;
22362
22917
  _queue_item_id: string;
22363
22918
  _session_id?: string;
@@ -22371,6 +22926,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22371
22926
  };
22372
22927
  Returns: import("../integrations/supabase/types").Json;
22373
22928
  };
22929
+ pick_preview_job: {
22930
+ Args: {
22931
+ _queue_item_id: string;
22932
+ _station_slug: string;
22933
+ };
22934
+ Returns: import("../integrations/supabase/types").Json;
22935
+ };
22374
22936
  pick_print_job_status: {
22375
22937
  Args: {
22376
22938
  _job_id: string;
@@ -22548,6 +23110,24 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22548
23110
  };
22549
23111
  Returns: undefined;
22550
23112
  };
23113
+ print_preview_toestaan: {
23114
+ Args: {
23115
+ _max?: number;
23116
+ _queue_item_id: string;
23117
+ _station_slug: string;
23118
+ _venster_sec?: number;
23119
+ };
23120
+ Returns: import("../integrations/supabase/types").Json;
23121
+ };
23122
+ print_preview_weiger: {
23123
+ Args: {
23124
+ _code: string;
23125
+ _queue_item_id: string;
23126
+ _reden: string;
23127
+ _station_slug: string;
23128
+ };
23129
+ Returns: undefined;
23130
+ };
22551
23131
  process_logistics_event: {
22552
23132
  Args: {
22553
23133
  p_event_id: string;
@@ -22702,6 +23282,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22702
23282
  };
22703
23283
  Returns: string;
22704
23284
  };
23285
+ resolve_print_job_printer_id: {
23286
+ Args: {
23287
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
23288
+ };
23289
+ Returns: string;
23290
+ };
22705
23291
  resolve_product_id_for_item: {
22706
23292
  Args: {
22707
23293
  p_product_name: string;
@@ -23293,7 +23879,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23293
23879
  };
23294
23880
  CompositeTypes: { [_ in never]: never; };
23295
23881
  }, {
23296
- PostgrestVersion: "14.17";
23882
+ PostgrestVersion: "14.5";
23297
23883
  }>;
23298
23884
  userId: string;
23299
23885
  claims: import("@supabase/auth-js").User;
@@ -26172,6 +26758,84 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
26172
26758
  };
26173
26759
  Relationships: [];
26174
26760
  };
26761
+ delivery_notes: {
26762
+ Row: {
26763
+ byte_size: number | null;
26764
+ connection_id: string | null;
26765
+ content_type: string;
26766
+ created_at: string;
26767
+ error_message: string | null;
26768
+ fetched_at: string | null;
26769
+ fulfillment_order_id: string | null;
26770
+ http_status: number | null;
26771
+ id: string;
26772
+ label_code: string | null;
26773
+ letter: string | null;
26774
+ load_carrier_index: number | null;
26775
+ load_carrier_type: string | null;
26776
+ order_id: string | null;
26777
+ order_number: string | null;
26778
+ packages: number | null;
26779
+ source: string;
26780
+ status: string;
26781
+ storage_bucket: string;
26782
+ storage_path: string | null;
26783
+ updated_at: string;
26784
+ };
26785
+ Insert: {
26786
+ byte_size?: number | null;
26787
+ connection_id?: string | null;
26788
+ content_type?: string;
26789
+ created_at?: string;
26790
+ error_message?: string | null;
26791
+ fetched_at?: string | null;
26792
+ fulfillment_order_id?: string | null;
26793
+ http_status?: number | null;
26794
+ id?: string;
26795
+ label_code?: string | null;
26796
+ letter?: string | null;
26797
+ load_carrier_index?: number | null;
26798
+ load_carrier_type?: string | null;
26799
+ order_id?: string | null;
26800
+ order_number?: string | null;
26801
+ packages?: number | null;
26802
+ source?: string;
26803
+ status?: string;
26804
+ storage_bucket?: string;
26805
+ storage_path?: string | null;
26806
+ updated_at?: string;
26807
+ };
26808
+ Update: {
26809
+ byte_size?: number | null;
26810
+ connection_id?: string | null;
26811
+ content_type?: string;
26812
+ created_at?: string;
26813
+ error_message?: string | null;
26814
+ fetched_at?: string | null;
26815
+ fulfillment_order_id?: string | null;
26816
+ http_status?: number | null;
26817
+ id?: string;
26818
+ label_code?: string | null;
26819
+ letter?: string | null;
26820
+ load_carrier_index?: number | null;
26821
+ load_carrier_type?: string | null;
26822
+ order_id?: string | null;
26823
+ order_number?: string | null;
26824
+ packages?: number | null;
26825
+ source?: string;
26826
+ status?: string;
26827
+ storage_bucket?: string;
26828
+ storage_path?: string | null;
26829
+ updated_at?: string;
26830
+ };
26831
+ Relationships: [{
26832
+ foreignKeyName: "delivery_notes_order_id_fkey";
26833
+ columns: ["order_id"];
26834
+ isOneToOne: false;
26835
+ referencedRelation: "orders";
26836
+ referencedColumns: ["id"];
26837
+ }];
26838
+ };
26175
26839
  document_bronregels: {
26176
26840
  Row: {
26177
26841
  bron: string;
@@ -29225,10 +29889,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29225
29889
  };
29226
29890
  floriday_connections: {
29227
29891
  Row: {
29228
- access_token: string | null;
29229
29892
  api_key: string;
29230
- client_id: string;
29231
- client_secret: string;
29232
29893
  created_at: string;
29233
29894
  customers_endpoint: string | null;
29234
29895
  environment: string;
@@ -29243,10 +29904,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29243
29904
  updated_at: string;
29244
29905
  };
29245
29906
  Insert: {
29246
- access_token?: string | null;
29247
29907
  api_key: string;
29248
- client_id: string;
29249
- client_secret: string;
29250
29908
  created_at?: string;
29251
29909
  customers_endpoint?: string | null;
29252
29910
  environment: string;
@@ -29261,10 +29919,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29261
29919
  updated_at?: string;
29262
29920
  };
29263
29921
  Update: {
29264
- access_token?: string | null;
29265
29922
  api_key?: string;
29266
- client_id?: string;
29267
- client_secret?: string;
29268
29923
  created_at?: string;
29269
29924
  customers_endpoint?: string | null;
29270
29925
  environment?: string;
@@ -29348,6 +30003,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29348
30003
  attempts: number;
29349
30004
  connection_id: string;
29350
30005
  created_at: string;
30006
+ dead_lettered_at: string | null;
29351
30007
  desired_available: boolean | null;
29352
30008
  gateway_attempt_id: string | null;
29353
30009
  id: string;
@@ -29356,9 +30012,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29356
30012
  locked_by: string | null;
29357
30013
  next_attempt_at: string;
29358
30014
  number_of_pieces: number;
30015
+ product_id: string | null;
29359
30016
  sent_at: string | null;
29360
30017
  status: string;
30018
+ stock_mode: string | null;
29361
30019
  superseded_by: string | null;
30020
+ target_week: number | null;
30021
+ target_year: number | null;
29362
30022
  trade_item_id: string;
29363
30023
  updated_at: string;
29364
30024
  user_id: string;
@@ -29367,6 +30027,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29367
30027
  attempts?: number;
29368
30028
  connection_id: string;
29369
30029
  created_at?: string;
30030
+ dead_lettered_at?: string | null;
29370
30031
  desired_available?: boolean | null;
29371
30032
  gateway_attempt_id?: string | null;
29372
30033
  id?: string;
@@ -29375,9 +30036,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29375
30036
  locked_by?: string | null;
29376
30037
  next_attempt_at?: string;
29377
30038
  number_of_pieces?: number;
30039
+ product_id?: string | null;
29378
30040
  sent_at?: string | null;
29379
30041
  status?: string;
30042
+ stock_mode?: string | null;
29380
30043
  superseded_by?: string | null;
30044
+ target_week?: number | null;
30045
+ target_year?: number | null;
29381
30046
  trade_item_id: string;
29382
30047
  updated_at?: string;
29383
30048
  user_id: string;
@@ -29386,6 +30051,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29386
30051
  attempts?: number;
29387
30052
  connection_id?: string;
29388
30053
  created_at?: string;
30054
+ dead_lettered_at?: string | null;
29389
30055
  desired_available?: boolean | null;
29390
30056
  gateway_attempt_id?: string | null;
29391
30057
  id?: string;
@@ -29394,9 +30060,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29394
30060
  locked_by?: string | null;
29395
30061
  next_attempt_at?: string;
29396
30062
  number_of_pieces?: number;
30063
+ product_id?: string | null;
29397
30064
  sent_at?: string | null;
29398
30065
  status?: string;
30066
+ stock_mode?: string | null;
29399
30067
  superseded_by?: string | null;
30068
+ target_week?: number | null;
30069
+ target_year?: number | null;
29400
30070
  trade_item_id?: string;
29401
30071
  updated_at?: string;
29402
30072
  user_id?: string;
@@ -29805,6 +30475,87 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29805
30475
  referencedColumns: ["id"];
29806
30476
  }];
29807
30477
  };
30478
+ floriday_inventory_settings: {
30479
+ Row: {
30480
+ buffer_quantity: number;
30481
+ connection_id: string;
30482
+ created_at: string;
30483
+ desired_availability: boolean;
30484
+ desired_quantity: number;
30485
+ fixed_quantity: number | null;
30486
+ floriday_trade_item_id: string | null;
30487
+ id: string;
30488
+ last_confirmed_at: string | null;
30489
+ last_enqueued_at: string | null;
30490
+ last_published_at: string | null;
30491
+ last_sync_error: string | null;
30492
+ manual_quantity: number | null;
30493
+ maximum_quantity: number | null;
30494
+ product_id: string;
30495
+ quantity_control: string;
30496
+ remote_available: boolean | null;
30497
+ remote_checked_at: string | null;
30498
+ remote_quantity: number | null;
30499
+ stock_mode: string;
30500
+ sync_status: string;
30501
+ updated_at: string;
30502
+ updated_by: string | null;
30503
+ user_id: string;
30504
+ };
30505
+ Insert: {
30506
+ buffer_quantity?: number;
30507
+ connection_id: string;
30508
+ created_at?: string;
30509
+ desired_availability?: boolean;
30510
+ desired_quantity?: number;
30511
+ fixed_quantity?: number | null;
30512
+ floriday_trade_item_id?: string | null;
30513
+ id?: string;
30514
+ last_confirmed_at?: string | null;
30515
+ last_enqueued_at?: string | null;
30516
+ last_published_at?: string | null;
30517
+ last_sync_error?: string | null;
30518
+ manual_quantity?: number | null;
30519
+ maximum_quantity?: number | null;
30520
+ product_id: string;
30521
+ quantity_control?: string;
30522
+ remote_available?: boolean | null;
30523
+ remote_checked_at?: string | null;
30524
+ remote_quantity?: number | null;
30525
+ stock_mode?: string;
30526
+ sync_status?: string;
30527
+ updated_at?: string;
30528
+ updated_by?: string | null;
30529
+ user_id: string;
30530
+ };
30531
+ Update: {
30532
+ buffer_quantity?: number;
30533
+ connection_id?: string;
30534
+ created_at?: string;
30535
+ desired_availability?: boolean;
30536
+ desired_quantity?: number;
30537
+ fixed_quantity?: number | null;
30538
+ floriday_trade_item_id?: string | null;
30539
+ id?: string;
30540
+ last_confirmed_at?: string | null;
30541
+ last_enqueued_at?: string | null;
30542
+ last_published_at?: string | null;
30543
+ last_sync_error?: string | null;
30544
+ manual_quantity?: number | null;
30545
+ maximum_quantity?: number | null;
30546
+ product_id?: string;
30547
+ quantity_control?: string;
30548
+ remote_available?: boolean | null;
30549
+ remote_checked_at?: string | null;
30550
+ remote_quantity?: number | null;
30551
+ stock_mode?: string;
30552
+ sync_status?: string;
30553
+ updated_at?: string;
30554
+ updated_by?: string | null;
30555
+ user_id?: string;
30556
+ };
30557
+ Relationships: [];
30558
+ };
29808
30559
  floriday_invoices_cache: {
29809
30560
  Row: {
29810
30561
  buyer_organization_id: string | null;
@@ -30093,6 +30844,39 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
30093
30844
  };
30094
30845
  Relationships: [];
30095
30846
  };
30847
+ floriday_sales_order_ingest: {
30848
+ Row: {
30849
+ connection_id: string;
30850
+ created_at: string;
30851
+ id: string;
30852
+ impact: import("../integrations/supabase/types").Json;
30853
+ order_status: string | null;
30854
+ order_version: number;
30855
+ processed_at: string;
30856
+ sales_order_id: string;
30857
+ };
30858
+ Insert: {
30859
+ connection_id: string;
30860
+ created_at?: string;
30861
+ id?: string;
30862
+ impact?: import("../integrations/supabase/types").Json;
30863
+ order_status?: string | null;
30864
+ order_version?: number;
30865
+ processed_at?: string;
30866
+ sales_order_id: string;
30867
+ };
30868
+ Update: {
30869
+ connection_id?: string;
30870
+ created_at?: string;
30871
+ id?: string;
30872
+ impact?: import("../integrations/supabase/types").Json;
30873
+ order_status?: string | null;
30874
+ order_version?: number;
30875
+ processed_at?: string;
30876
+ sales_order_id?: string;
30877
+ };
30878
+ Relationships: [];
30879
+ };
30096
30880
  floriday_sales_strategies_cache: {
30097
30881
  Row: {
30098
30882
  connection_id: string;
@@ -30192,6 +30976,39 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
30192
30976
  };
30193
30977
  Relationships: [];
30194
30978
  };
30979
+ floriday_sync_cursors: {
30980
+ Row: {
30981
+ connection_id: string;
30982
+ created_at: string;
30983
+ id: string;
30984
+ last_error: string | null;
30985
+ last_sync_at: string | null;
30986
+ resource_type: string;
30987
+ sequence_number: number;
30988
+ updated_at: string;
30989
+ };
30990
+ Insert: {
30991
+ connection_id: string;
30992
+ created_at?: string;
30993
+ id?: string;
30994
+ last_error?: string | null;
30995
+ last_sync_at?: string | null;
30996
+ resource_type: string;
30997
+ sequence_number?: number;
30998
+ updated_at?: string;
30999
+ };
31000
+ Update: {
31001
+ connection_id?: string;
31002
+ created_at?: string;
31003
+ id?: string;
31004
+ last_error?: string | null;
31005
+ last_sync_at?: string | null;
31006
+ resource_type?: string;
31007
+ sequence_number?: number;
31008
+ updated_at?: string;
31009
+ };
31010
+ Relationships: [];
31011
+ };
30195
31012
  floriday_sync_state: {
30196
31013
  Row: {
30197
31014
  connection_id: string;
@@ -30882,6 +31699,42 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
30882
31699
  };
30883
31700
  Relationships: [];
30884
31701
  };
31702
+ inventory_stock_snapshots: {
31703
+ Row: {
31704
+ connection_id: string;
31705
+ created_at: string;
31706
+ erp_available_quantity: number;
31707
+ floriday_desired_quantity: number;
31708
+ floriday_remote_quantity: number | null;
31709
+ granularity: string;
31710
+ id: string;
31711
+ snapshot_at: string;
31712
+ user_id: string | null;
31713
+ };
31714
+ Insert: {
31715
+ connection_id: string;
31716
+ created_at?: string;
31717
+ erp_available_quantity?: number;
31718
+ floriday_desired_quantity?: number;
31719
+ floriday_remote_quantity?: number | null;
31720
+ granularity?: string;
31721
+ id?: string;
31722
+ snapshot_at?: string;
31723
+ user_id?: string | null;
31724
+ };
31725
+ Update: {
31726
+ connection_id?: string;
31727
+ created_at?: string;
31728
+ erp_available_quantity?: number;
31729
+ floriday_desired_quantity?: number;
31730
+ floriday_remote_quantity?: number | null;
31731
+ granularity?: string;
31732
+ id?: string;
31733
+ snapshot_at?: string;
31734
+ user_id?: string | null;
31735
+ };
31736
+ Relationships: [];
31737
+ };
30885
31738
  invoice_items: {
30886
31739
  Row: {
30887
31740
  created_at: string;
@@ -36897,6 +37750,39 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36897
37750
  };
36898
37751
  Relationships: [];
36899
37752
  };
37753
+ print_dedupe_events: {
37754
+ Row: {
37755
+ bestaande_job_id: string | null;
37756
+ created_at: string;
37757
+ detail: string | null;
37758
+ documentnaam: string | null;
37759
+ documenttype: string | null;
37760
+ id: string;
37761
+ idempotentie_sleutel: string;
37762
+ reden: string;
37763
+ };
37764
+ Insert: {
37765
+ bestaande_job_id?: string | null;
37766
+ created_at?: string;
37767
+ detail?: string | null;
37768
+ documentnaam?: string | null;
37769
+ documenttype?: string | null;
37770
+ id?: string;
37771
+ idempotentie_sleutel: string;
37772
+ reden: string;
37773
+ };
37774
+ Update: {
37775
+ bestaande_job_id?: string | null;
37776
+ created_at?: string;
37777
+ detail?: string | null;
37778
+ documentnaam?: string | null;
37779
+ documenttype?: string | null;
37780
+ id?: string;
37781
+ idempotentie_sleutel?: string;
37782
+ reden?: string;
37783
+ };
37784
+ Relationships: [];
37785
+ };
36900
37786
  print_job_logs: {
36901
37787
  Row: {
36902
37788
  created_at: string;
@@ -36947,6 +37833,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36947
37833
  is_herprint: boolean;
36948
37834
  kopieen: number;
36949
37835
  layout_id: string | null;
37836
+ lokaal_opgeslagen_op: string | null;
37837
+ lokale_pdf_fout: string | null;
37838
+ lokale_pdf_status: string | null;
36950
37839
  opgepakt_op: string | null;
36951
37840
  paginas: number;
36952
37841
  payload: import("../integrations/supabase/types").Json;
@@ -36955,6 +37844,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36955
37844
  pogingen: number;
36956
37845
  printer_id: string | null;
36957
37846
  render_html: string | null;
37847
+ resultaat_pdf_base64: string | null;
36958
37848
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36959
37849
  updated_at: string;
36960
37850
  volgende_poging: string | null;
@@ -36979,6 +37869,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36979
37869
  is_herprint?: boolean;
36980
37870
  kopieen?: number;
36981
37871
  layout_id?: string | null;
37872
+ lokaal_opgeslagen_op?: string | null;
37873
+ lokale_pdf_fout?: string | null;
37874
+ lokale_pdf_status?: string | null;
36982
37875
  opgepakt_op?: string | null;
36983
37876
  paginas?: number;
36984
37877
  payload?: import("../integrations/supabase/types").Json;
@@ -36987,6 +37880,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36987
37880
  pogingen?: number;
36988
37881
  printer_id?: string | null;
36989
37882
  render_html?: string | null;
37883
+ resultaat_pdf_base64?: string | null;
36990
37884
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36991
37885
  updated_at?: string;
36992
37886
  volgende_poging?: string | null;
@@ -37011,6 +37905,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37011
37905
  is_herprint?: boolean;
37012
37906
  kopieen?: number;
37013
37907
  layout_id?: string | null;
37908
+ lokaal_opgeslagen_op?: string | null;
37909
+ lokale_pdf_fout?: string | null;
37910
+ lokale_pdf_status?: string | null;
37014
37911
  opgepakt_op?: string | null;
37015
37912
  paginas?: number;
37016
37913
  payload?: import("../integrations/supabase/types").Json;
@@ -37019,6 +37916,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37019
37916
  pogingen?: number;
37020
37917
  printer_id?: string | null;
37021
37918
  render_html?: string | null;
37919
+ resultaat_pdf_base64?: string | null;
37022
37920
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
37023
37921
  updated_at?: string;
37024
37922
  volgende_poging?: string | null;
@@ -37137,6 +38035,39 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37137
38035
  };
37138
38036
  Relationships: [];
37139
38037
  };
38038
+ print_preview_events: {
38039
+ Row: {
38040
+ code: string | null;
38041
+ created_at: string;
38042
+ detail: import("../integrations/supabase/types").Json;
38043
+ id: string;
38044
+ queue_item_id: string | null;
38045
+ reden: string | null;
38046
+ station_slug: string | null;
38047
+ uitkomst: string;
38048
+ };
38049
+ Insert: {
38050
+ code?: string | null;
38051
+ created_at?: string;
38052
+ detail?: import("../integrations/supabase/types").Json;
38053
+ id?: string;
38054
+ queue_item_id?: string | null;
38055
+ reden?: string | null;
38056
+ station_slug?: string | null;
38057
+ uitkomst?: string;
38058
+ };
38059
+ Update: {
38060
+ code?: string | null;
38061
+ created_at?: string;
38062
+ detail?: import("../integrations/supabase/types").Json;
38063
+ id?: string;
38064
+ queue_item_id?: string | null;
38065
+ reden?: string | null;
38066
+ station_slug?: string | null;
38067
+ uitkomst?: string;
38068
+ };
38069
+ Relationships: [];
38070
+ };
37140
38071
  print_queue_runners: {
37141
38072
  Row: {
37142
38073
  actief: boolean;
@@ -37376,6 +38307,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37376
38307
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37377
38308
  online: boolean;
37378
38309
  papierformaat: string;
38310
+ pdf_map: string | null;
37379
38311
  poort: number | null;
37380
38312
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37381
38313
  systeemnaam: string;
@@ -37401,6 +38333,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37401
38333
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37402
38334
  online?: boolean;
37403
38335
  papierformaat?: string;
38336
+ pdf_map?: string | null;
37404
38337
  poort?: number | null;
37405
38338
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37406
38339
  systeemnaam?: string;
@@ -37426,6 +38359,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37426
38359
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37427
38360
  online?: boolean;
37428
38361
  papierformaat?: string;
38362
+ pdf_map?: string | null;
37429
38363
  poort?: number | null;
37430
38364
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37431
38365
  systeemnaam?: string;
@@ -39995,6 +40929,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39995
40929
  };
39996
40930
  trade_item_stock: {
39997
40931
  Row: {
40932
+ change_source: string;
39998
40933
  connection_id: string;
39999
40934
  created_at: string;
40000
40935
  id: string;
@@ -40008,6 +40943,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40008
40943
  user_id: string;
40009
40944
  };
40010
40945
  Insert: {
40946
+ change_source?: string;
40011
40947
  connection_id: string;
40012
40948
  created_at?: string;
40013
40949
  id?: string;
@@ -40021,6 +40957,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40021
40957
  user_id: string;
40022
40958
  };
40023
40959
  Update: {
40960
+ change_source?: string;
40024
40961
  connection_id?: string;
40025
40962
  created_at?: string;
40026
40963
  id?: string;
@@ -43621,6 +44558,18 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43621
44558
  Args: never;
43622
44559
  Returns: number;
43623
44560
  };
44561
+ calculate_floriday_desired_stock: {
44562
+ Args: {
44563
+ p_connection_id: string;
44564
+ p_product_id: string;
44565
+ };
44566
+ Returns: {
44567
+ desired_availability: boolean;
44568
+ desired_quantity: number;
44569
+ erp_available: number;
44570
+ stock_mode: string;
44571
+ }[];
44572
+ };
43624
44573
  calculate_layer_stock: {
43625
44574
  Args: {
43626
44575
  p_product_id: string;
@@ -43682,6 +44631,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43682
44631
  is_herprint: boolean;
43683
44632
  kopieen: number;
43684
44633
  layout_id: string | null;
44634
+ lokaal_opgeslagen_op: string | null;
44635
+ lokale_pdf_fout: string | null;
44636
+ lokale_pdf_status: string | null;
43685
44637
  opgepakt_op: string | null;
43686
44638
  paginas: number;
43687
44639
  payload: import("../integrations/supabase/types").Json;
@@ -43690,6 +44642,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43690
44642
  pogingen: number;
43691
44643
  printer_id: string | null;
43692
44644
  render_html: string | null;
44645
+ resultaat_pdf_base64: string | null;
43693
44646
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43694
44647
  updated_at: string;
43695
44648
  volgende_poging: string | null;
@@ -43711,6 +44664,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43711
44664
  attempts: number;
43712
44665
  connection_id: string;
43713
44666
  created_at: string;
44667
+ dead_lettered_at: string | null;
43714
44668
  desired_available: boolean | null;
43715
44669
  gateway_attempt_id: string | null;
43716
44670
  id: string;
@@ -43719,9 +44673,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43719
44673
  locked_by: string | null;
43720
44674
  next_attempt_at: string;
43721
44675
  number_of_pieces: number;
44676
+ product_id: string | null;
43722
44677
  sent_at: string | null;
43723
44678
  status: string;
44679
+ stock_mode: string | null;
43724
44680
  superseded_by: string | null;
44681
+ target_week: number | null;
44682
+ target_year: number | null;
43725
44683
  trade_item_id: string;
43726
44684
  updated_at: string;
43727
44685
  user_id: string;
@@ -43781,6 +44739,53 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43781
44739
  isSetofReturn: true;
43782
44740
  };
43783
44741
  };
44742
+ claim_pdf_print_jobs: {
44743
+ Args: {
44744
+ _max?: number;
44745
+ };
44746
+ Returns: {
44747
+ agent_id: string | null;
44748
+ bron_job_id: string | null;
44749
+ created_at: string;
44750
+ documentnaam: string;
44751
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44752
+ extern_job_id: string | null;
44753
+ foutmelding: string | null;
44754
+ gebruiker_id: string | null;
44755
+ gebruiker_naam: string;
44756
+ gebruikte_bron: string | null;
44757
+ gebruikte_layout_id: string | null;
44758
+ gestart_op: string | null;
44759
+ herkomst: string | null;
44760
+ id: string;
44761
+ idempotentie_sleutel: string | null;
44762
+ is_herprint: boolean;
44763
+ kopieen: number;
44764
+ layout_id: string | null;
44765
+ lokaal_opgeslagen_op: string | null;
44766
+ lokale_pdf_fout: string | null;
44767
+ lokale_pdf_status: string | null;
44768
+ opgepakt_op: string | null;
44769
+ paginas: number;
44770
+ payload: import("../integrations/supabase/types").Json;
44771
+ pdf_base64: string | null;
44772
+ pdf_url: string | null;
44773
+ pogingen: number;
44774
+ printer_id: string | null;
44775
+ render_html: string | null;
44776
+ resultaat_pdf_base64: string | null;
44777
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44778
+ updated_at: string;
44779
+ volgende_poging: string | null;
44780
+ voltooid_op: string | null;
44781
+ }[];
44782
+ SetofOptions: {
44783
+ from: "*";
44784
+ to: "print_jobs";
44785
+ isOneToOne: false;
44786
+ isSetofReturn: true;
44787
+ };
44788
+ };
43784
44789
  claim_print_jobs: {
43785
44790
  Args: {
43786
44791
  _agent_id: string;
@@ -43805,6 +44810,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43805
44810
  is_herprint: boolean;
43806
44811
  kopieen: number;
43807
44812
  layout_id: string | null;
44813
+ lokaal_opgeslagen_op: string | null;
44814
+ lokale_pdf_fout: string | null;
44815
+ lokale_pdf_status: string | null;
43808
44816
  opgepakt_op: string | null;
43809
44817
  paginas: number;
43810
44818
  payload: import("../integrations/supabase/types").Json;
@@ -43813,6 +44821,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43813
44821
  pogingen: number;
43814
44822
  printer_id: string | null;
43815
44823
  render_html: string | null;
44824
+ resultaat_pdf_base64: string | null;
43816
44825
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43817
44826
  updated_at: string;
43818
44827
  volgende_poging: string | null;
@@ -43953,6 +44962,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43953
44962
  order_id: string;
43954
44963
  order_source: string;
43955
44964
  pick_date: string;
44965
+ printed_at: string;
44966
+ printed_today: boolean;
43956
44967
  status: string;
43957
44968
  }[];
43958
44969
  };
@@ -44149,6 +45160,24 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44149
45160
  };
44150
45161
  Returns: string;
44151
45162
  };
45163
+ floriday_capture_stock_snapshot: {
45164
+ Args: never;
45165
+ Returns: number;
45166
+ };
45167
+ floriday_cleanup_stock_queue_v2: {
45168
+ Args: never;
45169
+ Returns: undefined;
45170
+ };
45171
+ floriday_compact_stock_snapshots: {
45172
+ Args: never;
45173
+ Returns: undefined;
45174
+ };
45175
+ floriday_default_owner: {
45176
+ Args: {
45177
+ p_connection_id: string;
45178
+ };
45179
+ Returns: string;
45180
+ };
44152
45181
  floriday_effective_price: {
44153
45182
  Args: {
44154
45183
  _buyer_id: string;
@@ -44166,6 +45195,22 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44166
45195
  source_id: string;
44167
45196
  }[];
44168
45197
  };
45198
+ floriday_fill_publish_horizon: {
45199
+ Args: never;
45200
+ Returns: number;
45201
+ };
45202
+ floriday_publish_horizon_weeks: {
45203
+ Args: never;
45204
+ Returns: number;
45205
+ };
45206
+ floriday_recompute_inventory: {
45207
+ Args: {
45208
+ p_connection_id: string;
45209
+ p_force?: boolean;
45210
+ p_product_id: string;
45211
+ };
45212
+ Returns: undefined;
45213
+ };
44169
45214
  format_cart_number: {
44170
45215
  Args: {
44171
45216
  p_pick_date: string;
@@ -44661,6 +45706,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44661
45706
  };
44662
45707
  Returns: number;
44663
45708
  };
45709
+ logistics_cancel_orphan_tasks: {
45710
+ Args: never;
45711
+ Returns: number;
45712
+ };
44664
45713
  logistics_capacity_day_check: {
44665
45714
  Args: {
44666
45715
  p_from?: string;
@@ -44681,6 +45730,25 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44681
45730
  };
44682
45731
  Returns: number;
44683
45732
  };
45733
+ logistics_cart_index: {
45734
+ Args: {
45735
+ p_from?: string;
45736
+ p_to?: string;
45737
+ };
45738
+ Returns: {
45739
+ cart_id: string;
45740
+ cart_index: number;
45741
+ cart_label: string;
45742
+ is_shared: boolean;
45743
+ order_number: string;
45744
+ order_source: string;
45745
+ order_uuid: string;
45746
+ pick_date: string;
45747
+ printed_at: string;
45748
+ shifted: boolean;
45749
+ task_status: string;
45750
+ }[];
45751
+ };
44684
45752
  logistics_check_order_allowed: {
44685
45753
  Args: {
44686
45754
  p_lines: import("../integrations/supabase/types").Json;
@@ -44829,6 +45897,17 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44829
45897
  isSetofReturn: false;
44830
45898
  };
44831
45899
  };
45900
+ logistics_consistency_check: {
45901
+ Args: never;
45902
+ Returns: {
45903
+ agenda_carts: number;
45904
+ control_carts: number;
45905
+ ok: boolean;
45906
+ orphan_tasks: number;
45907
+ pick_date: string;
45908
+ raw_carts: number;
45909
+ }[];
45910
+ };
44832
45911
  logistics_delay_customer_email: {
44833
45912
  Args: {
44834
45913
  p_customer: string;
@@ -44918,6 +45997,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44918
45997
  isSetofReturn: false;
44919
45998
  };
44920
45999
  };
46000
+ logistics_floriday_cart_plan: {
46001
+ Args: {
46002
+ p_order_id: string;
46003
+ };
46004
+ Returns: {
46005
+ carrier_type: string;
46006
+ idx: number;
46007
+ packages: number;
46008
+ }[];
46009
+ };
44921
46010
  logistics_floriday_claim_pushes: {
44922
46011
  Args: {
44923
46012
  _lease_seconds?: number;
@@ -45022,6 +46111,25 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45022
46111
  };
45023
46112
  Returns: number;
45024
46113
  };
46114
+ logistics_order_overview: {
46115
+ Args: {
46116
+ p_from?: string;
46117
+ p_to?: string;
46118
+ };
46119
+ Returns: {
46120
+ cart_count: number;
46121
+ customer_name: string;
46122
+ delivery_date: string;
46123
+ order_number: string;
46124
+ order_source: string;
46125
+ order_uuid: string;
46126
+ pick_date: string;
46127
+ plant_count: number;
46128
+ printed_at: string;
46129
+ shifted: boolean;
46130
+ status: string;
46131
+ }[];
46132
+ };
45025
46133
  logistics_order_pick_day: {
45026
46134
  Args: {
45027
46135
  p_order_ref: string;
@@ -45034,6 +46142,22 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45034
46142
  };
45035
46143
  Returns: string;
45036
46144
  };
46145
+ logistics_pick_agenda: {
46146
+ Args: {
46147
+ p_from?: string;
46148
+ p_to?: string;
46149
+ };
46150
+ Returns: {
46151
+ cart_count: number;
46152
+ in_preparation: number;
46153
+ order_count: number;
46154
+ orders: import("../integrations/supabase/types").Json;
46155
+ pick_date: string;
46156
+ plant_count: number;
46157
+ ready: number;
46158
+ shifted_count: number;
46159
+ }[];
46160
+ };
45037
46161
  logistics_pick_email_purpose: {
45038
46162
  Args: never;
45039
46163
  Returns: string;
@@ -45088,6 +46212,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45088
46212
  };
45089
46213
  Returns: undefined;
45090
46214
  };
46215
+ logistics_plan_floriday_order: {
46216
+ Args: {
46217
+ p_buffer_id?: string;
46218
+ p_order_id: string;
46219
+ };
46220
+ Returns: number;
46221
+ };
45091
46222
  logistics_plan_impact_orders: {
45092
46223
  Args: {
45093
46224
  p_order_id: string;
@@ -45193,6 +46324,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45193
46324
  };
45194
46325
  Returns: import("../integrations/supabase/types").Json;
45195
46326
  };
46327
+ logistics_resolve_pick_document: {
46328
+ Args: {
46329
+ _is_herprint: boolean;
46330
+ _queue_item_id: string;
46331
+ _session_id: string;
46332
+ _voorbeeld: boolean;
46333
+ };
46334
+ Returns: import("../integrations/supabase/types").Json;
46335
+ };
45196
46336
  logistics_resolve_settings: {
45197
46337
  Args: {
45198
46338
  p_config_id: string;
@@ -45633,6 +46773,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45633
46773
  };
45634
46774
  pick_enqueue_print_job: {
45635
46775
  Args: {
46776
+ _is_herprint?: boolean;
45636
46777
  _printer_id?: string;
45637
46778
  _queue_item_id: string;
45638
46779
  _session_id?: string;
@@ -45646,6 +46787,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45646
46787
  };
45647
46788
  Returns: import("../integrations/supabase/types").Json;
45648
46789
  };
46790
+ pick_preview_job: {
46791
+ Args: {
46792
+ _queue_item_id: string;
46793
+ _station_slug: string;
46794
+ };
46795
+ Returns: import("../integrations/supabase/types").Json;
46796
+ };
45649
46797
  pick_print_job_status: {
45650
46798
  Args: {
45651
46799
  _job_id: string;
@@ -45823,6 +46971,24 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45823
46971
  };
45824
46972
  Returns: undefined;
45825
46973
  };
46974
+ print_preview_toestaan: {
46975
+ Args: {
46976
+ _max?: number;
46977
+ _queue_item_id: string;
46978
+ _station_slug: string;
46979
+ _venster_sec?: number;
46980
+ };
46981
+ Returns: import("../integrations/supabase/types").Json;
46982
+ };
46983
+ print_preview_weiger: {
46984
+ Args: {
46985
+ _code: string;
46986
+ _queue_item_id: string;
46987
+ _reden: string;
46988
+ _station_slug: string;
46989
+ };
46990
+ Returns: undefined;
46991
+ };
45826
46992
  process_logistics_event: {
45827
46993
  Args: {
45828
46994
  p_event_id: string;
@@ -45977,6 +47143,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45977
47143
  };
45978
47144
  Returns: string;
45979
47145
  };
47146
+ resolve_print_job_printer_id: {
47147
+ Args: {
47148
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
47149
+ };
47150
+ Returns: string;
47151
+ };
45980
47152
  resolve_product_id_for_item: {
45981
47153
  Args: {
45982
47154
  p_product_name: string;
@@ -46568,7 +47740,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
46568
47740
  };
46569
47741
  CompositeTypes: { [_ in never]: never; };
46570
47742
  }, {
46571
- PostgrestVersion: "14.17";
47743
+ PostgrestVersion: "14.5";
46572
47744
  }>;
46573
47745
  userId: string;
46574
47746
  claims: import("@supabase/auth-js").User;
@@ -49446,6 +50618,84 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
49446
50618
  };
49447
50619
  Relationships: [];
49448
50620
  };
50621
+ delivery_notes: {
50622
+ Row: {
50623
+ byte_size: number | null;
50624
+ connection_id: string | null;
50625
+ content_type: string;
50626
+ created_at: string;
50627
+ error_message: string | null;
50628
+ fetched_at: string | null;
50629
+ fulfillment_order_id: string | null;
50630
+ http_status: number | null;
50631
+ id: string;
50632
+ label_code: string | null;
50633
+ letter: string | null;
50634
+ load_carrier_index: number | null;
50635
+ load_carrier_type: string | null;
50636
+ order_id: string | null;
50637
+ order_number: string | null;
50638
+ packages: number | null;
50639
+ source: string;
50640
+ status: string;
50641
+ storage_bucket: string;
50642
+ storage_path: string | null;
50643
+ updated_at: string;
50644
+ };
50645
+ Insert: {
50646
+ byte_size?: number | null;
50647
+ connection_id?: string | null;
50648
+ content_type?: string;
50649
+ created_at?: string;
50650
+ error_message?: string | null;
50651
+ fetched_at?: string | null;
50652
+ fulfillment_order_id?: string | null;
50653
+ http_status?: number | null;
50654
+ id?: string;
50655
+ label_code?: string | null;
50656
+ letter?: string | null;
50657
+ load_carrier_index?: number | null;
50658
+ load_carrier_type?: string | null;
50659
+ order_id?: string | null;
50660
+ order_number?: string | null;
50661
+ packages?: number | null;
50662
+ source?: string;
50663
+ status?: string;
50664
+ storage_bucket?: string;
50665
+ storage_path?: string | null;
50666
+ updated_at?: string;
50667
+ };
50668
+ Update: {
50669
+ byte_size?: number | null;
50670
+ connection_id?: string | null;
50671
+ content_type?: string;
50672
+ created_at?: string;
50673
+ error_message?: string | null;
50674
+ fetched_at?: string | null;
50675
+ fulfillment_order_id?: string | null;
50676
+ http_status?: number | null;
50677
+ id?: string;
50678
+ label_code?: string | null;
50679
+ letter?: string | null;
50680
+ load_carrier_index?: number | null;
50681
+ load_carrier_type?: string | null;
50682
+ order_id?: string | null;
50683
+ order_number?: string | null;
50684
+ packages?: number | null;
50685
+ source?: string;
50686
+ status?: string;
50687
+ storage_bucket?: string;
50688
+ storage_path?: string | null;
50689
+ updated_at?: string;
50690
+ };
50691
+ Relationships: [{
50692
+ foreignKeyName: "delivery_notes_order_id_fkey";
50693
+ columns: ["order_id"];
50694
+ isOneToOne: false;
50695
+ referencedRelation: "orders";
50696
+ referencedColumns: ["id"];
50697
+ }];
50698
+ };
49449
50699
  document_bronregels: {
49450
50700
  Row: {
49451
50701
  bron: string;
@@ -52499,10 +53749,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52499
53749
  };
52500
53750
  floriday_connections: {
52501
53751
  Row: {
52502
- access_token: string | null;
52503
53752
  api_key: string;
52504
- client_id: string;
52505
- client_secret: string;
52506
53753
  created_at: string;
52507
53754
  customers_endpoint: string | null;
52508
53755
  environment: string;
@@ -52517,10 +53764,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52517
53764
  updated_at: string;
52518
53765
  };
52519
53766
  Insert: {
52520
- access_token?: string | null;
52521
53767
  api_key: string;
52522
- client_id: string;
52523
- client_secret: string;
52524
53768
  created_at?: string;
52525
53769
  customers_endpoint?: string | null;
52526
53770
  environment: string;
@@ -52535,10 +53779,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52535
53779
  updated_at?: string;
52536
53780
  };
52537
53781
  Update: {
52538
- access_token?: string | null;
52539
53782
  api_key?: string;
52540
- client_id?: string;
52541
- client_secret?: string;
52542
53783
  created_at?: string;
52543
53784
  customers_endpoint?: string | null;
52544
53785
  environment?: string;
@@ -52622,6 +53863,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52622
53863
  attempts: number;
52623
53864
  connection_id: string;
52624
53865
  created_at: string;
53866
+ dead_lettered_at: string | null;
52625
53867
  desired_available: boolean | null;
52626
53868
  gateway_attempt_id: string | null;
52627
53869
  id: string;
@@ -52630,9 +53872,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52630
53872
  locked_by: string | null;
52631
53873
  next_attempt_at: string;
52632
53874
  number_of_pieces: number;
53875
+ product_id: string | null;
52633
53876
  sent_at: string | null;
52634
53877
  status: string;
53878
+ stock_mode: string | null;
52635
53879
  superseded_by: string | null;
53880
+ target_week: number | null;
53881
+ target_year: number | null;
52636
53882
  trade_item_id: string;
52637
53883
  updated_at: string;
52638
53884
  user_id: string;
@@ -52641,6 +53887,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52641
53887
  attempts?: number;
52642
53888
  connection_id: string;
52643
53889
  created_at?: string;
53890
+ dead_lettered_at?: string | null;
52644
53891
  desired_available?: boolean | null;
52645
53892
  gateway_attempt_id?: string | null;
52646
53893
  id?: string;
@@ -52649,9 +53896,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52649
53896
  locked_by?: string | null;
52650
53897
  next_attempt_at?: string;
52651
53898
  number_of_pieces?: number;
53899
+ product_id?: string | null;
52652
53900
  sent_at?: string | null;
52653
53901
  status?: string;
53902
+ stock_mode?: string | null;
52654
53903
  superseded_by?: string | null;
53904
+ target_week?: number | null;
53905
+ target_year?: number | null;
52655
53906
  trade_item_id: string;
52656
53907
  updated_at?: string;
52657
53908
  user_id: string;
@@ -52660,6 +53911,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52660
53911
  attempts?: number;
52661
53912
  connection_id?: string;
52662
53913
  created_at?: string;
53914
+ dead_lettered_at?: string | null;
52663
53915
  desired_available?: boolean | null;
52664
53916
  gateway_attempt_id?: string | null;
52665
53917
  id?: string;
@@ -52668,9 +53920,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52668
53920
  locked_by?: string | null;
52669
53921
  next_attempt_at?: string;
52670
53922
  number_of_pieces?: number;
53923
+ product_id?: string | null;
52671
53924
  sent_at?: string | null;
52672
53925
  status?: string;
53926
+ stock_mode?: string | null;
52673
53927
  superseded_by?: string | null;
53928
+ target_week?: number | null;
53929
+ target_year?: number | null;
52674
53930
  trade_item_id?: string;
52675
53931
  updated_at?: string;
52676
53932
  user_id?: string;
@@ -53079,6 +54335,87 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53079
54335
  referencedColumns: ["id"];
53080
54336
  }];
53081
54337
  };
54338
+ floriday_inventory_settings: {
54339
+ Row: {
54340
+ buffer_quantity: number;
54341
+ connection_id: string;
54342
+ created_at: string;
54343
+ desired_availability: boolean;
54344
+ desired_quantity: number;
54345
+ fixed_quantity: number | null;
54346
+ floriday_trade_item_id: string | null;
54347
+ id: string;
54348
+ last_confirmed_at: string | null;
54349
+ last_enqueued_at: string | null;
54350
+ last_published_at: string | null;
54351
+ last_sync_error: string | null;
54352
+ manual_quantity: number | null;
54353
+ maximum_quantity: number | null;
54354
+ product_id: string;
54355
+ quantity_control: string;
54356
+ remote_available: boolean | null;
54357
+ remote_checked_at: string | null;
54358
+ remote_quantity: number | null;
54359
+ stock_mode: string;
54360
+ sync_status: string;
54361
+ updated_at: string;
54362
+ updated_by: string | null;
54363
+ user_id: string;
54364
+ };
54365
+ Insert: {
54366
+ buffer_quantity?: number;
54367
+ connection_id: string;
54368
+ created_at?: string;
54369
+ desired_availability?: boolean;
54370
+ desired_quantity?: number;
54371
+ fixed_quantity?: number | null;
54372
+ floriday_trade_item_id?: string | null;
54373
+ id?: string;
54374
+ last_confirmed_at?: string | null;
54375
+ last_enqueued_at?: string | null;
54376
+ last_published_at?: string | null;
54377
+ last_sync_error?: string | null;
54378
+ manual_quantity?: number | null;
54379
+ maximum_quantity?: number | null;
54380
+ product_id: string;
54381
+ quantity_control?: string;
54382
+ remote_available?: boolean | null;
54383
+ remote_checked_at?: string | null;
54384
+ remote_quantity?: number | null;
54385
+ stock_mode?: string;
54386
+ sync_status?: string;
54387
+ updated_at?: string;
54388
+ updated_by?: string | null;
54389
+ user_id: string;
54390
+ };
54391
+ Update: {
54392
+ buffer_quantity?: number;
54393
+ connection_id?: string;
54394
+ created_at?: string;
54395
+ desired_availability?: boolean;
54396
+ desired_quantity?: number;
54397
+ fixed_quantity?: number | null;
54398
+ floriday_trade_item_id?: string | null;
54399
+ id?: string;
54400
+ last_confirmed_at?: string | null;
54401
+ last_enqueued_at?: string | null;
54402
+ last_published_at?: string | null;
54403
+ last_sync_error?: string | null;
54404
+ manual_quantity?: number | null;
54405
+ maximum_quantity?: number | null;
54406
+ product_id?: string;
54407
+ quantity_control?: string;
54408
+ remote_available?: boolean | null;
54409
+ remote_checked_at?: string | null;
54410
+ remote_quantity?: number | null;
54411
+ stock_mode?: string;
54412
+ sync_status?: string;
54413
+ updated_at?: string;
54414
+ updated_by?: string | null;
54415
+ user_id?: string;
54416
+ };
54417
+ Relationships: [];
54418
+ };
53082
54419
  floriday_invoices_cache: {
53083
54420
  Row: {
53084
54421
  buyer_organization_id: string | null;
@@ -53367,6 +54704,39 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53367
54704
  };
53368
54705
  Relationships: [];
53369
54706
  };
54707
+ floriday_sales_order_ingest: {
54708
+ Row: {
54709
+ connection_id: string;
54710
+ created_at: string;
54711
+ id: string;
54712
+ impact: import("../integrations/supabase/types").Json;
54713
+ order_status: string | null;
54714
+ order_version: number;
54715
+ processed_at: string;
54716
+ sales_order_id: string;
54717
+ };
54718
+ Insert: {
54719
+ connection_id: string;
54720
+ created_at?: string;
54721
+ id?: string;
54722
+ impact?: import("../integrations/supabase/types").Json;
54723
+ order_status?: string | null;
54724
+ order_version?: number;
54725
+ processed_at?: string;
54726
+ sales_order_id: string;
54727
+ };
54728
+ Update: {
54729
+ connection_id?: string;
54730
+ created_at?: string;
54731
+ id?: string;
54732
+ impact?: import("../integrations/supabase/types").Json;
54733
+ order_status?: string | null;
54734
+ order_version?: number;
54735
+ processed_at?: string;
54736
+ sales_order_id?: string;
54737
+ };
54738
+ Relationships: [];
54739
+ };
53370
54740
  floriday_sales_strategies_cache: {
53371
54741
  Row: {
53372
54742
  connection_id: string;
@@ -53466,6 +54836,39 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53466
54836
  };
53467
54837
  Relationships: [];
53468
54838
  };
54839
+ floriday_sync_cursors: {
54840
+ Row: {
54841
+ connection_id: string;
54842
+ created_at: string;
54843
+ id: string;
54844
+ last_error: string | null;
54845
+ last_sync_at: string | null;
54846
+ resource_type: string;
54847
+ sequence_number: number;
54848
+ updated_at: string;
54849
+ };
54850
+ Insert: {
54851
+ connection_id: string;
54852
+ created_at?: string;
54853
+ id?: string;
54854
+ last_error?: string | null;
54855
+ last_sync_at?: string | null;
54856
+ resource_type: string;
54857
+ sequence_number?: number;
54858
+ updated_at?: string;
54859
+ };
54860
+ Update: {
54861
+ connection_id?: string;
54862
+ created_at?: string;
54863
+ id?: string;
54864
+ last_error?: string | null;
54865
+ last_sync_at?: string | null;
54866
+ resource_type?: string;
54867
+ sequence_number?: number;
54868
+ updated_at?: string;
54869
+ };
54870
+ Relationships: [];
54871
+ };
53469
54872
  floriday_sync_state: {
53470
54873
  Row: {
53471
54874
  connection_id: string;
@@ -54156,6 +55559,42 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
54156
55559
  };
54157
55560
  Relationships: [];
54158
55561
  };
55562
+ inventory_stock_snapshots: {
55563
+ Row: {
55564
+ connection_id: string;
55565
+ created_at: string;
55566
+ erp_available_quantity: number;
55567
+ floriday_desired_quantity: number;
55568
+ floriday_remote_quantity: number | null;
55569
+ granularity: string;
55570
+ id: string;
55571
+ snapshot_at: string;
55572
+ user_id: string | null;
55573
+ };
55574
+ Insert: {
55575
+ connection_id: string;
55576
+ created_at?: string;
55577
+ erp_available_quantity?: number;
55578
+ floriday_desired_quantity?: number;
55579
+ floriday_remote_quantity?: number | null;
55580
+ granularity?: string;
55581
+ id?: string;
55582
+ snapshot_at?: string;
55583
+ user_id?: string | null;
55584
+ };
55585
+ Update: {
55586
+ connection_id?: string;
55587
+ created_at?: string;
55588
+ erp_available_quantity?: number;
55589
+ floriday_desired_quantity?: number;
55590
+ floriday_remote_quantity?: number | null;
55591
+ granularity?: string;
55592
+ id?: string;
55593
+ snapshot_at?: string;
55594
+ user_id?: string | null;
55595
+ };
55596
+ Relationships: [];
55597
+ };
54159
55598
  invoice_items: {
54160
55599
  Row: {
54161
55600
  created_at: string;
@@ -60171,6 +61610,39 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60171
61610
  };
60172
61611
  Relationships: [];
60173
61612
  };
61613
+ print_dedupe_events: {
61614
+ Row: {
61615
+ bestaande_job_id: string | null;
61616
+ created_at: string;
61617
+ detail: string | null;
61618
+ documentnaam: string | null;
61619
+ documenttype: string | null;
61620
+ id: string;
61621
+ idempotentie_sleutel: string;
61622
+ reden: string;
61623
+ };
61624
+ Insert: {
61625
+ bestaande_job_id?: string | null;
61626
+ created_at?: string;
61627
+ detail?: string | null;
61628
+ documentnaam?: string | null;
61629
+ documenttype?: string | null;
61630
+ id?: string;
61631
+ idempotentie_sleutel: string;
61632
+ reden: string;
61633
+ };
61634
+ Update: {
61635
+ bestaande_job_id?: string | null;
61636
+ created_at?: string;
61637
+ detail?: string | null;
61638
+ documentnaam?: string | null;
61639
+ documenttype?: string | null;
61640
+ id?: string;
61641
+ idempotentie_sleutel?: string;
61642
+ reden?: string;
61643
+ };
61644
+ Relationships: [];
61645
+ };
60174
61646
  print_job_logs: {
60175
61647
  Row: {
60176
61648
  created_at: string;
@@ -60221,6 +61693,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60221
61693
  is_herprint: boolean;
60222
61694
  kopieen: number;
60223
61695
  layout_id: string | null;
61696
+ lokaal_opgeslagen_op: string | null;
61697
+ lokale_pdf_fout: string | null;
61698
+ lokale_pdf_status: string | null;
60224
61699
  opgepakt_op: string | null;
60225
61700
  paginas: number;
60226
61701
  payload: import("../integrations/supabase/types").Json;
@@ -60229,6 +61704,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60229
61704
  pogingen: number;
60230
61705
  printer_id: string | null;
60231
61706
  render_html: string | null;
61707
+ resultaat_pdf_base64: string | null;
60232
61708
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60233
61709
  updated_at: string;
60234
61710
  volgende_poging: string | null;
@@ -60253,6 +61729,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60253
61729
  is_herprint?: boolean;
60254
61730
  kopieen?: number;
60255
61731
  layout_id?: string | null;
61732
+ lokaal_opgeslagen_op?: string | null;
61733
+ lokale_pdf_fout?: string | null;
61734
+ lokale_pdf_status?: string | null;
60256
61735
  opgepakt_op?: string | null;
60257
61736
  paginas?: number;
60258
61737
  payload?: import("../integrations/supabase/types").Json;
@@ -60261,6 +61740,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60261
61740
  pogingen?: number;
60262
61741
  printer_id?: string | null;
60263
61742
  render_html?: string | null;
61743
+ resultaat_pdf_base64?: string | null;
60264
61744
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60265
61745
  updated_at?: string;
60266
61746
  volgende_poging?: string | null;
@@ -60285,6 +61765,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60285
61765
  is_herprint?: boolean;
60286
61766
  kopieen?: number;
60287
61767
  layout_id?: string | null;
61768
+ lokaal_opgeslagen_op?: string | null;
61769
+ lokale_pdf_fout?: string | null;
61770
+ lokale_pdf_status?: string | null;
60288
61771
  opgepakt_op?: string | null;
60289
61772
  paginas?: number;
60290
61773
  payload?: import("../integrations/supabase/types").Json;
@@ -60293,6 +61776,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60293
61776
  pogingen?: number;
60294
61777
  printer_id?: string | null;
60295
61778
  render_html?: string | null;
61779
+ resultaat_pdf_base64?: string | null;
60296
61780
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60297
61781
  updated_at?: string;
60298
61782
  volgende_poging?: string | null;
@@ -60411,6 +61895,39 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60411
61895
  };
60412
61896
  Relationships: [];
60413
61897
  };
61898
+ print_preview_events: {
61899
+ Row: {
61900
+ code: string | null;
61901
+ created_at: string;
61902
+ detail: import("../integrations/supabase/types").Json;
61903
+ id: string;
61904
+ queue_item_id: string | null;
61905
+ reden: string | null;
61906
+ station_slug: string | null;
61907
+ uitkomst: string;
61908
+ };
61909
+ Insert: {
61910
+ code?: string | null;
61911
+ created_at?: string;
61912
+ detail?: import("../integrations/supabase/types").Json;
61913
+ id?: string;
61914
+ queue_item_id?: string | null;
61915
+ reden?: string | null;
61916
+ station_slug?: string | null;
61917
+ uitkomst?: string;
61918
+ };
61919
+ Update: {
61920
+ code?: string | null;
61921
+ created_at?: string;
61922
+ detail?: import("../integrations/supabase/types").Json;
61923
+ id?: string;
61924
+ queue_item_id?: string | null;
61925
+ reden?: string | null;
61926
+ station_slug?: string | null;
61927
+ uitkomst?: string;
61928
+ };
61929
+ Relationships: [];
61930
+ };
60414
61931
  print_queue_runners: {
60415
61932
  Row: {
60416
61933
  actief: boolean;
@@ -60650,6 +62167,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60650
62167
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60651
62168
  online: boolean;
60652
62169
  papierformaat: string;
62170
+ pdf_map: string | null;
60653
62171
  poort: number | null;
60654
62172
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60655
62173
  systeemnaam: string;
@@ -60675,6 +62193,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60675
62193
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60676
62194
  online?: boolean;
60677
62195
  papierformaat?: string;
62196
+ pdf_map?: string | null;
60678
62197
  poort?: number | null;
60679
62198
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60680
62199
  systeemnaam?: string;
@@ -60700,6 +62219,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60700
62219
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60701
62220
  online?: boolean;
60702
62221
  papierformaat?: string;
62222
+ pdf_map?: string | null;
60703
62223
  poort?: number | null;
60704
62224
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60705
62225
  systeemnaam?: string;
@@ -63269,6 +64789,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63269
64789
  };
63270
64790
  trade_item_stock: {
63271
64791
  Row: {
64792
+ change_source: string;
63272
64793
  connection_id: string;
63273
64794
  created_at: string;
63274
64795
  id: string;
@@ -63282,6 +64803,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63282
64803
  user_id: string;
63283
64804
  };
63284
64805
  Insert: {
64806
+ change_source?: string;
63285
64807
  connection_id: string;
63286
64808
  created_at?: string;
63287
64809
  id?: string;
@@ -63295,6 +64817,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63295
64817
  user_id: string;
63296
64818
  };
63297
64819
  Update: {
64820
+ change_source?: string;
63298
64821
  connection_id?: string;
63299
64822
  created_at?: string;
63300
64823
  id?: string;
@@ -66895,6 +68418,18 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66895
68418
  Args: never;
66896
68419
  Returns: number;
66897
68420
  };
68421
+ calculate_floriday_desired_stock: {
68422
+ Args: {
68423
+ p_connection_id: string;
68424
+ p_product_id: string;
68425
+ };
68426
+ Returns: {
68427
+ desired_availability: boolean;
68428
+ desired_quantity: number;
68429
+ erp_available: number;
68430
+ stock_mode: string;
68431
+ }[];
68432
+ };
66898
68433
  calculate_layer_stock: {
66899
68434
  Args: {
66900
68435
  p_product_id: string;
@@ -66956,6 +68491,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66956
68491
  is_herprint: boolean;
66957
68492
  kopieen: number;
66958
68493
  layout_id: string | null;
68494
+ lokaal_opgeslagen_op: string | null;
68495
+ lokale_pdf_fout: string | null;
68496
+ lokale_pdf_status: string | null;
66959
68497
  opgepakt_op: string | null;
66960
68498
  paginas: number;
66961
68499
  payload: import("../integrations/supabase/types").Json;
@@ -66964,6 +68502,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66964
68502
  pogingen: number;
66965
68503
  printer_id: string | null;
66966
68504
  render_html: string | null;
68505
+ resultaat_pdf_base64: string | null;
66967
68506
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66968
68507
  updated_at: string;
66969
68508
  volgende_poging: string | null;
@@ -66985,6 +68524,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66985
68524
  attempts: number;
66986
68525
  connection_id: string;
66987
68526
  created_at: string;
68527
+ dead_lettered_at: string | null;
66988
68528
  desired_available: boolean | null;
66989
68529
  gateway_attempt_id: string | null;
66990
68530
  id: string;
@@ -66993,9 +68533,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66993
68533
  locked_by: string | null;
66994
68534
  next_attempt_at: string;
66995
68535
  number_of_pieces: number;
68536
+ product_id: string | null;
66996
68537
  sent_at: string | null;
66997
68538
  status: string;
68539
+ stock_mode: string | null;
66998
68540
  superseded_by: string | null;
68541
+ target_week: number | null;
68542
+ target_year: number | null;
66999
68543
  trade_item_id: string;
67000
68544
  updated_at: string;
67001
68545
  user_id: string;
@@ -67055,6 +68599,53 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67055
68599
  isSetofReturn: true;
67056
68600
  };
67057
68601
  };
68602
+ claim_pdf_print_jobs: {
68603
+ Args: {
68604
+ _max?: number;
68605
+ };
68606
+ Returns: {
68607
+ agent_id: string | null;
68608
+ bron_job_id: string | null;
68609
+ created_at: string;
68610
+ documentnaam: string;
68611
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
68612
+ extern_job_id: string | null;
68613
+ foutmelding: string | null;
68614
+ gebruiker_id: string | null;
68615
+ gebruiker_naam: string;
68616
+ gebruikte_bron: string | null;
68617
+ gebruikte_layout_id: string | null;
68618
+ gestart_op: string | null;
68619
+ herkomst: string | null;
68620
+ id: string;
68621
+ idempotentie_sleutel: string | null;
68622
+ is_herprint: boolean;
68623
+ kopieen: number;
68624
+ layout_id: string | null;
68625
+ lokaal_opgeslagen_op: string | null;
68626
+ lokale_pdf_fout: string | null;
68627
+ lokale_pdf_status: string | null;
68628
+ opgepakt_op: string | null;
68629
+ paginas: number;
68630
+ payload: import("../integrations/supabase/types").Json;
68631
+ pdf_base64: string | null;
68632
+ pdf_url: string | null;
68633
+ pogingen: number;
68634
+ printer_id: string | null;
68635
+ render_html: string | null;
68636
+ resultaat_pdf_base64: string | null;
68637
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
68638
+ updated_at: string;
68639
+ volgende_poging: string | null;
68640
+ voltooid_op: string | null;
68641
+ }[];
68642
+ SetofOptions: {
68643
+ from: "*";
68644
+ to: "print_jobs";
68645
+ isOneToOne: false;
68646
+ isSetofReturn: true;
68647
+ };
68648
+ };
67058
68649
  claim_print_jobs: {
67059
68650
  Args: {
67060
68651
  _agent_id: string;
@@ -67079,6 +68670,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67079
68670
  is_herprint: boolean;
67080
68671
  kopieen: number;
67081
68672
  layout_id: string | null;
68673
+ lokaal_opgeslagen_op: string | null;
68674
+ lokale_pdf_fout: string | null;
68675
+ lokale_pdf_status: string | null;
67082
68676
  opgepakt_op: string | null;
67083
68677
  paginas: number;
67084
68678
  payload: import("../integrations/supabase/types").Json;
@@ -67087,6 +68681,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67087
68681
  pogingen: number;
67088
68682
  printer_id: string | null;
67089
68683
  render_html: string | null;
68684
+ resultaat_pdf_base64: string | null;
67090
68685
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67091
68686
  updated_at: string;
67092
68687
  volgende_poging: string | null;
@@ -67227,6 +68822,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67227
68822
  order_id: string;
67228
68823
  order_source: string;
67229
68824
  pick_date: string;
68825
+ printed_at: string;
68826
+ printed_today: boolean;
67230
68827
  status: string;
67231
68828
  }[];
67232
68829
  };
@@ -67423,6 +69020,24 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67423
69020
  };
67424
69021
  Returns: string;
67425
69022
  };
69023
+ floriday_capture_stock_snapshot: {
69024
+ Args: never;
69025
+ Returns: number;
69026
+ };
69027
+ floriday_cleanup_stock_queue_v2: {
69028
+ Args: never;
69029
+ Returns: undefined;
69030
+ };
69031
+ floriday_compact_stock_snapshots: {
69032
+ Args: never;
69033
+ Returns: undefined;
69034
+ };
69035
+ floriday_default_owner: {
69036
+ Args: {
69037
+ p_connection_id: string;
69038
+ };
69039
+ Returns: string;
69040
+ };
67426
69041
  floriday_effective_price: {
67427
69042
  Args: {
67428
69043
  _buyer_id: string;
@@ -67440,6 +69055,22 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67440
69055
  source_id: string;
67441
69056
  }[];
67442
69057
  };
69058
+ floriday_fill_publish_horizon: {
69059
+ Args: never;
69060
+ Returns: number;
69061
+ };
69062
+ floriday_publish_horizon_weeks: {
69063
+ Args: never;
69064
+ Returns: number;
69065
+ };
69066
+ floriday_recompute_inventory: {
69067
+ Args: {
69068
+ p_connection_id: string;
69069
+ p_force?: boolean;
69070
+ p_product_id: string;
69071
+ };
69072
+ Returns: undefined;
69073
+ };
67443
69074
  format_cart_number: {
67444
69075
  Args: {
67445
69076
  p_pick_date: string;
@@ -67935,6 +69566,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67935
69566
  };
67936
69567
  Returns: number;
67937
69568
  };
69569
+ logistics_cancel_orphan_tasks: {
69570
+ Args: never;
69571
+ Returns: number;
69572
+ };
67938
69573
  logistics_capacity_day_check: {
67939
69574
  Args: {
67940
69575
  p_from?: string;
@@ -67955,6 +69590,25 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67955
69590
  };
67956
69591
  Returns: number;
67957
69592
  };
69593
+ logistics_cart_index: {
69594
+ Args: {
69595
+ p_from?: string;
69596
+ p_to?: string;
69597
+ };
69598
+ Returns: {
69599
+ cart_id: string;
69600
+ cart_index: number;
69601
+ cart_label: string;
69602
+ is_shared: boolean;
69603
+ order_number: string;
69604
+ order_source: string;
69605
+ order_uuid: string;
69606
+ pick_date: string;
69607
+ printed_at: string;
69608
+ shifted: boolean;
69609
+ task_status: string;
69610
+ }[];
69611
+ };
67958
69612
  logistics_check_order_allowed: {
67959
69613
  Args: {
67960
69614
  p_lines: import("../integrations/supabase/types").Json;
@@ -68103,6 +69757,17 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68103
69757
  isSetofReturn: false;
68104
69758
  };
68105
69759
  };
69760
+ logistics_consistency_check: {
69761
+ Args: never;
69762
+ Returns: {
69763
+ agenda_carts: number;
69764
+ control_carts: number;
69765
+ ok: boolean;
69766
+ orphan_tasks: number;
69767
+ pick_date: string;
69768
+ raw_carts: number;
69769
+ }[];
69770
+ };
68106
69771
  logistics_delay_customer_email: {
68107
69772
  Args: {
68108
69773
  p_customer: string;
@@ -68192,6 +69857,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68192
69857
  isSetofReturn: false;
68193
69858
  };
68194
69859
  };
69860
+ logistics_floriday_cart_plan: {
69861
+ Args: {
69862
+ p_order_id: string;
69863
+ };
69864
+ Returns: {
69865
+ carrier_type: string;
69866
+ idx: number;
69867
+ packages: number;
69868
+ }[];
69869
+ };
68195
69870
  logistics_floriday_claim_pushes: {
68196
69871
  Args: {
68197
69872
  _lease_seconds?: number;
@@ -68296,6 +69971,25 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68296
69971
  };
68297
69972
  Returns: number;
68298
69973
  };
69974
+ logistics_order_overview: {
69975
+ Args: {
69976
+ p_from?: string;
69977
+ p_to?: string;
69978
+ };
69979
+ Returns: {
69980
+ cart_count: number;
69981
+ customer_name: string;
69982
+ delivery_date: string;
69983
+ order_number: string;
69984
+ order_source: string;
69985
+ order_uuid: string;
69986
+ pick_date: string;
69987
+ plant_count: number;
69988
+ printed_at: string;
69989
+ shifted: boolean;
69990
+ status: string;
69991
+ }[];
69992
+ };
68299
69993
  logistics_order_pick_day: {
68300
69994
  Args: {
68301
69995
  p_order_ref: string;
@@ -68308,6 +70002,22 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68308
70002
  };
68309
70003
  Returns: string;
68310
70004
  };
70005
+ logistics_pick_agenda: {
70006
+ Args: {
70007
+ p_from?: string;
70008
+ p_to?: string;
70009
+ };
70010
+ Returns: {
70011
+ cart_count: number;
70012
+ in_preparation: number;
70013
+ order_count: number;
70014
+ orders: import("../integrations/supabase/types").Json;
70015
+ pick_date: string;
70016
+ plant_count: number;
70017
+ ready: number;
70018
+ shifted_count: number;
70019
+ }[];
70020
+ };
68311
70021
  logistics_pick_email_purpose: {
68312
70022
  Args: never;
68313
70023
  Returns: string;
@@ -68362,6 +70072,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68362
70072
  };
68363
70073
  Returns: undefined;
68364
70074
  };
70075
+ logistics_plan_floriday_order: {
70076
+ Args: {
70077
+ p_buffer_id?: string;
70078
+ p_order_id: string;
70079
+ };
70080
+ Returns: number;
70081
+ };
68365
70082
  logistics_plan_impact_orders: {
68366
70083
  Args: {
68367
70084
  p_order_id: string;
@@ -68467,6 +70184,15 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68467
70184
  };
68468
70185
  Returns: import("../integrations/supabase/types").Json;
68469
70186
  };
70187
+ logistics_resolve_pick_document: {
70188
+ Args: {
70189
+ _is_herprint: boolean;
70190
+ _queue_item_id: string;
70191
+ _session_id: string;
70192
+ _voorbeeld: boolean;
70193
+ };
70194
+ Returns: import("../integrations/supabase/types").Json;
70195
+ };
68470
70196
  logistics_resolve_settings: {
68471
70197
  Args: {
68472
70198
  p_config_id: string;
@@ -68907,6 +70633,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68907
70633
  };
68908
70634
  pick_enqueue_print_job: {
68909
70635
  Args: {
70636
+ _is_herprint?: boolean;
68910
70637
  _printer_id?: string;
68911
70638
  _queue_item_id: string;
68912
70639
  _session_id?: string;
@@ -68920,6 +70647,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68920
70647
  };
68921
70648
  Returns: import("../integrations/supabase/types").Json;
68922
70649
  };
70650
+ pick_preview_job: {
70651
+ Args: {
70652
+ _queue_item_id: string;
70653
+ _station_slug: string;
70654
+ };
70655
+ Returns: import("../integrations/supabase/types").Json;
70656
+ };
68923
70657
  pick_print_job_status: {
68924
70658
  Args: {
68925
70659
  _job_id: string;
@@ -69097,6 +70831,24 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
69097
70831
  };
69098
70832
  Returns: undefined;
69099
70833
  };
70834
+ print_preview_toestaan: {
70835
+ Args: {
70836
+ _max?: number;
70837
+ _queue_item_id: string;
70838
+ _station_slug: string;
70839
+ _venster_sec?: number;
70840
+ };
70841
+ Returns: import("../integrations/supabase/types").Json;
70842
+ };
70843
+ print_preview_weiger: {
70844
+ Args: {
70845
+ _code: string;
70846
+ _queue_item_id: string;
70847
+ _reden: string;
70848
+ _station_slug: string;
70849
+ };
70850
+ Returns: undefined;
70851
+ };
69100
70852
  process_logistics_event: {
69101
70853
  Args: {
69102
70854
  p_event_id: string;
@@ -69251,6 +71003,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
69251
71003
  };
69252
71004
  Returns: string;
69253
71005
  };
71006
+ resolve_print_job_printer_id: {
71007
+ Args: {
71008
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
71009
+ };
71010
+ Returns: string;
71011
+ };
69254
71012
  resolve_product_id_for_item: {
69255
71013
  Args: {
69256
71014
  p_product_name: string;
@@ -69842,7 +71600,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
69842
71600
  };
69843
71601
  CompositeTypes: { [_ in never]: never; };
69844
71602
  }, {
69845
- PostgrestVersion: "14.17";
71603
+ PostgrestVersion: "14.5";
69846
71604
  }>;
69847
71605
  userId: string;
69848
71606
  claims: import("@supabase/auth-js").User;