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