@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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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;
@@ -26139,6 +26725,84 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
26139
26725
  };
26140
26726
  Relationships: [];
26141
26727
  };
26728
+ delivery_notes: {
26729
+ Row: {
26730
+ byte_size: number | null;
26731
+ connection_id: string | null;
26732
+ content_type: string;
26733
+ created_at: string;
26734
+ error_message: string | null;
26735
+ fetched_at: string | null;
26736
+ fulfillment_order_id: string | null;
26737
+ http_status: number | null;
26738
+ id: string;
26739
+ label_code: string | null;
26740
+ letter: string | null;
26741
+ load_carrier_index: number | null;
26742
+ load_carrier_type: string | null;
26743
+ order_id: string | null;
26744
+ order_number: string | null;
26745
+ packages: number | null;
26746
+ source: string;
26747
+ status: string;
26748
+ storage_bucket: string;
26749
+ storage_path: string | null;
26750
+ updated_at: string;
26751
+ };
26752
+ Insert: {
26753
+ byte_size?: number | null;
26754
+ connection_id?: string | null;
26755
+ content_type?: string;
26756
+ created_at?: string;
26757
+ error_message?: string | null;
26758
+ fetched_at?: string | null;
26759
+ fulfillment_order_id?: string | null;
26760
+ http_status?: number | null;
26761
+ id?: string;
26762
+ label_code?: string | null;
26763
+ letter?: string | null;
26764
+ load_carrier_index?: number | null;
26765
+ load_carrier_type?: string | null;
26766
+ order_id?: string | null;
26767
+ order_number?: string | null;
26768
+ packages?: number | null;
26769
+ source?: string;
26770
+ status?: string;
26771
+ storage_bucket?: string;
26772
+ storage_path?: string | null;
26773
+ updated_at?: string;
26774
+ };
26775
+ Update: {
26776
+ byte_size?: number | null;
26777
+ connection_id?: string | null;
26778
+ content_type?: string;
26779
+ created_at?: string;
26780
+ error_message?: string | null;
26781
+ fetched_at?: string | null;
26782
+ fulfillment_order_id?: string | null;
26783
+ http_status?: number | null;
26784
+ id?: string;
26785
+ label_code?: string | null;
26786
+ letter?: string | null;
26787
+ load_carrier_index?: number | null;
26788
+ load_carrier_type?: string | null;
26789
+ order_id?: string | null;
26790
+ order_number?: string | null;
26791
+ packages?: number | null;
26792
+ source?: string;
26793
+ status?: string;
26794
+ storage_bucket?: string;
26795
+ storage_path?: string | null;
26796
+ updated_at?: string;
26797
+ };
26798
+ Relationships: [{
26799
+ foreignKeyName: "delivery_notes_order_id_fkey";
26800
+ columns: ["order_id"];
26801
+ isOneToOne: false;
26802
+ referencedRelation: "orders";
26803
+ referencedColumns: ["id"];
26804
+ }];
26805
+ };
26142
26806
  document_bronregels: {
26143
26807
  Row: {
26144
26808
  bron: string;
@@ -29192,10 +29856,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29192
29856
  };
29193
29857
  floriday_connections: {
29194
29858
  Row: {
29195
- access_token: string | null;
29196
29859
  api_key: string;
29197
- client_id: string;
29198
- client_secret: string;
29199
29860
  created_at: string;
29200
29861
  customers_endpoint: string | null;
29201
29862
  environment: string;
@@ -29210,10 +29871,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29210
29871
  updated_at: string;
29211
29872
  };
29212
29873
  Insert: {
29213
- access_token?: string | null;
29214
29874
  api_key: string;
29215
- client_id: string;
29216
- client_secret: string;
29217
29875
  created_at?: string;
29218
29876
  customers_endpoint?: string | null;
29219
29877
  environment: string;
@@ -29228,10 +29886,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29228
29886
  updated_at?: string;
29229
29887
  };
29230
29888
  Update: {
29231
- access_token?: string | null;
29232
29889
  api_key?: string;
29233
- client_id?: string;
29234
- client_secret?: string;
29235
29890
  created_at?: string;
29236
29891
  customers_endpoint?: string | null;
29237
29892
  environment?: string;
@@ -29315,6 +29970,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29315
29970
  attempts: number;
29316
29971
  connection_id: string;
29317
29972
  created_at: string;
29973
+ dead_lettered_at: string | null;
29318
29974
  desired_available: boolean | null;
29319
29975
  gateway_attempt_id: string | null;
29320
29976
  id: string;
@@ -29323,9 +29979,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29323
29979
  locked_by: string | null;
29324
29980
  next_attempt_at: string;
29325
29981
  number_of_pieces: number;
29982
+ product_id: string | null;
29326
29983
  sent_at: string | null;
29327
29984
  status: string;
29985
+ stock_mode: string | null;
29328
29986
  superseded_by: string | null;
29987
+ target_week: number | null;
29988
+ target_year: number | null;
29329
29989
  trade_item_id: string;
29330
29990
  updated_at: string;
29331
29991
  user_id: string;
@@ -29334,6 +29994,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29334
29994
  attempts?: number;
29335
29995
  connection_id: string;
29336
29996
  created_at?: string;
29997
+ dead_lettered_at?: string | null;
29337
29998
  desired_available?: boolean | null;
29338
29999
  gateway_attempt_id?: string | null;
29339
30000
  id?: string;
@@ -29342,9 +30003,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29342
30003
  locked_by?: string | null;
29343
30004
  next_attempt_at?: string;
29344
30005
  number_of_pieces?: number;
30006
+ product_id?: string | null;
29345
30007
  sent_at?: string | null;
29346
30008
  status?: string;
30009
+ stock_mode?: string | null;
29347
30010
  superseded_by?: string | null;
30011
+ target_week?: number | null;
30012
+ target_year?: number | null;
29348
30013
  trade_item_id: string;
29349
30014
  updated_at?: string;
29350
30015
  user_id: string;
@@ -29353,6 +30018,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29353
30018
  attempts?: number;
29354
30019
  connection_id?: string;
29355
30020
  created_at?: string;
30021
+ dead_lettered_at?: string | null;
29356
30022
  desired_available?: boolean | null;
29357
30023
  gateway_attempt_id?: string | null;
29358
30024
  id?: string;
@@ -29361,9 +30027,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29361
30027
  locked_by?: string | null;
29362
30028
  next_attempt_at?: string;
29363
30029
  number_of_pieces?: number;
30030
+ product_id?: string | null;
29364
30031
  sent_at?: string | null;
29365
30032
  status?: string;
30033
+ stock_mode?: string | null;
29366
30034
  superseded_by?: string | null;
30035
+ target_week?: number | null;
30036
+ target_year?: number | null;
29367
30037
  trade_item_id?: string;
29368
30038
  updated_at?: string;
29369
30039
  user_id?: string;
@@ -29772,6 +30442,87 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29772
30442
  referencedColumns: ["id"];
29773
30443
  }];
29774
30444
  };
30445
+ floriday_inventory_settings: {
30446
+ Row: {
30447
+ buffer_quantity: number;
30448
+ connection_id: string;
30449
+ created_at: string;
30450
+ desired_availability: boolean;
30451
+ desired_quantity: number;
30452
+ fixed_quantity: number | null;
30453
+ floriday_trade_item_id: string | null;
30454
+ id: string;
30455
+ last_confirmed_at: string | null;
30456
+ last_enqueued_at: string | null;
30457
+ last_published_at: string | null;
30458
+ last_sync_error: string | null;
30459
+ manual_quantity: number | null;
30460
+ maximum_quantity: number | null;
30461
+ product_id: string;
30462
+ quantity_control: string;
30463
+ remote_available: boolean | null;
30464
+ remote_checked_at: string | null;
30465
+ remote_quantity: number | null;
30466
+ stock_mode: string;
30467
+ sync_status: string;
30468
+ updated_at: string;
30469
+ updated_by: string | null;
30470
+ user_id: string;
30471
+ };
30472
+ Insert: {
30473
+ buffer_quantity?: number;
30474
+ connection_id: string;
30475
+ created_at?: string;
30476
+ desired_availability?: boolean;
30477
+ desired_quantity?: number;
30478
+ fixed_quantity?: number | null;
30479
+ floriday_trade_item_id?: string | null;
30480
+ id?: string;
30481
+ last_confirmed_at?: string | null;
30482
+ last_enqueued_at?: string | null;
30483
+ last_published_at?: string | null;
30484
+ last_sync_error?: string | null;
30485
+ manual_quantity?: number | null;
30486
+ maximum_quantity?: number | null;
30487
+ product_id: string;
30488
+ quantity_control?: string;
30489
+ remote_available?: boolean | null;
30490
+ remote_checked_at?: string | null;
30491
+ remote_quantity?: number | null;
30492
+ stock_mode?: string;
30493
+ sync_status?: string;
30494
+ updated_at?: string;
30495
+ updated_by?: string | null;
30496
+ user_id: string;
30497
+ };
30498
+ Update: {
30499
+ buffer_quantity?: number;
30500
+ connection_id?: string;
30501
+ created_at?: string;
30502
+ desired_availability?: boolean;
30503
+ desired_quantity?: number;
30504
+ fixed_quantity?: number | null;
30505
+ floriday_trade_item_id?: string | null;
30506
+ id?: string;
30507
+ last_confirmed_at?: string | null;
30508
+ last_enqueued_at?: string | null;
30509
+ last_published_at?: string | null;
30510
+ last_sync_error?: string | null;
30511
+ manual_quantity?: number | null;
30512
+ maximum_quantity?: number | null;
30513
+ product_id?: string;
30514
+ quantity_control?: string;
30515
+ remote_available?: boolean | null;
30516
+ remote_checked_at?: string | null;
30517
+ remote_quantity?: number | null;
30518
+ stock_mode?: string;
30519
+ sync_status?: string;
30520
+ updated_at?: string;
30521
+ updated_by?: string | null;
30522
+ user_id?: string;
30523
+ };
30524
+ Relationships: [];
30525
+ };
29775
30526
  floriday_invoices_cache: {
29776
30527
  Row: {
29777
30528
  buyer_organization_id: string | null;
@@ -30060,6 +30811,39 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
30060
30811
  };
30061
30812
  Relationships: [];
30062
30813
  };
30814
+ floriday_sales_order_ingest: {
30815
+ Row: {
30816
+ connection_id: string;
30817
+ created_at: string;
30818
+ id: string;
30819
+ impact: import("../integrations/supabase/types").Json;
30820
+ order_status: string | null;
30821
+ order_version: number;
30822
+ processed_at: string;
30823
+ sales_order_id: string;
30824
+ };
30825
+ Insert: {
30826
+ connection_id: string;
30827
+ created_at?: string;
30828
+ id?: string;
30829
+ impact?: import("../integrations/supabase/types").Json;
30830
+ order_status?: string | null;
30831
+ order_version?: number;
30832
+ processed_at?: string;
30833
+ sales_order_id: string;
30834
+ };
30835
+ Update: {
30836
+ connection_id?: string;
30837
+ created_at?: string;
30838
+ id?: string;
30839
+ impact?: import("../integrations/supabase/types").Json;
30840
+ order_status?: string | null;
30841
+ order_version?: number;
30842
+ processed_at?: string;
30843
+ sales_order_id?: string;
30844
+ };
30845
+ Relationships: [];
30846
+ };
30063
30847
  floriday_sales_strategies_cache: {
30064
30848
  Row: {
30065
30849
  connection_id: string;
@@ -30159,6 +30943,39 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
30159
30943
  };
30160
30944
  Relationships: [];
30161
30945
  };
30946
+ floriday_sync_cursors: {
30947
+ Row: {
30948
+ connection_id: string;
30949
+ created_at: string;
30950
+ id: string;
30951
+ last_error: string | null;
30952
+ last_sync_at: string | null;
30953
+ resource_type: string;
30954
+ sequence_number: number;
30955
+ updated_at: string;
30956
+ };
30957
+ Insert: {
30958
+ connection_id: string;
30959
+ created_at?: string;
30960
+ id?: string;
30961
+ last_error?: string | null;
30962
+ last_sync_at?: string | null;
30963
+ resource_type: string;
30964
+ sequence_number?: number;
30965
+ updated_at?: string;
30966
+ };
30967
+ Update: {
30968
+ connection_id?: string;
30969
+ created_at?: string;
30970
+ id?: string;
30971
+ last_error?: string | null;
30972
+ last_sync_at?: string | null;
30973
+ resource_type?: string;
30974
+ sequence_number?: number;
30975
+ updated_at?: string;
30976
+ };
30977
+ Relationships: [];
30978
+ };
30162
30979
  floriday_sync_state: {
30163
30980
  Row: {
30164
30981
  connection_id: string;
@@ -30849,6 +31666,42 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
30849
31666
  };
30850
31667
  Relationships: [];
30851
31668
  };
31669
+ inventory_stock_snapshots: {
31670
+ Row: {
31671
+ connection_id: string;
31672
+ created_at: string;
31673
+ erp_available_quantity: number;
31674
+ floriday_desired_quantity: number;
31675
+ floriday_remote_quantity: number | null;
31676
+ granularity: string;
31677
+ id: string;
31678
+ snapshot_at: string;
31679
+ user_id: string | null;
31680
+ };
31681
+ Insert: {
31682
+ connection_id: string;
31683
+ created_at?: string;
31684
+ erp_available_quantity?: number;
31685
+ floriday_desired_quantity?: number;
31686
+ floriday_remote_quantity?: number | null;
31687
+ granularity?: string;
31688
+ id?: string;
31689
+ snapshot_at?: string;
31690
+ user_id?: string | null;
31691
+ };
31692
+ Update: {
31693
+ connection_id?: string;
31694
+ created_at?: string;
31695
+ erp_available_quantity?: number;
31696
+ floriday_desired_quantity?: number;
31697
+ floriday_remote_quantity?: number | null;
31698
+ granularity?: string;
31699
+ id?: string;
31700
+ snapshot_at?: string;
31701
+ user_id?: string | null;
31702
+ };
31703
+ Relationships: [];
31704
+ };
30852
31705
  invoice_items: {
30853
31706
  Row: {
30854
31707
  created_at: string;
@@ -36864,6 +37717,39 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36864
37717
  };
36865
37718
  Relationships: [];
36866
37719
  };
37720
+ print_dedupe_events: {
37721
+ Row: {
37722
+ bestaande_job_id: string | null;
37723
+ created_at: string;
37724
+ detail: string | null;
37725
+ documentnaam: string | null;
37726
+ documenttype: string | null;
37727
+ id: string;
37728
+ idempotentie_sleutel: string;
37729
+ reden: string;
37730
+ };
37731
+ Insert: {
37732
+ bestaande_job_id?: string | null;
37733
+ created_at?: string;
37734
+ detail?: string | null;
37735
+ documentnaam?: string | null;
37736
+ documenttype?: string | null;
37737
+ id?: string;
37738
+ idempotentie_sleutel: string;
37739
+ reden: string;
37740
+ };
37741
+ Update: {
37742
+ bestaande_job_id?: string | null;
37743
+ created_at?: string;
37744
+ detail?: string | null;
37745
+ documentnaam?: string | null;
37746
+ documenttype?: string | null;
37747
+ id?: string;
37748
+ idempotentie_sleutel?: string;
37749
+ reden?: string;
37750
+ };
37751
+ Relationships: [];
37752
+ };
36867
37753
  print_job_logs: {
36868
37754
  Row: {
36869
37755
  created_at: string;
@@ -36914,6 +37800,9 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36914
37800
  is_herprint: boolean;
36915
37801
  kopieen: number;
36916
37802
  layout_id: string | null;
37803
+ lokaal_opgeslagen_op: string | null;
37804
+ lokale_pdf_fout: string | null;
37805
+ lokale_pdf_status: string | null;
36917
37806
  opgepakt_op: string | null;
36918
37807
  paginas: number;
36919
37808
  payload: import("../integrations/supabase/types").Json;
@@ -36922,6 +37811,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36922
37811
  pogingen: number;
36923
37812
  printer_id: string | null;
36924
37813
  render_html: string | null;
37814
+ resultaat_pdf_base64: string | null;
36925
37815
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36926
37816
  updated_at: string;
36927
37817
  volgende_poging: string | null;
@@ -36946,6 +37836,9 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36946
37836
  is_herprint?: boolean;
36947
37837
  kopieen?: number;
36948
37838
  layout_id?: string | null;
37839
+ lokaal_opgeslagen_op?: string | null;
37840
+ lokale_pdf_fout?: string | null;
37841
+ lokale_pdf_status?: string | null;
36949
37842
  opgepakt_op?: string | null;
36950
37843
  paginas?: number;
36951
37844
  payload?: import("../integrations/supabase/types").Json;
@@ -36954,6 +37847,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36954
37847
  pogingen?: number;
36955
37848
  printer_id?: string | null;
36956
37849
  render_html?: string | null;
37850
+ resultaat_pdf_base64?: string | null;
36957
37851
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36958
37852
  updated_at?: string;
36959
37853
  volgende_poging?: string | null;
@@ -36978,6 +37872,9 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36978
37872
  is_herprint?: boolean;
36979
37873
  kopieen?: number;
36980
37874
  layout_id?: string | null;
37875
+ lokaal_opgeslagen_op?: string | null;
37876
+ lokale_pdf_fout?: string | null;
37877
+ lokale_pdf_status?: string | null;
36981
37878
  opgepakt_op?: string | null;
36982
37879
  paginas?: number;
36983
37880
  payload?: import("../integrations/supabase/types").Json;
@@ -36986,6 +37883,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36986
37883
  pogingen?: number;
36987
37884
  printer_id?: string | null;
36988
37885
  render_html?: string | null;
37886
+ resultaat_pdf_base64?: string | null;
36989
37887
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36990
37888
  updated_at?: string;
36991
37889
  volgende_poging?: string | null;
@@ -37104,6 +38002,39 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
37104
38002
  };
37105
38003
  Relationships: [];
37106
38004
  };
38005
+ print_preview_events: {
38006
+ Row: {
38007
+ code: string | null;
38008
+ created_at: string;
38009
+ detail: import("../integrations/supabase/types").Json;
38010
+ id: string;
38011
+ queue_item_id: string | null;
38012
+ reden: string | null;
38013
+ station_slug: string | null;
38014
+ uitkomst: string;
38015
+ };
38016
+ Insert: {
38017
+ code?: string | null;
38018
+ created_at?: string;
38019
+ detail?: import("../integrations/supabase/types").Json;
38020
+ id?: string;
38021
+ queue_item_id?: string | null;
38022
+ reden?: string | null;
38023
+ station_slug?: string | null;
38024
+ uitkomst?: string;
38025
+ };
38026
+ Update: {
38027
+ code?: string | null;
38028
+ created_at?: string;
38029
+ detail?: import("../integrations/supabase/types").Json;
38030
+ id?: string;
38031
+ queue_item_id?: string | null;
38032
+ reden?: string | null;
38033
+ station_slug?: string | null;
38034
+ uitkomst?: string;
38035
+ };
38036
+ Relationships: [];
38037
+ };
37107
38038
  print_queue_runners: {
37108
38039
  Row: {
37109
38040
  actief: boolean;
@@ -37343,6 +38274,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
37343
38274
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37344
38275
  online: boolean;
37345
38276
  papierformaat: string;
38277
+ pdf_map: string | null;
37346
38278
  poort: number | null;
37347
38279
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37348
38280
  systeemnaam: string;
@@ -37368,6 +38300,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
37368
38300
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37369
38301
  online?: boolean;
37370
38302
  papierformaat?: string;
38303
+ pdf_map?: string | null;
37371
38304
  poort?: number | null;
37372
38305
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37373
38306
  systeemnaam?: string;
@@ -37393,6 +38326,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
37393
38326
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37394
38327
  online?: boolean;
37395
38328
  papierformaat?: string;
38329
+ pdf_map?: string | null;
37396
38330
  poort?: number | null;
37397
38331
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37398
38332
  systeemnaam?: string;
@@ -39962,6 +40896,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
39962
40896
  };
39963
40897
  trade_item_stock: {
39964
40898
  Row: {
40899
+ change_source: string;
39965
40900
  connection_id: string;
39966
40901
  created_at: string;
39967
40902
  id: string;
@@ -39975,6 +40910,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
39975
40910
  user_id: string;
39976
40911
  };
39977
40912
  Insert: {
40913
+ change_source?: string;
39978
40914
  connection_id: string;
39979
40915
  created_at?: string;
39980
40916
  id?: string;
@@ -39988,6 +40924,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
39988
40924
  user_id: string;
39989
40925
  };
39990
40926
  Update: {
40927
+ change_source?: string;
39991
40928
  connection_id?: string;
39992
40929
  created_at?: string;
39993
40930
  id?: string;
@@ -43588,6 +44525,18 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43588
44525
  Args: never;
43589
44526
  Returns: number;
43590
44527
  };
44528
+ calculate_floriday_desired_stock: {
44529
+ Args: {
44530
+ p_connection_id: string;
44531
+ p_product_id: string;
44532
+ };
44533
+ Returns: {
44534
+ desired_availability: boolean;
44535
+ desired_quantity: number;
44536
+ erp_available: number;
44537
+ stock_mode: string;
44538
+ }[];
44539
+ };
43591
44540
  calculate_layer_stock: {
43592
44541
  Args: {
43593
44542
  p_product_id: string;
@@ -43649,6 +44598,9 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43649
44598
  is_herprint: boolean;
43650
44599
  kopieen: number;
43651
44600
  layout_id: string | null;
44601
+ lokaal_opgeslagen_op: string | null;
44602
+ lokale_pdf_fout: string | null;
44603
+ lokale_pdf_status: string | null;
43652
44604
  opgepakt_op: string | null;
43653
44605
  paginas: number;
43654
44606
  payload: import("../integrations/supabase/types").Json;
@@ -43657,6 +44609,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43657
44609
  pogingen: number;
43658
44610
  printer_id: string | null;
43659
44611
  render_html: string | null;
44612
+ resultaat_pdf_base64: string | null;
43660
44613
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43661
44614
  updated_at: string;
43662
44615
  volgende_poging: string | null;
@@ -43678,6 +44631,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43678
44631
  attempts: number;
43679
44632
  connection_id: string;
43680
44633
  created_at: string;
44634
+ dead_lettered_at: string | null;
43681
44635
  desired_available: boolean | null;
43682
44636
  gateway_attempt_id: string | null;
43683
44637
  id: string;
@@ -43686,9 +44640,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43686
44640
  locked_by: string | null;
43687
44641
  next_attempt_at: string;
43688
44642
  number_of_pieces: number;
44643
+ product_id: string | null;
43689
44644
  sent_at: string | null;
43690
44645
  status: string;
44646
+ stock_mode: string | null;
43691
44647
  superseded_by: string | null;
44648
+ target_week: number | null;
44649
+ target_year: number | null;
43692
44650
  trade_item_id: string;
43693
44651
  updated_at: string;
43694
44652
  user_id: string;
@@ -43748,6 +44706,53 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43748
44706
  isSetofReturn: true;
43749
44707
  };
43750
44708
  };
44709
+ claim_pdf_print_jobs: {
44710
+ Args: {
44711
+ _max?: number;
44712
+ };
44713
+ Returns: {
44714
+ agent_id: string | null;
44715
+ bron_job_id: string | null;
44716
+ created_at: string;
44717
+ documentnaam: string;
44718
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44719
+ extern_job_id: string | null;
44720
+ foutmelding: string | null;
44721
+ gebruiker_id: string | null;
44722
+ gebruiker_naam: string;
44723
+ gebruikte_bron: string | null;
44724
+ gebruikte_layout_id: string | null;
44725
+ gestart_op: string | null;
44726
+ herkomst: string | null;
44727
+ id: string;
44728
+ idempotentie_sleutel: string | null;
44729
+ is_herprint: boolean;
44730
+ kopieen: number;
44731
+ layout_id: string | null;
44732
+ lokaal_opgeslagen_op: string | null;
44733
+ lokale_pdf_fout: string | null;
44734
+ lokale_pdf_status: string | null;
44735
+ opgepakt_op: string | null;
44736
+ paginas: number;
44737
+ payload: import("../integrations/supabase/types").Json;
44738
+ pdf_base64: string | null;
44739
+ pdf_url: string | null;
44740
+ pogingen: number;
44741
+ printer_id: string | null;
44742
+ render_html: string | null;
44743
+ resultaat_pdf_base64: string | null;
44744
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44745
+ updated_at: string;
44746
+ volgende_poging: string | null;
44747
+ voltooid_op: string | null;
44748
+ }[];
44749
+ SetofOptions: {
44750
+ from: "*";
44751
+ to: "print_jobs";
44752
+ isOneToOne: false;
44753
+ isSetofReturn: true;
44754
+ };
44755
+ };
43751
44756
  claim_print_jobs: {
43752
44757
  Args: {
43753
44758
  _agent_id: string;
@@ -43772,6 +44777,9 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43772
44777
  is_herprint: boolean;
43773
44778
  kopieen: number;
43774
44779
  layout_id: string | null;
44780
+ lokaal_opgeslagen_op: string | null;
44781
+ lokale_pdf_fout: string | null;
44782
+ lokale_pdf_status: string | null;
43775
44783
  opgepakt_op: string | null;
43776
44784
  paginas: number;
43777
44785
  payload: import("../integrations/supabase/types").Json;
@@ -43780,6 +44788,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43780
44788
  pogingen: number;
43781
44789
  printer_id: string | null;
43782
44790
  render_html: string | null;
44791
+ resultaat_pdf_base64: string | null;
43783
44792
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43784
44793
  updated_at: string;
43785
44794
  volgende_poging: string | null;
@@ -43920,6 +44929,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43920
44929
  order_id: string;
43921
44930
  order_source: string;
43922
44931
  pick_date: string;
44932
+ printed_at: string;
44933
+ printed_today: boolean;
43923
44934
  status: string;
43924
44935
  }[];
43925
44936
  };
@@ -44116,6 +45127,24 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44116
45127
  };
44117
45128
  Returns: string;
44118
45129
  };
45130
+ floriday_capture_stock_snapshot: {
45131
+ Args: never;
45132
+ Returns: number;
45133
+ };
45134
+ floriday_cleanup_stock_queue_v2: {
45135
+ Args: never;
45136
+ Returns: undefined;
45137
+ };
45138
+ floriday_compact_stock_snapshots: {
45139
+ Args: never;
45140
+ Returns: undefined;
45141
+ };
45142
+ floriday_default_owner: {
45143
+ Args: {
45144
+ p_connection_id: string;
45145
+ };
45146
+ Returns: string;
45147
+ };
44119
45148
  floriday_effective_price: {
44120
45149
  Args: {
44121
45150
  _buyer_id: string;
@@ -44133,6 +45162,22 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44133
45162
  source_id: string;
44134
45163
  }[];
44135
45164
  };
45165
+ floriday_fill_publish_horizon: {
45166
+ Args: never;
45167
+ Returns: number;
45168
+ };
45169
+ floriday_publish_horizon_weeks: {
45170
+ Args: never;
45171
+ Returns: number;
45172
+ };
45173
+ floriday_recompute_inventory: {
45174
+ Args: {
45175
+ p_connection_id: string;
45176
+ p_force?: boolean;
45177
+ p_product_id: string;
45178
+ };
45179
+ Returns: undefined;
45180
+ };
44136
45181
  format_cart_number: {
44137
45182
  Args: {
44138
45183
  p_pick_date: string;
@@ -44628,6 +45673,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44628
45673
  };
44629
45674
  Returns: number;
44630
45675
  };
45676
+ logistics_cancel_orphan_tasks: {
45677
+ Args: never;
45678
+ Returns: number;
45679
+ };
44631
45680
  logistics_capacity_day_check: {
44632
45681
  Args: {
44633
45682
  p_from?: string;
@@ -44648,6 +45697,25 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44648
45697
  };
44649
45698
  Returns: number;
44650
45699
  };
45700
+ logistics_cart_index: {
45701
+ Args: {
45702
+ p_from?: string;
45703
+ p_to?: string;
45704
+ };
45705
+ Returns: {
45706
+ cart_id: string;
45707
+ cart_index: number;
45708
+ cart_label: string;
45709
+ is_shared: boolean;
45710
+ order_number: string;
45711
+ order_source: string;
45712
+ order_uuid: string;
45713
+ pick_date: string;
45714
+ printed_at: string;
45715
+ shifted: boolean;
45716
+ task_status: string;
45717
+ }[];
45718
+ };
44651
45719
  logistics_check_order_allowed: {
44652
45720
  Args: {
44653
45721
  p_lines: import("../integrations/supabase/types").Json;
@@ -44796,6 +45864,17 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44796
45864
  isSetofReturn: false;
44797
45865
  };
44798
45866
  };
45867
+ logistics_consistency_check: {
45868
+ Args: never;
45869
+ Returns: {
45870
+ agenda_carts: number;
45871
+ control_carts: number;
45872
+ ok: boolean;
45873
+ orphan_tasks: number;
45874
+ pick_date: string;
45875
+ raw_carts: number;
45876
+ }[];
45877
+ };
44799
45878
  logistics_delay_customer_email: {
44800
45879
  Args: {
44801
45880
  p_customer: string;
@@ -44885,6 +45964,16 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44885
45964
  isSetofReturn: false;
44886
45965
  };
44887
45966
  };
45967
+ logistics_floriday_cart_plan: {
45968
+ Args: {
45969
+ p_order_id: string;
45970
+ };
45971
+ Returns: {
45972
+ carrier_type: string;
45973
+ idx: number;
45974
+ packages: number;
45975
+ }[];
45976
+ };
44888
45977
  logistics_floriday_claim_pushes: {
44889
45978
  Args: {
44890
45979
  _lease_seconds?: number;
@@ -44989,6 +46078,25 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44989
46078
  };
44990
46079
  Returns: number;
44991
46080
  };
46081
+ logistics_order_overview: {
46082
+ Args: {
46083
+ p_from?: string;
46084
+ p_to?: string;
46085
+ };
46086
+ Returns: {
46087
+ cart_count: number;
46088
+ customer_name: string;
46089
+ delivery_date: string;
46090
+ order_number: string;
46091
+ order_source: string;
46092
+ order_uuid: string;
46093
+ pick_date: string;
46094
+ plant_count: number;
46095
+ printed_at: string;
46096
+ shifted: boolean;
46097
+ status: string;
46098
+ }[];
46099
+ };
44992
46100
  logistics_order_pick_day: {
44993
46101
  Args: {
44994
46102
  p_order_ref: string;
@@ -45001,6 +46109,22 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45001
46109
  };
45002
46110
  Returns: string;
45003
46111
  };
46112
+ logistics_pick_agenda: {
46113
+ Args: {
46114
+ p_from?: string;
46115
+ p_to?: string;
46116
+ };
46117
+ Returns: {
46118
+ cart_count: number;
46119
+ in_preparation: number;
46120
+ order_count: number;
46121
+ orders: import("../integrations/supabase/types").Json;
46122
+ pick_date: string;
46123
+ plant_count: number;
46124
+ ready: number;
46125
+ shifted_count: number;
46126
+ }[];
46127
+ };
45004
46128
  logistics_pick_email_purpose: {
45005
46129
  Args: never;
45006
46130
  Returns: string;
@@ -45055,6 +46179,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45055
46179
  };
45056
46180
  Returns: undefined;
45057
46181
  };
46182
+ logistics_plan_floriday_order: {
46183
+ Args: {
46184
+ p_buffer_id?: string;
46185
+ p_order_id: string;
46186
+ };
46187
+ Returns: number;
46188
+ };
45058
46189
  logistics_plan_impact_orders: {
45059
46190
  Args: {
45060
46191
  p_order_id: string;
@@ -45160,6 +46291,15 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45160
46291
  };
45161
46292
  Returns: import("../integrations/supabase/types").Json;
45162
46293
  };
46294
+ logistics_resolve_pick_document: {
46295
+ Args: {
46296
+ _is_herprint: boolean;
46297
+ _queue_item_id: string;
46298
+ _session_id: string;
46299
+ _voorbeeld: boolean;
46300
+ };
46301
+ Returns: import("../integrations/supabase/types").Json;
46302
+ };
45163
46303
  logistics_resolve_settings: {
45164
46304
  Args: {
45165
46305
  p_config_id: string;
@@ -45600,6 +46740,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45600
46740
  };
45601
46741
  pick_enqueue_print_job: {
45602
46742
  Args: {
46743
+ _is_herprint?: boolean;
45603
46744
  _printer_id?: string;
45604
46745
  _queue_item_id: string;
45605
46746
  _session_id?: string;
@@ -45613,6 +46754,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45613
46754
  };
45614
46755
  Returns: import("../integrations/supabase/types").Json;
45615
46756
  };
46757
+ pick_preview_job: {
46758
+ Args: {
46759
+ _queue_item_id: string;
46760
+ _station_slug: string;
46761
+ };
46762
+ Returns: import("../integrations/supabase/types").Json;
46763
+ };
45616
46764
  pick_print_job_status: {
45617
46765
  Args: {
45618
46766
  _job_id: string;
@@ -45790,6 +46938,24 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45790
46938
  };
45791
46939
  Returns: undefined;
45792
46940
  };
46941
+ print_preview_toestaan: {
46942
+ Args: {
46943
+ _max?: number;
46944
+ _queue_item_id: string;
46945
+ _station_slug: string;
46946
+ _venster_sec?: number;
46947
+ };
46948
+ Returns: import("../integrations/supabase/types").Json;
46949
+ };
46950
+ print_preview_weiger: {
46951
+ Args: {
46952
+ _code: string;
46953
+ _queue_item_id: string;
46954
+ _reden: string;
46955
+ _station_slug: string;
46956
+ };
46957
+ Returns: undefined;
46958
+ };
45793
46959
  process_logistics_event: {
45794
46960
  Args: {
45795
46961
  p_event_id: string;
@@ -45944,6 +47110,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45944
47110
  };
45945
47111
  Returns: string;
45946
47112
  };
47113
+ resolve_print_job_printer_id: {
47114
+ Args: {
47115
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
47116
+ };
47117
+ Returns: string;
47118
+ };
45947
47119
  resolve_product_id_for_item: {
45948
47120
  Args: {
45949
47121
  p_product_name: string;
@@ -46535,7 +47707,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
46535
47707
  };
46536
47708
  CompositeTypes: { [_ in never]: never; };
46537
47709
  }, {
46538
- PostgrestVersion: "14.17";
47710
+ PostgrestVersion: "14.5";
46539
47711
  }>;
46540
47712
  userId: string;
46541
47713
  claims: import("@supabase/auth-js").User;
@@ -49408,6 +50580,84 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
49408
50580
  };
49409
50581
  Relationships: [];
49410
50582
  };
50583
+ delivery_notes: {
50584
+ Row: {
50585
+ byte_size: number | null;
50586
+ connection_id: string | null;
50587
+ content_type: string;
50588
+ created_at: string;
50589
+ error_message: string | null;
50590
+ fetched_at: string | null;
50591
+ fulfillment_order_id: string | null;
50592
+ http_status: number | null;
50593
+ id: string;
50594
+ label_code: string | null;
50595
+ letter: string | null;
50596
+ load_carrier_index: number | null;
50597
+ load_carrier_type: string | null;
50598
+ order_id: string | null;
50599
+ order_number: string | null;
50600
+ packages: number | null;
50601
+ source: string;
50602
+ status: string;
50603
+ storage_bucket: string;
50604
+ storage_path: string | null;
50605
+ updated_at: string;
50606
+ };
50607
+ Insert: {
50608
+ byte_size?: number | null;
50609
+ connection_id?: string | null;
50610
+ content_type?: string;
50611
+ created_at?: string;
50612
+ error_message?: string | null;
50613
+ fetched_at?: string | null;
50614
+ fulfillment_order_id?: string | null;
50615
+ http_status?: number | null;
50616
+ id?: string;
50617
+ label_code?: string | null;
50618
+ letter?: string | null;
50619
+ load_carrier_index?: number | null;
50620
+ load_carrier_type?: string | null;
50621
+ order_id?: string | null;
50622
+ order_number?: string | null;
50623
+ packages?: number | null;
50624
+ source?: string;
50625
+ status?: string;
50626
+ storage_bucket?: string;
50627
+ storage_path?: string | null;
50628
+ updated_at?: string;
50629
+ };
50630
+ Update: {
50631
+ byte_size?: number | null;
50632
+ connection_id?: string | null;
50633
+ content_type?: string;
50634
+ created_at?: string;
50635
+ error_message?: string | null;
50636
+ fetched_at?: string | null;
50637
+ fulfillment_order_id?: string | null;
50638
+ http_status?: number | null;
50639
+ id?: string;
50640
+ label_code?: string | null;
50641
+ letter?: string | null;
50642
+ load_carrier_index?: number | null;
50643
+ load_carrier_type?: string | null;
50644
+ order_id?: string | null;
50645
+ order_number?: string | null;
50646
+ packages?: number | null;
50647
+ source?: string;
50648
+ status?: string;
50649
+ storage_bucket?: string;
50650
+ storage_path?: string | null;
50651
+ updated_at?: string;
50652
+ };
50653
+ Relationships: [{
50654
+ foreignKeyName: "delivery_notes_order_id_fkey";
50655
+ columns: ["order_id"];
50656
+ isOneToOne: false;
50657
+ referencedRelation: "orders";
50658
+ referencedColumns: ["id"];
50659
+ }];
50660
+ };
49411
50661
  document_bronregels: {
49412
50662
  Row: {
49413
50663
  bron: string;
@@ -52461,10 +53711,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52461
53711
  };
52462
53712
  floriday_connections: {
52463
53713
  Row: {
52464
- access_token: string | null;
52465
53714
  api_key: string;
52466
- client_id: string;
52467
- client_secret: string;
52468
53715
  created_at: string;
52469
53716
  customers_endpoint: string | null;
52470
53717
  environment: string;
@@ -52479,10 +53726,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52479
53726
  updated_at: string;
52480
53727
  };
52481
53728
  Insert: {
52482
- access_token?: string | null;
52483
53729
  api_key: string;
52484
- client_id: string;
52485
- client_secret: string;
52486
53730
  created_at?: string;
52487
53731
  customers_endpoint?: string | null;
52488
53732
  environment: string;
@@ -52497,10 +53741,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52497
53741
  updated_at?: string;
52498
53742
  };
52499
53743
  Update: {
52500
- access_token?: string | null;
52501
53744
  api_key?: string;
52502
- client_id?: string;
52503
- client_secret?: string;
52504
53745
  created_at?: string;
52505
53746
  customers_endpoint?: string | null;
52506
53747
  environment?: string;
@@ -52584,6 +53825,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52584
53825
  attempts: number;
52585
53826
  connection_id: string;
52586
53827
  created_at: string;
53828
+ dead_lettered_at: string | null;
52587
53829
  desired_available: boolean | null;
52588
53830
  gateway_attempt_id: string | null;
52589
53831
  id: string;
@@ -52592,9 +53834,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52592
53834
  locked_by: string | null;
52593
53835
  next_attempt_at: string;
52594
53836
  number_of_pieces: number;
53837
+ product_id: string | null;
52595
53838
  sent_at: string | null;
52596
53839
  status: string;
53840
+ stock_mode: string | null;
52597
53841
  superseded_by: string | null;
53842
+ target_week: number | null;
53843
+ target_year: number | null;
52598
53844
  trade_item_id: string;
52599
53845
  updated_at: string;
52600
53846
  user_id: string;
@@ -52603,6 +53849,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52603
53849
  attempts?: number;
52604
53850
  connection_id: string;
52605
53851
  created_at?: string;
53852
+ dead_lettered_at?: string | null;
52606
53853
  desired_available?: boolean | null;
52607
53854
  gateway_attempt_id?: string | null;
52608
53855
  id?: string;
@@ -52611,9 +53858,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52611
53858
  locked_by?: string | null;
52612
53859
  next_attempt_at?: string;
52613
53860
  number_of_pieces?: number;
53861
+ product_id?: string | null;
52614
53862
  sent_at?: string | null;
52615
53863
  status?: string;
53864
+ stock_mode?: string | null;
52616
53865
  superseded_by?: string | null;
53866
+ target_week?: number | null;
53867
+ target_year?: number | null;
52617
53868
  trade_item_id: string;
52618
53869
  updated_at?: string;
52619
53870
  user_id: string;
@@ -52622,6 +53873,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52622
53873
  attempts?: number;
52623
53874
  connection_id?: string;
52624
53875
  created_at?: string;
53876
+ dead_lettered_at?: string | null;
52625
53877
  desired_available?: boolean | null;
52626
53878
  gateway_attempt_id?: string | null;
52627
53879
  id?: string;
@@ -52630,9 +53882,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52630
53882
  locked_by?: string | null;
52631
53883
  next_attempt_at?: string;
52632
53884
  number_of_pieces?: number;
53885
+ product_id?: string | null;
52633
53886
  sent_at?: string | null;
52634
53887
  status?: string;
53888
+ stock_mode?: string | null;
52635
53889
  superseded_by?: string | null;
53890
+ target_week?: number | null;
53891
+ target_year?: number | null;
52636
53892
  trade_item_id?: string;
52637
53893
  updated_at?: string;
52638
53894
  user_id?: string;
@@ -53041,6 +54297,87 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
53041
54297
  referencedColumns: ["id"];
53042
54298
  }];
53043
54299
  };
54300
+ floriday_inventory_settings: {
54301
+ Row: {
54302
+ buffer_quantity: number;
54303
+ connection_id: string;
54304
+ created_at: string;
54305
+ desired_availability: boolean;
54306
+ desired_quantity: number;
54307
+ fixed_quantity: number | null;
54308
+ floriday_trade_item_id: string | null;
54309
+ id: string;
54310
+ last_confirmed_at: string | null;
54311
+ last_enqueued_at: string | null;
54312
+ last_published_at: string | null;
54313
+ last_sync_error: string | null;
54314
+ manual_quantity: number | null;
54315
+ maximum_quantity: number | null;
54316
+ product_id: string;
54317
+ quantity_control: string;
54318
+ remote_available: boolean | null;
54319
+ remote_checked_at: string | null;
54320
+ remote_quantity: number | null;
54321
+ stock_mode: string;
54322
+ sync_status: string;
54323
+ updated_at: string;
54324
+ updated_by: string | null;
54325
+ user_id: string;
54326
+ };
54327
+ Insert: {
54328
+ buffer_quantity?: number;
54329
+ connection_id: string;
54330
+ created_at?: string;
54331
+ desired_availability?: boolean;
54332
+ desired_quantity?: number;
54333
+ fixed_quantity?: number | null;
54334
+ floriday_trade_item_id?: string | null;
54335
+ id?: string;
54336
+ last_confirmed_at?: string | null;
54337
+ last_enqueued_at?: string | null;
54338
+ last_published_at?: string | null;
54339
+ last_sync_error?: string | null;
54340
+ manual_quantity?: number | null;
54341
+ maximum_quantity?: number | null;
54342
+ product_id: string;
54343
+ quantity_control?: string;
54344
+ remote_available?: boolean | null;
54345
+ remote_checked_at?: string | null;
54346
+ remote_quantity?: number | null;
54347
+ stock_mode?: string;
54348
+ sync_status?: string;
54349
+ updated_at?: string;
54350
+ updated_by?: string | null;
54351
+ user_id: string;
54352
+ };
54353
+ Update: {
54354
+ buffer_quantity?: number;
54355
+ connection_id?: string;
54356
+ created_at?: string;
54357
+ desired_availability?: boolean;
54358
+ desired_quantity?: number;
54359
+ fixed_quantity?: number | null;
54360
+ floriday_trade_item_id?: string | null;
54361
+ id?: string;
54362
+ last_confirmed_at?: string | null;
54363
+ last_enqueued_at?: string | null;
54364
+ last_published_at?: string | null;
54365
+ last_sync_error?: string | null;
54366
+ manual_quantity?: number | null;
54367
+ maximum_quantity?: number | null;
54368
+ product_id?: string;
54369
+ quantity_control?: string;
54370
+ remote_available?: boolean | null;
54371
+ remote_checked_at?: string | null;
54372
+ remote_quantity?: number | null;
54373
+ stock_mode?: string;
54374
+ sync_status?: string;
54375
+ updated_at?: string;
54376
+ updated_by?: string | null;
54377
+ user_id?: string;
54378
+ };
54379
+ Relationships: [];
54380
+ };
53044
54381
  floriday_invoices_cache: {
53045
54382
  Row: {
53046
54383
  buyer_organization_id: string | null;
@@ -53329,6 +54666,39 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
53329
54666
  };
53330
54667
  Relationships: [];
53331
54668
  };
54669
+ floriday_sales_order_ingest: {
54670
+ Row: {
54671
+ connection_id: string;
54672
+ created_at: string;
54673
+ id: string;
54674
+ impact: import("../integrations/supabase/types").Json;
54675
+ order_status: string | null;
54676
+ order_version: number;
54677
+ processed_at: string;
54678
+ sales_order_id: string;
54679
+ };
54680
+ Insert: {
54681
+ connection_id: string;
54682
+ created_at?: string;
54683
+ id?: string;
54684
+ impact?: import("../integrations/supabase/types").Json;
54685
+ order_status?: string | null;
54686
+ order_version?: number;
54687
+ processed_at?: string;
54688
+ sales_order_id: string;
54689
+ };
54690
+ Update: {
54691
+ connection_id?: string;
54692
+ created_at?: string;
54693
+ id?: string;
54694
+ impact?: import("../integrations/supabase/types").Json;
54695
+ order_status?: string | null;
54696
+ order_version?: number;
54697
+ processed_at?: string;
54698
+ sales_order_id?: string;
54699
+ };
54700
+ Relationships: [];
54701
+ };
53332
54702
  floriday_sales_strategies_cache: {
53333
54703
  Row: {
53334
54704
  connection_id: string;
@@ -53428,6 +54798,39 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
53428
54798
  };
53429
54799
  Relationships: [];
53430
54800
  };
54801
+ floriday_sync_cursors: {
54802
+ Row: {
54803
+ connection_id: string;
54804
+ created_at: string;
54805
+ id: string;
54806
+ last_error: string | null;
54807
+ last_sync_at: string | null;
54808
+ resource_type: string;
54809
+ sequence_number: number;
54810
+ updated_at: string;
54811
+ };
54812
+ Insert: {
54813
+ connection_id: string;
54814
+ created_at?: string;
54815
+ id?: string;
54816
+ last_error?: string | null;
54817
+ last_sync_at?: string | null;
54818
+ resource_type: string;
54819
+ sequence_number?: number;
54820
+ updated_at?: string;
54821
+ };
54822
+ Update: {
54823
+ connection_id?: string;
54824
+ created_at?: string;
54825
+ id?: string;
54826
+ last_error?: string | null;
54827
+ last_sync_at?: string | null;
54828
+ resource_type?: string;
54829
+ sequence_number?: number;
54830
+ updated_at?: string;
54831
+ };
54832
+ Relationships: [];
54833
+ };
53431
54834
  floriday_sync_state: {
53432
54835
  Row: {
53433
54836
  connection_id: string;
@@ -54118,6 +55521,42 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
54118
55521
  };
54119
55522
  Relationships: [];
54120
55523
  };
55524
+ inventory_stock_snapshots: {
55525
+ Row: {
55526
+ connection_id: string;
55527
+ created_at: string;
55528
+ erp_available_quantity: number;
55529
+ floriday_desired_quantity: number;
55530
+ floriday_remote_quantity: number | null;
55531
+ granularity: string;
55532
+ id: string;
55533
+ snapshot_at: string;
55534
+ user_id: string | null;
55535
+ };
55536
+ Insert: {
55537
+ connection_id: string;
55538
+ created_at?: string;
55539
+ erp_available_quantity?: number;
55540
+ floriday_desired_quantity?: number;
55541
+ floriday_remote_quantity?: number | null;
55542
+ granularity?: string;
55543
+ id?: string;
55544
+ snapshot_at?: string;
55545
+ user_id?: string | null;
55546
+ };
55547
+ Update: {
55548
+ connection_id?: string;
55549
+ created_at?: string;
55550
+ erp_available_quantity?: number;
55551
+ floriday_desired_quantity?: number;
55552
+ floriday_remote_quantity?: number | null;
55553
+ granularity?: string;
55554
+ id?: string;
55555
+ snapshot_at?: string;
55556
+ user_id?: string | null;
55557
+ };
55558
+ Relationships: [];
55559
+ };
54121
55560
  invoice_items: {
54122
55561
  Row: {
54123
55562
  created_at: string;
@@ -60133,6 +61572,39 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60133
61572
  };
60134
61573
  Relationships: [];
60135
61574
  };
61575
+ print_dedupe_events: {
61576
+ Row: {
61577
+ bestaande_job_id: string | null;
61578
+ created_at: string;
61579
+ detail: string | null;
61580
+ documentnaam: string | null;
61581
+ documenttype: string | null;
61582
+ id: string;
61583
+ idempotentie_sleutel: string;
61584
+ reden: string;
61585
+ };
61586
+ Insert: {
61587
+ bestaande_job_id?: string | null;
61588
+ created_at?: string;
61589
+ detail?: string | null;
61590
+ documentnaam?: string | null;
61591
+ documenttype?: string | null;
61592
+ id?: string;
61593
+ idempotentie_sleutel: string;
61594
+ reden: string;
61595
+ };
61596
+ Update: {
61597
+ bestaande_job_id?: string | null;
61598
+ created_at?: string;
61599
+ detail?: string | null;
61600
+ documentnaam?: string | null;
61601
+ documenttype?: string | null;
61602
+ id?: string;
61603
+ idempotentie_sleutel?: string;
61604
+ reden?: string;
61605
+ };
61606
+ Relationships: [];
61607
+ };
60136
61608
  print_job_logs: {
60137
61609
  Row: {
60138
61610
  created_at: string;
@@ -60183,6 +61655,9 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60183
61655
  is_herprint: boolean;
60184
61656
  kopieen: number;
60185
61657
  layout_id: string | null;
61658
+ lokaal_opgeslagen_op: string | null;
61659
+ lokale_pdf_fout: string | null;
61660
+ lokale_pdf_status: string | null;
60186
61661
  opgepakt_op: string | null;
60187
61662
  paginas: number;
60188
61663
  payload: import("../integrations/supabase/types").Json;
@@ -60191,6 +61666,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60191
61666
  pogingen: number;
60192
61667
  printer_id: string | null;
60193
61668
  render_html: string | null;
61669
+ resultaat_pdf_base64: string | null;
60194
61670
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60195
61671
  updated_at: string;
60196
61672
  volgende_poging: string | null;
@@ -60215,6 +61691,9 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60215
61691
  is_herprint?: boolean;
60216
61692
  kopieen?: number;
60217
61693
  layout_id?: string | null;
61694
+ lokaal_opgeslagen_op?: string | null;
61695
+ lokale_pdf_fout?: string | null;
61696
+ lokale_pdf_status?: string | null;
60218
61697
  opgepakt_op?: string | null;
60219
61698
  paginas?: number;
60220
61699
  payload?: import("../integrations/supabase/types").Json;
@@ -60223,6 +61702,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60223
61702
  pogingen?: number;
60224
61703
  printer_id?: string | null;
60225
61704
  render_html?: string | null;
61705
+ resultaat_pdf_base64?: string | null;
60226
61706
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60227
61707
  updated_at?: string;
60228
61708
  volgende_poging?: string | null;
@@ -60247,6 +61727,9 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60247
61727
  is_herprint?: boolean;
60248
61728
  kopieen?: number;
60249
61729
  layout_id?: string | null;
61730
+ lokaal_opgeslagen_op?: string | null;
61731
+ lokale_pdf_fout?: string | null;
61732
+ lokale_pdf_status?: string | null;
60250
61733
  opgepakt_op?: string | null;
60251
61734
  paginas?: number;
60252
61735
  payload?: import("../integrations/supabase/types").Json;
@@ -60255,6 +61738,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60255
61738
  pogingen?: number;
60256
61739
  printer_id?: string | null;
60257
61740
  render_html?: string | null;
61741
+ resultaat_pdf_base64?: string | null;
60258
61742
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60259
61743
  updated_at?: string;
60260
61744
  volgende_poging?: string | null;
@@ -60373,6 +61857,39 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60373
61857
  };
60374
61858
  Relationships: [];
60375
61859
  };
61860
+ print_preview_events: {
61861
+ Row: {
61862
+ code: string | null;
61863
+ created_at: string;
61864
+ detail: import("../integrations/supabase/types").Json;
61865
+ id: string;
61866
+ queue_item_id: string | null;
61867
+ reden: string | null;
61868
+ station_slug: string | null;
61869
+ uitkomst: string;
61870
+ };
61871
+ Insert: {
61872
+ code?: string | null;
61873
+ created_at?: string;
61874
+ detail?: import("../integrations/supabase/types").Json;
61875
+ id?: string;
61876
+ queue_item_id?: string | null;
61877
+ reden?: string | null;
61878
+ station_slug?: string | null;
61879
+ uitkomst?: string;
61880
+ };
61881
+ Update: {
61882
+ code?: string | null;
61883
+ created_at?: string;
61884
+ detail?: import("../integrations/supabase/types").Json;
61885
+ id?: string;
61886
+ queue_item_id?: string | null;
61887
+ reden?: string | null;
61888
+ station_slug?: string | null;
61889
+ uitkomst?: string;
61890
+ };
61891
+ Relationships: [];
61892
+ };
60376
61893
  print_queue_runners: {
60377
61894
  Row: {
60378
61895
  actief: boolean;
@@ -60612,6 +62129,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60612
62129
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60613
62130
  online: boolean;
60614
62131
  papierformaat: string;
62132
+ pdf_map: string | null;
60615
62133
  poort: number | null;
60616
62134
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60617
62135
  systeemnaam: string;
@@ -60637,6 +62155,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60637
62155
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60638
62156
  online?: boolean;
60639
62157
  papierformaat?: string;
62158
+ pdf_map?: string | null;
60640
62159
  poort?: number | null;
60641
62160
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60642
62161
  systeemnaam?: string;
@@ -60662,6 +62181,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60662
62181
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60663
62182
  online?: boolean;
60664
62183
  papierformaat?: string;
62184
+ pdf_map?: string | null;
60665
62185
  poort?: number | null;
60666
62186
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60667
62187
  systeemnaam?: string;
@@ -63231,6 +64751,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
63231
64751
  };
63232
64752
  trade_item_stock: {
63233
64753
  Row: {
64754
+ change_source: string;
63234
64755
  connection_id: string;
63235
64756
  created_at: string;
63236
64757
  id: string;
@@ -63244,6 +64765,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
63244
64765
  user_id: string;
63245
64766
  };
63246
64767
  Insert: {
64768
+ change_source?: string;
63247
64769
  connection_id: string;
63248
64770
  created_at?: string;
63249
64771
  id?: string;
@@ -63257,6 +64779,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
63257
64779
  user_id: string;
63258
64780
  };
63259
64781
  Update: {
64782
+ change_source?: string;
63260
64783
  connection_id?: string;
63261
64784
  created_at?: string;
63262
64785
  id?: string;
@@ -66857,6 +68380,18 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
66857
68380
  Args: never;
66858
68381
  Returns: number;
66859
68382
  };
68383
+ calculate_floriday_desired_stock: {
68384
+ Args: {
68385
+ p_connection_id: string;
68386
+ p_product_id: string;
68387
+ };
68388
+ Returns: {
68389
+ desired_availability: boolean;
68390
+ desired_quantity: number;
68391
+ erp_available: number;
68392
+ stock_mode: string;
68393
+ }[];
68394
+ };
66860
68395
  calculate_layer_stock: {
66861
68396
  Args: {
66862
68397
  p_product_id: string;
@@ -66918,6 +68453,9 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
66918
68453
  is_herprint: boolean;
66919
68454
  kopieen: number;
66920
68455
  layout_id: string | null;
68456
+ lokaal_opgeslagen_op: string | null;
68457
+ lokale_pdf_fout: string | null;
68458
+ lokale_pdf_status: string | null;
66921
68459
  opgepakt_op: string | null;
66922
68460
  paginas: number;
66923
68461
  payload: import("../integrations/supabase/types").Json;
@@ -66926,6 +68464,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
66926
68464
  pogingen: number;
66927
68465
  printer_id: string | null;
66928
68466
  render_html: string | null;
68467
+ resultaat_pdf_base64: string | null;
66929
68468
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66930
68469
  updated_at: string;
66931
68470
  volgende_poging: string | null;
@@ -66947,6 +68486,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
66947
68486
  attempts: number;
66948
68487
  connection_id: string;
66949
68488
  created_at: string;
68489
+ dead_lettered_at: string | null;
66950
68490
  desired_available: boolean | null;
66951
68491
  gateway_attempt_id: string | null;
66952
68492
  id: string;
@@ -66955,9 +68495,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
66955
68495
  locked_by: string | null;
66956
68496
  next_attempt_at: string;
66957
68497
  number_of_pieces: number;
68498
+ product_id: string | null;
66958
68499
  sent_at: string | null;
66959
68500
  status: string;
68501
+ stock_mode: string | null;
66960
68502
  superseded_by: string | null;
68503
+ target_week: number | null;
68504
+ target_year: number | null;
66961
68505
  trade_item_id: string;
66962
68506
  updated_at: string;
66963
68507
  user_id: string;
@@ -67017,6 +68561,53 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67017
68561
  isSetofReturn: true;
67018
68562
  };
67019
68563
  };
68564
+ claim_pdf_print_jobs: {
68565
+ Args: {
68566
+ _max?: number;
68567
+ };
68568
+ Returns: {
68569
+ agent_id: string | null;
68570
+ bron_job_id: string | null;
68571
+ created_at: string;
68572
+ documentnaam: string;
68573
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
68574
+ extern_job_id: string | null;
68575
+ foutmelding: string | null;
68576
+ gebruiker_id: string | null;
68577
+ gebruiker_naam: string;
68578
+ gebruikte_bron: string | null;
68579
+ gebruikte_layout_id: string | null;
68580
+ gestart_op: string | null;
68581
+ herkomst: string | null;
68582
+ id: string;
68583
+ idempotentie_sleutel: string | null;
68584
+ is_herprint: boolean;
68585
+ kopieen: number;
68586
+ layout_id: string | null;
68587
+ lokaal_opgeslagen_op: string | null;
68588
+ lokale_pdf_fout: string | null;
68589
+ lokale_pdf_status: string | null;
68590
+ opgepakt_op: string | null;
68591
+ paginas: number;
68592
+ payload: import("../integrations/supabase/types").Json;
68593
+ pdf_base64: string | null;
68594
+ pdf_url: string | null;
68595
+ pogingen: number;
68596
+ printer_id: string | null;
68597
+ render_html: string | null;
68598
+ resultaat_pdf_base64: string | null;
68599
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
68600
+ updated_at: string;
68601
+ volgende_poging: string | null;
68602
+ voltooid_op: string | null;
68603
+ }[];
68604
+ SetofOptions: {
68605
+ from: "*";
68606
+ to: "print_jobs";
68607
+ isOneToOne: false;
68608
+ isSetofReturn: true;
68609
+ };
68610
+ };
67020
68611
  claim_print_jobs: {
67021
68612
  Args: {
67022
68613
  _agent_id: string;
@@ -67041,6 +68632,9 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67041
68632
  is_herprint: boolean;
67042
68633
  kopieen: number;
67043
68634
  layout_id: string | null;
68635
+ lokaal_opgeslagen_op: string | null;
68636
+ lokale_pdf_fout: string | null;
68637
+ lokale_pdf_status: string | null;
67044
68638
  opgepakt_op: string | null;
67045
68639
  paginas: number;
67046
68640
  payload: import("../integrations/supabase/types").Json;
@@ -67049,6 +68643,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67049
68643
  pogingen: number;
67050
68644
  printer_id: string | null;
67051
68645
  render_html: string | null;
68646
+ resultaat_pdf_base64: string | null;
67052
68647
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67053
68648
  updated_at: string;
67054
68649
  volgende_poging: string | null;
@@ -67189,6 +68784,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67189
68784
  order_id: string;
67190
68785
  order_source: string;
67191
68786
  pick_date: string;
68787
+ printed_at: string;
68788
+ printed_today: boolean;
67192
68789
  status: string;
67193
68790
  }[];
67194
68791
  };
@@ -67385,6 +68982,24 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67385
68982
  };
67386
68983
  Returns: string;
67387
68984
  };
68985
+ floriday_capture_stock_snapshot: {
68986
+ Args: never;
68987
+ Returns: number;
68988
+ };
68989
+ floriday_cleanup_stock_queue_v2: {
68990
+ Args: never;
68991
+ Returns: undefined;
68992
+ };
68993
+ floriday_compact_stock_snapshots: {
68994
+ Args: never;
68995
+ Returns: undefined;
68996
+ };
68997
+ floriday_default_owner: {
68998
+ Args: {
68999
+ p_connection_id: string;
69000
+ };
69001
+ Returns: string;
69002
+ };
67388
69003
  floriday_effective_price: {
67389
69004
  Args: {
67390
69005
  _buyer_id: string;
@@ -67402,6 +69017,22 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67402
69017
  source_id: string;
67403
69018
  }[];
67404
69019
  };
69020
+ floriday_fill_publish_horizon: {
69021
+ Args: never;
69022
+ Returns: number;
69023
+ };
69024
+ floriday_publish_horizon_weeks: {
69025
+ Args: never;
69026
+ Returns: number;
69027
+ };
69028
+ floriday_recompute_inventory: {
69029
+ Args: {
69030
+ p_connection_id: string;
69031
+ p_force?: boolean;
69032
+ p_product_id: string;
69033
+ };
69034
+ Returns: undefined;
69035
+ };
67405
69036
  format_cart_number: {
67406
69037
  Args: {
67407
69038
  p_pick_date: string;
@@ -67897,6 +69528,10 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67897
69528
  };
67898
69529
  Returns: number;
67899
69530
  };
69531
+ logistics_cancel_orphan_tasks: {
69532
+ Args: never;
69533
+ Returns: number;
69534
+ };
67900
69535
  logistics_capacity_day_check: {
67901
69536
  Args: {
67902
69537
  p_from?: string;
@@ -67917,6 +69552,25 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67917
69552
  };
67918
69553
  Returns: number;
67919
69554
  };
69555
+ logistics_cart_index: {
69556
+ Args: {
69557
+ p_from?: string;
69558
+ p_to?: string;
69559
+ };
69560
+ Returns: {
69561
+ cart_id: string;
69562
+ cart_index: number;
69563
+ cart_label: string;
69564
+ is_shared: boolean;
69565
+ order_number: string;
69566
+ order_source: string;
69567
+ order_uuid: string;
69568
+ pick_date: string;
69569
+ printed_at: string;
69570
+ shifted: boolean;
69571
+ task_status: string;
69572
+ }[];
69573
+ };
67920
69574
  logistics_check_order_allowed: {
67921
69575
  Args: {
67922
69576
  p_lines: import("../integrations/supabase/types").Json;
@@ -68065,6 +69719,17 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68065
69719
  isSetofReturn: false;
68066
69720
  };
68067
69721
  };
69722
+ logistics_consistency_check: {
69723
+ Args: never;
69724
+ Returns: {
69725
+ agenda_carts: number;
69726
+ control_carts: number;
69727
+ ok: boolean;
69728
+ orphan_tasks: number;
69729
+ pick_date: string;
69730
+ raw_carts: number;
69731
+ }[];
69732
+ };
68068
69733
  logistics_delay_customer_email: {
68069
69734
  Args: {
68070
69735
  p_customer: string;
@@ -68154,6 +69819,16 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68154
69819
  isSetofReturn: false;
68155
69820
  };
68156
69821
  };
69822
+ logistics_floriday_cart_plan: {
69823
+ Args: {
69824
+ p_order_id: string;
69825
+ };
69826
+ Returns: {
69827
+ carrier_type: string;
69828
+ idx: number;
69829
+ packages: number;
69830
+ }[];
69831
+ };
68157
69832
  logistics_floriday_claim_pushes: {
68158
69833
  Args: {
68159
69834
  _lease_seconds?: number;
@@ -68258,6 +69933,25 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68258
69933
  };
68259
69934
  Returns: number;
68260
69935
  };
69936
+ logistics_order_overview: {
69937
+ Args: {
69938
+ p_from?: string;
69939
+ p_to?: string;
69940
+ };
69941
+ Returns: {
69942
+ cart_count: number;
69943
+ customer_name: string;
69944
+ delivery_date: string;
69945
+ order_number: string;
69946
+ order_source: string;
69947
+ order_uuid: string;
69948
+ pick_date: string;
69949
+ plant_count: number;
69950
+ printed_at: string;
69951
+ shifted: boolean;
69952
+ status: string;
69953
+ }[];
69954
+ };
68261
69955
  logistics_order_pick_day: {
68262
69956
  Args: {
68263
69957
  p_order_ref: string;
@@ -68270,6 +69964,22 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68270
69964
  };
68271
69965
  Returns: string;
68272
69966
  };
69967
+ logistics_pick_agenda: {
69968
+ Args: {
69969
+ p_from?: string;
69970
+ p_to?: string;
69971
+ };
69972
+ Returns: {
69973
+ cart_count: number;
69974
+ in_preparation: number;
69975
+ order_count: number;
69976
+ orders: import("../integrations/supabase/types").Json;
69977
+ pick_date: string;
69978
+ plant_count: number;
69979
+ ready: number;
69980
+ shifted_count: number;
69981
+ }[];
69982
+ };
68273
69983
  logistics_pick_email_purpose: {
68274
69984
  Args: never;
68275
69985
  Returns: string;
@@ -68324,6 +70034,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68324
70034
  };
68325
70035
  Returns: undefined;
68326
70036
  };
70037
+ logistics_plan_floriday_order: {
70038
+ Args: {
70039
+ p_buffer_id?: string;
70040
+ p_order_id: string;
70041
+ };
70042
+ Returns: number;
70043
+ };
68327
70044
  logistics_plan_impact_orders: {
68328
70045
  Args: {
68329
70046
  p_order_id: string;
@@ -68429,6 +70146,15 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68429
70146
  };
68430
70147
  Returns: import("../integrations/supabase/types").Json;
68431
70148
  };
70149
+ logistics_resolve_pick_document: {
70150
+ Args: {
70151
+ _is_herprint: boolean;
70152
+ _queue_item_id: string;
70153
+ _session_id: string;
70154
+ _voorbeeld: boolean;
70155
+ };
70156
+ Returns: import("../integrations/supabase/types").Json;
70157
+ };
68432
70158
  logistics_resolve_settings: {
68433
70159
  Args: {
68434
70160
  p_config_id: string;
@@ -68869,6 +70595,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68869
70595
  };
68870
70596
  pick_enqueue_print_job: {
68871
70597
  Args: {
70598
+ _is_herprint?: boolean;
68872
70599
  _printer_id?: string;
68873
70600
  _queue_item_id: string;
68874
70601
  _session_id?: string;
@@ -68882,6 +70609,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68882
70609
  };
68883
70610
  Returns: import("../integrations/supabase/types").Json;
68884
70611
  };
70612
+ pick_preview_job: {
70613
+ Args: {
70614
+ _queue_item_id: string;
70615
+ _station_slug: string;
70616
+ };
70617
+ Returns: import("../integrations/supabase/types").Json;
70618
+ };
68885
70619
  pick_print_job_status: {
68886
70620
  Args: {
68887
70621
  _job_id: string;
@@ -69059,6 +70793,24 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
69059
70793
  };
69060
70794
  Returns: undefined;
69061
70795
  };
70796
+ print_preview_toestaan: {
70797
+ Args: {
70798
+ _max?: number;
70799
+ _queue_item_id: string;
70800
+ _station_slug: string;
70801
+ _venster_sec?: number;
70802
+ };
70803
+ Returns: import("../integrations/supabase/types").Json;
70804
+ };
70805
+ print_preview_weiger: {
70806
+ Args: {
70807
+ _code: string;
70808
+ _queue_item_id: string;
70809
+ _reden: string;
70810
+ _station_slug: string;
70811
+ };
70812
+ Returns: undefined;
70813
+ };
69062
70814
  process_logistics_event: {
69063
70815
  Args: {
69064
70816
  p_event_id: string;
@@ -69213,6 +70965,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
69213
70965
  };
69214
70966
  Returns: string;
69215
70967
  };
70968
+ resolve_print_job_printer_id: {
70969
+ Args: {
70970
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70971
+ };
70972
+ Returns: string;
70973
+ };
69216
70974
  resolve_product_id_for_item: {
69217
70975
  Args: {
69218
70976
  p_product_name: string;
@@ -69804,7 +71562,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
69804
71562
  };
69805
71563
  CompositeTypes: { [_ in never]: never; };
69806
71564
  }, {
69807
- PostgrestVersion: "14.17";
71565
+ PostgrestVersion: "14.5";
69808
71566
  }>;
69809
71567
  userId: string;
69810
71568
  claims: import("@supabase/auth-js").User;
@@ -72666,6 +74424,84 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
72666
74424
  };
72667
74425
  Relationships: [];
72668
74426
  };
74427
+ delivery_notes: {
74428
+ Row: {
74429
+ byte_size: number | null;
74430
+ connection_id: string | null;
74431
+ content_type: string;
74432
+ created_at: string;
74433
+ error_message: string | null;
74434
+ fetched_at: string | null;
74435
+ fulfillment_order_id: string | null;
74436
+ http_status: number | null;
74437
+ id: string;
74438
+ label_code: string | null;
74439
+ letter: string | null;
74440
+ load_carrier_index: number | null;
74441
+ load_carrier_type: string | null;
74442
+ order_id: string | null;
74443
+ order_number: string | null;
74444
+ packages: number | null;
74445
+ source: string;
74446
+ status: string;
74447
+ storage_bucket: string;
74448
+ storage_path: string | null;
74449
+ updated_at: string;
74450
+ };
74451
+ Insert: {
74452
+ byte_size?: number | null;
74453
+ connection_id?: string | null;
74454
+ content_type?: string;
74455
+ created_at?: string;
74456
+ error_message?: string | null;
74457
+ fetched_at?: string | null;
74458
+ fulfillment_order_id?: string | null;
74459
+ http_status?: number | null;
74460
+ id?: string;
74461
+ label_code?: string | null;
74462
+ letter?: string | null;
74463
+ load_carrier_index?: number | null;
74464
+ load_carrier_type?: string | null;
74465
+ order_id?: string | null;
74466
+ order_number?: string | null;
74467
+ packages?: number | null;
74468
+ source?: string;
74469
+ status?: string;
74470
+ storage_bucket?: string;
74471
+ storage_path?: string | null;
74472
+ updated_at?: string;
74473
+ };
74474
+ Update: {
74475
+ byte_size?: number | null;
74476
+ connection_id?: string | null;
74477
+ content_type?: string;
74478
+ created_at?: string;
74479
+ error_message?: string | null;
74480
+ fetched_at?: string | null;
74481
+ fulfillment_order_id?: string | null;
74482
+ http_status?: number | null;
74483
+ id?: string;
74484
+ label_code?: string | null;
74485
+ letter?: string | null;
74486
+ load_carrier_index?: number | null;
74487
+ load_carrier_type?: string | null;
74488
+ order_id?: string | null;
74489
+ order_number?: string | null;
74490
+ packages?: number | null;
74491
+ source?: string;
74492
+ status?: string;
74493
+ storage_bucket?: string;
74494
+ storage_path?: string | null;
74495
+ updated_at?: string;
74496
+ };
74497
+ Relationships: [{
74498
+ foreignKeyName: "delivery_notes_order_id_fkey";
74499
+ columns: ["order_id"];
74500
+ isOneToOne: false;
74501
+ referencedRelation: "orders";
74502
+ referencedColumns: ["id"];
74503
+ }];
74504
+ };
72669
74505
  document_bronregels: {
72670
74506
  Row: {
72671
74507
  bron: string;
@@ -75719,10 +77555,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75719
77555
  };
75720
77556
  floriday_connections: {
75721
77557
  Row: {
75722
- access_token: string | null;
75723
77558
  api_key: string;
75724
- client_id: string;
75725
- client_secret: string;
75726
77559
  created_at: string;
75727
77560
  customers_endpoint: string | null;
75728
77561
  environment: string;
@@ -75737,10 +77570,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75737
77570
  updated_at: string;
75738
77571
  };
75739
77572
  Insert: {
75740
- access_token?: string | null;
75741
77573
  api_key: string;
75742
- client_id: string;
75743
- client_secret: string;
75744
77574
  created_at?: string;
75745
77575
  customers_endpoint?: string | null;
75746
77576
  environment: string;
@@ -75755,10 +77585,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75755
77585
  updated_at?: string;
75756
77586
  };
75757
77587
  Update: {
75758
- access_token?: string | null;
75759
77588
  api_key?: string;
75760
- client_id?: string;
75761
- client_secret?: string;
75762
77589
  created_at?: string;
75763
77590
  customers_endpoint?: string | null;
75764
77591
  environment?: string;
@@ -75842,6 +77669,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75842
77669
  attempts: number;
75843
77670
  connection_id: string;
75844
77671
  created_at: string;
77672
+ dead_lettered_at: string | null;
75845
77673
  desired_available: boolean | null;
75846
77674
  gateway_attempt_id: string | null;
75847
77675
  id: string;
@@ -75850,9 +77678,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75850
77678
  locked_by: string | null;
75851
77679
  next_attempt_at: string;
75852
77680
  number_of_pieces: number;
77681
+ product_id: string | null;
75853
77682
  sent_at: string | null;
75854
77683
  status: string;
77684
+ stock_mode: string | null;
75855
77685
  superseded_by: string | null;
77686
+ target_week: number | null;
77687
+ target_year: number | null;
75856
77688
  trade_item_id: string;
75857
77689
  updated_at: string;
75858
77690
  user_id: string;
@@ -75861,6 +77693,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75861
77693
  attempts?: number;
75862
77694
  connection_id: string;
75863
77695
  created_at?: string;
77696
+ dead_lettered_at?: string | null;
75864
77697
  desired_available?: boolean | null;
75865
77698
  gateway_attempt_id?: string | null;
75866
77699
  id?: string;
@@ -75869,9 +77702,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75869
77702
  locked_by?: string | null;
75870
77703
  next_attempt_at?: string;
75871
77704
  number_of_pieces?: number;
77705
+ product_id?: string | null;
75872
77706
  sent_at?: string | null;
75873
77707
  status?: string;
77708
+ stock_mode?: string | null;
75874
77709
  superseded_by?: string | null;
77710
+ target_week?: number | null;
77711
+ target_year?: number | null;
75875
77712
  trade_item_id: string;
75876
77713
  updated_at?: string;
75877
77714
  user_id: string;
@@ -75880,6 +77717,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75880
77717
  attempts?: number;
75881
77718
  connection_id?: string;
75882
77719
  created_at?: string;
77720
+ dead_lettered_at?: string | null;
75883
77721
  desired_available?: boolean | null;
75884
77722
  gateway_attempt_id?: string | null;
75885
77723
  id?: string;
@@ -75888,9 +77726,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75888
77726
  locked_by?: string | null;
75889
77727
  next_attempt_at?: string;
75890
77728
  number_of_pieces?: number;
77729
+ product_id?: string | null;
75891
77730
  sent_at?: string | null;
75892
77731
  status?: string;
77732
+ stock_mode?: string | null;
75893
77733
  superseded_by?: string | null;
77734
+ target_week?: number | null;
77735
+ target_year?: number | null;
75894
77736
  trade_item_id?: string;
75895
77737
  updated_at?: string;
75896
77738
  user_id?: string;
@@ -76299,6 +78141,87 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
76299
78141
  referencedColumns: ["id"];
76300
78142
  }];
76301
78143
  };
78144
+ floriday_inventory_settings: {
78145
+ Row: {
78146
+ buffer_quantity: number;
78147
+ connection_id: string;
78148
+ created_at: string;
78149
+ desired_availability: boolean;
78150
+ desired_quantity: number;
78151
+ fixed_quantity: number | null;
78152
+ floriday_trade_item_id: string | null;
78153
+ id: string;
78154
+ last_confirmed_at: string | null;
78155
+ last_enqueued_at: string | null;
78156
+ last_published_at: string | null;
78157
+ last_sync_error: string | null;
78158
+ manual_quantity: number | null;
78159
+ maximum_quantity: number | null;
78160
+ product_id: string;
78161
+ quantity_control: string;
78162
+ remote_available: boolean | null;
78163
+ remote_checked_at: string | null;
78164
+ remote_quantity: number | null;
78165
+ stock_mode: string;
78166
+ sync_status: string;
78167
+ updated_at: string;
78168
+ updated_by: string | null;
78169
+ user_id: string;
78170
+ };
78171
+ Insert: {
78172
+ buffer_quantity?: number;
78173
+ connection_id: string;
78174
+ created_at?: string;
78175
+ desired_availability?: boolean;
78176
+ desired_quantity?: number;
78177
+ fixed_quantity?: number | null;
78178
+ floriday_trade_item_id?: string | null;
78179
+ id?: string;
78180
+ last_confirmed_at?: string | null;
78181
+ last_enqueued_at?: string | null;
78182
+ last_published_at?: string | null;
78183
+ last_sync_error?: string | null;
78184
+ manual_quantity?: number | null;
78185
+ maximum_quantity?: number | null;
78186
+ product_id: string;
78187
+ quantity_control?: string;
78188
+ remote_available?: boolean | null;
78189
+ remote_checked_at?: string | null;
78190
+ remote_quantity?: number | null;
78191
+ stock_mode?: string;
78192
+ sync_status?: string;
78193
+ updated_at?: string;
78194
+ updated_by?: string | null;
78195
+ user_id: string;
78196
+ };
78197
+ Update: {
78198
+ buffer_quantity?: number;
78199
+ connection_id?: string;
78200
+ created_at?: string;
78201
+ desired_availability?: boolean;
78202
+ desired_quantity?: number;
78203
+ fixed_quantity?: number | null;
78204
+ floriday_trade_item_id?: string | null;
78205
+ id?: string;
78206
+ last_confirmed_at?: string | null;
78207
+ last_enqueued_at?: string | null;
78208
+ last_published_at?: string | null;
78209
+ last_sync_error?: string | null;
78210
+ manual_quantity?: number | null;
78211
+ maximum_quantity?: number | null;
78212
+ product_id?: string;
78213
+ quantity_control?: string;
78214
+ remote_available?: boolean | null;
78215
+ remote_checked_at?: string | null;
78216
+ remote_quantity?: number | null;
78217
+ stock_mode?: string;
78218
+ sync_status?: string;
78219
+ updated_at?: string;
78220
+ updated_by?: string | null;
78221
+ user_id?: string;
78222
+ };
78223
+ Relationships: [];
78224
+ };
76302
78225
  floriday_invoices_cache: {
76303
78226
  Row: {
76304
78227
  buyer_organization_id: string | null;
@@ -76587,6 +78510,39 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
76587
78510
  };
76588
78511
  Relationships: [];
76589
78512
  };
78513
+ floriday_sales_order_ingest: {
78514
+ Row: {
78515
+ connection_id: string;
78516
+ created_at: string;
78517
+ id: string;
78518
+ impact: import("../integrations/supabase/types").Json;
78519
+ order_status: string | null;
78520
+ order_version: number;
78521
+ processed_at: string;
78522
+ sales_order_id: string;
78523
+ };
78524
+ Insert: {
78525
+ connection_id: string;
78526
+ created_at?: string;
78527
+ id?: string;
78528
+ impact?: import("../integrations/supabase/types").Json;
78529
+ order_status?: string | null;
78530
+ order_version?: number;
78531
+ processed_at?: string;
78532
+ sales_order_id: string;
78533
+ };
78534
+ Update: {
78535
+ connection_id?: string;
78536
+ created_at?: string;
78537
+ id?: string;
78538
+ impact?: import("../integrations/supabase/types").Json;
78539
+ order_status?: string | null;
78540
+ order_version?: number;
78541
+ processed_at?: string;
78542
+ sales_order_id?: string;
78543
+ };
78544
+ Relationships: [];
78545
+ };
76590
78546
  floriday_sales_strategies_cache: {
76591
78547
  Row: {
76592
78548
  connection_id: string;
@@ -76686,6 +78642,39 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
76686
78642
  };
76687
78643
  Relationships: [];
76688
78644
  };
78645
+ floriday_sync_cursors: {
78646
+ Row: {
78647
+ connection_id: string;
78648
+ created_at: string;
78649
+ id: string;
78650
+ last_error: string | null;
78651
+ last_sync_at: string | null;
78652
+ resource_type: string;
78653
+ sequence_number: number;
78654
+ updated_at: string;
78655
+ };
78656
+ Insert: {
78657
+ connection_id: string;
78658
+ created_at?: string;
78659
+ id?: string;
78660
+ last_error?: string | null;
78661
+ last_sync_at?: string | null;
78662
+ resource_type: string;
78663
+ sequence_number?: number;
78664
+ updated_at?: string;
78665
+ };
78666
+ Update: {
78667
+ connection_id?: string;
78668
+ created_at?: string;
78669
+ id?: string;
78670
+ last_error?: string | null;
78671
+ last_sync_at?: string | null;
78672
+ resource_type?: string;
78673
+ sequence_number?: number;
78674
+ updated_at?: string;
78675
+ };
78676
+ Relationships: [];
78677
+ };
76689
78678
  floriday_sync_state: {
76690
78679
  Row: {
76691
78680
  connection_id: string;
@@ -77376,6 +79365,42 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
77376
79365
  };
77377
79366
  Relationships: [];
77378
79367
  };
79368
+ inventory_stock_snapshots: {
79369
+ Row: {
79370
+ connection_id: string;
79371
+ created_at: string;
79372
+ erp_available_quantity: number;
79373
+ floriday_desired_quantity: number;
79374
+ floriday_remote_quantity: number | null;
79375
+ granularity: string;
79376
+ id: string;
79377
+ snapshot_at: string;
79378
+ user_id: string | null;
79379
+ };
79380
+ Insert: {
79381
+ connection_id: string;
79382
+ created_at?: string;
79383
+ erp_available_quantity?: number;
79384
+ floriday_desired_quantity?: number;
79385
+ floriday_remote_quantity?: number | null;
79386
+ granularity?: string;
79387
+ id?: string;
79388
+ snapshot_at?: string;
79389
+ user_id?: string | null;
79390
+ };
79391
+ Update: {
79392
+ connection_id?: string;
79393
+ created_at?: string;
79394
+ erp_available_quantity?: number;
79395
+ floriday_desired_quantity?: number;
79396
+ floriday_remote_quantity?: number | null;
79397
+ granularity?: string;
79398
+ id?: string;
79399
+ snapshot_at?: string;
79400
+ user_id?: string | null;
79401
+ };
79402
+ Relationships: [];
79403
+ };
77379
79404
  invoice_items: {
77380
79405
  Row: {
77381
79406
  created_at: string;
@@ -83391,6 +85416,39 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83391
85416
  };
83392
85417
  Relationships: [];
83393
85418
  };
85419
+ print_dedupe_events: {
85420
+ Row: {
85421
+ bestaande_job_id: string | null;
85422
+ created_at: string;
85423
+ detail: string | null;
85424
+ documentnaam: string | null;
85425
+ documenttype: string | null;
85426
+ id: string;
85427
+ idempotentie_sleutel: string;
85428
+ reden: string;
85429
+ };
85430
+ Insert: {
85431
+ bestaande_job_id?: string | null;
85432
+ created_at?: string;
85433
+ detail?: string | null;
85434
+ documentnaam?: string | null;
85435
+ documenttype?: string | null;
85436
+ id?: string;
85437
+ idempotentie_sleutel: string;
85438
+ reden: string;
85439
+ };
85440
+ Update: {
85441
+ bestaande_job_id?: string | null;
85442
+ created_at?: string;
85443
+ detail?: string | null;
85444
+ documentnaam?: string | null;
85445
+ documenttype?: string | null;
85446
+ id?: string;
85447
+ idempotentie_sleutel?: string;
85448
+ reden?: string;
85449
+ };
85450
+ Relationships: [];
85451
+ };
83394
85452
  print_job_logs: {
83395
85453
  Row: {
83396
85454
  created_at: string;
@@ -83441,6 +85499,9 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83441
85499
  is_herprint: boolean;
83442
85500
  kopieen: number;
83443
85501
  layout_id: string | null;
85502
+ lokaal_opgeslagen_op: string | null;
85503
+ lokale_pdf_fout: string | null;
85504
+ lokale_pdf_status: string | null;
83444
85505
  opgepakt_op: string | null;
83445
85506
  paginas: number;
83446
85507
  payload: import("../integrations/supabase/types").Json;
@@ -83449,6 +85510,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83449
85510
  pogingen: number;
83450
85511
  printer_id: string | null;
83451
85512
  render_html: string | null;
85513
+ resultaat_pdf_base64: string | null;
83452
85514
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83453
85515
  updated_at: string;
83454
85516
  volgende_poging: string | null;
@@ -83473,6 +85535,9 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83473
85535
  is_herprint?: boolean;
83474
85536
  kopieen?: number;
83475
85537
  layout_id?: string | null;
85538
+ lokaal_opgeslagen_op?: string | null;
85539
+ lokale_pdf_fout?: string | null;
85540
+ lokale_pdf_status?: string | null;
83476
85541
  opgepakt_op?: string | null;
83477
85542
  paginas?: number;
83478
85543
  payload?: import("../integrations/supabase/types").Json;
@@ -83481,6 +85546,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83481
85546
  pogingen?: number;
83482
85547
  printer_id?: string | null;
83483
85548
  render_html?: string | null;
85549
+ resultaat_pdf_base64?: string | null;
83484
85550
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83485
85551
  updated_at?: string;
83486
85552
  volgende_poging?: string | null;
@@ -83505,6 +85571,9 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83505
85571
  is_herprint?: boolean;
83506
85572
  kopieen?: number;
83507
85573
  layout_id?: string | null;
85574
+ lokaal_opgeslagen_op?: string | null;
85575
+ lokale_pdf_fout?: string | null;
85576
+ lokale_pdf_status?: string | null;
83508
85577
  opgepakt_op?: string | null;
83509
85578
  paginas?: number;
83510
85579
  payload?: import("../integrations/supabase/types").Json;
@@ -83513,6 +85582,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83513
85582
  pogingen?: number;
83514
85583
  printer_id?: string | null;
83515
85584
  render_html?: string | null;
85585
+ resultaat_pdf_base64?: string | null;
83516
85586
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83517
85587
  updated_at?: string;
83518
85588
  volgende_poging?: string | null;
@@ -83631,6 +85701,39 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83631
85701
  };
83632
85702
  Relationships: [];
83633
85703
  };
85704
+ print_preview_events: {
85705
+ Row: {
85706
+ code: string | null;
85707
+ created_at: string;
85708
+ detail: import("../integrations/supabase/types").Json;
85709
+ id: string;
85710
+ queue_item_id: string | null;
85711
+ reden: string | null;
85712
+ station_slug: string | null;
85713
+ uitkomst: string;
85714
+ };
85715
+ Insert: {
85716
+ code?: string | null;
85717
+ created_at?: string;
85718
+ detail?: import("../integrations/supabase/types").Json;
85719
+ id?: string;
85720
+ queue_item_id?: string | null;
85721
+ reden?: string | null;
85722
+ station_slug?: string | null;
85723
+ uitkomst?: string;
85724
+ };
85725
+ Update: {
85726
+ code?: string | null;
85727
+ created_at?: string;
85728
+ detail?: import("../integrations/supabase/types").Json;
85729
+ id?: string;
85730
+ queue_item_id?: string | null;
85731
+ reden?: string | null;
85732
+ station_slug?: string | null;
85733
+ uitkomst?: string;
85734
+ };
85735
+ Relationships: [];
85736
+ };
83634
85737
  print_queue_runners: {
83635
85738
  Row: {
83636
85739
  actief: boolean;
@@ -83870,6 +85973,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83870
85973
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
83871
85974
  online: boolean;
83872
85975
  papierformaat: string;
85976
+ pdf_map: string | null;
83873
85977
  poort: number | null;
83874
85978
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83875
85979
  systeemnaam: string;
@@ -83895,6 +85999,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83895
85999
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83896
86000
  online?: boolean;
83897
86001
  papierformaat?: string;
86002
+ pdf_map?: string | null;
83898
86003
  poort?: number | null;
83899
86004
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83900
86005
  systeemnaam?: string;
@@ -83920,6 +86025,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83920
86025
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83921
86026
  online?: boolean;
83922
86027
  papierformaat?: string;
86028
+ pdf_map?: string | null;
83923
86029
  poort?: number | null;
83924
86030
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83925
86031
  systeemnaam?: string;
@@ -86489,6 +88595,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
86489
88595
  };
86490
88596
  trade_item_stock: {
86491
88597
  Row: {
88598
+ change_source: string;
86492
88599
  connection_id: string;
86493
88600
  created_at: string;
86494
88601
  id: string;
@@ -86502,6 +88609,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
86502
88609
  user_id: string;
86503
88610
  };
86504
88611
  Insert: {
88612
+ change_source?: string;
86505
88613
  connection_id: string;
86506
88614
  created_at?: string;
86507
88615
  id?: string;
@@ -86515,6 +88623,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
86515
88623
  user_id: string;
86516
88624
  };
86517
88625
  Update: {
88626
+ change_source?: string;
86518
88627
  connection_id?: string;
86519
88628
  created_at?: string;
86520
88629
  id?: string;
@@ -90115,6 +92224,18 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90115
92224
  Args: never;
90116
92225
  Returns: number;
90117
92226
  };
92227
+ calculate_floriday_desired_stock: {
92228
+ Args: {
92229
+ p_connection_id: string;
92230
+ p_product_id: string;
92231
+ };
92232
+ Returns: {
92233
+ desired_availability: boolean;
92234
+ desired_quantity: number;
92235
+ erp_available: number;
92236
+ stock_mode: string;
92237
+ }[];
92238
+ };
90118
92239
  calculate_layer_stock: {
90119
92240
  Args: {
90120
92241
  p_product_id: string;
@@ -90176,6 +92297,9 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90176
92297
  is_herprint: boolean;
90177
92298
  kopieen: number;
90178
92299
  layout_id: string | null;
92300
+ lokaal_opgeslagen_op: string | null;
92301
+ lokale_pdf_fout: string | null;
92302
+ lokale_pdf_status: string | null;
90179
92303
  opgepakt_op: string | null;
90180
92304
  paginas: number;
90181
92305
  payload: import("../integrations/supabase/types").Json;
@@ -90184,6 +92308,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90184
92308
  pogingen: number;
90185
92309
  printer_id: string | null;
90186
92310
  render_html: string | null;
92311
+ resultaat_pdf_base64: string | null;
90187
92312
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90188
92313
  updated_at: string;
90189
92314
  volgende_poging: string | null;
@@ -90205,6 +92330,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90205
92330
  attempts: number;
90206
92331
  connection_id: string;
90207
92332
  created_at: string;
92333
+ dead_lettered_at: string | null;
90208
92334
  desired_available: boolean | null;
90209
92335
  gateway_attempt_id: string | null;
90210
92336
  id: string;
@@ -90213,9 +92339,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90213
92339
  locked_by: string | null;
90214
92340
  next_attempt_at: string;
90215
92341
  number_of_pieces: number;
92342
+ product_id: string | null;
90216
92343
  sent_at: string | null;
90217
92344
  status: string;
92345
+ stock_mode: string | null;
90218
92346
  superseded_by: string | null;
92347
+ target_week: number | null;
92348
+ target_year: number | null;
90219
92349
  trade_item_id: string;
90220
92350
  updated_at: string;
90221
92351
  user_id: string;
@@ -90275,6 +92405,53 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90275
92405
  isSetofReturn: true;
90276
92406
  };
90277
92407
  };
92408
+ claim_pdf_print_jobs: {
92409
+ Args: {
92410
+ _max?: number;
92411
+ };
92412
+ Returns: {
92413
+ agent_id: string | null;
92414
+ bron_job_id: string | null;
92415
+ created_at: string;
92416
+ documentnaam: string;
92417
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
92418
+ extern_job_id: string | null;
92419
+ foutmelding: string | null;
92420
+ gebruiker_id: string | null;
92421
+ gebruiker_naam: string;
92422
+ gebruikte_bron: string | null;
92423
+ gebruikte_layout_id: string | null;
92424
+ gestart_op: string | null;
92425
+ herkomst: string | null;
92426
+ id: string;
92427
+ idempotentie_sleutel: string | null;
92428
+ is_herprint: boolean;
92429
+ kopieen: number;
92430
+ layout_id: string | null;
92431
+ lokaal_opgeslagen_op: string | null;
92432
+ lokale_pdf_fout: string | null;
92433
+ lokale_pdf_status: string | null;
92434
+ opgepakt_op: string | null;
92435
+ paginas: number;
92436
+ payload: import("../integrations/supabase/types").Json;
92437
+ pdf_base64: string | null;
92438
+ pdf_url: string | null;
92439
+ pogingen: number;
92440
+ printer_id: string | null;
92441
+ render_html: string | null;
92442
+ resultaat_pdf_base64: string | null;
92443
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
92444
+ updated_at: string;
92445
+ volgende_poging: string | null;
92446
+ voltooid_op: string | null;
92447
+ }[];
92448
+ SetofOptions: {
92449
+ from: "*";
92450
+ to: "print_jobs";
92451
+ isOneToOne: false;
92452
+ isSetofReturn: true;
92453
+ };
92454
+ };
90278
92455
  claim_print_jobs: {
90279
92456
  Args: {
90280
92457
  _agent_id: string;
@@ -90299,6 +92476,9 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90299
92476
  is_herprint: boolean;
90300
92477
  kopieen: number;
90301
92478
  layout_id: string | null;
92479
+ lokaal_opgeslagen_op: string | null;
92480
+ lokale_pdf_fout: string | null;
92481
+ lokale_pdf_status: string | null;
90302
92482
  opgepakt_op: string | null;
90303
92483
  paginas: number;
90304
92484
  payload: import("../integrations/supabase/types").Json;
@@ -90307,6 +92487,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90307
92487
  pogingen: number;
90308
92488
  printer_id: string | null;
90309
92489
  render_html: string | null;
92490
+ resultaat_pdf_base64: string | null;
90310
92491
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90311
92492
  updated_at: string;
90312
92493
  volgende_poging: string | null;
@@ -90447,6 +92628,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90447
92628
  order_id: string;
90448
92629
  order_source: string;
90449
92630
  pick_date: string;
92631
+ printed_at: string;
92632
+ printed_today: boolean;
90450
92633
  status: string;
90451
92634
  }[];
90452
92635
  };
@@ -90643,6 +92826,24 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90643
92826
  };
90644
92827
  Returns: string;
90645
92828
  };
92829
+ floriday_capture_stock_snapshot: {
92830
+ Args: never;
92831
+ Returns: number;
92832
+ };
92833
+ floriday_cleanup_stock_queue_v2: {
92834
+ Args: never;
92835
+ Returns: undefined;
92836
+ };
92837
+ floriday_compact_stock_snapshots: {
92838
+ Args: never;
92839
+ Returns: undefined;
92840
+ };
92841
+ floriday_default_owner: {
92842
+ Args: {
92843
+ p_connection_id: string;
92844
+ };
92845
+ Returns: string;
92846
+ };
90646
92847
  floriday_effective_price: {
90647
92848
  Args: {
90648
92849
  _buyer_id: string;
@@ -90660,6 +92861,22 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90660
92861
  source_id: string;
90661
92862
  }[];
90662
92863
  };
92864
+ floriday_fill_publish_horizon: {
92865
+ Args: never;
92866
+ Returns: number;
92867
+ };
92868
+ floriday_publish_horizon_weeks: {
92869
+ Args: never;
92870
+ Returns: number;
92871
+ };
92872
+ floriday_recompute_inventory: {
92873
+ Args: {
92874
+ p_connection_id: string;
92875
+ p_force?: boolean;
92876
+ p_product_id: string;
92877
+ };
92878
+ Returns: undefined;
92879
+ };
90663
92880
  format_cart_number: {
90664
92881
  Args: {
90665
92882
  p_pick_date: string;
@@ -91155,6 +93372,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91155
93372
  };
91156
93373
  Returns: number;
91157
93374
  };
93375
+ logistics_cancel_orphan_tasks: {
93376
+ Args: never;
93377
+ Returns: number;
93378
+ };
91158
93379
  logistics_capacity_day_check: {
91159
93380
  Args: {
91160
93381
  p_from?: string;
@@ -91175,6 +93396,25 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91175
93396
  };
91176
93397
  Returns: number;
91177
93398
  };
93399
+ logistics_cart_index: {
93400
+ Args: {
93401
+ p_from?: string;
93402
+ p_to?: string;
93403
+ };
93404
+ Returns: {
93405
+ cart_id: string;
93406
+ cart_index: number;
93407
+ cart_label: string;
93408
+ is_shared: boolean;
93409
+ order_number: string;
93410
+ order_source: string;
93411
+ order_uuid: string;
93412
+ pick_date: string;
93413
+ printed_at: string;
93414
+ shifted: boolean;
93415
+ task_status: string;
93416
+ }[];
93417
+ };
91178
93418
  logistics_check_order_allowed: {
91179
93419
  Args: {
91180
93420
  p_lines: import("../integrations/supabase/types").Json;
@@ -91323,6 +93563,17 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91323
93563
  isSetofReturn: false;
91324
93564
  };
91325
93565
  };
93566
+ logistics_consistency_check: {
93567
+ Args: never;
93568
+ Returns: {
93569
+ agenda_carts: number;
93570
+ control_carts: number;
93571
+ ok: boolean;
93572
+ orphan_tasks: number;
93573
+ pick_date: string;
93574
+ raw_carts: number;
93575
+ }[];
93576
+ };
91326
93577
  logistics_delay_customer_email: {
91327
93578
  Args: {
91328
93579
  p_customer: string;
@@ -91412,6 +93663,16 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91412
93663
  isSetofReturn: false;
91413
93664
  };
91414
93665
  };
93666
+ logistics_floriday_cart_plan: {
93667
+ Args: {
93668
+ p_order_id: string;
93669
+ };
93670
+ Returns: {
93671
+ carrier_type: string;
93672
+ idx: number;
93673
+ packages: number;
93674
+ }[];
93675
+ };
91415
93676
  logistics_floriday_claim_pushes: {
91416
93677
  Args: {
91417
93678
  _lease_seconds?: number;
@@ -91516,6 +93777,25 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91516
93777
  };
91517
93778
  Returns: number;
91518
93779
  };
93780
+ logistics_order_overview: {
93781
+ Args: {
93782
+ p_from?: string;
93783
+ p_to?: string;
93784
+ };
93785
+ Returns: {
93786
+ cart_count: number;
93787
+ customer_name: string;
93788
+ delivery_date: string;
93789
+ order_number: string;
93790
+ order_source: string;
93791
+ order_uuid: string;
93792
+ pick_date: string;
93793
+ plant_count: number;
93794
+ printed_at: string;
93795
+ shifted: boolean;
93796
+ status: string;
93797
+ }[];
93798
+ };
91519
93799
  logistics_order_pick_day: {
91520
93800
  Args: {
91521
93801
  p_order_ref: string;
@@ -91528,6 +93808,22 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91528
93808
  };
91529
93809
  Returns: string;
91530
93810
  };
93811
+ logistics_pick_agenda: {
93812
+ Args: {
93813
+ p_from?: string;
93814
+ p_to?: string;
93815
+ };
93816
+ Returns: {
93817
+ cart_count: number;
93818
+ in_preparation: number;
93819
+ order_count: number;
93820
+ orders: import("../integrations/supabase/types").Json;
93821
+ pick_date: string;
93822
+ plant_count: number;
93823
+ ready: number;
93824
+ shifted_count: number;
93825
+ }[];
93826
+ };
91531
93827
  logistics_pick_email_purpose: {
91532
93828
  Args: never;
91533
93829
  Returns: string;
@@ -91582,6 +93878,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91582
93878
  };
91583
93879
  Returns: undefined;
91584
93880
  };
93881
+ logistics_plan_floriday_order: {
93882
+ Args: {
93883
+ p_buffer_id?: string;
93884
+ p_order_id: string;
93885
+ };
93886
+ Returns: number;
93887
+ };
91585
93888
  logistics_plan_impact_orders: {
91586
93889
  Args: {
91587
93890
  p_order_id: string;
@@ -91687,6 +93990,15 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91687
93990
  };
91688
93991
  Returns: import("../integrations/supabase/types").Json;
91689
93992
  };
93993
+ logistics_resolve_pick_document: {
93994
+ Args: {
93995
+ _is_herprint: boolean;
93996
+ _queue_item_id: string;
93997
+ _session_id: string;
93998
+ _voorbeeld: boolean;
93999
+ };
94000
+ Returns: import("../integrations/supabase/types").Json;
94001
+ };
91690
94002
  logistics_resolve_settings: {
91691
94003
  Args: {
91692
94004
  p_config_id: string;
@@ -92127,6 +94439,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
92127
94439
  };
92128
94440
  pick_enqueue_print_job: {
92129
94441
  Args: {
94442
+ _is_herprint?: boolean;
92130
94443
  _printer_id?: string;
92131
94444
  _queue_item_id: string;
92132
94445
  _session_id?: string;
@@ -92140,6 +94453,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
92140
94453
  };
92141
94454
  Returns: import("../integrations/supabase/types").Json;
92142
94455
  };
94456
+ pick_preview_job: {
94457
+ Args: {
94458
+ _queue_item_id: string;
94459
+ _station_slug: string;
94460
+ };
94461
+ Returns: import("../integrations/supabase/types").Json;
94462
+ };
92143
94463
  pick_print_job_status: {
92144
94464
  Args: {
92145
94465
  _job_id: string;
@@ -92317,6 +94637,24 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
92317
94637
  };
92318
94638
  Returns: undefined;
92319
94639
  };
94640
+ print_preview_toestaan: {
94641
+ Args: {
94642
+ _max?: number;
94643
+ _queue_item_id: string;
94644
+ _station_slug: string;
94645
+ _venster_sec?: number;
94646
+ };
94647
+ Returns: import("../integrations/supabase/types").Json;
94648
+ };
94649
+ print_preview_weiger: {
94650
+ Args: {
94651
+ _code: string;
94652
+ _queue_item_id: string;
94653
+ _reden: string;
94654
+ _station_slug: string;
94655
+ };
94656
+ Returns: undefined;
94657
+ };
92320
94658
  process_logistics_event: {
92321
94659
  Args: {
92322
94660
  p_event_id: string;
@@ -92471,6 +94809,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
92471
94809
  };
92472
94810
  Returns: string;
92473
94811
  };
94812
+ resolve_print_job_printer_id: {
94813
+ Args: {
94814
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
94815
+ };
94816
+ Returns: string;
94817
+ };
92474
94818
  resolve_product_id_for_item: {
92475
94819
  Args: {
92476
94820
  p_product_name: string;
@@ -93062,7 +95406,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
93062
95406
  };
93063
95407
  CompositeTypes: { [_ in never]: never; };
93064
95408
  }, {
93065
- PostgrestVersion: "14.17";
95409
+ PostgrestVersion: "14.5";
93066
95410
  }>;
93067
95411
  userId: string;
93068
95412
  claims: import("@supabase/auth-js").User;