@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
@@ -2861,6 +2861,84 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
2861
2861
  };
2862
2862
  Relationships: [];
2863
2863
  };
2864
+ delivery_notes: {
2865
+ Row: {
2866
+ byte_size: number | null;
2867
+ connection_id: string | null;
2868
+ content_type: string;
2869
+ created_at: string;
2870
+ error_message: string | null;
2871
+ fetched_at: string | null;
2872
+ fulfillment_order_id: string | null;
2873
+ http_status: number | null;
2874
+ id: string;
2875
+ label_code: string | null;
2876
+ letter: string | null;
2877
+ load_carrier_index: number | null;
2878
+ load_carrier_type: string | null;
2879
+ order_id: string | null;
2880
+ order_number: string | null;
2881
+ packages: number | null;
2882
+ source: string;
2883
+ status: string;
2884
+ storage_bucket: string;
2885
+ storage_path: string | null;
2886
+ updated_at: string;
2887
+ };
2888
+ Insert: {
2889
+ byte_size?: number | null;
2890
+ connection_id?: string | null;
2891
+ content_type?: string;
2892
+ created_at?: string;
2893
+ error_message?: string | null;
2894
+ fetched_at?: string | null;
2895
+ fulfillment_order_id?: string | null;
2896
+ http_status?: number | null;
2897
+ id?: string;
2898
+ label_code?: string | null;
2899
+ letter?: string | null;
2900
+ load_carrier_index?: number | null;
2901
+ load_carrier_type?: string | null;
2902
+ order_id?: string | null;
2903
+ order_number?: string | null;
2904
+ packages?: number | null;
2905
+ source?: string;
2906
+ status?: string;
2907
+ storage_bucket?: string;
2908
+ storage_path?: string | null;
2909
+ updated_at?: string;
2910
+ };
2911
+ Update: {
2912
+ byte_size?: number | null;
2913
+ connection_id?: string | null;
2914
+ content_type?: string;
2915
+ created_at?: string;
2916
+ error_message?: string | null;
2917
+ fetched_at?: string | null;
2918
+ fulfillment_order_id?: string | null;
2919
+ http_status?: number | null;
2920
+ id?: string;
2921
+ label_code?: string | null;
2922
+ letter?: string | null;
2923
+ load_carrier_index?: number | null;
2924
+ load_carrier_type?: string | null;
2925
+ order_id?: string | null;
2926
+ order_number?: string | null;
2927
+ packages?: number | null;
2928
+ source?: string;
2929
+ status?: string;
2930
+ storage_bucket?: string;
2931
+ storage_path?: string | null;
2932
+ updated_at?: string;
2933
+ };
2934
+ Relationships: [{
2935
+ foreignKeyName: "delivery_notes_order_id_fkey";
2936
+ columns: ["order_id"];
2937
+ isOneToOne: false;
2938
+ referencedRelation: "orders";
2939
+ referencedColumns: ["id"];
2940
+ }];
2941
+ };
2864
2942
  document_bronregels: {
2865
2943
  Row: {
2866
2944
  bron: string;
@@ -5914,10 +5992,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
5914
5992
  };
5915
5993
  floriday_connections: {
5916
5994
  Row: {
5917
- access_token: string | null;
5918
5995
  api_key: string;
5919
- client_id: string;
5920
- client_secret: string;
5921
5996
  created_at: string;
5922
5997
  customers_endpoint: string | null;
5923
5998
  environment: string;
@@ -5932,10 +6007,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
5932
6007
  updated_at: string;
5933
6008
  };
5934
6009
  Insert: {
5935
- access_token?: string | null;
5936
6010
  api_key: string;
5937
- client_id: string;
5938
- client_secret: string;
5939
6011
  created_at?: string;
5940
6012
  customers_endpoint?: string | null;
5941
6013
  environment: string;
@@ -5950,10 +6022,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
5950
6022
  updated_at?: string;
5951
6023
  };
5952
6024
  Update: {
5953
- access_token?: string | null;
5954
6025
  api_key?: string;
5955
- client_id?: string;
5956
- client_secret?: string;
5957
6026
  created_at?: string;
5958
6027
  customers_endpoint?: string | null;
5959
6028
  environment?: string;
@@ -6037,6 +6106,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6037
6106
  attempts: number;
6038
6107
  connection_id: string;
6039
6108
  created_at: string;
6109
+ dead_lettered_at: string | null;
6040
6110
  desired_available: boolean | null;
6041
6111
  gateway_attempt_id: string | null;
6042
6112
  id: string;
@@ -6045,9 +6115,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6045
6115
  locked_by: string | null;
6046
6116
  next_attempt_at: string;
6047
6117
  number_of_pieces: number;
6118
+ product_id: string | null;
6048
6119
  sent_at: string | null;
6049
6120
  status: string;
6121
+ stock_mode: string | null;
6050
6122
  superseded_by: string | null;
6123
+ target_week: number | null;
6124
+ target_year: number | null;
6051
6125
  trade_item_id: string;
6052
6126
  updated_at: string;
6053
6127
  user_id: string;
@@ -6056,6 +6130,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6056
6130
  attempts?: number;
6057
6131
  connection_id: string;
6058
6132
  created_at?: string;
6133
+ dead_lettered_at?: string | null;
6059
6134
  desired_available?: boolean | null;
6060
6135
  gateway_attempt_id?: string | null;
6061
6136
  id?: string;
@@ -6064,9 +6139,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6064
6139
  locked_by?: string | null;
6065
6140
  next_attempt_at?: string;
6066
6141
  number_of_pieces?: number;
6142
+ product_id?: string | null;
6067
6143
  sent_at?: string | null;
6068
6144
  status?: string;
6145
+ stock_mode?: string | null;
6069
6146
  superseded_by?: string | null;
6147
+ target_week?: number | null;
6148
+ target_year?: number | null;
6070
6149
  trade_item_id: string;
6071
6150
  updated_at?: string;
6072
6151
  user_id: string;
@@ -6075,6 +6154,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6075
6154
  attempts?: number;
6076
6155
  connection_id?: string;
6077
6156
  created_at?: string;
6157
+ dead_lettered_at?: string | null;
6078
6158
  desired_available?: boolean | null;
6079
6159
  gateway_attempt_id?: string | null;
6080
6160
  id?: string;
@@ -6083,9 +6163,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6083
6163
  locked_by?: string | null;
6084
6164
  next_attempt_at?: string;
6085
6165
  number_of_pieces?: number;
6166
+ product_id?: string | null;
6086
6167
  sent_at?: string | null;
6087
6168
  status?: string;
6169
+ stock_mode?: string | null;
6088
6170
  superseded_by?: string | null;
6171
+ target_week?: number | null;
6172
+ target_year?: number | null;
6089
6173
  trade_item_id?: string;
6090
6174
  updated_at?: string;
6091
6175
  user_id?: string;
@@ -6494,6 +6578,87 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6494
6578
  referencedColumns: ["id"];
6495
6579
  }];
6496
6580
  };
6581
+ floriday_inventory_settings: {
6582
+ Row: {
6583
+ buffer_quantity: number;
6584
+ connection_id: string;
6585
+ created_at: string;
6586
+ desired_availability: boolean;
6587
+ desired_quantity: number;
6588
+ fixed_quantity: number | null;
6589
+ floriday_trade_item_id: string | null;
6590
+ id: string;
6591
+ last_confirmed_at: string | null;
6592
+ last_enqueued_at: string | null;
6593
+ last_published_at: string | null;
6594
+ last_sync_error: string | null;
6595
+ manual_quantity: number | null;
6596
+ maximum_quantity: number | null;
6597
+ product_id: string;
6598
+ quantity_control: string;
6599
+ remote_available: boolean | null;
6600
+ remote_checked_at: string | null;
6601
+ remote_quantity: number | null;
6602
+ stock_mode: string;
6603
+ sync_status: string;
6604
+ updated_at: string;
6605
+ updated_by: string | null;
6606
+ user_id: string;
6607
+ };
6608
+ Insert: {
6609
+ buffer_quantity?: number;
6610
+ connection_id: string;
6611
+ created_at?: string;
6612
+ desired_availability?: boolean;
6613
+ desired_quantity?: number;
6614
+ fixed_quantity?: number | null;
6615
+ floriday_trade_item_id?: string | null;
6616
+ id?: string;
6617
+ last_confirmed_at?: string | null;
6618
+ last_enqueued_at?: string | null;
6619
+ last_published_at?: string | null;
6620
+ last_sync_error?: string | null;
6621
+ manual_quantity?: number | null;
6622
+ maximum_quantity?: number | null;
6623
+ product_id: string;
6624
+ quantity_control?: string;
6625
+ remote_available?: boolean | null;
6626
+ remote_checked_at?: string | null;
6627
+ remote_quantity?: number | null;
6628
+ stock_mode?: string;
6629
+ sync_status?: string;
6630
+ updated_at?: string;
6631
+ updated_by?: string | null;
6632
+ user_id: string;
6633
+ };
6634
+ Update: {
6635
+ buffer_quantity?: number;
6636
+ connection_id?: string;
6637
+ created_at?: string;
6638
+ desired_availability?: boolean;
6639
+ desired_quantity?: number;
6640
+ fixed_quantity?: number | null;
6641
+ floriday_trade_item_id?: string | null;
6642
+ id?: string;
6643
+ last_confirmed_at?: string | null;
6644
+ last_enqueued_at?: string | null;
6645
+ last_published_at?: string | null;
6646
+ last_sync_error?: string | null;
6647
+ manual_quantity?: number | null;
6648
+ maximum_quantity?: number | null;
6649
+ product_id?: string;
6650
+ quantity_control?: string;
6651
+ remote_available?: boolean | null;
6652
+ remote_checked_at?: string | null;
6653
+ remote_quantity?: number | null;
6654
+ stock_mode?: string;
6655
+ sync_status?: string;
6656
+ updated_at?: string;
6657
+ updated_by?: string | null;
6658
+ user_id?: string;
6659
+ };
6660
+ Relationships: [];
6661
+ };
6497
6662
  floriday_invoices_cache: {
6498
6663
  Row: {
6499
6664
  buyer_organization_id: string | null;
@@ -6782,6 +6947,39 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6782
6947
  };
6783
6948
  Relationships: [];
6784
6949
  };
6950
+ floriday_sales_order_ingest: {
6951
+ Row: {
6952
+ connection_id: string;
6953
+ created_at: string;
6954
+ id: string;
6955
+ impact: import("../integrations/supabase/types").Json;
6956
+ order_status: string | null;
6957
+ order_version: number;
6958
+ processed_at: string;
6959
+ sales_order_id: string;
6960
+ };
6961
+ Insert: {
6962
+ connection_id: string;
6963
+ created_at?: string;
6964
+ id?: string;
6965
+ impact?: import("../integrations/supabase/types").Json;
6966
+ order_status?: string | null;
6967
+ order_version?: number;
6968
+ processed_at?: string;
6969
+ sales_order_id: string;
6970
+ };
6971
+ Update: {
6972
+ connection_id?: string;
6973
+ created_at?: string;
6974
+ id?: string;
6975
+ impact?: import("../integrations/supabase/types").Json;
6976
+ order_status?: string | null;
6977
+ order_version?: number;
6978
+ processed_at?: string;
6979
+ sales_order_id?: string;
6980
+ };
6981
+ Relationships: [];
6982
+ };
6785
6983
  floriday_sales_strategies_cache: {
6786
6984
  Row: {
6787
6985
  connection_id: string;
@@ -6881,6 +7079,39 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6881
7079
  };
6882
7080
  Relationships: [];
6883
7081
  };
7082
+ floriday_sync_cursors: {
7083
+ Row: {
7084
+ connection_id: string;
7085
+ created_at: string;
7086
+ id: string;
7087
+ last_error: string | null;
7088
+ last_sync_at: string | null;
7089
+ resource_type: string;
7090
+ sequence_number: number;
7091
+ updated_at: string;
7092
+ };
7093
+ Insert: {
7094
+ connection_id: string;
7095
+ created_at?: string;
7096
+ id?: string;
7097
+ last_error?: string | null;
7098
+ last_sync_at?: string | null;
7099
+ resource_type: string;
7100
+ sequence_number?: number;
7101
+ updated_at?: string;
7102
+ };
7103
+ Update: {
7104
+ connection_id?: string;
7105
+ created_at?: string;
7106
+ id?: string;
7107
+ last_error?: string | null;
7108
+ last_sync_at?: string | null;
7109
+ resource_type?: string;
7110
+ sequence_number?: number;
7111
+ updated_at?: string;
7112
+ };
7113
+ Relationships: [];
7114
+ };
6884
7115
  floriday_sync_state: {
6885
7116
  Row: {
6886
7117
  connection_id: string;
@@ -7571,6 +7802,42 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
7571
7802
  };
7572
7803
  Relationships: [];
7573
7804
  };
7805
+ inventory_stock_snapshots: {
7806
+ Row: {
7807
+ connection_id: string;
7808
+ created_at: string;
7809
+ erp_available_quantity: number;
7810
+ floriday_desired_quantity: number;
7811
+ floriday_remote_quantity: number | null;
7812
+ granularity: string;
7813
+ id: string;
7814
+ snapshot_at: string;
7815
+ user_id: string | null;
7816
+ };
7817
+ Insert: {
7818
+ connection_id: string;
7819
+ created_at?: string;
7820
+ erp_available_quantity?: number;
7821
+ floriday_desired_quantity?: number;
7822
+ floriday_remote_quantity?: number | null;
7823
+ granularity?: string;
7824
+ id?: string;
7825
+ snapshot_at?: string;
7826
+ user_id?: string | null;
7827
+ };
7828
+ Update: {
7829
+ connection_id?: string;
7830
+ created_at?: string;
7831
+ erp_available_quantity?: number;
7832
+ floriday_desired_quantity?: number;
7833
+ floriday_remote_quantity?: number | null;
7834
+ granularity?: string;
7835
+ id?: string;
7836
+ snapshot_at?: string;
7837
+ user_id?: string | null;
7838
+ };
7839
+ Relationships: [];
7840
+ };
7574
7841
  invoice_items: {
7575
7842
  Row: {
7576
7843
  created_at: string;
@@ -13586,6 +13853,39 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13586
13853
  };
13587
13854
  Relationships: [];
13588
13855
  };
13856
+ print_dedupe_events: {
13857
+ Row: {
13858
+ bestaande_job_id: string | null;
13859
+ created_at: string;
13860
+ detail: string | null;
13861
+ documentnaam: string | null;
13862
+ documenttype: string | null;
13863
+ id: string;
13864
+ idempotentie_sleutel: string;
13865
+ reden: string;
13866
+ };
13867
+ Insert: {
13868
+ bestaande_job_id?: string | null;
13869
+ created_at?: string;
13870
+ detail?: string | null;
13871
+ documentnaam?: string | null;
13872
+ documenttype?: string | null;
13873
+ id?: string;
13874
+ idempotentie_sleutel: string;
13875
+ reden: string;
13876
+ };
13877
+ Update: {
13878
+ bestaande_job_id?: string | null;
13879
+ created_at?: string;
13880
+ detail?: string | null;
13881
+ documentnaam?: string | null;
13882
+ documenttype?: string | null;
13883
+ id?: string;
13884
+ idempotentie_sleutel?: string;
13885
+ reden?: string;
13886
+ };
13887
+ Relationships: [];
13888
+ };
13589
13889
  print_job_logs: {
13590
13890
  Row: {
13591
13891
  created_at: string;
@@ -13636,6 +13936,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13636
13936
  is_herprint: boolean;
13637
13937
  kopieen: number;
13638
13938
  layout_id: string | null;
13939
+ lokaal_opgeslagen_op: string | null;
13940
+ lokale_pdf_fout: string | null;
13941
+ lokale_pdf_status: string | null;
13639
13942
  opgepakt_op: string | null;
13640
13943
  paginas: number;
13641
13944
  payload: import("../integrations/supabase/types").Json;
@@ -13644,6 +13947,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13644
13947
  pogingen: number;
13645
13948
  printer_id: string | null;
13646
13949
  render_html: string | null;
13950
+ resultaat_pdf_base64: string | null;
13647
13951
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13648
13952
  updated_at: string;
13649
13953
  volgende_poging: string | null;
@@ -13668,6 +13972,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13668
13972
  is_herprint?: boolean;
13669
13973
  kopieen?: number;
13670
13974
  layout_id?: string | null;
13975
+ lokaal_opgeslagen_op?: string | null;
13976
+ lokale_pdf_fout?: string | null;
13977
+ lokale_pdf_status?: string | null;
13671
13978
  opgepakt_op?: string | null;
13672
13979
  paginas?: number;
13673
13980
  payload?: import("../integrations/supabase/types").Json;
@@ -13676,6 +13983,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13676
13983
  pogingen?: number;
13677
13984
  printer_id?: string | null;
13678
13985
  render_html?: string | null;
13986
+ resultaat_pdf_base64?: string | null;
13679
13987
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13680
13988
  updated_at?: string;
13681
13989
  volgende_poging?: string | null;
@@ -13700,6 +14008,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13700
14008
  is_herprint?: boolean;
13701
14009
  kopieen?: number;
13702
14010
  layout_id?: string | null;
14011
+ lokaal_opgeslagen_op?: string | null;
14012
+ lokale_pdf_fout?: string | null;
14013
+ lokale_pdf_status?: string | null;
13703
14014
  opgepakt_op?: string | null;
13704
14015
  paginas?: number;
13705
14016
  payload?: import("../integrations/supabase/types").Json;
@@ -13708,6 +14019,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13708
14019
  pogingen?: number;
13709
14020
  printer_id?: string | null;
13710
14021
  render_html?: string | null;
14022
+ resultaat_pdf_base64?: string | null;
13711
14023
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13712
14024
  updated_at?: string;
13713
14025
  volgende_poging?: string | null;
@@ -13826,6 +14138,39 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13826
14138
  };
13827
14139
  Relationships: [];
13828
14140
  };
14141
+ print_preview_events: {
14142
+ Row: {
14143
+ code: string | null;
14144
+ created_at: string;
14145
+ detail: import("../integrations/supabase/types").Json;
14146
+ id: string;
14147
+ queue_item_id: string | null;
14148
+ reden: string | null;
14149
+ station_slug: string | null;
14150
+ uitkomst: string;
14151
+ };
14152
+ Insert: {
14153
+ code?: string | null;
14154
+ created_at?: string;
14155
+ detail?: import("../integrations/supabase/types").Json;
14156
+ id?: string;
14157
+ queue_item_id?: string | null;
14158
+ reden?: string | null;
14159
+ station_slug?: string | null;
14160
+ uitkomst?: string;
14161
+ };
14162
+ Update: {
14163
+ code?: string | null;
14164
+ created_at?: string;
14165
+ detail?: import("../integrations/supabase/types").Json;
14166
+ id?: string;
14167
+ queue_item_id?: string | null;
14168
+ reden?: string | null;
14169
+ station_slug?: string | null;
14170
+ uitkomst?: string;
14171
+ };
14172
+ Relationships: [];
14173
+ };
13829
14174
  print_queue_runners: {
13830
14175
  Row: {
13831
14176
  actief: boolean;
@@ -14065,6 +14410,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
14065
14410
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14066
14411
  online: boolean;
14067
14412
  papierformaat: string;
14413
+ pdf_map: string | null;
14068
14414
  poort: number | null;
14069
14415
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14070
14416
  systeemnaam: string;
@@ -14090,6 +14436,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
14090
14436
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14091
14437
  online?: boolean;
14092
14438
  papierformaat?: string;
14439
+ pdf_map?: string | null;
14093
14440
  poort?: number | null;
14094
14441
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14095
14442
  systeemnaam?: string;
@@ -14115,6 +14462,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
14115
14462
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14116
14463
  online?: boolean;
14117
14464
  papierformaat?: string;
14465
+ pdf_map?: string | null;
14118
14466
  poort?: number | null;
14119
14467
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14120
14468
  systeemnaam?: string;
@@ -16684,6 +17032,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16684
17032
  };
16685
17033
  trade_item_stock: {
16686
17034
  Row: {
17035
+ change_source: string;
16687
17036
  connection_id: string;
16688
17037
  created_at: string;
16689
17038
  id: string;
@@ -16697,6 +17046,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16697
17046
  user_id: string;
16698
17047
  };
16699
17048
  Insert: {
17049
+ change_source?: string;
16700
17050
  connection_id: string;
16701
17051
  created_at?: string;
16702
17052
  id?: string;
@@ -16710,6 +17060,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16710
17060
  user_id: string;
16711
17061
  };
16712
17062
  Update: {
17063
+ change_source?: string;
16713
17064
  connection_id?: string;
16714
17065
  created_at?: string;
16715
17066
  id?: string;
@@ -20310,6 +20661,18 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20310
20661
  Args: never;
20311
20662
  Returns: number;
20312
20663
  };
20664
+ calculate_floriday_desired_stock: {
20665
+ Args: {
20666
+ p_connection_id: string;
20667
+ p_product_id: string;
20668
+ };
20669
+ Returns: {
20670
+ desired_availability: boolean;
20671
+ desired_quantity: number;
20672
+ erp_available: number;
20673
+ stock_mode: string;
20674
+ }[];
20675
+ };
20313
20676
  calculate_layer_stock: {
20314
20677
  Args: {
20315
20678
  p_product_id: string;
@@ -20371,6 +20734,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20371
20734
  is_herprint: boolean;
20372
20735
  kopieen: number;
20373
20736
  layout_id: string | null;
20737
+ lokaal_opgeslagen_op: string | null;
20738
+ lokale_pdf_fout: string | null;
20739
+ lokale_pdf_status: string | null;
20374
20740
  opgepakt_op: string | null;
20375
20741
  paginas: number;
20376
20742
  payload: import("../integrations/supabase/types").Json;
@@ -20379,6 +20745,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20379
20745
  pogingen: number;
20380
20746
  printer_id: string | null;
20381
20747
  render_html: string | null;
20748
+ resultaat_pdf_base64: string | null;
20382
20749
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20383
20750
  updated_at: string;
20384
20751
  volgende_poging: string | null;
@@ -20400,6 +20767,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20400
20767
  attempts: number;
20401
20768
  connection_id: string;
20402
20769
  created_at: string;
20770
+ dead_lettered_at: string | null;
20403
20771
  desired_available: boolean | null;
20404
20772
  gateway_attempt_id: string | null;
20405
20773
  id: string;
@@ -20408,9 +20776,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20408
20776
  locked_by: string | null;
20409
20777
  next_attempt_at: string;
20410
20778
  number_of_pieces: number;
20779
+ product_id: string | null;
20411
20780
  sent_at: string | null;
20412
20781
  status: string;
20782
+ stock_mode: string | null;
20413
20783
  superseded_by: string | null;
20784
+ target_week: number | null;
20785
+ target_year: number | null;
20414
20786
  trade_item_id: string;
20415
20787
  updated_at: string;
20416
20788
  user_id: string;
@@ -20470,6 +20842,53 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20470
20842
  isSetofReturn: true;
20471
20843
  };
20472
20844
  };
20845
+ claim_pdf_print_jobs: {
20846
+ Args: {
20847
+ _max?: number;
20848
+ };
20849
+ Returns: {
20850
+ agent_id: string | null;
20851
+ bron_job_id: string | null;
20852
+ created_at: string;
20853
+ documentnaam: string;
20854
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20855
+ extern_job_id: string | null;
20856
+ foutmelding: string | null;
20857
+ gebruiker_id: string | null;
20858
+ gebruiker_naam: string;
20859
+ gebruikte_bron: string | null;
20860
+ gebruikte_layout_id: string | null;
20861
+ gestart_op: string | null;
20862
+ herkomst: string | null;
20863
+ id: string;
20864
+ idempotentie_sleutel: string | null;
20865
+ is_herprint: boolean;
20866
+ kopieen: number;
20867
+ layout_id: string | null;
20868
+ lokaal_opgeslagen_op: string | null;
20869
+ lokale_pdf_fout: string | null;
20870
+ lokale_pdf_status: string | null;
20871
+ opgepakt_op: string | null;
20872
+ paginas: number;
20873
+ payload: import("../integrations/supabase/types").Json;
20874
+ pdf_base64: string | null;
20875
+ pdf_url: string | null;
20876
+ pogingen: number;
20877
+ printer_id: string | null;
20878
+ render_html: string | null;
20879
+ resultaat_pdf_base64: string | null;
20880
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20881
+ updated_at: string;
20882
+ volgende_poging: string | null;
20883
+ voltooid_op: string | null;
20884
+ }[];
20885
+ SetofOptions: {
20886
+ from: "*";
20887
+ to: "print_jobs";
20888
+ isOneToOne: false;
20889
+ isSetofReturn: true;
20890
+ };
20891
+ };
20473
20892
  claim_print_jobs: {
20474
20893
  Args: {
20475
20894
  _agent_id: string;
@@ -20494,6 +20913,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20494
20913
  is_herprint: boolean;
20495
20914
  kopieen: number;
20496
20915
  layout_id: string | null;
20916
+ lokaal_opgeslagen_op: string | null;
20917
+ lokale_pdf_fout: string | null;
20918
+ lokale_pdf_status: string | null;
20497
20919
  opgepakt_op: string | null;
20498
20920
  paginas: number;
20499
20921
  payload: import("../integrations/supabase/types").Json;
@@ -20502,6 +20924,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20502
20924
  pogingen: number;
20503
20925
  printer_id: string | null;
20504
20926
  render_html: string | null;
20927
+ resultaat_pdf_base64: string | null;
20505
20928
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20506
20929
  updated_at: string;
20507
20930
  volgende_poging: string | null;
@@ -20642,6 +21065,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20642
21065
  order_id: string;
20643
21066
  order_source: string;
20644
21067
  pick_date: string;
21068
+ printed_at: string;
21069
+ printed_today: boolean;
20645
21070
  status: string;
20646
21071
  }[];
20647
21072
  };
@@ -20838,6 +21263,24 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20838
21263
  };
20839
21264
  Returns: string;
20840
21265
  };
21266
+ floriday_capture_stock_snapshot: {
21267
+ Args: never;
21268
+ Returns: number;
21269
+ };
21270
+ floriday_cleanup_stock_queue_v2: {
21271
+ Args: never;
21272
+ Returns: undefined;
21273
+ };
21274
+ floriday_compact_stock_snapshots: {
21275
+ Args: never;
21276
+ Returns: undefined;
21277
+ };
21278
+ floriday_default_owner: {
21279
+ Args: {
21280
+ p_connection_id: string;
21281
+ };
21282
+ Returns: string;
21283
+ };
20841
21284
  floriday_effective_price: {
20842
21285
  Args: {
20843
21286
  _buyer_id: string;
@@ -20855,6 +21298,22 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20855
21298
  source_id: string;
20856
21299
  }[];
20857
21300
  };
21301
+ floriday_fill_publish_horizon: {
21302
+ Args: never;
21303
+ Returns: number;
21304
+ };
21305
+ floriday_publish_horizon_weeks: {
21306
+ Args: never;
21307
+ Returns: number;
21308
+ };
21309
+ floriday_recompute_inventory: {
21310
+ Args: {
21311
+ p_connection_id: string;
21312
+ p_force?: boolean;
21313
+ p_product_id: string;
21314
+ };
21315
+ Returns: undefined;
21316
+ };
20858
21317
  format_cart_number: {
20859
21318
  Args: {
20860
21319
  p_pick_date: string;
@@ -21350,6 +21809,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21350
21809
  };
21351
21810
  Returns: number;
21352
21811
  };
21812
+ logistics_cancel_orphan_tasks: {
21813
+ Args: never;
21814
+ Returns: number;
21815
+ };
21353
21816
  logistics_capacity_day_check: {
21354
21817
  Args: {
21355
21818
  p_from?: string;
@@ -21370,6 +21833,25 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21370
21833
  };
21371
21834
  Returns: number;
21372
21835
  };
21836
+ logistics_cart_index: {
21837
+ Args: {
21838
+ p_from?: string;
21839
+ p_to?: string;
21840
+ };
21841
+ Returns: {
21842
+ cart_id: string;
21843
+ cart_index: number;
21844
+ cart_label: string;
21845
+ is_shared: boolean;
21846
+ order_number: string;
21847
+ order_source: string;
21848
+ order_uuid: string;
21849
+ pick_date: string;
21850
+ printed_at: string;
21851
+ shifted: boolean;
21852
+ task_status: string;
21853
+ }[];
21854
+ };
21373
21855
  logistics_check_order_allowed: {
21374
21856
  Args: {
21375
21857
  p_lines: import("../integrations/supabase/types").Json;
@@ -21518,6 +22000,17 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21518
22000
  isSetofReturn: false;
21519
22001
  };
21520
22002
  };
22003
+ logistics_consistency_check: {
22004
+ Args: never;
22005
+ Returns: {
22006
+ agenda_carts: number;
22007
+ control_carts: number;
22008
+ ok: boolean;
22009
+ orphan_tasks: number;
22010
+ pick_date: string;
22011
+ raw_carts: number;
22012
+ }[];
22013
+ };
21521
22014
  logistics_delay_customer_email: {
21522
22015
  Args: {
21523
22016
  p_customer: string;
@@ -21607,6 +22100,16 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21607
22100
  isSetofReturn: false;
21608
22101
  };
21609
22102
  };
22103
+ logistics_floriday_cart_plan: {
22104
+ Args: {
22105
+ p_order_id: string;
22106
+ };
22107
+ Returns: {
22108
+ carrier_type: string;
22109
+ idx: number;
22110
+ packages: number;
22111
+ }[];
22112
+ };
21610
22113
  logistics_floriday_claim_pushes: {
21611
22114
  Args: {
21612
22115
  _lease_seconds?: number;
@@ -21711,6 +22214,25 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21711
22214
  };
21712
22215
  Returns: number;
21713
22216
  };
22217
+ logistics_order_overview: {
22218
+ Args: {
22219
+ p_from?: string;
22220
+ p_to?: string;
22221
+ };
22222
+ Returns: {
22223
+ cart_count: number;
22224
+ customer_name: string;
22225
+ delivery_date: string;
22226
+ order_number: string;
22227
+ order_source: string;
22228
+ order_uuid: string;
22229
+ pick_date: string;
22230
+ plant_count: number;
22231
+ printed_at: string;
22232
+ shifted: boolean;
22233
+ status: string;
22234
+ }[];
22235
+ };
21714
22236
  logistics_order_pick_day: {
21715
22237
  Args: {
21716
22238
  p_order_ref: string;
@@ -21723,6 +22245,22 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21723
22245
  };
21724
22246
  Returns: string;
21725
22247
  };
22248
+ logistics_pick_agenda: {
22249
+ Args: {
22250
+ p_from?: string;
22251
+ p_to?: string;
22252
+ };
22253
+ Returns: {
22254
+ cart_count: number;
22255
+ in_preparation: number;
22256
+ order_count: number;
22257
+ orders: import("../integrations/supabase/types").Json;
22258
+ pick_date: string;
22259
+ plant_count: number;
22260
+ ready: number;
22261
+ shifted_count: number;
22262
+ }[];
22263
+ };
21726
22264
  logistics_pick_email_purpose: {
21727
22265
  Args: never;
21728
22266
  Returns: string;
@@ -21777,6 +22315,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21777
22315
  };
21778
22316
  Returns: undefined;
21779
22317
  };
22318
+ logistics_plan_floriday_order: {
22319
+ Args: {
22320
+ p_buffer_id?: string;
22321
+ p_order_id: string;
22322
+ };
22323
+ Returns: number;
22324
+ };
21780
22325
  logistics_plan_impact_orders: {
21781
22326
  Args: {
21782
22327
  p_order_id: string;
@@ -21882,6 +22427,15 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
21882
22427
  };
21883
22428
  Returns: import("../integrations/supabase/types").Json;
21884
22429
  };
22430
+ logistics_resolve_pick_document: {
22431
+ Args: {
22432
+ _is_herprint: boolean;
22433
+ _queue_item_id: string;
22434
+ _session_id: string;
22435
+ _voorbeeld: boolean;
22436
+ };
22437
+ Returns: import("../integrations/supabase/types").Json;
22438
+ };
21885
22439
  logistics_resolve_settings: {
21886
22440
  Args: {
21887
22441
  p_config_id: string;
@@ -22322,6 +22876,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
22322
22876
  };
22323
22877
  pick_enqueue_print_job: {
22324
22878
  Args: {
22879
+ _is_herprint?: boolean;
22325
22880
  _printer_id?: string;
22326
22881
  _queue_item_id: string;
22327
22882
  _session_id?: string;
@@ -22335,6 +22890,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
22335
22890
  };
22336
22891
  Returns: import("../integrations/supabase/types").Json;
22337
22892
  };
22893
+ pick_preview_job: {
22894
+ Args: {
22895
+ _queue_item_id: string;
22896
+ _station_slug: string;
22897
+ };
22898
+ Returns: import("../integrations/supabase/types").Json;
22899
+ };
22338
22900
  pick_print_job_status: {
22339
22901
  Args: {
22340
22902
  _job_id: string;
@@ -22512,6 +23074,24 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
22512
23074
  };
22513
23075
  Returns: undefined;
22514
23076
  };
23077
+ print_preview_toestaan: {
23078
+ Args: {
23079
+ _max?: number;
23080
+ _queue_item_id: string;
23081
+ _station_slug: string;
23082
+ _venster_sec?: number;
23083
+ };
23084
+ Returns: import("../integrations/supabase/types").Json;
23085
+ };
23086
+ print_preview_weiger: {
23087
+ Args: {
23088
+ _code: string;
23089
+ _queue_item_id: string;
23090
+ _reden: string;
23091
+ _station_slug: string;
23092
+ };
23093
+ Returns: undefined;
23094
+ };
22515
23095
  process_logistics_event: {
22516
23096
  Args: {
22517
23097
  p_event_id: string;
@@ -22666,6 +23246,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
22666
23246
  };
22667
23247
  Returns: string;
22668
23248
  };
23249
+ resolve_print_job_printer_id: {
23250
+ Args: {
23251
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
23252
+ };
23253
+ Returns: string;
23254
+ };
22669
23255
  resolve_product_id_for_item: {
22670
23256
  Args: {
22671
23257
  p_product_name: string;
@@ -23257,7 +23843,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
23257
23843
  };
23258
23844
  CompositeTypes: { [_ in never]: never; };
23259
23845
  }, {
23260
- PostgrestVersion: "14.17";
23846
+ PostgrestVersion: "14.5";
23261
23847
  }>;
23262
23848
  userId: string;
23263
23849
  claims: import("@supabase/auth-js").User;
@@ -26127,6 +26713,84 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
26127
26713
  };
26128
26714
  Relationships: [];
26129
26715
  };
26716
+ delivery_notes: {
26717
+ Row: {
26718
+ byte_size: number | null;
26719
+ connection_id: string | null;
26720
+ content_type: string;
26721
+ created_at: string;
26722
+ error_message: string | null;
26723
+ fetched_at: string | null;
26724
+ fulfillment_order_id: string | null;
26725
+ http_status: number | null;
26726
+ id: string;
26727
+ label_code: string | null;
26728
+ letter: string | null;
26729
+ load_carrier_index: number | null;
26730
+ load_carrier_type: string | null;
26731
+ order_id: string | null;
26732
+ order_number: string | null;
26733
+ packages: number | null;
26734
+ source: string;
26735
+ status: string;
26736
+ storage_bucket: string;
26737
+ storage_path: string | null;
26738
+ updated_at: string;
26739
+ };
26740
+ Insert: {
26741
+ byte_size?: number | null;
26742
+ connection_id?: string | null;
26743
+ content_type?: string;
26744
+ created_at?: string;
26745
+ error_message?: string | null;
26746
+ fetched_at?: string | null;
26747
+ fulfillment_order_id?: string | null;
26748
+ http_status?: number | null;
26749
+ id?: string;
26750
+ label_code?: string | null;
26751
+ letter?: string | null;
26752
+ load_carrier_index?: number | null;
26753
+ load_carrier_type?: string | null;
26754
+ order_id?: string | null;
26755
+ order_number?: string | null;
26756
+ packages?: number | null;
26757
+ source?: string;
26758
+ status?: string;
26759
+ storage_bucket?: string;
26760
+ storage_path?: string | null;
26761
+ updated_at?: string;
26762
+ };
26763
+ Update: {
26764
+ byte_size?: number | null;
26765
+ connection_id?: string | null;
26766
+ content_type?: string;
26767
+ created_at?: string;
26768
+ error_message?: string | null;
26769
+ fetched_at?: string | null;
26770
+ fulfillment_order_id?: string | null;
26771
+ http_status?: number | null;
26772
+ id?: string;
26773
+ label_code?: string | null;
26774
+ letter?: string | null;
26775
+ load_carrier_index?: number | null;
26776
+ load_carrier_type?: string | null;
26777
+ order_id?: string | null;
26778
+ order_number?: string | null;
26779
+ packages?: number | null;
26780
+ source?: string;
26781
+ status?: string;
26782
+ storage_bucket?: string;
26783
+ storage_path?: string | null;
26784
+ updated_at?: string;
26785
+ };
26786
+ Relationships: [{
26787
+ foreignKeyName: "delivery_notes_order_id_fkey";
26788
+ columns: ["order_id"];
26789
+ isOneToOne: false;
26790
+ referencedRelation: "orders";
26791
+ referencedColumns: ["id"];
26792
+ }];
26793
+ };
26130
26794
  document_bronregels: {
26131
26795
  Row: {
26132
26796
  bron: string;
@@ -29180,10 +29844,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29180
29844
  };
29181
29845
  floriday_connections: {
29182
29846
  Row: {
29183
- access_token: string | null;
29184
29847
  api_key: string;
29185
- client_id: string;
29186
- client_secret: string;
29187
29848
  created_at: string;
29188
29849
  customers_endpoint: string | null;
29189
29850
  environment: string;
@@ -29198,10 +29859,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29198
29859
  updated_at: string;
29199
29860
  };
29200
29861
  Insert: {
29201
- access_token?: string | null;
29202
29862
  api_key: string;
29203
- client_id: string;
29204
- client_secret: string;
29205
29863
  created_at?: string;
29206
29864
  customers_endpoint?: string | null;
29207
29865
  environment: string;
@@ -29216,10 +29874,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29216
29874
  updated_at?: string;
29217
29875
  };
29218
29876
  Update: {
29219
- access_token?: string | null;
29220
29877
  api_key?: string;
29221
- client_id?: string;
29222
- client_secret?: string;
29223
29878
  created_at?: string;
29224
29879
  customers_endpoint?: string | null;
29225
29880
  environment?: string;
@@ -29303,6 +29958,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29303
29958
  attempts: number;
29304
29959
  connection_id: string;
29305
29960
  created_at: string;
29961
+ dead_lettered_at: string | null;
29306
29962
  desired_available: boolean | null;
29307
29963
  gateway_attempt_id: string | null;
29308
29964
  id: string;
@@ -29311,9 +29967,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29311
29967
  locked_by: string | null;
29312
29968
  next_attempt_at: string;
29313
29969
  number_of_pieces: number;
29970
+ product_id: string | null;
29314
29971
  sent_at: string | null;
29315
29972
  status: string;
29973
+ stock_mode: string | null;
29316
29974
  superseded_by: string | null;
29975
+ target_week: number | null;
29976
+ target_year: number | null;
29317
29977
  trade_item_id: string;
29318
29978
  updated_at: string;
29319
29979
  user_id: string;
@@ -29322,6 +29982,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29322
29982
  attempts?: number;
29323
29983
  connection_id: string;
29324
29984
  created_at?: string;
29985
+ dead_lettered_at?: string | null;
29325
29986
  desired_available?: boolean | null;
29326
29987
  gateway_attempt_id?: string | null;
29327
29988
  id?: string;
@@ -29330,9 +29991,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29330
29991
  locked_by?: string | null;
29331
29992
  next_attempt_at?: string;
29332
29993
  number_of_pieces?: number;
29994
+ product_id?: string | null;
29333
29995
  sent_at?: string | null;
29334
29996
  status?: string;
29997
+ stock_mode?: string | null;
29335
29998
  superseded_by?: string | null;
29999
+ target_week?: number | null;
30000
+ target_year?: number | null;
29336
30001
  trade_item_id: string;
29337
30002
  updated_at?: string;
29338
30003
  user_id: string;
@@ -29341,6 +30006,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29341
30006
  attempts?: number;
29342
30007
  connection_id?: string;
29343
30008
  created_at?: string;
30009
+ dead_lettered_at?: string | null;
29344
30010
  desired_available?: boolean | null;
29345
30011
  gateway_attempt_id?: string | null;
29346
30012
  id?: string;
@@ -29349,9 +30015,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29349
30015
  locked_by?: string | null;
29350
30016
  next_attempt_at?: string;
29351
30017
  number_of_pieces?: number;
30018
+ product_id?: string | null;
29352
30019
  sent_at?: string | null;
29353
30020
  status?: string;
30021
+ stock_mode?: string | null;
29354
30022
  superseded_by?: string | null;
30023
+ target_week?: number | null;
30024
+ target_year?: number | null;
29355
30025
  trade_item_id?: string;
29356
30026
  updated_at?: string;
29357
30027
  user_id?: string;
@@ -29760,6 +30430,87 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29760
30430
  referencedColumns: ["id"];
29761
30431
  }];
29762
30432
  };
30433
+ floriday_inventory_settings: {
30434
+ Row: {
30435
+ buffer_quantity: number;
30436
+ connection_id: string;
30437
+ created_at: string;
30438
+ desired_availability: boolean;
30439
+ desired_quantity: number;
30440
+ fixed_quantity: number | null;
30441
+ floriday_trade_item_id: string | null;
30442
+ id: string;
30443
+ last_confirmed_at: string | null;
30444
+ last_enqueued_at: string | null;
30445
+ last_published_at: string | null;
30446
+ last_sync_error: string | null;
30447
+ manual_quantity: number | null;
30448
+ maximum_quantity: number | null;
30449
+ product_id: string;
30450
+ quantity_control: string;
30451
+ remote_available: boolean | null;
30452
+ remote_checked_at: string | null;
30453
+ remote_quantity: number | null;
30454
+ stock_mode: string;
30455
+ sync_status: string;
30456
+ updated_at: string;
30457
+ updated_by: string | null;
30458
+ user_id: string;
30459
+ };
30460
+ Insert: {
30461
+ buffer_quantity?: number;
30462
+ connection_id: string;
30463
+ created_at?: string;
30464
+ desired_availability?: boolean;
30465
+ desired_quantity?: number;
30466
+ fixed_quantity?: number | null;
30467
+ floriday_trade_item_id?: string | null;
30468
+ id?: string;
30469
+ last_confirmed_at?: string | null;
30470
+ last_enqueued_at?: string | null;
30471
+ last_published_at?: string | null;
30472
+ last_sync_error?: string | null;
30473
+ manual_quantity?: number | null;
30474
+ maximum_quantity?: number | null;
30475
+ product_id: string;
30476
+ quantity_control?: string;
30477
+ remote_available?: boolean | null;
30478
+ remote_checked_at?: string | null;
30479
+ remote_quantity?: number | null;
30480
+ stock_mode?: string;
30481
+ sync_status?: string;
30482
+ updated_at?: string;
30483
+ updated_by?: string | null;
30484
+ user_id: string;
30485
+ };
30486
+ Update: {
30487
+ buffer_quantity?: number;
30488
+ connection_id?: string;
30489
+ created_at?: string;
30490
+ desired_availability?: boolean;
30491
+ desired_quantity?: number;
30492
+ fixed_quantity?: number | null;
30493
+ floriday_trade_item_id?: string | null;
30494
+ id?: string;
30495
+ last_confirmed_at?: string | null;
30496
+ last_enqueued_at?: string | null;
30497
+ last_published_at?: string | null;
30498
+ last_sync_error?: string | null;
30499
+ manual_quantity?: number | null;
30500
+ maximum_quantity?: number | null;
30501
+ product_id?: string;
30502
+ quantity_control?: string;
30503
+ remote_available?: boolean | null;
30504
+ remote_checked_at?: string | null;
30505
+ remote_quantity?: number | null;
30506
+ stock_mode?: string;
30507
+ sync_status?: string;
30508
+ updated_at?: string;
30509
+ updated_by?: string | null;
30510
+ user_id?: string;
30511
+ };
30512
+ Relationships: [];
30513
+ };
29763
30514
  floriday_invoices_cache: {
29764
30515
  Row: {
29765
30516
  buyer_organization_id: string | null;
@@ -30048,6 +30799,39 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
30048
30799
  };
30049
30800
  Relationships: [];
30050
30801
  };
30802
+ floriday_sales_order_ingest: {
30803
+ Row: {
30804
+ connection_id: string;
30805
+ created_at: string;
30806
+ id: string;
30807
+ impact: import("../integrations/supabase/types").Json;
30808
+ order_status: string | null;
30809
+ order_version: number;
30810
+ processed_at: string;
30811
+ sales_order_id: string;
30812
+ };
30813
+ Insert: {
30814
+ connection_id: string;
30815
+ created_at?: string;
30816
+ id?: string;
30817
+ impact?: import("../integrations/supabase/types").Json;
30818
+ order_status?: string | null;
30819
+ order_version?: number;
30820
+ processed_at?: string;
30821
+ sales_order_id: string;
30822
+ };
30823
+ Update: {
30824
+ connection_id?: string;
30825
+ created_at?: string;
30826
+ id?: string;
30827
+ impact?: import("../integrations/supabase/types").Json;
30828
+ order_status?: string | null;
30829
+ order_version?: number;
30830
+ processed_at?: string;
30831
+ sales_order_id?: string;
30832
+ };
30833
+ Relationships: [];
30834
+ };
30051
30835
  floriday_sales_strategies_cache: {
30052
30836
  Row: {
30053
30837
  connection_id: string;
@@ -30147,6 +30931,39 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
30147
30931
  };
30148
30932
  Relationships: [];
30149
30933
  };
30934
+ floriday_sync_cursors: {
30935
+ Row: {
30936
+ connection_id: string;
30937
+ created_at: string;
30938
+ id: string;
30939
+ last_error: string | null;
30940
+ last_sync_at: string | null;
30941
+ resource_type: string;
30942
+ sequence_number: number;
30943
+ updated_at: string;
30944
+ };
30945
+ Insert: {
30946
+ connection_id: string;
30947
+ created_at?: string;
30948
+ id?: string;
30949
+ last_error?: string | null;
30950
+ last_sync_at?: string | null;
30951
+ resource_type: string;
30952
+ sequence_number?: number;
30953
+ updated_at?: string;
30954
+ };
30955
+ Update: {
30956
+ connection_id?: string;
30957
+ created_at?: string;
30958
+ id?: string;
30959
+ last_error?: string | null;
30960
+ last_sync_at?: string | null;
30961
+ resource_type?: string;
30962
+ sequence_number?: number;
30963
+ updated_at?: string;
30964
+ };
30965
+ Relationships: [];
30966
+ };
30150
30967
  floriday_sync_state: {
30151
30968
  Row: {
30152
30969
  connection_id: string;
@@ -30837,6 +31654,42 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
30837
31654
  };
30838
31655
  Relationships: [];
30839
31656
  };
31657
+ inventory_stock_snapshots: {
31658
+ Row: {
31659
+ connection_id: string;
31660
+ created_at: string;
31661
+ erp_available_quantity: number;
31662
+ floriday_desired_quantity: number;
31663
+ floriday_remote_quantity: number | null;
31664
+ granularity: string;
31665
+ id: string;
31666
+ snapshot_at: string;
31667
+ user_id: string | null;
31668
+ };
31669
+ Insert: {
31670
+ connection_id: string;
31671
+ created_at?: string;
31672
+ erp_available_quantity?: number;
31673
+ floriday_desired_quantity?: number;
31674
+ floriday_remote_quantity?: number | null;
31675
+ granularity?: string;
31676
+ id?: string;
31677
+ snapshot_at?: string;
31678
+ user_id?: string | null;
31679
+ };
31680
+ Update: {
31681
+ connection_id?: string;
31682
+ created_at?: string;
31683
+ erp_available_quantity?: number;
31684
+ floriday_desired_quantity?: number;
31685
+ floriday_remote_quantity?: number | null;
31686
+ granularity?: string;
31687
+ id?: string;
31688
+ snapshot_at?: string;
31689
+ user_id?: string | null;
31690
+ };
31691
+ Relationships: [];
31692
+ };
30840
31693
  invoice_items: {
30841
31694
  Row: {
30842
31695
  created_at: string;
@@ -36852,6 +37705,39 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36852
37705
  };
36853
37706
  Relationships: [];
36854
37707
  };
37708
+ print_dedupe_events: {
37709
+ Row: {
37710
+ bestaande_job_id: string | null;
37711
+ created_at: string;
37712
+ detail: string | null;
37713
+ documentnaam: string | null;
37714
+ documenttype: string | null;
37715
+ id: string;
37716
+ idempotentie_sleutel: string;
37717
+ reden: string;
37718
+ };
37719
+ Insert: {
37720
+ bestaande_job_id?: string | null;
37721
+ created_at?: string;
37722
+ detail?: string | null;
37723
+ documentnaam?: string | null;
37724
+ documenttype?: string | null;
37725
+ id?: string;
37726
+ idempotentie_sleutel: string;
37727
+ reden: string;
37728
+ };
37729
+ Update: {
37730
+ bestaande_job_id?: string | null;
37731
+ created_at?: string;
37732
+ detail?: string | null;
37733
+ documentnaam?: string | null;
37734
+ documenttype?: string | null;
37735
+ id?: string;
37736
+ idempotentie_sleutel?: string;
37737
+ reden?: string;
37738
+ };
37739
+ Relationships: [];
37740
+ };
36855
37741
  print_job_logs: {
36856
37742
  Row: {
36857
37743
  created_at: string;
@@ -36902,6 +37788,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36902
37788
  is_herprint: boolean;
36903
37789
  kopieen: number;
36904
37790
  layout_id: string | null;
37791
+ lokaal_opgeslagen_op: string | null;
37792
+ lokale_pdf_fout: string | null;
37793
+ lokale_pdf_status: string | null;
36905
37794
  opgepakt_op: string | null;
36906
37795
  paginas: number;
36907
37796
  payload: import("../integrations/supabase/types").Json;
@@ -36910,6 +37799,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36910
37799
  pogingen: number;
36911
37800
  printer_id: string | null;
36912
37801
  render_html: string | null;
37802
+ resultaat_pdf_base64: string | null;
36913
37803
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36914
37804
  updated_at: string;
36915
37805
  volgende_poging: string | null;
@@ -36934,6 +37824,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36934
37824
  is_herprint?: boolean;
36935
37825
  kopieen?: number;
36936
37826
  layout_id?: string | null;
37827
+ lokaal_opgeslagen_op?: string | null;
37828
+ lokale_pdf_fout?: string | null;
37829
+ lokale_pdf_status?: string | null;
36937
37830
  opgepakt_op?: string | null;
36938
37831
  paginas?: number;
36939
37832
  payload?: import("../integrations/supabase/types").Json;
@@ -36942,6 +37835,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36942
37835
  pogingen?: number;
36943
37836
  printer_id?: string | null;
36944
37837
  render_html?: string | null;
37838
+ resultaat_pdf_base64?: string | null;
36945
37839
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36946
37840
  updated_at?: string;
36947
37841
  volgende_poging?: string | null;
@@ -36966,6 +37860,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36966
37860
  is_herprint?: boolean;
36967
37861
  kopieen?: number;
36968
37862
  layout_id?: string | null;
37863
+ lokaal_opgeslagen_op?: string | null;
37864
+ lokale_pdf_fout?: string | null;
37865
+ lokale_pdf_status?: string | null;
36969
37866
  opgepakt_op?: string | null;
36970
37867
  paginas?: number;
36971
37868
  payload?: import("../integrations/supabase/types").Json;
@@ -36974,6 +37871,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36974
37871
  pogingen?: number;
36975
37872
  printer_id?: string | null;
36976
37873
  render_html?: string | null;
37874
+ resultaat_pdf_base64?: string | null;
36977
37875
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36978
37876
  updated_at?: string;
36979
37877
  volgende_poging?: string | null;
@@ -37092,6 +37990,39 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37092
37990
  };
37093
37991
  Relationships: [];
37094
37992
  };
37993
+ print_preview_events: {
37994
+ Row: {
37995
+ code: string | null;
37996
+ created_at: string;
37997
+ detail: import("../integrations/supabase/types").Json;
37998
+ id: string;
37999
+ queue_item_id: string | null;
38000
+ reden: string | null;
38001
+ station_slug: string | null;
38002
+ uitkomst: string;
38003
+ };
38004
+ Insert: {
38005
+ code?: string | null;
38006
+ created_at?: string;
38007
+ detail?: import("../integrations/supabase/types").Json;
38008
+ id?: string;
38009
+ queue_item_id?: string | null;
38010
+ reden?: string | null;
38011
+ station_slug?: string | null;
38012
+ uitkomst?: string;
38013
+ };
38014
+ Update: {
38015
+ code?: string | null;
38016
+ created_at?: string;
38017
+ detail?: import("../integrations/supabase/types").Json;
38018
+ id?: string;
38019
+ queue_item_id?: string | null;
38020
+ reden?: string | null;
38021
+ station_slug?: string | null;
38022
+ uitkomst?: string;
38023
+ };
38024
+ Relationships: [];
38025
+ };
37095
38026
  print_queue_runners: {
37096
38027
  Row: {
37097
38028
  actief: boolean;
@@ -37331,6 +38262,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37331
38262
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37332
38263
  online: boolean;
37333
38264
  papierformaat: string;
38265
+ pdf_map: string | null;
37334
38266
  poort: number | null;
37335
38267
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37336
38268
  systeemnaam: string;
@@ -37356,6 +38288,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37356
38288
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37357
38289
  online?: boolean;
37358
38290
  papierformaat?: string;
38291
+ pdf_map?: string | null;
37359
38292
  poort?: number | null;
37360
38293
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37361
38294
  systeemnaam?: string;
@@ -37381,6 +38314,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37381
38314
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37382
38315
  online?: boolean;
37383
38316
  papierformaat?: string;
38317
+ pdf_map?: string | null;
37384
38318
  poort?: number | null;
37385
38319
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37386
38320
  systeemnaam?: string;
@@ -39950,6 +40884,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39950
40884
  };
39951
40885
  trade_item_stock: {
39952
40886
  Row: {
40887
+ change_source: string;
39953
40888
  connection_id: string;
39954
40889
  created_at: string;
39955
40890
  id: string;
@@ -39963,6 +40898,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39963
40898
  user_id: string;
39964
40899
  };
39965
40900
  Insert: {
40901
+ change_source?: string;
39966
40902
  connection_id: string;
39967
40903
  created_at?: string;
39968
40904
  id?: string;
@@ -39976,6 +40912,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39976
40912
  user_id: string;
39977
40913
  };
39978
40914
  Update: {
40915
+ change_source?: string;
39979
40916
  connection_id?: string;
39980
40917
  created_at?: string;
39981
40918
  id?: string;
@@ -43576,6 +44513,18 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43576
44513
  Args: never;
43577
44514
  Returns: number;
43578
44515
  };
44516
+ calculate_floriday_desired_stock: {
44517
+ Args: {
44518
+ p_connection_id: string;
44519
+ p_product_id: string;
44520
+ };
44521
+ Returns: {
44522
+ desired_availability: boolean;
44523
+ desired_quantity: number;
44524
+ erp_available: number;
44525
+ stock_mode: string;
44526
+ }[];
44527
+ };
43579
44528
  calculate_layer_stock: {
43580
44529
  Args: {
43581
44530
  p_product_id: string;
@@ -43637,6 +44586,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43637
44586
  is_herprint: boolean;
43638
44587
  kopieen: number;
43639
44588
  layout_id: string | null;
44589
+ lokaal_opgeslagen_op: string | null;
44590
+ lokale_pdf_fout: string | null;
44591
+ lokale_pdf_status: string | null;
43640
44592
  opgepakt_op: string | null;
43641
44593
  paginas: number;
43642
44594
  payload: import("../integrations/supabase/types").Json;
@@ -43645,6 +44597,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43645
44597
  pogingen: number;
43646
44598
  printer_id: string | null;
43647
44599
  render_html: string | null;
44600
+ resultaat_pdf_base64: string | null;
43648
44601
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43649
44602
  updated_at: string;
43650
44603
  volgende_poging: string | null;
@@ -43666,6 +44619,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43666
44619
  attempts: number;
43667
44620
  connection_id: string;
43668
44621
  created_at: string;
44622
+ dead_lettered_at: string | null;
43669
44623
  desired_available: boolean | null;
43670
44624
  gateway_attempt_id: string | null;
43671
44625
  id: string;
@@ -43674,9 +44628,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43674
44628
  locked_by: string | null;
43675
44629
  next_attempt_at: string;
43676
44630
  number_of_pieces: number;
44631
+ product_id: string | null;
43677
44632
  sent_at: string | null;
43678
44633
  status: string;
44634
+ stock_mode: string | null;
43679
44635
  superseded_by: string | null;
44636
+ target_week: number | null;
44637
+ target_year: number | null;
43680
44638
  trade_item_id: string;
43681
44639
  updated_at: string;
43682
44640
  user_id: string;
@@ -43736,6 +44694,53 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43736
44694
  isSetofReturn: true;
43737
44695
  };
43738
44696
  };
44697
+ claim_pdf_print_jobs: {
44698
+ Args: {
44699
+ _max?: number;
44700
+ };
44701
+ Returns: {
44702
+ agent_id: string | null;
44703
+ bron_job_id: string | null;
44704
+ created_at: string;
44705
+ documentnaam: string;
44706
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44707
+ extern_job_id: string | null;
44708
+ foutmelding: string | null;
44709
+ gebruiker_id: string | null;
44710
+ gebruiker_naam: string;
44711
+ gebruikte_bron: string | null;
44712
+ gebruikte_layout_id: string | null;
44713
+ gestart_op: string | null;
44714
+ herkomst: string | null;
44715
+ id: string;
44716
+ idempotentie_sleutel: string | null;
44717
+ is_herprint: boolean;
44718
+ kopieen: number;
44719
+ layout_id: string | null;
44720
+ lokaal_opgeslagen_op: string | null;
44721
+ lokale_pdf_fout: string | null;
44722
+ lokale_pdf_status: string | null;
44723
+ opgepakt_op: string | null;
44724
+ paginas: number;
44725
+ payload: import("../integrations/supabase/types").Json;
44726
+ pdf_base64: string | null;
44727
+ pdf_url: string | null;
44728
+ pogingen: number;
44729
+ printer_id: string | null;
44730
+ render_html: string | null;
44731
+ resultaat_pdf_base64: string | null;
44732
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44733
+ updated_at: string;
44734
+ volgende_poging: string | null;
44735
+ voltooid_op: string | null;
44736
+ }[];
44737
+ SetofOptions: {
44738
+ from: "*";
44739
+ to: "print_jobs";
44740
+ isOneToOne: false;
44741
+ isSetofReturn: true;
44742
+ };
44743
+ };
43739
44744
  claim_print_jobs: {
43740
44745
  Args: {
43741
44746
  _agent_id: string;
@@ -43760,6 +44765,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43760
44765
  is_herprint: boolean;
43761
44766
  kopieen: number;
43762
44767
  layout_id: string | null;
44768
+ lokaal_opgeslagen_op: string | null;
44769
+ lokale_pdf_fout: string | null;
44770
+ lokale_pdf_status: string | null;
43763
44771
  opgepakt_op: string | null;
43764
44772
  paginas: number;
43765
44773
  payload: import("../integrations/supabase/types").Json;
@@ -43768,6 +44776,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43768
44776
  pogingen: number;
43769
44777
  printer_id: string | null;
43770
44778
  render_html: string | null;
44779
+ resultaat_pdf_base64: string | null;
43771
44780
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43772
44781
  updated_at: string;
43773
44782
  volgende_poging: string | null;
@@ -43908,6 +44917,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
43908
44917
  order_id: string;
43909
44918
  order_source: string;
43910
44919
  pick_date: string;
44920
+ printed_at: string;
44921
+ printed_today: boolean;
43911
44922
  status: string;
43912
44923
  }[];
43913
44924
  };
@@ -44104,6 +45115,24 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
44104
45115
  };
44105
45116
  Returns: string;
44106
45117
  };
45118
+ floriday_capture_stock_snapshot: {
45119
+ Args: never;
45120
+ Returns: number;
45121
+ };
45122
+ floriday_cleanup_stock_queue_v2: {
45123
+ Args: never;
45124
+ Returns: undefined;
45125
+ };
45126
+ floriday_compact_stock_snapshots: {
45127
+ Args: never;
45128
+ Returns: undefined;
45129
+ };
45130
+ floriday_default_owner: {
45131
+ Args: {
45132
+ p_connection_id: string;
45133
+ };
45134
+ Returns: string;
45135
+ };
44107
45136
  floriday_effective_price: {
44108
45137
  Args: {
44109
45138
  _buyer_id: string;
@@ -44121,6 +45150,22 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
44121
45150
  source_id: string;
44122
45151
  }[];
44123
45152
  };
45153
+ floriday_fill_publish_horizon: {
45154
+ Args: never;
45155
+ Returns: number;
45156
+ };
45157
+ floriday_publish_horizon_weeks: {
45158
+ Args: never;
45159
+ Returns: number;
45160
+ };
45161
+ floriday_recompute_inventory: {
45162
+ Args: {
45163
+ p_connection_id: string;
45164
+ p_force?: boolean;
45165
+ p_product_id: string;
45166
+ };
45167
+ Returns: undefined;
45168
+ };
44124
45169
  format_cart_number: {
44125
45170
  Args: {
44126
45171
  p_pick_date: string;
@@ -44616,6 +45661,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
44616
45661
  };
44617
45662
  Returns: number;
44618
45663
  };
45664
+ logistics_cancel_orphan_tasks: {
45665
+ Args: never;
45666
+ Returns: number;
45667
+ };
44619
45668
  logistics_capacity_day_check: {
44620
45669
  Args: {
44621
45670
  p_from?: string;
@@ -44636,6 +45685,25 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
44636
45685
  };
44637
45686
  Returns: number;
44638
45687
  };
45688
+ logistics_cart_index: {
45689
+ Args: {
45690
+ p_from?: string;
45691
+ p_to?: string;
45692
+ };
45693
+ Returns: {
45694
+ cart_id: string;
45695
+ cart_index: number;
45696
+ cart_label: string;
45697
+ is_shared: boolean;
45698
+ order_number: string;
45699
+ order_source: string;
45700
+ order_uuid: string;
45701
+ pick_date: string;
45702
+ printed_at: string;
45703
+ shifted: boolean;
45704
+ task_status: string;
45705
+ }[];
45706
+ };
44639
45707
  logistics_check_order_allowed: {
44640
45708
  Args: {
44641
45709
  p_lines: import("../integrations/supabase/types").Json;
@@ -44784,6 +45852,17 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
44784
45852
  isSetofReturn: false;
44785
45853
  };
44786
45854
  };
45855
+ logistics_consistency_check: {
45856
+ Args: never;
45857
+ Returns: {
45858
+ agenda_carts: number;
45859
+ control_carts: number;
45860
+ ok: boolean;
45861
+ orphan_tasks: number;
45862
+ pick_date: string;
45863
+ raw_carts: number;
45864
+ }[];
45865
+ };
44787
45866
  logistics_delay_customer_email: {
44788
45867
  Args: {
44789
45868
  p_customer: string;
@@ -44873,6 +45952,16 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
44873
45952
  isSetofReturn: false;
44874
45953
  };
44875
45954
  };
45955
+ logistics_floriday_cart_plan: {
45956
+ Args: {
45957
+ p_order_id: string;
45958
+ };
45959
+ Returns: {
45960
+ carrier_type: string;
45961
+ idx: number;
45962
+ packages: number;
45963
+ }[];
45964
+ };
44876
45965
  logistics_floriday_claim_pushes: {
44877
45966
  Args: {
44878
45967
  _lease_seconds?: number;
@@ -44977,6 +46066,25 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
44977
46066
  };
44978
46067
  Returns: number;
44979
46068
  };
46069
+ logistics_order_overview: {
46070
+ Args: {
46071
+ p_from?: string;
46072
+ p_to?: string;
46073
+ };
46074
+ Returns: {
46075
+ cart_count: number;
46076
+ customer_name: string;
46077
+ delivery_date: string;
46078
+ order_number: string;
46079
+ order_source: string;
46080
+ order_uuid: string;
46081
+ pick_date: string;
46082
+ plant_count: number;
46083
+ printed_at: string;
46084
+ shifted: boolean;
46085
+ status: string;
46086
+ }[];
46087
+ };
44980
46088
  logistics_order_pick_day: {
44981
46089
  Args: {
44982
46090
  p_order_ref: string;
@@ -44989,6 +46097,22 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
44989
46097
  };
44990
46098
  Returns: string;
44991
46099
  };
46100
+ logistics_pick_agenda: {
46101
+ Args: {
46102
+ p_from?: string;
46103
+ p_to?: string;
46104
+ };
46105
+ Returns: {
46106
+ cart_count: number;
46107
+ in_preparation: number;
46108
+ order_count: number;
46109
+ orders: import("../integrations/supabase/types").Json;
46110
+ pick_date: string;
46111
+ plant_count: number;
46112
+ ready: number;
46113
+ shifted_count: number;
46114
+ }[];
46115
+ };
44992
46116
  logistics_pick_email_purpose: {
44993
46117
  Args: never;
44994
46118
  Returns: string;
@@ -45043,6 +46167,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
45043
46167
  };
45044
46168
  Returns: undefined;
45045
46169
  };
46170
+ logistics_plan_floriday_order: {
46171
+ Args: {
46172
+ p_buffer_id?: string;
46173
+ p_order_id: string;
46174
+ };
46175
+ Returns: number;
46176
+ };
45046
46177
  logistics_plan_impact_orders: {
45047
46178
  Args: {
45048
46179
  p_order_id: string;
@@ -45148,6 +46279,15 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
45148
46279
  };
45149
46280
  Returns: import("../integrations/supabase/types").Json;
45150
46281
  };
46282
+ logistics_resolve_pick_document: {
46283
+ Args: {
46284
+ _is_herprint: boolean;
46285
+ _queue_item_id: string;
46286
+ _session_id: string;
46287
+ _voorbeeld: boolean;
46288
+ };
46289
+ Returns: import("../integrations/supabase/types").Json;
46290
+ };
45151
46291
  logistics_resolve_settings: {
45152
46292
  Args: {
45153
46293
  p_config_id: string;
@@ -45588,6 +46728,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
45588
46728
  };
45589
46729
  pick_enqueue_print_job: {
45590
46730
  Args: {
46731
+ _is_herprint?: boolean;
45591
46732
  _printer_id?: string;
45592
46733
  _queue_item_id: string;
45593
46734
  _session_id?: string;
@@ -45601,6 +46742,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
45601
46742
  };
45602
46743
  Returns: import("../integrations/supabase/types").Json;
45603
46744
  };
46745
+ pick_preview_job: {
46746
+ Args: {
46747
+ _queue_item_id: string;
46748
+ _station_slug: string;
46749
+ };
46750
+ Returns: import("../integrations/supabase/types").Json;
46751
+ };
45604
46752
  pick_print_job_status: {
45605
46753
  Args: {
45606
46754
  _job_id: string;
@@ -45778,6 +46926,24 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
45778
46926
  };
45779
46927
  Returns: undefined;
45780
46928
  };
46929
+ print_preview_toestaan: {
46930
+ Args: {
46931
+ _max?: number;
46932
+ _queue_item_id: string;
46933
+ _station_slug: string;
46934
+ _venster_sec?: number;
46935
+ };
46936
+ Returns: import("../integrations/supabase/types").Json;
46937
+ };
46938
+ print_preview_weiger: {
46939
+ Args: {
46940
+ _code: string;
46941
+ _queue_item_id: string;
46942
+ _reden: string;
46943
+ _station_slug: string;
46944
+ };
46945
+ Returns: undefined;
46946
+ };
45781
46947
  process_logistics_event: {
45782
46948
  Args: {
45783
46949
  p_event_id: string;
@@ -45932,6 +47098,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
45932
47098
  };
45933
47099
  Returns: string;
45934
47100
  };
47101
+ resolve_print_job_printer_id: {
47102
+ Args: {
47103
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
47104
+ };
47105
+ Returns: string;
47106
+ };
45935
47107
  resolve_product_id_for_item: {
45936
47108
  Args: {
45937
47109
  p_product_name: string;
@@ -46523,7 +47695,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
46523
47695
  };
46524
47696
  CompositeTypes: { [_ in never]: never; };
46525
47697
  }, {
46526
- PostgrestVersion: "14.17";
47698
+ PostgrestVersion: "14.5";
46527
47699
  }>;
46528
47700
  userId: string;
46529
47701
  claims: import("@supabase/auth-js").User;