@flowselections/floriday-authenticatie-module 1.0.22 → 1.0.24

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 (47) hide show
  1. package/dist-lib/components/settings/FloricodeSettingsCard.js +1 -1
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts +385 -3
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  4. package/dist-lib/integrations/supabase/client.d.ts +385 -3
  5. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  6. package/dist-lib/integrations/supabase/client.server.d.ts +385 -3
  7. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.server.js +1 -0
  9. package/dist-lib/integrations/supabase/types.d.ts +389 -3
  10. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  11. package/dist-lib/lib/central-auth.server.d.ts +34 -0
  12. package/dist-lib/lib/central-auth.server.d.ts.map +1 -0
  13. package/dist-lib/lib/central-auth.server.js +105 -0
  14. package/dist-lib/lib/floricode-credentials.server.d.ts.map +1 -1
  15. package/dist-lib/lib/floricode-credentials.server.js +94 -26
  16. package/dist-lib/lib/floricode.functions.d.ts +2758 -83
  17. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floricode.functions.js +13 -0
  19. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +385 -3
  20. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/floriday-labels.functions.d.ts +385 -3
  22. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-public.functions.d.ts +2310 -18
  24. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-stickers.functions.d.ts +385 -3
  26. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-sync.functions.d.ts +12493 -651
  28. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-sync.functions.js +2 -1
  30. package/dist-lib/lib/floriday-writes.functions.d.ts +2310 -18
  31. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday.functions.d.ts +7322 -321
  33. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday.functions.js +33 -35
  35. package/dist-lib/lib/gateway/cache-tables.d.ts +2 -0
  36. package/dist-lib/lib/gateway/cache-tables.d.ts.map +1 -0
  37. package/dist-lib/lib/gateway/cache-tables.js +27 -0
  38. package/dist-lib/lib/gateway/cached-list.d.ts +15 -0
  39. package/dist-lib/lib/gateway/cached-list.d.ts.map +1 -0
  40. package/dist-lib/lib/gateway/cached-list.js +35 -0
  41. package/dist-lib/lib/gateway/index.d.ts +4 -0
  42. package/dist-lib/lib/gateway/index.d.ts.map +1 -0
  43. package/dist-lib/lib/gateway/index.js +3 -0
  44. package/dist-lib/lib/gateway/shared.d.ts +2 -0
  45. package/dist-lib/lib/gateway/shared.d.ts.map +1 -0
  46. package/dist-lib/lib/gateway/shared.js +3 -0
  47. package/package.json +6 -2
@@ -15,6 +15,18 @@ export const getFloricodeSettings = createServerFn({ method: "GET" })
15
15
  .maybeSingle();
16
16
  if (error)
17
17
  throw new Error(error.message);
18
+ // Parse keyVersion server-side uit de fc1-prefix; raw ciphertext blijft
19
+ // server-only en gaat niet mee naar de client.
20
+ let keyVersion = null;
21
+ const ct = data?.client_secret_ciphertext;
22
+ if (typeof ct === "string" && ct.startsWith("fc1.")) {
23
+ const parts = ct.split(".");
24
+ if (parts.length === 5) {
25
+ const v = Number(parts[1]);
26
+ if (Number.isInteger(v) && v >= 1)
27
+ keyVersion = v;
28
+ }
29
+ }
18
30
  return {
19
31
  clientId: data?.client_id ?? null,
20
32
  secretLast4: data?.client_secret_last4 ?? null,
@@ -22,6 +34,7 @@ export const getFloricodeSettings = createServerFn({ method: "GET" })
22
34
  lastTokenTestAt: data?.last_token_test_at ?? null,
23
35
  lastTokenTestOk: data?.last_token_test_ok ?? null,
24
36
  lastTokenTestError: data?.last_token_test_error ?? null,
37
+ keyVersion,
25
38
  };
26
39
  });
27
40
  export const saveFloricodeCredentials = createServerFn({ method: "POST" })
@@ -1041,6 +1041,141 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
1041
1041
  };
1042
1042
  Relationships: [];
1043
1043
  };
1044
+ cart_planning_pick_times: {
1045
+ Row: {
1046
+ created_at: string;
1047
+ id: string;
1048
+ pot_size: string;
1049
+ seconds_per_cart: number;
1050
+ updated_at: string;
1051
+ };
1052
+ Insert: {
1053
+ created_at?: string;
1054
+ id?: string;
1055
+ pot_size: string;
1056
+ seconds_per_cart: number;
1057
+ updated_at?: string;
1058
+ };
1059
+ Update: {
1060
+ created_at?: string;
1061
+ id?: string;
1062
+ pot_size?: string;
1063
+ seconds_per_cart?: number;
1064
+ updated_at?: string;
1065
+ };
1066
+ Relationships: [];
1067
+ };
1068
+ cart_planning_product_overrides: {
1069
+ Row: {
1070
+ created_at: string;
1071
+ id: string;
1072
+ max_party_share_per_layer_pct_override: number | null;
1073
+ never_mix: boolean;
1074
+ notes: string | null;
1075
+ product_id: string;
1076
+ updated_at: string;
1077
+ };
1078
+ Insert: {
1079
+ created_at?: string;
1080
+ id?: string;
1081
+ max_party_share_per_layer_pct_override?: number | null;
1082
+ never_mix?: boolean;
1083
+ notes?: string | null;
1084
+ product_id: string;
1085
+ updated_at?: string;
1086
+ };
1087
+ Update: {
1088
+ created_at?: string;
1089
+ id?: string;
1090
+ max_party_share_per_layer_pct_override?: number | null;
1091
+ never_mix?: boolean;
1092
+ notes?: string | null;
1093
+ product_id?: string;
1094
+ updated_at?: string;
1095
+ };
1096
+ Relationships: [{
1097
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1098
+ columns: ["product_id"];
1099
+ isOneToOne: true;
1100
+ referencedRelation: "products";
1101
+ referencedColumns: ["id"];
1102
+ }];
1103
+ };
1104
+ cart_planning_settings: {
1105
+ Row: {
1106
+ allow_editing_after_pickstation_send: boolean;
1107
+ buffer_grouping_mode: string;
1108
+ combine_floriday_orders: boolean;
1109
+ combine_floriday_orders_window: string;
1110
+ combine_orders_scope: string;
1111
+ default_workers: number;
1112
+ id: number;
1113
+ max_beladingen_per_layer: number;
1114
+ max_customers_per_cart: number;
1115
+ max_one_customer_per_layer: boolean;
1116
+ max_party_share_per_layer_pct: number;
1117
+ optimization_strategy: string;
1118
+ own_cart_from_layers: number;
1119
+ pick_time_mode: string;
1120
+ plants_per_day: number;
1121
+ plants_per_hour: number;
1122
+ require_same_carrier: boolean;
1123
+ require_same_crate_type: boolean;
1124
+ require_same_delivery_date: boolean;
1125
+ require_same_delivery_location: boolean;
1126
+ updated_at: string;
1127
+ updated_by: string | null;
1128
+ };
1129
+ Insert: {
1130
+ allow_editing_after_pickstation_send?: boolean;
1131
+ buffer_grouping_mode?: string;
1132
+ combine_floriday_orders?: boolean;
1133
+ combine_floriday_orders_window?: string;
1134
+ combine_orders_scope?: string;
1135
+ default_workers?: number;
1136
+ id?: number;
1137
+ max_beladingen_per_layer?: number;
1138
+ max_customers_per_cart?: number;
1139
+ max_one_customer_per_layer?: boolean;
1140
+ max_party_share_per_layer_pct?: number;
1141
+ optimization_strategy?: string;
1142
+ own_cart_from_layers?: number;
1143
+ pick_time_mode?: string;
1144
+ plants_per_day?: number;
1145
+ plants_per_hour?: number;
1146
+ require_same_carrier?: boolean;
1147
+ require_same_crate_type?: boolean;
1148
+ require_same_delivery_date?: boolean;
1149
+ require_same_delivery_location?: boolean;
1150
+ updated_at?: string;
1151
+ updated_by?: string | null;
1152
+ };
1153
+ Update: {
1154
+ allow_editing_after_pickstation_send?: boolean;
1155
+ buffer_grouping_mode?: string;
1156
+ combine_floriday_orders?: boolean;
1157
+ combine_floriday_orders_window?: string;
1158
+ combine_orders_scope?: string;
1159
+ default_workers?: number;
1160
+ id?: number;
1161
+ max_beladingen_per_layer?: number;
1162
+ max_customers_per_cart?: number;
1163
+ max_one_customer_per_layer?: boolean;
1164
+ max_party_share_per_layer_pct?: number;
1165
+ optimization_strategy?: string;
1166
+ own_cart_from_layers?: number;
1167
+ pick_time_mode?: string;
1168
+ plants_per_day?: number;
1169
+ plants_per_hour?: number;
1170
+ require_same_carrier?: boolean;
1171
+ require_same_crate_type?: boolean;
1172
+ require_same_delivery_date?: boolean;
1173
+ require_same_delivery_location?: boolean;
1174
+ updated_at?: string;
1175
+ updated_by?: string | null;
1176
+ };
1177
+ Relationships: [];
1178
+ };
1044
1179
  cart_replan_queue: {
1045
1180
  Row: {
1046
1181
  attempts: number;
@@ -1071,6 +1206,39 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
1071
1206
  referencedColumns: ["id"];
1072
1207
  }];
1073
1208
  };
1209
+ cart_types: {
1210
+ Row: {
1211
+ created_at: string;
1212
+ id: string;
1213
+ is_default: boolean;
1214
+ layer_length_cm: number;
1215
+ layer_width_cm: number;
1216
+ layers_per_cart: number;
1217
+ name: string;
1218
+ updated_at: string;
1219
+ };
1220
+ Insert: {
1221
+ created_at?: string;
1222
+ id?: string;
1223
+ is_default?: boolean;
1224
+ layer_length_cm: number;
1225
+ layer_width_cm: number;
1226
+ layers_per_cart?: number;
1227
+ name: string;
1228
+ updated_at?: string;
1229
+ };
1230
+ Update: {
1231
+ created_at?: string;
1232
+ id?: string;
1233
+ is_default?: boolean;
1234
+ layer_length_cm?: number;
1235
+ layer_width_cm?: number;
1236
+ layers_per_cart?: number;
1237
+ name?: string;
1238
+ updated_at?: string;
1239
+ };
1240
+ Relationships: [];
1241
+ };
1074
1242
  collections: {
1075
1243
  Row: {
1076
1244
  created_at: string;
@@ -1095,6 +1263,36 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
1095
1263
  };
1096
1264
  Relationships: [];
1097
1265
  };
1266
+ crate_types: {
1267
+ Row: {
1268
+ created_at: string;
1269
+ id: string;
1270
+ length_cm: number;
1271
+ name: string;
1272
+ plants_per_crate: number;
1273
+ updated_at: string;
1274
+ width_cm: number;
1275
+ };
1276
+ Insert: {
1277
+ created_at?: string;
1278
+ id?: string;
1279
+ length_cm: number;
1280
+ name: string;
1281
+ plants_per_crate?: number;
1282
+ updated_at?: string;
1283
+ width_cm: number;
1284
+ };
1285
+ Update: {
1286
+ created_at?: string;
1287
+ id?: string;
1288
+ length_cm?: number;
1289
+ name?: string;
1290
+ plants_per_crate?: number;
1291
+ updated_at?: string;
1292
+ width_cm?: number;
1293
+ };
1294
+ Relationships: [];
1295
+ };
1098
1296
  customer_audit_log: {
1099
1297
  Row: {
1100
1298
  action: string;
@@ -5010,6 +5208,27 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
5010
5208
  referencedColumns: ["id"];
5011
5209
  }];
5012
5210
  };
5211
+ floriday_vbn_required_characteristics: {
5212
+ Row: {
5213
+ required_codes: string[];
5214
+ updated_at: string;
5215
+ updated_by: string | null;
5216
+ vbn_code: string;
5217
+ };
5218
+ Insert: {
5219
+ required_codes?: string[];
5220
+ updated_at?: string;
5221
+ updated_by?: string | null;
5222
+ vbn_code: string;
5223
+ };
5224
+ Update: {
5225
+ required_codes?: string[];
5226
+ updated_at?: string;
5227
+ updated_by?: string | null;
5228
+ vbn_code?: string;
5229
+ };
5230
+ Relationships: [];
5231
+ };
5013
5232
  floriday_warehouses_cache: {
5014
5233
  Row: {
5015
5234
  connection_id: string;
@@ -5712,6 +5931,69 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
5712
5931
  };
5713
5932
  Relationships: [];
5714
5933
  };
5934
+ logistics_capacity_events: {
5935
+ Row: {
5936
+ available_carts: number;
5937
+ created_at: string;
5938
+ id: string;
5939
+ measures: import("../integrations/supabase/types").Json;
5940
+ note: string | null;
5941
+ outcome: string;
5942
+ required_carts: number;
5943
+ reserve_minutes: number;
5944
+ shortage_carts: number;
5945
+ status: string;
5946
+ user_id: string;
5947
+ };
5948
+ Insert: {
5949
+ available_carts?: number;
5950
+ created_at?: string;
5951
+ id?: string;
5952
+ measures?: import("../integrations/supabase/types").Json;
5953
+ note?: string | null;
5954
+ outcome?: string;
5955
+ required_carts?: number;
5956
+ reserve_minutes?: number;
5957
+ shortage_carts?: number;
5958
+ status: string;
5959
+ user_id: string;
5960
+ };
5961
+ Update: {
5962
+ available_carts?: number;
5963
+ created_at?: string;
5964
+ id?: string;
5965
+ measures?: import("../integrations/supabase/types").Json;
5966
+ note?: string | null;
5967
+ outcome?: string;
5968
+ required_carts?: number;
5969
+ reserve_minutes?: number;
5970
+ shortage_carts?: number;
5971
+ status?: string;
5972
+ user_id?: string;
5973
+ };
5974
+ Relationships: [];
5975
+ };
5976
+ logistics_capacity_settings: {
5977
+ Row: {
5978
+ created_at: string;
5979
+ settings: import("../integrations/supabase/types").Json;
5980
+ updated_at: string;
5981
+ user_id: string;
5982
+ };
5983
+ Insert: {
5984
+ created_at?: string;
5985
+ settings?: import("../integrations/supabase/types").Json;
5986
+ updated_at?: string;
5987
+ user_id: string;
5988
+ };
5989
+ Update: {
5990
+ created_at?: string;
5991
+ settings?: import("../integrations/supabase/types").Json;
5992
+ updated_at?: string;
5993
+ user_id?: string;
5994
+ };
5995
+ Relationships: [];
5996
+ };
5715
5997
  logistics_decisions: {
5716
5998
  Row: {
5717
5999
  created_at: string;
@@ -7107,6 +7389,42 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7107
7389
  };
7108
7390
  Relationships: [];
7109
7391
  };
7392
+ order_buffers: {
7393
+ Row: {
7394
+ buffer_key: string;
7395
+ created_at: string;
7396
+ customer_id: string | null;
7397
+ grouping_mode: string;
7398
+ id: string;
7399
+ pickup_date: string | null;
7400
+ pickup_location: string | null;
7401
+ plan_locked_at: string | null;
7402
+ updated_at: string;
7403
+ };
7404
+ Insert: {
7405
+ buffer_key: string;
7406
+ created_at?: string;
7407
+ customer_id?: string | null;
7408
+ grouping_mode: string;
7409
+ id?: string;
7410
+ pickup_date?: string | null;
7411
+ pickup_location?: string | null;
7412
+ plan_locked_at?: string | null;
7413
+ updated_at?: string;
7414
+ };
7415
+ Update: {
7416
+ buffer_key?: string;
7417
+ created_at?: string;
7418
+ customer_id?: string | null;
7419
+ grouping_mode?: string;
7420
+ id?: string;
7421
+ pickup_date?: string | null;
7422
+ pickup_location?: string | null;
7423
+ plan_locked_at?: string | null;
7424
+ updated_at?: string;
7425
+ };
7426
+ Relationships: [];
7427
+ };
7110
7428
  order_cart_items: {
7111
7429
  Row: {
7112
7430
  cart_id: string;
@@ -7173,6 +7491,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7173
7491
  order_carts: {
7174
7492
  Row: {
7175
7493
  algorithm_version: number;
7494
+ buffer_id: string | null;
7176
7495
  cart_number: number;
7177
7496
  created_at: string;
7178
7497
  id: string;
@@ -7180,13 +7499,14 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7180
7499
  is_complete: boolean;
7181
7500
  notes: string | null;
7182
7501
  occupancy_pct: number;
7183
- order_id: string;
7502
+ order_id: string | null;
7184
7503
  source: string;
7185
7504
  total_layers_used: number;
7186
7505
  updated_at: string;
7187
7506
  };
7188
7507
  Insert: {
7189
7508
  algorithm_version?: number;
7509
+ buffer_id?: string | null;
7190
7510
  cart_number: number;
7191
7511
  created_at?: string;
7192
7512
  id?: string;
@@ -7194,13 +7514,14 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7194
7514
  is_complete?: boolean;
7195
7515
  notes?: string | null;
7196
7516
  occupancy_pct?: number;
7197
- order_id: string;
7517
+ order_id?: string | null;
7198
7518
  source?: string;
7199
7519
  total_layers_used?: number;
7200
7520
  updated_at?: string;
7201
7521
  };
7202
7522
  Update: {
7203
7523
  algorithm_version?: number;
7524
+ buffer_id?: string | null;
7204
7525
  cart_number?: number;
7205
7526
  created_at?: string;
7206
7527
  id?: string;
@@ -7208,12 +7529,18 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7208
7529
  is_complete?: boolean;
7209
7530
  notes?: string | null;
7210
7531
  occupancy_pct?: number;
7211
- order_id?: string;
7532
+ order_id?: string | null;
7212
7533
  source?: string;
7213
7534
  total_layers_used?: number;
7214
7535
  updated_at?: string;
7215
7536
  };
7216
7537
  Relationships: [{
7538
+ foreignKeyName: "order_carts_buffer_id_fkey";
7539
+ columns: ["buffer_id"];
7540
+ isOneToOne: false;
7541
+ referencedRelation: "order_buffers";
7542
+ referencedColumns: ["id"];
7543
+ }, {
7217
7544
  foreignKeyName: "order_carts_order_id_fkey";
7218
7545
  columns: ["order_id"];
7219
7546
  isOneToOne: false;
@@ -7451,12 +7778,14 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7451
7778
  };
7452
7779
  orders: {
7453
7780
  Row: {
7781
+ buffer_id: string | null;
7454
7782
  created_at: string;
7455
7783
  custom_fields: import("../integrations/supabase/types").Json;
7456
7784
  customer_id: string | null;
7457
7785
  customer_name: string;
7458
7786
  deleted_at: string | null;
7459
7787
  delivery_date: string | null;
7788
+ floriday_sales_order_id: string | null;
7460
7789
  id: string;
7461
7790
  is_reservation: boolean;
7462
7791
  notes: string | null;
@@ -7470,12 +7799,14 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7470
7799
  updated_at: string;
7471
7800
  };
7472
7801
  Insert: {
7802
+ buffer_id?: string | null;
7473
7803
  created_at?: string;
7474
7804
  custom_fields?: import("../integrations/supabase/types").Json;
7475
7805
  customer_id?: string | null;
7476
7806
  customer_name?: string;
7477
7807
  deleted_at?: string | null;
7478
7808
  delivery_date?: string | null;
7809
+ floriday_sales_order_id?: string | null;
7479
7810
  id?: string;
7480
7811
  is_reservation?: boolean;
7481
7812
  notes?: string | null;
@@ -7489,12 +7820,14 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7489
7820
  updated_at?: string;
7490
7821
  };
7491
7822
  Update: {
7823
+ buffer_id?: string | null;
7492
7824
  created_at?: string;
7493
7825
  custom_fields?: import("../integrations/supabase/types").Json;
7494
7826
  customer_id?: string | null;
7495
7827
  customer_name?: string;
7496
7828
  deleted_at?: string | null;
7497
7829
  delivery_date?: string | null;
7830
+ floriday_sales_order_id?: string | null;
7498
7831
  id?: string;
7499
7832
  is_reservation?: boolean;
7500
7833
  notes?: string | null;
@@ -7508,6 +7841,12 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7508
7841
  updated_at?: string;
7509
7842
  };
7510
7843
  Relationships: [{
7844
+ foreignKeyName: "orders_buffer_id_fkey";
7845
+ columns: ["buffer_id"];
7846
+ isOneToOne: false;
7847
+ referencedRelation: "order_buffers";
7848
+ referencedColumns: ["id"];
7849
+ }, {
7511
7850
  foreignKeyName: "orders_customer_id_fkey";
7512
7851
  columns: ["customer_id"];
7513
7852
  isOneToOne: false;
@@ -7645,6 +7984,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7645
7984
  created_at: string;
7646
7985
  id: string;
7647
7986
  notes: string | null;
7987
+ packing_configuration_id: string | null;
7648
7988
  parent_product_id: string | null;
7649
7989
  parent_trade_item_floriday_id: string | null;
7650
7990
  quantity: number;
@@ -7659,6 +7999,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7659
7999
  created_at?: string;
7660
8000
  id?: string;
7661
8001
  notes?: string | null;
8002
+ packing_configuration_id?: string | null;
7662
8003
  parent_product_id?: string | null;
7663
8004
  parent_trade_item_floriday_id?: string | null;
7664
8005
  quantity?: number;
@@ -7673,6 +8014,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7673
8014
  created_at?: string;
7674
8015
  id?: string;
7675
8016
  notes?: string | null;
8017
+ packing_configuration_id?: string | null;
7676
8018
  parent_product_id?: string | null;
7677
8019
  parent_trade_item_floriday_id?: string | null;
7678
8020
  quantity?: number;
@@ -7874,11 +8216,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7874
8216
  created_at: string;
7875
8217
  id: string;
7876
8218
  is_package: boolean;
8219
+ label: string | null;
7877
8220
  layers_per_load_carrier: number | null;
7878
8221
  load_carrier: string | null;
7879
8222
  package_id: string | null;
7880
8223
  package_label: string | null;
7881
8224
  packages_per_layer: number | null;
8225
+ packing_configuration_id: string;
7882
8226
  product_id: string | null;
7883
8227
  tenant_id: string;
7884
8228
  trade_item_floriday_id: string | null;
@@ -7889,11 +8233,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7889
8233
  created_at?: string;
7890
8234
  id?: string;
7891
8235
  is_package?: boolean;
8236
+ label?: string | null;
7892
8237
  layers_per_load_carrier?: number | null;
7893
8238
  load_carrier?: string | null;
7894
8239
  package_id?: string | null;
7895
8240
  package_label?: string | null;
7896
8241
  packages_per_layer?: number | null;
8242
+ packing_configuration_id?: string;
7897
8243
  product_id?: string | null;
7898
8244
  tenant_id: string;
7899
8245
  trade_item_floriday_id?: string | null;
@@ -7904,11 +8250,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7904
8250
  created_at?: string;
7905
8251
  id?: string;
7906
8252
  is_package?: boolean;
8253
+ label?: string | null;
7907
8254
  layers_per_load_carrier?: number | null;
7908
8255
  load_carrier?: string | null;
7909
8256
  package_id?: string | null;
7910
8257
  package_label?: string | null;
7911
8258
  packages_per_layer?: number | null;
8259
+ packing_configuration_id?: string;
7912
8260
  product_id?: string | null;
7913
8261
  tenant_id?: string;
7914
8262
  trade_item_floriday_id?: string | null;
@@ -7989,6 +8337,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7989
8337
  trade_item_key: string | null;
7990
8338
  unit: string;
7991
8339
  updated_at: string;
8340
+ vat_code: string | null;
8341
+ vat_rate: number | null;
7992
8342
  weight: string | null;
7993
8343
  };
7994
8344
  Insert: {
@@ -8017,6 +8367,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8017
8367
  trade_item_key?: string | null;
8018
8368
  unit?: string;
8019
8369
  updated_at?: string;
8370
+ vat_code?: string | null;
8371
+ vat_rate?: number | null;
8020
8372
  weight?: string | null;
8021
8373
  };
8022
8374
  Update: {
@@ -8045,6 +8397,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8045
8397
  trade_item_key?: string | null;
8046
8398
  unit?: string;
8047
8399
  updated_at?: string;
8400
+ vat_code?: string | null;
8401
+ vat_rate?: number | null;
8048
8402
  weight?: string | null;
8049
8403
  };
8050
8404
  Relationships: [];
@@ -11120,6 +11474,12 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
11120
11474
  processed_items: number;
11121
11475
  }[];
11122
11476
  };
11477
+ calculate_layer_stock: {
11478
+ Args: {
11479
+ p_product_id: string;
11480
+ };
11481
+ Returns: number;
11482
+ };
11123
11483
  call_exact_route: {
11124
11484
  Args: {
11125
11485
  path: string;
@@ -11489,6 +11849,12 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
11489
11849
  };
11490
11850
  Returns: string;
11491
11851
  };
11852
+ get_inventory_stock_for_key: {
11853
+ Args: {
11854
+ p_key: string;
11855
+ };
11856
+ Returns: number;
11857
+ };
11492
11858
  get_offer_by_link_code: {
11493
11859
  Args: {
11494
11860
  p_code: string;
@@ -11519,6 +11885,12 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
11519
11885
  };
11520
11886
  Returns: string;
11521
11887
  };
11888
+ get_product_group_available_stock: {
11889
+ Args: {
11890
+ p_group_id: string;
11891
+ };
11892
+ Returns: number;
11893
+ };
11522
11894
  get_room_busy_windows: {
11523
11895
  Args: {
11524
11896
  p_from: string;
@@ -12085,12 +12457,22 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
12085
12457
  };
12086
12458
  Returns: string[];
12087
12459
  };
12460
+ sync_all_layer_stocks: {
12461
+ Args: never;
12462
+ Returns: undefined;
12463
+ };
12088
12464
  sync_cached_packing_from_product: {
12089
12465
  Args: {
12090
12466
  p_product_id: string;
12091
12467
  };
12092
12468
  Returns: undefined;
12093
12469
  };
12470
+ sync_layer_stock: {
12471
+ Args: {
12472
+ p_product_id: string;
12473
+ };
12474
+ Returns: undefined;
12475
+ };
12094
12476
  sync_order_cart_item_packing_from_product: {
12095
12477
  Args: {
12096
12478
  p_product_id: string;