@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
@@ -2866,6 +2866,84 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
2866
2866
  };
2867
2867
  Relationships: [];
2868
2868
  };
2869
+ delivery_notes: {
2870
+ Row: {
2871
+ byte_size: number | null;
2872
+ connection_id: string | null;
2873
+ content_type: string;
2874
+ created_at: string;
2875
+ error_message: string | null;
2876
+ fetched_at: string | null;
2877
+ fulfillment_order_id: string | null;
2878
+ http_status: number | null;
2879
+ id: string;
2880
+ label_code: string | null;
2881
+ letter: string | null;
2882
+ load_carrier_index: number | null;
2883
+ load_carrier_type: string | null;
2884
+ order_id: string | null;
2885
+ order_number: string | null;
2886
+ packages: number | null;
2887
+ source: string;
2888
+ status: string;
2889
+ storage_bucket: string;
2890
+ storage_path: string | null;
2891
+ updated_at: string;
2892
+ };
2893
+ Insert: {
2894
+ byte_size?: number | null;
2895
+ connection_id?: string | null;
2896
+ content_type?: string;
2897
+ created_at?: string;
2898
+ error_message?: string | null;
2899
+ fetched_at?: string | null;
2900
+ fulfillment_order_id?: string | null;
2901
+ http_status?: number | null;
2902
+ id?: string;
2903
+ label_code?: string | null;
2904
+ letter?: string | null;
2905
+ load_carrier_index?: number | null;
2906
+ load_carrier_type?: string | null;
2907
+ order_id?: string | null;
2908
+ order_number?: string | null;
2909
+ packages?: number | null;
2910
+ source?: string;
2911
+ status?: string;
2912
+ storage_bucket?: string;
2913
+ storage_path?: string | null;
2914
+ updated_at?: string;
2915
+ };
2916
+ Update: {
2917
+ byte_size?: number | null;
2918
+ connection_id?: string | null;
2919
+ content_type?: string;
2920
+ created_at?: string;
2921
+ error_message?: string | null;
2922
+ fetched_at?: string | null;
2923
+ fulfillment_order_id?: string | null;
2924
+ http_status?: number | null;
2925
+ id?: string;
2926
+ label_code?: string | null;
2927
+ letter?: string | null;
2928
+ load_carrier_index?: number | null;
2929
+ load_carrier_type?: string | null;
2930
+ order_id?: string | null;
2931
+ order_number?: string | null;
2932
+ packages?: number | null;
2933
+ source?: string;
2934
+ status?: string;
2935
+ storage_bucket?: string;
2936
+ storage_path?: string | null;
2937
+ updated_at?: string;
2938
+ };
2939
+ Relationships: [{
2940
+ foreignKeyName: "delivery_notes_order_id_fkey";
2941
+ columns: ["order_id"];
2942
+ isOneToOne: false;
2943
+ referencedRelation: "orders";
2944
+ referencedColumns: ["id"];
2945
+ }];
2946
+ };
2869
2947
  document_bronregels: {
2870
2948
  Row: {
2871
2949
  bron: string;
@@ -5919,10 +5997,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
5919
5997
  };
5920
5998
  floriday_connections: {
5921
5999
  Row: {
5922
- access_token: string | null;
5923
6000
  api_key: string;
5924
- client_id: string;
5925
- client_secret: string;
5926
6001
  created_at: string;
5927
6002
  customers_endpoint: string | null;
5928
6003
  environment: string;
@@ -5937,10 +6012,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
5937
6012
  updated_at: string;
5938
6013
  };
5939
6014
  Insert: {
5940
- access_token?: string | null;
5941
6015
  api_key: string;
5942
- client_id: string;
5943
- client_secret: string;
5944
6016
  created_at?: string;
5945
6017
  customers_endpoint?: string | null;
5946
6018
  environment: string;
@@ -5955,10 +6027,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
5955
6027
  updated_at?: string;
5956
6028
  };
5957
6029
  Update: {
5958
- access_token?: string | null;
5959
6030
  api_key?: string;
5960
- client_id?: string;
5961
- client_secret?: string;
5962
6031
  created_at?: string;
5963
6032
  customers_endpoint?: string | null;
5964
6033
  environment?: string;
@@ -6042,6 +6111,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
6042
6111
  attempts: number;
6043
6112
  connection_id: string;
6044
6113
  created_at: string;
6114
+ dead_lettered_at: string | null;
6045
6115
  desired_available: boolean | null;
6046
6116
  gateway_attempt_id: string | null;
6047
6117
  id: string;
@@ -6050,9 +6120,13 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
6050
6120
  locked_by: string | null;
6051
6121
  next_attempt_at: string;
6052
6122
  number_of_pieces: number;
6123
+ product_id: string | null;
6053
6124
  sent_at: string | null;
6054
6125
  status: string;
6126
+ stock_mode: string | null;
6055
6127
  superseded_by: string | null;
6128
+ target_week: number | null;
6129
+ target_year: number | null;
6056
6130
  trade_item_id: string;
6057
6131
  updated_at: string;
6058
6132
  user_id: string;
@@ -6061,6 +6135,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
6061
6135
  attempts?: number;
6062
6136
  connection_id: string;
6063
6137
  created_at?: string;
6138
+ dead_lettered_at?: string | null;
6064
6139
  desired_available?: boolean | null;
6065
6140
  gateway_attempt_id?: string | null;
6066
6141
  id?: string;
@@ -6069,9 +6144,13 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
6069
6144
  locked_by?: string | null;
6070
6145
  next_attempt_at?: string;
6071
6146
  number_of_pieces?: number;
6147
+ product_id?: string | null;
6072
6148
  sent_at?: string | null;
6073
6149
  status?: string;
6150
+ stock_mode?: string | null;
6074
6151
  superseded_by?: string | null;
6152
+ target_week?: number | null;
6153
+ target_year?: number | null;
6075
6154
  trade_item_id: string;
6076
6155
  updated_at?: string;
6077
6156
  user_id: string;
@@ -6080,6 +6159,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
6080
6159
  attempts?: number;
6081
6160
  connection_id?: string;
6082
6161
  created_at?: string;
6162
+ dead_lettered_at?: string | null;
6083
6163
  desired_available?: boolean | null;
6084
6164
  gateway_attempt_id?: string | null;
6085
6165
  id?: string;
@@ -6088,9 +6168,13 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
6088
6168
  locked_by?: string | null;
6089
6169
  next_attempt_at?: string;
6090
6170
  number_of_pieces?: number;
6171
+ product_id?: string | null;
6091
6172
  sent_at?: string | null;
6092
6173
  status?: string;
6174
+ stock_mode?: string | null;
6093
6175
  superseded_by?: string | null;
6176
+ target_week?: number | null;
6177
+ target_year?: number | null;
6094
6178
  trade_item_id?: string;
6095
6179
  updated_at?: string;
6096
6180
  user_id?: string;
@@ -6499,6 +6583,87 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
6499
6583
  referencedColumns: ["id"];
6500
6584
  }];
6501
6585
  };
6586
+ floriday_inventory_settings: {
6587
+ Row: {
6588
+ buffer_quantity: number;
6589
+ connection_id: string;
6590
+ created_at: string;
6591
+ desired_availability: boolean;
6592
+ desired_quantity: number;
6593
+ fixed_quantity: number | null;
6594
+ floriday_trade_item_id: string | null;
6595
+ id: string;
6596
+ last_confirmed_at: string | null;
6597
+ last_enqueued_at: string | null;
6598
+ last_published_at: string | null;
6599
+ last_sync_error: string | null;
6600
+ manual_quantity: number | null;
6601
+ maximum_quantity: number | null;
6602
+ product_id: string;
6603
+ quantity_control: string;
6604
+ remote_available: boolean | null;
6605
+ remote_checked_at: string | null;
6606
+ remote_quantity: number | null;
6607
+ stock_mode: string;
6608
+ sync_status: string;
6609
+ updated_at: string;
6610
+ updated_by: string | null;
6611
+ user_id: string;
6612
+ };
6613
+ Insert: {
6614
+ buffer_quantity?: number;
6615
+ connection_id: string;
6616
+ created_at?: string;
6617
+ desired_availability?: boolean;
6618
+ desired_quantity?: number;
6619
+ fixed_quantity?: number | null;
6620
+ floriday_trade_item_id?: string | null;
6621
+ id?: string;
6622
+ last_confirmed_at?: string | null;
6623
+ last_enqueued_at?: string | null;
6624
+ last_published_at?: string | null;
6625
+ last_sync_error?: string | null;
6626
+ manual_quantity?: number | null;
6627
+ maximum_quantity?: number | null;
6628
+ product_id: string;
6629
+ quantity_control?: string;
6630
+ remote_available?: boolean | null;
6631
+ remote_checked_at?: string | null;
6632
+ remote_quantity?: number | null;
6633
+ stock_mode?: string;
6634
+ sync_status?: string;
6635
+ updated_at?: string;
6636
+ updated_by?: string | null;
6637
+ user_id: string;
6638
+ };
6639
+ Update: {
6640
+ buffer_quantity?: number;
6641
+ connection_id?: string;
6642
+ created_at?: string;
6643
+ desired_availability?: boolean;
6644
+ desired_quantity?: number;
6645
+ fixed_quantity?: number | null;
6646
+ floriday_trade_item_id?: string | null;
6647
+ id?: string;
6648
+ last_confirmed_at?: string | null;
6649
+ last_enqueued_at?: string | null;
6650
+ last_published_at?: string | null;
6651
+ last_sync_error?: string | null;
6652
+ manual_quantity?: number | null;
6653
+ maximum_quantity?: number | null;
6654
+ product_id?: string;
6655
+ quantity_control?: string;
6656
+ remote_available?: boolean | null;
6657
+ remote_checked_at?: string | null;
6658
+ remote_quantity?: number | null;
6659
+ stock_mode?: string;
6660
+ sync_status?: string;
6661
+ updated_at?: string;
6662
+ updated_by?: string | null;
6663
+ user_id?: string;
6664
+ };
6665
+ Relationships: [];
6666
+ };
6502
6667
  floriday_invoices_cache: {
6503
6668
  Row: {
6504
6669
  buyer_organization_id: string | null;
@@ -6787,6 +6952,39 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
6787
6952
  };
6788
6953
  Relationships: [];
6789
6954
  };
6955
+ floriday_sales_order_ingest: {
6956
+ Row: {
6957
+ connection_id: string;
6958
+ created_at: string;
6959
+ id: string;
6960
+ impact: import("../integrations/supabase/types").Json;
6961
+ order_status: string | null;
6962
+ order_version: number;
6963
+ processed_at: string;
6964
+ sales_order_id: string;
6965
+ };
6966
+ Insert: {
6967
+ connection_id: string;
6968
+ created_at?: string;
6969
+ id?: string;
6970
+ impact?: import("../integrations/supabase/types").Json;
6971
+ order_status?: string | null;
6972
+ order_version?: number;
6973
+ processed_at?: string;
6974
+ sales_order_id: string;
6975
+ };
6976
+ Update: {
6977
+ connection_id?: string;
6978
+ created_at?: string;
6979
+ id?: string;
6980
+ impact?: import("../integrations/supabase/types").Json;
6981
+ order_status?: string | null;
6982
+ order_version?: number;
6983
+ processed_at?: string;
6984
+ sales_order_id?: string;
6985
+ };
6986
+ Relationships: [];
6987
+ };
6790
6988
  floriday_sales_strategies_cache: {
6791
6989
  Row: {
6792
6990
  connection_id: string;
@@ -6886,6 +7084,39 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
6886
7084
  };
6887
7085
  Relationships: [];
6888
7086
  };
7087
+ floriday_sync_cursors: {
7088
+ Row: {
7089
+ connection_id: string;
7090
+ created_at: string;
7091
+ id: string;
7092
+ last_error: string | null;
7093
+ last_sync_at: string | null;
7094
+ resource_type: string;
7095
+ sequence_number: number;
7096
+ updated_at: string;
7097
+ };
7098
+ Insert: {
7099
+ connection_id: string;
7100
+ created_at?: string;
7101
+ id?: string;
7102
+ last_error?: string | null;
7103
+ last_sync_at?: string | null;
7104
+ resource_type: string;
7105
+ sequence_number?: number;
7106
+ updated_at?: string;
7107
+ };
7108
+ Update: {
7109
+ connection_id?: string;
7110
+ created_at?: string;
7111
+ id?: string;
7112
+ last_error?: string | null;
7113
+ last_sync_at?: string | null;
7114
+ resource_type?: string;
7115
+ sequence_number?: number;
7116
+ updated_at?: string;
7117
+ };
7118
+ Relationships: [];
7119
+ };
6889
7120
  floriday_sync_state: {
6890
7121
  Row: {
6891
7122
  connection_id: string;
@@ -7576,6 +7807,42 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
7576
7807
  };
7577
7808
  Relationships: [];
7578
7809
  };
7810
+ inventory_stock_snapshots: {
7811
+ Row: {
7812
+ connection_id: string;
7813
+ created_at: string;
7814
+ erp_available_quantity: number;
7815
+ floriday_desired_quantity: number;
7816
+ floriday_remote_quantity: number | null;
7817
+ granularity: string;
7818
+ id: string;
7819
+ snapshot_at: string;
7820
+ user_id: string | null;
7821
+ };
7822
+ Insert: {
7823
+ connection_id: string;
7824
+ created_at?: string;
7825
+ erp_available_quantity?: number;
7826
+ floriday_desired_quantity?: number;
7827
+ floriday_remote_quantity?: number | null;
7828
+ granularity?: string;
7829
+ id?: string;
7830
+ snapshot_at?: string;
7831
+ user_id?: string | null;
7832
+ };
7833
+ Update: {
7834
+ connection_id?: string;
7835
+ created_at?: string;
7836
+ erp_available_quantity?: number;
7837
+ floriday_desired_quantity?: number;
7838
+ floriday_remote_quantity?: number | null;
7839
+ granularity?: string;
7840
+ id?: string;
7841
+ snapshot_at?: string;
7842
+ user_id?: string | null;
7843
+ };
7844
+ Relationships: [];
7845
+ };
7579
7846
  invoice_items: {
7580
7847
  Row: {
7581
7848
  created_at: string;
@@ -13591,6 +13858,39 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
13591
13858
  };
13592
13859
  Relationships: [];
13593
13860
  };
13861
+ print_dedupe_events: {
13862
+ Row: {
13863
+ bestaande_job_id: string | null;
13864
+ created_at: string;
13865
+ detail: string | null;
13866
+ documentnaam: string | null;
13867
+ documenttype: string | null;
13868
+ id: string;
13869
+ idempotentie_sleutel: string;
13870
+ reden: string;
13871
+ };
13872
+ Insert: {
13873
+ bestaande_job_id?: string | null;
13874
+ created_at?: string;
13875
+ detail?: string | null;
13876
+ documentnaam?: string | null;
13877
+ documenttype?: string | null;
13878
+ id?: string;
13879
+ idempotentie_sleutel: string;
13880
+ reden: string;
13881
+ };
13882
+ Update: {
13883
+ bestaande_job_id?: string | null;
13884
+ created_at?: string;
13885
+ detail?: string | null;
13886
+ documentnaam?: string | null;
13887
+ documenttype?: string | null;
13888
+ id?: string;
13889
+ idempotentie_sleutel?: string;
13890
+ reden?: string;
13891
+ };
13892
+ Relationships: [];
13893
+ };
13594
13894
  print_job_logs: {
13595
13895
  Row: {
13596
13896
  created_at: string;
@@ -13641,6 +13941,9 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
13641
13941
  is_herprint: boolean;
13642
13942
  kopieen: number;
13643
13943
  layout_id: string | null;
13944
+ lokaal_opgeslagen_op: string | null;
13945
+ lokale_pdf_fout: string | null;
13946
+ lokale_pdf_status: string | null;
13644
13947
  opgepakt_op: string | null;
13645
13948
  paginas: number;
13646
13949
  payload: import("../integrations/supabase/types").Json;
@@ -13649,6 +13952,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
13649
13952
  pogingen: number;
13650
13953
  printer_id: string | null;
13651
13954
  render_html: string | null;
13955
+ resultaat_pdf_base64: string | null;
13652
13956
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13653
13957
  updated_at: string;
13654
13958
  volgende_poging: string | null;
@@ -13673,6 +13977,9 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
13673
13977
  is_herprint?: boolean;
13674
13978
  kopieen?: number;
13675
13979
  layout_id?: string | null;
13980
+ lokaal_opgeslagen_op?: string | null;
13981
+ lokale_pdf_fout?: string | null;
13982
+ lokale_pdf_status?: string | null;
13676
13983
  opgepakt_op?: string | null;
13677
13984
  paginas?: number;
13678
13985
  payload?: import("../integrations/supabase/types").Json;
@@ -13681,6 +13988,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
13681
13988
  pogingen?: number;
13682
13989
  printer_id?: string | null;
13683
13990
  render_html?: string | null;
13991
+ resultaat_pdf_base64?: string | null;
13684
13992
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13685
13993
  updated_at?: string;
13686
13994
  volgende_poging?: string | null;
@@ -13705,6 +14013,9 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
13705
14013
  is_herprint?: boolean;
13706
14014
  kopieen?: number;
13707
14015
  layout_id?: string | null;
14016
+ lokaal_opgeslagen_op?: string | null;
14017
+ lokale_pdf_fout?: string | null;
14018
+ lokale_pdf_status?: string | null;
13708
14019
  opgepakt_op?: string | null;
13709
14020
  paginas?: number;
13710
14021
  payload?: import("../integrations/supabase/types").Json;
@@ -13713,6 +14024,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
13713
14024
  pogingen?: number;
13714
14025
  printer_id?: string | null;
13715
14026
  render_html?: string | null;
14027
+ resultaat_pdf_base64?: string | null;
13716
14028
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13717
14029
  updated_at?: string;
13718
14030
  volgende_poging?: string | null;
@@ -13831,6 +14143,39 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
13831
14143
  };
13832
14144
  Relationships: [];
13833
14145
  };
14146
+ print_preview_events: {
14147
+ Row: {
14148
+ code: string | null;
14149
+ created_at: string;
14150
+ detail: import("../integrations/supabase/types").Json;
14151
+ id: string;
14152
+ queue_item_id: string | null;
14153
+ reden: string | null;
14154
+ station_slug: string | null;
14155
+ uitkomst: string;
14156
+ };
14157
+ Insert: {
14158
+ code?: string | null;
14159
+ created_at?: string;
14160
+ detail?: import("../integrations/supabase/types").Json;
14161
+ id?: string;
14162
+ queue_item_id?: string | null;
14163
+ reden?: string | null;
14164
+ station_slug?: string | null;
14165
+ uitkomst?: string;
14166
+ };
14167
+ Update: {
14168
+ code?: string | null;
14169
+ created_at?: string;
14170
+ detail?: import("../integrations/supabase/types").Json;
14171
+ id?: string;
14172
+ queue_item_id?: string | null;
14173
+ reden?: string | null;
14174
+ station_slug?: string | null;
14175
+ uitkomst?: string;
14176
+ };
14177
+ Relationships: [];
14178
+ };
13834
14179
  print_queue_runners: {
13835
14180
  Row: {
13836
14181
  actief: boolean;
@@ -14070,6 +14415,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
14070
14415
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14071
14416
  online: boolean;
14072
14417
  papierformaat: string;
14418
+ pdf_map: string | null;
14073
14419
  poort: number | null;
14074
14420
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14075
14421
  systeemnaam: string;
@@ -14095,6 +14441,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
14095
14441
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14096
14442
  online?: boolean;
14097
14443
  papierformaat?: string;
14444
+ pdf_map?: string | null;
14098
14445
  poort?: number | null;
14099
14446
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14100
14447
  systeemnaam?: string;
@@ -14120,6 +14467,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
14120
14467
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14121
14468
  online?: boolean;
14122
14469
  papierformaat?: string;
14470
+ pdf_map?: string | null;
14123
14471
  poort?: number | null;
14124
14472
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14125
14473
  systeemnaam?: string;
@@ -16689,6 +17037,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
16689
17037
  };
16690
17038
  trade_item_stock: {
16691
17039
  Row: {
17040
+ change_source: string;
16692
17041
  connection_id: string;
16693
17042
  created_at: string;
16694
17043
  id: string;
@@ -16702,6 +17051,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
16702
17051
  user_id: string;
16703
17052
  };
16704
17053
  Insert: {
17054
+ change_source?: string;
16705
17055
  connection_id: string;
16706
17056
  created_at?: string;
16707
17057
  id?: string;
@@ -16715,6 +17065,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
16715
17065
  user_id: string;
16716
17066
  };
16717
17067
  Update: {
17068
+ change_source?: string;
16718
17069
  connection_id?: string;
16719
17070
  created_at?: string;
16720
17071
  id?: string;
@@ -20315,6 +20666,18 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
20315
20666
  Args: never;
20316
20667
  Returns: number;
20317
20668
  };
20669
+ calculate_floriday_desired_stock: {
20670
+ Args: {
20671
+ p_connection_id: string;
20672
+ p_product_id: string;
20673
+ };
20674
+ Returns: {
20675
+ desired_availability: boolean;
20676
+ desired_quantity: number;
20677
+ erp_available: number;
20678
+ stock_mode: string;
20679
+ }[];
20680
+ };
20318
20681
  calculate_layer_stock: {
20319
20682
  Args: {
20320
20683
  p_product_id: string;
@@ -20376,6 +20739,9 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
20376
20739
  is_herprint: boolean;
20377
20740
  kopieen: number;
20378
20741
  layout_id: string | null;
20742
+ lokaal_opgeslagen_op: string | null;
20743
+ lokale_pdf_fout: string | null;
20744
+ lokale_pdf_status: string | null;
20379
20745
  opgepakt_op: string | null;
20380
20746
  paginas: number;
20381
20747
  payload: import("../integrations/supabase/types").Json;
@@ -20384,6 +20750,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
20384
20750
  pogingen: number;
20385
20751
  printer_id: string | null;
20386
20752
  render_html: string | null;
20753
+ resultaat_pdf_base64: string | null;
20387
20754
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20388
20755
  updated_at: string;
20389
20756
  volgende_poging: string | null;
@@ -20405,6 +20772,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
20405
20772
  attempts: number;
20406
20773
  connection_id: string;
20407
20774
  created_at: string;
20775
+ dead_lettered_at: string | null;
20408
20776
  desired_available: boolean | null;
20409
20777
  gateway_attempt_id: string | null;
20410
20778
  id: string;
@@ -20413,9 +20781,13 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
20413
20781
  locked_by: string | null;
20414
20782
  next_attempt_at: string;
20415
20783
  number_of_pieces: number;
20784
+ product_id: string | null;
20416
20785
  sent_at: string | null;
20417
20786
  status: string;
20787
+ stock_mode: string | null;
20418
20788
  superseded_by: string | null;
20789
+ target_week: number | null;
20790
+ target_year: number | null;
20419
20791
  trade_item_id: string;
20420
20792
  updated_at: string;
20421
20793
  user_id: string;
@@ -20475,6 +20847,53 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
20475
20847
  isSetofReturn: true;
20476
20848
  };
20477
20849
  };
20850
+ claim_pdf_print_jobs: {
20851
+ Args: {
20852
+ _max?: number;
20853
+ };
20854
+ Returns: {
20855
+ agent_id: string | null;
20856
+ bron_job_id: string | null;
20857
+ created_at: string;
20858
+ documentnaam: string;
20859
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20860
+ extern_job_id: string | null;
20861
+ foutmelding: string | null;
20862
+ gebruiker_id: string | null;
20863
+ gebruiker_naam: string;
20864
+ gebruikte_bron: string | null;
20865
+ gebruikte_layout_id: string | null;
20866
+ gestart_op: string | null;
20867
+ herkomst: string | null;
20868
+ id: string;
20869
+ idempotentie_sleutel: string | null;
20870
+ is_herprint: boolean;
20871
+ kopieen: number;
20872
+ layout_id: string | null;
20873
+ lokaal_opgeslagen_op: string | null;
20874
+ lokale_pdf_fout: string | null;
20875
+ lokale_pdf_status: string | null;
20876
+ opgepakt_op: string | null;
20877
+ paginas: number;
20878
+ payload: import("../integrations/supabase/types").Json;
20879
+ pdf_base64: string | null;
20880
+ pdf_url: string | null;
20881
+ pogingen: number;
20882
+ printer_id: string | null;
20883
+ render_html: string | null;
20884
+ resultaat_pdf_base64: string | null;
20885
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20886
+ updated_at: string;
20887
+ volgende_poging: string | null;
20888
+ voltooid_op: string | null;
20889
+ }[];
20890
+ SetofOptions: {
20891
+ from: "*";
20892
+ to: "print_jobs";
20893
+ isOneToOne: false;
20894
+ isSetofReturn: true;
20895
+ };
20896
+ };
20478
20897
  claim_print_jobs: {
20479
20898
  Args: {
20480
20899
  _agent_id: string;
@@ -20499,6 +20918,9 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
20499
20918
  is_herprint: boolean;
20500
20919
  kopieen: number;
20501
20920
  layout_id: string | null;
20921
+ lokaal_opgeslagen_op: string | null;
20922
+ lokale_pdf_fout: string | null;
20923
+ lokale_pdf_status: string | null;
20502
20924
  opgepakt_op: string | null;
20503
20925
  paginas: number;
20504
20926
  payload: import("../integrations/supabase/types").Json;
@@ -20507,6 +20929,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
20507
20929
  pogingen: number;
20508
20930
  printer_id: string | null;
20509
20931
  render_html: string | null;
20932
+ resultaat_pdf_base64: string | null;
20510
20933
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20511
20934
  updated_at: string;
20512
20935
  volgende_poging: string | null;
@@ -20647,6 +21070,8 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
20647
21070
  order_id: string;
20648
21071
  order_source: string;
20649
21072
  pick_date: string;
21073
+ printed_at: string;
21074
+ printed_today: boolean;
20650
21075
  status: string;
20651
21076
  }[];
20652
21077
  };
@@ -20843,6 +21268,24 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
20843
21268
  };
20844
21269
  Returns: string;
20845
21270
  };
21271
+ floriday_capture_stock_snapshot: {
21272
+ Args: never;
21273
+ Returns: number;
21274
+ };
21275
+ floriday_cleanup_stock_queue_v2: {
21276
+ Args: never;
21277
+ Returns: undefined;
21278
+ };
21279
+ floriday_compact_stock_snapshots: {
21280
+ Args: never;
21281
+ Returns: undefined;
21282
+ };
21283
+ floriday_default_owner: {
21284
+ Args: {
21285
+ p_connection_id: string;
21286
+ };
21287
+ Returns: string;
21288
+ };
20846
21289
  floriday_effective_price: {
20847
21290
  Args: {
20848
21291
  _buyer_id: string;
@@ -20860,6 +21303,22 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
20860
21303
  source_id: string;
20861
21304
  }[];
20862
21305
  };
21306
+ floriday_fill_publish_horizon: {
21307
+ Args: never;
21308
+ Returns: number;
21309
+ };
21310
+ floriday_publish_horizon_weeks: {
21311
+ Args: never;
21312
+ Returns: number;
21313
+ };
21314
+ floriday_recompute_inventory: {
21315
+ Args: {
21316
+ p_connection_id: string;
21317
+ p_force?: boolean;
21318
+ p_product_id: string;
21319
+ };
21320
+ Returns: undefined;
21321
+ };
20863
21322
  format_cart_number: {
20864
21323
  Args: {
20865
21324
  p_pick_date: string;
@@ -21355,6 +21814,10 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
21355
21814
  };
21356
21815
  Returns: number;
21357
21816
  };
21817
+ logistics_cancel_orphan_tasks: {
21818
+ Args: never;
21819
+ Returns: number;
21820
+ };
21358
21821
  logistics_capacity_day_check: {
21359
21822
  Args: {
21360
21823
  p_from?: string;
@@ -21375,6 +21838,25 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
21375
21838
  };
21376
21839
  Returns: number;
21377
21840
  };
21841
+ logistics_cart_index: {
21842
+ Args: {
21843
+ p_from?: string;
21844
+ p_to?: string;
21845
+ };
21846
+ Returns: {
21847
+ cart_id: string;
21848
+ cart_index: number;
21849
+ cart_label: string;
21850
+ is_shared: boolean;
21851
+ order_number: string;
21852
+ order_source: string;
21853
+ order_uuid: string;
21854
+ pick_date: string;
21855
+ printed_at: string;
21856
+ shifted: boolean;
21857
+ task_status: string;
21858
+ }[];
21859
+ };
21378
21860
  logistics_check_order_allowed: {
21379
21861
  Args: {
21380
21862
  p_lines: import("../integrations/supabase/types").Json;
@@ -21523,6 +22005,17 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
21523
22005
  isSetofReturn: false;
21524
22006
  };
21525
22007
  };
22008
+ logistics_consistency_check: {
22009
+ Args: never;
22010
+ Returns: {
22011
+ agenda_carts: number;
22012
+ control_carts: number;
22013
+ ok: boolean;
22014
+ orphan_tasks: number;
22015
+ pick_date: string;
22016
+ raw_carts: number;
22017
+ }[];
22018
+ };
21526
22019
  logistics_delay_customer_email: {
21527
22020
  Args: {
21528
22021
  p_customer: string;
@@ -21612,6 +22105,16 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
21612
22105
  isSetofReturn: false;
21613
22106
  };
21614
22107
  };
22108
+ logistics_floriday_cart_plan: {
22109
+ Args: {
22110
+ p_order_id: string;
22111
+ };
22112
+ Returns: {
22113
+ carrier_type: string;
22114
+ idx: number;
22115
+ packages: number;
22116
+ }[];
22117
+ };
21615
22118
  logistics_floriday_claim_pushes: {
21616
22119
  Args: {
21617
22120
  _lease_seconds?: number;
@@ -21716,6 +22219,25 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
21716
22219
  };
21717
22220
  Returns: number;
21718
22221
  };
22222
+ logistics_order_overview: {
22223
+ Args: {
22224
+ p_from?: string;
22225
+ p_to?: string;
22226
+ };
22227
+ Returns: {
22228
+ cart_count: number;
22229
+ customer_name: string;
22230
+ delivery_date: string;
22231
+ order_number: string;
22232
+ order_source: string;
22233
+ order_uuid: string;
22234
+ pick_date: string;
22235
+ plant_count: number;
22236
+ printed_at: string;
22237
+ shifted: boolean;
22238
+ status: string;
22239
+ }[];
22240
+ };
21719
22241
  logistics_order_pick_day: {
21720
22242
  Args: {
21721
22243
  p_order_ref: string;
@@ -21728,6 +22250,22 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
21728
22250
  };
21729
22251
  Returns: string;
21730
22252
  };
22253
+ logistics_pick_agenda: {
22254
+ Args: {
22255
+ p_from?: string;
22256
+ p_to?: string;
22257
+ };
22258
+ Returns: {
22259
+ cart_count: number;
22260
+ in_preparation: number;
22261
+ order_count: number;
22262
+ orders: import("../integrations/supabase/types").Json;
22263
+ pick_date: string;
22264
+ plant_count: number;
22265
+ ready: number;
22266
+ shifted_count: number;
22267
+ }[];
22268
+ };
21731
22269
  logistics_pick_email_purpose: {
21732
22270
  Args: never;
21733
22271
  Returns: string;
@@ -21782,6 +22320,13 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
21782
22320
  };
21783
22321
  Returns: undefined;
21784
22322
  };
22323
+ logistics_plan_floriday_order: {
22324
+ Args: {
22325
+ p_buffer_id?: string;
22326
+ p_order_id: string;
22327
+ };
22328
+ Returns: number;
22329
+ };
21785
22330
  logistics_plan_impact_orders: {
21786
22331
  Args: {
21787
22332
  p_order_id: string;
@@ -21887,6 +22432,15 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
21887
22432
  };
21888
22433
  Returns: import("../integrations/supabase/types").Json;
21889
22434
  };
22435
+ logistics_resolve_pick_document: {
22436
+ Args: {
22437
+ _is_herprint: boolean;
22438
+ _queue_item_id: string;
22439
+ _session_id: string;
22440
+ _voorbeeld: boolean;
22441
+ };
22442
+ Returns: import("../integrations/supabase/types").Json;
22443
+ };
21890
22444
  logistics_resolve_settings: {
21891
22445
  Args: {
21892
22446
  p_config_id: string;
@@ -22327,6 +22881,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
22327
22881
  };
22328
22882
  pick_enqueue_print_job: {
22329
22883
  Args: {
22884
+ _is_herprint?: boolean;
22330
22885
  _printer_id?: string;
22331
22886
  _queue_item_id: string;
22332
22887
  _session_id?: string;
@@ -22340,6 +22895,13 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
22340
22895
  };
22341
22896
  Returns: import("../integrations/supabase/types").Json;
22342
22897
  };
22898
+ pick_preview_job: {
22899
+ Args: {
22900
+ _queue_item_id: string;
22901
+ _station_slug: string;
22902
+ };
22903
+ Returns: import("../integrations/supabase/types").Json;
22904
+ };
22343
22905
  pick_print_job_status: {
22344
22906
  Args: {
22345
22907
  _job_id: string;
@@ -22517,6 +23079,24 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
22517
23079
  };
22518
23080
  Returns: undefined;
22519
23081
  };
23082
+ print_preview_toestaan: {
23083
+ Args: {
23084
+ _max?: number;
23085
+ _queue_item_id: string;
23086
+ _station_slug: string;
23087
+ _venster_sec?: number;
23088
+ };
23089
+ Returns: import("../integrations/supabase/types").Json;
23090
+ };
23091
+ print_preview_weiger: {
23092
+ Args: {
23093
+ _code: string;
23094
+ _queue_item_id: string;
23095
+ _reden: string;
23096
+ _station_slug: string;
23097
+ };
23098
+ Returns: undefined;
23099
+ };
22520
23100
  process_logistics_event: {
22521
23101
  Args: {
22522
23102
  p_event_id: string;
@@ -22671,6 +23251,12 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
22671
23251
  };
22672
23252
  Returns: string;
22673
23253
  };
23254
+ resolve_print_job_printer_id: {
23255
+ Args: {
23256
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
23257
+ };
23258
+ Returns: string;
23259
+ };
22674
23260
  resolve_product_id_for_item: {
22675
23261
  Args: {
22676
23262
  p_product_name: string;
@@ -23262,7 +23848,7 @@ export declare const listOpenStockConsumptionAlerts: import("@tanstack/start-cli
23262
23848
  };
23263
23849
  CompositeTypes: { [_ in never]: never; };
23264
23850
  }, {
23265
- PostgrestVersion: "14.17";
23851
+ PostgrestVersion: "14.5";
23266
23852
  }>;
23267
23853
  userId: string;
23268
23854
  claims: import("@supabase/auth-js").User;
@@ -26120,6 +26706,84 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
26120
26706
  };
26121
26707
  Relationships: [];
26122
26708
  };
26709
+ delivery_notes: {
26710
+ Row: {
26711
+ byte_size: number | null;
26712
+ connection_id: string | null;
26713
+ content_type: string;
26714
+ created_at: string;
26715
+ error_message: string | null;
26716
+ fetched_at: string | null;
26717
+ fulfillment_order_id: string | null;
26718
+ http_status: number | null;
26719
+ id: string;
26720
+ label_code: string | null;
26721
+ letter: string | null;
26722
+ load_carrier_index: number | null;
26723
+ load_carrier_type: string | null;
26724
+ order_id: string | null;
26725
+ order_number: string | null;
26726
+ packages: number | null;
26727
+ source: string;
26728
+ status: string;
26729
+ storage_bucket: string;
26730
+ storage_path: string | null;
26731
+ updated_at: string;
26732
+ };
26733
+ Insert: {
26734
+ byte_size?: number | null;
26735
+ connection_id?: string | null;
26736
+ content_type?: string;
26737
+ created_at?: string;
26738
+ error_message?: string | null;
26739
+ fetched_at?: string | null;
26740
+ fulfillment_order_id?: string | null;
26741
+ http_status?: number | null;
26742
+ id?: string;
26743
+ label_code?: string | null;
26744
+ letter?: string | null;
26745
+ load_carrier_index?: number | null;
26746
+ load_carrier_type?: string | null;
26747
+ order_id?: string | null;
26748
+ order_number?: string | null;
26749
+ packages?: number | null;
26750
+ source?: string;
26751
+ status?: string;
26752
+ storage_bucket?: string;
26753
+ storage_path?: string | null;
26754
+ updated_at?: string;
26755
+ };
26756
+ Update: {
26757
+ byte_size?: number | null;
26758
+ connection_id?: string | null;
26759
+ content_type?: string;
26760
+ created_at?: string;
26761
+ error_message?: string | null;
26762
+ fetched_at?: string | null;
26763
+ fulfillment_order_id?: string | null;
26764
+ http_status?: number | null;
26765
+ id?: string;
26766
+ label_code?: string | null;
26767
+ letter?: string | null;
26768
+ load_carrier_index?: number | null;
26769
+ load_carrier_type?: string | null;
26770
+ order_id?: string | null;
26771
+ order_number?: string | null;
26772
+ packages?: number | null;
26773
+ source?: string;
26774
+ status?: string;
26775
+ storage_bucket?: string;
26776
+ storage_path?: string | null;
26777
+ updated_at?: string;
26778
+ };
26779
+ Relationships: [{
26780
+ foreignKeyName: "delivery_notes_order_id_fkey";
26781
+ columns: ["order_id"];
26782
+ isOneToOne: false;
26783
+ referencedRelation: "orders";
26784
+ referencedColumns: ["id"];
26785
+ }];
26786
+ };
26123
26787
  document_bronregels: {
26124
26788
  Row: {
26125
26789
  bron: string;
@@ -29173,10 +29837,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
29173
29837
  };
29174
29838
  floriday_connections: {
29175
29839
  Row: {
29176
- access_token: string | null;
29177
29840
  api_key: string;
29178
- client_id: string;
29179
- client_secret: string;
29180
29841
  created_at: string;
29181
29842
  customers_endpoint: string | null;
29182
29843
  environment: string;
@@ -29191,10 +29852,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
29191
29852
  updated_at: string;
29192
29853
  };
29193
29854
  Insert: {
29194
- access_token?: string | null;
29195
29855
  api_key: string;
29196
- client_id: string;
29197
- client_secret: string;
29198
29856
  created_at?: string;
29199
29857
  customers_endpoint?: string | null;
29200
29858
  environment: string;
@@ -29209,10 +29867,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
29209
29867
  updated_at?: string;
29210
29868
  };
29211
29869
  Update: {
29212
- access_token?: string | null;
29213
29870
  api_key?: string;
29214
- client_id?: string;
29215
- client_secret?: string;
29216
29871
  created_at?: string;
29217
29872
  customers_endpoint?: string | null;
29218
29873
  environment?: string;
@@ -29296,6 +29951,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
29296
29951
  attempts: number;
29297
29952
  connection_id: string;
29298
29953
  created_at: string;
29954
+ dead_lettered_at: string | null;
29299
29955
  desired_available: boolean | null;
29300
29956
  gateway_attempt_id: string | null;
29301
29957
  id: string;
@@ -29304,9 +29960,13 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
29304
29960
  locked_by: string | null;
29305
29961
  next_attempt_at: string;
29306
29962
  number_of_pieces: number;
29963
+ product_id: string | null;
29307
29964
  sent_at: string | null;
29308
29965
  status: string;
29966
+ stock_mode: string | null;
29309
29967
  superseded_by: string | null;
29968
+ target_week: number | null;
29969
+ target_year: number | null;
29310
29970
  trade_item_id: string;
29311
29971
  updated_at: string;
29312
29972
  user_id: string;
@@ -29315,6 +29975,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
29315
29975
  attempts?: number;
29316
29976
  connection_id: string;
29317
29977
  created_at?: string;
29978
+ dead_lettered_at?: string | null;
29318
29979
  desired_available?: boolean | null;
29319
29980
  gateway_attempt_id?: string | null;
29320
29981
  id?: string;
@@ -29323,9 +29984,13 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
29323
29984
  locked_by?: string | null;
29324
29985
  next_attempt_at?: string;
29325
29986
  number_of_pieces?: number;
29987
+ product_id?: string | null;
29326
29988
  sent_at?: string | null;
29327
29989
  status?: string;
29990
+ stock_mode?: string | null;
29328
29991
  superseded_by?: string | null;
29992
+ target_week?: number | null;
29993
+ target_year?: number | null;
29329
29994
  trade_item_id: string;
29330
29995
  updated_at?: string;
29331
29996
  user_id: string;
@@ -29334,6 +29999,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
29334
29999
  attempts?: number;
29335
30000
  connection_id?: string;
29336
30001
  created_at?: string;
30002
+ dead_lettered_at?: string | null;
29337
30003
  desired_available?: boolean | null;
29338
30004
  gateway_attempt_id?: string | null;
29339
30005
  id?: string;
@@ -29342,9 +30008,13 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
29342
30008
  locked_by?: string | null;
29343
30009
  next_attempt_at?: string;
29344
30010
  number_of_pieces?: number;
30011
+ product_id?: string | null;
29345
30012
  sent_at?: string | null;
29346
30013
  status?: string;
30014
+ stock_mode?: string | null;
29347
30015
  superseded_by?: string | null;
30016
+ target_week?: number | null;
30017
+ target_year?: number | null;
29348
30018
  trade_item_id?: string;
29349
30019
  updated_at?: string;
29350
30020
  user_id?: string;
@@ -29753,6 +30423,87 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
29753
30423
  referencedColumns: ["id"];
29754
30424
  }];
29755
30425
  };
30426
+ floriday_inventory_settings: {
30427
+ Row: {
30428
+ buffer_quantity: number;
30429
+ connection_id: string;
30430
+ created_at: string;
30431
+ desired_availability: boolean;
30432
+ desired_quantity: number;
30433
+ fixed_quantity: number | null;
30434
+ floriday_trade_item_id: string | null;
30435
+ id: string;
30436
+ last_confirmed_at: string | null;
30437
+ last_enqueued_at: string | null;
30438
+ last_published_at: string | null;
30439
+ last_sync_error: string | null;
30440
+ manual_quantity: number | null;
30441
+ maximum_quantity: number | null;
30442
+ product_id: string;
30443
+ quantity_control: string;
30444
+ remote_available: boolean | null;
30445
+ remote_checked_at: string | null;
30446
+ remote_quantity: number | null;
30447
+ stock_mode: string;
30448
+ sync_status: string;
30449
+ updated_at: string;
30450
+ updated_by: string | null;
30451
+ user_id: string;
30452
+ };
30453
+ Insert: {
30454
+ buffer_quantity?: number;
30455
+ connection_id: string;
30456
+ created_at?: string;
30457
+ desired_availability?: boolean;
30458
+ desired_quantity?: number;
30459
+ fixed_quantity?: number | null;
30460
+ floriday_trade_item_id?: string | null;
30461
+ id?: string;
30462
+ last_confirmed_at?: string | null;
30463
+ last_enqueued_at?: string | null;
30464
+ last_published_at?: string | null;
30465
+ last_sync_error?: string | null;
30466
+ manual_quantity?: number | null;
30467
+ maximum_quantity?: number | null;
30468
+ product_id: string;
30469
+ quantity_control?: string;
30470
+ remote_available?: boolean | null;
30471
+ remote_checked_at?: string | null;
30472
+ remote_quantity?: number | null;
30473
+ stock_mode?: string;
30474
+ sync_status?: string;
30475
+ updated_at?: string;
30476
+ updated_by?: string | null;
30477
+ user_id: string;
30478
+ };
30479
+ Update: {
30480
+ buffer_quantity?: number;
30481
+ connection_id?: string;
30482
+ created_at?: string;
30483
+ desired_availability?: boolean;
30484
+ desired_quantity?: number;
30485
+ fixed_quantity?: number | null;
30486
+ floriday_trade_item_id?: string | null;
30487
+ id?: string;
30488
+ last_confirmed_at?: string | null;
30489
+ last_enqueued_at?: string | null;
30490
+ last_published_at?: string | null;
30491
+ last_sync_error?: string | null;
30492
+ manual_quantity?: number | null;
30493
+ maximum_quantity?: number | null;
30494
+ product_id?: string;
30495
+ quantity_control?: string;
30496
+ remote_available?: boolean | null;
30497
+ remote_checked_at?: string | null;
30498
+ remote_quantity?: number | null;
30499
+ stock_mode?: string;
30500
+ sync_status?: string;
30501
+ updated_at?: string;
30502
+ updated_by?: string | null;
30503
+ user_id?: string;
30504
+ };
30505
+ Relationships: [];
30506
+ };
29756
30507
  floriday_invoices_cache: {
29757
30508
  Row: {
29758
30509
  buyer_organization_id: string | null;
@@ -30041,6 +30792,39 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
30041
30792
  };
30042
30793
  Relationships: [];
30043
30794
  };
30795
+ floriday_sales_order_ingest: {
30796
+ Row: {
30797
+ connection_id: string;
30798
+ created_at: string;
30799
+ id: string;
30800
+ impact: import("../integrations/supabase/types").Json;
30801
+ order_status: string | null;
30802
+ order_version: number;
30803
+ processed_at: string;
30804
+ sales_order_id: string;
30805
+ };
30806
+ Insert: {
30807
+ connection_id: string;
30808
+ created_at?: string;
30809
+ id?: string;
30810
+ impact?: import("../integrations/supabase/types").Json;
30811
+ order_status?: string | null;
30812
+ order_version?: number;
30813
+ processed_at?: string;
30814
+ sales_order_id: string;
30815
+ };
30816
+ Update: {
30817
+ connection_id?: string;
30818
+ created_at?: string;
30819
+ id?: string;
30820
+ impact?: import("../integrations/supabase/types").Json;
30821
+ order_status?: string | null;
30822
+ order_version?: number;
30823
+ processed_at?: string;
30824
+ sales_order_id?: string;
30825
+ };
30826
+ Relationships: [];
30827
+ };
30044
30828
  floriday_sales_strategies_cache: {
30045
30829
  Row: {
30046
30830
  connection_id: string;
@@ -30140,6 +30924,39 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
30140
30924
  };
30141
30925
  Relationships: [];
30142
30926
  };
30927
+ floriday_sync_cursors: {
30928
+ Row: {
30929
+ connection_id: string;
30930
+ created_at: string;
30931
+ id: string;
30932
+ last_error: string | null;
30933
+ last_sync_at: string | null;
30934
+ resource_type: string;
30935
+ sequence_number: number;
30936
+ updated_at: string;
30937
+ };
30938
+ Insert: {
30939
+ connection_id: string;
30940
+ created_at?: string;
30941
+ id?: string;
30942
+ last_error?: string | null;
30943
+ last_sync_at?: string | null;
30944
+ resource_type: string;
30945
+ sequence_number?: number;
30946
+ updated_at?: string;
30947
+ };
30948
+ Update: {
30949
+ connection_id?: string;
30950
+ created_at?: string;
30951
+ id?: string;
30952
+ last_error?: string | null;
30953
+ last_sync_at?: string | null;
30954
+ resource_type?: string;
30955
+ sequence_number?: number;
30956
+ updated_at?: string;
30957
+ };
30958
+ Relationships: [];
30959
+ };
30143
30960
  floriday_sync_state: {
30144
30961
  Row: {
30145
30962
  connection_id: string;
@@ -30830,6 +31647,42 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
30830
31647
  };
30831
31648
  Relationships: [];
30832
31649
  };
31650
+ inventory_stock_snapshots: {
31651
+ Row: {
31652
+ connection_id: string;
31653
+ created_at: string;
31654
+ erp_available_quantity: number;
31655
+ floriday_desired_quantity: number;
31656
+ floriday_remote_quantity: number | null;
31657
+ granularity: string;
31658
+ id: string;
31659
+ snapshot_at: string;
31660
+ user_id: string | null;
31661
+ };
31662
+ Insert: {
31663
+ connection_id: string;
31664
+ created_at?: string;
31665
+ erp_available_quantity?: number;
31666
+ floriday_desired_quantity?: number;
31667
+ floriday_remote_quantity?: number | null;
31668
+ granularity?: string;
31669
+ id?: string;
31670
+ snapshot_at?: string;
31671
+ user_id?: string | null;
31672
+ };
31673
+ Update: {
31674
+ connection_id?: string;
31675
+ created_at?: string;
31676
+ erp_available_quantity?: number;
31677
+ floriday_desired_quantity?: number;
31678
+ floriday_remote_quantity?: number | null;
31679
+ granularity?: string;
31680
+ id?: string;
31681
+ snapshot_at?: string;
31682
+ user_id?: string | null;
31683
+ };
31684
+ Relationships: [];
31685
+ };
30833
31686
  invoice_items: {
30834
31687
  Row: {
30835
31688
  created_at: string;
@@ -36845,6 +37698,39 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
36845
37698
  };
36846
37699
  Relationships: [];
36847
37700
  };
37701
+ print_dedupe_events: {
37702
+ Row: {
37703
+ bestaande_job_id: string | null;
37704
+ created_at: string;
37705
+ detail: string | null;
37706
+ documentnaam: string | null;
37707
+ documenttype: string | null;
37708
+ id: string;
37709
+ idempotentie_sleutel: string;
37710
+ reden: string;
37711
+ };
37712
+ Insert: {
37713
+ bestaande_job_id?: string | null;
37714
+ created_at?: string;
37715
+ detail?: string | null;
37716
+ documentnaam?: string | null;
37717
+ documenttype?: string | null;
37718
+ id?: string;
37719
+ idempotentie_sleutel: string;
37720
+ reden: string;
37721
+ };
37722
+ Update: {
37723
+ bestaande_job_id?: string | null;
37724
+ created_at?: string;
37725
+ detail?: string | null;
37726
+ documentnaam?: string | null;
37727
+ documenttype?: string | null;
37728
+ id?: string;
37729
+ idempotentie_sleutel?: string;
37730
+ reden?: string;
37731
+ };
37732
+ Relationships: [];
37733
+ };
36848
37734
  print_job_logs: {
36849
37735
  Row: {
36850
37736
  created_at: string;
@@ -36895,6 +37781,9 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
36895
37781
  is_herprint: boolean;
36896
37782
  kopieen: number;
36897
37783
  layout_id: string | null;
37784
+ lokaal_opgeslagen_op: string | null;
37785
+ lokale_pdf_fout: string | null;
37786
+ lokale_pdf_status: string | null;
36898
37787
  opgepakt_op: string | null;
36899
37788
  paginas: number;
36900
37789
  payload: import("../integrations/supabase/types").Json;
@@ -36903,6 +37792,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
36903
37792
  pogingen: number;
36904
37793
  printer_id: string | null;
36905
37794
  render_html: string | null;
37795
+ resultaat_pdf_base64: string | null;
36906
37796
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36907
37797
  updated_at: string;
36908
37798
  volgende_poging: string | null;
@@ -36927,6 +37817,9 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
36927
37817
  is_herprint?: boolean;
36928
37818
  kopieen?: number;
36929
37819
  layout_id?: string | null;
37820
+ lokaal_opgeslagen_op?: string | null;
37821
+ lokale_pdf_fout?: string | null;
37822
+ lokale_pdf_status?: string | null;
36930
37823
  opgepakt_op?: string | null;
36931
37824
  paginas?: number;
36932
37825
  payload?: import("../integrations/supabase/types").Json;
@@ -36935,6 +37828,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
36935
37828
  pogingen?: number;
36936
37829
  printer_id?: string | null;
36937
37830
  render_html?: string | null;
37831
+ resultaat_pdf_base64?: string | null;
36938
37832
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36939
37833
  updated_at?: string;
36940
37834
  volgende_poging?: string | null;
@@ -36959,6 +37853,9 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
36959
37853
  is_herprint?: boolean;
36960
37854
  kopieen?: number;
36961
37855
  layout_id?: string | null;
37856
+ lokaal_opgeslagen_op?: string | null;
37857
+ lokale_pdf_fout?: string | null;
37858
+ lokale_pdf_status?: string | null;
36962
37859
  opgepakt_op?: string | null;
36963
37860
  paginas?: number;
36964
37861
  payload?: import("../integrations/supabase/types").Json;
@@ -36967,6 +37864,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
36967
37864
  pogingen?: number;
36968
37865
  printer_id?: string | null;
36969
37866
  render_html?: string | null;
37867
+ resultaat_pdf_base64?: string | null;
36970
37868
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36971
37869
  updated_at?: string;
36972
37870
  volgende_poging?: string | null;
@@ -37085,6 +37983,39 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
37085
37983
  };
37086
37984
  Relationships: [];
37087
37985
  };
37986
+ print_preview_events: {
37987
+ Row: {
37988
+ code: string | null;
37989
+ created_at: string;
37990
+ detail: import("../integrations/supabase/types").Json;
37991
+ id: string;
37992
+ queue_item_id: string | null;
37993
+ reden: string | null;
37994
+ station_slug: string | null;
37995
+ uitkomst: string;
37996
+ };
37997
+ Insert: {
37998
+ code?: string | null;
37999
+ created_at?: string;
38000
+ detail?: import("../integrations/supabase/types").Json;
38001
+ id?: string;
38002
+ queue_item_id?: string | null;
38003
+ reden?: string | null;
38004
+ station_slug?: string | null;
38005
+ uitkomst?: string;
38006
+ };
38007
+ Update: {
38008
+ code?: string | null;
38009
+ created_at?: string;
38010
+ detail?: import("../integrations/supabase/types").Json;
38011
+ id?: string;
38012
+ queue_item_id?: string | null;
38013
+ reden?: string | null;
38014
+ station_slug?: string | null;
38015
+ uitkomst?: string;
38016
+ };
38017
+ Relationships: [];
38018
+ };
37088
38019
  print_queue_runners: {
37089
38020
  Row: {
37090
38021
  actief: boolean;
@@ -37324,6 +38255,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
37324
38255
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37325
38256
  online: boolean;
37326
38257
  papierformaat: string;
38258
+ pdf_map: string | null;
37327
38259
  poort: number | null;
37328
38260
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37329
38261
  systeemnaam: string;
@@ -37349,6 +38281,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
37349
38281
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37350
38282
  online?: boolean;
37351
38283
  papierformaat?: string;
38284
+ pdf_map?: string | null;
37352
38285
  poort?: number | null;
37353
38286
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37354
38287
  systeemnaam?: string;
@@ -37374,6 +38307,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
37374
38307
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37375
38308
  online?: boolean;
37376
38309
  papierformaat?: string;
38310
+ pdf_map?: string | null;
37377
38311
  poort?: number | null;
37378
38312
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37379
38313
  systeemnaam?: string;
@@ -39943,6 +40877,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
39943
40877
  };
39944
40878
  trade_item_stock: {
39945
40879
  Row: {
40880
+ change_source: string;
39946
40881
  connection_id: string;
39947
40882
  created_at: string;
39948
40883
  id: string;
@@ -39956,6 +40891,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
39956
40891
  user_id: string;
39957
40892
  };
39958
40893
  Insert: {
40894
+ change_source?: string;
39959
40895
  connection_id: string;
39960
40896
  created_at?: string;
39961
40897
  id?: string;
@@ -39969,6 +40905,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
39969
40905
  user_id: string;
39970
40906
  };
39971
40907
  Update: {
40908
+ change_source?: string;
39972
40909
  connection_id?: string;
39973
40910
  created_at?: string;
39974
40911
  id?: string;
@@ -43569,6 +44506,18 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
43569
44506
  Args: never;
43570
44507
  Returns: number;
43571
44508
  };
44509
+ calculate_floriday_desired_stock: {
44510
+ Args: {
44511
+ p_connection_id: string;
44512
+ p_product_id: string;
44513
+ };
44514
+ Returns: {
44515
+ desired_availability: boolean;
44516
+ desired_quantity: number;
44517
+ erp_available: number;
44518
+ stock_mode: string;
44519
+ }[];
44520
+ };
43572
44521
  calculate_layer_stock: {
43573
44522
  Args: {
43574
44523
  p_product_id: string;
@@ -43630,6 +44579,9 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
43630
44579
  is_herprint: boolean;
43631
44580
  kopieen: number;
43632
44581
  layout_id: string | null;
44582
+ lokaal_opgeslagen_op: string | null;
44583
+ lokale_pdf_fout: string | null;
44584
+ lokale_pdf_status: string | null;
43633
44585
  opgepakt_op: string | null;
43634
44586
  paginas: number;
43635
44587
  payload: import("../integrations/supabase/types").Json;
@@ -43638,6 +44590,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
43638
44590
  pogingen: number;
43639
44591
  printer_id: string | null;
43640
44592
  render_html: string | null;
44593
+ resultaat_pdf_base64: string | null;
43641
44594
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43642
44595
  updated_at: string;
43643
44596
  volgende_poging: string | null;
@@ -43659,6 +44612,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
43659
44612
  attempts: number;
43660
44613
  connection_id: string;
43661
44614
  created_at: string;
44615
+ dead_lettered_at: string | null;
43662
44616
  desired_available: boolean | null;
43663
44617
  gateway_attempt_id: string | null;
43664
44618
  id: string;
@@ -43667,9 +44621,13 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
43667
44621
  locked_by: string | null;
43668
44622
  next_attempt_at: string;
43669
44623
  number_of_pieces: number;
44624
+ product_id: string | null;
43670
44625
  sent_at: string | null;
43671
44626
  status: string;
44627
+ stock_mode: string | null;
43672
44628
  superseded_by: string | null;
44629
+ target_week: number | null;
44630
+ target_year: number | null;
43673
44631
  trade_item_id: string;
43674
44632
  updated_at: string;
43675
44633
  user_id: string;
@@ -43729,6 +44687,53 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
43729
44687
  isSetofReturn: true;
43730
44688
  };
43731
44689
  };
44690
+ claim_pdf_print_jobs: {
44691
+ Args: {
44692
+ _max?: number;
44693
+ };
44694
+ Returns: {
44695
+ agent_id: string | null;
44696
+ bron_job_id: string | null;
44697
+ created_at: string;
44698
+ documentnaam: string;
44699
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44700
+ extern_job_id: string | null;
44701
+ foutmelding: string | null;
44702
+ gebruiker_id: string | null;
44703
+ gebruiker_naam: string;
44704
+ gebruikte_bron: string | null;
44705
+ gebruikte_layout_id: string | null;
44706
+ gestart_op: string | null;
44707
+ herkomst: string | null;
44708
+ id: string;
44709
+ idempotentie_sleutel: string | null;
44710
+ is_herprint: boolean;
44711
+ kopieen: number;
44712
+ layout_id: string | null;
44713
+ lokaal_opgeslagen_op: string | null;
44714
+ lokale_pdf_fout: string | null;
44715
+ lokale_pdf_status: string | null;
44716
+ opgepakt_op: string | null;
44717
+ paginas: number;
44718
+ payload: import("../integrations/supabase/types").Json;
44719
+ pdf_base64: string | null;
44720
+ pdf_url: string | null;
44721
+ pogingen: number;
44722
+ printer_id: string | null;
44723
+ render_html: string | null;
44724
+ resultaat_pdf_base64: string | null;
44725
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44726
+ updated_at: string;
44727
+ volgende_poging: string | null;
44728
+ voltooid_op: string | null;
44729
+ }[];
44730
+ SetofOptions: {
44731
+ from: "*";
44732
+ to: "print_jobs";
44733
+ isOneToOne: false;
44734
+ isSetofReturn: true;
44735
+ };
44736
+ };
43732
44737
  claim_print_jobs: {
43733
44738
  Args: {
43734
44739
  _agent_id: string;
@@ -43753,6 +44758,9 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
43753
44758
  is_herprint: boolean;
43754
44759
  kopieen: number;
43755
44760
  layout_id: string | null;
44761
+ lokaal_opgeslagen_op: string | null;
44762
+ lokale_pdf_fout: string | null;
44763
+ lokale_pdf_status: string | null;
43756
44764
  opgepakt_op: string | null;
43757
44765
  paginas: number;
43758
44766
  payload: import("../integrations/supabase/types").Json;
@@ -43761,6 +44769,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
43761
44769
  pogingen: number;
43762
44770
  printer_id: string | null;
43763
44771
  render_html: string | null;
44772
+ resultaat_pdf_base64: string | null;
43764
44773
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43765
44774
  updated_at: string;
43766
44775
  volgende_poging: string | null;
@@ -43901,6 +44910,8 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
43901
44910
  order_id: string;
43902
44911
  order_source: string;
43903
44912
  pick_date: string;
44913
+ printed_at: string;
44914
+ printed_today: boolean;
43904
44915
  status: string;
43905
44916
  }[];
43906
44917
  };
@@ -44097,6 +45108,24 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
44097
45108
  };
44098
45109
  Returns: string;
44099
45110
  };
45111
+ floriday_capture_stock_snapshot: {
45112
+ Args: never;
45113
+ Returns: number;
45114
+ };
45115
+ floriday_cleanup_stock_queue_v2: {
45116
+ Args: never;
45117
+ Returns: undefined;
45118
+ };
45119
+ floriday_compact_stock_snapshots: {
45120
+ Args: never;
45121
+ Returns: undefined;
45122
+ };
45123
+ floriday_default_owner: {
45124
+ Args: {
45125
+ p_connection_id: string;
45126
+ };
45127
+ Returns: string;
45128
+ };
44100
45129
  floriday_effective_price: {
44101
45130
  Args: {
44102
45131
  _buyer_id: string;
@@ -44114,6 +45143,22 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
44114
45143
  source_id: string;
44115
45144
  }[];
44116
45145
  };
45146
+ floriday_fill_publish_horizon: {
45147
+ Args: never;
45148
+ Returns: number;
45149
+ };
45150
+ floriday_publish_horizon_weeks: {
45151
+ Args: never;
45152
+ Returns: number;
45153
+ };
45154
+ floriday_recompute_inventory: {
45155
+ Args: {
45156
+ p_connection_id: string;
45157
+ p_force?: boolean;
45158
+ p_product_id: string;
45159
+ };
45160
+ Returns: undefined;
45161
+ };
44117
45162
  format_cart_number: {
44118
45163
  Args: {
44119
45164
  p_pick_date: string;
@@ -44609,6 +45654,10 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
44609
45654
  };
44610
45655
  Returns: number;
44611
45656
  };
45657
+ logistics_cancel_orphan_tasks: {
45658
+ Args: never;
45659
+ Returns: number;
45660
+ };
44612
45661
  logistics_capacity_day_check: {
44613
45662
  Args: {
44614
45663
  p_from?: string;
@@ -44629,6 +45678,25 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
44629
45678
  };
44630
45679
  Returns: number;
44631
45680
  };
45681
+ logistics_cart_index: {
45682
+ Args: {
45683
+ p_from?: string;
45684
+ p_to?: string;
45685
+ };
45686
+ Returns: {
45687
+ cart_id: string;
45688
+ cart_index: number;
45689
+ cart_label: string;
45690
+ is_shared: boolean;
45691
+ order_number: string;
45692
+ order_source: string;
45693
+ order_uuid: string;
45694
+ pick_date: string;
45695
+ printed_at: string;
45696
+ shifted: boolean;
45697
+ task_status: string;
45698
+ }[];
45699
+ };
44632
45700
  logistics_check_order_allowed: {
44633
45701
  Args: {
44634
45702
  p_lines: import("../integrations/supabase/types").Json;
@@ -44777,6 +45845,17 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
44777
45845
  isSetofReturn: false;
44778
45846
  };
44779
45847
  };
45848
+ logistics_consistency_check: {
45849
+ Args: never;
45850
+ Returns: {
45851
+ agenda_carts: number;
45852
+ control_carts: number;
45853
+ ok: boolean;
45854
+ orphan_tasks: number;
45855
+ pick_date: string;
45856
+ raw_carts: number;
45857
+ }[];
45858
+ };
44780
45859
  logistics_delay_customer_email: {
44781
45860
  Args: {
44782
45861
  p_customer: string;
@@ -44866,6 +45945,16 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
44866
45945
  isSetofReturn: false;
44867
45946
  };
44868
45947
  };
45948
+ logistics_floriday_cart_plan: {
45949
+ Args: {
45950
+ p_order_id: string;
45951
+ };
45952
+ Returns: {
45953
+ carrier_type: string;
45954
+ idx: number;
45955
+ packages: number;
45956
+ }[];
45957
+ };
44869
45958
  logistics_floriday_claim_pushes: {
44870
45959
  Args: {
44871
45960
  _lease_seconds?: number;
@@ -44970,6 +46059,25 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
44970
46059
  };
44971
46060
  Returns: number;
44972
46061
  };
46062
+ logistics_order_overview: {
46063
+ Args: {
46064
+ p_from?: string;
46065
+ p_to?: string;
46066
+ };
46067
+ Returns: {
46068
+ cart_count: number;
46069
+ customer_name: string;
46070
+ delivery_date: string;
46071
+ order_number: string;
46072
+ order_source: string;
46073
+ order_uuid: string;
46074
+ pick_date: string;
46075
+ plant_count: number;
46076
+ printed_at: string;
46077
+ shifted: boolean;
46078
+ status: string;
46079
+ }[];
46080
+ };
44973
46081
  logistics_order_pick_day: {
44974
46082
  Args: {
44975
46083
  p_order_ref: string;
@@ -44982,6 +46090,22 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
44982
46090
  };
44983
46091
  Returns: string;
44984
46092
  };
46093
+ logistics_pick_agenda: {
46094
+ Args: {
46095
+ p_from?: string;
46096
+ p_to?: string;
46097
+ };
46098
+ Returns: {
46099
+ cart_count: number;
46100
+ in_preparation: number;
46101
+ order_count: number;
46102
+ orders: import("../integrations/supabase/types").Json;
46103
+ pick_date: string;
46104
+ plant_count: number;
46105
+ ready: number;
46106
+ shifted_count: number;
46107
+ }[];
46108
+ };
44985
46109
  logistics_pick_email_purpose: {
44986
46110
  Args: never;
44987
46111
  Returns: string;
@@ -45036,6 +46160,13 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
45036
46160
  };
45037
46161
  Returns: undefined;
45038
46162
  };
46163
+ logistics_plan_floriday_order: {
46164
+ Args: {
46165
+ p_buffer_id?: string;
46166
+ p_order_id: string;
46167
+ };
46168
+ Returns: number;
46169
+ };
45039
46170
  logistics_plan_impact_orders: {
45040
46171
  Args: {
45041
46172
  p_order_id: string;
@@ -45141,6 +46272,15 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
45141
46272
  };
45142
46273
  Returns: import("../integrations/supabase/types").Json;
45143
46274
  };
46275
+ logistics_resolve_pick_document: {
46276
+ Args: {
46277
+ _is_herprint: boolean;
46278
+ _queue_item_id: string;
46279
+ _session_id: string;
46280
+ _voorbeeld: boolean;
46281
+ };
46282
+ Returns: import("../integrations/supabase/types").Json;
46283
+ };
45144
46284
  logistics_resolve_settings: {
45145
46285
  Args: {
45146
46286
  p_config_id: string;
@@ -45581,6 +46721,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
45581
46721
  };
45582
46722
  pick_enqueue_print_job: {
45583
46723
  Args: {
46724
+ _is_herprint?: boolean;
45584
46725
  _printer_id?: string;
45585
46726
  _queue_item_id: string;
45586
46727
  _session_id?: string;
@@ -45594,6 +46735,13 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
45594
46735
  };
45595
46736
  Returns: import("../integrations/supabase/types").Json;
45596
46737
  };
46738
+ pick_preview_job: {
46739
+ Args: {
46740
+ _queue_item_id: string;
46741
+ _station_slug: string;
46742
+ };
46743
+ Returns: import("../integrations/supabase/types").Json;
46744
+ };
45597
46745
  pick_print_job_status: {
45598
46746
  Args: {
45599
46747
  _job_id: string;
@@ -45771,6 +46919,24 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
45771
46919
  };
45772
46920
  Returns: undefined;
45773
46921
  };
46922
+ print_preview_toestaan: {
46923
+ Args: {
46924
+ _max?: number;
46925
+ _queue_item_id: string;
46926
+ _station_slug: string;
46927
+ _venster_sec?: number;
46928
+ };
46929
+ Returns: import("../integrations/supabase/types").Json;
46930
+ };
46931
+ print_preview_weiger: {
46932
+ Args: {
46933
+ _code: string;
46934
+ _queue_item_id: string;
46935
+ _reden: string;
46936
+ _station_slug: string;
46937
+ };
46938
+ Returns: undefined;
46939
+ };
45774
46940
  process_logistics_event: {
45775
46941
  Args: {
45776
46942
  p_event_id: string;
@@ -45925,6 +47091,12 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
45925
47091
  };
45926
47092
  Returns: string;
45927
47093
  };
47094
+ resolve_print_job_printer_id: {
47095
+ Args: {
47096
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
47097
+ };
47098
+ Returns: string;
47099
+ };
45928
47100
  resolve_product_id_for_item: {
45929
47101
  Args: {
45930
47102
  p_product_name: string;
@@ -46516,7 +47688,7 @@ export declare const resolveStockConsumptionAlert: import("@tanstack/start-clien
46516
47688
  };
46517
47689
  CompositeTypes: { [_ in never]: never; };
46518
47690
  }, {
46519
- PostgrestVersion: "14.17";
47691
+ PostgrestVersion: "14.5";
46520
47692
  }>;
46521
47693
  userId: string;
46522
47694
  claims: import("@supabase/auth-js").User;