@flowselections/floriday-authenticatie-module 1.0.21 → 1.0.23

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 (41) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +385 -3
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +385 -3
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +385 -3
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +389 -3
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/central-auth.server.d.ts +17 -0
  10. package/dist-lib/lib/central-auth.server.d.ts.map +1 -0
  11. package/dist-lib/lib/central-auth.server.js +65 -0
  12. package/dist-lib/lib/floricode.functions.d.ts +2757 -83
  13. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  14. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +385 -3
  15. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/floriday-labels.functions.d.ts +385 -3
  17. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-public.functions.d.ts +2310 -18
  19. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-stickers.functions.d.ts +385 -3
  21. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-sync.functions.d.ts +12493 -651
  23. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-writes.functions.d.ts +2310 -18
  25. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday.functions.d.ts +7178 -302
  27. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday.functions.js +9 -21
  29. package/dist-lib/lib/gateway/cache-tables.d.ts +2 -0
  30. package/dist-lib/lib/gateway/cache-tables.d.ts.map +1 -0
  31. package/dist-lib/lib/gateway/cache-tables.js +27 -0
  32. package/dist-lib/lib/gateway/cached-list.d.ts +15 -0
  33. package/dist-lib/lib/gateway/cached-list.d.ts.map +1 -0
  34. package/dist-lib/lib/gateway/cached-list.js +35 -0
  35. package/dist-lib/lib/gateway/index.d.ts +4 -0
  36. package/dist-lib/lib/gateway/index.d.ts.map +1 -0
  37. package/dist-lib/lib/gateway/index.js +3 -0
  38. package/dist-lib/lib/gateway/shared.d.ts +2 -0
  39. package/dist-lib/lib/gateway/shared.d.ts.map +1 -0
  40. package/dist-lib/lib/gateway/shared.js +3 -0
  41. package/package.json +7 -3
@@ -1043,6 +1043,141 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
1043
1043
  };
1044
1044
  Relationships: [];
1045
1045
  };
1046
+ cart_planning_pick_times: {
1047
+ Row: {
1048
+ created_at: string;
1049
+ id: string;
1050
+ pot_size: string;
1051
+ seconds_per_cart: number;
1052
+ updated_at: string;
1053
+ };
1054
+ Insert: {
1055
+ created_at?: string;
1056
+ id?: string;
1057
+ pot_size: string;
1058
+ seconds_per_cart: number;
1059
+ updated_at?: string;
1060
+ };
1061
+ Update: {
1062
+ created_at?: string;
1063
+ id?: string;
1064
+ pot_size?: string;
1065
+ seconds_per_cart?: number;
1066
+ updated_at?: string;
1067
+ };
1068
+ Relationships: [];
1069
+ };
1070
+ cart_planning_product_overrides: {
1071
+ Row: {
1072
+ created_at: string;
1073
+ id: string;
1074
+ max_party_share_per_layer_pct_override: number | null;
1075
+ never_mix: boolean;
1076
+ notes: string | null;
1077
+ product_id: string;
1078
+ updated_at: string;
1079
+ };
1080
+ Insert: {
1081
+ created_at?: string;
1082
+ id?: string;
1083
+ max_party_share_per_layer_pct_override?: number | null;
1084
+ never_mix?: boolean;
1085
+ notes?: string | null;
1086
+ product_id: string;
1087
+ updated_at?: string;
1088
+ };
1089
+ Update: {
1090
+ created_at?: string;
1091
+ id?: string;
1092
+ max_party_share_per_layer_pct_override?: number | null;
1093
+ never_mix?: boolean;
1094
+ notes?: string | null;
1095
+ product_id?: string;
1096
+ updated_at?: string;
1097
+ };
1098
+ Relationships: [{
1099
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1100
+ columns: ["product_id"];
1101
+ isOneToOne: true;
1102
+ referencedRelation: "products";
1103
+ referencedColumns: ["id"];
1104
+ }];
1105
+ };
1106
+ cart_planning_settings: {
1107
+ Row: {
1108
+ allow_editing_after_pickstation_send: boolean;
1109
+ buffer_grouping_mode: string;
1110
+ combine_floriday_orders: boolean;
1111
+ combine_floriday_orders_window: string;
1112
+ combine_orders_scope: string;
1113
+ default_workers: number;
1114
+ id: number;
1115
+ max_beladingen_per_layer: number;
1116
+ max_customers_per_cart: number;
1117
+ max_one_customer_per_layer: boolean;
1118
+ max_party_share_per_layer_pct: number;
1119
+ optimization_strategy: string;
1120
+ own_cart_from_layers: number;
1121
+ pick_time_mode: string;
1122
+ plants_per_day: number;
1123
+ plants_per_hour: number;
1124
+ require_same_carrier: boolean;
1125
+ require_same_crate_type: boolean;
1126
+ require_same_delivery_date: boolean;
1127
+ require_same_delivery_location: boolean;
1128
+ updated_at: string;
1129
+ updated_by: string | null;
1130
+ };
1131
+ Insert: {
1132
+ allow_editing_after_pickstation_send?: boolean;
1133
+ buffer_grouping_mode?: string;
1134
+ combine_floriday_orders?: boolean;
1135
+ combine_floriday_orders_window?: string;
1136
+ combine_orders_scope?: string;
1137
+ default_workers?: number;
1138
+ id?: number;
1139
+ max_beladingen_per_layer?: number;
1140
+ max_customers_per_cart?: number;
1141
+ max_one_customer_per_layer?: boolean;
1142
+ max_party_share_per_layer_pct?: number;
1143
+ optimization_strategy?: string;
1144
+ own_cart_from_layers?: number;
1145
+ pick_time_mode?: string;
1146
+ plants_per_day?: number;
1147
+ plants_per_hour?: number;
1148
+ require_same_carrier?: boolean;
1149
+ require_same_crate_type?: boolean;
1150
+ require_same_delivery_date?: boolean;
1151
+ require_same_delivery_location?: boolean;
1152
+ updated_at?: string;
1153
+ updated_by?: string | null;
1154
+ };
1155
+ Update: {
1156
+ allow_editing_after_pickstation_send?: boolean;
1157
+ buffer_grouping_mode?: string;
1158
+ combine_floriday_orders?: boolean;
1159
+ combine_floriday_orders_window?: string;
1160
+ combine_orders_scope?: string;
1161
+ default_workers?: number;
1162
+ id?: number;
1163
+ max_beladingen_per_layer?: number;
1164
+ max_customers_per_cart?: number;
1165
+ max_one_customer_per_layer?: boolean;
1166
+ max_party_share_per_layer_pct?: number;
1167
+ optimization_strategy?: string;
1168
+ own_cart_from_layers?: number;
1169
+ pick_time_mode?: string;
1170
+ plants_per_day?: number;
1171
+ plants_per_hour?: number;
1172
+ require_same_carrier?: boolean;
1173
+ require_same_crate_type?: boolean;
1174
+ require_same_delivery_date?: boolean;
1175
+ require_same_delivery_location?: boolean;
1176
+ updated_at?: string;
1177
+ updated_by?: string | null;
1178
+ };
1179
+ Relationships: [];
1180
+ };
1046
1181
  cart_replan_queue: {
1047
1182
  Row: {
1048
1183
  attempts: number;
@@ -1073,6 +1208,39 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
1073
1208
  referencedColumns: ["id"];
1074
1209
  }];
1075
1210
  };
1211
+ cart_types: {
1212
+ Row: {
1213
+ created_at: string;
1214
+ id: string;
1215
+ is_default: boolean;
1216
+ layer_length_cm: number;
1217
+ layer_width_cm: number;
1218
+ layers_per_cart: number;
1219
+ name: string;
1220
+ updated_at: string;
1221
+ };
1222
+ Insert: {
1223
+ created_at?: string;
1224
+ id?: string;
1225
+ is_default?: boolean;
1226
+ layer_length_cm: number;
1227
+ layer_width_cm: number;
1228
+ layers_per_cart?: number;
1229
+ name: string;
1230
+ updated_at?: string;
1231
+ };
1232
+ Update: {
1233
+ created_at?: string;
1234
+ id?: string;
1235
+ is_default?: boolean;
1236
+ layer_length_cm?: number;
1237
+ layer_width_cm?: number;
1238
+ layers_per_cart?: number;
1239
+ name?: string;
1240
+ updated_at?: string;
1241
+ };
1242
+ Relationships: [];
1243
+ };
1076
1244
  collections: {
1077
1245
  Row: {
1078
1246
  created_at: string;
@@ -1097,6 +1265,36 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
1097
1265
  };
1098
1266
  Relationships: [];
1099
1267
  };
1268
+ crate_types: {
1269
+ Row: {
1270
+ created_at: string;
1271
+ id: string;
1272
+ length_cm: number;
1273
+ name: string;
1274
+ plants_per_crate: number;
1275
+ updated_at: string;
1276
+ width_cm: number;
1277
+ };
1278
+ Insert: {
1279
+ created_at?: string;
1280
+ id?: string;
1281
+ length_cm: number;
1282
+ name: string;
1283
+ plants_per_crate?: number;
1284
+ updated_at?: string;
1285
+ width_cm: number;
1286
+ };
1287
+ Update: {
1288
+ created_at?: string;
1289
+ id?: string;
1290
+ length_cm?: number;
1291
+ name?: string;
1292
+ plants_per_crate?: number;
1293
+ updated_at?: string;
1294
+ width_cm?: number;
1295
+ };
1296
+ Relationships: [];
1297
+ };
1100
1298
  customer_audit_log: {
1101
1299
  Row: {
1102
1300
  action: string;
@@ -5012,6 +5210,27 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
5012
5210
  referencedColumns: ["id"];
5013
5211
  }];
5014
5212
  };
5213
+ floriday_vbn_required_characteristics: {
5214
+ Row: {
5215
+ required_codes: string[];
5216
+ updated_at: string;
5217
+ updated_by: string | null;
5218
+ vbn_code: string;
5219
+ };
5220
+ Insert: {
5221
+ required_codes?: string[];
5222
+ updated_at?: string;
5223
+ updated_by?: string | null;
5224
+ vbn_code: string;
5225
+ };
5226
+ Update: {
5227
+ required_codes?: string[];
5228
+ updated_at?: string;
5229
+ updated_by?: string | null;
5230
+ vbn_code?: string;
5231
+ };
5232
+ Relationships: [];
5233
+ };
5015
5234
  floriday_warehouses_cache: {
5016
5235
  Row: {
5017
5236
  connection_id: string;
@@ -5714,6 +5933,69 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
5714
5933
  };
5715
5934
  Relationships: [];
5716
5935
  };
5936
+ logistics_capacity_events: {
5937
+ Row: {
5938
+ available_carts: number;
5939
+ created_at: string;
5940
+ id: string;
5941
+ measures: import("../integrations/supabase/types").Json;
5942
+ note: string | null;
5943
+ outcome: string;
5944
+ required_carts: number;
5945
+ reserve_minutes: number;
5946
+ shortage_carts: number;
5947
+ status: string;
5948
+ user_id: string;
5949
+ };
5950
+ Insert: {
5951
+ available_carts?: number;
5952
+ created_at?: string;
5953
+ id?: string;
5954
+ measures?: import("../integrations/supabase/types").Json;
5955
+ note?: string | null;
5956
+ outcome?: string;
5957
+ required_carts?: number;
5958
+ reserve_minutes?: number;
5959
+ shortage_carts?: number;
5960
+ status: string;
5961
+ user_id: string;
5962
+ };
5963
+ Update: {
5964
+ available_carts?: number;
5965
+ created_at?: string;
5966
+ id?: string;
5967
+ measures?: import("../integrations/supabase/types").Json;
5968
+ note?: string | null;
5969
+ outcome?: string;
5970
+ required_carts?: number;
5971
+ reserve_minutes?: number;
5972
+ shortage_carts?: number;
5973
+ status?: string;
5974
+ user_id?: string;
5975
+ };
5976
+ Relationships: [];
5977
+ };
5978
+ logistics_capacity_settings: {
5979
+ Row: {
5980
+ created_at: string;
5981
+ settings: import("../integrations/supabase/types").Json;
5982
+ updated_at: string;
5983
+ user_id: string;
5984
+ };
5985
+ Insert: {
5986
+ created_at?: string;
5987
+ settings?: import("../integrations/supabase/types").Json;
5988
+ updated_at?: string;
5989
+ user_id: string;
5990
+ };
5991
+ Update: {
5992
+ created_at?: string;
5993
+ settings?: import("../integrations/supabase/types").Json;
5994
+ updated_at?: string;
5995
+ user_id?: string;
5996
+ };
5997
+ Relationships: [];
5998
+ };
5717
5999
  logistics_decisions: {
5718
6000
  Row: {
5719
6001
  created_at: string;
@@ -7109,6 +7391,42 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7109
7391
  };
7110
7392
  Relationships: [];
7111
7393
  };
7394
+ order_buffers: {
7395
+ Row: {
7396
+ buffer_key: string;
7397
+ created_at: string;
7398
+ customer_id: string | null;
7399
+ grouping_mode: string;
7400
+ id: string;
7401
+ pickup_date: string | null;
7402
+ pickup_location: string | null;
7403
+ plan_locked_at: string | null;
7404
+ updated_at: string;
7405
+ };
7406
+ Insert: {
7407
+ buffer_key: string;
7408
+ created_at?: string;
7409
+ customer_id?: string | null;
7410
+ grouping_mode: string;
7411
+ id?: string;
7412
+ pickup_date?: string | null;
7413
+ pickup_location?: string | null;
7414
+ plan_locked_at?: string | null;
7415
+ updated_at?: string;
7416
+ };
7417
+ Update: {
7418
+ buffer_key?: string;
7419
+ created_at?: string;
7420
+ customer_id?: string | null;
7421
+ grouping_mode?: string;
7422
+ id?: string;
7423
+ pickup_date?: string | null;
7424
+ pickup_location?: string | null;
7425
+ plan_locked_at?: string | null;
7426
+ updated_at?: string;
7427
+ };
7428
+ Relationships: [];
7429
+ };
7112
7430
  order_cart_items: {
7113
7431
  Row: {
7114
7432
  cart_id: string;
@@ -7175,6 +7493,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7175
7493
  order_carts: {
7176
7494
  Row: {
7177
7495
  algorithm_version: number;
7496
+ buffer_id: string | null;
7178
7497
  cart_number: number;
7179
7498
  created_at: string;
7180
7499
  id: string;
@@ -7182,13 +7501,14 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7182
7501
  is_complete: boolean;
7183
7502
  notes: string | null;
7184
7503
  occupancy_pct: number;
7185
- order_id: string;
7504
+ order_id: string | null;
7186
7505
  source: string;
7187
7506
  total_layers_used: number;
7188
7507
  updated_at: string;
7189
7508
  };
7190
7509
  Insert: {
7191
7510
  algorithm_version?: number;
7511
+ buffer_id?: string | null;
7192
7512
  cart_number: number;
7193
7513
  created_at?: string;
7194
7514
  id?: string;
@@ -7196,13 +7516,14 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7196
7516
  is_complete?: boolean;
7197
7517
  notes?: string | null;
7198
7518
  occupancy_pct?: number;
7199
- order_id: string;
7519
+ order_id?: string | null;
7200
7520
  source?: string;
7201
7521
  total_layers_used?: number;
7202
7522
  updated_at?: string;
7203
7523
  };
7204
7524
  Update: {
7205
7525
  algorithm_version?: number;
7526
+ buffer_id?: string | null;
7206
7527
  cart_number?: number;
7207
7528
  created_at?: string;
7208
7529
  id?: string;
@@ -7210,12 +7531,18 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7210
7531
  is_complete?: boolean;
7211
7532
  notes?: string | null;
7212
7533
  occupancy_pct?: number;
7213
- order_id?: string;
7534
+ order_id?: string | null;
7214
7535
  source?: string;
7215
7536
  total_layers_used?: number;
7216
7537
  updated_at?: string;
7217
7538
  };
7218
7539
  Relationships: [{
7540
+ foreignKeyName: "order_carts_buffer_id_fkey";
7541
+ columns: ["buffer_id"];
7542
+ isOneToOne: false;
7543
+ referencedRelation: "order_buffers";
7544
+ referencedColumns: ["id"];
7545
+ }, {
7219
7546
  foreignKeyName: "order_carts_order_id_fkey";
7220
7547
  columns: ["order_id"];
7221
7548
  isOneToOne: false;
@@ -7453,12 +7780,14 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7453
7780
  };
7454
7781
  orders: {
7455
7782
  Row: {
7783
+ buffer_id: string | null;
7456
7784
  created_at: string;
7457
7785
  custom_fields: import("../integrations/supabase/types").Json;
7458
7786
  customer_id: string | null;
7459
7787
  customer_name: string;
7460
7788
  deleted_at: string | null;
7461
7789
  delivery_date: string | null;
7790
+ floriday_sales_order_id: string | null;
7462
7791
  id: string;
7463
7792
  is_reservation: boolean;
7464
7793
  notes: string | null;
@@ -7472,12 +7801,14 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7472
7801
  updated_at: string;
7473
7802
  };
7474
7803
  Insert: {
7804
+ buffer_id?: string | null;
7475
7805
  created_at?: string;
7476
7806
  custom_fields?: import("../integrations/supabase/types").Json;
7477
7807
  customer_id?: string | null;
7478
7808
  customer_name?: string;
7479
7809
  deleted_at?: string | null;
7480
7810
  delivery_date?: string | null;
7811
+ floriday_sales_order_id?: string | null;
7481
7812
  id?: string;
7482
7813
  is_reservation?: boolean;
7483
7814
  notes?: string | null;
@@ -7491,12 +7822,14 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7491
7822
  updated_at?: string;
7492
7823
  };
7493
7824
  Update: {
7825
+ buffer_id?: string | null;
7494
7826
  created_at?: string;
7495
7827
  custom_fields?: import("../integrations/supabase/types").Json;
7496
7828
  customer_id?: string | null;
7497
7829
  customer_name?: string;
7498
7830
  deleted_at?: string | null;
7499
7831
  delivery_date?: string | null;
7832
+ floriday_sales_order_id?: string | null;
7500
7833
  id?: string;
7501
7834
  is_reservation?: boolean;
7502
7835
  notes?: string | null;
@@ -7510,6 +7843,12 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7510
7843
  updated_at?: string;
7511
7844
  };
7512
7845
  Relationships: [{
7846
+ foreignKeyName: "orders_buffer_id_fkey";
7847
+ columns: ["buffer_id"];
7848
+ isOneToOne: false;
7849
+ referencedRelation: "order_buffers";
7850
+ referencedColumns: ["id"];
7851
+ }, {
7513
7852
  foreignKeyName: "orders_customer_id_fkey";
7514
7853
  columns: ["customer_id"];
7515
7854
  isOneToOne: false;
@@ -7647,6 +7986,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7647
7986
  created_at: string;
7648
7987
  id: string;
7649
7988
  notes: string | null;
7989
+ packing_configuration_id: string | null;
7650
7990
  parent_product_id: string | null;
7651
7991
  parent_trade_item_floriday_id: string | null;
7652
7992
  quantity: number;
@@ -7661,6 +8001,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7661
8001
  created_at?: string;
7662
8002
  id?: string;
7663
8003
  notes?: string | null;
8004
+ packing_configuration_id?: string | null;
7664
8005
  parent_product_id?: string | null;
7665
8006
  parent_trade_item_floriday_id?: string | null;
7666
8007
  quantity?: number;
@@ -7675,6 +8016,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7675
8016
  created_at?: string;
7676
8017
  id?: string;
7677
8018
  notes?: string | null;
8019
+ packing_configuration_id?: string | null;
7678
8020
  parent_product_id?: string | null;
7679
8021
  parent_trade_item_floriday_id?: string | null;
7680
8022
  quantity?: number;
@@ -7876,11 +8218,13 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7876
8218
  created_at: string;
7877
8219
  id: string;
7878
8220
  is_package: boolean;
8221
+ label: string | null;
7879
8222
  layers_per_load_carrier: number | null;
7880
8223
  load_carrier: string | null;
7881
8224
  package_id: string | null;
7882
8225
  package_label: string | null;
7883
8226
  packages_per_layer: number | null;
8227
+ packing_configuration_id: string;
7884
8228
  product_id: string | null;
7885
8229
  tenant_id: string;
7886
8230
  trade_item_floriday_id: string | null;
@@ -7891,11 +8235,13 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7891
8235
  created_at?: string;
7892
8236
  id?: string;
7893
8237
  is_package?: boolean;
8238
+ label?: string | null;
7894
8239
  layers_per_load_carrier?: number | null;
7895
8240
  load_carrier?: string | null;
7896
8241
  package_id?: string | null;
7897
8242
  package_label?: string | null;
7898
8243
  packages_per_layer?: number | null;
8244
+ packing_configuration_id?: string;
7899
8245
  product_id?: string | null;
7900
8246
  tenant_id: string;
7901
8247
  trade_item_floriday_id?: string | null;
@@ -7906,11 +8252,13 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7906
8252
  created_at?: string;
7907
8253
  id?: string;
7908
8254
  is_package?: boolean;
8255
+ label?: string | null;
7909
8256
  layers_per_load_carrier?: number | null;
7910
8257
  load_carrier?: string | null;
7911
8258
  package_id?: string | null;
7912
8259
  package_label?: string | null;
7913
8260
  packages_per_layer?: number | null;
8261
+ packing_configuration_id?: string;
7914
8262
  product_id?: string | null;
7915
8263
  tenant_id?: string;
7916
8264
  trade_item_floriday_id?: string | null;
@@ -7991,6 +8339,8 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
7991
8339
  trade_item_key: string | null;
7992
8340
  unit: string;
7993
8341
  updated_at: string;
8342
+ vat_code: string | null;
8343
+ vat_rate: number | null;
7994
8344
  weight: string | null;
7995
8345
  };
7996
8346
  Insert: {
@@ -8019,6 +8369,8 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
8019
8369
  trade_item_key?: string | null;
8020
8370
  unit?: string;
8021
8371
  updated_at?: string;
8372
+ vat_code?: string | null;
8373
+ vat_rate?: number | null;
8022
8374
  weight?: string | null;
8023
8375
  };
8024
8376
  Update: {
@@ -8047,6 +8399,8 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
8047
8399
  trade_item_key?: string | null;
8048
8400
  unit?: string;
8049
8401
  updated_at?: string;
8402
+ vat_code?: string | null;
8403
+ vat_rate?: number | null;
8050
8404
  weight?: string | null;
8051
8405
  };
8052
8406
  Relationships: [];
@@ -11122,6 +11476,12 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
11122
11476
  processed_items: number;
11123
11477
  }[];
11124
11478
  };
11479
+ calculate_layer_stock: {
11480
+ Args: {
11481
+ p_product_id: string;
11482
+ };
11483
+ Returns: number;
11484
+ };
11125
11485
  call_exact_route: {
11126
11486
  Args: {
11127
11487
  path: string;
@@ -11491,6 +11851,12 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
11491
11851
  };
11492
11852
  Returns: string;
11493
11853
  };
11854
+ get_inventory_stock_for_key: {
11855
+ Args: {
11856
+ p_key: string;
11857
+ };
11858
+ Returns: number;
11859
+ };
11494
11860
  get_offer_by_link_code: {
11495
11861
  Args: {
11496
11862
  p_code: string;
@@ -11521,6 +11887,12 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
11521
11887
  };
11522
11888
  Returns: string;
11523
11889
  };
11890
+ get_product_group_available_stock: {
11891
+ Args: {
11892
+ p_group_id: string;
11893
+ };
11894
+ Returns: number;
11895
+ };
11524
11896
  get_room_busy_windows: {
11525
11897
  Args: {
11526
11898
  p_from: string;
@@ -12087,12 +12459,22 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
12087
12459
  };
12088
12460
  Returns: string[];
12089
12461
  };
12462
+ sync_all_layer_stocks: {
12463
+ Args: never;
12464
+ Returns: undefined;
12465
+ };
12090
12466
  sync_cached_packing_from_product: {
12091
12467
  Args: {
12092
12468
  p_product_id: string;
12093
12469
  };
12094
12470
  Returns: undefined;
12095
12471
  };
12472
+ sync_layer_stock: {
12473
+ Args: {
12474
+ p_product_id: string;
12475
+ };
12476
+ Returns: undefined;
12477
+ };
12096
12478
  sync_order_cart_item_packing_from_product: {
12097
12479
  Args: {
12098
12480
  p_product_id: string;
@@ -13203,6 +13585,141 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
13203
13585
  };
13204
13586
  Relationships: [];
13205
13587
  };
13588
+ cart_planning_pick_times: {
13589
+ Row: {
13590
+ created_at: string;
13591
+ id: string;
13592
+ pot_size: string;
13593
+ seconds_per_cart: number;
13594
+ updated_at: string;
13595
+ };
13596
+ Insert: {
13597
+ created_at?: string;
13598
+ id?: string;
13599
+ pot_size: string;
13600
+ seconds_per_cart: number;
13601
+ updated_at?: string;
13602
+ };
13603
+ Update: {
13604
+ created_at?: string;
13605
+ id?: string;
13606
+ pot_size?: string;
13607
+ seconds_per_cart?: number;
13608
+ updated_at?: string;
13609
+ };
13610
+ Relationships: [];
13611
+ };
13612
+ cart_planning_product_overrides: {
13613
+ Row: {
13614
+ created_at: string;
13615
+ id: string;
13616
+ max_party_share_per_layer_pct_override: number | null;
13617
+ never_mix: boolean;
13618
+ notes: string | null;
13619
+ product_id: string;
13620
+ updated_at: string;
13621
+ };
13622
+ Insert: {
13623
+ created_at?: string;
13624
+ id?: string;
13625
+ max_party_share_per_layer_pct_override?: number | null;
13626
+ never_mix?: boolean;
13627
+ notes?: string | null;
13628
+ product_id: string;
13629
+ updated_at?: string;
13630
+ };
13631
+ Update: {
13632
+ created_at?: string;
13633
+ id?: string;
13634
+ max_party_share_per_layer_pct_override?: number | null;
13635
+ never_mix?: boolean;
13636
+ notes?: string | null;
13637
+ product_id?: string;
13638
+ updated_at?: string;
13639
+ };
13640
+ Relationships: [{
13641
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
13642
+ columns: ["product_id"];
13643
+ isOneToOne: true;
13644
+ referencedRelation: "products";
13645
+ referencedColumns: ["id"];
13646
+ }];
13647
+ };
13648
+ cart_planning_settings: {
13649
+ Row: {
13650
+ allow_editing_after_pickstation_send: boolean;
13651
+ buffer_grouping_mode: string;
13652
+ combine_floriday_orders: boolean;
13653
+ combine_floriday_orders_window: string;
13654
+ combine_orders_scope: string;
13655
+ default_workers: number;
13656
+ id: number;
13657
+ max_beladingen_per_layer: number;
13658
+ max_customers_per_cart: number;
13659
+ max_one_customer_per_layer: boolean;
13660
+ max_party_share_per_layer_pct: number;
13661
+ optimization_strategy: string;
13662
+ own_cart_from_layers: number;
13663
+ pick_time_mode: string;
13664
+ plants_per_day: number;
13665
+ plants_per_hour: number;
13666
+ require_same_carrier: boolean;
13667
+ require_same_crate_type: boolean;
13668
+ require_same_delivery_date: boolean;
13669
+ require_same_delivery_location: boolean;
13670
+ updated_at: string;
13671
+ updated_by: string | null;
13672
+ };
13673
+ Insert: {
13674
+ allow_editing_after_pickstation_send?: boolean;
13675
+ buffer_grouping_mode?: string;
13676
+ combine_floriday_orders?: boolean;
13677
+ combine_floriday_orders_window?: string;
13678
+ combine_orders_scope?: string;
13679
+ default_workers?: number;
13680
+ id?: number;
13681
+ max_beladingen_per_layer?: number;
13682
+ max_customers_per_cart?: number;
13683
+ max_one_customer_per_layer?: boolean;
13684
+ max_party_share_per_layer_pct?: number;
13685
+ optimization_strategy?: string;
13686
+ own_cart_from_layers?: number;
13687
+ pick_time_mode?: string;
13688
+ plants_per_day?: number;
13689
+ plants_per_hour?: number;
13690
+ require_same_carrier?: boolean;
13691
+ require_same_crate_type?: boolean;
13692
+ require_same_delivery_date?: boolean;
13693
+ require_same_delivery_location?: boolean;
13694
+ updated_at?: string;
13695
+ updated_by?: string | null;
13696
+ };
13697
+ Update: {
13698
+ allow_editing_after_pickstation_send?: boolean;
13699
+ buffer_grouping_mode?: string;
13700
+ combine_floriday_orders?: boolean;
13701
+ combine_floriday_orders_window?: string;
13702
+ combine_orders_scope?: string;
13703
+ default_workers?: number;
13704
+ id?: number;
13705
+ max_beladingen_per_layer?: number;
13706
+ max_customers_per_cart?: number;
13707
+ max_one_customer_per_layer?: boolean;
13708
+ max_party_share_per_layer_pct?: number;
13709
+ optimization_strategy?: string;
13710
+ own_cart_from_layers?: number;
13711
+ pick_time_mode?: string;
13712
+ plants_per_day?: number;
13713
+ plants_per_hour?: number;
13714
+ require_same_carrier?: boolean;
13715
+ require_same_crate_type?: boolean;
13716
+ require_same_delivery_date?: boolean;
13717
+ require_same_delivery_location?: boolean;
13718
+ updated_at?: string;
13719
+ updated_by?: string | null;
13720
+ };
13721
+ Relationships: [];
13722
+ };
13206
13723
  cart_replan_queue: {
13207
13724
  Row: {
13208
13725
  attempts: number;
@@ -13233,6 +13750,39 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
13233
13750
  referencedColumns: ["id"];
13234
13751
  }];
13235
13752
  };
13753
+ cart_types: {
13754
+ Row: {
13755
+ created_at: string;
13756
+ id: string;
13757
+ is_default: boolean;
13758
+ layer_length_cm: number;
13759
+ layer_width_cm: number;
13760
+ layers_per_cart: number;
13761
+ name: string;
13762
+ updated_at: string;
13763
+ };
13764
+ Insert: {
13765
+ created_at?: string;
13766
+ id?: string;
13767
+ is_default?: boolean;
13768
+ layer_length_cm: number;
13769
+ layer_width_cm: number;
13770
+ layers_per_cart?: number;
13771
+ name: string;
13772
+ updated_at?: string;
13773
+ };
13774
+ Update: {
13775
+ created_at?: string;
13776
+ id?: string;
13777
+ is_default?: boolean;
13778
+ layer_length_cm?: number;
13779
+ layer_width_cm?: number;
13780
+ layers_per_cart?: number;
13781
+ name?: string;
13782
+ updated_at?: string;
13783
+ };
13784
+ Relationships: [];
13785
+ };
13236
13786
  collections: {
13237
13787
  Row: {
13238
13788
  created_at: string;
@@ -13257,6 +13807,36 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
13257
13807
  };
13258
13808
  Relationships: [];
13259
13809
  };
13810
+ crate_types: {
13811
+ Row: {
13812
+ created_at: string;
13813
+ id: string;
13814
+ length_cm: number;
13815
+ name: string;
13816
+ plants_per_crate: number;
13817
+ updated_at: string;
13818
+ width_cm: number;
13819
+ };
13820
+ Insert: {
13821
+ created_at?: string;
13822
+ id?: string;
13823
+ length_cm: number;
13824
+ name: string;
13825
+ plants_per_crate?: number;
13826
+ updated_at?: string;
13827
+ width_cm: number;
13828
+ };
13829
+ Update: {
13830
+ created_at?: string;
13831
+ id?: string;
13832
+ length_cm?: number;
13833
+ name?: string;
13834
+ plants_per_crate?: number;
13835
+ updated_at?: string;
13836
+ width_cm?: number;
13837
+ };
13838
+ Relationships: [];
13839
+ };
13260
13840
  customer_audit_log: {
13261
13841
  Row: {
13262
13842
  action: string;
@@ -17172,6 +17752,27 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
17172
17752
  referencedColumns: ["id"];
17173
17753
  }];
17174
17754
  };
17755
+ floriday_vbn_required_characteristics: {
17756
+ Row: {
17757
+ required_codes: string[];
17758
+ updated_at: string;
17759
+ updated_by: string | null;
17760
+ vbn_code: string;
17761
+ };
17762
+ Insert: {
17763
+ required_codes?: string[];
17764
+ updated_at?: string;
17765
+ updated_by?: string | null;
17766
+ vbn_code: string;
17767
+ };
17768
+ Update: {
17769
+ required_codes?: string[];
17770
+ updated_at?: string;
17771
+ updated_by?: string | null;
17772
+ vbn_code?: string;
17773
+ };
17774
+ Relationships: [];
17775
+ };
17175
17776
  floriday_warehouses_cache: {
17176
17777
  Row: {
17177
17778
  connection_id: string;
@@ -17874,6 +18475,69 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
17874
18475
  };
17875
18476
  Relationships: [];
17876
18477
  };
18478
+ logistics_capacity_events: {
18479
+ Row: {
18480
+ available_carts: number;
18481
+ created_at: string;
18482
+ id: string;
18483
+ measures: import("../integrations/supabase/types").Json;
18484
+ note: string | null;
18485
+ outcome: string;
18486
+ required_carts: number;
18487
+ reserve_minutes: number;
18488
+ shortage_carts: number;
18489
+ status: string;
18490
+ user_id: string;
18491
+ };
18492
+ Insert: {
18493
+ available_carts?: number;
18494
+ created_at?: string;
18495
+ id?: string;
18496
+ measures?: import("../integrations/supabase/types").Json;
18497
+ note?: string | null;
18498
+ outcome?: string;
18499
+ required_carts?: number;
18500
+ reserve_minutes?: number;
18501
+ shortage_carts?: number;
18502
+ status: string;
18503
+ user_id: string;
18504
+ };
18505
+ Update: {
18506
+ available_carts?: number;
18507
+ created_at?: string;
18508
+ id?: string;
18509
+ measures?: import("../integrations/supabase/types").Json;
18510
+ note?: string | null;
18511
+ outcome?: string;
18512
+ required_carts?: number;
18513
+ reserve_minutes?: number;
18514
+ shortage_carts?: number;
18515
+ status?: string;
18516
+ user_id?: string;
18517
+ };
18518
+ Relationships: [];
18519
+ };
18520
+ logistics_capacity_settings: {
18521
+ Row: {
18522
+ created_at: string;
18523
+ settings: import("../integrations/supabase/types").Json;
18524
+ updated_at: string;
18525
+ user_id: string;
18526
+ };
18527
+ Insert: {
18528
+ created_at?: string;
18529
+ settings?: import("../integrations/supabase/types").Json;
18530
+ updated_at?: string;
18531
+ user_id: string;
18532
+ };
18533
+ Update: {
18534
+ created_at?: string;
18535
+ settings?: import("../integrations/supabase/types").Json;
18536
+ updated_at?: string;
18537
+ user_id?: string;
18538
+ };
18539
+ Relationships: [];
18540
+ };
17877
18541
  logistics_decisions: {
17878
18542
  Row: {
17879
18543
  created_at: string;
@@ -19269,6 +19933,42 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19269
19933
  };
19270
19934
  Relationships: [];
19271
19935
  };
19936
+ order_buffers: {
19937
+ Row: {
19938
+ buffer_key: string;
19939
+ created_at: string;
19940
+ customer_id: string | null;
19941
+ grouping_mode: string;
19942
+ id: string;
19943
+ pickup_date: string | null;
19944
+ pickup_location: string | null;
19945
+ plan_locked_at: string | null;
19946
+ updated_at: string;
19947
+ };
19948
+ Insert: {
19949
+ buffer_key: string;
19950
+ created_at?: string;
19951
+ customer_id?: string | null;
19952
+ grouping_mode: string;
19953
+ id?: string;
19954
+ pickup_date?: string | null;
19955
+ pickup_location?: string | null;
19956
+ plan_locked_at?: string | null;
19957
+ updated_at?: string;
19958
+ };
19959
+ Update: {
19960
+ buffer_key?: string;
19961
+ created_at?: string;
19962
+ customer_id?: string | null;
19963
+ grouping_mode?: string;
19964
+ id?: string;
19965
+ pickup_date?: string | null;
19966
+ pickup_location?: string | null;
19967
+ plan_locked_at?: string | null;
19968
+ updated_at?: string;
19969
+ };
19970
+ Relationships: [];
19971
+ };
19272
19972
  order_cart_items: {
19273
19973
  Row: {
19274
19974
  cart_id: string;
@@ -19335,6 +20035,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19335
20035
  order_carts: {
19336
20036
  Row: {
19337
20037
  algorithm_version: number;
20038
+ buffer_id: string | null;
19338
20039
  cart_number: number;
19339
20040
  created_at: string;
19340
20041
  id: string;
@@ -19342,13 +20043,14 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19342
20043
  is_complete: boolean;
19343
20044
  notes: string | null;
19344
20045
  occupancy_pct: number;
19345
- order_id: string;
20046
+ order_id: string | null;
19346
20047
  source: string;
19347
20048
  total_layers_used: number;
19348
20049
  updated_at: string;
19349
20050
  };
19350
20051
  Insert: {
19351
20052
  algorithm_version?: number;
20053
+ buffer_id?: string | null;
19352
20054
  cart_number: number;
19353
20055
  created_at?: string;
19354
20056
  id?: string;
@@ -19356,13 +20058,14 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19356
20058
  is_complete?: boolean;
19357
20059
  notes?: string | null;
19358
20060
  occupancy_pct?: number;
19359
- order_id: string;
20061
+ order_id?: string | null;
19360
20062
  source?: string;
19361
20063
  total_layers_used?: number;
19362
20064
  updated_at?: string;
19363
20065
  };
19364
20066
  Update: {
19365
20067
  algorithm_version?: number;
20068
+ buffer_id?: string | null;
19366
20069
  cart_number?: number;
19367
20070
  created_at?: string;
19368
20071
  id?: string;
@@ -19370,12 +20073,18 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19370
20073
  is_complete?: boolean;
19371
20074
  notes?: string | null;
19372
20075
  occupancy_pct?: number;
19373
- order_id?: string;
20076
+ order_id?: string | null;
19374
20077
  source?: string;
19375
20078
  total_layers_used?: number;
19376
20079
  updated_at?: string;
19377
20080
  };
19378
20081
  Relationships: [{
20082
+ foreignKeyName: "order_carts_buffer_id_fkey";
20083
+ columns: ["buffer_id"];
20084
+ isOneToOne: false;
20085
+ referencedRelation: "order_buffers";
20086
+ referencedColumns: ["id"];
20087
+ }, {
19379
20088
  foreignKeyName: "order_carts_order_id_fkey";
19380
20089
  columns: ["order_id"];
19381
20090
  isOneToOne: false;
@@ -19613,12 +20322,14 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19613
20322
  };
19614
20323
  orders: {
19615
20324
  Row: {
20325
+ buffer_id: string | null;
19616
20326
  created_at: string;
19617
20327
  custom_fields: import("../integrations/supabase/types").Json;
19618
20328
  customer_id: string | null;
19619
20329
  customer_name: string;
19620
20330
  deleted_at: string | null;
19621
20331
  delivery_date: string | null;
20332
+ floriday_sales_order_id: string | null;
19622
20333
  id: string;
19623
20334
  is_reservation: boolean;
19624
20335
  notes: string | null;
@@ -19632,12 +20343,14 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19632
20343
  updated_at: string;
19633
20344
  };
19634
20345
  Insert: {
20346
+ buffer_id?: string | null;
19635
20347
  created_at?: string;
19636
20348
  custom_fields?: import("../integrations/supabase/types").Json;
19637
20349
  customer_id?: string | null;
19638
20350
  customer_name?: string;
19639
20351
  deleted_at?: string | null;
19640
20352
  delivery_date?: string | null;
20353
+ floriday_sales_order_id?: string | null;
19641
20354
  id?: string;
19642
20355
  is_reservation?: boolean;
19643
20356
  notes?: string | null;
@@ -19651,12 +20364,14 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19651
20364
  updated_at?: string;
19652
20365
  };
19653
20366
  Update: {
20367
+ buffer_id?: string | null;
19654
20368
  created_at?: string;
19655
20369
  custom_fields?: import("../integrations/supabase/types").Json;
19656
20370
  customer_id?: string | null;
19657
20371
  customer_name?: string;
19658
20372
  deleted_at?: string | null;
19659
20373
  delivery_date?: string | null;
20374
+ floriday_sales_order_id?: string | null;
19660
20375
  id?: string;
19661
20376
  is_reservation?: boolean;
19662
20377
  notes?: string | null;
@@ -19670,6 +20385,12 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19670
20385
  updated_at?: string;
19671
20386
  };
19672
20387
  Relationships: [{
20388
+ foreignKeyName: "orders_buffer_id_fkey";
20389
+ columns: ["buffer_id"];
20390
+ isOneToOne: false;
20391
+ referencedRelation: "order_buffers";
20392
+ referencedColumns: ["id"];
20393
+ }, {
19673
20394
  foreignKeyName: "orders_customer_id_fkey";
19674
20395
  columns: ["customer_id"];
19675
20396
  isOneToOne: false;
@@ -19807,6 +20528,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19807
20528
  created_at: string;
19808
20529
  id: string;
19809
20530
  notes: string | null;
20531
+ packing_configuration_id: string | null;
19810
20532
  parent_product_id: string | null;
19811
20533
  parent_trade_item_floriday_id: string | null;
19812
20534
  quantity: number;
@@ -19821,6 +20543,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19821
20543
  created_at?: string;
19822
20544
  id?: string;
19823
20545
  notes?: string | null;
20546
+ packing_configuration_id?: string | null;
19824
20547
  parent_product_id?: string | null;
19825
20548
  parent_trade_item_floriday_id?: string | null;
19826
20549
  quantity?: number;
@@ -19835,6 +20558,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19835
20558
  created_at?: string;
19836
20559
  id?: string;
19837
20560
  notes?: string | null;
20561
+ packing_configuration_id?: string | null;
19838
20562
  parent_product_id?: string | null;
19839
20563
  parent_trade_item_floriday_id?: string | null;
19840
20564
  quantity?: number;
@@ -20036,11 +20760,13 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
20036
20760
  created_at: string;
20037
20761
  id: string;
20038
20762
  is_package: boolean;
20763
+ label: string | null;
20039
20764
  layers_per_load_carrier: number | null;
20040
20765
  load_carrier: string | null;
20041
20766
  package_id: string | null;
20042
20767
  package_label: string | null;
20043
20768
  packages_per_layer: number | null;
20769
+ packing_configuration_id: string;
20044
20770
  product_id: string | null;
20045
20771
  tenant_id: string;
20046
20772
  trade_item_floriday_id: string | null;
@@ -20051,11 +20777,13 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
20051
20777
  created_at?: string;
20052
20778
  id?: string;
20053
20779
  is_package?: boolean;
20780
+ label?: string | null;
20054
20781
  layers_per_load_carrier?: number | null;
20055
20782
  load_carrier?: string | null;
20056
20783
  package_id?: string | null;
20057
20784
  package_label?: string | null;
20058
20785
  packages_per_layer?: number | null;
20786
+ packing_configuration_id?: string;
20059
20787
  product_id?: string | null;
20060
20788
  tenant_id: string;
20061
20789
  trade_item_floriday_id?: string | null;
@@ -20066,11 +20794,13 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
20066
20794
  created_at?: string;
20067
20795
  id?: string;
20068
20796
  is_package?: boolean;
20797
+ label?: string | null;
20069
20798
  layers_per_load_carrier?: number | null;
20070
20799
  load_carrier?: string | null;
20071
20800
  package_id?: string | null;
20072
20801
  package_label?: string | null;
20073
20802
  packages_per_layer?: number | null;
20803
+ packing_configuration_id?: string;
20074
20804
  product_id?: string | null;
20075
20805
  tenant_id?: string;
20076
20806
  trade_item_floriday_id?: string | null;
@@ -20151,6 +20881,8 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
20151
20881
  trade_item_key: string | null;
20152
20882
  unit: string;
20153
20883
  updated_at: string;
20884
+ vat_code: string | null;
20885
+ vat_rate: number | null;
20154
20886
  weight: string | null;
20155
20887
  };
20156
20888
  Insert: {
@@ -20179,6 +20911,8 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
20179
20911
  trade_item_key?: string | null;
20180
20912
  unit?: string;
20181
20913
  updated_at?: string;
20914
+ vat_code?: string | null;
20915
+ vat_rate?: number | null;
20182
20916
  weight?: string | null;
20183
20917
  };
20184
20918
  Update: {
@@ -20207,6 +20941,8 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
20207
20941
  trade_item_key?: string | null;
20208
20942
  unit?: string;
20209
20943
  updated_at?: string;
20944
+ vat_code?: string | null;
20945
+ vat_rate?: number | null;
20210
20946
  weight?: string | null;
20211
20947
  };
20212
20948
  Relationships: [];
@@ -23282,6 +24018,12 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
23282
24018
  processed_items: number;
23283
24019
  }[];
23284
24020
  };
24021
+ calculate_layer_stock: {
24022
+ Args: {
24023
+ p_product_id: string;
24024
+ };
24025
+ Returns: number;
24026
+ };
23285
24027
  call_exact_route: {
23286
24028
  Args: {
23287
24029
  path: string;
@@ -23651,6 +24393,12 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
23651
24393
  };
23652
24394
  Returns: string;
23653
24395
  };
24396
+ get_inventory_stock_for_key: {
24397
+ Args: {
24398
+ p_key: string;
24399
+ };
24400
+ Returns: number;
24401
+ };
23654
24402
  get_offer_by_link_code: {
23655
24403
  Args: {
23656
24404
  p_code: string;
@@ -23681,6 +24429,12 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
23681
24429
  };
23682
24430
  Returns: string;
23683
24431
  };
24432
+ get_product_group_available_stock: {
24433
+ Args: {
24434
+ p_group_id: string;
24435
+ };
24436
+ Returns: number;
24437
+ };
23684
24438
  get_room_busy_windows: {
23685
24439
  Args: {
23686
24440
  p_from: string;
@@ -24247,12 +25001,22 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
24247
25001
  };
24248
25002
  Returns: string[];
24249
25003
  };
25004
+ sync_all_layer_stocks: {
25005
+ Args: never;
25006
+ Returns: undefined;
25007
+ };
24250
25008
  sync_cached_packing_from_product: {
24251
25009
  Args: {
24252
25010
  p_product_id: string;
24253
25011
  };
24254
25012
  Returns: undefined;
24255
25013
  };
25014
+ sync_layer_stock: {
25015
+ Args: {
25016
+ p_product_id: string;
25017
+ };
25018
+ Returns: undefined;
25019
+ };
24256
25020
  sync_order_cart_item_packing_from_product: {
24257
25021
  Args: {
24258
25022
  p_product_id: string;
@@ -25361,6 +26125,141 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
25361
26125
  };
25362
26126
  Relationships: [];
25363
26127
  };
26128
+ cart_planning_pick_times: {
26129
+ Row: {
26130
+ created_at: string;
26131
+ id: string;
26132
+ pot_size: string;
26133
+ seconds_per_cart: number;
26134
+ updated_at: string;
26135
+ };
26136
+ Insert: {
26137
+ created_at?: string;
26138
+ id?: string;
26139
+ pot_size: string;
26140
+ seconds_per_cart: number;
26141
+ updated_at?: string;
26142
+ };
26143
+ Update: {
26144
+ created_at?: string;
26145
+ id?: string;
26146
+ pot_size?: string;
26147
+ seconds_per_cart?: number;
26148
+ updated_at?: string;
26149
+ };
26150
+ Relationships: [];
26151
+ };
26152
+ cart_planning_product_overrides: {
26153
+ Row: {
26154
+ created_at: string;
26155
+ id: string;
26156
+ max_party_share_per_layer_pct_override: number | null;
26157
+ never_mix: boolean;
26158
+ notes: string | null;
26159
+ product_id: string;
26160
+ updated_at: string;
26161
+ };
26162
+ Insert: {
26163
+ created_at?: string;
26164
+ id?: string;
26165
+ max_party_share_per_layer_pct_override?: number | null;
26166
+ never_mix?: boolean;
26167
+ notes?: string | null;
26168
+ product_id: string;
26169
+ updated_at?: string;
26170
+ };
26171
+ Update: {
26172
+ created_at?: string;
26173
+ id?: string;
26174
+ max_party_share_per_layer_pct_override?: number | null;
26175
+ never_mix?: boolean;
26176
+ notes?: string | null;
26177
+ product_id?: string;
26178
+ updated_at?: string;
26179
+ };
26180
+ Relationships: [{
26181
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
26182
+ columns: ["product_id"];
26183
+ isOneToOne: true;
26184
+ referencedRelation: "products";
26185
+ referencedColumns: ["id"];
26186
+ }];
26187
+ };
26188
+ cart_planning_settings: {
26189
+ Row: {
26190
+ allow_editing_after_pickstation_send: boolean;
26191
+ buffer_grouping_mode: string;
26192
+ combine_floriday_orders: boolean;
26193
+ combine_floriday_orders_window: string;
26194
+ combine_orders_scope: string;
26195
+ default_workers: number;
26196
+ id: number;
26197
+ max_beladingen_per_layer: number;
26198
+ max_customers_per_cart: number;
26199
+ max_one_customer_per_layer: boolean;
26200
+ max_party_share_per_layer_pct: number;
26201
+ optimization_strategy: string;
26202
+ own_cart_from_layers: number;
26203
+ pick_time_mode: string;
26204
+ plants_per_day: number;
26205
+ plants_per_hour: number;
26206
+ require_same_carrier: boolean;
26207
+ require_same_crate_type: boolean;
26208
+ require_same_delivery_date: boolean;
26209
+ require_same_delivery_location: boolean;
26210
+ updated_at: string;
26211
+ updated_by: string | null;
26212
+ };
26213
+ Insert: {
26214
+ allow_editing_after_pickstation_send?: boolean;
26215
+ buffer_grouping_mode?: string;
26216
+ combine_floriday_orders?: boolean;
26217
+ combine_floriday_orders_window?: string;
26218
+ combine_orders_scope?: string;
26219
+ default_workers?: number;
26220
+ id?: number;
26221
+ max_beladingen_per_layer?: number;
26222
+ max_customers_per_cart?: number;
26223
+ max_one_customer_per_layer?: boolean;
26224
+ max_party_share_per_layer_pct?: number;
26225
+ optimization_strategy?: string;
26226
+ own_cart_from_layers?: number;
26227
+ pick_time_mode?: string;
26228
+ plants_per_day?: number;
26229
+ plants_per_hour?: number;
26230
+ require_same_carrier?: boolean;
26231
+ require_same_crate_type?: boolean;
26232
+ require_same_delivery_date?: boolean;
26233
+ require_same_delivery_location?: boolean;
26234
+ updated_at?: string;
26235
+ updated_by?: string | null;
26236
+ };
26237
+ Update: {
26238
+ allow_editing_after_pickstation_send?: boolean;
26239
+ buffer_grouping_mode?: string;
26240
+ combine_floriday_orders?: boolean;
26241
+ combine_floriday_orders_window?: string;
26242
+ combine_orders_scope?: string;
26243
+ default_workers?: number;
26244
+ id?: number;
26245
+ max_beladingen_per_layer?: number;
26246
+ max_customers_per_cart?: number;
26247
+ max_one_customer_per_layer?: boolean;
26248
+ max_party_share_per_layer_pct?: number;
26249
+ optimization_strategy?: string;
26250
+ own_cart_from_layers?: number;
26251
+ pick_time_mode?: string;
26252
+ plants_per_day?: number;
26253
+ plants_per_hour?: number;
26254
+ require_same_carrier?: boolean;
26255
+ require_same_crate_type?: boolean;
26256
+ require_same_delivery_date?: boolean;
26257
+ require_same_delivery_location?: boolean;
26258
+ updated_at?: string;
26259
+ updated_by?: string | null;
26260
+ };
26261
+ Relationships: [];
26262
+ };
25364
26263
  cart_replan_queue: {
25365
26264
  Row: {
25366
26265
  attempts: number;
@@ -25391,6 +26290,39 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
25391
26290
  referencedColumns: ["id"];
25392
26291
  }];
25393
26292
  };
26293
+ cart_types: {
26294
+ Row: {
26295
+ created_at: string;
26296
+ id: string;
26297
+ is_default: boolean;
26298
+ layer_length_cm: number;
26299
+ layer_width_cm: number;
26300
+ layers_per_cart: number;
26301
+ name: string;
26302
+ updated_at: string;
26303
+ };
26304
+ Insert: {
26305
+ created_at?: string;
26306
+ id?: string;
26307
+ is_default?: boolean;
26308
+ layer_length_cm: number;
26309
+ layer_width_cm: number;
26310
+ layers_per_cart?: number;
26311
+ name: string;
26312
+ updated_at?: string;
26313
+ };
26314
+ Update: {
26315
+ created_at?: string;
26316
+ id?: string;
26317
+ is_default?: boolean;
26318
+ layer_length_cm?: number;
26319
+ layer_width_cm?: number;
26320
+ layers_per_cart?: number;
26321
+ name?: string;
26322
+ updated_at?: string;
26323
+ };
26324
+ Relationships: [];
26325
+ };
25394
26326
  collections: {
25395
26327
  Row: {
25396
26328
  created_at: string;
@@ -25415,6 +26347,36 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
25415
26347
  };
25416
26348
  Relationships: [];
25417
26349
  };
26350
+ crate_types: {
26351
+ Row: {
26352
+ created_at: string;
26353
+ id: string;
26354
+ length_cm: number;
26355
+ name: string;
26356
+ plants_per_crate: number;
26357
+ updated_at: string;
26358
+ width_cm: number;
26359
+ };
26360
+ Insert: {
26361
+ created_at?: string;
26362
+ id?: string;
26363
+ length_cm: number;
26364
+ name: string;
26365
+ plants_per_crate?: number;
26366
+ updated_at?: string;
26367
+ width_cm: number;
26368
+ };
26369
+ Update: {
26370
+ created_at?: string;
26371
+ id?: string;
26372
+ length_cm?: number;
26373
+ name?: string;
26374
+ plants_per_crate?: number;
26375
+ updated_at?: string;
26376
+ width_cm?: number;
26377
+ };
26378
+ Relationships: [];
26379
+ };
25418
26380
  customer_audit_log: {
25419
26381
  Row: {
25420
26382
  action: string;
@@ -29330,6 +30292,27 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
29330
30292
  referencedColumns: ["id"];
29331
30293
  }];
29332
30294
  };
30295
+ floriday_vbn_required_characteristics: {
30296
+ Row: {
30297
+ required_codes: string[];
30298
+ updated_at: string;
30299
+ updated_by: string | null;
30300
+ vbn_code: string;
30301
+ };
30302
+ Insert: {
30303
+ required_codes?: string[];
30304
+ updated_at?: string;
30305
+ updated_by?: string | null;
30306
+ vbn_code: string;
30307
+ };
30308
+ Update: {
30309
+ required_codes?: string[];
30310
+ updated_at?: string;
30311
+ updated_by?: string | null;
30312
+ vbn_code?: string;
30313
+ };
30314
+ Relationships: [];
30315
+ };
29333
30316
  floriday_warehouses_cache: {
29334
30317
  Row: {
29335
30318
  connection_id: string;
@@ -30032,6 +31015,69 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
30032
31015
  };
30033
31016
  Relationships: [];
30034
31017
  };
31018
+ logistics_capacity_events: {
31019
+ Row: {
31020
+ available_carts: number;
31021
+ created_at: string;
31022
+ id: string;
31023
+ measures: import("../integrations/supabase/types").Json;
31024
+ note: string | null;
31025
+ outcome: string;
31026
+ required_carts: number;
31027
+ reserve_minutes: number;
31028
+ shortage_carts: number;
31029
+ status: string;
31030
+ user_id: string;
31031
+ };
31032
+ Insert: {
31033
+ available_carts?: number;
31034
+ created_at?: string;
31035
+ id?: string;
31036
+ measures?: import("../integrations/supabase/types").Json;
31037
+ note?: string | null;
31038
+ outcome?: string;
31039
+ required_carts?: number;
31040
+ reserve_minutes?: number;
31041
+ shortage_carts?: number;
31042
+ status: string;
31043
+ user_id: string;
31044
+ };
31045
+ Update: {
31046
+ available_carts?: number;
31047
+ created_at?: string;
31048
+ id?: string;
31049
+ measures?: import("../integrations/supabase/types").Json;
31050
+ note?: string | null;
31051
+ outcome?: string;
31052
+ required_carts?: number;
31053
+ reserve_minutes?: number;
31054
+ shortage_carts?: number;
31055
+ status?: string;
31056
+ user_id?: string;
31057
+ };
31058
+ Relationships: [];
31059
+ };
31060
+ logistics_capacity_settings: {
31061
+ Row: {
31062
+ created_at: string;
31063
+ settings: import("../integrations/supabase/types").Json;
31064
+ updated_at: string;
31065
+ user_id: string;
31066
+ };
31067
+ Insert: {
31068
+ created_at?: string;
31069
+ settings?: import("../integrations/supabase/types").Json;
31070
+ updated_at?: string;
31071
+ user_id: string;
31072
+ };
31073
+ Update: {
31074
+ created_at?: string;
31075
+ settings?: import("../integrations/supabase/types").Json;
31076
+ updated_at?: string;
31077
+ user_id?: string;
31078
+ };
31079
+ Relationships: [];
31080
+ };
30035
31081
  logistics_decisions: {
30036
31082
  Row: {
30037
31083
  created_at: string;
@@ -31427,6 +32473,42 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31427
32473
  };
31428
32474
  Relationships: [];
31429
32475
  };
32476
+ order_buffers: {
32477
+ Row: {
32478
+ buffer_key: string;
32479
+ created_at: string;
32480
+ customer_id: string | null;
32481
+ grouping_mode: string;
32482
+ id: string;
32483
+ pickup_date: string | null;
32484
+ pickup_location: string | null;
32485
+ plan_locked_at: string | null;
32486
+ updated_at: string;
32487
+ };
32488
+ Insert: {
32489
+ buffer_key: string;
32490
+ created_at?: string;
32491
+ customer_id?: string | null;
32492
+ grouping_mode: string;
32493
+ id?: string;
32494
+ pickup_date?: string | null;
32495
+ pickup_location?: string | null;
32496
+ plan_locked_at?: string | null;
32497
+ updated_at?: string;
32498
+ };
32499
+ Update: {
32500
+ buffer_key?: string;
32501
+ created_at?: string;
32502
+ customer_id?: string | null;
32503
+ grouping_mode?: string;
32504
+ id?: string;
32505
+ pickup_date?: string | null;
32506
+ pickup_location?: string | null;
32507
+ plan_locked_at?: string | null;
32508
+ updated_at?: string;
32509
+ };
32510
+ Relationships: [];
32511
+ };
31430
32512
  order_cart_items: {
31431
32513
  Row: {
31432
32514
  cart_id: string;
@@ -31493,6 +32575,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31493
32575
  order_carts: {
31494
32576
  Row: {
31495
32577
  algorithm_version: number;
32578
+ buffer_id: string | null;
31496
32579
  cart_number: number;
31497
32580
  created_at: string;
31498
32581
  id: string;
@@ -31500,13 +32583,14 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31500
32583
  is_complete: boolean;
31501
32584
  notes: string | null;
31502
32585
  occupancy_pct: number;
31503
- order_id: string;
32586
+ order_id: string | null;
31504
32587
  source: string;
31505
32588
  total_layers_used: number;
31506
32589
  updated_at: string;
31507
32590
  };
31508
32591
  Insert: {
31509
32592
  algorithm_version?: number;
32593
+ buffer_id?: string | null;
31510
32594
  cart_number: number;
31511
32595
  created_at?: string;
31512
32596
  id?: string;
@@ -31514,13 +32598,14 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31514
32598
  is_complete?: boolean;
31515
32599
  notes?: string | null;
31516
32600
  occupancy_pct?: number;
31517
- order_id: string;
32601
+ order_id?: string | null;
31518
32602
  source?: string;
31519
32603
  total_layers_used?: number;
31520
32604
  updated_at?: string;
31521
32605
  };
31522
32606
  Update: {
31523
32607
  algorithm_version?: number;
32608
+ buffer_id?: string | null;
31524
32609
  cart_number?: number;
31525
32610
  created_at?: string;
31526
32611
  id?: string;
@@ -31528,12 +32613,18 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31528
32613
  is_complete?: boolean;
31529
32614
  notes?: string | null;
31530
32615
  occupancy_pct?: number;
31531
- order_id?: string;
32616
+ order_id?: string | null;
31532
32617
  source?: string;
31533
32618
  total_layers_used?: number;
31534
32619
  updated_at?: string;
31535
32620
  };
31536
32621
  Relationships: [{
32622
+ foreignKeyName: "order_carts_buffer_id_fkey";
32623
+ columns: ["buffer_id"];
32624
+ isOneToOne: false;
32625
+ referencedRelation: "order_buffers";
32626
+ referencedColumns: ["id"];
32627
+ }, {
31537
32628
  foreignKeyName: "order_carts_order_id_fkey";
31538
32629
  columns: ["order_id"];
31539
32630
  isOneToOne: false;
@@ -31771,12 +32862,14 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31771
32862
  };
31772
32863
  orders: {
31773
32864
  Row: {
32865
+ buffer_id: string | null;
31774
32866
  created_at: string;
31775
32867
  custom_fields: import("../integrations/supabase/types").Json;
31776
32868
  customer_id: string | null;
31777
32869
  customer_name: string;
31778
32870
  deleted_at: string | null;
31779
32871
  delivery_date: string | null;
32872
+ floriday_sales_order_id: string | null;
31780
32873
  id: string;
31781
32874
  is_reservation: boolean;
31782
32875
  notes: string | null;
@@ -31790,12 +32883,14 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31790
32883
  updated_at: string;
31791
32884
  };
31792
32885
  Insert: {
32886
+ buffer_id?: string | null;
31793
32887
  created_at?: string;
31794
32888
  custom_fields?: import("../integrations/supabase/types").Json;
31795
32889
  customer_id?: string | null;
31796
32890
  customer_name?: string;
31797
32891
  deleted_at?: string | null;
31798
32892
  delivery_date?: string | null;
32893
+ floriday_sales_order_id?: string | null;
31799
32894
  id?: string;
31800
32895
  is_reservation?: boolean;
31801
32896
  notes?: string | null;
@@ -31809,12 +32904,14 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31809
32904
  updated_at?: string;
31810
32905
  };
31811
32906
  Update: {
32907
+ buffer_id?: string | null;
31812
32908
  created_at?: string;
31813
32909
  custom_fields?: import("../integrations/supabase/types").Json;
31814
32910
  customer_id?: string | null;
31815
32911
  customer_name?: string;
31816
32912
  deleted_at?: string | null;
31817
32913
  delivery_date?: string | null;
32914
+ floriday_sales_order_id?: string | null;
31818
32915
  id?: string;
31819
32916
  is_reservation?: boolean;
31820
32917
  notes?: string | null;
@@ -31828,6 +32925,12 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31828
32925
  updated_at?: string;
31829
32926
  };
31830
32927
  Relationships: [{
32928
+ foreignKeyName: "orders_buffer_id_fkey";
32929
+ columns: ["buffer_id"];
32930
+ isOneToOne: false;
32931
+ referencedRelation: "order_buffers";
32932
+ referencedColumns: ["id"];
32933
+ }, {
31831
32934
  foreignKeyName: "orders_customer_id_fkey";
31832
32935
  columns: ["customer_id"];
31833
32936
  isOneToOne: false;
@@ -31965,6 +33068,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31965
33068
  created_at: string;
31966
33069
  id: string;
31967
33070
  notes: string | null;
33071
+ packing_configuration_id: string | null;
31968
33072
  parent_product_id: string | null;
31969
33073
  parent_trade_item_floriday_id: string | null;
31970
33074
  quantity: number;
@@ -31979,6 +33083,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31979
33083
  created_at?: string;
31980
33084
  id?: string;
31981
33085
  notes?: string | null;
33086
+ packing_configuration_id?: string | null;
31982
33087
  parent_product_id?: string | null;
31983
33088
  parent_trade_item_floriday_id?: string | null;
31984
33089
  quantity?: number;
@@ -31993,6 +33098,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
31993
33098
  created_at?: string;
31994
33099
  id?: string;
31995
33100
  notes?: string | null;
33101
+ packing_configuration_id?: string | null;
31996
33102
  parent_product_id?: string | null;
31997
33103
  parent_trade_item_floriday_id?: string | null;
31998
33104
  quantity?: number;
@@ -32194,11 +33300,13 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
32194
33300
  created_at: string;
32195
33301
  id: string;
32196
33302
  is_package: boolean;
33303
+ label: string | null;
32197
33304
  layers_per_load_carrier: number | null;
32198
33305
  load_carrier: string | null;
32199
33306
  package_id: string | null;
32200
33307
  package_label: string | null;
32201
33308
  packages_per_layer: number | null;
33309
+ packing_configuration_id: string;
32202
33310
  product_id: string | null;
32203
33311
  tenant_id: string;
32204
33312
  trade_item_floriday_id: string | null;
@@ -32209,11 +33317,13 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
32209
33317
  created_at?: string;
32210
33318
  id?: string;
32211
33319
  is_package?: boolean;
33320
+ label?: string | null;
32212
33321
  layers_per_load_carrier?: number | null;
32213
33322
  load_carrier?: string | null;
32214
33323
  package_id?: string | null;
32215
33324
  package_label?: string | null;
32216
33325
  packages_per_layer?: number | null;
33326
+ packing_configuration_id?: string;
32217
33327
  product_id?: string | null;
32218
33328
  tenant_id: string;
32219
33329
  trade_item_floriday_id?: string | null;
@@ -32224,11 +33334,13 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
32224
33334
  created_at?: string;
32225
33335
  id?: string;
32226
33336
  is_package?: boolean;
33337
+ label?: string | null;
32227
33338
  layers_per_load_carrier?: number | null;
32228
33339
  load_carrier?: string | null;
32229
33340
  package_id?: string | null;
32230
33341
  package_label?: string | null;
32231
33342
  packages_per_layer?: number | null;
33343
+ packing_configuration_id?: string;
32232
33344
  product_id?: string | null;
32233
33345
  tenant_id?: string;
32234
33346
  trade_item_floriday_id?: string | null;
@@ -32309,6 +33421,8 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
32309
33421
  trade_item_key: string | null;
32310
33422
  unit: string;
32311
33423
  updated_at: string;
33424
+ vat_code: string | null;
33425
+ vat_rate: number | null;
32312
33426
  weight: string | null;
32313
33427
  };
32314
33428
  Insert: {
@@ -32337,6 +33451,8 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
32337
33451
  trade_item_key?: string | null;
32338
33452
  unit?: string;
32339
33453
  updated_at?: string;
33454
+ vat_code?: string | null;
33455
+ vat_rate?: number | null;
32340
33456
  weight?: string | null;
32341
33457
  };
32342
33458
  Update: {
@@ -32365,6 +33481,8 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
32365
33481
  trade_item_key?: string | null;
32366
33482
  unit?: string;
32367
33483
  updated_at?: string;
33484
+ vat_code?: string | null;
33485
+ vat_rate?: number | null;
32368
33486
  weight?: string | null;
32369
33487
  };
32370
33488
  Relationships: [];
@@ -35440,6 +36558,12 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
35440
36558
  processed_items: number;
35441
36559
  }[];
35442
36560
  };
36561
+ calculate_layer_stock: {
36562
+ Args: {
36563
+ p_product_id: string;
36564
+ };
36565
+ Returns: number;
36566
+ };
35443
36567
  call_exact_route: {
35444
36568
  Args: {
35445
36569
  path: string;
@@ -35809,6 +36933,12 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
35809
36933
  };
35810
36934
  Returns: string;
35811
36935
  };
36936
+ get_inventory_stock_for_key: {
36937
+ Args: {
36938
+ p_key: string;
36939
+ };
36940
+ Returns: number;
36941
+ };
35812
36942
  get_offer_by_link_code: {
35813
36943
  Args: {
35814
36944
  p_code: string;
@@ -35839,6 +36969,12 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
35839
36969
  };
35840
36970
  Returns: string;
35841
36971
  };
36972
+ get_product_group_available_stock: {
36973
+ Args: {
36974
+ p_group_id: string;
36975
+ };
36976
+ Returns: number;
36977
+ };
35842
36978
  get_room_busy_windows: {
35843
36979
  Args: {
35844
36980
  p_from: string;
@@ -36405,12 +37541,22 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
36405
37541
  };
36406
37542
  Returns: string[];
36407
37543
  };
37544
+ sync_all_layer_stocks: {
37545
+ Args: never;
37546
+ Returns: undefined;
37547
+ };
36408
37548
  sync_cached_packing_from_product: {
36409
37549
  Args: {
36410
37550
  p_product_id: string;
36411
37551
  };
36412
37552
  Returns: undefined;
36413
37553
  };
37554
+ sync_layer_stock: {
37555
+ Args: {
37556
+ p_product_id: string;
37557
+ };
37558
+ Returns: undefined;
37559
+ };
36414
37560
  sync_order_cart_item_packing_from_product: {
36415
37561
  Args: {
36416
37562
  p_product_id: string;
@@ -37523,6 +38669,141 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
37523
38669
  };
37524
38670
  Relationships: [];
37525
38671
  };
38672
+ cart_planning_pick_times: {
38673
+ Row: {
38674
+ created_at: string;
38675
+ id: string;
38676
+ pot_size: string;
38677
+ seconds_per_cart: number;
38678
+ updated_at: string;
38679
+ };
38680
+ Insert: {
38681
+ created_at?: string;
38682
+ id?: string;
38683
+ pot_size: string;
38684
+ seconds_per_cart: number;
38685
+ updated_at?: string;
38686
+ };
38687
+ Update: {
38688
+ created_at?: string;
38689
+ id?: string;
38690
+ pot_size?: string;
38691
+ seconds_per_cart?: number;
38692
+ updated_at?: string;
38693
+ };
38694
+ Relationships: [];
38695
+ };
38696
+ cart_planning_product_overrides: {
38697
+ Row: {
38698
+ created_at: string;
38699
+ id: string;
38700
+ max_party_share_per_layer_pct_override: number | null;
38701
+ never_mix: boolean;
38702
+ notes: string | null;
38703
+ product_id: string;
38704
+ updated_at: string;
38705
+ };
38706
+ Insert: {
38707
+ created_at?: string;
38708
+ id?: string;
38709
+ max_party_share_per_layer_pct_override?: number | null;
38710
+ never_mix?: boolean;
38711
+ notes?: string | null;
38712
+ product_id: string;
38713
+ updated_at?: string;
38714
+ };
38715
+ Update: {
38716
+ created_at?: string;
38717
+ id?: string;
38718
+ max_party_share_per_layer_pct_override?: number | null;
38719
+ never_mix?: boolean;
38720
+ notes?: string | null;
38721
+ product_id?: string;
38722
+ updated_at?: string;
38723
+ };
38724
+ Relationships: [{
38725
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
38726
+ columns: ["product_id"];
38727
+ isOneToOne: true;
38728
+ referencedRelation: "products";
38729
+ referencedColumns: ["id"];
38730
+ }];
38731
+ };
38732
+ cart_planning_settings: {
38733
+ Row: {
38734
+ allow_editing_after_pickstation_send: boolean;
38735
+ buffer_grouping_mode: string;
38736
+ combine_floriday_orders: boolean;
38737
+ combine_floriday_orders_window: string;
38738
+ combine_orders_scope: string;
38739
+ default_workers: number;
38740
+ id: number;
38741
+ max_beladingen_per_layer: number;
38742
+ max_customers_per_cart: number;
38743
+ max_one_customer_per_layer: boolean;
38744
+ max_party_share_per_layer_pct: number;
38745
+ optimization_strategy: string;
38746
+ own_cart_from_layers: number;
38747
+ pick_time_mode: string;
38748
+ plants_per_day: number;
38749
+ plants_per_hour: number;
38750
+ require_same_carrier: boolean;
38751
+ require_same_crate_type: boolean;
38752
+ require_same_delivery_date: boolean;
38753
+ require_same_delivery_location: boolean;
38754
+ updated_at: string;
38755
+ updated_by: string | null;
38756
+ };
38757
+ Insert: {
38758
+ allow_editing_after_pickstation_send?: boolean;
38759
+ buffer_grouping_mode?: string;
38760
+ combine_floriday_orders?: boolean;
38761
+ combine_floriday_orders_window?: string;
38762
+ combine_orders_scope?: string;
38763
+ default_workers?: number;
38764
+ id?: number;
38765
+ max_beladingen_per_layer?: number;
38766
+ max_customers_per_cart?: number;
38767
+ max_one_customer_per_layer?: boolean;
38768
+ max_party_share_per_layer_pct?: number;
38769
+ optimization_strategy?: string;
38770
+ own_cart_from_layers?: number;
38771
+ pick_time_mode?: string;
38772
+ plants_per_day?: number;
38773
+ plants_per_hour?: number;
38774
+ require_same_carrier?: boolean;
38775
+ require_same_crate_type?: boolean;
38776
+ require_same_delivery_date?: boolean;
38777
+ require_same_delivery_location?: boolean;
38778
+ updated_at?: string;
38779
+ updated_by?: string | null;
38780
+ };
38781
+ Update: {
38782
+ allow_editing_after_pickstation_send?: boolean;
38783
+ buffer_grouping_mode?: string;
38784
+ combine_floriday_orders?: boolean;
38785
+ combine_floriday_orders_window?: string;
38786
+ combine_orders_scope?: string;
38787
+ default_workers?: number;
38788
+ id?: number;
38789
+ max_beladingen_per_layer?: number;
38790
+ max_customers_per_cart?: number;
38791
+ max_one_customer_per_layer?: boolean;
38792
+ max_party_share_per_layer_pct?: number;
38793
+ optimization_strategy?: string;
38794
+ own_cart_from_layers?: number;
38795
+ pick_time_mode?: string;
38796
+ plants_per_day?: number;
38797
+ plants_per_hour?: number;
38798
+ require_same_carrier?: boolean;
38799
+ require_same_crate_type?: boolean;
38800
+ require_same_delivery_date?: boolean;
38801
+ require_same_delivery_location?: boolean;
38802
+ updated_at?: string;
38803
+ updated_by?: string | null;
38804
+ };
38805
+ Relationships: [];
38806
+ };
37526
38807
  cart_replan_queue: {
37527
38808
  Row: {
37528
38809
  attempts: number;
@@ -37553,6 +38834,39 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
37553
38834
  referencedColumns: ["id"];
37554
38835
  }];
37555
38836
  };
38837
+ cart_types: {
38838
+ Row: {
38839
+ created_at: string;
38840
+ id: string;
38841
+ is_default: boolean;
38842
+ layer_length_cm: number;
38843
+ layer_width_cm: number;
38844
+ layers_per_cart: number;
38845
+ name: string;
38846
+ updated_at: string;
38847
+ };
38848
+ Insert: {
38849
+ created_at?: string;
38850
+ id?: string;
38851
+ is_default?: boolean;
38852
+ layer_length_cm: number;
38853
+ layer_width_cm: number;
38854
+ layers_per_cart?: number;
38855
+ name: string;
38856
+ updated_at?: string;
38857
+ };
38858
+ Update: {
38859
+ created_at?: string;
38860
+ id?: string;
38861
+ is_default?: boolean;
38862
+ layer_length_cm?: number;
38863
+ layer_width_cm?: number;
38864
+ layers_per_cart?: number;
38865
+ name?: string;
38866
+ updated_at?: string;
38867
+ };
38868
+ Relationships: [];
38869
+ };
37556
38870
  collections: {
37557
38871
  Row: {
37558
38872
  created_at: string;
@@ -37577,6 +38891,36 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
37577
38891
  };
37578
38892
  Relationships: [];
37579
38893
  };
38894
+ crate_types: {
38895
+ Row: {
38896
+ created_at: string;
38897
+ id: string;
38898
+ length_cm: number;
38899
+ name: string;
38900
+ plants_per_crate: number;
38901
+ updated_at: string;
38902
+ width_cm: number;
38903
+ };
38904
+ Insert: {
38905
+ created_at?: string;
38906
+ id?: string;
38907
+ length_cm: number;
38908
+ name: string;
38909
+ plants_per_crate?: number;
38910
+ updated_at?: string;
38911
+ width_cm: number;
38912
+ };
38913
+ Update: {
38914
+ created_at?: string;
38915
+ id?: string;
38916
+ length_cm?: number;
38917
+ name?: string;
38918
+ plants_per_crate?: number;
38919
+ updated_at?: string;
38920
+ width_cm?: number;
38921
+ };
38922
+ Relationships: [];
38923
+ };
37580
38924
  customer_audit_log: {
37581
38925
  Row: {
37582
38926
  action: string;
@@ -41492,6 +42836,27 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
41492
42836
  referencedColumns: ["id"];
41493
42837
  }];
41494
42838
  };
42839
+ floriday_vbn_required_characteristics: {
42840
+ Row: {
42841
+ required_codes: string[];
42842
+ updated_at: string;
42843
+ updated_by: string | null;
42844
+ vbn_code: string;
42845
+ };
42846
+ Insert: {
42847
+ required_codes?: string[];
42848
+ updated_at?: string;
42849
+ updated_by?: string | null;
42850
+ vbn_code: string;
42851
+ };
42852
+ Update: {
42853
+ required_codes?: string[];
42854
+ updated_at?: string;
42855
+ updated_by?: string | null;
42856
+ vbn_code?: string;
42857
+ };
42858
+ Relationships: [];
42859
+ };
41495
42860
  floriday_warehouses_cache: {
41496
42861
  Row: {
41497
42862
  connection_id: string;
@@ -42194,6 +43559,69 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
42194
43559
  };
42195
43560
  Relationships: [];
42196
43561
  };
43562
+ logistics_capacity_events: {
43563
+ Row: {
43564
+ available_carts: number;
43565
+ created_at: string;
43566
+ id: string;
43567
+ measures: import("../integrations/supabase/types").Json;
43568
+ note: string | null;
43569
+ outcome: string;
43570
+ required_carts: number;
43571
+ reserve_minutes: number;
43572
+ shortage_carts: number;
43573
+ status: string;
43574
+ user_id: string;
43575
+ };
43576
+ Insert: {
43577
+ available_carts?: number;
43578
+ created_at?: string;
43579
+ id?: string;
43580
+ measures?: import("../integrations/supabase/types").Json;
43581
+ note?: string | null;
43582
+ outcome?: string;
43583
+ required_carts?: number;
43584
+ reserve_minutes?: number;
43585
+ shortage_carts?: number;
43586
+ status: string;
43587
+ user_id: string;
43588
+ };
43589
+ Update: {
43590
+ available_carts?: number;
43591
+ created_at?: string;
43592
+ id?: string;
43593
+ measures?: import("../integrations/supabase/types").Json;
43594
+ note?: string | null;
43595
+ outcome?: string;
43596
+ required_carts?: number;
43597
+ reserve_minutes?: number;
43598
+ shortage_carts?: number;
43599
+ status?: string;
43600
+ user_id?: string;
43601
+ };
43602
+ Relationships: [];
43603
+ };
43604
+ logistics_capacity_settings: {
43605
+ Row: {
43606
+ created_at: string;
43607
+ settings: import("../integrations/supabase/types").Json;
43608
+ updated_at: string;
43609
+ user_id: string;
43610
+ };
43611
+ Insert: {
43612
+ created_at?: string;
43613
+ settings?: import("../integrations/supabase/types").Json;
43614
+ updated_at?: string;
43615
+ user_id: string;
43616
+ };
43617
+ Update: {
43618
+ created_at?: string;
43619
+ settings?: import("../integrations/supabase/types").Json;
43620
+ updated_at?: string;
43621
+ user_id?: string;
43622
+ };
43623
+ Relationships: [];
43624
+ };
42197
43625
  logistics_decisions: {
42198
43626
  Row: {
42199
43627
  created_at: string;
@@ -43589,6 +45017,42 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
43589
45017
  };
43590
45018
  Relationships: [];
43591
45019
  };
45020
+ order_buffers: {
45021
+ Row: {
45022
+ buffer_key: string;
45023
+ created_at: string;
45024
+ customer_id: string | null;
45025
+ grouping_mode: string;
45026
+ id: string;
45027
+ pickup_date: string | null;
45028
+ pickup_location: string | null;
45029
+ plan_locked_at: string | null;
45030
+ updated_at: string;
45031
+ };
45032
+ Insert: {
45033
+ buffer_key: string;
45034
+ created_at?: string;
45035
+ customer_id?: string | null;
45036
+ grouping_mode: string;
45037
+ id?: string;
45038
+ pickup_date?: string | null;
45039
+ pickup_location?: string | null;
45040
+ plan_locked_at?: string | null;
45041
+ updated_at?: string;
45042
+ };
45043
+ Update: {
45044
+ buffer_key?: string;
45045
+ created_at?: string;
45046
+ customer_id?: string | null;
45047
+ grouping_mode?: string;
45048
+ id?: string;
45049
+ pickup_date?: string | null;
45050
+ pickup_location?: string | null;
45051
+ plan_locked_at?: string | null;
45052
+ updated_at?: string;
45053
+ };
45054
+ Relationships: [];
45055
+ };
43592
45056
  order_cart_items: {
43593
45057
  Row: {
43594
45058
  cart_id: string;
@@ -43655,6 +45119,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
43655
45119
  order_carts: {
43656
45120
  Row: {
43657
45121
  algorithm_version: number;
45122
+ buffer_id: string | null;
43658
45123
  cart_number: number;
43659
45124
  created_at: string;
43660
45125
  id: string;
@@ -43662,13 +45127,14 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
43662
45127
  is_complete: boolean;
43663
45128
  notes: string | null;
43664
45129
  occupancy_pct: number;
43665
- order_id: string;
45130
+ order_id: string | null;
43666
45131
  source: string;
43667
45132
  total_layers_used: number;
43668
45133
  updated_at: string;
43669
45134
  };
43670
45135
  Insert: {
43671
45136
  algorithm_version?: number;
45137
+ buffer_id?: string | null;
43672
45138
  cart_number: number;
43673
45139
  created_at?: string;
43674
45140
  id?: string;
@@ -43676,13 +45142,14 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
43676
45142
  is_complete?: boolean;
43677
45143
  notes?: string | null;
43678
45144
  occupancy_pct?: number;
43679
- order_id: string;
45145
+ order_id?: string | null;
43680
45146
  source?: string;
43681
45147
  total_layers_used?: number;
43682
45148
  updated_at?: string;
43683
45149
  };
43684
45150
  Update: {
43685
45151
  algorithm_version?: number;
45152
+ buffer_id?: string | null;
43686
45153
  cart_number?: number;
43687
45154
  created_at?: string;
43688
45155
  id?: string;
@@ -43690,12 +45157,18 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
43690
45157
  is_complete?: boolean;
43691
45158
  notes?: string | null;
43692
45159
  occupancy_pct?: number;
43693
- order_id?: string;
45160
+ order_id?: string | null;
43694
45161
  source?: string;
43695
45162
  total_layers_used?: number;
43696
45163
  updated_at?: string;
43697
45164
  };
43698
45165
  Relationships: [{
45166
+ foreignKeyName: "order_carts_buffer_id_fkey";
45167
+ columns: ["buffer_id"];
45168
+ isOneToOne: false;
45169
+ referencedRelation: "order_buffers";
45170
+ referencedColumns: ["id"];
45171
+ }, {
43699
45172
  foreignKeyName: "order_carts_order_id_fkey";
43700
45173
  columns: ["order_id"];
43701
45174
  isOneToOne: false;
@@ -43933,12 +45406,14 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
43933
45406
  };
43934
45407
  orders: {
43935
45408
  Row: {
45409
+ buffer_id: string | null;
43936
45410
  created_at: string;
43937
45411
  custom_fields: import("../integrations/supabase/types").Json;
43938
45412
  customer_id: string | null;
43939
45413
  customer_name: string;
43940
45414
  deleted_at: string | null;
43941
45415
  delivery_date: string | null;
45416
+ floriday_sales_order_id: string | null;
43942
45417
  id: string;
43943
45418
  is_reservation: boolean;
43944
45419
  notes: string | null;
@@ -43952,12 +45427,14 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
43952
45427
  updated_at: string;
43953
45428
  };
43954
45429
  Insert: {
45430
+ buffer_id?: string | null;
43955
45431
  created_at?: string;
43956
45432
  custom_fields?: import("../integrations/supabase/types").Json;
43957
45433
  customer_id?: string | null;
43958
45434
  customer_name?: string;
43959
45435
  deleted_at?: string | null;
43960
45436
  delivery_date?: string | null;
45437
+ floriday_sales_order_id?: string | null;
43961
45438
  id?: string;
43962
45439
  is_reservation?: boolean;
43963
45440
  notes?: string | null;
@@ -43971,12 +45448,14 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
43971
45448
  updated_at?: string;
43972
45449
  };
43973
45450
  Update: {
45451
+ buffer_id?: string | null;
43974
45452
  created_at?: string;
43975
45453
  custom_fields?: import("../integrations/supabase/types").Json;
43976
45454
  customer_id?: string | null;
43977
45455
  customer_name?: string;
43978
45456
  deleted_at?: string | null;
43979
45457
  delivery_date?: string | null;
45458
+ floriday_sales_order_id?: string | null;
43980
45459
  id?: string;
43981
45460
  is_reservation?: boolean;
43982
45461
  notes?: string | null;
@@ -43990,6 +45469,12 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
43990
45469
  updated_at?: string;
43991
45470
  };
43992
45471
  Relationships: [{
45472
+ foreignKeyName: "orders_buffer_id_fkey";
45473
+ columns: ["buffer_id"];
45474
+ isOneToOne: false;
45475
+ referencedRelation: "order_buffers";
45476
+ referencedColumns: ["id"];
45477
+ }, {
43993
45478
  foreignKeyName: "orders_customer_id_fkey";
43994
45479
  columns: ["customer_id"];
43995
45480
  isOneToOne: false;
@@ -44127,6 +45612,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
44127
45612
  created_at: string;
44128
45613
  id: string;
44129
45614
  notes: string | null;
45615
+ packing_configuration_id: string | null;
44130
45616
  parent_product_id: string | null;
44131
45617
  parent_trade_item_floriday_id: string | null;
44132
45618
  quantity: number;
@@ -44141,6 +45627,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
44141
45627
  created_at?: string;
44142
45628
  id?: string;
44143
45629
  notes?: string | null;
45630
+ packing_configuration_id?: string | null;
44144
45631
  parent_product_id?: string | null;
44145
45632
  parent_trade_item_floriday_id?: string | null;
44146
45633
  quantity?: number;
@@ -44155,6 +45642,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
44155
45642
  created_at?: string;
44156
45643
  id?: string;
44157
45644
  notes?: string | null;
45645
+ packing_configuration_id?: string | null;
44158
45646
  parent_product_id?: string | null;
44159
45647
  parent_trade_item_floriday_id?: string | null;
44160
45648
  quantity?: number;
@@ -44356,11 +45844,13 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
44356
45844
  created_at: string;
44357
45845
  id: string;
44358
45846
  is_package: boolean;
45847
+ label: string | null;
44359
45848
  layers_per_load_carrier: number | null;
44360
45849
  load_carrier: string | null;
44361
45850
  package_id: string | null;
44362
45851
  package_label: string | null;
44363
45852
  packages_per_layer: number | null;
45853
+ packing_configuration_id: string;
44364
45854
  product_id: string | null;
44365
45855
  tenant_id: string;
44366
45856
  trade_item_floriday_id: string | null;
@@ -44371,11 +45861,13 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
44371
45861
  created_at?: string;
44372
45862
  id?: string;
44373
45863
  is_package?: boolean;
45864
+ label?: string | null;
44374
45865
  layers_per_load_carrier?: number | null;
44375
45866
  load_carrier?: string | null;
44376
45867
  package_id?: string | null;
44377
45868
  package_label?: string | null;
44378
45869
  packages_per_layer?: number | null;
45870
+ packing_configuration_id?: string;
44379
45871
  product_id?: string | null;
44380
45872
  tenant_id: string;
44381
45873
  trade_item_floriday_id?: string | null;
@@ -44386,11 +45878,13 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
44386
45878
  created_at?: string;
44387
45879
  id?: string;
44388
45880
  is_package?: boolean;
45881
+ label?: string | null;
44389
45882
  layers_per_load_carrier?: number | null;
44390
45883
  load_carrier?: string | null;
44391
45884
  package_id?: string | null;
44392
45885
  package_label?: string | null;
44393
45886
  packages_per_layer?: number | null;
45887
+ packing_configuration_id?: string;
44394
45888
  product_id?: string | null;
44395
45889
  tenant_id?: string;
44396
45890
  trade_item_floriday_id?: string | null;
@@ -44471,6 +45965,8 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
44471
45965
  trade_item_key: string | null;
44472
45966
  unit: string;
44473
45967
  updated_at: string;
45968
+ vat_code: string | null;
45969
+ vat_rate: number | null;
44474
45970
  weight: string | null;
44475
45971
  };
44476
45972
  Insert: {
@@ -44499,6 +45995,8 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
44499
45995
  trade_item_key?: string | null;
44500
45996
  unit?: string;
44501
45997
  updated_at?: string;
45998
+ vat_code?: string | null;
45999
+ vat_rate?: number | null;
44502
46000
  weight?: string | null;
44503
46001
  };
44504
46002
  Update: {
@@ -44527,6 +46025,8 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
44527
46025
  trade_item_key?: string | null;
44528
46026
  unit?: string;
44529
46027
  updated_at?: string;
46028
+ vat_code?: string | null;
46029
+ vat_rate?: number | null;
44530
46030
  weight?: string | null;
44531
46031
  };
44532
46032
  Relationships: [];
@@ -47602,6 +49102,12 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
47602
49102
  processed_items: number;
47603
49103
  }[];
47604
49104
  };
49105
+ calculate_layer_stock: {
49106
+ Args: {
49107
+ p_product_id: string;
49108
+ };
49109
+ Returns: number;
49110
+ };
47605
49111
  call_exact_route: {
47606
49112
  Args: {
47607
49113
  path: string;
@@ -47971,6 +49477,12 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
47971
49477
  };
47972
49478
  Returns: string;
47973
49479
  };
49480
+ get_inventory_stock_for_key: {
49481
+ Args: {
49482
+ p_key: string;
49483
+ };
49484
+ Returns: number;
49485
+ };
47974
49486
  get_offer_by_link_code: {
47975
49487
  Args: {
47976
49488
  p_code: string;
@@ -48001,6 +49513,12 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
48001
49513
  };
48002
49514
  Returns: string;
48003
49515
  };
49516
+ get_product_group_available_stock: {
49517
+ Args: {
49518
+ p_group_id: string;
49519
+ };
49520
+ Returns: number;
49521
+ };
48004
49522
  get_room_busy_windows: {
48005
49523
  Args: {
48006
49524
  p_from: string;
@@ -48567,12 +50085,22 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
48567
50085
  };
48568
50086
  Returns: string[];
48569
50087
  };
50088
+ sync_all_layer_stocks: {
50089
+ Args: never;
50090
+ Returns: undefined;
50091
+ };
48570
50092
  sync_cached_packing_from_product: {
48571
50093
  Args: {
48572
50094
  p_product_id: string;
48573
50095
  };
48574
50096
  Returns: undefined;
48575
50097
  };
50098
+ sync_layer_stock: {
50099
+ Args: {
50100
+ p_product_id: string;
50101
+ };
50102
+ Returns: undefined;
50103
+ };
48576
50104
  sync_order_cart_item_packing_from_product: {
48577
50105
  Args: {
48578
50106
  p_product_id: string;
@@ -49687,6 +51215,141 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
49687
51215
  };
49688
51216
  Relationships: [];
49689
51217
  };
51218
+ cart_planning_pick_times: {
51219
+ Row: {
51220
+ created_at: string;
51221
+ id: string;
51222
+ pot_size: string;
51223
+ seconds_per_cart: number;
51224
+ updated_at: string;
51225
+ };
51226
+ Insert: {
51227
+ created_at?: string;
51228
+ id?: string;
51229
+ pot_size: string;
51230
+ seconds_per_cart: number;
51231
+ updated_at?: string;
51232
+ };
51233
+ Update: {
51234
+ created_at?: string;
51235
+ id?: string;
51236
+ pot_size?: string;
51237
+ seconds_per_cart?: number;
51238
+ updated_at?: string;
51239
+ };
51240
+ Relationships: [];
51241
+ };
51242
+ cart_planning_product_overrides: {
51243
+ Row: {
51244
+ created_at: string;
51245
+ id: string;
51246
+ max_party_share_per_layer_pct_override: number | null;
51247
+ never_mix: boolean;
51248
+ notes: string | null;
51249
+ product_id: string;
51250
+ updated_at: string;
51251
+ };
51252
+ Insert: {
51253
+ created_at?: string;
51254
+ id?: string;
51255
+ max_party_share_per_layer_pct_override?: number | null;
51256
+ never_mix?: boolean;
51257
+ notes?: string | null;
51258
+ product_id: string;
51259
+ updated_at?: string;
51260
+ };
51261
+ Update: {
51262
+ created_at?: string;
51263
+ id?: string;
51264
+ max_party_share_per_layer_pct_override?: number | null;
51265
+ never_mix?: boolean;
51266
+ notes?: string | null;
51267
+ product_id?: string;
51268
+ updated_at?: string;
51269
+ };
51270
+ Relationships: [{
51271
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
51272
+ columns: ["product_id"];
51273
+ isOneToOne: true;
51274
+ referencedRelation: "products";
51275
+ referencedColumns: ["id"];
51276
+ }];
51277
+ };
51278
+ cart_planning_settings: {
51279
+ Row: {
51280
+ allow_editing_after_pickstation_send: boolean;
51281
+ buffer_grouping_mode: string;
51282
+ combine_floriday_orders: boolean;
51283
+ combine_floriday_orders_window: string;
51284
+ combine_orders_scope: string;
51285
+ default_workers: number;
51286
+ id: number;
51287
+ max_beladingen_per_layer: number;
51288
+ max_customers_per_cart: number;
51289
+ max_one_customer_per_layer: boolean;
51290
+ max_party_share_per_layer_pct: number;
51291
+ optimization_strategy: string;
51292
+ own_cart_from_layers: number;
51293
+ pick_time_mode: string;
51294
+ plants_per_day: number;
51295
+ plants_per_hour: number;
51296
+ require_same_carrier: boolean;
51297
+ require_same_crate_type: boolean;
51298
+ require_same_delivery_date: boolean;
51299
+ require_same_delivery_location: boolean;
51300
+ updated_at: string;
51301
+ updated_by: string | null;
51302
+ };
51303
+ Insert: {
51304
+ allow_editing_after_pickstation_send?: boolean;
51305
+ buffer_grouping_mode?: string;
51306
+ combine_floriday_orders?: boolean;
51307
+ combine_floriday_orders_window?: string;
51308
+ combine_orders_scope?: string;
51309
+ default_workers?: number;
51310
+ id?: number;
51311
+ max_beladingen_per_layer?: number;
51312
+ max_customers_per_cart?: number;
51313
+ max_one_customer_per_layer?: boolean;
51314
+ max_party_share_per_layer_pct?: number;
51315
+ optimization_strategy?: string;
51316
+ own_cart_from_layers?: number;
51317
+ pick_time_mode?: string;
51318
+ plants_per_day?: number;
51319
+ plants_per_hour?: number;
51320
+ require_same_carrier?: boolean;
51321
+ require_same_crate_type?: boolean;
51322
+ require_same_delivery_date?: boolean;
51323
+ require_same_delivery_location?: boolean;
51324
+ updated_at?: string;
51325
+ updated_by?: string | null;
51326
+ };
51327
+ Update: {
51328
+ allow_editing_after_pickstation_send?: boolean;
51329
+ buffer_grouping_mode?: string;
51330
+ combine_floriday_orders?: boolean;
51331
+ combine_floriday_orders_window?: string;
51332
+ combine_orders_scope?: string;
51333
+ default_workers?: number;
51334
+ id?: number;
51335
+ max_beladingen_per_layer?: number;
51336
+ max_customers_per_cart?: number;
51337
+ max_one_customer_per_layer?: boolean;
51338
+ max_party_share_per_layer_pct?: number;
51339
+ optimization_strategy?: string;
51340
+ own_cart_from_layers?: number;
51341
+ pick_time_mode?: string;
51342
+ plants_per_day?: number;
51343
+ plants_per_hour?: number;
51344
+ require_same_carrier?: boolean;
51345
+ require_same_crate_type?: boolean;
51346
+ require_same_delivery_date?: boolean;
51347
+ require_same_delivery_location?: boolean;
51348
+ updated_at?: string;
51349
+ updated_by?: string | null;
51350
+ };
51351
+ Relationships: [];
51352
+ };
49690
51353
  cart_replan_queue: {
49691
51354
  Row: {
49692
51355
  attempts: number;
@@ -49717,6 +51380,39 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
49717
51380
  referencedColumns: ["id"];
49718
51381
  }];
49719
51382
  };
51383
+ cart_types: {
51384
+ Row: {
51385
+ created_at: string;
51386
+ id: string;
51387
+ is_default: boolean;
51388
+ layer_length_cm: number;
51389
+ layer_width_cm: number;
51390
+ layers_per_cart: number;
51391
+ name: string;
51392
+ updated_at: string;
51393
+ };
51394
+ Insert: {
51395
+ created_at?: string;
51396
+ id?: string;
51397
+ is_default?: boolean;
51398
+ layer_length_cm: number;
51399
+ layer_width_cm: number;
51400
+ layers_per_cart?: number;
51401
+ name: string;
51402
+ updated_at?: string;
51403
+ };
51404
+ Update: {
51405
+ created_at?: string;
51406
+ id?: string;
51407
+ is_default?: boolean;
51408
+ layer_length_cm?: number;
51409
+ layer_width_cm?: number;
51410
+ layers_per_cart?: number;
51411
+ name?: string;
51412
+ updated_at?: string;
51413
+ };
51414
+ Relationships: [];
51415
+ };
49720
51416
  collections: {
49721
51417
  Row: {
49722
51418
  created_at: string;
@@ -49741,6 +51437,36 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
49741
51437
  };
49742
51438
  Relationships: [];
49743
51439
  };
51440
+ crate_types: {
51441
+ Row: {
51442
+ created_at: string;
51443
+ id: string;
51444
+ length_cm: number;
51445
+ name: string;
51446
+ plants_per_crate: number;
51447
+ updated_at: string;
51448
+ width_cm: number;
51449
+ };
51450
+ Insert: {
51451
+ created_at?: string;
51452
+ id?: string;
51453
+ length_cm: number;
51454
+ name: string;
51455
+ plants_per_crate?: number;
51456
+ updated_at?: string;
51457
+ width_cm: number;
51458
+ };
51459
+ Update: {
51460
+ created_at?: string;
51461
+ id?: string;
51462
+ length_cm?: number;
51463
+ name?: string;
51464
+ plants_per_crate?: number;
51465
+ updated_at?: string;
51466
+ width_cm?: number;
51467
+ };
51468
+ Relationships: [];
51469
+ };
49744
51470
  customer_audit_log: {
49745
51471
  Row: {
49746
51472
  action: string;
@@ -53656,6 +55382,27 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
53656
55382
  referencedColumns: ["id"];
53657
55383
  }];
53658
55384
  };
55385
+ floriday_vbn_required_characteristics: {
55386
+ Row: {
55387
+ required_codes: string[];
55388
+ updated_at: string;
55389
+ updated_by: string | null;
55390
+ vbn_code: string;
55391
+ };
55392
+ Insert: {
55393
+ required_codes?: string[];
55394
+ updated_at?: string;
55395
+ updated_by?: string | null;
55396
+ vbn_code: string;
55397
+ };
55398
+ Update: {
55399
+ required_codes?: string[];
55400
+ updated_at?: string;
55401
+ updated_by?: string | null;
55402
+ vbn_code?: string;
55403
+ };
55404
+ Relationships: [];
55405
+ };
53659
55406
  floriday_warehouses_cache: {
53660
55407
  Row: {
53661
55408
  connection_id: string;
@@ -54358,6 +56105,69 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
54358
56105
  };
54359
56106
  Relationships: [];
54360
56107
  };
56108
+ logistics_capacity_events: {
56109
+ Row: {
56110
+ available_carts: number;
56111
+ created_at: string;
56112
+ id: string;
56113
+ measures: import("../integrations/supabase/types").Json;
56114
+ note: string | null;
56115
+ outcome: string;
56116
+ required_carts: number;
56117
+ reserve_minutes: number;
56118
+ shortage_carts: number;
56119
+ status: string;
56120
+ user_id: string;
56121
+ };
56122
+ Insert: {
56123
+ available_carts?: number;
56124
+ created_at?: string;
56125
+ id?: string;
56126
+ measures?: import("../integrations/supabase/types").Json;
56127
+ note?: string | null;
56128
+ outcome?: string;
56129
+ required_carts?: number;
56130
+ reserve_minutes?: number;
56131
+ shortage_carts?: number;
56132
+ status: string;
56133
+ user_id: string;
56134
+ };
56135
+ Update: {
56136
+ available_carts?: number;
56137
+ created_at?: string;
56138
+ id?: string;
56139
+ measures?: import("../integrations/supabase/types").Json;
56140
+ note?: string | null;
56141
+ outcome?: string;
56142
+ required_carts?: number;
56143
+ reserve_minutes?: number;
56144
+ shortage_carts?: number;
56145
+ status?: string;
56146
+ user_id?: string;
56147
+ };
56148
+ Relationships: [];
56149
+ };
56150
+ logistics_capacity_settings: {
56151
+ Row: {
56152
+ created_at: string;
56153
+ settings: import("../integrations/supabase/types").Json;
56154
+ updated_at: string;
56155
+ user_id: string;
56156
+ };
56157
+ Insert: {
56158
+ created_at?: string;
56159
+ settings?: import("../integrations/supabase/types").Json;
56160
+ updated_at?: string;
56161
+ user_id: string;
56162
+ };
56163
+ Update: {
56164
+ created_at?: string;
56165
+ settings?: import("../integrations/supabase/types").Json;
56166
+ updated_at?: string;
56167
+ user_id?: string;
56168
+ };
56169
+ Relationships: [];
56170
+ };
54361
56171
  logistics_decisions: {
54362
56172
  Row: {
54363
56173
  created_at: string;
@@ -55753,6 +57563,42 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
55753
57563
  };
55754
57564
  Relationships: [];
55755
57565
  };
57566
+ order_buffers: {
57567
+ Row: {
57568
+ buffer_key: string;
57569
+ created_at: string;
57570
+ customer_id: string | null;
57571
+ grouping_mode: string;
57572
+ id: string;
57573
+ pickup_date: string | null;
57574
+ pickup_location: string | null;
57575
+ plan_locked_at: string | null;
57576
+ updated_at: string;
57577
+ };
57578
+ Insert: {
57579
+ buffer_key: string;
57580
+ created_at?: string;
57581
+ customer_id?: string | null;
57582
+ grouping_mode: string;
57583
+ id?: string;
57584
+ pickup_date?: string | null;
57585
+ pickup_location?: string | null;
57586
+ plan_locked_at?: string | null;
57587
+ updated_at?: string;
57588
+ };
57589
+ Update: {
57590
+ buffer_key?: string;
57591
+ created_at?: string;
57592
+ customer_id?: string | null;
57593
+ grouping_mode?: string;
57594
+ id?: string;
57595
+ pickup_date?: string | null;
57596
+ pickup_location?: string | null;
57597
+ plan_locked_at?: string | null;
57598
+ updated_at?: string;
57599
+ };
57600
+ Relationships: [];
57601
+ };
55756
57602
  order_cart_items: {
55757
57603
  Row: {
55758
57604
  cart_id: string;
@@ -55819,6 +57665,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
55819
57665
  order_carts: {
55820
57666
  Row: {
55821
57667
  algorithm_version: number;
57668
+ buffer_id: string | null;
55822
57669
  cart_number: number;
55823
57670
  created_at: string;
55824
57671
  id: string;
@@ -55826,13 +57673,14 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
55826
57673
  is_complete: boolean;
55827
57674
  notes: string | null;
55828
57675
  occupancy_pct: number;
55829
- order_id: string;
57676
+ order_id: string | null;
55830
57677
  source: string;
55831
57678
  total_layers_used: number;
55832
57679
  updated_at: string;
55833
57680
  };
55834
57681
  Insert: {
55835
57682
  algorithm_version?: number;
57683
+ buffer_id?: string | null;
55836
57684
  cart_number: number;
55837
57685
  created_at?: string;
55838
57686
  id?: string;
@@ -55840,13 +57688,14 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
55840
57688
  is_complete?: boolean;
55841
57689
  notes?: string | null;
55842
57690
  occupancy_pct?: number;
55843
- order_id: string;
57691
+ order_id?: string | null;
55844
57692
  source?: string;
55845
57693
  total_layers_used?: number;
55846
57694
  updated_at?: string;
55847
57695
  };
55848
57696
  Update: {
55849
57697
  algorithm_version?: number;
57698
+ buffer_id?: string | null;
55850
57699
  cart_number?: number;
55851
57700
  created_at?: string;
55852
57701
  id?: string;
@@ -55854,12 +57703,18 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
55854
57703
  is_complete?: boolean;
55855
57704
  notes?: string | null;
55856
57705
  occupancy_pct?: number;
55857
- order_id?: string;
57706
+ order_id?: string | null;
55858
57707
  source?: string;
55859
57708
  total_layers_used?: number;
55860
57709
  updated_at?: string;
55861
57710
  };
55862
57711
  Relationships: [{
57712
+ foreignKeyName: "order_carts_buffer_id_fkey";
57713
+ columns: ["buffer_id"];
57714
+ isOneToOne: false;
57715
+ referencedRelation: "order_buffers";
57716
+ referencedColumns: ["id"];
57717
+ }, {
55863
57718
  foreignKeyName: "order_carts_order_id_fkey";
55864
57719
  columns: ["order_id"];
55865
57720
  isOneToOne: false;
@@ -56097,12 +57952,14 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56097
57952
  };
56098
57953
  orders: {
56099
57954
  Row: {
57955
+ buffer_id: string | null;
56100
57956
  created_at: string;
56101
57957
  custom_fields: import("../integrations/supabase/types").Json;
56102
57958
  customer_id: string | null;
56103
57959
  customer_name: string;
56104
57960
  deleted_at: string | null;
56105
57961
  delivery_date: string | null;
57962
+ floriday_sales_order_id: string | null;
56106
57963
  id: string;
56107
57964
  is_reservation: boolean;
56108
57965
  notes: string | null;
@@ -56116,12 +57973,14 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56116
57973
  updated_at: string;
56117
57974
  };
56118
57975
  Insert: {
57976
+ buffer_id?: string | null;
56119
57977
  created_at?: string;
56120
57978
  custom_fields?: import("../integrations/supabase/types").Json;
56121
57979
  customer_id?: string | null;
56122
57980
  customer_name?: string;
56123
57981
  deleted_at?: string | null;
56124
57982
  delivery_date?: string | null;
57983
+ floriday_sales_order_id?: string | null;
56125
57984
  id?: string;
56126
57985
  is_reservation?: boolean;
56127
57986
  notes?: string | null;
@@ -56135,12 +57994,14 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56135
57994
  updated_at?: string;
56136
57995
  };
56137
57996
  Update: {
57997
+ buffer_id?: string | null;
56138
57998
  created_at?: string;
56139
57999
  custom_fields?: import("../integrations/supabase/types").Json;
56140
58000
  customer_id?: string | null;
56141
58001
  customer_name?: string;
56142
58002
  deleted_at?: string | null;
56143
58003
  delivery_date?: string | null;
58004
+ floriday_sales_order_id?: string | null;
56144
58005
  id?: string;
56145
58006
  is_reservation?: boolean;
56146
58007
  notes?: string | null;
@@ -56154,6 +58015,12 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56154
58015
  updated_at?: string;
56155
58016
  };
56156
58017
  Relationships: [{
58018
+ foreignKeyName: "orders_buffer_id_fkey";
58019
+ columns: ["buffer_id"];
58020
+ isOneToOne: false;
58021
+ referencedRelation: "order_buffers";
58022
+ referencedColumns: ["id"];
58023
+ }, {
56157
58024
  foreignKeyName: "orders_customer_id_fkey";
56158
58025
  columns: ["customer_id"];
56159
58026
  isOneToOne: false;
@@ -56291,6 +58158,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56291
58158
  created_at: string;
56292
58159
  id: string;
56293
58160
  notes: string | null;
58161
+ packing_configuration_id: string | null;
56294
58162
  parent_product_id: string | null;
56295
58163
  parent_trade_item_floriday_id: string | null;
56296
58164
  quantity: number;
@@ -56305,6 +58173,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56305
58173
  created_at?: string;
56306
58174
  id?: string;
56307
58175
  notes?: string | null;
58176
+ packing_configuration_id?: string | null;
56308
58177
  parent_product_id?: string | null;
56309
58178
  parent_trade_item_floriday_id?: string | null;
56310
58179
  quantity?: number;
@@ -56319,6 +58188,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56319
58188
  created_at?: string;
56320
58189
  id?: string;
56321
58190
  notes?: string | null;
58191
+ packing_configuration_id?: string | null;
56322
58192
  parent_product_id?: string | null;
56323
58193
  parent_trade_item_floriday_id?: string | null;
56324
58194
  quantity?: number;
@@ -56520,11 +58390,13 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56520
58390
  created_at: string;
56521
58391
  id: string;
56522
58392
  is_package: boolean;
58393
+ label: string | null;
56523
58394
  layers_per_load_carrier: number | null;
56524
58395
  load_carrier: string | null;
56525
58396
  package_id: string | null;
56526
58397
  package_label: string | null;
56527
58398
  packages_per_layer: number | null;
58399
+ packing_configuration_id: string;
56528
58400
  product_id: string | null;
56529
58401
  tenant_id: string;
56530
58402
  trade_item_floriday_id: string | null;
@@ -56535,11 +58407,13 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56535
58407
  created_at?: string;
56536
58408
  id?: string;
56537
58409
  is_package?: boolean;
58410
+ label?: string | null;
56538
58411
  layers_per_load_carrier?: number | null;
56539
58412
  load_carrier?: string | null;
56540
58413
  package_id?: string | null;
56541
58414
  package_label?: string | null;
56542
58415
  packages_per_layer?: number | null;
58416
+ packing_configuration_id?: string;
56543
58417
  product_id?: string | null;
56544
58418
  tenant_id: string;
56545
58419
  trade_item_floriday_id?: string | null;
@@ -56550,11 +58424,13 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56550
58424
  created_at?: string;
56551
58425
  id?: string;
56552
58426
  is_package?: boolean;
58427
+ label?: string | null;
56553
58428
  layers_per_load_carrier?: number | null;
56554
58429
  load_carrier?: string | null;
56555
58430
  package_id?: string | null;
56556
58431
  package_label?: string | null;
56557
58432
  packages_per_layer?: number | null;
58433
+ packing_configuration_id?: string;
56558
58434
  product_id?: string | null;
56559
58435
  tenant_id?: string;
56560
58436
  trade_item_floriday_id?: string | null;
@@ -56635,6 +58511,8 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56635
58511
  trade_item_key: string | null;
56636
58512
  unit: string;
56637
58513
  updated_at: string;
58514
+ vat_code: string | null;
58515
+ vat_rate: number | null;
56638
58516
  weight: string | null;
56639
58517
  };
56640
58518
  Insert: {
@@ -56663,6 +58541,8 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56663
58541
  trade_item_key?: string | null;
56664
58542
  unit?: string;
56665
58543
  updated_at?: string;
58544
+ vat_code?: string | null;
58545
+ vat_rate?: number | null;
56666
58546
  weight?: string | null;
56667
58547
  };
56668
58548
  Update: {
@@ -56691,6 +58571,8 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
56691
58571
  trade_item_key?: string | null;
56692
58572
  unit?: string;
56693
58573
  updated_at?: string;
58574
+ vat_code?: string | null;
58575
+ vat_rate?: number | null;
56694
58576
  weight?: string | null;
56695
58577
  };
56696
58578
  Relationships: [];
@@ -59766,6 +61648,12 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
59766
61648
  processed_items: number;
59767
61649
  }[];
59768
61650
  };
61651
+ calculate_layer_stock: {
61652
+ Args: {
61653
+ p_product_id: string;
61654
+ };
61655
+ Returns: number;
61656
+ };
59769
61657
  call_exact_route: {
59770
61658
  Args: {
59771
61659
  path: string;
@@ -60135,6 +62023,12 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60135
62023
  };
60136
62024
  Returns: string;
60137
62025
  };
62026
+ get_inventory_stock_for_key: {
62027
+ Args: {
62028
+ p_key: string;
62029
+ };
62030
+ Returns: number;
62031
+ };
60138
62032
  get_offer_by_link_code: {
60139
62033
  Args: {
60140
62034
  p_code: string;
@@ -60165,6 +62059,12 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60165
62059
  };
60166
62060
  Returns: string;
60167
62061
  };
62062
+ get_product_group_available_stock: {
62063
+ Args: {
62064
+ p_group_id: string;
62065
+ };
62066
+ Returns: number;
62067
+ };
60168
62068
  get_room_busy_windows: {
60169
62069
  Args: {
60170
62070
  p_from: string;
@@ -60731,12 +62631,22 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60731
62631
  };
60732
62632
  Returns: string[];
60733
62633
  };
62634
+ sync_all_layer_stocks: {
62635
+ Args: never;
62636
+ Returns: undefined;
62637
+ };
60734
62638
  sync_cached_packing_from_product: {
60735
62639
  Args: {
60736
62640
  p_product_id: string;
60737
62641
  };
60738
62642
  Returns: undefined;
60739
62643
  };
62644
+ sync_layer_stock: {
62645
+ Args: {
62646
+ p_product_id: string;
62647
+ };
62648
+ Returns: undefined;
62649
+ };
60740
62650
  sync_order_cart_item_packing_from_product: {
60741
62651
  Args: {
60742
62652
  p_product_id: string;
@@ -61840,6 +63750,141 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
61840
63750
  };
61841
63751
  Relationships: [];
61842
63752
  };
63753
+ cart_planning_pick_times: {
63754
+ Row: {
63755
+ created_at: string;
63756
+ id: string;
63757
+ pot_size: string;
63758
+ seconds_per_cart: number;
63759
+ updated_at: string;
63760
+ };
63761
+ Insert: {
63762
+ created_at?: string;
63763
+ id?: string;
63764
+ pot_size: string;
63765
+ seconds_per_cart: number;
63766
+ updated_at?: string;
63767
+ };
63768
+ Update: {
63769
+ created_at?: string;
63770
+ id?: string;
63771
+ pot_size?: string;
63772
+ seconds_per_cart?: number;
63773
+ updated_at?: string;
63774
+ };
63775
+ Relationships: [];
63776
+ };
63777
+ cart_planning_product_overrides: {
63778
+ Row: {
63779
+ created_at: string;
63780
+ id: string;
63781
+ max_party_share_per_layer_pct_override: number | null;
63782
+ never_mix: boolean;
63783
+ notes: string | null;
63784
+ product_id: string;
63785
+ updated_at: string;
63786
+ };
63787
+ Insert: {
63788
+ created_at?: string;
63789
+ id?: string;
63790
+ max_party_share_per_layer_pct_override?: number | null;
63791
+ never_mix?: boolean;
63792
+ notes?: string | null;
63793
+ product_id: string;
63794
+ updated_at?: string;
63795
+ };
63796
+ Update: {
63797
+ created_at?: string;
63798
+ id?: string;
63799
+ max_party_share_per_layer_pct_override?: number | null;
63800
+ never_mix?: boolean;
63801
+ notes?: string | null;
63802
+ product_id?: string;
63803
+ updated_at?: string;
63804
+ };
63805
+ Relationships: [{
63806
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
63807
+ columns: ["product_id"];
63808
+ isOneToOne: true;
63809
+ referencedRelation: "products";
63810
+ referencedColumns: ["id"];
63811
+ }];
63812
+ };
63813
+ cart_planning_settings: {
63814
+ Row: {
63815
+ allow_editing_after_pickstation_send: boolean;
63816
+ buffer_grouping_mode: string;
63817
+ combine_floriday_orders: boolean;
63818
+ combine_floriday_orders_window: string;
63819
+ combine_orders_scope: string;
63820
+ default_workers: number;
63821
+ id: number;
63822
+ max_beladingen_per_layer: number;
63823
+ max_customers_per_cart: number;
63824
+ max_one_customer_per_layer: boolean;
63825
+ max_party_share_per_layer_pct: number;
63826
+ optimization_strategy: string;
63827
+ own_cart_from_layers: number;
63828
+ pick_time_mode: string;
63829
+ plants_per_day: number;
63830
+ plants_per_hour: number;
63831
+ require_same_carrier: boolean;
63832
+ require_same_crate_type: boolean;
63833
+ require_same_delivery_date: boolean;
63834
+ require_same_delivery_location: boolean;
63835
+ updated_at: string;
63836
+ updated_by: string | null;
63837
+ };
63838
+ Insert: {
63839
+ allow_editing_after_pickstation_send?: boolean;
63840
+ buffer_grouping_mode?: string;
63841
+ combine_floriday_orders?: boolean;
63842
+ combine_floriday_orders_window?: string;
63843
+ combine_orders_scope?: string;
63844
+ default_workers?: number;
63845
+ id?: number;
63846
+ max_beladingen_per_layer?: number;
63847
+ max_customers_per_cart?: number;
63848
+ max_one_customer_per_layer?: boolean;
63849
+ max_party_share_per_layer_pct?: number;
63850
+ optimization_strategy?: string;
63851
+ own_cart_from_layers?: number;
63852
+ pick_time_mode?: string;
63853
+ plants_per_day?: number;
63854
+ plants_per_hour?: number;
63855
+ require_same_carrier?: boolean;
63856
+ require_same_crate_type?: boolean;
63857
+ require_same_delivery_date?: boolean;
63858
+ require_same_delivery_location?: boolean;
63859
+ updated_at?: string;
63860
+ updated_by?: string | null;
63861
+ };
63862
+ Update: {
63863
+ allow_editing_after_pickstation_send?: boolean;
63864
+ buffer_grouping_mode?: string;
63865
+ combine_floriday_orders?: boolean;
63866
+ combine_floriday_orders_window?: string;
63867
+ combine_orders_scope?: string;
63868
+ default_workers?: number;
63869
+ id?: number;
63870
+ max_beladingen_per_layer?: number;
63871
+ max_customers_per_cart?: number;
63872
+ max_one_customer_per_layer?: boolean;
63873
+ max_party_share_per_layer_pct?: number;
63874
+ optimization_strategy?: string;
63875
+ own_cart_from_layers?: number;
63876
+ pick_time_mode?: string;
63877
+ plants_per_day?: number;
63878
+ plants_per_hour?: number;
63879
+ require_same_carrier?: boolean;
63880
+ require_same_crate_type?: boolean;
63881
+ require_same_delivery_date?: boolean;
63882
+ require_same_delivery_location?: boolean;
63883
+ updated_at?: string;
63884
+ updated_by?: string | null;
63885
+ };
63886
+ Relationships: [];
63887
+ };
61843
63888
  cart_replan_queue: {
61844
63889
  Row: {
61845
63890
  attempts: number;
@@ -61870,6 +63915,39 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
61870
63915
  referencedColumns: ["id"];
61871
63916
  }];
61872
63917
  };
63918
+ cart_types: {
63919
+ Row: {
63920
+ created_at: string;
63921
+ id: string;
63922
+ is_default: boolean;
63923
+ layer_length_cm: number;
63924
+ layer_width_cm: number;
63925
+ layers_per_cart: number;
63926
+ name: string;
63927
+ updated_at: string;
63928
+ };
63929
+ Insert: {
63930
+ created_at?: string;
63931
+ id?: string;
63932
+ is_default?: boolean;
63933
+ layer_length_cm: number;
63934
+ layer_width_cm: number;
63935
+ layers_per_cart?: number;
63936
+ name: string;
63937
+ updated_at?: string;
63938
+ };
63939
+ Update: {
63940
+ created_at?: string;
63941
+ id?: string;
63942
+ is_default?: boolean;
63943
+ layer_length_cm?: number;
63944
+ layer_width_cm?: number;
63945
+ layers_per_cart?: number;
63946
+ name?: string;
63947
+ updated_at?: string;
63948
+ };
63949
+ Relationships: [];
63950
+ };
61873
63951
  collections: {
61874
63952
  Row: {
61875
63953
  created_at: string;
@@ -61894,6 +63972,36 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
61894
63972
  };
61895
63973
  Relationships: [];
61896
63974
  };
63975
+ crate_types: {
63976
+ Row: {
63977
+ created_at: string;
63978
+ id: string;
63979
+ length_cm: number;
63980
+ name: string;
63981
+ plants_per_crate: number;
63982
+ updated_at: string;
63983
+ width_cm: number;
63984
+ };
63985
+ Insert: {
63986
+ created_at?: string;
63987
+ id?: string;
63988
+ length_cm: number;
63989
+ name: string;
63990
+ plants_per_crate?: number;
63991
+ updated_at?: string;
63992
+ width_cm: number;
63993
+ };
63994
+ Update: {
63995
+ created_at?: string;
63996
+ id?: string;
63997
+ length_cm?: number;
63998
+ name?: string;
63999
+ plants_per_crate?: number;
64000
+ updated_at?: string;
64001
+ width_cm?: number;
64002
+ };
64003
+ Relationships: [];
64004
+ };
61897
64005
  customer_audit_log: {
61898
64006
  Row: {
61899
64007
  action: string;
@@ -65809,6 +67917,27 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
65809
67917
  referencedColumns: ["id"];
65810
67918
  }];
65811
67919
  };
67920
+ floriday_vbn_required_characteristics: {
67921
+ Row: {
67922
+ required_codes: string[];
67923
+ updated_at: string;
67924
+ updated_by: string | null;
67925
+ vbn_code: string;
67926
+ };
67927
+ Insert: {
67928
+ required_codes?: string[];
67929
+ updated_at?: string;
67930
+ updated_by?: string | null;
67931
+ vbn_code: string;
67932
+ };
67933
+ Update: {
67934
+ required_codes?: string[];
67935
+ updated_at?: string;
67936
+ updated_by?: string | null;
67937
+ vbn_code?: string;
67938
+ };
67939
+ Relationships: [];
67940
+ };
65812
67941
  floriday_warehouses_cache: {
65813
67942
  Row: {
65814
67943
  connection_id: string;
@@ -66511,6 +68640,69 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
66511
68640
  };
66512
68641
  Relationships: [];
66513
68642
  };
68643
+ logistics_capacity_events: {
68644
+ Row: {
68645
+ available_carts: number;
68646
+ created_at: string;
68647
+ id: string;
68648
+ measures: import("../integrations/supabase/types").Json;
68649
+ note: string | null;
68650
+ outcome: string;
68651
+ required_carts: number;
68652
+ reserve_minutes: number;
68653
+ shortage_carts: number;
68654
+ status: string;
68655
+ user_id: string;
68656
+ };
68657
+ Insert: {
68658
+ available_carts?: number;
68659
+ created_at?: string;
68660
+ id?: string;
68661
+ measures?: import("../integrations/supabase/types").Json;
68662
+ note?: string | null;
68663
+ outcome?: string;
68664
+ required_carts?: number;
68665
+ reserve_minutes?: number;
68666
+ shortage_carts?: number;
68667
+ status: string;
68668
+ user_id: string;
68669
+ };
68670
+ Update: {
68671
+ available_carts?: number;
68672
+ created_at?: string;
68673
+ id?: string;
68674
+ measures?: import("../integrations/supabase/types").Json;
68675
+ note?: string | null;
68676
+ outcome?: string;
68677
+ required_carts?: number;
68678
+ reserve_minutes?: number;
68679
+ shortage_carts?: number;
68680
+ status?: string;
68681
+ user_id?: string;
68682
+ };
68683
+ Relationships: [];
68684
+ };
68685
+ logistics_capacity_settings: {
68686
+ Row: {
68687
+ created_at: string;
68688
+ settings: import("../integrations/supabase/types").Json;
68689
+ updated_at: string;
68690
+ user_id: string;
68691
+ };
68692
+ Insert: {
68693
+ created_at?: string;
68694
+ settings?: import("../integrations/supabase/types").Json;
68695
+ updated_at?: string;
68696
+ user_id: string;
68697
+ };
68698
+ Update: {
68699
+ created_at?: string;
68700
+ settings?: import("../integrations/supabase/types").Json;
68701
+ updated_at?: string;
68702
+ user_id?: string;
68703
+ };
68704
+ Relationships: [];
68705
+ };
66514
68706
  logistics_decisions: {
66515
68707
  Row: {
66516
68708
  created_at: string;
@@ -67906,6 +70098,42 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
67906
70098
  };
67907
70099
  Relationships: [];
67908
70100
  };
70101
+ order_buffers: {
70102
+ Row: {
70103
+ buffer_key: string;
70104
+ created_at: string;
70105
+ customer_id: string | null;
70106
+ grouping_mode: string;
70107
+ id: string;
70108
+ pickup_date: string | null;
70109
+ pickup_location: string | null;
70110
+ plan_locked_at: string | null;
70111
+ updated_at: string;
70112
+ };
70113
+ Insert: {
70114
+ buffer_key: string;
70115
+ created_at?: string;
70116
+ customer_id?: string | null;
70117
+ grouping_mode: string;
70118
+ id?: string;
70119
+ pickup_date?: string | null;
70120
+ pickup_location?: string | null;
70121
+ plan_locked_at?: string | null;
70122
+ updated_at?: string;
70123
+ };
70124
+ Update: {
70125
+ buffer_key?: string;
70126
+ created_at?: string;
70127
+ customer_id?: string | null;
70128
+ grouping_mode?: string;
70129
+ id?: string;
70130
+ pickup_date?: string | null;
70131
+ pickup_location?: string | null;
70132
+ plan_locked_at?: string | null;
70133
+ updated_at?: string;
70134
+ };
70135
+ Relationships: [];
70136
+ };
67909
70137
  order_cart_items: {
67910
70138
  Row: {
67911
70139
  cart_id: string;
@@ -67972,6 +70200,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
67972
70200
  order_carts: {
67973
70201
  Row: {
67974
70202
  algorithm_version: number;
70203
+ buffer_id: string | null;
67975
70204
  cart_number: number;
67976
70205
  created_at: string;
67977
70206
  id: string;
@@ -67979,13 +70208,14 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
67979
70208
  is_complete: boolean;
67980
70209
  notes: string | null;
67981
70210
  occupancy_pct: number;
67982
- order_id: string;
70211
+ order_id: string | null;
67983
70212
  source: string;
67984
70213
  total_layers_used: number;
67985
70214
  updated_at: string;
67986
70215
  };
67987
70216
  Insert: {
67988
70217
  algorithm_version?: number;
70218
+ buffer_id?: string | null;
67989
70219
  cart_number: number;
67990
70220
  created_at?: string;
67991
70221
  id?: string;
@@ -67993,13 +70223,14 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
67993
70223
  is_complete?: boolean;
67994
70224
  notes?: string | null;
67995
70225
  occupancy_pct?: number;
67996
- order_id: string;
70226
+ order_id?: string | null;
67997
70227
  source?: string;
67998
70228
  total_layers_used?: number;
67999
70229
  updated_at?: string;
68000
70230
  };
68001
70231
  Update: {
68002
70232
  algorithm_version?: number;
70233
+ buffer_id?: string | null;
68003
70234
  cart_number?: number;
68004
70235
  created_at?: string;
68005
70236
  id?: string;
@@ -68007,12 +70238,18 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68007
70238
  is_complete?: boolean;
68008
70239
  notes?: string | null;
68009
70240
  occupancy_pct?: number;
68010
- order_id?: string;
70241
+ order_id?: string | null;
68011
70242
  source?: string;
68012
70243
  total_layers_used?: number;
68013
70244
  updated_at?: string;
68014
70245
  };
68015
70246
  Relationships: [{
70247
+ foreignKeyName: "order_carts_buffer_id_fkey";
70248
+ columns: ["buffer_id"];
70249
+ isOneToOne: false;
70250
+ referencedRelation: "order_buffers";
70251
+ referencedColumns: ["id"];
70252
+ }, {
68016
70253
  foreignKeyName: "order_carts_order_id_fkey";
68017
70254
  columns: ["order_id"];
68018
70255
  isOneToOne: false;
@@ -68250,12 +70487,14 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68250
70487
  };
68251
70488
  orders: {
68252
70489
  Row: {
70490
+ buffer_id: string | null;
68253
70491
  created_at: string;
68254
70492
  custom_fields: import("../integrations/supabase/types").Json;
68255
70493
  customer_id: string | null;
68256
70494
  customer_name: string;
68257
70495
  deleted_at: string | null;
68258
70496
  delivery_date: string | null;
70497
+ floriday_sales_order_id: string | null;
68259
70498
  id: string;
68260
70499
  is_reservation: boolean;
68261
70500
  notes: string | null;
@@ -68269,12 +70508,14 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68269
70508
  updated_at: string;
68270
70509
  };
68271
70510
  Insert: {
70511
+ buffer_id?: string | null;
68272
70512
  created_at?: string;
68273
70513
  custom_fields?: import("../integrations/supabase/types").Json;
68274
70514
  customer_id?: string | null;
68275
70515
  customer_name?: string;
68276
70516
  deleted_at?: string | null;
68277
70517
  delivery_date?: string | null;
70518
+ floriday_sales_order_id?: string | null;
68278
70519
  id?: string;
68279
70520
  is_reservation?: boolean;
68280
70521
  notes?: string | null;
@@ -68288,12 +70529,14 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68288
70529
  updated_at?: string;
68289
70530
  };
68290
70531
  Update: {
70532
+ buffer_id?: string | null;
68291
70533
  created_at?: string;
68292
70534
  custom_fields?: import("../integrations/supabase/types").Json;
68293
70535
  customer_id?: string | null;
68294
70536
  customer_name?: string;
68295
70537
  deleted_at?: string | null;
68296
70538
  delivery_date?: string | null;
70539
+ floriday_sales_order_id?: string | null;
68297
70540
  id?: string;
68298
70541
  is_reservation?: boolean;
68299
70542
  notes?: string | null;
@@ -68307,6 +70550,12 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68307
70550
  updated_at?: string;
68308
70551
  };
68309
70552
  Relationships: [{
70553
+ foreignKeyName: "orders_buffer_id_fkey";
70554
+ columns: ["buffer_id"];
70555
+ isOneToOne: false;
70556
+ referencedRelation: "order_buffers";
70557
+ referencedColumns: ["id"];
70558
+ }, {
68310
70559
  foreignKeyName: "orders_customer_id_fkey";
68311
70560
  columns: ["customer_id"];
68312
70561
  isOneToOne: false;
@@ -68444,6 +70693,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68444
70693
  created_at: string;
68445
70694
  id: string;
68446
70695
  notes: string | null;
70696
+ packing_configuration_id: string | null;
68447
70697
  parent_product_id: string | null;
68448
70698
  parent_trade_item_floriday_id: string | null;
68449
70699
  quantity: number;
@@ -68458,6 +70708,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68458
70708
  created_at?: string;
68459
70709
  id?: string;
68460
70710
  notes?: string | null;
70711
+ packing_configuration_id?: string | null;
68461
70712
  parent_product_id?: string | null;
68462
70713
  parent_trade_item_floriday_id?: string | null;
68463
70714
  quantity?: number;
@@ -68472,6 +70723,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68472
70723
  created_at?: string;
68473
70724
  id?: string;
68474
70725
  notes?: string | null;
70726
+ packing_configuration_id?: string | null;
68475
70727
  parent_product_id?: string | null;
68476
70728
  parent_trade_item_floriday_id?: string | null;
68477
70729
  quantity?: number;
@@ -68673,11 +70925,13 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68673
70925
  created_at: string;
68674
70926
  id: string;
68675
70927
  is_package: boolean;
70928
+ label: string | null;
68676
70929
  layers_per_load_carrier: number | null;
68677
70930
  load_carrier: string | null;
68678
70931
  package_id: string | null;
68679
70932
  package_label: string | null;
68680
70933
  packages_per_layer: number | null;
70934
+ packing_configuration_id: string;
68681
70935
  product_id: string | null;
68682
70936
  tenant_id: string;
68683
70937
  trade_item_floriday_id: string | null;
@@ -68688,11 +70942,13 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68688
70942
  created_at?: string;
68689
70943
  id?: string;
68690
70944
  is_package?: boolean;
70945
+ label?: string | null;
68691
70946
  layers_per_load_carrier?: number | null;
68692
70947
  load_carrier?: string | null;
68693
70948
  package_id?: string | null;
68694
70949
  package_label?: string | null;
68695
70950
  packages_per_layer?: number | null;
70951
+ packing_configuration_id?: string;
68696
70952
  product_id?: string | null;
68697
70953
  tenant_id: string;
68698
70954
  trade_item_floriday_id?: string | null;
@@ -68703,11 +70959,13 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68703
70959
  created_at?: string;
68704
70960
  id?: string;
68705
70961
  is_package?: boolean;
70962
+ label?: string | null;
68706
70963
  layers_per_load_carrier?: number | null;
68707
70964
  load_carrier?: string | null;
68708
70965
  package_id?: string | null;
68709
70966
  package_label?: string | null;
68710
70967
  packages_per_layer?: number | null;
70968
+ packing_configuration_id?: string;
68711
70969
  product_id?: string | null;
68712
70970
  tenant_id?: string;
68713
70971
  trade_item_floriday_id?: string | null;
@@ -68788,6 +71046,8 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68788
71046
  trade_item_key: string | null;
68789
71047
  unit: string;
68790
71048
  updated_at: string;
71049
+ vat_code: string | null;
71050
+ vat_rate: number | null;
68791
71051
  weight: string | null;
68792
71052
  };
68793
71053
  Insert: {
@@ -68816,6 +71076,8 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68816
71076
  trade_item_key?: string | null;
68817
71077
  unit?: string;
68818
71078
  updated_at?: string;
71079
+ vat_code?: string | null;
71080
+ vat_rate?: number | null;
68819
71081
  weight?: string | null;
68820
71082
  };
68821
71083
  Update: {
@@ -68844,6 +71106,8 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
68844
71106
  trade_item_key?: string | null;
68845
71107
  unit?: string;
68846
71108
  updated_at?: string;
71109
+ vat_code?: string | null;
71110
+ vat_rate?: number | null;
68847
71111
  weight?: string | null;
68848
71112
  };
68849
71113
  Relationships: [];
@@ -71919,6 +74183,12 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
71919
74183
  processed_items: number;
71920
74184
  }[];
71921
74185
  };
74186
+ calculate_layer_stock: {
74187
+ Args: {
74188
+ p_product_id: string;
74189
+ };
74190
+ Returns: number;
74191
+ };
71922
74192
  call_exact_route: {
71923
74193
  Args: {
71924
74194
  path: string;
@@ -72288,6 +74558,12 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
72288
74558
  };
72289
74559
  Returns: string;
72290
74560
  };
74561
+ get_inventory_stock_for_key: {
74562
+ Args: {
74563
+ p_key: string;
74564
+ };
74565
+ Returns: number;
74566
+ };
72291
74567
  get_offer_by_link_code: {
72292
74568
  Args: {
72293
74569
  p_code: string;
@@ -72318,6 +74594,12 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
72318
74594
  };
72319
74595
  Returns: string;
72320
74596
  };
74597
+ get_product_group_available_stock: {
74598
+ Args: {
74599
+ p_group_id: string;
74600
+ };
74601
+ Returns: number;
74602
+ };
72321
74603
  get_room_busy_windows: {
72322
74604
  Args: {
72323
74605
  p_from: string;
@@ -72884,12 +75166,22 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
72884
75166
  };
72885
75167
  Returns: string[];
72886
75168
  };
75169
+ sync_all_layer_stocks: {
75170
+ Args: never;
75171
+ Returns: undefined;
75172
+ };
72887
75173
  sync_cached_packing_from_product: {
72888
75174
  Args: {
72889
75175
  p_product_id: string;
72890
75176
  };
72891
75177
  Returns: undefined;
72892
75178
  };
75179
+ sync_layer_stock: {
75180
+ Args: {
75181
+ p_product_id: string;
75182
+ };
75183
+ Returns: undefined;
75184
+ };
72893
75185
  sync_order_cart_item_packing_from_product: {
72894
75186
  Args: {
72895
75187
  p_product_id: string;