@flowselections/floriday-afhandeling-module 1.0.14 → 1.0.16

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 (92) hide show
  1. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/LeveringenPage.js +2 -2
  3. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  4. package/dist-lib/components/afhandeling/PickAgendaView.js +2 -3
  5. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  6. package/dist-lib/components/afhandeling/WeekAgendaView.js +31 -17
  7. package/dist-lib/components/engine/CapaciteitsmaatregelenPage.d.ts +2 -0
  8. package/dist-lib/components/engine/CapaciteitsmaatregelenPage.d.ts.map +1 -0
  9. package/dist-lib/components/engine/CapaciteitsmaatregelenPage.js +40 -0
  10. package/dist-lib/components/engine/CapaciteitsmonitorPage.d.ts +2 -0
  11. package/dist-lib/components/engine/CapaciteitsmonitorPage.d.ts.map +1 -0
  12. package/dist-lib/components/engine/CapaciteitsmonitorPage.js +49 -0
  13. package/dist-lib/components/engine/FormulesPage.d.ts +2 -0
  14. package/dist-lib/components/engine/FormulesPage.d.ts.map +1 -0
  15. package/dist-lib/components/engine/FormulesPage.js +255 -0
  16. package/dist-lib/components/engine/PlaceholderPage.d.ts +6 -0
  17. package/dist-lib/components/engine/PlaceholderPage.d.ts.map +1 -0
  18. package/dist-lib/components/engine/PlaceholderPage.js +6 -0
  19. package/dist-lib/components/engine/StrategieenPage.d.ts +2 -0
  20. package/dist-lib/components/engine/StrategieenPage.d.ts.map +1 -0
  21. package/dist-lib/components/engine/StrategieenPage.js +80 -0
  22. package/dist-lib/components/pickstation/PickstationPage.d.ts.map +1 -1
  23. package/dist-lib/components/pickstation/PickstationPage.js +16 -4
  24. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  25. package/dist-lib/hooks/useOrderPlanning.js +37 -3
  26. package/dist-lib/index.d.ts +1 -0
  27. package/dist-lib/index.d.ts.map +1 -1
  28. package/dist-lib/index.js +3 -1
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1558 -262
  30. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/client.d.ts +1558 -262
  32. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  33. package/dist-lib/integrations/supabase/client.server.d.ts +1558 -262
  34. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  35. package/dist-lib/integrations/supabase/types.d.ts +1545 -218
  36. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  37. package/dist-lib/lib/afhandelingSettings.functions.d.ts +3087 -495
  38. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/ai-gateway.server.d.ts +2 -0
  40. package/dist-lib/lib/ai-gateway.server.d.ts.map +1 -0
  41. package/dist-lib/lib/ai-gateway.server.js +11 -0
  42. package/dist-lib/lib/authGateway.server.d.ts +16 -0
  43. package/dist-lib/lib/authGateway.server.d.ts.map +1 -0
  44. package/dist-lib/lib/authGateway.server.js +195 -0
  45. package/dist-lib/lib/carriers.functions.d.ts +7680 -1200
  46. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/cartAssignments.functions.d.ts +7680 -1200
  48. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/cartControl.functions.d.ts +16005 -3045
  50. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/floriday.functions.d.ts +1558 -262
  52. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/floriday.functions.js +41 -8
  54. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +50090 -0
  55. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -0
  56. package/dist-lib/lib/logisticsEngine/capacity.functions.js +90 -0
  57. package/dist-lib/lib/logisticsEngine/config.d.ts +140 -0
  58. package/dist-lib/lib/logisticsEngine/config.d.ts.map +1 -0
  59. package/dist-lib/lib/logisticsEngine/config.js +488 -0
  60. package/dist-lib/lib/logisticsEngine/enginePickTime.d.ts +29 -0
  61. package/dist-lib/lib/logisticsEngine/enginePickTime.d.ts.map +1 -0
  62. package/dist-lib/lib/logisticsEngine/enginePickTime.js +136 -0
  63. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +12556 -0
  64. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -0
  65. package/dist-lib/lib/logisticsEngine/evaluate.functions.js +104 -0
  66. package/dist-lib/lib/logisticsEngine/expression.d.ts +21 -0
  67. package/dist-lib/lib/logisticsEngine/expression.d.ts.map +1 -0
  68. package/dist-lib/lib/logisticsEngine/expression.js +263 -0
  69. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +25068 -0
  70. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -0
  71. package/dist-lib/lib/logisticsEngine/formulas.functions.js +58 -0
  72. package/dist-lib/lib/logisticsEngine/safetyLayer.d.ts +83 -0
  73. package/dist-lib/lib/logisticsEngine/safetyLayer.d.ts.map +1 -0
  74. package/dist-lib/lib/logisticsEngine/safetyLayer.js +182 -0
  75. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +100185 -0
  76. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -0
  77. package/dist-lib/lib/logisticsEngine/strategies.functions.js +176 -0
  78. package/dist-lib/lib/logisticsEngine/variables.d.ts +29 -0
  79. package/dist-lib/lib/logisticsEngine/variables.d.ts.map +1 -0
  80. package/dist-lib/lib/logisticsEngine/variables.js +144 -0
  81. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +50096 -0
  82. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -0
  83. package/dist-lib/lib/logisticsEngine/wizard.functions.js +175 -0
  84. package/dist-lib/lib/pickstationI18n.d.ts +2 -0
  85. package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
  86. package/dist-lib/lib/pickstationI18n.js +12 -0
  87. package/dist-lib/lib/pickstationOrders.server.d.ts +5 -0
  88. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  89. package/dist-lib/lib/pickstationOrders.server.js +29 -0
  90. package/dist-lib/lib/pickstationTypes.d.ts +4 -0
  91. package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
  92. package/package.json +6 -4
@@ -242,6 +242,165 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
242
242
  };
243
243
  Relationships: [];
244
244
  };
245
+ ai_credentials: {
246
+ Row: {
247
+ active: boolean;
248
+ api_key: string;
249
+ created_at: string;
250
+ created_by: string | null;
251
+ id: string;
252
+ label: string;
253
+ provider_id: string;
254
+ updated_at: string;
255
+ };
256
+ Insert: {
257
+ active?: boolean;
258
+ api_key: string;
259
+ created_at?: string;
260
+ created_by?: string | null;
261
+ id?: string;
262
+ label: string;
263
+ provider_id: string;
264
+ updated_at?: string;
265
+ };
266
+ Update: {
267
+ active?: boolean;
268
+ api_key?: string;
269
+ created_at?: string;
270
+ created_by?: string | null;
271
+ id?: string;
272
+ label?: string;
273
+ provider_id?: string;
274
+ updated_at?: string;
275
+ };
276
+ Relationships: [{
277
+ foreignKeyName: "ai_credentials_provider_id_fkey";
278
+ columns: ["provider_id"];
279
+ isOneToOne: false;
280
+ referencedRelation: "ai_providers";
281
+ referencedColumns: ["id"];
282
+ }];
283
+ };
284
+ ai_models: {
285
+ Row: {
286
+ active: boolean;
287
+ context_window: number | null;
288
+ created_at: string;
289
+ display_name: string;
290
+ id: string;
291
+ is_default: boolean;
292
+ modality: string;
293
+ provider_id: string;
294
+ slug: string;
295
+ updated_at: string;
296
+ };
297
+ Insert: {
298
+ active?: boolean;
299
+ context_window?: number | null;
300
+ created_at?: string;
301
+ display_name: string;
302
+ id?: string;
303
+ is_default?: boolean;
304
+ modality?: string;
305
+ provider_id: string;
306
+ slug: string;
307
+ updated_at?: string;
308
+ };
309
+ Update: {
310
+ active?: boolean;
311
+ context_window?: number | null;
312
+ created_at?: string;
313
+ display_name?: string;
314
+ id?: string;
315
+ is_default?: boolean;
316
+ modality?: string;
317
+ provider_id?: string;
318
+ slug?: string;
319
+ updated_at?: string;
320
+ };
321
+ Relationships: [{
322
+ foreignKeyName: "ai_models_provider_id_fkey";
323
+ columns: ["provider_id"];
324
+ isOneToOne: false;
325
+ referencedRelation: "ai_providers";
326
+ referencedColumns: ["id"];
327
+ }];
328
+ };
329
+ ai_module_bindings: {
330
+ Row: {
331
+ consumer_module_id: string;
332
+ created_at: string;
333
+ credential_id: string;
334
+ id: string;
335
+ model_id: string;
336
+ notes: string | null;
337
+ updated_at: string;
338
+ };
339
+ Insert: {
340
+ consumer_module_id: string;
341
+ created_at?: string;
342
+ credential_id: string;
343
+ id?: string;
344
+ model_id: string;
345
+ notes?: string | null;
346
+ updated_at?: string;
347
+ };
348
+ Update: {
349
+ consumer_module_id?: string;
350
+ created_at?: string;
351
+ credential_id?: string;
352
+ id?: string;
353
+ model_id?: string;
354
+ notes?: string | null;
355
+ updated_at?: string;
356
+ };
357
+ Relationships: [{
358
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
359
+ columns: ["credential_id"];
360
+ isOneToOne: false;
361
+ referencedRelation: "ai_credentials";
362
+ referencedColumns: ["id"];
363
+ }, {
364
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
365
+ columns: ["model_id"];
366
+ isOneToOne: false;
367
+ referencedRelation: "ai_models";
368
+ referencedColumns: ["id"];
369
+ }];
370
+ };
371
+ ai_providers: {
372
+ Row: {
373
+ active: boolean;
374
+ auth_type: string;
375
+ base_url: string | null;
376
+ created_at: string;
377
+ id: string;
378
+ name: string;
379
+ slug: string;
380
+ updated_at: string;
381
+ };
382
+ Insert: {
383
+ active?: boolean;
384
+ auth_type?: string;
385
+ base_url?: string | null;
386
+ created_at?: string;
387
+ id?: string;
388
+ name: string;
389
+ slug: string;
390
+ updated_at?: string;
391
+ };
392
+ Update: {
393
+ active?: boolean;
394
+ auth_type?: string;
395
+ base_url?: string | null;
396
+ created_at?: string;
397
+ id?: string;
398
+ name?: string;
399
+ slug?: string;
400
+ updated_at?: string;
401
+ };
402
+ Relationships: [];
403
+ };
245
404
  app_settings: {
246
405
  Row: {
247
406
  created_at: string;
@@ -272,6 +431,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
272
431
  created_at: string;
273
432
  extra_id: string;
274
433
  id: string;
434
+ original_unit_price: number | null;
435
+ override_reason: string | null;
436
+ override_unit_price: number | null;
275
437
  quantity: number;
276
438
  total_price: number;
277
439
  unit_price: number;
@@ -281,6 +443,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
281
443
  created_at?: string;
282
444
  extra_id: string;
283
445
  id?: string;
446
+ original_unit_price?: number | null;
447
+ override_reason?: string | null;
448
+ override_unit_price?: number | null;
284
449
  quantity?: number;
285
450
  total_price?: number;
286
451
  unit_price?: number;
@@ -290,6 +455,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
290
455
  created_at?: string;
291
456
  extra_id?: string;
292
457
  id?: string;
458
+ original_unit_price?: number | null;
459
+ override_reason?: string | null;
460
+ override_unit_price?: number | null;
293
461
  quantity?: number;
294
462
  total_price?: number;
295
463
  unit_price?: number;
@@ -310,11 +478,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
310
478
  };
311
479
  bookings: {
312
480
  Row: {
481
+ archive_reason: string | null;
482
+ archived_at: string | null;
483
+ archived_by: string | null;
313
484
  company_name: string | null;
314
485
  conflict_checked_at: string | null;
315
486
  conflict_reason: string | null;
316
487
  created_at: string;
317
488
  created_by_role: string | null;
489
+ customer_address: string | null;
318
490
  customer_email: string | null;
319
491
  customer_name: string | null;
320
492
  end_time: string;
@@ -326,7 +498,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
326
498
  invoiced_at: string | null;
327
499
  notes: string | null;
328
500
  number_of_people: number;
501
+ overridden_at: string | null;
502
+ overridden_by: string | null;
503
+ override_reason: string | null;
504
+ price_override: boolean;
329
505
  room_id: string;
506
+ room_price_override: number | null;
330
507
  start_time: string;
331
508
  status: string;
332
509
  total_excl_vat: number | null;
@@ -335,11 +512,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
335
512
  vat_amount: number | null;
336
513
  };
337
514
  Insert: {
515
+ archive_reason?: string | null;
516
+ archived_at?: string | null;
517
+ archived_by?: string | null;
338
518
  company_name?: string | null;
339
519
  conflict_checked_at?: string | null;
340
520
  conflict_reason?: string | null;
341
521
  created_at?: string;
342
522
  created_by_role?: string | null;
523
+ customer_address?: string | null;
343
524
  customer_email?: string | null;
344
525
  customer_name?: string | null;
345
526
  end_time: string;
@@ -351,7 +532,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
351
532
  invoiced_at?: string | null;
352
533
  notes?: string | null;
353
534
  number_of_people?: number;
535
+ overridden_at?: string | null;
536
+ overridden_by?: string | null;
537
+ override_reason?: string | null;
538
+ price_override?: boolean;
354
539
  room_id: string;
540
+ room_price_override?: number | null;
355
541
  start_time: string;
356
542
  status?: string;
357
543
  total_excl_vat?: number | null;
@@ -360,11 +546,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
360
546
  vat_amount?: number | null;
361
547
  };
362
548
  Update: {
549
+ archive_reason?: string | null;
550
+ archived_at?: string | null;
551
+ archived_by?: string | null;
363
552
  company_name?: string | null;
364
553
  conflict_checked_at?: string | null;
365
554
  conflict_reason?: string | null;
366
555
  created_at?: string;
367
556
  created_by_role?: string | null;
557
+ customer_address?: string | null;
368
558
  customer_email?: string | null;
369
559
  customer_name?: string | null;
370
560
  end_time?: string;
@@ -376,7 +566,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
376
566
  invoiced_at?: string | null;
377
567
  notes?: string | null;
378
568
  number_of_people?: number;
569
+ overridden_at?: string | null;
570
+ overridden_by?: string | null;
571
+ override_reason?: string | null;
572
+ price_override?: boolean;
379
573
  room_id?: string;
574
+ room_price_override?: number | null;
380
575
  start_time?: string;
381
576
  status?: string;
382
577
  total_excl_vat?: number | null;
@@ -833,6 +1028,138 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
833
1028
  };
834
1029
  Relationships: [];
835
1030
  };
1031
+ cart_planning_pick_times: {
1032
+ Row: {
1033
+ created_at: string;
1034
+ id: string;
1035
+ pot_size: string;
1036
+ seconds_per_cart: number;
1037
+ updated_at: string;
1038
+ };
1039
+ Insert: {
1040
+ created_at?: string;
1041
+ id?: string;
1042
+ pot_size: string;
1043
+ seconds_per_cart: number;
1044
+ updated_at?: string;
1045
+ };
1046
+ Update: {
1047
+ created_at?: string;
1048
+ id?: string;
1049
+ pot_size?: string;
1050
+ seconds_per_cart?: number;
1051
+ updated_at?: string;
1052
+ };
1053
+ Relationships: [];
1054
+ };
1055
+ cart_planning_product_overrides: {
1056
+ Row: {
1057
+ created_at: string;
1058
+ id: string;
1059
+ max_party_share_per_layer_pct_override: number | null;
1060
+ never_mix: boolean;
1061
+ notes: string | null;
1062
+ product_id: string;
1063
+ updated_at: string;
1064
+ };
1065
+ Insert: {
1066
+ created_at?: string;
1067
+ id?: string;
1068
+ max_party_share_per_layer_pct_override?: number | null;
1069
+ never_mix?: boolean;
1070
+ notes?: string | null;
1071
+ product_id: string;
1072
+ updated_at?: string;
1073
+ };
1074
+ Update: {
1075
+ created_at?: string;
1076
+ id?: string;
1077
+ max_party_share_per_layer_pct_override?: number | null;
1078
+ never_mix?: boolean;
1079
+ notes?: string | null;
1080
+ product_id?: string;
1081
+ updated_at?: string;
1082
+ };
1083
+ Relationships: [{
1084
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1085
+ columns: ["product_id"];
1086
+ isOneToOne: true;
1087
+ referencedRelation: "products";
1088
+ referencedColumns: ["id"];
1089
+ }];
1090
+ };
1091
+ cart_planning_settings: {
1092
+ Row: {
1093
+ allow_editing_after_pickstation_send: boolean;
1094
+ buffer_grouping_mode: string;
1095
+ combine_floriday_orders: boolean;
1096
+ combine_floriday_orders_window: string;
1097
+ combine_orders_scope: string;
1098
+ default_workers: number;
1099
+ id: number;
1100
+ max_beladingen_per_layer: number;
1101
+ max_customers_per_cart: number;
1102
+ max_one_customer_per_layer: boolean;
1103
+ max_party_share_per_layer_pct: number;
1104
+ optimization_strategy: string;
1105
+ own_cart_from_layers: number;
1106
+ pick_time_mode: string;
1107
+ plants_per_hour: number;
1108
+ require_same_carrier: boolean;
1109
+ require_same_crate_type: boolean;
1110
+ require_same_delivery_date: boolean;
1111
+ require_same_delivery_location: boolean;
1112
+ updated_at: string;
1113
+ updated_by: string | null;
1114
+ };
1115
+ Insert: {
1116
+ allow_editing_after_pickstation_send?: boolean;
1117
+ buffer_grouping_mode?: string;
1118
+ combine_floriday_orders?: boolean;
1119
+ combine_floriday_orders_window?: string;
1120
+ combine_orders_scope?: string;
1121
+ default_workers?: number;
1122
+ id?: number;
1123
+ max_beladingen_per_layer?: number;
1124
+ max_customers_per_cart?: number;
1125
+ max_one_customer_per_layer?: boolean;
1126
+ max_party_share_per_layer_pct?: number;
1127
+ optimization_strategy?: string;
1128
+ own_cart_from_layers?: number;
1129
+ pick_time_mode?: string;
1130
+ plants_per_hour?: number;
1131
+ require_same_carrier?: boolean;
1132
+ require_same_crate_type?: boolean;
1133
+ require_same_delivery_date?: boolean;
1134
+ require_same_delivery_location?: boolean;
1135
+ updated_at?: string;
1136
+ updated_by?: string | null;
1137
+ };
1138
+ Update: {
1139
+ allow_editing_after_pickstation_send?: boolean;
1140
+ buffer_grouping_mode?: string;
1141
+ combine_floriday_orders?: boolean;
1142
+ combine_floriday_orders_window?: string;
1143
+ combine_orders_scope?: string;
1144
+ default_workers?: number;
1145
+ id?: number;
1146
+ max_beladingen_per_layer?: number;
1147
+ max_customers_per_cart?: number;
1148
+ max_one_customer_per_layer?: boolean;
1149
+ max_party_share_per_layer_pct?: number;
1150
+ optimization_strategy?: string;
1151
+ own_cart_from_layers?: number;
1152
+ pick_time_mode?: string;
1153
+ plants_per_hour?: number;
1154
+ require_same_carrier?: boolean;
1155
+ require_same_crate_type?: boolean;
1156
+ require_same_delivery_date?: boolean;
1157
+ require_same_delivery_location?: boolean;
1158
+ updated_at?: string;
1159
+ updated_by?: string | null;
1160
+ };
1161
+ Relationships: [];
1162
+ };
836
1163
  cart_replan_queue: {
837
1164
  Row: {
838
1165
  attempts: number;
@@ -863,6 +1190,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
863
1190
  referencedColumns: ["id"];
864
1191
  }];
865
1192
  };
1193
+ cart_types: {
1194
+ Row: {
1195
+ created_at: string;
1196
+ id: string;
1197
+ is_default: boolean;
1198
+ layer_length_cm: number;
1199
+ layer_width_cm: number;
1200
+ layers_per_cart: number;
1201
+ name: string;
1202
+ updated_at: string;
1203
+ };
1204
+ Insert: {
1205
+ created_at?: string;
1206
+ id?: string;
1207
+ is_default?: boolean;
1208
+ layer_length_cm: number;
1209
+ layer_width_cm: number;
1210
+ layers_per_cart?: number;
1211
+ name: string;
1212
+ updated_at?: string;
1213
+ };
1214
+ Update: {
1215
+ created_at?: string;
1216
+ id?: string;
1217
+ is_default?: boolean;
1218
+ layer_length_cm?: number;
1219
+ layer_width_cm?: number;
1220
+ layers_per_cart?: number;
1221
+ name?: string;
1222
+ updated_at?: string;
1223
+ };
1224
+ Relationships: [];
1225
+ };
866
1226
  collections: {
867
1227
  Row: {
868
1228
  created_at: string;
@@ -887,6 +1247,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
887
1247
  };
888
1248
  Relationships: [];
889
1249
  };
1250
+ crate_types: {
1251
+ Row: {
1252
+ created_at: string;
1253
+ id: string;
1254
+ length_cm: number;
1255
+ name: string;
1256
+ plants_per_crate: number;
1257
+ updated_at: string;
1258
+ width_cm: number;
1259
+ };
1260
+ Insert: {
1261
+ created_at?: string;
1262
+ id?: string;
1263
+ length_cm: number;
1264
+ name: string;
1265
+ plants_per_crate?: number;
1266
+ updated_at?: string;
1267
+ width_cm: number;
1268
+ };
1269
+ Update: {
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
+ Relationships: [];
1279
+ };
890
1280
  customer_audit_log: {
891
1281
  Row: {
892
1282
  action: string;
@@ -1205,8 +1595,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1205
1595
  customers: {
1206
1596
  Row: {
1207
1597
  address: string | null;
1598
+ address_line1: string | null;
1599
+ address_line2: string | null;
1600
+ address_type: string | null;
1601
+ attention_to: string | null;
1602
+ bank_account_holder: string | null;
1603
+ bank_account_number: string | null;
1604
+ bank_address_line1: string | null;
1605
+ bank_address_line2: string | null;
1606
+ bank_bic: string | null;
1607
+ bank_city: string | null;
1608
+ bank_country: string | null;
1609
+ bank_house_number: string | null;
1610
+ bank_iban: string | null;
1611
+ bank_name: string | null;
1612
+ bank_national_code: string | null;
1613
+ bank_postal_code: string | null;
1614
+ bank_state: string | null;
1615
+ billing_email: string | null;
1208
1616
  bio: string | null;
1209
1617
  city: string | null;
1618
+ coc_number: string | null;
1210
1619
  commercial_name: string | null;
1211
1620
  company_name: string;
1212
1621
  connection_status: string;
@@ -1215,21 +1624,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1215
1624
  created_at: string;
1216
1625
  custom_fields: import("./types").Json;
1217
1626
  customer_class: string | null;
1627
+ customer_number: string | null;
1628
+ discount_days: number | null;
1629
+ discount_percentage: number | null;
1218
1630
  email: string | null;
1219
1631
  external_id: string | null;
1632
+ fax: string | null;
1220
1633
  floriday_connection_id: string | null;
1221
1634
  floriday_organization_id: string | null;
1222
1635
  floriday_raw: import("./types").Json | null;
1223
1636
  gln: string | null;
1224
1637
  house_number: string | null;
1638
+ icp_country_code: string | null;
1225
1639
  id: string;
1226
1640
  is_active: boolean;
1641
+ language: string | null;
1227
1642
  last_synced_at: string | null;
1228
1643
  logo_url: string | null;
1229
1644
  markets: string[];
1230
1645
  notes: string | null;
1231
1646
  organization_type: string | null;
1232
1647
  payment_methods: string[];
1648
+ payment_term_days: number | null;
1233
1649
  phone: string | null;
1234
1650
  postal_code: string | null;
1235
1651
  product_groups: string[];
@@ -1240,13 +1656,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1240
1656
  sync_status: string;
1241
1657
  trade_forms: string[];
1242
1658
  updated_at: string;
1659
+ vat_display: string | null;
1243
1660
  vat_number: string | null;
1244
1661
  website: string | null;
1245
1662
  };
1246
1663
  Insert: {
1247
1664
  address?: string | null;
1665
+ address_line1?: string | null;
1666
+ address_line2?: string | null;
1667
+ address_type?: string | null;
1668
+ attention_to?: string | null;
1669
+ bank_account_holder?: string | null;
1670
+ bank_account_number?: string | null;
1671
+ bank_address_line1?: string | null;
1672
+ bank_address_line2?: string | null;
1673
+ bank_bic?: string | null;
1674
+ bank_city?: string | null;
1675
+ bank_country?: string | null;
1676
+ bank_house_number?: string | null;
1677
+ bank_iban?: string | null;
1678
+ bank_name?: string | null;
1679
+ bank_national_code?: string | null;
1680
+ bank_postal_code?: string | null;
1681
+ bank_state?: string | null;
1682
+ billing_email?: string | null;
1248
1683
  bio?: string | null;
1249
1684
  city?: string | null;
1685
+ coc_number?: string | null;
1250
1686
  commercial_name?: string | null;
1251
1687
  company_name: string;
1252
1688
  connection_status?: string;
@@ -1255,21 +1691,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1255
1691
  created_at?: string;
1256
1692
  custom_fields?: import("./types").Json;
1257
1693
  customer_class?: string | null;
1694
+ customer_number?: string | null;
1695
+ discount_days?: number | null;
1696
+ discount_percentage?: number | null;
1258
1697
  email?: string | null;
1259
1698
  external_id?: string | null;
1699
+ fax?: string | null;
1260
1700
  floriday_connection_id?: string | null;
1261
1701
  floriday_organization_id?: string | null;
1262
1702
  floriday_raw?: import("./types").Json | null;
1263
1703
  gln?: string | null;
1264
1704
  house_number?: string | null;
1705
+ icp_country_code?: string | null;
1265
1706
  id?: string;
1266
1707
  is_active?: boolean;
1708
+ language?: string | null;
1267
1709
  last_synced_at?: string | null;
1268
1710
  logo_url?: string | null;
1269
1711
  markets?: string[];
1270
1712
  notes?: string | null;
1271
1713
  organization_type?: string | null;
1272
1714
  payment_methods?: string[];
1715
+ payment_term_days?: number | null;
1273
1716
  phone?: string | null;
1274
1717
  postal_code?: string | null;
1275
1718
  product_groups?: string[];
@@ -1280,13 +1723,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1280
1723
  sync_status?: string;
1281
1724
  trade_forms?: string[];
1282
1725
  updated_at?: string;
1726
+ vat_display?: string | null;
1283
1727
  vat_number?: string | null;
1284
1728
  website?: string | null;
1285
1729
  };
1286
1730
  Update: {
1287
1731
  address?: string | null;
1732
+ address_line1?: string | null;
1733
+ address_line2?: string | null;
1734
+ address_type?: string | null;
1735
+ attention_to?: string | null;
1736
+ bank_account_holder?: string | null;
1737
+ bank_account_number?: string | null;
1738
+ bank_address_line1?: string | null;
1739
+ bank_address_line2?: string | null;
1740
+ bank_bic?: string | null;
1741
+ bank_city?: string | null;
1742
+ bank_country?: string | null;
1743
+ bank_house_number?: string | null;
1744
+ bank_iban?: string | null;
1745
+ bank_name?: string | null;
1746
+ bank_national_code?: string | null;
1747
+ bank_postal_code?: string | null;
1748
+ bank_state?: string | null;
1749
+ billing_email?: string | null;
1288
1750
  bio?: string | null;
1289
1751
  city?: string | null;
1752
+ coc_number?: string | null;
1290
1753
  commercial_name?: string | null;
1291
1754
  company_name?: string;
1292
1755
  connection_status?: string;
@@ -1295,21 +1758,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1295
1758
  created_at?: string;
1296
1759
  custom_fields?: import("./types").Json;
1297
1760
  customer_class?: string | null;
1761
+ customer_number?: string | null;
1762
+ discount_days?: number | null;
1763
+ discount_percentage?: number | null;
1298
1764
  email?: string | null;
1299
1765
  external_id?: string | null;
1766
+ fax?: string | null;
1300
1767
  floriday_connection_id?: string | null;
1301
1768
  floriday_organization_id?: string | null;
1302
1769
  floriday_raw?: import("./types").Json | null;
1303
1770
  gln?: string | null;
1304
1771
  house_number?: string | null;
1772
+ icp_country_code?: string | null;
1305
1773
  id?: string;
1306
1774
  is_active?: boolean;
1775
+ language?: string | null;
1307
1776
  last_synced_at?: string | null;
1308
1777
  logo_url?: string | null;
1309
1778
  markets?: string[];
1310
1779
  notes?: string | null;
1311
1780
  organization_type?: string | null;
1312
1781
  payment_methods?: string[];
1782
+ payment_term_days?: number | null;
1313
1783
  phone?: string | null;
1314
1784
  postal_code?: string | null;
1315
1785
  product_groups?: string[];
@@ -1320,6 +1790,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1320
1790
  sync_status?: string;
1321
1791
  trade_forms?: string[];
1322
1792
  updated_at?: string;
1793
+ vat_display?: string | null;
1323
1794
  vat_number?: string | null;
1324
1795
  website?: string | null;
1325
1796
  };
@@ -3131,111 +3602,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3131
3602
  referencedColumns: ["id"];
3132
3603
  }];
3133
3604
  };
3134
- floriday_agreement_calloffs_cache: {
3605
+ floriday_auction_letters_cache: {
3135
3606
  Row: {
3136
- agreement_id: string | null;
3607
+ auction_letter_code: string;
3608
+ clock_supply_id: string;
3137
3609
  connection_id: string;
3138
- data: import("./types").Json;
3139
- delivery_date: string | null;
3140
- fetched_at: string;
3141
- floriday_id: string;
3142
- id: string;
3143
- is_deleted: boolean;
3144
- sequence_number: number;
3145
- status: string | null;
3146
- updated_at: string;
3147
- };
3148
- Insert: {
3149
- agreement_id?: string | null;
3150
- connection_id: string;
3151
- data?: import("./types").Json;
3152
- delivery_date?: string | null;
3153
- fetched_at?: string;
3154
- floriday_id: string;
3155
- id?: string;
3156
- is_deleted?: boolean;
3157
- sequence_number?: number;
3158
- status?: string | null;
3159
- updated_at?: string;
3160
- };
3161
- Update: {
3162
- agreement_id?: string | null;
3163
- connection_id?: string;
3164
- data?: import("./types").Json;
3165
- delivery_date?: string | null;
3166
- fetched_at?: string;
3167
- floriday_id?: string;
3168
- id?: string;
3169
- is_deleted?: boolean;
3170
- sequence_number?: number;
3171
- status?: string | null;
3172
- updated_at?: string;
3173
- };
3174
- Relationships: [{
3175
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3176
- columns: ["connection_id"];
3177
- isOneToOne: false;
3178
- referencedRelation: "floriday_connections";
3179
- referencedColumns: ["id"];
3180
- }];
3181
- };
3182
- floriday_agreements_cache: {
3183
- Row: {
3184
- buyer_organization_id: string | null;
3185
- connection_id: string;
3186
- data: import("./types").Json;
3187
- fetched_at: string;
3188
- floriday_id: string;
3189
- id: string;
3190
- is_deleted: boolean;
3191
- sequence_number: number;
3192
- status: string | null;
3193
- updated_at: string;
3194
- valid_from: string | null;
3195
- valid_until: string | null;
3196
- };
3197
- Insert: {
3198
- buyer_organization_id?: string | null;
3199
- connection_id: string;
3200
- data?: import("./types").Json;
3201
- fetched_at?: string;
3202
- floriday_id: string;
3203
- id?: string;
3204
- is_deleted?: boolean;
3205
- sequence_number?: number;
3206
- status?: string | null;
3207
- updated_at?: string;
3208
- valid_from?: string | null;
3209
- valid_until?: string | null;
3210
- };
3211
- Update: {
3212
- buyer_organization_id?: string | null;
3213
- connection_id?: string;
3214
- data?: import("./types").Json;
3215
- fetched_at?: string;
3216
- floriday_id?: string;
3217
- id?: string;
3218
- is_deleted?: boolean;
3219
- sequence_number?: number;
3220
- status?: string | null;
3221
- updated_at?: string;
3222
- valid_from?: string | null;
3223
- valid_until?: string | null;
3224
- };
3225
- Relationships: [{
3226
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3227
- columns: ["connection_id"];
3228
- isOneToOne: false;
3229
- referencedRelation: "floriday_connections";
3230
- referencedColumns: ["id"];
3231
- }];
3232
- };
3233
- floriday_auction_letters_cache: {
3234
- Row: {
3235
- auction_letter_code: string;
3236
- clock_supply_id: string;
3237
- connection_id: string;
3238
- content_type: string;
3610
+ content_type: string;
3239
3611
  fetched_at: string;
3240
3612
  id: string;
3241
3613
  storage_path: string;
@@ -3728,6 +4100,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3728
4100
  referencedColumns: ["id"];
3729
4101
  }];
3730
4102
  };
4103
+ floriday_continuous_stock_cache: {
4104
+ Row: {
4105
+ connection_id: string;
4106
+ fetched_at: string;
4107
+ number_of_pieces: number;
4108
+ trade_item_id: string;
4109
+ };
4110
+ Insert: {
4111
+ connection_id: string;
4112
+ fetched_at?: string;
4113
+ number_of_pieces?: number;
4114
+ trade_item_id: string;
4115
+ };
4116
+ Update: {
4117
+ connection_id?: string;
4118
+ fetched_at?: string;
4119
+ number_of_pieces?: number;
4120
+ trade_item_id?: string;
4121
+ };
4122
+ Relationships: [];
4123
+ };
3731
4124
  floriday_continuous_stock_queue: {
3732
4125
  Row: {
3733
4126
  attempts: number;
@@ -4503,6 +4896,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4503
4896
  Row: {
4504
4897
  buyer_organization_id: string | null;
4505
4898
  connection_id: string;
4899
+ controlled_at: string | null;
4900
+ controlled_by: string | null;
4506
4901
  created_at: string;
4507
4902
  data: import("./types").Json;
4508
4903
  floriday_id: string;
@@ -4514,6 +4909,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4514
4909
  Insert: {
4515
4910
  buyer_organization_id?: string | null;
4516
4911
  connection_id: string;
4912
+ controlled_at?: string | null;
4913
+ controlled_by?: string | null;
4517
4914
  created_at?: string;
4518
4915
  data: import("./types").Json;
4519
4916
  floriday_id: string;
@@ -4525,6 +4922,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4525
4922
  Update: {
4526
4923
  buyer_organization_id?: string | null;
4527
4924
  connection_id?: string;
4925
+ controlled_at?: string | null;
4926
+ controlled_by?: string | null;
4528
4927
  created_at?: string;
4529
4928
  data?: import("./types").Json;
4530
4929
  floriday_id?: string;
@@ -4706,6 +5105,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4706
5105
  referencedColumns: ["id"];
4707
5106
  }];
4708
5107
  };
5108
+ floriday_trade_settings_customers_cache: {
5109
+ Row: {
5110
+ connection_id: string;
5111
+ data: import("./types").Json;
5112
+ fetched_at: string;
5113
+ floriday_id: string;
5114
+ id: string;
5115
+ is_deleted: boolean;
5116
+ sequence_number: number;
5117
+ updated_at: string;
5118
+ };
5119
+ Insert: {
5120
+ connection_id: string;
5121
+ data: import("./types").Json;
5122
+ fetched_at?: string;
5123
+ floriday_id: string;
5124
+ id?: string;
5125
+ is_deleted?: boolean;
5126
+ sequence_number?: number;
5127
+ updated_at?: string;
5128
+ };
5129
+ Update: {
5130
+ connection_id?: string;
5131
+ data?: import("./types").Json;
5132
+ fetched_at?: string;
5133
+ floriday_id?: string;
5134
+ id?: string;
5135
+ is_deleted?: boolean;
5136
+ sequence_number?: number;
5137
+ updated_at?: string;
5138
+ };
5139
+ Relationships: [{
5140
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5141
+ columns: ["connection_id"];
5142
+ isOneToOne: false;
5143
+ referencedRelation: "floriday_connections";
5144
+ referencedColumns: ["id"];
5145
+ }];
5146
+ };
4709
5147
  floriday_trips_cache: {
4710
5148
  Row: {
4711
5149
  carrier_organization_id: string | null;
@@ -4754,6 +5192,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4754
5192
  referencedColumns: ["id"];
4755
5193
  }];
4756
5194
  };
5195
+ floriday_vbn_required_characteristics: {
5196
+ Row: {
5197
+ required_codes: string[];
5198
+ updated_at: string;
5199
+ updated_by: string | null;
5200
+ vbn_code: string;
5201
+ };
5202
+ Insert: {
5203
+ required_codes?: string[];
5204
+ updated_at?: string;
5205
+ updated_by?: string | null;
5206
+ vbn_code: string;
5207
+ };
5208
+ Update: {
5209
+ required_codes?: string[];
5210
+ updated_at?: string;
5211
+ updated_by?: string | null;
5212
+ vbn_code?: string;
5213
+ };
5214
+ Relationships: [];
5215
+ };
4757
5216
  floriday_warehouses_cache: {
4758
5217
  Row: {
4759
5218
  connection_id: string;
@@ -5456,115 +5915,394 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5456
5915
  };
5457
5916
  Relationships: [];
5458
5917
  };
5459
- mailbox_messages: {
5918
+ logistics_capacity_events: {
5460
5919
  Row: {
5461
- body_html: string | null;
5462
- body_text: string | null;
5463
- connection_id: string | null;
5920
+ available_carts: number;
5464
5921
  created_at: string;
5465
- error_message: string | null;
5466
- external_id: string | null;
5467
- from_email: string | null;
5468
- from_name: string | null;
5469
5922
  id: string;
5470
- message_id: string | null;
5471
- profile_id: string | null;
5472
- raw_size: number | null;
5473
- received_at: string | null;
5923
+ measures: import("./types").Json;
5924
+ note: string | null;
5925
+ outcome: string;
5926
+ required_carts: number;
5927
+ reserve_minutes: number;
5928
+ shortage_carts: number;
5474
5929
  status: string;
5475
- subject: string | null;
5476
- uid: number | null;
5477
- updated_at: string;
5930
+ user_id: string;
5478
5931
  };
5479
5932
  Insert: {
5480
- body_html?: string | null;
5481
- body_text?: string | null;
5482
- connection_id?: string | null;
5933
+ available_carts?: number;
5483
5934
  created_at?: string;
5484
- error_message?: string | null;
5485
- external_id?: string | null;
5486
- from_email?: string | null;
5487
- from_name?: string | null;
5488
5935
  id?: string;
5489
- message_id?: string | null;
5490
- profile_id?: string | null;
5491
- raw_size?: number | null;
5492
- received_at?: string | null;
5493
- status?: string;
5494
- subject?: string | null;
5495
- uid?: number | null;
5496
- updated_at?: string;
5936
+ measures?: import("./types").Json;
5937
+ note?: string | null;
5938
+ outcome?: string;
5939
+ required_carts?: number;
5940
+ reserve_minutes?: number;
5941
+ shortage_carts?: number;
5942
+ status: string;
5943
+ user_id: string;
5497
5944
  };
5498
5945
  Update: {
5499
- body_html?: string | null;
5500
- body_text?: string | null;
5501
- connection_id?: string | null;
5946
+ available_carts?: number;
5502
5947
  created_at?: string;
5503
- error_message?: string | null;
5504
- external_id?: string | null;
5505
- from_email?: string | null;
5506
- from_name?: string | null;
5507
5948
  id?: string;
5508
- message_id?: string | null;
5509
- profile_id?: string | null;
5510
- raw_size?: number | null;
5511
- received_at?: string | null;
5949
+ measures?: import("./types").Json;
5950
+ note?: string | null;
5951
+ outcome?: string;
5952
+ required_carts?: number;
5953
+ reserve_minutes?: number;
5954
+ shortage_carts?: number;
5512
5955
  status?: string;
5513
- subject?: string | null;
5514
- uid?: number | null;
5515
- updated_at?: string;
5956
+ user_id?: string;
5516
5957
  };
5517
- Relationships: [{
5518
- foreignKeyName: "mailbox_messages_connection_id_fkey";
5519
- columns: ["connection_id"];
5520
- isOneToOne: false;
5521
- referencedRelation: "email_auth_connections";
5522
- referencedColumns: ["id"];
5523
- }, {
5524
- foreignKeyName: "mailbox_messages_connection_id_fkey";
5525
- columns: ["connection_id"];
5526
- isOneToOne: false;
5527
- referencedRelation: "email_auth_connections_safe";
5528
- referencedColumns: ["id"];
5529
- }, {
5530
- foreignKeyName: "mailbox_messages_profile_id_fkey";
5531
- columns: ["profile_id"];
5532
- isOneToOne: false;
5533
- referencedRelation: "imap_profiles";
5534
- referencedColumns: ["id"];
5535
- }];
5958
+ Relationships: [];
5536
5959
  };
5537
- mailbox_order_proposals: {
5960
+ logistics_capacity_settings: {
5538
5961
  Row: {
5539
- confidence: number | null;
5540
5962
  created_at: string;
5541
- created_order_id: string | null;
5542
- delivery_date: string | null;
5543
- id: string;
5544
- matched_customer_id: string | null;
5545
- message_id: string;
5546
- notes: string | null;
5547
- order_number: string | null;
5548
- parsed_payload: import("./types").Json | null;
5549
- reviewed_at: string | null;
5550
- reviewed_by: string | null;
5551
- status: string;
5963
+ settings: import("./types").Json;
5552
5964
  updated_at: string;
5965
+ user_id: string;
5553
5966
  };
5554
5967
  Insert: {
5555
- confidence?: number | null;
5556
5968
  created_at?: string;
5557
- created_order_id?: string | null;
5558
- delivery_date?: string | null;
5559
- id?: string;
5560
- matched_customer_id?: string | null;
5561
- message_id: string;
5562
- notes?: string | null;
5563
- order_number?: string | null;
5564
- parsed_payload?: import("./types").Json | null;
5565
- reviewed_at?: string | null;
5566
- reviewed_by?: string | null;
5567
- status?: string;
5969
+ settings?: import("./types").Json;
5970
+ updated_at?: string;
5971
+ user_id: string;
5972
+ };
5973
+ Update: {
5974
+ created_at?: string;
5975
+ settings?: import("./types").Json;
5976
+ updated_at?: string;
5977
+ user_id?: string;
5978
+ };
5979
+ Relationships: [];
5980
+ };
5981
+ logistics_decisions: {
5982
+ Row: {
5983
+ created_at: string;
5984
+ explanation: string | null;
5985
+ id: string;
5986
+ input_snapshot: import("./types").Json;
5987
+ result: import("./types").Json;
5988
+ slot: string;
5989
+ strategy_id: string | null;
5990
+ subject_id: string;
5991
+ subject_type: string;
5992
+ user_id: string;
5993
+ };
5994
+ Insert: {
5995
+ created_at?: string;
5996
+ explanation?: string | null;
5997
+ id?: string;
5998
+ input_snapshot?: import("./types").Json;
5999
+ result?: import("./types").Json;
6000
+ slot: string;
6001
+ strategy_id?: string | null;
6002
+ subject_id: string;
6003
+ subject_type: string;
6004
+ user_id: string;
6005
+ };
6006
+ Update: {
6007
+ created_at?: string;
6008
+ explanation?: string | null;
6009
+ id?: string;
6010
+ input_snapshot?: import("./types").Json;
6011
+ result?: import("./types").Json;
6012
+ slot?: string;
6013
+ strategy_id?: string | null;
6014
+ subject_id?: string;
6015
+ subject_type?: string;
6016
+ user_id?: string;
6017
+ };
6018
+ Relationships: [{
6019
+ foreignKeyName: "logistics_decisions_strategy_id_fkey";
6020
+ columns: ["strategy_id"];
6021
+ isOneToOne: false;
6022
+ referencedRelation: "logistics_strategies";
6023
+ referencedColumns: ["id"];
6024
+ }];
6025
+ };
6026
+ logistics_formulas: {
6027
+ Row: {
6028
+ created_at: string;
6029
+ expression: string;
6030
+ id: string;
6031
+ notes: string | null;
6032
+ slot: string;
6033
+ strategy_id: string;
6034
+ updated_at: string;
6035
+ user_id: string;
6036
+ version: number;
6037
+ };
6038
+ Insert: {
6039
+ created_at?: string;
6040
+ expression?: string;
6041
+ id?: string;
6042
+ notes?: string | null;
6043
+ slot: string;
6044
+ strategy_id: string;
6045
+ updated_at?: string;
6046
+ user_id: string;
6047
+ version?: number;
6048
+ };
6049
+ Update: {
6050
+ created_at?: string;
6051
+ expression?: string;
6052
+ id?: string;
6053
+ notes?: string | null;
6054
+ slot?: string;
6055
+ strategy_id?: string;
6056
+ updated_at?: string;
6057
+ user_id?: string;
6058
+ version?: number;
6059
+ };
6060
+ Relationships: [{
6061
+ foreignKeyName: "logistics_formulas_strategy_id_fkey";
6062
+ columns: ["strategy_id"];
6063
+ isOneToOne: false;
6064
+ referencedRelation: "logistics_strategies";
6065
+ referencedColumns: ["id"];
6066
+ }];
6067
+ };
6068
+ logistics_strategies: {
6069
+ Row: {
6070
+ color: string;
6071
+ created_at: string;
6072
+ description: string | null;
6073
+ id: string;
6074
+ is_active: boolean;
6075
+ name: string;
6076
+ priority: number;
6077
+ updated_at: string;
6078
+ updated_by: string | null;
6079
+ user_id: string;
6080
+ version: number;
6081
+ };
6082
+ Insert: {
6083
+ color?: string;
6084
+ created_at?: string;
6085
+ description?: string | null;
6086
+ id?: string;
6087
+ is_active?: boolean;
6088
+ name: string;
6089
+ priority?: number;
6090
+ updated_at?: string;
6091
+ updated_by?: string | null;
6092
+ user_id: string;
6093
+ version?: number;
6094
+ };
6095
+ Update: {
6096
+ color?: string;
6097
+ created_at?: string;
6098
+ description?: string | null;
6099
+ id?: string;
6100
+ is_active?: boolean;
6101
+ name?: string;
6102
+ priority?: number;
6103
+ updated_at?: string;
6104
+ updated_by?: string | null;
6105
+ user_id?: string;
6106
+ version?: number;
6107
+ };
6108
+ Relationships: [];
6109
+ };
6110
+ logistics_strategy_schedules: {
6111
+ Row: {
6112
+ condition_expression: string | null;
6113
+ created_at: string;
6114
+ end_date: string | null;
6115
+ id: string;
6116
+ is_enabled: boolean;
6117
+ priority: number;
6118
+ rule_type: string;
6119
+ start_date: string | null;
6120
+ strategy_id: string;
6121
+ updated_at: string;
6122
+ user_id: string;
6123
+ };
6124
+ Insert: {
6125
+ condition_expression?: string | null;
6126
+ created_at?: string;
6127
+ end_date?: string | null;
6128
+ id?: string;
6129
+ is_enabled?: boolean;
6130
+ priority?: number;
6131
+ rule_type: string;
6132
+ start_date?: string | null;
6133
+ strategy_id: string;
6134
+ updated_at?: string;
6135
+ user_id: string;
6136
+ };
6137
+ Update: {
6138
+ condition_expression?: string | null;
6139
+ created_at?: string;
6140
+ end_date?: string | null;
6141
+ id?: string;
6142
+ is_enabled?: boolean;
6143
+ priority?: number;
6144
+ rule_type?: string;
6145
+ start_date?: string | null;
6146
+ strategy_id?: string;
6147
+ updated_at?: string;
6148
+ user_id?: string;
6149
+ };
6150
+ Relationships: [{
6151
+ foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
6152
+ columns: ["strategy_id"];
6153
+ isOneToOne: false;
6154
+ referencedRelation: "logistics_strategies";
6155
+ referencedColumns: ["id"];
6156
+ }];
6157
+ };
6158
+ logistics_variables: {
6159
+ Row: {
6160
+ created_at: string;
6161
+ default_value: string | null;
6162
+ description: string | null;
6163
+ id: string;
6164
+ is_builtin: boolean;
6165
+ key: string;
6166
+ label: string;
6167
+ updated_at: string;
6168
+ user_id: string;
6169
+ value_type: string;
6170
+ };
6171
+ Insert: {
6172
+ created_at?: string;
6173
+ default_value?: string | null;
6174
+ description?: string | null;
6175
+ id?: string;
6176
+ is_builtin?: boolean;
6177
+ key: string;
6178
+ label: string;
6179
+ updated_at?: string;
6180
+ user_id: string;
6181
+ value_type: string;
6182
+ };
6183
+ Update: {
6184
+ created_at?: string;
6185
+ default_value?: string | null;
6186
+ description?: string | null;
6187
+ id?: string;
6188
+ is_builtin?: boolean;
6189
+ key?: string;
6190
+ label?: string;
6191
+ updated_at?: string;
6192
+ user_id?: string;
6193
+ value_type?: string;
6194
+ };
6195
+ Relationships: [];
6196
+ };
6197
+ mailbox_messages: {
6198
+ Row: {
6199
+ body_html: string | null;
6200
+ body_text: string | null;
6201
+ connection_id: string | null;
6202
+ created_at: string;
6203
+ error_message: string | null;
6204
+ external_id: string | null;
6205
+ from_email: string | null;
6206
+ from_name: string | null;
6207
+ id: string;
6208
+ message_id: string | null;
6209
+ profile_id: string | null;
6210
+ raw_size: number | null;
6211
+ received_at: string | null;
6212
+ status: string;
6213
+ subject: string | null;
6214
+ uid: number | null;
6215
+ updated_at: string;
6216
+ };
6217
+ Insert: {
6218
+ body_html?: string | null;
6219
+ body_text?: string | null;
6220
+ connection_id?: string | null;
6221
+ created_at?: string;
6222
+ error_message?: string | null;
6223
+ external_id?: string | null;
6224
+ from_email?: string | null;
6225
+ from_name?: string | null;
6226
+ id?: string;
6227
+ message_id?: string | null;
6228
+ profile_id?: string | null;
6229
+ raw_size?: number | null;
6230
+ received_at?: string | null;
6231
+ status?: string;
6232
+ subject?: string | null;
6233
+ uid?: number | null;
6234
+ updated_at?: string;
6235
+ };
6236
+ Update: {
6237
+ body_html?: string | null;
6238
+ body_text?: string | null;
6239
+ connection_id?: string | null;
6240
+ created_at?: string;
6241
+ error_message?: string | null;
6242
+ external_id?: string | null;
6243
+ from_email?: string | null;
6244
+ from_name?: string | null;
6245
+ id?: string;
6246
+ message_id?: string | null;
6247
+ profile_id?: string | null;
6248
+ raw_size?: number | null;
6249
+ received_at?: string | null;
6250
+ status?: string;
6251
+ subject?: string | null;
6252
+ uid?: number | null;
6253
+ updated_at?: string;
6254
+ };
6255
+ Relationships: [{
6256
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
6257
+ columns: ["connection_id"];
6258
+ isOneToOne: false;
6259
+ referencedRelation: "email_auth_connections";
6260
+ referencedColumns: ["id"];
6261
+ }, {
6262
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
6263
+ columns: ["connection_id"];
6264
+ isOneToOne: false;
6265
+ referencedRelation: "email_auth_connections_safe";
6266
+ referencedColumns: ["id"];
6267
+ }, {
6268
+ foreignKeyName: "mailbox_messages_profile_id_fkey";
6269
+ columns: ["profile_id"];
6270
+ isOneToOne: false;
6271
+ referencedRelation: "imap_profiles";
6272
+ referencedColumns: ["id"];
6273
+ }];
6274
+ };
6275
+ mailbox_order_proposals: {
6276
+ Row: {
6277
+ confidence: number | null;
6278
+ created_at: string;
6279
+ created_order_id: string | null;
6280
+ delivery_date: string | null;
6281
+ id: string;
6282
+ matched_customer_id: string | null;
6283
+ message_id: string;
6284
+ notes: string | null;
6285
+ order_number: string | null;
6286
+ parsed_payload: import("./types").Json | null;
6287
+ reviewed_at: string | null;
6288
+ reviewed_by: string | null;
6289
+ status: string;
6290
+ updated_at: string;
6291
+ };
6292
+ Insert: {
6293
+ confidence?: number | null;
6294
+ created_at?: string;
6295
+ created_order_id?: string | null;
6296
+ delivery_date?: string | null;
6297
+ id?: string;
6298
+ matched_customer_id?: string | null;
6299
+ message_id: string;
6300
+ notes?: string | null;
6301
+ order_number?: string | null;
6302
+ parsed_payload?: import("./types").Json | null;
6303
+ reviewed_at?: string | null;
6304
+ reviewed_by?: string | null;
6305
+ status?: string;
5568
6306
  updated_at?: string;
5569
6307
  };
5570
6308
  Update: {
@@ -5851,39 +6589,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5851
6589
  };
5852
6590
  manufacture_products: {
5853
6591
  Row: {
6592
+ aantal_te_produceren: number;
5854
6593
  created_at: string;
5855
6594
  description: string | null;
5856
6595
  id: string;
5857
6596
  is_active: boolean;
6597
+ location_id: string | null;
5858
6598
  name: string;
6599
+ partij_nummer: string | null;
6600
+ photos: import("./types").Json;
5859
6601
  produced_stock: number;
5860
6602
  product_code: string;
5861
6603
  tenant_id: string;
6604
+ unit: string;
5862
6605
  updated_at: string;
5863
6606
  };
5864
6607
  Insert: {
6608
+ aantal_te_produceren?: number;
5865
6609
  created_at?: string;
5866
6610
  description?: string | null;
5867
6611
  id?: string;
5868
6612
  is_active?: boolean;
6613
+ location_id?: string | null;
5869
6614
  name: string;
6615
+ partij_nummer?: string | null;
6616
+ photos?: import("./types").Json;
5870
6617
  produced_stock?: number;
5871
6618
  product_code: string;
5872
6619
  tenant_id: string;
6620
+ unit?: string;
5873
6621
  updated_at?: string;
5874
6622
  };
5875
6623
  Update: {
6624
+ aantal_te_produceren?: number;
5876
6625
  created_at?: string;
5877
6626
  description?: string | null;
5878
6627
  id?: string;
5879
6628
  is_active?: boolean;
6629
+ location_id?: string | null;
5880
6630
  name?: string;
6631
+ partij_nummer?: string | null;
6632
+ photos?: import("./types").Json;
5881
6633
  produced_stock?: number;
5882
6634
  product_code?: string;
5883
6635
  tenant_id?: string;
6636
+ unit?: string;
5884
6637
  updated_at?: string;
5885
6638
  };
5886
- Relationships: [];
6639
+ Relationships: [{
6640
+ foreignKeyName: "manufacture_products_location_id_fkey";
6641
+ columns: ["location_id"];
6642
+ isOneToOne: false;
6643
+ referencedRelation: "locations";
6644
+ referencedColumns: ["id"];
6645
+ }];
5887
6646
  };
5888
6647
  monteurs: {
5889
6648
  Row: {
@@ -6614,6 +7373,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6614
7373
  };
6615
7374
  Relationships: [];
6616
7375
  };
7376
+ order_buffers: {
7377
+ Row: {
7378
+ buffer_key: string;
7379
+ created_at: string;
7380
+ customer_id: string | null;
7381
+ grouping_mode: string;
7382
+ id: string;
7383
+ pickup_date: string | null;
7384
+ pickup_location: string | null;
7385
+ plan_locked_at: string | null;
7386
+ updated_at: string;
7387
+ };
7388
+ Insert: {
7389
+ buffer_key: string;
7390
+ created_at?: string;
7391
+ customer_id?: string | null;
7392
+ grouping_mode: string;
7393
+ id?: string;
7394
+ pickup_date?: string | null;
7395
+ pickup_location?: string | null;
7396
+ plan_locked_at?: string | null;
7397
+ updated_at?: string;
7398
+ };
7399
+ Update: {
7400
+ buffer_key?: string;
7401
+ created_at?: string;
7402
+ customer_id?: string | null;
7403
+ grouping_mode?: string;
7404
+ id?: string;
7405
+ pickup_date?: string | null;
7406
+ pickup_location?: string | null;
7407
+ plan_locked_at?: string | null;
7408
+ updated_at?: string;
7409
+ };
7410
+ Relationships: [];
7411
+ };
6617
7412
  order_cart_items: {
6618
7413
  Row: {
6619
7414
  cart_id: string;
@@ -6680,6 +7475,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6680
7475
  order_carts: {
6681
7476
  Row: {
6682
7477
  algorithm_version: number;
7478
+ buffer_id: string | null;
6683
7479
  cart_number: number;
6684
7480
  created_at: string;
6685
7481
  id: string;
@@ -6687,13 +7483,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6687
7483
  is_complete: boolean;
6688
7484
  notes: string | null;
6689
7485
  occupancy_pct: number;
6690
- order_id: string;
7486
+ order_id: string | null;
6691
7487
  source: string;
6692
7488
  total_layers_used: number;
6693
7489
  updated_at: string;
6694
7490
  };
6695
7491
  Insert: {
6696
7492
  algorithm_version?: number;
7493
+ buffer_id?: string | null;
6697
7494
  cart_number: number;
6698
7495
  created_at?: string;
6699
7496
  id?: string;
@@ -6701,13 +7498,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6701
7498
  is_complete?: boolean;
6702
7499
  notes?: string | null;
6703
7500
  occupancy_pct?: number;
6704
- order_id: string;
7501
+ order_id?: string | null;
6705
7502
  source?: string;
6706
7503
  total_layers_used?: number;
6707
7504
  updated_at?: string;
6708
7505
  };
6709
7506
  Update: {
6710
7507
  algorithm_version?: number;
7508
+ buffer_id?: string | null;
6711
7509
  cart_number?: number;
6712
7510
  created_at?: string;
6713
7511
  id?: string;
@@ -6715,12 +7513,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6715
7513
  is_complete?: boolean;
6716
7514
  notes?: string | null;
6717
7515
  occupancy_pct?: number;
6718
- order_id?: string;
7516
+ order_id?: string | null;
6719
7517
  source?: string;
6720
7518
  total_layers_used?: number;
6721
7519
  updated_at?: string;
6722
7520
  };
6723
7521
  Relationships: [{
7522
+ foreignKeyName: "order_carts_buffer_id_fkey";
7523
+ columns: ["buffer_id"];
7524
+ isOneToOne: false;
7525
+ referencedRelation: "order_buffers";
7526
+ referencedColumns: ["id"];
7527
+ }, {
6724
7528
  foreignKeyName: "order_carts_order_id_fkey";
6725
7529
  columns: ["order_id"];
6726
7530
  isOneToOne: false;
@@ -6857,15 +7661,117 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6857
7661
  };
6858
7662
  Relationships: [];
6859
7663
  };
7664
+ order_shipment_items: {
7665
+ Row: {
7666
+ created_at: string;
7667
+ id: string;
7668
+ order_item_id: string;
7669
+ product_id: string | null;
7670
+ product_name: string;
7671
+ quantity: number;
7672
+ shipment_id: string;
7673
+ updated_at: string;
7674
+ };
7675
+ Insert: {
7676
+ created_at?: string;
7677
+ id?: string;
7678
+ order_item_id: string;
7679
+ product_id?: string | null;
7680
+ product_name: string;
7681
+ quantity: number;
7682
+ shipment_id: string;
7683
+ updated_at?: string;
7684
+ };
7685
+ Update: {
7686
+ created_at?: string;
7687
+ id?: string;
7688
+ order_item_id?: string;
7689
+ product_id?: string | null;
7690
+ product_name?: string;
7691
+ quantity?: number;
7692
+ shipment_id?: string;
7693
+ updated_at?: string;
7694
+ };
7695
+ Relationships: [{
7696
+ foreignKeyName: "order_shipment_items_order_item_id_fkey";
7697
+ columns: ["order_item_id"];
7698
+ isOneToOne: false;
7699
+ referencedRelation: "order_items";
7700
+ referencedColumns: ["id"];
7701
+ }, {
7702
+ foreignKeyName: "order_shipment_items_shipment_id_fkey";
7703
+ columns: ["shipment_id"];
7704
+ isOneToOne: false;
7705
+ referencedRelation: "order_shipments";
7706
+ referencedColumns: ["id"];
7707
+ }];
7708
+ };
7709
+ order_shipments: {
7710
+ Row: {
7711
+ carrier_id: string | null;
7712
+ created_at: string;
7713
+ delivery_date: string | null;
7714
+ delivery_location_id: string | null;
7715
+ id: string;
7716
+ notes: string | null;
7717
+ order_id: string;
7718
+ shipment_number: number;
7719
+ shipped_at: string | null;
7720
+ status: string;
7721
+ updated_at: string;
7722
+ };
7723
+ Insert: {
7724
+ carrier_id?: string | null;
7725
+ created_at?: string;
7726
+ delivery_date?: string | null;
7727
+ delivery_location_id?: string | null;
7728
+ id?: string;
7729
+ notes?: string | null;
7730
+ order_id: string;
7731
+ shipment_number: number;
7732
+ shipped_at?: string | null;
7733
+ status?: string;
7734
+ updated_at?: string;
7735
+ };
7736
+ Update: {
7737
+ carrier_id?: string | null;
7738
+ created_at?: string;
7739
+ delivery_date?: string | null;
7740
+ delivery_location_id?: string | null;
7741
+ id?: string;
7742
+ notes?: string | null;
7743
+ order_id?: string;
7744
+ shipment_number?: number;
7745
+ shipped_at?: string | null;
7746
+ status?: string;
7747
+ updated_at?: string;
7748
+ };
7749
+ Relationships: [{
7750
+ foreignKeyName: "order_shipments_carrier_id_fkey";
7751
+ columns: ["carrier_id"];
7752
+ isOneToOne: false;
7753
+ referencedRelation: "carriers";
7754
+ referencedColumns: ["id"];
7755
+ }, {
7756
+ foreignKeyName: "order_shipments_order_id_fkey";
7757
+ columns: ["order_id"];
7758
+ isOneToOne: false;
7759
+ referencedRelation: "orders";
7760
+ referencedColumns: ["id"];
7761
+ }];
7762
+ };
6860
7763
  orders: {
6861
7764
  Row: {
7765
+ buffer_id: string | null;
6862
7766
  created_at: string;
6863
7767
  custom_fields: import("./types").Json;
6864
7768
  customer_id: string | null;
6865
7769
  customer_name: string;
6866
7770
  deleted_at: string | null;
6867
- delivery_date: string;
7771
+ delivery_date: string | null;
7772
+ floriday_sales_order_id: string | null;
6868
7773
  id: string;
7774
+ is_reservation: boolean;
6869
7775
  notes: string | null;
6870
7776
  order_date: string;
6871
7777
  order_number: string;
@@ -6877,13 +7783,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6877
7783
  updated_at: string;
6878
7784
  };
6879
7785
  Insert: {
7786
+ buffer_id?: string | null;
6880
7787
  created_at?: string;
6881
7788
  custom_fields?: import("./types").Json;
6882
7789
  customer_id?: string | null;
6883
7790
  customer_name?: string;
6884
7791
  deleted_at?: string | null;
6885
- delivery_date: string;
7792
+ delivery_date?: string | null;
7793
+ floriday_sales_order_id?: string | null;
6886
7794
  id?: string;
7795
+ is_reservation?: boolean;
6887
7796
  notes?: string | null;
6888
7797
  order_date?: string;
6889
7798
  order_number: string;
@@ -6895,13 +7804,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6895
7804
  updated_at?: string;
6896
7805
  };
6897
7806
  Update: {
7807
+ buffer_id?: string | null;
6898
7808
  created_at?: string;
6899
7809
  custom_fields?: import("./types").Json;
6900
7810
  customer_id?: string | null;
6901
7811
  customer_name?: string;
6902
7812
  deleted_at?: string | null;
6903
- delivery_date?: string;
7813
+ delivery_date?: string | null;
7814
+ floriday_sales_order_id?: string | null;
6904
7815
  id?: string;
7816
+ is_reservation?: boolean;
6905
7817
  notes?: string | null;
6906
7818
  order_date?: string;
6907
7819
  order_number?: string;
@@ -6913,6 +7825,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6913
7825
  updated_at?: string;
6914
7826
  };
6915
7827
  Relationships: [{
7828
+ foreignKeyName: "orders_buffer_id_fkey";
7829
+ columns: ["buffer_id"];
7830
+ isOneToOne: false;
7831
+ referencedRelation: "order_buffers";
7832
+ referencedColumns: ["id"];
7833
+ }, {
6916
7834
  foreignKeyName: "orders_customer_id_fkey";
6917
7835
  columns: ["customer_id"];
6918
7836
  isOneToOne: false;
@@ -7043,6 +7961,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7043
7961
  };
7044
7962
  Relationships: [];
7045
7963
  };
7964
+ product_bom_items: {
7965
+ Row: {
7966
+ component_product_id: string | null;
7967
+ component_trade_item_floriday_id: string | null;
7968
+ created_at: string;
7969
+ id: string;
7970
+ notes: string | null;
7971
+ packing_configuration_id: string | null;
7972
+ parent_product_id: string | null;
7973
+ parent_trade_item_floriday_id: string | null;
7974
+ quantity: number;
7975
+ sort_order: number;
7976
+ tenant_id: string;
7977
+ unit: string;
7978
+ updated_at: string;
7979
+ };
7980
+ Insert: {
7981
+ component_product_id?: string | null;
7982
+ component_trade_item_floriday_id?: string | null;
7983
+ created_at?: string;
7984
+ id?: string;
7985
+ notes?: string | null;
7986
+ packing_configuration_id?: string | null;
7987
+ parent_product_id?: string | null;
7988
+ parent_trade_item_floriday_id?: string | null;
7989
+ quantity?: number;
7990
+ sort_order?: number;
7991
+ tenant_id: string;
7992
+ unit?: string;
7993
+ updated_at?: string;
7994
+ };
7995
+ Update: {
7996
+ component_product_id?: string | null;
7997
+ component_trade_item_floriday_id?: string | null;
7998
+ created_at?: string;
7999
+ id?: string;
8000
+ notes?: string | null;
8001
+ packing_configuration_id?: string | null;
8002
+ parent_product_id?: string | null;
8003
+ parent_trade_item_floriday_id?: string | null;
8004
+ quantity?: number;
8005
+ sort_order?: number;
8006
+ tenant_id?: string;
8007
+ unit?: string;
8008
+ updated_at?: string;
8009
+ };
8010
+ Relationships: [{
8011
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8012
+ columns: ["component_product_id"];
8013
+ isOneToOne: false;
8014
+ referencedRelation: "products";
8015
+ referencedColumns: ["id"];
8016
+ }, {
8017
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8018
+ columns: ["parent_product_id"];
8019
+ isOneToOne: false;
8020
+ referencedRelation: "products";
8021
+ referencedColumns: ["id"];
8022
+ }];
8023
+ };
7046
8024
  product_categories: {
7047
8025
  Row: {
7048
8026
  color: string;
@@ -7148,6 +8126,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7148
8126
  id: string;
7149
8127
  product_group_id: string;
7150
8128
  quantity: number;
8129
+ sort_order: number;
7151
8130
  trade_item_id: string;
7152
8131
  };
7153
8132
  Insert: {
@@ -7155,63 +8134,181 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7155
8134
  id?: string;
7156
8135
  product_group_id: string;
7157
8136
  quantity?: number;
8137
+ sort_order?: number;
7158
8138
  trade_item_id: string;
7159
8139
  };
7160
8140
  Update: {
7161
8141
  created_at?: string;
7162
8142
  id?: string;
7163
- product_group_id?: string;
7164
- quantity?: number;
7165
- trade_item_id?: string;
8143
+ product_group_id?: string;
8144
+ quantity?: number;
8145
+ sort_order?: number;
8146
+ trade_item_id?: string;
8147
+ };
8148
+ Relationships: [{
8149
+ foreignKeyName: "product_group_items_product_group_id_fkey";
8150
+ columns: ["product_group_id"];
8151
+ isOneToOne: false;
8152
+ referencedRelation: "product_groups";
8153
+ referencedColumns: ["id"];
8154
+ }];
8155
+ };
8156
+ product_groups: {
8157
+ Row: {
8158
+ created_at: string;
8159
+ description: string | null;
8160
+ head_product_id: string | null;
8161
+ head_trade_item_floriday_id: string | null;
8162
+ id: string;
8163
+ is_active: boolean;
8164
+ name: string;
8165
+ tenant_id: string;
8166
+ updated_at: string;
8167
+ };
8168
+ Insert: {
8169
+ created_at?: string;
8170
+ description?: string | null;
8171
+ head_product_id?: string | null;
8172
+ head_trade_item_floriday_id?: string | null;
8173
+ id?: string;
8174
+ is_active?: boolean;
8175
+ name: string;
8176
+ tenant_id: string;
8177
+ updated_at?: string;
8178
+ };
8179
+ Update: {
8180
+ created_at?: string;
8181
+ description?: string | null;
8182
+ head_product_id?: string | null;
8183
+ head_trade_item_floriday_id?: string | null;
8184
+ id?: string;
8185
+ is_active?: boolean;
8186
+ name?: string;
8187
+ tenant_id?: string;
8188
+ updated_at?: string;
7166
8189
  };
7167
8190
  Relationships: [{
7168
- foreignKeyName: "product_group_items_product_group_id_fkey";
7169
- columns: ["product_group_id"];
8191
+ foreignKeyName: "product_groups_head_product_id_fkey";
8192
+ columns: ["head_product_id"];
7170
8193
  isOneToOne: false;
7171
- referencedRelation: "product_groups";
8194
+ referencedRelation: "products";
7172
8195
  referencedColumns: ["id"];
7173
8196
  }];
7174
8197
  };
7175
- product_groups: {
8198
+ product_load_settings: {
7176
8199
  Row: {
7177
8200
  created_at: string;
7178
- description: string | null;
7179
8201
  id: string;
7180
- is_active: boolean;
7181
- name: string;
8202
+ is_package: boolean;
8203
+ label: string | null;
8204
+ layers_per_load_carrier: number | null;
8205
+ load_carrier: string | null;
8206
+ package_id: string | null;
8207
+ package_label: string | null;
8208
+ packages_per_layer: number | null;
8209
+ packing_configuration_id: string;
8210
+ product_id: string | null;
7182
8211
  tenant_id: string;
8212
+ trade_item_floriday_id: string | null;
8213
+ units_per_package: number | null;
7183
8214
  updated_at: string;
7184
8215
  };
7185
8216
  Insert: {
7186
8217
  created_at?: string;
7187
- description?: string | null;
7188
8218
  id?: string;
7189
- is_active?: boolean;
7190
- name: string;
8219
+ is_package?: boolean;
8220
+ label?: string | null;
8221
+ layers_per_load_carrier?: number | null;
8222
+ load_carrier?: string | null;
8223
+ package_id?: string | null;
8224
+ package_label?: string | null;
8225
+ packages_per_layer?: number | null;
8226
+ packing_configuration_id?: string;
8227
+ product_id?: string | null;
7191
8228
  tenant_id: string;
8229
+ trade_item_floriday_id?: string | null;
8230
+ units_per_package?: number | null;
7192
8231
  updated_at?: string;
7193
8232
  };
7194
8233
  Update: {
7195
8234
  created_at?: string;
7196
- description?: string | null;
7197
8235
  id?: string;
7198
- is_active?: boolean;
7199
- name?: string;
8236
+ is_package?: boolean;
8237
+ label?: string | null;
8238
+ layers_per_load_carrier?: number | null;
8239
+ load_carrier?: string | null;
8240
+ package_id?: string | null;
8241
+ package_label?: string | null;
8242
+ packages_per_layer?: number | null;
8243
+ packing_configuration_id?: string;
8244
+ product_id?: string | null;
7200
8245
  tenant_id?: string;
8246
+ trade_item_floriday_id?: string | null;
8247
+ units_per_package?: number | null;
7201
8248
  updated_at?: string;
7202
8249
  };
8250
+ Relationships: [{
8251
+ foreignKeyName: "product_load_settings_package_id_fkey";
8252
+ columns: ["package_id"];
8253
+ isOneToOne: false;
8254
+ referencedRelation: "packages";
8255
+ referencedColumns: ["id"];
8256
+ }, {
8257
+ foreignKeyName: "product_load_settings_product_id_fkey";
8258
+ columns: ["product_id"];
8259
+ isOneToOne: false;
8260
+ referencedRelation: "products";
8261
+ referencedColumns: ["id"];
8262
+ }];
8263
+ };
8264
+ product_merge_log: {
8265
+ Row: {
8266
+ canonical_product_id: string | null;
8267
+ id: string;
8268
+ merged_at: string;
8269
+ merged_from_id: string;
8270
+ notes: string | null;
8271
+ snapshot: import("./types").Json;
8272
+ source_table: string;
8273
+ status: string;
8274
+ };
8275
+ Insert: {
8276
+ canonical_product_id?: string | null;
8277
+ id?: string;
8278
+ merged_at?: string;
8279
+ merged_from_id: string;
8280
+ notes?: string | null;
8281
+ snapshot?: import("./types").Json;
8282
+ source_table: string;
8283
+ status?: string;
8284
+ };
8285
+ Update: {
8286
+ canonical_product_id?: string | null;
8287
+ id?: string;
8288
+ merged_at?: string;
8289
+ merged_from_id?: string;
8290
+ notes?: string | null;
8291
+ snapshot?: import("./types").Json;
8292
+ source_table?: string;
8293
+ status?: string;
8294
+ };
7203
8295
  Relationships: [];
7204
8296
  };
7205
8297
  products: {
7206
8298
  Row: {
8299
+ article_number: string | null;
7207
8300
  barcode: string | null;
7208
8301
  batch: string;
7209
8302
  crates_per_layer: number;
7210
8303
  created_at: string;
7211
8304
  custom_fields: import("./types").Json;
8305
+ floriday_active: boolean;
8306
+ floriday_payload: import("./types").Json;
8307
+ floriday_trade_item_id: string | null;
7212
8308
  id: string;
7213
8309
  image_url: string | null;
7214
8310
  incoming_quantity: number;
8311
+ is_layer: boolean;
7215
8312
  layers_per_cart: number;
7216
8313
  location: string;
7217
8314
  min_quantity: number;
@@ -7224,17 +8321,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7224
8321
  trade_item_key: string | null;
7225
8322
  unit: string;
7226
8323
  updated_at: string;
8324
+ vat_code: string | null;
8325
+ vat_rate: number | null;
7227
8326
  weight: string | null;
7228
8327
  };
7229
8328
  Insert: {
8329
+ article_number?: string | null;
7230
8330
  barcode?: string | null;
7231
8331
  batch: string;
7232
8332
  crates_per_layer?: number;
7233
8333
  created_at?: string;
7234
8334
  custom_fields?: import("./types").Json;
8335
+ floriday_active?: boolean;
8336
+ floriday_payload?: import("./types").Json;
8337
+ floriday_trade_item_id?: string | null;
7235
8338
  id?: string;
7236
8339
  image_url?: string | null;
7237
8340
  incoming_quantity?: number;
8341
+ is_layer?: boolean;
7238
8342
  layers_per_cart?: number;
7239
8343
  location: string;
7240
8344
  min_quantity?: number;
@@ -7247,17 +8351,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7247
8351
  trade_item_key?: string | null;
7248
8352
  unit?: string;
7249
8353
  updated_at?: string;
8354
+ vat_code?: string | null;
8355
+ vat_rate?: number | null;
7250
8356
  weight?: string | null;
7251
8357
  };
7252
8358
  Update: {
8359
+ article_number?: string | null;
7253
8360
  barcode?: string | null;
7254
8361
  batch?: string;
7255
8362
  crates_per_layer?: number;
7256
8363
  created_at?: string;
7257
8364
  custom_fields?: import("./types").Json;
8365
+ floriday_active?: boolean;
8366
+ floriday_payload?: import("./types").Json;
8367
+ floriday_trade_item_id?: string | null;
7258
8368
  id?: string;
7259
8369
  image_url?: string | null;
7260
8370
  incoming_quantity?: number;
8371
+ is_layer?: boolean;
7261
8372
  layers_per_cart?: number;
7262
8373
  location?: string;
7263
8374
  min_quantity?: number;
@@ -7270,12 +8381,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7270
8381
  trade_item_key?: string | null;
7271
8382
  unit?: string;
7272
8383
  updated_at?: string;
8384
+ vat_code?: string | null;
8385
+ vat_rate?: number | null;
7273
8386
  weight?: string | null;
7274
8387
  };
7275
8388
  Relationships: [];
7276
8389
  };
7277
8390
  profiles: {
7278
8391
  Row: {
8392
+ address: string | null;
7279
8393
  created_at: string;
7280
8394
  display_name: string | null;
7281
8395
  email: string | null;
@@ -7286,6 +8400,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7286
8400
  updated_at: string;
7287
8401
  };
7288
8402
  Insert: {
8403
+ address?: string | null;
7289
8404
  created_at?: string;
7290
8405
  display_name?: string | null;
7291
8406
  email?: string | null;
@@ -7296,6 +8411,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7296
8411
  updated_at?: string;
7297
8412
  };
7298
8413
  Update: {
8414
+ address?: string | null;
7299
8415
  created_at?: string;
7300
8416
  display_name?: string | null;
7301
8417
  email?: string | null;
@@ -8160,8 +9276,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8160
9276
  order_id: string | null;
8161
9277
  order_item_id: string | null;
8162
9278
  order_source: string | null;
9279
+ parent_trade_item_key: string | null;
8163
9280
  physical_after: number | null;
8164
9281
  physical_before: number | null;
9282
+ production_batch_id: string | null;
8165
9283
  qty_delta: number;
8166
9284
  reason: string | null;
8167
9285
  reserved_after: number | null;
@@ -8177,8 +9295,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8177
9295
  order_id?: string | null;
8178
9296
  order_item_id?: string | null;
8179
9297
  order_source?: string | null;
9298
+ parent_trade_item_key?: string | null;
8180
9299
  physical_after?: number | null;
8181
9300
  physical_before?: number | null;
9301
+ production_batch_id?: string | null;
8182
9302
  qty_delta: number;
8183
9303
  reason?: string | null;
8184
9304
  reserved_after?: number | null;
@@ -8194,8 +9314,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8194
9314
  order_id?: string | null;
8195
9315
  order_item_id?: string | null;
8196
9316
  order_source?: string | null;
9317
+ parent_trade_item_key?: string | null;
8197
9318
  physical_after?: number | null;
8198
9319
  physical_before?: number | null;
9320
+ production_batch_id?: string | null;
8199
9321
  qty_delta?: number;
8200
9322
  reason?: string | null;
8201
9323
  reserved_after?: number | null;
@@ -8501,6 +9623,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8501
9623
  };
8502
9624
  Relationships: [];
8503
9625
  };
9626
+ trade_item_prices: {
9627
+ Row: {
9628
+ created_at: string;
9629
+ currency: string;
9630
+ id: string;
9631
+ last_push_error: string | null;
9632
+ last_pushed_at: string | null;
9633
+ price_group_id: string | null;
9634
+ price_per_piece: number;
9635
+ supply_line_id: string | null;
9636
+ trade_item_key: string;
9637
+ updated_at: string;
9638
+ user_id: string;
9639
+ };
9640
+ Insert: {
9641
+ created_at?: string;
9642
+ currency?: string;
9643
+ id?: string;
9644
+ last_push_error?: string | null;
9645
+ last_pushed_at?: string | null;
9646
+ price_group_id?: string | null;
9647
+ price_per_piece: number;
9648
+ supply_line_id?: string | null;
9649
+ trade_item_key: string;
9650
+ updated_at?: string;
9651
+ user_id: string;
9652
+ };
9653
+ Update: {
9654
+ created_at?: string;
9655
+ currency?: string;
9656
+ id?: string;
9657
+ last_push_error?: string | null;
9658
+ last_pushed_at?: string | null;
9659
+ price_group_id?: string | null;
9660
+ price_per_piece?: number;
9661
+ supply_line_id?: string | null;
9662
+ trade_item_key?: string;
9663
+ updated_at?: string;
9664
+ user_id?: string;
9665
+ };
9666
+ Relationships: [];
9667
+ };
8504
9668
  trade_item_stock: {
8505
9669
  Row: {
8506
9670
  connection_id: string;
@@ -8654,7 +9818,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8654
9818
  twinfield_connections: {
8655
9819
  Row: {
8656
9820
  access_token: string | null;
8657
- client_id: string;
9821
+ client_id: string | null;
8658
9822
  client_secret: string | null;
8659
9823
  cluster_uri: string | null;
8660
9824
  company_code: string | null;
@@ -8666,7 +9830,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8666
9830
  is_active: boolean;
8667
9831
  label: string | null;
8668
9832
  office_code: string | null;
8669
- redirect_uri: string;
9833
+ redirect_uri: string | null;
8670
9834
  refresh_token: string | null;
8671
9835
  token_expires_at: string | null;
8672
9836
  updated_at: string;
@@ -8674,7 +9838,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8674
9838
  };
8675
9839
  Insert: {
8676
9840
  access_token?: string | null;
8677
- client_id: string;
9841
+ client_id?: string | null;
8678
9842
  client_secret?: string | null;
8679
9843
  cluster_uri?: string | null;
8680
9844
  company_code?: string | null;
@@ -8686,7 +9850,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8686
9850
  is_active?: boolean;
8687
9851
  label?: string | null;
8688
9852
  office_code?: string | null;
8689
- redirect_uri: string;
9853
+ redirect_uri?: string | null;
8690
9854
  refresh_token?: string | null;
8691
9855
  token_expires_at?: string | null;
8692
9856
  updated_at?: string;
@@ -8694,7 +9858,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8694
9858
  };
8695
9859
  Update: {
8696
9860
  access_token?: string | null;
8697
- client_id?: string;
9861
+ client_id?: string | null;
8698
9862
  client_secret?: string | null;
8699
9863
  cluster_uri?: string | null;
8700
9864
  company_code?: string | null;
@@ -8706,7 +9870,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8706
9870
  is_active?: boolean;
8707
9871
  label?: string | null;
8708
9872
  office_code?: string | null;
8709
- redirect_uri?: string;
9873
+ redirect_uri?: string | null;
8710
9874
  refresh_token?: string | null;
8711
9875
  token_expires_at?: string | null;
8712
9876
  updated_at?: string;
@@ -9901,25 +11065,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9901
11065
  };
9902
11066
  Relationships: [];
9903
11067
  };
9904
- floriday_customer_discounts: {
9905
- Row: {
9906
- base_price: number | null;
9907
- buyer_organization_id: string | null;
9908
- currency: string | null;
9909
- discount_type: string | null;
9910
- discount_value: number | null;
9911
- min_quantity: number | null;
9912
- net_price: number | null;
9913
- product_group_id: string | null;
9914
- raw: import("./types").Json | null;
9915
- source: string | null;
9916
- source_id: string | null;
9917
- trade_item_id: string | null;
9918
- valid_from: string | null;
9919
- valid_until: string | null;
9920
- };
9921
- Relationships: [];
9922
- };
9923
11068
  local_customer_discounts: {
9924
11069
  Row: {
9925
11070
  base_price: number | null;
@@ -10223,6 +11368,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10223
11368
  };
10224
11369
  Returns: number;
10225
11370
  };
11371
+ _migrate_rewrite_stock_key: {
11372
+ Args: {
11373
+ _from_key: string;
11374
+ _to_key: string;
11375
+ };
11376
+ Returns: undefined;
11377
+ };
10226
11378
  afh_city_code: {
10227
11379
  Args: {
10228
11380
  _city: string;
@@ -10306,6 +11458,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10306
11458
  processed_items: number;
10307
11459
  }[];
10308
11460
  };
11461
+ calculate_layer_stock: {
11462
+ Args: {
11463
+ p_product_id: string;
11464
+ };
11465
+ Returns: number;
11466
+ };
10309
11467
  call_exact_route: {
10310
11468
  Args: {
10311
11469
  path: string;
@@ -10336,7 +11494,29 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10336
11494
  };
10337
11495
  cleanup_old_bookings: {
10338
11496
  Args: never;
10339
- Returns: number;
11497
+ Returns: undefined;
11498
+ };
11499
+ consume_bom_for_production: {
11500
+ Args: {
11501
+ p_connection_id: string;
11502
+ p_parent_id: string;
11503
+ p_parent_key: string;
11504
+ p_parent_kind: string;
11505
+ p_quantity: number;
11506
+ p_user_id: string;
11507
+ };
11508
+ Returns: import("./types").Json;
11509
+ } | {
11510
+ Args: {
11511
+ p_batch_id?: string;
11512
+ p_connection_id: string;
11513
+ p_parent_id: string;
11514
+ p_parent_key: string;
11515
+ p_parent_kind: string;
11516
+ p_quantity: number;
11517
+ p_user_id: string;
11518
+ };
11519
+ Returns: import("./types").Json;
10340
11520
  };
10341
11521
  consume_floriday_rate_limit: {
10342
11522
  Args: {
@@ -10389,6 +11569,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10389
11569
  table_name: string;
10390
11570
  }[];
10391
11571
  };
11572
+ delete_samenstelling: {
11573
+ Args: {
11574
+ p_parent_id: string;
11575
+ p_parent_kind: string;
11576
+ };
11577
+ Returns: import("./types").Json;
11578
+ };
10392
11579
  dispatch_carrier_signups_sql: {
10393
11580
  Args: {
10394
11581
  _catchup?: string;
@@ -10430,6 +11617,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10430
11617
  status: string;
10431
11618
  }[];
10432
11619
  };
11620
+ email_auth_upsert_connection: {
11621
+ Args: {
11622
+ _account_email: string;
11623
+ _created_by: string;
11624
+ _is_active: boolean;
11625
+ _provider: string;
11626
+ _status: string;
11627
+ };
11628
+ Returns: string;
11629
+ };
10433
11630
  enqueue_cart_replan_if_unlocked: {
10434
11631
  Args: {
10435
11632
  p_order_id: string;
@@ -10549,19 +11746,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10549
11746
  resource: string;
10550
11747
  }[];
10551
11748
  };
10552
- get_floriday_agreements_active: {
10553
- Args: {
10554
- p_on_date?: string;
10555
- };
10556
- Returns: {
10557
- buyer_organization_id: string;
10558
- data: import("./types").Json;
10559
- floriday_id: string;
10560
- status: string;
10561
- valid_from: string;
10562
- valid_until: string;
10563
- }[];
10564
- };
10565
11749
  get_floriday_clock_supplies_window: {
10566
11750
  Args: {
10567
11751
  p_from: string;
@@ -10634,6 +11818,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10634
11818
  minutes_since_success: number;
10635
11819
  }[];
10636
11820
  };
11821
+ get_group_allocation_keys: {
11822
+ Args: {
11823
+ p_product_id: string;
11824
+ };
11825
+ Returns: {
11826
+ k: string;
11827
+ ord: number;
11828
+ }[];
11829
+ };
11830
+ get_group_head_key: {
11831
+ Args: {
11832
+ p_group_id: string;
11833
+ };
11834
+ Returns: string;
11835
+ };
11836
+ get_inventory_stock_for_key: {
11837
+ Args: {
11838
+ p_key: string;
11839
+ };
11840
+ Returns: number;
11841
+ };
10637
11842
  get_offer_by_link_code: {
10638
11843
  Args: {
10639
11844
  p_code: string;
@@ -10664,6 +11869,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10664
11869
  };
10665
11870
  Returns: string;
10666
11871
  };
11872
+ get_product_group_available_stock: {
11873
+ Args: {
11874
+ p_group_id: string;
11875
+ };
11876
+ Returns: number;
11877
+ };
10667
11878
  get_room_busy_windows: {
10668
11879
  Args: {
10669
11880
  p_from: string;
@@ -10744,6 +11955,32 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10744
11955
  };
10745
11956
  Returns: undefined;
10746
11957
  };
11958
+ mark_salesorder_controlled: {
11959
+ Args: {
11960
+ p_controlled: boolean;
11961
+ p_floriday_id: string;
11962
+ };
11963
+ Returns: undefined;
11964
+ };
11965
+ mark_shipment_shipped: {
11966
+ Args: {
11967
+ p_shipment_id: string;
11968
+ };
11969
+ Returns: undefined;
11970
+ };
11971
+ merge_products: {
11972
+ Args: {
11973
+ _canonical: string;
11974
+ _loser: string;
11975
+ };
11976
+ Returns: undefined;
11977
+ };
11978
+ next_manufacture_partij: {
11979
+ Args: {
11980
+ _tenant_id: string;
11981
+ };
11982
+ Returns: string;
11983
+ };
10747
11984
  next_order_number: {
10748
11985
  Args: {
10749
11986
  p_prefix: string;
@@ -10813,6 +12050,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10813
12050
  };
10814
12051
  Returns: undefined;
10815
12052
  };
12053
+ pickstation_resolve_delivery_orders: {
12054
+ Args: {
12055
+ p_sales_order_ids: string[];
12056
+ };
12057
+ Returns: {
12058
+ delivery_order_id: string;
12059
+ sales_order_id: string;
12060
+ }[];
12061
+ };
10816
12062
  pickstation_set_cart_status: {
10817
12063
  Args: {
10818
12064
  p_cart_index: number;
@@ -10822,6 +12068,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10822
12068
  };
10823
12069
  Returns: undefined;
10824
12070
  };
12071
+ produce_designed_product: {
12072
+ Args: {
12073
+ p_parent_id: string;
12074
+ p_parent_kind: string;
12075
+ p_quantity: number;
12076
+ };
12077
+ Returns: import("./types").Json;
12078
+ };
10825
12079
  promote_trade_item_key: {
10826
12080
  Args: {
10827
12081
  p_new: string;
@@ -10829,6 +12083,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10829
12083
  };
10830
12084
  Returns: undefined;
10831
12085
  };
12086
+ recompute_all_reserved_stock: {
12087
+ Args: never;
12088
+ Returns: undefined;
12089
+ };
10832
12090
  recompute_order_status: {
10833
12091
  Args: {
10834
12092
  p_order_id: string;
@@ -10878,27 +12136,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10878
12136
  };
10879
12137
  Returns: undefined;
10880
12138
  };
12139
+ resolve_group_allocation: {
12140
+ Args: {
12141
+ _needed: number;
12142
+ _product_group_id: string;
12143
+ };
12144
+ Returns: {
12145
+ allocated: number;
12146
+ trade_item_id: string;
12147
+ }[];
12148
+ };
12149
+ resolve_group_member_stock_key: {
12150
+ Args: {
12151
+ p_trade_item_id: string;
12152
+ };
12153
+ Returns: string;
12154
+ };
10881
12155
  resolve_product_id_for_item: {
10882
12156
  Args: {
10883
12157
  p_product_name: string;
10884
12158
  };
10885
12159
  Returns: string;
10886
12160
  };
10887
- schedule_floriday_additional_services_sync: {
12161
+ resolve_stock_trade_item_key: {
10888
12162
  Args: {
10889
- p_apikey: string;
10890
- p_url: string;
12163
+ p_product_id: string;
10891
12164
  };
10892
- Returns: number;
12165
+ Returns: string;
10893
12166
  };
10894
- schedule_floriday_agreement_calloffs_sync: {
12167
+ reverse_production: {
10895
12168
  Args: {
10896
- p_apikey: string;
10897
- p_url: string;
12169
+ p_connection_id?: string;
12170
+ p_parent_key: string;
12171
+ p_quantity: number;
12172
+ p_reason?: string;
12173
+ p_user_id?: string;
10898
12174
  };
10899
- Returns: number;
12175
+ Returns: import("./types").Json;
10900
12176
  };
10901
- schedule_floriday_agreements_sync: {
12177
+ schedule_floriday_additional_services_sync: {
10902
12178
  Args: {
10903
12179
  p_apikey: string;
10904
12180
  p_url: string;
@@ -11151,6 +12427,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11151
12427
  };
11152
12428
  Returns: number;
11153
12429
  };
12430
+ self_heal_floriday_links: {
12431
+ Args: never;
12432
+ Returns: number;
12433
+ };
11154
12434
  show_limit: {
11155
12435
  Args: never;
11156
12436
  Returns: number;
@@ -11161,18 +12441,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11161
12441
  };
11162
12442
  Returns: string[];
11163
12443
  };
12444
+ sync_all_layer_stocks: {
12445
+ Args: never;
12446
+ Returns: undefined;
12447
+ };
11164
12448
  sync_cached_packing_from_product: {
11165
12449
  Args: {
11166
12450
  p_product_id: string;
11167
12451
  };
11168
12452
  Returns: undefined;
11169
12453
  };
12454
+ sync_layer_stock: {
12455
+ Args: {
12456
+ p_product_id: string;
12457
+ };
12458
+ Returns: undefined;
12459
+ };
11170
12460
  sync_order_cart_item_packing_from_product: {
11171
12461
  Args: {
11172
12462
  p_product_id: string;
11173
12463
  };
11174
12464
  Returns: undefined;
11175
12465
  };
12466
+ sync_product_group_belading: {
12467
+ Args: {
12468
+ _group_id: string;
12469
+ };
12470
+ Returns: undefined;
12471
+ };
11176
12472
  sync_product_packing_from_floriday_cache: {
11177
12473
  Args: {
11178
12474
  p_floriday_id: string;