@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
@@ -2852,6 +2852,84 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
2852
2852
  };
2853
2853
  Relationships: [];
2854
2854
  };
2855
+ delivery_notes: {
2856
+ Row: {
2857
+ byte_size: number | null;
2858
+ connection_id: string | null;
2859
+ content_type: string;
2860
+ created_at: string;
2861
+ error_message: string | null;
2862
+ fetched_at: string | null;
2863
+ fulfillment_order_id: string | null;
2864
+ http_status: number | null;
2865
+ id: string;
2866
+ label_code: string | null;
2867
+ letter: string | null;
2868
+ load_carrier_index: number | null;
2869
+ load_carrier_type: string | null;
2870
+ order_id: string | null;
2871
+ order_number: string | null;
2872
+ packages: number | null;
2873
+ source: string;
2874
+ status: string;
2875
+ storage_bucket: string;
2876
+ storage_path: string | null;
2877
+ updated_at: string;
2878
+ };
2879
+ Insert: {
2880
+ byte_size?: number | null;
2881
+ connection_id?: string | null;
2882
+ content_type?: string;
2883
+ created_at?: string;
2884
+ error_message?: string | null;
2885
+ fetched_at?: string | null;
2886
+ fulfillment_order_id?: string | null;
2887
+ http_status?: number | null;
2888
+ id?: string;
2889
+ label_code?: string | null;
2890
+ letter?: string | null;
2891
+ load_carrier_index?: number | null;
2892
+ load_carrier_type?: string | null;
2893
+ order_id?: string | null;
2894
+ order_number?: string | null;
2895
+ packages?: number | null;
2896
+ source?: string;
2897
+ status?: string;
2898
+ storage_bucket?: string;
2899
+ storage_path?: string | null;
2900
+ updated_at?: string;
2901
+ };
2902
+ Update: {
2903
+ byte_size?: number | null;
2904
+ connection_id?: string | null;
2905
+ content_type?: string;
2906
+ created_at?: string;
2907
+ error_message?: string | null;
2908
+ fetched_at?: string | null;
2909
+ fulfillment_order_id?: string | null;
2910
+ http_status?: number | null;
2911
+ id?: string;
2912
+ label_code?: string | null;
2913
+ letter?: string | null;
2914
+ load_carrier_index?: number | null;
2915
+ load_carrier_type?: string | null;
2916
+ order_id?: string | null;
2917
+ order_number?: string | null;
2918
+ packages?: number | null;
2919
+ source?: string;
2920
+ status?: string;
2921
+ storage_bucket?: string;
2922
+ storage_path?: string | null;
2923
+ updated_at?: string;
2924
+ };
2925
+ Relationships: [{
2926
+ foreignKeyName: "delivery_notes_order_id_fkey";
2927
+ columns: ["order_id"];
2928
+ isOneToOne: false;
2929
+ referencedRelation: "orders";
2930
+ referencedColumns: ["id"];
2931
+ }];
2932
+ };
2855
2933
  document_bronregels: {
2856
2934
  Row: {
2857
2935
  bron: string;
@@ -5905,10 +5983,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
5905
5983
  };
5906
5984
  floriday_connections: {
5907
5985
  Row: {
5908
- access_token: string | null;
5909
5986
  api_key: string;
5910
- client_id: string;
5911
- client_secret: string;
5912
5987
  created_at: string;
5913
5988
  customers_endpoint: string | null;
5914
5989
  environment: string;
@@ -5923,10 +5998,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
5923
5998
  updated_at: string;
5924
5999
  };
5925
6000
  Insert: {
5926
- access_token?: string | null;
5927
6001
  api_key: string;
5928
- client_id: string;
5929
- client_secret: string;
5930
6002
  created_at?: string;
5931
6003
  customers_endpoint?: string | null;
5932
6004
  environment: string;
@@ -5941,10 +6013,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
5941
6013
  updated_at?: string;
5942
6014
  };
5943
6015
  Update: {
5944
- access_token?: string | null;
5945
6016
  api_key?: string;
5946
- client_id?: string;
5947
- client_secret?: string;
5948
6017
  created_at?: string;
5949
6018
  customers_endpoint?: string | null;
5950
6019
  environment?: string;
@@ -6028,6 +6097,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
6028
6097
  attempts: number;
6029
6098
  connection_id: string;
6030
6099
  created_at: string;
6100
+ dead_lettered_at: string | null;
6031
6101
  desired_available: boolean | null;
6032
6102
  gateway_attempt_id: string | null;
6033
6103
  id: string;
@@ -6036,9 +6106,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
6036
6106
  locked_by: string | null;
6037
6107
  next_attempt_at: string;
6038
6108
  number_of_pieces: number;
6109
+ product_id: string | null;
6039
6110
  sent_at: string | null;
6040
6111
  status: string;
6112
+ stock_mode: string | null;
6041
6113
  superseded_by: string | null;
6114
+ target_week: number | null;
6115
+ target_year: number | null;
6042
6116
  trade_item_id: string;
6043
6117
  updated_at: string;
6044
6118
  user_id: string;
@@ -6047,6 +6121,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
6047
6121
  attempts?: number;
6048
6122
  connection_id: string;
6049
6123
  created_at?: string;
6124
+ dead_lettered_at?: string | null;
6050
6125
  desired_available?: boolean | null;
6051
6126
  gateway_attempt_id?: string | null;
6052
6127
  id?: string;
@@ -6055,9 +6130,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
6055
6130
  locked_by?: string | null;
6056
6131
  next_attempt_at?: string;
6057
6132
  number_of_pieces?: number;
6133
+ product_id?: string | null;
6058
6134
  sent_at?: string | null;
6059
6135
  status?: string;
6136
+ stock_mode?: string | null;
6060
6137
  superseded_by?: string | null;
6138
+ target_week?: number | null;
6139
+ target_year?: number | null;
6061
6140
  trade_item_id: string;
6062
6141
  updated_at?: string;
6063
6142
  user_id: string;
@@ -6066,6 +6145,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
6066
6145
  attempts?: number;
6067
6146
  connection_id?: string;
6068
6147
  created_at?: string;
6148
+ dead_lettered_at?: string | null;
6069
6149
  desired_available?: boolean | null;
6070
6150
  gateway_attempt_id?: string | null;
6071
6151
  id?: string;
@@ -6074,9 +6154,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
6074
6154
  locked_by?: string | null;
6075
6155
  next_attempt_at?: string;
6076
6156
  number_of_pieces?: number;
6157
+ product_id?: string | null;
6077
6158
  sent_at?: string | null;
6078
6159
  status?: string;
6160
+ stock_mode?: string | null;
6079
6161
  superseded_by?: string | null;
6162
+ target_week?: number | null;
6163
+ target_year?: number | null;
6080
6164
  trade_item_id?: string;
6081
6165
  updated_at?: string;
6082
6166
  user_id?: string;
@@ -6485,6 +6569,87 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
6485
6569
  referencedColumns: ["id"];
6486
6570
  }];
6487
6571
  };
6572
+ floriday_inventory_settings: {
6573
+ Row: {
6574
+ buffer_quantity: number;
6575
+ connection_id: string;
6576
+ created_at: string;
6577
+ desired_availability: boolean;
6578
+ desired_quantity: number;
6579
+ fixed_quantity: number | null;
6580
+ floriday_trade_item_id: string | null;
6581
+ id: string;
6582
+ last_confirmed_at: string | null;
6583
+ last_enqueued_at: string | null;
6584
+ last_published_at: string | null;
6585
+ last_sync_error: string | null;
6586
+ manual_quantity: number | null;
6587
+ maximum_quantity: number | null;
6588
+ product_id: string;
6589
+ quantity_control: string;
6590
+ remote_available: boolean | null;
6591
+ remote_checked_at: string | null;
6592
+ remote_quantity: number | null;
6593
+ stock_mode: string;
6594
+ sync_status: string;
6595
+ updated_at: string;
6596
+ updated_by: string | null;
6597
+ user_id: string;
6598
+ };
6599
+ Insert: {
6600
+ buffer_quantity?: number;
6601
+ connection_id: string;
6602
+ created_at?: string;
6603
+ desired_availability?: boolean;
6604
+ desired_quantity?: number;
6605
+ fixed_quantity?: number | null;
6606
+ floriday_trade_item_id?: string | null;
6607
+ id?: string;
6608
+ last_confirmed_at?: string | null;
6609
+ last_enqueued_at?: string | null;
6610
+ last_published_at?: string | null;
6611
+ last_sync_error?: string | null;
6612
+ manual_quantity?: number | null;
6613
+ maximum_quantity?: number | null;
6614
+ product_id: string;
6615
+ quantity_control?: string;
6616
+ remote_available?: boolean | null;
6617
+ remote_checked_at?: string | null;
6618
+ remote_quantity?: number | null;
6619
+ stock_mode?: string;
6620
+ sync_status?: string;
6621
+ updated_at?: string;
6622
+ updated_by?: string | null;
6623
+ user_id: string;
6624
+ };
6625
+ Update: {
6626
+ buffer_quantity?: number;
6627
+ connection_id?: string;
6628
+ created_at?: string;
6629
+ desired_availability?: boolean;
6630
+ desired_quantity?: number;
6631
+ fixed_quantity?: number | null;
6632
+ floriday_trade_item_id?: string | null;
6633
+ id?: string;
6634
+ last_confirmed_at?: string | null;
6635
+ last_enqueued_at?: string | null;
6636
+ last_published_at?: string | null;
6637
+ last_sync_error?: string | null;
6638
+ manual_quantity?: number | null;
6639
+ maximum_quantity?: number | null;
6640
+ product_id?: string;
6641
+ quantity_control?: string;
6642
+ remote_available?: boolean | null;
6643
+ remote_checked_at?: string | null;
6644
+ remote_quantity?: number | null;
6645
+ stock_mode?: string;
6646
+ sync_status?: string;
6647
+ updated_at?: string;
6648
+ updated_by?: string | null;
6649
+ user_id?: string;
6650
+ };
6651
+ Relationships: [];
6652
+ };
6488
6653
  floriday_invoices_cache: {
6489
6654
  Row: {
6490
6655
  buyer_organization_id: string | null;
@@ -6773,6 +6938,39 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
6773
6938
  };
6774
6939
  Relationships: [];
6775
6940
  };
6941
+ floriday_sales_order_ingest: {
6942
+ Row: {
6943
+ connection_id: string;
6944
+ created_at: string;
6945
+ id: string;
6946
+ impact: import("../integrations/supabase/types").Json;
6947
+ order_status: string | null;
6948
+ order_version: number;
6949
+ processed_at: string;
6950
+ sales_order_id: string;
6951
+ };
6952
+ Insert: {
6953
+ connection_id: string;
6954
+ created_at?: string;
6955
+ id?: string;
6956
+ impact?: import("../integrations/supabase/types").Json;
6957
+ order_status?: string | null;
6958
+ order_version?: number;
6959
+ processed_at?: string;
6960
+ sales_order_id: string;
6961
+ };
6962
+ Update: {
6963
+ connection_id?: string;
6964
+ created_at?: string;
6965
+ id?: string;
6966
+ impact?: import("../integrations/supabase/types").Json;
6967
+ order_status?: string | null;
6968
+ order_version?: number;
6969
+ processed_at?: string;
6970
+ sales_order_id?: string;
6971
+ };
6972
+ Relationships: [];
6973
+ };
6776
6974
  floriday_sales_strategies_cache: {
6777
6975
  Row: {
6778
6976
  connection_id: string;
@@ -6872,6 +7070,39 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
6872
7070
  };
6873
7071
  Relationships: [];
6874
7072
  };
7073
+ floriday_sync_cursors: {
7074
+ Row: {
7075
+ connection_id: string;
7076
+ created_at: string;
7077
+ id: string;
7078
+ last_error: string | null;
7079
+ last_sync_at: string | null;
7080
+ resource_type: string;
7081
+ sequence_number: number;
7082
+ updated_at: string;
7083
+ };
7084
+ Insert: {
7085
+ connection_id: string;
7086
+ created_at?: string;
7087
+ id?: string;
7088
+ last_error?: string | null;
7089
+ last_sync_at?: string | null;
7090
+ resource_type: string;
7091
+ sequence_number?: number;
7092
+ updated_at?: string;
7093
+ };
7094
+ Update: {
7095
+ connection_id?: string;
7096
+ created_at?: string;
7097
+ id?: string;
7098
+ last_error?: string | null;
7099
+ last_sync_at?: string | null;
7100
+ resource_type?: string;
7101
+ sequence_number?: number;
7102
+ updated_at?: string;
7103
+ };
7104
+ Relationships: [];
7105
+ };
6875
7106
  floriday_sync_state: {
6876
7107
  Row: {
6877
7108
  connection_id: string;
@@ -7562,6 +7793,42 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
7562
7793
  };
7563
7794
  Relationships: [];
7564
7795
  };
7796
+ inventory_stock_snapshots: {
7797
+ Row: {
7798
+ connection_id: string;
7799
+ created_at: string;
7800
+ erp_available_quantity: number;
7801
+ floriday_desired_quantity: number;
7802
+ floriday_remote_quantity: number | null;
7803
+ granularity: string;
7804
+ id: string;
7805
+ snapshot_at: string;
7806
+ user_id: string | null;
7807
+ };
7808
+ Insert: {
7809
+ connection_id: string;
7810
+ created_at?: string;
7811
+ erp_available_quantity?: number;
7812
+ floriday_desired_quantity?: number;
7813
+ floriday_remote_quantity?: number | null;
7814
+ granularity?: string;
7815
+ id?: string;
7816
+ snapshot_at?: string;
7817
+ user_id?: string | null;
7818
+ };
7819
+ Update: {
7820
+ connection_id?: string;
7821
+ created_at?: string;
7822
+ erp_available_quantity?: number;
7823
+ floriday_desired_quantity?: number;
7824
+ floriday_remote_quantity?: number | null;
7825
+ granularity?: string;
7826
+ id?: string;
7827
+ snapshot_at?: string;
7828
+ user_id?: string | null;
7829
+ };
7830
+ Relationships: [];
7831
+ };
7565
7832
  invoice_items: {
7566
7833
  Row: {
7567
7834
  created_at: string;
@@ -13577,6 +13844,39 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13577
13844
  };
13578
13845
  Relationships: [];
13579
13846
  };
13847
+ print_dedupe_events: {
13848
+ Row: {
13849
+ bestaande_job_id: string | null;
13850
+ created_at: string;
13851
+ detail: string | null;
13852
+ documentnaam: string | null;
13853
+ documenttype: string | null;
13854
+ id: string;
13855
+ idempotentie_sleutel: string;
13856
+ reden: string;
13857
+ };
13858
+ Insert: {
13859
+ bestaande_job_id?: string | null;
13860
+ created_at?: string;
13861
+ detail?: string | null;
13862
+ documentnaam?: string | null;
13863
+ documenttype?: string | null;
13864
+ id?: string;
13865
+ idempotentie_sleutel: string;
13866
+ reden: string;
13867
+ };
13868
+ Update: {
13869
+ bestaande_job_id?: string | null;
13870
+ created_at?: string;
13871
+ detail?: string | null;
13872
+ documentnaam?: string | null;
13873
+ documenttype?: string | null;
13874
+ id?: string;
13875
+ idempotentie_sleutel?: string;
13876
+ reden?: string;
13877
+ };
13878
+ Relationships: [];
13879
+ };
13580
13880
  print_job_logs: {
13581
13881
  Row: {
13582
13882
  created_at: string;
@@ -13627,6 +13927,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13627
13927
  is_herprint: boolean;
13628
13928
  kopieen: number;
13629
13929
  layout_id: string | null;
13930
+ lokaal_opgeslagen_op: string | null;
13931
+ lokale_pdf_fout: string | null;
13932
+ lokale_pdf_status: string | null;
13630
13933
  opgepakt_op: string | null;
13631
13934
  paginas: number;
13632
13935
  payload: import("../integrations/supabase/types").Json;
@@ -13635,6 +13938,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13635
13938
  pogingen: number;
13636
13939
  printer_id: string | null;
13637
13940
  render_html: string | null;
13941
+ resultaat_pdf_base64: string | null;
13638
13942
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13639
13943
  updated_at: string;
13640
13944
  volgende_poging: string | null;
@@ -13659,6 +13963,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13659
13963
  is_herprint?: boolean;
13660
13964
  kopieen?: number;
13661
13965
  layout_id?: string | null;
13966
+ lokaal_opgeslagen_op?: string | null;
13967
+ lokale_pdf_fout?: string | null;
13968
+ lokale_pdf_status?: string | null;
13662
13969
  opgepakt_op?: string | null;
13663
13970
  paginas?: number;
13664
13971
  payload?: import("../integrations/supabase/types").Json;
@@ -13667,6 +13974,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13667
13974
  pogingen?: number;
13668
13975
  printer_id?: string | null;
13669
13976
  render_html?: string | null;
13977
+ resultaat_pdf_base64?: string | null;
13670
13978
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13671
13979
  updated_at?: string;
13672
13980
  volgende_poging?: string | null;
@@ -13691,6 +13999,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13691
13999
  is_herprint?: boolean;
13692
14000
  kopieen?: number;
13693
14001
  layout_id?: string | null;
14002
+ lokaal_opgeslagen_op?: string | null;
14003
+ lokale_pdf_fout?: string | null;
14004
+ lokale_pdf_status?: string | null;
13694
14005
  opgepakt_op?: string | null;
13695
14006
  paginas?: number;
13696
14007
  payload?: import("../integrations/supabase/types").Json;
@@ -13699,6 +14010,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13699
14010
  pogingen?: number;
13700
14011
  printer_id?: string | null;
13701
14012
  render_html?: string | null;
14013
+ resultaat_pdf_base64?: string | null;
13702
14014
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13703
14015
  updated_at?: string;
13704
14016
  volgende_poging?: string | null;
@@ -13817,6 +14129,39 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13817
14129
  };
13818
14130
  Relationships: [];
13819
14131
  };
14132
+ print_preview_events: {
14133
+ Row: {
14134
+ code: string | null;
14135
+ created_at: string;
14136
+ detail: import("../integrations/supabase/types").Json;
14137
+ id: string;
14138
+ queue_item_id: string | null;
14139
+ reden: string | null;
14140
+ station_slug: string | null;
14141
+ uitkomst: string;
14142
+ };
14143
+ Insert: {
14144
+ code?: string | null;
14145
+ created_at?: string;
14146
+ detail?: import("../integrations/supabase/types").Json;
14147
+ id?: string;
14148
+ queue_item_id?: string | null;
14149
+ reden?: string | null;
14150
+ station_slug?: string | null;
14151
+ uitkomst?: string;
14152
+ };
14153
+ Update: {
14154
+ code?: string | null;
14155
+ created_at?: string;
14156
+ detail?: import("../integrations/supabase/types").Json;
14157
+ id?: string;
14158
+ queue_item_id?: string | null;
14159
+ reden?: string | null;
14160
+ station_slug?: string | null;
14161
+ uitkomst?: string;
14162
+ };
14163
+ Relationships: [];
14164
+ };
13820
14165
  print_queue_runners: {
13821
14166
  Row: {
13822
14167
  actief: boolean;
@@ -14056,6 +14401,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
14056
14401
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14057
14402
  online: boolean;
14058
14403
  papierformaat: string;
14404
+ pdf_map: string | null;
14059
14405
  poort: number | null;
14060
14406
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14061
14407
  systeemnaam: string;
@@ -14081,6 +14427,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
14081
14427
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14082
14428
  online?: boolean;
14083
14429
  papierformaat?: string;
14430
+ pdf_map?: string | null;
14084
14431
  poort?: number | null;
14085
14432
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14086
14433
  systeemnaam?: string;
@@ -14106,6 +14453,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
14106
14453
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14107
14454
  online?: boolean;
14108
14455
  papierformaat?: string;
14456
+ pdf_map?: string | null;
14109
14457
  poort?: number | null;
14110
14458
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14111
14459
  systeemnaam?: string;
@@ -16675,6 +17023,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16675
17023
  };
16676
17024
  trade_item_stock: {
16677
17025
  Row: {
17026
+ change_source: string;
16678
17027
  connection_id: string;
16679
17028
  created_at: string;
16680
17029
  id: string;
@@ -16688,6 +17037,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16688
17037
  user_id: string;
16689
17038
  };
16690
17039
  Insert: {
17040
+ change_source?: string;
16691
17041
  connection_id: string;
16692
17042
  created_at?: string;
16693
17043
  id?: string;
@@ -16701,6 +17051,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16701
17051
  user_id: string;
16702
17052
  };
16703
17053
  Update: {
17054
+ change_source?: string;
16704
17055
  connection_id?: string;
16705
17056
  created_at?: string;
16706
17057
  id?: string;
@@ -20301,6 +20652,18 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20301
20652
  Args: never;
20302
20653
  Returns: number;
20303
20654
  };
20655
+ calculate_floriday_desired_stock: {
20656
+ Args: {
20657
+ p_connection_id: string;
20658
+ p_product_id: string;
20659
+ };
20660
+ Returns: {
20661
+ desired_availability: boolean;
20662
+ desired_quantity: number;
20663
+ erp_available: number;
20664
+ stock_mode: string;
20665
+ }[];
20666
+ };
20304
20667
  calculate_layer_stock: {
20305
20668
  Args: {
20306
20669
  p_product_id: string;
@@ -20362,6 +20725,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20362
20725
  is_herprint: boolean;
20363
20726
  kopieen: number;
20364
20727
  layout_id: string | null;
20728
+ lokaal_opgeslagen_op: string | null;
20729
+ lokale_pdf_fout: string | null;
20730
+ lokale_pdf_status: string | null;
20365
20731
  opgepakt_op: string | null;
20366
20732
  paginas: number;
20367
20733
  payload: import("../integrations/supabase/types").Json;
@@ -20370,6 +20736,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20370
20736
  pogingen: number;
20371
20737
  printer_id: string | null;
20372
20738
  render_html: string | null;
20739
+ resultaat_pdf_base64: string | null;
20373
20740
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20374
20741
  updated_at: string;
20375
20742
  volgende_poging: string | null;
@@ -20391,6 +20758,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20391
20758
  attempts: number;
20392
20759
  connection_id: string;
20393
20760
  created_at: string;
20761
+ dead_lettered_at: string | null;
20394
20762
  desired_available: boolean | null;
20395
20763
  gateway_attempt_id: string | null;
20396
20764
  id: string;
@@ -20399,9 +20767,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20399
20767
  locked_by: string | null;
20400
20768
  next_attempt_at: string;
20401
20769
  number_of_pieces: number;
20770
+ product_id: string | null;
20402
20771
  sent_at: string | null;
20403
20772
  status: string;
20773
+ stock_mode: string | null;
20404
20774
  superseded_by: string | null;
20775
+ target_week: number | null;
20776
+ target_year: number | null;
20405
20777
  trade_item_id: string;
20406
20778
  updated_at: string;
20407
20779
  user_id: string;
@@ -20461,6 +20833,53 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20461
20833
  isSetofReturn: true;
20462
20834
  };
20463
20835
  };
20836
+ claim_pdf_print_jobs: {
20837
+ Args: {
20838
+ _max?: number;
20839
+ };
20840
+ Returns: {
20841
+ agent_id: string | null;
20842
+ bron_job_id: string | null;
20843
+ created_at: string;
20844
+ documentnaam: string;
20845
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20846
+ extern_job_id: string | null;
20847
+ foutmelding: string | null;
20848
+ gebruiker_id: string | null;
20849
+ gebruiker_naam: string;
20850
+ gebruikte_bron: string | null;
20851
+ gebruikte_layout_id: string | null;
20852
+ gestart_op: string | null;
20853
+ herkomst: string | null;
20854
+ id: string;
20855
+ idempotentie_sleutel: string | null;
20856
+ is_herprint: boolean;
20857
+ kopieen: number;
20858
+ layout_id: string | null;
20859
+ lokaal_opgeslagen_op: string | null;
20860
+ lokale_pdf_fout: string | null;
20861
+ lokale_pdf_status: string | null;
20862
+ opgepakt_op: string | null;
20863
+ paginas: number;
20864
+ payload: import("../integrations/supabase/types").Json;
20865
+ pdf_base64: string | null;
20866
+ pdf_url: string | null;
20867
+ pogingen: number;
20868
+ printer_id: string | null;
20869
+ render_html: string | null;
20870
+ resultaat_pdf_base64: string | null;
20871
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20872
+ updated_at: string;
20873
+ volgende_poging: string | null;
20874
+ voltooid_op: string | null;
20875
+ }[];
20876
+ SetofOptions: {
20877
+ from: "*";
20878
+ to: "print_jobs";
20879
+ isOneToOne: false;
20880
+ isSetofReturn: true;
20881
+ };
20882
+ };
20464
20883
  claim_print_jobs: {
20465
20884
  Args: {
20466
20885
  _agent_id: string;
@@ -20485,6 +20904,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20485
20904
  is_herprint: boolean;
20486
20905
  kopieen: number;
20487
20906
  layout_id: string | null;
20907
+ lokaal_opgeslagen_op: string | null;
20908
+ lokale_pdf_fout: string | null;
20909
+ lokale_pdf_status: string | null;
20488
20910
  opgepakt_op: string | null;
20489
20911
  paginas: number;
20490
20912
  payload: import("../integrations/supabase/types").Json;
@@ -20493,6 +20915,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20493
20915
  pogingen: number;
20494
20916
  printer_id: string | null;
20495
20917
  render_html: string | null;
20918
+ resultaat_pdf_base64: string | null;
20496
20919
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20497
20920
  updated_at: string;
20498
20921
  volgende_poging: string | null;
@@ -20633,6 +21056,8 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20633
21056
  order_id: string;
20634
21057
  order_source: string;
20635
21058
  pick_date: string;
21059
+ printed_at: string;
21060
+ printed_today: boolean;
20636
21061
  status: string;
20637
21062
  }[];
20638
21063
  };
@@ -20829,6 +21254,24 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20829
21254
  };
20830
21255
  Returns: string;
20831
21256
  };
21257
+ floriday_capture_stock_snapshot: {
21258
+ Args: never;
21259
+ Returns: number;
21260
+ };
21261
+ floriday_cleanup_stock_queue_v2: {
21262
+ Args: never;
21263
+ Returns: undefined;
21264
+ };
21265
+ floriday_compact_stock_snapshots: {
21266
+ Args: never;
21267
+ Returns: undefined;
21268
+ };
21269
+ floriday_default_owner: {
21270
+ Args: {
21271
+ p_connection_id: string;
21272
+ };
21273
+ Returns: string;
21274
+ };
20832
21275
  floriday_effective_price: {
20833
21276
  Args: {
20834
21277
  _buyer_id: string;
@@ -20846,6 +21289,22 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20846
21289
  source_id: string;
20847
21290
  }[];
20848
21291
  };
21292
+ floriday_fill_publish_horizon: {
21293
+ Args: never;
21294
+ Returns: number;
21295
+ };
21296
+ floriday_publish_horizon_weeks: {
21297
+ Args: never;
21298
+ Returns: number;
21299
+ };
21300
+ floriday_recompute_inventory: {
21301
+ Args: {
21302
+ p_connection_id: string;
21303
+ p_force?: boolean;
21304
+ p_product_id: string;
21305
+ };
21306
+ Returns: undefined;
21307
+ };
20849
21308
  format_cart_number: {
20850
21309
  Args: {
20851
21310
  p_pick_date: string;
@@ -21341,6 +21800,10 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21341
21800
  };
21342
21801
  Returns: number;
21343
21802
  };
21803
+ logistics_cancel_orphan_tasks: {
21804
+ Args: never;
21805
+ Returns: number;
21806
+ };
21344
21807
  logistics_capacity_day_check: {
21345
21808
  Args: {
21346
21809
  p_from?: string;
@@ -21361,6 +21824,25 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21361
21824
  };
21362
21825
  Returns: number;
21363
21826
  };
21827
+ logistics_cart_index: {
21828
+ Args: {
21829
+ p_from?: string;
21830
+ p_to?: string;
21831
+ };
21832
+ Returns: {
21833
+ cart_id: string;
21834
+ cart_index: number;
21835
+ cart_label: string;
21836
+ is_shared: boolean;
21837
+ order_number: string;
21838
+ order_source: string;
21839
+ order_uuid: string;
21840
+ pick_date: string;
21841
+ printed_at: string;
21842
+ shifted: boolean;
21843
+ task_status: string;
21844
+ }[];
21845
+ };
21364
21846
  logistics_check_order_allowed: {
21365
21847
  Args: {
21366
21848
  p_lines: import("../integrations/supabase/types").Json;
@@ -21509,6 +21991,17 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21509
21991
  isSetofReturn: false;
21510
21992
  };
21511
21993
  };
21994
+ logistics_consistency_check: {
21995
+ Args: never;
21996
+ Returns: {
21997
+ agenda_carts: number;
21998
+ control_carts: number;
21999
+ ok: boolean;
22000
+ orphan_tasks: number;
22001
+ pick_date: string;
22002
+ raw_carts: number;
22003
+ }[];
22004
+ };
21512
22005
  logistics_delay_customer_email: {
21513
22006
  Args: {
21514
22007
  p_customer: string;
@@ -21598,6 +22091,16 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21598
22091
  isSetofReturn: false;
21599
22092
  };
21600
22093
  };
22094
+ logistics_floriday_cart_plan: {
22095
+ Args: {
22096
+ p_order_id: string;
22097
+ };
22098
+ Returns: {
22099
+ carrier_type: string;
22100
+ idx: number;
22101
+ packages: number;
22102
+ }[];
22103
+ };
21601
22104
  logistics_floriday_claim_pushes: {
21602
22105
  Args: {
21603
22106
  _lease_seconds?: number;
@@ -21702,6 +22205,25 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21702
22205
  };
21703
22206
  Returns: number;
21704
22207
  };
22208
+ logistics_order_overview: {
22209
+ Args: {
22210
+ p_from?: string;
22211
+ p_to?: string;
22212
+ };
22213
+ Returns: {
22214
+ cart_count: number;
22215
+ customer_name: string;
22216
+ delivery_date: string;
22217
+ order_number: string;
22218
+ order_source: string;
22219
+ order_uuid: string;
22220
+ pick_date: string;
22221
+ plant_count: number;
22222
+ printed_at: string;
22223
+ shifted: boolean;
22224
+ status: string;
22225
+ }[];
22226
+ };
21705
22227
  logistics_order_pick_day: {
21706
22228
  Args: {
21707
22229
  p_order_ref: string;
@@ -21714,6 +22236,22 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21714
22236
  };
21715
22237
  Returns: string;
21716
22238
  };
22239
+ logistics_pick_agenda: {
22240
+ Args: {
22241
+ p_from?: string;
22242
+ p_to?: string;
22243
+ };
22244
+ Returns: {
22245
+ cart_count: number;
22246
+ in_preparation: number;
22247
+ order_count: number;
22248
+ orders: import("../integrations/supabase/types").Json;
22249
+ pick_date: string;
22250
+ plant_count: number;
22251
+ ready: number;
22252
+ shifted_count: number;
22253
+ }[];
22254
+ };
21717
22255
  logistics_pick_email_purpose: {
21718
22256
  Args: never;
21719
22257
  Returns: string;
@@ -21768,6 +22306,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21768
22306
  };
21769
22307
  Returns: undefined;
21770
22308
  };
22309
+ logistics_plan_floriday_order: {
22310
+ Args: {
22311
+ p_buffer_id?: string;
22312
+ p_order_id: string;
22313
+ };
22314
+ Returns: number;
22315
+ };
21771
22316
  logistics_plan_impact_orders: {
21772
22317
  Args: {
21773
22318
  p_order_id: string;
@@ -21873,6 +22418,15 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21873
22418
  };
21874
22419
  Returns: import("../integrations/supabase/types").Json;
21875
22420
  };
22421
+ logistics_resolve_pick_document: {
22422
+ Args: {
22423
+ _is_herprint: boolean;
22424
+ _queue_item_id: string;
22425
+ _session_id: string;
22426
+ _voorbeeld: boolean;
22427
+ };
22428
+ Returns: import("../integrations/supabase/types").Json;
22429
+ };
21876
22430
  logistics_resolve_settings: {
21877
22431
  Args: {
21878
22432
  p_config_id: string;
@@ -22313,6 +22867,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22313
22867
  };
22314
22868
  pick_enqueue_print_job: {
22315
22869
  Args: {
22870
+ _is_herprint?: boolean;
22316
22871
  _printer_id?: string;
22317
22872
  _queue_item_id: string;
22318
22873
  _session_id?: string;
@@ -22326,6 +22881,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22326
22881
  };
22327
22882
  Returns: import("../integrations/supabase/types").Json;
22328
22883
  };
22884
+ pick_preview_job: {
22885
+ Args: {
22886
+ _queue_item_id: string;
22887
+ _station_slug: string;
22888
+ };
22889
+ Returns: import("../integrations/supabase/types").Json;
22890
+ };
22329
22891
  pick_print_job_status: {
22330
22892
  Args: {
22331
22893
  _job_id: string;
@@ -22503,6 +23065,24 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22503
23065
  };
22504
23066
  Returns: undefined;
22505
23067
  };
23068
+ print_preview_toestaan: {
23069
+ Args: {
23070
+ _max?: number;
23071
+ _queue_item_id: string;
23072
+ _station_slug: string;
23073
+ _venster_sec?: number;
23074
+ };
23075
+ Returns: import("../integrations/supabase/types").Json;
23076
+ };
23077
+ print_preview_weiger: {
23078
+ Args: {
23079
+ _code: string;
23080
+ _queue_item_id: string;
23081
+ _reden: string;
23082
+ _station_slug: string;
23083
+ };
23084
+ Returns: undefined;
23085
+ };
22506
23086
  process_logistics_event: {
22507
23087
  Args: {
22508
23088
  p_event_id: string;
@@ -22657,6 +23237,12 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22657
23237
  };
22658
23238
  Returns: string;
22659
23239
  };
23240
+ resolve_print_job_printer_id: {
23241
+ Args: {
23242
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
23243
+ };
23244
+ Returns: string;
23245
+ };
22660
23246
  resolve_product_id_for_item: {
22661
23247
  Args: {
22662
23248
  p_product_name: string;
@@ -23248,7 +23834,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
23248
23834
  };
23249
23835
  CompositeTypes: { [_ in never]: never; };
23250
23836
  }, {
23251
- PostgrestVersion: "14.17";
23837
+ PostgrestVersion: "14.5";
23252
23838
  }>;
23253
23839
  userId: string;
23254
23840
  claims: import("@supabase/auth-js").User;
@@ -26106,6 +26692,84 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
26106
26692
  };
26107
26693
  Relationships: [];
26108
26694
  };
26695
+ delivery_notes: {
26696
+ Row: {
26697
+ byte_size: number | null;
26698
+ connection_id: string | null;
26699
+ content_type: string;
26700
+ created_at: string;
26701
+ error_message: string | null;
26702
+ fetched_at: string | null;
26703
+ fulfillment_order_id: string | null;
26704
+ http_status: number | null;
26705
+ id: string;
26706
+ label_code: string | null;
26707
+ letter: string | null;
26708
+ load_carrier_index: number | null;
26709
+ load_carrier_type: string | null;
26710
+ order_id: string | null;
26711
+ order_number: string | null;
26712
+ packages: number | null;
26713
+ source: string;
26714
+ status: string;
26715
+ storage_bucket: string;
26716
+ storage_path: string | null;
26717
+ updated_at: string;
26718
+ };
26719
+ Insert: {
26720
+ byte_size?: number | null;
26721
+ connection_id?: string | null;
26722
+ content_type?: string;
26723
+ created_at?: string;
26724
+ error_message?: string | null;
26725
+ fetched_at?: string | null;
26726
+ fulfillment_order_id?: string | null;
26727
+ http_status?: number | null;
26728
+ id?: string;
26729
+ label_code?: string | null;
26730
+ letter?: string | null;
26731
+ load_carrier_index?: number | null;
26732
+ load_carrier_type?: string | null;
26733
+ order_id?: string | null;
26734
+ order_number?: string | null;
26735
+ packages?: number | null;
26736
+ source?: string;
26737
+ status?: string;
26738
+ storage_bucket?: string;
26739
+ storage_path?: string | null;
26740
+ updated_at?: string;
26741
+ };
26742
+ Update: {
26743
+ byte_size?: number | null;
26744
+ connection_id?: string | null;
26745
+ content_type?: string;
26746
+ created_at?: string;
26747
+ error_message?: string | null;
26748
+ fetched_at?: string | null;
26749
+ fulfillment_order_id?: string | null;
26750
+ http_status?: number | null;
26751
+ id?: string;
26752
+ label_code?: string | null;
26753
+ letter?: string | null;
26754
+ load_carrier_index?: number | null;
26755
+ load_carrier_type?: string | null;
26756
+ order_id?: string | null;
26757
+ order_number?: string | null;
26758
+ packages?: number | null;
26759
+ source?: string;
26760
+ status?: string;
26761
+ storage_bucket?: string;
26762
+ storage_path?: string | null;
26763
+ updated_at?: string;
26764
+ };
26765
+ Relationships: [{
26766
+ foreignKeyName: "delivery_notes_order_id_fkey";
26767
+ columns: ["order_id"];
26768
+ isOneToOne: false;
26769
+ referencedRelation: "orders";
26770
+ referencedColumns: ["id"];
26771
+ }];
26772
+ };
26109
26773
  document_bronregels: {
26110
26774
  Row: {
26111
26775
  bron: string;
@@ -29159,10 +29823,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29159
29823
  };
29160
29824
  floriday_connections: {
29161
29825
  Row: {
29162
- access_token: string | null;
29163
29826
  api_key: string;
29164
- client_id: string;
29165
- client_secret: string;
29166
29827
  created_at: string;
29167
29828
  customers_endpoint: string | null;
29168
29829
  environment: string;
@@ -29177,10 +29838,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29177
29838
  updated_at: string;
29178
29839
  };
29179
29840
  Insert: {
29180
- access_token?: string | null;
29181
29841
  api_key: string;
29182
- client_id: string;
29183
- client_secret: string;
29184
29842
  created_at?: string;
29185
29843
  customers_endpoint?: string | null;
29186
29844
  environment: string;
@@ -29195,10 +29853,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29195
29853
  updated_at?: string;
29196
29854
  };
29197
29855
  Update: {
29198
- access_token?: string | null;
29199
29856
  api_key?: string;
29200
- client_id?: string;
29201
- client_secret?: string;
29202
29857
  created_at?: string;
29203
29858
  customers_endpoint?: string | null;
29204
29859
  environment?: string;
@@ -29282,6 +29937,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29282
29937
  attempts: number;
29283
29938
  connection_id: string;
29284
29939
  created_at: string;
29940
+ dead_lettered_at: string | null;
29285
29941
  desired_available: boolean | null;
29286
29942
  gateway_attempt_id: string | null;
29287
29943
  id: string;
@@ -29290,9 +29946,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29290
29946
  locked_by: string | null;
29291
29947
  next_attempt_at: string;
29292
29948
  number_of_pieces: number;
29949
+ product_id: string | null;
29293
29950
  sent_at: string | null;
29294
29951
  status: string;
29952
+ stock_mode: string | null;
29295
29953
  superseded_by: string | null;
29954
+ target_week: number | null;
29955
+ target_year: number | null;
29296
29956
  trade_item_id: string;
29297
29957
  updated_at: string;
29298
29958
  user_id: string;
@@ -29301,6 +29961,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29301
29961
  attempts?: number;
29302
29962
  connection_id: string;
29303
29963
  created_at?: string;
29964
+ dead_lettered_at?: string | null;
29304
29965
  desired_available?: boolean | null;
29305
29966
  gateway_attempt_id?: string | null;
29306
29967
  id?: string;
@@ -29309,9 +29970,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29309
29970
  locked_by?: string | null;
29310
29971
  next_attempt_at?: string;
29311
29972
  number_of_pieces?: number;
29973
+ product_id?: string | null;
29312
29974
  sent_at?: string | null;
29313
29975
  status?: string;
29976
+ stock_mode?: string | null;
29314
29977
  superseded_by?: string | null;
29978
+ target_week?: number | null;
29979
+ target_year?: number | null;
29315
29980
  trade_item_id: string;
29316
29981
  updated_at?: string;
29317
29982
  user_id: string;
@@ -29320,6 +29985,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29320
29985
  attempts?: number;
29321
29986
  connection_id?: string;
29322
29987
  created_at?: string;
29988
+ dead_lettered_at?: string | null;
29323
29989
  desired_available?: boolean | null;
29324
29990
  gateway_attempt_id?: string | null;
29325
29991
  id?: string;
@@ -29328,9 +29994,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29328
29994
  locked_by?: string | null;
29329
29995
  next_attempt_at?: string;
29330
29996
  number_of_pieces?: number;
29997
+ product_id?: string | null;
29331
29998
  sent_at?: string | null;
29332
29999
  status?: string;
30000
+ stock_mode?: string | null;
29333
30001
  superseded_by?: string | null;
30002
+ target_week?: number | null;
30003
+ target_year?: number | null;
29334
30004
  trade_item_id?: string;
29335
30005
  updated_at?: string;
29336
30006
  user_id?: string;
@@ -29739,6 +30409,87 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29739
30409
  referencedColumns: ["id"];
29740
30410
  }];
29741
30411
  };
30412
+ floriday_inventory_settings: {
30413
+ Row: {
30414
+ buffer_quantity: number;
30415
+ connection_id: string;
30416
+ created_at: string;
30417
+ desired_availability: boolean;
30418
+ desired_quantity: number;
30419
+ fixed_quantity: number | null;
30420
+ floriday_trade_item_id: string | null;
30421
+ id: string;
30422
+ last_confirmed_at: string | null;
30423
+ last_enqueued_at: string | null;
30424
+ last_published_at: string | null;
30425
+ last_sync_error: string | null;
30426
+ manual_quantity: number | null;
30427
+ maximum_quantity: number | null;
30428
+ product_id: string;
30429
+ quantity_control: string;
30430
+ remote_available: boolean | null;
30431
+ remote_checked_at: string | null;
30432
+ remote_quantity: number | null;
30433
+ stock_mode: string;
30434
+ sync_status: string;
30435
+ updated_at: string;
30436
+ updated_by: string | null;
30437
+ user_id: string;
30438
+ };
30439
+ Insert: {
30440
+ buffer_quantity?: number;
30441
+ connection_id: string;
30442
+ created_at?: string;
30443
+ desired_availability?: boolean;
30444
+ desired_quantity?: number;
30445
+ fixed_quantity?: number | null;
30446
+ floriday_trade_item_id?: string | null;
30447
+ id?: string;
30448
+ last_confirmed_at?: string | null;
30449
+ last_enqueued_at?: string | null;
30450
+ last_published_at?: string | null;
30451
+ last_sync_error?: string | null;
30452
+ manual_quantity?: number | null;
30453
+ maximum_quantity?: number | null;
30454
+ product_id: string;
30455
+ quantity_control?: string;
30456
+ remote_available?: boolean | null;
30457
+ remote_checked_at?: string | null;
30458
+ remote_quantity?: number | null;
30459
+ stock_mode?: string;
30460
+ sync_status?: string;
30461
+ updated_at?: string;
30462
+ updated_by?: string | null;
30463
+ user_id: string;
30464
+ };
30465
+ Update: {
30466
+ buffer_quantity?: number;
30467
+ connection_id?: string;
30468
+ created_at?: string;
30469
+ desired_availability?: boolean;
30470
+ desired_quantity?: number;
30471
+ fixed_quantity?: number | null;
30472
+ floriday_trade_item_id?: string | null;
30473
+ id?: string;
30474
+ last_confirmed_at?: string | null;
30475
+ last_enqueued_at?: string | null;
30476
+ last_published_at?: string | null;
30477
+ last_sync_error?: string | null;
30478
+ manual_quantity?: number | null;
30479
+ maximum_quantity?: number | null;
30480
+ product_id?: string;
30481
+ quantity_control?: string;
30482
+ remote_available?: boolean | null;
30483
+ remote_checked_at?: string | null;
30484
+ remote_quantity?: number | null;
30485
+ stock_mode?: string;
30486
+ sync_status?: string;
30487
+ updated_at?: string;
30488
+ updated_by?: string | null;
30489
+ user_id?: string;
30490
+ };
30491
+ Relationships: [];
30492
+ };
29742
30493
  floriday_invoices_cache: {
29743
30494
  Row: {
29744
30495
  buyer_organization_id: string | null;
@@ -30027,6 +30778,39 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
30027
30778
  };
30028
30779
  Relationships: [];
30029
30780
  };
30781
+ floriday_sales_order_ingest: {
30782
+ Row: {
30783
+ connection_id: string;
30784
+ created_at: string;
30785
+ id: string;
30786
+ impact: import("../integrations/supabase/types").Json;
30787
+ order_status: string | null;
30788
+ order_version: number;
30789
+ processed_at: string;
30790
+ sales_order_id: string;
30791
+ };
30792
+ Insert: {
30793
+ connection_id: string;
30794
+ created_at?: string;
30795
+ id?: string;
30796
+ impact?: import("../integrations/supabase/types").Json;
30797
+ order_status?: string | null;
30798
+ order_version?: number;
30799
+ processed_at?: string;
30800
+ sales_order_id: string;
30801
+ };
30802
+ Update: {
30803
+ connection_id?: string;
30804
+ created_at?: string;
30805
+ id?: string;
30806
+ impact?: import("../integrations/supabase/types").Json;
30807
+ order_status?: string | null;
30808
+ order_version?: number;
30809
+ processed_at?: string;
30810
+ sales_order_id?: string;
30811
+ };
30812
+ Relationships: [];
30813
+ };
30030
30814
  floriday_sales_strategies_cache: {
30031
30815
  Row: {
30032
30816
  connection_id: string;
@@ -30126,6 +30910,39 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
30126
30910
  };
30127
30911
  Relationships: [];
30128
30912
  };
30913
+ floriday_sync_cursors: {
30914
+ Row: {
30915
+ connection_id: string;
30916
+ created_at: string;
30917
+ id: string;
30918
+ last_error: string | null;
30919
+ last_sync_at: string | null;
30920
+ resource_type: string;
30921
+ sequence_number: number;
30922
+ updated_at: string;
30923
+ };
30924
+ Insert: {
30925
+ connection_id: string;
30926
+ created_at?: string;
30927
+ id?: string;
30928
+ last_error?: string | null;
30929
+ last_sync_at?: string | null;
30930
+ resource_type: string;
30931
+ sequence_number?: number;
30932
+ updated_at?: string;
30933
+ };
30934
+ Update: {
30935
+ connection_id?: string;
30936
+ created_at?: string;
30937
+ id?: string;
30938
+ last_error?: string | null;
30939
+ last_sync_at?: string | null;
30940
+ resource_type?: string;
30941
+ sequence_number?: number;
30942
+ updated_at?: string;
30943
+ };
30944
+ Relationships: [];
30945
+ };
30129
30946
  floriday_sync_state: {
30130
30947
  Row: {
30131
30948
  connection_id: string;
@@ -30816,6 +31633,42 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
30816
31633
  };
30817
31634
  Relationships: [];
30818
31635
  };
31636
+ inventory_stock_snapshots: {
31637
+ Row: {
31638
+ connection_id: string;
31639
+ created_at: string;
31640
+ erp_available_quantity: number;
31641
+ floriday_desired_quantity: number;
31642
+ floriday_remote_quantity: number | null;
31643
+ granularity: string;
31644
+ id: string;
31645
+ snapshot_at: string;
31646
+ user_id: string | null;
31647
+ };
31648
+ Insert: {
31649
+ connection_id: string;
31650
+ created_at?: string;
31651
+ erp_available_quantity?: number;
31652
+ floriday_desired_quantity?: number;
31653
+ floriday_remote_quantity?: number | null;
31654
+ granularity?: string;
31655
+ id?: string;
31656
+ snapshot_at?: string;
31657
+ user_id?: string | null;
31658
+ };
31659
+ Update: {
31660
+ connection_id?: string;
31661
+ created_at?: string;
31662
+ erp_available_quantity?: number;
31663
+ floriday_desired_quantity?: number;
31664
+ floriday_remote_quantity?: number | null;
31665
+ granularity?: string;
31666
+ id?: string;
31667
+ snapshot_at?: string;
31668
+ user_id?: string | null;
31669
+ };
31670
+ Relationships: [];
31671
+ };
30819
31672
  invoice_items: {
30820
31673
  Row: {
30821
31674
  created_at: string;
@@ -36831,6 +37684,39 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36831
37684
  };
36832
37685
  Relationships: [];
36833
37686
  };
37687
+ print_dedupe_events: {
37688
+ Row: {
37689
+ bestaande_job_id: string | null;
37690
+ created_at: string;
37691
+ detail: string | null;
37692
+ documentnaam: string | null;
37693
+ documenttype: string | null;
37694
+ id: string;
37695
+ idempotentie_sleutel: string;
37696
+ reden: string;
37697
+ };
37698
+ Insert: {
37699
+ bestaande_job_id?: string | null;
37700
+ created_at?: string;
37701
+ detail?: string | null;
37702
+ documentnaam?: string | null;
37703
+ documenttype?: string | null;
37704
+ id?: string;
37705
+ idempotentie_sleutel: string;
37706
+ reden: string;
37707
+ };
37708
+ Update: {
37709
+ bestaande_job_id?: string | null;
37710
+ created_at?: string;
37711
+ detail?: string | null;
37712
+ documentnaam?: string | null;
37713
+ documenttype?: string | null;
37714
+ id?: string;
37715
+ idempotentie_sleutel?: string;
37716
+ reden?: string;
37717
+ };
37718
+ Relationships: [];
37719
+ };
36834
37720
  print_job_logs: {
36835
37721
  Row: {
36836
37722
  created_at: string;
@@ -36881,6 +37767,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36881
37767
  is_herprint: boolean;
36882
37768
  kopieen: number;
36883
37769
  layout_id: string | null;
37770
+ lokaal_opgeslagen_op: string | null;
37771
+ lokale_pdf_fout: string | null;
37772
+ lokale_pdf_status: string | null;
36884
37773
  opgepakt_op: string | null;
36885
37774
  paginas: number;
36886
37775
  payload: import("../integrations/supabase/types").Json;
@@ -36889,6 +37778,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36889
37778
  pogingen: number;
36890
37779
  printer_id: string | null;
36891
37780
  render_html: string | null;
37781
+ resultaat_pdf_base64: string | null;
36892
37782
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36893
37783
  updated_at: string;
36894
37784
  volgende_poging: string | null;
@@ -36913,6 +37803,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36913
37803
  is_herprint?: boolean;
36914
37804
  kopieen?: number;
36915
37805
  layout_id?: string | null;
37806
+ lokaal_opgeslagen_op?: string | null;
37807
+ lokale_pdf_fout?: string | null;
37808
+ lokale_pdf_status?: string | null;
36916
37809
  opgepakt_op?: string | null;
36917
37810
  paginas?: number;
36918
37811
  payload?: import("../integrations/supabase/types").Json;
@@ -36921,6 +37814,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36921
37814
  pogingen?: number;
36922
37815
  printer_id?: string | null;
36923
37816
  render_html?: string | null;
37817
+ resultaat_pdf_base64?: string | null;
36924
37818
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36925
37819
  updated_at?: string;
36926
37820
  volgende_poging?: string | null;
@@ -36945,6 +37839,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36945
37839
  is_herprint?: boolean;
36946
37840
  kopieen?: number;
36947
37841
  layout_id?: string | null;
37842
+ lokaal_opgeslagen_op?: string | null;
37843
+ lokale_pdf_fout?: string | null;
37844
+ lokale_pdf_status?: string | null;
36948
37845
  opgepakt_op?: string | null;
36949
37846
  paginas?: number;
36950
37847
  payload?: import("../integrations/supabase/types").Json;
@@ -36953,6 +37850,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36953
37850
  pogingen?: number;
36954
37851
  printer_id?: string | null;
36955
37852
  render_html?: string | null;
37853
+ resultaat_pdf_base64?: string | null;
36956
37854
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36957
37855
  updated_at?: string;
36958
37856
  volgende_poging?: string | null;
@@ -37071,6 +37969,39 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37071
37969
  };
37072
37970
  Relationships: [];
37073
37971
  };
37972
+ print_preview_events: {
37973
+ Row: {
37974
+ code: string | null;
37975
+ created_at: string;
37976
+ detail: import("../integrations/supabase/types").Json;
37977
+ id: string;
37978
+ queue_item_id: string | null;
37979
+ reden: string | null;
37980
+ station_slug: string | null;
37981
+ uitkomst: string;
37982
+ };
37983
+ Insert: {
37984
+ code?: string | null;
37985
+ created_at?: string;
37986
+ detail?: import("../integrations/supabase/types").Json;
37987
+ id?: string;
37988
+ queue_item_id?: string | null;
37989
+ reden?: string | null;
37990
+ station_slug?: string | null;
37991
+ uitkomst?: string;
37992
+ };
37993
+ Update: {
37994
+ code?: string | null;
37995
+ created_at?: string;
37996
+ detail?: import("../integrations/supabase/types").Json;
37997
+ id?: string;
37998
+ queue_item_id?: string | null;
37999
+ reden?: string | null;
38000
+ station_slug?: string | null;
38001
+ uitkomst?: string;
38002
+ };
38003
+ Relationships: [];
38004
+ };
37074
38005
  print_queue_runners: {
37075
38006
  Row: {
37076
38007
  actief: boolean;
@@ -37310,6 +38241,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37310
38241
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37311
38242
  online: boolean;
37312
38243
  papierformaat: string;
38244
+ pdf_map: string | null;
37313
38245
  poort: number | null;
37314
38246
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37315
38247
  systeemnaam: string;
@@ -37335,6 +38267,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37335
38267
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37336
38268
  online?: boolean;
37337
38269
  papierformaat?: string;
38270
+ pdf_map?: string | null;
37338
38271
  poort?: number | null;
37339
38272
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37340
38273
  systeemnaam?: string;
@@ -37360,6 +38293,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37360
38293
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37361
38294
  online?: boolean;
37362
38295
  papierformaat?: string;
38296
+ pdf_map?: string | null;
37363
38297
  poort?: number | null;
37364
38298
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37365
38299
  systeemnaam?: string;
@@ -39929,6 +40863,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
39929
40863
  };
39930
40864
  trade_item_stock: {
39931
40865
  Row: {
40866
+ change_source: string;
39932
40867
  connection_id: string;
39933
40868
  created_at: string;
39934
40869
  id: string;
@@ -39942,6 +40877,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
39942
40877
  user_id: string;
39943
40878
  };
39944
40879
  Insert: {
40880
+ change_source?: string;
39945
40881
  connection_id: string;
39946
40882
  created_at?: string;
39947
40883
  id?: string;
@@ -39955,6 +40891,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
39955
40891
  user_id: string;
39956
40892
  };
39957
40893
  Update: {
40894
+ change_source?: string;
39958
40895
  connection_id?: string;
39959
40896
  created_at?: string;
39960
40897
  id?: string;
@@ -43555,6 +44492,18 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43555
44492
  Args: never;
43556
44493
  Returns: number;
43557
44494
  };
44495
+ calculate_floriday_desired_stock: {
44496
+ Args: {
44497
+ p_connection_id: string;
44498
+ p_product_id: string;
44499
+ };
44500
+ Returns: {
44501
+ desired_availability: boolean;
44502
+ desired_quantity: number;
44503
+ erp_available: number;
44504
+ stock_mode: string;
44505
+ }[];
44506
+ };
43558
44507
  calculate_layer_stock: {
43559
44508
  Args: {
43560
44509
  p_product_id: string;
@@ -43616,6 +44565,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43616
44565
  is_herprint: boolean;
43617
44566
  kopieen: number;
43618
44567
  layout_id: string | null;
44568
+ lokaal_opgeslagen_op: string | null;
44569
+ lokale_pdf_fout: string | null;
44570
+ lokale_pdf_status: string | null;
43619
44571
  opgepakt_op: string | null;
43620
44572
  paginas: number;
43621
44573
  payload: import("../integrations/supabase/types").Json;
@@ -43624,6 +44576,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43624
44576
  pogingen: number;
43625
44577
  printer_id: string | null;
43626
44578
  render_html: string | null;
44579
+ resultaat_pdf_base64: string | null;
43627
44580
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43628
44581
  updated_at: string;
43629
44582
  volgende_poging: string | null;
@@ -43645,6 +44598,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43645
44598
  attempts: number;
43646
44599
  connection_id: string;
43647
44600
  created_at: string;
44601
+ dead_lettered_at: string | null;
43648
44602
  desired_available: boolean | null;
43649
44603
  gateway_attempt_id: string | null;
43650
44604
  id: string;
@@ -43653,9 +44607,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43653
44607
  locked_by: string | null;
43654
44608
  next_attempt_at: string;
43655
44609
  number_of_pieces: number;
44610
+ product_id: string | null;
43656
44611
  sent_at: string | null;
43657
44612
  status: string;
44613
+ stock_mode: string | null;
43658
44614
  superseded_by: string | null;
44615
+ target_week: number | null;
44616
+ target_year: number | null;
43659
44617
  trade_item_id: string;
43660
44618
  updated_at: string;
43661
44619
  user_id: string;
@@ -43715,6 +44673,53 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43715
44673
  isSetofReturn: true;
43716
44674
  };
43717
44675
  };
44676
+ claim_pdf_print_jobs: {
44677
+ Args: {
44678
+ _max?: number;
44679
+ };
44680
+ Returns: {
44681
+ agent_id: string | null;
44682
+ bron_job_id: string | null;
44683
+ created_at: string;
44684
+ documentnaam: string;
44685
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44686
+ extern_job_id: string | null;
44687
+ foutmelding: string | null;
44688
+ gebruiker_id: string | null;
44689
+ gebruiker_naam: string;
44690
+ gebruikte_bron: string | null;
44691
+ gebruikte_layout_id: string | null;
44692
+ gestart_op: string | null;
44693
+ herkomst: string | null;
44694
+ id: string;
44695
+ idempotentie_sleutel: string | null;
44696
+ is_herprint: boolean;
44697
+ kopieen: number;
44698
+ layout_id: string | null;
44699
+ lokaal_opgeslagen_op: string | null;
44700
+ lokale_pdf_fout: string | null;
44701
+ lokale_pdf_status: string | null;
44702
+ opgepakt_op: string | null;
44703
+ paginas: number;
44704
+ payload: import("../integrations/supabase/types").Json;
44705
+ pdf_base64: string | null;
44706
+ pdf_url: string | null;
44707
+ pogingen: number;
44708
+ printer_id: string | null;
44709
+ render_html: string | null;
44710
+ resultaat_pdf_base64: string | null;
44711
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44712
+ updated_at: string;
44713
+ volgende_poging: string | null;
44714
+ voltooid_op: string | null;
44715
+ }[];
44716
+ SetofOptions: {
44717
+ from: "*";
44718
+ to: "print_jobs";
44719
+ isOneToOne: false;
44720
+ isSetofReturn: true;
44721
+ };
44722
+ };
43718
44723
  claim_print_jobs: {
43719
44724
  Args: {
43720
44725
  _agent_id: string;
@@ -43739,6 +44744,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43739
44744
  is_herprint: boolean;
43740
44745
  kopieen: number;
43741
44746
  layout_id: string | null;
44747
+ lokaal_opgeslagen_op: string | null;
44748
+ lokale_pdf_fout: string | null;
44749
+ lokale_pdf_status: string | null;
43742
44750
  opgepakt_op: string | null;
43743
44751
  paginas: number;
43744
44752
  payload: import("../integrations/supabase/types").Json;
@@ -43747,6 +44755,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43747
44755
  pogingen: number;
43748
44756
  printer_id: string | null;
43749
44757
  render_html: string | null;
44758
+ resultaat_pdf_base64: string | null;
43750
44759
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43751
44760
  updated_at: string;
43752
44761
  volgende_poging: string | null;
@@ -43887,6 +44896,8 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43887
44896
  order_id: string;
43888
44897
  order_source: string;
43889
44898
  pick_date: string;
44899
+ printed_at: string;
44900
+ printed_today: boolean;
43890
44901
  status: string;
43891
44902
  }[];
43892
44903
  };
@@ -44083,6 +45094,24 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44083
45094
  };
44084
45095
  Returns: string;
44085
45096
  };
45097
+ floriday_capture_stock_snapshot: {
45098
+ Args: never;
45099
+ Returns: number;
45100
+ };
45101
+ floriday_cleanup_stock_queue_v2: {
45102
+ Args: never;
45103
+ Returns: undefined;
45104
+ };
45105
+ floriday_compact_stock_snapshots: {
45106
+ Args: never;
45107
+ Returns: undefined;
45108
+ };
45109
+ floriday_default_owner: {
45110
+ Args: {
45111
+ p_connection_id: string;
45112
+ };
45113
+ Returns: string;
45114
+ };
44086
45115
  floriday_effective_price: {
44087
45116
  Args: {
44088
45117
  _buyer_id: string;
@@ -44100,6 +45129,22 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44100
45129
  source_id: string;
44101
45130
  }[];
44102
45131
  };
45132
+ floriday_fill_publish_horizon: {
45133
+ Args: never;
45134
+ Returns: number;
45135
+ };
45136
+ floriday_publish_horizon_weeks: {
45137
+ Args: never;
45138
+ Returns: number;
45139
+ };
45140
+ floriday_recompute_inventory: {
45141
+ Args: {
45142
+ p_connection_id: string;
45143
+ p_force?: boolean;
45144
+ p_product_id: string;
45145
+ };
45146
+ Returns: undefined;
45147
+ };
44103
45148
  format_cart_number: {
44104
45149
  Args: {
44105
45150
  p_pick_date: string;
@@ -44595,6 +45640,10 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44595
45640
  };
44596
45641
  Returns: number;
44597
45642
  };
45643
+ logistics_cancel_orphan_tasks: {
45644
+ Args: never;
45645
+ Returns: number;
45646
+ };
44598
45647
  logistics_capacity_day_check: {
44599
45648
  Args: {
44600
45649
  p_from?: string;
@@ -44615,6 +45664,25 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44615
45664
  };
44616
45665
  Returns: number;
44617
45666
  };
45667
+ logistics_cart_index: {
45668
+ Args: {
45669
+ p_from?: string;
45670
+ p_to?: string;
45671
+ };
45672
+ Returns: {
45673
+ cart_id: string;
45674
+ cart_index: number;
45675
+ cart_label: string;
45676
+ is_shared: boolean;
45677
+ order_number: string;
45678
+ order_source: string;
45679
+ order_uuid: string;
45680
+ pick_date: string;
45681
+ printed_at: string;
45682
+ shifted: boolean;
45683
+ task_status: string;
45684
+ }[];
45685
+ };
44618
45686
  logistics_check_order_allowed: {
44619
45687
  Args: {
44620
45688
  p_lines: import("../integrations/supabase/types").Json;
@@ -44763,6 +45831,17 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44763
45831
  isSetofReturn: false;
44764
45832
  };
44765
45833
  };
45834
+ logistics_consistency_check: {
45835
+ Args: never;
45836
+ Returns: {
45837
+ agenda_carts: number;
45838
+ control_carts: number;
45839
+ ok: boolean;
45840
+ orphan_tasks: number;
45841
+ pick_date: string;
45842
+ raw_carts: number;
45843
+ }[];
45844
+ };
44766
45845
  logistics_delay_customer_email: {
44767
45846
  Args: {
44768
45847
  p_customer: string;
@@ -44852,6 +45931,16 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44852
45931
  isSetofReturn: false;
44853
45932
  };
44854
45933
  };
45934
+ logistics_floriday_cart_plan: {
45935
+ Args: {
45936
+ p_order_id: string;
45937
+ };
45938
+ Returns: {
45939
+ carrier_type: string;
45940
+ idx: number;
45941
+ packages: number;
45942
+ }[];
45943
+ };
44855
45944
  logistics_floriday_claim_pushes: {
44856
45945
  Args: {
44857
45946
  _lease_seconds?: number;
@@ -44956,6 +46045,25 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44956
46045
  };
44957
46046
  Returns: number;
44958
46047
  };
46048
+ logistics_order_overview: {
46049
+ Args: {
46050
+ p_from?: string;
46051
+ p_to?: string;
46052
+ };
46053
+ Returns: {
46054
+ cart_count: number;
46055
+ customer_name: string;
46056
+ delivery_date: string;
46057
+ order_number: string;
46058
+ order_source: string;
46059
+ order_uuid: string;
46060
+ pick_date: string;
46061
+ plant_count: number;
46062
+ printed_at: string;
46063
+ shifted: boolean;
46064
+ status: string;
46065
+ }[];
46066
+ };
44959
46067
  logistics_order_pick_day: {
44960
46068
  Args: {
44961
46069
  p_order_ref: string;
@@ -44968,6 +46076,22 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44968
46076
  };
44969
46077
  Returns: string;
44970
46078
  };
46079
+ logistics_pick_agenda: {
46080
+ Args: {
46081
+ p_from?: string;
46082
+ p_to?: string;
46083
+ };
46084
+ Returns: {
46085
+ cart_count: number;
46086
+ in_preparation: number;
46087
+ order_count: number;
46088
+ orders: import("../integrations/supabase/types").Json;
46089
+ pick_date: string;
46090
+ plant_count: number;
46091
+ ready: number;
46092
+ shifted_count: number;
46093
+ }[];
46094
+ };
44971
46095
  logistics_pick_email_purpose: {
44972
46096
  Args: never;
44973
46097
  Returns: string;
@@ -45022,6 +46146,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45022
46146
  };
45023
46147
  Returns: undefined;
45024
46148
  };
46149
+ logistics_plan_floriday_order: {
46150
+ Args: {
46151
+ p_buffer_id?: string;
46152
+ p_order_id: string;
46153
+ };
46154
+ Returns: number;
46155
+ };
45025
46156
  logistics_plan_impact_orders: {
45026
46157
  Args: {
45027
46158
  p_order_id: string;
@@ -45127,6 +46258,15 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45127
46258
  };
45128
46259
  Returns: import("../integrations/supabase/types").Json;
45129
46260
  };
46261
+ logistics_resolve_pick_document: {
46262
+ Args: {
46263
+ _is_herprint: boolean;
46264
+ _queue_item_id: string;
46265
+ _session_id: string;
46266
+ _voorbeeld: boolean;
46267
+ };
46268
+ Returns: import("../integrations/supabase/types").Json;
46269
+ };
45130
46270
  logistics_resolve_settings: {
45131
46271
  Args: {
45132
46272
  p_config_id: string;
@@ -45567,6 +46707,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45567
46707
  };
45568
46708
  pick_enqueue_print_job: {
45569
46709
  Args: {
46710
+ _is_herprint?: boolean;
45570
46711
  _printer_id?: string;
45571
46712
  _queue_item_id: string;
45572
46713
  _session_id?: string;
@@ -45580,6 +46721,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45580
46721
  };
45581
46722
  Returns: import("../integrations/supabase/types").Json;
45582
46723
  };
46724
+ pick_preview_job: {
46725
+ Args: {
46726
+ _queue_item_id: string;
46727
+ _station_slug: string;
46728
+ };
46729
+ Returns: import("../integrations/supabase/types").Json;
46730
+ };
45583
46731
  pick_print_job_status: {
45584
46732
  Args: {
45585
46733
  _job_id: string;
@@ -45757,6 +46905,24 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45757
46905
  };
45758
46906
  Returns: undefined;
45759
46907
  };
46908
+ print_preview_toestaan: {
46909
+ Args: {
46910
+ _max?: number;
46911
+ _queue_item_id: string;
46912
+ _station_slug: string;
46913
+ _venster_sec?: number;
46914
+ };
46915
+ Returns: import("../integrations/supabase/types").Json;
46916
+ };
46917
+ print_preview_weiger: {
46918
+ Args: {
46919
+ _code: string;
46920
+ _queue_item_id: string;
46921
+ _reden: string;
46922
+ _station_slug: string;
46923
+ };
46924
+ Returns: undefined;
46925
+ };
45760
46926
  process_logistics_event: {
45761
46927
  Args: {
45762
46928
  p_event_id: string;
@@ -45911,6 +47077,12 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45911
47077
  };
45912
47078
  Returns: string;
45913
47079
  };
47080
+ resolve_print_job_printer_id: {
47081
+ Args: {
47082
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
47083
+ };
47084
+ Returns: string;
47085
+ };
45914
47086
  resolve_product_id_for_item: {
45915
47087
  Args: {
45916
47088
  p_product_name: string;
@@ -46502,7 +47674,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
46502
47674
  };
46503
47675
  CompositeTypes: { [_ in never]: never; };
46504
47676
  }, {
46505
- PostgrestVersion: "14.17";
47677
+ PostgrestVersion: "14.5";
46506
47678
  }>;
46507
47679
  userId: string;
46508
47680
  claims: import("@supabase/auth-js").User;
@@ -49373,6 +50545,84 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
49373
50545
  };
49374
50546
  Relationships: [];
49375
50547
  };
50548
+ delivery_notes: {
50549
+ Row: {
50550
+ byte_size: number | null;
50551
+ connection_id: string | null;
50552
+ content_type: string;
50553
+ created_at: string;
50554
+ error_message: string | null;
50555
+ fetched_at: string | null;
50556
+ fulfillment_order_id: string | null;
50557
+ http_status: number | null;
50558
+ id: string;
50559
+ label_code: string | null;
50560
+ letter: string | null;
50561
+ load_carrier_index: number | null;
50562
+ load_carrier_type: string | null;
50563
+ order_id: string | null;
50564
+ order_number: string | null;
50565
+ packages: number | null;
50566
+ source: string;
50567
+ status: string;
50568
+ storage_bucket: string;
50569
+ storage_path: string | null;
50570
+ updated_at: string;
50571
+ };
50572
+ Insert: {
50573
+ byte_size?: number | null;
50574
+ connection_id?: string | null;
50575
+ content_type?: string;
50576
+ created_at?: string;
50577
+ error_message?: string | null;
50578
+ fetched_at?: string | null;
50579
+ fulfillment_order_id?: string | null;
50580
+ http_status?: number | null;
50581
+ id?: string;
50582
+ label_code?: string | null;
50583
+ letter?: string | null;
50584
+ load_carrier_index?: number | null;
50585
+ load_carrier_type?: string | null;
50586
+ order_id?: string | null;
50587
+ order_number?: string | null;
50588
+ packages?: number | null;
50589
+ source?: string;
50590
+ status?: string;
50591
+ storage_bucket?: string;
50592
+ storage_path?: string | null;
50593
+ updated_at?: string;
50594
+ };
50595
+ Update: {
50596
+ byte_size?: number | null;
50597
+ connection_id?: string | null;
50598
+ content_type?: string;
50599
+ created_at?: string;
50600
+ error_message?: string | null;
50601
+ fetched_at?: string | null;
50602
+ fulfillment_order_id?: string | null;
50603
+ http_status?: number | null;
50604
+ id?: string;
50605
+ label_code?: string | null;
50606
+ letter?: string | null;
50607
+ load_carrier_index?: number | null;
50608
+ load_carrier_type?: string | null;
50609
+ order_id?: string | null;
50610
+ order_number?: string | null;
50611
+ packages?: number | null;
50612
+ source?: string;
50613
+ status?: string;
50614
+ storage_bucket?: string;
50615
+ storage_path?: string | null;
50616
+ updated_at?: string;
50617
+ };
50618
+ Relationships: [{
50619
+ foreignKeyName: "delivery_notes_order_id_fkey";
50620
+ columns: ["order_id"];
50621
+ isOneToOne: false;
50622
+ referencedRelation: "orders";
50623
+ referencedColumns: ["id"];
50624
+ }];
50625
+ };
49376
50626
  document_bronregels: {
49377
50627
  Row: {
49378
50628
  bron: string;
@@ -52426,10 +53676,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52426
53676
  };
52427
53677
  floriday_connections: {
52428
53678
  Row: {
52429
- access_token: string | null;
52430
53679
  api_key: string;
52431
- client_id: string;
52432
- client_secret: string;
52433
53680
  created_at: string;
52434
53681
  customers_endpoint: string | null;
52435
53682
  environment: string;
@@ -52444,10 +53691,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52444
53691
  updated_at: string;
52445
53692
  };
52446
53693
  Insert: {
52447
- access_token?: string | null;
52448
53694
  api_key: string;
52449
- client_id: string;
52450
- client_secret: string;
52451
53695
  created_at?: string;
52452
53696
  customers_endpoint?: string | null;
52453
53697
  environment: string;
@@ -52462,10 +53706,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52462
53706
  updated_at?: string;
52463
53707
  };
52464
53708
  Update: {
52465
- access_token?: string | null;
52466
53709
  api_key?: string;
52467
- client_id?: string;
52468
- client_secret?: string;
52469
53710
  created_at?: string;
52470
53711
  customers_endpoint?: string | null;
52471
53712
  environment?: string;
@@ -52549,6 +53790,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52549
53790
  attempts: number;
52550
53791
  connection_id: string;
52551
53792
  created_at: string;
53793
+ dead_lettered_at: string | null;
52552
53794
  desired_available: boolean | null;
52553
53795
  gateway_attempt_id: string | null;
52554
53796
  id: string;
@@ -52557,9 +53799,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52557
53799
  locked_by: string | null;
52558
53800
  next_attempt_at: string;
52559
53801
  number_of_pieces: number;
53802
+ product_id: string | null;
52560
53803
  sent_at: string | null;
52561
53804
  status: string;
53805
+ stock_mode: string | null;
52562
53806
  superseded_by: string | null;
53807
+ target_week: number | null;
53808
+ target_year: number | null;
52563
53809
  trade_item_id: string;
52564
53810
  updated_at: string;
52565
53811
  user_id: string;
@@ -52568,6 +53814,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52568
53814
  attempts?: number;
52569
53815
  connection_id: string;
52570
53816
  created_at?: string;
53817
+ dead_lettered_at?: string | null;
52571
53818
  desired_available?: boolean | null;
52572
53819
  gateway_attempt_id?: string | null;
52573
53820
  id?: string;
@@ -52576,9 +53823,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52576
53823
  locked_by?: string | null;
52577
53824
  next_attempt_at?: string;
52578
53825
  number_of_pieces?: number;
53826
+ product_id?: string | null;
52579
53827
  sent_at?: string | null;
52580
53828
  status?: string;
53829
+ stock_mode?: string | null;
52581
53830
  superseded_by?: string | null;
53831
+ target_week?: number | null;
53832
+ target_year?: number | null;
52582
53833
  trade_item_id: string;
52583
53834
  updated_at?: string;
52584
53835
  user_id: string;
@@ -52587,6 +53838,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52587
53838
  attempts?: number;
52588
53839
  connection_id?: string;
52589
53840
  created_at?: string;
53841
+ dead_lettered_at?: string | null;
52590
53842
  desired_available?: boolean | null;
52591
53843
  gateway_attempt_id?: string | null;
52592
53844
  id?: string;
@@ -52595,9 +53847,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52595
53847
  locked_by?: string | null;
52596
53848
  next_attempt_at?: string;
52597
53849
  number_of_pieces?: number;
53850
+ product_id?: string | null;
52598
53851
  sent_at?: string | null;
52599
53852
  status?: string;
53853
+ stock_mode?: string | null;
52600
53854
  superseded_by?: string | null;
53855
+ target_week?: number | null;
53856
+ target_year?: number | null;
52601
53857
  trade_item_id?: string;
52602
53858
  updated_at?: string;
52603
53859
  user_id?: string;
@@ -53006,6 +54262,87 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
53006
54262
  referencedColumns: ["id"];
53007
54263
  }];
53008
54264
  };
54265
+ floriday_inventory_settings: {
54266
+ Row: {
54267
+ buffer_quantity: number;
54268
+ connection_id: string;
54269
+ created_at: string;
54270
+ desired_availability: boolean;
54271
+ desired_quantity: number;
54272
+ fixed_quantity: number | null;
54273
+ floriday_trade_item_id: string | null;
54274
+ id: string;
54275
+ last_confirmed_at: string | null;
54276
+ last_enqueued_at: string | null;
54277
+ last_published_at: string | null;
54278
+ last_sync_error: string | null;
54279
+ manual_quantity: number | null;
54280
+ maximum_quantity: number | null;
54281
+ product_id: string;
54282
+ quantity_control: string;
54283
+ remote_available: boolean | null;
54284
+ remote_checked_at: string | null;
54285
+ remote_quantity: number | null;
54286
+ stock_mode: string;
54287
+ sync_status: string;
54288
+ updated_at: string;
54289
+ updated_by: string | null;
54290
+ user_id: string;
54291
+ };
54292
+ Insert: {
54293
+ buffer_quantity?: number;
54294
+ connection_id: string;
54295
+ created_at?: string;
54296
+ desired_availability?: boolean;
54297
+ desired_quantity?: number;
54298
+ fixed_quantity?: number | null;
54299
+ floriday_trade_item_id?: string | null;
54300
+ id?: string;
54301
+ last_confirmed_at?: string | null;
54302
+ last_enqueued_at?: string | null;
54303
+ last_published_at?: string | null;
54304
+ last_sync_error?: string | null;
54305
+ manual_quantity?: number | null;
54306
+ maximum_quantity?: number | null;
54307
+ product_id: string;
54308
+ quantity_control?: string;
54309
+ remote_available?: boolean | null;
54310
+ remote_checked_at?: string | null;
54311
+ remote_quantity?: number | null;
54312
+ stock_mode?: string;
54313
+ sync_status?: string;
54314
+ updated_at?: string;
54315
+ updated_by?: string | null;
54316
+ user_id: string;
54317
+ };
54318
+ Update: {
54319
+ buffer_quantity?: number;
54320
+ connection_id?: string;
54321
+ created_at?: string;
54322
+ desired_availability?: boolean;
54323
+ desired_quantity?: number;
54324
+ fixed_quantity?: number | null;
54325
+ floriday_trade_item_id?: string | null;
54326
+ id?: string;
54327
+ last_confirmed_at?: string | null;
54328
+ last_enqueued_at?: string | null;
54329
+ last_published_at?: string | null;
54330
+ last_sync_error?: string | null;
54331
+ manual_quantity?: number | null;
54332
+ maximum_quantity?: number | null;
54333
+ product_id?: string;
54334
+ quantity_control?: string;
54335
+ remote_available?: boolean | null;
54336
+ remote_checked_at?: string | null;
54337
+ remote_quantity?: number | null;
54338
+ stock_mode?: string;
54339
+ sync_status?: string;
54340
+ updated_at?: string;
54341
+ updated_by?: string | null;
54342
+ user_id?: string;
54343
+ };
54344
+ Relationships: [];
54345
+ };
53009
54346
  floriday_invoices_cache: {
53010
54347
  Row: {
53011
54348
  buyer_organization_id: string | null;
@@ -53294,6 +54631,39 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
53294
54631
  };
53295
54632
  Relationships: [];
53296
54633
  };
54634
+ floriday_sales_order_ingest: {
54635
+ Row: {
54636
+ connection_id: string;
54637
+ created_at: string;
54638
+ id: string;
54639
+ impact: import("../integrations/supabase/types").Json;
54640
+ order_status: string | null;
54641
+ order_version: number;
54642
+ processed_at: string;
54643
+ sales_order_id: string;
54644
+ };
54645
+ Insert: {
54646
+ connection_id: string;
54647
+ created_at?: string;
54648
+ id?: string;
54649
+ impact?: import("../integrations/supabase/types").Json;
54650
+ order_status?: string | null;
54651
+ order_version?: number;
54652
+ processed_at?: string;
54653
+ sales_order_id: string;
54654
+ };
54655
+ Update: {
54656
+ connection_id?: string;
54657
+ created_at?: string;
54658
+ id?: string;
54659
+ impact?: import("../integrations/supabase/types").Json;
54660
+ order_status?: string | null;
54661
+ order_version?: number;
54662
+ processed_at?: string;
54663
+ sales_order_id?: string;
54664
+ };
54665
+ Relationships: [];
54666
+ };
53297
54667
  floriday_sales_strategies_cache: {
53298
54668
  Row: {
53299
54669
  connection_id: string;
@@ -53393,6 +54763,39 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
53393
54763
  };
53394
54764
  Relationships: [];
53395
54765
  };
54766
+ floriday_sync_cursors: {
54767
+ Row: {
54768
+ connection_id: string;
54769
+ created_at: string;
54770
+ id: string;
54771
+ last_error: string | null;
54772
+ last_sync_at: string | null;
54773
+ resource_type: string;
54774
+ sequence_number: number;
54775
+ updated_at: string;
54776
+ };
54777
+ Insert: {
54778
+ connection_id: string;
54779
+ created_at?: string;
54780
+ id?: string;
54781
+ last_error?: string | null;
54782
+ last_sync_at?: string | null;
54783
+ resource_type: string;
54784
+ sequence_number?: number;
54785
+ updated_at?: string;
54786
+ };
54787
+ Update: {
54788
+ connection_id?: string;
54789
+ created_at?: string;
54790
+ id?: string;
54791
+ last_error?: string | null;
54792
+ last_sync_at?: string | null;
54793
+ resource_type?: string;
54794
+ sequence_number?: number;
54795
+ updated_at?: string;
54796
+ };
54797
+ Relationships: [];
54798
+ };
53396
54799
  floriday_sync_state: {
53397
54800
  Row: {
53398
54801
  connection_id: string;
@@ -54083,6 +55486,42 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
54083
55486
  };
54084
55487
  Relationships: [];
54085
55488
  };
55489
+ inventory_stock_snapshots: {
55490
+ Row: {
55491
+ connection_id: string;
55492
+ created_at: string;
55493
+ erp_available_quantity: number;
55494
+ floriday_desired_quantity: number;
55495
+ floriday_remote_quantity: number | null;
55496
+ granularity: string;
55497
+ id: string;
55498
+ snapshot_at: string;
55499
+ user_id: string | null;
55500
+ };
55501
+ Insert: {
55502
+ connection_id: string;
55503
+ created_at?: string;
55504
+ erp_available_quantity?: number;
55505
+ floriday_desired_quantity?: number;
55506
+ floriday_remote_quantity?: number | null;
55507
+ granularity?: string;
55508
+ id?: string;
55509
+ snapshot_at?: string;
55510
+ user_id?: string | null;
55511
+ };
55512
+ Update: {
55513
+ connection_id?: string;
55514
+ created_at?: string;
55515
+ erp_available_quantity?: number;
55516
+ floriday_desired_quantity?: number;
55517
+ floriday_remote_quantity?: number | null;
55518
+ granularity?: string;
55519
+ id?: string;
55520
+ snapshot_at?: string;
55521
+ user_id?: string | null;
55522
+ };
55523
+ Relationships: [];
55524
+ };
54086
55525
  invoice_items: {
54087
55526
  Row: {
54088
55527
  created_at: string;
@@ -60098,6 +61537,39 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60098
61537
  };
60099
61538
  Relationships: [];
60100
61539
  };
61540
+ print_dedupe_events: {
61541
+ Row: {
61542
+ bestaande_job_id: string | null;
61543
+ created_at: string;
61544
+ detail: string | null;
61545
+ documentnaam: string | null;
61546
+ documenttype: string | null;
61547
+ id: string;
61548
+ idempotentie_sleutel: string;
61549
+ reden: string;
61550
+ };
61551
+ Insert: {
61552
+ bestaande_job_id?: string | null;
61553
+ created_at?: string;
61554
+ detail?: string | null;
61555
+ documentnaam?: string | null;
61556
+ documenttype?: string | null;
61557
+ id?: string;
61558
+ idempotentie_sleutel: string;
61559
+ reden: string;
61560
+ };
61561
+ Update: {
61562
+ bestaande_job_id?: string | null;
61563
+ created_at?: string;
61564
+ detail?: string | null;
61565
+ documentnaam?: string | null;
61566
+ documenttype?: string | null;
61567
+ id?: string;
61568
+ idempotentie_sleutel?: string;
61569
+ reden?: string;
61570
+ };
61571
+ Relationships: [];
61572
+ };
60101
61573
  print_job_logs: {
60102
61574
  Row: {
60103
61575
  created_at: string;
@@ -60148,6 +61620,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60148
61620
  is_herprint: boolean;
60149
61621
  kopieen: number;
60150
61622
  layout_id: string | null;
61623
+ lokaal_opgeslagen_op: string | null;
61624
+ lokale_pdf_fout: string | null;
61625
+ lokale_pdf_status: string | null;
60151
61626
  opgepakt_op: string | null;
60152
61627
  paginas: number;
60153
61628
  payload: import("../integrations/supabase/types").Json;
@@ -60156,6 +61631,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60156
61631
  pogingen: number;
60157
61632
  printer_id: string | null;
60158
61633
  render_html: string | null;
61634
+ resultaat_pdf_base64: string | null;
60159
61635
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60160
61636
  updated_at: string;
60161
61637
  volgende_poging: string | null;
@@ -60180,6 +61656,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60180
61656
  is_herprint?: boolean;
60181
61657
  kopieen?: number;
60182
61658
  layout_id?: string | null;
61659
+ lokaal_opgeslagen_op?: string | null;
61660
+ lokale_pdf_fout?: string | null;
61661
+ lokale_pdf_status?: string | null;
60183
61662
  opgepakt_op?: string | null;
60184
61663
  paginas?: number;
60185
61664
  payload?: import("../integrations/supabase/types").Json;
@@ -60188,6 +61667,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60188
61667
  pogingen?: number;
60189
61668
  printer_id?: string | null;
60190
61669
  render_html?: string | null;
61670
+ resultaat_pdf_base64?: string | null;
60191
61671
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60192
61672
  updated_at?: string;
60193
61673
  volgende_poging?: string | null;
@@ -60212,6 +61692,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60212
61692
  is_herprint?: boolean;
60213
61693
  kopieen?: number;
60214
61694
  layout_id?: string | null;
61695
+ lokaal_opgeslagen_op?: string | null;
61696
+ lokale_pdf_fout?: string | null;
61697
+ lokale_pdf_status?: string | null;
60215
61698
  opgepakt_op?: string | null;
60216
61699
  paginas?: number;
60217
61700
  payload?: import("../integrations/supabase/types").Json;
@@ -60220,6 +61703,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60220
61703
  pogingen?: number;
60221
61704
  printer_id?: string | null;
60222
61705
  render_html?: string | null;
61706
+ resultaat_pdf_base64?: string | null;
60223
61707
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60224
61708
  updated_at?: string;
60225
61709
  volgende_poging?: string | null;
@@ -60338,6 +61822,39 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60338
61822
  };
60339
61823
  Relationships: [];
60340
61824
  };
61825
+ print_preview_events: {
61826
+ Row: {
61827
+ code: string | null;
61828
+ created_at: string;
61829
+ detail: import("../integrations/supabase/types").Json;
61830
+ id: string;
61831
+ queue_item_id: string | null;
61832
+ reden: string | null;
61833
+ station_slug: string | null;
61834
+ uitkomst: string;
61835
+ };
61836
+ Insert: {
61837
+ code?: string | null;
61838
+ created_at?: string;
61839
+ detail?: import("../integrations/supabase/types").Json;
61840
+ id?: string;
61841
+ queue_item_id?: string | null;
61842
+ reden?: string | null;
61843
+ station_slug?: string | null;
61844
+ uitkomst?: string;
61845
+ };
61846
+ Update: {
61847
+ code?: string | null;
61848
+ created_at?: string;
61849
+ detail?: import("../integrations/supabase/types").Json;
61850
+ id?: string;
61851
+ queue_item_id?: string | null;
61852
+ reden?: string | null;
61853
+ station_slug?: string | null;
61854
+ uitkomst?: string;
61855
+ };
61856
+ Relationships: [];
61857
+ };
60341
61858
  print_queue_runners: {
60342
61859
  Row: {
60343
61860
  actief: boolean;
@@ -60577,6 +62094,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60577
62094
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60578
62095
  online: boolean;
60579
62096
  papierformaat: string;
62097
+ pdf_map: string | null;
60580
62098
  poort: number | null;
60581
62099
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60582
62100
  systeemnaam: string;
@@ -60602,6 +62120,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60602
62120
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60603
62121
  online?: boolean;
60604
62122
  papierformaat?: string;
62123
+ pdf_map?: string | null;
60605
62124
  poort?: number | null;
60606
62125
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60607
62126
  systeemnaam?: string;
@@ -60627,6 +62146,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60627
62146
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60628
62147
  online?: boolean;
60629
62148
  papierformaat?: string;
62149
+ pdf_map?: string | null;
60630
62150
  poort?: number | null;
60631
62151
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60632
62152
  systeemnaam?: string;
@@ -63196,6 +64716,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
63196
64716
  };
63197
64717
  trade_item_stock: {
63198
64718
  Row: {
64719
+ change_source: string;
63199
64720
  connection_id: string;
63200
64721
  created_at: string;
63201
64722
  id: string;
@@ -63209,6 +64730,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
63209
64730
  user_id: string;
63210
64731
  };
63211
64732
  Insert: {
64733
+ change_source?: string;
63212
64734
  connection_id: string;
63213
64735
  created_at?: string;
63214
64736
  id?: string;
@@ -63222,6 +64744,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
63222
64744
  user_id: string;
63223
64745
  };
63224
64746
  Update: {
64747
+ change_source?: string;
63225
64748
  connection_id?: string;
63226
64749
  created_at?: string;
63227
64750
  id?: string;
@@ -66822,6 +68345,18 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66822
68345
  Args: never;
66823
68346
  Returns: number;
66824
68347
  };
68348
+ calculate_floriday_desired_stock: {
68349
+ Args: {
68350
+ p_connection_id: string;
68351
+ p_product_id: string;
68352
+ };
68353
+ Returns: {
68354
+ desired_availability: boolean;
68355
+ desired_quantity: number;
68356
+ erp_available: number;
68357
+ stock_mode: string;
68358
+ }[];
68359
+ };
66825
68360
  calculate_layer_stock: {
66826
68361
  Args: {
66827
68362
  p_product_id: string;
@@ -66883,6 +68418,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66883
68418
  is_herprint: boolean;
66884
68419
  kopieen: number;
66885
68420
  layout_id: string | null;
68421
+ lokaal_opgeslagen_op: string | null;
68422
+ lokale_pdf_fout: string | null;
68423
+ lokale_pdf_status: string | null;
66886
68424
  opgepakt_op: string | null;
66887
68425
  paginas: number;
66888
68426
  payload: import("../integrations/supabase/types").Json;
@@ -66891,6 +68429,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66891
68429
  pogingen: number;
66892
68430
  printer_id: string | null;
66893
68431
  render_html: string | null;
68432
+ resultaat_pdf_base64: string | null;
66894
68433
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66895
68434
  updated_at: string;
66896
68435
  volgende_poging: string | null;
@@ -66912,6 +68451,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66912
68451
  attempts: number;
66913
68452
  connection_id: string;
66914
68453
  created_at: string;
68454
+ dead_lettered_at: string | null;
66915
68455
  desired_available: boolean | null;
66916
68456
  gateway_attempt_id: string | null;
66917
68457
  id: string;
@@ -66920,9 +68460,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66920
68460
  locked_by: string | null;
66921
68461
  next_attempt_at: string;
66922
68462
  number_of_pieces: number;
68463
+ product_id: string | null;
66923
68464
  sent_at: string | null;
66924
68465
  status: string;
68466
+ stock_mode: string | null;
66925
68467
  superseded_by: string | null;
68468
+ target_week: number | null;
68469
+ target_year: number | null;
66926
68470
  trade_item_id: string;
66927
68471
  updated_at: string;
66928
68472
  user_id: string;
@@ -66982,6 +68526,53 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66982
68526
  isSetofReturn: true;
66983
68527
  };
66984
68528
  };
68529
+ claim_pdf_print_jobs: {
68530
+ Args: {
68531
+ _max?: number;
68532
+ };
68533
+ Returns: {
68534
+ agent_id: string | null;
68535
+ bron_job_id: string | null;
68536
+ created_at: string;
68537
+ documentnaam: string;
68538
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
68539
+ extern_job_id: string | null;
68540
+ foutmelding: string | null;
68541
+ gebruiker_id: string | null;
68542
+ gebruiker_naam: string;
68543
+ gebruikte_bron: string | null;
68544
+ gebruikte_layout_id: string | null;
68545
+ gestart_op: string | null;
68546
+ herkomst: string | null;
68547
+ id: string;
68548
+ idempotentie_sleutel: string | null;
68549
+ is_herprint: boolean;
68550
+ kopieen: number;
68551
+ layout_id: string | null;
68552
+ lokaal_opgeslagen_op: string | null;
68553
+ lokale_pdf_fout: string | null;
68554
+ lokale_pdf_status: string | null;
68555
+ opgepakt_op: string | null;
68556
+ paginas: number;
68557
+ payload: import("../integrations/supabase/types").Json;
68558
+ pdf_base64: string | null;
68559
+ pdf_url: string | null;
68560
+ pogingen: number;
68561
+ printer_id: string | null;
68562
+ render_html: string | null;
68563
+ resultaat_pdf_base64: string | null;
68564
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
68565
+ updated_at: string;
68566
+ volgende_poging: string | null;
68567
+ voltooid_op: string | null;
68568
+ }[];
68569
+ SetofOptions: {
68570
+ from: "*";
68571
+ to: "print_jobs";
68572
+ isOneToOne: false;
68573
+ isSetofReturn: true;
68574
+ };
68575
+ };
66985
68576
  claim_print_jobs: {
66986
68577
  Args: {
66987
68578
  _agent_id: string;
@@ -67006,6 +68597,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67006
68597
  is_herprint: boolean;
67007
68598
  kopieen: number;
67008
68599
  layout_id: string | null;
68600
+ lokaal_opgeslagen_op: string | null;
68601
+ lokale_pdf_fout: string | null;
68602
+ lokale_pdf_status: string | null;
67009
68603
  opgepakt_op: string | null;
67010
68604
  paginas: number;
67011
68605
  payload: import("../integrations/supabase/types").Json;
@@ -67014,6 +68608,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67014
68608
  pogingen: number;
67015
68609
  printer_id: string | null;
67016
68610
  render_html: string | null;
68611
+ resultaat_pdf_base64: string | null;
67017
68612
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67018
68613
  updated_at: string;
67019
68614
  volgende_poging: string | null;
@@ -67154,6 +68749,8 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67154
68749
  order_id: string;
67155
68750
  order_source: string;
67156
68751
  pick_date: string;
68752
+ printed_at: string;
68753
+ printed_today: boolean;
67157
68754
  status: string;
67158
68755
  }[];
67159
68756
  };
@@ -67350,6 +68947,24 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67350
68947
  };
67351
68948
  Returns: string;
67352
68949
  };
68950
+ floriday_capture_stock_snapshot: {
68951
+ Args: never;
68952
+ Returns: number;
68953
+ };
68954
+ floriday_cleanup_stock_queue_v2: {
68955
+ Args: never;
68956
+ Returns: undefined;
68957
+ };
68958
+ floriday_compact_stock_snapshots: {
68959
+ Args: never;
68960
+ Returns: undefined;
68961
+ };
68962
+ floriday_default_owner: {
68963
+ Args: {
68964
+ p_connection_id: string;
68965
+ };
68966
+ Returns: string;
68967
+ };
67353
68968
  floriday_effective_price: {
67354
68969
  Args: {
67355
68970
  _buyer_id: string;
@@ -67367,6 +68982,22 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67367
68982
  source_id: string;
67368
68983
  }[];
67369
68984
  };
68985
+ floriday_fill_publish_horizon: {
68986
+ Args: never;
68987
+ Returns: number;
68988
+ };
68989
+ floriday_publish_horizon_weeks: {
68990
+ Args: never;
68991
+ Returns: number;
68992
+ };
68993
+ floriday_recompute_inventory: {
68994
+ Args: {
68995
+ p_connection_id: string;
68996
+ p_force?: boolean;
68997
+ p_product_id: string;
68998
+ };
68999
+ Returns: undefined;
69000
+ };
67370
69001
  format_cart_number: {
67371
69002
  Args: {
67372
69003
  p_pick_date: string;
@@ -67862,6 +69493,10 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67862
69493
  };
67863
69494
  Returns: number;
67864
69495
  };
69496
+ logistics_cancel_orphan_tasks: {
69497
+ Args: never;
69498
+ Returns: number;
69499
+ };
67865
69500
  logistics_capacity_day_check: {
67866
69501
  Args: {
67867
69502
  p_from?: string;
@@ -67882,6 +69517,25 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67882
69517
  };
67883
69518
  Returns: number;
67884
69519
  };
69520
+ logistics_cart_index: {
69521
+ Args: {
69522
+ p_from?: string;
69523
+ p_to?: string;
69524
+ };
69525
+ Returns: {
69526
+ cart_id: string;
69527
+ cart_index: number;
69528
+ cart_label: string;
69529
+ is_shared: boolean;
69530
+ order_number: string;
69531
+ order_source: string;
69532
+ order_uuid: string;
69533
+ pick_date: string;
69534
+ printed_at: string;
69535
+ shifted: boolean;
69536
+ task_status: string;
69537
+ }[];
69538
+ };
67885
69539
  logistics_check_order_allowed: {
67886
69540
  Args: {
67887
69541
  p_lines: import("../integrations/supabase/types").Json;
@@ -68030,6 +69684,17 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68030
69684
  isSetofReturn: false;
68031
69685
  };
68032
69686
  };
69687
+ logistics_consistency_check: {
69688
+ Args: never;
69689
+ Returns: {
69690
+ agenda_carts: number;
69691
+ control_carts: number;
69692
+ ok: boolean;
69693
+ orphan_tasks: number;
69694
+ pick_date: string;
69695
+ raw_carts: number;
69696
+ }[];
69697
+ };
68033
69698
  logistics_delay_customer_email: {
68034
69699
  Args: {
68035
69700
  p_customer: string;
@@ -68119,6 +69784,16 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68119
69784
  isSetofReturn: false;
68120
69785
  };
68121
69786
  };
69787
+ logistics_floriday_cart_plan: {
69788
+ Args: {
69789
+ p_order_id: string;
69790
+ };
69791
+ Returns: {
69792
+ carrier_type: string;
69793
+ idx: number;
69794
+ packages: number;
69795
+ }[];
69796
+ };
68122
69797
  logistics_floriday_claim_pushes: {
68123
69798
  Args: {
68124
69799
  _lease_seconds?: number;
@@ -68223,6 +69898,25 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68223
69898
  };
68224
69899
  Returns: number;
68225
69900
  };
69901
+ logistics_order_overview: {
69902
+ Args: {
69903
+ p_from?: string;
69904
+ p_to?: string;
69905
+ };
69906
+ Returns: {
69907
+ cart_count: number;
69908
+ customer_name: string;
69909
+ delivery_date: string;
69910
+ order_number: string;
69911
+ order_source: string;
69912
+ order_uuid: string;
69913
+ pick_date: string;
69914
+ plant_count: number;
69915
+ printed_at: string;
69916
+ shifted: boolean;
69917
+ status: string;
69918
+ }[];
69919
+ };
68226
69920
  logistics_order_pick_day: {
68227
69921
  Args: {
68228
69922
  p_order_ref: string;
@@ -68235,6 +69929,22 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68235
69929
  };
68236
69930
  Returns: string;
68237
69931
  };
69932
+ logistics_pick_agenda: {
69933
+ Args: {
69934
+ p_from?: string;
69935
+ p_to?: string;
69936
+ };
69937
+ Returns: {
69938
+ cart_count: number;
69939
+ in_preparation: number;
69940
+ order_count: number;
69941
+ orders: import("../integrations/supabase/types").Json;
69942
+ pick_date: string;
69943
+ plant_count: number;
69944
+ ready: number;
69945
+ shifted_count: number;
69946
+ }[];
69947
+ };
68238
69948
  logistics_pick_email_purpose: {
68239
69949
  Args: never;
68240
69950
  Returns: string;
@@ -68289,6 +69999,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68289
69999
  };
68290
70000
  Returns: undefined;
68291
70001
  };
70002
+ logistics_plan_floriday_order: {
70003
+ Args: {
70004
+ p_buffer_id?: string;
70005
+ p_order_id: string;
70006
+ };
70007
+ Returns: number;
70008
+ };
68292
70009
  logistics_plan_impact_orders: {
68293
70010
  Args: {
68294
70011
  p_order_id: string;
@@ -68394,6 +70111,15 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68394
70111
  };
68395
70112
  Returns: import("../integrations/supabase/types").Json;
68396
70113
  };
70114
+ logistics_resolve_pick_document: {
70115
+ Args: {
70116
+ _is_herprint: boolean;
70117
+ _queue_item_id: string;
70118
+ _session_id: string;
70119
+ _voorbeeld: boolean;
70120
+ };
70121
+ Returns: import("../integrations/supabase/types").Json;
70122
+ };
68397
70123
  logistics_resolve_settings: {
68398
70124
  Args: {
68399
70125
  p_config_id: string;
@@ -68834,6 +70560,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68834
70560
  };
68835
70561
  pick_enqueue_print_job: {
68836
70562
  Args: {
70563
+ _is_herprint?: boolean;
68837
70564
  _printer_id?: string;
68838
70565
  _queue_item_id: string;
68839
70566
  _session_id?: string;
@@ -68847,6 +70574,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68847
70574
  };
68848
70575
  Returns: import("../integrations/supabase/types").Json;
68849
70576
  };
70577
+ pick_preview_job: {
70578
+ Args: {
70579
+ _queue_item_id: string;
70580
+ _station_slug: string;
70581
+ };
70582
+ Returns: import("../integrations/supabase/types").Json;
70583
+ };
68850
70584
  pick_print_job_status: {
68851
70585
  Args: {
68852
70586
  _job_id: string;
@@ -69024,6 +70758,24 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
69024
70758
  };
69025
70759
  Returns: undefined;
69026
70760
  };
70761
+ print_preview_toestaan: {
70762
+ Args: {
70763
+ _max?: number;
70764
+ _queue_item_id: string;
70765
+ _station_slug: string;
70766
+ _venster_sec?: number;
70767
+ };
70768
+ Returns: import("../integrations/supabase/types").Json;
70769
+ };
70770
+ print_preview_weiger: {
70771
+ Args: {
70772
+ _code: string;
70773
+ _queue_item_id: string;
70774
+ _reden: string;
70775
+ _station_slug: string;
70776
+ };
70777
+ Returns: undefined;
70778
+ };
69027
70779
  process_logistics_event: {
69028
70780
  Args: {
69029
70781
  p_event_id: string;
@@ -69178,6 +70930,12 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
69178
70930
  };
69179
70931
  Returns: string;
69180
70932
  };
70933
+ resolve_print_job_printer_id: {
70934
+ Args: {
70935
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70936
+ };
70937
+ Returns: string;
70938
+ };
69181
70939
  resolve_product_id_for_item: {
69182
70940
  Args: {
69183
70941
  p_product_name: string;
@@ -69769,7 +71527,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
69769
71527
  };
69770
71528
  CompositeTypes: { [_ in never]: never; };
69771
71529
  }, {
69772
- PostgrestVersion: "14.17";
71530
+ PostgrestVersion: "14.5";
69773
71531
  }>;
69774
71532
  userId: string;
69775
71533
  claims: import("@supabase/auth-js").User;
@@ -72631,6 +74389,84 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
72631
74389
  };
72632
74390
  Relationships: [];
72633
74391
  };
74392
+ delivery_notes: {
74393
+ Row: {
74394
+ byte_size: number | null;
74395
+ connection_id: string | null;
74396
+ content_type: string;
74397
+ created_at: string;
74398
+ error_message: string | null;
74399
+ fetched_at: string | null;
74400
+ fulfillment_order_id: string | null;
74401
+ http_status: number | null;
74402
+ id: string;
74403
+ label_code: string | null;
74404
+ letter: string | null;
74405
+ load_carrier_index: number | null;
74406
+ load_carrier_type: string | null;
74407
+ order_id: string | null;
74408
+ order_number: string | null;
74409
+ packages: number | null;
74410
+ source: string;
74411
+ status: string;
74412
+ storage_bucket: string;
74413
+ storage_path: string | null;
74414
+ updated_at: string;
74415
+ };
74416
+ Insert: {
74417
+ byte_size?: number | null;
74418
+ connection_id?: string | null;
74419
+ content_type?: string;
74420
+ created_at?: string;
74421
+ error_message?: string | null;
74422
+ fetched_at?: string | null;
74423
+ fulfillment_order_id?: string | null;
74424
+ http_status?: number | null;
74425
+ id?: string;
74426
+ label_code?: string | null;
74427
+ letter?: string | null;
74428
+ load_carrier_index?: number | null;
74429
+ load_carrier_type?: string | null;
74430
+ order_id?: string | null;
74431
+ order_number?: string | null;
74432
+ packages?: number | null;
74433
+ source?: string;
74434
+ status?: string;
74435
+ storage_bucket?: string;
74436
+ storage_path?: string | null;
74437
+ updated_at?: string;
74438
+ };
74439
+ Update: {
74440
+ byte_size?: number | null;
74441
+ connection_id?: string | null;
74442
+ content_type?: string;
74443
+ created_at?: string;
74444
+ error_message?: string | null;
74445
+ fetched_at?: string | null;
74446
+ fulfillment_order_id?: string | null;
74447
+ http_status?: number | null;
74448
+ id?: string;
74449
+ label_code?: string | null;
74450
+ letter?: string | null;
74451
+ load_carrier_index?: number | null;
74452
+ load_carrier_type?: string | null;
74453
+ order_id?: string | null;
74454
+ order_number?: string | null;
74455
+ packages?: number | null;
74456
+ source?: string;
74457
+ status?: string;
74458
+ storage_bucket?: string;
74459
+ storage_path?: string | null;
74460
+ updated_at?: string;
74461
+ };
74462
+ Relationships: [{
74463
+ foreignKeyName: "delivery_notes_order_id_fkey";
74464
+ columns: ["order_id"];
74465
+ isOneToOne: false;
74466
+ referencedRelation: "orders";
74467
+ referencedColumns: ["id"];
74468
+ }];
74469
+ };
72634
74470
  document_bronregels: {
72635
74471
  Row: {
72636
74472
  bron: string;
@@ -75684,10 +77520,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75684
77520
  };
75685
77521
  floriday_connections: {
75686
77522
  Row: {
75687
- access_token: string | null;
75688
77523
  api_key: string;
75689
- client_id: string;
75690
- client_secret: string;
75691
77524
  created_at: string;
75692
77525
  customers_endpoint: string | null;
75693
77526
  environment: string;
@@ -75702,10 +77535,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75702
77535
  updated_at: string;
75703
77536
  };
75704
77537
  Insert: {
75705
- access_token?: string | null;
75706
77538
  api_key: string;
75707
- client_id: string;
75708
- client_secret: string;
75709
77539
  created_at?: string;
75710
77540
  customers_endpoint?: string | null;
75711
77541
  environment: string;
@@ -75720,10 +77550,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75720
77550
  updated_at?: string;
75721
77551
  };
75722
77552
  Update: {
75723
- access_token?: string | null;
75724
77553
  api_key?: string;
75725
- client_id?: string;
75726
- client_secret?: string;
75727
77554
  created_at?: string;
75728
77555
  customers_endpoint?: string | null;
75729
77556
  environment?: string;
@@ -75807,6 +77634,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75807
77634
  attempts: number;
75808
77635
  connection_id: string;
75809
77636
  created_at: string;
77637
+ dead_lettered_at: string | null;
75810
77638
  desired_available: boolean | null;
75811
77639
  gateway_attempt_id: string | null;
75812
77640
  id: string;
@@ -75815,9 +77643,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75815
77643
  locked_by: string | null;
75816
77644
  next_attempt_at: string;
75817
77645
  number_of_pieces: number;
77646
+ product_id: string | null;
75818
77647
  sent_at: string | null;
75819
77648
  status: string;
77649
+ stock_mode: string | null;
75820
77650
  superseded_by: string | null;
77651
+ target_week: number | null;
77652
+ target_year: number | null;
75821
77653
  trade_item_id: string;
75822
77654
  updated_at: string;
75823
77655
  user_id: string;
@@ -75826,6 +77658,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75826
77658
  attempts?: number;
75827
77659
  connection_id: string;
75828
77660
  created_at?: string;
77661
+ dead_lettered_at?: string | null;
75829
77662
  desired_available?: boolean | null;
75830
77663
  gateway_attempt_id?: string | null;
75831
77664
  id?: string;
@@ -75834,9 +77667,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75834
77667
  locked_by?: string | null;
75835
77668
  next_attempt_at?: string;
75836
77669
  number_of_pieces?: number;
77670
+ product_id?: string | null;
75837
77671
  sent_at?: string | null;
75838
77672
  status?: string;
77673
+ stock_mode?: string | null;
75839
77674
  superseded_by?: string | null;
77675
+ target_week?: number | null;
77676
+ target_year?: number | null;
75840
77677
  trade_item_id: string;
75841
77678
  updated_at?: string;
75842
77679
  user_id: string;
@@ -75845,6 +77682,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75845
77682
  attempts?: number;
75846
77683
  connection_id?: string;
75847
77684
  created_at?: string;
77685
+ dead_lettered_at?: string | null;
75848
77686
  desired_available?: boolean | null;
75849
77687
  gateway_attempt_id?: string | null;
75850
77688
  id?: string;
@@ -75853,9 +77691,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75853
77691
  locked_by?: string | null;
75854
77692
  next_attempt_at?: string;
75855
77693
  number_of_pieces?: number;
77694
+ product_id?: string | null;
75856
77695
  sent_at?: string | null;
75857
77696
  status?: string;
77697
+ stock_mode?: string | null;
75858
77698
  superseded_by?: string | null;
77699
+ target_week?: number | null;
77700
+ target_year?: number | null;
75859
77701
  trade_item_id?: string;
75860
77702
  updated_at?: string;
75861
77703
  user_id?: string;
@@ -76264,6 +78106,87 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
76264
78106
  referencedColumns: ["id"];
76265
78107
  }];
76266
78108
  };
78109
+ floriday_inventory_settings: {
78110
+ Row: {
78111
+ buffer_quantity: number;
78112
+ connection_id: string;
78113
+ created_at: string;
78114
+ desired_availability: boolean;
78115
+ desired_quantity: number;
78116
+ fixed_quantity: number | null;
78117
+ floriday_trade_item_id: string | null;
78118
+ id: string;
78119
+ last_confirmed_at: string | null;
78120
+ last_enqueued_at: string | null;
78121
+ last_published_at: string | null;
78122
+ last_sync_error: string | null;
78123
+ manual_quantity: number | null;
78124
+ maximum_quantity: number | null;
78125
+ product_id: string;
78126
+ quantity_control: string;
78127
+ remote_available: boolean | null;
78128
+ remote_checked_at: string | null;
78129
+ remote_quantity: number | null;
78130
+ stock_mode: string;
78131
+ sync_status: string;
78132
+ updated_at: string;
78133
+ updated_by: string | null;
78134
+ user_id: string;
78135
+ };
78136
+ Insert: {
78137
+ buffer_quantity?: number;
78138
+ connection_id: string;
78139
+ created_at?: string;
78140
+ desired_availability?: boolean;
78141
+ desired_quantity?: number;
78142
+ fixed_quantity?: number | null;
78143
+ floriday_trade_item_id?: string | null;
78144
+ id?: string;
78145
+ last_confirmed_at?: string | null;
78146
+ last_enqueued_at?: string | null;
78147
+ last_published_at?: string | null;
78148
+ last_sync_error?: string | null;
78149
+ manual_quantity?: number | null;
78150
+ maximum_quantity?: number | null;
78151
+ product_id: string;
78152
+ quantity_control?: string;
78153
+ remote_available?: boolean | null;
78154
+ remote_checked_at?: string | null;
78155
+ remote_quantity?: number | null;
78156
+ stock_mode?: string;
78157
+ sync_status?: string;
78158
+ updated_at?: string;
78159
+ updated_by?: string | null;
78160
+ user_id: string;
78161
+ };
78162
+ Update: {
78163
+ buffer_quantity?: number;
78164
+ connection_id?: string;
78165
+ created_at?: string;
78166
+ desired_availability?: boolean;
78167
+ desired_quantity?: number;
78168
+ fixed_quantity?: number | null;
78169
+ floriday_trade_item_id?: string | null;
78170
+ id?: string;
78171
+ last_confirmed_at?: string | null;
78172
+ last_enqueued_at?: string | null;
78173
+ last_published_at?: string | null;
78174
+ last_sync_error?: string | null;
78175
+ manual_quantity?: number | null;
78176
+ maximum_quantity?: number | null;
78177
+ product_id?: string;
78178
+ quantity_control?: string;
78179
+ remote_available?: boolean | null;
78180
+ remote_checked_at?: string | null;
78181
+ remote_quantity?: number | null;
78182
+ stock_mode?: string;
78183
+ sync_status?: string;
78184
+ updated_at?: string;
78185
+ updated_by?: string | null;
78186
+ user_id?: string;
78187
+ };
78188
+ Relationships: [];
78189
+ };
76267
78190
  floriday_invoices_cache: {
76268
78191
  Row: {
76269
78192
  buyer_organization_id: string | null;
@@ -76552,6 +78475,39 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
76552
78475
  };
76553
78476
  Relationships: [];
76554
78477
  };
78478
+ floriday_sales_order_ingest: {
78479
+ Row: {
78480
+ connection_id: string;
78481
+ created_at: string;
78482
+ id: string;
78483
+ impact: import("../integrations/supabase/types").Json;
78484
+ order_status: string | null;
78485
+ order_version: number;
78486
+ processed_at: string;
78487
+ sales_order_id: string;
78488
+ };
78489
+ Insert: {
78490
+ connection_id: string;
78491
+ created_at?: string;
78492
+ id?: string;
78493
+ impact?: import("../integrations/supabase/types").Json;
78494
+ order_status?: string | null;
78495
+ order_version?: number;
78496
+ processed_at?: string;
78497
+ sales_order_id: string;
78498
+ };
78499
+ Update: {
78500
+ connection_id?: string;
78501
+ created_at?: string;
78502
+ id?: string;
78503
+ impact?: import("../integrations/supabase/types").Json;
78504
+ order_status?: string | null;
78505
+ order_version?: number;
78506
+ processed_at?: string;
78507
+ sales_order_id?: string;
78508
+ };
78509
+ Relationships: [];
78510
+ };
76555
78511
  floriday_sales_strategies_cache: {
76556
78512
  Row: {
76557
78513
  connection_id: string;
@@ -76651,6 +78607,39 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
76651
78607
  };
76652
78608
  Relationships: [];
76653
78609
  };
78610
+ floriday_sync_cursors: {
78611
+ Row: {
78612
+ connection_id: string;
78613
+ created_at: string;
78614
+ id: string;
78615
+ last_error: string | null;
78616
+ last_sync_at: string | null;
78617
+ resource_type: string;
78618
+ sequence_number: number;
78619
+ updated_at: string;
78620
+ };
78621
+ Insert: {
78622
+ connection_id: string;
78623
+ created_at?: string;
78624
+ id?: string;
78625
+ last_error?: string | null;
78626
+ last_sync_at?: string | null;
78627
+ resource_type: string;
78628
+ sequence_number?: number;
78629
+ updated_at?: string;
78630
+ };
78631
+ Update: {
78632
+ connection_id?: string;
78633
+ created_at?: string;
78634
+ id?: string;
78635
+ last_error?: string | null;
78636
+ last_sync_at?: string | null;
78637
+ resource_type?: string;
78638
+ sequence_number?: number;
78639
+ updated_at?: string;
78640
+ };
78641
+ Relationships: [];
78642
+ };
76654
78643
  floriday_sync_state: {
76655
78644
  Row: {
76656
78645
  connection_id: string;
@@ -77341,6 +79330,42 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
77341
79330
  };
77342
79331
  Relationships: [];
77343
79332
  };
79333
+ inventory_stock_snapshots: {
79334
+ Row: {
79335
+ connection_id: string;
79336
+ created_at: string;
79337
+ erp_available_quantity: number;
79338
+ floriday_desired_quantity: number;
79339
+ floriday_remote_quantity: number | null;
79340
+ granularity: string;
79341
+ id: string;
79342
+ snapshot_at: string;
79343
+ user_id: string | null;
79344
+ };
79345
+ Insert: {
79346
+ connection_id: string;
79347
+ created_at?: string;
79348
+ erp_available_quantity?: number;
79349
+ floriday_desired_quantity?: number;
79350
+ floriday_remote_quantity?: number | null;
79351
+ granularity?: string;
79352
+ id?: string;
79353
+ snapshot_at?: string;
79354
+ user_id?: string | null;
79355
+ };
79356
+ Update: {
79357
+ connection_id?: string;
79358
+ created_at?: string;
79359
+ erp_available_quantity?: number;
79360
+ floriday_desired_quantity?: number;
79361
+ floriday_remote_quantity?: number | null;
79362
+ granularity?: string;
79363
+ id?: string;
79364
+ snapshot_at?: string;
79365
+ user_id?: string | null;
79366
+ };
79367
+ Relationships: [];
79368
+ };
77344
79369
  invoice_items: {
77345
79370
  Row: {
77346
79371
  created_at: string;
@@ -83356,6 +85381,39 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83356
85381
  };
83357
85382
  Relationships: [];
83358
85383
  };
85384
+ print_dedupe_events: {
85385
+ Row: {
85386
+ bestaande_job_id: string | null;
85387
+ created_at: string;
85388
+ detail: string | null;
85389
+ documentnaam: string | null;
85390
+ documenttype: string | null;
85391
+ id: string;
85392
+ idempotentie_sleutel: string;
85393
+ reden: string;
85394
+ };
85395
+ Insert: {
85396
+ bestaande_job_id?: string | null;
85397
+ created_at?: string;
85398
+ detail?: string | null;
85399
+ documentnaam?: string | null;
85400
+ documenttype?: string | null;
85401
+ id?: string;
85402
+ idempotentie_sleutel: string;
85403
+ reden: string;
85404
+ };
85405
+ Update: {
85406
+ bestaande_job_id?: string | null;
85407
+ created_at?: string;
85408
+ detail?: string | null;
85409
+ documentnaam?: string | null;
85410
+ documenttype?: string | null;
85411
+ id?: string;
85412
+ idempotentie_sleutel?: string;
85413
+ reden?: string;
85414
+ };
85415
+ Relationships: [];
85416
+ };
83359
85417
  print_job_logs: {
83360
85418
  Row: {
83361
85419
  created_at: string;
@@ -83406,6 +85464,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83406
85464
  is_herprint: boolean;
83407
85465
  kopieen: number;
83408
85466
  layout_id: string | null;
85467
+ lokaal_opgeslagen_op: string | null;
85468
+ lokale_pdf_fout: string | null;
85469
+ lokale_pdf_status: string | null;
83409
85470
  opgepakt_op: string | null;
83410
85471
  paginas: number;
83411
85472
  payload: import("../integrations/supabase/types").Json;
@@ -83414,6 +85475,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83414
85475
  pogingen: number;
83415
85476
  printer_id: string | null;
83416
85477
  render_html: string | null;
85478
+ resultaat_pdf_base64: string | null;
83417
85479
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83418
85480
  updated_at: string;
83419
85481
  volgende_poging: string | null;
@@ -83438,6 +85500,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83438
85500
  is_herprint?: boolean;
83439
85501
  kopieen?: number;
83440
85502
  layout_id?: string | null;
85503
+ lokaal_opgeslagen_op?: string | null;
85504
+ lokale_pdf_fout?: string | null;
85505
+ lokale_pdf_status?: string | null;
83441
85506
  opgepakt_op?: string | null;
83442
85507
  paginas?: number;
83443
85508
  payload?: import("../integrations/supabase/types").Json;
@@ -83446,6 +85511,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83446
85511
  pogingen?: number;
83447
85512
  printer_id?: string | null;
83448
85513
  render_html?: string | null;
85514
+ resultaat_pdf_base64?: string | null;
83449
85515
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83450
85516
  updated_at?: string;
83451
85517
  volgende_poging?: string | null;
@@ -83470,6 +85536,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83470
85536
  is_herprint?: boolean;
83471
85537
  kopieen?: number;
83472
85538
  layout_id?: string | null;
85539
+ lokaal_opgeslagen_op?: string | null;
85540
+ lokale_pdf_fout?: string | null;
85541
+ lokale_pdf_status?: string | null;
83473
85542
  opgepakt_op?: string | null;
83474
85543
  paginas?: number;
83475
85544
  payload?: import("../integrations/supabase/types").Json;
@@ -83478,6 +85547,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83478
85547
  pogingen?: number;
83479
85548
  printer_id?: string | null;
83480
85549
  render_html?: string | null;
85550
+ resultaat_pdf_base64?: string | null;
83481
85551
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83482
85552
  updated_at?: string;
83483
85553
  volgende_poging?: string | null;
@@ -83596,6 +85666,39 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83596
85666
  };
83597
85667
  Relationships: [];
83598
85668
  };
85669
+ print_preview_events: {
85670
+ Row: {
85671
+ code: string | null;
85672
+ created_at: string;
85673
+ detail: import("../integrations/supabase/types").Json;
85674
+ id: string;
85675
+ queue_item_id: string | null;
85676
+ reden: string | null;
85677
+ station_slug: string | null;
85678
+ uitkomst: string;
85679
+ };
85680
+ Insert: {
85681
+ code?: string | null;
85682
+ created_at?: string;
85683
+ detail?: import("../integrations/supabase/types").Json;
85684
+ id?: string;
85685
+ queue_item_id?: string | null;
85686
+ reden?: string | null;
85687
+ station_slug?: string | null;
85688
+ uitkomst?: string;
85689
+ };
85690
+ Update: {
85691
+ code?: string | null;
85692
+ created_at?: string;
85693
+ detail?: import("../integrations/supabase/types").Json;
85694
+ id?: string;
85695
+ queue_item_id?: string | null;
85696
+ reden?: string | null;
85697
+ station_slug?: string | null;
85698
+ uitkomst?: string;
85699
+ };
85700
+ Relationships: [];
85701
+ };
83599
85702
  print_queue_runners: {
83600
85703
  Row: {
83601
85704
  actief: boolean;
@@ -83835,6 +85938,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83835
85938
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
83836
85939
  online: boolean;
83837
85940
  papierformaat: string;
85941
+ pdf_map: string | null;
83838
85942
  poort: number | null;
83839
85943
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83840
85944
  systeemnaam: string;
@@ -83860,6 +85964,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83860
85964
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83861
85965
  online?: boolean;
83862
85966
  papierformaat?: string;
85967
+ pdf_map?: string | null;
83863
85968
  poort?: number | null;
83864
85969
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83865
85970
  systeemnaam?: string;
@@ -83885,6 +85990,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83885
85990
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83886
85991
  online?: boolean;
83887
85992
  papierformaat?: string;
85993
+ pdf_map?: string | null;
83888
85994
  poort?: number | null;
83889
85995
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83890
85996
  systeemnaam?: string;
@@ -86454,6 +88560,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
86454
88560
  };
86455
88561
  trade_item_stock: {
86456
88562
  Row: {
88563
+ change_source: string;
86457
88564
  connection_id: string;
86458
88565
  created_at: string;
86459
88566
  id: string;
@@ -86467,6 +88574,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
86467
88574
  user_id: string;
86468
88575
  };
86469
88576
  Insert: {
88577
+ change_source?: string;
86470
88578
  connection_id: string;
86471
88579
  created_at?: string;
86472
88580
  id?: string;
@@ -86480,6 +88588,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
86480
88588
  user_id: string;
86481
88589
  };
86482
88590
  Update: {
88591
+ change_source?: string;
86483
88592
  connection_id?: string;
86484
88593
  created_at?: string;
86485
88594
  id?: string;
@@ -90080,6 +92189,18 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90080
92189
  Args: never;
90081
92190
  Returns: number;
90082
92191
  };
92192
+ calculate_floriday_desired_stock: {
92193
+ Args: {
92194
+ p_connection_id: string;
92195
+ p_product_id: string;
92196
+ };
92197
+ Returns: {
92198
+ desired_availability: boolean;
92199
+ desired_quantity: number;
92200
+ erp_available: number;
92201
+ stock_mode: string;
92202
+ }[];
92203
+ };
90083
92204
  calculate_layer_stock: {
90084
92205
  Args: {
90085
92206
  p_product_id: string;
@@ -90141,6 +92262,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90141
92262
  is_herprint: boolean;
90142
92263
  kopieen: number;
90143
92264
  layout_id: string | null;
92265
+ lokaal_opgeslagen_op: string | null;
92266
+ lokale_pdf_fout: string | null;
92267
+ lokale_pdf_status: string | null;
90144
92268
  opgepakt_op: string | null;
90145
92269
  paginas: number;
90146
92270
  payload: import("../integrations/supabase/types").Json;
@@ -90149,6 +92273,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90149
92273
  pogingen: number;
90150
92274
  printer_id: string | null;
90151
92275
  render_html: string | null;
92276
+ resultaat_pdf_base64: string | null;
90152
92277
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90153
92278
  updated_at: string;
90154
92279
  volgende_poging: string | null;
@@ -90170,6 +92295,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90170
92295
  attempts: number;
90171
92296
  connection_id: string;
90172
92297
  created_at: string;
92298
+ dead_lettered_at: string | null;
90173
92299
  desired_available: boolean | null;
90174
92300
  gateway_attempt_id: string | null;
90175
92301
  id: string;
@@ -90178,9 +92304,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90178
92304
  locked_by: string | null;
90179
92305
  next_attempt_at: string;
90180
92306
  number_of_pieces: number;
92307
+ product_id: string | null;
90181
92308
  sent_at: string | null;
90182
92309
  status: string;
92310
+ stock_mode: string | null;
90183
92311
  superseded_by: string | null;
92312
+ target_week: number | null;
92313
+ target_year: number | null;
90184
92314
  trade_item_id: string;
90185
92315
  updated_at: string;
90186
92316
  user_id: string;
@@ -90240,6 +92370,53 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90240
92370
  isSetofReturn: true;
90241
92371
  };
90242
92372
  };
92373
+ claim_pdf_print_jobs: {
92374
+ Args: {
92375
+ _max?: number;
92376
+ };
92377
+ Returns: {
92378
+ agent_id: string | null;
92379
+ bron_job_id: string | null;
92380
+ created_at: string;
92381
+ documentnaam: string;
92382
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
92383
+ extern_job_id: string | null;
92384
+ foutmelding: string | null;
92385
+ gebruiker_id: string | null;
92386
+ gebruiker_naam: string;
92387
+ gebruikte_bron: string | null;
92388
+ gebruikte_layout_id: string | null;
92389
+ gestart_op: string | null;
92390
+ herkomst: string | null;
92391
+ id: string;
92392
+ idempotentie_sleutel: string | null;
92393
+ is_herprint: boolean;
92394
+ kopieen: number;
92395
+ layout_id: string | null;
92396
+ lokaal_opgeslagen_op: string | null;
92397
+ lokale_pdf_fout: string | null;
92398
+ lokale_pdf_status: string | null;
92399
+ opgepakt_op: string | null;
92400
+ paginas: number;
92401
+ payload: import("../integrations/supabase/types").Json;
92402
+ pdf_base64: string | null;
92403
+ pdf_url: string | null;
92404
+ pogingen: number;
92405
+ printer_id: string | null;
92406
+ render_html: string | null;
92407
+ resultaat_pdf_base64: string | null;
92408
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
92409
+ updated_at: string;
92410
+ volgende_poging: string | null;
92411
+ voltooid_op: string | null;
92412
+ }[];
92413
+ SetofOptions: {
92414
+ from: "*";
92415
+ to: "print_jobs";
92416
+ isOneToOne: false;
92417
+ isSetofReturn: true;
92418
+ };
92419
+ };
90243
92420
  claim_print_jobs: {
90244
92421
  Args: {
90245
92422
  _agent_id: string;
@@ -90264,6 +92441,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90264
92441
  is_herprint: boolean;
90265
92442
  kopieen: number;
90266
92443
  layout_id: string | null;
92444
+ lokaal_opgeslagen_op: string | null;
92445
+ lokale_pdf_fout: string | null;
92446
+ lokale_pdf_status: string | null;
90267
92447
  opgepakt_op: string | null;
90268
92448
  paginas: number;
90269
92449
  payload: import("../integrations/supabase/types").Json;
@@ -90272,6 +92452,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90272
92452
  pogingen: number;
90273
92453
  printer_id: string | null;
90274
92454
  render_html: string | null;
92455
+ resultaat_pdf_base64: string | null;
90275
92456
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90276
92457
  updated_at: string;
90277
92458
  volgende_poging: string | null;
@@ -90412,6 +92593,8 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90412
92593
  order_id: string;
90413
92594
  order_source: string;
90414
92595
  pick_date: string;
92596
+ printed_at: string;
92597
+ printed_today: boolean;
90415
92598
  status: string;
90416
92599
  }[];
90417
92600
  };
@@ -90608,6 +92791,24 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90608
92791
  };
90609
92792
  Returns: string;
90610
92793
  };
92794
+ floriday_capture_stock_snapshot: {
92795
+ Args: never;
92796
+ Returns: number;
92797
+ };
92798
+ floriday_cleanup_stock_queue_v2: {
92799
+ Args: never;
92800
+ Returns: undefined;
92801
+ };
92802
+ floriday_compact_stock_snapshots: {
92803
+ Args: never;
92804
+ Returns: undefined;
92805
+ };
92806
+ floriday_default_owner: {
92807
+ Args: {
92808
+ p_connection_id: string;
92809
+ };
92810
+ Returns: string;
92811
+ };
90611
92812
  floriday_effective_price: {
90612
92813
  Args: {
90613
92814
  _buyer_id: string;
@@ -90625,6 +92826,22 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90625
92826
  source_id: string;
90626
92827
  }[];
90627
92828
  };
92829
+ floriday_fill_publish_horizon: {
92830
+ Args: never;
92831
+ Returns: number;
92832
+ };
92833
+ floriday_publish_horizon_weeks: {
92834
+ Args: never;
92835
+ Returns: number;
92836
+ };
92837
+ floriday_recompute_inventory: {
92838
+ Args: {
92839
+ p_connection_id: string;
92840
+ p_force?: boolean;
92841
+ p_product_id: string;
92842
+ };
92843
+ Returns: undefined;
92844
+ };
90628
92845
  format_cart_number: {
90629
92846
  Args: {
90630
92847
  p_pick_date: string;
@@ -91120,6 +93337,10 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91120
93337
  };
91121
93338
  Returns: number;
91122
93339
  };
93340
+ logistics_cancel_orphan_tasks: {
93341
+ Args: never;
93342
+ Returns: number;
93343
+ };
91123
93344
  logistics_capacity_day_check: {
91124
93345
  Args: {
91125
93346
  p_from?: string;
@@ -91140,6 +93361,25 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91140
93361
  };
91141
93362
  Returns: number;
91142
93363
  };
93364
+ logistics_cart_index: {
93365
+ Args: {
93366
+ p_from?: string;
93367
+ p_to?: string;
93368
+ };
93369
+ Returns: {
93370
+ cart_id: string;
93371
+ cart_index: number;
93372
+ cart_label: string;
93373
+ is_shared: boolean;
93374
+ order_number: string;
93375
+ order_source: string;
93376
+ order_uuid: string;
93377
+ pick_date: string;
93378
+ printed_at: string;
93379
+ shifted: boolean;
93380
+ task_status: string;
93381
+ }[];
93382
+ };
91143
93383
  logistics_check_order_allowed: {
91144
93384
  Args: {
91145
93385
  p_lines: import("../integrations/supabase/types").Json;
@@ -91288,6 +93528,17 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91288
93528
  isSetofReturn: false;
91289
93529
  };
91290
93530
  };
93531
+ logistics_consistency_check: {
93532
+ Args: never;
93533
+ Returns: {
93534
+ agenda_carts: number;
93535
+ control_carts: number;
93536
+ ok: boolean;
93537
+ orphan_tasks: number;
93538
+ pick_date: string;
93539
+ raw_carts: number;
93540
+ }[];
93541
+ };
91291
93542
  logistics_delay_customer_email: {
91292
93543
  Args: {
91293
93544
  p_customer: string;
@@ -91377,6 +93628,16 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91377
93628
  isSetofReturn: false;
91378
93629
  };
91379
93630
  };
93631
+ logistics_floriday_cart_plan: {
93632
+ Args: {
93633
+ p_order_id: string;
93634
+ };
93635
+ Returns: {
93636
+ carrier_type: string;
93637
+ idx: number;
93638
+ packages: number;
93639
+ }[];
93640
+ };
91380
93641
  logistics_floriday_claim_pushes: {
91381
93642
  Args: {
91382
93643
  _lease_seconds?: number;
@@ -91481,6 +93742,25 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91481
93742
  };
91482
93743
  Returns: number;
91483
93744
  };
93745
+ logistics_order_overview: {
93746
+ Args: {
93747
+ p_from?: string;
93748
+ p_to?: string;
93749
+ };
93750
+ Returns: {
93751
+ cart_count: number;
93752
+ customer_name: string;
93753
+ delivery_date: string;
93754
+ order_number: string;
93755
+ order_source: string;
93756
+ order_uuid: string;
93757
+ pick_date: string;
93758
+ plant_count: number;
93759
+ printed_at: string;
93760
+ shifted: boolean;
93761
+ status: string;
93762
+ }[];
93763
+ };
91484
93764
  logistics_order_pick_day: {
91485
93765
  Args: {
91486
93766
  p_order_ref: string;
@@ -91493,6 +93773,22 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91493
93773
  };
91494
93774
  Returns: string;
91495
93775
  };
93776
+ logistics_pick_agenda: {
93777
+ Args: {
93778
+ p_from?: string;
93779
+ p_to?: string;
93780
+ };
93781
+ Returns: {
93782
+ cart_count: number;
93783
+ in_preparation: number;
93784
+ order_count: number;
93785
+ orders: import("../integrations/supabase/types").Json;
93786
+ pick_date: string;
93787
+ plant_count: number;
93788
+ ready: number;
93789
+ shifted_count: number;
93790
+ }[];
93791
+ };
91496
93792
  logistics_pick_email_purpose: {
91497
93793
  Args: never;
91498
93794
  Returns: string;
@@ -91547,6 +93843,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91547
93843
  };
91548
93844
  Returns: undefined;
91549
93845
  };
93846
+ logistics_plan_floriday_order: {
93847
+ Args: {
93848
+ p_buffer_id?: string;
93849
+ p_order_id: string;
93850
+ };
93851
+ Returns: number;
93852
+ };
91550
93853
  logistics_plan_impact_orders: {
91551
93854
  Args: {
91552
93855
  p_order_id: string;
@@ -91652,6 +93955,15 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91652
93955
  };
91653
93956
  Returns: import("../integrations/supabase/types").Json;
91654
93957
  };
93958
+ logistics_resolve_pick_document: {
93959
+ Args: {
93960
+ _is_herprint: boolean;
93961
+ _queue_item_id: string;
93962
+ _session_id: string;
93963
+ _voorbeeld: boolean;
93964
+ };
93965
+ Returns: import("../integrations/supabase/types").Json;
93966
+ };
91655
93967
  logistics_resolve_settings: {
91656
93968
  Args: {
91657
93969
  p_config_id: string;
@@ -92092,6 +94404,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92092
94404
  };
92093
94405
  pick_enqueue_print_job: {
92094
94406
  Args: {
94407
+ _is_herprint?: boolean;
92095
94408
  _printer_id?: string;
92096
94409
  _queue_item_id: string;
92097
94410
  _session_id?: string;
@@ -92105,6 +94418,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92105
94418
  };
92106
94419
  Returns: import("../integrations/supabase/types").Json;
92107
94420
  };
94421
+ pick_preview_job: {
94422
+ Args: {
94423
+ _queue_item_id: string;
94424
+ _station_slug: string;
94425
+ };
94426
+ Returns: import("../integrations/supabase/types").Json;
94427
+ };
92108
94428
  pick_print_job_status: {
92109
94429
  Args: {
92110
94430
  _job_id: string;
@@ -92282,6 +94602,24 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92282
94602
  };
92283
94603
  Returns: undefined;
92284
94604
  };
94605
+ print_preview_toestaan: {
94606
+ Args: {
94607
+ _max?: number;
94608
+ _queue_item_id: string;
94609
+ _station_slug: string;
94610
+ _venster_sec?: number;
94611
+ };
94612
+ Returns: import("../integrations/supabase/types").Json;
94613
+ };
94614
+ print_preview_weiger: {
94615
+ Args: {
94616
+ _code: string;
94617
+ _queue_item_id: string;
94618
+ _reden: string;
94619
+ _station_slug: string;
94620
+ };
94621
+ Returns: undefined;
94622
+ };
92285
94623
  process_logistics_event: {
92286
94624
  Args: {
92287
94625
  p_event_id: string;
@@ -92436,6 +94774,12 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92436
94774
  };
92437
94775
  Returns: string;
92438
94776
  };
94777
+ resolve_print_job_printer_id: {
94778
+ Args: {
94779
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
94780
+ };
94781
+ Returns: string;
94782
+ };
92439
94783
  resolve_product_id_for_item: {
92440
94784
  Args: {
92441
94785
  p_product_name: string;
@@ -93027,7 +95371,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
93027
95371
  };
93028
95372
  CompositeTypes: { [_ in never]: never; };
93029
95373
  }, {
93030
- PostgrestVersion: "14.17";
95374
+ PostgrestVersion: "14.5";
93031
95375
  }>;
93032
95376
  userId: string;
93033
95377
  claims: import("@supabase/auth-js").User;