@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
@@ -2851,6 +2851,84 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
2851
2851
  };
2852
2852
  Relationships: [];
2853
2853
  };
2854
+ delivery_notes: {
2855
+ Row: {
2856
+ byte_size: number | null;
2857
+ connection_id: string | null;
2858
+ content_type: string;
2859
+ created_at: string;
2860
+ error_message: string | null;
2861
+ fetched_at: string | null;
2862
+ fulfillment_order_id: string | null;
2863
+ http_status: number | null;
2864
+ id: string;
2865
+ label_code: string | null;
2866
+ letter: string | null;
2867
+ load_carrier_index: number | null;
2868
+ load_carrier_type: string | null;
2869
+ order_id: string | null;
2870
+ order_number: string | null;
2871
+ packages: number | null;
2872
+ source: string;
2873
+ status: string;
2874
+ storage_bucket: string;
2875
+ storage_path: string | null;
2876
+ updated_at: string;
2877
+ };
2878
+ Insert: {
2879
+ byte_size?: number | null;
2880
+ connection_id?: string | null;
2881
+ content_type?: string;
2882
+ created_at?: string;
2883
+ error_message?: string | null;
2884
+ fetched_at?: string | null;
2885
+ fulfillment_order_id?: string | null;
2886
+ http_status?: number | null;
2887
+ id?: string;
2888
+ label_code?: string | null;
2889
+ letter?: string | null;
2890
+ load_carrier_index?: number | null;
2891
+ load_carrier_type?: string | null;
2892
+ order_id?: string | null;
2893
+ order_number?: string | null;
2894
+ packages?: number | null;
2895
+ source?: string;
2896
+ status?: string;
2897
+ storage_bucket?: string;
2898
+ storage_path?: string | null;
2899
+ updated_at?: string;
2900
+ };
2901
+ Update: {
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
+ Relationships: [{
2925
+ foreignKeyName: "delivery_notes_order_id_fkey";
2926
+ columns: ["order_id"];
2927
+ isOneToOne: false;
2928
+ referencedRelation: "orders";
2929
+ referencedColumns: ["id"];
2930
+ }];
2931
+ };
2854
2932
  document_bronregels: {
2855
2933
  Row: {
2856
2934
  bron: string;
@@ -5904,10 +5982,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5904
5982
  };
5905
5983
  floriday_connections: {
5906
5984
  Row: {
5907
- access_token: string | null;
5908
5985
  api_key: string;
5909
- client_id: string;
5910
- client_secret: string;
5911
5986
  created_at: string;
5912
5987
  customers_endpoint: string | null;
5913
5988
  environment: string;
@@ -5922,10 +5997,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5922
5997
  updated_at: string;
5923
5998
  };
5924
5999
  Insert: {
5925
- access_token?: string | null;
5926
6000
  api_key: string;
5927
- client_id: string;
5928
- client_secret: string;
5929
6001
  created_at?: string;
5930
6002
  customers_endpoint?: string | null;
5931
6003
  environment: string;
@@ -5940,10 +6012,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5940
6012
  updated_at?: string;
5941
6013
  };
5942
6014
  Update: {
5943
- access_token?: string | null;
5944
6015
  api_key?: string;
5945
- client_id?: string;
5946
- client_secret?: string;
5947
6016
  created_at?: string;
5948
6017
  customers_endpoint?: string | null;
5949
6018
  environment?: string;
@@ -6027,6 +6096,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6027
6096
  attempts: number;
6028
6097
  connection_id: string;
6029
6098
  created_at: string;
6099
+ dead_lettered_at: string | null;
6030
6100
  desired_available: boolean | null;
6031
6101
  gateway_attempt_id: string | null;
6032
6102
  id: string;
@@ -6035,9 +6105,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6035
6105
  locked_by: string | null;
6036
6106
  next_attempt_at: string;
6037
6107
  number_of_pieces: number;
6108
+ product_id: string | null;
6038
6109
  sent_at: string | null;
6039
6110
  status: string;
6111
+ stock_mode: string | null;
6040
6112
  superseded_by: string | null;
6113
+ target_week: number | null;
6114
+ target_year: number | null;
6041
6115
  trade_item_id: string;
6042
6116
  updated_at: string;
6043
6117
  user_id: string;
@@ -6046,6 +6120,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6046
6120
  attempts?: number;
6047
6121
  connection_id: string;
6048
6122
  created_at?: string;
6123
+ dead_lettered_at?: string | null;
6049
6124
  desired_available?: boolean | null;
6050
6125
  gateway_attempt_id?: string | null;
6051
6126
  id?: string;
@@ -6054,9 +6129,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6054
6129
  locked_by?: string | null;
6055
6130
  next_attempt_at?: string;
6056
6131
  number_of_pieces?: number;
6132
+ product_id?: string | null;
6057
6133
  sent_at?: string | null;
6058
6134
  status?: string;
6135
+ stock_mode?: string | null;
6059
6136
  superseded_by?: string | null;
6137
+ target_week?: number | null;
6138
+ target_year?: number | null;
6060
6139
  trade_item_id: string;
6061
6140
  updated_at?: string;
6062
6141
  user_id: string;
@@ -6065,6 +6144,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6065
6144
  attempts?: number;
6066
6145
  connection_id?: string;
6067
6146
  created_at?: string;
6147
+ dead_lettered_at?: string | null;
6068
6148
  desired_available?: boolean | null;
6069
6149
  gateway_attempt_id?: string | null;
6070
6150
  id?: string;
@@ -6073,9 +6153,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6073
6153
  locked_by?: string | null;
6074
6154
  next_attempt_at?: string;
6075
6155
  number_of_pieces?: number;
6156
+ product_id?: string | null;
6076
6157
  sent_at?: string | null;
6077
6158
  status?: string;
6159
+ stock_mode?: string | null;
6078
6160
  superseded_by?: string | null;
6161
+ target_week?: number | null;
6162
+ target_year?: number | null;
6079
6163
  trade_item_id?: string;
6080
6164
  updated_at?: string;
6081
6165
  user_id?: string;
@@ -6484,6 +6568,87 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6484
6568
  referencedColumns: ["id"];
6485
6569
  }];
6486
6570
  };
6571
+ floriday_inventory_settings: {
6572
+ Row: {
6573
+ buffer_quantity: number;
6574
+ connection_id: string;
6575
+ created_at: string;
6576
+ desired_availability: boolean;
6577
+ desired_quantity: number;
6578
+ fixed_quantity: number | null;
6579
+ floriday_trade_item_id: string | null;
6580
+ id: string;
6581
+ last_confirmed_at: string | null;
6582
+ last_enqueued_at: string | null;
6583
+ last_published_at: string | null;
6584
+ last_sync_error: string | null;
6585
+ manual_quantity: number | null;
6586
+ maximum_quantity: number | null;
6587
+ product_id: string;
6588
+ quantity_control: string;
6589
+ remote_available: boolean | null;
6590
+ remote_checked_at: string | null;
6591
+ remote_quantity: number | null;
6592
+ stock_mode: string;
6593
+ sync_status: string;
6594
+ updated_at: string;
6595
+ updated_by: string | null;
6596
+ user_id: string;
6597
+ };
6598
+ Insert: {
6599
+ buffer_quantity?: number;
6600
+ connection_id: string;
6601
+ created_at?: string;
6602
+ desired_availability?: boolean;
6603
+ desired_quantity?: number;
6604
+ fixed_quantity?: number | null;
6605
+ floriday_trade_item_id?: string | null;
6606
+ id?: string;
6607
+ last_confirmed_at?: string | null;
6608
+ last_enqueued_at?: string | null;
6609
+ last_published_at?: string | null;
6610
+ last_sync_error?: string | null;
6611
+ manual_quantity?: number | null;
6612
+ maximum_quantity?: number | null;
6613
+ product_id: string;
6614
+ quantity_control?: string;
6615
+ remote_available?: boolean | null;
6616
+ remote_checked_at?: string | null;
6617
+ remote_quantity?: number | null;
6618
+ stock_mode?: string;
6619
+ sync_status?: string;
6620
+ updated_at?: string;
6621
+ updated_by?: string | null;
6622
+ user_id: string;
6623
+ };
6624
+ Update: {
6625
+ buffer_quantity?: number;
6626
+ connection_id?: string;
6627
+ created_at?: string;
6628
+ desired_availability?: boolean;
6629
+ desired_quantity?: number;
6630
+ fixed_quantity?: number | null;
6631
+ floriday_trade_item_id?: string | null;
6632
+ id?: string;
6633
+ last_confirmed_at?: string | null;
6634
+ last_enqueued_at?: string | null;
6635
+ last_published_at?: string | null;
6636
+ last_sync_error?: string | null;
6637
+ manual_quantity?: number | null;
6638
+ maximum_quantity?: number | null;
6639
+ product_id?: string;
6640
+ quantity_control?: string;
6641
+ remote_available?: boolean | null;
6642
+ remote_checked_at?: string | null;
6643
+ remote_quantity?: number | null;
6644
+ stock_mode?: string;
6645
+ sync_status?: string;
6646
+ updated_at?: string;
6647
+ updated_by?: string | null;
6648
+ user_id?: string;
6649
+ };
6650
+ Relationships: [];
6651
+ };
6487
6652
  floriday_invoices_cache: {
6488
6653
  Row: {
6489
6654
  buyer_organization_id: string | null;
@@ -6772,6 +6937,39 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6772
6937
  };
6773
6938
  Relationships: [];
6774
6939
  };
6940
+ floriday_sales_order_ingest: {
6941
+ Row: {
6942
+ connection_id: string;
6943
+ created_at: string;
6944
+ id: string;
6945
+ impact: import("../integrations/supabase/types").Json;
6946
+ order_status: string | null;
6947
+ order_version: number;
6948
+ processed_at: string;
6949
+ sales_order_id: string;
6950
+ };
6951
+ Insert: {
6952
+ connection_id: string;
6953
+ created_at?: string;
6954
+ id?: string;
6955
+ impact?: import("../integrations/supabase/types").Json;
6956
+ order_status?: string | null;
6957
+ order_version?: number;
6958
+ processed_at?: string;
6959
+ sales_order_id: string;
6960
+ };
6961
+ Update: {
6962
+ connection_id?: string;
6963
+ created_at?: string;
6964
+ id?: string;
6965
+ impact?: import("../integrations/supabase/types").Json;
6966
+ order_status?: string | null;
6967
+ order_version?: number;
6968
+ processed_at?: string;
6969
+ sales_order_id?: string;
6970
+ };
6971
+ Relationships: [];
6972
+ };
6775
6973
  floriday_sales_strategies_cache: {
6776
6974
  Row: {
6777
6975
  connection_id: string;
@@ -6871,6 +7069,39 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6871
7069
  };
6872
7070
  Relationships: [];
6873
7071
  };
7072
+ floriday_sync_cursors: {
7073
+ Row: {
7074
+ connection_id: string;
7075
+ created_at: string;
7076
+ id: string;
7077
+ last_error: string | null;
7078
+ last_sync_at: string | null;
7079
+ resource_type: string;
7080
+ sequence_number: number;
7081
+ updated_at: string;
7082
+ };
7083
+ Insert: {
7084
+ connection_id: string;
7085
+ created_at?: string;
7086
+ id?: string;
7087
+ last_error?: string | null;
7088
+ last_sync_at?: string | null;
7089
+ resource_type: string;
7090
+ sequence_number?: number;
7091
+ updated_at?: string;
7092
+ };
7093
+ Update: {
7094
+ connection_id?: string;
7095
+ created_at?: string;
7096
+ id?: string;
7097
+ last_error?: string | null;
7098
+ last_sync_at?: string | null;
7099
+ resource_type?: string;
7100
+ sequence_number?: number;
7101
+ updated_at?: string;
7102
+ };
7103
+ Relationships: [];
7104
+ };
6874
7105
  floriday_sync_state: {
6875
7106
  Row: {
6876
7107
  connection_id: string;
@@ -7561,6 +7792,42 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
7561
7792
  };
7562
7793
  Relationships: [];
7563
7794
  };
7795
+ inventory_stock_snapshots: {
7796
+ Row: {
7797
+ connection_id: string;
7798
+ created_at: string;
7799
+ erp_available_quantity: number;
7800
+ floriday_desired_quantity: number;
7801
+ floriday_remote_quantity: number | null;
7802
+ granularity: string;
7803
+ id: string;
7804
+ snapshot_at: string;
7805
+ user_id: string | null;
7806
+ };
7807
+ Insert: {
7808
+ connection_id: string;
7809
+ created_at?: string;
7810
+ erp_available_quantity?: number;
7811
+ floriday_desired_quantity?: number;
7812
+ floriday_remote_quantity?: number | null;
7813
+ granularity?: string;
7814
+ id?: string;
7815
+ snapshot_at?: string;
7816
+ user_id?: string | null;
7817
+ };
7818
+ Update: {
7819
+ connection_id?: string;
7820
+ created_at?: string;
7821
+ erp_available_quantity?: number;
7822
+ floriday_desired_quantity?: number;
7823
+ floriday_remote_quantity?: number | null;
7824
+ granularity?: string;
7825
+ id?: string;
7826
+ snapshot_at?: string;
7827
+ user_id?: string | null;
7828
+ };
7829
+ Relationships: [];
7830
+ };
7564
7831
  invoice_items: {
7565
7832
  Row: {
7566
7833
  created_at: string;
@@ -13576,6 +13843,39 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13576
13843
  };
13577
13844
  Relationships: [];
13578
13845
  };
13846
+ print_dedupe_events: {
13847
+ Row: {
13848
+ bestaande_job_id: string | null;
13849
+ created_at: string;
13850
+ detail: string | null;
13851
+ documentnaam: string | null;
13852
+ documenttype: string | null;
13853
+ id: string;
13854
+ idempotentie_sleutel: string;
13855
+ reden: string;
13856
+ };
13857
+ Insert: {
13858
+ bestaande_job_id?: string | null;
13859
+ created_at?: string;
13860
+ detail?: string | null;
13861
+ documentnaam?: string | null;
13862
+ documenttype?: string | null;
13863
+ id?: string;
13864
+ idempotentie_sleutel: string;
13865
+ reden: string;
13866
+ };
13867
+ Update: {
13868
+ bestaande_job_id?: string | null;
13869
+ created_at?: string;
13870
+ detail?: string | null;
13871
+ documentnaam?: string | null;
13872
+ documenttype?: string | null;
13873
+ id?: string;
13874
+ idempotentie_sleutel?: string;
13875
+ reden?: string;
13876
+ };
13877
+ Relationships: [];
13878
+ };
13579
13879
  print_job_logs: {
13580
13880
  Row: {
13581
13881
  created_at: string;
@@ -13626,6 +13926,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13626
13926
  is_herprint: boolean;
13627
13927
  kopieen: number;
13628
13928
  layout_id: string | null;
13929
+ lokaal_opgeslagen_op: string | null;
13930
+ lokale_pdf_fout: string | null;
13931
+ lokale_pdf_status: string | null;
13629
13932
  opgepakt_op: string | null;
13630
13933
  paginas: number;
13631
13934
  payload: import("../integrations/supabase/types").Json;
@@ -13634,6 +13937,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13634
13937
  pogingen: number;
13635
13938
  printer_id: string | null;
13636
13939
  render_html: string | null;
13940
+ resultaat_pdf_base64: string | null;
13637
13941
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13638
13942
  updated_at: string;
13639
13943
  volgende_poging: string | null;
@@ -13658,6 +13962,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13658
13962
  is_herprint?: boolean;
13659
13963
  kopieen?: number;
13660
13964
  layout_id?: string | null;
13965
+ lokaal_opgeslagen_op?: string | null;
13966
+ lokale_pdf_fout?: string | null;
13967
+ lokale_pdf_status?: string | null;
13661
13968
  opgepakt_op?: string | null;
13662
13969
  paginas?: number;
13663
13970
  payload?: import("../integrations/supabase/types").Json;
@@ -13666,6 +13973,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13666
13973
  pogingen?: number;
13667
13974
  printer_id?: string | null;
13668
13975
  render_html?: string | null;
13976
+ resultaat_pdf_base64?: string | null;
13669
13977
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13670
13978
  updated_at?: string;
13671
13979
  volgende_poging?: string | null;
@@ -13690,6 +13998,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13690
13998
  is_herprint?: boolean;
13691
13999
  kopieen?: number;
13692
14000
  layout_id?: string | null;
14001
+ lokaal_opgeslagen_op?: string | null;
14002
+ lokale_pdf_fout?: string | null;
14003
+ lokale_pdf_status?: string | null;
13693
14004
  opgepakt_op?: string | null;
13694
14005
  paginas?: number;
13695
14006
  payload?: import("../integrations/supabase/types").Json;
@@ -13698,6 +14009,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13698
14009
  pogingen?: number;
13699
14010
  printer_id?: string | null;
13700
14011
  render_html?: string | null;
14012
+ resultaat_pdf_base64?: string | null;
13701
14013
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13702
14014
  updated_at?: string;
13703
14015
  volgende_poging?: string | null;
@@ -13816,6 +14128,39 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13816
14128
  };
13817
14129
  Relationships: [];
13818
14130
  };
14131
+ print_preview_events: {
14132
+ Row: {
14133
+ code: string | null;
14134
+ created_at: string;
14135
+ detail: import("../integrations/supabase/types").Json;
14136
+ id: string;
14137
+ queue_item_id: string | null;
14138
+ reden: string | null;
14139
+ station_slug: string | null;
14140
+ uitkomst: string;
14141
+ };
14142
+ Insert: {
14143
+ code?: string | null;
14144
+ created_at?: string;
14145
+ detail?: import("../integrations/supabase/types").Json;
14146
+ id?: string;
14147
+ queue_item_id?: string | null;
14148
+ reden?: string | null;
14149
+ station_slug?: string | null;
14150
+ uitkomst?: string;
14151
+ };
14152
+ Update: {
14153
+ code?: string | null;
14154
+ created_at?: string;
14155
+ detail?: import("../integrations/supabase/types").Json;
14156
+ id?: string;
14157
+ queue_item_id?: string | null;
14158
+ reden?: string | null;
14159
+ station_slug?: string | null;
14160
+ uitkomst?: string;
14161
+ };
14162
+ Relationships: [];
14163
+ };
13819
14164
  print_queue_runners: {
13820
14165
  Row: {
13821
14166
  actief: boolean;
@@ -14055,6 +14400,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
14055
14400
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14056
14401
  online: boolean;
14057
14402
  papierformaat: string;
14403
+ pdf_map: string | null;
14058
14404
  poort: number | null;
14059
14405
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14060
14406
  systeemnaam: string;
@@ -14080,6 +14426,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
14080
14426
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14081
14427
  online?: boolean;
14082
14428
  papierformaat?: string;
14429
+ pdf_map?: string | null;
14083
14430
  poort?: number | null;
14084
14431
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14085
14432
  systeemnaam?: string;
@@ -14105,6 +14452,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
14105
14452
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14106
14453
  online?: boolean;
14107
14454
  papierformaat?: string;
14455
+ pdf_map?: string | null;
14108
14456
  poort?: number | null;
14109
14457
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14110
14458
  systeemnaam?: string;
@@ -16674,6 +17022,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16674
17022
  };
16675
17023
  trade_item_stock: {
16676
17024
  Row: {
17025
+ change_source: string;
16677
17026
  connection_id: string;
16678
17027
  created_at: string;
16679
17028
  id: string;
@@ -16687,6 +17036,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16687
17036
  user_id: string;
16688
17037
  };
16689
17038
  Insert: {
17039
+ change_source?: string;
16690
17040
  connection_id: string;
16691
17041
  created_at?: string;
16692
17042
  id?: string;
@@ -16700,6 +17050,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16700
17050
  user_id: string;
16701
17051
  };
16702
17052
  Update: {
17053
+ change_source?: string;
16703
17054
  connection_id?: string;
16704
17055
  created_at?: string;
16705
17056
  id?: string;
@@ -20300,6 +20651,18 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20300
20651
  Args: never;
20301
20652
  Returns: number;
20302
20653
  };
20654
+ calculate_floriday_desired_stock: {
20655
+ Args: {
20656
+ p_connection_id: string;
20657
+ p_product_id: string;
20658
+ };
20659
+ Returns: {
20660
+ desired_availability: boolean;
20661
+ desired_quantity: number;
20662
+ erp_available: number;
20663
+ stock_mode: string;
20664
+ }[];
20665
+ };
20303
20666
  calculate_layer_stock: {
20304
20667
  Args: {
20305
20668
  p_product_id: string;
@@ -20361,6 +20724,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20361
20724
  is_herprint: boolean;
20362
20725
  kopieen: number;
20363
20726
  layout_id: string | null;
20727
+ lokaal_opgeslagen_op: string | null;
20728
+ lokale_pdf_fout: string | null;
20729
+ lokale_pdf_status: string | null;
20364
20730
  opgepakt_op: string | null;
20365
20731
  paginas: number;
20366
20732
  payload: import("../integrations/supabase/types").Json;
@@ -20369,6 +20735,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20369
20735
  pogingen: number;
20370
20736
  printer_id: string | null;
20371
20737
  render_html: string | null;
20738
+ resultaat_pdf_base64: string | null;
20372
20739
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20373
20740
  updated_at: string;
20374
20741
  volgende_poging: string | null;
@@ -20390,6 +20757,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20390
20757
  attempts: number;
20391
20758
  connection_id: string;
20392
20759
  created_at: string;
20760
+ dead_lettered_at: string | null;
20393
20761
  desired_available: boolean | null;
20394
20762
  gateway_attempt_id: string | null;
20395
20763
  id: string;
@@ -20398,9 +20766,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20398
20766
  locked_by: string | null;
20399
20767
  next_attempt_at: string;
20400
20768
  number_of_pieces: number;
20769
+ product_id: string | null;
20401
20770
  sent_at: string | null;
20402
20771
  status: string;
20772
+ stock_mode: string | null;
20403
20773
  superseded_by: string | null;
20774
+ target_week: number | null;
20775
+ target_year: number | null;
20404
20776
  trade_item_id: string;
20405
20777
  updated_at: string;
20406
20778
  user_id: string;
@@ -20460,6 +20832,53 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20460
20832
  isSetofReturn: true;
20461
20833
  };
20462
20834
  };
20835
+ claim_pdf_print_jobs: {
20836
+ Args: {
20837
+ _max?: number;
20838
+ };
20839
+ Returns: {
20840
+ agent_id: string | null;
20841
+ bron_job_id: string | null;
20842
+ created_at: string;
20843
+ documentnaam: string;
20844
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20845
+ extern_job_id: string | null;
20846
+ foutmelding: string | null;
20847
+ gebruiker_id: string | null;
20848
+ gebruiker_naam: string;
20849
+ gebruikte_bron: string | null;
20850
+ gebruikte_layout_id: string | null;
20851
+ gestart_op: string | null;
20852
+ herkomst: string | null;
20853
+ id: string;
20854
+ idempotentie_sleutel: string | null;
20855
+ is_herprint: boolean;
20856
+ kopieen: number;
20857
+ layout_id: string | null;
20858
+ lokaal_opgeslagen_op: string | null;
20859
+ lokale_pdf_fout: string | null;
20860
+ lokale_pdf_status: string | null;
20861
+ opgepakt_op: string | null;
20862
+ paginas: number;
20863
+ payload: import("../integrations/supabase/types").Json;
20864
+ pdf_base64: string | null;
20865
+ pdf_url: string | null;
20866
+ pogingen: number;
20867
+ printer_id: string | null;
20868
+ render_html: string | null;
20869
+ resultaat_pdf_base64: string | null;
20870
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20871
+ updated_at: string;
20872
+ volgende_poging: string | null;
20873
+ voltooid_op: string | null;
20874
+ }[];
20875
+ SetofOptions: {
20876
+ from: "*";
20877
+ to: "print_jobs";
20878
+ isOneToOne: false;
20879
+ isSetofReturn: true;
20880
+ };
20881
+ };
20463
20882
  claim_print_jobs: {
20464
20883
  Args: {
20465
20884
  _agent_id: string;
@@ -20484,6 +20903,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20484
20903
  is_herprint: boolean;
20485
20904
  kopieen: number;
20486
20905
  layout_id: string | null;
20906
+ lokaal_opgeslagen_op: string | null;
20907
+ lokale_pdf_fout: string | null;
20908
+ lokale_pdf_status: string | null;
20487
20909
  opgepakt_op: string | null;
20488
20910
  paginas: number;
20489
20911
  payload: import("../integrations/supabase/types").Json;
@@ -20492,6 +20914,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20492
20914
  pogingen: number;
20493
20915
  printer_id: string | null;
20494
20916
  render_html: string | null;
20917
+ resultaat_pdf_base64: string | null;
20495
20918
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20496
20919
  updated_at: string;
20497
20920
  volgende_poging: string | null;
@@ -20632,6 +21055,8 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20632
21055
  order_id: string;
20633
21056
  order_source: string;
20634
21057
  pick_date: string;
21058
+ printed_at: string;
21059
+ printed_today: boolean;
20635
21060
  status: string;
20636
21061
  }[];
20637
21062
  };
@@ -20828,6 +21253,24 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20828
21253
  };
20829
21254
  Returns: string;
20830
21255
  };
21256
+ floriday_capture_stock_snapshot: {
21257
+ Args: never;
21258
+ Returns: number;
21259
+ };
21260
+ floriday_cleanup_stock_queue_v2: {
21261
+ Args: never;
21262
+ Returns: undefined;
21263
+ };
21264
+ floriday_compact_stock_snapshots: {
21265
+ Args: never;
21266
+ Returns: undefined;
21267
+ };
21268
+ floriday_default_owner: {
21269
+ Args: {
21270
+ p_connection_id: string;
21271
+ };
21272
+ Returns: string;
21273
+ };
20831
21274
  floriday_effective_price: {
20832
21275
  Args: {
20833
21276
  _buyer_id: string;
@@ -20845,6 +21288,22 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20845
21288
  source_id: string;
20846
21289
  }[];
20847
21290
  };
21291
+ floriday_fill_publish_horizon: {
21292
+ Args: never;
21293
+ Returns: number;
21294
+ };
21295
+ floriday_publish_horizon_weeks: {
21296
+ Args: never;
21297
+ Returns: number;
21298
+ };
21299
+ floriday_recompute_inventory: {
21300
+ Args: {
21301
+ p_connection_id: string;
21302
+ p_force?: boolean;
21303
+ p_product_id: string;
21304
+ };
21305
+ Returns: undefined;
21306
+ };
20848
21307
  format_cart_number: {
20849
21308
  Args: {
20850
21309
  p_pick_date: string;
@@ -21340,6 +21799,10 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21340
21799
  };
21341
21800
  Returns: number;
21342
21801
  };
21802
+ logistics_cancel_orphan_tasks: {
21803
+ Args: never;
21804
+ Returns: number;
21805
+ };
21343
21806
  logistics_capacity_day_check: {
21344
21807
  Args: {
21345
21808
  p_from?: string;
@@ -21360,6 +21823,25 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21360
21823
  };
21361
21824
  Returns: number;
21362
21825
  };
21826
+ logistics_cart_index: {
21827
+ Args: {
21828
+ p_from?: string;
21829
+ p_to?: string;
21830
+ };
21831
+ Returns: {
21832
+ cart_id: string;
21833
+ cart_index: number;
21834
+ cart_label: string;
21835
+ is_shared: boolean;
21836
+ order_number: string;
21837
+ order_source: string;
21838
+ order_uuid: string;
21839
+ pick_date: string;
21840
+ printed_at: string;
21841
+ shifted: boolean;
21842
+ task_status: string;
21843
+ }[];
21844
+ };
21363
21845
  logistics_check_order_allowed: {
21364
21846
  Args: {
21365
21847
  p_lines: import("../integrations/supabase/types").Json;
@@ -21508,6 +21990,17 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21508
21990
  isSetofReturn: false;
21509
21991
  };
21510
21992
  };
21993
+ logistics_consistency_check: {
21994
+ Args: never;
21995
+ Returns: {
21996
+ agenda_carts: number;
21997
+ control_carts: number;
21998
+ ok: boolean;
21999
+ orphan_tasks: number;
22000
+ pick_date: string;
22001
+ raw_carts: number;
22002
+ }[];
22003
+ };
21511
22004
  logistics_delay_customer_email: {
21512
22005
  Args: {
21513
22006
  p_customer: string;
@@ -21597,6 +22090,16 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21597
22090
  isSetofReturn: false;
21598
22091
  };
21599
22092
  };
22093
+ logistics_floriday_cart_plan: {
22094
+ Args: {
22095
+ p_order_id: string;
22096
+ };
22097
+ Returns: {
22098
+ carrier_type: string;
22099
+ idx: number;
22100
+ packages: number;
22101
+ }[];
22102
+ };
21600
22103
  logistics_floriday_claim_pushes: {
21601
22104
  Args: {
21602
22105
  _lease_seconds?: number;
@@ -21701,6 +22204,25 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21701
22204
  };
21702
22205
  Returns: number;
21703
22206
  };
22207
+ logistics_order_overview: {
22208
+ Args: {
22209
+ p_from?: string;
22210
+ p_to?: string;
22211
+ };
22212
+ Returns: {
22213
+ cart_count: number;
22214
+ customer_name: string;
22215
+ delivery_date: string;
22216
+ order_number: string;
22217
+ order_source: string;
22218
+ order_uuid: string;
22219
+ pick_date: string;
22220
+ plant_count: number;
22221
+ printed_at: string;
22222
+ shifted: boolean;
22223
+ status: string;
22224
+ }[];
22225
+ };
21704
22226
  logistics_order_pick_day: {
21705
22227
  Args: {
21706
22228
  p_order_ref: string;
@@ -21713,6 +22235,22 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21713
22235
  };
21714
22236
  Returns: string;
21715
22237
  };
22238
+ logistics_pick_agenda: {
22239
+ Args: {
22240
+ p_from?: string;
22241
+ p_to?: string;
22242
+ };
22243
+ Returns: {
22244
+ cart_count: number;
22245
+ in_preparation: number;
22246
+ order_count: number;
22247
+ orders: import("../integrations/supabase/types").Json;
22248
+ pick_date: string;
22249
+ plant_count: number;
22250
+ ready: number;
22251
+ shifted_count: number;
22252
+ }[];
22253
+ };
21716
22254
  logistics_pick_email_purpose: {
21717
22255
  Args: never;
21718
22256
  Returns: string;
@@ -21767,6 +22305,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21767
22305
  };
21768
22306
  Returns: undefined;
21769
22307
  };
22308
+ logistics_plan_floriday_order: {
22309
+ Args: {
22310
+ p_buffer_id?: string;
22311
+ p_order_id: string;
22312
+ };
22313
+ Returns: number;
22314
+ };
21770
22315
  logistics_plan_impact_orders: {
21771
22316
  Args: {
21772
22317
  p_order_id: string;
@@ -21872,6 +22417,15 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21872
22417
  };
21873
22418
  Returns: import("../integrations/supabase/types").Json;
21874
22419
  };
22420
+ logistics_resolve_pick_document: {
22421
+ Args: {
22422
+ _is_herprint: boolean;
22423
+ _queue_item_id: string;
22424
+ _session_id: string;
22425
+ _voorbeeld: boolean;
22426
+ };
22427
+ Returns: import("../integrations/supabase/types").Json;
22428
+ };
21875
22429
  logistics_resolve_settings: {
21876
22430
  Args: {
21877
22431
  p_config_id: string;
@@ -22312,6 +22866,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
22312
22866
  };
22313
22867
  pick_enqueue_print_job: {
22314
22868
  Args: {
22869
+ _is_herprint?: boolean;
22315
22870
  _printer_id?: string;
22316
22871
  _queue_item_id: string;
22317
22872
  _session_id?: string;
@@ -22325,6 +22880,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
22325
22880
  };
22326
22881
  Returns: import("../integrations/supabase/types").Json;
22327
22882
  };
22883
+ pick_preview_job: {
22884
+ Args: {
22885
+ _queue_item_id: string;
22886
+ _station_slug: string;
22887
+ };
22888
+ Returns: import("../integrations/supabase/types").Json;
22889
+ };
22328
22890
  pick_print_job_status: {
22329
22891
  Args: {
22330
22892
  _job_id: string;
@@ -22502,6 +23064,24 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
22502
23064
  };
22503
23065
  Returns: undefined;
22504
23066
  };
23067
+ print_preview_toestaan: {
23068
+ Args: {
23069
+ _max?: number;
23070
+ _queue_item_id: string;
23071
+ _station_slug: string;
23072
+ _venster_sec?: number;
23073
+ };
23074
+ Returns: import("../integrations/supabase/types").Json;
23075
+ };
23076
+ print_preview_weiger: {
23077
+ Args: {
23078
+ _code: string;
23079
+ _queue_item_id: string;
23080
+ _reden: string;
23081
+ _station_slug: string;
23082
+ };
23083
+ Returns: undefined;
23084
+ };
22505
23085
  process_logistics_event: {
22506
23086
  Args: {
22507
23087
  p_event_id: string;
@@ -22656,6 +23236,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
22656
23236
  };
22657
23237
  Returns: string;
22658
23238
  };
23239
+ resolve_print_job_printer_id: {
23240
+ Args: {
23241
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
23242
+ };
23243
+ Returns: string;
23244
+ };
22659
23245
  resolve_product_id_for_item: {
22660
23246
  Args: {
22661
23247
  p_product_name: string;
@@ -23247,7 +23833,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
23247
23833
  };
23248
23834
  CompositeTypes: { [_ in never]: never; };
23249
23835
  }, {
23250
- PostgrestVersion: "14.17";
23836
+ PostgrestVersion: "14.5";
23251
23837
  }>;
23252
23838
  userId: string;
23253
23839
  claims: import("@supabase/auth-js").User;
@@ -26108,6 +26694,84 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
26108
26694
  };
26109
26695
  Relationships: [];
26110
26696
  };
26697
+ delivery_notes: {
26698
+ Row: {
26699
+ byte_size: number | null;
26700
+ connection_id: string | null;
26701
+ content_type: string;
26702
+ created_at: string;
26703
+ error_message: string | null;
26704
+ fetched_at: string | null;
26705
+ fulfillment_order_id: string | null;
26706
+ http_status: number | null;
26707
+ id: string;
26708
+ label_code: string | null;
26709
+ letter: string | null;
26710
+ load_carrier_index: number | null;
26711
+ load_carrier_type: string | null;
26712
+ order_id: string | null;
26713
+ order_number: string | null;
26714
+ packages: number | null;
26715
+ source: string;
26716
+ status: string;
26717
+ storage_bucket: string;
26718
+ storage_path: string | null;
26719
+ updated_at: string;
26720
+ };
26721
+ Insert: {
26722
+ byte_size?: number | null;
26723
+ connection_id?: string | null;
26724
+ content_type?: string;
26725
+ created_at?: string;
26726
+ error_message?: string | null;
26727
+ fetched_at?: string | null;
26728
+ fulfillment_order_id?: string | null;
26729
+ http_status?: number | null;
26730
+ id?: string;
26731
+ label_code?: string | null;
26732
+ letter?: string | null;
26733
+ load_carrier_index?: number | null;
26734
+ load_carrier_type?: string | null;
26735
+ order_id?: string | null;
26736
+ order_number?: string | null;
26737
+ packages?: number | null;
26738
+ source?: string;
26739
+ status?: string;
26740
+ storage_bucket?: string;
26741
+ storage_path?: string | null;
26742
+ updated_at?: string;
26743
+ };
26744
+ Update: {
26745
+ byte_size?: number | null;
26746
+ connection_id?: string | null;
26747
+ content_type?: string;
26748
+ created_at?: string;
26749
+ error_message?: string | null;
26750
+ fetched_at?: string | null;
26751
+ fulfillment_order_id?: string | null;
26752
+ http_status?: number | null;
26753
+ id?: string;
26754
+ label_code?: string | null;
26755
+ letter?: string | null;
26756
+ load_carrier_index?: number | null;
26757
+ load_carrier_type?: string | null;
26758
+ order_id?: string | null;
26759
+ order_number?: string | null;
26760
+ packages?: number | null;
26761
+ source?: string;
26762
+ status?: string;
26763
+ storage_bucket?: string;
26764
+ storage_path?: string | null;
26765
+ updated_at?: string;
26766
+ };
26767
+ Relationships: [{
26768
+ foreignKeyName: "delivery_notes_order_id_fkey";
26769
+ columns: ["order_id"];
26770
+ isOneToOne: false;
26771
+ referencedRelation: "orders";
26772
+ referencedColumns: ["id"];
26773
+ }];
26774
+ };
26111
26775
  document_bronregels: {
26112
26776
  Row: {
26113
26777
  bron: string;
@@ -29161,10 +29825,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29161
29825
  };
29162
29826
  floriday_connections: {
29163
29827
  Row: {
29164
- access_token: string | null;
29165
29828
  api_key: string;
29166
- client_id: string;
29167
- client_secret: string;
29168
29829
  created_at: string;
29169
29830
  customers_endpoint: string | null;
29170
29831
  environment: string;
@@ -29179,10 +29840,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29179
29840
  updated_at: string;
29180
29841
  };
29181
29842
  Insert: {
29182
- access_token?: string | null;
29183
29843
  api_key: string;
29184
- client_id: string;
29185
- client_secret: string;
29186
29844
  created_at?: string;
29187
29845
  customers_endpoint?: string | null;
29188
29846
  environment: string;
@@ -29197,10 +29855,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29197
29855
  updated_at?: string;
29198
29856
  };
29199
29857
  Update: {
29200
- access_token?: string | null;
29201
29858
  api_key?: string;
29202
- client_id?: string;
29203
- client_secret?: string;
29204
29859
  created_at?: string;
29205
29860
  customers_endpoint?: string | null;
29206
29861
  environment?: string;
@@ -29284,6 +29939,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29284
29939
  attempts: number;
29285
29940
  connection_id: string;
29286
29941
  created_at: string;
29942
+ dead_lettered_at: string | null;
29287
29943
  desired_available: boolean | null;
29288
29944
  gateway_attempt_id: string | null;
29289
29945
  id: string;
@@ -29292,9 +29948,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29292
29948
  locked_by: string | null;
29293
29949
  next_attempt_at: string;
29294
29950
  number_of_pieces: number;
29951
+ product_id: string | null;
29295
29952
  sent_at: string | null;
29296
29953
  status: string;
29954
+ stock_mode: string | null;
29297
29955
  superseded_by: string | null;
29956
+ target_week: number | null;
29957
+ target_year: number | null;
29298
29958
  trade_item_id: string;
29299
29959
  updated_at: string;
29300
29960
  user_id: string;
@@ -29303,6 +29963,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29303
29963
  attempts?: number;
29304
29964
  connection_id: string;
29305
29965
  created_at?: string;
29966
+ dead_lettered_at?: string | null;
29306
29967
  desired_available?: boolean | null;
29307
29968
  gateway_attempt_id?: string | null;
29308
29969
  id?: string;
@@ -29311,9 +29972,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29311
29972
  locked_by?: string | null;
29312
29973
  next_attempt_at?: string;
29313
29974
  number_of_pieces?: number;
29975
+ product_id?: string | null;
29314
29976
  sent_at?: string | null;
29315
29977
  status?: string;
29978
+ stock_mode?: string | null;
29316
29979
  superseded_by?: string | null;
29980
+ target_week?: number | null;
29981
+ target_year?: number | null;
29317
29982
  trade_item_id: string;
29318
29983
  updated_at?: string;
29319
29984
  user_id: string;
@@ -29322,6 +29987,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29322
29987
  attempts?: number;
29323
29988
  connection_id?: string;
29324
29989
  created_at?: string;
29990
+ dead_lettered_at?: string | null;
29325
29991
  desired_available?: boolean | null;
29326
29992
  gateway_attempt_id?: string | null;
29327
29993
  id?: string;
@@ -29330,9 +29996,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29330
29996
  locked_by?: string | null;
29331
29997
  next_attempt_at?: string;
29332
29998
  number_of_pieces?: number;
29999
+ product_id?: string | null;
29333
30000
  sent_at?: string | null;
29334
30001
  status?: string;
30002
+ stock_mode?: string | null;
29335
30003
  superseded_by?: string | null;
30004
+ target_week?: number | null;
30005
+ target_year?: number | null;
29336
30006
  trade_item_id?: string;
29337
30007
  updated_at?: string;
29338
30008
  user_id?: string;
@@ -29741,6 +30411,87 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29741
30411
  referencedColumns: ["id"];
29742
30412
  }];
29743
30413
  };
30414
+ floriday_inventory_settings: {
30415
+ Row: {
30416
+ buffer_quantity: number;
30417
+ connection_id: string;
30418
+ created_at: string;
30419
+ desired_availability: boolean;
30420
+ desired_quantity: number;
30421
+ fixed_quantity: number | null;
30422
+ floriday_trade_item_id: string | null;
30423
+ id: string;
30424
+ last_confirmed_at: string | null;
30425
+ last_enqueued_at: string | null;
30426
+ last_published_at: string | null;
30427
+ last_sync_error: string | null;
30428
+ manual_quantity: number | null;
30429
+ maximum_quantity: number | null;
30430
+ product_id: string;
30431
+ quantity_control: string;
30432
+ remote_available: boolean | null;
30433
+ remote_checked_at: string | null;
30434
+ remote_quantity: number | null;
30435
+ stock_mode: string;
30436
+ sync_status: string;
30437
+ updated_at: string;
30438
+ updated_by: string | null;
30439
+ user_id: string;
30440
+ };
30441
+ Insert: {
30442
+ buffer_quantity?: number;
30443
+ connection_id: string;
30444
+ created_at?: string;
30445
+ desired_availability?: boolean;
30446
+ desired_quantity?: number;
30447
+ fixed_quantity?: number | null;
30448
+ floriday_trade_item_id?: string | null;
30449
+ id?: string;
30450
+ last_confirmed_at?: string | null;
30451
+ last_enqueued_at?: string | null;
30452
+ last_published_at?: string | null;
30453
+ last_sync_error?: string | null;
30454
+ manual_quantity?: number | null;
30455
+ maximum_quantity?: number | null;
30456
+ product_id: string;
30457
+ quantity_control?: string;
30458
+ remote_available?: boolean | null;
30459
+ remote_checked_at?: string | null;
30460
+ remote_quantity?: number | null;
30461
+ stock_mode?: string;
30462
+ sync_status?: string;
30463
+ updated_at?: string;
30464
+ updated_by?: string | null;
30465
+ user_id: string;
30466
+ };
30467
+ Update: {
30468
+ buffer_quantity?: number;
30469
+ connection_id?: string;
30470
+ created_at?: string;
30471
+ desired_availability?: boolean;
30472
+ desired_quantity?: number;
30473
+ fixed_quantity?: number | null;
30474
+ floriday_trade_item_id?: string | null;
30475
+ id?: string;
30476
+ last_confirmed_at?: string | null;
30477
+ last_enqueued_at?: string | null;
30478
+ last_published_at?: string | null;
30479
+ last_sync_error?: string | null;
30480
+ manual_quantity?: number | null;
30481
+ maximum_quantity?: number | null;
30482
+ product_id?: string;
30483
+ quantity_control?: string;
30484
+ remote_available?: boolean | null;
30485
+ remote_checked_at?: string | null;
30486
+ remote_quantity?: number | null;
30487
+ stock_mode?: string;
30488
+ sync_status?: string;
30489
+ updated_at?: string;
30490
+ updated_by?: string | null;
30491
+ user_id?: string;
30492
+ };
30493
+ Relationships: [];
30494
+ };
29744
30495
  floriday_invoices_cache: {
29745
30496
  Row: {
29746
30497
  buyer_organization_id: string | null;
@@ -30029,6 +30780,39 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
30029
30780
  };
30030
30781
  Relationships: [];
30031
30782
  };
30783
+ floriday_sales_order_ingest: {
30784
+ Row: {
30785
+ connection_id: string;
30786
+ created_at: string;
30787
+ id: string;
30788
+ impact: import("../integrations/supabase/types").Json;
30789
+ order_status: string | null;
30790
+ order_version: number;
30791
+ processed_at: string;
30792
+ sales_order_id: string;
30793
+ };
30794
+ Insert: {
30795
+ connection_id: string;
30796
+ created_at?: string;
30797
+ id?: string;
30798
+ impact?: import("../integrations/supabase/types").Json;
30799
+ order_status?: string | null;
30800
+ order_version?: number;
30801
+ processed_at?: string;
30802
+ sales_order_id: string;
30803
+ };
30804
+ Update: {
30805
+ connection_id?: string;
30806
+ created_at?: string;
30807
+ id?: string;
30808
+ impact?: import("../integrations/supabase/types").Json;
30809
+ order_status?: string | null;
30810
+ order_version?: number;
30811
+ processed_at?: string;
30812
+ sales_order_id?: string;
30813
+ };
30814
+ Relationships: [];
30815
+ };
30032
30816
  floriday_sales_strategies_cache: {
30033
30817
  Row: {
30034
30818
  connection_id: string;
@@ -30128,6 +30912,39 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
30128
30912
  };
30129
30913
  Relationships: [];
30130
30914
  };
30915
+ floriday_sync_cursors: {
30916
+ Row: {
30917
+ connection_id: string;
30918
+ created_at: string;
30919
+ id: string;
30920
+ last_error: string | null;
30921
+ last_sync_at: string | null;
30922
+ resource_type: string;
30923
+ sequence_number: number;
30924
+ updated_at: string;
30925
+ };
30926
+ Insert: {
30927
+ connection_id: string;
30928
+ created_at?: string;
30929
+ id?: string;
30930
+ last_error?: string | null;
30931
+ last_sync_at?: string | null;
30932
+ resource_type: string;
30933
+ sequence_number?: number;
30934
+ updated_at?: string;
30935
+ };
30936
+ Update: {
30937
+ connection_id?: string;
30938
+ created_at?: string;
30939
+ id?: string;
30940
+ last_error?: string | null;
30941
+ last_sync_at?: string | null;
30942
+ resource_type?: string;
30943
+ sequence_number?: number;
30944
+ updated_at?: string;
30945
+ };
30946
+ Relationships: [];
30947
+ };
30131
30948
  floriday_sync_state: {
30132
30949
  Row: {
30133
30950
  connection_id: string;
@@ -30818,6 +31635,42 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
30818
31635
  };
30819
31636
  Relationships: [];
30820
31637
  };
31638
+ inventory_stock_snapshots: {
31639
+ Row: {
31640
+ connection_id: string;
31641
+ created_at: string;
31642
+ erp_available_quantity: number;
31643
+ floriday_desired_quantity: number;
31644
+ floriday_remote_quantity: number | null;
31645
+ granularity: string;
31646
+ id: string;
31647
+ snapshot_at: string;
31648
+ user_id: string | null;
31649
+ };
31650
+ Insert: {
31651
+ connection_id: string;
31652
+ created_at?: string;
31653
+ erp_available_quantity?: number;
31654
+ floriday_desired_quantity?: number;
31655
+ floriday_remote_quantity?: number | null;
31656
+ granularity?: string;
31657
+ id?: string;
31658
+ snapshot_at?: string;
31659
+ user_id?: string | null;
31660
+ };
31661
+ Update: {
31662
+ connection_id?: string;
31663
+ created_at?: string;
31664
+ erp_available_quantity?: number;
31665
+ floriday_desired_quantity?: number;
31666
+ floriday_remote_quantity?: number | null;
31667
+ granularity?: string;
31668
+ id?: string;
31669
+ snapshot_at?: string;
31670
+ user_id?: string | null;
31671
+ };
31672
+ Relationships: [];
31673
+ };
30821
31674
  invoice_items: {
30822
31675
  Row: {
30823
31676
  created_at: string;
@@ -36833,6 +37686,39 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36833
37686
  };
36834
37687
  Relationships: [];
36835
37688
  };
37689
+ print_dedupe_events: {
37690
+ Row: {
37691
+ bestaande_job_id: string | null;
37692
+ created_at: string;
37693
+ detail: string | null;
37694
+ documentnaam: string | null;
37695
+ documenttype: string | null;
37696
+ id: string;
37697
+ idempotentie_sleutel: string;
37698
+ reden: string;
37699
+ };
37700
+ Insert: {
37701
+ bestaande_job_id?: string | null;
37702
+ created_at?: string;
37703
+ detail?: string | null;
37704
+ documentnaam?: string | null;
37705
+ documenttype?: string | null;
37706
+ id?: string;
37707
+ idempotentie_sleutel: string;
37708
+ reden: string;
37709
+ };
37710
+ Update: {
37711
+ bestaande_job_id?: string | null;
37712
+ created_at?: string;
37713
+ detail?: string | null;
37714
+ documentnaam?: string | null;
37715
+ documenttype?: string | null;
37716
+ id?: string;
37717
+ idempotentie_sleutel?: string;
37718
+ reden?: string;
37719
+ };
37720
+ Relationships: [];
37721
+ };
36836
37722
  print_job_logs: {
36837
37723
  Row: {
36838
37724
  created_at: string;
@@ -36883,6 +37769,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36883
37769
  is_herprint: boolean;
36884
37770
  kopieen: number;
36885
37771
  layout_id: string | null;
37772
+ lokaal_opgeslagen_op: string | null;
37773
+ lokale_pdf_fout: string | null;
37774
+ lokale_pdf_status: string | null;
36886
37775
  opgepakt_op: string | null;
36887
37776
  paginas: number;
36888
37777
  payload: import("../integrations/supabase/types").Json;
@@ -36891,6 +37780,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36891
37780
  pogingen: number;
36892
37781
  printer_id: string | null;
36893
37782
  render_html: string | null;
37783
+ resultaat_pdf_base64: string | null;
36894
37784
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36895
37785
  updated_at: string;
36896
37786
  volgende_poging: string | null;
@@ -36915,6 +37805,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36915
37805
  is_herprint?: boolean;
36916
37806
  kopieen?: number;
36917
37807
  layout_id?: string | null;
37808
+ lokaal_opgeslagen_op?: string | null;
37809
+ lokale_pdf_fout?: string | null;
37810
+ lokale_pdf_status?: string | null;
36918
37811
  opgepakt_op?: string | null;
36919
37812
  paginas?: number;
36920
37813
  payload?: import("../integrations/supabase/types").Json;
@@ -36923,6 +37816,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36923
37816
  pogingen?: number;
36924
37817
  printer_id?: string | null;
36925
37818
  render_html?: string | null;
37819
+ resultaat_pdf_base64?: string | null;
36926
37820
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36927
37821
  updated_at?: string;
36928
37822
  volgende_poging?: string | null;
@@ -36947,6 +37841,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36947
37841
  is_herprint?: boolean;
36948
37842
  kopieen?: number;
36949
37843
  layout_id?: string | null;
37844
+ lokaal_opgeslagen_op?: string | null;
37845
+ lokale_pdf_fout?: string | null;
37846
+ lokale_pdf_status?: string | null;
36950
37847
  opgepakt_op?: string | null;
36951
37848
  paginas?: number;
36952
37849
  payload?: import("../integrations/supabase/types").Json;
@@ -36955,6 +37852,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36955
37852
  pogingen?: number;
36956
37853
  printer_id?: string | null;
36957
37854
  render_html?: string | null;
37855
+ resultaat_pdf_base64?: string | null;
36958
37856
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36959
37857
  updated_at?: string;
36960
37858
  volgende_poging?: string | null;
@@ -37073,6 +37971,39 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
37073
37971
  };
37074
37972
  Relationships: [];
37075
37973
  };
37974
+ print_preview_events: {
37975
+ Row: {
37976
+ code: string | null;
37977
+ created_at: string;
37978
+ detail: import("../integrations/supabase/types").Json;
37979
+ id: string;
37980
+ queue_item_id: string | null;
37981
+ reden: string | null;
37982
+ station_slug: string | null;
37983
+ uitkomst: string;
37984
+ };
37985
+ Insert: {
37986
+ code?: string | null;
37987
+ created_at?: string;
37988
+ detail?: import("../integrations/supabase/types").Json;
37989
+ id?: string;
37990
+ queue_item_id?: string | null;
37991
+ reden?: string | null;
37992
+ station_slug?: string | null;
37993
+ uitkomst?: string;
37994
+ };
37995
+ Update: {
37996
+ code?: string | null;
37997
+ created_at?: string;
37998
+ detail?: import("../integrations/supabase/types").Json;
37999
+ id?: string;
38000
+ queue_item_id?: string | null;
38001
+ reden?: string | null;
38002
+ station_slug?: string | null;
38003
+ uitkomst?: string;
38004
+ };
38005
+ Relationships: [];
38006
+ };
37076
38007
  print_queue_runners: {
37077
38008
  Row: {
37078
38009
  actief: boolean;
@@ -37312,6 +38243,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
37312
38243
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37313
38244
  online: boolean;
37314
38245
  papierformaat: string;
38246
+ pdf_map: string | null;
37315
38247
  poort: number | null;
37316
38248
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37317
38249
  systeemnaam: string;
@@ -37337,6 +38269,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
37337
38269
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37338
38270
  online?: boolean;
37339
38271
  papierformaat?: string;
38272
+ pdf_map?: string | null;
37340
38273
  poort?: number | null;
37341
38274
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37342
38275
  systeemnaam?: string;
@@ -37362,6 +38295,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
37362
38295
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37363
38296
  online?: boolean;
37364
38297
  papierformaat?: string;
38298
+ pdf_map?: string | null;
37365
38299
  poort?: number | null;
37366
38300
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37367
38301
  systeemnaam?: string;
@@ -39931,6 +40865,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
39931
40865
  };
39932
40866
  trade_item_stock: {
39933
40867
  Row: {
40868
+ change_source: string;
39934
40869
  connection_id: string;
39935
40870
  created_at: string;
39936
40871
  id: string;
@@ -39944,6 +40879,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
39944
40879
  user_id: string;
39945
40880
  };
39946
40881
  Insert: {
40882
+ change_source?: string;
39947
40883
  connection_id: string;
39948
40884
  created_at?: string;
39949
40885
  id?: string;
@@ -39957,6 +40893,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
39957
40893
  user_id: string;
39958
40894
  };
39959
40895
  Update: {
40896
+ change_source?: string;
39960
40897
  connection_id?: string;
39961
40898
  created_at?: string;
39962
40899
  id?: string;
@@ -43557,6 +44494,18 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43557
44494
  Args: never;
43558
44495
  Returns: number;
43559
44496
  };
44497
+ calculate_floriday_desired_stock: {
44498
+ Args: {
44499
+ p_connection_id: string;
44500
+ p_product_id: string;
44501
+ };
44502
+ Returns: {
44503
+ desired_availability: boolean;
44504
+ desired_quantity: number;
44505
+ erp_available: number;
44506
+ stock_mode: string;
44507
+ }[];
44508
+ };
43560
44509
  calculate_layer_stock: {
43561
44510
  Args: {
43562
44511
  p_product_id: string;
@@ -43618,6 +44567,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43618
44567
  is_herprint: boolean;
43619
44568
  kopieen: number;
43620
44569
  layout_id: string | null;
44570
+ lokaal_opgeslagen_op: string | null;
44571
+ lokale_pdf_fout: string | null;
44572
+ lokale_pdf_status: string | null;
43621
44573
  opgepakt_op: string | null;
43622
44574
  paginas: number;
43623
44575
  payload: import("../integrations/supabase/types").Json;
@@ -43626,6 +44578,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43626
44578
  pogingen: number;
43627
44579
  printer_id: string | null;
43628
44580
  render_html: string | null;
44581
+ resultaat_pdf_base64: string | null;
43629
44582
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43630
44583
  updated_at: string;
43631
44584
  volgende_poging: string | null;
@@ -43647,6 +44600,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43647
44600
  attempts: number;
43648
44601
  connection_id: string;
43649
44602
  created_at: string;
44603
+ dead_lettered_at: string | null;
43650
44604
  desired_available: boolean | null;
43651
44605
  gateway_attempt_id: string | null;
43652
44606
  id: string;
@@ -43655,9 +44609,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43655
44609
  locked_by: string | null;
43656
44610
  next_attempt_at: string;
43657
44611
  number_of_pieces: number;
44612
+ product_id: string | null;
43658
44613
  sent_at: string | null;
43659
44614
  status: string;
44615
+ stock_mode: string | null;
43660
44616
  superseded_by: string | null;
44617
+ target_week: number | null;
44618
+ target_year: number | null;
43661
44619
  trade_item_id: string;
43662
44620
  updated_at: string;
43663
44621
  user_id: string;
@@ -43717,6 +44675,53 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43717
44675
  isSetofReturn: true;
43718
44676
  };
43719
44677
  };
44678
+ claim_pdf_print_jobs: {
44679
+ Args: {
44680
+ _max?: number;
44681
+ };
44682
+ Returns: {
44683
+ agent_id: string | null;
44684
+ bron_job_id: string | null;
44685
+ created_at: string;
44686
+ documentnaam: string;
44687
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44688
+ extern_job_id: string | null;
44689
+ foutmelding: string | null;
44690
+ gebruiker_id: string | null;
44691
+ gebruiker_naam: string;
44692
+ gebruikte_bron: string | null;
44693
+ gebruikte_layout_id: string | null;
44694
+ gestart_op: string | null;
44695
+ herkomst: string | null;
44696
+ id: string;
44697
+ idempotentie_sleutel: string | null;
44698
+ is_herprint: boolean;
44699
+ kopieen: number;
44700
+ layout_id: string | null;
44701
+ lokaal_opgeslagen_op: string | null;
44702
+ lokale_pdf_fout: string | null;
44703
+ lokale_pdf_status: string | null;
44704
+ opgepakt_op: string | null;
44705
+ paginas: number;
44706
+ payload: import("../integrations/supabase/types").Json;
44707
+ pdf_base64: string | null;
44708
+ pdf_url: string | null;
44709
+ pogingen: number;
44710
+ printer_id: string | null;
44711
+ render_html: string | null;
44712
+ resultaat_pdf_base64: string | null;
44713
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44714
+ updated_at: string;
44715
+ volgende_poging: string | null;
44716
+ voltooid_op: string | null;
44717
+ }[];
44718
+ SetofOptions: {
44719
+ from: "*";
44720
+ to: "print_jobs";
44721
+ isOneToOne: false;
44722
+ isSetofReturn: true;
44723
+ };
44724
+ };
43720
44725
  claim_print_jobs: {
43721
44726
  Args: {
43722
44727
  _agent_id: string;
@@ -43741,6 +44746,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43741
44746
  is_herprint: boolean;
43742
44747
  kopieen: number;
43743
44748
  layout_id: string | null;
44749
+ lokaal_opgeslagen_op: string | null;
44750
+ lokale_pdf_fout: string | null;
44751
+ lokale_pdf_status: string | null;
43744
44752
  opgepakt_op: string | null;
43745
44753
  paginas: number;
43746
44754
  payload: import("../integrations/supabase/types").Json;
@@ -43749,6 +44757,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43749
44757
  pogingen: number;
43750
44758
  printer_id: string | null;
43751
44759
  render_html: string | null;
44760
+ resultaat_pdf_base64: string | null;
43752
44761
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43753
44762
  updated_at: string;
43754
44763
  volgende_poging: string | null;
@@ -43889,6 +44898,8 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43889
44898
  order_id: string;
43890
44899
  order_source: string;
43891
44900
  pick_date: string;
44901
+ printed_at: string;
44902
+ printed_today: boolean;
43892
44903
  status: string;
43893
44904
  }[];
43894
44905
  };
@@ -44085,6 +45096,24 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44085
45096
  };
44086
45097
  Returns: string;
44087
45098
  };
45099
+ floriday_capture_stock_snapshot: {
45100
+ Args: never;
45101
+ Returns: number;
45102
+ };
45103
+ floriday_cleanup_stock_queue_v2: {
45104
+ Args: never;
45105
+ Returns: undefined;
45106
+ };
45107
+ floriday_compact_stock_snapshots: {
45108
+ Args: never;
45109
+ Returns: undefined;
45110
+ };
45111
+ floriday_default_owner: {
45112
+ Args: {
45113
+ p_connection_id: string;
45114
+ };
45115
+ Returns: string;
45116
+ };
44088
45117
  floriday_effective_price: {
44089
45118
  Args: {
44090
45119
  _buyer_id: string;
@@ -44102,6 +45131,22 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44102
45131
  source_id: string;
44103
45132
  }[];
44104
45133
  };
45134
+ floriday_fill_publish_horizon: {
45135
+ Args: never;
45136
+ Returns: number;
45137
+ };
45138
+ floriday_publish_horizon_weeks: {
45139
+ Args: never;
45140
+ Returns: number;
45141
+ };
45142
+ floriday_recompute_inventory: {
45143
+ Args: {
45144
+ p_connection_id: string;
45145
+ p_force?: boolean;
45146
+ p_product_id: string;
45147
+ };
45148
+ Returns: undefined;
45149
+ };
44105
45150
  format_cart_number: {
44106
45151
  Args: {
44107
45152
  p_pick_date: string;
@@ -44597,6 +45642,10 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44597
45642
  };
44598
45643
  Returns: number;
44599
45644
  };
45645
+ logistics_cancel_orphan_tasks: {
45646
+ Args: never;
45647
+ Returns: number;
45648
+ };
44600
45649
  logistics_capacity_day_check: {
44601
45650
  Args: {
44602
45651
  p_from?: string;
@@ -44617,6 +45666,25 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44617
45666
  };
44618
45667
  Returns: number;
44619
45668
  };
45669
+ logistics_cart_index: {
45670
+ Args: {
45671
+ p_from?: string;
45672
+ p_to?: string;
45673
+ };
45674
+ Returns: {
45675
+ cart_id: string;
45676
+ cart_index: number;
45677
+ cart_label: string;
45678
+ is_shared: boolean;
45679
+ order_number: string;
45680
+ order_source: string;
45681
+ order_uuid: string;
45682
+ pick_date: string;
45683
+ printed_at: string;
45684
+ shifted: boolean;
45685
+ task_status: string;
45686
+ }[];
45687
+ };
44620
45688
  logistics_check_order_allowed: {
44621
45689
  Args: {
44622
45690
  p_lines: import("../integrations/supabase/types").Json;
@@ -44765,6 +45833,17 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44765
45833
  isSetofReturn: false;
44766
45834
  };
44767
45835
  };
45836
+ logistics_consistency_check: {
45837
+ Args: never;
45838
+ Returns: {
45839
+ agenda_carts: number;
45840
+ control_carts: number;
45841
+ ok: boolean;
45842
+ orphan_tasks: number;
45843
+ pick_date: string;
45844
+ raw_carts: number;
45845
+ }[];
45846
+ };
44768
45847
  logistics_delay_customer_email: {
44769
45848
  Args: {
44770
45849
  p_customer: string;
@@ -44854,6 +45933,16 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44854
45933
  isSetofReturn: false;
44855
45934
  };
44856
45935
  };
45936
+ logistics_floriday_cart_plan: {
45937
+ Args: {
45938
+ p_order_id: string;
45939
+ };
45940
+ Returns: {
45941
+ carrier_type: string;
45942
+ idx: number;
45943
+ packages: number;
45944
+ }[];
45945
+ };
44857
45946
  logistics_floriday_claim_pushes: {
44858
45947
  Args: {
44859
45948
  _lease_seconds?: number;
@@ -44958,6 +46047,25 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44958
46047
  };
44959
46048
  Returns: number;
44960
46049
  };
46050
+ logistics_order_overview: {
46051
+ Args: {
46052
+ p_from?: string;
46053
+ p_to?: string;
46054
+ };
46055
+ Returns: {
46056
+ cart_count: number;
46057
+ customer_name: string;
46058
+ delivery_date: string;
46059
+ order_number: string;
46060
+ order_source: string;
46061
+ order_uuid: string;
46062
+ pick_date: string;
46063
+ plant_count: number;
46064
+ printed_at: string;
46065
+ shifted: boolean;
46066
+ status: string;
46067
+ }[];
46068
+ };
44961
46069
  logistics_order_pick_day: {
44962
46070
  Args: {
44963
46071
  p_order_ref: string;
@@ -44970,6 +46078,22 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44970
46078
  };
44971
46079
  Returns: string;
44972
46080
  };
46081
+ logistics_pick_agenda: {
46082
+ Args: {
46083
+ p_from?: string;
46084
+ p_to?: string;
46085
+ };
46086
+ Returns: {
46087
+ cart_count: number;
46088
+ in_preparation: number;
46089
+ order_count: number;
46090
+ orders: import("../integrations/supabase/types").Json;
46091
+ pick_date: string;
46092
+ plant_count: number;
46093
+ ready: number;
46094
+ shifted_count: number;
46095
+ }[];
46096
+ };
44973
46097
  logistics_pick_email_purpose: {
44974
46098
  Args: never;
44975
46099
  Returns: string;
@@ -45024,6 +46148,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45024
46148
  };
45025
46149
  Returns: undefined;
45026
46150
  };
46151
+ logistics_plan_floriday_order: {
46152
+ Args: {
46153
+ p_buffer_id?: string;
46154
+ p_order_id: string;
46155
+ };
46156
+ Returns: number;
46157
+ };
45027
46158
  logistics_plan_impact_orders: {
45028
46159
  Args: {
45029
46160
  p_order_id: string;
@@ -45129,6 +46260,15 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45129
46260
  };
45130
46261
  Returns: import("../integrations/supabase/types").Json;
45131
46262
  };
46263
+ logistics_resolve_pick_document: {
46264
+ Args: {
46265
+ _is_herprint: boolean;
46266
+ _queue_item_id: string;
46267
+ _session_id: string;
46268
+ _voorbeeld: boolean;
46269
+ };
46270
+ Returns: import("../integrations/supabase/types").Json;
46271
+ };
45132
46272
  logistics_resolve_settings: {
45133
46273
  Args: {
45134
46274
  p_config_id: string;
@@ -45569,6 +46709,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45569
46709
  };
45570
46710
  pick_enqueue_print_job: {
45571
46711
  Args: {
46712
+ _is_herprint?: boolean;
45572
46713
  _printer_id?: string;
45573
46714
  _queue_item_id: string;
45574
46715
  _session_id?: string;
@@ -45582,6 +46723,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45582
46723
  };
45583
46724
  Returns: import("../integrations/supabase/types").Json;
45584
46725
  };
46726
+ pick_preview_job: {
46727
+ Args: {
46728
+ _queue_item_id: string;
46729
+ _station_slug: string;
46730
+ };
46731
+ Returns: import("../integrations/supabase/types").Json;
46732
+ };
45585
46733
  pick_print_job_status: {
45586
46734
  Args: {
45587
46735
  _job_id: string;
@@ -45759,6 +46907,24 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45759
46907
  };
45760
46908
  Returns: undefined;
45761
46909
  };
46910
+ print_preview_toestaan: {
46911
+ Args: {
46912
+ _max?: number;
46913
+ _queue_item_id: string;
46914
+ _station_slug: string;
46915
+ _venster_sec?: number;
46916
+ };
46917
+ Returns: import("../integrations/supabase/types").Json;
46918
+ };
46919
+ print_preview_weiger: {
46920
+ Args: {
46921
+ _code: string;
46922
+ _queue_item_id: string;
46923
+ _reden: string;
46924
+ _station_slug: string;
46925
+ };
46926
+ Returns: undefined;
46927
+ };
45762
46928
  process_logistics_event: {
45763
46929
  Args: {
45764
46930
  p_event_id: string;
@@ -45913,6 +47079,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45913
47079
  };
45914
47080
  Returns: string;
45915
47081
  };
47082
+ resolve_print_job_printer_id: {
47083
+ Args: {
47084
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
47085
+ };
47086
+ Returns: string;
47087
+ };
45916
47088
  resolve_product_id_for_item: {
45917
47089
  Args: {
45918
47090
  p_product_name: string;
@@ -46504,7 +47676,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
46504
47676
  };
46505
47677
  CompositeTypes: { [_ in never]: never; };
46506
47678
  }, {
46507
- PostgrestVersion: "14.17";
47679
+ PostgrestVersion: "14.5";
46508
47680
  }>;
46509
47681
  userId: string;
46510
47682
  claims: import("@supabase/auth-js").User;
@@ -49374,6 +50546,84 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
49374
50546
  };
49375
50547
  Relationships: [];
49376
50548
  };
50549
+ delivery_notes: {
50550
+ Row: {
50551
+ byte_size: number | null;
50552
+ connection_id: string | null;
50553
+ content_type: string;
50554
+ created_at: string;
50555
+ error_message: string | null;
50556
+ fetched_at: string | null;
50557
+ fulfillment_order_id: string | null;
50558
+ http_status: number | null;
50559
+ id: string;
50560
+ label_code: string | null;
50561
+ letter: string | null;
50562
+ load_carrier_index: number | null;
50563
+ load_carrier_type: string | null;
50564
+ order_id: string | null;
50565
+ order_number: string | null;
50566
+ packages: number | null;
50567
+ source: string;
50568
+ status: string;
50569
+ storage_bucket: string;
50570
+ storage_path: string | null;
50571
+ updated_at: string;
50572
+ };
50573
+ Insert: {
50574
+ byte_size?: number | null;
50575
+ connection_id?: string | null;
50576
+ content_type?: string;
50577
+ created_at?: string;
50578
+ error_message?: string | null;
50579
+ fetched_at?: string | null;
50580
+ fulfillment_order_id?: string | null;
50581
+ http_status?: number | null;
50582
+ id?: string;
50583
+ label_code?: string | null;
50584
+ letter?: string | null;
50585
+ load_carrier_index?: number | null;
50586
+ load_carrier_type?: string | null;
50587
+ order_id?: string | null;
50588
+ order_number?: string | null;
50589
+ packages?: number | null;
50590
+ source?: string;
50591
+ status?: string;
50592
+ storage_bucket?: string;
50593
+ storage_path?: string | null;
50594
+ updated_at?: string;
50595
+ };
50596
+ Update: {
50597
+ byte_size?: number | null;
50598
+ connection_id?: string | null;
50599
+ content_type?: string;
50600
+ created_at?: string;
50601
+ error_message?: string | null;
50602
+ fetched_at?: string | null;
50603
+ fulfillment_order_id?: string | null;
50604
+ http_status?: number | null;
50605
+ id?: string;
50606
+ label_code?: string | null;
50607
+ letter?: string | null;
50608
+ load_carrier_index?: number | null;
50609
+ load_carrier_type?: string | null;
50610
+ order_id?: string | null;
50611
+ order_number?: string | null;
50612
+ packages?: number | null;
50613
+ source?: string;
50614
+ status?: string;
50615
+ storage_bucket?: string;
50616
+ storage_path?: string | null;
50617
+ updated_at?: string;
50618
+ };
50619
+ Relationships: [{
50620
+ foreignKeyName: "delivery_notes_order_id_fkey";
50621
+ columns: ["order_id"];
50622
+ isOneToOne: false;
50623
+ referencedRelation: "orders";
50624
+ referencedColumns: ["id"];
50625
+ }];
50626
+ };
49377
50627
  document_bronregels: {
49378
50628
  Row: {
49379
50629
  bron: string;
@@ -52427,10 +53677,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52427
53677
  };
52428
53678
  floriday_connections: {
52429
53679
  Row: {
52430
- access_token: string | null;
52431
53680
  api_key: string;
52432
- client_id: string;
52433
- client_secret: string;
52434
53681
  created_at: string;
52435
53682
  customers_endpoint: string | null;
52436
53683
  environment: string;
@@ -52445,10 +53692,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52445
53692
  updated_at: string;
52446
53693
  };
52447
53694
  Insert: {
52448
- access_token?: string | null;
52449
53695
  api_key: string;
52450
- client_id: string;
52451
- client_secret: string;
52452
53696
  created_at?: string;
52453
53697
  customers_endpoint?: string | null;
52454
53698
  environment: string;
@@ -52463,10 +53707,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52463
53707
  updated_at?: string;
52464
53708
  };
52465
53709
  Update: {
52466
- access_token?: string | null;
52467
53710
  api_key?: string;
52468
- client_id?: string;
52469
- client_secret?: string;
52470
53711
  created_at?: string;
52471
53712
  customers_endpoint?: string | null;
52472
53713
  environment?: string;
@@ -52550,6 +53791,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52550
53791
  attempts: number;
52551
53792
  connection_id: string;
52552
53793
  created_at: string;
53794
+ dead_lettered_at: string | null;
52553
53795
  desired_available: boolean | null;
52554
53796
  gateway_attempt_id: string | null;
52555
53797
  id: string;
@@ -52558,9 +53800,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52558
53800
  locked_by: string | null;
52559
53801
  next_attempt_at: string;
52560
53802
  number_of_pieces: number;
53803
+ product_id: string | null;
52561
53804
  sent_at: string | null;
52562
53805
  status: string;
53806
+ stock_mode: string | null;
52563
53807
  superseded_by: string | null;
53808
+ target_week: number | null;
53809
+ target_year: number | null;
52564
53810
  trade_item_id: string;
52565
53811
  updated_at: string;
52566
53812
  user_id: string;
@@ -52569,6 +53815,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52569
53815
  attempts?: number;
52570
53816
  connection_id: string;
52571
53817
  created_at?: string;
53818
+ dead_lettered_at?: string | null;
52572
53819
  desired_available?: boolean | null;
52573
53820
  gateway_attempt_id?: string | null;
52574
53821
  id?: string;
@@ -52577,9 +53824,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52577
53824
  locked_by?: string | null;
52578
53825
  next_attempt_at?: string;
52579
53826
  number_of_pieces?: number;
53827
+ product_id?: string | null;
52580
53828
  sent_at?: string | null;
52581
53829
  status?: string;
53830
+ stock_mode?: string | null;
52582
53831
  superseded_by?: string | null;
53832
+ target_week?: number | null;
53833
+ target_year?: number | null;
52583
53834
  trade_item_id: string;
52584
53835
  updated_at?: string;
52585
53836
  user_id: string;
@@ -52588,6 +53839,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52588
53839
  attempts?: number;
52589
53840
  connection_id?: string;
52590
53841
  created_at?: string;
53842
+ dead_lettered_at?: string | null;
52591
53843
  desired_available?: boolean | null;
52592
53844
  gateway_attempt_id?: string | null;
52593
53845
  id?: string;
@@ -52596,9 +53848,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52596
53848
  locked_by?: string | null;
52597
53849
  next_attempt_at?: string;
52598
53850
  number_of_pieces?: number;
53851
+ product_id?: string | null;
52599
53852
  sent_at?: string | null;
52600
53853
  status?: string;
53854
+ stock_mode?: string | null;
52601
53855
  superseded_by?: string | null;
53856
+ target_week?: number | null;
53857
+ target_year?: number | null;
52602
53858
  trade_item_id?: string;
52603
53859
  updated_at?: string;
52604
53860
  user_id?: string;
@@ -53007,6 +54263,87 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53007
54263
  referencedColumns: ["id"];
53008
54264
  }];
53009
54265
  };
54266
+ floriday_inventory_settings: {
54267
+ Row: {
54268
+ buffer_quantity: number;
54269
+ connection_id: string;
54270
+ created_at: string;
54271
+ desired_availability: boolean;
54272
+ desired_quantity: number;
54273
+ fixed_quantity: number | null;
54274
+ floriday_trade_item_id: string | null;
54275
+ id: string;
54276
+ last_confirmed_at: string | null;
54277
+ last_enqueued_at: string | null;
54278
+ last_published_at: string | null;
54279
+ last_sync_error: string | null;
54280
+ manual_quantity: number | null;
54281
+ maximum_quantity: number | null;
54282
+ product_id: string;
54283
+ quantity_control: string;
54284
+ remote_available: boolean | null;
54285
+ remote_checked_at: string | null;
54286
+ remote_quantity: number | null;
54287
+ stock_mode: string;
54288
+ sync_status: string;
54289
+ updated_at: string;
54290
+ updated_by: string | null;
54291
+ user_id: string;
54292
+ };
54293
+ Insert: {
54294
+ buffer_quantity?: number;
54295
+ connection_id: string;
54296
+ created_at?: string;
54297
+ desired_availability?: boolean;
54298
+ desired_quantity?: number;
54299
+ fixed_quantity?: number | null;
54300
+ floriday_trade_item_id?: string | null;
54301
+ id?: string;
54302
+ last_confirmed_at?: string | null;
54303
+ last_enqueued_at?: string | null;
54304
+ last_published_at?: string | null;
54305
+ last_sync_error?: string | null;
54306
+ manual_quantity?: number | null;
54307
+ maximum_quantity?: number | null;
54308
+ product_id: string;
54309
+ quantity_control?: string;
54310
+ remote_available?: boolean | null;
54311
+ remote_checked_at?: string | null;
54312
+ remote_quantity?: number | null;
54313
+ stock_mode?: string;
54314
+ sync_status?: string;
54315
+ updated_at?: string;
54316
+ updated_by?: string | null;
54317
+ user_id: string;
54318
+ };
54319
+ Update: {
54320
+ buffer_quantity?: number;
54321
+ connection_id?: string;
54322
+ created_at?: string;
54323
+ desired_availability?: boolean;
54324
+ desired_quantity?: number;
54325
+ fixed_quantity?: number | null;
54326
+ floriday_trade_item_id?: string | null;
54327
+ id?: string;
54328
+ last_confirmed_at?: string | null;
54329
+ last_enqueued_at?: string | null;
54330
+ last_published_at?: string | null;
54331
+ last_sync_error?: string | null;
54332
+ manual_quantity?: number | null;
54333
+ maximum_quantity?: number | null;
54334
+ product_id?: string;
54335
+ quantity_control?: string;
54336
+ remote_available?: boolean | null;
54337
+ remote_checked_at?: string | null;
54338
+ remote_quantity?: number | null;
54339
+ stock_mode?: string;
54340
+ sync_status?: string;
54341
+ updated_at?: string;
54342
+ updated_by?: string | null;
54343
+ user_id?: string;
54344
+ };
54345
+ Relationships: [];
54346
+ };
53010
54347
  floriday_invoices_cache: {
53011
54348
  Row: {
53012
54349
  buyer_organization_id: string | null;
@@ -53295,6 +54632,39 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53295
54632
  };
53296
54633
  Relationships: [];
53297
54634
  };
54635
+ floriday_sales_order_ingest: {
54636
+ Row: {
54637
+ connection_id: string;
54638
+ created_at: string;
54639
+ id: string;
54640
+ impact: import("../integrations/supabase/types").Json;
54641
+ order_status: string | null;
54642
+ order_version: number;
54643
+ processed_at: string;
54644
+ sales_order_id: string;
54645
+ };
54646
+ Insert: {
54647
+ connection_id: string;
54648
+ created_at?: string;
54649
+ id?: string;
54650
+ impact?: import("../integrations/supabase/types").Json;
54651
+ order_status?: string | null;
54652
+ order_version?: number;
54653
+ processed_at?: string;
54654
+ sales_order_id: string;
54655
+ };
54656
+ Update: {
54657
+ connection_id?: string;
54658
+ created_at?: string;
54659
+ id?: string;
54660
+ impact?: import("../integrations/supabase/types").Json;
54661
+ order_status?: string | null;
54662
+ order_version?: number;
54663
+ processed_at?: string;
54664
+ sales_order_id?: string;
54665
+ };
54666
+ Relationships: [];
54667
+ };
53298
54668
  floriday_sales_strategies_cache: {
53299
54669
  Row: {
53300
54670
  connection_id: string;
@@ -53394,6 +54764,39 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53394
54764
  };
53395
54765
  Relationships: [];
53396
54766
  };
54767
+ floriday_sync_cursors: {
54768
+ Row: {
54769
+ connection_id: string;
54770
+ created_at: string;
54771
+ id: string;
54772
+ last_error: string | null;
54773
+ last_sync_at: string | null;
54774
+ resource_type: string;
54775
+ sequence_number: number;
54776
+ updated_at: string;
54777
+ };
54778
+ Insert: {
54779
+ connection_id: string;
54780
+ created_at?: string;
54781
+ id?: string;
54782
+ last_error?: string | null;
54783
+ last_sync_at?: string | null;
54784
+ resource_type: string;
54785
+ sequence_number?: number;
54786
+ updated_at?: string;
54787
+ };
54788
+ Update: {
54789
+ connection_id?: string;
54790
+ created_at?: string;
54791
+ id?: string;
54792
+ last_error?: string | null;
54793
+ last_sync_at?: string | null;
54794
+ resource_type?: string;
54795
+ sequence_number?: number;
54796
+ updated_at?: string;
54797
+ };
54798
+ Relationships: [];
54799
+ };
53397
54800
  floriday_sync_state: {
53398
54801
  Row: {
53399
54802
  connection_id: string;
@@ -54084,6 +55487,42 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
54084
55487
  };
54085
55488
  Relationships: [];
54086
55489
  };
55490
+ inventory_stock_snapshots: {
55491
+ Row: {
55492
+ connection_id: string;
55493
+ created_at: string;
55494
+ erp_available_quantity: number;
55495
+ floriday_desired_quantity: number;
55496
+ floriday_remote_quantity: number | null;
55497
+ granularity: string;
55498
+ id: string;
55499
+ snapshot_at: string;
55500
+ user_id: string | null;
55501
+ };
55502
+ Insert: {
55503
+ connection_id: string;
55504
+ created_at?: string;
55505
+ erp_available_quantity?: number;
55506
+ floriday_desired_quantity?: number;
55507
+ floriday_remote_quantity?: number | null;
55508
+ granularity?: string;
55509
+ id?: string;
55510
+ snapshot_at?: string;
55511
+ user_id?: string | null;
55512
+ };
55513
+ Update: {
55514
+ connection_id?: string;
55515
+ created_at?: string;
55516
+ erp_available_quantity?: number;
55517
+ floriday_desired_quantity?: number;
55518
+ floriday_remote_quantity?: number | null;
55519
+ granularity?: string;
55520
+ id?: string;
55521
+ snapshot_at?: string;
55522
+ user_id?: string | null;
55523
+ };
55524
+ Relationships: [];
55525
+ };
54087
55526
  invoice_items: {
54088
55527
  Row: {
54089
55528
  created_at: string;
@@ -60099,6 +61538,39 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60099
61538
  };
60100
61539
  Relationships: [];
60101
61540
  };
61541
+ print_dedupe_events: {
61542
+ Row: {
61543
+ bestaande_job_id: string | null;
61544
+ created_at: string;
61545
+ detail: string | null;
61546
+ documentnaam: string | null;
61547
+ documenttype: string | null;
61548
+ id: string;
61549
+ idempotentie_sleutel: string;
61550
+ reden: string;
61551
+ };
61552
+ Insert: {
61553
+ bestaande_job_id?: string | null;
61554
+ created_at?: string;
61555
+ detail?: string | null;
61556
+ documentnaam?: string | null;
61557
+ documenttype?: string | null;
61558
+ id?: string;
61559
+ idempotentie_sleutel: string;
61560
+ reden: string;
61561
+ };
61562
+ Update: {
61563
+ bestaande_job_id?: string | null;
61564
+ created_at?: string;
61565
+ detail?: string | null;
61566
+ documentnaam?: string | null;
61567
+ documenttype?: string | null;
61568
+ id?: string;
61569
+ idempotentie_sleutel?: string;
61570
+ reden?: string;
61571
+ };
61572
+ Relationships: [];
61573
+ };
60102
61574
  print_job_logs: {
60103
61575
  Row: {
60104
61576
  created_at: string;
@@ -60149,6 +61621,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60149
61621
  is_herprint: boolean;
60150
61622
  kopieen: number;
60151
61623
  layout_id: string | null;
61624
+ lokaal_opgeslagen_op: string | null;
61625
+ lokale_pdf_fout: string | null;
61626
+ lokale_pdf_status: string | null;
60152
61627
  opgepakt_op: string | null;
60153
61628
  paginas: number;
60154
61629
  payload: import("../integrations/supabase/types").Json;
@@ -60157,6 +61632,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60157
61632
  pogingen: number;
60158
61633
  printer_id: string | null;
60159
61634
  render_html: string | null;
61635
+ resultaat_pdf_base64: string | null;
60160
61636
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60161
61637
  updated_at: string;
60162
61638
  volgende_poging: string | null;
@@ -60181,6 +61657,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60181
61657
  is_herprint?: boolean;
60182
61658
  kopieen?: number;
60183
61659
  layout_id?: string | null;
61660
+ lokaal_opgeslagen_op?: string | null;
61661
+ lokale_pdf_fout?: string | null;
61662
+ lokale_pdf_status?: string | null;
60184
61663
  opgepakt_op?: string | null;
60185
61664
  paginas?: number;
60186
61665
  payload?: import("../integrations/supabase/types").Json;
@@ -60189,6 +61668,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60189
61668
  pogingen?: number;
60190
61669
  printer_id?: string | null;
60191
61670
  render_html?: string | null;
61671
+ resultaat_pdf_base64?: string | null;
60192
61672
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60193
61673
  updated_at?: string;
60194
61674
  volgende_poging?: string | null;
@@ -60213,6 +61693,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60213
61693
  is_herprint?: boolean;
60214
61694
  kopieen?: number;
60215
61695
  layout_id?: string | null;
61696
+ lokaal_opgeslagen_op?: string | null;
61697
+ lokale_pdf_fout?: string | null;
61698
+ lokale_pdf_status?: string | null;
60216
61699
  opgepakt_op?: string | null;
60217
61700
  paginas?: number;
60218
61701
  payload?: import("../integrations/supabase/types").Json;
@@ -60221,6 +61704,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60221
61704
  pogingen?: number;
60222
61705
  printer_id?: string | null;
60223
61706
  render_html?: string | null;
61707
+ resultaat_pdf_base64?: string | null;
60224
61708
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60225
61709
  updated_at?: string;
60226
61710
  volgende_poging?: string | null;
@@ -60339,6 +61823,39 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60339
61823
  };
60340
61824
  Relationships: [];
60341
61825
  };
61826
+ print_preview_events: {
61827
+ Row: {
61828
+ code: string | null;
61829
+ created_at: string;
61830
+ detail: import("../integrations/supabase/types").Json;
61831
+ id: string;
61832
+ queue_item_id: string | null;
61833
+ reden: string | null;
61834
+ station_slug: string | null;
61835
+ uitkomst: string;
61836
+ };
61837
+ Insert: {
61838
+ code?: string | null;
61839
+ created_at?: string;
61840
+ detail?: import("../integrations/supabase/types").Json;
61841
+ id?: string;
61842
+ queue_item_id?: string | null;
61843
+ reden?: string | null;
61844
+ station_slug?: string | null;
61845
+ uitkomst?: string;
61846
+ };
61847
+ Update: {
61848
+ code?: string | null;
61849
+ created_at?: string;
61850
+ detail?: import("../integrations/supabase/types").Json;
61851
+ id?: string;
61852
+ queue_item_id?: string | null;
61853
+ reden?: string | null;
61854
+ station_slug?: string | null;
61855
+ uitkomst?: string;
61856
+ };
61857
+ Relationships: [];
61858
+ };
60342
61859
  print_queue_runners: {
60343
61860
  Row: {
60344
61861
  actief: boolean;
@@ -60578,6 +62095,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60578
62095
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60579
62096
  online: boolean;
60580
62097
  papierformaat: string;
62098
+ pdf_map: string | null;
60581
62099
  poort: number | null;
60582
62100
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60583
62101
  systeemnaam: string;
@@ -60603,6 +62121,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60603
62121
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60604
62122
  online?: boolean;
60605
62123
  papierformaat?: string;
62124
+ pdf_map?: string | null;
60606
62125
  poort?: number | null;
60607
62126
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60608
62127
  systeemnaam?: string;
@@ -60628,6 +62147,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60628
62147
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60629
62148
  online?: boolean;
60630
62149
  papierformaat?: string;
62150
+ pdf_map?: string | null;
60631
62151
  poort?: number | null;
60632
62152
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60633
62153
  systeemnaam?: string;
@@ -63197,6 +64717,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
63197
64717
  };
63198
64718
  trade_item_stock: {
63199
64719
  Row: {
64720
+ change_source: string;
63200
64721
  connection_id: string;
63201
64722
  created_at: string;
63202
64723
  id: string;
@@ -63210,6 +64731,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
63210
64731
  user_id: string;
63211
64732
  };
63212
64733
  Insert: {
64734
+ change_source?: string;
63213
64735
  connection_id: string;
63214
64736
  created_at?: string;
63215
64737
  id?: string;
@@ -63223,6 +64745,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
63223
64745
  user_id: string;
63224
64746
  };
63225
64747
  Update: {
64748
+ change_source?: string;
63226
64749
  connection_id?: string;
63227
64750
  created_at?: string;
63228
64751
  id?: string;
@@ -66823,6 +68346,18 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66823
68346
  Args: never;
66824
68347
  Returns: number;
66825
68348
  };
68349
+ calculate_floriday_desired_stock: {
68350
+ Args: {
68351
+ p_connection_id: string;
68352
+ p_product_id: string;
68353
+ };
68354
+ Returns: {
68355
+ desired_availability: boolean;
68356
+ desired_quantity: number;
68357
+ erp_available: number;
68358
+ stock_mode: string;
68359
+ }[];
68360
+ };
66826
68361
  calculate_layer_stock: {
66827
68362
  Args: {
66828
68363
  p_product_id: string;
@@ -66884,6 +68419,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66884
68419
  is_herprint: boolean;
66885
68420
  kopieen: number;
66886
68421
  layout_id: string | null;
68422
+ lokaal_opgeslagen_op: string | null;
68423
+ lokale_pdf_fout: string | null;
68424
+ lokale_pdf_status: string | null;
66887
68425
  opgepakt_op: string | null;
66888
68426
  paginas: number;
66889
68427
  payload: import("../integrations/supabase/types").Json;
@@ -66892,6 +68430,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66892
68430
  pogingen: number;
66893
68431
  printer_id: string | null;
66894
68432
  render_html: string | null;
68433
+ resultaat_pdf_base64: string | null;
66895
68434
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66896
68435
  updated_at: string;
66897
68436
  volgende_poging: string | null;
@@ -66913,6 +68452,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66913
68452
  attempts: number;
66914
68453
  connection_id: string;
66915
68454
  created_at: string;
68455
+ dead_lettered_at: string | null;
66916
68456
  desired_available: boolean | null;
66917
68457
  gateway_attempt_id: string | null;
66918
68458
  id: string;
@@ -66921,9 +68461,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66921
68461
  locked_by: string | null;
66922
68462
  next_attempt_at: string;
66923
68463
  number_of_pieces: number;
68464
+ product_id: string | null;
66924
68465
  sent_at: string | null;
66925
68466
  status: string;
68467
+ stock_mode: string | null;
66926
68468
  superseded_by: string | null;
68469
+ target_week: number | null;
68470
+ target_year: number | null;
66927
68471
  trade_item_id: string;
66928
68472
  updated_at: string;
66929
68473
  user_id: string;
@@ -66983,6 +68527,53 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66983
68527
  isSetofReturn: true;
66984
68528
  };
66985
68529
  };
68530
+ claim_pdf_print_jobs: {
68531
+ Args: {
68532
+ _max?: number;
68533
+ };
68534
+ Returns: {
68535
+ agent_id: string | null;
68536
+ bron_job_id: string | null;
68537
+ created_at: string;
68538
+ documentnaam: string;
68539
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
68540
+ extern_job_id: string | null;
68541
+ foutmelding: string | null;
68542
+ gebruiker_id: string | null;
68543
+ gebruiker_naam: string;
68544
+ gebruikte_bron: string | null;
68545
+ gebruikte_layout_id: string | null;
68546
+ gestart_op: string | null;
68547
+ herkomst: string | null;
68548
+ id: string;
68549
+ idempotentie_sleutel: string | null;
68550
+ is_herprint: boolean;
68551
+ kopieen: number;
68552
+ layout_id: string | null;
68553
+ lokaal_opgeslagen_op: string | null;
68554
+ lokale_pdf_fout: string | null;
68555
+ lokale_pdf_status: string | null;
68556
+ opgepakt_op: string | null;
68557
+ paginas: number;
68558
+ payload: import("../integrations/supabase/types").Json;
68559
+ pdf_base64: string | null;
68560
+ pdf_url: string | null;
68561
+ pogingen: number;
68562
+ printer_id: string | null;
68563
+ render_html: string | null;
68564
+ resultaat_pdf_base64: string | null;
68565
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
68566
+ updated_at: string;
68567
+ volgende_poging: string | null;
68568
+ voltooid_op: string | null;
68569
+ }[];
68570
+ SetofOptions: {
68571
+ from: "*";
68572
+ to: "print_jobs";
68573
+ isOneToOne: false;
68574
+ isSetofReturn: true;
68575
+ };
68576
+ };
66986
68577
  claim_print_jobs: {
66987
68578
  Args: {
66988
68579
  _agent_id: string;
@@ -67007,6 +68598,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67007
68598
  is_herprint: boolean;
67008
68599
  kopieen: number;
67009
68600
  layout_id: string | null;
68601
+ lokaal_opgeslagen_op: string | null;
68602
+ lokale_pdf_fout: string | null;
68603
+ lokale_pdf_status: string | null;
67010
68604
  opgepakt_op: string | null;
67011
68605
  paginas: number;
67012
68606
  payload: import("../integrations/supabase/types").Json;
@@ -67015,6 +68609,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67015
68609
  pogingen: number;
67016
68610
  printer_id: string | null;
67017
68611
  render_html: string | null;
68612
+ resultaat_pdf_base64: string | null;
67018
68613
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67019
68614
  updated_at: string;
67020
68615
  volgende_poging: string | null;
@@ -67155,6 +68750,8 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67155
68750
  order_id: string;
67156
68751
  order_source: string;
67157
68752
  pick_date: string;
68753
+ printed_at: string;
68754
+ printed_today: boolean;
67158
68755
  status: string;
67159
68756
  }[];
67160
68757
  };
@@ -67351,6 +68948,24 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67351
68948
  };
67352
68949
  Returns: string;
67353
68950
  };
68951
+ floriday_capture_stock_snapshot: {
68952
+ Args: never;
68953
+ Returns: number;
68954
+ };
68955
+ floriday_cleanup_stock_queue_v2: {
68956
+ Args: never;
68957
+ Returns: undefined;
68958
+ };
68959
+ floriday_compact_stock_snapshots: {
68960
+ Args: never;
68961
+ Returns: undefined;
68962
+ };
68963
+ floriday_default_owner: {
68964
+ Args: {
68965
+ p_connection_id: string;
68966
+ };
68967
+ Returns: string;
68968
+ };
67354
68969
  floriday_effective_price: {
67355
68970
  Args: {
67356
68971
  _buyer_id: string;
@@ -67368,6 +68983,22 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67368
68983
  source_id: string;
67369
68984
  }[];
67370
68985
  };
68986
+ floriday_fill_publish_horizon: {
68987
+ Args: never;
68988
+ Returns: number;
68989
+ };
68990
+ floriday_publish_horizon_weeks: {
68991
+ Args: never;
68992
+ Returns: number;
68993
+ };
68994
+ floriday_recompute_inventory: {
68995
+ Args: {
68996
+ p_connection_id: string;
68997
+ p_force?: boolean;
68998
+ p_product_id: string;
68999
+ };
69000
+ Returns: undefined;
69001
+ };
67371
69002
  format_cart_number: {
67372
69003
  Args: {
67373
69004
  p_pick_date: string;
@@ -67863,6 +69494,10 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67863
69494
  };
67864
69495
  Returns: number;
67865
69496
  };
69497
+ logistics_cancel_orphan_tasks: {
69498
+ Args: never;
69499
+ Returns: number;
69500
+ };
67866
69501
  logistics_capacity_day_check: {
67867
69502
  Args: {
67868
69503
  p_from?: string;
@@ -67883,6 +69518,25 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67883
69518
  };
67884
69519
  Returns: number;
67885
69520
  };
69521
+ logistics_cart_index: {
69522
+ Args: {
69523
+ p_from?: string;
69524
+ p_to?: string;
69525
+ };
69526
+ Returns: {
69527
+ cart_id: string;
69528
+ cart_index: number;
69529
+ cart_label: string;
69530
+ is_shared: boolean;
69531
+ order_number: string;
69532
+ order_source: string;
69533
+ order_uuid: string;
69534
+ pick_date: string;
69535
+ printed_at: string;
69536
+ shifted: boolean;
69537
+ task_status: string;
69538
+ }[];
69539
+ };
67886
69540
  logistics_check_order_allowed: {
67887
69541
  Args: {
67888
69542
  p_lines: import("../integrations/supabase/types").Json;
@@ -68031,6 +69685,17 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68031
69685
  isSetofReturn: false;
68032
69686
  };
68033
69687
  };
69688
+ logistics_consistency_check: {
69689
+ Args: never;
69690
+ Returns: {
69691
+ agenda_carts: number;
69692
+ control_carts: number;
69693
+ ok: boolean;
69694
+ orphan_tasks: number;
69695
+ pick_date: string;
69696
+ raw_carts: number;
69697
+ }[];
69698
+ };
68034
69699
  logistics_delay_customer_email: {
68035
69700
  Args: {
68036
69701
  p_customer: string;
@@ -68120,6 +69785,16 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68120
69785
  isSetofReturn: false;
68121
69786
  };
68122
69787
  };
69788
+ logistics_floriday_cart_plan: {
69789
+ Args: {
69790
+ p_order_id: string;
69791
+ };
69792
+ Returns: {
69793
+ carrier_type: string;
69794
+ idx: number;
69795
+ packages: number;
69796
+ }[];
69797
+ };
68123
69798
  logistics_floriday_claim_pushes: {
68124
69799
  Args: {
68125
69800
  _lease_seconds?: number;
@@ -68224,6 +69899,25 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68224
69899
  };
68225
69900
  Returns: number;
68226
69901
  };
69902
+ logistics_order_overview: {
69903
+ Args: {
69904
+ p_from?: string;
69905
+ p_to?: string;
69906
+ };
69907
+ Returns: {
69908
+ cart_count: number;
69909
+ customer_name: string;
69910
+ delivery_date: string;
69911
+ order_number: string;
69912
+ order_source: string;
69913
+ order_uuid: string;
69914
+ pick_date: string;
69915
+ plant_count: number;
69916
+ printed_at: string;
69917
+ shifted: boolean;
69918
+ status: string;
69919
+ }[];
69920
+ };
68227
69921
  logistics_order_pick_day: {
68228
69922
  Args: {
68229
69923
  p_order_ref: string;
@@ -68236,6 +69930,22 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68236
69930
  };
68237
69931
  Returns: string;
68238
69932
  };
69933
+ logistics_pick_agenda: {
69934
+ Args: {
69935
+ p_from?: string;
69936
+ p_to?: string;
69937
+ };
69938
+ Returns: {
69939
+ cart_count: number;
69940
+ in_preparation: number;
69941
+ order_count: number;
69942
+ orders: import("../integrations/supabase/types").Json;
69943
+ pick_date: string;
69944
+ plant_count: number;
69945
+ ready: number;
69946
+ shifted_count: number;
69947
+ }[];
69948
+ };
68239
69949
  logistics_pick_email_purpose: {
68240
69950
  Args: never;
68241
69951
  Returns: string;
@@ -68290,6 +70000,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68290
70000
  };
68291
70001
  Returns: undefined;
68292
70002
  };
70003
+ logistics_plan_floriday_order: {
70004
+ Args: {
70005
+ p_buffer_id?: string;
70006
+ p_order_id: string;
70007
+ };
70008
+ Returns: number;
70009
+ };
68293
70010
  logistics_plan_impact_orders: {
68294
70011
  Args: {
68295
70012
  p_order_id: string;
@@ -68395,6 +70112,15 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68395
70112
  };
68396
70113
  Returns: import("../integrations/supabase/types").Json;
68397
70114
  };
70115
+ logistics_resolve_pick_document: {
70116
+ Args: {
70117
+ _is_herprint: boolean;
70118
+ _queue_item_id: string;
70119
+ _session_id: string;
70120
+ _voorbeeld: boolean;
70121
+ };
70122
+ Returns: import("../integrations/supabase/types").Json;
70123
+ };
68398
70124
  logistics_resolve_settings: {
68399
70125
  Args: {
68400
70126
  p_config_id: string;
@@ -68835,6 +70561,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68835
70561
  };
68836
70562
  pick_enqueue_print_job: {
68837
70563
  Args: {
70564
+ _is_herprint?: boolean;
68838
70565
  _printer_id?: string;
68839
70566
  _queue_item_id: string;
68840
70567
  _session_id?: string;
@@ -68848,6 +70575,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68848
70575
  };
68849
70576
  Returns: import("../integrations/supabase/types").Json;
68850
70577
  };
70578
+ pick_preview_job: {
70579
+ Args: {
70580
+ _queue_item_id: string;
70581
+ _station_slug: string;
70582
+ };
70583
+ Returns: import("../integrations/supabase/types").Json;
70584
+ };
68851
70585
  pick_print_job_status: {
68852
70586
  Args: {
68853
70587
  _job_id: string;
@@ -69025,6 +70759,24 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
69025
70759
  };
69026
70760
  Returns: undefined;
69027
70761
  };
70762
+ print_preview_toestaan: {
70763
+ Args: {
70764
+ _max?: number;
70765
+ _queue_item_id: string;
70766
+ _station_slug: string;
70767
+ _venster_sec?: number;
70768
+ };
70769
+ Returns: import("../integrations/supabase/types").Json;
70770
+ };
70771
+ print_preview_weiger: {
70772
+ Args: {
70773
+ _code: string;
70774
+ _queue_item_id: string;
70775
+ _reden: string;
70776
+ _station_slug: string;
70777
+ };
70778
+ Returns: undefined;
70779
+ };
69028
70780
  process_logistics_event: {
69029
70781
  Args: {
69030
70782
  p_event_id: string;
@@ -69179,6 +70931,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
69179
70931
  };
69180
70932
  Returns: string;
69181
70933
  };
70934
+ resolve_print_job_printer_id: {
70935
+ Args: {
70936
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70937
+ };
70938
+ Returns: string;
70939
+ };
69182
70940
  resolve_product_id_for_item: {
69183
70941
  Args: {
69184
70942
  p_product_name: string;
@@ -69770,7 +71528,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
69770
71528
  };
69771
71529
  CompositeTypes: { [_ in never]: never; };
69772
71530
  }, {
69773
- PostgrestVersion: "14.17";
71531
+ PostgrestVersion: "14.5";
69774
71532
  }>;
69775
71533
  userId: string;
69776
71534
  claims: import("@supabase/auth-js").User;