@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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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 checkOrderStockAllowed: import("@tanstack/start-client-core
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;
@@ -26113,6 +26699,84 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
26113
26699
  };
26114
26700
  Relationships: [];
26115
26701
  };
26702
+ delivery_notes: {
26703
+ Row: {
26704
+ byte_size: number | null;
26705
+ connection_id: string | null;
26706
+ content_type: string;
26707
+ created_at: string;
26708
+ error_message: string | null;
26709
+ fetched_at: string | null;
26710
+ fulfillment_order_id: string | null;
26711
+ http_status: number | null;
26712
+ id: string;
26713
+ label_code: string | null;
26714
+ letter: string | null;
26715
+ load_carrier_index: number | null;
26716
+ load_carrier_type: string | null;
26717
+ order_id: string | null;
26718
+ order_number: string | null;
26719
+ packages: number | null;
26720
+ source: string;
26721
+ status: string;
26722
+ storage_bucket: string;
26723
+ storage_path: string | null;
26724
+ updated_at: string;
26725
+ };
26726
+ Insert: {
26727
+ byte_size?: number | null;
26728
+ connection_id?: string | null;
26729
+ content_type?: string;
26730
+ created_at?: string;
26731
+ error_message?: string | null;
26732
+ fetched_at?: string | null;
26733
+ fulfillment_order_id?: string | null;
26734
+ http_status?: number | null;
26735
+ id?: string;
26736
+ label_code?: string | null;
26737
+ letter?: string | null;
26738
+ load_carrier_index?: number | null;
26739
+ load_carrier_type?: string | null;
26740
+ order_id?: string | null;
26741
+ order_number?: string | null;
26742
+ packages?: number | null;
26743
+ source?: string;
26744
+ status?: string;
26745
+ storage_bucket?: string;
26746
+ storage_path?: string | null;
26747
+ updated_at?: string;
26748
+ };
26749
+ Update: {
26750
+ byte_size?: number | null;
26751
+ connection_id?: string | null;
26752
+ content_type?: string;
26753
+ created_at?: string;
26754
+ error_message?: string | null;
26755
+ fetched_at?: string | null;
26756
+ fulfillment_order_id?: string | null;
26757
+ http_status?: number | null;
26758
+ id?: string;
26759
+ label_code?: string | null;
26760
+ letter?: string | null;
26761
+ load_carrier_index?: number | null;
26762
+ load_carrier_type?: string | null;
26763
+ order_id?: string | null;
26764
+ order_number?: string | null;
26765
+ packages?: number | null;
26766
+ source?: string;
26767
+ status?: string;
26768
+ storage_bucket?: string;
26769
+ storage_path?: string | null;
26770
+ updated_at?: string;
26771
+ };
26772
+ Relationships: [{
26773
+ foreignKeyName: "delivery_notes_order_id_fkey";
26774
+ columns: ["order_id"];
26775
+ isOneToOne: false;
26776
+ referencedRelation: "orders";
26777
+ referencedColumns: ["id"];
26778
+ }];
26779
+ };
26116
26780
  document_bronregels: {
26117
26781
  Row: {
26118
26782
  bron: string;
@@ -29166,10 +29830,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29166
29830
  };
29167
29831
  floriday_connections: {
29168
29832
  Row: {
29169
- access_token: string | null;
29170
29833
  api_key: string;
29171
- client_id: string;
29172
- client_secret: string;
29173
29834
  created_at: string;
29174
29835
  customers_endpoint: string | null;
29175
29836
  environment: string;
@@ -29184,10 +29845,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29184
29845
  updated_at: string;
29185
29846
  };
29186
29847
  Insert: {
29187
- access_token?: string | null;
29188
29848
  api_key: string;
29189
- client_id: string;
29190
- client_secret: string;
29191
29849
  created_at?: string;
29192
29850
  customers_endpoint?: string | null;
29193
29851
  environment: string;
@@ -29202,10 +29860,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29202
29860
  updated_at?: string;
29203
29861
  };
29204
29862
  Update: {
29205
- access_token?: string | null;
29206
29863
  api_key?: string;
29207
- client_id?: string;
29208
- client_secret?: string;
29209
29864
  created_at?: string;
29210
29865
  customers_endpoint?: string | null;
29211
29866
  environment?: string;
@@ -29289,6 +29944,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29289
29944
  attempts: number;
29290
29945
  connection_id: string;
29291
29946
  created_at: string;
29947
+ dead_lettered_at: string | null;
29292
29948
  desired_available: boolean | null;
29293
29949
  gateway_attempt_id: string | null;
29294
29950
  id: string;
@@ -29297,9 +29953,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29297
29953
  locked_by: string | null;
29298
29954
  next_attempt_at: string;
29299
29955
  number_of_pieces: number;
29956
+ product_id: string | null;
29300
29957
  sent_at: string | null;
29301
29958
  status: string;
29959
+ stock_mode: string | null;
29302
29960
  superseded_by: string | null;
29961
+ target_week: number | null;
29962
+ target_year: number | null;
29303
29963
  trade_item_id: string;
29304
29964
  updated_at: string;
29305
29965
  user_id: string;
@@ -29308,6 +29968,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29308
29968
  attempts?: number;
29309
29969
  connection_id: string;
29310
29970
  created_at?: string;
29971
+ dead_lettered_at?: string | null;
29311
29972
  desired_available?: boolean | null;
29312
29973
  gateway_attempt_id?: string | null;
29313
29974
  id?: string;
@@ -29316,9 +29977,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29316
29977
  locked_by?: string | null;
29317
29978
  next_attempt_at?: string;
29318
29979
  number_of_pieces?: number;
29980
+ product_id?: string | null;
29319
29981
  sent_at?: string | null;
29320
29982
  status?: string;
29983
+ stock_mode?: string | null;
29321
29984
  superseded_by?: string | null;
29985
+ target_week?: number | null;
29986
+ target_year?: number | null;
29322
29987
  trade_item_id: string;
29323
29988
  updated_at?: string;
29324
29989
  user_id: string;
@@ -29327,6 +29992,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29327
29992
  attempts?: number;
29328
29993
  connection_id?: string;
29329
29994
  created_at?: string;
29995
+ dead_lettered_at?: string | null;
29330
29996
  desired_available?: boolean | null;
29331
29997
  gateway_attempt_id?: string | null;
29332
29998
  id?: string;
@@ -29335,9 +30001,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29335
30001
  locked_by?: string | null;
29336
30002
  next_attempt_at?: string;
29337
30003
  number_of_pieces?: number;
30004
+ product_id?: string | null;
29338
30005
  sent_at?: string | null;
29339
30006
  status?: string;
30007
+ stock_mode?: string | null;
29340
30008
  superseded_by?: string | null;
30009
+ target_week?: number | null;
30010
+ target_year?: number | null;
29341
30011
  trade_item_id?: string;
29342
30012
  updated_at?: string;
29343
30013
  user_id?: string;
@@ -29746,6 +30416,87 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29746
30416
  referencedColumns: ["id"];
29747
30417
  }];
29748
30418
  };
30419
+ floriday_inventory_settings: {
30420
+ Row: {
30421
+ buffer_quantity: number;
30422
+ connection_id: string;
30423
+ created_at: string;
30424
+ desired_availability: boolean;
30425
+ desired_quantity: number;
30426
+ fixed_quantity: number | null;
30427
+ floriday_trade_item_id: string | null;
30428
+ id: string;
30429
+ last_confirmed_at: string | null;
30430
+ last_enqueued_at: string | null;
30431
+ last_published_at: string | null;
30432
+ last_sync_error: string | null;
30433
+ manual_quantity: number | null;
30434
+ maximum_quantity: number | null;
30435
+ product_id: string;
30436
+ quantity_control: string;
30437
+ remote_available: boolean | null;
30438
+ remote_checked_at: string | null;
30439
+ remote_quantity: number | null;
30440
+ stock_mode: string;
30441
+ sync_status: string;
30442
+ updated_at: string;
30443
+ updated_by: string | null;
30444
+ user_id: string;
30445
+ };
30446
+ Insert: {
30447
+ buffer_quantity?: number;
30448
+ connection_id: string;
30449
+ created_at?: string;
30450
+ desired_availability?: boolean;
30451
+ desired_quantity?: number;
30452
+ fixed_quantity?: number | null;
30453
+ floriday_trade_item_id?: string | null;
30454
+ id?: string;
30455
+ last_confirmed_at?: string | null;
30456
+ last_enqueued_at?: string | null;
30457
+ last_published_at?: string | null;
30458
+ last_sync_error?: string | null;
30459
+ manual_quantity?: number | null;
30460
+ maximum_quantity?: number | null;
30461
+ product_id: string;
30462
+ quantity_control?: string;
30463
+ remote_available?: boolean | null;
30464
+ remote_checked_at?: string | null;
30465
+ remote_quantity?: number | null;
30466
+ stock_mode?: string;
30467
+ sync_status?: string;
30468
+ updated_at?: string;
30469
+ updated_by?: string | null;
30470
+ user_id: string;
30471
+ };
30472
+ Update: {
30473
+ buffer_quantity?: number;
30474
+ connection_id?: string;
30475
+ created_at?: string;
30476
+ desired_availability?: boolean;
30477
+ desired_quantity?: number;
30478
+ fixed_quantity?: number | null;
30479
+ floriday_trade_item_id?: string | null;
30480
+ id?: string;
30481
+ last_confirmed_at?: string | null;
30482
+ last_enqueued_at?: string | null;
30483
+ last_published_at?: string | null;
30484
+ last_sync_error?: string | null;
30485
+ manual_quantity?: number | null;
30486
+ maximum_quantity?: number | null;
30487
+ product_id?: string;
30488
+ quantity_control?: string;
30489
+ remote_available?: boolean | null;
30490
+ remote_checked_at?: string | null;
30491
+ remote_quantity?: number | null;
30492
+ stock_mode?: string;
30493
+ sync_status?: string;
30494
+ updated_at?: string;
30495
+ updated_by?: string | null;
30496
+ user_id?: string;
30497
+ };
30498
+ Relationships: [];
30499
+ };
29749
30500
  floriday_invoices_cache: {
29750
30501
  Row: {
29751
30502
  buyer_organization_id: string | null;
@@ -30034,6 +30785,39 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
30034
30785
  };
30035
30786
  Relationships: [];
30036
30787
  };
30788
+ floriday_sales_order_ingest: {
30789
+ Row: {
30790
+ connection_id: string;
30791
+ created_at: string;
30792
+ id: string;
30793
+ impact: import("../integrations/supabase/types").Json;
30794
+ order_status: string | null;
30795
+ order_version: number;
30796
+ processed_at: string;
30797
+ sales_order_id: string;
30798
+ };
30799
+ Insert: {
30800
+ connection_id: string;
30801
+ created_at?: string;
30802
+ id?: string;
30803
+ impact?: import("../integrations/supabase/types").Json;
30804
+ order_status?: string | null;
30805
+ order_version?: number;
30806
+ processed_at?: string;
30807
+ sales_order_id: string;
30808
+ };
30809
+ Update: {
30810
+ connection_id?: string;
30811
+ created_at?: string;
30812
+ id?: string;
30813
+ impact?: import("../integrations/supabase/types").Json;
30814
+ order_status?: string | null;
30815
+ order_version?: number;
30816
+ processed_at?: string;
30817
+ sales_order_id?: string;
30818
+ };
30819
+ Relationships: [];
30820
+ };
30037
30821
  floriday_sales_strategies_cache: {
30038
30822
  Row: {
30039
30823
  connection_id: string;
@@ -30133,6 +30917,39 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
30133
30917
  };
30134
30918
  Relationships: [];
30135
30919
  };
30920
+ floriday_sync_cursors: {
30921
+ Row: {
30922
+ connection_id: string;
30923
+ created_at: string;
30924
+ id: string;
30925
+ last_error: string | null;
30926
+ last_sync_at: string | null;
30927
+ resource_type: string;
30928
+ sequence_number: number;
30929
+ updated_at: string;
30930
+ };
30931
+ Insert: {
30932
+ connection_id: string;
30933
+ created_at?: string;
30934
+ id?: string;
30935
+ last_error?: string | null;
30936
+ last_sync_at?: string | null;
30937
+ resource_type: string;
30938
+ sequence_number?: number;
30939
+ updated_at?: string;
30940
+ };
30941
+ Update: {
30942
+ connection_id?: string;
30943
+ created_at?: string;
30944
+ id?: string;
30945
+ last_error?: string | null;
30946
+ last_sync_at?: string | null;
30947
+ resource_type?: string;
30948
+ sequence_number?: number;
30949
+ updated_at?: string;
30950
+ };
30951
+ Relationships: [];
30952
+ };
30136
30953
  floriday_sync_state: {
30137
30954
  Row: {
30138
30955
  connection_id: string;
@@ -30823,6 +31640,42 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
30823
31640
  };
30824
31641
  Relationships: [];
30825
31642
  };
31643
+ inventory_stock_snapshots: {
31644
+ Row: {
31645
+ connection_id: string;
31646
+ created_at: string;
31647
+ erp_available_quantity: number;
31648
+ floriday_desired_quantity: number;
31649
+ floriday_remote_quantity: number | null;
31650
+ granularity: string;
31651
+ id: string;
31652
+ snapshot_at: string;
31653
+ user_id: string | null;
31654
+ };
31655
+ Insert: {
31656
+ connection_id: string;
31657
+ created_at?: string;
31658
+ erp_available_quantity?: number;
31659
+ floriday_desired_quantity?: number;
31660
+ floriday_remote_quantity?: number | null;
31661
+ granularity?: string;
31662
+ id?: string;
31663
+ snapshot_at?: string;
31664
+ user_id?: string | null;
31665
+ };
31666
+ Update: {
31667
+ connection_id?: string;
31668
+ created_at?: string;
31669
+ erp_available_quantity?: number;
31670
+ floriday_desired_quantity?: number;
31671
+ floriday_remote_quantity?: number | null;
31672
+ granularity?: string;
31673
+ id?: string;
31674
+ snapshot_at?: string;
31675
+ user_id?: string | null;
31676
+ };
31677
+ Relationships: [];
31678
+ };
30826
31679
  invoice_items: {
30827
31680
  Row: {
30828
31681
  created_at: string;
@@ -36838,6 +37691,39 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36838
37691
  };
36839
37692
  Relationships: [];
36840
37693
  };
37694
+ print_dedupe_events: {
37695
+ Row: {
37696
+ bestaande_job_id: string | null;
37697
+ created_at: string;
37698
+ detail: string | null;
37699
+ documentnaam: string | null;
37700
+ documenttype: string | null;
37701
+ id: string;
37702
+ idempotentie_sleutel: string;
37703
+ reden: string;
37704
+ };
37705
+ Insert: {
37706
+ bestaande_job_id?: string | null;
37707
+ created_at?: string;
37708
+ detail?: string | null;
37709
+ documentnaam?: string | null;
37710
+ documenttype?: string | null;
37711
+ id?: string;
37712
+ idempotentie_sleutel: string;
37713
+ reden: string;
37714
+ };
37715
+ Update: {
37716
+ bestaande_job_id?: string | null;
37717
+ created_at?: string;
37718
+ detail?: string | null;
37719
+ documentnaam?: string | null;
37720
+ documenttype?: string | null;
37721
+ id?: string;
37722
+ idempotentie_sleutel?: string;
37723
+ reden?: string;
37724
+ };
37725
+ Relationships: [];
37726
+ };
36841
37727
  print_job_logs: {
36842
37728
  Row: {
36843
37729
  created_at: string;
@@ -36888,6 +37774,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36888
37774
  is_herprint: boolean;
36889
37775
  kopieen: number;
36890
37776
  layout_id: string | null;
37777
+ lokaal_opgeslagen_op: string | null;
37778
+ lokale_pdf_fout: string | null;
37779
+ lokale_pdf_status: string | null;
36891
37780
  opgepakt_op: string | null;
36892
37781
  paginas: number;
36893
37782
  payload: import("../integrations/supabase/types").Json;
@@ -36896,6 +37785,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36896
37785
  pogingen: number;
36897
37786
  printer_id: string | null;
36898
37787
  render_html: string | null;
37788
+ resultaat_pdf_base64: string | null;
36899
37789
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36900
37790
  updated_at: string;
36901
37791
  volgende_poging: string | null;
@@ -36920,6 +37810,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36920
37810
  is_herprint?: boolean;
36921
37811
  kopieen?: number;
36922
37812
  layout_id?: string | null;
37813
+ lokaal_opgeslagen_op?: string | null;
37814
+ lokale_pdf_fout?: string | null;
37815
+ lokale_pdf_status?: string | null;
36923
37816
  opgepakt_op?: string | null;
36924
37817
  paginas?: number;
36925
37818
  payload?: import("../integrations/supabase/types").Json;
@@ -36928,6 +37821,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36928
37821
  pogingen?: number;
36929
37822
  printer_id?: string | null;
36930
37823
  render_html?: string | null;
37824
+ resultaat_pdf_base64?: string | null;
36931
37825
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36932
37826
  updated_at?: string;
36933
37827
  volgende_poging?: string | null;
@@ -36952,6 +37846,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36952
37846
  is_herprint?: boolean;
36953
37847
  kopieen?: number;
36954
37848
  layout_id?: string | null;
37849
+ lokaal_opgeslagen_op?: string | null;
37850
+ lokale_pdf_fout?: string | null;
37851
+ lokale_pdf_status?: string | null;
36955
37852
  opgepakt_op?: string | null;
36956
37853
  paginas?: number;
36957
37854
  payload?: import("../integrations/supabase/types").Json;
@@ -36960,6 +37857,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
36960
37857
  pogingen?: number;
36961
37858
  printer_id?: string | null;
36962
37859
  render_html?: string | null;
37860
+ resultaat_pdf_base64?: string | null;
36963
37861
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36964
37862
  updated_at?: string;
36965
37863
  volgende_poging?: string | null;
@@ -37078,6 +37976,39 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
37078
37976
  };
37079
37977
  Relationships: [];
37080
37978
  };
37979
+ print_preview_events: {
37980
+ Row: {
37981
+ code: string | null;
37982
+ created_at: string;
37983
+ detail: import("../integrations/supabase/types").Json;
37984
+ id: string;
37985
+ queue_item_id: string | null;
37986
+ reden: string | null;
37987
+ station_slug: string | null;
37988
+ uitkomst: string;
37989
+ };
37990
+ Insert: {
37991
+ code?: string | null;
37992
+ created_at?: string;
37993
+ detail?: import("../integrations/supabase/types").Json;
37994
+ id?: string;
37995
+ queue_item_id?: string | null;
37996
+ reden?: string | null;
37997
+ station_slug?: string | null;
37998
+ uitkomst?: string;
37999
+ };
38000
+ Update: {
38001
+ code?: string | null;
38002
+ created_at?: string;
38003
+ detail?: import("../integrations/supabase/types").Json;
38004
+ id?: string;
38005
+ queue_item_id?: string | null;
38006
+ reden?: string | null;
38007
+ station_slug?: string | null;
38008
+ uitkomst?: string;
38009
+ };
38010
+ Relationships: [];
38011
+ };
37081
38012
  print_queue_runners: {
37082
38013
  Row: {
37083
38014
  actief: boolean;
@@ -37317,6 +38248,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
37317
38248
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37318
38249
  online: boolean;
37319
38250
  papierformaat: string;
38251
+ pdf_map: string | null;
37320
38252
  poort: number | null;
37321
38253
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37322
38254
  systeemnaam: string;
@@ -37342,6 +38274,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
37342
38274
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37343
38275
  online?: boolean;
37344
38276
  papierformaat?: string;
38277
+ pdf_map?: string | null;
37345
38278
  poort?: number | null;
37346
38279
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37347
38280
  systeemnaam?: string;
@@ -37367,6 +38300,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
37367
38300
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37368
38301
  online?: boolean;
37369
38302
  papierformaat?: string;
38303
+ pdf_map?: string | null;
37370
38304
  poort?: number | null;
37371
38305
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37372
38306
  systeemnaam?: string;
@@ -39936,6 +40870,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
39936
40870
  };
39937
40871
  trade_item_stock: {
39938
40872
  Row: {
40873
+ change_source: string;
39939
40874
  connection_id: string;
39940
40875
  created_at: string;
39941
40876
  id: string;
@@ -39949,6 +40884,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
39949
40884
  user_id: string;
39950
40885
  };
39951
40886
  Insert: {
40887
+ change_source?: string;
39952
40888
  connection_id: string;
39953
40889
  created_at?: string;
39954
40890
  id?: string;
@@ -39962,6 +40898,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
39962
40898
  user_id: string;
39963
40899
  };
39964
40900
  Update: {
40901
+ change_source?: string;
39965
40902
  connection_id?: string;
39966
40903
  created_at?: string;
39967
40904
  id?: string;
@@ -43562,6 +44499,18 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43562
44499
  Args: never;
43563
44500
  Returns: number;
43564
44501
  };
44502
+ calculate_floriday_desired_stock: {
44503
+ Args: {
44504
+ p_connection_id: string;
44505
+ p_product_id: string;
44506
+ };
44507
+ Returns: {
44508
+ desired_availability: boolean;
44509
+ desired_quantity: number;
44510
+ erp_available: number;
44511
+ stock_mode: string;
44512
+ }[];
44513
+ };
43565
44514
  calculate_layer_stock: {
43566
44515
  Args: {
43567
44516
  p_product_id: string;
@@ -43623,6 +44572,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43623
44572
  is_herprint: boolean;
43624
44573
  kopieen: number;
43625
44574
  layout_id: string | null;
44575
+ lokaal_opgeslagen_op: string | null;
44576
+ lokale_pdf_fout: string | null;
44577
+ lokale_pdf_status: string | null;
43626
44578
  opgepakt_op: string | null;
43627
44579
  paginas: number;
43628
44580
  payload: import("../integrations/supabase/types").Json;
@@ -43631,6 +44583,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43631
44583
  pogingen: number;
43632
44584
  printer_id: string | null;
43633
44585
  render_html: string | null;
44586
+ resultaat_pdf_base64: string | null;
43634
44587
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43635
44588
  updated_at: string;
43636
44589
  volgende_poging: string | null;
@@ -43652,6 +44605,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43652
44605
  attempts: number;
43653
44606
  connection_id: string;
43654
44607
  created_at: string;
44608
+ dead_lettered_at: string | null;
43655
44609
  desired_available: boolean | null;
43656
44610
  gateway_attempt_id: string | null;
43657
44611
  id: string;
@@ -43660,9 +44614,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43660
44614
  locked_by: string | null;
43661
44615
  next_attempt_at: string;
43662
44616
  number_of_pieces: number;
44617
+ product_id: string | null;
43663
44618
  sent_at: string | null;
43664
44619
  status: string;
44620
+ stock_mode: string | null;
43665
44621
  superseded_by: string | null;
44622
+ target_week: number | null;
44623
+ target_year: number | null;
43666
44624
  trade_item_id: string;
43667
44625
  updated_at: string;
43668
44626
  user_id: string;
@@ -43722,6 +44680,53 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43722
44680
  isSetofReturn: true;
43723
44681
  };
43724
44682
  };
44683
+ claim_pdf_print_jobs: {
44684
+ Args: {
44685
+ _max?: number;
44686
+ };
44687
+ Returns: {
44688
+ agent_id: string | null;
44689
+ bron_job_id: string | null;
44690
+ created_at: string;
44691
+ documentnaam: string;
44692
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44693
+ extern_job_id: string | null;
44694
+ foutmelding: string | null;
44695
+ gebruiker_id: string | null;
44696
+ gebruiker_naam: string;
44697
+ gebruikte_bron: string | null;
44698
+ gebruikte_layout_id: string | null;
44699
+ gestart_op: string | null;
44700
+ herkomst: string | null;
44701
+ id: string;
44702
+ idempotentie_sleutel: string | null;
44703
+ is_herprint: boolean;
44704
+ kopieen: number;
44705
+ layout_id: string | null;
44706
+ lokaal_opgeslagen_op: string | null;
44707
+ lokale_pdf_fout: string | null;
44708
+ lokale_pdf_status: string | null;
44709
+ opgepakt_op: string | null;
44710
+ paginas: number;
44711
+ payload: import("../integrations/supabase/types").Json;
44712
+ pdf_base64: string | null;
44713
+ pdf_url: string | null;
44714
+ pogingen: number;
44715
+ printer_id: string | null;
44716
+ render_html: string | null;
44717
+ resultaat_pdf_base64: string | null;
44718
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44719
+ updated_at: string;
44720
+ volgende_poging: string | null;
44721
+ voltooid_op: string | null;
44722
+ }[];
44723
+ SetofOptions: {
44724
+ from: "*";
44725
+ to: "print_jobs";
44726
+ isOneToOne: false;
44727
+ isSetofReturn: true;
44728
+ };
44729
+ };
43725
44730
  claim_print_jobs: {
43726
44731
  Args: {
43727
44732
  _agent_id: string;
@@ -43746,6 +44751,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43746
44751
  is_herprint: boolean;
43747
44752
  kopieen: number;
43748
44753
  layout_id: string | null;
44754
+ lokaal_opgeslagen_op: string | null;
44755
+ lokale_pdf_fout: string | null;
44756
+ lokale_pdf_status: string | null;
43749
44757
  opgepakt_op: string | null;
43750
44758
  paginas: number;
43751
44759
  payload: import("../integrations/supabase/types").Json;
@@ -43754,6 +44762,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43754
44762
  pogingen: number;
43755
44763
  printer_id: string | null;
43756
44764
  render_html: string | null;
44765
+ resultaat_pdf_base64: string | null;
43757
44766
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43758
44767
  updated_at: string;
43759
44768
  volgende_poging: string | null;
@@ -43894,6 +44903,8 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43894
44903
  order_id: string;
43895
44904
  order_source: string;
43896
44905
  pick_date: string;
44906
+ printed_at: string;
44907
+ printed_today: boolean;
43897
44908
  status: string;
43898
44909
  }[];
43899
44910
  };
@@ -44090,6 +45101,24 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44090
45101
  };
44091
45102
  Returns: string;
44092
45103
  };
45104
+ floriday_capture_stock_snapshot: {
45105
+ Args: never;
45106
+ Returns: number;
45107
+ };
45108
+ floriday_cleanup_stock_queue_v2: {
45109
+ Args: never;
45110
+ Returns: undefined;
45111
+ };
45112
+ floriday_compact_stock_snapshots: {
45113
+ Args: never;
45114
+ Returns: undefined;
45115
+ };
45116
+ floriday_default_owner: {
45117
+ Args: {
45118
+ p_connection_id: string;
45119
+ };
45120
+ Returns: string;
45121
+ };
44093
45122
  floriday_effective_price: {
44094
45123
  Args: {
44095
45124
  _buyer_id: string;
@@ -44107,6 +45136,22 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44107
45136
  source_id: string;
44108
45137
  }[];
44109
45138
  };
45139
+ floriday_fill_publish_horizon: {
45140
+ Args: never;
45141
+ Returns: number;
45142
+ };
45143
+ floriday_publish_horizon_weeks: {
45144
+ Args: never;
45145
+ Returns: number;
45146
+ };
45147
+ floriday_recompute_inventory: {
45148
+ Args: {
45149
+ p_connection_id: string;
45150
+ p_force?: boolean;
45151
+ p_product_id: string;
45152
+ };
45153
+ Returns: undefined;
45154
+ };
44110
45155
  format_cart_number: {
44111
45156
  Args: {
44112
45157
  p_pick_date: string;
@@ -44602,6 +45647,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44602
45647
  };
44603
45648
  Returns: number;
44604
45649
  };
45650
+ logistics_cancel_orphan_tasks: {
45651
+ Args: never;
45652
+ Returns: number;
45653
+ };
44605
45654
  logistics_capacity_day_check: {
44606
45655
  Args: {
44607
45656
  p_from?: string;
@@ -44622,6 +45671,25 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44622
45671
  };
44623
45672
  Returns: number;
44624
45673
  };
45674
+ logistics_cart_index: {
45675
+ Args: {
45676
+ p_from?: string;
45677
+ p_to?: string;
45678
+ };
45679
+ Returns: {
45680
+ cart_id: string;
45681
+ cart_index: number;
45682
+ cart_label: string;
45683
+ is_shared: boolean;
45684
+ order_number: string;
45685
+ order_source: string;
45686
+ order_uuid: string;
45687
+ pick_date: string;
45688
+ printed_at: string;
45689
+ shifted: boolean;
45690
+ task_status: string;
45691
+ }[];
45692
+ };
44625
45693
  logistics_check_order_allowed: {
44626
45694
  Args: {
44627
45695
  p_lines: import("../integrations/supabase/types").Json;
@@ -44770,6 +45838,17 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44770
45838
  isSetofReturn: false;
44771
45839
  };
44772
45840
  };
45841
+ logistics_consistency_check: {
45842
+ Args: never;
45843
+ Returns: {
45844
+ agenda_carts: number;
45845
+ control_carts: number;
45846
+ ok: boolean;
45847
+ orphan_tasks: number;
45848
+ pick_date: string;
45849
+ raw_carts: number;
45850
+ }[];
45851
+ };
44773
45852
  logistics_delay_customer_email: {
44774
45853
  Args: {
44775
45854
  p_customer: string;
@@ -44859,6 +45938,16 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44859
45938
  isSetofReturn: false;
44860
45939
  };
44861
45940
  };
45941
+ logistics_floriday_cart_plan: {
45942
+ Args: {
45943
+ p_order_id: string;
45944
+ };
45945
+ Returns: {
45946
+ carrier_type: string;
45947
+ idx: number;
45948
+ packages: number;
45949
+ }[];
45950
+ };
44862
45951
  logistics_floriday_claim_pushes: {
44863
45952
  Args: {
44864
45953
  _lease_seconds?: number;
@@ -44963,6 +46052,25 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44963
46052
  };
44964
46053
  Returns: number;
44965
46054
  };
46055
+ logistics_order_overview: {
46056
+ Args: {
46057
+ p_from?: string;
46058
+ p_to?: string;
46059
+ };
46060
+ Returns: {
46061
+ cart_count: number;
46062
+ customer_name: string;
46063
+ delivery_date: string;
46064
+ order_number: string;
46065
+ order_source: string;
46066
+ order_uuid: string;
46067
+ pick_date: string;
46068
+ plant_count: number;
46069
+ printed_at: string;
46070
+ shifted: boolean;
46071
+ status: string;
46072
+ }[];
46073
+ };
44966
46074
  logistics_order_pick_day: {
44967
46075
  Args: {
44968
46076
  p_order_ref: string;
@@ -44975,6 +46083,22 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44975
46083
  };
44976
46084
  Returns: string;
44977
46085
  };
46086
+ logistics_pick_agenda: {
46087
+ Args: {
46088
+ p_from?: string;
46089
+ p_to?: string;
46090
+ };
46091
+ Returns: {
46092
+ cart_count: number;
46093
+ in_preparation: number;
46094
+ order_count: number;
46095
+ orders: import("../integrations/supabase/types").Json;
46096
+ pick_date: string;
46097
+ plant_count: number;
46098
+ ready: number;
46099
+ shifted_count: number;
46100
+ }[];
46101
+ };
44978
46102
  logistics_pick_email_purpose: {
44979
46103
  Args: never;
44980
46104
  Returns: string;
@@ -45029,6 +46153,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
45029
46153
  };
45030
46154
  Returns: undefined;
45031
46155
  };
46156
+ logistics_plan_floriday_order: {
46157
+ Args: {
46158
+ p_buffer_id?: string;
46159
+ p_order_id: string;
46160
+ };
46161
+ Returns: number;
46162
+ };
45032
46163
  logistics_plan_impact_orders: {
45033
46164
  Args: {
45034
46165
  p_order_id: string;
@@ -45134,6 +46265,15 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
45134
46265
  };
45135
46266
  Returns: import("../integrations/supabase/types").Json;
45136
46267
  };
46268
+ logistics_resolve_pick_document: {
46269
+ Args: {
46270
+ _is_herprint: boolean;
46271
+ _queue_item_id: string;
46272
+ _session_id: string;
46273
+ _voorbeeld: boolean;
46274
+ };
46275
+ Returns: import("../integrations/supabase/types").Json;
46276
+ };
45137
46277
  logistics_resolve_settings: {
45138
46278
  Args: {
45139
46279
  p_config_id: string;
@@ -45574,6 +46714,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
45574
46714
  };
45575
46715
  pick_enqueue_print_job: {
45576
46716
  Args: {
46717
+ _is_herprint?: boolean;
45577
46718
  _printer_id?: string;
45578
46719
  _queue_item_id: string;
45579
46720
  _session_id?: string;
@@ -45587,6 +46728,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
45587
46728
  };
45588
46729
  Returns: import("../integrations/supabase/types").Json;
45589
46730
  };
46731
+ pick_preview_job: {
46732
+ Args: {
46733
+ _queue_item_id: string;
46734
+ _station_slug: string;
46735
+ };
46736
+ Returns: import("../integrations/supabase/types").Json;
46737
+ };
45590
46738
  pick_print_job_status: {
45591
46739
  Args: {
45592
46740
  _job_id: string;
@@ -45764,6 +46912,24 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
45764
46912
  };
45765
46913
  Returns: undefined;
45766
46914
  };
46915
+ print_preview_toestaan: {
46916
+ Args: {
46917
+ _max?: number;
46918
+ _queue_item_id: string;
46919
+ _station_slug: string;
46920
+ _venster_sec?: number;
46921
+ };
46922
+ Returns: import("../integrations/supabase/types").Json;
46923
+ };
46924
+ print_preview_weiger: {
46925
+ Args: {
46926
+ _code: string;
46927
+ _queue_item_id: string;
46928
+ _reden: string;
46929
+ _station_slug: string;
46930
+ };
46931
+ Returns: undefined;
46932
+ };
45767
46933
  process_logistics_event: {
45768
46934
  Args: {
45769
46935
  p_event_id: string;
@@ -45918,6 +47084,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
45918
47084
  };
45919
47085
  Returns: string;
45920
47086
  };
47087
+ resolve_print_job_printer_id: {
47088
+ Args: {
47089
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
47090
+ };
47091
+ Returns: string;
47092
+ };
45921
47093
  resolve_product_id_for_item: {
45922
47094
  Args: {
45923
47095
  p_product_name: string;
@@ -46509,7 +47681,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
46509
47681
  };
46510
47682
  CompositeTypes: { [_ in never]: never; };
46511
47683
  }, {
46512
- PostgrestVersion: "14.17";
47684
+ PostgrestVersion: "14.5";
46513
47685
  }>;
46514
47686
  userId: string;
46515
47687
  claims: import("@supabase/auth-js").User;