@flowselections/floriday-afhandeling-module 1.0.15 → 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 (91) 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.map +1 -1
  27. package/dist-lib/index.js +2 -1
  28. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1340 -164
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/client.d.ts +1340 -164
  31. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  32. package/dist-lib/integrations/supabase/client.server.d.ts +1340 -164
  33. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  34. package/dist-lib/integrations/supabase/types.d.ts +1469 -262
  35. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  36. package/dist-lib/lib/afhandelingSettings.functions.d.ts +2862 -510
  37. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/ai-gateway.server.d.ts +2 -0
  39. package/dist-lib/lib/ai-gateway.server.d.ts.map +1 -0
  40. package/dist-lib/lib/ai-gateway.server.js +11 -0
  41. package/dist-lib/lib/authGateway.server.d.ts +16 -0
  42. package/dist-lib/lib/authGateway.server.d.ts.map +1 -0
  43. package/dist-lib/lib/authGateway.server.js +195 -0
  44. package/dist-lib/lib/carriers.functions.d.ts +6645 -765
  45. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/cartAssignments.functions.d.ts +6645 -765
  47. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/cartControl.functions.d.ts +13290 -1530
  49. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/floriday.functions.d.ts +1340 -164
  51. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/floriday.functions.js +41 -8
  53. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +50090 -0
  54. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -0
  55. package/dist-lib/lib/logisticsEngine/capacity.functions.js +90 -0
  56. package/dist-lib/lib/logisticsEngine/config.d.ts +140 -0
  57. package/dist-lib/lib/logisticsEngine/config.d.ts.map +1 -0
  58. package/dist-lib/lib/logisticsEngine/config.js +488 -0
  59. package/dist-lib/lib/logisticsEngine/enginePickTime.d.ts +29 -0
  60. package/dist-lib/lib/logisticsEngine/enginePickTime.d.ts.map +1 -0
  61. package/dist-lib/lib/logisticsEngine/enginePickTime.js +136 -0
  62. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +12556 -0
  63. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -0
  64. package/dist-lib/lib/logisticsEngine/evaluate.functions.js +104 -0
  65. package/dist-lib/lib/logisticsEngine/expression.d.ts +21 -0
  66. package/dist-lib/lib/logisticsEngine/expression.d.ts.map +1 -0
  67. package/dist-lib/lib/logisticsEngine/expression.js +263 -0
  68. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +25068 -0
  69. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -0
  70. package/dist-lib/lib/logisticsEngine/formulas.functions.js +58 -0
  71. package/dist-lib/lib/logisticsEngine/safetyLayer.d.ts +83 -0
  72. package/dist-lib/lib/logisticsEngine/safetyLayer.d.ts.map +1 -0
  73. package/dist-lib/lib/logisticsEngine/safetyLayer.js +182 -0
  74. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +100185 -0
  75. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -0
  76. package/dist-lib/lib/logisticsEngine/strategies.functions.js +176 -0
  77. package/dist-lib/lib/logisticsEngine/variables.d.ts +29 -0
  78. package/dist-lib/lib/logisticsEngine/variables.d.ts.map +1 -0
  79. package/dist-lib/lib/logisticsEngine/variables.js +144 -0
  80. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +50096 -0
  81. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -0
  82. package/dist-lib/lib/logisticsEngine/wizard.functions.js +175 -0
  83. package/dist-lib/lib/pickstationI18n.d.ts +2 -0
  84. package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
  85. package/dist-lib/lib/pickstationI18n.js +12 -0
  86. package/dist-lib/lib/pickstationOrders.server.d.ts +5 -0
  87. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  88. package/dist-lib/lib/pickstationOrders.server.js +29 -0
  89. package/dist-lib/lib/pickstationTypes.d.ts +4 -0
  90. package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
  91. 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;
@@ -869,6 +1028,138 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
869
1028
  };
870
1029
  Relationships: [];
871
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
+ };
872
1163
  cart_replan_queue: {
873
1164
  Row: {
874
1165
  attempts: number;
@@ -899,6 +1190,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
899
1190
  referencedColumns: ["id"];
900
1191
  }];
901
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
+ };
902
1226
  collections: {
903
1227
  Row: {
904
1228
  created_at: string;
@@ -923,6 +1247,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
923
1247
  };
924
1248
  Relationships: [];
925
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
+ };
926
1280
  customer_audit_log: {
927
1281
  Row: {
928
1282
  action: string;
@@ -3248,127 +3602,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3248
3602
  referencedColumns: ["id"];
3249
3603
  }];
3250
3604
  };
3251
- floriday_agreement_calloffs_cache: {
3605
+ floriday_auction_letters_cache: {
3252
3606
  Row: {
3253
- agreement_id: string | null;
3607
+ auction_letter_code: string;
3608
+ clock_supply_id: string;
3254
3609
  connection_id: string;
3255
- data: import("./types").Json;
3256
- delivery_date: string | null;
3610
+ content_type: string;
3257
3611
  fetched_at: string;
3258
- floriday_id: string;
3259
3612
  id: string;
3260
- is_deleted: boolean;
3261
- sequence_number: number;
3262
- status: string | null;
3263
- updated_at: string;
3613
+ storage_path: string;
3264
3614
  };
3265
3615
  Insert: {
3266
- agreement_id?: string | null;
3616
+ auction_letter_code: string;
3617
+ clock_supply_id: string;
3267
3618
  connection_id: string;
3268
- data?: import("./types").Json;
3269
- delivery_date?: string | null;
3619
+ content_type?: string;
3270
3620
  fetched_at?: string;
3271
- floriday_id: string;
3272
3621
  id?: string;
3273
- is_deleted?: boolean;
3274
- sequence_number?: number;
3275
- status?: string | null;
3276
- updated_at?: string;
3622
+ storage_path: string;
3277
3623
  };
3278
3624
  Update: {
3279
- agreement_id?: string | null;
3280
- connection_id?: string;
3281
- data?: import("./types").Json;
3282
- delivery_date?: string | null;
3283
- fetched_at?: string;
3284
- floriday_id?: string;
3285
- id?: string;
3286
- is_deleted?: boolean;
3287
- sequence_number?: number;
3288
- status?: string | null;
3289
- updated_at?: string;
3290
- };
3291
- Relationships: [{
3292
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3293
- columns: ["connection_id"];
3294
- isOneToOne: false;
3295
- referencedRelation: "floriday_connections";
3296
- referencedColumns: ["id"];
3297
- }];
3298
- };
3299
- floriday_agreements_cache: {
3300
- Row: {
3301
- buyer_organization_id: string | null;
3302
- connection_id: string;
3303
- data: import("./types").Json;
3304
- fetched_at: string;
3305
- floriday_id: string;
3306
- id: string;
3307
- is_deleted: boolean;
3308
- sequence_number: number;
3309
- status: string | null;
3310
- updated_at: string;
3311
- valid_from: string | null;
3312
- valid_until: string | null;
3313
- };
3314
- Insert: {
3315
- buyer_organization_id?: string | null;
3316
- connection_id: string;
3317
- data?: import("./types").Json;
3318
- fetched_at?: string;
3319
- floriday_id: string;
3320
- id?: string;
3321
- is_deleted?: boolean;
3322
- sequence_number?: number;
3323
- status?: string | null;
3324
- updated_at?: string;
3325
- valid_from?: string | null;
3326
- valid_until?: string | null;
3327
- };
3328
- Update: {
3329
- buyer_organization_id?: string | null;
3330
- connection_id?: string;
3331
- data?: import("./types").Json;
3332
- fetched_at?: string;
3333
- floriday_id?: string;
3334
- id?: string;
3335
- is_deleted?: boolean;
3336
- sequence_number?: number;
3337
- status?: string | null;
3338
- updated_at?: string;
3339
- valid_from?: string | null;
3340
- valid_until?: string | null;
3341
- };
3342
- Relationships: [{
3343
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3344
- columns: ["connection_id"];
3345
- isOneToOne: false;
3346
- referencedRelation: "floriday_connections";
3347
- referencedColumns: ["id"];
3348
- }];
3349
- };
3350
- floriday_auction_letters_cache: {
3351
- Row: {
3352
- auction_letter_code: string;
3353
- clock_supply_id: string;
3354
- connection_id: string;
3355
- content_type: string;
3356
- fetched_at: string;
3357
- id: string;
3358
- storage_path: string;
3359
- };
3360
- Insert: {
3361
- auction_letter_code: string;
3362
- clock_supply_id: string;
3363
- connection_id: string;
3364
- content_type?: string;
3365
- fetched_at?: string;
3366
- id?: string;
3367
- storage_path: string;
3368
- };
3369
- Update: {
3370
- auction_letter_code?: string;
3371
- clock_supply_id?: string;
3625
+ auction_letter_code?: string;
3626
+ clock_supply_id?: string;
3372
3627
  connection_id?: string;
3373
3628
  content_type?: string;
3374
3629
  fetched_at?: string;
@@ -3845,6 +4100,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3845
4100
  referencedColumns: ["id"];
3846
4101
  }];
3847
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
+ };
3848
4124
  floriday_continuous_stock_queue: {
3849
4125
  Row: {
3850
4126
  attempts: number;
@@ -4620,6 +4896,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4620
4896
  Row: {
4621
4897
  buyer_organization_id: string | null;
4622
4898
  connection_id: string;
4899
+ controlled_at: string | null;
4900
+ controlled_by: string | null;
4623
4901
  created_at: string;
4624
4902
  data: import("./types").Json;
4625
4903
  floriday_id: string;
@@ -4631,6 +4909,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4631
4909
  Insert: {
4632
4910
  buyer_organization_id?: string | null;
4633
4911
  connection_id: string;
4912
+ controlled_at?: string | null;
4913
+ controlled_by?: string | null;
4634
4914
  created_at?: string;
4635
4915
  data: import("./types").Json;
4636
4916
  floriday_id: string;
@@ -4642,6 +4922,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4642
4922
  Update: {
4643
4923
  buyer_organization_id?: string | null;
4644
4924
  connection_id?: string;
4925
+ controlled_at?: string | null;
4926
+ controlled_by?: string | null;
4645
4927
  created_at?: string;
4646
4928
  data?: import("./types").Json;
4647
4929
  floriday_id?: string;
@@ -4823,6 +5105,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4823
5105
  referencedColumns: ["id"];
4824
5106
  }];
4825
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
+ };
4826
5147
  floriday_trips_cache: {
4827
5148
  Row: {
4828
5149
  carrier_organization_id: string | null;
@@ -4871,6 +5192,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4871
5192
  referencedColumns: ["id"];
4872
5193
  }];
4873
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
+ };
4874
5216
  floriday_warehouses_cache: {
4875
5217
  Row: {
4876
5218
  connection_id: string;
@@ -5573,6 +5915,285 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5573
5915
  };
5574
5916
  Relationships: [];
5575
5917
  };
5918
+ logistics_capacity_events: {
5919
+ Row: {
5920
+ available_carts: number;
5921
+ created_at: string;
5922
+ id: string;
5923
+ measures: import("./types").Json;
5924
+ note: string | null;
5925
+ outcome: string;
5926
+ required_carts: number;
5927
+ reserve_minutes: number;
5928
+ shortage_carts: number;
5929
+ status: string;
5930
+ user_id: string;
5931
+ };
5932
+ Insert: {
5933
+ available_carts?: number;
5934
+ created_at?: string;
5935
+ id?: 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;
5944
+ };
5945
+ Update: {
5946
+ available_carts?: number;
5947
+ created_at?: string;
5948
+ id?: string;
5949
+ measures?: import("./types").Json;
5950
+ note?: string | null;
5951
+ outcome?: string;
5952
+ required_carts?: number;
5953
+ reserve_minutes?: number;
5954
+ shortage_carts?: number;
5955
+ status?: string;
5956
+ user_id?: string;
5957
+ };
5958
+ Relationships: [];
5959
+ };
5960
+ logistics_capacity_settings: {
5961
+ Row: {
5962
+ created_at: string;
5963
+ settings: import("./types").Json;
5964
+ updated_at: string;
5965
+ user_id: string;
5966
+ };
5967
+ Insert: {
5968
+ created_at?: 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
+ };
5576
6197
  mailbox_messages: {
5577
6198
  Row: {
5578
6199
  body_html: string | null;
@@ -5968,39 +6589,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5968
6589
  };
5969
6590
  manufacture_products: {
5970
6591
  Row: {
6592
+ aantal_te_produceren: number;
5971
6593
  created_at: string;
5972
6594
  description: string | null;
5973
6595
  id: string;
5974
6596
  is_active: boolean;
6597
+ location_id: string | null;
5975
6598
  name: string;
6599
+ partij_nummer: string | null;
6600
+ photos: import("./types").Json;
5976
6601
  produced_stock: number;
5977
6602
  product_code: string;
5978
6603
  tenant_id: string;
6604
+ unit: string;
5979
6605
  updated_at: string;
5980
6606
  };
5981
6607
  Insert: {
6608
+ aantal_te_produceren?: number;
5982
6609
  created_at?: string;
5983
6610
  description?: string | null;
5984
6611
  id?: string;
5985
6612
  is_active?: boolean;
6613
+ location_id?: string | null;
5986
6614
  name: string;
6615
+ partij_nummer?: string | null;
6616
+ photos?: import("./types").Json;
5987
6617
  produced_stock?: number;
5988
6618
  product_code: string;
5989
6619
  tenant_id: string;
6620
+ unit?: string;
5990
6621
  updated_at?: string;
5991
6622
  };
5992
6623
  Update: {
6624
+ aantal_te_produceren?: number;
5993
6625
  created_at?: string;
5994
6626
  description?: string | null;
5995
6627
  id?: string;
5996
6628
  is_active?: boolean;
6629
+ location_id?: string | null;
5997
6630
  name?: string;
6631
+ partij_nummer?: string | null;
6632
+ photos?: import("./types").Json;
5998
6633
  produced_stock?: number;
5999
6634
  product_code?: string;
6000
6635
  tenant_id?: string;
6636
+ unit?: string;
6001
6637
  updated_at?: string;
6002
6638
  };
6003
- Relationships: [];
6639
+ Relationships: [{
6640
+ foreignKeyName: "manufacture_products_location_id_fkey";
6641
+ columns: ["location_id"];
6642
+ isOneToOne: false;
6643
+ referencedRelation: "locations";
6644
+ referencedColumns: ["id"];
6645
+ }];
6004
6646
  };
6005
6647
  monteurs: {
6006
6648
  Row: {
@@ -6731,6 +7373,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6731
7373
  };
6732
7374
  Relationships: [];
6733
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
+ };
6734
7412
  order_cart_items: {
6735
7413
  Row: {
6736
7414
  cart_id: string;
@@ -6797,6 +7475,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6797
7475
  order_carts: {
6798
7476
  Row: {
6799
7477
  algorithm_version: number;
7478
+ buffer_id: string | null;
6800
7479
  cart_number: number;
6801
7480
  created_at: string;
6802
7481
  id: string;
@@ -6804,13 +7483,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6804
7483
  is_complete: boolean;
6805
7484
  notes: string | null;
6806
7485
  occupancy_pct: number;
6807
- order_id: string;
7486
+ order_id: string | null;
6808
7487
  source: string;
6809
7488
  total_layers_used: number;
6810
7489
  updated_at: string;
6811
7490
  };
6812
7491
  Insert: {
6813
7492
  algorithm_version?: number;
7493
+ buffer_id?: string | null;
6814
7494
  cart_number: number;
6815
7495
  created_at?: string;
6816
7496
  id?: string;
@@ -6818,13 +7498,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6818
7498
  is_complete?: boolean;
6819
7499
  notes?: string | null;
6820
7500
  occupancy_pct?: number;
6821
- order_id: string;
7501
+ order_id?: string | null;
6822
7502
  source?: string;
6823
7503
  total_layers_used?: number;
6824
7504
  updated_at?: string;
6825
7505
  };
6826
7506
  Update: {
6827
7507
  algorithm_version?: number;
7508
+ buffer_id?: string | null;
6828
7509
  cart_number?: number;
6829
7510
  created_at?: string;
6830
7511
  id?: string;
@@ -6832,12 +7513,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6832
7513
  is_complete?: boolean;
6833
7514
  notes?: string | null;
6834
7515
  occupancy_pct?: number;
6835
- order_id?: string;
7516
+ order_id?: string | null;
6836
7517
  source?: string;
6837
7518
  total_layers_used?: number;
6838
7519
  updated_at?: string;
6839
7520
  };
6840
7521
  Relationships: [{
7522
+ foreignKeyName: "order_carts_buffer_id_fkey";
7523
+ columns: ["buffer_id"];
7524
+ isOneToOne: false;
7525
+ referencedRelation: "order_buffers";
7526
+ referencedColumns: ["id"];
7527
+ }, {
6841
7528
  foreignKeyName: "order_carts_order_id_fkey";
6842
7529
  columns: ["order_id"];
6843
7530
  isOneToOne: false;
@@ -6974,15 +7661,117 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6974
7661
  };
6975
7662
  Relationships: [];
6976
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
+ };
6977
7763
  orders: {
6978
7764
  Row: {
7765
+ buffer_id: string | null;
6979
7766
  created_at: string;
6980
7767
  custom_fields: import("./types").Json;
6981
7768
  customer_id: string | null;
6982
7769
  customer_name: string;
6983
7770
  deleted_at: string | null;
6984
- delivery_date: string;
7771
+ delivery_date: string | null;
7772
+ floriday_sales_order_id: string | null;
6985
7773
  id: string;
7774
+ is_reservation: boolean;
6986
7775
  notes: string | null;
6987
7776
  order_date: string;
6988
7777
  order_number: string;
@@ -6994,13 +7783,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6994
7783
  updated_at: string;
6995
7784
  };
6996
7785
  Insert: {
7786
+ buffer_id?: string | null;
6997
7787
  created_at?: string;
6998
7788
  custom_fields?: import("./types").Json;
6999
7789
  customer_id?: string | null;
7000
7790
  customer_name?: string;
7001
7791
  deleted_at?: string | null;
7002
- delivery_date: string;
7792
+ delivery_date?: string | null;
7793
+ floriday_sales_order_id?: string | null;
7003
7794
  id?: string;
7795
+ is_reservation?: boolean;
7004
7796
  notes?: string | null;
7005
7797
  order_date?: string;
7006
7798
  order_number: string;
@@ -7012,13 +7804,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7012
7804
  updated_at?: string;
7013
7805
  };
7014
7806
  Update: {
7807
+ buffer_id?: string | null;
7015
7808
  created_at?: string;
7016
7809
  custom_fields?: import("./types").Json;
7017
7810
  customer_id?: string | null;
7018
7811
  customer_name?: string;
7019
7812
  deleted_at?: string | null;
7020
- delivery_date?: string;
7813
+ delivery_date?: string | null;
7814
+ floriday_sales_order_id?: string | null;
7021
7815
  id?: string;
7816
+ is_reservation?: boolean;
7022
7817
  notes?: string | null;
7023
7818
  order_date?: string;
7024
7819
  order_number?: string;
@@ -7030,6 +7825,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7030
7825
  updated_at?: string;
7031
7826
  };
7032
7827
  Relationships: [{
7828
+ foreignKeyName: "orders_buffer_id_fkey";
7829
+ columns: ["buffer_id"];
7830
+ isOneToOne: false;
7831
+ referencedRelation: "order_buffers";
7832
+ referencedColumns: ["id"];
7833
+ }, {
7033
7834
  foreignKeyName: "orders_customer_id_fkey";
7034
7835
  columns: ["customer_id"];
7035
7836
  isOneToOne: false;
@@ -7160,6 +7961,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7160
7961
  };
7161
7962
  Relationships: [];
7162
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
+ };
7163
8024
  product_categories: {
7164
8025
  Row: {
7165
8026
  color: string;
@@ -7265,6 +8126,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7265
8126
  id: string;
7266
8127
  product_group_id: string;
7267
8128
  quantity: number;
8129
+ sort_order: number;
7268
8130
  trade_item_id: string;
7269
8131
  };
7270
8132
  Insert: {
@@ -7272,6 +8134,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7272
8134
  id?: string;
7273
8135
  product_group_id: string;
7274
8136
  quantity?: number;
8137
+ sort_order?: number;
7275
8138
  trade_item_id: string;
7276
8139
  };
7277
8140
  Update: {
@@ -7279,6 +8142,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7279
8142
  id?: string;
7280
8143
  product_group_id?: string;
7281
8144
  quantity?: number;
8145
+ sort_order?: number;
7282
8146
  trade_item_id?: string;
7283
8147
  };
7284
8148
  Relationships: [{
@@ -7293,6 +8157,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7293
8157
  Row: {
7294
8158
  created_at: string;
7295
8159
  description: string | null;
8160
+ head_product_id: string | null;
8161
+ head_trade_item_floriday_id: string | null;
7296
8162
  id: string;
7297
8163
  is_active: boolean;
7298
8164
  name: string;
@@ -7302,6 +8168,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7302
8168
  Insert: {
7303
8169
  created_at?: string;
7304
8170
  description?: string | null;
8171
+ head_product_id?: string | null;
8172
+ head_trade_item_floriday_id?: string | null;
7305
8173
  id?: string;
7306
8174
  is_active?: boolean;
7307
8175
  name: string;
@@ -7311,24 +8179,136 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7311
8179
  Update: {
7312
8180
  created_at?: string;
7313
8181
  description?: string | null;
8182
+ head_product_id?: string | null;
8183
+ head_trade_item_floriday_id?: string | null;
7314
8184
  id?: string;
7315
8185
  is_active?: boolean;
7316
8186
  name?: string;
7317
8187
  tenant_id?: string;
7318
8188
  updated_at?: string;
7319
8189
  };
8190
+ Relationships: [{
8191
+ foreignKeyName: "product_groups_head_product_id_fkey";
8192
+ columns: ["head_product_id"];
8193
+ isOneToOne: false;
8194
+ referencedRelation: "products";
8195
+ referencedColumns: ["id"];
8196
+ }];
8197
+ };
8198
+ product_load_settings: {
8199
+ Row: {
8200
+ created_at: string;
8201
+ id: 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;
8211
+ tenant_id: string;
8212
+ trade_item_floriday_id: string | null;
8213
+ units_per_package: number | null;
8214
+ updated_at: string;
8215
+ };
8216
+ Insert: {
8217
+ created_at?: string;
8218
+ id?: 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;
8228
+ tenant_id: string;
8229
+ trade_item_floriday_id?: string | null;
8230
+ units_per_package?: number | null;
8231
+ updated_at?: string;
8232
+ };
8233
+ Update: {
8234
+ created_at?: string;
8235
+ id?: 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;
8245
+ tenant_id?: string;
8246
+ trade_item_floriday_id?: string | null;
8247
+ units_per_package?: number | null;
8248
+ updated_at?: string;
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
+ };
7320
8295
  Relationships: [];
7321
8296
  };
7322
8297
  products: {
7323
8298
  Row: {
8299
+ article_number: string | null;
7324
8300
  barcode: string | null;
7325
8301
  batch: string;
7326
8302
  crates_per_layer: number;
7327
8303
  created_at: string;
7328
8304
  custom_fields: import("./types").Json;
8305
+ floriday_active: boolean;
8306
+ floriday_payload: import("./types").Json;
8307
+ floriday_trade_item_id: string | null;
7329
8308
  id: string;
7330
8309
  image_url: string | null;
7331
8310
  incoming_quantity: number;
8311
+ is_layer: boolean;
7332
8312
  layers_per_cart: number;
7333
8313
  location: string;
7334
8314
  min_quantity: number;
@@ -7341,17 +8321,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7341
8321
  trade_item_key: string | null;
7342
8322
  unit: string;
7343
8323
  updated_at: string;
8324
+ vat_code: string | null;
8325
+ vat_rate: number | null;
7344
8326
  weight: string | null;
7345
8327
  };
7346
8328
  Insert: {
8329
+ article_number?: string | null;
7347
8330
  barcode?: string | null;
7348
8331
  batch: string;
7349
8332
  crates_per_layer?: number;
7350
8333
  created_at?: string;
7351
8334
  custom_fields?: import("./types").Json;
8335
+ floriday_active?: boolean;
8336
+ floriday_payload?: import("./types").Json;
8337
+ floriday_trade_item_id?: string | null;
7352
8338
  id?: string;
7353
8339
  image_url?: string | null;
7354
8340
  incoming_quantity?: number;
8341
+ is_layer?: boolean;
7355
8342
  layers_per_cart?: number;
7356
8343
  location: string;
7357
8344
  min_quantity?: number;
@@ -7364,17 +8351,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7364
8351
  trade_item_key?: string | null;
7365
8352
  unit?: string;
7366
8353
  updated_at?: string;
8354
+ vat_code?: string | null;
8355
+ vat_rate?: number | null;
7367
8356
  weight?: string | null;
7368
8357
  };
7369
8358
  Update: {
8359
+ article_number?: string | null;
7370
8360
  barcode?: string | null;
7371
8361
  batch?: string;
7372
8362
  crates_per_layer?: number;
7373
8363
  created_at?: string;
7374
8364
  custom_fields?: import("./types").Json;
8365
+ floriday_active?: boolean;
8366
+ floriday_payload?: import("./types").Json;
8367
+ floriday_trade_item_id?: string | null;
7375
8368
  id?: string;
7376
8369
  image_url?: string | null;
7377
8370
  incoming_quantity?: number;
8371
+ is_layer?: boolean;
7378
8372
  layers_per_cart?: number;
7379
8373
  location?: string;
7380
8374
  min_quantity?: number;
@@ -7387,6 +8381,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7387
8381
  trade_item_key?: string | null;
7388
8382
  unit?: string;
7389
8383
  updated_at?: string;
8384
+ vat_code?: string | null;
8385
+ vat_rate?: number | null;
7390
8386
  weight?: string | null;
7391
8387
  };
7392
8388
  Relationships: [];
@@ -8280,8 +9276,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8280
9276
  order_id: string | null;
8281
9277
  order_item_id: string | null;
8282
9278
  order_source: string | null;
9279
+ parent_trade_item_key: string | null;
8283
9280
  physical_after: number | null;
8284
9281
  physical_before: number | null;
9282
+ production_batch_id: string | null;
8285
9283
  qty_delta: number;
8286
9284
  reason: string | null;
8287
9285
  reserved_after: number | null;
@@ -8297,8 +9295,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8297
9295
  order_id?: string | null;
8298
9296
  order_item_id?: string | null;
8299
9297
  order_source?: string | null;
9298
+ parent_trade_item_key?: string | null;
8300
9299
  physical_after?: number | null;
8301
9300
  physical_before?: number | null;
9301
+ production_batch_id?: string | null;
8302
9302
  qty_delta: number;
8303
9303
  reason?: string | null;
8304
9304
  reserved_after?: number | null;
@@ -8314,8 +9314,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8314
9314
  order_id?: string | null;
8315
9315
  order_item_id?: string | null;
8316
9316
  order_source?: string | null;
9317
+ parent_trade_item_key?: string | null;
8317
9318
  physical_after?: number | null;
8318
9319
  physical_before?: number | null;
9320
+ production_batch_id?: string | null;
8319
9321
  qty_delta?: number;
8320
9322
  reason?: string | null;
8321
9323
  reserved_after?: number | null;
@@ -8621,6 +9623,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8621
9623
  };
8622
9624
  Relationships: [];
8623
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
+ };
8624
9668
  trade_item_stock: {
8625
9669
  Row: {
8626
9670
  connection_id: string;
@@ -8774,7 +9818,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8774
9818
  twinfield_connections: {
8775
9819
  Row: {
8776
9820
  access_token: string | null;
8777
- client_id: string;
9821
+ client_id: string | null;
8778
9822
  client_secret: string | null;
8779
9823
  cluster_uri: string | null;
8780
9824
  company_code: string | null;
@@ -8786,7 +9830,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8786
9830
  is_active: boolean;
8787
9831
  label: string | null;
8788
9832
  office_code: string | null;
8789
- redirect_uri: string;
9833
+ redirect_uri: string | null;
8790
9834
  refresh_token: string | null;
8791
9835
  token_expires_at: string | null;
8792
9836
  updated_at: string;
@@ -8794,7 +9838,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8794
9838
  };
8795
9839
  Insert: {
8796
9840
  access_token?: string | null;
8797
- client_id: string;
9841
+ client_id?: string | null;
8798
9842
  client_secret?: string | null;
8799
9843
  cluster_uri?: string | null;
8800
9844
  company_code?: string | null;
@@ -8806,7 +9850,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8806
9850
  is_active?: boolean;
8807
9851
  label?: string | null;
8808
9852
  office_code?: string | null;
8809
- redirect_uri: string;
9853
+ redirect_uri?: string | null;
8810
9854
  refresh_token?: string | null;
8811
9855
  token_expires_at?: string | null;
8812
9856
  updated_at?: string;
@@ -8814,7 +9858,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8814
9858
  };
8815
9859
  Update: {
8816
9860
  access_token?: string | null;
8817
- client_id?: string;
9861
+ client_id?: string | null;
8818
9862
  client_secret?: string | null;
8819
9863
  cluster_uri?: string | null;
8820
9864
  company_code?: string | null;
@@ -8826,7 +9870,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8826
9870
  is_active?: boolean;
8827
9871
  label?: string | null;
8828
9872
  office_code?: string | null;
8829
- redirect_uri?: string;
9873
+ redirect_uri?: string | null;
8830
9874
  refresh_token?: string | null;
8831
9875
  token_expires_at?: string | null;
8832
9876
  updated_at?: string;
@@ -10021,25 +11065,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10021
11065
  };
10022
11066
  Relationships: [];
10023
11067
  };
10024
- floriday_customer_discounts: {
10025
- Row: {
10026
- base_price: number | null;
10027
- buyer_organization_id: string | null;
10028
- currency: string | null;
10029
- discount_type: string | null;
10030
- discount_value: number | null;
10031
- min_quantity: number | null;
10032
- net_price: number | null;
10033
- product_group_id: string | null;
10034
- raw: import("./types").Json | null;
10035
- source: string | null;
10036
- source_id: string | null;
10037
- trade_item_id: string | null;
10038
- valid_from: string | null;
10039
- valid_until: string | null;
10040
- };
10041
- Relationships: [];
10042
- };
10043
11068
  local_customer_discounts: {
10044
11069
  Row: {
10045
11070
  base_price: number | null;
@@ -10343,6 +11368,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10343
11368
  };
10344
11369
  Returns: number;
10345
11370
  };
11371
+ _migrate_rewrite_stock_key: {
11372
+ Args: {
11373
+ _from_key: string;
11374
+ _to_key: string;
11375
+ };
11376
+ Returns: undefined;
11377
+ };
10346
11378
  afh_city_code: {
10347
11379
  Args: {
10348
11380
  _city: string;
@@ -10426,6 +11458,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10426
11458
  processed_items: number;
10427
11459
  }[];
10428
11460
  };
11461
+ calculate_layer_stock: {
11462
+ Args: {
11463
+ p_product_id: string;
11464
+ };
11465
+ Returns: number;
11466
+ };
10429
11467
  call_exact_route: {
10430
11468
  Args: {
10431
11469
  path: string;
@@ -10458,6 +11496,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10458
11496
  Args: never;
10459
11497
  Returns: undefined;
10460
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;
11520
+ };
10461
11521
  consume_floriday_rate_limit: {
10462
11522
  Args: {
10463
11523
  p_bucket: string;
@@ -10509,6 +11569,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10509
11569
  table_name: string;
10510
11570
  }[];
10511
11571
  };
11572
+ delete_samenstelling: {
11573
+ Args: {
11574
+ p_parent_id: string;
11575
+ p_parent_kind: string;
11576
+ };
11577
+ Returns: import("./types").Json;
11578
+ };
10512
11579
  dispatch_carrier_signups_sql: {
10513
11580
  Args: {
10514
11581
  _catchup?: string;
@@ -10550,6 +11617,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10550
11617
  status: string;
10551
11618
  }[];
10552
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
+ };
10553
11630
  enqueue_cart_replan_if_unlocked: {
10554
11631
  Args: {
10555
11632
  p_order_id: string;
@@ -10669,19 +11746,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10669
11746
  resource: string;
10670
11747
  }[];
10671
11748
  };
10672
- get_floriday_agreements_active: {
10673
- Args: {
10674
- p_on_date?: string;
10675
- };
10676
- Returns: {
10677
- buyer_organization_id: string;
10678
- data: import("./types").Json;
10679
- floriday_id: string;
10680
- status: string;
10681
- valid_from: string;
10682
- valid_until: string;
10683
- }[];
10684
- };
10685
11749
  get_floriday_clock_supplies_window: {
10686
11750
  Args: {
10687
11751
  p_from: string;
@@ -10754,6 +11818,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10754
11818
  minutes_since_success: number;
10755
11819
  }[];
10756
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
+ };
10757
11842
  get_offer_by_link_code: {
10758
11843
  Args: {
10759
11844
  p_code: string;
@@ -10784,6 +11869,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10784
11869
  };
10785
11870
  Returns: string;
10786
11871
  };
11872
+ get_product_group_available_stock: {
11873
+ Args: {
11874
+ p_group_id: string;
11875
+ };
11876
+ Returns: number;
11877
+ };
10787
11878
  get_room_busy_windows: {
10788
11879
  Args: {
10789
11880
  p_from: string;
@@ -10864,6 +11955,32 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10864
11955
  };
10865
11956
  Returns: undefined;
10866
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
+ };
10867
11984
  next_order_number: {
10868
11985
  Args: {
10869
11986
  p_prefix: string;
@@ -10933,6 +12050,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10933
12050
  };
10934
12051
  Returns: undefined;
10935
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
+ };
10936
12062
  pickstation_set_cart_status: {
10937
12063
  Args: {
10938
12064
  p_cart_index: number;
@@ -10942,6 +12068,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10942
12068
  };
10943
12069
  Returns: undefined;
10944
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
+ };
10945
12079
  promote_trade_item_key: {
10946
12080
  Args: {
10947
12081
  p_new: string;
@@ -10949,6 +12083,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10949
12083
  };
10950
12084
  Returns: undefined;
10951
12085
  };
12086
+ recompute_all_reserved_stock: {
12087
+ Args: never;
12088
+ Returns: undefined;
12089
+ };
10952
12090
  recompute_order_status: {
10953
12091
  Args: {
10954
12092
  p_order_id: string;
@@ -10998,27 +12136,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10998
12136
  };
10999
12137
  Returns: undefined;
11000
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
+ };
11001
12155
  resolve_product_id_for_item: {
11002
12156
  Args: {
11003
12157
  p_product_name: string;
11004
12158
  };
11005
12159
  Returns: string;
11006
12160
  };
11007
- schedule_floriday_additional_services_sync: {
12161
+ resolve_stock_trade_item_key: {
11008
12162
  Args: {
11009
- p_apikey: string;
11010
- p_url: string;
12163
+ p_product_id: string;
11011
12164
  };
11012
- Returns: number;
12165
+ Returns: string;
11013
12166
  };
11014
- schedule_floriday_agreement_calloffs_sync: {
12167
+ reverse_production: {
11015
12168
  Args: {
11016
- p_apikey: string;
11017
- 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;
11018
12174
  };
11019
- Returns: number;
12175
+ Returns: import("./types").Json;
11020
12176
  };
11021
- schedule_floriday_agreements_sync: {
12177
+ schedule_floriday_additional_services_sync: {
11022
12178
  Args: {
11023
12179
  p_apikey: string;
11024
12180
  p_url: string;
@@ -11271,6 +12427,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11271
12427
  };
11272
12428
  Returns: number;
11273
12429
  };
12430
+ self_heal_floriday_links: {
12431
+ Args: never;
12432
+ Returns: number;
12433
+ };
11274
12434
  show_limit: {
11275
12435
  Args: never;
11276
12436
  Returns: number;
@@ -11281,18 +12441,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11281
12441
  };
11282
12442
  Returns: string[];
11283
12443
  };
12444
+ sync_all_layer_stocks: {
12445
+ Args: never;
12446
+ Returns: undefined;
12447
+ };
11284
12448
  sync_cached_packing_from_product: {
11285
12449
  Args: {
11286
12450
  p_product_id: string;
11287
12451
  };
11288
12452
  Returns: undefined;
11289
12453
  };
12454
+ sync_layer_stock: {
12455
+ Args: {
12456
+ p_product_id: string;
12457
+ };
12458
+ Returns: undefined;
12459
+ };
11290
12460
  sync_order_cart_item_packing_from_product: {
11291
12461
  Args: {
11292
12462
  p_product_id: string;
11293
12463
  };
11294
12464
  Returns: undefined;
11295
12465
  };
12466
+ sync_product_group_belading: {
12467
+ Args: {
12468
+ _group_id: string;
12469
+ };
12470
+ Returns: undefined;
12471
+ };
11296
12472
  sync_product_packing_from_floriday_cache: {
11297
12473
  Args: {
11298
12474
  p_floriday_id: string;