@flowselections/floriday-verkoop-module 1.0.57 → 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 (127) 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/OrderCarrierPicker.d.ts +1 -1
  20. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts.map +1 -1
  21. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  22. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  23. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  24. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  25. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts +1 -1
  26. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts.map +1 -1
  27. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  28. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  29. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  30. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  31. package/dist-lib/components/verkoop/SalesOrderDetailPage.js +6 -6
  32. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  33. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  34. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  35. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  36. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  37. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  38. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +2 -1
  39. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  40. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  41. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  42. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +1 -1
  43. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -1
  44. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  45. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  46. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  47. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  48. package/dist-lib/integrations/supabase/auth-middleware.d.ts +252 -0
  49. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  50. package/dist-lib/integrations/supabase/client.d.ts +252 -0
  51. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  52. package/dist-lib/integrations/supabase/client.js +1 -1
  53. package/dist-lib/integrations/supabase/client.server.d.ts +252 -0
  54. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  55. package/dist-lib/integrations/supabase/client.server.js +1 -1
  56. package/dist-lib/integrations/supabase/types.d.ts +252 -0
  57. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  58. package/dist-lib/lib/cart-lock.functions.d.ts +252 -0
  59. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/cart-planning-settings.functions.d.ts +2772 -0
  61. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/cart-replan.functions.d.ts +756 -0
  63. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/create-order.functions.d.ts +4284 -0
  65. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +756 -0
  67. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +504 -0
  69. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/floriday-mirror.functions.d.ts +252 -0
  71. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/floriday-public.functions.d.ts +1764 -0
  73. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/floriday-writes.functions.d.ts +1260 -0
  75. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/invoice-timing.functions.d.ts +1008 -0
  77. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  78. package/dist-lib/lib/load-carriers.functions.d.ts +252 -0
  79. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  80. package/dist-lib/lib/logistics-engine.functions.d.ts +1275 -5
  81. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  82. package/dist-lib/lib/logistics-stock.functions.d.ts +504 -0
  83. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  84. package/dist-lib/lib/order-addresses.functions.d.ts +252 -0
  85. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  86. package/dist-lib/lib/order-buffers.functions.d.ts +756 -0
  87. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  88. package/dist-lib/lib/order-carrier.functions.d.ts +504 -0
  89. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  90. package/dist-lib/lib/order-pickup.functions.d.ts +504 -0
  91. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  92. package/dist-lib/lib/order-shipments.functions.d.ts +1008 -0
  93. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  94. package/dist-lib/lib/salesorders-list.functions.d.ts +252 -0
  95. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  96. package/dist-lib/lib/salesorders.functions.d.ts +1260 -0
  97. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  98. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +504 -0
  99. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  100. package/dist-lib/lib/tradeitems.functions.d.ts +252 -0
  101. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  102. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts +1 -1
  103. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts.map +1 -1
  104. package/dist-lib/lib/useSalesOrdersQuery.d.ts +1 -1
  105. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  106. package/package.json +131 -131
  107. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +0 -9
  108. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +0 -1
  109. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +0 -26
  110. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +0 -6
  111. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +0 -1
  112. package/dist-lib/components/karindeling/AfmetingenTab.js +0 -128
  113. package/dist-lib/components/karindeling/KarindelingPage.d.ts +0 -2
  114. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +0 -1
  115. package/dist-lib/components/karindeling/KarindelingPage.js +0 -102
  116. package/dist-lib/components/ui/dropdown-menu.d.ts +0 -9
  117. package/dist-lib/components/ui/dropdown-menu.d.ts.map +0 -1
  118. package/dist-lib/components/ui/dropdown-menu.js +0 -14
  119. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +0 -5
  120. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +0 -1
  121. package/dist-lib/components/verkoop/CreateOrderDialog.js +0 -33
  122. package/dist-lib/lib/floriday/floriday.server.d.ts +0 -14
  123. package/dist-lib/lib/floriday/floriday.server.d.ts.map +0 -1
  124. package/dist-lib/lib/floriday/floriday.server.js +0 -92
  125. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +0 -4736
  126. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +0 -1
  127. package/dist-lib/lib/floriday/sales-orders.functions.js +0 -193
@@ -6097,6 +6097,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
6097
6097
  attempts: number;
6098
6098
  connection_id: string;
6099
6099
  created_at: string;
6100
+ dead_lettered_at: string | null;
6100
6101
  desired_available: boolean | null;
6101
6102
  gateway_attempt_id: string | null;
6102
6103
  id: string;
@@ -6105,9 +6106,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
6105
6106
  locked_by: string | null;
6106
6107
  next_attempt_at: string;
6107
6108
  number_of_pieces: number;
6109
+ product_id: string | null;
6108
6110
  sent_at: string | null;
6109
6111
  status: string;
6112
+ stock_mode: string | null;
6110
6113
  superseded_by: string | null;
6114
+ target_week: number | null;
6115
+ target_year: number | null;
6111
6116
  trade_item_id: string;
6112
6117
  updated_at: string;
6113
6118
  user_id: string;
@@ -6116,6 +6121,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
6116
6121
  attempts?: number;
6117
6122
  connection_id: string;
6118
6123
  created_at?: string;
6124
+ dead_lettered_at?: string | null;
6119
6125
  desired_available?: boolean | null;
6120
6126
  gateway_attempt_id?: string | null;
6121
6127
  id?: string;
@@ -6124,9 +6130,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
6124
6130
  locked_by?: string | null;
6125
6131
  next_attempt_at?: string;
6126
6132
  number_of_pieces?: number;
6133
+ product_id?: string | null;
6127
6134
  sent_at?: string | null;
6128
6135
  status?: string;
6136
+ stock_mode?: string | null;
6129
6137
  superseded_by?: string | null;
6138
+ target_week?: number | null;
6139
+ target_year?: number | null;
6130
6140
  trade_item_id: string;
6131
6141
  updated_at?: string;
6132
6142
  user_id: string;
@@ -6135,6 +6145,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
6135
6145
  attempts?: number;
6136
6146
  connection_id?: string;
6137
6147
  created_at?: string;
6148
+ dead_lettered_at?: string | null;
6138
6149
  desired_available?: boolean | null;
6139
6150
  gateway_attempt_id?: string | null;
6140
6151
  id?: string;
@@ -6143,9 +6154,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
6143
6154
  locked_by?: string | null;
6144
6155
  next_attempt_at?: string;
6145
6156
  number_of_pieces?: number;
6157
+ product_id?: string | null;
6146
6158
  sent_at?: string | null;
6147
6159
  status?: string;
6160
+ stock_mode?: string | null;
6148
6161
  superseded_by?: string | null;
6162
+ target_week?: number | null;
6163
+ target_year?: number | null;
6149
6164
  trade_item_id?: string;
6150
6165
  updated_at?: string;
6151
6166
  user_id?: string;
@@ -6554,6 +6569,87 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
6554
6569
  referencedColumns: ["id"];
6555
6570
  }];
6556
6571
  };
6572
+ floriday_inventory_settings: {
6573
+ Row: {
6574
+ buffer_quantity: number;
6575
+ connection_id: string;
6576
+ created_at: string;
6577
+ desired_availability: boolean;
6578
+ desired_quantity: number;
6579
+ fixed_quantity: number | null;
6580
+ floriday_trade_item_id: string | null;
6581
+ id: string;
6582
+ last_confirmed_at: string | null;
6583
+ last_enqueued_at: string | null;
6584
+ last_published_at: string | null;
6585
+ last_sync_error: string | null;
6586
+ manual_quantity: number | null;
6587
+ maximum_quantity: number | null;
6588
+ product_id: string;
6589
+ quantity_control: string;
6590
+ remote_available: boolean | null;
6591
+ remote_checked_at: string | null;
6592
+ remote_quantity: number | null;
6593
+ stock_mode: string;
6594
+ sync_status: string;
6595
+ updated_at: string;
6596
+ updated_by: string | null;
6597
+ user_id: string;
6598
+ };
6599
+ Insert: {
6600
+ buffer_quantity?: number;
6601
+ connection_id: string;
6602
+ created_at?: string;
6603
+ desired_availability?: boolean;
6604
+ desired_quantity?: number;
6605
+ fixed_quantity?: number | null;
6606
+ floriday_trade_item_id?: string | null;
6607
+ id?: string;
6608
+ last_confirmed_at?: string | null;
6609
+ last_enqueued_at?: string | null;
6610
+ last_published_at?: string | null;
6611
+ last_sync_error?: string | null;
6612
+ manual_quantity?: number | null;
6613
+ maximum_quantity?: number | null;
6614
+ product_id: string;
6615
+ quantity_control?: string;
6616
+ remote_available?: boolean | null;
6617
+ remote_checked_at?: string | null;
6618
+ remote_quantity?: number | null;
6619
+ stock_mode?: string;
6620
+ sync_status?: string;
6621
+ updated_at?: string;
6622
+ updated_by?: string | null;
6623
+ user_id: string;
6624
+ };
6625
+ Update: {
6626
+ buffer_quantity?: number;
6627
+ connection_id?: string;
6628
+ created_at?: string;
6629
+ desired_availability?: boolean;
6630
+ desired_quantity?: number;
6631
+ fixed_quantity?: number | null;
6632
+ floriday_trade_item_id?: string | null;
6633
+ id?: string;
6634
+ last_confirmed_at?: string | null;
6635
+ last_enqueued_at?: string | null;
6636
+ last_published_at?: string | null;
6637
+ last_sync_error?: string | null;
6638
+ manual_quantity?: number | null;
6639
+ maximum_quantity?: number | null;
6640
+ product_id?: string;
6641
+ quantity_control?: string;
6642
+ remote_available?: boolean | null;
6643
+ remote_checked_at?: string | null;
6644
+ remote_quantity?: number | null;
6645
+ stock_mode?: string;
6646
+ sync_status?: string;
6647
+ updated_at?: string;
6648
+ updated_by?: string | null;
6649
+ user_id?: string;
6650
+ };
6651
+ Relationships: [];
6652
+ };
6557
6653
  floriday_invoices_cache: {
6558
6654
  Row: {
6559
6655
  buyer_organization_id: string | null;
@@ -6842,6 +6938,39 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
6842
6938
  };
6843
6939
  Relationships: [];
6844
6940
  };
6941
+ floriday_sales_order_ingest: {
6942
+ Row: {
6943
+ connection_id: string;
6944
+ created_at: string;
6945
+ id: string;
6946
+ impact: import("../integrations/supabase/types").Json;
6947
+ order_status: string | null;
6948
+ order_version: number;
6949
+ processed_at: string;
6950
+ sales_order_id: string;
6951
+ };
6952
+ Insert: {
6953
+ connection_id: string;
6954
+ created_at?: string;
6955
+ id?: string;
6956
+ impact?: import("../integrations/supabase/types").Json;
6957
+ order_status?: string | null;
6958
+ order_version?: number;
6959
+ processed_at?: string;
6960
+ sales_order_id: string;
6961
+ };
6962
+ Update: {
6963
+ connection_id?: string;
6964
+ created_at?: string;
6965
+ id?: string;
6966
+ impact?: import("../integrations/supabase/types").Json;
6967
+ order_status?: string | null;
6968
+ order_version?: number;
6969
+ processed_at?: string;
6970
+ sales_order_id?: string;
6971
+ };
6972
+ Relationships: [];
6973
+ };
6845
6974
  floriday_sales_strategies_cache: {
6846
6975
  Row: {
6847
6976
  connection_id: string;
@@ -6941,6 +7070,39 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
6941
7070
  };
6942
7071
  Relationships: [];
6943
7072
  };
7073
+ floriday_sync_cursors: {
7074
+ Row: {
7075
+ connection_id: string;
7076
+ created_at: string;
7077
+ id: string;
7078
+ last_error: string | null;
7079
+ last_sync_at: string | null;
7080
+ resource_type: string;
7081
+ sequence_number: number;
7082
+ updated_at: string;
7083
+ };
7084
+ Insert: {
7085
+ connection_id: string;
7086
+ created_at?: string;
7087
+ id?: string;
7088
+ last_error?: string | null;
7089
+ last_sync_at?: string | null;
7090
+ resource_type: string;
7091
+ sequence_number?: number;
7092
+ updated_at?: string;
7093
+ };
7094
+ Update: {
7095
+ connection_id?: string;
7096
+ created_at?: string;
7097
+ id?: string;
7098
+ last_error?: string | null;
7099
+ last_sync_at?: string | null;
7100
+ resource_type?: string;
7101
+ sequence_number?: number;
7102
+ updated_at?: string;
7103
+ };
7104
+ Relationships: [];
7105
+ };
6944
7106
  floriday_sync_state: {
6945
7107
  Row: {
6946
7108
  connection_id: string;
@@ -7631,6 +7793,42 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
7631
7793
  };
7632
7794
  Relationships: [];
7633
7795
  };
7796
+ inventory_stock_snapshots: {
7797
+ Row: {
7798
+ connection_id: string;
7799
+ created_at: string;
7800
+ erp_available_quantity: number;
7801
+ floriday_desired_quantity: number;
7802
+ floriday_remote_quantity: number | null;
7803
+ granularity: string;
7804
+ id: string;
7805
+ snapshot_at: string;
7806
+ user_id: string | null;
7807
+ };
7808
+ Insert: {
7809
+ connection_id: string;
7810
+ created_at?: string;
7811
+ erp_available_quantity?: number;
7812
+ floriday_desired_quantity?: number;
7813
+ floriday_remote_quantity?: number | null;
7814
+ granularity?: string;
7815
+ id?: string;
7816
+ snapshot_at?: string;
7817
+ user_id?: string | null;
7818
+ };
7819
+ Update: {
7820
+ connection_id?: string;
7821
+ created_at?: string;
7822
+ erp_available_quantity?: number;
7823
+ floriday_desired_quantity?: number;
7824
+ floriday_remote_quantity?: number | null;
7825
+ granularity?: string;
7826
+ id?: string;
7827
+ snapshot_at?: string;
7828
+ user_id?: string | null;
7829
+ };
7830
+ Relationships: [];
7831
+ };
7634
7832
  invoice_items: {
7635
7833
  Row: {
7636
7834
  created_at: string;
@@ -16825,6 +17023,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16825
17023
  };
16826
17024
  trade_item_stock: {
16827
17025
  Row: {
17026
+ change_source: string;
16828
17027
  connection_id: string;
16829
17028
  created_at: string;
16830
17029
  id: string;
@@ -16838,6 +17037,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16838
17037
  user_id: string;
16839
17038
  };
16840
17039
  Insert: {
17040
+ change_source?: string;
16841
17041
  connection_id: string;
16842
17042
  created_at?: string;
16843
17043
  id?: string;
@@ -16851,6 +17051,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16851
17051
  user_id: string;
16852
17052
  };
16853
17053
  Update: {
17054
+ change_source?: string;
16854
17055
  connection_id?: string;
16855
17056
  created_at?: string;
16856
17057
  id?: string;
@@ -20451,6 +20652,18 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
20451
20652
  Args: never;
20452
20653
  Returns: number;
20453
20654
  };
20655
+ calculate_floriday_desired_stock: {
20656
+ Args: {
20657
+ p_connection_id: string;
20658
+ p_product_id: string;
20659
+ };
20660
+ Returns: {
20661
+ desired_availability: boolean;
20662
+ desired_quantity: number;
20663
+ erp_available: number;
20664
+ stock_mode: string;
20665
+ }[];
20666
+ };
20454
20667
  calculate_layer_stock: {
20455
20668
  Args: {
20456
20669
  p_product_id: string;
@@ -20545,6 +20758,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
20545
20758
  attempts: number;
20546
20759
  connection_id: string;
20547
20760
  created_at: string;
20761
+ dead_lettered_at: string | null;
20548
20762
  desired_available: boolean | null;
20549
20763
  gateway_attempt_id: string | null;
20550
20764
  id: string;
@@ -20553,9 +20767,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
20553
20767
  locked_by: string | null;
20554
20768
  next_attempt_at: string;
20555
20769
  number_of_pieces: number;
20770
+ product_id: string | null;
20556
20771
  sent_at: string | null;
20557
20772
  status: string;
20773
+ stock_mode: string | null;
20558
20774
  superseded_by: string | null;
20775
+ target_week: number | null;
20776
+ target_year: number | null;
20559
20777
  trade_item_id: string;
20560
20778
  updated_at: string;
20561
20779
  user_id: string;
@@ -21036,6 +21254,24 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21036
21254
  };
21037
21255
  Returns: string;
21038
21256
  };
21257
+ floriday_capture_stock_snapshot: {
21258
+ Args: never;
21259
+ Returns: number;
21260
+ };
21261
+ floriday_cleanup_stock_queue_v2: {
21262
+ Args: never;
21263
+ Returns: undefined;
21264
+ };
21265
+ floriday_compact_stock_snapshots: {
21266
+ Args: never;
21267
+ Returns: undefined;
21268
+ };
21269
+ floriday_default_owner: {
21270
+ Args: {
21271
+ p_connection_id: string;
21272
+ };
21273
+ Returns: string;
21274
+ };
21039
21275
  floriday_effective_price: {
21040
21276
  Args: {
21041
21277
  _buyer_id: string;
@@ -21053,6 +21289,22 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21053
21289
  source_id: string;
21054
21290
  }[];
21055
21291
  };
21292
+ floriday_fill_publish_horizon: {
21293
+ Args: never;
21294
+ Returns: number;
21295
+ };
21296
+ floriday_publish_horizon_weeks: {
21297
+ Args: never;
21298
+ Returns: number;
21299
+ };
21300
+ floriday_recompute_inventory: {
21301
+ Args: {
21302
+ p_connection_id: string;
21303
+ p_force?: boolean;
21304
+ p_product_id: string;
21305
+ };
21306
+ Returns: undefined;
21307
+ };
21056
21308
  format_cart_number: {
21057
21309
  Args: {
21058
21310
  p_pick_date: string;
@@ -29692,6 +29944,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29692
29944
  attempts: number;
29693
29945
  connection_id: string;
29694
29946
  created_at: string;
29947
+ dead_lettered_at: string | null;
29695
29948
  desired_available: boolean | null;
29696
29949
  gateway_attempt_id: string | null;
29697
29950
  id: string;
@@ -29700,9 +29953,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29700
29953
  locked_by: string | null;
29701
29954
  next_attempt_at: string;
29702
29955
  number_of_pieces: number;
29956
+ product_id: string | null;
29703
29957
  sent_at: string | null;
29704
29958
  status: string;
29959
+ stock_mode: string | null;
29705
29960
  superseded_by: string | null;
29961
+ target_week: number | null;
29962
+ target_year: number | null;
29706
29963
  trade_item_id: string;
29707
29964
  updated_at: string;
29708
29965
  user_id: string;
@@ -29711,6 +29968,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29711
29968
  attempts?: number;
29712
29969
  connection_id: string;
29713
29970
  created_at?: string;
29971
+ dead_lettered_at?: string | null;
29714
29972
  desired_available?: boolean | null;
29715
29973
  gateway_attempt_id?: string | null;
29716
29974
  id?: string;
@@ -29719,9 +29977,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29719
29977
  locked_by?: string | null;
29720
29978
  next_attempt_at?: string;
29721
29979
  number_of_pieces?: number;
29980
+ product_id?: string | null;
29722
29981
  sent_at?: string | null;
29723
29982
  status?: string;
29983
+ stock_mode?: string | null;
29724
29984
  superseded_by?: string | null;
29985
+ target_week?: number | null;
29986
+ target_year?: number | null;
29725
29987
  trade_item_id: string;
29726
29988
  updated_at?: string;
29727
29989
  user_id: string;
@@ -29730,6 +29992,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29730
29992
  attempts?: number;
29731
29993
  connection_id?: string;
29732
29994
  created_at?: string;
29995
+ dead_lettered_at?: string | null;
29733
29996
  desired_available?: boolean | null;
29734
29997
  gateway_attempt_id?: string | null;
29735
29998
  id?: string;
@@ -29738,9 +30001,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29738
30001
  locked_by?: string | null;
29739
30002
  next_attempt_at?: string;
29740
30003
  number_of_pieces?: number;
30004
+ product_id?: string | null;
29741
30005
  sent_at?: string | null;
29742
30006
  status?: string;
30007
+ stock_mode?: string | null;
29743
30008
  superseded_by?: string | null;
30009
+ target_week?: number | null;
30010
+ target_year?: number | null;
29744
30011
  trade_item_id?: string;
29745
30012
  updated_at?: string;
29746
30013
  user_id?: string;
@@ -30149,6 +30416,87 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
30149
30416
  referencedColumns: ["id"];
30150
30417
  }];
30151
30418
  };
30419
+ floriday_inventory_settings: {
30420
+ Row: {
30421
+ buffer_quantity: number;
30422
+ connection_id: string;
30423
+ created_at: string;
30424
+ desired_availability: boolean;
30425
+ desired_quantity: number;
30426
+ fixed_quantity: number | null;
30427
+ floriday_trade_item_id: string | null;
30428
+ id: string;
30429
+ last_confirmed_at: string | null;
30430
+ last_enqueued_at: string | null;
30431
+ last_published_at: string | null;
30432
+ last_sync_error: string | null;
30433
+ manual_quantity: number | null;
30434
+ maximum_quantity: number | null;
30435
+ product_id: string;
30436
+ quantity_control: string;
30437
+ remote_available: boolean | null;
30438
+ remote_checked_at: string | null;
30439
+ remote_quantity: number | null;
30440
+ stock_mode: string;
30441
+ sync_status: string;
30442
+ updated_at: string;
30443
+ updated_by: string | null;
30444
+ user_id: string;
30445
+ };
30446
+ Insert: {
30447
+ buffer_quantity?: number;
30448
+ connection_id: string;
30449
+ created_at?: string;
30450
+ desired_availability?: boolean;
30451
+ desired_quantity?: number;
30452
+ fixed_quantity?: number | null;
30453
+ floriday_trade_item_id?: string | null;
30454
+ id?: string;
30455
+ last_confirmed_at?: string | null;
30456
+ last_enqueued_at?: string | null;
30457
+ last_published_at?: string | null;
30458
+ last_sync_error?: string | null;
30459
+ manual_quantity?: number | null;
30460
+ maximum_quantity?: number | null;
30461
+ product_id: string;
30462
+ quantity_control?: string;
30463
+ remote_available?: boolean | null;
30464
+ remote_checked_at?: string | null;
30465
+ remote_quantity?: number | null;
30466
+ stock_mode?: string;
30467
+ sync_status?: string;
30468
+ updated_at?: string;
30469
+ updated_by?: string | null;
30470
+ user_id: string;
30471
+ };
30472
+ Update: {
30473
+ buffer_quantity?: number;
30474
+ connection_id?: string;
30475
+ created_at?: string;
30476
+ desired_availability?: boolean;
30477
+ desired_quantity?: number;
30478
+ fixed_quantity?: number | null;
30479
+ floriday_trade_item_id?: string | null;
30480
+ id?: string;
30481
+ last_confirmed_at?: string | null;
30482
+ last_enqueued_at?: string | null;
30483
+ last_published_at?: string | null;
30484
+ last_sync_error?: string | null;
30485
+ manual_quantity?: number | null;
30486
+ maximum_quantity?: number | null;
30487
+ product_id?: string;
30488
+ quantity_control?: string;
30489
+ remote_available?: boolean | null;
30490
+ remote_checked_at?: string | null;
30491
+ remote_quantity?: number | null;
30492
+ stock_mode?: string;
30493
+ sync_status?: string;
30494
+ updated_at?: string;
30495
+ updated_by?: string | null;
30496
+ user_id?: string;
30497
+ };
30498
+ Relationships: [];
30499
+ };
30152
30500
  floriday_invoices_cache: {
30153
30501
  Row: {
30154
30502
  buyer_organization_id: string | null;
@@ -30437,6 +30785,39 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
30437
30785
  };
30438
30786
  Relationships: [];
30439
30787
  };
30788
+ floriday_sales_order_ingest: {
30789
+ Row: {
30790
+ connection_id: string;
30791
+ created_at: string;
30792
+ id: string;
30793
+ impact: import("../integrations/supabase/types").Json;
30794
+ order_status: string | null;
30795
+ order_version: number;
30796
+ processed_at: string;
30797
+ sales_order_id: string;
30798
+ };
30799
+ Insert: {
30800
+ connection_id: string;
30801
+ created_at?: string;
30802
+ id?: string;
30803
+ impact?: import("../integrations/supabase/types").Json;
30804
+ order_status?: string | null;
30805
+ order_version?: number;
30806
+ processed_at?: string;
30807
+ sales_order_id: string;
30808
+ };
30809
+ Update: {
30810
+ connection_id?: string;
30811
+ created_at?: string;
30812
+ id?: string;
30813
+ impact?: import("../integrations/supabase/types").Json;
30814
+ order_status?: string | null;
30815
+ order_version?: number;
30816
+ processed_at?: string;
30817
+ sales_order_id?: string;
30818
+ };
30819
+ Relationships: [];
30820
+ };
30440
30821
  floriday_sales_strategies_cache: {
30441
30822
  Row: {
30442
30823
  connection_id: string;
@@ -30536,6 +30917,39 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
30536
30917
  };
30537
30918
  Relationships: [];
30538
30919
  };
30920
+ floriday_sync_cursors: {
30921
+ Row: {
30922
+ connection_id: string;
30923
+ created_at: string;
30924
+ id: string;
30925
+ last_error: string | null;
30926
+ last_sync_at: string | null;
30927
+ resource_type: string;
30928
+ sequence_number: number;
30929
+ updated_at: string;
30930
+ };
30931
+ Insert: {
30932
+ connection_id: string;
30933
+ created_at?: string;
30934
+ id?: string;
30935
+ last_error?: string | null;
30936
+ last_sync_at?: string | null;
30937
+ resource_type: string;
30938
+ sequence_number?: number;
30939
+ updated_at?: string;
30940
+ };
30941
+ Update: {
30942
+ connection_id?: string;
30943
+ created_at?: string;
30944
+ id?: string;
30945
+ last_error?: string | null;
30946
+ last_sync_at?: string | null;
30947
+ resource_type?: string;
30948
+ sequence_number?: number;
30949
+ updated_at?: string;
30950
+ };
30951
+ Relationships: [];
30952
+ };
30539
30953
  floriday_sync_state: {
30540
30954
  Row: {
30541
30955
  connection_id: string;
@@ -31226,6 +31640,42 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
31226
31640
  };
31227
31641
  Relationships: [];
31228
31642
  };
31643
+ inventory_stock_snapshots: {
31644
+ Row: {
31645
+ connection_id: string;
31646
+ created_at: string;
31647
+ erp_available_quantity: number;
31648
+ floriday_desired_quantity: number;
31649
+ floriday_remote_quantity: number | null;
31650
+ granularity: string;
31651
+ id: string;
31652
+ snapshot_at: string;
31653
+ user_id: string | null;
31654
+ };
31655
+ Insert: {
31656
+ connection_id: string;
31657
+ created_at?: string;
31658
+ erp_available_quantity?: number;
31659
+ floriday_desired_quantity?: number;
31660
+ floriday_remote_quantity?: number | null;
31661
+ granularity?: string;
31662
+ id?: string;
31663
+ snapshot_at?: string;
31664
+ user_id?: string | null;
31665
+ };
31666
+ Update: {
31667
+ connection_id?: string;
31668
+ created_at?: string;
31669
+ erp_available_quantity?: number;
31670
+ floriday_desired_quantity?: number;
31671
+ floriday_remote_quantity?: number | null;
31672
+ granularity?: string;
31673
+ id?: string;
31674
+ snapshot_at?: string;
31675
+ user_id?: string | null;
31676
+ };
31677
+ Relationships: [];
31678
+ };
31229
31679
  invoice_items: {
31230
31680
  Row: {
31231
31681
  created_at: string;
@@ -40420,6 +40870,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
40420
40870
  };
40421
40871
  trade_item_stock: {
40422
40872
  Row: {
40873
+ change_source: string;
40423
40874
  connection_id: string;
40424
40875
  created_at: string;
40425
40876
  id: string;
@@ -40433,6 +40884,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
40433
40884
  user_id: string;
40434
40885
  };
40435
40886
  Insert: {
40887
+ change_source?: string;
40436
40888
  connection_id: string;
40437
40889
  created_at?: string;
40438
40890
  id?: string;
@@ -40446,6 +40898,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
40446
40898
  user_id: string;
40447
40899
  };
40448
40900
  Update: {
40901
+ change_source?: string;
40449
40902
  connection_id?: string;
40450
40903
  created_at?: string;
40451
40904
  id?: string;
@@ -44046,6 +44499,18 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44046
44499
  Args: never;
44047
44500
  Returns: number;
44048
44501
  };
44502
+ calculate_floriday_desired_stock: {
44503
+ Args: {
44504
+ p_connection_id: string;
44505
+ p_product_id: string;
44506
+ };
44507
+ Returns: {
44508
+ desired_availability: boolean;
44509
+ desired_quantity: number;
44510
+ erp_available: number;
44511
+ stock_mode: string;
44512
+ }[];
44513
+ };
44049
44514
  calculate_layer_stock: {
44050
44515
  Args: {
44051
44516
  p_product_id: string;
@@ -44140,6 +44605,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44140
44605
  attempts: number;
44141
44606
  connection_id: string;
44142
44607
  created_at: string;
44608
+ dead_lettered_at: string | null;
44143
44609
  desired_available: boolean | null;
44144
44610
  gateway_attempt_id: string | null;
44145
44611
  id: string;
@@ -44148,9 +44614,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44148
44614
  locked_by: string | null;
44149
44615
  next_attempt_at: string;
44150
44616
  number_of_pieces: number;
44617
+ product_id: string | null;
44151
44618
  sent_at: string | null;
44152
44619
  status: string;
44620
+ stock_mode: string | null;
44153
44621
  superseded_by: string | null;
44622
+ target_week: number | null;
44623
+ target_year: number | null;
44154
44624
  trade_item_id: string;
44155
44625
  updated_at: string;
44156
44626
  user_id: string;
@@ -44631,6 +45101,24 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44631
45101
  };
44632
45102
  Returns: string;
44633
45103
  };
45104
+ floriday_capture_stock_snapshot: {
45105
+ Args: never;
45106
+ Returns: number;
45107
+ };
45108
+ floriday_cleanup_stock_queue_v2: {
45109
+ Args: never;
45110
+ Returns: undefined;
45111
+ };
45112
+ floriday_compact_stock_snapshots: {
45113
+ Args: never;
45114
+ Returns: undefined;
45115
+ };
45116
+ floriday_default_owner: {
45117
+ Args: {
45118
+ p_connection_id: string;
45119
+ };
45120
+ Returns: string;
45121
+ };
44634
45122
  floriday_effective_price: {
44635
45123
  Args: {
44636
45124
  _buyer_id: string;
@@ -44648,6 +45136,22 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44648
45136
  source_id: string;
44649
45137
  }[];
44650
45138
  };
45139
+ floriday_fill_publish_horizon: {
45140
+ Args: never;
45141
+ Returns: number;
45142
+ };
45143
+ floriday_publish_horizon_weeks: {
45144
+ Args: never;
45145
+ Returns: number;
45146
+ };
45147
+ floriday_recompute_inventory: {
45148
+ Args: {
45149
+ p_connection_id: string;
45150
+ p_force?: boolean;
45151
+ p_product_id: string;
45152
+ };
45153
+ Returns: undefined;
45154
+ };
44651
45155
  format_cart_number: {
44652
45156
  Args: {
44653
45157
  p_pick_date: string;