@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
@@ -6096,6 +6096,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6096
6096
  attempts: number;
6097
6097
  connection_id: string;
6098
6098
  created_at: string;
6099
+ dead_lettered_at: string | null;
6099
6100
  desired_available: boolean | null;
6100
6101
  gateway_attempt_id: string | null;
6101
6102
  id: string;
@@ -6104,9 +6105,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6104
6105
  locked_by: string | null;
6105
6106
  next_attempt_at: string;
6106
6107
  number_of_pieces: number;
6108
+ product_id: string | null;
6107
6109
  sent_at: string | null;
6108
6110
  status: string;
6111
+ stock_mode: string | null;
6109
6112
  superseded_by: string | null;
6113
+ target_week: number | null;
6114
+ target_year: number | null;
6110
6115
  trade_item_id: string;
6111
6116
  updated_at: string;
6112
6117
  user_id: string;
@@ -6115,6 +6120,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6115
6120
  attempts?: number;
6116
6121
  connection_id: string;
6117
6122
  created_at?: string;
6123
+ dead_lettered_at?: string | null;
6118
6124
  desired_available?: boolean | null;
6119
6125
  gateway_attempt_id?: string | null;
6120
6126
  id?: string;
@@ -6123,9 +6129,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6123
6129
  locked_by?: string | null;
6124
6130
  next_attempt_at?: string;
6125
6131
  number_of_pieces?: number;
6132
+ product_id?: string | null;
6126
6133
  sent_at?: string | null;
6127
6134
  status?: string;
6135
+ stock_mode?: string | null;
6128
6136
  superseded_by?: string | null;
6137
+ target_week?: number | null;
6138
+ target_year?: number | null;
6129
6139
  trade_item_id: string;
6130
6140
  updated_at?: string;
6131
6141
  user_id: string;
@@ -6134,6 +6144,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6134
6144
  attempts?: number;
6135
6145
  connection_id?: string;
6136
6146
  created_at?: string;
6147
+ dead_lettered_at?: string | null;
6137
6148
  desired_available?: boolean | null;
6138
6149
  gateway_attempt_id?: string | null;
6139
6150
  id?: string;
@@ -6142,9 +6153,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6142
6153
  locked_by?: string | null;
6143
6154
  next_attempt_at?: string;
6144
6155
  number_of_pieces?: number;
6156
+ product_id?: string | null;
6145
6157
  sent_at?: string | null;
6146
6158
  status?: string;
6159
+ stock_mode?: string | null;
6147
6160
  superseded_by?: string | null;
6161
+ target_week?: number | null;
6162
+ target_year?: number | null;
6148
6163
  trade_item_id?: string;
6149
6164
  updated_at?: string;
6150
6165
  user_id?: string;
@@ -6553,6 +6568,87 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6553
6568
  referencedColumns: ["id"];
6554
6569
  }];
6555
6570
  };
6571
+ floriday_inventory_settings: {
6572
+ Row: {
6573
+ buffer_quantity: number;
6574
+ connection_id: string;
6575
+ created_at: string;
6576
+ desired_availability: boolean;
6577
+ desired_quantity: number;
6578
+ fixed_quantity: number | null;
6579
+ floriday_trade_item_id: string | null;
6580
+ id: string;
6581
+ last_confirmed_at: string | null;
6582
+ last_enqueued_at: string | null;
6583
+ last_published_at: string | null;
6584
+ last_sync_error: string | null;
6585
+ manual_quantity: number | null;
6586
+ maximum_quantity: number | null;
6587
+ product_id: string;
6588
+ quantity_control: string;
6589
+ remote_available: boolean | null;
6590
+ remote_checked_at: string | null;
6591
+ remote_quantity: number | null;
6592
+ stock_mode: string;
6593
+ sync_status: string;
6594
+ updated_at: string;
6595
+ updated_by: string | null;
6596
+ user_id: string;
6597
+ };
6598
+ Insert: {
6599
+ buffer_quantity?: number;
6600
+ connection_id: string;
6601
+ created_at?: string;
6602
+ desired_availability?: boolean;
6603
+ desired_quantity?: number;
6604
+ fixed_quantity?: number | null;
6605
+ floriday_trade_item_id?: string | null;
6606
+ id?: string;
6607
+ last_confirmed_at?: string | null;
6608
+ last_enqueued_at?: string | null;
6609
+ last_published_at?: string | null;
6610
+ last_sync_error?: string | null;
6611
+ manual_quantity?: number | null;
6612
+ maximum_quantity?: number | null;
6613
+ product_id: string;
6614
+ quantity_control?: string;
6615
+ remote_available?: boolean | null;
6616
+ remote_checked_at?: string | null;
6617
+ remote_quantity?: number | null;
6618
+ stock_mode?: string;
6619
+ sync_status?: string;
6620
+ updated_at?: string;
6621
+ updated_by?: string | null;
6622
+ user_id: string;
6623
+ };
6624
+ Update: {
6625
+ buffer_quantity?: number;
6626
+ connection_id?: string;
6627
+ created_at?: string;
6628
+ desired_availability?: boolean;
6629
+ desired_quantity?: number;
6630
+ fixed_quantity?: number | null;
6631
+ floriday_trade_item_id?: string | null;
6632
+ id?: string;
6633
+ last_confirmed_at?: string | null;
6634
+ last_enqueued_at?: string | null;
6635
+ last_published_at?: string | null;
6636
+ last_sync_error?: string | null;
6637
+ manual_quantity?: number | null;
6638
+ maximum_quantity?: number | null;
6639
+ product_id?: string;
6640
+ quantity_control?: string;
6641
+ remote_available?: boolean | null;
6642
+ remote_checked_at?: string | null;
6643
+ remote_quantity?: number | null;
6644
+ stock_mode?: string;
6645
+ sync_status?: string;
6646
+ updated_at?: string;
6647
+ updated_by?: string | null;
6648
+ user_id?: string;
6649
+ };
6650
+ Relationships: [];
6651
+ };
6556
6652
  floriday_invoices_cache: {
6557
6653
  Row: {
6558
6654
  buyer_organization_id: string | null;
@@ -6841,6 +6937,39 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6841
6937
  };
6842
6938
  Relationships: [];
6843
6939
  };
6940
+ floriday_sales_order_ingest: {
6941
+ Row: {
6942
+ connection_id: string;
6943
+ created_at: string;
6944
+ id: string;
6945
+ impact: import("../integrations/supabase/types").Json;
6946
+ order_status: string | null;
6947
+ order_version: number;
6948
+ processed_at: string;
6949
+ sales_order_id: string;
6950
+ };
6951
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
6972
+ };
6844
6973
  floriday_sales_strategies_cache: {
6845
6974
  Row: {
6846
6975
  connection_id: string;
@@ -6940,6 +7069,39 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
6940
7069
  };
6941
7070
  Relationships: [];
6942
7071
  };
7072
+ floriday_sync_cursors: {
7073
+ Row: {
7074
+ connection_id: string;
7075
+ created_at: string;
7076
+ id: string;
7077
+ last_error: string | null;
7078
+ last_sync_at: string | null;
7079
+ resource_type: string;
7080
+ sequence_number: number;
7081
+ updated_at: string;
7082
+ };
7083
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
7104
+ };
6943
7105
  floriday_sync_state: {
6944
7106
  Row: {
6945
7107
  connection_id: string;
@@ -7630,6 +7792,42 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
7630
7792
  };
7631
7793
  Relationships: [];
7632
7794
  };
7795
+ inventory_stock_snapshots: {
7796
+ Row: {
7797
+ connection_id: string;
7798
+ created_at: string;
7799
+ erp_available_quantity: number;
7800
+ floriday_desired_quantity: number;
7801
+ floriday_remote_quantity: number | null;
7802
+ granularity: string;
7803
+ id: string;
7804
+ snapshot_at: string;
7805
+ user_id: string | null;
7806
+ };
7807
+ Insert: {
7808
+ connection_id: string;
7809
+ created_at?: string;
7810
+ erp_available_quantity?: number;
7811
+ floriday_desired_quantity?: number;
7812
+ floriday_remote_quantity?: number | null;
7813
+ granularity?: string;
7814
+ id?: string;
7815
+ snapshot_at?: string;
7816
+ user_id?: string | null;
7817
+ };
7818
+ Update: {
7819
+ connection_id?: string;
7820
+ created_at?: string;
7821
+ erp_available_quantity?: number;
7822
+ floriday_desired_quantity?: number;
7823
+ floriday_remote_quantity?: number | null;
7824
+ granularity?: string;
7825
+ id?: string;
7826
+ snapshot_at?: string;
7827
+ user_id?: string | null;
7828
+ };
7829
+ Relationships: [];
7830
+ };
7633
7831
  invoice_items: {
7634
7832
  Row: {
7635
7833
  created_at: string;
@@ -16824,6 +17022,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16824
17022
  };
16825
17023
  trade_item_stock: {
16826
17024
  Row: {
17025
+ change_source: string;
16827
17026
  connection_id: string;
16828
17027
  created_at: string;
16829
17028
  id: string;
@@ -16837,6 +17036,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16837
17036
  user_id: string;
16838
17037
  };
16839
17038
  Insert: {
17039
+ change_source?: string;
16840
17040
  connection_id: string;
16841
17041
  created_at?: string;
16842
17042
  id?: string;
@@ -16850,6 +17050,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16850
17050
  user_id: string;
16851
17051
  };
16852
17052
  Update: {
17053
+ change_source?: string;
16853
17054
  connection_id?: string;
16854
17055
  created_at?: string;
16855
17056
  id?: string;
@@ -20450,6 +20651,18 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20450
20651
  Args: never;
20451
20652
  Returns: number;
20452
20653
  };
20654
+ calculate_floriday_desired_stock: {
20655
+ Args: {
20656
+ p_connection_id: string;
20657
+ p_product_id: string;
20658
+ };
20659
+ Returns: {
20660
+ desired_availability: boolean;
20661
+ desired_quantity: number;
20662
+ erp_available: number;
20663
+ stock_mode: string;
20664
+ }[];
20665
+ };
20453
20666
  calculate_layer_stock: {
20454
20667
  Args: {
20455
20668
  p_product_id: string;
@@ -20544,6 +20757,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20544
20757
  attempts: number;
20545
20758
  connection_id: string;
20546
20759
  created_at: string;
20760
+ dead_lettered_at: string | null;
20547
20761
  desired_available: boolean | null;
20548
20762
  gateway_attempt_id: string | null;
20549
20763
  id: string;
@@ -20552,9 +20766,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20552
20766
  locked_by: string | null;
20553
20767
  next_attempt_at: string;
20554
20768
  number_of_pieces: number;
20769
+ product_id: string | null;
20555
20770
  sent_at: string | null;
20556
20771
  status: string;
20772
+ stock_mode: string | null;
20557
20773
  superseded_by: string | null;
20774
+ target_week: number | null;
20775
+ target_year: number | null;
20558
20776
  trade_item_id: string;
20559
20777
  updated_at: string;
20560
20778
  user_id: string;
@@ -21035,6 +21253,24 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21035
21253
  };
21036
21254
  Returns: string;
21037
21255
  };
21256
+ floriday_capture_stock_snapshot: {
21257
+ Args: never;
21258
+ Returns: number;
21259
+ };
21260
+ floriday_cleanup_stock_queue_v2: {
21261
+ Args: never;
21262
+ Returns: undefined;
21263
+ };
21264
+ floriday_compact_stock_snapshots: {
21265
+ Args: never;
21266
+ Returns: undefined;
21267
+ };
21268
+ floriday_default_owner: {
21269
+ Args: {
21270
+ p_connection_id: string;
21271
+ };
21272
+ Returns: string;
21273
+ };
21038
21274
  floriday_effective_price: {
21039
21275
  Args: {
21040
21276
  _buyer_id: string;
@@ -21052,6 +21288,22 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21052
21288
  source_id: string;
21053
21289
  }[];
21054
21290
  };
21291
+ floriday_fill_publish_horizon: {
21292
+ Args: never;
21293
+ Returns: number;
21294
+ };
21295
+ floriday_publish_horizon_weeks: {
21296
+ Args: never;
21297
+ Returns: number;
21298
+ };
21299
+ floriday_recompute_inventory: {
21300
+ Args: {
21301
+ p_connection_id: string;
21302
+ p_force?: boolean;
21303
+ p_product_id: string;
21304
+ };
21305
+ Returns: undefined;
21306
+ };
21055
21307
  format_cart_number: {
21056
21308
  Args: {
21057
21309
  p_pick_date: string;
@@ -29687,6 +29939,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29687
29939
  attempts: number;
29688
29940
  connection_id: string;
29689
29941
  created_at: string;
29942
+ dead_lettered_at: string | null;
29690
29943
  desired_available: boolean | null;
29691
29944
  gateway_attempt_id: string | null;
29692
29945
  id: string;
@@ -29695,9 +29948,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29695
29948
  locked_by: string | null;
29696
29949
  next_attempt_at: string;
29697
29950
  number_of_pieces: number;
29951
+ product_id: string | null;
29698
29952
  sent_at: string | null;
29699
29953
  status: string;
29954
+ stock_mode: string | null;
29700
29955
  superseded_by: string | null;
29956
+ target_week: number | null;
29957
+ target_year: number | null;
29701
29958
  trade_item_id: string;
29702
29959
  updated_at: string;
29703
29960
  user_id: string;
@@ -29706,6 +29963,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29706
29963
  attempts?: number;
29707
29964
  connection_id: string;
29708
29965
  created_at?: string;
29966
+ dead_lettered_at?: string | null;
29709
29967
  desired_available?: boolean | null;
29710
29968
  gateway_attempt_id?: string | null;
29711
29969
  id?: string;
@@ -29714,9 +29972,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29714
29972
  locked_by?: string | null;
29715
29973
  next_attempt_at?: string;
29716
29974
  number_of_pieces?: number;
29975
+ product_id?: string | null;
29717
29976
  sent_at?: string | null;
29718
29977
  status?: string;
29978
+ stock_mode?: string | null;
29719
29979
  superseded_by?: string | null;
29980
+ target_week?: number | null;
29981
+ target_year?: number | null;
29720
29982
  trade_item_id: string;
29721
29983
  updated_at?: string;
29722
29984
  user_id: string;
@@ -29725,6 +29987,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29725
29987
  attempts?: number;
29726
29988
  connection_id?: string;
29727
29989
  created_at?: string;
29990
+ dead_lettered_at?: string | null;
29728
29991
  desired_available?: boolean | null;
29729
29992
  gateway_attempt_id?: string | null;
29730
29993
  id?: string;
@@ -29733,9 +29996,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29733
29996
  locked_by?: string | null;
29734
29997
  next_attempt_at?: string;
29735
29998
  number_of_pieces?: number;
29999
+ product_id?: string | null;
29736
30000
  sent_at?: string | null;
29737
30001
  status?: string;
30002
+ stock_mode?: string | null;
29738
30003
  superseded_by?: string | null;
30004
+ target_week?: number | null;
30005
+ target_year?: number | null;
29739
30006
  trade_item_id?: string;
29740
30007
  updated_at?: string;
29741
30008
  user_id?: string;
@@ -30144,6 +30411,87 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
30144
30411
  referencedColumns: ["id"];
30145
30412
  }];
30146
30413
  };
30414
+ floriday_inventory_settings: {
30415
+ Row: {
30416
+ buffer_quantity: number;
30417
+ connection_id: string;
30418
+ created_at: string;
30419
+ desired_availability: boolean;
30420
+ desired_quantity: number;
30421
+ fixed_quantity: number | null;
30422
+ floriday_trade_item_id: string | null;
30423
+ id: string;
30424
+ last_confirmed_at: string | null;
30425
+ last_enqueued_at: string | null;
30426
+ last_published_at: string | null;
30427
+ last_sync_error: string | null;
30428
+ manual_quantity: number | null;
30429
+ maximum_quantity: number | null;
30430
+ product_id: string;
30431
+ quantity_control: string;
30432
+ remote_available: boolean | null;
30433
+ remote_checked_at: string | null;
30434
+ remote_quantity: number | null;
30435
+ stock_mode: string;
30436
+ sync_status: string;
30437
+ updated_at: string;
30438
+ updated_by: string | null;
30439
+ user_id: string;
30440
+ };
30441
+ Insert: {
30442
+ buffer_quantity?: number;
30443
+ connection_id: string;
30444
+ created_at?: string;
30445
+ desired_availability?: boolean;
30446
+ desired_quantity?: number;
30447
+ fixed_quantity?: number | null;
30448
+ floriday_trade_item_id?: string | null;
30449
+ id?: string;
30450
+ last_confirmed_at?: string | null;
30451
+ last_enqueued_at?: string | null;
30452
+ last_published_at?: string | null;
30453
+ last_sync_error?: string | null;
30454
+ manual_quantity?: number | null;
30455
+ maximum_quantity?: number | null;
30456
+ product_id: string;
30457
+ quantity_control?: string;
30458
+ remote_available?: boolean | null;
30459
+ remote_checked_at?: string | null;
30460
+ remote_quantity?: number | null;
30461
+ stock_mode?: string;
30462
+ sync_status?: string;
30463
+ updated_at?: string;
30464
+ updated_by?: string | null;
30465
+ user_id: string;
30466
+ };
30467
+ Update: {
30468
+ buffer_quantity?: number;
30469
+ connection_id?: string;
30470
+ created_at?: string;
30471
+ desired_availability?: boolean;
30472
+ desired_quantity?: number;
30473
+ fixed_quantity?: number | null;
30474
+ floriday_trade_item_id?: string | null;
30475
+ id?: string;
30476
+ last_confirmed_at?: string | null;
30477
+ last_enqueued_at?: string | null;
30478
+ last_published_at?: string | null;
30479
+ last_sync_error?: string | null;
30480
+ manual_quantity?: number | null;
30481
+ maximum_quantity?: number | null;
30482
+ product_id?: string;
30483
+ quantity_control?: string;
30484
+ remote_available?: boolean | null;
30485
+ remote_checked_at?: string | null;
30486
+ remote_quantity?: number | null;
30487
+ stock_mode?: string;
30488
+ sync_status?: string;
30489
+ updated_at?: string;
30490
+ updated_by?: string | null;
30491
+ user_id?: string;
30492
+ };
30493
+ Relationships: [];
30494
+ };
30147
30495
  floriday_invoices_cache: {
30148
30496
  Row: {
30149
30497
  buyer_organization_id: string | null;
@@ -30432,6 +30780,39 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
30432
30780
  };
30433
30781
  Relationships: [];
30434
30782
  };
30783
+ floriday_sales_order_ingest: {
30784
+ Row: {
30785
+ connection_id: string;
30786
+ created_at: string;
30787
+ id: string;
30788
+ impact: import("../integrations/supabase/types").Json;
30789
+ order_status: string | null;
30790
+ order_version: number;
30791
+ processed_at: string;
30792
+ sales_order_id: string;
30793
+ };
30794
+ Insert: {
30795
+ connection_id: string;
30796
+ created_at?: string;
30797
+ id?: string;
30798
+ impact?: import("../integrations/supabase/types").Json;
30799
+ order_status?: string | null;
30800
+ order_version?: number;
30801
+ processed_at?: string;
30802
+ sales_order_id: string;
30803
+ };
30804
+ Update: {
30805
+ connection_id?: string;
30806
+ created_at?: string;
30807
+ id?: string;
30808
+ impact?: import("../integrations/supabase/types").Json;
30809
+ order_status?: string | null;
30810
+ order_version?: number;
30811
+ processed_at?: string;
30812
+ sales_order_id?: string;
30813
+ };
30814
+ Relationships: [];
30815
+ };
30435
30816
  floriday_sales_strategies_cache: {
30436
30817
  Row: {
30437
30818
  connection_id: string;
@@ -30531,6 +30912,39 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
30531
30912
  };
30532
30913
  Relationships: [];
30533
30914
  };
30915
+ floriday_sync_cursors: {
30916
+ Row: {
30917
+ connection_id: string;
30918
+ created_at: string;
30919
+ id: string;
30920
+ last_error: string | null;
30921
+ last_sync_at: string | null;
30922
+ resource_type: string;
30923
+ sequence_number: number;
30924
+ updated_at: string;
30925
+ };
30926
+ Insert: {
30927
+ connection_id: string;
30928
+ created_at?: string;
30929
+ id?: string;
30930
+ last_error?: string | null;
30931
+ last_sync_at?: string | null;
30932
+ resource_type: string;
30933
+ sequence_number?: number;
30934
+ updated_at?: string;
30935
+ };
30936
+ Update: {
30937
+ connection_id?: string;
30938
+ created_at?: string;
30939
+ id?: string;
30940
+ last_error?: string | null;
30941
+ last_sync_at?: string | null;
30942
+ resource_type?: string;
30943
+ sequence_number?: number;
30944
+ updated_at?: string;
30945
+ };
30946
+ Relationships: [];
30947
+ };
30534
30948
  floriday_sync_state: {
30535
30949
  Row: {
30536
30950
  connection_id: string;
@@ -31221,6 +31635,42 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
31221
31635
  };
31222
31636
  Relationships: [];
31223
31637
  };
31638
+ inventory_stock_snapshots: {
31639
+ Row: {
31640
+ connection_id: string;
31641
+ created_at: string;
31642
+ erp_available_quantity: number;
31643
+ floriday_desired_quantity: number;
31644
+ floriday_remote_quantity: number | null;
31645
+ granularity: string;
31646
+ id: string;
31647
+ snapshot_at: string;
31648
+ user_id: string | null;
31649
+ };
31650
+ Insert: {
31651
+ connection_id: string;
31652
+ created_at?: string;
31653
+ erp_available_quantity?: number;
31654
+ floriday_desired_quantity?: number;
31655
+ floriday_remote_quantity?: number | null;
31656
+ granularity?: string;
31657
+ id?: string;
31658
+ snapshot_at?: string;
31659
+ user_id?: string | null;
31660
+ };
31661
+ Update: {
31662
+ connection_id?: string;
31663
+ created_at?: string;
31664
+ erp_available_quantity?: number;
31665
+ floriday_desired_quantity?: number;
31666
+ floriday_remote_quantity?: number | null;
31667
+ granularity?: string;
31668
+ id?: string;
31669
+ snapshot_at?: string;
31670
+ user_id?: string | null;
31671
+ };
31672
+ Relationships: [];
31673
+ };
31224
31674
  invoice_items: {
31225
31675
  Row: {
31226
31676
  created_at: string;
@@ -40415,6 +40865,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40415
40865
  };
40416
40866
  trade_item_stock: {
40417
40867
  Row: {
40868
+ change_source: string;
40418
40869
  connection_id: string;
40419
40870
  created_at: string;
40420
40871
  id: string;
@@ -40428,6 +40879,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40428
40879
  user_id: string;
40429
40880
  };
40430
40881
  Insert: {
40882
+ change_source?: string;
40431
40883
  connection_id: string;
40432
40884
  created_at?: string;
40433
40885
  id?: string;
@@ -40441,6 +40893,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40441
40893
  user_id: string;
40442
40894
  };
40443
40895
  Update: {
40896
+ change_source?: string;
40444
40897
  connection_id?: string;
40445
40898
  created_at?: string;
40446
40899
  id?: string;
@@ -44041,6 +44494,18 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44041
44494
  Args: never;
44042
44495
  Returns: number;
44043
44496
  };
44497
+ calculate_floriday_desired_stock: {
44498
+ Args: {
44499
+ p_connection_id: string;
44500
+ p_product_id: string;
44501
+ };
44502
+ Returns: {
44503
+ desired_availability: boolean;
44504
+ desired_quantity: number;
44505
+ erp_available: number;
44506
+ stock_mode: string;
44507
+ }[];
44508
+ };
44044
44509
  calculate_layer_stock: {
44045
44510
  Args: {
44046
44511
  p_product_id: string;
@@ -44135,6 +44600,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44135
44600
  attempts: number;
44136
44601
  connection_id: string;
44137
44602
  created_at: string;
44603
+ dead_lettered_at: string | null;
44138
44604
  desired_available: boolean | null;
44139
44605
  gateway_attempt_id: string | null;
44140
44606
  id: string;
@@ -44143,9 +44609,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44143
44609
  locked_by: string | null;
44144
44610
  next_attempt_at: string;
44145
44611
  number_of_pieces: number;
44612
+ product_id: string | null;
44146
44613
  sent_at: string | null;
44147
44614
  status: string;
44615
+ stock_mode: string | null;
44148
44616
  superseded_by: string | null;
44617
+ target_week: number | null;
44618
+ target_year: number | null;
44149
44619
  trade_item_id: string;
44150
44620
  updated_at: string;
44151
44621
  user_id: string;
@@ -44626,6 +45096,24 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44626
45096
  };
44627
45097
  Returns: string;
44628
45098
  };
45099
+ floriday_capture_stock_snapshot: {
45100
+ Args: never;
45101
+ Returns: number;
45102
+ };
45103
+ floriday_cleanup_stock_queue_v2: {
45104
+ Args: never;
45105
+ Returns: undefined;
45106
+ };
45107
+ floriday_compact_stock_snapshots: {
45108
+ Args: never;
45109
+ Returns: undefined;
45110
+ };
45111
+ floriday_default_owner: {
45112
+ Args: {
45113
+ p_connection_id: string;
45114
+ };
45115
+ Returns: string;
45116
+ };
44629
45117
  floriday_effective_price: {
44630
45118
  Args: {
44631
45119
  _buyer_id: string;
@@ -44643,6 +45131,22 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44643
45131
  source_id: string;
44644
45132
  }[];
44645
45133
  };
45134
+ floriday_fill_publish_horizon: {
45135
+ Args: never;
45136
+ Returns: number;
45137
+ };
45138
+ floriday_publish_horizon_weeks: {
45139
+ Args: never;
45140
+ Returns: number;
45141
+ };
45142
+ floriday_recompute_inventory: {
45143
+ Args: {
45144
+ p_connection_id: string;
45145
+ p_force?: boolean;
45146
+ p_product_id: string;
45147
+ };
45148
+ Returns: undefined;
45149
+ };
44646
45150
  format_cart_number: {
44647
45151
  Args: {
44648
45152
  p_pick_date: string;
@@ -53287,6 +53791,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53287
53791
  attempts: number;
53288
53792
  connection_id: string;
53289
53793
  created_at: string;
53794
+ dead_lettered_at: string | null;
53290
53795
  desired_available: boolean | null;
53291
53796
  gateway_attempt_id: string | null;
53292
53797
  id: string;
@@ -53295,9 +53800,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53295
53800
  locked_by: string | null;
53296
53801
  next_attempt_at: string;
53297
53802
  number_of_pieces: number;
53803
+ product_id: string | null;
53298
53804
  sent_at: string | null;
53299
53805
  status: string;
53806
+ stock_mode: string | null;
53300
53807
  superseded_by: string | null;
53808
+ target_week: number | null;
53809
+ target_year: number | null;
53301
53810
  trade_item_id: string;
53302
53811
  updated_at: string;
53303
53812
  user_id: string;
@@ -53306,6 +53815,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53306
53815
  attempts?: number;
53307
53816
  connection_id: string;
53308
53817
  created_at?: string;
53818
+ dead_lettered_at?: string | null;
53309
53819
  desired_available?: boolean | null;
53310
53820
  gateway_attempt_id?: string | null;
53311
53821
  id?: string;
@@ -53314,9 +53824,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53314
53824
  locked_by?: string | null;
53315
53825
  next_attempt_at?: string;
53316
53826
  number_of_pieces?: number;
53827
+ product_id?: string | null;
53317
53828
  sent_at?: string | null;
53318
53829
  status?: string;
53830
+ stock_mode?: string | null;
53319
53831
  superseded_by?: string | null;
53832
+ target_week?: number | null;
53833
+ target_year?: number | null;
53320
53834
  trade_item_id: string;
53321
53835
  updated_at?: string;
53322
53836
  user_id: string;
@@ -53325,6 +53839,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53325
53839
  attempts?: number;
53326
53840
  connection_id?: string;
53327
53841
  created_at?: string;
53842
+ dead_lettered_at?: string | null;
53328
53843
  desired_available?: boolean | null;
53329
53844
  gateway_attempt_id?: string | null;
53330
53845
  id?: string;
@@ -53333,9 +53848,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53333
53848
  locked_by?: string | null;
53334
53849
  next_attempt_at?: string;
53335
53850
  number_of_pieces?: number;
53851
+ product_id?: string | null;
53336
53852
  sent_at?: string | null;
53337
53853
  status?: string;
53854
+ stock_mode?: string | null;
53338
53855
  superseded_by?: string | null;
53856
+ target_week?: number | null;
53857
+ target_year?: number | null;
53339
53858
  trade_item_id?: string;
53340
53859
  updated_at?: string;
53341
53860
  user_id?: string;
@@ -53744,6 +54263,87 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53744
54263
  referencedColumns: ["id"];
53745
54264
  }];
53746
54265
  };
54266
+ floriday_inventory_settings: {
54267
+ Row: {
54268
+ buffer_quantity: number;
54269
+ connection_id: string;
54270
+ created_at: string;
54271
+ desired_availability: boolean;
54272
+ desired_quantity: number;
54273
+ fixed_quantity: number | null;
54274
+ floriday_trade_item_id: string | null;
54275
+ id: string;
54276
+ last_confirmed_at: string | null;
54277
+ last_enqueued_at: string | null;
54278
+ last_published_at: string | null;
54279
+ last_sync_error: string | null;
54280
+ manual_quantity: number | null;
54281
+ maximum_quantity: number | null;
54282
+ product_id: string;
54283
+ quantity_control: string;
54284
+ remote_available: boolean | null;
54285
+ remote_checked_at: string | null;
54286
+ remote_quantity: number | null;
54287
+ stock_mode: string;
54288
+ sync_status: string;
54289
+ updated_at: string;
54290
+ updated_by: string | null;
54291
+ user_id: string;
54292
+ };
54293
+ Insert: {
54294
+ buffer_quantity?: number;
54295
+ connection_id: string;
54296
+ created_at?: string;
54297
+ desired_availability?: boolean;
54298
+ desired_quantity?: number;
54299
+ fixed_quantity?: number | null;
54300
+ floriday_trade_item_id?: string | null;
54301
+ id?: string;
54302
+ last_confirmed_at?: string | null;
54303
+ last_enqueued_at?: string | null;
54304
+ last_published_at?: string | null;
54305
+ last_sync_error?: string | null;
54306
+ manual_quantity?: number | null;
54307
+ maximum_quantity?: number | null;
54308
+ product_id: string;
54309
+ quantity_control?: string;
54310
+ remote_available?: boolean | null;
54311
+ remote_checked_at?: string | null;
54312
+ remote_quantity?: number | null;
54313
+ stock_mode?: string;
54314
+ sync_status?: string;
54315
+ updated_at?: string;
54316
+ updated_by?: string | null;
54317
+ user_id: string;
54318
+ };
54319
+ Update: {
54320
+ buffer_quantity?: number;
54321
+ connection_id?: string;
54322
+ created_at?: string;
54323
+ desired_availability?: boolean;
54324
+ desired_quantity?: number;
54325
+ fixed_quantity?: number | null;
54326
+ floriday_trade_item_id?: string | null;
54327
+ id?: string;
54328
+ last_confirmed_at?: string | null;
54329
+ last_enqueued_at?: string | null;
54330
+ last_published_at?: string | null;
54331
+ last_sync_error?: string | null;
54332
+ manual_quantity?: number | null;
54333
+ maximum_quantity?: number | null;
54334
+ product_id?: string;
54335
+ quantity_control?: string;
54336
+ remote_available?: boolean | null;
54337
+ remote_checked_at?: string | null;
54338
+ remote_quantity?: number | null;
54339
+ stock_mode?: string;
54340
+ sync_status?: string;
54341
+ updated_at?: string;
54342
+ updated_by?: string | null;
54343
+ user_id?: string;
54344
+ };
54345
+ Relationships: [];
54346
+ };
53747
54347
  floriday_invoices_cache: {
53748
54348
  Row: {
53749
54349
  buyer_organization_id: string | null;
@@ -54032,6 +54632,39 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
54032
54632
  };
54033
54633
  Relationships: [];
54034
54634
  };
54635
+ floriday_sales_order_ingest: {
54636
+ Row: {
54637
+ connection_id: string;
54638
+ created_at: string;
54639
+ id: string;
54640
+ impact: import("../integrations/supabase/types").Json;
54641
+ order_status: string | null;
54642
+ order_version: number;
54643
+ processed_at: string;
54644
+ sales_order_id: string;
54645
+ };
54646
+ Insert: {
54647
+ connection_id: string;
54648
+ created_at?: string;
54649
+ id?: string;
54650
+ impact?: import("../integrations/supabase/types").Json;
54651
+ order_status?: string | null;
54652
+ order_version?: number;
54653
+ processed_at?: string;
54654
+ sales_order_id: string;
54655
+ };
54656
+ Update: {
54657
+ connection_id?: string;
54658
+ created_at?: string;
54659
+ id?: string;
54660
+ impact?: import("../integrations/supabase/types").Json;
54661
+ order_status?: string | null;
54662
+ order_version?: number;
54663
+ processed_at?: string;
54664
+ sales_order_id?: string;
54665
+ };
54666
+ Relationships: [];
54667
+ };
54035
54668
  floriday_sales_strategies_cache: {
54036
54669
  Row: {
54037
54670
  connection_id: string;
@@ -54131,6 +54764,39 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
54131
54764
  };
54132
54765
  Relationships: [];
54133
54766
  };
54767
+ floriday_sync_cursors: {
54768
+ Row: {
54769
+ connection_id: string;
54770
+ created_at: string;
54771
+ id: string;
54772
+ last_error: string | null;
54773
+ last_sync_at: string | null;
54774
+ resource_type: string;
54775
+ sequence_number: number;
54776
+ updated_at: string;
54777
+ };
54778
+ Insert: {
54779
+ connection_id: string;
54780
+ created_at?: string;
54781
+ id?: string;
54782
+ last_error?: string | null;
54783
+ last_sync_at?: string | null;
54784
+ resource_type: string;
54785
+ sequence_number?: number;
54786
+ updated_at?: string;
54787
+ };
54788
+ Update: {
54789
+ connection_id?: string;
54790
+ created_at?: string;
54791
+ id?: string;
54792
+ last_error?: string | null;
54793
+ last_sync_at?: string | null;
54794
+ resource_type?: string;
54795
+ sequence_number?: number;
54796
+ updated_at?: string;
54797
+ };
54798
+ Relationships: [];
54799
+ };
54134
54800
  floriday_sync_state: {
54135
54801
  Row: {
54136
54802
  connection_id: string;
@@ -54821,6 +55487,42 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
54821
55487
  };
54822
55488
  Relationships: [];
54823
55489
  };
55490
+ inventory_stock_snapshots: {
55491
+ Row: {
55492
+ connection_id: string;
55493
+ created_at: string;
55494
+ erp_available_quantity: number;
55495
+ floriday_desired_quantity: number;
55496
+ floriday_remote_quantity: number | null;
55497
+ granularity: string;
55498
+ id: string;
55499
+ snapshot_at: string;
55500
+ user_id: string | null;
55501
+ };
55502
+ Insert: {
55503
+ connection_id: string;
55504
+ created_at?: string;
55505
+ erp_available_quantity?: number;
55506
+ floriday_desired_quantity?: number;
55507
+ floriday_remote_quantity?: number | null;
55508
+ granularity?: string;
55509
+ id?: string;
55510
+ snapshot_at?: string;
55511
+ user_id?: string | null;
55512
+ };
55513
+ Update: {
55514
+ connection_id?: string;
55515
+ created_at?: string;
55516
+ erp_available_quantity?: number;
55517
+ floriday_desired_quantity?: number;
55518
+ floriday_remote_quantity?: number | null;
55519
+ granularity?: string;
55520
+ id?: string;
55521
+ snapshot_at?: string;
55522
+ user_id?: string | null;
55523
+ };
55524
+ Relationships: [];
55525
+ };
54824
55526
  invoice_items: {
54825
55527
  Row: {
54826
55528
  created_at: string;
@@ -64015,6 +64717,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
64015
64717
  };
64016
64718
  trade_item_stock: {
64017
64719
  Row: {
64720
+ change_source: string;
64018
64721
  connection_id: string;
64019
64722
  created_at: string;
64020
64723
  id: string;
@@ -64028,6 +64731,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
64028
64731
  user_id: string;
64029
64732
  };
64030
64733
  Insert: {
64734
+ change_source?: string;
64031
64735
  connection_id: string;
64032
64736
  created_at?: string;
64033
64737
  id?: string;
@@ -64041,6 +64745,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
64041
64745
  user_id: string;
64042
64746
  };
64043
64747
  Update: {
64748
+ change_source?: string;
64044
64749
  connection_id?: string;
64045
64750
  created_at?: string;
64046
64751
  id?: string;
@@ -67641,6 +68346,18 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67641
68346
  Args: never;
67642
68347
  Returns: number;
67643
68348
  };
68349
+ calculate_floriday_desired_stock: {
68350
+ Args: {
68351
+ p_connection_id: string;
68352
+ p_product_id: string;
68353
+ };
68354
+ Returns: {
68355
+ desired_availability: boolean;
68356
+ desired_quantity: number;
68357
+ erp_available: number;
68358
+ stock_mode: string;
68359
+ }[];
68360
+ };
67644
68361
  calculate_layer_stock: {
67645
68362
  Args: {
67646
68363
  p_product_id: string;
@@ -67735,6 +68452,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67735
68452
  attempts: number;
67736
68453
  connection_id: string;
67737
68454
  created_at: string;
68455
+ dead_lettered_at: string | null;
67738
68456
  desired_available: boolean | null;
67739
68457
  gateway_attempt_id: string | null;
67740
68458
  id: string;
@@ -67743,9 +68461,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67743
68461
  locked_by: string | null;
67744
68462
  next_attempt_at: string;
67745
68463
  number_of_pieces: number;
68464
+ product_id: string | null;
67746
68465
  sent_at: string | null;
67747
68466
  status: string;
68467
+ stock_mode: string | null;
67748
68468
  superseded_by: string | null;
68469
+ target_week: number | null;
68470
+ target_year: number | null;
67749
68471
  trade_item_id: string;
67750
68472
  updated_at: string;
67751
68473
  user_id: string;
@@ -68226,6 +68948,24 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68226
68948
  };
68227
68949
  Returns: string;
68228
68950
  };
68951
+ floriday_capture_stock_snapshot: {
68952
+ Args: never;
68953
+ Returns: number;
68954
+ };
68955
+ floriday_cleanup_stock_queue_v2: {
68956
+ Args: never;
68957
+ Returns: undefined;
68958
+ };
68959
+ floriday_compact_stock_snapshots: {
68960
+ Args: never;
68961
+ Returns: undefined;
68962
+ };
68963
+ floriday_default_owner: {
68964
+ Args: {
68965
+ p_connection_id: string;
68966
+ };
68967
+ Returns: string;
68968
+ };
68229
68969
  floriday_effective_price: {
68230
68970
  Args: {
68231
68971
  _buyer_id: string;
@@ -68243,6 +68983,22 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68243
68983
  source_id: string;
68244
68984
  }[];
68245
68985
  };
68986
+ floriday_fill_publish_horizon: {
68987
+ Args: never;
68988
+ Returns: number;
68989
+ };
68990
+ floriday_publish_horizon_weeks: {
68991
+ Args: never;
68992
+ Returns: number;
68993
+ };
68994
+ floriday_recompute_inventory: {
68995
+ Args: {
68996
+ p_connection_id: string;
68997
+ p_force?: boolean;
68998
+ p_product_id: string;
68999
+ };
69000
+ Returns: undefined;
69001
+ };
68246
69002
  format_cart_number: {
68247
69003
  Args: {
68248
69004
  p_pick_date: string;